From c620856e0e5902f6e67ced45e01b9f287803eb3b Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 27 Aug 2026 16:38:28 +0800 Subject: [PATCH 01/16] feat(auth): split model readiness from sign-in state in /api/v1/auth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GET /api/v1/auth now reports models_ready (the default model resolves against the configured catalog, providerless and env-injected models included) instead of the compound ready flag, and no longer carries default_model — config values are served by /config alone. The v1 summary schema follows. OAuth managed-model refreshes now heal a lost default model: the refresh snapshot includes defaultModel, so an unchanged catalog with a missing default still lands the write-back branch and re-selects one. The refresh also rebases onto a fresh config read after the remote fetch, so a model or thinking change made during the fetch is no longer overwritten. The shared discovery refresh path (scheduler, POST /providers/{id}:refresh) heals the default the same way. Config changes are now published to WS clients on every write path: a debounced+trailing publisher bridges IConfigService section changes to ConfigChanged with camelCase changedFields and a full config projection, and the broadcaster forwards event.config.changed and event.model_catalog.changed (both previously published but never delivered). All three event types are registered in the event unions, so session_event parsing and AsyncAPI describe them. BREAKING CHANGE: GET /api/v1/auth drops the ready and default_model fields in favor of models_ready; event.config.changed's changedFields is now camelCase domain names instead of the raw snake_case request keys (v1 summary schema follows). --- docs/en/reference/server-api.md | 12 +- docs/zh/reference/server-api.md | 12 +- .../agent-core-v2/src/app/auth/authService.ts | 65 ++-- .../src/app/authLegacy/authLegacy.ts | 3 +- .../src/app/authLegacy/authLegacyService.ts | 38 +-- .../src/app/kosongConfig/discoveryService.ts | 8 +- .../src/kosong/model/catalogService.ts | 73 +---- .../src/kosong/model/modelAuth.ts | 134 +++++++- .../agent-core-v2/test/app/auth/auth.test.ts | 302 ++++++++++++++++-- .../test/app/config/config.test.ts | 28 ++ .../test/app/kosongConfig/discovery.test.ts | 129 ++++++++ .../test/kosong/model/modelAuth.test.ts | 138 ++++++++ .../src/services/authSummary/authSummary.ts | 19 +- .../authSummary/authSummaryService.ts | 27 +- .../agent-core/src/services/oauth/oauth.ts | 8 +- .../services/model-catalog-service.test.ts | 1 + .../test/services/prompt-service.test.ts | 3 +- packages/kap-server/AGENTS.md | 2 +- .../kap-server/src/protocol/events-zod.ts | 24 +- packages/kap-server/src/routes/config.ts | 12 +- .../services/config/configChangedPublisher.ts | 48 +++ packages/kap-server/src/start.ts | 3 + .../kap-server/src/transport/ws/v1/events.ts | 20 ++ .../ws/v1/sessionEventBroadcaster.ts | 61 ++++ packages/kap-server/test/auth.test.ts | 57 +++- packages/kap-server/test/boot.test.ts | 4 +- packages/kap-server/test/config.test.ts | 258 ++++++++++++++- packages/kap-server/test/modelCatalog.test.ts | 8 +- .../test/modelCatalogProviderWrite.test.ts | 6 +- .../test/sessionEventBroadcaster.test.ts | 236 ++++++++++++++ .../klient/test/e2e/legacy/client.test.ts | 5 +- .../test/e2e/legacy/refresh-replay.test.ts | 5 +- .../node-sdk/test/session-event-types.test.ts | 1 + packages/oauth/src/refreshProviderModels.ts | 5 +- .../protocol/src/__tests__/events.test.ts | 87 +++++ .../protocol/src/__tests__/rest-auth.test.ts | 21 +- packages/protocol/src/events.ts | 27 ++ packages/protocol/src/rest/auth.ts | 6 +- 38 files changed, 1674 insertions(+), 222 deletions(-) create mode 100644 packages/kap-server/src/services/config/configChangedPublisher.ts diff --git a/docs/en/reference/server-api.md b/docs/en/reference/server-api.md index 96fe9f9b66c..b6f156b4b90 100644 --- a/docs/en/reference/server-api.md +++ b/docs/en/reference/server-api.md @@ -187,7 +187,7 @@ These endpoints drive the managed Kimi OAuth login lifecycle and expose account- | Method and path | Description | | --- | --- | -| `GET /api/v1/auth` | Auth readiness snapshot | +| `GET /api/v1/auth` | Auth snapshot | | `POST /api/v1/oauth/login` | Start the OAuth device-code login flow | | `GET /api/v1/oauth/login` | Poll the login flow state | | `DELETE /api/v1/oauth/login` | Cancel a pending login flow | @@ -198,9 +198,9 @@ These endpoints drive the managed Kimi OAuth login lifecycle and expose account- #### `GET /api/v1/auth` -Auth readiness snapshot: whether the server has a usable model configuration, plus the managed provider's login state. `ready` is `true` when at least one provider is configured, a default model is set, and the managed provider (when present) is not revoked. +Auth snapshot: whether the default model resolves to a usable provider configuration, plus the managed provider's login state. `models_ready` is `true` when the global `default_model` alias exists in the model table and resolves to a configured provider — including providerless flat models carrying their own `base_url` and models injected through `KIMI_MODEL_*` environment variables. It does not verify credentials, so a prompt can still fail afterwards with `40111` / `40112`. -On success, `data` carries `ready` (boolean), `providers_count` (number of configured providers), `default_model` (the global default model alias, or `null`), and `managed_provider` (`null`, or `{ name, status }` with `status` one of `authenticated` / `expired` / `revoked` / `unauthenticated`). +On success, `data` carries `models_ready` (boolean), `providers_count` (number of configured providers), and `managed_provider` (`null`, or `{ name, status }` with `status` one of `authenticated` / `expired` / `revoked` / `unauthenticated`). The global default model alias itself is read from `GET /api/v1/config` (`default_model`), not from this endpoint. #### `POST /api/v1/oauth/login` @@ -308,7 +308,9 @@ On success, `data` is the config object; its fields mirror the top-level domains #### `POST /api/v1/config` -Merge-patches the global configuration: each top-level domain in the body is deep-merged into that domain, and domains absent from the body are left untouched. Setting `yolo` to `true` is shorthand for `default_permission_mode: "yolo"`. After a successful update the server broadcasts the global `event.config.changed` event with the changed field names and the full updated config; a rejected patch (invalid value or persistence failure) returns `40001` with the underlying message. +Merge-patches the global configuration: each top-level domain in the body is deep-merged into that domain, and domains absent from the body are left untouched. Setting `yolo` to `true` is shorthand for `default_permission_mode: "yolo"`; a rejected patch (invalid value or persistence failure) returns `40001` with the underlying message. + +Every config change — a successful update through this endpoint, an external edit of `config.toml`, or a server-side write such as an OAuth login refresh — is broadcast as the global `event.config.changed` event. Changes inside a short window are merged into one event carrying the affected domain names in `changedFields` (camelCase config domains, for example `defaultModel`) and the full current config projection in `config` (same shape as the `GET /api/v1/config` response). The body is a partial config object — any subset of the response domains above except `raw`, all optional: @@ -2337,7 +2339,7 @@ Clients send JSON frames `{ "type", "id"?, "payload" }`; every request frame get Event frames look like `{ "type", "seq", "epoch"?, "volatile"?, "offset"?, "session_id"?, "timestamp", "payload" }`, where `type` is the event type itself. Two delivery scopes: -- **Global events**: sent to every established connection, no subscription needed — `session.meta.updated`, `event.session.created`, `event.session.archived`, `event.session.work_changed`, `event.session.status_changed`, `event.workspace.*`, `event.config.*`. +- **Global events**: sent to every established connection, no subscription needed — `session.meta.updated`, `event.session.created`, `event.session.archived`, `event.session.work_changed`, `event.session.status_changed`, `event.workspace.*`, `event.config.*`, `event.model_catalog.*`. - **Session events**: sent only to connections subscribed to that session, subject to `agent_filter`. Main families: | Family | Main events | diff --git a/docs/zh/reference/server-api.md b/docs/zh/reference/server-api.md index 95f1ff3a065..396f2146e63 100644 --- a/docs/zh/reference/server-api.md +++ b/docs/zh/reference/server-api.md @@ -187,7 +187,7 @@ curl -s -H "Authorization: Bearer $TOKEN" \ | 方法与路径 | 说明 | | --- | --- | -| `GET /api/v1/auth` | 鉴权就绪状态快照 | +| `GET /api/v1/auth` | 鉴权状态快照 | | `POST /api/v1/oauth/login` | 发起 OAuth device-code 登录流程 | | `GET /api/v1/oauth/login` | 轮询登录流程状态 | | `DELETE /api/v1/oauth/login` | 取消进行中的登录流程 | @@ -198,9 +198,9 @@ curl -s -H "Authorization: Bearer $TOKEN" \ #### `GET /api/v1/auth` -鉴权就绪状态快照:服务是否具备可用的模型配置,以及托管供应商的登录状态。当至少配置了一个供应商、设置了默认模型、且托管供应商(如存在)未被吊销时,`ready` 为 `true`。 +鉴权状态快照:默认模型能否解析到可用的供应商配置,以及托管供应商的登录状态。当全局 `default_model` 别名存在于模型表中且能解析到已配置的供应商时,`models_ready` 为 `true`——包括自带 `base_url` 的平铺(providerless)模型,以及通过 `KIMI_MODEL_*` 环境变量注入的模型。它不做凭据校验,因此此后的对话请求仍可能以 `40111` / `40112` 失败。 -成功时 `data` 携带 `ready`(布尔值)、`providers_count`(已配置供应商数量)、`default_model`(全局默认模型别名,或 `null`)与 `managed_provider`(`null`,或 `{ name, status }`,其中 `status` 为 `authenticated` / `expired` / `revoked` / `unauthenticated` 之一)。 +成功时 `data` 携带 `models_ready`(布尔值)、`providers_count`(已配置供应商数量)与 `managed_provider`(`null`,或 `{ name, status }`,其中 `status` 为 `authenticated` / `expired` / `revoked` / `unauthenticated` 之一)。全局默认模型别名本身改从 `GET /api/v1/config` 的 `default_model` 读取,本端点不再携带。 #### `POST /api/v1/oauth/login` @@ -308,7 +308,9 @@ curl -s -H "Authorization: Bearer $TOKEN" \ #### `POST /api/v1/config` -合并式更新全局配置:请求体中的每个顶层域被深合并进对应域,未出现在请求体中的域保持不动。把 `yolo` 设为 `true` 是 `default_permission_mode: "yolo"` 的简写。更新成功后,服务会广播全局 `event.config.changed` 事件,携带变更的字段名与完整的更新后配置;被拒绝的补丁(值非法或持久化失败)返回 `40001` 与底层错误信息。 +合并式更新全局配置:请求体中的每个顶层域被深合并进对应域,未出现在请求体中的域保持不动。把 `yolo` 设为 `true` 是 `default_permission_mode: "yolo"` 的简写;被拒绝的补丁(值非法或持久化失败)返回 `40001` 与底层错误信息。 + +每一次配置变更——经本端点成功更新、在进程外编辑 `config.toml`,或服务端内部写入(如 OAuth 登录刷新)——都会广播全局 `event.config.changed` 事件。短时间窗内的多次变更会合并为一个事件,其 `changedFields` 携带受影响的域名(camelCase 配置域,例如 `defaultModel`),`config` 携带当前完整的配置投影(与 `GET /api/v1/config` 响应同形状)。 请求体是部分配置对象——上述响应域中除 `raw` 外的任意子集,均为可选: @@ -2337,7 +2339,7 @@ locator 寻址的目录(脱敏配置),外加对每个 OAuth 候选的批 事件帧形状为 `{ "type", "seq", "epoch"?, "volatile"?, "offset"?, "session_id"?, "timestamp", "payload" }`,`type` 即事件类型。按投递范围分两类: -- **全局事件**:发送到每个已建立连接,无需订阅——`session.meta.updated`、`event.session.created`、`event.session.archived`、`event.session.work_changed`、`event.session.status_changed`、`event.workspace.*`、`event.config.*`。 +- **全局事件**:发送到每个已建立连接,无需订阅——`session.meta.updated`、`event.session.created`、`event.session.archived`、`event.session.work_changed`、`event.session.status_changed`、`event.workspace.*`、`event.config.*`、`event.model_catalog.*`。 - **会话事件**:只发给订阅了该会话的连接,受 `agent_filter` 过滤。主要事件族: | 事件族 | 主要事件 | diff --git a/packages/agent-core-v2/src/app/auth/authService.ts b/packages/agent-core-v2/src/app/auth/authService.ts index 7960271daa2..dfc40d7b901 100644 --- a/packages/agent-core-v2/src/app/auth/authService.ts +++ b/packages/agent-core-v2/src/app/auth/authService.ts @@ -41,10 +41,12 @@ import { IConfigService } from '#/app/config/config'; import { IEventService } from '#/app/event/event'; import { ILogService } from '#/_base/log/log'; import { - deriveProviderId, effectiveModelConfig, nonEmpty, resolveModelAuthMaterial, + resolveModelForReady, + providerNameFromFlatModel, + type ModelReadyFailureReason, } from '#/kosong/model/modelAuth'; import { IModelService, type ModelRecord } from '#/kosong/model/model'; import { @@ -327,7 +329,13 @@ export class OAuthService extends Disposable implements IOAuthService { return { changed, unchanged, failed }; } - const next = structuredClone(current); + await this.config.reload(); + const fresh = this.readUserConfigShape(); + if (!isOAuthCatalogProvider(fresh.providers[KIMI_CODE_PROVIDER_NAME])) { + return { changed, unchanged, failed }; + } + + const next = structuredClone(fresh); applyManagedKimiCodeConfig(next, { models, baseUrl: auth.baseUrl, @@ -336,23 +344,23 @@ export class OAuthService extends Disposable implements IOAuthService { preserveDefaultModel: true, }); const refreshedAliasKeys = providerRefreshAliasKeys( - current, + fresh, next, KIMI_CODE_PROVIDER_NAME, `${KIMI_CODE_PLATFORM_ID}/`, ); restoreProviderAliases( next, - preserveUserProviderAliases(current, KIMI_CODE_PROVIDER_NAME, refreshedAliasKeys), + preserveUserProviderAliases(fresh, KIMI_CODE_PROVIDER_NAME, refreshedAliasKeys), ); - restoreDefaultSelection(next, current.defaultModel, current.thinking?.enabled); + restoreDefaultSelection(next, fresh.defaultModel, fresh.thinking?.enabled); clampDanglingDefault(next); - if (providerModelsEqual(current, next, KIMI_CODE_PROVIDER_NAME, refreshedAliasKeys)) { + if (providerModelsEqual(fresh, next, KIMI_CODE_PROVIDER_NAME, refreshedAliasKeys)) { unchanged.push(KIMI_CODE_PROVIDER_NAME); } else { const { added, removed } = computeChanges( - collectModelIdsForAliases(current, refreshedAliasKeys), + collectModelIdsForAliases(fresh, refreshedAliasKeys), collectModelIdsForAliases(next, refreshedAliasKeys), ); await this.config.replace(PROVIDERS_SECTION, next.providers); @@ -646,27 +654,18 @@ export class AuthSummaryService implements IAuthSummaryService { if (Object.keys(providers).length === 0 && !isProviderlessModel(configured)) { throw new AuthProvisioningRequiredError(); } - if (modelId === undefined || modelId === '') { - throw new AuthModelNotResolvedError(undefined); - } - if (configured === undefined) { - throw new AuthModelNotResolvedError(modelId); + const resolution = resolveModelForReady(modelId, models, providers); + if (!resolution.resolved) { + throw unresolvedModelError(modelId, resolution.reason, configured); } - const model = effectiveModelConfig(configured); + const model = effectiveModelConfig(configured as ModelRecord); const providerId = model.providerId ?? model.provider; const provider = providerId === undefined ? undefined : this.providerService.get(providerId); - if (providerId !== undefined && provider === undefined) { - throw new AuthModelNotResolvedError(modelId, providerId); - } - - const providerName = providerId ?? providerNameFromFlatModel(model); - if (providerName === undefined) { - throw new AuthModelNotResolvedError(modelId); - } + const providerName = (providerId ?? providerNameFromFlatModel(model)) as string; const auth = resolveModelAuthMaterial({ - modelId, + modelId: modelId as string, model, provider, providerName, @@ -682,6 +681,21 @@ export class AuthSummaryService implements IAuthSummaryService { } } +function unresolvedModelError( + modelId: string | undefined, + reason: ModelReadyFailureReason, + configured: ModelRecord | undefined, +): AuthModelNotResolvedError { + if (reason === 'no-default') { + return new AuthModelNotResolvedError(undefined); + } + if (reason === 'provider-missing' && configured !== undefined) { + const model = effectiveModelConfig(configured); + return new AuthModelNotResolvedError(modelId, model.providerId ?? model.provider); + } + return new AuthModelNotResolvedError(modelId); +} + function classifyFailure(err: unknown): OAuthFlowStatus { if (err instanceof DeviceCodeTimeoutError) return 'expired'; if (err instanceof OAuthError) { @@ -700,11 +714,6 @@ function isProviderlessModel(model: ModelRecord | undefined): boolean { ); } -function providerNameFromFlatModel(model: ModelRecord): string | undefined { - const baseUrl = nonEmpty(model.baseUrl); - return baseUrl === undefined ? undefined : deriveProviderId(baseUrl); -} - interface ManagedModel { readonly provider: string; readonly model: string; @@ -804,7 +813,7 @@ function providerModelSnapshot( }); } snapshots.sort((a, b) => a.alias.localeCompare(b.alias)); - return JSON.stringify(snapshots); + return JSON.stringify({ defaultModel: config.defaultModel ?? null, models: snapshots }); } function providerRefreshAliasKeys( diff --git a/packages/agent-core-v2/src/app/authLegacy/authLegacy.ts b/packages/agent-core-v2/src/app/authLegacy/authLegacy.ts index fafcef3732a..321de8e9a49 100644 --- a/packages/agent-core-v2/src/app/authLegacy/authLegacy.ts +++ b/packages/agent-core-v2/src/app/authLegacy/authLegacy.ts @@ -17,9 +17,8 @@ export const managedProviderSummarySchema = z.object({ export type ManagedProviderSummary = z.infer; export const authSummarySchema = z.object({ - ready: z.boolean(), + models_ready: z.boolean(), providers_count: z.number().int().nonnegative(), - default_model: z.string().nullable(), managed_provider: managedProviderSummarySchema.nullable(), }); export type AuthSummary = z.infer; diff --git a/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts b/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts index b80e2c9d031..beea721c79b 100644 --- a/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts +++ b/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts @@ -3,8 +3,15 @@ import type { AuthSummary } from './authLegacy'; import { LifecycleScope } from '#/app/scopes'; import { ScopeActivation, registerScopedService } from '#/_base/di/scope'; import { IOAuthService } from '#/app/auth/auth'; -import { IModelService } from '#/kosong/model/model'; -import { IProviderService } from '#/kosong/provider/provider'; +import { IConfigService } from '#/app/config/config'; +import { + DEFAULT_MODEL_SECTION, + MODELS_SECTION, + PROVIDERS_SECTION, +} from '#/app/kosongConfig/configSection'; +import { resolveModelForReady } from '#/kosong/model/modelAuth'; +import type { ModelRecord } from '#/kosong/model/model'; +import type { ProviderConfig } from '#/kosong/provider/provider'; import { IAuthLegacyService } from './authLegacy'; @@ -14,17 +21,21 @@ export class AuthLegacyService implements IAuthLegacyService { declare readonly _serviceBrand: undefined; constructor( - @IProviderService private readonly providerService: IProviderService, - @IModelService private readonly modelService: IModelService, + @IConfigService private readonly config: IConfigService, @IOAuthService private readonly oauth: IOAuthService, ) {} async get(): Promise { - await this.modelService.ready; + await this.config.ready; - const providers = this.providerService.list(); + const snapshot = this.config.getAll(); + const providers = (snapshot[PROVIDERS_SECTION] ?? {}) as Readonly< + Record + >; + const models = (snapshot[MODELS_SECTION] ?? {}) as Readonly>; + const defaultModel = snapshot[DEFAULT_MODEL_SECTION] as string | undefined; const providers_count = Object.keys(providers).length; - const default_model = nonEmpty(this.modelService.getDefaultModel()); + const models_ready = resolveModelForReady(defaultModel, models, providers).resolved; let managed_provider: AuthSummary['managed_provider'] = null; if (providers[MANAGED_PROVIDER_NAME] !== undefined) { @@ -35,12 +46,7 @@ export class AuthLegacyService implements IAuthLegacyService { }; } - const ready = - providers_count >= 1 && - default_model !== null && - (managed_provider === null || managed_provider.status !== 'revoked'); - - return { ready, providers_count, default_model, managed_provider }; + return { models_ready, providers_count, managed_provider }; } private async managedLoggedIn(): Promise { @@ -52,12 +58,6 @@ export class AuthLegacyService implements IAuthLegacyService { } } -function nonEmpty(value: string | undefined): string | null { - if (value === undefined) return null; - const trimmed = value.trim(); - return trimmed.length === 0 ? null : trimmed; -} - registerScopedService( LifecycleScope.App, IAuthLegacyService, diff --git a/packages/agent-core-v2/src/app/kosongConfig/discoveryService.ts b/packages/agent-core-v2/src/app/kosongConfig/discoveryService.ts index ef5815b8221..82304b1df01 100644 --- a/packages/agent-core-v2/src/app/kosongConfig/discoveryService.ts +++ b/packages/agent-core-v2/src/app/kosongConfig/discoveryService.ts @@ -164,9 +164,15 @@ export class ProviderDiscoveryService implements IProviderDiscoveryService { const defaultModel = this.config.inspect(DEFAULT_MODEL_SECTION).userValue; const thinking = this.config.inspect(THINKING_SECTION).userValue; + const visibleModels = withoutKeys(models, exclusion.models); + const excludedDefaultModel = exclusion.defaultModel; + const excludedDefaultRecord = + excludedDefaultModel !== undefined ? models[excludedDefaultModel] : undefined; return { providers: withoutKeys(providers, exclusion.providers) as ManagedKimiConfigShape['providers'], - models: withoutKeys(models, exclusion.models) as ManagedKimiConfigShape['models'], + models: (excludedDefaultModel !== undefined && excludedDefaultRecord !== undefined + ? { ...visibleModels, [excludedDefaultModel]: excludedDefaultRecord } + : visibleModels) as ManagedKimiConfigShape['models'], defaultModel, thinking: thinking === undefined ? undefined : { ...thinking }, }; diff --git a/packages/agent-core-v2/src/kosong/model/catalogService.ts b/packages/agent-core-v2/src/kosong/model/catalogService.ts index eec2673161c..903ebceea3d 100644 --- a/packages/agent-core-v2/src/kosong/model/catalogService.ts +++ b/packages/agent-core-v2/src/kosong/model/catalogService.ts @@ -9,7 +9,6 @@ import type { ProviderRequestAuth } from '#/kosong/contract/provider'; import type { TokenUsage } from '#/kosong/contract/usage'; import { IProtocolAdapterRegistry, - ProtocolSchema, type Protocol, type ProtocolProviderOptions, } from '#/kosong/protocol/protocol'; @@ -25,7 +24,6 @@ import { type ProviderConfig, } from '../provider/provider'; import { - explainProviderEndpoint, getProviderDefinition, resolveProviderEndpoint, } from '../provider/providerDefinition'; @@ -59,7 +57,9 @@ import { deriveProviderId, effectiveModelConfig, nonEmpty, + resolveEndpointBaseUrl, resolveModelAuthMaterial, + resolveModelProtocol, } from './modelAuth'; import { IModelOAuthTokens } from './modelOAuth'; import type { ResolvedModelAuthMaterial } from './model.types'; @@ -400,38 +400,11 @@ export class ModelCatalog extends Disposable implements IModelCatalog { `Provider "${providerId}" referenced by model "${id}" is not configured.`, ); } - const fromModel = nonEmpty(model.baseUrl); - const fromProvider = nonEmpty(providerConfig.baseUrl); - let baseUrl: string | undefined; - if (fromModel !== undefined) { - baseUrl = fromModel; - trace.record('resolved.baseUrl', { kind: 'config', detail: 'model.baseUrl' }); - } else if (fromProvider !== undefined) { - baseUrl = fromProvider; - trace.record('resolved.baseUrl', { - kind: 'config', - detail: `provider '${providerId}' baseUrl`, - }); - } else { - const endpointType = providerConfig.type ?? model.protocol; - const endpoint = - endpointType === undefined - ? {} - : explainProviderEndpoint(endpointType, providerConfig.env ?? {}); - baseUrl = nonEmpty(endpoint.baseUrl); - if (endpoint.baseUrlEnvName !== undefined) { - trace.record('resolved.baseUrl', { - kind: 'env', - detail: `${endpoint.baseUrlEnvName} (provider '${providerId}' env bag)`, - }); - } else if (endpoint.baseUrlIsDefault === true) { - trace.record('resolved.baseUrl', { - kind: 'builtin', - detail: `provider definition '${endpointType}' defaultBaseUrl`, - }); - } + const endpoint = resolveEndpointBaseUrl(model, providerConfig, providerId); + if (endpoint.source !== undefined) { + trace.record('resolved.baseUrl', endpoint.source); } - return { providerConfig, providerName: providerId, resolvedBaseUrl: baseUrl }; + return { providerConfig, providerName: providerId, resolvedBaseUrl: endpoint.baseUrl }; } const modelBaseUrl = nonEmpty(model.baseUrl); @@ -461,33 +434,15 @@ export class ModelCatalog extends Disposable implements IModelCatalog { provider: ProviderConfig | undefined, trace: ResolutionTraceCollector, ): Protocol { - if (model.protocol !== undefined) { - trace.record('resolved.protocol', { kind: 'config', detail: 'model.protocol' }); - return model.protocol; - } - const providerType = provider?.type; - if (providerType !== undefined) { - const asProtocol = ProtocolSchema.safeParse(providerType); - if (asProtocol.success) { - trace.record('resolved.protocol', { - kind: 'config', - detail: `provider type '${providerType}' is itself a wire protocol`, - }); - return asProtocol.data; - } - const definition = getProviderDefinition(providerType); - if (definition !== undefined) { - trace.record('resolved.protocol', { - kind: 'builtin', - detail: `vendor '${providerType}' declared baseProtocol`, - }); - return definition.baseProtocol; - } + const resolution = resolveModelProtocol(model, provider); + if (resolution === undefined) { + throw new Error2( + CONFIG_INVALID_ERROR_CODE, + `Model "${id}" must declare a wire protocol (config: models..protocol).`, + ); } - throw new Error2( - CONFIG_INVALID_ERROR_CODE, - `Model "${id}" must declare a wire protocol (config: models..protocol).`, - ); + trace.record('resolved.protocol', resolution.source); + return resolution.protocol; } private buildAuthProvider(providerName: string, auth: ResolvedModelAuthMaterial): AuthProvider { diff --git a/packages/agent-core-v2/src/kosong/model/modelAuth.ts b/packages/agent-core-v2/src/kosong/model/modelAuth.ts index b53d9a0213a..0f560254bba 100644 --- a/packages/agent-core-v2/src/kosong/model/modelAuth.ts +++ b/packages/agent-core-v2/src/kosong/model/modelAuth.ts @@ -1,6 +1,7 @@ import { Error2 } from '#/_base/errors/errors'; import { CONFIG_INVALID_ERROR_CODE } from '#/kosong/contract/errors'; -import type { ResolutionTrace } from '#/kosong/contract/inspection'; +import type { InspectionSource, ResolutionTrace } from '#/kosong/contract/inspection'; +import { ProtocolSchema, type Protocol } from '#/kosong/protocol/protocol'; import { BUDGET_THINKING_EFFORTS, @@ -8,7 +9,7 @@ import { matchUnknownClaudeProfile, } from '../provider/bases/anthropic/anthropic-profile'; import type { ProviderConfig } from '../provider/provider'; -import { explainProviderEndpoint } from '../provider/providerDefinition'; +import { explainProviderEndpoint, getProviderDefinition } from '../provider/providerDefinition'; import type { ModelRecord } from './model'; import type { ResolvedModelAuthMaterial } from './model.types'; @@ -136,6 +137,135 @@ export function deriveProviderId(baseUrl: string): string { } } +export function providerNameFromFlatModel(model: ModelRecord): string | undefined { + const baseUrl = nonEmpty(model.baseUrl); + return baseUrl === undefined ? undefined : deriveProviderId(baseUrl); +} + +export interface ModelProtocolResolution { + readonly protocol: Protocol; + readonly source: InspectionSource; +} + +export function resolveModelProtocol( + model: ModelRecord, + provider: ProviderConfig | undefined, +): ModelProtocolResolution | undefined { + if (model.protocol !== undefined) { + return { protocol: model.protocol, source: { kind: 'config', detail: 'model.protocol' } }; + } + const providerType = provider?.type; + if (providerType !== undefined) { + const asProtocol = ProtocolSchema.safeParse(providerType); + if (asProtocol.success) { + return { + protocol: asProtocol.data, + source: { + kind: 'config', + detail: `provider type '${providerType}' is itself a wire protocol`, + }, + }; + } + const definition = getProviderDefinition(providerType); + if (definition !== undefined) { + return { + protocol: definition.baseProtocol, + source: { kind: 'builtin', detail: `vendor '${providerType}' declared baseProtocol` }, + }; + } + } + return undefined; +} + +export interface EndpointBaseUrlResolution { + readonly baseUrl: string | undefined; + readonly source?: InspectionSource; +} + +export function resolveEndpointBaseUrl( + model: ModelRecord, + provider: ProviderConfig, + providerId: string, +): EndpointBaseUrlResolution { + const fromModel = nonEmpty(model.baseUrl); + if (fromModel !== undefined) { + return { baseUrl: fromModel, source: { kind: 'config', detail: 'model.baseUrl' } }; + } + const fromProvider = nonEmpty(provider.baseUrl); + if (fromProvider !== undefined) { + return { + baseUrl: fromProvider, + source: { kind: 'config', detail: `provider '${providerId}' baseUrl` }, + }; + } + const endpointType = provider.type ?? model.protocol; + const endpoint = + endpointType === undefined ? {} : explainProviderEndpoint(endpointType, provider.env ?? {}); + const baseUrl = nonEmpty(endpoint.baseUrl); + if (endpoint.baseUrlEnvName !== undefined) { + return { + baseUrl, + source: { + kind: 'env', + detail: `${endpoint.baseUrlEnvName} (provider '${providerId}' env bag)`, + }, + }; + } + if (endpoint.baseUrlIsDefault === true) { + return { + baseUrl, + source: { kind: 'builtin', detail: `provider definition '${endpointType}' defaultBaseUrl` }, + }; + } + return { baseUrl }; +} + +export type ModelReadyFailureReason = + | 'no-default' + | 'dangling-alias' + | 'provider-missing' + | 'unresolvable'; + +export type ModelReadyResolution = + | { readonly resolved: true } + | { readonly resolved: false; readonly reason: ModelReadyFailureReason }; + +export function resolveModelForReady( + modelId: string | undefined, + models: Readonly>, + providers: Readonly>, +): ModelReadyResolution { + const alias = nonEmpty(modelId); + if (alias === undefined) { + return { resolved: false, reason: 'no-default' }; + } + const configured = models[alias]; + if (configured === undefined) { + return { resolved: false, reason: 'dangling-alias' }; + } + const model = effectiveModelConfig(configured); + const providerId = model.providerId ?? model.provider; + const provider = providerId === undefined ? undefined : providers[providerId]; + if (providerId !== undefined && provider === undefined) { + return { resolved: false, reason: 'provider-missing' }; + } + const providerName = providerId ?? providerNameFromFlatModel(model); + if (providerName === undefined) { + return { resolved: false, reason: 'unresolvable' }; + } + if (nonEmpty(model.name ?? model.model) === undefined) { + return { resolved: false, reason: 'unresolvable' }; + } + const maxContextSize = model.maxContextSize; + if (maxContextSize === undefined || maxContextSize <= 0) { + return { resolved: false, reason: 'unresolvable' }; + } + if (resolveModelProtocol(model, provider) === undefined) { + return { resolved: false, reason: 'unresolvable' }; + } + return { resolved: true }; +} + export function nonEmpty(value: string | undefined): string | undefined { const trimmed = value?.trim(); return trimmed === undefined || trimmed.length === 0 ? undefined : trimmed; diff --git a/packages/agent-core-v2/test/app/auth/auth.test.ts b/packages/agent-core-v2/test/app/auth/auth.test.ts index 2ff59f96ef3..b7efdd880bd 100644 --- a/packages/agent-core-v2/test/app/auth/auth.test.ts +++ b/packages/agent-core-v2/test/app/auth/auth.test.ts @@ -100,7 +100,7 @@ describe('OAuthService', () => { let toolkit: FakeToolkit; let providerSet: ReturnType; let configSet: ReturnType; - let configReplace: ReturnType; + let configReplace: ReturnType Promise>>; let events: Event2[]; let providerChangedEmitter: Emitter; @@ -235,6 +235,62 @@ describe('OAuthService', () => { return fetchMock; } + const managedK2Alias: ModelRecord = { + provider: OAUTH_PROVIDER, + model: 'kimi-k2', + maxContextSize: 131072, + capabilities: ['thinking', 'tool_use'], + displayName: 'Kimi K2', + }; + + const managedK25Alias: ModelRecord = { + provider: OAUTH_PROVIDER, + model: 'kimi-k2.5', + maxContextSize: 262144, + capabilities: ['thinking', 'tool_use'], + displayName: 'Kimi K2.5', + }; + + function stubGatedManagedModelsFetch(): { + fetchMock: ReturnType; + releaseFetch: () => void; + } { + let releaseFetch!: () => void; + const gate = new Promise((resolve) => { + releaseFetch = resolve; + }); + const fetchMock = vi.fn().mockImplementation(async () => { + await gate; + return { + ok: true, + json: async () => ({ + data: [ + { + id: 'kimi-k2', + context_length: 131072, + supports_reasoning: true, + display_name: 'Kimi K2', + }, + { + id: 'kimi-k2.5', + context_length: 262144, + supports_reasoning: true, + display_name: 'Kimi K2.5', + }, + { + id: 'kimi-k3', + context_length: 1048576, + supports_reasoning: true, + display_name: 'Kimi K3', + }, + ], + }), + }; + }); + vi.stubGlobal('fetch', fetchMock); + return { fetchMock, releaseFetch }; + } + it('startLogin resolves a device-code flow and flips to authenticated on success', async () => { stubManagedModelsFetch(); toolkit.login.mockImplementation((_provider, options) => { @@ -924,6 +980,140 @@ describe('OAuthService', () => { expect(maxInFlight).toBe(1); expect(fetchMock).toHaveBeenCalledTimes(2); }); + + it('rewrites a lost default model on refresh even when the catalog is unchanged', async () => { + stubManagedModelsFetch(); + const svc = createService(); + + const first = await svc.refreshOAuthProviderModels(); + expect(first.changed).toHaveLength(1); + expect(defaultModel).toBe('kimi-code/kimi-k2'); + + configReplace.mockClear(); + events.length = 0; + defaultModel = undefined; + + const second = await svc.refreshOAuthProviderModels(); + + expect(second.failed).toEqual([]); + expect(second.unchanged).toEqual([]); + expect(second.changed).toEqual([ + { + provider_id: OAUTH_PROVIDER, + provider_name: 'Kimi Code', + added: 0, + removed: 0, + }, + ]); + expect(configReplace).toHaveBeenCalledWith('defaultModel', 'kimi-code/kimi-k2'); + expect(defaultModel).toBe('kimi-code/kimi-k2'); + expect(events).toEqual([ + expect.objectContaining({ + type: 'event.model_catalog.changed', + payload: second, + }), + ]); + }); + + it('reports unchanged on refresh when the catalog and the default model are both intact', async () => { + stubManagedModelsFetch(); + const svc = createService(); + + await svc.refreshOAuthProviderModels(); + expect(defaultModel).toBe('kimi-code/kimi-k2'); + + configReplace.mockClear(); + events.length = 0; + + const second = await svc.refreshOAuthProviderModels(); + + expect(second).toEqual({ changed: [], unchanged: [OAUTH_PROVIDER], failed: [] }); + expect(configReplace).not.toHaveBeenCalled(); + expect(events).toEqual([]); + }); + + it('keeps the default model the user selects while a refresh is in flight', async () => { + const { fetchMock, releaseFetch } = stubGatedManagedModelsFetch(); + models = { + 'kimi-code/kimi-k2': managedK2Alias, + 'kimi-code/kimi-k2.5': managedK25Alias, + }; + defaultModel = 'kimi-code/kimi-k2'; + const svc = createService(); + + const refresh = svc.refreshOAuthProviderModels(); + await vi.waitFor(() => { expect(fetchMock).toHaveBeenCalled(); }); + await configReplace('defaultModel', 'kimi-code/kimi-k2.5'); + releaseFetch(); + const result = await refresh; + + expect(result.failed).toEqual([]); + expect(result.changed).toEqual([ + { + provider_id: OAUTH_PROVIDER, + provider_name: 'Kimi Code', + added: 1, + removed: 0, + }, + ]); + expect(configReplace).toHaveBeenCalledWith('defaultModel', 'kimi-code/kimi-k2.5'); + expect(defaultModel).toBe('kimi-code/kimi-k2.5'); + }); + + it('writes back the refreshed catalog and default when the user does not intervene mid-flight', async () => { + const { fetchMock, releaseFetch } = stubGatedManagedModelsFetch(); + models = { + 'kimi-code/kimi-k2': managedK2Alias, + 'kimi-code/kimi-k2.5': managedK25Alias, + }; + defaultModel = 'kimi-code/kimi-k2'; + const svc = createService(); + + const refresh = svc.refreshOAuthProviderModels(); + await vi.waitFor(() => { expect(fetchMock).toHaveBeenCalled(); }); + releaseFetch(); + const result = await refresh; + + expect(result.failed).toEqual([]); + expect(result.changed).toEqual([ + { + provider_id: OAUTH_PROVIDER, + provider_name: 'Kimi Code', + added: 1, + removed: 0, + }, + ]); + expect(configReplace).toHaveBeenCalledWith( + 'models', + expect.objectContaining({ + 'kimi-code/kimi-k3': expect.objectContaining({ model: 'kimi-k3' }), + }), + ); + expect(configReplace).toHaveBeenCalledWith('defaultModel', 'kimi-code/kimi-k2'); + expect(defaultModel).toBe('kimi-code/kimi-k2'); + }); + + it('keeps the thinking selection the user makes while a refresh is in flight', async () => { + const { fetchMock, releaseFetch } = stubGatedManagedModelsFetch(); + models = { + 'kimi-code/kimi-k2': managedK2Alias, + 'kimi-code/kimi-k2.5': managedK25Alias, + }; + defaultModel = 'kimi-code/kimi-k2'; + thinking = { enabled: true }; + const svc = createService(); + + const refresh = svc.refreshOAuthProviderModels(); + await vi.waitFor(() => { expect(fetchMock).toHaveBeenCalled(); }); + await configReplace('thinking', { enabled: false }); + releaseFetch(); + const result = await refresh; + + expect(result.failed).toEqual([]); + expect(result.changed).toHaveLength(1); + expect(configReplace).toHaveBeenCalledWith('thinking', { enabled: false }); + expect(thinking).toEqual({ enabled: false }); + }); }); describe('WebSearchProviderService', () => { @@ -1458,27 +1648,30 @@ describe('AuthLegacyService', () => { let disposables: DisposableStore; let ix: TestInstantiationService; let providers: Record; + let models: Record; let defaultModel: string | undefined; let oauthStatus: ReturnType; + let configReady: Promise; + let configReload: ReturnType; beforeEach(() => { disposables = new DisposableStore(); providers = {}; + models = {}; defaultModel = undefined; oauthStatus = vi.fn(); + configReady = Promise.resolve(); + configReload = vi.fn().mockResolvedValue(undefined); ix = createServices(disposables, { additionalServices: (reg) => { - reg.definePartialInstance(IProviderService, { - list: (() => providers) as IProviderService['list'], - }); - reg.definePartialInstance(IModelService, { - ready: Promise.resolve(), - getDefaultModel: (() => defaultModel) as IModelService['getDefaultModel'], - }); reg.definePartialInstance(IConfigService, { - ready: Promise.resolve(), - get: ((domain: string) => - domain === 'defaultModel' ? defaultModel : undefined) as IConfigService['get'], + ready: configReady, + getAll: (() => ({ + providers, + models, + defaultModel, + })) as IConfigService['getAll'], + reload: configReload as unknown as IConfigService['reload'], }); reg.definePartialInstance(IOAuthService, { status: oauthStatus as unknown as IOAuthService['status'], @@ -1495,9 +1688,8 @@ describe('AuthLegacyService', () => { it('returns an empty snapshot when no providers are configured', async () => { await expect(createService().get()).resolves.toEqual({ - ready: false, + models_ready: false, providers_count: 0, - default_model: null, managed_provider: null, }); expect(oauthStatus).not.toHaveBeenCalled(); @@ -1513,22 +1705,53 @@ describe('AuthLegacyService', () => { expect(summary.providers_count).toBe(2); }); - it('reflects the configured default model', async () => { + it('reports models_ready when the default model resolves to a configured provider', async () => { providers = { [NON_OAUTH_PROVIDER]: { type: 'kimi', apiKey: 'sk-test' } }; + models = { k2: { provider: NON_OAUTH_PROVIDER, model: 'kimi-k2', maxContextSize: 128000 } }; defaultModel = 'k2'; const summary = await createService().get(); - expect(summary.default_model).toBe('k2'); + expect(summary.models_ready).toBe(true); expect(summary.managed_provider).toBeNull(); - expect(summary.ready).toBe(true); }); - it('is not ready when a provider exists but no default model is set', async () => { + it('is not models_ready when a provider exists but no default model is set', async () => { providers = { [NON_OAUTH_PROVIDER]: { type: 'kimi', apiKey: 'sk-test' } }; + models = { k2: { provider: NON_OAUTH_PROVIDER, model: 'kimi-k2' } }; const summary = await createService().get(); expect(summary.providers_count).toBe(1); - expect(summary.default_model).toBeNull(); + expect(summary.models_ready).toBe(false); expect(summary.managed_provider).toBeNull(); - expect(summary.ready).toBe(false); + }); + + it('is not models_ready when the default model dangles', async () => { + providers = { [NON_OAUTH_PROVIDER]: { type: 'kimi', apiKey: 'sk-test' } }; + models = { k2: { provider: NON_OAUTH_PROVIDER, model: 'kimi-k2' } }; + defaultModel = 'gone'; + const summary = await createService().get(); + expect(summary.models_ready).toBe(false); + }); + + it('is not models_ready when the default model points at a missing provider', async () => { + providers = { [NON_OAUTH_PROVIDER]: { type: 'kimi', apiKey: 'sk-test' } }; + models = { k2: { provider: 'ghost', model: 'kimi-k2' } }; + defaultModel = 'k2'; + const summary = await createService().get(); + expect(summary.models_ready).toBe(false); + }); + + it('reports models_ready for a providerless flat default model', async () => { + models = { + flat: { + baseUrl: 'https://api.example.test/v1', + model: 'gpt', + protocol: 'openai', + maxContextSize: 128000, + apiKey: 'sk-x', + }, + }; + defaultModel = 'flat'; + const summary = await createService().get(); + expect(summary.models_ready).toBe(true); }); it('surfaces managed_provider.unauthenticated when configured without a cached token', async () => { @@ -1541,13 +1764,14 @@ describe('AuthLegacyService', () => { name: OAUTH_PROVIDER, status: 'unauthenticated', }); - expect(summary.ready).toBe(false); + expect(summary.models_ready).toBe(false); }); it('surfaces managed_provider.authenticated when a cached token exists', async () => { providers = { [OAUTH_PROVIDER]: { type: 'kimi', oauth: { storage: 'file', key: 'oauth/kimi-code' } }, }; + models = { k2: { provider: OAUTH_PROVIDER, model: 'kimi-k2', maxContextSize: 128000 } }; defaultModel = 'k2'; oauthStatus.mockResolvedValue({ loggedIn: true, provider: OAUTH_PROVIDER }); const summary = await createService().get(); @@ -1555,7 +1779,7 @@ describe('AuthLegacyService', () => { name: OAUTH_PROVIDER, status: 'authenticated', }); - expect(summary.ready).toBe(true); + expect(summary.models_ready).toBe(true); }); it('treats a throwing oauth status as unauthenticated', async () => { @@ -1567,4 +1791,40 @@ describe('AuthLegacyService', () => { managed_provider: { name: OAUTH_PROVIDER, status: 'unauthenticated' }, }); }); + + it('waits for config readiness before reading the snapshot', async () => { + let release!: () => void; + const gate = new Promise((resolve) => { + release = resolve; + }); + const svc = new AuthLegacyService( + { + ready: gate, + getAll: () => ({ providers, models, defaultModel }), + } as unknown as IConfigService, + { status: oauthStatus } as unknown as IOAuthService, + ); + const pending = svc.get(); + let settled = false; + void pending.then(() => { + settled = true; + }); + await flush(); + expect(settled).toBe(false); + providers = { [NON_OAUTH_PROVIDER]: { type: 'openai', apiKey: 'sk-test' } }; + models = { k2: { provider: NON_OAUTH_PROVIDER, model: 'kimi-k2', maxContextSize: 128000 } }; + defaultModel = 'k2'; + release(); + await expect(pending).resolves.toMatchObject({ models_ready: true }); + }); + + it('re-reads the snapshot on every call without forcing a reload', async () => { + providers = { [NON_OAUTH_PROVIDER]: { type: 'openai', apiKey: 'sk-test' } }; + const svc = createService(); + await expect(svc.get()).resolves.toMatchObject({ models_ready: false }); + models = { k2: { provider: NON_OAUTH_PROVIDER, model: 'kimi-k2', maxContextSize: 128000 } }; + defaultModel = 'k2'; + await expect(svc.get()).resolves.toMatchObject({ models_ready: true }); + expect(configReload).not.toHaveBeenCalled(); + }); }); diff --git a/packages/agent-core-v2/test/app/config/config.test.ts b/packages/agent-core-v2/test/app/config/config.test.ts index aa9e5f5f412..343b93a1f8e 100644 --- a/packages/agent-core-v2/test/app/config/config.test.ts +++ b/packages/agent-core-v2/test/app/config/config.test.ts @@ -67,6 +67,10 @@ import { THINKING_SECTION, } from '#/app/kosongConfig/configSection'; import '#/app/kosongConfig/envOverlay'; +import '#/kosong/provider/providers/kimi/kimi.contrib'; +import { IOAuthService } from '#/app/auth/auth'; +import { IAuthLegacyService } from '#/app/authLegacy/authLegacy'; +import { AuthLegacyService } from '#/app/authLegacy/authLegacyService'; import { type ThinkingConfig } from '#/kosong/model/thinking'; import { KEEP_ALIVE_ON_EXIT_ENV, @@ -590,6 +594,30 @@ describe('ConfigService env overlay (live)', () => { disposables.dispose(); }); + + it('marks the env-injected flat model ready in the auth legacy summary', async () => { + const env: Record = { KIMI_MODEL_NAME: 'kimi-for-coding' }; + const disposables = new DisposableStore(); + const ix = disposables.add(new TestInstantiationService()); + ix.stub(ILogService, stubLog()); + ix.stub(IBootstrapService, stubBootstrap('/tmp/kimi-cfg', env)); + ix.stub(IFileSystemStorageService, new InMemoryStorageService()); + ix.stub(IOAuthService, { status: vi.fn() } as unknown as IOAuthService); + ix.set(IAtomicTomlDocumentStore, new SyncDescriptor(TomlAtomicDocumentStore)); + ix.set(IConfigRegistry, new SyncDescriptor(ConfigRegistry)); + ix.set(IConfigService, new SyncDescriptor(ConfigService)); + ix.set(IAuthLegacyService, new SyncDescriptor(AuthLegacyService)); + + const summary = await ix.get(IAuthLegacyService).get(); + + expect(summary).toEqual({ + models_ready: true, + providers_count: 1, + managed_provider: null, + }); + + disposables.dispose(); + }); }); describe('services config section env bindings', () => { diff --git a/packages/agent-core-v2/test/app/kosongConfig/discovery.test.ts b/packages/agent-core-v2/test/app/kosongConfig/discovery.test.ts index 042dfdedbd7..72f94758b57 100644 --- a/packages/agent-core-v2/test/app/kosongConfig/discovery.test.ts +++ b/packages/agent-core-v2/test/app/kosongConfig/discovery.test.ts @@ -565,6 +565,135 @@ describe('refreshProviderModels write behavior', () => { }); }); +describe('refreshProviderModels defaultModel self-heal', () => { + const managedProviders = { + [KIMI_CODE_PROVIDER_NAME]: { + type: 'kimi', + baseUrl: 'https://api.example.test/v1', + oauth: { storage: 'file', key: 'oauth/kimi-code' }, + }, + }; + + const managedModels = { + 'kimi-code/kimi-k2': { + provider: KIMI_CODE_PROVIDER_NAME, + model: 'kimi-k2', + maxContextSize: 131072, + capabilities: ['thinking', 'tool_use'], + displayName: 'Kimi K2', + }, + }; + + function stubManagedCatalogFetch(): void { + vi.stubGlobal( + 'fetch', + vi.fn( + async () => + new Response( + JSON.stringify({ + data: [ + { + id: 'kimi-k2', + context_length: 131072, + supports_reasoning: true, + display_name: 'Kimi K2', + }, + ], + }), + { status: 200, headers: { 'Content-Type': 'application/json' } }, + ), + ), + ); + } + + it('rewrites a missing defaultModel even when the catalog is unchanged', async () => { + stubManagedCatalogFetch(); + const { host, config, discovery, events, models } = await createHost( + { + providers: managedProviders, + models: managedModels, + }, + stubOAuthService(stubTokenProvider(['access-token'])), + ); + try { + const replaceSections = vi.spyOn(config, 'replaceSections'); + const result = await discovery.refreshProviderModels({ scope: 'all' }); + + expect(result.failed).toEqual([]); + expect(result.unchanged).toEqual([]); + expect(result.changed).toEqual([ + { provider_id: KIMI_CODE_PROVIDER_NAME, provider_name: 'Kimi Code', added: 0, removed: 0 }, + ]); + expect(replaceSections).toHaveBeenCalledTimes(1); + expect(config.get('defaultModel')).toBe('kimi-code/kimi-k2'); + expect(config.get('thinking')).toEqual({ enabled: true }); + expect(models.list()['kimi-code/kimi-k2']).toBeDefined(); + expect(events.published).toEqual([ + expect.objectContaining({ type: 'event.model_catalog.changed' }), + ]); + } finally { + host.dispose(); + } + }); + + it('reports unchanged and skips writes when the catalog and defaultModel are intact', async () => { + stubManagedCatalogFetch(); + const { host, config, discovery, events } = await createHost( + { + providers: managedProviders, + models: managedModels, + defaultModel: 'kimi-code/kimi-k2', + thinking: { enabled: true }, + }, + stubOAuthService(stubTokenProvider(['access-token'])), + ); + try { + const replaceSections = vi.spyOn(config, 'replaceSections'); + const result = await discovery.refreshProviderModels({ scope: 'all' }); + + expect(result).toEqual({ + changed: [], + unchanged: [KIMI_CODE_PROVIDER_NAME], + failed: [], + }); + expect(replaceSections).not.toHaveBeenCalled(); + expect(events.published).toEqual([]); + expect(config.get('defaultModel')).toBe('kimi-code/kimi-k2'); + } finally { + host.dispose(); + } + }); + + it('reports unchanged when the defaultModel belongs to a static provider', async () => { + stubManagedCatalogFetch(); + const { host, config, discovery, events } = await createHost( + { + providers: { ...staticProviders, ...managedProviders }, + models: { ...staticModels, ...managedModels }, + defaultModel: 's1', + thinking: { enabled: false }, + }, + stubOAuthService(stubTokenProvider(['access-token'])), + ); + try { + const replaceSections = vi.spyOn(config, 'replaceSections'); + const result = await discovery.refreshProviderModels({ scope: 'all' }); + + expect(result).toEqual({ + changed: [], + unchanged: [KIMI_CODE_PROVIDER_NAME], + failed: [], + }); + expect(replaceSections).not.toHaveBeenCalled(); + expect(events.published).toEqual([]); + expect(config.get('defaultModel')).toBe('s1'); + expect(config.get('thinking')).toEqual({ enabled: false }); + } finally { + host.dispose(); + } + }); +}); + describe('modelCatalog config section', () => { it('self-registers and validates', () => { const registry = new ConfigRegistry(); diff --git a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts index 7536c048219..59ea25d6227 100644 --- a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts +++ b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts @@ -9,6 +9,7 @@ import { deriveProviderId, effectiveModelConfig, resolveModelAuthMaterial, + resolveModelForReady, } from '#/kosong/model/modelAuth'; function authMaterial(args: { @@ -134,3 +135,140 @@ describe('deriveProviderId', () => { expect(deriveProviderId('not-a-url')).toBe('not-a-url'); }); }); + +describe('resolveModelForReady', () => { + const providers: Readonly> = { + 'prov-a': { type: 'openai', apiKey: 'sk-a' }, + '__kimi_env__': { type: 'kimi', baseUrl: 'https://api.example.test/coding/v1' }, + }; + + it('reports no-default when the model id is missing or empty', () => { + expect(resolveModelForReady(undefined, {}, providers)).toEqual({ + resolved: false, + reason: 'no-default', + }); + expect(resolveModelForReady('', {}, providers)).toEqual({ + resolved: false, + reason: 'no-default', + }); + expect(resolveModelForReady(' ', {}, providers)).toEqual({ + resolved: false, + reason: 'no-default', + }); + }); + + it('reports dangling-alias when the alias is absent from the models table', () => { + expect(resolveModelForReady('ghost', {}, providers)).toEqual({ + resolved: false, + reason: 'dangling-alias', + }); + }); + + it('resolves a providerId pointing at an existing provider', () => { + const models = { m: { providerId: 'prov-a', model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady('m', models, providers)).toEqual({ resolved: true }); + }); + + it('resolves a provider field pointing at an existing provider', () => { + const models = { m: { provider: 'prov-a', model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady('m', models, providers)).toEqual({ resolved: true }); + }); + + it('reports provider-missing when a named provider is absent from the providers table', () => { + expect( + resolveModelForReady('m', { m: { providerId: 'gone', model: 'gpt' } }, providers), + ).toEqual({ resolved: false, reason: 'provider-missing' }); + expect( + resolveModelForReady('m', { m: { provider: 'gone', model: 'gpt' } }, providers), + ).toEqual({ resolved: false, reason: 'provider-missing' }); + }); + + it('resolves a providerless flat model through its baseUrl', () => { + const models = { + m: { + baseUrl: 'https://api.example.test/v1', + model: 'gpt', + protocol: 'openai' as const, + maxContextSize: 4096, + apiKey: 'sk-x', + }, + }; + expect(resolveModelForReady('m', models, {})).toEqual({ resolved: true }); + }); + + it('reports unresolvable when provider id, provider field, and baseUrl are all absent', () => { + expect(resolveModelForReady('m', { m: { model: 'gpt' } }, providers)).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + + it('resolves the env-overlay injected model against the env provider', () => { + const models = { + '__kimi_env_model__': { + provider: '__kimi_env__', + model: 'kimi-for-coding', + maxContextSize: 262144, + }, + }; + expect(resolveModelForReady('__kimi_env_model__', models, providers)).toEqual({ + resolved: true, + }); + }); + + it('reports unresolvable when the provider exists but the wire name is missing', () => { + const models = { m: { provider: 'prov-a' } }; + expect(resolveModelForReady('m', models, providers)).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + + it('resolves through the effective config with overrides merged', () => { + const models = { + m: { + provider: 'prov-a', + model: 'gpt', + overrides: { maxContextSize: 4096, displayName: 'G' }, + }, + }; + expect(resolveModelForReady('m', models, providers)).toEqual({ resolved: true }); + }); + + it('reports unresolvable when the provider-backed model lacks maxContextSize', () => { + const models = { m: { provider: 'prov-a', model: 'gpt' } }; + expect(resolveModelForReady('m', models, providers)).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + + it('reports unresolvable when maxContextSize is not positive', () => { + const models = { m: { provider: 'prov-a', model: 'gpt', maxContextSize: 0 } }; + expect(resolveModelForReady('m', models, providers)).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + + it('reports unresolvable when a providerless flat model lacks a protocol', () => { + const models = { + m: { baseUrl: 'https://api.example.test/v1', model: 'gpt', maxContextSize: 4096 }, + }; + expect(resolveModelForReady('m', models, {})).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + + it('reports unresolvable when neither endpoint nor protocol is derivable from the provider', () => { + const models = { m: { provider: 'prov-x', model: 'gpt', maxContextSize: 4096 } }; + const unknownVendors: Readonly> = { + 'prov-x': { type: 'my-vendor', apiKey: 'sk-x' }, + }; + expect(resolveModelForReady('m', models, unknownVendors)).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); +}); diff --git a/packages/agent-core/src/services/authSummary/authSummary.ts b/packages/agent-core/src/services/authSummary/authSummary.ts index ae4f7c214cf..79c0df68d29 100644 --- a/packages/agent-core/src/services/authSummary/authSummary.ts +++ b/packages/agent-core/src/services/authSummary/authSummary.ts @@ -9,11 +9,12 @@ * classes below; daemon route layers map them to envelope codes * `40110 / 40111 / 40112 / 40113`. * - * Why centralized: the same "is there a usable provider + model + token?" - * computation is needed by both the read probe and every write-side entry that - * could surface 50001 "internal" today. Co-locating it keeps the - * logic in one place + makes it cheap to add new gated entries (PATCH session - * model, etc.). + * Orthogonal signals: `get()` reports config-side readiness + * (`models_ready` — the configured default model resolves) plus the managed + * credential status (`managed_provider`), while `ensureReady()` is the + * write-side credential gate. Co-locating them keeps the config/model + * resolution logic in one place + makes it cheap to add new gated entries + * (PATCH session model, etc.). * * Status mapping note: we only return `'authenticated'` (token cached) or * `'unauthenticated'` (no token). The `'expired' / 'revoked'` states require @@ -34,8 +35,12 @@ export interface IAuthSummaryService { readonly _serviceBrand: undefined; /** - * Compute the current readiness snapshot. Cheap (one config read + one - * cached-token lookup); safe to call on every `GET /v1/auth`. + * Compute the current auth snapshot: `models_ready` (config-side — the + * default model resolves, no credential check) and `managed_provider` + * (managed OAuth login status from the cached token). The two are + * orthogonal: after logout, third-party defaults keep `models_ready: true`. + * Cheap (one config read + one cached-token lookup); safe to call on every + * `GET /v1/auth`. */ get(): Promise; diff --git a/packages/agent-core/src/services/authSummary/authSummaryService.ts b/packages/agent-core/src/services/authSummary/authSummaryService.ts index b9a3c5af135..b3840dbbf79 100644 --- a/packages/agent-core/src/services/authSummary/authSummaryService.ts +++ b/packages/agent-core/src/services/authSummary/authSummaryService.ts @@ -37,7 +37,6 @@ export class AuthSummaryService const config = await this._readConfig(); const providers = config.providers ?? {}; const providers_count = Object.keys(providers).length; - const default_model = nonEmpty(config.defaultModel); let managed_provider: AuthSummary['managed_provider'] = null; if (providers[MANAGED_PROVIDER_NAME] !== undefined) { @@ -48,12 +47,11 @@ export class AuthSummaryService }; } - const ready = - providers_count >= 1 && - default_model !== null && - (managed_provider === null || managed_provider.status !== 'revoked'); - - return { ready, providers_count, default_model, managed_provider }; + return { + models_ready: resolvesReadyModel(config), + providers_count, + managed_provider, + }; } async ensureReady(modelOverride?: string): Promise { @@ -116,7 +114,7 @@ export class AuthSummaryService // future RW endpoints land on disk via `writeConfigFile`, but // KimiCore's `this.config` only refreshes when something explicitly // asks for `reload`. Without this flag, `GET /v1/auth` would stay - // `ready:false` for the entire daemon lifetime after first login. + // `models_ready:false` for the entire daemon lifetime after first login. return this.core.rpc.getKimiConfig({ reload: true }); } @@ -139,6 +137,19 @@ function nonEmpty(value: string | undefined): string | null { return trimmed.length === 0 ? null : trimmed; } +// Mirrors the resolution segment of `ensureReady` below (alias → provider +// lookup, no credential probe) so the read probe and the write gate agree on +// what "a usable model" means. +function resolvesReadyModel(config: KimiConfig): boolean { + const modelId = config.defaultModel; + if (modelId === undefined || modelId === '') return false; + const alias = config.models?.[modelId]; + if (alias === undefined) return false; + const providerName = alias.provider ?? config.defaultProvider; + if (providerName === undefined || providerName === '') return false; + return (config.providers ?? {})[providerName] !== undefined; +} + // Self-register under the global singleton registry. All ctor deps are // `@I…`-injected (@IEnvironmentService / @ICoreProcessService); // `staticArguments = []`. `supportsDelayedInstantiation = false` preserves diff --git a/packages/agent-core/src/services/oauth/oauth.ts b/packages/agent-core/src/services/oauth/oauth.ts index 58871bac772..d244142dd1e 100644 --- a/packages/agent-core/src/services/oauth/oauth.ts +++ b/packages/agent-core/src/services/oauth/oauth.ts @@ -21,7 +21,8 @@ * **Token + config** land via the toolkit's provisioning path: on success, * the `managed:kimi-code` provider + models entry are written to * `config.toml`, and the cached token is saved to credentials. Frontend - * follow-up: hit `GET /v1/auth` to confirm `ready: true`. + * follow-up: hit `GET /v1/auth` to confirm + * `managed_provider.status: 'authenticated'` and `models_ready: true`. * * **Architecture**: * @@ -97,8 +98,9 @@ export interface IOAuthService { /** * Logout — delete the stored token + strip the managed provider's - * `apply` config entries (provider + models). After this, `GET /v1/auth` - * flips to `ready: false`. + * `apply` config entries (provider + models). Afterwards `managed_provider` + * reports `unauthenticated`; `models_ready` only drops when the default + * model itself was managed — third-party defaults keep it `true`. */ logout(providerName?: string): Promise; } diff --git a/packages/agent-core/test/services/model-catalog-service.test.ts b/packages/agent-core/test/services/model-catalog-service.test.ts index 9c93d864796..c36e1b36234 100644 --- a/packages/agent-core/test/services/model-catalog-service.test.ts +++ b/packages/agent-core/test/services/model-catalog-service.test.ts @@ -479,6 +479,7 @@ describe('ModelCatalogService', () => { oauth: { storage: 'file', key: 'oauth/kimi-code' }, }, }, + defaultModel: 'kimi-code/kimi-for-coding', models: { 'kimi-code/kimi-for-coding': { provider: KIMI_CODE_PROVIDER_NAME, diff --git a/packages/agent-core/test/services/prompt-service.test.ts b/packages/agent-core/test/services/prompt-service.test.ts index 449f28b5146..cfb67a60664 100644 --- a/packages/agent-core/test/services/prompt-service.test.ts +++ b/packages/agent-core/test/services/prompt-service.test.ts @@ -282,9 +282,8 @@ function makeBus(): { function makeAuth(opts: { ensureReadyError?: Error } = {}): IAuthSummaryService { return { get: vi.fn().mockResolvedValue({ - ready: true, + models_ready: true, providers_count: 1, - default_model: 'kimi-k2', managed_provider: null, }), ensureReady: vi.fn().mockImplementation(async () => { diff --git a/packages/kap-server/AGENTS.md b/packages/kap-server/AGENTS.md index 0f2de6212c9..817e13b7998 100644 --- a/packages/kap-server/AGENTS.md +++ b/packages/kap-server/AGENTS.md @@ -31,7 +31,7 @@ Implements the op-batch sequencing contract: ## Session events - The session's work aggregate behind `event.session.work_changed` (`busy` / `main_turn_active` / `pending_interaction` / `last_turn_reason`) is owned by the core's `ISessionActivityView` (`sessionActivity` domain, Session scope): the broadcaster only schedules the wire emission around turn frames (`busy:false` lands after `turn.ended`), and `resolveSessionFacts` (`src/routes/sessions.ts`) reads the same view — never fold per-agent activity at the edge. -- Delivery split on `/api/v1/ws`: global events (`session.meta.updated` and the `event.session.*` / `event.workspace.*` / `event.config.*` / `event.di.*` families, including every activated session's `event.session.work_changed`) fan out to EVERY established connection — `WsConnectionV1` registers itself via `broadcaster.addGlobalTarget` on construction and unregisters on close — while session/agent-grained events only reach connections subscribed to that session (subject to `agent_filter` and the transcript suppression above); transcript frames are a separate channel governed by the per-agent grades alone and bypass `agent_filter` entirely. One exception: the high-churn `event.di.*` debug feed only reaches connections opted in via `broadcaster.addDiEventTarget` — a temporary gate until a client-declared event whitelist exists, currently keyed on `client_hello` carrying `client_id: 'kimi-inspect'`. +- Delivery split on `/api/v1/ws`: global events (`session.meta.updated` and the `event.session.*` / `event.workspace.*` / `event.config.*` / `event.model_catalog.*` / `event.di.*` families, including every activated session's `event.session.work_changed`) fan out to EVERY established connection — `WsConnectionV1` registers itself via `broadcaster.addGlobalTarget` on construction and unregisters on close — while session/agent-grained events only reach connections subscribed to that session (subject to `agent_filter` and the transcript suppression above); transcript frames are a separate channel governed by the per-agent grades alone and bypass `agent_filter` entirely. One exception: the high-churn `event.di.*` debug feed only reaches connections opted in via `broadcaster.addDiEventTarget` — a temporary gate until a client-declared event whitelist exists, currently keyed on `client_hello` carrying `client_id: 'kimi-inspect'`. ## Global search diff --git a/packages/kap-server/src/protocol/events-zod.ts b/packages/kap-server/src/protocol/events-zod.ts index 98b1206579f..95ecad53a2c 100644 --- a/packages/kap-server/src/protocol/events-zod.ts +++ b/packages/kap-server/src/protocol/events-zod.ts @@ -625,7 +625,7 @@ export const sessionStatusChangedEventSchema = z.object({ export const configChangedEventSchema = z.object({ type: z.literal('event.config.changed'), - changedFields: z.array(z.string()), + changedFields: z.array(z.string().min(1)), config: configResponseSchema, }); @@ -639,6 +639,25 @@ export const configWarningEventSchema = z.object({ ), }); +export const modelCatalogChangedEventSchema = z.object({ + type: z.literal('event.model_catalog.changed'), + changed: z.array( + z.object({ + provider_id: z.string().min(1), + provider_name: z.string().min(1), + added: z.number().int().min(0), + removed: z.number().int().min(0), + }), + ), + unchanged: z.array(z.string().min(1)), + failed: z.array( + z.object({ + provider: z.string().min(1), + reason: z.string().min(1), + }), + ), +}); + export const pluginChangedEventSchema = z.object({ type: z.literal('event.plugin.changed'), }); @@ -1030,6 +1049,9 @@ export const agentEventSchema = z.discriminatedUnion('type', [ workspaceDeletedEventSchema, sessionWorkChangedEventSchema, sessionStatusChangedEventSchema, + configChangedEventSchema, + configWarningEventSchema, + modelCatalogChangedEventSchema, diUnitChangedEventSchema, pluginChangedEventSchema, capabilityChangedEventSchema, diff --git a/packages/kap-server/src/routes/config.ts b/packages/kap-server/src/routes/config.ts index 1c59d57998a..70231d3ba4a 100644 --- a/packages/kap-server/src/routes/config.ts +++ b/packages/kap-server/src/routes/config.ts @@ -1,9 +1,4 @@ -import { - ConfigChanged, - IConfigService, - IEventService, - type Scope, -} from '@moonshot-ai/agent-core-v2'; +import { IConfigService, type Scope } from '@moonshot-ai/agent-core-v2'; import { errEnvelope, okEnvelope } from '../envelope'; import { requestLog } from '../lib/requestLog'; @@ -76,9 +71,6 @@ export function registerConfigRoutes(app: ConfigRouteHost, core: Scope): void { } const response = toConfigResponse(config.getAll()); const changedFields = Object.keys(req.body as Record); - core.accessor.get(IEventService).publish( - new ConfigChanged({ payload: { changedFields, config: response } }), - ); requestLog(req)?.info({ changedFields }, 'config updated'); reply.send(okEnvelope(response, req.id)); } catch (error) { @@ -91,7 +83,7 @@ export function registerConfigRoutes(app: ConfigRouteHost, core: Scope): void { app.post(setRoute.path, setRoute.options, setRoute.handler as Parameters[2]); } -function toConfigResponse(resolved: Record): ConfigResponse { +export function toConfigResponse(resolved: Record): ConfigResponse { const wire: Record = {}; for (const [domain, value] of Object.entries(resolved)) { wire[camelToSnake(domain)] = domain === 'providers' ? toProviderResponses(value) : value; diff --git a/packages/kap-server/src/services/config/configChangedPublisher.ts b/packages/kap-server/src/services/config/configChangedPublisher.ts new file mode 100644 index 00000000000..9899c6fe786 --- /dev/null +++ b/packages/kap-server/src/services/config/configChangedPublisher.ts @@ -0,0 +1,48 @@ +import { ConfigChanged, IConfigService, IEventService, type Scope } from '@moonshot-ai/agent-core-v2'; + +import { toConfigResponse } from '../../routes/config'; + +export interface ConfigChangedPublisher { + close(): void; +} + +const FLUSH_DELAY_MS = 10; + +export function startConfigChangedPublisher(core: Scope): ConfigChangedPublisher { + const config = core.accessor.get(IConfigService); + const events = core.accessor.get(IEventService); + let closed = false; + let timer: ReturnType | undefined; + const pending = new Set(); + + const flush = (): void => { + timer = undefined; + if (closed || pending.size === 0) return; + const changedFields = [...pending].toSorted(); + pending.clear(); + events.publish( + new ConfigChanged({ + payload: { changedFields, config: toConfigResponse(config.getAll()) }, + }), + ); + }; + + const subscription = config.onDidSectionChange((event) => { + if (closed) return; + pending.add(event.domain); + if (timer !== undefined) clearTimeout(timer); + timer = setTimeout(flush, FLUSH_DELAY_MS); + }); + + return { + close: () => { + closed = true; + if (timer !== undefined) { + clearTimeout(timer); + timer = undefined; + } + pending.clear(); + subscription.dispose(); + }, + }; +} diff --git a/packages/kap-server/src/start.ts b/packages/kap-server/src/start.ts index ec5a2741263..a1c3cb0e334 100644 --- a/packages/kap-server/src/start.ts +++ b/packages/kap-server/src/start.ts @@ -79,6 +79,7 @@ import { } from './services/telemetry'; import { TranscriptService } from './services/transcript/transcriptService'; import { ModelCatalogRefreshScheduler } from './services/modelCatalog/modelCatalogRefreshScheduler'; +import { startConfigChangedPublisher } from './services/config/configChangedPublisher'; import { createAuthFailureLimiter } from './middleware/rateLimit'; import { createAuthTokenService, @@ -291,6 +292,7 @@ export async function startServer(opts: ServerStartOptions): Promise => { + configChangedPublisher.close(); await app.close(); configWarningSubscription.dispose(); pluginChangeSubscription.dispose(); @@ -351,6 +353,7 @@ export async function startServer(opts: ServerStartOptions): Promise { diff --git a/packages/kap-server/src/transport/ws/v1/events.ts b/packages/kap-server/src/transport/ws/v1/events.ts index f2f989e4f62..9353b80ef79 100644 --- a/packages/kap-server/src/transport/ws/v1/events.ts +++ b/packages/kap-server/src/transport/ws/v1/events.ts @@ -102,6 +102,25 @@ export interface ConfigWarningEvent { readonly warnings: readonly ConfigWarningItem[]; } +export interface ModelCatalogRefreshChange { + readonly provider_id: string; + readonly provider_name: string; + readonly added: number; + readonly removed: number; +} + +export interface ModelCatalogRefreshFailure { + readonly provider: string; + readonly reason: string; +} + +export interface ModelCatalogChangedEvent { + readonly type: 'event.model_catalog.changed'; + readonly changed: readonly ModelCatalogRefreshChange[]; + readonly unchanged: readonly string[]; + readonly failed: readonly ModelCatalogRefreshFailure[]; +} + export interface PluginChangedEvent { readonly type: 'event.plugin.changed'; } @@ -206,6 +225,7 @@ export type AgentEvent = | SessionStatusChangedEvent | ConfigChangedEvent | ConfigWarningEvent + | ModelCatalogChangedEvent | PluginChangedEvent | CapabilityChangedEvent | DiUnitChangedEvent diff --git a/packages/kap-server/src/transport/ws/v1/sessionEventBroadcaster.ts b/packages/kap-server/src/transport/ws/v1/sessionEventBroadcaster.ts index 6888ef22de1..33918356260 100644 --- a/packages/kap-server/src/transport/ws/v1/sessionEventBroadcaster.ts +++ b/packages/kap-server/src/transport/ws/v1/sessionEventBroadcaster.ts @@ -26,12 +26,18 @@ import { import type { ConfigWarningItem, DiUnitChangedEvent, + ModelCatalogRefreshChange, + ModelCatalogRefreshFailure, SessionCreatedEvent, SessionMetaUpdatedEvent, Event, } from './events'; import { isVolatileEventType } from './events'; import type { SessionCursor } from '../../../protocol/ws-control'; +import { + configChangedEventSchema, + modelCatalogChangedEventSchema, +} from '../../../protocol/events-zod'; import type { InFlightTurn, SnapshotSubagent } from '../../../protocol/rest-snapshot'; import { detachGrades, @@ -715,6 +721,35 @@ export class SessionEventBroadcaster { ); return; } + if (event.type === 'event.config.changed') { + const payload = configChangedPayload(corePayload); + if (payload === undefined) return; + void this.dispatchGlobal({ + type: 'event.config.changed', + changedFields: payload.changedFields, + config: payload.config, + agentId: 'main', + sessionId: GLOBAL_SESSION_ID, + } as Event).catch((error: unknown) => + this.logDispatchError(GLOBAL_SESSION_ID, 'event.config.changed', error), + ); + return; + } + if (event.type === 'event.model_catalog.changed') { + const payload = modelCatalogChangedPayload(corePayload); + if (payload === undefined) return; + void this.dispatchGlobal({ + type: 'event.model_catalog.changed', + changed: payload.changed, + unchanged: payload.unchanged, + failed: payload.failed, + agentId: 'main', + sessionId: GLOBAL_SESSION_ID, + } as Event).catch((error: unknown) => + this.logDispatchError(GLOBAL_SESSION_ID, 'event.model_catalog.changed', error), + ); + return; + } if (event.type === 'event.di.unit_changed') { const payload = diUnitChangedPayload(corePayload); if (payload === undefined) return; @@ -1085,6 +1120,7 @@ function isGlobalEvent(type: string): boolean { type.startsWith('event.session.') || type.startsWith('event.workspace.') || type.startsWith('event.config.') || + type.startsWith('event.model_catalog.') || type.startsWith('event.plugin.') || type.startsWith('event.capability.') || type.startsWith('event.di.') @@ -1405,3 +1441,28 @@ function configWarningPayload(payload: unknown): { warnings: ConfigWarningItem[] } return { warnings: items }; } + +const configChangedPayloadSchema = configChangedEventSchema.omit({ type: true }); +const modelCatalogChangedPayloadSchema = modelCatalogChangedEventSchema.omit({ type: true }); + +function configChangedPayload( + payload: unknown, +): { changedFields: string[]; config: unknown } | undefined { + const parsed = configChangedPayloadSchema.safeParse(payload); + if (!parsed.success) return undefined; + return { changedFields: parsed.data.changedFields, config: parsed.data.config }; +} + +function modelCatalogChangedPayload( + payload: unknown, +): + | { + changed: ModelCatalogRefreshChange[]; + unchanged: string[]; + failed: ModelCatalogRefreshFailure[]; + } + | undefined { + const parsed = modelCatalogChangedPayloadSchema.safeParse(payload); + if (!parsed.success) return undefined; + return parsed.data; +} diff --git a/packages/kap-server/test/auth.test.ts b/packages/kap-server/test/auth.test.ts index 83879c64788..f5e10e64521 100644 --- a/packages/kap-server/test/auth.test.ts +++ b/packages/kap-server/test/auth.test.ts @@ -58,17 +58,16 @@ describe('server-v2 GET /api/v1/auth', () => { return authSummarySchema.parse(body.data); } - it('returns ready=false with an empty snapshot on empty config', async () => { + it('returns models_ready=false with an empty snapshot on empty config', async () => { await boot(); expect(await getAuth()).toEqual({ - ready: false, + models_ready: false, providers_count: 0, - default_model: null, managed_provider: null, }); }); - it('returns ready=true when provider + api_key + default_model are set', async () => { + it('returns models_ready=true when the default model resolves to a configured provider', async () => { await boot( [ 'default_model = "x"', @@ -85,14 +84,13 @@ describe('server-v2 GET /api/v1/auth', () => { ].join('\n'), ); expect(await getAuth()).toEqual({ - ready: true, + models_ready: true, providers_count: 1, - default_model: 'x', managed_provider: null, }); }); - it('returns ready=false when a provider exists but default_model is missing', async () => { + it('returns models_ready=false when a provider exists but default_model is missing', async () => { await boot( [ '[providers.x]', @@ -107,12 +105,51 @@ describe('server-v2 GET /api/v1/auth', () => { ].join('\n'), ); const summary = await getAuth(); - expect(summary.ready).toBe(false); + expect(summary.models_ready).toBe(false); expect(summary.providers_count).toBe(1); - expect(summary.default_model).toBeNull(); expect(summary.managed_provider).toBeNull(); }); + it('returns models_ready=false when the default model dangles', async () => { + await boot( + [ + 'default_model = "gone"', + '', + '[providers.x]', + 'type = "kimi"', + 'api_key = "sk-test"', + '', + '[models.x]', + 'provider = "x"', + 'model = "x"', + 'max_context_size = 1000', + '', + ].join('\n'), + ); + const summary = await getAuth(); + expect(summary.models_ready).toBe(false); + expect(summary.providers_count).toBe(1); + }); + + it('returns models_ready=true for a providerless flat default model', async () => { + await boot( + [ + 'default_model = "flat"', + '', + '[models.flat]', + 'base_url = "https://example.test/v1"', + 'model = "x"', + 'protocol = "openai"', + 'max_context_size = 1000', + 'api_key = "sk-test"', + '', + ].join('\n'), + ); + const summary = await getAuth(); + expect(summary.models_ready).toBe(true); + expect(summary.providers_count).toBe(0); + }); + it('surfaces managed_provider.unauthenticated without a cached token', async () => { await boot( [ @@ -131,6 +168,6 @@ describe('server-v2 GET /api/v1/auth', () => { name: 'managed:kimi-code', status: 'unauthenticated', }); - expect(summary.ready).toBe(false); + expect(summary.models_ready).toBe(false); }); }); diff --git a/packages/kap-server/test/boot.test.ts b/packages/kap-server/test/boot.test.ts index 40432055ca8..4f66a7895cd 100644 --- a/packages/kap-server/test/boot.test.ts +++ b/packages/kap-server/test/boot.test.ts @@ -74,10 +74,10 @@ describe('server-v2 boot', () => { expect(auth.status).toBe(200); const authBody = await auth.json() as { code: number; - data: { ready: boolean; providers_count: number; default_model: string | null }; + data: { models_ready: boolean; providers_count: number }; }; expect(authBody.code).toBe(0); - expect(typeof authBody.data.ready).toBe('boolean'); + expect(typeof authBody.data.models_ready).toBe('boolean'); expect(authBody.data.providers_count).toBeGreaterThanOrEqual(0); const oauthPoll = await authedFetch(server, base, '/api/v1/oauth/login'); diff --git a/packages/kap-server/test/config.test.ts b/packages/kap-server/test/config.test.ts index bb9a07bc865..c2a7b8468b7 100644 --- a/packages/kap-server/test/config.test.ts +++ b/packages/kap-server/test/config.test.ts @@ -2,13 +2,23 @@ import { mkdtemp, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; +import { + ConfigChanged, + IConfigService, + IEventService, + type ConfigSectionChangedEvent, + type Event2, + type Scope, +} from '@moonshot-ai/agent-core-v2'; import { configResponseSchema, type ConfigResponse } from '../src/protocol/rest-config'; import { ErrorCode } from '../src/protocol/error-codes'; -import { afterEach, beforeEach, describe, expect, it } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { WebSocket } from 'ws'; import { type RunningServer, startServer } from '../src/start'; +import { startConfigChangedPublisher } from '../src/services/config/configChangedPublisher'; import { TEST_HOST_IDENTITY } from './helpers/hostIdentity'; -import { authedFetch } from './helpers/auth'; +import { authedFetch, bearerToken } from './helpers/auth'; interface Envelope { code: number; @@ -32,7 +42,7 @@ describe('server-v2 /api/v1/config', () => { server = undefined; } if (home !== undefined) { - await rm(home, { recursive: true, force: true }); + await rm(home, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 } as never); home = undefined; } }); @@ -174,3 +184,245 @@ describe('server-v2 /api/v1/config', () => { expect(body.code).toBe(0); }); }); + +describe('server-v2 config changed WS notifications', () => { + let server: RunningServer | undefined; + let home: string | undefined; + let base: string; + const sockets: WebSocket[] = []; + + beforeEach(async () => { + home = await mkdtemp(join(tmpdir(), 'kimi-server-v2-config-ws-')); + }); + + afterEach(async () => { + for (const ws of sockets.splice(0)) ws.close(); + if (server !== undefined) { + await server.close(); + server = undefined; + } + if (home !== undefined) { + await rm(home, { recursive: true, force: true }); + home = undefined; + } + }); + + async function boot(toml?: string): Promise { + if (toml !== undefined) { + await writeFile(join(home as string, 'config.toml'), toml, 'utf-8'); + } + server = await startServer({ + hostIdentity: TEST_HOST_IDENTITY, + host: '127.0.0.1', + port: 0, + homeDir: home, + logLevel: 'silent', + }); + base = `http://127.0.0.1:${server.port}`; + } + + interface ConfigChangedFrame { + type: 'event.config.changed'; + payload: { + changedFields: string[]; + config: Record; + }; + } + + async function openWs(): Promise { + const live = server as RunningServer; + const ws = new WebSocket(`ws://127.0.0.1:${live.port}/api/v1/ws`, [ + `kimi-code.bearer.${bearerToken(live)}`, + ]); + sockets.push(ws); + const frames: ConfigChangedFrame[] = []; + ws.on('message', (data) => { + const frame = JSON.parse((data as Buffer).toString()) as { type?: string }; + if (frame.type === 'event.config.changed') frames.push(frame as ConfigChangedFrame); + }); + await new Promise((resolve) => ws.on('open', resolve)); + ws.send(JSON.stringify({ type: 'client_hello', payload: { client_id: 'config-ws-test' } })); + return frames; + } + + async function patchConfig(patch: Record): Promise { + const res = await authedFetch(server as RunningServer, base, '/api/v1/config', { + method: 'POST', + headers: { 'content-type': 'application/json' }, + body: JSON.stringify(patch), + }); + expect(res.status).toBe(200); + const body = (await res.json()) as Envelope; + expect(body.code).toBe(0); + } + + it('publishes a trailing event with camelCase changedFields and the full snapshot after POST /config', async () => { + await boot('default_permission_mode = "auto"\n'); + const frames = await openWs(); + + await patchConfig({ yolo: true }); + + await vi.waitFor(() => expect(frames.length).toBeGreaterThanOrEqual(1)); + const last = frames.at(-1) as ConfigChangedFrame; + expect(last.payload.changedFields).toEqual(['defaultPermissionMode']); + expect(last.payload.config['default_permission_mode']).toBe('yolo'); + expect(last.payload.config['yolo']).toBe(true); + expect(last.payload.config).toHaveProperty('providers'); + }); + + it('publishes camelCase changedFields on the engine write path used by OAuth refreshes', async () => { + await boot(); + const frames = await openWs(); + + const config = (server as RunningServer).core.accessor.get(IConfigService); + await config.ready; + await config.replace('defaultModel', 'k2'); + + await vi.waitFor(() => expect(frames.length).toBeGreaterThanOrEqual(1)); + const last = frames.at(-1) as ConfigChangedFrame; + expect(last.payload.changedFields).toEqual(['defaultModel']); + expect(last.payload.config['default_model']).toBe('k2'); + }); + + it('publishes an event when config.toml is edited outside the process and reloaded', async () => { + await boot('default_permission_mode = "auto"\n'); + const frames = await openWs(); + + await writeFile( + join(home as string, 'config.toml'), + 'default_permission_mode = "yolo"\n', + 'utf-8', + ); + const config = (server as RunningServer).core.accessor.get(IConfigService); + await config.ready; + await config.reload(); + + await vi.waitFor(() => expect(frames.length).toBeGreaterThanOrEqual(1), { timeout: 10000 }); + const last = frames.at(-1) as ConfigChangedFrame; + expect(last.payload.changedFields).toContain('defaultPermissionMode'); + expect(last.payload.config['default_permission_mode']).toBe('yolo'); + }); + + it('closes the config publisher before the app, so a pending change is never delivered during shutdown', async () => { + await boot(); + const published: string[] = []; + const events = (server as RunningServer).core.accessor.get(IEventService); + const subscription = events.subscribe((event) => { + if (event.type === 'event.config.changed') published.push(event.type); + }); + + const config = (server as RunningServer).core.accessor.get(IConfigService); + await config.ready; + await config.replace('defaultModel', 'k2'); + for (const ws of sockets.splice(0)) ws.close(); + const live = server as RunningServer; + server = undefined; + await live.close(); + + await new Promise((resolve) => setTimeout(resolve, 50)); + expect(published).toHaveLength(0); + subscription.dispose(); + }); +}); + +describe('configChangedPublisher', () => { + afterEach(() => { + vi.useRealTimers(); + }); + + function setup() { + const listeners = new Set<(event: ConfigSectionChangedEvent) => void>(); + let backing: Record = {}; + const published: ConfigChanged[] = []; + let disposed = false; + const core = { + accessor: { + get: (token: unknown) => { + if (token === IConfigService) { + return { + onDidSectionChange: (listener: (event: ConfigSectionChangedEvent) => void) => { + listeners.add(listener); + return { + dispose: () => { + disposed = true; + listeners.delete(listener); + }, + }; + }, + getAll: () => backing, + }; + } + return { + publish: (event: Event2) => published.push(event as ConfigChanged), + }; + }, + }, + } as unknown as Scope; + const publisher = startConfigChangedPublisher(core); + const fire = (domain: string): void => { + for (const listener of listeners) { + listener({ domain, source: 'set', value: undefined, previousValue: undefined }); + } + }; + return { + publisher, + published, + fire, + isDisposed: () => disposed, + setBacking: (value: Record) => { + backing = value; + }, + }; + } + + it('merges section events inside one flush window into a single ConfigChanged', () => { + vi.useFakeTimers(); + const { published, fire } = setup(); + + fire('defaultPermissionMode'); + fire('defaultModel'); + vi.advanceTimersByTime(50); + + expect(published).toHaveLength(1); + expect(published[0]?.payload.changedFields).toEqual(['defaultModel', 'defaultPermissionMode']); + }); + + it('projects the full config snapshot at flush time', () => { + vi.useFakeTimers(); + const { published, fire, setBacking } = setup(); + + fire('defaultModel'); + setBacking({ defaultModel: 'k2', providers: {} }); + vi.advanceTimersByTime(50); + + expect(published).toHaveLength(1); + expect(published[0]?.payload.config).toEqual({ default_model: 'k2', providers: {} }); + }); + + it('always delivers a trailing event for late-arriving changes', () => { + vi.useFakeTimers(); + const { published, fire } = setup(); + + fire('defaultPermissionMode'); + vi.advanceTimersByTime(12); + fire('models'); + vi.advanceTimersByTime(12); + + expect(published).toHaveLength(2); + expect(published[1]?.payload.changedFields).toEqual(['models']); + }); + + it('drops pending changes on close and never publishes afterwards', () => { + vi.useFakeTimers(); + const { published, publisher, fire, isDisposed } = setup(); + + fire('defaultModel'); + publisher.close(); + vi.advanceTimersByTime(50); + fire('models'); + vi.advanceTimersByTime(50); + + expect(published).toHaveLength(0); + expect(isDisposed()).toBe(true); + }); +}); diff --git a/packages/kap-server/test/modelCatalog.test.ts b/packages/kap-server/test/modelCatalog.test.ts index a5358f7e1c5..da7e1f4f26c 100644 --- a/packages/kap-server/test/modelCatalog.test.ts +++ b/packages/kap-server/test/modelCatalog.test.ts @@ -206,7 +206,7 @@ describe('server-v2 /api/v1 model/provider catalog', () => { expect(noKey.body.data).not.toHaveProperty('api_key'); }); - it('sets the global default model and reflects it in /auth', async () => { + it('sets the global default model and reflects it in /config', async () => { await boot(CATALOG_TOML); const { body } = await postJson('/api/v1/models/turbo:set_default', {}); expect(body.code).toBe(0); @@ -220,9 +220,9 @@ describe('server-v2 /api/v1 model/provider catalog', () => { }, }); - const auth = await getJson<{ default_model: string | null }>('/api/v1/auth'); - expect(auth.body.code).toBe(0); - expect(auth.body.data.default_model).toBe('turbo'); + const config = await getJson<{ default_model: string | null }>('/api/v1/config'); + expect(config.body.code).toBe(0); + expect(config.body.data.default_model).toBe('turbo'); }); it('maps unknown provider and model ids to catalog not-found codes', async () => { diff --git a/packages/kap-server/test/modelCatalogProviderWrite.test.ts b/packages/kap-server/test/modelCatalogProviderWrite.test.ts index bfbcd85b144..489bfd3e182 100644 --- a/packages/kap-server/test/modelCatalogProviderWrite.test.ts +++ b/packages/kap-server/test/modelCatalogProviderWrite.test.ts @@ -290,8 +290,10 @@ describe('server-v2 /api/v1 provider write endpoints', () => { const onDisk = await readConfigToml(); expect(onDisk['default_model']).toBe('my-openai/gpt-4.1'); - const auth = await getJson<{ ready: boolean; default_model: string | null }>('/api/v1/auth'); - expect(auth.body.data).toMatchObject({ ready: true, default_model: 'my-openai/gpt-4.1' }); + const config = await getJson<{ default_model: string | null }>('/api/v1/config'); + expect(config.body.data.default_model).toBe('my-openai/gpt-4.1'); + const auth = await getJson<{ models_ready: boolean }>('/api/v1/auth'); + expect(auth.body.data).toMatchObject({ models_ready: true }); }); it('seeds the first model when the create body names no provider default', async () => { diff --git a/packages/kap-server/test/sessionEventBroadcaster.test.ts b/packages/kap-server/test/sessionEventBroadcaster.test.ts index 6b308e2aba2..d3848010c03 100644 --- a/packages/kap-server/test/sessionEventBroadcaster.test.ts +++ b/packages/kap-server/test/sessionEventBroadcaster.test.ts @@ -45,6 +45,7 @@ import { TurnStarted } from '@moonshot-ai/agent-core-v2/agent/loop/turnEvents'; import type { AgentEvent } from '../src/transport/ws/v1/events'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { sessionEventMessageSchema } from '../src/protocol/ws-control'; import { type BroadcastDelivery, type BroadcastTarget, @@ -1555,6 +1556,152 @@ describe('SessionEventBroadcaster', () => { payload: { warnings }, }); }); + + it('delivers event.config.changed to a global-only target that never subscribed', async () => { + const globalView = collectingTarget(); + bc.addGlobalTarget(globalView.target); + + const config = { default_model: 'k2', providers: {} }; + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['defaultModel'], config }, + }); + + await vi.waitFor(() => expect(globalView.envelopes).toHaveLength(1)); + expect(globalView.envelopes[0]).toMatchObject({ + type: 'event.config.changed', + session_id: '__global__', + payload: { changedFields: ['defaultModel'], config }, + }); + expect(globalView.deliveries).toEqual(['immediate']); + }); + + it('drops malformed event.config.changed payloads', async () => { + const globalView = collectingTarget(); + bc.addGlobalTarget(globalView.target); + + eventBus.emit({ type: 'event.config.changed', payload: null }); + eventBus.emit({ type: 'event.config.changed', payload: { changedFields: 'defaultModel' } }); + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['defaultModel', 7], config: {} }, + }); + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['defaultModel'], config: null }, + }); + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['defaultModel'], config: [] }, + }); + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: [''], config: {} }, + }); + + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['models'], config: { models: {} } }, + }); + + await vi.waitFor(() => expect(globalView.envelopes).toHaveLength(1)); + expect(globalView.envelopes[0]).toMatchObject({ + type: 'event.config.changed', + payload: { changedFields: ['models'], config: { models: {} } }, + }); + }); + + it('delivers event.model_catalog.changed to a global-only target that never subscribed', async () => { + const globalView = collectingTarget(); + bc.addGlobalTarget(globalView.target); + + const changed = [ + { provider_id: 'managed:kimi-code', provider_name: 'Kimi Code', added: 2, removed: 1 }, + ]; + const failed = [{ provider: 'managed:kimi-code', reason: 'network disabled' }]; + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed, unchanged: ['openai-main'], failed }, + }); + + await vi.waitFor(() => expect(globalView.envelopes).toHaveLength(1)); + expect(globalView.envelopes[0]).toMatchObject({ + type: 'event.model_catalog.changed', + session_id: '__global__', + payload: { changed, unchanged: ['openai-main'], failed }, + }); + expect(globalView.deliveries).toEqual(['immediate']); + }); + + it('drops malformed event.model_catalog.changed payloads', async () => { + const globalView = collectingTarget(); + bc.addGlobalTarget(globalView.target); + + eventBus.emit({ type: 'event.model_catalog.changed', payload: null }); + eventBus.emit({ type: 'event.model_catalog.changed', payload: { changed: [] } }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { + changed: [{ provider_id: 'p', provider_name: 'P', added: '1', removed: 0 }], + unchanged: [], + failed: [], + }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { + changed: [{ provider_id: 'p', provider_name: 'P', added: -1, removed: 0 }], + unchanged: [], + failed: [], + }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { + changed: [{ provider_id: 'p', provider_name: 'P', added: 0.5, removed: 0 }], + unchanged: [], + failed: [], + }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { + changed: [{ provider_id: '', provider_name: 'P', added: 1, removed: 0 }], + unchanged: [], + failed: [], + }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed: [], unchanged: ['ok', 7], failed: [] }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed: [], unchanged: ['ok', ''], failed: [] }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed: [], unchanged: [], failed: [{ provider: 'p' }] }, + }); + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed: [], unchanged: [], failed: [{ provider: 'p', reason: '' }] }, + }); + + const changed = [ + { provider_id: 'managed:kimi-code', provider_name: 'Kimi Code', added: 1, removed: 0 }, + ]; + eventBus.emit({ + type: 'event.model_catalog.changed', + payload: { changed, unchanged: [], failed: [] }, + }); + + await vi.waitFor(() => expect(globalView.envelopes).toHaveLength(1)); + expect(globalView.envelopes[0]).toMatchObject({ + type: 'event.model_catalog.changed', + payload: { changed, unchanged: [], failed: [] }, + }); + }); }); it('emits a durable event.session.work_changed(busy) trailing turn.started', async () => { @@ -2874,3 +3021,92 @@ describe('SessionEventBroadcaster', () => { }); }); }); + +describe('sessionEventMessageSchema', () => { + const timestamp = '2026-08-27T00:00:00.000Z'; + + function envelope(payload: Record): Record { + return { + type: payload['type'], + seq: 3, + session_id: '__global__', + timestamp, + payload: { agentId: 'main', sessionId: '__global__', ...payload }, + }; + } + + it('accepts config changed, config warning, and model catalog changed envelopes', () => { + expect( + sessionEventMessageSchema.safeParse( + envelope({ + type: 'event.config.changed', + changedFields: ['defaultModel'], + config: { default_model: 'k2', providers: {} }, + }), + ).success, + ).toBe(true); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ + type: 'event.config.warning', + warnings: [{ domain: 'loopControl', message: 'deprecated key' }, { message: 'other' }], + }), + ).success, + ).toBe(true); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ + type: 'event.model_catalog.changed', + changed: [ + { provider_id: 'managed:kimi-code', provider_name: 'Kimi Code', added: 2, removed: 1 }, + ], + unchanged: ['openai-main'], + failed: [{ provider: 'managed:kimi-code', reason: 'network disabled' }], + }), + ).success, + ).toBe(true); + }); + + it('rejects malformed config and model catalog event envelopes', () => { + expect( + sessionEventMessageSchema.safeParse( + envelope({ type: 'event.config.changed', changedFields: 'defaultModel', config: {} }), + ).success, + ).toBe(false); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ type: 'event.config.changed', changedFields: [], config: [] }), + ).success, + ).toBe(false); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ type: 'event.config.warning', warnings: [{ domain: 'loopControl' }] }), + ).success, + ).toBe(false); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ + type: 'event.model_catalog.changed', + changed: [], + failed: [], + }), + ).success, + ).toBe(false); + + expect( + sessionEventMessageSchema.safeParse( + envelope({ + type: 'event.model_catalog.changed', + changed: [], + unchanged: [], + failed: [{ provider: 'managed:kimi-code', reason: 42 }], + }), + ).success, + ).toBe(false); + }); +}); diff --git a/packages/klient/test/e2e/legacy/client.test.ts b/packages/klient/test/e2e/legacy/client.test.ts index 7792d42bc8f..4ab6345f036 100644 --- a/packages/klient/test/e2e/legacy/client.test.ts +++ b/packages/klient/test/e2e/legacy/client.test.ts @@ -437,9 +437,8 @@ describe('DaemonClient session action helpers', () => { fetchImpl: recordingFetchSequence( [ okEnvelope({ - ready: true, + models_ready: true, providers_count: 1, - default_model: model.model, managed_provider: null, }), okEnvelope({ items: [model] }), @@ -451,7 +450,7 @@ describe('DaemonClient session action helpers', () => { ), }); - await expect(client.getAuth()).resolves.toMatchObject({ default_model: model.model }); + await expect(client.getAuth()).resolves.toMatchObject({ models_ready: true }); await expect(client.listModels()).resolves.toEqual({ items: [model] }); await expect(client.setDefaultModel(model.model)).resolves.toEqual({ default_model: model.model, diff --git a/packages/klient/test/e2e/legacy/refresh-replay.test.ts b/packages/klient/test/e2e/legacy/refresh-replay.test.ts index 6d6feb45082..5a001114b2d 100644 --- a/packages/klient/test/e2e/legacy/refresh-replay.test.ts +++ b/packages/klient/test/e2e/legacy/refresh-replay.test.ts @@ -188,13 +188,12 @@ describeLive('refresh-replay (live server required)', () => { it('phase 0: /auth returns AuthSummary shape', async () => { const log = createCaseLogger('refresh: auth'); const auth = await getEnvelope<{ - ready: boolean; + models_ready: boolean; providers_count: number; - default_model: string | null; managed_provider: { name: string; status: string } | null; }>('/auth', log); log('data', auth); - expect(typeof auth.ready).toBe('boolean'); + expect(typeof auth.models_ready).toBe('boolean'); expect(typeof auth.providers_count).toBe('number'); }); diff --git a/packages/node-sdk/test/session-event-types.test.ts b/packages/node-sdk/test/session-event-types.test.ts index 4e59030510b..2c0a460870d 100644 --- a/packages/node-sdk/test/session-event-types.test.ts +++ b/packages/node-sdk/test/session-event-types.test.ts @@ -75,6 +75,7 @@ describe('Event public types', () => { case 'event.workspace.updated': case 'event.workspace.deleted': case 'event.config.changed': + case 'event.config.warning': case 'event.model_catalog.changed': case 'event.plugin.changed': case 'event.capability.changed': diff --git a/packages/oauth/src/refreshProviderModels.ts b/packages/oauth/src/refreshProviderModels.ts index 49c521fd631..c9aacfc94a0 100644 --- a/packages/oauth/src/refreshProviderModels.ts +++ b/packages/oauth/src/refreshProviderModels.ts @@ -216,7 +216,8 @@ interface ProviderModelSnapshot { // a registry can change capabilities (e.g. enabling reasoning) without changing // any model ID. Spreading the whole alias keeps this in sync with the schema // automatically; only `capabilities` needs normalizing because its order is not -// meaningful. +// meaningful. `defaultModel` joins the snapshot so a lost selection flips the +// provider to changed and the re-selected default is written back. function providerModelSnapshot( config: ManagedKimiConfigShape, providerId: string, @@ -235,7 +236,7 @@ function providerModelSnapshot( }); } snapshots.sort((a, b) => a.alias.localeCompare(b.alias)); - return JSON.stringify(snapshots); + return JSON.stringify({ defaultModel: config.defaultModel ?? null, models: snapshots }); } function providerModelsEqual( diff --git a/packages/protocol/src/__tests__/events.test.ts b/packages/protocol/src/__tests__/events.test.ts index 6b97ab7751d..592f137741d 100644 --- a/packages/protocol/src/__tests__/events.test.ts +++ b/packages/protocol/src/__tests__/events.test.ts @@ -122,6 +122,93 @@ describe('events / display re-exports', () => { expect((parsed as { promptId?: string }).promptId).toBe('prompt_1'); }); + it('validates global config and model catalog events through the full event union', () => { + expect( + eventSchema.safeParse({ + type: 'event.config.changed', + agentId: 'main', + sessionId: '__global__', + changedFields: ['defaultModel'], + config: { default_model: 'k2', providers: {} }, + }).success, + ).toBe(true); + + expect( + eventSchema.safeParse({ + type: 'event.config.warning', + agentId: 'main', + sessionId: '__global__', + warnings: [{ domain: 'loopControl', message: 'deprecated key' }, { message: 'other' }], + }).success, + ).toBe(true); + + expect( + eventSchema.safeParse({ + type: 'event.model_catalog.changed', + agentId: 'main', + sessionId: '__global__', + changed: [ + { provider_id: 'managed:kimi-code', provider_name: 'Kimi Code', added: 2, removed: 1 }, + ], + unchanged: ['openai-main'], + failed: [{ provider: 'managed:kimi-code', reason: 'network disabled' }], + }).success, + ).toBe(true); + }); + + it('rejects malformed config and model catalog events through the full event union', () => { + expect( + eventSchema.safeParse({ + type: 'event.config.changed', + agentId: 'main', + sessionId: '__global__', + changedFields: 'defaultModel', + config: {}, + }).success, + ).toBe(false); + + expect( + eventSchema.safeParse({ + type: 'event.config.changed', + agentId: 'main', + sessionId: '__global__', + changedFields: [], + config: [], + }).success, + ).toBe(false); + + expect( + eventSchema.safeParse({ + type: 'event.config.warning', + agentId: 'main', + sessionId: '__global__', + warnings: [{ domain: 'loopControl' }], + }).success, + ).toBe(false); + + expect( + eventSchema.safeParse({ + type: 'event.model_catalog.changed', + agentId: 'main', + sessionId: '__global__', + changed: [{ provider_id: '', provider_name: 'Kimi Code', added: 2, removed: 1 }], + unchanged: [], + failed: [], + }).success, + ).toBe(false); + + expect( + eventSchema.safeParse({ + type: 'event.model_catalog.changed', + agentId: 'main', + sessionId: '__global__', + changed: [{ provider_id: 'p', provider_name: 'P', added: -1, removed: 0 }], + unchanged: [], + failed: [], + }).success, + ).toBe(false); + }); + it('validates prompt.submitted events', () => { const parsed = eventSchema.parse({ type: 'prompt.submitted', diff --git a/packages/protocol/src/__tests__/rest-auth.test.ts b/packages/protocol/src/__tests__/rest-auth.test.ts index b826c71a0d8..24c9c170c94 100644 --- a/packages/protocol/src/__tests__/rest-auth.test.ts +++ b/packages/protocol/src/__tests__/rest-auth.test.ts @@ -8,16 +8,14 @@ import { describe('authSummarySchema', () => { const emptyState: AuthSummary = { - ready: false, + models_ready: false, providers_count: 0, - default_model: null, managed_provider: null, }; const readyState: AuthSummary = { - ready: true, + models_ready: true, providers_count: 1, - default_model: 'kimi-k2', managed_provider: { name: 'kimi-code-oauth', status: 'authenticated', @@ -26,17 +24,15 @@ describe('authSummarySchema', () => { it('round-trips an empty (unprovisioned) state', () => { const parsed = authSummarySchema.parse(emptyState); - expect(parsed.ready).toBe(false); + expect(parsed.models_ready).toBe(false); expect(parsed.providers_count).toBe(0); - expect(parsed.default_model).toBeNull(); expect(parsed.managed_provider).toBeNull(); }); it('round-trips a ready state with managed provider', () => { const parsed = authSummarySchema.parse(readyState); - expect(parsed.ready).toBe(true); + expect(parsed.models_ready).toBe(true); expect(parsed.providers_count).toBe(1); - expect(parsed.default_model).toBe('kimi-k2'); expect(parsed.managed_provider).toEqual({ name: 'kimi-code-oauth', status: 'authenticated', @@ -59,8 +55,8 @@ describe('authSummarySchema', () => { expect(authSummarySchema.safeParse(bad).success).toBe(false); }); - it('rejects missing ready', () => { - const { ready: _omit, ...rest } = emptyState; + it('rejects missing models_ready', () => { + const { models_ready: _omit, ...rest } = emptyState; expect(authSummarySchema.safeParse(rest).success).toBe(false); }); @@ -69,11 +65,6 @@ describe('authSummarySchema', () => { expect(authSummarySchema.safeParse(rest).success).toBe(false); }); - it('rejects missing default_model', () => { - const { default_model: _omit, ...rest } = emptyState; - expect(authSummarySchema.safeParse(rest).success).toBe(false); - }); - it('rejects missing managed_provider', () => { const { managed_provider: _omit, ...rest } = emptyState; expect(authSummarySchema.safeParse(rest).success).toBe(false); diff --git a/packages/protocol/src/events.ts b/packages/protocol/src/events.ts index 8e22d7c85f6..66938a1a658 100644 --- a/packages/protocol/src/events.ts +++ b/packages/protocol/src/events.ts @@ -611,6 +611,20 @@ export interface ConfigChangedEvent { readonly config: ConfigResponse; } +export interface ConfigWarningItem { + readonly domain?: string; + readonly message: string; +} + +/** + * Pushed when the daemon's config validation produces warnings (deprecated + * keys, unknown fields). Bare global fan-out alongside `event.config.changed`. + */ +export interface ConfigWarningEvent { + readonly type: 'event.config.warning'; + readonly warnings: readonly ConfigWarningItem[]; +} + /** * Pushed when the daemon refreshes provider model metadata (manual or * scheduled) and the effective catalog changed. Carries the per-provider @@ -1015,6 +1029,7 @@ export type AgentEvent = | SessionWorkChangedEvent | SessionStatusChangedEvent | ConfigChangedEvent + | ConfigWarningEvent | ModelCatalogChangedEvent | PluginChangedEvent | CapabilityChangedEvent @@ -1601,6 +1616,16 @@ export const configChangedEventSchema = z.object({ config: configResponseSchema, }) satisfies z.ZodType; +export const configWarningEventSchema = z.object({ + type: z.literal('event.config.warning'), + warnings: z.array( + z.object({ + domain: z.string().optional(), + message: z.string(), + }), + ), +}) satisfies z.ZodType; + export const modelCatalogChangedEventSchema = z.object({ type: z.literal('event.model_catalog.changed'), changed: z.array(providerRefreshChangeSchema), @@ -1954,6 +1979,8 @@ export const agentEventSchema = z.discriminatedUnion('type', [ workspaceDeletedEventSchema, sessionWorkChangedEventSchema, sessionStatusChangedEventSchema, + configChangedEventSchema, + configWarningEventSchema, modelCatalogChangedEventSchema, pluginChangedEventSchema, capabilityChangedEventSchema, diff --git a/packages/protocol/src/rest/auth.ts b/packages/protocol/src/rest/auth.ts index 8edb0888408..ab7e3a19bed 100644 --- a/packages/protocol/src/rest/auth.ts +++ b/packages/protocol/src/rest/auth.ts @@ -1,9 +1,8 @@ /** * GET /v1/auth * Reply: AuthSummary { - * ready, + * models_ready, * providers_count, - * default_model, * managed_provider * } */ @@ -24,9 +23,8 @@ export const managedProviderSummarySchema = z.object({ export type ManagedProviderSummary = z.infer; export const authSummarySchema = z.object({ - ready: z.boolean(), + models_ready: z.boolean(), providers_count: z.number().int().nonnegative(), - default_model: z.string().nullable(), managed_provider: managedProviderSummarySchema.nullable(), }); export type AuthSummary = z.infer; From 7bf018d6d08cbd4b65cc398c1dd31f65ec3eb054 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 27 Aug 2026 17:46:16 +0800 Subject: [PATCH 02/16] fix(kap-server): expose the session model in session list projections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GET /api/v1/sessions hardcoded agent_config.model to '' and the v2 projection had no model field at all, so clients could only learn a session's model via the post-select /status read — which races the WS replay and often never lands. SessionFacts now carries the live session's model (same source as the snapshot route), toWireSession emits it, and the v2 activity domain gains a nullable model field. --- docs/en/reference/server-api.md | 4 +- docs/zh/reference/server-api.md | 4 +- packages/kap-server/AGENTS.md | 2 +- packages/kap-server/src/routes/sessions.ts | 20 ++++++- packages/kap-server/src/routes/v2/sessions.ts | 10 +++- packages/kap-server/test/sessions.test.ts | 50 ++++++++++++++++ packages/kap-server/test/v2Sessions.test.ts | 58 +++++++++++++++++-- 7 files changed, 133 insertions(+), 15 deletions(-) diff --git a/docs/en/reference/server-api.md b/docs/en/reference/server-api.md index b6f156b4b90..dfca2d3396b 100644 --- a/docs/en/reference/server-api.md +++ b/docs/en/reference/server-api.md @@ -2151,7 +2151,7 @@ A next-generation session query for list views — filtering, sorting, and field | `page_token` | Pagination token from the previous page | | `page` | Stateless 1-based page number; mutually exclusive with `page_token` (`40001` when combined) | -Every response item carries the `workspace`, `meta`, and `activity` groups, plus `git` when `include=git` — or just `{ id, archived }` under `fields=id,archived`. Every page additionally carries `total`, the size of the filtered set. The page token binds the first page's query conditions (including the projection); changing them mid-pagination returns `40922`. `page` mode is a stateless alternative for jumping to arbitrary pages: every request is an independent snapshot, no token is minted, and `next_page_token` is always `null`. +Every response item carries the `workspace`, `meta`, and `activity` groups, plus `git` when `include=git` — or just `{ id, archived }` under `fields=id,archived`. The `activity` group also reports `model`: the session's bound model alias while it is live in this process, `null` for cold (not currently loaded) sessions. Every page additionally carries `total`, the size of the filtered set. The page token binds the first page's query conditions (including the projection); changing them mid-pagination returns `40922`. `page` mode is a stateless alternative for jumping to arbitrary pages: every request is an independent snapshot, no token is minted, and `next_page_token` is always `null`. With `view=by_workspace` the same filtered, sorted set is re-projected into per-workspace groups, so an overview client replaces one polling loop per workspace with a single request: @@ -2163,7 +2163,7 @@ With `view=by_workspace` the same filtered, sorted set is re-projected into per- "groups": [ { "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, - "sessions": [ { "id": "session_...", "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, "meta": { "title": "Fix the login page", "last_prompt": "adjust the button spacing", "created_at": 1787000000000, "updated_at": 1787000100000, "archived": false, "archived_at": null }, "activity": { "status": "idle" } } ], + "sessions": [ { "id": "session_...", "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, "meta": { "title": "Fix the login page", "last_prompt": "adjust the button spacing", "created_at": 1787000000000, "updated_at": 1787000100000, "archived": false, "archived_at": null }, "activity": { "status": "idle", "model": "kimi-for-coding" } } ], "total": 42 } ], diff --git a/docs/zh/reference/server-api.md b/docs/zh/reference/server-api.md index 396f2146e63..8e09e981b13 100644 --- a/docs/zh/reference/server-api.md +++ b/docs/zh/reference/server-api.md @@ -2151,7 +2151,7 @@ PTY 终端接口;仅在 loopback 绑定时挂载(非 loopback 绑定会跳 | `page_token` | 上一页返回的翻页令牌 | | `page` | 无状态的 1 起始页码;与 `page_token` 互斥(同传返回 `40001`) | -响应每项固定包含 `workspace`、`meta`、`activity` 三组,`include=git` 时附加 `git` 组;`fields=id,archived` 时仅返回 `{ id, archived }`。每页额外携带 `total`,即过滤后的集合大小。翻页令牌绑定首页查询条件(含投影),中途改条件返回 `40922`。`page` 模式是跳页用的无状态替代:每次请求都是独立快照,不签发令牌,`next_page_token` 恒为 `null`。 +响应每项固定包含 `workspace`、`meta`、`activity` 三组,`include=git` 时附加 `git` 组;`fields=id,archived` 时仅返回 `{ id, archived }`。`activity` 组还会带上 `model`:会话仍加载在当前进程时为其绑定的模型别名,冷会话(未加载)为 `null`。每页额外携带 `total`,即过滤后的集合大小。翻页令牌绑定首页查询条件(含投影),中途改条件返回 `40922`。`page` 模式是跳页用的无状态替代:每次请求都是独立快照,不签发令牌,`next_page_token` 恒为 `null`。 `view=by_workspace` 时,同一份过滤、排序后的集合会重新投影为按工作区分组的形态,概览页因此可以用一次请求替代「每个工作区各一轮询」: @@ -2163,7 +2163,7 @@ PTY 终端接口;仅在 loopback 绑定时挂载(非 loopback 绑定会跳 "groups": [ { "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, - "sessions": [ { "id": "session_...", "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, "meta": { "title": "Fix the login page", "last_prompt": "adjust the button spacing", "created_at": 1787000000000, "updated_at": 1787000100000, "archived": false, "archived_at": null }, "activity": { "status": "idle" } } ], + "sessions": [ { "id": "session_...", "workspace": { "id": "wd_my-app_a1b2c3d4e5f6", "cwd": "/Users/dev/my-app" }, "meta": { "title": "Fix the login page", "last_prompt": "adjust the button spacing", "created_at": 1787000000000, "updated_at": 1787000100000, "archived": false, "archived_at": null }, "activity": { "status": "idle", "model": "kimi-for-coding" } } ], "total": 42 } ], diff --git a/packages/kap-server/AGENTS.md b/packages/kap-server/AGENTS.md index 817e13b7998..05ec5708bbe 100644 --- a/packages/kap-server/AGENTS.md +++ b/packages/kap-server/AGENTS.md @@ -14,7 +14,7 @@ No comments — no file headers, no section banners, no statement-level narratio ## `/api/v2` surface -`GET /api/v2/sessions` (`src/routes/v2/sessions.ts`, mounted by `src/routes/registerApiV2Routes.ts`) is the first endpoint of the v2 API. The v2 surface shares v1's wire conventions: every response is wrapped in the `{ code, msg, data, request_id }` envelope with the business outcome in `code` (`40001` invalid query params with `details`, `40922` page_token mismatch), and the HTTP status only reports server-/transport-level outcomes (401 from the global auth hook, `50001` via the catch-all error hook). Pagination is an opaque `page_token` (base64url JSON: version + sha256 query-condition fingerprint + keyset position) — any condition flip mid-pagination fails 40922. Response domains are grouped (`workspace` / `meta` / `activity` always; `git` opt-in via `include=git`, deduped per unique cwd with a 60s TTL cache over `IGitService`, all git/gh failures degrading to cached null fields). Sorts/filters are applied at the edge over the index's canonical `updatedAt desc, id desc` drain, so all three sort orders share one comparator + cursor encoding; `activity.status` maps the core `ISessionActivityView` facts (pending interaction > active turn > failed last turn > idle; cold sessions are always `idle`). `meta.has_prompt=true|false` filters by prompt presence (the v1 `exclude_empty` equivalent). `view=by_workspace` re-projects the same filtered/sorted drain into per-workspace groups — each group carries the workspace's first `group.page_size` sessions (default 5) plus its full matching `total`, groups are ordered by their latest session's sort key (ties break on workspace id), and `page`/`page_token` page over groups — so an overview client replaces N per-workspace v1 polls with one call. +`GET /api/v2/sessions` (`src/routes/v2/sessions.ts`, mounted by `src/routes/registerApiV2Routes.ts`) is the first endpoint of the v2 API. The v2 surface shares v1's wire conventions: every response is wrapped in the `{ code, msg, data, request_id }` envelope with the business outcome in `code` (`40001` invalid query params with `details`, `40922` page_token mismatch), and the HTTP status only reports server-/transport-level outcomes (401 from the global auth hook, `50001` via the catch-all error hook). Pagination is an opaque `page_token` (base64url JSON: version + sha256 query-condition fingerprint + keyset position) — any condition flip mid-pagination fails 40922. Response domains are grouped (`workspace` / `meta` / `activity` always; `git` opt-in via `include=git`, deduped per unique cwd with a 60s TTL cache over `IGitService`, all git/gh failures degrading to cached null fields). Sorts/filters are applied at the edge over the index's canonical `updatedAt desc, id desc` drain, so all three sort orders share one comparator + cursor encoding; `activity.status` maps the core `ISessionActivityView` facts (pending interaction > active turn > failed last turn > idle; cold sessions are always `idle`), and `activity.model` carries the live session's bound model alias from the same per-id facts (`null` while the session is cold). `meta.has_prompt=true|false` filters by prompt presence (the v1 `exclude_empty` equivalent). `view=by_workspace` re-projects the same filtered/sorted drain into per-workspace groups — each group carries the workspace's first `group.page_size` sessions (default 5) plus its full matching `total`, groups are ordered by their latest session's sort key (ties break on workspace id), and `page`/`page_token` page over groups — so an overview client replaces N per-workspace v1 polls with one call. `/api/v2/mcp/*` (`src/routes/v2/mcp.ts`) exposes the agent-core-v2 `mcpManagement` plane: CRUD on the user-level `mcp.json` (`GET/POST/PUT/DELETE /mcp/servers[/{name}]`; `PUT` takes a name-less config body, the path owns the identity), a connection-test probe and the locator-addressed inspection catalog (`POST /mcp/servers:test` / `:inspect`, declared with the doubled-colon static-segment convention), the auth-status surface (`GET /mcp/auth-statuses?verify=`), and the locator-addressed OAuth flow operations (`POST /mcp/auth:begin|complete|cancel|reset`). engine `Error2`s map `mcp.server_not_found` → `40408`, `request.invalid` / `config.invalid` → `40001`, and `mcp.oauth_failed` → `40929`. `auth:complete` is a long poll (up to the flow's `timeoutMs`): the server disables Node's default `requestTimeout` (`start.ts`), and the handler aborts the engine wait when the client connection closes early. The klient facade mirrors the same surface as `global.mcp.*` with identical wire codes, plus the name-only `global.mcp.resolveByName` helper (REST clients compose locators from the `GET /mcp/servers` catalog instead). diff --git a/packages/kap-server/src/routes/sessions.ts b/packages/kap-server/src/routes/sessions.ts index bc373274793..3e1ff9f947a 100644 --- a/packages/kap-server/src/routes/sessions.ts +++ b/packages/kap-server/src/routes/sessions.ts @@ -4,6 +4,7 @@ import { IAgentProfileService, IAgentConversationUndoService, IAgentFullCompactionService, + IAgentLifecycleService, IAgentLoopService, IAuthSummaryService, ISessionActivityView, @@ -26,6 +27,7 @@ import { Error2, type ContextMessage, type IAgentScopeHandle, + type ISessionScopeHandle, type Scope, type SessionSummary, } from '@moonshot-ai/agent-core-v2'; @@ -62,7 +64,8 @@ import { z } from 'zod'; import { errEnvelope, okEnvelope } from '../envelope'; import { requestLog } from '../lib/requestLog'; import { defineRoute } from '../middleware/defineRoute'; -import { ensureMainAgent } from '../transport/mainAgent'; +import { readLegacyStatus } from '../services/legacyStatus/legacyStatus'; +import { ensureMainAgent, MAIN_AGENT_ID } from '../transport/mainAgent'; import { type ActionTable, dispatchAction } from './action-dispatch'; import { applySessionAgentConfig } from './sessionAgentConfig'; import { updateSessionProfile } from './sessionProfile'; @@ -1011,7 +1014,7 @@ export function toWireSession( archived: fields.archived, last_prompt: fields.lastPrompt, metadata: buildWireMetadata(fields.custom, cwd), - agent_config: { model: '' }, + agent_config: { model: facts.model ?? '' }, usage: emptySessionUsage(), permission_rules: [], message_count: 0, @@ -1025,6 +1028,7 @@ export interface SessionFacts { readonly pendingInteraction: SessionPendingInteraction; readonly lastTurnReason?: 'completed' | 'cancelled' | 'failed'; readonly live?: boolean; + readonly model?: string; } export function resolveSessionFacts(core: Scope, sessionId: string): SessionFacts { @@ -1037,7 +1041,17 @@ export function resolveSessionFacts(core: Scope, sessionId: string): SessionFact live: false, }; } - return { ...handle.accessor.get(ISessionActivityView).state(), live: true }; + return { + ...handle.accessor.get(ISessionActivityView).state(), + live: true, + model: readLiveSessionModel(handle), + }; +} + +function readLiveSessionModel(session: ISessionScopeHandle): string | undefined { + const main = session.accessor.get(IAgentLifecycleService).handleOf(MAIN_AGENT_ID); + if (main === undefined) return undefined; + return readLegacyStatus(main)?.model; } async function resolveMainAgent(core: Scope, sessionId: string): Promise { diff --git a/packages/kap-server/src/routes/v2/sessions.ts b/packages/kap-server/src/routes/v2/sessions.ts index f569bb960d2..e5e3b979765 100644 --- a/packages/kap-server/src/routes/v2/sessions.ts +++ b/packages/kap-server/src/routes/v2/sessions.ts @@ -228,7 +228,7 @@ const v2SessionSchema = z.object({ archived: z.boolean(), archived_at: z.number().int().nullable(), }), - activity: z.object({ status: v2ActivityStatusSchema }), + activity: z.object({ status: v2ActivityStatusSchema, model: z.string().nullable() }), git: v2GitDomainSchema.optional(), }); @@ -472,7 +472,7 @@ export function registerV2SessionsRoutes(app: V2SessionsRouteHost, core: Scope): [ErrorCode.PAGE_TOKEN_MISMATCH]: {}, }, description: - "List sessions with domain-grouped metadata (workspace / meta / activity; git via include=git). Paginate with the opaque page_token (binds the first page’s query conditions) or with the stateless 1-based page parameter; every page carries total. fields=id,archived trims each item to the lightweight ids projection (select-all-matching flows; page_size ceiling relaxed to 10000). meta.has_prompt=true|false filters sessions by whether they carry a prompt. view=by_workspace groups the matching set per workspace — each group carries that workspace's first group.page_size sessions (default 5) under the requested sort plus the group's full matching total; page/page_token then page over groups.", + "List sessions with domain-grouped metadata (workspace / meta / activity; git via include=git). activity.model carries the live session's bound model alias (null while the session is cold). Paginate with the opaque page_token (binds the first page’s query conditions) or with the stateless 1-based page parameter; every page carries total. fields=id,archived trims each item to the lightweight ids projection (select-all-matching flows; page_size ceiling relaxed to 10000). meta.has_prompt=true|false filters sessions by whether they carry a prompt. view=by_workspace groups the matching set per workspace — each group carries that workspace's first group.page_size sessions (default 5) under the requested sort plus the group's full matching total; page/page_token then page over groups.", tags: ['v2-sessions'], }, async (req, reply) => { @@ -584,6 +584,7 @@ export function registerV2SessionsRoutes(app: V2SessionsRouteHost, core: Scope): } return summaries.map((summary) => { const cwd = cwdOf(summary); + const facts = factsOf(summary.id); return { id: summary.id, workspace: { id: summary.workspaceId, cwd }, @@ -595,7 +596,10 @@ export function registerV2SessionsRoutes(app: V2SessionsRouteHost, core: Scope): archived: summary.archived, archived_at: summary.archivedAt ?? null, }, - activity: { status: mapActivityStatus(factsOf(summary.id), summary.lastTurnReason) }, + activity: { + status: mapActivityStatus(facts, summary.lastTurnReason), + model: facts.model ?? null, + }, git: gitByCwd === undefined ? undefined diff --git a/packages/kap-server/test/sessions.test.ts b/packages/kap-server/test/sessions.test.ts index dd2a2846787..16997fef89f 100644 --- a/packages/kap-server/test/sessions.test.ts +++ b/packages/kap-server/test/sessions.test.ts @@ -405,6 +405,56 @@ describe('server-v2 /api/v1/sessions', () => { expect(typeof body.data.has_more).toBe('boolean'); }); + it('fills agent_config.model from the live session profile', async () => { + await server?.close(); + server = undefined; + const cwd = home as string; + await writeFile( + join(cwd, 'config.toml'), + [ + 'default_model = "stub"', + '', + '[providers.stub]', + 'type = "openai"', + 'base_url = "http://127.0.0.1:9999"', + 'api_key = "stub"', + '', + '[models.stub]', + 'provider = "stub"', + 'model = "stub"', + 'max_context_size = 1000', + '', + ].join('\n'), + 'utf-8', + ); + server = await startServer({ + hostIdentity: TEST_HOST_IDENTITY, + host: '127.0.0.1', + port: 0, + homeDir: home, + logLevel: 'silent', + debugEndpoints: true, + }); + base = `http://127.0.0.1:${server.port}`; + + const created = await postJson('/api/v1/sessions', { metadata: { cwd } }); + const id = created.body.data.id; + expect(created.body.data.agent_config).toEqual({ model: '' }); + + const updated = await postJson(`/api/v1/sessions/${id}/profile`, { + agent_config: { model: 'stub' }, + }); + expect(updated.body.code).toBe(0); + expect(updated.body.data.agent_config).toEqual({ model: 'stub' }); + + const listed = await getJson('/api/v1/sessions'); + const item = listed.body.data.items.find((s) => s.id === id); + expect(item?.agent_config).toEqual({ model: 'stub' }); + + const got = await getJson(`/api/v1/sessions/${id}`); + expect(got.body.data.agent_config).toEqual({ model: 'stub' }); + }); + it('supports exclude_empty when listing sessions', async () => { const cwd = home as string; const created = await postJson('/api/v1/sessions', { metadata: { cwd } }); diff --git a/packages/kap-server/test/v2Sessions.test.ts b/packages/kap-server/test/v2Sessions.test.ts index 842aa1a65b9..7fe815dda87 100644 --- a/packages/kap-server/test/v2Sessions.test.ts +++ b/packages/kap-server/test/v2Sessions.test.ts @@ -1,4 +1,4 @@ -import { mkdtemp, readFile, rm } from 'node:fs/promises'; +import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; @@ -37,7 +37,7 @@ interface SessionWireV2 { updated_at: number; archived: boolean; }; - activity: { status: 'running' | 'approval' | 'question' | 'failed' | 'idle' }; + activity: { status: 'running' | 'approval' | 'question' | 'failed' | 'idle'; model: string | null }; git?: { branch: string | null; pull_request: { number: number; state: 'open' | 'closed' | 'merged'; url: string } | null; @@ -228,7 +228,7 @@ describe('server /api/v2/sessions', () => { archived: false, archived_at: null, }); - expect(first.activity).toEqual({ status: 'idle' }); + expect(first.activity).toEqual({ status: 'idle', model: null }); expect('git' in first).toBe(false); const second = page.items[1] as SessionWireV2; @@ -237,6 +237,56 @@ describe('server /api/v2/sessions', () => { expect(third.meta.last_prompt).toBeNull(); }); + it('exposes the live session model in the activity domain', async () => { + await (server as RunningServer).close(); + await writeFile( + join(home as string, 'config.toml'), + [ + 'default_model = "stub"', + '', + '[providers.stub]', + 'type = "openai"', + 'base_url = "http://127.0.0.1:9999"', + 'api_key = "stub"', + '', + '[models.stub]', + 'provider = "stub"', + 'model = "stub"', + 'max_context_size = 1000', + '', + ].join('\n'), + 'utf-8', + ); + server = await startServer({ + hostIdentity: TEST_HOST_IDENTITY, + host: '127.0.0.1', + port: 0, + homeDir: home, + logLevel: 'silent', + }); + base = `http://127.0.0.1:${server.port}`; + + const created = await authedFetch(server, base, '/api/v1/sessions', { + method: 'POST', + headers: { 'content-type': 'application/json' }, + body: JSON.stringify({ metadata: { cwd: home } }), + }); + const createdBody = (await created.json()) as { code: number; data: { id: string } }; + expect(createdBody.code).toBe(0); + const id = createdBody.data.id; + + const bound = await authedFetch(server, base, `/api/v1/sessions/${id}/profile`, { + method: 'POST', + headers: { 'content-type': 'application/json' }, + body: JSON.stringify({ agent_config: { model: 'stub' } }), + }); + expect(((await bound.json()) as { code: number }).code).toBe(0); + + const page = await getData(); + const item = page.items.find((entry) => entry.id === id); + expect(item?.activity).toEqual({ status: 'idle', model: 'stub' }); + }); + it('filters by workspace.id (single, repeated OR, unknown)', async () => { const single = await getData(`?workspace.id=${WS_A}`); expect(single.items.map((item) => item.id)).toEqual(['s1', 's2']); @@ -563,7 +613,7 @@ describe('server /api/v2/sessions', () => { const first = a.sessions[0] as SessionWireV2; expect(first.meta.last_prompt).toBe('do alpha'); - expect(first.activity).toEqual({ status: 'idle' }); + expect(first.activity).toEqual({ status: 'idle', model: null }); expect('git' in first).toBe(false); }); From 6891020e9b71e42a4e8fd4d72c555ca155846a9e Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 27 Aug 2026 18:49:23 +0800 Subject: [PATCH 03/16] fix(kap-server): gate prompt submission on the effective session model The submit gate called ensureReady() with no override, so it only ever validated config.default_model: a session with a bound model (or a prompt carrying one) was rejected with 40113 whenever default_model was missing or dangling. Pass the effective model (request model, then the agent profile's bound model, falling back to default_model inside ensureReady) on both the prompt submit and btw routes. --- packages/kap-server/src/routes/prompts.ts | 2 +- packages/kap-server/src/routes/sessions.ts | 4 +- packages/kap-server/test/prompts.test.ts | 61 ++++++++++++++++++++++ 3 files changed, 65 insertions(+), 2 deletions(-) diff --git a/packages/kap-server/src/routes/prompts.ts b/packages/kap-server/src/routes/prompts.ts index 3d558cca73c..066ff8b3c37 100644 --- a/packages/kap-server/src/routes/prompts.ts +++ b/packages/kap-server/src/routes/prompts.ts @@ -234,7 +234,7 @@ export function registerPromptsRoutes(app: PromptRouteHost, core: Scope): void { ); const resolved = await resolvePromptFromSession(session, req.body.agent_id); reservation = reservePrompt(resolved.prompt, req.body.prompt_id); - await resolved.auth.ensureReady(); + await resolved.auth.ensureReady(req.body.model ?? (resolved.profile.getModel() || undefined)); const telemetry = core.accessor.get(ITelemetryService).withContext({ sessionId: session_id }); preparedMedia = await resolvePromptMediaFiles( diff --git a/packages/kap-server/src/routes/sessions.ts b/packages/kap-server/src/routes/sessions.ts index 3e1ff9f947a..7230c2cdfbc 100644 --- a/packages/kap-server/src/routes/sessions.ts +++ b/packages/kap-server/src/routes/sessions.ts @@ -947,7 +947,9 @@ async function btwSessionAction(ctx: SessionActionCtx): Promise { if (session === undefined) { throw new Error2(ErrorCodes.SESSION_NOT_FOUND, `session ${id} does not exist`); } - await core.accessor.get(IAuthSummaryService).ensureReady(); + const agent = await ensureMainAgent(session); + const sessionModel = agent.accessor.get(IAgentProfileService).getModel(); + await core.accessor.get(IAuthSummaryService).ensureReady(sessionModel || undefined); const agentId = await session.accessor.get(ISessionBtwService).start(); reply.send(okEnvelope({ agent_id: agentId }, req.id)); } diff --git a/packages/kap-server/test/prompts.test.ts b/packages/kap-server/test/prompts.test.ts index dac151b8f2d..8cdae0a70d1 100644 --- a/packages/kap-server/test/prompts.test.ts +++ b/packages/kap-server/test/prompts.test.ts @@ -63,6 +63,12 @@ const PROMPT_TOML = [ '', ].join('\n'); +const PROMPT_TOML_NO_DEFAULT = PROMPT_TOML.replace('default_model = "stub"\n\n', ''); +const PROMPT_TOML_DANGLING_DEFAULT = PROMPT_TOML.replace( + 'default_model = "stub"', + 'default_model = "missing"', +); + const PNG_SIGNATURE = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]); const CRC32_TABLE = makeCrc32Table(); @@ -217,6 +223,14 @@ describe('server-v2 /api/v1 prompts', () => { await session.accessor.get(IAgentLifecycleService).create({ agentId: 'main' }); } + async function setSessionModel(sessionId: string, model: string): Promise { + const session = getLiveSessionById(server!.core.accessor, sessionId); + if (session === undefined) throw new Error(`session ${sessionId} not found`); + const agent = session.accessor.get(IAgentLifecycleService).handleOf('main'); + if (agent === undefined) throw new Error(`main agent of session ${sessionId} not found`); + await agent.accessor.get(IAgentProfileService).setModel(model); + } + it('submits a prompt and lists it as active', async () => { const id = await createSession(home as string); await createMainAgent(id); @@ -240,6 +254,53 @@ describe('server-v2 /api/v1 prompts', () => { expect(Array.isArray(list.body.data.queued)).toBe(true); }); + it('accepts a prompt-carried model when default_model is not configured', async () => { + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_NO_DEFAULT, 'utf-8'); + const id = await createSession(home as string); + await createMainAgent(id); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + model: 'stub', + }); + expect(submitted.body.code).toBe(0); + }); + + it('accepts the session-bound model when default_model is not configured', async () => { + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_NO_DEFAULT, 'utf-8'); + const id = await createSession(home as string); + await createMainAgent(id); + await setSessionModel(id, 'stub'); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + }); + expect(submitted.body.code).toBe(0); + }); + + it('accepts the session-bound model when default_model dangles', async () => { + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_DANGLING_DEFAULT, 'utf-8'); + const id = await createSession(home as string); + await createMainAgent(id); + await setSessionModel(id, 'stub'); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + }); + expect(submitted.body.code).toBe(0); + }); + + it('rejects when neither prompt, session, nor default_model resolves a model', async () => { + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_NO_DEFAULT, 'utf-8'); + const id = await createSession(home as string); + await createMainAgent(id); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + }); + expect(submitted.body.code).toBe(40113); + }); + it('submits a bundled skill prompt through the skills field', async () => { const id = await createSession(home as string); await createMainAgent(id); From ccf25015431395be4f21f4adbd4279547556da5d Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 27 Aug 2026 19:06:38 +0800 Subject: [PATCH 04/16] fix(agent-core-v2): honor defaultProvider in model readiness resolution resolveModelForReady stopped at the flat baseUrl fallback, so a model that omits provider/providerId and relies on the configured defaultProvider resolved at runtime (ModelCatalog.resolveProviderContext falls back to it) while /api/v1/auth reported models_ready:false and the send gate rejected the prompt. Mirror the runtime order (providerId -> provider -> defaultProvider -> flat baseUrl) and pass the configured default provider from both readiness callers. --- packages/agent-core-v2/src/app/auth/authService.ts | 2 +- .../src/app/authLegacy/authLegacyService.ts | 4 +++- .../agent-core-v2/src/kosong/model/modelAuth.ts | 3 ++- packages/agent-core-v2/test/app/auth/auth.test.ts | 1 + .../test/kosong/model/modelAuth.test.ts | 13 +++++++++++++ 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/agent-core-v2/src/app/auth/authService.ts b/packages/agent-core-v2/src/app/auth/authService.ts index dfc40d7b901..04e2b21a26a 100644 --- a/packages/agent-core-v2/src/app/auth/authService.ts +++ b/packages/agent-core-v2/src/app/auth/authService.ts @@ -654,7 +654,7 @@ export class AuthSummaryService implements IAuthSummaryService { if (Object.keys(providers).length === 0 && !isProviderlessModel(configured)) { throw new AuthProvisioningRequiredError(); } - const resolution = resolveModelForReady(modelId, models, providers); + const resolution = resolveModelForReady(modelId, models, providers, this.providerService.getDefaultProvider()); if (!resolution.resolved) { throw unresolvedModelError(modelId, resolution.reason, configured); } diff --git a/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts b/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts index beea721c79b..e61886ed5d3 100644 --- a/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts +++ b/packages/agent-core-v2/src/app/authLegacy/authLegacyService.ts @@ -6,6 +6,7 @@ import { IOAuthService } from '#/app/auth/auth'; import { IConfigService } from '#/app/config/config'; import { DEFAULT_MODEL_SECTION, + DEFAULT_PROVIDER_SECTION, MODELS_SECTION, PROVIDERS_SECTION, } from '#/app/kosongConfig/configSection'; @@ -34,8 +35,9 @@ export class AuthLegacyService implements IAuthLegacyService { >; const models = (snapshot[MODELS_SECTION] ?? {}) as Readonly>; const defaultModel = snapshot[DEFAULT_MODEL_SECTION] as string | undefined; + const defaultProvider = snapshot[DEFAULT_PROVIDER_SECTION] as string | undefined; const providers_count = Object.keys(providers).length; - const models_ready = resolveModelForReady(defaultModel, models, providers).resolved; + const models_ready = resolveModelForReady(defaultModel, models, providers, defaultProvider).resolved; let managed_provider: AuthSummary['managed_provider'] = null; if (providers[MANAGED_PROVIDER_NAME] !== undefined) { diff --git a/packages/agent-core-v2/src/kosong/model/modelAuth.ts b/packages/agent-core-v2/src/kosong/model/modelAuth.ts index 0f560254bba..521be4316c1 100644 --- a/packages/agent-core-v2/src/kosong/model/modelAuth.ts +++ b/packages/agent-core-v2/src/kosong/model/modelAuth.ts @@ -234,6 +234,7 @@ export function resolveModelForReady( modelId: string | undefined, models: Readonly>, providers: Readonly>, + defaultProvider?: string, ): ModelReadyResolution { const alias = nonEmpty(modelId); if (alias === undefined) { @@ -244,7 +245,7 @@ export function resolveModelForReady( return { resolved: false, reason: 'dangling-alias' }; } const model = effectiveModelConfig(configured); - const providerId = model.providerId ?? model.provider; + const providerId = model.providerId ?? model.provider ?? nonEmpty(defaultProvider); const provider = providerId === undefined ? undefined : providers[providerId]; if (providerId !== undefined && provider === undefined) { return { resolved: false, reason: 'provider-missing' }; diff --git a/packages/agent-core-v2/test/app/auth/auth.test.ts b/packages/agent-core-v2/test/app/auth/auth.test.ts index b7efdd880bd..6d7368fd856 100644 --- a/packages/agent-core-v2/test/app/auth/auth.test.ts +++ b/packages/agent-core-v2/test/app/auth/auth.test.ts @@ -1518,6 +1518,7 @@ describe('AuthSummaryService', () => { reg.definePartialInstance(IProviderService, { get: ((name: string) => providers[name]) as IProviderService['get'], list: (() => providers) as IProviderService['list'], + getDefaultProvider: (() => undefined) as IProviderService['getDefaultProvider'], }); reg.definePartialInstance(IModelService, { get: ((id: string) => models[id]) as IModelService['get'], diff --git a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts index 59ea25d6227..2713eb3c309 100644 --- a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts +++ b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts @@ -196,6 +196,19 @@ describe('resolveModelForReady', () => { expect(resolveModelForReady('m', models, {})).toEqual({ resolved: true }); }); + it('resolves a model omitting provider fields through the configured defaultProvider', () => { + const models = { m: { model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady('m', models, providers, 'prov-a')).toEqual({ resolved: true }); + }); + + it('reports provider-missing when the configured defaultProvider is absent from the providers table', () => { + const models = { m: { model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady('m', models, providers, 'gone')).toEqual({ + resolved: false, + reason: 'provider-missing', + }); + }); + it('reports unresolvable when provider id, provider field, and baseUrl are all absent', () => { expect(resolveModelForReady('m', { m: { model: 'gpt' } }, providers)).toEqual({ resolved: false, From dab3ac2c234bf0d60a62f855ac0b79abef723676 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Thu, 27 Aug 2026 19:06:38 +0800 Subject: [PATCH 05/16] fix(kap-server): redact inline model credentials from config responses toConfigResponse only redacted the providers section, so a model's inline apiKey/oauth rode GET /config verbatim and, via the new event.config.changed publisher, every WS connection plus the persistent event journal. Project the models section the same way: strip credential fields and report has_api_key. --- packages/kap-server/src/routes/config.ts | 32 +++++++++++++++++++++++- packages/kap-server/test/config.test.ts | 22 ++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/packages/kap-server/src/routes/config.ts b/packages/kap-server/src/routes/config.ts index 70231d3ba4a..5c306614ac7 100644 --- a/packages/kap-server/src/routes/config.ts +++ b/packages/kap-server/src/routes/config.ts @@ -86,7 +86,12 @@ export function registerConfigRoutes(app: ConfigRouteHost, core: Scope): void { export function toConfigResponse(resolved: Record): ConfigResponse { const wire: Record = {}; for (const [domain, value] of Object.entries(resolved)) { - wire[camelToSnake(domain)] = domain === 'providers' ? toProviderResponses(value) : value; + wire[camelToSnake(domain)] = + domain === 'providers' + ? toProviderResponses(value) + : domain === 'models' + ? toModelResponses(value) + : value; } const defaultPermissionMode = resolved['defaultPermissionMode']; if (typeof defaultPermissionMode === 'string') { @@ -127,6 +132,31 @@ function hasProviderCredential(provider: ProviderLike): boolean { return false; } +interface ModelLike { + readonly apiKey?: unknown; + readonly oauth?: unknown; +} + +function toModelResponses(value: unknown): Record { + const result: Record = {}; + if (!isPlainObject(value)) return result; + for (const [id, raw] of Object.entries(value)) { + if (!isPlainObject(raw)) { + result[id] = raw; + continue; + } + const { apiKey: _apiKey, oauth: _oauth, ...rest } = raw as ModelLike & Record; + result[id] = { ...rest, has_api_key: hasModelCredential(raw as ModelLike) }; + } + return result; +} + +function hasModelCredential(model: ModelLike): boolean { + if (nonEmpty(model.apiKey) !== undefined) return true; + if (model.oauth !== undefined) return true; + return false; +} + function nonEmpty(value: unknown): string | undefined { if (typeof value !== 'string') return undefined; const trimmed = value.trim(); diff --git a/packages/kap-server/test/config.test.ts b/packages/kap-server/test/config.test.ts index c2a7b8468b7..c424aaf2781 100644 --- a/packages/kap-server/test/config.test.ts +++ b/packages/kap-server/test/config.test.ts @@ -399,6 +399,28 @@ describe('configChangedPublisher', () => { expect(published[0]?.payload.config).toEqual({ default_model: 'k2', providers: {} }); }); + it('redacts inline model credentials from the published config projection', () => { + vi.useFakeTimers(); + const { published, fire, setBacking } = setup(); + setBacking({ + providers: {}, + models: { + 'p/m': { provider: 'p', model: 'm', maxContextSize: 4096, apiKey: 'sk-secret' }, + 'p/flat': { baseUrl: 'https://x.test', model: 'm', oauth: { storage: 'file', key: 'oauth/x' } }, + }, + }); + + fire('models'); + vi.advanceTimersByTime(50); + + expect(published).toHaveLength(1); + const config = published[0]?.payload.config as Record; + const models = config['models'] as Record>; + expect(models['p/m']).toEqual({ provider: 'p', model: 'm', maxContextSize: 4096, has_api_key: true }); + expect(models['p/flat']).toEqual({ baseUrl: 'https://x.test', model: 'm', has_api_key: true }); + expect(JSON.stringify(models)).not.toContain('sk-secret'); + }); + it('always delivers a trailing event for late-arriving changes', () => { vi.useFakeTimers(); const { published, fire } = setup(); From a68dcf90d6cb7a340d671e30d4a452937fda0573 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 11:57:15 +0800 Subject: [PATCH 06/16] fix(agent-core-v2): honor defaultProvider in ensureReady credential checks The readiness phase learned the defaultProvider fallback, but the credential phase right after still derived the provider only from the model's explicit fields: a model omitting provider/providerId passed readiness yet missed the default provider's apiKey/OAuth material and prompts failed with auth.token_missing. Mirror the same provider chain (providerId -> provider -> defaultProvider) when resolving credentials. --- .../agent-core-v2/src/app/auth/authService.ts | 13 +++++- .../agent-core-v2/test/app/auth/auth.test.ts | 46 ++++++++++++++++++- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/packages/agent-core-v2/src/app/auth/authService.ts b/packages/agent-core-v2/src/app/auth/authService.ts index 04e2b21a26a..fed1f066cd4 100644 --- a/packages/agent-core-v2/src/app/auth/authService.ts +++ b/packages/agent-core-v2/src/app/auth/authService.ts @@ -331,7 +331,16 @@ export class OAuthService extends Disposable implements IOAuthService { await this.config.reload(); const fresh = this.readUserConfigShape(); - if (!isOAuthCatalogProvider(fresh.providers[KIMI_CODE_PROVIDER_NAME])) { + const freshProvider = fresh.providers[KIMI_CODE_PROVIDER_NAME]; + if (!isOAuthCatalogProvider(freshProvider)) { + return { changed, unchanged, failed }; + } + if ( + freshProvider.baseUrl !== provider.baseUrl || + freshProvider.oauth.storage !== provider.oauth.storage || + freshProvider.oauth.key !== provider.oauth.key || + freshProvider.oauth.oauthHost !== provider.oauth.oauthHost + ) { return { changed, unchanged, failed }; } @@ -660,7 +669,7 @@ export class AuthSummaryService implements IAuthSummaryService { } const model = effectiveModelConfig(configured as ModelRecord); - const providerId = model.providerId ?? model.provider; + const providerId = model.providerId ?? model.provider ?? this.providerService.getDefaultProvider(); const provider = providerId === undefined ? undefined : this.providerService.get(providerId); const providerName = (providerId ?? providerNameFromFlatModel(model)) as string; diff --git a/packages/agent-core-v2/test/app/auth/auth.test.ts b/packages/agent-core-v2/test/app/auth/auth.test.ts index 6d7368fd856..d192aa1e237 100644 --- a/packages/agent-core-v2/test/app/auth/auth.test.ts +++ b/packages/agent-core-v2/test/app/auth/auth.test.ts @@ -981,6 +981,37 @@ describe('OAuthService', () => { expect(fetchMock).toHaveBeenCalledTimes(2); }); + it('aborts the refresh write when the managed provider was edited mid-fetch', async () => { + let resolveFetch!: (value: unknown) => void; + const fetchMock = vi.fn(() => new Promise((resolve) => { resolveFetch = resolve; })); + vi.stubGlobal('fetch', fetchMock); + const svc = createService(); + + const pending = svc.refreshOAuthProviderModels(); + await vi.waitFor(() => expect(fetchMock).toHaveBeenCalled()); + providers = { + ...providers, + [OAUTH_PROVIDER]: { ...providers[OAUTH_PROVIDER]!, baseUrl: 'https://api.changed.example.com' }, + }; + resolveFetch({ + ok: true, + json: async () => ({ + data: [ + { + id: 'kimi-k2', + context_length: 131072, + supports_reasoning: true, + display_name: 'Kimi K2', + }, + ], + }), + }); + + await expect(pending).resolves.toEqual({ changed: [], unchanged: [], failed: [] }); + expect(configReplace).not.toHaveBeenCalled(); + expect(providers[OAUTH_PROVIDER]?.baseUrl).toBe('https://api.changed.example.com'); + }); + it('rewrites a lost default model on refresh even when the catalog is unchanged', async () => { stubManagedModelsFetch(); const svc = createService(); @@ -1482,12 +1513,14 @@ describe('AuthSummaryService', () => { let providers: Record; let models: Record; let defaultModel: string | undefined; + let defaultProvider: string | undefined; let oauthStatus: ReturnType; let getCachedAccessToken: ReturnType; let reload: ReturnType; beforeEach(() => { disposables = new DisposableStore(); + defaultProvider = undefined; providers = { [OAUTH_PROVIDER]: { type: 'kimi', @@ -1518,7 +1551,7 @@ describe('AuthSummaryService', () => { reg.definePartialInstance(IProviderService, { get: ((name: string) => providers[name]) as IProviderService['get'], list: (() => providers) as IProviderService['list'], - getDefaultProvider: (() => undefined) as IProviderService['getDefaultProvider'], + getDefaultProvider: (() => defaultProvider) as IProviderService['getDefaultProvider'], }); reg.definePartialInstance(IModelService, { get: ((id: string) => models[id]) as IModelService['get'], @@ -1635,6 +1668,17 @@ describe('AuthSummaryService', () => { expect(getCachedAccessToken).not.toHaveBeenCalled(); }); + it('ensureReady resolves a providerless model through the configured defaultProvider', async () => { + models = { + flat: { model: 'gpt-4.1', protocol: 'openai', maxContextSize: 128000 }, + }; + defaultModel = 'flat'; + defaultProvider = NON_OAUTH_PROVIDER; + + await expect(createSummary().ensureReady()).resolves.toBeUndefined(); + expect(getCachedAccessToken).not.toHaveBeenCalled(); + }); + it('ensureReady accepts cached oauth tokens', async () => { getCachedAccessToken.mockResolvedValue('access-token'); await expect(createSummary().ensureReady('kimi')).resolves.toBeUndefined(); From 1185efbd5761071cb490ad3170d57b95a087da8a Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 11:57:15 +0800 Subject: [PATCH 07/16] fix(kap-server): validate the model a profile bind will select at the prompt gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gate validated the session's current model even for a prompt that switches profile without a model — but bind falls back to defaultModel in that case, so a stale session model drew a misleading 40113 before bind could run. Gate on bind's selection order instead: the request's explicit model, then the default on a profile switch, then the session's bound model. --- packages/kap-server/src/routes/prompts.ts | 8 +++- packages/kap-server/test/prompts.test.ts | 54 +++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/packages/kap-server/src/routes/prompts.ts b/packages/kap-server/src/routes/prompts.ts index 066ff8b3c37..9fc36bf703b 100644 --- a/packages/kap-server/src/routes/prompts.ts +++ b/packages/kap-server/src/routes/prompts.ts @@ -234,7 +234,13 @@ export function registerPromptsRoutes(app: PromptRouteHost, core: Scope): void { ); const resolved = await resolvePromptFromSession(session, req.body.agent_id); reservation = reservePrompt(resolved.prompt, req.body.prompt_id); - await resolved.auth.ensureReady(req.body.model ?? (resolved.profile.getModel() || undefined)); + const sessionModel = resolved.profile.getModel(); + const switchingProfile = + req.body.profile !== undefined && + req.body.profile !== resolved.profile.data().profileName; + await resolved.auth.ensureReady( + req.body.model ?? (switchingProfile ? undefined : sessionModel || undefined), + ); const telemetry = core.accessor.get(ITelemetryService).withContext({ sessionId: session_id }); preparedMedia = await resolvePromptMediaFiles( diff --git a/packages/kap-server/test/prompts.test.ts b/packages/kap-server/test/prompts.test.ts index 8cdae0a70d1..80cbdde01bd 100644 --- a/packages/kap-server/test/prompts.test.ts +++ b/packages/kap-server/test/prompts.test.ts @@ -68,6 +68,20 @@ const PROMPT_TOML_DANGLING_DEFAULT = PROMPT_TOML.replace( 'default_model = "stub"', 'default_model = "missing"', ); +const PROMPT_TOML_OTHER_DEFAULT = [ + 'default_model = "other"', + '', + '[providers.stub]', + 'type = "openai"', + 'base_url = "http://127.0.0.1:9999"', + 'api_key = "stub"', + '', + '[models.other]', + 'provider = "stub"', + 'model = "other"', + 'max_context_size = 1000', + '', +].join('\n'); const PNG_SIGNATURE = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]); const CRC32_TABLE = makeCrc32Table(); @@ -301,6 +315,46 @@ describe('server-v2 /api/v1 prompts', () => { expect(submitted.body.code).toBe(40113); }); + it('rejects a bound profile switch with 40001 even when the session model is stale', async () => { + await mkdir(join(home as string, 'agents'), { recursive: true }); + await writeFile( + join(home as string, 'agents', 'route-reviewer.md'), + [ + '---', + 'name: route-reviewer', + 'description: reviewer defined by a user-level agent file', + '---', + '', + 'You are a route-test reviewer.', + '', + ].join('\n'), + 'utf-8', + ); + const id = await createSession(home as string); + await createMainAgent(id); + await setSessionModel(id, 'stub'); + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_OTHER_DEFAULT, 'utf-8'); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + profile: 'route-reviewer', + }); + expect(submitted.body.code).toBe(40001); + expect(submitted.body.msg).toContain('already bound'); + }); + + it('rejects a stale session model when no profile switch is requested', async () => { + const id = await createSession(home as string); + await createMainAgent(id); + await setSessionModel(id, 'stub'); + await writeFile(join(home as string, 'config.toml'), PROMPT_TOML_OTHER_DEFAULT, 'utf-8'); + + const submitted = await call('POST', `/api/v1/sessions/${id}/prompts`, { + content: [{ type: 'text', text: 'hello' }], + }); + expect(submitted.body.code).toBe(40113); + }); + it('submits a bundled skill prompt through the skills field', async () => { const id = await createSession(home as string); await createMainAgent(id); From 3566081926c53cd64f0ccf27556b934a5912471c Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 12:46:14 +0800 Subject: [PATCH 08/16] fix(kap-server): redact inline service credentials from config responses The earlier redaction covered providers and models, but toConfigResponse still passed the services section through verbatim: inline or env-injected apiKey, oauth references, and credential-bearing customHeaders rode GET /config and, via the event.config.changed publisher, every WS connection plus the persistent event journal. Project services the same way: strip apiKey/oauth into has_api_key and report only the header names as custom_header_keys (the MCP envKeys/headerKeys convention). --- packages/kap-server/src/routes/config.ts | 24 +++++++++++++++++++- packages/kap-server/test/config.test.ts | 29 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/packages/kap-server/src/routes/config.ts b/packages/kap-server/src/routes/config.ts index 5c306614ac7..4312c6f1bac 100644 --- a/packages/kap-server/src/routes/config.ts +++ b/packages/kap-server/src/routes/config.ts @@ -91,7 +91,9 @@ export function toConfigResponse(resolved: Record): ConfigRespo ? toProviderResponses(value) : domain === 'models' ? toModelResponses(value) - : value; + : domain === 'services' + ? toServiceResponses(value) + : value; } const defaultPermissionMode = resolved['defaultPermissionMode']; if (typeof defaultPermissionMode === 'string') { @@ -157,6 +159,26 @@ function hasModelCredential(model: ModelLike): boolean { return false; } +function toServiceResponses(value: unknown): Record { + const result: Record = {}; + if (!isPlainObject(value)) return result; + for (const [id, raw] of Object.entries(value)) { + if (!isPlainObject(raw)) { + result[id] = raw; + continue; + } + const { apiKey: _apiKey, oauth: _oauth, customHeaders, ...rest } = raw as ModelLike & { + customHeaders?: unknown; + } & Record; + result[id] = { + ...rest, + has_api_key: hasModelCredential(raw as ModelLike), + ...(isPlainObject(customHeaders) ? { custom_header_keys: Object.keys(customHeaders) } : {}), + }; + } + return result; +} + function nonEmpty(value: unknown): string | undefined { if (typeof value !== 'string') return undefined; const trimmed = value.trim(); diff --git a/packages/kap-server/test/config.test.ts b/packages/kap-server/test/config.test.ts index c424aaf2781..61ba89503a0 100644 --- a/packages/kap-server/test/config.test.ts +++ b/packages/kap-server/test/config.test.ts @@ -421,6 +421,35 @@ describe('configChangedPublisher', () => { expect(JSON.stringify(models)).not.toContain('sk-secret'); }); + it('redacts inline service credentials from the published config projection', () => { + vi.useFakeTimers(); + const { published, fire, setBacking } = setup(); + setBacking({ + providers: {}, + services: { + moonshotSearch: { + baseUrl: 'https://s.test', + apiKey: 'sk-svc', + customHeaders: { Authorization: 'Bearer abc', 'x-team': 'core' }, + }, + }, + }); + + fire('services'); + vi.advanceTimersByTime(50); + + expect(published).toHaveLength(1); + const config = published[0]?.payload.config as Record; + const services = config['services'] as Record>; + expect(services['moonshotSearch']).toEqual({ + baseUrl: 'https://s.test', + has_api_key: true, + custom_header_keys: ['Authorization', 'x-team'], + }); + expect(JSON.stringify(services)).not.toContain('sk-svc'); + expect(JSON.stringify(services)).not.toContain('Bearer abc'); + }); + it('always delivers a trailing event for late-arriving changes', () => { vi.useFakeTimers(); const { published, fire } = setup(); From 0abb0de6d1ff254c05cb8e3c8b7e4ed2c4a9cecd Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 12:46:14 +0800 Subject: [PATCH 09/16] fix(kap-server): keep unlisted config domains through event validation The config.changed broadcaster returned the zod-parsed config, which strips domains absent from configResponseSchema (mcp, identity, model_catalog, image, tools, token_counting): changedFields named them while the advertised full snapshot no longer matched GET /api/v1/config. Make the response projection passthrough (defineRoute validates only requests, so REST responses are unaffected). --- .../kap-server/src/protocol/rest-config.ts | 48 ++++++++++--------- .../test/sessionEventBroadcaster.test.ts | 18 +++++++ 2 files changed, 43 insertions(+), 23 deletions(-) diff --git a/packages/kap-server/src/protocol/rest-config.ts b/packages/kap-server/src/protocol/rest-config.ts index f52b268d4df..aca15275a6f 100644 --- a/packages/kap-server/src/protocol/rest-config.ts +++ b/packages/kap-server/src/protocol/rest-config.ts @@ -8,29 +8,31 @@ export const providerConfigResponseSchema = z.object({ }); export type ProviderConfigResponse = z.infer; -export const configResponseSchema = z.object({ - providers: z.record(z.string(), providerConfigResponseSchema).default({}), - default_provider: z.string().optional(), - default_model: z.string().optional(), - models: z.record(z.string(), z.unknown()).optional(), - thinking: z.unknown().optional(), - plan_mode: z.boolean().optional(), - yolo: z.boolean().optional(), - default_permission_mode: z.string().optional(), - default_plan_mode: z.boolean().optional(), - permission: z.unknown().optional(), - hooks: z.array(z.unknown()).optional(), - services: z.unknown().optional(), - merge_all_available_skills: z.boolean().optional(), - extra_skill_dirs: z.array(z.string()).optional(), - loop_control: z.unknown().optional(), - background: z.unknown().optional(), - subagent: z.unknown().optional(), - secondary_model: z.unknown().optional(), - experimental: z.record(z.string(), z.boolean()).optional(), - telemetry: z.boolean().optional(), - raw: z.record(z.string(), z.unknown()).optional(), -}); +export const configResponseSchema = z + .object({ + providers: z.record(z.string(), providerConfigResponseSchema).default({}), + default_provider: z.string().optional(), + default_model: z.string().optional(), + models: z.record(z.string(), z.unknown()).optional(), + thinking: z.unknown().optional(), + plan_mode: z.boolean().optional(), + yolo: z.boolean().optional(), + default_permission_mode: z.string().optional(), + default_plan_mode: z.boolean().optional(), + permission: z.unknown().optional(), + hooks: z.array(z.unknown()).optional(), + services: z.unknown().optional(), + merge_all_available_skills: z.boolean().optional(), + extra_skill_dirs: z.array(z.string()).optional(), + loop_control: z.unknown().optional(), + background: z.unknown().optional(), + subagent: z.unknown().optional(), + secondary_model: z.unknown().optional(), + experimental: z.record(z.string(), z.boolean()).optional(), + telemetry: z.boolean().optional(), + raw: z.record(z.string(), z.unknown()).optional(), + }) + .passthrough(); export type ConfigResponse = z.infer; export const patchConfigRequestSchema = z.object({ diff --git a/packages/kap-server/test/sessionEventBroadcaster.test.ts b/packages/kap-server/test/sessionEventBroadcaster.test.ts index d3848010c03..d86dc69447f 100644 --- a/packages/kap-server/test/sessionEventBroadcaster.test.ts +++ b/packages/kap-server/test/sessionEventBroadcaster.test.ts @@ -1576,6 +1576,24 @@ describe('SessionEventBroadcaster', () => { expect(globalView.deliveries).toEqual(['immediate']); }); + it('preserves unlisted config domains through event validation', async () => { + const globalView = collectingTarget(); + bc.addGlobalTarget(globalView.target); + + const config = { default_model: 'k2', providers: {}, mcp: { servers: { fs: { command: 'npx' } } } }; + eventBus.emit({ + type: 'event.config.changed', + payload: { changedFields: ['mcp'], config }, + }); + + await vi.waitFor(() => expect(globalView.envelopes).toHaveLength(1)); + expect(globalView.envelopes[0]).toMatchObject({ + type: 'event.config.changed', + session_id: '__global__', + payload: { changedFields: ['mcp'], config }, + }); + }); + it('drops malformed event.config.changed payloads', async () => { const globalView = collectingTarget(); bc.addGlobalTarget(globalView.target); From 4e96fb4376871e53d8524906944706d3c1552c72 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 13:57:47 +0800 Subject: [PATCH 10/16] fix(agent-core-v2): use the exact configured key for model readiness lookups resolveModelForReady trimmed the model id before the models-table lookup while ModelCatalog and ensureReady use the configured string as an exact record key: a whitespace-padded default_model was reported ready and then crashed the submit gate with an internal error instead of 40113, and a legitimate key containing spaces was reported dangling. Trim only rejects blank values now; the lookup always uses the raw key. --- packages/agent-core-v2/src/kosong/model/modelAuth.ts | 5 ++--- .../agent-core-v2/test/kosong/model/modelAuth.test.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/agent-core-v2/src/kosong/model/modelAuth.ts b/packages/agent-core-v2/src/kosong/model/modelAuth.ts index 521be4316c1..c78a1824ce5 100644 --- a/packages/agent-core-v2/src/kosong/model/modelAuth.ts +++ b/packages/agent-core-v2/src/kosong/model/modelAuth.ts @@ -236,11 +236,10 @@ export function resolveModelForReady( providers: Readonly>, defaultProvider?: string, ): ModelReadyResolution { - const alias = nonEmpty(modelId); - if (alias === undefined) { + if (modelId === undefined || modelId.trim().length === 0) { return { resolved: false, reason: 'no-default' }; } - const configured = models[alias]; + const configured = models[modelId]; if (configured === undefined) { return { resolved: false, reason: 'dangling-alias' }; } diff --git a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts index 2713eb3c309..ecf12729ddf 100644 --- a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts +++ b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts @@ -164,6 +164,16 @@ describe('resolveModelForReady', () => { }); }); + it('looks up the configured id as an exact key, trimming only to reject blanks', () => { + const models = { m: { providerId: 'prov-a', model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady(' m ', models, providers)).toEqual({ + resolved: false, + reason: 'dangling-alias', + }); + const padded = { ' m ': { providerId: 'prov-a', model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady(' m ', padded, providers)).toEqual({ resolved: true }); + }); + it('resolves a providerId pointing at an existing provider', () => { const models = { m: { providerId: 'prov-a', model: 'gpt', maxContextSize: 4096 } }; expect(resolveModelForReady('m', models, providers)).toEqual({ resolved: true }); From 5eeb378dc1e86f92eebbff6253c502a3784fcf1a Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 13:57:47 +0800 Subject: [PATCH 11/16] fix(protocol): keep unlisted config domains in the shared event projection The shared configResponseSchema stripped domains it does not enumerate (mcp, identity, model_catalog, image, tools, token_counting, subagent, secondary_model), so event.config.changed parsed through agentEventSchema named them in changedFields while omitting their values. Make the shared projection passthrough like the kap-server-local one. --- .../protocol/src/__tests__/events.test.ts | 11 +++++ packages/protocol/src/rest/config.ts | 44 ++++++++++--------- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/packages/protocol/src/__tests__/events.test.ts b/packages/protocol/src/__tests__/events.test.ts index 592f137741d..799ae7f3673 100644 --- a/packages/protocol/src/__tests__/events.test.ts +++ b/packages/protocol/src/__tests__/events.test.ts @@ -154,6 +154,17 @@ describe('events / display re-exports', () => { failed: [{ provider: 'managed:kimi-code', reason: 'network disabled' }], }).success, ).toBe(true); + + const parsed = eventSchema.parse({ + type: 'event.config.changed', + agentId: 'main', + sessionId: '__global__', + changedFields: ['mcp'], + config: { providers: {}, mcp: { servers: { fs: { command: 'mcp-fs' } } } }, + }); + expect((parsed as { config: Record }).config['mcp']).toEqual({ + servers: { fs: { command: 'mcp-fs' } }, + }); }); it('rejects malformed config and model catalog events through the full event union', () => { diff --git a/packages/protocol/src/rest/config.ts b/packages/protocol/src/rest/config.ts index 5dcb7d45afd..8342cbbe8d7 100644 --- a/packages/protocol/src/rest/config.ts +++ b/packages/protocol/src/rest/config.ts @@ -8,27 +8,29 @@ export const providerConfigResponseSchema = z.object({ }); export type ProviderConfigResponse = z.infer; -export const configResponseSchema = z.object({ - providers: z.record(z.string(), providerConfigResponseSchema).default({}), - default_provider: z.string().optional(), - default_model: z.string().optional(), - models: z.record(z.string(), z.unknown()).optional(), - thinking: z.unknown().optional(), - plan_mode: z.boolean().optional(), - yolo: z.boolean().optional(), - default_permission_mode: z.string().optional(), - default_plan_mode: z.boolean().optional(), - permission: z.unknown().optional(), - hooks: z.array(z.unknown()).optional(), - services: z.unknown().optional(), - merge_all_available_skills: z.boolean().optional(), - extra_skill_dirs: z.array(z.string()).optional(), - loop_control: z.unknown().optional(), - background: z.unknown().optional(), - experimental: z.record(z.string(), z.boolean()).optional(), - telemetry: z.boolean().optional(), - raw: z.record(z.string(), z.unknown()).optional(), -}); +export const configResponseSchema = z + .object({ + providers: z.record(z.string(), providerConfigResponseSchema).default({}), + default_provider: z.string().optional(), + default_model: z.string().optional(), + models: z.record(z.string(), z.unknown()).optional(), + thinking: z.unknown().optional(), + plan_mode: z.boolean().optional(), + yolo: z.boolean().optional(), + default_permission_mode: z.string().optional(), + default_plan_mode: z.boolean().optional(), + permission: z.unknown().optional(), + hooks: z.array(z.unknown()).optional(), + services: z.unknown().optional(), + merge_all_available_skills: z.boolean().optional(), + extra_skill_dirs: z.array(z.string()).optional(), + loop_control: z.unknown().optional(), + background: z.unknown().optional(), + experimental: z.record(z.string(), z.boolean()).optional(), + telemetry: z.boolean().optional(), + raw: z.record(z.string(), z.unknown()).optional(), + }) + .passthrough(); export type ConfigResponse = z.infer; export const patchConfigRequestSchema = z.object({ From d5dc506e8b4610fca57010326ffca6c89053aa90 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 14:23:33 +0800 Subject: [PATCH 12/16] fix(agent-core-v2): use the exact default_provider key in readiness checks The defaultProvider fallback trimmed the configured value before the providers-table lookup while ProviderService and ModelCatalog use the configured string verbatim: a whitespace-padded default_provider could build successfully yet report not-ready (40113), or report ready for a provider runtime resolution cannot find. Trim only rejects blank values; the lookup uses the raw key. --- .../agent-core-v2/src/kosong/model/modelAuth.ts | 4 +++- .../test/kosong/model/modelAuth.test.ts | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/agent-core-v2/src/kosong/model/modelAuth.ts b/packages/agent-core-v2/src/kosong/model/modelAuth.ts index c78a1824ce5..5fda0a9ee0d 100644 --- a/packages/agent-core-v2/src/kosong/model/modelAuth.ts +++ b/packages/agent-core-v2/src/kosong/model/modelAuth.ts @@ -244,7 +244,9 @@ export function resolveModelForReady( return { resolved: false, reason: 'dangling-alias' }; } const model = effectiveModelConfig(configured); - const providerId = model.providerId ?? model.provider ?? nonEmpty(defaultProvider); + const fallbackProvider = + defaultProvider === undefined || defaultProvider.trim().length === 0 ? undefined : defaultProvider; + const providerId = model.providerId ?? model.provider ?? fallbackProvider; const provider = providerId === undefined ? undefined : providers[providerId]; if (providerId !== undefined && provider === undefined) { return { resolved: false, reason: 'provider-missing' }; diff --git a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts index ecf12729ddf..d5acf400a43 100644 --- a/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts +++ b/packages/agent-core-v2/test/kosong/model/modelAuth.test.ts @@ -219,6 +219,22 @@ describe('resolveModelForReady', () => { }); }); + it('looks up the default provider as an exact key, trimming only to reject blanks', () => { + const models = { m: { model: 'gpt', maxContextSize: 4096 } }; + expect(resolveModelForReady('m', models, providers, ' prov-a ')).toEqual({ + resolved: false, + reason: 'provider-missing', + }); + const paddedProviders = { ' prov-a ': { type: 'openai', apiKey: 'sk-a' } }; + expect(resolveModelForReady('m', models, paddedProviders, ' prov-a ')).toEqual({ + resolved: true, + }); + expect(resolveModelForReady('m', models, providers, ' ')).toEqual({ + resolved: false, + reason: 'unresolvable', + }); + }); + it('reports unresolvable when provider id, provider field, and baseUrl are all absent', () => { expect(resolveModelForReady('m', { m: { model: 'gpt' } }, providers)).toEqual({ resolved: false, From 9400a24a03863b3e8b780dda251540f824f02f3a Mon Sep 17 00:00:00 2001 From: liruifengv Date: Fri, 28 Aug 2026 15:04:49 +0800 Subject: [PATCH 13/16] chore: sync web dist from code-app Rebuild the bundled web UI against this branch's /auth contract (models_ready, no ready/default_model): the previous bundle still read the old fields and stayed in the not-ready flow against this server. code-app: 000d2594ff3e95b553be326126bab3f939b62944 --- ...-CJGhujJE.js => CodeBlockNode-CAOmb2VU.js} | 4 +- .../assets/DesignSystemView-DId9_nyG.css | 1 - .../assets/DesignSystemView-TDJEKkA2.js | 13 - ...ooltip-06BtTYE8.js => Tooltip-B76-fywy.js} | 2 +- ...2X.js => abnfDiagram-VRR7QNED-B1DELWbe.js} | 2 +- .../kimi-code/dist-web/assets/arc-B7MJFnai.js | 1 + .../kimi-code/dist-web/assets/arc-CC9q5kjc.js | 1 - ... architectureDiagram-ZJ3FMSHR-3BtRzeKy.js} | 2 +- ...2.js => blockDiagram-677ZJIJ3-kqxY_5qX.js} | 2 +- ...sHro.js => c4Diagram-LMCZKHZV-BqeCylRR.js} | 2 +- .../dist-web/assets/channel-BiD6A78K.js | 1 + .../dist-web/assets/channel-d4fEaqwQ.js | 1 - ...DqVWYlyS.js => chunk-2Q5K7J3B-X9yuSZVx.js} | 2 +- ..._Sd4SrsJ.js => chunk-32BRIVSS-wwoCS_p_.js} | 2 +- ...B87d3yQb.js => chunk-5VM5RSS4-DzLUmY02.js} | 2 +- ...CyUsdK3n.js => chunk-EX3LRPZG-5zoYnii5.js} | 2 +- ...XhS5NGpP.js => chunk-JWPE2WC7-pbPBApdZ.js} | 2 +- ...Ce2Y728v.js => chunk-MOJQB5TN-BDh2X7Dq.js} | 6 +- ...D1Yl7opn.js => chunk-RYQCIY6F-DfJNuYFs.js} | 2 +- ...czNi1QQl.js => chunk-V7JOEXUC-B-AWSZKD.js} | 2 +- ...Dzr2NgNj.js => chunk-VR4S4FIN-BZ6zSN1A.js} | 2 +- ...BEgNawAD.js => chunk-XXDRQBXY-BeMc-h4J.js} | 2 +- .../assets/classDiagram-OUVF2IWQ-DPiTyikT.js | 1 - .../assets/classDiagram-OUVF2IWQ-H9j8pcUm.js | 1 + .../classDiagram-v2-EOCWNBFH-DPiTyikT.js | 1 - .../classDiagram-v2-EOCWNBFH-H9j8pcUm.js | 1 + ...o.js => cose-bilkent-JH36ORCC-DPt2Cly4.js} | 2 +- ...mB13eq.js => cynefin-VYW2F7L2-DZba3nFe.js} | 2 +- ...js => cynefinDiagram-TSTJHNR4-tw9SnuBO.js} | 4 +- ...BV_7O_eU.js => dagre-VKFMJZFB-Cnocta_B.js} | 2 +- ...ItQEVf.js => diagram-FQU43EPY-C_ZAIcCI.js} | 6 +- ...4DutfF.js => diagram-G47NLZAW-BGi9RAuZ.js} | 2 +- ...9rk2Ua.js => diagram-NH7WQ7WH-BcwnUf0T.js} | 4 +- ...PyyrOM.js => diagram-OA4YK3LP-C13Jmwqn.js} | 6 +- .../assets/diagram-WEI45ONY-CSnMej41.js | 41 + .../assets/diagram-WEI45ONY-DRhsbaVI.js | 41 - ...C_.js => ebnfDiagram-CCIWWBDH-BKT9L5_x.js} | 2 +- ...RTZk.js => erDiagram-Q63AITRT-CQxYG2fs.js} | 2 +- ...Gr.js => flowDiagram-23GEKE2U-YDQ5LVB-.js} | 10 +- ...4.js => ganttDiagram-NO4QXBWP-DsKYDdll.js} | 2 +- ...s => gitGraphDiagram-IHSO6WYX-BiSdMc-5.js} | 6 +- .../dist-web/assets/index-5_HhvUDu.css | 32 + .../dist-web/assets/index-BTY1et1y.css | 1 - .../{index-DwG2KKf1.js => index-BgQUGEIh.js} | 2 +- .../{index-O6aQX5k9.js => index-BrvY0YN1.js} | 2 +- .../dist-web/assets/index-CAYChmT7.js | 818 ++++++++++++++++++ .../dist-web/assets/index-D1h84VfZ.js | 683 --------------- .../{index-foxHOIBX.js => index-PcnV8jQm.js} | 4 +- ...ndex10-BqVmm7xb.js => index10-B_36ytI8.js} | 2 +- ...ndex11-DwTakJcU.js => index11-DoKsjH9d.js} | 2 +- ...{index5-L7WSqVk4.js => index5-Cs7H224C.js} | 2 +- ...{index6-CBDuyf4L.js => index6-Cg8sgn_Z.js} | 2 +- ...{index7-DnGHoBRb.js => index7-Dsz_tCKU.js} | 2 +- ...{index8-Dz0AkV3W.js => index8-CD-QdcWW.js} | 2 +- ...E1.js => infoDiagram-FWYZ7A6U-DL5ZkPA6.js} | 2 +- ...s => ishikawaDiagram-FXEZZL3T-B_3f5DL9.js} | 6 +- ...js => journeyDiagram-5HDEW3XC-DJw5-9QZ.js} | 2 +- ...=> kanban-definition-HUTT4EX6-1oWO9o4Y.js} | 14 +- ...{linear-BmFm-Eu7.js => linear-CTrOW4k9.js} | 2 +- ...e-DaDTfY6S.js => mermaid.core-D8UeR6T-.js} | 10 +- ...> mindmap-definition-LN4V7U3C-DmxoIVWT.js} | 4 +- ...P9i.js => pegDiagram-2B236MQR-CdGUd8IK.js} | 2 +- .../assets/pieDiagram-ENE6RG2P-5Ehl6T8C.js | 39 - .../assets/pieDiagram-ENE6RG2P-CDZXKY4N.js | 39 + ...s => quadrantDiagram-ABIIQ3AL-C8UGx_zJ.js} | 8 +- ...s => railroadDiagram-RFXS5EU6-DKPWhezP.js} | 2 +- ...> requirementDiagram-TGXJPOKE-gpaxP9zw.js} | 6 +- ....js => sankeyDiagram-HTMAVEWB-BKKKfdqp.js} | 8 +- ...s => sequenceDiagram-DBY2YBRQ-DxnTDgQT.js} | 8 +- ...5C.js => sizeCapture-X5ZJPWSS-C7EUI3Ry.js} | 2 +- .../assets/stateDiagram-2N3HPSRC-BgNd8ALy.js | 1 + .../assets/stateDiagram-2N3HPSRC-ha3u0dwu.js | 1 - .../stateDiagram-v2-6OUMAXLB-1-UDlcwK.js | 1 + .../stateDiagram-v2-6OUMAXLB-B_OpM2in.js | 1 - ...l2F_.js => swimlanes-5IMT3BWC-Dkd5Xzy4.js} | 4 +- .../swimlanesDiagram-G3AALYLV-CK4Yxprm.js | 8 + .../swimlanesDiagram-G3AALYLV-DU8WMkqz.js | 8 - ... timeline-definition-FHXFAJF6-DthXmrAN.js} | 6 +- ...GU.js => vennDiagram-L72KCM5P-BopOpttW.js} | 2 +- ...js => vue.runtime.esm-bundler-CnYhMsa2.js} | 2 +- ...js => wardleyDiagram-EHGQE667-D9i7TF7H.js} | 2 +- ...js => xychartDiagram-FW5EYKEG-evD2LG56.js} | 2 +- apps/kimi-code/dist-web/index.html | 4 +- 83 files changed, 1047 insertions(+), 895 deletions(-) rename apps/kimi-code/dist-web/assets/{CodeBlockNode-CJGhujJE.js => CodeBlockNode-CAOmb2VU.js} (99%) delete mode 100644 apps/kimi-code/dist-web/assets/DesignSystemView-DId9_nyG.css delete mode 100644 apps/kimi-code/dist-web/assets/DesignSystemView-TDJEKkA2.js rename apps/kimi-code/dist-web/assets/{Tooltip-06BtTYE8.js => Tooltip-B76-fywy.js} (98%) rename apps/kimi-code/dist-web/assets/{abnfDiagram-VRR7QNED-BXPcW32X.js => abnfDiagram-VRR7QNED-B1DELWbe.js} (86%) create mode 100644 apps/kimi-code/dist-web/assets/arc-B7MJFnai.js delete mode 100644 apps/kimi-code/dist-web/assets/arc-CC9q5kjc.js rename apps/kimi-code/dist-web/assets/{architectureDiagram-ZJ3FMSHR-BkXVAeQG.js => architectureDiagram-ZJ3FMSHR-3BtRzeKy.js} (99%) rename apps/kimi-code/dist-web/assets/{blockDiagram-677ZJIJ3-DMGXLKk2.js => blockDiagram-677ZJIJ3-kqxY_5qX.js} (86%) rename apps/kimi-code/dist-web/assets/{c4Diagram-LMCZKHZV-CuD9sHro.js => c4Diagram-LMCZKHZV-BqeCylRR.js} (99%) create mode 100644 apps/kimi-code/dist-web/assets/channel-BiD6A78K.js delete mode 100644 apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js rename apps/kimi-code/dist-web/assets/{chunk-2Q5K7J3B-DqVWYlyS.js => chunk-2Q5K7J3B-X9yuSZVx.js} (67%) rename apps/kimi-code/dist-web/assets/{chunk-32BRIVSS-_Sd4SrsJ.js => chunk-32BRIVSS-wwoCS_p_.js} (96%) rename apps/kimi-code/dist-web/assets/{chunk-5VM5RSS4-B87d3yQb.js => chunk-5VM5RSS4-DzLUmY02.js} (83%) rename apps/kimi-code/dist-web/assets/{chunk-EX3LRPZG-CyUsdK3n.js => chunk-EX3LRPZG-5zoYnii5.js} (99%) rename apps/kimi-code/dist-web/assets/{chunk-JWPE2WC7-XhS5NGpP.js => chunk-JWPE2WC7-pbPBApdZ.js} (71%) rename apps/kimi-code/dist-web/assets/{chunk-MOJQB5TN-Ce2Y728v.js => chunk-MOJQB5TN-BDh2X7Dq.js} (97%) rename apps/kimi-code/dist-web/assets/{chunk-RYQCIY6F-D1Yl7opn.js => chunk-RYQCIY6F-DfJNuYFs.js} (99%) rename apps/kimi-code/dist-web/assets/{chunk-V7JOEXUC-czNi1QQl.js => chunk-V7JOEXUC-B-AWSZKD.js} (99%) rename apps/kimi-code/dist-web/assets/{chunk-VR4S4FIN-Dzr2NgNj.js => chunk-VR4S4FIN-BZ6zSN1A.js} (87%) rename apps/kimi-code/dist-web/assets/{chunk-XXDRQBXY-BEgNawAD.js => chunk-XXDRQBXY-BeMc-h4J.js} (72%) delete mode 100644 apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js create mode 100644 apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js delete mode 100644 apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js create mode 100644 apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js rename apps/kimi-code/dist-web/assets/{cose-bilkent-JH36ORCC-CDDliH5o.js => cose-bilkent-JH36ORCC-DPt2Cly4.js} (99%) rename apps/kimi-code/dist-web/assets/{cynefin-VYW2F7L2-0NmB13eq.js => cynefin-VYW2F7L2-DZba3nFe.js} (99%) rename apps/kimi-code/dist-web/assets/{cynefinDiagram-TSTJHNR4-CSvOhRTt.js => cynefinDiagram-TSTJHNR4-tw9SnuBO.js} (61%) rename apps/kimi-code/dist-web/assets/{dagre-VKFMJZFB-BV_7O_eU.js => dagre-VKFMJZFB-Cnocta_B.js} (97%) rename apps/kimi-code/dist-web/assets/{diagram-FQU43EPY-C_ItQEVf.js => diagram-FQU43EPY-C_ZAIcCI.js} (91%) rename apps/kimi-code/dist-web/assets/{diagram-G47NLZAW-Cm4DutfF.js => diagram-G47NLZAW-BGi9RAuZ.js} (84%) rename apps/kimi-code/dist-web/assets/{diagram-NH7WQ7WH-C09rk2Ua.js => diagram-NH7WQ7WH-BcwnUf0T.js} (85%) rename apps/kimi-code/dist-web/assets/{diagram-OA4YK3LP-DnPyyrOM.js => diagram-OA4YK3LP-C13Jmwqn.js} (82%) create mode 100644 apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js delete mode 100644 apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js rename apps/kimi-code/dist-web/assets/{ebnfDiagram-CCIWWBDH-C6JPA7C_.js => ebnfDiagram-CCIWWBDH-BKT9L5_x.js} (87%) rename apps/kimi-code/dist-web/assets/{erDiagram-Q63AITRT-xK3dRTZk.js => erDiagram-Q63AITRT-CQxYG2fs.js} (98%) rename apps/kimi-code/dist-web/assets/{flowDiagram-23GEKE2U-D0EBISGr.js => flowDiagram-23GEKE2U-YDQ5LVB-.js} (96%) rename apps/kimi-code/dist-web/assets/{ganttDiagram-NO4QXBWP-IslzQD84.js => ganttDiagram-NO4QXBWP-DsKYDdll.js} (99%) rename apps/kimi-code/dist-web/assets/{gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js => gitGraphDiagram-IHSO6WYX-BiSdMc-5.js} (95%) create mode 100644 apps/kimi-code/dist-web/assets/index-5_HhvUDu.css delete mode 100644 apps/kimi-code/dist-web/assets/index-BTY1et1y.css rename apps/kimi-code/dist-web/assets/{index-DwG2KKf1.js => index-BgQUGEIh.js} (99%) rename apps/kimi-code/dist-web/assets/{index-O6aQX5k9.js => index-BrvY0YN1.js} (99%) create mode 100644 apps/kimi-code/dist-web/assets/index-CAYChmT7.js delete mode 100644 apps/kimi-code/dist-web/assets/index-D1h84VfZ.js rename apps/kimi-code/dist-web/assets/{index-foxHOIBX.js => index-PcnV8jQm.js} (99%) rename apps/kimi-code/dist-web/assets/{index10-BqVmm7xb.js => index10-B_36ytI8.js} (99%) rename apps/kimi-code/dist-web/assets/{index11-DwTakJcU.js => index11-DoKsjH9d.js} (99%) rename apps/kimi-code/dist-web/assets/{index5-L7WSqVk4.js => index5-Cs7H224C.js} (95%) rename apps/kimi-code/dist-web/assets/{index6-CBDuyf4L.js => index6-Cg8sgn_Z.js} (98%) rename apps/kimi-code/dist-web/assets/{index7-DnGHoBRb.js => index7-Dsz_tCKU.js} (98%) rename apps/kimi-code/dist-web/assets/{index8-Dz0AkV3W.js => index8-CD-QdcWW.js} (99%) rename apps/kimi-code/dist-web/assets/{infoDiagram-FWYZ7A6U-YBdL8hE1.js => infoDiagram-FWYZ7A6U-DL5ZkPA6.js} (69%) rename apps/kimi-code/dist-web/assets/{ishikawaDiagram-FXEZZL3T-CJxOHefD.js => ishikawaDiagram-FXEZZL3T-B_3f5DL9.js} (79%) rename apps/kimi-code/dist-web/assets/{journeyDiagram-5HDEW3XC-DHq-P2j9.js => journeyDiagram-5HDEW3XC-DJw5-9QZ.js} (98%) rename apps/kimi-code/dist-web/assets/{kanban-definition-HUTT4EX6-C6iL68OT.js => kanban-definition-HUTT4EX6-1oWO9o4Y.js} (87%) rename apps/kimi-code/dist-web/assets/{linear-BmFm-Eu7.js => linear-CTrOW4k9.js} (98%) rename apps/kimi-code/dist-web/assets/{mermaid.core-DaDTfY6S.js => mermaid.core-D8UeR6T-.js} (99%) rename apps/kimi-code/dist-web/assets/{mindmap-definition-LN4V7U3C-WAq6xftS.js => mindmap-definition-LN4V7U3C-DmxoIVWT.js} (96%) rename apps/kimi-code/dist-web/assets/{pegDiagram-2B236MQR-C7Ks7P9i.js => pegDiagram-2B236MQR-CdGUd8IK.js} (87%) delete mode 100644 apps/kimi-code/dist-web/assets/pieDiagram-ENE6RG2P-5Ehl6T8C.js create mode 100644 apps/kimi-code/dist-web/assets/pieDiagram-ENE6RG2P-CDZXKY4N.js rename apps/kimi-code/dist-web/assets/{quadrantDiagram-ABIIQ3AL-8vMHBPBY.js => quadrantDiagram-ABIIQ3AL-C8UGx_zJ.js} (87%) rename apps/kimi-code/dist-web/assets/{railroadDiagram-RFXS5EU6-BBlgCMW5.js => railroadDiagram-RFXS5EU6-DKPWhezP.js} (84%) rename apps/kimi-code/dist-web/assets/{requirementDiagram-TGXJPOKE-B8hGppVZ.js => requirementDiagram-TGXJPOKE-gpaxP9zw.js} (96%) rename apps/kimi-code/dist-web/assets/{sankeyDiagram-HTMAVEWB-BhsqMuTt.js => sankeyDiagram-HTMAVEWB-BKKKfdqp.js} (95%) rename apps/kimi-code/dist-web/assets/{sequenceDiagram-DBY2YBRQ-B2h-6vZ7.js => sequenceDiagram-DBY2YBRQ-DxnTDgQT.js} (80%) rename apps/kimi-code/dist-web/assets/{sizeCapture-X5ZJPWSS-JndNlF5C.js => sizeCapture-X5ZJPWSS-C7EUI3Ry.js} (86%) create mode 100644 apps/kimi-code/dist-web/assets/stateDiagram-2N3HPSRC-BgNd8ALy.js delete mode 100644 apps/kimi-code/dist-web/assets/stateDiagram-2N3HPSRC-ha3u0dwu.js create mode 100644 apps/kimi-code/dist-web/assets/stateDiagram-v2-6OUMAXLB-1-UDlcwK.js delete mode 100644 apps/kimi-code/dist-web/assets/stateDiagram-v2-6OUMAXLB-B_OpM2in.js rename apps/kimi-code/dist-web/assets/{swimlanes-5IMT3BWC-C4tzl2F_.js => swimlanes-5IMT3BWC-Dkd5Xzy4.js} (99%) create mode 100644 apps/kimi-code/dist-web/assets/swimlanesDiagram-G3AALYLV-CK4Yxprm.js delete mode 100644 apps/kimi-code/dist-web/assets/swimlanesDiagram-G3AALYLV-DU8WMkqz.js rename apps/kimi-code/dist-web/assets/{timeline-definition-FHXFAJF6-CV7TbRUK.js => timeline-definition-FHXFAJF6-DthXmrAN.js} (82%) rename apps/kimi-code/dist-web/assets/{vennDiagram-L72KCM5P-BNRmZgGU.js => vennDiagram-L72KCM5P-BopOpttW.js} (99%) rename apps/kimi-code/dist-web/assets/{vue.runtime.esm-bundler-DL_Wfh3f.js => vue.runtime.esm-bundler-CnYhMsa2.js} (98%) rename apps/kimi-code/dist-web/assets/{wardleyDiagram-EHGQE667-DVjnwE-A.js => wardleyDiagram-EHGQE667-D9i7TF7H.js} (98%) rename apps/kimi-code/dist-web/assets/{xychartDiagram-FW5EYKEG-Bg0qevEv.js => xychartDiagram-FW5EYKEG-evD2LG56.js} (99%) diff --git a/apps/kimi-code/dist-web/assets/CodeBlockNode-CJGhujJE.js b/apps/kimi-code/dist-web/assets/CodeBlockNode-CAOmb2VU.js similarity index 99% rename from apps/kimi-code/dist-web/assets/CodeBlockNode-CJGhujJE.js rename to apps/kimi-code/dist-web/assets/CodeBlockNode-CAOmb2VU.js index a1e0867ac88..959e5386e19 100644 --- a/apps/kimi-code/dist-web/assets/CodeBlockNode-CJGhujJE.js +++ b/apps/kimi-code/dist-web/assets/CodeBlockNode-CAOmb2VU.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-foxHOIBX.js","assets/index-D1h84VfZ.js","assets/index-BTY1et1y.css"])))=>i.map(i=>d[i]); -import{bR as xi,cb as Si,bQ as Ho,M as pl,bl as Ci,af as fl,bY as Mi,cc as Bi,b$ as hl,aU as $,c0 as Ei,c1 as Fi,c2 as Pi,a0 as Mo,aD as No,bE as ue,az as Li,cd as wn,c8 as mt,aI as To,aL as Y,s as Sn,aw as Vt,au as pt,bk as J,ce as Bo,u as ie,I as Ro,A as Oi,bJ as Gt,aY as ht,bL as vl,v as w,t as we,bB as ml,bb as Be,q as b,b7 as $i,cf as zi,cg as bn,ch as Hi,ci as Ni,cj as Ti,ck as Ri,as as A,cl as Eo,cm as Di,cn as Ai,co as Wt,cp as Fo,bO as Do,T as ji,G as qi,F as Po,g as Wi,c7 as _i,b_ as Ii}from"./index-D1h84VfZ.js";import{i as fe,t as kn}from"./safeRaf-DGuzXxDK.js";var xn=(k,M,y)=>new Promise((te,ne)=>{var be=P=>{try{r(y.next(P))}catch(H){ne(H)}},ke=P=>{try{r(y.throw(P))}catch(H){ne(H)}},r=P=>P.done?te(P.value):Promise.resolve(P.value).then(be,ke);r((y=y.apply(k,M)).next())});let Lo=!1,_t=null,It=null,Ut=null;function Ui(){return xn(this,null,function*(){if(Ut)return Ut;Ut=xn(null,null,function*(){if(!It)try{if(It=(function(k){const M=k;if(typeof M?.useMonaco=="function")return M;const y=k?.default;return typeof y?.useMonaco=="function"?y:null})(yield xi(()=>import("./index-foxHOIBX.js"),__vite__mapDeps([0,1,2]))),!It)return null}catch{return null}try{return yield(function(k){return xn(this,null,function*(){return Lo?void 0:_t||(_t=xn(null,null,function*(){const y=globalThis?.MonacoEnvironment;y&&(typeof y.getWorker=="function"||typeof y.getWorkerUrl=="function")||typeof k?.preloadMonacoWorkers!="function"||(yield k.preloadMonacoWorkers()),Lo=!0}).finally(()=>{_t=null}),_t)})})(It),Si(),It}catch{return null}});try{return yield Ut}finally{Ut=null}})}var Vi=Object.defineProperty,Gi=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,$o=(k,M,y)=>M in k?Vi(k,M,{enumerable:!0,configurable:!0,writable:!0,value:y}):k[M]=y,U=(k,M)=>{for(var y in M||(M={}))Yi.call(M,y)&&$o(k,y,M[y]);if(Oo)for(var y of Oo(M))Qi.call(M,y)&&$o(k,y,M[y]);return k},Me=(k,M)=>Gi(k,Ji(M)),j=(k,M,y)=>new Promise((te,ne)=>{var be=P=>{try{r(y.next(P))}catch(H){ne(H)}},ke=P=>{try{r(y.throw(P))}catch(H){ne(H)}},r=P=>P.done?te(P.value):Promise.resolve(P.value).then(be,ke);r((y=y.apply(k,M)).next())});const Xi={key:0,class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},Ki={class:"flex items-center gap-0.5"},Zi=["aria-label"],er={class:"code-diff-stat removed"},tr={class:"code-diff-stat added"},nr=["aria-label"],lr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},or={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},ir=["aria-pressed"],rr={key:3,class:"relative"},ar=["aria-expanded"],ur=["disabled"],sr=["disabled"],dr=["disabled"],cr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},fr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},vr={class:"code-loading-placeholder"},mr={class:"sr-only","aria-live":"polite",role:"status"},pr=pl({__name:"CodeBlockShell",props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:["toggleCollapse","decreaseFont","resetFont","increaseFont","copy","toggleExpand","preview"],setup(k,{emit:M}){const y=k,te=M,ne=$(!1),be=$(null),ke=$(null);function r(){mt(!0),ne.value=!ne.value,ne.value&&document.addEventListener("click",H,{once:!0,capture:!0})}function P(){mt(!0),ne.value=!1}function H(Q){var v,z;const wt=Q.target;(v=be.value)!=null&&v.contains(wt)||(z=ke.value)!=null&&z.contains(wt)?document.addEventListener("click",H,{once:!0,capture:!0}):P()}const re=b(()=>y.showFontSizeButtons&&y.enableFontSizeControl||y.showExpandButton||y.isPreviewable&&y.showPreviewButton),{t:T}=hl(),gt=b(()=>y.showTooltips!==!1);function Ge(Q,v){gt.value&&_i(Q.currentTarget,v,"top",!1,void 0,y.isDark)}function Ee(){gt.value&&mt()}function yt(Q){Ge(Q,y.copyText?T("common.copied")||"Copied":T("common.copy")||"Copy")}const gl=b(()=>{var Q,v;return!!Number.isFinite(y.codeFontSize)&&((Q=y.codeFontSize)!=null?Q:0)<=((v=y.codeFontMin)!=null?v:0)}),Jt=b(()=>!y.fontBaselineReady||y.codeFontSize===y.defaultCodeFontSize),Yt=b(()=>{var Q,v;return!!Number.isFinite(y.codeFontSize)&&((Q=y.codeFontSize)!=null?Q:0)>=((v=y.codeFontMax)!=null?v:100)});return(Q,v)=>(Y(),ie(Po,null,[y.showHeader?(Y(),ie("div",Xi,[ht(Q.$slots,"header-left"),ht(Q.$slots,"header-right",{},()=>[w("div",Ki,[k.diffStats?(Y(),ie("div",{key:0,class:"code-diff-stats","aria-label":k.diffStatsAriaLabel},[w("span",er,"-"+Be(k.diffStats.removed),1),w("span",tr,"+"+Be(k.diffStats.added),1)],8,Zi)):we("",!0),y.showCopyButton?(Y(),ie("button",{key:1,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-label":k.copyText?J(T)("common.copied")||"Copied":J(T)("common.copy")||"Copy",onClick:v[0]||(v[0]=z=>te("copy")),onMouseenter:v[1]||(v[1]=z=>yt(z)),onFocus:v[2]||(v[2]=z=>yt(z)),onMouseleave:Ee,onBlur:Ee},[k.copyText?(Y(),ie("svg",or,[...v[14]||(v[14]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(Y(),ie("svg",lr,[...v[13]||(v[13]=[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),w("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,nr)):we("",!0),y.showCollapseButton?(Y(),ie("button",{key:2,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-pressed":k.isCollapsed,onClick:v[3]||(v[3]=z=>te("toggleCollapse")),onMouseenter:v[4]||(v[4]=z=>Ge(z,k.isCollapsed?J(T)("common.expand")||"Expand":J(T)("common.collapse")||"Collapse")),onFocus:v[5]||(v[5]=z=>Ge(z,k.isCollapsed?J(T)("common.expand")||"Expand":J(T)("common.collapse")||"Collapse")),onMouseleave:Ee,onBlur:Ee},[(Y(),ie("svg",{style:Vt({rotate:k.isCollapsed?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...v[15]||(v[15]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,ir)):we("",!0),re.value?(Y(),ie("div",rr,[w("button",{ref_key:"moreBtnRef",ref:ke,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors","aria-expanded":ne.value,"aria-haspopup":"true",onClick:Do(r,["stop"]),onMouseenter:v[6]||(v[6]=z=>Ge(z,J(T)("common.more")||"More")),onFocus:v[7]||(v[7]=z=>Ge(z,J(T)("common.more")||"More")),onMouseleave:Ee,onBlur:Ee},[...v[16]||(v[16]=[qi('',1)])],40,ar),Ro(Wi,{name:"code-menu"},{default:Gt(()=>[ne.value?(Y(),ie("div",{key:0,ref_key:"moreMenuRef",ref:be,class:"code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]",role:"menu"},[y.showFontSizeButtons&&y.enableFontSizeControl?(Y(),ie(Po,{key:0},[w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:gl.value,onClick:v[8]||(v[8]=z=>{J(mt)(!0),te("decreaseFont")})},[v[17]||(v[17]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)),w("span",null,Be(J(T)("common.fontSmaller")||"Font size −"),1)],8,ur),w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Jt.value,onClick:v[9]||(v[9]=z=>{J(mt)(!0),te("resetFont")})},[v[18]||(v[18]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),w("path",{d:"M3 3v5h5"})])],-1)),w("span",null,Be(J(T)("common.fontReset")||"Font size reset"),1)],8,sr),w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Yt.value,onClick:v[10]||(v[10]=z=>{J(mt)(!0),te("increaseFont")})},[v[19]||(v[19]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)),w("span",null,Be(J(T)("common.fontLarger")||"Font size +"),1)],8,dr)],64)):we("",!0),y.showExpandButton?(Y(),ie("button",{key:1,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:v[11]||(v[11]=z=>{P(),te("toggleExpand")})},[k.isExpanded?(Y(),ie("svg",cr,[...v[20]||(v[20]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(Y(),ie("svg",fr,[...v[21]||(v[21]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])),w("span",null,Be(k.isExpanded?J(T)("common.collapse")||"Collapse":J(T)("common.expand")||"Expand"),1)])):we("",!0),k.isPreviewable&&y.showPreviewButton?(Y(),ie("button",{key:2,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:v[12]||(v[12]=z=>{P(),te("preview")})},[v[22]||(v[22]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),w("circle",{cx:"12",cy:"12",r:"3"})])],-1)),w("span",null,Be(J(T)("common.preview")||"Preview"),1)])):we("",!0)],512)):we("",!0)]),_:1})])):we("",!0)])])])):we("",!0),vl(w("div",{class:pt(["code-block-shell-content",{"code-block-shell-content--collapsed":k.isCollapsed}])},[ht(Q.$slots,"default")],2),[[ml,!!k.stream||!k.loading]]),vl(w("div",vr,[ht(Q.$slots,"loading",{},()=>[v[23]||(v[23]=w("div",{class:"loading-skeleton"},[w("div",{class:"skeleton-line"}),w("div",{class:"skeleton-line"}),w("div",{class:"skeleton-line short"})],-1))])],512),[[ml,!k.stream&&k.loading]]),w("span",mr,Be(k.copyText?J(T)("common.copied")||"Copied":""),1)],64))}}),hr={class:"html-preview-frame__header"},gr={class:"html-preview-frame__title"},yr={class:"html-preview-frame__label"},wr=["sandbox","srcdoc"],br=Ho(pl({__name:"HtmlPreviewFrame",props:{code:{},isDark:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},onClose:{type:Function},title:{}},setup(k){const M=k,y=import.meta!==void 0&&!1;let te=null;const{t:ne}=hl(),be=b(()=>{const P=M.code||"",H=P.trim().toLowerCase();return H.startsWith(" +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-PcnV8jQm.js","assets/index-CAYChmT7.js","assets/index-5_HhvUDu.css"])))=>i.map(i=>d[i]); +import{bR as xi,cb as Si,bQ as Ho,M as pl,bl as Ci,af as fl,bY as Mi,cc as Bi,b$ as hl,aU as $,c0 as Ei,c1 as Fi,c2 as Pi,a0 as Mo,aD as No,bE as ue,az as Li,cd as wn,c8 as mt,aI as To,aL as Y,s as Sn,aw as Vt,au as pt,bk as J,ce as Bo,u as ie,I as Ro,A as Oi,bJ as Gt,aY as ht,bL as vl,v as w,t as we,bB as ml,bb as Be,q as b,b7 as $i,cf as zi,cg as bn,ch as Hi,ci as Ni,cj as Ti,ck as Ri,as as A,cl as Eo,cm as Di,cn as Ai,co as Wt,cp as Fo,bO as Do,T as ji,G as qi,F as Po,g as Wi,c7 as _i,b_ as Ii}from"./index-CAYChmT7.js";import{i as fe,t as kn}from"./safeRaf-DGuzXxDK.js";var xn=(k,M,y)=>new Promise((te,ne)=>{var be=P=>{try{r(y.next(P))}catch(H){ne(H)}},ke=P=>{try{r(y.throw(P))}catch(H){ne(H)}},r=P=>P.done?te(P.value):Promise.resolve(P.value).then(be,ke);r((y=y.apply(k,M)).next())});let Lo=!1,_t=null,It=null,Ut=null;function Ui(){return xn(this,null,function*(){if(Ut)return Ut;Ut=xn(null,null,function*(){if(!It)try{if(It=(function(k){const M=k;if(typeof M?.useMonaco=="function")return M;const y=k?.default;return typeof y?.useMonaco=="function"?y:null})(yield xi(()=>import("./index-PcnV8jQm.js"),__vite__mapDeps([0,1,2]))),!It)return null}catch{return null}try{return yield(function(k){return xn(this,null,function*(){return Lo?void 0:_t||(_t=xn(null,null,function*(){const y=globalThis?.MonacoEnvironment;y&&(typeof y.getWorker=="function"||typeof y.getWorkerUrl=="function")||typeof k?.preloadMonacoWorkers!="function"||(yield k.preloadMonacoWorkers()),Lo=!0}).finally(()=>{_t=null}),_t)})})(It),Si(),It}catch{return null}});try{return yield Ut}finally{Ut=null}})}var Vi=Object.defineProperty,Gi=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,$o=(k,M,y)=>M in k?Vi(k,M,{enumerable:!0,configurable:!0,writable:!0,value:y}):k[M]=y,U=(k,M)=>{for(var y in M||(M={}))Yi.call(M,y)&&$o(k,y,M[y]);if(Oo)for(var y of Oo(M))Qi.call(M,y)&&$o(k,y,M[y]);return k},Me=(k,M)=>Gi(k,Ji(M)),j=(k,M,y)=>new Promise((te,ne)=>{var be=P=>{try{r(y.next(P))}catch(H){ne(H)}},ke=P=>{try{r(y.throw(P))}catch(H){ne(H)}},r=P=>P.done?te(P.value):Promise.resolve(P.value).then(be,ke);r((y=y.apply(k,M)).next())});const Xi={key:0,class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},Ki={class:"flex items-center gap-0.5"},Zi=["aria-label"],er={class:"code-diff-stat removed"},tr={class:"code-diff-stat added"},nr=["aria-label"],lr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},or={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},ir=["aria-pressed"],rr={key:3,class:"relative"},ar=["aria-expanded"],ur=["disabled"],sr=["disabled"],dr=["disabled"],cr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},fr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},vr={class:"code-loading-placeholder"},mr={class:"sr-only","aria-live":"polite",role:"status"},pr=pl({__name:"CodeBlockShell",props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:["toggleCollapse","decreaseFont","resetFont","increaseFont","copy","toggleExpand","preview"],setup(k,{emit:M}){const y=k,te=M,ne=$(!1),be=$(null),ke=$(null);function r(){mt(!0),ne.value=!ne.value,ne.value&&document.addEventListener("click",H,{once:!0,capture:!0})}function P(){mt(!0),ne.value=!1}function H(Q){var v,z;const wt=Q.target;(v=be.value)!=null&&v.contains(wt)||(z=ke.value)!=null&&z.contains(wt)?document.addEventListener("click",H,{once:!0,capture:!0}):P()}const re=b(()=>y.showFontSizeButtons&&y.enableFontSizeControl||y.showExpandButton||y.isPreviewable&&y.showPreviewButton),{t:T}=hl(),gt=b(()=>y.showTooltips!==!1);function Ge(Q,v){gt.value&&_i(Q.currentTarget,v,"top",!1,void 0,y.isDark)}function Ee(){gt.value&&mt()}function yt(Q){Ge(Q,y.copyText?T("common.copied")||"Copied":T("common.copy")||"Copy")}const gl=b(()=>{var Q,v;return!!Number.isFinite(y.codeFontSize)&&((Q=y.codeFontSize)!=null?Q:0)<=((v=y.codeFontMin)!=null?v:0)}),Jt=b(()=>!y.fontBaselineReady||y.codeFontSize===y.defaultCodeFontSize),Yt=b(()=>{var Q,v;return!!Number.isFinite(y.codeFontSize)&&((Q=y.codeFontSize)!=null?Q:0)>=((v=y.codeFontMax)!=null?v:100)});return(Q,v)=>(Y(),ie(Po,null,[y.showHeader?(Y(),ie("div",Xi,[ht(Q.$slots,"header-left"),ht(Q.$slots,"header-right",{},()=>[w("div",Ki,[k.diffStats?(Y(),ie("div",{key:0,class:"code-diff-stats","aria-label":k.diffStatsAriaLabel},[w("span",er,"-"+Be(k.diffStats.removed),1),w("span",tr,"+"+Be(k.diffStats.added),1)],8,Zi)):we("",!0),y.showCopyButton?(Y(),ie("button",{key:1,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-label":k.copyText?J(T)("common.copied")||"Copied":J(T)("common.copy")||"Copy",onClick:v[0]||(v[0]=z=>te("copy")),onMouseenter:v[1]||(v[1]=z=>yt(z)),onFocus:v[2]||(v[2]=z=>yt(z)),onMouseleave:Ee,onBlur:Ee},[k.copyText?(Y(),ie("svg",or,[...v[14]||(v[14]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(Y(),ie("svg",lr,[...v[13]||(v[13]=[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),w("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,nr)):we("",!0),y.showCollapseButton?(Y(),ie("button",{key:2,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-pressed":k.isCollapsed,onClick:v[3]||(v[3]=z=>te("toggleCollapse")),onMouseenter:v[4]||(v[4]=z=>Ge(z,k.isCollapsed?J(T)("common.expand")||"Expand":J(T)("common.collapse")||"Collapse")),onFocus:v[5]||(v[5]=z=>Ge(z,k.isCollapsed?J(T)("common.expand")||"Expand":J(T)("common.collapse")||"Collapse")),onMouseleave:Ee,onBlur:Ee},[(Y(),ie("svg",{style:Vt({rotate:k.isCollapsed?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...v[15]||(v[15]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,ir)):we("",!0),re.value?(Y(),ie("div",rr,[w("button",{ref_key:"moreBtnRef",ref:ke,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors","aria-expanded":ne.value,"aria-haspopup":"true",onClick:Do(r,["stop"]),onMouseenter:v[6]||(v[6]=z=>Ge(z,J(T)("common.more")||"More")),onFocus:v[7]||(v[7]=z=>Ge(z,J(T)("common.more")||"More")),onMouseleave:Ee,onBlur:Ee},[...v[16]||(v[16]=[qi('',1)])],40,ar),Ro(Wi,{name:"code-menu"},{default:Gt(()=>[ne.value?(Y(),ie("div",{key:0,ref_key:"moreMenuRef",ref:be,class:"code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]",role:"menu"},[y.showFontSizeButtons&&y.enableFontSizeControl?(Y(),ie(Po,{key:0},[w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:gl.value,onClick:v[8]||(v[8]=z=>{J(mt)(!0),te("decreaseFont")})},[v[17]||(v[17]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)),w("span",null,Be(J(T)("common.fontSmaller")||"Font size −"),1)],8,ur),w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Jt.value,onClick:v[9]||(v[9]=z=>{J(mt)(!0),te("resetFont")})},[v[18]||(v[18]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),w("path",{d:"M3 3v5h5"})])],-1)),w("span",null,Be(J(T)("common.fontReset")||"Font size reset"),1)],8,sr),w("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Yt.value,onClick:v[10]||(v[10]=z=>{J(mt)(!0),te("increaseFont")})},[v[19]||(v[19]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)),w("span",null,Be(J(T)("common.fontLarger")||"Font size +"),1)],8,dr)],64)):we("",!0),y.showExpandButton?(Y(),ie("button",{key:1,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:v[11]||(v[11]=z=>{P(),te("toggleExpand")})},[k.isExpanded?(Y(),ie("svg",cr,[...v[20]||(v[20]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(Y(),ie("svg",fr,[...v[21]||(v[21]=[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])),w("span",null,Be(k.isExpanded?J(T)("common.collapse")||"Collapse":J(T)("common.expand")||"Expand"),1)])):we("",!0),k.isPreviewable&&y.showPreviewButton?(Y(),ie("button",{key:2,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:v[12]||(v[12]=z=>{P(),te("preview")})},[v[22]||(v[22]=w("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),w("circle",{cx:"12",cy:"12",r:"3"})])],-1)),w("span",null,Be(J(T)("common.preview")||"Preview"),1)])):we("",!0)],512)):we("",!0)]),_:1})])):we("",!0)])])])):we("",!0),vl(w("div",{class:pt(["code-block-shell-content",{"code-block-shell-content--collapsed":k.isCollapsed}])},[ht(Q.$slots,"default")],2),[[ml,!!k.stream||!k.loading]]),vl(w("div",vr,[ht(Q.$slots,"loading",{},()=>[v[23]||(v[23]=w("div",{class:"loading-skeleton"},[w("div",{class:"skeleton-line"}),w("div",{class:"skeleton-line"}),w("div",{class:"skeleton-line short"})],-1))])],512),[[ml,!k.stream&&k.loading]]),w("span",mr,Be(k.copyText?J(T)("common.copied")||"Copied":""),1)],64))}}),hr={class:"html-preview-frame__header"},gr={class:"html-preview-frame__title"},yr={class:"html-preview-frame__label"},wr=["sandbox","srcdoc"],br=Ho(pl({__name:"HtmlPreviewFrame",props:{code:{},isDark:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},onClose:{type:Function},title:{}},setup(k){const M=k,y=import.meta!==void 0&&!1;let te=null;const{t:ne}=hl(),be=b(()=>{const P=M.code||"",H=P.trim().toLowerCase();return H.startsWith(" diff --git a/apps/kimi-code/dist-web/assets/DesignSystemView-DId9_nyG.css b/apps/kimi-code/dist-web/assets/DesignSystemView-DId9_nyG.css deleted file mode 100644 index cf76643a660..00000000000 --- a/apps/kimi-code/dist-web/assets/DesignSystemView-DId9_nyG.css +++ /dev/null @@ -1 +0,0 @@ -.ds-page[data-v-247f7c56]{--d-bg: var(--color-bg);--d-surface: var(--color-surface);--d-surface-2: var(--color-surface-sunken);--d-surface-3: var(--color-line);--d-fg: var(--color-text);--d-fg-soft: var(--color-text-muted);--d-fg-muted: var(--color-text-muted);--d-fg-faint: var(--color-text-faint);--d-line: var(--color-line);--d-line-2: var(--color-line);--d-accent: var(--color-accent);--d-accent-2: var(--color-accent-hover);--d-accent-soft: var(--color-accent-soft);--d-accent-bd: var(--color-accent-bd);--d-green: var(--color-success);--d-green-soft: var(--color-success-soft);--d-amber: var(--color-warning);--d-amber-soft: var(--color-warning-soft);--d-red: var(--color-danger);--d-red-soft: var(--color-danger-soft);--d-violet: var(--color-done);--d-code-bg: var(--color-surface-sunken);--d-sidebar: var(--color-surface);--d-shadow-sm: var(--shadow-sm);--d-shadow-md: var(--shadow-md);--d-shadow-lg: var(--shadow-lg);--sidebar-w: var(--p-sidebar-w);--content-max: var(--p-content-wide)}.ds-page[data-v-247f7c56] *,.ds-page[data-v-247f7c56] *:before,.ds-page[data-v-247f7c56] *:after{box-sizing:border-box}.ds-page[data-v-247f7c56]{scroll-behavior:smooth}.ds-page[data-v-247f7c56]{margin:0;background:var(--d-bg);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1[data-v-247f7c56],h2[data-v-247f7c56],h3[data-v-247f7c56],h4[data-v-247f7c56]{color:var(--d-fg);letter-spacing:-.01em;line-height:1.25;margin:0}p[data-v-247f7c56]{margin:0 0 14px;color:var(--d-fg-soft)}a[data-v-247f7c56]{color:var(--d-accent-2);text-decoration:none}a[data-v-247f7c56]:hover{text-decoration:underline}code[data-v-247f7c56],pre[data-v-247f7c56],.mono[data-v-247f7c56]{font-family:JetBrains Mono,ui-monospace,SF Mono,Menlo,Consolas,monospace}code[data-v-247f7c56]{background:var(--d-code-bg);border:.5px solid var(--d-line-2);border-radius:5px;padding:1px 6px;font-size:.88em;color:#1f2937;white-space:nowrap}.layout[data-v-247f7c56]{display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);min-height:100vh}.sidebar[data-v-247f7c56]{position:sticky;top:0;align-self:start;height:100vh;background:var(--d-sidebar);border-right:.5px solid var(--d-line);padding:26px 22px;overflow-y:auto}.brand[data-v-247f7c56]{display:flex;align-items:center;gap:10px;margin-bottom:6px}.brand-mark[data-v-247f7c56]{width:26px;height:26px;border-radius:7px;flex:none;background:var(--d-fg);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;letter-spacing:-.04em}.brand-name[data-v-247f7c56]{font-weight:700;font-size:15px;letter-spacing:-.01em}.brand-sub[data-v-247f7c56]{font-size:12px;color:var(--d-fg-faint);margin-bottom:26px;padding-left:36px}.nav-group[data-v-247f7c56]{margin:22px 0 8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--d-fg-faint)}.p-section-label[data-v-247f7c56]{font-size:12px;font-weight:600;text-transform:uppercase;color:var(--d-fg-faint)}.nav a[data-v-247f7c56]{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:7px;font-size:13.5px;font-weight:500;color:var(--d-fg-soft);margin:1px 0;transition:background .15s,color .15s}.nav a .num[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:11px;color:var(--d-fg-faint);width:18px}.nav a[data-v-247f7c56]:hover{background:var(--color-hover);color:var(--d-fg);text-decoration:none}.nav a.active[data-v-247f7c56]{background:var(--color-hover);color:var(--d-fg)}.nav a.active .num[data-v-247f7c56]{color:var(--d-fg-soft)}.content[data-v-247f7c56]{min-width:0}.content-inner[data-v-247f7c56]{max-width:var(--content-max);margin:0 auto;padding:64px 56px 120px}section[data-v-247f7c56]{scroll-margin-top:32px;padding-top:8px}section+section[data-v-247f7c56]{margin-top:72px}.hero[data-v-247f7c56]{padding:8px 0 40px;border-bottom:.5px solid var(--d-line);margin-bottom:56px}.eyebrow[data-v-247f7c56]{display:inline-flex;align-items:center;gap:8px;font-family:JetBrains Mono,monospace;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--d-fg);background:#1783ff1a;border:none;padding:6px 12px;border-radius:8px;margin-bottom:22px}.hero h1[data-v-247f7c56]{font-size:48px;font-weight:600;line-height:1.08;letter-spacing:-.025em;margin-bottom:18px}.hero h1 .grad[data-v-247f7c56]{color:var(--d-accent)}.hero p.lead[data-v-247f7c56]{font-size:18px;line-height:1.6;color:var(--d-fg-soft);max-width:680px}.hero-meta[data-v-247f7c56]{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.meta-chip[data-v-247f7c56]{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--d-fg-muted);background:var(--d-surface);border:.5px solid var(--d-line);border-radius:8px;padding:7px 12px}.meta-chip b[data-v-247f7c56]{color:var(--d-fg);font-weight:600}.meta-chip .dot[data-v-247f7c56]{width:7px;height:7px;border-radius:50%;background:var(--d-green)}.sec-head[data-v-247f7c56]{display:flex;align-items:baseline;gap:14px;margin-bottom:8px}.sec-num[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:13px;font-weight:600;color:var(--d-accent-2)}.sec-title[data-v-247f7c56]{font-size:26px;letter-spacing:-.02em}.sec-desc[data-v-247f7c56]{font-size:15.5px;color:var(--d-fg-muted);max-width:720px;margin-bottom:28px}h3.sub[data-v-247f7c56]{font-size:17px;margin:40px 0 14px;display:flex;align-items:center;gap:10px}h3.sub[data-v-247f7c56]:before{content:"";width:4px;height:16px;border-radius:2px;background:var(--d-accent)}h4.mini[data-v-247f7c56]{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--d-fg-muted);margin:24px 0 12px}.stat-grid[data-v-247f7c56]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.stat[data-v-247f7c56]{background:var(--d-surface);border:.5px solid var(--d-line);border-radius:14px;padding:18px 18px 16px}.stat .v[data-v-247f7c56]{font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--d-fg)}.stat .v small[data-v-247f7c56]{font-size:16px;color:var(--d-fg-muted);font-weight:600}.stat .l[data-v-247f7c56]{font-size:12.5px;color:var(--d-fg-muted);margin-top:8px;line-height:1.4}.stat.warn[data-v-247f7c56]{background:var(--d-amber-soft);border-color:#f0d9b8}.stat.warn .v[data-v-247f7c56]{color:var(--d-amber)}.stat.bad[data-v-247f7c56]{background:var(--d-red-soft);border-color:#f0cccc}.stat.bad .v[data-v-247f7c56]{color:var(--d-red)}.stat.good[data-v-247f7c56]{background:var(--d-green-soft);border-color:#bfe3cc}.stat.good .v[data-v-247f7c56]{color:var(--d-green)}.panel[data-v-247f7c56]{background:var(--d-bg);border:.5px solid var(--d-line);border-radius:16px;box-shadow:var(--d-shadow-sm)}.panel-pad[data-v-247f7c56]{padding:22px}.panel-soft[data-v-247f7c56]{background:var(--d-surface);border:.5px solid var(--d-line);border-radius:14px}.callout[data-v-247f7c56]{display:flex;gap:12px;padding:14px 16px;border-radius:12px;font-size:14px;line-height:1.55;background:var(--d-surface);border:.5px solid var(--d-line);color:var(--d-fg-soft);margin:18px 0}.callout .ico[data-v-247f7c56]{flex:none;width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:800}.callout.info[data-v-247f7c56]{background:var(--d-accent-soft);border-color:var(--d-accent-bd)}.callout.info .ico[data-v-247f7c56]{background:var(--d-accent);color:#fff}.callout.warn[data-v-247f7c56]{background:var(--d-amber-soft);border-color:#f0d9b8}.callout.warn .ico[data-v-247f7c56]{background:var(--d-amber);color:#fff}.callout.good[data-v-247f7c56]{background:var(--d-green-soft);border-color:#bfe3cc}.callout.good .ico[data-v-247f7c56]{background:var(--d-green);color:#fff}table.dt[data-v-247f7c56]{width:100%;border-collapse:collapse;font-size:13.5px;margin:16px 0}table.dt th[data-v-247f7c56]{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--d-fg-faint);font-weight:700;padding:10px 12px;border-bottom:.5px solid var(--d-line)}table.dt td[data-v-247f7c56]{padding:11px 12px;border-bottom:.5px solid var(--d-line-2);color:var(--d-fg-soft);vertical-align:middle}table.dt tr:last-child td[data-v-247f7c56]{border-bottom:none}table.dt td.tk[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:12.5px;color:var(--d-fg);white-space:nowrap}table.dt td.val[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:12px;color:var(--d-fg-muted)}.swatch[data-v-247f7c56]{display:inline-block;width:16px;height:16px;border-radius:4px;border:.5px solid rgba(0,0,0,.08);vertical-align:-3px;margin-right:8px}.palette[data-v-247f7c56]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.color-card[data-v-247f7c56]{border:.5px solid var(--d-line);border-radius:12px;overflow:hidden;background:var(--d-bg)}.color-chip[data-v-247f7c56]{height:56px;border-bottom:.5px solid var(--d-line)}.color-meta[data-v-247f7c56]{padding:10px 12px 12px}.color-meta .cn[data-v-247f7c56]{font-size:13px;font-weight:600;color:var(--d-fg)}.color-meta .cv[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:11.5px;color:var(--d-fg-muted);margin-top:2px}.type-row[data-v-247f7c56]{display:flex;align-items:baseline;gap:18px;padding:13px 0;border-bottom:.5px solid var(--d-line-2)}.type-row[data-v-247f7c56]:last-child{border-bottom:none}.type-sample[data-v-247f7c56]{flex:1;color:var(--d-fg);line-height:1.2}.type-meta[data-v-247f7c56]{width:190px;flex:none;text-align:right;font-family:JetBrains Mono,monospace;font-size:12px;color:var(--d-fg-muted)}.space-row[data-v-247f7c56]{display:flex;align-items:center;gap:16px;padding:10px 0;border-bottom:.5px solid var(--d-line-2)}.space-row[data-v-247f7c56]:last-child{border-bottom:none}.space-bar[data-v-247f7c56]{height:18px;border-radius:4px;background:linear-gradient(90deg,var(--d-accent),var(--d-accent-2));flex:none}.space-meta[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:12.5px;color:var(--d-fg-soft);width:150px}.space-use[data-v-247f7c56]{font-size:12.5px;color:var(--d-fg-muted)}.radius-grid[data-v-247f7c56]{display:flex;flex-wrap:wrap;gap:22px;align-items:flex-end;margin:16px 0}.radius-item[data-v-247f7c56]{display:flex;flex-direction:column;align-items:center;gap:10px}.radius-box[data-v-247f7c56]{width:64px;height:64px;border:.5px solid var(--d-accent);background:var(--d-accent-soft)}.radius-item .rl[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:12px;color:var(--d-fg-soft)}.stage-wrap[data-v-247f7c56]{border:.5px solid var(--d-line);border-radius:16px;overflow:hidden;margin:18px 0;background:var(--d-bg);box-shadow:var(--d-shadow-sm)}.stage-bar[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:.5px solid var(--d-line);background:var(--d-surface)}.stage-bar .st[data-v-247f7c56]{font-size:13px;font-weight:600;color:var(--d-fg);display:flex;align-items:center;gap:8px}.stage-bar .st .tag[data-v-247f7c56]{font-size:10.5px;font-weight:700;letter-spacing:.04em;padding:2px 7px;border-radius:999px}.tag.after[data-v-247f7c56]{background:var(--d-green-soft);color:var(--d-green)}.tag.before[data-v-247f7c56]{background:var(--d-red-soft);color:var(--d-red)}.tag.spec[data-v-247f7c56]{background:var(--d-accent-soft);color:var(--d-accent-2)}.stage-bar .sactions[data-v-247f7c56]{display:flex;gap:6px}.tab[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:11.5px;padding:4px 10px;border-radius:6px;color:var(--d-fg-muted);cursor:default}.tab.on[data-v-247f7c56]{background:var(--d-bg);color:var(--d-fg);border:.5px solid var(--d-line)}.stage[data-v-247f7c56]{padding:32px;display:flex;flex-wrap:wrap;align-items:center;gap:16px;background:radial-gradient(circle at 1px 1px,rgba(0,0,0,.045) 1px,transparent 0) 0 0 / 18px 18px,var(--d-surface)}.stage.col[data-v-247f7c56]{flex-direction:column;align-items:stretch}.stage.dark[data-v-247f7c56]{background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0) 0 0 / 18px 18px,#0d1117}.stage-label[data-v-247f7c56]{width:100%;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--d-fg-faint);margin-bottom:-6px}.stage.dark .stage-label[data-v-247f7c56]{color:#6b7280}.ba[data-v-247f7c56]{display:grid;grid-template-columns:1fr 1fr;gap:0;border:.5px solid var(--d-line);border-radius:16px;overflow:hidden;margin:18px 0;box-shadow:var(--d-shadow-sm)}.ba-col[data-v-247f7c56]{min-width:0}.ba-col+.ba-col[data-v-247f7c56]{border-left:.5px solid var(--d-line)}.ba-head[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-bottom:.5px solid var(--d-line)}.ba-head.before[data-v-247f7c56]{background:var(--d-red-soft)}.ba-head.after[data-v-247f7c56]{background:var(--d-green-soft)}.ba-head .bh[data-v-247f7c56]{font-size:13px;font-weight:700}.ba-head.before .bh[data-v-247f7c56]{color:var(--d-red)}.ba-head.after .bh[data-v-247f7c56]{color:var(--d-green)}.ba-head .bh small[data-v-247f7c56]{font-weight:500;opacity:.7;margin-left:6px}.ba-body[data-v-247f7c56]{padding:24px;background:var(--d-surface);min-height:120px}.ba-col.after .ba-body[data-v-247f7c56]{background:#fff}.code[data-v-247f7c56]{background:#0d1117;border-radius:12px;overflow:hidden;margin:16px 0;border:.5px solid #1c2128}.code-bar[data-v-247f7c56]{display:flex;align-items:center;gap:8px;padding:9px 14px;background:#13181e;border-bottom:.5px solid #1c2128}.code-bar .d[data-v-247f7c56]{width:10px;height:10px;border-radius:50%;background:#30363d}.code-bar .fn[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:11.5px;color:#8b949e;margin-left:4px}.code pre[data-v-247f7c56]{margin:0;padding:18px;overflow-x:auto;font-size:12.5px;line-height:1.7;color:#c9d1d9}.code .c[data-v-247f7c56]{color:#8b949e}.code .k[data-v-247f7c56]{color:#ff7b72}.code .s[data-v-247f7c56]{color:#a5d6ff}.code .p[data-v-247f7c56]{color:#79c0ff}.code .n[data-v-247f7c56]{color:#d2a8ff}.code .v[data-v-247f7c56]{color:#ffa657}.pill[data-v-247f7c56]{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;border:.5px solid var(--d-line);background:var(--d-surface);color:var(--d-fg-soft)}.pill.blue[data-v-247f7c56]{background:var(--d-accent-soft);border-color:var(--d-accent-bd);color:var(--d-accent-2)}.pill.green[data-v-247f7c56]{background:var(--d-green-soft);border-color:#bfe3cc;color:var(--d-green)}.pill.amber[data-v-247f7c56]{background:var(--d-amber-soft);border-color:#f0d9b8;color:var(--d-amber)}.pill.red[data-v-247f7c56]{background:var(--d-red-soft);border-color:#f0cccc;color:var(--d-red)}.pill.mono[data-v-247f7c56]{font-family:JetBrains Mono,monospace}ul.clean[data-v-247f7c56]{list-style:none;padding:0;margin:14px 0}ul.clean li[data-v-247f7c56]{position:relative;padding:8px 0 8px 26px;color:var(--d-fg-soft);border-bottom:.5px solid var(--d-line-2)}ul.clean li[data-v-247f7c56]:last-child{border-bottom:none}ul.clean li[data-v-247f7c56]:before{content:"";position:absolute;left:4px;top:17px;width:7px;height:7px;border-radius:50%;background:var(--d-accent)}ul.clean.check li[data-v-247f7c56]:before{content:"✓";background:none;color:var(--d-green);font-weight:800;top:7px;left:0;font-size:14px}ul.clean.cross li[data-v-247f7c56]:before{content:"✕";background:none;color:var(--d-red);font-weight:800;top:7px;left:0;font-size:13px}ul.clean li b[data-v-247f7c56]{color:var(--d-fg)}ul.clean li .path[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:12px;color:var(--d-fg-muted)}.roadmap[data-v-247f7c56]{position:relative;margin:24px 0}.phase[data-v-247f7c56]{position:relative;display:grid;grid-template-columns:120px 1fr;gap:24px;padding:0 0 32px}.phase[data-v-247f7c56]:not(:last-child):after{content:"";position:absolute;left:59px;top:36px;bottom:0;width:2px;background:var(--d-line)}.phase-tag[data-v-247f7c56]{text-align:right;padding-top:4px}.phase-tag .pt[data-v-247f7c56]{display:inline-block;font-family:JetBrains Mono,monospace;font-size:12px;font-weight:700;color:var(--d-accent-2);background:var(--d-accent-soft);border:.5px solid var(--d-accent-bd);padding:5px 10px;border-radius:8px}.phase-tag .pe[data-v-247f7c56]{font-size:11.5px;color:var(--d-fg-faint);margin-top:8px}.phase-body[data-v-247f7c56]{background:var(--d-bg);border:.5px solid var(--d-line);border-radius:14px;padding:18px 20px;box-shadow:var(--d-shadow-sm)}.phase-body h4[data-v-247f7c56]{font-size:16px;margin-bottom:8px}.phase-body p[data-v-247f7c56]{font-size:14px;margin-bottom:12px}.phase-body ul[data-v-247f7c56]{margin:0}.matrix[data-v-247f7c56]{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.anti[data-v-247f7c56]{border:.5px solid var(--d-line);border-radius:12px;padding:16px;background:var(--d-bg)}.anti .ah[data-v-247f7c56]{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;margin-bottom:8px}.anti .ah .verdict[data-v-247f7c56]{margin-left:auto;font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px}.verdict.pass[data-v-247f7c56]{background:var(--d-green-soft);color:var(--d-green)}.verdict.fail[data-v-247f7c56]{background:var(--d-red-soft);color:var(--d-red)}.verdict.warn[data-v-247f7c56]{background:var(--d-amber-soft);color:var(--d-amber)}.anti p[data-v-247f7c56]{font-size:13px;margin:0;color:var(--d-fg-muted)}.footer[data-v-247f7c56]{margin-top:80px;padding-top:28px;border-top:.5px solid var(--d-line);font-size:13px;color:var(--d-fg-faint);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}.kbd[data-v-247f7c56]{font-family:JetBrains Mono,monospace;font-size:11px;background:var(--d-surface-2);border:.5px solid var(--d-line);border-radius:5px;padding:1px 6px}@media(max-width:980px){.layout[data-v-247f7c56]{grid-template-columns:1fr}.sidebar[data-v-247f7c56]{position:static;height:auto}.nav[data-v-247f7c56]{display:flex;flex-wrap:wrap;gap:4px}.content-inner[data-v-247f7c56]{padding:40px 22px 80px}.stat-grid[data-v-247f7c56]{grid-template-columns:repeat(2,1fr)}.ba[data-v-247f7c56]{grid-template-columns:1fr}.ba-col+.ba-col[data-v-247f7c56]{border-left:none;border-top:.5px solid var(--d-line)}.palette[data-v-247f7c56]{grid-template-columns:repeat(2,1fr)}.matrix[data-v-247f7c56]{grid-template-columns:1fr}}.ds-page .p[data-v-247f7c56],.ds-page .stage.p-skin[data-v-247f7c56],.ds-page [data-p][data-v-247f7c56]{--p-font-sans: var(--font-ui);--p-font-kbd: var(--font-kbd);--p-font-mono: var(--font-mono);--p-bg: var(--color-bg);--p-surface: var(--color-surface);--p-surface-raised: var(--color-surface-raised);--p-surface-overlay: var(--color-surface-overlay);--p-surface-sunken: var(--color-surface-sunken);--p-well: var(--color-well);--p-surface-deep: var(--color-surface-deep);--p-hover: var(--color-hover);--p-text: var(--color-text);--p-text-strong: var(--color-text-strong);--p-muted: var(--muted);--p-text-muted: var(--color-text-muted);--p-text-faint: var(--color-text-faint);--p-text-on-accent: var(--color-text-on-accent);--p-line: var(--color-line);--p-line-strong: var(--color-line-strong);--p-accent: var(--color-accent);--p-accent-hover: var(--color-accent-hover);--p-accent-soft: var(--color-accent-soft);--p-user-bubble-bg: var(--color-user-bubble-bg);--p-accent-bd: var(--color-accent-bd);--p-success: var(--color-success);--p-success-soft: var(--color-success-soft);--p-success-bd: var(--color-success-bd);--p-warning: var(--color-warning);--p-warning-soft: var(--color-warning-soft);--p-warning-bd: var(--color-warning-bd);--p-danger: var(--color-danger);--p-danger-soft: var(--color-danger-soft);--p-danger-bd: var(--color-danger-bd);--p-info: var(--color-info);--p-sp-1: var(--space-1);--p-sp-2: var(--space-2);--p-sp-3: var(--space-3);--p-sp-4: var(--space-4);--p-sp-5: var(--space-5);--p-sp-6: var(--space-6);--p-sp-8: var(--space-8);--p-r-xs: var(--radius-xs);--p-r-sm: var(--radius-sm);--p-r-md: var(--radius-md);--p-r-lg: var(--radius-lg);--p-r-xl: var(--radius-xl);--p-r-composer: var(--radius-composer);--p-r-full: var(--radius-full);--p-corner-composer: var(--corner-shape-composer);--p-sh-xs: var(--shadow-xs);--p-sh-sm: var(--shadow-sm);--p-sh-menu: var(--shadow-menu);--p-sh-md: var(--shadow-md);--p-sh-input: var(--shadow-input);--p-sh-lg: var(--shadow-lg);--p-sh-xl: var(--shadow-xl);--p-font-size-xs: var(--text-xs);--p-font-size-sm: var(--text-sm);--p-font-size-base: var(--text-base);--p-font-size-md: var(--text-base);--p-font-size-lg: var(--text-lg);--p-font-size-xl: var(--text-xl);--p-font-size-2xl: var(--text-2xl);--p-leading-tight: var(--leading-tight);--p-leading-normal: var(--leading-normal);--p-leading-relaxed: var(--leading-relaxed);--p-ease: var(--ease-out);--p-ease-inout: var(--ease-in-out);--p-dur-fast: var(--duration-fast);--p-dur: var(--duration-base);--p-dur-slow: var(--duration-slow);--p-composer-focus-line: var(--color-composer-focus-line);font-family:var(--font-ui);color:var(--color-text);font-size:var(--text-base)}[data-p=dark][data-v-247f7c56]{--p-bg: #0d1117;--p-surface: #13181e;--p-surface-raised: #1c2128;--p-surface-sunken: #0d1117;--p-well: #13181e;--p-surface-deep: #0a0d12;--p-surface-overlay: #22272e;--p-hover: #ffffff0d;--p-text: #e8eaed;--p-text-strong: #ffffff;--p-muted: #727983;--p-text-muted: #9aa0a8;--p-text-faint: #6b7280;--p-line: #2d333b;--p-line-strong: #3d444d;--p-accent: #58a6ff;--p-accent-hover: #79b8ff;--p-accent-soft: rgba(88,166,255,.14);--p-accent-bd: rgba(88,166,255,.28);--p-success: #3fb950;--p-success-soft: rgba(63,185,80,.14);--p-success-bd: rgba(63,185,80,.28);--p-warning: #d29922;--p-warning-soft: rgba(210,153,34,.14);--p-warning-bd: rgba(210,153,34,.28);--p-danger: #f85149;--p-danger-soft: rgba(248,81,73,.14);--p-danger-bd: rgba(248,81,73,.28);--p-sh-sm: 0 1px 2px rgba(0,0,0,.4);--p-sh-md: 0 4px 12px rgba(0,0,0,.45);--p-sh-lg: 0 12px 32px rgba(0,0,0,.55);--p-sh-input: var(--shadow-input);--p-selection: rgba(88,166,255,.32)}.p-ic[data-v-247f7c56]{width:16px;height:16px;flex:none;display:inline-block;vertical-align:middle}.p-btn[data-v-247f7c56]{--_h: 36px;--_px: 16px;--_fs: var(--p-font-size-base);--_r: var(--p-r-md);display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--_h);padding:0 var(--_px);border-radius:var(--_r);font-family:var(--p-font-sans);font-size:var(--_fs);font-weight:600;line-height:1;border:.5px solid transparent;cursor:pointer;white-space:nowrap;transition:background var(--p-dur) var(--p-ease),border-color var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease),box-shadow var(--p-dur) var(--p-ease),transform var(--p-dur-fast) var(--p-ease)}.p-btn[data-v-247f7c56]:active{transform:scale(.98)}.p-btn[data-v-247f7c56]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--p-accent-soft),0 0 0 1px var(--p-accent)}.p-btn .p-ic[data-v-247f7c56]{width:16px;height:16px}.p-btn.sm[data-v-247f7c56]{--_h: 30px;--_px: 12px;--_fs: var(--p-font-size-sm);--_r: var(--p-r-sm)}.p-btn.sm .p-ic[data-v-247f7c56]{width:14px;height:14px}.p-btn.lg[data-v-247f7c56]{--_h: 42px;--_px: 20px;--_fs: var(--p-font-size-md);--_r: var(--p-r-lg)}.p-btn.primary[data-v-247f7c56]{background:var(--p-accent);color:var(--p-text-on-accent);border-color:var(--p-accent);box-shadow:var(--p-sh-xs)}.p-btn.primary[data-v-247f7c56]:hover{background:var(--p-accent-hover);border-color:var(--p-accent-hover)}.p-btn.secondary[data-v-247f7c56]{background:var(--p-surface-raised);color:var(--p-text);border-color:var(--p-line-strong);box-shadow:var(--p-sh-xs)}.p-btn.secondary[data-v-247f7c56]:hover{background:var(--p-hover);border-color:var(--p-line-strong)}.p-btn.ghost[data-v-247f7c56]{background:transparent;color:var(--p-text);border-color:transparent}.p-btn.ghost[data-v-247f7c56]:hover{background:var(--p-hover);color:var(--p-text-strong)}.p-btn.danger[data-v-247f7c56]{background:var(--p-danger);color:#fff;border-color:var(--p-danger);box-shadow:var(--p-sh-xs)}.p-btn.danger[data-v-247f7c56]:hover{filter:brightness(.96)}.p-btn.danger-soft[data-v-247f7c56]{background:var(--p-danger-soft);color:var(--p-danger);border-color:var(--p-danger-bd)}.p-btn.danger-soft[data-v-247f7c56]:hover{background:var(--p-danger);color:#fff;border-color:var(--p-danger)}.p-btn.text[data-v-247f7c56]{height:auto;padding:0;background:transparent;border-color:transparent;border-radius:var(--p-r-xs);color:var(--p-text-muted);font-size:inherit;font-weight:inherit;text-decoration:underline;text-underline-offset:2px}.p-btn.text[data-v-247f7c56]:hover{color:var(--p-text)}.p-btn.text[data-v-247f7c56]:active{transform:none}.demo-inline-text[data-v-247f7c56]{font-size:12px;color:var(--p-text-faint, var(--p-text-muted))}.p-btn[disabled][data-v-247f7c56],.p-btn.disabled[data-v-247f7c56]{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.p-icon-btn[data-v-247f7c56]{--_s: 32px;display:inline-grid;place-items:center;width:var(--_s);height:var(--_s);flex:none;border-radius:var(--p-r-md);border:.5px solid transparent;background:transparent;color:var(--p-text-muted);cursor:pointer;transition:background var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease)}.p-icon-btn[data-v-247f7c56]:hover{background:var(--p-hover);color:var(--p-text)}.p-icon-btn[data-v-247f7c56]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--p-accent-soft)}.p-icon-btn.sm[data-v-247f7c56]{--_s: 26px;border-radius:var(--p-r-sm)}.p-icon-btn.lg[data-v-247f7c56]{--_s: 44px}.p-icon-btn .p-ic[data-v-247f7c56]{width:16px;height:16px}.p-icon-btn.lg .p-ic[data-v-247f7c56]{width:20px;height:20px}.p-badge[data-v-247f7c56]{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:var(--p-r-full);font-family:var(--p-font-sans);font-size:var(--p-font-size-xs);font-weight:600;line-height:1;border:.5px solid var(--p-line);background:var(--p-surface);color:var(--p-text);white-space:nowrap}.p-badge.sm[data-v-247f7c56]{height:18px;padding:0 7px;font-size:11px}.p-badge .bd[data-v-247f7c56]{width:7px;height:7px;border-radius:50%;background:currentColor}.p-badge.neutral[data-v-247f7c56]{background:var(--p-surface-sunken);border-color:var(--p-line);color:var(--p-text-muted)}.p-badge.info[data-v-247f7c56]{background:var(--p-accent-soft);border-color:var(--p-accent-bd);color:var(--p-accent-hover)}.p-badge.success[data-v-247f7c56]{background:var(--p-success-soft);border-color:var(--p-success-bd);color:var(--p-success)}.p-badge.warning[data-v-247f7c56]{background:var(--p-warning-soft);border-color:var(--p-warning-bd);color:var(--p-warning)}.p-badge.danger[data-v-247f7c56]{background:var(--p-danger-soft);border-color:var(--p-danger-bd);color:var(--p-danger)}.p-badge.solid[data-v-247f7c56]{background:var(--p-text);color:var(--p-bg);border-color:var(--p-text)}.p-badge .p-ic[data-v-247f7c56]{width:12px;height:12px}.p-kbd[data-v-247f7c56]{display:inline-flex;align-items:center;gap:3px}.p-kbd kbd[data-v-247f7c56]{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border:.5px solid var(--p-line);border-radius:var(--p-r-xs);background:transparent;color:inherit;font-family:var(--p-font-kbd);font-size:11px;line-height:1}.p-pill[data-v-247f7c56]{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 12px;border-radius:var(--p-r-full);border:.5px solid transparent;background:transparent;font-family:var(--p-font-sans);font-size:var(--p-font-size-sm);font-weight:500;color:var(--p-text);cursor:pointer;transition:background var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease)}.p-pill[data-v-247f7c56]:hover{background:var(--p-hover);color:var(--p-text-strong)}.p-pill .pp-strong[data-v-247f7c56]{font-weight:700;color:var(--p-text)}.p-pill .pp-sub[data-v-247f7c56]{color:var(--p-accent);font-weight:600}.p-pill .p-ic[data-v-247f7c56]{width:14px;height:14px;color:var(--p-text-faint)}.p-card[data-v-247f7c56]{background:var(--p-surface);border:.5px solid var(--p-line);border-radius:var(--p-r-md);overflow:hidden;color:var(--p-text)}.p-card.interactive[data-v-247f7c56]{transition:background var(--p-dur) var(--p-ease),border-color var(--p-dur) var(--p-ease);cursor:pointer}.p-card.interactive[data-v-247f7c56]:hover{background:var(--p-surface);border-color:var(--p-line-strong)}.p-card-head[data-v-247f7c56]{display:flex;align-items:center;gap:9px;padding:10px 14px;border-bottom:.5px solid var(--p-line);background:var(--p-surface)}.p-card-title[data-v-247f7c56]{font-size:var(--p-font-size-sm);font-weight:600;color:var(--p-text);font-family:var(--p-font-mono)}.p-card-body[data-v-247f7c56]{padding:14px;font-size:var(--p-font-size-base);color:var(--p-text);line-height:var(--p-leading-normal)}.p-card-foot[data-v-247f7c56]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:.5px solid var(--p-line);background:var(--p-surface)}.p-field[data-v-247f7c56]{display:flex;flex-direction:column;gap:6px}.p-label[data-v-247f7c56]{font-size:var(--p-font-size-sm);font-weight:600;color:var(--p-text)}.p-input[data-v-247f7c56],.p-select[data-v-247f7c56],.p-textarea[data-v-247f7c56]{width:100%;height:38px;padding:0 12px;border-radius:var(--p-r-md);border:.5px solid var(--p-line-strong);background:var(--p-surface-raised);font-family:var(--p-font-sans);font-size:var(--p-font-size-base);color:var(--p-text);box-shadow:var(--p-sh-xs);transition:border-color var(--p-dur) var(--p-ease),box-shadow var(--p-dur) var(--p-ease)}.p-textarea[data-v-247f7c56]{height:auto;min-height:84px;padding:10px 12px;resize:vertical;line-height:var(--p-leading-normal)}.p-select[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;text-align:left}.p-select[data-v-247f7c56]:after{content:"⌄";color:var(--p-text-muted)}.p-input[data-v-247f7c56]:hover,.p-select[data-v-247f7c56]:hover,.p-textarea[data-v-247f7c56]:hover{border-color:var(--p-line-strong)}.p-input[data-v-247f7c56]:focus,.p-select[data-v-247f7c56]:focus,.p-textarea[data-v-247f7c56]:focus{outline:none;border-color:var(--p-accent);box-shadow:0 0 0 3px var(--p-accent-soft)}.p-input[data-v-247f7c56]::placeholder,.p-textarea[data-v-247f7c56]::placeholder{color:var(--p-text-faint)}.p-input.sm[data-v-247f7c56]{height:32px;font-size:var(--p-font-size-sm);border-radius:var(--p-r-sm)}.p-hint[data-v-247f7c56]{font-size:var(--p-font-size-xs);color:var(--p-text-faint)}.p-dialog[data-v-247f7c56]{width:480px;max-width:calc(100vw - 48px);background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-xl);box-shadow:var(--p-sh-xl);overflow:hidden;color:var(--p-text)}.p-dialog-head[data-v-247f7c56]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px}.p-dialog-title[data-v-247f7c56]{font-size:var(--p-font-size-lg);font-weight:700;letter-spacing:-.01em}.p-dialog-desc[data-v-247f7c56]{font-size:var(--p-font-size-base);color:var(--p-text-muted);margin-top:4px;line-height:var(--p-leading-normal)}.p-dialog-body[data-v-247f7c56]{padding:4px 22px 18px}.p-dialog-foot[data-v-247f7c56]{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px 20px}.p-toast[data-v-247f7c56]{display:flex;align-items:flex-start;gap:11px;width:360px;padding:13px 14px;background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-lg);box-shadow:var(--p-sh-md)}.p-toast .ti[data-v-247f7c56]{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;flex:none;margin-top:1px}.p-toast.success .ti[data-v-247f7c56]{background:var(--p-success-soft);color:var(--p-success)}.p-toast.warning .ti[data-v-247f7c56]{background:var(--p-warning-soft);color:var(--p-warning)}.p-toast .tt[data-v-247f7c56]{font-size:var(--p-font-size-base);font-weight:600;color:var(--p-text)}.p-toast .td[data-v-247f7c56]{font-size:var(--p-font-size-sm);color:var(--p-text-muted);margin-top:2px;line-height:1.45}.p-action-toast[data-v-247f7c56]{display:inline-flex;align-items:center;gap:8px;align-self:center;padding:4px 6px 4px 14px;background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-lg);box-shadow:var(--p-sh-sm);font-size:var(--p-font-size-base);color:var(--p-text);white-space:nowrap}.p-action-toast .lk[data-v-247f7c56]{border:0;padding:0;background:none;color:var(--p-accent);cursor:pointer;font:inherit}.p-action-toast .x[data-v-247f7c56]{color:var(--p-text-muted);width:14px;height:14px}.p-spinner[data-v-247f7c56]{width:18px;height:18px;animation:p-spin-247f7c56 .85s linear infinite}.p-spinner.sm[data-v-247f7c56]{width:14px;height:14px}.p-spinner circle[data-v-247f7c56]{fill:none;stroke-width:2.2;stroke-linecap:round}.p-spinner .track[data-v-247f7c56]{stroke:var(--p-line)}.p-spinner .arc[data-v-247f7c56]{stroke:var(--p-accent);stroke-dasharray:56 56;stroke-dashoffset:38}@keyframes p-spin-247f7c56{to{transform:rotate(360deg)}}.p-thinking[data-v-247f7c56]{display:inline-flex;align-items:center;gap:9px;font-size:var(--p-font-size-sm);color:var(--p-text-muted);font-family:var(--p-font-sans)}.p-bubble-user[data-v-247f7c56]{align-self:flex-end;max-width:var(--p-bubble-max);background:var(--p-user-bubble-bg);border:none;color:var(--p-text);border-radius:var(--p-r-lg);padding:10px 12px;font-size:var(--p-font-size-md);line-height:var(--p-leading-normal)}.p-msg[data-v-247f7c56]{max-width:760px;font-size:var(--p-font-size-md);line-height:var(--p-leading-relaxed);color:var(--p-text)}.p-msg p[data-v-247f7c56]{margin:0 0 10px;color:var(--p-text)}.p-msg code[data-v-247f7c56]{font-family:var(--p-font-mono);background:var(--p-surface-sunken);border:0;color:var(--p-accent-hover);padding:1px 6px;border-radius:5px;font-size:.9em}.p-code[data-v-247f7c56]{font-family:var(--p-font-mono);font-size:var(--p-font-size-sm);line-height:1.65;background:var(--p-surface-sunken);border:.5px solid var(--p-line);border-radius:var(--p-r-md);padding:11px 13px;color:var(--p-text);overflow-x:auto}.p-action[data-v-247f7c56]{border-radius:var(--p-r-lg);overflow:hidden;border:.5px solid var(--p-line);background:var(--p-surface-raised);box-shadow:var(--p-sh-menu)}.p-action-head[data-v-247f7c56]{display:flex;align-items:center;gap:9px;padding:14px 16px 0}.p-action-title[data-v-247f7c56]{font-size:var(--p-font-size-base);font-weight:600;color:var(--p-text)}.p-action-body[data-v-247f7c56]{padding:12px 16px 0;font-size:var(--p-font-size-base);color:var(--p-text);line-height:var(--p-leading-normal)}.p-action-foot[data-v-247f7c56]{display:flex;gap:8px;margin-top:12px;padding:10px 16px;border-top:.5px solid var(--p-line)}.p-opts[data-v-247f7c56]{display:flex;flex-direction:column;gap:2px;margin-top:12px;padding:12px 16px;border-top:.5px solid var(--p-line)}.p-opt[data-v-247f7c56]{display:flex;align-items:flex-start;gap:10px;padding:8px 12px;border-radius:var(--p-r-md);color:var(--p-text);font-size:var(--p-font-size-base)}.p-opt .n[data-v-247f7c56]{width:var(--p-chip-num);height:var(--p-chip-num);margin-top:calc((var(--p-font-size-base) * var(--p-leading-normal) - var(--p-chip-num)) / 2);border-radius:var(--p-r-sm);background:var(--p-surface-sunken);color:var(--p-text);font-size:var(--p-font-size-xs);font-weight:500;display:inline-flex;align-items:center;justify-content:center;flex:none}.p-opt-text[data-v-247f7c56]{display:flex;flex-direction:column;gap:2px;min-width:0}.p-opt-text .l[data-v-247f7c56]{font-weight:500}.p-opt-text .d[data-v-247f7c56]{font-size:var(--p-font-size-xs);color:var(--p-text-muted);line-height:var(--p-leading-normal)}.p-todo[data-v-247f7c56]{background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-md);padding:6px}.p-todo-row[data-v-247f7c56]{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--p-r-md);font-size:var(--p-font-size-base);color:var(--p-text)}.p-todo-row.done[data-v-247f7c56]{color:var(--p-text-faint);text-decoration:line-through}.p-todo-row.active[data-v-247f7c56]{background:var(--p-accent-soft);color:var(--p-text)}.p-todo-check[data-v-247f7c56]{width:16px;flex:none;display:inline-flex;align-items:center;justify-content:center;user-select:none;color:var(--p-text-faint)}.p-todo-check svg[data-v-247f7c56]{width:14px;height:14px}.p-todo-row.active .p-todo-check[data-v-247f7c56]{color:var(--p-accent)}.p-todo-row.done .p-todo-check[data-v-247f7c56]{color:var(--p-success)}.p-todo-row.active .p-todo-check[data-v-247f7c56]{color:var(--p-accent);font-weight:500}.p-dot[data-v-247f7c56]{width:7px;height:7px;border-radius:50%;flex:none;background:var(--p-text-faint)}.p-dot.done[data-v-247f7c56]{background:var(--p-success)}.p-dot.error[data-v-247f7c56]{background:var(--p-danger)}.p-dot.running[data-v-247f7c56]{background:var(--p-accent);box-shadow:0 0 0 0 var(--p-accent-soft);animation:p-pulse-247f7c56 1.4s ease-out infinite}@keyframes p-pulse-247f7c56{0%{box-shadow:0 0 #1783ff66}to{box-shadow:0 0 0 6px #1783ff00}}.p-tool-group[data-v-247f7c56]{overflow:hidden}.p-tool-group-head[data-v-247f7c56]{display:flex;align-items:center;gap:4px;padding:4px 0;cursor:pointer;border-radius:6px;font-size:var(--p-font-size-sm);line-height:1;color:var(--p-text-faint);user-select:none;transition:color var(--p-dur) var(--p-ease)}.p-tool-group-head .tg-ic[data-v-247f7c56]{width:14px;height:14px;color:var(--p-text-faint);flex:none}.p-tool-group-head[data-v-247f7c56]:hover{color:var(--p-text)}.p-tool-group-head .tg-title[data-v-247f7c56]{font-weight:500}.p-tool-group-head .tg-meta[data-v-247f7c56]{color:var(--p-text-faint);font-weight:400}.p-tool-group-head .tg-car[data-v-247f7c56]{width:14px;height:14px;color:var(--p-text-faint);transition:transform var(--p-dur) var(--p-ease)}.p-tool-group.open .p-tool-group-head .tg-car[data-v-247f7c56]{transform:rotate(90deg)}.p-tool-row[data-v-247f7c56]{position:relative;display:flex;align-items:center;gap:4px;padding:4px 0;border-radius:6px;cursor:pointer;font-family:var(--p-font-sans);font-size:var(--p-font-size-sm);line-height:1;color:var(--p-text)}.p-tool-row .tr-ic[data-v-247f7c56]{width:14px;height:14px;color:var(--p-text-faint);flex:none}.p-tool-row .tr-name[data-v-247f7c56]{font-weight:400;color:var(--p-text-muted);flex:none}.p-tool-row .tr-file[data-v-247f7c56]{font-weight:400;color:var(--p-text);flex:none}.p-tool-row .tr-file[data-v-247f7c56]:hover{color:var(--p-accent);text-decoration:underline;text-underline-offset:3px}.p-tool-row .tr-mono[data-v-247f7c56]{font-family:var(--p-font-mono);font-size:var(--p-font-size-xs);line-height:normal;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--p-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.p-tool-row .tr-faint[data-v-247f7c56]{color:var(--p-text-faint);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.p-tool-row .tr-chip[data-v-247f7c56]{margin-left:auto;color:var(--p-text-faint);font-size:var(--p-font-size-xs);flex:none}.p-tool-row .tr-add[data-v-247f7c56]{margin-left:auto;color:var(--p-success);font-family:var(--p-font-mono);font-size:var(--p-font-size-xs);flex:none}.p-tool-row .tr-add~.tr-chip[data-v-247f7c56],.p-tool-row .tr-add~.tr-add[data-v-247f7c56]{margin-left:0}.p-tool-row .tr-del[data-v-247f7c56]{color:var(--p-danger);font-family:var(--p-font-mono);font-size:var(--p-font-size-xs);flex:none}.p-tool-row .tr-bar[data-v-247f7c56]{display:inline-flex;width:36px;height:3px;border-radius:999px;overflow:hidden;gap:1px;flex:none}.p-tool-row .tr-ok[data-v-247f7c56]{color:var(--p-success);font-size:var(--p-font-size-xs);flex:none}.p-tool-row .tr-car[data-v-247f7c56]{width:13px;height:13px;color:var(--p-text-faint);flex:none;transition:transform var(--p-dur) var(--p-ease)}.p-agent-card[data-v-247f7c56]{display:flex;align-items:center;gap:8px;align-self:stretch;padding:8px 12px;background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-lg);cursor:pointer}.p-agent-card .pa-ic[data-v-247f7c56]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--p-surface-sunken);color:var(--p-text-muted);flex:none}.p-agent-card .pa-ic svg[data-v-247f7c56]{width:14px;height:14px}.p-agent-card .pa-main[data-v-247f7c56]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.p-agent-card .pa-task[data-v-247f7c56]{font-size:var(--p-font-size-sm);line-height:1.4;color:var(--p-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-agent-card .pa-type[data-v-247f7c56]{font-size:var(--p-font-size-xs);line-height:1.4;color:var(--p-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-agent-card .pa-ok[data-v-247f7c56]{color:var(--p-success);font-size:var(--p-font-size-xs);flex:none}.p-agent-card .pa-go[data-v-247f7c56]{color:var(--p-text-faint);flex:none}.p-tool-row.expanded .tr-car[data-v-247f7c56]{transform:rotate(90deg)}.p-tool-detail[data-v-247f7c56]{padding:2px 8px 4px 0}.p-tool-detail .p-code[data-v-247f7c56]{margin-top:4px}.p-composer[data-v-247f7c56]{background:var(--p-surface-raised);border:.5px solid var(--p-line-strong);border-radius:var(--p-r-composer);corner-shape:var(--p-corner-composer);box-shadow:var(--p-sh-input);overflow:hidden;position:relative;z-index:1}.p-composer[data-v-247f7c56]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--p-composer-focus-line);border-radius:var(--p-r-composer);corner-shape:var(--p-corner-composer);opacity:0;pointer-events:none;transition:opacity var(--p-dur-slow) var(--p-ease-inout)}.p-composer[data-v-247f7c56]:focus-within:after{opacity:1}.p-composer-ta[data-v-247f7c56]{padding:14px 16px 8px;font-family:var(--p-font-sans);font-size:var(--p-font-size-md);color:var(--p-text);line-height:var(--p-leading-normal);text-autospace:normal}.p-composer-ta.ph[data-v-247f7c56]{color:var(--p-text-faint)}.p-composer-bar[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px 8px}.p-composer-strip[data-v-247f7c56]{width:100%;max-width:620px;margin-top:calc(-1 * var(--space-4));display:flex;align-items:center;gap:var(--space-2);padding:calc(var(--space-4) + var(--space-2)) var(--space-2) var(--space-2);background:color-mix(in srgb,var(--color-hover) 60%,transparent);border-radius:0 0 var(--radius-2xl) var(--radius-2xl);font-family:var(--p-font-sans);font-size:var(--p-font-size-sm);color:var(--p-text-faint);cursor:pointer}.p-composer-strip .p-ic[data-v-247f7c56]{width:16px;height:16px;color:var(--p-text-faint)}.p-composer-left[data-v-247f7c56],.p-composer-right[data-v-247f7c56]{display:flex;align-items:center;gap:4px}.p-composer .p-icon-btn[data-v-247f7c56]{border-radius:var(--p-r-full)}.p-send[data-v-247f7c56]{position:relative;width:32px;height:32px;border-radius:var(--p-r-full);display:grid;place-items:center;background:var(--p-text);color:var(--p-bg);border:none;cursor:pointer;box-shadow:var(--p-sh-xs);transition:transform var(--p-dur-fast) var(--p-ease)}.p-send[data-v-247f7c56]:after{content:"";position:absolute;inset:0;border-radius:var(--p-r-full);background:var(--p-bg);opacity:0;transition:opacity var(--p-dur-slow) var(--p-ease);pointer-events:none}.p-send[data-v-247f7c56]:hover:after{opacity:.28}.p-send[data-v-247f7c56]:active{transform:scale(.92)}.p-send .p-ic[data-v-247f7c56]{width:16px;height:16px}.dw-bar[data-v-247f7c56]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-1-5)}.am-mock[data-v-247f7c56]{display:flex;flex-direction:column;gap:var(--menu-rows-seam);width:100%;max-width:420px;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--p-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);box-shadow:var(--p-sh-menu);font-family:var(--font-ui)}.am-mock-row[data-v-247f7c56]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);border-radius:var(--radius-menu-row);color:var(--p-text);font-size:var(--p-font-size-base)}.am-mock-row.focus[data-v-247f7c56]{background:var(--color-selected)}.am-mock-row .n[data-v-247f7c56]{font-weight:var(--weight-medium)}.am-mock-row .d[data-v-247f7c56]{margin-left:var(--space-1);color:var(--p-text-muted);font-size:var(--text-sm)}.dw-pill[data-v-247f7c56]{position:relative;display:inline-flex;align-items:center;gap:var(--space-1-5);padding:var(--space-2) calc(var(--space-3) + var(--space-05)) var(--space-2) var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected);color:var(--p-text);font-size:var(--p-font-size-base);font-weight:var(--weight-medium);line-height:var(--leading-normal)}.dw-pill[data-v-247f7c56] svg{width:1.5em;height:1.5em}.dw-pill.on[data-v-247f7c56]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-lg);background:var(--color-hover);pointer-events:none}.dw-pill .dw-count[data-v-247f7c56]{color:var(--p-text-muted)}.dw-pill .dw-running[data-v-247f7c56]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--p-text-muted)}.dw-pill .dw-live[data-v-247f7c56]{color:var(--p-success);font-weight:var(--weight-medium)}.dw-panel[data-v-247f7c56]{width:100%;border:.5px solid var(--p-line);border-radius:var(--radius-2xl);background:color-mix(in srgb,var(--p-bg) 70%,transparent);box-shadow:var(--p-sh-menu);overflow:hidden}.dw-head[data-v-247f7c56]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-4) var(--space-4) 0}.dw-tab[data-v-247f7c56]{display:inline-flex;align-items:center;gap:var(--space-2);color:var(--p-text);font-size:var(--p-font-size-base);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap}.dw-tab[data-v-247f7c56] svg{width:1.5em;height:1.5em}.dw-tab .dw-meta[data-v-247f7c56]{color:var(--p-text-muted)}.dw-chips[data-v-247f7c56]{margin-left:auto;display:inline-flex;gap:var(--space-05);padding:var(--space-05);background:var(--p-surface-sunken);border:.5px solid var(--p-line);border-radius:var(--p-r-md)}.dw-chip[data-v-247f7c56]{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--p-sp-3);border-radius:var(--p-r-sm);color:var(--p-text-muted);font-size:var(--p-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap}.dw-chip.on[data-v-247f7c56]{color:var(--p-text);background:var(--p-surface-raised);box-shadow:var(--p-sh-sm)}.dw-body[data-v-247f7c56]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dw-body.col[data-v-247f7c56]{display:flex;flex-direction:column}.dw-row[data-v-247f7c56]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) 0;color:var(--p-text);font-size:var(--p-font-size-base)}.dw-row .nm[data-v-247f7c56]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dw-row .tm[data-v-247f7c56]{flex:none;color:var(--p-text-muted);font-variant-numeric:tabular-nums}.dw-row .ok[data-v-247f7c56]{color:var(--p-success);transform:scale(.91)}.dw-row.fail .nm[data-v-247f7c56],.dw-row.fail[data-v-247f7c56] svg{color:var(--p-danger)}.dw-row.cancelled[data-v-247f7c56] svg{color:var(--p-text-muted)}.dw-body.grid[data-v-247f7c56]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--p-subagent-card-min),1fr));gap:var(--space-2)}.dw-card[data-v-247f7c56]{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected)}.dw-card .ct[data-v-247f7c56]{display:flex;align-items:center;gap:var(--space-2)}.dw-card .nm[data-v-247f7c56]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-medium)}.dw-card .nu[data-v-247f7c56]{flex:none;color:var(--p-text-muted);font-size:var(--p-font-size-sm);font-variant-numeric:tabular-nums}.dw-card .ds[data-v-247f7c56]{color:var(--p-text-muted);font-size:var(--p-font-size-sm);line-height:var(--leading-caption);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.dw-card .cs[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;color:var(--p-text-muted);font-size:var(--p-font-size-xs)}.dw-card .cf[data-v-247f7c56]{display:flex;flex-direction:column;gap:var(--space-1)}.dw-card .cm[data-v-247f7c56]{display:flex;align-items:center;gap:var(--space-1);color:var(--p-text-muted);font-size:var(--p-font-size-xs)}.dw-card .cm span[data-v-247f7c56]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dw-card .cs .sl[data-v-247f7c56]{display:inline-flex;align-items:center;gap:var(--space-1)}.dw-card .cs .sl .ok[data-v-247f7c56]{color:var(--p-success);transform:scale(.91)}.dw-card .cs .tm[data-v-247f7c56]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);font-variant-numeric:tabular-nums}.dw-card.fail .cs .sl[data-v-247f7c56]{color:var(--p-danger)}.dw-ring[data-v-247f7c56]{display:inline-block;width:var(--p-ic-md);height:var(--p-ic-md);border:1.5px solid var(--p-line-strong);border-radius:var(--radius-full);vertical-align:middle}.dw-spin[data-v-247f7c56]{display:inline-flex;color:var(--p-text);vertical-align:middle}.dt td .kw-dot[data-v-247f7c56],.dt td[data-v-247f7c56] svg{vertical-align:middle}.p[data-v-247f7c56] ::selection,[data-p][data-v-247f7c56] ::selection{background:var(--p-selection)}.p-link[data-v-247f7c56]{color:var(--p-accent);text-decoration:none;font-family:var(--p-font-sans);transition:color var(--p-dur) var(--p-ease)}.p-link[data-v-247f7c56]:hover{color:var(--p-accent-hover);text-decoration:underline}.p-link[data-v-247f7c56]:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--p-r-xs)}.p-link.muted[data-v-247f7c56]{color:var(--p-text-muted)}.p-link.muted[data-v-247f7c56]:hover{color:var(--p-text)}.p-link .p-ic[data-v-247f7c56]{width:var(--p-ic-sm);height:var(--p-ic-sm);vertical-align:-2px}.p-menu[data-v-247f7c56]{background:var(--color-menu-bg);border:.5px solid var(--p-line);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border-radius:var(--p-r-lg);box-shadow:var(--p-sh-sm);padding:var(--menu-pad);min-width:180px;font-family:var(--p-font-sans);color:var(--p-text)}.p-menu-item[data-v-247f7c56]{display:flex;align-items:center;gap:7px;padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border-radius:var(--radius-menu-item);font-size:var(--p-font-size-sm);color:var(--p-text);cursor:pointer;transition:background var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease)}.p-menu-item[data-v-247f7c56]:hover{background:var(--p-hover);color:var(--p-text-strong)}.p-menu-item.active[data-v-247f7c56],.p-menu-item.active[data-v-247f7c56]:hover{background:var(--p-hover);color:var(--p-text)}.p-menu-item.danger[data-v-247f7c56]{color:var(--p-danger)}.p-menu-item.danger[data-v-247f7c56]:hover{background:var(--p-danger-soft);color:var(--p-danger)}.p-menu-item.disabled[data-v-247f7c56]{opacity:.5;cursor:not-allowed}.p-menu-item.disabled[data-v-247f7c56]:hover{background:transparent;color:var(--p-text)}.p-menu-item .p-ic[data-v-247f7c56]{width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--p-muted)}.p-menu-item:hover .p-ic[data-v-247f7c56]{color:var(--p-text-strong)}.p-menu-item.active .p-ic[data-v-247f7c56]{color:var(--p-accent-hover)}.p-menu-item.danger .p-ic[data-v-247f7c56]{color:var(--p-danger)}.p-menu-item.lg[data-v-247f7c56]{min-height:44px;padding:12px 14px;font-size:var(--p-font-size-sm)}.p-menu-sep[data-v-247f7c56]{height:1px;background:var(--p-line);margin:4px 0}.p-seg[data-v-247f7c56]{display:inline-flex;gap:2px;padding:2px;background:var(--p-surface-sunken);border:.5px solid var(--p-line);border-radius:var(--p-r-md);font-family:var(--p-font-sans)}.p-seg-item[data-v-247f7c56]{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border-radius:var(--p-r-sm);font-size:var(--p-font-size-sm);font-weight:500;color:var(--p-text);cursor:pointer;white-space:nowrap;transition:background var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease),box-shadow var(--p-dur) var(--p-ease)}.p-seg-item[data-v-247f7c56]:hover{color:var(--p-text)}.p-seg-item.on[data-v-247f7c56]{background:var(--p-surface-raised);color:var(--p-text);box-shadow:var(--p-sh-sm)}.p-tabs[data-v-247f7c56]{display:flex;align-items:center;gap:0;border-bottom:.5px solid var(--p-line);font-family:var(--p-font-sans)}.p-tab[data-v-247f7c56]{padding:8px 14px;font-size:var(--p-font-size-sm);font-weight:500;color:var(--p-text-muted);cursor:pointer;white-space:nowrap;border-bottom:.5px solid transparent;margin-bottom:-.5px;transition:color var(--p-dur) var(--p-ease),border-color var(--p-dur) var(--p-ease)}.p-tab[data-v-247f7c56]:hover{color:var(--p-text)}.p-tab.on[data-v-247f7c56]{color:var(--p-accent);border-bottom-color:var(--p-accent)}.p-switch[data-v-247f7c56]{position:relative;display:inline-block;width:36px;height:20px;flex:none;border-radius:var(--p-r-full);background:var(--p-line-strong);cursor:pointer;transition:background var(--p-dur) var(--p-ease)}.p-switch[data-v-247f7c56]:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:var(--p-r-full);background:var(--p-surface-raised);box-shadow:var(--p-sh-xs);transform-origin:left center;transition:transform var(--p-dur) var(--p-ease)}.p-switch[data-v-247f7c56]:hover:after{transform:scaleX(1.125)}.p-switch.on[data-v-247f7c56]{background:var(--p-accent)}.p-switch.on[data-v-247f7c56]:after{transform:translate(16px);transform-origin:right center}.p-switch.on[data-v-247f7c56]:hover:after{transform:translate(16px) scaleX(1.125)}.p-switch[data-v-247f7c56]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.p-check[data-v-247f7c56]{width:17px;height:17px;flex:none;display:inline-grid;place-items:center;border:.5px solid var(--p-line-strong);border-radius:var(--p-r-sm);background:var(--p-surface-raised);color:var(--p-text-on-accent);cursor:pointer;transition:background var(--p-dur) var(--p-ease),border-color var(--p-dur) var(--p-ease)}.p-check.on[data-v-247f7c56]{background:var(--p-accent);border-color:var(--p-accent)}.p-check[data-v-247f7c56]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.p-check .p-ic[data-v-247f7c56]{width:12px;height:12px}.p-avatar[data-v-247f7c56]{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:var(--p-r-md);background:var(--p-surface-sunken);border:.5px solid var(--p-line);color:var(--p-text-muted);font-size:var(--p-font-size-sm);font-weight:600}.p-avatar.sm[data-v-247f7c56]{width:24px;height:24px;border-radius:var(--p-r-sm);font-size:var(--p-font-size-xs)}.p-avatar .p-ic[data-v-247f7c56]{width:16px;height:16px}.p-avatar.sm .p-ic[data-v-247f7c56]{width:13px;height:13px}.p-empty[data-v-247f7c56]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 16px;color:var(--p-text-muted);text-align:center}.p-empty .em-ic[data-v-247f7c56]{width:48px;height:48px;color:var(--p-text-faint)}.p-empty .em-title[data-v-247f7c56]{font-size:var(--p-font-size-base);font-weight:600;color:var(--p-text)}.p-empty .em-hint[data-v-247f7c56]{font-size:var(--p-font-size-sm);color:var(--p-text-muted)}.p-divider[data-v-247f7c56]{width:100%;height:1px;background:var(--p-line);border:none}.p-divider-v[data-v-247f7c56]{width:1px;align-self:stretch;background:var(--p-line);border:none}.p-turn-failed[data-v-247f7c56]{display:flex;align-items:center;gap:var(--space-2);width:100%;max-width:560px;padding:var(--space-2) var(--space-3);border:var(--p-hairline) solid var(--color-danger-bd);border-radius:var(--radius-lg);background:var(--color-danger-soft);box-shadow:var(--shadow-xs)}.p-turn-failed .tf-chip[data-v-247f7c56]{display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);flex:none;border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);color:var(--color-danger)}.p-turn-failed .tf-chip svg[data-v-247f7c56]{width:var(--p-ic-sm);height:var(--p-ic-sm)}.p-turn-failed .tf-main[data-v-247f7c56]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.p-turn-failed .tf-title[data-v-247f7c56]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);line-height:var(--leading-normal)}.p-turn-failed .tf-sub[data-v-247f7c56],.p-turn-failed .tf-meta[data-v-247f7c56]{font-size:var(--text-xs);color:var(--color-text-muted);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-turn-failed .tf-meta[data-v-247f7c56]{font-family:var(--font-mono);color:var(--color-text-faint)}.p-tip[data-v-247f7c56]{position:relative;display:inline-flex}.p-tip .p-tooltip[data-v-247f7c56]{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:var(--p-text);color:var(--p-bg);font-size:var(--p-font-size-xs);padding:4px 8px;border-radius:var(--p-r-sm);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity var(--p-dur-fast) var(--p-ease)}.p-tip:hover .p-tooltip[data-v-247f7c56]{opacity:1}.p-banner[data-v-247f7c56]{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--p-r-md);border:.5px solid var(--p-line);background:var(--p-surface);font-size:var(--p-font-size-sm);color:var(--p-text)}.p-banner .bn-ic[data-v-247f7c56]{width:18px;height:18px;flex:none}.p-banner.info[data-v-247f7c56]{background:var(--p-accent-soft);border-color:var(--p-accent-bd)}.p-banner.info .bn-ic[data-v-247f7c56]{color:var(--p-accent)}.p-banner.warning[data-v-247f7c56]{background:var(--p-warning-soft);border-color:var(--p-warning-bd)}.p-banner.warning .bn-ic[data-v-247f7c56]{color:var(--p-warning)}.p-banner.danger[data-v-247f7c56]{background:var(--p-danger-soft);border-color:var(--p-danger-bd)}.p-banner.danger .bn-ic[data-v-247f7c56]{color:var(--p-danger)}.p-sheet[data-v-247f7c56]{background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-xl) var(--p-r-xl) 0 0;box-shadow:var(--p-sh-xl);padding:8px 16px 20px}.p-sheet-handle[data-v-247f7c56]{width:36px;height:4px;border-radius:var(--p-r-full);background:var(--p-line-strong);margin:0 auto 8px}.p-skeleton[data-v-247f7c56]{background:var(--p-surface-sunken);border-radius:var(--p-r-sm);animation:p-skel-247f7c56 1.2s var(--p-ease-inout) infinite alternate}@keyframes p-skel-247f7c56{0%{opacity:.5}to{opacity:1}}.p-cmdbar[data-v-247f7c56]{display:flex;align-items:center;gap:8px;width:100%}.p-cmd[data-v-247f7c56]{flex:1;min-width:0;height:38px;display:flex;align-items:center;gap:10px;padding:0 10px 0 14px;background:var(--p-surface-sunken);border:.5px solid var(--p-line);border-radius:var(--p-r-md);font-family:var(--p-font-mono);font-size:var(--p-font-size-sm);color:var(--p-text-muted)}.p-cmd .cmd-text[data-v-247f7c56]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-cmd .cmd-copy[data-v-247f7c56]{margin-left:auto;flex:none;display:grid;place-items:center;width:26px;height:26px;border:none;background:transparent;border-radius:var(--p-r-sm);color:var(--p-text-faint);cursor:pointer;transition:background var(--p-dur) var(--p-ease),color var(--p-dur) var(--p-ease)}.p-cmd .cmd-copy[data-v-247f7c56]:hover{background:var(--p-surface-raised);color:var(--p-text)}.p-cmd .cmd-copy .p-ic[data-v-247f7c56]{width:15px;height:15px}.p-topbar[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px;padding:0 16px;background:var(--p-surface-raised);border:.5px solid var(--p-line);border-radius:var(--p-r-lg)}.p-topbar .tb-title[data-v-247f7c56]{font-size:var(--p-font-size-sm);font-weight:600;color:var(--p-text)}.p-topbar .tb-actions[data-v-247f7c56]{display:flex;align-items:center;gap:4px}.p-topbar.frost[data-v-247f7c56]{background:#ffffffb8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:#fff9}[data-p=dark] .p-topbar.frost[data-v-247f7c56]{background:#161b22b8;border-color:#ffffff14}.demo-row[data-v-247f7c56]{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.demo-stack[data-v-247f7c56]{display:flex;flex-direction:column;gap:12px;width:100%}.demo-col[data-v-247f7c56]{display:flex;flex-direction:column;gap:10px}.demo-grow[data-v-247f7c56]{flex:1;min-width:0}.demo-chat[data-v-247f7c56]{display:flex;flex-direction:column;gap:14px;width:100%;max-width:560px}.icon-grid[data-v-247f7c56]{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px;margin:14px 0}.icon-group-label[data-v-247f7c56]{grid-column:1 / -1;margin-top:10px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--d-fg-muted)}.icon-cell[data-v-247f7c56]{display:flex;align-items:center;gap:10px;padding:8px 10px;border:.5px solid var(--d-line);border-radius:8px;background:var(--d-surface)}.icon-cell .kw-icon[data-v-247f7c56]{width:20px;height:20px;color:var(--d-fg-soft)}.icon-cell .ic-name[data-v-247f7c56]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--d-fg)}.icon-sizes[data-v-247f7c56]{display:flex;align-items:end;gap:22px;flex-wrap:wrap}.icon-sizes .sz[data-v-247f7c56]{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;color:var(--d-fg-muted);font-family:JetBrains Mono,ui-monospace,monospace}.p-code-inline[data-v-247f7c56]{font-family:var(--p-font-mono);background:var(--p-surface-sunken);color:var(--p-text);padding:0 5px;border-radius:var(--p-r-sm);font-size:.9em}.p-code-block[data-v-247f7c56]{border:.5px solid var(--p-line);border-radius:var(--p-r-md);overflow:hidden;background:var(--p-surface-sunken)}.p-code-block-head[data-v-247f7c56]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--p-surface);border-bottom:.5px solid var(--p-line);font-family:var(--p-font-mono);font-size:var(--p-font-size-xs);color:var(--p-text-muted)}.p-code-block pre[data-v-247f7c56]{margin:0;padding:12px 14px;font-family:var(--p-font-mono);font-size:var(--p-font-size-sm);line-height:1.65;color:var(--p-text);overflow-x:auto}.p-diff[data-v-247f7c56]{border:.5px solid var(--p-line);border-radius:var(--p-r-md);overflow:hidden;font-family:var(--p-font-mono);font-size:var(--p-font-size-sm)}.p-diff-head[data-v-247f7c56]{padding:8px 12px;background:var(--p-surface);border-bottom:.5px solid var(--p-line);font-size:var(--p-font-size-xs);color:var(--p-text-muted)}.p-diff-row[data-v-247f7c56]{display:flex;gap:10px;padding:2px 12px;line-height:1.6}.p-diff-row .pm[data-v-247f7c56]{width:14px;flex:none;color:var(--p-text-faint)}.p-diff-row.add[data-v-247f7c56]{background:var(--p-success-soft)}.p-diff-row.add .pm[data-v-247f7c56]{color:var(--p-success)}.p-diff-row.del[data-v-247f7c56]{background:var(--p-danger-soft)}.p-diff-row.del .pm[data-v-247f7c56]{color:var(--p-danger)}.p-diff-row .p-diff-code[data-v-247f7c56]{color:var(--p-text)}.p-field-error[data-v-247f7c56]{color:var(--p-danger);font-size:var(--p-font-size-xs)}.p-btn .p-spinner[data-v-247f7c56]{vertical-align:middle}.p-btn .p-spinner .track[data-v-247f7c56]{stroke:currentColor;opacity:.35}.p-btn .p-spinner .arc[data-v-247f7c56]{stroke:currentColor}.ds-page[data-v-247f7c56]{position:fixed;inset:0;z-index:var(--z-max);overflow-y:auto}.ds-topbar[data-v-247f7c56]{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-4);background:var(--color-surface);border-bottom:.5px solid var(--color-line)}.ds-back[data-v-247f7c56]{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-raised);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);cursor:pointer}.ds-back[data-v-247f7c56]:hover{background:var(--color-hover)}.ds-topbar-title[data-v-247f7c56]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)} diff --git a/apps/kimi-code/dist-web/assets/DesignSystemView-TDJEKkA2.js b/apps/kimi-code/dist-web/assets/DesignSystemView-TDJEKkA2.js deleted file mode 100644 index 70ba82599fc..00000000000 --- a/apps/kimi-code/dist-web/assets/DesignSystemView-TDJEKkA2.js +++ /dev/null @@ -1,13 +0,0 @@ -import{M as A,aD as B,aI as M,aL as n,u as l,v as t,G as c,H as e,F as g,aX as k,bb as x,I as s,bk as d,cx as o,cy as I,bJ as h,cz as T,cA as S,cB as E,cC as u,cD as D,cE as O}from"./index-D1h84VfZ.js";const H={class:"ds-page"},R={class:"layout"},V={class:"content"},L={class:"content-inner"},N={id:"tokens"},W={class:"icon-sizes"},P={class:"sz"},U={class:"p-ic",style:{width:"14px",height:"14px"},viewBox:"0 0 24 24",fill:"currentColor"},F={class:"sz"},j={class:"p-ic",style:{width:"16px",height:"16px"},viewBox:"0 0 24 24",fill:"currentColor"},G={class:"sz"},K={class:"p-ic",style:{width:"20px",height:"20px"},viewBox:"0 0 24 24",fill:"currentColor"},J={class:"icon-grid"},Y={class:"icon-group-label"},Q={class:"ic-name"},X={id:"primitives"},Z={class:"stage-wrap"},$={class:"stage p"},_={class:"p-pill",style:{color:"var(--p-warning)"}},aa={class:"stage-wrap"},ta={class:"stage p col"},ea={class:"stage-wrap"},sa={class:"stage p col"},da={class:"demo-row"},oa={class:"p-btn primary disabled"},ca={class:"p-spinner sm",viewBox:"0 0 24 24",style:{"--p-accent":"#fff","--p-line":"rgba(255,255,255,.35)"}},ia={class:"stage-wrap"},na={class:"stage p col"},la={class:"demo-row"},ra={class:"stage-wrap"},va={class:"stage p col",style:{gap:"0",background:"var(--p-surface)",padding:"0","max-width":"300px","align-items":"stretch"}},fa={style:{display:"flex","align-items":"center",gap:"8px",padding:"7px 10px",margin:"1px 6px","border-radius":"8px",color:"var(--p-text)","font-size":"13px"}},ha={style:{color:"var(--d-fg-faint)",flex:"none"},width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},pa={style:{display:"flex","align-items":"center",gap:"8px",padding:"7px 10px",margin:"1px 6px","border-radius":"8px",color:"var(--p-text)","font-size":"13px"}},ua={style:{color:"var(--d-fg-faint)",flex:"none"},width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},ga={id:"chat"},ma={class:"stage-wrap"},ba={class:"stage p col"},wa={style:{"max-width":"560px",width:"100%"}},ya={class:"stage-wrap"},ka={class:"stage p col",style:{"align-items":"center",background:"#fff"}},xa={class:"p-composer",style:{width:"100%","max-width":"620px"}},Ta={class:"p-composer-bar"},Sa={class:"p-composer-left"},Ca={class:"p-pill",style:{color:"var(--p-warning)"}},za={class:"stage-wrap"},qa={class:"stage p",style:{background:"var(--p-bg)"}},Aa={class:"am-mock"},Ba={class:"am-mock-row focus"},Ma={class:"am-mock-row"},Ia={class:"am-mock-row"},Ea={class:"am-mock-row"},Da={class:"dt"},Oa={class:"dw-spin"},Ha={class:"stage-wrap"},Ra={class:"stage p",style:{background:"var(--p-bg)"}},Va={class:"dw-bar"},La={class:"dw-pill"},Na={class:"dw-pill"},Wa={class:"dw-pill on"},Pa={class:"dw-running"},Ua={class:"dw-pill"},Fa={class:"stage-wrap"},ja={class:"stage p col",style:{background:"var(--p-bg)",gap:"var(--space-4)"}},Ga={class:"dw-panel"},Ka={class:"dw-head"},Ja={class:"dw-tab"},Ya={class:"dw-chips"},Qa={class:"dw-chip on"},Xa={class:"dw-chip"},Za={class:"dw-chip"},$a={class:"dw-chip"},_a={class:"dw-body col"},at={class:"dw-row"},tt={class:"dw-row"},et={class:"dw-row fail"},st={class:"dw-row cancelled"},dt={class:"dw-panel"},ot={class:"dw-head"},ct={class:"dw-tab"},it={class:"dw-chips"},nt={class:"dw-chip on"},lt={class:"dw-chip"},rt={class:"dw-chip"},vt={class:"dw-chip"},ft={class:"dw-body grid"},ht={class:"dw-card"},pt={class:"cf"},ut={class:"cm"},gt={class:"cs"},mt={class:"sl"},bt={class:"tm"},wt={class:"dw-card"},yt={class:"cf"},kt={class:"cm"},xt={class:"cs"},Tt={class:"sl"},St={class:"tm"},Ct={class:"dw-card fail"},zt={class:"cf"},qt={class:"cm"},At={class:"cs"},Bt={class:"sl"},Mt={class:"tm"},It={class:"dw-card"},Et={class:"cf"},Dt={class:"cm"},Ot={class:"cs"},Ht={class:"sl"},Rt={class:"tm"},Vt="/repo",Lt=A({__name:"DesignSystemView",emits:["close"],setup(Nt,{emit:C}){const z=[{path:"/repo/apps/web/src/components/chat/TurnFilesSummary.vue",added:19,removed:4,hasWrite:!1,statsIncomplete:!1,diff:null},{path:"/repo/apps/web/src/composables/useFilePreview.ts",added:8,removed:1,hasWrite:!1,statsIncomplete:!1,diff:null},{path:"/repo/apps/web/src/components/chatTurnRendering.ts",added:0,removed:0,hasWrite:!0,statsIncomplete:!0,diff:null},{path:"/repo/apps/web/src/lib/toolDiff.ts",added:3,removed:2,hasWrite:!1,statsIncomplete:!1,diff:null}];function m(){}const q=C;function b(){q("close")}let p=null;function w(f){f.key==="Escape"&&b()}return B(()=>{document.addEventListener("keydown",w);const f=Array.prototype.slice.call(document.querySelectorAll('#nav a[href^="#"]')),a=new Map;f.forEach(v=>{const i=v.getAttribute("href");if(!i)return;const y=document.getElementById(i.slice(1));y&&a.set(y,v)});let r=null;p=new IntersectionObserver(v=>{v.forEach(i=>{i.isIntersecting&&(r&&r.classList.remove("active"),r=a.get(i.target)??null,r&&r.classList.add("active"))})},{rootMargin:"-20% 0px -70% 0px",threshold:0}),a.forEach((v,i)=>p.observe(i)),f.length&&f[0].classList.add("active")}),M(()=>{document.removeEventListener("keydown",w),p&&(p.disconnect(),p=null)}),(f,a)=>(n(),l("div",H,[t("div",{class:"ds-topbar"},[t("button",{class:"ds-back",type:"button",onClick:b},"← Back"),a[0]||(a[0]=t("span",{class:"ds-topbar-title"},"Design system",-1))]),t("div",R,[a[152]||(a[152]=c('',1)),t("main",V,[t("div",L,[a[150]||(a[150]=c('
● Design System · v1.0

Kimi Web Design System

This document defines the visual language and component specification for Kimi Web — design tokens, component primitives, the chat interface, theming, and style rules. All UI work is grounded in it: unified, restrained, token-driven, and themeable.

Scope apps/kimi-webComponent primitivesTheme 1 set · 4 customizable colorsLight / dark mode
i
This spec is the single reference when changing the web UI. Before adding or modifying a component, style, layout, or theme, read this document first; color, font, radius, spacing, shadow, z-index, and motion always use the §02 tokens, components reuse the §03 primitives, and the §06 style rules are followed.
01

Design Principles

Every UI decision traces back to the following principles. Kimi Web is a local Agent tool for developers: quick scanning, long stretches of staring, often in the dark — the design serves the task, and is restrained, clinical, and density-first.

  • Consistency —— The same semantics use the same component. The primary button, dialog, input, and badge should each have exactly "one" correct way to be written across the entire site.
  • Hierarchy —— Build a clear hierarchy through size, weight, color, and whitespace; emphasize through "restraint" rather than "bolder and bigger".
  • Proximity —— Group related elements, leave whitespace between unrelated ones. A card's padding, line spacing, and group spacing all come from the same spacing scale.
  • Feedback —— hover / active / focus / loading / success / error all have visible states, and the state language is unified.
  • Breathing room —— Control density with the spacing scale rather than arbitrary pixels; prefer restrained whitespace over cramming controls together.
  • Accessibility (A11y) —— Text contrast ≥ 4.5:1, visible focus rings, touch targets ≥ 32px, and states that don't rely on color alone.
  • Reduction —— The number of colors, radii, shadow levels, and type sizes all converge to a finite set of tokens; delete stray values.
Brand tone (the do-not list): calm, clinical, never exaggerated. Reject purple gradients, glassmorphism, glowing shadows, AI purple / blue glows, endlessly looping fussy micro-animations, "Boost your productivity"-style marketing copy, and using emoji as icons. These are all common tells of AI-generated interfaces (an "AI tell"), deliberately avoided.
i
Declare design intent first (Design Read): before adding a component / page, write one sentence describing its scenario, audience, and tone (for example, "a lightweight tool card embedded in a conversation, for developers, calm and restrained"), then build. If the intent isn't clear, ask one question first rather than defaulting to the nearest existing style.
',2)),t("section",N,[a[7]||(a[7]=c(`
02

Design Tokens

Collapse every visual decision into tokens. Color tokens keep the existing short names and fill out the semantics (lowering migration cost), while spacing, z-index, motion, and font-weight fill in the scales that are currently missing. Every token has: name, light value, dark value, and usage.

i
Naming convention: --<category>-<role>-<state>. For example --color-text-muted, --radius-md, --space-4. To reduce churn, the existing short names (--bg / --ink / --line / --blue …) are kept as compatibility aliases for one release cycle.

Color

Semantic-first, in three layers: background / text / border + accent + status colors. All colors are defined in light / dark pairs, with contrast ≥ 4.5:1.

i
The table below shows the semantic tokens. Each ships a light value in :root and a dark override in the data-color-scheme blocks — for example --color-bg is #ffffff in light and #121212 in dark; --color-accent is the brand blue (#1783ff light / #1a88ff dark). The semantic status colors (success / warning / danger / info) are independent palettes, one set each for light / dark.
bg
#ffffff / #121212
surface
#f5f5f5 / #1f1f1f
surface-sunken
#f5f5f5 / #121212
well
#f5f5f5 / #1f1f1f
surface-deep
#f5f5f5 / #0d0d0d
surface-overlay
#ffffff / rgba(255,255,255,.1)
selected
rgba(0,0,0,.05) / rgba(255,255,255,.1)
fg
rgba(0,0,0,.9) / rgba(255,255,255,.84)
fg-muted
rgba(0,0,0,.6) / rgba(255,255,255,.56)
line
rgba(0,0,0,.13) / rgba(255,255,255,.12)
subtle
rgba(0,0,0,.05) / rgba(255,255,255,.05)
accent (KMBlue)
#1783ff / #1a88ff
accent-soft
#e8f3ff / rgba(26,136,255,.1)
TokenLightDarkUsage
--color-bg#ffffff#121212Page background
--color-surface#f5f5f5#1f1f1fPanel / sidebar / card head
--color-surface-raised#ffffff#292929Raised card / dialog / input
--color-menu-bgrgba(255,255,255,.95)rgba(41,41,41,.95)Floating menu panel — frosted glass over --p-menu-backdrop blur
--color-surface-overlay#ffffffrgba(255,255,255,.1)Field-control fill on raised cards (selects, steppers) — top rung; light tops out at white (the level is carried by the border), dark steps one rung above raised. Floating layers stay at raised
--color-well#f5f5f5#1f1f1fContent well on the page (code blocks, tool-output panels, match/file lists, media thumbnails) — light reuses the sunken recess; dark lifts one rung ABOVE the page, because a true recess (#121212) vanishes into the page there
--color-surface-deep#f5f5f5#0d0d0dDeep chrome plane one step BELOW the page (panel headers, diff gutters) — dark drops under --color-bg so chrome framing stays darker than the content it frames
--color-textrgba(0,0,0,.9)rgba(255,255,255,.84)Body text / headings
--color-text-strong#000000#ffffffMax foreground emphasis — menu-row label & icon on hover
--color-text-mutedrgba(0,0,0,.6)rgba(255,255,255,.56)Secondary text / placeholder
--color-linergba(0,0,0,.13)rgba(255,255,255,.12)Divider / card border
--color-subtlergba(0,0,0,.05)rgba(255,255,255,.05)Subtle hairline — tertiary separators below --color-line (diff-gutter column rules, quiet dividers inside wells)
--color-selectedrgba(0,0,0,.05)rgba(255,255,255,.1)Neutral selected fill (sidebar rows, list pickers) — translucent, never accent-tinted
--color-hoverrgba(0,0,0,.03)rgba(255,255,255,.05)Row hover wash — lighter than the selected fill (hover < selected); translucent, sits on any surface. The global hover rule: transparent-base controls overlay this f1 wash (hover never darkens — never sunken); filled controls use their own hover token (accent-hover, send-bg-hover)
--color-selected-hoverrgba(0,0,0,.08)rgba(255,255,255,.14)Hover of a control RESTING at the selected fill (work cards) — one rung above f2, below f3: hover deepens/brightens a step, never drops below the rest state
--color-inline-code-bgrgba(0,0,0,.03)rgba(255,255,255,.1)Inline-code chip fill — fills.f1 / fills.f2; dark lifts off any dark surface (sunken == bg there)
--color-media-alpha-bg-1≈#858585≈#76797eCheckerboard square A of the <img> alpha canvas — color-mix of --color-bg/--color-text (52/48); applied via --media-alpha-canvas (16px period)
--color-media-alpha-bg-2≈#6b6b6b≈#8c8f93Checkerboard square B (42/58) — both squares stay ≥3:1 against white and black; opaque images cover the canvas
--color-sidebar-bg#f9fbfc#0d0d0dSidebar surface — one step off --color-bg (just under white in light, one step BELOW the page in dark) so the session column reads as its own plane and never brighter than the reading surface
--color-scrimrgba(0,0,0,.4)rgba(0,0,0,.6)Modal scrim — the dark veil behind dialogs/lightboxes (mask.base; legacy hardcoded overlays can migrate here)
--color-scrim-strongrgba(0,0,0,.6)rgba(0,0,0,.75)Stronger scrim for full-screen media previews (mask.strong — the PhotoSwipe image preview backdrop)
--color-text-on-scrim#ffffffsameText drawn on the scrim (captions over the media lightbox)
--color-accent#1783ff#1a88ffPrimary action / link / focus
--color-success#0e7a38#3fb950Success / pass
--color-warning#a9610a#d29922Warning / pending
--color-danger#c0392b#f85149Danger / error / abort

Palette

The palette is the production kimi.com palette (design tokens tokens.json): neutral-gray surfaces, an alpha-based label / fill / separator ramp (labels.* / fills.* / separator.s1), the KMBlue accent, and a true neutral dark ladder (#121212 → #1f1f1f → #292929; the deep chrome plane and sidebar derive one step below at #0d0d0d — the palette has nothing darker than primary).

The ONE deliberate exception is the status hues: success / warning / danger / done keep the app's own WCAG-tuned ramp (≥4.5:1 on the neutral surfaces) — the production status colours (positiveGreen #16c456, orange #ff9500, danger red #ff3849) are too bright against it. Diff add/del bands happen to coincide (both use the production 25% fills in light, 14% in dark).

Surface usage

The surface layers each have a role — choose by "field overlay / raised layer / content well / default flat layer / sunken layer / page background / deep chrome", and avoid treating --p-surface-raised as a universal background. In dark, elevation = lighter: floating layers sit above the content, content wells sit above the page, and chrome planes (sidebar, panel headers) sit below it — never the reverse. One consequence: on the page itself, never use --color-surface-sunken for a content carrier — it equals --color-bg in dark and the fill vanishes; use --color-well. Sunken stays correct INSIDE surface / raised cards, where it is a genuine recess. Field controls (selects, steppers) on a raised card use --color-surface-overlay, the top fill rung; floating layers keep --color-surface-raised — their elevation is shadow + hairline, not a lighter fill.

TokenLightDarkUsage
--p-surface-overlay#ffffff#22272eField controls on raised cards — select, stepper (top fill rung; light = white)
--p-surface-raised#ffffff#1c2128Raised card / dialog / input (raised layer)
--p-well#f3f5f8#13181eCode block / tool output / list carrier directly on the page (content well — light: recessed, dark: one rung above the page)
--p-surface#fafbfc#13181ePanel / sidebar / card head (default flat layer)
--p-surface-sunken#f3f5f8#0d1117Recessed area INSIDE a surface / raised card — never a content carrier on the page (sunken layer)
--p-bg#ffffff#0d1117Page background
--p-surface-deep#fafbfc#0a0d12Panel header / diff gutter (deep chrome layer — below the page in dark)

Borders & hairlines

Three line tokens, three jobs: --color-line is the default structural separator, --color-subtle the tertiary separator that must stay quieter (diff-gutter column rules, quiet dividers inside wells), and --color-line-strong the edge of interactive controls (inputs, selects, secondary buttons). Width is one: 0.5px — every stroke is the same hairline, on static structural edges (card rims, plane seams, header dividers), interactive control rims and floating layers alike. Separation comes from luminance first — planes one rung apart already read as distinct in dark, so their shared edge stays a 0.5px hairline rather than a heavier border; same-rung neighbours (list rows, card head / body) are exactly where a hairline is required. In dark, drop shadows fade on near-black surfaces, so a floating layer's edge IS its hairline — never ship a shadow-only floating surface. (Legacy --line / --line2 alias --color-line / --color-subtle for one cycle; new work references the v2 names.)

Focus ring

All focusable controls (button, input, link, menu item, switch, checkbox) use the focus-ring token uniformly; do not hand-write a box-shadow focus ring.

TokenValueUsage
--p-focus-ring-w3pxThe focus ring's spread width — the rings below derive from it, and so does anything that must reserve room for the ring (clip protection)
--p-focus-ring0 0 0 3px var(--p-accent-soft)Default focus ring (link, menu item, switch, checkbox)
--p-focus-ring-strong0 0 0 3px var(--p-accent-soft), 0 0 0 1px var(--p-accent)Strong focus ring (button, primary action)

Text selection

The text-selection color uses --p-selection uniformly (light rgba(23,131,255,.18) / dark rgba(88,166,255,.32)), applied by the global ::selection rule; do not set a separate highlight background.

Disabled state

All disabled controls use opacity:.5 + cursor:not-allowed uniformly; do not separately grey out or recolor.

Font families

Kimi Web uses two font tokens: --font-ui (UI and body, with Schibsted Grotesk for Latin and Noto Sans SC for Simplified Chinese) and --font-mono (code and monospace). Components always reference the variables; do not hard-code font names.

--font-ui · UI & body (Schibsted Grotesk + Noto Sans SC)

Body and UI use self-hosted Schibsted Grotesk for Latin text and self-hosted Noto Sans SC Variable for Simplified Chinese. Platform fonts remain as fallbacks:

--font-ui
--font-ui: "Schibsted Grotesk Variable", "Helvetica Neue", Arial,
-      "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC",
-      "Microsoft YaHei",
-      -apple-system, BlinkMacSystemFont, "Segoe UI",
-      Roboto, Ubuntu, sans-serif,
-      "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  • Schibsted Grotesk first: self-hosted Latin UI and body text, with normal and italic variable faces.
  • Western fallbacks next: Helvetica Neue / Arial for environments where Schibsted Grotesk cannot load.
  • Noto Sans SC Variable next: bundled Simplified Chinese glyphs with a weight range of 100–900.
  • System UI fallbacks last: PingFang SC / Microsoft YaHei, platform UI fonts, and emoji fonts.

--font-mono · Code & monospace

Code, line numbers, diffs, and Bash commands use JetBrains Mono (a self-hosted variable font), falling back to the system monospace. Other tool labels and summaries use the UI font:

--font-mono
--font-mono: "JetBrains Mono Variable", "JetBrains Mono",
-      ui-monospace, "SF Mono", Menlo, Consolas, monospace;

Loading strategy

FontSourceBundledUsage
JetBrains Mono@fontsource-variable/jetbrains-mono✓ self-hostedmonospace / code (--font-mono)
Schibsted Groteskprepare-fonts → app-ui/assets/fonts✓ generated + bundledUI / body / display (--font-ui, --font-display), wght 400-900, normal + italic
Noto Sans SCprepare-fonts → app-ui/assets/fonts✓ generated + bundledSimplified Chinese UI / body, wght 100–900
System UI / CJK fontsoperating systemlate fallback for UI / body
Schibsted Grotesk, Noto Sans SC, and JetBrains Mono are self-hosted. They make no external network requests and work offline; platform fonts remain as fallbacks.

Usage rules

  • Components always use var(--font-ui) / var(--font-mono); do not hard-code font names like 'Schibsted Grotesk' / 'JetBrains Mono'.
  • Body / UI use --font-ui (Schibsted Grotesk for Latin, Noto Sans SC for Simplified Chinese); code / monospace use --font-mono (JetBrains Mono).
  • Schibsted Grotesk is loaded from complete variable faces, including normal and italic styles; font-optical-sizing: auto is enabled globally.
  • Noto Sans SC is loaded from one complete weight-variable WOFF2 asset. Platform CJK fonts stay late in the fallback chain.

Type scale & weight

The user font-size preference is one of four named steps (small / medium / large / xlarge, Medium default) written to data-font-scale on <html>; the step name is persisted, never a px value. The step only moves --base-font; every size token derives additively (default + shift), and line heights are locked to integer px via round(size × ratio, 1px) — never a unitless ratio.

Two token groups share the shift but keep their own ratios: --ui-* for chrome (tight, 1.40–1.50) and --md-* for Markdown content + the composer (loose, 1.56–1.63; body is anchored to the UI body size — the spec's +2px offset was dropped as a product decision — while keeping its own looser line-height ratios). T0/T1 cap at 24/22px on the top steps (built into the tokens via min() — do not remove). Use the .text-ui-* / .text-md-* utility classes; legacy aliases --ui-font-size (→ --ui-b2), --content-font-size (→ --md-b1) and the whole 6-level --text-* ramp (xs→c1, sm→b2−1px, base→b2, lg→t2, xl→t1, 2xl→t0) keep older components on the ramp. Panel titles sit at the base step (--ui-b2); dropdown menu items sit one rung below (--text-sm = b2 − 1px) — both still follow the user's font scale.

Section Title
--ui-t1 · title (cap 22)
Card title
--ui-t2 · subtitle
UI emphasis
--ui-b1 · body strong
UI control / button / form
--ui-b2 · body
Helper text / table
--ui-c1 · caption
Badge / timestamp
--ui-c2 · non-critical only
Markdown H1
--md-h1
Chat body / message bubbles / composer
--md-b1 · prose body
Quote / table
--md-b2 · secondary
Code block / inline code
--md-b3 · weak / code

The fixed product type tokens still define scale-independent defaults: transcript prose enables text-autospace: normal for mixed CJK and Latin text. Drop stray font-weight: 650 / 750; converge on 400 / 500 (regular / emphasis), with a dedicated 600 weight for sidebar section labels.

TokenValueUsage
--font-ui"Schibsted Grotesk Variable", …, "Noto Sans SC Variable", …UI & body (Schibsted Grotesk + Noto Sans SC)
--font-kbd"Schibsted Grotesk Variable", system-ui, sans-serifkeyboard shortcut keycaps
--font-monoJetBrains Mono…code, Bash commands, line numbers, diffs
data-font-scalesmall / medium / large / xlargeuser preference on <html>; sets --base-font (12–18px), Medium = 14px default
--ui-t0…--ui-c2default + --ui-shift, t0/t1 capped via min()chrome type ramp (title / subtitle / body / caption); .text-ui-* classes
--md-h1…--md-b3default + --md-shiftMarkdown ramp (headings / body / secondary / code); .text-md-* classes
--ui-font-size / --content-font-sizevar(--ui-b2) / var(--md-b1)legacy aliases kept on the ramp
--code-font-sizecalc(var(--content-font-size) - 2px)standalone code surfaces (diff view, file preview, tool cards) — one step below body, 12px @ Medium; prose-embedded code stays on the --md-* ramp
--text-xs / sm / base / lg / xl / 2xlc1 / b2−1 / b2 / t2 / t1 / t0legacy ramp, aliased into the scale
--leading-tight/normal/prose/relaxed1.25 / 1.5 / 1.6 / 1.7headings / UI / chat prose / long text
--weight-regular/option-label/medium/ui-strong400 / 475 / 500 / 525body / settings labels / emphasis / compact UI emphasis
--weight-section-label600sidebar section labels

Icon size

Icons use three size tokens uniformly. The global .p-ic default is 16px (--p-ic-md); components pick as needed, and random pixel sizes are forbidden.

TokenValueUsage
--p-ic-sm14pxsmall button, badge, menu item, inline link icon
--p-ic-md16pxdefault (button, icon button, toolbar)
--p-ic-lg20pxToast status icon, empty-state illustration

Icon

Icons always come from the centralized registry lib/icons.ts: in templates use the <Icon name size /> component (components/ui/Icon.vue); for v-html contexts (such as a tool glyph) use iconSvg(name, size). Do not hand-write <svg> — the scripts/check-style.mjs icon-from-registry rule flags stray SVGs. Every glyph shares the 24×24 source grid and currentColor (colour follows text); size uses the three tokens below, and only icons imported in lib/icons.ts are bundled by unplugin-icons at build time. Three collections feed the registry, in this order of preference: ~icons/kimi/* — Kimi Design System icons (24×24 outlined, 1.8px stroke), local SVGs under src/icons/kimi/ registered as a custom collection in the Vite config, used whenever a Kimi glyph exists for the intent; ~icons/tabler/* — Tabler Icons (MIT), for the few gaps it uniquely covers (today: the right-panel toggle); and ~icons/ri/*Remix Icon (Apache-2.0), for the remaining intents the Kimi set does not cover yet. A few glyphs are filed under their intent rather than the upstream asset name (see the lib/icons.ts header). When an icon is missing, prefer a glyph from the Kimi icon set: copy the SVG into src/icons/kimi/ (kebab-case name, monochrome currentColor) and register it — two static imports (component + ?raw string) plus one entry in ICONS; reach for Remix only when no Kimi glyph fits, and never draw paths in a component.

Size scale

`,49)),t("div",W,[t("div",P,[(n(),l("svg",U,[...a[1]||(a[1]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[2]||(a[2]=e("sm · 14",-1))]),t("div",F,[(n(),l("svg",j,[...a[3]||(a[3]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[4]||(a[4]=e("md · 16",-1))]),t("div",G,[(n(),l("svg",K,[...a[5]||(a[5]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[6]||(a[6]=e("lg · 20",-1))])]),a[8]||(a[8]=t("h4",{class:"mini"},"Icon library",-1)),a[9]||(a[9]=t("p",null,[e("Currently registered icons, grouped by purpose. The display order and grouping are defined by "),t("code",null,"ICON_GROUPS"),e(" in "),t("code",null,"lib/icons.ts"),e(" (a hand-maintained array covering the same icon names), and this catalog is rendered directly from that array so the registry and the document never drift.")],-1)),t("div",J,[(n(!0),l(g,null,k(d(I),([r,v])=>(n(),l(g,{key:r},[t("div",Y,x(r),1),(n(!0),l(g,null,k(v,i=>(n(),l("div",{key:i,class:"icon-cell"},[s(d(o),{name:i},null,8,["name"]),t("span",Q,x(i),1)]))),128))],64))),128))]),a[10]||(a[10]=c('

Do not use emoji as functional icons. The Kimi brand mark (the robot mascot logo) is a brand asset and is not part of this icon system.

A few special graphics are not in the registry; each has a dedicated component maintained in one place, and must not be copied by hand: <ContextRing :pct /> (the Composer context progress ring, data-driven), <AuthStateIcon kind /> (the success / expired / error colored illustrations in the login flow), <Spinner /> (loading state). Status dots (such as in the Provider list) always use CSS dots (border-radius:50%), not SVG. The scripts/check-style.mjs icon-from-registry rule exempts the above and the brand mark; all other hand-written <svg> is flagged.

Spacing

A 4px base grid. All spacing, gaps, and padding inside and outside components come from this scale — no arbitrary pixels.

--space-1 · 4
icon gap, badge padding
--space-1-5 · 6
workbar pill icon ↔ label
--space-2 · 8
control gap, small padding
--space-3 · 12
button padding, form-item gap
--space-4 · 16
card padding, grid gap
--space-5 · 20
dialog padding
--space-6 · 24
section gap
--space-8 · 32
large section gap

Dense list (sidebar / file tree)

High-density navigation lists like the sidebar share one rhythm, all on the 4px grid: in-row vertical padding --space-1 (4px), no margin between rows (the hover pill provides the separation); section gap (between logo / search / action buttons / group title / list) uniformly --space-2 (8px); between groups --space-2; the brand header is slightly looser at the top (--space-3). When building similar lists, reuse this scale — do not hand-write 1/6/7/10px.

Radius

Merge the existing 14 values into the nearest of 7 scale steps. Rule: the component type determines the radius, not the author's feel. The Composer shell is the sole product-specific exception: its 32px radius pairs with superellipse(1.5) so the flatter curve stays visually concentric with its controls.

xs · 4
sm · 6
md · 8
lg · 12
xl · 16
2xl · 20
composer · 32 / 1.5
full · 999
TokenValueUsageMerged from
--radius-xs4pxsmall badge, inline tag2/3/4px →
--radius-sm6pxsmall button, icon button, menu item5/6px →
--radius-md8pxbutton, input, badge, card7/8/9px →
--radius-lg12pxmenu, toast, bubble, floating card10/12px →
--radius-xl16pxcontainer baseline: dialogs, settings cards, sheets, work panel13/16px →
--radius-2xl20pxworkspace attachment card bottom (0 0 2xl 2xl) tucked under the composer18/20px →
--radius-composer32pxComposer shell, with --corner-shape-composerproduct-specific
--radius-menu-rowvar(--radius-sm)Menu rows inset 6px inside the plain --radius-lg menu frame (concentric: 12px − 6px hug)product-specific
--radius-menu-itemcalc(--radius-lg − --menu-pad − --p-hairline)Items of the §03 dropdown Menu — concentric with the frame: 12px − the 3.5px panel inset − the 0.5px hairline = 8pxproduct-specific
--radius-select-optioncalc(--radius-md − --space-1 − --p-hairline)Options of the §03 Select listbox family (Select, SecondaryModelPicker) — concentric: 8px frame − 4px pad − hairline = 3.5pxproduct-specific
--radius-dropdown-rowcalc(--radius-lg − --space-1 − --p-hairline)Rows of the composer dropdowns (model / permission) and the workspace picker — concentric: 12px frame − 4px pad − hairline = 7.5pxproduct-specific
--radius-window14pxmacOS hidden-titlebar window corner (measured on macOS 26 Tahoe) — referenced only through calc(), never directlyplatform constant
--radius-window-chipcalc(--radius-window − --space-2)Sidebar footer chip's bottom-left corner on macOS desktop — concentric with the window corner (14px − the footer's 8px inset = 6px, exactly --radius-sm)product-specific
--radius-full999pxpill badge, avatar, send button999px / 50%

Elevation & z-index

Shadows express only "elevation", never decoration (no colored glow). z-index is unified into a scale, eradicating 9999-style one-upping.

sm · dropdown menu / sticky
md · Toast
lg · overlay (reserved)
xl · dialog
Z-index TokenValueUsage
--z-base0normal flow
--z-raised1in-component local stacking (menu scroll thumbs, strip badges, floating pills) — never a global layer
--z-sticky100sticky header / sidebar
--z-dropdown200dropdown menu
--z-overlay300overlay / bottom Sheet
--z-modal400dialog — sibling overlays tie-break by DOM order, so the global confirm (ConfirmDialogHost) mounts on demand to always land last / on top
--z-modal-dropdown500menus / popovers that open above a modal dialog (teleported to <body>, e.g. the settings SecondaryModelPicker cascade)
--z-toast600toast
--z-tooltip650tooltip bubble — transient and pointer-events none, so it sits above everything (dialogs, toasts) to stay visible anywhere
--z-max9999reserved: only this tier for extreme fallback

Motion

TokenValueUsage
--ease-outcubic-bezier(0.16, 1, 0.3, 1)enter, hover, expand
--ease-in-outcubic-bezier(0.4, 0, 0.2, 1)panel width, layout changes
--duration-fast120mspress, focus
--duration-base160mshover, show/hide
--duration-slow260msdialog, Sheet, layout
--duration-hover-intent250mshover-intent reveal gate (TOC rail)
--duration-spin700msspinner rotation period (mention-tip probe spinner)
--duration-flash1200msone-shot attention flashes (search locate, provider-row added) — a highlight timeout, past the show/hide ramp on purpose
--anim-rive-spin416.7msnew-chat / folder-plus icon: plus spin on hover
--anim-leftbar533.3mssidebar toggle icon: arrow fly-in on hover
--anim-leftbar-shrink200mssidebar toggle icon: divider shrink on hover

The --anim-* lengths are track timings ported verbatim from the designer's Rive exports, so they sit outside the --duration-* ramp on purpose — retiming the ramp must not distort them. Their interpolation stays linear because the easing is already baked into the dense keyframe stops; a token easing would double-apply. Three hover tracks use them today: the sidebar toggle shrinks its divider to half height while an arrow flies in and settles (the expand variant mirrors the track from the left), and the new-chat / folder-plus pluses do one bouncy spin. Each track is keyed to an id inside its own glyph (#bar-divider, #bar-arrow / #bar-arrow-expand, #p1, #af-p1) so every instance of the icon animates, and all revert on mouse-out. They still fall under the global reduced-motion switch below.

Reduced motion

i
Under @media (prefers-reduced-motion: reduce), all animation and transition durations drop to about 0.001ms (effectively off), and the chat working indicator's mascot renders its static fallback instead of the Rive loop. Components should not check this individually; it is handled uniformly in the global styles. The switch clears durations, not transition-delay: a hover-intent gate (the conversation TOC's 250ms reveal) decides whether hidden content appears, and clearing it would make pointer fly-bys strobe content for reduced-motion users.

Layout & breakpoints

Layout sizes and responsive breakpoints are tokenized too: sidebar width, content reading-column width, and two global breakpoints. Components should not hard-code pixels.

TokenValueUsage
--p-sidebar-w264pxleft session sidebar width
--p-content-max760pxchat reading-column max width (regular chat prose)
--p-content-wide920pxwide content (settings / panel)
--p-table-max1040pxdesktop wide-table max width (see §04)
--p-table-cell-max700pxmax width of a single table column; longer cell content wraps (see §04)
--p-bubble-max78%right-aligned chat column cap — user bubble, cron notice, task-notification notice (see §04)
--p-bp-sm640pxmobile / desktop boundary
--p-bp-md980pxnarrow / wide screen boundary
i
At ≤640px: dialogs become bottom Sheets, the sidebar collapses into an expandable drawer, and Composer toolbar controls are allowed to wrap.
',24))]),t("section",X,[a[32]||(a[32]=c(`
03

Primitives

Component primitives are the "smallest correct units" of the site UI. Each primitive exposes variants along only two dimensions — variant / size — with appearance driven by tokens, so it naturally supports light / dark mode and customizable theme colors.

i
For every interactive primitive, the keyboard behavior, focus, and ARIA contract are in §08 Accessibility. New primitives must ship with a keyboard model — mouse-only interaction is not enough.

Component selection guide

ScenarioUse
Primary action (submit / confirm)Button variant=primary
Secondary action / cancelButton secondary / ghost
Destructive action (delete / abort)Button danger / danger-soft
Status markerBadge
Toolbar filter / model switchPill
2–5 mutually exclusive optionsSegmentedControl
Top tabsTabs
Switch / multi-selectSwitch / Checkbox
Scrollable regions with overlay controlsScrollArea
Floating content card / list action menuCard / Menu
Inline notice / global toastBanner / Toast
Dialog / confirmation · bottom panel (mobile)Dialog / Sheet

Button

6 semantic variants × 3 sizes. The primary action primary takes its color from the current theme color (§05 can switch between the blue and black families). Radius uses --radius-md uniformly (small size --radius-sm), weight 600, with a visible focus ring. The text variant is the exception to the box: a chromeless inline action — underlined muted text, sized and weighted by its context — for quiet fallbacks such as a copy-link next to a muted label. Use it wherever a native link-styled button would tempt you; never hand-roll one.

Variant matrix lightpreview
medium · default
Didn't open?
small
With icon / state
Dark skin dark

API

Button.vue · usage
<Button variant="primary" size="md" :loading="submitting">Save</Button>
-    // variant: primary | secondary | ghost | danger | danger-soft | text
-    // size:    sm | md | lg
States

IconButton

Unified into three sizes — 26 / 32 / 44px — with the neutral --color-hover wash on hover and a visible focus ring. Replaces the ad-hoc icon + click areas scattered across components today.

IconButton
i
The desktop IconButton comes in sm 26 / md 32; on touch devices the tap target should be ≥ 44px, so use lg 44px, satisfying the §01 accessibility principle (the mobile three-piece set uses lg). Icon-only buttons must also name themselves on hover: pass tooltip (usually the same text as labellabel alone only sets the aria-label); bare icon <button>/<a> triggers wrap the Tooltip component directly.

Badge · Chip · Pill

Collapsed into two kinds: Badge (status badge, with an optional status dot) and Pill (the clickable pill in the composer toolbar). Radius, font size, and padding are all unified.

Badge · status badge
Semantic variants
pendingrunningcompletedneeds confirmationfailedKIMI
With icon / small size
planpassedread-only
`,19)),t("div",Z,[a[14]||(a[14]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Pill · toolbar pill (composer)")],-1)),t("div",$,[a[12]||(a[12]=c('kimi-k2· thinking',1)),t("span",_,[s(d(o),{name:"shield-question",size:"sm"}),a[11]||(a[11]=e("yolo",-1))]),a[13]||(a[13]=t("span",{class:"p-pill"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"})]),e("12k / 200k")],-1))])]),a[33]||(a[33]=c('

Kbd · keyboard shortcut

Kbd renders a shortcut as keycaps — one block per key, never inline text like (⌘K). Caps are 18px tall (Badge sm rhythm): transparent ground with a 0.5px hairline edge, 11px --font-kbd (Inter + system-ui), text colour inherited from the row that carries it — the cap has no fill or colour of its own, so it follows its context (bright inside the accent-ringed recording box, quiet in a hint row). Typical placement: pushed to the row's trailing edge, opposite the label (e.g. the sidebar search row), and inside dialog navigation hints.

Kbd · keycaps
KCtrlKP

Card / Surface

All cards across the site share one structurehead / body / foot — and come in two tiers by visual weight:

  • Operation card —— composite "process" content such as the Swarm overview. (Individual tool calls are NOT cards anymore: they render as quiet borderless lines, see §04.) Flat shell: 0.5px hairline, --radius-md, no shadow. The head is compact mono with no fill, low weight by default, not competing with the conversation.
  • Attention card —— content that needs a user decision, such as Question / Approval. A floating neutral card: white raised surface, --radius-lg, a faint popover shadow (--shadow-menu), a plain dark title head, and a hairline footer whose actions read in number-key order (chips on the buttons) leading to one solid primary action. No semantic color band.
  • Action card —— the only interactive card pattern (ActionCard.vue in app-ui): one clickable row for pick-one choices (the OAuth login entries, the custom-provider entry). Leading visual slot, title with an optional trailing status Badge, second-line hint, fixed chevron; hover and the focus ring share the site language, and disabled dims + disarms it (the login entries use it while the daemon-support probe is in flight). Consumers never hand-roll a card-shaped <button>.
Operation card · compact mono head (no fill)
read_filesession.ts
The head uses mono + a neutral background to emphasize its "code / process" nature; the body uses sans for readability. Flat, radius-md, same shape as the Swarm composite card.
Attention card · floating neutral surface (no color band)
A decision needs your confirmation
A floating neutral card — no color band. The raised surface, large radius and soft shadow lift it above the transcript; the head is a plain dark title, and the hairline footer lines up quiet text buttons leading to one solid primary action.
Activity run · a summary row expands into the folded lines
Read 2 files
Readsession.tssrc/auth34 lines
Readmiddleware.tssrc/auth58 lines
',9)),t("div",aa,[a[19]||(a[19]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"ActionCard · clickable choice row (normal / disabled)")],-1)),t("div",ta,[s(d(T),{style:{"max-width":"460px"}},{leading:h(()=>[s(d(o),{name:"globe",size:"lg"})]),hint:h(()=>[...a[15]||(a[15]=[e("Sign in with your kimi.com account",-1)])]),default:h(()=>[a[16]||(a[16]=e(" Kimi Code ",-1))]),_:1}),s(d(T),{style:{"max-width":"460px"},disabled:""},{leading:h(()=>[s(d(o),{name:"bolt",size:"lg"})]),hint:h(()=>[...a[17]||(a[17]=[e("Bring your own API key for OpenAI-compatible and other services",-1)])]),default:h(()=>[a[18]||(a[18]=e(" Add a custom provider ",-1))]),_:1})])]),a[34]||(a[34]=c(`
  • One structure, two shells: every card is head / body / foot; operation cards are flat + 0.5px hairline + radius-md with no shadow, while the attention card is the single exception — raised surface, radius-lg and a soft shadow, because it floats above the transcript in place of the composer.
  • Differences are intentional: operation cards keep a compact mono head; attention cards get a plain dark title head and footer actions.
  • Grouping: consecutive activity (thinking + tool calls of any kind, cards included) folds into ONE activity-run row — a smart summary sentence that expands into the items in order; only text and successful media tools (inline media is the turn's output) stay out and break the run. Task notifications stay out too but NEVER break it — a mid-run notice defers and renders right after the run block (see §04).
  • Turn fold: once an assistant turn settles, everything before its final text block (thinking, activity runs, interim text, standalone cards) folds into ONE bare "Worked Ns" row — no glyph, a faint one-line label + rotating chevron sharing the activity-run head's padding and hover language; while the turn streams the row stays hidden and the body forced open, and on settle the row appears and folds itself back. The span is the turn's elapsed time (daemon duration once settled, server message stamps for history; approval/question waits included by design), reading the generic "Work details" without any stamp. The final text — and anything after it, so trailing media / cards stay on screen — never folds; a text-only turn renders no row at all (see §04).
  • Status dots: running (pulsing blue) / done (green) / failed (red), sharing one color vocabulary (see §04 tool calls).

Input / Select / Textarea

Unified 38px height (32px small), --radius-md radius, --color-surface-overlay background, and a unified blue focus ring (0 0 0 3px accent-soft). Select is a custom combobox and listbox, not a native <select>; opening it centres the selected option in the scrollable menu. The listbox teleports to <body> with position: fixed — anchored to the trigger (opening toward the roomier side: flipping upward near the viewport bottom and shrinking its max-height to fit when neither side has room; re-anchoring on scroll/resize; closing when focus tabs away) on the --z-modal-dropdown rung, so it floats above modal dialogs and no scrolling container can clip it; while it is open, scroll gestures outside the menu are swallowed so the surface behind it cannot scroll. Listbox options round at --radius-select-option, concentric with the menu frame (--radius-md--space-1 pad − the 0.5px hairline = 3.5px).

Form primitives
Only letters, numbers, and hyphens are allowed.
States
Please enter a valid workspace name
Normal state · validation passed

Code / Diff

Diff controls: The non-selectable branch summary starts with a 14px branch icon, aligns to the panel header's 12px inset, uses 12px labels, and ends with a 0.5px hairline. List and tree choices use the 14px list and tree-view registry icons. Flat-list and tree-view paths use the UI font at 12px. Tree roots share the flat list's 14px content inset, then each depth advances by 12px and adds a grey indentation rule.

Diff empty state: Centre the clean-workspace message in the available panel height and lead with a quiet 32px status icon.

Diff detail body: the right-side diff detail reuses HighlightedCode unframed (the panel owns the edge and scroll) — shiki highlighting with the language inferred from the file path, an old/new line-number gutter, hunk headers as a muted band, at the shared code size --code-font-size (12px at Medium, one step below body text). The file preview's code body (text / JSON / HTML and Markdown source) renders through the same component with a per-row number gutter plus search-hit / jump-target row states.

Inline code, code blocks, and diff contents use the monospace font (--p-font-mono); diff change counts and branch summaries use the UI font. Code blocks have a filename title bar and a copy button; the action edge uses a compact 6px inset. Diffs use + / - row colors to express additions and deletions — additions use a success light background, deletions use a danger light background, with no gradients.

Code / Diff
inline code
The server uses jwt.verify(token) to verify the signature, returning 401 on failure.
code block
session.ts
import { verify } from './jwt';
-
-    export function auth(token: string) {
-      return verify(token, process.env.JWT_SECRET!);
-    }
diff
session.ts · +3 -1
import { verify } from './jwt';
-const secret = 'dev-secret';
+const secret = process.env.JWT_SECRET!;
return verify(token, secret);

Dialog

One dialog primitive replaces 6 hand-written implementations: unified --radius-xl radius, --shadow-xl shadow, 20px head padding, right-aligned footer actions, and an IconButton close button.

Dialog primitive
New chat
Create an independent Agent chat in the current workspace.
i
Size & height: Dialog offers four widths — sm 360 / md 440 / lg 640 / xl 760 (--p-content-max) — chosen by content weight; sm is for quiet single-purpose dialogs (login, confirm). Height comes in two kinds: auto (default, grows with content up to max-height) and fixed (constant height min(680px, 100vh - 64px), with overflow scrolled inside the body). At ≤640px every modal becomes a bottom-anchored full-width sheet (rounded top, slide-up, max height 86% of the shell's --app-height so it shrinks with the software keyboard). Content / multi-tab dialogs (settings, model picker, provider manager, folder browser) Content / multi-tab dialogs (settings, model picker, provider manager, folder browser) always use fixed so the frame size stays constant and doesn't jump when switching tabs or content length; short confirmation dialogs keep auto. Selectable controls inside Settings use 0.5px hairlines. Its navigation stays transparent on the grouped canvas — separated from the content region by the 0.5px hairline (horizontal in the stacked mobile layout) — and uses 12px labels at weight 525 with 16px registry icons; the selected tab paints the same neutral --color-hover wash as hover, with the label simply brightening to --color-text — the Kimi app settings nav's recipe (.ss-nav-item--activeFills-F1, no accent tint, no weight change); section captions use 16px UI text in --color-text. Every setting row has a plain-language description; option labels use --color-text at weight 475 with a 1px gap before that description. Chinese descriptions use “思考” and “计划模式” rather than the English terms; “skills” stays lowercase when it appears within a sentence. Every settings section puts its rows inside one rounded group with 0.5px dividers; the content region paints the flat --color-surface so each group (--color-surface-raised) reads one rung above it — never a sunken pit, which would sink the dialog's content below its chrome in dark. The font-size stepper is a compact 32px UI-font control with 12px values and custom minus and plus buttons. Its 52px desktop row centres the control with equal space above and below. Archived workspace headings reuse the sidebar’s folder-closed registry icon, and Restore actions lead with the undo icon. Archive counts use weight 500; timestamps and workspace paths use the UI font.

Dialog backdrop: Use a restrained 28% neutral overlay so the workspace remains legible without competing with the modal.

Settings regions: The settings title and close action belong to the right content region. The navigation is a separate full-height region that starts at the dialog's top edge, not content beneath a dialog-wide header.

Archived sessions: Start with the localized page title. Do not add a repeated English kicker above it.

Settings interaction: Notification labels and descriptions are not selectable; their switches remain fully interactive.

Conversation chrome: Header labels are not selectable; the rename input remains selectable and editable. Branch names start with a 14px branch icon. The overflow trigger is a compact 24px control with a 14px icon. Below a 720px header container, hide the workspace prefix and give the conversation title the available width. On macOS desktop the header doubles as the window-drag region and interactive controls opt out with no-drag; while one of its menus or a dock work panel is open every window-drag strip (chat header, sidebar header, panel header) drops the drag region so an outside press anywhere reaches the page and dismisses the overlay (window dragging is simply paused).

Session search: follows the §09 flush picker anatomy — a boxed Input under the head, and a result list that fills the body's available height and owns vertical scrolling.

Model picker: follows the §09 flush picker anatomy; the provider filter remains horizontally scrollable without showing a persistent scrollbar. Only the model list scrolls; the shortcut bar remains pinned at the bottom.

Toast

Unified information architecture: status icon + title + description. The status color appears only on the icon, avoiding large colored areas that create visual noise. For an undoable action there is a second, lighter form — the Action toast (ActionToast.vue): a pill floating top-center just below the 48px header, carrying a one-line sentence whose actions are plain inline <button>s (styled accent by the component), plus close. Self-timed (default 8s, hover pauses); the parent re-keys to reset and wraps it in a <Transition>. First used by session archive (Undo / Settings); warnings keep the bottom-right Toast stack.

Toast
Connected to server
The local server is responding normally; you can start a new chat.
Context usage 82%
Consider running /compact to free up space.
Action toast
or view archived chats in

Spinner

Loaders fall into two categories by scenario — do not mix them:

  • Spinner (plain · SVG ring) —— the default loader. Used for button loading, app startup (GlobalLoading), and general inline waits — "everything else".
  • WorkingIndicator (小蓝 mascot · brand signature) —— used only for the chat working state after a prompt is sent (the sending placeholder in ChatPane, the send → first-token loading in SideChatPanel). The label follows the phase: "Requesting…" until the assistant's reply starts, then "Working…".

Spinner · plain loader (default)

`,30)),t("div",ea,[a[23]||(a[23]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Spinner · common scenarios")],-1)),t("div",sa,[t("div",da,[a[22]||(a[22]=c('Loading…',2)),t("button",oa,[(n(),l("svg",ca,[...a[20]||(a[20]=[t("circle",{class:"track",cx:"12",cy:"12",r:"9"},null,-1),t("circle",{class:"arc",cx:"12",cy:"12",r:"9"},null,-1)])])),a[21]||(a[21]=e("Submitting",-1))])])])]),a[35]||(a[35]=t("h4",{class:"mini"},"WorkingIndicator · 小蓝 mascot (only the chat working state)",-1)),t("div",ia,[a[25]||(a[25]=t("div",{class:"stage-bar"},[t("span",{class:"st"},[e("WorkingIndicator · chat working state only "),t("span",{class:"tag spec"},"signature")])],-1)),t("div",na,[a[24]||(a[24]=t("span",{class:"stage-label"},"Usage · only while the chat has an unfinished prompt",-1)),t("div",la,[s(S,{label:"Requesting…"}),s(S,{label:"Working…"})])])]),a[36]||(a[36]=c('
i
The chat working state is rendered uniformly by WorkingIndicator — the 小蓝 mascot (KimiMascot, the kimi.com avatar Rive asset, with a static SVG fallback under reduced motion or when the runtime fails) plus a phase label. All other loading states use the plain Spinner.

Link

Inline text link: the default is the accent color with no underline; on hover it shows an underline and darkens. File links inside inline code use a 1.5px underline offset so the line stays clear of the chip background. The .muted variant uses the secondary text color. Used for in-text jumps, external links, "view all", and other lightweight actions.

Link · inline link
Read the full design token docs before building.View on GitHubView history

Menu / Dropdown

Desktop menus inset their items by --menu-pad (3.5px, so the hairline plus inset lands exactly on the 4px grid), and item corners stay concentric with the frame at --radius-menu-item (--radius-lg--menu-pad − the 0.5px hairline = 8px — the item arc shares the panel's corner center instead of cutting across it). Standard items pad from the shared --menu-item-padding-block × --menu-item-padding-inline tokens (5px × 9px) with a 7px icon gap. Their three-layer neutral shadow stays below 4% opacity.

Dropdown menu panel: frosted glass — the translucent --color-menu-bg fill over a blurred, saturated page backdrop (--p-menu-backdrop) — plus hairline + light shadow (--shadow-menu, a three-layer neutral ramp). This is the one place glassmorphism is the design language rather than an exception (§06); every floating menu surface (Menu.vue, the Select listbox, composer dropdowns, slash/mention popups) uses the token pair, never ad-hoc blur values. Menu items support icons, the current (active) state, the danger state, and the disabled state, with separators grouping items. All menu actions use 13px labels at weight 475 with 16px leading icons; both share a 16px line box for vertical alignment. Menu timestamps use the UI font. On touch / mobile, use lg (≥44px row height) while keeping the same type size. A dropdown menu pops in from its trigger corner — fade plus a slight 0.97 scale over --duration-base (exit --duration-fast), the composer model dropdown's motion language; the transform origin and the nudge direction follow the anchoring, including the upward flip near the viewport edge.

Row states: hover uses the mode-aware --color-hover wash (it lightens under dark, never darkens); a leading icon sits one rung below the label (--muted), and on hover both label and icon step up to --color-text-strong, the max foreground tier. Selection keeps the accent pair (--color-accent-soft / --color-accent-hover); danger keeps its own colour.

Menu · dropdown menu
Open file
Selected item
Disabled item
Delete chat

SegmentedControl

Mutually exclusive short option groups, commonly used for 2–5 option switches such as "light / dark / follow system" or the four font-scale steps. Options may include a 14px registry icon or a colour swatch. A single raised indicator with a soft shadow (no border — the edge stays clean) slides and resizes between options using the standard motion tokens. Three sizes: md (default, settings pages), sm (compact rows), and xs (dense menus such as the composer model dropdown — 20px items, 12px labels).

SegmentedControl
LightDarkFollow system

SecondaryModelPicker

Linked model + thinking-effort picker (settings → Agent → Subagents, experimental; components/settings/SecondaryModelPicker.vue, shared by both ends). Use it whenever two choices are only valid as a pair — here an effort is meaningless without its model, and every model declares a different supported set. It is a cascading variant of the §03 Select: the trigger is the Select trigger verbatim (value renders model · effort, the unset state uses the placeholder tint), and the dropdown opens as a SINGLE-LEVEL model list (grouped by provider) on the floating menu surface (--color-menu-bg / --p-menu-backdrop / --shadow-lg). The menu teleports to <body> with position: fixed — it opens on top of the settings modal (on the --z-modal-dropdown rung), and only a body-level surface escapes the dialog's scrolling-body clip; it re-anchors to the trigger on any outside scroll and closes on window resize (the UserMenu teleport's full recipe). Hovering or clicking a model row flies its effort submenu out to the RIGHT of the row — same menu surface, anchored to the row's live position, flipping to the left only near the viewport edge per the §03 anchoring rules — with a 250ms hover-intent grace (the UserMenu flyout's recipe) so the diagonal path into the submenu doesn't collapse it. Every model row carries a trailing chevron-right affordance; clicking an effort confirms the pair and closes — one atomic write, never two staggered patches. Flyout options follow the composer's thinking-level model (segmentsFor): effort models get off + their declared levels (always-thinking ones get no off), boolean-thinking models get on/off, unsupported models get off alone; while no effort is set at all, a "Model default" entry leads (it writes the model alone — POST /config merges and cannot clear a stored effort, so the entry disappears once one is set). A configured effort the model no longer declares is appended as an extra flyout option so the current pair stays visible and re-selectable. Keyboard mirrors the Select contract (focus stays on the trigger, Esc preventDefaults so the hosting dialog does not close): ↑/↓ move within the active level (the flyout follows model moves), → opens the flyout, ← collapses it, Enter confirms, Home/End jump. ARIA: combobox trigger → dialog menu holding a model listbox plus the effort listbox flyout with option rows. The menu itself flips upward when the trigger sits near the viewport bottom.

Tabs

Tabs with a bottom hairline, used for grouping and switching sibling content. The current tab is marked with accent text + an accent underline.

Tabs
GeneralAgentAdvanced

Switch

A two-state switch for settings that take effect immediately. The 36×20 track has a 0.5px hairline and full radius; its 16px knob uses 1.5px internal offsets so the visible inset remains 2px and symmetric after accounting for the border. On hover, the knob eases to an 18px rounded rectangle towards the track centre. When on, the track turns accent and the knob slides right.

Switch

Checkbox

A 17×17 checkbox. When checked it fills with the accent color and shows a white tick (inline SVG). Often paired with a text label.

Checkbox

Avatar

A 32px default avatar with md radius; .sm is 24px. Can hold an initial or an icon; falls back to this placeholder when there is no image.

Avatar
KK

EmptyState

A centered placeholder for empty lists / panels: a 48px faint icon + title + hint, avoiding blank pages.

EmptyState
No chats yet
Click "New chat" to start a conversation with Kimi

Divider

A 0.5px hairline divider (--p-line); .p-divider-v is the vertical divider, used between inline elements.

Divider
Content above

Content below
kimi-k2thinking

Tooltip

A CSS-only hover hint, wrapped in .p-tip. Inverted background (--p-text / --p-bg), single line, no wrapping — carries only short notes.

Component behavior contract (the Tooltip primitive and IconButton's tooltip prop, both backed by TooltipBubble): while any menu surface is open, every tooltip OUTSIDE it hides immediately and no new one may appear — a menu owns the screen, so a trigger's hint must never hang above its own dropdown (native menu behavior). Hints anchored INSIDE an open menu stay live, and ordinary hover behavior resumes once the last menu closes. Menu.vue and the Select listbox register as menu surfaces automatically; a bespoke menu surface (composer dropdowns, the slash/mention autocomplete popups, pickers) wires its open ref + panel element through trackMenuSurface from @moonshot-ai/app-ui.

Tooltip (hover the button)
New chat

Banner

An inline notice bar placed at the top of a content area. Three states — .info / .warning / .danger — each with a matching 18px icon.

Banner
Connected to server
Currently in yolo mode; tool calls will run automatically

Sheet / BottomSheet

A mobile bottom slide-up panel: xl top radius + drag handle, xl shadow. At ≤640px, dialogs become bottom-anchored Sheets.

BottomSheet
Choose a model
kimi-k2 · thinking
kimi-k2 · instant

Skeleton

A placeholder for loading content, using a breathing opacity animation (no gradients), following the no-gradient-text rule. Composed into titles / text lines / avatars.

Skeleton

Command Bar

An inline combination of "primary action + command text + copy", sitting between a button and a code block — used for install / onboarding / one-click execution. The primary action reuses Button primary; the command area uses a mono light-grey background.

Command Bar
curl -fsSL https://code.kimi.com/install.sh | bash

TopBar

The application top bar. Solid by default; the .frost variant is translucent + background blur, used only for sticky navigation bars. Together with the floating menu surfaces (Menu / Dropdown), it is one of the two exceptions to the no-glassmorphism rule (see §06).

The mobile shell's top bar (components/mobile/MobileTopBar.vue, ≤640px) is the canonical consumer of this .frost recipe — 78% surface + backdrop blur over the scrolling transcript, 0.5px hairline at the bottom. Its content is one full-height tap target that opens the switcher sheet: an optional leading status — the active session's ONE SessionDisplayStatus (approval/question Badge sm, running Spinner sm, 7px unread accent dot; same precedence as the sidebar rows) — ahead of a single vertically-centred line at max(16px, --ui-font-size-xl): quiet workspace name, strong --weight-semibold session title, faint chevron-down. The trailing IconButton lg (44px) opens settings.

TopBar · solid / frosted glass
Solid TopBar
Frosted-glass TopBar · .frost

Find Bar · transcript search

The in-transcript find bar (Cmd/Ctrl+F), implemented by components/chat/TranscriptSearch.vue. A floating card pinned to the transcript's top-right (top: --panel-head-h + --space-3, right: --space-3 — equal inset on both axes), --z-sticky, raised surface + 0.5px hairline + --shadow-menu. One radius for both states: --radius-2xl is a full capsule at the collapsed height and a card once the footer expands — never animate between two radii.

PartRule
Input rowSearch icon (muted) + bare input — the list-style bare-input exception family (sidebar search row, inline rename), NOT the boxed Input primitive; the 38px bordered control would break the pill. Circular close IconButton sm (concentric with the capsule end); a 0.5px hairline separator before it. Height comes from the grid: 32px control (--space-8) + 2× --space-1 padding = 40px — at which --radius-2xl is exactly the half-height capsule.
Footer (results)Expands via the 0fr→1fr grid fold (--duration-slow), hairline top separator, prev/next IconButton sm left, right-aligned muted count (N/M results · --ui-font-size-sm). Only exists once a query has settled — while typing or empty, the bar stays a bare pill.
Statescollapsed (empty query) / searching (Spinner sm in the input row during the ~800ms debounce) / results / no-results (count reads "No results", nav disabled). Disabled is uniformly opacity:.5.
FocusComposer-style: a neutral hairline overlay (::after + --color-composer-focus-line) fading in on :focus-within. No accent ring.
Match inkCSS Custom Highlight API — the bar mutates no transcript DOM. All matches: --color-search-match (yellow); current: --color-search-match-current + a 2px --color-warning outline ring (a positioned overlay — highlight pseudos can't paint box outlines). Tokens live in app-ui/style.css with light/dark pairs.
KeyboardCmd/Ctrl+F opens + focuses (repeat = re-focus + select-all; hardcoded, reserved in the desktop keymap), Enter / Shift+Enter steps matches (wrapping), Esc closes from ANY control inside (container-level, so it never reaches the conversation's Esc-abort).
Matching semanticsRendered transcript DOM only (unloaded older pages are out of scope), capped at 1000 matches (count reads N/1000+). Matches span inline nodes within one block, never cross block breaks; inert and display:none content is excluded. Stepping scrolls the match's own rect into view, not its parent element.

SectionLabel

A small group title for sidebar lists, used to section the content below (such as Workspaces in the sidebar). Spec: 13px / 700 / uppercase / letter-spacing .08em, color --color-fg-faint; left-aligned to the row's starting padding (--sb-pad-x), keeping the same indent as the group rows below. For scripts without case (such as Chinese), text-transform:uppercase simply has no effect — no special handling needed.

',57)),t("div",ra,[a[31]||(a[31]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Sidebar · group title")],-1)),t("div",va,[a[30]||(a[30]=t("div",{class:"p-section-label",style:{padding:"12px 16px 4px"}},"Workspaces",-1)),t("div",fa,[(n(),l("svg",ha,[...a[26]||(a[26]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[27]||(a[27]=e(" kimi-code-web ",-1))]),t("div",pa,[(n(),l("svg",ua,[...a[28]||(a[28]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[29]||(a[29]=e(" playground ",-1))])])])]),t("section",ga,[a[142]||(a[142]=c('
04

Chat Interface Overhaul

The message stream is the core of Kimi Web. Tool calls render as quiet activity lines — one borderless line per call, bespoke per tool kind, auto-grouped, expanding on demand — while Question / Approval elevate to a floating neutral surface because they need a decision, and the Swarm composite keeps a card; the Composer collapses into a single rounded container.

Unified message stream

User-message bubbles follow the kimiwork production recipe (MessageItem .user-bubble): a neutral --color-user-bubble-bg fill (BubbleGray — #f5f5f5 light / #292929 dark), uniform --radius-lg corners, no border, no shadow.

Message timestamps use 12px UI text at weight 500, matching the compact metadata scale without switching to a monospace face.

The user-message metadata row sits one 8px spacing step below the bubble, so its actions and timestamp read as supporting information rather than part of the bubble edge.

Overlong user messages clamp at 10 measured lines, the tail dissolving through an alpha mask rather than a tint overlay (the translucent accent fill would double-composite); a floating pill toggle centred on the fade expands in place and collapses back, and the collapse pins the toggle itself so the reading position survives. Skill / plugin command args clamp through the same wrapper, beside the card head. Like the transcript's other disclosure controls (thinking row, turn fold, tool lines), the toggle is a bare native button carrying aria-expanded — chat-surface disclosure controls do not use the §03 Button primitive.

The floating jump-to-latest control uses 12px UI text at weight 525, led by the full down-arrow icon rather than a disclosure caret.

Thinking is an inline, borderless disclosure row in the message stream — never a side panel. The k15 bulb (the thinking registry icon) leads the row in every state; while streaming the "Thinking…" label breathes (opacity only, never a gradient shimmer) and whole elapsed seconds tick beside it, afterwards the label settles to "Thinking process" with the final span as · Ns (renderer-measured, live sessions only — history shows no seconds). Collapsed by default, it expands in place with the standard grid-rows animation and a 90° chevron rotation, and it folds itself back once the stream moves past it, even if the user expanded mid-stream. The header only animates its text colour on hover (standard duration and easing tokens), no card shell.

Conversation · 760px reading column
Please change the login endpoint to JWT and add the corresponding unit tests.
🌔Analyzing the auth module…
Read 2 files
Readsession.tssrc/auth · :12-4534 lines
12 export function verify(token: string) {
13 return jwt.verify(token, getSecret());
14 }
Readmiddleware.tssrc/auth58 lines
Editmiddleware.tssrc/auth+12−4
Search"jwt.verify"src/auth4 results

I looked at the structure of src/auth; it is currently based on a session cookie. The scope of the change is below — once you confirm, I'll start.

A decision needs your confirmation
How long should the JWT expiry be? Default 7 days, refresh token 30 days.
Write permission required
About to modify src/auth/middleware.ts, 42 lines changed. Allow?
Replace session with JWT signing
Refactor the auth middleware
Add unit tests

Wide markdown tables (desktop): regular chat prose stays within the 760px reading column (--p-content-max), and tables stay there too by default — an overflowing table scrolls horizontally inside its own wrapper, so the page and the chat area never scroll sideways. A clipped table shows a gradient fade at its truncated right edge, and hovering the table reveals a small widen button at its top-right corner; clicking it lets the table grow naturally with its content up to 1040px (--p-table-max), centred within the conversation pane, and clicking again restores the default width. At the default width a single column is capped at 36% of the pane; once widened the cap relaxes to 700px (--p-table-cell-max), so long cell content wraps inside the cell instead of stretching the table. The conversation outline (TOC) keeps its usual position just outside the reading column; when a widened table grows past it and scrolls under the rail, the TOC is hidden temporarily and returns as soon as the table leaves, without touching the user's TOC setting. On mobile a table never breaks out of the reading column.

Tool calls: quiet activity lines, bespoke per tool

High-frequency calls like read / bash / grep are "operational noise" — boxed, collapsible cards quickly drown out the conversation. Tool calls therefore render as one quiet borderless line in the message stream — never a card — and each tool kind composes that line for its own content, so the stream reads like an activity log rather than a pile of widgets. The three visual-weight tiers:

Three visual-weight tiers
① Tool line · lightest (default) — bespoke content per tool, no card chrome
Runpnpm run build && pnpm lint0.8s
② Activity run · medium (consecutive quiet activity — thinking + tool lines — folds to one smart-summary row)
Read 3 files
③ Sub Agent identity card · one per delegation — task title + a meta line leading with the 前台/后台 mode then agent type · model · effort; the whole card opens the side panel (no in-stream expansion, never grouped)
分析双引擎架构前台 · Explore
④ Decision card · heavy (only question / approval, needs user input)
Write permission required
About to modify src/auth/middleware.ts, 42 lines changed.
  • A tool call renders as one quiet borderless line (~24px, the thinking row's rhythm): leading glyph, tool-specific content, trailing meta + status. There is no card chrome and no hover wash — the chevron hugging the line's text (thinking-row style, never pushed to the far edge) is the only disclosure affordance, a real <button> carrying aria-expanded (keyboard path); the head itself is a plain click target (mouse path), so trailing slots may hold genuine buttons of their own (e.g. Agent's "open detail").
  • One type scale for the whole stream: thinking rows, fold summary rows and tool lines all set 13px UI text; in-line mono and trailing meta run one step down at 12px (a monospace x-height reads larger, so 12px sits level next to 13px). Hierarchy comes from colour, never from size jumps or bold — everything on the line is regular weight: the only dark object is the file-name button (--color-text — the one interactive place to go); the action label (Run / Read / Edit…), the mono command / pattern and secondary context all sit at --color-text-muted; auxiliary elements (glyphs, chevrons, trailing meta) stay --color-text-faint. The stream thus reads in three quiet tiers: prose in text, tool lines in muted, thinking / captions in faint. Line content is centre-aligned so mono-only rows (Bash) sit level with the icon and chevron. Truncating line content (the CSS-ellipsis spans) sets --leading-tight rather than the row's line-height: 1 — a 1em line box is shorter than the font's ascent + descent, so overflow: hidden would clip descenders (j / p / g / y); mono runs take the font's own normal leading instead, since JetBrains Mono's ≈1.32em metrics exceed --leading-tight. The 16px chevron still drives the ~24px row height.
  • Every tool kind composes its own line, leading with the tool's localized action label (Run / Read / Edit / Write / Search / Find / Fetch…): Bash pairs its label with the full command in mono (CSS-truncated) plus a duration chip; Read / Edit / Write follow the label with the file name as a real button (opens the file preview) followed by the directory, a :line-range or a +N −M stat with a mini segmented bar; Grep shows the pattern in mono plus a match count; Glob / Ls list paths; Todo carries the active task with a done/total progress bar; goal tools show a coloured status pill; WaitFor names the waited / finished task with the task's terminal status as a §03 Badge (a timed-out wait renders as a warning, never an error) and the waited span as a chip; ExitPlanMode expands into a read-only plan receipt with its persisted review outcome. Unrecognized tools fall back to glyph + localized label + argument summary.
  • The settled question is the one exception to the quiet line: once AskUserQuestion settles with a recognized answer, it becomes a small receipt card — the question card's echo (raised surface, hairline edge, lg radius, --shadow-xs, flush with the stream's left edge, ≤560px). The card echoes only the picks, checked with the live QuestionCard's CSS glyph language one step down (14px); passed-over options are not echoed. Dismissed (or zero-answer) collapses to a slim italic one-line card; while running, and for unrecognized output (background launch / error), it stays the plain quiet disclosure line with the raw output.
  • Clicking a line expands it in place; the detail hangs below at the line's own left edge (no inset), so it reads as part of the stream rather than as a separate card. Details are one of: the mono output panel (content-well surface, hairline edge, 12-line scroll cap), the inline diff, or clickable match / file lists (path:line opens the preview at that line). Code-bearing details — the Read content, the Edit diff, the Write content — are syntax-highlighted by file type (github-light / github-dark, following the colour scheme), with the Read output's real line numbers as the gutter; highlighting mounts lazily on first expand and degrades to plain text for unknown languages or oversized content.
  • Rows sit flush with the message stream's left edge (same alignment as prose and the thinking row): no inset, no hover wash, and the glyph rides the thinking row's 4px icon-to-text rhythm with no padded slot. Expanded rows inside a group stack directly on the shared rhythm — no dividers.
  • Consecutive activity — thinking segments and tool calls of ANY kind, quiet lines and richer cards alike — folds into ONE activity-run row: a smart summary sentence that aggregates the run per tool kind in first-appearance order (Read 2 files · Ran 5 commands (1 failed) · 26s), the failure clause hanging on its kind in danger red, the total span faint at the tail — one line, ellipsis-truncated, the full sentence in the title tooltip. Thinking items fold into the run but are not narrated in the sentence. The row shares the thinking row's language (borderless faint text row, text-colour hover only, one whole-row button with a rotating chevron) but rides a roomier 8px vertical padding — 30px against the quiet lines' 22px, so the turn-level summary keeps its presence between prose paragraphs; while the turn streams through the run the row stays expanded and the summary turns live (current action + cumulative per-kind stats + ticking whole seconds), and once every item settles it folds itself back — even if the user expanded it mid-run (the thinking block's vocabulary); a settled → running transition (the stream appending to the same run) reopens it. The glyph carries the state: the current step's own icon breathing while running, green ✓ / red ✕ once settled. A run needs ≥ 2 steps — a lone step renders standalone as the block it always was. Text never folds (it breaks the run), and neither do successful media tools (no card — inline media is the turn's output). Task notifications never join the run either — but unlike text they never break it: a notice landing mid-run queues and renders right after the run block (see the notification entry below); everything else folds, cards included: Todo / Goal progress narration, the sub-agent identity card, Question / Swarm cards and unrecognized kinds (skills, MCP tools) all join the run — the stay-expanded-while-live rule keeps a card visible exactly while it is active. The expanded run is the items flat in order (thinking rows + tool rows), each with its own in-row details intact — the lines keep their own 4px row rhythm but breathe 8px apart, with a small inset below the head.
  • Above the activity run sits the turn fold (TurnFold.vue): when an assistant turn settles, every block before the LAST text block — thinking segments, activity runs, interim text paragraphs, Todo / Goal / sub-agent cards — folds into a single bare row reading Worked 4m57s (whole seconds, no glyph, no summary sentence), expanding into the folded blocks in order, each with its own rendering intact. The span is the turn's ELAPSED time (turnWorkMs): it ticks from the stamped start while the turn is open — approval/question waits included by design, so no park bookkeeping exists — then reads the daemon's own durationMs once settled (the server message stamps for history turns); the wall clock only feeds the live tick, so throttled tabs, session switches and remounts cannot corrupt the settled value. Without any stamp the row falls back to the generic Work details. Streaming turns show no row and a forced-open body — the live transcript is untouched, the fold lands only when the stream moves past the turn (or the turn parks). The split never hides the turn's output: the final text block and any trailing blocks (inline media, standalone cards) stay visible, and a text-only turn folds nothing. Fold state is a plain component ref — nothing persists, switching sessions resets to folded. Inside the right-side sub-agent transcript (ChatPane's inspector mode), the turn fold and the run-end footer are suppressed entirely; activity runs stay pinned open (their heads demoted to plain captions — an inspection view exists to show the whole trajectory), while thinking blocks keep the main transcript's fold behavior — collapsed by default, toggleable, folding back when the stream moves past them — skipping only the reveal animation (the instantReveal prop). Disclosure bodies open instantly while their chevrons retain the standard rotation: animating the height of a full historical stream would relayout the entire panel on every animation frame.
  • A sub-agent delegation is an identity card — never a quiet line: the card carries the TASK as its title and the agent type as a quiet meta line, while the orchestrator's full prompt stays out of the stream on purpose. The whole card is one action (the quiet shell vocabulary: raised surface, hairline edge, large radius, no shadow): click to open the subagent's live progress in the side panel — there is no in-stream expansion.
  • Status keeps the shared vocabulary: running (pulsing accent dot) / done (green ✓) / failed (red ✗), at the line's right edge. Only two types keep a full card: Question and Approval — they genuinely need the user's attention. The Swarm composite keeps one quiet card (raised surface, 0.5px hairline, large radius) for its phase overview + member accordion.
  • A task notification renders in the cron notice's language, not as a status card (NotificationCard.vue, sharing CronNotice.vue's visual grammar): the hidden <notification> injections (background-task / sub-agent settlement) render as a right-aligned column capped at --p-bubble-max — the user bubble / cron notice side of the stream. A small faint provenance line sits ABOVE the content (status icon + title + source id, e.g. "后台任务完成 · bash-lo9yv9ch", mirroring the cron head's "title · schedule"); only the icon carries the status colour (completed → success, failed / timed_out / lost → danger, killed → warning, else neutral; a sub-agent info notice takes the robot glyph). Under it, the notification's own text sits in a neutral grey rounded block (the user-bubble fill, uniform large radius, no border, no shadow): title and body in full (wrapping, never truncated), an output-file row (mono ellipsized path + formatted size + copy-path button), the output-preview block (a faint caption carrying the payload's truncated flag + sizes over the line-clamped monospace tail of the task output), and the raw-payload <details> disclosure — type / source / severity fields plus the verbatim XML in a height-capped mono scroller — fused INTO the block as its last section; only the event time sits underneath. ≥2 CONSECUTIVE notifications merge into ONE render block, but every notification renders as its own notice, stacked in order — never a collapsed group card. A notification never breaks the activity run: one landing mid-run (a background task settling while the agent keeps working) is held back and rendered right AFTER the run block, so the turn's tools stay in one group; with no run open it renders in place. Notifications are never turn boundaries, and they never fold — a notification is an event worth noticing, not process noise, so it punches out of the turn fold and renders right after the fold row, in order.
  • A turn that dies on a model-request failure leaves a persistent terminal card at the transcript tail (ChatPane's .turn-failed): the notification card's danger shell (danger-soft surface, danger hairline, 24px status chip with the warning glyph) carrying a title keyed by the wire error kind (model failure vs step-limit stop), the provider message as a muted sub, a mono diagnostics meta (code · HTTP status · request id), and exactly ONE secondary sm action — Continue, which submits a short continue prompt through the normal path. It renders only while the session sits idle on lastTurnReason === 'failed' (a turn with zero assistant output included, so it pins to the tail rather than any assistant row), it is not dismissible, and it vanishes the moment a new turn starts. While the turn is still fighting, the working indicator instead narrates the retry backoff ("retrying n/max" from the live agent.status.updated phase) — a retrying turn never shows the card. The transient error toast now fires only for background sessions; the viewed session's failure is fully covered by the card.
  • Turn failed card · persistent terminal marker + one resume action
    模型请求失败,本轮对话已中断429 The engine is currently overloaded, please try again laterprovider.rate_limit · HTTP 429 · req_01KZ8Y…
  • A goal-continuation turn carries a provenance row: the hidden goal_continuation trigger (goal mode's self-driven next turn — a turn boundary, unlike task notifications) never renders its machine prompt; instead the assistant turn it opens shows one faint 12px line flush with the stream's left edge — the target glyph shared with the Goal tool (this turn belongs to the goal) + a localized label — ABOVE the turn's content and OUTSIDE the turn fold, so the row survives as the turn's provenance after settling. The marker lands with the trigger (before the first assistant block), and while the newest exchange is a goal-continuation turn the undo affordances (edit-and-resend, Esc undo) are suppressed — rewinding would drop the hidden trigger while refilling the older user text.
  • A settled turn's file changes are one summary card (TurnFilesSummary.vue): between the turn's final text and its footer, a §03 Card (hairline border, no shadow — NOT the quiet tool line, the artifacts are worth a discrete object) lists every file the turn's Edit / Write calls touched. The head reads "N files changed" with the aggregate +A −D and the mini diffbar; the aggregate hides whenever any row's stats are incomplete (a Write or an underivable edit makes the total a lower bound, never presented as exact). Each row is one clickable workspace-relative path (short and self-locating; a file outside the cwd stays absolute) with its per-file +A −D at the right edge. The row's action keys on the tool kind, and the stats tell it apart: a Write has no per-file count (its diff is underivable) and opens the whole file in the preview; an Edit / MultiEdit carries its +A −D and opens that file's turn diff in the right-side detail layer (TurnDiffPanel.vue — the turn's own X→Y change, not the git diff), whose header keeps an open-file action. The first three files show inline; the rest collapse behind a "N more files" ghost-button row in the card's foot. Where nothing handles the row action (the BTW side chat), the card renders its file rows as plain text instead of links.
',15)),t("div",ma,[a[37]||(a[37]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Turn files summary · a real TurnFilesSummary (fixed sample)")],-1)),t("div",ba,[t("div",wa,[s(E,{changes:z,cwd:Vt,onOpenDiff:m,onOpenFile:m})])])]),a[143]||(a[143]=c('
Tool Call · quiet lines (expand on demand)
Read 2 files
Readsession.tssrc/auth · :12-4534 lines
12 export function verify(…
Readmiddleware.tssrc/auth58 lines
Editmiddleware.ts+12−4

Decision cards · Question / Approval

The two attention cards replace the composer in the dock and share one contract: a floating neutral shell (--color-surface-raised + hairline + --radius-lg + --shadow-menu), a plain dark 16px title head, and a hairline footer whose actions read in number-key order with exactly one accent primary. There is no semantic colour band — the floating card itself is the "needs a decision" signal.

Plan review · pinned option rows, second-line descriptions
按这份 plan 开始实现?
The plan markdown scrolls in a capped area; the approaches are pinned below it — label on the first line, full description always on the second. The number chip doubles as the keyboard hint.
1方案 A:静态徽章零依赖、渲染稳定,升级时需手动同步版本号。
2方案 B:动态徽章版本自动同步免维护,但要求仓库公开可访问。
  • Footer contract: actions are left-aligned in number-key order (1·2·3·4), each carrying a number chip — sized by --p-chip-num over --color-inline-code-bg, the same chip vocabulary as option rows and the multi-step chip; exactly one primary action, the rest are ghost. Feedback mode swaps the whole footer for submit / cancel.
  • Feedback input: the reject-with-feedback box is the shared §03 Textarea primitive (no bespoke input), three rows at rest, auto-growing with its content UPWARD — the card is bottom-anchored in the dock, so the bottom edge and the submit / cancel footer never move — capped at 40% of the VISUAL viewport, then scrolling internally. Height budgets follow --app-height (the visual viewport, which shrinks with the iOS keyboard where dvh does not): the card caps at calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance)) and the dock takes over the same budget. While the feedback box grows, every body kind yields and scrolls internally by default instead of pushing the card past its cap — the plan scroll area, code previews, shell output, todo lists, invocation chips and generic text — with only the one-line plan path pinned at full height. A plan review's option rows belong to the plan region and never shrink, so once fixed chrome (options, grown feedback box) exceeds what the capped card leaves — e.g. the iOS keyboard shrinking the visual viewport — the WHOLE plan region (body and options together) becomes one scroller, keeping an approve option reachable by scrolling instead of clipped out of reach. Below even that budget — the cap under the fixed chrome alone (header plus mobile's stacked ≥46px submit / cancel buttons), as when an iOS landscape keyboard leaves a ~200px visual viewport — the body has already shrunk to zero and the CARD itself becomes the scroller of last resort (overflow-y: auto, with its own scroll seam), so the footer buttons are never clipped away.
  • Body by kind: Write approvals preview the incoming content with HighlightedCode (syntax-highlighted, 24-row cap with scroll); Edit approvals render the before/after hunk as a highlighted line diff. Plan / diff / file kinds get a head expand toggle that lifts the cap so the block fills the card; the card itself never exceeds the pane (only the scroll area shrinks) — with the dock work pills visible, the dock takes over the same height budget as a flex column, so an expanded card yields the pills' height instead of pushing them past the pane's top edge. Once the plan scrolls, a soft shadow fades in at the scroll area's top edge — the sidebar's scroll-linked seam language, so clipped content reads as passing under the card chrome.
  • Danger hint: destructive shell commands (rm -rf, sudo, force-push…) show a danger-soft filled hint row under the command — detection is a display-layer heuristic on the client.
  • Minimized: the card collapses to a thin bar with a mono peek of the subject; the whole bar is the expand click target.
  • Question card: the title is the question itself, wrapping in full (only the minimized bar truncates to a single-line ellipsis), with a step chip for multi-question flows and a × dismiss button. Like the approval card, the expanded card is capped just below the chat header (the shared --dock-card-top-clearance budget) — the body is the internal scroll region, and when the fixed chrome (a very long title plus the footer) exhausts the budget on its own the body keeps an operable floor (--question-card-body-min-h) while the CARD itself becomes the scroller of last resort (overflow-y: auto), so the options and footer actions are never clipped out of reach; with dock work pills visible the dock takes over the same budget as a flex column so the card yields the pills' height — and with no room left above a full-height card, an open work panel closes and stays closed until the question resolves; ↑/↓ keeps the highlighted/selected row inside the body's scrollport, and paging between questions resets the scroll position. Options use CSS radio/checkbox glyphs (accent when selected); the number chip and glyph top-align with the option text, optically centred on the label's first line. The footer follows the same left-aligned action contract (primary first, ghosts after), with the keyboard hint pinned to the right edge; keyboard: ↑↓ moves (Space toggles in multi), digits pick, Enter advances/submits, Esc dismisses.

Composer

Unified into a single raised container: --radius-composer (32px) with --corner-shape-composer: superellipse(1.5) and a stable 0.5px edge. Focus crossfades a low-chroma line-and-accent edge over --duration-slow with --ease-in-out, while the neutral shadow stays unchanged — there is no added halo and no layout shift. The composer input (a ProseMirror contenteditable on desktop, a textarea on the web during the migration) uses text-autospace: normal for mixed CJK and Latin input. Toolbar controls use a quiet 32px full-round geometry with 8px edge inset; the send button remains a standard 32px circle, with its glyph at 28px (--composer-send-icon-size, the production kimi.com size; it sits outside the --p-ic-* scale on purpose).

Fill and edge tokens: the card's fill and rest border are their own tokens — --color-composer-bg and --color-composer-line — running the kimiwork / kimi.com production input recipe (.chat-input__shell): fill = groupedBackground.secondary (#ffffff light / #1f1f1f dark), rest border = separator.s1 (13% black / 12% white), focus line = fills.f4 (25% in both schemes), and --shadow-input = effect.shadow.inputDefault (0 5px 16px -4px rgba(0,0,0,0.07), kept identical in dark — the hairline carries the edge there). Only colours sit in the tokens; the 32px superellipse shape and the focus-only edge overlay are unchanged.

Send button tokens: the send circle runs on --color-send-bg / --color-send-bg-hover / --color-send-icon (+ *-disabled, --opacity-send-disabled, --shadow-send[-hover]), following the production recipe (.chat-input__send): a neutral labels.primary fill (90% black light / 84% white dark, hover #252525 / 84.8%) with the production lift shadow (0 7px 16px -13px 38% + 0 1px 2px 7%, one step larger on hover), a groupedBackground.secondary glyph, and a disabled state of the same vocabulary — fills.f2 fill with a labels.quaternary glyph at full opacity. The button is disabled exactly when submit would no-op — an empty draft with no ready attachment (image-only sends stay enabled), an upload in flight, or the starting spinner — so disabled is a first-class persistent state, never a fade.

Layering, anchors, and motion: the dock normally stays at --z-sticky so the Latest Messages pill can remain visible above its veil. While any Composer popup or work panel is open, the dock temporarily joins --z-dropdown, ensuring permission, work-mode, and model menus — and the work panel — always paint above that pill. The permission menu's left edge and the model menu's right edge each follow their own trigger pill. All three menus use --shadow-menu and the same trigger-corner pop motion as Session Row menus: 0.97 scale with a 2px shift toward the trigger, --duration-base on entry, and --duration-fast on exit.

Attachment strip: attachments hang inside the composer card above the input as two grouped rows — images/videos as shared MediaThumb rounded thumbnails, files as the shared AttachmentChip pill — the same pair the sent bubble renders, so a draft looks exactly like the sent message. File-store videos render a static play tile instead of fetching a first frame. The strip caps at two thumbnail rows and scrolls beyond that instead of pushing the input down; while overflowing, a quiet count badge pins to the bottom-left and new attachments auto-scroll into view (to the end of whichever group grew). With two or more attachments, a one-click clear-all pins to the strip's top-right corner as a quiet 22px badge (trash glyph, danger on hover). The composer's pending preview and the bubble's media clicks open the same MediaLightbox preview, which owns Escape via the shared dialog stack: images go through PhotoSwipe (@moonshot-ai/app-client's lib/mediaPreview) and zoom out of the clicked thumbnail (scrim = --color-scrim-strong, caption = --color-text-on-scrim; the slide area is inset — 24px sides matching the video modal, 56px top/bottom clearing the close button and caption — so a viewport-filling image never kisses the edges), videos keep the custom modal. Both share the --color-scrim-strong backdrop and the same close button — the raised 36px circle (.media-lightbox-close) fixed at the viewport's top-right, rendered by MediaLightbox for both (PhotoSwipe's own top bar is disabled; zoom stays on wheel / pinch / image click). ReadMedia tool cards open it too (an App-level instance fed by the openMedia chain): the image zooms out of the card's thumbnail, and videos show as a static play tile that opens the modal player — no more right-side-panel detour or inline <video>.

Mention pills: @-mentions render as inline pills in the editor — one element of the cross-surface rich-text vocabulary specified in §05 Rich Text Messages (visual recipe, wire forms, and behavior contract live there).

',12)),t("div",ya,[a[44]||(a[44]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Composer")],-1)),t("div",ka,[t("div",xa,[a[42]||(a[42]=t("div",{class:"p-composer-ta ph"},"Message Kimi, / to run a command, @ to reference a file…",-1)),t("div",Ta,[t("div",Sa,[a[39]||(a[39]=t("button",{class:"p-icon-btn"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"})])],-1)),t("span",Ca,[s(d(o),{name:"shield-question",size:"sm"}),a[38]||(a[38]=e("yolo",-1))]),a[40]||(a[40]=t("span",{class:"p-pill"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"})]),e("plan")],-1))]),a[41]||(a[41]=c('
kimi-k2· thinking
',1))])]),a[43]||(a[43]=c('
kimi-code-web
',1))])]),a[144]||(a[144]=c('
i
Site-wide consistency: the composer uses one 32px superellipse shell and one 32px desktop control height. The add (+), permission, compact, and model controls are all full-round and transparent at rest; hover reveals a neutral wash, open/active may use accent-soft, and Send remains the sole persistent filled control — an inverted --color-text fill with a --color-bg glyph (never the accent), disabled while the input is empty or an upload is in flight. The transparent dock floats over the transcript, while the scrolling content receives bottom padding equal to the live dock height so its final item can still clear the composer. Composer chrome is not selectable; only the message input permits text selection. Each permission mode has its own registry icon — manual hand, yolo shield-question, auto full-access — paired with the label in the pill (the left cluster is rigid — its labels never ellipsize; once the row's only valve, the model name, is measured crushed below the readability floor, the stage machine flips the permission/swarm pills straight from full text to the accessible icon circle — computed from the live layout, never a fixed width — and flips them back with hysteresis) and leading its dropdown row in the mode's colour, with the current row's check trailing the row's end. The right toolbar holds the row's only valve: the model name ellipsizes as the toolbar tightens (the thinking suffix is never ellipsized — short effort words show in full or not at all — and the chevron never shrinks); each time it is measured crushed below the readability floor the stage advances one step — permission/swarm pills flip to icon circles, then, if it still doesn't fit, the model pill sheds its text and chevron for the bare model icon (the tooltip carries the model + effort identity and the dropdown stays one tap away) — every transition computed from the live layout with em-based thresholds that track the font scale, unfolding with hysteresis as the pressure eases. The dock's work pills and panels — pill vocabulary, panel shell and motion, the two-tone head, per-kind bodies, filtering, and the open/cancel model — are specified in Dock · work pills & panels below.

Workspace attachment card: on the empty session, the workspace picker is a separate attachment card tucked under the composer — and the composer card itself stays complete (its own 0.5px border, --radius-composer corners with --corner-shape-composer, and shadow are never altered). The attachment lives inside the composer's padding box as the card's sibling, so its width always matches; its top --space-4 slides behind the card (the card is raised to --z-sticky), its square top edge stays hidden, and only the rounded bottom (0 0 --radius-xl --radius-xl) shows. Background --color-hover at 60% via color-mix (≈0.03 black in light, self-adapting in dark), no border, no shadow. Inside sits one quiet capsule trigger: transparent, --radius-full, 16px leading icon and 12px label at weight 475 in --color-text-muted; hover deepens to --color-selected and the label turns --color-text. The dropdown follows the §03 menu spec and is viewport-aware (flips above when more room, clamps max-height to the scrollport); at --z-dropdown it outranks both the card and the fixed click-outside backdrop (--z-sticky), which renders outside the composer because the card's container-type captures position: fixed descendants.

Autocomplete menus

The slash, mention, and add popups share one geometry, all on dedicated tokens: the --color-menu-bg-frost surface (the frostier recipe), frame padding --menu-row-hug, rows at --menu-row-padding-block × --menu-row-padding-inline with --radius-menu-row caps (plain corners — the frame is --radius-lg with NO corner-shape, and the row radius stays concentric: 12px frame − 6px hug = 6px), an icon-to-label gap of --menu-row-gap-icon, and a --menu-rows-seam between stacked rows. Touch rows pad to --menu-row-touch-padding-block with a hard floor of --touch-target-min. Scroll height caps at --p-slash-menu-h / --p-mention-menu-h / --p-add-menu-h; the scroll-edge fade is --menu-scroll-fade, and the overlay thumb rides --menu-scrollbar-width / --menu-scrollbar-edge / --menu-scrollbar-track-inset / --menu-scrollbar-thumb-min in --color-menu-scrollbar (hover --color-menu-scrollbar-hover) — 3px visually, with a wider invisible drag strip.

Add menu

The composer's + button opens the add menu — the autocomplete family's action-list member: one column of icon + label (+ muted description) rows (Files, Goal, Plan, Swarm) on the same frost surface and row geometry as the slash/mention popups, capped at --p-add-menu-h. Semantically it is an action menu, not an autocomplete listbox: rows are menuitem commands, DOM focus moves into the menu (arrows navigate, Enter activates, Escape closes), and the + button carries aria-haspopup="menu" — the textarea's combobox ARIA never points at it.

Design decision: deliberately NOT the §03 Menu/MenuItem primitives. Those are the trigger-dropdown family (sidebar, user menu, session rows) — --color-menu-bg, --radius-lg, a min-width box. The add menu instead shares the composer menus' material (the frostier surface, the composer corner curve, rows hugging the frame at the composer's text column, muted description sub-lines). Bending MenuItem into that material would require exactly the per-screen appearance overrides the primitive contract forbids, so the add menu keeps bespoke rows built directly on the shared --menu-row-* tokens. This paragraph is the canonical record of that choice — reviews should not re-litigate it.

',7)),t("div",za,[a[52]||(a[52]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Add menu — family surface, icon + label + desc rows, keyboard focus wash")],-1)),t("div",qa,[t("div",Aa,[t("span",Ba,[s(d(o),{name:"attachment",size:"sm"}),a[45]||(a[45]=t("span",{class:"n"},"Files",-1))]),t("span",Ma,[s(d(o),{name:"target",size:"sm"}),a[46]||(a[46]=t("span",{class:"n"},"Goal",-1)),a[47]||(a[47]=t("span",{class:"d"},"Set a goal to keep pursuing",-1))]),t("span",Ia,[s(d(o),{name:"file-edit",size:"sm"}),a[48]||(a[48]=t("span",{class:"n"},"Plan",-1)),a[49]||(a[49]=t("span",{class:"d"},"Turn plan mode on",-1))]),t("span",Ea,[s(d(o),{name:"sparkles",size:"sm"}),a[50]||(a[50]=t("span",{class:"n"},"Swarm",-1)),a[51]||(a[51]=t("span",{class:"d"},"Turn swarm mode on",-1))])])])]),a[145]||(a[145]=c('

Work modes

Plan and Goal are the primary work modes — mutually exclusive, at most one armed at a time. Arming happens only through the slash commands (/plan, /goal) or the add menu; an armed mode renders as the input row's leading pill — a neutral --color-surface chip with the mode's 14px icon, its label, and a × that disarms. The × is an IconButton sized --wm-x-size (below the sm default, so its hover wash never outgrows the pill's rounded end) with a --wm-x-ring hit reserve that stays inside the textarea's indent; on touch it meets --touch-target-min. The input's first-line text indent reserves exactly the pill's width (the desktop ProseMirror editor applies it to the first paragraph), so the caret and placeholder slide right rather than colliding; arming Goal also swaps the placeholder to its objective prompt. Sending with Goal armed creates the goal and the pill hands off to the dock's goal pill; a live goal does NOT lock the primary modes — /goal then just focuses the goal's panel, and /plan still arms (the only hard rule: one message cannot both create a goal and enter plan — the goal write carries the plan disarm atomically — and a failed mode write is treated as a send failure: the optimistic message rolls back, the error toasts). Swarm is deliberately NOT a mode: an orthogonal toolbar chip with its own enable confirmation, disarmed from the chip's ×.

Dock · work pills & panels

Work pills (WorkPill.vue): the dock's workbar above the composer carries one pill vocabulary — font-driven by flex computation: the 1.5em leading icon and the label's own line box (--text-base at --leading-normal) both come to 21px at the 14px UI text, and 8px block padding wraps them to 37px, nothing pinning pixels, so the pills rescale with the font; borderless, with --radius-lg rounded-square corners, filled at the fills ladder's --color-selected rung over the shared --p-menu-backdrop blur — the panel's frosted recipe scaled down to a chip, so transcript text never reads through the light fill (the neutral hover wash layers on top — one layer, never two), the icon at full text colour, --space-2 / --space-3 block / inline padding — the trailing side adds a --space-05 optical compensation against the leading glyph — and a --space-1-5 content gap. Every pill stays expanded — the Code client does not collapse status chips — carrying icon + label and a trailing meta that answers one question — what is live on this surface right now — for background bash tasks, background sub-agents, todos, and the goal alike; the row insets to the composer's text column — dock inline inset + the card's 0.5px border + the input wrap's 16px inline padding — not the card edge. The active pill keeps the wash on permanently — one fills-ladder step deeper, neutral. The meta is always muted ink and surface-specific: the goal carries its status word, colour-coded by state (active --color-success, paused --color-warning, blocked --color-danger); the bash and sub-agent pills carry a pulsing dot and the running count, only while something runs (a quiet absence otherwise); the todos carry the done/total fraction. The plan pill joins the row only once plan mode is live server-side or a persisted plan exists — a merely armed directive stays in the composer's inline work-mode pill (its × cancels) and never reaches this bar, so every pill here reads as live server truth rather than local intent. Narrow panes wrap the row instead of clipping (the dock height observes); below the --p-bp-sm breakpoint the pills collapse to their icons — label and meta hide (the threshold is read from the token, never a hardcoded width).

Panel shell & motion: a pill toggles the shared work panel — the menu family material: 70% page background via color-mix over the shared --p-menu-backdrop blur (the frostier recipe, see §06 Glassmorphism exemption), a 0.5px --color-line edge, --radius-2xl, and the menu panel's --shadow-menu. The panel pops from the clicked pill along the trigger-corner motion tokens (--motion-panel-scale / --motion-panel-shift), and switching pills replays the pop from the newly clicked pill (the shell is keyed by panel kind); while it is open the dock raises to --z-dropdown so it clears the transcript's new-message pill, and every window-drag strip pauses so an outside press reaches the page and dismisses. The panel owns Escape while open (a document-capture handler guarded by the shared IME latch, so a candidate-cancelling Escape is never swallowed), and a scrolled body dissolves toward the head through the --menu-scroll-fade alpha mask instead of hard-clipping. Height is content-sized up to min(360px, 50vh); the filtered panels pin instead — see Filtering & sizing. The panel is chrome: nothing inside it is text-selectable, the head's filter chips included.

Panel head (WorkPanelHead.vue): every work panel head is one tab row — a leading icon at the pill's 1.5em glyph size, the panel title at full text colour, and a muted trailing meta (--color-text-muted) carrying that panel's one live number, joined by the row's --space-2 gap with no separator glyph: the goal's wall-clock time, the bash / sub-agent running count, the todos' done/total. Actions right-align in the head: the goal's pause / resume / cancel / close as quiet neutral IconButtons (cancel deliberately shares that neutral vocabulary), the plan's open-in-side-panel, dismiss-directive (shown only while the directive is live), and close, and the bash / sub-agent filter chips as a SegmentedControl. The plan head's meta carries the latest plan's review outcome. On touch these meet the 44px minimum (--touch-target-min) via the hover: none capability query — a width-only gate would miss tablets — and below 480px the head wraps so the actions take a full row.

Panel bodies: todos read as a quiet list — a green circle-check for done, a hollow ring for pending, an xs Spinner for in-progress. The goal's detail (full objective, completion criterion, rendered with the chat Markdown renderer) fills the body — no footer strip. Bash tasks are long rows (TasksPane.vue): a StatusDot while running, circle-check when done, a close glyph for failed and for cancelled (a user stop is neutral, never reported as a failure), the command as the meta line, and a bare duration that renders only when computable — never the raw protocol status word. Sub-agents form a card grid (SubagentGrid.vue) — an auto-fill grid (minmax --p-subagent-card-min) of cards at the --color-selected rung with --radius-lg corners; each card carries the task name, a stable session-wide number (creation order across the session's background sub-agents — unique even across swarms; once shown it sticks, so late-arriving history takes the next tail number), an optional prompt meta line one size down (--text-sm), an icon-led model · effort line and the status row a further size down (--text-xs) — the status row pairs the task-row state glyph with the localized label, plus a clock-led bare duration that renders only when computable; the full-bleed circle-check (drawn for the todo rows' ring family) is scaled onto the shared icon grid wherever it sits beside other glyphs (task rows, cards, filter chips). A failed row tints its name --color-danger; a cancelled one stays neutral. Rows hover with a rounded strip that grows by padding and a matching negative margin — the row metrics never shift. The row stop is danger-coloured; the card cancel reveals on hover and is always visible on touch as a --touch-target-min corner target. Every pane's empty state is centered and muted. State and time labels — the head meta included — set text-autospace: normal, the transcript's mixed CJK/numeric spacing rule, so durations like 9小时2分 breathe.

State vocabulary: two glyph families meet here by design — the activity dot (shared with the transcript's tool rows and swarm members) backs the task rows, the todo rows speak the default loader ring, and the sub-agent cards skip glyphs in favour of a localized text label:

',8)),t("table",Da,[a[89]||(a[89]=t("thead",null,[t("tr",null,[t("th",null,"Surface"),t("th",null,"State"),t("th",null,"Meaning"),t("th",null,"Glyph"),t("th",null,"Ink")])],-1)),t("tbody",null,[t("tr",null,[a[54]||(a[54]=t("td",null,"Bash rows",-1)),a[55]||(a[55]=t("td",{class:"tk"},"running",-1)),a[56]||(a[56]=t("td",null,"Task in flight",-1)),t("td",null,[s(d(u),{status:"running"}),a[53]||(a[53]=e(" pulsing dot",-1))]),a[57]||(a[57]=t("td",null,[t("code",null,"--color-accent")],-1))]),t("tr",null,[a[60]||(a[60]=t("td",null,null,-1)),a[61]||(a[61]=t("td",{class:"tk"},"done",-1)),a[62]||(a[62]=t("td",null,"Finished cleanly",-1)),t("td",null,[s(d(o),{name:"circle-check",size:"sm"}),a[58]||(a[58]=e()),a[59]||(a[59]=t("code",null,"circle-check",-1))]),a[63]||(a[63]=t("td",null,[t("code",null,"--color-success")],-1))]),t("tr",null,[a[66]||(a[66]=t("td",null,null,-1)),a[67]||(a[67]=t("td",{class:"tk"},"failed",-1)),a[68]||(a[68]=t("td",null,"Errored — the row's name tints to match",-1)),t("td",null,[s(d(o),{name:"close",size:"sm"}),a[64]||(a[64]=e()),a[65]||(a[65]=t("code",null,"close",-1))]),a[69]||(a[69]=t("td",null,[t("code",null,"--color-danger")],-1))]),t("tr",null,[a[72]||(a[72]=t("td",null,null,-1)),a[73]||(a[73]=t("td",{class:"tk"},"cancelled",-1)),a[74]||(a[74]=t("td",null,"User stop — neutral, never a failure",-1)),t("td",null,[s(d(o),{name:"close",size:"sm"}),a[70]||(a[70]=e()),a[71]||(a[71]=t("code",null,"close",-1))]),a[75]||(a[75]=t("td",null,[t("code",null,"--color-text-muted")],-1))]),t("tr",null,[a[77]||(a[77]=t("td",null,"Todo rows",-1)),a[78]||(a[78]=t("td",{class:"tk"},"in_progress",-1)),a[79]||(a[79]=t("td",null,"Being worked on",-1)),t("td",null,[t("span",Oa,[s(d(D),{size:"xs"})]),a[76]||(a[76]=e(" xs Spinner ring",-1))]),a[80]||(a[80]=t("td",null,[e("the row's own ink ("),t("code",null,"--color-text"),e(")")],-1))]),a[87]||(a[87]=t("tr",null,[t("td"),t("td",{class:"tk"},"pending"),t("td",null,"Not started"),t("td",null,[t("span",{class:"dw-ring"}),e(" hollow ring")]),t("td",null,[t("code",null,"--color-line-strong"),e(" stroke")])],-1)),t("tr",null,[a[83]||(a[83]=t("td",null,null,-1)),a[84]||(a[84]=t("td",{class:"tk"},"done",-1)),a[85]||(a[85]=t("td",null,"Completed",-1)),t("td",null,[s(d(o),{name:"circle-check",size:"md"}),a[81]||(a[81]=e()),a[82]||(a[82]=t("code",null,"circle-check",-1))]),a[86]||(a[86]=t("td",null,[t("code",null,"--color-success")],-1))]),a[88]||(a[88]=t("tr",null,[t("td",null,"Sub-agent cards"),t("td",{class:"tk"},"all"),t("td",null,"The task-row glyph plus a localized label — failed alone tints danger — with a clock-led bare duration trailing"),t("td",null,"glyph + label"),t("td",null,"muted / danger")],-1))])]),a[146]||(a[146]=c("

Filtering & sizing: the bash and sub-agent heads carry the same four icon-led filter chips — recent (clock; running + the five most recently finished), running (play), done (circle-check; every terminal state), all (list) — and both filtered panels pin to --p-dock-panel-h so filtering never resizes the panel; the body scrolls inside. When the head runs out of room the chips collapse into a dropdown menu (FilterControl.vue measures the head itself, so the switch follows the panel's own width, not the viewport; the menu teleports to <body> and anchors to the trigger, so the panel's clip and backdrop-filter never squeeze it); the head title never wraps and is never clipped — once the filter is a dropdown the head always fits. An empty pane names its filter (no completed tasks is not no tasks).

Opening & cancelling: clicking a row or card opens the task's detail in the right-side panel. Opening is gated: the overlay navigation button renders only when a stable agentId (on-demand transcript) or locally held output exists, so a REST-only cold-loaded row stays inert instead of opening an empty panel — and says so with the not-allowed cursor. Open and cancel are sibling controls (a full-cover overlay button, the stop IconButton floating above it): no nested interactives, and the stop action exists only while the task runs.

",2)),t("div",Ha,[a[100]||(a[100]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Work pills — one vocabulary, a live count or status where one exists")],-1)),t("div",Ra,[t("div",Va,[t("span",La,[s(d(o),{name:"target",size:"md"}),a[90]||(a[90]=t("span",null,"Goal",-1)),a[91]||(a[91]=e()),a[92]||(a[92]=t("span",{class:"dw-live"},"Active",-1))]),t("span",Na,[s(d(o),{name:"terminal",size:"md"}),a[93]||(a[93]=t("span",null,"Bash",-1))]),t("span",Wa,[s(d(o),{name:"sparkles",size:"md"}),a[95]||(a[95]=t("span",null,"Background Agent",-1)),a[96]||(a[96]=e()),t("span",Pa,[s(d(u),{status:"running"}),a[94]||(a[94]=e("3",-1))])]),t("span",Ua,[s(d(o),{name:"list",size:"md"}),a[97]||(a[97]=t("span",null,"Progress",-1)),a[98]||(a[98]=e()),a[99]||(a[99]=t("span",{class:"dw-count"},"3/7",-1))])])])]),t("div",Fa,[a[141]||(a[141]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Work panels — two-tone head, filter chips, rows & card grid")],-1)),t("div",ja,[t("div",Ga,[t("div",Ka,[t("span",Ja,[s(d(o),{name:"terminal",size:"md"}),a[101]||(a[101]=e("Bash ",-1)),a[102]||(a[102]=t("span",{class:"dw-meta"},"1 running",-1))]),t("span",Ya,[t("span",Qa,[s(d(o),{name:"clock",size:"sm"}),a[103]||(a[103]=e("Recent",-1))]),t("span",Xa,[s(d(o),{name:"play",size:"sm"}),a[104]||(a[104]=e("Running",-1))]),t("span",Za,[s(d(o),{name:"circle-check",size:"sm"}),a[105]||(a[105]=e("Done",-1))]),t("span",$a,[s(d(o),{name:"list",size:"sm"}),a[106]||(a[106]=e("All",-1))])])]),t("div",_a,[t("div",at,[s(d(u),{status:"running"}),a[107]||(a[107]=t("span",{class:"nm"},"pnpm test -- --watch",-1)),a[108]||(a[108]=t("span",{class:"tm"},"0:42",-1))]),t("div",tt,[s(d(o),{name:"circle-check",size:"sm",class:"ok"}),a[109]||(a[109]=t("span",{class:"nm"},"pnpm run build",-1)),a[110]||(a[110]=t("span",{class:"tm"},"3m12s",-1))]),t("div",et,[s(d(o),{name:"close",size:"sm"}),a[111]||(a[111]=t("span",{class:"nm"},"pnpm lint",-1)),a[112]||(a[112]=t("span",{class:"tm"},"1m05s",-1))]),t("div",st,[s(d(o),{name:"close",size:"sm"}),a[113]||(a[113]=t("span",{class:"nm"},"node scripts/migrate.mjs",-1)),a[114]||(a[114]=t("span",{class:"tm"},"0:18",-1))])])]),t("div",dt,[t("div",ot,[t("span",ct,[s(d(o),{name:"sparkles",size:"md"}),a[115]||(a[115]=e("Background Agent ",-1)),a[116]||(a[116]=t("span",{class:"dw-meta"},"1 running",-1))]),t("span",it,[t("span",nt,[s(d(o),{name:"clock",size:"sm"}),a[117]||(a[117]=e("Recent",-1))]),t("span",lt,[s(d(o),{name:"play",size:"sm"}),a[118]||(a[118]=e("Running",-1))]),t("span",rt,[s(d(o),{name:"circle-check",size:"sm"}),a[119]||(a[119]=e("Done",-1))]),t("span",vt,[s(d(o),{name:"list",size:"sm"}),a[120]||(a[120]=e("All",-1))])])]),t("div",ft,[t("div",ht,[a[124]||(a[124]=t("div",{class:"ct"},[t("span",{class:"nu"},"01"),t("span",{class:"nm"},"Explore the auth module")],-1)),a[125]||(a[125]=t("div",{class:"ds"},"Map every callsite of the legacy token refresh and report findings",-1)),t("div",pt,[t("div",ut,[s(d(o),{name:"robot",size:"sm"}),a[121]||(a[121]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",gt,[t("span",mt,[s(d(u),{status:"running"}),a[122]||(a[122]=e("Running",-1))]),t("span",bt,[s(d(o),{name:"clock",size:"sm"}),a[123]||(a[123]=e("0:42",-1))])])])]),t("div",wt,[a[129]||(a[129]=t("div",{class:"ct"},[t("span",{class:"nu"},"02"),t("span",{class:"nm"},"Draft the release notes")],-1)),a[130]||(a[130]=t("div",{class:"ds"},"Summarize the merged PRs since the last tag into user-facing notes",-1)),t("div",yt,[t("div",kt,[s(d(o),{name:"robot",size:"sm"}),a[126]||(a[126]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",xt,[t("span",Tt,[s(d(o),{name:"circle-check",size:"sm",class:"ok"}),a[127]||(a[127]=e("Done",-1))]),t("span",St,[s(d(o),{name:"clock",size:"sm"}),a[128]||(a[128]=e("3m12s",-1))])])])]),t("div",Ct,[a[134]||(a[134]=t("div",{class:"ct"},[t("span",{class:"nu"},"03"),t("span",{class:"nm"},"Run the integration tests")],-1)),a[135]||(a[135]=t("div",{class:"ds"},"pnpm test against the staging daemon",-1)),t("div",zt,[t("div",qt,[s(d(o),{name:"robot",size:"sm"}),a[131]||(a[131]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",At,[t("span",Bt,[s(d(o),{name:"close",size:"sm"}),a[132]||(a[132]=e("Failed",-1))]),t("span",Mt,[s(d(o),{name:"clock",size:"sm"}),a[133]||(a[133]=e("1m05s",-1))])])])]),t("div",It,[a[139]||(a[139]=t("div",{class:"ct"},[t("span",{class:"nu"},"04"),t("span",{class:"nm"},"Migrate the config files")],-1)),a[140]||(a[140]=t("div",{class:"ds"},"Rewrite the workspace configs to the new schema",-1)),t("div",Et,[t("div",Dt,[s(d(o),{name:"robot",size:"sm"}),a[136]||(a[136]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",Ot,[t("span",Ht,[s(d(o),{name:"close",size:"sm"}),a[137]||(a[137]=e("Cancelled",-1))]),t("span",Rt,[s(d(o),{name:"clock",size:"sm"}),a[138]||(a[138]=e("0:18",-1))])])])])])])])]),a[147]||(a[147]=t("h3",{class:"sub"},"Responsive",-1)),a[148]||(a[148]=t("p",null,[e("See §02 "),t("code",null,"--p-bp-sm"),e(" for the breakpoint. This section only gives mobile-adaptation pointers for the chat interface; a full mobile mockup is out of scope for this spec.")],-1)),a[149]||(a[149]=t("div",{class:"callout info"},[t("span",{class:"ico"},"i"),t("div",null," At ≤640px: dialogs anchor to the bottom as Sheets (xl top radius, top drag handle), the sidebar collapses into an expandable drawer, the Composer toolbar is allowed to wrap, and the chat reading column drops its max-width to fill the screen. ")],-1))]),a[151]||(a[151]=c('
05

Rich Text Messages

Structured references travel as plain text on the wire and render as pills at both ends: the composer's editing surface and the rendered message stream share one pill vocabulary, so what you type is what the message shows. This section is the category spec — every future rich-text element (marks, embeds, interactive chips) joins it here.

Mention pill

The mention is the first rich-text element. It exists in two synchronized forms: an atom inside the desktop composer's ProseMirror document, and a pill in the message stream — assistant Markdown decorates local links with the same classes, and user/queue bubbles (verbatim wire text, never Markdown) render through the declarative ComposerText component. Both are the same mark: not a filled chip — no background, no vertical padding — just body text in a heavier weight (--weight-ui-strong) on a lighter ink (--color-text-muted), so the baseline stays flush with the surrounding text; a 2px horizontal inset (padding-inline: var(--space-05)) supplies the CJK/Latin autospacing that can't cross element boundaries and sets the mention apart from plain text; a 13px muted kind glyph leads, and the label is the basename — never the full path, which lives on the tooltip. Hover deepens the ink (glyph included) toward --color-text on every surface; in the message stream the clickable kinds (file, skill) also take the pointer cursor and the link underline, while the composer keeps pure editing semantics — I-beam, no underline, a click just places the caret. The shared classes live in app-ui's global sheet; the kind → glyph mapping is single-sourced in app-composer (mentionIcons) and also drives the mention menu rows, so a file looks identical in the menu, the editor, and the sent bubble. Copying from a bubble re-serializes the selection back to the wire text — pills carry their full attrs in data-mention-*, so a copy/paste round trip restores the link instead of a truncated basename.

Kinds and wire forms (serialization is a Markdown link, so the daemon payload stays plain text and the TUI needs nothing new):

KindGlyphWire formClick (in messages)
Filesingle folded-corner file glyph for every file (no per-extension variants)[name](path) — the dest is canonically encoded per path segment (every non-unreserved ASCII character → %XX; non-ASCII stays literal, so a CJK path reads as itself — one decodeURIComponent restores it on every surface)opens the file preview
Folderfolder glyph[name](path/) — trailing slash marks the kind (dest %%25 as above)inert (no target yet)
Skillsparkling glyph[name](kimi-code://skill/<name>) — the app's deep-link protocolopens the skill's SKILL.md in the preview panel

Hover tooltip: one document-level singleton (mentionTooltip) serves every pill — composer NodeViews, ComposerText-rendered bubbles, and Markdown anchors are all raw DOM a Vue wrapper can't reach, so it delegates on document mouseover into a single shared bubble. The bubble keeps the design-system tooltip's dark skin but is interactive. File and folder pills show the full path, wrapping anywhere within a fixed max width: every / separator muted, the basename bold (--weight-semibold). Skill pills show a card — the name with an open button at the right (opens the skill's SKILL.md in the preview panel; the path rides the wire skill descriptor through AppSkill.path), the description below, clamped to four lines; an unresolvable skill degrades to the name alone. Timing mirrors TooltipBubble (150ms show delay, top placement with flip, viewport clamping) and the bubble stays open while hovered so the button is reachable; native title tooltips are removed wherever a pill appears. The bubble is a documented structural exception to the component-primitive rule (like the dock overlay): its anchors are ProseMirror NodeViews and pillified spans a Vue wrapper can't reach, so the open/copy buttons re-implement the Button primitive's contract (size, hover, :focus-visible ring) by hand instead of importing it.

Edge cases: labels cap at 32 chars — a longer name takes a middle ellipsis that keeps the head of the base name and the whole extension (the full name stays in the data attributes, the full path on the tooltip). A pill whose target was deleted after the fact: hovering fires a one-byte existence probe (an inline spinner sits at the tail of the tooltip's path text while in flight), and a definitive not-found fades the pill and strikes it through — in messages and in the composer alike. Clicks are never gated on the verdict (the preview's own not-found state is the final answer); only confirmed-existing verdicts are cached, scoped to the session, so a recreated file recovers on the next hover and a flaky daemon can never strike a pill by mistake.

Behavior contract: a bare @ opens the menu instantly with the workspace root listing (Esc dismisses); with a query, the menu is ONE merged list — no sections — ranked by match strength: exact skill > prefix skill > strong file hits (substring-or-better on the basename; a query containing / matches path segments and is always strong) > substring skill > subsequence skill (tokens of 3+ chars, separator-bridging — larkim matches lark-im) > weak file hits (a bare subsequence), with the search firing per keystroke (rg-backed fs:suggest, no debounce; older daemons fall back to fs:search). An in-flight search never hides the current rows (a corner spinner marks it; superseded rows dim as stale and stay unselectable until fresh results land). File and skill rows highlight the matched characters with ink emphasis only — semibold strong ink in the name, body ink in the muted directory, never a background, so the row rhythm never shifts. The default highlight is simply the top row of the ranking — skill rows included — and follows its row by identity across async landings. Full-width from IMEs triggers identically. Insertion replaces the @token and adds a separating trailing space; the pill is one atom — Backspace removes it whole, and a zero-width caret anchor keeps the caret on the pill's line when it ends a paragraph. Drafts, history recall, and queue reloads revive pills from their link form on load, and pasting mention-link text (e.g. a copied pill) revives them too — the serializer round-trips both ways. Skill activation: sending a message with exactly one skill pill activates that skill via the existing channel (the pill form of /skill:<name>, the full text — the pill traveling as its mention link — becomes the args, attachments ride along), and the sent bubble shows the original message verbatim with the pill revived in place (a slash-typed activation, whose bare args carry no pill, keeps the identity card instead); two or more skill pills degrade to plain references, because each activation is its own turn.

Implementation map: schema/serialization/offset mapping in app-composer's composerTextDoc (pure, node-tested); the editor surface in composerEditor; user/queue bubbles render via app-composer's ComposerText (one segment pass, declarative tree — no post-processing); assistant-side classification (classifyMentionHref) and decoration in app-markdown's Markdown.vue link pass; hover + skill-click routing in app-composer's mentionTooltip singleton, wired per app shell. When editing these, keep the two surfaces in lockstep — a pill that serializes one way in the composer must read the same way in a message.

06

Theming

Kimi Web uses one unified theme: the same components, fonts, radii, shadows, and surfaces — theming only swaps color values. Every semantic color token ships a light value in :root and a dark override in the data-color-scheme blocks; the semantic status colors (success / warning / danger) are independent palettes, one set each for light / dark.

Accent

The app has one accent: the brand blue (--color-accent, #1783ff light / #58a6ff dark). Use it sparingly — the accent is reserved for the primary action, focus rings, links, and active marks (current tab, toggles); large fills always come from the neutral surface tokens. Selection that means "where I am" (sidebar rows, list pickers) is deliberately NOT accent-tinted — it uses --color-selected so it reads as location, not as an action.

Light / dark mode

Each semantic token ships a light value in :root and a dark override in the two data-color-scheme blocks (explicit choice, or following the OS preference via prefers-color-scheme). Switching light / dark simply swaps between these two sets of derived tokens, with zero structural change.

Benefits of one theme: components, fonts, radii, and surfaces are consistent site-wide; a single accent keeps the brand identity unambiguous; light / dark mode works out of the box; semantic status colors are independently tunable.
07

Style Rules

Anti-pattern rules that all UI code must follow. These rules are also the basis of the check-style detection script, one-to-one with a warning.

Rule IDWhat it detectsAction
no-gradient-textgradient text / gradient backgroundForbidden
no-glassmorphismbackdrop-filter: blur (TopBar sticky nav bar and menu surfaces via --p-menu-backdrop are the exceptions)TopBar + menus exempt
no-color-glowcolored / large-radius box-shadow glowForbidden
no-emoji-iconusing emoji as a functional icon (no exceptions). Emoji inside user content — session titles, messages — is not chrome and is out of scope (see §07 Session row's emoji icon)Forbidden
no-hardcoded-hexunregistered hex color inside a component <style>Warning
no-hardcoded-fonthard-coded font-family in a component (e.g. 'Inter') instead of var(--font-ui)Warning
radius-from-scaleradius value not in {4,6,8,12,16,20,999}Warning
z-from-scalez-index using an unregistered large numberWarning
weight-from-scalefont-weight not in {400,500}Warning

State matrix

Every interactive primitive should define the following states where applicable; missing ones are flagged by the style rules. focus-visible always uses --p-focus-ring (appears only on keyboard focus, see §08); disabled is uniformly opacity:.5.

StateButtonInputCardMenu itemSwitch
default
hover
active / pressed
focus-visible
disabled
loading
selected / active
error
readonly

Chat working indicator

The chat working state ("prompt sent, turn unfinished") is a brand signature of Kimi Web, rendered uniformly by the WorkingIndicator component: the 小蓝 mascot plus a phase label — "Requesting…" until the assistant's reply starts, "Working…" once it is streaming. All other loading states (including ActivityNotice) use the plain Spinner.

Glassmorphism exemption

backdrop-filter: blur is banned site-wide, with two exceptions: the .frost variant of TopBar — only in the one place of the "sticky navigation bar", used to stay readable over scrolling content — and the floating menu surfaces: Menu.vue, the Select listbox and the composer dropdowns use the --color-menu-bg token (a 95% surface), while the autocomplete family — slash/mention popups and the dock work panel — deliberately runs a frostier recipe of its own: 70% page background (single-sourced as --color-menu-bg-frost) over the shared --p-menu-backdrop blur, which stays the single-sourced blur token across all of them. The dock's work surfaces — the work panel and its pills, persistent over the scrolling transcript — ride that same frostier recipe (specified per-surface in §04 (Dock · work pills & panels)) rather than a bespoke one. No other component (card, dialog, Toast, panel) may use glassmorphism; violations are flagged under no-glassmorphism, and menu blur with ad-hoc values (anything but the token) is flagged too.
08

App Shell & Sidebar

The structural spec for the app shell (three-column grid + right preview panel) and the left session sidebar. These are business-agnostic "skeletons" — components, fonts, radii, and surfaces are reused from §02 / §03, but layout and alignment have their own conventions.

Layout grid

On web it is a single-row 5-track grid: the sidebar and the right panel each occupy a permanent auto track, with the conversation column in the middle; two 0-width tracks are for the ResizeHandles. (The desktop app adds a second row for its terminal panel — desktop-only, see below.)

App.vue · .app
grid-template-columns: auto 0 minmax(0, 1fr) 0 auto;\n    /*         sidebar ↑    ↑handle  ↑conversation  ↑handle ↑right panel (auto) */
TokenValueUsage
sidebar width270px default (adjustable)expanded sidebar width, changed by dragging the ResizeHandle; should approach §02's --p-sidebar-w (264px)
--preview-w460pxwidth of the right preview panel when open
--panel-head-h48pxunified height for all right panel heads + the conversation column head; both use a 0.5px bottom hairline
--p-bp-sm640px≤640 switches to a mobile single column (top bar + conversation), no sidebar / handle / right panel
  • The right panel track exists permanently, with its width toggling between 0 ↔ var(--preview-w) and no transition — animating a grid track would relayout the whole app grid every frame (when open it squeezes the conversation column, rather than switching templates).
  • The sidebar collapses SYMMETRICALLY to the right panel: its container width animates to 0 while the content keeps its fixed width anchored to the right edge (clipped, sliding out left — no reflow, hairline stays on the clipped content). No rail remains. The collapse control differs by platform: on macOS desktop the toggle is a single resident floating IconButton pinned beside the traffic lights (rendered in both states, only the glyph swaps — the sidebar slides underneath it, never moves or flashes); on Windows / web the collapse button lives inside the sidebar header (right-aligned), and a floating expand button appears at the top-left only while collapsed. The conversation header uses a 0.5px bottom hairline and pads left in step with the transition while collapsed.
  • All grid children must have min-height:0; min-width:0, so only the inner scroll containers scroll and the page itself does not scroll.

Sidebar alignment system (--sb-*)

All sidebar rows (group head, session row, New chat, search, and Settings buttons) share 5 custom properties. Their 16px icon slots and --sb-gap place every label on the same x-axis as the workspace name.

TokenValueUsage
--sb-inset12pxrow box (hover/selected pill) inset from the sidebar edges — matches the brand header's 12px padding
--sb-pad-x20pxcontent start x (= --sb-inset + 8px row padding)
--sb-gutter16pxleading icon slot width — matches the workspace folder icon so the session title aligns under the workspace name
--sb-gap8pxgap between the icon slot and the text
--sb-action-insetcalc((max(--ui-font-size-sm × --leading-tight, --p-ic-md) + 2 × --space-2 − --icon-button-sm) / 2) ≈ 3pxtrailing action buttons sit this far inside the row box's right edge — exactly the buttons' vertical inset: half the font-driven row height's slack over the fixed IconButton sm box. The row height is the title line box floored at the group-head / directory rows' 16px folder icon, plus the vertical row padding, so the inset tracks the user's font scale without dropping below the icon-floored rows' slack; the session row's hover cluster, the group head's ⋯/+, and the section labels' buttons all share this one right edge
i
The session title's starting x = --sb-pad-x + --sb-gutter + --sb-gap. The group head has a folder icon and the session row has a status slot; both icons are the same width and position, so the titles align naturally. On the trailing side, the list's scrollbar is an overlay thumb that reserves no layout space: the native bar is hidden outright (.sessions and the pinned rows' scroller set scrollbar-width: none + ::-webkit-scrollbar display:none) and a floating thumb element follows the scroll position — hidden at rest, revealed while the list is hovered or scrolling, fading back out once idle, and draggable since the thumb is the only scroll affordance (useOverlayScrollbar in @moonshot-ai/app-client, the same contract as the composer menus' overlay thumbs; the thumb floats over the right padding strip, 4px in the text-derived 12% fill / 25% on hover, with an invisible wider drag strip). A layout scrollbar — even the thin 4px one these lists used to carry — reserves width on the right whenever it shows, so the rows' right edge sat one track width further in than the left edge. With the overlay the rows' left/right insets stay symmetric whether or not the list scrolls, and the section labels' right padding is simply --sb-action-inset: every trailing button — section-label buttons included — stays on the same right line, with nothing measured or hard-coded.

Sidebar structure

The sidebar from top to bottom: brand header → action group → pinned head (pinned section + "Workspaces" label) → scrolling grouped list (workspace head + session rows) → user-menu footer. New chat and Search are direct sibling controls in the same grid container; the optional new-workspace action shares the first row, while Search spans the next row. A 4px gap keeps Search clear of the scroll boundary. The pinned head sits OUTSIDE the scroll container (the action-group / footer pattern — never position: sticky, which would need an opaque plate over the frosted tint), so the pinned sessions and the "Workspaces" label stay put while the workspace groups scroll beneath; the pinned section is collapsible (a chevron on its label, revealed on hover/focus and kept visible while folded; state persisted) so a long pinned set can't eat the sidebar, and it re-expands when a new session is pinned. Both pinned edges use three light near, middle and far fades across --p-sidebar-seam-h (13px), entering over 260ms only while more session content exists beyond that edge — the top seam lives at the pinned head's bottom border. The footer seam is a 0.5px hairline. Controls reuse the §03 primitives as much as possible. The sidebar sits on --color-sidebar-bg (one step off --color-bg: warm off-white just under white in light, one step BELOW the page in dark — the session column reads as its own plane, and with dark elevation = lighter the chrome never sits brighter than the conversation pane; the hairline still separates it from the pane). Vertical rhythm: the brand header keeps 12px padding (on macOS desktop the left padding grows to 80px to clear the traffic lights); rows inside the action group stack flush (0 gap, same rhythm as the list rows); adjacent groups are separated by 12px. The search glyph has a -0.5px optical correction to align its visual centre with the label. Row hover uses --sb-hover (= the global --color-hover wash); the selected row uses the lighter --sb-selected wash derived from --color-selected — On macOS desktop the sidebar is instead frosted: the window carries a native NSVisualEffectView ('menu' vibrancy, following the in-app scheme via the nativeTheme mirror, its state pinned to active — the focused, translucent rendering that lets the desktop read through, with no active/inactive drift) and the sidebar column drops --color-sidebar-bg for a single translucent --color-sidebar-tint wash that presses the see-through material just a whisper — a shade darker in dark (rgba(0,0,0,0.12)), a shade brighter in light (rgba(255,255,255,0.2)) — so the sidebar ink stays legible while the tone follows the wallpaper, with header and footer staying transparent so the tint reads as one uniform pane; the root chain (html/body/#app/.app) stays unpainted only under the macos-desktop + vibrancy flags — the latter is the Settings → Appearance accessibility switch (default on; persisted main-side so the window is created with the right material, and live-applied on toggle): off repaints the root chain and the sidebar falls back to opaque --color-sidebar-bg, while the traffic-light layout keeps keying off macos-desktop alone — while the conversation pane, chat header and right preview keep their own opaque surfaces. The list's hover-icon clusters (session-row kebab, group-head actions) paint NOTHING there — no plate, no wash, no blur (real backdrop blur does not even render over this window: Chromium's backdrop sampler returns a flat wash above the transparent BrowserWindow + vibrancy view). Instead the row's title/name dissolves before it ever reaches the buttons: a two-stage mask-image fade — a subtle 16px dissolve at rest, extending over the cluster zone only while the actions are revealed (row hover / keyboard focus / menu open): 34px on session rows (the pin+kebab cluster overhangs the title by ≈25px), 68px on group heads (the floating cluster is ≈60px wide). The fade is zone-based, so short rows render untouched, and text-overflow becomes clip so a long tail dissolves instead of dotting.

BlockUseNote
Brand headerlogo + name + collapse IconButton (right-aligned)on Windows / web the brand is left and the collapse IconButton sm is right-aligned inside the header; the dev-only backend version/address pill uses the UI font, not monospace; the logo is animated (a blinking eye). On macOS desktop the header is a bare drag strip (brand hidden, traffic lights + resident floating toggle over it)
New chatfull-width left-aligned button (custom)500-weight label; same rhythm as the session rows in the list (left-aligned, hover = --sb-hover). Do not use Button (centered, breaks the rhythm)
Searchbare search row (custom)500-weight label; no border, hover/focus shows the faint --color-hover wash; icon + label, with the Kbd keycaps (⌘K / Ctrl K) pushed to the trailing edge — label and shortcut are justified apart. Do not use Input (the 38px bordered version is too heavy). It is a direct sibling of New chat in the action group
Section label.p-section-labeluppercase muted small titles like "Workspaces", using --weight-section-label (600)
Pinned headfixed block above the scroll container (.sessions-head): the pinned section (PinnedSessionList.vue) + the "Workspaces" section labelstays put while the workspace groups scroll; owns the top scroll-linked seam (hairline + fade, only while scrolled). Pinned rows render in pure recency order (updatedAt desc — no manual ordering, no attention tiering): drag a session row in to pin it (the drop spot carries no position meaning), drag a pinned row out to unpin. The pinned section folds via its label chevron (persisted, kimi-web.pinned-collapsed) and re-expands only on an explicit pin (never on load backfill); the expanded rows are capped (40vh at rest) with their own scroll so a long pinned set can't push the list or footer out of view. Once the pinned content exceeds a few rows, a horizontal ResizeHandle twin renders between the rows and the section label (a shorter set keeps its natural height and no handle): dragging it re-caps the rows (two rows min; the max is 60% of the viewport, narrowed further on short windows so the list below always keeps ~3 rows — both bounds measured off the rendered rows, so they track the font-scale setting — and a gesture never targets positions past the content's natural height so the separator always tracks what renders; 40vh default; persisted per device, kimi-web.sidebar-pinned-height) and the list below takes what remains — same 4px strip / centred 2px bar, neutral f2/f3 ramp, row-resize with directional hints at the limits, useResizable axis: 'y' with imperative height writes, and the §08 separator keyboard model (↑/↓). While the rows scroll internally, their edges carry the session list's scroll-linked seam language: a --p-sidebar-seam-h three-layer text-tint veil plus a 0.5px --line hairline at the content edge, at the top once scrolled and at the bottom while more rows remain — absolutely positioned (no layout shift), --duration-slow opacity fade, below the resize handle so its hover/drag bar always wins. The rows scroller owns the same inset as .sessions (the wrapper stretches to the full column width), so the rows' right edge and the scrollbar track land exactly where the session list's do
Workspace head / session rowsee next two sectionsshare --sb-* alignment
User-menu footeraccount area (components/UserMenu.vue) opening an upward §03 menupinned row under the session list, separated by a 0.5px --line hairline; trigger keeps the same list-style family as New chat (24px round avatar + nickname when signed in, user icon + sign-in hint otherwise). The menu box follows the trigger's left edge and width (ResizeObserver-tracked, so it survives a sidebar resize) and is teleported to body because the column's container-type would capture position:fixed. Rows: plan usage / theme / language are macOS-style hover flyout submenus — the parent row carries the module icon, a faint current value and a fixed chevron-right, and hovering (or moving focus to the parent row, or pressing Enter / Space / → on it) opens a teleported panel anchored to the parent menu's right edge (content-adaptive width floored by the menu's own min-width and capped by the viewport margin on the side it opens (usage reset hints ellipsize only when the window is genuinely too narrow); flips left near the viewport edge) with a 250ms hover-intent close grace; the usage panel shows weekly + 5h rows (used-percent values via settings.planUsage.usedPct, with severity colours), while the theme (three schemes) and language (two locales) panels move the check to the picked option without closing the menu — then the upgrade entry below the top plan level, settings (with an always-visible Kbd keycap shortcut hint on desktop) and a confirming sign-out; all menu icons come from the Kimi set, and the whole menu (flyouts included) runs at the §03 default density — same row inset, label size and separator rhythm as every other menu; the usage flyout's custom rows read the same --menu-item-padding-* inset tokens as the primitive — each a two-column grid (label + end-justified used-percent on line one, the reset hint one rung down at --text-xs spanning both columns on line two so it is never squeezed by the top line's split), stacked at the adjacent-menu-item rhythm (2 × --menu-item-padding-block). On macOS desktop the trigger's bottom-left corner rounds at --radius-window-chip — concentric with the window's corner (the window rounds at the measured 14px --radius-window, and the footer's --sb-inset row inset and --space-2 block padding both resolve to 8px, so the chip hugs 8px from the window's left and bottom edges and 14px − 8px lands exactly on --radius-sm); web and other platforms have no rounded container corner there and keep the uniform --radius-sm
!
Why New chat / search / inline rename don't use Button / Input: they are "list-style" controls (full-width, left-aligned, compact, borderless), while Button is centered and Input is a 38px bordered control — forcing them in would break the sidebar's visual density and alignment. This is an intentional custom exception, not an oversight.
i
实验室 multi-tab sidebar toggle (Settings → 实验室, kimi-web.sidebar-multi-tab, default OFF) forks the sidebar into two forms. OFF = the legacy single session list: no 进行中/已完成/工作空间 tabs (statusTab pinned to open, tab shortcuts inert), no session-admin entries (the 列表管理 menu item hides and the workspace home itself falls back to the classic 新建会话 doodle hero — no workspace head, no recent-sessions list), the row hover action + context menu and the chat-header ⋯ menu read 归档 with the archive glyph (no success-hover variant, the header's Done pill + reopen button hide), and the archive ActionToast is the legacy «撤销 · 或到 · 设置 · 查看已归档的会话» linking to Settings → Archived. ON = the status-tabs form documented in this section (tabs, session admin page, the complete/reopen relabel, «已完成 · 撤销» toast). The preference is an app-core singleton (useSidebarTabs) consumed directly by Sidebar / SessionRow / ConversationPane / App.vue — no prop threading.

Session row

A session row is an inset rounded pill, structured as: status slot → title → time → attention Badge → hover actions (pin / archive).

PartRule
Containerpadding: 8px 8px inside the list's --sb-inset gutter, radius-sm; no fixed/min height — row height is font-driven (title line-height: --leading-tight, ≈16px) → ≈32px total, the sidebar-wide row rhythm. The hover actions are absolutely positioned so they never force the row taller (no hover jitter). hover = --sb-hover (the global --color-hover wash); active = --sb-selected (75% of the global selected wash) — neutral, no accent tint, no border, no weight change
Status slot (lead)fixed --sb-gutter width; running = Spinner sm, otherwise unread = 7px accent dot; empty while an attention Badge owns the row — one status at a time, decided by the shared SessionDisplayStatus enum (app-core sessionDisplayStatus.ts: approval › question › running › aborted › unread)
Titleflex:1 with truncation and user-select:none; double-click enters inline rename (compact input, not Input), whose text remains selectable
Emoji iconthe session icon is the title's LEADING emoji cluster (app-core splitSessionEmoji — no icon field; every client renders the title as-is). The emoji is an ordinary title character — no decoration at rest or on hover (it stays a <button> for a11y), and clicking it opens SessionEmojiPicker — a Menu-shelled panel (bare list-style search row → scrollable sections: Recently used persisted in localStorage (cap 8) + the grouped emoji dataset, with remove/random as MenuItems in the footer; a query swaps the sections for keyword-search results), teleported + fixed + --z-dropdown, popping from the trigger corner like the right-click menu. The menu's "Set Emoji…" opens the same picker and is the discoverable path. Inline rename edits the whole title — the emoji is an ordinary character in the input
Timemono xs, fg-faint; yields to the hover actions on hover
Attention BadgeBadge sm: info (needs answer) / warning (needs approval) / danger (aborted)
Hover actionsIconButton sm × 2 — pin + archive — cross-faded over the time on row hover (no kebab button). Right-clicking the row opens the full menu (copy ID / rename / emoji / fork / export / pin / archive + timestamp) anchored to the cursor, except over the inline rename input, where the native text-editing menu stays
Flat-style variant (flat list + pinned section)the sidebar's flat list rows AND — always, regardless of view mode — the pinned section's rows differ from the grouped row in three ways (all keyed off the facade projecting cwdLabel): ① no leading status slot — the title is left-aligned at the row's content edge; ② a second line under the title: folder-closed icon sm + the cwd's final directory name (- when the session has no cwd), xs faint like the time — except the icon, which takes --color-text-muted (one rung stronger, the same optical compensation as the group head's folder; the open-folder glyph's thin back-flap washed out at 14px) — rest-width tail mask fade; when the session has an associated PR (v2 git domain), a small tag (git-pull-request icon + #number, 2xs medium on a soft ground with a hairline edge and radius-sm corners — a mini §03 Badge) sits at the line's right edge, state-colored the GitHub way (open = --color-success-soft ground + --color-success text, merged = --color-done-soft + --color-done purple, closed = neutral sunken) and opens the PR on click; ③ the first line's right side shows status — attention Badges anchored to the row's right edge, running Spinner, unread dot — INSTEAD of the time, which only renders when there is nothing to report (the Spinner yields to the attention pills: a session waiting for approval/answer never shows both); on hover the actions cross-fade IN as the whole status cluster fades OUT — pills and pin/archive never co-exist (grouped rows keep pills visible on hover). Height stays font-driven — the pill just grows the line. Grouped rows never set cwdLabel and keep the classic structure. The flat ↔ grouped switch lives in a dropdown on the SESSIONS section label (fixed list-settings icon + hover tooltip; the menu opens with a muted group label, per-view icons, and the current view checked at the row's right edge; mode persisted per device)
Archiveno confirm — the hover archive button / menu item archives immediately, then App.vue shows the §03 ActionToast (top-center) with Undo (restores the session) and Settings (opens the archived list)

Workspace group

The group head and session rows share --sb-*: folder icon (open/closed) → name, with the kebab and "+" revealed on hover.

  • The folder icon leads the row (switching icons between open and closed states) with the plain --sb-gap before the name — it does not pad out the --sb-gutter slot.
  • The name uses 500 weight with muted color (--color-text-muted, one step lighter than session titles), so group heads remain clear without competing with list content. No path subtitle; hovering the name shows the full root path in a Tooltip.
  • The kebab (menu) and "+" (new chat in this workspace) both use IconButton sm inside a floating actions layer anchored to the row's right edge — no reserved layout space, so the name uses the full row width when idle. Shown on hover, keyboard focus, or while the menu is open; the layer backs itself with the sidebar surface (container background) plus the row hover wash (an ::after shown only while the row is hovered), so its color exactly equals the row's current background and the overlapped name tail doesn't bleed through (hidden via opacity:0, staying in the tab order). On macOS desktop the layer paints nothing at all — the name's mask-image fade (see the sidebar section above) dissolves the tail before it reaches the buttons
  • The group is collapsible; when collapsed its session list is hidden.
  • A group with no sessions is NOT rendered in the 进行中 tab of the status-tabs form (a cleanup leaves no pile of empty folders; the 工作空间 tab is the directory for creating sessions) — EXCEPT the active workspace's group, which stays so the draft state below keeps its head fill. The legacy single-list form (multi-tab toggle OFF) has no 工作空间 tab to fall back on, so it keeps EVERY group, empty ones included — archiving a workspace's last session must not make the workspace unreachable there. The Done tab's groups filter the same way. When nothing is open at all (and no pinned sessions), the tab shows the "还没有进行中的会话" empty line.
  • While the active workspace has no session selected (the draft state — e.g. right after adding the workspace, or after New chat), the group head carries the same neutral --sb-selected fill as a selected session row (selection reads as "where I am"; the fill wins over hover). Once a session is selected or created, the fill moves to that session row.

Show more & collapse

The "expand / collapse" controls at the bottom of each workspace group are compact list controls (same family as search, New chat, inline rename — not Buttons) sharing one row: expand (chevron-down) first, collapse (chevron-up) after a faint middot when both are present. Expanding reveals the next batch of sessions, fetching the next page from the server only when the locally loaded rows can't cover it — the control never exposes whether a reveal came from memory or the network.

PartRule
Rowa single flex row holding the controls, all content-width — hover washes just the button as a snug pill, never the full row. Font-driven height (≈32px like a session row), radius-sm; hover = --sb-hover (no text recolor); :focus-visible uses --p-focus-ring
Chevronsm (down = expand, up = collapse); the row indents by --sb-gutter + --sb-gap so the first button's chevron starts exactly at the session-title x, lining the control's leading edge up with the titles above
Labelfont-ui, text-xs, --color-text-muted; truncated
Separatorfaint middot (--color-text-faint) with --space-1 side margins, rendered only when both controls are present
Behavioreach group keeps a display cap starting at the first page; "Show more" steps it up by one batch (5) and fetches the next page only when the loaded rows fall short (busy = "Loading…", disabled); "Show less" resets the cap to the first page (view-layer trim — data is kept, no refetch). "Show more" exists while undisplayed loaded rows remain or the server has more; "Show less" appears once past the first page

ResizeHandle

A 4px grab strip layered over the 1px column border (margin: 0 -2px makes the whole 4px grabbable) with a centred 2px indicator bar. The bar stays transparent at rest and shows the neutral fills one step up the ramp — f2 on hover, f3 while the drag is live (the sidebar column is translucent on macOS, so f1 read too faint) — never the accent.

RuleValue
Width / cursor4px strip, 2px bar / col-resize mid-range; w-resize / e-resize at the drag limits (hints the direction that still resizes)
Normal / hover / dragtransparent / --color-selected (f2) / --color-line-strong (f3) — the neutral ramp one step up, never accent
Layer--z-dropdown, above pane-level sticky chrome (chat dock at --z-sticky) so the overhang stays visible and grabbable
Behaviorpanel width follows the pointer 1:1 while dragging (the parent disables transitions to avoid lag); on release it is persisted to localStorage

Right panel

The right panels (file preview / Diff / compaction summary / sub-agent / side chat) share one track and one head primitive.

  • The panel head uses the PanelHeader primitive (48px = --panel-head-h), the same height as the conversation column head, so the hairline runs as one line.
  • Panel head: bold mono title + optional muted subtitle + middle slot (Badge / control / path) + close IconButton on the right.
  • When opened, the panel width snaps from 0 → var(--preview-w) with no animation, squeezing the conversation column in a single layout.
  • At ≤640px the panel becomes a full-screen overlay (position:fixed; inset:0).

Bottom terminal panel (desktop-only)

The native terminal (components/terminal/) sits in the conversation column's own bottom grid slot — the sidebar and the right panel span BOTH rows and keep full height (the VS Code layout: the panel belongs to the editor area, not to the whole window). Its height transitions 0 ↔ var(--terminal-h) (260px default, 120 min, 60% viewport max; persisted), squeezing the conversation column above instead of overlaying it. The panel mounts lazily on first open and then stays mounted so xterm scrollback survives a collapse.

  • Resize: a horizontal twin of the ResizeHandle (4px strip over the 0.5px top hairline, row-resize mid-range, n/s-resize at the limits, same neutral f2/f3 ramp, never accent). The shared useResizable hook owns it via axis: 'y'; the height var is written imperatively during a drag (same no-Vue-rerender rule as --preview-w).
  • Toolbar (32px, 0.5px bottom hairline): tab strip on the left — each tab is a compact radius-sm pill (leading terminal glyph, muted while exited + shell label + hover close affordance), the active tab uses --color-selected, hover --color-hover; a "+" action appends a tab. Tabs follow the §08 tablist keyboard model (roving tabindex, ←/→/Home/End), the close affordance is its own button (no nested interactives), and the height separator is keyboard-operable (↑/↓ in steps, value exposed). Trailing actions: restart (only while the active tab exited) and a collapse chevron. Collapsing sets inert on the region — the xterm instances and their scrollback stay mounted but leave the tab order.
  • The xterm canvas cannot resolve CSS variables either, so its palette is resolved from the live --color-* tokens at runtime (re-read on scheme flips; the ANSI hues the status ramp doesn't cover use dedicated --color-term-magenta/cyan tokens); the font is the app JetBrains Mono stack sized off the content token scale. While focused, the panel owns every key except the registered app shortcuts (chat-level Esc / find / select-all chords stay inert inside it).
  • Entries: the chat header's terminal IconButton (right of Open in, lit while the panel is open) — on the empty-composer state, where no chat header renders, the same button floats at the conversation's top-right instead — plus ctrl+` (⌃` on macOS — VS Code's binding; ⌘` stays free for the OS window switcher — customizable in the shortcut registry), and the View menu's Toggle Terminal item. New tabs spawn in the visible workspace root. Terminal state is per session: switching sessions swaps the visible bucket while the others keep their PTYs and xterm views alive (scrollback survives a round trip; the ten most recent sessions are kept, LRU). The panel never renders on mobile / web.
i
One-sentence principle: the sidebar / shell is a "list + grid" skeleton that reuses the §02 tokens and §03 primitives (Button / IconButton / Badge / Kbd / Menu / Spinner / PanelHeader); compact list controls that don't fit a primitive (search, New chat, inline rename, show-more) keep their custom form, governed by this section.
09

Accessibility (pragmatic edition)

Kimi Web is a local developer tool; it does not target a specific WCAG conformance level, nor maintain a full screen-reader QA matrix. This section collects only the rules that are "low-cost, don't hurt the look, and directly benefit keyboard-heavy users", as the baseline contract for each primitive; the more expensive, lower-ROI parts (such as real-time announcement orchestration for streaming output) are not mandatory for now.

i
On the "ugly" focus ring: the focus visibility required below always uses :focus-visible (not :focus). It appears only on keyboard focus; mouse clicks don't trigger it, so it doesn't pollute the mouse-driven visual; the ring's strength is tuned uniformly with --p-focus-ring, not overridden per place.

1. Contrast & color

  • Body text vs. background contrast ≥ 4.5:1; control borders, icons, and key graphics ≥ 3:1. When changing theme colors / dark mode, verify against §05 together.
  • Button text vs. button background, and form controls (input, placeholder, helper / error text) vs. their section background must all have contrast ≥ 4.5:1 (large text ≥ 3:1). White-on-white text, a transparent borderless button floating over the page background, and a light placeholder on a near-white background are all flagged by the style rules.
  • State is not conveyed by color alone. Error, selected, and disabled states also carry text, an icon, or a shape change (for example an error state is not just red, but also carries text or an icon).

2. Keyboard operable

Anything doable with a mouse must also be doable with a keyboard; Tab order follows the DOM, with no invented skipping. Composite controls define their keyboard model per the table below; a missing model is treated as incomplete:

ControlKeyboard behavior
DialogTab cycles within the dialog (focus trap); Esc closes; focus returns to the trigger element after closing.
Menu / move the highlight, Enter selects, Esc closes.
Tabs / switch tabs (roving tabindex); only the current tab is in the Tab sequence.
Switch / Segmented / or Space / Enter to toggle.

3. Focus visibility

  • Every interactive element must have a visible focus indicator on keyboard focus, uniformly via :focus-visible + --p-focus-ring (primary actions may use --p-focus-ring-strong).
  • Bare outline: none is forbidden. To remove the default outline, you must provide an equivalent replacement style.

4. Labels & semantics

  • Semantic HTML first (button / a / input / dialog…); ARIA is added only when native semantics fall short.
  • Icon-only buttons must have an aria-labelIconButton already enforces this with a required label prop.
  • Dialog: role="dialog" + aria-modal="true", with the title as the dialog's accessible name.
  • Purely decorative SVG / icons get aria-hidden="true" to avoid being read out by screen readers.

5. Target size

Desktop click targets ≥ 32px; touch devices ≥ 44px (consistent with the §01 principle and the IconButton lg tier).

6. Reduced motion

Handled uniformly in the global styles per §02's @media (prefers-reduced-motion: reduce); components do not check this individually. The chat working indicator's mascot renders its static fallback.

7. Live announcements (non-mandatory)

Screen-reader announcements are not a mandatory contract in this product. Short hints like Toast can use role="status" / aria-live; chat streaming output is currently not announced word-by-word, which is an acceptable trade-off, to be added later if a real need arises.

Explicitly not mandatory for now: a WCAG conformance-level claim, a complete ARIA pattern table, a per-screen-reader QA matrix, and real-time announcement orchestration for streaming output — these are not written into the primitive contract, to avoid becoming slogans no one maintains.
10

Dialogs

Every overlay in the app — pickers, browsers, managers, confirmations — is built on the single §03 Dialog primitive. This chapter fixes the two layout anatomies allowed inside that frame, plus the row and footer contracts that make all dialogs read as one family. Do not hand-roll a third anatomy.

The frame (recap)

All dialogs share the §03 primitive: --radius-xl radius, --shadow-xl shadow, a restrained 28% neutral backdrop, a head (title + IconButton close), a body, and a right-aligned foot. Widths sm 360 / md 440 / lg 640 / xl 760 and auto / fixed height are chosen per §03. One interruptive overlay at a time; Esc closes; focus is trapped and restored. A blocking flow that must be resolved rather than dismissed (server token) uses hideClose with closeOnOverlay/closeOnEsc off — never a hand-written overlay.

Anatomy A — padded (forms & confirmations)

The default: the body carries its own padding and the caller drops content straight in. Confirmations put their Buttons in the #foot slot (right-aligned, cancel → confirm). Used by: confirm, login, status panel, server token.

Anatomy B — flush (pickers & browsers)

:padded="false" with height="fixed"; the consumer owns the zone layout inside a full-height column. The zones below are the whole vocabulary — a picker dialog composes them and adds nothing else. Used by: model picker, session search, folder browser, provider manager.

ZoneContract
SearchThe boxed §03 Input, inset 22px so its edge aligns with the head title. Autofocus on open. No leading icon, no borderless variant.
Filter chipsOptional. 28px pill: transparent + muted text by default, --color-hover on hover, --color-selected + medium --color-text when active. Horizontally scrollable with the scrollbar hidden. Never a row of Buttons.
Listflex:1, owns the vertical scrolling, padded 4px 8px so rows bleed near the dialog edge. role="listbox"; rows carry role="option" + aria-selected.
Row8px 12px padding, --radius-md. Two quiet lines: name 14/20 (medium when current) and a meta line 12/18 in --color-text-faint — provider · context · capability labels, dot-separated. No badge rows, no raw-id line (search still matches them). Trailing slot: check icon (current row only), then the star IconButton.
Row statesHover / keyboard-selected → --color-hover; current → --color-selected — a neutral "where I am" fill, never an accent tint, never an inset stroke. The star stays hidden until row hover, keyboard selection, or starred; it is always visible on touch devices and colored --star when starred.
State rowsLoading / unavailable / empty: centered on both axes, muted 14px; warning color only for the unavailable case.
Shortcut barThe footer: full-bleed, padding 8px 16px, border-top --color-line, left-aligned. Keyboard hints are Kbd keycaps + 12px --color-text-faint labels, groups separated by "·", the whole bar aria-hidden. An instructional sentence (folder browser) reuses the same bar without keycaps.

Keyboard & behavior contract

  • / move a keyboard selection (rendered identical to hover) and always scrollIntoView({ block: 'nearest' }); Enter selects and closes; Esc closes.
  • Pointer hover drives the same selection index, so keyboard and mouse never disagree about which row is active.
  • Rows transition background only (--duration-fast ease-out); the open/close animation lives in the primitive, not in the consumer.
  • Selection is a fill, not a border (surface over stroke). Accent blue is reserved for actions — primary buttons and focus rings — never for "which row am I on".

Dialog map

DialogAnatomyComposition
Model pickerflush · lg · fixedsearch + provider chips + model rows + shortcut bar
Session searchflush · lg · fixedsearch + result rows (sidebar-style alignment: one icon gutter, shared left text edge, shared right meta edge; workspace rows single-line name + right-aligned path, session rows title + time over a workspace · snippet meta line; quiet uppercase section heads with counts; empty query shows a few top workspaces + recent sessions) + shortcut bar
Folder browserflush · lg · fixedbreadcrumb bar + filter bar + folder rows + actions + hint bar
Provider managerflush · xl · fixedmanagement rows with inset dividers (rows are not selectable) + add section + shortcut bar
Confirm / Login / Statuspadded · md · autotitle + message or form + right-aligned foot
App update (desktop)padded · lg · autoversion title (stays "发现新版本 vX" even while downloading) + quiet meta line (release date · current version) + height-capped scrolling what's-new list + right-aligned action row (skip → download; downloading → background + disabled live-percent button; later → restart) with the auto-download checkbox right-aligned on its own foot row below (a pure preference for future checks)
Server tokenpadded · md · autohideClose, no Esc/overlay close — resolved only by a valid token
Settingsflush · xl · fixedpage-like exception: side-nav region, per §03
Onboarding wizardnot a Dialogfull-page takeover (not built on §03): one centered column (brand lockup → step content → ghost actions + centered primary CTA); selectable options share the option-card pattern — 0.5px --color-line hairline, --color-accent border + --color-accent-soft fill when selected
Design intent: a picker dialog should feel like a quiet command palette — one boxed search, calm rows, a neutral "you are here" fill, and a predictable shortcut bar. Anything noisier — badge clouds, accent-selected rows, per-dialog footer inventions — is a regression to weed out.
11

Session Admin Page

The session admin page (/admin/sessions, opened from the sidebar's list-management menu) is a full-pane management view for cross-workspace session triage: filters, a server-side paged table, and batch lifecycle actions. It is a main-view peer of the conversation pane (mainView in the facade, switched with v-show so the chat stays alive) and page-private by decision — everything lives under components/admin/ (SessionAdminView/Table/Pagination, FilterSelect, MultiSelectMenu, SessionAdminMenu, useAnchoredMenu); nothing here promotes to §03 until a second consumer exists. Data is one GET /api/v2/sessions page-mode call per filter/page change (all conditions pushed down, no client-side aggregation); batch archive/restore go through the v2 batch endpoints with per-item outcomes.

Page skeleton — a full-pane admin surface

A 48px title bar (a back IconButton — chevron-left, tooltip 返回, closing the page back to the chat underneath via closeSessionAdmin — then the page title, semibold base; hairline bottom edge; on macOS desktop it doubles as the window-drag region and takes the chat header's collapsed-sidebar clearance — 146px / 78px / Windows fallback — so ONLY the bar insets, the body never does) → muted subtitle → query-form filter bar → table card → pager. The title bar and the scroll container are siblings (bar fixed, body scrolls). The page wrapper spans the whole conversation column — do not apply the chat content measure (--p-content-max) here: under table-layout: fixed a narrow wrapper crushes the table's flexible columns to zero width (the title/prompt columns collapsed in practice). An admin table surface owns the pane width. The status filter defaults to 全部 (all) — the page is the whole inventory, 重置 restores that same default.

!
Lesson (content measure): --p-content-max is a READING measure for prose-like content (chat, dialogs). Full-bleed work surfaces — tables, grids, dashboards — span the pane instead. Pick one deliberately; inheriting the chat measure by default is the bug.

Table

The card is the flat shell: 0.5px --color-line hairline, --radius-lg, no shadow. Inside, table-layout: fixed with a colgroup: fixed-width utility columns (checkbox, workspace, status, the two time columns, actions) and two flexible content columns (title at max(200px, 20%) — a floor, not a bare percentage — last prompt taking the rest). The head row is a pinned-height 32px box (it hosts the batch transform below); body rows are 40px. Rows are separated by 0.5px --color-subtle hairlines (none after the last row), with a --color-hover wash on hover. Every cell truncates single-line with ellipsis and carries a title tooltip. Time columns are absolute (YYYY-MM-DD HH:mm) in --font-mono xs with tabular-nums — the admin page is an audit view, so no relative times; empty values render a faint . The status column sits right after the workspace column and reuses the sidebar row's lifecycle glyphs: state-open (dashed ring, --color-success) for 进行中 and state-done (checked ring, --color-done) for 已完成, icon + label. First load swaps the body for a centered §03 Spinner; refetches keep the stale rows and dim the card (opacity + pointer-events: none) rather than flashing it away; filters with no matches render the centered faint empty line.

Responsive steps (the card is the query container; web's narrow panes matter too): the time columns give ground FIRST — at ≤1020px their values swap to the compact MM-DD HH:mm at 108px (each time cell carries both spans, CSS toggles them — no JS measuring); at ≤760px the time columns hide outright (the col and the cells share sa-c-time/sa-col-time classes) and the workspace column drops its folder icon. The table itself floors at 640px and the card takes overflow-x: auto — past the floor the card scrolls horizontally instead of crushing title/prompt to zero, and auto still clips the rounded corners like hidden did.

ColumnWidthContent
checkbox36pxheader select-this-page (indeterminate) + row checkboxes
会话名20%title (emoji verbatim), weight 475, ellipsis; hosts inline rename
工作空间116pxfolder-closed icon + workspace name (cwd basename fallback)
状态88pxstate-open/state-done glyph + label
最后一条 promptflexmuted, ellipsis, faint when null
最后更新 / 完成时间140px ×2mono tabular-nums absolute time; completed shows while open
操作84pxlifecycle IconButton (state-done completes an open row, undo reopens a done one; tooltips carry 标记完成/恢复进行中) + ⋯ IconButton dropdown (Rename… / Fork / Export)

Batch header — the zero-offset transform

GitHub issues/PR semantics: while a selection exists, the head row transforms IN PLACE — the checkbox column stays put, and the remaining column headers swap for a single <th colspan> batch bar ("已选 n 项" + Mark-as-done / Reopen, each disabled when the selection holds no row of that lifecycle) inside the SAME pinned 32px box, so the table body does not move a pixel. Mark-as-done is the bar's one accent-primary button (fill + on-accent icon/label); Reopen stays a quiet hairline button. The selection itself is facade-owned (a reactive id set plus a per-id lifecycle map, reconciled against fresh rows on every landing) and survives page and filter changes — the batch count deliberately includes rows no longer visible. Successful batch items leave the selection and the current page is silently re-pulled; failures stay selected. There is deliberately no "clear selection" button for ordinary selections: unchecking rows or the header checkbox is the way out. Toasts ride App.vue's shared ActionToast channel (succeeded count, failed count when partial, Undo through the inverse batch endpoint); an all-failed batch has nothing to undo and surfaces as a WarningToast instead.

Select-all-matching — the Gmail move

Page-size caps (≤100) make "mark everything done" hopeless against thousands of rows, so the batch bar borrows Gmail's escalation: once the header checkbox has the whole page selected and total says more rows exist, a link-style button appears IN the bar (zero-offset — no banner pushing the table down): "选中当前条件下的全部 N 项" (busy-label 正在选中… while fetching). Activating it materializes every matching id into the selection via the ids projection (GET /api/v2/sessions?fields=id,archived — the one cheap shape whose page_size ceiling relaxes to 10000; cursor-walked for larger sets), merging atomically: a filter change mid-flight discards the fetch entirely. While active the count reads "已选中全部 n 项" and the link becomes 清除选择. Exclusions are free — unchecking a row just drops it from the set; emptying the selection drops the mode, as does a right-click single-row collapse. The mode ties itself to the filter fingerprint it was built from: a real condition change (query-form apply with different values, or any granular setter) clears the whole selection — re-applying the SAME conditions keeps it. Batch executions chunk at the wire's 5000-unique-ids ceiling (sequential, merged per-item outcomes; a thrown chunk aborts the rest and counts everything unexecuted as failed — the succeeded ids still reconcile).

The quiet-button border reset

All quiet icon/text buttons on the page (the batch bar's Reopen, the pager buttons) set border: none; background: transparent explicitly — or, for the bordered shapes (the filter triggers), an explicit 0.5px hairline. Row actions are pure §03 IconButtons (the sidebar row's language): the lifecycle glyph (state-done completes an open row, undo reopens a done one — tooltips carry the labels) plus the ⋯ dropdown; a text button per row read as visual noise once every row carried one.

!
Lesson (UA borders): the global reset clears button backgrounds only — a bare <button> still inherits the UA stylesheet's outset border, which reads as a stray box around every quiet control. Any quiet button outside the §03 primitives must reset both properties.

Quiet filter controls (query form)

The filter bar is a query form (antd Pro semantics): the controls edit a local DRAFT only — nothing is requested until an explicit apply. 查询 (a §03 Button variant=primary size=sm) applies the whole draft through the facade in one shot (applySessionAdminFilters — atomic write + page reset + exactly one request, never the per-setter debounce dribble), 重置 (a ghost sibling) restores defaults the same way, and Enter inside the bar queries too — except while any overlay (a select dropdown) is open, where Enter belongs to the overlay. Pagination is exempt: page/page-size changes still fetch immediately. Entry paths can pre-seed the conditions: the workspace home's 查看更多 opens the page with its workspace already selected in the filter (openSessionAdmin(workspaceId) applies the filter atomically with the navigation), and because the page is v-show-kept, the draft re-seeds from the applied filters on EVERY entry so the controls always show the true conditions. The controls themselves are muted sm labels plus a family of quiet 30px hairline controls (0.5px --color-line, --radius-md, transparent ground, --color-hover on hover/open) — deliberately NOT the §03 Select (a 32px+ form control with an accent focus ring, too heavy for a filter strip):

  • FilterSelect — quiet single-select (status, updated time, page size): the trigger carries the current label + a faint chevron; the dropdown is the §03 Menu surface with a leading fixed-width check slot and an optional lifecycle dot (--color-success open / --color-done done).
  • MultiSelectMenu — workspace multi-select: the trigger shows the selection as removable tags (at most two, then "+N"; empty = the 全部工作空间 placeholder). The anchored panel leads with a search row (case-insensitive name filter, autofocused, reset on close), then a Select-all row, then the option rows — no checkboxes, selected rows take the active highlight. The options area is capped at 320px with its own scroll (in-menu scrolls never close the panel); the panel STAYS OPEN on toggles so several workspaces can be picked in one go (Esc / outside click / outside scroll closes). Empty selection = no filter.
  • Updated-time presets — a FilterSelect of relative windows (全部时间 / 3 天以前 / 7 天以前 / 30 天以前): a pick maps onto the facade's updatedTo bound as the local calendar day N days back (computed at apply time, so a saved draft never goes stale), and the facade's day-end mapping turns it into updatedBefore. Deliberately not a calendar range picker — triage asks "older than X", not "between two dates".

Point-anchored context menus

useAnchoredMenu is the page's one menu mechanic: fixed-position §03 Menu surface, pop-from-anchor motion (fade + 0.97 scale on the menu tokens, origin and nudge following the upward flip at the viewport edge), closed by outside mousedown / Esc / scroll / resize. Three anchor modes — left-aligned under a trigger (filter selects), right-edge under a trigger (the row ⋯), and openAt(x, y) at a raw viewport point for the row contextmenu. The contextmenu has two shapes: on a row outside the multi-selection the selection first collapses to just that row and the menu is the single shape (Open session / Rename… / Fork / Export / — / the lifecycle action); on a row inside it, the multi shape (a muted count head + Mark-as-done (n) / Reopen (n), disabled per availability). Open session is the facade's selectSession — a user navigation that also leaves the admin page back to chat.

Inline rename

The title cell swaps for an accent-ringed input (--color-accent border + --color-accent-bd ring, --radius-sm) — Enter commits, Esc cancels, blur commits, settled once. The table is server-fed, so a commit is followed by a silent re-pull of the current page (the facade's pool update never reaches it).

',7))])])])]))}}),Pt=O(Lt,[["__scopeId","data-v-247f7c56"]]);export{Pt as default}; diff --git a/apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js b/apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js similarity index 98% rename from apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js rename to apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js index 7c64e499aef..12bc0d11125 100644 --- a/apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js +++ b/apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js @@ -1 +1 @@ -import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-D1h84VfZ.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default}; +import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-CAYChmT7.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default}; diff --git a/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js b/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js similarity index 86% rename from apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js rename to apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js index ed41ade5627..081c8bfad9f 100644 --- a/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js +++ b/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js @@ -1 +1 @@ -import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-Ce2Y728v.js";import{p as f}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as n,l as o}from"./mermaid.core-DaDTfY6S.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram}; +import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-BDh2X7Dq.js";import{p as f}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as n,l as o}from"./mermaid.core-D8UeR6T-.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram}; diff --git a/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js b/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js new file mode 100644 index 00000000000..31417d1064b --- /dev/null +++ b/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js @@ -0,0 +1 @@ +import{P as ln,Q as an,R as j,S,T as W,V as un,W as y,X as tn,Y as C,$ as _,a0 as rn,a1 as o,a2 as on,a3 as sn,a4 as fn}from"./mermaid.core-D8UeR6T-.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,R,X,a){var I=E-l,i=q-h,n=X-v,d=a-R,u=d*I-n*i;if(!(u*ur*r+$*$&&(Q=w,V=p),{cx:Q,cy:V,x01:-n,y01:-d,x11:Q*(v/T-1),y11:V*(v/T-1)}}function hn(){var l=cn,h=yn,E=W(0),q=null,v=gn,R=dn,X=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,Y=rn(c-f),t=c>f;if(a||(a=n=I()),sy))a.moveTo(0,0);else if(Y>tn-y)a.moveTo(s*j(f),s*S(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*j(c),u*S(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=Y,O=Y,Q=X.apply(this,arguments)/2,V=Q>y&&(q?+q.apply(this,arguments):C(u*u+s*s)),w=_(rn(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(V>y){var $=sn(V/u*S(Q)),F=sn(V/s*S(Q));(P-=$*2)>y?($*=t?1:-1,A+=$,T-=$):(P=0,A=T=(f+c)/2),(O-=F*2)>y?(F*=t?1:-1,m+=F,g-=F):(O=0,m=g=(f+c)/2)}var z=s*j(m),B=s*S(m),G=u*j(T),H=u*S(T);if(w>y){var J=s*j(g),K=s*S(g),M=u*j(A),N=u*S(A),D;if(Yy?x>y?(e=L(M,N,z,B,s,x,t),r=L(J,K,G,H,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(G,H):p>y?(e=L(G,H,J,K,u,-p,t),r=L(z,B,M,N,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+M*M&&(G=w,H=p),{cx:G,cy:H,x01:-n,y01:-d,x11:G*(v/T-1),y11:H*(v/T-1)}}function hn(){var l=cn,h=yn,q=J(0),O=null,v=gn,R=dn,K=mn,u=null,D=ln(i);function i(){var n,d,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,L=rn(c-f),t=c>f;if(u||(u=n=D()),sy))u.moveTo(0,0);else if(L>tn-y)u.moveTo(s*N(f),s*I(f)),u.arc(0,0,s,f,c,!t),a>y&&(u.moveTo(a*N(c),a*I(c)),u.arc(0,0,a,c,f,t));else{var m=f,g=c,A=f,T=c,P=L,E=L,G=K.apply(this,arguments)/2,H=G>y&&(O?+O.apply(this,arguments):j(a*a+s*s)),w=_(rn(s-a)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(H>y){var M=sn(H/a*I(G)),z=sn(H/s*I(G));(P-=M*2)>y?(M*=t?1:-1,A+=M,T-=M):(P=0,A=T=(f+c)/2),(E-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(E=0,m=g=(f+c)/2)}var Q=s*N(m),V=s*I(m),B=a*N(T),C=a*I(T);if(w>y){var F=s*N(g),U=s*I(g),X=a*N(A),Y=a*I(A),S;if(Ly?x>y?(e=W(X,Y,Q,V,s,x,t),r=W(F,U,B,C,s,x,t),u.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?u.lineTo(B,C):p>y?(e=W(B,C,F,U,a,-p,t),r=W(Q,V,X,Y,a,-p,t),u.lineTo(e.cx+e.x01,e.cy+e.y01),ps?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=e}),(function(A,G,N){var v=N(0);function h(){}for(var i in v)h[i]=v[i];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,G,N){function v(h,i){h==null&&i==null?(this.x=0,this.y=0):(this.x=h,this.y=i)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(h){this.x=h},v.prototype.setY=function(h){this.y=h},v.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(0),r=N(7),a=N(3),f=N(1),e=N(13),u=N(12),t=N(11);function s(c,l,T){v.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}s.prototype=Object.create(v.prototype);for(var o in v)s[o]=v[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},s.prototype.remove=function(c){var l=c;if(c instanceof a){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,C=0;C-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(w,1),g.target!=g.source&&g.target.edges.splice(P,1);var S=g.source.owner.getEdges().indexOf(g);if(S==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(S,1)}},s.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,g,d,C=this.getNodes(),S=C.length,w=0;wT&&(c=T),l>g&&(l=g)}return c==h.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?d=C[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new u(this.left,this.top))},s.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,g=h.MAX_VALUE,d=-h.MAX_VALUE,C,S,w,P,B,U=this.nodes,V=U.length,M=0;MC&&(l=C),Tw&&(g=w),dC&&(l=C),Tw&&(g=w),d=this.nodes.length){var V=0;T.forEach(function(M){M.owner==c&&V++}),V==this.nodes.length&&(this.isConnected=!0)}},A.exports=s}),(function(A,G,N){var v,h=N(1);function i(r){v=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,u){if(f==null&&e==null&&u==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{u=f,e=a,f=r;var t=e.getOwner(),s=u.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,u);if(f.isInterGraph=!0,f.source=e,f.target=u,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof v){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,u=f.length,t=0;t=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var u=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(u=1);var t=u*a[0],s=a[1]/u;a[0]t)return a[0]=f,a[1]=o,a[2]=u,a[3]=U,!1;if(eu)return a[0]=s,a[1]=e,a[2]=P,a[3]=t,!1;if(fu?(a[0]=l,a[1]=T,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>u?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=T,n=!0)),-m===y?u>f?(a[2]=B,a[3]=U,E=!0):(a[2]=P,a[3]=w,E=!0):m===y&&(u>f?(a[2]=S,a[3]=w,E=!0):(a[2]=V,a[3]=U,E=!0)),n&&E)return!1;if(f>u?e>t?(I=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(I=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(I=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(I=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(I){case 1:W=o,R=f+-C/y,a[0]=R,a[1]=W;break;case 2:R=g,W=e+d*y,a[0]=R,a[1]=W;break;case 3:W=T,R=f+C/y,a[0]=R,a[1]=W;break;case 4:R=l,W=e+-d*y,a[0]=R,a[1]=W;break}if(!E)switch(O){case 1:Q=w,x=u+-_/y,a[2]=x,a[3]=Q;break;case 2:x=V,Q=t+M*y,a[2]=x,a[3]=Q;break;case 3:Q=U,x=u+_/y,a[2]=x,a[3]=Q;break;case 4:x=B,Q=t+-M*y,a[2]=x,a[3]=Q;break}}return!1},h.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},h.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,u=i.y,t=r.x,s=r.y,o=a.x,c=a.y,l=f.x,T=f.y,g=void 0,d=void 0,C=void 0,S=void 0,w=void 0,P=void 0,B=void 0,U=void 0,V=void 0;return C=s-u,w=e-t,B=t*u-e*s,S=T-c,P=o-l,U=l*c-o*T,V=C*P-S*w,V===0?null:(g=(w*U-P*B)/V,d=(S*B-C*U)/V,new v(g,d))},h.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a=0){var T=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,G,N){function v(){}v.sign=function(h){return h>0?1:h<0?-1:0},v.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},v.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=v}),(function(A,G,N){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,A.exports=v}),(function(A,G,N){var v=(function(){function e(u,t){for(var s=0;s"u"?"undefined":v(i);return i==null||r!="object"&&r!="function"},A.exports=h}),(function(A,G,N){function v(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(C.push(w[0]);C.length>0&&c;){var P=C[0];C.splice(0,1),d.add(P);for(var B=P.getEdges(),g=0;g-1&&w.splice(_,1)}d=new Set,S=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(U,1);var V=S.getNeighborsList();V.forEach(function(n){if(l.indexOf(n)<0){var E=T.get(n),p=E-1;p==1&&P.push(n),T.set(n,p)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},A.exports=s}),(function(A,G,N){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},A.exports=v}),(function(A,G,N){var v=N(5);function h(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(i){this.lworldExtX=i},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(i){this.lworldExtY=i},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},h.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},h.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},h.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},h.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},h.prototype.inverseTransformPoint=function(i){var r=new v(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},A.exports=h}),(function(A,G,N){function v(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);si.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oC||d>C)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(C=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>C||d>C)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||C>=g[0].length)){for(var S=0;Se}}]),a})();A.exports=r}),(function(A,G,N){function v(){}v.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var i=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),a=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),u=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;m--)if(this.s[m]!==0){for(var y=m+1;y=0;z--){if((function(Tt,Ct){return Tt&&Ct})(z0;){var J=void 0,It=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=J&&Nt!==J;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==J+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+tt*vt){this.s[Nt]=0;break}}Nt===J?It=3:Nt===n-1?It=1:(It=2,J=Nt)}switch(J++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Et=v.hypot(this.s[ut],it),wt=this.s[ut]/Et,Ot=it/Et;this.s[ut]=Et,ut!==J&&(it=-Ot*r[ut-1],r[ut-1]=wt*r[ut-1]);for(var mt=0;mt=this.s[J+1]);){var Lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Lt,JMath.abs(i)?(r=i/h,r=Math.abs(h)*Math.sqrt(1+r*r)):i!=0?(r=h/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},A.exports=v}),(function(A,G,N){var v=(function(){function r(a,f){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=u,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},h.emit=function(i,r){for(var a=0;a{var G={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}for(var u in f)e[u]=f[u];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),u=a(880),t=a(991),s=a(767),o=a(806),c=a(902),l=a(551).FDLayoutConstants,T=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,C=a(551).DimensionD,S=a(551).Layout,w=a(551).Integer,P=a(551).IGeometry,B=a(551).LGraph,U=a(551).Transform,V=a(551).LinkedList;function M(){f.call(this),this.toBeTiled={},this.constraints={}}M.prototype=Object.create(f.prototype);for(var _ in f)M[_]=f[_];M.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},M.prototype.newGraph=function(n){return new u(null,this.graphManager,n)},M.prototype.newNode=function(n){return new t(this.graphManager,n)},M.prototype.newEdge=function(n){return new s(null,null,n)},M.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},M.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},M.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},M.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return E.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},M.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},M.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(m.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var O=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(D){n.fixedNodesOnHorizontal.add(D),n.fixedNodesOnVertical.add(D)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*D.length/3;tt--)H=Math.floor(Math.random()*(tt+1)),k=D[tt],D[tt]=D[H],D[H]=k;return D},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(k)||(n.nodesInRelativeHorizontal.push(k),n.nodeToRelativeConstraintMapHorizontal.set(k,[]),n.dummyToNodeForVerticalAlignment.has(k)?n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(k).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:k,gap:D.gap}),n.nodeToRelativeConstraintMapHorizontal.get(k).push({left:H,gap:D.gap})}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;n.nodesInRelativeVertical.includes(tt)||(n.nodesInRelativeVertical.push(tt),n.nodeToRelativeConstraintMapVertical.set(tt,[]),n.dummyToNodeForHorizontalAlignment.has(tt)?n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(tt).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(tt).push({bottom:ht,gap:D.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:tt,gap:D.gap})}});else{var Q=new Map,z=new Map;this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;Q.has(H)?Q.get(H).push(k):Q.set(H,[k]),Q.has(k)?Q.get(k).push(H):Q.set(k,[H])}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;z.has(tt)?z.get(tt).push(ht):z.set(tt,[ht]),z.has(ht)?z.get(ht).push(tt):z.set(ht,[tt])}});var X=function(H,k){var tt=[],ht=[],J=new V,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){tt[Nt]=[],ht[Nt]=!1;var ut=it;for(J.push(ut),It.add(ut),tt[Nt].push(ut);J.length!=0;){ut=J.shift(),k.has(ut)&&(ht[Nt]=!0);var Et=H.get(ut);Et.forEach(function(wt){It.has(wt)||(J.push(wt),It.add(wt),tt[Nt].push(wt))})}Nt++}}),{components:tt,isFixed:ht}},rt=X(Q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var $=X(z,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},M.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var D=n.idToNodeMap.get($.nodeId);D.displacementX=0,D.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p1){var R;for(R=0;Rm&&(m=Math.floor(O.y)),I=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-O.x/2,T.WORLD_CENTER_Y-O.y/2))},M.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);M.branchRadialLayout(E,null,0,359,0,m);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var O=0;O1;){var k=H[0];H.splice(0,1);var tt=z.indexOf(k);tt>=0&&z.splice(tt,1),$--,X--}E!=null?D=(z.indexOf(H[0])+1)%$:D=0;for(var ht=Math.abs(m-p)/X,J=D;rt!=X;J=++J%$){var It=z[J].getOtherEnd(n);if(It!=E){var Nt=(p+rt*ht)%360,vt=(Nt+ht)%360;M.branchRadialLayout(It,n,Nt,vt,y+I,I),rt++}}},M.maxDiagonalInTree=function(n){for(var E=w.MIN_VALUE,p=0;pE&&(E=y)}return E},M.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},M.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y"u"&&(E[R]=[]),E[R]=E[R].concat(I)}Object.keys(E).forEach(function(W){if(E[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=E[W];var Q=E[W][0].getParent(),z=new t(n.graphManager);z.id=x,z.paddingLeft=Q.paddingLeft||0,z.paddingRight=Q.paddingRight||0,z.paddingBottom=Q.paddingBottom||0,z.paddingTop=Q.paddingTop||0,n.idToDummyNode[x]=z;var X=n.getGraphManager().add(n.newGraph(),z),rt=Q.getChild();rt.add(z);for(var $=0;$y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(I+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>I?(m.rect.y-=(m.labelHeight-I)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-I)/2):m.labelPosVertical=="bottom"&&m.setHeight(I+m.labelHeight))}})},M.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,I=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,I,O)}},M.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,I=m.paddingTop,O=m.labelMarginLeft,R=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,I,O,R)})},M.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y0)return this.toBeTiled[E]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},M.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;mQ&&(Q=X.rect.height)}p+=Q+n.verticalPadding}},M.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},M.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(m),O;return IR&&(R=$.getWidth())});var W=I/y,x=O/y,Q=Math.pow(p-m,2)+4*(W+m)*(x+p)*y,z=(m-p+Math.sqrt(Q))/(2*(W+m)),X;E?(X=Math.ceil(z),X==z&&X++):X=Math.floor(z);var rt=X*(W+m)-m;return R>rt&&(rt=R),rt+=m*2,rt},M.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};I&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(D){return D.rect.width*D.rect.height},W=function(D,H){return R(H)-R(D)};n.sort(function($,D){var H=W;return O.idealRowWidth?(H=I,H($.id,D.id)):H($,D)});for(var x=0,Q=0,z=0;z0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(E)},M.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;mp&&(E=m,p=n.rowWidth[m]);return E},M.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var O=n.rowWidth[I];if(O+n.horizontalPadding+E<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-O>=E+n.horizontalPadding?W=(n.height+R)/(O+E+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.widthI&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,R=0;RO&&(O=m[R].height);E>0&&(O+=n.verticalPadding);var W=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]0)for(var rt=y;rt<=I;rt++)X[0]+=this.grid[rt][O-1].length+this.grid[rt][O].length-1;if(I0)for(var rt=O;rt<=R;rt++)X[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var $=w.MAX_VALUE,D,H,k=0;k{var f=a(551).FDLayoutNode,e=a(551).IMath;function u(s,o,c,l){f.call(this,s,o,c,l)}u.prototype=Object.create(f.prototype);for(var t in f)u[t]=f[t];u.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},u.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){Z=="horizontal"?(et.set(st,g.has(st)?d[g.get(st)]:q.get(st)),Lt+=et.get(st)):(et.set(st,g.has(st)?C[g.get(st)]:q.get(st)),Lt+=et.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){K.has(st)||et.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){Z=="horizontal"?ft+=g.has(st)?d[g.get(st)]:q.get(st):ft+=g.has(st)?C[g.get(st)]:q.get(st)}),ft=ft/lt.length,lt.forEach(function(st){et.set(st,ft)})}});for(var At=function(){var ot=dt.shift(),Lt=Y.get(ot);Lt.forEach(function(ft){if(et.get(ft.id)st&&(st=kt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var fe=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),ne;!(Qt=(ne=Jt.next()).done);Qt=!0){var te=ne.value;et.set(te,et.get(te)+fe)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return et},_=function(Y){var Z=0,K=0,q=0,at=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?Z++:K++:C[g.get(j.top)]-C[g.get(j.bottom)]>=0?q++:at++}),Z>K&&q>at)for(var ct=0;ctK)for(var nt=0;ntat)for(var et=0;et1)l.fixedNodeConstraint.forEach(function(F,Y){m[Y]=[F.position.x,F.position.y],y[Y]=[d[g.get(F.nodeId)],C[g.get(F.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var F=0;if(l.alignmentConstraint.vertical){for(var Y=l.alignmentConstraint.vertical,Z=function(et){var j=new Set;Y[et].forEach(function(pt){j.add(pt)});var dt=new Set([].concat(f(j)).filter(function(pt){return R.has(pt)})),At=void 0;dt.size>0?At=d[g.get(dt.values().next().value)]:At=V(j).x,Y[et].forEach(function(pt){m[F]=[At,C[g.get(pt)]],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},K=0;K0?At=d[g.get(dt.values().next().value)]:At=V(j).y,q[et].forEach(function(pt){m[F]=[d[g.get(pt)],At],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},ct=0;ctz&&(z=Q[rt].length,X=rt);if(z0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(F,Y){var Z={x:d[g.get(F.nodeId)],y:C[g.get(F.nodeId)]},K=F.position,q=U(K,Z);mt.x+=q.x,mt.y+=q.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(F,Y){d[Y]+=mt.x}),C.forEach(function(F,Y){C[Y]+=mt.y}),l.fixedNodeConstraint.forEach(function(F){d[g.get(F.nodeId)]=F.position.x,C[g.get(F.nodeId)]=F.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(Y){var Z=new Set;Dt[Y].forEach(function(at){Z.add(at)});var K=new Set([].concat(f(Z)).filter(function(at){return R.has(at)})),q=void 0;K.size>0?q=d[g.get(K.values().next().value)]:q=V(Z).x,Z.forEach(function(at){R.has(at)||(d[g.get(at)]=q)})},Ht=0;Ht0?q=C[g.get(K.values().next().value)]:q=V(Z).y,Z.forEach(function(at){R.has(at)||(C[g.get(at)]=q)})},Ft=0;Ft{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(45);return h})()})})(he)),he.exports}var pr=se.exports,De;function yr(){return De||(De=1,(function(L,b){(function(G,N){L.exports=N(vr())})(pr,function(A){return(()=>{var G={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e{var f=(function(){function t(s,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=s[Symbol.iterator](),C;!(l=(C=d.next()).done)&&(c.push(C.value),!(o&&c.length===o));l=!0);}catch(S){T=!0,g=S}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,u={};u.getTopMostNodes=function(t){for(var s={},o=0;o0&&I.merge(x)});for(var O=0;O1){C=g[0],S=C.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),B),U},u.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,C=!1,S=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),P;!(d=(P=w.next()).done);d=!0){var B=P.value,U=f(B,2),V=U[0],M=U[1],_=o.cy.getElementById(V);if(_){var n=_.boundingBox(),E=s.xCoords[M]-n.w/2,p=s.xCoords[M]+n.w/2,m=s.yCoords[M]-n.h/2,y=s.yCoords[M]+n.h/2;El&&(l=p),mg&&(g=y)}}}catch(x){C=!0,S=x}finally{try{!d&&w.return&&w.return()}finally{if(C)throw S}}var I=t.x-(l+c)/2,O=t.y-(g+T)/2;s.xCoords=s.xCoords.map(function(x){return x+I}),s.yCoords=s.yCoords.map(function(x){return x+O})}else{Object.keys(s).forEach(function(x){var Q=s[x],z=Q.getRect().x,X=Q.getRect().x+Q.getRect().width,rt=Q.getRect().y,$=Q.getRect().y+Q.getRect().height;zl&&(l=X),rtg&&(g=$)});var R=t.x-(l+c)/2,W=t.y-(g+T)/2;Object.keys(s).forEach(function(x){var Q=s[x];Q.setCenter(Q.getCenterX()+R,Q.getCenterY()+W)})}}},u.calcBoundingBox=function(t,s,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,C=void 0,S=void 0,w=void 0,P=void 0,B=t.descendants().not(":parent"),U=B.length,V=0;VC&&(l=C),Tw&&(g=w),d{var f=a(548),e=a(140).CoSELayout,u=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,l=a(140).CoSEConstants,T=function(d,C){var S=d.cy,w=d.eles,P=w.nodes(),B=w.edges(),U=void 0,V=void 0,M=void 0,_={};d.randomize&&(U=C.nodeIndexes,V=C.xCoords,M=C.yCoords);var n=function(x){return typeof x=="function"},E=function(x,Q){return n(x)?x(Q):x},p=f.calcParentsWithoutChildren(S,w),m=function W(x,Q,z,X){for(var rt=Q.length,$=0;$0){var J=void 0;J=z.getGraphManager().add(z.newGraph(),k),W(J,H,z,X)}}},y=function(x,Q,z){for(var X=0,rt=0,$=0;$0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/rt:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,Q){Q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(x.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,R=O.newGraphManager();return m(R.addRoot(),f.getTopMostNodes(P),O,d),y(O,R,B),I(O,d),O.runLayout(),_};i.exports={coseLayout:T}}),212:((i,r,a)=>{var f=(function(){function d(C,S){for(var w=0;w0)if(p){var I=t.getTopMostNodes(w.eles.nodes());if(M=t.connectComponents(P,w.eles,I),M.forEach(function(vt){var it=vt.boundingBox();_.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),w.randomize&&M.forEach(function(vt){w.eles=vt,U.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=P.collection();if(w.tile){var R=new Map,W=[],x=[],Q=0,z={nodeIndexes:R,xCoords:W,yCoords:x},X=[];if(M.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Et){O.merge(vt.nodes()[Et]),ut.isParent()||(z.nodeIndexes.set(vt.nodes()[Et].id(),Q++),z.xCoords.push(vt.nodes()[0].position().x),z.yCoords.push(vt.nodes()[0].position().y))}),X.push(it))}),O.length>1){var rt=O.boundingBox();_.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),M.push(O),U.push(z);for(var $=X.length-1;$>=0;$--)M.splice(X[$],1),U.splice(X[$],1),_.splice(X[$],1)}}M.forEach(function(vt,it){w.eles=vt,V.push(l(w,U[it])),t.relocateComponent(_[it],V[it],w)})}else M.forEach(function(vt,it){t.relocateComponent(_[it],U[it],w)});var D=new Set;if(M.length>1){var H=[],k=B.filter(function(vt){return vt.css("display")=="none"});M.forEach(function(vt,it){var ut=void 0;if(w.quality=="draft"&&(ut=U[it].nodeIndexes),vt.nodes().not(k).length>0){var Et={};Et.edges=[],Et.nodes=[];var wt=void 0;vt.nodes().not(k).forEach(function(Ot){if(w.quality=="draft")if(!Ot.isParent())wt=ut.get(Ot.id()),Et.nodes.push({x:U[it].xCoords[wt]-Ot.boundingbox().w/2,y:U[it].yCoords[wt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var mt=t.calcBoundingBox(Ot,U[it].xCoords,U[it].yCoords,ut);Et.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else V[it][Ot.id()]&&Et.nodes.push({x:V[it][Ot.id()].getLeft(),y:V[it][Ot.id()].getTop(),width:V[it][Ot.id()].getWidth(),height:V[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var mt=Ot.source(),Dt=Ot.target();if(mt.css("display")!="none"&&Dt.css("display")!="none")if(w.quality=="draft"){var Rt=ut.get(mt.id()),Ht=ut.get(Dt.id()),Ut=[],Pt=[];if(mt.isParent()){var Ft=t.calcBoundingBox(mt,U[it].xCoords,U[it].yCoords,ut);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(U[it].xCoords[Rt]),Ut.push(U[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,U[it].xCoords,U[it].yCoords,ut);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(U[it].xCoords[Ht]),Pt.push(U[it].yCoords[Ht]);Et.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else V[it][mt.id()]&&V[it][Dt.id()]&&Et.edges.push({startX:V[it][mt.id()].getCenterX(),startY:V[it][mt.id()].getCenterY(),endX:V[it][Dt.id()].getCenterX(),endY:V[it][Dt.id()].getCenterY()})}),Et.nodes.length>0&&(H.push(Et),D.add(it))}});var tt=E.packComponents(H,w.randomize).shifts;if(w.quality=="draft")U.forEach(function(vt,it){var ut=vt.xCoords.map(function(wt){return wt+tt[it].dx}),Et=vt.yCoords.map(function(wt){return wt+tt[it].dy});vt.xCoords=ut,vt.yCoords=Et});else{var ht=0;D.forEach(function(vt){Object.keys(V[vt]).forEach(function(it){var ut=V[vt][it];ut.setCenter(ut.getCenterX()+tt[ht].dx,ut.getCenterY()+tt[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(_.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);U.push(y)}w.quality=="default"||w.quality=="proof"?(V.push(l(w,U[0])),t.relocateComponent(_[0],V[0],w)):t.relocateComponent(_[0],U[0],w)}var J=function(it,ut){if(w.quality=="default"||w.quality=="proof"){typeof it=="number"&&(it=ut);var Et=void 0,wt=void 0,Ot=it.data("id");return V.forEach(function(Dt){Ot in Dt&&(Et={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},wt=Dt[Ot])}),w.nodeDimensionsIncludeLabels&&(wt.labelWidth&&(wt.labelPosHorizontal=="left"?Et.x+=wt.labelWidth/2:wt.labelPosHorizontal=="right"&&(Et.x-=wt.labelWidth/2)),wt.labelHeight&&(wt.labelPosVertical=="top"?Et.y+=wt.labelHeight/2:wt.labelPosVertical=="bottom"&&(Et.y-=wt.labelHeight/2))),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}else{var mt=void 0;return U.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(mt={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(w.quality=="default"||w.quality=="proof"||w.randomize){var It=t.calcParentsWithoutChildren(P,B),Nt=B.filter(function(vt){return vt.css("display")=="none"});w.eles=B.not(Nt),B.nodes().not(":parent").not(Nt).layoutPositions(S,w,J),It.length>0&&It.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,u=a(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,C=new Map,S=new Map,w=[],P=[],B=[],U=[],V=[],M=[],_=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,I=o.samplingType,O=o.nodeSeparation,R=void 0,W=function(){for(var Y=0,Z=0,K=!1;Z=at;){nt=q[at++];for(var xt=w[nt],lt=0;ltdt&&(dt=V[Lt],At=Lt)}return At},Q=function(Y){var Z=void 0;if(Y){Z=Math.floor(Math.random()*E);for(var q=0;q=1)break;j=et}for(var pt=0;pt=1)break;j=et}for(var lt=0;lt0&&(Z.isParent()?w[Y].push(S.get(Z.id())):w[Y].push(Z.id()))})});var Nt=function(Y){var Z=C.get(Y),K=void 0;d.get(Y).forEach(function(q){c.getElementById(q).isParent()?K=S.get(q):K=q,w[Z].push(K),w[C.get(K)].push(Y)})},vt=!0,it=!1,ut=void 0;try{for(var Et=d.keys()[Symbol.iterator](),wt;!(vt=(wt=Et.next()).done);vt=!0){var Ot=wt.value;Nt(Ot)}}catch(F){it=!0,ut=F}finally{try{!vt&&Et.return&&Et.return()}finally{if(it)throw ut}}E=C.size;var mt=void 0;if(E>2){R=E{var f=a(212),e=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(579);return h})()})})(se)),se.exports}var mr=yr();const Er=cr(mr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:gt(L=>`${L},${L/2} 0,${L} 0,0`,"L"),R:gt(L=>`0,${L/2} ${L},0 ${L},${L}`,"R"),T:gt(L=>`0,0 ${L},0 ${L/2},${L}`,"T"),B:gt(L=>`${L/2},0 ${L},${L} 0,${L}`,"B")},oe={L:gt((L,b)=>L-b+2,"L"),R:gt((L,b)=>L-2,"R"),T:gt((L,b)=>L-b+2,"T"),B:gt((L,b)=>L-2,"B")},Tr=gt(function(L){return Wt(L)?L==="L"?"R":"L":L==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=gt(function(L){const b=L;return b==="L"||b==="R"||b==="T"||b==="B"},"isArchitectureDirection"),Wt=gt(function(L){const b=L;return b==="L"||b==="R"},"isArchitectureDirectionX"),qt=gt(function(L){const b=L;return b==="T"||b==="B"},"isArchitectureDirectionY"),Te=gt(function(L,b){const A=Wt(L)&&qt(b),G=qt(L)&&Wt(b);return A||G},"isArchitectureDirectionXY"),Nr=gt(function(L){const b=L[0],A=L[1],G=Wt(b)&&qt(A),N=qt(b)&&Wt(A);return G||N},"isArchitecturePairXY"),Lr=gt(function(L){return L!=="LL"&&L!=="RR"&&L!=="TT"&&L!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(L,b){const A=`${L}${b}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=gt(function([L,b],A){const G=A[0],N=A[1];return Wt(G)?qt(N)?[L+(G==="L"?-1:1),b+(N==="T"?1:-1)]:[L+(G==="L"?-1:1),b]:Wt(N)?[L+(N==="L"?1:-1),b+(G==="T"?1:-1)]:[L,b+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=gt(function(L){return L==="LT"||L==="TL"?[1,1]:L==="BL"||L==="LB"?[1,-1]:L==="BR"||L==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Ar=gt(function(L,b){return Te(L,b)?"bend":Wt(L)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Mr=gt(function(L){return L.type==="service"},"isArchitectureService"),Or=gt(function(L){return L.type==="junction"},"isArchitectureJunction"),be=gt(L=>L.data(),"edgeData"),ie=gt(L=>L.data(),"nodeData"),Dr=ar.architecture,Pe=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}static{gt(this,"ArchitectureDB")}setDiagramId(L){this.diagramId=L}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",er()}addService({id:L,icon:b,in:A,title:G,iconText:N}){if(this.registeredIds[L]!==void 0)throw new Error(`The service id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The service [${L}] cannot be placed within itself`);if(this.registeredIds[A]===void 0)throw new Error(`The service [${L}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[A]==="node")throw new Error(`The service [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"service",icon:b,iconText:N,title:G,edges:[],in:A}}getServices(){return Object.values(this.nodes).filter(Mr)}addJunction({id:L,in:b}){if(this.registeredIds[L]!==void 0)throw new Error(`The junction id [${L}] is already in use by another ${this.registeredIds[L]}`);if(b!==void 0){if(L===b)throw new Error(`The junction [${L}] cannot be placed within itself`);if(this.registeredIds[b]===void 0)throw new Error(`The junction [${L}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[b]==="node")throw new Error(`The junction [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"junction",edges:[],in:b}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(L){return this.nodes[L]??null}addGroup({id:L,icon:b,in:A,title:G}){if(this.registeredIds?.[L]!==void 0)throw new Error(`The group id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The group [${L}] cannot be placed within itself`);if(this.registeredIds?.[A]===void 0)throw new Error(`The group [${L}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[A]==="node")throw new Error(`The group [${L}]'s parent is not a group`)}this.registeredIds[L]="group",this.groups[L]={id:L,icon:b,title:G,in:A}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:L,rhsId:b,lhsDir:A,rhsDir:G,lhsInto:N,rhsInto:v,lhsGroup:h,rhsGroup:i,title:r}){if(!Re(A))throw new Error(`Invalid direction given for left hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(A)}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(G)}`);if(this.nodes[L]===void 0&&this.groups[L]===void 0)throw new Error(`The left-hand id [${L}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[b]===void 0&&this.groups[b]===void 0)throw new Error(`The right-hand id [${b}] does not yet exist. Please create the service/group before declaring an edge to it.`);const a=this.nodes[L].in,f=this.nodes[b].in;if(h&&a&&f&&a==f)throw new Error(`The left-hand id [${L}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&a&&f&&a==f)throw new Error(`The right-hand id [${b}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const e={lhsId:L,lhsDir:A,lhsInto:N,lhsGroup:h,rhsId:b,rhsDir:G,rhsInto:v,rhsGroup:i,title:r};this.edges.push(e),this.nodes[L]&&this.nodes[b]&&(this.nodes[L].edges.push(this.edges[this.edges.length-1]),this.nodes[b].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(L){if(L.members.length<2)throw new Error(`An align directive requires at least two members; got ${L.members.length}`);const b=new Set;L.members.forEach(A=>{if(this.registeredIds[A]!=="node")throw new Error(`align ${L.direction} references [${A}], which is not a service or junction`);if(b.has(A))throw new Error(`align ${L.direction} lists [${A}] more than once`);b.add(A)}),this.layoutHints.push(L)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const L={},b=Object.entries(this.nodes).reduce((i,[r,a])=>(i[r]=a.edges.reduce((f,e)=>{const u=this.getNode(e.lhsId)?.in,t=this.getNode(e.rhsId)?.in;if(u&&t&&u!==t){const s=Ar(e.lhsDir,e.rhsDir);s!=="bend"&&(L[u]??={},L[u][t]=s,L[t]??={},L[t][u]=s)}if(e.lhsId===r){const s=pe(e.lhsDir,e.rhsDir);s&&(f[s]=e.rhsId)}else{const s=pe(e.rhsDir,e.lhsDir);s&&(f[s]=e.lhsId)}return f},{}),i),{}),A=Object.keys(b)[0],G={[A]:1},N=Object.keys(b).reduce((i,r)=>r===A?i:{...i,[r]:1},{}),v=gt(i=>{const r={[i]:[0,0]},a=[i];for(;a.length>0;){const f=a.shift();if(f){G[f]=1,delete N[f];const e=b[f],[u,t]=r[f];Object.entries(e).forEach(([s,o])=>{G[o]||(r[o]=Cr([u,t],s),a.push(o))})}}return r},"BFS"),h=[v(A)];for(;Object.keys(N).length>0;)h.push(v(Object.keys(N)[0]));this.dataStructures={adjList:b,spatialMaps:h,groupAlignments:L}}return this.dataStructures}setElementForId(L,b){this.elements[L]=b}getElementById(L){return this.elements[L]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(L){return this.getConfig()[L]}},xr=gt((L,b)=>{ke(L,b),L.groups.map(A=>b.addGroup(A)),L.services.map(A=>b.addService({...A,type:"service"})),L.junctions.map(A=>b.addJunction({...A,type:"junction"})),L.edges.map(A=>b.addEdge(A)),L.alignments?.map(A=>b.addLayoutHint({direction:A.direction,members:[...A.members]}))},"populateDb"),Ge={parser:{yy:void 0},parse:gt(async L=>{const b=await fr("architecture",L);Se.debug(b);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(b,A)},"parse")},Ir=gt(L=>` +import{p as ke}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as gt,D as Ze,ad as qe,l as Se,b as Qe,a as Je,n as Ke,o as je,g as _e,s as tr,p as er,A as rr,y as ir,B as ar,c as me,a$ as Ee,ai as ve,i as nr,d as or,q as sr,aj as hr,b7 as lr}from"./mermaid.core-D8UeR6T-.js";import{p as fr}from"./cynefin-VYW2F7L2-DZba3nFe.js";import{c as Fe}from"./cytoscape.esm-OyMbaexL.js";import{g as cr}from"./_commonjsHelpers-CqkleIqs.js";import"./index-CAYChmT7.js";var se={exports:{}},he={exports:{}},le={exports:{}},gr=le.exports,Me;function ur(){return Me||(Me=1,(function(L,b){(function(G,N){L.exports=N()})(gr,function(){return(function(A){var G={};function N(v){if(G[v])return G[v].exports;var h=G[v]={i:v,l:!1,exports:{}};return A[v].call(h.exports,h,h.exports,N),h.l=!0,h.exports}return N.m=A,N.c=G,N.i=function(v){return v},N.d=function(v,h,i){N.o(v,h)||Object.defineProperty(v,h,{configurable:!1,enumerable:!0,get:i})},N.n=function(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return N.d(h,"a",h),h},N.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)},N.p="",N(N.s=28)})([(function(A,G,N){function v(){}v.QUALITY=1,v.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,v.DEFAULT_INCREMENTAL=!1,v.DEFAULT_ANIMATION_ON_LAYOUT=!0,v.DEFAULT_ANIMATION_DURING_LAYOUT=!1,v.DEFAULT_ANIMATION_PERIOD=50,v.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,v.DEFAULT_GRAPH_MARGIN=15,v.NODE_DIMENSIONS_INCLUDE_LABELS=!1,v.SIMPLE_NODE_SIZE=40,v.SIMPLE_NODE_HALF_SIZE=v.SIMPLE_NODE_SIZE/2,v.EMPTY_COMPOUND_NODE_SIZE=40,v.MIN_EDGE_LENGTH=1,v.WORLD_BOUNDARY=1e6,v.INITIAL_WORLD_BOUNDARY=v.WORLD_BOUNDARY/1e3,v.WORLD_CENTER_X=1200,v.WORLD_CENTER_Y=900,A.exports=v}),(function(A,G,N){var v=N(2),h=N(8),i=N(9);function r(f,e,u){v.call(this,u),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=u,this.bendpoints=[],this.source=f,this.target=e}r.prototype=Object.create(v.prototype);for(var a in v)r[a]=v[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,e){for(var u=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(u.getOwner()==e)return u;if(u.getOwner()==t)break;u=u.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=h.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=r}),(function(A,G,N){function v(h){this.vGraphObject=h}A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(13),r=N(0),a=N(16),f=N(5);function e(t,s,o,c){o==null&&c==null&&(c=s),v.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=h.MIN_VALUE,this.inclusionTreeDepth=h.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&s!=null?this.rect=new i(s.x,s.y,o.width,o.height):this.rect=new i}e.prototype=Object.create(v.prototype);for(var u in v)e[u]=v[u];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(t){this.rect.width=t},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(t){this.rect.height=t},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(t,s){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=s.width,this.rect.height=s.height},e.prototype.setCenter=function(t,s){this.rect.x=t-this.rect.width/2,this.rect.y=s-this.rect.height/2},e.prototype.setLocation=function(t,s){this.rect.x=t,this.rect.y=s},e.prototype.moveBy=function(t,s){this.rect.x+=t,this.rect.y+=s},e.prototype.getEdgeListToNode=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";s.push(c)}}),s},e.prototype.getEdgesBetween=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&s.push(c)}),s},e.prototype.getNeighborsList=function(){var t=new Set,s=this;return s.edges.forEach(function(o){if(o.source==s)t.add(o.target);else{if(o.target!=s)throw"Incorrect incidency!";t.add(o.source)}}),t},e.prototype.withChildren=function(){var t=new Set,s,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;ls?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=e}),(function(A,G,N){var v=N(0);function h(){}for(var i in v)h[i]=v[i];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,G,N){function v(h,i){h==null&&i==null?(this.x=0,this.y=0):(this.x=h,this.y=i)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(h){this.x=h},v.prototype.setY=function(h){this.y=h},v.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(0),r=N(7),a=N(3),f=N(1),e=N(13),u=N(12),t=N(11);function s(c,l,T){v.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}s.prototype=Object.create(v.prototype);for(var o in v)s[o]=v[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},s.prototype.remove=function(c){var l=c;if(c instanceof a){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,C=0;C-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(w,1),g.target!=g.source&&g.target.edges.splice(P,1);var S=g.source.owner.getEdges().indexOf(g);if(S==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(S,1)}},s.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,g,d,C=this.getNodes(),S=C.length,w=0;wT&&(c=T),l>g&&(l=g)}return c==h.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?d=C[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new u(this.left,this.top))},s.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,g=h.MAX_VALUE,d=-h.MAX_VALUE,C,S,w,P,B,U=this.nodes,V=U.length,M=0;MC&&(l=C),Tw&&(g=w),dC&&(l=C),Tw&&(g=w),d=this.nodes.length){var V=0;T.forEach(function(M){M.owner==c&&V++}),V==this.nodes.length&&(this.isConnected=!0)}},A.exports=s}),(function(A,G,N){var v,h=N(1);function i(r){v=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,u){if(f==null&&e==null&&u==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{u=f,e=a,f=r;var t=e.getOwner(),s=u.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,u);if(f.isInterGraph=!0,f.source=e,f.target=u,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof v){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,u=f.length,t=0;t=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var u=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(u=1);var t=u*a[0],s=a[1]/u;a[0]t)return a[0]=f,a[1]=o,a[2]=u,a[3]=U,!1;if(eu)return a[0]=s,a[1]=e,a[2]=P,a[3]=t,!1;if(fu?(a[0]=l,a[1]=T,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>u?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=T,n=!0)),-m===y?u>f?(a[2]=B,a[3]=U,E=!0):(a[2]=P,a[3]=w,E=!0):m===y&&(u>f?(a[2]=S,a[3]=w,E=!0):(a[2]=V,a[3]=U,E=!0)),n&&E)return!1;if(f>u?e>t?(I=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(I=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(I=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(I=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(I){case 1:W=o,R=f+-C/y,a[0]=R,a[1]=W;break;case 2:R=g,W=e+d*y,a[0]=R,a[1]=W;break;case 3:W=T,R=f+C/y,a[0]=R,a[1]=W;break;case 4:R=l,W=e+-d*y,a[0]=R,a[1]=W;break}if(!E)switch(O){case 1:Q=w,x=u+-_/y,a[2]=x,a[3]=Q;break;case 2:x=V,Q=t+M*y,a[2]=x,a[3]=Q;break;case 3:Q=U,x=u+_/y,a[2]=x,a[3]=Q;break;case 4:x=B,Q=t+-M*y,a[2]=x,a[3]=Q;break}}return!1},h.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},h.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,u=i.y,t=r.x,s=r.y,o=a.x,c=a.y,l=f.x,T=f.y,g=void 0,d=void 0,C=void 0,S=void 0,w=void 0,P=void 0,B=void 0,U=void 0,V=void 0;return C=s-u,w=e-t,B=t*u-e*s,S=T-c,P=o-l,U=l*c-o*T,V=C*P-S*w,V===0?null:(g=(w*U-P*B)/V,d=(S*B-C*U)/V,new v(g,d))},h.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a=0){var T=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,G,N){function v(){}v.sign=function(h){return h>0?1:h<0?-1:0},v.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},v.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=v}),(function(A,G,N){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,A.exports=v}),(function(A,G,N){var v=(function(){function e(u,t){for(var s=0;s"u"?"undefined":v(i);return i==null||r!="object"&&r!="function"},A.exports=h}),(function(A,G,N){function v(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(C.push(w[0]);C.length>0&&c;){var P=C[0];C.splice(0,1),d.add(P);for(var B=P.getEdges(),g=0;g-1&&w.splice(_,1)}d=new Set,S=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(U,1);var V=S.getNeighborsList();V.forEach(function(n){if(l.indexOf(n)<0){var E=T.get(n),p=E-1;p==1&&P.push(n),T.set(n,p)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},A.exports=s}),(function(A,G,N){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},A.exports=v}),(function(A,G,N){var v=N(5);function h(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(i){this.lworldExtX=i},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(i){this.lworldExtY=i},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},h.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},h.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},h.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},h.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},h.prototype.inverseTransformPoint=function(i){var r=new v(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},A.exports=h}),(function(A,G,N){function v(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);si.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oC||d>C)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(C=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>C||d>C)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||C>=g[0].length)){for(var S=0;Se}}]),a})();A.exports=r}),(function(A,G,N){function v(){}v.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var i=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),a=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),u=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;m--)if(this.s[m]!==0){for(var y=m+1;y=0;z--){if((function(Tt,Ct){return Tt&&Ct})(z0;){var J=void 0,It=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=J&&Nt!==J;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==J+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+tt*vt){this.s[Nt]=0;break}}Nt===J?It=3:Nt===n-1?It=1:(It=2,J=Nt)}switch(J++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Et=v.hypot(this.s[ut],it),wt=this.s[ut]/Et,Ot=it/Et;this.s[ut]=Et,ut!==J&&(it=-Ot*r[ut-1],r[ut-1]=wt*r[ut-1]);for(var mt=0;mt=this.s[J+1]);){var Lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Lt,JMath.abs(i)?(r=i/h,r=Math.abs(h)*Math.sqrt(1+r*r)):i!=0?(r=h/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},A.exports=v}),(function(A,G,N){var v=(function(){function r(a,f){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=u,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},h.emit=function(i,r){for(var a=0;a{var G={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}for(var u in f)e[u]=f[u];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),u=a(880),t=a(991),s=a(767),o=a(806),c=a(902),l=a(551).FDLayoutConstants,T=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,C=a(551).DimensionD,S=a(551).Layout,w=a(551).Integer,P=a(551).IGeometry,B=a(551).LGraph,U=a(551).Transform,V=a(551).LinkedList;function M(){f.call(this),this.toBeTiled={},this.constraints={}}M.prototype=Object.create(f.prototype);for(var _ in f)M[_]=f[_];M.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},M.prototype.newGraph=function(n){return new u(null,this.graphManager,n)},M.prototype.newNode=function(n){return new t(this.graphManager,n)},M.prototype.newEdge=function(n){return new s(null,null,n)},M.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},M.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},M.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},M.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return E.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},M.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},M.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(m.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var O=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(D){n.fixedNodesOnHorizontal.add(D),n.fixedNodesOnVertical.add(D)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*D.length/3;tt--)H=Math.floor(Math.random()*(tt+1)),k=D[tt],D[tt]=D[H],D[H]=k;return D},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(k)||(n.nodesInRelativeHorizontal.push(k),n.nodeToRelativeConstraintMapHorizontal.set(k,[]),n.dummyToNodeForVerticalAlignment.has(k)?n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(k).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:k,gap:D.gap}),n.nodeToRelativeConstraintMapHorizontal.get(k).push({left:H,gap:D.gap})}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;n.nodesInRelativeVertical.includes(tt)||(n.nodesInRelativeVertical.push(tt),n.nodeToRelativeConstraintMapVertical.set(tt,[]),n.dummyToNodeForHorizontalAlignment.has(tt)?n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(tt).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(tt).push({bottom:ht,gap:D.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:tt,gap:D.gap})}});else{var Q=new Map,z=new Map;this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;Q.has(H)?Q.get(H).push(k):Q.set(H,[k]),Q.has(k)?Q.get(k).push(H):Q.set(k,[H])}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;z.has(tt)?z.get(tt).push(ht):z.set(tt,[ht]),z.has(ht)?z.get(ht).push(tt):z.set(ht,[tt])}});var X=function(H,k){var tt=[],ht=[],J=new V,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){tt[Nt]=[],ht[Nt]=!1;var ut=it;for(J.push(ut),It.add(ut),tt[Nt].push(ut);J.length!=0;){ut=J.shift(),k.has(ut)&&(ht[Nt]=!0);var Et=H.get(ut);Et.forEach(function(wt){It.has(wt)||(J.push(wt),It.add(wt),tt[Nt].push(wt))})}Nt++}}),{components:tt,isFixed:ht}},rt=X(Q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var $=X(z,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},M.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var D=n.idToNodeMap.get($.nodeId);D.displacementX=0,D.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p1){var R;for(R=0;Rm&&(m=Math.floor(O.y)),I=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-O.x/2,T.WORLD_CENTER_Y-O.y/2))},M.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);M.branchRadialLayout(E,null,0,359,0,m);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var O=0;O1;){var k=H[0];H.splice(0,1);var tt=z.indexOf(k);tt>=0&&z.splice(tt,1),$--,X--}E!=null?D=(z.indexOf(H[0])+1)%$:D=0;for(var ht=Math.abs(m-p)/X,J=D;rt!=X;J=++J%$){var It=z[J].getOtherEnd(n);if(It!=E){var Nt=(p+rt*ht)%360,vt=(Nt+ht)%360;M.branchRadialLayout(It,n,Nt,vt,y+I,I),rt++}}},M.maxDiagonalInTree=function(n){for(var E=w.MIN_VALUE,p=0;pE&&(E=y)}return E},M.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},M.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y"u"&&(E[R]=[]),E[R]=E[R].concat(I)}Object.keys(E).forEach(function(W){if(E[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=E[W];var Q=E[W][0].getParent(),z=new t(n.graphManager);z.id=x,z.paddingLeft=Q.paddingLeft||0,z.paddingRight=Q.paddingRight||0,z.paddingBottom=Q.paddingBottom||0,z.paddingTop=Q.paddingTop||0,n.idToDummyNode[x]=z;var X=n.getGraphManager().add(n.newGraph(),z),rt=Q.getChild();rt.add(z);for(var $=0;$y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(I+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>I?(m.rect.y-=(m.labelHeight-I)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-I)/2):m.labelPosVertical=="bottom"&&m.setHeight(I+m.labelHeight))}})},M.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,I=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,I,O)}},M.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,I=m.paddingTop,O=m.labelMarginLeft,R=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,I,O,R)})},M.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y0)return this.toBeTiled[E]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},M.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;mQ&&(Q=X.rect.height)}p+=Q+n.verticalPadding}},M.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},M.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(m),O;return IR&&(R=$.getWidth())});var W=I/y,x=O/y,Q=Math.pow(p-m,2)+4*(W+m)*(x+p)*y,z=(m-p+Math.sqrt(Q))/(2*(W+m)),X;E?(X=Math.ceil(z),X==z&&X++):X=Math.floor(z);var rt=X*(W+m)-m;return R>rt&&(rt=R),rt+=m*2,rt},M.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};I&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(D){return D.rect.width*D.rect.height},W=function(D,H){return R(H)-R(D)};n.sort(function($,D){var H=W;return O.idealRowWidth?(H=I,H($.id,D.id)):H($,D)});for(var x=0,Q=0,z=0;z0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(E)},M.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;mp&&(E=m,p=n.rowWidth[m]);return E},M.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var O=n.rowWidth[I];if(O+n.horizontalPadding+E<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-O>=E+n.horizontalPadding?W=(n.height+R)/(O+E+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.widthI&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,R=0;RO&&(O=m[R].height);E>0&&(O+=n.verticalPadding);var W=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]0)for(var rt=y;rt<=I;rt++)X[0]+=this.grid[rt][O-1].length+this.grid[rt][O].length-1;if(I0)for(var rt=O;rt<=R;rt++)X[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var $=w.MAX_VALUE,D,H,k=0;k{var f=a(551).FDLayoutNode,e=a(551).IMath;function u(s,o,c,l){f.call(this,s,o,c,l)}u.prototype=Object.create(f.prototype);for(var t in f)u[t]=f[t];u.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},u.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){Z=="horizontal"?(et.set(st,g.has(st)?d[g.get(st)]:q.get(st)),Lt+=et.get(st)):(et.set(st,g.has(st)?C[g.get(st)]:q.get(st)),Lt+=et.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){K.has(st)||et.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){Z=="horizontal"?ft+=g.has(st)?d[g.get(st)]:q.get(st):ft+=g.has(st)?C[g.get(st)]:q.get(st)}),ft=ft/lt.length,lt.forEach(function(st){et.set(st,ft)})}});for(var At=function(){var ot=dt.shift(),Lt=Y.get(ot);Lt.forEach(function(ft){if(et.get(ft.id)st&&(st=kt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var fe=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),ne;!(Qt=(ne=Jt.next()).done);Qt=!0){var te=ne.value;et.set(te,et.get(te)+fe)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return et},_=function(Y){var Z=0,K=0,q=0,at=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?Z++:K++:C[g.get(j.top)]-C[g.get(j.bottom)]>=0?q++:at++}),Z>K&&q>at)for(var ct=0;ctK)for(var nt=0;ntat)for(var et=0;et1)l.fixedNodeConstraint.forEach(function(F,Y){m[Y]=[F.position.x,F.position.y],y[Y]=[d[g.get(F.nodeId)],C[g.get(F.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var F=0;if(l.alignmentConstraint.vertical){for(var Y=l.alignmentConstraint.vertical,Z=function(et){var j=new Set;Y[et].forEach(function(pt){j.add(pt)});var dt=new Set([].concat(f(j)).filter(function(pt){return R.has(pt)})),At=void 0;dt.size>0?At=d[g.get(dt.values().next().value)]:At=V(j).x,Y[et].forEach(function(pt){m[F]=[At,C[g.get(pt)]],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},K=0;K0?At=d[g.get(dt.values().next().value)]:At=V(j).y,q[et].forEach(function(pt){m[F]=[d[g.get(pt)],At],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},ct=0;ctz&&(z=Q[rt].length,X=rt);if(z0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(F,Y){var Z={x:d[g.get(F.nodeId)],y:C[g.get(F.nodeId)]},K=F.position,q=U(K,Z);mt.x+=q.x,mt.y+=q.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(F,Y){d[Y]+=mt.x}),C.forEach(function(F,Y){C[Y]+=mt.y}),l.fixedNodeConstraint.forEach(function(F){d[g.get(F.nodeId)]=F.position.x,C[g.get(F.nodeId)]=F.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(Y){var Z=new Set;Dt[Y].forEach(function(at){Z.add(at)});var K=new Set([].concat(f(Z)).filter(function(at){return R.has(at)})),q=void 0;K.size>0?q=d[g.get(K.values().next().value)]:q=V(Z).x,Z.forEach(function(at){R.has(at)||(d[g.get(at)]=q)})},Ht=0;Ht0?q=C[g.get(K.values().next().value)]:q=V(Z).y,Z.forEach(function(at){R.has(at)||(C[g.get(at)]=q)})},Ft=0;Ft{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(45);return h})()})})(he)),he.exports}var pr=se.exports,De;function yr(){return De||(De=1,(function(L,b){(function(G,N){L.exports=N(vr())})(pr,function(A){return(()=>{var G={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e{var f=(function(){function t(s,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=s[Symbol.iterator](),C;!(l=(C=d.next()).done)&&(c.push(C.value),!(o&&c.length===o));l=!0);}catch(S){T=!0,g=S}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,u={};u.getTopMostNodes=function(t){for(var s={},o=0;o0&&I.merge(x)});for(var O=0;O1){C=g[0],S=C.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),B),U},u.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,C=!1,S=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),P;!(d=(P=w.next()).done);d=!0){var B=P.value,U=f(B,2),V=U[0],M=U[1],_=o.cy.getElementById(V);if(_){var n=_.boundingBox(),E=s.xCoords[M]-n.w/2,p=s.xCoords[M]+n.w/2,m=s.yCoords[M]-n.h/2,y=s.yCoords[M]+n.h/2;El&&(l=p),mg&&(g=y)}}}catch(x){C=!0,S=x}finally{try{!d&&w.return&&w.return()}finally{if(C)throw S}}var I=t.x-(l+c)/2,O=t.y-(g+T)/2;s.xCoords=s.xCoords.map(function(x){return x+I}),s.yCoords=s.yCoords.map(function(x){return x+O})}else{Object.keys(s).forEach(function(x){var Q=s[x],z=Q.getRect().x,X=Q.getRect().x+Q.getRect().width,rt=Q.getRect().y,$=Q.getRect().y+Q.getRect().height;zl&&(l=X),rtg&&(g=$)});var R=t.x-(l+c)/2,W=t.y-(g+T)/2;Object.keys(s).forEach(function(x){var Q=s[x];Q.setCenter(Q.getCenterX()+R,Q.getCenterY()+W)})}}},u.calcBoundingBox=function(t,s,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,C=void 0,S=void 0,w=void 0,P=void 0,B=t.descendants().not(":parent"),U=B.length,V=0;VC&&(l=C),Tw&&(g=w),d{var f=a(548),e=a(140).CoSELayout,u=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,l=a(140).CoSEConstants,T=function(d,C){var S=d.cy,w=d.eles,P=w.nodes(),B=w.edges(),U=void 0,V=void 0,M=void 0,_={};d.randomize&&(U=C.nodeIndexes,V=C.xCoords,M=C.yCoords);var n=function(x){return typeof x=="function"},E=function(x,Q){return n(x)?x(Q):x},p=f.calcParentsWithoutChildren(S,w),m=function W(x,Q,z,X){for(var rt=Q.length,$=0;$0){var J=void 0;J=z.getGraphManager().add(z.newGraph(),k),W(J,H,z,X)}}},y=function(x,Q,z){for(var X=0,rt=0,$=0;$0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/rt:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,Q){Q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(x.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,R=O.newGraphManager();return m(R.addRoot(),f.getTopMostNodes(P),O,d),y(O,R,B),I(O,d),O.runLayout(),_};i.exports={coseLayout:T}}),212:((i,r,a)=>{var f=(function(){function d(C,S){for(var w=0;w0)if(p){var I=t.getTopMostNodes(w.eles.nodes());if(M=t.connectComponents(P,w.eles,I),M.forEach(function(vt){var it=vt.boundingBox();_.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),w.randomize&&M.forEach(function(vt){w.eles=vt,U.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=P.collection();if(w.tile){var R=new Map,W=[],x=[],Q=0,z={nodeIndexes:R,xCoords:W,yCoords:x},X=[];if(M.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Et){O.merge(vt.nodes()[Et]),ut.isParent()||(z.nodeIndexes.set(vt.nodes()[Et].id(),Q++),z.xCoords.push(vt.nodes()[0].position().x),z.yCoords.push(vt.nodes()[0].position().y))}),X.push(it))}),O.length>1){var rt=O.boundingBox();_.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),M.push(O),U.push(z);for(var $=X.length-1;$>=0;$--)M.splice(X[$],1),U.splice(X[$],1),_.splice(X[$],1)}}M.forEach(function(vt,it){w.eles=vt,V.push(l(w,U[it])),t.relocateComponent(_[it],V[it],w)})}else M.forEach(function(vt,it){t.relocateComponent(_[it],U[it],w)});var D=new Set;if(M.length>1){var H=[],k=B.filter(function(vt){return vt.css("display")=="none"});M.forEach(function(vt,it){var ut=void 0;if(w.quality=="draft"&&(ut=U[it].nodeIndexes),vt.nodes().not(k).length>0){var Et={};Et.edges=[],Et.nodes=[];var wt=void 0;vt.nodes().not(k).forEach(function(Ot){if(w.quality=="draft")if(!Ot.isParent())wt=ut.get(Ot.id()),Et.nodes.push({x:U[it].xCoords[wt]-Ot.boundingbox().w/2,y:U[it].yCoords[wt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var mt=t.calcBoundingBox(Ot,U[it].xCoords,U[it].yCoords,ut);Et.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else V[it][Ot.id()]&&Et.nodes.push({x:V[it][Ot.id()].getLeft(),y:V[it][Ot.id()].getTop(),width:V[it][Ot.id()].getWidth(),height:V[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var mt=Ot.source(),Dt=Ot.target();if(mt.css("display")!="none"&&Dt.css("display")!="none")if(w.quality=="draft"){var Rt=ut.get(mt.id()),Ht=ut.get(Dt.id()),Ut=[],Pt=[];if(mt.isParent()){var Ft=t.calcBoundingBox(mt,U[it].xCoords,U[it].yCoords,ut);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(U[it].xCoords[Rt]),Ut.push(U[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,U[it].xCoords,U[it].yCoords,ut);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(U[it].xCoords[Ht]),Pt.push(U[it].yCoords[Ht]);Et.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else V[it][mt.id()]&&V[it][Dt.id()]&&Et.edges.push({startX:V[it][mt.id()].getCenterX(),startY:V[it][mt.id()].getCenterY(),endX:V[it][Dt.id()].getCenterX(),endY:V[it][Dt.id()].getCenterY()})}),Et.nodes.length>0&&(H.push(Et),D.add(it))}});var tt=E.packComponents(H,w.randomize).shifts;if(w.quality=="draft")U.forEach(function(vt,it){var ut=vt.xCoords.map(function(wt){return wt+tt[it].dx}),Et=vt.yCoords.map(function(wt){return wt+tt[it].dy});vt.xCoords=ut,vt.yCoords=Et});else{var ht=0;D.forEach(function(vt){Object.keys(V[vt]).forEach(function(it){var ut=V[vt][it];ut.setCenter(ut.getCenterX()+tt[ht].dx,ut.getCenterY()+tt[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(_.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);U.push(y)}w.quality=="default"||w.quality=="proof"?(V.push(l(w,U[0])),t.relocateComponent(_[0],V[0],w)):t.relocateComponent(_[0],U[0],w)}var J=function(it,ut){if(w.quality=="default"||w.quality=="proof"){typeof it=="number"&&(it=ut);var Et=void 0,wt=void 0,Ot=it.data("id");return V.forEach(function(Dt){Ot in Dt&&(Et={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},wt=Dt[Ot])}),w.nodeDimensionsIncludeLabels&&(wt.labelWidth&&(wt.labelPosHorizontal=="left"?Et.x+=wt.labelWidth/2:wt.labelPosHorizontal=="right"&&(Et.x-=wt.labelWidth/2)),wt.labelHeight&&(wt.labelPosVertical=="top"?Et.y+=wt.labelHeight/2:wt.labelPosVertical=="bottom"&&(Et.y-=wt.labelHeight/2))),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}else{var mt=void 0;return U.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(mt={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(w.quality=="default"||w.quality=="proof"||w.randomize){var It=t.calcParentsWithoutChildren(P,B),Nt=B.filter(function(vt){return vt.css("display")=="none"});w.eles=B.not(Nt),B.nodes().not(":parent").not(Nt).layoutPositions(S,w,J),It.length>0&&It.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,u=a(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,C=new Map,S=new Map,w=[],P=[],B=[],U=[],V=[],M=[],_=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,I=o.samplingType,O=o.nodeSeparation,R=void 0,W=function(){for(var Y=0,Z=0,K=!1;Z=at;){nt=q[at++];for(var xt=w[nt],lt=0;ltdt&&(dt=V[Lt],At=Lt)}return At},Q=function(Y){var Z=void 0;if(Y){Z=Math.floor(Math.random()*E);for(var q=0;q=1)break;j=et}for(var pt=0;pt=1)break;j=et}for(var lt=0;lt0&&(Z.isParent()?w[Y].push(S.get(Z.id())):w[Y].push(Z.id()))})});var Nt=function(Y){var Z=C.get(Y),K=void 0;d.get(Y).forEach(function(q){c.getElementById(q).isParent()?K=S.get(q):K=q,w[Z].push(K),w[C.get(K)].push(Y)})},vt=!0,it=!1,ut=void 0;try{for(var Et=d.keys()[Symbol.iterator](),wt;!(vt=(wt=Et.next()).done);vt=!0){var Ot=wt.value;Nt(Ot)}}catch(F){it=!0,ut=F}finally{try{!vt&&Et.return&&Et.return()}finally{if(it)throw ut}}E=C.size;var mt=void 0;if(E>2){R=E{var f=a(212),e=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(579);return h})()})})(se)),se.exports}var mr=yr();const Er=cr(mr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:gt(L=>`${L},${L/2} 0,${L} 0,0`,"L"),R:gt(L=>`0,${L/2} ${L},0 ${L},${L}`,"R"),T:gt(L=>`0,0 ${L},0 ${L/2},${L}`,"T"),B:gt(L=>`${L/2},0 ${L},${L} 0,${L}`,"B")},oe={L:gt((L,b)=>L-b+2,"L"),R:gt((L,b)=>L-2,"R"),T:gt((L,b)=>L-b+2,"T"),B:gt((L,b)=>L-2,"B")},Tr=gt(function(L){return Wt(L)?L==="L"?"R":"L":L==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=gt(function(L){const b=L;return b==="L"||b==="R"||b==="T"||b==="B"},"isArchitectureDirection"),Wt=gt(function(L){const b=L;return b==="L"||b==="R"},"isArchitectureDirectionX"),qt=gt(function(L){const b=L;return b==="T"||b==="B"},"isArchitectureDirectionY"),Te=gt(function(L,b){const A=Wt(L)&&qt(b),G=qt(L)&&Wt(b);return A||G},"isArchitectureDirectionXY"),Nr=gt(function(L){const b=L[0],A=L[1],G=Wt(b)&&qt(A),N=qt(b)&&Wt(A);return G||N},"isArchitecturePairXY"),Lr=gt(function(L){return L!=="LL"&&L!=="RR"&&L!=="TT"&&L!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(L,b){const A=`${L}${b}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=gt(function([L,b],A){const G=A[0],N=A[1];return Wt(G)?qt(N)?[L+(G==="L"?-1:1),b+(N==="T"?1:-1)]:[L+(G==="L"?-1:1),b]:Wt(N)?[L+(N==="L"?1:-1),b+(G==="T"?1:-1)]:[L,b+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=gt(function(L){return L==="LT"||L==="TL"?[1,1]:L==="BL"||L==="LB"?[1,-1]:L==="BR"||L==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Ar=gt(function(L,b){return Te(L,b)?"bend":Wt(L)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Mr=gt(function(L){return L.type==="service"},"isArchitectureService"),Or=gt(function(L){return L.type==="junction"},"isArchitectureJunction"),be=gt(L=>L.data(),"edgeData"),ie=gt(L=>L.data(),"nodeData"),Dr=ar.architecture,Pe=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}static{gt(this,"ArchitectureDB")}setDiagramId(L){this.diagramId=L}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",er()}addService({id:L,icon:b,in:A,title:G,iconText:N}){if(this.registeredIds[L]!==void 0)throw new Error(`The service id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The service [${L}] cannot be placed within itself`);if(this.registeredIds[A]===void 0)throw new Error(`The service [${L}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[A]==="node")throw new Error(`The service [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"service",icon:b,iconText:N,title:G,edges:[],in:A}}getServices(){return Object.values(this.nodes).filter(Mr)}addJunction({id:L,in:b}){if(this.registeredIds[L]!==void 0)throw new Error(`The junction id [${L}] is already in use by another ${this.registeredIds[L]}`);if(b!==void 0){if(L===b)throw new Error(`The junction [${L}] cannot be placed within itself`);if(this.registeredIds[b]===void 0)throw new Error(`The junction [${L}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[b]==="node")throw new Error(`The junction [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"junction",edges:[],in:b}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(L){return this.nodes[L]??null}addGroup({id:L,icon:b,in:A,title:G}){if(this.registeredIds?.[L]!==void 0)throw new Error(`The group id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The group [${L}] cannot be placed within itself`);if(this.registeredIds?.[A]===void 0)throw new Error(`The group [${L}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[A]==="node")throw new Error(`The group [${L}]'s parent is not a group`)}this.registeredIds[L]="group",this.groups[L]={id:L,icon:b,title:G,in:A}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:L,rhsId:b,lhsDir:A,rhsDir:G,lhsInto:N,rhsInto:v,lhsGroup:h,rhsGroup:i,title:r}){if(!Re(A))throw new Error(`Invalid direction given for left hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(A)}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(G)}`);if(this.nodes[L]===void 0&&this.groups[L]===void 0)throw new Error(`The left-hand id [${L}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[b]===void 0&&this.groups[b]===void 0)throw new Error(`The right-hand id [${b}] does not yet exist. Please create the service/group before declaring an edge to it.`);const a=this.nodes[L].in,f=this.nodes[b].in;if(h&&a&&f&&a==f)throw new Error(`The left-hand id [${L}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&a&&f&&a==f)throw new Error(`The right-hand id [${b}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const e={lhsId:L,lhsDir:A,lhsInto:N,lhsGroup:h,rhsId:b,rhsDir:G,rhsInto:v,rhsGroup:i,title:r};this.edges.push(e),this.nodes[L]&&this.nodes[b]&&(this.nodes[L].edges.push(this.edges[this.edges.length-1]),this.nodes[b].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(L){if(L.members.length<2)throw new Error(`An align directive requires at least two members; got ${L.members.length}`);const b=new Set;L.members.forEach(A=>{if(this.registeredIds[A]!=="node")throw new Error(`align ${L.direction} references [${A}], which is not a service or junction`);if(b.has(A))throw new Error(`align ${L.direction} lists [${A}] more than once`);b.add(A)}),this.layoutHints.push(L)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const L={},b=Object.entries(this.nodes).reduce((i,[r,a])=>(i[r]=a.edges.reduce((f,e)=>{const u=this.getNode(e.lhsId)?.in,t=this.getNode(e.rhsId)?.in;if(u&&t&&u!==t){const s=Ar(e.lhsDir,e.rhsDir);s!=="bend"&&(L[u]??={},L[u][t]=s,L[t]??={},L[t][u]=s)}if(e.lhsId===r){const s=pe(e.lhsDir,e.rhsDir);s&&(f[s]=e.rhsId)}else{const s=pe(e.rhsDir,e.lhsDir);s&&(f[s]=e.lhsId)}return f},{}),i),{}),A=Object.keys(b)[0],G={[A]:1},N=Object.keys(b).reduce((i,r)=>r===A?i:{...i,[r]:1},{}),v=gt(i=>{const r={[i]:[0,0]},a=[i];for(;a.length>0;){const f=a.shift();if(f){G[f]=1,delete N[f];const e=b[f],[u,t]=r[f];Object.entries(e).forEach(([s,o])=>{G[o]||(r[o]=Cr([u,t],s),a.push(o))})}}return r},"BFS"),h=[v(A)];for(;Object.keys(N).length>0;)h.push(v(Object.keys(N)[0]));this.dataStructures={adjList:b,spatialMaps:h,groupAlignments:L}}return this.dataStructures}setElementForId(L,b){this.elements[L]=b}getElementById(L){return this.elements[L]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(L){return this.getConfig()[L]}},xr=gt((L,b)=>{ke(L,b),L.groups.map(A=>b.addGroup(A)),L.services.map(A=>b.addService({...A,type:"service"})),L.junctions.map(A=>b.addJunction({...A,type:"junction"})),L.edges.map(A=>b.addEdge(A)),L.alignments?.map(A=>b.addLayoutHint({direction:A.direction,members:[...A.members]}))},"populateDb"),Ge={parser:{yy:void 0},parse:gt(async L=>{const b=await fr("architecture",L);Se.debug(b);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(b,A)},"parse")},Ir=gt(L=>` .edge { stroke-width: ${L.archEdgeWidth}; stroke: ${L.archEdgeColor}; diff --git a/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js b/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js similarity index 86% rename from apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js rename to apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js index 4fea8867e33..3d5eb0e991f 100644 --- a/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js +++ b/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js @@ -1,4 +1,4 @@ -import{g as de}from"./chunk-5VM5RSS4-B87d3yQb.js";import{aA as pe,aB as Kt,aC as fe,aD as xe,aE as ye,aF as be,aG as we,aH as me,aI as Se,aJ as Le,aK as ke,aL as ve,aM as Ee,aN as _e,aO as Te,aP as De,aQ as Be,aR as Ne,aS as Ie,aT as Ce,aU as Oe,aV as Re,aW as Ae,aX as ze,aY as Me,_ as g,z as rt,d as D,e as Pe,l as k,q as Fe,t as We,c as R,aZ as Ye,a7 as He,a8 as Ke,a3 as Ue,a_ as M,a$ as kt,b0 as Q,as as Xe,y as $,k as Ve,b1 as je,i as Ct,b2 as Ot,b3 as Ge}from"./mermaid.core-DaDTfY6S.js";import{G as Ze}from"./graph-DOmOIIwC.js";import{c as qe}from"./channel-d4fEaqwQ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";function Je(e){return Array.isArray(e)}function Qe(e){if(pe(e))return e;const t=Kt(e);if(!$e(e))return{};if(Je(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(fe(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const s=e,i=s.buffer,c=s.byteOffset,r=s.byteLength,n=new ArrayBuffer(r),l=new Uint8Array(i,c,r);return new Uint8Array(n).set(l),new DataView(n)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const s=e.constructor,i=new s(e.valueOf());return t==="[object String]"?er(i,e):xt(i,e),i}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const s=e,i=new Map;return s.forEach((c,r)=>{i.set(r,c)}),i}if(t==="[object Set]"){const s=e,i=new Set;return s.forEach(c=>{i.add(c)}),i}if(t==="[object Arguments]"){const s=e,i={};return xt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const a={};return rr(a,e),xt(a,e),tr(a,e),a}function $e(e){switch(Kt(e)){case Me:case ze:case Ae:case Re:case Oe:case Ce:case Ie:case Ne:case Be:case De:case Te:case _e:case Ee:case ve:case ke:case Le:case Se:case me:case we:case be:case ye:case xe:return!0;default:return!1}}function xt(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function tr(e,t){const a=Object.getOwnPropertySymbols(t);for(let s=0;s=a)&&(e[s]=t[s])}function rr(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var bt=(function(){var e=g(function(T,m,p,x){for(p=p||{},x=T.length;x--;p[T[x]]=m);return p},"o"),t=[1,15],a=[1,7],s=[1,13],i=[1,14],c=[1,19],r=[1,16],n=[1,17],l=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],S={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(m,p,x,L,E,o,F){var f=o.length-1;switch(E){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",o[f-1]),L.setHierarchy(o[f-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",o[f]),typeof o[f].length=="number"?this.$=o[f]:this.$=[o[f]];break;case 13:L.getLogger().debug("Rule: statement #2: ",o[f-1]),this.$=[o[f-1]].concat(o[f]);break;case 14:L.getLogger().debug("Rule: link: ",o[f],m),this.$={edgeTypeStr:o[f],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",o[f-3],o[f-1],o[f]),this.$={edgeTypeStr:o[f],label:o[f-1]};break;case 18:const C=parseInt(o[f]),Z=L.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",o[f-2],o[f-1],o[f]," typestr: ",o[f-1].edgeTypeStr);const V=L.edgeStrToEdgeData(o[f-1].edgeTypeStr),at=L.edgeStrToEdgeStartData(o[f-1].edgeTypeStr),gt=L.edgeStrToThickness(o[f-1].edgeTypeStr),O=L.edgeStrToPattern(o[f-1].edgeTypeStr);this.$=[{id:o[f-2].id,label:o[f-2].label,type:o[f-2].type,directions:o[f-2].directions},{id:o[f-2].id+"-"+o[f].id,start:o[f-2].id,end:o[f].id,label:o[f-1].label,type:"edge",thickness:gt,pattern:O,directions:o[f].directions,arrowTypeEnd:V,arrowTypeStart:at},{id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[f-1],o[f]),this.$={id:o[f-1].id,label:o[f-1].label,type:L.typeStr2Type(o[f-1].typeStr),directions:o[f-1].directions,widthInColumns:parseInt(o[f],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",o[f]),this.$={id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",o[f]),this.$={type:"column-setting",columns:o[f]==="auto"?-1:parseInt(o[f])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",o[f-2],o[f-1]),L.generateId(),this.$={...o[f-2],type:"composite",children:o[f-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",o[f-2],o[f-1],o[f]);const j=L.generateId();this.$={id:j,type:"composite",label:"",children:o[f-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",o[f]),this.$={id:o[f]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[f-1],o[f]),this.$={id:o[f-1],label:o[f].label,typeStr:o[f].typeStr,directions:o[f].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",o[f]),this.$=[o[f]];break;case 32:L.getLogger().debug("Rule: dirList: ",o[f-1],o[f]),this.$=[o[f-1]].concat(o[f]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",o[f-2],o[f-1],o[f]),this.$={typeStr:o[f-2]+o[f],label:o[f-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[f-3],o[f-2]," #3:",o[f-1],o[f]),this.$={typeStr:o[f-3]+o[f],label:o[f-2],directions:o[f-1]};break;case 35:case 36:this.$={type:"classDef",id:o[f-1].trim(),css:o[f].trim()};break;case 37:this.$={type:"applyClass",id:o[f-1].trim(),styleClass:o[f].trim()};break;case 38:this.$={type:"applyStyles",id:o[f-1].trim(),stylesStr:o[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:i,31:c,39:r,43:n,46:l}),e(h,[2,16],{14:22,15:d,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(w,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(h,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(m,p){if(p.recoverable)this.trace(m);else{var x=new Error(m);throw x.hash=p,x}},"parseError"),parse:g(function(m){var p=this,x=[0],L=[],E=[null],o=[],F=this.table,f="",C=0,Z=0,V=2,at=1,gt=o.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(j.yy[ut]=this.yy[ut]);O.setInput(m,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var dt=O.yylloc;o.push(dt);var ge=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(W){x.length=x.length-2*W,E.length=E.length-W,o.length=o.length-W}g(ue,"popStack");function Nt(){var W;return W=L.pop()||O.lex()||at,typeof W!="number"&&(W instanceof Array&&(L=W,W=L.pop()),W=p.symbols_[W]||W),W}g(Nt,"lex");for(var P,q,H,pt,J={},st,G,It,it;;){if(q=x[x.length-1],this.defaultActions[q]?H=this.defaultActions[q]:((P===null||typeof P>"u")&&(P=Nt()),H=F[q]&&F[q][P]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in F[q])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");O.showPosition?ft="Parse error on line "+(C+1)+`: +import{g as de}from"./chunk-5VM5RSS4-DzLUmY02.js";import{aA as pe,aB as Kt,aC as fe,aD as xe,aE as ye,aF as be,aG as we,aH as me,aI as Se,aJ as Le,aK as ke,aL as ve,aM as Ee,aN as _e,aO as Te,aP as De,aQ as Be,aR as Ne,aS as Ie,aT as Ce,aU as Oe,aV as Re,aW as Ae,aX as ze,aY as Me,_ as g,y as rt,d as D,e as Pe,l as k,p as Fe,r as We,c as R,aZ as Ye,a7 as He,a8 as Ke,L as Ue,a_ as M,a$ as kt,b0 as Q,as as Xe,x as $,k as Ve,b1 as je,i as Ct,b2 as Ot,b3 as Ge}from"./mermaid.core-D8UeR6T-.js";import{G as Ze}from"./graph-DOmOIIwC.js";import{c as qe}from"./channel-BiD6A78K.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";function Je(e){return Array.isArray(e)}function Qe(e){if(pe(e))return e;const t=Kt(e);if(!$e(e))return{};if(Je(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(fe(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const s=e,i=s.buffer,c=s.byteOffset,r=s.byteLength,n=new ArrayBuffer(r),l=new Uint8Array(i,c,r);return new Uint8Array(n).set(l),new DataView(n)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const s=e.constructor,i=new s(e.valueOf());return t==="[object String]"?er(i,e):xt(i,e),i}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const s=e,i=new Map;return s.forEach((c,r)=>{i.set(r,c)}),i}if(t==="[object Set]"){const s=e,i=new Set;return s.forEach(c=>{i.add(c)}),i}if(t==="[object Arguments]"){const s=e,i={};return xt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const a={};return rr(a,e),xt(a,e),tr(a,e),a}function $e(e){switch(Kt(e)){case Me:case ze:case Ae:case Re:case Oe:case Ce:case Ie:case Ne:case Be:case De:case Te:case _e:case Ee:case ve:case ke:case Le:case Se:case me:case we:case be:case ye:case xe:return!0;default:return!1}}function xt(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function tr(e,t){const a=Object.getOwnPropertySymbols(t);for(let s=0;s=a)&&(e[s]=t[s])}function rr(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var bt=(function(){var e=g(function(T,m,p,x){for(p=p||{},x=T.length;x--;p[T[x]]=m);return p},"o"),t=[1,15],a=[1,7],s=[1,13],i=[1,14],c=[1,19],r=[1,16],n=[1,17],l=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],S={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(m,p,x,L,E,o,F){var f=o.length-1;switch(E){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",o[f-1]),L.setHierarchy(o[f-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",o[f]),typeof o[f].length=="number"?this.$=o[f]:this.$=[o[f]];break;case 13:L.getLogger().debug("Rule: statement #2: ",o[f-1]),this.$=[o[f-1]].concat(o[f]);break;case 14:L.getLogger().debug("Rule: link: ",o[f],m),this.$={edgeTypeStr:o[f],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",o[f-3],o[f-1],o[f]),this.$={edgeTypeStr:o[f],label:o[f-1]};break;case 18:const C=parseInt(o[f]),Z=L.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",o[f-2],o[f-1],o[f]," typestr: ",o[f-1].edgeTypeStr);const V=L.edgeStrToEdgeData(o[f-1].edgeTypeStr),at=L.edgeStrToEdgeStartData(o[f-1].edgeTypeStr),gt=L.edgeStrToThickness(o[f-1].edgeTypeStr),O=L.edgeStrToPattern(o[f-1].edgeTypeStr);this.$=[{id:o[f-2].id,label:o[f-2].label,type:o[f-2].type,directions:o[f-2].directions},{id:o[f-2].id+"-"+o[f].id,start:o[f-2].id,end:o[f].id,label:o[f-1].label,type:"edge",thickness:gt,pattern:O,directions:o[f].directions,arrowTypeEnd:V,arrowTypeStart:at},{id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[f-1],o[f]),this.$={id:o[f-1].id,label:o[f-1].label,type:L.typeStr2Type(o[f-1].typeStr),directions:o[f-1].directions,widthInColumns:parseInt(o[f],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",o[f]),this.$={id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",o[f]),this.$={type:"column-setting",columns:o[f]==="auto"?-1:parseInt(o[f])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",o[f-2],o[f-1]),L.generateId(),this.$={...o[f-2],type:"composite",children:o[f-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",o[f-2],o[f-1],o[f]);const j=L.generateId();this.$={id:j,type:"composite",label:"",children:o[f-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",o[f]),this.$={id:o[f]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[f-1],o[f]),this.$={id:o[f-1],label:o[f].label,typeStr:o[f].typeStr,directions:o[f].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",o[f]),this.$=[o[f]];break;case 32:L.getLogger().debug("Rule: dirList: ",o[f-1],o[f]),this.$=[o[f-1]].concat(o[f]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",o[f-2],o[f-1],o[f]),this.$={typeStr:o[f-2]+o[f],label:o[f-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[f-3],o[f-2]," #3:",o[f-1],o[f]),this.$={typeStr:o[f-3]+o[f],label:o[f-2],directions:o[f-1]};break;case 35:case 36:this.$={type:"classDef",id:o[f-1].trim(),css:o[f].trim()};break;case 37:this.$={type:"applyClass",id:o[f-1].trim(),styleClass:o[f].trim()};break;case 38:this.$={type:"applyStyles",id:o[f-1].trim(),stylesStr:o[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:i,31:c,39:r,43:n,46:l}),e(h,[2,16],{14:22,15:d,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(w,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(h,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(m,p){if(p.recoverable)this.trace(m);else{var x=new Error(m);throw x.hash=p,x}},"parseError"),parse:g(function(m){var p=this,x=[0],L=[],E=[null],o=[],F=this.table,f="",C=0,Z=0,V=2,at=1,gt=o.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(j.yy[ut]=this.yy[ut]);O.setInput(m,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var dt=O.yylloc;o.push(dt);var ge=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(W){x.length=x.length-2*W,E.length=E.length-W,o.length=o.length-W}g(ue,"popStack");function Nt(){var W;return W=L.pop()||O.lex()||at,typeof W!="number"&&(W instanceof Array&&(L=W,W=L.pop()),W=p.symbols_[W]||W),W}g(Nt,"lex");for(var P,q,H,pt,J={},st,G,It,it;;){if(q=x[x.length-1],this.defaultActions[q]?H=this.defaultActions[q]:((P===null||typeof P>"u")&&(P=Nt()),H=F[q]&&F[q][P]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in F[q])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");O.showPosition?ft="Parse error on line "+(C+1)+`: `+O.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[P]||P)+"'":ft="Parse error on line "+(C+1)+": Unexpected "+(P==at?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(ft,{text:O.match,token:this.terminals_[P]||P,line:O.yylineno,loc:dt,expected:it})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(H[0]){case 1:x.push(P),E.push(O.yytext),o.push(O.yylloc),x.push(H[1]),P=null,Z=O.yyleng,f=O.yytext,C=O.yylineno,dt=O.yylloc;break;case 2:if(G=this.productions_[H[1]][1],J.$=E[E.length-G],J._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},ge&&(J._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),pt=this.performAction.apply(J,[f,Z,C,j.yy,H[1],E,o].concat(gt)),typeof pt<"u")return pt;G&&(x=x.slice(0,-1*G*2),E=E.slice(0,-1*G),o=o.slice(0,-1*G)),x.push(this.productions_[H[1]][0]),E.push(J.$),o.push(J._$),It=F[x[x.length-2]][x[x.length-1]],x.push(It);break;case 3:return!0}}return!0},"parse")},N=(function(){var T={EOF:1,parseError:g(function(p,x){if(this.yy.parser)this.yy.parser.parseError(p,x);else throw new Error(p)},"parseError"),setInput:g(function(m,p){return this.yy=p||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var p=m.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:g(function(m){var p=m.length,x=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===L.length?this.yylloc.first_column:0)+L[L.length-x.length].length-x[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(m){this.unput(this.match.slice(m))},"less"),pastInput:g(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var m=this.pastInput(),p=new Array(m.length+1).join("-");return m+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js b/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js similarity index 99% rename from apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js rename to apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js index 583361a7a4d..4282ed84383 100644 --- a/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js +++ b/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js @@ -1,4 +1,4 @@ -import{g as Oe,d as Re}from"./chunk-32BRIVSS-_Sd4SrsJ.js";import{s as Se,g as De,a as Pe,b as Be,_ as y,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-DaDTfY6S.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var jt=(function(){var e=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],a=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(se,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(se,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,re=0,ke=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(At.yy[Ht]=this.yy[Ht]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(oe,"lex");for(var I,kt,N,Gt,wt={},Mt,W,ce,Lt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[kt]&&Rt[kt][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[kt])this.terminals_[Mt]&&Mt>ke&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`: +import{g as Oe,d as Re}from"./chunk-32BRIVSS-wwoCS_p_.js";import{s as Se,g as De,a as Pe,b as Be,_ as y,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-D8UeR6T-.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var jt=(function(){var e=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],a=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(se,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(se,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,re=0,ke=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(At.yy[Ht]=this.yy[Ht]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(oe,"lex");for(var I,kt,N,Gt,wt={},Mt,W,ce,Lt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[kt]&&Rt[kt][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[kt])this.terminals_[Mt]&&Mt>ke&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Kt="Parse error on line "+(Et+1)+": Unexpected "+(I==le?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Kt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:qt,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:E.push(I),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),I=null,re=D.yyleng,f=D.yytext,Et=D.yylineno,qt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},we&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Gt=this.performAction.apply(wt,[f,re,Et,At.yy,N[1],R,h].concat(Ce)),typeof Gt<"u")return Gt;W&&(E=E.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ce=Rt[E[E.length-2]][E[E.length-1]],E.push(ce);break;case 3:return!0}}return!0},"parse")},Ae=(function(){var _t={EOF:1,parseError:y(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:y(function(x,v){return this.yy=v||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var v=x.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:y(function(x){var v=x.length,E=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===b.length?this.yylloc.first_column:0)+b[b.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(x){this.unput(this.match.slice(x))},"less"),pastInput:y(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var x=this.pastInput(),v=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js b/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js new file mode 100644 index 00000000000..514856bc6bd --- /dev/null +++ b/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js @@ -0,0 +1 @@ +import{U as a,O as n}from"./mermaid.core-D8UeR6T-.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js b/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js deleted file mode 100644 index 73cb5a3b91f..00000000000 --- a/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js +++ /dev/null @@ -1 +0,0 @@ -import{U as a,C as n}from"./mermaid.core-DaDTfY6S.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js b/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js similarity index 67% rename from apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js rename to apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js index a2f47c6f6c8..0a33463a548 100644 --- a/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js +++ b/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js @@ -1 +1 @@ -import{_ as i}from"./mermaid.core-DaDTfY6S.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I}; +import{_ as i}from"./mermaid.core-D8UeR6T-.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I}; diff --git a/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js b/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js similarity index 96% rename from apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js rename to apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js index 308520d84b3..26f0d98fedf 100644 --- a/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js +++ b/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js @@ -1 +1 @@ -import{_ as i,d as l,n as d,j as o}from"./mermaid.core-DaDTfY6S.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,g as c,x as d,m as e,w as f,h as g,y as h}; +import{_ as i,d as l,N as d,j as o}from"./mermaid.core-D8UeR6T-.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,g as c,x as d,m as e,w as f,h as g,y as h}; diff --git a/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js b/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js similarity index 83% rename from apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js rename to apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js index a9aa966ae5a..6475c7701f6 100644 --- a/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js +++ b/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js @@ -1,4 +1,4 @@ -import{_ as e}from"./mermaid.core-DaDTfY6S.js";var l=e(()=>` +import{_ as e}from"./mermaid.core-D8UeR6T-.js";var l=e(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; diff --git a/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js b/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js rename to apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js index d4962ee7fba..960752596bc 100644 --- a/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js +++ b/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js @@ -1,4 +1,4 @@ -import{g as te}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as ee}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as f,l as _,c as $,x as se,y as ie,a as re,b as ae,g as ne,s as oe,o as le,p as ce,a9 as he,k as j,q as ue,d as bt,a5 as de}from"./mermaid.core-DaDTfY6S.js";import{f as fe}from"./chunk-32BRIVSS-_Sd4SrsJ.js";var vt=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],o=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],n=[1,17],T=[1,18],m=[1,19],O=[1,33],x=[1,20],k=[1,21],u=[1,22],L=[1,23],I=[1,24],v=[1,26],F=[1,27],C=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,E,i,B){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],K=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");Y=ht[0],K=[K,ht[1]]}this.$={stmt:"state",id:Y,type:"default",description:K};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:O,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:O,57:z},t(S,[2,17]),t(xt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,72],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(xt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,81],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],E=[null],i=[],B=this.table,l="",Y=0,K=0,ht=2,Q=1,gt=i.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(U.yy[Tt]=this.yy[Tt]);b.setInput(a,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Et=b.yylloc;i.push(Et);var Qt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){r.length=r.length-2*N,E.length=E.length-N,i.length=i.length-N}f(Zt,"popStack");function Lt(){var N;return N=g.pop()||b.lex()||Q,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=d.symbols_[N]||N),N}f(Lt,"lex");for(var A,W,R,_t,X={},ut,G,It,dt;;){if(W=r[r.length-1],this.defaultActions[W]?R=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=Lt()),R=B[W]&&B[W][A]),typeof R>"u"||!R.length||!R[0]){var mt="";dt=[];for(ut in B[W])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`: +import{g as te}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as ee}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as f,l as _,c as $,v as se,x as ie,a as re,b as ae,g as ne,s as oe,n as le,o as ce,a9 as he,k as j,p as ue,d as bt,a5 as de}from"./mermaid.core-D8UeR6T-.js";import{f as fe}from"./chunk-32BRIVSS-wwoCS_p_.js";var vt=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],o=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],n=[1,17],T=[1,18],m=[1,19],O=[1,33],x=[1,20],k=[1,21],u=[1,22],L=[1,23],I=[1,24],v=[1,26],F=[1,27],C=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,E,i,B){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],K=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");Y=ht[0],K=[K,ht[1]]}this.$={stmt:"state",id:Y,type:"default",description:K};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:O,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:O,57:z},t(S,[2,17]),t(xt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,72],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(xt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,81],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],E=[null],i=[],B=this.table,l="",Y=0,K=0,ht=2,Q=1,gt=i.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(U.yy[Tt]=this.yy[Tt]);b.setInput(a,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Et=b.yylloc;i.push(Et);var Qt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){r.length=r.length-2*N,E.length=E.length-N,i.length=i.length-N}f(Zt,"popStack");function Lt(){var N;return N=g.pop()||b.lex()||Q,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=d.symbols_[N]||N),N}f(Lt,"lex");for(var A,W,R,_t,X={},ut,G,It,dt;;){if(W=r[r.length-1],this.defaultActions[W]?R=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=Lt()),R=B[W]&&B[W][A]),typeof R>"u"||!R.length||!R[0]){var mt="";dt=[];for(ut in B[W])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`: `+b.showPosition()+` Expecting `+dt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(Y+1)+": Unexpected "+(A==Q?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:Et,expected:dt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(R[0]){case 1:r.push(A),E.push(b.yytext),i.push(b.yylloc),r.push(R[1]),A=null,K=b.yyleng,l=b.yytext,Y=b.yylineno,Et=b.yylloc;break;case 2:if(G=this.productions_[R[1]][1],X.$=E[E.length-G],X._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(X._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),_t=this.performAction.apply(X,[l,K,Y,U.yy,R[1],E,i].concat(gt)),typeof _t<"u")return _t;G&&(r=r.slice(0,-1*G*2),E=E.slice(0,-1*G),i=i.slice(0,-1*G)),r.push(this.productions_[R[1]][0]),E.push(X.$),i.push(X._$),It=B[r[r.length-2]][r[r.length-1]],r.push(It);break;case 3:return!0}}return!0},"parse")},qt=(function(){var V={EOF:1,parseError:f(function(d,r){if(this.yy.parser)this.yy.parser.parseError(d,r);else throw new Error(d)},"parseError"),setInput:f(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var d=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===g.length?this.yylloc.first_column:0)+g[g.length-r.length].length-r[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js b/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js similarity index 71% rename from apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js rename to apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js index 889894642df..27a49b0a189 100644 --- a/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js +++ b/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js @@ -1 +1 @@ -import{_ as i}from"./mermaid.core-DaDTfY6S.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; +import{_ as i}from"./mermaid.core-D8UeR6T-.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; diff --git a/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js b/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js similarity index 97% rename from apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js rename to apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js index d236c6b4906..667358099cc 100644 --- a/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js +++ b/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js @@ -1,5 +1,5 @@ -import{_ as p,l as w,F as L,z as E,q as I,W as X,e as q,i as H,c as G}from"./mermaid.core-DaDTfY6S.js";var z="",b="",N="",A=[],R=new Map,k=p(e=>H(e,G()),"sanitizeText"),F=p(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=p(()=>{z="",b="",N="",A.length=0,R.clear(),I(),w.debug("[Railroad] Database cleared")},"clear"),W=p(e=>{z=k(e),w.debug("[Railroad] Title set:",e)},"setTitle"),_=p(()=>z,"getTitle"),j=p(e=>{const i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};w.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&w.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),A.push(i),R.set(i.name,i)},"addRule"),K=p(()=>A,"getRules"),J=p(e=>R.get(e),"getRule"),Q=p(e=>{b=k(e).replace(/^\s+/g,""),w.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=p(()=>b,"getAccTitle"),V=p(e=>{N=k(e).replace(/\n\s+/g,` -`),w.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=p(()=>N,"getAccDescription"),te=W,re=_,ie={clear:U,setTitle:W,getTitle:_,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=p(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=p(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),se=p(e=>{if(!e||B(e))return{};const{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),Y=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=p((e,i)=>{const a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=p(e=>{const i=Y(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),M=p(e=>{const i=E(),a={...X(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),ue=p(e=>{const{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:h,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:x,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=M(e);return` +import{_ as p,l as w,D as L,y as E,p as I,E as X,e as H,i as q,c as G}from"./mermaid.core-D8UeR6T-.js";var z="",b="",N="",A=[],R=new Map,k=p(e=>q(e,G()),"sanitizeText"),F=p(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=p(()=>{z="",b="",N="",A.length=0,R.clear(),I(),w.debug("[Railroad] Database cleared")},"clear"),_=p(e=>{z=k(e),w.debug("[Railroad] Title set:",e)},"setTitle"),W=p(()=>z,"getTitle"),j=p(e=>{const i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};w.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&w.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),A.push(i),R.set(i.name,i)},"addRule"),K=p(()=>A,"getRules"),J=p(e=>R.get(e),"getRule"),Q=p(e=>{b=k(e).replace(/^\s+/g,""),w.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=p(()=>b,"getAccTitle"),V=p(e=>{N=k(e).replace(/\n\s+/g,` +`),w.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=p(()=>N,"getAccDescription"),te=_,re=W,ie={clear:U,setTitle:_,getTitle:W,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=p(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=p(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),se=p(e=>{if(!e||B(e))return{};const{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),Y=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=p((e,i)=>{const a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=p(e=>{const i=Y(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),M=p(e=>{const i=E(),a={...X(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),ue=p(e=>{const{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:h,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:x,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=M(e);return` .railroad-diagram { font-family: ${i}; font-size: ${a}px; @@ -84,5 +84,5 @@ import{_ as p,l as w,F as L,z as E,q as I,W as X,e as q,i as H,c as G}from"./mer .railroad-group { /* Grouping container, no specific styles */ } -`},"getStyles"),T=class{constructor(){this.d=""}static{p(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,h){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${h} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=M()){this.textCache=new Map,this.svg=e,this.config=i}static{p(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){const a=i.map(o=>this.renderExpression(e,o));let r=0,t=0,n=0;for(const o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;const h=e.append("g").attr("class","railroad-sequence");let s=0;for(let o=0;othis.renderExpression(e,d));let r=0,t=0;for(const d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;const n=this.config.arcRadius,h=n*4,s=r+h,o=e.append("g").attr("class","railroad-choice");let u=0;const c=t/2;for(const d of a){const x=u,l=x+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${x})`);const v=new T,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());const $=new T,O=f+d.dimensions.width,P=s-n*2;l===c?$.moveTo(O,l).lineTo(s,c):$.moveTo(O,l).lineTo(P,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){const a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,h=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);const d=u+a.dimensions.up,x=new T().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",x.build());const l=new T().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());const f=new T().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:h,up:d,down:h-d}}}renderRepetition(e,i,a){const r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,h=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);const l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(c+r.dimensions.width,l).lineTo(h,l).build());const f=d+r.dimensions.height+t,y=new T().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){const v=new T().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(h-t*2,0).arcTo(t,t,0,!1,!0,h-t,t).lineTo(h-t,l-t).arcTo(t,t,0,!1,!1,h,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:h,height:o,up:l,down:o-l}}}renderSpecial(e,i){const a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){const a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,h=a.append("g"),s=this.renderExpression(h,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return h.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(const r of e){const t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},D=p((e,i,a)=>{q(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=p((e,i,a)=>{w.debug(`[Railroad] Rendering diagram +`},"getStyles"),T=class{constructor(){this.d=""}static{p(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,h){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${h} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=M()){this.textCache=new Map,this.svg=e,this.config=i}static{p(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){const a=i.map(o=>this.renderExpression(e,o));let r=0,t=0,n=0;for(const o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;const h=e.append("g").attr("class","railroad-sequence");let s=0;for(let o=0;othis.renderExpression(e,d));let r=0,t=0;for(const d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;const n=this.config.arcRadius,h=n*4,s=r+h,o=e.append("g").attr("class","railroad-choice");let u=0;const c=t/2;for(const d of a){const x=u,l=x+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${x})`);const v=new T,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());const $=new T,O=f+d.dimensions.width,P=s-n*2;l===c?$.moveTo(O,l).lineTo(s,c):$.moveTo(O,l).lineTo(P,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){const a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,h=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);const d=u+a.dimensions.up,x=new T().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",x.build());const l=new T().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());const f=new T().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:h,up:d,down:h-d}}}renderRepetition(e,i,a){const r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,h=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);const l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(c+r.dimensions.width,l).lineTo(h,l).build());const f=d+r.dimensions.height+t,y=new T().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){const v=new T().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(h-t*2,0).arcTo(t,t,0,!1,!0,h-t,t).lineTo(h-t,l-t).arcTo(t,t,0,!1,!1,h,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:h,height:o,up:l,down:o-l}}}renderSpecial(e,i){const a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){const a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,h=a.append("g"),s=this.renderExpression(h,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return h.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(const r of e){const t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},D=p((e,i,a)=>{H(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=p((e,i,a)=>{w.debug(`[Railroad] Rendering diagram `+e);try{const r=L(i);r.attr("class","railroad-diagram");const n=E().railroad?.useMaxWidth??!0,h=ie.getRules();if(w.debug(`[Railroad] Rendering ${h.length} rules`),h.length===0){w.warn("[Railroad] No rules to render"),D(r,{height:100,width:200},n);return}const o=new me(r,M()).renderDiagram(h);D(r,o,n),w.debug("[Railroad] Render complete")}catch(r){throw w.error("[Railroad] Render error:",r),r}},"draw"),ge={draw:he};export{ie as d,ue as g,ge as r}; diff --git a/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js b/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js rename to apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js index 17ac894a280..13753c63a8b 100644 --- a/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js +++ b/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js @@ -1 +1 @@ -import{_ as u,l as i}from"./mermaid.core-DaDTfY6S.js";import{i as m,G as y}from"./graph-DOmOIIwC.js";import{b as _,m as X}from"./map-DxJ2ADlA.js";var j=4;function p(e){return _(e,j)}function C(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:F(e),edges:M(e)};return m(e.graph())||(r.value=p(e.graph())),r}function F(e){return X(e.nodes(),function(r){var n=e.node(r),s=e.parent(r),t={v:r};return m(n)||(t.value=n),m(s)||(t.parent=s),t})}function M(e){return X(e.edges(),function(r){var n=e.edge(r),s={v:r.v,w:r.w};return m(r.name)||(s.name=r.name),m(n)||(s.value=n),s})}var c=new Map,w=new Map,A=new Map,J=u(()=>{w.clear(),A.clear(),c.clear()},"clear"),v=u((e,r)=>{const n=w.get(r)||[];return i.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),R=u((e,r)=>{const n=w.get(r)||[];return i.info("Descendants of ",r," is ",n),i.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||v(e.v,r)||v(e.w,r)||n.includes(e.w):(i.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),b=u((e,r,n,s)=>{i.warn("Copying children of ",e,"root",s,"data",r.node(e),s);const t=r.children(e)||[];e!==s&&t.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",t),t.forEach(o=>{if(r.children(o).length>0)b(o,r,n,s);else{const l=r.node(o);i.info("cp ",o," to ",s," with parent ",e),n.setNode(o,l),s!==r.parent(o)&&(i.warn("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o))),e!==s&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",s,"data",r.node(e),s),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==s,"node!==clusterId",o!==e));const f=r.edges(o);i.debug("Copying Edges",f),f.forEach(a=>{i.info("Edge",a);const d=r.edge(a.v,a.w,a.name);i.info("Edge data",d,s);try{if(R(a,s)){const g=w.get(s)||[],E=g.includes(a.v)||v(a.v,s)||a.v===s,x=g.includes(a.w)||v(a.w,s)||a.w===s;if(E&&x)i.info("Copying as ",a.v,a.w,d,a.name),n.setEdge(a.v,a.w,d,a.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else{const N=E?s:a.v,h=x?s:a.w;i.info("Rebinding cross-boundary edge as ",N,h,d,a.name),r.setEdge(N,h,d,a.name)}}else i.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",s," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",o),r.removeNode(o)})},"copy"),O=u((e,r)=>{const n=r.children(e);let s=[...n];for(const t of n)A.set(t,e),s=[...s,...O(t,r)];return s},"extractDescendants"),P=u((e,r,n)=>{const s=e.edges().filter(a=>a.v===r||a.w===r),t=e.edges().filter(a=>a.v===n||a.w===n),o=s.map(a=>({v:a.v===r?n:a.v,w:a.w===r?r:a.w})),l=t.map(a=>({v:a.v,w:a.w}));return o.filter(a=>l.some(d=>a.v===d.v&&a.w===d.w))},"findCommonEdges"),D=u((e,r,n)=>{const s=r.children(e);if(i.trace("Searching children of id ",e,s),s.length<1)return e;let t;for(const o of s){const l=D(o,r,n),f=P(r,n,l);if(l)if(f.length>0)t=l;else return l}return t},"findNonClusterChild"),S=u(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),U=u((e,r)=>{if(!e||r>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),w.set(n,O(n,e)),c.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const s=e.children(n),t=e.edges();s.length>0?(i.debug("Cluster identified",n,w),t.forEach(o=>{const l=v(o.v,n),f=v(o.w,n);l^f&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",w.get(n)),c.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,w)});for(let n of c.keys()){const s=c.get(n).id,t=e.parent(s);t!==n&&c.has(t)&&!c.get(t).externalConnections&&(c.get(n).id=t);const o=e.edges().some(l=>l.v===n);if(s&&c.get(n)?.externalConnections&&o&&L(e,s,n)){const l=T(e,n,e.parent(s));l&&(c.get(n).id=l)}}e.edges().forEach(function(n){const s=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let t=n.v,o=n.w;if(i.warn("Fix XXX",c,"ids:",n.v,n.w,"Translating: ",c.get(n.v)," --- ",c.get(n.w)),c.get(n.v)||c.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),t=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),t!==n.v){const l=e.parent(t);c.get(l).externalConnections=!0,s.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);c.get(l).externalConnections=!0,s.toCluster=n.w}i.warn("Fix Replacing with XXX",t,o,n.name),e.setEdge(t,o,s,n.name)}}),i.warn("Adjusted Graph",C(e)),k(e,0),i.trace(c)},"adjustClustersAndEdges"),k=u((e,r)=>{if(i.warn("extractor - ",r,C(e),e.children("D")),r>10){i.error("Bailing out");return}let n=e.nodes(),s=!1;for(const t of n){const o=e.children(t);s=s||o.length>0}if(!s){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,r);for(const t of n)if(i.debug("Extracting node",t,c,c.has(t)&&!c.get(t).externalConnections,!e.parent(t),e.node(t),e.children("D")," Depth ",r),!c.has(t))i.debug("Not a cluster",t,r);else if(c.get(t)?.clusterData?.explicitDir&&e.children(t)&&e.children(t).length>0){i.warn("Cluster with explicit dir, creating subgraph for children",t,r);const o=c.get(t).clusterData.dir,l=new y({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,l,t);const f=e.node(t)||{};e.setNode(t,{...f,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:l}),i.warn("Subgraph for cluster with explicit dir created:",t,C(l))}else if(!c.get(t).externalConnections&&e.children(t)&&e.children(t).length>0){i.warn("Cluster without external connections, without a parent and with children",t,r);let l=e.graph().rankdir==="TB"?"LR":"TB";c.get(t)?.clusterData?.dir&&(l=c.get(t).clusterData.dir,i.warn("Fixing dir",c.get(t).clusterData.dir,l));const f=new y({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,f,t);const a=e.node(t)||{};e.setNode(t,{...a,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:f}),i.debug("Old graph after copy",C(e))}else i.warn("Cluster ** ",t," **not meeting the criteria !externalConnections:",!c.get(t).externalConnections," no parent: ",!e.parent(t)," children ",e.children(t)&&e.children(t).length>0,e.children("D"),r),i.debug(c);n=e.nodes(),i.warn("New list of nodes",n);for(const t of n){const o=e.node(t);i.warn(" Now next level",t,o),o?.clusterNode&&k(o.graph,r+1)}},"extractor"),B=u((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(s=>{const t=e.children(s),o=B(e,t);n=[...n,...o]}),n},"sorter"),W=u(e=>B(e,e.children()),"sortNodesByHierarchy"),L=u((e,r,n)=>{let s=e.parent(r);for(;s&&s!==n;){const t=c.get(s);if(t&&!t.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),T=u((e,r,n)=>{const s=e.children(r)??[];for(const t of s){if(t===n||v(t,n))continue;const o=D(t,e,r);if(o&&!L(e,o,r))return o}return null},"findSafeAnchorNode");export{U as a,c as b,J as c,D as f,W as s,C as w}; +import{_ as u,l as i}from"./mermaid.core-D8UeR6T-.js";import{i as m,G as y}from"./graph-DOmOIIwC.js";import{b as _,m as X}from"./map-DxJ2ADlA.js";var j=4;function p(e){return _(e,j)}function C(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:F(e),edges:M(e)};return m(e.graph())||(r.value=p(e.graph())),r}function F(e){return X(e.nodes(),function(r){var n=e.node(r),s=e.parent(r),t={v:r};return m(n)||(t.value=n),m(s)||(t.parent=s),t})}function M(e){return X(e.edges(),function(r){var n=e.edge(r),s={v:r.v,w:r.w};return m(r.name)||(s.name=r.name),m(n)||(s.value=n),s})}var c=new Map,w=new Map,A=new Map,J=u(()=>{w.clear(),A.clear(),c.clear()},"clear"),v=u((e,r)=>{const n=w.get(r)||[];return i.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),R=u((e,r)=>{const n=w.get(r)||[];return i.info("Descendants of ",r," is ",n),i.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||v(e.v,r)||v(e.w,r)||n.includes(e.w):(i.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),b=u((e,r,n,s)=>{i.warn("Copying children of ",e,"root",s,"data",r.node(e),s);const t=r.children(e)||[];e!==s&&t.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",t),t.forEach(o=>{if(r.children(o).length>0)b(o,r,n,s);else{const l=r.node(o);i.info("cp ",o," to ",s," with parent ",e),n.setNode(o,l),s!==r.parent(o)&&(i.warn("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o))),e!==s&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",s,"data",r.node(e),s),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==s,"node!==clusterId",o!==e));const f=r.edges(o);i.debug("Copying Edges",f),f.forEach(a=>{i.info("Edge",a);const d=r.edge(a.v,a.w,a.name);i.info("Edge data",d,s);try{if(R(a,s)){const g=w.get(s)||[],E=g.includes(a.v)||v(a.v,s)||a.v===s,x=g.includes(a.w)||v(a.w,s)||a.w===s;if(E&&x)i.info("Copying as ",a.v,a.w,d,a.name),n.setEdge(a.v,a.w,d,a.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else{const N=E?s:a.v,h=x?s:a.w;i.info("Rebinding cross-boundary edge as ",N,h,d,a.name),r.setEdge(N,h,d,a.name)}}else i.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",s," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",o),r.removeNode(o)})},"copy"),O=u((e,r)=>{const n=r.children(e);let s=[...n];for(const t of n)A.set(t,e),s=[...s,...O(t,r)];return s},"extractDescendants"),P=u((e,r,n)=>{const s=e.edges().filter(a=>a.v===r||a.w===r),t=e.edges().filter(a=>a.v===n||a.w===n),o=s.map(a=>({v:a.v===r?n:a.v,w:a.w===r?r:a.w})),l=t.map(a=>({v:a.v,w:a.w}));return o.filter(a=>l.some(d=>a.v===d.v&&a.w===d.w))},"findCommonEdges"),D=u((e,r,n)=>{const s=r.children(e);if(i.trace("Searching children of id ",e,s),s.length<1)return e;let t;for(const o of s){const l=D(o,r,n),f=P(r,n,l);if(l)if(f.length>0)t=l;else return l}return t},"findNonClusterChild"),S=u(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),U=u((e,r)=>{if(!e||r>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),w.set(n,O(n,e)),c.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const s=e.children(n),t=e.edges();s.length>0?(i.debug("Cluster identified",n,w),t.forEach(o=>{const l=v(o.v,n),f=v(o.w,n);l^f&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",w.get(n)),c.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,w)});for(let n of c.keys()){const s=c.get(n).id,t=e.parent(s);t!==n&&c.has(t)&&!c.get(t).externalConnections&&(c.get(n).id=t);const o=e.edges().some(l=>l.v===n);if(s&&c.get(n)?.externalConnections&&o&&L(e,s,n)){const l=T(e,n,e.parent(s));l&&(c.get(n).id=l)}}e.edges().forEach(function(n){const s=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let t=n.v,o=n.w;if(i.warn("Fix XXX",c,"ids:",n.v,n.w,"Translating: ",c.get(n.v)," --- ",c.get(n.w)),c.get(n.v)||c.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),t=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),t!==n.v){const l=e.parent(t);c.get(l).externalConnections=!0,s.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);c.get(l).externalConnections=!0,s.toCluster=n.w}i.warn("Fix Replacing with XXX",t,o,n.name),e.setEdge(t,o,s,n.name)}}),i.warn("Adjusted Graph",C(e)),k(e,0),i.trace(c)},"adjustClustersAndEdges"),k=u((e,r)=>{if(i.warn("extractor - ",r,C(e),e.children("D")),r>10){i.error("Bailing out");return}let n=e.nodes(),s=!1;for(const t of n){const o=e.children(t);s=s||o.length>0}if(!s){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,r);for(const t of n)if(i.debug("Extracting node",t,c,c.has(t)&&!c.get(t).externalConnections,!e.parent(t),e.node(t),e.children("D")," Depth ",r),!c.has(t))i.debug("Not a cluster",t,r);else if(c.get(t)?.clusterData?.explicitDir&&e.children(t)&&e.children(t).length>0){i.warn("Cluster with explicit dir, creating subgraph for children",t,r);const o=c.get(t).clusterData.dir,l=new y({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,l,t);const f=e.node(t)||{};e.setNode(t,{...f,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:l}),i.warn("Subgraph for cluster with explicit dir created:",t,C(l))}else if(!c.get(t).externalConnections&&e.children(t)&&e.children(t).length>0){i.warn("Cluster without external connections, without a parent and with children",t,r);let l=e.graph().rankdir==="TB"?"LR":"TB";c.get(t)?.clusterData?.dir&&(l=c.get(t).clusterData.dir,i.warn("Fixing dir",c.get(t).clusterData.dir,l));const f=new y({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,f,t);const a=e.node(t)||{};e.setNode(t,{...a,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:f}),i.debug("Old graph after copy",C(e))}else i.warn("Cluster ** ",t," **not meeting the criteria !externalConnections:",!c.get(t).externalConnections," no parent: ",!e.parent(t)," children ",e.children(t)&&e.children(t).length>0,e.children("D"),r),i.debug(c);n=e.nodes(),i.warn("New list of nodes",n);for(const t of n){const o=e.node(t);i.warn(" Now next level",t,o),o?.clusterNode&&k(o.graph,r+1)}},"extractor"),B=u((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(s=>{const t=e.children(s),o=B(e,t);n=[...n,...o]}),n},"sorter"),W=u(e=>B(e,e.children()),"sortNodesByHierarchy"),L=u((e,r,n)=>{let s=e.parent(r);for(;s&&s!==n;){const t=c.get(s);if(t&&!t.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),T=u((e,r,n)=>{const s=e.children(r)??[];for(const t of s){if(t===n||v(t,n))continue;const o=D(t,e,r);if(o&&!L(e,o,r))return o}return null},"findSafeAnchorNode");export{U as a,c as b,J as c,D as f,W as s,C as w}; diff --git a/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js b/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js rename to apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js index 4ea50361d42..5751ee639d8 100644 --- a/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js +++ b/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js @@ -1,4 +1,4 @@ -import{g as tt}from"./chunk-5VM5RSS4-B87d3yQb.js";import{g as st}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as it}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as f,l as Ie,c as F,v as at,x as nt,y as Oe,d as de,a5 as rt,b as ut,a as lt,s as ct,g as ot,o as ht,p as dt,k as I,q as pt,r as At,i as ft,a6 as G}from"./mermaid.core-DaDTfY6S.js";import{f as gt}from"./chunk-32BRIVSS-_Sd4SrsJ.js";var we=(function(){var t=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],Ae=[1,34],b=[1,45],fe=[1,35],ge=[1,36],me=[1,37],Ce=[1,38],be=[1,27],ke=[1,28],Ee=[1,29],Te=[1,30],ye=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],De=[1,9],A=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],Fe=[1,63],Be=[1,64],_=[1,8,9,41],Pe=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Re=[22,50,60,61,82,86,87,88,89,90],Ge=[1,128],re=[12,39],_e=[1,8,9,39,41,44,46],ue=[1,8,9,22],Ue=[1,153],ze=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,J){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(De,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ie,[2,133]),t(ie,[2,134]),t(ie,[2,135]),t(ie,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be},t(A,[2,64]),{67:93,73:Fe,74:Be},t(ae,[2,83],{66:94,68:Z,69:$,70:ee,71:te,72:se}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Me,[2,89]),t(Me,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ne},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Pe,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Re,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:Ge,39:[2,36]},t(re,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(re,[2,10]),t(_e,[2,55],{11:131,12:Ge}),t(De,[2,7]),{9:[1,132]},t(ue,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(ae,[2,82],{66:136,68:Z,69:$,70:ee,71:te,72:se}),t(ae,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:Ue}),t(ze,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:Ue}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(re,[2,12]),t(_e,[2,56]),{1:[2,4]},t(ue,[2,69]),t(ue,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(ae,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ne},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Re,[2,75]),{14:[1,170]},t(re,[2,11]),t(ue,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(ze,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(_e,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],J=this.table,s="",ce=0,Ye=0,Je=2,Ke=1,Ze=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(w.yy[Ne]=this.yy[Ne]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Le=D.yylloc;e.push(Le);var $e=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(et,"popStack");function We(){var S;return S=l.pop()||D.lex()||Ke,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,V,L,xe,R={},oe,v,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=We()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var ve="";he=[];for(oe in J[V])this.terminals_[oe]&&oe>Je&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?ve="Parse error on line "+(ce+1)+`: +import{g as tt}from"./chunk-5VM5RSS4-DzLUmY02.js";import{g as st}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as it}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as f,l as Ie,c as F,u as at,v as nt,x as Oe,d as de,a5 as rt,b as ut,a as lt,s as ct,g as ot,n as ht,o as dt,k as I,p as pt,q as At,i as ft,a6 as G}from"./mermaid.core-D8UeR6T-.js";import{f as gt}from"./chunk-32BRIVSS-wwoCS_p_.js";var we=(function(){var t=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],Ae=[1,34],b=[1,45],fe=[1,35],ge=[1,36],me=[1,37],Ce=[1,38],be=[1,27],ke=[1,28],Ee=[1,29],Te=[1,30],ye=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],De=[1,9],A=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],Fe=[1,63],Be=[1,64],_=[1,8,9,41],Pe=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Re=[22,50,60,61,82,86,87,88,89,90],Ge=[1,128],re=[12,39],_e=[1,8,9,39,41,44,46],ue=[1,8,9,22],Ue=[1,153],ze=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,J){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(De,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ie,[2,133]),t(ie,[2,134]),t(ie,[2,135]),t(ie,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be},t(A,[2,64]),{67:93,73:Fe,74:Be},t(ae,[2,83],{66:94,68:Z,69:$,70:ee,71:te,72:se}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Me,[2,89]),t(Me,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ne},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Pe,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Re,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:Ge,39:[2,36]},t(re,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(re,[2,10]),t(_e,[2,55],{11:131,12:Ge}),t(De,[2,7]),{9:[1,132]},t(ue,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(ae,[2,82],{66:136,68:Z,69:$,70:ee,71:te,72:se}),t(ae,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:Ue}),t(ze,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:Ue}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(re,[2,12]),t(_e,[2,56]),{1:[2,4]},t(ue,[2,69]),t(ue,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(ae,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ne},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Re,[2,75]),{14:[1,170]},t(re,[2,11]),t(ue,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(ze,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(_e,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],J=this.table,s="",ce=0,Ye=0,Je=2,Ke=1,Ze=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(w.yy[Ne]=this.yy[Ne]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Le=D.yylloc;e.push(Le);var $e=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(et,"popStack");function We(){var S;return S=l.pop()||D.lex()||Ke,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,V,L,xe,R={},oe,v,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=We()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var ve="";he=[];for(oe in J[V])this.terminals_[oe]&&oe>Je&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?ve="Parse error on line "+(ce+1)+`: `+D.showPosition()+` Expecting `+he.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ve="Parse error on line "+(ce+1)+": Unexpected "+(B==Ke?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ve,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Le,expected:he})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ye=D.yyleng,s=D.yytext,ce=D.yylineno,Le=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],R.$=C[C.length-v],R._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},$e&&(R._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),xe=this.performAction.apply(R,[s,Ye,ce,w.yy,L[1],C,e].concat(Ze)),typeof xe<"u")return xe;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(R.$),e.push(R._$),Qe=J[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},He=(function(){var O={EOF:1,parseError:f(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js b/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js similarity index 87% rename from apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js rename to apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js index b5ea7b6fe4d..8922b3fa2f0 100644 --- a/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js +++ b/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js @@ -1 +1 @@ -import{_ as a,e as w,l as x}from"./mermaid.core-DaDTfY6S.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; +import{_ as a,e as w,l as x}from"./mermaid.core-D8UeR6T-.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; diff --git a/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js b/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js similarity index 72% rename from apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js rename to apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js index 98cb654031b..7698480f525 100644 --- a/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js +++ b/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js @@ -1 +1 @@ -import{_ as a,d as o}from"./mermaid.core-DaDTfY6S.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; +import{_ as a,d as o}from"./mermaid.core-D8UeR6T-.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js deleted file mode 100644 index 4c886977176..00000000000 --- a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-czNi1QQl.js";import{_ as i}from"./mermaid.core-DaDTfY6S.js";import"./chunk-5VM5RSS4-B87d3yQb.js";import"./chunk-XXDRQBXY-BEgNawAD.js";import"./chunk-VR4S4FIN-Dzr2NgNj.js";import"./chunk-32BRIVSS-_Sd4SrsJ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js new file mode 100644 index 00000000000..ddd92afa6b4 --- /dev/null +++ b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-B-AWSZKD.js";import{_ as i}from"./mermaid.core-D8UeR6T-.js";import"./chunk-5VM5RSS4-DzLUmY02.js";import"./chunk-XXDRQBXY-BeMc-h4J.js";import"./chunk-VR4S4FIN-BZ6zSN1A.js";import"./chunk-32BRIVSS-wwoCS_p_.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js deleted file mode 100644 index 4c886977176..00000000000 --- a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-czNi1QQl.js";import{_ as i}from"./mermaid.core-DaDTfY6S.js";import"./chunk-5VM5RSS4-B87d3yQb.js";import"./chunk-XXDRQBXY-BEgNawAD.js";import"./chunk-VR4S4FIN-Dzr2NgNj.js";import"./chunk-32BRIVSS-_Sd4SrsJ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js new file mode 100644 index 00000000000..ddd92afa6b4 --- /dev/null +++ b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-B-AWSZKD.js";import{_ as i}from"./mermaid.core-D8UeR6T-.js";import"./chunk-5VM5RSS4-DzLUmY02.js";import"./chunk-XXDRQBXY-BeMc-h4J.js";import"./chunk-VR4S4FIN-BZ6zSN1A.js";import"./chunk-32BRIVSS-wwoCS_p_.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js b/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js similarity index 99% rename from apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js rename to apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js index 7ac21020026..971d2764a86 100644 --- a/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js +++ b/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js @@ -1 +1 @@ -import{_ as V,l as k,d as lt}from"./mermaid.core-DaDTfY6S.js";import{c as tt}from"./cytoscape.esm-OyMbaexL.js";import{g as gt}from"./_commonjsHelpers-CqkleIqs.js";import"./index-D1h84VfZ.js";var Z={exports:{}},$={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(Z)),Z.exports}var yt=vt();const Et=gt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=lt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Ot=Lt;export{Ot as render}; +import{_ as V,l as k,d as lt}from"./mermaid.core-D8UeR6T-.js";import{c as tt}from"./cytoscape.esm-OyMbaexL.js";import{g as gt}from"./_commonjsHelpers-CqkleIqs.js";import"./index-CAYChmT7.js";var Z={exports:{}},$={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(Z)),Z.exports}var yt=vt();const Et=gt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=lt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Ot=Lt;export{Ot as render}; diff --git a/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js b/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js similarity index 99% rename from apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js rename to apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js index b2fdfebefce..acb18fa8882 100644 --- a/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js +++ b/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js @@ -1,4 +1,4 @@ -import{bR as et}from"./index-D1h84VfZ.js";var RI=Object.create,Ds=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,Ad=Object.getOwnPropertyNames,EI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,i=(e,t)=>Ds(e,"name",{value:t,configurable:!0}),bI=(e,t)=>function(){return e&&(t=(0,e[Ad(e)[0]])(e=0)),t},H=(e,t)=>function(){return t||(0,e[Ad(e)[0]])((t={exports:{}}).exports,t),t.exports},Vr=(e,t)=>{for(var r in t)Ds(e,r,{get:t[r],enumerable:!0})},Ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ad(t))!CI.call(e,a)&&a!==r&&Ds(e,a,{get:()=>t[a],enumerable:!(n=AI(t,a))||n.enumerable});return e},Ll=(e,t,r)=>(Ed(e,t,"default"),r),Cd=(e,t,r)=>(r=e!=null?RI(EI(e)):{},Ed(Ds(r,"default",{value:e,enumerable:!0}),e)),bd=e=>Ed(Ds({},"__esModule",{value:!0}),e),Dl={};Vr(Dl,{AnnotatedTextEdit:()=>mr,ChangeAnnotation:()=>an,ChangeAnnotationIdentifier:()=>Ke,CodeAction:()=>ef,CodeActionContext:()=>Qc,CodeActionKind:()=>Zc,CodeActionTriggerKind:()=>Xi,CodeDescription:()=>Nc,CodeLens:()=>tf,Color:()=>Co,ColorInformation:()=>Cc,ColorPresentation:()=>bc,Command:()=>nn,CompletionItem:()=>zc,CompletionItemKind:()=>Lc,CompletionItemLabelDetails:()=>Fc,CompletionItemTag:()=>xc,CompletionList:()=>jc,CreateFile:()=>ya,DeleteFile:()=>va,Diagnostic:()=>Vi,DiagnosticRelatedInformation:()=>bo,DiagnosticSeverity:()=>wc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>Vc,DocumentHighlightKind:()=>Wc,DocumentLink:()=>nf,DocumentSymbol:()=>Jc,DocumentUri:()=>Rc,EOL:()=>zg,FoldingRange:()=>Sc,FoldingRangeKind:()=>_c,FormattingOptions:()=>rf,Hover:()=>Bc,InlayHint:()=>pf,InlayHintKind:()=>wo,InlayHintLabelPart:()=>Io,InlineCompletionContext:()=>Tf,InlineCompletionItem:()=>hf,InlineCompletionList:()=>yf,InlineCompletionTriggerKind:()=>gf,InlineValueContext:()=>df,InlineValueEvaluatableExpression:()=>ff,InlineValueText:()=>uf,InlineValueVariableLookup:()=>cf,InsertReplaceEdit:()=>Mc,InsertTextFormat:()=>Dc,InsertTextMode:()=>Gc,Location:()=>Wi,LocationLink:()=>Ec,MarkedString:()=>Yi,MarkupContent:()=>Ta,MarkupKind:()=>So,OptionalVersionedTextDocumentIdentifier:()=>Hi,ParameterInformation:()=>Uc,Position:()=>ie,Range:()=>Q,RenameFile:()=>ga,SelectedCompletionInfo:()=>vf,SelectionRange:()=>af,SemanticTokenModifiers:()=>of,SemanticTokenTypes:()=>sf,SemanticTokens:()=>lf,SignatureInformation:()=>Kc,StringValue:()=>mf,SymbolInformation:()=>Yc,SymbolKind:()=>qc,SymbolTag:()=>Hc,TextDocument:()=>Rf,TextDocumentEdit:()=>qi,TextDocumentIdentifier:()=>Pc,TextDocumentItem:()=>Oc,TextEdit:()=>Yt,URI:()=>Eo,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>Fg,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>$f,WorkspaceSymbol:()=>Xc,integer:()=>Ac,uinteger:()=>Ki});var Rc,Eo,Ac,Ki,ie,Q,Wi,Ec,Co,Cc,bc,_c,Sc,bo,wc,Ic,Nc,Vi,nn,Yt,an,Ke,mr,qi,ya,ga,va,_o,ki,Ku,Fg,Pc,kc,Hi,Oc,So,Ta,Lc,Dc,xc,Mc,Gc,Fc,zc,jc,Yi,Bc,Uc,Kc,Wc,Vc,qc,Hc,Yc,Xc,Jc,Zc,Xi,Qc,ef,tf,rf,nf,af,sf,of,lf,uf,cf,ff,df,wo,Io,pf,mf,hf,yf,gf,vf,Tf,$f,zg,Rf,lh,A,xs=bI({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Rc||(Rc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Eo||(Eo={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ac||(Ac={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ki||(Ki={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Ki.MAX_VALUE),a===Number.MAX_VALUE&&(a=Ki.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.line)&&A.uinteger(a.character)}i(r,"is"),e.is=r})(ie||(ie={})),(function(e){function t(n,a,s,o){if(A.uinteger(n)&&A.uinteger(a)&&A.uinteger(s)&&A.uinteger(o))return{start:ie.create(n,a),end:ie.create(s,o)};if(ie.is(n)&&ie.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ie.is(a.start)&&ie.is(a.end)}i(r,"is"),e.is=r})(Q||(Q={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(A.string(a.uri)||A.undefined(a.uri))}i(r,"is"),e.is=r})(Wi||(Wi={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.targetRange)&&A.string(a.targetUri)&&Q.is(a.targetSelectionRange)&&(Q.is(a.originSelectionRange)||A.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(Ec||(Ec={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.numberRange(a.red,0,1)&&A.numberRange(a.green,0,1)&&A.numberRange(a.blue,0,1)&&A.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(Co||(Co={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&Q.is(a.range)&&Co.is(a.color)}i(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.undefined(a.textEdit)||Yt.is(a))&&(A.undefined(a.additionalTextEdits)||A.typedArray(a.additionalTextEdits,Yt.is))}i(r,"is"),e.is=r})(bc||(bc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={})),(function(e){function t(n,a,s,o,l,u){const c={startLine:n,endLine:a};return A.defined(s)&&(c.startCharacter=s),A.defined(o)&&(c.endCharacter=o),A.defined(l)&&(c.kind=l),A.defined(u)&&(c.collapsedText=u),c}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.uinteger(a.startLine)&&A.uinteger(a.startLine)&&(A.undefined(a.startCharacter)||A.uinteger(a.startCharacter))&&(A.undefined(a.endCharacter)||A.uinteger(a.endCharacter))&&(A.undefined(a.kind)||A.string(a.kind))}i(r,"is"),e.is=r})(Sc||(Sc={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Wi.is(a.location)&&A.string(a.message)}i(r,"is"),e.is=r})(bo||(bo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(wc||(wc={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&A.string(n.href)}i(t,"is"),e.is=t})(Nc||(Nc={})),(function(e){function t(n,a,s,o,l,u){let c={range:n,message:a};return A.defined(s)&&(c.severity=s),A.defined(o)&&(c.code=o),A.defined(l)&&(c.source=l),A.defined(u)&&(c.relatedInformation=u),c}i(t,"create"),e.create=t;function r(n){var a;let s=n;return A.defined(s)&&Q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,bo.is))}i(r,"is"),e.is=r})(Vi||(Vi={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return A.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.title)&&A.string(a.command)}i(r,"is"),e.is=r})(nn||(nn={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&Q.is(o.range)}i(a,"is"),e.is=a})(Yt||(Yt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(A.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(an||(an={})),(function(e){function t(r){const n=r;return A.string(n)}i(t,"is"),e.is=t})(Ke||(Ke={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return Yt.is(o)&&(an.is(o.annotationId)||Ke.is(o.annotationId))}i(a,"is"),e.is=a})(mr||(mr={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Hi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(qi||(qi={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&A.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ya||(ya={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&A.string(a.oldUri)&&A.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ga||(ga={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&A.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||A.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||A.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(va||(va={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>A.string(a.kind)?ya.is(a)||ga.is(a)||va.is(a):qi.is(a)))}i(t,"is"),e.is=t})(_o||(_o={})),ki=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=Yt.insert(e,t):Ke.is(r)?(a=r,n=mr.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=Yt.replace(e,t):Ke.is(r)?(a=r,n=mr.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=Yt.del(e):Ke.is(t)?(n=t,r=mr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=mr.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Ku=class{static{i(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(Ke.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Fg=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ku(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(qi.is(t)){const r=new ki(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new ki(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Hi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new ki(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new ki(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ku,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ya.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=ya.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;an.is(r)||Ke.is(r)?a=r:n=r;let s,o;if(a===void 0?s=ga.create(e,t,n):(o=Ke.is(a)?a:this._changeAnnotations.manage(a),s=ga.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=va.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=va.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)}i(r,"is"),e.is=r})(Pc||(Pc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.integer(a.version)}i(r,"is"),e.is=r})(kc||(kc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&(a.version===null||A.integer(a.version))}i(r,"is"),e.is=r})(Hi||(Hi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.string(a.languageId)&&A.integer(a.version)&&A.string(a.text)}i(r,"is"),e.is=r})(Oc||(Oc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(So||(So={})),(function(e){function t(r){const n=r;return A.objectLiteral(r)&&So.is(n.kind)&&A.string(n.value)}i(t,"is"),e.is=t})(Ta||(Ta={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lc||(Lc={})),(function(e){e.PlainText=1,e.Snippet=2})(Dc||(Dc={})),(function(e){e.Deprecated=1})(xc||(xc={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&A.string(a.newText)&&Q.is(a.insert)&&Q.is(a.replace)}i(r,"is"),e.is=r})(Mc||(Mc={})),(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={})),(function(e){function t(r){const n=r;return n&&(A.string(n.detail)||n.detail===void 0)&&(A.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(Fc||(Fc={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(zc||(zc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(jc||(jc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return A.string(a)||A.objectLiteral(a)&&A.string(a.language)&&A.string(a.value)}i(r,"is"),e.is=r})(Yi||(Yi={})),(function(e){function t(r){let n=r;return!!n&&A.objectLiteral(n)&&(Ta.is(n.contents)||Yi.is(n.contents)||A.typedArray(n.contents,Yi.is))&&(r.range===void 0||Q.is(r.range))}i(t,"is"),e.is=t})(Bc||(Bc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})(Uc||(Uc={})),(function(e){function t(r,n,...a){let s={label:r};return A.defined(n)&&(s.documentation=n),A.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Kc||(Kc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Wc||(Wc={})),(function(e){function t(r,n){let a={range:r};return A.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(Vc||(Vc={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qc||(qc={})),(function(e){e.Deprecated=1})(Hc||(Hc={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(Yc||(Yc={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(Xc||(Xc={})),(function(e){function t(n,a,s,o,l,u){let c={name:n,detail:a,kind:s,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.name)&&A.number(a.kind)&&Q.is(a.range)&&Q.is(a.selectionRange)&&(a.detail===void 0||A.string(a.detail))&&(a.deprecated===void 0||A.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(Jc||(Jc={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Zc||(Zc={})),(function(e){e.Invoked=1,e.Automatic=2})(Xi||(Xi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.typedArray(a.diagnostics,Vi.is)&&(a.only===void 0||A.typedArray(a.only,A.string))&&(a.triggerKind===void 0||a.triggerKind===Xi.Invoked||a.triggerKind===Xi.Automatic)}i(r,"is"),e.is=r})(Qc||(Qc={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):nn.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.title)&&(a.diagnostics===void 0||A.typedArray(a.diagnostics,Vi.is))&&(a.kind===void 0||A.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||nn.is(a.command))&&(a.isPreferred===void 0||A.boolean(a.isPreferred))&&(a.edit===void 0||_o.is(a.edit))}i(r,"is"),e.is=r})(ef||(ef={})),(function(e){function t(n,a){let s={range:n};return A.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.command)||nn.is(a.command))}i(r,"is"),e.is=r})(tf||(tf={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.uinteger(a.tabSize)&&A.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.target)||A.string(a.target))}i(r,"is"),e.is=r})(nf||(nf={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(af||(af={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(sf||(sf={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(of||(of={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(lf||(lf={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.string(a.text)}i(r,"is"),e.is=r})(uf||(uf={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.boolean(a.caseSensitiveLookup)&&(A.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(cf||(cf={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&(A.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(ff||(ff={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.defined(a)&&Q.is(n.stoppedLocation)}i(r,"is"),e.is=r})(df||(df={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})(wo||(wo={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.location===void 0||Wi.is(a.location))&&(a.command===void 0||nn.is(a.command))}i(r,"is"),e.is=r})(Io||(Io={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&ie.is(a.position)&&(A.string(a.label)||A.typedArray(a.label,Io.is))&&(a.kind===void 0||wo.is(a.kind))&&a.textEdits===void 0||A.typedArray(a.textEdits,Yt.is)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.paddingLeft===void 0||A.boolean(a.paddingLeft))&&(a.paddingRight===void 0||A.boolean(a.paddingRight))}i(r,"is"),e.is=r})(pf||(pf={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(mf||(mf={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(hf||(hf={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(yf||(yf={})),(function(e){e.Invoked=0,e.Automatic=1})(gf||(gf={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(vf||(vf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(Tf||(Tf={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&Eo.is(n.uri)&&A.string(n.name)}i(t,"is"),e.is=t})($f||($f={})),zg=[` +import{bR as et}from"./index-CAYChmT7.js";var RI=Object.create,Ds=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,Ad=Object.getOwnPropertyNames,EI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,i=(e,t)=>Ds(e,"name",{value:t,configurable:!0}),bI=(e,t)=>function(){return e&&(t=(0,e[Ad(e)[0]])(e=0)),t},H=(e,t)=>function(){return t||(0,e[Ad(e)[0]])((t={exports:{}}).exports,t),t.exports},Vr=(e,t)=>{for(var r in t)Ds(e,r,{get:t[r],enumerable:!0})},Ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ad(t))!CI.call(e,a)&&a!==r&&Ds(e,a,{get:()=>t[a],enumerable:!(n=AI(t,a))||n.enumerable});return e},Ll=(e,t,r)=>(Ed(e,t,"default"),r),Cd=(e,t,r)=>(r=e!=null?RI(EI(e)):{},Ed(Ds(r,"default",{value:e,enumerable:!0}),e)),bd=e=>Ed(Ds({},"__esModule",{value:!0}),e),Dl={};Vr(Dl,{AnnotatedTextEdit:()=>mr,ChangeAnnotation:()=>an,ChangeAnnotationIdentifier:()=>Ke,CodeAction:()=>ef,CodeActionContext:()=>Qc,CodeActionKind:()=>Zc,CodeActionTriggerKind:()=>Xi,CodeDescription:()=>Nc,CodeLens:()=>tf,Color:()=>Co,ColorInformation:()=>Cc,ColorPresentation:()=>bc,Command:()=>nn,CompletionItem:()=>zc,CompletionItemKind:()=>Lc,CompletionItemLabelDetails:()=>Fc,CompletionItemTag:()=>xc,CompletionList:()=>jc,CreateFile:()=>ya,DeleteFile:()=>va,Diagnostic:()=>Vi,DiagnosticRelatedInformation:()=>bo,DiagnosticSeverity:()=>wc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>Vc,DocumentHighlightKind:()=>Wc,DocumentLink:()=>nf,DocumentSymbol:()=>Jc,DocumentUri:()=>Rc,EOL:()=>zg,FoldingRange:()=>Sc,FoldingRangeKind:()=>_c,FormattingOptions:()=>rf,Hover:()=>Bc,InlayHint:()=>pf,InlayHintKind:()=>wo,InlayHintLabelPart:()=>Io,InlineCompletionContext:()=>Tf,InlineCompletionItem:()=>hf,InlineCompletionList:()=>yf,InlineCompletionTriggerKind:()=>gf,InlineValueContext:()=>df,InlineValueEvaluatableExpression:()=>ff,InlineValueText:()=>uf,InlineValueVariableLookup:()=>cf,InsertReplaceEdit:()=>Mc,InsertTextFormat:()=>Dc,InsertTextMode:()=>Gc,Location:()=>Wi,LocationLink:()=>Ec,MarkedString:()=>Yi,MarkupContent:()=>Ta,MarkupKind:()=>So,OptionalVersionedTextDocumentIdentifier:()=>Hi,ParameterInformation:()=>Uc,Position:()=>ie,Range:()=>Q,RenameFile:()=>ga,SelectedCompletionInfo:()=>vf,SelectionRange:()=>af,SemanticTokenModifiers:()=>of,SemanticTokenTypes:()=>sf,SemanticTokens:()=>lf,SignatureInformation:()=>Kc,StringValue:()=>mf,SymbolInformation:()=>Yc,SymbolKind:()=>qc,SymbolTag:()=>Hc,TextDocument:()=>Rf,TextDocumentEdit:()=>qi,TextDocumentIdentifier:()=>Pc,TextDocumentItem:()=>Oc,TextEdit:()=>Yt,URI:()=>Eo,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>Fg,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>$f,WorkspaceSymbol:()=>Xc,integer:()=>Ac,uinteger:()=>Ki});var Rc,Eo,Ac,Ki,ie,Q,Wi,Ec,Co,Cc,bc,_c,Sc,bo,wc,Ic,Nc,Vi,nn,Yt,an,Ke,mr,qi,ya,ga,va,_o,ki,Ku,Fg,Pc,kc,Hi,Oc,So,Ta,Lc,Dc,xc,Mc,Gc,Fc,zc,jc,Yi,Bc,Uc,Kc,Wc,Vc,qc,Hc,Yc,Xc,Jc,Zc,Xi,Qc,ef,tf,rf,nf,af,sf,of,lf,uf,cf,ff,df,wo,Io,pf,mf,hf,yf,gf,vf,Tf,$f,zg,Rf,lh,A,xs=bI({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Rc||(Rc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Eo||(Eo={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ac||(Ac={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ki||(Ki={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Ki.MAX_VALUE),a===Number.MAX_VALUE&&(a=Ki.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.line)&&A.uinteger(a.character)}i(r,"is"),e.is=r})(ie||(ie={})),(function(e){function t(n,a,s,o){if(A.uinteger(n)&&A.uinteger(a)&&A.uinteger(s)&&A.uinteger(o))return{start:ie.create(n,a),end:ie.create(s,o)};if(ie.is(n)&&ie.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ie.is(a.start)&&ie.is(a.end)}i(r,"is"),e.is=r})(Q||(Q={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(A.string(a.uri)||A.undefined(a.uri))}i(r,"is"),e.is=r})(Wi||(Wi={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.targetRange)&&A.string(a.targetUri)&&Q.is(a.targetSelectionRange)&&(Q.is(a.originSelectionRange)||A.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(Ec||(Ec={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.numberRange(a.red,0,1)&&A.numberRange(a.green,0,1)&&A.numberRange(a.blue,0,1)&&A.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(Co||(Co={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&Q.is(a.range)&&Co.is(a.color)}i(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.undefined(a.textEdit)||Yt.is(a))&&(A.undefined(a.additionalTextEdits)||A.typedArray(a.additionalTextEdits,Yt.is))}i(r,"is"),e.is=r})(bc||(bc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={})),(function(e){function t(n,a,s,o,l,u){const c={startLine:n,endLine:a};return A.defined(s)&&(c.startCharacter=s),A.defined(o)&&(c.endCharacter=o),A.defined(l)&&(c.kind=l),A.defined(u)&&(c.collapsedText=u),c}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.uinteger(a.startLine)&&A.uinteger(a.startLine)&&(A.undefined(a.startCharacter)||A.uinteger(a.startCharacter))&&(A.undefined(a.endCharacter)||A.uinteger(a.endCharacter))&&(A.undefined(a.kind)||A.string(a.kind))}i(r,"is"),e.is=r})(Sc||(Sc={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Wi.is(a.location)&&A.string(a.message)}i(r,"is"),e.is=r})(bo||(bo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(wc||(wc={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&A.string(n.href)}i(t,"is"),e.is=t})(Nc||(Nc={})),(function(e){function t(n,a,s,o,l,u){let c={range:n,message:a};return A.defined(s)&&(c.severity=s),A.defined(o)&&(c.code=o),A.defined(l)&&(c.source=l),A.defined(u)&&(c.relatedInformation=u),c}i(t,"create"),e.create=t;function r(n){var a;let s=n;return A.defined(s)&&Q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,bo.is))}i(r,"is"),e.is=r})(Vi||(Vi={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return A.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.title)&&A.string(a.command)}i(r,"is"),e.is=r})(nn||(nn={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&Q.is(o.range)}i(a,"is"),e.is=a})(Yt||(Yt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(A.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(an||(an={})),(function(e){function t(r){const n=r;return A.string(n)}i(t,"is"),e.is=t})(Ke||(Ke={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return Yt.is(o)&&(an.is(o.annotationId)||Ke.is(o.annotationId))}i(a,"is"),e.is=a})(mr||(mr={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Hi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(qi||(qi={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&A.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ya||(ya={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&A.string(a.oldUri)&&A.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ga||(ga={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&A.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||A.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||A.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(va||(va={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>A.string(a.kind)?ya.is(a)||ga.is(a)||va.is(a):qi.is(a)))}i(t,"is"),e.is=t})(_o||(_o={})),ki=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=Yt.insert(e,t):Ke.is(r)?(a=r,n=mr.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=Yt.replace(e,t):Ke.is(r)?(a=r,n=mr.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=Yt.del(e):Ke.is(t)?(n=t,r=mr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=mr.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Ku=class{static{i(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(Ke.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Fg=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ku(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(qi.is(t)){const r=new ki(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new ki(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Hi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new ki(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new ki(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ku,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ya.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=ya.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;an.is(r)||Ke.is(r)?a=r:n=r;let s,o;if(a===void 0?s=ga.create(e,t,n):(o=Ke.is(a)?a:this._changeAnnotations.manage(a),s=ga.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=va.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=va.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)}i(r,"is"),e.is=r})(Pc||(Pc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.integer(a.version)}i(r,"is"),e.is=r})(kc||(kc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&(a.version===null||A.integer(a.version))}i(r,"is"),e.is=r})(Hi||(Hi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.string(a.languageId)&&A.integer(a.version)&&A.string(a.text)}i(r,"is"),e.is=r})(Oc||(Oc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(So||(So={})),(function(e){function t(r){const n=r;return A.objectLiteral(r)&&So.is(n.kind)&&A.string(n.value)}i(t,"is"),e.is=t})(Ta||(Ta={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lc||(Lc={})),(function(e){e.PlainText=1,e.Snippet=2})(Dc||(Dc={})),(function(e){e.Deprecated=1})(xc||(xc={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&A.string(a.newText)&&Q.is(a.insert)&&Q.is(a.replace)}i(r,"is"),e.is=r})(Mc||(Mc={})),(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={})),(function(e){function t(r){const n=r;return n&&(A.string(n.detail)||n.detail===void 0)&&(A.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(Fc||(Fc={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(zc||(zc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(jc||(jc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return A.string(a)||A.objectLiteral(a)&&A.string(a.language)&&A.string(a.value)}i(r,"is"),e.is=r})(Yi||(Yi={})),(function(e){function t(r){let n=r;return!!n&&A.objectLiteral(n)&&(Ta.is(n.contents)||Yi.is(n.contents)||A.typedArray(n.contents,Yi.is))&&(r.range===void 0||Q.is(r.range))}i(t,"is"),e.is=t})(Bc||(Bc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})(Uc||(Uc={})),(function(e){function t(r,n,...a){let s={label:r};return A.defined(n)&&(s.documentation=n),A.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Kc||(Kc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Wc||(Wc={})),(function(e){function t(r,n){let a={range:r};return A.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(Vc||(Vc={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qc||(qc={})),(function(e){e.Deprecated=1})(Hc||(Hc={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(Yc||(Yc={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(Xc||(Xc={})),(function(e){function t(n,a,s,o,l,u){let c={name:n,detail:a,kind:s,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.name)&&A.number(a.kind)&&Q.is(a.range)&&Q.is(a.selectionRange)&&(a.detail===void 0||A.string(a.detail))&&(a.deprecated===void 0||A.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(Jc||(Jc={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Zc||(Zc={})),(function(e){e.Invoked=1,e.Automatic=2})(Xi||(Xi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.typedArray(a.diagnostics,Vi.is)&&(a.only===void 0||A.typedArray(a.only,A.string))&&(a.triggerKind===void 0||a.triggerKind===Xi.Invoked||a.triggerKind===Xi.Automatic)}i(r,"is"),e.is=r})(Qc||(Qc={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):nn.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.title)&&(a.diagnostics===void 0||A.typedArray(a.diagnostics,Vi.is))&&(a.kind===void 0||A.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||nn.is(a.command))&&(a.isPreferred===void 0||A.boolean(a.isPreferred))&&(a.edit===void 0||_o.is(a.edit))}i(r,"is"),e.is=r})(ef||(ef={})),(function(e){function t(n,a){let s={range:n};return A.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.command)||nn.is(a.command))}i(r,"is"),e.is=r})(tf||(tf={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.uinteger(a.tabSize)&&A.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.target)||A.string(a.target))}i(r,"is"),e.is=r})(nf||(nf={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(af||(af={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(sf||(sf={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(of||(of={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(lf||(lf={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.string(a.text)}i(r,"is"),e.is=r})(uf||(uf={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.boolean(a.caseSensitiveLookup)&&(A.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(cf||(cf={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&(A.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(ff||(ff={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.defined(a)&&Q.is(n.stoppedLocation)}i(r,"is"),e.is=r})(df||(df={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})(wo||(wo={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.location===void 0||Wi.is(a.location))&&(a.command===void 0||nn.is(a.command))}i(r,"is"),e.is=r})(Io||(Io={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&ie.is(a.position)&&(A.string(a.label)||A.typedArray(a.label,Io.is))&&(a.kind===void 0||wo.is(a.kind))&&a.textEdits===void 0||A.typedArray(a.textEdits,Yt.is)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.paddingLeft===void 0||A.boolean(a.paddingLeft))&&(a.paddingRight===void 0||A.boolean(a.paddingRight))}i(r,"is"),e.is=r})(pf||(pf={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(mf||(mf={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(hf||(hf={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(yf||(yf={})),(function(e){e.Invoked=0,e.Automatic=1})(gf||(gf={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(vf||(vf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(Tf||(Tf={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&Eo.is(n.uri)&&A.string(n.name)}i(t,"is"),e.is=t})($f||($f={})),zg=[` `,`\r `,"\r"],(function(e){function t(s,o,l,u){return new lh(s,o,l,u)}i(t,"create"),e.create=t;function r(s){let o=s;return!!(A.defined(o)&&A.string(o.uri)&&(A.undefined(o.languageId)||A.string(o.languageId))&&A.uinteger(o.lineCount)&&A.func(o.getText)&&A.func(o.positionAt)&&A.func(o.offsetAt))}i(r,"is"),e.is=r;function n(s,o){let l=s.getText(),u=a(o,(f,d)=>{let m=f.range.start.line-d.range.start.line;return m===0?f.range.start.character-d.range.start.character:m}),c=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],m=s.offsetAt(d.range.start),g=s.offsetAt(d.range.end);if(g<=c)l=l.substring(0,m)+d.newText+l.substring(g,l.length);else throw new Error("Overlapping edit");c=m}return l}i(n,"applyEdits"),e.applyEdits=n;function a(s,o){if(s.length<=1)return s;const l=s.length/2|0,u=s.slice(0,l),c=s.slice(l);a(u,o),a(c,o);let f=0,d=0,m=0;for(;f({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Q().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Rt=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,F=o.boundaryAmplitude,R=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(i,f),Z=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,G=-x/C,ht=$/C,et=M+G*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Vt={draw:_t},Et=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return` +import{p as xt}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{s as gt,g as $t,o as bt,n as wt,a as Ct,b as vt,_ as s,l as O,D as Dt,e as kt,p as At,A as U,y as Q,B as Tt,E as ot}from"./mermaid.core-D8UeR6T-.js";import{p as Bt}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=s(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function V(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(V,"seededRandom");function st(t){let e=0;for(let n=0;n{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,Et=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=_t();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,_=i+b*2,E=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,E,_,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${_} ${E}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Z=it(o.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Z,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Z+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Ft={draw:Et},Vt=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Vt();return` .cynefinDomain { stroke: none; } @@ -59,4 +59,4 @@ import{p as xt}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{s as gt,g as $t,p as bt font-weight: bold; fill: ${t.labelColor}; } - `},"styles"),Gt=Ht,Ut={parser:It,db:Y,renderer:Vt,styles:Gt};export{Ut as diagram}; + `},"styles"),Gt=Ht,Ut={parser:Wt,db:Y,renderer:Ft,styles:Gt};export{Ut as diagram}; diff --git a/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js b/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js similarity index 97% rename from apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js rename to apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js index 97893ee8a1c..c82257adf93 100644 --- a/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js +++ b/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js @@ -1,4 +1,4 @@ -import{c as O,w as I,a as J,f as P,b as E,s as A}from"./chunk-RYQCIY6F-D1Yl7opn.js";import{_ as w,am as v,an as D,ao as H,ap as Y,l,c as _,aq as W,ar as $,ag as j,as as q,ah as R,af as F,at as z,au as K,av as G}from"./mermaid.core-DaDTfY6S.js";import{G as Q}from"./graph-DOmOIIwC.js";import{l as U}from"./layout-D-LzfAck.js";import"./map-DxJ2ADlA.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var C=w((s,t,g)=>Math.max(t,Math.min(g,s)),"clamp"),B=w((s="TB")=>{switch(s){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),V=w(s=>s==="flowchart"||s==="flowchart-v2"||s==="stateDiagram","shouldMergeSelfLoopSegments"),Z=w((s,t,g,m,c)=>{const o=[],r=new Set;if(g.forEach(({start:i,end:n})=>{i!==m&&r.add(i),n!==m&&r.add(n)}),r.forEach(i=>{const n=s.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)}),o.length===0&&g.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)})}),o.length===0)return B(c);const f=o.reduce((i,n)=>({x:i.x+n.x/o.length,y:i.y+n.y/o.length}),{x:0,y:0}),h=f.x-t.x,a=f.y-t.y;return Math.abs(h)>Math.abs(a)?h>0?"right":"left":Math.abs(a)>0?a>0?"bottom":"top":B(c)},"getSelfLoopSide"),ee=w((s,t="top",g=0,m=0)=>{const c=s.x,o=s.y-g,r=s.width/2,f=s.height/2,h=Math.max(36,Math.min(100,s.width*.8)),a=C(Math.max(m,s.width*.35),36,h),i=C(Math.min(s.width,s.height)*.45,24,48);switch(t){case"bottom":{const n=o+f;return[{x:c-a/2,y:n},{x:c-a/2,y:n+i},{x:c+a/2,y:n+i},{x:c+a/2,y:n}]}case"right":{const n=c+r;return[{x:n,y:o-a/2},{x:n+i,y:o-a/2},{x:n+i,y:o+a/2},{x:n,y:o+a/2}]}case"left":{const n=c-r;return[{x:n,y:o-a/2},{x:n-i,y:o-a/2},{x:n-i,y:o+a/2},{x:n,y:o+a/2}]}case"top":default:{const n=o-f;return[{x:c-a/2,y:n},{x:c-a/2,y:n-i},{x:c+a/2,y:n-i},{x:c+a/2,y:n}]}}},"getSelfLoopPoints"),te=w((s,t,g="top",m=0,c={})=>{const r=s.x,f=s.y-m,h=c.width??0,a=c.height??0;switch(g){case"bottom":return{x:r,y:Math.max(...t.map(i=>i.y))+a/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+h/2+4,y:f};case"left":return{x:Math.min(...t.map(i=>i.x))-h/2-4,y:f};case"top":default:return{x:r,y:Math.min(...t.map(i=>i.y))-a/2-4}}},"getSelfLoopLabelPosition"),ne=w((s,t=0,{mergeSelfLoops:g=!0}={})=>{const m=new Map,c=[],o=s.graph()?.rankdir;return s.edges().forEach(r=>{const f=s.edge(r);if(g&&f.selfLoop){const h=f.selfLoop.id;m.has(h)||m.set(h,[]),m.get(h).push({edge:f,start:r.v,end:r.w})}else c.push({edge:f,start:r.v,end:r.w})}),m.forEach(r=>{if(r.length!==3){r.forEach(L=>c.push(L));return}r.sort((L,d)=>L.edge.selfLoop.order-d.edge.selfLoop.order);const[f,h,a]=r,i=f.edge.originalEdge??h.edge.originalEdge??a.edge.originalEdge??h.edge,n=s.node(i.start);if(!n){r.forEach(L=>c.push(L));return}const p={width:h.edge.width,height:h.edge.height},y=Z(s,n,r,i.start,o),X=ee(n,y,t,p.width??0),S=te(n,X,y,t,p),b={...h.edge,...i,id:i.id,points:X,start:i.start,end:i.end,x:S.x,y:S.y,width:p.width,height:p.height,labelStyle:h.edge.labelStyle,fromCluster:f.edge.fromCluster??h.edge.fromCluster??a.edge.fromCluster,toCluster:f.edge.toCluster??h.edge.toCluster??a.edge.toCluster};delete b.selfLoop,delete b.originalEdge,c.push({edge:b,start:b.start,end:b.end})}),c},"getEdgesToRender"),T=w(async(s,t,g,m,c,o)=>{l.warn("Graph in recursive render:XAX",I(t),c);const r=t.graph().rankdir;l.trace("Dir in recursive render - dir:",r);const f=s.insert("g").attr("class","root");t.nodes()?l.info("Recursive render XXX",t.nodes()):l.info("No nodes found for",t),t.edges().length>0&&l.info("Recursive edges",t.edge(t.edges()[0]));const h=f.insert("g").attr("class","clusters"),a=f.insert("g").attr("class","edgePaths"),i=f.insert("g").attr("class","edgeLabels"),n=f.insert("g").attr("class","nodes"),p=V(g);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(c!==void 0){const u=JSON.parse(JSON.stringify(c.clusterData));l.trace(`Setting data for parent cluster XXX +import{c as O,w as I,a as J,f as P,b as E,s as A}from"./chunk-RYQCIY6F-DfJNuYFs.js";import{_ as w,am as v,an as D,ao as H,ap as Y,l,c as _,aq as W,ar as $,ag as j,as as q,ah as R,af as F,at as z,au as K,av as G}from"./mermaid.core-D8UeR6T-.js";import{G as Q}from"./graph-DOmOIIwC.js";import{l as U}from"./layout-D-LzfAck.js";import"./map-DxJ2ADlA.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var C=w((s,t,g)=>Math.max(t,Math.min(g,s)),"clamp"),B=w((s="TB")=>{switch(s){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),V=w(s=>s==="flowchart"||s==="flowchart-v2"||s==="stateDiagram","shouldMergeSelfLoopSegments"),Z=w((s,t,g,m,c)=>{const o=[],r=new Set;if(g.forEach(({start:i,end:n})=>{i!==m&&r.add(i),n!==m&&r.add(n)}),r.forEach(i=>{const n=s.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)}),o.length===0&&g.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)})}),o.length===0)return B(c);const f=o.reduce((i,n)=>({x:i.x+n.x/o.length,y:i.y+n.y/o.length}),{x:0,y:0}),h=f.x-t.x,a=f.y-t.y;return Math.abs(h)>Math.abs(a)?h>0?"right":"left":Math.abs(a)>0?a>0?"bottom":"top":B(c)},"getSelfLoopSide"),ee=w((s,t="top",g=0,m=0)=>{const c=s.x,o=s.y-g,r=s.width/2,f=s.height/2,h=Math.max(36,Math.min(100,s.width*.8)),a=C(Math.max(m,s.width*.35),36,h),i=C(Math.min(s.width,s.height)*.45,24,48);switch(t){case"bottom":{const n=o+f;return[{x:c-a/2,y:n},{x:c-a/2,y:n+i},{x:c+a/2,y:n+i},{x:c+a/2,y:n}]}case"right":{const n=c+r;return[{x:n,y:o-a/2},{x:n+i,y:o-a/2},{x:n+i,y:o+a/2},{x:n,y:o+a/2}]}case"left":{const n=c-r;return[{x:n,y:o-a/2},{x:n-i,y:o-a/2},{x:n-i,y:o+a/2},{x:n,y:o+a/2}]}case"top":default:{const n=o-f;return[{x:c-a/2,y:n},{x:c-a/2,y:n-i},{x:c+a/2,y:n-i},{x:c+a/2,y:n}]}}},"getSelfLoopPoints"),te=w((s,t,g="top",m=0,c={})=>{const r=s.x,f=s.y-m,h=c.width??0,a=c.height??0;switch(g){case"bottom":return{x:r,y:Math.max(...t.map(i=>i.y))+a/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+h/2+4,y:f};case"left":return{x:Math.min(...t.map(i=>i.x))-h/2-4,y:f};case"top":default:return{x:r,y:Math.min(...t.map(i=>i.y))-a/2-4}}},"getSelfLoopLabelPosition"),ne=w((s,t=0,{mergeSelfLoops:g=!0}={})=>{const m=new Map,c=[],o=s.graph()?.rankdir;return s.edges().forEach(r=>{const f=s.edge(r);if(g&&f.selfLoop){const h=f.selfLoop.id;m.has(h)||m.set(h,[]),m.get(h).push({edge:f,start:r.v,end:r.w})}else c.push({edge:f,start:r.v,end:r.w})}),m.forEach(r=>{if(r.length!==3){r.forEach(L=>c.push(L));return}r.sort((L,d)=>L.edge.selfLoop.order-d.edge.selfLoop.order);const[f,h,a]=r,i=f.edge.originalEdge??h.edge.originalEdge??a.edge.originalEdge??h.edge,n=s.node(i.start);if(!n){r.forEach(L=>c.push(L));return}const p={width:h.edge.width,height:h.edge.height},y=Z(s,n,r,i.start,o),X=ee(n,y,t,p.width??0),S=te(n,X,y,t,p),b={...h.edge,...i,id:i.id,points:X,start:i.start,end:i.end,x:S.x,y:S.y,width:p.width,height:p.height,labelStyle:h.edge.labelStyle,fromCluster:f.edge.fromCluster??h.edge.fromCluster??a.edge.fromCluster,toCluster:f.edge.toCluster??h.edge.toCluster??a.edge.toCluster};delete b.selfLoop,delete b.originalEdge,c.push({edge:b,start:b.start,end:b.end})}),c},"getEdgesToRender"),T=w(async(s,t,g,m,c,o)=>{l.warn("Graph in recursive render:XAX",I(t),c);const r=t.graph().rankdir;l.trace("Dir in recursive render - dir:",r);const f=s.insert("g").attr("class","root");t.nodes()?l.info("Recursive render XXX",t.nodes()):l.info("No nodes found for",t),t.edges().length>0&&l.info("Recursive edges",t.edge(t.edges()[0]));const h=f.insert("g").attr("class","clusters"),a=f.insert("g").attr("class","edgePaths"),i=f.insert("g").attr("class","edgeLabels"),n=f.insert("g").attr("class","nodes"),p=V(g);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(c!==void 0){const u=JSON.parse(JSON.stringify(c.clusterData));l.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,u.height,` Parent cluster`,c.height),t.setNode(c.id,u),t.parent(d)||(l.trace("Setting parent",d,c.id),t.setParent(d,c.id,u))}if(l.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),e?.clusterNode){l.info("Cluster identified XBX",d,e.width,t.node(d));const{ranksep:u,nodesep:x}=t.graph();e.graph.setGraph({...e.graph.graph(),ranksep:u+25,nodesep:x});const N=await T(n,e.graph,g,m,t.node(d),o),M=N.elem;W(e,M),e.diff=N.diff||0,l.info("New compound node after recursive render XAX",d,"width",e.width,"height",e.height),$(M,e)}else t.children(d).length>0?(l.trace("Cluster - the non recursive path XBX",d,e.id,e,e.width,"Graph:",t),l.trace(P(e.id,t)),E.set(e.id,{id:P(e.id,t),node:e})):(l.trace("Node - the non recursive path XAX",d,n,t.node(d),r),await j(n,t.node(d),{config:o,dir:r}))})),await w(async()=>{const d=t.edges().map(async function(e){const u=t.edge(e.v,e.w,e.name);if(l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),l.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),l.info("Fix",E,"ids:",e.v,e.w,"Translating: ",E.get(e.v),E.get(e.w)),p&&u.selfLoop){if(u.selfLoop.order!==1)return;const x=u.id;u.id=u.selfLoop.id,await G(i,u),u.id=x;return}await G(i,u)});await Promise.all(d)},"processEdges")(),l.info("Graph before layout:",JSON.stringify(I(t))),l.info("############################################# XXX"),l.info("### Layout ### XXX"),l.info("############################################# XXX"),U(t),l.info("Graph after layout:",JSON.stringify(I(t)));let X=0,{subGraphTitleTotalMargin:S}=q(o);await Promise.all(A(t).map(async function(d){const e=t.node(d);if(l.info("Position XBX => "+d+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e?.clusterNode)e.y+=S,l.info("A tainted cluster node XBX1",d,e.id,e.width,e.height,e.x,e.y,t.parent(d)),E.get(e.id).node=e,R(e);else if(t.children(d).length>0){l.info("A pure cluster node XBX1",d,e.id,e.x,e.y,e.width,e.height,t.parent(d)),e.height+=S,t.node(e.parentId);const u=e?.padding/2||0,x=e?.labelBBox?.height||0,N=x-u||0;l.debug("OffsetY",N,"labelHeight",x,"halfPadding",u),await F(h,e),E.get(e.id).node=e}else{const u=t.node(e.parentId);e.y+=S/2,l.info("A regular node XBX1 - using the padding",e.id,"parent",e.parentId,e.width,e.height,e.x,e.y,"offsetY",e.offsetY,"parent",u,u?.offsetY,e),R(e)}}));const b=S/2;return ne(t,b,{mergeSelfLoops:p}).forEach(function({edge:d,start:e,end:u}){l.info("Edge "+e+" -> "+u+": "+JSON.stringify(d),d),d.points.forEach(k=>k.y+=b);const x=t.node(e),N=t.node(u),M=z(a,d,E,g,x,N,m);K(d,M)}),t.nodes().forEach(function(d){const e=t.node(d);l.info(d,e.type,e.diff),e.isGroup&&(X=e.diff)}),l.warn("Returning from recursive render XAX",f,X),{elem:f,diff:X}},"recursiveRender"),le=w(async(s,t)=>{const g=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:s.direction,nodesep:s.config?.nodeSpacing||s.config?.flowchart?.nodeSpacing||s.nodeSpacing,ranksep:s.config?.rankSpacing||s.config?.flowchart?.rankSpacing||s.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),m=t.select("g");v(m,s.markers,s.type,s.diagramId),D(),H(),Y(),O(),s.nodes.forEach(o=>{g.setNode(o.id,{...o}),o.parentId&&g.setParent(o.id,o.parentId)}),l.debug("Edges:",s.edges),s.edges.forEach(o=>{if(o.start===o.end){const r=o.start,f=r+"---"+r+"---1",h=r+"---"+r+"---2",a=g.node(r);g.setNode(f,{domId:f,id:f,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),g.setParent(f,a.parentId),g.setNode(h,{domId:h,id:h,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),g.setParent(h,a.parentId);const i=structuredClone(o),n=structuredClone(o),p=structuredClone(o),y=structuredClone(o);n.originalEdge=i,n.selfLoop={id:i.id,order:0},p.originalEdge=i,p.selfLoop={id:i.id,order:1},y.originalEdge=i,y.selfLoop={id:i.id,order:2},n.label="",n.arrowTypeEnd="none",n.endLabelLeft="",n.endLabelRight="",n.startLabelLeft="",n.id=r+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=r+"-cyclic-special-mid",y.label="",y.startLabelRight="",y.startLabelLeft="",y.arrowTypeStart="none",a.isGroup&&(n.fromCluster=r,y.toCluster=r),y.id=r+"-cyclic-special-2",y.arrowTypeStart="none",g.setEdge(r,f,n,r+"-cyclic-special-0"),g.setEdge(f,h,p,r+"-cyclic-special-1"),g.setEdge(h,r,y,r+"-cyclic-special-2")}else g.setEdge(o.start,o.end,{...o},o.id)}),l.warn("Graph at first:",JSON.stringify(I(g))),J(g),l.warn("Graph after XAX:",JSON.stringify(I(g)));const c=_();await T(m,g,s.type,s.diagramId,void 0,c)},"render");export{ne as getEdgesToRender,le as render}; diff --git a/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js b/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js similarity index 91% rename from apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js rename to apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js index 74f8f444bf8..ab3bbac4e0b 100644 --- a/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js +++ b/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js @@ -1,3 +1,3 @@ -import{p as re}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as D,d as ue,A as xe,q as fe,B as ge,z as M,D as he,i as y,w as P,ak as pe}from"./mermaid.core-DaDTfY6S.js";import{p as be,i as ve}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var T="position frame",$="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){B={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:T,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&aNumber.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let c=`${P(a,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{ -`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="
")}const m=r!==void 0;m&&(c+=`

${r}`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:$,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[T]:V,[S]:J},Be={[$]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=D(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var De=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+` -`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=D(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),Te={draw:De},$e=o(e=>"","getStyles"),Ne=$e,Ue={parser:Ee,db:F,renderer:Te,styles:Ne};export{Ue as diagram}; +import{p as re}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{o as oe,n as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,d as ue,z as xe,p as fe,A as ge,y as M,B as he,i as y,w as P,ak as pe}from"./mermaid.core-D8UeR6T-.js";import{p as be,i as ve}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){B={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&aNumber.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let c=`${P(a,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{ +`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="
")}const m=r!==void 0;m&&(c+=`

${r}`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+` +`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Ue={parser:Ee,db:F,renderer:$e,styles:Ne};export{Ue as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js b/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js similarity index 84% rename from apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js rename to apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js index d4551abd9a6..9d16fb78dfa 100644 --- a/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js +++ b/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js @@ -1,4 +1,4 @@ -import{p as me}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as w,W as ge,z as te,B as Q,F as ye,e as Se,l as ee,be as B,d as j,b as ve,a as xe,o as be,p as we,g as Ce,s as Te,D as Le,bf as $e,q as Ae}from"./mermaid.core-DaDTfY6S.js";import{s as Fe}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{p as Ne}from"./cynefin-VYW2F7L2-0NmB13eq.js";import{b as I}from"./defaultLocale-DX6XiGOO.js";import{o as K}from"./ordinal-Cboi1Yqb.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";import"./init-Gi6I4Gst.js";function Me(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function _e(){return this.eachAfter(Me)}function ke(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function ze(e,a){for(var n=this,l=[n],r,o,h=-1;n=l.pop();)if(e.call(a,n,++h,this),r=n.children)for(o=r.length-1;o>=0;--o)l.push(r[o]);return this}function Ve(e,a){for(var n=this,l=[n],r=[],o,h,d,g=-1;n=l.pop();)if(r.push(n),o=n.children)for(h=0,d=o.length;h=0;)n+=l[r].value;a.value=n})}function Be(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function We(e){for(var a=this,n=Ee(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var r=l.length;e!==n;)l.splice(r,0,e),e=e.parent;return l}function Ee(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),r=null;for(e=n.pop(),a=l.pop();e===a;)r=e,e=n.pop(),a=l.pop();return r}function Re(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function He(){return Array.from(this)}function Ie(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function Oe(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*qe(){var e=this,a,n=[e],l,r,o;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(r=0,o=l.length;r=0;--d)r.push(o=h[d]=new U(h[d])),o.parent=l,o.depth=l.depth+1;return n.eachBefore(Ue)}function Ge(){return ae(this).eachBefore(je)}function Xe(e){return e.children}function Ye(e){return Array.isArray(e)?e[1]:null}function je(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function U(e){this.data=e,this.depth=this.height=0,this.parent=null}U.prototype=ae.prototype={constructor:U,count:_e,each:ke,eachAfter:Ve,eachBefore:ze,find:De,sum:Pe,sort:Be,path:We,ancestors:Re,descendants:He,leaves:Ie,links:Oe,copy:Ge,[Symbol.iterator]:qe};function Ze(e){if(typeof e!="function")throw new Error;return e}function O(){return 0}function q(e){return function(){return e}}function Je(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ke(e,a,n,l,r){for(var o=e.children,h,d=-1,g=o.length,c=e.value&&(l-a)/e.value;++dN&&(N=c),M=u*u*E,$=Math.max(N/M,M/y),$>V){u-=c;break}V=$}h.push(g={value:u,dice:x1?l:1)},n})(et);function nt(){var e=at,a=!1,n=1,l=1,r=[0],o=O,h=O,d=O,g=O,c=O;function p(s){return s.x0=s.y0=0,s.x1=n,s.y1=l,s.eachBefore(b),r=[0],a&&s.eachBefore(Je),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,u=s.x1-x,y=s.y1-x;u{$e(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){Ae(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function oe(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const r={name:l.name,children:l.type==="Leaf"?void 0:[]};for(r.classSelector=l?.classSelector,l?.cssCompiledStyles&&(r.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(r.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(r);else{const o=n[n.length-1].node;o.children?o.children.push(r):o.children=[r]}l.type!=="Leaf"&&n.push({node:r,level:l.level})}),a}w(oe,"buildHierarchy");var lt=w((e,a)=>{me(e,a);const n=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&a.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const h=o.item;if(!h)continue;const d=o.indent?parseInt(o.indent):0,g=rt(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],p=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:p};n.push(b)}const l=oe(n),r=w((o,h)=>{for(const d of o)a.addNode(d,h),d.children&&d.children.length>0&&r(d.children,h+1)},"addNodesRecursively");r(l,0)},"populate"),rt=w(e=>e.name?String(e.name):"","getItemName"),ce={parser:{yy:void 0},parse:w(async e=>{try{const n=await Ne("treemap",e);ee.debug("Treemap AST:",n);const l=ce.parser?.yy;if(!(l instanceof ie))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");lt(n,l)}catch(a){throw ee.error("Error parsing treemap:",a),a}},"parse")},st=10,W=10,G=25,it=w((e,a,n,l)=>{const r=l.db,o=r.getConfig(),h=o.padding??st,d=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:c}=te();if(!g)return;const p=d?30:0,b=ye(a),s=o.nodeWidth?o.nodeWidth*W:960,x=o.nodeHeight?o.nodeHeight*W:500,S=s,v=x+p;b.attr("viewBox",`0 0 ${S} ${v}`),Se(b,v,S,o.useMaxWidth);let u;try{const t=o.valueFormat||",";if(t==="$0,0")u=w(i=>"$"+I(",")(i),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const i=/\.\d+/.exec(t),f=i?i[0]:"";u=w(C=>"$"+I(","+f)(C),"valueFormat")}else if(t.startsWith("$")){const i=t.substring(1);u=w(f=>"$"+I(i||"")(f),"valueFormat")}else u=I(t)}catch(t){ee.error("Error creating format function:",t),u=I(",")}const y=K().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=K().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=K().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=ae(g).sum(t=>t.value??0).sort((t,i)=>(i.value??0)-(t.value??0)),ne=nt().size([s,x]).paddingTop(t=>t.children&&t.children.length>0?G+W:0).paddingInner(h).paddingLeft(t=>t.children&&t.children.length>0?W:0).paddingRight(t=>t.children&&t.children.length>0?W:0).paddingBottom(t=>t.children&&t.children.length>0?W:0).round(!0)(E),he=ne.descendants().filter(t=>t.children&&t.children.length>0),R=V.selectAll(".treemapSection").data(he).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);R.append("rect").attr("width",t=>t.x1-t.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),R.append("clipPath").attr("id",(t,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",G),R.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,i)=>`treemapSection section${i}`).attr("fill",t=>y(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>N(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const i=B({cssCompiledStyles:t.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("clip-path",(t,i)=>`url(#clip-section-${a}-${i})`).attr("style",t=>{if(t.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const i=j(this),f=t.data.name;i.text(f);const C=t.x1-t.x0,L=6;let T;o.showValues!==!1&&t.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=i.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){i.text("..."),_.getComputedTextLength()>m&&i.text("");break}if(i.text(z+"..."),_.getComputedTextLength()<=m)break}}}),o.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?u(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const le=ne.leaves(),A=le.length>20,de=A?16:38,X=A?14:28,D=A?4:8,H=A?4:6,Z=A?2:4,re=A?8:10,J=A?1:2,Y=V.selectAll(".treemapLeafGroup").data(le).enter().append("g").attr("class",(t,i)=>`treemapNode treemapLeafGroup leaf${i}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);Y.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("style",t=>B({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(t,i)=>`clip-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: middle; font-size: ${de}px;fill:`+$(t.data.name)+";",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${a}-${i})`).text(t=>t.data.name).each(function(t){const i=j(this),f=t.x1-t.x0,C=t.y1-t.y0,L=i.node(),T=f-2*Z,P=C-2*Z;if(TT&&m>D;)m--,i.style("font-size",`${m}px`);let F=Math.max(H,Math.min(X,Math.round(m*_))),k=m+J+F;for(;k>P&&m>D&&(m--,F=Math.max(H,Math.min(X,Math.round(m*_))),!(FT||m(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+$(i.data.name)+";",C=B({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?u(i.value):"").each(function(i){const f=j(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=j(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(i.y1-i.y0)/2+T/2+J;f.attr("y",F);const k=i.x1-i.x0,se=i.y1-i.y0-4,fe=k-2*Z;f.node().getComputedTextLength()>fe||F+m>se||m{const a=ge(),n=te(),l=Q(a,n.themeVariables),r=Q(ht,e),o=r.titleColor??l.titleColor,h=r.labelColor??l.textColor,d=r.valueColor??l.textColor;return` +import{p as me}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as w,E as ge,y as te,A as Q,D as ye,e as Se,l as ee,be as B,d as j,b as ve,a as xe,n as be,o as we,g as Ce,s as Te,B as Le,bf as $e,p as Ae}from"./mermaid.core-D8UeR6T-.js";import{s as Fe}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{p as Ne}from"./cynefin-VYW2F7L2-DZba3nFe.js";import{b as I}from"./defaultLocale-DX6XiGOO.js";import{o as K}from"./ordinal-Cboi1Yqb.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";import"./init-Gi6I4Gst.js";function Me(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function _e(){return this.eachAfter(Me)}function ke(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function ze(e,a){for(var n=this,l=[n],r,o,h=-1;n=l.pop();)if(e.call(a,n,++h,this),r=n.children)for(o=r.length-1;o>=0;--o)l.push(r[o]);return this}function Ve(e,a){for(var n=this,l=[n],r=[],o,h,d,g=-1;n=l.pop();)if(r.push(n),o=n.children)for(h=0,d=o.length;h=0;)n+=l[r].value;a.value=n})}function Be(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function Ee(e){for(var a=this,n=Re(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var r=l.length;e!==n;)l.splice(r,0,e),e=e.parent;return l}function Re(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),r=null;for(e=n.pop(),a=l.pop();e===a;)r=e,e=n.pop(),a=l.pop();return r}function We(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function He(){return Array.from(this)}function Ie(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function Oe(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*Ge(){var e=this,a,n=[e],l,r,o;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(r=0,o=l.length;r=0;--d)r.push(o=h[d]=new U(h[d])),o.parent=l,o.depth=l.depth+1;return n.eachBefore(Ue)}function qe(){return ae(this).eachBefore(je)}function Xe(e){return e.children}function Ye(e){return Array.isArray(e)?e[1]:null}function je(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function U(e){this.data=e,this.depth=this.height=0,this.parent=null}U.prototype=ae.prototype={constructor:U,count:_e,each:ke,eachAfter:Ve,eachBefore:ze,find:De,sum:Pe,sort:Be,path:Ee,ancestors:We,descendants:He,leaves:Ie,links:Oe,copy:qe,[Symbol.iterator]:Ge};function Ze(e){if(typeof e!="function")throw new Error;return e}function O(){return 0}function G(e){return function(){return e}}function Je(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ke(e,a,n,l,r){for(var o=e.children,h,d=-1,g=o.length,c=e.value&&(l-a)/e.value;++dN&&(N=c),M=u*u*R,$=Math.max(N/M,M/y),$>V){u-=c;break}V=$}h.push(g={value:u,dice:x1?l:1)},n})(et);function nt(){var e=at,a=!1,n=1,l=1,r=[0],o=O,h=O,d=O,g=O,c=O;function p(s){return s.x0=s.y0=0,s.x1=n,s.y1=l,s.eachBefore(b),r=[0],a&&s.eachBefore(Je),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,u=s.x1-x,y=s.y1-x;u{$e(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){Ae(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function oe(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const r={name:l.name,children:l.type==="Leaf"?void 0:[]};for(r.classSelector=l?.classSelector,l?.cssCompiledStyles&&(r.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(r.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(r);else{const o=n[n.length-1].node;o.children?o.children.push(r):o.children=[r]}l.type!=="Leaf"&&n.push({node:r,level:l.level})}),a}w(oe,"buildHierarchy");var lt=w((e,a)=>{me(e,a);const n=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&a.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const h=o.item;if(!h)continue;const d=o.indent?parseInt(o.indent):0,g=rt(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],p=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:p};n.push(b)}const l=oe(n),r=w((o,h)=>{for(const d of o)a.addNode(d,h),d.children&&d.children.length>0&&r(d.children,h+1)},"addNodesRecursively");r(l,0)},"populate"),rt=w(e=>e.name?String(e.name):"","getItemName"),ce={parser:{yy:void 0},parse:w(async e=>{try{const n=await Ne("treemap",e);ee.debug("Treemap AST:",n);const l=ce.parser?.yy;if(!(l instanceof ie))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");lt(n,l)}catch(a){throw ee.error("Error parsing treemap:",a),a}},"parse")},st=10,E=10,q=25,it=w((e,a,n,l)=>{const r=l.db,o=r.getConfig(),h=o.padding??st,d=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:c}=te();if(!g)return;const p=d?30:0,b=ye(a),s=o.nodeWidth?o.nodeWidth*E:960,x=o.nodeHeight?o.nodeHeight*E:500,S=s,v=x+p;b.attr("viewBox",`0 0 ${S} ${v}`),Se(b,v,S,o.useMaxWidth);let u;try{const t=o.valueFormat||",";if(t==="$0,0")u=w(i=>"$"+I(",")(i),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const i=/\.\d+/.exec(t),f=i?i[0]:"";u=w(C=>"$"+I(","+f)(C),"valueFormat")}else if(t.startsWith("$")){const i=t.substring(1);u=w(f=>"$"+I(i||"")(f),"valueFormat")}else u=I(t)}catch(t){ee.error("Error creating format function:",t),u=I(",")}const y=K().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=K().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=K().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),R=ae(g).sum(t=>t.value??0).sort((t,i)=>(i.value??0)-(t.value??0)),ne=nt().size([s,x]).paddingTop(t=>t.children&&t.children.length>0?q+E:0).paddingInner(h).paddingLeft(t=>t.children&&t.children.length>0?E:0).paddingRight(t=>t.children&&t.children.length>0?E:0).paddingBottom(t=>t.children&&t.children.length>0?E:0).round(!0)(R),he=ne.descendants().filter(t=>t.children&&t.children.length>0),W=V.selectAll(".treemapSection").data(he).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);W.append("rect").attr("width",t=>t.x1-t.x0).attr("height",q).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),W.append("clipPath").attr("id",(t,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",q),W.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,i)=>`treemapSection section${i}`).attr("fill",t=>y(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>N(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const i=B({cssCompiledStyles:t.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",q/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("clip-path",(t,i)=>`url(#clip-section-${a}-${i})`).attr("style",t=>{if(t.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const i=j(this),f=t.data.name;i.text(f);const C=t.x1-t.x0,L=6;let T;o.showValues!==!1&&t.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=i.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){i.text("..."),_.getComputedTextLength()>m&&i.text("");break}if(i.text(z+"..."),_.getComputedTextLength()<=m)break}}}),o.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",q/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?u(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const le=ne.leaves(),A=le.length>20,de=A?16:38,X=A?14:28,D=A?4:8,H=A?4:6,Z=A?2:4,re=A?8:10,J=A?1:2,Y=V.selectAll(".treemapLeafGroup").data(le).enter().append("g").attr("class",(t,i)=>`treemapNode treemapLeafGroup leaf${i}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);Y.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("style",t=>B({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(t,i)=>`clip-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: middle; font-size: ${de}px;fill:`+$(t.data.name)+";",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${a}-${i})`).text(t=>t.data.name).each(function(t){const i=j(this),f=t.x1-t.x0,C=t.y1-t.y0,L=i.node(),T=f-2*Z,P=C-2*Z;if(TT&&m>D;)m--,i.style("font-size",`${m}px`);let F=Math.max(H,Math.min(X,Math.round(m*_))),k=m+J+F;for(;k>P&&m>D&&(m--,F=Math.max(H,Math.min(X,Math.round(m*_))),!(FT||m(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+$(i.data.name)+";",C=B({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?u(i.value):"").each(function(i){const f=j(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=j(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(i.y1-i.y0)/2+T/2+J;f.attr("y",F);const k=i.x1-i.x0,se=i.y1-i.y0-4,fe=k-2*Z;f.node().getComputedTextLength()>fe||F+m>se||m{const a=ge(),n=te(),l=Q(a,n.themeVariables),r=Q(ht,e),o=r.titleColor??l.titleColor,h=r.labelColor??l.textColor,d=r.valueColor??l.textColor;return` .treemapNode.section { stroke: ${r.sectionStrokeColor}; stroke-width: ${r.sectionStrokeWidth}; diff --git a/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js b/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js similarity index 85% rename from apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js rename to apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js index b03d3cc85d3..6d286c13eef 100644 --- a/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js +++ b/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js @@ -1,4 +1,4 @@ -import{p as B}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as b,B as u,F as $,e as C,l as m,b as S,a as D,o as T,p as z,g as F,s as P,z as E,D as A,q as W}from"./mermaid.core-DaDTfY6S.js";import{p as _}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var N=A.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=F,this.setAccDescription=P}static{b(this,"PacketDB")}getConfig(){const t=u({...N,...E().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=b((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(e),M(e,r)},"parse")},I=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:t}={})=>{const e=u(q,t);return` +import{p as B}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as b,A as u,D as $,e as C,l as m,b as S,a as D,n as T,o as P,g as z,s as A,y as E,B as F,p as W}from"./mermaid.core-D8UeR6T-.js";import{p as _}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var N=F.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{b(this,"PacketDB")}getConfig(){const t=u({...N,...E().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=b((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(e),M(e,r)},"parse")},I=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:t}={})=>{const e=u(G,t);return` .packetByte { font-size: ${e.byteFontSize}; } @@ -21,4 +21,4 @@ import{p as B}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as b,B as u,F as $,e a stroke-width: ${e.blockStrokeWidth}; fill: ${e.blockFillColor}; } - `},"styles"),J={parser:v,get db(){return new w},renderer:j,styles:G};export{J as diagram}; + `},"styles"),J={parser:v,get db(){return new w},renderer:j,styles:H};export{J as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js b/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js similarity index 82% rename from apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js rename to apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js index cf50cd80ce5..c8ba7bad2e1 100644 --- a/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js +++ b/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js @@ -1,7 +1,7 @@ -import{I as X}from"./chunk-2Q5K7J3B-DqVWYlyS.js";import{p as O}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{o as G,b as Y,s as F,p as P,g as j,a as q,_ as f,B as A,l as D,F as Z,e as U,z as N,q as J,i as K,ai as Q,D as ee,aj as te}from"./mermaid.core-DaDTfY6S.js";import{p as ne}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var E=/[─━│┃└┗├┣]/,S=/[└┗├┣]/,re=/[─━]/,V=/^[\s│┃]+$/,$=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,k=/^\s*%%/,ie=" ";function L(n){return n.some(e=>E.test(e))}f(L,"isBoxDrawingFormat");function _(n){for(const e of n){const t=S.exec(e);if(t?.index&&t.index>0)return t.index}return 4}f(_,"inferSegmentWidth");function M(n,e){return n.replace(/\bline\s+(\d+)\b/gi,(t,r)=>{const i=parseInt(r,10),a=e.get(i);return a?`line ${a}`:t})}f(M,"remapErrorLines");function R(n){const e=n.split(` +import{I as X}from"./chunk-2Q5K7J3B-X9yuSZVx.js";import{p as O}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{n as G,b as Y,s as P,o as j,g as F,a as Z,_ as f,A,l as D,D as q,e as U,y as N,p as J,i as K,ai as Q,B as ee,aj as te}from"./mermaid.core-D8UeR6T-.js";import{p as ne}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var E=/[─━│┃└┗├┣]/,S=/[└┗├┣]/,re=/[─━]/,V=/^[\s│┃]+$/,$=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,k=/^\s*%%/,ie=" ";function L(n){return n.some(e=>E.test(e))}f(L,"isBoxDrawingFormat");function _(n){for(const e of n){const t=S.exec(e);if(t?.index&&t.index>0)return t.index}return 4}f(_,"inferSegmentWidth");function M(n,e){return n.replace(/\bline\s+(\d+)\b/gi,(t,r)=>{const i=parseInt(r,10),a=e.get(i);return a?`line ${a}`:t})}f(M,"remapErrorLines");function R(n){const e=n.split(` `),t=new Map;let r=-1;for(const[s,o]of e.entries())if(o.trim()==="treeView-beta"){r=s;break}if(r===-1)return{text:n,lineMap:t};const i=[];for(let s=r+1;s({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=f(()=>{x.reset(),J()},"clear"),se=f(()=>x.records.stack[0],"getRoot"),ae=f(()=>x.records.cnt,"getCount"),ce=ee.treeView,le=f(()=>A(ce,N().treeView),"getConfig"),de=f((n,e,t,r,i,a)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const c={id:x.records.cnt++,level:n,name:e,nodeType:t,icon:i,cssClass:r,description:a,children:[]};x.records.stack[x.records.stack.length-1].children.push(c),x.records.stack.push(c)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:q,getAccDescription:j,getDiagramTitle:P,setAccDescription:F,setAccTitle:Y,setDiagramTitle:G},I=he,pe=f(n=>{O(n,I);for(const e of n.nodes){const t=typeof e.indent=="number"?e.indent:0;let r=e.name;const i=r.endsWith("/");i&&(r=r.slice(0,-1));const a=i?"directory":"file",c=e.classAnnotation||void 0,l=e.iconAnnotation,s=l!==void 0?l||"none":void 0,o=e.descAnnotation||void 0,h=o?K(o,N()):void 0;I.addNode(t,r,a,c,s,h)}},"populate"),fe={parse:f(async n=>{const{text:e,lineMap:t}=R(n);try{const r=await ne("treeView",e);D.debug(r),pe(r)}catch(r){throw t.size>0&&r instanceof Error&&(r.message=M(r.message,t)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function z(n,e){const t=e?.filenameIcons?.[n];if(t)return t;const r=n.lastIndexOf(".");if(r>0){const i=n.substring(r).toLowerCase(),a=e?.extensionIcons;return a?.[i]??a?.[i.slice(1)]}}f(z,"detectIcon");function C(n,e){return n.includes(":")?n:n in b.icons||!e?`${b.prefix}:${n}`:`${e}:${n}`}f(C,"qualifyIcon");function B(n,e){if(n.icon!=="none"){if(n.icon)return C(n.icon,e.defaultIconPack);if(e.showIcons){if(n.nodeType==="file"){const t=z(n.name,e);if(t==="none")return;if(t)return C(t,e.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}f(B,"getNodeIcon");te([{name:b.prefix,icons:b}]);var y=14,ge=4,ue=16,H=f((n,e)=>`tv-icon-${n}-${e.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),we=f(async(n,e,t,r)=>{const i=new Set,a=f(s=>{const o=B(s,t);o&&i.add(o),s.children.forEach(a)},"collect");if(a(e),i.size===0)return;const c=await Promise.all([...i].map(async s=>({icon:s,svg:await Q(s,{height:y,width:y})}))),l=n.append("defs");for(const{icon:s,svg:o}of c)l.append("g").attr("id",H(r,s)).html(o)},"injectIconDefs"),me=f((n,e,t,r,i,a)=>{const c=r.append("g");let l="treeView-node-label";t.nodeType==="directory"&&(l+=" treeView-node-dir"),t.cssClass&&(l+=` ${t.cssClass}`);const s=y+ge,o=B(t,i),h=o!==void 0;o&&c.append("use").attr("xlink:href",`#${H(a,o)}`).attr("x",n+i.paddingX).attr("y",e+i.paddingY).attr("class","treeView-node-icon");const p=c.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:w}=p.node().getBBox(),g=d+i.paddingY*2,m=n+i.paddingX+(h?s:0);p.attr("x",m),p.attr("y",e+g/2);const u=m+w,v=w+i.paddingX*2+(h?s:0);return t.BBox={x:n,y:e,width:v,height:g},t.cssClass?.split(/\s+/).includes("highlight")&&c.insert("rect",":first-child").attr("x",n).attr("y",e+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:t,nodeGroup:c,labelRightEdge:u,centerY:e+g/2}},"positionLabel"),T=f((n,e,t,r,i,a)=>n.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),xe=f((n,e,t,r)=>{let i=0,a=0;const c=[],l=f((h,p,d,w)=>{const g=w*(d.rowIndent+d.paddingX),m=me(g,i,p,h,d,r);c.push(m);const{height:u,width:v}=p.BBox;T(h,g-d.rowIndent,i+u/2,g,i+u/2,d.lineThickness),a=Math.max(a,g+v),i+=u},"drawNode"),s=f((h,p=0)=>{l(n,h,t,p),h.children.forEach(m=>{s(m,p+1)});const{x:d,y:w,height:g}=h.BBox;if(h.children.length){const{y:m,height:u}=h.children[h.children.length-1].BBox;T(n,d+t.paddingX,w+g,d+t.paddingX,m+u/2+t.lineThickness/2,t.lineThickness)}},"processNode");s(e);const o=c.filter(h=>h.node.description);if(o.length>0){const p=Math.max(...c.map(d=>d.labelRightEdge))+ue;for(const d of o){const g=d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",p).attr("y",d.centerY).node().getBBox();a=Math.max(a,p+g.width+t.paddingX)}}for(const h of c)if(h.node.cssClass?.split(/\s+/).includes("highlight")){const p=h.nodeGroup.select(".treeView-highlight-bg");if(!p.empty()){const d=a-h.node.BBox.x+8;p.attr("width",d),a=Math.max(a,h.node.BBox.x+d+2)}}return{totalHeight:i,totalWidth:a}},"drawTree"),ve=f(async(n,e,t,r)=>{D.debug(`Rendering treeView diagram -`+n);const i=r.db,a=i.getRoot(),c=i.getConfig(),l=Z(e);await we(l,a,c,e);const s=l.append("g");s.attr("class","tree-view");const{totalHeight:o,totalWidth:h}=xe(s,a,c,e);l.attr("viewBox",`-${c.lineThickness/2} 0 ${h} ${o}`),U(l,o,h,c.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=f(({treeView:n})=>{const{labelFontSize:e,labelColor:t,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:c,highlightStroke:l}=A(Ce,n);return` +`),lineMap:t}}f(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=f(()=>{x.reset(),J()},"clear"),se=f(()=>x.records.stack[0],"getRoot"),ae=f(()=>x.records.cnt,"getCount"),ce=ee.treeView,le=f(()=>A(ce,N().treeView),"getConfig"),de=f((n,e,t,r,i,a)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const c={id:x.records.cnt++,level:n,name:e,nodeType:t,icon:i,cssClass:r,description:a,children:[]};x.records.stack[x.records.stack.length-1].children.push(c),x.records.stack.push(c)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:Z,getAccDescription:F,getDiagramTitle:j,setAccDescription:P,setAccTitle:Y,setDiagramTitle:G},I=he,pe=f(n=>{O(n,I);for(const e of n.nodes){const t=typeof e.indent=="number"?e.indent:0;let r=e.name;const i=r.endsWith("/");i&&(r=r.slice(0,-1));const a=i?"directory":"file",c=e.classAnnotation||void 0,l=e.iconAnnotation,s=l!==void 0?l||"none":void 0,o=e.descAnnotation||void 0,h=o?K(o,N()):void 0;I.addNode(t,r,a,c,s,h)}},"populate"),fe={parse:f(async n=>{const{text:e,lineMap:t}=R(n);try{const r=await ne("treeView",e);D.debug(r),pe(r)}catch(r){throw t.size>0&&r instanceof Error&&(r.message=M(r.message,t)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function H(n,e){const t=e?.filenameIcons?.[n];if(t)return t;const r=n.lastIndexOf(".");if(r>0){const i=n.substring(r).toLowerCase(),a=e?.extensionIcons;return a?.[i]??a?.[i.slice(1)]}}f(H,"detectIcon");function C(n,e){return n.includes(":")?n:n in b.icons||!e?`${b.prefix}:${n}`:`${e}:${n}`}f(C,"qualifyIcon");function B(n,e){if(n.icon!=="none"){if(n.icon)return C(n.icon,e.defaultIconPack);if(e.showIcons){if(n.nodeType==="file"){const t=H(n.name,e);if(t==="none")return;if(t)return C(t,e.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}f(B,"getNodeIcon");te([{name:b.prefix,icons:b}]);var y=14,ge=4,ue=16,z=f((n,e)=>`tv-icon-${n}-${e.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),we=f(async(n,e,t,r)=>{const i=new Set,a=f(s=>{const o=B(s,t);o&&i.add(o),s.children.forEach(a)},"collect");if(a(e),i.size===0)return;const c=await Promise.all([...i].map(async s=>({icon:s,svg:await Q(s,{height:y,width:y})}))),l=n.append("defs");for(const{icon:s,svg:o}of c)l.append("g").attr("id",z(r,s)).html(o)},"injectIconDefs"),me=f((n,e,t,r,i,a)=>{const c=r.append("g");let l="treeView-node-label";t.nodeType==="directory"&&(l+=" treeView-node-dir"),t.cssClass&&(l+=` ${t.cssClass}`);const s=y+ge,o=B(t,i),h=o!==void 0;o&&c.append("use").attr("xlink:href",`#${z(a,o)}`).attr("x",n+i.paddingX).attr("y",e+i.paddingY).attr("class","treeView-node-icon");const p=c.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:w}=p.node().getBBox(),g=d+i.paddingY*2,m=n+i.paddingX+(h?s:0);p.attr("x",m),p.attr("y",e+g/2);const u=m+w,v=w+i.paddingX*2+(h?s:0);return t.BBox={x:n,y:e,width:v,height:g},t.cssClass?.split(/\s+/).includes("highlight")&&c.insert("rect",":first-child").attr("x",n).attr("y",e+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:t,nodeGroup:c,labelRightEdge:u,centerY:e+g/2}},"positionLabel"),T=f((n,e,t,r,i,a)=>n.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),xe=f((n,e,t,r)=>{let i=0,a=0;const c=[],l=f((h,p,d,w)=>{const g=w*(d.rowIndent+d.paddingX),m=me(g,i,p,h,d,r);c.push(m);const{height:u,width:v}=p.BBox;T(h,g-d.rowIndent,i+u/2,g,i+u/2,d.lineThickness),a=Math.max(a,g+v),i+=u},"drawNode"),s=f((h,p=0)=>{l(n,h,t,p),h.children.forEach(m=>{s(m,p+1)});const{x:d,y:w,height:g}=h.BBox;if(h.children.length){const{y:m,height:u}=h.children[h.children.length-1].BBox;T(n,d+t.paddingX,w+g,d+t.paddingX,m+u/2+t.lineThickness/2,t.lineThickness)}},"processNode");s(e);const o=c.filter(h=>h.node.description);if(o.length>0){const p=Math.max(...c.map(d=>d.labelRightEdge))+ue;for(const d of o){const g=d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",p).attr("y",d.centerY).node().getBBox();a=Math.max(a,p+g.width+t.paddingX)}}for(const h of c)if(h.node.cssClass?.split(/\s+/).includes("highlight")){const p=h.nodeGroup.select(".treeView-highlight-bg");if(!p.empty()){const d=a-h.node.BBox.x+8;p.attr("width",d),a=Math.max(a,h.node.BBox.x+d+2)}}return{totalHeight:i,totalWidth:a}},"drawTree"),ve=f(async(n,e,t,r)=>{D.debug(`Rendering treeView diagram +`+n);const i=r.db,a=i.getRoot(),c=i.getConfig(),l=q(e);await we(l,a,c,e);const s=l.append("g");s.attr("class","tree-view");const{totalHeight:o,totalWidth:h}=xe(s,a,c,e);l.attr("viewBox",`-${c.lineThickness/2} 0 ${h} ${o}`),U(l,o,h,c.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=f(({treeView:n})=>{const{labelFontSize:e,labelColor:t,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:c,highlightStroke:l}=A(Ce,n);return` .treeView-node-label { font-size: ${e}; fill: ${t}; diff --git a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js new file mode 100644 index 00000000000..bb8300d1e6f --- /dev/null +++ b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js @@ -0,0 +1,41 @@ +import{p as k}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{s as R,g as E,o as I,n as _,a as D,b as F,_ as c,D as P,p as z,A as y,y as C,B as G,l as B,E as W,e as V}from"./mermaid.core-D8UeR6T-.js";import{p as H}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:m},x=structuredClone(w),j=G.radar,N=c(()=>y({...j,...C().radar}),"getConfig"),b=c(()=>x.axes,"getAxes"),U=c(()=>x.curves,"getCurves"),X=c(()=>x.options,"getOptions"),Y=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:q(t.entries)}))},"setCurves"),q=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule}},"setOptions"),K=c(()=>{z(),x=structuredClone(w)},"clear"),$={getAxes:b,getCurves:U,getOptions:X,setAxes:Y,setCurves:Z,setOptions:J,getConfig:N,clear:K,setAccTitle:F,getAccTitle:D,setDiagramTitle:_,getDiagramTitle:I,getAccDescription:E,setAccDescription:R},Q=c(a=>{k(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),tt={parse:c(async a=>{const t=await H("radar",a);B.debug(t),Q(t)},"parse")},et=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=P(t),u=at(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;rt(u,i,v,n.ticks,n.graticule),st(u,i,v,o),A(u,i,l,h,g,n.graticule,o),T(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),at=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return V(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),rt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=c((a,t,e,r)=>{const s=t.length;for(let i=0;i.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function A(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=M(g,r,s,o),S=f*Math.cos(v),O=f*Math.sin(v);return{x:S,y:O}});i==="circle"?a.append("path").attr("d",L(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(A,"drawCurves");function M(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(M,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(T,"drawLegend");var nt={draw:et},ot=c((a,t)=>{let e="";for(let r=0;r{const t=W(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),lt=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=it(a);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${e.axisColor}; + stroke-width: ${e.axisStrokeWidth}; + } + .radarAxisLabel { + font-size: ${e.axisLabelFontSize}px; + color: ${e.axisColor}; + } + .radarGraticule { + fill: ${e.graticuleColor}; + fill-opacity: ${e.graticuleOpacity}; + stroke: ${e.graticuleColor}; + stroke-width: ${e.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${e.legendFontSize}px; + dominant-baseline: hanging; + } + ${ot(t,e)} + `},"styles"),xt={parser:tt,db:$,renderer:nt,styles:lt};export{xt as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js deleted file mode 100644 index 9261ef84467..00000000000 --- a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js +++ /dev/null @@ -1,41 +0,0 @@ -import{p as k}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{s as R,g as F,p as I,o as _,a as D,b as E,_ as c,F as z,q as P,B as y,z as C,D as G,l as B,W,e as V}from"./mermaid.core-DaDTfY6S.js";import{p as H}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:m},x=structuredClone(w),j=G.radar,q=c(()=>y({...j,...C().radar}),"getConfig"),b=c(()=>x.axes,"getAxes"),N=c(()=>x.curves,"getCurves"),U=c(()=>x.options,"getOptions"),X=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule}},"setOptions"),K=c(()=>{P(),x=structuredClone(w)},"clear"),$={getAxes:b,getCurves:N,getOptions:U,setAxes:X,setCurves:Y,setOptions:J,getConfig:q,clear:K,setAccTitle:E,getAccTitle:D,setDiagramTitle:_,getDiagramTitle:I,getAccDescription:F,setAccDescription:R},Q=c(a=>{k(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),tt={parse:c(async a=>{const t=await H("radar",a);B.debug(t),Q(t)},"parse")},et=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=z(t),u=at(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;rt(u,i,v,n.ticks,n.graticule),st(u,i,v,o),A(u,i,l,h,g,n.graticule,o),T(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),at=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return V(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),rt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=c((a,t,e,r)=>{const s=t.length;for(let i=0;i.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function A(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=M(g,r,s,o),S=f*Math.cos(v),O=f*Math.sin(v);return{x:S,y:O}});i==="circle"?a.append("path").attr("d",L(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(A,"drawCurves");function M(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(M,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(T,"drawLegend");var nt={draw:et},ot=c((a,t)=>{let e="";for(let r=0;r{const t=W(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),lt=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=it(a);return` - .radarTitle { - font-size: ${t.fontSize}; - color: ${t.titleColor}; - dominant-baseline: hanging; - text-anchor: middle; - } - .radarAxisLine { - stroke: ${e.axisColor}; - stroke-width: ${e.axisStrokeWidth}; - } - .radarAxisLabel { - font-size: ${e.axisLabelFontSize}px; - color: ${e.axisColor}; - } - .radarGraticule { - fill: ${e.graticuleColor}; - fill-opacity: ${e.graticuleOpacity}; - stroke: ${e.graticuleColor}; - stroke-width: ${e.graticuleStrokeWidth}; - } - .radarLegendText { - text-anchor: start; - font-size: ${e.legendFontSize}px; - dominant-baseline: hanging; - } - ${ot(t,e)} - `},"styles"),xt={parser:tt,db:$,renderer:nt,styles:lt};export{xt as diagram}; diff --git a/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js b/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js similarity index 87% rename from apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js rename to apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js index e9b3835a7df..6a07e0d801c 100644 --- a/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js +++ b/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js @@ -1 +1 @@ -import{g as l,r as m,d as n}from"./chunk-MOJQB5TN-Ce2Y728v.js";import{p}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as t,l as o}from"./mermaid.core-DaDTfY6S.js";import{M as u,a as f}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},S={parser:g,db:n,renderer:m,styles:l};export{S as diagram}; +import{g as l,r as m,d as n}from"./chunk-MOJQB5TN-BDh2X7Dq.js";import{p}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as t,l as o}from"./mermaid.core-D8UeR6T-.js";import{M as u,a as f}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},S={parser:g,db:n,renderer:m,styles:l};export{S as diagram}; diff --git a/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js b/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js similarity index 98% rename from apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js rename to apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js index c4af92731b5..b8c18e07a51 100644 --- a/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js +++ b/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js @@ -1,4 +1,4 @@ -import{g as Mt}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as Bt}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as l,b as Ft,a as Yt,s as Pt,g as zt,o as Gt,p as Kt,c as it,l as V,q as Ut,r as Zt,t as jt,u as Wt,v as qt,x as Qt,d as Xt,y as Ht}from"./mermaid.core-DaDTfY6S.js";import{c as Jt}from"./channel-d4fEaqwQ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var _t=(function(){var e=l(function(I,n,c,o){for(c=c||{},o=I.length;o--;c[I[o]]=n);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],a=[1,11],u=[1,12],d=[1,13],y=[1,23],f=[1,24],m=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],C=[1,22],nt=[1,36],at=[1,37],ct=[1,38],ot=[1,39],lt=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],Q=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],gt=[66,67,68,69,70],bt=[1,85],kt=[1,84],mt=[1,82],Et=[1,83],St=[6,10,42,47],L=[6,10,13,41,42,47,48,49],X=[1,93],H=[1,92],J=[1,91],U=[19,58],Tt=[1,102],Ot=[1,101],ht=[19,58,61,63],ut={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:l(function(n,c,o,r,p,t,Z){var s=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 59:case 68:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 80:case 81:this.$=t[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[s];break;case 60:t[s].push(t[s-1]),this.$=t[s];break;case 61:this.$={type:t[s-1],name:t[s]};break;case 62:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 63:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 64:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 65:case 67:case 70:this.$=t[s];break;case 66:this.$=t[s-1]+t[s];break;case 69:t[s-2].push(t[s]),this.$=t[s-2];break;case 71:this.$=t[s].replace(/"/g,"");break;case 72:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:30,11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:nt,67:at,68:ct,69:ot,70:lt}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},e(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:C},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:C},{65:57,71:[1,58],72:[1,59]},e(Y,[2,73]),e(Y,[2,74]),e(Y,[2,75]),e(Y,[2,76]),e(Y,[2,77]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},e(Q,[2,37]),e(Q,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},e(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:nt,67:at,68:ct,69:ot,70:lt}),{19:[1,74]},e(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:nt,67:at,68:ct,69:ot,70:lt},e(gt,[2,78]),e(gt,[2,79]),{6:bt,10:kt,39:81,42:mt,47:Et},{40:[1,86],41:[1,87]},e(St,[2,43],{46:88,13:P,41:z,48:G,49:K}),e(L,[2,45]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(i,[2,41],{42:A}),{6:bt,10:kt,39:89,42:mt,47:Et},{14:90,40:X,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:C},{18:96,19:[1,97],53:53,54:54,58:F},e(i,[2,12]),{19:[2,60]},e(U,[2,61],{56:98,57:99,60:100,62:Tt,63:Ot}),e([19,58,62,63],[2,67]),{58:[2,66]},e(i,[2,22],{15:[1,104],17:[1,103]}),e([40,48,50,51,52],[2,72]),e(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(Q,[2,39]),e(Q,[2,40]),e(L,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,80]),e(i,[2,81]),e(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},e(i,[2,15]),e(U,[2,62],{57:110,61:[1,111],63:Ot}),e(U,[2,63]),e(ht,[2,68]),e(U,[2,71]),e(ht,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},e(St,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:X,50:H,73:J},{16:116,40:O,41:N},{14:117,40:X,50:H,73:J},e(i,[2,13]),e(U,[2,64]),{60:118,62:Tt},{19:[1,119]},e(i,[2,20]),e(i,[2,23],{17:[1,120],42:A}),e(i,[2,11]),{13:[1,121],42:A},e(i,[2,10]),e(ht,[2,69]),e(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:X,50:H,73:J},{19:[1,125]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:l(function(n,c){if(c.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=c,o}},"parseError"),parse:l(function(n){var c=this,o=[0],r=[],p=[null],t=[],Z=this.table,s="",tt=0,Nt=0,Dt=2,At=1,Lt=t.slice.call(arguments,1),_=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);_.setInput(n,x.yy),x.yy.lexer=_,x.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;t.push(pt);var wt=_.options&&_.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(b){o.length=o.length-2*b,p.length=p.length-b,t.length=t.length-b}l(Vt,"popStack");function It(){var b;return b=r.pop()||_.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}l(It,"lex");for(var g,v,k,ft,w={},et,E,Rt,st;;){if(v=o[o.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=It()),k=Z[v]&&Z[v][g]),typeof k>"u"||!k.length||!k[0]){var yt="";st=[];for(et in Z[v])this.terminals_[et]&&et>Dt&&st.push("'"+this.terminals_[et]+"'");_.showPosition?yt="Parse error on line "+(tt+1)+`: +import{g as Mt}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as Bt}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as l,b as Ft,a as Yt,s as Pt,g as zt,n as Gt,o as Kt,c as it,l as V,p as Ut,q as Zt,r as jt,t as Wt,u as qt,v as Qt,d as Xt,x as Ht}from"./mermaid.core-D8UeR6T-.js";import{c as Jt}from"./channel-BiD6A78K.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var _t=(function(){var e=l(function(I,n,c,o){for(c=c||{},o=I.length;o--;c[I[o]]=n);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],a=[1,11],u=[1,12],d=[1,13],y=[1,23],f=[1,24],m=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],C=[1,22],nt=[1,36],at=[1,37],ct=[1,38],ot=[1,39],lt=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],Q=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],gt=[66,67,68,69,70],bt=[1,85],kt=[1,84],mt=[1,82],Et=[1,83],St=[6,10,42,47],L=[6,10,13,41,42,47,48,49],X=[1,93],H=[1,92],J=[1,91],U=[19,58],Tt=[1,102],Ot=[1,101],ht=[19,58,61,63],ut={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:l(function(n,c,o,r,p,t,Z){var s=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 59:case 68:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 80:case 81:this.$=t[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[s];break;case 60:t[s].push(t[s-1]),this.$=t[s];break;case 61:this.$={type:t[s-1],name:t[s]};break;case 62:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 63:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 64:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 65:case 67:case 70:this.$=t[s];break;case 66:this.$=t[s-1]+t[s];break;case 69:t[s-2].push(t[s]),this.$=t[s-2];break;case 71:this.$=t[s].replace(/"/g,"");break;case 72:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:30,11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:nt,67:at,68:ct,69:ot,70:lt}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},e(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:C},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:C},{65:57,71:[1,58],72:[1,59]},e(Y,[2,73]),e(Y,[2,74]),e(Y,[2,75]),e(Y,[2,76]),e(Y,[2,77]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},e(Q,[2,37]),e(Q,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},e(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:nt,67:at,68:ct,69:ot,70:lt}),{19:[1,74]},e(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:nt,67:at,68:ct,69:ot,70:lt},e(gt,[2,78]),e(gt,[2,79]),{6:bt,10:kt,39:81,42:mt,47:Et},{40:[1,86],41:[1,87]},e(St,[2,43],{46:88,13:P,41:z,48:G,49:K}),e(L,[2,45]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(i,[2,41],{42:A}),{6:bt,10:kt,39:89,42:mt,47:Et},{14:90,40:X,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:C},{18:96,19:[1,97],53:53,54:54,58:F},e(i,[2,12]),{19:[2,60]},e(U,[2,61],{56:98,57:99,60:100,62:Tt,63:Ot}),e([19,58,62,63],[2,67]),{58:[2,66]},e(i,[2,22],{15:[1,104],17:[1,103]}),e([40,48,50,51,52],[2,72]),e(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(Q,[2,39]),e(Q,[2,40]),e(L,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,80]),e(i,[2,81]),e(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},e(i,[2,15]),e(U,[2,62],{57:110,61:[1,111],63:Ot}),e(U,[2,63]),e(ht,[2,68]),e(U,[2,71]),e(ht,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},e(St,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:X,50:H,73:J},{16:116,40:O,41:N},{14:117,40:X,50:H,73:J},e(i,[2,13]),e(U,[2,64]),{60:118,62:Tt},{19:[1,119]},e(i,[2,20]),e(i,[2,23],{17:[1,120],42:A}),e(i,[2,11]),{13:[1,121],42:A},e(i,[2,10]),e(ht,[2,69]),e(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:X,50:H,73:J},{19:[1,125]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:l(function(n,c){if(c.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=c,o}},"parseError"),parse:l(function(n){var c=this,o=[0],r=[],p=[null],t=[],Z=this.table,s="",tt=0,Nt=0,Dt=2,At=1,Lt=t.slice.call(arguments,1),_=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);_.setInput(n,x.yy),x.yy.lexer=_,x.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;t.push(pt);var wt=_.options&&_.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(b){o.length=o.length-2*b,p.length=p.length-b,t.length=t.length-b}l(Vt,"popStack");function It(){var b;return b=r.pop()||_.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}l(It,"lex");for(var g,v,k,ft,w={},et,E,Rt,st;;){if(v=o[o.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=It()),k=Z[v]&&Z[v][g]),typeof k>"u"||!k.length||!k[0]){var yt="";st=[];for(et in Z[v])this.terminals_[et]&&et>Dt&&st.push("'"+this.terminals_[et]+"'");_.showPosition?yt="Parse error on line "+(tt+1)+`: `+_.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":yt="Parse error on line "+(tt+1)+": Unexpected "+(g==At?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(yt,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:pt,expected:st})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(k[0]){case 1:o.push(g),p.push(_.yytext),t.push(_.yylloc),o.push(k[1]),g=null,Nt=_.yyleng,s=_.yytext,tt=_.yylineno,pt=_.yylloc;break;case 2:if(E=this.productions_[k[1]][1],w.$=p[p.length-E],w._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},wt&&(w._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),ft=this.performAction.apply(w,[s,Nt,tt,x.yy,k[1],p,t].concat(Lt)),typeof ft<"u")return ft;E&&(o=o.slice(0,-1*E*2),p=p.slice(0,-1*E),t=t.slice(0,-1*E)),o.push(this.productions_[k[1]][0]),p.push(w.$),t.push(w._$),Rt=Z[o[o.length-2]][o[o.length-1]],o.push(Rt);break;case 3:return!0}}return!0},"parse")},vt=(function(){var I={EOF:1,parseError:l(function(c,o){if(this.yy.parser)this.yy.parser.parseError(c,o);else throw new Error(c)},"parseError"),setInput:l(function(n,c){return this.yy=c||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var c=n.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var c=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===r.length?this.yylloc.first_column:0)+r[r.length-o.length].length-o[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),c=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js b/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js similarity index 96% rename from apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js rename to apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js index d2e5502bcd2..c7c578a280e 100644 --- a/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js +++ b/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js @@ -1,14 +1,14 @@ -import{g as He}from"./chunk-5VM5RSS4-B87d3yQb.js";import{g as Xe}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as Qe}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as b,b6 as Ze,X as Oe,l as Z,c as g1,v as Je,x as $e,y as ie,b as et,s as tt,o as st,a as it,g as rt,p as at,k as nt,Y as ut,Z as ot,bo as lt,r as te,d as se,a5 as ct,q as ht,b8 as dt,t as pt}from"./mermaid.core-DaDTfY6S.js";import{f as ft}from"./chunk-32BRIVSS-_Sd4SrsJ.js";import{c as gt}from"./channel-d4fEaqwQ.js";var bt="flowchart-",At=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=et,this.setAccDescription=tt,this.setDiagramTitle=st,this.getAccTitle=it,this.getAccDescription=rt,this.getDiagramTitle=at,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{b(this,"FlowDB")}sanitizeText(e){return nt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,o,d,l={},A){if(!e||e.trim().length===0)return;let n;if(A!==void 0){let k;A.includes(` +import{g as He}from"./chunk-5VM5RSS4-DzLUmY02.js";import{g as Xe}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as Qe}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as b,b6 as Je,F as Oe,l as J,c as g1,u as Ze,v as $e,x as ie,b as et,s as tt,n as st,a as it,g as rt,o as at,k as nt,G as ut,J as ot,bo as lt,q as te,d as se,a5 as ct,p as ht,b8 as dt,r as pt}from"./mermaid.core-D8UeR6T-.js";import{f as ft}from"./chunk-32BRIVSS-wwoCS_p_.js";import{c as gt}from"./channel-BiD6A78K.js";var bt="flowchart-",At=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=et,this.setAccDescription=tt,this.setDiagramTitle=st,this.getAccTitle=it,this.getAccDescription=rt,this.getDiagramTitle=at,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{b(this,"FlowDB")}sanitizeText(e){return nt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,o,d,l={},A){if(!e||e.trim().length===0)return;let n;if(A!==void 0){let k;A.includes(` `)?k=A+` `:k=`{ `+A+` -}`,n=ut(k,{schema:ot})}const g=this.edges.find(k=>k.id===e);if(g){const k=n;k?.animate!==void 0&&(g.animate=k.animate),k?.animation!==void 0&&(g.animation=k.animation),k?.curve!==void 0&&(g.interpolate=k.curve);return}let B,f=this.vertices.get(e);if(f===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:bt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,i!==void 0?(this.config=g1(),B=this.sanitizeText(i.text.trim()),f.labelType=i.type,B.startsWith('"')&&B.endsWith('"')&&(B=B.substring(1,B.length-1)),f.text=B):f.text===void 0&&(f.text=e),r!==void 0&&(f.type=r),a?.forEach(k=>{f.styles.push(k)}),o?.forEach(k=>{f.classes.push(k)}),d!==void 0&&(f.dir=d),f.props===void 0?f.props=l:l!==void 0&&Object.assign(f.props,l),n!==void 0){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!lt(n.shape))throw new Error(`No such shape: ${n.shape}.`);f.type=n?.shape}n?.label&&(f.text=n?.label,f.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(f.icon=n?.icon,!n.label?.trim()&&f.text===e&&(f.text="")),n?.form&&(f.form=n?.form),n?.pos&&(f.pos=n?.pos),n?.img&&(f.img=n?.img,!n.label?.trim()&&f.text===e&&(f.text="")),n?.constraint&&(f.constraint=n.constraint),n.w&&(f.assetWidth=Number(n.w)),n.h&&(f.assetHeight=Number(n.h))}}addSingleLink(e,i,r,a){const l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",l);const A=r.text;if(A!==void 0&&(l.text=this.sanitizeText(A.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(A.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(n=>n.id===a))l.id=a,l.isUserDefinedId=!0;else{const n=this.edges.filter(g=>g.start===l.start&&g.end===l.end);n.length===0?l.id=te(l.start,l.end,{counter:0,prefix:"L"}):l.id=te(l.start,l.end,{counter:n.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +}`,n=ut(k,{schema:ot})}const g=this.edges.find(k=>k.id===e);if(g){const k=n;k?.animate!==void 0&&(g.animate=k.animate),k?.animation!==void 0&&(g.animation=k.animation),k?.curve!==void 0&&(g.interpolate=k.curve);return}let B,f=this.vertices.get(e);if(f===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&J.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:bt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,i!==void 0?(this.config=g1(),B=this.sanitizeText(i.text.trim()),f.labelType=i.type,B.startsWith('"')&&B.endsWith('"')&&(B=B.substring(1,B.length-1)),f.text=B):f.text===void 0&&(f.text=e),r!==void 0&&(f.type=r),a?.forEach(k=>{f.styles.push(k)}),o?.forEach(k=>{f.classes.push(k)}),d!==void 0&&(f.dir=d),f.props===void 0?f.props=l:l!==void 0&&Object.assign(f.props,l),n!==void 0){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!lt(n.shape))throw new Error(`No such shape: ${n.shape}.`);f.type=n?.shape}n?.label&&(f.text=n?.label,f.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(f.icon=n?.icon,!n.label?.trim()&&f.text===e&&(f.text="")),n?.form&&(f.form=n?.form),n?.pos&&(f.pos=n?.pos),n?.img&&(f.img=n?.img,!n.label?.trim()&&f.text===e&&(f.text="")),n?.constraint&&(f.constraint=n.constraint),n.w&&(f.assetWidth=Number(n.w)),n.h&&(f.assetHeight=Number(n.h))}}addSingleLink(e,i,r,a){const l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};J.info("abc78 Got edge...",l);const A=r.text;if(A!==void 0&&(l.text=this.sanitizeText(A.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(A.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(n=>n.id===a))l.id=a,l.isUserDefinedId=!0;else{const n=this.edges.filter(g=>g.start===l.start&&g.end===l.end);n.length===0?l.id=te(l.start,l.end,{counter:0,prefix:"L"}):l.id=te(l.start,l.end,{counter:n.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))J.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;Z.info("addLink",e,i,a);for(const o of e)for(const d of i){const l=o===e[e.length-1],A=d===i[0];l&&A?this.addSingleLink(o,d,r,a):this.addSingleLink(o,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]},this.classes.set(a,o)),r?.forEach(d=>{if(/color/.exec(d)){const l=d.replace("fill","bgFill");o.textStyles.push(l)}o.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const o=this.edges.find(l=>l.id===r);o&&o.classes.push(i);const d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(g1().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{const d=this.lookUpDomId(e),l=document.querySelector(`[id="${d}"]`);l!==null&&l.addEventListener("click",()=>{ie.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const o=this.vertices.get(a);o!==void 0&&(o.link=ie.formatUrl(i,this.config),o.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=ft();se(e).select("svg").selectAll("g.node").on("mouseover",o=>{const d=se(o.currentTarget),l=d.attr("title");if(l===null)return;const A=o.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),i.html(ct.sanitize(l)),d.classed("hover",!0)}).on("mouseout",o=>{i.transition().duration(500).style("opacity",0),se(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g1(),ht()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),o=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const l=b(Y=>{const F={boolean:{},number:{},string:{}},_=[];let b1;return{nodeList:Y.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(b1=j.value,!1):j.trim()===""?!1:h1 in F?F[h1].hasOwnProperty(j)?!1:F[h1][j]=!0:_.includes(j)?!1:_.push(j)}),dir:b1}},"uniq")(i.flat()),A=l.nodeList,n=l.dir,g=n!==void 0,B=g1().flowchart??{},f=n??(B.inheritDir?this.getDirection()??g1().direction??void 0:void 0);if(this.version==="gen-1")for(let Y=0;Y2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,o=1;for(;a=0){const l=this.indexNodes2(e,d);if(l.result)return{result:!0,count:o+l.count};o=o+l.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let o=0;o":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let o="normal",d=r.length-1;r.startsWith("=")&&(o="thick"),r.startsWith("~")&&(o="invisible");const l=this.countChar(".",r);return l&&(o="dotted",d=l),{type:a,stroke:o,length:d}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,o)=>{this.exists(i,a)||r.push(e.nodes[o])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,o,d){const l=r.get(e.id),A=a.get(e.id)??!1,n=this.findNode(i,e.id);if(n)n.cssStyles=e.styles,n.cssCompiledStyles=this.getCompiledStyles(e.classes),n.cssClasses=e.classes.join(" ");else{const g={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};A?i.push({...g,isGroup:!0,shape:"rect"}):i.push({...g,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(o=>o.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(o=>o.trim()))}return i}getData(){const e=g1(),i=[],r=[],a=this.getSubGraphs(),o=new Map,d=new Map;for(let n=a.length-1;n>=0;n--){const g=a[n];g.nodes.length>0&&d.set(g.id,!0);for(const B of g.nodes)o.set(B,g.id)}for(let n=a.length-1;n>=0;n--){const g=a[n];i.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:o.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir==="TD"?"TB":g.dir,explicitDir:g.hasExplicitDir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,i,o,d,e,e.look||"classic")});const A=this.getEdges();return A.forEach((n,g)=>{const{arrowTypeStart:B,arrowTypeEnd:f}=this.destructEdgeType(n.type),k=[...A.defaultStyle??[]];n.style&&k.push(...n.style);const Y={id:te(n.start,n.end,{counter:g,prefix:"L"},n.id),isUserDefinedId:n.isUserDefinedId,start:n.start,end:n.end,type:n.type??"normal",label:n.text,labelType:n.labelType,labelpos:"c",thickness:n.stroke,minlen:n.length,classes:n?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":B,arrowTypeEnd:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(n.classes),labelStyle:k,style:k,pattern:n.stroke,look:e.look,animate:n.animate,animation:n.animation,curve:n.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Y)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return dt.flowchart}},kt=b(function(e,i){return i.db.getClasses()},"getClasses"),mt=b(async function(e,i,r,a,o){Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);const{securityLevel:d,flowchart:l,layout:A}=g1();a.db.setDiagramId(i),Z.debug("Before getData: ");const n=a.db.getData();Z.debug("Data: ",n);const g=Xe(i,d),B=a.db.getDirection();n.type=a.type,n.layoutAlgorithm=Je(A),n.layoutAlgorithm==="dagre"&&A==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=B,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=i,Z.debug("REF1:",n),await $e(n,g,o);const f=n.config.flowchart?.diagramPadding??8;ie.insertTitle(g,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),Qe(g,f,"flowchart",l?.useMaxWidth||!1)},"draw"),Dt={getClasses:kt,draw:mt},re=(function(){var e=b(function(f1,c,h,p){for(h=h||{},p=f1.length;p--;h[f1[p]]=c);return h},"o"),i=[1,4],r=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],l=[1,13],A=[1,14],n=[1,15],g=[1,16],B=[1,23],f=[1,25],k=[1,26],Y=[1,27],F=[1,50],_=[1,49],b1=[1,29],N1=[1,30],j=[1,31],h1=[1,32],P1=[1,33],L=[1,45],V=[1,47],I=[1,43],w=[1,48],R=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],O1=[1,34],M1=[1,35],U1=[1,36],z1=[1,37],W1=[1,38],d1=[1,58],T=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],D1=[8,9,11,75,77,78],ae=[1,79],E1=[1,92],C1=[1,97],T1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],F1=[1,91],_1=[1,98],B1=[1,94],v1=[1,99],L1=[1,90],A1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],V1=[44,60,89,102,105,106,109,111,114,115,116],ue=[1,122],oe=[1,123],j1=[1,125],K1=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],he=[1,148],de=[1,149],pe=[1,150],fe=[1,151],ge=[1,136],be=[1,138],Ae=[1,142],ke=[1,143],me=[1,144],De=[1,145],Ee=[1,146],Ce=[1,147],Te=[1,152],Se=[1,153],ye=[1,132],xe=[1,133],Fe=[1,140],_e=[1,135],Be=[1,139],ve=[1,137],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Le=[1,155],Ve=[1,157],x=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],z=[1,173],W=[1,174],D=[1,178],E=[1,175],C=[1,176],I1=[77,116,119],S=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ie=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],w1=[1,269],we=[8,9,11,106],J=[8,9,10,11,60,84,105,106,109,110,111,112],Q1={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:b(function(c,h,p,u,y,t,G1){var s=t.length-1;switch(y){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=u.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=u.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:u.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:u.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],u.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],u.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],u.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1]};break;case 78:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],u.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],u.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],u.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],u.setClickEvent(t[s-4],t[s-3],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],u.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],u.setLink(t[s-4],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],u.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],u.setLink(t[s-6],t[s-4],t[s]),u.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],u.setLink(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],u.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],u.setLink(t[s-5],t[s-4],t[s]),u.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],u.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],u.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],u.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],u.updateLinkInterpolate([t[s-6]],t[s-2]),u.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],u.updateLinkInterpolate(t[s-6],t[s-2]),u.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],u.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],u.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(o,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},e(T,[2,36]),{35:[1,75]},{37:[1,76]},e(T,[2,39]),e(D1,[2,50],{18:77,39:78,10:d1,40:ae}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:E1,44:C1,60:T1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(T,[2,189]),e(A1,[2,51]),e(A1,[2,54],{46:[1,100]}),e(U,[2,72],{113:113,29:[1,101],44:F,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:_,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(q,[2,181]),e(q,[2,142]),e(q,[2,143]),e(q,[2,144]),e(q,[2,145]),e(q,[2,146]),e(q,[2,147]),e(q,[2,148]),e(q,[2,149]),e(q,[2,150]),e(q,[2,151]),e(q,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:d1}),e(T,[2,27]),{42:116,43:39,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(V1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ue,81:oe,116:j1,119:K1},{75:[1,126],77:[1,127]},e(le,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:ce,12:he,14:de,27:pe,28:128,32:fe,44:ge,60:be,75:Ae,80:[1,130],81:[1,131],83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:129,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(X1,d,{5:154}),e(T,[2,37]),e(T,[2,38]),e(D1,[2,48],{44:Le}),e(D1,[2,49],{18:156,10:d1,40:Ve}),e(A1,[2,44]),{44:F,47:158,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:F,47:162,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{44:F,47:163,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(x,[2,115],{120:168,10:[1,167],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,117],{10:[1,169]}),e(H,[2,183]),e(H,[2,170]),e(H,[2,171]),e(H,[2,172]),e(H,[2,173]),e(H,[2,174]),e(H,[2,175]),e(H,[2,176]),e(H,[2,177]),e(H,[2,178]),e(H,[2,179]),e(H,[2,180]),{44:F,47:170,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{30:171,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:179,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:181,50:[1,180],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:182,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:183,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:184,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{109:[1,185]},{30:186,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:187,65:[1,188],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:189,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:190,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:191,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(q,[2,182]),e(o,[2,20]),e(ne,[2,25]),e(D1,[2,46],{39:192,18:193,10:d1,40:ae}),e(V1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{77:[1,197],79:198,116:j1,119:K1},e(I1,[2,79]),e(I1,[2,81]),e(I1,[2,82]),e(I1,[2,168]),e(I1,[2,169]),{76:199,79:121,80:ue,81:oe,116:j1,119:K1},e(le,[2,84]),{8:$,9:e1,10:ce,11:t1,12:he,14:de,21:201,27:pe,29:[1,200],32:fe,44:ge,60:be,75:Ae,83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:202,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(S,[2,101]),e(S,[2,103]),e(S,[2,104]),e(S,[2,157]),e(S,[2,158]),e(S,[2,159]),e(S,[2,160]),e(S,[2,161]),e(S,[2,162]),e(S,[2,163]),e(S,[2,164]),e(S,[2,165]),e(S,[2,166]),e(S,[2,167]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(S,[2,99]),e(S,[2,100]),{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:d1,18:204},{44:[1,205]},e(A1,[2,43]),{10:[1,206],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ie,[2,128]),{10:[1,210],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},e(x,[2,109],{10:[1,213]}),e(x,[2,111],{10:[1,214]}),{80:[1,215]},e(H,[2,184]),{80:[1,216],98:[1,217]},e(A1,[2,55],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),{31:[1,218],67:m,82:219,116:D,117:E,118:C},e(p1,[2,86]),e(p1,[2,88]),e(p1,[2,89]),e(p1,[2,153]),e(p1,[2,154]),e(p1,[2,155]),e(p1,[2,156]),{49:[1,220],67:m,82:219,116:D,117:E,118:C},{30:221,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{51:[1,222],67:m,82:219,116:D,117:E,118:C},{53:[1,223],67:m,82:219,116:D,117:E,118:C},{55:[1,224],67:m,82:219,116:D,117:E,118:C},{57:[1,225],67:m,82:219,116:D,117:E,118:C},{60:[1,226]},{64:[1,227],67:m,82:219,116:D,117:E,118:C},{66:[1,228],67:m,82:219,116:D,117:E,118:C},{30:229,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{31:[1,230],67:m,82:219,116:D,117:E,118:C},{67:m,69:[1,231],71:[1,232],82:219,116:D,117:E,118:C},{67:m,69:[1,234],71:[1,233],82:219,116:D,117:E,118:C},e(D1,[2,45],{18:156,10:d1,40:Ve}),e(D1,[2,47],{44:Le}),e(V1,[2,75]),e(V1,[2,74]),{62:[1,235],67:m,82:219,116:D,117:E,118:C},e(V1,[2,77]),e(I1,[2,80]),{77:[1,236],79:198,116:j1,119:K1},{30:237,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(X1,d,{5:238}),e(S,[2,102]),e(T,[2,35]),{43:239,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:F,47:258,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(x,[2,116]),e(x,[2,118],{10:[1,262]}),e(x,[2,119]),e(U,[2,56]),e(p1,[2,87]),e(U,[2,57]),{51:[1,263],67:m,82:219,116:D,117:E,118:C},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,264]},e(U,[2,63]),e(U,[2,65]),{66:[1,265],67:m,82:219,116:D,117:E,118:C},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(V1,[2,78]),{31:[1,266],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(A1,[2,53]),{43:268,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,121],{106:w1}),e(we,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(J,[2,132]),e(J,[2,134]),e(J,[2,135]),e(J,[2,136]),e(J,[2,137]),e(J,[2,138]),e(J,[2,139]),e(J,[2,140]),e(J,[2,141]),e(x,[2,122],{106:w1}),{10:[1,271]},e(x,[2,123],{106:w1}),{10:[1,272]},e(Ie,[2,129]),e(x,[2,105],{106:w1}),e(x,[2,106],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(x,[2,110]),e(x,[2,112],{10:[1,273]}),e(x,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},e(T,[2,34]),e(A1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},e(J,[2,133]),{14:E1,44:C1,60:T1,89:S1,101:280,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{14:E1,44:C1,60:T1,89:S1,101:281,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{98:[1,282]},e(x,[2,120]),e(U,[2,58]),{30:283,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(U,[2,66]),e(X1,d,{5:284}),e(we,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(x,[2,126],{120:168,10:[1,285],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,127],{120:168,10:[1,286],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,114]),{31:[1,287],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(x,[2,124],{106:w1}),e(x,[2,125],{106:w1})],defaultActions:{},parseError:b(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:b(function(c){var h=this,p=[0],u=[],y=[null],t=[],G1=this.table,s="",v=0,Re=0,je=2,Ne=1,Ke=t.slice.call(arguments,1),M=Object.create(this.lexer),k1={yy:{}};for(var Z1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z1)&&(k1.yy[Z1]=this.yy[Z1]);M.setInput(c,k1.yy),k1.yy.lexer=M,k1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var J1=M.yylloc;t.push(J1);var Ye=M.options&&M.options.ranges;typeof k1.yy.parseError=="function"?this.parseError=k1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(X){p.length=p.length-2*X,y.length=y.length-X,t.length=t.length-X}b(qe,"popStack");function Ge(){var X;return X=u.pop()||M.lex()||Ne,typeof X!="number"&&(X instanceof Array&&(u=X,X=u.pop()),X=h.symbols_[X]||X),X}b(Ge,"lex");for(var K,m1,Q,$1,R1={},q1,c1,Pe,H1;;){if(m1=p[p.length-1],this.defaultActions[m1]?Q=this.defaultActions[m1]:((K===null||typeof K>"u")&&(K=Ge()),Q=G1[m1]&&G1[m1][K]),typeof Q>"u"||!Q.length||!Q[0]){var ee="";H1=[];for(q1 in G1[m1])this.terminals_[q1]&&q1>je&&H1.push("'"+this.terminals_[q1]+"'");M.showPosition?ee="Parse error on line "+(v+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;J.info("addLink",e,i,a);for(const o of e)for(const d of i){const l=o===e[e.length-1],A=d===i[0];l&&A?this.addSingleLink(o,d,r,a):this.addSingleLink(o,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]},this.classes.set(a,o)),r?.forEach(d=>{if(/color/.exec(d)){const l=d.replace("fill","bgFill");o.textStyles.push(l)}o.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const o=this.edges.find(l=>l.id===r);o&&o.classes.push(i);const d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(g1().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{const d=this.lookUpDomId(e),l=document.querySelector(`[id="${d}"]`);l!==null&&l.addEventListener("click",()=>{ie.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const o=this.vertices.get(a);o!==void 0&&(o.link=ie.formatUrl(i,this.config),o.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=ft();se(e).select("svg").selectAll("g.node").on("mouseover",o=>{const d=se(o.currentTarget),l=d.attr("title");if(l===null)return;const A=o.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),i.html(ct.sanitize(l)),d.classed("hover",!0)}).on("mouseout",o=>{i.transition().duration(500).style("opacity",0),se(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g1(),ht()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),o=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const l=b(Y=>{const F={boolean:{},number:{},string:{}},_=[];let b1;return{nodeList:Y.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(b1=j.value,!1):j.trim()===""?!1:h1 in F?F[h1].hasOwnProperty(j)?!1:F[h1][j]=!0:_.includes(j)?!1:_.push(j)}),dir:b1}},"uniq")(i.flat()),A=l.nodeList,n=l.dir,g=n!==void 0,B=g1().flowchart??{},f=n??(B.inheritDir?this.getDirection()??g1().direction??void 0:void 0);if(this.version==="gen-1")for(let Y=0;Y2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,o=1;for(;a=0){const l=this.indexNodes2(e,d);if(l.result)return{result:!0,count:o+l.count};o=o+l.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let o=0;o":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let o="normal",d=r.length-1;r.startsWith("=")&&(o="thick"),r.startsWith("~")&&(o="invisible");const l=this.countChar(".",r);return l&&(o="dotted",d=l),{type:a,stroke:o,length:d}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,o)=>{this.exists(i,a)||r.push(e.nodes[o])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,o,d){const l=r.get(e.id),A=a.get(e.id)??!1,n=this.findNode(i,e.id);if(n)n.cssStyles=e.styles,n.cssCompiledStyles=this.getCompiledStyles(e.classes),n.cssClasses=e.classes.join(" ");else{const g={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};A?i.push({...g,isGroup:!0,shape:"rect"}):i.push({...g,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(o=>o.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(o=>o.trim()))}return i}getData(){const e=g1(),i=[],r=[],a=this.getSubGraphs(),o=new Map,d=new Map;for(let n=a.length-1;n>=0;n--){const g=a[n];g.nodes.length>0&&d.set(g.id,!0);for(const B of g.nodes)o.set(B,g.id)}for(let n=a.length-1;n>=0;n--){const g=a[n];i.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:o.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir==="TD"?"TB":g.dir,explicitDir:g.hasExplicitDir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,i,o,d,e,e.look||"classic")});const A=this.getEdges();return A.forEach((n,g)=>{const{arrowTypeStart:B,arrowTypeEnd:f}=this.destructEdgeType(n.type),k=[...A.defaultStyle??[]];n.style&&k.push(...n.style);const Y={id:te(n.start,n.end,{counter:g,prefix:"L"},n.id),isUserDefinedId:n.isUserDefinedId,start:n.start,end:n.end,type:n.type??"normal",label:n.text,labelType:n.labelType,labelpos:"c",thickness:n.stroke,minlen:n.length,classes:n?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":B,arrowTypeEnd:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(n.classes),labelStyle:k,style:k,pattern:n.stroke,look:e.look,animate:n.animate,animation:n.animation,curve:n.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Y)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return dt.flowchart}},kt=b(function(e,i){return i.db.getClasses()},"getClasses"),mt=b(async function(e,i,r,a,o){J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:d,flowchart:l,layout:A}=g1();a.db.setDiagramId(i),J.debug("Before getData: ");const n=a.db.getData();J.debug("Data: ",n);const g=Xe(i,d),B=a.db.getDirection();n.type=a.type,n.layoutAlgorithm=Ze(A),n.layoutAlgorithm==="dagre"&&A==="elk"&&J.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=B,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=i,J.debug("REF1:",n),await $e(n,g,o);const f=n.config.flowchart?.diagramPadding??8;ie.insertTitle(g,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),Qe(g,f,"flowchart",l?.useMaxWidth||!1)},"draw"),Dt={getClasses:kt,draw:mt},re=(function(){var e=b(function(f1,c,h,p){for(h=h||{},p=f1.length;p--;h[f1[p]]=c);return h},"o"),i=[1,4],r=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],l=[1,13],A=[1,14],n=[1,15],g=[1,16],B=[1,23],f=[1,25],k=[1,26],Y=[1,27],F=[1,50],_=[1,49],b1=[1,29],N1=[1,30],j=[1,31],h1=[1,32],P1=[1,33],L=[1,45],V=[1,47],I=[1,43],w=[1,48],R=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],O1=[1,34],M1=[1,35],U1=[1,36],z1=[1,37],W1=[1,38],d1=[1,58],T=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],D1=[8,9,11,75,77,78],ae=[1,79],E1=[1,92],C1=[1,97],T1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],F1=[1,91],_1=[1,98],B1=[1,94],v1=[1,99],L1=[1,90],A1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],V1=[44,60,89,102,105,106,109,111,114,115,116],ue=[1,122],oe=[1,123],j1=[1,125],K1=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],he=[1,148],de=[1,149],pe=[1,150],fe=[1,151],ge=[1,136],be=[1,138],Ae=[1,142],ke=[1,143],me=[1,144],De=[1,145],Ee=[1,146],Ce=[1,147],Te=[1,152],Se=[1,153],ye=[1,132],xe=[1,133],Fe=[1,140],_e=[1,135],Be=[1,139],ve=[1,137],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Le=[1,155],Ve=[1,157],x=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],z=[1,173],W=[1,174],D=[1,178],E=[1,175],C=[1,176],I1=[77,116,119],S=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ie=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],w1=[1,269],we=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],Q1={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:b(function(c,h,p,u,y,t,G1){var s=t.length-1;switch(y){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=u.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=u.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:u.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:u.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],u.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],u.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],u.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1]};break;case 78:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],u.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],u.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],u.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],u.setClickEvent(t[s-4],t[s-3],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],u.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],u.setLink(t[s-4],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],u.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],u.setLink(t[s-6],t[s-4],t[s]),u.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],u.setLink(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],u.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],u.setLink(t[s-5],t[s-4],t[s]),u.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],u.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],u.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],u.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],u.updateLinkInterpolate([t[s-6]],t[s-2]),u.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],u.updateLinkInterpolate(t[s-6],t[s-2]),u.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],u.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],u.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(o,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},e(T,[2,36]),{35:[1,75]},{37:[1,76]},e(T,[2,39]),e(D1,[2,50],{18:77,39:78,10:d1,40:ae}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:E1,44:C1,60:T1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(T,[2,189]),e(A1,[2,51]),e(A1,[2,54],{46:[1,100]}),e(U,[2,72],{113:113,29:[1,101],44:F,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:_,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(q,[2,181]),e(q,[2,142]),e(q,[2,143]),e(q,[2,144]),e(q,[2,145]),e(q,[2,146]),e(q,[2,147]),e(q,[2,148]),e(q,[2,149]),e(q,[2,150]),e(q,[2,151]),e(q,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:d1}),e(T,[2,27]),{42:116,43:39,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(V1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ue,81:oe,116:j1,119:K1},{75:[1,126],77:[1,127]},e(le,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:ce,12:he,14:de,27:pe,28:128,32:fe,44:ge,60:be,75:Ae,80:[1,130],81:[1,131],83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:129,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(X1,d,{5:154}),e(T,[2,37]),e(T,[2,38]),e(D1,[2,48],{44:Le}),e(D1,[2,49],{18:156,10:d1,40:Ve}),e(A1,[2,44]),{44:F,47:158,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:F,47:162,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{44:F,47:163,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(x,[2,115],{120:168,10:[1,167],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,117],{10:[1,169]}),e(H,[2,183]),e(H,[2,170]),e(H,[2,171]),e(H,[2,172]),e(H,[2,173]),e(H,[2,174]),e(H,[2,175]),e(H,[2,176]),e(H,[2,177]),e(H,[2,178]),e(H,[2,179]),e(H,[2,180]),{44:F,47:170,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{30:171,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:179,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:181,50:[1,180],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:182,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:183,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:184,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{109:[1,185]},{30:186,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:187,65:[1,188],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:189,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:190,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:191,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(q,[2,182]),e(o,[2,20]),e(ne,[2,25]),e(D1,[2,46],{39:192,18:193,10:d1,40:ae}),e(V1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{77:[1,197],79:198,116:j1,119:K1},e(I1,[2,79]),e(I1,[2,81]),e(I1,[2,82]),e(I1,[2,168]),e(I1,[2,169]),{76:199,79:121,80:ue,81:oe,116:j1,119:K1},e(le,[2,84]),{8:$,9:e1,10:ce,11:t1,12:he,14:de,21:201,27:pe,29:[1,200],32:fe,44:ge,60:be,75:Ae,83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:202,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(S,[2,101]),e(S,[2,103]),e(S,[2,104]),e(S,[2,157]),e(S,[2,158]),e(S,[2,159]),e(S,[2,160]),e(S,[2,161]),e(S,[2,162]),e(S,[2,163]),e(S,[2,164]),e(S,[2,165]),e(S,[2,166]),e(S,[2,167]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(S,[2,99]),e(S,[2,100]),{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:d1,18:204},{44:[1,205]},e(A1,[2,43]),{10:[1,206],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ie,[2,128]),{10:[1,210],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},e(x,[2,109],{10:[1,213]}),e(x,[2,111],{10:[1,214]}),{80:[1,215]},e(H,[2,184]),{80:[1,216],98:[1,217]},e(A1,[2,55],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),{31:[1,218],67:m,82:219,116:D,117:E,118:C},e(p1,[2,86]),e(p1,[2,88]),e(p1,[2,89]),e(p1,[2,153]),e(p1,[2,154]),e(p1,[2,155]),e(p1,[2,156]),{49:[1,220],67:m,82:219,116:D,117:E,118:C},{30:221,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{51:[1,222],67:m,82:219,116:D,117:E,118:C},{53:[1,223],67:m,82:219,116:D,117:E,118:C},{55:[1,224],67:m,82:219,116:D,117:E,118:C},{57:[1,225],67:m,82:219,116:D,117:E,118:C},{60:[1,226]},{64:[1,227],67:m,82:219,116:D,117:E,118:C},{66:[1,228],67:m,82:219,116:D,117:E,118:C},{30:229,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{31:[1,230],67:m,82:219,116:D,117:E,118:C},{67:m,69:[1,231],71:[1,232],82:219,116:D,117:E,118:C},{67:m,69:[1,234],71:[1,233],82:219,116:D,117:E,118:C},e(D1,[2,45],{18:156,10:d1,40:Ve}),e(D1,[2,47],{44:Le}),e(V1,[2,75]),e(V1,[2,74]),{62:[1,235],67:m,82:219,116:D,117:E,118:C},e(V1,[2,77]),e(I1,[2,80]),{77:[1,236],79:198,116:j1,119:K1},{30:237,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(X1,d,{5:238}),e(S,[2,102]),e(T,[2,35]),{43:239,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:F,47:258,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(x,[2,116]),e(x,[2,118],{10:[1,262]}),e(x,[2,119]),e(U,[2,56]),e(p1,[2,87]),e(U,[2,57]),{51:[1,263],67:m,82:219,116:D,117:E,118:C},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,264]},e(U,[2,63]),e(U,[2,65]),{66:[1,265],67:m,82:219,116:D,117:E,118:C},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(V1,[2,78]),{31:[1,266],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(A1,[2,53]),{43:268,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,121],{106:w1}),e(we,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(Z,[2,132]),e(Z,[2,134]),e(Z,[2,135]),e(Z,[2,136]),e(Z,[2,137]),e(Z,[2,138]),e(Z,[2,139]),e(Z,[2,140]),e(Z,[2,141]),e(x,[2,122],{106:w1}),{10:[1,271]},e(x,[2,123],{106:w1}),{10:[1,272]},e(Ie,[2,129]),e(x,[2,105],{106:w1}),e(x,[2,106],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(x,[2,110]),e(x,[2,112],{10:[1,273]}),e(x,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},e(T,[2,34]),e(A1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},e(Z,[2,133]),{14:E1,44:C1,60:T1,89:S1,101:280,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{14:E1,44:C1,60:T1,89:S1,101:281,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{98:[1,282]},e(x,[2,120]),e(U,[2,58]),{30:283,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(U,[2,66]),e(X1,d,{5:284}),e(we,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(x,[2,126],{120:168,10:[1,285],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,127],{120:168,10:[1,286],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,114]),{31:[1,287],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(x,[2,124],{106:w1}),e(x,[2,125],{106:w1})],defaultActions:{},parseError:b(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:b(function(c){var h=this,p=[0],u=[],y=[null],t=[],G1=this.table,s="",v=0,Re=0,je=2,Ne=1,Ke=t.slice.call(arguments,1),M=Object.create(this.lexer),k1={yy:{}};for(var J1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J1)&&(k1.yy[J1]=this.yy[J1]);M.setInput(c,k1.yy),k1.yy.lexer=M,k1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var Z1=M.yylloc;t.push(Z1);var Ye=M.options&&M.options.ranges;typeof k1.yy.parseError=="function"?this.parseError=k1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(X){p.length=p.length-2*X,y.length=y.length-X,t.length=t.length-X}b(qe,"popStack");function Ge(){var X;return X=u.pop()||M.lex()||Ne,typeof X!="number"&&(X instanceof Array&&(u=X,X=u.pop()),X=h.symbols_[X]||X),X}b(Ge,"lex");for(var K,m1,Q,$1,R1={},q1,c1,Pe,H1;;){if(m1=p[p.length-1],this.defaultActions[m1]?Q=this.defaultActions[m1]:((K===null||typeof K>"u")&&(K=Ge()),Q=G1[m1]&&G1[m1][K]),typeof Q>"u"||!Q.length||!Q[0]){var ee="";H1=[];for(q1 in G1[m1])this.terminals_[q1]&&q1>je&&H1.push("'"+this.terminals_[q1]+"'");M.showPosition?ee="Parse error on line "+(v+1)+`: `+M.showPosition()+` -Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error on line "+(v+1)+": Unexpected "+(K==Ne?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ee,{text:M.match,token:this.terminals_[K]||K,line:M.yylineno,loc:J1,expected:H1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m1+", token: "+K);switch(Q[0]){case 1:p.push(K),y.push(M.yytext),t.push(M.yylloc),p.push(Q[1]),K=null,Re=M.yyleng,s=M.yytext,v=M.yylineno,J1=M.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],R1.$=y[y.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Ye&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),$1=this.performAction.apply(R1,[s,Re,v,k1.yy,Q[1],y,t].concat(Ke)),typeof $1<"u")return $1;c1&&(p=p.slice(0,-1*c1*2),y=y.slice(0,-1*c1),t=t.slice(0,-1*c1)),p.push(this.productions_[Q[1]][0]),y.push(R1.$),t.push(R1._$),Pe=G1[p[p.length-2]][p[p.length-1]],p.push(Pe);break;case 3:return!0}}return!0},"parse")},We=(function(){var f1={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error on line "+(v+1)+": Unexpected "+(K==Ne?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ee,{text:M.match,token:this.terminals_[K]||K,line:M.yylineno,loc:Z1,expected:H1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m1+", token: "+K);switch(Q[0]){case 1:p.push(K),y.push(M.yytext),t.push(M.yylloc),p.push(Q[1]),K=null,Re=M.yyleng,s=M.yytext,v=M.yylineno,Z1=M.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],R1.$=y[y.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Ye&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),$1=this.performAction.apply(R1,[s,Re,v,k1.yy,Q[1],y,t].concat(Ke)),typeof $1<"u")return $1;c1&&(p=p.slice(0,-1*c1*2),y=y.slice(0,-1*c1),t=t.slice(0,-1*c1)),p.push(this.productions_[Q[1]][0]),y.push(R1.$),t.push(R1._$),Pe=G1[p[p.length-2]][p[p.length-1]],p.push(Pe);break;case 3:return!0}}return!0},"parse")},We=(function(){var f1={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+` `+h+"^"},"showPosition"),test_match:b(function(c,h){var p,u,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var t in y)this[t]=y[t];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,p,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),t=0;th[0].length)){if(h=p,u=t,this.options.backtrack_lexer){if(c=this.test_match(p,y[t]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,y[u]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var h=this.next();return h||this.lex()},"lex"),begin:b(function(h){this.conditionStack.push(h)},"begin"),popState:b(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:b(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:b(function(h){this.begin(h)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(h,p,u,y){switch(u){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),p.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const t=/\n\s*/g;return p.yytext=p.yytext.replace(t,"
"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return h.lex.firstGraph()&&this.begin("dir"),12;case 36:return h.lex.firstGraph()&&this.begin("dir"),12;case 37:return h.lex.firstGraph()&&this.begin("dir"),12;case 38:return h.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState("thickEdgeText"),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState("dottedEdgeText"),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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\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-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return f1})();Q1.lexer=We;function Y1(){this.yy={}}return b(Y1,"Parser"),Y1.prototype=Q1,Q1.Parser=Y1,new Y1})();re.parser=re;var Me=re,Ue=Object.assign({},Me);Ue.parse=e=>{const i=e.replace(/}\s*\n/g,`} @@ -153,4 +153,4 @@ Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error text-align: center; } ${He()} -`,"getStyles"),St=Tt,ze=b(({defaultLayout:e,styles:i=St}={})=>({parser:Et,get db(){return new At},renderer:Dt,styles:i,init:b(r=>{r.flowchart||(r.flowchart={});const a=Ze().layout??e??r.layout;a&&Oe({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Oe({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),yt=ze();const Vt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:ze,diagram:yt},Symbol.toStringTag,{value:"Module"}));export{ze as c,Vt as f,St as s}; +`,"getStyles"),St=Tt,ze=b(({defaultLayout:e,styles:i=St}={})=>({parser:Et,get db(){return new At},renderer:Dt,styles:i,init:b(r=>{r.flowchart||(r.flowchart={});const a=Je().layout??e??r.layout;a&&Oe({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Oe({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),yt=ze();const Vt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:ze,diagram:yt},Symbol.toStringTag,{value:"Module"}));export{ze as c,Vt as f,St as s}; diff --git a/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js b/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js similarity index 99% rename from apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js rename to apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js index bfcf7d35953..d38f59fadb3 100644 --- a/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js +++ b/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js @@ -1,4 +1,4 @@ -import{bg as on,bh as On,bi as cn,bj as un,bk as ln,bl as ue,bm as Hn,g as Nn,s as Pn,p as Vn,o as Rn,a as zn,b as qn,_ as d,c as Yt,d as Zt,e as Bn,bn as it,l as Tt,k as Zn,j as Xn,q as Gn,y as jn}from"./mermaid.core-DaDTfY6S.js";import{g as oe}from"./_commonjsHelpers-CqkleIqs.js";import{b as Qn,t as Ne,c as Jn,a as Kn,l as tr}from"./linear-BmFm-Eu7.js";import{i as er}from"./init-Gi6I4Gst.js";import"./index-D1h84VfZ.js";import"./defaultLocale-DX6XiGOO.js";function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function rr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ir(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function sr(t){return"translate("+t+",0)"}function ar(t){return"translate(0,"+t+")"}function or(t){return e=>+t(e)}function cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ur(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Gt||t===Xt?-1:1,w=t===Xt||t===le?"x":"y",P=t===Gt||t===xe?sr:ar;function _(Y){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),B=i??(e.tickFormat?e.tickFormat.apply(e,n):ir),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?cr:or)(e.copy(),F),G=Y.selection?Y.selection():Y,T=G.selectAll(".domain").data([null]),k=G.selectAll(".tick").data(X,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),x=x.merge(L.append("line").attr("stroke","currentColor").attr(w+"2",S*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(w,S*v).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),Y!==G&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Pe).attr("transform",function(M){return isFinite(M=z(M))?P(M+F):this.getAttribute("transform")}),L.attr("opacity",Pe).attr("transform",function(M){var D=this.parentNode.__axis;return P((D&&isFinite(D=D(M))?D:z(M))+F)})),p.remove(),T.attr("d",t===Xt||t===le?a?"M"+S*a+","+R+"H"+F+"V"+E+"H"+S*a:"M"+F+","+R+"V"+E:a?"M"+R+","+S*a+"V"+F+"H"+E+"V"+S*a:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(M){return P(z(M)+F)}),x.attr(w+"2",S*s),C.attr(w,S*v).text(B),G.filter(ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),G.each(function(){this.__axis=z})}return _.scale=function(Y){return arguments.length?(e=Y,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),_):n.slice()},_.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),_):r&&r.slice()},_.tickFormat=function(Y){return arguments.length?(i=Y,_):i},_.tickSize=function(Y){return arguments.length?(s=a=+Y,_):s},_.tickSizeInner=function(Y){return arguments.length?(s=+Y,_):s},_.tickSizeOuter=function(Y){return arguments.length?(a=+Y,_):a},_.tickPadding=function(Y){return arguments.length?(y=+Y,_):y},_.offset=function(Y){return arguments.length?(F=+Y,_):F},_}function lr(t){return fn(Gt,t)}function fr(t){return fn(xe,t)}const dr=Math.PI/180,hr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,mr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=On(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),s,a;return e===n&&n===r?s=a=i:(s=fe((.4360747*e+.3850649*n+.1430804*r)/dn),a=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(s-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}cn(ft,gr,un(ln,{brighter(t){return new ft(this.l+ne*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-ne*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=dn*de(e),t=hn*de(t),n=mn*de(n),new on(he(3.1338561*e-1.6168667*t-.4906146*n),he(-.9787684*e+1.9161415*t+.033454*n),he(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function fe(t){return t>mr?Math.pow(t,1/3):t/yn+gn}function de(t){return t>Ft?t*t*t:yn*(t-gn)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=kn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const F=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return F;let S;do F.push(S=new Date(+s)),e(s,y),t(s);while(Snt(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(ge.setTime(+s),ye.setTime(+a),t(ge),t(ye),Math.floor(n(ge,ye))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Et=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,Se=yt*7,Ve=yt*30,ke=yt*365,vt=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Nt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Nt.range;const Tr=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());Tr.range;const Pt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Pt.range;const xr=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());xr.range;const xt=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const _e=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);_e.range;const br=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));br.range;function Dt(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Se)}const zt=Dt(0),Vt=Dt(1),vn=Dt(2),Tn=Dt(3),bt=Dt(4),xn=Dt(5),bn=Dt(6);zt.range;Vt.range;vn.range;Tn.range;bt.range;xn.range;bn.range;function Mt(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Se)}const wn=Mt(0),re=Mt(1),wr=Mt(2),Dr=Mt(3),It=Mt(4),Mr=Mt(5),Cr=Mt(6);wn.range;re.range;wr.range;Dr.range;It.range;Mr.range;Cr.range;const Rt=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Rt.range;const Sr=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Sr.range;const kt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function _r(t,e,n,r,i,s){const a=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[s,1,ct],[s,5,5*ct],[s,15,15*ct],[s,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Se],[e,1,Ve],[e,3,3*Ve],[t,1,ke]];function y(S,w,P){const _=wv).right(a,_);if(Y===a.length)return t.every(Ne(S/ke,w/ke,P));if(Y===0)return Et.every(Math.max(Ne(S,w,P),1));const[X,B]=a[_/a[Y-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(A=ve($t(f.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?re.ceil(A):re(A),A=_e.offset(A,(f.V-1)*7),f.y=A.getUTCFullYear(),f.m=A.getUTCMonth(),f.d=A.getUTCDate()+(f.w+6)%7):(A=pe($t(f.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Vt.ceil(A):Vt(A),A=xt.offset(A,(f.V-1)*7),f.y=A.getFullYear(),f.m=A.getMonth(),f.d=A.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),Q="Z"in f?ve($t(f.y,0,1)).getUTCDay():pe($t(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Q+5)%7:f.w+f.U*7-(Q+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ve(f)):pe(f)}}function p(h,N,V,f){for(var tt=0,A=N.length,Q=V.length,Z,st;tt=Q)return-1;if(Z=N.charCodeAt(tt++),Z===37){if(Z=N.charAt(tt++),st=G[Z in Re?N.charAt(tt++):Z],!st||(f=st(h,V,f))<0)return-1}else if(Z!=V.charCodeAt(f++))return-1}return f}function L(h,N,V){var f=S.exec(N.slice(V));return f?(h.p=w.get(f[0].toLowerCase()),V+f[0].length):-1}function x(h,N,V){var f=Y.exec(N.slice(V));return f?(h.w=X.get(f[0].toLowerCase()),V+f[0].length):-1}function C(h,N,V){var f=P.exec(N.slice(V));return f?(h.w=_.get(f[0].toLowerCase()),V+f[0].length):-1}function M(h,N,V){var f=U.exec(N.slice(V));return f?(h.m=R.get(f[0].toLowerCase()),V+f[0].length):-1}function D(h,N,V){var f=B.exec(N.slice(V));return f?(h.m=v.get(f[0].toLowerCase()),V+f[0].length):-1}function c(h,N,V){return p(h,e,N,V)}function g(h,N,V){return p(h,n,N,V)}function b(h,N,V){return p(h,r,N,V)}function m(h){return a[h.getDay()]}function I(h){return s[h.getDay()]}function o(h){return F[h.getMonth()]}function W(h){return y[h.getMonth()]}function u(h){return i[+(h.getHours()>=12)]}function K(h){return 1+~~(h.getMonth()/3)}function l(h){return a[h.getUTCDay()]}function $(h){return s[h.getUTCDay()]}function O(h){return F[h.getUTCMonth()]}function j(h){return y[h.getUTCMonth()]}function H(h){return i[+(h.getUTCHours()>=12)]}function J(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var N=T(h+="",E);return N.toString=function(){return h},N},parse:function(h){var N=k(h+="",!1);return N.toString=function(){return h},N},utcFormat:function(h){var N=T(h+="",z);return N.toString=function(){return h},N},utcParse:function(h){var N=k(h+="",!0);return N.toString=function(){return h},N}}}var Re={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,Er=/^%/,Ir=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function Ar(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Nr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Be(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ze(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Gr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xe(t,e){return q(t.getDate(),e,2)}function Qr(t,e){return q(t.getHours(),e,2)}function Jr(t,e){return q(t.getHours()%12||12,e,2)}function Kr(t,e){return q(1+xt.count(kt(t),t),e,3)}function Dn(t,e){return q(t.getMilliseconds(),e,3)}function ti(t,e){return Dn(t,e)+"000"}function ei(t,e){return q(t.getMonth()+1,e,2)}function ni(t,e){return q(t.getMinutes(),e,2)}function ri(t,e){return q(t.getSeconds(),e,2)}function ii(t){var e=t.getDay();return e===0?7:e}function si(t,e){return q(zt.count(kt(t)-1,t),e,2)}function Mn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ai(t,e){return t=Mn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function oi(t){return t.getDay()}function ci(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function ui(t,e){return q(t.getFullYear()%100,e,2)}function li(t,e){return t=Mn(t),q(t.getFullYear()%100,e,2)}function fi(t,e){return q(t.getFullYear()%1e4,e,4)}function di(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function hi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ge(t,e){return q(t.getUTCDate(),e,2)}function mi(t,e){return q(t.getUTCHours(),e,2)}function gi(t,e){return q(t.getUTCHours()%12||12,e,2)}function yi(t,e){return q(1+_e.count(wt(t),t),e,3)}function Cn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ki(t,e){return Cn(t,e)+"000"}function pi(t,e){return q(t.getUTCMonth()+1,e,2)}function vi(t,e){return q(t.getUTCMinutes(),e,2)}function Ti(t,e){return q(t.getUTCSeconds(),e,2)}function xi(t){var e=t.getUTCDay();return e===0?7:e}function bi(t,e){return q(wn.count(wt(t)-1,t),e,2)}function Sn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function wi(t,e){return t=Sn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Di(t){return t.getUTCDay()}function Mi(t,e){return q(re.count(wt(t)-1,t),e,2)}function Ci(t,e){return q(t.getUTCFullYear()%100,e,2)}function Si(t,e){return t=Sn(t),q(t.getUTCFullYear()%100,e,2)}function _i(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Fi(){return"+0000"}function je(){return"%"}function Qe(t){return+t}function Je(t){return Math.floor(+t/1e3)}var St,ie;Ui({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ui(t){return St=Ur(t),ie=St.format,St.parse,St.utcFormat,St.utcParse,St}function Ei(t){return new Date(t)}function Ii(t){return t instanceof Date?+t:+new Date(+t)}function _n(t,e,n,r,i,s,a,y,F,S){var w=Jn(),P=w.invert,_=w.domain,Y=S(".%L"),X=S(":%S"),B=S("%I:%M"),v=S("%I %p"),U=S("%a %d"),R=S("%b %d"),E=S("%B"),z=S("%Y");function G(T){return(F(T)4&&(Y+=7),_.add(Y,n));return X.diff(B,"week")+1},y.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var F=y.startOf;y.startOf=function(S,w){var P=this.$utils(),_=!!P.u(w)||w;return P.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(S,w)}}}))})(jt)),jt.exports}var $i=Wi();const Oi=oe($i);var Qt={exports:{}},Hi=Qt.exports,tn;function Ni(){return tn||(tn=1,(function(t,e){(function(n,r){t.exports=r()})(Hi,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,F={},S=function(v){return(v=+v)+(v>68?1900:2e3)},w=function(v){return function(U){this[v]=+U}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(U){if(!U||U==="Z")return 0;var R=U.match(/([+-]|\d\d)/g),E=60*R[1]+(+R[2]||0);return E===0?0:R[0]==="+"?-E:E})(v)}],_=function(v){var U=F[v];return U&&(U.indexOf?U:U.s.concat(U.f))},Y=function(v,U){var R,E=F.meridiem;if(E){for(var z=1;z<=24;z+=1)if(v.indexOf(E(z,0,U))>-1){R=z>12;break}}else R=v===(U?"pm":"PM");return R},X={A:[y,function(v){this.afternoon=Y(v,!1)}],a:[y,function(v){this.afternoon=Y(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,w("seconds")],ss:[a,w("seconds")],m:[a,w("minutes")],mm:[a,w("minutes")],H:[a,w("hours")],h:[a,w("hours")],HH:[a,w("hours")],hh:[a,w("hours")],D:[a,w("day")],DD:[s,w("day")],Do:[y,function(v){var U=F.ordinal,R=v.match(/\d+/);if(this.day=R[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[a,w("week")],ww:[s,w("week")],M:[a,w("month")],MM:[s,w("month")],MMM:[y,function(v){var U=_("months"),R=(_("monthsShort")||U.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[y,function(v){var U=_("months").indexOf(v)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,w("year")],YY:[s,function(v){this.year=S(v)}],YYYY:[/\d{4}/,w("year")],Z:P,ZZ:P};function B(v){var U,R;U=v,R=F&&F.formats;for(var E=(v=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,M){var D=M&&M.toUpperCase();return C||R[M]||n[M]||R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(c,g,b){return g||b.slice(1)}))}))).match(r),z=E.length,G=0;G-1)return new Date((I==="X"?1e3:1)*m);var u=B(I)(m),K=u.year,l=u.month,$=u.day,O=u.hours,j=u.minutes,H=u.seconds,J=u.milliseconds,h=u.zone,N=u.week,V=new Date,f=$||(K||l?1:V.getDate()),tt=K||V.getFullYear(),A=0;K&&!l||(A=l>0?l-1:V.getMonth());var Q,Z=O||0,st=j||0,at=H||0,pt=J||0;return h?new Date(Date.UTC(tt,A,f,Z,st,at,pt+60*h.offset*1e3)):o?new Date(Date.UTC(tt,A,f,Z,st,at,pt)):(Q=new Date(tt,A,f,Z,st,at,pt),N&&(Q=W(Q).week(N).toDate()),Q)}catch{return new Date("")}})(T,L,k,R),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&T!=this.format(L)&&(this.$d=new Date("")),F={}}else if(L instanceof Array)for(var c=L.length,g=1;g<=c;g+=1){p[1]=L[g-1];var b=R.apply(this,p);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}g===c&&(this.$d=new Date(""))}else z.call(this,G)}}}))})(Qt)),Qt.exports}var Pi=Ni();const Vi=oe(Pi);var Jt={exports:{}},Ri=Jt.exports,en;function zi(){return en||(en=1,(function(t,e){(function(n,r){t.exports=r()})(Ri,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,F=this.$locale();if(!this.isValid())return s.bind(this)(a);var S=this.$utils(),w=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return F.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return F.ordinal(y.week(),"W");case"w":case"ww":return S.s(y.week(),P==="w"?1:2,"0");case"W":case"WW":return S.s(y.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return S.s(String(y.$H===0?24:y.$H),P==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return P}}));return s.bind(this)(w)}}}))})(Jt)),Jt.exports}var qi=zi();const Bi=oe(qi);var Kt={exports:{}},Zi=Kt.exports,nn;function Xi(){return nn||(nn=1,(function(t,e){(function(n,r){t.exports=r()})(Zi,(function(){var n,r,i=1e3,s=6e4,a=36e5,y=864e5,F=31536e6,S=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,P=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:F,months:S,days:y,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},Y=function(T){return T instanceof z},X=function(T,k,p){return new z(T,p,k.$l)},B=function(T){return r.p(T)+"s"},v=function(T){return T<0},U=function(T){return v(T)?Math.ceil(T):Math.floor(T)},R=function(T){return Math.abs(T)},E=function(T,k){return T?v(T)?{negative:!0,format:""+R(T)+k}:{negative:!1,format:""+T+k}:{negative:!1,format:""}},z=(function(){function T(p,L,x){var C=this;if(this.$d={},this.$l=x,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return X(p*_[B(L)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(c){C.$d[B(c)]=p[c]})),this.calMilliseconds(),this;if(typeof p=="string"){var M=p.match(w);if(M){var D=M.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=D[0],this.$d.months=D[1],this.$d.weeks=D[2],this.$d.days=D[3],this.$d.hours=D[4],this.$d.minutes=D[5],this.$d.seconds=D[6],this.calMilliseconds(),this}}return this}var k=T.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function(L,x){return L+(p.$d[x]||0)*_[x]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=U(p/F),p%=F,this.$d.months=U(p/S),p%=S,this.$d.days=U(p/y),p%=y,this.$d.hours=U(p/a),p%=a,this.$d.minutes=U(p/s),p%=s,this.$d.seconds=U(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=E(this.$d.years,"Y"),L=E(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var C=E(x,"D"),M=E(this.$d.hours,"H"),D=E(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var g=E(c,"S"),b=p.negative||L.negative||C.negative||M.negative||D.negative||g.negative,m=M.format||D.format||g.format?"T":"",I=(b?"-":"")+"P"+p.format+L.format+C.format+m+M.format+D.format+g.format;return I==="P"||I==="-P"?"P0D":I},k.toJSON=function(){return this.toISOString()},k.format=function(p){var L=p||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(P,(function(C,M){return M||String(x[C])}))},k.as=function(p){return this.$ms/_[B(p)]},k.get=function(p){var L=this.$ms,x=B(p);return x==="milliseconds"?L%=1e3:L=x==="weeks"?U(L/_[x]):this.$d[x],L||0},k.add=function(p,L,x){var C;return C=L?p*_[B(L)]:Y(p)?p.$ms:X(p,this).$ms,X(this.$ms+C*(x?-1:1),this)},k.subtract=function(p,L){return this.add(p,L,!0)},k.locale=function(p){var L=this.clone();return L.$l=p,L},k.clone=function(){return X(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},T})(),G=function(T,k,p){return T.add(k.years()*p,"y").add(k.months()*p,"M").add(k.days()*p,"d").add(k.hours()*p,"h").add(k.minutes()*p,"m").add(k.seconds()*p,"s").add(k.milliseconds()*p,"ms")};return function(T,k,p){n=p,r=p().$utils(),p.duration=function(C,M){var D=p.locale();return X(C,{$l:D},M)},p.isDuration=Y;var L=k.prototype.add,x=k.prototype.subtract;k.prototype.add=function(C,M){return Y(C)?G(this,C,1):L.bind(this)(C,M)},k.prototype.subtract=function(C,M){return Y(C)?G(this,C,-1):x.bind(this)(C,M)}}}))})(Kt)),Kt.exports}var Gi=Xi();const ji=oe(Gi);var we=(function(){var t=d(function(D,c,g,b){for(g=g||{},b=D.length;b--;g[D[b]]=c);return g},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],y=[1,31],F=[1,32],S=[1,33],w=[1,34],P=[1,9],_=[1,10],Y=[1,11],X=[1,12],B=[1,13],v=[1,14],U=[1,15],R=[1,16],E=[1,19],z=[1,20],G=[1,21],T=[1,22],k=[1,23],p=[1,25],L=[1,35],x={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(c,g,b,m,I,o,W){var u=o.length-1;switch(I){case 1:return o[u-1];case 2:this.$=[];break;case 3:o[u-1].push(o[u]),this.$=o[u-1];break;case 4:case 5:this.$=o[u];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=o[u].substr(18);break;case 19:m.TopAxis(),this.$=o[u].substr(8);break;case 20:m.setAxisFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 21:m.setTickInterval(o[u].substr(13)),this.$=o[u].substr(13);break;case 22:m.setExcludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 23:m.setIncludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 24:m.setTodayMarker(o[u].substr(12)),this.$=o[u].substr(12);break;case 27:m.setDiagramTitle(o[u].substr(6)),this.$=o[u].substr(6);break;case 28:this.$=o[u].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=o[u].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(o[u].substr(8)),this.$=o[u].substr(8);break;case 33:m.addTask(o[u-1],o[u]),this.$="task";break;case 34:this.$=o[u-1],m.setClickEvent(o[u-1],o[u],null);break;case 35:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],o[u]);break;case 36:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],null),m.setLink(o[u-2],o[u]);break;case 37:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-2],o[u-1]),m.setLink(o[u-3],o[u]);break;case 38:this.$=o[u-2],m.setClickEvent(o[u-2],o[u],null),m.setLink(o[u-2],o[u-1]);break;case 39:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-1],o[u]),m.setLink(o[u-3],o[u-2]);break;case 40:this.$=o[u-1],m.setLink(o[u-1],o[u]);break;case 41:case 47:this.$=o[u-1]+" "+o[u];break;case 42:case 43:case 45:this.$=o[u-2]+" "+o[u-1]+" "+o[u];break;case 44:case 46:this.$=o[u-3]+" "+o[u-2]+" "+o[u-1]+" "+o[u];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(c,g){if(g.recoverable)this.trace(c);else{var b=new Error(c);throw b.hash=g,b}},"parseError"),parse:d(function(c){var g=this,b=[0],m=[],I=[null],o=[],W=this.table,u="",K=0,l=0,$=2,O=1,j=o.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(J.yy[h]=this.yy[h]);H.setInput(c,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var N=H.yylloc;o.push(N);var V=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){b.length=b.length-2*ot,I.length=I.length-ot,o.length=o.length-ot}d(f,"popStack");function tt(){var ot;return ot=m.pop()||H.lex()||O,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=g.symbols_[ot]||ot),ot}d(tt,"lex");for(var A,Q,Z,st,at={},pt,ut,He,Bt;;){if(Q=b[b.length-1],this.defaultActions[Q]?Z=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=tt()),Z=W[Q]&&W[Q][A]),typeof Z>"u"||!Z.length||!Z[0]){var ce="";Bt=[];for(pt in W[Q])this.terminals_[pt]&&pt>$&&Bt.push("'"+this.terminals_[pt]+"'");H.showPosition?ce="Parse error on line "+(K+1)+`: +import{bg as on,bh as On,bi as cn,bj as un,bk as ln,bl as ue,bm as Hn,g as Nn,s as Pn,o as Vn,n as Rn,a as zn,b as qn,_ as d,c as Yt,d as Zt,e as Bn,bn as it,l as Tt,k as Zn,j as Xn,p as Gn,x as jn}from"./mermaid.core-D8UeR6T-.js";import{g as oe}from"./_commonjsHelpers-CqkleIqs.js";import{b as Qn,t as Ne,c as Jn,a as Kn,l as tr}from"./linear-CTrOW4k9.js";import{i as er}from"./init-Gi6I4Gst.js";import"./index-CAYChmT7.js";import"./defaultLocale-DX6XiGOO.js";function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function rr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ir(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function sr(t){return"translate("+t+",0)"}function ar(t){return"translate(0,"+t+")"}function or(t){return e=>+t(e)}function cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ur(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Gt||t===Xt?-1:1,w=t===Xt||t===le?"x":"y",P=t===Gt||t===xe?sr:ar;function _(Y){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),B=i??(e.tickFormat?e.tickFormat.apply(e,n):ir),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?cr:or)(e.copy(),F),G=Y.selection?Y.selection():Y,T=G.selectAll(".domain").data([null]),k=G.selectAll(".tick").data(X,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),x=x.merge(L.append("line").attr("stroke","currentColor").attr(w+"2",S*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(w,S*v).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),Y!==G&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Pe).attr("transform",function(M){return isFinite(M=z(M))?P(M+F):this.getAttribute("transform")}),L.attr("opacity",Pe).attr("transform",function(M){var D=this.parentNode.__axis;return P((D&&isFinite(D=D(M))?D:z(M))+F)})),p.remove(),T.attr("d",t===Xt||t===le?a?"M"+S*a+","+R+"H"+F+"V"+E+"H"+S*a:"M"+F+","+R+"V"+E:a?"M"+R+","+S*a+"V"+F+"H"+E+"V"+S*a:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(M){return P(z(M)+F)}),x.attr(w+"2",S*s),C.attr(w,S*v).text(B),G.filter(ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),G.each(function(){this.__axis=z})}return _.scale=function(Y){return arguments.length?(e=Y,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),_):n.slice()},_.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),_):r&&r.slice()},_.tickFormat=function(Y){return arguments.length?(i=Y,_):i},_.tickSize=function(Y){return arguments.length?(s=a=+Y,_):s},_.tickSizeInner=function(Y){return arguments.length?(s=+Y,_):s},_.tickSizeOuter=function(Y){return arguments.length?(a=+Y,_):a},_.tickPadding=function(Y){return arguments.length?(y=+Y,_):y},_.offset=function(Y){return arguments.length?(F=+Y,_):F},_}function lr(t){return fn(Gt,t)}function fr(t){return fn(xe,t)}const dr=Math.PI/180,hr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,mr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=On(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),s,a;return e===n&&n===r?s=a=i:(s=fe((.4360747*e+.3850649*n+.1430804*r)/dn),a=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(s-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}cn(ft,gr,un(ln,{brighter(t){return new ft(this.l+ne*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-ne*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=dn*de(e),t=hn*de(t),n=mn*de(n),new on(he(3.1338561*e-1.6168667*t-.4906146*n),he(-.9787684*e+1.9161415*t+.033454*n),he(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function fe(t){return t>mr?Math.pow(t,1/3):t/yn+gn}function de(t){return t>Ft?t*t*t:yn*(t-gn)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=kn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const F=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return F;let S;do F.push(S=new Date(+s)),e(s,y),t(s);while(Snt(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(ge.setTime(+s),ye.setTime(+a),t(ge),t(ye),Math.floor(n(ge,ye))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Et=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,Se=yt*7,Ve=yt*30,ke=yt*365,vt=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Nt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Nt.range;const Tr=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());Tr.range;const Pt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Pt.range;const xr=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());xr.range;const xt=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const _e=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);_e.range;const br=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));br.range;function Dt(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Se)}const zt=Dt(0),Vt=Dt(1),vn=Dt(2),Tn=Dt(3),bt=Dt(4),xn=Dt(5),bn=Dt(6);zt.range;Vt.range;vn.range;Tn.range;bt.range;xn.range;bn.range;function Mt(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Se)}const wn=Mt(0),re=Mt(1),wr=Mt(2),Dr=Mt(3),It=Mt(4),Mr=Mt(5),Cr=Mt(6);wn.range;re.range;wr.range;Dr.range;It.range;Mr.range;Cr.range;const Rt=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Rt.range;const Sr=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Sr.range;const kt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function _r(t,e,n,r,i,s){const a=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[s,1,ct],[s,5,5*ct],[s,15,15*ct],[s,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Se],[e,1,Ve],[e,3,3*Ve],[t,1,ke]];function y(S,w,P){const _=wv).right(a,_);if(Y===a.length)return t.every(Ne(S/ke,w/ke,P));if(Y===0)return Et.every(Math.max(Ne(S,w,P),1));const[X,B]=a[_/a[Y-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(A=ve($t(f.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?re.ceil(A):re(A),A=_e.offset(A,(f.V-1)*7),f.y=A.getUTCFullYear(),f.m=A.getUTCMonth(),f.d=A.getUTCDate()+(f.w+6)%7):(A=pe($t(f.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Vt.ceil(A):Vt(A),A=xt.offset(A,(f.V-1)*7),f.y=A.getFullYear(),f.m=A.getMonth(),f.d=A.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),Q="Z"in f?ve($t(f.y,0,1)).getUTCDay():pe($t(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Q+5)%7:f.w+f.U*7-(Q+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ve(f)):pe(f)}}function p(h,N,V,f){for(var tt=0,A=N.length,Q=V.length,Z,st;tt=Q)return-1;if(Z=N.charCodeAt(tt++),Z===37){if(Z=N.charAt(tt++),st=G[Z in Re?N.charAt(tt++):Z],!st||(f=st(h,V,f))<0)return-1}else if(Z!=V.charCodeAt(f++))return-1}return f}function L(h,N,V){var f=S.exec(N.slice(V));return f?(h.p=w.get(f[0].toLowerCase()),V+f[0].length):-1}function x(h,N,V){var f=Y.exec(N.slice(V));return f?(h.w=X.get(f[0].toLowerCase()),V+f[0].length):-1}function C(h,N,V){var f=P.exec(N.slice(V));return f?(h.w=_.get(f[0].toLowerCase()),V+f[0].length):-1}function M(h,N,V){var f=U.exec(N.slice(V));return f?(h.m=R.get(f[0].toLowerCase()),V+f[0].length):-1}function D(h,N,V){var f=B.exec(N.slice(V));return f?(h.m=v.get(f[0].toLowerCase()),V+f[0].length):-1}function c(h,N,V){return p(h,e,N,V)}function g(h,N,V){return p(h,n,N,V)}function b(h,N,V){return p(h,r,N,V)}function m(h){return a[h.getDay()]}function I(h){return s[h.getDay()]}function o(h){return F[h.getMonth()]}function W(h){return y[h.getMonth()]}function u(h){return i[+(h.getHours()>=12)]}function K(h){return 1+~~(h.getMonth()/3)}function l(h){return a[h.getUTCDay()]}function $(h){return s[h.getUTCDay()]}function O(h){return F[h.getUTCMonth()]}function j(h){return y[h.getUTCMonth()]}function H(h){return i[+(h.getUTCHours()>=12)]}function J(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var N=T(h+="",E);return N.toString=function(){return h},N},parse:function(h){var N=k(h+="",!1);return N.toString=function(){return h},N},utcFormat:function(h){var N=T(h+="",z);return N.toString=function(){return h},N},utcParse:function(h){var N=k(h+="",!0);return N.toString=function(){return h},N}}}var Re={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,Er=/^%/,Ir=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function Ar(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Nr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Be(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ze(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Gr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xe(t,e){return q(t.getDate(),e,2)}function Qr(t,e){return q(t.getHours(),e,2)}function Jr(t,e){return q(t.getHours()%12||12,e,2)}function Kr(t,e){return q(1+xt.count(kt(t),t),e,3)}function Dn(t,e){return q(t.getMilliseconds(),e,3)}function ti(t,e){return Dn(t,e)+"000"}function ei(t,e){return q(t.getMonth()+1,e,2)}function ni(t,e){return q(t.getMinutes(),e,2)}function ri(t,e){return q(t.getSeconds(),e,2)}function ii(t){var e=t.getDay();return e===0?7:e}function si(t,e){return q(zt.count(kt(t)-1,t),e,2)}function Mn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ai(t,e){return t=Mn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function oi(t){return t.getDay()}function ci(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function ui(t,e){return q(t.getFullYear()%100,e,2)}function li(t,e){return t=Mn(t),q(t.getFullYear()%100,e,2)}function fi(t,e){return q(t.getFullYear()%1e4,e,4)}function di(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function hi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ge(t,e){return q(t.getUTCDate(),e,2)}function mi(t,e){return q(t.getUTCHours(),e,2)}function gi(t,e){return q(t.getUTCHours()%12||12,e,2)}function yi(t,e){return q(1+_e.count(wt(t),t),e,3)}function Cn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ki(t,e){return Cn(t,e)+"000"}function pi(t,e){return q(t.getUTCMonth()+1,e,2)}function vi(t,e){return q(t.getUTCMinutes(),e,2)}function Ti(t,e){return q(t.getUTCSeconds(),e,2)}function xi(t){var e=t.getUTCDay();return e===0?7:e}function bi(t,e){return q(wn.count(wt(t)-1,t),e,2)}function Sn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function wi(t,e){return t=Sn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Di(t){return t.getUTCDay()}function Mi(t,e){return q(re.count(wt(t)-1,t),e,2)}function Ci(t,e){return q(t.getUTCFullYear()%100,e,2)}function Si(t,e){return t=Sn(t),q(t.getUTCFullYear()%100,e,2)}function _i(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Fi(){return"+0000"}function je(){return"%"}function Qe(t){return+t}function Je(t){return Math.floor(+t/1e3)}var St,ie;Ui({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ui(t){return St=Ur(t),ie=St.format,St.parse,St.utcFormat,St.utcParse,St}function Ei(t){return new Date(t)}function Ii(t){return t instanceof Date?+t:+new Date(+t)}function _n(t,e,n,r,i,s,a,y,F,S){var w=Jn(),P=w.invert,_=w.domain,Y=S(".%L"),X=S(":%S"),B=S("%I:%M"),v=S("%I %p"),U=S("%a %d"),R=S("%b %d"),E=S("%B"),z=S("%Y");function G(T){return(F(T)4&&(Y+=7),_.add(Y,n));return X.diff(B,"week")+1},y.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var F=y.startOf;y.startOf=function(S,w){var P=this.$utils(),_=!!P.u(w)||w;return P.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(S,w)}}}))})(jt)),jt.exports}var $i=Wi();const Oi=oe($i);var Qt={exports:{}},Hi=Qt.exports,tn;function Ni(){return tn||(tn=1,(function(t,e){(function(n,r){t.exports=r()})(Hi,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,F={},S=function(v){return(v=+v)+(v>68?1900:2e3)},w=function(v){return function(U){this[v]=+U}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(U){if(!U||U==="Z")return 0;var R=U.match(/([+-]|\d\d)/g),E=60*R[1]+(+R[2]||0);return E===0?0:R[0]==="+"?-E:E})(v)}],_=function(v){var U=F[v];return U&&(U.indexOf?U:U.s.concat(U.f))},Y=function(v,U){var R,E=F.meridiem;if(E){for(var z=1;z<=24;z+=1)if(v.indexOf(E(z,0,U))>-1){R=z>12;break}}else R=v===(U?"pm":"PM");return R},X={A:[y,function(v){this.afternoon=Y(v,!1)}],a:[y,function(v){this.afternoon=Y(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,w("seconds")],ss:[a,w("seconds")],m:[a,w("minutes")],mm:[a,w("minutes")],H:[a,w("hours")],h:[a,w("hours")],HH:[a,w("hours")],hh:[a,w("hours")],D:[a,w("day")],DD:[s,w("day")],Do:[y,function(v){var U=F.ordinal,R=v.match(/\d+/);if(this.day=R[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[a,w("week")],ww:[s,w("week")],M:[a,w("month")],MM:[s,w("month")],MMM:[y,function(v){var U=_("months"),R=(_("monthsShort")||U.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[y,function(v){var U=_("months").indexOf(v)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,w("year")],YY:[s,function(v){this.year=S(v)}],YYYY:[/\d{4}/,w("year")],Z:P,ZZ:P};function B(v){var U,R;U=v,R=F&&F.formats;for(var E=(v=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,M){var D=M&&M.toUpperCase();return C||R[M]||n[M]||R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(c,g,b){return g||b.slice(1)}))}))).match(r),z=E.length,G=0;G-1)return new Date((I==="X"?1e3:1)*m);var u=B(I)(m),K=u.year,l=u.month,$=u.day,O=u.hours,j=u.minutes,H=u.seconds,J=u.milliseconds,h=u.zone,N=u.week,V=new Date,f=$||(K||l?1:V.getDate()),tt=K||V.getFullYear(),A=0;K&&!l||(A=l>0?l-1:V.getMonth());var Q,Z=O||0,st=j||0,at=H||0,pt=J||0;return h?new Date(Date.UTC(tt,A,f,Z,st,at,pt+60*h.offset*1e3)):o?new Date(Date.UTC(tt,A,f,Z,st,at,pt)):(Q=new Date(tt,A,f,Z,st,at,pt),N&&(Q=W(Q).week(N).toDate()),Q)}catch{return new Date("")}})(T,L,k,R),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&T!=this.format(L)&&(this.$d=new Date("")),F={}}else if(L instanceof Array)for(var c=L.length,g=1;g<=c;g+=1){p[1]=L[g-1];var b=R.apply(this,p);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}g===c&&(this.$d=new Date(""))}else z.call(this,G)}}}))})(Qt)),Qt.exports}var Pi=Ni();const Vi=oe(Pi);var Jt={exports:{}},Ri=Jt.exports,en;function zi(){return en||(en=1,(function(t,e){(function(n,r){t.exports=r()})(Ri,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,F=this.$locale();if(!this.isValid())return s.bind(this)(a);var S=this.$utils(),w=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return F.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return F.ordinal(y.week(),"W");case"w":case"ww":return S.s(y.week(),P==="w"?1:2,"0");case"W":case"WW":return S.s(y.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return S.s(String(y.$H===0?24:y.$H),P==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return P}}));return s.bind(this)(w)}}}))})(Jt)),Jt.exports}var qi=zi();const Bi=oe(qi);var Kt={exports:{}},Zi=Kt.exports,nn;function Xi(){return nn||(nn=1,(function(t,e){(function(n,r){t.exports=r()})(Zi,(function(){var n,r,i=1e3,s=6e4,a=36e5,y=864e5,F=31536e6,S=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,P=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:F,months:S,days:y,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},Y=function(T){return T instanceof z},X=function(T,k,p){return new z(T,p,k.$l)},B=function(T){return r.p(T)+"s"},v=function(T){return T<0},U=function(T){return v(T)?Math.ceil(T):Math.floor(T)},R=function(T){return Math.abs(T)},E=function(T,k){return T?v(T)?{negative:!0,format:""+R(T)+k}:{negative:!1,format:""+T+k}:{negative:!1,format:""}},z=(function(){function T(p,L,x){var C=this;if(this.$d={},this.$l=x,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return X(p*_[B(L)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(c){C.$d[B(c)]=p[c]})),this.calMilliseconds(),this;if(typeof p=="string"){var M=p.match(w);if(M){var D=M.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=D[0],this.$d.months=D[1],this.$d.weeks=D[2],this.$d.days=D[3],this.$d.hours=D[4],this.$d.minutes=D[5],this.$d.seconds=D[6],this.calMilliseconds(),this}}return this}var k=T.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function(L,x){return L+(p.$d[x]||0)*_[x]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=U(p/F),p%=F,this.$d.months=U(p/S),p%=S,this.$d.days=U(p/y),p%=y,this.$d.hours=U(p/a),p%=a,this.$d.minutes=U(p/s),p%=s,this.$d.seconds=U(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=E(this.$d.years,"Y"),L=E(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var C=E(x,"D"),M=E(this.$d.hours,"H"),D=E(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var g=E(c,"S"),b=p.negative||L.negative||C.negative||M.negative||D.negative||g.negative,m=M.format||D.format||g.format?"T":"",I=(b?"-":"")+"P"+p.format+L.format+C.format+m+M.format+D.format+g.format;return I==="P"||I==="-P"?"P0D":I},k.toJSON=function(){return this.toISOString()},k.format=function(p){var L=p||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(P,(function(C,M){return M||String(x[C])}))},k.as=function(p){return this.$ms/_[B(p)]},k.get=function(p){var L=this.$ms,x=B(p);return x==="milliseconds"?L%=1e3:L=x==="weeks"?U(L/_[x]):this.$d[x],L||0},k.add=function(p,L,x){var C;return C=L?p*_[B(L)]:Y(p)?p.$ms:X(p,this).$ms,X(this.$ms+C*(x?-1:1),this)},k.subtract=function(p,L){return this.add(p,L,!0)},k.locale=function(p){var L=this.clone();return L.$l=p,L},k.clone=function(){return X(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},T})(),G=function(T,k,p){return T.add(k.years()*p,"y").add(k.months()*p,"M").add(k.days()*p,"d").add(k.hours()*p,"h").add(k.minutes()*p,"m").add(k.seconds()*p,"s").add(k.milliseconds()*p,"ms")};return function(T,k,p){n=p,r=p().$utils(),p.duration=function(C,M){var D=p.locale();return X(C,{$l:D},M)},p.isDuration=Y;var L=k.prototype.add,x=k.prototype.subtract;k.prototype.add=function(C,M){return Y(C)?G(this,C,1):L.bind(this)(C,M)},k.prototype.subtract=function(C,M){return Y(C)?G(this,C,-1):x.bind(this)(C,M)}}}))})(Kt)),Kt.exports}var Gi=Xi();const ji=oe(Gi);var we=(function(){var t=d(function(D,c,g,b){for(g=g||{},b=D.length;b--;g[D[b]]=c);return g},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],y=[1,31],F=[1,32],S=[1,33],w=[1,34],P=[1,9],_=[1,10],Y=[1,11],X=[1,12],B=[1,13],v=[1,14],U=[1,15],R=[1,16],E=[1,19],z=[1,20],G=[1,21],T=[1,22],k=[1,23],p=[1,25],L=[1,35],x={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(c,g,b,m,I,o,W){var u=o.length-1;switch(I){case 1:return o[u-1];case 2:this.$=[];break;case 3:o[u-1].push(o[u]),this.$=o[u-1];break;case 4:case 5:this.$=o[u];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=o[u].substr(18);break;case 19:m.TopAxis(),this.$=o[u].substr(8);break;case 20:m.setAxisFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 21:m.setTickInterval(o[u].substr(13)),this.$=o[u].substr(13);break;case 22:m.setExcludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 23:m.setIncludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 24:m.setTodayMarker(o[u].substr(12)),this.$=o[u].substr(12);break;case 27:m.setDiagramTitle(o[u].substr(6)),this.$=o[u].substr(6);break;case 28:this.$=o[u].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=o[u].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(o[u].substr(8)),this.$=o[u].substr(8);break;case 33:m.addTask(o[u-1],o[u]),this.$="task";break;case 34:this.$=o[u-1],m.setClickEvent(o[u-1],o[u],null);break;case 35:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],o[u]);break;case 36:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],null),m.setLink(o[u-2],o[u]);break;case 37:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-2],o[u-1]),m.setLink(o[u-3],o[u]);break;case 38:this.$=o[u-2],m.setClickEvent(o[u-2],o[u],null),m.setLink(o[u-2],o[u-1]);break;case 39:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-1],o[u]),m.setLink(o[u-3],o[u-2]);break;case 40:this.$=o[u-1],m.setLink(o[u-1],o[u]);break;case 41:case 47:this.$=o[u-1]+" "+o[u];break;case 42:case 43:case 45:this.$=o[u-2]+" "+o[u-1]+" "+o[u];break;case 44:case 46:this.$=o[u-3]+" "+o[u-2]+" "+o[u-1]+" "+o[u];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(c,g){if(g.recoverable)this.trace(c);else{var b=new Error(c);throw b.hash=g,b}},"parseError"),parse:d(function(c){var g=this,b=[0],m=[],I=[null],o=[],W=this.table,u="",K=0,l=0,$=2,O=1,j=o.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(J.yy[h]=this.yy[h]);H.setInput(c,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var N=H.yylloc;o.push(N);var V=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){b.length=b.length-2*ot,I.length=I.length-ot,o.length=o.length-ot}d(f,"popStack");function tt(){var ot;return ot=m.pop()||H.lex()||O,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=g.symbols_[ot]||ot),ot}d(tt,"lex");for(var A,Q,Z,st,at={},pt,ut,He,Bt;;){if(Q=b[b.length-1],this.defaultActions[Q]?Z=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=tt()),Z=W[Q]&&W[Q][A]),typeof Z>"u"||!Z.length||!Z[0]){var ce="";Bt=[];for(pt in W[Q])this.terminals_[pt]&&pt>$&&Bt.push("'"+this.terminals_[pt]+"'");H.showPosition?ce="Parse error on line "+(K+1)+`: `+H.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ce="Parse error on line "+(K+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ce,{text:H.match,token:this.terminals_[A]||A,line:H.yylineno,loc:N,expected:Bt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(Z[0]){case 1:b.push(A),I.push(H.yytext),o.push(H.yylloc),b.push(Z[1]),A=null,l=H.yyleng,u=H.yytext,K=H.yylineno,N=H.yylloc;break;case 2:if(ut=this.productions_[Z[1]][1],at.$=I[I.length-ut],at._$={first_line:o[o.length-(ut||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ut||1)].first_column,last_column:o[o.length-1].last_column},V&&(at._$.range=[o[o.length-(ut||1)].range[0],o[o.length-1].range[1]]),st=this.performAction.apply(at,[u,l,K,J.yy,Z[1],I,o].concat(j)),typeof st<"u")return st;ut&&(b=b.slice(0,-1*ut*2),I=I.slice(0,-1*ut),o=o.slice(0,-1*ut)),b.push(this.productions_[Z[1]][0]),I.push(at.$),o.push(at._$),He=W[b[b.length-2]][b[b.length-1]],b.push(He);break;case 3:return!0}}return!0},"parse")},C=(function(){var D={EOF:1,parseError:d(function(g,b){if(this.yy.parser)this.yy.parser.parseError(g,b);else throw new Error(g)},"parseError"),setInput:d(function(c,g){return this.yy=g||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var g=c.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var g=c.length,b=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===m.length?this.yylloc.first_column:0)+m[m.length-b.length].length-b[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),g=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js b/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js similarity index 95% rename from apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js rename to apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js index 6c06acc6c8c..7b897ad223f 100644 --- a/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js +++ b/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js @@ -1,4 +1,4 @@ -import{I as le}from"./chunk-2Q5K7J3B-DqVWYlyS.js";import{p as he}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{p as $e,o as fe,s as ge,g as ue,a as ye,b as xe,_ as h,z as J,l as w,d as me,c as W,y as pe,A as be,q as we,k as B,B as ke,D as ve,E as Ce}from"./mermaid.core-DaDTfY6S.js";import{p as Ee}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",` +import{I as le}from"./chunk-2Q5K7J3B-X9yuSZVx.js";import{p as he}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{o as $e,n as fe,s as ge,g as ue,a as ye,b as xe,_ as h,y as J,l as w,d as me,c as q,x as pe,z as be,p as we,k as B,A as ke,B as ve,C as Ce}from"./mermaid.core-D8UeR6T-.js";import{p as Ee}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",` ${s-i/2-L/2},${x+R} ${s-i/2-L/2},${x-R} ${t.posWithOffset-i/2-L},${x-c-R} @@ -10,8 +10,8 @@ import{I as le}from"./chunk-2Q5K7J3B-DqVWYlyS.js";import{p as he}from"./chunk-JW ${t.x+O},${u-c-2} ${t.x+O+i+4},${u-c-2} ${t.x+O+i+4},${u+c+2} - ${t.x+O},${u+c+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),f.attr("cx",t.x+L/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),l.attr("x",t.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+s+")")}}}},"drawCommitTags"),cr=h(e=>{switch(e.customType??e.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ir=h((e,r,t,s)=>{const o={x:0,y:0};if(e.parents.length>0){const i=ce(e.parents);if(i){const n=s.get(i)??o;return r==="TB"?n.y+_:r==="BT"?(s.get(e.id)??o).y-_:n.x+_}}else return r==="TB"?F:r==="BT"?(s.get(e.id)??o).y-_:0;return 0},"calculatePosition"),dr=h((e,r,t)=>{const s=y==="BT"&&t?r:r+O,o=C.get(e.branch)?.pos,i=y==="TB"||y==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=j.has(W().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),re=h((e,r,t,s)=>{const o=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...r.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=r.get($)?.seq,u=r.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Ze(g,r,n),g=g.reverse()),g.forEach($=>{const c=r.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ir(c,y,n,E));const x=dr(c,n,l);if(t){const u=cr(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;nr(o,c,x,u,b,p),sr(i,c,x,n,s),or(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>I&&(I=n)})},"drawCommits"),lr=h((e,r,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.xf.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>e.seq&&f.seql(f)&&a(f))},"shouldRerouteArrow"),P=h((e,r,t=0)=>{const s=e+Math.abs(e-r)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(e-r);return P(e,r-i/5,t+1)},"findLane"),hr=h((e,r,t,s)=>{const{theme:o}=W(),i=Z.has(o??""),n=E.get(r.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=lr(r,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&r.id!==t.parents[0]&&(x=C.get(r.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.ya.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.xa.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.ya.y&&(t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$r=h((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const o=r.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{hr(t,r.get(i),o,r)})})},"drawArrows"),fr=h((e,r,t,s)=>{const{look:o,theme:i,themeVariables:n}=W(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=e.append("g");r.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",I),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",I),k.attr("x2",p)):y==="BT"&&(k.attr("y1",I),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const U=c.name,D=oe(U),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),ee=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",I),M.attr("transform","translate("+(p-v.width/2-5)+", "+I+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(I+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),gr=h(function(e,r,t,s,o){return C.set(e,{pos:r,index:t}),r+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),r},"setBranchPosition"),ur=h(function(e,r,t,s){Je(),w.debug("in gitgraph renderer",e+` -`,"id:",r,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;q=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=me(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=W(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,U)=>{const D=oe(k.name),T=l.append("g"),K=T.insert("g").attr("class","branchLabel"),M=K.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=gr(k.name,b,U,v,n),M.remove(),K.remove(),T.remove()}),re(l,q,!1,i),i.showBranches&&fr(l,a,i,r),$r(l,q),re(l,q,!0,i),pe.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),be(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),yr={draw:ur},ie=8,de=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xr=new Set(["redux-color","redux-dark-color"]),mr=new Set(["neo","neo-dark"]),pr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let s=0;s{switch(e.customType??e.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ir=h((e,r,t,s)=>{const o={x:0,y:0};if(e.parents.length>0){const i=ce(e.parents);if(i){const n=s.get(i)??o;return r==="TB"?n.y+_:r==="BT"?(s.get(e.id)??o).y-_:n.x+_}}else return r==="TB"?F:r==="BT"?(s.get(e.id)??o).y-_:0;return 0},"calculatePosition"),dr=h((e,r,t)=>{const s=y==="BT"&&t?r:r+O,o=C.get(e.branch)?.pos,i=y==="TB"||y==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=j.has(q().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),re=h((e,r,t,s)=>{const o=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...r.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=r.get($)?.seq,u=r.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Ze(g,r,n),g=g.reverse()),g.forEach($=>{const c=r.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ir(c,y,n,E));const x=dr(c,n,l);if(t){const u=cr(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;nr(o,c,x,u,b,p),sr(i,c,x,n,s),or(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>I&&(I=n)})},"drawCommits"),lr=h((e,r,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.xf.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>e.seq&&f.seql(f)&&a(f))},"shouldRerouteArrow"),W=h((e,r,t=0)=>{const s=e+Math.abs(e-r)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(e-r);return W(e,r-i/5,t+1)},"findLane"),hr=h((e,r,t,s)=>{const{theme:o}=q(),i=Z.has(o??""),n=E.get(r.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=lr(r,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&r.id!==t.parents[0]&&(x=C.get(r.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.ya.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.xa.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.ya.y&&(t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$r=h((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const o=r.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{hr(t,r.get(i),o,r)})})},"drawArrows"),fr=h((e,r,t,s)=>{const{look:o,theme:i,themeVariables:n}=q(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=e.append("g");r.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",I),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",I),k.attr("x2",p)):y==="BT"&&(k.attr("y1",I),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const U=c.name,D=oe(U),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),ee=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",I),M.attr("transform","translate("+(p-v.width/2-5)+", "+I+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(I+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),gr=h(function(e,r,t,s,o){return C.set(e,{pos:r,index:t}),r+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),r},"setBranchPosition"),ur=h(function(e,r,t,s){Je(),w.debug("in gitgraph renderer",e+` +`,"id:",r,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;P=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=me(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=q(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,U)=>{const D=oe(k.name),T=l.append("g"),K=T.insert("g").attr("class","branchLabel"),M=K.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=gr(k.name,b,U,v,n),M.remove(),K.remove(),T.remove()}),re(l,P,!1,i),i.showBranches&&fr(l,a,i,r),$r(l,P),re(l,P,!0,i),pe.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),be(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),yr={draw:ur},ie=8,de=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xr=new Set(["redux-color","redux-dark-color"]),mr=new Set(["neo","neo-dark"]),pr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let s=0;s{const r=J(),{theme:t,themeVariables:s}=r,{borderColorArray:o}=s,i=de.has(t);if(mr.has(t)){let n="";for(let a=0;adiv[id^=dmermaid-]{position:fixed;top:-10000px;left:0;width:100%;visibility:hidden;pointer-events:none}.markstream-vue .hover\:bg-\[var\(--code-action-hover-bg\)\]:hover{background-color:var(--code-action-hover-bg)}.markstream-vue .hover\:text-\[var\(--code-action-hover-fg\)\]:hover{color:var(--code-action-hover-fg)}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}.markstream-vue .active\:scale-\[0\.96\]:active{--tw-scale-x: .96;--tw-scale-y: .96;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.markstream-vue .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.markstream-vue .disabled\:opacity-40:disabled{opacity:.4}.checkbox-node[data-v-be21ab83]{display:inline-flex;align-items:center;margin-right:.5em;vertical-align:-.15em}.checkbox-icon[data-v-be21ab83]{flex-shrink:0}.checkbox-unchecked[data-v-be21ab83]{color:hsl(var(--ms-muted-foreground) / .5)}.checkbox-checked[data-v-be21ab83]{color:hsl(var(--ms-info))}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-c1463a29]{font-size:.75em;line-height:0}.footnote-link[data-v-c1463a29]{color:var(--link-color);text-decoration:none}.footnote-link[data-v-c1463a29]:hover{text-decoration:underline}.html-inline-node[data-v-d17f12b0]{display:inline}.html-inline-node--loading[data-v-d17f12b0]{opacity:.85}.inline-code[data-v-4e331c97]{display:inline;font-family:var(--ms-font-mono);font-size:.8125em;line-height:inherit;color:var(--inline-code-fg);background-color:var(--inline-code-bg);padding:.15em .35em;border-radius:.25em;white-space:normal;word-break:break-word;max-width:100%;-webkit-box-decoration-break:clone;box-decoration-break:clone}.inline-code-stream-delta[data-v-4e331c97]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both}.inline-code-stream-delta--a[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-a-4e331c97}.inline-code-stream-delta--b[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-b-4e331c97}@keyframes inline-code-stream-update-fade-a-4e331c97{0%{opacity:0}to{opacity:1}}@keyframes inline-code-stream-update-fade-b-4e331c97{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.inline-code-stream-delta[data-v-4e331c97]{animation:none!important}}.image-node-container[data-v-046e82ac]{display:inline-block;position:relative;vertical-align:middle;max-width:var(--ms-size-image-max-width)}.image-node__img[data-v-046e82ac]{display:inline-block;max-width:100%;min-width:var(--ms-size-image-min-width);min-height:var(--ms-size-image-min-height);height:auto;vertical-align:middle;transition:opacity var(--ms-duration-emphasis) var(--ms-ease-standard)}.image-node__img.is-loading[data-v-046e82ac]{opacity:0}.image-node__img.is-loaded[data-v-046e82ac]{opacity:1}.image-node__img.has-natural-size[data-v-046e82ac]{min-width:0;min-height:0}.image-placeholder[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:var(--ms-size-image-min-width);min-height:128px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));overflow:hidden;vertical-align:middle}.image-shimmer-overlay[data-v-046e82ac]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:hsl(var(--ms-muted));overflow:hidden}.image-shimmer-overlay .image-shimmer[data-v-046e82ac]{width:100%;height:100%}.image-shimmer[data-v-046e82ac]{display:block;width:100%;height:100%;min-height:128px;background:linear-gradient(90deg,hsl(var(--ms-muted)),hsl(var(--ms-muted-foreground) / .06),hsl(var(--ms-muted)));background-size:200% 100%;animation:image-shimmer-046e82ac 1.5s ease-in-out infinite}.image-node-container[data-markstream-viewport-pending=true] .image-shimmer[data-v-046e82ac]{animation:none}@keyframes image-shimmer-046e82ac{0%{background-position:100% 0}to{background-position:-100% 0}}.image-error[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:16px 24px;min-height:64px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground));font-size:var(--ms-text-label);vertical-align:middle}.image-node__raw-text[data-v-046e82ac]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}@media(prefers-reduced-motion:reduce){.image-shimmer[data-v-046e82ac]{animation:none!important}}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[data-markstream-pre="1"]:not(.markstream-pre--diff-preview){background:var(--code-bg);color:var(--code-fg)}.markstream-vue pre.markstream-pre--line-numbers{position:relative}.markstream-vue pre.code-pre-fallback[data-markstream-code-loading="1"]{--markstream-pre-line-number-top: var(--markstream-code-padding-y, 8px);--markstream-pre-line-number-left: 0px;--markstream-pre-line-number-width: 2ch;--markstream-pre-line-number-padding-left: 2ch;--markstream-pre-line-number-padding-right: 1ch;--markstream-pre-line-number-separator-width: 2px;--markstream-code-padding-left: calc(6ch + 2px) ;box-sizing:border-box;width:100%;margin:0;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left);overflow:auto;border:0;border-radius:0;background:var(--code-bg);color:var(--code-fg);font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace );font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers{position:absolute;top:var(--markstream-pre-line-number-top, 0);left:var(--markstream-pre-line-number-left, 0);box-sizing:content-box;display:flex;flex-direction:column;align-items:flex-end;width:var(--markstream-pre-line-number-width, 2ch);min-width:var(--markstream-pre-line-number-width, 2ch);padding-left:var(--markstream-pre-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-line-number-padding-right, 1ch);border-right:var(--markstream-pre-line-number-separator-width, 2px) solid transparent;color:var(--code-line-number);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--line-numbers:not(.markstream-pre--diff-preview):not(.code-pre-fallback)>.markstream-pre__code{box-sizing:border-box;min-width:100%;padding-left:var(--markstream-code-padding-left, 52px);padding-right:var(--markstream-code-padding-x, 12px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-number{display:block;min-height:1lh}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-numbers-text{display:block;min-height:1lh;text-align:right;white-space:pre}.markstream-vue pre.markstream-pre--diff-preview{box-sizing:border-box;padding-left:0;padding-right:0;width:100%;--markstream-pre-diff-gutter-marker-width: var(--stream-monaco-gutter-marker-width, 4px);--markstream-pre-diff-gutter-gap: var(--stream-monaco-gutter-gap, 1ch);--markstream-pre-diff-code-gap: var(--stream-monaco-diff-code-gap, 1ch);--markstream-pre-diff-code-padding: var(--stream-monaco-diff-code-padding, 0px);--markstream-diff-added-fg: var(--diff-added-fg, #2f8f68);--markstream-diff-removed-fg: var(--diff-removed-fg, #c24141);--markstream-diff-added-line-fill: var(--diff-added-bg, rgb(47 143 104 / 12%));--markstream-diff-removed-line-fill: var(--diff-removed-bg, rgb(194 65 65 / 12%));--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-diff-removed-gutter: linear-gradient( 90deg, var(--markstream-diff-removed-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-pre-diff-line-number-width: var( --stream-monaco-line-number-width, 2ch );--markstream-pre-diff-line-number-padding-left: var(--stream-monaco-line-number-padding-left, 2ch);--markstream-pre-diff-line-number-padding-right: var(--stream-monaco-line-number-padding-right, 1ch);--markstream-pre-diff-line-number-separator-width: var(--stream-monaco-line-number-separator-width, 2px);--markstream-pre-diff-line-number-box-width: calc( var(--markstream-pre-diff-line-number-padding-left) + var(--markstream-pre-diff-line-number-width) + var(--markstream-pre-diff-line-number-padding-right) + var(--markstream-pre-diff-line-number-separator-width) );--markstream-pre-diff-line-number-bg: var( --stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg, transparent) );--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-original-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );--markstream-pre-diff-line-number-align: var(--markstream-diff-line-number-align, right);--markstream-pre-diff-code-fill-left: calc( var(--markstream-pre-diff-line-number-left) + var(--markstream-pre-diff-line-number-box-width) );--markstream-pre-diff-code-left: calc( var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-line-number-gap-to-code) + var(--markstream-pre-diff-code-padding) )}.markstream-vue pre.markstream-pre--diff-preview::-webkit-scrollbar{width:12px;height:12px}.markstream-vue pre.markstream-pre--diff-preview.is-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline{--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px )}.markstream-vue pre.markstream-pre--diff-preview>.markstream-pre__diff-code{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font:inherit;line-height:inherit;min-width:100%;width:100%}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline>.markstream-pre__diff-code{grid-template-columns:minmax(0,1fr)}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap)>.markstream-pre__diff-code{grid-template-columns:minmax(100%,max-content);width:100%;min-width:-moz-max-content;min-width:max-content}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane{min-width:0;overflow:hidden}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{overflow-x:auto;overflow-y:hidden}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane-content{display:block;min-width:100%}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane-content{width:-moz-max-content;width:max-content}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap) .markstream-pre__diff-pane{min-width:-moz-max-content;min-width:max-content;width:100%;overflow:visible}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane--modified{--markstream-pre-diff-pane-divider-width: 1px;--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );box-shadow:inset 1px 0 var(--markstream-diff-pane-divider, hsl(var(--ms-border)))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified{--markstream-pre-diff-line-number-left: calc( var(--stream-monaco-line-number-left, 0px) + var(--markstream-pre-diff-pane-divider-width) )}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-rail{left:var(--markstream-pre-diff-pane-divider-width)}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line{padding-left:calc(var(--markstream-pre-diff-code-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line:before{left:calc(var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline .markstream-pre__diff-pane--modified{box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line{position:relative;display:block;box-sizing:border-box;width:100%;min-width:100%;min-height:var( --markstream-pre-diff-synced-row-height, var(--markstream-pre-diff-line-height, 18px) );padding-left:var(--markstream-pre-diff-code-left);line-height:var(--markstream-pre-diff-line-height, 18px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:before{content:"";position:absolute;left:var(--markstream-pre-diff-code-fill-left);right:0;top:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;border-radius:0;background:transparent}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:after{content:"";position:absolute;left:var(--markstream-pre-diff-line-number-left);top:0;width:var(--markstream-pre-diff-line-number-box-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-rail{position:absolute;z-index:2;top:0;left:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );width:var(--markstream-pre-diff-gutter-marker-width, 4px);min-width:var(--markstream-pre-diff-gutter-marker-width, 4px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-number{position:absolute;z-index:1;top:0;left:var(--markstream-pre-diff-line-number-left);width:var(--markstream-pre-diff-line-number-width);min-width:var(--markstream-pre-diff-line-number-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );box-sizing:content-box;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none;padding-left:var(--markstream-pre-diff-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-diff-line-number-padding-right, 1ch);border-right:var(--markstream-pre-diff-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg, var(--code-bg));color:var(--code-line-number);font-variant-numeric:tabular-nums;line-height:var(--markstream-pre-diff-line-height, 18px);text-align:var(--markstream-pre-diff-line-number-align, right);-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent));color:var(--stream-monaco-added-fg, var(--markstream-diff-added-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent));color:var(--stream-monaco-removed-fg, var(--markstream-diff-removed-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content{position:relative;z-index:1;display:block;width:-moz-max-content;width:max-content;min-width:100%;line-height:var(--markstream-pre-diff-line-height, 18px);white-space:inherit;overflow-wrap:normal;word-break:normal;line-break:auto}.markstream-vue pre.markstream-pre--diff-preview.is-wrap .markstream-pre__diff-content{width:auto;min-width:0;overflow-wrap:inherit}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content-inner{white-space:inherit;overflow-wrap:inherit;word-break:inherit;line-break:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk{color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk:before{background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:before{background-image:linear-gradient(-45deg,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 12.5%,transparent 12.5%,transparent 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 62.5%,transparent 62.5%,transparent 100%);background-size:10px 10px;opacity:.38}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-number,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-content{display:none}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-collapsed:not(.code-pre-fallback){height:auto!important;min-height:0!important}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed{min-height:28px;padding-left:0;color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)));line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:before{left:0;height:28px;background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, rgb(0 0 0 / 4%)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-number{display:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-content{width:100%;min-width:0;padding-left:calc(var(--markstream-pre-diff-code-left) + 12px);line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:before{background:linear-gradient(var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent)),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:before{background:linear-gradient(var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent)),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:after{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.text-node[data-v-fd79037c]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-fd79037c]{display:inline-flex;justify-content:center;width:100%}.text-node-stream-delta[data-v-fd79037c]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both;will-change:opacity}.text-node-stream-delta--a[data-v-fd79037c]{animation-name:text-node-stream-update-fade-a-fd79037c}.text-node-stream-delta--b[data-v-fd79037c]{animation-name:text-node-stream-update-fade-b-fd79037c}@keyframes text-node-stream-update-fade-a-fd79037c{0%{opacity:0}to{opacity:1}}@keyframes text-node-stream-update-fade-b-fd79037c{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.text-node-stream-delta[data-v-fd79037c]{animation:none!important}}.reference-node[data-v-775c65e4]{background-color:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground))}.reference-node[data-v-775c65e4]:hover{background-color:hsl(var(--ms-secondary))}.superscript-node[data-v-24160b22]{font-size:.8em;vertical-align:super}.subscript-node[data-v-197fa13b]{font-size:.8em;vertical-align:sub}.strong-node[data-v-a8647104]{font-weight:700}.strikethrough-node[data-v-b7a531fa]{text-decoration:line-through}.link-node[data-v-367e6ca4]{color:var(--link-color);text-decoration:none}.link-node[data-v-367e6ca4]:hover{text-decoration:underline;text-underline-offset:3.2px}.link-loading .link-text-wrapper[data-v-367e6ca4]{position:relative}.link-loading[data-v-367e6ca4]{color:var(--link-color)}.link-loading .link-text[data-v-367e6ca4]{position:relative;z-index:2}.link-loading-indicator[data-v-367e6ca4]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;border-radius:999px;will-change:opacity;opacity:var(--underline-rest-opacity, .18);animation:underlinePulse-367e6ca4 var(--underline-duration, 1.6s) var(--underline-timing, ease-in-out) var(--underline-iteration, infinite)}@keyframes underlinePulse-367e6ca4{0%,to{opacity:var(--underline-rest-opacity, .18)}50%{opacity:var(--underline-opacity, .35)}}@media(prefers-reduced-motion:reduce){.link-loading-indicator[data-v-367e6ca4]{animation:none;opacity:var(--underline-rest-opacity, .18)}}.insert-node[data-v-1e2c29d4]{text-decoration:underline}.highlight-node[data-v-7a62982a]{background-color:var(--highlight-bg);padding:0 3.2px;border-radius:.2em}.emphasis-node[data-v-2a5aafbf]{font-style:italic}.hard-break[data-v-50c58f70]{display:block}.blockquote[data-v-abfecebc]{font-weight:400;font-style:normal;color:var(--blockquote-fg, hsl(var(--ms-muted-foreground)));border-left:3px solid var(--blockquote-border);margin-top:var(--ms-flow-blockquote-y);margin-bottom:var(--ms-flow-blockquote-y);padding-left:var(--ms-flow-blockquote-indent)}.blockquote>.paragraph-node[data-v-abfecebc]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}.blockquote>.paragraph-node[data-v-abfecebc]:first-child{margin-top:0}.blockquote>.paragraph-node[data-v-abfecebc]:last-child{margin-bottom:0}.blockquote[data-v-abfecebc] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.definition-list[data-v-4e103b30]{margin:0 0 16px}.definition-term[data-v-4e103b30]{font-weight:600;margin-top:var(--ms-flow-definition-term-mt)}.definition-desc[data-v-4e103b30]{margin-left:var(--ms-flow-definition-desc-ml);margin-bottom:var(--ms-flow-definition-desc-mb)}.definition-list[data-v-4e103b30] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.footnote-anchor[data-v-e1eb37b6]{margin-left:8px;color:var(--link-color)}.footnote-node{margin-top:var(--ms-flow-footnote-y);margin-bottom:var(--ms-flow-footnote-y)}.markstream-vue [class*=footnote-] .markdown-renderer,.markstream-vue .flex-1 .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.heading-node[data-v-7122dbe1]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-7122dbe1]{margin-top:0}.heading-1[data-v-7122dbe1]{font-size:var(--ms-text-h1);line-height:var(--ms-leading-h1);font-weight:var(--ms-weight-h1);margin-top:var(--ms-flow-heading-1-mt);margin-bottom:var(--ms-flow-heading-1-mb)}.heading-2[data-v-7122dbe1]{font-size:var(--ms-text-h2);line-height:var(--ms-leading-h2);font-weight:var(--ms-weight-h2);margin-top:var(--ms-flow-heading-2-mt);margin-bottom:var(--ms-flow-heading-2-mb)}.heading-3[data-v-7122dbe1]{font-size:var(--ms-text-h3);line-height:var(--ms-leading-h3);font-weight:var(--ms-weight-h3);margin-top:var(--ms-flow-heading-3-mt);margin-bottom:var(--ms-flow-heading-3-mb)}.heading-4[data-v-7122dbe1]{font-size:var(--ms-text-h4);font-weight:var(--ms-weight-h4);margin-top:var(--ms-flow-heading-4-mt);margin-bottom:var(--ms-flow-heading-4-mb)}.heading-5[data-v-7122dbe1]{font-size:var(--ms-text-h5);margin-top:var(--ms-flow-heading-5-mt);margin-bottom:var(--ms-flow-heading-5-mb)}.heading-6[data-v-7122dbe1]{font-size:var(--ms-text-h6);margin-top:var(--ms-flow-heading-6-mt);margin-bottom:var(--ms-flow-heading-6-mb)}.list-item[data-v-617214f9]{margin:var(--ms-flow-list-item-y) 0;padding-left:var(--ms-space-1_5)}ol>.list-item[data-v-617214f9]::marker{color:var(--list-counter-marker);line-height:1.6}ul>.list-item[data-v-617214f9]::marker{color:var(--list-marker)}.list-item>.paragraph-node[data-v-617214f9]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:0}.list-item[data-v-617214f9] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:content}.list-node[data-v-99cb95e0]{margin-top:var(--ms-flow-list-y);margin-bottom:var(--ms-flow-list-y);padding-left:var(--ms-flow-list-indent)}.list-decimal[data-v-99cb95e0]{list-style-type:decimal}.list-disc[data-v-99cb95e0]{list-style-type:disc}@media(max-width:1023px){.list-disc[data-v-99cb95e0]{margin-top:calc(4/3*1em);margin-bottom:calc(4/3*1em);padding-left:var(--ms-flow-list-indent-mobile)}}.html-block-node__raw[data-v-e140a874]{white-space:pre-wrap;overflow-wrap:anywhere;opacity:.85}.html-block-node__placeholder[data-v-e140a874]{display:flex;flex-direction:column;gap:5.6px;padding:8px 0}.html-block-node__placeholder-bar[data-v-e140a874]{display:block;height:12.8px;border-radius:9999px;background-image:linear-gradient(90deg,var(--loading-shimmer),transparent,var(--loading-shimmer));background-size:200% 100%}.paragraph-node[data-v-c59ff506]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}li .paragraph-node[data-v-c59ff506]{margin:0}.table-node-wrapper[data-v-39f87b5d]{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable}.table-node[data-v-39f87b5d]{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:var(--ms-flow-table-y) 0;font-size:inherit;border:1px solid var(--table-border);border-radius:var(--ms-radius);overflow:hidden;box-shadow:var(--ms-shadow-subtle)}.table-node[data-v-39f87b5d] th,.table-node[data-v-39f87b5d] td{border-bottom:1px solid var(--table-border);border-right:1px solid var(--table-border);padding:var(--ms-flow-table-cell);white-space:normal;overflow-wrap:break-word;word-break:normal}.table-node[data-v-39f87b5d] th:last-child,.table-node[data-v-39f87b5d] td:last-child{border-right:none}.table-node[data-v-39f87b5d] tbody tr:last-child td{border-bottom:none}.table-node[data-v-39f87b5d] thead th{position:relative;font-weight:600;background-color:var(--table-header-bg);border-bottom-width:2px}.table-node__resize-handle[data-v-39f87b5d]{position:absolute;top:0;right:-4px;bottom:0;z-index:1;width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.table-node__resize-handle[data-v-39f87b5d]:after{content:"";position:absolute;top:.35em;bottom:.35em;left:50%;width:2px;border-radius:9999px;background:color-mix(in srgb,var(--table-border) 45%,hsl(var(--ms-foreground)));opacity:0;transform:translate(-50%);transition:opacity var(--ms-duration-fast) var(--ms-ease-standard)}.table-node__resize-handle[data-v-39f87b5d]:hover:after,.table-node__resize-handle[data-v-39f87b5d]:focus-visible:after{opacity:1}.table-node[data-v-39f87b5d] tbody tr:nth-child(2n){background-color:hsl(var(--ms-muted) / .35)}.table-node[data-v-39f87b5d] tbody tr:hover{background-color:var(--code-action-hover-bg)}.table-node--loading tbody td[data-v-39f87b5d]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-39f87b5d]>*{visibility:hidden}.table-node--loading tbody td[data-v-39f87b5d]:after{content:"";position:absolute;inset:0;border-radius:calc(var(--ms-radius) * .5);background:linear-gradient(90deg,var(--loading-shimmer) 25%,var(--loading-shimmer) 50%,var(--loading-shimmer) 75%);background-size:200% 100%;animation:table-node-shimmer-39f87b5d 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-39f87b5d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-39f87b5d]{width:40px;height:40px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-39f87b5d],.table-node-fade-leave-active[data-v-39f87b5d]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-39f87b5d],.table-node-fade-leave-to[data-v-39f87b5d]{opacity:0}[data-v-39f87b5d] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-39f87b5d] .table-node .markdown-renderer .node-slot,[data-v-39f87b5d] .table-node .markdown-renderer .node-content,[data-v-39f87b5d] .table-node .markdown-renderer .node-space{display:contents}[data-v-39f87b5d] .table-node .text-node,[data-v-39f87b5d] .table-node code{white-space:inherit;overflow-wrap:inherit;word-break:inherit;max-width:none}@keyframes table-node-shimmer-39f87b5d{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-39f87b5d]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-39f87b5d]{margin-top:0}.sr-only[data-v-39f87b5d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-39b2349c]{border-top-width:1px;border-color:var(--hr-border);margin:var(--ms-flow-hr-y) 0}.vmr-container[data-v-911e41c4]{margin-top:16px;margin-bottom:16px;border-radius:var(--ms-radius);border-width:1px;padding:16px;border-left-width:var(--ms-border-width-strong)}.height-estimation-probes[data-v-3e0766e2]{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;overflow:hidden;z-index:-1}.node-content[data-v-3e0766e2]{width:100%}.node-content-flow-root[data-v-3e0766e2]{display:flow-root}.markdown-renderer[data-v-a9489508]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:auto}.markdown-renderer.stable-layout[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:none}.node-slot[data-v-a9489508],.node-content[data-v-a9489508]{width:100%}.markdown-renderer.virtualized .node-slot[data-v-a9489508],.markdown-renderer.virtualized .node-content[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-slot[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-content[data-v-a9489508]{display:flow-root}.node-placeholder[data-v-a9489508]{width:100%;min-height:16px;margin:4px 0}.node-placeholder[data-v-a9489508]:first-child{margin-top:0}.node-spacer[data-v-a9489508]{width:100%}.unknown-node[data-v-a9489508]{color:hsl(var(--ms-muted-foreground));font-style:italic;margin:var(--ms-flow-paragraph-y) 0}.typewriter-cursor[data-v-a9489508]{position:absolute;left:0;top:0;display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;visibility:hidden;animation:typewriter-cursor-blink-a9489508 1s steps(1,end) infinite}@keyframes typewriter-cursor-blink-a9489508{0%,49%{opacity:1}50%,to{opacity:0}}.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{content:"";display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;animation:typewriter-cursor-blink 1s steps(1,end) infinite}@media(prefers-reduced-motion:reduce){.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{animation:none}}.markstream-vue .fade-enter-from{opacity:0}.markstream-vue .fade-enter-active{transition:opacity var(--fade-duration, .28s) var(--fade-ease, cubic-bezier(.33, 0, .67, 1));will-change:opacity}.markstream-vue .fade-enter-to{opacity:1}.admonition[data-v-a83480e1]{position:relative;margin:var(--ms-flow-admonition-y) 0;padding:.25em .75em .375em;border:1px solid var(--admonition-border);border-radius:var(--ms-radius);color:var(--admonition-fg)}.admonition-legend[data-v-a83480e1]{position:absolute;top:0;left:.75em;transform:translateY(-50%);display:inline-flex;align-items:center;gap:.35em;padding:0 .5em;background-color:hsl(var(--ms-background));font-size:13px;font-weight:600;line-height:1}.admonition-icon[data-v-a83480e1]{flex-shrink:0}.admonition-title[data-v-a83480e1]{white-space:nowrap}.admonition-content[data-v-a83480e1]{padding-top:.25em;color:var(--admonition-fg)}.admonition-note[data-v-a83480e1],.admonition-info[data-v-a83480e1]{border-color:hsl(var(--ms-info) / .3);background-color:hsl(var(--ms-info) / .04)}.admonition-note .admonition-legend[data-v-a83480e1],.admonition-info .admonition-legend[data-v-a83480e1]{color:var(--admonition-note)}.admonition-tip[data-v-a83480e1]{border-color:hsl(var(--ms-success) / .3);background-color:hsl(var(--ms-success) / .04)}.admonition-tip .admonition-legend[data-v-a83480e1]{color:var(--admonition-tip)}.admonition-warning[data-v-a83480e1],.admonition-caution[data-v-a83480e1]{border-color:hsl(var(--ms-warning) / .3);background-color:hsl(var(--ms-warning) / .04)}.admonition-warning .admonition-legend[data-v-a83480e1],.admonition-caution .admonition-legend[data-v-a83480e1]{color:var(--admonition-warning)}.admonition-danger[data-v-a83480e1],.admonition-error[data-v-a83480e1]{border-color:hsl(var(--ms-destructive) / .3);background-color:hsl(var(--ms-destructive) / .04)}.admonition-danger .admonition-legend[data-v-a83480e1],.admonition-error .admonition-legend[data-v-a83480e1]{color:var(--admonition-danger)}.admonition-toggle[data-v-a83480e1]{margin-left:.25em;background:transparent;border:none;color:inherit;cursor:pointer;padding:2px;border-radius:calc(var(--ms-radius) * .5);display:inline-flex;align-items:center;transition:background-color var(--ms-duration-fast) var(--ms-ease-standard)}.admonition-toggle[data-v-a83480e1]:hover{background-color:hsl(var(--ms-accent))}.admonition-toggle[data-v-a83480e1]:focus-visible{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.admonition-content[data-v-a83480e1] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.tooltip-element[data-v-c606ee4c]{z-index:9999;display:inline-block;max-width:320px;padding:4px 8px;border-radius:calc(var(--ms-radius) * .75);font-size:12px;line-height:1.4;white-space:normal;word-break:break-word;pointer-events:none;background-color:var(--tooltip-bg);color:var(--tooltip-fg);box-shadow:inset 0 1px #ffffff26,0 0 0 1px #0000001f,var(--ms-shadow-popover);transition:transform var(--ms-duration-emphasis) var(--ms-ease-spring),box-shadow var(--ms-duration-emphasis) var(--ms-ease-spring)}.tooltip-arrow[data-v-c606ee4c]{position:absolute;width:6px;height:6px;background:inherit;transform:rotate(45deg)}.tooltip-arrow[data-placement^=top][data-v-c606ee4c]{bottom:-3px}.tooltip-arrow[data-placement^=bottom][data-v-c606ee4c]{top:-3px}.tooltip-arrow[data-placement^=left][data-v-c606ee4c]{right:-3px}.tooltip-arrow[data-placement^=right][data-v-c606ee4c]{left:-3px}.tooltip-enter-active[data-v-c606ee4c]{transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1)}.tooltip-leave-active[data-v-c606ee4c]{transition:opacity .12s ease-in,transform .12s ease-in}.tooltip-enter-from[data-v-c606ee4c]{opacity:0;transform:scale(.96)}.tooltip-enter-to[data-v-c606ee4c],.tooltip-leave-from[data-v-c606ee4c]{opacity:1;transform:scale(1)}.tooltip-leave-to[data-v-c606ee4c]{opacity:0;transform:scale(.97)}.action-icon{width:var(--ms-action-btn-icon, 14px);height:var(--ms-action-btn-icon, 14px);max-width:20px;max-height:20px}.code-block-container{margin:var(--ms-flow-codeblock-y) 0;contain:layout style;container-type:inline-size;background:var(--code-bg);border-color:var(--code-border);color:var(--code-fg);box-shadow:var(--ms-shadow-subtle)}.code-block-header{position:relative;z-index:1;gap:var(--ms-gap-header);border-radius:var(--ms-radius) var(--ms-radius) 0 0;overflow:visible}.code-block-header .code-header-main{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:var(--ms-gap-header-main);overflow:hidden}.code-block-header .code-header-copy{min-width:0;display:grid;gap:2px}.code-block-header .code-header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ms-text-label);font-weight:500;color:var(--code-action-fg)}.code-block-header .code-header-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--code-line-number)}.code-block-header .code-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ms-gap-header-actions);flex-wrap:wrap}.code-block-header .icon-slot{display:inline-flex;align-items:center;justify-content:center}.code-block-header .icon-slot svg,.code-block-header .icon-slot img{display:block;width:100%;height:100%}.code-diff-stats{display:inline-flex;align-items:center;gap:var(--ms-space-1_5);margin-right:var(--ms-space-1);font-size:var(--ms-text-label);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.code-diff-stat{display:inline-flex;align-items:center;padding:2px 6px;border-radius:var(--ms-radius);line-height:1}.code-diff-stat.removed{color:var(--diff-removed-fg);background:hsl(var(--ms-diff-removed) / .1)}.code-diff-stat.added{color:var(--diff-added-fg);background:hsl(var(--ms-diff-added) / .1)}.code-more-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:50;border-radius:var(--ms-radius)}.code-block-shell-content,.code-loading-placeholder{overflow:hidden;border-radius:0 0 var(--ms-radius) var(--ms-radius);contain:content}.code-block-shell-content--collapsed{height:0;min-height:0;visibility:hidden;pointer-events:none}.code-menu-enter-active,.code-menu-leave-active{transform-origin:top right}.code-menu-enter-active{transition:opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1)}.code-menu-leave-active{transition:opacity .14s ease-in,transform .14s ease-in}.code-menu-enter-from{opacity:0;transform:scale(.9) translateY(-4px)}.code-menu-leave-to{opacity:0;transform:scale(.95) translateY(-2px)}.html-preview-frame__backdrop[data-v-24e66176]{position:fixed;inset:0;background-color:var(--modal-overlay);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame[data-v-24e66176]{width:80vw;max-width:960px;height:70vh;background-color:var(--modal-bg);color:var(--modal-fg);border-radius:calc(var(--ms-radius) * 2);overflow:hidden;box-shadow:var(--ms-shadow-preview);display:flex;flex-direction:column}.html-preview-frame__header[data-v-24e66176]{display:flex;justify-content:space-between;align-items:center;padding:6.4px 12px;border-bottom:1px solid var(--code-border)}.html-preview-frame__title[data-v-24e66176]{display:inline-flex;align-items:center;gap:6.4px;font-size:12px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-24e66176]{width:8px;height:8px;border-radius:999px;background-color:hsl(var(--ms-success))}.html-preview-frame__label[data-v-24e66176]{white-space:nowrap}.html-preview-frame__close[data-v-24e66176]{border:none;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--modal-fg)}.html-preview-frame__iframe[data-v-24e66176]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-24e66176]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--vscode-editor-selectionBackground: var(--markstream-code-fallback-selection-bg);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 16px 40px -32px hsl(var(--ms-foreground) / .18);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .92);--markstream-diff-editor-bg: hsl(var(--ms-background));--markstream-diff-editor-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-bg: hsl(var(--ms-muted));--markstream-diff-unchanged-divider: hsl(var(--ms-background) / .94);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .26);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: linear-gradient(180deg, var(--code-bg) 0%, hsl(var(--ms-muted)) 100%);--markstream-diff-panel-bg-soft: var(--code-bg);--markstream-diff-panel-bg-strong: var(--code-bg);--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .42);--markstream-diff-gutter-bg: transparent;--markstream-diff-gutter-guide: hsl(var(--ms-border) / .72);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(var(--ms-muted) / .45);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: var(--diff-added-fg);--markstream-diff-removed-fg: var(--diff-removed-fg);--markstream-diff-added-line: var(--diff-added-bg);--markstream-diff-removed-line: var(--diff-removed-bg);--markstream-diff-added-inline: var(--diff-added-inline-bg);--markstream-diff-removed-inline: var(--diff-removed-inline-bg);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: var(--diff-added-bg);--markstream-diff-removed-line-fill: var(--diff-removed-bg)}.code-block-container.is-dark[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 18px 40px -30px hsl(var(--ms-foreground) / .84);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .82);--markstream-diff-editor-bg: #121212;--markstream-diff-editor-fg: #e5e5e5;--markstream-diff-unchanged-fg: #d4d4d4;--markstream-diff-unchanged-bg: #262626;--markstream-diff-unchanged-divider: hsl(0 0% 100% / .08);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .72);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: #121212;--markstream-diff-panel-bg-soft: #121212;--markstream-diff-panel-bg-strong: #121212;--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .34);--markstream-diff-gutter-bg: linear-gradient( 180deg, hsl(0 0% 7% / .94) 0%, hsl(0 0% 7% / .98) 100% );--markstream-diff-gutter-guide: hsl(var(--ms-muted-foreground) / .08);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(0 0% 7% / .98);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: hsl(152 42% 60%);--markstream-diff-removed-fg: hsl(0 58% 58%);--markstream-diff-added-line: hsl(152 42% 60% / .18);--markstream-diff-removed-line: hsl(0 58% 58% / .18);--markstream-diff-added-inline: hsl(152 42% 60% / .28);--markstream-diff-removed-inline: hsl(0 58% 58% / .28);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: hsl(152 42% 60% / .18);--markstream-diff-removed-line-fill: hsl(0 58% 58% / .18)}.code-editor-container[data-v-ef6e4bb8]{transition:none;box-sizing:border-box;min-width:0;width:100%}.code-block-container.is-diff .code-editor-container[data-v-ef6e4bb8]{transition:none}.code-editor-layer[data-v-ef6e4bb8]{display:grid;min-width:0;position:relative}.code-editor-layer--collapsed[data-v-ef6e4bb8]{height:0;min-height:0;overflow:hidden;visibility:hidden;pointer-events:none}.code-editor-layer>.code-editor-container[data-v-ef6e4bb8]{grid-area:1 / 1;z-index:1}.code-editor-layer>pre.code-pre-fallback[data-v-ef6e4bb8]{grid-area:1 / 1;position:relative;z-index:2}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-editor-background,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{background:var(--vscode-editor-background, var(--markstream-code-fallback-bg))!important}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-lines,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line span,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{color:var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))!important}.code-block-container.is-diff[data-v-ef6e4bb8]{color:var(--markstream-diff-shell-fg);border-color:var(--markstream-diff-shell-border);background:var(--markstream-diff-shell-bg);box-shadow:var(--markstream-diff-shell-shadow);--vscode-editor-selectionBackground: var(--markstream-diff-action-hover);--code-fg: var(--markstream-diff-shell-fg);--code-header-bg: transparent;--code-border: var(--markstream-diff-header-border);--code-line-number: var(--markstream-diff-shell-muted);--code-action-fg: var(--markstream-diff-shell-muted)}.code-block-container.is-diff .code-editor-layer[data-v-ef6e4bb8]{background:transparent;--vscode-editor-background: var(--markstream-diff-editor-bg);--vscode-editor-foreground: var(--markstream-diff-editor-fg);--vscode-diffEditor-unchangedRegionForeground: var(--markstream-diff-unchanged-fg);--vscode-diffEditor-unchangedRegionBackground: var(--markstream-diff-unchanged-bg);--vscode-focusBorder: var(--markstream-diff-focus);--vscode-widget-shadow: var(--markstream-diff-widget-shadow);--vscode-editor-selectionBackground: color-mix( in srgb, var(--markstream-diff-editor-bg) 90%, var(--markstream-diff-editor-fg) 10% );--stream-monaco-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-editor-fg: var(--markstream-diff-editor-fg);--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg);--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg);--stream-monaco-frame-radius: 0;--stream-monaco-fixed-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-frame-border: transparent;--stream-monaco-frame-shadow: none;--stream-monaco-panel-bg: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-soft: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-strong: var(--markstream-diff-editor-bg);--stream-monaco-panel-border: transparent;--stream-monaco-pane-divider: var(--markstream-diff-pane-divider);--stream-monaco-gutter-bg: var(--markstream-diff-gutter-bg);--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide);--stream-monaco-gutter-marker-width: 4px;--stream-monaco-gutter-gap: 1ch;--stream-monaco-line-number-bg: var(--markstream-diff-line-number-bg);--stream-monaco-line-number: var(--markstream-diff-line-number);--stream-monaco-line-number-active: var(--markstream-diff-line-number-active);--stream-monaco-line-number-left: 0px;--stream-monaco-line-number-width: 2ch;--stream-monaco-line-number-padding-left: 2ch;--stream-monaco-line-number-padding-right: 1ch;--stream-monaco-line-number-separator-width: 2px;--stream-monaco-layout-character-width: var(--markstream-code-layout-character-width, 1ch);--stream-monaco-line-number-box-width: calc( var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-line-number-separator-width) );--stream-monaco-diff-code-gap: 1ch;--stream-monaco-diff-code-padding: 0px;--stream-monaco-line-number-gap-to-code: var(--stream-monaco-diff-code-gap);--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) );--stream-monaco-original-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-original-scrollable-left: var(--stream-monaco-original-margin-width);--stream-monaco-original-scrollable-width: calc( 100% - var(--stream-monaco-original-margin-width) );--stream-monaco-modified-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-modified-scrollable-left: var(--stream-monaco-modified-margin-width);--stream-monaco-modified-scrollable-width: calc( 100% - var(--stream-monaco-modified-margin-width) );--stream-monaco-added-fg: var(--markstream-diff-added-fg);--stream-monaco-removed-fg: var(--markstream-diff-removed-fg);--stream-monaco-added-line: var(--markstream-diff-added-line);--stream-monaco-removed-line: var(--markstream-diff-removed-line);--stream-monaco-added-inline: var(--markstream-diff-added-inline);--stream-monaco-removed-inline: var(--markstream-diff-removed-inline);--stream-monaco-added-outline: transparent;--stream-monaco-removed-outline: transparent;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border);--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border);--stream-monaco-added-line-shadow: none;--stream-monaco-removed-line-shadow: none;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter);--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter);--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill);--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill);--stream-monaco-added-border: hsl(var(--ms-diff-added) / .25);--stream-monaco-removed-border: hsl(var(--ms-diff-removed) / .25);--stream-monaco-widget-shadow: var(--markstream-diff-widget-shadow)}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers{left:var(--stream-monaco-line-number-left)!important;width:var(--stream-monaco-line-number-width)!important;min-width:var(--stream-monaco-line-number-width)!important;box-sizing:content-box!important;background:var(--stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg))!important;padding-left:var(--stream-monaco-line-number-padding-left, 2ch)!important;padding-right:var(--stream-monaco-line-number-padding-right, 1ch)!important;border-right:var(--stream-monaco-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg)!important;text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums;box-shadow:none}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers *{text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-delete.line-numbers{background:var(--stream-monaco-removed-line-fill)!important;color:var(--stream-monaco-removed-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-insert.line-numbers{background:var(--stream-monaco-added-line-fill)!important;color:var(--stream-monaco-added-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .monaco-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays{--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) ) !important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff){--markstream-code-line-number-box-width: calc( var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + 2px );--markstream-code-content-left: calc( var(--markstream-code-line-number-box-width) + var(--markstream-code-layout-character-width, 1ch) )}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin-view-overlays{width:var(--markstream-code-content-left)!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{left:0!important;width:2ch!important;min-width:2ch!important;box-sizing:content-box!important;padding-left:2ch!important;padding-right:1ch!important;border-right:2px solid var(--vscode-editor-background)!important;text-align:var(--markstream-code-line-number-align, right)!important;font-variant-numeric:tabular-nums}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-scrollable-element.editor-scrollable{left:var(--markstream-code-content-left)!important;width:calc(100% - var(--markstream-code-content-left))!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{left:0!important}.code-editor-container[data-markstream-host-hidden=true][data-v-ef6e4bb8]{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden;visibility:hidden;pointer-events:none}pre.code-pre-fallback[data-v-ef6e4bb8]{margin:0;box-sizing:border-box;width:100%;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left, 52px);background:var(--markstream-code-fallback-bg, var(--code-bg, #fff));color:var(--markstream-code-fallback-fg, var(--code-fg));backface-visibility:visible;transform:none;-webkit-font-smoothing:auto;font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px);font-weight:400;font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace )}pre.code-pre-fallback[data-v-ef6e4bb8] code{font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit}pre.code-pre-fallback.is-wrap[data-v-ef6e4bb8]{white-space:pre-wrap;overflow-wrap:anywhere}pre.code-pre-fallback.markstream-pre--diff-preview[data-v-ef6e4bb8]{padding-left:0;padding-right:0}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{background:var(--markstream-diff-editor-bg);transition:none}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-pane{box-sizing:border-box;padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-insert>.cmdr.gutter-insert{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-added-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-delete>.cmdr.gutter-delete{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-removed-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}@media(prefers-reduced-motion:reduce){.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{transition:none}}.code-block-container.is-rendering .code-height-placeholder[data-v-ef6e4bb8]{background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;min-height:var(--ms-size-skeleton-min-height);background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%)}.code-loading-placeholder[data-v-ef6e4bb8]{padding:16px;min-height:var(--ms-size-skeleton-min-height)}.loading-skeleton[data-v-ef6e4bb8]{display:flex;flex-direction:column;gap:12px}.skeleton-line[data-v-ef6e4bb8]{height:16px;background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;border-radius:calc(var(--ms-radius) * .5)}.skeleton-line.short[data-v-ef6e4bb8]{width:60%}.code-block-container[data-markstream-viewport-pending=true] .code-height-placeholder[data-v-ef6e4bb8],.code-block-container[data-markstream-viewport-pending=true] .skeleton-line[data-v-ef6e4bb8]{animation:none}@keyframes code-skeleton-shimmer-ef6e4bb8{0%{background-position:100% 0}to{background-position:0 0}}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center{border-radius:var(--ms-radius)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;min-height:28px!important;transition:background-color .14s ease,border-color .14s ease!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 4%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 10%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center{background:transparent!important;border-color:transparent!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 6%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 12%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center .stream-monaco-unchanged-count:before{content:"";display:inline-block;width:14px;height:14px;margin-right:4px;flex-shrink:0;background:currentColor;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}[data-v-ef6e4bb8] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .diffOverview,[data-v-ef6e4bb8] .stream-monaco-diff-root .decorationsOverviewRuler{display:none!important;width:0!important;min-width:0!important;max-width:0!important;border:0!important;background:transparent!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-diff-editor{border:0!important;border-radius:0!important;box-shadow:none!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-clickable)>*:not(a){visibility:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines-compact .text{opacity:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root{--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide) !important;--stream-monaco-gutter-gap: var(--markstream-diff-gutter-gap) !important;--stream-monaco-line-number: var(--markstream-diff-line-number) !important;--stream-monaco-line-number-active: var(--markstream-diff-line-number-active) !important;--stream-monaco-added-fg: var(--markstream-diff-added-fg) !important;--stream-monaco-removed-fg: var(--markstream-diff-removed-fg) !important;--stream-monaco-added-line: var(--markstream-diff-added-line) !important;--stream-monaco-removed-line: var(--markstream-diff-removed-line) !important;--stream-monaco-added-inline: var(--markstream-diff-added-inline) !important;--stream-monaco-removed-inline: var(--markstream-diff-removed-inline) !important;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border) !important;--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border) !important;--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill) !important;--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill) !important;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter) !important;--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter) !important;--stream-monaco-added-line-shadow: none !important;--stream-monaco-removed-line-shadow: none !important;--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;box-sizing:border-box;min-width:0;width:100%}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .overflow-guard,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side),[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .overflow-guard{min-width:0!important;width:100%!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-scrollable-element.editor-scrollable,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-scrollable-element.editor-scrollable{left:var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width))!important;width:calc(100% - var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width)))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.modified .view-lines .view-line.stream-monaco-line-insert-fill,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.original .view-lines .view-line.stream-monaco-line-delete-fill{width:1000000px!important}.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-fallback-inline-delete-line{box-sizing:border-box;padding-left:var(--stream-monaco-diff-code-padding, 0px)}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .scrollbar.horizontal,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .scrollbar.horizontal{display:none!important;height:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .view-lines.line-delete{margin-left:0!important;width:100%!important;background:var(--stream-monaco-removed-line-fill)!important;box-shadow:var(--stream-monaco-removed-line-shadow)!important;display:block!important;height:-moz-max-content!important;height:max-content!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .gutter-delete,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .inline-deleted-margin-view-zone,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .stream-monaco-fallback-inline-delete-margin{background:var(--stream-monaco-removed-gutter),var(--stream-monaco-removed-line-fill)!important;display:block!important;height:100%!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-unchanged-bridge-source),[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;background:var(--stream-monaco-unchanged-bg)!important;color:var(--stream-monaco-unchanged-fg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{right:calc(var(--stream-monaco-gutter-marker-width) - var(--stream-monaco-unchanged-rail-width) / 2 + (var(--stream-monaco-gutter-gap) * 2))!important;width:auto!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important;color:var(--markstream-diff-unchanged-fg)!important;padding-left:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important;padding-right:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge.stream-monaco-diff-unchanged-bridge-line-info .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail{border-right-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal{border-bottom-color:transparent!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-both .stream-monaco-unchanged-reveal:first-child{border-bottom-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-top-only .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-bottom-only .stream-monaco-unchanged-reveal{border-bottom:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-meta,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-count,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-metadata-label,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{color:var(--markstream-diff-unchanged-fg)!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center{align-items:center;justify-content:center}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center{align-items:center;justify-content:center!important;position:relative}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center:not(.stream-monaco-clickable){opacity:0!important;pointer-events:none!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center .stream-monaco-unchanged-meta{justify-content:center!important;padding:0 28px!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center>div:first-child{align-items:center;display:flex;justify-content:center!important;min-width:100%;width:100%!important}[data-v-ef6e4bb8] .markstream-inline-fold-proxy{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:calc(var(--ms-radius) * .5);box-shadow:none;cursor:pointer;inset:0;padding:0;pointer-events:auto;position:absolute;z-index:2}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:hover,[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{background:transparent}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{outline:1px solid var(--vscode-focusBorder, currentColor);outline-offset:-1px}.math-inline-wrapper[data-v-6c556261]{position:relative;display:inline-block}.math-inline[data-v-6c556261]{display:inline-block;vertical-align:middle}.math-inline--fallback[data-v-6c556261]{white-space:pre-wrap}.math-inline__loading[data-v-6c556261]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-6c556261]{width:16px;height:16px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-6c556261],.table-node-fade-leave-active[data-v-6c556261]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-6c556261],.table-node-fade-leave-to[data-v-6c556261]{opacity:0}.sr-only[data-v-6c556261]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-block[data-v-939191ad]{min-height:var(--ms-size-math-min-height);transition:min-height var(--ms-duration-overlay) var(--ms-ease-standard)}.math-loading-overlay[data-v-939191ad]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:var(--ms-size-math-min-height)}.math-loading-spinner[data-v-939191ad]{width:20px;height:20px;border:2px solid color-mix(in srgb,var(--loading-spinner) 15%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);border-radius:50%;animation:math-spin-939191ad .8s linear infinite}@keyframes math-spin-939191ad{to{transform:rotate(360deg)}}.math-rendering[data-v-939191ad]{opacity:.3;transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.math-block__fallback[data-v-939191ad]{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.math-fade-enter-active[data-v-939191ad],.math-fade-leave-active[data-v-939191ad]{transition:all var(--ms-duration-slow) var(--ms-ease-standard)}.math-fade-enter-from[data-v-939191ad],.math-fade-leave-to[data-v-939191ad]{opacity:0}.action-icon{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot{display:inline-flex;align-items:center;justify-content:center}.icon-slot svg{display:block;width:100%;height:100%}.mermaid-block-container[data-v-73c385f8]{margin:var(--ms-flow-diagram-y) 0;border-color:var(--diagram-border)}.mermaid-block-header[data-v-73c385f8]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border)}.mermaid-label-text[data-v-73c385f8]{color:var(--code-action-fg)}.mermaid-mode-toggle-group[data-v-73c385f8]{background:transparent}.mermaid-mode-btn[data-v-73c385f8]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6}.mermaid-mode-btn[data-v-73c385f8]:hover{opacity:.9}.mermaid-mode-btn.is-active[data-v-73c385f8]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.mermaid-header-actions[data-v-73c385f8]{gap:var(--ms-gap-header-actions)}.mermaid-action-btn[data-v-73c385f8]{font-family:inherit;font-size:var(--ms-text-label);color:var(--code-action-fg)}.mermaid-action-btn[data-v-73c385f8]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.mermaid-action-btn[data-v-73c385f8]:active{transform:scale(.98)}.mermaid-source-panel[data-v-73c385f8]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.mermaid-source-code[data-v-73c385f8]{color:hsl(var(--ms-foreground))}.mermaid-preview-area[data-v-73c385f8]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-standard)}.mermaid-modal-overlay[data-v-73c385f8]{background:var(--modal-overlay)}.mermaid-modal-panel[data-v-73c385f8]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}._mermaid[data-v-73c385f8]{position:relative;font-family:inherit;content-visibility:auto;contain:content;contain-intrinsic-size:var(--ms-size-diagram-min-height) 240px}._mermaid[data-v-73c385f8] [data-mermaid-svg-layer]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;min-height:100%}._mermaid[data-v-73c385f8] svg{width:100%;height:auto;max-height:100%;display:block}.fullscreen ._mermaid[data-v-73c385f8] svg{max-height:none}.fullscreen[data-v-73c385f8]{width:100%;max-height:100%!important;height:100%!important}.mermaid-dialog-enter-from[data-v-73c385f8],.mermaid-dialog-leave-to[data-v-73c385f8]{opacity:0}.mermaid-dialog-enter-active[data-v-73c385f8],.mermaid-dialog-leave-active[data-v-73c385f8]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.mermaid-dialog-enter-from .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-to .dialog-panel[data-v-73c385f8]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-from .dialog-panel[data-v-73c385f8]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-active .dialog-panel[data-v-73c385f8]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-block-container[data-v-de34ec4b]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.infographic-block-header[data-v-de34ec4b]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.infographic-label[data-v-de34ec4b]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}.action-icon[data-v-de34ec4b]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot[data-v-de34ec4b]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-de34ec4b] svg{display:block;width:100%;height:100%}.infographic-mode-toggle[data-v-de34ec4b]{background:transparent}.infographic-mode-btn[data-v-de34ec4b]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:color .15s,background-color .15s,opacity .15s}.infographic-mode-btn[data-v-de34ec4b]:hover{opacity:.9}.infographic-mode-btn.is-active[data-v-de34ec4b]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.infographic-header-actions[data-v-de34ec4b]{gap:var(--ms-gap-header-actions)}.infographic-action-btn[data-v-de34ec4b]{font-family:inherit;color:var(--code-action-fg);transition:background-color .15s,color .15s}.infographic-action-btn[data-v-de34ec4b]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.infographic-action-btn[data-v-de34ec4b]:active{transform:scale(.98)}.infographic-source[data-v-de34ec4b]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.infographic-source-code[data-v-de34ec4b]{color:hsl(var(--ms-foreground))}.infographic-preview[data-v-de34ec4b]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-fast)}.infographic-pending-source[data-v-de34ec4b]{position:absolute;inset:0;z-index:1;margin:0;padding:var(--ms-inset-panel-body);overflow:auto;color:hsl(var(--ms-foreground));text-align:left;background:var(--diagram-bg)}.infographic-modal-overlay[data-v-de34ec4b]{background:var(--modal-overlay)}.infographic-modal-panel[data-v-de34ec4b]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}.fullscreen[data-v-de34ec4b]{width:100%;max-height:100%!important;height:100%!important}.infographic-dialog-enter-from[data-v-de34ec4b],.infographic-dialog-leave-to[data-v-de34ec4b]{opacity:0}.infographic-dialog-enter-active[data-v-de34ec4b],.infographic-dialog-leave-active[data-v-de34ec4b]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-dialog-enter-from .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-to .dialog-panel[data-v-de34ec4b]{transform:translateY(8px) scale(.98);opacity:.98}.infographic-dialog-enter-to .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-from .dialog-panel[data-v-de34ec4b]{transform:translateY(0) scale(1);opacity:1}.infographic-dialog-enter-active .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-active .dialog-panel[data-v-de34ec4b]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.d2-block-container[data-v-3b434cf5]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.d2-block-header[data-v-3b434cf5]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.d2-mode-toggle[data-v-3b434cf5]{background:transparent}.mode-btn[data-v-3b434cf5]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:opacity .2s,color .2s,background-color .2s}.mode-btn[data-v-3b434cf5]:hover{opacity:.9}.mode-btn.is-active[data-v-3b434cf5]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.d2-header-actions[data-v-3b434cf5]{gap:var(--ms-gap-header-actions)}.d2-action-btn[data-v-3b434cf5]{color:var(--code-action-fg);opacity:.7;transition:opacity .2s,background-color .15s,color .15s}.d2-action-btn[data-v-3b434cf5]:hover{opacity:1;background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.d2-action-btn[data-v-3b434cf5]:disabled{opacity:.3;cursor:not-allowed}.d2-block-body[data-v-3b434cf5]{position:relative}.d2-source[data-v-3b434cf5]{padding:var(--ms-inset-panel-body) var(--ms-inset-panel-x);font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.d2-code[data-v-3b434cf5]{white-space:pre;font-size:14px;line-height:1.5}.d2-render[data-v-3b434cf5]{max-height:var(--ms-size-code-max-height);overflow:auto}.d2-svg[data-v-3b434cf5] svg.markstream-d2-root-svg{width:100%;max-width:100%;height:auto;display:block}.d2-label[data-v-3b434cf5]{font-size:var(--ms-text-label)}.action-icon[data-v-3b434cf5]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.d2-error[data-v-3b434cf5]{color:hsl(var(--ms-destructive))}.markstream-virtual-timeline[data-v-1303f06e]{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;overflow:auto;overflow-anchor:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__spacer[data-v-1303f06e],.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e]{opacity:0;visibility:hidden;pointer-events:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e],.markstream-virtual-timeline__item.is-restored-height-floor[data-v-1303f06e]{height:var(--markstream-virtual-item-size);overflow:hidden}.markstream-virtual-timeline__restore-loading[data-v-1303f06e]{position:absolute;top:0;left:0;right:0;z-index:10;display:grid;place-items:center;pointer-events:none;overflow:hidden;background:Canvas;contain:strict}.markstream-virtual-timeline__restore-loading-card[data-v-1303f06e]{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgb(148 163 184 / 32%);border-radius:999px;background:#ffffffeb;color:#334155;font-size:13px;box-shadow:0 8px 24px #0f172a14}.markstream-virtual-timeline__restore-spinner[data-v-1303f06e]{width:14px;height:14px;border:2px solid rgb(148 163 184 / 35%);border-top-color:#334155;border-radius:999px;animation:markstream-timeline-restore-spin-1303f06e .8s linear infinite}@keyframes markstream-timeline-restore-spin-1303f06e{to{transform:rotate(360deg)}}.markstream-virtual-timeline__spacer[data-v-1303f06e]{flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__item[data-v-1303f06e]{display:flow-root;flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__default-item[data-v-1303f06e]{margin:8px 0;padding:10px 12px;border:1px solid rgb(148 163 184 / 32%);border-radius:8px;background:#f8fafc;color:#0f172a;line-height:1.5;white-space:pre-wrap}.markstream-virtual-timeline__default-item--system-divider[data-v-1303f06e]{border:0;background:transparent;color:#64748b;font-size:12px;text-align:center}.markstream-virtual-timeline__default-item--error[data-v-1303f06e]{border-color:#f8717173;background:#fef2f2;color:#991b1b}.markstream-virtual-timeline__status[data-v-1303f06e]{display:inline-flex;margin-right:8px;color:#475569;font-size:12px;text-transform:uppercase}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.md[data-v-68e0c7c3]{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text);word-break:break-word}.md[data-v-68e0c7c3] .markdown-renderer{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text)}.md[data-v-68e0c7c3] .markstream-vue,.md[data-v-68e0c7c3] .markdown-renderer{--code-bg: var(--color-surface-sunken);--code-fg: var(--color-text);--code-border: var(--color-line);--code-header-bg: var(--color-surface);--code-action-fg: var(--color-text-muted);--code-action-hover-fg: var(--color-accent);--markstream-code-fallback-bg: var(--color-surface-sunken);--markstream-code-fallback-fg: var(--color-text);--markstream-code-border-color: var(--color-line);--inline-code-bg: var(--color-inline-code-bg);--inline-code-fg: var(--color-text);--inline-code-border: transparent}.md[data-v-68e0c7c3] .md-file-link{appearance:none;display:inline;border:0;padding:0;background:transparent;color:var(--color-accent-hover);font:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}.md[data-v-68e0c7c3] .md-file-link:hover{color:var(--color-accent)}.md[data-v-68e0c7c3] .inline-code .md-file-link{text-underline-offset:1.5px}.md[data-v-68e0c7c3] .markdown-renderer p,.md[data-v-68e0c7c3] .markdown-renderer li{font-size:var(--content-font-size);line-height:round(calc(var(--content-font-size) * 1.625),1px)}.md[data-v-68e0c7c3] .markdown-renderer blockquote,.md[data-v-68e0c7c3] .markdown-renderer td,.md[data-v-68e0c7c3] .markdown-renderer th{font-size:var(--md-b2)}.md[data-v-68e0c7c3] .markdown-renderer img{background:var(--media-alpha-canvas)}.md[data-v-68e0c7c3] strong{color:color-mix(in srgb,var(--color-text) 86%,var(--color-text-muted));font-weight:var(--weight-semibold)}.md[data-v-68e0c7c3] h1,.md[data-v-68e0c7c3] h2,.md[data-v-68e0c7c3] h3,.md[data-v-68e0c7c3] h4{color:var(--color-text);font-optical-sizing:auto;font-weight:600;margin:.85em 0 .35em}.md[data-v-68e0c7c3] h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px);border-bottom:1px solid var(--color-line);padding-bottom:4px}.md[data-v-68e0c7c3] h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.md[data-v-68e0c7c3] h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.md[data-v-68e0c7c3] h4{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px);color:var(--color-text-muted)}.md[data-v-68e0c7c3] p{margin:0}.md[data-v-68e0c7c3] .node-slot+.node-slot{margin-top:var(--content-font-size)}.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h1),.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h2){margin-top:calc(var(--content-font-size) * 2)}.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h3),.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h4){margin-top:calc(var(--content-font-size) * 1.5)}.md[data-v-68e0c7c3] ul,.md[data-v-68e0c7c3] ol{--md-dot: round(calc(var(--content-font-size) * .375), 1px);list-style:none;margin:0;padding-left:calc(var(--content-font-size) * 2)}.md[data-v-68e0c7c3] li{position:relative;margin:0;padding:0}.md[data-v-68e0c7c3] li+li{margin-top:round(calc(var(--content-font-size) * .75),1px)}.md[data-v-68e0c7c3] li>ul,.md[data-v-68e0c7c3] li>ol{margin-top:round(calc(var(--content-font-size) * .75),1px);padding-left:calc(var(--content-font-size) * 1.5)}.md[data-v-68e0c7c3] ul>li:before{content:"";position:absolute;left:calc((var(--md-dot) + var(--content-font-size) * 2) / -2);top:calc((round(calc(var(--content-font-size) * 1.625),1px) - var(--md-dot)) / 2);width:var(--md-dot);height:var(--md-dot);border-radius:50%;background:color-mix(in srgb,var(--color-text) 90%,transparent)}.md[data-v-68e0c7c3] ul>li:has(>input[type=checkbox]):before,.md[data-v-68e0c7c3] ul>li:has(>p>input[type=checkbox]):before{content:none}.md[data-v-68e0c7c3] ul ul>li:before{background:transparent;border:1px solid color-mix(in srgb,var(--color-text) 90%,transparent);box-sizing:border-box}.md[data-v-68e0c7c3] ol{counter-reset:md-ol}.md[data-v-68e0c7c3] ol[start],.md[data-v-68e0c7c3] ol:has(>li[value]){counter-reset:none;list-style:decimal}.md[data-v-68e0c7c3] ol[start]>li,.md[data-v-68e0c7c3] ol:has(>li[value])>li{counter-increment:none}.md[data-v-68e0c7c3] ol[start]>li:before,.md[data-v-68e0c7c3] ol:has(>li[value])>li:before{content:none}.md[data-v-68e0c7c3] ol>li{counter-increment:md-ol}.md[data-v-68e0c7c3] ol>li:before{content:counter(md-ol) ".";position:absolute;top:0;left:calc(var(--content-font-size) * -2);width:calc(var(--content-font-size) * 2);line-height:round(calc(var(--content-font-size) * 1.625),1px);text-align:center;color:var(--color-text)}.md[data-v-68e0c7c3] :not(pre)>code,.md[data-v-68e0c7c3] .inline-code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);color:var(--color-text);border:0;padding:0 4px;border-radius:var(--radius-sm)}.md[data-v-68e0c7c3] strong code,.md[data-v-68e0c7c3] strong .inline-code,.md[data-v-68e0c7c3] b code,.md[data-v-68e0c7c3] b .inline-code{font-weight:var(--weight-semibold)}.md[data-v-68e0c7c3] .code-block-container{margin:.6em 0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow:hidden;--vscode-editor-font-size: var(--text-sm);--vscode-editor-line-height: calc(var(--text-sm) * var(--leading-normal))}.md[data-v-68e0c7c3] .code-block-header{background:var(--color-surface);border-bottom:.5px solid var(--color-line);padding:4px 6px 4px 12px;color:var(--color-text-muted);font:var(--text-xs) var(--font-ui);--ms-gap-header-main: var(--space-1-5)}.md[data-v-68e0c7c3] .code-block-header *{color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-68e0c7c3] .code-block-header .code-header-main{font-family:var(--font-ui)}.md[data-v-68e0c7c3] .code-block-header .code-header-title{font-size:var(--text-sm);font-weight:var(--weight-medium)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn{color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:hover{background:var(--color-hover);color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:hover *{color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn *{pointer-events:none}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true],.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true]{background:var(--color-selected);color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true] *,.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true] *{background:transparent;color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true]:hover,.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true]:hover{background:var(--color-selected-hover)}.md[data-v-68e0c7c3] .code-block-container.md-code-wrap pre{white-space:pre-wrap!important;overflow-wrap:anywhere}.md[data-v-68e0c7c3] .code-block-container ::selection,.md[data-v-68e0c7c3] .diff-wrap ::selection{background:var(--color-code-selection);color:var(--color-code-selection-text)}.md[data-v-68e0c7c3] .code-block-shell-content,.md[data-v-68e0c7c3] .markstream-pre{background:var(--color-well)}.md[data-v-68e0c7c3] .code-editor-container{line-height:var(--leading-normal);--diffs-gap-block: var(--code-pad-block)}.md[data-v-68e0c7c3] .code-editor-container diffs-container{--diffs-line-height: var(--leading-normal)}.md[data-v-68e0c7c3] .code-pre-fallback>.markstream-pre__line-numbers{display:none}.md[data-v-68e0c7c3] .code-block-container .code-pre-fallback{padding:var(--code-pad-block) var(--space-3);line-height:var(--leading-normal)!important}.md[data-v-68e0c7c3] .code-block-container pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers),.md[data-v-68e0c7c3] .markstream-pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers){margin:0;padding:var(--code-pad-block) var(--space-3);overflow-x:auto;font:var(--text-sm)/var(--leading-normal) var(--font-mono)}.md[data-v-68e0c7c3] .code-block-container pre code{font:inherit;color:var(--color-text);background:none;border:none;padding:0;border-radius:0}.md[data-v-68e0c7c3] .markstream-pre,.md[data-v-68e0c7c3] .code-pre-fallback,.md[data-v-68e0c7c3] .code-block-shell-content pre:not(.shiki),.md[data-v-68e0c7c3] .code-block-shell-content pre:not(.shiki) code{color:var(--color-text)}.md[data-v-68e0c7c3] a{color:var(--color-accent);text-decoration:none}.md[data-v-68e0c7c3] a:hover{text-decoration:underline}.md[data-v-68e0c7c3] a.mention-pill{color:var(--color-text-muted);text-decoration:none}.md[data-v-68e0c7c3] a.mention-folder:hover{text-decoration:none}.md[data-v-68e0c7c3] .katex-display{overflow-x:auto;overflow-y:hidden;padding:2px 0 6px;margin:.6em 0}.md[data-v-68e0c7c3] .math-inline{vertical-align:baseline}.md[data-v-68e0c7c3] blockquote{position:relative;margin:0;padding:0 0 0 round(calc(var(--content-font-size) * 1.5),1px);border-left:none;color:var(--color-text)}.md[data-v-68e0c7c3] blockquote:before{content:"";position:absolute;left:calc(round(calc(var(--content-font-size) * 1.5),1px)/2 - 1px);top:2px;bottom:2px;width:2px;border-radius:2px;background:var(--color-line)}.md[data-v-68e0c7c3] .blockquote>.paragraph-node{margin:0}.md[data-v-68e0c7c3] .blockquote>.paragraph-node+.paragraph-node{margin-top:var(--content-font-size)}.md[data-v-68e0c7c3] hr{border:none;border-top:1px solid var(--color-line);margin:0}.md[data-v-68e0c7c3] table:not(.table-node){border-collapse:collapse;font-size:var(--text-lg);margin:.5em 0}.md[data-v-68e0c7c3] table:not(.table-node) th,.md[data-v-68e0c7c3] table:not(.table-node) td{border:1px solid var(--color-line);padding:4px 10px;text-align:left}.md[data-v-68e0c7c3] table:not(.table-node) th{background:var(--color-surface);color:var(--color-text);font-weight:var(--weight-medium)}.md[data-v-68e0c7c3] .table-node-wrapper{width:100%;max-width:100%!important;min-width:0;overflow-x:auto!important;scrollbar-gutter:auto!important;position:relative;--table-cell-cap: var(--p-table-cell-max)}.md[data-v-68e0c7c3] .table-node{--table-border: var(--color-line);--table-header-bg: var(--color-surface);font-size:var(--text-lg);margin:.5em 0;width:max-content!important;min-width:100%;max-width:none!important;table-layout:auto!important}.md[data-v-68e0c7c3] .table-node th,.md[data-v-68e0c7c3] .table-node td{text-align:left;vertical-align:top;max-width:var(--table-cell-cap)}.md[data-v-68e0c7c3] .table-node .text-node{display:inline-block;max-width:var(--table-cell-cap);vertical-align:top}.md[data-v-68e0c7c3] .md-table-fade{display:none;position:absolute;top:0;bottom:0;right:0;width:36px;z-index:1;background:linear-gradient(to right,transparent,color-mix(in srgb,var(--color-bg) 65%,transparent) 55%,var(--color-bg));pointer-events:none;transition:opacity var(--duration-base) var(--ease-out)}.md[data-v-68e0c7c3] .md-table-at-end .md-table-fade{opacity:0}.md[data-v-68e0c7c3] .md-table-toggle{display:none;position:absolute;top:6px;right:6px;z-index:2;align-items:center;justify-content:center;width:26px;height:26px;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);cursor:pointer;opacity:0;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}@container (min-width: 760px){.md[data-v-68e0c7c3] .md-table-fade.md-table-toggle--show,.md[data-v-68e0c7c3] .md-table-toggle.md-table-toggle--show{display:block}.md[data-v-68e0c7c3] .md-table-toggle.md-table-toggle--show{display:inline-flex}}.md[data-v-68e0c7c3] .table-node-wrapper:hover .md-table-toggle.md-table-toggle--show,.md[data-v-68e0c7c3] .table-node-wrapper:focus-within .md-table-toggle.md-table-toggle--show,.md[data-v-68e0c7c3] .table-node-wrapper.md-table-wide .md-table-toggle.md-table-toggle--show{opacity:1}.md[data-v-68e0c7c3] .md-table-toggle:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-68e0c7c3] .md-table-toggle:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-68e0c7c3] .md-table-toggle svg{display:block}.md[data-v-68e0c7c3] .table-node tbody tr:hover{background-color:transparent!important}.md-frontmatter[data-v-68e0c7c3]{margin:0 0 var(--space-2);padding:var(--space-3) var(--space-4);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow-x:auto;color:var(--color-text-muted);font:var(--text-sm)/1.65 var(--font-mono)}.diff-wrap[data-v-68e0c7c3]{margin:.6em 0;border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-sunken);box-shadow:var(--shadow-xs);overflow:hidden}.diff-bar[data-v-68e0c7c3]{display:flex;align-items:center;gap:6px;padding:4px 12px;background:var(--color-surface);border-bottom:1px solid var(--color-line);color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.diff-lang[data-v-68e0c7c3]{margin-right:auto}.diff-copy[data-v-68e0c7c3]{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;padding:2px 6px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.diff-copy[data-v-68e0c7c3]:hover{background:var(--color-surface-sunken);color:var(--color-text)}.diff-copy[data-v-68e0c7c3]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.diff-bar[data-v-68e0c7c3] .ui-icon-button[aria-pressed=true]{background:var(--color-selected);color:var(--color-text)}.diff-bar[data-v-68e0c7c3] .ui-icon-button[aria-pressed=true]:hover{background:var(--color-selected-hover)}.diff-bar[data-v-68e0c7c3] .ui-icon-button svg{width:var(--p-ic-sm);height:var(--p-ic-sm)}.diff-wrap.md-code-wrap .diff-pre[data-v-68e0c7c3]{white-space:pre-wrap;overflow-wrap:anywhere}.diff-wrap.md-code-wrap .diff-pre code[data-v-68e0c7c3]{width:auto}.diff-wrap.md-code-wrap:not(.md-code-nums) .diff-line[data-v-68e0c7c3]{padding-left:calc(var(--space-3) + var(--diff-sign-col))}.diff-wrap.md-code-wrap:not(.md-code-nums) .diff-sign[data-v-68e0c7c3]{margin-left:calc(-1 * var(--diff-sign-col))}.diff-wrap.md-code-nums .diff-pre[data-v-68e0c7c3]{counter-reset:md-diff-line;position:relative;isolation:isolate}.diff-wrap.md-code-nums .diff-pre[data-v-68e0c7c3]:after{content:"";position:absolute;left:0;top:0;bottom:0;width:calc(var(--space-3) + var(--md-nums-gutter, 4ch));background:var(--color-selected);border-right:var(--p-hairline) solid var(--color-line);pointer-events:none;user-select:none;z-index:1}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]{padding-left:calc(var(--space-3) + var(--md-nums-gutter, 4ch) + var(--diff-sign-col))}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]:not(.diff-hunk){counter-increment:md-diff-line}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]:not(.diff-hunk):before{content:counter(md-diff-line);display:inline-block;position:relative;z-index:2;width:calc(var(--md-nums-gutter, 4ch) - 1ch);overflow:visible;margin-left:calc(-1 * (var(--md-nums-gutter, 4ch) + var(--diff-sign-col)));margin-right:1ch;text-align:right;color:var(--color-text-faint);user-select:none}.diff-pre[data-v-68e0c7c3]{margin:0;padding:var(--code-pad-block) 0;overflow-x:auto;background:var(--color-surface-sunken)}.diff-pre code[data-v-68e0c7c3]{display:block;width:max-content;min-width:100%;font:var(--text-sm)/var(--leading-normal) var(--font-mono);color:var(--color-text)}.diff-line[data-v-68e0c7c3]{display:block;width:100%;padding:0 var(--space-3)}.diff-sign[data-v-68e0c7c3]{display:inline-block;width:var(--diff-sign-col);text-align:center;color:var(--color-text-muted);user-select:none}.diff-text[data-v-68e0c7c3]{color:var(--color-text)}.diff-add[data-v-68e0c7c3]{background:var(--color-success-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.diff-add .diff-sign[data-v-68e0c7c3]{color:var(--color-success)}.diff-del[data-v-68e0c7c3]{background:var(--color-danger-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diff-del .diff-sign[data-v-68e0c7c3]{color:var(--color-danger)}.diff-hunk[data-v-68e0c7c3]{background:var(--color-surface)}.diff-hunk .diff-text[data-v-68e0c7c3]{color:var(--color-text-muted)}.md[data-v-68e0c7c3],.md .markdown-renderer[data-v-68e0c7c3]{font-family:var(--sans)}.md .code-block-container[data-v-68e0c7c3],.md .diff-wrap[data-v-68e0c7c3]{border-radius:var(--radius-md)}.md :not(pre)>code[data-v-68e0c7c3],.md .inline-code[data-v-68e0c7c3]{border-radius:var(--radius-sm)}.hl-code[data-v-dad8dd61]{border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:auto;max-height:calc(24 * 1.5 * var(--ui-font-size));overscroll-behavior:contain;font-family:var(--font-mono);font-size:var(--code-font-size);line-height:var(--leading-normal);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none}.hl-code[data-v-dad8dd61]:not(.framed){border:none;border-radius:0;background:transparent;max-height:none;overflow:visible}.hl-body[data-v-dad8dd61]{width:max-content;min-width:100%;padding:var(--space-1) 0 var(--space-2)}.hl-code.plain-pad .hl-body[data-v-dad8dd61]{padding-left:var(--space-3)}.hl-row[data-v-dad8dd61]{display:flex;align-items:flex-start;min-height:calc(1em * var(--leading-normal));white-space:pre;width:100%}.hl-gutter[data-v-dad8dd61]{flex:none;box-sizing:content-box;min-width:var(--gutter-ch, 4ch);padding:0 var(--space-2);text-align:right;color:var(--color-text-faint);user-select:none;border-right:.5px solid var(--color-line);font-variant-numeric:tabular-nums}.hl-sign[data-v-dad8dd61]{flex:none;width:16px;text-align:center;color:var(--color-text-muted);user-select:none}.hl-text[data-v-dad8dd61]{flex:none;padding-right:14px;white-space:pre;color:var(--color-text)}.hl-gutter+.hl-text[data-v-dad8dd61]{padding-left:var(--space-2)}.row-add[data-v-dad8dd61]{background:var(--color-diff-add-bg)}.row-add .hl-sign[data-v-dad8dd61]{color:var(--color-success)}.row-del[data-v-dad8dd61]{background:var(--color-diff-del-bg)}.row-del .hl-sign[data-v-dad8dd61]{color:var(--color-danger)}.row-hunk[data-v-dad8dd61]{background:var(--color-surface-sunken)}.row-hunk .hl-text[data-v-dad8dd61]{color:var(--color-text-muted)}.hl-code.gutter .row-add[data-v-dad8dd61]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.hl-code.gutter .row-del[data-v-dad8dd61]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.open-in[data-v-ad111e14]{display:inline-flex;align-items:stretch;flex:none;height:26px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);overflow:hidden}.open-in[data-v-ad111e14],.open-in[data-v-ad111e14] *{-webkit-app-region:no-drag}.open-in-main[data-v-ad111e14],.open-in-caret[data-v-ad111e14]{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;padding:0}.open-in-main[data-v-ad111e14]{width:30px}.open-in-caret[data-v-ad111e14]{width:22px}.open-in-main[data-v-ad111e14]:hover:not(:disabled),.open-in-caret[data-v-ad111e14]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text-strong)}.open-in-main[data-v-ad111e14]:focus-visible,.open-in-caret[data-v-ad111e14]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.open-in-main[data-v-ad111e14]:disabled,.open-in-caret[data-v-ad111e14]:disabled{cursor:default;opacity:.5}.open-in.open .open-in-caret[data-v-ad111e14]{background:var(--color-selected);color:var(--color-text-strong)}.open-in-sep[data-v-ad111e14]{flex:none;width:.5px;margin:5px 0;background:var(--color-line)}.open-in-icon[data-v-ad111e14]{width:16px;height:16px;border-radius:4px}.open-in-menu[data-v-ad111e14]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.om-icon[data-v-ad111e14]{width:16px;height:16px;flex:none;border-radius:4px}.om-label[data-v-ad111e14]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-file-head .ui-panel-header__title{font:400 var(--ui-c1) var(--font-ui);direction:rtl;text-align:left}.panel-file-head-actions{margin-left:auto;min-width:0;flex:none;display:flex;align-items:center;gap:var(--space-2)}.file-preview[data-v-2f04e5e9]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono);min-width:0}.fp-empty[data-v-2f04e5e9],.fp-loading[data-v-2f04e5e9]{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:var(--ui-font-size)}.fp-menu[data-v-2f04e5e9]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.fp-check[data-v-2f04e5e9]{color:var(--color-success)}.fp-body[data-v-2f04e5e9]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.fp-markdown[data-v-2f04e5e9]{padding:16px 20px}.fp-code[data-v-2f04e5e9]{background:var(--bg)}.fp-code[data-v-2f04e5e9] .hl-row.target,.fp-table tr.target th[data-v-2f04e5e9],.fp-table tr.target td[data-v-2f04e5e9]{background:var(--color-accent-soft)}.fp-html-frame[data-v-2f04e5e9],.fp-pdf-frame[data-v-2f04e5e9]{width:100%;height:100%;border:0;background:var(--color-surface-raised)}.fp-pdf-wrap[data-v-2f04e5e9]{background:var(--panel2)}.fp-table-wrap[data-v-2f04e5e9]{background:var(--bg)}.fp-table[data-v-2f04e5e9]{border-collapse:collapse;min-width:100%;font:var(--code-font-size)/var(--leading-normal) var(--mono)}.fp-table th[data-v-2f04e5e9]{position:sticky;left:0;z-index:1;width:44px;min-width:44px;padding:2px 8px;text-align:right;color:var(--faint);background:var(--panel);border-right:.5px solid var(--line2);user-select:none}.fp-table td[data-v-2f04e5e9]{padding:2px 10px;border-right:.5px solid var(--line2);border-bottom:.5px solid var(--line2);white-space:pre}.fp-image-wrap[data-v-2f04e5e9]{display:flex;align-items:center;justify-content:center;padding:24px;background:var(--panel2)}.fp-image[data-v-2f04e5e9]{max-width:100%;max-height:100%;object-fit:contain;border:.5px solid var(--line);border-radius:4px;background:var(--media-alpha-canvas)}.fp-image.actual[data-v-2f04e5e9]{max-width:none;max-height:none}.fp-binary-wrap[data-v-2f04e5e9]{display:flex;align-items:center;justify-content:center}.fp-binary-card[data-v-2f04e5e9]{display:flex;align-items:center;gap:12px;padding:20px 24px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:var(--ui-font-size);margin:32px auto;max-width:480px}.fp-binary-icon[data-v-2f04e5e9]{color:var(--faint);flex:none}.fp-error[data-v-2f04e5e9]{flex-direction:column;padding:24px;text-align:center}@keyframes spin-2f04e5e9{to{transform:rotate(360deg)}}.spinner[data-v-2f04e5e9]{display:inline-block;width:14px;height:14px;border:.5px solid var(--line);border-top-color:var(--color-accent);border-radius:50%;animation:spin-2f04e5e9 .7s linear infinite}@media(max-width:640px){.fp-markdown[data-v-2f04e5e9]{padding:14px 16px}.fp-body.fp-code[data-v-2f04e5e9]{-webkit-overflow-scrolling:touch}}.fp-empty[data-v-2f04e5e9],.fp-loading[data-v-2f04e5e9]{font-family:var(--sans)}.fp-binary-card[data-v-2f04e5e9]{border:.5px solid var(--color-line);border-radius:var(--radius-md)}.fp-binary-label[data-v-2f04e5e9]{font-family:var(--sans)}.fp-image[data-v-2f04e5e9]{border-radius:var(--radius-md)}.seg-btn[data-v-2f04e5e9]{font-family:var(--sans)}.gload[data-v-c183e202]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;min-width:100vw;min-height:100dvh;z-index:var(--z-toast);display:flex;align-items:center;justify-content:center;background:var(--bg)}.gload-box[data-v-c183e202]{display:flex;flex-direction:column;align-items:center;gap:22px;transform:translateY(-6%)}.gload-logo[data-v-c183e202]{width:128px;height:auto;color:var(--color-text);animation:gload-pop-c183e202 .55s cubic-bezier(.22,1,.36,1) both}.gload-text[data-v-c183e202]{font-family:var(--mono);font-size:var(--text-base);color:var(--muted);letter-spacing:.04em}@keyframes gload-pop-c183e202{0%{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.gload-logo[data-v-c183e202]{animation:none}}.gload-text[data-v-c183e202]{font-family:var(--sans)}.doodle-host[data-v-8004c140]{position:relative;width:100%;aspect-ratio:338 / 152;display:flex;align-items:center;justify-content:center}.doodle-canvas[data-v-8004c140]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.doodle-canvas.ready[data-v-8004c140]{opacity:1}@media(prefers-reduced-motion:reduce){.doodle-canvas[data-v-8004c140]{transition:none}}.mascot-host[data-v-69623d48]{position:relative;width:100%;aspect-ratio:72 / 100}.mascot-fallback[data-v-69623d48]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:86.5%;height:auto}.mascot-canvas[data-v-69623d48]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.mascot-canvas.ready[data-v-69623d48]{opacity:1}@media(prefers-reduced-motion:reduce){.mascot-canvas[data-v-69623d48]{transition:none}}.emoji-picker[data-v-23e78b23]{--ep-cell: 26px}.ep-search[data-v-23e78b23]{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-1);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--color-text-faint)}.ep-search[data-v-23e78b23]:hover,.ep-search[data-v-23e78b23]:focus-within{background:var(--color-surface-sunken)}.ep-input[data-v-23e78b23]{flex:1;min-width:0;height:calc(var(--ep-cell) + 2px);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;outline:none}.ep-input[data-v-23e78b23]::placeholder{color:var(--color-text-faint)}.ep-scroll[data-v-23e78b23]{max-height:calc(var(--ep-cell) * 10 + var(--space-1));overflow-y:auto;padding:0 var(--space-1)}.ep-label[data-v-23e78b23]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.ep-grid[data-v-23e78b23]{display:grid;grid-template-columns:repeat(8,var(--ep-cell));gap:var(--space-1);padding-bottom:var(--space-1)}.ep-e[data-v-23e78b23]{height:var(--ep-cell);display:grid;place-items:center;padding:0;font-size:var(--text-lg);background:transparent;border:none;border-radius:var(--radius-xs);cursor:pointer}.ep-e[data-v-23e78b23]:hover{background:var(--color-hover)}.ep-e[data-v-23e78b23]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ep-e.sel[data-v-23e78b23]{background:var(--color-accent-soft)}.ep-empty[data-v-23e78b23]{padding:var(--space-3) var(--space-2);font-size:var(--text-xs);color:var(--color-text-faint);text-align:center;user-select:none}.se[data-v-5086001d]{--se-pad-x: var(--space-2);display:block;margin:0;padding:8px var(--se-pad-x);border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);cursor:pointer;position:relative}.se[data-v-5086001d]:hover{background:var(--sb-hover, var(--color-hover));color:var(--color-text)}.se.on[data-v-5086001d]{background:var(--sb-selected, var(--color-selected));color:var(--color-text)}.row[data-v-5086001d]{display:flex;align-items:center;gap:var(--sb-gap, 6px);min-width:0}.left[data-v-5086001d]{display:flex;align-items:center;flex:1;min-width:0}.lead[data-v-5086001d]{width:var(--sb-gutter, 16px);flex:none;display:inline-flex;align-items:center;justify-content:center}.unread-dot[data-v-5086001d]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.ha .complete-btn[data-v-5086001d]:hover{color:var(--color-success)}.t[data-v-5086001d]{--sb-fade: 0px;--sb-fade-len: 16px;color:inherit;font-size:var(--ui-font-size-sm);font-weight:450;line-height:var(--leading-tight);user-select:none;flex:1;min-width:0;overflow:hidden;text-overflow:clip;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.se:hover .t[data-v-5086001d]{--sb-fade: 34px;--sb-fade-len: 26px}.se:has(.ui-badge):hover .t[data-v-5086001d]{--sb-fade: 0px;--sb-fade-len: 16px}.t .emoji[data-v-5086001d]{padding:0;background:transparent;border:none;cursor:pointer}.t .emoji[data-v-5086001d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sub[data-v-5086001d]{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);user-select:none}.sub-icon[data-v-5086001d]{flex:none;color:var(--color-text-muted)}.pr[data-v-5086001d]{display:inline-flex;align-items:center;gap:var(--space-05);flex:none;padding:1px var(--space-1);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-2xs);font-weight:var(--weight-medium);line-height:1;cursor:pointer}.pr[data-v-5086001d]:hover{border-color:var(--color-line-strong)}.pr[data-v-5086001d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pr--open[data-v-5086001d],.pr--open[data-v-5086001d]:hover{background:var(--color-success-soft);border-color:var(--color-success-bd);color:var(--color-success)}.pr--merged[data-v-5086001d],.pr--merged[data-v-5086001d]:hover{background:var(--color-done-soft);border-color:var(--color-done-bd);color:var(--color-done)}.sub-text[data-v-5086001d]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ts[data-v-5086001d]{color:var(--color-text-faint);font-size:var(--text-xs);font-family:var(--font-ui);font-weight:475;line-height:var(--leading-tight);font-variant-numeric:tabular-nums;text-align:right}.act[data-v-5086001d]{position:relative;flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;gap:var(--sb-gap, 6px);min-width:var(--icon-button-sm)}.act .ha[data-v-5086001d]{position:absolute;top:0;bottom:0;right:calc(var(--sb-action-inset, 3px) - var(--se-pad-x));display:inline-flex;align-items:center;gap:2px;opacity:0;visibility:hidden;border-radius:var(--radius-sm);transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.se:hover .ha[data-v-5086001d]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.act .ts[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ts[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .st[data-v-5086001d]{display:inline-flex;align-items:center;transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .st[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .ui-badge[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ui-badge[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.menu[data-v-5086001d],.picker[data-v-5086001d]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-5086001d]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-5086001d],.menu-pop-leave-to[data-v-5086001d]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.menu-time[data-v-5086001d]{padding:var(--space-1) var(--space-2);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-medium);cursor:default;user-select:text}.rename-wrap[data-v-5086001d]{position:relative;display:flex;align-items:center;flex:1;min-width:0;background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs)}.rename-input[data-v-5086001d]{flex:1;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;padding:1px 4px;outline:none;min-width:0}.rename-wrap.generating .rename-input[data-v-5086001d]{visibility:hidden}.gen-dots[data-v-5086001d]{position:absolute;left:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:3px;pointer-events:none}.gen-dots i[data-v-5086001d]{width:3px;height:3px;border-radius:var(--radius-full, 50%);background:var(--color-accent);animation:gen-title-dot-5086001d .9s var(--ease-out) infinite}.gen-dots i[data-v-5086001d]:nth-child(2){animation-delay:.15s}.gen-dots i[data-v-5086001d]:nth-child(3){animation-delay:.3s}@keyframes gen-title-dot-5086001d{0%,60%,to{opacity:.3;transform:translate(0)}30%{opacity:1;transform:translate(2px)}}.gen-title-btn[data-v-5086001d]{flex:none;margin-right:1px;color:var(--color-accent)}.gen-title-btn[data-v-5086001d]:hover:not(:disabled){color:var(--color-accent-hover);background:transparent}.sessions .se[data-v-5086001d]{margin:0;border-radius:var(--radius-sm);--se-pad-x: calc(var(--sb-pad-x, 20px) - var(--sb-inset, 12px));padding:8px var(--se-pad-x)}.sessions .se.flat+.se.flat[data-v-5086001d]{margin-top:var(--space-05)}.sessions .se .rename-input[data-v-5086001d]{border-radius:var(--radius-sm);font-family:var(--sans)}.pinned-label[data-v-7139df48]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.pinned-title[data-v-7139df48]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-toggle[data-v-7139df48]{color:var(--faint);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.pinned-label:hover .pinned-toggle[data-v-7139df48],.pinned-label:focus-within .pinned-toggle[data-v-7139df48],.pinned-toggle--on[data-v-7139df48]{opacity:1}.pinned-toggle[data-v-7139df48]:hover{color:var(--dim)}.pinned-toggle svg[data-v-7139df48]{width:13px;height:13px}.se-locate-flash[data-v-7139df48]{isolation:isolate}.se-locate-flash[data-v-7139df48]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-7139df48 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-7139df48{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-7139df48]:before{animation:none}}.pinned-rows[data-v-7139df48]{max-height:40vh;overflow-y:auto;padding:0 var(--sb-inset);--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.pinned-rows[data-v-7139df48]::-webkit-scrollbar{display:none}.pinned-thumb[data-v-7139df48]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.pinned-thumb.visible[data-v-7139df48]{opacity:1;pointer-events:auto}.pinned-thumb.visible[data-v-7139df48]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.pinned-thumb[data-v-7139df48]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.pinned-rows-wrap[data-v-7139df48]{position:relative;margin:0 calc(var(--sb-inset) * -1);--pinned-seam-down: linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) .75%, transparent), transparent);--pinned-seam-up: linear-gradient(to top, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to top, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to top, color-mix(in srgb, var(--color-text) .75%, transparent), transparent)}.pinned-seam[data-v-7139df48]{position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;z-index:var(--z-raised);transition:opacity var(--duration-slow) var(--ease-out)}.pinned-seam--top[data-v-7139df48]{top:0;border-top:var(--p-hairline) solid var(--line);background:var(--pinned-seam-down)}.pinned-seam--bottom[data-v-7139df48]{bottom:0;border-bottom:var(--p-hairline) solid var(--line);background:var(--pinned-seam-up)}.pinned-rows-wrap.scrolled .pinned-seam--top[data-v-7139df48],.pinned-rows-wrap.more-below .pinned-seam--bottom[data-v-7139df48]{opacity:1}.pinned-resize[data-v-7139df48]{height:var(--space-1);position:relative;background:transparent;touch-action:none;margin:calc(var(--space-05) * -1) calc(var(--sb-inset) * -1);z-index:var(--z-dropdown)}.pinned-resize-bar[data-v-7139df48]{position:absolute;top:50%;left:0;right:0;height:var(--space-05);translate:0 -50%;background:transparent;transition:background var(--duration-fast) var(--ease-out)}.pinned-resize:hover .pinned-resize-bar[data-v-7139df48]{background:var(--color-selected)}.pinned-resize.dragging .pinned-resize-bar[data-v-7139df48]{background:var(--color-line-strong)}.pinned-resize[data-v-7139df48]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pin-row.dragging[data-v-7139df48]{opacity:.45}.pinned.drop-active[data-v-7139df48]{border-radius:var(--radius-sm);box-shadow:inset 0 0 0 1px var(--color-accent)}.rh[data-v-c42027cd]{width:4px;flex:none;position:relative;align-self:stretch;background:transparent;touch-action:none;margin:0 -2px;z-index:var(--z-dropdown)}.rh-bar[data-v-c42027cd]{position:absolute;inset:0 1px;background:transparent;transition:background .12s}.rh:hover .rh-bar[data-v-c42027cd]{background:var(--color-selected)}.rh.dragging .rh-bar[data-v-c42027cd]{background:var(--color-line-strong)}.rh[data-v-c42027cd]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.toasts[data-v-f46ca0b3]{position:fixed;right:16px;bottom:84px;display:flex;flex-direction:column;gap:var(--space-2);z-index:var(--z-toast);width:min(440px,calc(100vw - 32px));max-height:56vh;overflow-y:auto}.toasts.below-overlay[data-v-f46ca0b3]{z-index:var(--z-dropdown)}.toast-enter-active[data-v-f46ca0b3],.toast-leave-active[data-v-f46ca0b3]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.toast-enter-from[data-v-f46ca0b3],.toast-leave-to[data-v-f46ca0b3]{opacity:0;transform:translate(16px)}.toast-move[data-v-f46ca0b3]{transition:transform var(--duration-base) var(--ease-out)}.actions[data-v-f46ca0b3]{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.link[data-v-f46ca0b3]{border:0;padding:0;background:none;color:var(--color-accent);cursor:pointer;font:inherit;font-size:var(--ui-font-size-xs)}.link[data-v-f46ca0b3]:hover{text-decoration:underline}.details[data-v-f46ca0b3]{display:grid;gap:5px;margin:8px 0 0;padding:8px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken)}.detail-row[data-v-f46ca0b3]{display:grid;grid-template-columns:minmax(88px,.34fr) minmax(0,1fr);gap:8px}.detail-row dt[data-v-f46ca0b3]{color:var(--color-text-muted)}.detail-row dd[data-v-f46ca0b3]{margin:0;color:var(--color-text);overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:640px){.toasts[data-v-f46ca0b3]{left:12px;right:12px;bottom:calc(var(--dock-h, 76px) + 8px);width:auto;max-height:50vh}.detail-row[data-v-f46ca0b3]{grid-template-columns:1fr;gap:2px}}.group.dragging[data-v-643ef903]{opacity:.45}.group.pinned-drag-active[data-v-643ef903],.group.pinned-drop-hover[data-v-643ef903]{border-radius:var(--radius-sm)}.group.pinned-drag-active[data-v-643ef903]{box-shadow:inset 0 0 0 1px var(--color-accent)}.group.pinned-drop-hover[data-v-643ef903]{box-shadow:inset 0 0 0 2px var(--color-accent)}.group.pinned-drop-blocked[data-v-643ef903],.group.pinned-drop-blocked[data-v-643ef903] *{cursor:no-drop}.se-locate-flash[data-v-643ef903]{isolation:isolate}.se-locate-flash[data-v-643ef903]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-643ef903 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-643ef903{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-643ef903]:before{animation:none}}.group-sessions[data-v-643ef903]{height:auto;overflow:hidden;transition:height var(--duration-base) var(--ease-out)}.group-sessions.collapsed[data-v-643ef903]{height:0}.gh[data-v-643ef903]{display:flex;flex-direction:column;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text);user-select:none;position:relative;cursor:grab}.gh[data-v-643ef903]:active{cursor:grabbing}.gh[data-v-643ef903]:hover{background:var(--sb-hover, var(--color-hover))}.gh.on[data-v-643ef903]{background:var(--sb-selected, var(--color-selected))}.gh-top[data-v-643ef903]{position:relative;display:flex;align-items:center;gap:var(--sb-gap)}.gh-folder[data-v-643ef903]{flex:none;color:var(--color-text-muted)}.gh-name[data-v-643ef903]{font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.gh-actions[data-v-643ef903]{position:absolute;right:calc(var(--sb-action-inset) - (var(--sb-pad-x) - var(--sb-inset)));top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:var(--space-1);padding-left:var(--space-1);border-radius:var(--radius-sm);isolation:isolate;opacity:0;pointer-events:none}.gh-name[data-v-643ef903]{--sb-fade: 0px;--sb-fade-len: 16px;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.gh:hover .gh-name[data-v-643ef903],.gh:focus-within .gh-name[data-v-643ef903],.gh:has(.gh-actions.open) .gh-name[data-v-643ef903]{--sb-fade: 64px;--sb-fade-len: 26px}.gh-actions[data-v-643ef903]>*{position:relative;z-index:1}.gh:hover .gh-actions[data-v-643ef903],.gh:focus-within .gh-actions[data-v-643ef903],.gh-actions.open[data-v-643ef903]{opacity:1;pointer-events:auto}.gh-more.open[data-v-643ef903]{color:var(--color-text);background:var(--color-line)}.group-empty[data-v-643ef903]{padding:var(--space-1) var(--space-2) var(--space-1) calc(var(--sb-pad-x) - var(--sb-inset) + var(--sb-gutter) + var(--sb-gap));font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui);user-select:none}.show-more-row[data-v-643ef903]{display:flex;align-items:center;padding-left:calc(var(--sb-gutter) + var(--sb-gap))}.show-more[data-v-643ef903]{display:flex;align-items:center;gap:var(--sb-gap);margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:left;cursor:pointer}.show-more[data-v-643ef903]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-643ef903]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-sep[data-v-643ef903]{margin:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.show-more-label[data-v-643ef903]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gh-rename[data-v-643ef903]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none}.gh-rename[data-v-643ef903]{border-radius:var(--radius-sm);font-family:var(--sans)}.gh-add[data-v-643ef903]{color:var(--faint)}.gh-add[data-v-643ef903]:hover{color:var(--dim)}.sa-select[data-v-d0588d0e]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:30px;padding:0 var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-d0588d0e]:hover,.sa-select.is-open[data-v-d0588d0e]{background:var(--color-hover)}.sa-select-chev[data-v-d0588d0e]{color:var(--color-text-faint)}.sa-menu[data-v-d0588d0e]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-check[data-v-d0588d0e]{display:inline-flex;flex:none;width:14px}.sa-dot[data-v-d0588d0e]{flex:none;width:8px;height:8px;border-radius:var(--radius-full)}.sa-dot--open[data-v-d0588d0e]{background:var(--color-success)}.sa-dot--done[data-v-d0588d0e]{background:var(--color-done)}.menu-pop-enter-active[data-v-d0588d0e]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-d0588d0e]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-d0588d0e],.menu-pop-leave-to[data-v-d0588d0e]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-select[data-v-967a19b0]{display:inline-flex;align-items:center;gap:var(--space-1-5);min-height:30px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-967a19b0]:hover,.sa-select.is-open[data-v-967a19b0]{background:var(--color-hover)}.sa-select[data-v-967a19b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sa-select-chev[data-v-967a19b0]{color:var(--color-text-faint)}.sa-tag[data-v-967a19b0]{display:inline-flex;align-items:center;gap:1px;height:20px;padding:0 2px 0 var(--space-1-5);border-radius:var(--radius-xs);background:var(--color-selected);font-size:var(--text-xs)}.sa-tag-name[data-v-967a19b0]{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-tag-x[data-v-967a19b0]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:var(--color-text-faint);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-tag-x[data-v-967a19b0]:hover{background:var(--color-hover);color:var(--color-text)}.sa-tag-more[data-v-967a19b0]{color:var(--color-text-muted);font-size:var(--text-xs)}.sa-menu[data-v-967a19b0]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-search[data-v-967a19b0]{display:flex;align-items:center;gap:7px;padding:5px 9px;color:var(--color-text-faint)}.sa-search-input[data-v-967a19b0]{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-tight)}.sa-search-input[data-v-967a19b0]::placeholder{color:var(--color-text-faint)}.sa-ws-name[data-v-967a19b0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-opts[data-v-967a19b0]{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.sa-menu-empty[data-v-967a19b0]{padding:5px 9px;color:var(--color-text-faint);font-size:var(--text-sm)}.menu-pop-enter-active[data-v-967a19b0]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-967a19b0]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-967a19b0],.menu-pop-leave-to[data-v-967a19b0]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-menu[data-v-b35c02be]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-menu-head[data-v-b35c02be]{padding:var(--space-1) var(--space-2) var(--space-05);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.menu-pop-enter-active[data-v-b35c02be]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-b35c02be]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-b35c02be],.menu-pop-leave-to[data-v-b35c02be]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-pager[data-v-d8059995]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-3)}.sa-total[data-v-d8059995]{color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;user-select:none}.sa-pager-right[data-v-d8059995]{display:flex;align-items:center;gap:var(--space-3)}.sa-pages[data-v-d8059995]{display:flex;align-items:center;gap:var(--space-05)}.sa-pg[data-v-d8059995]{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 var(--space-1-5);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-pg[data-v-d8059995]:hover{background:var(--color-hover);color:var(--color-text)}.sa-pg.cur[data-v-d8059995]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.sa-pg.cur[data-v-d8059995]:hover{background:var(--color-selected)}.sa-pg[data-v-d8059995]:disabled{opacity:.38;cursor:default}.sa-pg[data-v-d8059995]:disabled:hover{background:transparent;color:var(--color-text-muted)}.sa-ellipsis[data-v-d8059995]{padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sa-table-card[data-v-dd5dbf42]{border:.5px solid var(--color-line);border-radius:var(--radius-lg);background:var(--color-bg);overflow-x:auto;container-type:inline-size;transition:opacity var(--duration-fast) var(--ease-out)}.sa-table-card.is-loading[data-v-dd5dbf42]{opacity:.45;pointer-events:none}table[data-v-dd5dbf42]{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed}.sa-col-cb[data-v-dd5dbf42]{width:36px}.sa-col-title[data-v-dd5dbf42]{width:max(200px,20%)}.sa-col-ws[data-v-dd5dbf42]{width:116px}.sa-col-status[data-v-dd5dbf42]{width:88px}.sa-col-time[data-v-dd5dbf42]{width:140px}.sa-col-act[data-v-dd5dbf42]{width:84px}.sa-time--compact[data-v-dd5dbf42]{display:none}@container (max-width: 1020px){.sa-col-time[data-v-dd5dbf42]{width:108px}.sa-time--full[data-v-dd5dbf42]{display:none}.sa-time--compact[data-v-dd5dbf42]{display:inline}}@container (max-width: 760px){col.sa-col-time[data-v-dd5dbf42],.sa-c-time[data-v-dd5dbf42]{display:none}.sa-col-ws[data-v-dd5dbf42]{width:96px}}thead th[data-v-dd5dbf42]{height:32px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);text-align:left;white-space:nowrap;user-select:none}th.sa-col-cb[data-v-dd5dbf42],td.sa-col-cb[data-v-dd5dbf42]{padding-right:0}tbody td[data-v-dd5dbf42]{height:40px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-subtle);font-size:var(--text-sm);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}tbody tr:last-child td[data-v-dd5dbf42]{border-bottom:none}tbody tr[data-v-dd5dbf42]{transition:background var(--duration-fast) var(--ease-out)}tbody tr[data-v-dd5dbf42]:hover{background:var(--color-hover)}.sa-cb[data-v-dd5dbf42]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:.5px solid var(--color-line-strong);border-radius:var(--radius-xs);color:var(--color-text-on-accent);vertical-align:middle;transition:background var(--duration-fast) var(--ease-out),border-color var(--duration-fast) var(--ease-out)}.sa-cb[data-v-dd5dbf42]:hover{border-color:var(--color-text-faint)}.sa-cb.on[data-v-dd5dbf42],.sa-cb.ind[data-v-dd5dbf42]{background:var(--color-accent);border-color:var(--color-accent)}.sa-batch-inner[data-v-dd5dbf42]{display:flex;align-items:center;gap:var(--space-2)}.sa-batch-count[data-v-dd5dbf42]{margin-right:var(--space-1);color:var(--color-text-muted);font-size:var(--text-sm);white-space:nowrap;user-select:none}.sa-batch-link[data-v-dd5dbf42]{display:inline-flex;align-items:center;height:24px;padding:0 var(--space-1);border:none;background:transparent;color:var(--color-accent);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.sa-batch-link[data-v-dd5dbf42]:hover{text-decoration:underline}.sa-batch-link[data-v-dd5dbf42]:disabled{color:var(--color-text-faint);cursor:default;text-decoration:none}.sa-btn-q[data-v-dd5dbf42]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:24px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-btn-q[data-v-dd5dbf42]:hover{background:var(--color-hover)}.sa-btn-q[data-v-dd5dbf42]:disabled{opacity:.42;cursor:default}.sa-btn-q[data-v-dd5dbf42]:disabled:hover{background:transparent}.sa-btn-q[data-v-dd5dbf42] :first-child{color:var(--color-text-muted)}.sa-btn-q[data-v-dd5dbf42]:hover :first-child{color:var(--color-text)}.sa-btn-q--primary[data-v-dd5dbf42],.sa-btn-q--primary[data-v-dd5dbf42] :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-dd5dbf42]:hover,.sa-btn-q--primary[data-v-dd5dbf42]:hover :first-child{border-color:var(--color-accent-hover);background:var(--color-accent-hover);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-dd5dbf42]:disabled,.sa-btn-q--primary[data-v-dd5dbf42]:disabled:hover,.sa-btn-q--primary[data-v-dd5dbf42]:disabled :first-child,.sa-btn-q--primary[data-v-dd5dbf42]:disabled:hover :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-st[data-v-dd5dbf42]{display:inline-flex;align-items:center;gap:var(--space-1-5)}.sa-st--open[data-v-dd5dbf42]{color:var(--color-success)}.sa-st--done[data-v-dd5dbf42]{color:var(--color-done)}.sa-title[data-v-dd5dbf42]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-option-label)}.sa-rename[data-v-dd5dbf42]{width:100%;height:26px;padding:0 var(--space-1-5);border:1px solid var(--color-accent);border-radius:var(--radius-sm);outline:none;box-shadow:0 0 0 2px var(--color-accent-bd);background:var(--color-bg);color:var(--color-text);font-family:inherit;font-size:var(--text-sm)}.sa-ws[data-v-dd5dbf42]{display:inline-flex;align-items:center;max-width:100%;color:var(--color-text-muted)}.sa-ws span[data-v-dd5dbf42]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-prompt[data-v-dd5dbf42]{color:var(--color-text-muted)}.sa-time[data-v-dd5dbf42]{color:var(--color-text-muted);font-family:var(--font-mono);font-size:var(--text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.sa-none[data-v-dd5dbf42]{color:var(--color-text-faint)}.sa-act[data-v-dd5dbf42]{display:flex;align-items:center;gap:var(--space-05)}.sa-state[data-v-dd5dbf42]{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-8) + var(--space-6)) var(--space-4)}.sa-empty[data-v-dd5dbf42]{color:var(--color-text-faint);font-size:var(--text-sm)}.activity-notice[data-v-fd031610]{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin:0;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.think[data-v-39bd75ea]{margin:0}.think-head[data-v-39bd75ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.think-head[data-v-39bd75ea]:hover{color:var(--color-text)}.think-head[data-v-39bd75ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.think-bulb[data-v-39bd75ea]{flex:none}.think-title[data-v-39bd75ea]{font-weight:var(--weight-medium)}.think-time[data-v-39bd75ea]{color:var(--color-text-faint);font-weight:400;flex:none}.think.streaming .think-title[data-v-39bd75ea]{animation:think-breathe-39bd75ea 1.6s var(--ease-in-out) infinite}@keyframes think-breathe-39bd75ea{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.think.streaming .think-title[data-v-39bd75ea]{animation:none}}.think-car[data-v-39bd75ea]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.think.open .think-car[data-v-39bd75ea]{transform:rotate(90deg)}.think-body[data-v-39bd75ea]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.think-body.instant[data-v-39bd75ea]{transition:none}.think-body.open[data-v-39bd75ea]{grid-template-rows:minmax(0,1fr)}.think-body-inner[data-v-39bd75ea]{min-height:0;overflow:hidden}.think-text[data-v-39bd75ea]{font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:var(--space-1) 0 var(--space-2)}.mob .think-text[data-v-39bd75ea]{color:var(--color-text-faint);line-height:var(--leading-normal)}.op[data-v-ad2b6614]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);background:var(--color-well);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-word;max-height:12lh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.op-empty[data-v-ad2b6614]{color:var(--color-text-faint);font-style:italic}.agent-card[data-v-4a2d5e3d]{margin:var(--space-1) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.agent-card[data-v-4a2d5e3d]:hover{border-color:var(--color-line-strong)}.agent-card.err[data-v-4a2d5e3d]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2) var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.head[data-v-4a2d5e3d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.head[data-v-4a2d5e3d]:disabled{cursor:default}.head-row[data-v-4a2d5e3d]{display:flex;align-items:center}.head-row .head[data-v-4a2d5e3d]{flex:1;min-width:0}.detach[data-v-4a2d5e3d]{position:relative;flex:none;margin-right:var(--space-1)}.detach.touch[data-v-4a2d5e3d]:after{content:"";position:absolute;inset:-9px}.go-slot[data-v-4a2d5e3d]{display:inline-flex;align-items:center;padding-right:var(--space-3);cursor:pointer;flex:none}.lead[data-v-4a2d5e3d]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-md);background:var(--color-surface-sunken);color:var(--color-text-muted);flex:none}.main[data-v-4a2d5e3d]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.task[data-v-4a2d5e3d]{font-size:var(--ui-font-size);line-height:var(--leading-caption);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type[data-v-4a2d5e3d]{font-size:var(--text-xs);line-height:var(--leading-caption);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tail[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-2);flex:none}.st[data-v-4a2d5e3d]{display:inline-flex;align-items:center}.st.ok[data-v-4a2d5e3d]{color:var(--color-success)}.st.error[data-v-4a2d5e3d]{color:var(--color-danger)}.st.cancelled[data-v-4a2d5e3d]{color:var(--color-text-faint)}.go[data-v-4a2d5e3d]{color:var(--color-text-faint);transition:color var(--duration-base) var(--ease-out)}.agent-card:hover .head:not(:disabled) .go[data-v-4a2d5e3d]{color:var(--color-text)}.go.car[data-v-4a2d5e3d]{transition:color var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.go.car.open[data-v-4a2d5e3d]{transform:rotate(90deg)}.saved-result[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.saved-result[data-v-4a2d5e3d]:hover{color:var(--color-text-muted)}.saved-result[data-v-4a2d5e3d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.saved-result__chevron[data-v-4a2d5e3d]{transition:transform var(--duration-base) var(--ease-out)}.saved-result__chevron.open[data-v-4a2d5e3d]{transform:rotate(90deg)}.result[data-v-4a2d5e3d]{padding:var(--space-2) var(--space-3)}.result--legacy[data-v-4a2d5e3d]{border-top:.5px solid var(--color-line)}.tl-head[data-v-e445a9a3]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border-radius:var(--radius-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left}.tl-head.clickable[data-v-e445a9a3]{cursor:pointer;user-select:none}.tl-ic[data-v-e445a9a3]{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;color:var(--color-text-faint)}.tl-main[data-v-e445a9a3]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-1)}.tl-tail[data-v-e445a9a3]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}.tl-status[data-v-e445a9a3]{display:inline-flex;align-items:center;flex:none}.tl-status.ok[data-v-e445a9a3]{color:var(--color-success)}.tl-status.error[data-v-e445a9a3]{color:var(--color-danger)}.tl-car[data-v-e445a9a3]{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-car[data-v-e445a9a3]:hover{color:var(--color-text)}.tl-car[data-v-e445a9a3]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-car-ic[data-v-e445a9a3]{transition:transform var(--duration-base) var(--ease-out)}.tool-line.open .tl-car-ic[data-v-e445a9a3]{transform:rotate(90deg)}.tl-body[data-v-e445a9a3]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tl-body.open[data-v-e445a9a3]{grid-template-rows:minmax(0,1fr)}.tl-body-inner[data-v-e445a9a3]{min-height:0;overflow:hidden;padding:2px var(--space-2) var(--space-1) 0}.tl-main .tl-name[data-v-e445a9a3-s]{font-weight:var(--weight-regular);color:var(--color-text-muted);flex:none}.tl-main .tl-dim[data-v-e445a9a3-s]{color:var(--color-text-muted);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-faint[data-v-e445a9a3-s]{color:var(--color-text-faint);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-mono[data-v-e445a9a3-s]{font-family:var(--font-mono);font-size:var(--text-xs);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-file[data-v-e445a9a3-s]{font-weight:var(--weight-regular);color:var(--color-text);line-height:var(--leading-tight);flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 1px;font-family:inherit;font-size:inherit;cursor:pointer}.tl-main .tl-file[data-v-e445a9a3-s]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.tl-main .tl-file[data-v-e445a9a3-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-tail .tl-pill[data-v-e445a9a3-s]{font-size:var(--text-xs);line-height:1.5;padding:0 var(--space-2);border-radius:var(--radius-full);flex:none;white-space:nowrap}.tl-tail .tl-chip[data-v-e445a9a3-s]{color:var(--color-text-faint);font-size:var(--text-xs);flex:none;white-space:nowrap}.tl-tail .tl-add[data-v-e445a9a3-s]{color:var(--color-success);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tl-tail .tl-del[data-v-e445a9a3-s]{color:var(--color-danger);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.ask-receipt[data-v-928d131f]{max-width:560px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);padding:var(--space-2) var(--space-3) 10px;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.ask-receipt.flat[data-v-928d131f]{color:var(--color-text-faint);font-style:italic;padding-top:6px;padding-bottom:6px}.rc-head[data-v-928d131f]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text-faint);font-size:var(--text-xs);margin-bottom:6px}.rc-st[data-v-928d131f]{margin-left:auto;color:var(--color-success);display:inline-flex}.rc-q+.rc-q[data-v-928d131f]{margin-top:6px}.rc-qtext[data-v-928d131f]{display:flex;align-items:baseline;gap:var(--space-2);margin-bottom:3px;font-weight:var(--weight-medium);color:var(--color-text)}.rc-opt[data-v-928d131f]{display:flex;align-items:center;gap:var(--space-2);padding:1.5px 0;color:var(--color-text)}.rc-qskip[data-v-928d131f]{padding:1.5px 0;color:var(--color-text-faint);font-style:italic}.rc-lb[data-v-928d131f]{min-width:0}.rc-ds[data-v-928d131f]{color:var(--color-text-faint);font-size:var(--text-xs)}.rc-g[data-v-928d131f]{width:14px;height:14px;flex:none;border:.5px solid var(--color-line-strong);position:relative}.rc-g.chk[data-v-928d131f]{border-radius:var(--radius-xs)}.rc-g.rad[data-v-928d131f]{border-radius:50%}.rc-g.on[data-v-928d131f]{border-color:var(--color-accent)}.rc-g.chk.on[data-v-928d131f]{background:var(--color-accent)}.rc-g.chk.on[data-v-928d131f]:after{content:"";position:absolute;left:3.5px;top:.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.rc-g.rad.on[data-v-928d131f]:after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:var(--color-accent)}.cmd-echo[data-v-e0f3f8fe]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.tl-detach[data-v-e0f3f8fe]{position:relative;display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-detach[data-v-e0f3f8fe]:hover{color:var(--color-text)}.tl-detach[data-v-e0f3f8fe]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-detach.touch[data-v-e0f3f8fe]{width:44px;height:44px;margin-left:14px}.diffbar[data-v-b25ea4cc]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;gap:1px;flex:none}.seg-add[data-v-b25ea4cc]{background:var(--color-success)}.seg-del[data-v-b25ea4cc]{background:var(--color-danger)}.gl[data-v-c64dda93]{display:inline-flex;align-items:center}.arg-full[data-v-c64dda93]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.file-list[data-v-ef9af25f]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.file-row[data-v-ef9af25f]{width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.file-row[data-v-ef9af25f]:hover{background:var(--color-hover);color:var(--color-accent)}.file-row[data-v-ef9af25f]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-pill.pill-active[data-v-50602502]{color:var(--color-accent);background:var(--color-accent-soft)}.tl-pill.pill-done[data-v-50602502]{color:var(--color-success);background:var(--color-success-soft)}.tl-pill.pill-blocked[data-v-50602502]{color:var(--color-warning);background:var(--color-warning-soft)}.goal-block[data-v-50602502]{margin-bottom:var(--space-1)}.goal-text[data-v-50602502]{color:var(--color-text);font-size:calc(var(--content-font-size) - 1px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.goal-criterion[data-v-50602502]{color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;margin-top:2px;white-space:pre-wrap;word-break:break-word}.match-list[data-v-e5f2e791]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.match-row[data-v-e5f2e791]{display:flex;align-items:baseline;gap:var(--space-2);width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;cursor:default}.match-row.link[data-v-e5f2e791]{cursor:pointer}.match-row.link[data-v-e5f2e791]:hover{background:var(--color-hover)}.match-row[data-v-e5f2e791]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mref[data-v-e5f2e791]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-faint)}.match-row.link:hover .mref[data-v-e5f2e791]{color:var(--color-accent)}.mtext[data-v-e5f2e791]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-resolving[data-v-7bd83e15]{visibility:hidden}.media-tool[data-v-8ea09226]{display:inline-flex;flex-direction:column;gap:6px;max-width:320px}.media-title[data-v-8ea09226]{font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-image-button[data-v-8ea09226]{padding:0;border:none;background:transparent;cursor:pointer;border-radius:var(--radius-md);overflow:hidden}.media-image[data-v-8ea09226]{display:block;max-width:100%;border-radius:var(--radius-md);background:var(--media-alpha-canvas)}.media-video[data-v-8ea09226],.media-audio[data-v-8ea09226]{max-width:100%;border-radius:var(--radius-md)}.media-video[data-v-8ea09226]{display:block}.media-video-button[data-v-8ea09226]{position:relative}.media-video-tile[data-v-8ea09226]{display:block;width:320px;max-width:100%;aspect-ratio:16 / 9;background:var(--color-well)}.media-play-badge[data-v-8ea09226]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}.plan-glyph[data-v-ae3acb2d]{display:inline-flex;align-items:center}.plan-path[data-v-ae3acb2d]{display:block;max-width:100%;margin:0 0 var(--space-2);padding:0;overflow:hidden;border:none;background:transparent;color:var(--color-accent);font-family:var(--font-mono);font-size:var(--text-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-ae3acb2d]:hover{text-decoration:underline}.plan-path[data-v-ae3acb2d]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.plan-content[data-v-ae3acb2d]{padding:var(--space-3);border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);color:var(--color-text)}.plan-review[data-v-ae3acb2d]{display:flex;flex-direction:column;gap:var(--space-1);margin-top:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.plan-review>div[data-v-ae3acb2d]{display:flex;align-items:baseline;gap:var(--space-2)}.review-label[data-v-ae3acb2d]{flex:none;color:var(--color-text-faint)}.review-feedback[data-v-ae3acb2d]{white-space:pre-wrap}.path-link[data-v-a487370d]{display:block;width:100%;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 0 var(--space-1);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);color:var(--color-text-muted);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.path-link[data-v-a487370d]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.path-link[data-v-a487370d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.swarm-card[data-v-a03fd23e]{margin:0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.swarm-card.err[data-v-a03fd23e]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.head[data-v-a03fd23e]:hover{background:var(--color-hover);color:var(--color-text)}.head[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ic[data-v-a03fd23e]{color:var(--color-text-faint);flex:none}.title[data-v-a03fd23e]{font-weight:var(--weight-medium);color:var(--color-text);flex:none}.meta[data-v-a03fd23e]{color:var(--color-text-faint);flex:none}.sum-txt[data-v-a03fd23e]{color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.rt[data-v-a03fd23e]{margin-left:auto;display:flex;align-items:center;gap:var(--space-2);flex:none;color:var(--color-text-muted);font-size:var(--text-xs)}.status[data-v-a03fd23e]{display:inline-flex;align-items:center;flex:none}.status[data-v-a03fd23e]:has(>svg){color:var(--color-success)}.err .status[data-v-a03fd23e]:has(>svg){color:var(--color-danger)}.chip[data-v-a03fd23e]{color:var(--color-text-muted);font-family:var(--font-mono)}.tm[data-v-a03fd23e]{color:var(--color-text-faint);font-family:var(--font-mono)}.car[data-v-a03fd23e]{margin-left:2px;color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.swarm-card.open .car[data-v-a03fd23e]{transform:rotate(90deg)}.body[data-v-a03fd23e]{border-top:.5px solid var(--color-line)}.overview[data-v-a03fd23e]{padding:10px var(--space-3) var(--space-2);border-bottom:.5px solid var(--color-line)}.overview-line[data-v-a03fd23e]{display:flex;align-items:baseline;gap:var(--space-2)}.big[data-v-a03fd23e]{font-family:var(--font-mono);font-weight:var(--weight-medium);color:var(--color-text);font-size:15px}.lbl[data-v-a03fd23e]{color:var(--color-text-muted);font-size:var(--text-xs)}.seg[data-v-a03fd23e]{display:flex;height:5px;border-radius:var(--radius-full);overflow:hidden;margin:var(--space-2) 0 var(--space-1);gap:2px}.seg>span[data-v-a03fd23e]{height:100%;border-radius:var(--radius-full);min-width:3px}.s-ok[data-v-a03fd23e]{background:var(--color-success)}.s-run[data-v-a03fd23e]{background:var(--color-accent)}.s-warn[data-v-a03fd23e]{background:var(--color-warning)}.s-fail[data-v-a03fd23e]{background:var(--color-danger)}.s-queue[data-v-a03fd23e]{background:var(--color-line)}.legend[data-v-a03fd23e]{display:flex;flex-wrap:wrap;gap:10px}.legend span[data-v-a03fd23e]{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted)}.lg-dot[data-v-a03fd23e]{width:6px;height:6px;border-radius:var(--radius-full)}.member[data-v-a03fd23e]{border-bottom:.5px solid var(--color-line)}.member[data-v-a03fd23e]:last-child{border-bottom:none}.member-head[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:30px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.member-head[data-v-a03fd23e]:not(:disabled):hover{background:var(--color-hover)}.member-head[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.member-head[data-v-a03fd23e]:disabled{cursor:default}.row-dot[data-v-a03fd23e]{flex:none}.mname[data-v-a03fd23e]{flex:none;min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-medium);color:var(--color-text)}.mact[data-v-a03fd23e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font-size:var(--text-xs)}.mphase[data-v-a03fd23e]{flex:none;margin-left:auto;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.phase-completed .mphase[data-v-a03fd23e]{color:var(--color-success)}.phase-failed .mphase[data-v-a03fd23e]{color:var(--color-danger)}.phase-working .mphase[data-v-a03fd23e]{color:var(--color-accent)}.phase-suspended .mphase[data-v-a03fd23e]{color:var(--color-warning)}.mcar[data-v-a03fd23e]{margin-left:var(--space-1);color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.member.open .mcar[data-v-a03fd23e]{transform:rotate(90deg)}.member-saved[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.member-saved[data-v-a03fd23e]:hover{color:var(--color-text-muted)}.member-saved[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.member-saved-car[data-v-a03fd23e]{transition:transform var(--duration-base) var(--ease-out)}.member-saved-car.open[data-v-a03fd23e]{transform:rotate(90deg)}.member-body[data-v-a03fd23e]{padding:var(--space-1) var(--space-3) 10px 31px;color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.65;white-space:pre-wrap;word-break:break-word}.waiting[data-v-a03fd23e]{padding:6px var(--space-3) 10px;color:var(--color-text-muted);font-size:var(--text-xs)}.fallback-output[data-v-a03fd23e]{padding:10px var(--space-3);color:var(--color-text);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.status-glyph[data-v-77ce35f9]{flex:none;width:16px;display:inline-flex;align-items:center;justify-content:center;user-select:none}.status-glyph.s-run[data-v-77ce35f9]{color:var(--color-accent)}.status-glyph.s-done[data-v-77ce35f9]{color:var(--color-success)}.status-glyph.s-fail[data-v-77ce35f9]{color:var(--color-danger)}.status-glyph.s-pending[data-v-77ce35f9]{color:var(--color-text-faint)}.todo-bar[data-v-9c43594f]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.todo-fill[data-v-9c43594f]{background:var(--color-success);border-radius:var(--radius-full);transition:width var(--duration-slow) var(--ease-out)}.todo-list[data-v-9c43594f]{display:flex;flex-direction:column;gap:1px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-2) var(--space-3);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.todo-row[data-v-9c43594f]{display:flex;align-items:center;gap:7px;padding:2px 0;font-size:calc(var(--content-font-size) - 1px);color:var(--color-text)}.todo-title[data-v-9c43594f]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}.todo-row.s-in_progress .todo-title[data-v-9c43594f]{font-weight:var(--weight-medium)}.todo-row.s-done .todo-title[data-v-9c43594f]{color:var(--color-text-faint);text-decoration:line-through}.wf-glance[data-v-3a167d7c]{margin-bottom:var(--space-1)}.wf-main[data-v-3a167d7c]{color:var(--color-text);font-size:var(--text-sm);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.wf-sub[data-v-3a167d7c]{color:var(--color-text-muted);font-size:var(--text-xs);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.fetch-url[data-v-214a8617]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;color:var(--color-text-faint);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.activity-run[data-v-0970b9ea]{display:flex;flex-direction:column;animation:kimi-card-in var(--duration-base) var(--ease-out)}.ar-head[data-v-0970b9ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.ar-head[data-v-0970b9ea]:hover{color:var(--color-text)}.ar-head.is-static[data-v-0970b9ea],.ar-head.is-static[data-v-0970b9ea]:hover{cursor:default;color:var(--color-text-faint)}.ar-head[data-v-0970b9ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ar-glyph[data-v-0970b9ea]{display:inline-flex;align-items:center;flex:none;color:var(--color-text-faint)}.ar-glyph.ok[data-v-0970b9ea]{color:var(--color-success)}.ar-glyph.err[data-v-0970b9ea]{color:var(--color-danger)}.ar-glyph.run[data-v-0970b9ea]{color:var(--color-text-muted);animation:ar-breathe-0970b9ea 1.6s var(--ease-in-out) infinite}@keyframes ar-breathe-0970b9ea{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.ar-glyph.run[data-v-0970b9ea]{animation:none}}.ar-sum[data-v-0970b9ea]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.ar-danger[data-v-0970b9ea]{color:var(--color-danger)}.ar-faint[data-v-0970b9ea],.ar-sep[data-v-0970b9ea]{color:var(--color-text-faint)}.ar-car[data-v-0970b9ea]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.activity-run.open .ar-car[data-v-0970b9ea]{transform:rotate(90deg)}.ar-body[data-v-0970b9ea]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.ar-body.open[data-v-0970b9ea]{grid-template-rows:minmax(0,1fr)}.ar-body-inner[data-v-0970b9ea]{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:var(--space-2);padding-top:var(--space-1)}.msg-time[data-v-182ed7d4]{display:inline-flex;align-items:center;min-height:22px;box-sizing:border-box;padding:2px 5px;border-radius:var(--radius-sm);color:var(--muted);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;opacity:.7;white-space:nowrap}.ntf-list[data-v-2962a217]{display:flex;flex-direction:column;align-items:flex-end;gap:var(--space-3);margin:var(--space-2) 0}.ntn[data-v-2962a217]{margin-left:auto;max-width:var(--p-bubble-max);display:flex;flex-direction:column;align-items:flex-end}.ntn-head[data-v-2962a217]{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.ntn-ico[data-v-2962a217]{flex:none}.ntn.ok .ntn-ico[data-v-2962a217]{color:var(--color-success)}.ntn.err .ntn-ico[data-v-2962a217]{color:var(--color-danger)}.ntn.warn .ntn-ico[data-v-2962a217]{color:var(--color-warning)}.ntn-bubble[data-v-2962a217]{box-sizing:border-box;max-width:100%;padding:var(--space-2) var(--space-3);background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.ntn-line+.ntn-line[data-v-2962a217]{margin-top:var(--space-1)}.ntn-out[data-v-2962a217]{display:flex;align-items:center;gap:var(--space-2);background:var(--color-surface-raised);border-radius:var(--radius-md);padding:var(--space-1) var(--space-2);box-shadow:var(--shadow-xs);white-space:normal}.ntn-out-ic[data-v-2962a217]{color:var(--color-text-faint);flex:none}.ntn-out-path[data-v-2962a217]{flex:1;min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}.ntn-out-size[data-v-2962a217]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.ntn-out-copy[data-v-2962a217]{display:inline-flex;align-items:center;height:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);color:var(--color-text-muted);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;transition:color var(--duration-fast) var(--ease-out)}.ntn-out-copy[data-v-2962a217]:hover{color:var(--color-text)}.ntn-preview-cap[data-v-2962a217]{font-size:var(--text-xs);color:var(--color-text-faint);margin-bottom:var(--space-05)}.ntn-preview-text[data-v-2962a217]{margin:0;font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}.ntn-meta[data-v-2962a217]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}.ntn-raw[data-v-2962a217]{max-width:100%}.ntn-raw summary[data-v-2962a217]{list-style:none;display:flex;align-items:center;gap:var(--space-1);cursor:pointer;font-size:var(--text-xs);color:var(--color-text-faint);user-select:none}.ntn-raw summary[data-v-2962a217]::-webkit-details-marker{display:none}.ntn-raw summary[data-v-2962a217]:hover{color:var(--color-text)}.ntn-raw-car[data-v-2962a217]{transition:transform var(--duration-base) var(--ease-out)}.ntn-raw[open] .ntn-raw-car[data-v-2962a217]{transform:rotate(90deg)}.ntn-raw-in[data-v-2962a217]{margin-top:var(--space-1);display:flex;flex-direction:column;gap:var(--space-2)}.ntn-raw-fields[data-v-2962a217]{display:grid;grid-template-columns:auto 1fr;gap:var(--space-1) var(--space-3)}.ntn-raw-fields .k[data-v-2962a217]{color:var(--color-text-faint);font-size:var(--text-xs)}.ntn-raw-fields .v[data-v-2962a217]{color:var(--color-text-muted);font-size:var(--text-xs);font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntn-raw-pre[data-v-2962a217]{margin:0;padding:var(--space-2) var(--space-3);background:var(--color-surface-raised);border-radius:var(--radius-sm);box-shadow:var(--shadow-xs);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre;overflow:auto;max-width:100%;max-height:13lh}.turn-fold[data-v-d69de1b5]{display:flex;flex-direction:column}.tf-head[data-v-d69de1b5]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.tf-head[data-v-d69de1b5]:hover{color:var(--color-text)}.tf-head[data-v-d69de1b5]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.tf-sum[data-v-d69de1b5]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.tf-car[data-v-d69de1b5]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.turn-fold.open .tf-car[data-v-d69de1b5]{transform:rotate(90deg)}.tf-body[data-v-d69de1b5]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tf-body.open[data-v-d69de1b5]{grid-template-rows:minmax(0,1fr)}.tf-body-inner[data-v-d69de1b5]{min-height:0;overflow:hidden;display:flex;flex-direction:column}.tf-body-inner>.msg[data-v-d69de1b5],.tf-body-inner[data-v-d69de1b5]>.think,.tf-body-inner[data-v-d69de1b5]>.tool-group,.tf-body-inner[data-v-d69de1b5]>.activity-run,.tf-body-inner[data-v-d69de1b5]>.agent-card,.tf-body-inner[data-v-d69de1b5]>.agent-group,.tf-body-inner[data-v-d69de1b5]>.tool-line,.tf-body-inner[data-v-d69de1b5]>.swarm-card,.tf-body-inner[data-v-d69de1b5]>.media-tool,.tf-body-inner[data-v-d69de1b5]>.ask-receipt{margin-top:var(--chat-block-gap)}.turn-fold.streaming .tf-body-inner>.msg[data-v-d69de1b5]:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.think:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.tool-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.activity-run:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.agent-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.agent-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.tool-line:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.swarm-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.media-tool:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.ask-receipt:first-child{margin-top:0}.tf-body-inner .msg[data-v-d69de1b5]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:var(--weight-medium)}.tf-body-inner .msg[data-v-d69de1b5] p{margin:0}.tf-body-inner .msg[data-v-d69de1b5] p+p{margin-top:var(--space-2)}@container (min-width: 760px){.tf-body-inner .msg[data-v-d69de1b5] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.tf-body-inner .msg[data-v-d69de1b5] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.tf-body-inner .msg[data-v-d69de1b5] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.turn-files[data-v-c82a66d2]{margin-top:var(--chat-block-gap)}.turn-files[data-v-c82a66d2] .ui-card__head{font-family:var(--font-ui);font-weight:var(--weight-regular);padding:var(--space-2) var(--space-3)}.turn-files[data-v-c82a66d2] .ui-card__body{padding:var(--space-1) var(--space-3)}.turn-files[data-v-c82a66d2] .ui-card__foot{padding:0;justify-content:stretch}.tf-ic[data-v-c82a66d2]{display:inline-flex;align-items:center;color:var(--color-text-faint);flex:none}.tf-title[data-v-c82a66d2]{font-size:var(--text-sm);color:var(--color-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-stats[data-v-c82a66d2]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.tf-add[data-v-c82a66d2],.tf-del[data-v-c82a66d2]{font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tf-add[data-v-c82a66d2]{color:var(--color-success)}.tf-del[data-v-c82a66d2]{color:var(--color-danger)}.tf-list[data-v-c82a66d2]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.tf-row[data-v-c82a66d2]{display:flex;align-items:center;gap:var(--space-1);min-width:0;padding:var(--space-1) 0;font-size:var(--text-sm);line-height:var(--leading-tight)}.tf-file[data-v-c82a66d2]{display:flex;align-items:baseline;border:none;border-radius:var(--radius-xs);background:transparent;padding:0;font-family:inherit;font-size:inherit;color:var(--color-text);flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-align:left}button.tf-file[data-v-c82a66d2]{cursor:pointer}button.tf-file[data-v-c82a66d2]:hover{text-decoration:underline;text-decoration-color:var(--color-text-faint);text-underline-offset:3px}.tf-file[data-v-c82a66d2]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tf-dir[data-v-c82a66d2]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tf-base[data-v-c82a66d2]{flex:none;font-weight:var(--weight-medium);color:var(--color-text)}.tf-more[data-v-c82a66d2]{width:100%;justify-content:flex-start;border-radius:0}.turn-files .tf-more[data-v-c82a66d2]:not(:disabled):active{transform:none}.tf-more-car[data-v-c82a66d2]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.tf-more-car.open[data-v-c82a66d2]{transform:rotate(180deg)}.diffbar[data-v-c82a66d2]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;flex:none}.seg-add[data-v-c82a66d2]{background:var(--color-success)}.seg-del[data-v-c82a66d2]{background:var(--color-danger)}.cn[data-v-bbd9b071]{margin:0;align-self:flex-end;max-width:78%;display:flex;flex-direction:column;align-items:flex-end}.cn-head[data-v-bbd9b071]{align-self:flex-end;display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.cn-head-ico[data-v-bbd9b071]{flex:none}.cn-head.error .cn-head-ico[data-v-bbd9b071]{color:var(--color-danger)}.cn-bubble[data-v-bbd9b071]{box-sizing:border-box;max-width:100%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.cn-meta[data-v-bbd9b071]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}.pswp{--pswp-root-z-index: var(--z-modal);--pswp-bg: var(--color-scrim-strong)}.media-preview-caption{position:absolute;left:0;right:0;bottom:var(--space-4);padding:0 var(--space-6);color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.media-lightbox[data-v-14fb6a4a]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:var(--color-scrim-strong)}.media-lightbox-card[data-v-14fb6a4a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);max-width:min(960px,calc(100vw - var(--space-6) * 2));max-height:calc(var(--app-height, 100vh) - var(--space-6) * 2)}.media-lightbox-frame[data-v-14fb6a4a]{max-width:100%;border-radius:var(--radius-md);overflow:hidden;background:var(--color-bg);box-shadow:var(--shadow-xl)}.media-lightbox-media[data-v-14fb6a4a]{display:block;max-width:100%;max-height:calc(var(--app-height, 100vh) - var(--space-6) * 4);object-fit:contain}.media-lightbox-name[data-v-14fb6a4a]{max-width:100%;color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox-close[data-v-14fb6a4a]{position:fixed;top:var(--space-4);right:var(--space-6);display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text);box-shadow:var(--shadow-sm);cursor:pointer;z-index:var(--z-modal-dropdown)}.media-lightbox-close[data-v-14fb6a4a]:before{content:"";position:absolute;inset:-6px}.media-lightbox-close[data-v-14fb6a4a]:hover{border-color:var(--color-line-strong);background:var(--color-surface-sunken)}.working-indicator[data-v-cd612157]{display:inline-flex;align-items:center;gap:var(--space-2);align-self:flex-start;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.wi-mascot[data-v-cd612157]{flex:none;width:40px}.wi-label[data-v-cd612157]{animation:wi-breathe-cd612157 1.6s var(--ease-in-out) infinite}@keyframes wi-breathe-cd612157{0%,to{opacity:1}50%{opacity:.45}}.sab[data-v-73604c69]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);min-width:0;max-width:calc(100vw - 2 * var(--p-mention-tip-vmargin));max-height:calc(100vh - 2 * var(--p-mention-tip-vmargin));overflow-y:auto}.sab[data-v-73604c69] .ui-menu-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sab-comment[data-v-73604c69]{display:flex;align-items:center;gap:var(--space-2);width:100%;max-width:var(--p-selection-bubble-w);padding:var(--space-1)}.chat-empty[data-v-999e1e60]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;color:var(--faint);text-align:center}.chat-empty-text[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat-loading[data-v-999e1e60]{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:24px 16px;color:var(--muted)}.chat-loading-text[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat[data-v-999e1e60]{--chat-turn-gap: 16px;--chat-block-gap: 10px;--chat-section-gap: 18px;display:flex;flex-direction:column;gap:0;padding:16px 14px 20px;flex:1;min-height:0;position:relative}.chat .chat-empty[data-v-999e1e60]{align-self:stretch}.chat>.u-turn[data-v-999e1e60],.chat>.a-msg[data-v-999e1e60],.chat>.compact-divider[data-v-999e1e60],.chat>.cron-notice[data-v-999e1e60],.chat>.sending-placeholder[data-v-999e1e60],.chat[data-v-999e1e60]>.activity-notice{margin-top:var(--chat-turn-gap)}.chat>.a-msg[data-v-999e1e60]{margin-top:10px}.chat>.u-turn[data-v-999e1e60]:first-child,.chat>.a-msg[data-v-999e1e60]:first-child,.chat>.compact-divider[data-v-999e1e60]:first-child,.chat>.cron-notice[data-v-999e1e60]:first-child,.chat>.sending-placeholder[data-v-999e1e60]:first-child,.chat[data-v-999e1e60]>.activity-notice:first-child{margin-top:0}.u-turn[data-v-999e1e60]{display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;width:100%}.u-bub[data-v-999e1e60]{align-self:flex-end;max-width:78%;background:var(--color-user-bubble-bg);color:var(--color-text);border-radius:var(--radius-lg);padding:10px 12px;font-size:var(--content-font-size);line-height:var(--leading-normal)}.u-meta[data-v-999e1e60]{align-self:flex-end;display:flex;justify-content:flex-end;align-items:center;max-width:78%;margin-top:var(--space-2);margin-right:4px}.u-meta .u-edit[data-v-999e1e60]{min-height:22px;box-sizing:border-box}.u-text[data-v-999e1e60]{white-space:pre-wrap;overflow-wrap:anywhere}.u-text-wrap[data-v-999e1e60]{position:relative;display:flex;flex-direction:column}.u-text-wrap-args[data-v-999e1e60]{margin-top:var(--space-1)}.u-text-wrap.is-clamped[data-v-999e1e60]{min-width:120px}.u-text-wrap.is-clamped>.u-text[data-v-999e1e60],.u-text-wrap.is-clamped>.skill-act-args[data-v-999e1e60]{max-height:10lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh))}.u-text-wrap.is-clamped>.q-body[data-v-999e1e60]{max-height:3lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh))}.u-text-toggle[data-v-999e1e60]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-2);padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.u-text-toggle[data-v-999e1e60]:hover{box-shadow:var(--shadow-md)}.u-text-toggle[data-v-999e1e60]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.u-text-wrap.is-clamped .u-text-toggle[data-v-999e1e60]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.u-text-toggle-car[data-v-999e1e60]{transition:transform var(--duration-base) var(--ease-out)}.u-text-toggle[aria-expanded=true] .u-text-toggle-car[data-v-999e1e60]{transform:rotate(180deg)}.u-edit[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s}.u-edit svg[data-v-999e1e60]{display:block;flex:none}.u-edit[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-armed[data-v-999e1e60]{--undo-hint-duration: 5s;gap:var(--space-1);opacity:1;color:var(--color-text);animation:u-edit-armed-blink-999e1e60 var(--undo-hint-duration) linear forwards}.u-edit-armed[data-v-999e1e60]:hover{color:var(--color-accent);background:var(--hover)}.u-edit-hint[data-v-999e1e60]{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap}@keyframes u-edit-armed-blink-999e1e60{0%,55%{opacity:1}62%{opacity:.45}69%{opacity:1}75%{opacity:.4}81%{opacity:.95}86%{opacity:.35}91%{opacity:.85}95%{opacity:.3}to{opacity:0}}@media(prefers-reduced-motion:reduce){.u-edit-armed[data-v-999e1e60]{animation:none}}.u-copy[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.u-copy svg[data-v-999e1e60]{display:block;flex:none}.u-copy[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-wrap[data-v-999e1e60]{display:flex;justify-content:flex-end}.chat>.u-edit-wrap[data-v-999e1e60]{margin-top:4px}.chat>.u-edit-wrap+.a-msg[data-v-999e1e60]{margin-top:8px}.compact-divider[data-v-999e1e60]{display:flex;align-items:center;gap:10px;align-self:stretch;width:100%;margin:var(--chat-section-gap) 0 0}.chat>.compact-divider[data-v-999e1e60]:first-child{margin-top:0}.cd-line[data-v-999e1e60]{flex:1;height:1px;background:var(--line)}.cd-label[data-v-999e1e60]{flex:none;display:inline-flex;align-items:center;gap:8px;max-width:80%;font-size:var(--text-base);color:var(--muted);white-space:nowrap}.cd-btn[data-v-999e1e60]{background:none;border:none;padding:0;cursor:pointer;font:inherit;font-size:var(--text-base);color:var(--muted)}.cd-view[data-v-999e1e60]{color:var(--color-accent)}.cd-btn:hover .cd-view[data-v-999e1e60]{text-decoration:underline}.chat>.turn-failed[data-v-999e1e60]{margin-top:var(--chat-turn-gap)}.chat>.turn-failed[data-v-999e1e60]:first-child{margin-top:0}.turn-failed[data-v-999e1e60]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:var(--p-hairline) solid var(--color-danger-bd);border-radius:var(--radius-lg);background:var(--color-danger-soft);box-shadow:var(--shadow-xs);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tf-chip[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);flex:none;color:var(--color-danger)}.tf-main[data-v-999e1e60]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tf-title[data-v-999e1e60]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);line-height:var(--leading-normal)}.tf-sub[data-v-999e1e60]{font-size:var(--text-xs);color:var(--color-text-muted);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-meta[data-v-999e1e60]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal-prov[data-v-999e1e60]{display:flex;align-items:center;gap:var(--space-1);margin-bottom:var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-normal);user-select:none}.a-msg[data-v-999e1e60]{align-self:flex-start;max-width:94%;width:94%}.a-msg-ft[data-v-999e1e60]{display:flex;justify-content:flex-start;align-items:center;gap:8px;height:auto;margin-top:var(--chat-block-gap);overflow:visible}.a-time[data-v-999e1e60]{display:inline-flex;align-items:center;font-size:var(--text-base);color:var(--muted);line-height:1}.a-cpbtn[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.a-cpbtn[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.a-cpbtn svg[data-v-999e1e60]{display:block;flex:none}@media(hover:none){.a-msg-ft[data-v-999e1e60]{height:auto;margin-top:var(--chat-block-gap);opacity:1;pointer-events:auto}.a-cpbtn[data-v-999e1e60]{font-size:var(--ui-font-size-sm);padding:8px 10px;margin:-4px -6px}}.a-msg .msg[data-v-999e1e60]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:500}.a-msg .msg[data-v-999e1e60] p{margin:0}.a-msg .msg[data-v-999e1e60] p+p{margin-top:8px}.a-msg>.msg[data-v-999e1e60],.a-msg[data-v-999e1e60]>.think,.a-msg[data-v-999e1e60]>.tool-group,.a-msg[data-v-999e1e60]>.activity-run,.a-msg[data-v-999e1e60]>.agent-card,.a-msg[data-v-999e1e60]>.agent-group,.a-msg[data-v-999e1e60]>.tool-line,.a-msg[data-v-999e1e60]>.swarm-card,.a-msg[data-v-999e1e60]>.media-tool,.a-msg[data-v-999e1e60]>.ask-receipt{margin-top:var(--chat-block-gap)}.a-msg>.msg[data-v-999e1e60]:first-child,.a-msg[data-v-999e1e60]>.think:first-child,.a-msg[data-v-999e1e60]>.tool-group:first-child,.a-msg[data-v-999e1e60]>.activity-run:first-child,.a-msg[data-v-999e1e60]>.agent-card:first-child,.a-msg[data-v-999e1e60]>.agent-group:first-child,.a-msg[data-v-999e1e60]>.tool-line:first-child,.a-msg[data-v-999e1e60]>.swarm-card:first-child,.a-msg[data-v-999e1e60]>.media-tool:first-child,.a-msg[data-v-999e1e60]>.ask-receipt:first-child{margin-top:0}.a-msg>.goal-prov:first-child+.msg[data-v-999e1e60],.a-msg>.goal-prov[data-v-999e1e60]:first-child+.think,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.tool-group,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.activity-run,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.agent-card,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.agent-group,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.tool-line,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.swarm-card,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.media-tool,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.ask-receipt,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.turn-fold{margin-top:0}.a-msg[data-v-999e1e60] :not(pre)>code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:1px 6px;color:var(--color-accent-hover)}@container (min-width: 760px){.a-msg .msg[data-v-999e1e60] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.a-msg .msg[data-v-999e1e60] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.a-msg .msg[data-v-999e1e60] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.u-atts[data-v-999e1e60]{display:flex;flex-wrap:wrap;gap:var(--space-1-5);margin-bottom:var(--space-2)}.u-atts button.attachment-pill[data-v-999e1e60]{appearance:none;border:none;background:none;padding-block:0;font-family:inherit;font-size:inherit}.sending-placeholder[data-v-999e1e60]{align-self:flex-start;padding:10px 0}.skill-act[data-v-999e1e60]{display:flex;flex-direction:column;gap:2px}.skill-act-head[data-v-999e1e60]{font-size:var(--ui-font-size-sm);font-weight:500;color:var(--color-accent-hover);display:flex;align-items:center;gap:6px}.skill-act-arrow[data-v-999e1e60]{color:var(--color-accent);font-size:var(--text-base)}.skill-act-args[data-v-999e1e60]{font-size:var(--text-base);color:var(--muted);padding-left:17px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.chat[data-v-999e1e60]{box-sizing:border-box;width:100%;padding:14px max(12px,var(--safe-right)) 18px max(12px,var(--safe-left))}.u-bub[data-v-999e1e60]{max-width:min(88%,calc(100vw - 52px))}.a-msg[data-v-999e1e60]{width:100%;max-width:100%}.a-msg[data-v-999e1e60] .md,.a-msg[data-v-999e1e60] .markdown-renderer,.a-msg[data-v-999e1e60] .code-block-container,.a-msg[data-v-999e1e60] .diff-wrap,.a-msg[data-v-999e1e60] pre{max-width:100%}.a-msg[data-v-999e1e60] .code-block-container pre,.a-msg[data-v-999e1e60] .diff-pre{overflow-x:auto;-webkit-overflow-scrolling:touch}.a-msg[data-v-999e1e60] .media-tool.mob{width:min(44vw,160px)}.cd-label[data-v-999e1e60]{min-width:0;max-width:calc(100% - 48px);overflow:hidden;text-overflow:ellipsis}.u-edit-confirm[data-v-999e1e60]{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 28px)}.ts[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat-empty-text[data-v-999e1e60],.chat-loading-text[data-v-999e1e60]{font-size:var(--ui-font-size-lg)}.cd-label[data-v-999e1e60],.cd-btn[data-v-999e1e60]{font-size:var(--ui-font-size)}}.top-sentinel[data-v-999e1e60]{display:flex;align-items:center;justify-content:center;padding:12px 0;min-height:28px;user-select:none}.top-sentinel-loading[data-v-999e1e60]{opacity:.8}.top-sentinel-btn[data-v-999e1e60]{appearance:none;border:.5px solid var(--border);background:transparent;color:var(--muted);font-size:var(--ui-font-size-sm);padding:4px 12px;border-radius:999px;cursor:pointer;transition:color .15s ease,border-color .15s ease}.top-sentinel-btn[data-v-999e1e60]:hover{color:var(--fg);border-color:var(--fg)}.top-sentinel-text[data-v-999e1e60]{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--ui-font-size-sm)}.chat[data-v-999e1e60]{background:transparent}.chat[data-v-999e1e60]{gap:0;padding:22px 20px 26px}.u-bub[data-v-999e1e60]{background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);padding:10px 12px}.a-msg[data-v-999e1e60]{max-width:100%;width:100%}.chat>.q-stack[data-v-999e1e60]{margin-top:var(--chat-turn-gap)}.chat>.q-stack[data-v-999e1e60]:first-child{margin-top:0}.q-stack[data-v-999e1e60]{align-self:flex-end;width:100%;display:flex;flex-direction:column;gap:8px}.q-head[data-v-999e1e60]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 6px;color:var(--color-text-faint);font-size:var(--ui-font-size-xs)}.q-title[data-v-999e1e60]{display:inline-flex;align-items:center;gap:6px}.q-title b[data-v-999e1e60]{color:var(--color-accent-hover);font-weight:var(--weight-medium)}.q-turn[data-v-999e1e60]{position:relative;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--space-2)}.q-send[data-v-999e1e60]{flex:none;width:var(--space-6);height:var(--space-6);display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-accent);color:var(--color-text-on-accent);box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.q-send[data-v-999e1e60]:hover{background:var(--color-accent-hover)}.q-send[data-v-999e1e60]:active{transform:scale(.92)}.q-send[data-v-999e1e60]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.q-send svg[data-v-999e1e60]{display:block;flex:none}.q-bub[data-v-999e1e60]{display:flex;align-items:center;gap:8px;width:fit-content;background:var(--color-user-bubble-bg);padding:8px 8px 8px 6px;transition:background var(--duration-fast) var(--ease-out)}.q-bub[data-v-999e1e60]:hover{background:var(--hover)}.q-grip[data-v-999e1e60]{flex:none;display:inline-flex;align-items:center;padding:2px;color:var(--color-text-faint);cursor:grab;opacity:.7}.q-grip[data-v-999e1e60]:hover{opacity:1}.q-grip[data-v-999e1e60]:active{cursor:grabbing}.q-clamp[data-v-999e1e60]{flex:1;min-width:0}.q-body[data-v-999e1e60]{flex:1;min-width:0;background:none;border:none;padding:0;margin:0;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;opacity:.82}.q-bub:hover .q-body[data-v-999e1e60]{opacity:1}.q-body[data-v-999e1e60]:disabled{cursor:default}.q-text[data-v-999e1e60]{white-space:pre-wrap;overflow-wrap:anywhere}.q-text-placeholder[data-v-999e1e60]{display:inline-flex;align-items:center;gap:4px;color:var(--color-text-muted)}.q-imgs[data-v-999e1e60]{display:flex;gap:4px;flex:none}.q-img[data-v-999e1e60]{width:28px;height:28px;object-fit:cover;border-radius:var(--radius-sm);border:.5px solid var(--color-line)}.q-file[data-v-999e1e60]{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px;border-radius:var(--radius-sm);border:.5px solid var(--color-line);color:var(--color-text-muted);font-size:calc(var(--ui-font-size) - 3px);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-rm[data-v-999e1e60]{flex:none;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease,color .12s ease}.q-bub:hover .q-rm[data-v-999e1e60],.q-bub:focus-within .q-rm[data-v-999e1e60],.q-rm[data-v-999e1e60]:focus-visible{opacity:1}.q-rm[data-v-999e1e60]:hover{background:var(--color-danger-soft);color:var(--color-danger)}.q-edit[data-v-999e1e60]{display:none;flex:none;width:22px;height:22px;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer}.q-edit[data-v-999e1e60]:hover{background:var(--color-hover);color:var(--color-text)}@media(hover:none){.q-grip[data-v-999e1e60]{display:none}.q-edit[data-v-999e1e60]{display:inline-flex}.q-rm[data-v-999e1e60],.q-edit[data-v-999e1e60]{opacity:1;position:relative}.q-rm[data-v-999e1e60]:before,.q-edit[data-v-999e1e60]:before{content:"";position:absolute;inset:-11px}}.q-turn.q-dragging .q-bub[data-v-999e1e60]{opacity:.45}.q-turn.drop-before[data-v-999e1e60]:before,.q-turn.drop-after[data-v-999e1e60]:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--color-accent);border-radius:var(--radius-full);z-index:1}.q-turn.drop-before[data-v-999e1e60]:before{top:-5px}.q-turn.drop-after[data-v-999e1e60]:after{bottom:-5px}.agent-panel[data-v-1441b1f4]{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--color-bg)}.agent-meta[data-v-1441b1f4]{flex:none;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-3) var(--space-2);user-select:none}.agent-meta[data-v-1441b1f4]:before,.agent-meta[data-v-1441b1f4]:after{content:"";flex:1;height:.5px;background:var(--color-line)}.agent-meta-text[data-v-1441b1f4]{font-size:var(--text-xs);line-height:1;color:var(--color-text-muted);white-space:nowrap;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.agent-prompt[data-v-1441b1f4]{flex:none;display:flex;flex-direction:column;padding:0 var(--space-3) var(--space-2)}.agent-prompt-bubble[data-v-1441b1f4]{display:flex;flex-direction:column;align-self:flex-end;max-width:78%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg)}.agent-prompt-wrap[data-v-1441b1f4]{position:relative;display:flex;flex-direction:column}.agent-prompt-text[data-v-1441b1f4]{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--content-font-size);line-height:var(--leading-normal);color:var(--color-text)}.agent-prompt-text.is-command[data-v-1441b1f4]{font-family:var(--font-mono)}.agent-prompt-wrap.is-clamped>.agent-prompt-text[data-v-1441b1f4]{max-height:6lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 2.5lh),transparent calc(100% - .5lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 2.5lh),transparent calc(100% - .5lh))}.agent-prompt-toggle[data-v-1441b1f4]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-1);padding:var(--space-1) var(--space-3);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.agent-prompt-toggle[data-v-1441b1f4]:hover{box-shadow:var(--shadow-md)}.agent-prompt-toggle[data-v-1441b1f4]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.agent-prompt-wrap.is-clamped .agent-prompt-toggle[data-v-1441b1f4]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.agent-prompt-toggle-car[data-v-1441b1f4]{transition:transform var(--duration-base) var(--ease-out)}.agent-prompt-toggle-car.open[data-v-1441b1f4]{transform:rotate(180deg)}.agent-transcript[data-v-1441b1f4]{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--pfc-host-h, 0px)}.agent-transcript-inner[data-v-1441b1f4]{display:flex;flex-direction:column;min-height:100%;width:100%;max-width:var(--p-content-max);margin-inline:auto}.agent-transcript[data-v-1441b1f4] .think-body,.agent-transcript[data-v-1441b1f4] .ar-body,.agent-transcript[data-v-1441b1f4] .tf-body,.agent-transcript[data-v-1441b1f4] .bb,.agent-transcript[data-v-1441b1f4] .tl-body{transition:none}.agent-error[data-v-1441b1f4]{color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui)}.agent-jump-btn[data-v-1441b1f4]{position:absolute;left:50%;bottom:var(--space-3);transform:translate(-50%);z-index:var(--z-sticky);display:inline-flex;align-items:center;gap:6px;padding:6px var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);line-height:1.5;white-space:nowrap;cursor:pointer;user-select:none}.agent-jump-car[data-v-1441b1f4]{width:12px;height:12px}.agent-jump-btn[data-v-1441b1f4]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.agent-jump-enter-active[data-v-1441b1f4],.agent-jump-leave-active[data-v-1441b1f4]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.agent-jump-enter-from[data-v-1441b1f4],.agent-jump-leave-to[data-v-1441b1f4]{opacity:0;transform:translate(-50%) translateY(8px)}.agent-fallback[data-v-1441b1f4]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}.agent-fallback.prose[data-v-1441b1f4] .op{font-family:var(--font-ui)}.conversation-toc[data-v-9c0a5438]{position:absolute;z-index:var(--z-sticky);top:50%;transform:translateY(-50%);--toc-content-max: min( var(--p-content-max), calc(100cqi - var(--space-5) - var(--space-5)) );left:calc(50% + (var(--toc-content-max) / 2) + 14px);max-height:calc(100% - 160px);display:flex;flex-direction:column;justify-content:center;opacity:.5;transition:opacity var(--duration-base) var(--ease-out)}.conversation-toc[data-v-9c0a5438]:before{content:"";position:absolute;inset:0 -48px 0 -14px;z-index:0}.conversation-toc[data-v-9c0a5438]:hover,.conversation-toc[data-v-9c0a5438]:focus-within{opacity:1}.conversation-toc[data-v-9c0a5438]:hover:not(:focus-within){transition-delay:var(--duration-hover-intent)}.toc-scroll[data-v-9c0a5438]{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;padding:8px 0;min-height:0;overflow-y:auto;scrollbar-width:none}.toc-scroll[data-v-9c0a5438]::-webkit-scrollbar{display:none}.toc-row[data-v-9c0a5438]{display:flex;align-items:center;gap:10px;height:18px;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);text-align:left;cursor:pointer;white-space:nowrap}.toc-row[data-v-9c0a5438]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.toc-bar[data-v-9c0a5438]{flex:none;width:3px;height:14px;border-radius:var(--radius-full);background:var(--color-accent);opacity:.3;transition:opacity var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.toc-label[data-v-9c0a5438]{display:block;max-width:0;overflow:hidden;opacity:0;text-overflow:ellipsis;transition:max-width .22s var(--ease-out),opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.conversation-toc:hover .toc-bar[data-v-9c0a5438],.conversation-toc:focus-within .toc-bar[data-v-9c0a5438]{height:18px;opacity:.5}.conversation-toc:hover .toc-label[data-v-9c0a5438],.conversation-toc:focus-within .toc-label[data-v-9c0a5438]{max-width:220px;opacity:1}.conversation-toc:hover:not(:focus-within) .toc-bar[data-v-9c0a5438]{transition-delay:0ms,var(--duration-hover-intent)}.conversation-toc:hover:not(:focus-within) .toc-label[data-v-9c0a5438]{transition-delay:var(--duration-hover-intent),var(--duration-hover-intent),0ms}.toc-row.active .toc-bar[data-v-9c0a5438]{opacity:1;height:18px}.toc-row.active .toc-label[data-v-9c0a5438]{color:var(--color-accent);font-weight:var(--weight-medium)}.toc-row:hover .toc-bar[data-v-9c0a5438]{opacity:1}.toc-row:hover .toc-label[data-v-9c0a5438]{color:var(--color-text)}.conversation-toc.toc-clipped[data-v-9c0a5438]{visibility:hidden;pointer-events:none}.changes-pane[data-v-2c83d74b]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono)}.dv-path[data-v-2c83d74b],.dv-change-count[data-v-2c83d74b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:var(--ui-font-size-xs);color:var(--muted)}.dv-change-count[data-v-2c83d74b]{flex:1;align-self:stretch;display:inline-flex;align-items:center;font-family:var(--font-ui)}.dv-path[data-v-2c83d74b]{font-family:var(--font-ui)}.ch-head[data-v-2c83d74b]{display:flex;align-items:center;gap:8px;padding:8px var(--space-3);border-bottom:.5px solid var(--line);background:var(--panel);font-size:var(--text-base);color:var(--dim);flex:none;white-space:nowrap;overflow:hidden;font-family:var(--font-ui);user-select:none}.br-heading[data-v-2c83d74b]{display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.br-icon[data-v-2c83d74b]{flex:none;color:var(--muted)}.br-label[data-v-2c83d74b]{color:var(--muted);font-size:var(--text-xs);font-weight:500}.br-name[data-v-2c83d74b]{color:var(--color-text);font-weight:500;font-size:var(--text-xs)}.sync-info[data-v-2c83d74b]{display:flex;align-items:center;gap:4px}.ahead[data-v-2c83d74b]{color:var(--color-accent);font-size:var(--text-xs)}.behind[data-v-2c83d74b]{color:var(--color-warning);font-size:var(--text-xs)}.empty-head[data-v-2c83d74b]{color:var(--muted);font-size:var(--text-base)}.ch-list[data-v-2c83d74b]{flex:1;min-height:0}.ch-list-content[data-v-2c83d74b]{min-height:100%;padding:4px 0;padding-bottom:max(4px,var(--pfc-host-h, 0px))}.ch-row[data-v-2c83d74b]{display:flex;align-items:center;gap:6px;padding:3px 8px;cursor:pointer;font-size:var(--text-xs);line-height:1.6;width:100%;background:none;border:none;text-align:left;font-family:var(--font-ui);color:inherit}.ch-row[data-v-2c83d74b]:hover{background:var(--panel2)}.ch-row[data-v-2c83d74b]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ch-tree[data-v-2c83d74b]{--tree-base-indent: 14px;--tree-indent-step: 12px;font-family:var(--font-ui)}.tree-list[data-v-2c83d74b]{list-style:none;margin:0}.tree-node[data-v-2c83d74b]{overflow:hidden;interpolate-size:allow-keywords}.tree-collapse-enter-active[data-v-2c83d74b],.tree-collapse-leave-active[data-v-2c83d74b]{transition:block-size var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out),transform var(--duration-base) var(--ease-out)}.tree-collapse-enter-from[data-v-2c83d74b],.tree-collapse-leave-to[data-v-2c83d74b]{block-size:0;opacity:0;transform:translateY(-3px)}.tree-collapse-enter-to[data-v-2c83d74b],.tree-collapse-leave-from[data-v-2c83d74b]{block-size:auto;opacity:1;transform:translateY(0)}.tree-row[data-v-2c83d74b]{position:relative;display:flex;align-items:center;gap:6px;width:100%;margin-top:1px;padding:3px 8px;background:none;border:none;text-align:left;font-family:inherit;font-size:var(--text-xs);color:inherit;cursor:pointer}.tree-row[data-v-2c83d74b]:before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--tree-base-indent) + 6px);width:calc(var(--tree-depth, 0) * var(--tree-indent-step));background:repeating-linear-gradient(to right,var(--color-line) 0 1px,transparent 1px var(--tree-indent-step));pointer-events:none}.tree-row[data-v-2c83d74b]:hover{background:var(--panel2)}.tree-row[data-v-2c83d74b]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.tree-folder[data-v-2c83d74b]{color:var(--color-text);font-weight:500}.tree-file[data-v-2c83d74b]{color:var(--color-text);font-weight:450}.tree-icon[data-v-2c83d74b]{flex:none;color:var(--muted)}.tree-name[data-v-2c83d74b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-2c83d74b]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:var(--radius-xs);font-size:max(9px,calc(var(--ui-font-size) - 4px));font-weight:500;flex:none;user-select:none}.badge.modified[data-v-2c83d74b]{background:var(--color-warning-soft);color:var(--color-warning)}.badge.added[data-v-2c83d74b]{background:var(--color-success-soft);color:var(--color-success)}.badge.deleted[data-v-2c83d74b]{background:var(--color-danger-soft);color:var(--color-danger)}.badge.renamed[data-v-2c83d74b]{background:var(--color-done-soft);color:var(--color-done)}.badge.untracked[data-v-2c83d74b]{background:var(--color-success-soft);color:var(--color-success)}.badge.conflicted[data-v-2c83d74b]{background:color-mix(in srgb,var(--color-danger) 10%,var(--bg));color:var(--color-danger);font-size:max(9px,calc(var(--ui-font-size) - 5px))}.badge.ignored[data-v-2c83d74b]{background:var(--color-well);color:var(--faint)}.badge.clean[data-v-2c83d74b]{background:transparent;color:var(--faint)}.badge.unknown[data-v-2c83d74b]{background:var(--color-well);color:var(--muted)}.fpath[data-v-2c83d74b]{color:var(--color-text);font-size:var(--text-xs);font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left;min-width:0}.fpath[data-v-2c83d74b]:before,.fpath[data-v-2c83d74b]:after{content:"‎"}.empty-state[data-v-2c83d74b]{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:32px 20px;color:var(--muted);font-size:var(--ui-font-size);text-align:center;user-select:none}.empty-state-icon[data-v-2c83d74b]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--color-well);color:var(--color-text-muted)}.diff-head[data-v-2c83d74b]{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:.5px solid var(--line);background:var(--panel);flex:none;white-space:nowrap;overflow:hidden}.dv-lines-wrap[data-v-2c83d74b]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.diff-content-enter-active[data-v-2c83d74b],.diff-content-leave-active[data-v-2c83d74b]{transition:opacity var(--duration-base) var(--ease-out)}.diff-content-enter-from[data-v-2c83d74b],.diff-content-leave-to[data-v-2c83d74b]{opacity:0}@media(max-width:640px){.ch-head[data-v-2c83d74b]{padding:10px 14px}.ch-list[data-v-2c83d74b]{padding:2px 0 12px}.ch-row[data-v-2c83d74b]{min-height:44px;padding:8px 14px;gap:12px;font-size:var(--text-xs)}.ch-row[data-v-2c83d74b]:active{background:var(--panel2)}.badge[data-v-2c83d74b]{width:18px;height:18px}.fpath[data-v-2c83d74b]{font-size:var(--text-xs)}.tree-row[data-v-2c83d74b]{min-height:40px;padding:8px 14px}.diff-head[data-v-2c83d74b]{padding:8px 12px;gap:10px}.diff-path[data-v-2c83d74b]{font-size:var(--text-base)}}.changes-pane .empty-state[data-v-2c83d74b],.br-label[data-v-2c83d74b],.empty-head[data-v-2c83d74b]{font-family:var(--sans)}.ch-row[data-v-2c83d74b],.ct-row[data-v-2c83d74b]{margin:1px 6px;width:calc(100% - 12px);border-radius:var(--radius-md)}.changes-pane .badge[data-v-2c83d74b],.changed-tree .badge[data-v-2c83d74b]{border-radius:var(--radius-sm)}.change-count[data-v-2c83d74b]{font-family:var(--sans);border-radius:999px}.qcard[data-v-645038cd]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.qcard>.qh[data-v-645038cd],.qcard>.qfoot[data-v-645038cd]{flex:none}.qcard.minimized[data-v-645038cd]{transition:background var(--duration-fast) var(--ease-out)}.qcard.minimized[data-v-645038cd]:hover{background:var(--color-hover)}.qh[data-v-645038cd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0}.qcard.minimized .qh[data-v-645038cd]{padding-bottom:var(--space-3);align-items:center}.qcard.minimized .qh.clickable[data-v-645038cd]{cursor:pointer}.qh-chip[data-v-645038cd]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qtitle[data-v-645038cd]{flex:1;min-width:0;color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);line-height:var(--leading-tight);overflow-wrap:anywhere}.qcard.minimized .qtitle[data-v-645038cd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmin[data-v-645038cd],.qclose[data-v-645038cd]{flex:none;margin-top:calc((var(--text-lg) * var(--leading-tight) - var(--icon-button-sm)) / 2)}.qmin[data-v-645038cd]{margin-left:auto}.qcard.minimized .qmin[data-v-645038cd],.qcard.minimized .qclose[data-v-645038cd]{margin-top:0}.qbody[data-v-645038cd]{min-height:min(var(--question-card-body-min-h),calc(var(--app-height, 100dvh) * .25));overflow-y:auto;padding:var(--space-3) var(--space-4) 0;color:var(--color-text);font:var(--text-base)/var(--leading-normal) var(--font-ui)}.qmdbody[data-v-645038cd]{margin-bottom:var(--space-2)}.qopts[data-v-645038cd]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-2)}.qopt[data-v-645038cd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text);transition:background var(--duration-fast) var(--ease-out);user-select:none}.qopt[data-v-645038cd]:hover,.qopt.highlighted[data-v-645038cd]{background:var(--color-hover)}.qopt-key[data-v-645038cd]{width:var(--p-chip-num);height:var(--p-chip-num);margin-top:calc((var(--text-base) * var(--leading-normal) - var(--p-chip-num)) / 2);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qopt-key[data-v-645038cd]:empty{background:transparent}.qopt-glyph[data-v-645038cd]{width:16px;height:16px;margin-top:calc((var(--text-base) * var(--leading-normal) - 16px) / 2);flex:none;border:.5px solid var(--color-line-strong);position:relative;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.qopt-glyph.rad[data-v-645038cd]{border-radius:50%}.qopt-glyph.chk[data-v-645038cd]{border-radius:var(--radius-xs)}.qopt.selected .qopt-glyph[data-v-645038cd]{border-color:var(--color-accent)}.qopt.selected .qopt-glyph.rad[data-v-645038cd]:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-645038cd]{background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-645038cd]:after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.qopt-text[data-v-645038cd]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.qopt-label[data-v-645038cd]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.qopt-desc[data-v-645038cd]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.qopt-text-other[data-v-645038cd]{flex:0 1 auto}.other-input[data-v-645038cd]{flex:1;font:var(--text-base) var(--font-ui);border:none;border-bottom:.5px solid var(--color-line);outline:none;padding:2px var(--space-1);color:var(--color-text);background:transparent;min-width:12ch}.other-input[data-v-645038cd]:focus-visible{border-bottom-color:var(--color-accent);box-shadow:0 1px 0 0 var(--color-accent)}.qfoot[data-v-645038cd]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.qbtns[data-v-645038cd]{display:flex;align-items:center;gap:var(--space-1)}.qhint[data-v-645038cd]{margin-left:auto;color:var(--color-text-faint);font:var(--text-xs) var(--font-ui);user-select:none}@media(max-width:640px){.qopt[data-v-645038cd]{min-height:44px;padding:var(--space-3)}.other-input[data-v-645038cd]{flex-basis:100%;min-height:28px}.qfoot[data-v-645038cd]{flex-direction:column;align-items:stretch}.qhint[data-v-645038cd]{display:none}.qbtns[data-v-645038cd]{flex-direction:column;gap:var(--space-2)}.qbtns[data-v-645038cd] .ui-button{width:100%;min-height:46px}}.sc[data-v-9932e21c]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--bg);position:relative}.sc-body[data-v-9932e21c]{flex:1;min-height:0;overflow-y:auto}.sc-empty[data-v-9932e21c]{padding:24px 16px;text-align:center;color:var(--muted);font-size:var(--ui-font-size)}.sc-composer[data-v-9932e21c]{position:absolute;left:0;right:0;bottom:0;z-index:var(--z-sticky);display:flex;align-items:flex-end;gap:6px;padding:8px 10px;border-top:.5px solid var(--color-line);background:var(--color-surface-raised)}.sc-input[data-v-9932e21c]{flex:1;min-width:0;resize:none;border:.5px solid var(--color-line);border-radius:var(--r-sm);padding:7px 9px;background:var(--bg);color:var(--color-text);font:var(--ui-font-size)/1.5 var(--sans);outline:none;max-height:160px}.sc-input[data-v-9932e21c]:focus{border-color:var(--color-accent-bd)}.sc-send[data-v-9932e21c]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:var(--r-sm);background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.sc-send[data-v-9932e21c]:disabled{opacity:.4;cursor:default}.sc-send[data-v-9932e21c]:not(:disabled):hover{background:var(--color-accent-hover)}.sc-loading[data-v-9932e21c]{flex:none;padding:8px 12px 12px}.sc-body[data-v-9932e21c] .sending-placeholder,.sc-body[data-v-9932e21c] .sending-line{display:none}.rows[data-v-5a4a3d46]{margin:0;padding:0}.row[data-v-5a4a3d46]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) 0;font-size:var(--text-base)}.row dt[data-v-5a4a3d46]{width:96px;flex:none;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:var(--text-xs)}.row dd[data-v-5a4a3d46]{margin:0;color:var(--color-text);font-weight:var(--weight-medium);display:flex;align-items:center;gap:var(--space-2);min-width:0}.row dd.plan-on[data-v-5a4a3d46],.row dd.swarm-on[data-v-5a4a3d46]{color:var(--color-accent)}.row dd.thinking-value[data-v-5a4a3d46]{flex-direction:column;align-items:flex-start;gap:var(--space-1)}.cache-note[data-v-5a4a3d46]{color:var(--color-text-faint);font-weight:var(--weight-regular);font-size:var(--text-xs)}.ctx-text[data-v-5a4a3d46]{flex:none}.bar[data-v-5a4a3d46]{width:80px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.bar i[data-v-5a4a3d46]{display:block;height:100%;background:var(--color-accent)}@media(max-width:640px){.rows[data-v-5a4a3d46]{overflow-y:auto;-webkit-overflow-scrolling:touch}.row[data-v-5a4a3d46]{align-items:flex-start;flex-direction:column;gap:var(--space-1);min-height:48px}.row dt[data-v-5a4a3d46]{width:auto}.row dd[data-v-5a4a3d46]{max-width:100%;flex-wrap:wrap}}.tp[data-v-5ecb9355]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--color-bg)}.tp-body[data-v-5ecb9355]{flex:1;min-height:0;overflow-y:auto;margin:0;padding:12px 14px;padding-bottom:max(12px,var(--pfc-host-h, 0px));font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word}.td[data-v-3b2ea55f]{display:flex;flex-direction:column;height:100%;min-height:0}.td-body[data-v-3b2ea55f]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.td-empty[data-v-3b2ea55f]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);height:100%;padding:var(--space-6);color:var(--color-text-muted);font-size:var(--text-sm);text-align:center}.filter-control[data-v-9d5b56c7]{display:inline-flex;min-width:0}.fc-chevron[data-v-9d5b56c7]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.fc-trigger[aria-expanded=true] .fc-chevron[data-v-9d5b56c7]{transform:rotate(180deg)}.fc-menu[data-v-9d5b56c7]{position:fixed;z-index:var(--z-dropdown)}.fc-menu[data-v-9d5b56c7] .ui-menu{min-width:0}.fc-label[data-v-9d5b56c7]{flex:1;white-space:nowrap}.filter-control[data-v-9d5b56c7] .ui-seg__item[data-icon=circle-check] .ui-seg__icon,.fc-menu .kw-icon[data-icon=circle-check][data-v-9d5b56c7]{transform:scale(.91)}.fc-check[data-v-9d5b56c7]{color:var(--color-accent)}.goal-panel[data-v-6dea2f18]{display:flex;flex-direction:column;gap:var(--space-2);overflow-wrap:anywhere}.goal-criterion[data-v-6dea2f18]{padding-top:var(--space-2);border-top:.5px solid var(--color-line)}.goal-criterion-label[data-v-6dea2f18]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-section-label);line-height:var(--leading-normal);margin-bottom:var(--space-1)}.plan-panel[data-v-69db97fc]{display:flex;flex-direction:column;gap:var(--space-2)}.plan-review-row[data-v-69db97fc]{display:flex;gap:var(--space-2);font-size:var(--text-sm)}.plan-review-label[data-v-69db97fc]{flex:none;color:var(--color-text-muted)}.plan-review-feedback[data-v-69db97fc]{color:var(--color-text-muted)}.plan-path-only[data-v-69db97fc]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1)}.plan-path-hint[data-v-69db97fc]{color:var(--color-text-muted);font-size:var(--text-sm)}.plan-path[data-v-69db97fc]{max-width:100%;font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-empty[data-v-69db97fc]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.plan-empty-ico[data-v-69db97fc]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}.sg-empty[data-v-13735c1e]{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sg-grid[data-v-13735c1e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--p-subagent-card-min),1fr));gap:var(--space-2)}.sg-card[data-v-13735c1e]{position:relative;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected)}.sg-card.openable[data-v-13735c1e]{cursor:pointer}.sg-card.openable[data-v-13735c1e]:hover{background:var(--color-selected-hover)}.sg-card[data-v-13735c1e]:not(.openable){cursor:not-allowed}.sg-open[data-v-13735c1e]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.sg-open[data-v-13735c1e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sg-top[data-v-13735c1e]{display:flex;align-items:center;gap:var(--space-2)}.sg-name[data-v-13735c1e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.sg-num[data-v-13735c1e]{flex:none;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums}.sg-card:has(.sg-cancel) .sg-top[data-v-13735c1e]{padding-right:calc(var(--icon-button-sm) + var(--space-1))}@media(hover:none){.sg-card:has(.sg-cancel) .sg-top[data-v-13735c1e]{padding-right:calc(var(--touch-target-min) + var(--space-1))}}.sg-desc[data-v-13735c1e]{color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--leading-caption);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sg-foot[data-v-13735c1e]{display:flex;flex-direction:column;gap:var(--space-1)}.sg-model[data-v-13735c1e]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs)}.sg-model span[data-v-13735c1e]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-status[data-v-13735c1e]{display:flex;align-items:center}.sg-state[data-v-13735c1e]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);text-autospace:normal}.sg-ic-done[data-v-13735c1e]{color:var(--color-success);transform:scale(.91)}.s-fail .sg-state[data-v-13735c1e]{color:var(--color-danger)}.sg-time[data-v-13735c1e]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-autospace:normal}.sg-cancel[data-v-13735c1e]{position:absolute;top:var(--space-2);right:var(--space-2);color:var(--color-text-muted);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sg-card:hover .sg-cancel[data-v-13735c1e],.sg-cancel[data-v-13735c1e]:focus-visible{opacity:1}.sg-cancel[data-v-13735c1e]:hover{color:var(--color-danger)}@media(hover:none){.sg-cancel[data-v-13735c1e]{top:0;right:0;width:var(--touch-target-min);height:var(--touch-target-min);opacity:1}}.taskspane[data-v-25d6e0cb]{flex:1;min-height:0;display:flex;flex-direction:column}.tp-list[data-v-25d6e0cb]{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-05)}.tp-row[data-v-25d6e0cb]{padding:var(--space-1) 0}.tp-row.fail .tp-name[data-v-25d6e0cb]{color:var(--color-danger)}.tp-main[data-v-25d6e0cb]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-base)}.tp-row.expandable>.tp-main[data-v-25d6e0cb]{position:relative;border-radius:var(--radius-lg);padding:var(--space-1) var(--space-2);margin:calc(-1 * var(--space-1)) 0}.tp-row.expandable>.tp-main[data-v-25d6e0cb]:hover{background:var(--color-hover)}.tp-row[data-v-25d6e0cb]:not(.expandable){cursor:not-allowed}.tp-open[data-v-25d6e0cb]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.tp-open[data-v-25d6e0cb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tp-chevron[data-v-25d6e0cb]{flex:none;color:var(--muted)}.tp-name[data-v-25d6e0cb]{color:var(--color-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-meta[data-v-25d6e0cb]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted)}.tp-glyph[data-v-25d6e0cb]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center}.tp-done[data-v-25d6e0cb]{color:var(--color-success);transform:scale(.91)}.tp-cancelled[data-v-25d6e0cb]{color:var(--color-text-muted)}.tp-fail[data-v-25d6e0cb]{color:var(--color-danger)}.tp-time[data-v-25d6e0cb]{flex:none;font-size:var(--text-base);color:var(--muted);font-variant-numeric:tabular-nums;text-autospace:normal}.tp-model[data-v-25d6e0cb]{flex:0 1 auto;min-width:0;font-size:var(--text-base);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-stop[data-v-25d6e0cb]{position:relative;flex:none;color:var(--color-danger)}.tp-stop[data-v-25d6e0cb]:hover{color:var(--color-danger)}@media(hover:none){.tp-stop[data-v-25d6e0cb]{width:var(--touch-target-min);height:var(--touch-target-min)}.tp-row.expandable>.tp-main[data-v-25d6e0cb]{min-height:var(--touch-target-min)}}.tp-empty[data-v-25d6e0cb]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:var(--ui-font-size-sm);user-select:none}@media(max-width:640px){.tp-main[data-v-25d6e0cb]{flex-wrap:wrap;row-gap:var(--space-1)}.tp-name[data-v-25d6e0cb]{font-size:var(--ui-font-size-sm)}.tp-meta[data-v-25d6e0cb]{order:10;flex:1 1 100%;padding-left:calc(var(--p-ic-md) + var(--space-2));font-size:var(--ui-font-size-xs)}}.todo-card[data-v-1b02ea7b]{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-base)}.tc-row[data-v-1b02ea7b]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text)}.tc-name[data-v-1b02ea7b]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:var(--leading-caption)}.tc-row.s-in_progress .tc-name[data-v-1b02ea7b]{font-weight:var(--weight-medium)}.tc-row.s-pending .tc-name[data-v-1b02ea7b]{color:var(--color-text-muted)}.tc-glyph[data-v-1b02ea7b]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full)}.tc-glyph.g-done[data-v-1b02ea7b]{color:var(--color-success)}.tc-glyph.g-pending[data-v-1b02ea7b]{border:var(--p-ring-stroke) solid var(--color-line-strong)}.tc-glyph .tc-spin[data-v-1b02ea7b]{color:var(--color-text)}.tc-empty[data-v-1b02ea7b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.tc-empty-ico[data-v-1b02ea7b]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}@media(max-width:640px){.todo-card[data-v-1b02ea7b]{font-size:var(--text-lg)}.tc-row[data-v-1b02ea7b]{padding:var(--space-2) var(--space-3)}}.wp-head-tab[data-v-c935b92a]{display:inline-flex;align-items:center;gap:var(--space-2);padding:0;border:.5px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap;flex:none}.wp-head-tab[data-v-c935b92a] svg{width:1.5em;height:1.5em}.wp-head-meta[data-v-c935b92a]{color:var(--color-text-muted);text-autospace:normal}.wp-head-actions[data-v-c935b92a]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}@media(max-width:480px){.wp-head-actions[data-v-c935b92a]{flex-basis:100%;margin-left:0}}@media(hover:none){.wp-head-actions[data-v-c935b92a] .ui-seg__item{min-height:var(--touch-target-min)}}@media(max-width:640px),(hover:none){.wp-head-actions[data-v-c935b92a] .ui-seg__item{height:var(--touch-target-min)}.wp-head-actions[data-v-c935b92a] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}.wp-head-actions[data-v-c935b92a] .fc-trigger{min-height:var(--touch-target-min)}}.aw[data-v-e24668bd]{padding-top:4px}.crumbbar[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.crumbs[data-v-e24668bd]{display:flex;align-items:center;flex-wrap:wrap;gap:1px;min-width:0;font-size:var(--text-sm)}.crumb-sep[data-v-e24668bd]{color:var(--color-text-muted)}.crumb[data-v-e24668bd]{background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:1px var(--space-1);border-radius:var(--radius-xs)}.crumb[data-v-e24668bd]:hover{color:var(--color-text);background:var(--color-hover)}.crumb.last[data-v-e24668bd]{color:var(--color-text);font-weight:var(--weight-medium)}.filterbar[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.filter-icon[data-v-e24668bd]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.filter-input[data-v-e24668bd]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-base);padding:var(--space-1) 0;border:none;background:none;color:var(--color-text);outline:none}.filter-input[data-v-e24668bd]::placeholder{color:var(--color-text-muted)}.search-rel[data-v-e24668bd]{color:var(--color-text)}.folder-list[data-v-e24668bd]{height:300px;overflow-y:auto;padding:var(--space-1) var(--space-2)}.fl-loading[data-v-e24668bd],.fl-empty[data-v-e24668bd]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-muted);font-size:var(--text-sm)}.folder-row[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);color:var(--color-text);text-align:left;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);transition:background var(--duration-fast) var(--ease-out)}.folder-row[data-v-e24668bd]:hover{background:var(--color-hover)}.dir-icon[data-v-e24668bd]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.folder-name[data-v-e24668bd]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text)}.paste-section[data-v-e24668bd]{padding:var(--space-3) 22px;border-top:.5px solid var(--color-line)}.paste-section.paste-only[data-v-e24668bd]{border-top:none}.paste-row[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2)}.paste-input-wrap[data-v-e24668bd]{flex:1;min-width:0}.add-error[data-v-e24668bd]{margin:0 22px var(--space-2);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-danger);background:var(--color-danger-soft);border:.5px solid var(--color-danger-bd);border-radius:var(--radius-sm)}.actions[data-v-e24668bd]{display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) 22px}.footer-hint[data-v-e24668bd]{padding:var(--space-2) var(--space-4);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint);border-top:.5px solid var(--color-line)}@media(max-width:640px){.folder-row[data-v-e24668bd]{min-height:44px}.crumbbar[data-v-e24668bd]{align-items:flex-start}.actions[data-v-e24668bd]{flex-wrap:wrap}}.sheet-root[data-v-91fc927c]{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;flex-direction:column;justify-content:flex-end}.sheet-scrim[data-v-91fc927c]{position:absolute;inset:0;background:#0d111773}.sheet-panel[data-v-91fc927c]{position:relative;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-bottom:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:var(--shadow-xl);max-height:calc(var(--app-height, 100dvh) * .86);display:flex;flex-direction:column;min-height:0;font-family:var(--font-ui);color:var(--color-text)}.sheet-grab[data-v-91fc927c]{flex:none;align-self:center;width:56px;height:18px;padding:0;border:none;background:none;cursor:pointer;position:relative;margin-top:4px}.sheet-grab[data-v-91fc927c]:after{content:"";position:absolute;left:50%;top:7px;transform:translate(-50%);width:38px;height:5px;border-radius:var(--radius-full);background:var(--color-line)}.sheet-head[data-v-91fc927c]{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px}.sheet-title[data-v-91fc927c]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.sheet-body[data-v-91fc927c]{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,var(--safe-bottom))}.sheet-enter-active[data-v-91fc927c],.sheet-leave-active[data-v-91fc927c]{transition:opacity var(--duration-slow) var(--ease-out)}.sheet-enter-active .sheet-panel[data-v-91fc927c],.sheet-leave-active .sheet-panel[data-v-91fc927c]{transition:transform var(--duration-slow) var(--ease-out)}.sheet-enter-from[data-v-91fc927c],.sheet-leave-to[data-v-91fc927c]{opacity:0}.sheet-enter-from .sheet-panel[data-v-91fc927c],.sheet-leave-to .sheet-panel[data-v-91fc927c]{transform:translateY(102%)}.confirm-dialog__message[data-v-32237722]{margin:0;font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.sd-search[data-v-35cdd013]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.sd-search[data-v-35cdd013] .ui-input{padding-right:30px}.search-clear[data-v-35cdd013]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-35cdd013]{visibility:visible;opacity:1}.search-clear[data-v-35cdd013]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-35cdd013]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}@media(prefers-reduced-motion:reduce){.search-clear[data-v-35cdd013]{transition:none}}.sd-body[data-v-35cdd013]{height:100%;min-height:0;display:flex;flex-direction:column;gap:var(--space-2);padding-top:4px}.sd-list[data-v-35cdd013]{flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2);--sd-gutter: var(--p-ic-md);--sd-gap: var(--space-2)}.sd-section[data-v-35cdd013]{display:flex;align-items:baseline;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.sd-section-count[data-v-35cdd013]{font-weight:var(--weight-regular)}.sd-section[data-v-35cdd013]:first-child{padding-top:var(--space-1)}.sd-section[data-v-35cdd013]:not(:first-child){margin-top:var(--space-1);border-top:var(--p-hairline) solid var(--color-line)}.sd-row[data-v-35cdd013]{display:flex;flex-direction:column;gap:2px;width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:none;cursor:pointer;text-align:left;font-family:var(--font-ui);color:var(--color-text)}.sd-row[data-v-35cdd013]:hover{background:var(--color-hover)}.sd-row.on[data-v-35cdd013]{background:var(--color-selected)}.sd-row.active .sd-title[data-v-35cdd013]{color:var(--color-accent-hover)}.sd-row-ws[data-v-35cdd013]{flex-direction:row;align-items:center;gap:var(--sd-gap)}.sd-folder[data-v-35cdd013]{flex:none;width:var(--sd-gutter);color:var(--color-text-muted)}.sd-ws-name[data-v-35cdd013]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-ws-path[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line1[data-v-35cdd013],.sd-line2[data-v-35cdd013]{padding-left:calc(var(--sd-gutter) + var(--sd-gap))}.sd-line1[data-v-35cdd013]{display:flex;align-items:baseline;gap:var(--space-2);min-width:0}.sd-title[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-time[data-v-35cdd013]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line2[data-v-35cdd013]{display:flex;align-items:center;gap:var(--space-1);min-width:0;font-size:var(--text-xs);color:var(--color-text-muted)}.sd-meta-ws[data-v-35cdd013]{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-meta-sep[data-v-35cdd013]{color:var(--color-text-faint)}.sd-meta-snippet[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-title[data-v-35cdd013] mark,.sd-ws-name[data-v-35cdd013] mark{background:var(--color-accent-soft);color:inherit;font-weight:var(--weight-semibold);border-radius:var(--radius-xs);padding:0 1px}.sd-line2[data-v-35cdd013] mark,.sd-ws-path[data-v-35cdd013] mark{background:var(--color-accent-soft);color:var(--color-text);font-weight:var(--weight-medium);border-radius:var(--radius-xs);padding:0 1px}.sd-empty[data-v-35cdd013]{height:100%;display:flex;align-items:center;justify-content:center}.sd-foot[data-v-35cdd013]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-hint[data-v-35cdd013]{display:inline-flex;align-items:center;gap:var(--space-1)}.sd-dot[data-v-35cdd013]{margin:0 var(--space-1)}.topbar[data-v-78cbb21c]{display:flex;align-items:center;height:calc(50px + var(--safe-top));flex:none;padding:var(--safe-top) max(12px,var(--safe-right)) 0 max(12px,var(--safe-left));border-bottom:.5px solid var(--color-line);background:var(--color-topbar-bg-frost);-webkit-backdrop-filter:var(--p-topbar-backdrop);backdrop-filter:var(--p-topbar-backdrop);font-family:var(--font-ui);-webkit-user-select:none;user-select:none}.tb-main[data-v-78cbb21c]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;margin-right:4px;padding:0 6px 0 0;background:none;border:none;border-radius:var(--radius-md);font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--duration-fast) var(--ease-out)}.tb-main[data-v-78cbb21c]:active{opacity:.55}.st[data-v-78cbb21c]{flex:none;display:inline-flex;align-items:center}.tb-line[data-v-78cbb21c]{flex:1;min-width:0;display:flex;align-items:baseline;gap:4px;font-size:max(16px,var(--ui-font-size-xl));line-height:1.25;white-space:nowrap}.tb-line .dir[data-v-78cbb21c]{flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tb-line .dir.solo[data-v-78cbb21c]{max-width:none;min-width:0;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .sl[data-v-78cbb21c]{flex:none;color:var(--color-text-faint)}.tb-line .tt[data-v-78cbb21c]{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .cv[data-v-78cbb21c]{flex:none;align-self:center;color:var(--color-text-faint)}.unread-dot[data-v-78cbb21c]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.pf-form[data-v-5ad95550]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.pf-guard[data-v-5ad95550] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.pf-guard .msg[data-v-5ad95550]{flex:1}.pf-field[data-v-5ad95550]{display:flex;flex-direction:column;gap:6px}.pf-key-wrap[data-v-5ad95550]{position:relative}.pf-key-wrap[data-v-5ad95550] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.pf-key-eye[data-v-5ad95550]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.pf-field-label[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-5ad95550]{color:var(--color-danger)}.pf-models[data-v-5ad95550]{display:flex;flex-direction:column;gap:var(--space-2)}.pf-model-grid[data-v-5ad95550]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto;gap:var(--space-2);align-items:center}.pf-model-head span[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.pf-models-empty[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.pf-foot[data-v-5ad95550]{display:flex;align-items:center;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.pf-foot .spacer[data-v-5ad95550]{flex:1}.pf-confirm-msg[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-danger)}.pf-managed-note[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}@media(max-width:640px){.pf-model-grid[data-v-5ad95550]{grid-template-columns:minmax(0,1fr) auto}}.af[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.af-guard[data-v-96ec6ac0] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.af-guard .msg[data-v-96ec6ac0]{flex:1}.af-catalog[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-3)}.af-center[data-v-96ec6ac0]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.af-error[data-v-96ec6ac0]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}.af-list[data-v-96ec6ac0]{display:flex;flex-direction:column;max-height:320px;overflow-y:auto;border:.5px solid var(--color-line);border-radius:var(--radius-md)}.af-list[data-v-96ec6ac0]>*+*{border-top:.5px solid var(--color-line)}.af-entry[data-v-96ec6ac0]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:var(--space-1) var(--space-3);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.af-entry[data-v-96ec6ac0]:hover:not(:disabled){background:var(--color-hover)}.af-entry[data-v-96ec6ac0]:disabled{cursor:not-allowed;opacity:.55}.af-entry-name[data-v-96ec6ac0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-medium)}.af-entry .grow[data-v-96ec6ac0]{flex:1;min-width:0}.af-entry-count[data-v-96ec6ac0],.af-entry-reason[data-v-96ec6ac0]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.af-empty[data-v-96ec6ac0]{padding:var(--space-4);text-align:center;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm)}.af-import[data-v-96ec6ac0],.af-registry[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-4)}.af-hint[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-back[data-v-96ec6ac0]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:flex-start;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);cursor:pointer;transition:color var(--duration-fast) var(--ease-out)}.af-back[data-v-96ec6ac0]:hover{color:var(--color-text)}.af-field[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:6px}.af-label[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-96ec6ac0]{color:var(--color-danger)}.af-key-wrap[data-v-96ec6ac0]{position:relative}.af-key-wrap[data-v-96ec6ac0] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.af-key-eye[data-v-96ec6ac0]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.af-note[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-foot[data-v-96ec6ac0]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.af-manual[data-v-96ec6ac0] .pf-form{padding:0;border-top:none}.mp[data-v-49f293b0]{display:flex;flex-direction:column;gap:var(--space-2);height:100%;min-height:0;padding-top:4px}.mp--sheet[data-v-49f293b0]{height:auto;padding-top:0}.mp--sheet .search-wrap[data-v-49f293b0],.mp--sheet .chip-strip[data-v-49f293b0]{margin:0 16px}.search-wrap[data-v-49f293b0]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.search-wrap[data-v-49f293b0] .ui-input{padding-right:30px}.search-clear[data-v-49f293b0]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-49f293b0]{visibility:visible;opacity:1}.search-clear[data-v-49f293b0]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-49f293b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chip-strip[data-v-49f293b0]{display:flex;gap:var(--space-1);margin:0 22px;overflow-x:auto;scrollbar-width:none}.chip-strip[data-v-49f293b0]::-webkit-scrollbar{display:none}.chip[data-v-49f293b0]{flex:none;height:28px;padding:0 var(--space-3);border:none;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base);white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.chip[data-v-49f293b0]:hover{background:var(--color-hover);color:var(--color-text)}.chip.is-active[data-v-49f293b0]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.chip[data-v-49f293b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-list[data-v-49f293b0]{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2)}.model-row[data-v-49f293b0]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;color:var(--color-text);min-width:0;transition:background var(--duration-fast) var(--ease-out)}.model-row[data-v-49f293b0]:hover,.model-row.is-selected[data-v-49f293b0]{background:var(--color-hover)}.model-row.is-current[data-v-49f293b0]{background:var(--color-selected)}.model-main[data-v-49f293b0]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-name[data-v-49f293b0]{font-family:var(--font-ui);font-size:var(--text-base);line-height:20px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row.is-current .model-name[data-v-49f293b0]{font-weight:var(--weight-medium)}.model-meta[data-v-49f293b0]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:18px;color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-side[data-v-49f293b0]{display:flex;align-items:center;gap:var(--space-1);flex:none}.model-check[data-v-49f293b0]{color:var(--color-text)}.model-star[data-v-49f293b0]{color:var(--color-text-faint);visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast)}.model-row:hover .model-star[data-v-49f293b0],.model-row.is-selected .model-star[data-v-49f293b0],.model-star.is-starred[data-v-49f293b0],.model-star[data-v-49f293b0]:focus-visible{visibility:visible;opacity:1}.model-star.is-starred[data-v-49f293b0]{color:var(--star)}@media(hover:none){.model-star[data-v-49f293b0]{visibility:visible;opacity:1}}.state-row[data-v-49f293b0]{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.state-row.unavail[data-v-49f293b0]{color:var(--color-warning)}.empty[data-v-49f293b0]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.footer-hint[data-v-49f293b0]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.hint-dot[data-v-49f293b0]{margin:0 var(--space-1)}@media(hover:none){.footer-hint[data-v-49f293b0]{display:none}}@media(prefers-reduced-motion:reduce){.chip[data-v-49f293b0],.model-row[data-v-49f293b0],.model-star[data-v-49f293b0],.search-clear[data-v-49f293b0]{transition:none}}.sec[data-v-3cd02b1c]{margin-bottom:var(--space-5)}.sec-title[data-v-3cd02b1c]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-3cd02b1c]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-3cd02b1c]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4)}.pu-main[data-v-3cd02b1c]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-3cd02b1c]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-3cd02b1c]{font-size:var(--text-xs);color:var(--color-text-faint)}.pp[data-v-f7054f75]{display:flex;flex-direction:column}.pp-head[data-v-f7054f75]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.pp-title[data-v-f7054f75]{margin:0;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.pp-loading[data-v-f7054f75]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.pp-group[data-v-f7054f75]{overflow:hidden;border:.5px solid var(--color-line);border-radius:var(--radius-xl);background:var(--color-surface-raised)}.pp-group[data-v-f7054f75]>*+*{border-top:.5px solid var(--color-line)}.pp-row[data-v-f7054f75]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:40px;padding:var(--space-2) var(--space-4);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.pp-row[data-v-f7054f75]:hover{background:var(--color-hover)}.pp-item.open>.pp-row[data-v-f7054f75]{background:var(--color-surface-sunken)}.pp-row .grow[data-v-f7054f75]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-2)}.pp-id[data-v-f7054f75]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-count[data-v-f7054f75]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.pp-chev[data-v-f7054f75]{display:inline-flex;flex:none;color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.pp-item.open .pp-chev[data-v-f7054f75]{transform:rotate(90deg)}.pp-add-row[data-v-f7054f75]{gap:var(--space-2);color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.pp-acc[data-v-f7054f75]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.pp-item.open>.pp-acc[data-v-f7054f75]{grid-template-rows:1fr}.pp-acc-in[data-v-f7054f75]{overflow:hidden;min-height:0}.pp-item.open .pp-acc-in[data-v-f7054f75]{overflow:visible}.pp-item.flash>.pp-row[data-v-f7054f75]{animation:pp-flash-f7054f75 1.2s var(--ease-out)}@keyframes pp-flash-f7054f75{0%{background:var(--color-accent-soft)}to{background:transparent}}.pp-empty[data-v-f7054f75]{padding:var(--space-5) var(--space-4);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);text-align:center}.sm-picker[data-v-ae75986f]{position:relative;width:100%;font-family:var(--font-ui)}.sm-picker__trigger[data-v-ae75986f]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:38px;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.sm-picker__trigger[data-v-ae75986f]:focus-visible,.sm-picker.is-open .sm-picker__trigger[data-v-ae75986f]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.sm-picker__value[data-v-ae75986f]{min-width:0;flex:1;display:flex;align-items:center;overflow:hidden;white-space:nowrap}.sm-picker__value-text[data-v-ae75986f]{min-width:0;overflow:hidden;text-overflow:ellipsis}.sm-picker__value.is-placeholder[data-v-ae75986f]{color:var(--color-text-faint)}.sm-picker__chevron[data-v-ae75986f]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.sm-picker.is-open .sm-picker__chevron[data-v-ae75986f]{transform:rotate(180deg)}.sm-picker__menu[data-v-ae75986f]{position:fixed;z-index:var(--z-modal-dropdown);width:252px;max-width:calc(100vw - 64px);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__models[data-v-ae75986f]{max-height:280px;overflow-y:auto;padding:var(--space-1);border-radius:var(--radius-md)}.sm-picker__flyout[data-v-ae75986f]{position:absolute;width:180px;max-height:280px;overflow-y:auto;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__flyout--right[data-v-ae75986f]{left:calc(100% + var(--space-1))}.sm-picker__flyout--left[data-v-ae75986f]{right:calc(100% + var(--space-1))}.sm-picker__group[data-v-ae75986f]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.sm-picker__option[data-v-ae75986f]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.sm-picker__option.is-active[data-v-ae75986f]{background:var(--color-hover);color:var(--color-text-strong)}.sm-picker__option.is-muted[data-v-ae75986f]{color:var(--color-text-muted)}.sm-picker__option-label[data-v-ae75986f]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-picker__check[data-v-ae75986f]{flex:none;color:transparent}.sm-picker__option.is-selected .sm-picker__check[data-v-ae75986f]{color:var(--color-accent)}.sm-picker__flyout-caret[data-v-ae75986f]{flex:none;margin-left:auto;color:var(--color-text-faint)}.rc-dev[data-v-cfe04ecf]{--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gap: var(--space-2);--sb-hover: var(--color-hover);position:relative;padding:0 var(--sb-inset) var(--space-1)}.rc-dev--mobile[data-v-cfe04ecf]{padding:var(--space-1) var(--sb-inset) var(--space-2)}.rc-dev--mobile .rc-dev-trigger[data-v-cfe04ecf]{min-height:44px}.rc-dev-trigger[data-v-cfe04ecf]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:6px calc(var(--sb-pad-x) - var(--sb-inset));border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.rc-dev-trigger[data-v-cfe04ecf]:hover,.rc-dev-trigger[aria-expanded=true][data-v-cfe04ecf]{background:var(--sb-hover)}.rc-dev-trigger[data-v-cfe04ecf]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.rc-dev-trigger svg[data-v-cfe04ecf]{flex:none}.rc-dev-name[data-v-cfe04ecf]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-chevron[data-v-cfe04ecf]{margin-left:auto;color:var(--color-text-faint)}.rc-dev-menu[data-v-cfe04ecf]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.rc-dev-menu--mobile[data-v-cfe04ecf]{position:absolute;top:100%;left:var(--sb-inset);right:var(--sb-inset);bottom:auto;max-height:min(50vh,320px);transform-origin:top center}.rc-dev-menu--mobile .rc-dev-offline[data-v-cfe04ecf]{min-height:44px;padding:12px 14px}.menu-pop-enter-active[data-v-cfe04ecf]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-cfe04ecf]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-cfe04ecf],.menu-pop-leave-to[data-v-cfe04ecf]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.rc-dev-state[data-v-cfe04ecf]{display:flex;align-items:center;justify-content:center;padding:var(--space-3)}.rc-dev-failed[data-v-cfe04ecf]{color:var(--color-text-muted);font-size:var(--text-sm)}.rc-dev-caption[data-v-cfe04ecf]{padding:var(--space-2) var(--menu-item-padding-inline) 2px;color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.rc-dev-item-name[data-v-cfe04ecf]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-item-status[data-v-cfe04ecf]{display:flex;align-items:center;gap:6px;flex:none;color:var(--color-text-muted)}.rc-dev-item-check[data-v-cfe04ecf]{display:flex;align-items:center;justify-content:center;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.rc-dev-offline[data-v-cfe04ecf]{padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border-radius:var(--radius-menu-item);color:var(--color-text-muted);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight)}.rc-dev-offline.is-current[data-v-cfe04ecf]{background:var(--color-hover);color:var(--color-text)}.rc-dev-offline-row[data-v-cfe04ecf]{display:flex;align-items:center;gap:7px}.rc-dev-offline-row svg[data-v-cfe04ecf]{display:block;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.user-menu-trigger[data-v-b8060ccc]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.user-menu-trigger[data-v-b8060ccc]:hover,.user-menu-trigger[aria-expanded=true][data-v-b8060ccc]{background:var(--sb-hover)}.user-menu-trigger[data-v-b8060ccc]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}html.macos-desktop .user-menu-trigger[data-v-b8060ccc]{border-bottom-left-radius:var(--radius-window-chip)}.user-menu-trigger svg[data-v-b8060ccc]{flex:none}.user-menu-avatar[data-v-b8060ccc]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:var(--radius-full);background:var(--color-surface-sunken);color:var(--color-text-muted);overflow:hidden}.user-menu-avatar img[data-v-b8060ccc]{width:100%;height:100%;object-fit:cover}.user-menu-name[data-v-b8060ccc]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu[data-v-b8060ccc]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.user-submenu[data-v-b8060ccc]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);width:max-content;max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.menu-pop-enter-active[data-v-b8060ccc]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-b8060ccc]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-b8060ccc],.menu-pop-leave-to[data-v-b8060ccc]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.user-menu-usage[data-v-b8060ccc]{display:flex;flex-direction:column;gap:calc(var(--menu-item-padding-block) * 2);padding:var(--menu-item-padding-block) var(--menu-item-padding-inline)}.user-menu-usage-state[data-v-b8060ccc]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-1) 0;color:var(--color-text-muted);font-size:var(--text-sm)}.user-menu-usage-error[data-v-b8060ccc]{flex:1;min-width:0}.user-menu-usage-empty[data-v-b8060ccc]{color:var(--color-text-faint)}.user-menu-usage-row[data-v-b8060ccc]{display:grid;grid-template-columns:auto 1fr;column-gap:var(--space-3);row-gap:var(--space-05)}.user-menu-usage-label[data-v-b8060ccc]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:var(--leading-tight);color:var(--color-text)}.user-menu-usage-hint[data-v-b8060ccc]{grid-column:1 / -1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.user-menu-usage-value[data-v-b8060ccc]{justify-self:end;font-size:var(--text-sm);line-height:var(--leading-tight);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.user-menu-usage-value.sev-warn[data-v-b8060ccc]{color:var(--color-warning)}.user-menu-usage-value.sev-danger[data-v-b8060ccc]{color:var(--color-danger)}.user-menu-item-label[data-v-b8060ccc]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-login-label[data-v-b8060ccc]{color:var(--color-accent)}.user-menu-row-value[data-v-b8060ccc]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);color:var(--color-text-faint)}.side[data-v-a5d7cf12]{background:var(--color-sidebar-bg);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;min-width:0;height:100%;transition:width .28s cubic-bezier(.4,0,.2,1),visibility .28s;--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gutter: 16px;--sb-gap: var(--space-2);--sb-action-inset: calc((max(var(--ui-font-size-sm) * var(--leading-tight), var(--p-ic-md)) + 2 * var(--space-2) - var(--icon-button-sm)) / 2);--sb-hover: var(--color-hover);--sb-selected: color-mix(in srgb, var(--color-selected) 75%, transparent)}.side.no-anim[data-v-a5d7cf12]{transition:none}.side.collapsed[data-v-a5d7cf12]{visibility:hidden}.col[data-v-a5d7cf12]{flex:none;min-width:0;display:flex;flex-direction:column;min-height:0;width:100%;box-sizing:border-box;border-right:.5px solid var(--line);container-type:inline-size;container-name:sidebar-col;position:relative}.ch[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--space-3);min-height:calc(26px + 2 * var(--space-3));width:100%;box-sizing:border-box}.side.macos-desktop .ch[data-v-a5d7cf12]{padding-left:80px;-webkit-app-region:drag}.side.macos-desktop .ch-brand[data-v-a5d7cf12]{display:none}.ch-logo[data-v-a5d7cf12]{height:22px;width:32px;flex:none;display:block;cursor:pointer;user-select:none;touch-action:none;transition:transform .18s ease}.ch-logo[data-v-a5d7cf12]:hover{transform:scale(1.08)}.ch-brand[data-v-a5d7cf12]{display:flex;align-items:center;gap:8px;min-width:0;flex:1;user-select:none;touch-action:none}.ch-tail[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--space-2);flex:none;min-width:0;margin-left:auto}.ch-name[data-v-a5d7cf12]{font-size:var(--ui-font-size);font-weight:500;line-height:22px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container sidebar-col (max-width: 250px){.ch-name[data-v-a5d7cf12]{display:none}}.sidebar-actions[data-v-a5d7cf12]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--space-2);padding:0 var(--sb-inset) var(--space-1);position:relative;z-index:1;background:var(--color-sidebar-bg)}.sessions-head[data-v-a5d7cf12]{position:relative;z-index:1;padding:var(--space-3) var(--sb-inset) 0;border-bottom:.5px solid transparent;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.sessions-head[data-v-a5d7cf12]:after,.side-footer[data-v-a5d7cf12]:before{content:"";position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sessions-head[data-v-a5d7cf12]:after{top:100%;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.sessions-head--scrolled[data-v-a5d7cf12]{border-bottom-color:var(--line)}.sessions-head--scrolled[data-v-a5d7cf12]:after{opacity:1}.btn-new-chat[data-v-a5d7cf12]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.sidebar-actions--has-workspace-action .btn-new-chat[data-v-a5d7cf12]{grid-column:1}.btn-new-chat[data-v-a5d7cf12]:hover{background:var(--sb-hover)}.btn-new-chat[data-v-a5d7cf12]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.btn-new-chat svg[data-v-a5d7cf12]{flex:none}.btn-new-chat span[data-v-a5d7cf12]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-new-chat[data-v-a5d7cf12] .ui-kbd{margin-left:auto}.btn-new-chat[data-v-a5d7cf12] .ui-kbd,.search[data-v-a5d7cf12] .ui-kbd{opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.btn-new-chat[data-v-a5d7cf12]:hover .ui-kbd,.btn-new-chat[data-v-a5d7cf12]:focus-visible .ui-kbd,.search[data-v-a5d7cf12]:hover .ui-kbd,.search[data-v-a5d7cf12]:focus-visible .ui-kbd{opacity:1}.search[data-v-a5d7cf12]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.search[data-v-a5d7cf12]:hover{background:var(--sb-hover)}.search[data-v-a5d7cf12]:focus-visible{background:var(--sb-hover);color:var(--color-text);outline:2px solid var(--color-accent-bd);outline-offset:-2px}.search-icon[data-v-a5d7cf12]{flex:none;transform:translateY(-.5px)}.search-input[data-v-a5d7cf12]{flex:1;min-width:0;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-tabs[data-v-a5d7cf12]{padding:var(--space-2) var(--sb-inset) 0}.status-seg[data-v-a5d7cf12]{width:100%;display:flex}.status-seg[data-v-a5d7cf12] .ui-seg__item{flex:1;min-width:0;justify-content:center;padding:0 var(--space-1);overflow:hidden}.ws-dir[data-v-a5d7cf12]{display:block;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);cursor:pointer;position:relative;user-select:none}.ws-dir[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.ws-dir.on[data-v-a5d7cf12]{background:var(--sb-selected, var(--color-selected))}.ws-dir+.ws-dir[data-v-a5d7cf12]{margin-top:var(--space-05)}.ws-dir-row[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--sb-gap);min-width:0}.ws-dir-icon[data-v-a5d7cf12]{flex:none;color:var(--color-text-muted)}.ws-dir-name[data-v-a5d7cf12]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir-act[data-v-a5d7cf12]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.ws-dir-rename[data-v-a5d7cf12]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-sm);padding:2px 5px;outline:none}.ws-dir:hover .ws-dir-act[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-act[data-v-a5d7cf12]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.ws-dir-sub[data-v-a5d7cf12]{margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir:hover .ws-dir-name[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-name[data-v-a5d7cf12],.ws-dir:hover .ws-dir-sub[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-sub[data-v-a5d7cf12]{margin-right:calc(var(--icon-button-sm) + var(--space-2))}.done-gh[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--sb-gap);padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);user-select:none;position:relative;cursor:pointer}.done-gh[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.done-gh-folder[data-v-a5d7cf12]{flex:none;color:var(--color-text-muted)}.done-gh-name[data-v-a5d7cf12]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.done-gh-count[data-v-a5d7cf12]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.done-gh-act[data-v-a5d7cf12]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.done-gh:hover .done-gh-act[data-v-a5d7cf12],.done-gh:focus-within .done-gh-act[data-v-a5d7cf12]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.done-gh:hover .done-gh-count[data-v-a5d7cf12],.done-gh:focus-within .done-gh-count[data-v-a5d7cf12]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.sessions[data-v-a5d7cf12]{flex:1;overflow-y:auto;padding:0 var(--sb-inset) var(--space-3);min-height:0;--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.sessions[data-v-a5d7cf12]::-webkit-scrollbar{display:none}.sessions-thumb[data-v-a5d7cf12]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.sessions-thumb.visible[data-v-a5d7cf12]{opacity:1;pointer-events:auto}.sessions-thumb.visible[data-v-a5d7cf12]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.sessions-thumb[data-v-a5d7cf12]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.side-footer[data-v-a5d7cf12]{flex:none;position:relative;z-index:1;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--sb-inset);border-top:.5px solid var(--line);background:var(--color-sidebar-bg)}.side-footer-account[data-v-a5d7cf12]{flex:1 1 auto;min-width:0}.side-footer-settings[data-v-a5d7cf12]{flex:none}.side-footer[data-v-a5d7cf12]:before{bottom:100%;background:linear-gradient(to top,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to top,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to top,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.side-footer--shadowed[data-v-a5d7cf12]:before{opacity:1}.side-section-label[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.side-section-title[data-v-a5d7cf12]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sessions-head .pinned+.side-section-label[data-v-a5d7cf12]{margin-top:var(--space-1)}.side-section-toggle[data-v-a5d7cf12]{color:var(--faint)}.side-section-toggle[data-v-a5d7cf12]:hover{color:var(--dim)}.side-section-toggle svg[data-v-a5d7cf12]{width:13px;height:13px}.side-section-actions[data-v-a5d7cf12]{display:flex;align-items:center;gap:2px}.ws-drop-target.drop-before[data-v-a5d7cf12]{box-shadow:inset 0 2px 0 var(--color-accent)}.ws-drop-target.drop-after[data-v-a5d7cf12]{box-shadow:inset 0 -2px 0 var(--color-accent)}.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh{isolation:isolate}.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:ws-locate-fade-a5d7cf12 var(--duration-flash) var(--ease-out) forwards}@keyframes ws-locate-fade-a5d7cf12{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh:before{animation:none}}.sessions.pinned-drag-active[data-v-a5d7cf12]{box-shadow:inset 0 0 0 1px var(--color-accent)}.sessions.flat-pinned-drop-hover[data-v-a5d7cf12]{box-shadow:inset 0 0 0 2px var(--color-accent)}.show-more-row[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:center}.show-more[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:center;gap:var(--space-1);margin:0;padding:6px var(--space-3);min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);cursor:pointer}.show-more[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-a5d7cf12]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-label[data-v-a5d7cf12]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-drop-overlay[data-v-a5d7cf12]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:var(--space-3);box-sizing:border-box;background:color-mix(in srgb,var(--color-sidebar-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.folder-drop-overlay.show[data-v-a5d7cf12]{opacity:1;visibility:visible}.folder-drop-card[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--space-3);max-width:100%;box-sizing:border-box;padding:var(--space-4);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.folder-drop-card svg[data-v-a5d7cf12]{flex:none}.folder-drop-card span[data-v-a5d7cf12]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-a5d7cf12]{padding:var(--space-6) var(--space-3);text-align:center;color:var(--faint);font-size:calc(var(--ui-font-size) - 3px);line-height:1.6}.ws-menu[data-v-a5d7cf12],.gh-menu[data-v-a5d7cf12],.view-menu[data-v-a5d7cf12]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.view-menu-label[data-v-a5d7cf12]{padding:var(--space-1) var(--space-2) var(--space-05);font-size:var(--text-xs);color:var(--faint);user-select:none}.view-menu-check[data-v-a5d7cf12]{margin-left:auto;display:inline-flex}.menu-pop-enter-active[data-v-a5d7cf12]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-a5d7cf12]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-a5d7cf12],.menu-pop-leave-to[data-v-a5d7cf12]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}[data-v-a5d7cf12] .workspace-rename-item{font-size:var(--text-xs);font-weight:var(--weight-option-label)}.section-menu-check[data-v-a5d7cf12]{display:inline-flex;flex:none;width:14px}.chat-header[data-v-927e8637]{flex:none;display:flex;align-items:center;gap:14px;height:var(--panel-head-h, 48px);padding:0 16px;border-bottom:.5px solid var(--color-line);background:var(--color-bg);font-family:var(--font-ui);min-width:0;user-select:none;container-type:inline-size}.chat-header.macos-desktop[data-v-927e8637]{-webkit-app-region:drag}.chat-header.macos-desktop button[data-v-927e8637],.chat-header.macos-desktop input[data-v-927e8637]{-webkit-app-region:no-drag}.app:not(.mobile) .chat-header{transition:padding-left .28s cubic-bezier(.4,0,.2,1)}.app.sidebar-collapsed .chat-header{padding-left:78px}.app.sidebar-collapsed.macos-desktop .chat-header{padding-left:146px}.ch-id[data-v-927e8637]{display:flex;align-items:center;gap:6px;min-width:0;flex:none;max-width:46%}.ch-ws[data-v-927e8637]{color:var(--color-text-muted);font-size:var(--text-base);font-weight:var(--weight-medium);flex:none}.ch-sep[data-v-927e8637]{color:var(--color-text-faint);flex:none}.ch-ses[data-v-927e8637]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-rename[data-v-927e8637]{flex:1;min-width:0;font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none;user-select:text}.ch-git[data-v-927e8637]{display:flex;align-items:center;gap:4px;border:none;background:transparent;padding:0;color:var(--muted);font-family:var(--font-ui);font-size:calc(var(--ui-font-size) - 2px);flex:0 1 auto;max-width:none;min-width:0;cursor:pointer}.ch-git:hover .ch-branch[data-v-927e8637]{color:var(--color-text)}.ch-branch-icon[data-v-927e8637]{flex:none;color:var(--color-text-muted)}.ch-branch[data-v-927e8637]{color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}.ch-detached[data-v-927e8637]{color:var(--muted);font-style:italic}.ch-pill[data-v-927e8637]{display:inline-flex;align-items:center;gap:3px;padding:1px 5px;border-radius:999px;background:var(--panel);border:.5px solid var(--line);font-size:calc(var(--ui-font-size) - 3px)}.ch-sync-pill[data-v-927e8637]{border-color:var(--line)}.ch-diff-pill[data-v-927e8637]{border-color:color-mix(in srgb,var(--color-success) 20%,var(--line));font-variant-numeric:tabular-nums}.ch-ahead[data-v-927e8637]{color:var(--color-warning);flex:none}.ch-behind[data-v-927e8637]{color:var(--color-accent-hover);flex:none}.ch-add[data-v-927e8637]{color:var(--color-success);flex:none}.ch-del[data-v-927e8637]{color:var(--color-danger);flex:none}.ch-spacer[data-v-927e8637]{flex:1;min-width:0}@container (max-width: 720px){.ch-ws[data-v-927e8637],.ch-sep[data-v-927e8637]{display:none}.ch-id[data-v-927e8637]{flex:0 1 auto;max-width:none}}.chat-header .ch-act-more[data-v-927e8637]{width:24px;height:24px;border-radius:var(--radius-sm)}.chat-header .ch-act-more[data-v-927e8637] svg{width:14px;height:14px}.ch-act-more.open[data-v-927e8637]{background:var(--color-well);color:var(--color-text)}.chat-header .ch-panel[data-v-927e8637]{width:var(--icon-button-sm);height:var(--icon-button-sm);border-radius:var(--radius-sm)}.chat-header .ch-panel[data-v-927e8637] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ch-dev[data-v-927e8637]{display:inline-flex;align-items:center;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-warning-bd);border-radius:var(--radius-full);background:var(--color-warning-soft);color:var(--color-warning);font-size:var(--text-xs);font-weight:500}.ch-pr[data-v-927e8637]{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-well);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:500;cursor:pointer}.ch-pr svg[data-v-927e8637]{flex:none}.ch-pr.pr-open[data-v-927e8637]{color:var(--color-success);border-color:var(--color-success-bd);background:var(--color-success-soft)}.ch-pr.pr-merged[data-v-927e8637]{color:var(--color-done);border-color:var(--color-done-bd);background:var(--color-done-soft)}.ch-pr.pr-closed[data-v-927e8637]{color:var(--color-danger);border-color:var(--color-danger-bd);background:var(--color-danger-soft)}.ch-pr.pr-draft[data-v-927e8637],.ch-pr.pr-unknown[data-v-927e8637]{color:var(--color-text-muted);border-color:var(--color-line-strong);background:var(--color-well)}.ch-pr[data-v-927e8637]:hover{border-color:var(--color-line-strong)}.ch-done-pill[data-v-927e8637]{cursor:default}.ch-done-pill[data-v-927e8637]:hover{border-color:var(--color-done-bd)}@container (max-width: 980px){.ch-sync-pill[data-v-927e8637],.ch-diff-pill[data-v-927e8637]{display:none}}@container (max-width: 860px){.ch-git[data-v-927e8637],.ch-pr[data-v-927e8637]{display:none}}.ch-menu[data-v-927e8637]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-927e8637]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-927e8637]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-927e8637],.menu-pop-leave-to[data-v-927e8637]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}@media(max-width:980px){.ch-act-label[data-v-927e8637]{display:none}}@media(max-width:640px){.chat-header[data-v-927e8637]{display:none}}.slash-menu[data-menu-frame][data-v-62eaf4c2]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.slash-menu.is-sheet[data-menu-frame][data-v-62eaf4c2]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.slash-menu.is-sheet .slash-scroll[data-v-62eaf4c2]{margin:0;padding:var(--space-1) var(--space-2)}.slash-menu.is-sheet .slash-item[data-v-62eaf4c2]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.slash-scroll[data-v-62eaf4c2]{max-height:var(--p-slash-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.slash-scroll[data-v-62eaf4c2]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-62eaf4c2]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.slash-menu:hover .scroll-thumb[data-v-62eaf4c2]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-62eaf4c2]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.slash-item[data-v-62eaf4c2]{display:flex;align-items:baseline;gap:var(--space-2);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-b2);border-radius:var(--radius-menu-row)}.slash-item[data-v-62eaf4c2]:hover{background:var(--color-hover)}.slash-item.active[data-v-62eaf4c2]{background:var(--color-selected)}.slash-item+.slash-item[data-v-62eaf4c2]{margin-top:var(--menu-rows-seam)}.slash-name[data-v-62eaf4c2]{flex:none;max-width:60%;color:var(--color-text);font-weight:500;min-width:0;line-height:var(--leading-normal);overflow-wrap:anywhere}.slash-match[data-v-62eaf4c2]{font-weight:var(--weight-semibold)}.slash-empty[data-v-62eaf4c2]{padding:var(--space-1-5) var(--space-1);color:var(--color-text-muted)}@media(hover:none){.slash-item[data-v-62eaf4c2]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.slash-desc[data-v-62eaf4c2]{flex:1;min-width:0;color:var(--color-text-muted);font-size:var(--ui-b2);font-weight:var(--weight-regular);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-desc-match[data-v-62eaf4c2]{font-weight:var(--weight-semibold)}@media(max-width:520px){.slash-item[data-v-62eaf4c2]{flex-direction:column;align-items:stretch;gap:var(--space-05)}.slash-name[data-v-62eaf4c2]{max-width:none}}.mention-menu[data-menu-frame][data-v-7c3431cd]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.mention-menu.is-sheet[data-menu-frame][data-v-7c3431cd]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.mention-menu.is-sheet .mention-scroll[data-v-7c3431cd]{margin:0;padding:var(--space-1) var(--space-2)}.mention-menu.is-sheet .mention-item[data-v-7c3431cd]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.mention-menu.is-sheet .mention-state[data-v-7c3431cd]{padding-left:var(--space-4)}.mention-scroll[data-v-7c3431cd]{max-height:var(--p-mention-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.mention-scroll[data-v-7c3431cd]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-7c3431cd]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.mention-menu:hover .scroll-thumb[data-v-7c3431cd]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-7c3431cd]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.mention-state[data-v-7c3431cd]{padding:var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--ui-b2)}.mention-spin[data-v-7c3431cd]{position:absolute;top:var(--space-2);right:var(--space-3);color:var(--color-text-muted);z-index:var(--z-raised)}.dim[data-v-7c3431cd]{color:var(--color-text-muted)}.mention-item[data-v-7c3431cd]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);border-radius:var(--radius-menu-row)}.mention-icon[data-v-7c3431cd]{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);flex-shrink:0}.mention-icon[data-v-7c3431cd] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-item:hover .mention-icon[data-v-7c3431cd],.mention-item.active .mention-icon[data-v-7c3431cd]{color:var(--color-text-strong)}.mention-item[data-v-7c3431cd]:hover{background:var(--color-hover)}.mention-item:hover .mention-name[data-v-7c3431cd],.mention-item.active .mention-name[data-v-7c3431cd]{color:var(--color-text-strong)}.mention-item.active[data-v-7c3431cd]{background:var(--color-selected)}.mention-item+.mention-item[data-v-7c3431cd]{margin-top:var(--menu-rows-seam)}.mention-item[data-v-7c3431cd]{transition:opacity var(--duration-slow) var(--ease-out)}.mention-item.stale[data-v-7c3431cd]{opacity:var(--opacity-stale)}@media(hover:none){.mention-item[data-v-7c3431cd]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.mention-name[data-v-7c3431cd]{color:var(--color-text);font-weight:500;flex-shrink:0}.mention-name .mention-hit[data-v-7c3431cd]{color:var(--color-text-strong);font-weight:var(--weight-semibold)}.mention-meta .mention-hit[data-v-7c3431cd]{color:var(--color-text)}.mention-meta[data-v-7c3431cd]{color:var(--color-text-muted);font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer[data-v-4b2d7169]{padding:7px var(--dock-inline-right, 16px) 12px var(--dock-inline-left, 16px);background:transparent;transition:background .12s}.composer.drag-over[data-v-4b2d7169]{background:var(--color-accent-soft)}.drop-overlay[data-v-4b2d7169]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.drop-overlay.show[data-v-4b2d7169]{opacity:1;visibility:visible}.drop-card[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.composer-card[data-v-4b2d7169]{--composer-control-size: var(--space-8);--composer-send-size: var(--composer-control-size);--composer-control-inset: var(--space-2);--composer-valve-floor: 4em;--composer-valve-expand-margin: 3.4em;position:relative;border:.5px solid var(--color-composer-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);background:var(--color-composer-bg);box-shadow:var(--shadow-input);user-select:none;container-type:inline-size}.composer-card[data-v-4b2d7169]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.composer-card[data-v-4b2d7169]:focus-within:after{opacity:1}.file-input-hidden[data-v-4b2d7169]{display:none}.cin-wrap[data-v-4b2d7169]{position:relative;padding:14px 16px 8px}.input-row[data-v-4b2d7169]{position:relative;display:flex;align-items:flex-start;gap:var(--space-2)}.expand-btn[data-v-4b2d7169]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--dim);cursor:pointer;padding:0;transition:background .12s,color .12s}.expand-btn[data-v-4b2d7169]:hover{background:var(--panel2);color:var(--color-text)}.expand-btn[data-v-4b2d7169]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.ph[data-v-4b2d7169]{color:var(--faint);caret-color:var(--color-text);flex:1;border:none;outline:none;font-family:var(--font-ui);font-size:var(--content-font-size);text-autospace:normal;background:transparent;min-height:36px;max-height:calc(var(--app-height, 100dvh) / 4);overflow-y:auto;scrollbar-width:none;line-height:1.5;margin-bottom:6px;user-select:text}.ph[data-v-4b2d7169]::-webkit-scrollbar{display:none}.ph[data-v-4b2d7169]:not([data-empty=true]){color:var(--color-text)}.ph[data-v-4b2d7169] .ProseMirror{outline:none;white-space:pre-wrap;overflow-wrap:break-word;min-height:inherit}.ph[data-v-4b2d7169] .ProseMirror p{margin:0}.ph[data-v-4b2d7169] .ProseMirror-trailingBreak:not(:only-child){display:none}.ph[data-v-4b2d7169] .mention-pill.ProseMirror-selectednode{color:var(--color-text)}.ph[data-v-4b2d7169] .wm-pill{display:inline-flex;align-items:center;gap:var(--space-1);vertical-align:top;height:calc(var(--content-font-size) * 1.5);margin-left:calc(-1 * var(--space-05));margin-right:var(--space-1-5);padding:0 calc((var(--content-font-size) * 1.5 - var(--wm-x-size)) / 2) 0 var(--space-2);border:none;border-radius:var(--radius-full);background:var(--color-selected);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:calc(var(--content-font-size) * 1.5);white-space:nowrap;user-select:none}.ph[data-v-4b2d7169] .wm-icon{display:inline-flex}.ph[data-v-4b2d7169] .wm-x{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--wm-x-size);height:var(--wm-x-size);padding:0;border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.ph[data-v-4b2d7169] .wm-x:hover{background:var(--color-hover);color:var(--color-text)}.ph[data-v-4b2d7169] .wm-x:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ph[data-v-4b2d7169] .wm-x:before{content:"";position:absolute;inset:calc(-1 * var(--wm-x-ring))}.ph[data-wm=true][data-v-4b2d7169] .ProseMirror{padding-top:var(--space-1);padding-left:var(--space-05)}.ph[data-v-4b2d7169] .wm-placeholder{color:var(--muted);pointer-events:none;user-select:none}.ph[data-v-4b2d7169] .wm-placeholder kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--kbd-min-width);height:var(--kbd-height);padding:0 var(--kbd-padding-x);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-xs);background:transparent;color:inherit;font-family:var(--font-kbd);font-size:var(--kbd-font-size);line-height:var(--leading-solid)}.composer.expanded .ph[data-v-4b2d7169]{min-height:calc(var(--app-height, 100dvh) * .7);max-height:calc(var(--app-height, 100dvh) * .7)}.compact-chip[data-v-4b2d7169]{height:var(--composer-control-size);padding:0 var(--space-2);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-warning);font-family:var(--mono);font-size:var(--ui-font-size);cursor:pointer;line-height:1;flex:none;transition:background var(--duration-base) var(--ease-out)}.compact-chip[data-v-4b2d7169]:hover{background:var(--color-hover)}.compact-chip.gone[data-v-4b2d7169],.model-pill.model-gone[data-v-4b2d7169]{display:none}.composer-attach[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);border-radius:var(--radius-full);flex:none}.add-menu[data-v-4b2d7169]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;z-index:var(--z-dropdown);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1-5) var(--space-3);display:flex;flex-direction:column;gap:var(--menu-rows-seam);font-family:var(--font-ui);transform-origin:bottom left}.am-scroll[data-v-4b2d7169]{max-height:var(--p-add-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:var(--menu-rows-seam)}.am-scroll[data-v-4b2d7169]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-4b2d7169]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);pointer-events:none;z-index:var(--z-raised)}.add-menu:hover .scroll-thumb[data-v-4b2d7169]{background:var(--color-menu-scrollbar-hover)}.msheet-search[data-v-4b2d7169]{padding:0 var(--space-4) var(--space-2)}.msheet-add[data-v-4b2d7169]{display:flex;flex-direction:column;gap:var(--menu-rows-seam);padding:0 var(--menu-row-hug);font-family:var(--font-ui)}.am-row[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);border:none;border-radius:var(--radius-menu-row);background:none;cursor:pointer;font-size:var(--ui-font-size);color:var(--color-text);text-align:left;transition:background var(--duration-base) var(--ease-out)}.am-row[data-v-4b2d7169]:hover{background:var(--color-hover)}.am-row[data-v-4b2d7169]:focus-visible{background:var(--color-selected);outline:none}@media(hover:none){.am-row[data-v-4b2d7169]{padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.am-row:hover .am-icon[data-v-4b2d7169],.am-row:focus-visible .am-icon[data-v-4b2d7169]{color:var(--color-text)}.am-icon[data-v-4b2d7169]{flex:none;width:var(--p-ic-sm);display:flex;justify-content:center;color:var(--color-text-muted);transition:color var(--duration-base) var(--ease-out)}.am-name[data-v-4b2d7169]{flex:none;font-weight:var(--weight-medium)}.am-desc[data-v-4b2d7169]{margin-left:var(--space-1);color:var(--color-text-muted);font-size:var(--ui-font-size-sm)}.send[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-send-bg);color:var(--color-send-icon);border:none;box-shadow:var(--shadow-send);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--duration-slow) var(--ease-out),transform var(--duration-fast) var(--ease-out),box-shadow var(--duration-slow) var(--ease-out);position:relative}.send[data-v-4b2d7169]:hover:not(:disabled){background:var(--color-send-bg-hover);box-shadow:var(--shadow-send-hover)}.send[data-v-4b2d7169]:active{transform:scale(.92)}.send[data-v-4b2d7169]:disabled{cursor:not-allowed;background:var(--color-send-bg-disabled);color:var(--color-send-icon-disabled);opacity:var(--opacity-send-disabled)}.send[data-v-4b2d7169]:disabled:active{transform:none}.send.is-starting[data-v-4b2d7169]:disabled{background:var(--color-send-bg);color:var(--color-send-icon)}.send.is-starting[data-v-4b2d7169] .ui-spinner{color:var(--color-send-icon)}.send.is-starting[data-v-4b2d7169] .ui-spinner__track{stroke:color-mix(in srgb,var(--color-send-icon) 32%,transparent)}.send svg[data-v-4b2d7169]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.stop[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-subtle);color:var(--color-stop-glyph);border:none;box-shadow:var(--shadow-xs);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .16s ease,color .16s ease,transform .12s ease}.stop[data-v-4b2d7169]:hover{background:var(--color-danger);color:var(--color-text-on-accent)}.stop[data-v-4b2d7169]:active{transform:scale(.92)}.stop svg[data-v-4b2d7169]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.toolbar[data-v-4b2d7169]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--composer-control-inset) var(--composer-control-inset);position:relative}.menu-measure[data-v-4b2d7169]{position:absolute;width:max-content;height:0;overflow:hidden;visibility:hidden;pointer-events:none}.toolbar-left[data-v-4b2d7169],.toolbar-right[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--space-1);min-width:0}.toolbar-left[data-v-4b2d7169]{flex:none;overflow:hidden}.toolbar-right[data-v-4b2d7169]{flex:1 1 auto;justify-content:flex-end}.perm-pill[data-v-4b2d7169],.swarm-chip[data-v-4b2d7169],.model-pill[data-v-4b2d7169]{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);height:var(--composer-control-size);padding:0 var(--space-3);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:pointer;user-select:none;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.perm-pill[data-v-4b2d7169]{font-size:var(--ui-font-size-sm)}.perm-pill[data-v-4b2d7169]:after,.swarm-chip[data-v-4b2d7169]:after,.model-pill[data-v-4b2d7169]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.perm-pill[data-v-4b2d7169]:hover:after,.swarm-chip[data-v-4b2d7169]:hover:after,.model-pill[data-v-4b2d7169]:hover:after{opacity:1}.perm-pill.open[data-v-4b2d7169],.model-pill.open[data-v-4b2d7169]{background:var(--color-accent-soft)}.swarm-chip[data-v-4b2d7169]{cursor:default}.swarm-x[data-v-4b2d7169]{margin-right:calc(var(--composer-control-size) / 2 - var(--space-3) - var(--icon-button-sm) / 2);color:inherit;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.swarm-chip .swarm-x[data-v-4b2d7169]{border-radius:var(--radius-full)}.swarm-chip:hover .swarm-x[data-v-4b2d7169],.swarm-x[data-v-4b2d7169]:focus-visible{opacity:1}@media(hover:none){.toolbar-left[data-v-4b2d7169]{padding-right:var(--space-2)}.swarm-chip[data-v-4b2d7169]{margin-right:calc((var(--touch-target-min) - var(--icon-button-sm)) / 2 - var(--space-1))}.swarm-x[data-v-4b2d7169]{opacity:1;position:relative}.swarm-x[data-v-4b2d7169]:before{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.perm-pill.perm-manual[data-v-4b2d7169]{color:var(--dim)}.perm-pill.perm-yolo[data-v-4b2d7169]{color:var(--color-warning)}.perm-pill.perm-auto[data-v-4b2d7169]{color:var(--color-danger)}.perm-pill-icon[data-v-4b2d7169]{flex:none}.perm-pill[data-v-4b2d7169],.swarm-chip[data-v-4b2d7169]{flex:none;padding-left:var(--space-2)}.swarm-ic[data-v-4b2d7169],.swarm-x[data-v-4b2d7169]{flex:none}.labels-collapsed .perm-pill[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .perm-pill-label[data-v-4b2d7169]{display:none}.labels-collapsed .swarm-chip[data-v-4b2d7169]{position:relative;width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .swarm-label[data-v-4b2d7169]{display:none}.labels-collapsed .swarm-ic[data-v-4b2d7169]{transition:opacity var(--duration-base) var(--ease-out)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-4b2d7169]{opacity:0}.labels-collapsed .swarm-x[data-v-4b2d7169]{position:absolute;inset:0;width:auto;height:auto;margin-right:0}@media(hover:none){.labels-collapsed .swarm-chip[data-v-4b2d7169]{width:var(--touch-target-min);height:var(--touch-target-min)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-4b2d7169]{opacity:1}.labels-collapsed .swarm-x[data-v-4b2d7169]{inset:0;width:auto;height:auto;opacity:1;background:transparent}.labels-collapsed .swarm-x[data-v-4b2d7169]:before{inset:0 0 auto auto;width:var(--p-ic-md);height:var(--p-ic-md);border-radius:var(--radius-full);background:var(--color-selected)}.labels-collapsed .swarm-x[data-v-4b2d7169] svg{position:absolute;top:calc(var(--space-1-5) / 2);right:calc(var(--space-1-5) / 2);width:calc(var(--p-ic-md) - var(--space-1-5));height:calc(var(--p-ic-md) - var(--space-1-5))}}.ctx-group[data-v-4b2d7169]{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:2px 0;border-radius:var(--radius-xs)}.ctx-group[data-v-4b2d7169]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.model-pill[data-v-4b2d7169]{gap:var(--space-1);line-height:var(--leading-normal);overflow:hidden;flex:0 1 auto;min-width:0;max-width:320px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.model-pill[data-v-4b2d7169]:active{transform:scale(.97)}.model-pill[data-v-4b2d7169]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-pill .mp-name[data-v-4b2d7169]{flex:0 8 auto;font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.model-pill .think-suffix[data-v-4b2d7169]{color:var(--color-accent);font-weight:var(--weight-medium);flex:none}.model-pill .cv[data-v-4b2d7169]{color:var(--faint);flex:none;transition:transform var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.model-pill:hover .cv[data-v-4b2d7169],.model-pill.open .cv[data-v-4b2d7169]{color:var(--dim)}.model-pill.open .cv[data-v-4b2d7169]{transform:rotate(180deg)}.model-pill.icon-only[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.model-pill.login-pill[data-v-4b2d7169],.model-pill.login-pill .mp-name[data-v-4b2d7169]{color:var(--color-accent)}.model-dropdown[data-v-4b2d7169]{position:absolute;bottom:calc(100% + var(--space-1));right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));z-index:var(--z-dropdown);min-width:200px;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;font-family:var(--font-ui);transform-origin:bottom right;overflow-y:auto;overscroll-behavior:contain}.model-dropdown.flip-down[data-v-4b2d7169]{top:calc(100% + var(--space-1));bottom:auto;transform-origin:top right}.composer-menu-pop-enter-active[data-v-4b2d7169]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.composer-menu-pop-leave-active[data-v-4b2d7169]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.composer-menu-pop-enter-from[data-v-4b2d7169],.composer-menu-pop-leave-to[data-v-4b2d7169]{opacity:0;transform:scale(.97) translateY(2px)}.model-dropdown.flip-down.composer-menu-pop-enter-from[data-v-4b2d7169],.model-dropdown.flip-down.composer-menu-pop-leave-to[data-v-4b2d7169]{transform:scale(.97) translateY(-2px)}.md-list[data-v-4b2d7169]{display:flex;flex-direction:column;gap:1px;max-height:min(320px,40vh);overflow-y:auto;overscroll-behavior:contain}.md-section[data-v-4b2d7169]{padding:4px 9px 2px;font-size:var(--text-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:var(--weight-semibold)}.md-row[data-v-4b2d7169]{display:flex;align-items:center;gap:7px;width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);padding:5px 9px;border-radius:var(--radius-dropdown-row);text-align:left;transition:background var(--duration-base) var(--ease-out)}.md-row[data-v-4b2d7169]:hover{background:var(--color-hover)}.md-row:hover .md-name[data-v-4b2d7169]{color:var(--color-text-strong)}.md-row[data-v-4b2d7169]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md-row[data-v-4b2d7169]:disabled{cursor:default;opacity:.58}.md-row[data-v-4b2d7169]:disabled:hover{background:none}.md-row.is-current[data-v-4b2d7169]{background:var(--color-selected)}.md-note[data-v-4b2d7169]{margin-left:auto;color:var(--muted);font-size:var(--ui-font-size-xs)}.md-row-more .md-more-icon[data-v-4b2d7169]{color:var(--dim)}.md-row-more .md-more-arrow[data-v-4b2d7169]{color:var(--faint);flex:none;transition:color var(--duration-base) var(--ease-out)}.md-row-more:hover .md-more-arrow[data-v-4b2d7169]{color:var(--dim)}.md-check[data-v-4b2d7169]{width:14px;flex:none;color:var(--color-accent);font-weight:500;display:flex;justify-content:center}.md-name[data-v-4b2d7169]{flex:1;transition:color var(--duration-base) var(--ease-out)}.md-provider[data-v-4b2d7169]{color:var(--muted);font-size:var(--ui-font-size-xs);flex:none}.md-star[data-v-4b2d7169]{color:var(--star);flex:none;margin-left:auto}.md-divider[data-v-4b2d7169]{height:1px;background:var(--line);margin:3px 0}.md-thinking[data-v-4b2d7169]{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:var(--radius-dropdown-row)}.md-thinking .md-name[data-v-4b2d7169]{font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);flex:none}.md-thinking .md-note[data-v-4b2d7169],.md-thinking .ui-seg[data-v-4b2d7169]{margin-left:auto}.md-cache-note[data-v-4b2d7169]{width:0;min-width:100%;padding:2px 7px 4px;color:var(--muted);font-size:var(--ui-font-size-xs);line-height:1.4}.perm-dropdown[data-v-4b2d7169]{position:absolute;bottom:calc(100% + 4px);left:var(--composer-control-inset);z-index:var(--z-dropdown);min-width:220px;width:max-content;max-width:calc(100vw - var(--space-8));background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;transform-origin:bottom left}.pd-row[data-v-4b2d7169]{display:grid;grid-template-columns:var(--p-ic-md) var(--composer-menu-desc-width, max-content) var(--p-ic-sm);column-gap:7px;row-gap:2px;align-items:start;width:100%;background:none;border:none;cursor:pointer;padding:6px 7px;border-radius:var(--radius-dropdown-row);text-align:left}.pd-row[data-v-4b2d7169]:hover,.pd-row.is-current[data-v-4b2d7169]{background:var(--color-hover)}.pd-icon[data-v-4b2d7169]{grid-column:1;grid-row:1;width:var(--p-ic-md);min-height:1lh;display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-check[data-v-4b2d7169]{grid-column:3;grid-row:1;width:var(--p-ic-sm);min-height:1lh;color:var(--color-accent);font-size:var(--ui-font-size);font-weight:var(--weight-medium);display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-info[data-v-4b2d7169]{display:contents}.pd-name[data-v-4b2d7169]{grid-column:2;grid-row:1;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.pd-desc[data-v-4b2d7169]{grid-column:2;grid-row:2;width:var(--composer-menu-desc-width, auto);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-caption);color:var(--muted);line-height:var(--leading-tight)}@media(max-width:640px){.composer[data-v-4b2d7169]{padding:9px var(--dock-inline-right, max(12px, var(--safe-right))) max(24px,var(--safe-bottom)) var(--dock-inline-left, max(12px, var(--safe-left)))}.composer-card[data-v-4b2d7169]{--composer-control-size: 36px;--composer-mobile-input-size: 16px;max-width:100%}.input-row[data-v-4b2d7169]{gap:6px;min-width:0}.send[data-v-4b2d7169],.stop[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);min-width:var(--composer-send-size);padding:0;border-radius:var(--radius-full);font-size:0;align-self:flex-end;position:relative}.ph[data-v-4b2d7169] .wm-pill{height:calc(var(--composer-mobile-input-size) * 1.5);line-height:calc(var(--composer-mobile-input-size) * 1.5);padding-right:calc((var(--composer-mobile-input-size) * 1.5 - var(--wm-x-size)) / 2)}.model-dropdown[data-v-4b2d7169]{right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));left:auto;min-width:180px;max-width:calc(100vw - 24px)}.ph[data-v-4b2d7169]{font-size:var(--composer-mobile-input-size)}.model-pill[data-v-4b2d7169],.attach-btn[data-v-4b2d7169]{font-size:var(--ui-font-size)}.toolbar[data-v-4b2d7169]{gap:6px;min-width:0}.toolbar-left[data-v-4b2d7169],.toolbar-right[data-v-4b2d7169]{min-width:0}.model-pill[data-v-4b2d7169]{max-width:min(52vw,220px)}.model-pill .mp-name[data-v-4b2d7169]{max-width:min(40vw,170px)}.md-row[data-v-4b2d7169],.md-section[data-v-4b2d7169]{font-size:var(--ui-font-size)}.md-thinking[data-v-4b2d7169]{flex-wrap:wrap;row-gap:6px}.md-thinking .ui-seg[data-v-4b2d7169]{margin-left:0}.pd-name[data-v-4b2d7169]{font-size:var(--ui-font-size)}.pd-desc[data-v-4b2d7169]{font-size:var(--text-xs)}}@media(hover:none){.ph[data-wm=true][data-v-4b2d7169] .ProseMirror{padding-top:var(--space-3)}.ph[data-v-4b2d7169] .wm-pill{display:flex;width:max-content;margin-right:0;margin-bottom:var(--space-3);padding-right:calc((var(--touch-target-min) - var(--wm-x-size)) / 2)}.ph[data-v-4b2d7169] .wm-x:before{inset:calc((var(--wm-x-size) - var(--touch-target-min)) / 2)}.ph[data-wm=true][data-v-4b2d7169]{min-height:calc(36px + var(--space-3))}}@media(max-width:640px)and (hover:none){.send[data-v-4b2d7169],.stop[data-v-4b2d7169],.attach-btn[data-v-4b2d7169],.expand-btn[data-v-4b2d7169],.model-pill[data-v-4b2d7169]{position:relative}.send[data-v-4b2d7169]:before,.stop[data-v-4b2d7169]:before,.attach-btn[data-v-4b2d7169]:before,.expand-btn[data-v-4b2d7169]:before,.model-pill[data-v-4b2d7169]:before{content:"";position:absolute;inset:-6px}.expand-btn[data-v-4b2d7169]:before{inset:-11px}.perm-pill[data-v-4b2d7169]{height:var(--touch-target-min)}.labels-collapsed .perm-pill[data-v-4b2d7169]{width:var(--touch-target-min);height:var(--touch-target-min)}}.appr[data-v-03ef6cfa]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.appr[data-v-03ef6cfa]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.appr.scrolled[data-v-03ef6cfa]:before{opacity:1}.appr>.ah[data-v-03ef6cfa],.appr>.af[data-v-03ef6cfa]{flex:none}.appr.minimized[data-v-03ef6cfa]{transition:background var(--duration-fast) var(--ease-out)}.appr.minimized[data-v-03ef6cfa]:hover{background:var(--color-hover)}.ah[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0;flex-wrap:nowrap}.appr.minimized .ah[data-v-03ef6cfa]{padding-bottom:var(--space-3)}.appr.minimized .ah.clickable[data-v-03ef6cfa]{cursor:pointer}.akind[data-v-03ef6cfa]{color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);white-space:nowrap;flex:none}.apeek[data-v-03ef6cfa]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.amin[data-v-03ef6cfa],.aexpand[data-v-03ef6cfa]{margin-left:auto;flex:none}.aexpand+.amin[data-v-03ef6cfa]{margin-left:0}.ab[data-v-03ef6cfa]{display:flex;flex-direction:column;flex:1;min-height:0;padding:var(--space-3) var(--space-4) 0}.ab[data-v-03ef6cfa]>*{flex:0 1 auto;min-height:0}.ab>.plan-path[data-v-03ef6cfa]{flex:none}.ab>.body-plan-wrap[data-v-03ef6cfa]{flex:1}.plan-path[data-v-03ef6cfa]{display:block;width:100%;margin-bottom:var(--space-2);padding:0;border:none;background:transparent;color:var(--color-accent);font:var(--text-xs) var(--font-mono);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-03ef6cfa]:hover{text-decoration:underline}.plan-path[data-v-03ef6cfa]:focus-visible{outline:none;text-decoration:underline;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.body-code[data-v-03ef6cfa]{display:flex;flex-direction:column}.body-code.expanded[data-v-03ef6cfa]{flex:1}.body-code.expanded[data-v-03ef6cfa] .hl-code{max-height:none;flex:1}.code-path[data-v-03ef6cfa]{flex:none;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body-shell[data-v-03ef6cfa]{overflow-y:auto}.shell-cmd[data-v-03ef6cfa]{font:var(--text-sm) var(--font-mono);background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-all;max-height:160px;overflow-y:auto;color:var(--color-text)}.shell-dollar[data-v-03ef6cfa]{color:var(--color-accent-hover);font-weight:var(--weight-medium);margin-right:var(--space-2)}.shell-cwd[data-v-03ef6cfa]{font:var(--text-xs) var(--font-mono);color:var(--color-text-muted);margin-top:var(--space-1)}.shell-danger[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui);background:var(--color-danger-soft)}.shell-danger-ic[data-v-03ef6cfa]{flex:none}.body-chip[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);overflow-y:auto}.chip-label[data-v-03ef6cfa]{background:var(--color-inline-code-bg);border-radius:var(--radius-sm);padding:2px var(--space-2);font:var(--weight-semibold) var(--text-xs) var(--font-mono);color:var(--color-text-muted);white-space:nowrap}.chip-value[data-v-03ef6cfa]{font:var(--text-sm) var(--font-mono);color:var(--color-text);word-break:break-all}.chip-detail[data-v-03ef6cfa]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted)}.body-todo[data-v-03ef6cfa]{overflow-y:auto}.todo-item[data-v-03ef6cfa]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-1) 0;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.todo-glyph[data-v-03ef6cfa]{color:var(--color-accent);font-size:var(--text-sm);flex:none;width:14px}.todo-title[data-v-03ef6cfa]{color:var(--color-text)}.todo-done[data-v-03ef6cfa]{color:var(--color-text-muted);text-decoration:line-through}.body-generic[data-v-03ef6cfa]{font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);word-break:break-word;overflow-y:auto}.body-plan-wrap[data-v-03ef6cfa]{display:flex;flex-direction:column;overflow-y:auto}.body-plan-wrap[data-v-03ef6cfa]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.body-plan-wrap.scrolled[data-v-03ef6cfa]:before{opacity:1}.body-plan-wrap>.plan-opts[data-v-03ef6cfa]{flex:none}.body-plan[data-v-03ef6cfa]{max-height:50vh;overflow-y:auto;min-height:0}.body-plan.expanded[data-v-03ef6cfa]{max-height:none;flex:1}.plan-opts[data-v-03ef6cfa]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-3);padding-top:var(--space-3);border-top:.5px solid var(--color-line)}.popt[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text);font:var(--text-sm)/var(--leading-normal) var(--font-ui);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.popt[data-v-03ef6cfa]:hover:not(:disabled){background:var(--color-hover)}.popt[data-v-03ef6cfa]:focus-visible{outline:none;background:var(--color-hover);box-shadow:var(--p-focus-ring)}.popt[data-v-03ef6cfa]:disabled{cursor:default;opacity:.6}.popt-key[data-v-03ef6cfa]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.popt-text[data-v-03ef6cfa]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.popt-label[data-v-03ef6cfa]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.popt-desc[data-v-03ef6cfa]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.popt-spin[data-v-03ef6cfa]{flex:none;color:var(--color-text-muted)}.feedback-wrap[data-v-03ef6cfa]{margin-top:var(--space-3);overflow-y:auto}.feedback-hint[data-v-03ef6cfa]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted);margin-top:var(--space-1)}.af[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.abtns[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-1)}.knum[data-v-03ef6cfa]{min-width:16px;height:16px;padding:0 3px;border-radius:var(--radius-xs);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/16px var(--font-ui);text-align:center}.abtns .ui-button--primary .knum[data-v-03ef6cfa]{background:color-mix(in srgb,var(--color-text-on-accent) 28%,transparent);color:var(--color-text-on-accent)}@media(max-width:640px){.popt[data-v-03ef6cfa]{min-height:44px;padding:var(--space-3)}.af[data-v-03ef6cfa]{flex-direction:column;align-items:stretch}.abtns[data-v-03ef6cfa]{flex-direction:column;margin-left:0;gap:var(--space-2)}.abtns[data-v-03ef6cfa] .ui-button{width:100%;min-height:46px}.abtns .amain[data-v-03ef6cfa]{order:-1}}.chat-dock[data-v-744a8d72]{--dock-inline-left: 16px;--dock-inline-right: 16px;box-sizing:border-box;width:100%;max-width:calc(var(--read-max) + var(--panes-scrollbar-width, 0px));padding-right:var(--panes-scrollbar-width, 0px);flex:none;position:absolute;inset:auto 0 0;background:transparent;z-index:var(--z-sticky)}.chat-dock.has-popup[data-v-744a8d72]{z-index:var(--z-dropdown)}.chat-dock.align-center[data-v-744a8d72]{margin-left:auto;margin-right:auto}.chat-dock.align-left[data-v-744a8d72]{margin-left:0;margin-right:auto}.chat-dock.align-mobile[data-v-744a8d72]{max-width:none}.chat-dock[data-v-744a8d72]:before{--fade: 48px;--veil: 72px;content:"";position:absolute;top:calc(-1 * var(--fade));right:0;bottom:0;left:0;z-index:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-bg) 0%,transparent),color-mix(in srgb,var(--color-bg) 30%,transparent) 21px,color-mix(in srgb,var(--color-bg) 70%,transparent) 45px,var(--color-bg) var(--veil))}.chat-dock[data-v-744a8d72]>*{position:relative;z-index:1}.dock-work-panel[data-v-744a8d72]{position:absolute;left:16px;right:calc(16px + var(--panes-scrollbar-width, 0px));bottom:100%;background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);margin-bottom:var(--space-2);max-height:min(360px,50vh);display:flex;flex-direction:column;overflow:hidden;user-select:none}.dock-work-panel.panel-todos .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-head[data-v-744a8d72]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-body[data-v-744a8d72]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-todos .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-head[data-v-744a8d72]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-tab[data-v-744a8d72]{padding:0;line-height:var(--leading-solid)}.dock-work-panel.panel-goal .gh-time[data-v-744a8d72]{color:var(--color-text-muted)}.dock-work-panel.panel-todos .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-body[data-v-744a8d72]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-subagent[data-v-744a8d72],.dock-work-panel.panel-bash[data-v-744a8d72]{height:min(var(--p-dock-panel-h),50vh)}.dock-work-tab.tab-progress[data-v-744a8d72]{display:inline-flex;align-items:center;gap:var(--space-2)}@media(max-width:640px){.dock-work-panel.panel-subagent[data-v-744a8d72],.dock-work-panel.panel-bash[data-v-744a8d72]{height:auto}}.dock-work-head[data-v-744a8d72]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:.5px solid var(--color-line);position:relative;z-index:1}.dock-work-body[data-v-744a8d72]{padding:var(--space-2) var(--space-3);overflow-y:auto;min-height:0;display:flex;flex-direction:column}@media(max-width:480px){.dock-work-head[data-v-744a8d72]{flex-wrap:wrap}}.dock-work-panel.body-scrolled-up .dock-work-body[data-v-744a8d72]{mask-image:linear-gradient(to bottom,transparent,black var(--menu-scroll-fade))}.dock-work-body[data-v-744a8d72] .taskspane{border:none;background:transparent;padding:0}.dock-work-body[data-v-744a8d72] .taskspane .tp-head{display:none}.dock-workbar[data-v-744a8d72]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-1-5);padding:var(--space-1) calc(var(--dock-inline-right) + var(--space-4) + var(--p-hairline)) var(--space-05) calc(var(--dock-inline-left) + var(--space-4) + var(--p-hairline))}.dock-workbar[data-v-744a8d72] .ui-pill{position:relative;gap:var(--space-1-5);height:auto;padding:var(--space-2) calc(var(--space-3) + var(--space-05)) var(--space-2) var(--space-3);border:none;border-radius:var(--radius-lg);background:var(--color-selected);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);color:var(--color-text);font-size:var(--text-base);line-height:var(--leading-normal)}.dock-workbar[data-v-744a8d72] .ui-pill svg{width:1.5em;height:1.5em;color:inherit}.dock-workbar[data-v-744a8d72] .ui-pill:after{content:"";position:absolute;inset:0;border-radius:var(--radius-lg);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.dock-workbar[data-v-744a8d72] .ui-pill:hover:not(:disabled):after,.dock-workbar[data-v-744a8d72] .ui-pill.is-active:after{opacity:1}.chat-dock.pills-compact .dock-workbar[data-v-744a8d72] .ui-pill{padding:var(--space-2)}.chat-dock.pills-compact .dock-workbar[data-v-744a8d72] .ui-pill>span{display:none}.dock-workbar .dw-count[data-v-744a8d72]{color:var(--color-text-muted)}.dock-workbar .dw-running[data-v-744a8d72]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted)}.dock-workbar .dw-goal-status[data-v-744a8d72]{font-weight:var(--weight-medium)}.dock-workbar .dw-goal-status--active[data-v-744a8d72]{color:var(--color-success)}.dock-workbar .dw-goal-status--paused[data-v-744a8d72]{color:var(--color-warning)}.dock-workbar .dw-goal-status--blocked[data-v-744a8d72]{color:var(--color-danger)}.dock-approval[data-v-744a8d72]{margin-top:8px}.chat-dock.has-approval[data-v-744a8d72],.chat-dock.has-question[data-v-744a8d72]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance))}.chat-dock.has-approval>.dock-workbar[data-v-744a8d72],.chat-dock.has-question>.dock-workbar[data-v-744a8d72]{flex:none}.chat-dock.has-approval>.dock-approval[data-v-744a8d72],.chat-dock.has-question>.dock-question[data-v-744a8d72]{min-height:0}@media(max-width:640px){.chat-dock[data-v-744a8d72]{--dock-inline-left: max(12px, var(--safe-left));--dock-inline-right: max(12px, var(--safe-right))}.dock-work-panel[data-v-744a8d72]{left:10px;right:calc(10px + var(--panes-scrollbar-width, 0px))}.dock-work-head-actions[data-v-744a8d72] .ui-seg__item{height:var(--touch-target-min)}.dock-work-head-actions[data-v-744a8d72] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}}.chat-dock[data-v-744a8d72]:not(.align-mobile) .composer{padding-bottom:14px}.dock-panel-enter-active[data-v-744a8d72]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.dock-panel-leave-active[data-v-744a8d72]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.dock-panel-enter-from[data-v-744a8d72],.dock-panel-leave-to[data-v-744a8d72]{opacity:0;transform:translateY(var(--motion-panel-shift)) scale(var(--motion-panel-scale))}.ws-home[data-v-33dedf8a]{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);padding:0 var(--space-4) var(--space-4);user-select:none}.ws-home-title[data-v-33dedf8a]{display:flex;align-items:center;gap:10px;color:var(--color-text);font-size:var(--ui-t1);font-weight:var(--weight-section-label)}.ws-home-folder[data-v-33dedf8a]{color:var(--color-text-muted)}.ws-home-path[data-v-33dedf8a]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs[data-v-460203b8]{flex:none;display:flex;flex-direction:column;margin:var(--space-4) var(--dock-inline-right, 16px) 0 var(--dock-inline-left, 16px)}.wrs-caption[data-v-460203b8]{padding:0 var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.wrs-row[data-v-460203b8]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-width:0;padding:6px var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.wrs-row[data-v-460203b8]:hover{background:var(--color-hover)}.wrs-row[data-v-460203b8]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.wrs-ico[data-v-460203b8]{display:inline-flex;flex:none}.wrs-ico--open[data-v-460203b8]{color:var(--color-success)}.wrs-ico--done[data-v-460203b8]{color:var(--color-done)}.wrs-title[data-v-460203b8]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs-time[data-v-460203b8]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.wrs-foot[data-v-460203b8]{display:flex;justify-content:center;margin-top:var(--space-2)}.wrs-more[data-v-460203b8]{display:inline-flex;align-items:center;gap:var(--space-1);height:26px;padding:0 var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.wrs-more[data-v-460203b8]:hover{background:var(--color-hover);color:var(--color-text)}.wrs-more svg[data-v-460203b8]{color:var(--color-text-faint)}.tsearch[data-v-43f7fb07]{position:absolute;top:calc(var(--panel-head-h, 48px) + var(--space-3));right:var(--space-3);z-index:var(--z-sticky);width:min(var(--p-findbar-w),calc(100% - var(--space-3) * 2));background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tsearch.mobile[data-v-43f7fb07]{top:var(--space-3)}.tsearch[data-v-43f7fb07]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-2xl);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.tsearch[data-v-43f7fb07]:focus-within:after{opacity:1}.tsearch-main[data-v-43f7fb07]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);min-height:calc(var(--space-8) + 2 * var(--space-1))}.tsearch-icon[data-v-43f7fb07]{flex:none;margin-left:var(--space-1);color:var(--color-text-muted)}.tsearch-input[data-v-43f7fb07]{flex:1;min-width:0;height:var(--space-8);padding:0;border:none;background:transparent;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text)}.tsearch-input[data-v-43f7fb07]:focus-visible{outline:none}.tsearch-input[data-v-43f7fb07]::placeholder{color:var(--color-text-muted)}.tsearch-spin[data-v-43f7fb07]{display:inline-flex;flex:none}.tsearch-sep[data-v-43f7fb07]{flex:none;width:var(--p-hairline);height:var(--space-4);background:var(--color-line)}.tsearch .tsearch-close[data-v-43f7fb07]{border-radius:var(--radius-full)}.tsearch-foot-wrap[data-v-43f7fb07]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.tsearch-foot-wrap.open[data-v-43f7fb07]{grid-template-rows:1fr}.tsearch-foot[data-v-43f7fb07]{overflow:hidden;min-height:0;display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2)}.tsearch-foot-wrap.open .tsearch-foot[data-v-43f7fb07]{padding:var(--space-1) var(--space-2);border-top:var(--p-hairline) solid var(--color-line)}.tsearch-count[data-v-43f7fb07]{margin-left:auto;padding-right:var(--space-1);font-size:var(--ui-font-size-sm);color:var(--color-text-muted);white-space:nowrap;user-select:none}.tsearch-rings[data-v-43f7fb07]{position:absolute;inset:0;pointer-events:none}.tsearch-ring[data-v-43f7fb07]{position:absolute;box-sizing:content-box;border:var(--p-findring-w) solid var(--color-warning);margin:calc(-1 * var(--p-findring-w));border-radius:var(--radius-xs);pointer-events:none}.con[data-v-e813729a]{--read-max: 760px;display:flex;flex-direction:column;min-width:0;height:100%;position:relative;container-type:inline-size}.empty-drag[data-v-e813729a]{position:absolute;top:0;left:0;right:0;height:var(--panel-head-h, 48px)}.empty-drag.macos-desktop[data-v-e813729a]{-webkit-app-region:drag}.empty-panel-btn[data-v-e813729a]{position:absolute;top:var(--space-3);right:var(--space-4);z-index:var(--z-sticky);width:var(--space-6);height:var(--space-6);border-radius:var(--radius-sm);-webkit-app-region:no-drag}.empty-panel-btn[data-v-e813729a] svg{width:var(--p-ic-sm);height:var(--p-ic-sm)}.panes[data-v-e813729a]{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;scrollbar-gutter:stable}.panes[data-v-e813729a]::-webkit-scrollbar{width:4px}.panes[data-v-e813729a]::-webkit-scrollbar-thumb{background:transparent;transition:background var(--duration-base) var(--ease-out)}.panes.scrolling[data-v-e813729a]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.panes.scrolling[data-v-e813729a]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panes.session-settling .chat[data-v-e813729a]>*:not(.chat-loading){visibility:hidden}.panes.is-following[data-v-e813729a],.panes.history-prepending[data-v-e813729a],.panes.is-pinned[data-v-e813729a]{overflow-anchor:none}.chat-layout[data-v-e813729a]{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.chat-scroll[data-v-e813729a]{flex:1;min-height:0;position:relative}.content-wrap[data-v-e813729a]{width:100%;max-width:var(--read-max);min-height:100%;box-sizing:border-box;padding-bottom:var(--chat-dock-height, 0px);display:flex;flex-direction:column;flex-shrink:0}.content-wrap.align-center[data-v-e813729a]{margin-left:auto;margin-right:auto}.content-wrap.align-left[data-v-e813729a]{margin-left:0;margin-right:auto}.content-wrap.align-mobile[data-v-e813729a]{max-width:none}@media(max-width:640px){.con.mobile[data-v-e813729a]{min-width:0;overflow:hidden}.con.mobile .panes[data-v-e813729a]{scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}.content-wrap.align-mobile[data-v-e813729a]{width:100%;min-width:0}}.empty-spacer[data-v-e813729a]{flex:1}.empty-tail[data-v-e813729a]{min-height:0;overflow-y:auto;padding-bottom:var(--space-4);box-sizing:border-box}.empty-hint[data-v-e813729a]{flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 16px 16px;color:var(--color-text);font-family:var(--font-ui);user-select:none}.empty-hint-title[data-v-e813729a]{font-size:calc(var(--ui-font-size) + 16px);font-optical-sizing:auto;font-weight:600}.empty-hint-title.is-starting[data-v-e813729a]{display:inline-flex;align-items:center;gap:9px;color:var(--dim);font-weight:400}.empty-doodle[data-v-e813729a]{width:min(340px,62vw)}.empty-hint-text[data-v-e813729a]{display:inline-block;font-size:var(--text-base);color:var(--dim);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upgrade-banner[data-v-e813729a]{flex:none;display:flex;align-items:center;gap:var(--space-3);margin:0 var(--dock-inline-right, 16px) var(--space-2) var(--dock-inline-left, 16px);padding:var(--space-2) var(--space-3);border:.5px solid var(--color-accent-bd);border-radius:var(--radius-xl);background:var(--color-accent-soft)}.upgrade-banner-icon[data-v-e813729a]{flex:none;color:var(--color-accent)}.upgrade-banner-text[data-v-e813729a]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text)}.upgrade-banner-cta[data-v-e813729a]{flex:none;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-accent);cursor:pointer}.upgrade-banner-cta[data-v-e813729a]:hover{color:var(--color-accent-hover)}.empty-composer[data-v-e813729a] .composer-card{position:relative;z-index:var(--z-sticky)}.empty-composer[data-v-e813729a]:not(.expanded) .ph{min-height:3lh}.ws-bar[data-v-e813729a]{margin-top:calc(-1 * var(--space-4));padding:calc(var(--space-4) + var(--space-2)) var(--space-2) var(--space-2);background:color-mix(in srgb,var(--color-hover) 60%,transparent);border-radius:0 0 var(--radius-2xl) var(--radius-2xl);font-family:var(--font-ui)}.ws-anchor[data-v-e813729a]{position:relative}.ws-chip[data-v-e813729a]{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;padding:var(--space-2) var(--space-3);background:none;border:none;border-radius:var(--radius-full);color:var(--color-text-muted);font-family:inherit;font-size:var(--ui-font-size-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ws-chip[data-v-e813729a]:hover,.ws-chip.open[data-v-e813729a]{background:var(--color-selected);color:var(--color-text)}.ws-chip[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-chip>.kw-icon[data-v-e813729a]{flex:none}.ws-chip-name[data-v-e813729a]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-option-label)}.ws-chip-chev[data-v-e813729a]{flex:none;transition:transform var(--duration-base) var(--ease-out)}.ws-chip.open .ws-chip-chev[data-v-e813729a]{transform:rotate(180deg)}.ws-chip.ws-ghost[data-v-e813729a]{color:var(--color-text-muted)}.ws-chip.ws-ghost[data-v-e813729a]:hover{color:var(--color-text)}.ws-backdrop[data-v-e813729a]{position:fixed;inset:0;z-index:var(--z-sticky)}.ws-panel[data-v-e813729a]{position:absolute;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);left:0;top:calc(100% + var(--space-1));z-index:var(--z-dropdown);width:max-content;min-width:min(calc(var(--space-8) * 8),100%);max-width:100%;max-height:calc(var(--space-8) * 10);overflow:hidden auto;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:var(--space-1);animation:ws-pop-e813729a var(--duration-base) var(--ease-out)}.ws-panel.up[data-v-e813729a]{top:auto;bottom:calc(100% + var(--space-1));animation-name:ws-pop-up-e813729a}@keyframes ws-pop-e813729a{0%{opacity:0;transform:translateY(calc(-1 * var(--space-1))) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ws-pop-up-e813729a{0%{opacity:0;transform:translateY(var(--space-1)) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.ws-caption[data-v-e813729a]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--color-text-faint);user-select:none}.ws-row[data-v-e813729a]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-1) var(--space-2);cursor:pointer;font-family:var(--font-ui)}.ws-row>.kw-icon[data-v-e813729a]{flex:none;color:var(--muted)}.ws-row[data-v-e813729a]:hover{background:var(--color-hover)}.ws-row.on[data-v-e813729a]{background:var(--color-selected)}.ws-row[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-info[data-v-e813729a]{flex:1;min-width:0;display:flex;flex-direction:column}.ws-name[data-v-e813729a]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-option-label);color:var(--color-text);line-height:var(--leading-normal)}.ws-path[data-v-e813729a]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:var(--weight-option-label);color:var(--muted);line-height:var(--leading-normal)}.ws-check[data-v-e813729a]{flex:none;margin-left:var(--space-3);color:var(--color-text)}.ws-divider[data-v-e813729a]{height:1px;margin:var(--space-1) var(--space-2);background:var(--line)}.ws-action[data-v-e813729a]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--dim)}.ws-action>.kw-icon[data-v-e813729a]{flex:none;color:var(--muted)}.ws-action span[data-v-e813729a]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-action[data-v-e813729a]:hover{background:var(--color-hover);color:var(--color-text)}.ws-action:hover>.kw-icon[data-v-e813729a]{color:var(--dim)}.ws-action[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chat-scroll[data-v-e813729a]{display:flex;flex-direction:column}.mobile .panes[data-v-e813729a]:has(>.chat-layout){overflow:hidden;scrollbar-gutter:auto}.newmsg-pill[data-v-e813729a]{position:absolute;left:50%;bottom:12px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:.5px solid var(--line);background:var(--panel);color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);cursor:pointer;box-shadow:var(--shadow-sm);z-index:var(--z-sticky)}.pill-chevron[data-v-e813729a]{width:12px;height:12px}.pill-enter-active[data-v-e813729a],.pill-leave-active[data-v-e813729a]{transition:opacity .2s ease,transform .2s ease}.pill-enter-from[data-v-e813729a],.pill-leave-to[data-v-e813729a]{opacity:0;transform:translate(-50%) translateY(8px)}.undo-toast[data-v-e813729a]{position:absolute;left:50%;top:60px;transform:translate(-50%);padding:8px 14px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--bg);font-size:var(--ui-font-size-sm);z-index:var(--z-sticky);box-shadow:var(--shadow-sm)}.undo-toast-text[data-v-e813729a]{display:flex;align-items:center;gap:8px}.undo-toast-enter-active[data-v-e813729a],.undo-toast-leave-active[data-v-e813729a]{transition:opacity .15s ease,transform .15s ease}.undo-toast-enter-from[data-v-e813729a],.undo-toast-leave-to[data-v-e813729a]{opacity:0;transform:translate(-50%) translateY(-6px)}.con[data-v-e813729a]{background:var(--bg)}.newmsg-pill[data-v-e813729a]{font-family:var(--sans)}.panel-tab-bar[data-v-808fd300]{position:relative;height:var(--panel-head-h);flex:none;display:flex;align-items:center;gap:var(--space-05);padding:0 var(--space-4) 0 var(--space-2);border-bottom:var(--p-hairline) solid var(--color-line)}.ptb-tabs[data-v-808fd300]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:var(--space-05);overflow-x:auto;scrollbar-width:none}.ptb-tabs[data-v-808fd300]::-webkit-scrollbar{display:none}.ptb-tab[data-v-808fd300]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:var(--panel-tab-h);padding:0 var(--space-1-5) 0 var(--panel-tab-pad-x);max-width:var(--panel-tab-max-w);min-width:0;flex:none;border-radius:var(--radius-md);background:var(--color-hover);color:var(--color-text-muted);transition:background var(--duration-fast) var(--ease-out)}.ptb-tab[data-v-808fd300]:hover{background:var(--color-selected);color:var(--color-text)}.ptb-tab.on[data-v-808fd300]{background:var(--color-selected-hover);color:var(--color-text)}.ptb-tab-main[data-v-808fd300]{display:inline-flex;align-items:center;gap:var(--space-1-5);flex:1;min-width:0;padding:0;border:none;background:none;color:inherit;font-family:var(--font-ui);font-size:var(--text-sm);white-space:nowrap;user-select:none;cursor:pointer}.ptb-tab-main[data-v-808fd300]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.ptb-t[data-v-808fd300]{overflow:hidden;text-overflow:ellipsis}.ptb-x[data-v-808fd300]{width:var(--panel-tab-x-size);height:var(--panel-tab-x-size);flex:none;padding:0;border:none;border-radius:var(--radius-xs);display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--color-text-faint);cursor:pointer}.ptb-x[data-v-808fd300]:hover{background:var(--color-well);color:var(--color-text)}.ptb-x[data-v-808fd300]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ptb-tail[data-v-808fd300]{flex:none;display:flex;align-items:center;gap:var(--space-05);padding-left:var(--space-1)}.panel-add-menu[data-v-808fd300]{position:absolute;top:calc(var(--panel-head-h) - var(--space-1-5));right:var(--space-4);z-index:var(--z-dropdown)}@media(hover:none),(max-width:640px){.ptb-x[data-v-808fd300],.ptb-tail[data-v-808fd300] .ui-icon-button{position:relative}.ptb-x[data-v-808fd300]:after{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--panel-tab-x-size)) / 2)}.ptb-tail[data-v-808fd300] .ui-icon-button:after{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.pl[data-v-445e1a28]{display:flex;flex-direction:column;justify-content:center;gap:var(--space-3);height:100%;box-sizing:border-box;width:min(var(--panel-launcher-w),100%);margin-inline:auto;padding:var(--space-2) 0}.global-preview[data-v-46c316da]{--preview-w: var(--panel-default-w);grid-column:4;grid-row:1 / -1;min-width:0;min-height:0;width:0;background:var(--bg);overflow:hidden;position:relative}.global-preview.open[data-v-46c316da]{width:var(--preview-w)}.global-preview.expanded[data-v-46c316da]{width:auto}.global-preview.mobile[data-v-46c316da]{position:fixed;inset:0;z-index:var(--z-sticky);width:auto;transition:none;border-top:var(--p-hairline) solid var(--color-text)}.panel-resize[data-v-46c316da]{position:absolute;left:var(--space-05);top:0;bottom:0}.pt-shell[data-v-46c316da]{display:flex;flex-direction:column;height:100%;box-sizing:border-box;position:relative}.global-preview:not(.mobile) .pt-shell[data-v-46c316da]{width:var(--preview-w);border-left:var(--p-hairline) solid var(--line)}.global-preview:not(.mobile).expanded .pt-shell[data-v-46c316da]{width:auto;border-left:none}.pt-body[data-v-46c316da]{flex:1;min-height:0}.pfc-host[data-v-46c316da]{position:absolute;left:0;right:0;bottom:0;z-index:var(--z-sticky);width:100%;max-width:var(--p-content-max);margin:0 auto;box-sizing:border-box;padding:0 var(--space-4) var(--space-4)}.pfc-host[data-v-46c316da]:empty{padding:0}.pt-body[data-v-46c316da]>*{height:100%;box-sizing:border-box}.session-admin[data-v-fd687e8e]{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--color-bg);font-family:var(--font-ui)}.sa-scroll[data-v-fd687e8e]{flex:1;min-height:0;overflow-y:auto}.sa-page[data-v-fd687e8e]{padding:var(--space-8) var(--space-6);display:flex;flex-direction:column;box-sizing:border-box}.sa-head[data-v-fd687e8e]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:48px;padding:0 var(--space-6);border-bottom:.5px solid var(--color-line);box-sizing:border-box}.sa-title[data-v-fd687e8e]{margin:0;font-size:var(--text-base);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);user-select:none}.sa-subtitle[data-v-fd687e8e]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.session-admin.macos-desktop .sa-head[data-v-fd687e8e]{-webkit-app-region:drag}.session-admin.macos-desktop .sa-head button[data-v-fd687e8e],.session-admin.macos-desktop .sa-head input[data-v-fd687e8e]{-webkit-app-region:no-drag}.sa-filters[data-v-fd687e8e]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)}.sa-f-label[data-v-fd687e8e]{margin-left:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);user-select:none}.sa-f-label[data-v-fd687e8e]:first-child{margin-left:0}.sa-f-actions[data-v-fd687e8e]{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:var(--space-2)}.brand-logo[data-v-0904de71]{display:block;flex:none;cursor:pointer;user-select:none;touch-action:manipulation}.nb-cards[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-2) 0 var(--space-4)}.center-body[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-8) 0 var(--space-4);text-align:center}.center-text[data-v-58e7d2aa]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.success-text[data-v-58e7d2aa]{color:var(--color-success)}.err-text[data-v-58e7d2aa]{color:var(--color-danger)}.warn-text[data-v-58e7d2aa]{color:var(--color-warning);font-size:var(--text-base)}.center-hint[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted)}.nb[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-4)}.nb-hero[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.nb-hero-icon[data-v-58e7d2aa]{display:inline-flex;margin-bottom:var(--space-1)}.nb-hero-title[data-v-58e7d2aa]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.nb-hero-hint[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.nb-manual[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.nb-manual-label[data-v-58e7d2aa]{font-size:var(--text-xs);color:var(--color-text-faint)}.nb-copy-text[data-v-58e7d2aa]{margin-left:var(--space-2)}.nb-copy-text.is-copied[data-v-58e7d2aa]{color:var(--color-success);text-decoration:none}.nb-or[data-v-58e7d2aa]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.nb-or[data-v-58e7d2aa]:before,.nb-or[data-v-58e7d2aa]:after{content:"";flex:1;height:1px;background:var(--color-line)}.nb-fallback[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-2)}.nb-fb-text[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.nb-fb-link[data-v-58e7d2aa]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.nb-fb-link[data-v-58e7d2aa]:hover{border-bottom-color:var(--color-accent)}.nb-code-row[data-v-58e7d2aa]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.nb-code[data-v-58e7d2aa]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.nb-copy.is-copied[data-v-58e7d2aa]{color:var(--color-success);border-color:var(--color-success-bd)}.actions[data-v-58e7d2aa]{display:flex;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-4)}@media(max-width:640px){.center-body[data-v-58e7d2aa],.nb[data-v-58e7d2aa]{overflow-y:auto;-webkit-overflow-scrolling:touch}.nb-code-row[data-v-58e7d2aa],.actions[data-v-58e7d2aa]{flex-wrap:wrap}.nb-code[data-v-58e7d2aa]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}.nb-copy[data-v-58e7d2aa]{min-height:34px}}.sec[data-v-b460ecbf]{margin-bottom:var(--space-5)}.sec-title[data-v-b460ecbf]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-b460ecbf]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-b460ecbf]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.pu-row[data-v-b460ecbf]:first-child{border-top:none}.pu-state[data-v-b460ecbf]{color:var(--color-text-muted);font-size:var(--text-sm)}.pu-error-text[data-v-b460ecbf]{flex:1;min-width:0}.pu-empty[data-v-b460ecbf]{color:var(--color-text-faint)}.pu-main[data-v-b460ecbf]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-b460ecbf]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-b460ecbf]{font-size:var(--text-xs);color:var(--color-text-faint)}.pu-value[data-v-b460ecbf]{flex:none;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.pu-value-sub[data-v-b460ecbf]{font-weight:var(--weight-regular);color:var(--color-text-faint)}.pu-meter[data-v-b460ecbf]{flex:none;width:120px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.pu-meter i[data-v-b460ecbf]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent);transition:width var(--duration-base) var(--ease-out)}.pu-meter i.sev-warn[data-v-b460ecbf]{background:var(--color-warning)}.pu-meter i.sev-danger[data-v-b460ecbf]{background:var(--color-danger)}.sd[data-v-08ed3275]{display:grid;grid-template-columns:148px 1fr;grid-template-areas:"tabs region";min-height:0;height:100%;user-select:none}.sd[data-v-08ed3275] :is(input,textarea,[contenteditable=true]){user-select:text}.settings-region[data-v-08ed3275]{display:flex;min-width:0;min-height:0;flex-direction:column;grid-area:region}.settings-region-header[data-v-08ed3275],.settings-tabs-header[data-v-08ed3275]{display:flex;align-items:center;height:calc(var(--space-4) + var(--icon-button-sm) + var(--space-2));box-sizing:border-box}.settings-region-header[data-v-08ed3275]{justify-content:flex-end;padding-right:var(--space-5)}.settings-tabs-header[data-v-08ed3275]{padding-inline:var(--space-3)}.settings-dialog-title[data-v-08ed3275]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text)}.settings-tabs[data-v-08ed3275]{display:flex;flex-direction:column;width:148px;padding:0 var(--space-2) var(--space-2);gap:2px;overflow-y:auto;border-right:.5px solid var(--color-line);grid-area:tabs}.settings-tab-list[data-v-08ed3275]{display:flex;flex-direction:column;gap:2px}.tab[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);text-align:left;padding:8px 10px;border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-ui-strong);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.tab[data-v-08ed3275]:hover{background:var(--color-hover);color:var(--color-text-strong)}.tab.on[data-v-08ed3275]{background:var(--color-hover);color:var(--color-text)}.tab[data-v-08ed3275]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.body[data-v-08ed3275]{display:flex;flex-direction:column;overflow-y:auto;padding:var(--space-2) 32px var(--space-5);flex:1;min-width:0}.body[data-v-08ed3275]::-webkit-scrollbar{width:4px}.body[data-v-08ed3275]::-webkit-scrollbar-track{background:transparent}.body[data-v-08ed3275]::-webkit-scrollbar-thumb{background:transparent;border-radius:var(--radius-full);transition:background var(--duration-base) var(--ease-out)}.body.scrolling[data-v-08ed3275]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.body.scrolling[data-v-08ed3275]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panel[data-v-08ed3275]{display:block}.sec[data-v-08ed3275]{padding:var(--space-4) 0}.panel>.sec[data-v-08ed3275]:first-child{padding-top:0}.sec-head[data-v-08ed3275]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.sec-title[data-v-08ed3275]{margin:0 0 var(--space-3);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.notification-settings[data-v-08ed3275]{user-select:none}.sec-head .sec-title[data-v-08ed3275]{margin-bottom:0}.row[data-v-08ed3275]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:38px;padding:var(--space-1) 0}.settings-group[data-v-08ed3275]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.settings-group>.row[data-v-08ed3275]{min-height:52px;padding:var(--space-4);border-top:.5px solid var(--color-line)}.settings-group>.row[data-v-08ed3275]:first-child{border-top:none}.settings-group>.empty-config[data-v-08ed3275]{padding:var(--space-3)}.account-row[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.account-avatar[data-v-08ed3275]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.account-avatar img[data-v-08ed3275]{width:100%;height:100%;border-radius:50%;object-fit:cover}.account-name-row[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.account-level[data-v-08ed3275]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.account-meta[data-v-08ed3275]{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.account-name[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-sub[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rlabel[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);font-weight:var(--weight-option-label);display:flex;flex-direction:column;gap:0}.rvalue[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-muted);max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rvalue.mono[data-v-08ed3275]{font-family:var(--font-mono);font-size:var(--text-xs)}.rvalue-wrap[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-1);max-width:60%;min-width:0}.rvalue-wrap .rvalue[data-v-08ed3275]{max-width:none}.sd-check[data-v-08ed3275]{color:var(--color-success)}.hint[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.body[data-v-08ed3275] .ui-seg,.body[data-v-08ed3275] .ui-select__trigger,.body[data-v-08ed3275] .ui-button,.archive-search[data-v-08ed3275]{border-width:.5px}.select-wrap[data-v-08ed3275]{min-width:220px;max-width:min(320px,50vw);flex:none}.empty-config[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:var(--space-1) 0}@media(max-width:640px){.sd[data-v-08ed3275]{grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"tabs" "region"}.settings-tabs[data-v-08ed3275]{width:auto;padding:0;overflow-x:visible;border-right:none;border-bottom:.5px solid var(--color-line)}.settings-tabs-header[data-v-08ed3275]{padding:var(--space-3)}.settings-tab-list[data-v-08ed3275]{flex-direction:row;gap:var(--space-1);overflow-x:auto;padding:0 var(--space-3) var(--space-2)}.settings-region-header[data-v-08ed3275]{padding:var(--space-3)}.body[data-v-08ed3275]{padding-inline:var(--space-3)}.tab[data-v-08ed3275]{white-space:nowrap;flex:none}.row[data-v-08ed3275]{align-items:flex-start;flex-direction:column}.settings-group[data-v-08ed3275]{margin-inline:0}.select-wrap[data-v-08ed3275]{width:100%;max-width:none}}.setting-card[data-v-08ed3275]{border-radius:var(--radius-xl);overflow:hidden;background:var(--color-surface)}.panel-head[data-v-08ed3275]{margin-bottom:var(--space-4)}.panel-title[data-v-08ed3275]{margin:0 0 var(--space-2);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.panel-desc[data-v-08ed3275]{margin:0;font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);max-width:560px}.archive-toolbar[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap}.archive-search[data-v-08ed3275]{flex:1;min-width:200px;height:36px;display:flex;align-items:center;gap:var(--space-2);padding:0 var(--space-3);border-radius:var(--radius-md);border:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);background:var(--color-surface-overlay);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.archive-search[data-v-08ed3275]:focus-within{border-color:var(--color-accent);box-shadow:var(--p-focus-ring);color:var(--color-text-muted)}.archive-search svg[data-v-08ed3275]{width:15px;height:15px;flex:none}.archive-search input[data-v-08ed3275]{width:100%;border:none;outline:none;background:transparent;font:inherit;color:var(--color-text)}.archive-list[data-v-08ed3275]{display:flex;flex-direction:column;gap:var(--space-4)}.archive-card .setting-card[data-v-08ed3275]{margin-bottom:0}.archive-workspace[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);margin:0 2px var(--space-2);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:var(--weight-medium)}.archive-workspace svg[data-v-08ed3275]{width:16px;height:16px;color:var(--color-text-faint);flex:none}.archive-workspace .path[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-workspace .count[data-v-08ed3275]{margin-left:auto;color:var(--color-text-faint);font-weight:var(--weight-medium);font-size:var(--text-xs);flex:none}.archive-row[data-v-08ed3275]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3);align-items:center;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.archive-row[data-v-08ed3275]:first-child{border-top:none}.archive-row[data-v-08ed3275]:hover{background:var(--color-hover)}.archive-meta[data-v-08ed3275]{min-width:0}.archive-name[data-v-08ed3275]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-time[data-v-08ed3275]{margin-top:2px;font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui)}.archive-draining[data-v-08ed3275]{margin-bottom:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-accent-hover);font-size:var(--text-xs)}.archive-empty[data-v-08ed3275]{padding:var(--space-6) var(--space-4);border-radius:var(--radius-xl);color:var(--color-text-faint);font-size:var(--text-xs);text-align:center;background:var(--color-surface)}@media(max-width:640px){.archive-toolbar[data-v-08ed3275]{flex-direction:column;align-items:stretch}.archive-search[data-v-08ed3275]{min-width:0}}[data-v-08ed3275] .ui-dialog{width:min(980px,96vw)}[data-v-08ed3275] .ui-dialog--fixed-height{height:min(780px,calc(var(--app-height, 100vh) - var(--space-8) * 2))}.actions[data-v-aaf2e643]{padding:0 var(--space-2) var(--space-2);border-bottom:.5px solid var(--color-line);margin-bottom:var(--space-1)}.newrow[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-family:var(--sans);font-weight:var(--weight-regular);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.newrow[data-v-aaf2e643]:hover{background:var(--color-hover)}.newrow[data-v-aaf2e643]:active{background:var(--color-surface-sunken);color:var(--color-text)}.view-tabs[data-v-aaf2e643]{padding:var(--space-1) var(--space-2) var(--space-2)}.view-tabs[data-v-aaf2e643] .ui-seg{display:flex;width:100%}.view-tabs[data-v-aaf2e643] .ui-seg__item{flex:1;justify-content:center}.mlist[data-v-aaf2e643]{--m-pad: 16px;--m-gutter: 15px;--m-gap: 8px;--m-indent: calc(var(--m-pad) + var(--m-gutter) + var(--m-gap));padding-bottom:var(--space-1)}.mempty[data-v-aaf2e643]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-faint);font-size:var(--ui-font-size)}.mempty.small[data-v-aaf2e643]{padding:10px 16px 12px var(--m-indent);text-align:left;font-size:var(--ui-font-size-xs)}.mgroup[data-v-aaf2e643]{padding-top:var(--space-2)}.mgh[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--m-gap);min-height:44px;margin:0 var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.mgh[data-v-aaf2e643]:hover{background:var(--color-hover)}.mgh[data-v-aaf2e643]:active{background:var(--color-surface-sunken)}.mgh-folder[data-v-aaf2e643]{flex:none;color:var(--color-text-muted)}.mgh-name[data-v-aaf2e643]{flex:none;max-width:50%;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-path[data-v-aaf2e643]{flex:1;min-width:0;font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-more[data-v-aaf2e643]{margin:0 calc(-1 * var(--space-2))}.mgh-add[data-v-aaf2e643]{margin:0 calc(-1 * var(--space-2)) 0 0}.mgh-add[data-v-aaf2e643]:active,.mgh-more[data-v-aaf2e643]:active{color:var(--color-text);background:var(--color-hover)}.srow[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;margin:1px var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2)) 0 calc(var(--m-indent) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.srow[data-v-aaf2e643]:hover{background:var(--color-hover)}.srow[data-v-aaf2e643]:active{background:var(--color-surface-sunken)}.srow.cur[data-v-aaf2e643]{background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-bd)}.srow .t[data-v-aaf2e643]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.srow.cur .t[data-v-aaf2e643]{color:var(--color-accent-hover)}.srow .t.run[data-v-aaf2e643]{position:relative}.srow .t.run[data-v-aaf2e643]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-accent);animation:mRunPulse-aaf2e643 1.4s ease-in-out infinite}@keyframes mRunPulse-aaf2e643{0%,to{opacity:1}50%{opacity:.35}}.srow .t.aborted[data-v-aaf2e643]{position:relative}.srow .t.aborted[data-v-aaf2e643]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-danger)}.srow .time[data-v-aaf2e643]{flex:none;font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--color-text-faint)}.att[data-v-aaf2e643]{flex:none;font-family:var(--font-mono);font-size:max(9px,calc(var(--ui-font-size) - 4px));color:var(--color-text-on-accent);background:var(--color-warning);border-radius:var(--radius-full);padding:1px 7px}.srow .kb[data-v-aaf2e643]{flex:none;margin:0 calc(-1 * var(--space-2)) 0 0}.srow .kb[data-v-aaf2e643]:active{color:var(--color-text);background:var(--color-hover)}.srow-flat[data-v-aaf2e643]{min-height:52px}.srow-main[data-v-aaf2e643]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-main .t[data-v-aaf2e643]{flex:none}.srow-sub[data-v-aaf2e643]{font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kmenu[data-v-aaf2e643]{position:absolute;right:12px;top:44px;z-index:var(--z-dropdown);min-width:96px;overflow:hidden}.wsmenu[data-v-aaf2e643]{top:calc(100% - 4px);right:var(--m-pad);min-width:132px}.mshow-more-row[data-v-aaf2e643]{display:flex;align-items:center;padding-left:calc(var(--m-indent) - var(--space-3))}.mshow-more[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-1) var(--space-3);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.mshow-more[data-v-aaf2e643]:active{color:var(--color-accent-hover);background:var(--color-hover)}.mshow-more-sep[data-v-aaf2e643]{margin:0 var(--space-1);color:var(--color-text-faint);user-select:none}.group-title[data-v-1cc183d4]{padding:var(--space-4) max(var(--space-4),var(--safe-right)) var(--space-2) max(var(--space-4),var(--safe-left));font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.group-title[data-v-1cc183d4]:first-child{padding-top:0}.card[data-v-1cc183d4]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));background:var(--color-surface);border-radius:var(--radius-xl);overflow:hidden}.card>.srow[data-v-1cc183d4]{border-radius:0}.card>.srow+.srow[data-v-1cc183d4]{border-top:.5px solid var(--color-line)}.srow[data-v-1cc183d4]:disabled{opacity:.5;cursor:not-allowed}.srow[data-v-1cc183d4]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:var(--space-3) var(--space-4);background:none;border:none;border-radius:var(--radius-md);cursor:pointer;text-align:left;color:var(--color-text)}.srow[data-v-1cc183d4]:hover:not(.read-only){background:var(--color-hover)}.srow[data-v-1cc183d4]:active:not(.read-only){background:var(--color-surface-sunken)}.srow.read-only[data-v-1cc183d4]{cursor:default}.srow-main[data-v-1cc183d4]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-label[data-v-1cc183d4]{font-size:var(--text-base);color:var(--color-text)}.srow-sub[data-v-1cc183d4]{font-size:var(--text-base);color:var(--color-text-faint);overflow-wrap:anywhere}.back-row[data-v-1cc183d4]{min-height:var(--touch-target-min);color:var(--color-text-muted)}.back-row[data-v-1cc183d4]:hover{color:var(--color-text)}.providers-page[data-v-1cc183d4]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.providers-page[data-v-1cc183d4] .pp-title{display:none}.srow-val[data-v-1cc183d4]{flex:none;font-family:var(--font-mono);font-size:var(--ui-font-size);font-weight:500;color:var(--color-accent-hover)}.srow-val.dim[data-v-1cc183d4]{font-weight:400;color:var(--color-text-muted)}.cache-note[data-v-1cc183d4]{padding:var(--space-1) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));font-size:var(--text-xs);color:var(--color-text-faint);line-height:1.4}.chev[data-v-1cc183d4]{flex:none;color:var(--color-text-faint);font-size:17px;line-height:1}.toggle[data-v-1cc183d4]{flex:none;width:44px;height:26px;border-radius:var(--radius-full);background:var(--color-line);position:relative;transition:background .18s}.toggle.on[data-v-1cc183d4]{background:var(--color-accent)}.toggle[data-v-1cc183d4]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:var(--radius-full);box-sizing:border-box;background:var(--color-bg);border:.5px solid var(--color-line);box-shadow:var(--shadow-xs);transition:left .18s}.toggle.on[data-v-1cc183d4]:after{left:21px}.srow.pref[data-v-1cc183d4]{flex-wrap:wrap;cursor:default}.srow.pref .srow-main[data-v-1cc183d4]{flex:1 0 100%}.srow.acct.in .srow-label[data-v-1cc183d4]{color:var(--color-accent-hover);font-weight:500}.srow.acct.out .srow-label[data-v-1cc183d4]{color:var(--color-danger)}.acct-avatar[data-v-1cc183d4]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.acct-avatar img[data-v-1cc183d4]{width:100%;height:100%;border-radius:50%;object-fit:cover}.acct-name-row[data-v-1cc183d4]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.acct-name-row .srow-label[data-v-1cc183d4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acct-level[data-v-1cc183d4]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.usage[data-v-1cc183d4]{margin:var(--space-4) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.usage[data-v-1cc183d4] .sec{margin-bottom:0}.ctx-meter[data-v-1cc183d4]{flex:none;width:96px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.ctx-meter i[data-v-1cc183d4]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent)}.srow[data-v-1cc183d4],.srow-sub[data-v-1cc183d4],.srow-val[data-v-1cc183d4],.cache-note[data-v-1cc183d4]{font-family:var(--sans)}.ls-cards[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-3)}.ls-card-icon[data-v-f3de50df]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--color-text-muted)}.ls-card-text[data-v-f3de50df]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ls-card-title[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-card-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-done-card[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-success-bd);border-radius:var(--radius-lg)}.ls-done-badge[data-v-f3de50df]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-full);background:var(--color-success-soft);color:var(--color-success);flex:none}.ls-flow[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-center[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-6) 0 var(--space-2);text-align:center}.ls-center-text[data-v-f3de50df]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.ls-success-text[data-v-f3de50df]{color:var(--color-success)}.ls-err-text[data-v-f3de50df]{color:var(--color-danger)}.ls-warn-text[data-v-f3de50df]{color:var(--color-warning)}.ls-center-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted)}.ls-device[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-hero[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.ls-hero-icon[data-v-f3de50df]{display:inline-flex;margin-bottom:var(--space-1)}.ls-hero-title[data-v-f3de50df]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-hero-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.ls-manual[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.ls-manual-label[data-v-f3de50df]{font-size:var(--text-xs);color:var(--color-text-faint)}.ls-copy-text[data-v-f3de50df]{margin-left:var(--space-2)}.ls-copy-text.is-copied[data-v-f3de50df]{color:var(--color-success);text-decoration:none}.ls-or[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.ls-or[data-v-f3de50df]:before,.ls-or[data-v-f3de50df]:after{content:"";flex:1;height:1px;background:var(--color-line)}.ls-fb-text[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-fb-link[data-v-f3de50df]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.ls-fb-link[data-v-f3de50df]:hover{border-bottom-color:var(--color-accent)}.ls-code-row[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.ls-code[data-v-f3de50df]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.ls-copy.is-copied[data-v-f3de50df]{color:var(--color-success);border-color:var(--color-success-bd)}.ls-actions[data-v-f3de50df]{display:flex;justify-content:flex-end;gap:var(--space-3)}@media(max-width:640px){.ls-code-row[data-v-f3de50df],.ls-actions[data-v-f3de50df]{flex-wrap:wrap}.ls-code[data-v-f3de50df]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}}.wizard[data-v-2e9dc37d]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;flex-direction:column;background:var(--color-bg);color:var(--color-text);overflow-y:auto;font-family:var(--font-ui)}.wiz-body[data-v-2e9dc37d]{flex:1;display:flex;flex-direction:column;align-items:center;width:min(560px,100%);margin:0 auto;padding:max(var(--space-8),12vh) var(--space-5) var(--space-6)}.wiz-step[data-v-2e9dc37d]{display:flex;flex-direction:column;align-items:center;width:100%;flex:1;min-height:0}.wiz-step-fill[data-v-2e9dc37d]{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;width:100%}.wiz-title[data-v-2e9dc37d]{margin:var(--space-4) 0 0;font-size:var(--text-2xl);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);text-align:center}.wiz-sub[data-v-2e9dc37d]{margin:var(--space-2) 0 var(--space-6);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted);text-align:center;max-width:460px}.pref-group[data-v-2e9dc37d]{width:100%;margin-bottom:var(--space-5)}.pref-label[data-v-2e9dc37d]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);margin-bottom:var(--space-2)}.opt-card[data-v-2e9dc37d]{display:flex;align-items:center;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.opt-card[data-v-2e9dc37d]:hover{border-color:var(--color-line-strong)}.opt-card[data-v-2e9dc37d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.opt-card.selected[data-v-2e9dc37d]{border-color:var(--color-accent);background:var(--color-accent-soft)}.opt-label[data-v-2e9dc37d]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.lang-cards[data-v-2e9dc37d]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3);width:100%}.lang-card[data-v-2e9dc37d]{gap:var(--space-3);padding:var(--space-4)}.opt-radio[data-v-2e9dc37d]{width:18px;height:18px;border-radius:var(--radius-full);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;display:inline-flex;align-items:center;justify-content:center;transition:border-color var(--duration-fast) var(--ease-out)}.opt-radio[data-v-2e9dc37d]:after{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:transparent;transition:background var(--duration-fast) var(--ease-out)}.opt-radio.on[data-v-2e9dc37d]{border-color:var(--color-accent)}.opt-radio.on[data-v-2e9dc37d]:after{background:var(--color-accent)}.theme-cards[data-v-2e9dc37d]{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3);width:100%}.theme-card[data-v-2e9dc37d]{flex-direction:column;gap:var(--space-3);padding:var(--space-3)}.tp[data-v-2e9dc37d]{display:flex;width:100%;aspect-ratio:16 / 10;border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.tp-light[data-v-2e9dc37d]{background:#fff}.tp-dark[data-v-2e9dc37d]{background:#0d1117}.tp-half[data-v-2e9dc37d]{flex:1;display:flex;min-width:0}.tp-half-light[data-v-2e9dc37d]{background:#fff}.tp-half-dark[data-v-2e9dc37d]{background:#0d1117}.tp-side[data-v-2e9dc37d]{width:30%;flex:none}.tp-light .tp-side[data-v-2e9dc37d],.tp-half-light .tp-side[data-v-2e9dc37d]{background:#0000000d}.tp-dark .tp-side[data-v-2e9dc37d],.tp-half-dark .tp-side[data-v-2e9dc37d]{background:#ffffff12}.tp-lines[data-v-2e9dc37d]{flex:1;display:flex;flex-direction:column;gap:6px;padding:14% 12%}.tp-lines span[data-v-2e9dc37d]{height:6px;border-radius:var(--radius-full)}.tp-lines span[data-v-2e9dc37d]:nth-child(1){width:62%}.tp-lines span[data-v-2e9dc37d]:nth-child(2){width:88%}.tp-lines span[data-v-2e9dc37d]:nth-child(3){width:44%}.tp-light .tp-lines span[data-v-2e9dc37d],.tp-half-light .tp-lines span[data-v-2e9dc37d]{background:#00000024}.tp-dark .tp-lines span[data-v-2e9dc37d],.tp-half-dark .tp-lines span[data-v-2e9dc37d]{background:#ffffff38}.wiz-foot[data-v-2e9dc37d]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:100%;margin-top:auto;padding:var(--space-8) 0 max(var(--space-8),8vh)}.wiz-foot-ghost[data-v-2e9dc37d]{display:flex;gap:var(--space-3);min-height:32px;align-items:center}.wiz-foot-ghost[data-v-2e9dc37d] .ui-button--ghost:not(:disabled):hover{background:transparent;color:var(--color-text)}.wiz-primary[data-v-2e9dc37d]{min-width:140px}@media(max-width:640px){.theme-cards[data-v-2e9dc37d]{gap:var(--space-2)}}.kap-root[data-v-2b13888e]{height:100vh;display:flex;flex-direction:column;background:var(--bg);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 2.5px);color:var(--color-text)}.kap-head[data-v-2b13888e]{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:.5px solid var(--line);background:var(--panel)}.kap-count[data-v-2b13888e]{color:var(--muted)}.kap-head-actions[data-v-2b13888e]{margin-left:auto;display:flex;gap:6px}.kap-head-actions button[data-v-2b13888e],.kap-view-toggle button[data-v-2b13888e]{padding:3px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font:inherit;cursor:pointer}.kap-head-actions button[data-v-2b13888e]:hover,.kap-view-toggle button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-head-actions button.on[data-v-2b13888e],.kap-view-toggle button.on[data-v-2b13888e]{color:var(--color-accent-hover);border-color:var(--color-accent-bd);background:var(--color-accent-soft)}.kap-filters[data-v-2b13888e]{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 10px;border-bottom:.5px solid var(--line)}.kap-filters select[data-v-2b13888e],.kap-filters input[type=text][data-v-2b13888e]{padding:3px 6px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--color-text);font:inherit;min-width:0}.kap-filters input[type=text][data-v-2b13888e]{flex:1;min-width:120px}.kap-check[data-v-2b13888e]{display:inline-flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}.kap-view-toggle[data-v-2b13888e]{display:flex;gap:0}.kap-view-toggle button[data-v-2b13888e]:first-child{border-radius:6px 0 0 6px;border-right:none}.kap-view-toggle button[data-v-2b13888e]:last-child{border-radius:0 6px 6px 0}.kap-list[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto}.kap-empty[data-v-2b13888e]{padding:18px 12px;color:var(--muted);text-align:center}.kap-row[data-v-2b13888e]{display:flex;align-items:baseline;gap:7px;width:100%;padding:3px 10px;border:none;border-bottom:.5px solid var(--line);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.kap-row[data-v-2b13888e]:hover{background:var(--panel2)}.kap-row.expanded[data-v-2b13888e]{background:var(--color-accent-soft)}.kap-ts[data-v-2b13888e]{flex:none;color:var(--muted)}.kap-badge[data-v-2b13888e]{flex:none;padding:0 5px;border-radius:var(--radius-sm);font-size:max(9px,calc(var(--ui-font-size) - 4.5px));font-weight:500;line-height:1.7}.b-rest[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-accent-hover)}.b-in[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-success)}.b-out[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-warning)}.b-life[data-v-2b13888e]{background:var(--panel2);color:var(--muted)}.b-err[data-v-2b13888e]{background:var(--color-warning);color:var(--bg)}.kap-label[data-v-2b13888e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kap-detail[data-v-2b13888e]{border-bottom:.5px solid var(--line);background:var(--bg);padding:6px 10px 10px}.kap-detail-actions[data-v-2b13888e]{display:flex;justify-content:flex-end;margin-bottom:4px}.kap-detail-actions button[data-v-2b13888e]{padding:2px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font:inherit;cursor:pointer}.kap-detail-actions button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-detail pre[data-v-2b13888e]{margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:calc(var(--ui-font-size) - 3px);line-height:1.45}.kap-agg[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto;padding:8px 10px}.kap-agg h4[data-v-2b13888e]{margin:8px 0 4px;font-size:calc(var(--ui-font-size) - 2.5px);color:var(--muted)}.kap-agg table[data-v-2b13888e]{width:100%;border-collapse:collapse}.kap-agg th[data-v-2b13888e],.kap-agg td[data-v-2b13888e]{padding:3px 6px;border-bottom:.5px solid var(--line);text-align:left;vertical-align:top}.kap-agg th[data-v-2b13888e]{color:var(--muted);font-weight:500}.kap-agg .num[data-v-2b13888e]{text-align:right}.kap-agg .err[data-v-2b13888e]{color:var(--color-warning);font-weight:500}.kap-agg .mono[data-v-2b13888e]{word-break:break-all}.kap-fab[data-v-21de79fc]{position:fixed;right:10px;bottom:10px;z-index:var(--z-overlay);padding:5px 9px;border:.5px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 3px);font-weight:500;letter-spacing:.04em;cursor:pointer;opacity:.75}.kap-fab[data-v-21de79fc]:hover{opacity:1;color:var(--color-accent)}.server-auth-hint[data-v-05495fe9]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.server-auth-hint code[data-v-05495fe9]{padding:1px 5px;font-family:var(--font-mono);font-size:var(--text-xs);background:var(--color-surface-sunken);border-radius:var(--radius-xs)}.internal-build-tag[data-v-439d3299]{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#f5a623;color:#3a2a00;font-size:11px;font-weight:700;letter-spacing:.01em;line-height:1.4;white-space:nowrap;user-select:none}.gload-fade-leave-active[data-v-fde40654]{transition:opacity .28s ease}.gload-fade-leave-to[data-v-fde40654]{opacity:0}.action-toast-enter-active[data-v-fde40654],.action-toast-leave-active[data-v-fde40654]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.action-toast-leave-active[data-v-fde40654]{transition-duration:var(--duration-fast);pointer-events:none}.action-toast-enter-from[data-v-fde40654],.action-toast-leave-to[data-v-fde40654]{opacity:0;transform:translateY(-6px)}.app-shell[data-v-fde40654]{position:fixed;top:var(--app-top, 0px);left:0;right:0;height:100vh;height:100dvh;height:var(--app-height, 100dvh);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.app[data-v-fde40654]{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:auto 0 minmax(0,1fr) auto;background:var(--bg);color:var(--color-text);overflow:hidden;box-sizing:border-box}.app[data-v-fde40654]>*{min-height:0;min-width:0}.app>.side[data-v-fde40654]{grid-column:1}.side-handle[data-v-fde40654]{grid-column:2}.app:not(.mobile)>.con[data-v-fde40654]{grid-column:3}.app.panel-expanded[data-v-fde40654]{grid-template-columns:auto 0 0 minmax(0,1fr)}.app.panel-expanded>.con[data-v-fde40654]{display:none}.sidebar-toggle-btn[data-v-fde40654]{position:absolute;top:11px;left:16px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-fde40654 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .sidebar-toggle-btn[data-v-fde40654]{left:84px;animation:none}.new-chat-btn[data-v-fde40654]{position:absolute;top:11px;left:42px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-fde40654 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .new-chat-btn[data-v-fde40654]{left:110px}@keyframes sidebar-toggle-btn-in-fde40654{0%{opacity:0}}.internal-build-fab[data-v-fde40654]{position:absolute;right:var(--space-3);bottom:var(--space-3);z-index:var(--z-sticky);pointer-events:none}.app.mobile[data-v-fde40654]{grid-template-columns:1fr;grid-template-rows:auto 1fr}:root{--panel-head-h: 48px;--panel-head-inset: calc((var(--panel-head-h) - var(--icon-button-sm)) / 2)}.app.panel-expanded.sidebar-collapsed .panel-tab-bar{padding-left:var(--header-collapsed-clearance)}.app.panel-expanded.sidebar-collapsed.macos-desktop .panel-tab-bar{padding-left:var(--header-collapsed-clearance-macos)}.app.sidebar-collapsed .session-admin .sa-head{padding-left:var(--header-collapsed-clearance)}.app.sidebar-collapsed.windows-desktop .session-admin .sa-head{padding-left:var(--space-6)}.app.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:var(--header-collapsed-clearance-macos)}.app.fullscreen.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:var(--header-collapsed-clearance)}.app.macos-desktop .global-preview .ui-panel-header{-webkit-app-region:drag}.app.macos-desktop .global-preview .ui-panel-header button,.app.macos-desktop .global-preview .ui-panel-header input{-webkit-app-region:no-drag}.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .chat-header,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .side .ch,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .global-preview .ui-panel-header{-webkit-app-region:no-drag}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--dim: rgba(0, 0, 0, .6);--muted: rgba(0, 0, 0, .45);--faint: rgba(0, 0, 0, .3);--line: var(--color-line);--line2: var(--color-subtle);--canvas: #f9fbfc;--sh: 0 1px 3px rgba(28, 40, 66, .05), 0 6px 18px rgba(28, 40, 66, .06);--shc: 0 1px 2px rgba(28, 40, 66, .05);--panel: #f5f5f5;--panel2: rgba(0, 0, 0, .05);--bg: #ffffff;--blue: #1783ff;--blue2: #167ff7;--soft: #e8f3ff;--bd: rgba(23, 131, 255, .25);--logo: #1783ff;--bluebg: #e8f3ff;--blueln: rgba(23, 131, 255, .25);--ok: #0e7a38;--warn: #a9610a;--star: #eab308;--err: #c0392b;--hover: var(--color-hover);--r-xs: var(--radius-sm);--r-sm: var(--radius-md);--r-md: var(--radius-lg);--r-lg: var(--radius-xl);--ui-font-size: var(--ui-b2);--ui-font-size-sm: calc(var(--ui-font-size) - 1px);--ui-font-size-xs: calc(var(--ui-font-size) - 2px);--ui-font-size-lg: calc(var(--ui-font-size) + 1px);--ui-font-size-xl: calc(var(--ui-font-size) + 2px);--content-font-size: var(--md-b1);--code-font-size: calc(var(--content-font-size) - 2px);--mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--sans: var(--font-ui);color-scheme:light dark}html[data-color-scheme=light]{color-scheme:light}html[data-color-scheme=system]{color-scheme:light dark}html[data-color-scheme=dark]{color-scheme:dark;--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}}:root{--color-bg: #ffffff;--color-surface: #f5f5f5;--color-surface-raised: #ffffff;--color-surface-overlay: #ffffff;--color-surface-sunken: #f5f5f5;--color-inline-code-bg: rgba(0, 0, 0, .03);--color-well: #f5f5f5;--color-surface-deep: #f5f5f5;--color-media-alpha-bg-1: color-mix(in srgb, var(--color-bg) 52%, var(--color-text) 48%);--color-media-alpha-bg-2: color-mix(in srgb, var(--color-bg) 42%, var(--color-text) 58%);--media-alpha-canvas: conic-gradient( var(--color-media-alpha-bg-1) 25%, var(--color-media-alpha-bg-2) 0 50%, var(--color-media-alpha-bg-1) 0 75%, var(--color-media-alpha-bg-2) 0 ) 0 0 / 16px 16px;--color-text: rgba(0, 0, 0, .9);--color-text-strong: #000000;--color-text-muted: rgba(0, 0, 0, .6);--color-text-faint: rgba(0, 0, 0, .45);--color-text-on-accent: #ffffff;--color-line: rgba(0, 0, 0, .13);--color-subtle: rgba(0, 0, 0, .05);--color-line-strong: rgba(0, 0, 0, .15);--color-scrim: rgba(0, 0, 0, .4);--color-scrim-strong: rgba(0, 0, 0, .6);--color-text-on-scrim: #ffffff;--color-selected: rgba(0, 0, 0, .05);--color-selected-hover: rgba(0, 0, 0, .08);--color-hover: rgba(0, 0, 0, .03);--color-sidebar-bg: #f9fbfc;--color-user-bubble-bg: #f5f5f5;--color-accent: #1783ff;--color-accent-hover: #167ff7;--color-accent-soft: #e8f3ff;--color-accent-bd: rgba(23, 131, 255, .25);--color-success: #0e7a38;--color-success-soft: #e7f6ee;--color-success-bd: #bfe3cc;--color-warning: #a9610a;--color-warning-soft: #fbf1e0;--color-warning-bd: #f0d9b8;--color-danger: #c0392b;--color-danger-soft: #fbeaea;--color-danger-bd: #f0cccc;--color-diff-add-bg: rgba(22, 196, 86, .25);--color-diff-del-bg: rgba(255, 56, 73, .25);--color-done: #8250df;--color-done-soft: #f3e8ff;--color-done-bd: #e0ccff;--color-info: #1783ff;--color-term-magenta: #8250df;--color-term-cyan: #1b7c83;--color-term-black: #24292f;--space-05: 2px;--space-1: 4px;--space-1-5: 6px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-2xl: 20px;--radius-composer: 32px;--corner-shape-composer: superellipse(1.5);--radius-menu-row: var(--radius-sm);--corner-shape-menu: var(--corner-shape-composer);--menu-pad: 3.5px;--radius-menu-item: calc(var(--radius-lg) - var(--menu-pad) - var(--p-hairline));--radius-select-option: calc(var(--radius-md) - var(--space-1) - var(--p-hairline));--radius-dropdown-row: calc(var(--radius-lg) - var(--space-1) - var(--p-hairline));--color-menu-bg-frost: color-mix(in srgb, var(--color-bg) 70%, transparent);--color-topbar-bg-frost: color-mix(in srgb, var(--color-surface) 78%, transparent);--p-topbar-backdrop: saturate(150%) blur(12px);--color-menu-scrollbar: color-mix(in srgb, var(--color-text) 16%, transparent);--color-menu-scrollbar-hover: color-mix(in srgb, var(--color-text) 48%, transparent);--radius-full: 999px;--radius-window: 14px;--radius-window-chip: calc(var(--radius-window) - var(--space-2));--menu-scroll-fade: var(--space-5);--panel-tab-pad-x: 10px;--panel-tab-max-w: 168px;--panel-tab-x-size: 18px;--panel-tab-h: 28px;--panel-launcher-w: 288px;--panel-default-w: 460px;--menu-item-padding-block: 5px;--menu-item-padding-inline: 9px;--menu-row-hug: var(--space-1-5);--menu-rows-seam: 1px;--menu-row-gap-icon: 7px;--menu-row-padding-block: var(--space-05);--menu-row-padding-inline: calc(var(--space-4) - var(--space-3) + var(--menu-row-hug));--menu-row-touch-padding-block: 11px;--menu-scrollbar-width: 3px;--menu-scrollbar-edge: calc(var(--menu-row-hug) + var(--p-hairline) - var(--menu-scrollbar-width));--menu-scrollbar-track-inset: calc(var(--radius-lg) - var(--space-1-5));--menu-scrollbar-thumb-min: 24px;--wm-x-size: calc(var(--p-ic-sm) + var(--space-1));--wm-x-ring: var(--space-1-5);--z-base: 0;--z-raised: 1;--z-sticky: 100;--z-dropdown: 200;--z-overlay: 300;--z-modal: 400;--z-modal-dropdown: 500;--z-toast: 600;--z-tooltip: 650;--z-max: 9999;--shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);--shadow-menu: 0 6px 18px lch(0% 0 0 / .02), 0 3px 9px lch(0% 0 0 / .04), 0 1px 1px lch(0% 0 0 / .04);--color-menu-bg: rgba(255, 255, 255, .95);--p-menu-backdrop: blur(24px) saturate(1.8);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .05);--shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .08);--shadow-xl: 0 24px 64px rgba(16, 24, 40, .18), 0 8px 20px rgba(16, 24, 40, .1);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--duration-fast: .12s;--duration-base: .16s;--duration-slow: .26s;--duration-hover-intent: .25s;--duration-tooltip: .15s;--duration-spin: .7s;--duration-flash: 1.2s;--motion-panel-shift: 2px;--motion-panel-scale: .97;--color-composer-bg: #ffffff;--color-composer-line: rgba(0, 0, 0, .13);--color-composer-focus-line: rgba(0, 0, 0, .25);--color-send-bg: rgba(0, 0, 0, .9);--color-send-bg-hover: #252525;--color-send-icon: #ffffff;--color-stop-glyph: var(--color-danger);--color-send-bg-disabled: rgba(0, 0, 0, .05);--color-send-icon-disabled: rgba(0, 0, 0, .27);--opacity-send-disabled: 1;--shadow-send: 0 7px 16px -13px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .07);--shadow-send-hover: 0 8px 18px -13px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .09);--composer-send-icon-size: 28px;--font-ui-latin: "Schibsted Grotesk Variable", "Helvetica Neue", Arial;--font-ui: var(--font-ui-latin), "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-display: var(--font-ui);--font-kbd: "Schibsted Grotesk Variable", system-ui, sans-serif;--kbd-height: 18px;--kbd-min-width: 18px;--kbd-padding-x: 5px;--kbd-font-size: 11px;--font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--text-2xs: calc(var(--ui-c1) - 1px);--text-xs: var(--ui-c1);--text-sm: calc(var(--ui-b2) - 1px);--text-base: var(--ui-b2);--text-lg: var(--ui-t2);--text-xl: var(--ui-t1);--text-2xl: var(--ui-t0);--leading-solid: 1;--leading-tight: 1.25;--leading-caption: 1.4;--leading-normal: 1.5;--leading-prose: 1.6;--leading-relaxed: 1.7;--weight-regular: 400;--weight-caption: 450;--weight-option-label: 475;--weight-medium: 500;--weight-ui-strong: 525;--weight-section-label: 600;--weight-semibold: 700;--ui-shift: calc(var(--base-font, 14px) - 14px);--md-shift: var(--ui-shift);--ui-t0: min(calc(20px + var(--ui-shift)), 24px);--ui-t1: min(calc(18px + var(--ui-shift)), 22px);--ui-t2: calc(16px + var(--ui-shift));--ui-b1: calc(15px + var(--ui-shift));--ui-b2: calc(14px + var(--ui-shift));--ui-c1: calc(12px + var(--ui-shift));--ui-c2: calc(10px + var(--ui-shift));--md-h1: calc(22px + var(--md-shift));--md-h2: calc(20px + var(--md-shift));--md-h3: calc(18px + var(--md-shift));--md-b1: calc(14px + var(--md-shift));--md-b2: calc(13px + var(--md-shift));--md-b3: calc(13px + var(--md-shift));--p-focus-ring-w: 3px;--p-focus-ring: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft);--p-focus-ring-strong: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft), 0 0 0 1px var(--color-accent);--p-selection: rgba(23, 131, 255, .2);--color-code-selection: rgba(23, 131, 255, .346);--color-code-selection-text: currentColor;--code-pad-block: calc(var(--text-sm) * (var(--leading-normal) - 1) / 2);--diff-sign-col: 14px;--p-ic-sm: 14px;--p-ic-md: 16px;--p-ring-stroke: 1.5px;--p-ic-lg: 20px;--p-empty-ico: 28px;--p-hairline: .5px;--p-findring-w: 2px;--p-pill-excerpt-max: 24em;--p-tip-quote-lines: 8.5lh;--p-tip-comment-lines: 4.5lh;--p-scroll-seam-h: 18px;--p-sidebar-seam-h: 13px;--icon-button-sm: 26px;--touch-target-min: 44px;--resize-handle-step: 16px;--resize-handle-step-lg: 48px;--p-chip-num: 20px;--p-sidebar-w: 264px;--p-content-max: 760px;--p-content-wide: 920px;--p-table-max: 1040px;--p-table-cell-max: 700px;--p-findbar-w: 340px;--p-bubble-max: 78%;--p-dock-panel-h: 320px;--p-subagent-card-min: 180px;--p-slash-menu-h: 228px;--p-mention-menu-h: 296px;--p-mention-tip-w: 320px;--p-mention-tip-media-w: 300px;--p-mention-tip-media-h: 220px;--p-mention-tip-media-min-w: 190px;--p-mention-tip-media-preview-min-h: 64px;--p-mention-tip-media-check: 12px;--p-mention-tip-media-ring: 12px;--p-mention-tip-media-spin: 10px;--p-mention-tip-media-check-bg: linear-gradient(45deg, color-mix(in srgb, var(--color-bg) 7%, transparent) 25%, transparent 25%), linear-gradient(-45deg, color-mix(in srgb, var(--color-bg) 7%, transparent) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--color-bg) 7%, transparent) 75%), linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--color-bg) 7%, transparent) 75%);--p-selection-bubble-w: 280px;--p-tip-max-w: 280px;--p-mention-tip-vmargin: var(--space-3);--p-mention-tip-spinner-lift: -.1em;--opacity-stale: .55;--p-add-menu-h: var(--p-slash-menu-h);--p-bp-sm: 640px;--p-bp-md: 980px}:root,html[data-font-scale=medium]{--base-font: 14px}html[data-font-scale=small]{--base-font: 12px}html[data-font-scale=large]{--base-font: 16px}html[data-font-scale=xlarge]{--base-font: 18px}.text-ui-t0{font-size:var(--ui-t0);line-height:round(calc(var(--ui-t0) * 1.4),1px)}.text-ui-t1{font-size:var(--ui-t1);line-height:round(calc(var(--ui-t1) * 1.44),1px)}.text-ui-t2{font-size:var(--ui-t2);line-height:round(calc(var(--ui-t2) * 1.5),1px)}.text-ui-b1{font-size:var(--ui-b1);line-height:round(calc(var(--ui-b1) * 1.47),1px)}.text-ui-b2{font-size:var(--ui-b2);line-height:round(calc(var(--ui-b2) * 1.42),1px)}.text-ui-c1{font-size:var(--ui-c1);line-height:round(calc(var(--ui-c1) * 1.5),1px)}.text-ui-c2{font-size:var(--ui-c2);line-height:round(calc(var(--ui-c2) * 1.4),1px)}.text-md-h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px)}.text-md-h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.text-md-h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.text-md-b1{font-size:var(--md-b1);line-height:round(calc(var(--md-b1) * 1.625),1px)}.text-md-b2{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px)}.text-md-b3{font-size:var(--md-b3);line-height:round(calc(var(--md-b3) * 1.57),1px)}html[data-color-scheme=dark]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-code-selection: rgba(26, 136, 255, .27);--color-code-selection-text: currentColor;--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-info: #1a88ff;--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-code-selection: rgba(26, 136, 255, .27);--color-code-selection-text: currentColor;--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-info: #1a88ff;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}}:root{--color-sidebar-tint: rgba(255, 255, 255, .2)}html[data-color-scheme=dark]{--color-sidebar-tint: rgba(0, 0, 0, .12)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-sidebar-tint: rgba(0, 0, 0, .12)}}:root{--color-search-match: #ffe066;--color-search-match-current: #ffc531}html[data-color-scheme=dark]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}}::highlight(kimi-transcript-search){background-color:var(--color-search-match)}::highlight(kimi-transcript-search-current){background-color:var(--color-search-match-current)}.mention-pill,.attachment-pill,.quote-pill{display:inline-flex;align-items:baseline;gap:var(--space-05);color:var(--color-text-muted);font-weight:var(--weight-ui-strong);white-space:nowrap;text-decoration:none;vertical-align:baseline;padding-inline:var(--space-05);transition:color var(--duration-fast) var(--ease-out)}.mention-pill:hover,.attachment-pill:hover{color:var(--color-text)}.mention-pill:hover .mention-pill-icon,.attachment-pill:hover .attachment-pill-icon{color:inherit}.mention-pill.mention-file,.mention-pill.mention-skill,.attachment-pill[data-attachment-url]{cursor:pointer}.mention-pill.mention-file:hover,.mention-pill.mention-skill:hover,.attachment-pill[data-attachment-url]:hover{text-decoration:underline}.mention-pill:focus-visible,.attachment-pill:focus-visible,.quote-pill:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-sm)}.ProseMirror .mention-pill,.ProseMirror .mention-pill:hover,.ProseMirror .attachment-pill,.ProseMirror .attachment-pill:hover,.ProseMirror .quote-pill,.ProseMirror .quote-pill:hover{cursor:text;text-decoration:none}a.mention-folder{cursor:default}.mention-pill.mention-skill.mention-inert,.mention-pill.mention-skill.mention-inert:hover{cursor:default;text-decoration:none}.mention-pill-name,.attachment-pill-name,.quote-pill-name{max-width:var(--p-pill-excerpt-max);min-width:0;overflow:hidden;text-overflow:ellipsis}.mention-pill-icon,.attachment-pill-icon,.quote-pill-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);align-self:center;flex-shrink:0}.mention-pill-icon svg,.attachment-pill-icon svg,.quote-pill-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;stroke:currentColor;stroke-width:var(--p-hairline)}.mention-pill.pill-in-selection,.attachment-pill.pill-in-selection,.quote-pill.pill-in-selection{background:var(--p-selection);border-radius:var(--radius-sm)}.quote-pill{color:var(--color-accent)}.quote-pill-icon{color:inherit}.quote-pill:hover{color:var(--color-accent-hover)}.quote-pill:focus-visible{box-shadow:0 0 0 1px var(--color-accent),0 0 0 var(--p-focus-ring-w) var(--color-accent-soft)}.quote-pill-comment{max-width:var(--p-pill-excerpt-max);min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-muted);font-weight:var(--weight-regular)}.quote-pill-comment:before{content:"·";color:var(--color-text-faint);margin-inline:var(--space-1-5) var(--space-1)}.composer-text .q-sep{font-size:0;white-space:normal}.mention-tip{position:fixed;z-index:var(--z-tooltip);max-width:min(var(--p-mention-tip-w),calc(100vw - 2 * var(--p-mention-tip-vmargin)));padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);--p-tip-line: color-mix(in srgb, currentColor 18%, transparent);--p-tip-ink: color-mix(in srgb, currentColor 80%, transparent);--p-tip-ink-weak: color-mix(in srgb, currentColor 55%, transparent);font-family:var(--font-ui);font-size:var(--text-xs);line-height:round(calc(var(--text-xs) * 1.5),1px);overflow-wrap:anywhere;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.mention-tip:not(.positioned){pointer-events:none}.mention-tip.positioned{opacity:1}.mention-tip:before,.mention-tip:after{content:"";position:absolute;left:0;right:0;height:var(--space-1-5)}.mention-tip:before{bottom:100%}.mention-tip:after{top:100%}.mention-tip>*{max-height:calc(100vh - 2 * var(--p-mention-tip-vmargin) - 2 * var(--space-2));overflow-y:auto}.mention-tip-caret{position:absolute;left:var(--tip-caret-x, 50%);width:12px;height:6px;background:var(--color-text);transform:translate(-50%)}.mention-tip[data-side=top]>.mention-tip-caret{top:100%;clip-path:polygon(0 0,100% 0,50% 100%)}.mention-tip[data-side=bottom]>.mention-tip-caret{bottom:100%;clip-path:polygon(50% 0,0 100%,100% 100%)}.mention-tip-path{display:flex;align-items:flex-start;gap:var(--space-2)}.mention-tip-path-text{min-width:0}.mention-tip-sep{color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-base{font-weight:var(--weight-semibold)}.mention-tip-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.mention-tip-name{font-weight:var(--weight-semibold);overflow-wrap:anywhere}.mention-tip-open,.mention-tip-copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-05);border:none;border-radius:var(--radius-xs);background:transparent;color:color-mix(in srgb,currentColor 65%,transparent);cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-open:hover,.mention-tip-copy:hover{color:var(--color-bg);background:color-mix(in srgb,var(--color-bg) 14%,transparent)}.mention-tip-open:focus-visible,.mention-tip-copy:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-open svg,.mention-tip-copy svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-att-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--p-ic-sm);height:1lh;color:color-mix(in srgb,currentColor 65%,transparent)}.mention-tip-att-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-att-size{color:color-mix(in srgb,currentColor 65%,transparent)}.mention-tip:has(.mention-tip-quote-card){padding:var(--space-2)}.mention-tip-quote-card{min-width:0;display:flex;flex-direction:column;gap:var(--space-1-5)}.mention-tip-quote-block{min-width:0;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-xs);background:color-mix(in srgb,currentColor 6%,transparent)}.mention-tip-quote-block-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-05)}.mention-tip-quote-block-head .mention-tip-copy{margin-right:calc(-1 * var(--space-1));opacity:0;transition:opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-quote-block:hover .mention-tip-copy,.mention-tip-quote-block:focus-within .mention-tip-copy{opacity:1}@media(hover:none){.mention-tip-quote-block-head .mention-tip-copy{opacity:1}}.mention-tip-quote-block-head .mention-tip-quote-block-label{margin-bottom:0}.mention-tip-quote-block-label{margin-bottom:var(--space-05);color:var(--p-tip-ink-weak);font-size:var(--text-2xs);line-height:round(calc(var(--text-2xs) * 1.5),1px)}.mention-tip-quote-text{min-width:0;max-height:var(--p-tip-quote-lines);overflow-y:scroll;white-space:pre-wrap}.mention-tip-quote-comment{color:var(--p-tip-ink);white-space:pre-wrap;word-break:break-word;max-height:var(--p-tip-comment-lines);overflow-y:scroll}.mention-tip-quote-text,.mention-tip-quote-comment{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,currentColor 40%,transparent) transparent}.mention-tip-quote-text::-webkit-scrollbar,.mention-tip-quote-comment::-webkit-scrollbar{width:var(--space-1-5)}.mention-tip-quote-text::-webkit-scrollbar-thumb,.mention-tip-quote-comment::-webkit-scrollbar-thumb{background:color-mix(in srgb,currentColor 40%,transparent);border-radius:var(--radius-xs)}.mention-tip-quote-text::-webkit-scrollbar-track,.mention-tip-quote-comment::-webkit-scrollbar-track{background:transparent}.mention-tip-quote-source{min-width:0;color:var(--p-tip-ink-weak);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-tip-att-error{margin-top:var(--space-05);color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip--media{padding:var(--space-1-5);border-radius:var(--radius-lg)}.mention-tip-media{display:flex;flex-direction:column;gap:var(--space-1-5)}.mention-tip-media-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;min-height:var(--p-mention-tip-media-preview-min-h);border:1px solid color-mix(in srgb,var(--color-bg) 14%,transparent);border-radius:var(--radius-sm);background-color:color-mix(in srgb,var(--color-bg) 8%,transparent);background-image:var(--p-mention-tip-media-check-bg);background-size:var(--p-mention-tip-media-check) var(--p-mention-tip-media-check);background-position:0 0,0 calc(var(--p-mention-tip-media-check) / 2),calc(var(--p-mention-tip-media-check) / 2) calc(var(--p-mention-tip-media-check) / -2),calc(var(--p-mention-tip-media-check) / -2) 0;overflow:hidden}.mention-tip-media-el{display:block;max-width:var(--p-mention-tip-media-w);max-height:var(--p-mention-tip-media-h);object-fit:contain;border-radius:var(--radius-sm)}.mention-tip-media-placeholder{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-3) var(--space-3) var(--space-1);color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-media-placeholder svg{width:var(--p-ic-lg);height:var(--p-ic-lg);display:block}.mention-tip-media-hint{padding:0 var(--space-2) var(--space-2);color:color-mix(in srgb,currentColor 60%,transparent);text-align:center}.mention-tip-media-meta{display:flex;align-items:center;gap:var(--space-1);min-width:0}.mention-tip-media-name{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--weight-semibold)}.mention-tip-media-error{padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--color-bg) 8%,transparent);color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip-media-foot{display:flex;align-items:center;gap:var(--space-2);min-width:0}.mention-tip-media-state{display:inline-flex;align-items:center;gap:var(--space-1-5);flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:color-mix(in srgb,currentColor 65%,transparent);font-weight:var(--weight-medium);padding-left:var(--space-05)}.mention-tip-media-state.is-danger{color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip-media-ring,.mention-tip-media-ring svg{width:var(--p-mention-tip-media-ring);height:var(--p-mention-tip-media-ring);display:block;flex:none}.mention-tip-media-ring-track{stroke:color-mix(in srgb,currentColor 18%,transparent)}.mention-tip-media-ring-arc{stroke:color-mix(in srgb,currentColor 78%,transparent)}.mention-tip-media-spin{flex:none;width:var(--p-mention-tip-media-spin);height:var(--p-mention-tip-media-spin);border-radius:var(--radius-full);border:1.5px solid color-mix(in srgb,currentColor 18%,transparent);border-top-color:color-mix(in srgb,currentColor 78%,transparent);animation:mention-tip-media-rot var(--duration-slow) linear infinite}@keyframes mention-tip-media-rot{to{transform:rotate(360deg)}}.mention-tip-media-actions{display:flex;justify-content:flex-end;gap:var(--space-1-5);margin-left:auto;flex:none}.mention-tip-media-open{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-05) var(--space-1-5);border:none;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--color-bg) 10%,transparent);color:color-mix(in srgb,currentColor 65%,transparent);font:inherit;cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-media-open:hover{background:color-mix(in srgb,var(--color-bg) 18%,transparent);color:var(--color-bg)}.mention-tip-media-open:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-media-open svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;color:color-mix(in srgb,currentColor 45%,transparent);transition:color var(--duration-fast) var(--ease-out)}.mention-tip-media-open:hover svg{color:var(--color-bg)}.mention-tip-copy{margin-right:calc(var(--space-05) - var(--space-2))}.mention-tip-desc{margin-top:var(--space-05);color:color-mix(in srgb,currentColor 78%,transparent);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.mention-tip-spinner{display:inline-block;width:calc(var(--space-2) + var(--space-05));height:calc(var(--space-2) + var(--space-05));margin-left:var(--space-1);vertical-align:var(--p-mention-tip-spinner-lift);border-radius:50%;border:var(--p-ring-stroke) solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;animation:mention-tip-spin var(--duration-spin) linear infinite}@keyframes mention-tip-spin{to{transform:rotate(360deg)}}.mention-pill.mention-missing,.mention-pill.mention-missing:hover{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.mention-pill.mention-missing .mention-pill-icon{color:inherit}.attachment-pill.attachment-missing,.attachment-pill.attachment-missing:hover,.attachment-pill.attachment-missing .attachment-pill-icon,.attachment-pill.attachment-missing:hover .attachment-pill-icon{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.attachment-pill.attachment-error,.attachment-pill.attachment-error:hover,.attachment-pill.attachment-error .attachment-pill-icon,.attachment-pill.attachment-error:hover .attachment-pill-icon{color:var(--color-danger)}@font-face{font-family:Noto Sans SC Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/NotoSansSC_wght_-BkPpiACN.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk_wght_-DIzGrWVg.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:italic;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk-Italic_wght_-DjkBGo1z.woff2) format("woff2-variations")}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,blockquote,dl,dd,figure,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}b,strong{font-weight:var(--weight-medium)}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{margin:0;padding:0;font-family:inherit;font-size:100%;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background:transparent;background-image:none}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block}img,video{max-width:100%;height:auto}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1}table{border-collapse:collapse;border-color:inherit;text-indent:0}hr{height:0;color:inherit;border-top-width:1px}fieldset{margin:0;padding:0}legend{padding:0}dialog{padding:0}summary{display:list-item}[hidden]{display:none}@supports (interpolate-size: allow-keywords){:root{interpolate-size:allow-keywords}}:root{--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--dock-card-top-clearance: 72px;--question-card-body-min-h: 120px;--header-collapsed-clearance: 78px;--header-collapsed-clearance-macos: 146px}.kw-icon{display:inline-block;flex:none;vertical-align:-.15em}code,pre,kbd,samp,tt{font-feature-settings:"liga" 0,"calt" 0,"ss01" 0;font-variant-ligatures:none}html,body,#app{height:100%;margin:0;background:var(--bg)}#app{position:fixed;inset:0}html,body{overflow:hidden}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--color-text) 12%,transparent) transparent}}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}*::-webkit-scrollbar-corner{background:transparent}body{font-family:var(--sans);color:var(--color-text);background:var(--bg);font-size:var(--ui-font-size);font-weight:400;line-height:1.6;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto;font-synthesis:none;text-size-adjust:100%;-webkit-hyphens:none;hyphens:none}@keyframes kimi-card-in{0%{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes kimi-check-in{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.ch-eyes{animation:kimi-eye-look 16s ease-in-out infinite}.ch-eye{transform-box:fill-box;transform-origin:center;animation:kimi-eye-blink 11s ease-in-out infinite}@keyframes kimi-eye-look{0%,42%{transform:translate(0)}47%,53%{transform:translate(2px)}58%,80%{transform:translate(0)}84%,90%{transform:translate(-2px)}95%,to{transform:translate(0)}}@keyframes kimi-eye-blink{0%,94%,to{transform:scaleY(1)}96.5%,98%{transform:scaleY(.12)}}@media(prefers-reduced-motion:reduce){.ch-eyes,.ch-eye{animation:none}}.blink-now .ch-eye{animation:kimi-eye-blink-once .24s ease-in-out}@keyframes kimi-eye-blink-once{0%,to{transform:scaleY(1)}50%{transform:scaleY(.1)}}.md .markdown-renderer img{min-width:0;min-height:0}.app{font-size:var(--ui-font-size)}.md,.md .markdown-renderer,.md .markdown-renderer p,.md .markdown-renderer li,.u-bub,.u-bub .u-text,.a-msg .msg,.ph{font-size:var(--content-font-size)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:var(--md-b2)}.md,.u-bub .u-text,.a-msg .msg{text-autospace:normal}.md .code-block-container pre,.md .markstream-pre,.md .code-block-container pre code,.md .diff-pre code,.md .markdown-renderer :not(pre)>code,.md .markdown-renderer .inline-code,.a-msg code{font-size:var(--md-b3)}.md .markdown-renderer :is(h1,h2,h3,h4) :not(pre)>code,.md .markdown-renderer :is(h1,h2,h3,h4) .inline-code{font-size:.9em}.queue-item,.queue-text,.ctx-num,.model-pill,.perm-pill,.mode-pill,.compact-chip,.qcard,.qtext,.qopt,.qbtn,.srow,.srow-val{font-size:var(--ui-font-size)}.qopt-desc,.srow-label{font-size:var(--ui-font-size-sm)}.code-block-header,.code-block-header *,.diff-lang,.queue-label,.qopt-key,.qstep,.srow-sub{font-size:var(--ui-font-size-xs)}@media(max-width:640px){:root{--content-font-size: calc(var(--md-b1) + 2px)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:calc(var(--md-b2) + 2px)}}:root{--anim-rive-spin: .4167s;--anim-leftbar: .5333s;--anim-leftbar-shrink: .2s}#bar-divider{transform-box:view-box;transform-origin:9.3px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #bar-divider,button:hover #bar-divider{transform:translate(-1.5px) scaleY(.5)}#bar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(63.95833%,50.625%) scale(0)}svg:hover #bar-arrow,button:hover #bar-arrow{animation:leftbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}}#bar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(52.08333%,50.625%) scale(0)}svg:hover #bar-arrow-expand,button:hover #bar-arrow-expand{animation:leftbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow-expand{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(1);opacity:1}}#rbar-divider{transform-box:view-box;transform-origin:14.7px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #rbar-divider,button:hover #rbar-divider{transform:translate(1.5px) scaleY(.5)}#rbar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(47.91667%,50.625%) scale(0)}svg:hover #rbar-arrow,button:hover #rbar-arrow{animation:rightbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes rightbar-arrow{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(47.91667%,50.625%) scale(1);opacity:1}to{transform:translate(47.91667%,50.625%) scale(1);opacity:1}}#rbar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(47.91667%,50.625%) scale(0)}svg:hover #rbar-arrow-expand,button:hover #rbar-arrow-expand{animation:rightbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes rightbar-arrow-expand{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(47.91667%,50.625%) scale(-1);opacity:1}to{transform:translate(47.91667%,50.625%) scale(-1);opacity:1}}#p1{transform-box:view-box;transform-origin:0 0}svg:hover #p1,button:hover #p1{animation:nc-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes nc-plus-spin{0%{transform:translate(11.5px,11.5px)}8%{transform:translate(11.501px,11.48px) rotate(1.1795deg) scale(1.02022)}12%{transform:translate(11.511px,11.46px) rotate(2.8374deg) scale(1.03026)}20%{transform:translate(11.562px,11.401px) rotate(8.8167deg) scale(1.05041)}24%{transform:translate(11.608px,11.361px) rotate(13.4726deg) scale(1.06017)}32%{transform:translate(11.751px,11.278px) rotate(25.9719deg) scale(1.08008)}48%{transform:translate(12.149px,11.222px) rotate(55.8418deg) scale(1.12025)}52%{transform:translate(12.235px,11.236px) rotate(62.0737deg) scale(1.12953)}60%{transform:translate(12.371px,11.276px) rotate(72.1167deg) scale(1.14954)}68%{transform:translate(12.446px,11.346px) rotate(79.3018deg) scale(1.12048)}76%{transform:translate(12.488px,11.403px) rotate(84.2633deg) scale(1.09046)}88%{transform:translate(12.509px,11.464px) rotate(88.52deg) scale(1.04535)}to{transform:translate(12.5px,11.5px) rotate(90deg)}}#af-p1{transform-box:view-box;transform-origin:18.4px 16.3px}svg:hover #af-p1,button:hover #af-p1{animation:folder-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes folder-plus-spin{0%{transform:none}8%{transform:rotate(1.1795deg) scale(1.02022)}12%{transform:rotate(2.8374deg) scale(1.03026)}20%{transform:rotate(8.8167deg) scale(1.05041)}24%{transform:rotate(13.4726deg) scale(1.06017)}32%{transform:rotate(25.9719deg) scale(1.08008)}48%{transform:rotate(55.8418deg) scale(1.12025)}52%{transform:rotate(62.0737deg) scale(1.12953)}60%{transform:rotate(72.1167deg) scale(1.14954)}68%{transform:rotate(79.3018deg) scale(1.12048)}76%{transform:rotate(84.2633deg) scale(1.09046)}88%{transform:rotate(88.52deg) scale(1.04535)}to{transform:rotate(90deg)}} diff --git a/apps/kimi-code/dist-web/assets/index-BTY1et1y.css b/apps/kimi-code/dist-web/assets/index-BTY1et1y.css deleted file mode 100644 index 355a43408ec..00000000000 --- a/apps/kimi-code/dist-web/assets/index-BTY1et1y.css +++ /dev/null @@ -1 +0,0 @@ -.ui-action-card[data-v-aa7ca9d9]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.ui-action-card[data-v-aa7ca9d9]:hover:not(:disabled){border-color:var(--color-line-strong);background:var(--color-surface)}.ui-action-card[data-v-aa7ca9d9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.ui-action-card[data-v-aa7ca9d9]:disabled{opacity:.5;cursor:not-allowed}.ui-action-card__leading[data-v-aa7ca9d9]{align-self:flex-start;display:inline-flex;flex:none}.ui-action-card__text[data-v-aa7ca9d9]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ui-action-card__title[data-v-aa7ca9d9]{display:block;font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ui-action-card__title[data-v-aa7ca9d9] .ui-badge{margin-left:var(--space-2);vertical-align:middle}.ui-action-card__hint[data-v-aa7ca9d9]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ui-action-card__chevron[data-v-aa7ca9d9]{color:var(--color-text-faint);flex:none}.ui-tip__bubble[data-v-890c262c]{position:fixed;z-index:var(--z-tooltip);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--tip-lines);max-width:280px;padding:4px 8px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);font-family:var(--font-ui);font-size:var(--text-xs);line-height:1.35;overflow:hidden;overflow-wrap:anywhere;pointer-events:none;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.ui-tip__bubble.positioned[data-v-890c262c]{opacity:1}.ui-icon-button[data-v-2cbeca98]{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:.5px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.ui-icon-button[data-v-2cbeca98]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text)}.ui-icon-button[data-v-2cbeca98]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-icon-button[data-v-2cbeca98]:disabled{opacity:.5;cursor:not-allowed}.ui-icon-button--sm[data-v-2cbeca98]{width:var(--icon-button-sm);height:var(--icon-button-sm);border-radius:var(--radius-sm)}.ui-icon-button--md[data-v-2cbeca98]{width:32px;height:32px}.ui-icon-button--lg[data-v-2cbeca98]{width:44px;height:44px}.ui-icon-button[data-v-2cbeca98] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-icon-button--sm[data-v-2cbeca98] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-icon-button--lg[data-v-2cbeca98] svg{width:var(--p-ic-lg);height:var(--p-ic-lg)}.ui-action-toast-host[data-v-e67fcfa0]{position:fixed;top:calc(48px + var(--space-2));left:50%;translate:-50% 0;z-index:var(--z-toast);max-width:calc(100vw - 32px)}.ui-action-toast[data-v-e67fcfa0]{display:flex;align-items:center;gap:var(--space-2);padding:4px 6px 4px 14px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);font-family:var(--font-ui);font-size:var(--text-base);line-height:1.45;color:var(--color-text);white-space:nowrap}.ui-action-toast__body[data-v-e67fcfa0]{min-width:0}.ui-action-toast__body button[data-v-e67fcfa0-s]{border:0;padding:0;margin-inline:var(--space-1);background:none;color:var(--color-accent);cursor:pointer;font:inherit}.ui-action-toast__body button[data-v-e67fcfa0-s]:hover{color:var(--color-accent-hover);text-decoration:underline}.ui-action-toast__body button[data-v-e67fcfa0-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-xs)}.ui-action-toast__close[data-v-e67fcfa0]{flex:none}.ui-badge[data-v-d879fe18]{display:inline-flex;align-items:center;gap:6px;border-radius:var(--radius-full);font-family:var(--font-ui);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;border:.5px solid transparent}.ui-badge--md[data-v-d879fe18]{height:22px;padding:0 9px;font-size:var(--text-xs)}.ui-badge--sm[data-v-d879fe18]{height:18px;padding:0 7px;font-size:11px}.ui-badge__dot[data-v-d879fe18]{width:6px;height:6px;border-radius:var(--radius-full);background:currentColor;flex:none}.ui-badge--neutral[data-v-d879fe18]{background:var(--color-surface-sunken);color:var(--color-text-muted);border-color:var(--color-line)}.ui-badge--info[data-v-d879fe18]{background:var(--color-accent-soft);color:var(--color-accent-hover);border-color:var(--color-accent-bd)}.ui-badge--success[data-v-d879fe18]{background:var(--color-success-soft);color:var(--color-success);border-color:var(--color-success-bd)}.ui-badge--warning[data-v-d879fe18]{background:var(--color-warning-soft);color:var(--color-warning);border-color:var(--color-warning-bd)}.ui-badge--danger[data-v-d879fe18]{background:var(--color-danger-soft);color:var(--color-danger);border-color:var(--color-danger-bd)}.ui-badge--solid[data-v-d879fe18]{background:var(--color-text);color:var(--color-bg)}.ui-banner[data-v-6d739c6d]{display:flex;align-items:center;gap:10px;padding:10px 14px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.ui-banner__icon[data-v-6d739c6d]{display:inline-flex;flex:none}.ui-banner__icon svg[data-v-6d739c6d]{width:18px;height:18px}.ui-banner--info[data-v-6d739c6d]{background:var(--color-accent-soft);border-color:var(--color-accent-bd)}.ui-banner--warning[data-v-6d739c6d]{background:var(--color-warning-soft);border-color:var(--color-warning-bd)}.ui-banner--danger[data-v-6d739c6d]{background:var(--color-danger-soft);border-color:var(--color-danger-bd)}.ui-banner--info .ui-banner__icon[data-v-6d739c6d]{color:var(--color-accent)}.ui-banner--warning .ui-banner__icon[data-v-6d739c6d]{color:var(--color-warning)}.ui-banner--danger .ui-banner__icon[data-v-6d739c6d]{color:var(--color-danger)}.ui-spinner[data-v-476ed1b4]{display:inline-flex;flex:none;color:var(--color-accent)}.ui-spinner--xs[data-v-476ed1b4]{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-spinner--xs .ui-spinner__track[data-v-476ed1b4],.ui-spinner--xs .ui-spinner__arc[data-v-476ed1b4]{r:10.875px;stroke-width:calc(var(--p-ring-stroke) * 1.5)}.ui-spinner--xs .ui-spinner__arc[data-v-476ed1b4]{stroke-dasharray:67.7 67.7;stroke-dashoffset:45.9}.ui-spinner--sm[data-v-476ed1b4]{width:14px;height:14px}.ui-spinner--md[data-v-476ed1b4]{width:18px;height:18px}.ui-spinner--lg[data-v-476ed1b4]{width:28px;height:28px}.ui-spinner__svg[data-v-476ed1b4]{width:100%;height:100%}.ui-spinner__track[data-v-476ed1b4]{fill:none;stroke:var(--color-line);stroke-width:2.2}.ui-spinner__arc[data-v-476ed1b4]{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:56 56;stroke-dashoffset:38}.ui-button[data-v-8e78b113]{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);border:.5px solid transparent;border-radius:var(--radius-md);font-family:var(--font-ui);font-weight:var(--weight-medium);line-height:1;cursor:pointer;white-space:nowrap;transition:background var(--duration-base) var(--ease-out),border-color var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.ui-button[data-v-8e78b113]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.ui-button[data-v-8e78b113]:not(:disabled):active{transform:scale(.98)}.ui-button[data-v-8e78b113]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.ui-button--sm[data-v-8e78b113]{height:30px;padding:0 var(--space-3);font-size:var(--text-sm);border-radius:var(--radius-sm)}.ui-button--md[data-v-8e78b113]{height:36px;padding:0 var(--space-4);font-size:var(--text-base)}.ui-button--lg[data-v-8e78b113]{height:42px;padding:0 var(--space-5);font-size:15px;border-radius:var(--radius-lg)}.ui-button__content[data-v-8e78b113]{display:inline-flex;align-items:center;gap:var(--space-2)}.ui-button__content[data-v-8e78b113] svg{flex:none}.ui-button__content[data-v-8e78b113] svg:not([width]){width:1em;height:1em}.ui-button--primary[data-v-8e78b113]{background:var(--color-accent);color:var(--color-text-on-accent);border-color:var(--color-accent);box-shadow:var(--shadow-xs)}.ui-button--primary[data-v-8e78b113]:not(:disabled):hover{background:var(--color-accent-hover);border-color:var(--color-accent-hover)}.ui-button--secondary[data-v-8e78b113]{background:var(--color-surface-raised);color:var(--color-text);border-color:var(--color-line-strong);box-shadow:var(--shadow-xs)}.ui-button--secondary[data-v-8e78b113]:not(:disabled):hover{border-color:var(--color-line-strong);background:var(--color-hover)}.ui-button--ghost[data-v-8e78b113]{background:transparent;color:var(--color-text-muted);border-color:transparent}.ui-button--ghost[data-v-8e78b113]:not(:disabled):hover{background:var(--color-hover);color:var(--color-text-strong)}.ui-button--danger[data-v-8e78b113]{background:var(--color-danger);color:var(--color-text-on-accent);border-color:var(--color-danger);box-shadow:var(--shadow-xs)}.ui-button--danger[data-v-8e78b113]:not(:disabled):hover{filter:brightness(.96)}.ui-button--danger-soft[data-v-8e78b113]{background:var(--color-danger-soft);color:var(--color-danger);border-color:var(--color-danger-bd)}.ui-button--danger-soft[data-v-8e78b113]:not(:disabled):hover{background:var(--color-danger);color:var(--color-text-on-accent);border-color:var(--color-danger)}.ui-button--text[data-v-8e78b113]{height:auto;padding:0;background:transparent;border-color:transparent;border-radius:var(--radius-xs);color:var(--color-text-muted);font-size:inherit;font-weight:inherit;text-decoration:underline;text-underline-offset:2px}.ui-button--text[data-v-8e78b113]:not(:disabled):hover{color:var(--color-text)}.ui-button--text[data-v-8e78b113]:not(:disabled):active{transform:none}.ui-button.is-loading .ui-button__content[data-v-8e78b113]{opacity:.7}.ui-button .ui-button__spinner[data-v-8e78b113]{flex:none;color:inherit}.ui-button__spinner[data-v-8e78b113] .ui-spinner__track{opacity:.35}.ui-card[data-v-fbd05138]{background:var(--color-surface);border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.ui-card.is-elevated[data-v-fbd05138]{box-shadow:var(--shadow-md);border-color:transparent}.ui-card__head[data-v-fbd05138]{display:flex;align-items:center;gap:var(--space-2);padding:10px 14px;border-bottom:.5px solid var(--color-line);background:var(--color-surface);font-family:var(--font-mono);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text)}.ui-card__body[data-v-fbd05138]{padding:14px;color:var(--color-text-muted)}.ui-card__foot[data-v-fbd05138]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding:10px 14px;border-top:.5px solid var(--color-line);background:var(--color-surface)}.ctx-ring[data-v-de787cf2]{width:16px;height:16px;flex:none;transform:rotate(-90deg)}.ctx-ring-track[data-v-de787cf2]{stroke:var(--line)}.ctx-ring-fill[data-v-de787cf2]{stroke:var(--color-accent);transition:stroke-dashoffset .3s ease,stroke .3s ease}.ui-dialog__overlay[data-v-41ce75e5]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:#0d111747;animation:kimi-dialog-overlay-in-41ce75e5 var(--duration-base) var(--ease-out)}@keyframes kimi-dialog-overlay-in-41ce75e5{0%{opacity:0}to{opacity:1}}.ui-dialog[data-v-41ce75e5]{max-height:calc(100vh - var(--space-8) * 2);display:flex;flex-direction:column;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);outline:none;overflow:hidden;animation:kimi-card-in var(--duration-slow) var(--ease-out)}.ui-dialog--sm[data-v-41ce75e5]{width:min(360px,100%)}.ui-dialog--md[data-v-41ce75e5]{width:min(440px,100%)}.ui-dialog--lg[data-v-41ce75e5]{width:min(640px,100%)}.ui-dialog--xl[data-v-41ce75e5]{width:min(var(--p-content-max),100%)}.ui-dialog--fixed-height[data-v-41ce75e5]{height:min(680px,calc(100vh - var(--space-8) * 2))}.ui-dialog--grouped[data-v-41ce75e5]{background:var(--color-bg)}.ui-dialog--flush .ui-dialog__body[data-v-41ce75e5]{padding:0}.ui-dialog__head[data-v-41ce75e5]{display:flex;align-items:flex-start;gap:var(--space-3);padding:20px 22px 14px}.ui-dialog__titles[data-v-41ce75e5]{flex:1;min-width:0}.ui-dialog__title[data-v-41ce75e5]{font-size:var(--text-lg);font-weight:500;color:var(--color-text);line-height:var(--leading-tight)}.ui-dialog__desc[data-v-41ce75e5]{margin-top:4px;font-size:var(--text-base);color:var(--color-text-muted)}.ui-dialog__close[data-v-41ce75e5]{flex:none;margin-top:-2px}.ui-dialog__body[data-v-41ce75e5]{flex:1;min-height:0;padding:4px 22px 18px;color:var(--color-text);overflow:auto}.ui-dialog__foot[data-v-41ce75e5]{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px 20px}@media(max-width:640px){.ui-dialog__overlay[data-v-41ce75e5]{align-items:flex-end;padding:0}.ui-dialog[data-v-41ce75e5]{width:100%;max-width:100%;max-height:calc(var(--app-height, 100dvh) * .86);border-right:none;border-bottom:none;border-left:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;padding-bottom:var(--safe-bottom, 0px);animation:ui-dialog-sheet-up-41ce75e5 var(--duration-slow) var(--ease-out)}.ui-dialog--fixed-height[data-v-41ce75e5]{height:calc(var(--app-height, 100dvh) * .86)}}@keyframes ui-dialog-sheet-up-41ce75e5{0%{transform:translateY(101%)}to{transform:translateY(0)}}.ui-empty[data-v-6da80932]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-8) var(--space-4);text-align:center;color:var(--color-text-muted)}.ui-empty__icon[data-v-6da80932]{color:var(--color-text-faint)}.ui-empty__icon[data-v-6da80932] svg{width:48px;height:48px}.ui-empty__title[data-v-6da80932]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text-muted)}.ui-empty__hint[data-v-6da80932]{font-size:var(--text-sm);color:var(--color-text-muted)}.ui-field[data-v-a8de5f7f]{display:flex;flex-direction:column;gap:6px}.ui-field__label[data-v-a8de5f7f]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.ui-field__hint[data-v-a8de5f7f]{font-size:var(--text-xs);color:var(--color-text-faint)}.ui-field__error[data-v-a8de5f7f]{font-size:var(--text-xs);color:var(--color-danger)}.ui-input[data-v-f1cdf732]{width:100%;border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-surface-overlay);box-shadow:var(--shadow-xs);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:0 var(--space-3);transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-input--md[data-v-f1cdf732]{height:38px}.ui-input--sm[data-v-f1cdf732]{height:32px;font-size:var(--text-sm);border-radius:var(--radius-sm)}.ui-input[data-v-f1cdf732]::placeholder{color:var(--color-text-faint)}.ui-input[data-v-f1cdf732]:hover:not(:disabled):not(:focus){border-color:var(--color-line-strong)}.ui-input[data-v-f1cdf732]:focus{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-input[data-v-f1cdf732]:disabled{opacity:.5;cursor:not-allowed}.ui-input[readonly][data-v-f1cdf732]{background:var(--color-surface-sunken)}.ui-input.has-error[data-v-f1cdf732]{border-color:var(--color-danger)}.ui-input.has-error[data-v-f1cdf732]:focus{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-kbd[data-v-04b30ce2]{display:inline-flex;align-items:center;gap:3px;flex:none}.ui-kbd__key[data-v-04b30ce2]{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border:.5px solid var(--color-line);border-radius:var(--radius-xs);background:transparent;color:inherit;font-family:var(--font-kbd);font-size:11px;line-height:1}.ui-menu[data-v-18d99605]{min-width:180px;padding:var(--menu-pad);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);display:flex;flex-direction:column}.ui-menu-item[data-v-607794d8]{display:flex;align-items:center;gap:7px;width:100%;padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border:none;border-radius:var(--radius-menu-item);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight);text-align:left;cursor:pointer;transition:background var(--duration-base),color var(--duration-base)}.ui-menu-item[data-v-607794d8]:hover:not(:disabled):not(.is-active):not(.is-danger){background:var(--color-hover);color:var(--color-text-strong)}.ui-menu-item[data-v-607794d8]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-menu-item[data-v-607794d8]:disabled{opacity:.5;cursor:not-allowed}.ui-menu-item.is-active[data-v-607794d8]{background:var(--color-hover);color:var(--color-text)}.ui-menu-item.is-danger[data-v-607794d8]{color:var(--color-danger)}.ui-menu-item.is-danger[data-v-607794d8]:hover:not(:disabled){background:var(--color-danger-soft)}.ui-menu-item[data-v-607794d8] svg{display:block;width:16px;height:16px;flex:none;color:var(--muted);transition:color var(--duration-base)}.ui-menu-item[data-v-607794d8]:hover:not(:disabled):not(.is-active):not(.is-danger) svg{color:var(--color-text-strong)}.ui-menu-item.is-active[data-v-607794d8] svg{color:var(--color-text)}.ui-menu-item.is-danger[data-v-607794d8] svg{color:var(--color-danger)}.ui-menu-item--lg[data-v-607794d8]{min-height:44px;padding:12px 14px;font-size:var(--text-sm)}.ui-menu-sep[data-v-607794d8]{height:1px;margin:4px 0;background:var(--color-line)}.ui-tip[data-v-414bd903]{display:contents}.ui-panel-header[data-v-2650aff3]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:var(--panel-head-h, 48px);padding:0 var(--panel-head-inset, 11px) 0 var(--space-3);box-sizing:border-box;min-width:0;border-bottom:.5px solid var(--color-line);background:var(--color-surface-deep)}.ui-panel-header__title[data-v-2650aff3]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--weight-semibold) var(--ui-b2) var(--font-ui);color:var(--color-text)}.ui-panel-header__sub[data-v-2650aff3]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--ui-c1) var(--font-mono);color:var(--color-text-muted)}.ui-panel-header__close[data-v-2650aff3]{flex:none;margin-left:auto}.ui-panel-header.wrap[data-v-2650aff3]{flex-wrap:wrap;height:auto;min-height:var(--panel-head-h, 48px);padding-top:3px;padding-bottom:3px;gap:4px 6px}.ui-panel-header.wrap .ui-panel-header__close[data-v-2650aff3]{margin-left:0}.ui-pill[data-v-fe6a2873]{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:.5px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:default;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}button.ui-pill[data-v-fe6a2873]{cursor:pointer}button.ui-pill[data-v-fe6a2873]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text-strong)}button.ui-pill[data-v-fe6a2873]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}button.ui-pill[data-v-fe6a2873]:disabled{opacity:.5;cursor:not-allowed}.ui-pill.is-active[data-v-fe6a2873]{background:var(--color-accent-soft);color:var(--color-accent)}.ui-pill[data-v-fe6a2873] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);flex:none;color:var(--color-text-faint)}.ui-scroll-area[data-v-9c504ebc]{position:relative;min-width:0;min-height:0;overflow:hidden}.ui-scroll-area__viewport[data-v-9c504ebc]{width:100%;height:100%;overscroll-behavior:contain;scrollbar-width:none}.ui-scroll-area__viewport[data-v-9c504ebc]::-webkit-scrollbar{display:none}.ui-scroll-area__viewport[data-v-9c504ebc]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ui-scroll-area__bar[data-v-9c504ebc]{position:absolute;z-index:3;opacity:0;pointer-events:none;touch-action:none;transition:opacity var(--duration-base) var(--ease-out)}.ui-scroll-area__bar.is-visible[data-v-9c504ebc]{opacity:1;pointer-events:auto}.ui-scroll-area__bar--vertical[data-v-9c504ebc]{inset:2px 2px 2px auto;width:10px}.ui-scroll-area__bar--horizontal[data-v-9c504ebc]{inset:auto 2px 2px;height:10px}.ui-scroll-area__thumb[data-v-9c504ebc]{position:absolute;display:block;border-radius:999px;background:color-mix(in srgb,var(--color-text-muted) 62%,transparent);transition:background var(--duration-fast) var(--ease-out),width var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.ui-scroll-area__bar--vertical .ui-scroll-area__thumb[data-v-9c504ebc]{right:1px;width:4px}.ui-scroll-area__bar--horizontal .ui-scroll-area__thumb[data-v-9c504ebc]{bottom:1px;height:4px}.ui-scroll-area__bar:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__thumb[data-v-9c504ebc]:active{background:color-mix(in srgb,var(--color-text-muted) 82%,transparent)}.ui-scroll-area__bar--vertical:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__bar--vertical .ui-scroll-area__thumb[data-v-9c504ebc]:active{width:6px}.ui-scroll-area__bar--horizontal:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__bar--horizontal .ui-scroll-area__thumb[data-v-9c504ebc]:active{height:6px}.ui-seg[data-v-b09ef1d1]{position:relative;display:inline-flex;gap:2px;padding:2px;background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md)}.ui-seg__indicator[data-v-b09ef1d1]{position:absolute;top:0;left:0;z-index:0;border-radius:var(--radius-sm);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);opacity:0;pointer-events:none;transition:transform var(--duration-base) var(--ease-out),width var(--duration-base) var(--ease-out),height var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out)}.ui-seg__indicator.is-ready[data-v-b09ef1d1]{opacity:1}.ui-seg__item[data-v-b09ef1d1]{position:relative;z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-weight:var(--weight-medium);cursor:pointer;line-height:1;white-space:nowrap;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-seg__swatch[data-v-b09ef1d1]{width:7px;height:7px;border:.5px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:50%;flex:none}.ui-seg__icon[data-v-b09ef1d1]{flex:none}.ui-seg--md .ui-seg__item[data-v-b09ef1d1]{padding:5px var(--space-3);font-size:var(--text-sm)}.ui-seg--sm .ui-seg__item[data-v-b09ef1d1]{height:24px;padding:0 var(--space-2);font-size:var(--text-sm)}.ui-seg--xs .ui-seg__item[data-v-b09ef1d1]{height:20px;padding:0 var(--space-2);font-size:var(--text-xs)}.ui-seg__item[data-v-b09ef1d1]:hover:not(.is-on){color:var(--color-text)}.ui-seg__item.is-on[data-v-b09ef1d1]{color:var(--color-text)}.ui-seg__item[data-v-b09ef1d1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-select[data-v-285335af]{position:relative;width:100%;font-family:var(--font-ui)}.ui-select__trigger[data-v-285335af]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:100%;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.ui-select--md[data-v-285335af]{height:38px}.ui-select--sm[data-v-285335af]{height:32px}.ui-select--sm .ui-select__trigger[data-v-285335af]{font-size:var(--text-sm)}.ui-select__trigger[data-v-285335af]:hover:not(:disabled){border-color:var(--color-line-strong)}.ui-select__trigger[data-v-285335af]:focus-visible,.ui-select.is-open .ui-select__trigger[data-v-285335af]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-select.has-error .ui-select__trigger[data-v-285335af]{border-color:var(--color-danger)}.ui-select.has-error .ui-select__trigger[data-v-285335af]:focus-visible{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-select__value[data-v-285335af]{min-width:0;flex:1;display:flex;align-items:center;gap:var(--space-2);overflow:hidden;white-space:nowrap}.ui-select__value-text[data-v-285335af]{min-width:0;overflow:hidden;text-overflow:ellipsis}.ui-select__value.is-placeholder[data-v-285335af]{color:var(--color-text-faint)}.ui-select__icon[data-v-285335af]{flex:none;width:14px;height:14px;border-radius:3px}.ui-select__icon--option[data-v-285335af]{width:16px;height:16px;border-radius:4px}.ui-select__chevron[data-v-285335af]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.ui-select.is-open .ui-select__chevron[data-v-285335af]{transform:rotate(180deg)}.ui-select.is-disabled[data-v-285335af]{opacity:.5}.ui-select.is-disabled .ui-select__trigger[data-v-285335af]{cursor:not-allowed}.ui-select__menu[data-v-285335af]{position:fixed;z-index:var(--z-modal-dropdown);max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.ui-select__group[data-v-285335af]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.ui-select__option[data-v-285335af]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.ui-select__option.is-active[data-v-285335af]{background:var(--color-hover);color:var(--color-text-strong)}.ui-select__option[data-v-285335af]:disabled{opacity:.45;cursor:not-allowed}.ui-select__check[data-v-285335af]{flex:none;color:transparent}.ui-select__option.is-selected .ui-select__check[data-v-285335af]{color:var(--color-accent)}.kw-dot[data-v-390a778a]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-text-faint);flex:none}.kw-dot--ok[data-v-390a778a]{background:var(--color-success)}.kw-dot--error[data-v-390a778a]{background:var(--color-danger)}.kw-dot--suspended[data-v-390a778a]{background:var(--color-warning)}.kw-dot--running[data-v-390a778a]{background:var(--color-accent);position:relative}.kw-dot--running[data-v-390a778a]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-accent) 40%,transparent);animation:kw-dot-pulse-390a778a 1.4s var(--ease-out) infinite}@keyframes kw-dot-pulse-390a778a{0%{transform:scale(1);opacity:1}to{transform:scale(2.7);opacity:0}}.ui-switch[data-v-2fc56545]{position:relative;width:36px;height:20px;flex:none;padding:0;border:.5px solid var(--color-line-strong);border-radius:var(--radius-full);background:var(--color-line-strong);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ui-switch.is-on[data-v-2fc56545]{background:var(--color-accent)}.ui-switch[data-v-2fc56545]:disabled{opacity:.5;cursor:not-allowed}.ui-switch[data-v-2fc56545]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-switch__thumb[data-v-2fc56545]{position:absolute;top:1.5px;left:1.5px;width:16px;height:16px;border-radius:var(--radius-full);background:var(--color-text-on-accent);box-shadow:var(--shadow-xs);transform-origin:left center;transition:transform var(--duration-base) var(--ease-out)}.ui-switch:not(:disabled):hover .ui-switch__thumb[data-v-2fc56545]{transform:scaleX(1.125)}.ui-switch.is-on .ui-switch__thumb[data-v-2fc56545]{transform:translate(16px);transform-origin:right center}.ui-switch.is-on:not(:disabled):hover .ui-switch__thumb[data-v-2fc56545]{transform:translate(16px) scaleX(1.125)}.ui-textarea[data-v-07cc9fb9]{width:100%;min-height:84px;resize:vertical;border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-surface-overlay);box-shadow:var(--shadow-xs);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:10px 12px;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-textarea[data-v-07cc9fb9]::placeholder{color:var(--color-text-faint)}.ui-textarea.no-resize[data-v-07cc9fb9]{resize:none}.ui-textarea[data-v-07cc9fb9]:hover:not(:disabled):not(:focus){border-color:var(--color-line-strong)}.ui-textarea[data-v-07cc9fb9]:focus{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-textarea[data-v-07cc9fb9]:disabled{opacity:.5;cursor:not-allowed}.ui-textarea[readonly][data-v-07cc9fb9]{background:var(--color-surface-sunken)}.ui-textarea.has-error[data-v-07cc9fb9]{border-color:var(--color-danger)}.ui-textarea.has-error[data-v-07cc9fb9]:focus{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-toast[data-v-62bc76d1]{display:flex;align-items:flex-start;gap:11px;width:360px;max-width:100%;padding:13px 14px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);font-family:var(--font-ui);line-height:1.45}.ui-toast__icon[data-v-62bc76d1]{flex:none;width:20px;height:20px;margin-top:1px;border-radius:var(--radius-full);display:grid;place-items:center;background:var(--color-accent-soft);color:var(--color-accent)}.ui-toast__icon svg[data-v-62bc76d1]{width:12px;height:12px}.ui-toast--success .ui-toast__icon[data-v-62bc76d1]{background:var(--color-success-soft);color:var(--color-success)}.ui-toast--warning .ui-toast__icon[data-v-62bc76d1]{background:var(--color-warning-soft);color:var(--color-warning)}.ui-toast--danger .ui-toast__icon[data-v-62bc76d1]{background:var(--color-danger-soft);color:var(--color-danger)}.ui-toast--danger[data-v-62bc76d1]{border-color:color-mix(in srgb,var(--color-danger) 35%,transparent)}.ui-toast__body[data-v-62bc76d1]{flex:1;min-width:0}.ui-toast__title[data-v-62bc76d1]{font-size:var(--text-base);font-weight:500;color:var(--color-text);overflow-wrap:anywhere}.ui-toast__msg[data-v-62bc76d1]{margin-top:2px;font-size:var(--text-sm);color:var(--color-text-muted);overflow-wrap:anywhere}.ui-toast--danger .ui-toast__msg[data-v-62bc76d1]{color:var(--color-danger)}.ui-toast__close[data-v-62bc76d1]{flex:none;margin:-3px -4px 0 0}.sd-search[data-v-5bf43f78]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.sd-search[data-v-5bf43f78] .ui-input{padding-right:30px}.search-clear[data-v-5bf43f78]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-5bf43f78]{visibility:visible;opacity:1}.search-clear[data-v-5bf43f78]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-5bf43f78]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}@media(prefers-reduced-motion:reduce){.search-clear[data-v-5bf43f78]{transition:none}}.sd-body[data-v-5bf43f78]{height:100%;min-height:0;display:flex;flex-direction:column;gap:var(--space-2);padding-top:4px}.sd-list[data-v-5bf43f78]{flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2);--sd-gutter: var(--p-ic-md);--sd-gap: var(--space-2)}.sd-section[data-v-5bf43f78]{display:flex;align-items:baseline;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.sd-section-count[data-v-5bf43f78]{font-weight:var(--weight-regular)}.sd-section[data-v-5bf43f78]:first-child{padding-top:var(--space-1)}.sd-section[data-v-5bf43f78]:not(:first-child){margin-top:var(--space-1);border-top:var(--p-hairline) solid var(--color-line)}.sd-row[data-v-5bf43f78]{display:flex;flex-direction:column;gap:2px;width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:none;cursor:pointer;text-align:left;font-family:var(--font-ui);color:var(--color-text)}.sd-row[data-v-5bf43f78]:hover{background:var(--color-hover)}.sd-row.on[data-v-5bf43f78]{background:var(--color-selected)}.sd-row.active .sd-title[data-v-5bf43f78]{color:var(--color-accent-hover)}.sd-row-ws[data-v-5bf43f78]{flex-direction:row;align-items:center;gap:var(--sd-gap)}.sd-folder[data-v-5bf43f78]{flex:none;width:var(--sd-gutter);color:var(--color-text-muted)}.sd-ws-name[data-v-5bf43f78]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-ws-path[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line1[data-v-5bf43f78],.sd-line2[data-v-5bf43f78]{padding-left:calc(var(--sd-gutter) + var(--sd-gap))}.sd-line1[data-v-5bf43f78]{display:flex;align-items:baseline;gap:var(--space-2);min-width:0}.sd-title[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-time[data-v-5bf43f78]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line2[data-v-5bf43f78]{display:flex;align-items:center;gap:var(--space-1);min-width:0;font-size:var(--text-xs);color:var(--color-text-muted)}.sd-meta-ws[data-v-5bf43f78]{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-meta-sep[data-v-5bf43f78]{color:var(--color-text-faint)}.sd-meta-snippet[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-title[data-v-5bf43f78] mark,.sd-ws-name[data-v-5bf43f78] mark{background:var(--color-accent-soft);color:inherit;font-weight:var(--weight-semibold);border-radius:var(--radius-xs);padding:0 1px}.sd-line2[data-v-5bf43f78] mark,.sd-ws-path[data-v-5bf43f78] mark{background:var(--color-accent-soft);color:var(--color-text);font-weight:var(--weight-medium);border-radius:var(--radius-xs);padding:0 1px}.sd-empty[data-v-5bf43f78]{height:100%;display:flex;align-items:center;justify-content:center}.sd-foot[data-v-5bf43f78]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-hint[data-v-5bf43f78]{display:inline-flex;align-items:center;gap:var(--space-1)}.sd-dot[data-v-5bf43f78]{margin:0 var(--space-1)}.rc-dev[data-v-4dd165fb]{--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gap: var(--space-2);--sb-hover: var(--color-hover);position:relative;padding:0 var(--sb-inset) var(--space-1)}.rc-dev--mobile[data-v-4dd165fb]{padding:var(--space-1) var(--sb-inset) var(--space-2)}.rc-dev--mobile .rc-dev-trigger[data-v-4dd165fb]{min-height:44px}.rc-dev-trigger[data-v-4dd165fb]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:6px calc(var(--sb-pad-x) - var(--sb-inset));border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.rc-dev-trigger[data-v-4dd165fb]:hover,.rc-dev-trigger[aria-expanded=true][data-v-4dd165fb]{background:var(--sb-hover)}.rc-dev-trigger[data-v-4dd165fb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.rc-dev-trigger svg[data-v-4dd165fb]{flex:none}.rc-dev-name[data-v-4dd165fb]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-chevron[data-v-4dd165fb]{margin-left:auto;color:var(--color-text-faint)}.rc-dev-menu[data-v-4dd165fb]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.rc-dev-menu--mobile[data-v-4dd165fb]{position:absolute;top:100%;left:var(--sb-inset);right:var(--sb-inset);bottom:auto;max-height:min(50vh,320px);transform-origin:top center}.rc-dev-menu--mobile .rc-dev-offline[data-v-4dd165fb]{min-height:44px;padding:12px 14px}.menu-pop-enter-active[data-v-4dd165fb]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-4dd165fb]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-4dd165fb],.menu-pop-leave-to[data-v-4dd165fb]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.rc-dev-state[data-v-4dd165fb]{display:flex;align-items:center;justify-content:center;padding:var(--space-3)}.rc-dev-failed[data-v-4dd165fb]{color:var(--color-text-muted);font-size:var(--text-sm)}.rc-dev-caption[data-v-4dd165fb]{padding:var(--space-2) var(--menu-item-padding-inline) 2px;color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.rc-dev-item-name[data-v-4dd165fb]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-item-status[data-v-4dd165fb]{display:flex;align-items:center;gap:6px;flex:none;color:var(--color-text-muted)}.rc-dev-item-check[data-v-4dd165fb]{display:flex;align-items:center;justify-content:center;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.rc-dev-offline[data-v-4dd165fb]{padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border-radius:var(--radius-menu-item);color:var(--color-text-muted);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight)}.rc-dev-offline.is-current[data-v-4dd165fb]{background:var(--color-hover);color:var(--color-text)}.rc-dev-offline-row[data-v-4dd165fb]{display:flex;align-items:center;gap:7px}.rc-dev-offline-row svg[data-v-4dd165fb]{display:block;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.user-menu-trigger[data-v-7472da32]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.user-menu-trigger[data-v-7472da32]:hover,.user-menu-trigger[aria-expanded=true][data-v-7472da32]{background:var(--sb-hover)}.user-menu-trigger[data-v-7472da32]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}html.macos-desktop .user-menu-trigger[data-v-7472da32]{border-bottom-left-radius:var(--radius-window-chip)}.user-menu-trigger svg[data-v-7472da32]{flex:none}.user-menu-avatar[data-v-7472da32]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:var(--radius-full);background:var(--color-surface-sunken);color:var(--color-text-muted);overflow:hidden}.user-menu-avatar img[data-v-7472da32]{width:100%;height:100%;object-fit:cover}.user-menu-name[data-v-7472da32]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu[data-v-7472da32]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.user-submenu[data-v-7472da32]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);width:max-content;max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.menu-pop-enter-active[data-v-7472da32]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-7472da32]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-7472da32],.menu-pop-leave-to[data-v-7472da32]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.user-menu-usage[data-v-7472da32]{display:flex;flex-direction:column;gap:calc(var(--menu-item-padding-block) * 2);padding:var(--menu-item-padding-block) var(--menu-item-padding-inline)}.user-menu-usage-state[data-v-7472da32]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-1) 0;color:var(--color-text-muted);font-size:var(--text-sm)}.user-menu-usage-error[data-v-7472da32]{flex:1;min-width:0}.user-menu-usage-empty[data-v-7472da32]{color:var(--color-text-faint)}.user-menu-usage-row[data-v-7472da32]{display:grid;grid-template-columns:auto 1fr;column-gap:var(--space-3);row-gap:var(--space-05)}.user-menu-usage-label[data-v-7472da32]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:var(--leading-tight);color:var(--color-text)}.user-menu-usage-hint[data-v-7472da32]{grid-column:1 / -1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.user-menu-usage-value[data-v-7472da32]{justify-self:end;font-size:var(--text-sm);line-height:var(--leading-tight);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.user-menu-usage-value.sev-warn[data-v-7472da32]{color:var(--color-warning)}.user-menu-usage-value.sev-danger[data-v-7472da32]{color:var(--color-danger)}.user-menu-item-label[data-v-7472da32]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-login-label[data-v-7472da32]{color:var(--color-accent)}.user-menu-row-value[data-v-7472da32]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);color:var(--color-text-faint)}.emoji-picker[data-v-b0dbbae4]{--ep-cell: 26px}.ep-search[data-v-b0dbbae4]{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-1);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--color-text-faint)}.ep-search[data-v-b0dbbae4]:hover,.ep-search[data-v-b0dbbae4]:focus-within{background:var(--color-surface-sunken)}.ep-input[data-v-b0dbbae4]{flex:1;min-width:0;height:calc(var(--ep-cell) + 2px);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;outline:none}.ep-input[data-v-b0dbbae4]::placeholder{color:var(--color-text-faint)}.ep-scroll[data-v-b0dbbae4]{max-height:calc(var(--ep-cell) * 10 + var(--space-1));overflow-y:auto;padding:0 var(--space-1)}.ep-label[data-v-b0dbbae4]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.ep-grid[data-v-b0dbbae4]{display:grid;grid-template-columns:repeat(8,var(--ep-cell));gap:var(--space-1);padding-bottom:var(--space-1)}.ep-e[data-v-b0dbbae4]{height:var(--ep-cell);display:grid;place-items:center;padding:0;font-size:var(--text-lg);background:transparent;border:none;border-radius:var(--radius-xs);cursor:pointer}.ep-e[data-v-b0dbbae4]:hover{background:var(--color-hover)}.ep-e[data-v-b0dbbae4]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ep-e.sel[data-v-b0dbbae4]{background:var(--color-accent-soft)}.ep-empty[data-v-b0dbbae4]{padding:var(--space-3) var(--space-2);font-size:var(--text-xs);color:var(--color-text-faint);text-align:center;user-select:none}.se[data-v-9068e4e1]{--se-pad-x: var(--space-2);display:block;margin:0;padding:8px var(--se-pad-x);border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);cursor:pointer;position:relative}.se[data-v-9068e4e1]:hover{background:var(--sb-hover, var(--color-hover));color:var(--color-text)}.se.on[data-v-9068e4e1]{background:var(--sb-selected, var(--color-selected));color:var(--color-text)}.row[data-v-9068e4e1]{display:flex;align-items:center;gap:var(--sb-gap, 6px);min-width:0}.left[data-v-9068e4e1]{display:flex;align-items:center;flex:1;min-width:0}.lead[data-v-9068e4e1]{width:var(--sb-gutter, 16px);flex:none;display:inline-flex;align-items:center;justify-content:center}.unread-dot[data-v-9068e4e1]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.ha .complete-btn[data-v-9068e4e1]:hover{color:var(--color-success)}.t[data-v-9068e4e1]{--sb-fade: 0px;--sb-fade-len: 16px;color:inherit;font-size:var(--ui-font-size-sm);font-weight:450;line-height:var(--leading-tight);user-select:none;flex:1;min-width:0;overflow:hidden;text-overflow:clip;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.se:hover .t[data-v-9068e4e1]{--sb-fade: 34px;--sb-fade-len: 26px}.se:has(.ui-badge):hover .t[data-v-9068e4e1]{--sb-fade: 0px;--sb-fade-len: 16px}.t .emoji[data-v-9068e4e1]{padding:0;background:transparent;border:none;cursor:pointer}.t .emoji[data-v-9068e4e1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sub[data-v-9068e4e1]{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);user-select:none}.sub-icon[data-v-9068e4e1]{flex:none;color:var(--color-text-muted)}.pr[data-v-9068e4e1]{display:inline-flex;align-items:center;gap:var(--space-05);flex:none;padding:1px var(--space-1);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-2xs);font-weight:var(--weight-medium);line-height:1;cursor:pointer}.pr[data-v-9068e4e1]:hover{border-color:var(--color-line-strong)}.pr[data-v-9068e4e1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pr--open[data-v-9068e4e1],.pr--open[data-v-9068e4e1]:hover{background:var(--color-success-soft);border-color:var(--color-success-bd);color:var(--color-success)}.pr--merged[data-v-9068e4e1],.pr--merged[data-v-9068e4e1]:hover{background:var(--color-done-soft);border-color:var(--color-done-bd);color:var(--color-done)}.sub-text[data-v-9068e4e1]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ts[data-v-9068e4e1]{color:var(--color-text-faint);font-size:var(--text-xs);font-family:var(--font-ui);font-weight:475;line-height:var(--leading-tight);font-variant-numeric:tabular-nums;text-align:right}.act[data-v-9068e4e1]{position:relative;flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;gap:var(--sb-gap, 6px);min-width:var(--icon-button-sm)}.act .ha[data-v-9068e4e1]{position:absolute;top:0;bottom:0;right:calc(var(--sb-action-inset, 3px) - var(--se-pad-x));display:inline-flex;align-items:center;gap:2px;opacity:0;visibility:hidden;border-radius:var(--radius-sm);transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.se:hover .ha[data-v-9068e4e1]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.act .ts[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ts[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .st[data-v-9068e4e1]{display:inline-flex;align-items:center;transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .st[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .ui-badge[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ui-badge[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.menu[data-v-9068e4e1],.picker[data-v-9068e4e1]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-9068e4e1]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-9068e4e1],.menu-pop-leave-to[data-v-9068e4e1]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.menu-time[data-v-9068e4e1]{padding:var(--space-1) var(--space-2);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-medium);cursor:default;user-select:text}.rename-wrap[data-v-9068e4e1]{position:relative;display:flex;align-items:center;flex:1;min-width:0;background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs)}.rename-input[data-v-9068e4e1]{flex:1;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;padding:1px 4px;outline:none;min-width:0}.rename-wrap.generating .rename-input[data-v-9068e4e1]{visibility:hidden}.gen-dots[data-v-9068e4e1]{position:absolute;left:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:3px;pointer-events:none}.gen-dots i[data-v-9068e4e1]{width:3px;height:3px;border-radius:var(--radius-full, 50%);background:var(--color-accent);animation:gen-title-dot-9068e4e1 .9s var(--ease-out) infinite}.gen-dots i[data-v-9068e4e1]:nth-child(2){animation-delay:.15s}.gen-dots i[data-v-9068e4e1]:nth-child(3){animation-delay:.3s}@keyframes gen-title-dot-9068e4e1{0%,60%,to{opacity:.3;transform:translate(0)}30%{opacity:1;transform:translate(2px)}}.gen-title-btn[data-v-9068e4e1]{flex:none;margin-right:1px;color:var(--color-accent)}.gen-title-btn[data-v-9068e4e1]:hover:not(:disabled){color:var(--color-accent-hover);background:transparent}.sessions .se[data-v-9068e4e1]{margin:0;border-radius:var(--radius-sm);--se-pad-x: calc(var(--sb-pad-x, 20px) - var(--sb-inset, 12px));padding:8px var(--se-pad-x)}.sessions .se.flat+.se.flat[data-v-9068e4e1]{margin-top:var(--space-05)}.sessions .se .rename-input[data-v-9068e4e1]{border-radius:var(--radius-sm);font-family:var(--sans)}.group.dragging[data-v-8a2d5457]{opacity:.45}.group.pinned-drag-active[data-v-8a2d5457],.group.pinned-drop-hover[data-v-8a2d5457]{border-radius:var(--radius-sm)}.group.pinned-drag-active[data-v-8a2d5457]{box-shadow:inset 0 0 0 1px var(--color-accent)}.group.pinned-drop-hover[data-v-8a2d5457]{box-shadow:inset 0 0 0 2px var(--color-accent)}.group.pinned-drop-blocked[data-v-8a2d5457],.group.pinned-drop-blocked[data-v-8a2d5457] *{cursor:no-drop}.se-locate-flash[data-v-8a2d5457]{isolation:isolate}.se-locate-flash[data-v-8a2d5457]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-8a2d5457 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-8a2d5457{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-8a2d5457]:before{animation:none}}.group-sessions[data-v-8a2d5457]{height:auto;overflow:hidden;transition:height var(--duration-base) var(--ease-out)}.group-sessions.collapsed[data-v-8a2d5457]{height:0}.gh[data-v-8a2d5457]{display:flex;flex-direction:column;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text);user-select:none;position:relative;cursor:grab}.gh[data-v-8a2d5457]:active{cursor:grabbing}.gh[data-v-8a2d5457]:hover{background:var(--sb-hover, var(--color-hover))}.gh.on[data-v-8a2d5457]{background:var(--sb-selected, var(--color-selected))}.gh-top[data-v-8a2d5457]{position:relative;display:flex;align-items:center;gap:var(--sb-gap)}.gh-folder[data-v-8a2d5457]{flex:none;color:var(--color-text-muted)}.gh-name[data-v-8a2d5457]{font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.gh-actions[data-v-8a2d5457]{position:absolute;right:calc(var(--sb-action-inset) - (var(--sb-pad-x) - var(--sb-inset)));top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:var(--space-1);padding-left:var(--space-1);border-radius:var(--radius-sm);isolation:isolate;opacity:0;pointer-events:none}.gh-name[data-v-8a2d5457]{--sb-fade: 0px;--sb-fade-len: 16px;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.gh:hover .gh-name[data-v-8a2d5457],.gh:focus-within .gh-name[data-v-8a2d5457],.gh:has(.gh-actions.open) .gh-name[data-v-8a2d5457]{--sb-fade: 64px;--sb-fade-len: 26px}.gh-actions[data-v-8a2d5457]>*{position:relative;z-index:1}.gh:hover .gh-actions[data-v-8a2d5457],.gh:focus-within .gh-actions[data-v-8a2d5457],.gh-actions.open[data-v-8a2d5457]{opacity:1;pointer-events:auto}.gh-more.open[data-v-8a2d5457]{color:var(--color-text);background:var(--color-line)}.group-empty[data-v-8a2d5457]{padding:var(--space-1) var(--space-2) var(--space-1) calc(var(--sb-pad-x) - var(--sb-inset) + var(--sb-gutter) + var(--sb-gap));font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui);user-select:none}.show-more-row[data-v-8a2d5457]{display:flex;align-items:center;padding-left:calc(var(--sb-gutter) + var(--sb-gap))}.show-more[data-v-8a2d5457]{display:flex;align-items:center;gap:var(--sb-gap);margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:left;cursor:pointer}.show-more[data-v-8a2d5457]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-8a2d5457]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-sep[data-v-8a2d5457]{margin:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.show-more-label[data-v-8a2d5457]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gh-rename[data-v-8a2d5457]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none}.gh-rename[data-v-8a2d5457]{border-radius:var(--radius-sm);font-family:var(--sans)}.gh-add[data-v-8a2d5457]{color:var(--faint)}.gh-add[data-v-8a2d5457]:hover{color:var(--dim)}.pinned-label[data-v-0c30d45b]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.pinned-title[data-v-0c30d45b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-toggle[data-v-0c30d45b]{color:var(--faint);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.pinned-label:hover .pinned-toggle[data-v-0c30d45b],.pinned-label:focus-within .pinned-toggle[data-v-0c30d45b],.pinned-toggle--on[data-v-0c30d45b]{opacity:1}.pinned-toggle[data-v-0c30d45b]:hover{color:var(--dim)}.pinned-toggle svg[data-v-0c30d45b]{width:13px;height:13px}.se-locate-flash[data-v-0c30d45b]{isolation:isolate}.se-locate-flash[data-v-0c30d45b]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-0c30d45b var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-0c30d45b{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-0c30d45b]:before{animation:none}}.pinned-rows[data-v-0c30d45b]{max-height:40vh;overflow-y:auto;padding:0 var(--sb-inset);--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.pinned-rows[data-v-0c30d45b]::-webkit-scrollbar{display:none}.pinned-thumb[data-v-0c30d45b]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.pinned-thumb.visible[data-v-0c30d45b]{opacity:1;pointer-events:auto}.pinned-thumb.visible[data-v-0c30d45b]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.pinned-thumb[data-v-0c30d45b]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.pinned-rows-wrap[data-v-0c30d45b]{position:relative;margin:0 calc(var(--sb-inset) * -1);--pinned-seam-down: linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) .75%, transparent), transparent);--pinned-seam-up: linear-gradient(to top, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to top, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to top, color-mix(in srgb, var(--color-text) .75%, transparent), transparent)}.pinned-seam[data-v-0c30d45b]{position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;z-index:var(--z-raised);transition:opacity var(--duration-slow) var(--ease-out)}.pinned-seam--top[data-v-0c30d45b]{top:0;border-top:var(--p-hairline) solid var(--line);background:var(--pinned-seam-down)}.pinned-seam--bottom[data-v-0c30d45b]{bottom:0;border-bottom:var(--p-hairline) solid var(--line);background:var(--pinned-seam-up)}.pinned-rows-wrap.scrolled .pinned-seam--top[data-v-0c30d45b],.pinned-rows-wrap.more-below .pinned-seam--bottom[data-v-0c30d45b]{opacity:1}.pinned-resize[data-v-0c30d45b]{height:var(--space-1);position:relative;background:transparent;touch-action:none;margin:calc(var(--space-05) * -1) calc(var(--sb-inset) * -1);z-index:var(--z-dropdown)}.pinned-resize-bar[data-v-0c30d45b]{position:absolute;top:50%;left:0;right:0;height:var(--space-05);translate:0 -50%;background:transparent;transition:background var(--duration-fast) var(--ease-out)}.pinned-resize:hover .pinned-resize-bar[data-v-0c30d45b]{background:var(--color-selected)}.pinned-resize.dragging .pinned-resize-bar[data-v-0c30d45b]{background:var(--color-line-strong)}.pinned-resize[data-v-0c30d45b]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pin-row.dragging[data-v-0c30d45b]{opacity:.45}.pinned.drop-active[data-v-0c30d45b]{border-radius:var(--radius-sm);box-shadow:inset 0 0 0 1px var(--color-accent)}.side[data-v-e9b3eef9]{background:var(--color-sidebar-bg);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;min-width:0;height:100%;transition:width .28s cubic-bezier(.4,0,.2,1),visibility .28s;--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gutter: 16px;--sb-gap: var(--space-2);--sb-action-inset: calc((max(var(--ui-font-size-sm) * var(--leading-tight), var(--p-ic-md)) + 2 * var(--space-2) - var(--icon-button-sm)) / 2);--sb-hover: var(--color-hover);--sb-selected: color-mix(in srgb, var(--color-selected) 75%, transparent)}.side.no-anim[data-v-e9b3eef9]{transition:none}.side.collapsed[data-v-e9b3eef9]{visibility:hidden}.col[data-v-e9b3eef9]{flex:none;min-width:0;display:flex;flex-direction:column;min-height:0;width:100%;box-sizing:border-box;border-right:.5px solid var(--line);container-type:inline-size;container-name:sidebar-col;position:relative}.ch[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--space-3);min-height:calc(26px + 2 * var(--space-3));width:100%;box-sizing:border-box}.side.macos-desktop .ch[data-v-e9b3eef9]{padding-left:80px;-webkit-app-region:drag}.side.macos-desktop .ch-brand[data-v-e9b3eef9]{display:none}.ch-logo[data-v-e9b3eef9]{height:22px;width:32px;flex:none;display:block;cursor:pointer;user-select:none;touch-action:none;transition:transform .18s ease}.ch-logo[data-v-e9b3eef9]:hover{transform:scale(1.08)}.ch-brand[data-v-e9b3eef9]{display:flex;align-items:center;gap:8px;min-width:0;flex:1;user-select:none;touch-action:none}.ch-tail[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--space-2);flex:none;min-width:0;margin-left:auto}.ch-name[data-v-e9b3eef9]{font-size:var(--ui-font-size);font-weight:500;line-height:22px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container sidebar-col (max-width: 250px){.ch-name[data-v-e9b3eef9]{display:none}}.sidebar-actions[data-v-e9b3eef9]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--space-2);padding:0 var(--sb-inset) var(--space-1);position:relative;z-index:1;background:var(--color-sidebar-bg)}.sessions-head[data-v-e9b3eef9]{position:relative;z-index:1;padding:var(--space-3) var(--sb-inset) 0;border-bottom:.5px solid transparent;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.sessions-head[data-v-e9b3eef9]:after,.side-footer[data-v-e9b3eef9]:before{content:"";position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sessions-head[data-v-e9b3eef9]:after{top:100%;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.sessions-head--scrolled[data-v-e9b3eef9]{border-bottom-color:var(--line)}.sessions-head--scrolled[data-v-e9b3eef9]:after{opacity:1}.btn-new-chat[data-v-e9b3eef9]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.sidebar-actions--has-workspace-action .btn-new-chat[data-v-e9b3eef9]{grid-column:1}.btn-new-chat[data-v-e9b3eef9]:hover{background:var(--sb-hover)}.btn-new-chat[data-v-e9b3eef9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.btn-new-chat svg[data-v-e9b3eef9]{flex:none}.btn-new-chat span[data-v-e9b3eef9]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-new-chat[data-v-e9b3eef9] .ui-kbd{margin-left:auto}.btn-new-chat[data-v-e9b3eef9] .ui-kbd,.search[data-v-e9b3eef9] .ui-kbd{opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.btn-new-chat[data-v-e9b3eef9]:hover .ui-kbd,.btn-new-chat[data-v-e9b3eef9]:focus-visible .ui-kbd,.search[data-v-e9b3eef9]:hover .ui-kbd,.search[data-v-e9b3eef9]:focus-visible .ui-kbd{opacity:1}.search[data-v-e9b3eef9]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.search[data-v-e9b3eef9]:hover{background:var(--sb-hover)}.search[data-v-e9b3eef9]:focus-visible{background:var(--sb-hover);color:var(--color-text);outline:2px solid var(--color-accent-bd);outline-offset:-2px}.search-icon[data-v-e9b3eef9]{flex:none;transform:translateY(-.5px)}.search-input[data-v-e9b3eef9]{flex:1;min-width:0;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-tabs[data-v-e9b3eef9]{padding:var(--space-2) var(--sb-inset) 0}.status-seg[data-v-e9b3eef9]{width:100%;display:flex}.status-seg[data-v-e9b3eef9] .ui-seg__item{flex:1;min-width:0;justify-content:center;padding:0 var(--space-1);overflow:hidden}.ws-dir[data-v-e9b3eef9]{display:block;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);cursor:pointer;position:relative;user-select:none}.ws-dir[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.ws-dir.on[data-v-e9b3eef9]{background:var(--sb-selected, var(--color-selected))}.ws-dir+.ws-dir[data-v-e9b3eef9]{margin-top:var(--space-05)}.ws-dir-row[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--sb-gap);min-width:0}.ws-dir-icon[data-v-e9b3eef9]{flex:none;color:var(--color-text-muted)}.ws-dir-name[data-v-e9b3eef9]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir-act[data-v-e9b3eef9]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.ws-dir-rename[data-v-e9b3eef9]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-sm);padding:2px 5px;outline:none}.ws-dir:hover .ws-dir-act[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-act[data-v-e9b3eef9]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.ws-dir-sub[data-v-e9b3eef9]{margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir:hover .ws-dir-name[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-name[data-v-e9b3eef9],.ws-dir:hover .ws-dir-sub[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-sub[data-v-e9b3eef9]{margin-right:calc(var(--icon-button-sm) + var(--space-2))}.done-gh[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--sb-gap);padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);user-select:none;position:relative;cursor:pointer}.done-gh[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.done-gh-folder[data-v-e9b3eef9]{flex:none;color:var(--color-text-muted)}.done-gh-name[data-v-e9b3eef9]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.done-gh-count[data-v-e9b3eef9]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.done-gh-act[data-v-e9b3eef9]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.done-gh:hover .done-gh-act[data-v-e9b3eef9],.done-gh:focus-within .done-gh-act[data-v-e9b3eef9]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.done-gh:hover .done-gh-count[data-v-e9b3eef9],.done-gh:focus-within .done-gh-count[data-v-e9b3eef9]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.sessions[data-v-e9b3eef9]{flex:1;overflow-y:auto;padding:0 var(--sb-inset) var(--space-3);min-height:0;--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.sessions[data-v-e9b3eef9]::-webkit-scrollbar{display:none}.sessions-thumb[data-v-e9b3eef9]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.sessions-thumb.visible[data-v-e9b3eef9]{opacity:1;pointer-events:auto}.sessions-thumb.visible[data-v-e9b3eef9]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.sessions-thumb[data-v-e9b3eef9]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.side-footer[data-v-e9b3eef9]{flex:none;position:relative;z-index:1;padding:var(--space-2) var(--sb-inset);border-top:.5px solid var(--line);background:var(--color-sidebar-bg)}.side-footer[data-v-e9b3eef9]:before{bottom:100%;background:linear-gradient(to top,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to top,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to top,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.side-footer--shadowed[data-v-e9b3eef9]:before{opacity:1}.side-section-label[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.side-section-title[data-v-e9b3eef9]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sessions-head .pinned+.side-section-label[data-v-e9b3eef9]{margin-top:var(--space-1)}.side-section-toggle[data-v-e9b3eef9]{color:var(--faint)}.side-section-toggle[data-v-e9b3eef9]:hover{color:var(--dim)}.side-section-toggle svg[data-v-e9b3eef9]{width:13px;height:13px}.side-section-actions[data-v-e9b3eef9]{display:flex;align-items:center;gap:2px}.ws-drop-target.drop-before[data-v-e9b3eef9]{box-shadow:inset 0 2px 0 var(--color-accent)}.ws-drop-target.drop-after[data-v-e9b3eef9]{box-shadow:inset 0 -2px 0 var(--color-accent)}.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh{isolation:isolate}.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:ws-locate-fade-e9b3eef9 var(--duration-flash) var(--ease-out) forwards}@keyframes ws-locate-fade-e9b3eef9{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh:before{animation:none}}.sessions.pinned-drag-active[data-v-e9b3eef9]{box-shadow:inset 0 0 0 1px var(--color-accent)}.sessions.flat-pinned-drop-hover[data-v-e9b3eef9]{box-shadow:inset 0 0 0 2px var(--color-accent)}.show-more-row[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:center}.show-more[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:center;gap:var(--space-1);margin:0;padding:6px var(--space-3);min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);cursor:pointer}.show-more[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-e9b3eef9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-label[data-v-e9b3eef9]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-drop-overlay[data-v-e9b3eef9]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:var(--space-3);box-sizing:border-box;background:color-mix(in srgb,var(--color-sidebar-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.folder-drop-overlay.show[data-v-e9b3eef9]{opacity:1;visibility:visible}.folder-drop-card[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--space-3);max-width:100%;box-sizing:border-box;padding:var(--space-4);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.folder-drop-card svg[data-v-e9b3eef9]{flex:none}.folder-drop-card span[data-v-e9b3eef9]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-e9b3eef9]{padding:var(--space-6) var(--space-3);text-align:center;color:var(--faint);font-size:calc(var(--ui-font-size) - 3px);line-height:1.6}.ws-menu[data-v-e9b3eef9],.gh-menu[data-v-e9b3eef9],.view-menu[data-v-e9b3eef9]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.view-menu-label[data-v-e9b3eef9]{padding:var(--space-1) var(--space-2) var(--space-05);font-size:var(--text-xs);color:var(--faint);user-select:none}.view-menu-check[data-v-e9b3eef9]{margin-left:auto;display:inline-flex}.menu-pop-enter-active[data-v-e9b3eef9]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-e9b3eef9]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-e9b3eef9],.menu-pop-leave-to[data-v-e9b3eef9]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}[data-v-e9b3eef9] .workspace-rename-item{font-size:var(--text-xs);font-weight:var(--weight-option-label)}.section-menu-check[data-v-e9b3eef9]{display:inline-flex;flex:none;width:14px}.rh[data-v-1c6dfdc5]{width:4px;flex:none;position:relative;align-self:stretch;background:transparent;touch-action:none;margin:0 -2px;z-index:var(--z-dropdown)}.rh-bar[data-v-1c6dfdc5]{position:absolute;inset:0 1px;background:transparent;transition:background .12s}.rh:hover .rh-bar[data-v-1c6dfdc5]{background:var(--color-selected)}.rh.dragging .rh-bar[data-v-1c6dfdc5]{background:var(--color-line-strong)}.op[data-v-ab413c67]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);background:var(--color-well);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-word;max-height:12lh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.op-empty[data-v-ab413c67]{color:var(--color-text-faint);font-style:italic}.agent-card[data-v-ab8f0011]{margin:var(--space-1) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.agent-card[data-v-ab8f0011]:hover{border-color:var(--color-line-strong)}.agent-card.err[data-v-ab8f0011]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2) var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.head[data-v-ab8f0011]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.head[data-v-ab8f0011]:disabled{cursor:default}.lead[data-v-ab8f0011]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-md);background:var(--color-surface-sunken);color:var(--color-text-muted);flex:none}.main[data-v-ab8f0011]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.task[data-v-ab8f0011]{font-size:var(--ui-font-size);line-height:var(--leading-caption);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type[data-v-ab8f0011]{font-size:var(--text-xs);line-height:var(--leading-caption);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tail[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-2);flex:none}.st[data-v-ab8f0011]{display:inline-flex;align-items:center}.st.ok[data-v-ab8f0011]{color:var(--color-success)}.st.error[data-v-ab8f0011]{color:var(--color-danger)}.go[data-v-ab8f0011]{color:var(--color-text-faint);transition:color var(--duration-base) var(--ease-out)}.agent-card:hover .head:not(:disabled) .go[data-v-ab8f0011]{color:var(--color-text)}.go.car[data-v-ab8f0011]{transition:color var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.go.car.open[data-v-ab8f0011]{transform:rotate(90deg)}.saved-result[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.saved-result[data-v-ab8f0011]:hover{color:var(--color-text-muted)}.saved-result[data-v-ab8f0011]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.saved-result__chevron[data-v-ab8f0011]{transition:transform var(--duration-base) var(--ease-out)}.saved-result__chevron.open[data-v-ab8f0011]{transform:rotate(90deg)}.result[data-v-ab8f0011]{padding:var(--space-2) var(--space-3)}.result--legacy[data-v-ab8f0011]{border-top:.5px solid var(--color-line)}.tl-head[data-v-6e9ab5f9]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border-radius:var(--radius-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left}.tl-head.clickable[data-v-6e9ab5f9]{cursor:pointer;user-select:none}.tl-ic[data-v-6e9ab5f9]{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;color:var(--color-text-faint)}.tl-main[data-v-6e9ab5f9]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-1)}.tl-tail[data-v-6e9ab5f9]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}.tl-status[data-v-6e9ab5f9]{display:inline-flex;align-items:center;flex:none}.tl-status.ok[data-v-6e9ab5f9]{color:var(--color-success)}.tl-status.error[data-v-6e9ab5f9]{color:var(--color-danger)}.tl-car[data-v-6e9ab5f9]{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-car[data-v-6e9ab5f9]:hover{color:var(--color-text)}.tl-car[data-v-6e9ab5f9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-car-ic[data-v-6e9ab5f9]{transition:transform var(--duration-base) var(--ease-out)}.tool-line.open .tl-car-ic[data-v-6e9ab5f9]{transform:rotate(90deg)}.tl-body[data-v-6e9ab5f9]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tl-body.open[data-v-6e9ab5f9]{grid-template-rows:minmax(0,1fr)}.tl-body-inner[data-v-6e9ab5f9]{min-height:0;overflow:hidden;padding:2px var(--space-2) var(--space-1) 0}.tl-main .tl-name[data-v-6e9ab5f9-s]{font-weight:var(--weight-regular);color:var(--color-text-muted);flex:none}.tl-main .tl-dim[data-v-6e9ab5f9-s]{color:var(--color-text-muted);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-faint[data-v-6e9ab5f9-s]{color:var(--color-text-faint);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-mono[data-v-6e9ab5f9-s]{font-family:var(--font-mono);font-size:var(--text-xs);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-file[data-v-6e9ab5f9-s]{font-weight:var(--weight-regular);color:var(--color-text);line-height:var(--leading-tight);flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 1px;font-family:inherit;font-size:inherit;cursor:pointer}.tl-main .tl-file[data-v-6e9ab5f9-s]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.tl-main .tl-file[data-v-6e9ab5f9-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-tail .tl-pill[data-v-6e9ab5f9-s]{font-size:var(--text-xs);line-height:1.5;padding:0 var(--space-2);border-radius:var(--radius-full);flex:none;white-space:nowrap}.tl-tail .tl-chip[data-v-6e9ab5f9-s]{color:var(--color-text-faint);font-size:var(--text-xs);flex:none;white-space:nowrap}.tl-tail .tl-add[data-v-6e9ab5f9-s]{color:var(--color-success);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tl-tail .tl-del[data-v-6e9ab5f9-s]{color:var(--color-danger);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.ask-receipt[data-v-f29eda04]{max-width:560px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);padding:var(--space-2) var(--space-3) 10px;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.ask-receipt.flat[data-v-f29eda04]{color:var(--color-text-faint);font-style:italic;padding-top:6px;padding-bottom:6px}.rc-head[data-v-f29eda04]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text-faint);font-size:var(--text-xs);margin-bottom:6px}.rc-st[data-v-f29eda04]{margin-left:auto;color:var(--color-success);display:inline-flex}.rc-q+.rc-q[data-v-f29eda04]{margin-top:6px}.rc-qtext[data-v-f29eda04]{display:flex;align-items:baseline;gap:var(--space-2);margin-bottom:3px;font-weight:var(--weight-medium);color:var(--color-text)}.rc-opt[data-v-f29eda04]{display:flex;align-items:center;gap:var(--space-2);padding:1.5px 0;color:var(--color-text)}.rc-qskip[data-v-f29eda04]{padding:1.5px 0;color:var(--color-text-faint);font-style:italic}.rc-lb[data-v-f29eda04]{min-width:0}.rc-ds[data-v-f29eda04]{color:var(--color-text-faint);font-size:var(--text-xs)}.rc-g[data-v-f29eda04]{width:14px;height:14px;flex:none;border:.5px solid var(--color-line-strong);position:relative}.rc-g.chk[data-v-f29eda04]{border-radius:var(--radius-xs)}.rc-g.rad[data-v-f29eda04]{border-radius:50%}.rc-g.on[data-v-f29eda04]{border-color:var(--color-accent)}.rc-g.chk.on[data-v-f29eda04]{background:var(--color-accent)}.rc-g.chk.on[data-v-f29eda04]:after{content:"";position:absolute;left:3.5px;top:.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.rc-g.rad.on[data-v-f29eda04]:after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:var(--color-accent)}.cmd-echo[data-v-8869dd42]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.hl-code[data-v-6735e4da]{border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:auto;max-height:calc(24 * 1.5 * var(--ui-font-size));overscroll-behavior:contain;font-family:var(--font-mono);font-size:var(--code-font-size);line-height:var(--leading-normal);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none}.hl-code[data-v-6735e4da]:not(.framed){border:none;border-radius:0;background:transparent;max-height:none;overflow:visible}.hl-body[data-v-6735e4da]{width:max-content;min-width:100%;padding:var(--space-1) 0 var(--space-2)}.hl-code.plain-pad .hl-body[data-v-6735e4da]{padding-left:var(--space-3)}.hl-row[data-v-6735e4da]{display:flex;align-items:flex-start;min-height:calc(1em * var(--leading-normal));white-space:pre;width:100%}.hl-gutter[data-v-6735e4da]{flex:none;box-sizing:content-box;min-width:var(--gutter-ch, 4ch);padding:0 var(--space-2);text-align:right;color:var(--color-text-faint);user-select:none;border-right:.5px solid var(--color-line);font-variant-numeric:tabular-nums}.hl-sign[data-v-6735e4da]{flex:none;width:16px;text-align:center;color:var(--color-text-muted);user-select:none}.hl-text[data-v-6735e4da]{flex:none;padding-right:14px;white-space:pre;color:var(--color-text)}.hl-gutter+.hl-text[data-v-6735e4da]{padding-left:var(--space-2)}.row-add[data-v-6735e4da]{background:var(--color-diff-add-bg)}.row-add .hl-sign[data-v-6735e4da]{color:var(--color-success)}.row-del[data-v-6735e4da]{background:var(--color-diff-del-bg)}.row-del .hl-sign[data-v-6735e4da]{color:var(--color-danger)}.row-hunk[data-v-6735e4da]{background:var(--color-surface-sunken)}.row-hunk .hl-text[data-v-6735e4da]{color:var(--color-text-muted)}.hl-code.gutter .row-add[data-v-6735e4da]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.hl-code.gutter .row-del[data-v-6735e4da]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diffbar[data-v-bbf61950]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;gap:1px;flex:none}.seg-add[data-v-bbf61950]{background:var(--color-success)}.seg-del[data-v-bbf61950]{background:var(--color-danger)}.gl[data-v-b12a8498]{display:inline-flex;align-items:center}.arg-full[data-v-b12a8498]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.file-list[data-v-3936099e]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.file-row[data-v-3936099e]{width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.file-row[data-v-3936099e]:hover{background:var(--color-hover);color:var(--color-accent)}.file-row[data-v-3936099e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-pill.pill-active[data-v-862274de]{color:var(--color-accent);background:var(--color-accent-soft)}.tl-pill.pill-done[data-v-862274de]{color:var(--color-success);background:var(--color-success-soft)}.tl-pill.pill-blocked[data-v-862274de]{color:var(--color-warning);background:var(--color-warning-soft)}.goal-block[data-v-862274de]{margin-bottom:var(--space-1)}.goal-text[data-v-862274de]{color:var(--color-text);font-size:calc(var(--content-font-size) - 1px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.goal-criterion[data-v-862274de]{color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;margin-top:2px;white-space:pre-wrap;word-break:break-word}.match-list[data-v-899c1a48]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.match-row[data-v-899c1a48]{display:flex;align-items:baseline;gap:var(--space-2);width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;cursor:default}.match-row.link[data-v-899c1a48]{cursor:pointer}.match-row.link[data-v-899c1a48]:hover{background:var(--color-hover)}.match-row[data-v-899c1a48]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mref[data-v-899c1a48]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-faint)}.match-row.link:hover .mref[data-v-899c1a48]{color:var(--color-accent)}.mtext[data-v-899c1a48]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-resolving[data-v-23acd4fa]{visibility:hidden}.media-tool[data-v-3bc3ee1a]{display:inline-flex;flex-direction:column;gap:6px;max-width:320px}.media-title[data-v-3bc3ee1a]{font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-image-button[data-v-3bc3ee1a]{padding:0;border:none;background:transparent;cursor:pointer;border-radius:var(--radius-md);overflow:hidden}.media-image[data-v-3bc3ee1a]{display:block;max-width:100%;border-radius:var(--radius-md);background:var(--media-alpha-canvas)}.media-video[data-v-3bc3ee1a],.media-audio[data-v-3bc3ee1a]{max-width:100%;border-radius:var(--radius-md)}.media-video[data-v-3bc3ee1a]{display:block}.media-video-button[data-v-3bc3ee1a]{position:relative}.media-video-tile[data-v-3bc3ee1a]{display:block;width:320px;max-width:100%;aspect-ratio:16 / 9;background:var(--color-well)}.media-play-badge[data-v-3bc3ee1a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}:where(.markstream-vue) button{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:transparent;border:0;font:inherit;color:inherit}.markstream-vue li:has(.checkbox-node){list-style-type:none;margin-left:calc(-1 * var(--ms-flow-list-indent))}.markstream-vue .text-node{white-space:pre-wrap;overflow-wrap:break-word}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.markstream-vue .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.markstream-vue .pointer-events-none{pointer-events:none}.markstream-vue .\!visible{visibility:visible!important}.markstream-vue .visible{visibility:visible}.markstream-vue .collapse{visibility:collapse}.markstream-vue .static{position:static}.markstream-vue .fixed{position:fixed}.markstream-vue .absolute{position:absolute}.markstream-vue .relative{position:relative}.markstream-vue .inset-0{inset:0}.markstream-vue .right-2{right:8px}.markstream-vue .right-6{right:24px}.markstream-vue .top-2{top:8px}.markstream-vue .top-6{top:24px}.markstream-vue .z-10{z-index:10}.markstream-vue .z-50{z-index:50}.markstream-vue .m-0{margin:0}.markstream-vue .mx-0\.5{margin-left:2px;margin-right:2px}.markstream-vue .mr-2{margin-right:8px}.markstream-vue .mt-2{margin-top:8px}.markstream-vue .block{display:block}.markstream-vue .inline{display:inline}.markstream-vue .flex{display:flex}.markstream-vue .inline-flex{display:inline-flex}.markstream-vue .table{display:table}.markstream-vue .flow-root{display:flow-root}.markstream-vue .grid{display:grid}.markstream-vue .contents{display:contents}.markstream-vue .list-item{display:list-item}.markstream-vue .hidden{display:none}.markstream-vue .h-4{height:16px}.markstream-vue .h-full{height:100%}.markstream-vue .max-h-full{max-height:100%}.markstream-vue .min-h-full{min-height:100%}.markstream-vue .w-2\/3{width:66.666667%}.markstream-vue .w-4{width:16px}.markstream-vue .w-4\/5{width:80%}.markstream-vue .w-full{width:100%}.markstream-vue .min-w-\[160px\]{min-width:160px}.markstream-vue .max-w-full{max-width:100%}.markstream-vue .flex-1{flex:1 1 0%}.markstream-vue .flex-shrink{flex-shrink:1}.markstream-vue .flex-shrink-0{flex-shrink:0}.markstream-vue .shrink{flex-shrink:1}.markstream-vue .shrink-0{flex-shrink:0}.markstream-vue .border-collapse{border-collapse:collapse}.markstream-vue .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.markstream-vue .animate-spin{animation:spin 1s linear infinite}.markstream-vue .cursor-grab{cursor:grab}.markstream-vue .cursor-grabbing{cursor:grabbing}.markstream-vue .cursor-not-allowed{cursor:not-allowed}.markstream-vue .cursor-pointer{cursor:pointer}.markstream-vue .resize{resize:both}.markstream-vue .list-decimal{list-style-type:decimal}.markstream-vue .list-disc{list-style-type:disc}.markstream-vue .flex-wrap{flex-wrap:wrap}.markstream-vue .items-center{align-items:center}.markstream-vue .items-baseline{align-items:baseline}.markstream-vue .justify-center{justify-content:center}.markstream-vue .justify-between{justify-content:space-between}.markstream-vue .gap-0\.5{gap:2px}.markstream-vue .gap-1\.5{gap:6px}.markstream-vue .gap-2{gap:8px}.markstream-vue .gap-\[var\(--ms-gap-header-actions\)\]{gap:var(--ms-gap-header-actions)}.markstream-vue .gap-x-1{-moz-column-gap:4px;column-gap:4px}.markstream-vue .gap-x-2{-moz-column-gap:8px;column-gap:8px}.markstream-vue .overflow-hidden{overflow:hidden}.markstream-vue .overflow-x-auto{overflow-x:auto}.markstream-vue .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markstream-vue .whitespace-nowrap{white-space:nowrap}.markstream-vue .whitespace-pre-wrap{white-space:pre-wrap}.markstream-vue .rounded{border-radius:calc(var(--ms-radius) * .5)}.markstream-vue .rounded-lg{border-radius:var(--ms-radius)}.markstream-vue .rounded-md{border-radius:calc(var(--ms-radius) * .75)}.markstream-vue .border{border-width:1px}.markstream-vue .border-b{border-bottom-width:1px}.markstream-vue .border-t{border-top-width:1px}.markstream-vue .border-\[var\(--code-border\)\]{border-color:var(--code-border)}.markstream-vue .border-\[var\(--footnote-border\)\]{border-color:var(--footnote-border)}.markstream-vue .border-\[var\(--hr-border\)\]{border-color:var(--hr-border)}.markstream-vue .bg-\[hsl\(var\(--ms-popover\)\)\]{background-color:hsl(var(--ms-popover))}.markstream-vue .bg-\[var\(--code-header-bg\)\]{background-color:var(--code-header-bg)}.markstream-vue .p-0{padding:0}.markstream-vue .p-1{padding:4px}.markstream-vue .p-4{padding:16px}.markstream-vue .p-\[var\(--ms-action-btn-padding\)\]{padding:var(--ms-action-btn-padding)}.markstream-vue .px-1\.5{padding-left:6px;padding-right:6px}.markstream-vue .px-2{padding-left:8px;padding-right:8px}.markstream-vue .px-4{padding-left:16px;padding-right:16px}.markstream-vue .px-\[var\(--ms-inset-panel-x\)\]{padding-left:var(--ms-inset-panel-x);padding-right:var(--ms-inset-panel-x)}.markstream-vue .py-0\.5{padding-top:2px;padding-bottom:2px}.markstream-vue .py-1\.5{padding-top:6px;padding-bottom:6px}.markstream-vue .py-\[var\(--ms-inset-panel-y\)\]{padding-top:var(--ms-inset-panel-y);padding-bottom:var(--ms-inset-panel-y)}.markstream-vue .pb-3{padding-bottom:12px}.markstream-vue .pt-2{padding-top:8px}.markstream-vue .text-left{text-align:left}.markstream-vue .text-center{text-align:center}.markstream-vue .text-right{text-align:right}.markstream-vue .font-mono{font-family:var(--ms-font-mono)}.markstream-vue .text-\[length\:var\(--ms-text-label\)\]{font-size:var(--ms-text-label)}.markstream-vue .text-sm{font-size:14px;line-height:20px}.markstream-vue .text-xs{font-size:12px;line-height:16px}.markstream-vue .font-medium{font-weight:500}.markstream-vue .font-semibold{font-weight:600}.markstream-vue .uppercase{text-transform:uppercase}.markstream-vue .lowercase{text-transform:lowercase}.markstream-vue .italic{font-style:italic}.markstream-vue .leading-\[normal\]{line-height:normal}.markstream-vue .leading-none{line-height:1}.markstream-vue .leading-relaxed{line-height:1.625}.markstream-vue .text-\[\#0366d6\]{--tw-text-opacity: 1;color:rgb(3 102 214 / var(--tw-text-opacity, 1))}.markstream-vue .text-\[hsl\(var\(--ms-popover-foreground\)\)\]{color:hsl(var(--ms-popover-foreground))}.markstream-vue .text-\[var\(--code-action-fg\)\]{color:var(--code-action-fg)}.markstream-vue .text-\[var\(--code-fg\)\]{color:var(--code-fg)}.markstream-vue .underline{text-decoration-line:underline}.markstream-vue .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.markstream-vue .opacity-0{opacity:0}.markstream-vue .opacity-50{opacity:.5}.markstream-vue .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-\[var\(--ms-shadow-popover\)\]{--tw-shadow-color: var(--ms-shadow-popover);--tw-shadow: var(--tw-shadow-colored)}.markstream-vue .outline{outline-style:solid}.markstream-vue .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .backdrop-blur{--tw-backdrop-blur: blur(8px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-\[height\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.markstream-vue .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.markstream-vue{--ms-background: 0 0% 100%;--ms-foreground: 0 0% 10%;--ms-muted: 0 0% 96.5%;--ms-muted-foreground: 0 0% 43%;--ms-secondary: 0 0% 93.5%;--ms-secondary-foreground: 0 0% 10%;--ms-accent: 0 0% 91%;--ms-accent-foreground: 0 0% 10%;--ms-primary: 0 0% 10%;--ms-primary-foreground: 0 0% 100%;--ms-destructive: 0 62% 52%;--ms-destructive-foreground: 0 0% 100%;--ms-border: 0 0% 87%;--ms-ring: 0 0% 10%;--ms-popover: 0 0% 100%;--ms-popover-foreground: 0 0% 10%;--ms-radius: 8px;--ms-info: 215 60% 50%;--ms-info-foreground: 0 0% 100%;--ms-success: 152 56% 39%;--ms-success-foreground: 0 0% 100%;--ms-warning: 38 64% 46%;--ms-warning-foreground: 0 0% 9%;--ms-diff-added: 152 50% 36%;--ms-diff-removed: 0 58% 48%;--ms-highlight: 50 60% 72%;--ms-highlight-foreground: 0 0% 0%;--ms-font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";--ms-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace}.dark .markstream-vue,.markstream-vue.dark{--ms-background: 0 0% 7%;--ms-foreground: 0 0% 93%;--ms-muted: 0 0% 12%;--ms-muted-foreground: 0 0% 60%;--ms-secondary: 0 0% 16%;--ms-secondary-foreground: 0 0% 93%;--ms-accent: 0 0% 24%;--ms-accent-foreground: 0 0% 93%;--ms-primary: 0 0% 93%;--ms-primary-foreground: 0 0% 10%;--ms-destructive: 0 60% 50%;--ms-destructive-foreground: 0 0% 93%;--ms-border: 0 0% 20%;--ms-ring: 0 0% 80%;--ms-popover: 0 0% 9%;--ms-popover-foreground: 0 0% 93%;--ms-info: 215 55% 62%;--ms-info-foreground: 0 0% 100%;--ms-success: 152 48% 55%;--ms-success-foreground: 0 0% 100%;--ms-warning: 32 65% 58%;--ms-warning-foreground: 0 0% 9%;--ms-diff-added: 152 42% 60%;--ms-diff-removed: 0 58% 58%;--ms-highlight: 48 65% 50%;--ms-highlight-foreground: 0 0% 0%;--ms-shadow-subtle: 0 1px 3px 0 hsl(0 0% 0% / .25);--ms-shadow-popover: 0 4px 6px -1px hsl(0 0% 0% / .2), 0 2px 4px -2px hsl(0 0% 0% / .15);--ms-shadow-modal: 0 10px 15px -3px hsl(0 0% 0% / .5), 0 4px 6px -4px hsl(0 0% 0% / .4);--ms-shadow-preview: 0 10px 40px hsl(0 0% 0% / .6);--tooltip-bg: hsl(0 0% 12%);--tooltip-fg: hsl(0 0% 72%);--code-bg: #111827;--code-header-bg: hsl(var(--ms-muted));--admonition-note-header-bg: color-mix(in srgb, hsl(var(--ms-info)) 12%, transparent);--admonition-tip-header-bg: color-mix(in srgb, hsl(var(--ms-success)) 12%, transparent);--admonition-warn-header-bg: color-mix(in srgb, hsl(var(--ms-warning)) 12%, transparent);--admonition-danger-header-bg: color-mix(in srgb, hsl(var(--ms-destructive)) 12%, transparent)}.markstream-vue{font-family:var(--ms-font-sans);font-size:var(--ms-text-body);line-height:var(--ms-leading-body);--inline-code-bg: hsl(var(--ms-secondary));--inline-code-fg: hsl(var(--ms-foreground) / .75);--inline-code-border: hsl(var(--ms-border) / .9);--code-bg: #fff;--code-fg: hsl(var(--ms-foreground));--code-border: hsl(var(--ms-border));--code-header-bg: hsl(var(--ms-secondary));--code-selection-bg: hsl(var(--ms-accent) / .3);--code-line-number: hsl(var(--ms-muted-foreground));--markstream-code-line-number-align: right;--code-action-fg: hsl(var(--ms-muted-foreground));--code-action-hover-bg: hsl(var(--ms-accent));--code-action-hover-fg: hsl(var(--ms-accent-foreground));--code-action-active-bg: hsl(var(--ms-primary));--code-action-active-fg: hsl(var(--ms-primary-foreground));--diff-added-fg: hsl(var(--ms-diff-added));--diff-removed-fg: hsl(var(--ms-diff-removed));--diff-added-bg: hsl(var(--ms-diff-added) / .1);--diff-added-inline-bg: hsl(var(--ms-diff-added) / .2);--diff-removed-bg: hsl(var(--ms-diff-removed) / .1);--diff-removed-inline-bg: hsl(var(--ms-diff-removed) / .2);--blockquote-border: hsl(var(--ms-muted-foreground) / .2);--admonition-bg: hsl(var(--ms-muted));--admonition-border: hsl(var(--ms-border));--admonition-fg: hsl(var(--ms-foreground));--admonition-muted: hsl(var(--ms-muted-foreground));--admonition-header-bg: hsl(var(--ms-muted) / .5);--admonition-note: hsl(var(--ms-info));--admonition-tip: hsl(var(--ms-success));--admonition-warning: hsl(var(--ms-warning));--admonition-danger: hsl(var(--ms-destructive));--admonition-note-header-bg: color-mix(in srgb, hsl(var(--ms-info)) 6%, transparent);--admonition-tip-header-bg: color-mix(in srgb, hsl(var(--ms-success)) 6%, transparent);--admonition-warn-header-bg: color-mix(in srgb, hsl(var(--ms-warning)) 6%, transparent);--admonition-danger-header-bg: color-mix(in srgb, hsl(var(--ms-destructive)) 6%, transparent);--table-border: hsl(var(--ms-border));--table-header-bg: hsl(var(--ms-muted));--link-color: hsl(var(--ms-info));--list-marker: hsl(var(--ms-muted-foreground) / .5);--list-counter-marker: hsl(var(--ms-muted-foreground));--hr-border: hsl(var(--ms-border));--highlight-bg: hsl(var(--ms-highlight));--footnote-border: hsl(var(--ms-border));--tooltip-bg: hsl(0 0% 18%);--tooltip-fg: hsl(0 0% 88%);--tooltip-border: hsl(var(--ms-border));--modal-overlay: hsl(0 0% 0% / .7);--modal-bg: hsl(var(--ms-popover));--modal-fg: hsl(var(--ms-popover-foreground));--diagram-bg: hsl(var(--ms-muted));--diagram-border: hsl(var(--ms-border));--diagram-header-bg: hsl(var(--ms-muted));--loading-spinner: hsl(var(--ms-muted-foreground));--loading-shimmer: hsl(var(--ms-muted) / .5);--image-placeholder-bg: hsl(var(--ms-muted));--focus-ring: hsl(var(--ms-ring));--ms-space-1: 4px;--ms-space-1_5: 6px;--ms-space-2: 8px;--ms-space-2_5: 10px;--ms-space-3: 12px;--ms-space-4: 16px;--ms-space-5: 20px;--ms-space-6: 24px;--ms-space-8: 32px;--ms-space-12: 48px;--ms-flow-paragraph-y: 1.5em;--ms-flow-list-y: 1em;--ms-flow-list-item-y: .25em;--ms-flow-list-indent: 1.625em ;--ms-flow-list-indent-mobile: calc(14 / 9 * 1em);--ms-flow-table-y: 2em;--ms-flow-table-cell: .5em .75em;--ms-flow-blockquote-y: 1.25em;--ms-flow-blockquote-indent: 1.25em;--ms-flow-admonition-y: 1.25em;--ms-flow-footnote-y: .5em;--ms-flow-hr-y: 2.5em;--ms-flow-diagram-y: 1.5em;--ms-flow-codeblock-y: 1.5em;--ms-flow-definition-term-mt: .75em;--ms-flow-definition-desc-ml: 1.25em;--ms-flow-definition-desc-mb: .5em;--ms-flow-heading-1-mt: 0;--ms-flow-heading-1-mb: 1em;--ms-flow-heading-2-mt: 2em;--ms-flow-heading-2-mb: .75em;--ms-flow-heading-3-mt: 1.5em;--ms-flow-heading-3-mb: .6em;--ms-flow-heading-4-mt: 1.25em;--ms-flow-heading-4-mb: .4em;--ms-flow-heading-5-mt: 1em;--ms-flow-heading-5-mb: .25em;--ms-flow-heading-6-mt: 1em;--ms-flow-heading-6-mb: .25em;--ms-text-body: 16px;--ms-leading-body: 1.75;--ms-text-h1: 36px;--ms-text-h2: 24px;--ms-text-h3: 20px;--ms-text-h4: 16px;--ms-text-h5: 16px;--ms-text-h6: 16px;--ms-leading-h1: 1.2;--ms-leading-h2: 1.35;--ms-leading-h3: 1.5;--ms-weight-h1: 700;--ms-weight-h2: 600;--ms-weight-h3: 600;--ms-weight-h4: 600;--ms-text-label: 12px;--ms-action-btn-padding: 6px;--ms-action-btn-icon: 14px;--ms-inset-panel-x: 10px;--ms-inset-panel-y: 6px;--ms-inset-panel-body-sm: 8px;--ms-inset-panel-body: 16px;--ms-inset-admonition-body-top: 8px;--ms-inset-admonition-body-bottom: 12px;--ms-gap-header: var(--ms-space-4);--ms-gap-header-main: var(--ms-space-2_5);--ms-gap-header-actions: var(--ms-space-2);--ms-shadow-subtle: 0 1px 3px 0 hsl(var(--ms-foreground) / .06);--ms-shadow-popover: 0 4px 6px -1px hsl(var(--ms-foreground) / .1), 0 2px 4px -2px hsl(var(--ms-foreground) / .1);--ms-shadow-modal: 0 10px 15px -3px hsl(var(--ms-foreground) / .1), 0 4px 6px -4px hsl(var(--ms-foreground) / .1);--ms-shadow-preview: 0 10px 40px hsl(var(--ms-foreground) / .25);--ms-duration-fast: .12s;--ms-duration-standard: .18s;--ms-duration-overlay: .2s;--ms-duration-emphasis: .22s;--ms-duration-slow: .3s;--ms-duration-stream: .28s;--ms-ease-linear: linear;--ms-ease-standard: ease;--ms-ease-out: ease-out;--ms-ease-in-out: ease-in-out;--ms-ease-spring: cubic-bezier(.16, 1, .3, 1);--ms-border-width: 1px;--ms-border-width-strong: 4px;--ms-focus-ring-width: 2px;--ms-focus-ring-offset: 2px;--ms-size-diagram-min-height: 360px;--ms-size-code-max-height: 500px;--ms-size-image-max-width: 384px;--ms-size-image-min-width: 128px;--ms-size-image-min-height: 1.5em;--ms-size-math-min-height: 40px;--ms-size-skeleton-min-height: 120px}body>div[id^=dmermaid-]{position:fixed;top:-10000px;left:0;width:100%;visibility:hidden;pointer-events:none}.markstream-vue .hover\:bg-\[var\(--code-action-hover-bg\)\]:hover{background-color:var(--code-action-hover-bg)}.markstream-vue .hover\:text-\[var\(--code-action-hover-fg\)\]:hover{color:var(--code-action-hover-fg)}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}.markstream-vue .active\:scale-\[0\.96\]:active{--tw-scale-x: .96;--tw-scale-y: .96;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.markstream-vue .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.markstream-vue .disabled\:opacity-40:disabled{opacity:.4}.checkbox-node[data-v-be21ab83]{display:inline-flex;align-items:center;margin-right:.5em;vertical-align:-.15em}.checkbox-icon[data-v-be21ab83]{flex-shrink:0}.checkbox-unchecked[data-v-be21ab83]{color:hsl(var(--ms-muted-foreground) / .5)}.checkbox-checked[data-v-be21ab83]{color:hsl(var(--ms-info))}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-c1463a29]{font-size:.75em;line-height:0}.footnote-link[data-v-c1463a29]{color:var(--link-color);text-decoration:none}.footnote-link[data-v-c1463a29]:hover{text-decoration:underline}.html-inline-node[data-v-d17f12b0]{display:inline}.html-inline-node--loading[data-v-d17f12b0]{opacity:.85}.inline-code[data-v-4e331c97]{display:inline;font-family:var(--ms-font-mono);font-size:.8125em;line-height:inherit;color:var(--inline-code-fg);background-color:var(--inline-code-bg);padding:.15em .35em;border-radius:.25em;white-space:normal;word-break:break-word;max-width:100%;-webkit-box-decoration-break:clone;box-decoration-break:clone}.inline-code-stream-delta[data-v-4e331c97]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both}.inline-code-stream-delta--a[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-a-4e331c97}.inline-code-stream-delta--b[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-b-4e331c97}@keyframes inline-code-stream-update-fade-a-4e331c97{0%{opacity:0}to{opacity:1}}@keyframes inline-code-stream-update-fade-b-4e331c97{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.inline-code-stream-delta[data-v-4e331c97]{animation:none!important}}.image-node-container[data-v-046e82ac]{display:inline-block;position:relative;vertical-align:middle;max-width:var(--ms-size-image-max-width)}.image-node__img[data-v-046e82ac]{display:inline-block;max-width:100%;min-width:var(--ms-size-image-min-width);min-height:var(--ms-size-image-min-height);height:auto;vertical-align:middle;transition:opacity var(--ms-duration-emphasis) var(--ms-ease-standard)}.image-node__img.is-loading[data-v-046e82ac]{opacity:0}.image-node__img.is-loaded[data-v-046e82ac]{opacity:1}.image-node__img.has-natural-size[data-v-046e82ac]{min-width:0;min-height:0}.image-placeholder[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:var(--ms-size-image-min-width);min-height:128px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));overflow:hidden;vertical-align:middle}.image-shimmer-overlay[data-v-046e82ac]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:hsl(var(--ms-muted));overflow:hidden}.image-shimmer-overlay .image-shimmer[data-v-046e82ac]{width:100%;height:100%}.image-shimmer[data-v-046e82ac]{display:block;width:100%;height:100%;min-height:128px;background:linear-gradient(90deg,hsl(var(--ms-muted)),hsl(var(--ms-muted-foreground) / .06),hsl(var(--ms-muted)));background-size:200% 100%;animation:image-shimmer-046e82ac 1.5s ease-in-out infinite}.image-node-container[data-markstream-viewport-pending=true] .image-shimmer[data-v-046e82ac]{animation:none}@keyframes image-shimmer-046e82ac{0%{background-position:100% 0}to{background-position:-100% 0}}.image-error[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:16px 24px;min-height:64px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground));font-size:var(--ms-text-label);vertical-align:middle}.image-node__raw-text[data-v-046e82ac]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}@media(prefers-reduced-motion:reduce){.image-shimmer[data-v-046e82ac]{animation:none!important}}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[data-markstream-pre="1"]:not(.markstream-pre--diff-preview){background:var(--code-bg);color:var(--code-fg)}.markstream-vue pre.markstream-pre--line-numbers{position:relative}.markstream-vue pre.code-pre-fallback[data-markstream-code-loading="1"]{--markstream-pre-line-number-top: var(--markstream-code-padding-y, 8px);--markstream-pre-line-number-left: 0px;--markstream-pre-line-number-width: 2ch;--markstream-pre-line-number-padding-left: 2ch;--markstream-pre-line-number-padding-right: 1ch;--markstream-pre-line-number-separator-width: 2px;--markstream-code-padding-left: calc(6ch + 2px) ;box-sizing:border-box;width:100%;margin:0;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left);overflow:auto;border:0;border-radius:0;background:var(--code-bg);color:var(--code-fg);font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace );font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers{position:absolute;top:var(--markstream-pre-line-number-top, 0);left:var(--markstream-pre-line-number-left, 0);box-sizing:content-box;display:flex;flex-direction:column;align-items:flex-end;width:var(--markstream-pre-line-number-width, 2ch);min-width:var(--markstream-pre-line-number-width, 2ch);padding-left:var(--markstream-pre-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-line-number-padding-right, 1ch);border-right:var(--markstream-pre-line-number-separator-width, 2px) solid transparent;color:var(--code-line-number);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--line-numbers:not(.markstream-pre--diff-preview):not(.code-pre-fallback)>.markstream-pre__code{box-sizing:border-box;min-width:100%;padding-left:var(--markstream-code-padding-left, 52px);padding-right:var(--markstream-code-padding-x, 12px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-number{display:block;min-height:1lh}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-numbers-text{display:block;min-height:1lh;text-align:right;white-space:pre}.markstream-vue pre.markstream-pre--diff-preview{box-sizing:border-box;padding-left:0;padding-right:0;width:100%;--markstream-pre-diff-gutter-marker-width: var(--stream-monaco-gutter-marker-width, 4px);--markstream-pre-diff-gutter-gap: var(--stream-monaco-gutter-gap, 1ch);--markstream-pre-diff-code-gap: var(--stream-monaco-diff-code-gap, 1ch);--markstream-pre-diff-code-padding: var(--stream-monaco-diff-code-padding, 0px);--markstream-diff-added-fg: var(--diff-added-fg, #2f8f68);--markstream-diff-removed-fg: var(--diff-removed-fg, #c24141);--markstream-diff-added-line-fill: var(--diff-added-bg, rgb(47 143 104 / 12%));--markstream-diff-removed-line-fill: var(--diff-removed-bg, rgb(194 65 65 / 12%));--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-diff-removed-gutter: linear-gradient( 90deg, var(--markstream-diff-removed-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-pre-diff-line-number-width: var( --stream-monaco-line-number-width, 2ch );--markstream-pre-diff-line-number-padding-left: var(--stream-monaco-line-number-padding-left, 2ch);--markstream-pre-diff-line-number-padding-right: var(--stream-monaco-line-number-padding-right, 1ch);--markstream-pre-diff-line-number-separator-width: var(--stream-monaco-line-number-separator-width, 2px);--markstream-pre-diff-line-number-box-width: calc( var(--markstream-pre-diff-line-number-padding-left) + var(--markstream-pre-diff-line-number-width) + var(--markstream-pre-diff-line-number-padding-right) + var(--markstream-pre-diff-line-number-separator-width) );--markstream-pre-diff-line-number-bg: var( --stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg, transparent) );--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-original-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );--markstream-pre-diff-line-number-align: var(--markstream-diff-line-number-align, right);--markstream-pre-diff-code-fill-left: calc( var(--markstream-pre-diff-line-number-left) + var(--markstream-pre-diff-line-number-box-width) );--markstream-pre-diff-code-left: calc( var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-line-number-gap-to-code) + var(--markstream-pre-diff-code-padding) )}.markstream-vue pre.markstream-pre--diff-preview::-webkit-scrollbar{width:12px;height:12px}.markstream-vue pre.markstream-pre--diff-preview.is-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline{--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px )}.markstream-vue pre.markstream-pre--diff-preview>.markstream-pre__diff-code{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font:inherit;line-height:inherit;min-width:100%;width:100%}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline>.markstream-pre__diff-code{grid-template-columns:minmax(0,1fr)}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap)>.markstream-pre__diff-code{grid-template-columns:minmax(100%,max-content);width:100%;min-width:-moz-max-content;min-width:max-content}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane{min-width:0;overflow:hidden}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{overflow-x:auto;overflow-y:hidden}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane-content{display:block;min-width:100%}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane-content{width:-moz-max-content;width:max-content}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap) .markstream-pre__diff-pane{min-width:-moz-max-content;min-width:max-content;width:100%;overflow:visible}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane--modified{--markstream-pre-diff-pane-divider-width: 1px;--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );box-shadow:inset 1px 0 var(--markstream-diff-pane-divider, hsl(var(--ms-border)))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified{--markstream-pre-diff-line-number-left: calc( var(--stream-monaco-line-number-left, 0px) + var(--markstream-pre-diff-pane-divider-width) )}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-rail{left:var(--markstream-pre-diff-pane-divider-width)}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line{padding-left:calc(var(--markstream-pre-diff-code-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line:before{left:calc(var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline .markstream-pre__diff-pane--modified{box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line{position:relative;display:block;box-sizing:border-box;width:100%;min-width:100%;min-height:var( --markstream-pre-diff-synced-row-height, var(--markstream-pre-diff-line-height, 18px) );padding-left:var(--markstream-pre-diff-code-left);line-height:var(--markstream-pre-diff-line-height, 18px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:before{content:"";position:absolute;left:var(--markstream-pre-diff-code-fill-left);right:0;top:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;border-radius:0;background:transparent}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:after{content:"";position:absolute;left:var(--markstream-pre-diff-line-number-left);top:0;width:var(--markstream-pre-diff-line-number-box-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-rail{position:absolute;z-index:2;top:0;left:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );width:var(--markstream-pre-diff-gutter-marker-width, 4px);min-width:var(--markstream-pre-diff-gutter-marker-width, 4px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-number{position:absolute;z-index:1;top:0;left:var(--markstream-pre-diff-line-number-left);width:var(--markstream-pre-diff-line-number-width);min-width:var(--markstream-pre-diff-line-number-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );box-sizing:content-box;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none;padding-left:var(--markstream-pre-diff-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-diff-line-number-padding-right, 1ch);border-right:var(--markstream-pre-diff-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg, var(--code-bg));color:var(--code-line-number);font-variant-numeric:tabular-nums;line-height:var(--markstream-pre-diff-line-height, 18px);text-align:var(--markstream-pre-diff-line-number-align, right);-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent));color:var(--stream-monaco-added-fg, var(--markstream-diff-added-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent));color:var(--stream-monaco-removed-fg, var(--markstream-diff-removed-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content{position:relative;z-index:1;display:block;width:-moz-max-content;width:max-content;min-width:100%;line-height:var(--markstream-pre-diff-line-height, 18px);white-space:inherit;overflow-wrap:normal;word-break:normal;line-break:auto}.markstream-vue pre.markstream-pre--diff-preview.is-wrap .markstream-pre__diff-content{width:auto;min-width:0;overflow-wrap:inherit}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content-inner{white-space:inherit;overflow-wrap:inherit;word-break:inherit;line-break:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk{color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk:before{background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:before{background-image:linear-gradient(-45deg,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 12.5%,transparent 12.5%,transparent 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 62.5%,transparent 62.5%,transparent 100%);background-size:10px 10px;opacity:.38}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-number,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-content{display:none}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-collapsed:not(.code-pre-fallback){height:auto!important;min-height:0!important}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed{min-height:28px;padding-left:0;color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)));line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:before{left:0;height:28px;background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, rgb(0 0 0 / 4%)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-number{display:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-content{width:100%;min-width:0;padding-left:calc(var(--markstream-pre-diff-code-left) + 12px);line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:before{background:linear-gradient(var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent)),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:before{background:linear-gradient(var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent)),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:after{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.text-node[data-v-fd79037c]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-fd79037c]{display:inline-flex;justify-content:center;width:100%}.text-node-stream-delta[data-v-fd79037c]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both;will-change:opacity}.text-node-stream-delta--a[data-v-fd79037c]{animation-name:text-node-stream-update-fade-a-fd79037c}.text-node-stream-delta--b[data-v-fd79037c]{animation-name:text-node-stream-update-fade-b-fd79037c}@keyframes text-node-stream-update-fade-a-fd79037c{0%{opacity:0}to{opacity:1}}@keyframes text-node-stream-update-fade-b-fd79037c{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.text-node-stream-delta[data-v-fd79037c]{animation:none!important}}.reference-node[data-v-775c65e4]{background-color:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground))}.reference-node[data-v-775c65e4]:hover{background-color:hsl(var(--ms-secondary))}.superscript-node[data-v-24160b22]{font-size:.8em;vertical-align:super}.subscript-node[data-v-197fa13b]{font-size:.8em;vertical-align:sub}.strong-node[data-v-a8647104]{font-weight:700}.strikethrough-node[data-v-b7a531fa]{text-decoration:line-through}.link-node[data-v-367e6ca4]{color:var(--link-color);text-decoration:none}.link-node[data-v-367e6ca4]:hover{text-decoration:underline;text-underline-offset:3.2px}.link-loading .link-text-wrapper[data-v-367e6ca4]{position:relative}.link-loading[data-v-367e6ca4]{color:var(--link-color)}.link-loading .link-text[data-v-367e6ca4]{position:relative;z-index:2}.link-loading-indicator[data-v-367e6ca4]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;border-radius:999px;will-change:opacity;opacity:var(--underline-rest-opacity, .18);animation:underlinePulse-367e6ca4 var(--underline-duration, 1.6s) var(--underline-timing, ease-in-out) var(--underline-iteration, infinite)}@keyframes underlinePulse-367e6ca4{0%,to{opacity:var(--underline-rest-opacity, .18)}50%{opacity:var(--underline-opacity, .35)}}@media(prefers-reduced-motion:reduce){.link-loading-indicator[data-v-367e6ca4]{animation:none;opacity:var(--underline-rest-opacity, .18)}}.insert-node[data-v-1e2c29d4]{text-decoration:underline}.highlight-node[data-v-7a62982a]{background-color:var(--highlight-bg);padding:0 3.2px;border-radius:.2em}.emphasis-node[data-v-2a5aafbf]{font-style:italic}.hard-break[data-v-50c58f70]{display:block}.blockquote[data-v-abfecebc]{font-weight:400;font-style:normal;color:var(--blockquote-fg, hsl(var(--ms-muted-foreground)));border-left:3px solid var(--blockquote-border);margin-top:var(--ms-flow-blockquote-y);margin-bottom:var(--ms-flow-blockquote-y);padding-left:var(--ms-flow-blockquote-indent)}.blockquote>.paragraph-node[data-v-abfecebc]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}.blockquote>.paragraph-node[data-v-abfecebc]:first-child{margin-top:0}.blockquote>.paragraph-node[data-v-abfecebc]:last-child{margin-bottom:0}.blockquote[data-v-abfecebc] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.definition-list[data-v-4e103b30]{margin:0 0 16px}.definition-term[data-v-4e103b30]{font-weight:600;margin-top:var(--ms-flow-definition-term-mt)}.definition-desc[data-v-4e103b30]{margin-left:var(--ms-flow-definition-desc-ml);margin-bottom:var(--ms-flow-definition-desc-mb)}.definition-list[data-v-4e103b30] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.footnote-anchor[data-v-e1eb37b6]{margin-left:8px;color:var(--link-color)}.footnote-node{margin-top:var(--ms-flow-footnote-y);margin-bottom:var(--ms-flow-footnote-y)}.markstream-vue [class*=footnote-] .markdown-renderer,.markstream-vue .flex-1 .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.heading-node[data-v-7122dbe1]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-7122dbe1]{margin-top:0}.heading-1[data-v-7122dbe1]{font-size:var(--ms-text-h1);line-height:var(--ms-leading-h1);font-weight:var(--ms-weight-h1);margin-top:var(--ms-flow-heading-1-mt);margin-bottom:var(--ms-flow-heading-1-mb)}.heading-2[data-v-7122dbe1]{font-size:var(--ms-text-h2);line-height:var(--ms-leading-h2);font-weight:var(--ms-weight-h2);margin-top:var(--ms-flow-heading-2-mt);margin-bottom:var(--ms-flow-heading-2-mb)}.heading-3[data-v-7122dbe1]{font-size:var(--ms-text-h3);line-height:var(--ms-leading-h3);font-weight:var(--ms-weight-h3);margin-top:var(--ms-flow-heading-3-mt);margin-bottom:var(--ms-flow-heading-3-mb)}.heading-4[data-v-7122dbe1]{font-size:var(--ms-text-h4);font-weight:var(--ms-weight-h4);margin-top:var(--ms-flow-heading-4-mt);margin-bottom:var(--ms-flow-heading-4-mb)}.heading-5[data-v-7122dbe1]{font-size:var(--ms-text-h5);margin-top:var(--ms-flow-heading-5-mt);margin-bottom:var(--ms-flow-heading-5-mb)}.heading-6[data-v-7122dbe1]{font-size:var(--ms-text-h6);margin-top:var(--ms-flow-heading-6-mt);margin-bottom:var(--ms-flow-heading-6-mb)}.list-item[data-v-617214f9]{margin:var(--ms-flow-list-item-y) 0;padding-left:var(--ms-space-1_5)}ol>.list-item[data-v-617214f9]::marker{color:var(--list-counter-marker);line-height:1.6}ul>.list-item[data-v-617214f9]::marker{color:var(--list-marker)}.list-item>.paragraph-node[data-v-617214f9]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:0}.list-item[data-v-617214f9] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:content}.list-node[data-v-99cb95e0]{margin-top:var(--ms-flow-list-y);margin-bottom:var(--ms-flow-list-y);padding-left:var(--ms-flow-list-indent)}.list-decimal[data-v-99cb95e0]{list-style-type:decimal}.list-disc[data-v-99cb95e0]{list-style-type:disc}@media(max-width:1023px){.list-disc[data-v-99cb95e0]{margin-top:calc(4/3*1em);margin-bottom:calc(4/3*1em);padding-left:var(--ms-flow-list-indent-mobile)}}.html-block-node__raw[data-v-e140a874]{white-space:pre-wrap;overflow-wrap:anywhere;opacity:.85}.html-block-node__placeholder[data-v-e140a874]{display:flex;flex-direction:column;gap:5.6px;padding:8px 0}.html-block-node__placeholder-bar[data-v-e140a874]{display:block;height:12.8px;border-radius:9999px;background-image:linear-gradient(90deg,var(--loading-shimmer),transparent,var(--loading-shimmer));background-size:200% 100%}.paragraph-node[data-v-c59ff506]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}li .paragraph-node[data-v-c59ff506]{margin:0}.table-node-wrapper[data-v-39f87b5d]{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable}.table-node[data-v-39f87b5d]{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:var(--ms-flow-table-y) 0;font-size:inherit;border:1px solid var(--table-border);border-radius:var(--ms-radius);overflow:hidden;box-shadow:var(--ms-shadow-subtle)}.table-node[data-v-39f87b5d] th,.table-node[data-v-39f87b5d] td{border-bottom:1px solid var(--table-border);border-right:1px solid var(--table-border);padding:var(--ms-flow-table-cell);white-space:normal;overflow-wrap:break-word;word-break:normal}.table-node[data-v-39f87b5d] th:last-child,.table-node[data-v-39f87b5d] td:last-child{border-right:none}.table-node[data-v-39f87b5d] tbody tr:last-child td{border-bottom:none}.table-node[data-v-39f87b5d] thead th{position:relative;font-weight:600;background-color:var(--table-header-bg);border-bottom-width:2px}.table-node__resize-handle[data-v-39f87b5d]{position:absolute;top:0;right:-4px;bottom:0;z-index:1;width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.table-node__resize-handle[data-v-39f87b5d]:after{content:"";position:absolute;top:.35em;bottom:.35em;left:50%;width:2px;border-radius:9999px;background:color-mix(in srgb,var(--table-border) 45%,hsl(var(--ms-foreground)));opacity:0;transform:translate(-50%);transition:opacity var(--ms-duration-fast) var(--ms-ease-standard)}.table-node__resize-handle[data-v-39f87b5d]:hover:after,.table-node__resize-handle[data-v-39f87b5d]:focus-visible:after{opacity:1}.table-node[data-v-39f87b5d] tbody tr:nth-child(2n){background-color:hsl(var(--ms-muted) / .35)}.table-node[data-v-39f87b5d] tbody tr:hover{background-color:var(--code-action-hover-bg)}.table-node--loading tbody td[data-v-39f87b5d]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-39f87b5d]>*{visibility:hidden}.table-node--loading tbody td[data-v-39f87b5d]:after{content:"";position:absolute;inset:0;border-radius:calc(var(--ms-radius) * .5);background:linear-gradient(90deg,var(--loading-shimmer) 25%,var(--loading-shimmer) 50%,var(--loading-shimmer) 75%);background-size:200% 100%;animation:table-node-shimmer-39f87b5d 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-39f87b5d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-39f87b5d]{width:40px;height:40px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-39f87b5d],.table-node-fade-leave-active[data-v-39f87b5d]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-39f87b5d],.table-node-fade-leave-to[data-v-39f87b5d]{opacity:0}[data-v-39f87b5d] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-39f87b5d] .table-node .markdown-renderer .node-slot,[data-v-39f87b5d] .table-node .markdown-renderer .node-content,[data-v-39f87b5d] .table-node .markdown-renderer .node-space{display:contents}[data-v-39f87b5d] .table-node .text-node,[data-v-39f87b5d] .table-node code{white-space:inherit;overflow-wrap:inherit;word-break:inherit;max-width:none}@keyframes table-node-shimmer-39f87b5d{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-39f87b5d]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-39f87b5d]{margin-top:0}.sr-only[data-v-39f87b5d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-39b2349c]{border-top-width:1px;border-color:var(--hr-border);margin:var(--ms-flow-hr-y) 0}.vmr-container[data-v-911e41c4]{margin-top:16px;margin-bottom:16px;border-radius:var(--ms-radius);border-width:1px;padding:16px;border-left-width:var(--ms-border-width-strong)}.height-estimation-probes[data-v-3e0766e2]{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;overflow:hidden;z-index:-1}.node-content[data-v-3e0766e2]{width:100%}.node-content-flow-root[data-v-3e0766e2]{display:flow-root}.markdown-renderer[data-v-a9489508]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:auto}.markdown-renderer.stable-layout[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:none}.node-slot[data-v-a9489508],.node-content[data-v-a9489508]{width:100%}.markdown-renderer.virtualized .node-slot[data-v-a9489508],.markdown-renderer.virtualized .node-content[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-slot[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-content[data-v-a9489508]{display:flow-root}.node-placeholder[data-v-a9489508]{width:100%;min-height:16px;margin:4px 0}.node-placeholder[data-v-a9489508]:first-child{margin-top:0}.node-spacer[data-v-a9489508]{width:100%}.unknown-node[data-v-a9489508]{color:hsl(var(--ms-muted-foreground));font-style:italic;margin:var(--ms-flow-paragraph-y) 0}.typewriter-cursor[data-v-a9489508]{position:absolute;left:0;top:0;display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;visibility:hidden;animation:typewriter-cursor-blink-a9489508 1s steps(1,end) infinite}@keyframes typewriter-cursor-blink-a9489508{0%,49%{opacity:1}50%,to{opacity:0}}.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{content:"";display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;animation:typewriter-cursor-blink 1s steps(1,end) infinite}@media(prefers-reduced-motion:reduce){.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{animation:none}}.markstream-vue .fade-enter-from{opacity:0}.markstream-vue .fade-enter-active{transition:opacity var(--fade-duration, .28s) var(--fade-ease, cubic-bezier(.33, 0, .67, 1));will-change:opacity}.markstream-vue .fade-enter-to{opacity:1}.admonition[data-v-a83480e1]{position:relative;margin:var(--ms-flow-admonition-y) 0;padding:.25em .75em .375em;border:1px solid var(--admonition-border);border-radius:var(--ms-radius);color:var(--admonition-fg)}.admonition-legend[data-v-a83480e1]{position:absolute;top:0;left:.75em;transform:translateY(-50%);display:inline-flex;align-items:center;gap:.35em;padding:0 .5em;background-color:hsl(var(--ms-background));font-size:13px;font-weight:600;line-height:1}.admonition-icon[data-v-a83480e1]{flex-shrink:0}.admonition-title[data-v-a83480e1]{white-space:nowrap}.admonition-content[data-v-a83480e1]{padding-top:.25em;color:var(--admonition-fg)}.admonition-note[data-v-a83480e1],.admonition-info[data-v-a83480e1]{border-color:hsl(var(--ms-info) / .3);background-color:hsl(var(--ms-info) / .04)}.admonition-note .admonition-legend[data-v-a83480e1],.admonition-info .admonition-legend[data-v-a83480e1]{color:var(--admonition-note)}.admonition-tip[data-v-a83480e1]{border-color:hsl(var(--ms-success) / .3);background-color:hsl(var(--ms-success) / .04)}.admonition-tip .admonition-legend[data-v-a83480e1]{color:var(--admonition-tip)}.admonition-warning[data-v-a83480e1],.admonition-caution[data-v-a83480e1]{border-color:hsl(var(--ms-warning) / .3);background-color:hsl(var(--ms-warning) / .04)}.admonition-warning .admonition-legend[data-v-a83480e1],.admonition-caution .admonition-legend[data-v-a83480e1]{color:var(--admonition-warning)}.admonition-danger[data-v-a83480e1],.admonition-error[data-v-a83480e1]{border-color:hsl(var(--ms-destructive) / .3);background-color:hsl(var(--ms-destructive) / .04)}.admonition-danger .admonition-legend[data-v-a83480e1],.admonition-error .admonition-legend[data-v-a83480e1]{color:var(--admonition-danger)}.admonition-toggle[data-v-a83480e1]{margin-left:.25em;background:transparent;border:none;color:inherit;cursor:pointer;padding:2px;border-radius:calc(var(--ms-radius) * .5);display:inline-flex;align-items:center;transition:background-color var(--ms-duration-fast) var(--ms-ease-standard)}.admonition-toggle[data-v-a83480e1]:hover{background-color:hsl(var(--ms-accent))}.admonition-toggle[data-v-a83480e1]:focus-visible{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.admonition-content[data-v-a83480e1] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.tooltip-element[data-v-c606ee4c]{z-index:9999;display:inline-block;max-width:320px;padding:4px 8px;border-radius:calc(var(--ms-radius) * .75);font-size:12px;line-height:1.4;white-space:normal;word-break:break-word;pointer-events:none;background-color:var(--tooltip-bg);color:var(--tooltip-fg);box-shadow:inset 0 1px #ffffff26,0 0 0 1px #0000001f,var(--ms-shadow-popover);transition:transform var(--ms-duration-emphasis) var(--ms-ease-spring),box-shadow var(--ms-duration-emphasis) var(--ms-ease-spring)}.tooltip-arrow[data-v-c606ee4c]{position:absolute;width:6px;height:6px;background:inherit;transform:rotate(45deg)}.tooltip-arrow[data-placement^=top][data-v-c606ee4c]{bottom:-3px}.tooltip-arrow[data-placement^=bottom][data-v-c606ee4c]{top:-3px}.tooltip-arrow[data-placement^=left][data-v-c606ee4c]{right:-3px}.tooltip-arrow[data-placement^=right][data-v-c606ee4c]{left:-3px}.tooltip-enter-active[data-v-c606ee4c]{transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1)}.tooltip-leave-active[data-v-c606ee4c]{transition:opacity .12s ease-in,transform .12s ease-in}.tooltip-enter-from[data-v-c606ee4c]{opacity:0;transform:scale(.96)}.tooltip-enter-to[data-v-c606ee4c],.tooltip-leave-from[data-v-c606ee4c]{opacity:1;transform:scale(1)}.tooltip-leave-to[data-v-c606ee4c]{opacity:0;transform:scale(.97)}.action-icon{width:var(--ms-action-btn-icon, 14px);height:var(--ms-action-btn-icon, 14px);max-width:20px;max-height:20px}.code-block-container{margin:var(--ms-flow-codeblock-y) 0;contain:layout style;container-type:inline-size;background:var(--code-bg);border-color:var(--code-border);color:var(--code-fg);box-shadow:var(--ms-shadow-subtle)}.code-block-header{position:relative;z-index:1;gap:var(--ms-gap-header);border-radius:var(--ms-radius) var(--ms-radius) 0 0;overflow:visible}.code-block-header .code-header-main{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:var(--ms-gap-header-main);overflow:hidden}.code-block-header .code-header-copy{min-width:0;display:grid;gap:2px}.code-block-header .code-header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ms-text-label);font-weight:500;color:var(--code-action-fg)}.code-block-header .code-header-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--code-line-number)}.code-block-header .code-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ms-gap-header-actions);flex-wrap:wrap}.code-block-header .icon-slot{display:inline-flex;align-items:center;justify-content:center}.code-block-header .icon-slot svg,.code-block-header .icon-slot img{display:block;width:100%;height:100%}.code-diff-stats{display:inline-flex;align-items:center;gap:var(--ms-space-1_5);margin-right:var(--ms-space-1);font-size:var(--ms-text-label);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.code-diff-stat{display:inline-flex;align-items:center;padding:2px 6px;border-radius:var(--ms-radius);line-height:1}.code-diff-stat.removed{color:var(--diff-removed-fg);background:hsl(var(--ms-diff-removed) / .1)}.code-diff-stat.added{color:var(--diff-added-fg);background:hsl(var(--ms-diff-added) / .1)}.code-more-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:50;border-radius:var(--ms-radius)}.code-block-shell-content,.code-loading-placeholder{overflow:hidden;border-radius:0 0 var(--ms-radius) var(--ms-radius);contain:content}.code-block-shell-content--collapsed{height:0;min-height:0;visibility:hidden;pointer-events:none}.code-menu-enter-active,.code-menu-leave-active{transform-origin:top right}.code-menu-enter-active{transition:opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1)}.code-menu-leave-active{transition:opacity .14s ease-in,transform .14s ease-in}.code-menu-enter-from{opacity:0;transform:scale(.9) translateY(-4px)}.code-menu-leave-to{opacity:0;transform:scale(.95) translateY(-2px)}.html-preview-frame__backdrop[data-v-24e66176]{position:fixed;inset:0;background-color:var(--modal-overlay);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame[data-v-24e66176]{width:80vw;max-width:960px;height:70vh;background-color:var(--modal-bg);color:var(--modal-fg);border-radius:calc(var(--ms-radius) * 2);overflow:hidden;box-shadow:var(--ms-shadow-preview);display:flex;flex-direction:column}.html-preview-frame__header[data-v-24e66176]{display:flex;justify-content:space-between;align-items:center;padding:6.4px 12px;border-bottom:1px solid var(--code-border)}.html-preview-frame__title[data-v-24e66176]{display:inline-flex;align-items:center;gap:6.4px;font-size:12px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-24e66176]{width:8px;height:8px;border-radius:999px;background-color:hsl(var(--ms-success))}.html-preview-frame__label[data-v-24e66176]{white-space:nowrap}.html-preview-frame__close[data-v-24e66176]{border:none;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--modal-fg)}.html-preview-frame__iframe[data-v-24e66176]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-24e66176]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--vscode-editor-selectionBackground: var(--markstream-code-fallback-selection-bg);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 16px 40px -32px hsl(var(--ms-foreground) / .18);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .92);--markstream-diff-editor-bg: hsl(var(--ms-background));--markstream-diff-editor-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-bg: hsl(var(--ms-muted));--markstream-diff-unchanged-divider: hsl(var(--ms-background) / .94);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .26);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: linear-gradient(180deg, var(--code-bg) 0%, hsl(var(--ms-muted)) 100%);--markstream-diff-panel-bg-soft: var(--code-bg);--markstream-diff-panel-bg-strong: var(--code-bg);--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .42);--markstream-diff-gutter-bg: transparent;--markstream-diff-gutter-guide: hsl(var(--ms-border) / .72);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(var(--ms-muted) / .45);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: var(--diff-added-fg);--markstream-diff-removed-fg: var(--diff-removed-fg);--markstream-diff-added-line: var(--diff-added-bg);--markstream-diff-removed-line: var(--diff-removed-bg);--markstream-diff-added-inline: var(--diff-added-inline-bg);--markstream-diff-removed-inline: var(--diff-removed-inline-bg);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: var(--diff-added-bg);--markstream-diff-removed-line-fill: var(--diff-removed-bg)}.code-block-container.is-dark[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 18px 40px -30px hsl(var(--ms-foreground) / .84);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .82);--markstream-diff-editor-bg: #121212;--markstream-diff-editor-fg: #e5e5e5;--markstream-diff-unchanged-fg: #d4d4d4;--markstream-diff-unchanged-bg: #262626;--markstream-diff-unchanged-divider: hsl(0 0% 100% / .08);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .72);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: #121212;--markstream-diff-panel-bg-soft: #121212;--markstream-diff-panel-bg-strong: #121212;--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .34);--markstream-diff-gutter-bg: linear-gradient( 180deg, hsl(0 0% 7% / .94) 0%, hsl(0 0% 7% / .98) 100% );--markstream-diff-gutter-guide: hsl(var(--ms-muted-foreground) / .08);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(0 0% 7% / .98);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: hsl(152 42% 60%);--markstream-diff-removed-fg: hsl(0 58% 58%);--markstream-diff-added-line: hsl(152 42% 60% / .18);--markstream-diff-removed-line: hsl(0 58% 58% / .18);--markstream-diff-added-inline: hsl(152 42% 60% / .28);--markstream-diff-removed-inline: hsl(0 58% 58% / .28);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: hsl(152 42% 60% / .18);--markstream-diff-removed-line-fill: hsl(0 58% 58% / .18)}.code-editor-container[data-v-ef6e4bb8]{transition:none;box-sizing:border-box;min-width:0;width:100%}.code-block-container.is-diff .code-editor-container[data-v-ef6e4bb8]{transition:none}.code-editor-layer[data-v-ef6e4bb8]{display:grid;min-width:0;position:relative}.code-editor-layer--collapsed[data-v-ef6e4bb8]{height:0;min-height:0;overflow:hidden;visibility:hidden;pointer-events:none}.code-editor-layer>.code-editor-container[data-v-ef6e4bb8]{grid-area:1 / 1;z-index:1}.code-editor-layer>pre.code-pre-fallback[data-v-ef6e4bb8]{grid-area:1 / 1;position:relative;z-index:2}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-editor-background,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{background:var(--vscode-editor-background, var(--markstream-code-fallback-bg))!important}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-lines,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line span,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{color:var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))!important}.code-block-container.is-diff[data-v-ef6e4bb8]{color:var(--markstream-diff-shell-fg);border-color:var(--markstream-diff-shell-border);background:var(--markstream-diff-shell-bg);box-shadow:var(--markstream-diff-shell-shadow);--vscode-editor-selectionBackground: var(--markstream-diff-action-hover);--code-fg: var(--markstream-diff-shell-fg);--code-header-bg: transparent;--code-border: var(--markstream-diff-header-border);--code-line-number: var(--markstream-diff-shell-muted);--code-action-fg: var(--markstream-diff-shell-muted)}.code-block-container.is-diff .code-editor-layer[data-v-ef6e4bb8]{background:transparent;--vscode-editor-background: var(--markstream-diff-editor-bg);--vscode-editor-foreground: var(--markstream-diff-editor-fg);--vscode-diffEditor-unchangedRegionForeground: var(--markstream-diff-unchanged-fg);--vscode-diffEditor-unchangedRegionBackground: var(--markstream-diff-unchanged-bg);--vscode-focusBorder: var(--markstream-diff-focus);--vscode-widget-shadow: var(--markstream-diff-widget-shadow);--vscode-editor-selectionBackground: color-mix( in srgb, var(--markstream-diff-editor-bg) 90%, var(--markstream-diff-editor-fg) 10% );--stream-monaco-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-editor-fg: var(--markstream-diff-editor-fg);--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg);--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg);--stream-monaco-frame-radius: 0;--stream-monaco-fixed-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-frame-border: transparent;--stream-monaco-frame-shadow: none;--stream-monaco-panel-bg: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-soft: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-strong: var(--markstream-diff-editor-bg);--stream-monaco-panel-border: transparent;--stream-monaco-pane-divider: var(--markstream-diff-pane-divider);--stream-monaco-gutter-bg: var(--markstream-diff-gutter-bg);--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide);--stream-monaco-gutter-marker-width: 4px;--stream-monaco-gutter-gap: 1ch;--stream-monaco-line-number-bg: var(--markstream-diff-line-number-bg);--stream-monaco-line-number: var(--markstream-diff-line-number);--stream-monaco-line-number-active: var(--markstream-diff-line-number-active);--stream-monaco-line-number-left: 0px;--stream-monaco-line-number-width: 2ch;--stream-monaco-line-number-padding-left: 2ch;--stream-monaco-line-number-padding-right: 1ch;--stream-monaco-line-number-separator-width: 2px;--stream-monaco-layout-character-width: var(--markstream-code-layout-character-width, 1ch);--stream-monaco-line-number-box-width: calc( var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-line-number-separator-width) );--stream-monaco-diff-code-gap: 1ch;--stream-monaco-diff-code-padding: 0px;--stream-monaco-line-number-gap-to-code: var(--stream-monaco-diff-code-gap);--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) );--stream-monaco-original-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-original-scrollable-left: var(--stream-monaco-original-margin-width);--stream-monaco-original-scrollable-width: calc( 100% - var(--stream-monaco-original-margin-width) );--stream-monaco-modified-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-modified-scrollable-left: var(--stream-monaco-modified-margin-width);--stream-monaco-modified-scrollable-width: calc( 100% - var(--stream-monaco-modified-margin-width) );--stream-monaco-added-fg: var(--markstream-diff-added-fg);--stream-monaco-removed-fg: var(--markstream-diff-removed-fg);--stream-monaco-added-line: var(--markstream-diff-added-line);--stream-monaco-removed-line: var(--markstream-diff-removed-line);--stream-monaco-added-inline: var(--markstream-diff-added-inline);--stream-monaco-removed-inline: var(--markstream-diff-removed-inline);--stream-monaco-added-outline: transparent;--stream-monaco-removed-outline: transparent;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border);--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border);--stream-monaco-added-line-shadow: none;--stream-monaco-removed-line-shadow: none;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter);--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter);--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill);--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill);--stream-monaco-added-border: hsl(var(--ms-diff-added) / .25);--stream-monaco-removed-border: hsl(var(--ms-diff-removed) / .25);--stream-monaco-widget-shadow: var(--markstream-diff-widget-shadow)}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers{left:var(--stream-monaco-line-number-left)!important;width:var(--stream-monaco-line-number-width)!important;min-width:var(--stream-monaco-line-number-width)!important;box-sizing:content-box!important;background:var(--stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg))!important;padding-left:var(--stream-monaco-line-number-padding-left, 2ch)!important;padding-right:var(--stream-monaco-line-number-padding-right, 1ch)!important;border-right:var(--stream-monaco-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg)!important;text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums;box-shadow:none}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers *{text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-delete.line-numbers{background:var(--stream-monaco-removed-line-fill)!important;color:var(--stream-monaco-removed-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-insert.line-numbers{background:var(--stream-monaco-added-line-fill)!important;color:var(--stream-monaco-added-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .monaco-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays{--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) ) !important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff){--markstream-code-line-number-box-width: calc( var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + 2px );--markstream-code-content-left: calc( var(--markstream-code-line-number-box-width) + var(--markstream-code-layout-character-width, 1ch) )}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin-view-overlays{width:var(--markstream-code-content-left)!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{left:0!important;width:2ch!important;min-width:2ch!important;box-sizing:content-box!important;padding-left:2ch!important;padding-right:1ch!important;border-right:2px solid var(--vscode-editor-background)!important;text-align:var(--markstream-code-line-number-align, right)!important;font-variant-numeric:tabular-nums}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-scrollable-element.editor-scrollable{left:var(--markstream-code-content-left)!important;width:calc(100% - var(--markstream-code-content-left))!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{left:0!important}.code-editor-container[data-markstream-host-hidden=true][data-v-ef6e4bb8]{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden;visibility:hidden;pointer-events:none}pre.code-pre-fallback[data-v-ef6e4bb8]{margin:0;box-sizing:border-box;width:100%;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left, 52px);background:var(--markstream-code-fallback-bg, var(--code-bg, #fff));color:var(--markstream-code-fallback-fg, var(--code-fg));backface-visibility:visible;transform:none;-webkit-font-smoothing:auto;font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px);font-weight:400;font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace )}pre.code-pre-fallback[data-v-ef6e4bb8] code{font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit}pre.code-pre-fallback.is-wrap[data-v-ef6e4bb8]{white-space:pre-wrap;overflow-wrap:anywhere}pre.code-pre-fallback.markstream-pre--diff-preview[data-v-ef6e4bb8]{padding-left:0;padding-right:0}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{background:var(--markstream-diff-editor-bg);transition:none}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-pane{box-sizing:border-box;padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-insert>.cmdr.gutter-insert{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-added-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-delete>.cmdr.gutter-delete{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-removed-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}@media(prefers-reduced-motion:reduce){.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{transition:none}}.code-block-container.is-rendering .code-height-placeholder[data-v-ef6e4bb8]{background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;min-height:var(--ms-size-skeleton-min-height);background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%)}.code-loading-placeholder[data-v-ef6e4bb8]{padding:16px;min-height:var(--ms-size-skeleton-min-height)}.loading-skeleton[data-v-ef6e4bb8]{display:flex;flex-direction:column;gap:12px}.skeleton-line[data-v-ef6e4bb8]{height:16px;background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;border-radius:calc(var(--ms-radius) * .5)}.skeleton-line.short[data-v-ef6e4bb8]{width:60%}.code-block-container[data-markstream-viewport-pending=true] .code-height-placeholder[data-v-ef6e4bb8],.code-block-container[data-markstream-viewport-pending=true] .skeleton-line[data-v-ef6e4bb8]{animation:none}@keyframes code-skeleton-shimmer-ef6e4bb8{0%{background-position:100% 0}to{background-position:0 0}}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center{border-radius:var(--ms-radius)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;min-height:28px!important;transition:background-color .14s ease,border-color .14s ease!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 4%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 10%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center{background:transparent!important;border-color:transparent!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 6%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 12%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center .stream-monaco-unchanged-count:before{content:"";display:inline-block;width:14px;height:14px;margin-right:4px;flex-shrink:0;background:currentColor;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}[data-v-ef6e4bb8] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .diffOverview,[data-v-ef6e4bb8] .stream-monaco-diff-root .decorationsOverviewRuler{display:none!important;width:0!important;min-width:0!important;max-width:0!important;border:0!important;background:transparent!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-diff-editor{border:0!important;border-radius:0!important;box-shadow:none!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-clickable)>*:not(a){visibility:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines-compact .text{opacity:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root{--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide) !important;--stream-monaco-gutter-gap: var(--markstream-diff-gutter-gap) !important;--stream-monaco-line-number: var(--markstream-diff-line-number) !important;--stream-monaco-line-number-active: var(--markstream-diff-line-number-active) !important;--stream-monaco-added-fg: var(--markstream-diff-added-fg) !important;--stream-monaco-removed-fg: var(--markstream-diff-removed-fg) !important;--stream-monaco-added-line: var(--markstream-diff-added-line) !important;--stream-monaco-removed-line: var(--markstream-diff-removed-line) !important;--stream-monaco-added-inline: var(--markstream-diff-added-inline) !important;--stream-monaco-removed-inline: var(--markstream-diff-removed-inline) !important;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border) !important;--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border) !important;--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill) !important;--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill) !important;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter) !important;--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter) !important;--stream-monaco-added-line-shadow: none !important;--stream-monaco-removed-line-shadow: none !important;--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;box-sizing:border-box;min-width:0;width:100%}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .overflow-guard,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side),[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .overflow-guard{min-width:0!important;width:100%!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-scrollable-element.editor-scrollable,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-scrollable-element.editor-scrollable{left:var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width))!important;width:calc(100% - var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width)))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.modified .view-lines .view-line.stream-monaco-line-insert-fill,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.original .view-lines .view-line.stream-monaco-line-delete-fill{width:1000000px!important}.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-fallback-inline-delete-line{box-sizing:border-box;padding-left:var(--stream-monaco-diff-code-padding, 0px)}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .scrollbar.horizontal,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .scrollbar.horizontal{display:none!important;height:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .view-lines.line-delete{margin-left:0!important;width:100%!important;background:var(--stream-monaco-removed-line-fill)!important;box-shadow:var(--stream-monaco-removed-line-shadow)!important;display:block!important;height:-moz-max-content!important;height:max-content!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .gutter-delete,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .inline-deleted-margin-view-zone,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .stream-monaco-fallback-inline-delete-margin{background:var(--stream-monaco-removed-gutter),var(--stream-monaco-removed-line-fill)!important;display:block!important;height:100%!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-unchanged-bridge-source),[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;background:var(--stream-monaco-unchanged-bg)!important;color:var(--stream-monaco-unchanged-fg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{right:calc(var(--stream-monaco-gutter-marker-width) - var(--stream-monaco-unchanged-rail-width) / 2 + (var(--stream-monaco-gutter-gap) * 2))!important;width:auto!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important;color:var(--markstream-diff-unchanged-fg)!important;padding-left:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important;padding-right:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge.stream-monaco-diff-unchanged-bridge-line-info .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail{border-right-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal{border-bottom-color:transparent!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-both .stream-monaco-unchanged-reveal:first-child{border-bottom-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-top-only .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-bottom-only .stream-monaco-unchanged-reveal{border-bottom:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-meta,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-count,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-metadata-label,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{color:var(--markstream-diff-unchanged-fg)!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center{align-items:center;justify-content:center}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center{align-items:center;justify-content:center!important;position:relative}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center:not(.stream-monaco-clickable){opacity:0!important;pointer-events:none!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center .stream-monaco-unchanged-meta{justify-content:center!important;padding:0 28px!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center>div:first-child{align-items:center;display:flex;justify-content:center!important;min-width:100%;width:100%!important}[data-v-ef6e4bb8] .markstream-inline-fold-proxy{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:calc(var(--ms-radius) * .5);box-shadow:none;cursor:pointer;inset:0;padding:0;pointer-events:auto;position:absolute;z-index:2}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:hover,[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{background:transparent}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{outline:1px solid var(--vscode-focusBorder, currentColor);outline-offset:-1px}.math-inline-wrapper[data-v-6c556261]{position:relative;display:inline-block}.math-inline[data-v-6c556261]{display:inline-block;vertical-align:middle}.math-inline--fallback[data-v-6c556261]{white-space:pre-wrap}.math-inline__loading[data-v-6c556261]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-6c556261]{width:16px;height:16px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-6c556261],.table-node-fade-leave-active[data-v-6c556261]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-6c556261],.table-node-fade-leave-to[data-v-6c556261]{opacity:0}.sr-only[data-v-6c556261]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-block[data-v-939191ad]{min-height:var(--ms-size-math-min-height);transition:min-height var(--ms-duration-overlay) var(--ms-ease-standard)}.math-loading-overlay[data-v-939191ad]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:var(--ms-size-math-min-height)}.math-loading-spinner[data-v-939191ad]{width:20px;height:20px;border:2px solid color-mix(in srgb,var(--loading-spinner) 15%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);border-radius:50%;animation:math-spin-939191ad .8s linear infinite}@keyframes math-spin-939191ad{to{transform:rotate(360deg)}}.math-rendering[data-v-939191ad]{opacity:.3;transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.math-block__fallback[data-v-939191ad]{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.math-fade-enter-active[data-v-939191ad],.math-fade-leave-active[data-v-939191ad]{transition:all var(--ms-duration-slow) var(--ms-ease-standard)}.math-fade-enter-from[data-v-939191ad],.math-fade-leave-to[data-v-939191ad]{opacity:0}.action-icon{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot{display:inline-flex;align-items:center;justify-content:center}.icon-slot svg{display:block;width:100%;height:100%}.mermaid-block-container[data-v-73c385f8]{margin:var(--ms-flow-diagram-y) 0;border-color:var(--diagram-border)}.mermaid-block-header[data-v-73c385f8]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border)}.mermaid-label-text[data-v-73c385f8]{color:var(--code-action-fg)}.mermaid-mode-toggle-group[data-v-73c385f8]{background:transparent}.mermaid-mode-btn[data-v-73c385f8]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6}.mermaid-mode-btn[data-v-73c385f8]:hover{opacity:.9}.mermaid-mode-btn.is-active[data-v-73c385f8]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.mermaid-header-actions[data-v-73c385f8]{gap:var(--ms-gap-header-actions)}.mermaid-action-btn[data-v-73c385f8]{font-family:inherit;font-size:var(--ms-text-label);color:var(--code-action-fg)}.mermaid-action-btn[data-v-73c385f8]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.mermaid-action-btn[data-v-73c385f8]:active{transform:scale(.98)}.mermaid-source-panel[data-v-73c385f8]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.mermaid-source-code[data-v-73c385f8]{color:hsl(var(--ms-foreground))}.mermaid-preview-area[data-v-73c385f8]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-standard)}.mermaid-modal-overlay[data-v-73c385f8]{background:var(--modal-overlay)}.mermaid-modal-panel[data-v-73c385f8]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}._mermaid[data-v-73c385f8]{position:relative;font-family:inherit;content-visibility:auto;contain:content;contain-intrinsic-size:var(--ms-size-diagram-min-height) 240px}._mermaid[data-v-73c385f8] [data-mermaid-svg-layer]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;min-height:100%}._mermaid[data-v-73c385f8] svg{width:100%;height:auto;max-height:100%;display:block}.fullscreen ._mermaid[data-v-73c385f8] svg{max-height:none}.fullscreen[data-v-73c385f8]{width:100%;max-height:100%!important;height:100%!important}.mermaid-dialog-enter-from[data-v-73c385f8],.mermaid-dialog-leave-to[data-v-73c385f8]{opacity:0}.mermaid-dialog-enter-active[data-v-73c385f8],.mermaid-dialog-leave-active[data-v-73c385f8]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.mermaid-dialog-enter-from .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-to .dialog-panel[data-v-73c385f8]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-from .dialog-panel[data-v-73c385f8]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-active .dialog-panel[data-v-73c385f8]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-block-container[data-v-de34ec4b]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.infographic-block-header[data-v-de34ec4b]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.infographic-label[data-v-de34ec4b]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}.action-icon[data-v-de34ec4b]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot[data-v-de34ec4b]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-de34ec4b] svg{display:block;width:100%;height:100%}.infographic-mode-toggle[data-v-de34ec4b]{background:transparent}.infographic-mode-btn[data-v-de34ec4b]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:color .15s,background-color .15s,opacity .15s}.infographic-mode-btn[data-v-de34ec4b]:hover{opacity:.9}.infographic-mode-btn.is-active[data-v-de34ec4b]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.infographic-header-actions[data-v-de34ec4b]{gap:var(--ms-gap-header-actions)}.infographic-action-btn[data-v-de34ec4b]{font-family:inherit;color:var(--code-action-fg);transition:background-color .15s,color .15s}.infographic-action-btn[data-v-de34ec4b]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.infographic-action-btn[data-v-de34ec4b]:active{transform:scale(.98)}.infographic-source[data-v-de34ec4b]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.infographic-source-code[data-v-de34ec4b]{color:hsl(var(--ms-foreground))}.infographic-preview[data-v-de34ec4b]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-fast)}.infographic-pending-source[data-v-de34ec4b]{position:absolute;inset:0;z-index:1;margin:0;padding:var(--ms-inset-panel-body);overflow:auto;color:hsl(var(--ms-foreground));text-align:left;background:var(--diagram-bg)}.infographic-modal-overlay[data-v-de34ec4b]{background:var(--modal-overlay)}.infographic-modal-panel[data-v-de34ec4b]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}.fullscreen[data-v-de34ec4b]{width:100%;max-height:100%!important;height:100%!important}.infographic-dialog-enter-from[data-v-de34ec4b],.infographic-dialog-leave-to[data-v-de34ec4b]{opacity:0}.infographic-dialog-enter-active[data-v-de34ec4b],.infographic-dialog-leave-active[data-v-de34ec4b]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-dialog-enter-from .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-to .dialog-panel[data-v-de34ec4b]{transform:translateY(8px) scale(.98);opacity:.98}.infographic-dialog-enter-to .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-from .dialog-panel[data-v-de34ec4b]{transform:translateY(0) scale(1);opacity:1}.infographic-dialog-enter-active .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-active .dialog-panel[data-v-de34ec4b]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.d2-block-container[data-v-3b434cf5]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.d2-block-header[data-v-3b434cf5]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.d2-mode-toggle[data-v-3b434cf5]{background:transparent}.mode-btn[data-v-3b434cf5]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:opacity .2s,color .2s,background-color .2s}.mode-btn[data-v-3b434cf5]:hover{opacity:.9}.mode-btn.is-active[data-v-3b434cf5]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.d2-header-actions[data-v-3b434cf5]{gap:var(--ms-gap-header-actions)}.d2-action-btn[data-v-3b434cf5]{color:var(--code-action-fg);opacity:.7;transition:opacity .2s,background-color .15s,color .15s}.d2-action-btn[data-v-3b434cf5]:hover{opacity:1;background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.d2-action-btn[data-v-3b434cf5]:disabled{opacity:.3;cursor:not-allowed}.d2-block-body[data-v-3b434cf5]{position:relative}.d2-source[data-v-3b434cf5]{padding:var(--ms-inset-panel-body) var(--ms-inset-panel-x);font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.d2-code[data-v-3b434cf5]{white-space:pre;font-size:14px;line-height:1.5}.d2-render[data-v-3b434cf5]{max-height:var(--ms-size-code-max-height);overflow:auto}.d2-svg[data-v-3b434cf5] svg.markstream-d2-root-svg{width:100%;max-width:100%;height:auto;display:block}.d2-label[data-v-3b434cf5]{font-size:var(--ms-text-label)}.action-icon[data-v-3b434cf5]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.d2-error[data-v-3b434cf5]{color:hsl(var(--ms-destructive))}.markstream-virtual-timeline[data-v-1303f06e]{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;overflow:auto;overflow-anchor:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__spacer[data-v-1303f06e],.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e]{opacity:0;visibility:hidden;pointer-events:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e],.markstream-virtual-timeline__item.is-restored-height-floor[data-v-1303f06e]{height:var(--markstream-virtual-item-size);overflow:hidden}.markstream-virtual-timeline__restore-loading[data-v-1303f06e]{position:absolute;top:0;left:0;right:0;z-index:10;display:grid;place-items:center;pointer-events:none;overflow:hidden;background:Canvas;contain:strict}.markstream-virtual-timeline__restore-loading-card[data-v-1303f06e]{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgb(148 163 184 / 32%);border-radius:999px;background:#ffffffeb;color:#334155;font-size:13px;box-shadow:0 8px 24px #0f172a14}.markstream-virtual-timeline__restore-spinner[data-v-1303f06e]{width:14px;height:14px;border:2px solid rgb(148 163 184 / 35%);border-top-color:#334155;border-radius:999px;animation:markstream-timeline-restore-spin-1303f06e .8s linear infinite}@keyframes markstream-timeline-restore-spin-1303f06e{to{transform:rotate(360deg)}}.markstream-virtual-timeline__spacer[data-v-1303f06e]{flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__item[data-v-1303f06e]{display:flow-root;flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__default-item[data-v-1303f06e]{margin:8px 0;padding:10px 12px;border:1px solid rgb(148 163 184 / 32%);border-radius:8px;background:#f8fafc;color:#0f172a;line-height:1.5;white-space:pre-wrap}.markstream-virtual-timeline__default-item--system-divider[data-v-1303f06e]{border:0;background:transparent;color:#64748b;font-size:12px;text-align:center}.markstream-virtual-timeline__default-item--error[data-v-1303f06e]{border-color:#f8717173;background:#fef2f2;color:#991b1b}.markstream-virtual-timeline__status[data-v-1303f06e]{display:inline-flex;margin-right:8px;color:#475569;font-size:12px;text-transform:uppercase}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.md[data-v-4a3beed4]{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text);word-break:break-word}.md[data-v-4a3beed4] .markdown-renderer{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text)}.md[data-v-4a3beed4] .markstream-vue,.md[data-v-4a3beed4] .markdown-renderer{--code-bg: var(--color-surface-sunken);--code-fg: var(--color-text);--code-border: var(--color-line);--code-header-bg: var(--color-surface);--code-action-fg: var(--color-text-muted);--code-action-hover-fg: var(--color-accent);--markstream-code-fallback-bg: var(--color-surface-sunken);--markstream-code-fallback-fg: var(--color-text);--markstream-code-border-color: var(--color-line);--inline-code-bg: var(--color-inline-code-bg);--inline-code-fg: var(--color-text);--inline-code-border: transparent}.md[data-v-4a3beed4] .md-file-link{appearance:none;display:inline;border:0;padding:0;background:transparent;color:var(--color-accent-hover);font:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}.md[data-v-4a3beed4] .md-file-link:hover{color:var(--color-accent)}.md[data-v-4a3beed4] .inline-code .md-file-link{text-underline-offset:1.5px}.md[data-v-4a3beed4] .markdown-renderer p,.md[data-v-4a3beed4] .markdown-renderer li{font-size:var(--content-font-size);line-height:round(calc(var(--content-font-size) * 1.625),1px)}.md[data-v-4a3beed4] .markdown-renderer blockquote,.md[data-v-4a3beed4] .markdown-renderer td,.md[data-v-4a3beed4] .markdown-renderer th{font-size:var(--md-b2)}.md[data-v-4a3beed4] .markdown-renderer img{background:var(--media-alpha-canvas)}.md[data-v-4a3beed4] strong{color:color-mix(in srgb,var(--color-text) 86%,var(--color-text-muted));font-weight:var(--weight-semibold)}.md[data-v-4a3beed4] h1,.md[data-v-4a3beed4] h2,.md[data-v-4a3beed4] h3,.md[data-v-4a3beed4] h4{color:var(--color-text);font-optical-sizing:auto;font-weight:600;margin:.85em 0 .35em}.md[data-v-4a3beed4] h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px);border-bottom:1px solid var(--color-line);padding-bottom:4px}.md[data-v-4a3beed4] h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.md[data-v-4a3beed4] h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.md[data-v-4a3beed4] h4{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px);color:var(--color-text-muted)}.md[data-v-4a3beed4] p{margin:0}.md[data-v-4a3beed4] .node-slot+.node-slot{margin-top:var(--content-font-size)}.md[data-v-4a3beed4] .node-slot+.node-slot:has(h1),.md[data-v-4a3beed4] .node-slot+.node-slot:has(h2){margin-top:calc(var(--content-font-size) * 2)}.md[data-v-4a3beed4] .node-slot+.node-slot:has(h3),.md[data-v-4a3beed4] .node-slot+.node-slot:has(h4){margin-top:calc(var(--content-font-size) * 1.5)}.md[data-v-4a3beed4] ul,.md[data-v-4a3beed4] ol{--md-dot: round(calc(var(--content-font-size) * .375), 1px);list-style:none;margin:0;padding-left:calc(var(--content-font-size) * 2)}.md[data-v-4a3beed4] li{position:relative;margin:0;padding:0}.md[data-v-4a3beed4] li+li{margin-top:round(calc(var(--content-font-size) * .75),1px)}.md[data-v-4a3beed4] li>ul,.md[data-v-4a3beed4] li>ol{margin-top:round(calc(var(--content-font-size) * .75),1px);padding-left:calc(var(--content-font-size) * 1.5)}.md[data-v-4a3beed4] ul>li:before{content:"";position:absolute;left:calc((var(--md-dot) + var(--content-font-size) * 2) / -2);top:calc((round(calc(var(--content-font-size) * 1.625),1px) - var(--md-dot)) / 2);width:var(--md-dot);height:var(--md-dot);border-radius:50%;background:color-mix(in srgb,var(--color-text) 90%,transparent)}.md[data-v-4a3beed4] ul>li:has(>input[type=checkbox]):before,.md[data-v-4a3beed4] ul>li:has(>p>input[type=checkbox]):before{content:none}.md[data-v-4a3beed4] ul ul>li:before{background:transparent;border:1px solid color-mix(in srgb,var(--color-text) 90%,transparent);box-sizing:border-box}.md[data-v-4a3beed4] ol{counter-reset:md-ol}.md[data-v-4a3beed4] ol[start],.md[data-v-4a3beed4] ol:has(>li[value]){counter-reset:none;list-style:decimal}.md[data-v-4a3beed4] ol[start]>li,.md[data-v-4a3beed4] ol:has(>li[value])>li{counter-increment:none}.md[data-v-4a3beed4] ol[start]>li:before,.md[data-v-4a3beed4] ol:has(>li[value])>li:before{content:none}.md[data-v-4a3beed4] ol>li{counter-increment:md-ol}.md[data-v-4a3beed4] ol>li:before{content:counter(md-ol) ".";position:absolute;top:0;left:calc(var(--content-font-size) * -2);width:calc(var(--content-font-size) * 2);line-height:round(calc(var(--content-font-size) * 1.625),1px);text-align:center;color:var(--color-text)}.md[data-v-4a3beed4] :not(pre)>code,.md[data-v-4a3beed4] .inline-code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);color:var(--color-text);border:0;padding:0 4px;border-radius:var(--radius-sm)}.md[data-v-4a3beed4] strong code,.md[data-v-4a3beed4] strong .inline-code,.md[data-v-4a3beed4] b code,.md[data-v-4a3beed4] b .inline-code{font-weight:var(--weight-semibold)}.md[data-v-4a3beed4] .code-block-container{margin:.6em 0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow:hidden;--vscode-editor-font-size: var(--text-sm);--vscode-editor-line-height: calc(var(--text-sm) * 1.65)}.md[data-v-4a3beed4] .code-block-header{background:var(--color-surface);border-bottom:.5px solid var(--color-line);padding:4px 6px 4px 12px;color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-4a3beed4] .code-block-header *{color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-4a3beed4] .code-block-header .code-header-main{font-family:var(--font-ui)}.md[data-v-4a3beed4] .code-block-header .code-action-btn{color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.md[data-v-4a3beed4] .code-block-header .code-action-btn:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-4a3beed4] .code-block-header .code-action-btn:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-4a3beed4] .code-block-header .code-action-btn *{pointer-events:none}.md[data-v-4a3beed4] .code-block-shell-content,.md[data-v-4a3beed4] .markstream-pre{background:var(--color-well)}.md[data-v-4a3beed4] .code-editor-container{line-height:1.65;--diffs-gap-block: var(--space-3)}.md[data-v-4a3beed4] .code-editor-container diffs-container{--diffs-line-height: 1.65em}.md[data-v-4a3beed4] .code-pre-fallback>.markstream-pre__line-numbers{display:none}.md[data-v-4a3beed4] .code-block-container .code-pre-fallback{padding-left:1ch;line-height:1.65!important}.md[data-v-4a3beed4] .code-block-container pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers),.md[data-v-4a3beed4] .markstream-pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers){margin:0;padding:12px 14px;overflow-x:auto;font:var(--text-sm)/1.65 var(--font-mono)}.md[data-v-4a3beed4] .code-block-container pre code{font:inherit;color:var(--color-text);background:none;border:none;padding:0;border-radius:0}.md[data-v-4a3beed4] .markstream-pre,.md[data-v-4a3beed4] .code-pre-fallback,.md[data-v-4a3beed4] .code-block-shell-content pre:not(.shiki),.md[data-v-4a3beed4] .code-block-shell-content pre:not(.shiki) code{color:var(--color-text)}.md[data-v-4a3beed4] a{color:var(--color-accent);text-decoration:none}.md[data-v-4a3beed4] a:hover{text-decoration:underline}.md[data-v-4a3beed4] a.mention-pill{color:var(--color-text-muted);text-decoration:none}.md[data-v-4a3beed4] a.mention-folder:hover{text-decoration:none}.md[data-v-4a3beed4] .katex-display{overflow-x:auto;overflow-y:hidden;padding:2px 0 6px;margin:.6em 0}.md[data-v-4a3beed4] .math-inline{vertical-align:baseline}.md[data-v-4a3beed4] blockquote{position:relative;margin:0;padding:0 0 0 round(calc(var(--content-font-size) * 1.5),1px);border-left:none;color:var(--color-text)}.md[data-v-4a3beed4] blockquote:before{content:"";position:absolute;left:calc(round(calc(var(--content-font-size) * 1.5),1px)/2 - 1px);top:2px;bottom:2px;width:2px;border-radius:2px;background:var(--color-line)}.md[data-v-4a3beed4] .blockquote>.paragraph-node{margin:0}.md[data-v-4a3beed4] .blockquote>.paragraph-node+.paragraph-node{margin-top:var(--content-font-size)}.md[data-v-4a3beed4] hr{border:none;border-top:1px solid var(--color-line);margin:0}.md[data-v-4a3beed4] table:not(.table-node){border-collapse:collapse;font-size:var(--text-lg);margin:.5em 0}.md[data-v-4a3beed4] table:not(.table-node) th,.md[data-v-4a3beed4] table:not(.table-node) td{border:1px solid var(--color-line);padding:4px 10px;text-align:left}.md[data-v-4a3beed4] table:not(.table-node) th{background:var(--color-surface);color:var(--color-text);font-weight:var(--weight-medium)}.md[data-v-4a3beed4] .table-node-wrapper{width:100%;max-width:100%!important;min-width:0;overflow-x:auto!important;scrollbar-gutter:auto!important;position:relative;--table-cell-cap: var(--p-table-cell-max)}.md[data-v-4a3beed4] .table-node{--table-border: var(--color-line);--table-header-bg: var(--color-surface);font-size:var(--text-lg);margin:.5em 0;width:max-content!important;min-width:100%;max-width:none!important;table-layout:auto!important}.md[data-v-4a3beed4] .table-node th,.md[data-v-4a3beed4] .table-node td{text-align:left;vertical-align:top;max-width:var(--table-cell-cap)}.md[data-v-4a3beed4] .table-node .text-node{display:inline-block;max-width:var(--table-cell-cap);vertical-align:top}.md[data-v-4a3beed4] .md-table-fade{display:none;position:absolute;top:0;bottom:0;right:0;width:36px;z-index:1;background:linear-gradient(to right,transparent,color-mix(in srgb,var(--color-bg) 65%,transparent) 55%,var(--color-bg));pointer-events:none;transition:opacity var(--duration-base) var(--ease-out)}.md[data-v-4a3beed4] .md-table-at-end .md-table-fade{opacity:0}.md[data-v-4a3beed4] .md-table-toggle{display:none;position:absolute;top:6px;right:6px;z-index:2;align-items:center;justify-content:center;width:26px;height:26px;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);cursor:pointer;opacity:0;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}@container (min-width: 760px){.md[data-v-4a3beed4] .md-table-fade.md-table-toggle--show,.md[data-v-4a3beed4] .md-table-toggle.md-table-toggle--show{display:block}.md[data-v-4a3beed4] .md-table-toggle.md-table-toggle--show{display:inline-flex}}.md[data-v-4a3beed4] .table-node-wrapper:hover .md-table-toggle.md-table-toggle--show,.md[data-v-4a3beed4] .table-node-wrapper:focus-within .md-table-toggle.md-table-toggle--show,.md[data-v-4a3beed4] .table-node-wrapper.md-table-wide .md-table-toggle.md-table-toggle--show{opacity:1}.md[data-v-4a3beed4] .md-table-toggle:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-4a3beed4] .md-table-toggle:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-4a3beed4] .md-table-toggle svg{display:block}.md[data-v-4a3beed4] .table-node tbody tr:hover{background-color:transparent!important}.md-frontmatter[data-v-4a3beed4]{margin:0 0 var(--space-2);padding:var(--space-3) var(--space-4);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow-x:auto;color:var(--color-text-muted);font:var(--text-sm)/1.65 var(--font-mono)}.diff-wrap[data-v-4a3beed4]{margin:.6em 0;border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-sunken);box-shadow:var(--shadow-xs);overflow:hidden}.diff-bar[data-v-4a3beed4]{display:flex;align-items:center;gap:6px;padding:4px 12px;background:var(--color-surface);border-bottom:1px solid var(--color-line);color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.diff-lang[data-v-4a3beed4]{margin-right:auto}.diff-copy[data-v-4a3beed4]{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;padding:2px 6px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.diff-copy[data-v-4a3beed4]:hover{background:var(--color-surface-sunken);color:var(--color-text)}.diff-copy[data-v-4a3beed4]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.diff-pre[data-v-4a3beed4]{margin:0;padding:12px 0;overflow-x:auto;background:var(--color-surface-sunken)}.diff-pre code[data-v-4a3beed4]{display:block;width:max-content;min-width:100%;font:var(--text-sm)/1.65 var(--font-mono);color:var(--color-text)}.diff-line[data-v-4a3beed4]{display:block;width:100%;padding:0 14px}.diff-sign[data-v-4a3beed4]{display:inline-block;width:14px;text-align:center;color:var(--color-text-muted);user-select:none}.diff-text[data-v-4a3beed4]{color:var(--color-text)}.diff-add[data-v-4a3beed4]{background:var(--color-success-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.diff-add .diff-sign[data-v-4a3beed4]{color:var(--color-success)}.diff-del[data-v-4a3beed4]{background:var(--color-danger-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diff-del .diff-sign[data-v-4a3beed4]{color:var(--color-danger)}.diff-hunk[data-v-4a3beed4]{background:var(--color-surface)}.diff-hunk .diff-text[data-v-4a3beed4]{color:var(--color-text-muted)}.md[data-v-4a3beed4],.md .markdown-renderer[data-v-4a3beed4]{font-family:var(--sans)}.md .code-block-container[data-v-4a3beed4],.md .diff-wrap[data-v-4a3beed4]{border-radius:var(--radius-md)}.md :not(pre)>code[data-v-4a3beed4],.md .inline-code[data-v-4a3beed4]{border-radius:var(--radius-sm)}.plan-glyph[data-v-8dff80a1]{display:inline-flex;align-items:center}.plan-path[data-v-8dff80a1]{display:block;max-width:100%;margin:0 0 var(--space-2);padding:0;overflow:hidden;border:none;background:transparent;color:var(--color-accent);font-family:var(--font-mono);font-size:var(--text-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-8dff80a1]:hover{text-decoration:underline}.plan-path[data-v-8dff80a1]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.plan-content[data-v-8dff80a1]{padding:var(--space-3);border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);color:var(--color-text)}.plan-review[data-v-8dff80a1]{display:flex;flex-direction:column;gap:var(--space-1);margin-top:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.plan-review>div[data-v-8dff80a1]{display:flex;align-items:baseline;gap:var(--space-2)}.review-label[data-v-8dff80a1]{flex:none;color:var(--color-text-faint)}.review-feedback[data-v-8dff80a1]{white-space:pre-wrap}.path-link[data-v-0edbdd82]{display:block;width:100%;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 0 var(--space-1);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);color:var(--color-text-muted);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.path-link[data-v-0edbdd82]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.path-link[data-v-0edbdd82]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.swarm-card[data-v-f7b643ea]{margin:0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.swarm-card.err[data-v-f7b643ea]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.head[data-v-f7b643ea]:hover{background:var(--color-hover);color:var(--color-text)}.head[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ic[data-v-f7b643ea]{color:var(--color-text-faint);flex:none}.title[data-v-f7b643ea]{font-weight:var(--weight-medium);color:var(--color-text);flex:none}.meta[data-v-f7b643ea]{color:var(--color-text-faint);flex:none}.sum-txt[data-v-f7b643ea]{color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.rt[data-v-f7b643ea]{margin-left:auto;display:flex;align-items:center;gap:var(--space-2);flex:none;color:var(--color-text-muted);font-size:var(--text-xs)}.status[data-v-f7b643ea]{display:inline-flex;align-items:center;flex:none}.status[data-v-f7b643ea]:has(>svg){color:var(--color-success)}.err .status[data-v-f7b643ea]:has(>svg){color:var(--color-danger)}.chip[data-v-f7b643ea]{color:var(--color-text-muted);font-family:var(--font-mono)}.tm[data-v-f7b643ea]{color:var(--color-text-faint);font-family:var(--font-mono)}.car[data-v-f7b643ea]{margin-left:2px;color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.swarm-card.open .car[data-v-f7b643ea]{transform:rotate(90deg)}.body[data-v-f7b643ea]{border-top:.5px solid var(--color-line)}.overview[data-v-f7b643ea]{padding:10px var(--space-3) var(--space-2);border-bottom:.5px solid var(--color-line)}.overview-line[data-v-f7b643ea]{display:flex;align-items:baseline;gap:var(--space-2)}.big[data-v-f7b643ea]{font-family:var(--font-mono);font-weight:var(--weight-medium);color:var(--color-text);font-size:15px}.lbl[data-v-f7b643ea]{color:var(--color-text-muted);font-size:var(--text-xs)}.seg[data-v-f7b643ea]{display:flex;height:5px;border-radius:var(--radius-full);overflow:hidden;margin:var(--space-2) 0 var(--space-1);gap:2px}.seg>span[data-v-f7b643ea]{height:100%;border-radius:var(--radius-full);min-width:3px}.s-ok[data-v-f7b643ea]{background:var(--color-success)}.s-run[data-v-f7b643ea]{background:var(--color-accent)}.s-warn[data-v-f7b643ea]{background:var(--color-warning)}.s-fail[data-v-f7b643ea]{background:var(--color-danger)}.s-queue[data-v-f7b643ea]{background:var(--color-line)}.legend[data-v-f7b643ea]{display:flex;flex-wrap:wrap;gap:10px}.legend span[data-v-f7b643ea]{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted)}.lg-dot[data-v-f7b643ea]{width:6px;height:6px;border-radius:var(--radius-full)}.member[data-v-f7b643ea]{border-bottom:.5px solid var(--color-line)}.member[data-v-f7b643ea]:last-child{border-bottom:none}.member-head[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:30px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.member-head[data-v-f7b643ea]:not(:disabled):hover{background:var(--color-hover)}.member-head[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.member-head[data-v-f7b643ea]:disabled{cursor:default}.row-dot[data-v-f7b643ea]{flex:none}.mname[data-v-f7b643ea]{flex:none;min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-medium);color:var(--color-text)}.mact[data-v-f7b643ea]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font-size:var(--text-xs)}.mphase[data-v-f7b643ea]{flex:none;margin-left:auto;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.phase-completed .mphase[data-v-f7b643ea]{color:var(--color-success)}.phase-failed .mphase[data-v-f7b643ea]{color:var(--color-danger)}.phase-working .mphase[data-v-f7b643ea]{color:var(--color-accent)}.phase-suspended .mphase[data-v-f7b643ea]{color:var(--color-warning)}.mcar[data-v-f7b643ea]{margin-left:var(--space-1);color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.member.open .mcar[data-v-f7b643ea]{transform:rotate(90deg)}.member-saved[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.member-saved[data-v-f7b643ea]:hover{color:var(--color-text-muted)}.member-saved[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.member-saved-car[data-v-f7b643ea]{transition:transform var(--duration-base) var(--ease-out)}.member-saved-car.open[data-v-f7b643ea]{transform:rotate(90deg)}.member-body[data-v-f7b643ea]{padding:var(--space-1) var(--space-3) 10px 31px;color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.65;white-space:pre-wrap;word-break:break-word}.waiting[data-v-f7b643ea]{padding:6px var(--space-3) 10px;color:var(--color-text-muted);font-size:var(--text-xs)}.fallback-output[data-v-f7b643ea]{padding:10px var(--space-3);color:var(--color-text);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.status-glyph[data-v-f1aedfd0]{flex:none;width:16px;display:inline-flex;align-items:center;justify-content:center;user-select:none}.status-glyph.s-run[data-v-f1aedfd0]{color:var(--color-accent)}.status-glyph.s-done[data-v-f1aedfd0]{color:var(--color-success)}.status-glyph.s-fail[data-v-f1aedfd0]{color:var(--color-danger)}.status-glyph.s-pending[data-v-f1aedfd0]{color:var(--color-text-faint)}.todo-bar[data-v-1b7f51f3]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.todo-fill[data-v-1b7f51f3]{background:var(--color-success);border-radius:var(--radius-full);transition:width var(--duration-slow) var(--ease-out)}.todo-list[data-v-1b7f51f3]{display:flex;flex-direction:column;gap:1px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-2) var(--space-3);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.todo-row[data-v-1b7f51f3]{display:flex;align-items:center;gap:7px;padding:2px 0;font-size:calc(var(--content-font-size) - 1px);color:var(--color-text)}.todo-title[data-v-1b7f51f3]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}.todo-row.s-in_progress .todo-title[data-v-1b7f51f3]{font-weight:var(--weight-medium)}.todo-row.s-done .todo-title[data-v-1b7f51f3]{color:var(--color-text-faint);text-decoration:line-through}.wf-glance[data-v-256015f8]{margin-bottom:var(--space-1)}.wf-main[data-v-256015f8]{color:var(--color-text);font-size:var(--text-sm);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.wf-sub[data-v-256015f8]{color:var(--color-text-muted);font-size:var(--text-xs);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.fetch-url[data-v-8c248fcc]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;color:var(--color-text-faint);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.think[data-v-980ffe0e]{margin:0}.think-head[data-v-980ffe0e]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.think-head[data-v-980ffe0e]:hover{color:var(--color-text)}.think-head[data-v-980ffe0e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.think-bulb[data-v-980ffe0e]{flex:none}.think-title[data-v-980ffe0e]{font-weight:var(--weight-medium)}.think-time[data-v-980ffe0e]{color:var(--color-text-faint);font-weight:400;flex:none}.think.streaming .think-title[data-v-980ffe0e]{animation:think-breathe-980ffe0e 1.6s var(--ease-in-out) infinite}@keyframes think-breathe-980ffe0e{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.think.streaming .think-title[data-v-980ffe0e]{animation:none}}.think-car[data-v-980ffe0e]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.think.open .think-car[data-v-980ffe0e]{transform:rotate(90deg)}.think-body[data-v-980ffe0e]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.think-body.instant[data-v-980ffe0e]{transition:none}.think-body.open[data-v-980ffe0e]{grid-template-rows:minmax(0,1fr)}.think-body-inner[data-v-980ffe0e]{min-height:0;overflow:hidden}.think-text[data-v-980ffe0e]{font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:var(--space-1) 0 var(--space-2)}.mob .think-text[data-v-980ffe0e]{color:var(--color-text-faint);line-height:var(--leading-normal)}.activity-run[data-v-45842de9]{display:flex;flex-direction:column;animation:kimi-card-in var(--duration-base) var(--ease-out)}.ar-head[data-v-45842de9]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.ar-head[data-v-45842de9]:hover{color:var(--color-text)}.ar-head.is-static[data-v-45842de9],.ar-head.is-static[data-v-45842de9]:hover{cursor:default;color:var(--color-text-faint)}.ar-head[data-v-45842de9]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ar-glyph[data-v-45842de9]{display:inline-flex;align-items:center;flex:none;color:var(--color-text-faint)}.ar-glyph.ok[data-v-45842de9]{color:var(--color-success)}.ar-glyph.err[data-v-45842de9]{color:var(--color-danger)}.ar-glyph.run[data-v-45842de9]{color:var(--color-text-muted);animation:ar-breathe-45842de9 1.6s var(--ease-in-out) infinite}@keyframes ar-breathe-45842de9{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.ar-glyph.run[data-v-45842de9]{animation:none}}.ar-sum[data-v-45842de9]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.ar-danger[data-v-45842de9]{color:var(--color-danger)}.ar-faint[data-v-45842de9],.ar-sep[data-v-45842de9]{color:var(--color-text-faint)}.ar-car[data-v-45842de9]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.activity-run.open .ar-car[data-v-45842de9]{transform:rotate(90deg)}.ar-body[data-v-45842de9]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.ar-body.open[data-v-45842de9]{grid-template-rows:minmax(0,1fr)}.ar-body-inner[data-v-45842de9]{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:var(--space-2);padding-top:var(--space-1)}.msg-time[data-v-9153170e]{display:inline-flex;align-items:center;min-height:22px;box-sizing:border-box;padding:2px 5px;border-radius:var(--radius-sm);color:var(--muted);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;opacity:.7;white-space:nowrap}.ntf-list[data-v-010c7307]{display:flex;flex-direction:column;align-items:flex-end;gap:var(--space-3);margin:var(--space-2) 0}.ntn[data-v-010c7307]{margin-left:auto;max-width:var(--p-bubble-max);display:flex;flex-direction:column;align-items:flex-end}.ntn-head[data-v-010c7307]{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.ntn-ico[data-v-010c7307]{flex:none}.ntn.ok .ntn-ico[data-v-010c7307]{color:var(--color-success)}.ntn.err .ntn-ico[data-v-010c7307]{color:var(--color-danger)}.ntn.warn .ntn-ico[data-v-010c7307]{color:var(--color-warning)}.ntn-bubble[data-v-010c7307]{box-sizing:border-box;max-width:100%;padding:var(--space-2) var(--space-3);background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.ntn-line+.ntn-line[data-v-010c7307]{margin-top:var(--space-1)}.ntn-out[data-v-010c7307]{display:flex;align-items:center;gap:var(--space-2);background:var(--color-surface-raised);border-radius:var(--radius-md);padding:var(--space-1) var(--space-2);box-shadow:var(--shadow-xs);white-space:normal}.ntn-out-ic[data-v-010c7307]{color:var(--color-text-faint);flex:none}.ntn-out-path[data-v-010c7307]{flex:1;min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}.ntn-out-size[data-v-010c7307]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.ntn-out-copy[data-v-010c7307]{display:inline-flex;align-items:center;height:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);color:var(--color-text-muted);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;transition:color var(--duration-fast) var(--ease-out)}.ntn-out-copy[data-v-010c7307]:hover{color:var(--color-text)}.ntn-preview-cap[data-v-010c7307]{font-size:var(--text-xs);color:var(--color-text-faint);margin-bottom:var(--space-05)}.ntn-preview-text[data-v-010c7307]{margin:0;font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}.ntn-meta[data-v-010c7307]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}.ntn-raw[data-v-010c7307]{max-width:100%}.ntn-raw summary[data-v-010c7307]{list-style:none;display:flex;align-items:center;gap:var(--space-1);cursor:pointer;font-size:var(--text-xs);color:var(--color-text-faint);user-select:none}.ntn-raw summary[data-v-010c7307]::-webkit-details-marker{display:none}.ntn-raw summary[data-v-010c7307]:hover{color:var(--color-text)}.ntn-raw-car[data-v-010c7307]{transition:transform var(--duration-base) var(--ease-out)}.ntn-raw[open] .ntn-raw-car[data-v-010c7307]{transform:rotate(90deg)}.ntn-raw-in[data-v-010c7307]{margin-top:var(--space-1);display:flex;flex-direction:column;gap:var(--space-2)}.ntn-raw-fields[data-v-010c7307]{display:grid;grid-template-columns:auto 1fr;gap:var(--space-1) var(--space-3)}.ntn-raw-fields .k[data-v-010c7307]{color:var(--color-text-faint);font-size:var(--text-xs)}.ntn-raw-fields .v[data-v-010c7307]{color:var(--color-text-muted);font-size:var(--text-xs);font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntn-raw-pre[data-v-010c7307]{margin:0;padding:var(--space-2) var(--space-3);background:var(--color-surface-raised);border-radius:var(--radius-sm);box-shadow:var(--shadow-xs);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre;overflow:auto;max-width:100%;max-height:13lh}.turn-fold[data-v-ce1eb651]{display:flex;flex-direction:column}.tf-head[data-v-ce1eb651]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.tf-head[data-v-ce1eb651]:hover{color:var(--color-text)}.tf-head[data-v-ce1eb651]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.tf-sum[data-v-ce1eb651]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.tf-car[data-v-ce1eb651]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.turn-fold.open .tf-car[data-v-ce1eb651]{transform:rotate(90deg)}.tf-body[data-v-ce1eb651]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tf-body.open[data-v-ce1eb651]{grid-template-rows:minmax(0,1fr)}.tf-body-inner[data-v-ce1eb651]{min-height:0;overflow:hidden;display:flex;flex-direction:column}.tf-body-inner>.msg[data-v-ce1eb651],.tf-body-inner[data-v-ce1eb651]>.think,.tf-body-inner[data-v-ce1eb651]>.tool-group,.tf-body-inner[data-v-ce1eb651]>.activity-run,.tf-body-inner[data-v-ce1eb651]>.agent-card,.tf-body-inner[data-v-ce1eb651]>.agent-group,.tf-body-inner[data-v-ce1eb651]>.tool-line,.tf-body-inner[data-v-ce1eb651]>.swarm-card,.tf-body-inner[data-v-ce1eb651]>.media-tool,.tf-body-inner[data-v-ce1eb651]>.ask-receipt{margin-top:var(--chat-block-gap)}.turn-fold.streaming .tf-body-inner>.msg[data-v-ce1eb651]:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.think:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.tool-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.activity-run:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.agent-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.agent-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.tool-line:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.swarm-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.media-tool:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.ask-receipt:first-child{margin-top:0}.tf-body-inner .msg[data-v-ce1eb651]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:var(--weight-medium)}.tf-body-inner .msg[data-v-ce1eb651] p{margin:0}.tf-body-inner .msg[data-v-ce1eb651] p+p{margin-top:var(--space-2)}@container (min-width: 760px){.tf-body-inner .msg[data-v-ce1eb651] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.tf-body-inner .msg[data-v-ce1eb651] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.tf-body-inner .msg[data-v-ce1eb651] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.turn-files[data-v-f37da416]{margin-top:var(--chat-block-gap)}.turn-files[data-v-f37da416] .ui-card__head{font-family:var(--font-ui);font-weight:var(--weight-regular);padding:var(--space-2) var(--space-3)}.turn-files[data-v-f37da416] .ui-card__body{padding:var(--space-1) var(--space-3)}.turn-files[data-v-f37da416] .ui-card__foot{padding:0;justify-content:stretch}.tf-ic[data-v-f37da416]{display:inline-flex;align-items:center;color:var(--color-text-faint);flex:none}.tf-title[data-v-f37da416]{font-size:var(--text-sm);color:var(--color-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-stats[data-v-f37da416]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.tf-add[data-v-f37da416],.tf-del[data-v-f37da416]{font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tf-add[data-v-f37da416]{color:var(--color-success)}.tf-del[data-v-f37da416]{color:var(--color-danger)}.tf-list[data-v-f37da416]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.tf-row[data-v-f37da416]{display:flex;align-items:center;gap:var(--space-1);min-width:0;padding:var(--space-1) 0;font-size:var(--text-sm);line-height:var(--leading-tight)}.tf-file[data-v-f37da416]{display:flex;align-items:baseline;border:none;border-radius:var(--radius-xs);background:transparent;padding:0;font-family:inherit;font-size:inherit;color:var(--color-text);flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-align:left}button.tf-file[data-v-f37da416]{cursor:pointer}button.tf-file[data-v-f37da416]:hover{text-decoration:underline;text-decoration-color:var(--color-text-faint);text-underline-offset:3px}.tf-file[data-v-f37da416]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tf-dir[data-v-f37da416]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tf-base[data-v-f37da416]{flex:none;font-weight:var(--weight-medium);color:var(--color-text)}.tf-more[data-v-f37da416]{width:100%;justify-content:flex-start;border-radius:0}.turn-files .tf-more[data-v-f37da416]:not(:disabled):active{transform:none}.tf-more-car[data-v-f37da416]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.tf-more-car.open[data-v-f37da416]{transform:rotate(180deg)}.diffbar[data-v-f37da416]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;flex:none}.seg-add[data-v-f37da416]{background:var(--color-success)}.seg-del[data-v-f37da416]{background:var(--color-danger)}.activity-notice[data-v-cc29061f]{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin:0;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.cn[data-v-9f79345d]{margin:0;align-self:flex-end;max-width:78%;display:flex;flex-direction:column;align-items:flex-end}.cn-head[data-v-9f79345d]{align-self:flex-end;display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.cn-head-ico[data-v-9f79345d]{flex:none}.cn-head.error .cn-head-ico[data-v-9f79345d]{color:var(--color-danger)}.cn-bubble[data-v-9f79345d]{box-sizing:border-box;max-width:100%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.cn-meta[data-v-9f79345d]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}.pswp{--pswp-root-z-index: var(--z-modal);--pswp-bg: var(--color-scrim-strong)}.media-preview-caption{position:absolute;left:0;right:0;bottom:var(--space-4);padding:0 var(--space-6);color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.media-lightbox[data-v-c59e1983]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:var(--color-scrim-strong)}.media-lightbox-card[data-v-c59e1983]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);max-width:min(960px,calc(100vw - var(--space-6) * 2));max-height:calc(var(--app-height, 100vh) - var(--space-6) * 2)}.media-lightbox-frame[data-v-c59e1983]{max-width:100%;border-radius:var(--radius-md);overflow:hidden;background:var(--color-bg);box-shadow:var(--shadow-xl)}.media-lightbox-media[data-v-c59e1983]{display:block;max-width:100%;max-height:calc(var(--app-height, 100vh) - var(--space-6) * 4);object-fit:contain}.media-lightbox-name[data-v-c59e1983]{max-width:100%;color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox-close[data-v-c59e1983]{position:fixed;top:var(--space-4);right:var(--space-6);display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text);box-shadow:var(--shadow-sm);cursor:pointer;z-index:var(--z-modal-dropdown)}.media-lightbox-close[data-v-c59e1983]:before{content:"";position:absolute;inset:-6px}.media-lightbox-close[data-v-c59e1983]:hover{border-color:var(--color-line-strong);background:var(--color-surface-sunken)}.media-thumb[data-v-16b8c78d]{position:relative;flex:none;display:inline-flex}.media-thumb-btn[data-v-16b8c78d]{display:block;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:hidden;cursor:pointer;transition:border-color var(--duration-fast) ease}.media-thumb-btn[data-v-16b8c78d]:hover{border-color:var(--color-line-strong)}.media-thumb-btn[data-v-16b8c78d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.media-thumb-media[data-v-16b8c78d]{display:block;width:64px;height:64px;object-fit:cover}.media-thumb-tile[data-v-16b8c78d]{object-fit:none}.media-thumb-badge[data-v-16b8c78d]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}.media-thumb-badge.is-error[data-v-16b8c78d]{color:var(--color-danger);border-color:var(--color-danger-bd)}.media-thumb.is-error .media-thumb-btn[data-v-16b8c78d]{border-color:var(--color-danger-bd)}.media-thumb-rm[data-v-16b8c78d]{position:absolute;top:var(--space-1);right:var(--space-1);z-index:1;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:var(--color-scrim);color:var(--color-text-on-scrim);cursor:pointer}.media-thumb-rm[data-v-16b8c78d]:hover{background:var(--color-text);color:var(--color-bg)}.media-thumb-rm[data-v-16b8c78d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.att-chip[data-v-37de1632]{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 9px 4px var(--att-chip-pad-left, 5px);background:var(--color-well);border:.5px solid var(--color-line);border-radius:999px;font-size:var(--ui-font-size-sm);transition:border-color var(--duration-fast) ease}.att-chip[data-v-37de1632]:hover{border-color:var(--color-line-strong)}.att-activate[data-v-37de1632]{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer}.att-activate[data-v-37de1632]:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:999px}.att-tile[data-v-37de1632]{width:20px;height:20px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--color-text-muted);background:var(--color-surface-sunken)}.att-tile[data-v-37de1632] .att-thumb{width:100%;height:100%;object-fit:cover;display:block}.att-name[data-v-37de1632]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.att-chip.is-error[data-v-37de1632]{border-color:var(--color-danger-bd)}.att-chip.is-error .att-err[data-v-37de1632]{flex:none;display:flex;align-items:center;color:var(--color-danger)}.att-rm[data-v-37de1632]{flex:none;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--color-text-faint);cursor:pointer}.att-rm[data-v-37de1632]:hover{background:var(--color-hover);color:var(--color-text)}.att-rm[data-v-37de1632]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mascot-host[data-v-27600ac7]{position:relative;width:100%;aspect-ratio:72 / 100}.mascot-fallback[data-v-27600ac7]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:86.5%;height:auto}.mascot-canvas[data-v-27600ac7]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.mascot-canvas.ready[data-v-27600ac7]{opacity:1}@media(prefers-reduced-motion:reduce){.mascot-canvas[data-v-27600ac7]{transition:none}}.working-indicator[data-v-8abb44ef]{display:inline-flex;align-items:center;gap:var(--space-2);align-self:flex-start;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.wi-mascot[data-v-8abb44ef]{flex:none;width:40px}.wi-label[data-v-8abb44ef]{animation:wi-breathe-8abb44ef 1.6s var(--ease-in-out) infinite}@keyframes wi-breathe-8abb44ef{0%,to{opacity:1}50%{opacity:.45}}.chat-empty[data-v-765caf09]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;color:var(--faint);text-align:center}.chat-empty-text[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat-loading[data-v-765caf09]{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:24px 16px;color:var(--muted)}.chat-loading-text[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat[data-v-765caf09]{--chat-turn-gap: 16px;--chat-block-gap: 10px;--chat-section-gap: 18px;display:flex;flex-direction:column;gap:0;padding:16px 14px 20px;flex:1;min-height:0;position:relative}.chat .chat-empty[data-v-765caf09]{align-self:stretch}.open-unsupported[data-v-765caf09]{position:absolute;bottom:16px;left:50%;transform:translate(-50%);max-width:min(90%,480px);padding:6px 12px;border-radius:var(--radius-md);border:.5px solid var(--color-line);background:var(--color-surface-raised);color:var(--color-text-muted);font-size:var(--ui-font-size-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;z-index:var(--z-sticky)}.chat>.u-turn[data-v-765caf09],.chat>.a-msg[data-v-765caf09],.chat>.compact-divider[data-v-765caf09],.chat>.cron-notice[data-v-765caf09],.chat>.sending-placeholder[data-v-765caf09],.chat[data-v-765caf09]>.activity-notice{margin-top:var(--chat-turn-gap)}.chat>.a-msg[data-v-765caf09]{margin-top:10px}.chat>.u-turn[data-v-765caf09]:first-child,.chat>.a-msg[data-v-765caf09]:first-child,.chat>.compact-divider[data-v-765caf09]:first-child,.chat>.cron-notice[data-v-765caf09]:first-child,.chat>.sending-placeholder[data-v-765caf09]:first-child,.chat[data-v-765caf09]>.activity-notice:first-child{margin-top:0}.u-turn[data-v-765caf09]{display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;width:100%}.u-bub[data-v-765caf09]{align-self:flex-end;max-width:78%;background:var(--color-user-bubble-bg);color:var(--color-text);border-radius:var(--radius-lg);padding:10px 12px;font-size:var(--content-font-size);line-height:var(--leading-normal)}.u-meta[data-v-765caf09]{align-self:flex-end;display:flex;justify-content:flex-end;align-items:center;max-width:78%;margin-top:var(--space-2);margin-right:4px}.u-meta .u-edit[data-v-765caf09]{min-height:22px;box-sizing:border-box}.u-text[data-v-765caf09]{white-space:pre-wrap;overflow-wrap:anywhere}.u-text-wrap[data-v-765caf09]{position:relative;display:flex;flex-direction:column}.u-text-wrap-args[data-v-765caf09]{margin-top:var(--space-1)}.u-text-wrap.is-clamped[data-v-765caf09]{min-width:120px}.u-text-wrap.is-clamped>.u-text[data-v-765caf09],.u-text-wrap.is-clamped>.skill-act-args[data-v-765caf09]{max-height:10lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh))}.u-text-wrap.is-clamped>.q-body[data-v-765caf09]{max-height:3lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh))}.u-text-toggle[data-v-765caf09]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-2);padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.u-text-toggle[data-v-765caf09]:hover{box-shadow:var(--shadow-md)}.u-text-toggle[data-v-765caf09]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.u-text-wrap.is-clamped .u-text-toggle[data-v-765caf09]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.u-text-toggle-car[data-v-765caf09]{transition:transform var(--duration-base) var(--ease-out)}.u-text-toggle[aria-expanded=true] .u-text-toggle-car[data-v-765caf09]{transform:rotate(180deg)}.u-edit[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s}.u-edit svg[data-v-765caf09]{display:block;flex:none}.u-edit[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-armed[data-v-765caf09]{--undo-hint-duration: 5s;gap:var(--space-1);opacity:1;color:var(--color-text);animation:u-edit-armed-blink-765caf09 var(--undo-hint-duration) linear forwards}.u-edit-armed[data-v-765caf09]:hover{color:var(--color-accent);background:var(--hover)}.u-edit-hint[data-v-765caf09]{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap}@keyframes u-edit-armed-blink-765caf09{0%,55%{opacity:1}62%{opacity:.45}69%{opacity:1}75%{opacity:.4}81%{opacity:.95}86%{opacity:.35}91%{opacity:.85}95%{opacity:.3}to{opacity:0}}@media(prefers-reduced-motion:reduce){.u-edit-armed[data-v-765caf09]{animation:none}}.u-copy[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.u-copy svg[data-v-765caf09]{display:block;flex:none}.u-copy[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-wrap[data-v-765caf09]{display:flex;justify-content:flex-end}.chat>.u-edit-wrap[data-v-765caf09]{margin-top:4px}.chat>.u-edit-wrap+.a-msg[data-v-765caf09]{margin-top:8px}.compact-divider[data-v-765caf09]{display:flex;align-items:center;gap:10px;align-self:stretch;width:100%;margin:var(--chat-section-gap) 0 0}.chat>.compact-divider[data-v-765caf09]:first-child{margin-top:0}.cd-line[data-v-765caf09]{flex:1;height:1px;background:var(--line)}.cd-label[data-v-765caf09]{flex:none;display:inline-flex;align-items:center;gap:8px;max-width:80%;font-size:var(--text-base);color:var(--muted);white-space:nowrap}.cd-btn[data-v-765caf09]{background:none;border:none;padding:0;cursor:pointer;font:inherit;font-size:var(--text-base);color:var(--muted)}.cd-view[data-v-765caf09]{color:var(--color-accent)}.cd-btn:hover .cd-view[data-v-765caf09]{text-decoration:underline}.chat>.turn-failed[data-v-765caf09]{margin-top:var(--chat-turn-gap)}.chat>.turn-failed[data-v-765caf09]:first-child{margin-top:0}.turn-failed[data-v-765caf09]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:var(--p-hairline) solid var(--color-danger-bd);border-radius:var(--radius-lg);background:var(--color-danger-soft);box-shadow:var(--shadow-xs);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tf-chip[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);flex:none;color:var(--color-danger)}.tf-main[data-v-765caf09]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tf-title[data-v-765caf09]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);line-height:var(--leading-normal)}.tf-sub[data-v-765caf09]{font-size:var(--text-xs);color:var(--color-text-muted);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-meta[data-v-765caf09]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal-prov[data-v-765caf09]{display:flex;align-items:center;gap:var(--space-1);margin-bottom:var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-normal);user-select:none}.a-msg[data-v-765caf09]{align-self:flex-start;max-width:94%;width:94%}.a-msg-ft[data-v-765caf09]{display:flex;justify-content:flex-start;align-items:center;gap:8px;height:auto;margin-top:var(--chat-block-gap);overflow:visible}.a-time[data-v-765caf09]{display:inline-flex;align-items:center;font-size:var(--text-base);color:var(--muted);line-height:1}.a-cpbtn[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.a-cpbtn[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.a-cpbtn svg[data-v-765caf09]{display:block;flex:none}@media(hover:none){.a-msg-ft[data-v-765caf09]{height:auto;margin-top:var(--chat-block-gap);opacity:1;pointer-events:auto}.a-cpbtn[data-v-765caf09]{font-size:var(--ui-font-size-sm);padding:8px 10px;margin:-4px -6px}}.a-msg .msg[data-v-765caf09]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:500}.a-msg .msg[data-v-765caf09] p{margin:0}.a-msg .msg[data-v-765caf09] p+p{margin-top:8px}.a-msg>.msg[data-v-765caf09],.a-msg[data-v-765caf09]>.think,.a-msg[data-v-765caf09]>.tool-group,.a-msg[data-v-765caf09]>.activity-run,.a-msg[data-v-765caf09]>.agent-card,.a-msg[data-v-765caf09]>.agent-group,.a-msg[data-v-765caf09]>.tool-line,.a-msg[data-v-765caf09]>.swarm-card,.a-msg[data-v-765caf09]>.media-tool,.a-msg[data-v-765caf09]>.ask-receipt{margin-top:var(--chat-block-gap)}.a-msg>.msg[data-v-765caf09]:first-child,.a-msg[data-v-765caf09]>.think:first-child,.a-msg[data-v-765caf09]>.tool-group:first-child,.a-msg[data-v-765caf09]>.activity-run:first-child,.a-msg[data-v-765caf09]>.agent-card:first-child,.a-msg[data-v-765caf09]>.agent-group:first-child,.a-msg[data-v-765caf09]>.tool-line:first-child,.a-msg[data-v-765caf09]>.swarm-card:first-child,.a-msg[data-v-765caf09]>.media-tool:first-child,.a-msg[data-v-765caf09]>.ask-receipt:first-child{margin-top:0}.a-msg>.goal-prov:first-child+.msg[data-v-765caf09],.a-msg>.goal-prov[data-v-765caf09]:first-child+.think,.a-msg>.goal-prov[data-v-765caf09]:first-child+.tool-group,.a-msg>.goal-prov[data-v-765caf09]:first-child+.activity-run,.a-msg>.goal-prov[data-v-765caf09]:first-child+.agent-card,.a-msg>.goal-prov[data-v-765caf09]:first-child+.agent-group,.a-msg>.goal-prov[data-v-765caf09]:first-child+.tool-line,.a-msg>.goal-prov[data-v-765caf09]:first-child+.swarm-card,.a-msg>.goal-prov[data-v-765caf09]:first-child+.media-tool,.a-msg>.goal-prov[data-v-765caf09]:first-child+.ask-receipt,.a-msg>.goal-prov[data-v-765caf09]:first-child+.turn-fold{margin-top:0}.a-msg[data-v-765caf09] :not(pre)>code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:1px 6px;color:var(--color-accent-hover)}@container (min-width: 760px){.a-msg .msg[data-v-765caf09] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.a-msg .msg[data-v-765caf09] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.a-msg .msg[data-v-765caf09] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.u-media[data-v-765caf09]{display:flex;flex-wrap:wrap;gap:var(--space-2)}.u-media[data-v-765caf09]:not(:last-child){margin-bottom:var(--space-2)}.u-atts[data-v-765caf09]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sending-placeholder[data-v-765caf09]{align-self:flex-start;padding:10px 0}.skill-act[data-v-765caf09]{display:flex;flex-direction:column;gap:2px}.skill-act-head[data-v-765caf09]{font-size:var(--ui-font-size-sm);font-weight:500;color:var(--color-accent-hover);display:flex;align-items:center;gap:6px}.skill-act-arrow[data-v-765caf09]{color:var(--color-accent);font-size:var(--text-base)}.skill-act-args[data-v-765caf09]{font-size:var(--text-base);color:var(--muted);padding-left:17px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.chat[data-v-765caf09]{box-sizing:border-box;width:100%;padding:14px max(12px,var(--safe-right)) 18px max(12px,var(--safe-left))}.u-bub[data-v-765caf09]{max-width:min(88%,calc(100vw - 52px))}.a-msg[data-v-765caf09]{width:100%;max-width:100%}.a-msg[data-v-765caf09] .md,.a-msg[data-v-765caf09] .markdown-renderer,.a-msg[data-v-765caf09] .code-block-container,.a-msg[data-v-765caf09] .diff-wrap,.a-msg[data-v-765caf09] pre{max-width:100%}.a-msg[data-v-765caf09] .code-block-container pre,.a-msg[data-v-765caf09] .diff-pre{overflow-x:auto;-webkit-overflow-scrolling:touch}.a-msg[data-v-765caf09] .media-tool.mob{width:min(44vw,160px)}.cd-label[data-v-765caf09]{min-width:0;max-width:calc(100% - 48px);overflow:hidden;text-overflow:ellipsis}.u-edit-confirm[data-v-765caf09]{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 28px)}.ts[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat-empty-text[data-v-765caf09],.chat-loading-text[data-v-765caf09]{font-size:var(--ui-font-size-lg)}.cd-label[data-v-765caf09],.cd-btn[data-v-765caf09]{font-size:var(--ui-font-size)}}.top-sentinel[data-v-765caf09]{display:flex;align-items:center;justify-content:center;padding:12px 0;min-height:28px;user-select:none}.top-sentinel-loading[data-v-765caf09]{opacity:.8}.top-sentinel-btn[data-v-765caf09]{appearance:none;border:.5px solid var(--border);background:transparent;color:var(--muted);font-size:var(--ui-font-size-sm);padding:4px 12px;border-radius:999px;cursor:pointer;transition:color .15s ease,border-color .15s ease}.top-sentinel-btn[data-v-765caf09]:hover{color:var(--fg);border-color:var(--fg)}.top-sentinel-text[data-v-765caf09]{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--ui-font-size-sm)}.chat[data-v-765caf09]{background:transparent}.chat[data-v-765caf09]{gap:0;padding:22px 20px 26px}.u-bub[data-v-765caf09]{background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);padding:10px 12px}.a-msg[data-v-765caf09]{max-width:100%;width:100%}.chat>.q-stack[data-v-765caf09]{margin-top:var(--chat-turn-gap)}.chat>.q-stack[data-v-765caf09]:first-child{margin-top:0}.q-stack[data-v-765caf09]{align-self:flex-end;width:100%;display:flex;flex-direction:column;gap:8px}.q-head[data-v-765caf09]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 6px;color:var(--color-text-faint);font-size:var(--ui-font-size-xs)}.q-title[data-v-765caf09]{display:inline-flex;align-items:center;gap:6px}.q-title b[data-v-765caf09]{color:var(--color-accent-hover);font-weight:var(--weight-medium)}.q-turn[data-v-765caf09]{position:relative;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--space-2)}.q-send[data-v-765caf09]{flex:none;width:var(--space-6);height:var(--space-6);display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-accent);color:var(--color-text-on-accent);box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.q-send[data-v-765caf09]:hover{background:var(--color-accent-hover)}.q-send[data-v-765caf09]:active{transform:scale(.92)}.q-send[data-v-765caf09]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.q-send svg[data-v-765caf09]{display:block;flex:none}.q-bub[data-v-765caf09]{display:flex;align-items:center;gap:8px;width:fit-content;background:var(--color-user-bubble-bg);padding:8px 8px 8px 6px;transition:background var(--duration-fast) var(--ease-out)}.q-bub[data-v-765caf09]:hover{background:var(--hover)}.q-grip[data-v-765caf09]{flex:none;display:inline-flex;align-items:center;padding:2px;color:var(--color-text-faint);cursor:grab;opacity:.7}.q-grip[data-v-765caf09]:hover{opacity:1}.q-grip[data-v-765caf09]:active{cursor:grabbing}.q-clamp[data-v-765caf09]{flex:1;min-width:0}.q-body[data-v-765caf09]{flex:1;min-width:0;background:none;border:none;padding:0;margin:0;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;opacity:.82}.q-bub:hover .q-body[data-v-765caf09]{opacity:1}.q-body[data-v-765caf09]:disabled{cursor:default}.q-text[data-v-765caf09]{white-space:pre-wrap;overflow-wrap:anywhere}.q-text-placeholder[data-v-765caf09]{display:inline-flex;align-items:center;gap:4px;color:var(--color-text-muted)}.q-imgs[data-v-765caf09]{display:flex;gap:4px;flex:none}.q-img[data-v-765caf09]{width:28px;height:28px;object-fit:cover;border-radius:var(--radius-sm);border:.5px solid var(--color-line)}.q-file[data-v-765caf09]{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px;border-radius:var(--radius-sm);border:.5px solid var(--color-line);color:var(--color-text-muted);font-size:calc(var(--ui-font-size) - 3px);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-rm[data-v-765caf09]{flex:none;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease,color .12s ease}.q-bub:hover .q-rm[data-v-765caf09],.q-bub:focus-within .q-rm[data-v-765caf09],.q-rm[data-v-765caf09]:focus-visible{opacity:1}.q-rm[data-v-765caf09]:hover{background:var(--color-danger-soft);color:var(--color-danger)}.q-edit[data-v-765caf09]{display:none;flex:none;width:22px;height:22px;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer}.q-edit[data-v-765caf09]:hover{background:var(--color-hover);color:var(--color-text)}@media(hover:none){.q-grip[data-v-765caf09]{display:none}.q-edit[data-v-765caf09]{display:inline-flex}.q-rm[data-v-765caf09],.q-edit[data-v-765caf09]{opacity:1;position:relative}.q-rm[data-v-765caf09]:before,.q-edit[data-v-765caf09]:before{content:"";position:absolute;inset:-11px}}.q-turn.q-dragging .q-bub[data-v-765caf09]{opacity:.45}.q-turn.drop-before[data-v-765caf09]:before,.q-turn.drop-after[data-v-765caf09]:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--color-accent);border-radius:var(--radius-full);z-index:1}.q-turn.drop-before[data-v-765caf09]:before{top:-5px}.q-turn.drop-after[data-v-765caf09]:after{bottom:-5px}.chat-header[data-v-2fde3f1e]{flex:none;display:flex;align-items:center;gap:14px;height:var(--panel-head-h, 48px);padding:0 16px;border-bottom:.5px solid var(--color-line);background:var(--color-bg);font-family:var(--font-ui);min-width:0;user-select:none;container-type:inline-size}.chat-header.macos-desktop[data-v-2fde3f1e]{-webkit-app-region:drag}.chat-header.macos-desktop button[data-v-2fde3f1e],.chat-header.macos-desktop input[data-v-2fde3f1e]{-webkit-app-region:no-drag}.ch-id[data-v-2fde3f1e]{display:flex;align-items:center;gap:6px;min-width:0;flex:none;max-width:46%}.ch-ws[data-v-2fde3f1e]{color:var(--color-text-muted);font-size:var(--text-base);font-weight:var(--weight-medium);flex:none}.ch-sep[data-v-2fde3f1e]{color:var(--color-text-faint);flex:none}.ch-ses[data-v-2fde3f1e]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-rename[data-v-2fde3f1e]{flex:1;min-width:0;font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none;user-select:text}.ch-git[data-v-2fde3f1e]{display:flex;align-items:center;gap:4px;border:none;background:transparent;padding:0;color:var(--muted);font-family:var(--font-ui);font-size:calc(var(--ui-font-size) - 2px);flex:0 1 auto;max-width:none;min-width:0;cursor:pointer}.ch-git:hover .ch-branch[data-v-2fde3f1e]{color:var(--color-text)}.ch-branch-icon[data-v-2fde3f1e]{flex:none;color:var(--color-text-muted)}.ch-branch[data-v-2fde3f1e]{color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}.ch-detached[data-v-2fde3f1e]{color:var(--muted);font-style:italic}.ch-pill[data-v-2fde3f1e]{display:inline-flex;align-items:center;gap:3px;padding:1px 5px;border-radius:999px;background:var(--panel);border:.5px solid var(--line);font-size:calc(var(--ui-font-size) - 3px)}.ch-sync-pill[data-v-2fde3f1e]{border-color:var(--line)}.ch-diff-pill[data-v-2fde3f1e]{border-color:color-mix(in srgb,var(--color-success) 20%,var(--line));font-variant-numeric:tabular-nums}.ch-ahead[data-v-2fde3f1e]{color:var(--color-warning);flex:none}.ch-behind[data-v-2fde3f1e]{color:var(--color-accent-hover);flex:none}.ch-add[data-v-2fde3f1e]{color:var(--color-success);flex:none}.ch-del[data-v-2fde3f1e]{color:var(--color-danger);flex:none}.ch-spacer[data-v-2fde3f1e]{flex:1;min-width:0}@container (max-width: 720px){.ch-ws[data-v-2fde3f1e],.ch-sep[data-v-2fde3f1e]{display:none}.ch-id[data-v-2fde3f1e]{flex:1;max-width:none}.ch-spacer[data-v-2fde3f1e]{flex:0}}.chat-header .ch-act-more[data-v-2fde3f1e]{width:24px;height:24px;border-radius:var(--radius-sm)}.chat-header .ch-act-more[data-v-2fde3f1e] svg{width:14px;height:14px}.ch-act-more.open[data-v-2fde3f1e]{background:var(--color-well);color:var(--color-text)}.ch-dev[data-v-2fde3f1e]{display:inline-flex;align-items:center;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-warning-bd);border-radius:var(--radius-full);background:var(--color-warning-soft);color:var(--color-warning);font-size:var(--text-xs);font-weight:500}.ch-pr[data-v-2fde3f1e]{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-well);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:500;cursor:pointer}.ch-pr svg[data-v-2fde3f1e]{flex:none}.ch-pr.pr-open[data-v-2fde3f1e]{color:var(--color-success);border-color:var(--color-success-bd);background:var(--color-success-soft)}.ch-pr.pr-merged[data-v-2fde3f1e]{color:var(--color-done);border-color:var(--color-done-bd);background:var(--color-done-soft)}.ch-pr.pr-closed[data-v-2fde3f1e]{color:var(--color-danger);border-color:var(--color-danger-bd);background:var(--color-danger-soft)}.ch-pr.pr-draft[data-v-2fde3f1e],.ch-pr.pr-unknown[data-v-2fde3f1e]{color:var(--color-text-muted);border-color:var(--color-line-strong);background:var(--color-well)}.ch-pr[data-v-2fde3f1e]:hover{border-color:var(--color-line-strong)}.ch-done-pill[data-v-2fde3f1e]{cursor:default}.ch-done-pill[data-v-2fde3f1e]:hover{border-color:var(--color-done-bd)}.ch-menu[data-v-2fde3f1e]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-2fde3f1e]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-2fde3f1e]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-2fde3f1e],.menu-pop-leave-to[data-v-2fde3f1e]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}@media(max-width:980px){.ch-act-label[data-v-2fde3f1e]{display:none}}@media(max-width:640px){.chat-header[data-v-2fde3f1e]{display:none}}.slash-menu[data-menu-frame][data-v-ac34fe29]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.slash-menu.is-sheet[data-menu-frame][data-v-ac34fe29]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.slash-menu.is-sheet .slash-scroll[data-v-ac34fe29]{margin:0;padding:var(--space-1) var(--space-2)}.slash-menu.is-sheet .slash-item[data-v-ac34fe29]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.slash-scroll[data-v-ac34fe29]{max-height:var(--p-slash-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.slash-scroll[data-v-ac34fe29]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-ac34fe29]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.slash-menu:hover .scroll-thumb[data-v-ac34fe29]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-ac34fe29]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.slash-item[data-v-ac34fe29]{display:flex;align-items:baseline;gap:var(--space-2);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-b2);border-radius:var(--radius-menu-row)}.slash-item[data-v-ac34fe29]:hover{background:var(--color-hover)}.slash-item.active[data-v-ac34fe29]{background:var(--color-selected)}.slash-item+.slash-item[data-v-ac34fe29]{margin-top:var(--menu-rows-seam)}.slash-name[data-v-ac34fe29]{flex:none;max-width:60%;color:var(--color-text);font-weight:500;min-width:0;line-height:var(--leading-normal);overflow-wrap:anywhere}.slash-match[data-v-ac34fe29]{font-weight:var(--weight-semibold)}.slash-empty[data-v-ac34fe29]{padding:var(--space-1-5) var(--space-1);color:var(--color-text-muted)}@media(hover:none){.slash-item[data-v-ac34fe29]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.slash-desc[data-v-ac34fe29]{flex:1;min-width:0;color:var(--color-text-muted);font-size:var(--ui-b2);font-weight:var(--weight-regular);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-desc-match[data-v-ac34fe29]{font-weight:var(--weight-semibold)}@media(max-width:520px){.slash-item[data-v-ac34fe29]{flex-direction:column;align-items:stretch;gap:var(--space-05)}.slash-name[data-v-ac34fe29]{max-width:none}}.mention-menu[data-menu-frame][data-v-8b392586]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.mention-menu.is-sheet[data-menu-frame][data-v-8b392586]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.mention-menu.is-sheet .mention-scroll[data-v-8b392586]{margin:0;padding:var(--space-1) var(--space-2)}.mention-menu.is-sheet .mention-item[data-v-8b392586]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.mention-menu.is-sheet .mention-state[data-v-8b392586]{padding-left:var(--space-4)}.mention-scroll[data-v-8b392586]{max-height:var(--p-mention-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.mention-scroll[data-v-8b392586]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-8b392586]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.mention-menu:hover .scroll-thumb[data-v-8b392586]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-8b392586]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.mention-state[data-v-8b392586]{padding:var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--ui-b2)}.mention-spin[data-v-8b392586]{position:absolute;top:var(--space-2);right:var(--space-3);color:var(--color-text-muted);z-index:var(--z-raised)}.dim[data-v-8b392586]{color:var(--color-text-muted)}.mention-item[data-v-8b392586]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);border-radius:var(--radius-menu-row)}.mention-icon[data-v-8b392586]{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);flex-shrink:0}.mention-icon[data-v-8b392586] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-item:hover .mention-icon[data-v-8b392586],.mention-item.active .mention-icon[data-v-8b392586]{color:var(--color-text-strong)}.mention-item[data-v-8b392586]:hover{background:var(--color-hover)}.mention-item:hover .mention-name[data-v-8b392586],.mention-item.active .mention-name[data-v-8b392586]{color:var(--color-text-strong)}.mention-item.active[data-v-8b392586]{background:var(--color-selected)}.mention-item+.mention-item[data-v-8b392586]{margin-top:var(--menu-rows-seam)}.mention-item[data-v-8b392586]{transition:opacity var(--duration-slow) var(--ease-out)}.mention-item.stale[data-v-8b392586]{opacity:var(--opacity-stale)}@media(hover:none){.mention-item[data-v-8b392586]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.mention-name[data-v-8b392586]{color:var(--color-text);font-weight:500;flex-shrink:0}.mention-name .mention-hit[data-v-8b392586]{color:var(--color-text-strong);font-weight:var(--weight-semibold)}.mention-meta .mention-hit[data-v-8b392586]{color:var(--color-text)}.mention-meta[data-v-8b392586]{color:var(--color-text-muted);font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-root[data-v-d719a5d1]{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;flex-direction:column;justify-content:flex-end}.sheet-scrim[data-v-d719a5d1]{position:absolute;inset:0;background:#0d111773}.sheet-panel[data-v-d719a5d1]{position:relative;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-bottom:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:var(--shadow-xl);max-height:calc(var(--app-height, 100dvh) * .86);display:flex;flex-direction:column;min-height:0;font-family:var(--font-ui);color:var(--color-text)}.sheet-grab[data-v-d719a5d1]{flex:none;align-self:center;width:56px;height:18px;padding:0;border:none;background:none;cursor:pointer;position:relative;margin-top:4px}.sheet-grab[data-v-d719a5d1]:after{content:"";position:absolute;left:50%;top:7px;transform:translate(-50%);width:38px;height:5px;border-radius:var(--radius-full);background:var(--color-line)}.sheet-head[data-v-d719a5d1]{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px}.sheet-title[data-v-d719a5d1]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.sheet-body[data-v-d719a5d1]{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,var(--safe-bottom))}.sheet-enter-active[data-v-d719a5d1],.sheet-leave-active[data-v-d719a5d1]{transition:opacity var(--duration-slow) var(--ease-out)}.sheet-enter-active .sheet-panel[data-v-d719a5d1],.sheet-leave-active .sheet-panel[data-v-d719a5d1]{transition:transform var(--duration-slow) var(--ease-out)}.sheet-enter-from[data-v-d719a5d1],.sheet-leave-to[data-v-d719a5d1]{opacity:0}.sheet-enter-from .sheet-panel[data-v-d719a5d1],.sheet-leave-to .sheet-panel[data-v-d719a5d1]{transform:translateY(102%)}.composer[data-v-5a96480c]{padding:7px var(--dock-inline-right, 16px) 12px var(--dock-inline-left, 16px);background:transparent;transition:background .12s}.composer.drag-over[data-v-5a96480c]{background:var(--color-accent-soft)}.drop-overlay[data-v-5a96480c]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.drop-overlay.show[data-v-5a96480c]{opacity:1;visibility:visible}.drop-card[data-v-5a96480c]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.composer-card[data-v-5a96480c]{--composer-control-size: var(--space-8);--composer-send-size: var(--composer-control-size);--composer-control-inset: var(--space-2);--composer-valve-floor: 4em;--composer-valve-expand-margin: 3.4em;position:relative;border:.5px solid var(--color-composer-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);background:var(--color-composer-bg);box-shadow:var(--shadow-input);user-select:none;container-type:inline-size}.composer-card[data-v-5a96480c]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.composer-card[data-v-5a96480c]:focus-within:after{opacity:1}.att-strip[data-v-5a96480c]{position:relative;padding:calc(var(--space-4) + var(--space-05)) var(--space-4) 0 calc(var(--space-4) + var(--space-05))}.att-scroll[data-v-5a96480c]{max-height:calc(128px + var(--space-2));overflow-y:auto;margin-right:calc(var(--icon-button-sm) + var(--space-1))}.att-scroll-content[data-v-5a96480c]{display:flex;flex-direction:column;gap:var(--space-2);padding-right:var(--space-1)}.att-scroll.is-overflowing[data-v-5a96480c]{padding-bottom:var(--space-6)}.att-more[data-v-5a96480c]{position:absolute;left:var(--space-4);bottom:var(--space-1);z-index:var(--z-raised);display:inline-flex;align-items:center;height:18px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text-muted);font-size:var(--text-xs);box-shadow:var(--shadow-sm);pointer-events:none}.att-row[data-v-5a96480c]{display:flex;flex-wrap:wrap;gap:6px}.att-row-media[data-v-5a96480c]{gap:var(--space-2)}.att-scroll-content[data-v-5a96480c] .att-chip{corner-shape:superellipse(1.5)}.att-scroll-content[data-v-5a96480c] .att-tile{margin-left:calc(-1 * (var(--att-chip-pad-left, 5px) + var(--space-05)))}.att-clear[data-v-5a96480c]{position:absolute;top:calc(var(--space-4) + var(--space-05));right:var(--space-4);z-index:var(--z-raised)}.file-input-hidden[data-v-5a96480c]{display:none}.cin-wrap[data-v-5a96480c]{position:relative;padding:14px 16px 8px}.input-row[data-v-5a96480c]{position:relative;display:flex;align-items:flex-start;gap:var(--space-2)}.expand-btn[data-v-5a96480c]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--dim);cursor:pointer;padding:0;transition:background .12s,color .12s}.expand-btn[data-v-5a96480c]:hover{background:var(--panel2);color:var(--color-text)}.expand-btn[data-v-5a96480c]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.ph[data-v-5a96480c]{color:var(--faint);caret-color:var(--color-text);flex:1;border:none;outline:none;resize:none;font-family:var(--font-ui);font-size:var(--content-font-size);text-autospace:normal;background:transparent;min-height:36px;max-height:calc(var(--app-height, 100dvh) / 4);overflow-y:auto;scrollbar-width:none;line-height:1.5;margin-bottom:6px;user-select:text}.ph[data-v-5a96480c]::-webkit-scrollbar{display:none}.ph[data-v-5a96480c]::placeholder{color:var(--muted)}.ph[data-v-5a96480c]:not(:placeholder-shown){color:var(--color-text)}.composer.expanded .ph[data-v-5a96480c]{min-height:calc(var(--app-height, 100dvh) * .7);max-height:calc(var(--app-height, 100dvh) * .7)}.compact-chip[data-v-5a96480c]{height:var(--composer-control-size);padding:0 var(--space-2);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-warning);font-family:var(--mono);font-size:var(--ui-font-size);cursor:pointer;line-height:1;flex:none;transition:background var(--duration-base) var(--ease-out)}.compact-chip[data-v-5a96480c]:hover{background:var(--color-hover)}.composer-attach[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);border-radius:var(--radius-full);flex:none}.add-menu[data-v-5a96480c]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;z-index:var(--z-dropdown);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1-5) var(--space-3);display:flex;flex-direction:column;gap:var(--menu-rows-seam);font-family:var(--font-ui);transform-origin:bottom left}.am-scroll[data-v-5a96480c]{max-height:var(--p-add-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:var(--menu-rows-seam)}.am-scroll[data-v-5a96480c]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-5a96480c]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);pointer-events:none;z-index:var(--z-raised)}.add-menu:hover .scroll-thumb[data-v-5a96480c]{background:var(--color-menu-scrollbar-hover)}.msheet-search[data-v-5a96480c]{padding:0 var(--space-4) var(--space-2)}.msheet-add[data-v-5a96480c]{display:flex;flex-direction:column;gap:var(--menu-rows-seam);padding:0 var(--menu-row-hug);font-family:var(--font-ui)}.am-row[data-v-5a96480c]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);border:none;border-radius:var(--radius-menu-row);background:none;cursor:pointer;font-size:var(--ui-font-size);color:var(--color-text);text-align:left;transition:background var(--duration-base) var(--ease-out)}.am-row[data-v-5a96480c]:hover{background:var(--color-hover)}.am-row[data-v-5a96480c]:focus-visible{background:var(--color-selected);outline:none}@media(hover:none){.am-row[data-v-5a96480c]{padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.am-row:hover .am-icon[data-v-5a96480c],.am-row:focus-visible .am-icon[data-v-5a96480c]{color:var(--color-text)}.am-icon[data-v-5a96480c]{flex:none;width:var(--p-ic-sm);display:flex;justify-content:center;color:var(--color-text-muted);transition:color var(--duration-base) var(--ease-out)}.am-name[data-v-5a96480c]{flex:none;font-weight:var(--weight-medium)}.am-desc[data-v-5a96480c]{margin-left:var(--space-1);color:var(--color-text-muted);font-size:var(--ui-font-size-sm)}.send[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-send-bg);color:var(--color-send-icon);border:none;box-shadow:var(--shadow-send);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--duration-slow) var(--ease-out),transform var(--duration-fast) var(--ease-out),box-shadow var(--duration-slow) var(--ease-out);position:relative}.send[data-v-5a96480c]:hover:not(:disabled){background:var(--color-send-bg-hover);box-shadow:var(--shadow-send-hover)}.send[data-v-5a96480c]:active{transform:scale(.92)}.send[data-v-5a96480c]:disabled{cursor:not-allowed;background:var(--color-send-bg-disabled);color:var(--color-send-icon-disabled);opacity:var(--opacity-send-disabled)}.send[data-v-5a96480c]:disabled:active{transform:none}.send.is-starting[data-v-5a96480c]:disabled{background:var(--color-send-bg);color:var(--color-send-icon)}.send.is-starting[data-v-5a96480c] .ui-spinner{color:var(--color-send-icon)}.send.is-starting[data-v-5a96480c] .ui-spinner__track{stroke:color-mix(in srgb,var(--color-send-icon) 32%,transparent)}.send svg[data-v-5a96480c]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.stop[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-subtle);color:var(--color-stop-glyph);border:none;box-shadow:var(--shadow-xs);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .16s ease,color .16s ease,transform .12s ease}.stop[data-v-5a96480c]:hover{background:var(--color-danger);color:var(--color-text-on-accent)}.stop[data-v-5a96480c]:active{transform:scale(.92)}.stop svg[data-v-5a96480c]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.toolbar[data-v-5a96480c]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--composer-control-inset) var(--composer-control-inset);position:relative}.menu-measure[data-v-5a96480c]{position:absolute;width:max-content;height:0;overflow:hidden;visibility:hidden;pointer-events:none}.toolbar-left[data-v-5a96480c],.toolbar-right[data-v-5a96480c]{display:flex;align-items:center;gap:var(--space-1);min-width:0}.toolbar-left[data-v-5a96480c]{flex:none;overflow:hidden}.toolbar-right[data-v-5a96480c]{flex:1 1 auto;justify-content:flex-end}.perm-pill[data-v-5a96480c],.swarm-chip[data-v-5a96480c],.model-pill[data-v-5a96480c]{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);height:var(--composer-control-size);padding:0 var(--space-3);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:pointer;user-select:none;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.perm-pill[data-v-5a96480c]{font-size:var(--ui-font-size-sm)}.perm-pill[data-v-5a96480c]:after,.swarm-chip[data-v-5a96480c]:after,.model-pill[data-v-5a96480c]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.perm-pill[data-v-5a96480c]:hover:after,.swarm-chip[data-v-5a96480c]:hover:after,.model-pill[data-v-5a96480c]:hover:after{opacity:1}.perm-pill.open[data-v-5a96480c],.model-pill.open[data-v-5a96480c]{background:var(--color-accent-soft)}.swarm-chip[data-v-5a96480c]{cursor:default}.swarm-x[data-v-5a96480c]{margin-right:calc(var(--composer-control-size) / 2 - var(--space-3) - var(--icon-button-sm) / 2);color:inherit;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.swarm-chip .swarm-x[data-v-5a96480c]{border-radius:var(--radius-full)}.swarm-chip:hover .swarm-x[data-v-5a96480c],.swarm-x[data-v-5a96480c]:focus-visible{opacity:1}@media(hover:none){.toolbar-left[data-v-5a96480c]{padding-right:var(--space-2)}.swarm-chip[data-v-5a96480c]{margin-right:calc((var(--touch-target-min) - var(--icon-button-sm)) / 2 - var(--space-1))}.swarm-x[data-v-5a96480c]{opacity:1;position:relative}.swarm-x[data-v-5a96480c]:before{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.perm-pill.perm-manual[data-v-5a96480c]{color:var(--dim)}.perm-pill.perm-yolo[data-v-5a96480c]{color:var(--color-warning)}.perm-pill.perm-auto[data-v-5a96480c]{color:var(--color-danger)}.perm-pill-icon[data-v-5a96480c]{flex:none}.perm-pill[data-v-5a96480c],.swarm-chip[data-v-5a96480c]{flex:none;padding-left:var(--space-2)}.swarm-ic[data-v-5a96480c],.swarm-x[data-v-5a96480c]{flex:none}.labels-collapsed .perm-pill[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .perm-pill-label[data-v-5a96480c]{display:none}.labels-collapsed .swarm-chip[data-v-5a96480c]{position:relative;width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .swarm-label[data-v-5a96480c]{display:none}.labels-collapsed .swarm-ic[data-v-5a96480c]{transition:opacity var(--duration-base) var(--ease-out)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-5a96480c]{opacity:0}.labels-collapsed .swarm-x[data-v-5a96480c]{position:absolute;inset:0;width:auto;height:auto;margin-right:0}@media(hover:none){.labels-collapsed .swarm-chip[data-v-5a96480c]{width:var(--touch-target-min);height:var(--touch-target-min)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-5a96480c]{opacity:1}.labels-collapsed .swarm-x[data-v-5a96480c]{inset:0;width:auto;height:auto;opacity:1;background:transparent}.labels-collapsed .swarm-x[data-v-5a96480c]:before{inset:0 0 auto auto;width:var(--p-ic-md);height:var(--p-ic-md);border-radius:var(--radius-full);background:var(--color-selected)}.labels-collapsed .swarm-x[data-v-5a96480c] svg{position:absolute;top:calc(var(--space-1-5) / 2);right:calc(var(--space-1-5) / 2);width:calc(var(--p-ic-md) - var(--space-1-5));height:calc(var(--p-ic-md) - var(--space-1-5))}}.ctx-group[data-v-5a96480c]{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:2px 0;border-radius:var(--radius-xs)}.ctx-group[data-v-5a96480c]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.model-pill[data-v-5a96480c]{gap:var(--space-1);line-height:var(--leading-normal);overflow:hidden;flex:0 1 auto;min-width:0;max-width:320px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.model-pill[data-v-5a96480c]:active{transform:scale(.97)}.model-pill[data-v-5a96480c]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-pill .mp-name[data-v-5a96480c]{flex:0 8 auto;font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.model-pill .think-suffix[data-v-5a96480c]{color:var(--color-accent);font-weight:var(--weight-medium);flex:none}.model-pill .cv[data-v-5a96480c]{color:var(--faint);flex:none;transition:transform var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.model-pill:hover .cv[data-v-5a96480c],.model-pill.open .cv[data-v-5a96480c]{color:var(--dim)}.model-pill.open .cv[data-v-5a96480c]{transform:rotate(180deg)}.model-pill.icon-only[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.model-pill.login-pill[data-v-5a96480c]{flex:none;color:var(--color-accent)}.model-pill.login-pill .mp-name[data-v-5a96480c]{color:var(--color-accent)}.model-dropdown[data-v-5a96480c]{position:absolute;bottom:calc(100% + var(--space-1));right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));z-index:var(--z-dropdown);min-width:200px;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;font-family:var(--font-ui);transform-origin:bottom right;overflow-y:auto;overscroll-behavior:contain}.model-dropdown.flip-down[data-v-5a96480c]{top:calc(100% + var(--space-1));bottom:auto;transform-origin:top right}.composer-menu-pop-enter-active[data-v-5a96480c]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.composer-menu-pop-leave-active[data-v-5a96480c]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.composer-menu-pop-enter-from[data-v-5a96480c],.composer-menu-pop-leave-to[data-v-5a96480c]{opacity:0;transform:scale(.97) translateY(2px)}.model-dropdown.flip-down.composer-menu-pop-enter-from[data-v-5a96480c],.model-dropdown.flip-down.composer-menu-pop-leave-to[data-v-5a96480c]{transform:scale(.97) translateY(-2px)}.md-list[data-v-5a96480c]{display:flex;flex-direction:column;gap:1px;max-height:min(320px,40vh);overflow-y:auto;overscroll-behavior:contain}.md-section[data-v-5a96480c]{padding:4px 9px 2px;font-size:var(--text-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:var(--weight-semibold)}.md-row[data-v-5a96480c]{display:flex;align-items:center;gap:7px;width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);padding:5px 9px;border-radius:var(--radius-dropdown-row);text-align:left;transition:background var(--duration-base) var(--ease-out)}.md-row[data-v-5a96480c]:hover{background:var(--color-hover)}.md-row:hover .md-name[data-v-5a96480c]{color:var(--color-text-strong)}.md-row[data-v-5a96480c]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md-row[data-v-5a96480c]:disabled{cursor:default;opacity:.58}.md-row[data-v-5a96480c]:disabled:hover{background:none}.md-row.is-current[data-v-5a96480c]{background:var(--color-selected)}.md-note[data-v-5a96480c]{margin-left:auto;color:var(--muted);font-size:var(--ui-font-size-xs)}.md-row-more .md-more-icon[data-v-5a96480c]{color:var(--dim)}.md-row-more .md-more-arrow[data-v-5a96480c]{color:var(--faint);flex:none;transition:color var(--duration-base) var(--ease-out)}.md-row-more:hover .md-more-arrow[data-v-5a96480c]{color:var(--dim)}.md-check[data-v-5a96480c]{width:14px;flex:none;color:var(--color-accent);font-weight:500;display:flex;justify-content:center}.md-name[data-v-5a96480c]{flex:1;transition:color var(--duration-base) var(--ease-out)}.md-provider[data-v-5a96480c]{color:var(--muted);font-size:var(--ui-font-size-xs);flex:none}.md-star[data-v-5a96480c]{color:var(--star);flex:none;margin-left:auto}.md-divider[data-v-5a96480c]{height:1px;background:var(--line);margin:3px 0}.md-thinking[data-v-5a96480c]{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:var(--radius-dropdown-row)}.md-thinking .md-name[data-v-5a96480c]{font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);flex:none}.md-thinking .md-note[data-v-5a96480c],.md-thinking .ui-seg[data-v-5a96480c]{margin-left:auto}.md-cache-note[data-v-5a96480c]{width:0;min-width:100%;padding:2px 7px 4px;color:var(--muted);font-size:var(--ui-font-size-xs);line-height:1.4}.perm-dropdown[data-v-5a96480c]{position:absolute;bottom:calc(100% + 4px);left:var(--composer-control-inset);z-index:var(--z-dropdown);min-width:220px;width:max-content;max-width:calc(100vw - var(--space-8));background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;transform-origin:bottom left}.pd-row[data-v-5a96480c]{display:grid;grid-template-columns:var(--p-ic-md) var(--composer-menu-desc-width, max-content) var(--p-ic-sm);column-gap:7px;row-gap:2px;align-items:start;width:100%;background:none;border:none;cursor:pointer;padding:6px 7px;border-radius:var(--radius-dropdown-row);text-align:left}.pd-row[data-v-5a96480c]:hover,.pd-row.is-current[data-v-5a96480c]{background:var(--color-hover)}.pd-icon[data-v-5a96480c]{grid-column:1;grid-row:1;width:var(--p-ic-md);min-height:1lh;display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-check[data-v-5a96480c]{grid-column:3;grid-row:1;width:var(--p-ic-sm);min-height:1lh;color:var(--color-accent);font-size:var(--ui-font-size);font-weight:var(--weight-medium);display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-info[data-v-5a96480c]{display:contents}.pd-name[data-v-5a96480c]{grid-column:2;grid-row:1;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.pd-desc[data-v-5a96480c]{grid-column:2;grid-row:2;width:var(--composer-menu-desc-width, auto);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-caption);color:var(--muted);line-height:var(--leading-tight)}.wm-pill[data-v-5a96480c]{position:absolute;top:0;left:0;margin-left:calc(-1 * var(--space-05));z-index:var(--z-raised);display:inline-flex;align-items:center;gap:var(--space-1);height:calc(var(--content-font-size) * 1.5);padding:0 calc((var(--content-font-size) * 1.5 - var(--wm-x-size)) / 2) 0 var(--space-2);border:none;border-radius:var(--radius-full);background:var(--color-surface);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:calc(var(--content-font-size) * 1.5);white-space:nowrap;user-select:none}.wm-x[data-v-5a96480c]{position:relative;width:var(--wm-x-size);height:var(--wm-x-size);border-radius:var(--radius-full)}.wm-x[data-v-5a96480c]:before{content:"";position:absolute;inset:calc(-1 * var(--wm-x-ring))}@media(hover:none){.wm-x[data-v-5a96480c]:before{inset:calc((var(--wm-x-size) - var(--touch-target-min)) / 2)}}@media(max-width:640px){.composer[data-v-5a96480c]{padding:9px var(--dock-inline-right, max(12px, var(--safe-right))) max(24px,var(--safe-bottom)) var(--dock-inline-left, max(12px, var(--safe-left)))}.composer-card[data-v-5a96480c]{--composer-control-size: 36px;max-width:100%}.input-row[data-v-5a96480c]{gap:6px;min-width:0}.send[data-v-5a96480c],.stop[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);min-width:var(--composer-send-size);padding:0;border-radius:var(--radius-full);font-size:0;align-self:flex-end;position:relative}.perm-pill[data-v-5a96480c],.wm-pill[data-v-5a96480c]{display:none}.model-dropdown[data-v-5a96480c]{right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));left:auto;min-width:180px;max-width:calc(100vw - 24px)}.ph[data-v-5a96480c]{font-size:16px}.model-pill[data-v-5a96480c],.attach-btn[data-v-5a96480c]{font-size:var(--ui-font-size)}.toolbar[data-v-5a96480c]{gap:6px;min-width:0}.toolbar-left[data-v-5a96480c],.toolbar-right[data-v-5a96480c]{min-width:0}.model-pill[data-v-5a96480c]{max-width:min(52vw,220px)}.model-pill .mp-name[data-v-5a96480c]{max-width:min(40vw,170px)}.md-row[data-v-5a96480c],.md-section[data-v-5a96480c]{font-size:var(--ui-font-size)}.md-thinking[data-v-5a96480c]{flex-wrap:wrap;row-gap:6px}.md-thinking .ui-seg[data-v-5a96480c]{margin-left:0}.pd-name[data-v-5a96480c]{font-size:var(--ui-font-size)}.pd-desc[data-v-5a96480c]{font-size:var(--text-xs)}}@media(max-width:640px)and (hover:none){.send[data-v-5a96480c],.stop[data-v-5a96480c],.attach-btn[data-v-5a96480c],.expand-btn[data-v-5a96480c],.model-pill[data-v-5a96480c]{position:relative}.send[data-v-5a96480c]:before,.stop[data-v-5a96480c]:before,.attach-btn[data-v-5a96480c]:before,.expand-btn[data-v-5a96480c]:before,.model-pill[data-v-5a96480c]:before{content:"";position:absolute;inset:-6px}.expand-btn[data-v-5a96480c]:before{inset:-11px}}.goal-panel[data-v-cdb3e8b0]{display:flex;flex-direction:column;gap:var(--space-2);overflow-wrap:anywhere}.goal-criterion[data-v-cdb3e8b0]{padding-top:var(--space-2);border-top:.5px solid var(--color-line)}.goal-criterion-label[data-v-cdb3e8b0]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-section-label);line-height:var(--leading-normal);margin-bottom:var(--space-1)}.plan-panel[data-v-dea23306]{display:flex;flex-direction:column;gap:var(--space-2)}.plan-review-row[data-v-dea23306]{display:flex;gap:var(--space-2);font-size:var(--text-sm)}.plan-review-label[data-v-dea23306]{flex:none;color:var(--color-text-muted)}.plan-review-feedback[data-v-dea23306]{color:var(--color-text-muted)}.plan-path-only[data-v-dea23306]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1)}.plan-path-hint[data-v-dea23306]{color:var(--color-text-muted);font-size:var(--text-sm)}.plan-path[data-v-dea23306]{max-width:100%;font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-empty[data-v-dea23306]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.plan-empty-ico[data-v-dea23306]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}.qcard[data-v-8e7280dd]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.qcard>.qh[data-v-8e7280dd],.qcard>.qfoot[data-v-8e7280dd]{flex:none}.qcard.minimized[data-v-8e7280dd]{transition:background var(--duration-fast) var(--ease-out)}.qcard.minimized[data-v-8e7280dd]:hover{background:var(--color-hover)}.qh[data-v-8e7280dd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0}.qcard.minimized .qh[data-v-8e7280dd]{padding-bottom:var(--space-3);align-items:center}.qcard.minimized .qh.clickable[data-v-8e7280dd]{cursor:pointer}.qh-chip[data-v-8e7280dd]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qtitle[data-v-8e7280dd]{flex:1;min-width:0;color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);line-height:var(--leading-tight);overflow-wrap:anywhere}.qcard.minimized .qtitle[data-v-8e7280dd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmin[data-v-8e7280dd],.qclose[data-v-8e7280dd]{flex:none;margin-top:calc((var(--text-lg) * var(--leading-tight) - var(--icon-button-sm)) / 2)}.qmin[data-v-8e7280dd]{margin-left:auto}.qcard.minimized .qmin[data-v-8e7280dd],.qcard.minimized .qclose[data-v-8e7280dd]{margin-top:0}.qbody[data-v-8e7280dd]{min-height:min(var(--question-card-body-min-h),calc(var(--app-height, 100dvh) * .25));overflow-y:auto;padding:var(--space-3) var(--space-4) 0;color:var(--color-text);font:var(--text-base)/var(--leading-normal) var(--font-ui)}.qmdbody[data-v-8e7280dd]{margin-bottom:var(--space-2)}.qopts[data-v-8e7280dd]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-2)}.qopt[data-v-8e7280dd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text);transition:background var(--duration-fast) var(--ease-out);user-select:none}.qopt[data-v-8e7280dd]:hover,.qopt.highlighted[data-v-8e7280dd]{background:var(--color-hover)}.qopt-key[data-v-8e7280dd]{width:var(--p-chip-num);height:var(--p-chip-num);margin-top:calc((var(--text-base) * var(--leading-normal) - var(--p-chip-num)) / 2);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qopt-key[data-v-8e7280dd]:empty{background:transparent}.qopt-glyph[data-v-8e7280dd]{width:16px;height:16px;margin-top:calc((var(--text-base) * var(--leading-normal) - 16px) / 2);flex:none;border:.5px solid var(--color-line-strong);position:relative;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.qopt-glyph.rad[data-v-8e7280dd]{border-radius:50%}.qopt-glyph.chk[data-v-8e7280dd]{border-radius:var(--radius-xs)}.qopt.selected .qopt-glyph[data-v-8e7280dd]{border-color:var(--color-accent)}.qopt.selected .qopt-glyph.rad[data-v-8e7280dd]:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-8e7280dd]{background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-8e7280dd]:after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.qopt-text[data-v-8e7280dd]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.qopt-label[data-v-8e7280dd]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.qopt-desc[data-v-8e7280dd]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.other-input[data-v-8e7280dd]{flex:1;font:var(--text-base) var(--font-ui);border:none;border-bottom:.5px solid var(--color-line);outline:none;padding:2px var(--space-1);color:var(--color-text);background:transparent;min-width:0}.other-input[data-v-8e7280dd]:focus-visible{border-bottom-color:var(--color-accent);box-shadow:0 1px 0 0 var(--color-accent)}.qfoot[data-v-8e7280dd]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.qbtns[data-v-8e7280dd]{display:flex;align-items:center;gap:var(--space-1)}.qhint[data-v-8e7280dd]{margin-left:auto;color:var(--color-text-faint);font:var(--text-xs) var(--font-ui);user-select:none}@media(max-width:640px){.qopt[data-v-8e7280dd]{min-height:44px;padding:var(--space-3)}.other-input[data-v-8e7280dd]{flex-basis:100%;min-height:28px}.qfoot[data-v-8e7280dd]{flex-direction:column;align-items:stretch}.qhint[data-v-8e7280dd]{display:none}.qbtns[data-v-8e7280dd]{flex-direction:column;gap:var(--space-2)}.qbtns[data-v-8e7280dd] .ui-button{width:100%;min-height:46px}}.appr[data-v-690f6ed6]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.appr[data-v-690f6ed6]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.appr.scrolled[data-v-690f6ed6]:before{opacity:1}.appr>.ah[data-v-690f6ed6],.appr>.af[data-v-690f6ed6]{flex:none}.appr.minimized[data-v-690f6ed6]{transition:background var(--duration-fast) var(--ease-out)}.appr.minimized[data-v-690f6ed6]:hover{background:var(--color-hover)}.ah[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0;flex-wrap:nowrap}.appr.minimized .ah[data-v-690f6ed6]{padding-bottom:var(--space-3)}.appr.minimized .ah.clickable[data-v-690f6ed6]{cursor:pointer}.akind[data-v-690f6ed6]{color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);white-space:nowrap;flex:none}.apeek[data-v-690f6ed6]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.amin[data-v-690f6ed6],.aexpand[data-v-690f6ed6]{margin-left:auto;flex:none}.aexpand+.amin[data-v-690f6ed6]{margin-left:0}.ab[data-v-690f6ed6]{display:flex;flex-direction:column;flex:1;min-height:0;padding:var(--space-3) var(--space-4) 0}.ab[data-v-690f6ed6]>*{flex:0 1 auto;min-height:0}.ab>.plan-path[data-v-690f6ed6]{flex:none}.ab>.body-plan-wrap[data-v-690f6ed6]{flex:1}.plan-path[data-v-690f6ed6]{display:block;width:100%;margin-bottom:var(--space-2);padding:0;border:none;background:transparent;color:var(--color-accent);font:var(--text-xs) var(--font-mono);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-690f6ed6]:hover{text-decoration:underline}.plan-path[data-v-690f6ed6]:focus-visible{outline:none;text-decoration:underline;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.body-code[data-v-690f6ed6]{display:flex;flex-direction:column}.body-code.expanded[data-v-690f6ed6]{flex:1}.body-code.expanded[data-v-690f6ed6] .hl-code{max-height:none;flex:1}.code-path[data-v-690f6ed6]{flex:none;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body-shell[data-v-690f6ed6]{overflow-y:auto}.shell-cmd[data-v-690f6ed6]{font:var(--text-sm) var(--font-mono);background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-all;max-height:160px;overflow-y:auto;color:var(--color-text)}.shell-dollar[data-v-690f6ed6]{color:var(--color-accent-hover);font-weight:var(--weight-medium);margin-right:var(--space-2)}.shell-cwd[data-v-690f6ed6]{font:var(--text-xs) var(--font-mono);color:var(--color-text-muted);margin-top:var(--space-1)}.shell-danger[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui);background:var(--color-danger-soft)}.shell-danger-ic[data-v-690f6ed6]{flex:none}.body-chip[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);overflow-y:auto}.chip-label[data-v-690f6ed6]{background:var(--color-inline-code-bg);border-radius:var(--radius-sm);padding:2px var(--space-2);font:var(--weight-semibold) var(--text-xs) var(--font-mono);color:var(--color-text-muted);white-space:nowrap}.chip-value[data-v-690f6ed6]{font:var(--text-sm) var(--font-mono);color:var(--color-text);word-break:break-all}.chip-detail[data-v-690f6ed6]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted)}.body-todo[data-v-690f6ed6]{overflow-y:auto}.todo-item[data-v-690f6ed6]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-1) 0;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.todo-glyph[data-v-690f6ed6]{color:var(--color-accent);font-size:var(--text-sm);flex:none;width:14px}.todo-title[data-v-690f6ed6]{color:var(--color-text)}.todo-done[data-v-690f6ed6]{color:var(--color-text-muted);text-decoration:line-through}.body-generic[data-v-690f6ed6]{font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);word-break:break-word;overflow-y:auto}.body-plan-wrap[data-v-690f6ed6]{display:flex;flex-direction:column;overflow-y:auto}.body-plan-wrap[data-v-690f6ed6]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.body-plan-wrap.scrolled[data-v-690f6ed6]:before{opacity:1}.body-plan-wrap>.plan-opts[data-v-690f6ed6]{flex:none}.body-plan[data-v-690f6ed6]{max-height:50vh;overflow-y:auto;min-height:0}.body-plan.expanded[data-v-690f6ed6]{max-height:none;flex:1}.plan-opts[data-v-690f6ed6]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-3);padding-top:var(--space-3);border-top:.5px solid var(--color-line)}.popt[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text);font:var(--text-sm)/var(--leading-normal) var(--font-ui);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.popt[data-v-690f6ed6]:hover:not(:disabled){background:var(--color-hover)}.popt[data-v-690f6ed6]:focus-visible{outline:none;background:var(--color-hover);box-shadow:var(--p-focus-ring)}.popt[data-v-690f6ed6]:disabled{cursor:default;opacity:.6}.popt-key[data-v-690f6ed6]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.popt-text[data-v-690f6ed6]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.popt-label[data-v-690f6ed6]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.popt-desc[data-v-690f6ed6]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.popt-spin[data-v-690f6ed6]{flex:none;color:var(--color-text-muted)}.feedback-wrap[data-v-690f6ed6]{margin-top:var(--space-3);overflow-y:auto}.feedback-hint[data-v-690f6ed6]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted);margin-top:var(--space-1)}.af[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.abtns[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-1)}.knum[data-v-690f6ed6]{min-width:16px;height:16px;padding:0 3px;border-radius:var(--radius-xs);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/16px var(--font-ui);text-align:center}.abtns .ui-button--primary .knum[data-v-690f6ed6]{background:color-mix(in srgb,var(--color-text-on-accent) 28%,transparent);color:var(--color-text-on-accent)}@media(max-width:640px){.popt[data-v-690f6ed6]{min-height:44px;padding:var(--space-3)}.af[data-v-690f6ed6]{flex-direction:column;align-items:stretch}.abtns[data-v-690f6ed6]{flex-direction:column;margin-left:0;gap:var(--space-2)}.abtns[data-v-690f6ed6] .ui-button{width:100%;min-height:46px}.abtns .amain[data-v-690f6ed6]{order:-1}}.taskspane[data-v-22fc9dfb]{flex:1;min-height:0;display:flex;flex-direction:column}.tp-list[data-v-22fc9dfb]{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-05)}.tp-row[data-v-22fc9dfb]{padding:var(--space-1) 0}.tp-row.fail .tp-name[data-v-22fc9dfb]{color:var(--color-danger)}.tp-main[data-v-22fc9dfb]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-base)}.tp-row.expandable>.tp-main[data-v-22fc9dfb]{position:relative;border-radius:var(--radius-lg);padding:var(--space-1) var(--space-2);margin:calc(-1 * var(--space-1)) 0}.tp-row.expandable>.tp-main[data-v-22fc9dfb]:hover{background:var(--color-hover)}.tp-row[data-v-22fc9dfb]:not(.expandable){cursor:not-allowed}.tp-open[data-v-22fc9dfb]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.tp-open[data-v-22fc9dfb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tp-chevron[data-v-22fc9dfb]{flex:none;color:var(--muted)}.tp-name[data-v-22fc9dfb]{color:var(--color-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-meta[data-v-22fc9dfb]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted)}.tp-glyph[data-v-22fc9dfb]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center}.tp-done[data-v-22fc9dfb]{color:var(--color-success);transform:scale(.91)}.tp-cancelled[data-v-22fc9dfb]{color:var(--color-text-muted)}.tp-fail[data-v-22fc9dfb]{color:var(--color-danger)}.tp-time[data-v-22fc9dfb]{flex:none;font-size:var(--text-base);color:var(--muted);font-variant-numeric:tabular-nums;text-autospace:normal}.tp-model[data-v-22fc9dfb]{flex:0 1 auto;min-width:0;font-size:var(--text-base);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-stop[data-v-22fc9dfb]{position:relative;flex:none;color:var(--color-danger)}.tp-stop[data-v-22fc9dfb]:hover{color:var(--color-danger)}@media(hover:none){.tp-stop[data-v-22fc9dfb]{width:var(--touch-target-min);height:var(--touch-target-min)}.tp-row.expandable>.tp-main[data-v-22fc9dfb]{min-height:var(--touch-target-min)}}.tp-empty[data-v-22fc9dfb]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:var(--ui-font-size-sm);user-select:none}@media(max-width:640px){.tp-main[data-v-22fc9dfb]{flex-wrap:wrap;row-gap:var(--space-1)}.tp-name[data-v-22fc9dfb]{font-size:var(--ui-font-size-sm)}.tp-meta[data-v-22fc9dfb]{order:10;flex:1 1 100%;padding-left:calc(var(--p-ic-md) + var(--space-2));font-size:var(--ui-font-size-xs)}}.sg-empty[data-v-f7e4b600]{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sg-grid[data-v-f7e4b600]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--p-subagent-card-min),1fr));gap:var(--space-2)}.sg-card[data-v-f7e4b600]{position:relative;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected)}.sg-card.openable[data-v-f7e4b600]{cursor:pointer}.sg-card.openable[data-v-f7e4b600]:hover{background:var(--color-selected-hover)}.sg-card[data-v-f7e4b600]:not(.openable){cursor:not-allowed}.sg-open[data-v-f7e4b600]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.sg-open[data-v-f7e4b600]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sg-top[data-v-f7e4b600]{display:flex;align-items:center;gap:var(--space-2)}.sg-name[data-v-f7e4b600]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.sg-num[data-v-f7e4b600]{flex:none;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums}.sg-card:has(.sg-cancel) .sg-top[data-v-f7e4b600]{padding-right:calc(var(--icon-button-sm) + var(--space-1))}@media(hover:none){.sg-card:has(.sg-cancel) .sg-top[data-v-f7e4b600]{padding-right:calc(var(--touch-target-min) + var(--space-1))}}.sg-desc[data-v-f7e4b600]{color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--leading-caption);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sg-foot[data-v-f7e4b600]{display:flex;flex-direction:column;gap:var(--space-1)}.sg-model[data-v-f7e4b600]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs)}.sg-model span[data-v-f7e4b600]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-status[data-v-f7e4b600]{display:flex;align-items:center}.sg-state[data-v-f7e4b600]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);text-autospace:normal}.sg-ic-done[data-v-f7e4b600]{color:var(--color-success);transform:scale(.91)}.s-fail .sg-state[data-v-f7e4b600]{color:var(--color-danger)}.sg-time[data-v-f7e4b600]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-autospace:normal}.sg-cancel[data-v-f7e4b600]{position:absolute;top:var(--space-2);right:var(--space-2);color:var(--color-text-muted);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sg-card:hover .sg-cancel[data-v-f7e4b600],.sg-cancel[data-v-f7e4b600]:focus-visible{opacity:1}.sg-cancel[data-v-f7e4b600]:hover{color:var(--color-danger)}@media(hover:none){.sg-cancel[data-v-f7e4b600]{top:0;right:0;width:var(--touch-target-min);height:var(--touch-target-min);opacity:1}}.todo-card[data-v-f090f678]{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-base)}.tc-row[data-v-f090f678]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text)}.tc-name[data-v-f090f678]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:var(--leading-caption)}.tc-row.s-in_progress .tc-name[data-v-f090f678]{font-weight:var(--weight-medium)}.tc-row.s-pending .tc-name[data-v-f090f678]{color:var(--color-text-muted)}.tc-glyph[data-v-f090f678]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full)}.tc-glyph.g-done[data-v-f090f678]{color:var(--color-success)}.tc-glyph.g-pending[data-v-f090f678]{border:var(--p-ring-stroke) solid var(--color-line-strong)}.tc-glyph .tc-spin[data-v-f090f678]{color:var(--color-text)}.tc-empty[data-v-f090f678]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.tc-empty-ico[data-v-f090f678]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}@media(max-width:640px){.todo-card[data-v-f090f678]{font-size:var(--text-lg)}.tc-row[data-v-f090f678]{padding:var(--space-2) var(--space-3)}}.wp-head-tab[data-v-82048a74]{display:inline-flex;align-items:center;gap:var(--space-2);padding:0;border:.5px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap;flex:none}.wp-head-tab[data-v-82048a74] svg{width:1.5em;height:1.5em}.wp-head-meta[data-v-82048a74]{color:var(--color-text-muted);text-autospace:normal}.wp-head-actions[data-v-82048a74]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}@media(max-width:480px){.wp-head-actions[data-v-82048a74]{flex-basis:100%;margin-left:0}}@media(hover:none){.wp-head-actions[data-v-82048a74] .ui-seg__item{min-height:var(--touch-target-min)}}@media(max-width:640px),(hover:none){.wp-head-actions[data-v-82048a74] .ui-seg__item{height:var(--touch-target-min)}.wp-head-actions[data-v-82048a74] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}.wp-head-actions[data-v-82048a74] .fc-trigger{min-height:var(--touch-target-min)}}.filter-control[data-v-153e0d9c]{display:inline-flex;min-width:0}.fc-chevron[data-v-153e0d9c]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.fc-trigger[aria-expanded=true] .fc-chevron[data-v-153e0d9c]{transform:rotate(180deg)}.fc-menu[data-v-153e0d9c]{position:fixed;z-index:var(--z-dropdown)}.fc-menu[data-v-153e0d9c] .ui-menu{min-width:0}.fc-label[data-v-153e0d9c]{flex:1;white-space:nowrap}.filter-control[data-v-153e0d9c] .ui-seg__item[data-icon=circle-check] .ui-seg__icon,.fc-menu .kw-icon[data-icon=circle-check][data-v-153e0d9c]{transform:scale(.91)}.fc-check[data-v-153e0d9c]{color:var(--color-accent)}.chat-dock[data-v-8cd7cb40]{--dock-inline-left: 16px;--dock-inline-right: 16px;box-sizing:border-box;width:100%;max-width:calc(var(--read-max) + var(--panes-scrollbar-width, 0px));padding-right:var(--panes-scrollbar-width, 0px);flex:none;position:absolute;inset:auto 0 0;background:transparent;z-index:var(--z-sticky)}.chat-dock.has-popup[data-v-8cd7cb40]{z-index:var(--z-dropdown)}.chat-dock.align-center[data-v-8cd7cb40]{margin-left:auto;margin-right:auto}.chat-dock.align-left[data-v-8cd7cb40]{margin-left:0;margin-right:auto}.chat-dock.align-mobile[data-v-8cd7cb40]{max-width:none}.chat-dock[data-v-8cd7cb40]:before{--fade: 48px;--veil: 72px;content:"";position:absolute;top:calc(-1 * var(--fade));right:0;bottom:0;left:0;z-index:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-bg) 0%,transparent),color-mix(in srgb,var(--color-bg) 30%,transparent) 21px,color-mix(in srgb,var(--color-bg) 70%,transparent) 45px,var(--color-bg) var(--veil))}.chat-dock[data-v-8cd7cb40]>*{position:relative;z-index:1}.dock-work-panel[data-v-8cd7cb40]{position:absolute;left:16px;right:calc(16px + var(--panes-scrollbar-width, 0px));bottom:100%;background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);margin-bottom:var(--space-2);max-height:min(360px,50vh);display:flex;flex-direction:column;overflow:hidden;user-select:none}.dock-work-panel.panel-todos .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-head[data-v-8cd7cb40]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-body[data-v-8cd7cb40]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-todos .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-head[data-v-8cd7cb40]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-tab[data-v-8cd7cb40]{padding:0;line-height:var(--leading-solid)}.dock-work-panel.panel-goal .gh-time[data-v-8cd7cb40]{color:var(--color-text-muted)}.dock-work-panel.panel-todos .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-body[data-v-8cd7cb40]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-subagent[data-v-8cd7cb40],.dock-work-panel.panel-bash[data-v-8cd7cb40]{height:min(var(--p-dock-panel-h),50vh)}.dock-work-tab.tab-progress[data-v-8cd7cb40]{display:inline-flex;align-items:center;gap:var(--space-2)}@media(max-width:640px){.dock-work-panel.panel-subagent[data-v-8cd7cb40],.dock-work-panel.panel-bash[data-v-8cd7cb40]{height:auto}}.dock-work-head[data-v-8cd7cb40]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:.5px solid var(--color-line);position:relative;z-index:1}.dock-work-body[data-v-8cd7cb40]{padding:var(--space-2) var(--space-3);overflow-y:auto;min-height:0;display:flex;flex-direction:column}@media(max-width:480px){.dock-work-head[data-v-8cd7cb40]{flex-wrap:wrap}}.dock-work-panel.body-scrolled-up .dock-work-body[data-v-8cd7cb40]{mask-image:linear-gradient(to bottom,transparent,black var(--menu-scroll-fade))}.dock-work-body[data-v-8cd7cb40] .taskspane{border:none;background:transparent;padding:0}.dock-work-body[data-v-8cd7cb40] .taskspane .tp-head{display:none}.dock-workbar[data-v-8cd7cb40]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-1-5);padding:var(--space-1) calc(var(--dock-inline-right) + var(--space-4) + var(--p-hairline)) var(--space-05) calc(var(--dock-inline-left) + var(--space-4) + var(--p-hairline))}.dock-workbar[data-v-8cd7cb40] .ui-pill{position:relative;gap:var(--space-1-5);height:auto;padding:var(--space-2) calc(var(--space-3) + var(--space-05)) var(--space-2) var(--space-3);border:none;border-radius:var(--radius-lg);background:var(--color-selected);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);color:var(--color-text);font-size:var(--text-base);line-height:var(--leading-normal)}.dock-workbar[data-v-8cd7cb40] .ui-pill svg{width:1.5em;height:1.5em;color:inherit}.dock-workbar[data-v-8cd7cb40] .ui-pill:after{content:"";position:absolute;inset:0;border-radius:var(--radius-lg);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.dock-workbar[data-v-8cd7cb40] .ui-pill:hover:not(:disabled):after,.dock-workbar[data-v-8cd7cb40] .ui-pill.is-active:after{opacity:1}.chat-dock.pills-compact .dock-workbar[data-v-8cd7cb40] .ui-pill{padding:var(--space-2)}.chat-dock.pills-compact .dock-workbar[data-v-8cd7cb40] .ui-pill>span{display:none}.dock-workbar .dw-count[data-v-8cd7cb40]{color:var(--color-text-muted)}.dock-workbar .dw-running[data-v-8cd7cb40]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted)}.dock-workbar .dw-goal-status[data-v-8cd7cb40]{font-weight:var(--weight-medium)}.dock-workbar .dw-goal-status--active[data-v-8cd7cb40]{color:var(--color-success)}.dock-workbar .dw-goal-status--paused[data-v-8cd7cb40]{color:var(--color-warning)}.dock-workbar .dw-goal-status--blocked[data-v-8cd7cb40]{color:var(--color-danger)}.dock-approval[data-v-8cd7cb40]{margin-top:8px}.chat-dock.has-approval[data-v-8cd7cb40],.chat-dock.has-question[data-v-8cd7cb40]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance))}.chat-dock.has-approval>.dock-workbar[data-v-8cd7cb40],.chat-dock.has-question>.dock-workbar[data-v-8cd7cb40]{flex:none}.chat-dock.has-approval>.dock-approval[data-v-8cd7cb40],.chat-dock.has-question>.dock-question[data-v-8cd7cb40]{min-height:0}@media(max-width:640px){.chat-dock[data-v-8cd7cb40]{--dock-inline-left: max(12px, var(--safe-left));--dock-inline-right: max(12px, var(--safe-right))}.dock-work-panel[data-v-8cd7cb40]{left:10px;right:calc(10px + var(--panes-scrollbar-width, 0px))}.dock-work-head-actions[data-v-8cd7cb40] .ui-seg__item{height:var(--touch-target-min)}.dock-work-head-actions[data-v-8cd7cb40] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}}.chat-dock[data-v-8cd7cb40]:not(.align-mobile) .composer{padding-bottom:14px}.dock-panel-enter-active[data-v-8cd7cb40]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.dock-panel-leave-active[data-v-8cd7cb40]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.dock-panel-enter-from[data-v-8cd7cb40],.dock-panel-leave-to[data-v-8cd7cb40]{opacity:0;transform:translateY(var(--motion-panel-shift)) scale(var(--motion-panel-scale))}.ws-home[data-v-cf7957ea]{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);padding:0 var(--space-4) var(--space-4);user-select:none}.ws-home-title[data-v-cf7957ea]{display:flex;align-items:center;gap:10px;color:var(--color-text);font-size:var(--ui-t1);font-weight:var(--weight-section-label)}.ws-home-folder[data-v-cf7957ea]{color:var(--color-text-muted)}.ws-home-path[data-v-cf7957ea]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs[data-v-f463cc7b]{flex:none;display:flex;flex-direction:column;margin:var(--space-4) var(--dock-inline-right, 16px) 0 var(--dock-inline-left, 16px)}.wrs-caption[data-v-f463cc7b]{padding:0 var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.wrs-row[data-v-f463cc7b]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-width:0;padding:6px var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.wrs-row[data-v-f463cc7b]:hover{background:var(--color-hover)}.wrs-row[data-v-f463cc7b]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.wrs-ico[data-v-f463cc7b]{display:inline-flex;flex:none}.wrs-ico--open[data-v-f463cc7b]{color:var(--color-success)}.wrs-ico--done[data-v-f463cc7b]{color:var(--color-done)}.wrs-title[data-v-f463cc7b]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs-time[data-v-f463cc7b]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.wrs-foot[data-v-f463cc7b]{display:flex;justify-content:center;margin-top:var(--space-2)}.wrs-more[data-v-f463cc7b]{display:inline-flex;align-items:center;gap:var(--space-1);height:26px;padding:0 var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.wrs-more[data-v-f463cc7b]:hover{background:var(--color-hover);color:var(--color-text)}.wrs-more svg[data-v-f463cc7b]{color:var(--color-text-faint)}.conversation-toc[data-v-b8ba267a]{position:absolute;z-index:var(--z-sticky);top:50%;transform:translateY(-50%);--toc-content-max: min( var(--p-content-max), calc(100cqi - var(--space-5) - var(--space-5)) );left:calc(50% + (var(--toc-content-max) / 2) + 14px);max-height:calc(100% - 160px);display:flex;flex-direction:column;justify-content:center;opacity:.5;transition:opacity var(--duration-base) var(--ease-out)}.conversation-toc[data-v-b8ba267a]:before{content:"";position:absolute;inset:0 -48px 0 -14px;z-index:0}.conversation-toc[data-v-b8ba267a]:hover,.conversation-toc[data-v-b8ba267a]:focus-within{opacity:1}.conversation-toc[data-v-b8ba267a]:hover:not(:focus-within){transition-delay:var(--duration-hover-intent)}.toc-scroll[data-v-b8ba267a]{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;padding:8px 0;min-height:0;overflow-y:auto;scrollbar-width:none}.toc-scroll[data-v-b8ba267a]::-webkit-scrollbar{display:none}.toc-row[data-v-b8ba267a]{display:flex;align-items:center;gap:10px;height:18px;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);text-align:left;cursor:pointer;white-space:nowrap}.toc-row[data-v-b8ba267a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.toc-bar[data-v-b8ba267a]{flex:none;width:3px;height:14px;border-radius:var(--radius-full);background:var(--color-accent);opacity:.3;transition:opacity var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.toc-label[data-v-b8ba267a]{display:block;max-width:0;overflow:hidden;opacity:0;text-overflow:ellipsis;transition:max-width .22s var(--ease-out),opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.conversation-toc:hover .toc-bar[data-v-b8ba267a],.conversation-toc:focus-within .toc-bar[data-v-b8ba267a]{height:18px;opacity:.5}.conversation-toc:hover .toc-label[data-v-b8ba267a],.conversation-toc:focus-within .toc-label[data-v-b8ba267a]{max-width:220px;opacity:1}.conversation-toc:hover:not(:focus-within) .toc-bar[data-v-b8ba267a]{transition-delay:0ms,var(--duration-hover-intent)}.conversation-toc:hover:not(:focus-within) .toc-label[data-v-b8ba267a]{transition-delay:var(--duration-hover-intent),var(--duration-hover-intent),0ms}.toc-row.active .toc-bar[data-v-b8ba267a]{opacity:1;height:18px}.toc-row.active .toc-label[data-v-b8ba267a]{color:var(--color-accent);font-weight:var(--weight-medium)}.toc-row:hover .toc-bar[data-v-b8ba267a]{opacity:1}.toc-row:hover .toc-label[data-v-b8ba267a]{color:var(--color-text)}.conversation-toc.toc-clipped[data-v-b8ba267a]{visibility:hidden;pointer-events:none}.tsearch[data-v-26f3fed5]{position:absolute;top:calc(var(--panel-head-h, 48px) + var(--space-3));right:var(--space-3);z-index:var(--z-sticky);width:min(var(--p-findbar-w),calc(100% - var(--space-3) * 2));background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tsearch.mobile[data-v-26f3fed5]{top:var(--space-3)}.tsearch[data-v-26f3fed5]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-2xl);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.tsearch[data-v-26f3fed5]:focus-within:after{opacity:1}.tsearch-main[data-v-26f3fed5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);min-height:calc(var(--space-8) + 2 * var(--space-1))}.tsearch-icon[data-v-26f3fed5]{flex:none;margin-left:var(--space-1);color:var(--color-text-muted)}.tsearch-input[data-v-26f3fed5]{flex:1;min-width:0;height:var(--space-8);padding:0;border:none;background:transparent;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text)}.tsearch-input[data-v-26f3fed5]:focus-visible{outline:none}.tsearch-input[data-v-26f3fed5]::placeholder{color:var(--color-text-muted)}.tsearch-spin[data-v-26f3fed5]{display:inline-flex;flex:none}.tsearch-sep[data-v-26f3fed5]{flex:none;width:var(--p-hairline);height:var(--space-4);background:var(--color-line)}.tsearch .tsearch-close[data-v-26f3fed5]{border-radius:var(--radius-full)}.tsearch-foot-wrap[data-v-26f3fed5]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.tsearch-foot-wrap.open[data-v-26f3fed5]{grid-template-rows:1fr}.tsearch-foot[data-v-26f3fed5]{overflow:hidden;min-height:0;display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2)}.tsearch-foot-wrap.open .tsearch-foot[data-v-26f3fed5]{padding:var(--space-1) var(--space-2);border-top:var(--p-hairline) solid var(--color-line)}.tsearch-count[data-v-26f3fed5]{margin-left:auto;padding-right:var(--space-1);font-size:var(--ui-font-size-sm);color:var(--color-text-muted);white-space:nowrap;user-select:none}.tsearch-rings[data-v-26f3fed5]{position:absolute;inset:0;pointer-events:none}.tsearch-ring[data-v-26f3fed5]{position:absolute;box-sizing:content-box;border:var(--p-findring-w) solid var(--color-warning);margin:calc(-1 * var(--p-findring-w));border-radius:var(--radius-xs);pointer-events:none}.doodle-host[data-v-694a2ad0]{position:relative;width:100%;aspect-ratio:338 / 152;display:flex;align-items:center;justify-content:center}.doodle-canvas[data-v-694a2ad0]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.doodle-canvas.ready[data-v-694a2ad0]{opacity:1}@media(prefers-reduced-motion:reduce){.doodle-canvas[data-v-694a2ad0]{transition:none}}.con[data-v-031838d6]{--read-max: 760px;display:flex;flex-direction:column;min-width:0;height:100%;position:relative;container-type:inline-size}.empty-drag[data-v-031838d6]{position:absolute;top:0;left:0;right:0;height:var(--panel-head-h, 48px)}.empty-drag.macos-desktop[data-v-031838d6]{-webkit-app-region:drag}.panes[data-v-031838d6]{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;scrollbar-gutter:stable}.panes[data-v-031838d6]::-webkit-scrollbar{width:4px}.panes[data-v-031838d6]::-webkit-scrollbar-thumb{background:transparent;transition:background var(--duration-base) var(--ease-out)}.panes.scrolling[data-v-031838d6]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.panes.scrolling[data-v-031838d6]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panes.session-settling .chat[data-v-031838d6]>*:not(.chat-loading){visibility:hidden}.panes.is-following[data-v-031838d6],.panes.history-prepending[data-v-031838d6],.panes.is-pinned[data-v-031838d6]{overflow-anchor:none}.chat-layout[data-v-031838d6]{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.chat-scroll[data-v-031838d6]{flex:1;min-height:0;position:relative}.content-wrap[data-v-031838d6]{width:100%;max-width:var(--read-max);min-height:100%;box-sizing:border-box;padding-bottom:var(--chat-dock-height, 0px);display:flex;flex-direction:column;flex-shrink:0}.content-wrap.align-center[data-v-031838d6]{margin-left:auto;margin-right:auto}.content-wrap.align-left[data-v-031838d6]{margin-left:0;margin-right:auto}.content-wrap.align-mobile[data-v-031838d6]{max-width:none}@media(max-width:640px){.con.mobile[data-v-031838d6]{min-width:0;overflow:hidden}.con.mobile .panes[data-v-031838d6]{scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}.content-wrap.align-mobile[data-v-031838d6]{width:100%;min-width:0}}.empty-spacer[data-v-031838d6]{flex:1}.empty-tail[data-v-031838d6]{min-height:0;overflow-y:auto;padding-bottom:var(--space-4);box-sizing:border-box}.empty-hint[data-v-031838d6]{flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 16px 16px;color:var(--color-text);font-family:var(--font-ui);user-select:none}.empty-hint-title[data-v-031838d6]{font-size:calc(var(--ui-font-size) + 16px);font-optical-sizing:auto;font-weight:600}.empty-hint-title.is-starting[data-v-031838d6]{display:inline-flex;align-items:center;gap:9px;color:var(--dim);font-weight:400}.empty-doodle[data-v-031838d6]{width:min(340px,62vw)}.empty-hint-text[data-v-031838d6]{display:inline-block;font-size:var(--text-base);color:var(--dim);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upgrade-banner[data-v-031838d6]{flex:none;display:flex;align-items:center;gap:var(--space-3);margin:0 var(--dock-inline-right, 16px) var(--space-2) var(--dock-inline-left, 16px);padding:var(--space-2) var(--space-3);border:.5px solid var(--color-accent-bd);border-radius:var(--radius-xl);background:var(--color-accent-soft)}.upgrade-banner-icon[data-v-031838d6]{flex:none;color:var(--color-accent)}.upgrade-banner-text[data-v-031838d6]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text)}.upgrade-banner-cta[data-v-031838d6]{flex:none;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-accent);cursor:pointer}.upgrade-banner-cta[data-v-031838d6]:hover{color:var(--color-accent-hover)}.empty-composer[data-v-031838d6] .composer-card{position:relative;z-index:var(--z-sticky)}.empty-composer[data-v-031838d6]:not(.expanded) .ph{min-height:3lh}.ws-bar[data-v-031838d6]{margin-top:calc(-1 * var(--space-4));padding:calc(var(--space-4) + var(--space-2)) var(--space-2) var(--space-2);background:color-mix(in srgb,var(--color-hover) 60%,transparent);border-radius:0 0 var(--radius-2xl) var(--radius-2xl);font-family:var(--font-ui)}.ws-anchor[data-v-031838d6]{position:relative}.ws-chip[data-v-031838d6]{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;padding:var(--space-2) var(--space-3);background:none;border:none;border-radius:var(--radius-full);color:var(--color-text-muted);font-family:inherit;font-size:var(--ui-font-size-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ws-chip[data-v-031838d6]:hover,.ws-chip.open[data-v-031838d6]{background:var(--color-selected);color:var(--color-text)}.ws-chip[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-chip>.kw-icon[data-v-031838d6]{flex:none}.ws-chip-name[data-v-031838d6]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-option-label)}.ws-chip-chev[data-v-031838d6]{flex:none;transition:transform var(--duration-base) var(--ease-out)}.ws-chip.open .ws-chip-chev[data-v-031838d6]{transform:rotate(180deg)}.ws-chip.ws-ghost[data-v-031838d6]{color:var(--color-text-muted)}.ws-chip.ws-ghost[data-v-031838d6]:hover{color:var(--color-text)}.ws-backdrop[data-v-031838d6]{position:fixed;inset:0;z-index:var(--z-sticky)}.ws-panel[data-v-031838d6]{position:absolute;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);left:0;top:calc(100% + var(--space-1));z-index:var(--z-dropdown);width:max-content;min-width:min(calc(var(--space-8) * 8),100%);max-width:100%;max-height:calc(var(--space-8) * 10);overflow:hidden auto;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:var(--space-1);animation:ws-pop-031838d6 var(--duration-base) var(--ease-out)}.ws-panel.up[data-v-031838d6]{top:auto;bottom:calc(100% + var(--space-1));animation-name:ws-pop-up-031838d6}@keyframes ws-pop-031838d6{0%{opacity:0;transform:translateY(calc(-1 * var(--space-1))) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ws-pop-up-031838d6{0%{opacity:0;transform:translateY(var(--space-1)) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.ws-caption[data-v-031838d6]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--color-text-faint);user-select:none}.ws-row[data-v-031838d6]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-1) var(--space-2);cursor:pointer;font-family:var(--font-ui)}.ws-row>.kw-icon[data-v-031838d6]{flex:none;color:var(--muted)}.ws-row[data-v-031838d6]:hover{background:var(--color-hover)}.ws-row.on[data-v-031838d6]{background:var(--color-selected)}.ws-row[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-info[data-v-031838d6]{flex:1;min-width:0;display:flex;flex-direction:column}.ws-name[data-v-031838d6]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-option-label);color:var(--color-text);line-height:var(--leading-normal)}.ws-path[data-v-031838d6]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:var(--weight-option-label);color:var(--muted);line-height:var(--leading-normal)}.ws-check[data-v-031838d6]{flex:none;margin-left:var(--space-3);color:var(--color-text)}.ws-divider[data-v-031838d6]{height:1px;margin:var(--space-1) var(--space-2);background:var(--line)}.ws-action[data-v-031838d6]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--dim)}.ws-action>.kw-icon[data-v-031838d6]{flex:none;color:var(--muted)}.ws-action span[data-v-031838d6]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-action[data-v-031838d6]:hover{background:var(--color-hover);color:var(--color-text)}.ws-action:hover>.kw-icon[data-v-031838d6]{color:var(--dim)}.ws-action[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chat-scroll[data-v-031838d6]{display:flex;flex-direction:column}.mobile .panes[data-v-031838d6]:has(>.chat-layout){overflow:hidden;scrollbar-gutter:auto}.newmsg-pill[data-v-031838d6]{position:absolute;left:50%;bottom:12px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:.5px solid var(--line);background:var(--panel);color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);cursor:pointer;box-shadow:var(--shadow-sm);z-index:var(--z-sticky)}.pill-chevron[data-v-031838d6]{width:12px;height:12px}.pill-enter-active[data-v-031838d6],.pill-leave-active[data-v-031838d6]{transition:opacity .2s ease,transform .2s ease}.pill-enter-from[data-v-031838d6],.pill-leave-to[data-v-031838d6]{opacity:0;transform:translate(-50%) translateY(8px)}.undo-toast[data-v-031838d6]{position:absolute;left:50%;top:60px;transform:translate(-50%);padding:8px 14px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--bg);font-size:var(--ui-font-size-sm);z-index:var(--z-sticky);box-shadow:var(--shadow-sm)}.undo-toast-text[data-v-031838d6]{display:flex;align-items:center;gap:8px}.undo-toast-enter-active[data-v-031838d6],.undo-toast-leave-active[data-v-031838d6]{transition:opacity .15s ease,transform .15s ease}.undo-toast-enter-from[data-v-031838d6],.undo-toast-leave-to[data-v-031838d6]{opacity:0;transform:translate(-50%) translateY(-6px)}.con[data-v-031838d6]{background:var(--bg)}.newmsg-pill[data-v-031838d6]{font-family:var(--sans)}.sa-select[data-v-559b928b]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:30px;padding:0 var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-559b928b]:hover,.sa-select.is-open[data-v-559b928b]{background:var(--color-hover)}.sa-select-chev[data-v-559b928b]{color:var(--color-text-faint)}.sa-menu[data-v-559b928b]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-check[data-v-559b928b]{display:inline-flex;flex:none;width:14px}.sa-dot[data-v-559b928b]{flex:none;width:8px;height:8px;border-radius:var(--radius-full)}.sa-dot--open[data-v-559b928b]{background:var(--color-success)}.sa-dot--done[data-v-559b928b]{background:var(--color-done)}.menu-pop-enter-active[data-v-559b928b]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-559b928b]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-559b928b],.menu-pop-leave-to[data-v-559b928b]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-select[data-v-08fc2991]{display:inline-flex;align-items:center;gap:var(--space-1-5);min-height:30px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-08fc2991]:hover,.sa-select.is-open[data-v-08fc2991]{background:var(--color-hover)}.sa-select[data-v-08fc2991]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sa-select-chev[data-v-08fc2991]{color:var(--color-text-faint)}.sa-tag[data-v-08fc2991]{display:inline-flex;align-items:center;gap:1px;height:20px;padding:0 2px 0 var(--space-1-5);border-radius:var(--radius-xs);background:var(--color-selected);font-size:var(--text-xs)}.sa-tag-name[data-v-08fc2991]{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-tag-x[data-v-08fc2991]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:var(--color-text-faint);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-tag-x[data-v-08fc2991]:hover{background:var(--color-hover);color:var(--color-text)}.sa-tag-more[data-v-08fc2991]{color:var(--color-text-muted);font-size:var(--text-xs)}.sa-menu[data-v-08fc2991]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-search[data-v-08fc2991]{display:flex;align-items:center;gap:7px;padding:5px 9px;color:var(--color-text-faint)}.sa-search-input[data-v-08fc2991]{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-tight)}.sa-search-input[data-v-08fc2991]::placeholder{color:var(--color-text-faint)}.sa-ws-name[data-v-08fc2991]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-opts[data-v-08fc2991]{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.sa-menu-empty[data-v-08fc2991]{padding:5px 9px;color:var(--color-text-faint);font-size:var(--text-sm)}.menu-pop-enter-active[data-v-08fc2991]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-08fc2991]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-08fc2991],.menu-pop-leave-to[data-v-08fc2991]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-menu[data-v-770e2854]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-menu-head[data-v-770e2854]{padding:var(--space-1) var(--space-2) var(--space-05);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.menu-pop-enter-active[data-v-770e2854]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-770e2854]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-770e2854],.menu-pop-leave-to[data-v-770e2854]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-table-card[data-v-9b9dc9c2]{border:.5px solid var(--color-line);border-radius:var(--radius-lg);background:var(--color-bg);overflow-x:auto;container-type:inline-size;transition:opacity var(--duration-fast) var(--ease-out)}.sa-table-card.is-loading[data-v-9b9dc9c2]{opacity:.45;pointer-events:none}table[data-v-9b9dc9c2]{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed}.sa-col-cb[data-v-9b9dc9c2]{width:36px}.sa-col-title[data-v-9b9dc9c2]{width:max(200px,20%)}.sa-col-ws[data-v-9b9dc9c2]{width:116px}.sa-col-status[data-v-9b9dc9c2]{width:88px}.sa-col-time[data-v-9b9dc9c2]{width:140px}.sa-col-act[data-v-9b9dc9c2]{width:84px}.sa-time--compact[data-v-9b9dc9c2]{display:none}@container (max-width: 1020px){.sa-col-time[data-v-9b9dc9c2]{width:108px}.sa-time--full[data-v-9b9dc9c2]{display:none}.sa-time--compact[data-v-9b9dc9c2]{display:inline}}@container (max-width: 760px){col.sa-col-time[data-v-9b9dc9c2],.sa-c-time[data-v-9b9dc9c2]{display:none}.sa-col-ws[data-v-9b9dc9c2]{width:96px}}thead th[data-v-9b9dc9c2]{height:32px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);text-align:left;white-space:nowrap;user-select:none}th.sa-col-cb[data-v-9b9dc9c2],td.sa-col-cb[data-v-9b9dc9c2]{padding-right:0}tbody td[data-v-9b9dc9c2]{height:40px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-subtle);font-size:var(--text-sm);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}tbody tr:last-child td[data-v-9b9dc9c2]{border-bottom:none}tbody tr[data-v-9b9dc9c2]{transition:background var(--duration-fast) var(--ease-out)}tbody tr[data-v-9b9dc9c2]:hover{background:var(--color-hover)}.sa-cb[data-v-9b9dc9c2]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:.5px solid var(--color-line-strong);border-radius:var(--radius-xs);color:var(--color-text-on-accent);vertical-align:middle;transition:background var(--duration-fast) var(--ease-out),border-color var(--duration-fast) var(--ease-out)}.sa-cb[data-v-9b9dc9c2]:hover{border-color:var(--color-text-faint)}.sa-cb.on[data-v-9b9dc9c2],.sa-cb.ind[data-v-9b9dc9c2]{background:var(--color-accent);border-color:var(--color-accent)}.sa-batch-inner[data-v-9b9dc9c2]{display:flex;align-items:center;gap:var(--space-2)}.sa-batch-count[data-v-9b9dc9c2]{margin-right:var(--space-1);color:var(--color-text-muted);font-size:var(--text-sm);white-space:nowrap;user-select:none}.sa-batch-link[data-v-9b9dc9c2]{display:inline-flex;align-items:center;height:24px;padding:0 var(--space-1);border:none;background:transparent;color:var(--color-accent);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.sa-batch-link[data-v-9b9dc9c2]:hover{text-decoration:underline}.sa-batch-link[data-v-9b9dc9c2]:disabled{color:var(--color-text-faint);cursor:default;text-decoration:none}.sa-btn-q[data-v-9b9dc9c2]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:24px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-btn-q[data-v-9b9dc9c2]:hover{background:var(--color-hover)}.sa-btn-q[data-v-9b9dc9c2]:disabled{opacity:.42;cursor:default}.sa-btn-q[data-v-9b9dc9c2]:disabled:hover{background:transparent}.sa-btn-q[data-v-9b9dc9c2] :first-child{color:var(--color-text-muted)}.sa-btn-q[data-v-9b9dc9c2]:hover :first-child{color:var(--color-text)}.sa-btn-q--primary[data-v-9b9dc9c2],.sa-btn-q--primary[data-v-9b9dc9c2] :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-9b9dc9c2]:hover,.sa-btn-q--primary[data-v-9b9dc9c2]:hover :first-child{border-color:var(--color-accent-hover);background:var(--color-accent-hover);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-9b9dc9c2]:disabled,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled:hover,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled :first-child,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled:hover :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-st[data-v-9b9dc9c2]{display:inline-flex;align-items:center;gap:var(--space-1-5)}.sa-st--open[data-v-9b9dc9c2]{color:var(--color-success)}.sa-st--done[data-v-9b9dc9c2]{color:var(--color-done)}.sa-title[data-v-9b9dc9c2]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-option-label)}.sa-rename[data-v-9b9dc9c2]{width:100%;height:26px;padding:0 var(--space-1-5);border:1px solid var(--color-accent);border-radius:var(--radius-sm);outline:none;box-shadow:0 0 0 2px var(--color-accent-bd);background:var(--color-bg);color:var(--color-text);font-family:inherit;font-size:var(--text-sm)}.sa-ws[data-v-9b9dc9c2]{display:inline-flex;align-items:center;max-width:100%;color:var(--color-text-muted)}.sa-ws span[data-v-9b9dc9c2]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-prompt[data-v-9b9dc9c2]{color:var(--color-text-muted)}.sa-time[data-v-9b9dc9c2]{color:var(--color-text-muted);font-family:var(--font-mono);font-size:var(--text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.sa-none[data-v-9b9dc9c2]{color:var(--color-text-faint)}.sa-act[data-v-9b9dc9c2]{display:flex;align-items:center;gap:var(--space-05)}.sa-state[data-v-9b9dc9c2]{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-8) + var(--space-6)) var(--space-4)}.sa-empty[data-v-9b9dc9c2]{color:var(--color-text-faint);font-size:var(--text-sm)}.sa-pager[data-v-a27fa76f]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-3)}.sa-total[data-v-a27fa76f]{color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;user-select:none}.sa-pager-right[data-v-a27fa76f]{display:flex;align-items:center;gap:var(--space-3)}.sa-pages[data-v-a27fa76f]{display:flex;align-items:center;gap:var(--space-05)}.sa-pg[data-v-a27fa76f]{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 var(--space-1-5);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-pg[data-v-a27fa76f]:hover{background:var(--color-hover);color:var(--color-text)}.sa-pg.cur[data-v-a27fa76f]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.sa-pg.cur[data-v-a27fa76f]:hover{background:var(--color-selected)}.sa-pg[data-v-a27fa76f]:disabled{opacity:.38;cursor:default}.sa-pg[data-v-a27fa76f]:disabled:hover{background:transparent;color:var(--color-text-muted)}.sa-ellipsis[data-v-a27fa76f]{padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.session-admin[data-v-01565f3a]{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--color-bg);font-family:var(--font-ui)}.sa-scroll[data-v-01565f3a]{flex:1;min-height:0;overflow-y:auto}.sa-page[data-v-01565f3a]{padding:var(--space-8) var(--space-6);display:flex;flex-direction:column;box-sizing:border-box}.sa-head[data-v-01565f3a]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:48px;padding:0 var(--space-6);border-bottom:.5px solid var(--color-line);box-sizing:border-box}.sa-title[data-v-01565f3a]{margin:0;font-size:var(--text-base);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);user-select:none}.sa-subtitle[data-v-01565f3a]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.session-admin.macos-desktop .sa-head[data-v-01565f3a]{-webkit-app-region:drag}.session-admin.macos-desktop .sa-head button[data-v-01565f3a],.session-admin.macos-desktop .sa-head input[data-v-01565f3a]{-webkit-app-region:no-drag}.sa-filters[data-v-01565f3a]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)}.sa-f-label[data-v-01565f3a]{margin-left:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);user-select:none}.sa-f-label[data-v-01565f3a]:first-child{margin-left:0}.sa-f-actions[data-v-01565f3a]{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:var(--space-2)}.file-preview[data-v-9a4f39c9]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono);min-width:0;container-type:inline-size}.fp-empty[data-v-9a4f39c9],.fp-loading[data-v-9a4f39c9]{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:var(--ui-font-size)}.fp-path[data-v-9a4f39c9]{flex:1 1 60px;min-width:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left;font-size:var(--ui-font-size-xs);color:var(--muted);font-weight:400}.fp-meta[data-v-9a4f39c9]{display:flex;align-items:center;gap:8px;flex:none}@container (max-width: 539px){.fp-meta[data-v-9a4f39c9]{display:none}}.fp-lines[data-v-9a4f39c9],.fp-size[data-v-9a4f39c9]{font-size:max(9px,calc(var(--ui-font-size) - 3.5px));color:var(--muted);white-space:nowrap}.fp-search[data-v-9a4f39c9]{display:flex;align-items:center;gap:4px;flex:1 1 110px;min-width:70px;max-width:200px}.fp-search-input[data-v-9a4f39c9]{flex:1;min-width:0;height:26px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:2px 7px;background:var(--color-surface-raised);color:var(--color-text);font:var(--text-xs) var(--font-mono)}.fp-search-count[data-v-9a4f39c9]{color:var(--muted);font-size:max(9px,calc(var(--ui-font-size) - 3.5px));min-width:18px;text-align:right}.fp-download[data-v-9a4f39c9]{display:inline-grid;place-items:center;width:26px;height:26px;flex:none;border-radius:var(--radius-sm);color:var(--color-text-muted)}.fp-download[data-v-9a4f39c9]:hover{background:var(--color-hover);color:var(--color-text)}.fp-download[data-v-9a4f39c9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.fp-download svg[data-v-9a4f39c9]{width:var(--p-ic-sm);height:var(--p-ic-sm)}.fp-check[data-v-9a4f39c9]{color:var(--color-success)}.fp-body[data-v-9a4f39c9]{--fp-search-hit-bg: color-mix(in srgb, var(--star) 22%, var(--bg));--fp-search-active-bg: color-mix(in srgb, var(--star) 36%, var(--bg));flex:1;min-height:0;overflow:auto}.fp-markdown[data-v-9a4f39c9]{padding:16px 20px}.fp-code[data-v-9a4f39c9]{background:var(--bg)}.fp-code[data-v-9a4f39c9] .hl-row.hit,.fp-table tr.hit td[data-v-9a4f39c9]{background:var(--fp-search-hit-bg)}.fp-code[data-v-9a4f39c9] .hl-row.active,.fp-table tr.active td[data-v-9a4f39c9]{background:var(--fp-search-active-bg)}.fp-code[data-v-9a4f39c9] .hl-row.target,.fp-table tr.target th[data-v-9a4f39c9],.fp-table tr.target td[data-v-9a4f39c9]{background:var(--color-accent-soft)}.fp-html-frame[data-v-9a4f39c9],.fp-pdf-frame[data-v-9a4f39c9]{width:100%;height:100%;border:0;background:var(--color-surface-raised)}.fp-pdf-wrap[data-v-9a4f39c9]{background:var(--panel2)}.fp-table-wrap[data-v-9a4f39c9]{background:var(--bg)}.fp-table[data-v-9a4f39c9]{border-collapse:collapse;min-width:100%;font:var(--code-font-size)/var(--leading-normal) var(--mono)}.fp-table th[data-v-9a4f39c9]{position:sticky;left:0;z-index:1;width:44px;min-width:44px;padding:2px 8px;text-align:right;color:var(--faint);background:var(--panel);border-right:.5px solid var(--line2);user-select:none}.fp-table td[data-v-9a4f39c9]{padding:2px 10px;border-right:.5px solid var(--line2);border-bottom:.5px solid var(--line2);white-space:pre}.fp-image-wrap[data-v-9a4f39c9]{display:flex;align-items:center;justify-content:center;padding:24px;background:var(--panel2)}.fp-image[data-v-9a4f39c9]{max-width:100%;max-height:100%;object-fit:contain;border:.5px solid var(--line);border-radius:4px;background:var(--media-alpha-canvas)}.fp-image.actual[data-v-9a4f39c9]{max-width:none;max-height:none}.fp-binary-wrap[data-v-9a4f39c9]{display:flex;align-items:center;justify-content:center}.fp-binary-card[data-v-9a4f39c9]{display:flex;align-items:center;gap:12px;padding:20px 24px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:var(--ui-font-size);margin:32px auto;max-width:480px}.fp-binary-icon[data-v-9a4f39c9]{color:var(--faint);flex:none}.fp-error[data-v-9a4f39c9]{flex-direction:column;padding:24px;text-align:center}@keyframes spin-9a4f39c9{to{transform:rotate(360deg)}}.spinner[data-v-9a4f39c9]{display:inline-block;width:14px;height:14px;border:.5px solid var(--line);border-top-color:var(--color-accent);border-radius:50%;animation:spin-9a4f39c9 .7s linear infinite}@media(max-width:640px){.fp-lines[data-v-9a4f39c9]{display:none}.fp-markdown[data-v-9a4f39c9]{padding:14px 16px}.fp-body.fp-code[data-v-9a4f39c9]{-webkit-overflow-scrolling:touch}}.fp-empty[data-v-9a4f39c9],.fp-loading[data-v-9a4f39c9]{font-family:var(--sans)}.fp-binary-card[data-v-9a4f39c9]{border:.5px solid var(--color-line);border-radius:var(--radius-md)}.fp-binary-label[data-v-9a4f39c9]{font-family:var(--sans)}.fp-image[data-v-9a4f39c9]{border-radius:var(--radius-md)}.seg-btn[data-v-9a4f39c9]{font-family:var(--sans)}.tp[data-v-afb1f46f]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--color-bg)}.tp-body[data-v-afb1f46f]{flex:1;min-height:0;overflow-y:auto;margin:0;padding:12px 14px;font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word}.agent-panel[data-v-87af6ca2]{height:100%;min-height:0;display:flex;flex-direction:column;background:var(--color-bg)}.agent-transcript[data-v-87af6ca2]{flex:1;min-height:0;overflow-y:auto}.agent-transcript[data-v-87af6ca2] .think-body,.agent-transcript[data-v-87af6ca2] .ar-body,.agent-transcript[data-v-87af6ca2] .tf-body,.agent-transcript[data-v-87af6ca2] .bb,.agent-transcript[data-v-87af6ca2] .tl-body{transition:none}.agent-error[data-v-87af6ca2]{color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui)}.copy-menu[data-v-87af6ca2]{position:fixed;z-index:var(--z-dropdown)}.agent-fallback[data-v-87af6ca2]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}.sc[data-v-ce2b775d]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--bg)}.sc-body[data-v-ce2b775d]{flex:1;min-height:0;overflow-y:auto}.sc-empty[data-v-ce2b775d]{padding:24px 16px;text-align:center;color:var(--muted);font-size:var(--ui-font-size)}.sc-composer[data-v-ce2b775d]{flex:none;display:flex;align-items:flex-end;gap:6px;padding:8px 10px;border-top:.5px solid var(--color-line);background:var(--color-surface-raised)}.sc-input[data-v-ce2b775d]{flex:1;min-width:0;resize:none;border:.5px solid var(--color-line);border-radius:var(--r-sm);padding:7px 9px;background:var(--bg);color:var(--color-text);font:var(--ui-font-size)/1.5 var(--sans);outline:none;max-height:160px}.sc-input[data-v-ce2b775d]:focus{border-color:var(--color-accent-bd)}.sc-send[data-v-ce2b775d]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:var(--r-sm);background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.sc-send[data-v-ce2b775d]:disabled{opacity:.4;cursor:default}.sc-send[data-v-ce2b775d]:not(:disabled):hover{background:var(--color-accent-hover)}.sc-loading[data-v-ce2b775d]{flex:none;padding:8px 12px 12px}.sc-body[data-v-ce2b775d] .sending-placeholder,.sc-body[data-v-ce2b775d] .sending-line{display:none}.changes-pane[data-v-7d5ab9c7]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono)}.dv-path[data-v-7d5ab9c7],.dv-change-count[data-v-7d5ab9c7]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:var(--ui-font-size-xs);color:var(--muted)}.dv-change-count[data-v-7d5ab9c7]{flex:1;align-self:stretch;display:inline-flex;align-items:center;font-family:var(--font-ui)}.dv-path[data-v-7d5ab9c7]{font-family:var(--font-ui)}.ch-head[data-v-7d5ab9c7]{display:flex;align-items:center;gap:8px;padding:8px var(--space-3);border-bottom:.5px solid var(--line);background:var(--panel);font-size:var(--text-base);color:var(--dim);flex:none;white-space:nowrap;overflow:hidden;font-family:var(--font-ui);user-select:none}.br-heading[data-v-7d5ab9c7]{display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.br-icon[data-v-7d5ab9c7]{flex:none;color:var(--muted)}.br-label[data-v-7d5ab9c7]{color:var(--muted);font-size:var(--text-xs);font-weight:500}.br-name[data-v-7d5ab9c7]{color:var(--color-text);font-weight:500;font-size:var(--text-xs)}.sync-info[data-v-7d5ab9c7]{display:flex;align-items:center;gap:4px}.ahead[data-v-7d5ab9c7]{color:var(--color-accent);font-size:var(--text-xs)}.behind[data-v-7d5ab9c7]{color:var(--color-warning);font-size:var(--text-xs)}.empty-head[data-v-7d5ab9c7]{color:var(--muted);font-size:var(--text-base)}.ch-list[data-v-7d5ab9c7]{flex:1;min-height:0}.ch-list-content[data-v-7d5ab9c7]{min-height:100%;padding:4px 0}.ch-row[data-v-7d5ab9c7]{display:flex;align-items:center;gap:6px;padding:3px 8px;cursor:pointer;font-size:var(--text-xs);line-height:1.6;width:100%;background:none;border:none;text-align:left;font-family:var(--font-ui);color:inherit}.ch-row[data-v-7d5ab9c7]:hover{background:var(--panel2)}.ch-row[data-v-7d5ab9c7]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ch-tree[data-v-7d5ab9c7]{--tree-base-indent: 14px;--tree-indent-step: 12px;font-family:var(--font-ui)}.tree-list[data-v-7d5ab9c7]{list-style:none;margin:0}.tree-node[data-v-7d5ab9c7]{overflow:hidden;interpolate-size:allow-keywords}.tree-collapse-enter-active[data-v-7d5ab9c7],.tree-collapse-leave-active[data-v-7d5ab9c7]{transition:block-size var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out),transform var(--duration-base) var(--ease-out)}.tree-collapse-enter-from[data-v-7d5ab9c7],.tree-collapse-leave-to[data-v-7d5ab9c7]{block-size:0;opacity:0;transform:translateY(-3px)}.tree-collapse-enter-to[data-v-7d5ab9c7],.tree-collapse-leave-from[data-v-7d5ab9c7]{block-size:auto;opacity:1;transform:translateY(0)}.tree-row[data-v-7d5ab9c7]{position:relative;display:flex;align-items:center;gap:6px;width:100%;margin-top:1px;padding:3px 8px;background:none;border:none;text-align:left;font-family:inherit;font-size:var(--text-xs);color:inherit;cursor:pointer}.tree-row[data-v-7d5ab9c7]:before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--tree-base-indent) + 6px);width:calc(var(--tree-depth, 0) * var(--tree-indent-step));background:repeating-linear-gradient(to right,var(--color-line) 0 1px,transparent 1px var(--tree-indent-step));pointer-events:none}.tree-row[data-v-7d5ab9c7]:hover{background:var(--panel2)}.tree-row[data-v-7d5ab9c7]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.tree-folder[data-v-7d5ab9c7]{color:var(--color-text);font-weight:500}.tree-file[data-v-7d5ab9c7]{color:var(--color-text);font-weight:450}.tree-icon[data-v-7d5ab9c7]{flex:none;color:var(--muted)}.tree-name[data-v-7d5ab9c7]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-7d5ab9c7]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:var(--radius-xs);font-size:max(9px,calc(var(--ui-font-size) - 4px));font-weight:500;flex:none;user-select:none}.badge.modified[data-v-7d5ab9c7]{background:var(--color-warning-soft);color:var(--color-warning)}.badge.added[data-v-7d5ab9c7]{background:var(--color-success-soft);color:var(--color-success)}.badge.deleted[data-v-7d5ab9c7]{background:var(--color-danger-soft);color:var(--color-danger)}.badge.renamed[data-v-7d5ab9c7]{background:var(--color-done-soft);color:var(--color-done)}.badge.untracked[data-v-7d5ab9c7]{background:var(--color-success-soft);color:var(--color-success)}.badge.conflicted[data-v-7d5ab9c7]{background:color-mix(in srgb,var(--color-danger) 10%,var(--bg));color:var(--color-danger);font-size:max(9px,calc(var(--ui-font-size) - 5px))}.badge.ignored[data-v-7d5ab9c7]{background:var(--color-well);color:var(--faint)}.badge.clean[data-v-7d5ab9c7]{background:transparent;color:var(--faint)}.badge.unknown[data-v-7d5ab9c7]{background:var(--color-well);color:var(--muted)}.fpath[data-v-7d5ab9c7]{color:var(--color-text);font-size:var(--text-xs);font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left;min-width:0}.fpath[data-v-7d5ab9c7]:before,.fpath[data-v-7d5ab9c7]:after{content:"‎"}.empty-state[data-v-7d5ab9c7]{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:32px 20px;color:var(--muted);font-size:var(--ui-font-size);text-align:center;user-select:none}.empty-state-icon[data-v-7d5ab9c7]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--color-well);color:var(--color-text-muted)}.diff-head[data-v-7d5ab9c7]{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:.5px solid var(--line);background:var(--panel);flex:none;white-space:nowrap;overflow:hidden}.dv-lines-wrap[data-v-7d5ab9c7]{flex:1;min-height:0;overflow:auto}.diff-content-enter-active[data-v-7d5ab9c7],.diff-content-leave-active[data-v-7d5ab9c7]{transition:opacity var(--duration-base) var(--ease-out)}.diff-content-enter-from[data-v-7d5ab9c7],.diff-content-leave-to[data-v-7d5ab9c7]{opacity:0}@media(max-width:640px){.ch-head[data-v-7d5ab9c7]{padding:10px 14px}.ch-list[data-v-7d5ab9c7]{padding:2px 0 12px}.ch-row[data-v-7d5ab9c7]{min-height:44px;padding:8px 14px;gap:12px;font-size:var(--text-xs)}.ch-row[data-v-7d5ab9c7]:active{background:var(--panel2)}.badge[data-v-7d5ab9c7]{width:18px;height:18px}.fpath[data-v-7d5ab9c7]{font-size:var(--text-xs)}.tree-row[data-v-7d5ab9c7]{min-height:40px;padding:8px 14px}.diff-head[data-v-7d5ab9c7]{padding:8px 12px;gap:10px}.diff-path[data-v-7d5ab9c7]{font-size:var(--text-base)}}.changes-pane .empty-state[data-v-7d5ab9c7],.br-label[data-v-7d5ab9c7],.empty-head[data-v-7d5ab9c7]{font-family:var(--sans)}.ch-row[data-v-7d5ab9c7],.ct-row[data-v-7d5ab9c7]{margin:1px 6px;width:calc(100% - 12px);border-radius:var(--radius-md)}.changes-pane .badge[data-v-7d5ab9c7],.changed-tree .badge[data-v-7d5ab9c7]{border-radius:var(--radius-sm)}.change-count[data-v-7d5ab9c7]{font-family:var(--sans);border-radius:999px}.td[data-v-fdd0bc05]{display:flex;flex-direction:column;height:100%;min-height:0}.td-path[data-v-fdd0bc05]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--ui-c1) var(--font-mono);color:var(--color-text-muted)}.td-body[data-v-fdd0bc05]{flex:1;min-height:0;overflow:auto}.td-empty[data-v-fdd0bc05]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);height:100%;padding:var(--space-6);color:var(--color-text-muted);font-size:var(--text-sm);text-align:center}.mp[data-v-87452cd9]{display:flex;flex-direction:column;gap:var(--space-2);height:100%;min-height:0;padding-top:4px}.mp--sheet[data-v-87452cd9]{height:auto;padding-top:0}.mp--sheet .search-wrap[data-v-87452cd9],.mp--sheet .chip-strip[data-v-87452cd9]{margin:0 16px}.search-wrap[data-v-87452cd9]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.search-wrap[data-v-87452cd9] .ui-input{padding-right:30px}.search-clear[data-v-87452cd9]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-87452cd9]{visibility:visible;opacity:1}.search-clear[data-v-87452cd9]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-87452cd9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chip-strip[data-v-87452cd9]{display:flex;gap:var(--space-1);margin:0 22px;overflow-x:auto;scrollbar-width:none}.chip-strip[data-v-87452cd9]::-webkit-scrollbar{display:none}.chip[data-v-87452cd9]{flex:none;height:28px;padding:0 var(--space-3);border:none;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base);white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.chip[data-v-87452cd9]:hover{background:var(--color-hover);color:var(--color-text)}.chip.is-active[data-v-87452cd9]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.chip[data-v-87452cd9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-list[data-v-87452cd9]{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2)}.model-row[data-v-87452cd9]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;color:var(--color-text);min-width:0;transition:background var(--duration-fast) var(--ease-out)}.model-row[data-v-87452cd9]:hover,.model-row.is-selected[data-v-87452cd9]{background:var(--color-hover)}.model-row.is-current[data-v-87452cd9]{background:var(--color-selected)}.model-main[data-v-87452cd9]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-name[data-v-87452cd9]{font-family:var(--font-ui);font-size:var(--text-base);line-height:20px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row.is-current .model-name[data-v-87452cd9]{font-weight:var(--weight-medium)}.model-meta[data-v-87452cd9]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:18px;color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-side[data-v-87452cd9]{display:flex;align-items:center;gap:var(--space-1);flex:none}.model-check[data-v-87452cd9]{color:var(--color-text)}.model-star[data-v-87452cd9]{color:var(--color-text-faint);visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast)}.model-row:hover .model-star[data-v-87452cd9],.model-row.is-selected .model-star[data-v-87452cd9],.model-star.is-starred[data-v-87452cd9],.model-star[data-v-87452cd9]:focus-visible{visibility:visible;opacity:1}.model-star.is-starred[data-v-87452cd9]{color:var(--star)}@media(hover:none){.model-star[data-v-87452cd9]{visibility:visible;opacity:1}}.state-row[data-v-87452cd9]{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.state-row.unavail[data-v-87452cd9]{color:var(--color-warning)}.empty[data-v-87452cd9]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.footer-hint[data-v-87452cd9]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.hint-dot[data-v-87452cd9]{margin:0 var(--space-1)}@media(hover:none){.footer-hint[data-v-87452cd9]{display:none}}@media(prefers-reduced-motion:reduce){.chip[data-v-87452cd9],.model-row[data-v-87452cd9],.model-star[data-v-87452cd9],.search-clear[data-v-87452cd9]{transition:none}}.brand-logo[data-v-f04205a8]{display:block;flex:none;cursor:pointer;user-select:none;touch-action:manipulation}.nb-cards[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-2) 0 var(--space-4)}.center-body[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-8) 0 var(--space-4);text-align:center}.center-text[data-v-99a1a98a]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.success-text[data-v-99a1a98a]{color:var(--color-success)}.err-text[data-v-99a1a98a]{color:var(--color-danger)}.warn-text[data-v-99a1a98a]{color:var(--color-warning);font-size:var(--text-base)}.center-hint[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted)}.nb[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-4)}.nb-hero[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.nb-hero-icon[data-v-99a1a98a]{display:inline-flex;margin-bottom:var(--space-1)}.nb-hero-title[data-v-99a1a98a]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.nb-hero-hint[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.nb-manual[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.nb-manual-label[data-v-99a1a98a]{font-size:var(--text-xs);color:var(--color-text-faint)}.nb-copy-text[data-v-99a1a98a]{margin-left:var(--space-2)}.nb-copy-text.is-copied[data-v-99a1a98a]{color:var(--color-success);text-decoration:none}.nb-or[data-v-99a1a98a]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.nb-or[data-v-99a1a98a]:before,.nb-or[data-v-99a1a98a]:after{content:"";flex:1;height:1px;background:var(--color-line)}.nb-fallback[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-2)}.nb-fb-text[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.nb-fb-link[data-v-99a1a98a]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.nb-fb-link[data-v-99a1a98a]:hover{border-bottom-color:var(--color-accent)}.nb-code-row[data-v-99a1a98a]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.nb-code[data-v-99a1a98a]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.nb-copy.is-copied[data-v-99a1a98a]{color:var(--color-success);border-color:var(--color-success-bd)}.actions[data-v-99a1a98a]{display:flex;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-4)}@media(max-width:640px){.center-body[data-v-99a1a98a],.nb[data-v-99a1a98a]{overflow-y:auto;-webkit-overflow-scrolling:touch}.nb-code-row[data-v-99a1a98a],.actions[data-v-99a1a98a]{flex-wrap:wrap}.nb-code[data-v-99a1a98a]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}.nb-copy[data-v-99a1a98a]{min-height:34px}}.pf-form[data-v-3164ed08]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.pf-guard[data-v-3164ed08] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.pf-guard .msg[data-v-3164ed08]{flex:1}.pf-field[data-v-3164ed08]{display:flex;flex-direction:column;gap:6px}.pf-key-wrap[data-v-3164ed08]{position:relative}.pf-key-wrap[data-v-3164ed08] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.pf-key-eye[data-v-3164ed08]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.pf-field-label[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-3164ed08]{color:var(--color-danger)}.pf-models[data-v-3164ed08]{display:flex;flex-direction:column;gap:var(--space-2)}.pf-model-grid[data-v-3164ed08]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto;gap:var(--space-2);align-items:center}.pf-model-head span[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.pf-models-empty[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.pf-foot[data-v-3164ed08]{display:flex;align-items:center;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.pf-foot .spacer[data-v-3164ed08]{flex:1}.pf-confirm-msg[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-danger)}.pf-managed-note[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}@media(max-width:640px){.pf-model-grid[data-v-3164ed08]{grid-template-columns:minmax(0,1fr) auto}}.af[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.af-guard[data-v-9777a945] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.af-guard .msg[data-v-9777a945]{flex:1}.af-catalog[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-3)}.af-center[data-v-9777a945]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.af-error[data-v-9777a945]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}.af-list[data-v-9777a945]{display:flex;flex-direction:column;max-height:320px;overflow-y:auto;border:.5px solid var(--color-line);border-radius:var(--radius-md)}.af-list[data-v-9777a945]>*+*{border-top:.5px solid var(--color-line)}.af-entry[data-v-9777a945]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:var(--space-1) var(--space-3);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.af-entry[data-v-9777a945]:hover:not(:disabled){background:var(--color-hover)}.af-entry[data-v-9777a945]:disabled{cursor:not-allowed;opacity:.55}.af-entry-name[data-v-9777a945]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-medium)}.af-entry .grow[data-v-9777a945]{flex:1;min-width:0}.af-entry-count[data-v-9777a945],.af-entry-reason[data-v-9777a945]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.af-empty[data-v-9777a945]{padding:var(--space-4);text-align:center;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm)}.af-import[data-v-9777a945],.af-registry[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-4)}.af-hint[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-back[data-v-9777a945]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:flex-start;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);cursor:pointer;transition:color var(--duration-fast) var(--ease-out)}.af-back[data-v-9777a945]:hover{color:var(--color-text)}.af-field[data-v-9777a945]{display:flex;flex-direction:column;gap:6px}.af-label[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-9777a945]{color:var(--color-danger)}.af-key-wrap[data-v-9777a945]{position:relative}.af-key-wrap[data-v-9777a945] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.af-key-eye[data-v-9777a945]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.af-note[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-foot[data-v-9777a945]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.af-manual[data-v-9777a945] .pf-form{padding:0;border-top:none}.pp[data-v-193300c3]{display:flex;flex-direction:column}.pp-head[data-v-193300c3]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.pp-title[data-v-193300c3]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.pp-loading[data-v-193300c3]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.pp-group[data-v-193300c3]{overflow:hidden;border:.5px solid var(--color-line);border-radius:var(--radius-xl);background:var(--color-surface-raised)}.pp-group[data-v-193300c3]>*+*{border-top:.5px solid var(--color-line)}.pp-row[data-v-193300c3]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:40px;padding:var(--space-2) var(--space-4);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.pp-row[data-v-193300c3]:hover{background:var(--color-hover)}.pp-item.open>.pp-row[data-v-193300c3]{background:var(--color-surface-sunken)}.pp-row .grow[data-v-193300c3]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-2)}.pp-id[data-v-193300c3]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-count[data-v-193300c3]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.pp-chev[data-v-193300c3]{display:inline-flex;flex:none;color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.pp-item.open .pp-chev[data-v-193300c3]{transform:rotate(90deg)}.pp-add-row[data-v-193300c3]{gap:var(--space-2);color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.pp-acc[data-v-193300c3]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.pp-item.open>.pp-acc[data-v-193300c3]{grid-template-rows:1fr}.pp-acc-in[data-v-193300c3]{overflow:hidden;min-height:0}.pp-item.open .pp-acc-in[data-v-193300c3]{overflow:visible}.pp-item.flash>.pp-row[data-v-193300c3]{animation:pp-flash-193300c3 1.2s var(--ease-out)}@keyframes pp-flash-193300c3{0%{background:var(--color-accent-soft)}to{background:transparent}}.pp-empty[data-v-193300c3]{padding:var(--space-5) var(--space-4);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);text-align:center}.sec[data-v-5711dff8]{margin-bottom:var(--space-5)}.sec-title[data-v-5711dff8]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-5711dff8]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-5711dff8]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4)}.pu-main[data-v-5711dff8]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-5711dff8]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-5711dff8]{font-size:var(--text-xs);color:var(--color-text-faint)}.sec[data-v-f39cdded]{margin-bottom:var(--space-5)}.sec-title[data-v-f39cdded]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-f39cdded]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-f39cdded]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.pu-row[data-v-f39cdded]:first-child{border-top:none}.pu-state[data-v-f39cdded]{color:var(--color-text-muted);font-size:var(--text-sm)}.pu-error-text[data-v-f39cdded]{flex:1;min-width:0}.pu-empty[data-v-f39cdded]{color:var(--color-text-faint)}.pu-main[data-v-f39cdded]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-f39cdded]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-f39cdded]{font-size:var(--text-xs);color:var(--color-text-faint)}.pu-value[data-v-f39cdded]{flex:none;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.pu-value-sub[data-v-f39cdded]{font-weight:var(--weight-regular);color:var(--color-text-faint)}.pu-meter[data-v-f39cdded]{flex:none;width:120px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.pu-meter i[data-v-f39cdded]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent);transition:width var(--duration-base) var(--ease-out)}.pu-meter i.sev-warn[data-v-f39cdded]{background:var(--color-warning)}.pu-meter i.sev-danger[data-v-f39cdded]{background:var(--color-danger)}.sm-picker[data-v-0cf7dc4b]{position:relative;width:100%;font-family:var(--font-ui)}.sm-picker__trigger[data-v-0cf7dc4b]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:38px;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.sm-picker__trigger[data-v-0cf7dc4b]:focus-visible,.sm-picker.is-open .sm-picker__trigger[data-v-0cf7dc4b]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.sm-picker__value[data-v-0cf7dc4b]{min-width:0;flex:1;display:flex;align-items:center;overflow:hidden;white-space:nowrap}.sm-picker__value-text[data-v-0cf7dc4b]{min-width:0;overflow:hidden;text-overflow:ellipsis}.sm-picker__value.is-placeholder[data-v-0cf7dc4b]{color:var(--color-text-faint)}.sm-picker__chevron[data-v-0cf7dc4b]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.sm-picker.is-open .sm-picker__chevron[data-v-0cf7dc4b]{transform:rotate(180deg)}.sm-picker__menu[data-v-0cf7dc4b]{position:fixed;z-index:var(--z-modal-dropdown);width:252px;max-width:calc(100vw - 64px);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__models[data-v-0cf7dc4b]{max-height:280px;overflow-y:auto;padding:var(--space-1);border-radius:var(--radius-md)}.sm-picker__flyout[data-v-0cf7dc4b]{position:absolute;width:180px;max-height:280px;overflow-y:auto;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__flyout--right[data-v-0cf7dc4b]{left:calc(100% + var(--space-1))}.sm-picker__flyout--left[data-v-0cf7dc4b]{right:calc(100% + var(--space-1))}.sm-picker__group[data-v-0cf7dc4b]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.sm-picker__option[data-v-0cf7dc4b]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.sm-picker__option.is-active[data-v-0cf7dc4b]{background:var(--color-hover);color:var(--color-text-strong)}.sm-picker__option.is-muted[data-v-0cf7dc4b]{color:var(--color-text-muted)}.sm-picker__option-label[data-v-0cf7dc4b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-picker__check[data-v-0cf7dc4b]{flex:none;color:transparent}.sm-picker__option.is-selected .sm-picker__check[data-v-0cf7dc4b]{color:var(--color-accent)}.sm-picker__flyout-caret[data-v-0cf7dc4b]{flex:none;margin-left:auto;color:var(--color-text-faint)}.sd[data-v-955ddf4d]{display:grid;grid-template-columns:148px 1fr;grid-template-areas:"tabs region";min-height:0;height:100%;user-select:none}.sd[data-v-955ddf4d] :is(input,textarea,[contenteditable=true]){user-select:text}.settings-region[data-v-955ddf4d]{display:flex;min-width:0;min-height:0;flex-direction:column;grid-area:region}.settings-region-header[data-v-955ddf4d],.settings-tabs-header[data-v-955ddf4d]{display:flex;align-items:center;height:calc(var(--space-4) + var(--icon-button-sm) + var(--space-2));box-sizing:border-box}.settings-region-header[data-v-955ddf4d]{justify-content:flex-end;padding-right:var(--space-5)}.settings-tabs-header[data-v-955ddf4d]{padding-inline:var(--space-3)}.settings-dialog-title[data-v-955ddf4d]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text)}.settings-tabs[data-v-955ddf4d]{display:flex;flex-direction:column;width:148px;padding:0 var(--space-2) var(--space-2);gap:2px;overflow-y:auto;border-right:.5px solid var(--color-line);grid-area:tabs}.settings-tab-list[data-v-955ddf4d]{display:flex;flex-direction:column;gap:2px}.tab[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);text-align:left;padding:8px 10px;border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-ui-strong);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.tab[data-v-955ddf4d]:hover{background:var(--color-hover);color:var(--color-text-strong)}.tab.on[data-v-955ddf4d]{background:var(--color-hover);color:var(--color-text)}.tab[data-v-955ddf4d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.body[data-v-955ddf4d]{display:flex;flex-direction:column;overflow-y:auto;padding:var(--space-2) 32px var(--space-5);flex:1;min-width:0}.body[data-v-955ddf4d]::-webkit-scrollbar{width:4px}.body[data-v-955ddf4d]::-webkit-scrollbar-track{background:transparent}.body[data-v-955ddf4d]::-webkit-scrollbar-thumb{background:transparent;border-radius:var(--radius-full);transition:background var(--duration-base) var(--ease-out)}.body.scrolling[data-v-955ddf4d]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.body.scrolling[data-v-955ddf4d]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panel[data-v-955ddf4d]{display:block}.sec[data-v-955ddf4d]{padding:var(--space-4) 0}.panel>.sec[data-v-955ddf4d]:first-child{padding-top:0}.sec-head[data-v-955ddf4d]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.sec-title[data-v-955ddf4d]{margin:0 0 var(--space-3);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.notification-settings[data-v-955ddf4d]{user-select:none}.sec-head .sec-title[data-v-955ddf4d]{margin-bottom:0}.row[data-v-955ddf4d]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:38px;padding:var(--space-1) 0}.settings-group[data-v-955ddf4d]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.settings-group>.row[data-v-955ddf4d]{min-height:52px;padding:var(--space-4);border-top:.5px solid var(--color-line)}.settings-group>.row[data-v-955ddf4d]:first-child{border-top:none}.settings-group>.empty-config[data-v-955ddf4d]{padding:var(--space-3)}.account-row[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.account-avatar[data-v-955ddf4d]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.account-avatar img[data-v-955ddf4d]{width:100%;height:100%;border-radius:50%;object-fit:cover}.account-name-row[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.account-level[data-v-955ddf4d]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.account-meta[data-v-955ddf4d]{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.account-name[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-sub[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rlabel[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);font-weight:var(--weight-option-label);display:flex;flex-direction:column;gap:0}.rvalue[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-muted);max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rvalue.mono[data-v-955ddf4d]{font-family:var(--font-mono);font-size:var(--text-xs)}.rvalue-wrap[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-1);max-width:60%;min-width:0}.rvalue-wrap .rvalue[data-v-955ddf4d]{max-width:none}.sd-check[data-v-955ddf4d]{color:var(--color-success)}.hint[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.body[data-v-955ddf4d] .ui-seg,.body[data-v-955ddf4d] .ui-select__trigger,.body[data-v-955ddf4d] .ui-button,.archive-search[data-v-955ddf4d]{border-width:.5px}.select-wrap[data-v-955ddf4d]{min-width:220px;max-width:min(320px,50vw);flex:none}.empty-config[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:var(--space-1) 0}@media(max-width:640px){.sd[data-v-955ddf4d]{grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"tabs" "region"}.settings-tabs[data-v-955ddf4d]{width:auto;padding:0;overflow-x:visible;border-right:none;border-bottom:.5px solid var(--color-line)}.settings-tabs-header[data-v-955ddf4d]{padding:var(--space-3)}.settings-tab-list[data-v-955ddf4d]{flex-direction:row;gap:var(--space-1);overflow-x:auto;padding:0 var(--space-3) var(--space-2)}.settings-region-header[data-v-955ddf4d]{padding:var(--space-3)}.body[data-v-955ddf4d]{padding-inline:var(--space-3)}.tab[data-v-955ddf4d]{white-space:nowrap;flex:none}.row[data-v-955ddf4d]{align-items:flex-start;flex-direction:column}.settings-group[data-v-955ddf4d]{margin-inline:0}.select-wrap[data-v-955ddf4d]{width:100%;max-width:none}}.setting-card[data-v-955ddf4d]{border-radius:var(--radius-xl);overflow:hidden;background:var(--color-surface)}.panel-head[data-v-955ddf4d]{margin-bottom:var(--space-4)}.panel-title[data-v-955ddf4d]{margin:0 0 var(--space-2);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.panel-desc[data-v-955ddf4d]{margin:0;font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);max-width:560px}.archive-toolbar[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap}.archive-search[data-v-955ddf4d]{flex:1;min-width:200px;height:36px;display:flex;align-items:center;gap:var(--space-2);padding:0 var(--space-3);border-radius:var(--radius-md);border:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);background:var(--color-surface-overlay);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.archive-search[data-v-955ddf4d]:focus-within{border-color:var(--color-accent);box-shadow:var(--p-focus-ring);color:var(--color-text-muted)}.archive-search svg[data-v-955ddf4d]{width:15px;height:15px;flex:none}.archive-search input[data-v-955ddf4d]{width:100%;border:none;outline:none;background:transparent;font:inherit;color:var(--color-text)}.archive-list[data-v-955ddf4d]{display:flex;flex-direction:column;gap:var(--space-4)}.archive-card .setting-card[data-v-955ddf4d]{margin-bottom:0}.archive-workspace[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);margin:0 2px var(--space-2);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:var(--weight-medium)}.archive-workspace svg[data-v-955ddf4d]{width:16px;height:16px;color:var(--color-text-faint);flex:none}.archive-workspace .path[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-workspace .count[data-v-955ddf4d]{margin-left:auto;color:var(--color-text-faint);font-weight:var(--weight-medium);font-size:var(--text-xs);flex:none}.archive-row[data-v-955ddf4d]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3);align-items:center;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.archive-row[data-v-955ddf4d]:first-child{border-top:none}.archive-row[data-v-955ddf4d]:hover{background:var(--color-hover)}.archive-meta[data-v-955ddf4d]{min-width:0}.archive-name[data-v-955ddf4d]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-time[data-v-955ddf4d]{margin-top:2px;font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui)}.archive-draining[data-v-955ddf4d]{margin-bottom:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-accent-hover);font-size:var(--text-xs)}.archive-empty[data-v-955ddf4d]{padding:var(--space-6) var(--space-4);border-radius:var(--radius-xl);color:var(--color-text-faint);font-size:var(--text-xs);text-align:center;background:var(--color-surface)}@media(max-width:640px){.archive-toolbar[data-v-955ddf4d]{flex-direction:column;align-items:stretch}.archive-search[data-v-955ddf4d]{min-width:0}}[data-v-955ddf4d] .ui-dialog{width:min(980px,96vw)}[data-v-955ddf4d] .ui-dialog--fixed-height{height:min(780px,calc(var(--app-height, 100vh) - var(--space-8) * 2))}.aw[data-v-fea98be5]{padding-top:4px}.crumbbar[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.crumbs[data-v-fea98be5]{display:flex;align-items:center;flex-wrap:wrap;gap:1px;min-width:0;font-size:var(--text-sm)}.crumb-sep[data-v-fea98be5]{color:var(--color-text-muted)}.crumb[data-v-fea98be5]{background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:1px var(--space-1);border-radius:var(--radius-xs)}.crumb[data-v-fea98be5]:hover{color:var(--color-text);background:var(--color-hover)}.crumb.last[data-v-fea98be5]{color:var(--color-text);font-weight:var(--weight-medium)}.filterbar[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.filter-icon[data-v-fea98be5]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.filter-input[data-v-fea98be5]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-base);padding:var(--space-1) 0;border:none;background:none;color:var(--color-text);outline:none}.filter-input[data-v-fea98be5]::placeholder{color:var(--color-text-muted)}.search-rel[data-v-fea98be5]{color:var(--color-text)}.folder-list[data-v-fea98be5]{height:300px;overflow-y:auto;padding:var(--space-1) var(--space-2)}.fl-loading[data-v-fea98be5],.fl-empty[data-v-fea98be5]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-muted);font-size:var(--text-sm)}.folder-row[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);color:var(--color-text);text-align:left;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);transition:background var(--duration-fast) var(--ease-out)}.folder-row[data-v-fea98be5]:hover{background:var(--color-hover)}.dir-icon[data-v-fea98be5]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.folder-name[data-v-fea98be5]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text)}.paste-section[data-v-fea98be5]{padding:var(--space-3) 22px;border-top:.5px solid var(--color-line)}.paste-section.paste-only[data-v-fea98be5]{border-top:none}.paste-row[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2)}.paste-input-wrap[data-v-fea98be5]{flex:1;min-width:0}.add-error[data-v-fea98be5]{margin:0 22px var(--space-2);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-danger);background:var(--color-danger-soft);border:.5px solid var(--color-danger-bd);border-radius:var(--radius-sm)}.actions[data-v-fea98be5]{display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) 22px}.footer-hint[data-v-fea98be5]{padding:var(--space-2) var(--space-4);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint);border-top:.5px solid var(--color-line)}@media(max-width:640px){.folder-row[data-v-fea98be5]{min-height:44px}.crumbbar[data-v-fea98be5]{align-items:flex-start}.actions[data-v-fea98be5]{flex-wrap:wrap}}.confirm-dialog__message[data-v-aa5422da]{margin:0;font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.rows[data-v-340d1b31]{margin:0;padding:0}.row[data-v-340d1b31]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) 0;font-size:var(--text-base)}.row dt[data-v-340d1b31]{width:96px;flex:none;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:var(--text-xs)}.row dd[data-v-340d1b31]{margin:0;color:var(--color-text);font-weight:var(--weight-medium);display:flex;align-items:center;gap:var(--space-2);min-width:0}.row dd.plan-on[data-v-340d1b31],.row dd.swarm-on[data-v-340d1b31]{color:var(--color-accent)}.ctx-text[data-v-340d1b31]{flex:none}.bar[data-v-340d1b31]{width:80px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.bar i[data-v-340d1b31]{display:block;height:100%;background:var(--color-accent)}@media(max-width:640px){.rows[data-v-340d1b31]{overflow-y:auto;-webkit-overflow-scrolling:touch}.row[data-v-340d1b31]{align-items:flex-start;flex-direction:column;gap:var(--space-1);min-height:48px}.row dt[data-v-340d1b31]{width:auto}.row dd[data-v-340d1b31]{max-width:100%;flex-wrap:wrap}}.toasts[data-v-c225aa7a]{position:fixed;right:16px;bottom:84px;display:flex;flex-direction:column;gap:var(--space-2);z-index:var(--z-toast);width:min(440px,calc(100vw - 32px));max-height:56vh;overflow-y:auto}.toasts.below-overlay[data-v-c225aa7a]{z-index:var(--z-dropdown)}.toast-enter-active[data-v-c225aa7a],.toast-leave-active[data-v-c225aa7a]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.toast-enter-from[data-v-c225aa7a],.toast-leave-to[data-v-c225aa7a]{opacity:0;transform:translate(16px)}.toast-move[data-v-c225aa7a]{transition:transform var(--duration-base) var(--ease-out)}.actions[data-v-c225aa7a]{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.link[data-v-c225aa7a]{border:0;padding:0;background:none;color:var(--color-accent);cursor:pointer;font:inherit;font-size:var(--ui-font-size-xs)}.link[data-v-c225aa7a]:hover{text-decoration:underline}.details[data-v-c225aa7a]{display:grid;gap:5px;margin:8px 0 0;padding:8px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken)}.detail-row[data-v-c225aa7a]{display:grid;grid-template-columns:minmax(88px,.34fr) minmax(0,1fr);gap:8px}.detail-row dt[data-v-c225aa7a]{color:var(--color-text-muted)}.detail-row dd[data-v-c225aa7a]{margin:0;color:var(--color-text);overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:640px){.toasts[data-v-c225aa7a]{left:12px;right:12px;bottom:calc(var(--dock-h, 76px) + 8px);width:auto;max-height:50vh}.detail-row[data-v-c225aa7a]{grid-template-columns:1fr;gap:2px}}.topbar[data-v-58cf4cd3]{display:flex;align-items:center;height:calc(50px + var(--safe-top));flex:none;padding:var(--safe-top) max(12px,var(--safe-right)) 0 max(12px,var(--safe-left));border-bottom:.5px solid var(--color-line);background:var(--color-topbar-bg-frost);-webkit-backdrop-filter:var(--p-topbar-backdrop);backdrop-filter:var(--p-topbar-backdrop);font-family:var(--font-ui);-webkit-user-select:none;user-select:none}.tb-main[data-v-58cf4cd3]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;margin-right:4px;padding:0 6px 0 0;background:none;border:none;border-radius:var(--radius-md);font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--duration-fast) var(--ease-out)}.tb-main[data-v-58cf4cd3]:active{opacity:.55}.st[data-v-58cf4cd3]{flex:none;display:inline-flex;align-items:center}.tb-line[data-v-58cf4cd3]{flex:1;min-width:0;display:flex;align-items:baseline;gap:4px;font-size:max(16px,var(--ui-font-size-xl));line-height:1.25;white-space:nowrap}.tb-line .dir[data-v-58cf4cd3]{flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tb-line .dir.solo[data-v-58cf4cd3]{max-width:none;min-width:0;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .sl[data-v-58cf4cd3]{flex:none;color:var(--color-text-faint)}.tb-line .tt[data-v-58cf4cd3]{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .cv[data-v-58cf4cd3]{flex:none;align-self:center;color:var(--color-text-faint)}.unread-dot[data-v-58cf4cd3]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.actions[data-v-38e26691]{padding:0 var(--space-2) var(--space-2);border-bottom:.5px solid var(--color-line);margin-bottom:var(--space-1)}.newrow[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-family:var(--sans);font-weight:var(--weight-regular);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.newrow[data-v-38e26691]:hover{background:var(--color-hover)}.newrow[data-v-38e26691]:active{background:var(--color-surface-sunken);color:var(--color-text)}.view-tabs[data-v-38e26691]{padding:var(--space-1) var(--space-2) var(--space-2)}.view-tabs[data-v-38e26691] .ui-seg{display:flex;width:100%}.view-tabs[data-v-38e26691] .ui-seg__item{flex:1;justify-content:center}.mlist[data-v-38e26691]{--m-pad: 16px;--m-gutter: 15px;--m-gap: 8px;--m-indent: calc(var(--m-pad) + var(--m-gutter) + var(--m-gap));padding-bottom:var(--space-1)}.mempty[data-v-38e26691]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-faint);font-size:var(--ui-font-size)}.mempty.small[data-v-38e26691]{padding:10px 16px 12px var(--m-indent);text-align:left;font-size:var(--ui-font-size-xs)}.mgroup[data-v-38e26691]{padding-top:var(--space-2)}.mgh[data-v-38e26691]{display:flex;align-items:center;gap:var(--m-gap);min-height:44px;margin:0 var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.mgh[data-v-38e26691]:hover{background:var(--color-hover)}.mgh[data-v-38e26691]:active{background:var(--color-surface-sunken)}.mgh-folder[data-v-38e26691]{flex:none;color:var(--color-text-muted)}.mgh-name[data-v-38e26691]{flex:none;max-width:50%;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-path[data-v-38e26691]{flex:1;min-width:0;font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-more[data-v-38e26691]{margin:0 calc(-1 * var(--space-2))}.mgh-add[data-v-38e26691]{margin:0 calc(-1 * var(--space-2)) 0 0}.mgh-add[data-v-38e26691]:active,.mgh-more[data-v-38e26691]:active{color:var(--color-text);background:var(--color-hover)}.srow[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;margin:1px var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2)) 0 calc(var(--m-indent) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.srow[data-v-38e26691]:hover{background:var(--color-hover)}.srow[data-v-38e26691]:active{background:var(--color-surface-sunken)}.srow.cur[data-v-38e26691]{background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-bd)}.srow .t[data-v-38e26691]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.srow.cur .t[data-v-38e26691]{color:var(--color-accent-hover)}.srow .t.run[data-v-38e26691]{position:relative}.srow .t.run[data-v-38e26691]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-accent);animation:mRunPulse-38e26691 1.4s ease-in-out infinite}@keyframes mRunPulse-38e26691{0%,to{opacity:1}50%{opacity:.35}}.srow .t.aborted[data-v-38e26691]{position:relative}.srow .t.aborted[data-v-38e26691]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-danger)}.srow .time[data-v-38e26691]{flex:none;font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--color-text-faint)}.att[data-v-38e26691]{flex:none;font-family:var(--font-mono);font-size:max(9px,calc(var(--ui-font-size) - 4px));color:var(--color-text-on-accent);background:var(--color-warning);border-radius:var(--radius-full);padding:1px 7px}.srow .kb[data-v-38e26691]{flex:none;margin:0 calc(-1 * var(--space-2)) 0 0}.srow .kb[data-v-38e26691]:active{color:var(--color-text);background:var(--color-hover)}.srow-flat[data-v-38e26691]{min-height:52px}.srow-main[data-v-38e26691]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-main .t[data-v-38e26691]{flex:none}.srow-sub[data-v-38e26691]{font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kmenu[data-v-38e26691]{position:absolute;right:12px;top:44px;z-index:var(--z-dropdown);min-width:96px;overflow:hidden}.wsmenu[data-v-38e26691]{top:calc(100% - 4px);right:var(--m-pad);min-width:132px}.mshow-more-row[data-v-38e26691]{display:flex;align-items:center;padding-left:calc(var(--m-indent) - var(--space-3))}.mshow-more[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-1) var(--space-3);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.mshow-more[data-v-38e26691]:active{color:var(--color-accent-hover);background:var(--color-hover)}.mshow-more-sep[data-v-38e26691]{margin:0 var(--space-1);color:var(--color-text-faint);user-select:none}.group-title[data-v-65e9ffc0]{padding:var(--space-4) max(var(--space-4),var(--safe-right)) var(--space-2) max(var(--space-4),var(--safe-left));font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.group-title[data-v-65e9ffc0]:first-child{padding-top:0}.card[data-v-65e9ffc0]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));background:var(--color-surface);border-radius:var(--radius-xl);overflow:hidden}.card>.srow[data-v-65e9ffc0]{border-radius:0}.card>.srow+.srow[data-v-65e9ffc0]{border-top:.5px solid var(--color-line)}.srow[data-v-65e9ffc0]:disabled{opacity:.5;cursor:not-allowed}.srow[data-v-65e9ffc0]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:var(--space-3) var(--space-4);background:none;border:none;border-radius:var(--radius-md);cursor:pointer;text-align:left;color:var(--color-text)}.srow[data-v-65e9ffc0]:hover:not(.read-only){background:var(--color-hover)}.srow[data-v-65e9ffc0]:active:not(.read-only){background:var(--color-surface-sunken)}.srow.read-only[data-v-65e9ffc0]{cursor:default}.srow-main[data-v-65e9ffc0]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-label[data-v-65e9ffc0]{font-size:var(--text-base);color:var(--color-text)}.srow-sub[data-v-65e9ffc0]{font-size:var(--text-base);color:var(--color-text-faint);overflow-wrap:anywhere}.srow-val[data-v-65e9ffc0]{flex:none;font-family:var(--font-mono);font-size:var(--ui-font-size);font-weight:500;color:var(--color-accent-hover)}.srow-val.dim[data-v-65e9ffc0]{font-weight:400;color:var(--color-text-muted)}.cache-note[data-v-65e9ffc0]{padding:var(--space-1) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));font-size:var(--text-xs);color:var(--color-text-faint);line-height:1.4}.chev[data-v-65e9ffc0]{flex:none;color:var(--color-text-faint);font-size:17px;line-height:1}.toggle[data-v-65e9ffc0]{flex:none;width:44px;height:26px;border-radius:var(--radius-full);background:var(--color-line);position:relative;transition:background .18s}.toggle.on[data-v-65e9ffc0]{background:var(--color-accent)}.toggle[data-v-65e9ffc0]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:var(--radius-full);box-sizing:border-box;background:var(--color-bg);border:.5px solid var(--color-line);box-shadow:var(--shadow-xs);transition:left .18s}.toggle.on[data-v-65e9ffc0]:after{left:21px}.srow.pref[data-v-65e9ffc0]{flex-wrap:wrap;cursor:default}.srow.pref .srow-main[data-v-65e9ffc0]{flex:1 0 100%}.srow.acct.in .srow-label[data-v-65e9ffc0]{color:var(--color-accent-hover);font-weight:500}.srow.acct.out .srow-label[data-v-65e9ffc0]{color:var(--color-danger)}.acct-avatar[data-v-65e9ffc0]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.acct-avatar img[data-v-65e9ffc0]{width:100%;height:100%;border-radius:50%;object-fit:cover}.acct-name-row[data-v-65e9ffc0]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.acct-name-row .srow-label[data-v-65e9ffc0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acct-level[data-v-65e9ffc0]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.usage[data-v-65e9ffc0]{margin:var(--space-4) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.usage[data-v-65e9ffc0] .sec{margin-bottom:0}.ctx-meter[data-v-65e9ffc0]{flex:none;width:96px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.ctx-meter i[data-v-65e9ffc0]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent)}.srow[data-v-65e9ffc0],.srow-sub[data-v-65e9ffc0],.srow-val[data-v-65e9ffc0],.cache-note[data-v-65e9ffc0]{font-family:var(--sans)}.ls-cards[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-3)}.ls-card-icon[data-v-3875193b]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--color-text-muted)}.ls-card-text[data-v-3875193b]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ls-card-title[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-card-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-done-card[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-success-bd);border-radius:var(--radius-lg)}.ls-done-badge[data-v-3875193b]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-full);background:var(--color-success-soft);color:var(--color-success);flex:none}.ls-flow[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-center[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-6) 0 var(--space-2);text-align:center}.ls-center-text[data-v-3875193b]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.ls-success-text[data-v-3875193b]{color:var(--color-success)}.ls-err-text[data-v-3875193b]{color:var(--color-danger)}.ls-warn-text[data-v-3875193b]{color:var(--color-warning)}.ls-center-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted)}.ls-device[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-hero[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.ls-hero-icon[data-v-3875193b]{display:inline-flex;margin-bottom:var(--space-1)}.ls-hero-title[data-v-3875193b]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-hero-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.ls-manual[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.ls-manual-label[data-v-3875193b]{font-size:var(--text-xs);color:var(--color-text-faint)}.ls-copy-text[data-v-3875193b]{margin-left:var(--space-2)}.ls-copy-text.is-copied[data-v-3875193b]{color:var(--color-success);text-decoration:none}.ls-or[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.ls-or[data-v-3875193b]:before,.ls-or[data-v-3875193b]:after{content:"";flex:1;height:1px;background:var(--color-line)}.ls-fb-text[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-fb-link[data-v-3875193b]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.ls-fb-link[data-v-3875193b]:hover{border-bottom-color:var(--color-accent)}.ls-code-row[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.ls-code[data-v-3875193b]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.ls-copy.is-copied[data-v-3875193b]{color:var(--color-success);border-color:var(--color-success-bd)}.ls-actions[data-v-3875193b]{display:flex;justify-content:flex-end;gap:var(--space-3)}@media(max-width:640px){.ls-code-row[data-v-3875193b],.ls-actions[data-v-3875193b]{flex-wrap:wrap}.ls-code[data-v-3875193b]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}}.wizard[data-v-0535eac0]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;flex-direction:column;background:var(--color-bg);color:var(--color-text);overflow-y:auto;font-family:var(--font-ui)}.wiz-body[data-v-0535eac0]{flex:1;display:flex;flex-direction:column;align-items:center;width:min(560px,100%);margin:0 auto;padding:max(var(--space-8),12vh) var(--space-5) var(--space-6)}.wiz-step[data-v-0535eac0]{display:flex;flex-direction:column;align-items:center;width:100%;flex:1;min-height:0}.wiz-step-fill[data-v-0535eac0]{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;width:100%}.wiz-title[data-v-0535eac0]{margin:var(--space-4) 0 0;font-size:var(--text-2xl);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);text-align:center}.wiz-sub[data-v-0535eac0]{margin:var(--space-2) 0 var(--space-6);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted);text-align:center;max-width:460px}.pref-group[data-v-0535eac0]{width:100%;margin-bottom:var(--space-5)}.pref-label[data-v-0535eac0]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);margin-bottom:var(--space-2)}.opt-card[data-v-0535eac0]{display:flex;align-items:center;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.opt-card[data-v-0535eac0]:hover{border-color:var(--color-line-strong)}.opt-card[data-v-0535eac0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.opt-card.selected[data-v-0535eac0]{border-color:var(--color-accent);background:var(--color-accent-soft)}.opt-label[data-v-0535eac0]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.lang-cards[data-v-0535eac0]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3);width:100%}.lang-card[data-v-0535eac0]{gap:var(--space-3);padding:var(--space-4)}.opt-radio[data-v-0535eac0]{width:18px;height:18px;border-radius:var(--radius-full);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;display:inline-flex;align-items:center;justify-content:center;transition:border-color var(--duration-fast) var(--ease-out)}.opt-radio[data-v-0535eac0]:after{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:transparent;transition:background var(--duration-fast) var(--ease-out)}.opt-radio.on[data-v-0535eac0]{border-color:var(--color-accent)}.opt-radio.on[data-v-0535eac0]:after{background:var(--color-accent)}.theme-cards[data-v-0535eac0]{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3);width:100%}.theme-card[data-v-0535eac0]{flex-direction:column;gap:var(--space-3);padding:var(--space-3)}.tp[data-v-0535eac0]{display:flex;width:100%;aspect-ratio:16 / 10;border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.tp-light[data-v-0535eac0]{background:#fff}.tp-dark[data-v-0535eac0]{background:#0d1117}.tp-half[data-v-0535eac0]{flex:1;display:flex;min-width:0}.tp-half-light[data-v-0535eac0]{background:#fff}.tp-half-dark[data-v-0535eac0]{background:#0d1117}.tp-side[data-v-0535eac0]{width:30%;flex:none}.tp-light .tp-side[data-v-0535eac0],.tp-half-light .tp-side[data-v-0535eac0]{background:#0000000d}.tp-dark .tp-side[data-v-0535eac0],.tp-half-dark .tp-side[data-v-0535eac0]{background:#ffffff12}.tp-lines[data-v-0535eac0]{flex:1;display:flex;flex-direction:column;gap:6px;padding:14% 12%}.tp-lines span[data-v-0535eac0]{height:6px;border-radius:var(--radius-full)}.tp-lines span[data-v-0535eac0]:nth-child(1){width:62%}.tp-lines span[data-v-0535eac0]:nth-child(2){width:88%}.tp-lines span[data-v-0535eac0]:nth-child(3){width:44%}.tp-light .tp-lines span[data-v-0535eac0],.tp-half-light .tp-lines span[data-v-0535eac0]{background:#00000024}.tp-dark .tp-lines span[data-v-0535eac0],.tp-half-dark .tp-lines span[data-v-0535eac0]{background:#ffffff38}.wiz-foot[data-v-0535eac0]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:100%;margin-top:auto;padding:var(--space-8) 0 max(var(--space-8),8vh)}.wiz-foot-ghost[data-v-0535eac0]{display:flex;gap:var(--space-3);min-height:32px;align-items:center}.wiz-foot-ghost[data-v-0535eac0] .ui-button--ghost:not(:disabled):hover{background:transparent;color:var(--color-text)}.wiz-primary[data-v-0535eac0]{min-width:140px}@media(max-width:640px){.theme-cards[data-v-0535eac0]{gap:var(--space-2)}}.gload[data-v-ab85ede1]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;min-width:100vw;min-height:100dvh;z-index:var(--z-toast);display:flex;align-items:center;justify-content:center;background:var(--bg)}.gload-box[data-v-ab85ede1]{display:flex;flex-direction:column;align-items:center;gap:22px;transform:translateY(-6%)}.gload-logo[data-v-ab85ede1]{width:128px;height:auto;color:var(--color-text);animation:gload-pop-ab85ede1 .55s cubic-bezier(.22,1,.36,1) both}.gload-text[data-v-ab85ede1]{font-family:var(--mono);font-size:var(--text-base);color:var(--muted);letter-spacing:.04em}@keyframes gload-pop-ab85ede1{0%{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.gload-logo[data-v-ab85ede1]{animation:none}}.gload-text[data-v-ab85ede1]{font-family:var(--sans)}.kap-root[data-v-2b13888e]{height:100vh;display:flex;flex-direction:column;background:var(--bg);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 2.5px);color:var(--color-text)}.kap-head[data-v-2b13888e]{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:.5px solid var(--line);background:var(--panel)}.kap-count[data-v-2b13888e]{color:var(--muted)}.kap-head-actions[data-v-2b13888e]{margin-left:auto;display:flex;gap:6px}.kap-head-actions button[data-v-2b13888e],.kap-view-toggle button[data-v-2b13888e]{padding:3px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font:inherit;cursor:pointer}.kap-head-actions button[data-v-2b13888e]:hover,.kap-view-toggle button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-head-actions button.on[data-v-2b13888e],.kap-view-toggle button.on[data-v-2b13888e]{color:var(--color-accent-hover);border-color:var(--color-accent-bd);background:var(--color-accent-soft)}.kap-filters[data-v-2b13888e]{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 10px;border-bottom:.5px solid var(--line)}.kap-filters select[data-v-2b13888e],.kap-filters input[type=text][data-v-2b13888e]{padding:3px 6px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--color-text);font:inherit;min-width:0}.kap-filters input[type=text][data-v-2b13888e]{flex:1;min-width:120px}.kap-check[data-v-2b13888e]{display:inline-flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}.kap-view-toggle[data-v-2b13888e]{display:flex;gap:0}.kap-view-toggle button[data-v-2b13888e]:first-child{border-radius:6px 0 0 6px;border-right:none}.kap-view-toggle button[data-v-2b13888e]:last-child{border-radius:0 6px 6px 0}.kap-list[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto}.kap-empty[data-v-2b13888e]{padding:18px 12px;color:var(--muted);text-align:center}.kap-row[data-v-2b13888e]{display:flex;align-items:baseline;gap:7px;width:100%;padding:3px 10px;border:none;border-bottom:.5px solid var(--line);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.kap-row[data-v-2b13888e]:hover{background:var(--panel2)}.kap-row.expanded[data-v-2b13888e]{background:var(--color-accent-soft)}.kap-ts[data-v-2b13888e]{flex:none;color:var(--muted)}.kap-badge[data-v-2b13888e]{flex:none;padding:0 5px;border-radius:var(--radius-sm);font-size:max(9px,calc(var(--ui-font-size) - 4.5px));font-weight:500;line-height:1.7}.b-rest[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-accent-hover)}.b-in[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-success)}.b-out[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-warning)}.b-life[data-v-2b13888e]{background:var(--panel2);color:var(--muted)}.b-err[data-v-2b13888e]{background:var(--color-warning);color:var(--bg)}.kap-label[data-v-2b13888e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kap-detail[data-v-2b13888e]{border-bottom:.5px solid var(--line);background:var(--bg);padding:6px 10px 10px}.kap-detail-actions[data-v-2b13888e]{display:flex;justify-content:flex-end;margin-bottom:4px}.kap-detail-actions button[data-v-2b13888e]{padding:2px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font:inherit;cursor:pointer}.kap-detail-actions button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-detail pre[data-v-2b13888e]{margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:calc(var(--ui-font-size) - 3px);line-height:1.45}.kap-agg[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto;padding:8px 10px}.kap-agg h4[data-v-2b13888e]{margin:8px 0 4px;font-size:calc(var(--ui-font-size) - 2.5px);color:var(--muted)}.kap-agg table[data-v-2b13888e]{width:100%;border-collapse:collapse}.kap-agg th[data-v-2b13888e],.kap-agg td[data-v-2b13888e]{padding:3px 6px;border-bottom:.5px solid var(--line);text-align:left;vertical-align:top}.kap-agg th[data-v-2b13888e]{color:var(--muted);font-weight:500}.kap-agg .num[data-v-2b13888e]{text-align:right}.kap-agg .err[data-v-2b13888e]{color:var(--color-warning);font-weight:500}.kap-agg .mono[data-v-2b13888e]{word-break:break-all}.kap-fab[data-v-21de79fc]{position:fixed;right:10px;bottom:10px;z-index:var(--z-overlay);padding:5px 9px;border:.5px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 3px);font-weight:500;letter-spacing:.04em;cursor:pointer;opacity:.75}.kap-fab[data-v-21de79fc]:hover{opacity:1;color:var(--color-accent)}.server-auth-hint[data-v-331563ff]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.server-auth-hint code[data-v-331563ff]{padding:1px 5px;font-family:var(--font-mono);font-size:var(--text-xs);background:var(--color-surface-sunken);border-radius:var(--radius-xs)}.internal-build-tag[data-v-14c3d0e0]{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#f5a623;color:#3a2a00;font-size:11px;font-weight:700;letter-spacing:.01em;line-height:1.4;white-space:nowrap;user-select:none}.gload-fade-leave-active[data-v-d59cb496]{transition:opacity .28s ease}.gload-fade-leave-to[data-v-d59cb496]{opacity:0}.action-toast-enter-active[data-v-d59cb496],.action-toast-leave-active[data-v-d59cb496]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.action-toast-leave-active[data-v-d59cb496]{transition-duration:var(--duration-fast);pointer-events:none}.action-toast-enter-from[data-v-d59cb496],.action-toast-leave-to[data-v-d59cb496]{opacity:0;transform:translateY(-6px)}.app-shell[data-v-d59cb496]{position:fixed;top:var(--app-top, 0px);left:0;right:0;height:100vh;height:100dvh;height:var(--app-height, 100dvh);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.app[data-v-d59cb496]{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:auto 0 minmax(0,1fr) 0 auto;background:var(--bg);color:var(--color-text);overflow:hidden;box-sizing:border-box}.app[data-v-d59cb496]>*{min-height:0;min-width:0}.app>.side[data-v-d59cb496]{grid-column:1}.side-handle[data-v-d59cb496]{grid-column:2}.app:not(.mobile)>.con[data-v-d59cb496]{grid-column:3}.preview-handle[data-v-d59cb496]{grid-column:4}.sidebar-toggle-btn[data-v-d59cb496]{position:absolute;top:11px;left:16px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-d59cb496 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .sidebar-toggle-btn[data-v-d59cb496]{left:84px;animation:none}.new-chat-btn[data-v-d59cb496]{position:absolute;top:11px;left:42px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-d59cb496 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .new-chat-btn[data-v-d59cb496]{left:110px}@keyframes sidebar-toggle-btn-in-d59cb496{0%{opacity:0}}.internal-build-fab[data-v-d59cb496]{position:absolute;right:var(--space-3);bottom:var(--space-3);z-index:var(--z-sticky);pointer-events:none}.app.mobile[data-v-d59cb496]{grid-template-columns:1fr;grid-template-rows:auto 1fr}.global-preview[data-v-d59cb496]{--preview-w: 460px;grid-column:5;min-width:0;min-height:0;width:0;background:var(--bg);overflow:hidden}.global-preview.open[data-v-d59cb496]{width:var(--preview-w)}.global-preview[data-v-d59cb496]:not(.mobile)>*{width:var(--preview-w);height:100%;box-sizing:border-box;border-left:.5px solid var(--line)}.global-preview.mobile[data-v-d59cb496]{position:fixed;inset:0;z-index:var(--z-sticky);width:auto;transition:none;border-top:.5px solid var(--color-text)}:root{--panel-head-h: 48px;--panel-head-inset: calc((var(--panel-head-h) - var(--icon-button-sm)) / 2)}.app:not(.mobile) .chat-header{transition:padding-left .28s cubic-bezier(.4,0,.2,1)}.app.sidebar-collapsed .chat-header{padding-left:78px}.app.sidebar-collapsed.macos-desktop .chat-header{padding-left:146px}.app.sidebar-collapsed .session-admin .sa-head{padding-left:78px}.app.sidebar-collapsed.windows-desktop .session-admin .sa-head{padding-left:var(--space-6)}.app.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:146px}.app.fullscreen.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:78px}.app.macos-desktop .global-preview .ui-panel-header{-webkit-app-region:drag}.app.macos-desktop .global-preview .ui-panel-header button,.app.macos-desktop .global-preview .ui-panel-header input{-webkit-app-region:no-drag}.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .chat-header,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .side .ch,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .global-preview .ui-panel-header{-webkit-app-region:no-drag}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--dim: rgba(0, 0, 0, .6);--muted: rgba(0, 0, 0, .45);--faint: rgba(0, 0, 0, .3);--line: var(--color-line);--line2: var(--color-subtle);--canvas: #f9fbfc;--sh: 0 1px 3px rgba(28, 40, 66, .05), 0 6px 18px rgba(28, 40, 66, .06);--shc: 0 1px 2px rgba(28, 40, 66, .05);--panel: #f5f5f5;--panel2: rgba(0, 0, 0, .05);--bg: #ffffff;--blue: #1783ff;--blue2: #167ff7;--soft: #e8f3ff;--bd: rgba(23, 131, 255, .25);--logo: #1783ff;--bluebg: #e8f3ff;--blueln: rgba(23, 131, 255, .25);--ok: #0e7a38;--warn: #a9610a;--star: #eab308;--err: #c0392b;--hover: var(--color-hover);--r-xs: var(--radius-sm);--r-sm: var(--radius-md);--r-md: var(--radius-lg);--r-lg: var(--radius-xl);--ui-font-size: var(--ui-b2);--ui-font-size-sm: calc(var(--ui-font-size) - 1px);--ui-font-size-xs: calc(var(--ui-font-size) - 2px);--ui-font-size-lg: calc(var(--ui-font-size) + 1px);--ui-font-size-xl: calc(var(--ui-font-size) + 2px);--content-font-size: var(--md-b1);--code-font-size: calc(var(--content-font-size) - 2px);--mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--sans: var(--font-ui);color-scheme:light dark}html[data-color-scheme=light]{color-scheme:light}html[data-color-scheme=system]{color-scheme:light dark}html[data-color-scheme=dark]{color-scheme:dark;--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}}:root{--color-bg: #ffffff;--color-surface: #f5f5f5;--color-surface-raised: #ffffff;--color-surface-overlay: #ffffff;--color-surface-sunken: #f5f5f5;--color-inline-code-bg: rgba(0, 0, 0, .03);--color-well: #f5f5f5;--color-surface-deep: #f5f5f5;--color-media-alpha-bg-1: color-mix(in srgb, var(--color-bg) 52%, var(--color-text) 48%);--color-media-alpha-bg-2: color-mix(in srgb, var(--color-bg) 42%, var(--color-text) 58%);--media-alpha-canvas: conic-gradient( var(--color-media-alpha-bg-1) 25%, var(--color-media-alpha-bg-2) 0 50%, var(--color-media-alpha-bg-1) 0 75%, var(--color-media-alpha-bg-2) 0 ) 0 0 / 16px 16px;--color-text: rgba(0, 0, 0, .9);--color-text-strong: #000000;--color-text-muted: rgba(0, 0, 0, .6);--color-text-faint: rgba(0, 0, 0, .45);--color-text-on-accent: #ffffff;--color-line: rgba(0, 0, 0, .13);--color-subtle: rgba(0, 0, 0, .05);--color-line-strong: rgba(0, 0, 0, .15);--color-scrim: rgba(0, 0, 0, .4);--color-scrim-strong: rgba(0, 0, 0, .6);--color-text-on-scrim: #ffffff;--color-selected: rgba(0, 0, 0, .05);--color-selected-hover: rgba(0, 0, 0, .08);--color-hover: rgba(0, 0, 0, .03);--color-sidebar-bg: #f9fbfc;--color-user-bubble-bg: #f5f5f5;--color-accent: #1783ff;--color-accent-hover: #167ff7;--color-accent-soft: #e8f3ff;--color-accent-bd: rgba(23, 131, 255, .25);--color-success: #0e7a38;--color-success-soft: #e7f6ee;--color-success-bd: #bfe3cc;--color-warning: #a9610a;--color-warning-soft: #fbf1e0;--color-warning-bd: #f0d9b8;--color-danger: #c0392b;--color-danger-soft: #fbeaea;--color-danger-bd: #f0cccc;--color-diff-add-bg: rgba(22, 196, 86, .25);--color-diff-del-bg: rgba(255, 56, 73, .25);--color-done: #8250df;--color-done-soft: #f3e8ff;--color-done-bd: #e0ccff;--color-info: #1783ff;--color-term-magenta: #8250df;--color-term-cyan: #1b7c83;--color-term-black: #24292f;--space-05: 2px;--space-1: 4px;--space-1-5: 6px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-2xl: 20px;--radius-composer: 32px;--corner-shape-composer: superellipse(1.5);--radius-menu-row: var(--radius-sm);--corner-shape-menu: var(--corner-shape-composer);--menu-pad: 3.5px;--radius-menu-item: calc(var(--radius-lg) - var(--menu-pad) - var(--p-hairline));--radius-select-option: calc(var(--radius-md) - var(--space-1) - var(--p-hairline));--radius-dropdown-row: calc(var(--radius-lg) - var(--space-1) - var(--p-hairline));--color-menu-bg-frost: color-mix(in srgb, var(--color-bg) 70%, transparent);--color-topbar-bg-frost: color-mix(in srgb, var(--color-surface) 78%, transparent);--p-topbar-backdrop: saturate(150%) blur(12px);--color-menu-scrollbar: color-mix(in srgb, var(--color-text) 16%, transparent);--color-menu-scrollbar-hover: color-mix(in srgb, var(--color-text) 48%, transparent);--radius-full: 999px;--radius-window: 14px;--radius-window-chip: calc(var(--radius-window) - var(--space-2));--menu-scroll-fade: var(--space-5);--menu-item-padding-block: 5px;--menu-item-padding-inline: 9px;--menu-row-hug: var(--space-1-5);--menu-rows-seam: 1px;--menu-row-gap-icon: 7px;--menu-row-padding-block: var(--space-05);--menu-row-padding-inline: calc(var(--space-4) - var(--space-3) + var(--menu-row-hug));--menu-row-touch-padding-block: 11px;--menu-scrollbar-width: 3px;--menu-scrollbar-edge: calc(var(--menu-row-hug) + var(--p-hairline) - var(--menu-scrollbar-width));--menu-scrollbar-track-inset: calc(var(--radius-lg) - var(--space-1-5));--menu-scrollbar-thumb-min: 24px;--att-chip-pad-left: 5px;--wm-x-size: calc(var(--p-ic-sm) + var(--space-1));--wm-x-ring: var(--space-1-5);--z-base: 0;--z-raised: 1;--z-sticky: 100;--z-dropdown: 200;--z-overlay: 300;--z-modal: 400;--z-modal-dropdown: 500;--z-toast: 600;--z-tooltip: 650;--z-max: 9999;--shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);--shadow-menu: 0 6px 18px lch(0% 0 0 / .02), 0 3px 9px lch(0% 0 0 / .04), 0 1px 1px lch(0% 0 0 / .04);--color-menu-bg: rgba(255, 255, 255, .95);--p-menu-backdrop: blur(24px) saturate(1.8);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .05);--shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .08);--shadow-xl: 0 24px 64px rgba(16, 24, 40, .18), 0 8px 20px rgba(16, 24, 40, .1);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--duration-fast: .12s;--duration-base: .16s;--duration-slow: .26s;--duration-hover-intent: .25s;--duration-tooltip: .15s;--duration-spin: .7s;--duration-flash: 1.2s;--motion-panel-shift: 2px;--motion-panel-scale: .97;--color-composer-bg: #ffffff;--color-composer-line: rgba(0, 0, 0, .13);--color-composer-focus-line: rgba(0, 0, 0, .25);--color-send-bg: rgba(0, 0, 0, .9);--color-send-bg-hover: #252525;--color-send-icon: #ffffff;--color-stop-glyph: var(--color-danger);--color-send-bg-disabled: rgba(0, 0, 0, .05);--color-send-icon-disabled: rgba(0, 0, 0, .27);--opacity-send-disabled: 1;--shadow-send: 0 7px 16px -13px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .07);--shadow-send-hover: 0 8px 18px -13px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .09);--composer-send-icon-size: 28px;--font-ui-latin: "Schibsted Grotesk Variable", "Helvetica Neue", Arial;--font-ui: var(--font-ui-latin), "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-display: var(--font-ui);--font-kbd: "Schibsted Grotesk Variable", system-ui, sans-serif;--font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--text-2xs: calc(var(--ui-c1) - 1px);--text-xs: var(--ui-c1);--text-sm: calc(var(--ui-b2) - 1px);--text-base: var(--ui-b2);--text-lg: var(--ui-t2);--text-xl: var(--ui-t1);--text-2xl: var(--ui-t0);--leading-solid: 1;--leading-tight: 1.25;--leading-caption: 1.4;--leading-normal: 1.5;--leading-prose: 1.6;--leading-relaxed: 1.7;--weight-regular: 400;--weight-caption: 450;--weight-option-label: 475;--weight-medium: 500;--weight-ui-strong: 525;--weight-section-label: 600;--weight-semibold: 700;--ui-shift: calc(var(--base-font, 14px) - 14px);--md-shift: var(--ui-shift);--ui-t0: min(calc(20px + var(--ui-shift)), 24px);--ui-t1: min(calc(18px + var(--ui-shift)), 22px);--ui-t2: calc(16px + var(--ui-shift));--ui-b1: calc(15px + var(--ui-shift));--ui-b2: calc(14px + var(--ui-shift));--ui-c1: calc(12px + var(--ui-shift));--ui-c2: calc(10px + var(--ui-shift));--md-h1: calc(22px + var(--md-shift));--md-h2: calc(20px + var(--md-shift));--md-h3: calc(18px + var(--md-shift));--md-b1: calc(14px + var(--md-shift));--md-b2: calc(13px + var(--md-shift));--md-b3: calc(13px + var(--md-shift));--p-focus-ring-w: 3px;--p-focus-ring: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft);--p-focus-ring-strong: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft), 0 0 0 1px var(--color-accent);--p-selection: rgba(23, 131, 255, .2);--p-ic-sm: 14px;--p-ic-md: 16px;--p-ring-stroke: 1.5px;--p-ic-lg: 20px;--p-empty-ico: 28px;--p-hairline: .5px;--p-findring-w: 2px;--p-scroll-seam-h: 18px;--p-sidebar-seam-h: 13px;--icon-button-sm: 26px;--touch-target-min: 44px;--p-chip-num: 20px;--p-sidebar-w: 264px;--p-content-max: 760px;--p-content-wide: 920px;--p-table-max: 1040px;--p-table-cell-max: 700px;--p-findbar-w: 340px;--p-bubble-max: 78%;--p-dock-panel-h: 320px;--p-subagent-card-min: 180px;--p-slash-menu-h: 228px;--p-mention-menu-h: 296px;--p-mention-tip-w: 320px;--p-mention-tip-vmargin: var(--space-3);--p-mention-tip-spinner-lift: -.1em;--opacity-stale: .55;--p-add-menu-h: var(--p-slash-menu-h);--p-bp-sm: 640px;--p-bp-md: 980px}:root,html[data-font-scale=medium]{--base-font: 14px}html[data-font-scale=small]{--base-font: 12px}html[data-font-scale=large]{--base-font: 16px}html[data-font-scale=xlarge]{--base-font: 18px}.text-ui-t0{font-size:var(--ui-t0);line-height:round(calc(var(--ui-t0) * 1.4),1px)}.text-ui-t1{font-size:var(--ui-t1);line-height:round(calc(var(--ui-t1) * 1.44),1px)}.text-ui-t2{font-size:var(--ui-t2);line-height:round(calc(var(--ui-t2) * 1.5),1px)}.text-ui-b1{font-size:var(--ui-b1);line-height:round(calc(var(--ui-b1) * 1.47),1px)}.text-ui-b2{font-size:var(--ui-b2);line-height:round(calc(var(--ui-b2) * 1.42),1px)}.text-ui-c1{font-size:var(--ui-c1);line-height:round(calc(var(--ui-c1) * 1.5),1px)}.text-ui-c2{font-size:var(--ui-c2);line-height:round(calc(var(--ui-c2) * 1.4),1px)}.text-md-h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px)}.text-md-h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.text-md-h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.text-md-b1{font-size:var(--md-b1);line-height:round(calc(var(--md-b1) * 1.625),1px)}.text-md-b2{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px)}.text-md-b3{font-size:var(--md-b3);line-height:round(calc(var(--md-b3) * 1.57),1px)}html[data-color-scheme=dark]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-info: #1a88ff;--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-info: #1a88ff;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}}:root{--color-sidebar-tint: rgba(255, 255, 255, .2)}html[data-color-scheme=dark]{--color-sidebar-tint: rgba(0, 0, 0, .12)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-sidebar-tint: rgba(0, 0, 0, .12)}}:root{--color-search-match: #ffe066;--color-search-match-current: #ffc531}html[data-color-scheme=dark]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}}::highlight(kimi-transcript-search){background-color:var(--color-search-match)}::highlight(kimi-transcript-search-current){background-color:var(--color-search-match-current)}.mention-pill{display:inline-flex;align-items:baseline;gap:var(--space-05);color:var(--color-text-muted);font-weight:var(--weight-ui-strong);white-space:nowrap;text-decoration:none;vertical-align:baseline;padding-inline:var(--space-05);transition:color var(--duration-fast) var(--ease-out)}.mention-pill:hover{color:var(--color-text)}.mention-pill:hover .mention-pill-icon{color:inherit}.mention-pill.mention-file,.mention-pill.mention-skill{cursor:pointer}.mention-pill.mention-file:hover,.mention-pill.mention-skill:hover{text-decoration:underline}.mention-pill:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-sm)}.ProseMirror .mention-pill,.ProseMirror .mention-pill:hover{cursor:text;text-decoration:none}a.mention-folder{cursor:default}.mention-pill.mention-skill.mention-inert,.mention-pill.mention-skill.mention-inert:hover{cursor:default;text-decoration:none}.mention-pill-name{max-width:24em;min-width:0;overflow:hidden;text-overflow:ellipsis}.mention-pill-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);align-self:center;flex-shrink:0}.mention-pill-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;stroke:currentColor;stroke-width:var(--p-hairline)}.mention-pill.pill-in-selection{background:var(--p-selection);border-radius:var(--radius-sm)}.mention-tip{position:fixed;z-index:var(--z-tooltip);max-width:min(var(--p-mention-tip-w),calc(100vw - 2 * var(--p-mention-tip-vmargin)));padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);font-family:var(--font-ui);font-size:var(--text-xs);line-height:round(calc(var(--text-xs) * 1.5),1px);overflow-wrap:anywhere;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.mention-tip:not(.positioned){pointer-events:none}.mention-tip.positioned{opacity:1}.mention-tip-path{display:flex;align-items:flex-start;gap:var(--space-2)}.mention-tip-path-text{min-width:0}.mention-tip-sep{color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-base{font-weight:var(--weight-semibold)}.mention-tip-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.mention-tip-name{font-weight:var(--weight-semibold);overflow-wrap:anywhere}.mention-tip-open,.mention-tip-copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-05);border:none;border-radius:var(--radius-xs);background:transparent;color:color-mix(in srgb,currentColor 65%,transparent);cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-open:hover,.mention-tip-copy:hover{color:var(--color-bg);background:color-mix(in srgb,var(--color-bg) 14%,transparent)}.mention-tip-open:focus-visible,.mention-tip-copy:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-open svg,.mention-tip-copy svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-copy{margin-top:calc(0px - var(--space-05));margin-right:calc(var(--space-05) - var(--space-2))}.mention-tip-desc{margin-top:var(--space-05);color:color-mix(in srgb,currentColor 78%,transparent);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.mention-tip-spinner{display:inline-block;width:calc(var(--space-2) + var(--space-05));height:calc(var(--space-2) + var(--space-05));margin-left:var(--space-1);vertical-align:var(--p-mention-tip-spinner-lift);border-radius:50%;border:var(--p-ring-stroke) solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;animation:mention-tip-spin var(--duration-spin) linear infinite}@keyframes mention-tip-spin{to{transform:rotate(360deg)}}.mention-pill.mention-missing,.mention-pill.mention-missing:hover{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.mention-pill.mention-missing .mention-pill-icon{color:inherit}@font-face{font-family:Noto Sans SC Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/NotoSansSC_wght_-BkPpiACN.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk_wght_-DIzGrWVg.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:italic;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk-Italic_wght_-DjkBGo1z.woff2) format("woff2-variations")}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,blockquote,dl,dd,figure,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}b,strong{font-weight:var(--weight-medium)}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{margin:0;padding:0;font-family:inherit;font-size:100%;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background:transparent;background-image:none}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block}img,video{max-width:100%;height:auto}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1}table{border-collapse:collapse;border-color:inherit;text-indent:0}hr{height:0;color:inherit;border-top-width:1px}fieldset{margin:0;padding:0}legend{padding:0}dialog{padding:0}summary{display:list-item}[hidden]{display:none}@supports (interpolate-size: allow-keywords){:root{interpolate-size:allow-keywords}}:root{--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--dock-card-top-clearance: 72px;--question-card-body-min-h: 120px}.kw-icon{display:inline-block;flex:none;vertical-align:-.15em}code,pre,kbd,samp,tt{font-feature-settings:"liga" 0,"calt" 0,"ss01" 0;font-variant-ligatures:none}html,body,#app{height:100%;margin:0;background:var(--bg)}#app{position:fixed;inset:0}html,body{overflow:hidden}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--color-text) 12%,transparent) transparent}}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}*::-webkit-scrollbar-corner{background:transparent}body{font-family:var(--sans);color:var(--color-text);background:var(--bg);font-size:var(--ui-font-size);font-weight:400;line-height:1.6;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto;font-synthesis:none;text-size-adjust:100%;-webkit-hyphens:none;hyphens:none}@keyframes kimi-card-in{0%{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes kimi-check-in{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.ch-eyes{animation:kimi-eye-look 16s ease-in-out infinite}.ch-eye{transform-box:fill-box;transform-origin:center;animation:kimi-eye-blink 11s ease-in-out infinite}@keyframes kimi-eye-look{0%,42%{transform:translate(0)}47%,53%{transform:translate(2px)}58%,80%{transform:translate(0)}84%,90%{transform:translate(-2px)}95%,to{transform:translate(0)}}@keyframes kimi-eye-blink{0%,94%,to{transform:scaleY(1)}96.5%,98%{transform:scaleY(.12)}}@media(prefers-reduced-motion:reduce){.ch-eyes,.ch-eye{animation:none}}.blink-now .ch-eye{animation:kimi-eye-blink-once .24s ease-in-out}@keyframes kimi-eye-blink-once{0%,to{transform:scaleY(1)}50%{transform:scaleY(.1)}}.md .markdown-renderer img{min-width:0;min-height:0}.app{font-size:var(--ui-font-size)}.md,.md .markdown-renderer,.md .markdown-renderer p,.md .markdown-renderer li,.u-bub,.u-bub .u-text,.a-msg .msg,.ph{font-size:var(--content-font-size)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:var(--md-b2)}.md,.u-bub .u-text,.a-msg .msg{text-autospace:normal}.md .code-block-container pre,.md .markstream-pre,.md .code-block-container pre code,.md .diff-pre code,.md .markdown-renderer :not(pre)>code,.md .markdown-renderer .inline-code,.a-msg code{font-size:var(--md-b3)}.md .markdown-renderer :is(h1,h2,h3,h4) :not(pre)>code,.md .markdown-renderer :is(h1,h2,h3,h4) .inline-code{font-size:.9em}.queue-item,.queue-text,.ctx-num,.model-pill,.perm-pill,.mode-pill,.compact-chip,.qcard,.qtext,.qopt,.qbtn,.srow,.srow-val{font-size:var(--ui-font-size)}.qopt-desc,.srow-label{font-size:var(--ui-font-size-sm)}.code-block-header,.code-block-header *,.diff-lang,.queue-label,.qopt-key,.qstep,.srow-sub{font-size:var(--ui-font-size-xs)}@media(max-width:640px){:root{--content-font-size: calc(var(--md-b1) + 2px)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:calc(var(--md-b2) + 2px)}}:root{--anim-rive-spin: .4167s;--anim-leftbar: .5333s;--anim-leftbar-shrink: .2s}#bar-divider{transform-box:view-box;transform-origin:9.3px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #bar-divider,button:hover #bar-divider{transform:translate(-1.5px) scaleY(.5)}#bar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(63.95833%,50.625%) scale(0)}svg:hover #bar-arrow,button:hover #bar-arrow{animation:leftbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}}#bar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(52.08333%,50.625%) scale(0)}svg:hover #bar-arrow-expand,button:hover #bar-arrow-expand{animation:leftbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow-expand{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(1);opacity:1}}#p1{transform-box:view-box;transform-origin:0 0}svg:hover #p1,button:hover #p1{animation:nc-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes nc-plus-spin{0%{transform:translate(11.5px,11.5px)}8%{transform:translate(11.501px,11.48px) rotate(1.1795deg) scale(1.02022)}12%{transform:translate(11.511px,11.46px) rotate(2.8374deg) scale(1.03026)}20%{transform:translate(11.562px,11.401px) rotate(8.8167deg) scale(1.05041)}24%{transform:translate(11.608px,11.361px) rotate(13.4726deg) scale(1.06017)}32%{transform:translate(11.751px,11.278px) rotate(25.9719deg) scale(1.08008)}48%{transform:translate(12.149px,11.222px) rotate(55.8418deg) scale(1.12025)}52%{transform:translate(12.235px,11.236px) rotate(62.0737deg) scale(1.12953)}60%{transform:translate(12.371px,11.276px) rotate(72.1167deg) scale(1.14954)}68%{transform:translate(12.446px,11.346px) rotate(79.3018deg) scale(1.12048)}76%{transform:translate(12.488px,11.403px) rotate(84.2633deg) scale(1.09046)}88%{transform:translate(12.509px,11.464px) rotate(88.52deg) scale(1.04535)}to{transform:translate(12.5px,11.5px) rotate(90deg)}}#af-p1{transform-box:view-box;transform-origin:18.4px 16.3px}svg:hover #af-p1,button:hover #af-p1{animation:folder-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes folder-plus-spin{0%{transform:none}8%{transform:rotate(1.1795deg) scale(1.02022)}12%{transform:rotate(2.8374deg) scale(1.03026)}20%{transform:rotate(8.8167deg) scale(1.05041)}24%{transform:rotate(13.4726deg) scale(1.06017)}32%{transform:rotate(25.9719deg) scale(1.08008)}48%{transform:rotate(55.8418deg) scale(1.12025)}52%{transform:rotate(62.0737deg) scale(1.12953)}60%{transform:rotate(72.1167deg) scale(1.14954)}68%{transform:rotate(79.3018deg) scale(1.12048)}76%{transform:rotate(84.2633deg) scale(1.09046)}88%{transform:rotate(88.52deg) scale(1.04535)}to{transform:rotate(90deg)}} diff --git a/apps/kimi-code/dist-web/assets/index-DwG2KKf1.js b/apps/kimi-code/dist-web/assets/index-BgQUGEIh.js similarity index 99% rename from apps/kimi-code/dist-web/assets/index-DwG2KKf1.js rename to apps/kimi-code/dist-web/assets/index-BgQUGEIh.js index abd97bb1ce5..5f3806d5ff5 100644 --- a/apps/kimi-code/dist-web/assets/index-DwG2KKf1.js +++ b/apps/kimi-code/dist-web/assets/index-BgQUGEIh.js @@ -1,4 +1,4 @@ -import{t as pe,b as Ln,n as Or,c as Nr,a as Fr,d as zr,s as Ur,g as Vr,e as Br}from"./index-O6aQX5k9.js";import{f as Ld}from"./index-O6aQX5k9.js";import{bR as k}from"./index-D1h84VfZ.js";const Ei="diffs-container",$r=(()=>{try{return!1}catch{return!1}})(),Wr=/(?=^From [a-f0-9]+ .+$)/m,Ti=/(?=^diff --git)/gm,Ul=/(?=^---\s+\S)/gm,Vl=/(?=^@@ )/gm,Gr=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,jr=/(?<=\n)/,qr=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Kr=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Yr=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,Xr=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Bl=/^<{7,}(?:\s.*)?$/,$l=/^\|{7,}(?:\s.*)?$/,Wl=/^={7,}$/,Gl=/^>{7,}(?:\s.*)?$/,on="header-prefix",sn="header-metadata",an="header-custom",_={dark:"pierre-dark",light:"pierre-light"},Ii="data-theme-css",Ri="data-unsafe-css",Qr="data-core-css",Jr="data-diffs-scrollbar-measure",Ai="--diffs-scrollbar-gutter-measured",jl=1,Zr=1e5,ln={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},_e={...ln,hunkLineCount:1},eo={paddingTop:8,paddingBottom:8,gap:8},to={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},no=Object.freeze({fromStart:0,fromEnd:0}),Ae={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Hi={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Ie=new Set;let Re=null;function Y(e){Ie.add(e),Re??=requestAnimationFrame(Mi)}function io(e){Ie.delete(e),Ie.size===0&&Re!=null&&(cancelAnimationFrame(Re),Re=null)}function Mi(e){const t=new Set(Ie);Ie.clear();for(const n of t)try{n(e)}catch(i){console.error(i)}Ie.size>0?Re=requestAnimationFrame(Mi):Re=null}function He(e,t,n){if(e===t||e==null||t==null)return e===t;const i=new Set(n),r=Object.keys(e),o=new Set(Object.keys(t));for(const s of r)if(o.delete(s),!i.has(s)&&(!(s in t)||e[s]!==t[s]))return!1;for(const s of Array.from(o))if(!i.has(s))return!1;return!0}function De(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function dn(e,t){const n=e?.theme??_,i=t?.theme??_,r=kn(e),o=kn(t);return De(n,i)&&He(e,t,["theme","parseDiffOptions"])&&He(r,o)}function kn(e){if(e!=null&&"parseDiffOptions"in e)return e.parseDiffOptions}function Wt(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Gt({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:i=!1,fitPerfectlyOverscroll:r=0,overscrollSize:o}){const s=n+o*2,l=i?n+r*2:s;if(t=Math.max(t,l),s>=t||i){const h=Math.max(e-r,0),c=Math.min(e+l,t);return{top:h,bottom:Math.max(c,h)}}let a=e+n/2-s/2,d=a+s;return a<0&&(a=0),d>t&&(d=t),a=Math.floor(Math.max(a,0)),{top:a,bottom:Math.ceil(Math.max(Math.min(d,t),a))}}function ro(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function W(e){return{type:"text",value:e}}function A({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function pt({name:e,width:t=16,height:n=16,properties:i}){return A({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[A({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function oo(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function Ee(e){return A({tagName:"div",properties:{"data-gutter":""},children:e})}function Di(e,t,n,i={}){return A({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[A({tagName:"span",properties:{"data-line-number-content":""},children:[W(`${t}`)]})]:void 0})}function j(e,t,n){return A({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function so(){return A({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[pt({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function ao(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}var Pi=class{mode;options;hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();const{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){const n=!(e===this.selectedRange||Wt(e??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{const e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode==="diff"&&e.type==="diff-line")return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode==="file"&&e.type==="line")return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{const{onHunkExpand:t,onLineClick:n,onLineNumberClick:i,onTokenClick:r,onMergeConflictActionClick:o}=this.options;t==null&&n==null&&i==null&&o==null&&r==null||this.options.onGutterUtilityClick!=null&&et(e.composedPath())||(he(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",e),this.handlePointerEvent({eventType:"click",event:e}))};handlePointerMove=e=>{if(e.pointerType!=="mouse")return;const{lineHoverHighlight:t="disabled",onLineEnter:n,onLineLeave:i,onTokenEnter:r,onTokenLeave:o,enableGutterUtility:s=!1}=this.options;t==="disabled"&&!s&&n==null&&i==null&&r==null&&o==null||(he(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",e),this.handlePointerEvent({eventType:"move",event:e}))};handlePointerLeave=e=>{const{__debugPointerEvents:t}=this.options;if(he(t,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){he(t,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){const{__debugPointerEvents:n}=this.options,i=t.composedPath();he(n,e,"FileDiff.DEBUG.handlePointerEvent:",{eventType:e,composedPath:i});const r=this.resolvePointerTarget(i);he(n,e,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",r);const{onLineClick:o,onLineNumberClick:s,onLineEnter:l,onLineLeave:a,onTokenClick:d,onTokenEnter:h,onTokenLeave:c,onHunkExpand:u,onMergeConflictActionClick:f}=this.options;switch(e){case"move":{const g=Tt(r)&&this.hoveredLine?.lineElement===r.lineElement;ut(r)&&this.hoveredToken?.tokenElement===r.tokenElement||(this.hoveredToken!=null&&(c?.(this.hoveredToken,t),this.clearHoveredToken()),ut(r)&&(this.setHoveredToken(this.toTokenEventBaseProps(r)),h?.(this.hoveredToken,t))),g||(this.hoveredLine!=null&&(a?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),Tt(r)?(this.setHoveredLine(this.toEventBaseProps(r)),this.placeUtility(),l?.({...this.hoveredLine,event:t})):this.placeUtility());break}case"click":{if(r==null)break;if(co(r)&&f!=null){f(r);break}if(ho(r)&&u!=null){u(r.hunkIndex,r.all||t.shiftKey?"both":r.direction,r.all||t.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!Tt(r))break;ut(r)&&d!=null&&d(this.toTokenEventBaseProps(r),t);const g=this.toEventBaseProps(r);s!=null&&r.numberColumn?s({...g,event:t}):o?.({...g,event:t});break}}}syncPointerListeners(e){const{__debugPointerEvents:t,lineHoverHighlight:n="disabled",onLineClick:i,onLineNumberClick:r,onLineEnter:o,onLineLeave:s,onTokenClick:l,onTokenEnter:a,onTokenLeave:d,onHunkExpand:h,onMergeConflictActionClick:c,enableGutterUtility:u=!1,enableLineSelection:f=!1,onGutterUtilityClick:g}=this.options,b=g!=null,y=n!=="disabled"||i!=null||r!=null||o!=null||s!=null||l!=null||a!=null||d!=null||h!=null||c!=null||u||f||b;y&&!this.hasPointerListeners?(e.addEventListener("click",this.handlePointerClick),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,he(t,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const C=[];return(t==="both"||t==="click")&&(i!=null&&C.push("onLineClick"),r!=null&&C.push("onLineNumberClick"),h!=null&&C.push("expandable hunk separators"),c!=null&&C.push("merge conflict actions")),C})()),he(t,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),he(t,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!y&&this.hasPointerListeners&&(e.removeEventListener("click",this.handlePointerClick),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);const m=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",p=this.pointerSession.mode==="gutterSelecting";(!f&&m||!b&&p)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;const{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,i=e!=null,r=t!=null||n;i&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!i&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),r&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!r&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType==="mouse"&&e.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const t=e.composedPath();et(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!=="mouse"&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){const{enableLineSelection:t=!1}=this.options;if(!t)return;const n=this.resolveSelectionInfo(e,{source:"event-path",requireNumberColumn:!0});if(n==null)return;const{pre:i}=this;if(i==null)return;const{lineNumber:r,eventSide:o,lineIndex:s}=n;if(e.shiftKey&&this.selectedRange!=null){const l=this.getIndexesFromSelection(this.selectedRange,i.getAttribute("data-diff-type")==="split");if(l==null)return;const a=l.start<=l.end?s>=l.start:s<=l.end;this.selectionAnchor={lineNumber:a?this.selectedRange.start:this.selectedRange.end,side:a?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(r,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===r&&this.selectedRange?.end===r){const l={lineNumber:r,side:o};this.selectionAnchor=l,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:e.pointerId,anchor:l,pending:l},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:r,side:o},this.updateSelection(r,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){const{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;const i=this.currentSelectionEnds(),r=i?.bottom??this.resolveSelectionPoint(e,{source:"event-path",excludeUtility:!1}),o=i?.top??r;r==null||o==null||(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:e.pointerId,anchor:o,current:r},t&&(this.selectionAnchor={lineNumber:o.lineNumber,side:o.side},this.updateSelection(r.lineNumber,r.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{const{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionPoint(e,{source:"coordinates-first"});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;const i={lineNumber:n.lineNumber,side:n.eventSide};if(ao(this.pointerSession.pending,i))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{const{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const i=this.resolveSelectionPoint(e,{source:"coordinates-first"});i!=null&&(this.pointerSession.current=i,t&&this.updateSelection(i.lineNumber,i.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case"selecting":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(e){const{lineHoverHighlight:t="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!=="disabled"&&((t==="both"||t==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(t==="both"||t==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const t=document.createElement("div");t.innerHTML=pe(so());const n=t.firstElementChild;if(!(n instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;const t=this.resolvePointerTarget(e);Ve(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){const e=this.currentSelectionEnds();if(e==null)return!1;const t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){const e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){const t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},i=this.selectionPointRowIndex(t),r=this.selectionPointRowIndex(n);if(!(i==null||r==null))return i>r?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){const t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;const t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;const n=this.mode==="diff"?`${t[0]},${t[1]}`:`${t[0]}`,i=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(const r of i){if(!(r instanceof HTMLElement))continue;const o=this.resolvePointerTarget(Ze(r));if(Ve(o)&&!(this.mode==="diff"&&e.side!=null&&o.side!==e.side))return o}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}selectionInfoFromPath(e,t){const n=this.resolvePointerTarget(e);if(Ve(n)&&!(t&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode==="diff"?n.side:void 0}}resolveSelectionInfo(e,t){const n=this.resolveSelectionPath(e,t);return n!=null?this.selectionInfoFromPath(n,t.requireNumberColumn):void 0}selectionPointFromPath(e){const t=this.resolvePointerTarget(e);if(Ve(t))return{lineNumber:t.lineNumber,side:this.mode==="diff"?t.side:void 0}}resolveSelectionPoint(e,t){const n=this.resolveSelectionPath(e,t);return n!=null?this.selectionPointFromPath(n):void 0}resolveSelectionPath(e,t){const n=t.excludeUtility!==!1;switch(t.source){case"event-path":return this.pathFromEventPath(e.composedPath(),n);case"coordinates-first":{const i=this.pathFromCoordinates(e,n);return i!==void 0?i??void 0:this.pathFromEventPath(e.composedPath(),n)}}}pathFromCoordinates(e,t){const n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&et(e))){for(const n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){const n=Ze(e);if(t&&et(n))return;const i=fo(e);return i!=null?Ze(i):this.pathFromAnnotationSlot(e)}pathFromAnnotationSlot(e){const t=go(po(e));if(t==null)return;const n=this.targetForSelectionPoint(t);return n!=null?Ze(n.lineElement):void 0}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;const t=this.pre?.getRootNode(),n=En(t)?t:En(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){const{getLineIndex:n}=this.options;return n!=null?n(e,t):[e-1,e-1]}getCurrentSelectionRange(){return this.proposedSelectedRange!==void 0?this.proposedSelectedRange:this.selectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){const i=this.getCurrentSelectionRange();let r;if(e==null)r=null;else{const o=this.selectionAnchor?.side??t,s=this.selectionAnchor?.lineNumber??e;r=this.buildSelectionRange(s,e,o,t)}Wt(i??void 0,r??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=r:(this.selectedRange=r,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;const n=this.getLineIndex(e.start,e.side),i=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&i!=null?{start:t?n[1]:n[0],end:t?i[1]:i[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;const e=this.pre.querySelectorAll("[data-selected-line]");for(const l of e)l.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;const{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const n=this.pre.getAttribute("data-diff-type")==="split",i=this.getIndexesFromSelection(this.selectedRange,n);if(i==null)throw console.error({rowRange:i,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");const r=i.start===i.end,o=Math.min(i.start,i.end),s=Math.max(i.start,i.end);for(const l of t){const[a,d]=l.children,h=d.children.length;if(h!==a.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let c=0;cs)break;if(g==null||gNumber.parseInt(i,10)).filter(i=>!Number.isNaN(i));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function Ke({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:i,onLineClick:r,onLineEnter:o,onLineLeave:s,onLineNumberClick:l,onTokenClick:a,onTokenEnter:d,onTokenLeave:h,renderGutterUtility:c,__debugPointerEvents:u,enableLineSelection:f,controlledSelection:g,onLineSelected:b,onLineSelectionStart:y,onLineSelectionChange:m,onLineSelectionEnd:p},C,v,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:lo({enableGutterUtility:t,renderGutterUtility:c,onGutterUtilityClick:i}),usesCustomGutterUtility:c!=null,lineHoverHighlight:n,onGutterUtilityClick:i,onHunkExpand:C,onMergeConflictActionClick:x,onLineClick:r,onLineEnter:o,onLineLeave:s,onLineNumberClick:l,onTokenClick:a,onTokenEnter:d,onTokenLeave:h,__debugPointerEvents:u,enableLineSelection:f,controlledSelection:g,onLineSelected:b,onLineSelectionStart:y,onLineSelectionChange:m,onLineSelectionEnd:p,getLineIndex:v}}function lo({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw new Error("Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.");return e??!1}function Ve(e){return e!=null&&"kind"in e&&e.kind==="line"}function ut(e){return e!=null&&"kind"in e&&e.kind==="token"}function Tt(e){return Ve(e)||ut(e)}function ho(e){return"type"in e&&e.type==="line-info"}function co(e){return"kind"in e&&e.kind==="merge-conflict-action"}function uo(e){return e==="current"||e==="incoming"||e==="both"}function wn(e,t){const n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function Ze(e){const t=[];let n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function fo(e){const t=e.closest("[data-line], [data-column-number]");if(t instanceof HTMLElement)return t;const n=e.closest('[data-line-annotation], [data-gutter-buffer="annotation"]');if(!(n instanceof HTMLElement))return;const i=n.previousElementSibling;return i instanceof HTMLElement&&(i.hasAttribute("data-line")||i.hasAttribute("data-column-number"))?i:void 0}function po(e){const t=e.closest('[slot^="annotation-"]');if(t instanceof HTMLElement)return t.getAttribute("slot")??void 0;if(e instanceof HTMLElement){const n=e.getAttribute("name")??void 0;return n!=null&&n.startsWith("annotation-")?n:void 0}}function go(e){if(e==null)return;const t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;const n=Number.parseInt(t[2],10);if(!(!Number.isFinite(n)||n<=0))return{lineNumber:n,side:t[1]}}function En(e){return e!=null&&typeof e.elementFromPoint=="function"}function Tn(e,t){switch(e){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return t.hasAttribute("data-deletions")?"deletions":"additions"}}function In(e){const t=e.getAttribute("data-line-type");if(t!=null)switch(t){case"change-deletion":case"change-addition":case"context":case"context-expanded":return t;default:return}}function et(e){for(const t of e)if(t instanceof HTMLElement&&(t.hasAttribute("data-utility-button")||t.hasAttribute("data-gutter-utility-slot")||t.getAttribute("slot")==="gutter-utility-slot"||t.getAttribute("name")==="gutter-utility-slot"))return!0;return!1}function he(e="none",t,...n){switch(e){case"none":return;case"both":break;case"click":if(t!=="click")return;break;case"move":if(t!=="move")return;break}console.log(...n)}var _i=class ue{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){const t=ue.resizeObserver??new ResizeObserver(ue.handleSharedResizeEntries);return ue.resizeObserver=t,t}static handleSharedResizeEntries(t){const n=new Map;for(const i of t){const r=ue.managersByElement.get(i.target);if(r==null)continue;const o=n.get(r);o==null?n.set(r,[i]):o.push(i)}for(const[i,r]of n)i.handleResizeEntries(r)}observedNodes=new Map;setup(t,n){const i=new Set;let r=0;const o=new Map(this.observedNodes);this.observedNodes.clear();for(const s of t.children){if(r===2)break;const l=(()=>{if(s instanceof HTMLElement&&s.tagName==="CODE")return s})();if(l==null)continue;r++;let a=o.get(l);if(a!=null&&a.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let d=l.firstElementChild;d instanceof HTMLElement||(d=null),a!=null?(this.observedNodes.set(l,a),o.delete(l),a.numberElement!==d?(a.numberElement!=null&&(this.unobserve(a.numberElement),o.delete(a.numberElement)),d!=null&&(this.observe(d),o.delete(d),this.observedNodes.set(d,a)),a.numberElement=d,a.numberWidth=0):a.numberElement!=null?(o.delete(a.numberElement),this.observedNodes.set(a.numberElement,a)):a.numberWidth=0):(a={type:"code",codeElement:l,numberElement:d,codeWidth:"auto",numberWidth:0},this.observedNodes.set(l,a),this.observe(l),d!=null&&(this.observedNodes.set(d,a),this.observe(d)))}if(r>1&&!n){const s=t.querySelectorAll('[data-line-annotation*=","]'),l=new Map;for(const a of s){if(!(a instanceof HTMLElement))continue;const d=a.getAttribute("data-line-annotation")??"";if(!/^-?\d+,-?\d+$/.test(d)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:d,element:a});continue}let h=l.get(d);h==null&&(h=[],l.set(d,h)),h.push(a)}for(const[a,d]of l){if(d.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",a,d);continue}const[h,c]=d,u=h.firstElementChild,f=c.firstElementChild;if(!(h instanceof HTMLElement)||!(c instanceof HTMLElement)||!(u instanceof HTMLElement)||!(f instanceof HTMLElement))continue;let g=o.get(u);if(g!=null){this.observedNodes.set(u,g),this.observedNodes.set(f,g),o.delete(u),o.delete(f);continue}const b=u.getBoundingClientRect().height,y=f.getBoundingClientRect().height;g={type:"annotations",column1:{container:h,child:u,childHeight:b},column2:{container:c,child:f,childHeight:y},currentHeight:"auto"},i.add({child1:u,child2:f,item:g,newHeight:Math.max(b,y)})}for(const a of i)this.applyNewHeight(a.item,a.newHeight),this.observedNodes.set(a.child1,a.item),this.observedNodes.set(a.child2,a.item),this.observe(a.child1),this.observe(a.child2);i.clear()}for(const[s,l]of o)this.unobserve(s),l.type==="code"?bo(l):Co(l);o.clear()}cleanUp(){for(const t of this.observedNodes.keys())this.unobserve(t);this.observedNodes.clear()}observe(t){const{managersByElement:n}=ue,i=n.get(t);if(i!==this){if(i!=null&&i!==this)throw new Error("ResizeManager.observe: element is already owned by another ResizeManager");n.set(t,this),ue.getResizeObserver().observe(t)}}unobserve(t){const{managersByElement:n,resizeObserver:i}=ue,r=n.get(t);if(r!=null){if(r!==this)throw new Error("ResizeManager.unobserve: element is owned by another ResizeManager");n.delete(t),i?.unobserve(t),i!=null&&n.size===0&&(i.disconnect(),ue.resizeObserver=void 0)}}handleResizeEntries(t){const n=new Map,i=new Set;for(const r of t){const{target:o,borderBoxSize:s,contentBoxSize:l}=r;if(!(o instanceof HTMLElement)){console.error("ResizeManager.handleResizeEntries: Invalid element for ResizeObserver",r);continue}const a=this.observedNodes.get(o);if(a==null){console.error("ResizeManager.handleResizeEntries: Not a valid observed node",r);continue}if(a.type==="annotations"){const d=(()=>{if(o===a.column1.child)return a.column1;if(o===a.column2.child)return a.column2})();if(d==null){console.error("ResizeManager.handleResizeEntries: Couldn't find a column for",{item:a,target:o});continue}d.childHeight=s[0].blockSize,i.add(a)}else if(a.type==="code"){const d=n.get(a)??{},h=l[0].inlineSize;o===a.codeElement?d.codeInlineSize=h:o===a.numberElement&&(d.numberInlineSize=h),n.set(a,d)}}this.applyAnnotationUpdates(i),i.clear(),this.applyColumnUpdates(n),n.clear()}applyAnnotationUpdates(t){for(const n of t)this.applyNewHeight(n,Math.max(n.column1.childHeight,n.column2.childHeight))}applyColumnUpdates=t=>{for(const[n,i]of t){const r=i.codeInlineSize!=null?mo(i.codeInlineSize):n.codeWidth,o=i.numberInlineSize!=null?vo(i.numberInlineSize):n.numberWidth,s=r!==n.codeWidth,l=o!==n.numberWidth;if(!(!s&&!l)&&(n.codeWidth=r,n.numberWidth=o,s&&n.codeElement.style.setProperty("--diffs-column-width",`${typeof r=="number"?`${r}px`:"auto"}`),l&&n.codeElement.style.setProperty("--diffs-column-number-width",`${o===0?"auto":`${o}px`}`),s||l&&r!=="auto")){const a=typeof r=="number"?Math.max(r-o,0):0;n.codeElement.style.setProperty("--diffs-column-content-width",`${a>0?`${a}px`:"auto"}`)}}};applyNewHeight(t,n){n!==t.currentHeight&&(t.currentHeight=Math.max(n,0),t.column1.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`),t.column2.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`))}};function mo(e){const t=Math.max(Math.floor(e),0);return t===0?"auto":t}function vo(e){return Math.max(Math.ceil(e),0)}function bo(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty("--diffs-column-content-width"),e.codeElement.style.removeProperty("--diffs-column-number-width"),e.codeElement.style.removeProperty("--diffs-column-width"))}function Co(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty("--diffs-annotation-min-height"),e.column2.container.isConnected&&e.column2.container.style.removeProperty("--diffs-annotation-min-height")}const Se=new Map,It=new Map,jt=new Map,gt=new Set;function mt(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!gt.has(t))return!1;return!0}function Rn(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(gt.has(n.name))continue;let i=Se.get(n.name);i==null&&(i=n,Se.set(n.name,i)),gt.add(i.name),t.loadLanguageSync(i.data)}}function So(){Se.clear(),gt.clear()}function Oi(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function Ni(e){if(Oi())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=It.get(e);if(t!=null)return t;try{let n=jt.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Ln,e)&&(n=Ln[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const o={name:e,data:r};return Se.has(e)||Se.set(e,o),o});return It.set(e,i),await i}finally{It.delete(e)}}function Fi(e){return Se.get(e)??Ni(e)}const vt=new Set;function Ye(e){const t=[],n=new Set;for(const c of yo(e.themes)){const u=zi(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),o=Object.freeze(i.filter(c=>c.colorScheme==="dark")),s=new Map(i.map(c=>[c.name,c])),l=Object.freeze(i.map(c=>c.name)),a=Object.freeze(r.map(c=>c.name)),d=Object.freeze(o.map(c=>c.name));function h(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?o:i:i.filter(g=>g.collection!==f?!1:u==null||g.colorScheme===u)}return{getTheme(c){return s.get(c)},getThemes(c){return h(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?a:c?.colorScheme==="dark"?d:l:h(c).map(u=>u.name)},hasTheme(c){return s.has(c)},orderBy(c){return Ye({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const g=c(u.descriptor,f.descriptor);return g!==0?g:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const g of c){if(f.has(g))throw new Error(`Theme collection pick already includes theme "${g}"`);f.add(g);const b=s.get(g);if(b==null)throw new Error(`Theme collection does not contain theme "${g}"`);u.push(b)}return Ye({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function yo(e){return xo(e)?[e]:e}function xo(e){return zi(e)||Lo(e)}function Lo(e){return typeof e.name=="string"&&typeof e.load=="function"}function zi(e){return typeof e.getThemes=="function"}function Ui(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Vi=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},ko=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},wo=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Eo(){const e=new Map,t=new Map,n=new Map;let i=0;function r(m,p){if(e.has(m))throw new Vi(m);e.set(m,p)}function o(m,p){return e.has(m)?!1:(e.set(m,p),!0)}function s(m){return e.has(m)}function l(m){const p=t.get(m);if(p!==void 0)return Promise.resolve(p);const C=n.get(m);if(C!==void 0)return C;const v=e.get(m);if(v===void 0)return Promise.reject(new ko(m));const x=i,S=v().then(L=>{const E=Ui(L);return x===i&&t.set(m,E),n.get(m)===S&&n.delete(m),E}).catch(L=>{throw n.get(m)===S&&n.delete(m),L});return n.set(m,S),S}function a(m){return Promise.all(m.map(p=>l(p)))}function d(m,p){t.set(m,p)}function h(m){for(const[p,C]of m)d(p,C)}function c(m){return t.get(m)}function u(m){const p=[];for(const C of m){const v=t.get(C);if(v===void 0)throw new wo(C);p.push(v)}return p}function f(m){return t.has(m)}function g(m){for(const p of m)if(!t.has(p))return!1;return!0}function b(m){const p=t.get(m);return p!==void 0?p:l(m)}function y(){i++,t.clear(),n.clear()}return{clearResolvedThemes:y,getResolvedOrResolveTheme:b,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:s,hasResolvedTheme:f,hasResolvedThemes:g,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:h}}const X=Eo();function An(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=X.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,X.getResolvedTheme(n)==null&&X.seedResolvedTheme(n,i);vt.has(n)||(vt.add(n),t.loadThemeSync(i))}}function To(){X.clearResolvedThemes(),vt.clear()}function hn({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Io(t)}}function Io(e){return async()=>Or(Ui(await e()))}const Ro="pierre",Ao=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],Bi=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ho=[...Bi,...Ao],Mo=new Set(Bi);function Do(e){return Mo.has(e)?"light":"dark"}const Po={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},_o={"pierre-dark":()=>k(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>k(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>k(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>k(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>k(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>k(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>k(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>k(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>k(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>k(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oo(e){return hn({name:e,collection:Ro,colorScheme:Do(e),displayName:Po[e],load:_o[e]})}const $i=Ye({themes:Ho.map(e=>Oo(e))}),No="shiki",Wi=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],Fo=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],zo=new Set(Wi);function Uo(e){return zo.has(e)?"light":"dark"}const Vo={andromeeda:()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>k(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>k(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>k(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>k(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>k(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>k(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>k(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>k(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>k(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>k(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>k(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>k(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>k(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>k(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>k(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>k(()=>import("./vesper-DRje8inN.js"),[]),"vitesse-black":()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function Hn(e){return hn({name:e,collection:No,colorScheme:Uo(e),load:Vo[e]})}const Gi=Ye({themes:Object.freeze([...Wi.map(e=>Hn(e)),...Fo.map(e=>Hn(e))])});Ye({themes:[$i,Gi]});function ji(e){if(Oi())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(X.hasRegisteredTheme(e))return;const t=Gi.getTheme(e);if(t!=null){X.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function qi(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Bo(e){ji(e);const t=await X.resolveTheme(e);return qi(e,t),t}function $o(e){return X.getResolvedTheme(e)??Bo(e)}let $;async function xt({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){$??=Nr({themes:[],langs:["text"],engine:n==="shiki-wasm"?Fr(k(()=>import("./wasm-CG6Dc4jp.js"),[])):zr()});const i=Wo($)?await $:$;$=i;const r=[];for(const s of t){if(s==="text"||s==="ansi")continue;const l=Fi(s);"then"in l?r.push(l):Rn(l,i)}const o=[];for(const s of e){const l=$o(s);"then"in l?o.push(l):An(l,$)}return(r.length>0||o.length>0)&&await Promise.all([Promise.all(r).then(s=>{Rn(s,i)}),Promise.all(o).then(s=>{An(s,i)})]),i}function ql(e=$){return e!=null&&!("then"in e)}function Ki(){if($!=null&&!("then"in $))return $}function Wo(e=$){return e!=null&&"then"in e}function Kl(e=$){return e==null}async function Yl(e){await xt(e)}async function Xl(){$!=null&&((await $).dispose(),So(),To(),$=void 0)}for(const e of $i.getThemes())X.registerThemeIfAbsent(e.name,e.load);function cn(e=_){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ge(e){for(const t of cn(e))if(!vt.has(t))return!1;return!0}function Go(e){return X.hasResolvedThemes(e)}function Oe(e,t){return De(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}function ae(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Lt(e,t){return e==null||t==null?e===t:e.startingLine===t.startingLine&&e.totalLines===t.totalLines&&e.bufferBefore===t.bufferBefore&&e.bufferAfter===t.bufferAfter}function qt(e){return A({tagName:"div",children:[A({tagName:"div",children:e.annotations?.map(t=>A({tagName:"slot",properties:{name:t}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function jo(e){switch(e){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function Yi({fileOrDiff:e,mode:t,stickyHeader:n}){const i="type"in e?e:void 0,r={"data-diffs-header":t,"data-change-type":i?.type,"data-sticky":n?"":void 0};return A({tagName:"div",children:[t==="custom"?A({tagName:"slot",properties:{name:an}}):qo({name:e.name,prevName:"prevName"in e?e.prevName:void 0,iconType:i?.type??"file"}),...t==="custom"?[]:[Ko(i)]],properties:r})}function qo({name:e,prevName:t,iconType:n}){const i=[A({tagName:"slot",properties:{name:on}}),pt({name:jo(n),properties:{"data-change-icon":n}})];return t!=null&&(i.push(A({tagName:"div",children:[A({tagName:"bdi",children:[W(t)]})],properties:{"data-prev-name":""}})),i.push(pt({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),i.push(A({tagName:"div",children:[A({tagName:"bdi",children:[W(e)]})],properties:{"data-title":""}})),A({tagName:"div",children:i,properties:{"data-header-content":""}})}function Ko(e){const t=[];if(e!=null){let n=0,i=0;for(const r of e.hunks)n+=r.additionLines,i+=r.deletionLines;(i>0||n===0)&&t.push(A({tagName:"span",children:[W(`-${i}`)],properties:{"data-deletions-count":""}})),(n>0||i===0)&&t.push(A({tagName:"span",children:[W(`+${n}`)],properties:{"data-additions-count":""}}))}return t.push(A({tagName:"slot",properties:{name:sn}})),A({tagName:"div",children:t,properties:{"data-metadata":""}})}function Xi(e){return A({tagName:"pre",properties:Yo(e)})}function Yo({diffIndicators:e,disableBackground:t,disableLineNumbers:n,overflow:i,split:r,totalLines:o,type:s,customProperties:l}){return{...l,"data-diff":s==="diff"?"":void 0,"data-file":s==="file"?"":void 0,"data-diff-type":s==="diff"?r?"split":"single":void 0,"data-overflow":i,"data-disable-line-numbers":n?"":void 0,"data-background":t?void 0:"","data-indicators":e==="bars"||e==="classic"?e:void 0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}const Z=new Map;let bt=0;const Ne={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Q(e){if(Z.has(e))return Z.get(e)??"text";if(Ne[e]!=null)return Ne[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(Z.has(t[1]))return Z.get(t[1])??"text";if(Ne[t[1]]!=null)return Ne[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return Z.has(n)?Z.get(n)??"text":Ne[n]??"text"}function Ql(e,t){if(e<=bt)return!1;Z.clear();for(const n in t){const i=t[n];i!=null&&Z.set(n,i)}return bt=e,!0}function Jl(){return bt}function Xo(e,t){const n=Z.get(e);return n===t?!1:(n!=null&&console.warn(`setCustomExtension: overriding custom mapping for "${e}" from "${n}" to "${t}"`),Z.set(e,t),bt++,!0)}function Zl(){return Object.fromEntries(Z)}function un(e,{theme:t,preferredHighlighter:n="shiki-js"}){return{langs:[e??"text"],themes:cn(t),preferredHighlighter:n}}function ge(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function xe(e){return e.replace(/\n$|\r\n$/,"")}function Qo(e,t,n){const i=typeof n.lineInfo=="function"?n.lineInfo(t):n.lineInfo[t-1];if(i==null){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,e.children.length===0&&e.children.push(W(` +import{t as pe,b as Ln,n as Or,c as Nr,a as Fr,d as zr,s as Ur,g as Vr,e as Br}from"./index-BrvY0YN1.js";import{f as Ld}from"./index-BrvY0YN1.js";import{bR as k}from"./index-CAYChmT7.js";const Ei="diffs-container",$r=(()=>{try{return!1}catch{return!1}})(),Wr=/(?=^From [a-f0-9]+ .+$)/m,Ti=/(?=^diff --git)/gm,Ul=/(?=^---\s+\S)/gm,Vl=/(?=^@@ )/gm,Gr=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,jr=/(?<=\n)/,qr=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Kr=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Yr=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,Xr=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Bl=/^<{7,}(?:\s.*)?$/,$l=/^\|{7,}(?:\s.*)?$/,Wl=/^={7,}$/,Gl=/^>{7,}(?:\s.*)?$/,on="header-prefix",sn="header-metadata",an="header-custom",_={dark:"pierre-dark",light:"pierre-light"},Ii="data-theme-css",Ri="data-unsafe-css",Qr="data-core-css",Jr="data-diffs-scrollbar-measure",Ai="--diffs-scrollbar-gutter-measured",jl=1,Zr=1e5,ln={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},_e={...ln,hunkLineCount:1},eo={paddingTop:8,paddingBottom:8,gap:8},to={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},no=Object.freeze({fromStart:0,fromEnd:0}),Ae={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Hi={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Ie=new Set;let Re=null;function Y(e){Ie.add(e),Re??=requestAnimationFrame(Mi)}function io(e){Ie.delete(e),Ie.size===0&&Re!=null&&(cancelAnimationFrame(Re),Re=null)}function Mi(e){const t=new Set(Ie);Ie.clear();for(const n of t)try{n(e)}catch(i){console.error(i)}Ie.size>0?Re=requestAnimationFrame(Mi):Re=null}function He(e,t,n){if(e===t||e==null||t==null)return e===t;const i=new Set(n),r=Object.keys(e),o=new Set(Object.keys(t));for(const s of r)if(o.delete(s),!i.has(s)&&(!(s in t)||e[s]!==t[s]))return!1;for(const s of Array.from(o))if(!i.has(s))return!1;return!0}function De(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function dn(e,t){const n=e?.theme??_,i=t?.theme??_,r=kn(e),o=kn(t);return De(n,i)&&He(e,t,["theme","parseDiffOptions"])&&He(r,o)}function kn(e){if(e!=null&&"parseDiffOptions"in e)return e.parseDiffOptions}function Wt(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Gt({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:i=!1,fitPerfectlyOverscroll:r=0,overscrollSize:o}){const s=n+o*2,l=i?n+r*2:s;if(t=Math.max(t,l),s>=t||i){const h=Math.max(e-r,0),c=Math.min(e+l,t);return{top:h,bottom:Math.max(c,h)}}let a=e+n/2-s/2,d=a+s;return a<0&&(a=0),d>t&&(d=t),a=Math.floor(Math.max(a,0)),{top:a,bottom:Math.ceil(Math.max(Math.min(d,t),a))}}function ro(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function W(e){return{type:"text",value:e}}function A({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function pt({name:e,width:t=16,height:n=16,properties:i}){return A({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[A({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function oo(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function Ee(e){return A({tagName:"div",properties:{"data-gutter":""},children:e})}function Di(e,t,n,i={}){return A({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[A({tagName:"span",properties:{"data-line-number-content":""},children:[W(`${t}`)]})]:void 0})}function j(e,t,n){return A({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function so(){return A({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[pt({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function ao(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}var Pi=class{mode;options;hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();const{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){const n=!(e===this.selectedRange||Wt(e??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{const e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode==="diff"&&e.type==="diff-line")return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode==="file"&&e.type==="line")return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{const{onHunkExpand:t,onLineClick:n,onLineNumberClick:i,onTokenClick:r,onMergeConflictActionClick:o}=this.options;t==null&&n==null&&i==null&&o==null&&r==null||this.options.onGutterUtilityClick!=null&&et(e.composedPath())||(he(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",e),this.handlePointerEvent({eventType:"click",event:e}))};handlePointerMove=e=>{if(e.pointerType!=="mouse")return;const{lineHoverHighlight:t="disabled",onLineEnter:n,onLineLeave:i,onTokenEnter:r,onTokenLeave:o,enableGutterUtility:s=!1}=this.options;t==="disabled"&&!s&&n==null&&i==null&&r==null&&o==null||(he(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",e),this.handlePointerEvent({eventType:"move",event:e}))};handlePointerLeave=e=>{const{__debugPointerEvents:t}=this.options;if(he(t,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){he(t,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){const{__debugPointerEvents:n}=this.options,i=t.composedPath();he(n,e,"FileDiff.DEBUG.handlePointerEvent:",{eventType:e,composedPath:i});const r=this.resolvePointerTarget(i);he(n,e,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",r);const{onLineClick:o,onLineNumberClick:s,onLineEnter:l,onLineLeave:a,onTokenClick:d,onTokenEnter:h,onTokenLeave:c,onHunkExpand:u,onMergeConflictActionClick:f}=this.options;switch(e){case"move":{const g=Tt(r)&&this.hoveredLine?.lineElement===r.lineElement;ut(r)&&this.hoveredToken?.tokenElement===r.tokenElement||(this.hoveredToken!=null&&(c?.(this.hoveredToken,t),this.clearHoveredToken()),ut(r)&&(this.setHoveredToken(this.toTokenEventBaseProps(r)),h?.(this.hoveredToken,t))),g||(this.hoveredLine!=null&&(a?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),Tt(r)?(this.setHoveredLine(this.toEventBaseProps(r)),this.placeUtility(),l?.({...this.hoveredLine,event:t})):this.placeUtility());break}case"click":{if(r==null)break;if(co(r)&&f!=null){f(r);break}if(ho(r)&&u!=null){u(r.hunkIndex,r.all||t.shiftKey?"both":r.direction,r.all||t.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!Tt(r))break;ut(r)&&d!=null&&d(this.toTokenEventBaseProps(r),t);const g=this.toEventBaseProps(r);s!=null&&r.numberColumn?s({...g,event:t}):o?.({...g,event:t});break}}}syncPointerListeners(e){const{__debugPointerEvents:t,lineHoverHighlight:n="disabled",onLineClick:i,onLineNumberClick:r,onLineEnter:o,onLineLeave:s,onTokenClick:l,onTokenEnter:a,onTokenLeave:d,onHunkExpand:h,onMergeConflictActionClick:c,enableGutterUtility:u=!1,enableLineSelection:f=!1,onGutterUtilityClick:g}=this.options,b=g!=null,y=n!=="disabled"||i!=null||r!=null||o!=null||s!=null||l!=null||a!=null||d!=null||h!=null||c!=null||u||f||b;y&&!this.hasPointerListeners?(e.addEventListener("click",this.handlePointerClick),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,he(t,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const C=[];return(t==="both"||t==="click")&&(i!=null&&C.push("onLineClick"),r!=null&&C.push("onLineNumberClick"),h!=null&&C.push("expandable hunk separators"),c!=null&&C.push("merge conflict actions")),C})()),he(t,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),he(t,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!y&&this.hasPointerListeners&&(e.removeEventListener("click",this.handlePointerClick),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);const m=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",p=this.pointerSession.mode==="gutterSelecting";(!f&&m||!b&&p)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;const{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,i=e!=null,r=t!=null||n;i&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!i&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),r&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!r&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType==="mouse"&&e.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const t=e.composedPath();et(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!=="mouse"&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){const{enableLineSelection:t=!1}=this.options;if(!t)return;const n=this.resolveSelectionInfo(e,{source:"event-path",requireNumberColumn:!0});if(n==null)return;const{pre:i}=this;if(i==null)return;const{lineNumber:r,eventSide:o,lineIndex:s}=n;if(e.shiftKey&&this.selectedRange!=null){const l=this.getIndexesFromSelection(this.selectedRange,i.getAttribute("data-diff-type")==="split");if(l==null)return;const a=l.start<=l.end?s>=l.start:s<=l.end;this.selectionAnchor={lineNumber:a?this.selectedRange.start:this.selectedRange.end,side:a?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(r,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===r&&this.selectedRange?.end===r){const l={lineNumber:r,side:o};this.selectionAnchor=l,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:e.pointerId,anchor:l,pending:l},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:r,side:o},this.updateSelection(r,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){const{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;const i=this.currentSelectionEnds(),r=i?.bottom??this.resolveSelectionPoint(e,{source:"event-path",excludeUtility:!1}),o=i?.top??r;r==null||o==null||(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:e.pointerId,anchor:o,current:r},t&&(this.selectionAnchor={lineNumber:o.lineNumber,side:o.side},this.updateSelection(r.lineNumber,r.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{const{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionPoint(e,{source:"coordinates-first"});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;const i={lineNumber:n.lineNumber,side:n.eventSide};if(ao(this.pointerSession.pending,i))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{const{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const i=this.resolveSelectionPoint(e,{source:"coordinates-first"});i!=null&&(this.pointerSession.current=i,t&&this.updateSelection(i.lineNumber,i.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case"selecting":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(e){const{lineHoverHighlight:t="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!=="disabled"&&((t==="both"||t==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(t==="both"||t==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const t=document.createElement("div");t.innerHTML=pe(so());const n=t.firstElementChild;if(!(n instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;const t=this.resolvePointerTarget(e);Ve(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){const e=this.currentSelectionEnds();if(e==null)return!1;const t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){const e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){const t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},i=this.selectionPointRowIndex(t),r=this.selectionPointRowIndex(n);if(!(i==null||r==null))return i>r?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){const t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;const t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;const n=this.mode==="diff"?`${t[0]},${t[1]}`:`${t[0]}`,i=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(const r of i){if(!(r instanceof HTMLElement))continue;const o=this.resolvePointerTarget(Ze(r));if(Ve(o)&&!(this.mode==="diff"&&e.side!=null&&o.side!==e.side))return o}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}selectionInfoFromPath(e,t){const n=this.resolvePointerTarget(e);if(Ve(n)&&!(t&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode==="diff"?n.side:void 0}}resolveSelectionInfo(e,t){const n=this.resolveSelectionPath(e,t);return n!=null?this.selectionInfoFromPath(n,t.requireNumberColumn):void 0}selectionPointFromPath(e){const t=this.resolvePointerTarget(e);if(Ve(t))return{lineNumber:t.lineNumber,side:this.mode==="diff"?t.side:void 0}}resolveSelectionPoint(e,t){const n=this.resolveSelectionPath(e,t);return n!=null?this.selectionPointFromPath(n):void 0}resolveSelectionPath(e,t){const n=t.excludeUtility!==!1;switch(t.source){case"event-path":return this.pathFromEventPath(e.composedPath(),n);case"coordinates-first":{const i=this.pathFromCoordinates(e,n);return i!==void 0?i??void 0:this.pathFromEventPath(e.composedPath(),n)}}}pathFromCoordinates(e,t){const n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&et(e))){for(const n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){const n=Ze(e);if(t&&et(n))return;const i=fo(e);return i!=null?Ze(i):this.pathFromAnnotationSlot(e)}pathFromAnnotationSlot(e){const t=go(po(e));if(t==null)return;const n=this.targetForSelectionPoint(t);return n!=null?Ze(n.lineElement):void 0}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;const t=this.pre?.getRootNode(),n=En(t)?t:En(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){const{getLineIndex:n}=this.options;return n!=null?n(e,t):[e-1,e-1]}getCurrentSelectionRange(){return this.proposedSelectedRange!==void 0?this.proposedSelectedRange:this.selectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){const i=this.getCurrentSelectionRange();let r;if(e==null)r=null;else{const o=this.selectionAnchor?.side??t,s=this.selectionAnchor?.lineNumber??e;r=this.buildSelectionRange(s,e,o,t)}Wt(i??void 0,r??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=r:(this.selectedRange=r,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;const n=this.getLineIndex(e.start,e.side),i=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&i!=null?{start:t?n[1]:n[0],end:t?i[1]:i[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;const e=this.pre.querySelectorAll("[data-selected-line]");for(const l of e)l.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;const{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const n=this.pre.getAttribute("data-diff-type")==="split",i=this.getIndexesFromSelection(this.selectedRange,n);if(i==null)throw console.error({rowRange:i,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");const r=i.start===i.end,o=Math.min(i.start,i.end),s=Math.max(i.start,i.end);for(const l of t){const[a,d]=l.children,h=d.children.length;if(h!==a.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let c=0;cs)break;if(g==null||gNumber.parseInt(i,10)).filter(i=>!Number.isNaN(i));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function Ke({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:i,onLineClick:r,onLineEnter:o,onLineLeave:s,onLineNumberClick:l,onTokenClick:a,onTokenEnter:d,onTokenLeave:h,renderGutterUtility:c,__debugPointerEvents:u,enableLineSelection:f,controlledSelection:g,onLineSelected:b,onLineSelectionStart:y,onLineSelectionChange:m,onLineSelectionEnd:p},C,v,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:lo({enableGutterUtility:t,renderGutterUtility:c,onGutterUtilityClick:i}),usesCustomGutterUtility:c!=null,lineHoverHighlight:n,onGutterUtilityClick:i,onHunkExpand:C,onMergeConflictActionClick:x,onLineClick:r,onLineEnter:o,onLineLeave:s,onLineNumberClick:l,onTokenClick:a,onTokenEnter:d,onTokenLeave:h,__debugPointerEvents:u,enableLineSelection:f,controlledSelection:g,onLineSelected:b,onLineSelectionStart:y,onLineSelectionChange:m,onLineSelectionEnd:p,getLineIndex:v}}function lo({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw new Error("Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.");return e??!1}function Ve(e){return e!=null&&"kind"in e&&e.kind==="line"}function ut(e){return e!=null&&"kind"in e&&e.kind==="token"}function Tt(e){return Ve(e)||ut(e)}function ho(e){return"type"in e&&e.type==="line-info"}function co(e){return"kind"in e&&e.kind==="merge-conflict-action"}function uo(e){return e==="current"||e==="incoming"||e==="both"}function wn(e,t){const n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function Ze(e){const t=[];let n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function fo(e){const t=e.closest("[data-line], [data-column-number]");if(t instanceof HTMLElement)return t;const n=e.closest('[data-line-annotation], [data-gutter-buffer="annotation"]');if(!(n instanceof HTMLElement))return;const i=n.previousElementSibling;return i instanceof HTMLElement&&(i.hasAttribute("data-line")||i.hasAttribute("data-column-number"))?i:void 0}function po(e){const t=e.closest('[slot^="annotation-"]');if(t instanceof HTMLElement)return t.getAttribute("slot")??void 0;if(e instanceof HTMLElement){const n=e.getAttribute("name")??void 0;return n!=null&&n.startsWith("annotation-")?n:void 0}}function go(e){if(e==null)return;const t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;const n=Number.parseInt(t[2],10);if(!(!Number.isFinite(n)||n<=0))return{lineNumber:n,side:t[1]}}function En(e){return e!=null&&typeof e.elementFromPoint=="function"}function Tn(e,t){switch(e){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return t.hasAttribute("data-deletions")?"deletions":"additions"}}function In(e){const t=e.getAttribute("data-line-type");if(t!=null)switch(t){case"change-deletion":case"change-addition":case"context":case"context-expanded":return t;default:return}}function et(e){for(const t of e)if(t instanceof HTMLElement&&(t.hasAttribute("data-utility-button")||t.hasAttribute("data-gutter-utility-slot")||t.getAttribute("slot")==="gutter-utility-slot"||t.getAttribute("name")==="gutter-utility-slot"))return!0;return!1}function he(e="none",t,...n){switch(e){case"none":return;case"both":break;case"click":if(t!=="click")return;break;case"move":if(t!=="move")return;break}console.log(...n)}var _i=class ue{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){const t=ue.resizeObserver??new ResizeObserver(ue.handleSharedResizeEntries);return ue.resizeObserver=t,t}static handleSharedResizeEntries(t){const n=new Map;for(const i of t){const r=ue.managersByElement.get(i.target);if(r==null)continue;const o=n.get(r);o==null?n.set(r,[i]):o.push(i)}for(const[i,r]of n)i.handleResizeEntries(r)}observedNodes=new Map;setup(t,n){const i=new Set;let r=0;const o=new Map(this.observedNodes);this.observedNodes.clear();for(const s of t.children){if(r===2)break;const l=(()=>{if(s instanceof HTMLElement&&s.tagName==="CODE")return s})();if(l==null)continue;r++;let a=o.get(l);if(a!=null&&a.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let d=l.firstElementChild;d instanceof HTMLElement||(d=null),a!=null?(this.observedNodes.set(l,a),o.delete(l),a.numberElement!==d?(a.numberElement!=null&&(this.unobserve(a.numberElement),o.delete(a.numberElement)),d!=null&&(this.observe(d),o.delete(d),this.observedNodes.set(d,a)),a.numberElement=d,a.numberWidth=0):a.numberElement!=null?(o.delete(a.numberElement),this.observedNodes.set(a.numberElement,a)):a.numberWidth=0):(a={type:"code",codeElement:l,numberElement:d,codeWidth:"auto",numberWidth:0},this.observedNodes.set(l,a),this.observe(l),d!=null&&(this.observedNodes.set(d,a),this.observe(d)))}if(r>1&&!n){const s=t.querySelectorAll('[data-line-annotation*=","]'),l=new Map;for(const a of s){if(!(a instanceof HTMLElement))continue;const d=a.getAttribute("data-line-annotation")??"";if(!/^-?\d+,-?\d+$/.test(d)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:d,element:a});continue}let h=l.get(d);h==null&&(h=[],l.set(d,h)),h.push(a)}for(const[a,d]of l){if(d.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",a,d);continue}const[h,c]=d,u=h.firstElementChild,f=c.firstElementChild;if(!(h instanceof HTMLElement)||!(c instanceof HTMLElement)||!(u instanceof HTMLElement)||!(f instanceof HTMLElement))continue;let g=o.get(u);if(g!=null){this.observedNodes.set(u,g),this.observedNodes.set(f,g),o.delete(u),o.delete(f);continue}const b=u.getBoundingClientRect().height,y=f.getBoundingClientRect().height;g={type:"annotations",column1:{container:h,child:u,childHeight:b},column2:{container:c,child:f,childHeight:y},currentHeight:"auto"},i.add({child1:u,child2:f,item:g,newHeight:Math.max(b,y)})}for(const a of i)this.applyNewHeight(a.item,a.newHeight),this.observedNodes.set(a.child1,a.item),this.observedNodes.set(a.child2,a.item),this.observe(a.child1),this.observe(a.child2);i.clear()}for(const[s,l]of o)this.unobserve(s),l.type==="code"?bo(l):Co(l);o.clear()}cleanUp(){for(const t of this.observedNodes.keys())this.unobserve(t);this.observedNodes.clear()}observe(t){const{managersByElement:n}=ue,i=n.get(t);if(i!==this){if(i!=null&&i!==this)throw new Error("ResizeManager.observe: element is already owned by another ResizeManager");n.set(t,this),ue.getResizeObserver().observe(t)}}unobserve(t){const{managersByElement:n,resizeObserver:i}=ue,r=n.get(t);if(r!=null){if(r!==this)throw new Error("ResizeManager.unobserve: element is owned by another ResizeManager");n.delete(t),i?.unobserve(t),i!=null&&n.size===0&&(i.disconnect(),ue.resizeObserver=void 0)}}handleResizeEntries(t){const n=new Map,i=new Set;for(const r of t){const{target:o,borderBoxSize:s,contentBoxSize:l}=r;if(!(o instanceof HTMLElement)){console.error("ResizeManager.handleResizeEntries: Invalid element for ResizeObserver",r);continue}const a=this.observedNodes.get(o);if(a==null){console.error("ResizeManager.handleResizeEntries: Not a valid observed node",r);continue}if(a.type==="annotations"){const d=(()=>{if(o===a.column1.child)return a.column1;if(o===a.column2.child)return a.column2})();if(d==null){console.error("ResizeManager.handleResizeEntries: Couldn't find a column for",{item:a,target:o});continue}d.childHeight=s[0].blockSize,i.add(a)}else if(a.type==="code"){const d=n.get(a)??{},h=l[0].inlineSize;o===a.codeElement?d.codeInlineSize=h:o===a.numberElement&&(d.numberInlineSize=h),n.set(a,d)}}this.applyAnnotationUpdates(i),i.clear(),this.applyColumnUpdates(n),n.clear()}applyAnnotationUpdates(t){for(const n of t)this.applyNewHeight(n,Math.max(n.column1.childHeight,n.column2.childHeight))}applyColumnUpdates=t=>{for(const[n,i]of t){const r=i.codeInlineSize!=null?mo(i.codeInlineSize):n.codeWidth,o=i.numberInlineSize!=null?vo(i.numberInlineSize):n.numberWidth,s=r!==n.codeWidth,l=o!==n.numberWidth;if(!(!s&&!l)&&(n.codeWidth=r,n.numberWidth=o,s&&n.codeElement.style.setProperty("--diffs-column-width",`${typeof r=="number"?`${r}px`:"auto"}`),l&&n.codeElement.style.setProperty("--diffs-column-number-width",`${o===0?"auto":`${o}px`}`),s||l&&r!=="auto")){const a=typeof r=="number"?Math.max(r-o,0):0;n.codeElement.style.setProperty("--diffs-column-content-width",`${a>0?`${a}px`:"auto"}`)}}};applyNewHeight(t,n){n!==t.currentHeight&&(t.currentHeight=Math.max(n,0),t.column1.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`),t.column2.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`))}};function mo(e){const t=Math.max(Math.floor(e),0);return t===0?"auto":t}function vo(e){return Math.max(Math.ceil(e),0)}function bo(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty("--diffs-column-content-width"),e.codeElement.style.removeProperty("--diffs-column-number-width"),e.codeElement.style.removeProperty("--diffs-column-width"))}function Co(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty("--diffs-annotation-min-height"),e.column2.container.isConnected&&e.column2.container.style.removeProperty("--diffs-annotation-min-height")}const Se=new Map,It=new Map,jt=new Map,gt=new Set;function mt(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!gt.has(t))return!1;return!0}function Rn(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(gt.has(n.name))continue;let i=Se.get(n.name);i==null&&(i=n,Se.set(n.name,i)),gt.add(i.name),t.loadLanguageSync(i.data)}}function So(){Se.clear(),gt.clear()}function Oi(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function Ni(e){if(Oi())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=It.get(e);if(t!=null)return t;try{let n=jt.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Ln,e)&&(n=Ln[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const o={name:e,data:r};return Se.has(e)||Se.set(e,o),o});return It.set(e,i),await i}finally{It.delete(e)}}function Fi(e){return Se.get(e)??Ni(e)}const vt=new Set;function Ye(e){const t=[],n=new Set;for(const c of yo(e.themes)){const u=zi(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),o=Object.freeze(i.filter(c=>c.colorScheme==="dark")),s=new Map(i.map(c=>[c.name,c])),l=Object.freeze(i.map(c=>c.name)),a=Object.freeze(r.map(c=>c.name)),d=Object.freeze(o.map(c=>c.name));function h(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?o:i:i.filter(g=>g.collection!==f?!1:u==null||g.colorScheme===u)}return{getTheme(c){return s.get(c)},getThemes(c){return h(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?a:c?.colorScheme==="dark"?d:l:h(c).map(u=>u.name)},hasTheme(c){return s.has(c)},orderBy(c){return Ye({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const g=c(u.descriptor,f.descriptor);return g!==0?g:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const g of c){if(f.has(g))throw new Error(`Theme collection pick already includes theme "${g}"`);f.add(g);const b=s.get(g);if(b==null)throw new Error(`Theme collection does not contain theme "${g}"`);u.push(b)}return Ye({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function yo(e){return xo(e)?[e]:e}function xo(e){return zi(e)||Lo(e)}function Lo(e){return typeof e.name=="string"&&typeof e.load=="function"}function zi(e){return typeof e.getThemes=="function"}function Ui(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Vi=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},ko=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},wo=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Eo(){const e=new Map,t=new Map,n=new Map;let i=0;function r(m,p){if(e.has(m))throw new Vi(m);e.set(m,p)}function o(m,p){return e.has(m)?!1:(e.set(m,p),!0)}function s(m){return e.has(m)}function l(m){const p=t.get(m);if(p!==void 0)return Promise.resolve(p);const C=n.get(m);if(C!==void 0)return C;const v=e.get(m);if(v===void 0)return Promise.reject(new ko(m));const x=i,S=v().then(L=>{const E=Ui(L);return x===i&&t.set(m,E),n.get(m)===S&&n.delete(m),E}).catch(L=>{throw n.get(m)===S&&n.delete(m),L});return n.set(m,S),S}function a(m){return Promise.all(m.map(p=>l(p)))}function d(m,p){t.set(m,p)}function h(m){for(const[p,C]of m)d(p,C)}function c(m){return t.get(m)}function u(m){const p=[];for(const C of m){const v=t.get(C);if(v===void 0)throw new wo(C);p.push(v)}return p}function f(m){return t.has(m)}function g(m){for(const p of m)if(!t.has(p))return!1;return!0}function b(m){const p=t.get(m);return p!==void 0?p:l(m)}function y(){i++,t.clear(),n.clear()}return{clearResolvedThemes:y,getResolvedOrResolveTheme:b,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:s,hasResolvedTheme:f,hasResolvedThemes:g,registerTheme:r,registerThemeIfAbsent:o,resolveTheme:l,resolveThemes:a,seedResolvedTheme:d,seedResolvedThemes:h}}const X=Eo();function An(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=X.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,X.getResolvedTheme(n)==null&&X.seedResolvedTheme(n,i);vt.has(n)||(vt.add(n),t.loadThemeSync(i))}}function To(){X.clearResolvedThemes(),vt.clear()}function hn({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Io(t)}}function Io(e){return async()=>Or(Ui(await e()))}const Ro="pierre",Ao=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],Bi=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ho=[...Bi,...Ao],Mo=new Set(Bi);function Do(e){return Mo.has(e)?"light":"dark"}const Po={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},_o={"pierre-dark":()=>k(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>k(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>k(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>k(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>k(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>k(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>k(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>k(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>k(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>k(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oo(e){return hn({name:e,collection:Ro,colorScheme:Do(e),displayName:Po[e],load:_o[e]})}const $i=Ye({themes:Ho.map(e=>Oo(e))}),No="shiki",Wi=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],Fo=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],zo=new Set(Wi);function Uo(e){return zo.has(e)?"light":"dark"}const Vo={andromeeda:()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>k(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>k(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>k(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>k(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>k(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>k(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>k(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>k(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>k(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>k(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>k(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>k(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>k(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>k(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>k(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>k(()=>import("./vesper-DRje8inN.js"),[]),"vitesse-black":()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function Hn(e){return hn({name:e,collection:No,colorScheme:Uo(e),load:Vo[e]})}const Gi=Ye({themes:Object.freeze([...Wi.map(e=>Hn(e)),...Fo.map(e=>Hn(e))])});Ye({themes:[$i,Gi]});function ji(e){if(Oi())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(X.hasRegisteredTheme(e))return;const t=Gi.getTheme(e);if(t!=null){X.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function qi(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Bo(e){ji(e);const t=await X.resolveTheme(e);return qi(e,t),t}function $o(e){return X.getResolvedTheme(e)??Bo(e)}let $;async function xt({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){$??=Nr({themes:[],langs:["text"],engine:n==="shiki-wasm"?Fr(k(()=>import("./wasm-CG6Dc4jp.js"),[])):zr()});const i=Wo($)?await $:$;$=i;const r=[];for(const s of t){if(s==="text"||s==="ansi")continue;const l=Fi(s);"then"in l?r.push(l):Rn(l,i)}const o=[];for(const s of e){const l=$o(s);"then"in l?o.push(l):An(l,$)}return(r.length>0||o.length>0)&&await Promise.all([Promise.all(r).then(s=>{Rn(s,i)}),Promise.all(o).then(s=>{An(s,i)})]),i}function ql(e=$){return e!=null&&!("then"in e)}function Ki(){if($!=null&&!("then"in $))return $}function Wo(e=$){return e!=null&&"then"in e}function Kl(e=$){return e==null}async function Yl(e){await xt(e)}async function Xl(){$!=null&&((await $).dispose(),So(),To(),$=void 0)}for(const e of $i.getThemes())X.registerThemeIfAbsent(e.name,e.load);function cn(e=_){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ge(e){for(const t of cn(e))if(!vt.has(t))return!1;return!0}function Go(e){return X.hasResolvedThemes(e)}function Oe(e,t){return De(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}function ae(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Lt(e,t){return e==null||t==null?e===t:e.startingLine===t.startingLine&&e.totalLines===t.totalLines&&e.bufferBefore===t.bufferBefore&&e.bufferAfter===t.bufferAfter}function qt(e){return A({tagName:"div",children:[A({tagName:"div",children:e.annotations?.map(t=>A({tagName:"slot",properties:{name:t}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function jo(e){switch(e){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function Yi({fileOrDiff:e,mode:t,stickyHeader:n}){const i="type"in e?e:void 0,r={"data-diffs-header":t,"data-change-type":i?.type,"data-sticky":n?"":void 0};return A({tagName:"div",children:[t==="custom"?A({tagName:"slot",properties:{name:an}}):qo({name:e.name,prevName:"prevName"in e?e.prevName:void 0,iconType:i?.type??"file"}),...t==="custom"?[]:[Ko(i)]],properties:r})}function qo({name:e,prevName:t,iconType:n}){const i=[A({tagName:"slot",properties:{name:on}}),pt({name:jo(n),properties:{"data-change-icon":n}})];return t!=null&&(i.push(A({tagName:"div",children:[A({tagName:"bdi",children:[W(t)]})],properties:{"data-prev-name":""}})),i.push(pt({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),i.push(A({tagName:"div",children:[A({tagName:"bdi",children:[W(e)]})],properties:{"data-title":""}})),A({tagName:"div",children:i,properties:{"data-header-content":""}})}function Ko(e){const t=[];if(e!=null){let n=0,i=0;for(const r of e.hunks)n+=r.additionLines,i+=r.deletionLines;(i>0||n===0)&&t.push(A({tagName:"span",children:[W(`-${i}`)],properties:{"data-deletions-count":""}})),(n>0||i===0)&&t.push(A({tagName:"span",children:[W(`+${n}`)],properties:{"data-additions-count":""}}))}return t.push(A({tagName:"slot",properties:{name:sn}})),A({tagName:"div",children:t,properties:{"data-metadata":""}})}function Xi(e){return A({tagName:"pre",properties:Yo(e)})}function Yo({diffIndicators:e,disableBackground:t,disableLineNumbers:n,overflow:i,split:r,totalLines:o,type:s,customProperties:l}){return{...l,"data-diff":s==="diff"?"":void 0,"data-file":s==="file"?"":void 0,"data-diff-type":s==="diff"?r?"split":"single":void 0,"data-overflow":i,"data-disable-line-numbers":n?"":void 0,"data-background":t?void 0:"","data-indicators":e==="bars"||e==="classic"?e:void 0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}const Z=new Map;let bt=0;const Ne={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Q(e){if(Z.has(e))return Z.get(e)??"text";if(Ne[e]!=null)return Ne[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(Z.has(t[1]))return Z.get(t[1])??"text";if(Ne[t[1]]!=null)return Ne[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return Z.has(n)?Z.get(n)??"text":Ne[n]??"text"}function Ql(e,t){if(e<=bt)return!1;Z.clear();for(const n in t){const i=t[n];i!=null&&Z.set(n,i)}return bt=e,!0}function Jl(){return bt}function Xo(e,t){const n=Z.get(e);return n===t?!1:(n!=null&&console.warn(`setCustomExtension: overriding custom mapping for "${e}" from "${n}" to "${t}"`),Z.set(e,t),bt++,!0)}function Zl(){return Object.fromEntries(Z)}function un(e,{theme:t,preferredHighlighter:n="shiki-js"}){return{langs:[e??"text"],themes:cn(t),preferredHighlighter:n}}function ge(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function xe(e){return e.replace(/\n$|\r\n$/,"")}function Qo(e,t,n){const i=typeof n.lineInfo=="function"?n.lineInfo(t):n.lineInfo[t-1];if(i==null){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,e.children.length===0&&e.children.push(W(` `)),e}const tt=Symbol("no-token"),Rt=Symbol("multiple-tokens");function Qi(e){const t=Jo(e);if(t!=null)return t;let n=tt;const i=[];let r=[],o;const s=()=>{if(r.length===0||o==null){r=[],o=void 0;return}if(r.length===1){const a=r[0];if(a?.type==="element"){Zo(a,o);for(const d of a.children)ft(d)}else ft(a);i.push(a),r=[],o=void 0;return}for(const a of r)ft(a);i.push(A({tagName:"span",properties:{"data-char":o},children:r})),r=[],o=void 0},l=a=>{if(a!==tt){if(a===Rt){n=Rt;return}if(n===tt){n=a;return}n!==a&&(n=Rt)}};for(const a of e.children){const d=a.type==="element"?Qi(a):tt;if(l(d),typeof d!="number"){s(),i.push(a);continue}o!=null&&o!==d&&s(),o??=d,r.push(a)}return s(),e.children=i,n}function Jo(e){const t=e.properties["data-char"];if(typeof t=="number")return t}function ft(e){if(e.type==="element"){e.properties["data-char"]=void 0;for(const t of e.children)ft(t)}}function Zo(e,t){e.properties["data-char"]=t}function es(e={}){const{classPrefix:t="__shiki_",classSuffix:n="",classReplacer:i=l=>l}=e,r=new Map;function o(l){return Object.entries(l).map(([a,d])=>`${a}:${d}`).join(";")}function s(l){let a=t+ts(typeof l=="string"?l:o(l))+n;return a=i(a),r.has(a)||r.set(a,typeof l=="string"?l:{...l}),a}return{name:"@shikijs/transformers:style-to-class",pre(l){if(!l.properties.style)return;const a=s(l.properties.style);delete l.properties.style,this.addClassToHast(l,a)},tokens(l){for(const a of l)for(const d of a){if(!d.htmlStyle)continue;const h=s(d.htmlStyle);d.htmlStyle={},d.htmlAttrs||={},d.htmlAttrs.class?d.htmlAttrs.class+=` ${h}`:d.htmlAttrs.class=h}},getClassRegistry(){return r},getCSS(){let l="";for(const[a,d]of r.entries())l+=`.${a}{${typeof d=="string"?d:o(d)}}`;return l},clearRegistry(){r.clear()}}}function ts(e,t=0){let n=3735928559^t,i=1103547991^t;for(let r=0,o;r>>16,2246822507),n^=Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString(36).slice(0,6)}function Ji(e=!1,t=!1){const n={lineInfo:[]},i=[{line(r){return delete r.properties.class,r},pre(r){const o=oo(r),s=[];if(o!=null){let l=1;for(const a of o.children)a.type==="element"&&(e&&Qi(a),s.push(Qo(a,l,n)),l++);o.children=s}return r},...e?{tokens(r){for(const o of r){let s=0;for(const l of o){const a=l;a.__lineChar??=s,s+=l.content.length}}},preprocess(r,o){o.mergeWhitespaces="never"},span(r,o,s,l,a){if(a?.offset!=null&&a.content!=null){const d=a.__lineChar;return d!=null&&(r.properties["data-char"]=d),r}return r}}:null}];return t&&i.push(ns,Mn),{state:n,transformers:i,toClass:Mn}}const Mn=es({classPrefix:"hl-"}),ns={name:"token-style-normalizer",tokens(e){for(const t of e)for(const n of t){if(n.htmlStyle!=null)continue;const i={};n.color!=null&&(i.color=n.color),n.bgColor!=null&&(i["background-color"]=n.bgColor),n.fontStyle!=null&&n.fontStyle!==0&&((n.fontStyle&1)!==0&&(i["font-style"]="italic"),(n.fontStyle&2)!==0&&(i["font-weight"]="bold"),(n.fontStyle&4)!==0&&(i["text-decoration"]="underline")),Object.keys(i).length>0&&(n.htmlStyle=i)}}};function B(e){return`--${e==="token"?"diffs-token":"diffs"}-`}const is=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,rs=/^0(?:\.0+)?%?$/;function os(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return;const n=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;const i=e.slice(t+1,-1).trim();if(i.length===0)return;const r=i.lastIndexOf("/");if(r!==-1)return i.slice(r+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){const o=i.split(",");if(o.length===4)return o[3]?.trim()}}function ss(e){const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(t==null)return null;const n=t[1];let i,r=1;return n.length===3?i=n.split("").map(o=>o+o).join(""):n.length===6?i=n:(i=n.slice(0,6),r=parseInt(n.slice(6,8),16)/255),[parseInt(i.slice(0,2),16),parseInt(i.slice(2,4),16),parseInt(i.slice(4,6),16),r]}function At(e){if(e==null)return null;const t=ss(e);if(t==null)return null;const n=t[0]/255,i=t[1]/255,r=t[2]/255,o=s=>s<=.03928?s/12.92:((s+.055)/1.055)**2.4;return .2126*o(n)+.7152*o(i)+.0722*o(r)}function Dn(e){if(e==null)return!1;const t=e.trim().toLowerCase();if(t==="transparent"||is.test(t))return!0;const n=os(t);return n!=null&&rs.test(n)}function as(e,t,n){if(t==null||n==null)return!1;const i=At(e),r=At(t),o=At(n);return i==null||r==null||o==null?!1:Math.abs(i-o){const s=e.at(-1);return s===""||s===` `||s===`\r `||s==="\r"?Math.max(0,e.length-2):e.length-1})();for(let s=t;s0||l<1/0,{state:h,transformers:c}=Ji(r),u=o?"text":e.lang??Q(e.name),f=typeof n=="string"?t.getTheme(n).type:void 0,g=fn({theme:n,highlighter:t});h.lineInfo=p=>({type:"context",lineIndex:p-1+s,lineNumber:p+s});const b=typeof n=="string"?{lang:u,theme:n,transformers:c,defaultColor:!1,cssVariablePrefix:B("token"),tokenizeMaxLineLength:i,tokenizeTimeLimit:0}:{lang:u,themes:n,transformers:c,defaultColor:!1,cssVariablePrefix:B("token"),tokenizeMaxLineLength:i,tokenizeTimeLimit:0},y=Kt(t.codeToHast(d?cs(a??St(e.contents),s,l):xe(e.contents),b)),m=d?new Array(s):y;return d&&m.push(...y),{code:m,themeStyles:g,baseThemeType:f}}function cs(e,t,n){let i="";return Ct({lines:e,startingLine:t,totalLines:n,callback({content:r}){i+=r}}),i}const Zi="-1,-1";function Yt(e){return e?.some(t=>t.lineNumber===0)??!1}function Xt(e){const t=e[0];return t!=null&&t.length>0?t:void 0}function kt(e){return e.startingLine===0&&e.totalLines>0}function er(e,t){return A({tagName:"div",children:e,properties:{"data-content":"",style:`grid-row: span ${t}`}})}function Qt(e){return(e.lang??Q(e.name))==="text"}function tr(e){return e.useTokenTransformer===!0||e.onTokenClick!=null||e.onTokenEnter!=null||e.onTokenLeave!=null}let us=-1;var fs=class{options;onRenderUpdate;workerManager;__id=`file-renderer:${++us}`;highlighter;renderCache;computedLang="text";lineAnnotations={};lineCache;constructor(e={theme:_},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=Ge(e.theme??_)?Ki():void 0)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setLineAnnotations(e){this.lineAnnotations={};for(const t of e){const n=this.lineAnnotations[t.lineNumber]??[];this.lineAnnotations[t.lineNumber]=n,n.push(t)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0}clearRenderCache(){this.renderCache=void 0}hydrate(e){const{options:t}=this.getRenderOptions(e),n=Pt(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength());let i=this.workerManager?.getFileResultCache(e);i!=null&&!Oe(t,i.options)&&(i=void 0),this.renderCache??={file:e,options:t,highlighted:!n&&!Qt(e),result:n?void 0:i?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightFileAST(this,e):this.highlighter==null&&(this.computedLang=e.lang??Q(e.name),this.initializeHighlighter())}getRenderOptions(e){const t=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getFileRenderOptions();const{theme:i=_,tokenizeMaxLineLength:r=1e3}=this.options;return{theme:i,useTokenTransformer:tr(this.options),tokenizeMaxLineLength:r}})(),{renderCache:n}=this;return n?.result==null?{options:t,forceHighlight:!0}:!ae(e,n.file)||!Oe(t,n.options)?{options:t,forceHighlight:!0}:{options:t,forceHighlight:!1}}getOrCreateLineCache(e){if(e.cacheKey==null)return this.lineCache=void 0,St(e.contents);let{lineCache:t}=this;return(t==null||t.cacheKey!==e.cacheKey)&&(t={cacheKey:e.cacheKey,lines:St(e.contents)}),this.lineCache=t,t.lines}renderFile(e=this.renderCache?.file,t=Ae){if(e==null)return;let{options:n,forceHighlight:i}=this.getRenderOptions(e);const r=this.getMatchingWorkerResultCache(e,n);r!=null&&!this.hasHighlightedRenderCache(e,n)&&(this.renderCache={file:e,highlighted:!0,renderRange:void 0,...r},i=!1),this.renderCache??={file:e,highlighted:!1,options:n,result:void 0,renderRange:void 0};const o=this.getOrCreateLineCache(e),s=e.contents.length>0,l=!s||Qt(e)||Pt(o.length,this.getTokenizeMaxLength()),a=!ae(e,this.renderCache.file),d=!Lt(this.renderCache.renderRange,t);if(this.workerManager?.isWorkingPool()===!0)(l||this.renderCache.result==null||!this.renderCache.highlighted&&(a||d))&&(this.renderCache.file=e,this.renderCache.options=n,this.renderCache.highlighted=!1,(this.renderCache.result==null||a||d||i)&&(this.renderCache.result=this.workerManager.getPlainFileAST(e,t.startingLine,t.totalLines,o)),this.renderCache.renderRange=t),!l&&s&&(!this.renderCache.highlighted||i)&&this.workerManager.highlightFileAST(this,e);else{this.computedLang=e.lang??Q(e.name);const h=this.highlighter!=null&&Ge(n.theme),c=this.highlighter!=null&&mt(this.computedLang),u=!l&&c;if(this.highlighter!=null&&h&&(i||l||!this.renderCache.highlighted&&u||this.renderCache.result==null)){const{result:f,options:g}=this.renderFileWithHighlighter(e,this.highlighter,l||!c);this.renderCache={file:e,options:g,highlighted:u,result:f,renderRange:void 0}}(!h||!l&&!c)&&this.asyncHighlight(e).then(({result:f,options:g})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(e,f,g,!l)})}return this.renderCache.result!=null?this.processFileResult(this.renderCache.file,t,this.renderCache.result):void 0}async asyncRender(e,t=Ae){const{result:n}=await this.asyncHighlight(e);return this.processFileResult(e,t,n)}async asyncHighlight(e){const t=Pt(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength());this.computedLang=t?"text":e.lang??Q(e.name);const n=this.highlighter!=null&&Go(cn(this.options.theme)),i=t||this.highlighter!=null&&mt(this.computedLang);return(this.highlighter==null||!n||!i)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(e,this.highlighter,t)}renderFileWithHighlighter(e,t,n=!1){const{options:i}=this.getRenderOptions(e);return{result:hs(e,t,i,{forcePlainText:n}),options:i}}processFileResult(e,t,{code:n,themeStyles:i,baseThemeType:r}){const{disableFileHeader:o=!1}=this.options,s=[],l=Ee(),a=this.getOrCreateLineCache(e);let d=0;const h=kt(t)?Xt(this.lineAnnotations):void 0;return h!=null&&(l.children.push(j("context","annotation",1)),s.push(qt({hunkIndex:-1,lineIndex:-1,annotations:h.map(c=>ge(c))})),d++),Ct({lines:a,startingLine:t.startingLine,totalLines:t.totalLines,callback:({lineIndex:c,lineNumber:u})=>{const f=n[c];if(f==null){const g="FileRenderer.processFileResult: Line doesnt exist";throw console.error(g,{name:e.name,lineIndex:c,lineNumber:u,lines:a}),new Error(g)}if(f!=null){l.children.push(Di("context",u,`${c}`)),s.push(f),d++;const g=this.lineAnnotations[u];g!=null&&(l.children.push(j("context","annotation",1)),s.push(qt({hunkIndex:0,lineIndex:u,annotations:g.map(b=>ge(b))})),d++)}}}),l.properties.style=`grid-row: span ${d}`,{gutterAST:l.children??[],contentAST:s,preAST:this.createPreElement(a.length),headerAST:o?void 0:this.renderHeader(e),totalLines:a.length,rowCount:d,themeStyles:i,baseThemeType:r,bufferBefore:t.bufferBefore,bufferAfter:t.bufferAfter,css:""}}renderHeader(e){const{headerRenderMode:t="default",stickyHeader:n=!1}=this.options;return Yi({fileOrDiff:e,mode:t,stickyHeader:n})}renderFullHTML(e){return pe(this.renderFullAST(e))}renderFullAST(e,t=[]){return t.push(A({tagName:"code",children:this.renderCodeAST(e),properties:{"data-code":""}})),{...e.preAST,children:t}}renderCodeAST(e){const t=Ee();return t.children=e.gutterAST,t.properties.style=`grid-row: span ${e.rowCount}`,[t,er(e.contentAST,e.rowCount)]}renderPartialHTML(e,t=!1){return t?pe(A({tagName:"code",children:e,properties:{"data-code":""}})):pe(e)}async initializeHighlighter(){return this.highlighter=await xt(un(this.computedLang,this.options)),this.highlighter}onHighlightSuccess(e,t,n,i=!0){if(this.renderCache==null)return;const r=!ae(e,this.renderCache.file)||!this.renderCache.highlighted||!Oe(n,this.renderCache.options);this.renderCache={file:e,options:n,highlighted:i,result:t,renderRange:void 0},r&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(e,t){const n=this.workerManager?.getFileResultCache(e);if(!(n==null||!Oe(t,n.options)))return n}hasHighlightedRenderCache(e,t){const{renderCache:n}=this;return n?.result!=null&&n.highlighted&&ae(e,n.file)&&Oe(t,n.options)}onHighlightError(e){console.error(e)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}createPreElement(e){const{disableLineNumbers:t=!1,overflow:n="scroll"}=this.options;return Xi({type:"file",diffIndicators:"none",disableBackground:!0,disableLineNumbers:t,overflow:n,split:!1,totalLines:e})}};function Pt(e,t){return e>t}const nr=`
+`:`
+`)+`
+
    +`}function zue(){return`
+
+`}function jue(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`
  • `}function Hue(){return`
  • +`}function Wue(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),` ↩︎`}function que(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=$ue,e.renderer.rules.footnote_block_open=Pue,e.renderer.rules.footnote_block_close=zue,e.renderer.rules.footnote_open=jue,e.renderer.rules.footnote_close=Hue,e.renderer.rules.footnote_anchor=Wue,e.renderer.rules.footnote_caption=Oue,e.renderer.rules.footnote_anchor_name=Rue;function i(l,a,u,c){const d=l.bMarks[a]+l.tShift[a],f=l.eMarks[a];if(d+4>f||l.src.charCodeAt(d)!==91||l.src.charCodeAt(d+1)!==94)return!1;let h;for(h=d+2;h=f||l.src.charCodeAt(++h)!==58)return!1;if(c)return!0;h++,l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.refs||(l.env.footnotes.refs={});const m=l.src.slice(d+2,h-2);l.env.footnotes.refs[`:${m}`]=-1;const g=new l.Token("footnote_reference_open","",1);g.meta={label:m},g.level=l.level++,l.tokens.push(g);const v=l.bMarks[a],y=l.tShift[a],b=l.sCount[a],A=l.parentType,w=h,M=l.sCount[a]+h-(l.bMarks[a]+l.tShift[a]);let N=M;for(;h=u||l.src.charCodeAt(c)!==94||l.src.charCodeAt(c+1)!==91)return!1;const d=c+2,f=t(l,c+1);if(f<0)return!1;if(!a){l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.list||(l.env.footnotes.list=[]);const h=l.env.footnotes.list.length,m=[];l.md.inline.parse(l.src.slice(d,f),l.md,l.env,m);const g=l.push("footnote_ref","",0);g.meta={id:h},l.env.footnotes.list[h]={content:l.src.slice(d,f),tokens:m}}return l.pos=f+1,l.posMax=u,!0}function s(l,a){const u=l.posMax,c=l.pos;if(c+3>u||!l.env.footnotes||!l.env.footnotes.refs||l.src.charCodeAt(c)!==91||l.src.charCodeAt(c+1)!==94)return!1;let d;for(d=c+2;d=u)return!1;d++;const f=l.src.slice(c+2,d-1);if(typeof l.env.footnotes.refs[`:${f}`]>"u")return!1;if(!a){l.env.footnotes.list||(l.env.footnotes.list=[]);let h;l.env.footnotes.refs[`:${f}`]<0?(h=l.env.footnotes.list.length,l.env.footnotes.list[h]={label:f,count:0},l.env.footnotes.refs[`:${f}`]=h):h=l.env.footnotes.refs[`:${f}`];const m=l.env.footnotes.list[h].count;l.env.footnotes.list[h].count++;const g=l.push("footnote_ref","",0);g.meta={id:h,subId:m,label:f}}return l.pos=d,l.posMax=u,!0}function r(l){let a,u,c,d=!1;const f={};if(!l.env.footnotes||(l.tokens=l.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,u=[],c=m.meta.label,!1):m.type==="footnote_reference_close"?(d=!1,f[":"+c]=u,!1):(d&&u.push(m),!d)}),!l.env.footnotes.list))return;const h=l.env.footnotes.list;l.tokens.push(new l.Token("footnote_block_open","",1));for(let m=0,g=h.length;m0?h[m].count:1;for(let A=0;A?@[\]^_`{|}~-])/g;function Zue(e,t){const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==94||t||i+2>=n)return!1;e.pos=i+1;let o=!1;for(;e.pos{t.exports=function(g,v){v=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},v),g.core.ruler.after("inline","github-task-lists",function(y){for(var b=y.tokens,A=0,w=2;w=0;b--)if(g[b].level===y)return b;return-1}function o(g,v){return d(g[v])&&f(g[v-1])&&h(g[v-2])&&m(g[v])}function s(g,v,y,b){var A=y.idPrefix+v;g.children[0].content=g.children[0].content.slice(3),g.children.unshift(l(A,b)),g.children.push(a(b)),g.children.unshift(r(g,A,y,b)),y.divWrap&&(g.children.unshift(u(y,b)),g.children.push(c(b)))}function r(g,v,y,b){var A=new b("checkbox_input","input",0);return A.attrs=[["type","checkbox"],["id",v]],/^\[[xX]\][ \u00A0]/.test(g.content)===!0&&A.attrs.push(["checked","true"]),y.disabled===!0&&A.attrs.push(["disabled","true"]),A}function l(g,v){var y=new v("label_open","label",1);return y.attrs=[["for",g]],y}function a(g){return new g("label_close","label",-1)}function u(g,v){var y=new v("checkbox_open","div",0);return y.attrs=[["class",g.divClass]],y}function c(g){return new g("checkbox_close","div",-1)}function d(g){return g.type==="inline"}function f(g){return g.type==="paragraph_open"}function h(g){return g.type==="list_item_open"}function m(g){return/^\[[xX \u00A0]\][ \u00A0]/.test(g.content)}})});const Yue=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Jue(e){return e>=55296&&e<=57343||e>1114111?65533:Yue.get(e)??e}function Xue(e){const t=atob(e),n=t.length&-2,i=new Uint16Array(n/2);for(let o=0,s=0;o=Eo.ZERO&&e<=Eo.NINE}function tce(e){return e>=Eo.UPPER_A&&e<=Eo.UPPER_F||e>=Eo.LOWER_A&&e<=Eo.LOWER_F}function nce(e){return e>=Eo.UPPER_A&&e<=Eo.UPPER_Z||e>=Eo.LOWER_A&&e<=Eo.LOWER_Z||CC(e)}function ice(e){return e===Eo.EQUALS||nce(e)}var Rs;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Rs||(Rs={}));var fd;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(fd||(fd={}));var oce=class{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=Rs.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=fd.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=Rs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Rs.EntityStart:return e.charCodeAt(t)===Eo.NUM?(this.state=Rs.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Rs.NamedEntity,this.stateNamedEntity(e,t));case Rs.NumericStart:return this.stateNumericStart(e,t);case Rs.NumericDecimal:return this.stateNumericDecimal(e,t);case Rs.NumericHex:return this.stateNumericHex(e,t);case Rs.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|RT)===Eo.LOWER_X?(this.state=Rs.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Rs.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t>14;for(;t>7;if(this.runConsumed===0){const l=i&Rr.JUMP_TABLE;if(e.charCodeAt(t)!==l)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const l=this.runConsumed-1,a=n[this.treeIndex+1+(l>>1)],u=l%2===0?a&255:a>>8&255;if(e.charCodeAt(t)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(r>>1),i=n[this.treeIndex],o=(i&Rr.VALUE_LENGTH)>>14}if(t>=e.length)break;const s=e.charCodeAt(t);if(s===Eo.SEMI&&o!==0&&(i&Rr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.treeIndex=rce(n,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===fd.Attribute&&(o===0||ice(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],o=(i&Rr.VALUE_LENGTH)>>14,o!==0){if(s===Eo.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==fd.Strict&&(i&Rr.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&Rr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~(Rr.VALUE_LENGTH|Rr.FLAG13):i[e+1],n),t===3&&this.emitCodePoint(i[e+2],n),n}end(){switch(this.state){case Rs.NamedEntity:return this.result!==0&&(this.decodeMode!==fd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rs.NumericDecimal:return this.emitNumericEntity(0,2);case Rs.NumericHex:return this.emitNumericEntity(0,3);case Rs.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rs.EntityStart:return 0}}};function sce(e){let t="";const n=new oce(e,i=>t+=String.fromCodePoint(i));return function(o,s){let r=0,l=0;for(;(l=o.indexOf("&",l))>=0;){t+=o.slice(r,l),n.startEntity(s);const u=n.write(o,l+1);if(u<0){r=l+n.end();break}r=l+u,l=u===0?r+1:r}const a=t+o.slice(r);return t="",a}}function rce(e,t,n,i){const o=(t&Rr.BRANCH_LENGTH)>>7,s=t&Rr.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}const r=o+1>>1;let l=0,a=o-1;for(;l<=a;){const u=l+a>>>1,c=e[n+(u>>1)]>>(u&1)*8&255;if(ci)a=u-1;else return e[n+r+u]}return-1}const lce=sce(ece);function d7(e,t=fd.Legacy){return lce(e,t)}var ace=Iz(Que());const OT={};function uce(e){let t=OT[e];if(t)return t;t=OT[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),s+=6;continue}}if((l&248)===240&&s+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}Xb.defaultChars=";/?:@&=+$,#";Xb.componentChars="";var AC=Xb;const $T={};function cce(e){let t=$T[e];if(t)return t;t=$T[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const i=cce(t);let o="";for(let s=0,r=e.length;s=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1=56320&&a<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}e4.defaultChars=";/?:@&=+$,-_.!~*'()#";e4.componentChars="-_.!~*'()";var Tz=e4;function f7(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function dk(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const dce=/^([a-z0-9.+-]+:)/i,fce=/:[0-9]*$/,hce=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pce=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),mce=["'"].concat(pce),PT=["%","/","?",";","#"].concat(mce),zT=["/","?","#"],gce=255,jT=/^[+a-z0-9A-Z_-]{0,63}$/,vce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,HT={javascript:!0,"javascript:":!0},WT={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yce(e,t){if(e&&e instanceof dk)return e;const n=new dk;return n.parse(e,t),n}dk.prototype.parse=function(e,t){let n,i,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const u=hce.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=dce.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&HT[r])&&(s=s.substr(2),this.slashes=!0)),!HT[r]&&(o||r&&!WT[r])){let u=-1;for(let m=0;m127?b+="x":b+=y[A];if(!b.match(jT)){const A=m.slice(0,g),w=m.slice(g+1),M=y.match(vce);M&&(A.push(M[1]),w.unshift(M[2])),w.length&&(s=w.join(".")+s),this.hostname=A.join(".");break}}}}this.hostname.length>gce&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const a=s.indexOf("?");return a!==-1&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),WT[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};dk.prototype.parseHost=function(e){let t=fce.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var h7=yce,Ez=Fue({decode:()=>AC,encode:()=>Tz,format:()=>f7,parse:()=>h7}),kce=Object.defineProperty,Lz=e=>{let t={};for(var n in e)kce(t,n,{get:e[n],enumerable:!0});return t},Is=class{type;tag;attrs;map;nesting;level;children;content;markup;info;meta;block;hidden;constructor(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},bce=Lz({arrayReplaceAt:()=>Mce,assign:()=>Sce,countLines:()=>$o,escapeHtml:()=>Rce,escapeRE:()=>$ce,fromCodePoint:()=>Q0,has:()=>xce,isMdAsciiPunct:()=>pk,isPunctChar:()=>hk,isPunctCode:()=>xC,isSpace:()=>_ce,isString:()=>Cce,isValidEntityCode:()=>n4,isWhiteSpace:()=>G0,lib:()=>Pce,mdurl:()=>Ez,normalizeReference:()=>t4,ucmicro:()=>fk,unescapeAll:()=>Y0,unescapeMd:()=>Lce});const fk={Any:/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc:/[\0-\x1F\x7F-\x9F]/,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,S:/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z:/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/};function wce(e){return Object.prototype.toString.call(e)}function Cce(e){return wce(e)==="[object String]"}const Ace=Object.prototype.hasOwnProperty;function xce(e,t){return Ace.call(e,t)}function Sce(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(i=>{e[i]=n[i]})}}),e}function _ce(e){return e===9||e===32}function G0(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function hk(e){return fk.P.test(e)||fk.S.test(e)}const qT=new Map;function xC(e){if(pk(e))return!0;if(e>=0&&e<128)return!1;const t=qT.get(e);if(t!==void 0)return t;const n=hk(String.fromCharCode(e));return qT.set(e,n),n}function pk(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function t4(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Mce(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function n4(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Q0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Nz=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,Ice=new RegExp(`${Nz.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Tce=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ece(e,t){if(t.charCodeAt(0)===35&&Tce.test(t)){const i=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return n4(i)?Q0(i):e}const n=d7(e);return n!==e?n:e}function Lce(e){return e.includes("\\")?e.replace(Nz,"$1"):e}function Y0(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Ice,(t,n,i)=>n||Ece(t,i))}const Nce=/[&<>"]/,Dce=/[&<>"]/g,Fce={"&":"&","<":"<",">":">",'"':"""};function Bce(e){return Fce[e]}function Rce(e){return Nce.test(e)?e.replace(Dce,Bce):e}const Oce=/[.?*+^$[\]\\(){}|-]/g;function $ce(e){return e.replace(Oce,"\\$&")}const Pce={mdurl:Ez,ucmicro:fk};function $o(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(` +`,n+1))!==-1;)t++;return t}const zce=/(?:^|\n)[ \t]{0,3}\[\^[^\]\n]+\]:/m,jce=/(?:^|\n)[ \t]{0,3}\*\[[^\]\n]+\]:/m,Hce=/(?:^|\n)[ \t]{0,3}\[(?!\^)(?:\\[\s\S]|[^\]\\[])+\][ \t]*:/m,p7=["references","footnotes","abbreviations","abbr","abbrs"],m7=Symbol.for("markdown-it-ts.global-state"),g7=Object.prototype.hasOwnProperty;function UT(e){return e==="reference-definition"||e==="footnote-definition"||e==="abbreviation-definition"}function Pa(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _d(e){if(Array.isArray(e))return e.map(t=>_d(t));if(Pa(e)){const t={};for(const n of Object.keys(e))t[n]=_d(e[n]);return t}return e}function mk(e){return Array.isArray(e)?e.map((t,n)=>String(n)):Pa(e)?Object.keys(e):[]}function SC(e,t){if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ns.has(r)?!SC(o[r],Dz(i.value,r)):!0)}}function Lc(e){const t=v7(e);if(t){for(const n of p7){const i=t.snapshot[n];if(!i){delete e[n];continue}if(i.ownedKeys){qce(e,n,i);continue}i.existed?e[n]=Wce(e[n],i.value):delete e[n]}delete e[m7]}}function l8(e){return{area:e,attempted:!0,matched:!1,attemptMs:0,blocks:0,headings:0,paragraphs:0,lists:0,fences:0,paragraphCacheHits:0,paragraphCacheMisses:0,paragraphCacheBypasses:0,listCacheHits:0,listCacheMisses:0,fenceCacheHits:0,fenceCacheMisses:0}}const _C=Symbol.for("markdown-it-ts.diagnostics");function Pv(e,t){if(e)try{const n=e[_C];if(n&&typeof n=="object")return n;if(!t)return;const i={};return e[_C]=i,i}catch{return}}function lc(e){return Pv(e,!1)}function Vce(e){if(e)try{const t=e[_C];t&&typeof t=="object"&&(delete t.strategy,delete t.chunk,delete t.unbounded,delete t.editable,delete t.stockFast)}catch{}}function Or(e){Vce(e)}function og(e,t){const n=Pv(e,!0);n&&(n.stockFast=t)}function ss(e,t){const n=Pv(e,!0);n&&(n.strategy=t)}function a8(e,t){const n=Pv(e,!0);n&&(n.chunk=t)}function Fz(e,t){const n=Pv(e,!0);n&&(n.unbounded=t)}const Kce=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zce=/[\0-\x1F\x7F-\x9F]/,Gce=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Qce=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var Yce=class{src_Any=Kce.source;src_Cc=Zce.source;src_Z=Qce.source;src_P=Gce.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const i=this.escapeRE(e),o=this.escapeRE(t),s=`(?:(?!${this.src_ZCc}|${i}|${o}).)`;let r=`${i}${s}{0,1000}${o}`;for(let l=2;l<=n;l++)r=`${i}(?:${s}|${r}){0,1000}${o}`;return r}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},u8={validate:(e,t,n)=>{const i=n.re.get_http_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Jce={"http:":u8,"https:":u8,"ftp:":u8,"//":{validate:function(e,t,n){const i=n.re.get_relative_proto_validator();i.lastIndex=t;const o=i.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const i=n.re.get_mailto_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Xce="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",ede="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function tde(){const e=ede.split("|");return Xce.split("|").forEach(t=>{const n=t.indexOf(":"),i=t.slice(0,n);for(const o of t.slice(n+1))e.push(i+o)}),e}var nde={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:tde(),urlAuth:!1,maxLength:1e4},VT=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,i){const o=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=o,this.text=o,this.url=o}},Bz=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:t,...n}=e;this.__opts__={...nde,...n},this.__schemas__={...Jce},this.re=t||new Yce,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(i,o)=>o.normalize(i),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const i=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(i.lastIndex=0;(t=i.exec(e))!==null;){const s=e.slice(Math.max(0,t.index-65),t.index);if(o.test(s))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let i,o,s,r,l,a,u=!1,c=!1,d=!1,f=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(i=this.re.get_fuzzy_link_search(),i.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,s=this.re.get_mail_name_validator());;){const h=Math.max(f-1,0);if(o&&s&&!d&&(!l||l.index=f)break;o.lastIndex=f)break;i.lastIndexm.lastIndex))&&(m=r);let g;if(!u)for(;;){if(!a){n.lastIndexm.index)break;const b=a;a=void 0;const A=this.testSchemaAt(e,b.schema,b.lastIndex);if(A){g={schema:b.schema,index:b.index,lastIndex:b.lastIndex+A};break}}let v=g;if((!v||l&&(l.indexv.lastIndex))&&(v=l),(!v||r&&(r.indexv.lastIndex))&&(v=r),!v)break;v===l?l=void 0:v===r&&(r=void 0);const y=new VT(e,v.schema,v.index,v.lastIndex);y.schema?this.__schemas__[y.schema].normalize(y,this):this.normalize(y),t.push(y),f=v.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new VT(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[i.schema].normalize(i,this),i}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},ide=Mz({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,f=/[^\0-\x7F]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=35,v=Math.floor,y=String.fromCharCode;function b(P){throw new RangeError(m[P])}function A(P,O){const R=[];let z=P.length;for(;z--;)R[z]=O(P[z]);return R}function w(P,O){const R=P.split("@");let z="";R.length>1&&(z=R[0]+"@",P=R[1]),P=P.replace(h,".");const H=A(P.split("."),O).join(".");return z+H}function M(P){const O=[];let R=0;const z=P.length;for(;R=55296&&H<=56319&&RString.fromCodePoint(...P),T=function(P){return P>=48&&P<58?26+(P-48):P>=65&&P<91?P-65:P>=97&&P<123?P-97:36},C=function(P,O){return P+22+75*(P<26)-((O!=0)<<5)},I=function(P,O,R){let z=0;for(P=R?v(P/700):P>>1,P+=v(P/O);P>g*26>>1;z+=36)P=v(P/g);return v(z+(g+1)*P/(P+38))},S=function(P){const O=[],R=P.length;let z=0,H=128,j=72,Q=P.lastIndexOf("-");Q<0&&(Q=0);for(let ae=0;ae=128&&b("not-basic"),O.push(P.charCodeAt(ae));for(let ae=Q>0?Q+1:0;ae=R&&b("invalid-input");const ve=T(P.charCodeAt(ae++));ve>=36&&b("invalid-input"),ve>v((2147483647-z)/oe)&&b("overflow"),z+=ve*oe;const Te=te<=j?1:te>=j+26?26:te-j;if(vev(2147483647/Fe)&&b("overflow"),oe*=Fe}const G=O.length+1;j=I(z-W,G,W==0),v(z/G)>2147483647-H&&b("overflow"),H+=v(z/G),z%=G,O.splice(z++,0,H)}return String.fromCodePoint(...O)},E=function(P){const O=[];P=M(P);const R=P.length;let z=128,H=0,j=72;for(const W of P)W<128&&O.push(y(W));const Q=O.length;let ae=Q;for(Q&&O.push("-");ae=z&&oev((2147483647-H)/G)&&b("overflow"),H+=(W-z)*G,z=W;for(const oe of P)if(oe2147483647&&b("overflow"),oe===z){let te=H;for(let ve=36;;ve+=36){const Te=ve<=j?1:ve>=j+26?26:ve-j;if(te32))return s;if(i===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=Y0(e.slice(t,o)),s.pos=o,s.ok=!0),s}var Oz=b7;const e9=-2;function ode(e,t,n,i){let o=1,s=t+1;for(;s=0&&t+1>=c)return-1;const d=l.indexOf("]",t+1);if(d<0||d>=a)return e.linkLabelNoCloseFrom=t+1,-1;const f=ode(l,t,a,n);if(f!==e9)return f;for(e.pos=t+1;e.pos=n)return r;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return r;t++,s++,l===40&&(l=41),r.marker=l}for(;s=0?e.attrs[n][1]:null}function lde(e,t,n){const i=i4(e,t);i<0?A7(e,[t,n]):e.attrs[i][1]=`${e.attrs[i][1]} ${n}`}var ade=Lz({attrGet:()=>rde,attrIndex:()=>i4,attrJoin:()=>lde,attrPush:()=>A7,attrSet:()=>sde,parseLinkDestination:()=>b7,parseLinkLabel:()=>w7,parseLinkTitle:()=>C7});function ude(e){return e.includes("\r")||e.includes("\0")}function Pz(e){return typeof e=="string"?e:e.toString()}function cde(e){if(e.inlineMode){const t=new Is("inline","",0);t.content=Pz(e.src),t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}const dde=/^([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])?)*)$/,fde=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function hde(e,t){let n=e.pos;const i=e.src;if(i.charCodeAt(n)!==60)return!1;const o=n,s=e.posMax;for(;;){if(++n>=s)return!1;const l=i.charCodeAt(n);if(l===60)return!1;if(l===62)break}const r=i.slice(o+1,n);if(fde.test(r)){const l=e.md.normalizeLink(r);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(dde.test(r)){const l=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}var zz=hde;function pde(e,t){const n=e.src;let i=e.pos;if(n.charCodeAt(i)!==96)return!1;const o=i;i++;const s=e.posMax;for(;i2&&f.charCodeAt(0)===32&&f.charCodeAt(f.length-1)===32&&(f=f.slice(1,-1)),d.content=f}return e.pos=a,!0}e.backticks[c]=u}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=l,!0}var jz=pde;function KT(e){const t={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let r=0;ra;u-=s[u]+1){const d=e[u];if(d.marker===l.marker&&d.open&&d.end<0){let f=!1;if((d.close||l.open)&&(d.length+l.length)%3===0&&(d.length%3!==0||l.length%3!==0)&&(f=!0),!f){const h=u>0&&!e[u-1].open?s[u-1]+1:0;s[r]=r-u+h,s[u]=h,l.open=!1,d.end=r,d.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=c)}}function mde(e){const t=e.tokens_meta,n=e.tokens_meta.length;KT(e.delimiters);for(let i=0;i=0;o--){const s=t[o],r=s.marker;if(r!==95&&r!==42||s.end===-1)continue;const l=t[s.end],a=s.token,u=l.token,c=o>0&&t[o-1].end===s.end+1&&t[o-1].marker===r&&t[o-1].token===a-1&&t[s.end+1].token===u+1,d=r===42?Hz:Wz,f=i[a];c?(f.type="strong_open",f.tag="strong",f.nesting=1,f.markup=d+d,f.content=""):(f.type="em_open",f.tag="em",f.nesting=1,f.markup=d,f.content="");const h=i[u];c?(h.type="strong_close",h.tag="strong",h.nesting=-1,h.markup=d+d,h.content=""):(h.type="em_close",h.tag="em",h.nesting=-1,h.markup=d,h.content=""),c&&(i[t[o-1].token].content="",i[t[s.end+1].token].content="",o--)}}function yde(e){const t=e.tokens_meta,n=e.tokens_meta.length;ZT(e,e.delimiters);for(let i=0;i=48&&e<=57}function kde(e){const t=e|32;return x7(e)||t>=97&&t<=102}function Uz(e){const t=e|32;return t>=97&&t<=122}function bde(e){return Uz(e)||x7(e)}function wde(e,t,n){let i=t+2;if(i>=n)return null;let o=!1,s=7,r=i;for((e.charCodeAt(i)|32)===120&&(o=!0,s=6,i++,r=i);i=n||e.charCodeAt(i)!==59?null:e.slice(t,i+1)}function Cde(e,t,n){let i=t+1;if(i>=n||!Uz(e.charCodeAt(i)))return null;for(i++;i=n||e.charCodeAt(i)!==59)return null;const o=e.slice(t,i+1);return qz(o)!==o?o:null}function Ade(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=wde(e.src,n,i);if(o){if(!t){const s=(o.charCodeAt(2)|32)===120?Number.parseInt(o.slice(3,-1),16):Number.parseInt(o.slice(2,-1),10),r=e.push("text_special","",0);r.content=n4(s)?Q0(s):Q0(65533),r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}else{const o=Cde(e.src,n,i);if(o){const s=qz(o);if(!t){const r=e.push("text_special","",0);r.content=s,r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}return!1}var Vz=Ade;const Kz=(()=>{const e=new Array(256).fill(0),t="\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-";for(let n=0;n<32;n++)e[t.charCodeAt(n)]=1;return e})(),IC=new Array(128),Zz=new Array(128);for(let e=0;e<128;e++){const t=String.fromCharCode(e);IC[e]=`\\${t}`,Zz[e]=Kz[e]?t:IC[e]}function GT(e,t,n){e.pending&&e.pushPending();const i=new Is("text_special","",0);i.level=e.level,i.content=t,i.markup=n,i.info="escape",e.pendingLevel=e.level,e.tokens.push(i),e.tokens_meta.push(null)}function xde(e,t){let n=e.pos;const i=e.posMax,o=e.src;if(o.charCodeAt(n)!==92||(n++,n>=i))return!1;let s=o.charCodeAt(n);if(s===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&s<=56319&&n+1=56320&&a<=57343&&n++}return e.pos=n+1,!0}let r=o.charAt(n);if(s>=55296&&s<=56319&&n+1=56320&&a<=57343&&(r+=o.charAt(n+1),n++)}const l=`\\${r}`;return GT(e,s<256&&Kz[s]?r:l,l),e.pos=n+1,!0}var Gz=xde;function Sde(e){let t,n,i=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t0&&i++,r.type==="text"&&t+1\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Yz="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Mde=new RegExp(`^(?:${Qz}|${Yz}||<\\?[\\s\\S]*?\\?>|]*>|)`),Ide=new RegExp(`^(?:${Qz}|${Yz})`);function Jz(e){return e===32||e===9||e===10||e===12||e===13}function Tde(e){if(e.length<3||e.charCodeAt(0)!==60||(e.charCodeAt(1)|32)!==97)return!1;const t=e.charCodeAt(2);return t===62||Jz(t)}function Ede(e){if(e.length<4||e.charCodeAt(0)!==60||e.charCodeAt(1)!==47||(e.charCodeAt(2)|32)!==97)return!1;for(let t=3;t=97&&t<=122}function Nde(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos,o=e.src;if(o.charCodeAt(i)!==60||i+2>=n)return!1;const s=o.charCodeAt(i+1);if(s!==33&&s!==63&&s!==47&&!Lde(s))return!1;const r=o.slice(i).match(Mde);if(!r)return!1;const l=r[0];if(!t){const a=e.pushSimple("html_inline","");a.content=l,Tde(l)&&e.linkLevel++,Ede(l)&&e.linkLevel--}return e.pos+=l.length,!0}var Xz=Nde;function Dde(e,t){let n,i,o,s,r,l,a,u,c="";const d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,m=gk(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s=f)return!1;if(l=Oz(e.src,s,e.posMax),l.ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",u=s;s=f||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(u,s++):s=m+1):s=m+1,o||(o=e.src.slice(h,m)),r=e.env.references[t4(o)],!r)return e.pos=d,!1;c=r.href,a=r.title}if(!t){i=e.src.slice(h,m);const g=[];e.md.inline.parse(i,e.md,e.env,g);const v=e.push("image","img",0);v.attrs=[["src",c],["alt",""]],v.children=g,v.content=i,a&&v.attrs.push(["title",a])}return e.pos=s,e.posMax=f,!0}var ej=Dde;function c8(e,t,n){for(;t"u")return!1;let d;if(l=r+1,l=0?(d=n.slice(h,m),d||(d=n.slice(s,r)),l=m+1):d=n.slice(s,r)}else d=n.slice(s,r);const f=e.env.references[t4(d)];if(!f)return e.pos=i,!1;a=f.href,u=f.title}if(!t){e.pos=s,e.posMax=r;const d=e.push("link_open","a",1);d.attrs=u?[["href",a],["title",u]]:[["href",a]],e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=l,e.posMax=o,!0}var tj=Fde;function nj(e){const t=e|32;return t>=97&&t<=122}function Bde(e){return e>=48&&e<=57}function Rde(e){return nj(e)||Bde(e)||e===43||e===45||e===46}function Ode(e){if(e.length===0)return null;let t=e.length-1;for(;t>=0&&Rde(e.charCodeAt(t));)t--;return t++,t>=e.length||!nj(e.charCodeAt(t))?null:e.slice(t)}function $de(e,t,n){let i=t;for(;i0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=Ode(e.pending);if(!o)return!1;const s=$de(e.src,n-o.length,i),r=e.md.linkify.matchAtStart(s);if(!r)return!1;let l=r.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=l.length-o.length,!0}function Pde(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.pushSimple("hardbreak","br")}else e.pending=e.pending.slice(0,-1),e.pushSimple("softbreak","br");else e.pushSimple("softbreak","br");for(n++;n=o||YT(n.charCodeAt(i)))return!1;let s=i+1;for(;si-o),n=Math.floor(t.length/2);return t.length%2===0?(t[n-1]+t[n])/2:t[n]}function qde(e,t){return{chain:e,name:t,calls:0,hits:0,inclusiveMs:0,medianMs:0,maxMs:0,normalCalls:0,normalHits:0,silentCalls:0,silentHits:0,samples:[]}}function rj(e){const t=e;if(!t)return null;if(t.__mdtsRuleProfile)return t.__mdtsRuleProfile;if(!t.__mdtsProfileRules)return null;const n=t.__mdtsProfileRules===!0?{}:t.__mdtsProfileRules,i={enabled:!0,fixture:n.fixture,mode:n.mode,startedAt:S7(),records:Object.create(null)};return t.__mdtsRuleProfile=i,i}function A1(e,t,n,i,o,s){const r=rj(e);if(!r)return;const l=`${t}:${n}`,a=r.records[l]??(r.records[l]=qde(t,n));a.calls++,a.inclusiveMs+=i,i>a.maxMs&&(a.maxMs=i),a.samples.push(i),s?(a.silentCalls++,o&&a.silentHits++):(a.normalCalls++,o&&a.normalHits++),o&&a.hits++,r.completedAt=S7()}function Ude(e){const t=rj(e);if(!t)return null;const n=Object.keys(t.records);for(let i=0;io.name===e);i>=0&&this.rules.splice(i,1),this.rules.push({name:e,fn:t,alt:n?.alt||[],enabled:!0}),this.invalidateCache()}at(e,t,n){const i=this.rules.findIndex(o=>o.name===e);if(t===void 0){if(i<0)return;const o=this.rules[i];return Object.freeze({name:o.name,fn:o.fn,alt:o.alt?Object.freeze(o.alt.slice()):void 0,enabled:o.enabled})}if(i<0)throw new Error(`Parser rule not found: ${e}`);this.rules[i].fn=t,n?.alt!==void 0&&(this.rules[i].alt=n.alt),this.invalidateCache()}before(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}after(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o+1,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache.get(t)??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache.get(t)??[]}compileCache(){const e=new Set([""]);for(const i of this.rules)if(i.enabled&&i.alt)for(const o of i.alt)e.add(o);const t=new Map,n=new Map;for(const i of e){const o=[],s=[];for(const r of this.rules)r.enabled&&(i!==""&&!r.alt?.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t.set(i,o),n.set(i,s)}this.cache=t,this.namedCache=n}},lj=class{src;md;env;tokens;tokens_meta;pos;posMax;level;pending;pendingLevel;cache;delimiters;_prev_delimiters;backticks;backticksScanned;linkLevel;linkLabelNoCloseFrom;maxNesting;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.tokens_meta=new Array(i.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.linkLabelNoCloseFrom=-1,this.maxNesting=t.options.maxNesting}pushPending(){const e=new Is("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}pushSimple(e,t){this.pending&&this.pushPending();const n=new Is(e,t,0);return n.level=this.level,this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(null),n}push(e,t,n){if(this.pending&&this.pushPending(),n===0)return this.pushSimple(e,t);const i=new Is(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i}scanDelims(e,t){const{src:n,posMax:i}=this,o=n.charCodeAt(e);let s=e;for(;s0?n.charCodeAt(e-1):32,a=s@[\]\\^_`{}~]/;function XT(e,t){switch(e.src.charCodeAt(e.pos)){case 10:return oj(e,t);case 33:return ej(e,t);case 38:return Vz(e,t);case 42:case 95:return MC.tokenize(e,t);case 58:return e.md.options.linkify&&ij(e,t);case 60:return zz(e,t)||Xz(e,t);case 91:return tj(e,t);case 92:return Gz(e,t);case 96:return jz(e,t);case 126:return TC.tokenize(e,t);default:return sj(e,t)}}function aj(e){return!Vde.test(e)}var Kde=class{ruler;ruler2;cachedRulesVersion=-1;cachedRules=[];cachedRules2Version=-1;cachedRules2=[];defaultRulerVersion;defaultRuler2Version;constructor(){this.ruler=new JT,this.ruler2=new JT,this.ruler.push("text",sj),this.ruler.push("linkify",ij),this.ruler.push("newline",oj),this.ruler.push("escape",Gz),this.ruler.push("backticks",jz),this.ruler.push("strikethrough",TC.tokenize),this.ruler.push("emphasis",MC.tokenize),this.ruler.push("link",tj),this.ruler.push("image",ej),this.ruler.push("autolink",zz),this.ruler.push("html_inline",Xz),this.ruler.push("entity",Vz),this.ruler2.push("balance_pairs",gde),this.ruler2.push("strikethrough",TC.postProcess),this.ruler2.push("emphasis",MC.postProcess),this.ruler2.push("fragments_join",_de),this.defaultRulerVersion=this.ruler.version,this.defaultRuler2Version=this.ruler2.version}skipToken(e){const t=e.pos,n=this.getRules(),i=n.length,o=e.cache,s=o[t],r=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules"));if(s!==void 0){e.pos=s;return}let l=!1;if(e.level=e.pos)throw new Error("inline rule didn't increment state.pos");break}}}else if(this.isDefaultRuleset()){if(e.level++,l=XT(e,!0),e.level--,l&&t>=e.pos)throw new Error("inline rule didn't increment state.pos")}else for(let a=0;a=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;l||e.pos++,o[t]=e.pos}tokenize(e){const t=this.getRules(),n=t.length,i=e.posMax;if(!(e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules")))){const s=this.isDefaultRuleset();for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos")}if(l){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending();return}const o=this.ruler.getNamedRules("");for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending()}isDefaultRuleset(){return this.ruler.version===this.defaultRulerVersion&&this.ruler2.version===this.defaultRuler2Version}parseSource(e,t,n,i){if(typeof e=="string"&&e.length>0&&this.isDefaultRuleset()&&aj(e)){const a=new Is("text","",0);a.content=e,i.push(a);return}const o=new lj(e,t,n,i);this.tokenize(o);const s=this.getRules2(),r=s.length;if(!(o.env&&(Object.prototype.hasOwnProperty.call(o.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(o.env,"__mdtsProfileRules")))){for(let a=0;a0&&aj(s.content)){const r=new Is("text","",0);r.content=s.content,s.children.push(r);continue}e.md.inline.parse(s.content,e.md,e.env,s.children)}}}const Gde=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,Qde=/[0-9a-z]/i;function Yde(e){return/^\s]/i.test(e)}function Jde(e){return/^<\/a\s*>/i.test(e)}function Xde(e,t){if(t.schema||t.index!==0||!t.raw)return t;for(let n=1;n=0;r--){const l=o[r];if(l.type==="link_close"){for(r--;r>=0&&o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(Yde(l.content)&&s>0&&s--,Jde(l.content)&&s++),s>0||l.type!=="text"||!e.md.linkify.test(l.content))continue;const a=l.content;let u=(e.md.linkify.match(a)||[]).map(h=>Xde(e.md.linkify,h));if(u.length===0)continue;const c=[];let d=l.level,f=0;u.length>0&&u[0].index===0&&r>0&&o[r-1].type==="text_special"&&(u=u.slice(1));for(let h=0;hf){const M=new Is("text","",0);M.content=a.slice(f,y),M.level=d,c.push(M)}const b=new Is("link_open","a",1);b.attrs=[["href",g]],b.level=d++,b.markup="linkify",b.info="auto",c.push(b);const A=new Is("text","",0);A.content=v,A.level=d,c.push(A);const w=new Is("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",c.push(w),f=m.lastIndex}if(f!==0){if(f=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(sfe,lfe)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function ufe(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&uj.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function cfe(e){if(e.md?.options?.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=n.content||(Array.isArray(n.children)?n.children.map(o=>o.type==="text"?o.content:"").join(""):"");ofe.test(i)&&afe(n.children||[]),uj.test(i)&&ufe(n.children||[])}}var dfe=class{rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t){const n=this.rules.findIndex(i=>i.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex(i=>i.name===e);if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn),this.namedCache=this.rules.filter(e=>e.enabled).map(e=>({name:e.name,fn:e.fn}))}getRules(e=""){return this.cache||this.compileCache(),this.cache}getNamedRules(e=""){return this.namedCache||this.compileCache(),this.namedCache}};const ffe=/['"]/,eE=/['"]/g,tE="’";function Q2(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function hfe(e,t){let n;const i=[],o=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let s=0;s=0&&!(i[n].level<=l);n--);if(i.length=n+1,r.type!=="text")continue;let a=r.content,u=0,c=a.length;e:for(;u=0)g=a.charCodeAt(d.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(u=48&&g<=57&&(h=f=!1),f&&h&&(f=y,h=b),!f&&!h){m&&(r.content=Q2(r.content,d.index,tE));continue}if(h)for(n=i.length-1;n>=0;n--){let M=i[n];if(i[n].level=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=typeof n.content=="string"?n.content:(n.children||[]).map(o=>o.content||"").join("");!ffe.test(i)||!n.children||hfe(n.children,e)}}function mfe(e){const t=e.tokens||[],n=t.length;for(let i=0;i=4||o.charCodeAt(c)!==62)return!1;if(i)return!0;const h=[],m=[],g=[],v=[],y=e.md.block.ruler.getRulesForState(e,"blockquote"),b=e.parentType;e.parentType="blockquote";let A=!1,w;for(w=t;w=d)break;if(o.charCodeAt(c++)===62&&!I){let E=a[w]+1,_,F;o.charCodeAt(c)===32?(c++,E++,F=!1,_=!0):o.charCodeAt(c)===9?(_=!0,(u[w]+E)%4===3?(c++,E++,F=!1):F=!0):_=!1;let q=E;for(h.push(s[w]),s[w]=c;c=d,m.push(u[w]),u[w]=a[w]+1+(_?1:0),g.push(a[w]),a[w]=q-E,v.push(l[w]),l[w]=c-s[w];continue}if(A)break;let S=!1;for(let E=0,_=y.length;E<_;E++)if(y[E](e,w,n,!0)){S=!0;break}if(S){e.lineMax=w,e.blkIndent!==0&&(h.push(s[w]),m.push(u[w]),v.push(l[w]),g.push(a[w]),a[w]-=e.blkIndent);break}h.push(s[w]),m.push(u[w]),v.push(l[w]),g.push(a[w]),a[w]=-1}const M=e.blkIndent;e.blkIndent=0;const N=e.push("blockquote_open","blockquote",1);N.markup=">";const T=[t,0];N.map=T,e.md.block.tokenize(e,t,w);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=f,e.parentType=b,T[1]=e.line;for(let I=0;I=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=`${e.getLines(t,o,4+e.blkIndent,!1)} +`,s.map=[t,e.line],!0}function wfe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let l=o;o=e.skipChars(o,r);let a=o-l;if(a<3)return!1;const u=e.src.slice(l,o),c=e.src.slice(o,s);if(r===96&&c.includes(String.fromCharCode(r)))return!1;if(i)return!0;let d=t,f=!1;for(;d++,!(d>=n||(o=l=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=4)&&(o=e.skipChars(o,r),!(o-l=4)return!1;let c=o.charCodeAt(a);if(c!==35||a>=u)return!1;let d=1;for(c=o.charCodeAt(++a);c===35&&a6||aa&&oE(o.charCodeAt(f-1))&&(u=f),e.line=t+1;const h=e.push("heading_open",nE[d],1);h.markup=iE[d],h.map=[t,e.line];const m=e.push("inline","",0);m.content=o.slice(a,u).trim(),m.map=[t,e.line],m.children=[];const g=e.push("heading_close",nE[d],-1);return g.markup=iE[d],!0}function Afe(e){switch(e){case 9:case 32:return!0}return!1}function xfe(e,t,n,i){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let l=1;for(;s|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Ide.source}\\s*$`),/^$/,!1]];function Sfe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),l=0;for(;l<_p.length&&!_p[l][0].test(r);l++);if(l===_p.length)return!1;if(i)return _p[l][2];let a=t+1;if(!_p[l][1].test(r)){for(;a=48&&e<=57}var pj=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];lineFlags=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType="root";level=0;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i;const o=this.src;let s=0,r=0,l=0,a=!1,u=0;for(let c=0,d=o.length;c0&&this.level++,this.tokens.push(i),i}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){const t=this.bMarks,n=this.tShift,i=this.eMarks;for(let o=this.lineMax;et;){const i=n.charCodeAt(--e);if(i!==9&&i!==32)return e+1}return e}skipChars(e,t){const n=this.src;for(let i=n.length;en;)if(t!==i.charCodeAt(--e))return e+1;return e}getLines(e,t,n,i){if(e>=t)return"";if(e+1===t){const c=e,d=this.bMarks[c];let f=d;const h=i?this.eMarks[c]+1:this.eMarks[c];let m=0;const g=this.src,v=this.bsCount,y=this.tShift;for(;fn?new Array(m-n+1).join(" ")+g.slice(f,h):g.slice(f,h)}const o=new Array(t-e),s=this.src,r=this.bMarks,l=this.eMarks,a=this.bsCount,u=this.tShift;for(let c=0,d=e;dn?o[c]=new Array(f-n+1).join(" ")+s.slice(m,g):o[c]=s.slice(m,g)}return o.join("")}};pj.prototype.Token=Is;function Mfe(e,t,n){for(let i=t;i=o)return!1;const s=n.charCodeAt(i);switch(s){case 35:case 42:case 43:case 45:case 60:case 62:case 95:case 96:case 126:return!0}return s>=48&&s<=57?!0:Mfe(n,i,o)}const rE=["","h1","h2"];function Ife(e,t,n){const i=e.md.block.ruler.getRulesForState(e,"paragraph"),o=e.src,s=e.bMarks,r=e.tShift,l=e.eMarks,a=e.sCount,u=e.blkIndent,c=mj(e);if(a[t]-u>=4)return!1;const d=e.parentType;e.parentType="paragraph";let f=0,h,m=t+1;for(;m=M)break;if(a[m]-u>3)continue;if(a[m]>=u&&(h=o.charCodeAt(w),h===45||h===61)){let T=w+1,C=T;for(;T=M){f=h===61?1:2;break}if(C-w>1)continue}if(a[m]<0||c&&!gj(e,m,o,w,M))continue;let N=!1;for(let T=0,C=i.length;Tw;){const N=o.charCodeAt(M-1);if(N!==9&&N!==32)break;M--}g=o.slice(w,M)}else g=e.getLines(t,m,u,!1).trim();e.line=m+1;const v=h===61?"=":"-",y=e.push("heading_open",rE[f],1);y.markup=v,y.map=[t,e.line];const b=e.push("inline","",0);b.content=g,b.map=[t,e.line-1],b.children=[];const A=e.push("heading_close",rE[f],-1);return A.markup=v,e.parentType=d,!0}function vj(e){switch(e){case 9:case 32:return!0}return!1}function lE(e,t){const n=e.eMarks,i=e.bMarks,o=e.tShift,s=e.src,r=n[t];let l=i[t]+o[t];const a=s.charCodeAt(l++);return a!==42&&a!==45&&a!==43||l=l)return-1;let u=s.charCodeAt(a++);if(u<48||u>57)return-1;for(;;){if(a>=l)return-1;if(u=s.charCodeAt(a++),u>=48&&u<=57){if(a-r>=10)return-1;continue}if(u===41||u===46)break;return-1}return a0&&++o=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let c,d,f;const h=e.src,m=e.bMarks,g=e.tShift,v=e.eMarks,y=e.sCount,b=e.bsCount,A=m[l]+g[l];if(A>=v[l])return!1;const w=h.charCodeAt(A);if(w>=48&&w<=57){if(f=aE(e,l),f<0||(c=!0,r=A,d=Tfe(e,l,f),u&&d!==1))return!1}else if(w===42||w===45||w===43){if(f=lE(e,l),f<0)return!1;c=!1}else return!1;if(u&&e.skipSpaces(f)>=v[l])return!1;if(i)return!0;const M=h.charCodeAt(f-1),N=String.fromCharCode(M);if(c){const _=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(_.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const T=[l,0];e.tokens[e.tokens.length-1].map=T,e.tokens[e.tokens.length-1].markup=N;let C=!1;const I=e.tokens.length-1,S=e.md.block.ruler.getRulesForState(e,"list"),E=e.parentType;for(e.parentType="list";l=o?P=1:P=F-_,P>4&&(P=1);const O=_+P,R=e.push("list_item_open","li",1);R.markup=N;const z=[l,0];R.map=z,c&&(R.info=f-r-1===1?Efe[h.charCodeAt(r)-48]:h.slice(r,f-1));const H=e.tight,j=e.tShift[l],Q=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=O,e.tight=!0,e.tShift[l]=q-m[l],e.sCount[l]=F,q>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||C)&&(a=!1),C=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=j,e.sCount[l]=Q,e.tight=H,e.push("list_item_close","li",-1).markup=N,l=e.line,z[1]=l,l>=n||e.sCount[l]=4)break;let W=!1;for(let G=0,oe=S.length;G3||u[f]<0)continue;if(o==="list"&&u[f]>=c){const A=r[f]+l[f],w=a[f];if(A=w||uE(s.charCodeAt(A+1)))break}else if(M>=48&&M<=57&&A+1=w){N=-1;break}const T=s.charCodeAt(N++);if(T>=48&&T<=57){if(N-A>=10){N=-1;break}continue}if((T===41||T===46)&&(N>=w||uE(s.charCodeAt(N))))break;N=-1;break}if(N>=0)break}}}const v=r[f]+l[f],y=a[f];if(d&&!gj(e,f,s,v,y))continue;let b=!1;for(let A=0,w=i.length;A=4||e.src.charCodeAt(o)!==91)return!1;function a(A){const w=e.lineMax;if(A>=w||e.isEmpty(A))return null;let M=!1;if(e.sCount[A]-e.blkIndent>3&&(M=!0),e.sCount[A]<0&&(M=!0),!M){const C=e.parentType;e.parentType="reference";let I=!1;for(let S=0,E=l.length;S"u"&&(e.env.references={}),typeof e.env.references[b]>"u"&&(e.env.references[b]={title:y,href:f}),e.line=r),!0):!1}function d8(e){switch(e){case 9:case 32:return!0}return!1}const Bfe=65536;function f8(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function Rfe(e,t){if(e.lineFlags)return(e.lineFlags[t]&n0.Pipe)!==0;for(let n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];nn)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!d8(l)||r===45&&d8(l)||!Rfe(e,t))return!1;for(;s=4)return!1;u=cE(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==c.length)return!1;if(i)return!0;const f=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRulesForState(e,"blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w=4||(u=cE(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),A+=d-u.length,A>Bfe))break;if(o===t+2){const N=e.push("tbody_open","tbody",1);N.map=b=[t+2,0]}const M=e.push("tr_open","tr",1);M.map=[o,o+1];for(let N=0;Nr.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}after(e,t,n,i){const o=this._rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache[t]??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache[t]??[]}getRulesForState(e,t){const n=e?.env;return n&&(Object.prototype.hasOwnProperty.call(n,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(n,"__mdtsProfileRules"))?this.getNamedRules(t).map(({name:i,fn:o})=>(s,r,l,a)=>{const u=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now(),c=o(s,r,l,a),d=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now();return A1(s?.env,"block",i,d-u,c,!!a),c}):this.getRules(t)}at(e,t,n){const i=this._rules.findIndex(o=>o.name===e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[i].fn=t,n?.alt&&(this._rules[i].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled||(this._rules[r].enabled=!0,o=!0)}),o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled&&(this._rules[r].enabled=!1,o=!0)}),o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this._rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const i of this._rules)if(i.enabled)for(const o of i.alt)e.add(o);const t=Object.create(null),n=Object.create(null);for(const i of e){const o=[],s=[];for(const r of this._rules)r.enabled&&(i!==""&&!r.alt.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t[i]=o,n[i]=s}this.cache=t,this.namedCache=n}};const J2=[["table",Ofe,["paragraph","reference"]],["code",bfe],["fence",wfe,["paragraph","reference","blockquote","list"]],["blockquote",kfe,["paragraph","reference","blockquote","list"]],["hr",xfe,["paragraph","reference","blockquote","list"]],["list",Nfe,["paragraph","reference","blockquote"]],["reference",Ffe],["html_block",Sfe,["paragraph","reference","blockquote"]],["heading",Cfe,["paragraph","reference","blockquote"]],["lheading",Ife],["paragraph",Dfe]];var Pfe=class{ruler;cachedRulesVersion=-1;cachedRules=[];constructor(){this.ruler=new $fe;for(let e=0;e=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const h=e.line;let m=!1;for(let g=0;g=e.line)throw new Error("block rule didn't increment state.line");break}if(!m)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}return}const f=this.ruler.getNamedRules("");for(;c=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const h=e.line;let m=!1;for(let g=0;g=e.line)throw new Error("block rule didn't increment state.line");break}}if(!m)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}}parse(e,t,n,i){if(!e||e.length===0)return;const o=new pj(e,t,n,i);this.tokenize(o,o.line,o.lineMax)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(""),this.cachedRulesVersion=this.ruler.version),this.cachedRules}},yj=class{src;env;tokens;inlineMode;md;constructor(e,t,n={}){this.src=typeof e=="string"?e||"":e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}};yj.prototype.Token=Is;const dE=[["normalize",ife],["block",cde],["inline",Zde],["linkify",efe],["replacements",cfe],["smartquotes",pfe],["text_join",mfe]],zfe={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},jfe={parseLinkLabel:w7,parseLinkDestination:b7,parseLinkTitle:C7};function Hfe(){return{...zfe}}function Wfe(){return{...jfe}}var qfe=class{fallbackParser;lastState=null;block;inline;ruler;linkifyInstance=null;cachedCoreRulesVersion=-1;cachedCoreRules=[];cachedCoreNamedRulesVersion=-1;cachedCoreNamedRules=[];constructor(){this.block=new Pfe,this.inline=new Kde,this.ruler=new dfe;for(let e=0;e@[\]\\^_`{}~]/;function vk(e){return!Ufe.test(e)}function Mg(e,t){const n=e.indexOf(` +`,t);return n===-1?e.length:n}function t9(e,t,n){for(let i=t;i3)return vk(e);for(let t=0;t=i||t.charCodeAt(r)!==32)return!1;let l=r+1;for(;ll&&t.charCodeAt(a-1)===32;)a--;let u=a;for(;u>l&&t.charCodeAt(u-1)===35;)u--;if(u>l&&t.charCodeAt(u-1)===32)for(a=u-1;a>l&&t.charCodeAt(a-1)===32;)a--;const c=t.slice(l,a);if(!vk(c))return!1;const d=Kfe[s],f=Zfe[s],h=ma("heading_open",d,1,0);h.map=[o,o+1],h.markup=f,e.push(h),e.push(_7(c,o,1));const m=ma("heading_close",d,-1,0);return m.markup=f,e.push(m),!0}function Qfe(e,t,n){const i=ma("paragraph_open","p",1,0);i.map=[n,n+1],e.push(i),e.push(_7(t,n,1)),e.push(ma("paragraph_close","p",-1,0))}function Yfe(e,t,n){const i=e.charCodeAt(n-1);return i===32||i===9?e.slice(t,n).trim():e.slice(t,n)}function g8(e,t){for(;t=1e5?hE:m8,o="",s=!1,r=!1,l=0,a=0;for(;l"]/,pE=/[&<>"]/g,ohe=/&/g,she=/[<>"]/g,rhe={"&":"&","<":"<",">":">",'"':"""};function v8(e){return rhe[e]||e}function Ui(e){if(e.length===0)return"";if(e.length<32)return ihe.test(e)?e.replace(pE,v8):e;const t=e.includes("&"),n=e.includes("<"),i=e.includes(">"),o=e.includes('"');return!t&&!n&&!i&&!o?e:t&&!n&&!i&&!o?e.replace(ohe,"&"):t?e.replace(pE,v8):e.replace(she,v8)}const lhe=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),ahe=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function kj(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(lhe,(t,n,i)=>{if(n)return n;if(ahe.test(i)){const s=i[1].toLowerCase()==="x"?Number.parseInt(i.slice(2),16):Number.parseInt(i.slice(1),10);return n4(s)?Q0(s):"�"}const o=d7(t);return o!==t?o:t})}const uhe=/[\n!#$%&*+\-:<=>@[\]\\^_`{}~]/,che=/[\n!"#$%&*+\-:<=>@[\]\\^_`{}~]/,dhe=/"/g;function t1(e,t){const n=e.indexOf(` +`,t);return n===-1?e.length:n}function yk(e,t,n){for(let i=t;i=e.length||e.charCodeAt(t)===10?!1:!yk(e,t,t1(e,t))}function mE(e,t,n){return t+2=n||e.charCodeAt(o)!==32)return null;let s=o+1;for(;ss&&e.charCodeAt(r-1)===32;)r--;let l=r;for(;l>s&&e.charCodeAt(l-1)===35;)l--;if(l>s&&e.charCodeAt(l-1)===32)for(r=l-1;r>s&&e.charCodeAt(r-1)===32;)r--;const a=M7(e.slice(s,r));return a===null?null:`${a} +`}function gE(e,t,n){return t+1" +`;case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return null}return`
  • ${e[t]}
  • +`}function ghe(e,t,n){const i=t+2;if(n===i+1)return mhe(e,i);const o=M7(e.slice(t+2,n));return o===null?null:`
  • ${o}
  • +`}function vhe(e,t,n){for(;tt;){const o=e.charCodeAt(n-1);if(o!==32&&o!==9)break;n--}let i=n;for(let o=t;o`:"
    ",i.lang=s,i.open=d),{html:`${d}${Ui(c)}
    +`,nextPos:u=25e4,s=[],r={lang:null,open:""};let l="",a="",u="",c="";for(;n +`;w +`,l=y,a=b}let A=X2(e,v);for(;A${v}

    +`,u=h,c=m}const g=de.core.parse(t,n,e).tokens);let r=n9(t,o);if(o.maxChunks&&r.length>o.maxChunks&&(r=Ahe(r,o.maxChunks)),i9(t,r))return a8(n,{count:1,fallback:!0,fallbackReason:"unsafe-chunk-boundary",maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines}),C1(n,s,()=>e.core.parse(t,n,e).tokens);let l=0;const a=[];return a8(n,{count:r.length,maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines,globalStateDetected:s||void 0,globalStateFallbackDisabled:o.fallbackOnGlobalState===!1&&!!s}),C1(n,s,()=>{for(let u=0;u=3&&(c?c.marker===A&&M>=c.length&&(c=null):c={marker:A,length:M})}}const v=m-f;o+=v,s+=1,l+=1,g?(a=0,u=0):(a+=1,u+=v);const y=g;if((o>=t.maxChunkChars||s>=t.maxChunkLines)&&!c)if(y)d(m);else{const b=Math.max(10,Math.floor(t.maxChunkLines*.5)),A=Math.max(t.maxChunkChars,8e3);(a>=b||u>=A)&&d(m)}f=m}return n&&d(e.length),i}function i9(e,t,n={rangesCoverWholeSource:!0}){const i=n.rangesCoverWholeSource?t.length-1:t.length;for(let o=0;oe.length||e.charCodeAt(t-1)!==10)return!1;let n=t-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;for(let i=n+1;i=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Che(e,t){for(let n=0;n=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Vc(e){return e.length===0?0:$o(e)+(e.charCodeAt(e.length-1)===10?0:1)}function Ehe(e,t,n){for(let i=t;i=3&&(n?n.marker===r&&a>=n.length&&(n=null):n={marker:r,length:a})}i=o===e.length?e.length:o+1}return n!==null}function Nhe(e,t){if(e.length===0||e.charCodeAt(e.length-1)!==10)return!1;let n=e.length-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;return Ehe(e,n+1,e.length-1)?!Lhe(e,t):!1}function Dhe(e,t,n,i={}){const o=i.mode??"full",s=i.fenceAware??(o==="stream"?e.options.streamChunkFenceAware??!0:e.options.fullChunkFenceAware??!0);if(i.maxChunkChars!==void 0||i.maxChunkLines!==void 0||i.autoTune===!1){const r=i.maxChunkChars??(o==="stream"?e.options.streamChunkSizeChars??Mhe:e.options.fullChunkSizeChars??She),l=i.maxChunkLines??(o==="stream"?e.options.streamChunkSizeLines??Ihe:e.options.fullChunkSizeLines??_he);return{maxChunkChars:r,maxChunkLines:l,holdBelowChars:r,holdBelowLines:l,fenceAware:s}}return o==="stream"?t<=5e3?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=2e4?{maxChunkChars:16e3,maxChunkLines:200,holdBelowChars:16e3,holdBelowLines:200,fenceAware:s}:t<=5e4?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}:t<=1e5&&n<=2500?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:1e5,holdBelowLines:2500,fenceAware:s}:t<=2e5?{maxChunkChars:2e4,maxChunkLines:150,holdBelowChars:2e4,holdBelowLines:150,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}}var zv=class{md;options;pending="";tokens=[];committedChars=0;committedLines=0;fedChunks=0;parsedChunks=0;globalStateEnv=null;markedGlobalStateReason=null;constructor(e,t={}){if(this.md=e,this.options={mode:"full",autoTune:!0,retainTokens:!0,...t},this.options.retainTokens===!1&&!this.options.onChunkTokens)throw new Error("UnboundedBuffer with retainTokens=false requires onChunkTokens")}feed(e){e&&(this.pending+=e,this.fedChunks+=1)}flushAvailable(e={}){if(!this.pending)return null;const t=this.resolveWindow(),n=Vc(this.pending);if(this.pending.length=i||n>=o}function Sj(e,t,n){if(e.options.autoUnbounded===!1)return"no";if(t>=(e.options.autoUnboundedThresholdChars??wj))return"yes";const i=e.options.autoUnboundedThresholdLines??Cj;return n!==void 0?n>=i?"yes":"no":t+1e.core.parse(t,n,e).tokens);const s=[],r=new zv(e,{mode:"full",...i,retainTokens:!1,onChunkTokens(l){Aj(s,l)}});if(o&&y7(n,o),r.feed(t),r.flushForce(n),o&&(k7(n),i.fallbackOnGlobalState===!1)){const l=lc(n)?.unbounded;l&&(l.globalStateDetected=o,l.globalStateFallbackDisabled=!0)}return s}const x1=(e,t,n)=>en?n:e;function _j(e){return e.experimental?{...e,...e.experimental}:e}const kE=[{max:5e3,strategy:"discrete",maxChunkChars:32e3,maxChunkLines:150,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:24e3,maxChunkLines:200,maxChunks:12,notes:"<=20k"},{max:1e5,strategy:"plain",notes:"<=100k plain"},{max:2e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:150,maxChunks:12,notes:"<=200k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=5M"}],bE=[{max:5e3,strategy:"discrete",maxChunkChars:16e3,maxChunkLines:250,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=20k"},{max:1e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=100k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=5M"}];function Mj(e,t){return{strategy:t.strategy,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,maxChunks:t.maxChunks,fenceAware:e,notes:t.notes}}function $he(e,t=Math.max(0,e/40|0),n={}){const i=_j(n),o=i.fullChunkFenceAware??!0,s=i.fullChunkTargetChunks??8,r=i.fullChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:x1(Math.ceil(e/s),8e3,64e3),maxChunkLines:x1(Math.ceil(t/s),150,700),maxChunks:x1(Math.ceil(e/64e3),s,16),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.fullChunkSizeChars??1e4,maxChunkLines:i.fullChunkSizeLines??200,fenceAware:o,maxChunks:i.fullChunkMaxChunks}}function wE(e,t=Math.max(0,e/40|0),n={}){const i=_j(n),o=i.streamChunkFenceAware??!0,s=i.streamChunkTargetChunks??8,r=i.streamChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:x1(Math.ceil(e/s),8e3,64e3),maxChunkLines:x1(Math.ceil(t/s),150,700),maxChunks:x1(Math.ceil(e/64e3),s,32),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.streamChunkSizeChars??1e4,maxChunkLines:i.streamChunkSizeLines??200,maxChunks:i.streamChunkMaxChunks,fenceAware:o}}var Phe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"]},inline2:{rules:["balance_pairs","emphasis","fragments_join"]}}},zhe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},jhe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};function o4(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function o9(e,t){if(o4(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e}const CE=e=>o4(e)?e:Promise.resolve(e);function o0(e){switch(e){case"alt":case"class":case"href":case"id":case"lang":case"rel":case"src":case"start":case"style":case"target":case"title":return e;default:return Ui(e)}}function jd(e){if(!e||e.length===0)return"";const t=e[0];let n=` ${o0(t[0])}="${Ui(t[1])}"`;for(let i=1;i=e.length)return{langName:e,langAttrs:""};let n=t;for(;n${t} +`;const s=e.attrIndex("class"),r=e.attrs?e.attrs.slice():[],l=`${o.langPrefix??"language-"}${i}`;return s<0?r.push(["class",l]):(r[s]=r[s].slice(),r[s][1]+=` ${l}`),`
    ${t}
    +`}return`
    ${t}
    +`}function J0(e){return!e.attrs||e.attrs.length===0?`${Ui(e.content)}`:`${Ui(e.content)}`}function EC(e){const t=Ui(e.content);return e.attrs?`${t} +`:`
    ${t}
    +`}function Hhe(e,t){const n=e.attrs;if(!n||n.length===0)switch(e.type){case"paragraph_open":return`${t}

    `;case"heading_open":return`<${e.tag}>`;case"td_open":return`${t}`;case"th_open":return`${t}`;default:return null}if(n.length===1&&n[0][0]==="style"){if(e.type==="td_open")return`${t}`;if(e.type==="th_open")return`${t}`}return null}function AE(e){const t=e.attrs;return!t||t.length===0?"":t.length===1?``:t.length===2?``:``}function Whe(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":case"image":return!0;default:return!1}}function xE(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":return!0;default:return!1}}function bk(e,t){if(e.hidden)return"";const n=e.attrs,i=e.nesting,o=e.tag;if(!n||n.length===0)return i===0?t?`<${o} />`:`<${o}>`:i===-1?``:`<${o}>`;let s=(i===-1?"`}const qhe={langPrefix:"language-",xhtmlOut:!1,breaks:!1},ey=Object.prototype.hasOwnProperty,ki={code_inline(e,t){return J0(e[t])},code_block(e,t){return EC(e[t])},fence(e,t,n,i,o){const s=e[t],r=s.info?kj(s.info).trim():"",{langName:l,langAttrs:a}=Ij(r),u=n.highlight,c=Ui(s.content);if(!u)return s0(s,c,r,l,n);const d=u(s.content,l,a);return o4(d)?d.then(f=>s0(s,f||c,r,l,n)):s0(s,d||c,r,l,n)},image(e,t,n,i,o){const s=e[t],r=o.renderInlineAsText(s.children||[],n,i),l=s.attrIndex("alt");return l>=0&&s.attrs?s.attrs[l][1]=r:s.attrs?s.attrs.push(["alt",r]):s.attrs=[["alt",r]],bk(s,n.xhtmlOut===!0)},hardbreak(e,t,n){return n.xhtmlOut?`
    +`:`
    +`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`
    +`:`
    +`:` +`},text(e,t){return Ui(e[t].content)},text_special(e,t){return Ui(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};function SE(e,t,n){const i=e.info?kj(e.info).trim():"",{langName:o,langAttrs:s}=Ij(i),r=t.highlight,l=Ui(e.content);if(!r)return s0(e,l,i,o,t);const a=r(e.content,o,s);if(o4(a))throw new TypeError('Renderer rule "fence" returned a Promise. Use renderAsync() instead.');return s0(e,a||l,i,o,t)}function y8(e,t,n,i){switch(e.type){case"text":return t.text===ki.text?e.content.length===0?"":Ui(e.content):null;case"text_special":return t.text_special===ki.text_special?e.content.length===0?"":Ui(e.content):null;case"softbreak":return t.softbreak===ki.softbreak?i:null;case"hardbreak":return t.hardbreak===ki.hardbreak?n:null;case"html_inline":return t.html_inline===ki.html_inline?e.content:null;case"code_inline":return t.code_inline===ki.code_inline?J0(e):null;default:return null}}function Uhe(e,t,n,i,o){const s=e[0];switch(s.type){case"text":if(o.text===ki.text)return s.content.length===0?"":Ui(s.content);break;case"text_special":if(o.text_special===ki.text_special)return s.content.length===0?"":Ui(s.content);break;case"softbreak":if(o.softbreak===ki.softbreak)return t.breaks?t.xhtmlOut?`
    +`:`
    +`:` +`;break;case"hardbreak":if(o.hardbreak===ki.hardbreak)return t.xhtmlOut?`
    +`:`
    +`;break;case"html_inline":if(o.html_inline===ki.html_inline)return s.content;break;case"code_inline":if(o.code_inline===ki.code_inline)return J0(s);break}const r=o[s.type];if(!r)return bk(s,t.xhtmlOut===!0);const l=r(e,0,t,n,i);return typeof l=="string"?l:o9(l,s.type)}var Vhe=class{rules;baseOptions;normalizedBase;constructor(e={}){this.baseOptions={...e},this.normalizedBase=this.buildNormalizedBase(),this.rules={...ki}}set(e){return this.baseOptions={...this.baseOptions,...e},this.normalizedBase=this.buildNormalizedBase(),this}render(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");if(e.length===1)return this.renderSingleToken(e,e[0],t,n);const i=this.mergeOptions(t),o=n??{},s=this.rules,r=i.xhtmlOut===!0;let l,a,u,c,d,f,h="",m="",g=!1,v="";for(let y=0;y0&&e[y-1].hidden?` +`:"";if(A==="list_item_open"&&(!b.attrs||b.attrs.length===0)&&y+3${this.renderInlineTokens(C.children||[],i,o)}`,y+=3;continue}}if(y+2 +`,y+=2;continue}}}if(A==="inline"){const T=b.children||[];if(T.length===1){g||(l=s.text,a=s.text_special,u=s.softbreak,c=s.hardbreak,d=s.html_inline,f=s.code_inline,h=i.xhtmlOut?`
    +`:`
    +`,m=i.breaks?h:` +`,g=!0);const C=T[0];switch(C.type){case"text":if(l===ki.text){v+=Ui(C.content);continue}break;case"text_special":if(a===ki.text_special){v+=Ui(C.content);continue}break;case"softbreak":if(u===ki.softbreak){v+=m;continue}break;case"hardbreak":if(c===ki.hardbreak){v+=h;continue}break;case"html_inline":if(d===ki.html_inline){v+=C.content;continue}break;case"code_inline":if(f===ki.code_inline){v+=J0(C);continue}break}}v+=this.renderInlineTokens(T,i,o);continue}const M=s[A];if(!M){const T=b.attrs;if(!b.hidden){if(!T||T.length===0)switch(A){case"hr":v+=r?`


    +`:`
    +`;continue;case"heading_open":v+=`<${b.tag}>`;continue;case"heading_close":v+=` +`;continue;case"paragraph_open":v+=`${w}

    `;continue;case"paragraph_close":v+=`

    +`;continue;case"list_item_open":{const C=e[y+1];v+=w+(C&&(C.type==="inline"||C.hidden||C.nesting===-1&&C.tag==="li")?"
  • ":`
  • +`);continue}case"list_item_close":v+=`
  • +`;continue;case"bullet_list_open":v+=`${w}
      +`;continue;case"bullet_list_close":v+=`
    +`;continue;case"blockquote_open":v+=w+(e[y+1]&&e[y+1].nesting===-1&&e[y+1].tag==="blockquote"?"
    ":`
    +`);continue;case"blockquote_close":v+=`
    +`;continue;case"ordered_list_open":v+=`${w}
      +`;continue;case"ordered_list_close":v+=`
    +`;continue;case"table_open":v+=`${w} +`;continue;case"table_close":v+=`
    +`;continue;case"thead_open":v+=`${w} +`;continue;case"thead_close":v+=` +`;continue;case"tbody_open":v+=`${w} +`;continue;case"tbody_close":v+=` +`;continue;case"tr_open":v+=`${w} +`;continue;case"tr_close":v+=` +`;continue;case"td_open":v+=`${w}`;continue;case"td_close":v+=` +`;continue;case"th_open":v+=`${w}`;continue;case"th_close":v+=` +`;continue}else if(T.length===1){const C=T[0];if(A==="ordered_list_open"&&C[0]==="start"){v+=`${w}
      +`;continue}if(A==="td_open"&&C[0]==="style"){v+=`${w}`;continue}if(A==="th_open"&&C[0]==="style"){v+=`${w}`;continue}}}v+=this.renderToken(e,y,i);continue}if(A==="code_block"&&M===ki.code_block){v+=EC(b);continue}if(A==="fence"&&M===ki.fence){v+=SE(b,i);continue}if(A==="html_block"&&M===ki.html_block){v+=b.content;continue}const N=M(e,y,i,o,this);typeof N=="string"?v+=N:v+=o9(N,b.type)}return v}async renderAsync(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const i=this.mergeOptions(t),o=n??{},s=this.rules;let r="";for(let l=0;l0&&e[t-1].hidden?` +`:"",c=a?`> +`:">";if(!l||l.length===0)return s===0?n.xhtmlOut?`${u}<${r} /${c}`:`${u}<${r}${c}`:s===-1?`${u}(n||(n={...t}),n);if(ey.call(e,"highlight")&&e.highlight!==t.highlight&&(i().highlight=e.highlight),ey.call(e,"langPrefix")){const o=e.langPrefix;o!==t.langPrefix&&(i().langPrefix=o)}if(ey.call(e,"xhtmlOut")){const o=e.xhtmlOut;o!==t.xhtmlOut&&(i().xhtmlOut=o)}if(ey.call(e,"breaks")){const o=e.breaks;o!==t.breaks&&(i().breaks=o)}return n||t}buildNormalizedBase(){return Object.freeze({...qhe,...this.baseOptions})}renderSingleToken(e,t,n,i){const o=this.rules,s=t.type;if(s==="code_block"&&o.code_block===ki.code_block)return EC(t);if(s==="html_block"&&o.html_block===ki.html_block)return t.content;const r=this.mergeOptions(n),l=i??{};if(s==="inline")return this.renderInlineTokens(t.children||[],r,l);const a=o[s];if(!a)return t.block?this.renderToken(e,0,r):bk(t,r.xhtmlOut===!0);if(s==="fence"&&a===ki.fence)return SE(t,r);const u=a(e,0,r,l,this);return typeof u=="string"?u:o9(u,s)}renderInlineTokens(e,t,n){if(!e||e.length===0)return"";const i=this.rules;if(e.length===1)return Uhe(e,t,n,this,i);const o=t.xhtmlOut===!0,s=o?`
      +`:`
      +`,r=t.breaks?s:` +`,l=i.text,a=i.text_special,u=i.softbreak,c=i.hardbreak,d=i.html_inline,f=i.code_inline,h=i.link_open,m=i.link_close,g=i.em_open,v=i.em_close,y=i.strong_open,b=i.strong_close;let A="";for(let w=0;w`;if(u===ki.softbreak&&w+3`,w+=1;continue}if(M.type==="em_open"&&!g&&!v&&w+2${I}`,w+=2;continue}}}if(M.type==="strong_open"&&!y&&!b&&w+2${I}`,w+=2;continue}}}switch(M.type){case"text":if(l===ki.text){const C=M.content.length===0?"":Ui(M.content);if(d===ki.html_inline&&w+1=4)return!0;continue}if(l===9){if(r+=4-r%4,s++,r>=4)return!0;continue}break}if(s0&&u<=6){if(a=3)return!0;break}default:if(l>=48&&l<=57){let a=s+1;for(;a57)break;a++}if(a=Te,!Y&&Fe!==void 0&&(ye=$o(e),Y=ye>=Fe)),Y){const V=this.parseFullDocument(e,F,n,ye,!1);return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:"skip-cache-large-one-shot",unbounded:!!lc(F)?.unbounded}),V.tokens}else if(z){const V=(fe,ke,Ce)=>feCe?Ce:fe;ye===void 0&&(ye=$o(e));const le=oe&&!G?wE(e.length,ye,n.options):null,Se=le?.maxChunkChars??(H?V(Math.ceil(e.length/j),8e3,64e3):Q??1e4),be=le?.maxChunkLines??(H?V(Math.ceil(ye/j),150,700):ae??200),he=le?.maxChunks??(H?V(Math.ceil(e.length/64e3),j,32):W),re=e.length>0&&e.charCodeAt(e.length-1)===10,J=R&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&le?.strategy!=="plain";if((O||J)&&(e.length>=Se*2||ye>=be*2)&&re){const fe=kk(n,e,F,{maxChunkChars:Se,maxChunkLines:be,fenceAware:le?.fenceAware??te,maxChunks:he});return this.cache={src:e,tokens:fe,env:F,lineCount:ye,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,ye),this.recordChunkedParseResult(F,O?"explicit-initial-large-doc":"default-initial-large-doc"),fe}}const se=this.parseFullDocument(e,F,n,ye);return ye=se.lineCount,this.cache={src:e,tokens:se.tokens,env:F,lineCount:ye,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,ye),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:"initial-parse",unbounded:!!lc(F)?.unbounded}),se.tokens}if(e===o.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",ss(o.env,{area:"stream",path:"stream-cache",reason:"same-source"}),o.tokens;const s=e.startsWith(o.src)?e.slice(o.src.length):null;let r=o.globalStateReason;r===void 0&&(r=ul(o.src),o.globalStateReason=r);const l=r?null:s!==null?this.detectGlobalStateForAppend(o,s):ul(e),a=r||l;if(a){const F=i??o.env;Lc(F);const q=ul(e),P=this.parseFullDocument(e,F,n),O=P.tokens,R=P.lineCount;return this.cache={src:e,tokens:O,env:F,lineCount:R,lastSegment:void 0,globalStateReason:q},this.updateCacheLineCount(this.cache,R),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:`global-state:${a}`,unbounded:!!lc(F)?.unbounded}),O}const u=n.options?.streamOptimizationMinSize??this.MIN_SIZE_FOR_OPTIMIZATION;if(o.src.length5e3?q=8:c.length>1e3?q=6:c.length>200&&(q=4),q=Math.min(q,F);let P=null;const O=n.options?.streamContextParseStrategy??"chars",R=n.options?.streamContextParseMinChars??200,z=n.options?.streamContextParseMinLines??2;let H;const j=()=>(H===void 0&&(H=$o(c)),H),Q=this.canDirectlyParseAppend(o),ae=Q&&this.shouldUseUnboundedAppend(e,o,c);let W=!1;if(!Q)switch(O){case"lines":W=j()>=z;break;case"constructs":if(c.length>=R){W=!0;break}if(Ghe(c)){W=!0;break}W=j()>=z;break;case"chars":default:W=c.length>=R}if(q>0&&W){const te=this.getTailLines(o.src,q)+c;try{const ve=this.core.parse(te,o.env,n).tokens,Te=ve.findIndex(Fe=>Fe.map&&typeof Fe.map[1]=="number"&&Fe.map[1]>q);if(Te!==-1){const Fe=ve.slice(Te),ye=F-q;ye!==0&&this.shiftTokenLines(Fe,ye),P={tokens:Fe}}}catch{P=null}}else P=null;if(!P){const te=F;if(ae)P={tokens:i0(n,c,o.env,{mode:"stream"})},te>0&&this.shiftTokenLines(P.tokens,te);else{const ve=this.core.parse(c,o.env,n);te>0&&this.shiftTokenLines(ve.tokens,te),P=ve}}let G=0;if(o.tokens.length>0&&P.tokens.length>0){const te=o.tokens[o.tokens.length-1],ve=P.tokens[0];try{te.type==="inline"&&ve.type==="inline"&&(ve.children&&ve.children.length>0&&(te.children||(te.children=[]),this.appendTokens(te.children,ve.children)),te.content=(te.content||"")+(ve.content||""),G=1)}catch{G=0}}const oe=o.tokens.length;if(P.tokens.length>G){const te=o.tokens,ve=P.tokens,Te=Math.min(te.length,ve.length-G);let Fe=0;for(let ye=Te;ye>0;ye--){let Y=!0;for(let se=0;se0&&(G+=Fe),ve.length>G&&this.appendTokens(o.tokens,ve,G)}if(o.src=e,o.globalStateReason=null,o.lineCount=F+(H??j()),o.tokens.length>oe){const te=this.getLastSegment(o.tokens,e,oe,o.tokens.length,e.length-c.length,F);te?o.lastSegment=te:o.lastSegment=void 0}else o.lastSegment=void 0;return this.stats.total+=1,this.stats.appendHits+=1,ae&&(this.stats.unboundedAppendHits=(this.stats.unboundedAppendHits||0)+1),this.stats.lastMode="append",ss(o.env,{area:"stream",path:ae?"stream-unbounded-append":"stream-append",reason:ae?"large-delta":"safe-append",unbounded:ae}),o.tokens}const d=i??o.env,f=this.tryTailSegmentReparse(e,o,d,n);if(f)return this.stats.total+=1,this.stats.tailHits+=1,this.stats.lastMode="tail",ss(d,{area:"stream",path:"stream-tail",reason:"tail-reparse"}),f;const h=!!n.__explicitStreamChunkFallbackSetting,m=typeof n.__canUseImplicitLargeInputStrategy=="function"?n.__canUseImplicitLargeInputStrategy():!0,g=!!n.options?.streamChunkedFallback,v=!h&&!c&&m,y=g||v,b=n.options?.streamChunkAdaptive!==!1,A=n.options?.streamChunkTargetChunks??8,w=n.options?.streamChunkSizeChars,M=n.options?.streamChunkSizeLines,N=n.options?.streamChunkMaxChunks,T=!!n.__explicitStreamChunkConfig,C=n.options?.autoTuneChunks!==!1,I=n.options?.streamChunkFenceAware??!0;let S=c&&o.lineCount!==void 0?o.lineCount+$o(c):void 0;if(y){S===void 0&&(S=$o(e));const F=(j,Q,ae)=>jae?ae:j,q=C&&!T?wE(e.length,S,n.options):null,P=q?.maxChunkChars??(b?F(Math.ceil(e.length/A),8e3,64e3):w??1e4),O=q?.maxChunkLines??(b?F(Math.ceil(S/A),150,700):M??200),R=q?.maxChunks??(b?F(Math.ceil(e.length/64e3),A,32):N),z=e.length>0&&e.charCodeAt(e.length-1)===10,H=v&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&q?.strategy!=="plain";if((g||H)&&(e.length>=P*2||S>=O*2)&&z){const j=kk(n,e,d,{maxChunkChars:P,maxChunkLines:O,fenceAware:q?.fenceAware??I,maxChunks:R});return this.cache={src:e,tokens:j,env:d,lineCount:S,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,S),this.recordChunkedParseResult(d,g?"explicit-fallback-large-doc":"default-fallback-large-doc"),j}}const E=this.parseFullDocument(e,d,n,S),_=E.tokens;return S=E.lineCount,this.cache={src:e,tokens:_,env:d,lineCount:S,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,S),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(d,{area:"stream",path:"stream-full",reason:"fallback-full",unbounded:!!lc(d)?.unbounded}),_}recordChunkedParseResult(e,t){const n=lc(e)?.chunk,i=n?.fallback?String(n.fallbackReason||"global-state"):null;if(this.stats.total+=1,i){this.stats.fullParses+=1,this.stats.lastMode="full",ss(e,{area:"stream",path:"stream-full",reason:`global-state:${i}`,unbounded:!!lc(e)?.unbounded});return}this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",ss(e,{area:"stream",path:"stream-chunked",chunked:!0,reason:t})}parseFullDocument(e,t,n,i,o=!0){const s=ul(e);$v(t)&&Lc(t);const r=typeof n.__canUseImplicitLargeInputStrategy!="function"||n.__canUseImplicitLargeInputStrategy()?Sj(n,e.length,i):"no";if(r==="yes"){const a=i0(n,e,t);return ss(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-char-threshold",unbounded:!0}),{tokens:a,lineCount:i??(o?$o(e):0)}}let l=i;if(r==="need-lines"&&(l=$o(e),xj(n,e.length,l))){const a=i0(n,e,t);return ss(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-line-threshold",unbounded:!0}),{tokens:a,lineCount:l}}return l===void 0&&(l=o?$o(e):0),{tokens:C1(t,s,()=>this.core.parse(e,t,n).tokens),lineCount:l}}shouldUseUnboundedAppend(e,t,n){return!n||e.length=this.MIN_UNBOUNDED_APPEND_CHARS?!0:$o(n)>=this.MIN_UNBOUNDED_APPEND_LINES}getAppendedSegment(e,t,n){if(n===null||n===void 0&&!t.startsWith(e)||!e.endsWith(` +`))return null;const i=n??t.slice(e.length);if(!i)return null;const o=i.length;if(i.charCodeAt(o-1)!==10)return null;let s=0,r=-1;for(let a=0;a=2));a++);if(s<2)return null;const l=(r===-1?i:i.slice(0,r)).trim();if(l.length===0)return null;if(/^[-=]+$/.test(l)){const a=e.slice(0,-1),u=a.lastIndexOf(` +`);if(a.slice(u+1).trim().length>0)return null}return this.endsInsideOpenFence(e)||this.mayContainReferenceDefinition(i)?null:i}tryTailSegmentReparse(e,t,n,i){const o=this.ensureLastSegment(t);if(!o||o.srcOffset<=0&&o.tokenStart<=0)return null;const s=t.src.slice(0,o.srcOffset);if(!e.startsWith(s))return null;const r=t.src.slice(o.srcOffset),l=e.slice(o.srcOffset);if(l===r)return null;const a=e.startsWith(t.src)?e.slice(t.src.length):null;if(a){const u=this.tryContainerTailAppendMerge(e,t,n,i,o,a);if(u)return u}if(this.mayContainReferenceDefinition(r)||this.mayContainReferenceDefinition(l))return null;try{const u=this.core.parse(l,n,i),c=this.getLastSegment(u.tokens,l);return o.lineStart>0&&this.shiftTokenLines(u.tokens,o.lineStart),t.src=e,t.env=n,t.globalStateReason=null,t.globalStateCarry=void 0,t.tokens.length=o.tokenStart,this.appendTokens(t.tokens,u.tokens),t.lineCount=o.lineStart+$o(l),c?t.lastSegment={tokenStart:o.tokenStart+c.tokenStart,tokenEnd:o.tokenStart+c.tokenEnd,lineStart:o.lineStart+c.lineStart,lineEnd:o.lineStart+c.lineEnd,srcOffset:o.srcOffset+c.srcOffset}:t.lastSegment=null,t.tokens}catch{return null}}getTailLines(e,t){if(t<=0)return"";let n=t;for(let i=e.length-1;i>=0;i--)if(e.charCodeAt(i)===10&&(n--,n===0))return e.slice(i+1);return e}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,i=e.slice(n),o=i.length;let s=null,r=0;for(;r<=o;){let l=i.indexOf(` +`,r);l===-1&&(l=o);let a=r;for(;a=3&&(s?s.marker===u&&d>=s.length&&(s=null):s={marker:u,length:d})}}if(l===o)break;r=l+1}return s!==null}peek(){return this.cache?.tokens??Zhe}getStats(){return{...this.stats}}appendTokens(e,t,n=0,i=t.length){for(let o=n;ok8?n.slice(n.length-k8):n,i&&(e.globalStateReason=i),i}ensureLastSegment(e){return e.lastSegment!==void 0||(e.lastSegment=this.getLastSegment(e.tokens,e.src)),e.lastSegment}getLastSegment(e,t,n=0,i=e.length,o,s){if(i<=n)return null;let r=Number.POSITIVE_INFINITY,l=-1,a=0;for(let u=i-1;u>=n;u--){const c=e[u];if(c.map&&(c.map[0]l&&(l=c.map[1])),c.nesting<0){a+=-c.nesting;continue}if(c.nesting>0){if(a-=c.nesting,c.level===0&&a<=0){const d=Number.isFinite(r)?r:c.map?.[0]??0,f=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:f,srcOffset:this.getLineStartOffset(t,d,o,s)}}continue}if(c.level===0&&a===0){const d=Number.isFinite(r)?r:c.map?.[0]??0,f=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:f,srcOffset:this.getLineStartOffset(t,d,o,s)}}}return null}getLineStartOffset(e,t,n,i){if(n!==void 0&&i!==void 0&&t>=i)return this.getLineStartOffsetFrom(e,n,t-i);if(t<=0)return 0;let o=t,s=-1;for(;o>0;){if(s=e.indexOf(` +`,s+1),s===-1)return e.length;o--}return s+1}getLineStartOffsetFrom(e,t,n){if(n<=0)return t;let i=n,o=t-1;for(;i>0;){if(o=e.indexOf(` +`,o+1),o===-1)return e.length;i--}return o+1}mayContainReferenceDefinition(e){return e.includes("]:")?/(?:^|\n)[ \t]{0,3}\[[^\]\n]+\]:/.test(e):!1}canDirectlyParseAppend(e){if(!this.endsWithBlankLine(e.src))return!1;const t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case"paragraph_open":case"heading_open":case"fence":case"code_block":case"html_block":case"hr":case"table_open":return!0;default:return!1}}tryContainerTailAppendMerge(e,t,n,i,o,s){if(!s||this.mayContainReferenceDefinition(s))return null;const r=t.tokens[o.tokenStart];switch(r?.type){case"bullet_list_open":case"ordered_list_open":return this.tryListTailAppendMerge(e,t,n,i,o,s,r);case"table_open":return this.tryTableTailAppendMerge(e,t,n,i,o,s,r);default:return null}}tryListTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10)return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l0&&this.shiftTokenLines(d,f);const h=this.getListParagraphMode(t.tokens,o.tokenStart,t.tokens.length,r.level),m=this.getListParagraphMode(c,0,c.length,0);(h==="loose"||m==="loose"||this.endsWithBlankLine(t.src)||(c[0]?.map?.[0]??0)>0)&&(this.setListParagraphVisibility(t.tokens,o.tokenStart,t.tokens.length,r.level,!1),this.setListParagraphVisibility(d,0,d.length,r.level,!1)),t.tokens.splice(t.tokens.length-1,0,...d),t.src=e,t.env=n,t.globalStateReason=null;const g=f+$o(s);t.lineCount=g;const v=this.getDocLineCount(e,g);return r.map&&(r.map[1]=v),t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:v,srcOffset:o.srcOffset},t.tokens}tryTableTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10||/(?:^|\n)[ \t]*\n/.test(s))return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l=0?d.slice(f.tbodyOpenIndex+1,f.tbodyCloseIndex):d.slice(f.tbodyOpenIndex,f.tbodyCloseIndex+1);if(m.length===0)return null;const g=o.lineEnd-2;g!==0&&this.shiftTokenLines(m,g);const v=h.tbodyCloseIndex>=0?h.tbodyCloseIndex:h.tableCloseIndex,y=t.lineCount??$o(t.src);t.tokens.splice(v,0,...m),t.src=e,t.env=n,t.globalStateReason=null;const b=y+$o(s);t.lineCount=b;const A=this.getDocLineCount(e,b);if(r.map&&(r.map[1]=A),h.tbodyOpenIndex>=0){const w=t.tokens[h.tbodyOpenIndex];w?.map&&(w.map[1]=A)}return t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:A,srcOffset:o.srcOffset},t.tokens}getTableHeaderContext(e){const t=e.indexOf(` +`);if(t<0)return null;const n=e.indexOf(` +`,t+1);return n<0?null:e.slice(0,n+1)}getTableBodySection(e,t,n,i){if(t<0||t>=n||e[t]?.type!=="table_open")return null;let o=-1;for(let l=n-1;l>t;l--){const a=e[l];if(a.type==="table_close"&&a.level===i){o=l;break}}if(o<0)return null;let s=-1,r=-1;for(let l=t+1;l=0){for(let l=o-1;l>s;l--){const a=e[l];if(a.type==="tbody_close"&&a.level===i+1){r=l;break}}if(r<0)return null}return{tableCloseIndex:o,tbodyOpenIndex:s,tbodyCloseIndex:r}}isSingleTopLevelContainer(e,t,n,i){if(e.length<2)return!1;const o=e[0],s=e[e.length-1];if(o.type!==t||s.type!==n||o.level!==0||s.level!==0||i!==void 0&&o.markup!==i)return!1;let r=0;for(let l=0;l0&&l0||a.nesting<0)&&(r+=a.nesting)}return r===0}getListParagraphMode(e,t,n,i){let o=!1,s=!1;const r=i+2;for(let l=t;l=0;){const i=e.charCodeAt(n);if(i===32||i===9){n--;continue}return i===10}return!0}getDocLineCount(e,t=$o(e)){return e.length===0?0:e.charCodeAt(e.length-1)===10?t:t+1}shiftTokenLines(e,t){if(t===0)return;let n=null;for(let i=0;i=0;s--)n.push(o.children[s]);for(;n.length>0;){const s=n.pop();if(s.map&&(s.map[0]+=t,s.map[1]+=t),s.children)for(let r=s.children.length-1;r>=0;r--)n.push(s.children[r])}}}}};const ME={default:zhe,zero:jhe,commonmark:Phe};function Xhe(e){return{core:e.core.ruler.version,block:e.block.ruler.version,inline:e.inline.ruler.version,inline2:e.inline.ruler2.version}}function epe(e,t){return e.core.ruler.version!==t.core||e.block.ruler.version!==t.block||e.inline.ruler.version!==t.inline||e.inline.ruler2.version!==t.inline2}function IE(e){return e.experimental?{...e,...e.experimental}:e}function ra(e,t){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0)return!0;const n=e.experimental;return!!n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0}function TE(e,t,n){for(let i=0;i=4?n.quotes=[C[0],C[1],C[2],C[3]]:n.quotes=["“","”","‘","’"]}let r=TE(s?.options,o,["fullChunkSizeChars","fullChunkSizeLines","fullChunkMaxChunks"]),l=TE(s?.options,o,["streamChunkSizeChars","streamChunkSizeLines","streamChunkMaxChunks"]),a=EE(s?.options,o,"fullChunkedFallback"),u=EE(s?.options,o,"streamChunkedFallback"),c=!1,d=null,f=null;const h=new qfe;let m=null;const g=()=>(m||(m=new Khe(n)),m);let v=null;const y=()=>(v||(v=new Jhe(h)),v);let b=null;const A=()=>(b||(b=new Bz({fuzzyLink:!0})),b),w=C=>!c&&!!d&&!epe(C,d),M=(C,I)=>i==="default"&&!c&&m===null&&f!==null&&C.parse===f&&w(C)&&!C.stream.enabled&&I<(C.options.autoUnboundedThresholdChars??4e6)&&C.options.html===!1&&C.options.xhtmlOut===!1&&C.options.breaks===!1&&C.options.langPrefix==="language-"&&C.options.linkify===!1&&C.options.typographer===!1&&C.options.highlight===null,N=(C,I)=>i==="default"&&!c&&w(C)&&!C.stream.enabled&&!C.options.fullChunkedFallback&&I<(C.options.autoUnboundedThresholdChars??4e6)&&C.options.html===!1&&C.options.linkify===!1&&C.options.typographer===!1,T={core:h,block:h.block,inline:h.inline,get linkify(){const C=A();return Object.defineProperty(this,"linkify",{value:C,writable:!0,configurable:!0}),C},get renderer(){const C=g();return Object.defineProperty(this,"renderer",{value:C,writable:!0,configurable:!0}),C},options:n,__explicitFullChunkConfig:r,__explicitStreamChunkConfig:l,__explicitFullChunkFallbackSetting:a,__explicitStreamChunkFallbackSetting:u,__canUseImplicitLargeInputStrategy(){return w(this)},set(C){const I=IE(C);return this.options={...this.options,...I},(ra(C,"fullChunkSizeChars")||ra(C,"fullChunkSizeLines")||ra(C,"fullChunkMaxChunks"))&&(r=!0,this.__explicitFullChunkConfig=!0),(ra(C,"streamChunkSizeChars")||ra(C,"streamChunkSizeLines")||ra(C,"streamChunkMaxChunks"))&&(l=!0,this.__explicitStreamChunkConfig=!0),ra(C,"fullChunkedFallback")&&(a=!0,this.__explicitFullChunkFallbackSetting=!0),ra(C,"streamChunkedFallback")&&(u=!0,this.__explicitStreamChunkFallbackSetting=!0),m&&m.set(I),typeof I.stream=="boolean"&&(this.stream.enabled=I.stream,v&&(v.reset(),v.resetStats())),this},configure(C){const I=typeof C=="string"?ME[C]:C;if(!I)throw new Error("Wrong `markdown-it` preset, can't be empty");if(I.options&&this.set(I.options),I.components){const S=I.components;S.core?.rules&&this.core.ruler.enableOnly(S.core.rules),S.block?.rules&&this.block.ruler.enableOnly(S.block.rules),S.inline?.rules&&this.inline.ruler.enableOnly(S.inline.rules),S.inline2?.rules&&this.inline.ruler2.enableOnly(S.inline2.rules)}return this},enable(C,I){const S=Array.isArray(C)?C:[C],E=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],_=new Set;for(const F of E){if(!F)continue;const q=F.enable(S,!0);for(let P=0;P!_.has(q));if(F.length)throw new Error(`Rules manager: invalid rule name ${F.join(", ")}`)}return this},disable(C,I){const S=Array.isArray(C)?C:[C],E=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],_=new Set;for(const F of E){if(!F)continue;const q=F.disable(S,!0);for(let P=0;P!_.has(q));if(F.length)throw new Error(`Rules manager: invalid rule name ${F.join(", ")}`)}return this},use(C,...I){const S=typeof C=="function"?C:C&&typeof C.default=="function"?C.default:void 0;if(!S)throw new TypeError("MarkdownIt.use: plugin must be a function");const E=[this,...I],_=C;return c=!0,S.apply(_,E),this},render(C,I){let S;if(M(this,C.length)){I!==void 0&&(Or(I),S=l8("render"));const F=S?Mp():0,q=S?yE(C,S):vE(C);if(S&&(S.attemptMs=Mp()-F,q===null&&(S.fallbackReason="unsupported-stock-subset"),og(I,S)),q!==null)return I!==void 0&&ss(I,{area:"render",path:"stock-fast",reason:"stock-subset"}),q}const E=I??{},_=this.parse(C,E);return S&&og(E,S),g().render(_,this.options,E)},async renderAsync(C,I){let S;if(M(this,C.length)){I!==void 0&&(Or(I),S=l8("render"));const F=S?Mp():0,q=S?yE(C,S):vE(C);if(S&&(S.attemptMs=Mp()-F,q===null&&(S.fallbackReason="unsupported-stock-subset"),og(I,S)),q!==null)return I!==void 0&&ss(I,{area:"render",path:"stock-fast",reason:"stock-subset"}),q}const E=I??{},_=this.parse(C,E);return S&&og(E,S),g().renderAsync(_,this.options,E)},renderIterable(C,I={}){const S=this.parseIterable(C,I);return g().render(S,this.options,I)},async renderAsyncIterable(C,I={}){const S=await this.parseAsyncIterable(C,I);return g().renderAsync(S,this.options,I)},renderInline(C,I={}){const S=this.parseInline(C,I);return g().render(S,this.options,I)},validateLink:dj,normalizeLink:fj,normalizeLinkText:hj,utils:bce,helpers:{...ade},parse(C,I){if(typeof C!="string")throw new TypeError("Input data should be a String");if(I!==void 0&&Or(I),N(this,C.length)){const F=I===void 0?void 0:l8("parse"),q=F?Mp():0,P=nhe(C,F);if(F&&(F.attemptMs=Mp()-q,P===null&&(F.fallbackReason="unsupported-stock-subset"),og(I,F)),P!==null)return I!==void 0&&ss(I,{area:"parse",path:"stock-fast",reason:"stock-subset"}),P}const S=I??{};let E;if(!this.stream.enabled&&!this.options.fullChunkedFallback&&w(this)){const F=Sj(this,C.length);if(F==="yes"){const q=i0(this,C,S);return ss(I,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"char-threshold"}),q}F==="need-lines"&&(E=$o(C))}if(!this.stream.enabled){const F=C.length,q=this.options.autoTuneChunks!==!1,P=r,O=!a&&w(this),R=!!this.options.fullChunkedFallback,z=O&&F>=2e5;let H;(R||z||E!==void 0)&&(H=E??$o(C));const j=(R||z)&&q&&!P?$he(F,H,this.options):null;if(R||z){const Q=H??0;if(R?F>=(this.options.fullChunkThresholdChars??2e4)||Q>=(this.options.fullChunkThresholdLines??400):z){if(j&&j.strategy!=="plain"){const ae=kk(this,C,S,{maxChunkChars:j.maxChunkChars,maxChunkLines:j.maxChunkLines,fenceAware:j.fenceAware,maxChunks:j.maxChunks});return I&&LE(I,R?"explicit-full-chunk":"default-large-string"),ae}if(R){const ae=(Y,se,V)=>YV?V:Y,W=this.options.fullChunkAdaptive!==!1,G=this.options.fullChunkTargetChunks??8,oe=ae(Math.ceil(F/G),8e3,64e3),te=ae(Math.ceil(Q/G),150,700),ve=W?oe:this.options.fullChunkSizeChars??1e4,Te=W?te:this.options.fullChunkSizeLines??200,Fe=W?ae(Math.ceil(F/64e3),G,32):this.options.fullChunkMaxChunks,ye=kk(this,C,S,{maxChunkChars:ve,maxChunkLines:Te,fenceAware:this.options.fullChunkFenceAware??!0,maxChunks:Fe});return I&&LE(I,"explicit-full-chunk"),ye}}}if(E!==void 0&&w(this)&&xj(this,F,H??E)){const Q=i0(this,C,S);return ss(I,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"line-threshold"}),Q}}const _=ul(C);return ss(I,{area:"parse",path:"plain",reason:"default-plain"}),C1(S,_,()=>h.parse(C,S,this).tokens)},parseIterable(C,I={}){return Or(I),Fhe(this,C,I)},parseAsyncIterable(C,I={}){return Or(I),Bhe(this,C,I)},parseIterableToSink(C,I,S={}){return Or(S),Rhe(this,C,I,S)},parseAsyncIterableToSink(C,I,S={}){return Or(S),Ohe(this,C,I,S)},parseInline(C,I={}){if(typeof C!="string")throw new TypeError("Input data should be a String");Or(I),$v(I)&&Lc(I);const S=h.createState(C,I,this);return S.inlineMode=!0,h.process(S),S.tokens}};if(T.stream={enabled:!!n.stream,parse(C,I){return T.stream.enabled?y().parse(C,I,T):T.parse(C,I??{})},reset(){y().reset()},peek(){return v?v.peek():[]},stats(){return v?v.getStats():{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){v&&v.resetStats()}},s?.components){const C=s.components;C.core?.rules&&T.core.ruler.enableOnly(C.core.rules),C.block?.rules&&T.block.ruler.enableOnly(C.block.rules),C.inline?.rules&&T.inline.ruler.enableOnly(C.inline.rules),C.inline2?.rules&&T.inline.ruler2.enableOnly(C.inline2.rules)}return d=Xhe(T),f=T.parse,T}var npe=tpe;const Ej=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],ipe=["a","abbr","b","bdi","bdo","button","cite","code","data","del","dfn","em","font","i","ins","kbd","label","mark","q","s","samp","small","span","strong","sub","sup","time","u","var"],Lj=["article","aside","blockquote","details","div","figcaption","figure","footer","header","h1","h2","h3","h4","h5","h6","li","main","nav","ol","p","pre","section","summary","table","tbody","td","th","thead","tr","ul"],ope=["svg","g","path"],spe=["address","audio","body","canvas","caption","colgroup","datalist","dd","dialog","dl","dt","fieldset","form","head","hgroup","html","iframe","legend","map","menu","meter","noscript","object","optgroup","option","output","picture","progress","rp","rt","ruby","script","select","style","template","textarea","tfoot","title","video"],rpe=["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onsearch","innerhtml","outerhtml","textcontent","innertext","srcdoc","ping"],lpe=["action","data","href","src","srcset","poster","xlink:href","formaction"],ape=["script"],upe=["pre","iframe","picture","script","style","table","tbody","td","tfoot","th","thead","textarea","tr","title","video"],Hd=new Set(Ej),Nj=new Set(Lj),X0=new Set([...Ej,...ipe,...Lj,...ope]),Dj=new Set([...X0,...spe]),cpe=new Set(rpe),dpe=new Set(lpe),jv=new Set(ape),Fj=new Set(upe);function Bj(e){let t="";for(const n of e){const i=n.charCodeAt(0);i<=31||i>=127&&i<=159||/\s/u.test(n)||(t+=n)}return t}const fpe={amp:"&",bsol:"\\",colon:":",newline:` +`,sol:"/",tab:" "};function Rj(e){return e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|([a-z][a-z0-9]+));?/gi,(t,n,i,o)=>{const s=n??i;if(s){const r=Number.parseInt(s,n?10:16);try{return Number.isFinite(r)?String.fromCodePoint(r):""}catch{return""}}return fpe[String(o??"").toLowerCase()]??t})}const ty=new Set(["http","https","mailto","tel"]),hpe=new Set(["javascript","vbscript","data","file","ftp","blob","filesystem","intent","chrome","chrome-extension","moz-extension","ms-browser-extension","view-source"]),Ff=new Set(["http","https"]);function Oj(e){return e.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]?.toLowerCase()??""}const ppe=/^https?:\/\//i;function mpe(e){if(!ppe.test(e))return!1;for(const t of e){const n=t.charCodeAt(0);if(t==="&"||n<=32||n>=127&&n<=159||n>127&&/\s/u.test(t))return!1}return!0}function gpe(e,t,n){if(!r0(t,n)||!e.startsWith("file:///"))return!1;const i=e.charAt(8);return i!=="/"&&i!=="\\"}function r0(e,t){return e?(e==="a"||e==="area")&&(!t||t==="href"||t==="xlink:href"):!t||t==="href"}function vpe(e,t){return t==="href"||t==="xlink:href"?r0(e,t)?ty:Ff:t==="src"||t==="srcset"||t==="poster"||t==="action"||t==="formaction"||t==="data"?Ff:(r0(e,t),ty)}function Ch(e,t={}){if(mpe(e))return!1;const n=Bj(Rj(e)).toLowerCase(),i=String(t.tagName??"").toLowerCase(),o=String(t.attrName??"").toLowerCase();if(!n)return!1;if(n.startsWith("data:")){const r=/^data:image\/(?:png|gif|jpe?g|webp|avif|bmp);/i.test(n);return i==="img"&&o==="src"?!r:!0}if(/^[\\/]{2}/.test(n))return!0;if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#")||n.startsWith("?"))return!1;const s=Oj(n);return s?s==="file"?!gpe(n,i,o):r0(i,o)?hpe.has(s):!vpe(i,o).has(s):!1}function ype(e){const t=Rj(String(e??"")).trim();if(!t||t.startsWith("#")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("?"))return!1;const n=Oj(Bj(t).toLowerCase());return n==="http"||n==="https"}function kpe(e,t={}){const n=String(e??"").trim();return n?Ch(n,t)?"":n:""}function NE(e){return kpe(e,{tagName:"img",attrName:"src"})}function bpe(e,t,n){function i(f){return f.trim().split(" ",2)[0]===t}function o(f,h,m,g,v){return f[h].nesting===1&&f[h].attrJoin("class",t),v.renderToken(f,h,m,g,v)}n=n||{};const s=3,r=n.marker||":",l=r.charCodeAt(0),a=r.length,u=n.validate||i,c=n.render||o;function d(f,h,m,g){let v,y=!1,b=f.bMarks[h]+f.tShift[h],A=f.eMarks[h];if(l!==f.src.charCodeAt(b))return!1;for(v=b+1;v<=A&&r[(v-b)%a]===f.src[v];v++);const w=Math.floor((v-b)/a);if(w=m||(b=f.bMarks[T]+f.tShift[T],A=f.eMarks[T],b=4)){for(v=b+1;v<=A&&r[(v-b)%a]===f.src[v];v++);if(!(Math.floor((v-b)/a)=2){const r=Number(s[0]),l=Number(s[1]);Number.isFinite(r)&&Number.isFinite(l)&&(o.map=[r+t,Math.min(l+t,n)])}Array.isArray(o.children)&&$j(o.children,t,n)}}function Cpe(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(bpe,t,{render(n,i){return n[i].nesting===1?`
      `:`
      +`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,i,o)=>{const s=t,r=s.bMarks[n]+s.tShift[n],l=s.eMarks[n],a=s.src.slice(r,l),u=a.match(/^:::\s*([^\s{]+)/);if(!u)return!1;const c=u[1];if(!c.trim())return!1;const d=a.slice(u[0].length).trim();let f,h;const m=d.indexOf("{"),g=m>=0?d.slice(m).trimStart():void 0;if(m===-1)f=d||void 0;else{if(f=d.slice(0,m).trim()||void 0,g?.startsWith("{")){let N=0,T=-1;for(let C=0;C0&&(h=g.slice(0,T))}h||(f=d||void 0)}if(o)return!0;const v=!!s.env.__markstreamFinal;let y=n+1,b=!1;for(;y<=i;){const N=s.bMarks[y]+s.tShift[y],T=s.eMarks[y];if(s.src.slice(N,T).trim()===":::"){b=!0;break}y++}b||(y=i);const A=s.push("vmr_container_open","div",1);if(A.attrSet("class",`vmr-container vmr-container-${c}`),A.map=[n,b?y:i],A.meta={...A.meta??{},unclosed:!b&&!v},f&&A.attrSet("data-args",f),h)try{const N=JSON.parse(h);for(const[T,C]of Object.entries(N)){const I=C!=null&&typeof C=="object";A.attrSet(`data-${T}`,I?JSON.stringify(C):String(C))}}catch{const N=wpe(h);if(N)for(const[T,C]of Object.entries(N)){const I=C!=null&&typeof C=="object";A.attrSet(`data-${T}`,I?JSON.stringify(C):String(C))}else A.attrSet("data-attrs",h)}const w=[];for(let N=n+1;NN.trim().length>0)){let N=w.join(` +`);N.endsWith(` +`)||(N+=` +`),N.endsWith(` + +`)||(N+=` +`);const T=s.tokens[s.tokens.length-1];T&&(T.raw=N);const C=[];s.md.block.parse(N,s.md,s.env,C),$j(C,n+1,n+1+w.length),s.tokens.push(...C)}const M=s.push("vmr_container_close","div",-1);return b||(M.hidden=!0,M.map=[i,i]),s.line=b?y+1:y,!0},{alt:["paragraph","reference","blockquote","list"]})}function Ka(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ho(e){let t=!1,n=!1;for(let i=0;i")return i}return-1}function s4(e){const t=[],n=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let i;for(;(i=n.exec(e))!==null;){const o=i[1];if(!o)continue;const s=i[2]||i[3]||i[4]||"";t.push([o,s])}return t}const Ape=/^[a-z][a-z0-9_-]*$/;function DE(e){return Ape.test(String(e??"").trim().toLowerCase())}function wa(e){const t=String(e??"").trim();if(!t)return"";if(!t.startsWith("<"))return DE(t)?t.toLowerCase():"";let n=1;for(;n]/.test(s)?"":DE(o)?o:""}function tp(e){if(!e||e.length===0)return[];const t=new Set,n=[];for(const i of e){const o=wa(i);!o||t.has(o)||(t.add(o),n.push(o))}return n}function xpe(...e){const t=new Set,n=[];for(const i of e)for(const o of tp(i))t.has(o)||(t.add(o),n.push(o));return n}function Spe(e){const t=tp(e);return{key:t.join(","),tags:t}}function Pj(e){return wa(e)}function _pe(e,t){const n=String(e??""),i=wa(t);if(!i)return!1;const o=Ka(i),s=n.match(new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?(\s*\/)?>`,"i"));return s?s[1]?!0:new RegExp(String.raw`<\s*\/\s*${o}\s*>`,"i").test(n):!1}function zj(e,t){const n=wa(t);return!!n&&!X0.has(n)&&!_pe(e,n)}function Mpe(e,t){const n=String(e??""),i=wa(t);if(!i)return n;const o=Ka(i),s=new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?>\s*`,"i"),r=new RegExp(String.raw`\s*<\s*\/\s*${o}\s*>\s*$`,"i");return n.replace(s,"").replace(r,"")}const jj=Hd,Ipe=X0,Hj=new Set(Nj);Hj.delete("details");const Tpe=/<([A-Z][\w-]*)(?=[\s/>]|$)/gi,Epe=/<\/\s*([A-Z][\w-]*)(?=[\s/>]|$)/gi,LC=/^<\s*(?:\/\s*)?([A-Z][\w-]*)/i,Lpe=/^<\s*([A-Z][\w:-]*)(?=[\s/>]|$)/i;function wk(e){return(e.match(LC)?.[1]??"").toLowerCase()}function I7(e){return/^\s*<\s*\//.test(e)}function T7(e,t){return jj.has(t)||/\/\s*>\s*$/.test(e)}function Npe(e,t){let n=0;for(let i=0;i0&&n--;continue}T7(o,s)||n++}}return n}function FE(e,t,n=0){const i=new RegExp(String.raw`<\s*(\/?)\s*${Ka(t)}(?=[\s>/])[^>]*>`,"gi");i.lastIndex=Math.max(0,n);let o=0,s;for(;(s=i.exec(e))!==null;){const r=s[0]??"",l=!!s[1],a=!l&&/\/\s*>$/.test(r);if(l){if(o===0)return{start:s.index,end:s.index+r.length};o--;continue}a||o++}return null}function Fpe(e,t){const n=new RegExp(String.raw`<\s*(\/?)\s*${Ka(t)}(?=[\s>/])[^>]*>`,"gi");let i=0,o;for(;(o=n.exec(e))!==null;){const s=o[0]??"",r=!!o[1],l=!r&&/\/\s*>$/.test(s);if(r){i>0&&i--;continue}l||i++}return i}function Ck(e){const t=e;return String(t.raw??t.content??t.markup??"")}function Bpe(e){const t=e;return t.meta||(t.meta={}),t.meta}function b8(e,t,n){const i=Bpe(e);i.markstreamCustomHtmlRaw=t,i.markstreamCustomHtmlInner=n}function Rpe(e,t){if(!t.size)return;const n=Array.from(t,h=>new RegExp(String.raw`<\s*${Ka(h)}(?=[\s>/])`,"i")),i=[];let o=!1;const s=h=>h?n.some(m=>m.test(h)):!1,r=h=>{if(!(!h||!i.length))for(const m of i)m.raw+=h,m.inner+=h},l=()=>{!i.length||!o||(r(` +`),o=!1)},a=h=>{r(h)},u=h=>{for(let g=0;g{const m=i[i.length-1]?.tag;if(!m)return null;const g=new RegExp(String.raw`^\s*<\s*\/\s*${Ka(m)}\s*>`,"i");return h.match(g)?.[0]??null},d=h=>!!c(h),f=(h,m,g)=>{const v=g??(h.type==="html_inline"?wk(m):"");if(!(v&&t.has(v))){r(m);return}const y=I7(m),b=!y&&T7(m,v);if(y){if(!i.length||i[i.length-1].tag!==v){r(m);return}u(m);return}if(r(m),b){b8(h,m,"");return}i.push({tag:v,token:h,raw:m,inner:""})};for(const h of e){if(h.type==="inline"&&Array.isArray(h.children)){const m=String(h.content??"");if(d(m)?o=!1:l(),!i.length&&!s(m)){o=!1;continue}let g=0,v=!0;for(const y of h.children){const b=Ck(y),A=y.type==="html_inline"?wk(b):"",w=A&&t.has(A);let M=b;if(v&&m&&b&&(i.length||w)){const N=m.indexOf(b,g);if(N!==-1)a(m.slice(g,N)),M=m.slice(N,N+b.length),g=N+b.length;else{if(i.length&&!w)continue;v=!1}}f(y,M,A)}v&&m&&g0;continue}if(i.length&&typeof h.content=="string"){const m=Ck(h),g=h.type==="html_block"?c(m):null;if(g){u(`${o?` +`:""}${g}`),o=i.length>0;continue}if(!h.content)continue;l(),r(h.content),o=!0}}for(const h of i)b8(h.token,h.raw,h.inner)}function Ope(e){return/^\s*<\s*[!?]/.test(e)}function $pe(e){const t=new Set(Ipe);if(e&&Array.isArray(e))for(const n of e){const i=String(n??"").trim();if(!i)continue;const o=i.match(/^[<\s/]*([A-Z][\w-]*)/i);o&&t.add(o[1].toLowerCase())}return t}function BE(e,t){if(t.has(e))return!0;for(const n of t)if(n.startsWith(e))return!0;return!1}function Ppe(e,t){let n=null;for(const s of e.matchAll(Tpe)){const r=s.index??-1;if(r<0)continue;const l=(s[1]??"").toLowerCase();BE(l,t)&&Ho(e.slice(r))===-1&&(!n||r")&&(!n||s")&&(!n||s{const h=f,m=new Set(n),g=Array.isArray(h.env?.__markstreamCustomHtmlTags)?h.env.__markstreamCustomHtmlTags:[];for(const A of g){const w=wa(String(A??""));w&&m.add(w)}const v=$pe(Array.from(m)),y=new Set(Hpe);for(const A of m)y.add(A);return{autoCloseInlineTagSet:y,commonHtmlTags:v,customTagSet:m,shouldMergeHtmlBlockTag:A=>m.has(A)||!v.has(A)||Hj.has(A)}},o=f=>{if(f.type==="html_block")return String(f.content??"");if(f.type!=="inline"||!Array.isArray(f.children)||f.children.length!==1)return"";const h=f.children[0];return h?.type!=="html_block"?"":String(f.content??h.content??"")},s=(f,h)=>{f.type="html_block",f.content=h,f.raw=h,f.children=[]},r=f=>f.replace(/^(?:\r?\n)+/,""),l=f=>/^(?: {4}|\t)/.test(f),a=f=>f.replace(/^(?: {4}|\t)/gm,""),u=(f,h)=>{const m=r(f);if(!/\S/.test(m))return[];if(l(m))return[{type:"code_block",content:a(m),raw:m}];const g=m.replace(/^[\t ]+/,"");if(!g)return[];if(g.startsWith("<"))return[{type:"html_block",content:g}];const v={type:"inline",tag:"",nesting:0,content:g,children:[{type:"text",content:g,raw:g}]};return h==="paragraph"?[{type:"paragraph_open",tag:"p",nesting:1},v,{type:"paragraph_close",tag:"p",nesting:-1}]:h==="text"?[{type:"text",content:g,raw:g}]:[v]},c=(f,h,m)=>f[h-1]?.type==="paragraph_open"&&f[h+1]?.type==="paragraph_close"?"inline":m,d=(f,h)=>{const m=r(h);return!/\S/.test(m)||f.type!=="inline"||!Array.isArray(f.children)?!1:(f.content=`${String(f.content??"")}${m}`,f.children.push({type:"text",content:m,raw:m}),!0)};e.core.ruler.after("inline","fix_html_inline_streaming",f=>{const h=f.tokens??[],{commonHtmlTags:m,customTagSet:g}=i(f);for(const v of h){const y=v;if(y.type!=="inline"||!Array.isArray(y.children))continue;const b=String(y.content??""),A=y.children.length?y.children:b.includes("<")?[{type:"text",content:b,raw:b}]:null;if(A)try{const w=jpe(A,m);if(y.children=w.children,w.pendingBuffer){const M=b.lastIndexOf(w.pendingBuffer);if(M!==-1){const N=b.slice(0,M);y.content=N,typeof y.raw=="string"&&(y.raw=N)}}}catch(w){console.error("[applyFixHtmlInlineTokens] failed to fix streaming html inline",w)}}Rpe(h,g)}),e.core.ruler.push("fix_html_inline_tokens",f=>{const h=f.tokens??[],{autoCloseInlineTagSet:m,customTagSet:g,shouldMergeHtmlBlockTag:v}=i(f),y=[];for(let b=0;b0){const[M,N]=y[y.length-1];if(b!==N){if(A.type==="paragraph_open"||A.type==="paragraph_close"){h.splice(b,1),b--;continue}const T=String(A.content??A.raw??"");if(T){const C=h[N],I=`${String(C.content||"")} +${T}`,S=Ho(I),E=S===-1?null:FE(I,M,S+1);if(E){const _=I.slice(0,E.end),F=I.slice(E.end);C.content=_,C.loading=!1,h.splice(b,1),y.pop();const q=d(C,F)?[]:u(F,c(h,b,"paragraph"));q.length&&h.splice(b,0,...q),b--;continue}C.content=I,C.loading!==!1&&(C.loading=!0)}h.splice(b,1),b--;continue}}const w=o(A);if(w){if(Ope(w))continue;const M=(w.match(/<\s*(?:\/\s*)?([^\s>/]+)/)?.[1]??"").toLowerCase(),N=/^\s*<\s*\//.test(w);if(!M||!v(M))continue;if(s(A,w),!N)M&&!new RegExp(`^\\s*<\\s*${M}\\b[^>]*\\/\\s*>`,"i").test(w)&&Fpe(w,M)>0&&y.push([M,b]);else if(y.length>0&&M&&y[y.length-1][0]===M){const[,T]=y[y.length-1],C=h[T];C.content=`${String(C.content||"")} +${w}`,C.loading=!1,y.pop(),h.splice(b,1),b--}continue}else if(y.length>0){if(A.type==="paragraph_open"||A.type==="paragraph_close"){h.splice(b,1),b--;continue}const M=A.content||"",N=new RegExp(`<\\s*\\/\\s*${y[y.length-1][0]}\\s*>`,"i").test(M);if(M){const[,T]=y[y.length-1],C=h[T];C.content=`${C.content||""} +${M}`,C.loading!==!1&&(C.loading=!N)}N&&y.pop(),h.splice(b,1),b--}else continue}if(g.size>0){const b=new Map,A=new Map,w=T=>{let C=b.get(T);return C||(C=new RegExp(`<\\s*${T}\\b`,"i"),b.set(T,C)),C},M=T=>{let C=A.get(T);return C||(C=new RegExp(`<\\s*\\/\\s*${T}\\s*>`,"i"),A.set(T,C)),C},N=[];for(let T=0;T0){const E=N[N.length-1],_=h[E.index],F=C.type==="html_block"?M(E.tag).exec(I):null;if(F){const O=F.index+F[0].length,R=I.slice(0,O),z=I.slice(O);_.content=`${String(_.content??"")} +${R}`,Array.isArray(_.children)&&_.children.push({type:"html_inline",content:``,raw:``}),N.pop();const H=d(_,z)?[]:u(z,c(h,T,"paragraph"));H.length?h.splice(T,1,...H):(h.splice(T,1),T--);continue}if(C.type!=="inline")continue;const q=Array.isArray(C.children)?C.children:[],P=Npe(q,E.tag);if(P!==-1){const O=q.slice(0,P+1),R=q.slice(P+1),z=O.map(H=>String(H?.content??H?.raw??"")).join("");if(_.content=`${String(_.content??"")} +${z}`,Array.isArray(_.children)&&_.children.push(...O),R.length){const H=R.map(j=>String(j.content??j.raw??"")).join("");if(H.trim()){const j=H.replace(/^\s+/,"");if(d(_,H))h.splice(T,1),T--;else if(j.startsWith("<"))h.splice(T,1,{type:"html_block",content:j});else{const Q=u(H,c(h,T,"paragraph"));h.splice(T,1,...Q)}}else h.splice(T,1),T--}else h.splice(T,1),T--;N.pop();continue}_.content=`${String(_.content??"")} +${I}`,Array.isArray(_.children)&&_.children.push(...q),h.splice(T,1),T--;continue}if(C.type!=="inline")continue;const S=Array.isArray(C.children)?C.children:[];for(const E of g)if((S.length?Dpe(S,E):w(E).test(I)&&!M(E).test(I)?1:0)>0){N.push({tag:E,index:T});break}}}{let b=0;for(let A=0;A0?b--:(h.splice(A,1),A--))}}for(let b=0;b/]+)/)?.[1]??"").toLowerCase();if(C.startsWith("!")||C.startsWith("?")){A.loading=!1;continue}if(g.has(C)){const P=String(A.content??""),O=Ho(P),R=O===-1?null:FE(P,C,O+1);A.loading=R?!1:A.loading!==void 0?A.loading:!0;const z=R?.start??-1,H=R?R.end-R.start:0;if(z!==-1){const j=P.slice(0,z+H);let Q="";O!==-1&&O]+)))?/g;let S;for(;(S=I.exec(A.content||""))!==null;)S[1],S[2]||S[3]||S[4];const E=String(A.content??""),_=new RegExp(`<\\/\\s*${C}\\s*>`,"i").exec(E),F=_?_.index:-1,q=_?_[0].length:0;if(F!==-1){const P=E.slice(0,F+q),O=(E.slice(F+q)||"").replace(/^\s+/,"");A.children=[{type:"html_block",content:P,tag:C,loading:!1}],A.content=P,A.raw=P,O&&h.splice(b+1,0,O.startsWith("<")?{type:"html_block",content:O}:{type:"text",content:O,raw:O})}else A.children=[{type:"html_block",content:A.content,tag:C,loading:!0}];continue}if(!A||A.type!=="inline")continue;if(A.children.length===2&&A.children[0].type==="html_inline"){const C=(A.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase(),I=A.children[1],S=String(I?.content??"").match(/^<\s*\/\s*([^\s>]+)/)?.[1]?.toLowerCase()??"";if(I?.type==="html_inline"&&S===C)continue;m.has(C)?(A.children[0].loading=!0,A.children[0].tag=C,A.children.push({type:"html_inline",tag:C,loading:!0,content:``})):A.children=[{type:"html_block",loading:!0,tag:C,content:String(A.children[0]?.content??"")+String(A.children[1]?.content??"")}];continue}else if(A.children.length===3&&A.children[0].type==="html_inline"&&A.children[2].type==="html_inline"){const C=(A.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase();if(m.has(C))continue;A.children=[{type:"html_block",loading:!1,tag:C,content:A.children.map(I=>I.content).join("")}];continue}if(!A.content?.startsWith("<")||A.children?.length!==1)continue;const w=String(A.content),M=A,N=M.children[0];if(N?.type!=="html_inline"){/^<\s*(?:\/\s*)?[A-Z][\w:-]*\s*$/i.test(w)&&(M.children.length=0);continue}const T=String(N.content??w).match(Lpe)?.[1]?.toLowerCase()??"";if(T){if(/\/\s*>\s*$/.test(w)||jj.has(T)){M.children=[{type:"html_inline",content:w}];continue}M.children.length=0}}})}function qpe(e){const t=e.trim();return!t||/^&[a-z0-9#]+;/i.test(t)?!1:!!(/^(?:const|let|var|function|class|import|export|if|for|while|return|await|async|yield|try|catch|throw|new|typeof|instanceof|switch|case|break|continue|def|ruby|perl|print|echo|true|false|null|undefined|NaN|Infinity|this)\b/.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\])*\s*\(/i.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[[\d+\]])+/i.test(t)||/\w+\s*(?:===?|!==?|<=?|>=?|\+\+|--|&&|\|\||\?\.)/.test(t)||/^(?:!!|\+\+|--)\s*\w/.test(t)||/[\w$]+\s*(?:\+=|-=|\*=|\/=|%=|\*\*=|=)/.test(t)||/^(?:https?:\/\/|ftp:\/\/|file:\/\/|\/\/|www\.)/i.test(t)||/`[^`]*\$\{[^}]*\}[^`]*`/.test(t)||/<\/?[A-Z][a-zA-Z0-9]*/.test(t)||/<[a-z][a-z0-9]*\s[^>]+>/.test(t)||/^(["'`]).*\1\s*[;,]?$/.test(t)||/^\[[\s\S]*\]$/.test(t)||/^\{[\s\S]*\}$/.test(t)||/^\(\s*\)$/.test(t)||/[\w$]+(?:\s*[+\-*/%<>=!&|^~:]+\s*[\w$]+|\s*\.\s*[\w$]+)/.test(t)||/=>|->|::/.test(t)||/^@[\w.$]+$/.test(t)||/^(?:0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\d+(?:\.\d*)?(?:px|em|rem|%|vh|vw|deg|s|ms)?)$/.test(t)||/^\$[\w$]+\s*[=:]/.test(t)||/\|\s*\w+|\w+\s*\|/.test(t)||/^(?:git|npm|yarn|pnpm|bun|pip|cargo|go|rust|python|node|java|mvn|gradle|docker|kubectl)\s+/.test(t)||/(?:console|window|document|Math|JSON|Date|Array|Object|String|Number|Boolean)\.[a-zA-Z]/.test(t)||/^(?:\/\/|#|\/\*|\*\/|)/.test(t)||/^(?:<<<|<<\s*['"]?\w+['"]?)/.test(t))}function Upe(e,t={}){t.enabled!==!1&&e.core.ruler.after("inline","fix_indented_code_block",n=>{const i=n.tokens??[];for(let o=0;oa.trim().length>0);if(l.length===1&&!qpe(l[0]??"")){const a=l[0]??"",u=s.level??0;i.splice(o,1,{type:"paragraph_open",tag:"p",nesting:1,level:u},{type:"inline",tag:"",nesting:0,level:u,content:a,children:[{type:"text",content:a,level:u+1,raw:a}],block:!0},{type:"paragraph_close",tag:"p",nesting:-1,level:u}),o+=2}}})}const Wj=/\.([a-z0-9]{1,15})$/i,Vpe=/[_()[\]{}<>]/u,Kpe=/^(?:https?:\/\/|ftp:\/\/|mailto:|www\.)/i,Zpe=/[?#@]/u,Gpe=/[\\/]/u,Qpe=/^[\p{L}\p{N}./\\-]+$/u,Ype=/^[A-Za-z0-9-]{1,63}$/u,Jpe=/^xn--[a-z0-9-]{2,59}$/i,Xpe=/^(?:[A-Z]{1,6}|\d{1,8})$/u,e1e=/^(?=.{1,12}$)[A-Z0-9]+(?:[-.][A-Z0-9]+)*$/iu,t1e=/文件名\s*[::]?|附件\s*[::]?|路径\s*[::]?|路徑\s*[::]?|文件列表\s*[::]?|文档列表\s*[::]?|文檔列表\s*[::]?|\bfile\s*names?\b\s*[::]?|\battachments?\b\s*[::]?|\bpaths?\b\s*[::]?|\bfile\s+lists?\b\s*[::]?|\bdocument\s+lists?\b\s*[::]?/iu,n1e=/文件名\s*[::]?|文件\s*[::]?|附件\s*[::]?|档案\s*[::]?|檔案\s*[::]?|文档\s*[::]?|文檔\s*[::]?|资料\s*[::]?|資料\s*[::]?|路径\s*[::]?|路徑\s*[::]?|\bfile\s*name\b\s*[::]?|\battachments?\b\s*[::]?|\bfiles?\b\s*[::]?|\bdocuments?\b\s*[::]?|\bdocs?\b\s*[::]?|\bpaths?\b\s*[::]?/iu,i1e=/股票代码|股票代碼|证券代码|證券代碼|(?:代码|代碼|交易所|后缀|後綴|市场|市場)(?=$|[\s::/|,,、()()])|\btickers?\b|\bsymbols?\b|\bexchanges?\b/iu,o1e=2e3,s1e=512,r1e={},l1e=new Set(["ai","md","py","rs","sh","zip"]),qj=new Set(["as","bj","de","hk","l","ln","ny","pa","sh","ss","sz","t","us"]),a1e=new Set([...qj,"at","ax","cn","co","it","jp","ks","mc","mx","nz","pl","sa","si","to","tw"]),u1e=new Set(["com","dev","io","page","site"]),c1e=new Set(["app","apk","dmg","exe","ipa","lock","log","markdown","webmanifest"]),d1e=new Set(["7z","ai","astro","avi","bash","bz2","c","cjs","cpp","cs","csv","doc","docx","fish","flac","gif","go","gz","h","hpp","html","java","jpeg","jpg","js","json","jsx","kt","md","mdx","mjs","mov","mp3","mp4","pdf","php","png","ppt","pptx","ps1","py","rar","rb","rs","sh","sql","svg","swift","svelte","tar","tgz","toml","ts","tsx","txt","vue","wav","webp","xls","xlsx","xml","yaml","yml","zip","zsh"]),lh=new Map;function RE(e,t){if(!e||e.length>s1e)return t;for(lh.set(e,t);lh.size>o1e;){const n=lh.keys().next().value;if(!n)break;lh.delete(n)}return t}function ev(e){return e?.filename===!0||e?.explicitFilename===!0||e?.marketTicker===!0}function w8(e,t){const n={filename:e?.filename||t?.filename,explicitFilename:e?.explicitFilename||t?.explicitFilename,marketTicker:e?.marketTicker||t?.marketTicker};return ev(n)?n:void 0}function OE(e,t){if(!ev(t))return e;const n=e?.__linkifyDemotionContext;return{...e,__linkifyDemotionContext:{filename:n?.filename||t?.filename,explicitFilename:n?.explicitFilename||t?.explicitFilename,marketTicker:n?.marketTicker||t?.marketTicker}}}function $E(e){const t=Hv(e);return ev(t)?t:void 0}function f1e(e){return e.replace(/^[\s>*_`[\]((【《"'“‘]+/u,"").replace(/[\s<*_`\]))】》"'.。;;,,、::!?!?]+$/u,"")}function PE(e,t){if(!ev(t))return;const n=String(e??"").trim().split(/\s+/u).map(f1e).filter(Boolean);if(n.length===0)return;const i={};return t?.filename&&n.every(o=>Ak(o,{filename:!0,explicitFilename:t.explicitFilename}))&&(i.filename=!0),t?.explicitFilename&&i.filename&&(i.explicitFilename=!0),t?.marketTicker&&n.every(o=>Ak(o,{marketTicker:!0}))&&(i.marketTicker=!0),ev(i)?i:void 0}function af(e,t=!1){let n;return{options(i){return t||i==null?OE(e,n):OE(e,w8($E(i),PE(i,n)))},remember(i){const o=$E(i);n=t?w8(n,o):w8(o,PE(i,n))},reset(){n=void 0}}}function zE(e){return Ype.test(e)&&!e.startsWith("-")&&!e.endsWith("-")}function h1e(e){const t=e.split(".");if(t.length<2)return!1;const n=t[t.length-1]?.toLowerCase()??"";return zE(n)||Jpe.test(n)?t.every(zE):!1}function Uj(e){return Array.from(e).some(t=>t.charCodeAt(0)>127)}function p1e(e){return e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/,1)[0]??""}function m1e(e){return e.split(".").some(t=>t.toLowerCase().startsWith("xn--"))}function Vj(e,t,n){const i=p1e(t);return Uj(e)&&m1e(i)&&String(n??"").toLowerCase().includes(i.toLowerCase())}function g1e(e){if(!e)return!1;if(e.includes("文件")||e.includes("附件")||e.includes("路径")||e.includes("路徑")||e.includes("文档")||e.includes("文檔")||e.includes("档案")||e.includes("檔案")||e.includes("资料")||e.includes("資料")||e.includes("股票")||e.includes("证券")||e.includes("證券")||e.includes("代码")||e.includes("代碼")||e.includes("交易所")||e.includes("后缀")||e.includes("後綴")||e.includes("市场")||e.includes("市場"))return!0;const t=e.toLowerCase();return t.includes("file")||t.includes("attachment")||t.includes("document")||t.includes("doc")||t.includes("path")||t.includes("ticker")||t.includes("symbol")||t.includes("exchange")}function Hv(e){const t=String(e??""),n=lh.get(t);return n?(lh.delete(t),lh.set(t,n),n):g1e(t)?RE(t,{explicitFilename:t1e.test(t),filename:n1e.test(t),marketTicker:i1e.test(t)}):RE(t,r1e)}function v1e(e){return h1e(e.split(/[\\/]/)[0]??"")}function y1e(e){const t=e.replace(/[^a-z]/gi,"");return t.length>=2&&t===t.toUpperCase()}function k1e(e){if(Vpe.test(e)||!Qpe.test(e))return!0;if(Gpe.test(e))return!v1e(e);const t=e.replace(Wj,"");return Uj(t)?!0:t.split(".").filter(Boolean).some(y1e)}function b1e(e,t,n){if(!(n?a1e:qj).has(t))return!1;const i=e.slice(0,-(t.length+1));return i===""?e.startsWith("."):(n?e1e:Xpe).test(i)}function Ak(e,t={}){if(!e||Kpe.test(e)||Zpe.test(e))return!1;const n=e.match(Wj);if(!n)return!1;const i=String(n[1]??"").toLowerCase();return b1e(e,i,t.marketTicker===!0)?!0:d1e.has(i)?!l1e.has(i)||t.filename?!0:k1e(e):!!(t.explicitFilename&&u1e.has(i)||t.filename&&c1e.has(i))}const Kj=new WeakMap,Zj=new WeakSet;function NC(e,t){return Kj.set(e,t),e}function w1e(e){return Kj.get(e)}function C1e(e){Zj.add(e)}function A1e(e){return e===void 0||Zj.has(e)}const jE=["!"];function HE(e){return e==="linkify"||e==="autolink"?e:"recovery"}function rl(e){return{type:"text",content:e,raw:e}}function Bf(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function Rf(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Kc(e,t,n,i="recovery"){let o="";if(t.includes('"')){const s=t.split('"');t=s[0].trim(),o=s[1].trim()}return NC({type:"link",loading:n,href:t,title:o,text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`},i)}function x1e(e,t){if(!(!e||!t)&&(e.href=String(e.href??"")+t,e.text=String(e.text??"")+t,e.raw=`[${e.text}](${e.href})`,Array.isArray(e.children)&&e.children.length)){const n=e.children[e.children.length-1];n?.type==="text"?(n.content=String(n.content??"")+t,n.raw=String(n.raw??"")+t):e.children.push(rl(t))}}function WE(e,t){let n=-1;for(const i of t){const o=e.indexOf(i);o!==-1&&(n===-1||on?.[0]==="href")?.[1];return typeof t=="string"?t:""}function _1e(e,t){if(!e)return;e.attrs=Array.isArray(e.attrs)?e.attrs:[];const n=e.attrs.findIndex(i=>i?.[0]==="href");n>=0?e.attrs[n][1]=t:e.attrs.push(["href",t])}function qE(e,t,n){let i="";for(let o=t+1;o{const n=t.tokens??[];for(let i=0;ir.type==="code_inline"),i=new Map;let o=0;for(let r=0;r0&&u?UE(u):-1;if(c!==-1&&u)for(const d of u.slice(c))d==="("?o++:d===")"&&o>0&&o--}a!==-1&&(r=a);continue}if(!(l.type!=="text"||typeof l.content!="string"))for(const a of l.content)a==="("?o++:a===")"&&o>0&&o--}const s=Hv(t);for(let r=0;r<=e.length-1;r++){r<0&&(r=0);const l=e[r];if(!l)break;if(l.type==="link_open"&&(l.markup==="linkify"||l.markup==="autolink")){let a=-1;for(let u=r+1;u0){const m=UE(u);m!==-1&&(d===-1||m=g.content.length){h-=g.content.length;continue}if(h<0)break;const v=g.content[h],y=g.content.slice(0,h);let b=g.content.slice(h);for(let M=m+1;M0&&(e.splice(m+1,A),a=m+1);let w=c;if(v==="!"&&f!==-1)w=c.slice(0,f);else if(b){const M=encodeURI(b);if(M&&c.endsWith(M))w=c.slice(0,c.length-M.length);else{const N=v?encodeURI(v):"",T=N?c.indexOf(N):-1;T!==-1&&(w=c.slice(0,T))}}w!==c&&_1e(l,w),b&&e.splice(a+1,0,rl(b));break}}}if(!n){if(l?.type==="em_open"&&e[r-1]?.type==="text"&&e[r-1].content?.endsWith("*")){const a=e[r-1].content?.replace(/(\*+)$/,"")||"";e[r-1].content=a,l.type="strong_open",l.tag="strong",l.markup="**";for(let u=r+1;ud[0]==="href")?.[1]||"";if(e[r+3]?.type==="text"){const d=(e[r+3]?.content??"").indexOf(")"),f=d===-1;d===-1&&(c+=e[r+3]?.content?.slice(0,d)||"",e[r+3].content=""),a.push(Kc(u,c,f,"linkify"));const h=e[r+3].content?.replace(/^\)\**/,"");h&&a.push(rl(h)),e.splice(r-4,8,...a)}else a.push(NC({type:"link",loading:!0,href:c,title:"",text:u,children:[{type:"text",content:c,raw:c}],raw:`[${u}](${c})`},"linkify")),e.splice(r-4,7,...a);continue}else if(e[r-1].content==="]("&&e[r-3]?.type==="text"&&e[r-3].content?.endsWith(")"))if(e[r-2]?.type==="strong_open"){const[a,u]=e[r-3].content?.split("[**")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else if(e[r-2]?.type==="em_open"){const[a,u]=e[r-3].content?.split("[*")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else{const[a,u]=e[r-3].content?.split("[")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}}if(l.type==="link_close"&&l.nesting===-1&&e[r-2]?.type==="link_open"&&e[r+1]?.type==="text"&&e[r-1]?.type==="text"){const a=e[r-1].content||"",u=e[r-2].attrs||[],c=u.find(y=>y[0]==="href")?.[1]||"",d=u.find(y=>y[0]==="title")?.[1]||"";let f=3,h=2;const m=(e[r-3]?.content||"").match(/^(\*+)$/),g=[];if(m){h+=1;const y=m[1].length;Bf(g,y)}if(l.markup!=="linkify"&&e[r+1].type==="text"&&e[r+1]?.content?.startsWith("](")){f+=1;for(let y=r+1;yv[0]==="href")?.[1];e[r+5]?.type==="text"&&e[r+5].content==="."?(f=(g||f)+e[r+5].content,e[r+5].content=""):f=g||f,h+=3}let m=!0;if(l.nesting===-1&&(d=d.replace(/\*+$/,"")),e[r+2]?.type==="text"){const g=(e[r+2]?.content??"").indexOf(")");m=g===-1,g===-1&&(f+=e[r+2]?.content?.slice(0,g)||"",e[r+2].content="")}a.push(Kc(d,f,m)),Rf(a,2),e.splice(r-2,h,...a)}if(l.type==="text"&&/\*+\[[^\]]*$/.test(l.content||"")&&e[r+1]?.type==="strong_open"&&e[r+2]?.type==="text"&&e[r+2].content==="]("&&e[r+3]?.type==="link_open"&&e[r+5]?.type==="link_close"&&e[r+6]?.type==="text"&&e[r+6].content===")"&&e[r+7]?.type==="strong_close"){const a=(l.content||"").match(/^(\*+)\[(.*)$/);if(a){const u=(a[2]||"")+a[1];let c=e[r+3]?.attrs?.find(f=>f[0]==="href")?.[1]||"";!c&&e[r+4]?.type==="text"&&(c=e[r+4].content||"");const d=[];Bf(d,2),d.push(Kc(u,c,!1)),Rf(d,2),e.splice(r,9,...d),r-=d.length-1;continue}}}}if(n)return e;for(let r=0;r{const n=t.tokens??[];for(let i=0;i{const n=t.tokens??[];for(let i=0;i=0&&e[m].type==="text"&&e[m].content==="";)m--;const g=e[m];let v=c+1;for(;v=0&&e[m].type==="text"&&e[m].content==="";)m--;const g=e[m];let v=c+1;for(;v{const n=t;try{const i=j1e(n.tokens??[],!!n.env?.__markstreamFinal,n.src??"");Array.isArray(i)&&(n.tokens=i)}catch(i){console.error("[applyFixTableTokens] failed to fix table tokens",i)}})}function VE(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function KE(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function ZE(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:null,content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function Gj(e,t){if(!e.startsWith("|")||e.includes(` +`)||!e.endsWith("|"))return null;const n=e.slice(1).split("|");return n.at(-1)===""&&n.pop(),n.length>0&&n.every(i=>i.trim().length>0)?n:null}function C8(e){return Gj(e)!==null}function Qj(e){return/^:?-+:?$/.test(e.trim())}function R1e(e){if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|");return t.at(-1)===""&&t.pop(),t.length>0&&t.every(Qj)}function O1e(e){return/^(?:[::]-*|:?-+:?)?$/.test(e.trim())}function $1e(e){if(e==="")return!0;if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|"),n=t.at(-1)??"";return t.slice(0,-1).every(Qj)&&O1e(n)}function P1e(e){return e==="|"||e==="|:"}function z1e(e){const t=Gj(e);return t!==null&&t.every(n=>!n.includes(":"))}function j1e(e,t=!1,n=""){const i=[...e];if(e.length<3)return i;const o=e.length-2,s=e[o];if(s.type==="inline"){const r=String(s.content??""),l=r.split(` +`)[0]??"",[a="",u="",...c]=r.split(` +`),d=!t&&!r.includes(` +`)&&/\r?\n$/.test(n)&&C8(r);if(!t&&(r.includes(` +`)&&c.length===0&&C8(a)&&$1e(u)||d)){const f=l.slice(1,-1).split("|").map(m=>m.trim()).flatMap(m=>ZE(m)),h=[...VE(),...f,...KE()];i.splice(o-1,3,...h)}else if(r.includes(` +`)&&c.length===0&&C8(a)&&R1e(u)){const f=l.slice(1,-1).split("|").map(m=>m.trim()).flatMap(m=>ZE(m)),h=[...VE(),...f,...KE()];i.splice(o-1,3,...h)}else r.includes(` +`)&&c.length===0&&z1e(a)&&P1e(u)&&(s.content=r.slice(0,-2),s.children.splice(2,1))}return i}function H1e(e,t,n,i){const o=e.length;if(n==="$$"&&i==="$$"){let u=t;for(;u=0&&e[c]==="\\";)d++,c--;if(d%2===0)return u}u++}return-1}const s=n[n.length-1],r=i;let l=0,a=t;for(;a=0&&e[c]==="\\";)d++,c--;if(d%2===0){if(l===0)return a;l--,a+=r.length;continue}}const u=e[a];if(u==="\\"){a+=2;continue}u===s?l++:u===r[r.length-1]&&l>0&&l--,a++}return-1}var W1e=H1e;const q1e=["boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],xk=q1e.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),U1e=/\\[a-z]+/i,Yj="(?:\\\\|\\u0008)",V1e=new RegExp(String.raw`${Yj}(?:${xk})\s*\{[^}]+\}`,"i"),K1e=new RegExp(String.raw`(?:${Yj})?(?:${xk})\s*\{`,"i"),Z1e=/\\(?:text|frac|left|right|times)/,G1e=/(?:^|[^+])\+(?!\+)|[=\-*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/,Q1e=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Y1e=/[A-Z]+\s*\([^)]+\)/i,J1e=/^\(\s*[a-z](?:\s*,\s*[a-z])+\s*\)$/i,X1e=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,eme=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/,tme={"\b":"\\b","\v":"\\v","\f":"\\f"};function nme(e){let t="";for(const n of e)t+=tme[n]??n;return t}function hd(e){if(!e)return!1;const t=nme(e),n=t.trim();if(eme.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const i=U1e.test(t),o=V1e.test(t),s=K1e.test(t),r=Z1e.test(t),l=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),a=G1e.test(t)&&!Q1e.test(t),u=Y1e.test(t),c=J1e.test(n),d=X1e.test(t),f=/^\([a-z]\)$/i.test(n)||/^(?:[a-z]|pi)$/i.test(n),h=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return i||o||s||r||l||a||u||c||d||f||h}const Jj="__markstreamMathPluginApplied",DC=80,Xj=2e4,GE=Xj+4096;function E7(e){return!!e[Jj]}function ime(e){e[Jj]=!0}const eH=["ldots","cdots","quad","in","displaystyle","int_","lim","lim_","ce","pu","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathit","mathbb","mathcal","mathfrak","implies","alpha","beta","gamma","delta","epsilon","lambda","sum","sum_","prod","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","frac","text","left","right"],ome=["cdot","mathbf{","partial","mu_{"],tH=eH.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),nH="[ \r\b\f\v]",sme=new RegExp(`([^\\\\])(${ome.map(e=>e).join("|")})+`,"g"),rme=/span\{([^}]+)\}/,lme=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,ame=/(^|[^\\])\\\r?\n/g,ume=/(^|[^\\])\\$/g,cme=/[\p{L}\p{M}\p{N}\p{Pe}\p{Pf}'′″‴|‖]/u,dme=new RegExp(`(${nH})|(${tH})\\b`,"g"),QE=new Map,YE=new Map;function fme(e){if(!e)return dme;const t=[...e];t.sort((r,l)=>l.length-r.length);const n=t.join(""),i=QE.get(n);if(i)return i;const o=`(?:${t.map(r=>r.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,s=new RegExp(`(${nH})|(${o})\\b`,"g");return QE.set(n,s),s}function hme(e,t){const n=e?[]:[...t??[]];e||n.sort((l,a)=>a.length-l.length);const i=e?"__default__":n.join(""),o=YE.get(i);if(o)return o;const s=e?[xk,tH].filter(Boolean).join("|"):[n.map(l=>l.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),xk].filter(Boolean).join("|"),r=new RegExp(`(^|[^\\\\\\w])(${s})\\s*\\{`,"g");return YE.set(i,r),r}const JE={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function XE(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function pme(e){return e.replace(/(^|[^\\])!+/gu,(t,n)=>{if(n&&cme.test(n))return t;const i=n?t.slice(n.length):t;return`${n}${"\\!".repeat(i.length)}`})}function eL(e){const t=/(^|[^\\])(__|\*\*)/g;let n,i=null;for(;(n=t.exec(e))!==null;)i={marker:n[2],index:n.index+(n[1]?.length??0)};return i}function Zc(e,t){const n=t?.commands??eH,i=t?.escapeExclamation??!0,o=t?.commands==null,s=fme(o?void 0:n);let r=e.replace(s,(u,c,d,f,h)=>{if(c!==void 0&&JE[c]!==void 0)return`\\${JE[c]}`;if(d&&n.includes(d)){const m=h&&typeof f=="number"?h[f-1]:void 0;return m==="\\"||m&&/\w/.test(m)?u:`\\${d}`}return u});i&&(r=pme(r));let l=r;const a=hme(o,o?void 0:n);return l=l.replace(a,(u,c,d)=>`${c}\\${d}{`),l=l.replace(rme,"span\\{$1\\}").replace(lme,"\\operatorname{span}\\{$1\\}"),l=l.replace(ame,`$1\\\\ +`),l=l.replace(ume,"$1\\\\"),l=l.replace(sme,"$1\\$2"),l}function tL(e){const t=e.trim();return!(!hd(t)||/"[^"\n]{1,80}"\s*:\s*/.test(t)||!(/\\[a-z]+/i.test(t)||/[=+*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/.test(t)||/[_^]/.test(t))&&/\s-\s/.test(t))}function iH(e){const t=[];let n=0;for(;n=n[0]&&t0;){if(e[s]==="\\"&&s+10;){if(e[l]==="\\"&&l+1=0&&e[n]==="\\";)i++,n--;return i%2===1}function FC(e,t){let n=t;for(;n0&&e[i-1]==="$"||i+1=l)break;const u=Sk(o,a);if(u){r=Math.max(a+Math.max(1,t.length),u[1]);continue}Wv(e,a)||s++,r=a+Math.max(1,t.length)}return s}function L7(e,t,n){const i=nv(String(e??""));if(!i.endsWith(t))return-1;const o=i.length-t.length;if(o<=0||!nv(i.slice(0,o)).trim()||Wv(i,o))return-1;const s=iH(i);if(Sk(s,o))return-1;const r=nL(i,t,0,o,s);if(t==="$$"){if(r%2===1)return-1}else if(r>nL(i,n,0,o,s))return-1;return o}function tv(e){return e===" "||e===" "}function nv(e){let t=e.length;for(;t>0&&tv(e[t-1]);)t--;return e.slice(0,t)}function iL(e){let t=0;for(let n=0;n=48&&t<=57}function gme(e){if(e.length<3)return!1;const t=e[0];if(t!=="-"&&t!=="*"&&t!=="_"&&t!=="=")return!1;let n=0;for(let i=0;i=3}function vme(e){const t=e.trim();if(!t)return!1;let n=0;t[n]===":"&&n++;let i=0;for(;t[n]==="-";)i++,n++;return i<3?!1:(t[n]===":"&&n++,n===t.length)}function yme(e){if(!e.includes("|"))return!1;const t=e[0]==="|"?e.slice(1):e;return(t.endsWith("|")?t.slice(0,-1):t).split("|").every(vme)}function kme(e){let t=0;if(!oL(e[t]))return!1;for(;oL(e[t]);)t++;return e[t]!=="."&&e[t]!==")"?!1:tv(e[t+1])}function oH(e){const t=e.trimStart();if(!t||t.startsWith("```")||t.startsWith("~~~")||t.startsWith(":::")||t[0]===">"||t[0]==="<")return!0;if(t[0]==="#"){let n=0;for(;t[n]==="#";)n++;if(n>=1&&n<=6&&tv(t[n]))return!0}return!!((t[0]==="-"||t[0]==="+"||t[0]==="*")&&tv(t[1])||kme(t)||gme(t)||yme(t))}function sL(e,t){return e?t?`${e} +${t}`:e:t}function BC(e){const t=String(e??"").trim();return t?hd(t):!1}function rL(e){let t=0;for(let n=0;nDC){h=!0;break}const g=o[m],v=qp(g,c);if(v!==-1){const y=sL(f,g.slice(0,v));if(!BC(y)){h=!0;break}const b=g.slice(v+c.length),A=b.trim()?`suffix:${rL(b)}`:"nosuffix";return["closed",u,i+l,d,i+m,v,rL(y),A].join(":")}if(oH(g)){h=!0;break}if(f=sL(f,g),f.length>Xj){h=!0;break}}if(!h&&BC(f))return["pending",u,i+l,d].join(":")}}return null}function x8(e,t){const n=String(e??"").trim();return!n||!/^\d[\d,.]*\s*[~~-]\s*$/.test(n)?!1:/\d/.test(String(t??""))}function wme(e){const t=String(e??"").trimStart(),n=t.match(/^\d+(?:,\d{3})*(?:\.\d+)?/);if(!n)return!1;const i=t.slice(n[0].length);return/^\s*(?:[+\-*/^_=<>]|\\[a-z]+)/i.test(i)?!1:i===""||/^[)\s,.!?;:]/.test(i)}function S8(e){const t=String(e??"").trim();return t?/^(?:\.{3,}|…+)$/.test(t):!1}function Cme(e,t){ime(e);const n=(r,l,a)=>{const u=String(l??"").replace(/^[\t ]+/,"").replace(/[\t ]+$/,"");if(!u)return;const c=r.push("paragraph_open","p",1);c.map=[a,a+1];const d=r.push("inline","",0);d.content=u,d.map=[a,a+1],d.children=[],r.push("paragraph_close","p",-1)},i=(r,l)=>{const a=r,u=!!t?.strictDelimiters,c=!a?.env?.__markstreamFinal,d=(b,A)=>{let w=A;for(;w=3&&(!w||/\s/.test(w))){const M=a.push("text","",0);return M.content=a.src.slice(a.pos,b),a.pos=b,!0}}const f=[["$$","$$"],["$","$"],["\\(","\\)"]],h=String(a.pending??""),m=Math.max(0,a.pos-h.length);let g=m,v=m;const y=m;for(const[b,A]of f){const w=a.src,M=iH(w),N=mme(w,c);let T=!1;b==="$$"&&g!==y&&(g=y);let C=-1,I=-1,S=0;const E=_=>{if((_==="undefined"||_==null)&&(_=""),_==="\\"){a.pos=a.pos+_.length,g=a.pos;return}if(_==="\\)"||_==="\\("){const P=a.push("text_special","",0);P.content=_==="\\)"?")":"(",P.markup=_,a.pos=a.pos+_.length,g=a.pos;return}if(!_)return;if(b==="$$"&&_.includes("$")){let P=0;for(;P<_.length;){const O=FC(_,P);if(O===-1){const te=_.slice(P);if(te){const ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos}break}if(O>0&&_[O-1]==="$"||O+1<_.length&&_[O+1]==="$"){const te=_.slice(P,O+1);if(te){const ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos}P=O+1;continue}const R=_.slice(P,O);if(R){const te=a.push("text","",0);te.content=R,a.pos=a.pos+R.length,g=a.pos}const z=A8(_,O+1);if(z===-1){const te=_.slice(O),ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos;break}const H=_.slice(O+1,z),j=H.includes("`"),Q=!H||!H.trim(),ae=_[z+1],W=x8(H,ae),G=S8(H);if(!j&&!Q&&!W&&!G){const te=a.push("math_inline","math",0);te.content=Zc(H,t),te.markup="$",te.raw=`$${H}$`,te.loading=!1,a.pos=a.pos+(z-O+1),g=a.pos,P=z+1;continue}const oe=a.push("text","",0);oe.content="$",a.pos=a.pos+1,g=a.pos,P=O+1}return}const F=_.indexOf("![");if(F!==-1){if(F>0){const R=_.slice(0,F),z=a.push("text","",0);z.content=R,a.pos=a.pos+R.length,g=a.pos}const P=_.slice(F).match(/^!\[([^\]]*)\]\(([^)]+)\)/);if(P){const[,R,z]=P,H=z.match(/^(\S+)(?:\s+"([^"]+)")?\s*$/),j=H?H[1]:z,Q=H&&H[2]?H[2]:null,ae=a.push("image","img",0);ae.attrs=[["src",j],["alt",R]],Q&&ae.attrs.push(["title",Q]),ae.content=R,ae.children=[{type:"text",content:R,tag:""}],a.pos=a.pos+P[0].length,g=a.pos;const W=_.slice(F+P[0].length);W&&E(W);return}const O=a.push("text","",0);O.content=_,a.pos=a.pos+_.length,g=a.pos;return}const q=a.push("text","",0);q.content=_,a.pos=a.pos+_.length,g=a.pos};for(;!(g>=w.length);){const _=w.indexOf(b,g);if(_===-1)break;if(Wv(w,_)){g=_+Math.max(1,b.length);continue}const F=Sk(M,_);if(F){g=F[1];continue}const q=Sk(N,_);if(q){g=q[1];continue}if(_===C&&g===I){if(S++,S>2){g=_+Math.max(1,b.length);continue}}else S=0,C=_,I=g;if(b==="("&&_>0){let W=_-1;for(;W>=0&&w[W]===" ";)W--;if(W>=0&&w[W]==="]"){g=_+b.length;continue}}if(b==="$"&&_>0&&w[_-1]==="$"){g=_+1;continue}if(b==="$"&&_=w.length);){const F=FC(w,_);if(F===-1)break;if(F+10&&w[F-1]==="$"){_=F+1;continue}const q=A8(w,F+1);if(q===-1)break;const P=w.slice(F+1,q),O=P.includes("`"),R=!P||!P.trim(),z=w[q+1],H=x8(P,z),j=S8(P);if(!O&&!R&&!H&&!j){const Q=w.slice(g,F);Q&&E(Q);const ae=a.push("math_inline","math",0);ae.content=Zc(P,t),ae.markup="$",ae.raw=`$${P}$`,ae.loading=!1,g=q+1,_=q+1}else E("$"),_=F+1}_{const c=r,d=!c?.env?.__markstreamFinal,f=t?.strictDelimiters,h=f?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],m=c.bMarks[l]+c.tShift[l];let g=c.src.slice(m,c.eMarks[l]).trim(),v=!1,y="",b="",A=!1,w="",M=!1;for(const[Q,ae]of h)if(g.startsWith(Q))if(Q.includes("[")){const W=Q==="\\["?g.slice(Q.length):"";if(Q==="\\["&&qp(W,ae)===-1&&!/^\s*!\[/.test(W)&&!W.includes("`")&&hd(W)){v=!0,y=Q,b=ae;break}if(t?.strictDelimiters){if(g.replace("\\","")==="["){if(l+1=0?"\\]":b,S=C>=0?C:qp(g,b,T);if(!A&&S>y.length){const Q=g.slice(N+y.length,S),ae=c.push("math_block","math",0);ae.content=Zc(Q),ae.markup=y==="$$"?"$$":y==="["?"[]":"\\[\\]",ae.map=[l,l+1],ae.raw=`${y}${Q}${I}`,ae.block=!0,ae.loading=!1,c.line=l+1;const W=g.slice(S+I.length);return W.trim()&&n(c,W,l),!0}let E=l,_="",F=!1,q="",P=l;const O=A?g:g===y?"":g.slice(y.length),R=!f&&y==="\\["?"]":"",z=qp(O,b);if(z!==-1){const Q=z;_=O.slice(0,Q),q=O.slice(Q+b.length),P=A?l+1:l,F=!0,E=P}else for(O&&!A&&(_=O),E=l+1;E{const c=r,d=c.bMarks[l]+c.tShift[l],f=c.src.slice(d,c.eMarks[l]).trim();return!f.startsWith("$$")&&!f.startsWith("\\[")?!1:o(r,l,a,u)};e.inline.ruler.before("escape","math",i),e.block.ruler.before("lheading","explicit_math_block",s,{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function Ame(e){const t=e.renderer.rules.image||function(n,i,o,s,r){const l=n,a=r;return a.renderToken?a.renderToken(l,i,o):""};e.renderer.rules.image=(n,i,o,s,r)=>{const l=n;return l[i].attrSet?.("loading","lazy"),t(l,i,o,s,r)},e.renderer.rules.fence=e.renderer.rules.fence||((n,i)=>{const o=n[i],s=String(o.info??"").trim();return`
      ${e.utils.escapeHtml(String(o.content??""))}
      `})}const xme=/^\s]/i,Sme=/^<\/a\s*>/i;function _me(e,t){if(e?.type!=="inline")return!1;const n=e.children;if(!Array.isArray(n)||n.length===0)return t.test(String(e.content??""));let i=0;for(let o=n.length-1;o>=0;o--){const s=n[o];if(s?.type==="link_close"){for(o--;o>=0&&n[o]?.level!==s.level&&n[o]?.type!=="link_open";)o--;continue}if(s?.type==="html_inline"){const r=String(s.content??"");xme.test(r)&&i>0&&i--,Sme.test(r)&&i++}if(!(i>0)&&s?.type==="text"&&t.test(String(s.content??"")))return!0}return!1}function Mme(e){const t=e.core?.ruler,n=t.getNamedRules?.().find(i=>i.name==="linkify")?.fn;typeof n=="function"&&t.at("linkify",i=>{if(!i.md?.options?.linkify)return;const o=Array.isArray(i.tokens)?i.tokens:[],s=i.md.linkify;if(!s)return;const r=o.filter(l=>_me(l,s));if(r.length)return n(Object.assign(Object.create(Object.getPrototypeOf(i)),i,{tokens:r}))})}function Ime(e){const t=e.inline.ruler,n=t.getNamedRules?.(),i=n?.find(l=>l.name==="link")?.fn,o=n?.find(l=>l.name==="image")?.fn;if(typeof i!="function"||typeof o!="function")return;const s=e.validateLink,r=e;r.__markstreamOriginalValidateLink=s,t.at("link",(...l)=>{const a=l[0].md,u=a?.validateLink===s?a.options?.validateLink:a?.validateLink;if(!a||typeof u!="function")return i(...l);const c=a.validateLink;a.validateLink=u;try{return i(...l)}finally{a.validateLink=c}}),t.at("image",(...l)=>{const a=l[0].md;if(!a)return o(...l);const u=a.validateLink;a.validateLink=s;try{return o(...l)}finally{a.validateLink=u}})}function Tme(e={}){const t=e.markdownItOptions??{},n=typeof t.experimental=="object"&&t.experimental!==null?t.experimental:{},i=Object.prototype.hasOwnProperty.call(t,"stream")?!!t.stream:!0,o=Object.prototype.hasOwnProperty.call(t,"validateLink"),s=new npe({html:!0,linkify:!0,typographer:!0,...t,experimental:{stream:i,...n}});if(!o){const r=l=>!Ch(l,{tagName:"a",attrName:"href"});C1e(r),s.set({validateLink:r})}return Ime(s),Mme(s),(e.enableMath??!0)&&Cme(s,{...e.mathOptions??{}}),(e.enableContainers??!0)&&Cpe(s),e.enableFixIndentedCodeBlock!==!1&&Upe(s),M1e(s),L1e(s),T1e(s),B1e(s),Ame(s),Wpe(s,{customHtmlTags:e.customHtmlTags}),s}function Ah(e){const t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return Array.isArray(e.attrs)&&(t.attrs=e.attrs.map(n=>[...n])),Array.isArray(e.map)&&(t.map=[...e.map]),Array.isArray(e.children)&&(t.children=e.children.map(n=>Ah(n))),t}function Eme(e){const t=e.meta??{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function Lme(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,i=n===""||n==="true";return{type:"checkbox_input",checked:i,raw:i?"[x]":"[ ]"}}function Nme(e){const t=String(e.content??"");return{type:"emoji",name:t,markup:String(e.markup??""),raw:`:${t}:`}}function ny(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;sn.startsWith(t)||t.startsWith(n)):!1}function lL(e,t,n,i){n.length>0&&e.push(...n),i.length>0&&t.push(...i),n.length=0,i.length=0}function aL(e,t){return!t&&e.startsWith(" ")&&!e.startsWith(" ")?` ${e}`:e}function Rme(e,t){const n=[],i=[],o=[],s=[],r=e.split(Fme),l=/\r?\n$/.test(e),a=r.some(h=>h.startsWith("diff ")||h.startsWith("--- ")||h.startsWith("+++ ")||h.startsWith("@@ ")),u=h=>{const m=h;if(!lH.some(g=>m.startsWith(g)))if(m.startsWith("-")){const g=m.slice(1);o.push(aL(g,a))}else if(m.startsWith("+")){const g=m.slice(1);s.push(aL(g,a))}else{lL(n,i,o,s);const g=a&&m.startsWith(" ")?m.slice(1):m;n.push(g),i.push(g)}},c=l?Math.max(0,r.length-1):r.length;for(let h=0;h0||s.length>0)&&lL(n,i,o,s);const d=n.join(` +`),f=i.join(` +`);return{original:t&&l&&d?`${d} +`:d,updated:t&&l&&f?`${f} +`:f}}function N7(e){const t=Array.isArray(e.map)&&e.map.length===2,n=e.meta??{},i=typeof n.closed=="boolean"?n.closed:void 0,o=i===!0||i!==!1&&t,s=String(e.info??""),r=s.startsWith("diff"),l=r?(()=>{const u=s,c=u.indexOf(" ");return c===-1?"":String(u.slice(c+1)??"")})():s;let a=String(e.content??"");if(!o&&e.markup){const u=e.markup[0],c=e.markup.length,d=Dme(u,c);d.test(a)&&(a=a.replace(d,""))}if(r){const{original:u,updated:c}=Rme(a,o===!0);return{type:"code_block",language:l,code:String(c??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t,originalCode:u,updatedCode:c}}return{type:"code_block",language:l,code:String(a??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t}}function Ome(e){const t=e.meta??{};return{type:"footnote_reference",id:String(t.label??""),raw:`[^${String(t.label??"")}]`}}function $me(){return{type:"hardbreak",raw:`\\ +`}}function Pme(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s\s*$/.test(t)||Hd.has(e)}function zme(e){if(!e||e.length===0)return uL();const t=M8.get(e);if(t)return t;const n=e.map(wa).filter(Boolean);if(!n.length){const o=uL();return M8.set(e,o),o}const i={customTagSet:new Set(n),allowedTagSet:u4({customHtmlTags:e})};return M8.set(e,i),i}function dH(e){const t=e,n=t.raw??t.content??t.markup??"";return String(n??"")}function jme(e){const t=e.meta,n=t?.markstreamCustomHtmlRaw,i=t?.markstreamCustomHtmlInner;return typeof n=="string"&&typeof i=="string"?{raw:n,inner:i}:null}function _k(e,t){const n=t.toLowerCase();for(let i=e.length-1;i>=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function Hme(e,t,n){const i=e.slice();return _k(i,"href")||i.push(["href",t]),n!=null&&!_k(i,"title")&&i.push(["title",n]),i}function RC(e){return e.map(dH).join("")}function s9(e){const t=[],n=i=>{const o=String(i??"");if(!o)return;const s=t[t.length-1];if(s?.type==="text"){s.content=`${s.content}${o}`,s.raw=`${s.raw}${o}`;return}t.push({type:"text",content:o,raw:o})};for(const i of e)if(i){if(i.type==="reference"||i.type==="footnote_reference"){n(String(i.raw??""));continue}if("children"in i&&Array.isArray(i.children)){t.push({...i,children:s9(i.children)});continue}t.push(i)}return t}function Wme(e,t,n){let i=0;for(let o=t;o`;g.toLowerCase().includes(M.toLowerCase())||(g+=M),y=!0,v=!0}const b=[],A=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let w;for(;(w=A.exec(l))!==null;){const M=w[1],N=w[2]||w[3]||w[4]||"";b.push([M,N])}if(u?.has(a)){const M=jme(e);return[{type:a,tag:a,attrs:b,content:M?M.inner:h.innerTokens.length?RC(h.innerTokens):"",children:h.innerTokens.length?i(h.innerTokens,o,s,r):[],raw:M?.raw??g,loading:e.loading||v,autoClosed:y},h.nextIndex]}return[{type:"html_inline",tag:a,attrs:b,content:g,children:m,raw:g,loading:v,autoClosed:y},h.nextIndex]}function fH(e){if(e.type==="math_inline"){if(e.raw)return String(e.raw);const t=e.markup==="$$"?"$$":"$";return`${t}${String(e.content??"")}${t}`}return Array.isArray(e.children)&&e.children.length>0?e.children.map(t=>fH(t)).join(""):String(e.content??"")}function Ume(e){return!e||!Array.isArray(e.children)||e.children.length===0?"":e.children.map(t=>fH(t)).join("")}function cL(e,t=!1){let n=e.attrs??[],i=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const d of e.children){const f=d.attrs;if(Array.isArray(f)&&f.length>0){n=f,i=d;break}}const o=String(n.find(d=>d[0]==="src")?.[1]??""),s=n.find(d=>d[0]==="alt")?.[1],r=Ume(i??e);let l="";r?l=r:s!=null&&String(s).length>0?l=String(s):i?.content!=null&&String(i.content).length>0?l=String(i.content):Array.isArray(i?.children)&&i.children[0]?.content?l=String(i.children[0].content):Array.isArray(e.children)&&e.children[0]?.content?l=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(l=String(e.content));const a=n.find(d=>d[0]==="title")?.[1]??null,u=a===null?null:String(a),c=String(e.content??"");return{type:"image",src:o,alt:l,title:u,raw:c,loading:t}}function Vme(e){const t=String(e.content??"");return{type:"inline_code",code:t,raw:t}}function Kme(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function Gme(e,t,n){const i=e.slice();return Mk(i,"href")||i.push(["href",t]),n!=null&&!Mk(i,"title")&&i.push(["title",n]),i}function iy(e,t,n){const i=e[t],o=Zme(i.attrs),s=String(Mk(o,"href")??""),r=Mk(o,"title"),l=r==null?null:String(r),a=Gme(o,s,l);let u=t+1;const c=[];let d=!0;for(;uv.type==="strong_open")){const v=String(h.content??""),y=String(h.raw??v),b=Ah(h);b.content=v.slice(0,-2),b.raw=y.replace(/\*\*$/,""),f=c.slice(),f[f.length-1]=b}const m=Lo(f,void 0,void 0,n),g=m.map(v=>{const y=v;return"content"in v?String(y.content??""):String(y.raw??"")}).join("");return{node:{type:"link",href:s,title:l,text:g,children:m,raw:`[${g}](${s}${l?` "${l}"`:""})`,loading:d,attrs:a},nextIndex:u0?i:[{type:"text",content:a,raw:a}],raw:`~${a}~`},nextIndex:s0?i:[{type:"text",content:o||String(e[t].content??""),raw:o||String(e[t].content??"")}],raw:`^${o||String(e[t].content??"")}^`},nextIndex:s?@[\\\]^_`{|}~]/,age=/\p{P}/u,uge=/^[\x22\x27《「『【〔〖〘〚〈([{“‘﹁﹃﹙﹛﹝]$/u,cge=/^[\x22\x27》」』】〕〗〙〛〉)]}”’﹂﹄﹚﹜﹞]$/u,dge=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,fge=/:\/\//,OC=1,hH=2,hge=4,pge=8,pH=16,ed=32,r9=64,Ig=128,mH=256,mge=512,Tg=1024,gge=1982;function oy(e){let t=0;for(let n=0;n=t){n++,i++;continue}n++,i++;continue}if(o==="*"&&n>=t)return n;n++}return-1}function Wd(e){return!!e&&rge.test(e)}function qd(e){return!!e&&(lge.test(e)||age.test(e))}function vH(e,t){return!!e&&!!t&&/^\p{Script=Han}$/u.test(t)&&uge.test(e)}function yH(e,t){return!!e&&!!t&&/^[\p{L}\p{N}]$/u.test(t)&&cge.test(e)}function yge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!i||Wd(i)?!1:!(qd(i)&&!vH(i,n)&&n&&!Wd(n)&&!qd(n))}function kge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!n||Wd(n)?!1:!(qd(n)&&!yH(n,i)&&i&&!Wd(i)&&!qd(i))}function bge(e,t,n=0){let i=n,o=!1;for(;i0?e[t-1]:void 0,i=e[t+2];return!i||Wd(i)?!1:!(qd(i)&&!vH(i,n)&&n&&!Wd(n)&&!qd(n))}function Cge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+2];return!n||Wd(n)?!1:!(qd(n)&&!yH(n,i)&&i&&!Wd(i)&&!qd(i))}function Age(e,t=0){let n=t,i=!1;for(;n=0&&e[s]==="\\";s--)o++;return o%2===1}const Mge=/[\p{L}\p{N}]/u,Ige=/^[\p{L}\p{N}]+$/u;function $C(e){return e?Mge.test(e):!1}function kH(e){return e?Ige.test(e):!1}function l0(e,t){let n=t;for(;n0?e[t-1]:void 0,o=n=2&&i.intraword&&t.push({start:n,end:o}),n=o}for(let n=0;n=3)return i;n=i+o.len}return-1}function Nge(e){return e?dge.test(e)||fge.test(e):!1}function Dge(e,t){if(!e||!t)return null;const n=e.match(/\[([^\]\n]+)\]\(([^)]*)$/);return n&&n[2]===t?n[1]:null}function Lo(e,t,n,i){if(!e||e.length===0)return[];const o=i?.__linkifyDemotionContext,s=Hv(t),r={filename:o?.filename||s.filename,explicitFilename:o?.explicitFilename||s.explicitFilename,marketTicker:o?.marketTicker||s.marketTicker};(r.filename||r.explicitFilename||r.marketTicker)&&(i={...i,__linkifyDemotionContext:r});const l=i,a=[];let u=null,c=0;const d=i?.requireClosingStrong,f=e;function h(){return e===f&&(e=e.slice()),e}function m(){u=null}function g(Y,se){const V=e.length===1?t:String(se.content??""),le=[],Se=Tge(Y);if(Se!==-1){M(Y.slice(0,Se),Y.slice(0,Se));const he=Y.slice(Se);return he&&(E({type:"text",content:he,raw:he}),c--),c++,!0}if(nge.test(Y)){const he=Y.indexOf("~~");he!==-1&&le.push({type:"strikethrough",index:he})}if(ige.test(Y)){const he=Y.indexOf("**");he!==-1&&le.push({type:"strong",index:he})}if(/[^*]*\*[^*]+/.test(Y)){const he=V?gH(V,0):Y.indexOf("*");if(V&&he===-1)return!1;he!==-1&&le.push({type:"emphasis",index:he})}le.sort((he,re)=>he.index!==re.index?he.index-re.index:he.type===re.type?0:he.type==="strong"?-1:re.type==="strong"?1:0);const be=le[0];if(!be)return!1;if(be.type==="strikethrough"){const he=be.index,re=he>-1?Y.slice(0,he):"";if(re&&M(re,re),he===-1)return c++,!0;const J=Y.indexOf("~~",he+2),fe=J===-1?Y.slice(he+2):Y.slice(he+2,J),ke=J===-1?"":Y.slice(J+2),{node:Ce}=fL([{type:"s_open",tag:"s",content:"",markup:"~~",info:"",meta:null},{type:"text",tag:"",content:fe,markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"~~",info:"",meta:null}],0,i);return m(),w(Ce),ke&&(E({type:"text",content:ke,raw:ke}),c--),c++,!0}if(be.type==="strong"){const he=be.index,re=he>-1?Y.slice(0,he):"";if(re&&M(re,re),he===-1)return c++,!0;if(t&&he===0){let ie=!1,me=0;for(;me=2)return M(Y,Y),c++,!0}}if(t&&(Y.match(/\*/g)||[]).length>vge(t))return M(Y.slice(re.length),Y.slice(re.length)),c++,!0;const J=l0(Y,he);if(J.len>=3){const ie=Lge(Y,he+J.len);if(ie!==-1){const me=Y.slice(he+J.len,ie);if(Ege(me)){const{node:je}=sg([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:me,markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);m(),w(je);const Ze=Y.slice(ie+3);return Ze&&(E({type:"text",content:Ze,raw:Ze}),c--),c++,!0}}}if(!wge(Y,he)){const ie=Y.slice(he,he+J.len);M(ie,ie);const me=Y.slice(he+J.len);return me&&(E({type:"text",content:me,raw:me}),c--),c++,!0}const fe=Age(Y,he+2);let ke="",Ce="";if(fe.index!==-1){ke=Y.slice(he+2,fe.index),Ce=Y.slice(fe.index+2);const ie=fe.index,me=l0(Y,ie);if(J.intraword&&me.intraword&&!kH(ke)||!ke&&J.len>=4&&J.intraword)return M(Y.slice(re.length),Y.slice(re.length)),c++,!0}else{if(d||fe.sawInvalidClose||J.intraword)return M(Y.slice(re.length),Y.slice(re.length)),c++,!0;ke=Y.slice(he+2),Ce=""}if(!ke&&/^\*+$/.test(Ce))return M(Y,Y),c++,!0;const{node:De}=sg([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"text",tag:"",content:ke,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);return m(),w(De),Ce&&(E({type:"text",content:Ce,raw:Ce}),c--),c++,!0}if(be.type==="emphasis"){let he=be.index;he===-1&&(he=0);const re=Y.slice(0,he);if(re&&M(re,re),!yge(Y,he)){M(Y[he],Y[he]);const ie=Y.slice(he+1);return ie&&(E({type:"text",content:ie,raw:ie}),c--),c++,!0}const J=l0(Y,he),fe=bge(V,Y,he+1),ke=fe.index,Ce=e[c+1];if(i?.final&&Ce?.type==="em_open"&&ke!==-1&&Y.slice(he+1,ke).trim()!==Y.slice(he+1,ke)||ke===-1&&(fe.sawInvalidClose||i?.final||J.intraword||!$C(Y[he+1])))return M(Y.slice(he),Y.slice(he)),c++,!0;const{node:De}=ny([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:ke>-1?Y.slice(he+1,ke):Y.slice(he+1),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,i);if(m(),w(De),ke!==-1&&ke{for(let De=0;De=0&&Ce[me]==="\\";me--)ie++;if(ie%2===0)return De}return-1})(Y);if(le===-1)return!1;let Se=1;for(let Ce=le+1;Cebe?.type==="math_inline")||!oge.test(Y))return null;const V=se.parseInline(Y,{__markstreamFinal:!!i?.final});if(!Array.isArray(V)||V.length===0)return null;const le=(V.find(be=>be?.type==="inline")?.children??[]).filter(be=>!(be?.type==="text"&&String(be.content??"")===""));if(!le.length||!le.some(be=>be?.type!=="text")||le.length===1&&le[0]?.type==="text"&&String(le[0].content??"")===Y)return null;const Se=Lo(le,Y,n,i);return Se.length?Se:null}function b(Y){m(),a.push(Y)}function A(Y){m();const se=Ah(Y);a.push(se)}function w(Y){b(Y)}function M(Y,se){u?(u.content+=Y,u.raw+=se??Y):(u={type:"text",content:String(Y??""),raw:String(se??Y??"")},a.push(u))}function N(Y,se){if(!Y)return;const V=Lo([{...se,type:"text",content:Y,raw:Y}],Y,n,i);if(V.length===1&&V[0]?.type==="text"){const le=V[0];M(String(le.content??""),String(le.raw??le.content??""));return}for(const le of V)w(le)}function T(Y,se){return String(Y.markup??"").startsWith(se)}function C(Y){if(!u||Y.loading!==!0||Y.markup!=="\\(\\)")return;const se=e[c-1];!se||se.type!=="text"||!T(se,"\\(")||u.content.endsWith("(")&&(u.content=u.content.slice(0,-1),u.raw.endsWith("(")&&(u.raw=u.raw.slice(0,-1)),!u.content&&a[a.length-1]===u&&(a.pop(),u=null))}function I(Y){return Y.endsWith("](")?e[c+1]?.type==="link_open"&&e[c+1]?.markup==="linkify"&&e[c+2]?.type==="text"&&e[c+3]?.type==="link_close"&&e[c+4]?.type==="text"&&String(e[c+4]?.content??"").startsWith(")"):!1}function S(Y,se,V=oy(Y)){let le=Y;const Se=String(se.content??"");return(V&OC)!==0&&le.endsWith("\\")&&!T(se,"\\\\")&&!Se.endsWith("\\\\")&&(le=le.slice(0,-1)),(V&Tg)!==0&&le.endsWith("(")&&!T(se,"\\(")&&!Se.endsWith("\\(")&&(le=le.slice(0,-1)),(V&hH)!==0&&/\*+$/.test(le)&&!T(se,"\\*")&&!Se.endsWith("\\*")&&(le=le.replace(/\*+$/,"")),le}for(;c=0;ie--){const me=a[ie];if(me.type!=="text")break;J=ie,fe=String(me.content??"")+fe}JJ==="href")?.[1],re=String(he??"");if(t&&re){const J=t.indexOf("](");if(J!==-1){const fe=t.indexOf(")",J+2);fe===-1?V.loading=!0:V.loading&&t.slice(J+2,fe).includes(re)&&(V.loading=!1)}}/^file:\/\/\/[a-z]:\//i.test(V.href)&&j(V,se-1)||R(V)||b(V)}function P(Y){if(Y.markup!=="linkify")return!1;const{node:se,nextIndex:V}=iy(e,c,i);return H(se,V)?(c=V,!0):!1}function O(Y){m(),w(Qme(Y)),c++}function R(Y){if(Y.type!=="link")return!1;const se=a[a.length-1];if(!se||se.type!=="text")return!1;const V=String(se.content??"").match(/^([^[]*)\[([^\]\n]+)\]\($/);if(!V)return!1;const le=Y,Se=String(le.href??""),be=String(le.text??""),he=String(V[2]??""),re=Se.replace(/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,"");if(!Se||!(be===Se||be===re||Nge(be)))return!1;const J=String(V[1]??"");return J?(se.content=J,se.raw=J):a.pop(),b({...Y,text:he,children:[{type:"text",content:he,raw:he}],raw:`[${he}](${Se}${le.title?` "${le.title}"`:""})`}),!0}function z(Y){if(Y.type!=="link")return!1;const se=Y,V=String(se.href??"");return V?H({href:V,title:se.title==null||se.title===""?null:String(se.title),loading:!!se.loading},c+1):!1}function H(Y,se){const V=a[a.length-1];if(V?.type!=="image"||V.src||!V.loading||!String(V.raw??"").endsWith("]("))return!1;const le=e[se],Se=String(le?.content??"");if(le?.type!=="text"||!Se.startsWith(")"))return!1;a.pop(),u=null;const be=String(V.alt??"");b({type:"image",src:Y.href,alt:be,title:Y.title,raw:`![${be}](${Y.href}${Y.title?` "${Y.title}"`:""})`,loading:!!Y.loading});const he=Se.slice(1),re=Ah(le);return re.content=he,re.raw=he,h()[se]=re,!0}function j(Y,se=c-1){if(Y.type!=="link")return!1;const V=a[a.length-1],le=e[se];if(!V||V.type!=="text"||le?.type!=="text")return!1;const Se=String(V.content??""),be=String(le.content??"");if(!Se.endsWith("!")||!be.endsWith("!")||T(le,"\\!"))return!1;const he=Se.slice(0,-1);he?(V.content=he,V.raw=he,u=V):(a.pop(),u=null);const re=Y,J=String(re.text??re.children?.map(Ce=>String(Ce?.content??Ce?.raw??"")).join("")??""),fe=String(re.href??""),ke=re.title==null||re.title===""?null:String(re.title);return b({type:"image",src:fe,alt:J,title:ke,raw:`![${J}](${fe}${ke?` "${ke}"`:""})`,loading:!!re.loading}),!0}function Q(Y,se="",V=null){const le=String(Y.alt??Y.raw??"");return{type:"link",href:se,title:V,text:le,children:[Y],raw:`[${le}](${se}${V?` "${V}"`:""})`,loading:!0}}function ae(Y){const se=Y.startsWith("![")?Y:`![${Y}`,V=se.slice(2),le=V.indexOf("](");return{type:"image",src:"",alt:le===-1?V.replace(/\]$/,""):V.slice(0,le),title:null,raw:se,loading:!0}}function W(Y){const se=Y.indexOf("[![");if(se===-1||typeof t=="string"&&e.length===1&&_ge(t,se,"["))return!1;const V=Y.slice(0,se);return V&&M(V,V),b(Q(ae(Y.slice(se+1)))),c++,!0}function G(Y){if(i?.final)return!1;const se=e[c-1];if(se?.type!=="text"||!String(se.content??"").endsWith("[")||T(se,"\\["))return!1;const V=a[a.length-1];if(V?.type==="text"&&V.content.endsWith("[")){const le=V.content.slice(0,-1);le?(V.content=le,V.raw=le,u=V):(a.pop(),u=null)}return b(Q(cL(Y))),c++,!0}function oe(Y){if(Y.type!=="link")return!1;const se=Y,V=String(se.raw??""),le=String(se.text??"");if(!V.startsWith("[![")&&!le.startsWith("!["))return!1;const Se=se.title==null||se.title===""?null:String(se.title);return b(Q({type:"image",src:String(se.href??""),alt:le.replace(/^!\[/,"").replace(/\]$/,""),title:Se,raw:V.startsWith("[![")?V.slice(1):V,loading:!0})),!0}function te(Y){if(!Y.startsWith("]("))return!1;const se=e[c-2];if(se?.type==="text"&&String(se.content??"").endsWith("[")&&T(se,"\\["))return!1;const V=a[a.length-1];if(V?.type!=="image"&&V?.type!=="link")return!1;const le=V,Se=V?.type==="link"&&Array.isArray(le.children)&&le.children.length===1&&le.children[0]?.type==="image"?a.pop():null,be=Se?Se.children[0]:a.pop();if(!be||be.type!=="image")return!1;const he=e[c+1];let re=String(Se?.href??""),J=Se?.title==null?null:String(Se.title),fe=!0;if(he?.type==="link_open"){const{node:Ce,nextIndex:De}=iy(e,c+1,i);re=Ce.href,J=Ce.title,fe=!0,c=De}else{if(re=Y.slice(2),re.includes('"')){const Ce=re.split('"');re=String(Ce[0]??"").trim(),J=Ce[1]==null?null:String(Ce[1]).trim()}c++}const ke=Q(be,re,J);return ke.loading=fe,b(ke),!0}function ve(){const Y=e[c-3];return e[c-2]?.type==="image"&&e[c-1]?.type==="text"&&String(e[c-1].content??"")==="]("&&Y?.type==="text"&&String(Y.content??"").endsWith("[")&&T(Y,"\\[")}function Te(Y,se){const V=Y.indexOf("[");if(V===-1)return!1;let le=Y.slice(0,V);const Se=Y.indexOf("](",V);if(Se!==-1){const be=e[c+2];let he=Y.slice(V+1,Se);if(he.includes("[")){const ie=he.indexOf("[");le+=Y.slice(0,V+ie+1);const me=V+ie+1;he=Y.slice(me+1,Se)}const re=e[c+1];if(Y.endsWith("](")&&re?.type==="link_open"&&be){const ie=e[c+4];let me=4,je=!0;if(ie?.type==="text"){const lt=String(ie.content??"");if(lt.startsWith(")")){je=!1;const ft=lt.slice(1);if(ft){const Mt=Ah(ie);Mt.content=ft,Mt.raw=ft,h()[c+4]=Mt}else me++}else lt==="."&&me++}N(le,se);const Ze=String(be.content??"");return i?.validateLink&&!i.validateLink(Ze)?M(he,he):b({type:"link",href:Ze,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:je}),c+=me,!0}const J=Y.indexOf(")",Se),fe=J!==-1?Y.slice(Se+2,J):"",ke=J===-1;let Ce=le.match(/\*+$/);if(Ce&&(le=le.replace(/\*+$/,"")),N(le,se),Ce||(Ce=he.match(/^\*+/)),!d&&Ce){const ie=Ce[0].length;he=he.replace(/^\*+/,"").replace(/\*+$/,"");const me=[];if(ie===1?me.push({type:"em_open",tag:"em",nesting:1}):ie===2?me.push({type:"strong_open",tag:"strong",nesting:1}):ie===3&&(me.push({type:"strong_open",tag:"strong",nesting:1}),me.push({type:"em_open",tag:"em",nesting:1})),me.push({type:"link",href:fe,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:ke}),ie===1){me.push({type:"em_close",tag:"em",nesting:-1});const{node:je}=ny(me,0,i);w(je)}else if(ie===2){me.push({type:"strong_close",tag:"strong",nesting:-1});const{node:je}=sg(me,0,void 0,i);w(je)}else if(ie===3){me.push({type:"em_close",tag:"em",nesting:-1}),me.push({type:"strong_close",tag:"strong",nesting:-1});const{node:je}=sg(me,0,void 0,i);w(je)}else{const{node:je}=ny(me,0,i);w(je)}}else i?.validateLink&&!i.validateLink(fe)?M(he,he):b({type:"link",href:fe,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:ke});const De=J!==-1?Y.slice(J+1):"";return De&&(E({type:"text",content:De,raw:De}),c--),c++,!0}return!1}function Fe(Y){const se=Y.indexOf("![");if(se===-1)return!1;const V=Y.slice(0,se);return V&&!u?u={type:"text",content:V,raw:V}:V&&u&&(u.content+=V),u&&(a.push(u),u=null),b(ae(Y.slice(se))),c++,!0}function ye(Y){if(!(Y?.startsWith("[")&&n?.type==="list_item_open"))return!1;const se=Y.slice(1).match(/[^\s\]]/);if(se===null)return c++,!0;if(se&&/x/i.test(se[0])){const V=se[0]==="x"||se[0]==="X";return b({type:"checkbox_input",checked:V,raw:V?"[x]":"[ ]"}),c++,!0}return!1}return a}function F7(e,t,n){const i=n?.__sourceLineMapper;if(!i)return{startLine:e,endLine:t};const o=i(e),s=t>e?i(t-1).endLine:i(t).startLine;return{startLine:o.startLine,endLine:Math.max(o.startLine,s)}}function hL(e,t){const n=Math.max(0,Math.min(e.length,Math.trunc(t)));let i=0;for(let o=0;oi&&e[o-1]!==` +`&&r++,{startLine:s,endLine:r}}function iv(e,t,n,i){const o=Fge(e,t,n);return F7(o.startLine,o.endLine,i)}function Bge(e,t){const n=e?.map;if(!Array.isArray(n)||n.length<2)return null;const i=Number(n[0]),o=Number(n[1]);return!Number.isFinite(i)||!Number.isFinite(o)?null:F7(i,o,t)}function Ci(e,t,n){if(!n?.includeSourceMap)return e;const i=Bge(t,n);if(!i)return e;if(e.sourceMap=i,e.type==="code_block"){const o=e;o.startLine=i.startLine,o.endLine=i.endLine}return e}function Rge(e,t,n,i){if(!i?.includeSourceMap)return e;const o=t?.map;if(!Array.isArray(o)||o.length<2)return e;const s=Number(o[0]),r=Number(o[1]),l=Number(n);return!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(l)||(e.sourceMap=F7(s,Math.max(r,l),i)),e}function Oge(e){const t=String(e.content??""),n=t.replace(/[ \t\r\n]+$/g,"");if(n===t)return;e.content=n;const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??""),r=s.replace(/[ \t\r\n]+$/g,"");if(r===s)break;if(r){o.content=r;break}i.pop();continue}break}}function $ge(e){const t=String(e.content??""),n=t.match(/\r?\n\s*\d+[.)]?\s*$/);if(!n||typeof n.index!="number")return;e.content=t.slice(0,n.index);const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??"");if(/^[ \t\r\n\d.)]*$/.test(s)){i.pop();continue}const r=s.replace(/[ \t\r\n\d.)]+$/g,"");r!==s&&(r?o.content=r:i.pop())}break}}function Pge(e){const t=String(e.content??"");return/[ \t\r\n]+$/.test(t)||/\r?\n\s*\d+[.)]?\s*$/.test(t)}function vm(e,t,n){const i=e[t],o=[],s=af(n,!0);let r=t+1;for(;rd.raw).join("")};n?.includeSourceMap&&Ci(c,e[r],n),o.push(c),r=u+1}else r+=1;const l={type:"list",ordered:i.type==="ordered_list_open",start:(()=>{if(i.attrs&&i.attrs.length){const a=i.attrs.find(u=>u[0]==="start");if(a){const u=Number(a[1]);return Number.isFinite(u)&&u!==0?u:1}}})(),items:o,raw:o.map(a=>a.raw).join(` +`)};return n?.includeSourceMap&&Ci(l,i,n),[l,r+1]}function zge(e,t,n,i){const o=String(n[1]??"note"),s=String(n[2]??o.charAt(0).toUpperCase()+o.slice(1)),r=[],l=af(i,!0);let a=t+1;for(;au.raw).join(` +`)} +:::`},a+1]}const jge=new Set(["warning","info","note","tip","danger","caution"]);function Hge(e){let t=0;for(;t=0;g--){const v=f[g];if(v.type==="text"&&/:+/.test(v.content)){h=g;break}}const m={type:"paragraph",children:Lo((h!==-1?f.slice(0,h):f)||[],void 0,void 0,a.options()),raw:String(d.content??"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")};n?.includeSourceMap&&Ci(m,e[u],n),l.push(m),a.remember(m.raw)}u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[d,f]=vm(e,u,a.options());n?.includeSourceMap&&Ci(d,e[u],n),l.push(d),a.remember(d.raw),u=f}else if(e[u].type==="blockquote_open"){const[d,f]=ym(e,u,a.options());n?.includeSourceMap&&Ci(d,e[u],n),l.push(d),a.remember(d.raw),u=f}else{const d=r4(e,u,a.options());d?(l.push(d[0]),a.remember(d[0].raw),u=d[1]):u++}return[{type:"admonition",kind:o,title:s,children:l,raw:`:::${o} ${s} +${l.map(d=>d.raw).join(` +`)} +:::`},u+1]}const qge=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/;function Uge(e,t,n){const i=e[t];if(i.type!=="container_open")return null;const o=qge.exec(String(i.info??""));return o?zge(e,t,o,n):null}const B7={parseContainer:(e,t,n)=>Wge(e,t,n),matchAdmonition:Uge};function ym(e,t,n){const i=[],o=af(n,!0);let s=t+1;for(;sl.raw).join(` +`)};return n?.includeSourceMap&&Ci(r,e[t],n),[r,s+1]}function Vge(e){if(e.info?.startsWith("diff"))return N7(e);const t=String(e.content??""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);let i=t;n?.[1]&&(i=t.replace(/]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String(e.info??""),code:i,raw:i,loading:!o}}function Kge(e,t,n){const i=[];let o=t+1,s=[],r=[];const l=af(n,!0);for(;ou.raw).join("")),o+=3}else if(e[o].type==="dd_open"){let a=o+1;for(r=[];a0&&(i.push({type:"definition_item",term:s,definition:r,raw:`${s.map(u=>u.raw).join("")}: ${r.map(u=>u.raw).join(` +`)}`}),s=[]),o=a+1}else o++;return[{type:"definition_list",items:i,raw:i.map(a=>a.raw).join(` +`)},o+1]}function Zge(e,t,n){const i=e[t].meta??{},o=String(i?.label??"0"),s=[],r=af(n,!0);let l=t+1;for(;la.raw).join(` +`)}`},l+1]}function Gge(e,t,n){const i=e[t],o=i.attrs,s=Array.isArray(o)&&o.length?Object.fromEntries(o.filter(c=>Array.isArray(c)&&c.length>=1&&c[0]).map(([c,d])=>[String(c),d==null||d===""?!0:String(d)])):void 0,r=String(i.tag?.substring(1)??"1"),l=Number.parseInt(r,10),a=e[t+1],u=String(a.content??"");return{type:"heading",level:l,text:u,...s?{attrs:s}:{},children:Lo(a.children||[],u,void 0,n),raw:u}}function Qge(e,t,n){const i=t.toLowerCase(),o=new RegExp(String.raw`^<\s*${i}(?=\s|>|/)`,"i"),s=new RegExp(String.raw`^<\s*\/\s*${i}(?=\s|>)`,"i");let r=0,l=Math.max(0,n);for(;l$/.test(d)||r++,l=a+c+1;continue}l=a+1}return-1}function bH(e){const t=String(e.content??"");if(/^\s*");else if(a)a=!v.includes(">");else if(u)u=!v.includes("?>");else if(v.startsWith("");else if(v.startsWith("");else if(v.startsWith("");else{const y=o(v);if(y)if(y.closing){for(let b=r.length-1;b>=0;b--)if(r[b]===y.tag){r.length=b;break}}else y.selfClosing||s(y.after,y.tag)||r.push(y.tag)}}if(d===-1||d>=t)break;c=d+1}return l||a||u||r.length>0}function B0e(e,t,n){if(!n?.length)return!1;const i=new Set(tp(n));if(!i.size)return!1;const o=c=>{const d=c.charCodeAt(0);return d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||c==="_"||c==="-"||c===":"},s=c=>c===" "||c===" ",r=c=>{if(c[0]!=="<")return null;let d=1;for(;d"&&g!=="/")return null;const v=c.indexOf(">",d);if(v===-1)return null;let y=v-1;for(;y>=0&&s(c[y]);)y--;return{closing:f,tag:m,selfClosing:!f&&c[y]==="/",after:c.slice(v+1)}},l=(c,d)=>{const f=c.toLowerCase();let h=0;for(;h")return!0}}return!1},a=[];let u=0;for(;u=t?t:c,f=e.slice(u,d),h=f.endsWith("\r")?f.slice(0,-1):f,m=km(h);if(m){const g=r(h.slice(m.index));if(g)if(g.closing){for(let v=a.length-1;v>=0;v--)if(a[v]===g.tag){a.length=v;break}}else g.selfClosing||l(g.after,g.tag)||a.push(g.tag)}if(c===-1||c>=t)break;u=c+1}return a.length>0}function R0e(e,t){const n=f0e.exec(e);if(!n)return null;const i=n[1]??"",o=n.index+i.length,s=e.indexOf(` +`,o),r=e.slice(o,s===-1?e.length:s);return!km(r.endsWith("\r")?r.slice(0,-1):r)||EH(e,o)||F0e(e,o)||B0e(e,o,t)?null:`${e.slice(0,n.index)}${i}`}function H7(e,t,n){let i=t;for(;ii&&(r=!0),t.inMath=!1,t.mathOpenOffset=null,s+=2;continue}s++;continue}if(t.inDollarMath){if(e.startsWith("$$",s)&&!Au(e,l)){i!=null&&o&&n+s+2>i&&(r=!0),t.inDollarMath=!1,t.dollarMathOpenOffset=null,s+=2;continue}s++;continue}if(e[s]==="`"&&!Au(e,l)){const a=H7(e,s,"`"),u=LH(e,s+a,a);if(u===-1)break;s=u+a;continue}if(e.startsWith("\\[",s)&&!Au(e,l)){t.inMath=!0,t.mathOpenOffset=n+s,s+=2;continue}if(e.startsWith("$$",s)&&!Au(e,l)){t.inDollarMath=!0,t.dollarMathOpenOffset=n+s,s+=2;continue}s++}return r}function O0e(e,t){if(!E7(t))return e;const n=t,i=yL.get(n),o=i?.source===e?i.state:i&&e.startsWith(i.source)?NH(i.state,e.slice(i.source.length),i.source.length-i.state.lineBuffer.length).state:a4(e).state;yL.set(n,{source:e,state:o});const{context:s}=o,r=s.inMath?s.mathOpenOffset:s.inDollarMath?s.dollarMathOpenOffset:null;if(r==null)return e;const l=e.slice(r+2),a=e.lastIndexOf(` +`,r-1)+1;if(e.slice(a,r).trim()!==""&&!/^\r?\n/.test(l)||/^\s*!\[/.test(l))return e;const u=l.trim(),c=/^(?:[a-z]|pi)$/i.test(u);return hd(l)&&!c?e:e.slice(0,r)}function $0e(e,t,n,i,o){const s=$7(e),r=P7(e);if(t.inFence&&t.fenceInBlockquote&&e.trim()&&z7(e)==null&&D8(t),t.inFence&&t.fenceInList&&e.trim()&&s.column=t.fenceLen&&/^\s*$/.test(l.rest)&&D8(t):(t.inFence=!0,t.fenceChar=l.markerChar,t.fenceLen=l.markerLen,t.fenceInBlockquote=l.inBlockquote,t.fenceInList=l.inList||t.listContentIndent!=null&&!l.inBlockquote&&s.column>=t.listContentIndent,t.fenceListIndent=l.listIndent||t.listContentIndent||0);else if(!t.inFence)return CL(e,t,n,i,o)}else return CL(e,t,n,i,o);return!1}function a4(e,t=T0e(),n=null,i=!1,o=0){const s=u0(t);let r=u0(t),l="",a=!1,u=0;for(;uu&&e[c-1]==="\r"?c-1:d?c:e.length,h=e.slice(u,f);$0e(h,s,o+u,n,i)&&(a=!0),d?(r=u0(s),l=""):l=h,u=d?c+1:e.length}return{closedOpenMath:a,state:{committedContext:r,context:s,lineBuffer:l}}}function NH(e,t,n=0){return t&&!e.context.inMath&&!e.context.inDollarMath&&!e.context.inFence&&!e.committedContext.inFence&&!/[\\$`~\r\n]/.test(t)&&!(e.lineBuffer.endsWith("\\")&&(t[0]==="["||t[0]==="]"))?{closedOpenMath:!1,state:{committedContext:u0(e.committedContext),context:u0(e.context),lineBuffer:e.lineBuffer+t}}:a4(e.lineBuffer+t,e.committedContext,n+e.lineBuffer.length,e.context.inMath||e.context.inDollarMath,n)}function P0e(e,t){if(!E7(e))return;const n=e.stream;if(typeof n?.reset!="function")return;const i=e,o=l4.get(i);if(o?.source===t)return;const s=o?t.startsWith(o.source):!1,r=s&&o?t.slice(o.source.length):"",l=s&&o?NH(o.explicitBracketMath,r,o.source.length-o.explicitBracketMath.lineBuffer.length):a4(t),a=l.state,u=s&&o?l.closedOpenMath:!1;if(o&&s&&o.key===null&&o.pendingCandidate===!1&&!u&&!D0e(o.source,r)&&!L0e(t)){o.source=t,o.explicitBracketMath=a;return}const c=bme(t);(o&&(o&&!s||o.key!==c||u)||!o&&c)&&n.reset(),E0e(e,t,c,a)}function z0e(e){return typeof e.preTransformTokens=="function"||typeof e.postTransformTokens=="function"}function DH(e,t){const n=e?.map,i=t?.map;return n===i?!0:!Array.isArray(n)||!Array.isArray(i)?!1:n.length===i.length&&n.every((o,s)=>o===i[s])}function j0e(e,t){const n=e?.attrs,i=t?.attrs;if(n===i)return!0;if(!Array.isArray(n)||!Array.isArray(i)||n.length!==i.length)return!1;for(let o=0;o":""}function _L(e){return{type:"paragraph",children:e,raw:e.map(U0e).join("")}}function ML(e,t){if(t.sourceMap)for(const n of e)n.sourceMap||(n.sourceMap=t.sourceMap)}function IL(e,t){if(e.type!=="paragraph")return null;const n=e.children,i=Array.isArray(n)?n:[];if(i.length===0)return null;const o=x0e(t);if(!o?.size)return null;let s=-1;for(let c=0;ch?.type==="hardbreak")){s=c;break}}if(s===-1)return null;const r=i.slice(0,s),l=i[s];if(!l)return null;const a=[];r.length&&a.push(_L(r)),a.push(l);const u=i.slice(s+1);return u.length&&a.push(_L(u)),a}function V0e(e){const t=e.trim();if(!t)return null;const n=/^(?:]*>\s*)?]*)?>/i.test(t),i=/<\/html>\s*$/i.test(t);return!n||!i?null:[{type:"html_block",tag:"html",raw:e,content:e,loading:!1}]}function c0(e){const t=e.raw;if(typeof t=="string")return t;const n=e.content;return typeof n=="string"?n:""}function K0e(e,t){if(e.type!=="html_block"||!t)return!1;const n=String(e.raw??e.content??"");return new RegExp(String.raw`^\s*<\s*\/\s*${Ka(t)}\s*>\s*$`,"i").test(n)}const B8=new Set(["iframe","script","style","textarea","title"]);function qv(e,t,n){if(!e||!t)return null;const i=t.toLowerCase(),o=f=>{if(e.startsWith("",f+4);return{closing:!1,end:A===-1?e.length:A+3,selfClosing:!1,tag:""}}if(e.startsWith("",f+9);return{closing:!1,end:A===-1?e.length:A+3,selfClosing:!1,tag:""}}const h=Ho(e.slice(f));if(h===-1)return null;const m=f+h+1,g=e.slice(f,m);if(/^<\s*[!?]/.test(g))return{closing:!1,end:m,selfClosing:!1,tag:""};let v=g.slice(1).trimStart();const y=v.startsWith("/");y&&(v=v.slice(1).trimStart());const b=v.match(/^([A-Z][\w:-]*)/i);return b?.[1]?{closing:y,end:m,selfClosing:/\/\s*>$/.test(g),tag:b[1].toLowerCase()}:{closing:!1,end:f+1,selfClosing:!1,tag:""}},s=(f,h)=>{const m=new RegExp(String.raw`<\s*\/\s*${Ka(f)}(?=\s|>)`,"gi");m.lastIndex=h;const g=m.exec(e);if(!g||g.index==null)return null;const v=o(g.index);return v?{start:g.index,end:v.end}:null};let r=-1,l=-1,a=Math.max(0,n);for(;a$/.test(u))return{raw:u,start:r,end:l+1,closed:!0};if(B8.has(i)){const f=s(i,l+1);return f?{raw:e.slice(r,f.end),start:r,end:f.end,closeStart:f.start,closed:!0}:{raw:e.slice(r),start:r,end:e.length,closed:!1}}let c=1,d=l+1;for(;d]*$/,"")} +`}function TL(e){return e.replace(/\r\n/g,` +`).replace(/(^|\n)[ \t]{1,4}/g,"$1")}function Q0e(e,t,n){return n?e.includes(n,t)?!0:TL(e.slice(Math.max(0,t))).includes(TL(n)):!1}function Y0e(e,t){let n=Math.max(0,t);for(;n)`,"gi");let i=-1,o;for(;(o=n.exec(e))!==null;)i=o.index;return i}function BH(e,t){return{final:t,__disableStreamParse:!0,requireClosingStrong:e.requireClosingStrong,customHtmlTags:e.customHtmlTags,validateLink:e.validateLink}}const X0e=new Set(["admonition","blockquote","code_block","definition_list","footnote","heading","list","math_block","table","thematic_break"]),eve=/(?:^|\n)\s{0,3}(?:#{1,6}\s+\S|[-+*]\s+\S|\d+[.)]\s+\S|>\s*\S|`{3,}|~{3,}|(?:\*{3,}|-{3,}|_{3,})(?:\s|$)|\|.*\|)/m;function tve(e){return/\n\s*\n/.test(e)||eve.test(e)}function nve(e,t){if(!e.trim()||t.length===0)return!1;if(t.some(i=>X0e.has(String(i?.type??"").toLowerCase()))||t.some(i=>{if(i?.type!=="html_block")return!1;const o=i;return Array.isArray(o.children)&&o.children.length>0}))return!0;if(!tve(e))return!1;if(t.length>1)return!0;const[n]=t;return!!(n&&n.type==="paragraph")}function ive(e){const t=[];let n=0;for(;n=e.length)break;const i=e.slice(n).match(/^<([A-Z][\w:-]*)/i);if(!i?.[1])return null;const o=qv(e,i[1],n);if(!o||o.start!==n)return null;t.push(o.raw),n=o.end}return t.length>1?t:null}function ove(e,t,n,i){const o=n.customHtmlTags?.join("\0")??"",s=t,r=vL.get(s),l=r&&r.final===i&&r.customHtmlTags===o&&r.requireClosingStrong===n.requireClosingStrong&&r.validateLink===n.validateLink,a=e.map((u,c)=>l&&r.blocks[c]===u?r.children[c]:S1(u,t,n));return vL.set(s,{blocks:e,children:a,customHtmlTags:o,final:i,requireClosingStrong:n.requireClosingStrong,validateLink:n.validateLink}),a.flat()}function sve(e,t,n,i){return e.map(o=>{if(o?.type!=="html_block")return o;const s=o,r=String(s.tag??"").toLowerCase();if(!r||r==="details"||Fj.has(r)||Array.isArray(s.children))return o;const l=String(o.raw??s.content??"");if(!l)return o;const a=Ho(l);if(a===-1)return o;const u=qv(l,r,0),c=u?.closeStart??-1,d=u?.closed===!0&&c>=a+1,f=d?l.slice(a+1,c):l.slice(a+1);if(!f.trim())return o;const h=BH(n,i),m=d?null:ive(f),g=m?ove(m,t,h,i):S1(f,t,h);return nve(f,g)?{...o,children:g}:o})}function rve(e){for(const t of e)if(t?.type==="html_block")return!0;return!1}function S1(e,t,n){return e.trim()?OH(e,t,{...n,__disableStreamParse:!0,__disableStructuredReuse:!0}):[]}function lve(e,t,n){const i=S1(e,t,n),o=i[0];return i.length===1&&o?.type==="paragraph"&&Array.isArray(o.children)?o.children:i}function ave(e,t,n){const i=bH({content:e}),o=Ho(e),s=FH(e,"summary");if(o!==-1&&s!==-1&&s>=o+1){const r=lve(e.slice(o+1,s),t,n);r.length>0&&(i.children=r)}return i.raw=e,i}function uve(e,t,n){const i=Ho(e);if(i===-1)return[];const o=e.slice(i+1);if(!o.trim())return[];const s=qv(o,"summary",0);if(!s)return S1(o,t,n);const r=o.slice(0,s.start),l=o.slice(s.end);return[...S1(r,t,n),ave(s.raw,t,n),...S1(l,t,n)]}function RH(e,t,n,i,o,s=0){const r=[];let l=s;for(let a=0;a{const j=FH(f,"details");return j!==-1?f.slice(0,j):f})():f,[A]=RH(y?[]:g===-1?e.slice(a+1):e.slice(a+1,g),t,n,i,o,h+f.length),w=uve(b,n,BH(i,o)),M=g===-1?"":String(e[g].raw??c0(e[g])??""),N=y||g!==-1&&v?.closed===!0,T=M.replace(/[\t\r\n ]+$/,""),C=N?(()=>{const j=(v?.raw??"").lastIndexOf(T);return j===-1?t.length:h+j})():t.length,I=Ho(f),S=y&&I!==-1?h+I+1:h+f.length,E=t.slice(S,C===-1?t.length:C),_=n.parse(E,{__markstreamFinal:o}),F=n.renderer.render(_,n.options,{__markstreamFinal:o}),q=C+T.length,P=N?Math.max(C+M.length,Y0e(t,q)):t.length,O=N?t.slice(C,P):M,R=N?t.slice(h,P):t.slice(h),z=y&&I!==-1?f.slice(0,I+1):f,H={...u,tag:"details",attrs:s4(f.slice(0,I+1)),raw:R,content:`${z}${F}${O}`,children:[...w,...A],loading:!o&&!N};if(i.includeSourceMap&&(H.sourceMap=iv(t,h,N?P:t.length,i)),r.push(H),l=N?P:t.length,g===-1&&!y)break;g!==-1&&(a=g)}return[r,l]}function cve(e,t,n,i){if(!n)return e;const o=e.slice();let s=0;for(let r=0;r=d.start&&I.end<=d.end){o.splice(N,1);continue}break}M=C+T.length,o.splice(N,1)}}return o}function dve(e){const t=l=>l===" "||l===" "||l===` +`||l==="\r",n=l=>{if(!l||l[0]!=="<"||l.includes(">"))return!1;let a=1;if(a{const v=g.charCodeAt(0);return v>=65&&v<=90||v>=97&&v<=122},c=g=>{const v=g.charCodeAt(0);return v>=48&&v<=57},d=g=>g==="!"||u(g),f=g=>u(g)||c(g)||g===":"||g==="-",h=g=>u(g)||c(g)||g==="_"||g==="."||g===":"||g==="-",m=h;if(a>=l.length||!d(l[a]))return!1;for(a++;a=l.length)return!0;if(l[a]==="/"){for(a++;a=l.length}if(!h(l[a]))return!1;for(a++;a=l.length)return!0;const g=l[a];if(g==='"'||g==="'"){for(a++;a=l.length)return!0;a++}else{for(;a"||v==='"'||v==="'"||v==="`")break;a++}if(a>=l.length)return!0}}}return!0},i=(l,a)=>EH(l,a),o=String(e??""),s=o.lastIndexOf("<");if(s===-1||i(o,s))return o;if(s>0){const l=o[s-1],a=l===" "||l===" "||l===` +`||l==="\r",u=o[s-2];if(!a&&!((l==="n"||l==="r")&&u==="\\"))return o}const r=o.slice(s);return r.includes(">")||r.length>1&&(r[1]===" "||r[1]===" "||r[1]===` +`||r[1]==="\r")||!n(r)?o:o.slice(0,s)}function LL(e,t){if(e===t)return;const n=e.split(/\r?\n/),i=t.split(/\r?\n/),o=[];let s=0;for(let r=0;r{const l=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0;if(lString(m??"").toLowerCase()).filter(Boolean));if(!n.size)return e;const i=m=>m===" "||m===" ",o=m=>{const g=m.charCodeAt(0);return g>=65&&g<=90||g>=97&&g<=122||g>=48&&g<=57||m==="_"||m==="-"||m===":"},s=m=>{if(!m)return!1;if(m[0]===" ")return!0;let g=0;for(let v=0;v=4)return!0;continue}if(y===" ")return!0;break}return!1},r=m=>{let g=!1,v=!1;for(let y=0;y")return y}return-1},l=m=>{let g=0;for(;g{if(s(m))return-1;const v=m.replace(/^[ \t]+/,"");if(!v||v.startsWith(">")||v.startsWith("|")||/^(?:[*+-]|\d+[.)])[\t ]+/.test(v))return-1;let y=!1,b=0;for(;b=M.length){y=!0,b++;continue}const T=M[N];if(T==="!"||T==="?"){y=!0,b+=w+1;continue}if(T==="/"){y=!0,b+=w+1;continue}const C=N;for(;N"&&S!=="/"){y=!0,b++;continue}const E=new RegExp(String.raw`<\s*\/\s*${I}\s*>`,"i"),_=/\/\s*>$/.test(M),F=E.test(m.slice(b+w+1)),q=E.test(e.slice(g+b+w+1)),P=/[\r\n]/.test(e.slice(g+b+w+1));if(y&&n.has(I)&&!_&&!F&&(q||P))return b;y=!0,b+=w+1}return-1};let u=!1,c="",d=0,f="",h=0;for(;hh&&e[m-1]==="\r",y=g?v?m-1:m:e.length,b=e.slice(h,y),A=g?v?`\r +`:` +`:"",w=l(b);let M=b;if(!u&&!w){const N=a(b,h);if(N!==-1){const T=A||` +`;M=`${b.slice(0,N).replace(/[ \t]+$/,"")}${T}${T}${b.slice(N).replace(/^[ \t]+/,"")}`}}f+=M,f+=A,w&&(u?w.markerChar===c&&w.markerLen>=d&&/^\s*$/.test(w.rest)&&(u=!1,c="",d=0):(u=!0,c=w.markerChar,d=w.markerLen)),h=g?m+1:e.length}return f}function hve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(d=>String(d??"").toLowerCase()));if(!n.size)return e;const i=d=>d===" "||d===" ",o=d=>{const f=d.charCodeAt(0);return f>=65&&f<=90||f>=97&&f<=122||f>=48&&f<=57||d==="_"||d==="-"},s=d=>{let f=0;for(;f{let f=!1,h=!1;for(let m=0;m")return m}return-1},l=(d,f,h)=>{const m=h.toLowerCase();let g=d.indexOf("<",f);for(;g!==-1;){let v=g+1;for(;v=d.length||d[v]!=="/"){g=d.indexOf("<",g+1);continue}for(v++;vd.length){g=d.indexOf("<",g+1);continue}let y=!0;for(let A=0;A="A"&&w<="Z"?String.fromCharCode(w.charCodeAt(0)+32):w)!==m[A]){y=!1;break}}if(!y){g=d.indexOf("<",g+1);continue}let b=v+m.length;if(b")return!0;g=d.indexOf("<",g+1)}return!1},a=d=>{let f=0;for(;f=d.length||d[f]!=="<")return d;for(f++;f=d.length||d[f]==="/")return d;const h=f;for(;fc&&e[d-1]==="\r",h=f?d-1:d,m=e.slice(c,h);u+=a(m),u+=f?`\r +`:` +`,c=d+1}return u}function pve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(f=>String(f??"").toLowerCase()));if(!n.size)return e;const i=f=>f===" "||f===" ",o=f=>{let h=0,m=!1,g=0;for(;h=f.length||f[h]!==">")break;for(m=!0,h++;h{let h=0;for(;hnew RegExp(String.raw`(<\s*\/\s*${f}\s*>)${"(?=[\\t ]*(?:#{1,6}[\\t ]+|>|(?:[*+-]|\\d+[.)])[\\t ]+|(?:`{3,}|~{3,})|\\||\\$\\$|:{3,}|\\[\\^[^\\]]+\\]:|(?:-{3,}|\\*{3,}|_{3,})))"}`,"gi"));let l=!1,a="",u=0,c="",d=0;for(;dd&&e[f-1]==="\r",g=h?m?f-1:f:e.length,v=e.slice(d,g),y=h?m?`\r +`:` +`:"",b=o(v),A=b?.prefix??"",w=b?.content??v,M=s(w);M&&(l?M.markerChar===a&&M.markerLen>=u&&/^\s*$/.test(M.rest)&&(l=!1,a="",u=0):(l=!0,a=M.markerChar,u=M.markerLen));let N=w;if(!l&&N.includes("{if(E.replace(/^[\t ]+/,"").startsWith("|"))return C;const _=E.slice(0,S).replace(/^[\t ]+/,"");if(_.length>0){const F=I.match(/^<\s*\/\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"",q=_.match(/^<\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"";if(!F||!q||F!==q)return C}return`${I} + +`});if(A){const T=A+N.split(` +`).join(` +${A}`);c+=T}else c+=N;c+=y,d=h?f+1:e.length}return c}function mve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(_=>String(_??"").toLowerCase()));if(!n.size)return e;const i=_=>_===" "||_===" ",o=_=>{if(!_)return!1;if(_[0]===" ")return!0;let F=0;for(let q=0;q<_.length;q++){const P=_[q];if(P===" "){if(F++,F>=4)return!0;continue}if(P===" ")return!0;break}return!1},s=_=>{const F=_.charCodeAt(0);return F>=65&&F<=90||F>=97&&F<=122||F>=48&&F<=57||_==="_"||_==="-"||_===":"},r=_=>{let F=0;for(;F<_.length&&i(_[F]);)F++;return _.slice(F)},l=_=>{let F=0,q=!1,P=0;for(;F<_.length;){for(;F<_.length&&i(_[F]);)F++;if(F>=_.length||_[F]!==">")break;for(q=!0,F++;F<_.length&&i(_[F]);)F++;P=F}if(!q)return null;const O=_.slice(0,P);return{prefix:O,key:O.replace(/[ \t]+$/,""),content:_.slice(P)}},a=_=>r(_).startsWith("<"),u=_=>{for(let F=0;F<_.length;F++){const q=_[F];if(q!==" "&&q!==" ")return!1}return!0},c=_=>{if(o(_))return"";const F=r(_);if(!F.startsWith("<"))return"";let q=1;for(;q=F.length||F[q]==="/"||F[q]==="!"||F[q]==="?")return"";const P=q;for(;q"&&R!=="/"?"":O},d=_=>{if(o(_))return null;const F=r(_);if(!F.startsWith("<"))return null;let q=1;for(;q=F.length)return null;const P=F[q]==="/";if(P)for(q++;q"&&H!=="/")return null;if(P)return{type:"close",name:z};if(/\/\s*>\s*$/.test(F))return{type:"open",name:z,complete:!0};const j=F.indexOf(">",q);if(j!==-1){const Q=F.slice(j+1);if(new RegExp(`<\\s*\\/\\s*${z}\\s*>`,"i").test(Q))return{type:"open",name:z,complete:!0}}return{type:"open",name:z,complete:!1}},f=_=>{if(o(_))return null;const F=r(_).replace(/[ \t]+$/,"");if(!F.startsWith("<")||/^<\s*(?:!--|!doctype\b|\?)/i.test(F))return null;const q=F.match(/^<\s*([A-Z][\w:-]*)\b[^>]*\/\s*>\s*$/i);if(q?.[1])return q[1].toLowerCase();const P=F.match(/^<\s*([A-Z][\w:-]*)\b[^>]*>[\s\S]*<\s*\/\s*([A-Z][\w:-]*)\s*>\s*$/i);if(!P?.[1]||!P[2])return null;const O=P[1].toLowerCase();return O===P[2].toLowerCase()?O:null};let h=!1,m="",g=0;const v=_=>{let F=0;for(;F<_.length&&i(_[F]);)F++;const q=_[F];if(q!=="`"&&q!=="~")return null;let P=F;for(;P<_.length&&_[P]===q;)P++;const O=P-F;return O<3?null:{markerChar:q,markerLen:O,rest:_.slice(P)}},y=_=>v(_),b=_=>{const F=r(_);return F?o(_)?!0:/^(?:#{1,6}[ \t]+|>|[*+-][ \t]+|\d+[.)][ \t]+|`{3,}|~{3,}|\||\$\$|:{3,}|\[\^[^\]]+\]:|-{3,}|\*{3,}|_{3,})/.test(F):!1},A=(_,F,q)=>{let P=_,O=0;for(;PP&&e[R-1]==="\r",j=z?H?R-1:R:e.length,Q=e.slice(P,j),ae=l(Q),W=ae?.key??"";if(O>0&&F&&W!==F)break;const G=ae?.content??Q,oe=d(G);if(oe?.name===q){if(oe.type==="open")oe.complete||O++;else if(O>0&&(O--,O===0))return!1}else if(O>0&&(u(G)||b(G)))return!0;if(z)P=R+1;else break}return!1};let w="",M=0,N=!0,T=!1,C=!1,I=` +`;const S=[];let E="";for(;MM&&e[_-1]==="\r",P=F?q?_-1:_:e.length,O=e.slice(M,P),R=F?q?`\r +`:` +`:"",z=l(O),H=z?.key??"",j=z?.content??O,Q=y(j);Q&&(h?Q.markerChar===m&&Q.markerLen>=g&&/^\s*$/.test(Q.rest)&&(h=!1,m="",g=0):(h=!0,m=Q.markerChar,g=Q.markerLen));const ae=S.length>0;if(!h&&!ae){const G=c(j),oe=!!G&&!N&&T&&C&&A(M,H,G);G&&!N&&(!T||oe)&&(H&&E&&H===E?w+=`${H}${I}`:H||(w+=I))}if(w+=O,w+=R,R&&(I=R),!h){const G=d(j);if(G){if(G.type==="open")G.complete||S.push(G.name);else for(let oe=S.length-1;oe>=0;oe--)if(S[oe]===G.name){S.length=oe;break}}}const W=u(j);N=W,T=!W&&a(j),C=!W&&!!f(j),E=H,M=F?_+1:e.length}return w}function gve(e){let t=!1,n="",i=0,o=!1,s=!1,r=!1,l=0;const a=(c,d)=>{const f=j7(c);if(f){t?f.markerChar===n&&f.markerLen>=i&&/^\s*$/.test(f.rest)&&(t=!1,n="",i=0):(t=!0,n=f.markerChar,i=f.markerLen);return}if(t)return;let h=0;for(;h{for(;l=c?c:d,h=f>l&&e[f-1]==="\r"?f-1:f;if(a(e.slice(l,h)),d===-1||d>=c){l=c;break}r=!1,l=d+1}},inMath:()=>o||s||r}}function R8(e,t,n,i){let o=e.replace(/([^\\])\r(ight|ho)/g,"$1\\r$2");const s=gve(o);if(o=o.replace(/([^\\])\r?\n(abla|eq|ot|exists)/g,(r,l,a,u)=>{s.scanTo(u+1);const c=s.inMath();return s.scanTo(u+r.length),c?`${l}\\n${a}`:r}),t||(o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/(?:^|\n)\s*-\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*-\s*$/,r=>r.startsWith(` +`)?` +`:""):/(?:^|\n)\s*--\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*--\s*$/,r=>r.startsWith(` +`)?` +`:""):/(?:^|\n)\s*>\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*>\s*$/,r=>r.startsWith(` +`)?` +`:""):/\n\s*[*+]\s*$/.test(o)?o=o.replace(/\n\s*[*+]\s*$/,` +`):/(?:^|\n)\s*\d+\s*$/.test(o)?/^\d+$/.test(o.trim())||(o=o.replace(/(?:^|\n)\s*\d+\s*$/,r=>r.startsWith(` +`)?` +`:"")):/(?:^|\n)\s*\d+[.)]\s+\*{1,3}\s*$/.test(o)?o=o.replace(/((?:^|\n)\s*\d+[.)]\s+)(\*{1,3})\s*$/,(r,l,a)=>`${l}${a.split("").map(()=>"\\*").join("")}`):/(?:^|\n)\s*\d+[.)]\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*\d+[.)]\s*$/,r=>r.startsWith(` +`)?` +`:""):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,` +`)),o=R0e(o,i.customHtmlTags)??o),i.customHtmlTags?.length&&o.includes("<")){const r=tp(i.customHtmlTags);if(r.length&&(o=fve(o,r),o=hve(o,r),o=mve(o,r),o=pve(o,r),o.includes("[\t ]*)(\r?\n)(?![\t ]*\r?\n|$)`,"gim");o=o.replace(a,"$1$2$2")}}return t||(o=dve(o)),o}function vve(e,t,n,i){const o=e,s=`${n?"final":"stream"}:${(i.customHtmlTags??[]).join(",")}`,r=zC.get(o);let l;if(!n&&!i.customHtmlTags?.length&&r&&r.mode===s&&t.length>=r.source.length&&t.startsWith(r.source)){const a=Math.max(0,r.source.length-h0e-p0e),u=R8(t.slice(a),n,e,i),c=r.source.length-a;l=u.length>=c&&u.slice(0,c)===r.safeMarkdown.slice(-c)?r.safeMarkdown.slice(0,r.safeMarkdown.length-c)+u:R8(t,n,e,i)}else l=R8(t,n,e,i);return n||(l=O0e(l,e)),zC.set(o,{source:t,safeMarkdown:l,mode:s}),l}function OH(e,t,n={}){const i=xH(n),o=i?Da():0,s=!!n.final,r=(e??"").toString();M0e(t,n)&&(t.stream.reset(),I0e(t),zC.delete(t));const l=vve(t,r,s,n);i&&Md(i,"safeMarkdownMs",Da()-o);const a=V0e(l);if(a){if(n.includeSourceMap){const M={...n,__sourceLineMapper:LL(r,l)};a[0].sourceMap=iv(l,0,l.length,M)}const A=n.preTransformTokens,w=n.postTransformTokens;if(O7(t,n)||typeof A=="function"||typeof w=="function"){const M=SL(t,l,{__markstreamFinal:s},n),N=typeof A=="function"&&A(M)||M;typeof w=="function"&&w(N)}return kL(a,n,i,o)}const u=i?Da():0,c=SL(t,l,{__markstreamFinal:s},n);if(i&&Md(i,"tokenizeMs",Da()-u),!c||!Array.isArray(c))return kL([],n,i,o);const d=n.preTransformTokens,f=n.postTransformTokens;let h=c;d&&typeof d=="function"&&(h=d(h)||h);const m=t,g=typeof m.validateLink=="function"&&m.__markstreamOriginalValidateLink&&m.validateLink!==m.__markstreamOriginalValidateLink?m.validateLink:void 0,v=n.validateLink??g??m.options?.validateLink??(typeof m.validateLink=="function"?m.validateLink:void 0),y={...n,validateLink:v,__markdownIt:t,__sourceLineMapper:n.includeSourceMap===!0?LL(r,l):void 0,__sourceMarkdown:l,__customHtmlBlockCursor:0};let b=A0e(t,l,h,y,i);if(f&&typeof f=="function"){const A=f(h);if(Array.isArray(A)){const w=A[0],M=w?.type;w&&typeof M=="string"?b=Up(A,{...y,__customHtmlBlockCursor:0},i):b=A}}if(rve(b)){const A=i?Da():0;b=cve(b,s,l,y),b=RH(b,l,t,y,s)[0],b=sve(b,t,y,s),i&&Md(i,"htmlBlockPassesMs",Da()-A)}if(s){const A=new WeakSet,w=M=>{if(!M||typeof M!="object"||A.has(M))return;if(A.add(M),Array.isArray(M)){for(const T of M)w(T);return}const N=M;N.type==="html_block"&&N.loading===!0&&(N.loading=!1);for(const T of Object.values(N))w(T)};w(b)}return b=_H(b,n),n.debug&&console.log("Parsed Markdown Tree Structure:",b),SH(b,i,o)}function NL(e,t){if(!e||!Array.isArray(e))return[];const n=[],i=af(t),o=t?.__linkifyDemotionSeed;if(Array.isArray(o)&&o.length)for(const l of o)i.remember(String(l??""));const s=t?.includeSourceMap===!0;let r=0;for(;rd.type==="html_block")){if(s)for(const d of c)Ci(d,a,t);for(const d of c)cu(d,a,t);n.push(...c)}else{const d={type:"paragraph",raw:u,children:c};s&&Ci(d,a,t);const f=IL(d,t);if(f){s&&ML(f,d);for(const h of f)cu(h,a,t);n.push(...f)}else cu(d,a,t),n.push(d)}i.remember(u)}r+=1;break;default:r+=1;break}}return n}const yve=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g,d0=/\d/u,kve=/[,.!?;:,。;、!?:]/u,bve=/\d\p{Script=Han}{1,3}$/u;function wve(e){return e.pos>0&&e.pos+1{const u=l,c=u.posMax,d=u.pos;if(u.src.charCodeAt(d)!==r||a||s.refuseDigitRange&&wve(u))return!1;u.pos=d+1;let f=!1;for(;u.pos]|$)/i,Sve=new Set([...jv,"base","button","datalist","dialog","embed","fieldset","form","iframe","input","legend","link","meta","object","optgroup","option","output","param","select","style","template","textarea","title"]),_ve=new Set(["a","abbr","b","blockquote","br","caption","code","col","colgroup","dd","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","picture","pre","s","small","source","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","ul"]);function DL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mve(e){return typeof e=="string"?e:e==null?"":String(e)}function $H(e){return/^[^\s"'<>`=]+$/.test(e)&&!/^on/i.test(e)}function pd(e){return Mve(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function PH(e){return pd(e).replace(/`/g,"`")}function c4(e){return String(e??"").trim().toLowerCase()}function W7(e,t="safe"){const n=c4(e);return n?t==="escape"?!0:t==="trusted"?jv.has(n):!_ve.has(n):!1}function zH(e,t="safe"){const n=c4(e);return n?t==="escape"?!0:t==="trusted"?jv.has(n):Sve.has(n):!1}function FL(e){const t=Object.entries(e);return t.length===0?"":t.map(([n,i])=>i===""?` ${n}`:` ${n}="${PH(i)}"`).join("")}function jH(e){const t=e.startsWith("/"),n=t?e.slice(1):e,i=n.match(xve);return i?{attrsStr:t?"":n.slice(i[0].length).trimStart(),isClosing:t,isSelfClosing:!t&&e.trimEnd().endsWith("/"),tagName:i[1]}:null}function Ive(e,t){const n=e.split(",").map(i=>i.trim()).filter(Boolean);return n.length===0?!1:n.some(i=>{const o=i.split(/\s+/,1)[0]??"";return!o||Ch(o,{tagName:t,attrName:"srcset"})})}function HH(e,t,n,i){return cpe.has(e)||n==="safe"&&e==="style"?!0:e==="srcset"?Ive(t,i):!!(dpe.has(e)&&t&&Ch(t,{tagName:i,attrName:e}))}function eh(e,t){const n=t.toLowerCase();return Object.keys(e).find(i=>i.toLowerCase()===n)}function WH(e,t,n,i=!1){if(t!=="safe"||c4(n)!=="a")return e;const o=eh(e,"href");if(i&&(!o||!e[o])){const a=eh(e,"target"),u=eh(e,"rel");return a&&delete e[a],u&&delete e[u],e}const s=eh(e,"target");if((s?String(e[s]).trim():"").toLowerCase()!=="_blank")return e;const r=eh(e,"rel"),l=new Set(String(r?e[r]:"").split(/\s+/).map(a=>a.trim()).filter(Boolean).filter(a=>a.toLowerCase()!=="opener"));return l.add("noopener"),l.add("noreferrer"),r&&r!=="rel"&&delete e[r],e.rel=Array.from(l).join(" "),e}function BL(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!$H(r)||HH(l,s,t,n)||(i[r]=s)}return WH(i,t,n,!!eh(e,"href"))}function qH(e,t){const n=e.toLowerCase();return Dj.has(n)?!1:DL(t,n)||DL(t,e)}function q7(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!$H(r)||HH(l,s,t,n)||(i[r]=s)}return WH(i,t,n,!!eh(e,"href"))}function f0(e){const t={};if(!Array.isArray(e)||e.length===0)return t;for(const[n,i]of e)n&&(t[String(n)]=i==null?"":String(i));return t}function l9(e,t="safe",n){const i=q7(f0(e),t,n),o=Object.entries(i).map(([s,r])=>[s,r]);return o.length>0?o:void 0}function Tve(e,t){const n=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(n))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(n)){const i=Number(e);if(e!==""&&!Number.isNaN(i))return i}return e}function Eve(e){const t={};for(const[n,i]of Object.entries(e))t[n]=Tve(i,n);return t}function O8(e){return e.trim().length>0}function UH(e){const t=[];let n=0;for(;n",n);if(r!==-1){n=r+3;continue}break}const i=e.indexOf("<",n);if(i===-1){if(nn){const r=e.slice(n,i);O8(r)&&t.push({type:"text",content:r})}if(e.startsWith("![CDATA[",i+1)){const r=e.indexOf("]]>",i);if(r!==-1){t.push({type:"text",content:e.slice(i,r+3)}),n=r+3;continue}break}if(e.startsWith("!",i+1)){const r=e.indexOf(">",i);if(r!==-1){n=r+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=jH(e.slice(i+1,o));if(!s){const r=e.slice(i,o+1);O8(r)&&t.push({type:"text",content:r}),n=o+1;continue}if(s.isClosing)t.push({type:"tag_close",tagName:s.tagName});else{const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Hd.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r})}n=o+1}return t}function Lve(e){const t=[];let n=0;for(;n",n);if(l!==-1){n=l+3;continue}break}const i=e.indexOf("<",n);if(i===-1){nn&&t.push({type:"text",content:e.slice(n,i)}),e.startsWith("![CDATA[",i+1)){const l=e.indexOf("]]>",i);if(l!==-1){t.push({type:"text",content:e.slice(i,l+3)}),n=l+3;continue}break}if(e.startsWith("!",i+1)){const l=e.indexOf(">",i);if(l!==-1){n=l+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=jH(e.slice(i+1,o));if(!s){t.push({type:"text",content:e.slice(i,o+1)}),n=o+1;continue}if(s.isClosing){t.push({type:"tag_close",tagName:s.tagName}),n=o+1;continue}const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Hd.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r}),n=o+1}return t}function Nve(e){const t=String(e.tagName??"").trim();if(!t)return"";if(e.type==="tag_close")return`</${pd(t)}>`;const n=Object.entries(e.attrs??{}).map(([i,o])=>o===""?` ${pd(i)}`:` ${pd(i)}="${PH(o)}"`).join("");return e.type==="self_closing"?`<${pd(t)}${n} />`:`<${pd(t)}${n}>`}function Dve(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;for(const n of UH(e))if((n.type==="tag_open"||n.type==="self_closing")&&qH(n.tagName??"",t))return!0;return!1}function _1(e,t="safe"){if(!e)return"";if(t==="escape")return pd(e);const n=Lve(e),i=[],o=[],s=[];for(const r of n){if(r.type==="text"){s.length===0&&o.push(pd(r.content??""));continue}const l=c4(r.tagName);if(!l)continue;if(zH(l,t)){r.type==="tag_open"?s.push(l):r.type==="tag_close"&&s[s.length-1]===l&&s.pop();continue}if(s.length>0)continue;if(t==="safe"&&W7(l,t)){o.push(Nve(r));continue}if(r.type==="self_closing"){o.push(`<${l}${FL(BL(r.attrs??{},t,l))}>`);continue}if(r.type==="tag_open"){o.push(`<${l}${FL(BL(r.attrs??{},t,l))}>`),Hd.has(l)||i.push(l);continue}const a=i.lastIndexOf(l);if(a===-1)continue;for(;i.length>a+1;){const c=i.pop();c&&o.push(``)}const u=i.pop();u&&o.push(``)}for(;i.length>0;){const r=i.pop();r&&o.push(``)}return o.join("")}const Fve=[/javascript:/i,/vbscript:/i,/data:text\/html/i,/expression\s*\(/i,/@import/i],RL="http://www.w3.org/2000/svg",Bve=new Set(["script","style","iframe","object","embed","link","meta"]),Rve=new Set(["svg","style","g","a","defs","marker","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","title","desc","use","image","lineargradient","radialgradient","stop","clippath","mask","pattern"]),Ove=new Set(["href","xlink:href","src","srcdoc","action","data","formaction","poster"]),$ve=new Set(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"]),Pve=new Set(["circle","ellipse","image","line","path","polygon","polyline","rect","text","tspan","use"]);function zve(e){return(e.getAttribute("href")||e.getAttribute("xlink:href"))?.startsWith("#")===!0}function jve(e){return!!(e.getAttribute("href")||e.getAttribute("xlink:href")||e.getAttribute("src"))}function Hve(e){const t=e.nodeName.toLowerCase();return t==="use"?zve(e):t==="image"?jve(e):t==="text"||t==="tspan"?!!e.textContent?.trim():Pve.has(t)}function Wve(e){return e.replace(/(["'])\s*javascript:/gi,"$1#").replace(/\bjavascript:/gi,"#").replace(/(["'])\s*vbscript:/gi,"$1#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#")}function qve(e,t,n){const i=e.toLowerCase(),o=t.toLowerCase(),s=String(n??"").trim();return s?(i==="use"||i==="marker"||i==="clippath"||i==="mask")&&(o==="href"||o==="xlink:href")?s.startsWith("#")?s:"":i==="a"&&(o==="href"||o==="xlink:href")?Ch(s,{tagName:"a",attrName:"href"})?"":s:i==="image"&&(o==="href"||o==="xlink:href"||o==="src")?Ch(s,{tagName:"img",attrName:"src"})?"":s:o==="href"||o==="xlink:href"?s.startsWith("#")?s:"":Ch(s,{tagName:i,attrName:o})?"":s:""}function Uve(e,t){let n=t+4;for(;n{const i=n.trim();if(/^[0-9a-f]+$/i.test(i)){const o=Number.parseInt(i,16);try{return Number.isFinite(o)?String.fromCodePoint(o):""}catch{return""}}return String(n).trim()})}function KH(e){const t=VH(e),n=t.toLowerCase();let i=0;for(;in.test(t))||KH(t)}function Vve(e){if(e.tagName.toLowerCase()!=="a"||e.getAttribute("target")?.trim().toLowerCase()!=="_blank")return;const t=new Set(String(e.getAttribute("rel")??"").split(/\s+/).map(n=>n.trim()).filter(Boolean).filter(n=>n.toLowerCase()!=="opener"));t.add("noopener"),t.add("noreferrer"),e.setAttribute("rel",Array.from(t).join(" "))}function ry(e){const t=Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function ZH(e,t){if(e.nodeType===Node.TEXT_NODE){const o=e.textContent??"";o&&t.push(o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const n=e,i=n.tagName.toLowerCase();if(!Bve.has(i)){if(i==="br"){t.push(` +`);return}for(const o of Array.from(n.childNodes))ZH(o,t)}}function Kve(e){for(const t of Array.from(e.querySelectorAll("foreignObject"))){const n=[];ZH(t,n);const i=n.join("").split(/\r?\n/).map(c=>c.trim()).filter(Boolean);if(!i.length){t.remove();continue}const o=ry(t.getAttribute("width")),s=ry(t.getAttribute("height")),r=ry(t.getAttribute("x")),l=ry(t.getAttribute("y")),a=e.ownerDocument.createElementNS(RL,"text");a.setAttribute("x",String(r+o/2)),a.setAttribute("y",String(l+s/2)),a.setAttribute("text-anchor","middle"),a.setAttribute("dominant-baseline","central");const u=t.querySelector(".nodeLabel");if(u?.getAttribute("class")&&a.setAttribute("class",u.getAttribute("class")),i.length===1)a.textContent=i[0];else{const c=-.6*(i.length-1);for(const[d,f]of i.entries()){const h=e.ownerDocument.createElementNS(RL,"tspan");h.setAttribute("x",String(r+o/2)),h.setAttribute("dy",d===0?`${c}em`:"1.2em"),h.textContent=f,a.appendChild(h)}}t.parentNode?.replaceChild(a,t)}}function Zve(e){Kve(e);const t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){const i=n.tagName.toLowerCase();if(!Rve.has(i)){n.remove();continue}if(i==="style"&&OL(n.textContent??"")){n.remove();continue}const o=Array.from(n.attributes);for(const s of o){const r=s.name.toLowerCase();if(/^on/i.test(r)){n.removeAttribute(s.name);continue}if(r==="style"&&s.value&&OL(s.value)){n.removeAttribute(s.name);continue}if(r==="srcdoc"){n.removeAttribute(s.name);continue}if(Ove.has(r)&&s.value){const l=qve(i,r,s.value);if(!l){n.removeAttribute(s.name);continue}l!==s.value&&n.setAttribute(s.name,l);continue}if($ve.has(r)&&s.value&&KH(s.value)){n.removeAttribute(s.name);continue}if(s.value){const l=Wve(s.value);l!==s.value&&n.setAttribute(s.name,l)}}Vve(n)}}function Mkt(e){if(typeof DOMParser>"u"||!e)return null;try{const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;if(!t||t.nodeName.toLowerCase()!=="svg")return null;const n=t;return Zve(n),Gve(n)?null:n}catch{return null}}function Gve(e){const t=e.getAttribute("viewBox");if(t){const o=t.trim().split(/[\s,]+/);if(o.length===4){const s=Number.parseFloat(o[2]||""),r=Number.parseFloat(o[3]||"");if(!Number.isFinite(s)||!Number.isFinite(r)||s<=0||r<=0)return!0}}const n=[e,...Array.from(e.querySelectorAll("*"))];let i=!1;for(const o of n){Hve(o)&&(i=!0);for(const s of Array.from(o.attributes))if(/\bNaN\b/i.test(s.value)||s.name==="style"&&/max-width:\s*0(?:px)?/i.test(s.value))return!0}return!i}const ly=[];function $8(e){return String(e??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Qve(e){return(String(e||"text").trim().split(/\s+/)[0]||"text").replace(/[^\w+.#:-]/g,"-").replace(/-+/g,"-")||"text"}function Yve(e){return e.replace(/[^\w:.+-]/g,"-").replace(/-+/g,"-")}function $L(e=`editor-${Date.now()}`,t={}){const n=Tme(t),i=n;i.__markstreamRegisteredPluginCount=ly.length,i.__markstreamHasCustomParserExtensions=!!(t.plugin?.length||t.apply?.length||ly.length);const o={"common.copy":"Copy"};let s;if(typeof t.i18n=="function")s=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const h=t.i18n;s=m=>h[m]??o[m]??m}else s=h=>o[h]??h;if(Array.isArray(t.plugin))for(const h of t.plugin){const m=h;if(Array.isArray(m)){const[g,...v]=m;typeof g=="function"&&n.use(g,...v)}else typeof m=="function"&&n.use(m)}if(Array.isArray(t.apply))for(const h of t.apply)try{h(n)}catch(m){console.error("[getMarkdown] apply function threw an error",m)}if(ly.length)for(const h of ly)if(Array.isArray(h)){const[m,...g]=h;typeof m=="function"&&n.use(m,...g)}else typeof h=="function"&&n.use(h);n.use(Ave),n.use(Gue),n.use(Vue);const r=ace,l=r.default??r;n.use(l),n.use(Uue),n.use(que),n.core.ruler.after("block","mark_fence_closed",h=>{const m=h,g=m.src,v=!!m.env?.__markstreamFinal,y=g.split(/\r?\n/);for(const b of m.tokens){if(b.type!=="fence"||!b.map||!b.markup)continue;const A=b.map[0],w=b.map[1],M=b.markup,N=M[0],T=M.length,C=y[Math.max(0,w-1)]??"";let I=0;for(;IA+1&&S>=T&&E===C.length,F=b;F.meta=F.meta??{},F.meta.unclosed=!_,F.meta.closed=!!_}}),n.renderer.rules.fence=(h,m)=>{const g=h[m],v=String(g.info??"").trim(),y=String(g.content??""),b=btoa(unescape(encodeURIComponent(y))),A=Qve(v),w=$8(A),M=Yve(`editor-${e}-${m}-${A}`),N=$8(s("common.copy"));return`
      +
      + ${$8(A.toUpperCase())} + +
      +
      +
      `};const a=/^\[(\d+)\]/,u=/^\[([^\]\n]+)\]/,c=h=>{if(!h.startsWith("["))return!1;const m=u.exec(h);if(!m)return h!=="["&&!/^\[\d+$/.test(h);const g=String(m[1]??"");return h.slice(m[0].length).startsWith("(")?!1:!/^\d+$/.test(g)},d=(h,m)=>{const g=h;if(g.src[g.pos]!=="[")return!1;const v=a.exec(g.src.slice(g.pos));if(!v)return!1;const y=g.src.slice(Math.max(0,g.pos-120),g.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(y))return!1;const b=g.src.slice(g.pos+v[0].length);if(b.startsWith("](")||b.startsWith("(")||c(b))return!1;if(!m){const A=v[1],w=g.push("reference","span",0);w.content=A,w.markup=v[0],w.raw=v[0]}return g.pos+=v[0].length,!0};n.inline.ruler.before("escape","reference",d),n.renderer.rules.reference=(h,m)=>{const v=String(h[m].content??"");return`${v}`};const f=n.use.bind(n);return n.use=((...h)=>(i.__markstreamHasCustomParserExtensions=!0,f(...h))),n}const Jve="modulepreload",Xve=function(e){return"/"+e},PL={},Qo=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let r=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");o=r(n.map(u=>{if(u=Xve(u),u in PL)return;PL[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Jve,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return o.then(r=>{for(const l of r||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};function e2e({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function GH({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:i,streamRenderVersionChanged:o=!1}){const s=`${n.settledContent}${n.streamedDelta}`;return i?n.streamedDelta&&s===e?o?{settledContent:s,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:e2e({nextContent:e,previousContent:t??s,typewriterEnabled:i}):{settledContent:e,streamedDelta:"",appended:!1}}const t2e={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function n2e(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function QH(e){const t=n2e(e);return t2e[t]??t}function i2e(e){if(!Array.isArray(e))return;const t=e.filter(i=>typeof i=="string").map(i=>QH(i)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function o2e(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const i of e){if(typeof i!="string")continue;const o=i.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function s2e(e){return o2e(e)?.join("\0")??""}function r2e(e,t){return`${s2e(e)}\0\0${i2e(t)?.join("\0")??""}`}function Ip(e,t,n=1){const i=Number(e);return Number.isFinite(i)?Math.max(n,i):t}function zL(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var l2e=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=d=>this.destroyed?()=>{}:(this.listeners.add(d),()=>{this.listeners.delete(d)}),this.enqueue=d=>{if(this.destroyed||!d)return;this.done&&(this.done=!1);const f=this.source.length>0,h=this.pendingChars<=0;if(this.source+=d,h){const m=jL();this.startedAt=f&&this.hasStarted?m-this.normalizedStartDelayMs:m,this.lastTick=m,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(d={})=>{if(!this.destroyed){if(this.done=!0,d.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(d="")=>{this.destroyed||(this.cancelLoop(),this.source=d,this.visible=d,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const d=jL();this.lastTick=d,this.startedAt||=d,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=d=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(d-this.startedAtthis.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,v=d2e(m/Math.max(.001,g/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(v-this.currentCps)*.2,this.charBudget+=this.currentCps*(h/1e3),this.charBudget<1){this.ensureLoop();return}const y=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),b=c2e(this.source.slice(this.visible.length),y,this.segmenter);b.text&&(this.visible+=b.text,this.charBudget=Math.max(0,this.charBudget-b.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:i=1e3,targetLatencyMs:o=900,catchUpLatencyMs:s=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:a=80,maxCharsPerCommit:u=80,flushOnFinish:c=!1}=e;this.minCharsPerSecond=Ip(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,Ip(i,1e3,1)),this.normalizedTargetLatencyMs=Ip(o,900,1),this.normalizedCatchUpLatencyMs=Ip(s,350,1),this.normalizedCatchUpThreshold=zL(r,600),this.normalizedStartDelayMs=zL(a,80),this.maxCommitFps=Math.trunc(Ip(l,30,1)),this.maxCharsPerCommit=Math.trunc(Ip(u,80,1)),this.flushOnFinish=c,this.segmenter=u2e(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function a2e(e={},t){const n=new l2e(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function u2e(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function c2e(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const s=Array.from(e).slice(0,t);return{text:s.join(""),graphemeCount:s.length}}let i="",o=0;for(const s of n.segment(e)){if(o>=t)break;i+=s.segment,o++}return{text:i,graphemeCount:o}}function jL(){return typeof performance<"u"?performance.now():Date.now()}function d2e(e,t,n){return Math.min(n,Math.max(t,e))}var f2e=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const HC=Symbol.for("markstream-vue:node-lifecycle");function Ikt(){}const U7=new Map;let YH="material";const n1=new Map,HL=new Map;let WC=null;function h2e(e){U7.set(e.id,e)}function p2e(e){const t=U7.get(YH);if(!t)return;const n=t.core[e];if(n)return n;const i=n1.get(t.id);if(i){const o=i[e];if(o)return o}t.loadExtended&&!n1.has(t.id)&&g2e(t)}function m2e(){var e,t;return(t=(e=U7.get(YH))==null?void 0:e.fallback)!=null?t:""}function g2e(e){return f2e(this,null,function*(){var t,n,i;if(n1.has(e.id))return(t=n1.get(e.id))!=null?t:null;let o=HL.get(e.id);return o||(o=((i=(n=e.loadExtended)==null?void 0:n.call(e))!=null?i:Promise.resolve(null)).then(s=>(n1.set(e.id,s),WC?.(),s)).catch(()=>(n1.set(e.id,null),null)),HL.set(e.id,o)),o})}const WL='',qL='',v2e={id:"material",core:{"":qL,plain:'',text:qL,javascript:'',typescript:'',jsx:'',tsx:'',html:'',css:'',scss:'',json:'',python:'',ruby:'',go:'',java:'',kotlin:'',c:'',cpp:'',cs:WL,csharp:WL,php:'',shell:'',powershell:'',sql:'',yaml:'',markdown:'',xml:'',rust:'',vue:'',mermaid:''},fallback:'',loadExtended:()=>Qo(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},y2e=Ga(0);WC=()=>{y2e.value++},h2e(v2e);const k2e={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function d4(e){var t;const n=(function(i){if(!i)return"";const o=i.trim();if(!o)return"";const[s]=o.split(/\s+/),[r]=s.split(":");return r.toLowerCase()})(e);return(t=k2e[n])!=null?t:n}function Tkt(e){const t=d4(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function Ekt(e){return p2e(d4(e))||m2e()}const UL={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var f4=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});let zr=null,ah=!1,uh=null,h4=K7;function Uv(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function V7(){try{const e=globalThis;return Uv(e?.katex)}catch{return null}}function K7(){return f4(null,null,function*(){const e=V7();if(e)return e;const t=yield Qo(()=>import("./katex-DnlPpQZa.js"),[]);try{yield Qo(()=>import("./mhchem-DtR62fUK.js"),__vite__mapDeps([0,1]))}catch{}return Uv(t)})}function JH(e){const t=Promise.resolve(e).then(n=>{var i;return uh===t&&n?(zr=(i=Uv(n))!=null?i:n,zr):null}).catch(()=>null).finally(()=>{uh===t&&(uh=null)});return uh=t,ah=!0,t}function b2e(e){h4=e,zr=null,ah=!1,uh=null}function w2e(e){b2e(K7)}function XH(){return typeof h4=="function"}function Lkt(){var e;const t=h4;if(!t||t===K7)return null;if(zr)return zr;const n=V7();if(n)return zr=n,zr;if(ah)return null;try{const i=t();return i?typeof i?.then=="function"?(JH(i),null):(zr=(e=Uv(i))!=null?e:i,zr):null}catch{return null}}function eW(){return f4(this,null,function*(){var e;const t=V7();if(t)return zr=t,zr;if(zr)return zr;if(uh)return uh;if(ah)return null;const n=h4;if(!n)return ah=!0,null;try{const i=n();if(typeof i?.then=="function")return JH(i);if(i)return zr=(e=Uv(i))!=null?e:i,ah=!0,zr}catch{}return ah=!0,null})}function tW(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let a9=null,qf=null;const $r=new Map,vc=new Map;let ov=5;const xh=new Set;function h0(){if($r.size{const{id:n,html:i,error:o}=t.data,s=$r.get(n);if(s)if($r.delete(n),clearTimeout(s.timeoutId),s.cleanup(),h0(),o)s.aborted||s.reject(new Error(o));else{const{content:r,displayMode:l}=t.data;if(r){const a=`${l?"d":"i"}:${r}`;if(vc.set(a,i),vc.size>200){const u=vc.keys().next().value;vc.delete(u)}}s.aborted||s.resolve(i)}},a9.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,i]of $r.entries())clearTimeout(i.timeoutId),i.cleanup(),i.aborted||i.reject(new Error(`Worker error: ${t.message}`));$r.clear(),C2e()}}function x2e(e,t=!0,n=2e3,i){return f4(this,null,function*(){performance.now();const o=tW(e);if(!XH()){const a=new Error("KaTeX rendering disabled");return a.name="KaTeXDisabled",a.code="KATEX_DISABLED",Promise.reject(a)}if(qf)return Promise.reject(qf);const s=`${t?"d":"i"}:${o}`,r=vc.get(s);if(r)return h0(),Promise.resolve(r);const l=a9||(qf=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),qf.name="WorkerInitError",qf.code="WORKER_INIT_ERROR",null);if(!l)return Promise.reject(qf);if($r.size>=ov){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code="WORKER_BUSY",a.busy=!0,a.inFlight=$r.size,a.max=ov,Promise.reject(a)}return new Promise((a,u)=>{if(i?.aborted){const g=new Error("Aborted");return g.name="AbortError",void u(g)}const c=Math.random().toString(36).slice(2);let d=null;const f=globalThis.setTimeout(()=>{const g=$r.get(c);if(!g)return;$r.delete(c),g.cleanup();const v=new Error("Worker render timed out");v.name="WorkerTimeout",v.code="WORKER_TIMEOUT",g.aborted||g.reject(v),h0()},n);d=()=>{const g=$r.get(c);if(!g||g.aborted)return;g.aborted=!0,g.cleanup();const v=new Error("Aborted");v.name="AbortError",u(v)},i&&i.addEventListener("abort",d,{once:!0});const h=a,m=u;$r.set(c,{resolve:g=>{h(g)},reject:g=>{m(g)},timeoutId:f,aborted:!1,cleanup:()=>{i&&d&&i.removeEventListener("abort",d),d=null}});try{l.postMessage({id:c,content:o,displayMode:t})}catch(g){const v=$r.get(c);$r.delete(c),clearTimeout(f),v?.cleanup(),v?.reject(g),h0()}})})}function Nkt(e,t=!0,n){const i=`${t?"d":"i"}:${tW(e)}`;if(vc.set(i,n),vc.size>200){const o=vc.keys().next().value;vc.delete(o)}}const S2e="WORKER_BUSY";function _2e(e=2e3,t){return $r.size{let o,s=!1,r=null,l=()=>{};const a=()=>{o&&globalThis.clearTimeout(o),xh.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{s||(s=!0,a(),n())},xh.add(l),o=globalThis.setTimeout(()=>{if(s)return;s=!0,a();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",i(u)},e),queueMicrotask(()=>h0()),t&&(r=()=>{if(s)return;s=!0,a();const u=new Error("Aborted");u.name="AbortError",i(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const rg={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Dkt(e){return f4(this,arguments,function*(t,n=!0,i={}){var o,s,r,l;if(!XH()){const g=new Error("KaTeX rendering disabled");throw g.name="KaTeXDisabled",g.code="KATEX_DISABLED",g}const a=(o=i.timeout)!=null?o:rg.timeout,u=(s=i.waitTimeout)!=null?s:rg.waitTimeout,c=(r=i.backoffMs)!=null?r:rg.backoffMs,d=(l=i.maxRetries)!=null?l:rg.maxRetries,f=Number.isFinite(d)?Math.max(0,Math.min(Math.floor(d),8)):rg.maxRetries,h=i.signal;let m=0;for(;;){if(h?.aborted){const g=new Error("Aborted");throw g.name="AbortError",g}try{return yield x2e(t,n,a,h)}catch(g){if(g?.code!==S2e||m>=f)throw g;if(m++,yield _2e(u,h).catch(()=>{}),h?.aborted){const v=new Error("Aborted");throw v.name="AbortError",v}c>0&&(yield new Promise(v=>globalThis.setTimeout(v,c*m)))}}})}function i1(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function M2e(e){var t;for(const n of e.split(/\r?\n/)){const i=n.trim();if(!i||i.startsWith("%%"))continue;const o=i.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function Ik(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),i=M2e(e);return i==="gantt"?220+28*n:i==="sequencediagram"?180+26*n:i==="classdiagram"||i==="statediagram"||i==="erdiagram"?180+24*n:i==="flowchart"||i==="graph"?170+28*n:200+22*n}function Tk(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function nW(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function Ek(e,t=360,n=500){return nW(e,t,n)}function Lk(e,t=360,n=500){return nW(e,t,n)}var I2e=Object.defineProperty,T2e=Object.defineProperties,E2e=Object.getOwnPropertyDescriptors,VL=Object.getOwnPropertySymbols,L2e=Object.prototype.hasOwnProperty,N2e=Object.prototype.propertyIsEnumerable,KL=(e,t,n)=>t in e?I2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iW=(e,t)=>{for(var n in t||(t={}))L2e.call(t,n)&&KL(e,n,t[n]);if(VL)for(var n of VL(t))N2e.call(t,n)&&KL(e,n,t[n]);return e},ZL=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const Nk=()=>Qo(()=>import("./mermaid.core-D8UeR6T-.js").then(e=>e.bp),__vite__mapDeps([2,3]));let ic=null,o1=Nk,Lg=null,qC=!1,UC=!1,Ng=0;function D2e(e){o1=e,Ng++,ic=null,Lg=null,qC=!1,UC=!1}function F2e(e){D2e(Nk)}function GL(){return typeof o1=="function"}function QL(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=iW({},t),i={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:s=>typeof t.initialize=="function"?t.initialize(s):o.initialize?o.initialize(s):void 0},T2e(n,E2e(i))}var n,i;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function YL(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const i=iW({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,i):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(i):void 0}}catch{}}function Fkt(){return ZL(this,null,function*(){if(ic)return ic;const e=(function(){try{const i=globalThis;return QL(i?.mermaid)}catch{return null}})();if(e)return ic=e,YL(ic),ic;const t=o1,n=Ng;return t?t===Nk&&qC?null:Lg||(Lg=ZL(null,null,function*(){let i;try{i=yield t()}catch(o){if(t===Nk)return n===Ng&&t===o1&&(qC=!0,(function(s){UC||(UC=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',s))})(o)),null;throw o}finally{n===Ng&&t===o1&&(Lg=null)}return n!==Ng||t!==o1?null:i?(ic=QL(i),YL(ic),ic):null}),Lg):null})}let pu=null,Uf=null;const Fa=new Map,Vf=new Map;function P8(e){for(const t of Fa.values())t.reject(e);Fa.clear(),Vf.clear()}let JL=5,XL=!1;const B2e="WORKER_BUSY",eN="MERMAID_DISABLED";function R2e(e){if(pu&&pu!==e){const n=new Error("Worker replaced");n.code="WORKER_REPLACED",P8(n)}pu=e,Uf=null;const t=e;pu.onmessage=n=>{if(pu!==t)return;const{id:i,ok:o,result:s,error:r}=n.data,l=Fa.get(i);l&&(o===!1||r?l.reject(new Error(r||"Unknown error")):l.resolve(s))},pu.onerror=n=>{var i,o;if(pu===t)if(Fa.size!==0){try{XL?console.error("[mermaidWorkerClient] Worker error:",n?.message||n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error:",n?.message||n)}catch{}P8(new Error(`Worker error: ${n.message}`))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker error (no pending):",n?.message||n)},pu.onmessageerror=n=>{var i,o;if(pu===t)if(Fa.size!==0){try{XL?console.error("[mermaidWorkerClient] Worker messageerror:",n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch{}P8(new Error("Worker messageerror"))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n)}}function oW(e,t,n,i){if(!GL()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=eN,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let s=Vf.get(o);return s||(s=(function(r,l,a=1400){if(!GL()){const c=new Error("Mermaid rendering disabled");return c.name="MermaidDisabled",c.code=eN,Promise.reject(c)}if(Uf)return Promise.reject(Uf);const u=pu||(Uf=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Uf.name="WorkerInitError",Uf.code="WORKER_INIT_ERROR",null);if(!u)return Promise.reject(Uf);if(Fa.size>=JL){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code=B2e,c.inFlight=Fa.size,c.max=JL,Promise.reject(c)}return new Promise((c,d)=>{const f=Math.random().toString(36).slice(2);let h,m=!1;const g=()=>{m||(m=!0,h!=null&&globalThis.clearTimeout(h),Fa.delete(f))},v={resolve:y=>{g(),c(y)},reject:y=>{g(),d(y)}};Fa.set(f,v);try{u.postMessage({id:f,action:r,payload:l})}catch(y){return Fa.delete(f),void d(y)}h=globalThis.setTimeout(()=>{const y=new Error("Worker call timed out");y.name="WorkerTimeout",y.code="WORKER_TIMEOUT";const b=Fa.get(f);b&&b.reject(y)},a)})})(e,t,n),Vf.set(o,s),s.then(()=>{Vf.get(o)===s&&Vf.delete(o)},()=>{Vf.get(o)===s&&Vf.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const a=new Error("Aborted");return a.name="AbortError",Promise.reject(a)}return new Promise((a,u)=>{let c=()=>{};const d=()=>l.removeEventListener("abort",c);c=()=>{d();const f=new Error("Aborted");f.name="AbortError",u(f)},l.addEventListener("abort",c,{once:!0}),r.then(f=>{d(),a(f)},f=>{d(),u(f)})})})(s,i)}function Bkt(e,t,n=1400,i){return oW("canParse",{code:e,theme:t},n,i)}function Rkt(e,t,n=1400,i){return oW("findPrefix",{code:e,theme:t},n,i)}var O2e=Object.defineProperty,$2e=Object.defineProperties,P2e=Object.getOwnPropertyDescriptors,tN=Object.getOwnPropertySymbols,z2e=Object.prototype.hasOwnProperty,j2e=Object.prototype.propertyIsEnumerable,nN=(e,t,n)=>t in e?O2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))z2e.call(t,n)&&nN(e,n,t[n]);if(tN)for(var n of tN(t))j2e.call(t,n)&&nN(e,n,t[n]);return e},$n=(e,t)=>$2e(e,P2e(t)),co=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const H2e="__global__",z8="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",VC=(()=>{const e=globalThis;if(e[z8])return e[z8];const t={scopedCustomComponents:{},revision:Ga(0)};return e[z8]=t,t})(),iN=VC.revision,W2e=Symbol("markstreamCustomComponents"),q2e=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function Vv(e){return q2e.has(String(e).trim().toLowerCase())}function U2e(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function j8(e={}){const t={};for(const[n,i]of Object.entries(e))if(i!=null){t[n]=i;for(const o of new Set([wa(n),wa(U2e(n))]))!o||Vv(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=i)}return t}function ys(e){const t=en(W2e,null);return D(()=>{var n;return iN.value,(function(i,o={}){return iN.value,$t($t($t({},j8(VC.scopedCustomComponents[H2e]||{})),j8(o)),j8((function(s){return s&&VC.scopedCustomComponents[s]||{}})(i)))})(e?.(),(n=t?.value)!=null?n:{})})}const V2e=["aria-label"],K2e={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},Z2e={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},Ni=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},zl=Ni(ut({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(k(),L("svg",Z2e,[...n[1]||(n[1]=[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),x("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(k(),L("svg",K2e,[...n[0]||(n[0]=[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,V2e))}),[["__scopeId","data-v-be21ab83"]]);zl.install=e=>{e.component(zl.__name,zl)};const G2e={class:"emoji-node"},vl=Ni(ut({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("span",G2e,B(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);vl.install=e=>{e.component(vl.__name,vl)};const Q2e=["id"],Y2e=["title"],jl=Ni(ut({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const i=document.querySelector(t);i?i.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(i,o)=>(k(),L("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[x("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+B(e.node.id)+"]",9,Y2e)],8,Q2e))}}),[["__scopeId","data-v-c1463a29"]]);jl.install=e=>{e.component(jl.__name,jl)};const sW=(()=>{try{return!1}catch{}return!1})();function H8(e){sW&&console.warn(e)}function oN(e,t="safe",n){return q7(e,t,n)}function rW(e){return Eve(e)}function W8(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function Z7(e,t="safe"){const n=String(e.tag||e.type||"").trim(),i=l9((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),W8(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),W8(r.value)]):Object.entries(o).map(([r,l])=>[r,W8(l)]):null,t,n);var o;if(!i)return;const s=rW(f0(i));return Object.keys(s).length>0?s:void 0}function sN(e,t,n=!1){const i=Object.entries(t??{}),o=i.length>0?i.map(([s,r])=>r===""?` ${s}`:` ${s}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function lg(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function q8(e,t,n,i,o,s,r=!1){const l=(function(d,f){return qH(d,f)})(e,i);if(jv.has(e.toLowerCase())||!l&&zH(e,s))return null;if(!l&&W7(e,s))return r?[sN(e,t,!0)]:[sN(e,t),...n,``];const a=q7(t,s,e),u=a.key,c=u!=null&&u!==""?u:o;if(l){const d=i[e]||i[e.toLowerCase()],f=rW(a);return Rn(d,$n($t({},f),{key:c}),n.length>0?n:void 0)}return Rn(e,$n($t({},a),{innerHTML:void 0,key:c}),n.length>0?n:void 0)}function lW(e,t){return Dve(e,t)}function Dk(e,t,n="safe"){if(!e)return[];try{return(function(s,r,l="safe"){let a=0;const u=[],c=[];for(const d of s)if(d.type==="text")(u.length>0?u[u.length-1].children:c).push(d.content);else if(d.type==="self_closing"){const f=q8(d.tagName,d.attrs||{},[],r,"ms-html-"+a++,l,!0);lg(u.length>0?u[u.length-1].children:c,f)}else if(d.type==="tag_open")u.push({tagName:d.tagName,children:[],attrs:d.attrs,autoKey:"ms-html-"+a++});else if(d.type==="tag_close"){const f=d.tagName.toLowerCase();let h=-1;for(let m=u.length-1;m>=0;m--)if(u[m].tagName.toLowerCase()===f){h=m;break}if(h!==-1)for(;u.length>h;){const m=u.pop(),g=q8(m.tagName,m.attrs||{},m.children,r,m.autoKey,l);u.length>0?lg(u[u.length-1].children,g):lg(c,g),m.tagName.toLowerCase()!==f&&u.length>h&&H8(`Auto-closing unclosed tag: <${m.tagName}>`)}else H8(`Ignoring closing tag with no matching opening tag: `)}for(;u.length>0;){const d=u.pop(),f=q8(d.tagName,d.attrs||{},d.children,r,d.autoKey,l);u.length>0?lg(u[u.length-1].children,f):lg(c,f),H8(`Auto-closing unclosed tag: <${d.tagName}>`)}return c})(UH(e),t,n)}catch(o){return i=o,sW&&console.error("Failed to parse HTML to VNodes:",i),null}var i}const J2e=["innerHTML"],Hl=Ni(ut({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=en("markstreamHtmlPolicy",void 0),i=D(()=>{var l,a;return(a=(l=t.htmlPolicy)!=null?l:n?.value)!=null?a:"safe"}),o=ys(()=>t.customId),s=ut({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=D(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(i.value==="escape")return{mode:"html",content:_1(l,i.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=Dk(l,o.value,i.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!lW(l,o.value))return{mode:"html",content:_1(l,i.value)};const a=Dk(l,o.value,i.value);return a===null?{mode:"html",content:_1(l,i.value)}:{mode:"dynamic",nodes:a}});return(l,a)=>r.value.mode==="dynamic"?(k(),L("span",{key:0,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[K(p(s),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(k(),L("span",{key:1,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},B(r.value.content),3)):(k(),L("span",{key:2,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,J2e))}}),[["__scopeId","data-v-d17f12b0"]]);Hl.install=e=>{e.component(Hl.__name,Hl)};const X2e={class:"inline-code"},eye={key:0},Cr=Ni(ut({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=fm(),i=en("markstreamFade",void 0),o=en("markstreamTextStreamState",void 0),s=en("markstreamStreamVersion",void 0),r=D(()=>{const b=n.fade;return b===""||b===!0||b==="true"||b!==!1&&b!=="false"&&void 0}),l=D(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=D(()=>{var b;return String((b=t.node.code)!=null?b:"")}),u=D(()=>!l.value),c=D(()=>{var b;const A=(b=n["index-key"])!=null?b:n.indexKey;return A==null||A===""?"":String(A)}),d=U(t.node.code),f=U(""),h=U(0);let m;function g(){m?.(),m=void 0}function v(){g(),f.value&&(d.value=d.value+f.value,f.value="")}Ue([()=>t.node.code,c,l],([b])=>{const A=String(b??""),w=c.value,M=GH({nextContent:A,persistedContent:w?o?.get(w):void 0,currentState:{settledContent:d.value,streamedDelta:f.value},typewriterEnabled:l.value});d.value=M.settledContent,f.value=M.streamedDelta,M.appended?(h.value+=1,(function(){if(!f.value||m||!s)return;const N=s.value;m=Ue(()=>s.value,T=>{T!==N&&v()},{flush:"sync"})})()):f.value||g(),w&&o?.set(w,A)},{immediate:!0}),Xd(g);const y=D(()=>h.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(b,A)=>(k(),L("code",X2e,[u.value?(k(),L(Re,{key:0},[He(B(a.value),1)],64)):(k(),L(Re,{key:1},[d.value?(k(),L("span",eye,B(d.value),1)):ne("",!0),f.value?(k(),L("span",{key:1,class:ze(["inline-code-stream-delta",[y.value]]),onAnimationend:v},B(f.value),35)):ne("",!0)],64))]))}}),[["__scopeId","data-v-4e331c97"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const KC=U(!1),rN=U(""),lN=U("top"),p0=U(null),m0=U(null),ZC=U(null),GC=U(null),aN=U(null);let u9=null,c9=null,QC=0;function aW(){u9&&(clearTimeout(u9),u9=null),c9&&(clearTimeout(c9),c9=null)}let ay=!1,uy=null,uN=!1;function tye(e,t,n="top",i=!1,o,s){if(!e)return;const r=++QC;aW();const l=()=>co(null,null,function*(){var a,u;if(yield(function(){return co(this,null,function*(){if(!ay&&!uN&&typeof document<"u"){uy!=null||(uy=co(null,null,function*(){const[{createApp:c,h:d},{default:f}]=yield Promise.all([Qo(()=>import("./vue.runtime.esm-bundler-CnYhMsa2.js"),[]),Qo(()=>import("./Tooltip-B76-fywy.js"),[])]),h=document.createElement("div");h.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(h),c({setup:()=>()=>{var m;return d(f,{visible:KC.value,"anchor-el":p0.value,content:rN.value,placement:lN.value,id:m0.value,originX:ZC.value,originY:GC.value,isDark:(m=aN.value)!=null?m:void 0})}}).mount(h),ay=!0}));try{yield uy}catch(c){ay=!1,uy=null,uN=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",c)}}})})(),ay&&r===QC){m0.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,p0.value=e,rN.value=t,lN.value=n,ZC.value=(a=o?.x)!=null?a:null,GC.value=(u=o?.y)!=null?u:null,aN.value=typeof s=="boolean"?s:null,KC.value=!0;try{e.setAttribute("aria-describedby",m0.value)}catch{}}});i?l():u9=setTimeout(l,80)}function nye(e=!1){QC+=1,aW();const t=()=>{if(p0.value&&m0.value)try{p0.value.removeAttribute("aria-describedby")}catch{}KC.value=!1,p0.value=null,m0.value=null,ZC.value=null,GC.value=null};e?t():c9=setTimeout(t,120)}const iye={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},oye=Symbol("markstreamI18nFallback");function uW(e,t){var n;return(n=t?.[e])!=null?n:iye[e]}const YC=(e,t)=>{var n;return(n=uW(e,t))!=null?n:(function(i){return(i.split(".").pop()||i).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function cN(e,t){return{t(n){const i=uW(n,t);if(e.te&&i!=null&&!e.te(n))return YC(n,t);const o=e.t(n);return o===n&&i!=null?YC(n,t):o}}}function sye(){const e=(function(){var n,i,o;try{const s=vs(),r=oye,l=s?.provides,a=(n=s?.appContext)==null?void 0:n.provides;return(o=(i=l?.[r])!=null?i:a?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,i;try{const o=vs(),s=o?.proxy,r=s?.$t;if(typeof r=="function"){const u=s?.$te;return{t:r.bind(s),te:typeof u=="function"?u.bind(s):void 0}}const l=(i=(n=o?.appContext)==null?void 0:n.config)==null?void 0:i.globalProperties,a=l?.$t;if(typeof a=="function"){const u=l?.$te;return{t:a.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return cN(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const i=n();if(i&&typeof i.t=="function")return cN({t:i.t.bind(i),te:typeof i.te=="function"?i.te.bind(i):void 0},e)}catch{}}catch{}return{t:n=>YC(n,e)}}const cW=Symbol("ViewportPriority"),dW=Symbol("ViewportPriorityOptions"),fW=Symbol("OffscreenHeavyNodeDeferral"),rye=D(()=>!1),$h="400px";function G7(){return en(dW,void 0)}function Q7(){return en(fW,rye)}function lye(e,t){var n,i;const o=typeof window<"u"&&typeof document<"u",s=typeof t=="boolean"?U(t):t,r=o?(n=window.requestIdleCallback)!=null?n:T=>window.setTimeout(()=>T({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(i=window.cancelIdleCallback)!=null?i:T=>window.clearTimeout(T):null,a=new WeakMap;let u=1;const c=new Map,d=new Map,f=new Set;let h=null,m=null;function g(T){if(!T)return"viewport";let C=a.get(T);return C||(C=u++,a.set(T,C)),String(C)}function v(){if(h!=null){try{l?.(h)}catch{}h=null}}function y(T){if(T){const C=c.get(T);if(C&&!C.targets.size){try{C.io.disconnect()}catch{}c.delete(T)}}d.size||f.size||v()}function b(T){const C=d.get(T);if(!C)return;const I=c.get(C.bucketKey);if(!C.visible.value){C.visible.value=!0;try{C.resolve()}catch{}}try{I?.io.unobserve(T)}catch{}I?.targets.delete(T),d.delete(T),f.delete(T),y(C.bucketKey)}function A(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&h==null&&f.size&&(h=r(()=>{h=null;const T=f.values().next().value;T&&(f.delete(T),b(T),f.size&&A())},{timeout:1200}))}function w(T,C){if(!o||typeof IntersectionObserver>"u")return null;const I=(function(P,O){var R,z,H;return{root:(R=e?.(P??null))!=null?R:null,rootMargin:(z=O?.rootMargin)!=null?z:$h,threshold:(H=O?.threshold)!=null?H:0}})(T,C),S=[g((E=I).root),E.rootMargin,E.threshold].join("\0");var E;const _=c.get(S);if(_)return{key:S,bucket:_};let F;try{F=new IntersectionObserver(P=>{for(const O of P)(O.isIntersecting||O.intersectionRatio>0)&&b(O.target)},{root:I.root,rootMargin:I.rootMargin,threshold:I.threshold})}catch{return null}const q={io:F,targets:new Map};return c.set(S,q),{key:S,bucket:q}}function M(){if(o&&s.value)for(const[T,C]of Array.from(d.entries())){const I=w(T,C.opts);if(!I){b(T);continue}if(I.key===C.bucketKey)continue;const S=C.bucketKey,E=c.get(S);try{E?.io.unobserve(T)}catch{}E?.targets.delete(T),C.bucketKey=I.key,I.bucket.targets.set(T,C),I.bucket.io.observe(T),y(S)}}Ue(s,T=>{if(!T){for(const C of Array.from(d.keys()))b(C);v()}},{flush:"sync"});const N=(T,C)=>{const I=U(!1);let S,E=!1;const _=new Promise(O=>{S=()=>{E||(E=!0,O())}}),F=()=>{const O=d.get(T);if(!O)return f.delete(T),void y();const R=c.get(O.bucketKey);try{R?.io.unobserve(T)}catch{}R?.targets.delete(T),d.delete(T),f.delete(T),y(O.bucketKey)};if(!o||!s.value)return I.value=!0,S(),{isVisible:I,whenVisible:_,destroy:F};const q=w(T,C);if(!q)return I.value=!0,S(),{isVisible:I,whenVisible:_,destroy:F};const P={resolve:S,visible:I,bucketKey:q.key,opts:C};return d.set(T,P),q.bucket.targets.set(T,P),q.bucket.io.observe(T),o&&m==null&&(m=window.requestAnimationFrame(()=>{m=null,M()})),C?.allowIdle!==!1&&(f.add(T),A()),{isVisible:I,whenVisible:_,destroy:F}};return N.refresh=M,si(cW,N),N}function Y7(){var e,t;const n=en(cW,void 0);if(n)return n;const i=new WeakMap,o=new Map,s=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:h=>window.setTimeout(()=>h({didTimeout:!0,timeRemaining:()=>0}),16):null,a=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:h=>window.clearTimeout(h):null,u=()=>{if(r!=null){try{a?.(r)}catch{}r=null}},c=h=>{if(!h)return;const m=o.get(h);if(m&&!m.targets.size){try{m.io.disconnect()}catch{}o.delete(h)}},d=h=>{const m=i.get(h);if(!m)return;const g=o.get(m.bucketKey);if(!m.visible.value){m.visible.value=!0;try{m.resolve()}catch{}}try{g?.io.unobserve(h)}catch{}i.delete(h),g?.targets.delete(h),s.delete(h),c(m.bucketKey),s.size||u()},f=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&s.size&&(r=l(()=>{r=null;const h=s.values().next().value;h&&(s.delete(h),d(h),s.size&&f())},{timeout:1200}))};return(h,m)=>{const g=U(!1);let v,y=!1;const b=new Promise(M=>{v=()=>{y||(y=!0,M())}}),A=()=>{const M=i.get(h);if(!M)return s.delete(h),void(s.size||u());const N=o.get(M.bucketKey);try{N?.io.unobserve(h)}catch{}i.delete(h),N?.targets.delete(h),s.delete(h),c(M.bucketKey),s.size||u()},w=(M=>{var N,T;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const C=(F=>{var q,P;return[(q=F?.rootMargin)!=null?q:$h,(P=F?.threshold)!=null?P:0].join("\0")})(M),I=o.get(C);if(I)return{key:C,bucket:I};const S=(N=M?.rootMargin)!=null?N:$h;let E;try{E=new IntersectionObserver(F=>{for(const q of F)(q.isIntersecting||q.intersectionRatio>0)&&d(q.target)},{root:null,rootMargin:S,threshold:(T=M?.threshold)!=null?T:0})}catch{return null}const _={io:E,targets:new Set};return o.set(C,_),{key:C,bucket:_}})(m);return w?(i.set(h,{resolve:v,visible:g,bucketKey:w.key}),w.bucket.targets.add(h),w.bucket.io.observe(h),m?.allowIdle!==!1&&(s.add(h),f()),{isVisible:g,whenVisible:b,destroy:A}):(g.value=!0,v(),{isVisible:g,whenVisible:b,destroy:A})}}function aye(e,t){var n,i;const o=(i=(n=e.indexKey)!=null?n:t["index-key"])!=null?i:t.indexKey;return o==null||o===""?"":String(o)}const uye=["data-markstream-viewport-pending"],cye=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],dye={key:1,class:"image-placeholder"},fye={key:1,class:"image-node__raw-text"},hye={key:2,class:"image-shimmer-overlay"},pye={key:1,class:"image-node__raw-text"},mye={key:3,class:"image-error"},Id=Ni(ut({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,i,o;const s=e,r=t,l=U(!1),a=U(!1),u=U(""),c=U("primary"),d=U(null),f=fm(),h=en(HC,null),m=Y7(),g=G7(),v=Q7(),y=D(()=>NE(s.node.src)),b=D(()=>NE(s.fallbackSrc)),A=(o=(i=(n=vs())==null?void 0:n.vnode.el)==null?void 0:i.querySelector)==null?void 0:o.call(i,"img"),w=typeof window<"u"&&A?.getAttribute("src")===(y.value||b.value),M=U(typeof window>"u"||w||!v.value),N=Ga(null);let T="",C=null;const I=D(()=>u.value),S=D(()=>!s.lazy),E=D(()=>typeof window<"u"&&v.value&&!w),_=D(()=>!E.value||M.value),F=D(()=>_.value?I.value:""),q=D(()=>{var Te,Fe;return(Fe=(Te=g?.value.heavyBlockMargin)!=null?Te:g?.value.rootMargin)!=null?Fe:$h}),P=D(()=>!s.node.loading&&c.value!=="failed"&&u.value.length>0),O=D(()=>c.value==="failed"),R=D(()=>(!S.value||E.value&&!M.value)&&!l.value&&!a.value&&c.value!=="failed"&&u.value.length>0),z=D(()=>aye(s,f));function H(Te=z.value){Te&&d.value&&h?.reportHeight(Te,d.value.offsetHeight)}function j(Te=z.value){Te&>(()=>{H(Te)})}function Q(){C&&(clearTimeout(C),C=null)}function ae(){const Te=z.value;Te&&T!==Te&&(T&&h?.markSettled(T),Q(),T=Te,h?.markPending(Te),typeof window<"u"&&(C=window.setTimeout(()=>{T===Te&&(j(Te),W())},8e3)))}function W(){return co(this,null,function*(){const Te=T;Te&&(Q(),T="",yield gt(),H(Te),h?.markSettled(Te))})}function G(){if(c.value==="primary"&&b.value&&b.value!==u.value)return c.value="fallback",u.value=b.value,l.value=!1,a.value=!1,void j();c.value="failed",a.value=!0,r("error",u.value),j()}function oe(){l.value=!0,a.value=!1,r("load",I.value),j()}function te(Te){Te.preventDefault(),l.value&&!a.value&&r("click",[Te,I.value])}const{t:ve}=sye();return Ue([y,b,()=>s.node.loading],()=>(l.value=!1,a.value=!1,s.node.loading||y.value?(u.value=y.value,void(c.value="primary")):b.value?(u.value=b.value,void(c.value="fallback")):(u.value="",c.value="failed",void(a.value=!0))),{immediate:!0}),typeof window<"u"&&Ue([d,E],([Te,Fe],ye,Y)=>{var se;if((se=N.value)==null||se.destroy(),N.value=null,!Fe||M.value)return void(M.value=!0);if(!Te)return void(M.value=!1);let V=!0;const le=m(Te,{rootMargin:q.value,allowIdle:!1});N.value=le,M.value=le.isVisible.value,le.whenVisible.then(()=>{V&&N.value===le&&(M.value=!0)}),Y(()=>{V=!1,le.destroy(),N.value===le&&(N.value=null)})},{immediate:!0}),Ue([P,l,a,I,()=>s.lazy,_],([Te,Fe,ye,Y,se,V])=>Te&&Y&&!ye&&V?Fe?(W(),void j()):se?(ae(),void j()):void(Fe||ye||ae()):(W(),void j()),{flush:"post",immediate:!0}),ii(()=>{var Te;(Te=N.value)==null||Te.destroy(),N.value=null,(function(){const Fe=T;Fe&&(Q(),T="",h?.markSettled(Fe))})()}),(Te,Fe)=>{var ye,Y,se,V,le;return k(),L("span",{ref_key:"rootRef",ref:d,class:"image-node-container","data-markstream-viewport-pending":E.value&&!M.value?"true":void 0},[P.value?(k(),L("img",{key:0,src:F.value||void 0,alt:String((Y=(ye=s.node.alt)!=null?ye:s.node.title)!=null?Y:""),title:String((V=(se=s.node.title)!=null?se:s.node.alt)!=null?V:""),class:ze(["image-node__img",{"is-loading":!S.value&&!l.value,"is-loaded":S.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:s.lazy?"lazy":void 0,fetchpriority:S.value?"high":void 0,decoding:S.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(le=s.node.alt)!=null?le:p(ve)("image.preview"),onError:G,onLoad:oe,onClick:te},null,42,cye)):ne("",!0),e.node.loading&&!a.value?(k(),L("span",dye,[s.usePlaceholder?Qn(Te.$slots,"placeholder",{key:0,node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[0]||(Fe[0]=x("span",{class:"image-shimmer"},null,-1))],!0):(k(),L("span",fye,B(e.node.raw),1))])):ne("",!0),R.value&&!e.node.loading?(k(),L("span",hye,[s.usePlaceholder?Qn(Te.$slots,"placeholder",{key:0,node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[1]||(Fe[1]=x("span",{class:"image-shimmer"},null,-1))],!0):(k(),L("span",pye,B(e.node.raw),1))])):ne("",!0),O.value?(k(),L("span",mye,[Qn(Te.$slots,"error",{node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[2]||(Fe[2]=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),x("span",null,B(p(ve)("image.loadError")),1)],!0)])):ne("",!0)],8,uye)}}}),[["__scopeId","data-v-046e82ac"]]);Id.install=e=>{e.component(Id.__name,Id)};const gye={key:2},qu=ut({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamHtmlPolicy",void 0),o=en("markstreamNestedRendererProps",void 0),s=D(()=>{var m;return(m=i?.value)!=null?m:"safe"}),r=D(()=>{var m,g;const v=(m=o?.value)!=null?m:{};return $n($t({},v),{customId:(g=t.customId)!=null?g:v.customId,htmlPolicy:s.value})}),l=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1}),a=D(()=>t.components[String(t.node.type)]),u=D(()=>!!(a.value&&n.value[t.node.type]&&!Vv(String(t.node.type)))),c=D(()=>u.value?Z7(t.node,s.value):void 0),d=D(()=>Array.isArray(t.node.children)&&t.node.children.length>0),f=D(()=>{var m;return String((m=t.node.content)!=null?m:"")}),h=D(()=>{var m,g;return String((g=(m=t.node.content)!=null?m:t.node.raw)!=null?g:"")});return(m,g)=>a.value&&u.value?(k(),de(Po(a.value),ci({key:0},c.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:ce(()=>[d.value?(k(),de(p(l),ci({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):f.value?(k(),de(p(l),ci({key:1},r.value,{content:f.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):a.value?(k(),de(Po(a.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(k(),L("span",gye,B(h.value),1)):ne("",!0)}}),dN=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function vye(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return $n($t($t({},dN),n),{enabled:(t=n.enabled)==null||t})}return $t({},dN)}function J7(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,i=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=i}function hW(e){var t,n;const i=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(i.length<3)return"";const o=i[0];if(o!=="`"&&o!=="~"||i[1]!==o||i[2]!==o)return"";let s=3;for(;i[s]===o;)s+=1;return i.slice(s).trim()}function fN(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function yye(e){var t;return e.diff===!0||fN(e.language)||fN(hW(String((t=e.raw)!=null?t:"")))}function kye(e,t,n){const i=(function(o){const s=hW(o);if(!s)return"";const r=s.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const a of l){const u=a.includes(":")?a.slice(a.indexOf(":")+1):a;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:i||t,caption:i?n?`Diff / ${t}`:t:""}}const bye=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],wye={key:0,translate:"no",class:"markstream-pre__diff-code"},Cye={class:"markstream-pre__diff-pane-content"},Aye={class:"markstream-pre__diff-number","aria-hidden":"true"},xye={class:"markstream-pre__diff-content"},Sye={class:"markstream-pre__diff-content-inner"},_ye={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},Mye=["textContent"],Iye=["textContent"],cl=ut({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(te,ve){const Te=String(te??"");return ve?Te:Te.replace(/\r\n$|\n$|\r$/,"")}const i=D(()=>{var te,ve,Te;const Fe=String((ve=(te=t.node)==null?void 0:te.language)!=null?ve:"");return String((Te=String(Fe).split(/\s+/g)[0])!=null?Te:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=D(()=>`language-${i.value}`),s=D(()=>{var te;return t.loading===!0||((te=t.node)==null?void 0:te.loading)===!0}),r=D(()=>{var te;return n((te=t.node)==null?void 0:te.code,s.value)});let l="",a=1;const u=D(()=>(function(te){let ve=0,Te=1;te.startsWith(l)&&(ve=l.length,Te=a,ve>0&&te[ve-1]==="\r"&&te[ve]===` +`&&ve++);for(let Fe=ve;Fer.value.split(/\r\n|\n|\r/));let d=0,f="";const h=D(()=>{const te=u.value;te{var te;return t.showLineNumbers===!0&&((te=t.node)==null?void 0:te.diff)===!0}),g=D(()=>m.value&&t.diffInline===!0),v=D(()=>{const te=Number(t.reservedHeightPx);if(!Number.isFinite(te)||te<=0)return;const ve=`${Math.ceil(te)}px`;return s.value?{maxHeight:ve,overflow:"auto"}:{height:ve,minHeight:ve,maxHeight:ve,overflow:"auto"}}),y=["diff ","index ","--- ","+++ ","@@ "];function b(te){return String(te??"").trim().length===0}function A(te,ve="context",Te={}){const Fe=b(te);return{code:te,kind:Fe&&ve!=="hunk"&&ve!=="spacer"&&!Te.preserveBlankKind?"context":ve,empty:Fe}}function w(te){const ve=n(te,s.value);return ve?ve.split(/\r\n|\n|\r/):[]}function M(te,ve){return!b(te[ve])||vey.some(Te=>ve.startsWith(Te)))}function I(te,ve){return ve||!te.startsWith(" ")||te.startsWith(" ")?te:` ${te}`}function S(te,ve){const Te=te.length,Fe=ve.length,ye=[];let Y=0;for(;Y=Y&&le>=Y&&te[V]===ve[le];)se.unshift({originalIndex:V,modifiedIndex:le}),V--,le--;const Se=V-Y+1,be=le-Y+1;if(Se<=0||be<=0||s.value||(Se+1)*(be+1)>15e5)return ye.concat(se);const he=be+1,re=new Uint32Array((Se+1)*(be+1));for(let Ce=Se-1;Ce>=0;Ce--)for(let De=be-1;De>=0;De--){const ie=Ce*he+De;if(te[Y+Ce]===ve[Y+De])re[ie]=re[(Ce+1)*he+De+1]+1;else{const me=re[(Ce+1)*he+De],je=re[Ce*he+De+1];re[ie]=me>=je?me:je}}const J=[];let fe=0,ke=0;for(;fe=re[fe*he+ke+1]?fe++:ke++;return ye.concat(J,se)}function E(te){var ve;const Te=(function(){var le,Se;const be=t.diffHideUnchangedRegions;if(be==null||be===!1)return null;const he=be===!0?{}:be;return he.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((le=he.contextLineCount)!=null?le:2)),minimumLineCount:Math.max(1,Math.floor((Se=he.minimumLineCount)!=null?Se:4))}})();if(!Te||te.length<1||te.length>2||te.length===2&&te[0].lines.length!==te[1].lines.length)return te;const Fe=te[0].lines,ye=(ve=te[1])==null?void 0:ve.lines,Y=le=>Fe[le].kind==="context"&&(ye===void 0||ye[le].kind==="context"&&Fe[le].code===ye[le].code),se=[];let V=0;for(;V=Te.minimumLineCount){const be=le+(le===0?0:Te.contextLineCount),he=Se-(Se===Fe.length?0:Te.contextLineCount);he-be>=Te.minimumLineCount&&se.push({start:be,end:he})}V===le&&V++}return se.length?te.map((le,Se)=>{const be=[];let he=0;for(const re of se)be.push(...le.lines.slice(he,re.start)),be.push({code:Se===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${le.key}-collapsed-${re.start}-${re.end}`,number:""}),he=re.end;return be.push(...le.lines.slice(he)),$n($t({},le),{lines:be})}):te}const _=D(()=>{var te,ve,Te,Fe;if(!m.value)return[];const ye=(function(Se){const be=Se.some(re=>N(re)),he=Se.some(re=>T(re));return be&&he||(function(){var re,J,fe,ke;if(i.value==="diff")return!0;const Ce=(ke=(fe=String((J=(re=t.node)==null?void 0:re.raw)!=null?J:"").split(/\r?\n/,1)[0])==null?void 0:fe.trim())!=null?ke:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(Ce)})()&&(be||he)})(c.value),Y=(function(){var Se,be;return((Se=t.node)==null?void 0:Se.originalCode)!=null||((be=t.node)==null?void 0:be.updatedCode)!=null})();if(g.value){const Se=Y?(function(be,he){const re=w(be),J=w(he),fe=S(re,J);if(fe.length>0){const je=[];let Ze=0,lt=0;for(const ft of fe){for(;Ze=Ce&&ie>=Ce&&re[De]===J[ie];)me.unshift($n($t({},A(J[ie])),{key:`inline-suffix-${ie}`,number:ie+1})),De--,ie--;for(let je=Ce;je<=De;je++)ke.push($n($t({},A(re[je],"removed",{preserveBlankKind:M(re,je)})),{key:`inline-removed-source-${je}`,number:je+1}));for(let je=Ce;je<=ie;je++)ke.push($n($t({},A(J[je],"added",{preserveBlankKind:M(J,je)})),{key:`inline-added-source-${je}`,number:je+1}));return ke.concat(me)})((te=t.node)==null?void 0:te.originalCode,(ve=t.node)==null?void 0:ve.updatedCode):(function(be){const he=[];let re=1,J=1;const fe=C(be);for(const[ke,Ce]of be.entries())if(Ce.startsWith("@@")){const De=Ce.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);De&&(re=Number(De[1]),J=Number(De[2])),he.push($n($t({},A(Ce,"hunk")),{key:`inline-hunk-${ke}`,number:""}))}else if(N(Ce))he.push($n($t({},A(I(Ce.slice(1),fe),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${ke}`,number:re++}));else if(T(Ce))he.push($n($t({},A(I(Ce.slice(1),fe),"added",{preserveBlankKind:!0})),{key:`inline-added-${ke}`,number:J++}));else{const De=fe&&Ce.startsWith(" ")?Ce.slice(1):Ce;he.push($n($t({},A(De)),{key:`inline-context-${ke}`,number:J})),re++,J++}return he})(c.value);return E([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:Se}])}if(!ye&&Y)return(function(Se,be){const he=w(Se),re=w(be),J=S(he,re),fe=[],ke=[];let Ce=0,De=0,ie=0;const me=(je,Ze)=>{const lt=Math.max(je-Ce,Ze-De);for(let ft=0;ft$n($t({},Se),{key:`original-${be}`,number:be+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:V.map((Se,be)=>$n($t({},Se),{key:`modified-${be}`,number:be+1}))}])}),F=D(()=>{var te,ve;if(t.showLineNumbers!==!0)return;let Te=m.value?1:u.value;if(m.value){Te=Math.max(Te,w((te=t.node)==null?void 0:te.originalCode).length,w((ve=t.node)==null?void 0:ve.updatedCode).length);for(const ye of _.value)for(const Y of ye.lines)typeof Y.number=="number"&&(Te=Math.max(Te,Y.number))}const Fe=`${Math.max(2,String(Te).length)}ch`;return{"--markstream-pre-line-number-width":Fe,"--markstream-pre-diff-line-number-width":Fe,"--markstream-code-padding-left":"calc(var(--markstream-pre-line-number-padding-left, 2ch) + var(--markstream-pre-line-number-width, 2ch) + var(--markstream-pre-line-number-padding-right, 1ch) + var(--markstream-pre-line-number-separator-width, 2px) + var(--markstream-pre-line-number-gap-to-code, 1ch))"}}),q=D(()=>_.value.some(te=>te.lines.some(ve=>ve.kind==="collapsed"))),P=D(()=>{const te=i.value;return te?`Code block: ${te}`:"Code block"}),O=U(null),R=U([]);let z=null,H=!1,j=null;function Q(te){const ve=Number.parseFloat(String(te??""));return Number.isFinite(ve)&&ve>0?ve:0}function ae(te,ve){var Te;if(!te)return ve;if(te.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const Fe=te.querySelector(".markstream-pre__diff-content"),ye=Fe?.getBoundingClientRect(),Y=(Te=ye?.height)!=null?Te:0;return Math.max(ve,Math.ceil(Y))}function W(){H||typeof window>"u"||(z!=null&&window.cancelAnimationFrame(z),z=window.requestAnimationFrame(()=>{z=null,H||(function(){var te,ve;z=null;const Te=O.value;if(!Te||!m.value||g.value||!Te.classList.contains("is-wrap"))return void(R.value.length&&(R.value=[]));const Fe=(function(be){const he=window.getComputedStyle(be),re=Q(he.getPropertyValue("--markstream-pre-diff-line-height"));if(re>0)return re;const J=Q(he.lineHeight);return J>0?J:18})(Te),ye=Array.from(Te.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),Y=Array.from(Te.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),se=Math.max(ye.length,Y.length),V=[];for(let be=0;be{const re=Se[he];return re&&Math.abs(be.rowHeight-re.rowHeight)<=.5&&Math.abs(be.originalHeight-re.originalHeight)<=.5&&Math.abs(be.modifiedHeight-re.modifiedHeight)<=.5})||(R.value=V)})()}))}function G(te){j?.disconnect(),j=null,te&&m.value&&!g.value&&typeof ResizeObserver<"u"&&(j=new ResizeObserver(()=>{W()}),j.observe(te))}function oe(te,ve){const Te=R.value[te];if(!Te)return;const Fe=ve==="original"?Te.originalHeight:Te.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(Te.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(Fe)}px`}}return Ue(O,te=>{G(te),gt(()=>W())},{flush:"post"}),Ue([m,g,_],()=>{G(O.value),gt(()=>W())},{flush:"post",immediate:!0}),ii(()=>{H=!0,z!=null&&(window.cancelAnimationFrame(z),z=null),j?.disconnect(),j=null}),(te,ve)=>(k(),L("pre",{ref_key:"preRef",ref:O,style:on([v.value,F.value]),class:ze([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":m.value,"markstream-pre--diff-inline":g.value,"markstream-pre--diff-collapsed":q.value}]),"aria-busy":s.value,"aria-label":P.value,"data-language":i.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[m.value?(k(),L("code",wye,[(k(!0),L(Re,null,xt(_.value,Te=>(k(),L("span",{key:Te.key,class:ze(["markstream-pre__diff-pane",Te.className])},[x("span",Cye,[(k(!0),L(Re,null,xt(Te.lines,(Fe,ye)=>(k(),L("span",{key:Fe.key,class:ze(["markstream-pre__diff-line",[`markstream-pre__diff-line--${Fe.kind}`,{"markstream-pre__diff-line--empty":Fe.empty}]]),style:on(oe(ye,Te.key))},[ve[0]||(ve[0]=x("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),x("span",Aye,B(Fe.number),1),x("span",xye,[x("span",Sye,B(Fe.code),1)])],6))),128))])],2))),128))])):(k(),L(Re,{key:1},[t.showLineNumbers?(k(),L("span",_ye,[x("span",{class:"markstream-pre__line-numbers-text",textContent:B(h.value)},null,8,Mye)])):ne("",!0),x("code",{translate:"no",class:"markstream-pre__code",textContent:B(r.value)},null,8,Iye)],64))],14,bye))}});cl.install=e=>{e.component(cl.__name,cl)};const Wo=Ni(ut({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=fm(),i=en("markstreamFade",void 0),o=en("markstreamTextStreamState",void 0),s=en("markstreamStreamVersion",void 0),r=D(()=>{const M=n.fade;return M===""||M===!0||M==="true"||M!==!1&&M!=="false"&&void 0}),l=D(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=D(()=>{var M;const N=(M=n["index-key"])!=null?M:n.indexKey;return N==null||N===""?"":String(N)}),u=U(t.node.content),c=U(""),d=U(0),f=U(t.node.content);let h;const m=U(null),g=U(null);let v="",y=null;function b(){h?.(),h=void 0}function A(){b(),c.value&&(u.value=u.value+c.value,c.value="")}Ue([u,m,g],function(){var M,N;const T=m.value;if(!T)return;const C=String((M=u.value)!=null?M:""),I=g.value;return y||(y=T.firstChild,v=(N=y?.data)!=null?N:""),C.startsWith(v)?!y&&C?(T.textContent=C,y=T.firstChild,void(v=C)):void(C.length>v.length&&I&&(I.appendChild(document.createTextNode(C.slice(v.length))),v=C)):(T.textContent=C,y=T.firstChild,I&&(I.textContent=""),void(v=C))},{immediate:!0}),Ue([()=>t.node.content,a,l],([M])=>{const N=String(M??""),T=a.value,C=GH({nextContent:N,persistedContent:T?o?.get(T):void 0,currentState:{settledContent:u.value,streamedDelta:c.value},typewriterEnabled:l.value});u.value=C.settledContent,c.value=C.streamedDelta,C.appended?(d.value+=1,(function(){if(!c.value||h||!s)return;const I=s.value;h=Ue(()=>s.value,S=>{S!==I&&A()},{flush:"sync"})})()):c.value||b(),T&&o?.set(T,N)},{immediate:!0}),Xd(b);const w=D(()=>d.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(M,N)=>(k(),L("span",{class:ze([[e.node.center?"text-node-center":""],"text-node"])},[di(x("span",{ref_key:"settledTextEl",ref:m},B(f.value),513),[[Zo,u.value!==""]]),di(x("span",{ref_key:"settledAppendsEl",ref:g},null,512),[[Zo,u.value!==""]]),c.value?(k(),L("span",{key:0,class:ze(["text-node-stream-delta",[w.value]]),onAnimationend:A},B(c.value),35)):ne("",!0)],2))}}),[["__scopeId","data-v-fd79037c"]]);function Dg(e,t,n){return ut({name:e,inheritAttrs:!1,setup(i,{attrs:o,slots:s}){var r,l;const a=Y7(),u=G7(),c=Q7(),d=typeof window<"u"&&((l=(r=vs())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,f=U(typeof window>"u"||d||!c.value),h=Ga(null);let m=null;function g(v){const y=v&&"$el"in v?v.$el:v;h.value=y instanceof HTMLElement?y:null}return typeof window<"u"&&Ue([h,c],([v,y],b,A)=>{if(m?.destroy(),m=null,!y||f.value)return void(f.value=!0);if(!v)return;let w=!0;const M=a(v,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});m=M,f.value=M.isVisible.value,M.whenVisible.then(()=>{w&&m===M&&(f.value=!0)}),A(()=>{w=!1,M.destroy(),m===M&&(m=null)})},{immediate:!0}),ii(()=>{m?.destroy(),m=null}),()=>Rn(f.value?t:n,$n($t({},o),{ref:g}),s)}})}Wo.install=e=>{e.component(Wo.__name,Wo)};const Fk=ut({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var i,o,s,r,l,a,u;const c=d4(String((o=(i=n.node)==null?void 0:i.language)!=null?o:"")),d=UL[c]||(c?c.charAt(0).toUpperCase()+c.slice(1):UL[""]),f=yye(n.node),h=kye(String((r=(s=n.node)==null?void 0:s.raw)!=null?r:""),d,f),m=n.monacoOptions,g=f&&((l=n.estimatedDiffInline)!=null?l:J7(m??{},typeof window>"u"?0:window.innerWidth)),v=m?.diffAppearance,y=v==="dark"||v!=="light"&&n.isDark===!0,b=typeof m?.fontSize=="number"&&Number.isFinite(m.fontSize)&&m.fontSize>0?m.fontSize:12,A=typeof m?.lineHeight=="number"&&Number.isFinite(m.lineHeight)&&m.lineHeight>0?m.lineHeight:b===12?18:Math.max(12,Math.round(1.5*b)),w=typeof m?.tabSize=="number"&&Number.isFinite(m.tabSize)&&m.tabSize>0?m.tabSize:4,M=f?0:8,N=typeof((a=m?.padding)==null?void 0:a.top)=="number"&&Number.isFinite(m.padding.top)&&m.padding.top>=0?m.padding.top:M,T=typeof((u=m?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(m.padding.bottom)&&m.padding.bottom>=0?m.padding.bottom:M,C=typeof m?.fontFamily=="string"?m.fontFamily.trim():"",I=$t($t({fontSize:`${b}px`,lineHeight:`${A}px`,tabSize:w,paddingTop:`${N}px`,paddingBottom:`${T}px`,"--markstream-pre-line-number-top":`${N}px`},f?{"--markstream-pre-diff-line-height":`${A}px`}:{}),C?{"--markstream-code-font-family":C}:{}),S=()=>Rn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[Rn("svg",{class:"action-icon",width:"14",height:"14"})]),E=n.isShowPreview!==!1&&(c==="html"||c==="svg"),_=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||E&&n.showPreviewButton!==!1,F=P=>{if(P!=null)return typeof P=="number"?`${P}px`:String(P)},q=$t($t($t({"--markstream-code-layout-character-width":"1ch"},F(n.minWidth)?{minWidth:F(n.minWidth)}:{}),F(n.maxWidth)?{maxWidth:F(n.maxWidth)}:{}),f?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--markstream-code-fallback-bg, var(--code-bg, #fff))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return Rn("div",$n($t({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":y,"is-diff":f,"is-plain-text":c===""||c==="plaintext"||c==="text"},t.class],style:[q,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:Rn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[Rn("div",{class:"code-header-main",style:{minWidth:0,flex:"1 1 auto",display:"flex",alignItems:"center",gap:"var(--ms-gap-header-main, 0.625rem)",overflow:"hidden"}},[Rn("span",{class:"icon-slot h-4 w-4 flex-shrink-0","aria-hidden":"true",style:{display:"inline-flex",width:"1rem",height:"1rem",flex:"0 0 auto"}}),Rn("div",{class:"code-header-copy",style:{minWidth:0,display:"grid",gap:"2px"}},[Rn("div",{class:"code-header-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--ms-text-label, 0.75rem)",fontWeight:"500",color:"var(--code-action-fg)"}},h.title),h.caption?Rn("div",{class:"code-header-caption",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.75rem",color:"var(--code-line-number)"}},h.caption):null])]),Rn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[f?Rn("div",{class:"code-diff-stats","aria-hidden":"true"},[Rn("span",{class:"code-diff-stat removed"},"-0"),Rn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:S(),n.showCollapseButton===!1?null:S(),_?Rn("div",{class:"relative"},[S()]):null])]),Rn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[Rn(cl,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:f?void 0:n.estimatedContentHeightPx,diffInline:g,diffHideUnchangedRegions:f?vye(m?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:I,"data-markstream-code-loading":"1"})]),Rn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[Rn("div",{class:"loading-skeleton"},[Rn("div",{class:"skeleton-line"}),Rn("div",{class:"skeleton-line"}),Rn("div",{class:"skeleton-line short"})])]),Rn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),U8=Dg("ViewportDeferredCodeBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./CodeBlockNode-CAOmb2VU.js"),__vite__mapDeps([4,5]))).default}catch(e){return console.warn('[markstream-vue] Failed to load the enhanced CodeBlockNode chunk; falling back to preformatted code rendering. Enhanced code blocks require the optional "stream-diffs" peer (or "stream-monaco" as a fallback).',e),cl}}),loadingComponent:Fk,delay:0,suspensible:!1}),Fk),Qa=_u(()=>co(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,i,o,s;return Rn(Wo,$n($t({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield eW(),(yield Qo(()=>import("./index7-Dsz_tCKU.js"),[])).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,i,o,s;return Rn(Wo,$n($t({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))}})),pW=_u(()=>co(null,null,function*(){try{return yield eW(),(yield Qo(()=>import("./index6-Cg8sgn_Z.js"),[])).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,i,o;return Rn(Wo,$n($t({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(i=e.node.content)!=null?i:""}$$`}}))}})),Wr=Ni(ut({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(k(),L("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=i=>t.$emit("click",i,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=i=>t.$emit("mouseEnter",i,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=i=>t.$emit("mouseLeave",i,e.node.id,e.messageId,e.threadId))},B(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Wr.install=e=>{e.component(Wr.__name,Wr)};const Tye={class:"superscript-node"},yl=Ni(ut({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,footnote_reference:jl,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,emoji:vl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("sup",Tye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"superscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);yl.install=e=>{e.component(yl.__name,yl)};const Eye={class:"subscript-node"},kl=Ni(ut({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,footnote_reference:jl,strikethrough:Ur,highlight:Wl,insert:bl,superscript:yl,emoji:vl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("sub",Eye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"subscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);kl.install=e=>{e.component(kl.__name,kl)};const Lye={class:"strong-node"},qr=Ni(ut({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("strong",Lye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"strong"}-${l}`,components:i.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);qr.install=e=>{e.component(qr.__name,qr)};const Nye={class:"strikethrough-node"},Ur=Ni(ut({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("del",Nye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"strikethrough"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);Ur.install=e=>{e.component(Ur.__name,Ur)};const Dye=["href","title","aria-label","aria-hidden","target","rel"],Fye=["aria-hidden"],Bye={class:"link-text-wrapper relative inline-flex"},Rye={class:"leading-[normal] link-text"},Vr=Ni(ut({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=en("markstreamShowTooltips",void 0),i=D(()=>{const y=n?.value;return typeof y=="boolean"?y:t.showTooltip}),o=D(()=>{var y,b,A,w,M;const N=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",T=(y=t.animationOpacity)!=null?y:.35,C=Math.max(.12,Math.min(.5*T,T)),I={"--underline-height":`${(b=t.underlineHeight)!=null?b:2}px`,"--underline-bottom":N,"--underline-opacity":String(T),"--underline-rest-opacity":String(C),"--underline-duration":`${(A=t.animationDuration)!=null?A:1.6}s`,"--underline-timing":(w=t.animationTiming)!=null?w:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(M=t.animationIteration)!=null?M:"infinite"};return t.color&&(I["--link-color"]=t.color),I}),s=ys(()=>t.customId),r=D(()=>$t({text:Wo,strong:qr,strikethrough:Ur,emphasis:Kr,image:Id,html_inline:Hl,inline_code:Cr},s.value)),l=fm(),a=D(()=>{var y,b;const A=(y=t.node)==null?void 0:y.attrs;if(!A||typeof A!="object")return{};const w={};if(Array.isArray(A))for(const M of A)Array.isArray(M)&&M[0]&&(w[String(M[0])]=String((b=M[1])!=null?b:""));else for(const[M,N]of Object.entries(A))M&&N!=null&&N!==!1&&(w[M]=N===!0?"":String(N));return oN(w,"safe","a")}),u=D(()=>$t($t({},l),a.value)),c=D(()=>{var y,b;return oN({href:String((b=(y=t.node)==null?void 0:y.href)!=null?b:"")},"safe","a").href}),d=D(()=>{if(!c.value)return;const y=u.value.target;return(typeof y=="string"?y.trim():String(y??"").trim())||(ype(c.value)?"_blank":void 0)}),f=D(()=>{var y;return String((y=d.value)!=null?y:"").trim().toLowerCase()==="_blank"}),h=D(()=>{if(!c.value)return;const y=u.value.rel,b=new Set((typeof y=="string"?y:String(y??"")).split(/\s+/).filter(Boolean)),A=new Set(Array.from(b).filter(w=>w.toLowerCase()!=="opener"));return f.value&&(A.add("noopener"),A.add("noreferrer")),A.size>0?Array.from(A).join(" "):void 0}),m=D(()=>{const y=$t({},u.value);return delete y.title,delete y.href,delete y.target,delete y.rel,y});function g(){i.value&&nye()}const v=D(()=>{var y,b;const A=(y=t.node)==null?void 0:y.title;return typeof A=="string"&&A.trim().length>0?A:String((b=c.value)!=null?b:"")});return(y,b)=>{var A,w;return e.node.loading?(k(),L("span",ci({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},p(l),{style:o.value}),[x("span",Bye,[x("span",Rye,[K(p(Wo),{class:"leading-[normal] link-text",node:{type:"text",content:String((A=e.node.text)!=null?A:""),raw:String((w=e.node.text)!=null?w:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),b[1]||(b[1]=x("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,Fye)):(k(),L("a",ci({key:0,class:"link-node",href:c.value,title:i.value?"":v.value,"aria-label":`Link: ${v.value}`,"aria-hidden":e.node.loading?"true":"false",target:d.value,rel:h.value},m.value,{style:o.value,onMouseenter:b[0]||(b[0]=M=>(function(N){var T,C,I,S;if(!i.value)return;const E=N,_=E?.clientX!=null&&E?.clientY!=null?{x:E.clientX,y:E.clientY}:void 0,F=((T=t.node)==null?void 0:T.title)||((C=c.value)!=null&&C.includes("xn--")&&((S=(I=t.node)==null?void 0:I.text)!=null&&S.includes("://"))?t.node.text:c.value)||"";tye(N.currentTarget,F,"top",!1,_)})(M)),onMouseleave:g}),[(k(!0),L(Re,null,xt(e.node.children,(M,N)=>(k(),de(p(qu),{key:`${e.indexKey||"emphasis"}-${N}`,components:r.value,node:M,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${N}`},null,8,["components","node","custom-id","index-key"]))),128))],16,Dye))}}}),[["__scopeId","data-v-367e6ca4"]]);Vr.install=e=>{e.component(Vr.__name,Vr)};const Oye={class:"insert-node"},bl=Ni(ut({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("ins",Oye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"insert"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);bl.install=e=>{e.component(bl.__name,bl)};const $ye={class:"highlight-node"},Wl=Ni(ut({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,strikethrough:Ur,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("mark",$ye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"highlight"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);Wl.install=e=>{e.component(Wl.__name,Wl)};const Pye={class:"emphasis-node"},Kr=Ni(ut({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("em",Pye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"emphasis"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Kr.install=e=>{e.component(Kr.__name,Kr)};const zye={class:"hard-break"},Td=Ni(ut({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("br",zye))}),[["__scopeId","data-v-50c58f70"]]);Td.install=e=>{e.component(Td.__name,Td)};const sv=ut({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=Bt({checkbox:zl,checkbox_input:zl,emoji:vl,emphasis:Kr,hardbreak:Td,highlight:Wl,inline_code:Cr,insert:bl,link:Vr,reference:Wr,strikethrough:Ur,strong:qr,subscript:kl,superscript:yl,text:Wo}),i=ys(()=>t.customId),o=D(()=>{const s=i.value;return Object.keys(s).length>0?$t($t({},n),s):n});return(s,r)=>(k(!0),L(Re,null,xt(e.nodes,(l,a)=>(k(),de(p(qu),{key:a,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${a}`},null,8,["components","node","custom-id","index-key"]))),128))}});function JC(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(JC)}function Bk(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(JC))return e;if(!t||e.length!==1)return null;const i=e[0];if(i?.type!=="paragraph"||!Array.isArray(i.children))return null;const o=i.children;return(n||o.length>0)&&o.every(JC)?o:null}function Ph(e){var t,n;if(!e?.length)return null;let i="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;i+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return i}const jye=["cite"],Hye={key:0,dir:"auto",class:"paragraph-node"},Wye=["custom-id"],d9=Ni(ut({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>!!n.value.paragraph),o=D(()=>!!n.value.text),s=D(()=>Bk(t.node.children,!i.value)),r=D(()=>t.fade!==!1||o.value?null:Ph(s.value));return si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade)),(l,a)=>(k(),L("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[s.value?(k(),L("p",Hye,[r.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(r.value),9,Wye)):(k(),de(p(sv),{key:1,nodes:s.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(k(),de(p(wl),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:a[0]||(a[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,jye))}}),[["__scopeId","data-v-abfecebc"]]);d9.install=e=>{e.component(d9.__name,d9)};const qye={class:"definition-list"},Uye={class:"definition-term"},Vye={class:"definition-desc"},f9=Ni(ut({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(k(),L("dl",qye,[(k(!0),L(Re,null,xt(t.node.items,(o,s)=>(k(),L(Re,{key:s},[x("dt",Uye,[K(p(wl),{"index-key":`definition-term-${t.indexKey}-${s}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),x("dd",Vye,[K(p(wl),{"index-key":`definition-desc-${t.indexKey}-${s}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[1]||(i[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);f9.install=e=>{e.component(f9.__name,f9)};const Kye=["href","title"],g0=Ni(ut({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(i){var o;if(i.preventDefault(),typeof document>"u")return;const s=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(s);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(i,o)=>(k(),L("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,Kye))}}),[["__scopeId","data-v-e1eb37b6"]]);g0.install=e=>{e.component(g0.__name,g0)};const Zye=["id"],Gye={class:"flex-1"},h9=ut({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(k(),L("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[x("div",Gye,[K(p(wl),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,Zye))}});h9.install=e=>{e.component(h9.__name,h9)};const Qye=["custom-id"],XC=Ni(ut({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamFade",void 0),o=D(()=>i?.value!==!1||n.value.text?null:Ph(t.node.children)),s=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,image:Id,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,checkbox:zl,checkbox_input:zl,footnote_reference:jl,hardbreak:Td,math_inline:Qa,reference:Wr},n.value));return(r,l)=>(k(),de(Po(`h${e.node.level}`),ci({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:ce(()=>[o.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(o.value),9,Qye)):(k(!0),L(Re,{key:1},xt(e.node.children,(a,u)=>(k(),de(p(qu),{key:u,components:s.value,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),p4=XC;p4.install=e=>{e.component(XC.__name,XC)};const Yye={key:0,dir:"auto",class:"paragraph-node"},Jye=["custom-id"],Xye={dir:"auto",class:"paragraph-node"},e9e=["custom-id"],M1=Ni(ut({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=D(()=>{var h;return(h=t.node)!=null?h:t.item}),i=ys(()=>t.customId),o=D(()=>!!i.value.paragraph),s=D(()=>!!i.value.text),r=D(()=>{var h;return Bk((h=n.value)==null?void 0:h.children,!o.value)}),l=D(()=>{var h;if(o.value)return null;const m=(h=n.value)==null?void 0:h.children;if(!Array.isArray(m)||m.length<2)return null;const g=m[0];if(g?.type!=="paragraph"||!Array.isArray(g.children))return null;const v=m.slice(1);if(!v.every(b=>b?.type==="list"))return null;const y=Bk([g]);return y?{paragraphChildren:y,nestedLists:v}:null});function a(){return t.fade===!1&&!s.value}const u=D(()=>a()?Ph(r.value):null),c=D(()=>{var h;return a()?Ph((h=l.value)==null?void 0:h.paragraphChildren):null}),d=Object.freeze({}),f=D(()=>{const{value:h}=t;return typeof h=="number"&&Number.isFinite(h)?{value:h}:d});return si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade)),(h,m)=>{var g,v;return k(),L("li",ci({class:"list-item",dir:"auto"},f.value),[r.value?(k(),L("p",Yye,[u.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(u.value),9,Jye)):(k(),de(p(sv),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(k(),L(Re,{key:1},[x("p",Xye,[c.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(c.value),9,e9e)):(k(),de(p(sv),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(k(!0),L(Re,null,xt(l.value.nestedLists,(y,b)=>(k(),de(p(wl),{key:b,nodes:[y],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${b}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:m[0]||(m[0]=A=>h.$emit("copy",A))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(k(),de(p(wl),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(v=(g=n.value)==null?void 0:g.children)!=null?v:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:m[1]||(m[1]=y=>h.$emit("copy",y))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);M1.install=e=>{e.component(M1.__name,M1)};const I1=Ni(ut({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=ys(()=>e.customId),n=D(()=>t.value.list_item||M1);return(i,o)=>(k(),de(Po(e.node.ordered?"ol":"ul"),{class:ze(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:ce(()=>[(k(!0),L(Re,null,xt(e.node.items,(s,r)=>{var l;return k(),de(Po(n.value),ci({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:s,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=a=>i.$emit("copy",a))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);I1.install=e=>{e.component(I1.__name,I1)};const t9e={key:2,class:"html-block-node__raw"},n9e=["innerHTML"],i9e={key:1,class:"html-block-node__placeholder"},v0=Ni(ut({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=en("markstreamHtmlPolicy",void 0),i=en("markstreamNestedRendererProps",void 0),o=D(()=>{var _,F;return(F=(_=t.htmlPolicy)!=null?_:n?.value)!=null?F:"safe"}),s=D(()=>{var _,F;const q=(_=i?.value)!=null?_:{};return $n($t({},q),{customId:(F=t.customId)!=null?F:q.customId,htmlPolicy:o.value})}),r=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1}),l=D(()=>{const _=l9(t.node.attrs,o.value);if(!_)return;const F=f0(_);return Object.keys(F).length>0?F:void 0}),a=D(()=>{const _=String(t.node.tag||"").trim(),F=l9(t.node.attrs,o.value,_);if(!F)return;const q=f0(F);return Object.keys(q).length>0?q:void 0}),u=ys(()=>t.customId),c=ut({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),d=U(null),f=U(typeof window>"u"),h=U(t.node.content),m=D(()=>Array.isArray(t.node.children)?t.node.children:[]),g=D(()=>String(t.node.tag||"div")),v=D(()=>{var _;if(g.value.trim().toLowerCase()!=="details"||(_=t.node.attrs)!=null&&_.some(([q])=>String(q).toLowerCase()==="open"))return null;const F=m.value[0];return F?.type==="html_block"&&String(F.tag||"").toLowerCase()==="summary"?F:null}),y=D(()=>{var _;return Ph((_=v.value)==null?void 0:_.children)}),b=D(()=>{const _=v.value;if(!_)return;const F=l9(_.attrs,o.value,"summary");if(!F)return;const q=f0(F);return Object.keys(q).length>0?q:void 0}),A=D(()=>y.value==null?m.value:m.value.slice(1)),w=D(()=>{const _=g.value.trim().toLowerCase();return Fj.has(_)||W7(_,o.value)}),M=D(()=>m.value.length>0&&!!t.node.tag&&!w.value),N=D(()=>{var _,F,q;if(M.value)return{mode:"structured"};if(!f.value)return{mode:"html",content:(_=h.value)!=null?_:""};const P=(F=h.value)!=null?F:t.node.content;if(!P)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:_1(P,o.value)};if(t.node.loading){const R=Dk(P,u.value,o.value);return R===null?{mode:"text",content:(q=t.node.raw)!=null?q:P}:{mode:"dynamic",nodes:R}}if(!lW(P,u.value))return{mode:"html",content:_1(P,o.value)};const O=Dk(P,u.value,o.value);return O===null?{mode:"html",content:_1(P,o.value)}:{mode:"dynamic",nodes:O}}),T=Y7(),C=G7(),I=Q7(),S=Ga(null),E=!!t.node.loading;return typeof window<"u"?(Ue([()=>d.value,()=>C?.value.heavyBlockMargin,()=>C?.value.rootMargin],([_],F,q)=>{var P,O,R,z;if((O=(P=S.value)==null?void 0:P.destroy)==null||O.call(P),S.value=null,!E)return f.value=!0,void(h.value=t.node.content);if(!_)return void(f.value=!1);let H=!0;const j=(z=(R=C?.value.heavyBlockMargin)!=null?R:C?.value.rootMargin)!=null?z:$h,Q=T(_,{rootMargin:j,allowIdle:!I.value});S.value=Q,f.value=f.value||Q.isVisible.value,Q.whenVisible.then(()=>{H&&S.value===Q&&(f.value=!0)}),q(()=>{H=!1,Q.destroy(),S.value===Q&&(S.value=null)})},{immediate:!0}),Ue(()=>t.node.content,_=>{E&&!f.value||(h.value=_)})):f.value=!0,ii(()=>{var _,F;(F=(_=S.value)==null?void 0:_.destroy)==null||F.call(_),S.value=null}),(_,F)=>(k(),de(Po(M.value?g.value:"div"),ci({ref_key:"htmlRef",ref:d,class:"html-block-node","data-markstream-viewport-pending":p(I)&&!f.value?"true":void 0},M.value?a.value:void 0),{default:ce(()=>[f.value?(k(),L(Re,{key:0},[N.value.mode==="structured"?(k(),L(Re,{key:0},[y.value!==null?(k(),L(Re,{key:0},[x("summary",DQ(m$(b.value)),B(y.value),17),A.value.length?(k(),de(p(r),ci({key:0},s.value,{nodes:A.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):ne("",!0)],64)):(k(),de(p(r),ci({key:1},s.value,{nodes:m.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):N.value.mode==="dynamic"?(k(),de(p(c),{key:1,nodes:N.value.nodes},null,8,["nodes"])):N.value.mode==="text"?(k(),L("pre",t9e,B(N.value.content),1)):(k(),L("div",ci({key:3},l.value,{innerHTML:N.value.content}),null,16,n9e))],64)):(k(),L("div",i9e,[Qn(_.$slots,"placeholder",{node:e.node},()=>[F[0]||(F[0]=x("span",{class:"html-block-node__placeholder-bar"},null,-1)),F[1]||(F[1]=x("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),F[2]||(F[2]=x("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);v0.install=e=>{e.component(v0.__name,v0)};const o9e={dir:"auto",class:"paragraph-node"},s9e=["custom-id"],Sh=Ni(ut({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamHtmlPolicy",void 0),o=en("markstreamFade",void 0),s=en("markstreamParseOptions",void 0),r=en("markstreamCustomMarkdownIt",void 0),l=en("markstreamNestedRendererProps",void 0),a=D(()=>{var C;return(C=i?.value)!=null?C:"safe"}),u=D(()=>{var C;return(C=t.parseOptions)!=null?C:s?.value}),c=D(()=>{var C;return(C=t.customMarkdownIt)!=null?C:r?.value}),d=D(()=>{var C,I;return(I=t.customHtmlTags)!=null?I:(C=l?.value)==null?void 0:C.customHtmlTags}),f=D(()=>{var C,I;const S=(C=l?.value)!=null?C:{};return $n($t({},S),{customId:(I=t.customId)!=null?I:S.customId,customHtmlTags:d.value,parseOptions:u.value,customMarkdownIt:c.value,htmlPolicy:a.value})}),h=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1});function m(C){var I;return C.type==="text"&&String((I=C.content)!=null?I:"").trim()===""}const g=D(()=>t.node.children.filter(C=>!m(C))),v=D(()=>g.value.length>0&&g.value.every(C=>C.type==="image"||(function(I){var S;const E=(function(_){return _.type==="link"&&Array.isArray(_.children)?_.children.filter(F=>!m(F)):[]})(I);return E.length===1&&((S=E[0])==null?void 0:S.type)==="image"})(C))),y=D(()=>new Set(tp(d.value))),b=D(()=>{if(!v.value||g.value.length<=1)return t.node.children;const C=[];for(let I=0;I0,_=t.node.children.slice(I+1).some(F=>!m(F));E&&_&&C.push($n($t({},S),{content:" ",raw:" "}))}return C}),A=D(()=>o?.value===!1&&!n.value.text),w=D(()=>A.value?Ph(b.value):null);function M(C,I){return{node:C,"index-key":`${t.indexKey}-${I}`,"custom-id":t.customId,"custom-html-tags":d.value}}const N=D(()=>$t({inline_code:Cr,image:Id,link:Vr,hardbreak:Td,emphasis:Kr,strong:qr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,html_inline:Hl,html_block:v0,emoji:vl,checkbox:zl,math_inline:Qa,checkbox_input:zl,reference:Wr,footnote_anchor:g0,footnote_reference:jl,text:Wo},n.value)),T=D(()=>b.value.map((C,I)=>{var S;const E=(function(_){var F,q,P,O;if(_.type==="html_block"||_.type==="html_inline"){const R=String((F=_.tag)!=null?F:"").trim().toLowerCase()||Pj(_.content);if(R&&!y.value.has(R)&&zj((q=_.content)!=null?q:_.raw,R)){const z=String((O=(P=_.content)!=null?P:_.raw)!=null?O:"");return{child:{type:"text",content:z,raw:z},component:Wo,isCustomComponent:!1}}}return{child:_,component:N.value[_.type],isCustomComponent:!!(n.value[_.type]&&!Vv(String(_.type)))}})(C);return $n($t({},E),{index:I,key:`${t.indexKey||"paragraph"}-${I}`,customAttrs:E.isCustomComponent?Z7(E.child,a.value):void 0,hasSlotChildren:Array.isArray(E.child.children)&&E.child.children.length>0,slotContent:String((S=E.child.content)!=null?S:""),originalChild:C})}));return(C,I)=>(k(),L("p",o9e,[w.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(w.value),9,s9e)):(k(!0),L(Re,{key:1},xt(T.value,S=>{return k(),L(Re,{key:S.key},[v.value&&m(S.originalChild)?(k(),L(Re,{key:0},[He(B((E=S.originalChild,String((_=E.content)!=null?_:""))),1)],64)):S.isCustomComponent?(k(),de(Po(S.component),ci({key:1,ref_for:!0},S.customAttrs,{node:S.child,loading:S.child.loading,"index-key":S.key,"custom-id":t.customId,"custom-html-tags":d.value,"is-dark":f.value.isDark}),{default:ce(()=>[S.hasSlotChildren?(k(),de(p(h),ci({key:0,ref_for:!0},f.value,{nodes:S.child.children,"index-key":S.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):S.slotContent?(k(),de(p(h),ci({key:1,ref_for:!0},f.value,{content:S.slotContent,final:!S.child.loading,"index-key":`${S.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(k(),de(Po(S.component),ci({key:2,ref_for:!0},M(S.child,S.index)),null,16))],64);var E,_}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Sh.install=e=>{e.component(Sh.__name,Sh)};const r9e={class:"table-node-wrapper"},l9e=["aria-busy"],a9e={key:0},u9e=["custom-id"],c9e=["aria-label","onPointerdown"],d9e=["custom-id"],f9e={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},y0=Ni(ut({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=D(()=>{var y;return(y=t.node.loading)!=null&&y}),i=D(()=>{var y;return(y=t.node.rows)!=null?y:[]}),o=U(null),s=U([]);let r=null;const l=D(()=>t.node.header.cells.length),a=D(()=>s.value.some(y=>Number.isFinite(y)&&y>0)),u=D(()=>a.value?s.value.map(y=>y>0?{width:`${y}px`}:void 0):[]);si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade));const c=ys(()=>t.customId),d=D(()=>!!c.value.text),f=D(()=>!!c.value.paragraph),h=new WeakMap;function m(y){const b=t.fade===!1&&!d.value,A=!f.value,w=h.get(y);if(w?.children===y.children&&w.textFastPath===b&&w.paragraphFastPath===A)return w.info;const M=Bk(y.children,A,!0),N={simpleChildren:M,plainText:M&&b?Ph(M):null};return h.set(y,{children:y.children,textFastPath:b,paragraphFastPath:A,info:N}),N}function g(y){if(!r)return;y.preventDefault();const b=r.startWidth+r.nextStartWidth,A=Math.min(48,Math.floor(b/2)),w=Math.max(A,Math.min(b-A,Math.round(r.startWidth+y.clientX-r.startX))),M=[...r.widths];M[r.index]=w,M[r.index+1]=b-w,s.value=M}function v(){r&&(window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),r=null)}return Ue(l,()=>{v(),s.value=[]}),ii(v),(y,b)=>(k(),L("div",r9e,[x("table",{ref_key:"tableRef",ref:o,class:ze(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[a.value?(k(),L("colgroup",a9e,[(k(!0),L(Re,null,xt(e.node.header.cells,(A,w)=>(k(),L("col",{key:w,style:on(u.value[w])},null,4))),128))])):ne("",!0),x("thead",null,[x("tr",null,[(k(!0),L(Re,null,xt(e.node.header.cells,(A,w)=>(k(),L("th",{key:w,dir:"auto",class:ze([A.align==="right"?"text-right":A.align==="center"?"text-center":"text-left"])},[m(A).plainText!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(m(A).plainText),9,u9e)):m(A).simpleChildren?(k(),de(p(sv),{key:1,nodes:m(A).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${w}`},null,8,["nodes","custom-id","index-key"])):(k(),de(p(wl),{key:2,nodes:A.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:b[0]||(b[0]=M=>y.$emit("copy",M))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),w(function(N,T){if(T.button!==0)return;const C=(function(){var E;const _=(E=o.value)==null?void 0:E.querySelectorAll("thead th");return Array.from(_??[],F=>Math.round(F.getBoundingClientRect().width))})(),I=C[N],S=C[N+1];I&&S&&(T.preventDefault(),r={index:N,startX:T.clientX,startWidth:I,nextStartWidth:S,widths:C},s.value=C,window.addEventListener("pointermove",g),window.addEventListener("pointerup",v),window.addEventListener("pointercancel",v))})(w,M)},null,40,c9e)):ne("",!0)],2))),128))])]),x("tbody",null,[(k(!0),L(Re,null,xt(i.value,(A,w)=>(k(),L("tr",{key:w},[(k(!0),L(Re,null,xt(A.cells,(M,N)=>(k(),L("td",{key:N,class:ze([M.align==="right"?"text-right":M.align==="center"?"text-center":"text-left"]),dir:"auto"},[m(M).plainText!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(m(M).plainText),9,d9e)):m(M).simpleChildren?(k(),de(p(sv),{key:1,nodes:m(M).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${w}-${N}`},null,8,["nodes","custom-id","index-key"])):(k(),de(p(wl),{key:2,nodes:M.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:b[1]||(b[1]=T=>y.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,l9e),K(mo,{name:"table-node-fade"},{default:ce(()=>[n.value?(k(),L("div",f9e,[Qn(y.$slots,"loading",{isLoading:n.value},()=>[b[2]||(b[2]=x("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),b[3]||(b[3]=x("span",{class:"sr-only"},"Loading",-1))],!0)])):ne("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);y0.install=e=>{e.component(y0.__name,y0)};const h9e={class:"hr-node"},p9=Ni({},[["render",function(e,t){return k(),L("hr",h9e)}],["__scopeId","data-v-39b2349c"]]);p9.install=e=>{e.component(p9.__name,p9)};const p9e={class:"unknown-node"},eA=ut({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(k(),L("div",p9e,B(e.node.raw),1))}),m9=Ni(ut({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=D(()=>`vmr-container vmr-container-${t.node.name}`),i=ys(()=>t.customId),o=D(()=>$t({text:Wo,paragraph:Sh,heading:p4,inline_code:Cr,link:Vr,image:Id,strong:qr,emphasis:Kr,strikethrough:Ur,insert:bl,subscript:kl,superscript:yl,checkbox:zl,checkbox_input:zl,hardbreak:Td,math_inline:Qa,reference:Wr,list:I1,math_block:pW,table:y0},i.value));return(s,r)=>(k(),L("div",ci({class:n.value},e.node.attrs),[(k(!0),L(Re,null,xt(e.node.children,(l,a)=>{return k(),de(Po((u=l.type,o.value[u]||eA)),{key:`${e.indexKey||"vmr-container"}-${a}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${a}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);m9.install=e=>{e.component(m9.__name,m9)};const m9e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],hN=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function g9e(e){if(e<=255)return m9e[e];let t=0,n=hN.length-1;for(;t<=n;){const i=t+n>>1,o=hN[i];if(eo[1]))return o[2];t=i+1}}return"L"}const v9e=/[ \t\n\r\f]+/g,y9e=/[\t\n\r\f]| {2,}|^ | $/;let V8=null;const k9e=new RegExp("\\p{Script=Arabic}","u"),Ud=new RegExp("\\p{M}","u"),X7=new RegExp("\\p{Nd}","u");function pN(e){return k9e.test(e)}function mN(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Iu(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&i<=57343){if(mN(i-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(mN(n))return!0}}return!1}const b9e=new Set([" "," ","⁠","\uFEFF"]),w9e=new Set(["-","‐","–","—"]);function mW(e,t){return!((function(n){const i=k0(n);return i!==null&&b9e.has(i)})(e)||t&&((function(n){const i=k0(n);return i!==null&&(ex.has(i)||zh.has(i))})(e)||(function(n){const i=k0(n);return i!==null&&w9e.has(i)})(e)))}const ex=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),m4=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),tx=new Set(["'","’"]),zh=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),C9e=new Set([":",".","،","؛"]),A9e=new Set(["၏"]),x9e=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function S9e(e){if(nx(e))return!0;let t=!1;for(const n of e)if(zh.has(n)||Ok(n))t=!0;else if(!t||!Ud.test(n))return!1;return t}function _9e(e){for(const t of e)if(!ex.has(t)&&!zh.has(t))return!1;return e.length>0}function M9e(e){if(nx(e))return!0;for(const t of e)if(!(m4.has(t)||tx.has(t)||Ud.test(t)||Ok(t)))return!1;return e.length>0}function nx(e){let t=!1;for(const n of e)if(n!=="\\"&&!Ud.test(n)){if(!(m4.has(n)||zh.has(n)||tx.has(n)))return!1;t=!0}return t}function Rk(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const i=e.charCodeAt(n);if(i<56320||i>57343)return n;const o=n-1;if(o<0)return n;const s=e.charCodeAt(o);return s>=55296&&s<=56319?o:n}function k0(e){if(e.length===0)return null;const t=Rk(e,e.length);return e.slice(t)}const I9e=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Ok(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,i){for(let o=0;o=i[o]&&n<=i[o+1])return!0;return!1})(t,I9e)}function T9e(e){const t=(function(n){for(const i of n)if(!Ud.test(i))return i;return null})(e);return t!==null&&X7.test(t)}function E9e(e){const t=Array.from(e);let n=t.length;for(;n>0;){const i=t[n-1];if(Ud.test(i))n--;else{if(!m4.has(i)&&!tx.has(i))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function L9e(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function gN(e,t,n,i){const o=t[i],s=e[i];if(o==null)return s;const r=n[i];if(s.length===r)return s;const l=o.repeat(r);return e[i]=l,l}function vN(e,t){return e&&t!==null&&C9e.has(t)}function N9e(e){const t=k0(e);return t!==null&&A9e.has(t)}function D9e(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function tA(e){let t=e.length;for(;t>0;){const n=Rk(e,t),i=e.slice(n,t);if(x9e.has(i))return!0;if(!zh.has(i))return!1;t=n}return!1}function F9e(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===` +`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const B9e=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function La(e){return e.length===1?e[0]:e.join("")}function R9e(e,t){const n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),La(n)}function O9e(e,t,n,i){if(!B9e.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let s=null,r=[],l=n,a=!1,u=0;for(const c of e){const d=F9e(c,i),f=d==="text"&&t;s===null||d!==s||f!==a?(s!==null&&o.push({text:La(r),isWordLike:a,kind:s,start:l}),s=d,r=[c],l=n+u,a=f,u+=c.length):(r.push(c),u+=c.length)}return s!==null&&o.push({text:La(r),isWordLike:a,kind:s,start:l}),o}function K8(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const $9e=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function P9e(e,t){const n=e.texts[t];return!!n.startsWith("www.")||$9e.test(n)&&t+1=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(t):!q9e.has(e)&&!W9e.test(e)&&H9e.test(e)}function yN(e){let t=!1;for(const n of e)if(!Ud.test(n)){if(!gW(n))return!1;t=!0}return t}function U9e(e,t,n,i){const o=!t&&yN(e),s=!i&&yN(n),r=(function(a){const u=(function(c){for(let d=c.length;d>0;){const f=Rk(c,d),h=c.slice(f,d);if(!Ud.test(h))return h;d=f}return null})(a);return u!==null&&Ok(u)})(e),l=(t||r)&&(function(a){for(let u=a.length;u>0;){const c=Rk(a,u),d=a.slice(c,u);if(!Ud.test(d))return gW(d)||Ok(d);u=c}return!1})(e);return!!(o||s||l)&&!Iu(e)&&!Iu(n)&&(t||o||r)&&(i||s)}function kN(e){for(const t of e)if(X7.test(t))return!0;return!1}function g9(e){if(e.length===0)return!1;for(const t of e)if(!X7.test(t)&&!j9e.has(t))return!1;return!0}function V9e(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let i=0;for(let o=0;o0&&u.charCodeAt(u.length-1)===32&&(u=u.slice(0,-1)),u})(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const r=(function(a,u,c){var d,f,h;const m=(V8===null&&(V8=new Intl.Segmenter(void 0,{granularity:"word"})),V8);let g=0;const v=[],y=[],b=[],A=[],w=[],M=[],N=[],T=[],C=[],I=[],S=[],E=[];for(const O of m.segment(a))for(const R of O9e(O.segment,(d=O.isWordLike)!=null&&d,O.index,c)){let z=function(){M[te]!==null&&(y[te]=[gN(v,M,N,te)],M[te]=null),y[te].push(R.text),b[te]=b[te]||R.isWordLike,T[te]=T[te]||Q,C[te]=C[te]||ae,I[te]=G,S[te]=oe,E[te]=vN(C[te],W)};const H=R.kind==="text",j=L9e(R.text,R.isWordLike,R.kind),Q=Iu(R.text),ae=pN(R.text),W=k0(R.text),G=tA(R.text),oe=N9e(R.text),te=g-1;u.carryCJKAfterClosingQuote&&H&&g>0&&A[te]==="text"&&Q&&T[te]&&I[te]||H&&g>0&&A[te]==="text"&&_9e(R.text)&&T[te]||H&&g>0&&A[te]==="text"&&S[te]?z():H&&g>0&&A[te]==="text"&&R.isWordLike&&ae&&E[te]?(z(),b[te]=!0):j!==null&&g>0&&A[te]==="text"&&M[te]===j?N[te]=((f=N[te])!=null?f:1)+1:H&&!R.isWordLike&&g>0&&A[te]==="text"&&!T[te]&&(S9e(R.text)||R.text==="-"&&b[te])?z():(v[g]=R.text,y[g]=[R.text],b[g]=R.isWordLike,A[g]=R.kind,w[g]=R.start,M[g]=j,N[g]=j===null?0:1,T[g]=Q,C[g]=ae,I[g]=G,S[g]=oe,E[g]=vN(ae,W),g++)}for(let O=0;Onull);let F=-1;for(let O=g-1;O>=0;O--){const R=v[O];if(R.length!==0){if(A[O]==="text"&&!b[O]&&F>=0&&A[F]==="text"&&(M9e(R)||R==="-"&&T9e(v[F]))){const z=(h=_[F])!=null?h:[];z.push(R),_[F]=z,w[F]=w[O],v[O]="";continue}F=O}}for(let O=0;OQ+1){R.push(La(oe)),z.push(ve),H.push("text"),j.push(O.starts[Q]),Q=te;continue}}R.push(ae),z.push(G),H.push(W),j.push(O.starts[Q]),Q++}return{len:R.length,texts:R,isWordLike:z,kinds:H,starts:j}})((function(O){const R=[],z=[],H=[],j=[];for(let Q=0;Q1;for(let oe=0;oe=O.len||K8(O.kinds[W]))continue;const G=[],oe=O.starts[W];let te=W;for(;te0&&(R.push(La(G)),z.push(!0),H.push("text"),j.push(oe),Q=te-1)}return{len:R.length,texts:R,isWordLike:z,kinds:H,starts:j}})((function(O){const R=O.texts.slice(),z=O.isWordLike.slice(),H=O.kinds.slice(),j=O.starts.slice();for(let ae=0;ae=0&&!mW(u.texts[A-1],c)&&b(A),g<0&&(g=A),v=v||Iu(w))}return b(u.len),{len:d.length,texts:d,isWordLike:f,kinds:h,starts:m}})(s,r,t.breakKeepAllAfterPunctuation):r;return $t({normalized:s,chunks:V9e(l,o)},l)}let Tp=null;const bN=new Map;let Ep=null;const Z9e=new RegExp("\\p{Emoji_Presentation}","u"),G9e=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Z8=null;const wN=new Map;function nA(){if(Tp!==null)return Tp;if(typeof OffscreenCanvas<"u")return Tp=new OffscreenCanvas(1,1).getContext("2d"),Tp;if(typeof document<"u")return Tp=document.createElement("canvas").getContext("2d"),Tp;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function Gc(e,t){let n=t.get(e);return n===void 0&&(n={width:nA().measureText(e).width,containsCJK:Iu(e)},t.set(e,n)),n}function $k(){if(Ep!==null)return Ep;if(typeof navigator>"u")return Ep={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Ep;const e=navigator.userAgent,t=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),n=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return Ep={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},Ep}function vW(){return Z8===null&&(Z8=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Z8}function Q9e(e){return Z9e.test(e)||e.includes("️")}function Of(e,t,n){return n===0?t.width:t.width-(function(i,o){return o.emojiCount===void 0&&(o.emojiCount=(function(s){let r=0;const l=vW();for(const a of l.segment(s))Q9e(a.segment)&&r++;return r})(i)),o.emojiCount})(e,t)*n}function Y9e(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function CN(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function AN(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function ix(e,t){return t===0?0:e+t}function eke(e,t,n,i,o){return ix(i,t==="tab"?o+(function(s,r){return s.letterSpacing!==0&&s.spacingGraphemeCounts[r]>0?s.letterSpacing:0})(e,n):e.lineEndFitAdvances[n])}function xN(e,t,n,i){return ix(i,t==="tab"?0:e.lineEndFitAdvances[n])}function SN(e,t,n,i,o){return ix(i,t==="tab"?o:e.lineEndPaintAdvances[n])}function tke(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function nke(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function cy(e,t,n){let i=t;for(;iz){if(be!==null&&re>V){te(se,re,J),fe=re,he=cy(be,he,fe+1),re=-1,J=0;continue}te(),Te(se,fe,ke)}else j+=ke,ae=se,W=fe+1;else Te(se,fe,ke);const Ce=fe+1;be!==null&&be[he]===Ce&&(re=Ce,J=j,he++),fe++}Q&&ae===se&&W===Se.length&&(ae=se+1,W=0)}let Y=0;for(;Y=q.length)));){const se=q[Y],V=CN(P[Y]);if(Q)if(j+se>z){if(V){Fe(Y,se),te(Y+1,0,j-se),Y++;continue}if(G>=0){if(ae>G||ae===G&&W>0){te();continue}te(G,0,oe);continue}if(se>z&&O[Y]!==null){te(),ye(Y,0),Y++;continue}te()}else Fe(Y,se),V&&(G=Y+1,oe=j-se),Y++;else se>z&&O[Y]!==null?ye(Y,0):ve(Y,se),V&&(G=Y+1,oe=j-se),Y++}return Q&&te(),H})(n,i);const{widths:o,kinds:s,breakableFitAdvances:r,breakablePreferredBreaks:l,discretionaryHyphenWidth:a,chunks:u}=n;if(o.length===0||u.length===0)return 0;const c=$k(),d=i+c.lineFitEpsilon;let f=0,h=0,m=!1,g=0,v=0,y=-1,b=0,A=null;function w(){y=-1,b=0,A=null}function M(_=g,F=v,q){f++,h=0,m=!1,w()}function N(_,F){m=!0,g=_+1,v=0,h=F}function T(_,F,q){m=!0,g=_,v=F+1,h=q}function C(_,F){m?(h+=F,g=_+1,v=0):N(_,F)}function I(_,F,q,P,O,R){if(!F)return;const z=xN(n,_,q,O);SN(n,_,q,O,P),y=q+1,b=h-R+z,A=_}function S(_,F){var q;const P=r[_],O=(q=l[_])!=null?q:null;let R=O===null?-1:cy(O,0,F+1),z=-1,H=F;for(;Hd){if(O!==null&&z>F){M(_,z),H=z,R=cy(O,R,H+1),z=-1;continue}M(),T(_,H,j)}else h=W,g=_,v=H+1}else T(_,H,j);const Q=H+1;O!==null&&O[R]===Q&&(z=Q,R++),H++}m&&g===_&&v===P.length&&(g=_+1,v=0)}function E(_){f++,w()}for(let _=0;_=F.endSegmentIndex)));){const P=s[q],O=CN(P),R=X9e(n,m,q),z=P==="tab"?J9e(h+R,n.tabStopAdvance):o[q],H=R+z,j=eke(n,P,q,R,z);if(P!=="soft-hyphen")if(m){if(h+j>d){const Q=h+xN(n,P,q,R);if(SN(n,P,q,R,z),A==="soft-hyphen"&&c.preferEarlySoftHyphenBreak&&b<=d){M(y,0);continue}if(O&&Q<=d){C(q,H),M(q+1,0),q++;continue}if(y>=0&&b<=d){if(g>y||g===y&&v>0){M();continue}const ae=y;M(ae,0),q=ae;continue}if(j>d&&r[q]!==null){M(),S(q,0),q++;continue}M();continue}C(q,H),I(P,O,q,z,R,H),q++}else j>d&&r[q]!==null?S(q,0):N(q,z),I(P,O,q,z,R,H),q++;else m&&(g=q+1,v=0,y=q+1,b=h+a,A=P),q++}m&&(F.consumedEndSegmentIndex,M(F.consumedEndSegmentIndex,0))}return f})(e,t)}let G8=null;function ox(){return G8===null&&(G8=new Intl.Segmenter(void 0,{granularity:"grapheme"})),G8}function oke(e,t){const n=[];let i=[],o=0,s=!1,r=!1,l=!1;function a(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(""),start:o}),i=[],s=!1,r=!1,l=!1)}function u(d,f,h){i=[d],o=f,s=h,r=tA(d),l=m4.has(d)}function c(d,f){i.push(d),s=s||f;const h=tA(d);r=d.length===1&&zh.has(d)&&r||h,l=!1}for(const d of ox().segment(e)){const f=d.segment,h=Iu(f);i.length!==0?l||ex.has(f)||zh.has(f)||t.carryCJKAfterClosingQuote&&h&&r?c(f,h):s||h?(a(),u(f,d.index,h)):c(f,h):u(f,d.index,h)}return a(),n}function ske(e,t,n){if(t.length<=1)return t;const i=[];let o=-1,s=!1;function r(l){if(!(o<0)){if(s)o+1===l?i.push(t[o]):(function(a,u){const c=t[a].start,d=u=0&&!mW(t[l-1].text,n)&&r(l),o<0&&(o=l),s=s||Iu(a.text)}return r(t.length),i}function _N(e,t){if(t==="zero-width-break"||t==="soft-hyphen"||t==="hard-break")return 0;if(t==="tab")return 1;let n=0;const i=ox();for(const o of i.segment(e))n++;return n}function rke(e){return e==="-"||e==="֊"||e==="‐"||e==="‒"||e==="–"||e==="—"}function lke(e,t,n,i,o){const s=$k(),{cache:r,emojiCorrection:l}=(function(E,_){nA().font=E;const F=(function(O){let R=bN.get(O);return R||(R=new Map,bN.set(O,R)),R})(E),q=(function(O){const R=O.match(/(\d+(?:\.\d+)?)\s*px/);return R?parseFloat(R[1]):16})(E),P=_?(function(O,R){let z=wN.get(O);if(z!==void 0)return z;const H=nA();H.font=O;const j=H.measureText("😀").width;if(z=0,j>R+.5&&typeof document<"u"&&document.body!==null){const Q=document.createElement("span");Q.style.font=O,Q.style.display="inline-block",Q.style.visibility="hidden",Q.style.position="absolute",Q.textContent="😀",document.body.appendChild(Q);const ae=Q.getBoundingClientRect().width;document.body.removeChild(Q),j-ae>.5&&(z=j-ae)}return wN.set(O,z),z})(E,q):0;return{cache:F,fontSize:q,emojiCorrection:P}})(t,(a=e.normalized,G9e.test(a)));var a;const u=Of("-",Gc("-",r),l)+(o===0?0:2*o),c=8*Of(" ",Gc(" ",r),l),d=o!==0;if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};const f=[],h=[],m=[],g=[];let v=e.chunks.length<=1&&!d;const y=null,b=[],A=[],w=[],M=null,N=Array.from({length:e.len});function T(E,_,F,q,P,O,R,z,H){P!=="text"&&P!=="space"&&P!=="zero-width-break"&&(v=!1),f.push(_),h.push(F),m.push(q),g.push(P),b.push(R),A.push(z),d&&w.push(H)}function C(E,_,F,q,P){const O=Gc(E,r),R=d?_N(E,_):0,z=(function(ae,W,G){return W>1?ae+(W-1)*G:ae})(Of(E,O,l),R,o),H=_==="space"||_==="preserved-space"||_==="zero-width-break"?0:z,j=H===0?0:H+(R>0?o:0),Q=_==="space"||_==="zero-width-break"?0:z;if(P&&q&&E.length>1){let ae="sum-graphemes";o!==0?ae="segment-prefixes":g9(E)?ae="pair-context":s.preferPrefixWidthsForBreakableRuns&&(ae="segment-prefixes");const W=(function(oe,te,ve,Te,Fe){if(te.breakableFitAdvances!==void 0&&te.breakableFitMode===Fe)return te.breakableFitAdvances;te.breakableFitMode=Fe;const ye=vW(),Y=[];for(const Se of ye.segment(oe))Y.push(Se.segment);if(Y.length<=1)return te.breakableFitAdvances=null,te.breakableFitAdvances;if(Fe==="sum-graphemes"){const Se=[];for(const be of Y){const he=Gc(be,ve);Se.push(Of(be,he,Te))}return te.breakableFitAdvances=Se,te.breakableFitAdvances}if(Fe==="pair-context"||Y.length>96){const Se=[];let be=null,he=0;for(const re of Y){const J=Of(re,Gc(re,ve),Te);if(be===null)Se.push(J);else{const fe=be+re,ke=Gc(fe,ve);Se.push(Of(fe,ke,Te)-he)}be=re,he=J}return te.breakableFitAdvances=Se,te.breakableFitAdvances}const se=[];let V="",le=0;for(const Se of Y){V+=Se;const be=Of(V,Gc(V,ve),Te);se.push(be-le),le=be}return te.breakableFitAdvances=se,te.breakableFitAdvances})(E,O,r,l,ae),G=W===null||i==="keep-all"?null:(function(oe){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(oe))return null;const te=[];let ve=0;for(const Te of ox().segment(oe))ve++,rke(Te.segment)&&te.push(ve);return te.length===0?null:te})(E);return void T(E,z,j,Q,_,F,W,G,R)}T(E,z,j,Q,_,F,null,null,R)}for(let E=0;E=55296&&oe<=56319&&G+1=56320&&Fe<=57343&&(te=Fe-56320+(oe-55296<<10)+65536,ve=2)}const Te=g9e(te);Te!=="R"&&Te!=="AL"&&Te!=="AN"||(z=!0);for(let Fe=0;Fe=0&&R[oe]==="ET";oe--)R[oe]="EN";for(oe=G+1;oe0?R[G-1]:ae)!=="L"?"R":"L";if(te===((oe{const e=globalThis;if(e[Q8])return e[Q8];const t={configs:{},controllers:{},revision:Ga(0),preparedCache:new Map,blockEstimateCache:new Map};return e[Q8]=t,t})();let ag=null;const Y8=Cs.revision;function MN(e){var t;return e&&(t=Cs.configs[e])!=null?t:null}function IN(e,t){const n=Number.parseFloat(String(e??""));return Number.isFinite(n)&&n>0?n:t}function uke(e){return e?.type==="text"||e?.type==="emoji"||e?.type==="hardbreak"}function J8(e){var t,n,i;if(!Array.isArray(e)||e.length===0)return null;let o="";for(const s of e){if(!uke(s))return null;s.type==="text"?o+=String((t=s.content)!=null?t:""):s.type==="emoji"?o+=String((i=(n=s.name)!=null?n:s.raw)!=null?i:""):s.type==="hardbreak"&&(o+=` +`)}return o.length>0?o:null}function X8(e,t,n){var i,o;if(!e||!Number.isFinite(t)||t<=0||!(function(){var s;if(ag!=null)return ag;if(typeof document>"u")return!1;try{const r=document.createElement("canvas");return ag=!!((s=r.getContext)!=null&&s.call(r,"2d")),ag}catch{return ag=!1,!1}})())return null;try{const s=Math.round(100*t)/100,r=[(i=n.whiteSpace)!=null?i:"pre-wrap",n.font,n.lineHeight,n.wrapperOverhead,n.widthAdjustment,s,e].join("\0"),l=Cs.blockEstimateCache.get(r);if(l)return Cs.blockEstimateCache.delete(r),Cs.blockEstimateCache.set(r,l),{kind:"simple-text",height:l.height,contentHeight:l.contentHeight};const a=(o=n.whiteSpace)!=null?o:"pre-wrap",u=(function(h,m,g){const v=`${g}\0${m}\0${h}`,y=Cs.preparedCache.get(v);if(y)return Cs.preparedCache.delete(v),Cs.preparedCache.set(v,y),y.prepared;const b=(function(A,w,M){return(function(N,T,C,I){var S,E;const _=(S=I?.wordBreak)!=null?S:"normal",F=(E=I?.letterSpacing)!=null?E:0;return lke(K9e(N,$k(),I?.whiteSpace,_),T,!1,_,F)})(A,w,0,M)})(h,m,{whiteSpace:g});for(Cs.preparedCache.set(v,{prepared:b});Cs.preparedCache.size>240;){const A=Cs.preparedCache.keys().next().value;if(!A)break;Cs.preparedCache.delete(A)}return b})(e,n.font,a),c=(function(h,m,g){const v=ike(h,m);return{lineCount:v,height:v*g}})(u,Math.max(24,s-n.widthAdjustment),n.lineHeight),d=Math.max(n.lineHeight,c.height),f=Math.max(n.lineHeight,Math.round(d+n.wrapperOverhead));for(Cs.blockEstimateCache.set(r,{height:f,contentHeight:Math.round(d)});Cs.blockEstimateCache.size>4e3;){const h=Cs.blockEstimateCache.keys().next().value;if(!h)break;Cs.blockEstimateCache.delete(h)}return{kind:"simple-text",height:f,contentHeight:Math.round(d)}}catch{return null}}function yW(e,t,n){var i,o;if(!n||!e||!Number.isFinite(t)||t<=0)return null;if(e.type==="paragraph"){const s=J8(e.children);return s&&n.paragraph?X8(s,t,n.paragraph):null}if(e.type==="heading"){const s=Number(e.level||0),r=J8(e.children),l=n.headings[s];return r&&l?X8(r,t,l):null}if(e.type==="list_item"){const s=Array.isArray(e.children)?e.children:[];if(s.length!==1||((i=s[0])==null?void 0:i.type)!=="paragraph"||!n.listItem)return null;const r=J8((o=s[0])==null?void 0:o.children);return r?X8(r,t,n.listItem):null}if(e.type==="list"){const s=Array.isArray(e.items)?e.items:[];if(!s.length)return null;let r=Math.max(0,n.listWrapperOverhead);for(const l of s){const a=yW(l,t,n);if(!a)return null;r+=a.height}return{kind:"simple-text",height:Math.max(1,Math.round(r)),contentHeight:Math.max(1,Math.round(r))}}return null}function ug(e){if(!e)return 1;const t=String(e).split(/\r?\n/);return Math.max(1,t.length)}function $f(e,t){const n=String(e??"");return t?n:n.replace(/\r\n$|\n$|\r$/,"")}function e5(e,t,n=0){return e.diff?J7(t??{},n)?(function(i){const o=$f(i.raw);if(o){const s=o.split(/\r?\n/);return i.originalCode!=null||i.updatedCode!=null?Math.max(1,s.filter(r=>!ake.some(l=>r.startsWith(l))).length):Math.max(1,s.length)}return ug($f(i.originalCode))+ug($f(i.updatedCode))})(e):(function(i){const o=i.originalCode,s=i.updatedCode;if(o!=null||s!=null)return Math.max(ug($f(o)),ug($f(s)));const r=$f(i.code).split(/\r?\n/);let l=0,a=0;for(const u of r)u.startsWith("+")&&!u.startsWith("+++")?a++:u.startsWith("-")&&!u.startsWith("---")?l++:(l++,a++);return Math.max(1,l,a)})(e):ug($f(e.code,e.loading===!0))}function cke(e){return e?`${e.fontStyle||"normal"} ${e.fontWeight||"400"} ${e.fontSize||"16px"} ${e.fontFamily||"sans-serif"}`:""}function t5(e,t,n="pre-wrap"){if(!e||!t||typeof window>"u")return null;const i=window.getComputedStyle(t),o=e.offsetHeight,s=IN(i.lineHeight,1.5*IN(i.fontSize,16)),r=e.getBoundingClientRect().width,l=t.getBoundingClientRect().width;return{font:cke(i),lineHeight:s,wrapperOverhead:Math.max(0,o-s),widthAdjustment:Math.max(0,r-l),whiteSpace:n}}const dke=new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function TN(e,t={}){var n;const i={},o=new Set((n=t.omit)!=null?n:[]);if(!e||typeof e!="object")return i;const s=Object.getOwnPropertyDescriptors(e);for(const[r,l]of Object.entries(s))dke.has(r)||o.has(r)||l.enumerable&&"value"in l&&(i[r]=l.value);return i}function EN(e,t,n,i){var o;const s=(function(f){return Math.max(0,Math.ceil(f.scrollHeight||0)-Math.ceil(f.clientHeight||0))})(e),r=(function(f,h){return Number.isFinite(f)?Math.min(Math.max(0,f),h):0})(n,s);if(!i.isReverseFlexScrollRoot(e))return void(e.scrollTop=r);const l=Math.max(0,s-r),a=[-l,l];let u=a[0],c=Number.POSITIVE_INFINITY;for(const f of a){e.scrollTop=f;const h=i.getNormalizedScrollTop(e,t,!1),m=Math.abs(h-r);md&&(e.scrollTop=u)}function LN(e,t){let n=0,i=null,o=null;const s=()=>{const r=o;o=null,i=null,r&&(n=Date.now(),e(...r))};return function(...r){const l=Date.now(),a=t-(l-n);o=r,a<=0?(i&&(clearTimeout(i),i=null),n=l,o=null,e(...r)):i||(i=setTimeout(s,a))}}function NN(e){return e==="simple"?"simple":e===!0||e==="true"||e==="precise"?"precise":"off"}const kW=Symbol("MarkstreamMathBlockMinHeightCache");function Okt(){return en(kW,null)}const fke=new Set(["text","inline_code","emoji","footnote_reference"]),hke=new Set(["strong","emphasis","strikethrough","highlight","insert","subscript","superscript","link"]);function cg(e){const t=Number(e);return!Number.isFinite(t)||t<=0?-1:Math.round(t/32)}function Pf(e,t,n,i=22){const o=String(e??"");if(!o)return n;const s=Math.max(18,Math.floor(Math.max(320,t)/8)),r=o.split(/\r?\n/).length,l=Math.ceil(o.length/s),a=Math.max(1,r,l);return Math.max(n,Math.ceil(a*i+12))}function bW(e){var t;if(!e||typeof e!="object")return!1;const n=e,i=String((t=n.type)!=null?t:"");if(fke.has(i))return!0;if(!hke.has(i))return!1;const o=n.children;return!Array.isArray(o)||!o.length||o.every(bW)}function iA(e){var t,n,i,o,s,r,l,a;if(!e||typeof e!="object")return"";const u=e,c=String((t=u.type)!=null?t:"");if(c==="text")return String((i=(n=u.content)!=null?n:u.raw)!=null?i:"");if(c==="inline_code")return String((r=(s=(o=u.code)!=null?o:u.content)!=null?s:u.raw)!=null?r:"");if(c==="emoji")return String((a=(l=u.name)!=null?l:u.raw)!=null?a:"");if(typeof u.text=="string")return u.text;const d=[];for(const f of["children","items","cells","rows"]){const h=u[f];if(Array.isArray(h)){const m=h.map(iA).filter(Boolean).join(" ");m&&d.push(m)}}return d.join(" ").replace(/\s+/g," ").trim()}function wW(e){if(!e||typeof e!="object")return!1;const t=e;return t.type==="inline_code"||["children","items","cells","rows"].some(n=>{const i=t[n];return Array.isArray(i)&&i.some(wW)})}function pke(e,t){if(!e)return 30;const n=Math.max(18,Math.floor(Math.max(320,t)/8)),i=e.split(/\r?\n/).length,o=Math.ceil(e.length/n),s=Math.max(1,i,o);return 30+26*Math.max(0,s-1)}function mke(e,t){var n,i,o,s,r,l,a,u,c,d,f,h,m,g;if(!e||typeof e!="object")return 32;const v=e,y=String((n=v.type)!=null?n:""),b=Number.isFinite(t)&&t>0?t:640;switch(y){case"heading":return(function(A){var w;const M=Number((w=A.level)!=null?w:A.depth);return M>=4?20:M===3?30:M===2?32:44})(v);case"paragraph":return(function(A,w){const M=String(A??"");if(!M)return 28;const N=Math.max(18,Math.floor(Math.max(320,w)/8)),T=M.split(/\r?\n/).length,C=Math.ceil(M.length/N);return Math.max(1,T,C)<=1?28:Pf(M,w,34)})(String((o=(i=v.raw)!=null?i:v.content)!=null?o:""),b);case"list":return(function(A,w){var M;const N=Array.isArray(A.items)?A.items:[];if(!N.length)return 48;const T=Math.max(48,30*N.length+12);let C=12;for(const E of N)C+=pke(iA(E)||String((M=E.raw)!=null?M:""),w);const I=Math.max(0,C-T);if(N.length>20){const E=Math.round(2.4*N.length);return Math.round(T+Math.max(E,Math.min(I,3*N.length)))}if(I<=0)return T;const S=N.length>8?8*N.length:I;return Math.round(T+Math.min(I,S))})(v,b);case"list_item":return Pf(String((r=(s=v.raw)!=null?s:v.content)!=null?r:""),b,34);case"blockquote":return Pf(String((a=(l=v.raw)!=null?l:v.content)!=null?a:""),b,56);case"table":return(function(A,w){const M=[...A.header?[A.header]:[],...Array.isArray(A.rows)?A.rows:[]];if(!M.length){const N=Array.isArray(A.children)?A.children.length:3;return Math.max(120,38*N+48)}return Math.max(120,Math.round(4+M.reduce((N,T)=>N+(function(C,I){const S=Math.max(1,C.length),E=Math.max(80,(I-32)/S),_=Math.max(10,Math.floor(E/8)),F=Math.max(1,...C.map(q=>{var P;const O=iA(q)||String((P=q?.raw)!=null?P:"");return Math.ceil(O.length/_)||1}));return 54+34*Math.max(0,F-1)+(S<=3&&C.some(wW)?14:0)})((function(C){var I;return Array.isArray(C?.cells)&&(I=C.cells)!=null?I:[]})(T),w),0)))})(v,b);case"code_block":{const A=String((u=v.language)!=null?u:"").trim().toLowerCase(),w=String((d=(c=v.code)!=null?c:v.raw)!=null?d:"");return A==="mermaid"?Ek(Ik(w)):A==="infographic"?Lk(Tk(w)):Pf(w,b,96,20)}case"math_block":return 72;case"image":return 220;case"admonition":case"vmr_container":case"html_block":return(function(A,w){var M,N,T;const C=A.match(/^\s*]*)>/i);return C&&!/(?:^|\s)open(?:\s|=|$)/i.test((M=C[1])!=null?M:"")?Pf(((T=(N=A.match(/]*>([\s\S]*?)<\/summary>/i))==null?void 0:N[1])==null?void 0:T.replace(/<[^>]*>/g,"").trim())||"Details",w,28,28):Pf(A,w,96)})(String((h=(f=v.raw)!=null?f:v.content)!=null?h:""),b);case"thematic_break":return 24;default:return Pf(String((g=(m=v.raw)!=null?m:v.content)!=null?g:""),b,40)}}function DN(e,t,n){return Math.min(Math.max(e,t),n)}const gke=["total","cacheHits","appendHits","tailHits","fullParses","chunkedParses"],vke=["tokenCloneMs","processTokensInputTokens","processTokensReusedTopLevelNodes","processTokensMs","safeMarkdownMs","tokenizeMs","htmlBlockPassesMs","parseMarkdownToStructureTotalMs"],yke=new Set(["attrs","data","items","header","payload","props","rows","cells","term","definition","sourceMap"]),CW=["raw","content","code","originalCode","updatedCode"],FN=new WeakMap,BN=new WeakMap;let kke=1;function Ea(){return typeof performance<"u"?performance.now():Date.now()}function RN(e){const t=e.stream;return t&&typeof t.stats=="function"?t.stats():null}function Rl(e){if(typeof e!="object"&&typeof e!="function"||e===null)return"";const t=e;let n=FN.get(t);return n||(n=kke++,FN.set(t,n)),String(n)}function ON(e,t,n,i={}){var o,s;const r=i.includeFinal!==!1,l={md:Rl(t),customMarkdownIt:Rl(n),requireClosingStrong:e.requireClosingStrong===!0,customHtmlTags:(o=e.customHtmlTags)!=null?o:[],includeSourceMap:e.includeSourceMap===!0,streamParse:(s=e.streamParse)!=null?s:"auto",validateLink:Rl(e.validateLink),preTransformTokens:Rl(e.preTransformTokens),postTransformTokens:Rl(e.postTransformTokens),postTransformNodes:Rl(e.postTransformNodes)};return r&&(l.final=e.final===!0),JSON.stringify(l)}function $N(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===10;)t-=1;const n=e.lastIndexOf(` +`,t-1)+1;return e.slice(n,t).trim()}function PN(e){const t=AW(e);return t.length>=2&&t.every(n=>{const i=n.trim();return i.length>=1&&i.replace(/^:/,"").replace(/:$/,"").split("").every(o=>o==="-")})}function AW(e){return e.includes("|")?e.replace(/^\|/,"").replace(/\|$/,"").split("|"):[]}function xW(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function sx(e){const t=String(e??"");return`${t.length}:${xW(t)}`}function oA(e,t=new WeakMap,n=0){if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="string")return`s:${(function(r){return r.length<=8192?sx(r):`${r.length}:${xW(r.slice(0,8192))}:truncated`})(e)}`;if(typeof e=="function")return`fn:${Rl(e)}`;if(typeof e!="object")return typeof e;const i=e,o=t.get(i);if(o)return`cycle:${o}`;if(n>=6)return`object:${Rl(i)}`;const s=Rl(i);if(t.set(i,s),Array.isArray(e)){const r=e.slice(0,200);return`a:${e.length}:${r.map(l=>oA(l,t,n+1)).join(",")}`}if(typeof e=="object"){const r=e,l=Object.keys(r).sort(),a=l.slice(0,80);return`o:${l.length}:${a.sort().map(u=>`${u}:${oA(r[u],t,n+1)}`).join(";")}`}return typeof e}function Pk(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"&&typeof e.raw=="string"}function SW(e,t=new WeakMap,n=0){return Array.isArray(e)?`a:${e.length}:${e.slice(0,200).map(i=>Pk(i)?Vd(i,t,n+1):SW(i,t,n+1)).join(",")}`:Pk(e)?Vd(e,t,n):oA(e,t,n)}function bke(e,t,n){return Object.keys(e).sort().filter(i=>i!=="children"&&!CW.includes(i)).map(i=>{const o=e[i];return typeof o=="string"?`${i}=s:${sx(o)}`:typeof o=="number"||typeof o=="boolean"||o==null?`${i}=${String(o)}`:typeof o=="function"?`${i}=fn:${Rl(o)}`:yke.has(i)&&(Array.isArray(o)||typeof o=="object")?`${i}=${SW(o,t,n+1)}`:o&&typeof o=="object"?`${i}=object:${Rl(o)}`:""}).filter(Boolean).join(";")}function wke(e){return CW.map(t=>{const n=e[t];return typeof n=="string"?`${t}=s:${sx(n)}`:""}).filter(Boolean).join(";")}function Vd(e,t=new WeakMap,n=0){const i=BN.get(e);if(i)return i;const o=e,s=t.get(o);if(s)return`node-cycle:${s}`;if(n>=6)return`node:${e.type}:${Rl(o)}`;const r=Rl(o);t.set(o,r);const l=(function(a,u,c){const d=a,f=Array.isArray(d.children)?d.children:[],h=f.length?f.slice(0,200).map(m=>Vd(m,u,c+1)).join("|"):"";return[a.type,wke(d),bke(d,u,c),f.length,h].join(":")})(e,t,n);return BN.set(o,l),l}function _W(e,t){return Vd(e)===Vd(t)}function rx(e,t,n){const i=Ea(),o=t==="stabilizeSignatureMs"?"stabilizeSignatureCallCount":"primeSignatureCallCount";try{return n()}finally{e[t]+=Ea()-i,e[o]+=1,e.signatureMs=e.stabilizeSignatureMs+e.primeSignatureMs,e.signatureCallCount=e.stabilizeSignatureCallCount+e.primeSignatureCallCount}}function zN(e,t,n){return rx(t,n,()=>Vd(e))}function MW(e,t,n){return zN(e,n,"stabilizeSignatureMs")===zN(t,n,"stabilizeSignatureMs")}function dy(e){return{reusedNodeCount:0,dirtyStartIndex:e>0?0:-1,stablePrefixNodeCount:0,dirtyTailNodeCount:e}}function jN(e,t,n){return e<0?0:Math.max(t.length,n.length)-e}function HN(e){return e.__markstreamHasCustomParserExtensions===!0||(function(t){var n;return Number((n=t.__markstreamRegisteredPluginCount)!=null?n:0)>0})(e)}function Cke(e,t){return e.length===t.length&&e===t}function lx(e,t,n=0){if(n>=4)return null;if(e.type!==t.type)return!1;const i=e,o=t,s=Object.keys(i).filter(c=>c!=="type"&&c!=="children").sort(),r=Object.keys(o).filter(c=>c!=="type"&&c!=="children").sort();if(s.length!==r.length)return!1;for(let c=0;c{i=lx(e,t)}),i??MW(e,t,n)}function Ske(e,t){const n={};for(const i of gke){const o=e[i],s=t?.[i];typeof o=="number"&&(n[i]=o-(typeof s=="number"?s:0))}return n}function _ke(e,t){var n;const i=$L(t.instanceMsgId),o=new Map,s=(n=t.smoothStreamingEnabled)!=null?n:D(()=>!1),r=U(t.renderContent.value);let l=[],a="",u="",c="",d=!1;const f=(function(){let q="",P=0,O=!1,R=!1,z=!1,H=!1;function j(){q="",P=0,O=!1,R=!1,z=!1,H=!1}function Q(ae){let W=!1;for(let G=0;G{if(!ae||!W.startsWith(ae)||W.length<=ae.length)return j(),[!0,0];let G=0;q!==ae&&(j(),Q(ae),G=ae.length);const oe=W.slice(ae.length),te=Q(oe);return q=W,[te,G+oe.length]}})();let h,m=0,g=0,v=Ea(),y=-1,b=0;function A(q){y=Number.isInteger(q)?q:0,b+=1}function w(){h&&(clearTimeout(h),h=void 0)}function M(){w();const q=t.renderContent.value;r.value!==q&&(r.value=q),v=Ea()}Ue([t.renderContent,t.effectiveFinal,s],([q,P,O])=>{r.value!==q&&(!O||P||(function(R,z){if(!R&&z||z.length<=80||z.length\s*|`{3,}|~{3,})/.test(H))||H.endsWith(` +`)&&!(function(j){const Q=$N(j);if(PN(Q))return!1;const ae=AW(Q);return ae.length>=2&&ae.some(W=>W.trim())})(z))})(r.value,q)?M():(function(){if(g+=1,h)return;const R=Math.max(0,(function(z){const H=z.parseCoalesceMs;return typeof H=="number"&&Number.isFinite(H)&&H>=0?H:80})(e)-(Ea()-v));R<=0?M():h=setTimeout(M,R)})())},{flush:"sync",immediate:!0}),Xd(w);const N=D(()=>{var q,P,O,R;return xpe(e.customHtmlTags,(q=e.parseOptions)==null?void 0:q.customHtmlTags,(R=(O=(P=t.customComponentsMap)==null?void 0:P.value)!=null?O:{},Object.entries(R).map(([z,H])=>{const j=wa(z);return H==null||!j||Vv(j)||Dj.has(j)||jv.has(j)?"":j}).filter(Boolean)))}),T=D(()=>{const{key:q,tags:P}=Spe(N.value);if(!q)return i;const O=o.get(q);if(O)return O;const R=$L(t.instanceMsgId,{customHtmlTags:P});return o.set(q,R),R}),C=D(()=>{const q=T.value;if(!e.customMarkdownIt)return q;const P=e.customMarkdownIt(q);return q.__markstreamHasCustomParserExtensions=!0,P.__markstreamHasCustomParserExtensions=!0,P}),I=D(()=>{var q,P;const O=(q=e.parseOptions)!=null?q:{},R=t.effectiveFinal.value,z=N.value,H=R!=null,j=z.length>0;return H||j||O.streamParse==null?$t($t($n($t({},O),{streamParse:(P=O.streamParse)==null||P}),H?{final:R}:{}),j?{customHtmlTags:z}:{}):O}),S=D(()=>{var q;return new Set(((q=I.value.customHtmlTags)!=null?q:[]).map(P=>String(P).trim().toLowerCase()).filter(Boolean))}),E=D(()=>ON(I.value,C.value,e.customMarkdownIt,{includeFinal:!0})),_=D(()=>ON(I.value,C.value,e.customMarkdownIt,{includeFinal:!1}));Ue([E,_],([q,P],[O,R])=>{O&&(q===O&&P===R||(M(),P!==R&&(l=[],c="")))},{flush:"sync"});const F=D(()=>{var q,P,O,R,z,H,j,Q,ae,W,G;if((q=e.nodes)!=null&&q.length)return l=[],c="",A(0),Bt(e.nodes.slice());const oe=r.value;if(!oe)return l=[],c="",A(-1),[];const te=t.debugPerformanceEnabled.value,ve=te?Ea():0,Te=C.value,Fe=E.value,ye=_.value;a&&Fe!==a&&(function(Ze){var lt,ft;(ft=(lt=Ze.stream)==null?void 0:lt.reset)==null||ft.call(lt)})(Te),u&&ye!==u&&(l=[],c="");const Y=Object.keys((O=(P=t.customComponentsMap)==null?void 0:P.value)!=null?O:{}).length>0||typeof I.value.postTransformNodes=="function";Y!==d&&(l=[],c="");const se=!Y&&l.length>0&&oe.startsWith(c)&&ye===u,V=te?RN(Te):null,le=te?{}:void 0,Se=HN(Te),be=!Se&&!Y,he=$t($t($n($t({},I.value),{__reuseStableTopLevelNodes:be}),Se?{__disableStreamParse:!0}:{}),le?{__timing:le}:{}),re=OH(oe,Te,he),J=te?Ea():0,fe=te?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let ke,Ce=te?dy(re.length):void 0,De=0,ie=0,me=0;if(se){const Ze=te?Ea():0,[lt,ft]=(function(Rt){var qt,Ut;const[Ie,Pe]=Rt.scanGlobalReferenceAppend(Rt.previousContent,Rt.content),qe=Rt.parseOptions;return[Rt.previousDirtyStartIndex>0&&qe.final!==!0&&!Rt.customMarkdownIt&&!HN(Rt.md)&&!Ie&&typeof qe.preTransformTokens!="function"&&typeof qe.postTransformTokens!="function"&&typeof qe.postTransformNodes!="function"&&((Ut=(qt=qe.customHtmlTags)==null?void 0:qt.length)!=null?Ut:0)===0?Rt.previousDirtyStartIndex:0,Pe]})({content:oe,previousContent:c,previousDirtyStartIndex:y,parseOptions:I.value,customMarkdownIt:e.customMarkdownIt,md:Te,scanGlobalReferenceAppend:f});me=ft;const Mt=lt<=0;if(fe){const Rt=(function(qt,Ut,Ie,Pe={}){var qe;if(!Ut.length)return{nodes:qt,metrics:dy(qt.length)};const vt=(qe=Pe.scanStartIndex)!=null?qe:0,It=Pe.reuseDirtyTail!==!1,Et=(function(ct,Be,Ge,mt=0){const Wt=Math.min(ct.length,Be.length);for(let zt=Math.min(Wt,Math.max(0,mt));ztVd(Ze[Mt]))})(ke,fe,ie):(function(Ze,lt=0){for(let ft=Math.max(0,lt);ft((z=V?.total)!=null?z:0);t.logPerf(lt?"parse(stream)":"parse(sync)",$t($t($t({rendererId:t.instanceMsgId,ms:Math.round(Ea()-ve),nodes:ke.length,contentLength:oe.length,parseCommitCount:m,parseCoalescedCount:g,nodeReuseMs:je,referenceDefinitionScanChars:me,signatureMs:(H=fe?.signatureMs)!=null?H:0,stabilizeSignatureMs:(j=fe?.stabilizeSignatureMs)!=null?j:0,primeSignatureMs:(Q=fe?.primeSignatureMs)!=null?Q:0,signatureCallCount:(ae=fe?.signatureCallCount)!=null?ae:0,stabilizeSignatureCallCount:(W=fe?.stabilizeSignatureCallCount)!=null?W:0,primeSignatureCallCount:(G=fe?.primeSignatureCallCount)!=null?G:0,stabilizeMs:De},Ce??{}),le?Object.fromEntries(vke.map(ft=>{var Mt;return[ft,(Mt=le[ft])!=null?Mt:0]})):{}),Ze?{streamMode:Ze.lastMode,streamDelta:Ske(Ze,V),streamStats:Ze}:{}))}return Bt(ke)});return{effectiveCustomHtmlTags:N,effectiveCustomHtmlTagsSet:S,mdBase:T,mdInstance:C,mergedParseOptions:I,getParsedNodesDirtyStartIndex:()=>y,getParsedNodesRevision:()=>b,parsedNodes:F}}function Mke(e){const{isClient:t}=e,n=U(new Set),i=new Map,o=new Map,s=new Map;function r(u){if(!t)return;const c=s.get(u);c!=null&&(window.clearTimeout(c),s.delete(u))}function l(){if(t)for(const u of s.values())window.clearTimeout(u);s.clear()}function a(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:i,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:s,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,c=!0){var d;c&&r(u),(function(f,h){if((g=(m=e.shouldTrackVisibleNodeIndices)==null?void 0:m.call(e))!=null&&!g)return;var m,g;const v=n.value,y=v.has(f);if(h){if(y)return;const A=new Set(v);return A.add(f),void(n.value=A)}if(!y)return;const b=new Set(v);b.delete(f),n.value=b})(u,c),c&&((d=e.onNodeMarkedVisible)==null||d.call(e,u))},resetNodeVisibleState:a,cleanupNodeVisibility:function(u){var c;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[f,h]of o.entries())f{const c=o.getSnapshot();t.value=c.source,n.value=c.visible,i.value=c.done},r=o.subscribe(s);s();const l=D(()=>Math.max(0,t.value.length-n.value.length)),a=D(()=>l.value===0),u=D(()=>i.value&&a.value);return Lv()&&Xd(()=>{r(),o.destroy()}),{source:t,visible:n,done:i,final:u,caughtUp:a,pendingChars:l,enqueue:c=>o.enqueue(c),finish:c=>o.finish(c),flush:()=>o.flush(),reset:c=>o.reset(c),pause:()=>o.pause(),resume:()=>o.resume()}}const Tke={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},WN=/auto|scroll|overlay/i;function Eke(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return WN.test(t)||WN.test(n)}function Lke(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const Nke={class:"m-0 p-0"},Dke=["data-probe"],Fke=Ni(ut($n($t({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(i){var o,s;return(s=(o=t.headingNodes)==null?void 0:o[i])!=null?s:null}return(i,o)=>(k(),L("div",{class:"height-estimation-probes",style:on({width:`${e.width}px`}),"aria-hidden":"true"},[x("div",{ref:s=>e.setParagraphWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[K(p(Sh),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),x("div",{ref:s=>e.setListItemWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[x("ul",Nke,[K(p(M1),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),x("div",{ref:s=>e.setListWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[K(p(I1),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(k(),L(Re,null,xt(6,s=>x("div",{key:`probe-heading-${s}`,ref_for:!0,ref:r=>e.setHeadingWrapper(s,r),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${s}`},[K(p(p4),{node:n(s),"index-key":`probe-heading-${s}`},null,8,["node","index-key"])],10,Dke)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),qN=ut({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=D(()=>{var n,i;return Lk((i=i1(e.estimatedPreviewHeightPx))!=null?i:Tk(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return Rn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?Rn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[Rn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[Rn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),Rn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),Rn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>Rn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,Rn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[Rn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),Rn("div",{class:"absolute inset-0"},[Rn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),UN=ut({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=D(()=>{var n,i;return Ek((i=i1(e.estimatedPreviewHeightPx))!=null?i:Ik(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return Rn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?Rn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[Rn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[Rn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),Rn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>Rn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[Rn("span",{class:"action-icon block"})])))]):null,Rn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[Rn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),Rn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),Bke={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function Bs(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const Rke=["data-custom-id"],Oke=["data-node-index","data-node-type"],VN="typewriter-simple-cursor-target",IW=Ni(ut($n($t({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const i=e,o=n;function s($){if(!(typeof Event<"u"&&$ instanceof Event))return typeof $=="string"&&o("copy-code",$),void o("copy",$)}const r=vs(),l=en("markstreamNestedRendererProps",void 0);function a($){const ee=r?.vnode.props;return!!ee&&(Object.prototype.hasOwnProperty.call(ee,$)||Object.prototype.hasOwnProperty.call(ee,String($).replace(/[A-Z]/g,pe=>`-${pe.toLowerCase()}`)))}function u($){var ee,pe;const ge=i[$];return a($)?ge:(pe=(ee=l?.value)==null?void 0:ee[$])!=null?pe:ge}const c=D(()=>{return($=u("mode"))==="chat"||$==="minimal"||$==="docs"?$:"docs";var $}),d=D(()=>NN(u("typewriter"))),f=D(()=>d.value!=="off"),h=D(()=>u("domMode")==="minimal"?"minimal":"full"),m=D(()=>{return($={mode:c.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":$.codeRenderer==="pre"||$.codeRenderer==="shiki"||$.codeRenderer==="monaco"?$.codeRenderer:$.renderCodeBlocksAsPre===!1||$.mode==="docs"?"monaco":"pre";var $}),g=D(()=>Bke[c.value]),v=D(()=>{var $;return($=u("showTooltips"))!=null?$:g.value.showTooltips}),y=D(()=>{var $;return($=u("fade"))!=null?$:g.value.fade}),b=D(()=>{var $;return($=u("batchRendering"))!=null?$:g.value.batchRendering}),A=D(()=>{var $;return($=u("initialRenderBatchSize"))!=null?$:g.value.initialRenderBatchSize}),w=D(()=>{var $;return($=u("renderBatchSize"))!=null?$:g.value.renderBatchSize}),M=D(()=>{var $;return($=u("renderBatchDelay"))!=null?$:g.value.renderBatchDelay}),N=D(()=>{var $;return($=u("renderBatchBudgetMs"))!=null?$:g.value.renderBatchBudgetMs}),T=D(()=>{var $;return($=u("renderBatchIdleTimeoutMs"))!=null?$:g.value.renderBatchIdleTimeoutMs}),C=D(()=>{var $;return($=u("deferNodesUntilVisible"))!=null?$:g.value.deferNodesUntilVisible}),I=D(()=>{var $;return($=u("maxLiveNodes"))!=null?$:g.value.maxLiveNodes}),S=D(()=>{var $;return($=u("liveNodeBuffer"))!=null?$:g.value.liveNodeBuffer}),E=D(()=>{var $;return($=u("nodeVirtual"))!=null?$:g.value.nodeVirtual}),_={get content(){return i.content},get nodes(){return i.nodes},get final(){return i.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return i.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return h.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return v.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return i.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return i.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return y.value},get batchRendering(){return b.value},get initialRenderBatchSize(){return A.value},get renderBatchSize(){return w.value},get renderBatchDelay(){return M.value},get renderBatchBudgetMs(){return N.value},get renderBatchIdleTimeoutMs(){return T.value},get deferNodesUntilVisible(){return C.value},get maxLiveNodes(){return I.value},get liveNodeBuffer(){return S.value},get nodeVirtual(){return E.value},get virtualScroll(){return i.virtualScroll},get renderAsFragment(){return i.renderAsFragment}};function F($){o("height-change",$)}function q($){o("virtual-state-change",$)}function P($){o("anchor-change",$)}const O=U(),R=U(null),z=U(null),H=U(null),j=ho({1:null,2:null,3:null,4:null,5:null,6:null}),Q=U(!1),ae=new Map,W=U(0),G=U(0),oe=U({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function te($,ee){return typeof $!="string"?ee:$.trim()||ee}function ve($){const ee=Number($);return Number.isFinite(ee)&&ee>0?Math.max(1,Math.trunc(ee)):640}const Te=D(()=>{var $;const ee=($=_.viewportPriorityOptions)!=null?$:{},pe=te(ee.rootMargin,$h);return{rootMargin:pe,heavyBlockMargin:te(ee.heavyBlockMargin,pe),maxTargets:ve(ee.maxTargets)}}),Fe=D(()=>{var $;return($=Te.value.rootMargin)!=null?$:$h}),ye=D(()=>{var $;return($=Te.value.maxTargets)!=null?$:640});function Y(){var $,ee;if((($=i.virtualScroll)==null?void 0:$.enabled)!==!0)return null;const pe=(ee=i.virtualScroll)==null?void 0:ee.scrollRoot;return se(typeof pe=="function"?pe():pe)}function se($){return $?typeof HTMLElement<"u"&&$ instanceof HTMLElement?$:typeof $=="object"&&"value"in $?se($.value):typeof $=="object"&&"$el"in $?se($.$el):null:null}si(dW,Te);const{isClient:V,renderAsFragment:le,debugPerformanceEnabled:Se,resolvedShowTooltips:be,resolvedHtmlPolicy:he,inheritedSmoothStreaming:re,ownsTypewriterCursor:J}=(function($){const ee=typeof window<"u",pe=fm(),ge=en("markstreamHtmlPolicy",void 0),Ne=en("markstreamTypewriterCursor",void 0),We=en("markstreamSmoothStreaming",void 0),Xe=D(()=>$.renderAsFragment===!0),it=D(()=>!!($.debugPerformance&&ee&&typeof console<"u")),bt=D(()=>{var yt;if(typeof $.showTooltips=="boolean")return $.showTooltips;const et=(yt=pe.showTooltips)!=null?yt:pe["show-tooltips"];return et===""||et===!0||et==="true"||et!==!1&&et!=="false"&&void 0}),ot=D(()=>{var yt,et;return(et=(yt=$.htmlPolicy)!=null?yt:ge?.value)!=null?et:"safe"}),ht=D(()=>Ne?.value!==!0);return{isClient:ee,renderAsFragment:Xe,debugPerformanceEnabled:it,resolvedShowTooltips:bt,resolvedHtmlPolicy:ot,inheritedSmoothStreaming:We,inheritedTypewriterCursor:Ne,ownsTypewriterCursor:ht}})(_),{resolveViewportRoot:fe,resolveScrollContainer:ke,isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De,getOffsetTopWithinRoot:ie}=(function($,ee){function pe(){var it,bt;return(bt=(it=ee.scrollRoot)==null?void 0:it.call(ee))!=null?bt:null}function ge(it){if(typeof window>"u")return null;const bt=pe();if(bt)return bt;const ot=it??$.value;if(!ot)return null;const ht=ot.ownerDocument||document,yt=ht.scrollingElement||ht.documentElement;let et=ot;for(;et&&et!==ht.body&&et!==yt;){if(Eke(window.getComputedStyle(et))&&Lke(et))return et;et=et.parentElement}return null}function Ne(it){if(!ee.isClient)return!1;try{const bt=window.getComputedStyle(it);return!!(bt.display||"").toLowerCase().includes("flex")&&(bt.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function We(it,bt,ot){var ht,yt;if(ot)return Xe(bt);const et=it.scrollTop;if(!Ne(it))return et;const pt=et<0?-et:et;return Math.max(0,((ht=it.scrollHeight)!=null?ht:0)-((yt=it.clientHeight)!=null?yt:0))-pt}function Xe(it){var bt,ot,ht,yt,et;const pt=Number((bt=it.scrollingElement)==null?void 0:bt.scrollTop),St=Number((ht=(ot=it.documentElement)==null?void 0:ot.scrollTop)!=null?ht:0),Ct=Number((et=(yt=it.body)==null?void 0:yt.scrollTop)!=null?et:0);return Math.max(0,Number.isFinite(pt)?pt:0,Number.isFinite(St)?St:0,Number.isFinite(Ct)?Ct:0)}return{resolveViewportRoot:ge,resolveScrollContainer:function(it){var bt,ot,ht,yt;const et=pe();if(et)return et;const pt=ge((bt=it??$.value)!=null?bt:null);if(pt)return pt;const St=(yt=(ht=it?.ownerDocument)!=null?ht:(ot=$.value)==null?void 0:ot.ownerDocument)!=null?yt:typeof document<"u"?document:null;return St?.scrollingElement||St?.documentElement||null},isReverseFlexScrollRoot:Ne,getNormalizedScrollTop:We,getOffsetTopWithinRoot:function(it,bt){const ot=bt.ownerDocument||it.ownerDocument||document;if((function(pt,St){return pt===St.documentElement||pt===St.body||pt===St.scrollingElement})(bt,ot))return it.getBoundingClientRect().top+Xe(ot);const ht=bt.getBoundingClientRect(),yt=it.getBoundingClientRect(),et=We(bt,ot,!1);return yt.top-ht.top+et}}})(O,{isClient:V,scrollRoot:Y});si("markstreamShowTooltips",be),si("markstreamHtmlPolicy",he),si("markstreamTypewriter",f),si("markstreamFade",D(()=>_.fade!==!1)),si("markstreamTypewriterCursor",D(()=>!0)),si("markstreamTextStreamState",ae),si("markstreamStreamVersion",W),si("markstreamParseOptions",D(()=>_.parseOptions)),si("markstreamCustomMarkdownIt",D(()=>_.customMarkdownIt));const{smoothStreamingEnabled:me,renderContent:je,requestedFinal:Ze,effectiveFinal:lt}=(function($,ee){const pe=Ike($t($t({},Tke),$.smoothStreamingOptions)),ge=D(()=>{var et,pt,St;return $.smoothStreaming!==!1&&!((et=$.nodes)!=null&&et.length)&&($.smoothStreaming===!0||!((pt=ee.inheritedSmoothStreaming)!=null&&pt.value))&&($.smoothStreaming===!0||NN($.typewriter)!=="off"||((St=$.maxLiveNodes)!=null?St:0)<=0)}),Ne=U(!ee.isClient||$.smoothStreaming===!0);yn(()=>{Ne.value=!0});const We=D(()=>Ne.value&&ge.value),Xe=D(()=>{var et;return We.value?pe.visible.value:(et=$.content)!=null?et:""}),it=D(()=>{var et,pt;const St=(et=$.parseOptions)!=null?et:{};return(pt=$.final)!=null?pt:St.final}),bt=D(()=>{const et=it.value;return We.value&&et!=null?!!et&&pe.caughtUp.value:et});let ot=0,ht=!1;function yt(){ot=0,ht=!1}return Ue([()=>$.content,()=>$.nodes,We,it],([et,pt,St,Ct])=>{if(pt?.length)return yt(),void pe.reset("");const Vt=et??"";if(!St)return yt(),pe.reset(Vt),void(Ct&&pe.finish({flush:!0}));const Ft=pe.source.value;if(Vt){if(Vt!==Ft)if(Vt.startsWith(Ft)){const sn=Vt.slice(Ft.length),hn=pe.pendingChars.value;sn.length<=8?(ot++,ht||ot>=2&&hn<=8?(ht=!0,pe.reset(Vt)):pe.enqueue(sn)):(yt(),pe.enqueue(sn))}else yt(),pe.reset(Vt)}else yt(),pe.reset("");Ct&&pe.finish()},{immediate:!0}),{smoothStream:pe,smoothStreamingEligible:ge,smoothStreamingEnabled:We,renderContent:Xe,requestedFinal:it,effectiveFinal:bt}})(_,{isClient:V,inheritedSmoothStreaming:re}),ft=Ze.value===!0;si("markstreamSmoothStreaming",me);const Mt=U(!1),Rt=U(!1),qt=U(!1);let Ut="",Ie=!1,Pe=null;function qe(){V&&Pe!=null&&(window.clearTimeout(Pe),Pe=null)}function vt(){Mt.value=!1,qe()}function It($,ee){if(!Se.value)return;const pe=(function(){if(!Se.value)return null;const ge=Be(Et),Ne=Be(Lt),We=Math.max(ct,Ne);if(ge<=0&&We<=0)return null;const Xe={total:ge,maxPerFrame:We,byLabel:(it=Et,Object.fromEntries(Array.from(it.entries()).sort((bt,ot)=>ot[1]-bt[1]||bt[0].localeCompare(ot[0]))))};var it;return Et.clear(),Lt.clear(),ct=0,Xe})();console.info(`[markstream-vue][perf] ${$}`,pe?$n($t({},ee),{layoutReads:pe}):ee)}Ue([()=>_.indexKey,()=>_.customId],()=>{var $,ee;vt(),Rt.value=!1,qt.value=!(($=i.nodes)!=null&&$.length)&&Ze.value!==!0&&!!i.content,Ut=(ee=je.value)!=null?ee:"",Ie=Ut.length>0},{flush:"sync"}),Ue([()=>i.content,()=>i.nodes,Ze],([$,ee,pe])=>{!ee?.length&&pe!==!0&&$&&(qt.value=!0)},{flush:"sync",immediate:!0}),Ue([je,()=>i.nodes,Ze],([$,ee,pe])=>{const ge=$??"";return ee?.length||pe===!0?(vt(),Rt.value=!1,Ut=ge,void(Ie=!0)):(ge.length>0&&(qt.value=!0),Ie?(Ut&&ge.length>Ut.length&&ge.startsWith(Ut)?(Mt.value=!0,Rt.value=!0,V&&(qe(),Pe=window.setTimeout(()=>{var Ne;Pe=null,lt.value===!0||(Ne=i.nodes)!=null&&Ne.length||(vp(),Mt.value=!1,Qu())},1200))):(ge.length"u")return null;const We=window;if(We.__markstreamLayoutReadPerformance)return We.__markstreamLayoutReadPerformance;const Xe={total:0,maxPerFrame:0,byLabel:{}};return We.__markstreamLayoutReadPerformance=Xe,Xe})();Ne&&(Ne.total=Number(Ne.total||0)+1,Ne.byLabel[ge]=Number(Ne.byLabel[ge]||0)+1,Ne.currentFrameTotal=Number(Ne.currentFrameTotal||0)+1,Ne.frameScheduled||(Ne.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>mt(Ne),0):queueMicrotask(()=>mt(Ne)):window.requestAnimationFrame(()=>mt(Ne))))})($),Le||(Le=!0,V&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(Ge):typeof queueMicrotask!="function"?setTimeout(Ge,0):queueMicrotask(Ge)))}function zt($,ee){return Wt($),ee()}const xn=_.customId?`renderer-${_.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,zn=(function($){const ee=new Map;return{scope:$,cache:ee,clear:()=>ee.clear()}})(xn),io=xn;si(kW,zn);const yi=ys(()=>_.customId),{effectiveCustomHtmlTagsSet:Mo,mergedParseOptions:st,parsedNodes:Ye,getParsedNodesDirtyStartIndex:at,getParsedNodesRevision:Nn}=_ke(_,{instanceMsgId:xn,renderContent:je,effectiveFinal:lt,smoothStreamingEnabled:me,debugPerformanceEnabled:Se,customComponentsMap:yi,logPerf:It});Ue(Ye,()=>{Mt.value||zn.clear(),W.value+=1},{immediate:!0});const At=D(()=>({customId:_.customId,customHtmlTags:st.value.customHtmlTags,parseOptions:_.parseOptions,customMarkdownIt:_.customMarkdownIt,htmlPolicy:he.value,viewportPriority:_.viewportPriority,viewportPriorityOptions:Te.value,mode:c.value,domMode:_.domMode,codeRenderer:m.value,codeBlockStream:_.codeBlockStream,codeBlockDarkTheme:_.codeBlockDarkTheme,codeBlockLightTheme:_.codeBlockLightTheme,codeBlockMonacoOptions:_.codeBlockMonacoOptions,renderCodeBlocksAsPre:_.renderCodeBlocksAsPre,codeBlockMinWidth:_.codeBlockMinWidth,codeBlockMaxWidth:_.codeBlockMaxWidth,codeBlockProps:_.codeBlockProps,mermaidProps:_.mermaidProps,d2Props:_.d2Props,infographicProps:_.infographicProps,showTooltips:be.value,themes:_.themes,langs:_.langs,isDark:_.isDark,typewriter:f.value,smoothStreamingOptions:_.smoothStreamingOptions,parseCoalesceMs:_.parseCoalesceMs,fade:_.fade}));si("markstreamNestedRendererProps",At);const Zn=D(()=>Ye.value),Uo=D(()=>Ye.value.length),ji=U(null),Jr=U(null),lr=U(null),Xr=U(null),Yo=i.indexKey!=null&&String(i.indexKey).startsWith("list-item-"),Vo=!Yo&&_.customId?MN(_.customId):null,ar=D(()=>Vo?(Y8.value,MN(_.customId)):null),Di=D(()=>{var $;return!!(!le.value&&_.customId&&!Yo&&(($=ar.value)!=null&&$.enabled))}),Io=D(()=>!!(V&&Di.value)),ui=D(()=>{var $;return!!(!le.value&&(($=i.virtualScroll)!=null&&$.enabled))}),el=D(()=>ui.value),ur=U(!1);yn(()=>{ur.value=!0});const Yn=D(()=>!!(V&&ui.value));si("markstreamHostScrollManaged",Yn);const Jo=D(()=>!!(ur.value&&Yn.value)),oo=D(()=>Io.value||Yn.value),Fi=D(()=>Io.value||Jo.value),eo=D(()=>{var $;return oo.value&&(($=ar.value)==null?void 0:$.textEstimation)!==!1});function Kn(){const $=G.value||zt("getMeasuredContainerWidth.clientWidth",()=>{var ee;return((ee=O.value)==null?void 0:ee.clientWidth)||0});return Number.isFinite($)&&$>0?$:0}const ei=D(()=>{const $=Kn();return $>0?Math.max(1,Math.round($)):640}),oi=D(()=>{var $,ee;return!(lt.value!==!0||ui.value||c.value!=="chat"&&c.value!=="minimal"||a("maxLiveNodes")||a("liveNodeBuffer")||($=i.nodes)!=null&&$.length||qt.value||!(((ee=_.maxLiveNodes)!=null?ee:0)<=0))}),fi=D(()=>{var $;return oi.value?50:Math.max(1,($=_.maxLiveNodes)!=null?$:320)}),to=D(()=>{var $;return oi.value?16:Math.max(0,($=_.liveNodeBuffer)!=null?$:60)}),Dn=D(()=>{var $;return!le.value&&_.nodeVirtual!==!1&&!((($=_.maxLiveNodes)!=null?$:0)<=0&&!oi.value)&&(_.nodeVirtual===!0?Ye.value.length>0:Ye.value.length>fi.value)}),Ls=D(()=>Dn.value||Io.value||Yn.value),tl=D(()=>_.viewportPriority!==!1),ks=D(()=>!!tl.value&&!Q.value);var Mr;Mr=D(()=>tl.value),si(fW,Mr);const Bi=D(()=>{var $;return!(le.value||_.deferNodesUntilVisible===!1||(($=_.maxLiveNodes)!=null?$:0)<=0||Dn.value||Ye.value.length>900||_.viewportPriority===!1)}),Mi=lye($=>{var ee;return fe((ee=$??O.value)!=null?ee:null)},tl),{requestFrame:Zi,cancelFrame:xi,hasIdleCallback:yo,isTestEnv:so}=(function($){const ee=$.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,pe=$.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,ge=$.isClient&&typeof window.requestIdleCallback=="function",Ne=(function(){var We;if(typeof globalThis>"u"||!("process"in globalThis))return;const Xe=(We=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:We.value;return Xe?.env})();return{requestFrame:ee,cancelFrame:pe,hasIdleCallback:ge,isTestEnv:Ne?.NODE_ENV==="test"}})({isClient:V}),Bo=D(()=>lt.value===!0&&!ui.value),{resolvedBatchSize:Ns,resolvedInitialBatch:Xo,batchingEnabled:Ql,incrementalRenderingActive:js,renderedCount:no,previousRenderContext:Tl,adaptiveBatchSize:Oe,previousBatchConfig:X}=(function($,ee){var pe;const ge=D(()=>{var yt;const et=Math.trunc((yt=$.renderBatchSize)!=null?yt:80);return Number.isFinite(et)?Math.max(0,et):0}),Ne=D(()=>{var yt;const et=Math.trunc((yt=$.initialRenderBatchSize)!=null?yt:ge.value);return Number.isFinite(et)?Math.max(0,et):ge.value}),We=D(()=>!ee.renderAsFragment.value&&$.batchRendering!==!1&&ge.value>0&&ee.isClient&&!ee.isTestEnv),Xe=U(0),it=U({key:$.indexKey,total:0}),bt=U(Math.max(1,ge.value||1)),ot=D(()=>{var yt,et,pt;return We.value&&!((yt=ee.continuousStreaming)!=null&&yt.value)&&!((et=ee.forceFullRenderFinalContent)!=null&&et.value)&&((pt=$.maxLiveNodes)!=null?pt:0)<=0}),ht=U({batchSize:ge.value,initial:Ne.value,delay:(pe=$.renderBatchDelay)!=null?pe:16,enabled:ot.value});return{resolvedBatchSize:ge,resolvedInitialBatch:Ne,batchingEnabled:We,incrementalRenderingActive:ot,renderedCount:Xe,previousRenderContext:it,adaptiveBatchSize:bt,previousBatchConfig:ht}})(_,{isClient:V,isTestEnv:so,renderAsFragment:le,forceFullRenderFinalContent:Bo,continuousStreaming:D(()=>Rt.value&<.value!==!0)}),ue=D(()=>{var $;return!le.value&&_.batchRendering!==!1&&Ns.value>0&&!so&&(($=_.maxLiveNodes)!=null?$:0)<=0&&!Bo.value}),nt=D(()=>ue.value),kt=D(()=>oo.value||nt.value),Gt=D(()=>{var $;return kt.value&&(($=ar.value)==null?void 0:$.codeBlockEstimation)!==!1}),Bn=new Map,On=new Map,Gi=new WeakMap;let Ri=null;const Hi=new WeakMap,Oi=new Map,cr=[];let ko=[],bs=[],Ii=-1;const dr=Ga(cr),ro=new Set,Uu=U(0);let bo=0;const Yl=U(0),Xa=D(()=>(Yl.value,Array.from(Bn.entries()).sort(($,ee)=>$[0]-ee[0]))),Ir=U(null),wo=U(null);let Ds,El=null,eu=0,Tr=null;function lo(){Ds.markFallbackHeightPrefixDirty()}function tu($){return Ds.getFallbackNodeHeight($)}function Hs($,ee){return Ds.estimateHeightRange($,ee)}function Ro($){return Ds.estimateIndexForOffset($)}const{activeRestoreAnchor:es,getRelativeScrollTopWithinContainer:nl,setRelativeScrollTopWithinContainer:Jl,resolveAnchorOffset:Xl,clearRestoreReconcile:Er,scheduleRestoreReconcile:il,captureRestoreAnchor:nu,restoreAnchor:Sa,getAnchorDrift:Vu}=(function($){const{isClient:ee,containerRef:pe,parsedNodeCount:ge,requestFrame:Ne,cancelFrame:We,resolveScrollContainer:Xe,getNormalizedScrollTop:it,getOffsetTopWithinRoot:bt,isReverseFlexScrollRoot:ot,estimateIndexForOffset:ht,estimateHeightRange:yt,getFallbackNodeHeight:et,clamp:pt}=$,St=U(null);let Ct=null,Vt=[];function Ft(){const Sn=Xe(),Vn=pe.value;if(!Sn||!Vn)return null;const ti=Sn.ownerDocument||Vn.ownerDocument||document;if(Sn===ti.documentElement||Sn===ti.body||Sn===ti.scrollingElement){const qi=Vn.getBoundingClientRect();return Math.max(0,-qi.top)}return Math.max(0,it(Sn,ti,!1)-bt(Vn,Sn))}function sn(Sn){var Vn;const ti=Xe(),qi=pe.value;if(!ti||!qi)return;const Zs=Math.max(0,Sn),Fs=ti.ownerDocument||qi.ownerDocument||document,Ia=Fs.defaultView||(typeof window<"u"?window:null);if(ti===Fs.documentElement||ti===Fs.body||ti===Fs.scrollingElement){const lu=it(ti,Fs,!0)+qi.getBoundingClientRect().top;return void((Vn=Ia?.scrollTo)==null||Vn.call(Ia,0,Math.max(0,lu+Zs)))}EN(ti,Fs,bt(qi,ti)+Zs,{isReverseFlexScrollRoot:lu=>{var Qm;return(Qm=ot?.(lu))!=null&&Qm},getNormalizedScrollTop:it})}function hn(Sn){const Vn=ge.value,ti=pt(Sn.nodeIndex,0,Math.max(0,Vn-1));return yt(0,ti)+Math.max(0,Sn.offsetWithinNodePx)}function An(){if(Ct!=null&&(We?.(Ct),Ct=null),ee)for(const Sn of Vt)window.clearTimeout(Sn);Vt=[]}function bn(Sn){const Vn=hn(Sn),ti=Ft();ti!=null&&Math.abs(ti-Vn)<=.5||sn(Vn)}return{activeRestoreAnchor:St,getRelativeScrollTopWithinContainer:Ft,setRelativeScrollTopWithinContainer:sn,resolveAnchorOffset:hn,clearRestoreReconcile:An,applyRestoreAnchor:bn,scheduleRestoreReconcile:function(){St.value&&ee&&Ct==null&&(Ct=Ne?Ne(()=>{Ct=null,St.value&&bn(St.value)}):null,Ct==null&&St.value&&bn(St.value))},captureRestoreAnchor:function(){const Sn=Ft(),Vn=ge.value;if(Sn==null||Vn<=0)return null;const ti=pt(ht(Sn+1),0,Vn-1),qi=yt(0,ti),Zs=et(ti);return{nodeIndex:ti,offsetWithinNodePx:pt(Sn-qi,0,Math.max(0,Zs-1))}},restoreAnchor:function(Sn){const Vn=ge.value;if(St.value={nodeIndex:pt(Sn.nodeIndex,0,Math.max(0,Vn-1)),offsetWithinNodePx:Math.max(0,Sn.offsetWithinNodePx)},An(),bn(St.value),ee)for(const ti of[0,120,280,480])Vt.push(window.setTimeout(()=>{St.value&&bn(St.value)},ti))},getAnchorDrift:function(Sn){const Vn=Ft();return Vn==null?null:Vn-hn(Sn)}}})({isClient:V,containerRef:O,parsedNodeCount:Uo,requestFrame:Zi,cancelFrame:xi,resolveScrollContainer:()=>Ir.value||ke(),getNormalizedScrollTop:De,getOffsetTopWithinRoot:ie,isReverseFlexScrollRoot:Ce,estimateIndexForOffset:Ro,estimateHeightRange:Hs,getFallbackNodeHeight:tu,clamp:Ks}),{nodeHeights:ws,heightStats:ts,heightTreeSize:_a,heightSumTree:kf,heightKnownTree:iu,averageNodeHeight:ou,resetHeightMeasurements:Z,pruneHeightMeasurements:we,rebuildHeightTrees:$e,recordNodeHeight:Ve,removeNodeHeights:Qe,exportHeightCache:Ke,importHeightCache:rt,fenwickRangeSum:Ot}=(function($={}){const ee=ho({}),pe=ho({total:0,count:0}),ge=U(0),Ne=U([]),We=U([]);function Xe(){for(const et of Object.keys(ee))delete ee[Number(et)];pe.total=0,pe.count=0,ge.value=0,Ne.value=[],We.value=[]}function it(et,pt,St){for(let Ct=pt+1;Ct0;Ct-=Ct&-Ct)St+=et[Ct];return St}function ot(et){ge.value=et;const pt=new Array(et+1).fill(0),St=new Array(et+1).fill(0);for(const[Ct,Vt]of Object.entries(ee)){const Ft=Number(Ct),sn=Number(Vt);!Number.isFinite(Ft)||Ft<0||Ft>=et||!Number.isFinite(sn)||sn<=0||(it(pt,Ft,sn),it(St,Ft,1))}Ne.value=pt,We.value=St}function ht(et){if(!Number.isInteger(et)||et<0)return!1;const pt=ee[et];if(!Number.isFinite(pt)||pt<=0)return!1;if(delete ee[et],pe.total=Math.max(0,pe.total-pt),pe.count=Math.max(0,pe.count-1),ge.value>et){const St=Ne.value,Ct=We.value;St.length&&Ct.length&&(it(St,et,-pt),it(Ct,et,-1))}return!0}const yt=D(()=>pe.count>0?Math.max(12,pe.total/pe.count):32);return{nodeHeights:ee,heightStats:pe,heightTreeSize:ge,heightSumTree:Ne,heightKnownTree:We,averageNodeHeight:yt,resetHeightMeasurements:Xe,pruneHeightMeasurements:function(et){if(et<=0)return void Xe();let pt=0,St=0;for(const[Ct,Vt]of Object.entries(ee)){const Ft=Number(Ct),sn=Number(Vt);!Number.isFinite(Ft)||Ft<0||Ft>=et||!Number.isFinite(sn)||sn<=0?delete ee[Ft]:(pt+=sn,St++)}pe.total=pt,pe.count=St},rebuildHeightTrees:ot,recordNodeHeight:function(et,pt,St={}){(function(Ct,Vt,Ft={}){var sn;if(!Number.isFinite(Vt)||Vt<=0)return!1;const hn=ee[Ct];if(hn&&(Ft.allowShrink===!1&&VtCt){const An=Ne.value,bn=We.value;if(An.length&&bn.length)if(hn){const Sn=Vt-hn;Sn!==0&&it(An,Ct,Sn)}else it(An,Ct,Vt),it(bn,Ct,1)}Ft.notify!==!1&&((sn=$.onHeightRecorded)==null||sn.call($))})(et,pt,$n($t({},St),{notify:!0}))},removeNodeHeight:function(et,pt={}){var St;const Ct=ht(et);return Ct&&pt.notify!==!1&&((St=$.onHeightRecorded)==null||St.call($)),Ct},removeNodeHeights:function(et,pt={}){var St;let Ct=0;for(const Vt of et)ht(Number(Vt))&&Ct++;return Ct>0&&pt.notify!==!1&&((St=$.onHeightRecorded)==null||St.call($)),Ct},exportHeightCache:function(){return Object.entries(ee).map(([et,pt])=>({index:Number(et),height:Number(pt)})).filter(et=>Number.isFinite(et.index)&&et.index>=0&&Number.isFinite(et.height)&&et.height>0).sort((et,pt)=>et.index-pt.index)},importHeightCache:function(et,pt={}){var St;if(!Array.isArray(et))return;const Ct=ge.value;let Vt=!1;if(pt.mode!=="merge"){const Ft=Object.keys(ee);if(Ft.length>0){for(const sn of Ft)delete ee[Number(sn)];Vt=!0}}for(const Ft of et){const sn=Number(Ft.index),hn=Number(Ft.height);if(!Number.isInteger(sn)||sn<0||Ct>0&&sn>=Ct||!Number.isFinite(hn)||hn<=0)continue;const An=ee[sn];An&&Math.abs(An-hn)<=1||(ee[sn]=hn,Vt=!0)}Vt&&((function(){let Ft=0,sn=0;const hn=ge.value;for(const[An,bn]of Object.entries(ee)){const Sn=Number(An),Vn=Number(bn);!Number.isFinite(Sn)||Sn<0||hn>0&&Sn>=hn||!Number.isFinite(Vn)||Vn<=0?delete ee[Sn]:(Ft+=Vn,sn++)}pe.total=Ft,pe.count=sn})(),Ct>0&&ot(Ct),(St=$.onHeightRecorded)==null||St.call($))},fenwickRangeSum:function(et,pt,St){if(St<=pt)return 0;const Ct=bt(et,St-1);return pt<=0?Ct:Ct-bt(et,pt-1)}}})({onHeightRecorded:()=>{lo(),Yn.value&&qm(),es.value&&il(),wo.value&&pp(),ao("node-resize")}});function Yt($){Number.isInteger($)&&$>=0&&ro.add($)}function un($){for(const ee of $)Yt(Number(ee))}function Wn($){bo++;let ee=!0;try{const pe=$();return ee=pe!==!1,pe}finally{bo--,bo===0&&ee&&Uu.value++}}function jn(){ko=[],bs=[],Ii=-1,ro.clear(),dr.value=cr}function dn(){jn(),Wn(()=>Z()),Oi.clear()}function En($){!Number.isInteger($)||$<0||$>=Ye.value.length||Oi.set($,Dm($))}function Pn($,ee,pe={}){const ge=ws[$];Yt($),Ve($,ee,pe);const Ne=ws[$];return Object.is(ge,Ne)?(ro.delete($),!1):(Ne&&Ne>0?En($):ge&&Oi.delete($),!0)}function In($,ee){const pe=zt("getNodeLayoutHeight.slot.offsetHeight",()=>{var ge,Ne;return(Ne=(ge=Bn.get($))==null?void 0:ge.offsetHeight)!=null?Ne:0});return pe>0?pe:zt("getNodeLayoutHeight.content.offsetHeight",()=>ee.offsetHeight)}function _e($,ee={}){ee.mode!=="merge"?jn():un($.map(pe=>pe.index)),Wn(()=>rt($,ee)),m3()}const Ee=D(()=>Bi.value&&ks.value),tt=D(()=>{var $;return!le.value&&_.batchRendering!==!1&&Ns.value>0&&(($=_.maxLiveNodes)!=null?$:0)<=0}),Dt=D(()=>!le.value&&ft&<.value===!0&&!Dn.value&&!ui.value&&!Di.value&&!Ee.value&&!tt.value),an=D(()=>!!Mi&&Ee.value),cn=D(()=>Dn.value||Yn.value),{focusIndex:Mn,liveRange:gn,updateLiveRange:Wi}=(function($,ee){const{parsedNodeCount:pe,virtualizationEnabled:ge,maxLiveNodesResolved:Ne,liveNodeBufferResolved:We,clamp:Xe}=ee,it=We??D(()=>{var ht;return Math.max(0,(ht=$.liveNodeBuffer)!=null?ht:60)}),bt=U(0),ot=ho({start:0,end:0});return{liveNodeBufferResolved:it,focusIndex:bt,liveRange:ot,updateLiveRange:function(){const ht=pe.value;if(!ge.value||ht===0)return ot.start=0,void(ot.end=ht);const yt=Math.min(Ne.value,ht),et=it.value,pt=Xe(bt.value-et,0,Math.max(0,ht-yt));ot.start=pt,ot.end=Math.min(ht,pt+yt)}}})(_,{parsedNodeCount:Uo,virtualizationEnabled:Dn,maxLiveNodesResolved:fi,liveNodeBufferResolved:to,clamp:Ks}),Oo=new Map,Ws=new Map,Lr=new Map,bf=[],Ma=new Map,su=new Set,Tm=U(0);let wf=!1;const Em=D(()=>(Tm.value,su.size)),fr=new Map,qs=new Map,d2=U(0),ru=D(()=>{d2.value;let $=0;for(const ee of fr.values())$+=Math.max(0,ee);return $});let Nr=null;const Cf=D(()=>{if(!Dn.value)return Ye.value.length;const $=to.value,ee=Math.max(gn.end+$,Xo.value),pe=Math.min(Ye.value.length,ee);return Math.max(no.value,pe)});function rp(){wf||(wf=!0,queueMicrotask(()=>{wf=!1,Tm.value+=1}))}function lp($,ee,pe="node-resize"){if(!V||typeof window>"u")return null;const ge=window.setTimeout(()=>{su.delete(ge)&&rp();try{ee()}finally{ao(pe)}},Math.max(0,$));return su.add(ge),rp(),ge}function Me($){V&&$!=null&&(su.delete($)&&rp(),window.clearTimeout($))}function dt(){if(V&&typeof window<"u")for(const $ of su)window.clearTimeout($);su.size&&(su.clear(),rp()),bf.length=0,Lr.clear()}function Je($){R.value=$}function wt($){z.value=$}function tn($){H.value=$}const{cancelScheduledFocusSync:vn,scheduleFocusSync:kn}=(function($){const{isClient:ee,containerRef:pe,virtualizationEnabled:ge,requestFrame:Ne,cancelFrame:We,syncFocusToScroll:Xe}=$;let it=null;function bt(){var ht,yt,et;return(et=(yt=(ht=pe.value)==null?void 0:ht.ownerDocument)==null?void 0:yt.defaultView)!=null?et:typeof window<"u"?window:null}function ot(){if(!it)return;const ht=bt();it.viaTimeout?ht?ht.clearTimeout(it.id):clearTimeout(it.id):We?.(it.id),it=null}return{cancelScheduledFocusSync:ot,scheduleFocusSync:function(ht={}){if(!ge.value)return;if(!ee)return void Xe(!0);if(ht.immediate)return ot(),void Xe(!0);if(it)return;const yt=()=>{it=null,Xe()};if(Ne)return void(it={id:Ne(yt),viaTimeout:!1});const et=bt();it={id:et?et.setTimeout(yt,16):setTimeout(yt,16),viaTimeout:!0}}}})({isClient:V,containerRef:O,virtualizationEnabled:Dn,requestFrame:Zi,cancelFrame:xi,syncFocusToScroll:function($=!1){var ee;if(!Dn.value)return;const pe=Ir.value||ke();if(!pe)return;const ge=pe.ownerDocument||((ee=O.value)==null?void 0:ee.ownerDocument)||document,Ne=ge?.defaultView||(typeof window<"u"?window:null),We=pe===ge?.documentElement||pe===ge?.body,Xe=Ye.value.length;if(Xe<=0)return;if(!We&&Xe>0&&Ce(pe)){const Ct=zt("syncFocusToScroll.clientHeight",()=>pe.clientHeight||0),Vt=zt("syncFocusToScroll.scrollTop",()=>pe.scrollTop),Ft=Vt<0?-Vt:Vt;return void f2(Ks((it=Math.max(0,Ft)+.5*Math.max(0,Ct),Ds.estimateIndexForOffsetFromEnd(it)),0,Math.max(0,Xe-1)),$)}var it;const bt=(function(Ct,Vt,Ft,sn){const hn=O.value;if(!hn)return null;const An=sn?0:zt("syncFocusToScroll.model.root.getBoundingClientRect",()=>Ct.getBoundingClientRect().top),bn=zt("syncFocusToScroll.model.container.getBoundingClientRect",()=>hn.getBoundingClientRect().top),Sn=Math.max(0,An-bn),Vn=sn?zt("syncFocusToScroll.model.viewport.clientHeight",()=>{var ti,qi,Zs,Fs;return(Fs=(Zs=(qi=Ft?.innerHeight)!=null?qi:(ti=Vt.documentElement)==null?void 0:ti.clientHeight)!=null?Zs:Ct.clientHeight)!=null?Fs:0}):zt("syncFocusToScroll.model.root.clientHeight",()=>Ct.clientHeight);return Ks(Ro(Sn+.5*Math.max(0,Vn)),0,Math.max(0,Ye.value.length-1))})(pe,ge,Ne,We);if(bt!=null)return void f2(bt,$);const ot=We?null:zt("syncFocusToScroll.root.getBoundingClientRect",()=>pe.getBoundingClientRect()),ht=We?0:ot.top,yt=We?zt("syncFocusToScroll.viewport.clientHeight",()=>{var Ct,Vt;return(Vt=(Ct=Ne?.innerHeight)!=null?Ct:pe.clientHeight)!=null?Vt:0}):ot.bottom,et=Xa.value;let pt=null,St=null;for(const[Ct,Vt]of et){if(!Vt)continue;const Ft=zt("syncFocusToScroll.slot.getBoundingClientRect",()=>Vt.getBoundingClientRect());Ft.bottom<=ht||Ft.top>=yt||(pt==null&&(pt=Ct),St=Ct)}if(pt==null||St==null){const Ct=O.value;if(!Ct)return;const Vt=We?{top:0}:zt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>pe.getBoundingClientRect()),Ft=zt("syncFocusToScroll.fallback.scrollTop",()=>De(pe,ge,We)),sn=We?(()=>{const An=zt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>Ct.getBoundingClientRect()),bn=(We?0:Vt.top)-An.top;return Math.max(0,bn)})():(()=>{const An=ie(Ct,pe);return Math.max(0,Ft-An)})(),hn=We?zt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var An,bn,Sn,Vn;return(Vn=(Sn=(bn=Ne?.innerHeight)!=null?bn:(An=ge?.documentElement)==null?void 0:An.clientHeight)!=null?Sn:pe.clientHeight)!=null?Vn:0}):zt("syncFocusToScroll.fallback.root.clientHeight",()=>pe.clientHeight);return void f2(Ks(Ro(sn+.5*Math.max(0,hn)),0,Math.max(0,Ye.value.length-1)),!0)}f2(Math.round((pt+St)/2),$)}}),{visibleNodeIndices:Jn,nodeVisibilityHandles:_n,nodeVisibilityWatchStops:Qi,nodeVisibilityFallbackTimers:Dr,clearVisibilityFallback:Us,markNodeVisible:Vs,cleanupNodeVisibility:Ku,destroyNodeVisibilityState:Zu}=Mke({isClient:V,shouldTrackVisibleNodeIndices:()=>Ee.value,shouldCleanupNodeVisibility:()=>Dn.value,onNodeMarkedVisible:$=>{Dn.value?kn():Mn.value=Ks($,0,Math.max(0,Ye.value.length-1))},onNodeVisibilityCleaned:$=>{Bn.delete($)&&D_()}}),{cleanupScrollListener:r_,setupScrollListener:OG}=(function($){const{isClient:ee,virtualizationEnabled:pe,listenerEnabled:ge,scrollRootElement:Ne,resolveScrollContainer:We,scheduleFocusSync:Xe,onScroll:it}=$;let bt=null,ot=null;function ht(){bt&&(bt(),bt=null),ot=null,Ne.value=null}function yt(et){const pt=$.getScrollTop?$.getScrollTop(et):et.scrollTop;return Math.max(0,Number.isFinite(pt)?Math.abs(pt):0)}return{cleanupScrollListener:ht,setupScrollListener:function(){if(!ee)return;if(!((et=ge?.value)!=null?et:pe.value))return void ht();var et;const pt=We();if(!pt)return void ht();if(Ne.value===pt&&bt)return;ht(),ot=yt(pt);const St=()=>{if(it?.(),pe.value){const Ct=(function(Vt){const Ft=yt(Vt),sn=ot;ot=Ft;const hn=Math.max(480,.75*(Vt.clientHeight||0));return sn==null?Ft>hn?{immediate:!0}:void 0:Math.abs(Ft-sn)>hn?{immediate:!0}:void 0})(pt);Ct?Xe(Ct):Xe()}};pt.addEventListener("scroll",St,{passive:!0}),Ne.value=pt,bt=()=>{pt.removeEventListener("scroll",St)}}}})({isClient:V,virtualizationEnabled:Dn,listenerEnabled:cn,scrollRootElement:Ir,resolveScrollContainer:ke,scheduleFocusSync:kn,onScroll:function(){const $=wo.value;if(!$)return;const ee=Nm();if(!ee||(function(ge){if($m()>=eu)return Tr=null,!1;const Ne=Tr;if(Ne==null)return!0;const We=Math.abs(ge.scrollTop-Ne)<=2;return We||(Tr=null),We})(ee))return;const pe=w_(ee);pe!=null?(pe<-32||Math.abs(Math.max(0,pe)-Math.max(0,$.distanceFromBottomPx))>32)&&hp("restore"):hp("restore")},getScrollTop:$=>{var ee;const pe=$.ownerDocument||((ee=O.value)==null?void 0:ee.ownerDocument)||document,ge=$===pe.documentElement||$===pe.body||$===pe.scrollingElement;return zt("scrollListener.getScrollTop",()=>De($,pe,ge))}});function f2($,ee=!1){const pe=Ks($,0,Math.max(0,Ye.value.length-1));!ee&&Math.abs(pe-Mn.value)<=1||(Mn.value=pe,Wi())}function Ks($,ee,pe){return Math.min(Math.max($,ee),pe)}function K4($=Ye.value.length){const ee=at();return!Number.isInteger(ee)||ee<0?$:Ks(ee,0,$)}function Z4($){return $?.firstElementChild}function l_($,ee){var pe;return $?(pe=$.matches)!=null&&pe.call($,ee)?$:$.querySelector(ee):null}function $G($,ee){$<1||$>6||(j[$]=ee)}function a_(){if(!oo.value)return void(G.value=0);const $=zt("updateExperimentContainerWidth.clientWidth",()=>{var ee,pe;return(pe=(ee=O.value)==null?void 0:ee.clientWidth)!=null?pe:0});G.value=$>0?$:0}let Lm=null;function G4(){Lm?.disconnect(),Lm=null}const u_=Dg("ViewportDeferredMarkdownCodeBlockNode",_u({loader:()=>co(null,null,function*(){return(yield Qo(()=>import("./index5-Cs7H224C.js"),__vite__mapDeps([6,4,5]))).default}),loadingComponent:Fk,delay:0,suspensible:!1}),Fk);function c_($){return $===u_}const d_=D(()=>m.value==="pre"?cl:m.value==="shiki"?u_:U8);function f_(){var $;return(($=_.codeBlockProps)==null?void 0:$.showHeader)!==!1}function h_($,ee,pe){const ge=ws[ee],Ne=typeof ge=="number"&&ge>0;if(eo.value&&!Ne&&!(function(We){return!!yi.value.paragraph&&(We.type==="paragraph"||We.type==="list_item"||We.type==="list")})($)){const We=yW($,pe,oe.value);if(We)return We}if(Gt.value&&$.type==="code_block"){const We=(function(Xe){if(Xe.type!=="code_block")return null;const it=U_(Xe,C2(Xe));return c_(it)?"markdown":it===cl?"pre":it===d_.value||it===U8?"monaco":null})($);if(We==="monaco"||We==="markdown"||We==="pre")return(function(Xe,it){var bt,ot,ht;if(!Xe||Xe.type!=="code_block")return null;const yt=it.rendererKind,et=yt!=="pre"&&it.showHeader!==!1,pt=!!Xe.diff;let St=0,Ct=500;if(yt==="monaco"){const Ft=(bt=it.monacoOptions)!=null?bt:{},sn=e5(Xe,Ft,it.width),hn=(function(bn){const Sn=typeof bn?.fontSize=="number"&&bn.fontSize>0?bn.fontSize:12;return typeof bn?.lineHeight=="number"&&bn.lineHeight>0?bn.lineHeight:Math.round(1.5*Sn)})(Ft),An=(function(bn,Sn){var Vn,ti;const qi=typeof((Vn=bn?.padding)==null?void 0:Vn.top)=="number"?bn.padding.top:Sn?0:8,Zs=typeof((ti=bn?.padding)==null?void 0:ti.bottom)=="number"?bn.padding.bottom:Sn?0:8;return Math.max(0,qi)+Math.max(0,Zs)})(Ft,pt);Ct=typeof Ft.MAX_HEIGHT=="number"&&Ft.MAX_HEIGHT>0?Ft.MAX_HEIGHT:500,St=Math.round(sn*hn+An)}else if(yt==="markdown"){const Ft=e5(Xe);St=Math.round(21*Ft+32)}else{const Ft=e5(Xe);St=Math.round(28*Ft),Ct=Number.POSITIVE_INFINITY}const Vt=Math.max(1,Math.min(St,Ct));return $t({kind:"code-block",height:Math.round(Vt+(et?40:0)),contentHeight:Vt,rendererKind:yt},pt&&yt==="monaco"?{diffInline:J7((ot=it.monacoOptions)!=null?ot:{},(ht=it.width)!=null?ht:0)}:{})})($,{rendererKind:We,monacoOptions:_.codeBlockMonacoOptions,showHeader:f_(),width:pe})}return null}v1(()=>{if(Uu.value,bo>0)return;const $=Ye.value,ee=Nn();if(!$.length||!kt.value)return ko=[],bs=[],Ii=-1,ro.clear(),void(dr.value=cr);const pe=G.value||zt("estimatedNodeHeights.clientWidth",()=>{var ot;return((ot=O.value)==null?void 0:ot.clientWidth)||0});if(!Number.isFinite(pe)||pe<=0)return ko=[],bs=[],Ii=-1,ro.clear(),void(dr.value=cr);const ge=(function(ot){return[Math.round(ot),eo.value,Gt.value,oe.value,_.codeBlockMonacoOptions,f_(),m.value,yi.value,Y8.value]})(pe),Ne=ko.length<=$.length&&(Xe=ge,(We=bs).length===Xe.length&&We.every((ot,ht)=>Object.is(ot,Xe[ht])));var We,Xe;const it=Ne&&Ii===ee?$.length:Ne?K4($.length):0,bt=Ne?Array.from(ro):[];ko.length=$.length;for(let ot=it;ot<$.length;ot++)ko[ot]=h_($[ot],ot,pe);for(const ot of bt)ot>=0&&ot<$.length&&otdr.value);Ds=(function($){let ee=!0,pe=[0],ge="";function Ne(ht){var yt;const et=$.nodeHeights[ht];if(Number.isFinite(et)&&et>0)return et;const pt=$.parsedNodes.value[ht],St=pt?.type,Ct=!!((yt=$.hasCustomParagraphComponent)!=null&&yt.call($)),Vt=$.estimatedNodeHeights.value[ht],Ft=Vt?.height;if(!(function(hn,An,bn){return!!(bn&&An?.kind==="simple-text"&&(hn==="paragraph"||hn==="list_item"||hn==="list"))})(St,Vt,Ct)&&Number.isFinite(Ft)&&Ft>0)return Ft;const sn=mke(pt,$.getContainerWidth()||640);return St==="heading"||St==="paragraph"&&sn<=28&&(function(hn,An){if(An)return!1;const bn=hn.children;return!Array.isArray(bn)||!bn.length||bn.every(bW)})(pt,Ct)?sn:Math.max($.averageNodeHeight.value,sn)}function We(){var ht;const yt=$.parsedNodes.value.length,et=$.getPrefixCacheKeyParts().join(":");if(!ee&&ge===et)return pe;const pt=new Array(yt+1);pt[0]=0;for(let St=0;St=((yt=St[pt])!=null?yt:0))return pt-1;let Ct=0,Vt=pt-1,Ft=pt-1;for(;Ct<=Vt;){const sn=Ct+Vt>>1;((et=St[sn+1])!=null?et:0)>=ht?(Ft=sn,Vt=sn-1):Ct=sn+1}return Ft}function it(ht,yt){var et,pt;if(ht>=yt)return 0;if($.heightEstimationActive.value)return(function(Vt,Ft){var sn,hn;const An=$.parsedNodes.value.length,bn=DN(Math.trunc(Vt),0,An),Sn=DN(Math.trunc(Ft),bn,An);if(bn>=Sn)return 0;const Vn=We();return((sn=Vn[Sn])!=null?sn:0)-((hn=Vn[bn])!=null?hn:0)})(ht,yt);if($.heightTreeSize.value!==$.parsedNodes.value.length){let Vt=0;for(let Ft=ht;Ftbn<=0?0:$.fenwickRangeSum(Ct,0,bn)+(bn-$.fenwickRangeSum(Vt,0,bn))*St;let sn=0,hn=et.length-1,An=et.length-1;for(;sn<=hn;){const bn=sn+hn>>1;Ft(bn+1)>=ht?(An=bn,hn=bn-1):sn=bn+1}return An}let pt=ht;for(let St=0;St0||ht++}return ht}return{markFallbackHeightPrefixDirty:function(){ee=!0},getFallbackNodeHeight:Ne,estimateHeightRange:it,estimateIndexForOffset:bt,estimateIndexForOffsetFromEnd:function(ht){var yt,et;const pt=$.parsedNodes.value;if(!pt.length)return 0;if(ht<=0)return Math.max(0,pt.length-1);if($.heightEstimationActive.value){const Ct=(yt=We()[pt.length])!=null?yt:0;return Xe(Math.max(0,Ct-ht))}if($.heightTreeSize.value===pt.length){const Ct=it(0,pt.length);return bt(Math.max(0,Ct-ht))}let St=ht;for(let Ct=pt.length-1;Ct>=0;Ct--){const Vt=(et=$.nodeHeights[Ct])!=null?et:$.averageNodeHeight.value;if(St<=Vt)return Ct;St-=Vt}return 0},getEstimatedNodeHeightCount:ot,buildVirtualHeightSummary:function(ht){var yt;const et=$.parsedNodes.value.length;return{totalNodes:et,measuredCount:$.heightStats.count,estimatedCount:ot(),averageNodeHeight:$.averageNodeHeight.value,topSpacerHeight:ht.topSpacerHeight,bottomSpacerHeight:ht.bottomSpacerHeight,estimatedTotalHeight:it(0,et),width:(yt=ht.width)!=null?yt:$.getContainerWidth()}}}})({parsedNodes:Ye,nodeHeights:ws,heightStats:ts,heightTreeSize:_a,heightSumTree:kf,heightKnownTree:iu,averageNodeHeight:ou,heightEstimationActive:oo,estimatedNodeHeights:ap,getContainerWidth:Kn,hasCustomParagraphComponent:()=>!!yi.value.paragraph,getPrefixCacheKeyParts:()=>{var $;const ee=cg(G.value||zt("getFallbackHeightPrefix.clientWidth",()=>{var ge;return((ge=O.value)==null?void 0:ge.clientWidth)||0})),pe=(($=i.virtualScroll)==null?void 0:$.measurementKey)==null?"":String(i.virtualScroll.measurementKey);return[Ye.value.length,ts.count,Math.round(ts.total),Math.round(100*ou.value),pe,ee,oo.value?1:0,Y8.value,W.value,yi.value.paragraph?1:0]},fenwickRangeSum:Ot}),Ue(()=>Ye.value.length,$=>{var ee;lo(),$<=0?dn():($<_a.value&&(ee=$,jn(),Wn(()=>we(ee))),$!==_a.value&&$e($))},{immediate:!0});const PG=D(()=>{if(!Dn.value)return Ye.value.map((ge,Ne)=>({node:ge,index:Ne}));const $=Ye.value.length,ee=Ks(gn.start,0,$),pe=Ks(gn.end,ee,$);return Ye.value.slice(ee,pe).map((ge,Ne)=>({node:ge,index:ee+Ne}))}),Q4=D(()=>Dn.value?Hs(0,Math.min(gn.start,Ye.value.length)):0),Y4=D(()=>{if(!Dn.value)return 0;const $=Ye.value.length;return Hs(Math.min(gn.end,$),$)});function p_(){return Ds.buildVirtualHeightSummary({topSpacerHeight:Q4.value,bottomSpacerHeight:Y4.value,width:Af()})}function zG(){const $=Ye.value,ee=p_();return $n($t({},ee),{probe:{paragraphReady:!!oe.value.paragraph,listItemReady:!!oe.value.listItem,listWrapperOverhead:oe.value.listWrapperOverhead,headingReadyLevels:Object.entries(oe.value.headings).filter(([,pe])=>!!pe).map(([pe])=>Number(pe))},nodes:$.map((pe,ge)=>{var Ne,We,Xe,it,bt,ot,ht,yt,et;return{index:ge,type:pe.type,estimateKind:(We=(Ne=ap.value[ge])==null?void 0:Ne.kind)!=null?We:null,rendererKind:(it=(Xe=ap.value[ge])==null?void 0:Xe.rendererKind)!=null?it:null,estimatedHeight:(ot=(bt=ap.value[ge])==null?void 0:bt.height)!=null?ot:null,estimatedContentHeight:(yt=(ht=ap.value[ge])==null?void 0:ht.contentHeight)!=null?yt:null,measuredHeight:(et=ws[ge])!=null?et:null}})})}function J4(){return i.indexKey!=null?String(i.indexKey):ui.value?`virtual-${Co()}`:"markdown-renderer"}function m_($){const ee=String($),pe=`${J4()}-`;if(!ee.startsWith(pe))return null;const ge=ee.slice(pe.length).match(/^(\d+)(?:$|-)/);if(!ge)return null;const Ne=Number(ge[1]);return!Number.isInteger(Ne)||Ne<0||Ne>=Ye.value.length?null:Ne}function Co(){var $,ee,pe;const ge=($=i.virtualScroll)==null?void 0:$.sessionKey;return String(ge!=null&&ge!==""?ge:(pe=(ee=i.indexKey)!=null?ee:_.customId)!=null?pe:xn)}function ns(){var $;const ee=($=i.virtualScroll)==null?void 0:$.threadKey;return ee==null||ee===""?void 0:String(ee)}const jG=D(()=>{var $,ee,pe;return(pe=ns())!=null?pe:String((ee=($=i.indexKey)!=null?$:_.customId)!=null?ee:xn)});function X4($){var ee;return($??"")===((ee=ns())!=null?ee:"")}function Gu(){var $,ee,pe;return ee=($=i.virtualScroll)==null?void 0:$.measurementKey,pe=(function(){const ge=m.value;return(function(Ne){var We,Xe;const it=Ne.renderer,bt=it==="monaco"?Ne.codeBlockMonacoOptions:void 0,ot=Ne.codeBlockProps,ht=it==="shiki";return[Ne.isDark?"dark":"light",it==="monaco"?"code-rich":it==="pre"?"code-pre":"code-shiki",Ne.codeBlockStream===!1?"code-static":"code-stream",Bs(Ne.codeBlockMinWidth),Bs(Ne.codeBlockMaxWidth),...ht?[r2e((We=ot?.themes)!=null?We:Ne.themes,(Xe=ot?.langs)!=null?Xe:Ne.langs)]:[],Bs(bt?.fontSize),Bs(bt?.lineHeight),Bs(bt?.fontFamily),Bs(bt?.tabSize),Bs(bt?.MAX_HEIGHT),Bs(bt?.wordWrap),Bs(bt?.wrappingIndent),Bs(bt?.padding),Bs(ot?.showHeader),Bs(ot?.showCopyButton),Bs(ot?.showExpandButton),Bs(ot?.showPreviewButton),Bs(ot?.showCollapseButton),Bs(ot?.showFontSizeButtons)].join("\0")})({renderer:ge,isDark:_.isDark,codeBlockStream:_.codeBlockStream,codeBlockMinWidth:_.codeBlockMinWidth,codeBlockMaxWidth:_.codeBlockMaxWidth,codeBlockMonacoOptions:ge==="monaco"?_.codeBlockMonacoOptions:void 0,codeBlockProps:_.codeBlockProps,themes:ge==="shiki"?_.themes:void 0,langs:ge==="shiki"?_.langs:void 0})})(),[ee==null?"":String(ee),pe].join("\0")}function Af(){return Kn()}const h2=D(()=>cg(Af())),Ll=D(()=>[Gu(),h2.value].join("\0")),HG=D(()=>{var $;return ui.value?["virtual",($=ns())!=null?$:"",Co(),Ll.value].join("\0"):i.indexKey});function up(){d2.value+=1}function e3($){return!(!$||!Number.isInteger($.index)||$.index<0||$.index>=Ye.value.length||$.sessionKey!==Co()||$.threadKey!==ns()||$.layoutEpochKey!==Ll.value)}function g_($){const ee=String($),pe=qs.get(ee);return pe?e3(pe)?pe.index:null:m_(ee)}function v_($="async-node"){(fr.size||qs.size)&&(fr.clear(),qs.clear(),up(),ao($))}const cp=en(HC,null),t3={reportHeight($,ee){if(!Yn.value)return;const pe=g_($);if(pe==null)return;const ge=Oo.get(pe);if(!ge)return;const Ne=Number(ee),We=In(pe,ge);(function(Xe,it,bt={}){Wn(()=>Pn(Xe,it,bt))})(pe,Number.isFinite(Ne)&&Ne>0?Math.max(Ne,We||0):We)},markPending($){if(!Yn.value)return;const ee=m_($);ee!=null&&(function(pe,ge){var Ne;const We=qs.get(pe);if(We&&e3(We))return fr.set(pe,Math.max(0,(Ne=fr.get(pe))!=null?Ne:0)+1),up(),void ao("async-node");fr.set(pe,1),qs.set(pe,(function(Xe){return{index:Xe,sessionKey:Co(),threadKey:ns(),layoutEpochKey:Ll.value}})(ge)),up(),ao("async-node")})(String($),ee)},markSettled($){if(!Yn.value)return;const ee=String($),pe=g_($);(pe!=null||(function(ge){return fr.has(String(ge))})(ee))&&(function(ge){var Ne;const We=(Ne=fr.get(ge))!=null?Ne:0;return!(We<=0||(We<=1?(fr.delete(ge),qs.delete(ge)):fr.set(ge,We-1),up(),We===1&&ao("async-node"),0))})(ee)&&pe!=null&&Qu()}};function WG(){let $=0;for(const ee of Oo.values())$+=zt("getVisibleDomHeight.offsetHeight",()=>{var pe;return(pe=ee?.offsetHeight)!=null?pe:0});return Math.ceil(Math.max(0,$))}si(HC,{reportHeight($,ee){t3.reportHeight($,ee),cp?.reportHeight($,ee)},markPending($){t3.markPending($),cp?.markPending($)},markSettled($){t3.markSettled($),cp?.markSettled($)}});let n3,i3=null,dp=null;function p2($){return $!==!1&&$!=null&&$!==""}function y_(){return Dn.value?(function(){if(!Dn.value)return!0;const $=Ye.value.length,ee=Ks(gn.start,0,$),pe=Ks(gn.end,ee,$);if(ee>=pe)return!0;for(let ge=ee;ge=Cf.value}function o3(){return lt.value===!0&&!Mt.value&&ru.value===0&&su.size===0&&Ma.size===0&&Nr==null&&y_()}function k_(){var $,ee;if((($=i.virtualScroll)==null?void 0:$.settleMode)!=="manual"||i3===Co()&&n3===ns())return!0;const pe=(ee=i.virtualScroll)==null?void 0:ee.settledToken;return!!p2(pe)&&dp===Um(pe)}function s3(){return o3()&&k_()}function qG($,ee){return ee.totalNodes<=0?$==="final"?"final":"estimate":ee.measuredCount>=ee.totalNodes?$==="final"?"final":"measured":ee.measuredCount>0||ee.estimatedCount>0?"mixed":"estimate"}function xf($="manual",ee){const pe=p_(),ge=(function(Ne){return Ne||(lt.value!==!0?Ye.value.length>0?"streaming":"estimating":!y_()||Ma.size>0||Nr!=null?"measuring":s3()?"settled":"settling")})(ee);return{sessionKey:Co(),threadKey:ns(),phase:ge,nodeCount:pe.totalNodes,liveRange:{start:gn.start,end:gn.end},renderedCount:no.value,measuredCount:pe.measuredCount,estimatedCount:pe.estimatedCount,averageNodeHeight:pe.averageNodeHeight,topSpacerHeight:pe.topSpacerHeight,bottomSpacerHeight:pe.bottomSpacerHeight,visibleDomHeight:WG(),totalHeight:b_(),width:pe.width,final:lt.value===!0,stable:s3(),confidence:qG(ge,pe),reason:$}}function Nm(){const $=Ir.value||ke(),ee=O.value;if(!$||!ee)return null;const pe=$.ownerDocument||ee.ownerDocument||document,ge=$===pe.documentElement||$===pe.body||$===pe.scrollingElement,Ne=zt("getScrollBox.scrollTop",()=>De($,pe,ge)),We=zt("getScrollBox.scrollHeight",()=>{var it,bt,ot,ht,yt;return ge?Math.max((bt=(it=pe.documentElement)==null?void 0:it.scrollHeight)!=null?bt:0,(ht=(ot=pe.body)==null?void 0:ot.scrollHeight)!=null?ht:0,(yt=$.scrollHeight)!=null?yt:0):$.scrollHeight}),Xe=zt("getScrollBox.clientHeight",()=>{var it;return ge?((it=pe.documentElement)==null?void 0:it.clientHeight)||$.clientHeight||0:$.clientHeight});return{root:$,doc:pe,isViewportRoot:ge,scrollTop:Ne,scrollHeight:We,clientHeight:Xe}}function b_(){const $=Ye.value.length,ee=Math.max(0,Hs(0,$)),pe=zt("getRendererLogicalHeight.offsetHeight",()=>{var Ne,We;return(We=(Ne=O.value)==null?void 0:Ne.offsetHeight)!=null?We:0}),ge=Math.max(0,pe>0?pe:zt("getRendererLogicalHeight.scrollHeight",()=>{var Ne,We;return(We=(Ne=O.value)==null?void 0:Ne.scrollHeight)!=null?We:0}));return $<=0?Math.ceil(pe):Dn.value?ee>0?Math.max(1,Math.ceil(ee),(function(){let Ne=Q4.value+Y4.value;for(const We of Bn.values())We&&(Ne+=Math.max(0,zt("getVirtualizedDomLogicalHeight.offsetHeight",()=>We.offsetHeight||0)));return Math.ceil(Math.max(0,Ne))})(),(function(Ne,We){return Ne<=0||We<=0?0:We<=Ne+Math.max(512,.05*Ne)?Math.ceil(We):0})(ee,ge)):Math.max(1,Math.ceil(ge)):Yn.value?ee>0||ts.count>0||Ds.getEstimatedNodeHeightCount()>0?(js.value&&no.value,Math.max(1,Math.ceil(ge),Math.ceil(ee))):Math.ceil(ge):Math.max(1,Math.ceil(ge),Math.ceil(ee))}function w_($){const ee=O.value;if(!ee)return null;const pe=zt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>ee.getBoundingClientRect());return(function(Ne){return Ne.isViewportRoot?Ne.clientHeight:zt("getViewportBottomInRoot.getBoundingClientRect",()=>Ne.root.getBoundingClientRect().bottom)})($)-pe.bottom}function UG($={}){const ee=$.requireViewport!==!1,pe=(function(We=64){const Xe=Nm(),it=O.value;if(!Xe||!it)return!1;const bt=(function(ht){if(ht.isViewportRoot)return{top:0,bottom:ht.clientHeight};const yt=zt("getVirtualViewportRect.getBoundingClientRect",()=>ht.root.getBoundingClientRect());return{top:yt.top,bottom:yt.bottom}})(Xe),ot=zt("isRendererNearVirtualViewport.getBoundingClientRect",()=>it.getBoundingClientRect());return ot.bottom>=bt.top-We&&ot.top<=bt.bottom+We})();if(ee&&!pe)return null;const ge=(function(){const We=Nm(),Xe=O.value;if(!We||!Xe||Math.max(0,We.scrollHeight-We.scrollTop-We.clientHeight)>64)return null;const it=w_(We);return it==null?null:it>=-8&&it<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,it)}:null})();if(ge)return{anchor:ge,captured:!0};const Ne=nu();if(Ne)return{anchor:{type:"node",nodeIndex:Ne.nodeIndex,offsetWithinNodePx:Ne.offsetWithinNodePx},captured:pe};if($.allowFallback===!0){const We=(function(){const Xe=Ye.value.length;return Xe<=0?null:{type:"node",nodeIndex:Ks(Mn.value,0,Math.max(0,Xe-1)),offsetWithinNodePx:0}})();return We?{anchor:We,captured:!1}:null}return null}function r3($){let ee=2166136261;for(let pe=0;pe<$.length;pe++)ee^=$.charCodeAt(pe),ee=Math.imul(ee,16777619);return(ee>>>0).toString(36)}function VG($,ee){let pe=$;for(let ge=0;ge8192?`${ge.slice(0,8192)}...${ge.length}`:ge;return`${ge.length}:${r3(Ne)}`})($)}`;if(typeof $=="function")return"fn";if(typeof $!="object")return typeof $;if(ee.has($))return"cycle";if(pe>=6)return"max-depth";ee.add($);try{if(Array.isArray($)){if($.length<=160){const ot=[];for(let ht=0;ht<$.length;ht++)ot.push(m2($[ht],ee,pe+1));return`a:${$.length}:${ot.join(",")}`}const We=[],Xe=[],it=Math.max(0,$.length-32);let bt=2166136261;for(let ot=0;ot<$.length;ot++){const ht=m2($[ot],ee,pe+1);bt=VG(bt,ht),ot<32&&We.push(ht),ot>=it&&Xe.push(ht)}return[`a:${$.length}`,`h=${We.join(",")}`,`t=${Xe.join(",")}`,`all=${(bt>>>0).toString(36)}`].join(":")}const ge=$,Ne=Object.keys(ge).filter(We=>{const Xe=ge[We];return We!=="parent"&&We!=="el"&&We!=="component"&&(Xe==null||typeof Xe=="string"||typeof Xe=="number"||typeof Xe=="boolean"||KG.has(We))}).sort();return`o:${Ne.length}:${Ne.map(We=>`${We}=${m2(ge[We],ee,pe+1)}`).join(";")}`}finally{ee.delete($)}}let l3=-1,a3="",Sf=[2166136261];function Dm($){const ee=Ye.value[$];return ee?r3(m2(ee)):""}function ZG($,ee){let pe=$;for(let ge=0;ge>>0}function u3(){var $,ee;const pe=W.value;if(l3===pe)return a3;const ge=Ye.value.length;let Ne=K4(ge);(l3!==pe-1||Ne>ge||Sf.length>>0).toString(36),l3=pe,a3}function fp($,ee={}){var pe;const ge=ee.includeHeightCache===!0,Ne=(pe=ee.includeContentHash)!=null?pe:ge,We=ge?(function(it){const bt=(function(){var Ct,Vt;const Ft=Number((Vt=(Ct=i.virtualScroll)==null?void 0:Ct.heightCacheLimit)!=null?Vt:5e3);return!Number.isFinite(Ft)||Ft<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(Ft))})();if(!Number.isFinite(bt)||it.length<=bt)return it;const ot=new Map,ht=Ct=>{!Ct||ot.size>=bt||ot.set(Ct.index,Ct)},yt=Ye.value.length,et=Ks(gn.start-2*to.value,0,yt),pt=Ks(gn.end+2*to.value,et,yt);for(const Ct of it)Ct.index>=et&&Ct.index=0&&ot.sizeCt.index-Vt.index).slice(0,bt)})(Ke().map(it=>{var bt;const ot=Ye.value[it.index];return ot?$n($t({},it),{nodeType:String((bt=ot.type)!=null?bt:""),signature:Dm(it.index)}):null}).filter(it=>!!it)):[],Xe=UG({allowFallback:ee.allowAnchorFallback===!0,requireViewport:ee.requireViewport});return Xe||We.length||ee.includeEmptyState===!0?$n($t({sessionKey:$.sessionKey,threadKey:$.threadKey},Xe?{anchor:Xe.anchor,anchorCaptured:Xe.captured}:{anchorCaptured:!1}),{metrics:$,width:$.width,contentHash:Ne?u3():void 0,measurementKey:Gu()||void 0,heightCache:We.length?We:void 0}):null}function c3($){var ee,pe;const ge=Nm();if(!ge)return;const Ne=(function(it){const bt=O.value;if(!bt)return null;const ot=ie(bt,it.root),ht=Ye.value.length,yt=zt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>bt.offsetHeight||0),et=Math.max(0,yt>0?yt:ht>0?zt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>bt.scrollHeight||0):0),pt=b_();return ot+Math.max(et,pt)})(ge);if(Ne==null)return;const We=Math.max(0,$.distanceFromBottomPx),Xe=Math.max(0,Ne-ge.clientHeight-We);(function(it){eu=$m()+120,Tr=it})(Xe),ge.isViewportRoot?(pe=(ee=ge.doc.defaultView)==null?void 0:ee.scrollTo)==null||pe.call(ee,0,Xe):EN(ge.root,ge.doc,Xe,{isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De})}const d3=[];function C_(){if(V)for(El!=null&&(xi?.(El),El=null);d3.length;){const $=d3.pop();$!=null&&window.clearTimeout($)}}function hp($){const ee=!!wo.value;wo.value=null,eu=0,Tr=null,C_(),ee&&$&&ao($)}function pp(){if(!wo.value||!V||El!=null)return;const $=()=>{El=null;const ee=wo.value;ee&&c3(ee)};El=Zi?Zi($):null,El==null&&$()}function A_($,ee={}){const pe=Ye.value.length;return pe<=0?[]:$.filter(ge=>!(!Number.isInteger(ge.index)||ge.index<0||ge.index>=pe)&&!(!Number.isFinite(ge.height)||ge.height<=0)&&!(ee.requireSignature&&!ge.signature)&&!(ee.requireCompatibilityMetadata&&!ge.nodeType&&!ge.signature)&&(function(Ne){var We;const Xe=Ye.value[Ne.index];return!(!Xe||Ne.nodeType&&Ne.nodeType!==String((We=Xe.type)!=null?We:"")||Ne.signature&&Ne.signature!==Dm(Ne.index))})(ge))}function x_($){const ee=cg(Af()),pe=cg($);return ee!==-1&&pe!==-1&&ee===pe}function f3($){var ee;const pe=Number($?.width);if(Number.isFinite(pe)&&pe>0)return pe;const ge=Number((ee=$?.metrics)==null?void 0:ee.width);return Number.isFinite(ge)&&ge>0?ge:null}function S_($){var ee;return $.sessionKey===Co()&&!!X4($.threadKey)&&((ee=$.measurementKey)!=null?ee:"")===Gu()&&!!x_(f3($))&&!!(function(pe){const ge=pe.heightCache;return!!ge?.length&&(__(pe)?ge.some(Ne=>!!(Ne.nodeType||Ne.signature)):ge.some(Ne=>!!Ne.signature))})($)}function __($){return!!($.contentHash&&$.contentHash===u3())}function GG($){return!__($)}let _f=null,Mf=null,g2=null,Fm=null,Bm=null;function h3($){var ee;const pe=$.map(Ne=>{var We,Xe;return[Ne.index,Math.round(10*Ne.height),(We=Ne.nodeType)!=null?We:"",(Xe=Ne.signature)!=null?Xe:""].join("")}).join(""),ge=cg(Af());return[(ee=ns())!=null?ee:"",Co(),Gu(),Ye.value.length,ge,$.length,r3(pe)].join(":")}function M_($=(ee=>(ee=i.virtualScroll)==null?void 0:ee.heightCache)()){if(!Yn.value||!$?.length||Ye.value.length<=0||!x_((ee=i.virtualScroll)==null?void 0:ee.heightCacheWidth))return!1;var ee;const pe=A_($,{requireSignature:!0});if(!pe.length)return!1;const ge=h3(pe);return ge===_f?(Mf="standalone",!0):(_e(pe,{mode:"merge"}),lo(),_f=ge,Mf="standalone",zm(),ao("restore"),!0)}function p3($,ee={}){var pe,ge,Ne;if(!Yn.value||!$||$.sessionKey!==Co()||!X4($.threadKey)||Ye.value.length<=0)return!1;const We=!!((pe=$.heightCache)!=null&&pe.length)&&!v2(),Xe=!$.anchor||$.anchorCaptured===!1&&ee.allowUncapturedAnchor!==!0?null:$.anchor,it=ee.restoreAnchor===!0&&!!Xe&&!v2()&&Number(f3($))>0;let bt=!1;if((ge=$.heightCache)!=null&&ge.length&&S_($)){const ht=A_($.heightCache,{requireCompatibilityMetadata:!$.contentHash,requireSignature:GG($)});ht.length&&(_e(ht,{mode:"merge"}),lo(),_f=h3(ht),Mf="restore",zm(),bt=!0)}if(We||it)return!1;if(!ee.restoreAnchor||!Xe)return bt&&ao("restore"),!0;const ot=(function(ht,yt){var et;const pt=ht.anchor,St=pt?pt.type==="bottom"?`bottom:${Math.round(pt.distanceFromBottomPx)}`:`node:${pt.nodeIndex}:${Math.round(pt.offsetWithinNodePx)}`:"none";return[(et=ns())!=null?et:"",Co(),Gu(),h2.value,yt,St].join(":")})($,(Ne=ee.restoreToken)!=null?Ne:"imperative");return g2===ot?(bt&&ao("restore"),!0):(g2=ot,(function(ht){const yt=()=>{if(ht.type==="node")return hp(),void Sa({nodeIndex:ht.nodeIndex,offsetWithinNodePx:ht.offsetWithinNodePx});if(Er(),es.value=null,wo.value=ht,C_(),c3(ht),V)for(const et of[0,120,280,480])d3.push(window.setTimeout(()=>{const pt=wo.value;pt&&c3(pt)},et))};(function(et){if(!Dn.value)return!1;const pt=Ye.value.length;return!(pt<=0||(Mn.value=et.type==="node"?Ks(et.nodeIndex,0,pt-1):pt-1,Wi(),0))})(ht)?gt(yt):yt()})(Xe),ao("restore"),!0)}function v2(){const $=Af();return Number.isFinite($)&&$>0}function I_($){var ee;return $.sessionKey===Co()&&!!X4($.threadKey)&&(Ye.value.length<=0||!(!((ee=$.heightCache)!=null&&ee.length)||v2())||!(!($.anchor&&Number(f3($))>0)||v2()))}function m3(){Oi.clear();for(const $ of Object.keys(ws)){const ee=Number($);Number.isInteger(ee)&&ee>=0&&ee{let ee=!1,pe=null;const ge=()=>{ee||(ee=!0,pe!=null&&window.clearTimeout(pe),$())};if(Zi)return Zi(ge),void(pe=window.setTimeout(ge,50));pe=window.setTimeout(ge,0)})}function g3($,ee=ns(),pe=Ll.value){return Co()===$&&ns()===ee&&Ll.value===pe}function v3(){return co(this,arguments,function*($={}){var ee,pe,ge,Ne,We;const Xe=Co(),it=ns(),bt=Ll.value,ot=(ee=$.frames)!=null?ee:2,ht=(pe=$.timeoutMs)!=null?pe:120,yt=(ge=$.reason)!=null?ge:"manual",et=$.expectedSettledTokenKey,pt=$.flushPendingTimers===!0,St=xf(yt),Ct=()=>$n($t({},St),{phase:St.final?"settling":St.phase,stable:!1,confidence:St.confidence==="final"?"mixed":St.confidence,reason:yt}),Vt=()=>g3(Xe,it,bt)&&(et==null||Pm()===et);for(let An=0;Anwindow.setTimeout(bn,An))})(ht),!Vt()||(pt&&dt(),Qu(),Rm(),!Vt()))return Ct();const Ft=o3();Ft&&(i3=Xe,n3=it,((Ne=i.virtualScroll)==null?void 0:Ne.settleMode)==="manual"&&et!=null&&p2((We=i.virtualScroll)==null?void 0:We.settledToken)&&Pm()===et&&(dp=Um(i.virtualScroll.settledToken)));const sn=Vt()&&Ft&&k_(),hn=xf(yt,sn?"final":void 0);return C3(hn,!0),hn})}let y3="content",If=null,Tf=null,k3=0,Om=null,mp=null,b3=null,w3=null;function $m(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function E_($){var ee,pe;const ge=Om;if(!ge)return!0;const Ne=(pe=(ee=i.virtualScroll)==null?void 0:ee.heightDiffThresholdPx)!=null?pe:1;return Math.abs($.totalHeight-ge.totalHeight)>Ne||$.sessionKey!==ge.sessionKey||$.phase!==ge.phase||$.stable!==ge.stable||$.final!==ge.final||$.threadKey!==ge.threadKey||$.nodeCount!==ge.nodeCount||$.measuredCount!==ge.measuredCount||$.width!==ge.width}function Pm($=(ee=>(ee=i.virtualScroll)==null?void 0:ee.settledToken)()){return Bs($)}function L_($,ee){var pe,ge;return[$,ee.sessionKey,(pe=ee.threadKey)!=null?pe:"",Gu(),u3(),Bs((ge=i.virtualScroll)==null?void 0:ge.settledToken),Math.round(ee.totalHeight),Math.round(ee.width)].join("\0")}function zm(){b3=null,w3=null,mp=null}function QG($){const ee=$.heightCache;return ee?.length?h3(ee):""}function jm($){var ee,pe,ge;const Ne=$.metrics,We=$.anchor?(Xe=$.anchor).type==="bottom"?`bottom:${Math.round(Xe.distanceFromBottomPx)}`:`node:${Xe.nodeIndex}:${Math.round(Xe.offsetWithinNodePx)}`:"none";var Xe;return[$.sessionKey,(ee=$.threadKey)!=null?ee:"",(pe=$.measurementKey)!=null?pe:Gu(),(ge=$.contentHash)!=null?ge:"",QG($),We,$.anchorCaptured?1:0,Ne.liveRange.start,Ne.liveRange.end,Ne.renderedCount,Ne.nodeCount,Math.round(Ne.totalHeight),Math.round(Ne.width),Ne.phase,Ne.stable?1:0].join("\0")}function C3($,ee=!1){if(!Yn.value||(function(Xe=!1){return!Xe&&ui.value&&!Jo.value})(ee))return;const pe=ee||E_($),ge=(function(Xe,it=!1){return it||Xe.stable||Xe.phase==="final"?{state:fp(Xe,{includeHeightCache:!0})}:{state:fp(Xe)}})($,ee),Ne=ge.state,We=!!(Ne&&(pe||(function(Xe,it=!1){return!!it||jm(Xe)!==mp})(Ne,ee)));if(pe&&(F($),Om=$,k3=$m()),Ne&&We&&(q(Ne),Ne.anchor&&P(Ne.anchor),mp=jm(Ne)),$.stable){const Xe=L_("settled",$);if(Xe!==b3){b3=Xe;const it=fp($,{includeHeightCache:!0});it&&(q(it),mp=jm(it)),(function(bt){o("render-settled",bt)})($)}}if($.phase==="final"){const Xe=L_("final",$);if(Xe!==w3){w3=Xe;const it=fp($,{includeHeightCache:!0});it&&(q(it),mp=jm(it)),(function(bt){o("render-final",bt)})($)}}}function A3(){If!=null&&(xi?.(If),If=null),Tf!=null&&V&&(window.clearTimeout(Tf),Tf=null)}function N_(){If=null,Tf=null,(function($){if(Ma.size>0||Nr!=null)return!0;switch($){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(y3)&&(Qu(),Rm()),C3(xf(y3))}function ao($){var ee,pe;if(!Yn.value||(y3=$,If!=null||Tf!=null))return;const ge=Math.max(0,(pe=(ee=i.virtualScroll)==null?void 0:ee.emitIntervalMs)!=null?pe:32),Ne=Math.max(0,ge-($m()-k3)),We=()=>{Tf=null,If=Zi?Zi(N_):null,If==null&&N_()};V&&Ne>0?Tf=window.setTimeout(We,Ne):We()}function D_(){Yl.value+=1}function y2($){if(js.value&&$>=no.value){const ee=Ye.value[$],pe=Ze.value===!0&<.value!==!0&&$>=Ye.value.length-2,ge=ee?.type==="code_block"||ee?.type==="image"||ee?.type==="mermaid"||ee?.type==="infographic";if(!pe||ge)return!1}return!Ee.value||$=ye.value&&(Q.value||(Q.value=!0,Zu()),!an.value||!Mi))return gp($),void(ee&&Vs($,!0));if(${if(Dr.delete(We),!Ee.value||Jn.value.has(We))return;const bt=Bn.get(We);if(!bt)return;const ot=ke(bt),ht=bt.ownerDocument||document,yt=ht.defaultView||window,et=!ot||ot===ht.documentElement||ot===ht.body,pt=!et&&ot?zt("nodeVisibilityFallback.root.getBoundingClientRect",()=>ot.getBoundingClientRect()):null,St=et?0:pt.top,Ct=et?zt("nodeVisibilityFallback.clientHeight",()=>{var Ft,sn;return(sn=(Ft=yt.innerHeight)!=null?Ft:ot?.clientHeight)!=null?sn:0}):pt.bottom,Vt=zt("nodeVisibilityFallback.node.getBoundingClientRect",()=>bt.getBoundingClientRect());Vt.bottom>=St-500&&Vt.top<=Ct+500&&Vs(We,!0)},1800+Xe);Dr.set(We,it)})($);let Ne=null;Ne=Ue(()=>ge.isVisible.value,We=>{if(We){Us($),Vs($,!0),Ne?.(),Qi.delete($),_n.get($)===ge&&_n.delete($);try{ge.destroy()}catch{}}},{immediate:!0}),Qi.set($,Ne),Dn.value&&kn()}function x3(){Nr=null,Wn(()=>{let $=!1;for(const[ee,pe]of Ma)Ma.delete(ee),Oo.get(ee)===pe.el&&Ws.get(ee)===pe.version&&($=Pn(ee,pe.height,{allowShrink:pe.allowShrink})||$);return $})}function vp(){Nr!=null&&(xi?.(Nr),Nr=null),Ma.clear()}function b2($,ee){(function(pe,ge,Ne){var We;if(!Number.isFinite(Ne)||Ne<=0||Oo.get(pe)!==ge)return;const Xe=Ws.get(pe);if(Xe==null)return;const it=Ye.value[pe],bt=Mt.value&<.value!==!0&&!((We=i.nodes)!=null&&We.length)&&pe>=Ye.value.length-2,ot=!(it?.loading===!0||bt),ht=Ma.get(pe),yt=ht?ht.allowShrink&&ot:ot,et=ht&&!yt?Math.max(ht.height,Ne):Ne;Ma.set(pe,{height:et,allowShrink:yt,version:Xe,el:ge}),Nr==null&&(Nr=Zi?Zi(x3):null,Nr==null&&x3())})($,ee,In($,ee))}function Qu(){for(const[$,ee]of Oo)ee&&b2($,ee)}function F_(){Ri?.disconnect(),Ri=null,On.clear()}function S3(){for(;bf.length;)Me(bf.pop())}Ue(Jo,$=>{$&&ao("content")},{flush:"post"}),t({getVirtualMetrics:xf,captureVirtualState:function($={}){var ee;return fp(xf("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:$.allowFallbackAnchor===!0,requireViewport:$.requireViewport===!0,includeEmptyState:(ee=$.includeEmptyState)==null||ee})},restoreVirtualState:function($,ee={}){const pe=ee.restoreAnchor===!0,ge=ee.restoreToken==null?"imperative":String(ee.restoreToken);Fm=$,Bm={restoreAnchor:pe,restoreToken:ge,allowUncapturedAnchor:ee.allowUncapturedAnchor===!0},!p3($,{restoreAnchor:pe,restoreToken:ge,allowUncapturedAnchor:ee.allowUncapturedAnchor===!0})&&I_($)||(Fm=null,Bm=null)},forceMeasure:function($="manual"){return co(this,null,function*(){yield gt(),yield T_(),Qu(),Rm(),yield gt();const ee=xf($);return C3(ee,!0),ee})},settle:v3,scrollToNode:function($,ee="start"){hp(),Er();const pe=Ye.value.length;if(pe<=0)return;const ge=Ks($,0,pe-1),Ne=()=>{var We;const Xe=Xl({nodeIndex:ge,offsetWithinNodePx:0}),it=tu(ge),bt=Nm(),ot=(We=bt?.clientHeight)!=null?We:0,ht=nl();let yt=Xe;if(ee==="center")yt=Xe-ot/2+it/2;else if(ee==="end")yt=Xe-ot+it;else if(ee==="nearest"&&ht!=null){if(Xe>=ht&&Xe+it<=ht+ot)return;yt=XeLs.value,$=>{if(!$){F_();for(const ee of Lr.values())for(const pe of ee)Me(pe);Lr.clear(),Ws.clear(),S3(),vp()}},{immediate:!0}),Ue(lt,$=>{$&&(function(){if(V&<.value&&Oo.size){S3();for(const ee of[80,240,640]){const pe=lp(ee,()=>{for(const[ge,Ne]of Oo)Ne&&b2(ge,Ne)},"final");pe!=null&&bf.push(pe)}}})(),ao($?"final":"content")});const YG=LN(()=>ao("content"),16),JG=LN(()=>ao("batch"),16);Ue([()=>Ye.value.length,()=>no.value],()=>{wo.value&&pp(),YG()},{flush:"post",immediate:!0}),Ue([()=>gn.start,()=>gn.end],()=>{JG()},{flush:"post"});const{cleanupBatchScheduler:XG}=(function($){const{props:ee,isClient:pe,isTestEnv:ge,parsedNodesIdentity:Ne,parsedNodeCount:We,desiredRenderedCount:Xe,datasetKey:it,batchingEnabled:bt,incrementalRenderingActive:ot,resolvedBatchSize:ht,resolvedInitialBatch:yt,renderedCount:et,adaptiveBatchSize:pt,previousRenderContext:St,previousBatchConfig:Ct,requestFrame:Vt,cancelFrame:Ft,hasIdleCallback:sn,cleanupNodeVisibility:hn,onDatasetKeyChanged:An,onDatasetChanged:bn}=$;let Sn=null,Vn="raf",ti=null,qi=0,Zs=!1,Fs=!1;const Ia=new Set,lu=new Set;function Qm(){if(pe){Sn!=null&&(Vn==="raf"&&Ft?Ft(Sn):Vn==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(Sn):Vn==="timeout"&&window.clearTimeout(Sn),Sn=null),qi+=1;for(const hr of Ia)Ft&&Ft(hr);for(const hr of lu)window.clearTimeout(hr);Ia.clear(),lu.clear(),ti=null,Zs=!1,Fs=!1}}function T2(){return typeof performance<"u"?performance.now():Date.now()}function J_(hr){(function(Yu){var zc;if(!ot.value)return;const Ju=Math.max(2,(zc=ee.renderBatchBudgetMs)!=null?zc:6),Xu=Math.max(1,ht.value||1),Ta=Math.max(1,Math.floor(Xu/4));Yu>1.5*Ju?pt.value=Math.max(Ta,Math.floor(.8*pt.value)):Yu<.6*Ju&&pt.value=Ju)return;const Xu=Math.max(1,hr),Ta=()=>{const bp=T2();Sn=null;const Ym=ti??Xu;ti=null;const wp=T2();et.value=Math.min(Ju,et.value+Ym),hn(et.value),(function(N3,E2){if(!pe)return void J_(E2);Zs=!0;const nM=++qi;gt().then(()=>{var iM;if(nM!==qi)return;const bQ=T2(),wQ=Math.max(E2,bQ-N3),oM=()=>{nM===qi&&J_(wQ)};if(Vt){let Lf=null,Cp=null,rM=!1;const lM=()=>{rM||(rM=!0,Lf!==null&&(Ia.delete(Lf),Lf=null),Cp!==null&&(lu.delete(Cp),window.clearTimeout(Cp),Cp=null),oM())};return Lf=Vt(()=>{lM()}),Ia.add(Lf),Cp=window.setTimeout(()=>{Lf!==null&&Ft&&Ft(Lf),lM()},Math.max(32,(iM=ee.renderBatchIdleTimeoutMs)!=null?iM:120)),void lu.add(Cp)}const sM=window.setTimeout(()=>{lu.delete(sM),oM()},0);lu.add(sM)})})(bp,T2()-wp)};if(!pe||sl.immediate)return void Ta();const jc=Math.max(0,(Yu=ee.renderBatchDelay)!=null?Yu:16);if(ti=ti!=null?Math.max(ti,Xu):Xu,Sn==null){if(!ge&&sn&&window.requestIdleCallback){const bp=Math.max(0,(zc=ee.renderBatchIdleTimeoutMs)!=null?zc:120);return Vn="idle",void(Sn=window.requestIdleCallback(()=>Ta(),{timeout:bp}))}if(Vt&&!ge)return Vn="raf",void(Sn=Vt(()=>{jc===0?Ta():(Vn="timeout",Sn=window.setTimeout(()=>Ta(),jc))}));Vn="timeout",Sn=window.setTimeout(()=>Ta(),jc)}}function eM(hr,sl={}){Zs?Fs=!0:hr==null?tM():X_(hr,sl)}function tM(){ot.value&&X_(bt.value?Math.max(1,Math.round(pt.value)):Math.max(1,ht.value))}return Ue([Ne,We,it,ot,ht,yt,()=>ee.renderBatchDelay],()=>{var hr;const sl=We.value,Yu=St.value,zc=it.value,Ju=!Object.is(zc,Yu.key),Xu=sl!==Yu.total,Ta=Ju||Xu;St.value={key:zc,total:sl};const jc=Ct.value,bp=(hr=ee.renderBatchDelay)!=null?hr:16,Ym=jc.batchSize!==ht.value||jc.initial!==yt.value||jc.delay!==bp||jc.enabled!==ot.value;Ct.value={batchSize:ht.value,initial:yt.value,delay:bp,enabled:ot.value},Ju&&An(sl),(Ta||Ym||!ot.value)&&Qm(),(Ta||Ym)&&(pt.value=Math.max(1,ht.value||1)),Ta&&bn();const wp=Xe.value;if(!sl)return et.value=0,void hn(0);if(!ot.value)return et.value=wp,void hn(et.value);const N3=Ju||Yu.total===0;et.value=N3||Ym?Math.min(wp,yt.value):Math.min(et.value,wp);const E2=Math.max(1,yt.value||ht.value||sl);et.value{ot.value&&(typeof sl=="number"&&hr<=sl||hr>et.value&&eM())}),{cleanupBatchScheduler:Qm}})({props:_,isClient:V,isTestEnv:so,parsedNodesIdentity:Zn,parsedNodeCount:Uo,desiredRenderedCount:Cf,datasetKey:HG,batchingEnabled:Ql,incrementalRenderingActive:js,resolvedBatchSize:Ns,resolvedInitialBatch:Xo,renderedCount:no,adaptiveBatchSize:Oe,previousRenderContext:Tl,previousBatchConfig:X,requestFrame:Zi,cancelFrame:xi,hasIdleCallback:yo,cleanupNodeVisibility:Ku,onDatasetKeyChanged:$=>{vp(),dn(),lo(),zm(),$>0&&$e($)},onDatasetChanged:()=>{Dn.value&&kn({immediate:!0})}});Ue([cn,Dn,()=>O.value,()=>Y()],([$,ee])=>{if(!$)return r_(),void vn();OG(),ee?kn({immediate:!0}):vn()},{flush:"post",immediate:!0}),Ue([()=>Ye.value.length,()=>Dn.value],$=>co(null,[$],function*([ee,pe]){pe&&ee&&V&&(yield gt(),kn({immediate:!0}))}),{flush:"post"}),Ue(oo,$=>{$&&(function(){var ee;if(ji.value&&Jr.value&&lr.value&&((ee=Xr.value)!=null&&ee[1]))return;const pe=Bt({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),ge=Bt({type:"list_item",children:[pe],raw:"- Probe paragraph text"}),Ne=Bt({type:"list",ordered:!1,items:[ge],raw:"- Probe paragraph text"});ji.value=pe,Jr.value=ge,lr.value=Ne;const We={1:null,2:null,3:null,4:null,5:null,6:null};for(let Xe=1;Xe<=6;Xe++)We[Xe]=Bt({type:"heading",level:Xe,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(Xe)} Probe heading`});Xr.value=We})()},{immediate:!0}),Ue([()=>O.value,oo],()=>{if(!oo.value)return G4(),void(G.value=0);a_(),G4(),oo.value&&O.value&&typeof ResizeObserver<"u"&&(Lm=new ResizeObserver(()=>{a_(),es.value&&il(),wo.value&&pp(),ao("resize")}),Lm.observe(O.value))},{immediate:!0}),Ue([oo,ei,Ll],()=>co(null,null,function*(){if(!oo.value)return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void lo();yield gt(),(function(){if(!oo.value||typeof window>"u")return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void lo();const $={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},ee=l_(Z4(R.value),".paragraph-node");$.paragraph=t5(R.value,ee,"pre-wrap");const pe=Z4(z.value),ge=pe?.querySelector(".paragraph-node");$.listItem=t5(z.value,ge,"pre-wrap");const Ne=zt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var Xe,it;return(it=(Xe=H.value)==null?void 0:Xe.offsetHeight)!=null?it:0}),We=zt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var Xe,it;return(it=(Xe=z.value)==null?void 0:Xe.offsetHeight)!=null?it:0});$.listWrapperOverhead=Math.max(0,Ne-We);for(let Xe=1;Xe<=6;Xe++){const it=l_(Z4(j[Xe]),`h${Xe}`);$.headings[Xe]=t5(j[Xe],it,"pre-wrap")}oe.value=$,lo()})()}),{flush:"post",immediate:!0}),Ue(()=>Ye.value.length,()=>{Dn.value&&kn({immediate:!0})}),Ue([oo,G],()=>{lo(),Dn.value&&kn({immediate:!0}),es.value&&il(),wo.value&&pp(),ao("resize")},{immediate:!1}),Ue(()=>Ee.value,$=>{if($)for(const[ee,pe]of Bn)k2(ee,pe);else if(Zu(),Dn.value)kn({immediate:!0});else for(const[ee,pe]of Bn)pe&&Vs(ee,!0)},{immediate:!1}),Ue([Fe,ye,()=>Y()],()=>{var $;($=Mi.refresh)==null||$.call(Mi);for(const[ee,pe]of Bn)k2(ee,pe)},{immediate:!1}),Ue([()=>_.viewportPriority,()=>Ye.value.length,ye],([$,ee,pe])=>{if($!==!1){if(Q.value&&(ee<=200||ee<=pe)){Q.value=!1;for(const[ge,Ne]of Bn)k2(ge,Ne)}}else Q.value=!1}),Ue(()=>no.value,()=>{Dn.value&&kn({immediate:!0})}),Ue([Mn,fi,to,()=>Ye.value.length,Dn],()=>{Wi()},{immediate:!0});let Hm=null,Wm=!1,yp=null;function qm(){Hm=null,i3=null,n3=void 0,dp=null,zm()}function _3(){vp(),dn(),lo(),Oi.clear();const $=Ye.value.length;$>0&&$e($),m3()}function M3(){A3(),dt(),Om=null,_f=null,Mf=null,g2=null,Fm=null,Bm=null,Wm=!1,qm(),v_("restore"),Er(),hp()}function Um($){var ee;return[(ee=ns())!=null?ee:"",Co(),Gu(),h2.value,Pm($),Ye.value.length,Math.round(Hs(0,Ye.value.length)),Math.round(Af()),ts.count,Math.round(ts.total)].join(":")}function B_(){return co(this,null,function*(){var $,ee,pe,ge;const Ne=($=i.virtualScroll)==null?void 0:$.settledToken,We=Pm(Ne),Xe=Co(),it=ns(),bt=Ll.value;if(Yn.value&&((ee=i.virtualScroll)==null?void 0:ee.settleMode)==="manual"&&p2(Ne))if(o3()){if(Um(Ne)!==dp&&!Wm){Wm=!0;try{const ot=yield v3({reason:"manual",expectedSettledTokenKey:We}),ht=Pm()===We;g3(Xe,it,bt)&&ot.sessionKey===Xe&&ot.threadKey===it&&ht&&ot.stable&&ot.phase==="final"&&(dp=Um((pe=i.virtualScroll)==null?void 0:pe.settledToken))}finally{Wm=!1,yield gt();const ot=(ge=i.virtualScroll)==null?void 0:ge.settledToken,ht=p2(ot)?Um(ot):"";g3(Xe,it,bt)&&ht&&dp!==ht&&B_()}}}else ao("manual")})}Ue(Yn,($,ee)=>{if($!==ee){if(!$)return M3(),void A3();M3(),_3(),yp=Ll.value,ao("content")}},{flush:"post"}),Ue([Yn,Ll],([$,ee])=>{$?yp!=null?yp!==ee&&(yp=ee,(function(pe="resize"){vp(),dn(),lo(),Oi.clear();const ge=Ye.value.length;ge>0&&$e(ge),m3(),_f=null,Mf=null,g2=null,Om=null,Wm=!1,qm(),M_(),gt(()=>{Qu(),es.value&&il(),wo.value&&pp(),ao(pe)})})("resize")):yp=ee:yp=null},{flush:"post",immediate:!0}),Ue([Yn,()=>Co(),()=>ns()],([$])=>{$&&(M3(),_3(),v_("content"),ao("content"))}),Ue([Yn,()=>Co(),()=>ns(),Ll,()=>Ye.value.length],([$])=>{$&&(function(ee="async-node"){let pe=!1;for(const[ge,Ne]of Array.from(qs.entries()))e3(Ne)||(qs.delete(ge),fr.delete(ge),pe=!0);pe&&(up(),ao(ee))})("async-node")},{flush:"post"}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.sessionKey},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>i.indexKey,()=>W.value],([$])=>{$&&(zm(),(function(ee="content"){if(!Yn.value)return;const pe=[],ge=Ye.value.length,Ne=K4(ge);for(const We of Array.from(Oi.keys())){if(We>=ge){pe.push(We);continue}if(We=ge&&Oi.delete(We);pe.length&&((function(We,Xe={}){const it=Array.from(We,Number);un(it);let bt=0;if(Wn(()=>(bt=Qe(it,Xe),bt>0)),bt>0)(function(ot){for(const ht of ot)Oi.delete(ht)})(it);else for(const ot of it)ro.delete(ot)})(pe,{notify:!1}),lo(),qm(),es.value&&il(),wo.value&&pp(),ao(ee))})("content"))},{flush:"post",immediate:!0}),Ue([Yn,()=>Ye.value.length,()=>Co(),()=>ns()],([$,ee,pe,ge],[Ne,We,Xe,it])=>{$&&Ne&&pe===Xe&&ge===it&&ee!==We&&qm()},{flush:"post"}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.heightCache},()=>{var $;return($=i.virtualScroll)==null?void 0:$.heightCacheWidth},()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>Ye.value.length,()=>Co(),G],()=>{M_()},{flush:"post",immediate:!0}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreAnchor},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>Ye.value.length,()=>Co(),G],$=>co(null,[$],function*([ee,pe]){if(!ee||!pe)return;yield gt();const ge=(function(){var Ne;const We=(Ne=i.virtualScroll)==null?void 0:Ne.restoreAnchor;return We==null||We===!1?null:We===!0?"true":String(We)})();p3(pe,{restoreAnchor:ge!=null,restoreToken:ge??void 0})}),{flush:"post",immediate:!0}),Ue([Yn,G,()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey}],([$])=>{var ee;if(!$)return;const pe=(ee=i.virtualScroll)==null?void 0:ee.restoreState;pe&&_f&&Mf==="restore"&&(S_(pe)||(_3(),_f=null,Mf=null,ao("resize")))},{flush:"post"}),Ue([Yn,()=>Ye.value.length,()=>Co(),G],$=>co(null,[$],function*([ee]){var pe;const ge=Fm,Ne=Bm;ee&&ge&&(yield gt(),!p3(ge,{restoreAnchor:Ne?.restoreAnchor===!0,restoreToken:(pe=Ne?.restoreToken)!=null?pe:"imperative",allowUncapturedAnchor:Ne?.allowUncapturedAnchor===!0})&&I_(ge)||(Fm=null,Bm=null))}),{flush:"post",immediate:!0}),Ue([Yn,lt,()=>{var $;return($=i.virtualScroll)==null?void 0:$.settleMode},()=>Co(),()=>ns(),Ll,ru,Em,()=>no.value,Cf,()=>ts.count,()=>ts.total],([$,ee,pe])=>{if(!$||ee!==!0||pe==="manual"||!s3())return;const ge=(function(){var Ne;const We=Ye.value.length;return[(Ne=ns())!=null?Ne:"",Co(),Gu(),h2.value,We,Math.round(Hs(0,We)),Math.round(Af()),ts.count,Math.round(ts.total)].join(":")})();Hm!==ge&&(Hm=ge,v3({reason:"final"}).then(Ne=>{Ne.stable||Hm!==ge||(Hm=null)}))},{flush:"post",immediate:!0}),Ue([Yn,lt,()=>{var $;return($=i.virtualScroll)==null?void 0:$.settleMode},()=>{var $;return($=i.virtualScroll)==null?void 0:$.settledToken},()=>Co(),()=>ns(),Ll,ru,Em,()=>no.value,Cf,()=>Ye.value.length,()=>ts.count,()=>ts.total],()=>{B_()},{flush:"post",immediate:!0}),Ue([()=>Ye.value.length,Dn,fi,to,()=>gn.start,()=>gn.end],([$,ee,pe,ge,Ne,We])=>{Se.value&&It("virtualization",{nodes:$,virtualization:ee,maxLiveNodes:pe,buffer:ge,focusIndex:Mn.value,scroll:ee?(()=>{const Xe=Ir.value||ke();return Xe?{reverse:Ce(Xe),scrollTop:Math.round(Xe.scrollTop),scrollTopAbs:Math.round(Math.abs(Xe.scrollTop)),scrollHeight:Math.round(Xe.scrollHeight),clientHeight:Math.round(Xe.clientHeight)}:null})():null,liveRange:{start:Ne,end:We},rendered:no.value})}),Ue([()=>_.customId],([$],ee,pe)=>{if(!$||Yo)return;const ge=(function(Ne,We){return Ne?(Cs.controllers[Ne]=We,()=>{Cs.controllers[Ne]===We&&delete Cs.controllers[Ne]}):()=>{}})($,{captureRestoreAnchor:nu,restoreAnchor:Sa,getAnchorDrift:Vu,getReport:zG});pe(()=>{ge()})},{immediate:!0}),ii(()=>{(function(){if(Yn.value)try{Qu(),Rm();const $=xf("manual");E_($)&&(F($),Om=$,k3=$m());const ee=fp($,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});ee&&(q(ee),ee.anchor&&P(ee.anchor),mp=jm(ee))}catch{}})(),XG(),Zu(),qe(),F_();for(const $ of Lr.values())for(const ee of $)Me(ee);Lr.clear(),Ws.clear(),Oi.clear(),S3(),vp(),G4(),Er(),hp(),A3(),r_(),vn()});const eQ=Dg("ViewportDeferredMermaidBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index11-DoKsjH9d.js"),__vite__mapDeps([7,5]))).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',$),cl}}),loadingComponent:UN,delay:0}),UN),tQ=Dg("ViewportDeferredInfographicBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index10-B_36ytI8.js"),[])).default}catch($){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',$),cl}}),loadingComponent:qN,delay:0}),qN),nQ=Dg("ViewportDeferredD2BlockNode",_u(()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index8-CD-QdcWW.js"),[])).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',$),cl}})),cl),R_={text:Wo,paragraph:Sh,heading:p4,code_block:U8,list:I1,list_item:M1,blockquote:d9,table:y0,definition_list:f9,footnote:h9,footnote_reference:jl,footnote_anchor:g0,admonition:v9,vmr_container:m9,hardbreak:Td,link:Vr,image:Id,thematic_break:p9,math_inline:Qa,math_block:pW,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,checkbox:zl,checkbox_input:zl,inline_code:Cr,html_inline:Hl,reference:Wr,html_block:v0},iQ=D(()=>J4()),O_=D(()=>TN(_.codeBlockProps)),oQ=D(()=>TN(_.codeBlockProps,{omit:["langs"]})),$_=D(()=>$t($t({stream:_.codeBlockStream,darkTheme:_.codeBlockDarkTheme,lightTheme:_.codeBlockLightTheme,monacoOptions:_.codeBlockMonacoOptions,themes:_.themes,langs:m.value==="shiki"?_.langs:void 0,minWidth:_.codeBlockMinWidth,maxWidth:_.codeBlockMaxWidth},typeof be.value=="boolean"?{showTooltips:be.value}:{}),oQ.value)),P_=D(()=>$t($n($t({},$_.value),{langs:_.langs}),O_.value));function z_($){return typeof $=="boolean"?$:void 0}const sQ=D(()=>{const $=_.codeBlockProps||{},ee={},pe=z_($.showLineNumbers);pe!==void 0&&(ee.showLineNumbers=pe);const ge=z_($.diffInline);ge!==void 0&&(ee.diffInline=ge);const Ne=(function(We){const Xe=Number(We);return Number.isFinite(Xe)&&Xe>0?Xe:void 0})($.reservedHeightPx);return Ne!==void 0&&(ee.reservedHeightPx=Ne),ee}),rQ=D(()=>$t($t({stream:_.codeBlockStream,darkTheme:_.codeBlockDarkTheme,lightTheme:_.codeBlockLightTheme,themes:_.themes,langs:_.langs,minWidth:_.codeBlockMinWidth,maxWidth:_.codeBlockMaxWidth},typeof be.value=="boolean"?{showTooltips:be.value}:{}),O_.value)),lQ=D(()=>$t({},_.mermaidProps||{})),j_=D(()=>$t({},_.d2Props||{})),aQ=D(()=>$t({},_.infographicProps||{})),Vm=D(()=>({typewriter:f.value,fade:_.fade,customHtmlTags:st.value.customHtmlTags})),uQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltip:be.value}:{})),cQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{})),dQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{})),fQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{}));function hQ($){return Array.isArray($.children)&&$.children.length>0}const w2=D(()=>PG.value.map($=>{var ee,pe,ge,Ne,We,Xe,it,bt;let ot=(function(Ft){var sn,hn,An,bn,Sn,Vn,ti;if(Ft.type!=="code_block")return Ft;const qi=Ft,Zs=[String((sn=qi.language)!=null?sn:""),String((hn=qi.loading)!=null?hn:""),String((An=qi.diff)!=null?An:""),String((bn=qi.code)!=null?bn:""),String((Sn=qi.originalCode)!=null?Sn:""),String((Vn=qi.updatedCode)!=null?Vn:""),String((ti=qi.raw)!=null?ti:"")].join("\0"),Fs=Hi.get(qi);if(Fs&&Fs.signature===Zs)return Fs.node;const Ia=$t({},qi);return Hi.set(qi,{signature:Zs,node:Ia}),Ia})($.node);const ht=C2(ot);let yt=U_(ot,ht);if((ot.type==="html_block"||ot.type==="html_inline")&&yt===R_[ot.type]){const Ft=ot,sn=String((ee=Ft.tag)!=null?ee:"").trim().toLowerCase()||Pj(Ft.content);if(sn){const hn=yi.value[sn];if(Mo.value.has(sn)&&hn)yt=hn,ot=$n($t({},Ft),{type:sn,tag:sn,content:Mpe(Ft.content,sn)});else if(zj((pe=Ft.content)!=null?pe:Ft.raw,sn)){const An=String((Ne=(ge=Ft.content)!=null?ge:Ft.raw)!=null?Ne:"");ot.type==="html_inline"?(yt=Wo,ot={type:"text",content:An,raw:An}):(yt=Sh,ot={type:"paragraph",children:[{type:"text",content:An,raw:An}],raw:An})}}}const et=ot.type==="code_block"&&m.value==="pre"&&yt===cl&&!I3(yi.value,ht);let pt=$t({},(function(Ft,sn,hn){const An=sn??C2(Ft);if(Ft.type==="code_block"){const bn=An?I3(yi.value,An):void 0;if(hn&&m.value==="pre"&&!bn&&hn===cl)return sQ.value;if(hn&&An&&hn===bn)return An==="mermaid"?W_(Ft):An==="infographic"?q_(Ft):An==="d2"||An==="d2lang"?j_.value:P_.value;if(hn&&hn===yi.value.code_block)return P_.value;if(c_(hn))return rQ.value}return An==="mermaid"?W_(Ft):An==="infographic"?q_(Ft):An==="d2"||An==="d2lang"?j_.value:Ft.type==="link"?uQ.value:Ft.type==="list"?cQ.value:Ft.type==="blockquote"?dQ.value:Ft.type==="table"?fQ.value:Ft.type==="code_block"?$_.value:Vm.value})(ot,ht,yt));const St=oo.value?ap.value[$.index]:null;ot.type==="code_block"&&St?.kind==="code-block"&&(pt=$n($t({},pt),et?{reservedHeightPx:(We=St.height)!=null?We:St.contentHeight}:{estimatedHeightPx:St.height,estimatedContentHeightPx:St.contentHeight,estimatedDiffInline:St.diffInline})),et||ot.type!=="code_block"||ht!=="mermaid"||i1(pt.estimatedPreviewHeightPx)!=null||(pt=$n($t({},pt),{estimatedPreviewHeightPx:Ek(Ik(String((Xe=ot.code)!=null?Xe:"")))})),et||ot.type!=="code_block"||ht!=="infographic"||i1(pt.estimatedPreviewHeightPx)!=null||(pt=$n($t({},pt),{estimatedPreviewHeightPx:Lk(Tk(String((it=ot.code)!=null?it:"")))})),ot.type==="math_block"&&(pt=$n($t({},pt),{cacheScope:io}));const Ct=(function(Ft,sn){const hn=String(Ft.type);return!Vv(hn)&&yi.value[hn]===sn})(ot,yt),Vt=Ct?Z7(ot,he.value):void 0;return $n($t({},$),{node:ot,component:yt,bindings:pt,customBindings:$t($t({},Vt??{}),pt),rendersCustomNode:Ct,hasSlotChildren:hQ(ot),slotContent:String((bt=ot.content)!=null?bt:""),isCodeBlock:ot.type==="code_block",indexKey:`${iQ.value}-${$.index}`,vnodeKey:`${jG.value}\0${$.index}\0${ot.type}`})}));function C2($){var ee;return $?.type==="code_block"?String((ee=$.language)!=null?ee:"").trim().toLowerCase():""}function I3($,ee){const pe=ee.trim().toLowerCase();if(pe)for(const ge of[pe,d4(pe),QH(pe)]){const Ne=ge&&$[ge];if(Ne)return Ne}}function H_($,ee,pe,ge){var Ne,We;const Xe=$t({},$.value);return i1(Xe.estimatedPreviewHeightPx)==null&&(Xe.estimatedPreviewHeightPx=ge(pe(String((Ne=ee?.code)!=null?Ne:"")),void 0,Xe.maxHeight==="none"?null:(We=i1(Xe.maxHeight))!=null?We:void 0)),Xe}function W_($){return H_(lQ,$,Ik,Ek)}function q_($){return H_(aQ,$,Tk,Lk)}function U_($,ee){if(!$)return eA;const pe=yi.value,ge=pe[String($.type)];if($.type==="code_block"){const Ne=ee??C2($),We=Ne?I3(pe,Ne):void 0;return We||(m.value==="pre"?pe.code_block||cl:Ne==="mermaid"?pe.mermaid||eQ:Ne==="infographic"?pe.infographic||tQ:Ne==="d2"||Ne==="d2lang"?pe.d2||nQ:ge||pe.code_block||d_.value)}return ge||R_[String($.type)]||eA}function T3($){o("click",$)}function pQ($){var ee;(ee=$.target)!=null&&ee.closest("[data-node-index]")&&o("mouseover",$)}function mQ($){var ee;(ee=$.target)!=null&&ee.closest("[data-node-index]")&&o("mouseout",$)}function V_($){o("mouseover",$)}function K_($){o("mouseout",$)}const Ef=U(null),ol=U(!1),Km=U(null),gQ=D(()=>!(_.domMode!=="minimal"||le.value||_.fade!==!1||f.value||ol.value||ue.value||Dn.value||el.value||Di.value||Bi.value||Object.keys(yi.value).length!==0));let Zm,kp=null,E3=0,A2=0,x2=0;const Z_=["code_block","admonition","table","math_block","html_block","image","thematic_break"],vQ=new Set(Z_),G_=[".typewriter-cursor",".height-estimation-probes",...Z_.map($=>`[data-node-type="${$}"]`),"script","style"].join(",");function Q_($){if(!$||typeof $!="object")return!1;const ee=$.type;return typeof ee=="string"&&vQ.has(ee)}function S2($){var ee,pe;if(!$||typeof $!="object")return 0;const ge=$,Ne=(pe=(ee=ge.raw)!=null?ee:ge.content)!=null?pe:ge.code;if(typeof Ne=="string")return Ne.length;const We=ge.children;if(Array.isArray(We))return We.reduce((it,bt)=>it+S2(bt),0);const Xe=ge.items;return Array.isArray(Xe)?Xe.reduce((it,bt)=>it+S2(bt),0):0}function _2(){Zm&&(clearTimeout(Zm),Zm=void 0)}function L3(){E3+=1,kp!=null&&(xi?.(kp),kp=null)}function Gm(){L3(),Pc(),Ef.value&&(Ef.value.style.visibility="hidden")}function yQ($){var ee;if($.nodeType!==Node.TEXT_NODE||!((ee=$.textContent)!=null?ee:"").trim())return!1;const pe=$.parentElement;return!!pe&&!pe.closest(G_)}function kQ($){let ee=$.lastChild;for(;ee;){if(yQ(ee))return ee;if(ee.nodeType===Node.ELEMENT_NODE){const pe=ee;if(!pe.matches(G_)&&pe.lastChild){ee=pe.lastChild;continue}}for(;ee&&ee!==$&&!ee.previousSibling;)ee=ee.parentNode;if(!ee||ee===$)break;ee=ee.previousSibling}return null}function Y_(){const $=w2.value;for(let ee=$.length-1;ee>=0;ee--){const pe=$[ee];if(!pe||Q_(pe.node)||!y2(pe.index))continue;const ge=Bn.get(pe.index);if(!ge)continue;const Ne=kQ(ge);if(Ne)return Ne}return null}function Pc(){Km.value&&(Km.value.classList.remove(VN),Km.value=null)}function M2(){if(d.value!=="simple"||!V||!ol.value||!O.value)return void Pc();const $=Y_(),ee=$?(function(pe){var ge;const Ne=(ge=pe.parentElement)==null?void 0:ge.closest(".text-node");return Ne instanceof HTMLElement?Ne:pe.parentElement})($):null;ee!==Km.value&&(Pc(),ee&&(ee.classList.add(VN),Km.value=ee))}function I2(){if(d.value!=="precise"||!V||!ol.value||kp!=null)return;const $=E3,ee=()=>{kp=null,$===E3&&(function(){var pe,ge;if(d.value!=="precise"||!(V&&ol.value&&O.value&&Ef.value))return;const Ne=O.value,We=Ef.value;We.style.visibility="hidden";const Xe=Y_();if(!Xe)return;let it=0,bt=0,ot=20,ht=!1;if(Xe?.textContent){const yt=Xe.textContent.length,et=document.createRange();et.setStart(Xe,Math.max(0,yt-1)),et.setEnd(Xe,yt);const pt=typeof et.getClientRects=="function"?et.getClientRects():void 0,St=(ge=pt?.[pt.length-1])!=null?ge:(pe=Xe.parentElement)==null?void 0:pe.getBoundingClientRect();if(St){const Ct=zt("typewriterCursor.root.getBoundingClientRect",()=>Ne.getBoundingClientRect());it=St.right-Ct.left+Ne.scrollLeft,bt=St.top-Ct.top+Ne.scrollTop,ot=St.height||ot,ht=!0}et.detach()}ht&&(We.style.transform=`translate(${Math.max(0,it)}px, ${Math.max(0,bt)}px)`,We.style.height=`${ot}px`,We.style.visibility="visible")})()};Zi?kp=Zi(ee):ee()}return Ue([je,()=>i.content,()=>i.nodes,()=>_.typewriter,lt],()=>co(null,null,function*(){var $,ee;if(!V||le.value||!J.value)return;if(lt.value)return ol.value=!1,_2(),void Gm();if(($=i.nodes)!=null&&$.length)return ol.value=!1,_2(),Gm(),A2=((ee=i.content)!=null?ee:"").length,void(x2=je.value.length);const pe=(function(){var it,bt;return(it=i.nodes)!=null&&it.length?i.nodes.reduce((ot,ht)=>ot+S2(ht),0):((bt=i.content)!=null?bt:"").length})(),ge=(function(){var it;return(it=i.nodes)!=null&&it.length?i.nodes.reduce((bt,ot)=>bt+S2(ot),0):je.value.length})(),Ne=!Q_(Ye.value[Ye.value.length-1]),We=pe>A2,Xe=ge>x2;if(!f.value||!Ne||!We&&!Xe)return f.value&&Ne||(ol.value=!1,Gm()),A2=pe,void(x2=ge);A2=pe,x2=ge,ol.value=!0,d.value==="precise"&&Ef.value&&(Ef.value.style.visibility="hidden"),_2(),yield gt(),d.value==="simple"?M2():(Pc(),I2()),Zm=setTimeout(()=>{Zm=void 0,ol.value=!1},3e3)}),{flush:"post",immediate:!0}),Ue(ol,$=>co(null,null,function*(){$?(yield gt(),d.value!=="simple"?(Pc(),d.value==="precise"&&I2()):M2()):Gm()}),{flush:"post"}),Ue(d,()=>co(null,null,function*(){if(V&&!le.value&&J.value&&ol.value){if(yield gt(),d.value==="simple")return L3(),void M2();Pc(),d.value!=="precise"?Gm():I2()}}),{flush:"post"}),Ue([()=>no.value,()=>gn.start,()=>gn.end],()=>co(null,null,function*(){V&&!le.value&&J.value&&ol.value&&(yield gt(),d.value!=="simple"?(Pc(),d.value==="precise"&&I2()):M2())}),{flush:"post"}),ii(()=>{_2(),L3(),Pc(),zn.clear()}),($,ee)=>{const pe=QY("NodeRenderer",!0);return p(le)?(k(!0),L(Re,{key:0},xt(w2.value,ge=>(k(),L(Re,{key:ge.vnodeKey},[ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:0,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onClick:T3,onMouseover:V_,onMouseout:K_,onCopy:ee[0]||(ee[0]=Ne=>s(Ne)),onHandleArtifactClick:ee[1]||(ee[1]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:1,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onClick:T3,onMouseover:V_,onMouseout:K_,onCopy:ee[2]||(ee[2]=Ne=>s(Ne)),onHandleArtifactClick:ee[3]||(ee[3]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(k(),L("div",{key:1,ref_key:"containerRef",ref:O,class:ze(["markstream-vue markdown-renderer",[{dark:_.isDark},{virtualized:Dn.value},{"virtual-scroll-coordinated":Jo.value},{"stable-layout":Dt.value},{"typewriter-simple-cursor":ol.value&&d.value==="simple"}]]),"data-custom-id":_.customId,onClick:T3,onMouseover:pQ,onMouseout:mQ},[Fi.value||Dn.value?(k(),L(Re,{key:0},[Fi.value?(k(),de(Fke,{key:0,width:ei.value,"flow-root":Dn.value||Jo.value,"paragraph-node":ji.value,"list-item-node":Jr.value,"list-node":lr.value,"heading-nodes":Xr.value,"set-paragraph-wrapper":Je,"set-list-item-wrapper":wt,"set-list-wrapper":tn,"set-heading-wrapper":$G},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):ne("",!0),Dn.value?(k(),L("div",{key:1,class:"node-spacer",style:on({height:`${Q4.value}px`}),"aria-hidden":"true"},null,4)):ne("",!0)],64)):ne("",!0),gQ.value?(k(!0),L(Re,{key:1},xt(w2.value,ge=>(k(),L(Re,{key:ge.vnodeKey},[y2(ge.index)?(k(),de(Po(ge.component),ci({key:0,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onMouseover:ee[4]||(ee[4]=Ne=>o("mouseover",Ne)),onMouseout:ee[5]||(ee[5]=Ne=>o("mouseout",Ne)),onCopy:ee[6]||(ee[6]=Ne=>s(Ne)),onHandleArtifactClick:ee[7]||(ee[7]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"])):ne("",!0)],64))),128)):(k(!0),L(Re,{key:2},xt(w2.value,ge=>(k(),L("div",{key:ge.vnodeKey,ref_for:!0,ref:Ne=>k2(ge.index,Ne),class:"node-slot","data-node-index":ge.index,"data-node-type":ge.node.type},[y2(ge.index)?(k(),L("div",{key:0,ref_for:!0,ref:Ne=>(function(We,Xe){var it;Xe||(function(yt){const et=`${J4()}-${yt}`;let pt=!1;for(const St of Array.from(fr.keys())){const Ct=qs.get(St);(Ct?.index===yt||St===et||St.startsWith(`${et}-`))&&(fr.delete(St),qs.delete(St),pt=!0)}pt&&(up(),ao("async-node"))})(We),Ma.delete(We),(function(yt){var et;const pt=((et=Ws.get(yt))!=null?et:0)+1;Ws.set(yt,pt)})(We);const bt=Lr.get(We);if(bt){for(const yt of bt)Me(yt);Lr.delete(We)}if((function(yt){const et=On.get(yt);et&&(Ri?.unobserve(et),Gi.delete(et),On.delete(yt))})(We),!Xe||!Ls.value)return Oo.delete(We),void Ws.delete(We);Oo.set(We,Xe);const ot=()=>{b2(We,Xe)};queueMicrotask(ot);const ht=(Ri||typeof ResizeObserver>"u"||(Ri=new ResizeObserver(yt=>{if(yt.length)for(const et of yt){const pt=Gi.get(et.target),St=On.get(pt??-1);pt!=null&&St&&b2(pt,St)}else Qu()})),Ri);if(ht&&(On.set(We,Xe),Gi.set(Xe,We),ht.observe(Xe)),typeof window<"u"){const yt=((it=Ye.value[We])==null?void 0:it.type)==="code_block"?[16,80,240,800]:lt.value?[80]:[];if(yt.length){const et=yt.map(pt=>lp(pt,ot,"node-resize")).filter(pt=>pt!=null);et.length&&Lr.set(We,et)}}})(ge.index,Ne),class:"node-content"},[ge.isCodeBlock?ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:1,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[12]||(ee[12]=Ne=>s(Ne)),onHandleArtifactClick:ee[13]||(ee[13]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:2,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[14]||(ee[14]=Ne=>s(Ne)),onHandleArtifactClick:ee[15]||(ee[15]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(k(),de(mo,{key:0,name:"fade",css:_.fade!==!1,appear:_.fade!==!1},{default:ce(()=>[ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:0,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[8]||(ee[8]=Ne=>s(Ne)),onHandleArtifactClick:ee[9]||(ee[9]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:1,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[10]||(ee[10]=Ne=>s(Ne)),onHandleArtifactClick:ee[11]||(ee[11]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(k(),L("div",{key:1,class:"node-placeholder",style:on({height:`${tu(ge.index)}px`})},null,4))],8,Oke))),128)),ol.value&&d.value==="precise"?(k(),L("span",{key:3,ref_key:"typewriterCursorRef",ref:Ef,class:"typewriter-cursor","aria-hidden":"true"},null,512)):ne("",!0),Dn.value?(k(),L("div",{key:4,class:"node-spacer",style:on({height:`${Y4.value}px`}),"aria-hidden":"true"},null,4)):ne("",!0)],42,Rke))}}})),[["__scopeId","data-v-a9489508"]]),wl=IW;wl.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",wl.__name,wl.name].filter(n=>!!n));for(const n of t)e.component(n,IW)};const ax=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),$ke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},Pke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},zke={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},jke={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},Hke={class:"admonition-title"},Wke=["aria-expanded","aria-controls"],qke=["id"],v9=Ni(ut({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const i=e,o=t,s=D(()=>{if(i.node.title&&i.node.title.trim().length)return i.node.title;const u=i.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=U(!!i.node.collapsible&&!((n=i.node.open)==null||n));function l(){i.node.collapsible&&(r.value=!r.value)}const a=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,c)=>(k(),L("div",{class:ze(["admonition",[`admonition-${i.node.kind}`]])},[x("div",{id:a,class:"admonition-legend"},[i.node.kind==="note"||i.node.kind==="info"?(k(),L("svg",$ke,[...c[1]||(c[1]=[x("circle",{cx:"12",cy:"12",r:"10"},null,-1),x("path",{d:"M12 16v-4"},null,-1),x("path",{d:"M12 8h.01"},null,-1)])])):i.node.kind==="tip"?(k(),L("svg",Pke,[...c[2]||(c[2]=[x("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),x("path",{d:"M9 18h6"},null,-1),x("path",{d:"M10 22h4"},null,-1)])])):i.node.kind==="warning"||i.node.kind==="caution"?(k(),L("svg",zke,[...c[3]||(c[3]=[x("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},null,-1),x("path",{d:"M12 9v4"},null,-1),x("path",{d:"M12 17h.01"},null,-1)])])):i.node.kind==="danger"||i.node.kind==="error"?(k(),L("svg",jke,[...c[4]||(c[4]=[x("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),x("path",{d:"M12 8v4"},null,-1),x("path",{d:"M12 16h.01"},null,-1)])])):ne("",!0),x("span",Hke,B(s.value),1),i.node.collapsible?(k(),L("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${a}-content`,onClick:l},[(k(),L("svg",{style:on({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...c[5]||(c[5]=[x("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,Wke)):ne("",!0)]),di(x("div",{id:`${a}-content`,class:"admonition-content","aria-labelledby":a},[K(p(wl),{"index-key":`admonition-${e.indexKey}`,nodes:i.node.children,"custom-id":i.customId,typewriter:i.typewriter,fade:i.fade,onCopy:c[0]||(c[0]=d=>o("copy",d))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,qke),[[Zo,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);v9.install=e=>{e.component(v9.__name,v9)};const sA=()=>Qo(()=>import("./d2_markstream-vue-yoD6TSFD.js"),[]);let fy=null,hy=sA,py=null,KN=!1,ZN=!1;function $kt(){return co(this,null,function*(){if(fy)return fy;const e=hy;return e?e===sA&&KN?null:py||(py=co(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===sA)return e===hy&&(KN=!0,(function(i){ZN||(ZN=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',i))})(n)),null;throw n}finally{e===hy&&(py=null)}return e!==hy?null:t?(fy=(function(n){var i;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(i=n.default)!=null?i:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),fy):null}),py):null})}let my=null,TW=null,gy=null;function Pkt(){return typeof TW=="function"}function zkt(){return co(this,null,function*(){if(my)return my;const e=TW;return e?gy||(gy=co(null,null,function*(){const t=yield e(),n=(function(i){var o,s,r;if(!i)return null;const l=(o=i.default)!=null?o:i,a=typeof l=="function"&&typeof((s=l.prototype)==null?void 0:s.render)=="function"?l:(r=i.Infographic)!=null?r:l?.Infographic;return typeof a=="function"?a:null})(t);return n?(my=n,my):null}).finally(()=>{gy=null}),gy):null})}const jkt=Symbol("markstreamLanguageIconResolver");function Uke(e){return new Worker("/assets/katexRenderer.worker-CO_gEm4q.js",{type:"module",name:e?.name})}function Vke(e){return new Worker("/assets/mermaidParser.worker-BFSlSHEW.js",{type:"module",name:e?.name})}let GN=!1;function EW(){GN||typeof Worker>"u"||(GN=!0,A2e(new Uke),R2e(new Vke))}EW();function md(e,t,n="/api/v1"){return`${e}${n}${t.startsWith("/")?t:`/${t}`}`}function QN(e,t){const n=new URL(`${e}/api/v1/ws`);return n.protocol=n.protocol==="https:"?"wss:":"ws:",n.searchParams.set("client_id",t),n.toString()}const ux={},zk=Symbol("resolveImage");class xu extends Error{code;requestId;details;timestamp;durationMs;constructor(t){super(t.msg),this.name="DaemonApiError",this.code=t.code,this.requestId=t.requestId,this.details=t.details,this.timestamp=t.timestamp,this.durationMs=t.durationMs}}class sa extends Error{cause;method;path;url;requestId;phase;timeoutMs;status;statusText;contentType;bodyPreview;timestamp;durationMs;constructor(t){super(t.message),this.name="DaemonNetworkError",this.cause=t.cause,this.method=t.method,this.path=t.path,this.url=t.url,this.requestId=t.requestId,this.phase=t.phase,this.timeoutMs=t.timeoutMs,this.status=t.status,this.statusText=t.statusText,this.contentType=t.contentType,this.bodyPreview=t.bodyPreview,this.timestamp=t.timestamp,this.durationMs=t.durationMs}}class cx extends Error{size;limit;constructor(t){super(`file too large to preview: ${t.size} bytes (limit ${t.limit})`),this.name="FileTooLargeError",this.size=t.size,this.limit=t.limit}}function wi(e){return e instanceof xu||typeof e=="object"&&e!==null&&e.name==="DaemonApiError"&&typeof e.code=="number"}function g4(e){return e instanceof sa||typeof e=="object"&&e!==null&&e.name==="DaemonNetworkError"&&typeof e.method=="string"&&typeof e.path=="string"}function Kke(e){return g4(e)&&typeof e.cause=="object"&&e.cause!==null&&e.cause.name==="TimeoutError"}function Zke(e){return e instanceof cx||typeof e=="object"&&e!==null&&e.name==="FileTooLargeError"&&typeof e.limit=="number"}const Gke=41301,Qke=40922;function YN(e){return wi(e)&&e.code===Qke}const oc=3e4,vy=5*6e4,JN=5*6e4,LW="0123456789ABCDEFGHJKMNPQRSTVWXYZ",rA=500,NW=40101;function XN(e,t){for(const[n,i]of Object.entries(t))if(i!==void 0)if(Array.isArray(i))for(const o of i)o!==void 0&&e.append(n,String(o));else e.set(n,String(i))}function yy(e=oc){try{return AbortSignal.timeout(e)}catch{return}}function Yke(e,t){let n="",i=e;for(let o=0;oLW[n%32]).join("")}function dg(){return`${Yke(Date.now(),10)}${Jke(16)}`}function eD(e){try{const t=[];return e.forEach((n,i)=>{typeof n=="string"?t.push({field:i,value:n}):t.push({field:i,file:n.name,size:n.size,type:n.type})}),{formData:t}}catch{return"[FormData]"}}async function n5(e){try{const t=await e.text();return t?t.length>rA?`${t.slice(0,rA)}...`:t:void 0}catch{return}}class tD{constructor(t){this.opts=t,this.tracer=t.tracer??ux}tracer;async get(t,n){return this.request("GET",t,void 0,n)}async getBlob(t,n,i){let o=md(this.opts.origin,t,this.opts.restBasePath);if(n){const c=new URLSearchParams;XN(c,n);const d=c.toString();d&&(o=`${o}?${d}`)}const s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();this.tracer.restRequest?.({method:"GET",path:t,url:o,requestId:s});let a;try{a=await fetch(o,{method:"GET",headers:r,signal:yy()})}catch(c){throw this.tracer.restFailure?.({method:"GET",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:c}),new sa({message:`Network error calling GET ${t}`,cause:c,method:"GET",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l})}if(a.ok){this.tracer.restResponse?.({method:"GET",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:0,msg:""});const c=Number(a.headers.get("content-length")??0);if(i?.maxBytes!==void 0&&c>i.maxBytes)throw a.body?.cancel(),new cx({size:c,limit:i.maxBytes});return a.blob()}let u;try{u=await a.clone().json()}catch{}throw this.checkAuthRequired(a,u?.code??0),this.tracer.restResponse?.({method:"GET",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:u?.code??a.status,msg:u?.msg??a.statusText,envelopeRequestId:u?.request_id}),new xu({code:u?.code??a.status,msg:u?.msg??a.statusText,requestId:u?.request_id??s,details:u?.details,timestamp:Date.now(),durationMs:Date.now()-l})}async post(t,n,i){return this.request("POST",t,n,void 0,i?.allowCodes,i?.timeoutMs)}async postZip(t,n,i){const o="POST",s=md(this.opts.origin,t,this.opts.restBasePath),r=dg(),l={"X-Request-Id":r,"Content-Type":"application/json; charset=utf-8"};this.addClientHeaders(l);const a=Date.now();this.tracer.restRequest?.({method:o,path:t,url:s,requestId:r,body:i});let u;try{u=await fetch(s,{method:o,headers:l,body:JSON.stringify(n),signal:yy(vy)})}catch(h){throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"fetch",durationMs:Date.now()-a,error:h}),new sa({message:`Network error calling ${o} ${t}`,cause:h,method:o,path:t,url:s,requestId:r,phase:"fetch",timeoutMs:vy,timestamp:Date.now(),durationMs:Date.now()-a})}const c=u.headers.get("content-type")??void 0,d=c?.split(";",1)[0]?.trim().toLowerCase();if(!u.ok||d!=="application/zip"){let h;try{h=await u.clone().json()}catch{}if(this.checkAuthRequired(u,h?.code??0),!u.ok||h!==void 0&&h.code!==0){const v=h?.code??u.status,y=h?.msg??u.statusText;throw this.tracer.restResponse?.({method:o,path:t,requestId:r,status:u.status,durationMs:Date.now()-a,code:v,msg:y,envelopeRequestId:h?.request_id}),new xu({code:v,msg:y,requestId:h?.request_id??r,details:h?.details,timestamp:Date.now(),durationMs:Date.now()-a})}const m=u.clone(),g=new TypeError(`Expected application/zip, received ${c??"no content type"}`);throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"parse",durationMs:Date.now()-a,status:u.status,error:g}),new sa({message:`Invalid ZIP response from ${o} ${t}`,cause:g,method:o,path:t,url:s,requestId:r,phase:"parse",timeoutMs:vy,status:u.status,statusText:u.statusText,contentType:c,bodyPreview:await n5(m),timestamp:Date.now(),durationMs:Date.now()-a})}let f;try{f=await u.blob()}catch(h){throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"parse",durationMs:Date.now()-a,status:u.status,error:h}),new sa({message:`Failed to read ZIP response from ${o} ${t}`,cause:h,method:o,path:t,url:s,requestId:r,phase:"parse",timeoutMs:vy,status:u.status,statusText:u.statusText,contentType:c,timestamp:Date.now(),durationMs:Date.now()-a})}return this.tracer.restResponse?.({method:o,path:t,requestId:r,status:u.status,durationMs:Date.now()-a,code:0,msg:""}),{blob:f,contentDisposition:u.headers.get("content-disposition")??void 0}}async postForm(t,n,i){if(i?.onUploadProgress!==void 0)return this.postFormXhr(t,n,i.onUploadProgress);const o=md(this.opts.origin,t,this.opts.restBasePath),s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();this.tracer.restRequest?.({method:"POST",path:t,url:o,requestId:s,body:eD(n)});let a;try{a=await fetch(o,{method:"POST",headers:r,body:n,signal:yy()})}catch(d){throw this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:d}),new sa({message:`Network error calling POST ${t}`,cause:d,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l})}let u;const c=a.clone();try{u=await a.json()}catch(d){throw this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"parse",durationMs:Date.now()-l,status:a.status,error:d}),new sa({message:`Failed to parse JSON response from POST ${t}`,cause:d,method:"POST",path:t,url:o,requestId:s,phase:"parse",timeoutMs:oc,status:a.status,statusText:a.statusText,contentType:a.headers.get("content-type")??void 0,bodyPreview:await n5(c),timestamp:Date.now(),durationMs:Date.now()-l})}if(this.tracer.restResponse?.({method:"POST",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:u.code,msg:u.msg,envelopeRequestId:u.request_id,data:u.data}),this.checkAuthRequired(a,u.code),u.code!==0){const d=u.code??a.status;throw new xu({code:d,msg:u.msg??a.statusText,requestId:u.request_id??s,details:u.details,timestamp:Date.now(),durationMs:Date.now()-l})}return u.data}postFormXhr(t,n,i){const o=md(this.opts.origin,t,this.opts.restBasePath),s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();return this.tracer.restRequest?.({method:"POST",path:t,url:o,requestId:s,body:eD(n)}),new Promise((a,u)=>{const c=new XMLHttpRequest;c.open("POST",o),c.timeout=oc;for(const[d,f]of Object.entries(r))c.setRequestHeader(d,f);c.upload.onprogress=d=>{d.lengthComputable&&i(d.loaded,d.total)},c.onerror=()=>{this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:c.statusText||"network error"}),u(new sa({message:`Network error calling POST ${t}`,cause:null,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l}))},c.ontimeout=()=>{this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:"timeout"}),u(new sa({message:`Timeout calling POST ${t}`,cause:null,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l}))},c.onload=()=>{let d;try{d=JSON.parse(c.responseText)}catch(f){this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"parse",durationMs:Date.now()-l,status:c.status,error:f}),u(new sa({message:`Failed to parse JSON response from POST ${t}`,cause:f,method:"POST",path:t,url:o,requestId:s,phase:"parse",timeoutMs:oc,status:c.status,statusText:c.statusText,bodyPreview:c.responseText.slice(0,rA),timestamp:Date.now(),durationMs:Date.now()-l}));return}if(this.tracer.restResponse?.({method:"POST",path:t,requestId:s,status:c.status,durationMs:Date.now()-l,code:d.code,msg:d.msg,envelopeRequestId:d.request_id,data:d.data}),this.checkAuthStatus(c.status,d.code),d.code!==0){const f=d.code??c.status;u(new xu({code:f,msg:d.msg??c.statusText,requestId:d.request_id??s,details:d.details,timestamp:Date.now(),durationMs:Date.now()-l}));return}a(d.data)},c.send(n)})}async patch(t,n){return this.request("PATCH",t,n)}async put(t,n){return this.request("PUT",t,n)}async delete(t){return this.request("DELETE",t)}async request(t,n,i,o,s=[],r=oc){let l=md(this.opts.origin,n,this.opts.restBasePath);if(o){const m=new URLSearchParams;XN(m,o);const g=m.toString();g&&(l=`${l}?${g}`)}const a=dg(),u={"X-Request-Id":a};this.addClientHeaders(u),i!==void 0&&(u["Content-Type"]="application/json; charset=utf-8");const c=Date.now();this.tracer.restRequest?.({method:t,path:n,url:l,requestId:a,body:i});let d;try{d=await fetch(l,{method:t,headers:u,body:i!==void 0?JSON.stringify(i):void 0,signal:yy(r)})}catch(m){throw this.tracer.restFailure?.({method:t,path:n,requestId:a,phase:"fetch",durationMs:Date.now()-c,error:m}),new sa({message:`Network error calling ${t} ${n}`,cause:m,method:t,path:n,url:l,requestId:a,phase:"fetch",timeoutMs:r,timestamp:Date.now(),durationMs:Date.now()-c})}let f;const h=d.clone();try{const m=await d.text();f=d.status===204&&m===""?{code:0,msg:"",data:null,request_id:a}:JSON.parse(m)}catch(m){throw this.tracer.restFailure?.({method:t,path:n,requestId:a,phase:"parse",durationMs:Date.now()-c,status:d.status,error:m}),new sa({message:`Failed to parse JSON response from ${t} ${n}`,cause:m,method:t,path:n,url:l,requestId:a,phase:"parse",timeoutMs:r,status:d.status,statusText:d.statusText,contentType:d.headers.get("content-type")??void 0,bodyPreview:await n5(h),timestamp:Date.now(),durationMs:Date.now()-c})}if(this.tracer.restResponse?.({method:t,path:n,requestId:a,status:d.status,durationMs:Date.now()-c,code:f.code,msg:f.msg,envelopeRequestId:f.request_id,data:f.data}),this.checkAuthRequired(d,f.code),f.code!==0&&!s.includes(f.code))throw new xu({code:typeof f.code=="number"?f.code:d.status,msg:typeof f.msg=="string"&&f.msg.length>0?f.msg:`HTTP ${d.status}${d.statusText?` ${d.statusText}`:""}`,requestId:f.request_id??a,details:f.details,timestamp:Date.now(),durationMs:Date.now()-c});return f.data}addClientHeaders(t){const n=this.opts.credentialStore?.getToken();n!==void 0&&(t.Authorization=`Bearer ${n}`);const i=this.opts.identity;i!==void 0&&(t["X-Kimi-Client-Id"]=i.clientId,t["X-Kimi-Client-Name"]=i.clientName,t["X-Kimi-Client-Version"]=i.clientVersion,t["X-Kimi-Client-Ui-Mode"]=i.clientUiMode)}checkAuthRequired(t,n){this.checkAuthStatus(t.status,n)}checkAuthStatus(t,n){(t===401||n===NW)&&this.opts.credentialStore?.markAuthRequired?.()}}function DW(e){return{inputTokens:e.input_tokens,outputTokens:e.output_tokens,cacheReadTokens:e.cache_read_tokens,cacheCreationTokens:e.cache_creation_tokens,totalCostUsd:e.total_cost_usd,contextTokens:e.context_tokens,contextLimit:e.context_limit,turnCount:e.turn_count}}function nD(e){return e.contextTokens===0&&e.contextLimit===0&&e.inputTokens===0&&e.outputTokens===0&&e.turnCount===0}function gu(e){return{id:e.id,title:e.title,createdAt:e.created_at,updatedAt:e.updated_at,busy:e.busy,mainTurnActive:e.main_turn_active,pendingInteraction:e.pending_interaction,lastTurnReason:e.last_turn_reason,archived:e.archived??!1,archivedAt:e.archived_at,currentPromptId:e.current_prompt_id,lastPrompt:e.last_prompt,cwd:e.metadata.cwd,model:e.agent_config.model,usage:DW(e.usage),messageCount:e.message_count,lastSeq:e.last_seq,workspaceId:e.workspace_id,parentSessionId:typeof e.metadata.parent_session_id=="string"?e.metadata.parent_session_id:void 0}}function ky(e){const t=e.activity.status;return{id:e.id,title:e.meta.title??e.meta.last_prompt??e.id.slice(0,12),createdAt:new Date(e.meta.created_at).toISOString(),updatedAt:new Date(e.meta.updated_at).toISOString(),busy:t==="running",pendingInteraction:t==="approval"?"approval":t==="question"?"question":void 0,lastTurnReason:t==="failed"?"failed":void 0,archived:e.meta.archived,archivedAt:e.meta.archived_at==null?void 0:new Date(e.meta.archived_at).toISOString(),lastPrompt:e.meta.last_prompt??void 0,cwd:e.workspace.cwd??"",model:e.activity.model??"",pullRequest:e.git===void 0?void 0:e.git.pull_request,usage:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalCostUsd:0,contextTokens:0,contextLimit:0,turnCount:0},messageCount:0,lastSeq:0,workspaceId:e.workspace.id.length>0?e.workspace.id:void 0}}function b0(e){return{id:e.id,root:e.root,name:e.name,lastOpenedAt:e.last_opened_at,sessionCount:e.session_count}}function iD(e){return e.kind==="base64"?{kind:"base64",mediaType:e.media_type,data:e.data}:e.kind==="file"?{kind:"file",fileId:e.file_id}:e.kind==="session_media"?{kind:"sessionMedia",fileId:e.file_id}:{kind:"url",url:e.url}}function dx(e){switch(e.type){case"text":return{type:"text",text:e.text};case"tool_use":return{type:"toolUse",toolCallId:e.tool_call_id,toolName:e.tool_name,input:e.input};case"tool_result":return{type:"toolResult",toolCallId:e.tool_call_id,output:e.output,isError:e.is_error};case"image":return{type:"image",source:iD(e.source)};case"video":return{type:"video",source:iD(e.source)};case"file":return{type:"file",fileId:e.file_id,name:e.name,mediaType:e.media_type,size:e.size};case"thinking":return{type:"thinking",thinking:e.thinking,signature:e.signature};default:return{type:"unknown",raw:e}}}function FW(e){return{id:e.id,sessionId:e.session_id,role:e.role,content:e.content.map(dx),createdAt:e.created_at,promptId:e.prompt_id,parentMessageId:e.parent_message_id,metadata:e.metadata}}function BW(e){switch(e.type){case"text":return{type:"text",text:e.text};case"toolUse":return{type:"tool_use",tool_call_id:e.toolCallId,tool_name:e.toolName,input:e.input};case"toolResult":return{type:"tool_result",tool_call_id:e.toolCallId,output:e.output,is_error:e.isError};case"image":case"video":{const t=e.source;let n;return t.kind==="base64"?n={kind:"base64",media_type:t.mediaType,data:t.data}:t.kind==="file"?n={kind:"file",file_id:t.fileId}:t.kind==="sessionMedia"?n={kind:"session_media",file_id:t.fileId}:n={kind:"url",url:t.url},{type:e.type,source:n}}case"file":return{type:"file",file_id:e.fileId,name:e.name,media_type:e.mediaType,size:e.size};case"thinking":return{type:"thinking",thinking:e.thinking,signature:e.signature};case"unknown":return e.raw}}function Xke(e){return{content:e.content.map(BW),metadata:e.metadata,agent_id:e.agentId,model:e.model,thinking:e.thinking,permission_mode:e.permissionMode,plan_mode:e.planMode,swarm_mode:e.swarmMode,goal_objective:e.goalObjective,goal_control:e.goalControl}}function ebe(e){return{decision:e.decision,scope:e.scope,feedback:e.feedback,selected_label:e.selectedLabel}}function tbe(e){return{approvalId:e.approval_id,sessionId:e.session_id,turnId:e.turn_id,toolCallId:e.tool_call_id,toolName:e.tool_name,action:e.action,display:e.tool_input_display??e.display,expiresAt:e.expires_at,createdAt:e.created_at}}function nbe(e){return{id:e.id,label:e.label,description:e.description,recommended:e.recommended===!0||e.is_recommended===!0}}function ibe(e){return{id:e.id,question:e.question,header:e.header,body:e.body,options:e.options.map(nbe),multiSelect:e.multi_select,allowOther:e.allow_other,otherLabel:e.other_label,otherDescription:e.other_description}}function obe(e){return{questionId:e.question_id,sessionId:e.session_id,turnId:e.turn_id,toolCallId:e.tool_call_id,questions:e.questions.map(ibe),createdAt:e.created_at}}function sbe(e){switch(e.kind){case"single":return{kind:"single",option_id:e.optionId};case"multi":return{kind:"multi",option_ids:e.optionIds};case"other":return{kind:"other",text:e.text};case"multiWithOther":return{kind:"multi_with_other",option_ids:e.optionIds,other_text:e.otherText};case"skipped":return{kind:"skipped"}}}function rbe(e){const t={};for(const[n,i]of Object.entries(e.answers))t[n]=sbe(i);return{answers:t,method:e.method,note:e.note}}function lA(e,t){if(typeof e.run_in_background!="boolean")throw new Error(`task wire missing required run_in_background (id ${e.id})`);return{id:e.id,agentId:e.agent_id??t,sessionId:e.session_id,kind:e.kind,description:e.description,status:e.status,command:e.command,createdAt:e.created_at,startedAt:e.started_at,completedAt:e.completed_at,outputPreview:e.output_preview,outputBytes:e.output_bytes,subagentPhase:e.subagent_phase,subagentType:e.subagent_type,model:e.model,thinkingEffort:e.thinking_effort,parentToolCallId:e.parent_tool_call_id,suspendedReason:e.suspended_reason,swarmIndex:e.swarm_index,runInBackground:e.run_in_background}}function oD(e){return{path:e.path,name:e.name,kind:e.kind,size:e.size,modifiedAt:e.modified_at,etag:e.etag,mime:e.mime,languageId:e.language_id,isBinary:e.is_binary,isSymlinkTo:e.is_symlink_to,gitStatus:e.git_status,childCount:e.child_count}}function Qc(e,t){const n=e[t];return typeof n=="string"?n:void 0}function Lp(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function ta(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:null}function RW(e){if(!e||typeof e!="object")return null;const t=e,n=Qc(t,"status");if(n!=="active"&&n!=="paused"&&n!=="blocked"&&n!=="complete")return null;const i=t.budget,o=i&&typeof i=="object"?i:{};return{goalId:Qc(t,"goalId")??Qc(t,"goal_id")??"goal",objective:Qc(t,"objective")??"",completionCriterion:Qc(t,"completionCriterion")??Qc(t,"completion_criterion"),status:n,turnsUsed:Lp(t,"turnsUsed")??Lp(t,"turns_used")??0,tokensUsed:Lp(t,"tokensUsed")??Lp(t,"tokens_used")??0,wallClockMs:Lp(t,"wallClockMs")??Lp(t,"wall_clock_ms")??0,terminalReason:Qc(t,"terminalReason")??Qc(t,"terminal_reason"),budget:{tokenBudget:ta(o,"tokenBudget")??ta(o,"token_budget"),remainingTokens:ta(o,"remainingTokens")??ta(o,"remaining_tokens"),turnBudget:ta(o,"turnBudget")??ta(o,"turn_budget"),remainingTurns:ta(o,"remainingTurns")??ta(o,"remaining_turns"),wallClockBudgetMs:ta(o,"wallClockBudgetMs")??ta(o,"wall_clock_budget_ms"),remainingWallClockMs:ta(o,"remainingWallClockMs")??ta(o,"remaining_wall_clock_ms"),overBudget:o.overBudget===!0||o.over_budget===!0}}}function lbe(e){const t=e;switch(e.type){case"event.session.created":return{type:"sessionCreated",session:gu(t.payload.session)};case"event.session.updated":return{type:"sessionUpdated",session:gu(t.payload.session),changedFields:t.payload.changed_fields};case"event.session.deleted":return{type:"sessionDeleted",sessionId:t.session_id};case"event.session.archived":{const n=t.payload?.sessionId??t.payload?.session_id;if(typeof n!="string"||n.length===0)return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};const i=t.payload?.workspace_id;return{type:"sessionArchived",sessionId:n,workspaceId:typeof i=="string"&&i.length>0?i:void 0}}case"event.workspace.created":return{type:"workspaceCreated",workspace:b0(t.payload.workspace)};case"event.workspace.updated":return{type:"workspaceUpdated",workspace:b0(t.payload.workspace)};case"event.workspace.deleted":return{type:"workspaceDeleted",workspaceId:t.payload.workspace_id,root:t.payload.root};case"event.session.work_changed":return{type:"sessionWorkChanged",sessionId:t.session_id,busy:t.payload.busy,mainTurnActive:t.payload.main_turn_active,pendingInteraction:t.payload.pending_interaction,lastTurnReason:t.payload.last_turn_reason};case"event.session.status_changed":return{type:"sessionWorkChanged",sessionId:t.session_id,busy:t.payload.status!=="idle"&&t.payload.status!=="aborted",mainTurnActive:t.payload.status!=="idle"&&t.payload.status!=="aborted",pendingInteraction:t.payload.status==="awaiting_approval"?"approval":t.payload.status==="awaiting_question"?"question":"none",lastTurnReason:t.payload.status==="aborted"?"cancelled":void 0};case"event.session.usage_updated":return{type:"sessionUsageUpdated",sessionId:t.session_id,usage:DW(t.payload.usage)};case"event.session.history_compacted":return{type:"historyCompacted",sessionId:t.session_id,beforeSeq:t.payload.before_seq,reason:t.payload.reason,summaryMessageId:t.payload.summary_message_id};case"event.goal.updated":{const n=RW(t.payload.snapshot??null);return{type:"goalUpdated",sessionId:t.session_id,goal:n?.status==="complete"?null:n}}case"event.message.created":return{type:"messageCreated",message:FW(t.payload.message)};case"event.message.updated":return{type:"messageUpdated",sessionId:t.session_id,messageId:t.payload.message_id,content:t.payload.content.map(dx),status:t.payload.status};case"event.assistant.delta":return{type:"assistantDelta",sessionId:t.session_id,messageId:t.payload.message_id,contentIndex:t.payload.content_index,delta:t.payload.delta};case"event.assistant.tool_use_started":case"event.assistant.tool_use_delta":case"event.assistant.tool_use_completed":case"event.assistant.completed":case"event.tool.started":return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.tool.output":return{type:"toolOutput",sessionId:t.session_id,toolCallId:t.payload.tool_call_id,outputChunk:t.payload.chunk,stream:t.payload.stream};case"event.tool.progress":return typeof t.payload.message=="string"&&t.payload.message.length>0?{type:"toolOutput",sessionId:t.session_id,toolCallId:t.payload.tool_call_id,outputChunk:t.payload.message,stream:"stdout"}:{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.tool.completed":return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.approval.requested":return{type:"approvalRequested",sessionId:t.session_id,approval:tbe(t.payload)};case"event.approval.resolved":return{type:"approvalResolved",sessionId:t.session_id,approvalId:t.payload.approval_id,decision:t.payload.decision,resolvedAt:t.payload.resolved_at,feedback:t.payload.feedback,selectedLabel:t.payload.selected_label};case"event.approval.expired":return{type:"approvalExpired",sessionId:t.session_id,approvalId:t.payload.approval_id};case"event.question.requested":return{type:"questionRequested",sessionId:t.session_id,question:obe(t.payload)};case"event.question.answered":return{type:"questionAnswered",sessionId:t.session_id,questionId:t.payload.question_id,resolvedAt:t.payload.resolved_at};case"event.question.dismissed":return{type:"questionDismissed",sessionId:t.session_id,questionId:t.payload.question_id,dismissedAt:t.payload.dismissed_at};case"event.task.created":return{type:"taskCreated",sessionId:t.session_id,task:lA(t.payload.task)};case"event.task.progress":return{type:"taskProgress",sessionId:t.session_id,taskId:t.payload.task_id,outputChunk:t.payload.output_chunk,stream:t.payload.stream};case"event.task.completed":return{type:"taskCompleted",sessionId:t.session_id,taskId:t.payload.task_id,status:t.payload.status,outputPreview:t.payload.output_preview,outputBytes:t.payload.output_bytes};case"event.plugin.changed":return{type:"pluginsChanged"};case"event.capability.changed":return{type:"capabilityChanged",capabilityId:t.payload.capability_id,install:t.payload.install};case"event.config.changed":return{type:"configChanged",changedFields:t.payload.changed_fields,config:aA(t.payload.config)};case"event.model_catalog.changed":return{type:"modelCatalogChanged",changed:t.payload.changed.map(n=>({providerId:n.provider_id,providerName:n.provider_name,added:n.added,removed:n.removed})),unchanged:t.payload.unchanged,failed:t.payload.failed};default:return{type:"unknown",raw:e}}}function abe(e){return{id:e.model,provider:e.provider,model:e.model,displayName:e.display_name,maxContextSize:e.max_context_size,capabilities:e.capabilities,supportEfforts:e.support_efforts,defaultEffort:e.default_effort}}function Np(e){return{id:e.id,type:e.type,baseUrl:e.base_url,defaultModel:e.default_model,hasApiKey:e.has_api_key,status:e.status,models:e.models}}function sD(e){return{id:e.id,name:e.name,wireType:e.wire_type,guessed:e.guessed,needsBaseUrl:e.needs_base_url,rejected:e.rejected,rejectReason:e.reject_reason,envKey:e.env_key,models:e.models.map(t=>({id:t.id,name:t.name,maxContextSize:t.max_context_size,capabilities:t.capabilities,reasoning:t.reasoning}))}}function aA(e){const t={};for(const[n,i]of Object.entries(e.providers))t[n]={type:i.type,baseUrl:i.base_url,defaultModel:i.default_model,hasApiKey:i.has_api_key};return{providers:t,defaultProvider:e.default_provider,defaultModel:e.default_model,secondaryModel:e.secondary_model,models:e.models,thinking:e.thinking,planMode:e.plan_mode,yolo:e.yolo,defaultPermissionMode:e.default_permission_mode,defaultPlanMode:e.default_plan_mode,permission:e.permission,hooks:e.hooks,services:e.services,mergeAllAvailableSkills:e.merge_all_available_skills,extraSkillDirs:e.extra_skill_dirs,loopControl:e.loop_control,background:e.background,experimental:e.experimental,telemetry:e.telemetry,raw:e.raw}}function ube(e){return e.session_id}function cbe(e){return e.seq}function dbe(e){const t=Number(e.slice(1));return Number.isFinite(t)?t:0}function rD(e){switch(e.kind){case"turn":return e.turnId;case"marker":return e.markerId;case"taskref":return e.refId}}const fbe={items:[],tasks:new Map,interactions:new Map,attachments:new Map,todos:new Map,prompts:new Map,meta:{},pendingInteractions:new Set,hasMoreOlder:!1};function hbe(e,t){switch(t.op){case"reset":return pbe(e,t);case"turn.upsert":return gbe(e,t.turn);case"step.upsert":return ybe(e,t.turnId,t.step);case"frame.upsert":return bbe(e,t);case"append":return Cbe(e,t);case"marker.upsert":return aD(e,t.item,t.item.markerId,t.beforeTurn);case"taskref.upsert":return aD(e,t.item,t.item.refId,t.beforeTurn);case"task.upsert":return Sbe(e,t.task);case"interaction.upsert":return _be(e,t.interaction);case"attachment.upsert":return Ibe(e,t.attachment);case"todo.upsert":return Ebe(e,t.todo);case"prompt.upsert":return Nbe(e,t.prompt);case"meta.merge":return Bbe(e,t.meta);case"items.remove":return xbe(e,t.ids)}}function pbe(e,t){const n=new Set;for(const i of t.snapshot.interactions)i.state==="pending"&&n.add(i.interactionId);return{state:{items:t.snapshot.items,tasks:new Map(t.snapshot.tasks.map(i=>[i.taskId,i])),interactions:new Map(t.snapshot.interactions.map(i=>[i.interactionId,i])),attachments:new Map(t.snapshot.attachments.map(i=>[i.attachmentId,i])),todos:new Map(t.snapshot.todos.map(i=>[i.todoId,i])),prompts:new Map(t.snapshot.prompts.map(i=>[i.promptId,i])),meta:t.snapshot.meta,pendingInteractions:n,hasMoreOlder:t.snapshot.hasMoreOlder??!1},changed:!0}}function lD(e,t){return{...e,kind:"turn",steps:[...t]}}function OW(e){return{kind:"turn",turnId:e,ordinal:dbe(e),state:"running",origin:{kind:"other"},steps:[]}}function mbe(e,t){const n=Number(e.slice(t.length+1))||0;return{kind:"step",stepId:e,turnId:t,ordinal:n,state:"running",frames:[]}}function K1(e,t){const n=e.items.find(i=>i.kind==="turn"&&i.turnId===t);return n?.kind==="turn"?n:void 0}function fx(e,t){const n=[...e];let i=n.length;for(let o=0;ot.ordinal){i=o;break}}return n.splice(i,0,t),n}function v4(e,t,n){return e.map(i=>i.kind==="turn"&&i.turnId===t?n(i):i)}function gbe(e,t){const n=K1(e,t.turnId);return n?vbe(n,t)?{state:e,changed:!1}:{state:{...e,items:v4(e.items,t.turnId,i=>lD(t,i.steps))},changed:!0}:{state:{...e,items:fx(e.items,lD(t,[]))},changed:!0}}function vbe(e,t){return e.ordinal===t.ordinal&&e.state===t.state&&e.prompt===t.prompt&&e.attachmentIds===t.attachmentIds&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.origin.kind===t.origin.kind&&e.origin.payload===t.origin.payload&&e.usage===t.usage&&e.durationMs===t.durationMs&&e.error===t.error}function ybe(e,t,n){const i=K1(e,t)??OW(t),o=i.steps.findIndex(u=>u.stepId===n.stepId);let s,r=!0;if(o>=0){const u=i.steps[o];u&&kbe(u,n)?(r=!1,s=i.steps):s=i.steps.map(c=>c.stepId===n.stepId?{...n,kind:"step",frames:c.frames}:c)}else s=[...i.steps,{...n,kind:"step",frames:[]}].toSorted((u,c)=>u.ordinal-c.ordinal);if(!r)return{state:e,changed:!1};const l={...i,steps:[...s]},a=K1(e,t)?v4(e.items,t,()=>l):fx(e.items,l);return{state:{...e,items:a},changed:!0}}function kbe(e,t){return e.ordinal===t.ordinal&&e.state===t.state&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.usage===t.usage&&e.finishReason===t.finishReason&&e.timing===t.timing&&e.retry===t.retry&&e.endReason===t.endReason&&e.endMessage===t.endMessage}function bbe(e,t){const n=K1(e,t.turnId)??OW(t.turnId),i=n.steps.find(c=>c.stepId===t.stepId)??mbe(t.stepId,t.turnId),o=i.frames.findIndex(c=>c.frameId===t.frame.frameId);let s;if(o>=0){const c=i.frames[o];if(c!==void 0&&wbe(c,t.frame))return{state:e,changed:!1};s=i.frames.map(d=>d.frameId===t.frame.frameId?t.frame:d)}else s=[...i.frames,t.frame];const r={...i,frames:[...s]},l=n.steps.some(c=>c.stepId===t.stepId)?n.steps.map(c=>c.stepId===t.stepId?r:c):[...n.steps,r].toSorted((c,d)=>c.ordinal-d.ordinal),a={...n,steps:l},u=K1(e,t.turnId)?v4(e.items,t.turnId,()=>a):fx(e.items,a);return{state:{...e,items:u},changed:!0}}function wbe(e,t){return e.kind!==t.kind?!1:e.kind==="text"&&t.kind==="text"?e.text===t.text&&e.role===t.role&&e.attachmentIds===t.attachmentIds&&e.taskId===t.taskId:e.kind==="thinking"&&t.kind==="thinking"?e.text===t.text:e.kind==="tool"&&t.kind==="tool"?e.state===t.state&&e.toolCallId===t.toolCallId&&e.name===t.name&&e.view===t.view&&e.input===t.input&&e.output===t.output&&e.display===t.display&&e.error===t.error&&e.inputText===t.inputText&&e.progress===t.progress&&e.taskId===t.taskId&&e.approvalId===t.approvalId&&e.todoId===t.todoId&&e.agentRefs===t.agentRefs:e.kind==="notice"&&t.kind==="notice"?e.message===t.message&&e.level===t.level&&e.detail===t.detail:!1}function Cbe(e,t){if(t.target.type==="task")return Abe(e,t);const{turnId:n,stepId:i,frameId:o}=t.target,s=K1(e,n),r=s?.steps.find(f=>f.stepId===i),l=r?.frames.find(f=>f.frameId===o);if(!s||!r||!l||l.kind!=="text"&&l.kind!=="thinking")return{state:e,changed:!1,gap:{expected:0,got:t.offset}};const a=$W(l.text,t.offset,t.text);if(a.gap)return{state:e,changed:!1,gap:a.gap};if(!a.changed)return{state:e,changed:!1};const u={...l,text:a.text},c={...r,frames:r.frames.map(f=>f.frameId===o?u:f)},d={...s,steps:s.steps.map(f=>f.stepId===i?c:f)};return{state:{...e,items:v4(e.items,n,()=>d)},changed:!0}}function Abe(e,t){if(t.target.type!=="task")throw new Error("unreachable");const n=t.target.taskId,i=e.tasks.get(n),o=i?.outputTail??"",s=$W(o,t.offset,t.text);if(s.gap)return{state:e,changed:!1,gap:s.gap};if(!s.changed)return{state:e,changed:!1};const r=i?{...i,outputTail:s.text}:{taskId:n,kind:"other",state:"running",detached:!1,outputTail:s.text},l=new Map(e.tasks);return l.set(n,r),{state:{...e,tasks:l},changed:!0}}function $W(e,t,n){if(t>e.length)return{text:e,changed:!1,gap:{expected:e.length,got:t}};if(e.slice(t,t+n.length)===n)return{text:e,changed:!1};const i=e.length-t;return e.slice(t)!==n.slice(0,i)?{text:e,changed:!1,gap:{expected:e.length,got:t}}:(i>0?n.slice(i):n).length===0?{text:e,changed:!1}:{text:e.slice(0,t)+n,changed:!0}}function aD(e,t,n,i){if(e.items.some(s=>uA(s)===n)){let s=!1;const r=e.items.map(l=>uA(l)!==n||l===t?l:(s=!0,t));return s?{state:{...e,items:r},changed:!0}:{state:e,changed:!1}}if(i!==void 0){const s=[...e.items];let r=s.length;for(let l=0;l=i){r=l;break}}return s.splice(r,0,t),{state:{...e,items:s},changed:!0}}return{state:{...e,items:[...e.items,t]},changed:!0}}function uA(e){switch(e.kind){case"turn":return e.turnId;case"marker":return e.markerId;case"taskref":return e.refId}}function xbe(e,t){const n=new Set(t),i=e.items.filter(l=>l.kind==="turn"&&n.has(l.turnId)),o=e.items.filter(l=>!n.has(uA(l)));if(o.length===e.items.length)return{state:e,changed:!1};let s=e.pendingInteractions,r=e.interactions;if(i.length>0){const l=new Set,a=new Set(s),u=new Set;for(const c of i)for(const d of c.steps)for(const f of d.frames)f.kind==="tool"&&l.add(f.toolCallId);for(const c of r.values())c.toolCallId!==void 0&&l.has(c.toolCallId)&&(u.add(c.interactionId),a.delete(c.interactionId));if(u.size>0){const c=new Map(r);for(const d of u)c.delete(d);r=c}s=a}return{state:{...e,items:o,interactions:r,pendingInteractions:s},changed:!0}}function Sbe(e,t){const n=e.tasks.get(t.taskId);if(n&&Fbe(n,t))return{state:e,changed:!1};const i=new Map(e.tasks);return i.set(t.taskId,t),{state:{...e,tasks:i},changed:!0}}function _be(e,t){const n=e.interactions.get(t.interactionId);if(n&&Mbe(n,t))return{state:e,changed:!1};const i=new Map(e.interactions);i.set(t.interactionId,t);let o=e.pendingInteractions;if(t.state==="pending"){if(!o.has(t.interactionId)){const s=new Set(o);s.add(t.interactionId),o=s}}else if(o.has(t.interactionId)){const s=new Set(o);s.delete(t.interactionId),o=s}return{state:{...e,interactions:i,pendingInteractions:o},changed:!0}}function Mbe(e,t){return e.interactionKind===t.interactionKind&&e.toolCallId===t.toolCallId&&e.state===t.state&&e.request===t.request&&e.response===t.response}function Ibe(e,t){const n=e.attachments.get(t.attachmentId);if(n&&Tbe(n,t))return{state:e,changed:!1};const i=new Map(e.attachments);return i.set(t.attachmentId,t),{state:{...e,attachments:i},changed:!0}}function Tbe(e,t){return e.mediaType===t.mediaType&&e.name===t.name&&e.size===t.size&&e.source===t.source&&e.placeholder===t.placeholder}function Ebe(e,t){const n=e.todos.get(t.todoId);if(n&&Lbe(n,t))return{state:e,changed:!1};const i=new Map(e.todos);return i.set(t.todoId,t),{state:{...e,todos:i},changed:!0}}function Lbe(e,t){return e.items===t.items&&e.updatedAt===t.updatedAt}function Nbe(e,t){const n=e.prompts.get(t.promptId);if(n&&Dbe(n,t))return{state:e,changed:!1};const i=new Map(e.prompts);return i.set(t.promptId,t),{state:{...e,prompts:i},changed:!0}}function Dbe(e,t){return e.status===t.status&&e.userMessageId===t.userMessageId&&e.content===t.content&&e.createdAt===t.createdAt&&e.finishedAt===t.finishedAt&&e.steeredAt===t.steeredAt}function Fbe(e,t){return e.kind===t.kind&&e.state===t.state&&e.detached===t.detached&&e.description===t.description&&e.agentId===t.agentId&&e.outputTail===t.outputTail&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.resultSummary===t.resultSummary&&e.error===t.error&&e.stateReason===t.stateReason&&e.usage===t.usage}function Bbe(e,t){const n=t.modes!==void 0?{plan:t.modes.plan===null?void 0:t.modes.plan??e.meta.modes?.plan,swarm:t.modes.swarm===null?void 0:t.modes.swarm??e.meta.modes?.swarm,tower:t.modes.tower===null?void 0:t.modes.tower??e.meta.modes?.tower}:e.meta.modes,i=t.agent!==void 0?{...e.meta.agent,...t.agent}:e.meta.agent,o={goal:t.goal===null?void 0:t.goal??e.meta.goal,activity:t.activity??e.meta.activity,modes:n!==void 0&&n.plan===void 0&&n.swarm===void 0&&n.tower===void 0?void 0:n,agent:i};return o.goal===e.meta.goal&&o.activity===e.meta.activity&&o.modes===e.meta.modes&&o.agent===e.meta.agent?{state:e,changed:!1}:{state:{...e,meta:o},changed:!0}}class Rbe{constructor(t){this.agentId=t}#e=fbe;#t=new Set;receive(t){return this.apply(t)}apply(t){const n=[];let i,o=this.#e;for(const s of t){const r=hbe(o,s);if(r.gap){i={target:s.target,...r.gap};continue}r.changed&&(o=r.state,n.push(s))}if(this.#e=o,n.length>0){const s={agentId:this.agentId,ops:n};for(const r of this.#t)r(s)}return{accepted:n,gap:i}}onChange(t){return this.#t.add(t),{dispose:()=>void this.#t.delete(t)}}getItems(){return this.#e.items}getTurn(t){const n=this.#e.items.find(i=>i.kind==="turn"&&i.turnId===t);return n?.kind==="turn"?n:void 0}getTasks(){return this.#e.tasks}getTask(t){return this.#e.tasks.get(t)}getInteractions(){return this.#e.interactions}getInteraction(t){return this.#e.interactions.get(t)}getAttachments(){return this.#e.attachments}getAttachment(t){return this.#e.attachments.get(t)}getTodos(){return this.#e.todos}getTodo(t){return this.#e.todos.get(t)}getPrompts(){return this.#e.prompts}getPrompt(t){return this.#e.prompts.get(t)}getMeta(){return this.#e.meta}listPendingInteractions(){return[...this.#e.pendingInteractions]}get hasMoreOlder(){return this.#e.hasMoreOlder}snapshot(t){let n=this.#e.items,i=this.#e.hasMoreOlder;if(t!==void 0){const o=n.reduce((s,r)=>r.kind==="turn"?s+1:s,0);if(o>t.tailTurns){const s=o-t.tailTurns,r=[];let l=0;for(const a of n)if(a.kind==="turn"){if(l+=1,l<=s)continue;r.push(a)}else l>s&&r.push(a);n=r,i=!0}}return{items:n,tasks:[...this.#e.tasks.values()],interactions:[...this.#e.interactions.values()],attachments:[...this.#e.attachments.values()],todos:[...this.#e.todos.values()],prompts:[...this.#e.prompts.values()],meta:this.#e.meta,hasMoreOlder:i}}}function Nt(e,t,n){function i(l,a){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:a,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,a);const u=r.prototype,c=Object.keys(u);for(let d=0;dn?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class T1 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class PW extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const zW={};function Kd(e){return zW}function jW(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function cA(e,t){return typeof t=="bigint"?t.toString():t}function y4(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hx(e){return e==null}function px(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Obe(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const a=i.match(/\d?e-(\d?)/);a?.[1]&&(o=Number.parseInt(a[1]))}const s=n>o?n:o,r=Number.parseInt(e.toFixed(s).replace(".","")),l=Number.parseInt(t.toFixed(s).replace(".",""));return r%l/10**s}const uD=Symbol("evaluating");function zi(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==uD)return i===void 0&&(i=uD,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function np(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function uf(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function cD(e){return JSON.stringify(e)}function $be(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const HW="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Pbe=y4(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Z1(e){if(rv(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(rv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function WW(e){return Z1(e)?{...e}:Array.isArray(e)?[...e]:e}const zbe=new Set(["string","number","symbol"]);function G1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function cf(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Tn(e){const 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 jbe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hbe={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]};function Wbe(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=uf(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return np(this,"shape",r),r},checks:[]});return cf(e,s)}function qbe(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=uf(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return np(this,"shape",r),r},checks:[]});return cf(e,s)}function Ube(e,t){if(!Z1(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const r in t)if(Object.getOwnPropertyDescriptor(s,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=uf(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return np(this,"shape",s),s}});return cf(e,o)}function Vbe(e,t){if(!Z1(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=uf(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return np(this,"shape",i),i}});return cf(e,n)}function Kbe(e,t){const n=uf(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return np(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return cf(e,n)}function Zbe(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=uf(t._zod.def,{get shape(){const l=t._zod.def.shape,a={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(a[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)a[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return np(this,"shape",a),a},checks:[]});return cf(t,r)}function Gbe(e,t,n){const i=uf(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const r in n){if(!(r in s))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(s[r]=new e({type:"nonoptional",innerType:o[r]}))}else for(const r in o)s[r]=new e({type:"nonoptional",innerType:o[r]});return np(this,"shape",s),s}});return cf(t,i)}function s1(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function by(e){return typeof e=="string"?e:e?.message}function Zd(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=by(e.inst?._zod.def?.error?.(e))??by(t?.error?.(e))??by(n.customError?.(e))??by(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function mx(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function lv(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const qW=(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,cA,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},UW=Nt("$ZodError",qW),VW=Nt("$ZodError",qW,{Parent:Error});function Qbe(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function Ybe(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(r=>i({issues:r}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let r=n,l=0;for(;l(t,n,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise)throw new T1;if(r.issues.length){const l=new(o?.Err??e)(r.issues.map(a=>Zd(a,s,Kd())));throw HW(l,o?.callee),l}return r.value},vx=e=>async(t,n,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new(o?.Err??e)(r.issues.map(a=>Zd(a,s,Kd())));throw HW(l,o?.callee),l}return r.value},k4=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new T1;return s.issues.length?{success:!1,error:new(e??UW)(s.issues.map(r=>Zd(r,o,Kd())))}:{success:!0,data:s.value}},Jbe=k4(VW),b4=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(r=>Zd(r,o,Kd())))}:{success:!0,data:s.value}},Xbe=b4(VW),e4e=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gx(e)(t,n,o)},t4e=e=>(t,n,i)=>gx(e)(t,n,i),n4e=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vx(e)(t,n,o)},i4e=e=>async(t,n,i)=>vx(e)(t,n,i),o4e=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return k4(e)(t,n,o)},s4e=e=>(t,n,i)=>k4(e)(t,n,i),r4e=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return b4(e)(t,n,o)},l4e=e=>async(t,n,i)=>b4(e)(t,n,i),a4e=/^[cC][^\s-]{8,}$/,u4e=/^[0-9a-z]+$/,c4e=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,d4e=/^[0-9a-vA-V]{20}$/,f4e=/^[A-Za-z0-9]{27}$/,h4e=/^[a-zA-Z0-9_-]{21}$/,p4e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,m4e=/^([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})$/,dD=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)$/,g4e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,v4e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function y4e(){return new RegExp(v4e,"u")}const k4e=/^(?:(?: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])$/,b4e=/^(([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}|:))$/,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])\/([0-9]|[1-2][0-9]|3[0-2])$/,C4e=/^(([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])$/,A4e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,KW=/^[A-Za-z0-9_-]*$/,x4e=/^\+[1-9]\d{6,14}$/,ZW="(?:(?:\\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])))",S4e=new RegExp(`^${ZW}$`);function GW(e){const 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 _4e(e){return new RegExp(`^${GW(e)}$`)}function M4e(e){const t=GW({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${ZW}T(?:${i})$`)}const I4e=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},T4e=/^-?\d+$/,QW=/^-?\d+(?:\.\d+)?$/,E4e=/^(?:true|false)$/i,L4e=/^[^A-Z]*$/,N4e=/^[^a-z]*$/,Ml=Nt("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),YW={number:"number",bigint:"bigint",object:"date"},JW=Nt("$ZodCheckLessThan",(e,t)=>{Ml.init(e,t);const n=YW[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?i.value<=t.value:i.value{Ml.init(e,t);const n=YW[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),D4e=Nt("$ZodCheckMultipleOf",(e,t)=>{Ml.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Obe(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),F4e=Nt("$ZodCheckNumberFormat",(e,t)=>{Ml.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[o,s]=Hbe[t.format];e._zod.onattach.push(r=>{const l=r._zod.bag;l.format=t.format,l.minimum=o,l.maximum=s,n&&(l.pattern=T4e)}),e._zod.check=r=>{const l=r.value;if(n){if(!Number.isInteger(l)){r.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?r.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):r.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}ls&&r.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),B4e=Nt("$ZodCheckMaxLength",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const o=i.value;if(o.length<=t.maximum)return;const r=mx(o);i.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),R4e=Nt("$ZodCheckMinLength",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const r=mx(o);i.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),O4e=Nt("$ZodCheckLengthEquals",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const r=mx(o),l=s>t.length;i.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),w4=Nt("$ZodCheckStringFormat",(e,t)=>{var n,i;Ml.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.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})}):(i=e._zod).check??(i.check=()=>{})}),$4e=Nt("$ZodCheckRegex",(e,t)=>{w4.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),P4e=Nt("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=L4e),w4.init(e,t)}),z4e=Nt("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=N4e),w4.init(e,t)}),j4e=Nt("$ZodCheckIncludes",(e,t)=>{Ml.init(e,t);const n=G1(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),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})}}),H4e=Nt("$ZodCheckStartsWith",(e,t)=>{Ml.init(e,t);const n=new RegExp(`^${G1(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),W4e=Nt("$ZodCheckEndsWith",(e,t)=>{Ml.init(e,t);const n=new RegExp(`.*${G1(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),q4e=Nt("$ZodCheckOverwrite",(e,t)=>{Ml.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class U4e{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}const i=t.split(` +`).filter(r=>r),o=Math.min(...i.map(r=>r.length-r.trimStart().length)),s=i.map(r=>r.slice(o)).map(r=>" ".repeat(this.indent*2)+r);for(const r of s)this.content.push(r)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(` +`))}}const V4e={major:4,minor:3,patch:6},No=Nt("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=V4e;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(r,l,a)=>{let u=s1(r),c;for(const d of l){if(d._zod.def.when){if(!d._zod.def.when(r))continue}else if(u)continue;const f=r.issues.length,h=d._zod.check(r);if(h instanceof Promise&&a?.async===!1)throw new T1;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,r.issues.length!==f&&(u||(u=s1(r,f)))});else{if(r.issues.length===f)continue;u||(u=s1(r,f))}}return c?c.then(()=>r):r},s=(r,l,a)=>{if(s1(r))return r.aborted=!0,r;const u=o(l,i,a);if(u instanceof Promise){if(a.async===!1)throw new T1;return u.then(c=>e._zod.parse(c,a))}return e._zod.parse(u,a)};e._zod.run=(r,l)=>{if(l.skipChecks)return e._zod.parse(r,l);if(l.direction==="backward"){const u=e._zod.parse({value:r.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(c=>s(c,r,l)):s(u,r,l)}const a=e._zod.parse(r,l);if(a instanceof Promise){if(l.async===!1)throw new T1;return a.then(u=>o(u,i,l))}return o(a,i,l)}}zi(e,"~standard",()=>({validate:o=>{try{const s=Jbe(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Xbe(e,o).then(r=>r.success?{value:r.data}:{issues:r.error?.issues})}},vendor:"zod",version:1}))}),yx=Nt("$ZodString",(e,t)=>{No.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??I4e(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),_o=Nt("$ZodStringFormat",(e,t)=>{w4.init(e,t),yx.init(e,t)}),K4e=Nt("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=m4e),_o.init(e,t)}),Z4e=Nt("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=dD(i))}else t.pattern??(t.pattern=dD());_o.init(e,t)}),G4e=Nt("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=g4e),_o.init(e,t)}),Q4e=Nt("$ZodURL",(e,t)=>{_o.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Y4e=Nt("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=y4e()),_o.init(e,t)}),J4e=Nt("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=h4e),_o.init(e,t)}),X4e=Nt("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=a4e),_o.init(e,t)}),e3e=Nt("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=u4e),_o.init(e,t)}),t3e=Nt("$ZodULID",(e,t)=>{t.pattern??(t.pattern=c4e),_o.init(e,t)}),n3e=Nt("$ZodXID",(e,t)=>{t.pattern??(t.pattern=d4e),_o.init(e,t)}),i3e=Nt("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=f4e),_o.init(e,t)}),o3e=Nt("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=M4e(t)),_o.init(e,t)}),s3e=Nt("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=S4e),_o.init(e,t)}),r3e=Nt("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_4e(t)),_o.init(e,t)}),l3e=Nt("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=p4e),_o.init(e,t)}),a3e=Nt("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=k4e),_o.init(e,t),e._zod.bag.format="ipv4"}),u3e=Nt("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=b4e),_o.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),c3e=Nt("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=w4e),_o.init(e,t)}),d3e=Nt("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=C4e),_o.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const r=Number(s);if(`${r}`!==s)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function eq(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const f3e=Nt("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=A4e),_o.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{eq(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function h3e(e){if(!KW.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return eq(n)}const p3e=Nt("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=KW),_o.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{h3e(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),m3e=Nt("$ZodE164",(e,t)=>{t.pattern??(t.pattern=x4e),_o.init(e,t)});function g3e(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const v3e=Nt("$ZodJWT",(e,t)=>{_o.init(e,t),e._zod.check=n=>{g3e(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),tq=Nt("$ZodNumber",(e,t)=>{No.init(e,t),e._zod.pattern=e._zod.bag.pattern??QW,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),y3e=Nt("$ZodNumberFormat",(e,t)=>{F4e.init(e,t),tq.init(e,t)}),k3e=Nt("$ZodBoolean",(e,t)=>{No.init(e,t),e._zod.pattern=E4e,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),b3e=Nt("$ZodUnknown",(e,t)=>{No.init(e,t),e._zod.parse=n=>n}),w3e=Nt("$ZodNever",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function fD(e,t,n){e.issues.length&&t.issues.push(...r1(n,e.issues)),t.value[n]=e.value}const C3e=Nt("$ZodArray",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let r=0;rfD(u,n,r))):fD(a,n,r)}return s.length?Promise.all(s).then(()=>n):n}});function jk(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...r1(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function nq(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=jbe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function iq(e,t,n,i,o,s){const r=[],l=o.keySet,a=o.catchall._zod,u=a.def.type,c=a.optout==="optional";for(const d in t){if(l.has(d))continue;if(u==="never"){r.push(d);continue}const f=a.run({value:t[d],issues:[]},i);f instanceof Promise?e.push(f.then(h=>jk(h,n,d,t,c))):jk(f,n,d,t,c)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const A3e=Nt("$ZodObject",(e,t)=>{if(No.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const a={...l};return Object.defineProperty(t,"shape",{value:a}),a}})}const i=y4(()=>nq(t));zi(e._zod,"propValues",()=>{const l=t.shape,a={};for(const u in l){const c=l[u]._zod;if(c.values){a[u]??(a[u]=new Set);for(const d of c.values)a[u].add(d)}}return a});const o=rv,s=t.catchall;let r;e._zod.parse=(l,a)=>{r??(r=i.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],d=r.shape;for(const f of r.keys){const h=d[f],m=h._zod.optout==="optional",g=h._zod.run({value:u[f],issues:[]},a);g instanceof Promise?c.push(g.then(v=>jk(v,l,f,u,m))):jk(g,l,f,u,m)}return s?iq(c,u,l,a,i.value,e):c.length?Promise.all(c).then(()=>l):l}}),x3e=Nt("$ZodObjectJIT",(e,t)=>{A3e.init(e,t);const n=e._zod.parse,i=y4(()=>nq(t)),o=f=>{const h=new U4e(["shape","payload","ctx"]),m=i.value,g=A=>{const w=cD(A);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const A of m.keys)v[A]=`key_${y++}`;h.write("const newResult = {};");for(const A of m.keys){const w=v[A],M=cD(A),T=f[A]?._zod?.optout==="optional";h.write(`const ${w} = ${g(A)};`),T?h.write(` + if (${w}.issues.length) { + if (${M} in input) { + payload.issues = payload.issues.concat(${w}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${M}, ...iss.path] : [${M}] + }))); + } + } + + if (${w}.value === undefined) { + if (${M} in input) { + newResult[${M}] = undefined; + } + } else { + newResult[${M}] = ${w}.value; + } + + `):h.write(` + if (${w}.issues.length) { + payload.issues = payload.issues.concat(${w}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${M}, ...iss.path] : [${M}] + }))); + } + + if (${w}.value === undefined) { + if (${M} in input) { + newResult[${M}] = undefined; + } + } else { + newResult[${M}] = ${w}.value; + } + + `)}h.write("payload.value = newResult;"),h.write("return payload;");const b=h.compile();return(A,w)=>b(f,A,w)};let s;const r=rv,l=!zW.jitless,u=l&&Pbe.value,c=t.catchall;let d;e._zod.parse=(f,h)=>{d??(d=i.value);const m=f.value;return r(m)?l&&u&&h?.async===!1&&h.jitless!==!0?(s||(s=o(t.shape)),f=s(f,h),c?iq([],m,f,h,d,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function hD(e,t,n,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!s1(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(r=>Zd(r,i,Kd())))}),t)}const oq=Nt("$ZodUnion",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),zi(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),zi(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),zi(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>px(s.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return i(o,s);let r=!1;const l=[];for(const a of t.options){const u=a._zod.run({value:o.value,issues:[]},s);if(u instanceof Promise)l.push(u),r=!0;else{if(u.issues.length===0)return u;l.push(u)}}return r?Promise.all(l).then(a=>hD(a,o,e,s)):hD(l,o,e,s)}}),S3e=Nt("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,oq.init(e,t);const n=e._zod.parse;zi(e._zod,"propValues",()=>{const o={};for(const s of t.options){const r=s._zod.propValues;if(!r||Object.keys(r).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[l,a]of Object.entries(r)){o[l]||(o[l]=new Set);for(const u of a)o[l].add(u)}}return o});const i=y4(()=>{const o=t.options,s=new Map;for(const r of o){const l=r._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const a of l){if(s.has(a))throw new Error(`Duplicate discriminator value "${String(a)}"`);s.set(a,r)}}return s});e._zod.parse=(o,s)=>{const r=o.value;if(!rv(r))return o.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),o;const l=i.value.get(r?.[t.discriminator]);return l?l._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:r,path:[t.discriminator],inst:e}),o)}}),_3e=Nt("$ZodIntersection",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},i),r=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||r instanceof Promise?Promise.all([s,r]).then(([a,u])=>pD(n,a,u)):pD(n,s,r)}});function dA(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(Z1(e)&&Z1(t)){const n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of i){const r=dA(e[s],t[s]);if(!r.valid)return{valid:!1,mergeErrorPath:[s,...r.mergeErrorPath]};o[s]=r.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;il.l&&l.r).map(([l])=>l);if(s.length&&o&&e.issues.push({...o,keys:s}),s1(e))return e;const r=dA(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const M3e=Nt("$ZodRecord",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Z1(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],r=t.keyType._zod.values;if(r){n.value={};const l=new Set;for(const u of r)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.valueType._zod.run({value:o[u],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...r1(u,d.issues)),n.value[u]=d.value})):(c.issues.length&&n.issues.push(...r1(u,c.issues)),n.value[u]=c.value)}let a;for(const u in o)l.has(u)||(a=a??[],a.push(u));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:a})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let a=t.keyType._zod.run({value:l,issues:[]},i);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&QW.test(l)&&a.issues.length){const d=t.keyType._zod.run({value:Number(l),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(a=d)}if(a.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(d=>Zd(d,i,Kd())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...r1(l,d.issues)),n.value[a.value]=d.value})):(c.issues.length&&n.issues.push(...r1(l,c.issues)),n.value[a.value]=c.value)}}return s.length?Promise.all(s).then(()=>n):n}}),I3e=Nt("$ZodEnum",(e,t)=>{No.init(e,t);const n=jW(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>zbe.has(typeof o)).map(o=>typeof o=="string"?G1(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const r=o.value;return i.has(r)||o.issues.push({code:"invalid_value",values:n,input:r,inst:e}),o}}),T3e=Nt("$ZodLiteral",(e,t)=>{if(No.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?G1(i):i?G1(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}}),E3e=Nt("$ZodTransform",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new PW(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(r=>(n.value=r,n));if(o instanceof Promise)throw new T1;return n.value=o,n}});function mD(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const sq=Nt("$ZodOptional",(e,t)=>{No.init(e,t),e._zod.optin="optional",e._zod.optout="optional",zi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),zi(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${px(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>mD(s,n.value)):mD(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),L3e=Nt("$ZodExactOptional",(e,t)=>{sq.init(e,t),zi(e._zod,"values",()=>t.innerType._zod.values),zi(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),N3e=Nt("$ZodNullable",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.innerType._zod.optin),zi(e._zod,"optout",()=>t.innerType._zod.optout),zi(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${px(n.source)}|null)$`):void 0}),zi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),D3e=Nt("$ZodDefault",(e,t)=>{No.init(e,t),e._zod.optin="optional",zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>gD(s,t)):gD(o,t)}});function gD(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const F3e=Nt("$ZodPrefault",(e,t)=>{No.init(e,t),e._zod.optin="optional",zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),B3e=Nt("$ZodNonOptional",(e,t)=>{No.init(e,t),zi(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>vD(s,e)):vD(o,e)}});function vD(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const R3e=Nt("$ZodCatch",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.innerType._zod.optin),zi(e._zod,"optout",()=>t.innerType._zod.optout),zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(r=>Zd(r,i,Kd()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Zd(s,i,Kd()))},input:n.value}),n.issues=[]),n)}}),O3e=Nt("$ZodPipe",(e,t)=>{No.init(e,t),zi(e._zod,"values",()=>t.in._zod.values),zi(e._zod,"optin",()=>t.in._zod.optin),zi(e._zod,"optout",()=>t.out._zod.optout),zi(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(n,i);return s instanceof Promise?s.then(r=>wy(r,t.in,i)):wy(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>wy(s,t.out,i)):wy(o,t.out,i)}});function wy(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const $3e=Nt("$ZodReadonly",(e,t)=>{No.init(e,t),zi(e._zod,"propValues",()=>t.innerType._zod.propValues),zi(e._zod,"values",()=>t.innerType._zod.values),zi(e._zod,"optin",()=>t.innerType?._zod?.optin),zi(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(yD):yD(o)}});function yD(e){return e.value=Object.freeze(e.value),e}const P3e=Nt("$ZodCustom",(e,t)=>{Ml.init(e,t),No.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>kD(s,n,i,e));kD(o,n,i,e)}});function kD(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(lv(o))}}var bD;class z3e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const o={...i,...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 j3e(){return new z3e}(bD=globalThis).__zod_globalRegistry??(bD.__zod_globalRegistry=j3e());const Fg=globalThis.__zod_globalRegistry;function H3e(e,t){return new e({type:"string",...Tn(t)})}function W3e(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Tn(t)})}function wD(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Tn(t)})}function q3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Tn(t)})}function U3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Tn(t)})}function V3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Tn(t)})}function K3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Tn(t)})}function Z3e(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Tn(t)})}function G3e(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Tn(t)})}function Q3e(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Tn(t)})}function Y3e(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Tn(t)})}function J3e(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Tn(t)})}function X3e(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Tn(t)})}function e8e(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Tn(t)})}function t8e(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Tn(t)})}function n8e(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Tn(t)})}function i8e(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Tn(t)})}function o8e(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Tn(t)})}function s8e(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Tn(t)})}function r8e(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Tn(t)})}function l8e(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Tn(t)})}function a8e(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Tn(t)})}function u8e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Tn(t)})}function c8e(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Tn(t)})}function d8e(e,t){return new e({type:"string",format:"date",check:"string_format",...Tn(t)})}function f8e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Tn(t)})}function h8e(e,t){return new e({type:"string",format:"duration",check:"string_format",...Tn(t)})}function p8e(e,t){return new e({type:"number",checks:[],...Tn(t)})}function m8e(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Tn(t)})}function g8e(e,t){return new e({type:"boolean",...Tn(t)})}function v8e(e){return new e({type:"unknown"})}function y8e(e,t){return new e({type:"never",...Tn(t)})}function CD(e,t){return new JW({check:"less_than",...Tn(t),value:e,inclusive:!1})}function i5(e,t){return new JW({check:"less_than",...Tn(t),value:e,inclusive:!0})}function AD(e,t){return new XW({check:"greater_than",...Tn(t),value:e,inclusive:!1})}function o5(e,t){return new XW({check:"greater_than",...Tn(t),value:e,inclusive:!0})}function xD(e,t){return new D4e({check:"multiple_of",...Tn(t),value:e})}function rq(e,t){return new B4e({check:"max_length",...Tn(t),maximum:e})}function Hk(e,t){return new R4e({check:"min_length",...Tn(t),minimum:e})}function lq(e,t){return new O4e({check:"length_equals",...Tn(t),length:e})}function k8e(e,t){return new $4e({check:"string_format",format:"regex",...Tn(t),pattern:e})}function b8e(e){return new P4e({check:"string_format",format:"lowercase",...Tn(e)})}function w8e(e){return new z4e({check:"string_format",format:"uppercase",...Tn(e)})}function C8e(e,t){return new j4e({check:"string_format",format:"includes",...Tn(t),includes:e})}function A8e(e,t){return new H4e({check:"string_format",format:"starts_with",...Tn(t),prefix:e})}function x8e(e,t){return new W4e({check:"string_format",format:"ends_with",...Tn(t),suffix:e})}function bm(e){return new q4e({check:"overwrite",tx:e})}function S8e(e){return bm(t=>t.normalize(e))}function _8e(){return bm(e=>e.trim())}function M8e(){return bm(e=>e.toLowerCase())}function I8e(){return bm(e=>e.toUpperCase())}function T8e(){return bm(e=>$be(e))}function E8e(e,t,n){return new e({type:"array",element:t,...Tn(n)})}function L8e(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Tn(n)})}function N8e(e){const t=D8e(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(lv(i,n.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(lv(o))}},e(n.value,n)));return t}function D8e(e,t){const n=new Ml({check:"custom",...Tn(t)});return n._zod.check=e,n}function aq(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??Fg,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 gs(e,t,n={path:[],schemaPath:[]}){var i;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const r={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,r);const l=e._zod.toJSONSchema?.();if(l)r.schema=l;else{const c={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,c);else{const f=r.schema,h=t.processors[o.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);h(e,t,f,c)}const d=e._zod.parent;d&&(r.ref||(r.ref=d),gs(d,t,c),t.seen.get(d).isParent=!0)}const a=t.metadataRegistry.get(e);return a&&Object.assign(r.schema,a),t.io==="input"&&Br(e)&&(delete r.schema.examples,delete r.schema.default),t.io==="input"&&r.schema._prefault&&((i=r.schema).default??(i.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function uq(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const r of e.seen.entries()){const l=e.metadataRegistry.get(r[0])?.id;if(l){const a=i.get(l);if(a&&a!==r[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(l,r[0])}}const o=r=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(r[0])?.id,f=e.external.uri??(m=>m);if(d)return{ref:f(d)};const h=r[1].defId??r[1].schema.id??`schema${e.counter++}`;return r[1].defId=h,{defId:h,ref:`${f("__shared")}#/${l}/${h}`}}if(r[1]===n)return{ref:"#"};const u=`#/${l}/`,c=r[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},s=r=>{if(r[1].schema.$ref)return;const l=r[1],{ref:a,defId:u}=o(r);l.def={...l.schema},u&&(l.defId=u);const c=l.schema;for(const d in c)delete c[d];c.$ref=a};if(e.cycles==="throw")for(const r of e.seen.entries()){const l=r[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const r of e.seen.entries()){const l=r[1];if(t===r[0]){s(r);continue}if(e.external){const u=e.external.registry.get(r[0])?.id;if(t!==r[0]&&u){s(r);continue}}if(e.metadataRegistry.get(r[0])?.id){s(r);continue}if(l.cycle){s(r);continue}if(l.count>1&&e.reused==="ref"){s(r);continue}}}function cq(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=r=>{const l=e.seen.get(r);if(l.ref===null)return;const a=l.def??l.schema,u={...a},c=l.ref;if(l.ref=null,c){i(c);const f=e.seen.get(c),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(a.allOf=a.allOf??[],a.allOf.push(h)):Object.assign(a,h),Object.assign(a,u),r._zod.parent===c)for(const g in a)g==="$ref"||g==="allOf"||g in u||delete a[g];if(h.$ref&&f.def)for(const g in a)g==="$ref"||g==="allOf"||g in f.def&&JSON.stringify(a[g])===JSON.stringify(f.def[g])&&delete a[g]}const d=r._zod.parent;if(d&&d!==c){i(d);const f=e.seen.get(d);if(f?.schema.$ref&&(a.$ref=f.schema.$ref,f.def))for(const h in a)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(a[h])===JSON.stringify(f.def[h])&&delete a[h]}e.override({zodSchema:r,jsonSchema:a,path:l.path??[]})};for(const r of[...e.seen.entries()].reverse())i(r[0]);const 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){const r=e.external.registry.get(t)?.id;if(!r)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(r)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const r of e.seen.entries()){const l=r[1];l.def&&l.defId&&(s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const r=JSON.parse(JSON.stringify(o));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wk(t,"input",e.processors),output:Wk(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch{throw new Error("Error converting schema to JSON.")}}function Br(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Br(i.element,n);if(i.type==="set")return Br(i.valueType,n);if(i.type==="lazy")return Br(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Br(i.innerType,n);if(i.type==="intersection")return Br(i.left,n)||Br(i.right,n);if(i.type==="record"||i.type==="map")return Br(i.keyType,n)||Br(i.valueType,n);if(i.type==="pipe")return Br(i.in,n)||Br(i.out,n);if(i.type==="object"){for(const o in i.shape)if(Br(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(Br(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(Br(o,n))return!0;return!!(i.rest&&Br(i.rest,n))}return!1}const F8e=(e,t={})=>n=>{const i=aq({...n,processors:t});return gs(e,i),uq(i,e),cq(i,e)},Wk=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},r=aq({...o??{},target:s,io:t,processors:n});return gs(e,r),uq(r,e),cq(r,e)},B8e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},R8e=(e,t,n,i)=>{const o=n;o.type="string";const{minimum:s,maximum:r,format:l,patterns:a,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof r=="number"&&(o.maxLength=r),l&&(o.format=B8e[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),a&&a.size>0){const c=[...a];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},O8e=(e,t,n,i)=>{const o=n,{minimum:s,maximum:r,format:l,multipleOf:a,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c),typeof s=="number"&&(o.minimum=s,typeof c=="number"&&t.target!=="draft-04"&&(c>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof r=="number"&&(o.maximum=r,typeof u=="number"&&t.target!=="draft-04"&&(u<=r?delete o.maximum:delete o.exclusiveMaximum)),typeof a=="number"&&(o.multipleOf=a)},$8e=(e,t,n,i)=>{n.type="boolean"},P8e=(e,t,n,i)=>{n.not={}},z8e=(e,t,n,i)=>{},j8e=(e,t,n,i)=>{const o=e._zod.def,s=jW(o.entries);s.every(r=>typeof r=="number")&&(n.type="number"),s.every(r=>typeof r=="string")&&(n.type="string"),n.enum=s},H8e=(e,t,n,i)=>{const o=e._zod.def,s=[];for(const r of o.values)if(r===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof r=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(r))}else s.push(r);if(s.length!==0)if(s.length===1){const r=s[0];n.type=r===null?"null":typeof r,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[r]:n.const=r}else s.every(r=>typeof r=="number")&&(n.type="number"),s.every(r=>typeof r=="string")&&(n.type="string"),s.every(r=>typeof r=="boolean")&&(n.type="boolean"),s.every(r=>r===null)&&(n.type="null"),n.enum=s},W8e=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},q8e=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},U8e=(e,t,n,i)=>{const o=n,s=e._zod.def,{minimum:r,maximum:l}=e._zod.bag;typeof r=="number"&&(o.minItems=r),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=gs(s.element,t,{...i,path:[...i.path,"items"]})},V8e=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const r=s.shape;for(const u in r)o.properties[u]=gs(r[u],t,{...i,path:[...i.path,"properties",u]});const l=new Set(Object.keys(r)),a=new Set([...l].filter(u=>{const c=s.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));a.size>0&&(o.required=Array.from(a)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=gs(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},K8e=(e,t,n,i)=>{const o=e._zod.def,s=o.inclusive===!1,r=o.options.map((l,a)=>gs(l,t,{...i,path:[...i.path,s?"oneOf":"anyOf",a]}));s?n.oneOf=r:n.anyOf=r},Z8e=(e,t,n,i)=>{const o=e._zod.def,s=gs(o.left,t,{...i,path:[...i.path,"allOf",0]}),r=gs(o.right,t,{...i,path:[...i.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,a=[...l(s)?s.allOf:[s],...l(r)?r.allOf:[r]];n.allOf=a},G8e=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object";const r=s.keyType,a=r._zod.bag?.patterns;if(s.mode==="loose"&&a&&a.size>0){const c=gs(s.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});o.patternProperties={};for(const d of a)o.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=gs(s.keyType,t,{...i,path:[...i.path,"propertyNames"]})),o.additionalProperties=gs(s.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const u=r._zod.values;if(u){const c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(o.required=c)}},Q8e=(e,t,n,i)=>{const o=e._zod.def,s=gs(o.innerType,t,i),r=t.seen.get(e);t.target==="openapi-3.0"?(r.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},Y8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},J8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},X8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},e5e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType;let r;try{r=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=r},t5e=(e,t,n,i)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;gs(s,t,i);const r=t.seen.get(e);r.ref=s},n5e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},dq=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},i5e=Nt("ZodISODateTime",(e,t)=>{o3e.init(e,t),Fo.init(e,t)});function o5e(e){return c8e(i5e,e)}const s5e=Nt("ZodISODate",(e,t)=>{s3e.init(e,t),Fo.init(e,t)});function r5e(e){return d8e(s5e,e)}const l5e=Nt("ZodISOTime",(e,t)=>{r3e.init(e,t),Fo.init(e,t)});function a5e(e){return f8e(l5e,e)}const u5e=Nt("ZodISODuration",(e,t)=>{l3e.init(e,t),Fo.init(e,t)});function c5e(e){return h8e(u5e,e)}const d5e=(e,t)=>{UW.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ybe(e,n)},flatten:{value:n=>Qbe(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cA,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cA,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ca=Nt("ZodError",d5e,{Parent:Error}),f5e=gx(Ca),h5e=vx(Ca),p5e=k4(Ca),m5e=b4(Ca),g5e=e4e(Ca),v5e=t4e(Ca),y5e=n4e(Ca),k5e=i4e(Ca),b5e=o4e(Ca),w5e=s4e(Ca),C5e=r4e(Ca),A5e=l4e(Ca),Do=Nt("ZodType",(e,t)=>(No.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wk(e,"input"),output:Wk(e,"output")}}),e.toJSONSchema=F8e(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(uf(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>cf(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>f5e(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>p5e(e,n,i),e.parseAsync=async(n,i)=>h5e(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>m5e(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>g5e(e,n,i),e.decode=(n,i)=>v5e(e,n,i),e.encodeAsync=async(n,i)=>y5e(e,n,i),e.decodeAsync=async(n,i)=>k5e(e,n,i),e.safeEncode=(n,i)=>b5e(e,n,i),e.safeDecode=(n,i)=>w5e(e,n,i),e.safeEncodeAsync=async(n,i)=>C5e(e,n,i),e.safeDecodeAsync=async(n,i)=>A5e(e,n,i),e.refine=(n,i)=>e.check(vwe(n,i)),e.superRefine=n=>e.check(ywe(n)),e.overwrite=n=>e.check(bm(n)),e.optional=()=>MD(e),e.exactOptional=()=>owe(e),e.nullable=()=>ID(e),e.nullish=()=>MD(ID(e)),e.nonoptional=n=>cwe(e,n),e.array=()=>Ai(e),e.or=n=>G5e([e,n]),e.and=n=>J5e(e,n),e.transform=n=>TD(e,nwe(n)),e.default=n=>lwe(e,n),e.prefault=n=>uwe(e,n),e.catch=n=>fwe(e,n),e.pipe=n=>TD(e,n),e.readonly=()=>mwe(e),e.describe=n=>{const i=e.clone();return Fg.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Fg.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fg.get(e);const i=e.clone();return Fg.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),fq=Nt("_ZodString",(e,t)=>{yx.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>R8e(e,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(k8e(...i)),e.includes=(...i)=>e.check(C8e(...i)),e.startsWith=(...i)=>e.check(A8e(...i)),e.endsWith=(...i)=>e.check(x8e(...i)),e.min=(...i)=>e.check(Hk(...i)),e.max=(...i)=>e.check(rq(...i)),e.length=(...i)=>e.check(lq(...i)),e.nonempty=(...i)=>e.check(Hk(1,...i)),e.lowercase=i=>e.check(b8e(i)),e.uppercase=i=>e.check(w8e(i)),e.trim=()=>e.check(_8e()),e.normalize=(...i)=>e.check(S8e(...i)),e.toLowerCase=()=>e.check(M8e()),e.toUpperCase=()=>e.check(I8e()),e.slugify=()=>e.check(T8e())}),x5e=Nt("ZodString",(e,t)=>{yx.init(e,t),fq.init(e,t),e.email=n=>e.check(W3e(S5e,n)),e.url=n=>e.check(Z3e(_5e,n)),e.jwt=n=>e.check(u8e(j5e,n)),e.emoji=n=>e.check(G3e(M5e,n)),e.guid=n=>e.check(wD(SD,n)),e.uuid=n=>e.check(q3e(Cy,n)),e.uuidv4=n=>e.check(U3e(Cy,n)),e.uuidv6=n=>e.check(V3e(Cy,n)),e.uuidv7=n=>e.check(K3e(Cy,n)),e.nanoid=n=>e.check(Q3e(I5e,n)),e.guid=n=>e.check(wD(SD,n)),e.cuid=n=>e.check(Y3e(T5e,n)),e.cuid2=n=>e.check(J3e(E5e,n)),e.ulid=n=>e.check(X3e(L5e,n)),e.base64=n=>e.check(r8e($5e,n)),e.base64url=n=>e.check(l8e(P5e,n)),e.xid=n=>e.check(e8e(N5e,n)),e.ksuid=n=>e.check(t8e(D5e,n)),e.ipv4=n=>e.check(n8e(F5e,n)),e.ipv6=n=>e.check(i8e(B5e,n)),e.cidrv4=n=>e.check(o8e(R5e,n)),e.cidrv6=n=>e.check(s8e(O5e,n)),e.e164=n=>e.check(a8e(z5e,n)),e.datetime=n=>e.check(o5e(n)),e.date=n=>e.check(r5e(n)),e.time=n=>e.check(a5e(n)),e.duration=n=>e.check(c5e(n))});function jt(e){return H3e(x5e,e)}const Fo=Nt("ZodStringFormat",(e,t)=>{_o.init(e,t),fq.init(e,t)}),S5e=Nt("ZodEmail",(e,t)=>{G4e.init(e,t),Fo.init(e,t)}),SD=Nt("ZodGUID",(e,t)=>{K4e.init(e,t),Fo.init(e,t)}),Cy=Nt("ZodUUID",(e,t)=>{Z4e.init(e,t),Fo.init(e,t)}),_5e=Nt("ZodURL",(e,t)=>{Q4e.init(e,t),Fo.init(e,t)}),M5e=Nt("ZodEmoji",(e,t)=>{Y4e.init(e,t),Fo.init(e,t)}),I5e=Nt("ZodNanoID",(e,t)=>{J4e.init(e,t),Fo.init(e,t)}),T5e=Nt("ZodCUID",(e,t)=>{X4e.init(e,t),Fo.init(e,t)}),E5e=Nt("ZodCUID2",(e,t)=>{e3e.init(e,t),Fo.init(e,t)}),L5e=Nt("ZodULID",(e,t)=>{t3e.init(e,t),Fo.init(e,t)}),N5e=Nt("ZodXID",(e,t)=>{n3e.init(e,t),Fo.init(e,t)}),D5e=Nt("ZodKSUID",(e,t)=>{i3e.init(e,t),Fo.init(e,t)}),F5e=Nt("ZodIPv4",(e,t)=>{a3e.init(e,t),Fo.init(e,t)}),B5e=Nt("ZodIPv6",(e,t)=>{u3e.init(e,t),Fo.init(e,t)}),R5e=Nt("ZodCIDRv4",(e,t)=>{c3e.init(e,t),Fo.init(e,t)}),O5e=Nt("ZodCIDRv6",(e,t)=>{d3e.init(e,t),Fo.init(e,t)}),$5e=Nt("ZodBase64",(e,t)=>{f3e.init(e,t),Fo.init(e,t)}),P5e=Nt("ZodBase64URL",(e,t)=>{p3e.init(e,t),Fo.init(e,t)}),z5e=Nt("ZodE164",(e,t)=>{m3e.init(e,t),Fo.init(e,t)}),j5e=Nt("ZodJWT",(e,t)=>{v3e.init(e,t),Fo.init(e,t)}),hq=Nt("ZodNumber",(e,t)=>{tq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>O8e(e,i,o),e.gt=(i,o)=>e.check(AD(i,o)),e.gte=(i,o)=>e.check(o5(i,o)),e.min=(i,o)=>e.check(o5(i,o)),e.lt=(i,o)=>e.check(CD(i,o)),e.lte=(i,o)=>e.check(i5(i,o)),e.max=(i,o)=>e.check(i5(i,o)),e.int=i=>e.check(_D(i)),e.safe=i=>e.check(_D(i)),e.positive=i=>e.check(AD(0,i)),e.nonnegative=i=>e.check(o5(0,i)),e.negative=i=>e.check(CD(0,i)),e.nonpositive=i=>e.check(i5(0,i)),e.multipleOf=(i,o)=>e.check(xD(i,o)),e.step=(i,o)=>e.check(xD(i,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function wn(e){return p8e(hq,e)}const H5e=Nt("ZodNumberFormat",(e,t)=>{y3e.init(e,t),hq.init(e,t)});function _D(e){return m8e(H5e,e)}const W5e=Nt("ZodBoolean",(e,t)=>{k3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>$8e(e,n,i)});function Kv(e){return g8e(W5e,e)}const q5e=Nt("ZodUnknown",(e,t)=>{b3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>z8e()});function Ss(){return v8e(q5e)}const U5e=Nt("ZodNever",(e,t)=>{w3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>P8e(e,n,i)});function V5e(e){return y8e(U5e,e)}const K5e=Nt("ZodArray",(e,t)=>{C3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>U8e(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(Hk(n,i)),e.nonempty=n=>e.check(Hk(1,n)),e.max=(n,i)=>e.check(rq(n,i)),e.length=(n,i)=>e.check(lq(n,i)),e.unwrap=()=>e.element});function Ai(e,t){return E8e(K5e,e,t)}const Z5e=Nt("ZodObject",(e,t)=>{x3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>V8e(e,n,i,o),zi(e,"shape",()=>t.shape),e.keyof=()=>So(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ss()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ss()}),e.strict=()=>e.clone({...e._zod.def,catchall:V5e()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Ube(e,n),e.safeExtend=n=>Vbe(e,n),e.merge=n=>Kbe(e,n),e.pick=n=>Wbe(e,n),e.omit=n=>qbe(e,n),e.partial=(...n)=>Zbe(mq,e,n[0]),e.required=(...n)=>Gbe(gq,e,n[0])});function Jt(e,t){const n={type:"object",shape:e??{},...Tn(t)};return new Z5e(n)}const pq=Nt("ZodUnion",(e,t)=>{oq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>K8e(e,n,i,o),e.options=t.options});function G5e(e,t){return new pq({type:"union",options:e,...Tn(t)})}const Q5e=Nt("ZodDiscriminatedUnion",(e,t)=>{pq.init(e,t),S3e.init(e,t)});function df(e,t,n){return new Q5e({type:"union",options:t,discriminator:e,...Tn(n)})}const Y5e=Nt("ZodIntersection",(e,t)=>{_3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Z8e(e,n,i,o)});function J5e(e,t){return new Y5e({type:"intersection",left:e,right:t})}const X5e=Nt("ZodRecord",(e,t)=>{M3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>G8e(e,n,i,o),e.keyType=t.keyType,e.valueType=t.valueType});function kx(e,t,n){return new X5e({type:"record",keyType:e,valueType:t,...Tn(n)})}const fA=Nt("ZodEnum",(e,t)=>{I3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>j8e(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const r of i)if(n.has(r))s[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new fA({...t,checks:[],...Tn(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const r of i)if(n.has(r))delete s[r];else throw new Error(`Key ${r} not found in enum`);return new fA({...t,checks:[],...Tn(o),entries:s})}});function So(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new fA({type:"enum",entries:n,...Tn(t)})}const ewe=Nt("ZodLiteral",(e,t)=>{T3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>H8e(e,n,i),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 Gn(e,t){return new ewe({type:"literal",values:Array.isArray(e)?e:[e],...Tn(t)})}const twe=Nt("ZodTransform",(e,t)=>{E3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>q8e(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new PW(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(lv(s,n.value,t));else{const r=s;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(lv(r))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function nwe(e){return new twe({type:"transform",transform:e})}const mq=Nt("ZodOptional",(e,t)=>{sq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>dq(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new mq({type:"optional",innerType:e})}const iwe=Nt("ZodExactOptional",(e,t)=>{L3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>dq(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function owe(e){return new iwe({type:"optional",innerType:e})}const swe=Nt("ZodNullable",(e,t)=>{N3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Q8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function ID(e){return new swe({type:"nullable",innerType:e})}const rwe=Nt("ZodDefault",(e,t)=>{D3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>J8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lwe(e,t){return new rwe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():WW(t)}})}const awe=Nt("ZodPrefault",(e,t)=>{F3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>X8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function uwe(e,t){return new awe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():WW(t)}})}const gq=Nt("ZodNonOptional",(e,t)=>{B3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Y8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function cwe(e,t){return new gq({type:"nonoptional",innerType:e,...Tn(t)})}const dwe=Nt("ZodCatch",(e,t)=>{R3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>e5e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fwe(e,t){return new dwe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const hwe=Nt("ZodPipe",(e,t)=>{O3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>t5e(e,n,i,o),e.in=t.in,e.out=t.out});function TD(e,t){return new hwe({type:"pipe",in:e,out:t})}const pwe=Nt("ZodReadonly",(e,t)=>{$3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>n5e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function mwe(e){return new pwe({type:"readonly",innerType:e})}const gwe=Nt("ZodCustom",(e,t)=>{P3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>W8e(e,n)});function vwe(e,t={}){return L8e(gwe,e,t)}function ywe(e){return N8e(e)}const jh=jt().min(1),bx=jt().min(1),Zv=jt().min(1),Hh=jt().min(1),Gl=jt().min(1),kwe=/^[A-Za-z0-9._-]{1,128}$/;function bwe(e){return kwe.test(e)&&e!=="."&&e!==".."}const vq=df("kind",[Jt({kind:Gn("user"),payload:Ss().optional()}),Jt({kind:Gn("cron"),taskId:Hh.optional(),payload:Ss().optional()}),Jt({kind:Gn("task"),taskId:Hh,payload:Ss().optional()}),Jt({kind:Gn("hook"),payload:Ss().optional()}),Jt({kind:Gn("compaction"),payload:Ss().optional()}),Jt({kind:Gn("side"),payload:Ss().optional()}),Jt({kind:Gn("other"),payload:Ss().optional()})]),wwe=Jt({inputTokens:wn().optional(),outputTokens:wn().optional(),cachedTokens:wn().optional(),cost:wn().optional()}),w0=Jt({inputOther:wn(),output:wn(),inputCacheRead:wn(),inputCacheCreation:wn()}),Cwe=Jt({llmFirstTokenLatencyMs:wn().optional(),llmStreamDurationMs:wn().optional(),llmRequestBuildMs:wn().optional(),llmServerFirstTokenMs:wn().optional(),llmServerDecodeMs:wn().optional(),llmClientConsumeMs:wn().optional()}),Awe=Jt({failedAttempt:wn(),nextAttempt:wn(),maxAttempts:wn(),delayMs:wn(),errorName:jt(),errorMessage:jt(),statusCode:wn().optional()}),yq=So(["queued","running","completed","failed","cancelled"]),xwe=So(["running","completed","interrupted","failed"]),Swe=Jt({kind:Gn("text"),frameId:Zv,role:So(["assistant","user"]),text:jt(),attachmentIds:Ai(jt()).optional(),taskId:Hh.optional(),promptIds:Ai(jt()).optional()}),_we=Jt({kind:Gn("thinking"),frameId:Zv,text:jt()}),Mwe=Jt({agentId:Gl,role:So(["child","member"]).optional()}),Iwe=Jt({kind:So(["stdout","stderr","progress","status","custom"]),text:jt().optional(),percent:wn().optional(),customKind:jt().optional(),customData:Ss().optional()}),Twe=Jt({kind:Gn("tool"),frameId:Zv,toolCallId:jt(),name:jt(),view:jt().optional(),state:So(["running","done","error"]),input:Ss().optional(),output:Ss().optional(),display:Ss().optional(),error:jt().optional(),inputText:jt().optional(),progress:Iwe.optional(),taskId:Hh.optional(),approvalId:jt().optional(),todoId:jt().optional(),agentRefs:Ai(Mwe).optional()}),wx=Jt({interactionId:jt(),interactionKind:So(["approval","question"]),toolCallId:jt().optional(),state:So(["pending","approved","rejected","cancelled","answered","dismissed"]),request:Ss().optional(),response:Ss().optional()}),Ewe=Jt({kind:Gn("notice"),frameId:Zv,level:So(["error","warning","info"]),source:jt().optional(),message:jt(),detail:Ss().optional()}),kq=df("kind",[Swe,_we,Twe,Ewe]),bq=Jt({kind:Gn("step"),stepId:bx,turnId:jh,ordinal:wn().int(),state:xwe,frames:Ai(kq),startedAt:jt().optional(),endedAt:jt().optional(),usage:w0.optional(),finishReason:jt().optional(),timing:Cwe.optional(),retry:Awe.optional(),endReason:jt().optional(),endMessage:jt().optional()}),wq=Jt({kind:Gn("turn"),turnId:jh,ordinal:wn().int(),state:yq,origin:vq,prompt:jt().optional(),attachmentIds:Ai(jt()).optional(),steps:Ai(bq),startedAt:jt().optional(),endedAt:jt().optional(),usage:wwe.optional(),durationMs:wn().optional(),error:jt().optional()}),Cq=Jt({kind:Gn("marker"),markerId:jt(),marker:jt(),payload:Ss().optional(),at:jt().optional()}),Aq=Jt({kind:Gn("taskref"),refId:jt(),taskId:Hh,at:jt().optional()}),xq=df("kind",[wq,Cq,Aq]),Cx=Jt({taskId:Hh,kind:So(["shell","subagent","tool","other"]),state:So(["running","completed","failed","timed_out","killed","lost"]),detached:Kv(),description:jt().optional(),agentId:Gl.optional(),outputTail:jt(),startedAt:jt().optional(),endedAt:jt().optional(),resultSummary:jt().optional(),error:jt().optional(),stateReason:jt().optional(),usage:w0.optional(),model:jt().optional(),thinkingEffort:jt().optional()}),Sq=Jt({objective:jt(),status:So(["active","paused","blocked","complete"]),completionCriterion:jt().optional(),budgetUsed:wn().optional(),budgetLimit:wn().optional()}),Lwe=Jt({plan:Jt({reviewPath:jt().optional(),version:wn().optional()}).optional(),swarm:Jt({trigger:jt().optional()}).optional(),tower:Jt({}).optional()}),Nwe=Jt({plan:Jt({reviewPath:jt().optional(),version:wn().optional()}).nullable().optional(),swarm:Jt({trigger:jt().optional()}).nullable().optional(),tower:Jt({}).nullable().optional()}),Dwe=df("kind",[Jt({kind:Gn("idle")}),Jt({kind:Gn("running"),turnId:wn(),step:wn(),stepId:jt(),since:wn()}),Jt({kind:Gn("streaming"),turnId:wn(),step:wn(),stepId:jt(),stream:So(["assistant","thinking","tool_call"]),toolCallId:jt().optional(),toolName:jt().optional(),since:wn()}),Jt({kind:Gn("tool_call"),turnId:wn(),step:wn(),toolCallId:jt(),name:jt(),since:wn()}),Jt({kind:Gn("retrying"),turnId:wn(),step:wn(),stepId:jt(),failedAttempt:wn(),nextAttempt:wn(),maxAttempts:wn(),delayMs:wn(),errorName:jt().optional(),statusCode:wn().optional(),since:wn()}),Jt({kind:Gn("awaiting_approval"),turnId:wn(),step:wn().optional(),approval:Ss().optional(),since:wn()}),Jt({kind:Gn("interrupted"),turnId:wn(),step:wn().optional(),reason:So(["aborted","max_steps","error"]),message:jt().optional(),at:wn()}),Jt({kind:Gn("ended"),turnId:wn(),reason:So(["completed","cancelled","failed","blocked"]),durationMs:wn().optional(),at:wn()})]),Fwe=Jt({byModel:kx(jt(),w0).optional(),currentTurn:w0.optional(),total:w0.optional()}),Bwe=Jt({model:jt().optional(),thinkingEffort:jt().optional(),usage:Fwe.optional(),contextTokens:wn().optional(),maxContextTokens:wn().optional(),contextUsage:wn().optional(),permission:So(["manual","yolo","auto"]).optional(),phase:Dwe.optional()}),Ax=Jt({goal:Sq.optional(),modes:Lwe.optional(),activity:So(["idle","turn","disposing","unknown"]).optional(),agent:Bwe.optional()}),Rwe=Ax.extend({goal:Sq.nullable().optional(),modes:Nwe.optional()}),C4=Jt({attachmentId:jt(),mediaType:jt(),name:jt().optional(),size:wn().optional(),source:df("kind",[Jt({kind:Gn("url"),url:jt()}),Jt({kind:Gn("file"),fileId:jt()}),Jt({kind:Gn("session_media"),fileId:jt()})]).optional(),placeholder:jt().optional()}),Owe=Jt({title:jt(),status:So(["pending","in_progress","done"])}),xx=Jt({todoId:jt(),items:Ai(Owe),updatedAt:jt().optional()}),Sx=Jt({promptId:jt(),status:So(["running","queued","blocked","completed","failed","aborted"]),userMessageId:jt().optional(),content:Ss().optional(),createdAt:jt(),finishedAt:jt().optional(),steeredAt:jt().optional()}),_q=Jt({items:Ai(xq),tasks:Ai(Cx),interactions:Ai(wx).default([]),attachments:Ai(C4).default([]),todos:Ai(xx).default([]),prompts:Ai(Sx).default([]),meta:Ax,hasMoreOlder:Kv().optional()}),$we=wq.omit({steps:!0}),Pwe=bq.omit({frames:!0}),zwe=df("type",[Jt({type:Gn("frame"),turnId:jh,stepId:bx,frameId:Zv}),Jt({type:Gn("task"),taskId:Hh})]),_x=df("op",[Jt({op:Gn("reset"),agentId:Gl,snapshot:_q}),Jt({op:Gn("turn.upsert"),turn:$we}),Jt({op:Gn("step.upsert"),turnId:jh,step:Pwe}),Jt({op:Gn("frame.upsert"),turnId:jh,stepId:bx,frame:kq}),Jt({op:Gn("append"),target:zwe,offset:wn().int().nonnegative(),text:jt()}),Jt({op:Gn("marker.upsert"),item:Cq,beforeTurn:wn().int().optional()}),Jt({op:Gn("taskref.upsert"),item:Aq,beforeTurn:wn().int().optional()}),Jt({op:Gn("task.upsert"),task:Cx}),Jt({op:Gn("interaction.upsert"),interaction:wx}),Jt({op:Gn("attachment.upsert"),attachment:C4}),Jt({op:Gn("todo.upsert"),todo:xx}),Jt({op:Gn("prompt.upsert"),prompt:Sx}),Jt({op:Gn("meta.merge"),meta:Rwe}),Jt({op:Gn("items.remove"),ids:Ai(jt())})]);Jt({agentId:Gl,ops:Ai(_x)});const jwe=So(["off","turn","block","delta"]),Q1=wn().int().nonnegative(),Hwe=kx(jt(),jwe);Jt({session_id:jt().min(1),transcript:Hwe,transcript_since:kx(jt(),Q1).optional()});Jt({agent_id:Gl,before_turn:jt().min(1).optional(),after_turn:jt().min(1).optional(),page_size:wn().int().min(1).max(100).optional()}).superRefine((e,t)=>{e.before_turn!==void 0&&e.after_turn!==void 0&&t.addIssue({code:"custom",message:"before_turn and after_turn are mutually exclusive",path:["before_turn"]}),bwe(e.agent_id)||t.addIssue({code:"custom",message:"agent_id must be a plain agent id (no path separators)",path:["agent_id"]})});const Wwe=Jt({agentId:Gl,type:So(["main","sub","independent"]).optional(),parentAgentId:Gl.optional(),label:jt().optional(),createdAt:jt().optional(),disposedAt:jt().optional()}),qwe=Jt({agent_id:Gl,items:Ai(xq),has_more:Kv(),tasks:Ai(Cx),interactions:Ai(wx).default([]),attachments:Ai(C4).default([]),todos:Ai(xx).default([]),prompts:Ai(Sx).default([]),meta:Ax,agents:Ai(Wwe),pending_interactions:Ai(jt()),seq:Q1.optional()});Jt({agent_id:Gl,batches:Ai(Jt({seq:Q1,ops:Ai(_x)})),latest_seq:Q1,complete:Kv()});const Uwe=Jt({turn_id:jh,ordinal:wn().int(),state:yq,origin:vq,prompt:jt(),attachment_ids:Ai(jt()).optional(),started_at:jt().optional()});Jt({agents:Ai(Jt({agent_id:Gl,messages:Ai(Uwe),attachments:Ai(C4).default([])}))});const Vwe=Jt({state:So(["pending","approved","rejected","cancelled"]),selected_option:jt().optional(),feedback:jt().optional()}),Kwe=Jt({tool_call_id:jt(),turn_id:jh,source:So(["interaction","display","output"]),plan:jt(),path:jt().optional(),options:Ai(Jt({label:jt(),description:jt().optional()})).optional(),review:Vwe.optional()});Jt({agent_id:Gl,plans:Ai(Kwe)});const Zwe=Jt({agent_id:Gl,snapshot:_q,has_more_older:Kv(),seq:Q1.optional()}),Gwe=Jt({agent_id:Gl,ops:Ai(_x),seq:Q1.optional()}),Mq=Zwe.extend({type:Gn("transcript.reset")}),Iq=Gwe.extend({type:Gn("transcript.ops")});df("type",[Mq,Iq]);const ED=new Set(["turn.started","turn.step.started","turn.step.completed","turn.step.retrying","turn.step.interrupted","turn.ended","thinking.delta","assistant.delta","tool.call.started","tool.use","tool.call.delta","tool.progress","tool.result","agent.status.updated","prompt.submitted","prompt.completed","prompt.aborted","session.meta.updated","compaction.started","compaction.completed","compaction.cancelled","goal.updated","error","warning","subagent.spawned","subagent.started","subagent.suspended","subagent.completed","subagent.failed","task.started","task.terminated","background.task.started","background.task.terminated","cron.fired"]),Qwe=new Set(["session.created","session.updated","session.deleted","session.status_changed","session.usage_updated","session.history_compacted","message.created","message.updated","approval.requested","approval.resolved","approval.expired","question.requested","question.answered","question.dismissed","task.created","task.progress","task.completed","assistant.tool_use_started","assistant.tool_use_delta","assistant.tool_use_completed","assistant.completed","tool.started","tool.output","tool.completed"]),Ywe=new Set(["server_hello","ack","ping","resync_required","error","pong"]),Jwe=new Set(["assistant.delta","thinking.delta"]);function Xwe(e,t){if(Ywe.has(e))return{route:"ignore"};const n=e.startsWith("event."),i=n?e.slice(6):e;return Jwe.has(i)?eCe(t)?{route:"agent",agentType:i}:{route:"protocol"}:n?Qwe.has(i)?{route:"protocol"}:ED.has(i)?{route:"agent",agentType:i}:{route:"protocol"}:ED.has(i)?{route:"agent",agentType:i}:{route:"agent",agentType:i}}function eCe(e){if(!e||typeof e!="object")return!1;const t=e;return"message_id"in t||"content_index"in t?!1:typeof t.delta=="string"}const tCe="kimi-code.bearer.",nCe=3e4;class LD{constructor(t){this.opts=t,this.tracer=t.tracer??ux}ws=null;connected=!1;closed=!1;subscriptions=new Map;transcriptSubscriptions=new Map;sideChannelAgents=new Map;pendingSubscriptions=[];terminalAttachments=new Map;msgSeq=0;clientHelloId=null;reconnectAttempts=0;reconnectTimer=null;heartbeatMs=3e4;lastActivityAt=0;tracer;connect(){if(this.ws!==null||this.closed)return;this.lastActivityAt=Date.now(),this.tracer.wsEvent?.({kind:"lifecycle",event:"connect",detail:{url:this.opts.wsUrl,attempt:this.reconnectAttempts}});const t=this.opts.credentialStore?.getToken(),n=t!==void 0?[`${tCe}${t}`]:void 0,i=new WebSocket(this.opts.wsUrl,n);this.ws=i,i.onopen=()=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"open"})},i.onmessage=o=>{this.lastActivityAt=Date.now();try{const s=JSON.parse(String(o.data));this.tracer.wsEvent?.({kind:"in",frame:s}),this.handleFrame(s)}catch(s){this.tracer.wsEvent?.({kind:"lifecycle",event:"parse-error",detail:{error:String(s)}}),this.opts.handlers.onError(0,`Failed to parse WS frame: ${String(s)}`,!1)}},i.onerror=()=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"error"}),this.opts.handlers.onError(0,"WebSocket error",!1)},i.onclose=o=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"close",detail:o?{code:o.code,reason:o.reason,wasClean:o.wasClean}:void 0}),this.connected=!1,this.ws=null,this.opts.handlers.onConnectionState(!1),this.scheduleReconnect()}}scheduleReconnect(){if(this.closed||this.reconnectTimer!==null)return;const n=Math.min(3e4,1e3*2**this.reconnectAttempts)+Math.floor(Math.random()*250);this.reconnectAttempts+=1,this.tracer.wsEvent?.({kind:"lifecycle",event:"reconnect-scheduled",detail:{delayMs:n,attempt:this.reconnectAttempts}}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}subscribe(t,n={seq:0}){if(this.subscriptions.set(t,{...n}),this.connected)this.sendSubscribe([t],{[t]:n});else{const i=this.pendingSubscriptions.findIndex(o=>o.sessionId===t);i!==-1&&this.pendingSubscriptions.splice(i,1),this.pendingSubscriptions.push({sessionId:t,cursor:{...n}})}}unsubscribe(t){this.subscriptions.delete(t);const n=this.pendingSubscriptions.findIndex(i=>i.sessionId===t);n!==-1&&this.pendingSubscriptions.splice(n,1),this.connected&&this.ws&&this.send({type:"unsubscribe",id:this.nextId(),payload:{session_ids:[t]}})}subscribeTranscript(t,n,i){let o=this.transcriptSubscriptions.get(t);o===void 0&&(o=new Map,this.transcriptSubscriptions.set(t,o)),o.set(n,i!==void 0?{sinceSeq:i}:{}),this.connected&&this.sendTranscriptSubscribe(t,n)}unsubscribeTranscript(t,n){const i=this.transcriptSubscriptions.get(t);if(i!==void 0)if(n===void 0)this.transcriptSubscriptions.delete(t);else{for(const o of n)i.delete(o);i.size===0&&this.transcriptSubscriptions.delete(t)}!this.connected||!this.ws||this.send({type:"unsubscribe_v2",id:this.nextId(),payload:{session_id:t,...n!==void 0?{agent_ids:n}:{}}})}markSideChannelAgent(t,n){if(!this.opts.mainAgentOnly)return;let i=this.sideChannelAgents.get(t);if(i===void 0&&(i=new Set,this.sideChannelAgents.set(t,i)),i.has(n))return;i.add(n);const o=this.subscriptions.get(t);this.connected&&o!==void 0&&this.sendSubscribe([t],{[t]:o})}abort(t,n){!this.connected||!this.ws||this.send({type:"abort",id:this.nextId(),payload:{session_id:t,prompt_id:n}})}terminalAttach(t,n,i){const o=Ay(t,n),s=this.terminalAttachments.get(o),r=i??s?.lastSeq??0;this.terminalAttachments.set(o,{sessionId:t,terminalId:n,lastSeq:r}),!(!this.connected||!this.ws)&&this.sendTerminalAttach(t,n,r)}terminalInput(t,n,i){!this.connected||!this.ws||this.send({type:"terminal_input",id:this.nextId(),payload:{session_id:t,terminal_id:n,data:i}})}terminalResize(t,n,i,o){!this.connected||!this.ws||this.send({type:"terminal_resize",id:this.nextId(),payload:{session_id:t,terminal_id:n,cols:i,rows:o}})}terminalDetach(t,n){this.terminalAttachments.delete(Ay(t,n)),!(!this.connected||!this.ws)&&this.send({type:"terminal_detach",id:this.nextId(),payload:{session_id:t,terminal_id:n}})}terminalClose(t,n){this.terminalAttachments.delete(Ay(t,n)),!(!this.connected||!this.ws)&&this.send({type:"terminal_close",id:this.nextId(),payload:{session_id:t,terminal_id:n}})}close(){this.closed=!0,this.connected=!1,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(1e3),this.ws=null)}health(){const t=this.ws!==null&&this.ws.readyState===WebSocket.OPEN,n=Math.max(this.heartbeatMs*2,nCe),i=this.lastActivityAt>0&&Date.now()-this.lastActivityAt>n;return{connected:this.connected,open:t,stale:i}}reconnect(){if(this.closed)return;this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);const t=this.ws;if(t!==null){t.onopen=null,t.onmessage=null,t.onerror=null,t.onclose=null;try{t.close(1e3,"reconnect")}catch{}}const n=this.connected;this.ws=null,this.connected=!1,n&&this.opts.handlers.onConnectionState(!1),this.connect()}handleFrame(t){const n=t,i=t.type;if(i==="transcript.reset"){const o=Mq.safeParse({type:i,...n.payload}),s=n.session_id;if(!o.success||typeof s!="string"){this.opts.handlers.onError(0,"Invalid transcript.reset frame",!1);return}const r=o.data;this.opts.handlers.onTranscriptReset?.(s,r.agent_id,{...r.snapshot,hasMoreOlder:r.has_more_older},r.seq);const l=this.transcriptSubscriptions.get(s)?.get(r.agent_id);l!==void 0&&r.seq!==void 0&&(l.sinceSeq=r.seq);return}if(i==="transcript.ops"){const o=Iq.safeParse({type:i,...n.payload}),s=n.session_id;if(!o.success||typeof s!="string"){this.opts.handlers.onError(0,"Invalid transcript.ops frame",!1);return}const r=o.data,l=this.opts.handlers.onTranscriptOps?.(s,r.agent_id,r.ops,r.seq),a=this.transcriptSubscriptions.get(s)?.get(r.agent_id);l!==!1&&a!==void 0&&r.seq!==void 0&&(a.sinceSeq=r.seq);return}switch(i){case"server_hello":{const o=n.payload?.heartbeat_ms;typeof o=="number"&&o>0&&(this.heartbeatMs=o),this.onServerHello();break}case"ping":this.send({type:"pong",payload:{nonce:n.payload.nonce}});break;case"resync_required":{const o=n.payload.session_id,s=n.payload.epoch;this.subscriptions.set(o,{seq:n.payload.current_seq,epoch:s}),this.opts.handlers.onResync(o,n.payload.current_seq,s);break}case"error":{const o=n.session_id;typeof o=="string"&&this.opts.handlers.onRawAgentEvent?this.opts.handlers.onRawAgentEvent({type:"error",seq:n.seq,session_id:o,timestamp:n.timestamp,payload:n.payload}):this.opts.handlers.onError(n.payload.code,n.payload.msg,n.payload.fatal);break}case"ack":n.id===this.clientHelloId&&(this.clientHelloId=null,n.code===0&&this.opts.handlers.onReplayComplete?.());break;case"terminal_output":{const o=n.session_id,s=n.terminal_id,r=n.seq,l=Ay(o,s),a=this.terminalAttachments.get(l);a&&this.terminalAttachments.set(l,{...a,lastSeq:Math.max(a.lastSeq,r)});const u=typeof n.payload?.data=="string"?n.payload.data:"";this.opts.handlers.onTerminalOutput?.(o,s,u,r);break}case"terminal_exit":{const o=n.session_id,s=n.terminal_id,r=n.payload?.exit_code,l=typeof r=="number"?r:null;this.opts.handlers.onTerminalExit?.(o,s,l);break}default:{this.trackCursor(n);const o=n.type,s=Xwe(o,n.payload);if(s.route==="protocol"){this.opts.handlers.onWireEvent(n);break}if(s.route==="agent"){if(this.opts.handlers.onRawAgentEvent&&typeof n.session_id=="string"){const r=n,l=n;this.opts.handlers.onRawAgentEvent({type:s.agentType,seq:r.seq,session_id:r.session_id,timestamp:r.timestamp,payload:r.payload,...l.volatile!==void 0?{volatile:l.volatile}:{},...l.offset!==void 0?{offset:l.offset}:{}})}break}break}}}onServerHello(){this.connected=!0,this.reconnectAttempts=0,this.opts.handlers.onConnectionState(!0);const t=Array.from(this.subscriptions.keys());for(const o of this.pendingSubscriptions)this.subscriptions.set(o.sessionId,o.cursor),t.includes(o.sessionId)||t.push(o.sessionId);this.pendingSubscriptions.length=0;const n={};for(const[o,s]of this.subscriptions.entries())n[o]=s;const i=this.nextId();this.clientHelloId=i,this.send({type:"client_hello",id:i,payload:{client_id:this.opts.clientId,subscriptions:t,cursors:n,...this.opts.mainAgentOnly?{agent_filter:this.rawAgentFilter(t)}:{}}});for(const o of this.transcriptSubscriptions.keys())this.sendTranscriptSubscribe(o);for(const o of this.terminalAttachments.values())this.sendTerminalAttach(o.sessionId,o.terminalId,o.lastSeq)}sendSubscribe(t,n){this.send({type:"subscribe",id:this.nextId(),payload:{session_ids:t,cursors:n,...this.opts.mainAgentOnly?{agent_filter:this.rawAgentFilter(t)}:{}}})}rawAgentFilter(t){return Object.fromEntries(t.map(n=>[n,["main",...this.sideChannelAgents.get(n)??[]]]))}sendTranscriptSubscribe(t,n){const i=this.transcriptSubscriptions.get(t);if(i===void 0||i.size===0)return;const o={},s={};for(const[r,l]of i)o[r]="delta",l.sinceSeq!==void 0&&(n===void 0||n===r)&&(s[r]=l.sinceSeq);this.send({type:"subscribe_v2",id:this.nextId(),payload:{session_id:t,transcript:o,...Object.keys(s).length>0?{transcript_since:s}:{}}})}sendTerminalAttach(t,n,i){this.send({type:"terminal_attach",id:this.nextId(),payload:{session_id:t,terminal_id:n,since_seq:i>0?i:void 0}})}trackCursor(t){if(t.volatile===!0)return;const n=t.session_id,i=t.seq;if(typeof n!="string"||typeof i!="number")return;const o=this.subscriptions.get(n);if(!o||i<=o.seq&&o.epoch!==void 0)return;const s=typeof t.epoch=="string"?t.epoch:o.epoch;this.subscriptions.set(n,{seq:Math.max(i,o.seq),epoch:s})}send(t){if(!(!this.ws||this.ws.readyState!==WebSocket.OPEN))try{this.ws.send(JSON.stringify(t)),this.tracer.wsEvent?.({kind:"out",frame:t})}catch{}}nextId(){return`c_${++this.msgSeq}`}}function Ay(e,t){return`${e}\0${t}`}async function iCe(e,t,n){const i=await e.get(`/sessions/${encodeURIComponent(t)}/transcript`,{agent_id:n.agentId,before_turn:n.beforeTurn,after_turn:n.afterTurn,page_size:n.pageSize}),o=qwe.parse(i),s={items:o.items,tasks:o.tasks,interactions:o.interactions,attachments:o.attachments,todos:o.todos,prompts:o.prompts,meta:o.meta,hasMoreOlder:o.has_more};return{agentId:o.agent_id,...s,agents:o.agents,pendingInteractions:o.pending_interactions,...o.seq!==void 0?{seq:o.seq}:{}}}const s5=10485760,oCe=5e3,ND=40001;function sCe(e,t){if(e===void 0)return t;let n;const i=/filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e)?.[1]?.trim();if(i!==void 0)try{n=decodeURIComponent(i.replaceAll(/^"|"$/g,""))}catch{return t}else n=/filename\s*=\s*"([^"]*)"/i.exec(e)?.[1]??/filename\s*=\s*([^;]+)/i.exec(e)?.[1]?.trim();return n===void 0||n.length===0||n.length>200||n==="."||n===".."||/[\u0000-\u001F\u007F/\\]/.test(n)||!n.toLowerCase().endsWith(".zip")?t:n}function rCe(e){if(typeof e!="object"||e===null)return{errorName:typeof e};const t=e;return{errorName:typeof t.name=="string"?t.name:"Error",errorCode:typeof t.code=="number"?t.code:void 0,requestId:typeof t.requestId=="string"?t.requestId:void 0,phase:typeof t.phase=="string"?t.phase:void 0,httpStatus:typeof t.status=="number"?t.status:void 0}}function r5(e){return{id:e.id,sessionId:e.session_id,cwd:e.cwd,shell:e.shell,cols:e.cols,rows:e.rows,status:e.status,createdAt:e.created_at,exitedAt:e.exited_at,exitCode:e.exit_code}}function DD(e){return e==="auto_compact"||e==="manual_compact"}class lCe{constructor(t){this.opts=t,this.tracer=t.tracer??ux,this.http=new tD({origin:t.origin,identity:t.identity,tracer:this.tracer,credentialStore:t.credentialStore}),this.httpV2=new tD({origin:t.origin,identity:t.identity,tracer:this.tracer,credentialStore:t.credentialStore,restBasePath:"/api/v2"})}http;httpV2;tracer;async getHealth(){return{status:"ok",uptimeSec:(await this.http.get("/healthz")).uptime_sec??0}}async getMeta(){const t=await this.http.get("/meta");return{serverVersion:t.server_version,serverId:t.server_id,startedAt:t.started_at,capabilities:t.capabilities,openInApps:Array.isArray(t.open_in_apps)?t.open_in_apps:[],dangerousBypassAuth:t.dangerous_bypass_auth===!0,experimentalFlags:t.experimental_flags??{},backend:t.backend==="v2"?"v2":"v1",webTitle:t.web_title??""}}async listSessions(t){const n={before_id:t?.beforeId,after_id:t?.afterId,page_size:t?.pageSize,busy:t?.busy,include_archive:t?.includeArchive,archived_only:t?.archivedOnly,exclude_empty:t?.excludeEmpty,workspace_id:t?.workspaceId},i=await this.http.get("/sessions",n);return{items:i.items.map(gu),hasMore:i.has_more}}async listSessionsV2(t){const n={sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,page:t?.page,"meta.updated_after":t?.updatedAfter,"meta.updated_before":t?.updatedBefore,"meta.archived":t?.archived===void 0?void 0:String(t.archived),include:t?.include,"workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{items:i.items,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async listSessionIdsV2(t){const n={sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,page:t?.page,"meta.updated_after":t?.updatedAfter,"meta.updated_before":t?.updatedBefore,"meta.archived":t?.archived===void 0?void 0:String(t.archived),fields:"id,archived","workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{items:i.items,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async listSessionGroupsV2(t){const n={view:"by_workspace","group.page_size":t?.groupPageSize,"meta.has_prompt":t?.hasPrompt===void 0?void 0:String(t.hasPrompt),sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,"meta.archived":t?.archived===void 0?void 0:String(t.archived),"workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{groups:i.groups,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async createSession(t){const n={metadata:t.cwd!==void 0?{cwd:t.cwd}:{}};t.workspaceId!==void 0&&(n.workspace_id=t.workspaceId),t.title!==void 0&&(n.title=t.title),t.model!==void 0&&(n.agent_config={model:t.model});const i=await this.http.post("/sessions",n);return gu(i)}async getSession(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}`);return gu(n)}async updateSession(t,n){const i={};n.title!==void 0&&(i.title=n.title),n.cwd!==void 0&&(i.metadata={cwd:n.cwd});const o={};n.model!==void 0&&(o.model=n.model),n.permissionMode!==void 0&&(o.permission_mode=n.permissionMode),n.planMode!==void 0&&(o.plan_mode=n.planMode),n.swarmMode!==void 0&&(o.swarm_mode=n.swarmMode),n.goalObjective!==void 0&&(o.goal_objective=n.goalObjective),n.goalControl!==void 0&&(o.goal_control=n.goalControl),n.thinking!==void 0&&(o.thinking=n.thinking),Object.keys(o).length>0&&(i.agent_config=o);const s=await this.http.post(`/sessions/${encodeURIComponent(t)}/profile`,i);return gu(s)}async getSessionStatus(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}/status`);return{model:n.model&&n.model.length>0?n.model:null,thinkingEffort:n.thinking_level,permission:n.permission,planMode:n.plan_mode===!0,swarmMode:n.swarm_mode===!0,contextTokens:n.context_tokens??0,maxContextTokens:n.max_context_tokens??0,contextUsage:n.context_usage??0}}async getSessionGoal(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}/goal`);return RW(n)}async getSessionPlans(t,n){const i=await this.http.get(`/sessions/${encodeURIComponent(t)}/transcript/plan`,{agent_id:n.agentId,tool_call_id:n.toolCallId});return i.plans.map(o=>({agentId:i.agent_id,toolCallId:o.tool_call_id,turnId:o.turn_id,source:o.source,plan:o.plan,...o.path!==void 0?{path:o.path}:{},...o.options!==void 0?{options:o.options.map(s=>({label:s.label,...s.description!==void 0?{description:s.description}:{}}))}:{},...o.review!==void 0?{review:{state:o.review.state,...o.review.selected_option!==void 0?{selectedOption:o.review.selected_option}:{},...o.review.feedback!==void 0?{feedback:o.review.feedback}:{}}}:{}}))}async getSessionWarnings(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/warnings`)).warnings??[]}async archiveSession(t){return await this.http.post(`/sessions/${encodeURIComponent(t)}:archive`,{})}async restoreSession(t){const n=await this.http.post(`/sessions/${encodeURIComponent(t)}:restore`,{});return gu(n)}async archiveSessions(t){return this.httpV2.post("/sessions:archive",{ids:t})}async restoreSessions(t){return this.httpV2.post("/sessions:restore",{ids:t})}async listMessages(t,n){const i={before_id:n?.beforeId,after_id:n?.afterId,page_size:n?.pageSize,role:n?.role},o=await this.http.get(`/sessions/${encodeURIComponent(t)}/messages`,i);return{items:o.items.map(FW),hasMore:o.has_more}}async getSessionTranscript(t,n){return iCe(this.http,t,n)}async exportSession(t,n,i){const o=n===void 0?0:new TextEncoder().encode(n).byteLength,s=n===void 0||n.length===0?0:n.split(` +`).length,r=`/sessions/${encodeURIComponent(t)}/export`,l={web_log_bytes:o,web_log_entries:s},a=i?.desktop===!0;let u;try{u=await this.http.postZip(r,{web_log:n,...a?{desktop:!0}:{}},l)}catch(d){if(a&&wi(d)&&d.code===ND)u=await this.http.postZip(r,{web_log:n},l);else throw d}const c=`${t}.zip`;return{blob:u.blob,fileName:sCe(u.contentDisposition,c)}}async submitPrompt(t,n){const i=Date.now();this.tracer.traceKeyEvent?.("prompt:start",{sessionId:t,contentCount:n.content.length,mediaCount:n.content.filter(o=>o.type==="image"||o.type==="video"||o.type==="file").length});try{const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts`,Xke(n));return this.tracer.traceKeyEvent?.("prompt:accepted",{sessionId:t,promptId:o.prompt_id,status:o.status,durationMs:Date.now()-i}),{promptId:o.prompt_id,userMessageId:o.user_message_id,status:o.status}}catch(o){throw this.tracer.traceKeyEvent?.("prompt:failed",{sessionId:t,status:"failed",durationMs:Date.now()-i,...rCe(o)}),o}}async steerPrompts(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts:steer`,{prompt_ids:n});return{steered:i.steered,promptIds:i.prompt_ids}}async abortPrompt(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts/${encodeURIComponent(n)}:abort`,void 0,{allowCodes:[40903]});return{aborted:i.aborted,atSeq:i.at_seq}}async abortSession(t){return{aborted:(await this.http.post(`/sessions/${encodeURIComponent(t)}:abort`,{})).aborted}}async compactSession(t,n){await this.http.post(`/sessions/${encodeURIComponent(t)}:compact`,n?{instruction:n}:{})}async undoSession(t,n=1){await this.http.post(`/sessions/${encodeURIComponent(t)}:undo`,{count:n})}async generateSessionTitle(t,n){try{const i={};n?.force===!0&&(i.force=!0),n?.source!==void 0&&(i.source=n.source);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/title/generate`,i);return typeof o?.title=="string"&&o.title.length>0?o.title:null}catch{return null}}async forkSession(t,n){const i={};n?.title!==void 0&&(i.title=n.title);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}:fork`,i,{timeoutMs:JN});return gu(o)}async createChildSession(t,n){const i={};n?.title!==void 0&&(i.title=n.title);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/children`,i,{timeoutMs:JN});return gu(o)}async listChildSessions(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/children`)).items.map(gu)}async startBtw(t){return{agentId:(await this.http.post(`/sessions/${encodeURIComponent(t)}:btw`,{})).agent_id}}async respondApproval(t,n,i){const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/approvals/${encodeURIComponent(n)}`,ebe(i));return{resolved:o.resolved,resolvedAt:o.resolved_at}}async respondQuestion(t,n,i){const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/questions/${encodeURIComponent(n)}`,rbe(i));return{resolved:o.resolved,resolvedAt:o.resolved_at}}async dismissQuestion(t,n){return{dismissed:!0,dismissedAt:(await this.http.post(`/sessions/${encodeURIComponent(t)}/questions/${encodeURIComponent(n)}:dismiss`,void 0,{allowCodes:[40909]})).dismissed_at}}async listTasks(t,n){const i={status:n};return(await this.http.get(`/sessions/${encodeURIComponent(t)}/tasks`,i)).items.map(s=>lA(s))}async getTask(t,n,i){const o={with_output:i?.withOutput,output_bytes:i?.outputBytes},s=await this.http.get(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}`,o);return lA(s)}async cancelTask(t,n){return await this.http.post(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}:cancel`)}async detachTask(t,n){return await this.http.post(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}:detach`)}async listTerminals(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/terminals`)).items.map(r5)}async createTerminal(t,n={}){const i={cwd:n.cwd,shell:n.shell,cols:n.cols,rows:n.rows},o=await this.http.post(`/sessions/${encodeURIComponent(t)}/terminals`,i);return r5(o)}async getTerminal(t,n){const i=await this.http.get(`/sessions/${encodeURIComponent(t)}/terminals/${encodeURIComponent(n)}`);return r5(i)}async closeTerminal(t,n){return this.http.post(`/sessions/${encodeURIComponent(t)}/terminals/${encodeURIComponent(n)}:close`)}async listSkills(t){return((await this.http.get(`/sessions/${encodeURIComponent(t)}/skills`)).skills??[]).map(i=>({name:i.name,description:i.description,path:i.path,source:i.source}))}async listSkillsForWorkspace(t){return((await this.http.get(`/workspaces/${encodeURIComponent(t)}/skills`)).skills??[]).map(i=>({name:i.name,description:i.description,path:i.path,source:i.source}))}async activateSkill(t,n,i,o){const s={};i!==void 0&&i.length>0&&(s.args=i),o!==void 0&&o.length>0&&(s.attachments=o.map(BW));const r=await this.http.post(`/sessions/${encodeURIComponent(t)}/skills/${encodeURIComponent(n)}:activate`,s);return{activated:r.activated,skillName:r.skill_name}}async listCapabilities(){return(await this.http.get("/capabilities")).capabilities??[]}async getCapability(t){return this.http.get(`/capabilities/${encodeURIComponent(t)}`)}async installCapability(t){return this.http.post(`/capabilities/${encodeURIComponent(t)}:install`,{})}async listPlugins(){return(await this.http.get("/plugins")).plugins??[]}async listPluginMarketplace(){return(await this.http.get("/plugins/marketplace")).entries??[]}async installPlugin(t){return this.http.post("/plugins",{source:t})}async setPluginEnabled(t,n){return this.http.post(`/plugins/${encodeURIComponent(t)}:${n?"enable":"disable"}`,{})}async removePlugin(t){return this.http.post(`/plugins/${encodeURIComponent(t)}:remove`,{})}async listDirectory(t,n){const i={};n.path!==void 0&&(i.path=n.path),n.depth!==void 0&&(i.depth=n.depth),n.includeGitStatus!==void 0&&(i.include_git_status=n.includeGitStatus);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:list`,i),s=o.children_by_path?Object.fromEntries(Object.entries(o.children_by_path).map(([r,l])=>[r,l.map(oD)])):void 0;return{items:o.items.map(oD),childrenByPath:s,truncated:o.truncated}}async readFile(t,n){const i={path:n.path};n.offset!==void 0&&(i.offset=n.offset),n.length!==void 0&&(i.length=n.length);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:read`,i);return{path:o.path,content:o.content,encoding:o.encoding,size:o.size,truncated:o.truncated,etag:o.etag,mime:o.mime,languageId:o.language_id,lineCount:o.line_count,isBinary:o.is_binary}}async searchFiles(t,n){const i={workspace:t,query:n.query};n.limit!==void 0&&(i.limit=n.limit);const o=await this.http.post("/workspace/fs:search",i);return{items:o.items.map(s=>({path:s.path,name:s.name,kind:s.kind,score:s.score,matchPositions:s.match_positions})),truncated:o.truncated}}async suggestFiles(t,n){const i={workspace:t,query:n.query};n.limit!==void 0&&(i.limit=n.limit);const o=await this.http.post("/workspace/fs:suggest",i);return{items:o.items.map(s=>({path:s.path,name:s.name,kind:s.kind,score:s.score,matchPositions:s.match_positions})),truncated:o.truncated}}async grepFiles(t,n){const i={pattern:n.pattern};n.regex!==void 0&&(i.regex=n.regex),n.caseSensitive!==void 0&&(i.case_sensitive=n.caseSensitive);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:grep`,i);return{files:o.files,filesScanned:o.files_scanned,truncated:o.truncated,elapsedMs:o.elapsed_ms}}async getGitStatus(t,n){const i={};n!==void 0&&(i.paths=n);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:git_status`,i);return{branch:o.branch,ahead:o.ahead,behind:o.behind,entries:o.entries,additions:o.additions,deletions:o.deletions,pullRequest:o.pullRequest??null}}async getFileDiff(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:diff`,{path:n});return{path:i.path,diff:i.diff,truncated:i.truncated??!1}}getFileDownloadUrl(t,n){const i=n.split("/").map(o=>encodeURIComponent(o)).join("/");return md(this.opts.origin,`/sessions/${encodeURIComponent(t)}/fs/${i}:download`)}async openFile(t,n){const i={path:n.path};return n.line!==void 0&&(i.line=n.line),this.http.post(`/sessions/${encodeURIComponent(t)}/fs:open`,i)}async revealFile(t,n){return this.http.post(`/sessions/${encodeURIComponent(t)}/fs:reveal`,{path:n.path})}async openInApp(t,n,i,o){const s={app_id:n,path:i};o!==void 0&&(s.line=o),await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:open-in`,s)}async listWorkspaces(){try{return((await this.http.get("/workspaces")).items??[]).map(b0)}catch{return[]}}async addWorkspace(t){const n={root:t.root};t.name!==void 0&&(n.name=t.name);const i=await this.http.post("/workspaces",n);return b0(i)}async deleteWorkspace(t){await this.http.delete(`/workspaces/${encodeURIComponent(t)}`)}async updateWorkspace(t,n){const i=await this.http.patch(`/workspaces/${encodeURIComponent(t)}`,{name:n.name});return b0(i)}async browseFs(t){try{const n=await this.http.get("/fs:browse",{path:t});return{path:n.path,parent:n.parent,entries:(n.entries??[]).map(i=>({name:i.name,path:i.path,isDir:i.is_dir}))}}catch{return{path:"",parent:null,entries:[]}}}async getFsHome(){try{const t=await this.http.get("/fs:home");return{home:t.home,recentRoots:t.recent_roots??[]}}catch{return{home:"",recentRoots:[]}}}async listModels(){return(await this.http.get("/models")).items.map(abe)}async listProviders(){return(await this.http.get("/providers")).items.map(Np)}async getProvider(t){const n=await this.http.get(`/providers/${encodeURIComponent(t)}`),i=Np(n);return n.api_key!==void 0?{...i,apiKey:n.api_key}:i}async addProvider(t){const n={id:t.id??"",type:t.type,models:(t.models??[]).map(o=>{const s={model:o.model,max_context_size:o.maxContextSize};return o.displayName!==void 0&&(s.display_name=o.displayName),o.capabilities!==void 0&&(s.capabilities=o.capabilities),o.maxOutputSize!==void 0&&(s.max_output_size=o.maxOutputSize),o.supportEfforts!==void 0&&(s.support_efforts=o.supportEfforts),o.adaptiveThinking!==void 0&&(s.adaptive_thinking=o.adaptiveThinking),s})};t.apiKey!==void 0&&(n.api_key=t.apiKey),t.baseUrl!==void 0&&(n.base_url=t.baseUrl),t.defaultModel!==void 0&&(n.default_model=t.defaultModel);const i=await this.http.post("/providers",n);return Np(i)}async updateProvider(t,n){const i={type:n.type,models:(n.models??[]).map(s=>{const r={model:s.model,max_context_size:s.maxContextSize};return s.displayName!==void 0&&(r.display_name=s.displayName),s.capabilities!==void 0&&(r.capabilities=s.capabilities),s.maxOutputSize!==void 0&&(r.max_output_size=s.maxOutputSize),s.supportEfforts!==void 0&&(r.support_efforts=s.supportEfforts),s.adaptiveThinking!==void 0&&(r.adaptive_thinking=s.adaptiveThinking),r})};n.newId!==void 0&&(i.new_id=n.newId),n.apiKey!==void 0&&(i.api_key=n.apiKey),n.baseUrl!==void 0&&(i.base_url=n.baseUrl),n.defaultModel!==void 0&&(i.default_model=n.defaultModel);const o=await this.http.put(`/providers/${encodeURIComponent(t)}`,i);return{provider:Np(o.provider)}}async deleteProvider(t){return await this.http.delete(`/providers/${encodeURIComponent(t)}`),{deleted:t}}async listCatalogProviders(){return(await this.http.get("/catalog/providers")).items.map(sD)}async getCatalogProvider(t){const n=await this.http.get(`/catalog/providers/${encodeURIComponent(t)}`);return sD(n)}async importCatalogProvider(t){const n={catalog_id:t.catalogId};t.apiKey!==void 0&&(n.api_key=t.apiKey),t.baseUrl!==void 0&&(n.base_url=t.baseUrl),t.id!==void 0&&(n.id=t.id);const i=await this.http.post("/providers:import_catalog",n);return{provider:Np(i.provider),modelsImported:i.models_imported}}async importCustomRegistry(t){const n={url:t.url};t.apiKey!==void 0&&(n.api_key=t.apiKey);const i=await this.http.post("/providers:import_registry",n);return{providers:i.providers.map(Np),modelsImported:i.models_imported}}async refreshProvider(t){const n=await this.http.post(`/providers/${encodeURIComponent(t)}:refresh`);return l5(n)}async refreshAllProviders(){const t=await this.http.post("/providers:refresh");return l5(t)}async refreshOAuthProviderModels(){const t=await this.http.post("/providers:refresh_oauth");return l5(t)}async getConfig(){const t=await this.http.get("/config");return aA(t)}async setConfig(t){const n={},i={providers:"providers",defaultProvider:"default_provider",defaultModel:"default_model",secondaryModel:"secondary_model",models:"models",thinking:"thinking",planMode:"plan_mode",yolo:"yolo",defaultPermissionMode:"default_permission_mode",defaultPlanMode:"default_plan_mode",permission:"permission",hooks:"hooks",services:"services",mergeAllAvailableSkills:"merge_all_available_skills",extraSkillDirs:"extra_skill_dirs",loopControl:"loop_control",background:"background",experimental:"experimental",telemetry:"telemetry",raw:"raw"};for(const[s,r]of Object.entries(t)){const l=i[s];l!==void 0&&(n[l]=r)}const o=await this.http.post("/config",n);return aA(o)}async getAuth(){const t=await this.http.get("/auth");return{modelsReady:t.models_ready,providersCount:t.providers_count,managedProvider:t.managed_provider?{status:t.managed_provider.status}:null}}async startOAuthLogin(t){let n;try{n=await this.http.post("/oauth/login",t===void 0?{}:{region:t})}catch(i){if(t!==void 0&&wi(i)&&i.code===ND)n=await this.http.post("/oauth/login",{});else throw i}return n.status==="authenticated"?{flowId:n.flow_id,provider:n.provider,status:"authenticated"}:{flowId:n.flow_id,provider:n.provider,status:"pending",verificationUri:n.verification_uri,verificationUriComplete:n.verification_uri_complete,userCode:n.user_code,expiresIn:n.expires_in,interval:n.interval,expiresAt:n.expires_at}}async pollOAuthLogin(){const t=await this.http.get("/oauth/login");return t?{flowId:t.flow_id,status:t.status,resolvedAt:t.resolved_at,errorMessage:t.error_message}:null}async cancelOAuthLogin(){const t=await this.http.delete("/oauth/login");return{cancelled:t.cancelled,status:t.status}}async logout(){return{loggedOut:(await this.http.post("/oauth/logout",{})).logged_out}}async getUsage(){const t=await this.http.get("/oauth/usage");if(t.kind==="error")return{kind:"error",message:t.message,status:t.status};const n=i=>({name:i.name,window:i.window,used:i.used,limit:i.limit,resetAt:i.reset_at});return{kind:"ok",summary:t.summary===null?null:n(t.summary),limits:t.limits.map(n),extraUsage:t.extra_usage===null?null:{balanceCents:t.extra_usage.balance_cents,totalCents:t.extra_usage.total_cents,monthlyChargeLimitEnabled:t.extra_usage.monthly_charge_limit_enabled,monthlyChargeLimitCents:t.extra_usage.monthly_charge_limit_cents,monthlyUsedCents:t.extra_usage.monthly_used_cents,currency:t.extra_usage.currency}}}async getUserInfo(){return this.http.get("/oauth/userinfo")}async getOAuthRegion(){try{const t=await Promise.race([this.http.get("/oauth/region"),new Promise((n,i)=>{setTimeout(()=>i(new Error("oauth region probe timed out")),oCe)})]);return t.region==="mainland-cn"||t.region==="global"?t.region:null}catch{return null}}async uploadFile(t){const n=new FormData;n.append("file",t.file,t.name??(t.file instanceof File?t.file.name:"upload")),t.name!==void 0&&n.append("name",t.name);const i=await this.http.postForm("/files",n,t.onProgress===void 0?void 0:{onUploadProgress:t.onProgress});return{id:i.id,name:i.name,mediaType:i.media_type,size:i.size}}getFileUrl(t){return md(this.opts.origin,`/files/${encodeURIComponent(t)}`)}async getFileBlob(t){return this.http.getBlob(`/files/${encodeURIComponent(t)}`)}getSessionMediaUrl(t,n){return md(this.opts.origin,`/sessions/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}`)}async getSessionMediaBlob(t,n){return this.http.getBlob(`/sessions/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}`)}async readHostFileContent(t){const n=await this.http.getBlob("/fs:content",{path:t},{maxBytes:s5});if(n.size>s5)throw new cx({size:n.size,limit:s5});const i=n.type,o=!aCe(i),s=i||(o?"application/octet-stream":"text/plain");if(o){const l=await uCe(n);return{path:t,content:l,encoding:"base64",mime:s,isBinary:!0,size:n.size}}const r=await n.text();return{path:t,content:r,encoding:"utf-8",mime:s,isBinary:!1,size:n.size}}connectEvents(t){const n=QN(this.opts.origin,this.opts.identity.clientId),i=this.opts.projectorFactory(),o=new LD({wsUrl:n,clientId:this.opts.identity.clientId,tracer:this.tracer,credentialStore:this.opts.credentialStore,mainAgentOnly:this.opts.mainAgentOnly,handlers:{onWireEvent:s=>{const r=ube(s),l=cbe(s),a=lbe(s);a.type==="historyCompacted"&&!DD(a.reason)&&t.onResync(a.sessionId,a.beforeSeq),t.onEvent(a,{sessionId:r,seq:l})},onRawAgentEvent:s=>{const{type:r,seq:l,session_id:a,payload:u,offset:c}=s,d=i.project(r,u,a,{offset:c});for(const f of d){const h=u?.turnId,m=f.type==="assistantDelta"&&typeof h=="number"&&typeof c=="number"&&(r==="assistant.delta"||r==="thinking.delta")?{turnId:h,offset:c,kind:r==="assistant.delta"?"text":"thinking"}:void 0;f.type==="historyCompacted"&&!DD(f.reason)&&t.onResync(a,l),t.onEvent(f,{sessionId:a,seq:l,stream:m})}},onResync:(s,r,l)=>{i.reset(s),t.onResync(s,r,l)},onConnectionState:s=>{t.onConnectionChange(s)},onReplayComplete:()=>{t.onReplayComplete?.()},onError:(s,r,l)=>{t.onError(s,r,l)},onTerminalOutput:(s,r,l,a)=>{t.onTerminalOutput?.(s,r,l,a)},onTerminalExit:(s,r,l)=>{t.onTerminalExit?.(s,r,l)},onTranscriptReset:(s,r,l,a)=>{t.onTranscriptReset?.(s,r,l,a)},onTranscriptOps:(s,r,l,a)=>t.onTranscriptOps?.(s,r,l,a)??!0}});return o.connect(),{subscribe(s,r){o.subscribe(s,r??{seq:0})},unsubscribe(s){o.unsubscribe(s),i.forgetSession(s)},subscribeTranscript(s,r,l){o.subscribeTranscript(s,r,l)},unsubscribeTranscript(s,r){o.unsubscribeTranscript(s,r)},bindNextPromptId(s,r){i.bindNextPromptId(s,r)},abort(s,r){o.abort(s,r)},terminalAttach(s,r,l){o.terminalAttach(s,r,l)},terminalInput(s,r,l){o.terminalInput(s,r,l)},terminalResize(s,r,l,a){o.terminalResize(s,r,l,a)},terminalDetach(s,r){o.terminalDetach(s,r)},terminalClose(s,r){o.terminalClose(s,r)},markSideChannelAgent(s,r){o.markSideChannelAgent(s,r),i.markSideChannelAgent(r)},health(){return o.health()},reconnect(){o.reconnect()},close(){o.close()}}}connectTranscriptChannel(t){const n=`${this.opts.identity.clientId}-transcript`,i=new LD({wsUrl:QN(this.opts.origin,n),clientId:n,tracer:this.tracer,credentialStore:this.opts.credentialStore,handlers:{onWireEvent:()=>{},onResync:()=>{},onConnectionState:o=>t.onConnectionState?.(o),onError:(o,s,r)=>t.onError?.(o,s,r),onTranscriptReset:t.onTranscriptReset,onTranscriptOps:t.onTranscriptOps}});return i.connect(),{subscribe:()=>{},unsubscribe:()=>{},subscribeTranscript:(o,s,r)=>i.subscribeTranscript(o,s,r),unsubscribeTranscript:(o,s)=>i.unsubscribeTranscript(o,s),bindNextPromptId:()=>{},abort:()=>{},terminalAttach:()=>{},terminalInput:()=>{},terminalResize:()=>{},terminalDetach:()=>{},terminalClose:()=>{},markSideChannelAgent:()=>{},health:()=>i.health(),reconnect:()=>i.reconnect(),close:()=>i.close()}}}function l5(e){return{changed:e.changed.map(t=>({providerId:t.provider_id,providerName:t.provider_name,added:t.added,removed:t.removed})),unchanged:e.unchanged,failed:e.failed}}function aCe(e){const t=e.toLowerCase().split(";")[0].trim();return t===""||t==="text/plain"||t.startsWith("text/")?!0:/(json|xml|javascript|typescript|x-yaml|yaml|svg|x-sh|x-python|markdown|csv|html|css)$/.test(t)}function uCe(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=()=>{const o=typeof i.result=="string"?i.result:"";t(o.slice(o.indexOf(",")+1))},i.onerror=()=>n(i.error),i.readAsDataURL(e)})}const cCe="main",dCe=new Set(["turn.started","turn.step.started","turn.step.completed","turn.step.retrying","turn.step.interrupted","turn.ended","thinking.delta","assistant.delta","tool.use","tool.call.started","tool.call.delta","tool.progress","tool.result","agent.status.updated","prompt.completed","prompt.aborted","error"]);function a5(e="msg_"){const t=Date.now().toString(36).padStart(10,"0"),n=Math.random().toString(36).slice(2,12).padEnd(10,"0");return`${e}${t}${n}`}function fCe(e){if(!e||typeof e!="object")return{input:0,output:0,cacheRead:0,cacheCreate:0};const t=e;return{input:t.inputOther??t.input_tokens??0,output:t.output??t.output_tokens??0,cacheRead:t.inputCacheRead??t.cache_read_input_tokens??0,cacheCreate:t.inputCacheCreation??t.cache_creation_input_tokens??0}}function FD(){return{turnPromptId:new Map,currentPromptId:void 0,totalInput:0,totalOutput:0,totalCacheRead:0,totalCacheCreate:0,contextTokens:0,contextLimit:0,turnCount:0,model:"",subagentMeta:new Map,restartedThisRun:new Set,settledByKernel:new Set,retiredBindings:new Set,registrationSeq:0,registrationOrderByKey:new Map,retryActive:!1}}function vr(e,t){const n=e[t];return typeof n=="string"?n:void 0}function Qs(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function na(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:null}function hCe(e){if(!e||typeof e!="object")return null;const t=e,n=t.budget,i=n&&typeof n=="object"?n:{},o=vr(t,"status");if(o!=="active"&&o!=="paused"&&o!=="blocked"&&o!=="complete")return null;const s=vr(t,"goalId")??vr(t,"goal_id")??"goal",r=vr(t,"objective")??"";return{goalId:s,objective:r,completionCriterion:vr(t,"completionCriterion")??vr(t,"completion_criterion"),status:o,turnsUsed:Qs(t,"turnsUsed")??Qs(t,"turns_used")??0,tokensUsed:Qs(t,"tokensUsed")??Qs(t,"tokens_used")??0,wallClockMs:Qs(t,"wallClockMs")??Qs(t,"wall_clock_ms")??0,terminalReason:vr(t,"terminalReason")??vr(t,"terminal_reason"),budget:{tokenBudget:na(i,"tokenBudget")??na(i,"token_budget"),remainingTokens:na(i,"remainingTokens")??na(i,"remaining_tokens"),turnBudget:na(i,"turnBudget")??na(i,"turn_budget"),remainingTurns:na(i,"remainingTurns")??na(i,"remaining_turns"),wallClockBudgetMs:na(i,"wallClockBudgetMs")??na(i,"wall_clock_budget_ms"),remainingWallClockMs:na(i,"remainingWallClockMs")??na(i,"remaining_wall_clock_ms"),overBudget:i.overBudget===!0||i.over_budget===!0}}}function rd(e,t,n,i,o){if(typeof i!="string"||i.length===0)return null;const r={...t.subagentMeta.get(i)??{id:i,agentId:i,sessionId:n,kind:"subagent",description:e("tasks.dockSubagent"),status:"running",createdAt:new Date().toISOString(),subagentPhase:"queued"},...o,id:i,sessionId:n,kind:"subagent"};return t.subagentMeta.set(i,r),r}function pCe(e,t,n){if(t==="turn.step.started")return null;if(t==="tool.use"||t==="tool.call.started"){const i=vr(n,"name")??vr(n,"toolName")??"tool",o=kP(e,mCe(i)),s=gCe(e,i,n.args??n.input);return s?`Calling ${o}: ${s}`:`Calling ${o}`}if(t==="tool.progress"){const i=n.update;if(i&&typeof i=="object"){const s=vr(i,"text");if(s)return u5(s);const r=vr(i,"message");if(r)return u5(r)}const o=vr(n,"message");if(o)return u5(o)}return null}function mCe(e){return e.replace(/_\d+$/,"")}const BD=2e3;function u5(e){return e.length>BD?`${e.slice(0,BD)}…`:e}function gCe(e,t,n){if(n==null)return"";const i=typeof n=="string"?n:JSON.stringify(n);return G6(e,t,i)}function vCe(e,t,n,i,o,s,r){if(r.has(i)&&o==="turn.step.started")return[];if(o==="assistant.delta"){const h=vr(s,"delta");if(!h)return[];const m=t.subagentMeta.get(i),g=rd(e,t,n,i,{status:"running",subagentPhase:"working",startedAt:m?.startedAt??new Date().toISOString()}),v=[];return g&&v.push({type:"taskCreated",sessionId:n,task:g}),v.push({type:"taskProgress",sessionId:n,taskId:i,outputChunk:h,stream:"stdout",kind:"text"}),v}const l=pCe(e,o,s);if(l===null||l.length===0)return[];const a=o==="tool.progress"?s.update:void 0,u=a!=null&&typeof a=="object"?a.replace===!0:!1,c=t.subagentMeta.get(i),d=rd(e,t,n,i,{status:"running",subagentPhase:"working",startedAt:c?.startedAt??new Date().toISOString()}),f=[];return d&&f.push({type:"taskCreated",sessionId:n,task:d}),f.push({type:"taskProgress",sessionId:n,taskId:i,outputChunk:l,stream:"stdout",replace:u}),f}function yCe(e){return Array.isArray(e)?e.map(t=>dx(t)):[]}function kCe(e){return{inputTokens:e.totalInput,outputTokens:e.totalOutput,cacheReadTokens:e.totalCacheRead,cacheCreationTokens:e.totalCacheCreate,totalCostUsd:0,contextTokens:e.contextTokens,contextLimit:e.contextLimit,turnCount:e.turnCount}}const bCe=new Set(["session.meta.updated","goal.updated","compaction.completed","compaction.started","compaction.cancelled","compaction.blocked","hook.result","mcp.server.status","skill.activated","tool.list.updated"]);function wCe(e,t,n){switch(e){case"session.meta.updated":{const i=t?.patch?.title??t?.title,o=t?.patch?.lastPrompt,s={};return typeof i=="string"&&i.length>0&&(s.title=i),typeof o=="string"&&(s.lastPrompt=o),s.title!==void 0||s.lastPrompt!==void 0?[{type:"sessionMetaUpdated",sessionId:n,...s}]:[]}case"goal.updated":{const i=hCe(t?.snapshot??null);return[{type:"goalUpdated",sessionId:n,goal:i?.status==="complete"?null:i}]}case"compaction.completed":{const i=t?.result??{};return[{type:"compactionCompleted",sessionId:n,tokensBefore:typeof i.tokensBefore=="number"?i.tokensBefore:void 0,tokensAfter:typeof i.tokensAfter=="number"?i.tokensAfter:void 0,summary:typeof i.summary=="string"?i.summary:void 0},{type:"historyCompacted",sessionId:n,beforeSeq:0,reason:"auto_compact"}]}case"compaction.started":return[{type:"compactionStarted",sessionId:n,trigger:t?.trigger==="manual"?"manual":"auto",instruction:typeof t?.instruction=="string"?t.instruction:void 0}];case"compaction.cancelled":return[{type:"compactionCancelled",sessionId:n}];default:return[]}}function CCe(e){const{t}=e,n=new Map,i=new Set;function o(f){let h=n.get(f);return h||(h=FD(),n.set(f,h)),h}function s(f){n.set(f,FD())}function r(f){n.delete(f)}function l(f){return n.has(f)}function a(f){i.add(f)}function u(f,h){const m=o(f);m.currentPromptId=h}function c(f,h,m,g){try{return d(f,h,m,g)}catch(v){return Cu("[agentProjector] Error projecting event:",f,v instanceof Error?v.message:v),[]}}function d(f,h,m,g){if(bCe.has(f))return wCe(f,h,m);const v=o(m),y=h,b=[],A=y?.agentId;if(typeof A=="string"&&A!==cCe){const w=i.has(A);if(f==="prompt.submitted"){if(!w)return[];const M=y?.promptId,N=y?.userMessageId;if(!M||!N)return[];const T=yCe(y?.content);return T.length===0?[]:[{type:"messageCreated",agentId:A,message:{id:N,sessionId:m,role:"user",content:T,createdAt:typeof y?.createdAt=="string"?y.createdAt:new Date().toISOString(),promptId:M}}]}if(w&&(f==="thinking.delta"||f==="assistant.delta")){const M=y?.delta??"";return M?[{type:"agentDelta",sessionId:m,agentId:A,delta:{[f==="thinking.delta"?"thinking":"text"]:M}}]:[]}if(w&&f==="turn.ended")return[{type:"agentTurnEnded",sessionId:m,agentId:A,reason:y?.reason}];if(dCe.has(f))return vCe(t,v,m,A,f,y??{},i)}switch(f){case"turn.started":{const w=y?.turnId,M=v.currentPromptId??a5("pr_");v.currentPromptId=M,w!==void 0&&v.turnPromptId.set(w,M),b.push({type:"turnActiveChanged",sessionId:m,active:!0});break}case"turn.step.started":case"thinking.delta":case"assistant.delta":case"tool.use":case"tool.call.started":case"tool.call.delta":case"tool.progress":case"tool.result":break;case"turn.step.completed":{const w=fCe(y?.usage);v.totalInput+=w.input,v.totalOutput+=w.output,v.totalCacheRead+=w.cacheRead,v.totalCacheCreate+=w.cacheCreate;break}case"agent.status.updated":{y?.model&&(v.model=y.model),y?.contextTokens!==void 0&&(v.contextTokens=y.contextTokens),y?.maxContextTokens!==void 0&&(v.contextLimit=y.maxContextTokens);const w=y?.phase;w!=null&&w.kind==="retrying"?(v.retryActive=!0,b.push({type:"turnRetry",sessionId:m,retry:{failedAttempt:Qs(w,"failedAttempt")??0,nextAttempt:Qs(w,"nextAttempt")??0,maxAttempts:Qs(w,"maxAttempts")??0,delayMs:Qs(w,"delayMs")??0,errorName:vr(w,"errorName"),statusCode:Qs(w,"statusCode"),turnId:Qs(w,"turnId")}})):v.retryActive&&w!==void 0&&w!==null&&typeof w.kind=="string"&&(v.retryActive=!1,b.push({type:"turnRetry",sessionId:m,retry:void 0})),b.push({type:"sessionUsageUpdated",sessionId:m,usage:kCe(v),model:v.model||void 0,swarmMode:y?.swarmMode===!0?!0:y?.swarmMode===!1?!1:void 0,planMode:y?.planMode===!0?!0:y?.planMode===!1?!1:void 0,thinking:typeof y?.thinkingEffort=="string"&&y.thinkingEffort.length>0?y.thinkingEffort:void 0});break}case"turn.ended":{const w=y?.turnId,M=(w!==void 0?v.turnPromptId.get(w):void 0)??v.currentPromptId;b.push({type:"turnActiveChanged",sessionId:m,active:!1,reason:y?.reason,promptId:M}),v.turnCount++,v.currentPromptId=void 0;break}case"prompt.completed":{const w=y?.promptId;typeof w=="string"&&w.length>0&&b.push({type:"promptCompleted",sessionId:m,promptId:w,reason:y?.reason??"completed"});break}case"prompt.aborted":{const w=y?.promptId;typeof w=="string"&&w.length>0&&b.push({type:"promptAborted",sessionId:m,promptId:w});break}case"turn.step.retrying":{v.retryActive=!0,b.push({type:"turnRetry",sessionId:m,retry:{failedAttempt:Qs(y??{},"failedAttempt")??0,nextAttempt:Qs(y??{},"nextAttempt")??0,maxAttempts:Qs(y??{},"maxAttempts")??0,delayMs:Qs(y??{},"delayMs")??0,errorName:vr(y??{},"errorName"),statusCode:Qs(y??{},"statusCode"),turnId:typeof y?.turnId=="number"?y.turnId:void 0}});break}case"turn.step.interrupted":break;case"subagent.spawned":{const w=typeof y?.subagentId=="string"&&y.subagentId.length>0?y.subagentId:a5("task_"),M=typeof y?.taskId=="string"&&y.taskId.length>0?y.taskId:void 0,N=M!==void 0&&M!==w?v.subagentMeta.get(M):void 0,T=v.subagentMeta.get(w);N!==void 0&&v.subagentMeta.delete(M),M!==void 0&&!v.registrationOrderByKey.has(M)&&v.registrationOrderByKey.set(M,++v.registrationSeq);const C=T===void 0||N===void 0?T??N:{...T,createdAt:N.createdAt,startedAt:N.startedAt??T.startedAt,runInBackground:!0,backgroundTaskId:T.backgroundTaskId??M},I=C?.backgroundTaskId??(C!==void 0&&M!==void 0&&C.id===M?M:void 0),S=M!==void 0?v.registrationOrderByKey.get(M):void 0,E=I!==void 0?v.registrationOrderByKey.get(I):void 0,_=v.retiredBindings.has(M??"")||S!==void 0&&E!==void 0&&S0?y.model:C?.model,thinkingEffort:typeof y?.thinkingEffort=="string"&&y.thinkingEffort.length>0?y.thinkingEffort:C?.thinkingEffort,parentToolCallId:typeof y?.parentToolCallId=="string"?y.parentToolCallId:C?.parentToolCallId,swarmIndex:typeof y?.swarmIndex=="number"?y.swarmIndex:C?.swarmIndex,runInBackground:F?y?.runInBackground===!0||y?.runInBackground===void 0&&C?.runInBackground===!0:y?.runInBackground===!0||C?.runInBackground===!0,outputPreview:F?void 0:C?.outputPreview,outputBytes:F?void 0:C?.outputBytes,outputLines:F?void 0:C?.outputLines,suspendedReason:F?void 0:C?.suspendedReason,text:F?void 0:C?.text,backgroundTaskId:_?C?.backgroundTaskId:F?M:M??C?.backgroundTaskId};v.subagentMeta.set(P.id,P),b.push({type:"taskCreated",sessionId:m,task:P});break}case"subagent.started":{const w=typeof y?.subagentId=="string"?y.subagentId:void 0,M=w!==void 0&&(v.subagentMeta.get(w)?.status!==void 0&&v.subagentMeta.get(w).status!=="running"||v.settledByKernel.has(w));M&&v.settledByKernel.delete(w);const N=rd(t,v,m,y?.subagentId,{subagentPhase:"working",status:"running",startedAt:new Date().toISOString(),suspendedReason:void 0,...M?{createdAt:new Date().toISOString(),completedAt:void 0,completedAtEstimated:void 0,outputPreview:void 0,outputBytes:void 0,outputLines:void 0,text:void 0}:{}});M&&w!==void 0&&v.restartedThisRun.add(w),N&&b.push({type:"taskCreated",sessionId:m,task:N});break}case"subagent.suspended":{const w=rd(t,v,m,y?.subagentId,{subagentPhase:"suspended",status:"running",suspendedReason:typeof y?.reason=="string"?y.reason:void 0});w&&b.push({type:"taskCreated",sessionId:m,task:w});break}case"subagent.completed":{const w=typeof y?.resultSummary=="string"?y.resultSummary:void 0,M=rd(t,v,m,y?.subagentId,{subagentPhase:"completed",status:"completed",completedAt:new Date().toISOString(),completedAtEstimated:!0,outputPreview:w});M&&b.push({type:"taskCreated",sessionId:m,task:M}),M!==null&&v.restartedThisRun.delete(M.id),b.push({type:"taskCompleted",sessionId:m,taskId:y?.subagentId??"",status:"completed",outputPreview:w});break}case"subagent.failed":{const w=typeof y?.error=="string"?y.error:void 0,M=rd(t,v,m,y?.subagentId,{subagentPhase:"failed",status:"failed",completedAt:new Date().toISOString(),completedAtEstimated:!0,outputPreview:w});M&&b.push({type:"taskCreated",sessionId:m,task:M}),M!==null&&v.restartedThisRun.delete(M.id),b.push({type:"taskCompleted",sessionId:m,taskId:y?.subagentId??"",status:"failed",outputPreview:w});break}case"error":{b.push({type:"unknown",raw:{_agentError:!0,code:y?.code,message:y?.message,name:y?.name,details:y?.details,retryable:y?.retryable}});break}case"warning":{b.push({type:"unknown",raw:{_agentWarning:!0,message:y?.message}});break}case"task.started":case"background.task.started":{const w=y?.info??{},M=typeof w.startedAt=="number"?new Date(w.startedAt).toISOString():void 0,N=typeof w.taskId=="string"?w.taskId:typeof w.taskId=="number"?String(w.taskId):a5("task_"),T=typeof w.description=="string"?w.description:typeof w.command=="string"?w.command:t("tasks.defaultDescription");if(w.kind==="agent"){const I=typeof w.agentId=="string"&&w.agentId.length>0?w.agentId:void 0;if(I!==void 0){const S=v.subagentMeta.get(I),E=v.registrationOrderByKey.get(N),_=S?.backgroundTaskId!==void 0?v.registrationOrderByKey.get(S.backgroundTaskId):void 0;if(v.retiredBindings.has(N)||E!==void 0&&_!==void 0&&E<_){S!==void 0&&b.push({type:"taskCreated",sessionId:m,task:S});break}v.registrationOrderByKey.has(N)||v.registrationOrderByKey.set(N,++v.registrationSeq);const F=S!==void 0&&S.backgroundTaskId!==N&&!(S.status==="running"&&S.backgroundTaskId===void 0),q=rd(t,v,m,I,{description:T,backgroundTaskId:N,runInBackground:!0,...S===void 0||S.status==="running"?{status:"running",subagentPhase:"working",startedAt:S?.startedAt??M}:{},...F?{status:"running",subagentPhase:"working",createdAt:M??new Date().toISOString(),startedAt:M,completedAt:void 0,completedAtEstimated:void 0,outputPreview:void 0,outputBytes:void 0,outputLines:void 0,suspendedReason:void 0,text:void 0}:{}});q&&b.push({type:"taskCreated",sessionId:m,task:q}),v.restartedThisRun.delete(I)}else{const S=[...v.subagentMeta.values()].find(_=>_.backgroundTaskId===N);if(S===void 0&&(v.retiredBindings.has(N)||v.registrationOrderByKey.has(N)&&v.registrationOrderByKey.get(N)0&&v.settledByKernel.add(w.agentId),b.push({type:"taskCompleted",sessionId:m,taskId:typeof w.taskId=="string"?w.taskId:typeof w.taskId=="number"?String(w.taskId):"",status:w.status==="killed"?"cancelled":M?"failed":"completed"});break}}return b}return{project:c,bindNextPromptId:u,reset:s,forgetSession:r,markSideChannelAgent:a,hasSessionState:l}}function ACe(e){return new lCe({origin:e.origin,identity:e.identity,tracer:e.tracer,credentialStore:e.credentialStore,projectorFactory:()=>CCe({t:e.t}),mainAgentOnly:e.mainAgentOnly})}const xCe={t:e=>e},RD="Sub Agent";function SCe(){return{sessions:[],activeSessionId:void 0,approvalsBySession:{},planReviewByToolCallId:{},questionsBySession:{},tasksBySession:{},goalBySession:{},goalVersionBySession:{},lastSeqBySession:{},turnActiveBySession:{},turnErrorBySession:{},turnRetryBySession:{},compactionBySession:{},warnings:[]}}function _Ce(e){return{...e,sessions:e.sessions,approvalsBySession:{...e.approvalsBySession},planReviewByToolCallId:{...e.planReviewByToolCallId},questionsBySession:{...e.questionsBySession},tasksBySession:{...e.tasksBySession},goalBySession:{...e.goalBySession},goalVersionBySession:{...e.goalVersionBySession},lastSeqBySession:{...e.lastSeqBySession},turnActiveBySession:{...e.turnActiveBySession},turnErrorBySession:{...e.turnErrorBySession},turnRetryBySession:{...e.turnRetryBySession},compactionBySession:{...e.compactionBySession},warnings:[...e.warnings]}}function MCe(e,t,n){if(t!==void 0&&n!==void 0&&n>0){const i=e.lastSeqBySession[t]??0;n>i&&(e.lastSeqBySession[t]=n)}}function xy(e,t){const n=e.sessions.find(i=>i.id===t.sessionId)?.lastSeq??0;return t.seq>Math.max(e.lastSeqBySession[t.sessionId]??0,n)}const ICe={"provider.connection_error":"connection","provider.auth_error":"auth","provider.rate_limit":"rateLimit","provider.overloaded":"overloaded","provider.filtered":"filtered","provider.api_error":"api","context.overflow":"contextOverflow"};function hA(e,t){const n=[],i=(r,l)=>{typeof l=="number"||typeof l=="boolean"?n.push({label:r,value:String(l)}):typeof l=="string"&&l.length>0&&n.push({label:r,value:l})};i(t("warnings.details.code"),e.code);const o=e.details??{};i(t("warnings.details.status"),o.statusCode),i(t("warnings.details.requestId"),o.requestId),i(t("warnings.details.errorName"),e.name);for(const[r,l]of Object.entries(o))r==="statusCode"||r==="requestId"||i(r,l);const s=(e.code!==void 0?ICe[e.code]:void 0)??"title";return{severity:"error",title:t(`warnings.agentError.${s}`),message:e.message,details:n.length>0?n:void 0}}function TCe(e,t,n,i=xCe){const o=_Ce(e);switch(MCe(o,n.sessionId,n.seq),t.type){case"sessionCreated":{o.sessions.some(r=>r.id===t.session.id)||(o.sessions=[t.session,...o.sessions]);break}case"sessionUpdated":{o.sessions=o.sessions.map(s=>s.id===t.session.id?{...t.session,pullRequest:s.pullRequest}:s);break}case"sessionDeleted":{const s=t.sessionId;o.sessions=o.sessions.filter(r=>r.id!==s),delete o.tasksBySession[s],delete o.goalBySession[s],delete o.approvalsBySession[s],delete o.questionsBySession[s],delete o.lastSeqBySession[s],delete o.turnActiveBySession[s],delete o.turnErrorBySession[s],delete o.turnRetryBySession[s],o.activeSessionId===s&&(o.activeSessionId=void 0);break}case"sessionWorkChanged":{if(!xy(e,n))break;let s;o.sessions=o.sessions.map(r=>r.id!==t.sessionId?r:(s=t.pendingInteraction??(t.busy?r.pendingInteraction:"none"),{...r,busy:t.busy,mainTurnActive:t.mainTurnActive??(t.busy?r.mainTurnActive:!1),pendingInteraction:s,lastTurnReason:t.lastTurnReason})),s==="none"?(delete o.approvalsBySession[t.sessionId],delete o.questionsBySession[t.sessionId]):s==="question"&&delete o.approvalsBySession[t.sessionId],t.mainTurnActive===!0?o.turnActiveBySession[t.sessionId]=!0:(t.mainTurnActive===!1||!t.busy)&&(delete o.turnActiveBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId]);break}case"sessionMetaUpdated":{o.sessions=o.sessions.map(s=>s.id===t.sessionId?{...s,title:t.title??s.title,lastPrompt:t.lastPrompt??s.lastPrompt}:s);break}case"sessionUsageUpdated":{o.sessions=o.sessions.map(s=>{if(s.id!==t.sessionId)return s;const r=t.model&&t.model.length>0?t.model:s.model;return{...s,usage:t.usage,model:r}});break}case"historyCompacted":break;case"compactionStarted":{o.compactionBySession={...o.compactionBySession,[t.sessionId]:{status:"running",trigger:t.trigger}};break}case"compactionCompleted":{const s=t.sessionId,{[s]:r,...l}=o.compactionBySession;o.compactionBySession=l;break}case"compactionCancelled":{const{[t.sessionId]:s,...r}=o.compactionBySession;o.compactionBySession=r;break}case"messageCreated":case"messageUpdated":case"assistantDelta":case"toolOutput":break;case"approvalRequested":{const s=t.sessionId,r=o.approvalsBySession[s]??[];r.some(u=>u.approvalId===t.approval.approvalId)||(o.approvalsBySession[s]=[...r,t.approval]);const a=t.approval.display;a?.kind==="plan_review"&&typeof a.plan=="string"&&a.plan.length>0&&(o.planReviewByToolCallId={...o.planReviewByToolCallId,[t.approval.toolCallId]:{plan:a.plan,path:typeof a.path=="string"?a.path:void 0}});break}case"approvalResolved":case"approvalExpired":{const s=t.sessionId,r=t.approvalId,l=o.approvalsBySession[s]??[];o.approvalsBySession[s]=l.filter(a=>a.approvalId!==r);break}case"questionRequested":{const s=t.sessionId,r=o.questionsBySession[s]??[];r.some(a=>a.questionId===t.question.questionId)||(o.questionsBySession[s]=[...r,t.question]);break}case"questionAnswered":case"questionDismissed":{const s=t.sessionId,r=t.questionId,l=o.questionsBySession[s]??[];o.questionsBySession[s]=l.filter(a=>a.questionId!==r);break}case"taskCreated":{const s=t.sessionId,r=o.tasksBySession[s]??[],l=r.findIndex(f=>f.id===t.task.id),a=t.task.backgroundTaskId===void 0?-1:r.findIndex(f=>f.id===t.task.backgroundTaskId),u=a!==-1&&l!==-1&&a!==l?r[a]:void 0,c=u!==void 0?r.filter((f,h)=>h!==a):r,d=c.findIndex(f=>f.id===t.task.id||t.task.backgroundTaskId!==void 0&&f.id===t.task.backgroundTaskId);if(d===-1)o.tasksBySession[s]=[...c,t.task];else{const f=[...c],h=c[d],m=t.task.backgroundTaskId!==void 0&&(t.task.backgroundTaskId===h.backgroundTaskId||h.id===t.task.backgroundTaskId)||h.id===t.task.id&&(h.kind!=="subagent"||h.agentId===void 0),g=(m&&h.status!=="running"?h:void 0)??(u!==void 0&&u.status!=="running"?u:void 0),v=g!==void 0&&(t.task.status==="running"||t.task.status!==g.status),y=!m&&h.status!=="running"||t.task.backgroundTaskId!==void 0&&h.backgroundTaskId!==void 0&&t.task.backgroundTaskId!==h.backgroundTaskId,b=m&&h.completedAt!==void 0&&h.completedAtEstimated!==!0;f[d]={...t.task,status:v?g.status:t.task.status,subagentPhase:v?g.subagentPhase:t.task.subagentPhase,completedAt:v?g.completedAt:b?h.completedAt:t.task.completedAt,completedAtEstimated:v?g.completedAtEstimated:b?h.completedAtEstimated:t.task.completedAtEstimated,outputLines:v?g.outputLines:y?u?.outputLines??t.task.outputLines:h.outputLines??u?.outputLines??t.task.outputLines,text:v?g.text:y?u?.text??t.task.text:h.text??u?.text??t.task.text,outputPreview:v?g.outputPreview:t.task.outputPreview??(y?u?.outputPreview:h.outputPreview??u?.outputPreview),outputBytes:v?g.outputBytes:t.task.outputBytes??(y?u?.outputBytes:h.outputBytes??u?.outputBytes),description:t.task.description===RD&&h.description!==RD?h.description:t.task.description,swarmIndex:t.task.swarmIndex??h.swarmIndex,parentToolCallId:t.task.parentToolCallId??h.parentToolCallId,subagentType:t.task.subagentType??h.subagentType,model:t.task.model??h.model,thinkingEffort:t.task.thinkingEffort??h.thinkingEffort,runInBackground:y?t.task.runInBackground:t.task.runInBackground??h.runInBackground,backgroundTaskId:y?t.task.backgroundTaskId:t.task.backgroundTaskId??h.backgroundTaskId,agentId:t.task.agentId??h.agentId},o.tasksBySession[s]=f}break}case"taskProgress":{const s=t.sessionId,r=o.tasksBySession[s]??[];o.tasksBySession[s]=r.map(l=>{if(l.id!==t.taskId)return l;if(l.kind==="subagent"&&t.kind==="text")return{...l,text:(l.text??"")+t.outputChunk};const a=l.outputLines??[];if(t.replace===!0){const c=a.length>0?[...a.slice(0,-1),t.outputChunk]:[t.outputChunk];return{...l,outputLines:c}}if(a.at(-1)===t.outputChunk)return l;const u=[...a,t.outputChunk];return{...l,outputLines:l.kind==="subagent"?u:u.slice(-40)}});break}case"taskCompleted":{const s=t.sessionId,r=o.tasksBySession[s]??[];o.tasksBySession[s]=r.map(l=>l.id!==t.taskId&&l.backgroundTaskId!==t.taskId||t.status==="completed"&&(l.status==="cancelled"||l.status==="failed")||t.status==="failed"&&l.status==="cancelled"?l:{...l,status:t.status,completedAt:l.completedAt??new Date().toISOString(),completedAtEstimated:l.completedAt===void 0?!0:l.completedAtEstimated,outputPreview:t.outputPreview??l.outputPreview,outputBytes:t.outputBytes??l.outputBytes});break}case"goalUpdated":{const s=t.sessionId;o.goalVersionBySession[s]=(o.goalVersionBySession[s]??0)+1,t.goal===null||t.goal.status==="complete"?delete o.goalBySession[s]:o.goalBySession[s]=t.goal;break}case"configChanged":{o.config=t.config;break}case"modelCatalogChanged":break;case"agentDelta":case"agentTurnEnded":break;case"promptCompleted":case"promptAborted":break;case"turnActiveChanged":{if(!xy(e,n))break;if(o.sessions=o.sessions.map(s=>s.id===t.sessionId?{...s,mainTurnActive:t.active}:s),t.active)o.turnActiveBySession[t.sessionId]=!0,delete o.turnErrorBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId];else{delete o.turnActiveBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId];const s=t.reason===void 0||t.reason==="completed"?"completed":"failed",r=o.tasksBySession[t.sessionId];r!==void 0&&(o.tasksBySession[t.sessionId]=r.map(l=>l.kind!=="subagent"||l.status!=="running"||l.runInBackground===!0?l:{...l,status:s,subagentPhase:s,completedAt:l.completedAt??new Date().toISOString(),completedAtEstimated:l.completedAt===void 0?!0:l.completedAtEstimated,suspendedReason:void 0}))}break}case"turnRetry":{if(!xy(e,n))break;t.retry===void 0?delete o.turnRetryBySession[t.sessionId]:o.turnRetryBySession[t.sessionId]=t.retry;break}case"unknown":{const s=t.raw;if(!(s&&s._noop===!0))if(s&&s._agentError){if(xy(e,n)){if(n.sessionId!==void 0){const r=s.details??{};o.turnErrorBySession[n.sessionId]={code:s.code,message:s.message,name:s.name,retryable:s.retryable,statusCode:typeof r.statusCode=="number"?r.statusCode:void 0,requestId:typeof r.requestId=="string"?r.requestId:void 0}}(n.sessionId===void 0||n.sessionId!==e.activeSessionId)&&(o.warnings=[...o.warnings,hA(s,i.t)])}}else if(s&&s._agentWarning){const r=s.message??s.code??i.t("warnings.agentWarningFallback");o.warnings=[...o.warnings,`${i.t("warnings.noteLabel")}: ${r}`]}else{const r=s?.type??"(unknown)";o.warnings=[...o.warnings,i.t("warnings.unhandledEvent",{type:r})]}break}}return o}function ECe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n]*)>([\s\S]*?)<\/notification>/g,NCe=/([\w-]+)="([^"]*)"/g,DCe=/]*)>[\s\S]*?<\/output-file>/,FCe=/]*)>([\s\S]*?)<\/output-preview>/,BCe=/^Title: (.*)$/m,RCe=/^Severity: (.*)$/m;function y9(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function c5(e){const t={};for(const n of e.matchAll(NCe))n[1]!==void 0&&n[2]!==void 0&&(t[n[1]]=y9(n[2]));return t}function OCe(e,t,n){const i=c5(e),o=BCe.exec(t)?.[1]?.trim()??"",s=RCe.exec(t)?.[1]?.trim()??"";let r=t.split(` +`).filter(f=>!f.startsWith("Title: ")&&!f.startsWith("Severity: ")).join(` +`);const l=r.search(/^<\w/m);l!==-1&&(r=r.slice(0,l)),r=r.trim();const a=DCe.exec(t),u=a?(()=>{const f=c5(a[1]??""),h=Number(f.bytes);return f.path!==void 0&&f.path!==""?{path:f.path,bytes:Number.isFinite(h)?h:void 0}:void 0})():void 0,c=FCe.exec(t),d=c?(()=>{const f=c5(c[1]??""),h=(c[2]??"").replace(/^\n/,""),m=h.indexOf(` +`),g=y9(m===-1?"":h.slice(m+1)).replace(/\n$/,""),v=Number(f.bytes),y=Number(f.total_bytes);return{text:g,bytes:Number.isFinite(v)?v:void 0,totalBytes:Number.isFinite(y)?y:void 0,truncated:f.truncated==="true"?!0:f.truncated==="false"?!1:void 0}})():void 0;return{id:i.id??"",category:i.category??"",type:i.type??"",sourceKind:i.source_kind??"",sourceId:i.source_id??"",agentId:i.agent_id,title:y9(o),severity:s,body:y9(r),outputFile:u,outputPreview:d,raw:n}}function $Ce(e){if(!e.includes("OD||s>OD||(o+1)*(s+1)>jCe)return null;const r=Array.from({length:o+1},()=>Array.from({length:s+1},()=>0));for(let h=1;h<=o;h++)for(let m=1;m<=s;m++)r[h][m]=n[h-1]===i[m-1]?r[h-1][m-1]+1:Math.max(r[h-1][m],r[h][m-1]);const l=[];let a=o,u=s;for(;a>0||u>0;)a>0&&u>0&&n[a-1]===i[u-1]?(l.push({type:"context",text:n[a-1]}),a--,u--):u>0&&(a===0||r[a][u-1]>=r[a-1][u])?(l.push({type:"add",text:i[u-1]}),u--):(l.push({type:"del",text:n[a-1]}),a--);l.reverse();const c=[];let d=1,f=1;for(const h of l)h.type==="context"?(c.push({type:"context",text:h.text,oldNo:d,newNo:f}),d++,f++):h.type==="add"?(c.push({type:"add",text:h.text,newNo:f}),f++):(c.push({type:"del",text:h.text,oldNo:d}),d++);return c}const $D=500;function PD(e,t){const n=[],i=Pu(e),o=Pu(t),s=Math.min(i.length,$D),r=Math.min(o.length,$D);for(let l=1;l<=s;l++)n.push({type:"del",text:i[l-1],oldNo:l});i.length>s&&n.push({type:"context",text:`… ${i.length-s} more lines …`});for(let l=1;l<=r;l++)n.push({type:"add",text:o[l-1],newNo:l});return o.length>r&&n.push({type:"context",text:`… ${o.length-r} more lines …`}),n}function Eq(e){let t=0,n=0;for(const i of e)i.type==="add"?t++:i.type==="del"&&n++;return{added:t,removed:n}}const HCe=/^read[_-]?media(?:file)?$/i,WCe=/^data:([^;]+);base64,(.*)$/s,qCe=/^<(image|video|audio)\s+path="([^"]+)">$/,UCe=/^<(image|video|audio)\s+path="([^"]+)">(?:<\/\1>)?$/,VCe=/Mime type:\s*([^.\s]+)/i,KCe=/Size:\s*(\d+)\s*bytes/i,ZCe=/Original dimensions:\s*(\d+)x(\d+)\s*pixels/i,GCe="Image compressed to fit model limits:",QCe=/Image compressed to fit model limits:[\s\S]*?<\/system>/g;function YCe(e){return e.includes(GCe)?e.replace(QCe,""):e}function JCe(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function zD(e){const t=UCe.exec(e.trim());return t?{kind:t[1],path:JCe(t[2])}:null}const Lq=/^f_(?:[0-9A-Za-z]{26}|[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})$/,XCe=/^f_(?:[0-9A-Za-z]{26}|[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})(?=-)/;function mA(e){const t=e.split(/[\\/]/).at(-1)??"",n=t.lastIndexOf("."),i=n>0?t.slice(0,n):t;return Lq.test(i)?i:void 0}const eAe=/^Attached file "(.+)" \(([^,]+), (\d+) bytes\): (.+) — open it with the Read tool$/;function jD(e){const t=eAe.exec(e.trim());if(!t)return null;const n=(t[4]??"").split(/[\\/]/).at(-1)??"",i=XCe.exec(n)?.[0];return{name:t[1],mediaType:t[2],size:Number(t[3]),fileId:i!==void 0&&Lq.test(i)?i:void 0}}const tAe=/(?=0&&e[i]==="\\";)n+=1,i-=1;return n%2===1}function Nq(e){let t="",n=0,i=0;for(;i0?t:void 0}return[JSON.stringify(e)]}}function cAe(e,t){if(Sr(e)==="task")for(const n of t??[]){const i=/^agent_id:\s*(\S+)\s*$/.exec(n);if(i?.[1])return i[1]}}function dAe(e,t){return{id:e.agentId??e.id,toolCallId:e.parentToolCallId,name:e.description,kind:e.kind,subagentType:e.subagentType,prompt:e.command??t,model:e.model,thinkingEffort:e.thinkingEffort,phase:e.status==="completed"?"completed":e.status==="failed"?"failed":e.status==="cancelled"?"cancelled":e.subagentPhase??"working",status:e.status,summary:e.outputPreview,outputLines:e.outputLines,text:e.text,suspendedReason:e.suspendedReason,swarmIndex:e.swarmIndex}}function Dq(e){const t=e.display??{},n=typeof t.kind=="string"?t.kind:"";if(n==="diff"){const i=typeof t.path=="string"?t.path:"";if(Array.isArray(t.diff))return{kind:"diff",path:i,diff:t.diff};const o=typeof t.old_text=="string"?t.old_text:typeof t.before=="string"?t.before:void 0,s=typeof t.new_text=="string"?t.new_text:typeof t.after=="string"?t.after:void 0;if(o!==void 0&&s!==void 0){const r=qk(o,s)??PD(o,s);return{kind:"diff",path:i,diff:r}}return{kind:"diff",path:i,diff:[]}}if(n==="file_io"){const i=typeof t.path=="string"?t.path:"",o=typeof t.operation=="string"?t.operation:"";if(o==="write"&&typeof t.content=="string")return{kind:"file",path:i,content:t.content};if(o==="edit"&&typeof t.before=="string"&&typeof t.after=="string"){const r=qk(t.before,t.after)??PD(t.before,t.after);return{kind:"diff",path:i,diff:r}}const s=typeof t.detail=="string"?t.detail:void 0;return{kind:"fileop",op:o||n,path:i,detail:s}}if(n==="shell"||n==="command"){const i=typeof t.command=="string"?t.command:e.action;return{kind:"shell",command:i,cwd:typeof t.cwd=="string"?t.cwd:void 0,danger:typeof t.danger=="string"?t.danger:sle(i)}}if(n==="file_content"||n==="file")return{kind:"file",path:typeof t.path=="string"?t.path:"",content:typeof t.content=="string"?t.content:"",language:typeof t.language=="string"?t.language:void 0};if(n==="file_op"||n==="fileop")return{kind:"fileop",op:typeof t.operation=="string"?t.operation:typeof t.op=="string"?t.op:n,path:typeof t.path=="string"?t.path:"",detail:typeof t.detail=="string"?t.detail:void 0};if(n==="url_fetch"||n==="url")return{kind:"url",method:typeof t.method=="string"?t.method:void 0,url:typeof t.url=="string"?t.url:e.action};if(n==="search")return{kind:"search",query:typeof t.query=="string"?t.query:e.action,scope:typeof t.scope=="string"?t.scope:void 0};if(n==="invocation"||n==="agent_call"||n==="skill_call")return{kind:"invocation",kind2:typeof t.kind=="string"?t.kind:n,name:typeof t.name=="string"?t.name:e.toolName,description:typeof t.description=="string"?t.description:void 0};if(n==="todo"||n==="todo_list")return{kind:"todo",items:(Array.isArray(t.items)?t.items:[]).map(s=>{const r=s??{};return{title:typeof r.title=="string"?r.title:"",status:typeof r.status=="string"?r.status:"pending"}})};if(n==="plan_review"){const i=typeof t.plan=="string"?t.plan:"",o=typeof t.path=="string"?t.path:void 0,r=(Array.isArray(t.options)?t.options:[]).map(l=>{const a=l??{},u=typeof a.label=="string"?a.label:"";if(!u)return null;const c=typeof a.description=="string"?a.description:void 0;return{label:u,description:c}}).filter(l=>l!==null);return{kind:"plan_review",plan:i,path:o,options:r.length>0?r:void 0}}return{kind:"generic",summary:e.action}}function Fq(e){const t=` +`,n=` +`,i=e.indexOf(t),o=e.lastIndexOf(n);return i>=0&&o>=i+t.length?e.slice(i+t.length,o):fAe(e)}function fAe(e){const t=e.split(` +`);return t.length>=2&&t[0]?.startsWith(""?t.slice(1,-1).join(` +`):e}function hAe(e){const t=e.metadata?.origin;if(t?.kind==="cron_job"||t?.kind==="cron_missed")return t.kind}function pAe(e){const t=e.content.filter(n=>n.type==="text").map(n=>n.text).join(` +`);return Fq(t)}function mAe(e,t){const n=e.metadata?.origin??{},i=pAe(e);return t==="cron_missed"?{text:i,cron:{missedCount:typeof n.count=="number"?n.count:void 0}}:{text:i,cron:{jobId:typeof n.jobId=="string"?n.jobId:void 0,cron:typeof n.cron=="string"?n.cron:void 0,recurring:typeof n.recurring=="boolean"?n.recurring:void 0,coalescedCount:typeof n.coalescedCount=="number"?n.coalescedCount:void 0,stale:typeof n.stale=="boolean"?n.stale:void 0}}}function gAe(e,t,n){const{text:i,cron:o}=mAe(e,n);return{id:e.id,role:"cron",no:t,text:i,createdAt:e.createdAt,cron:o}}function vAe(e){const t=e.metadata?.origin,n=t?.kind;return n===void 0||n==="user"?!0:n==="skill_activation"||n==="plugin_command"?t?.trigger==="user-slash":!1}function yAe(e){return e.metadata?.origin?.kind==="compaction_summary"}function kAe(e,t){return e===null?!1:e.promptId===void 0||t===void 0||e.promptId===t}function bAe(e){if(!e||e.length===0)return;const t="Plan saved to: ";for(const n of e)if(n.startsWith(t))return n.slice(t.length).trim()}function wAe(e){const t=[];for(const n of e){const i=t.at(-1);n.type==="text"&&i?.type==="text"?i.text+=n.text:n.type==="thinking"&&i?.type==="thinking"?i.thinking+=n.thinking:n.type==="thinking"?t.push({type:"thinking",thinking:n.thinking}):t.push({...n})}return JSON.stringify(t)}function A4(e,t,n,i=!0,o={},s={},r){const l=[];let a=r?.startNo??1;const u=r?.collect,c=new Map;for(const g of t)c.set(g.toolCallId,g);let d=null;function f(g=!1){if(!d)return;const v=d;if(d=null,!g&&v.blocks.length===0&&v.textParts.length===0&&v.thinkingParts.length===0&&v.tools.length===0)return;if(!g||!i)for(let b=0;bN.kind==="tool"&&N.tool.id===w.id);M&&M.kind==="tool"&&(M.tool=w)}const y={id:v.id,role:"assistant",no:a++,text:v.textParts.join(` +`),thinking:v.thinkingParts.length>0?v.thinkingParts.join(` +`):void 0,tools:v.tools.length>0?v.tools:void 0,blocks:v.blocks.length>0?v.blocks:void 0,approval:v.approval,approvalId:v.approvalId,durationMs:v.durationMs,createdAt:v.createdAt,endedAt:v.endedAt,goalContinuation:v.goalContinuation};l.push(y),u?.(y,v.sources)}function h(g,v){let y=null;for(const b of v)if(b.type==="text"){if(b.text){y==="text"?g.textParts[g.textParts.length-1]+=b.text:g.textParts.push(b.text);const A=g.blocks.at(-1);A&&A.kind==="text"?A.text+=(y==="text"?"":` +`)+b.text:g.blocks.push({kind:"text",text:b.text}),y="text"}}else if(b.type==="thinking"){if(b.thinking){y==="thinking"?g.thinkingParts[g.thinkingParts.length-1]+=b.thinking:g.thinkingParts.push(b.thinking);const A=g.blocks.at(-1);if(A&&A.kind==="thinking"){A.thinking+=(y==="thinking"?"":` +`)+b.thinking;const w=[A.startedAt,b.startedAt].filter(T=>T!==void 0).sort()[0],M=A.startedAt!==void 0&&A.durationMs===void 0||b.startedAt!==void 0&&b.durationMs===void 0,N=[A,b].flatMap(T=>T.startedAt!==void 0&&T.durationMs!==void 0?[Date.parse(T.startedAt)+T.durationMs]:[]);A.startedAt=w,A.durationMs=!M&&w!==void 0&&N.length>0?Math.max(...N)-Date.parse(w):void 0}else g.blocks.push({kind:"thinking",thinking:b.thinking,startedAt:b.startedAt,durationMs:b.durationMs});y="thinking"}}else if(b.type==="toolUse"){y=null;const A=c.get(b.toolCallId),w=b.toolName==="ExitPlanMode"?s[b.toolCallId]:void 0,M={id:b.toolCallId,name:b.toolName,arg:typeof b.input=="string"?b.input:JSON.stringify(b.input),agentId:Sr(b.toolName)==="task"?b.agentRefs?.find(N=>N.role!=="member")?.agentId??b.agentRefs?.[0]?.agentId:void 0,status:"running",output:b.outputLines,plan:w,planPath:b.toolName==="ExitPlanMode"?w?.path??o[b.toolCallId]?.path:void 0};g.tools.push(M),g.blocks.push({kind:"tool",tool:M}),A&&(g.approval=Dq(A),g.approvalId=A.approvalId)}else if(b.type==="toolResult"){y=null;const A=g.tools.findIndex(w=>w.id===b.toolCallId);if(A!==-1){const w=g.tools[A],M=Mx(b.output),N={...w,status:b.isError?"error":"ok",output:M,media:b.isError?void 0:uAe(w.name,b.output),agentId:w.agentId??cAe(w.name,M)};N.name==="ExitPlanMode"&&!N.planPath&&(N.planPath=bAe(N.output)),g.tools[A]=N;const T=g.blocks.find(C=>C.kind==="tool"&&C.tool.id===b.toolCallId);T&&T.kind==="tool"&&(T.tool=N)}}else y=null}function m(g,v){if(g.type==="image"||g.type==="video"){const y=g.type,b=g.source;if(b.kind==="url")return{url:b.url,kind:y};if(b.kind==="base64")return{url:`data:${b.mediaType};base64,${b.data}`,kind:y};if(b.kind==="file"&&n)return{url:n(b.fileId),kind:y,fileId:b.fileId};if(b.kind==="sessionMedia")return{url:r?.getSessionMediaUrl?.(v,b.fileId)??"",kind:y,fileId:b.fileId,sessionId:v}}if(g.type==="file"&&n){if(g.mediaType.startsWith("image/"))return{url:n(g.fileId),kind:"image",fileId:g.fileId};if(g.mediaType.startsWith("video/"))return{url:n(g.fileId),kind:"video",fileId:g.fileId}}}for(const g of e){if(g.role==="system")continue;if(yAe(g)){f();const w=g.metadata?.[qP],M={id:g.id,role:"compaction",no:a,text:g.content.filter(N=>N.type==="text").map(N=>N.text).join(` +`),compaction:{trigger:w?.trigger,tokensBefore:w?.tokensBefore,tokensAfter:w?.tokensAfter}};l.push(M),u?.(M,[g]);continue}if(g.role==="user"){const w=hAe(g),M=g.metadata?.origin?.kind,N=M==="skill_activation"&&g.metadata?.origin?.trigger!=="user-slash";if(w===void 0&&(M==="injection"||N))continue;if(w===void 0&&(M==="task"||M==="background_task"||M==="task_notification")){const G=g.content.filter(ve=>ve.type==="text").map(ve=>ve.text).join(` +`),oe=PCe(g.metadata),te=oe!==void 0?[oe]:$Ce(G);if(te.length>0){d??={id:g.id,promptId:void 0,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[g],createdAt:g.createdAt};for(const ve of te)d.blocks.push({kind:"notification",notification:{...ve,createdAt:g.createdAt}})}continue}if(f(),w!==void 0){const G=gAe(g,a++,w);l.push(G),u?.(G,[g]);continue}if(M==="system_trigger"&&g.metadata?.origin?.name==="goal_continuation"){d={id:g.id,promptId:void 0,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[g],createdAt:g.createdAt,goalContinuation:!0};continue}if(!vAe(g))continue;const T=g.metadata?.origin,C=T?.kind==="skill_activation"&&T?.trigger==="user-slash",I=T?.kind==="plugin_command"&&T?.trigger==="user-slash",S=[],E=[];for(const G of g.content){if(G.type==="text")if(C){const te=zD(G.text);if(te&&(te.kind==="video"||te.kind==="image")&&n){const Te=mA(te.path);if(Te){E.push({url:n(Te),kind:te.kind,fileId:Te});continue}}const ve=jD(G.text);ve&&E.push({kind:"file",url:ve.fileId&&n?n(ve.fileId):"",fileId:ve.fileId,name:ve.name,mediaType:ve.mediaType,size:ve.size})}else if(I)S.push(T.commandArgs??"");else{const te=zD(G.text);if(te&&(te.kind==="video"||te.kind==="image")&&n){const Fe=mA(te.path);if(Fe){E.push({url:n(Fe),kind:te.kind,fileId:Fe});continue}}const ve=jD(G.text);if(ve){E.push({kind:"file",url:ve.fileId&&n?n(ve.fileId):"",fileId:ve.fileId,name:ve.name,mediaType:ve.mediaType,size:ve.size});continue}const Te=YCe(G.text);if(Te!==G.text&&Te.trim().length===0)continue;S.push(Te)}const oe=m(G,g.sessionId);if(oe){E.push({url:oe.url,kind:oe.kind,name:G.type==="file"?G.name:void 0,fileId:oe.fileId,sessionId:oe.sessionId});continue}G.type==="file"&&n&&E.push({kind:"file",url:n(G.fileId),fileId:G.fileId,name:G.name,mediaType:G.mediaType||void 0,size:G.size})}const _=C?T?.skillArgs??"":S.join(` +`),F=oAe(_),q=sAe(_),P=E.filter(G=>G.kind==="file"),O=E.filter(G=>G.kind==="image"||G.kind==="video"),R=[...F].some(G=>G<=P.length),z=[...q].some(G=>G<=O.length),H=R||z?E:[];let j=0,Q=0;const ae=E.filter(G=>G.kind==="file"?(j+=1,!(R&&F.has(j))):G.kind==="image"||G.kind==="video"?(Q+=1,!(z&&q.has(Q))):!0),W={id:g.id,role:"user",no:a++,text:_,attachments:ae.length>0?ae:void 0,inlineAttachments:H.length>0?H:void 0,skillActivation:C?{name:T.skillName,args:T.skillArgs}:void 0,pluginCommand:I?{pluginId:T.pluginId,commandName:T.commandName,args:T.commandArgs}:void 0,createdAt:g.createdAt};l.push(W),u?.(W,[g]);continue}if(g.role==="tool"){d&&(d.sources.push(g),h(d,g.content),d.endedAt=g.createdAt);continue}const v=g.promptId;kAe(d,v)?d!==null&&d.promptId===void 0&&v!==void 0&&(d.promptId=v):(f(),d={id:g.id,promptId:v,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[],durationMs:g.durationMs,createdAt:g.createdAt});const b=d;if(b===null)continue;const A=wAe(g.content);b.promptId!==void 0&&b.seenSigs.has(A)||(b.seenSigs.add(A),b.sources.push(g),g.durationMs!==void 0&&(b.durationMs=g.durationMs),h(b,g.content),g.endedAt!==void 0?b.endedAt=g.endedAt:g.id!==b.id&&(b.endedAt=g.createdAt))}return f(!0),l}function Bq(e,t,n){return e.state==="running"&&e.frames.at(-1)===t&&!n}function CAe(e,t){if(t.size===0)return;let n=!1;for(const l of t.values())if(l.settledAt===void 0){n=!0;break}if(!n)return;const i=new Date().toISOString(),o=e.items.findLast(l=>l.kind==="turn"&&l.state==="running"),s=o?.kind==="turn"?o.steps.findLast(l=>l.state==="running"):void 0,r=e.interactions.some(l=>l.state==="pending");for(const l of e.items)if(l.kind==="turn")for(const a of l.steps){const u=r&&a===s;for(const c of a.frames){if(c.kind!=="thinking")continue;const d=t.get(c.frameId);d===void 0||d.settledAt!==void 0||Bq(a,c,u)||(d.settledAt=i)}}}function AAe(e,t){if(t.size===0)return;const n=new Set;for(const i of e.items)if(i.kind==="turn")for(const o of i.steps)for(const s of o.frames)s.kind==="thinking"&&n.add(s.frameId);for(const i of[...t.keys()])n.has(i)||t.delete(i)}function xAe(e,t,n,i){const o=e.items.filter(d=>d.kind==="turn"),s=o[0]?.turnId,r=o.length===1?s:void 0,l=new Map(e.tasks.map(d=>[d.taskId,d])),a=new Map(e.prompts.map(d=>[d.promptId,d])),u=e.items.flatMap(d=>d.kind==="turn"?Ix(d,e.attachments,l,d.turnId===s?n?.createdAt:void 0,d.turnId===r?n?.disposedAt:void 0,i?.sessionId,{promptById:a}):[]),c=e.meta.activity==="turn";return A4(u,[],t,c,{},{},{getSessionMediaUrl:i?.getSessionMediaUrl}).map(_Ae)}function Ix(e,t,n,i,o,s="",r){const l=[],a=new Map(t.map(v=>[v.attachmentId,v])),u=gA([e.startedAt,...e.steps.map(v=>v.startedAt),i])??"",c=HD(e.endedAt)??HD(o),d=e.turnId,f=e.origin.payload??e.origin,h=(e.attachmentIds??[]).length>0;if(e.prompt!==void 0&&e.prompt.length>0||h){const v=e.prompt!==void 0&&e.prompt.length>0?[{type:"text",text:e.prompt}]:[];for(const y of e.attachmentIds??[]){const b=WD(a.get(y));b!==void 0&&v.push(b)}l.push({id:`${e.turnId}:input`,sessionId:s,role:"user",content:v,createdAt:u,promptId:d,metadata:r?.includeOrigin===!0||e.origin.kind==="task"&&(e.prompt??"").includes("0;if(y.text.length===0&&!b)continue;if(y.role==="user"){if(y.taskId!==void 0){const M=SAe(y.taskId,y.text,n.get(y.taskId));l.push({id:y.frameId,sessionId:"",role:"user",content:[{type:"text",text:y.text}],createdAt:v.startedAt??u,promptId:d,metadata:{origin:{kind:"task",taskId:y.taskId},[Tq]:M}});continue}const A=y.text.length>0?[{type:"text",text:y.text}]:[];for(const M of y.attachmentIds??[]){const N=WD(a.get(M));N!==void 0&&A.push(N)}const w=y.promptIds?.map(M=>r?.promptById?.get(M)).find(M=>M!==void 0);l.push({id:y.frameId,sessionId:s,role:"user",content:A,createdAt:w?.createdAt??v.startedAt??u,promptId:d});continue}l.push({id:y.frameId,sessionId:"",role:"assistant",content:[{type:"text",text:y.text}],createdAt:v.startedAt??u,promptId:d})}else if(y.kind==="thinking"){if(y.text.length===0)continue;const b=r?.pendingInteractionAtByStepId?.get(v.stepId),A=Bq(v,y,b!==void 0),w=r?.thinkingTiming,M=w?.get(y.frameId);let N,T;if(M!==void 0)M.settledAt===void 0&&!A&&(M.settledAt=new Date().toISOString()),N=M.startedAt,T=d5(M.startedAt,M.settledAt);else if(w!==void 0&&A){const C=new Date().toISOString();w.set(y.frameId,{startedAt:C}),N=C}else N=v.startedAt,T=d5(v.startedAt,gA([v.endedAt,b]));l.push({id:y.frameId,sessionId:"",role:"assistant",content:[{type:"thinking",thinking:y.text,startedAt:N,durationMs:T}],createdAt:v.startedAt??u,promptId:d})}else y.kind==="tool"&&(l.push({id:`${y.frameId}:call`,sessionId:"",role:"assistant",content:[{type:"toolUse",toolCallId:y.toolCallId,toolName:y.name,input:y.input??y.display??{},outputLines:y.state==="running"?Mx(y.output):void 0,agentRefs:y.agentRefs}],createdAt:v.startedAt??u,promptId:d}),y.state!=="running"&&l.push({id:`${y.frameId}:result`,sessionId:"",role:"tool",content:[{type:"toolResult",toolCallId:y.toolCallId,output:y.output??y.error??"",isError:y.state==="error"}],createdAt:v.endedAt??v.startedAt??u,promptId:d}));const m=e.durationMs??d5(u||void 0,c),g=l.findLastIndex(v=>v.role==="assistant");return g>=0&&(m!==void 0||c!==void 0)&&(l[g]={...l[g],durationMs:m,endedAt:c??l[g].endedAt}),l}function SAe(e,t,n){const[i="",...o]=t.split(` +`),s=n?.state??"info";return{id:`task:${e}:${s}`,category:"task",type:`task.${s}`,sourceKind:n?.kind==="subagent"?"subagent":"background_task",sourceId:e,agentId:n?.agentId,title:i.trim(),severity:s==="completed"?"info":"warning",body:o.join(` +`).trim(),raw:t}}function _Ae(e){if(e.createdAt!==""&&e.endedAt!=="")return e;const t={...e};return t.createdAt===""&&delete t.createdAt,t.endedAt===""&&delete t.endedAt,t}function gA(e){let t;for(const n of e){if(n===void 0)continue;const i=Date.parse(n);Number.isFinite(i)&&(t===void 0||i=0?n:void 0}const qD=6e3,vA=256*1024,MAe=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;function UD(e,t){return t===0?e:e-1}function IAe(e,t){const n=Pu(t),i=[];let o=0;for(const s of e){if(s.type==="hunk"){const r=MAe.exec(s.text);if(!r)return null;const l=UD(Number(r[1]),r[2]===void 0?1:Number(r[2])),a=UD(Number(r[3]),r[4]===void 0?1:Number(r[4]));if(an.length)return null;for(;o=n.length||n[o]!==s.text)return null;o++,s.type==="context"&&i.push(s.text)}for(;ovA||Pu(n).length>qD)return null;const i=IAe(e,n);return i===null||i.length>vA||Pu(i).length>qD?null:{before:i,after:n}}const EAe=new Set(["assistantDelta","agentDelta","toolOutput","taskProgress"]);function LAe(e){return EAe.has(e.type)}const NAe=50,DAe=100,yA=32*1024,FAe={requestFrame(e){return typeof requestAnimationFrame=="function"?requestAnimationFrame(e):null},cancelFrame(e){typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e)},requestTask(e){return setTimeout(e,NAe)},cancelTask(e){clearTimeout(e)}};function BAe(e,t,n={}){const i=n.scheduler??FAe,o=Math.max(1,Math.floor(n.maxItemsPerSlice??DAe)),s=[];let r=0,l=null,a=null,u=0,c=!1;const d=()=>s.length-r,f=()=>{u+=1,l!==null&&(i.cancelFrame(l),l=null),a!==null&&(i.cancelTask(a),a=null)},h=()=>{r===s.length?(s.length=0,r=0):r>=1024&&(s.splice(0,r),r=0)};let m;const g=()=>{if(c||l!==null||a!==null||d()===0)return;const y=++u,b=()=>{y===u&&m()};l=i.requestFrame(b),a=i.requestTask(b)};m=()=>{f();let y=0;for(;!c&&y{if(!c){if(t(y)){const b=s.length>r?s.at(-1):void 0,A=b===void 0?void 0:n.coalesce?.(b,y);A===void 0?s.push(y):s[s.length-1]=A,g();return}if(d()===0){e(y);return}s.push(y),m()}});return v.flush=()=>{if(!c){for(f();!c&&r{if(c||d()===0)return;let b=r;for(let A=r;A{c||(c=!0,f(),s.length=0,r=0)},v}function kA(e){if(e.type==="assistantDelta"){if(e.delta.text!==void 0&&e.delta.thinking===void 0)return{kind:"text",value:e.delta.text};if(e.delta.thinking!==void 0&&e.delta.text===void 0)return{kind:"thinking",value:e.delta.thinking}}}function RAe(e){if(e.appEvent.type!=="assistantDelta")return[e];const t=e.appEvent,n=e.meta.stream,i=kA(t);if(n===void 0||i===void 0||n.kind!==i.kind||i.value.length<=yA)return[e];const o=[];let s=0;for(;ss&&/[\uD800-\uDBFF]/u.test(i.value[r-1])&&/[\uDC00-\uDFFF]/u.test(i.value[r])&&(r-=1);const l=i.value.slice(s,r);o.push({appEvent:{...t,delta:i.kind==="text"?{text:l}:{thinking:l}},meta:{...e.meta,stream:{...n,offset:n.offset+s}}}),s=r}return o}function OAe(e,t){if(e.appEvent.type!=="assistantDelta"||t.appEvent.type!=="assistantDelta")return;const n=e.meta.stream,i=t.meta.stream,o=kA(e.appEvent),s=kA(t.appEvent);if(n===void 0||i===void 0||o===void 0||s===void 0||e.meta.sessionId!==t.meta.sessionId||e.appEvent.sessionId!==t.appEvent.sessionId||e.appEvent.messageId!==t.appEvent.messageId||e.appEvent.contentIndex!==t.appEvent.contentIndex||n.turnId!==i.turnId||n.kind!==i.kind||o.kind!==s.kind||n.kind!==o.kind||i.kind!==s.kind||i.offset!==n.offset+o.value.length||o.value.length+s.value.length>yA)return;const r=o.value+s.value;return{appEvent:{...e.appEvent,delta:o.kind==="text"?{text:r}:{thinking:r}},meta:{...t.meta,stream:{...n}}}}function $Ae(e,t){const i=e.items.filter(d=>d.kind==="turn")[0]?.turnId,o=new Map(e.tasks.map(d=>[d.taskId,d])),s=new Map(e.prompts.map(d=>[d.promptId,d])),r=d=>d.kind==="turn"?d.origin.payload??d.origin:void 0,l=new Set,a=e.items.flatMap((d,f)=>{if(d.kind==="turn"){const h=d.startedAt!==void 0||d.steps.some(m=>m.startedAt!==void 0);return PAe(d,e.attachments,o,d.turnId===i&&!h&&e.hasMoreOlder!==!0?t.agentCreatedAt:void 0,void 0,t.sessionId,t.pendingInteractionAtByStepId,t.thinkingTiming,s)}if(d.kind==="marker"&&d.marker==="compaction"){const h=zAe(d.payload,d.at,t.sessionId,d.markerId,HAe(e.items,f));return h===void 0?[]:[h]}if(d.kind==="marker"&&d.marker==="cron.fired"){const h=d.payload,m=h?.origin?.jobId,g=typeof h?.prompt=="string"?h.prompt:void 0,v=e.items.slice(f+1).find(b=>{if(b.kind!=="turn"||l.has(b.turnId))return!1;const A=r(b);return A?.kind==="cron_job"&&(m===void 0||A.jobId===m)&&(g===void 0||b.kind==="turn"&&Fq(b.prompt??"")===g)});if(v!==void 0&&v.kind==="turn")return l.add(v.turnId),[];const y=jAe(d.payload,d.at,t.sessionId,d.markerId);return y===void 0?[]:[y]}return[]}),u=e.interactions.map(d=>Vp(d,t.sessionId)).filter(d=>d!==void 0),c=e.meta.activity==="turn";return A4(a,u,t.getFileUrl,c,t.planReviewByToolCallId??{},t.plansByToolCallId??{},{getSessionMediaUrl:t.getSessionMediaUrl}).map(UAe)}function PAe(e,t,n,i,o,s,r,l,a){const u=e.origin.payload??e.origin,c=u?.kind;return[...e.prompt===void 0&&c==="system_trigger"?[{id:`${e.turnId}:origin`,sessionId:s,role:"user",content:[],createdAt:gA([e.startedAt,...e.steps.map(f=>f.startedAt),i])??"",promptId:e.turnId,metadata:{origin:u}}]:[],...Ix(e,t,n,i,o,s,{includeOrigin:!0,pendingInteractionAtByStepId:r,thinkingTiming:l,promptById:a})]}function zAe(e,t,n,i,o){const s=e;if(s?.phase!=="completed")return;const r=s.result??{},l={trigger:o,tokensBefore:typeof r.tokensBefore=="number"?r.tokensBefore:void 0,tokensAfter:typeof r.tokensAfter=="number"?r.tokensAfter:void 0};return{id:i,sessionId:n,role:"assistant",content:typeof r.summary=="string"?[{type:"text",text:r.summary}]:[],createdAt:t??"",metadata:{origin:{kind:"compaction_summary"},[qP]:l}}}function jAe(e,t,n,i){const o=e,s=o?.origin;if(!(s?.kind!=="cron_job"||typeof o?.prompt!="string"))return{id:i,sessionId:n,role:"user",content:[{type:"text",text:o.prompt}],createdAt:t??"",metadata:{origin:s}}}function HAe(e,t){for(let n=t-1;n>=0;n--){const i=e[n];if(i?.kind!=="marker"||i.marker!=="compaction")continue;const o=i.payload;if(o?.phase==="started")return o.trigger==="manual"?"manual":"auto"}return"auto"}function Vp(e,t){if(e.interactionKind!=="approval"||e.state!=="pending")return;const n=e.request??{};if(typeof n.toolName!="string"||typeof n.action!="string")return;const i=typeof e.toolCallId=="string"?e.toolCallId:typeof n.toolCallId=="string"?n.toolCallId:void 0;if(i!==void 0)return{approvalId:e.interactionId,sessionId:t,turnId:typeof n.turnId=="number"?n.turnId:void 0,toolCallId:i,toolName:n.toolName,action:n.action,display:n.display,expiresAt:"",createdAt:""}}function fg(e,t){if(e.interactionKind!=="question"||e.state!=="pending")return;const n=e.request??{};if(!Array.isArray(n.questions))return;const i=typeof e.toolCallId=="string"?e.toolCallId:typeof n.toolCallId=="string"?n.toolCallId:typeof n.tool_call_id=="string"?n.tool_call_id:void 0;return{questionId:e.interactionId,sessionId:t,turnId:typeof n.turnId=="number"?n.turnId:typeof n.turn_id=="number"?n.turn_id:void 0,toolCallId:i,questions:n.questions.map(WAe),createdAt:""}}function WAe(e){const t=Array.isArray(e.options)?e.options:[];return{id:typeof e.id=="string"?e.id:"",question:typeof e.question=="string"?e.question:"",header:typeof e.header=="string"?e.header:void 0,body:typeof e.body=="string"?e.body:void 0,options:t.map(qAe),multiSelect:e.multi_select===!0,allowOther:e.allow_other===!0,otherLabel:typeof e.other_label=="string"?e.other_label:void 0,otherDescription:typeof e.other_description=="string"?e.other_description:void 0}}function qAe(e){const t=e??{};return{id:typeof t.id=="string"?t.id:"",label:typeof t.label=="string"?t.label:"",description:typeof t.description=="string"?t.description:void 0,recommended:t.recommended===!0||t.is_recommended===!0}}function UAe(e){if(e.createdAt!==""&&e.endedAt!=="")return e;const t={...e};return t.createdAt===""&&delete t.createdAt,t.endedAt===""&&delete t.endedAt,t}function VAe(){let e=[];const t=(n,i)=>{const s=$Ae(n,i).map((r,l)=>{const a=JSON.stringify(r),u=e[l],c=u!==void 0&&u.fingerprint===a?u.turn:r;return e[l]={turn:c,fingerprint:a},c});return e.length=s.length,s};return t.reset=()=>{e=[]},t}function KAe(e){return e.startsWith("diff --git")||e.startsWith("index ")||e.startsWith("--- ")||e.startsWith("+++ ")||e.startsWith("new file mode")||e.startsWith("deleted file mode")||e.startsWith("old mode")||e.startsWith("new mode")||e.startsWith("similarity index")||e.startsWith("dissimilarity index")||e.startsWith("rename from")||e.startsWith("rename to")||e.startsWith("copy from")||e.startsWith("copy to")||e.startsWith("Binary files")}function ZAe(e){const t=[];if(!e)return t;let n=0,i=0,o=!1;for(const s of e.split(` +`)){if(s.startsWith("diff --git")){o=!1;continue}if(!o&&KAe(s))continue;if(s.startsWith("@@")){const a=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(s);a&&(n=Number.parseInt(a[1],10),i=Number.parseInt(a[2],10)),o=!0,t.push({type:"hunk",text:s});continue}if(!o||s.startsWith("\\"))continue;const r=s.charAt(0),l=s.slice(1);r==="+"?(t.push({type:"add",text:l,newNo:i}),i+=1):r==="-"?(t.push({type:"del",text:l,oldNo:n}),n+=1):r===" "&&(t.push({type:"context",text:l,oldNo:n,newNo:i}),n+=1,i+=1)}return t}function VD(e){return e?e.split(` +`).map(t=>t.trimEnd()).filter(Boolean).at(-1)??"":""}function GAe(e){return e.suspendedReason||VD(e.text)||VD(e.outputLines?.join(` +`))||e.summary||""}function QAe(e){return e.suspendedReason?e.suspendedReason:e.text?e.text:e.outputLines&&e.outputLines.length>0?e.outputLines.join(` +`):e.summary??""}function YAe(e){return e==="completed"?"completed":e==="failed"?"failed":e==="aborted"?"cancelled":"working"}function KD(e,t){return{id:e.agentId??e.item??`result-${t}`,agentId:e.agentId,name:e.item??`subagent ${t+1}`,activity:e.body.split(` +`)[0]??"",phase:YAe(e.outcome),body:e.body}}function JAe(e,t){return!!(t.agentId&&e.agentId===t.agentId||t.item&&e.name.includes(t.item))}function XAe(e,t){const n=e.map(o=>({id:o.id,agentId:o.agentId,name:o.name,activity:GAe(o),phase:o.phase,body:QAe(o)}));if(!t)return n;const i=t.subagents.filter(o=>(o.outcome==="aborted"||o.state==="not_started")&&!e.some(s=>JAe(s,o))).map((o,s)=>KD(o,s));return n.length>0?[...n,...i]:t.subagents.map((o,s)=>KD(o,s))}const e6e=["queued","working","suspended","completed","failed","cancelled"];function Rq(e){return e.status==="completed"?"completed":e.status==="failed"?"failed":e.status==="cancelled"?"cancelled":e.subagentPhase?e.subagentPhase:"working"}function t6e(){return{queued:0,working:0,suspended:0,completed:0,failed:0,cancelled:0}}function n6e(e){const t=new Map;for(const n of e){if(n.kind!=="subagent"||n.swarmIndex===void 0)continue;const i=n.parentToolCallId??"swarm",o=t.get(i)??[];o.push({id:n.id,agentId:n.agentId,name:n.description,subagentType:n.subagentType,model:n.model,thinkingEffort:n.thinkingEffort,phase:Rq(n),summary:n.outputPreview,outputLines:n.outputLines,text:n.text,suspendedReason:n.suspendedReason,swarmIndex:n.swarmIndex}),t.set(i,o)}return[...t.entries()].map(([n,i])=>{const o=i.toSorted((r,l)=>r.swarmIndex-l.swarmIndex||r.id.localeCompare(l.id)),s=t6e();for(const r of o)s[r.phase]++;return{id:n,members:o,counts:s}}).filter(n=>n.members.length>1).toSorted((n,i)=>{const o=n.members.at(0)?.swarmIndex??0,s=i.members.at(0)?.swarmIndex??0;return o!==s?o-s:n.id.localeCompare(i.id)})}function i6e(e){let t=0,n=0;for(const i of e){n+=i.members.length;for(const o of e6e)(o==="completed"||o==="failed"||o==="cancelled")&&(t+=i.counts[o])}return{done:t,total:n}}function o6e(e){const t=new Map;for(const n of e){if(n.kind!=="subagent"||!n.parentToolCallId)continue;const i=t.get(n.parentToolCallId)??[];i.push({id:n.id,agentId:n.agentId,name:n.description,subagentType:n.subagentType,model:n.model,thinkingEffort:n.thinkingEffort,phase:Rq(n),summary:n.outputPreview,outputLines:n.outputLines,text:n.text,suspendedReason:n.suspendedReason,swarmIndex:n.swarmIndex??Number.MAX_SAFE_INTEGER}),t.set(n.parentToolCallId,i)}for(const[n,i]of t)t.set(n,i.toSorted((o,s)=>o.swarmIndex-s.swarmIndex||o.id.localeCompare(s.id)));return t}function Tx(e){const t=e.trim();if(!t.startsWith("{"))return null;try{const n=JSON.parse(t);return n&&typeof n=="object"&&!Array.isArray(n)?n:null}catch{return null}}function Oq(e){for(const t of["path","file_path","filePath","filename"]){const n=e[t];if(typeof n=="string"&&n.length>0)return n}}const Bg=100*1024;function $q(e){const t=Sr(e.name);if(t!=="edit"&&t!=="multi_edit")return null;const n=Tx(e.arg);if(!n)return null;if(t==="edit"){if(n.replace_all===!0)return null;const l=typeof n.old_string=="string"?n.old_string:void 0,a=typeof n.new_string=="string"?n.new_string:void 0;return l===void 0||a===void 0||l.length>Bg||a.length>Bg?null:qk(l,a)}const i=Array.isArray(n.edits)?n.edits:void 0;if(!i||i.length===0)return null;const o=[];let s=0,r=0;for(const l of i){if(!l||typeof l!="object")return null;const a=l;if(a.replace_all===!0)return null;const u=typeof a.old_string=="string"?a.old_string:void 0,c=typeof a.new_string=="string"?a.new_string:void 0;if(u===void 0||c===void 0||u.length>Bg||c.length>Bg)return null;const d=qk(u,c);if(d===null)return null;o.length>0&&o.push({type:"hunk",text:"···"});for(const f of d)o.push({...f,oldNo:f.oldNo!==void 0?f.oldNo+s:void 0,newNo:f.newNo!==void 0?f.newNo+r:void 0});s+=Pu(u).length,r+=Pu(c).length}return o}const s6e=5e3;function r6e(e){if(Sr(e.name)!=="write")return null;const t=Tx(e.arg);return!t||typeof t.content!="string"||t.content.length>Bg||t.content.split(` +`).length>s6e?null:{content:t.content,path:Oq(t)}}function ZD(e){const t=Tx(e.arg);return t?Oq(t):void 0}function l6e(e){switch(e){case"running":return"running";case"completed":return"completed";case"killed":return"cancelled";default:return"failed"}}function a6e(e,t){return t==="running"?e.stateReason!==void 0?"suspended":"working":t}function u6e(e){return e==="subagent"?"subagent":e==="shell"?"bash":"tool"}function c6e(e){return Pq(e).parents}function Pq(e){const t=new Map,n=new Map;for(const i of e.items)if(i.kind==="turn")for(const o of i.steps)for(const s of o.frames)s.kind!=="tool"||s.agentRefs===void 0||s.agentRefs.forEach((r,l)=>{t.set(r.agentId,s.toolCallId),n.set(r.agentId,l)});return{parents:t,swarmIndexes:n}}function d6e(e,t,n){const i=Pq(e);let o=i.parents,s=i.swarmIndexes;if(n!==void 0){for(const[u,c]of i.parents)n.parents.set(u,c);for(const[u,c]of i.swarmIndexes)n.swarmIndexes.set(u,c);o=n.parents,s=n.swarmIndexes}const r=e.tasks.map(u=>{const c=l6e(u.state);return{id:u.taskId,agentId:u.agentId,sessionId:t,kind:u6e(u.kind),description:u.description??"",status:c,createdAt:u.startedAt??"",startedAt:u.startedAt,completedAt:u.endedAt,outputPreview:u.outputTail.length>0?u.outputTail:void 0,text:u.resultSummary,subagentPhase:u.kind==="subagent"?a6e(u,c):void 0,suspendedReason:c==="running"?u.stateReason:void 0,model:u.model,thinkingEffort:u.thinkingEffort,runInBackground:u.detached,parentToolCallId:u.agentId!==void 0?o.get(u.agentId):void 0,swarmIndex:u.agentId!==void 0?s.get(u.agentId):void 0}}),l=new Map;r.forEach((u,c)=>{u.agentId!==void 0&&u.id===u.agentId&&l.set(u.agentId,c)});const a=new Set;return r.forEach((u,c)=>{if(u.agentId===void 0||u.id===u.agentId)return;const d=l.get(u.agentId);if(d===void 0)return;const f=r[d],h=u.completedAt!==void 0&&f.startedAt!==void 0&&u.completedAt>=f.startedAt,m=f.status==="running"&&u.status!=="running"&&h;r[d]={...f,backgroundTaskId:u.status==="running"||h?u.id:void 0,status:m?u.status:f.status,subagentPhase:m?u.status==="completed"?"completed":u.status==="cancelled"?"cancelled":"failed":f.subagentPhase,description:f.description.length>0?f.description:u.description,model:f.model??u.model,thinkingEffort:f.thinkingEffort??u.thinkingEffort,completedAt:h?u.completedAt??f.completedAt:f.completedAt,outputPreview:h?f.outputPreview??u.outputPreview:f.outputPreview,text:h?f.text??u.text:f.text},a.add(c)}),r.filter((u,c)=>!a.has(c))}function f6e(){let e=[],t=null,n=null,i=null,o,s,r=!0;const l=new WeakMap,a=u=>{const{messages:c,approvals:d}=u,f=u.sessionActive??!0,h=u.planReviewByToolCallId??{},m=u.plansByToolCallId??{},g=(C,I)=>l.set(C,I);let v=n!==null;if(v){const C=n,I=Object.keys(h);v=I.length===Object.keys(C).length&&I.every(S=>h[S]===C[S])}let y=i!==null;if(y){const C=i,I=Object.keys(m);y=I.length===Object.keys(C).length&&I.every(S=>m[S]===C[S])}const b=e.length>0&&d===t&&v&&y&&u.getFileUrl===o&&u.getSessionMediaUrl===s;let A=0,w=0,M=1;if(b){let C=-1;for(let I=e.length-1;I>=0;I--)if(e[I].role==="assistant"){C=I;break}for(let I=0;I0?[...e.slice(0,A),...N]:N;return e=T,t=d,n={...h},i={...m},o=u.getFileUrl,s=u.getSessionMediaUrl,r=f,T};return a.reset=()=>{e=[],t=null,n=null,i=null,o=void 0,r=!0},a}function h6e(e){const t=new Map;let n=0;for(let i=e.length-1;i>=0;i--){const o=e[i];if(o.role==="compaction"||o.goalContinuation===!0)break;o.role==="user"&&(n++,t.set(o.id,n))}return t}const zq=["light","dark","system"],p6e=["small","medium","large","xlarge"],f5="medium",jq="kimi-web.color-scheme",bA="kimi-web.font-scale",GD="kimi-web.ui-font-size";function wA(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function Ex(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function m6e(e){try{globalThis.localStorage.removeItem(e)}catch{}}function g6e(){const e=wA(jq);return e&&zq.includes(e)?e:"system"}const Sy={light:"#ffffff",dark:"#121212"};function v6e(e){if(typeof document>"u"||!document.documentElement)return;document.documentElement.dataset.colorScheme=e;const t=document.querySelectorAll('meta[name="theme-color"]');if(t.length===0)return;const n=e==="dark"?Sy.dark:e==="light"?Sy.light:null;t.forEach(i=>{const s=(i.getAttribute("media")??"").includes("dark")?Sy.dark:Sy.light;i.setAttribute("content",n??s)})}function Hq(e){return p6e.includes(e)}function y6e(e){return e<=13?"small":e<=15?"medium":e<=17?"large":"xlarge"}function k6e(){const e=wA(bA);if(e==="xxlarge")return"xlarge";if(e!==null)return Hq(e)?e:f5;const t=wA(GD);if(t===null)return f5;const n=Number(t),i=Number.isFinite(n)?y6e(n):f5;return Ex(bA,i),m6e(GD),i}function b6e(e){typeof document>"u"||!document.documentElement||(document.documentElement.dataset.fontScale=e)}const Lx=U(g6e()),Nx=U(k6e());let QD=!1;function w6e(){QD||(QD=!0,Ue(Lx,v6e,{immediate:!0}),Ue(Nx,b6e,{immediate:!0}))}function C6e(e){zq.includes(e)&&(Lx.value=e,Ex(jq,e))}function A6e(e){Hq(e)&&(Nx.value=e,Ex(bA,e))}function wm(){return w6e(),{colorScheme:Lx,fontScale:Nx,setColorScheme:C6e,setFontScale:A6e}}const _y=U(!1);let YD=!1;function h5(){const e=document.documentElement.dataset.colorScheme;return e==="dark"?!0:e==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function x4(){return!YD&&typeof window<"u"&&typeof document<"u"&&(YD=!0,_y.value=h5(),new MutationObserver(()=>{_y.value=h5()}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-color-scheme"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{_y.value=h5()})),_y}const Wq="kimi-web.sidebar-multi-tab";function x6e(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function S6e(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function _6e(){return x6e(Wq)==="1"}const qq=U(_6e());function M6e(e){qq.value=e,S6e(Wq,e?"1":"0")}function Cm(){return{sidebarTabs:qq,setSidebarTabs:M6e}}const JD=document.createElement("i");function I6e(e){const t="&"+e+";";JD.innerHTML=t;const n=JD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zu(e,t,n,i){const o=e.length;let s=0,r;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)r=Array.from(i),r.unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);s0?(zu(e,e.length,0,t),e):t}const XD={}.hasOwnProperty;function T6e(e){const t={};let n=-1;for(;++n-1&&e.test(String.fromCharCode(n))}}function fo(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return r;function r(a){return Ei(a)?(e.enter(n),l(a)):t(a)}function l(a){return Ei(a)&&s++r))return;const T=t.events.length;let C=T,I,S;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(I){S=t.events[C][1].end;break}I=!0}for(y(i),N=T;NA;){const M=n[w];t.containerState=M[1],M[0].exit.call(t,e)}n.length=A}function b(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function j6e(e,t,n){return fo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tF(e){if(e===null||Cl(e)||R6e(e))return 1;if(B6e(e))return 2}function Fx(e,t,n){const i=[];let o=-1;for(;++o1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};nF(d,-a),nF(f,a),r={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},s={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:a>1?"strong":"emphasis",start:{...r.start},end:{...l.end}},e[i][1].end={...r.start},e[n][1].start={...l.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ca(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ca(u,[["enter",o,t],["enter",r,t],["exit",r,t],["enter",s,t]]),u=ca(u,Fx(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=ca(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ca(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,zu(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n0&&Ei(N)?fo(e,b,"linePrefix",s+1)(N):b(N)}function b(N){return N===null||Un(N)?e.check(iF,g,w)(N):(e.enter("codeFlowValue"),A(N))}function A(N){return N===null||Un(N)?(e.exit("codeFlowValue"),b(N)):(e.consume(N),A)}function w(N){return e.exit("codeFenced"),t(N)}function M(N,T,C){let I=0;return S;function S(P){return N.enter("lineEnding"),N.consume(P),N.exit("lineEnding"),E}function E(P){return N.enter("codeFencedFence"),Ei(P)?fo(N,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):_(P)}function _(P){return P===l?(N.enter("codeFencedFenceSequence"),F(P)):C(P)}function F(P){return P===l?(I++,N.consume(P),F):I>=r?(N.exit("codeFencedFenceSequence"),Ei(P)?fo(N,q,"whitespace")(P):q(P)):C(P)}function q(P){return P===null||Un(P)?(N.exit("codeFencedFence"),T(P)):C(P)}}}function X6e(e,t,n){const i=this;return o;function o(r){return r===null?n(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}const p5={name:"codeIndented",tokenize:t7e},e7e={partial:!0,tokenize:n7e};function t7e(e,t,n){const i=this;return o;function o(u){return e.enter("codeIndented"),fo(e,s,"linePrefix",5)(u)}function s(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(u):n(u)}function r(u){return u===null?a(u):Un(u)?e.attempt(e7e,r,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Un(u)?(e.exit("codeFlowValue"),r(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function n7e(e,t,n){const i=this;return o;function o(r){return i.parser.lazy[i.now().line]?n(r):Un(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),o):fo(e,s,"linePrefix",5)(r)}function s(r){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(r):Un(r)?o(r):n(r)}}const i7e={name:"codeText",previous:s7e,resolve:o7e,tokenize:r7e};function o7e(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&hg(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),hg(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),hg(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}}function Gq(e,t,n,i,o,s,r,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(y),e.exit(s),f):y===null||y===32||y===41||CA(y)?n(y):(e.enter(i),e.enter(r),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(y))}function f(y){return y===62?(e.enter(s),e.consume(y),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(l),f(y)):y===null||y===60||Un(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!c&&(y===null||y===41||Cl(y))?(e.exit("chunkString"),e.exit(l),e.exit(r),e.exit(i),t(y)):c999||h===null||h===91||h===93&&!a||h===94&&!l&&"_hiddenFootnoteSupport"in r.parser.constructs?n(h):h===93?(e.exit(s),e.enter(o),e.consume(h),e.exit(o),e.exit(i),t):Un(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Un(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),a||(a=!Ei(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),l++,d):d(h)}}function Yq(e,t,n,i,o,s){let r;return l;function l(f){return f===34||f===39||f===40?(e.enter(i),e.enter(o),e.consume(f),e.exit(o),r=f===40?41:f,a):n(f)}function a(f){return f===r?(e.enter(o),e.consume(f),e.exit(o),e.exit(i),t):(e.enter(s),u(f))}function u(f){return f===r?(e.exit(s),a(r)):f===null?n(f):Un(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),fo(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===r||f===null||Un(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===r||f===92?(e.consume(f),c):c(f)}}function C0(e,t){let n;return i;function i(o){return Un(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Ei(o)?fo(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const p7e={name:"definition",tokenize:g7e},m7e={partial:!0,tokenize:v7e};function g7e(e,t,n){const i=this;let o;return s;function s(h){return e.enter("definition"),r(h)}function r(h){return Qq.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return o=Dx(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Cl(h)?C0(e,u)(h):u(h)}function u(h){return Gq(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(m7e,d,d)(h)}function d(h){return Ei(h)?fo(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Un(h)?(e.exit("definition"),i.parser.defined.push(o),t(h)):n(h)}}function v7e(e,t,n){return i;function i(l){return Cl(l)?C0(e,o)(l):n(l)}function o(l){return Yq(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Ei(l)?fo(e,r,"whitespace")(l):r(l)}function r(l){return l===null||Un(l)?t(l):n(l)}}const y7e={name:"hardBreakEscape",tokenize:k7e};function k7e(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Un(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const b7e={name:"headingAtx",resolve:w7e,tokenize:C7e};function w7e(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},zu(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function C7e(e,t,n){let i=0;return o;function o(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),r(c)}function r(c){return c===35&&i++<6?(e.consume(c),r):c===null||Cl(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||Un(c)?(e.exit("atxHeading"),t(c)):Ei(c)?fo(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Cl(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const A7e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sF=["pre","script","style","textarea"],x7e={concrete:!0,name:"htmlFlow",resolveTo:M7e,tokenize:I7e},S7e={partial:!0,tokenize:E7e},_7e={partial:!0,tokenize:T7e};function M7e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function I7e(e,t,n){const i=this;let o,s,r,l,a;return u;function u(W){return c(W)}function c(W){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(W),d}function d(W){return W===33?(e.consume(W),f):W===47?(e.consume(W),s=!0,g):W===63?(e.consume(W),o=3,i.interrupt?t:j):Su(W)?(e.consume(W),r=String.fromCharCode(W),v):n(W)}function f(W){return W===45?(e.consume(W),o=2,h):W===91?(e.consume(W),o=5,l=0,m):Su(W)?(e.consume(W),o=4,i.interrupt?t:j):n(W)}function h(W){return W===45?(e.consume(W),i.interrupt?t:j):n(W)}function m(W){const G="CDATA[";return W===G.charCodeAt(l++)?(e.consume(W),l===G.length?i.interrupt?t:_:m):n(W)}function g(W){return Su(W)?(e.consume(W),r=String.fromCharCode(W),v):n(W)}function v(W){if(W===null||W===47||W===62||Cl(W)){const G=W===47,oe=r.toLowerCase();return!G&&!s&&sF.includes(oe)?(o=1,i.interrupt?t(W):_(W)):A7e.includes(r.toLowerCase())?(o=6,G?(e.consume(W),y):i.interrupt?t(W):_(W)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(W):s?b(W):A(W))}return W===45||za(W)?(e.consume(W),r+=String.fromCharCode(W),v):n(W)}function y(W){return W===62?(e.consume(W),i.interrupt?t:_):n(W)}function b(W){return Ei(W)?(e.consume(W),b):S(W)}function A(W){return W===47?(e.consume(W),S):W===58||W===95||Su(W)?(e.consume(W),w):Ei(W)?(e.consume(W),A):S(W)}function w(W){return W===45||W===46||W===58||W===95||za(W)?(e.consume(W),w):M(W)}function M(W){return W===61?(e.consume(W),N):Ei(W)?(e.consume(W),M):A(W)}function N(W){return W===null||W===60||W===61||W===62||W===96?n(W):W===34||W===39?(e.consume(W),a=W,T):Ei(W)?(e.consume(W),N):C(W)}function T(W){return W===a?(e.consume(W),a=null,I):W===null||Un(W)?n(W):(e.consume(W),T)}function C(W){return W===null||W===34||W===39||W===47||W===60||W===61||W===62||W===96||Cl(W)?M(W):(e.consume(W),C)}function I(W){return W===47||W===62||Ei(W)?A(W):n(W)}function S(W){return W===62?(e.consume(W),E):n(W)}function E(W){return W===null||Un(W)?_(W):Ei(W)?(e.consume(W),E):n(W)}function _(W){return W===45&&o===2?(e.consume(W),O):W===60&&o===1?(e.consume(W),R):W===62&&o===4?(e.consume(W),Q):W===63&&o===3?(e.consume(W),j):W===93&&o===5?(e.consume(W),H):Un(W)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(S7e,ae,F)(W)):W===null||Un(W)?(e.exit("htmlFlowData"),F(W)):(e.consume(W),_)}function F(W){return e.check(_7e,q,ae)(W)}function q(W){return e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),P}function P(W){return W===null||Un(W)?F(W):(e.enter("htmlFlowData"),_(W))}function O(W){return W===45?(e.consume(W),j):_(W)}function R(W){return W===47?(e.consume(W),r="",z):_(W)}function z(W){if(W===62){const G=r.toLowerCase();return sF.includes(G)?(e.consume(W),Q):_(W)}return Su(W)&&r.length<8?(e.consume(W),r+=String.fromCharCode(W),z):_(W)}function H(W){return W===93?(e.consume(W),j):_(W)}function j(W){return W===62?(e.consume(W),Q):W===45&&o===2?(e.consume(W),j):_(W)}function Q(W){return W===null||Un(W)?(e.exit("htmlFlowData"),ae(W)):(e.consume(W),Q)}function ae(W){return e.exit("htmlFlow"),t(W)}}function T7e(e,t,n){const i=this;return o;function o(r){return Un(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s):n(r)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}function E7e(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(S4,t,n)}}const L7e={name:"htmlText",tokenize:N7e};function N7e(e,t,n){const i=this;let o,s,r;return l;function l(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),a}function a(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),M):j===63?(e.consume(j),A):Su(j)?(e.consume(j),C):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),s=0,m):Su(j)?(e.consume(j),b):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),f):Un(j)?(r=d,R(j)):(e.consume(j),d)}function f(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?O(j):j===45?f(j):d(j)}function m(j){const Q="CDATA[";return j===Q.charCodeAt(s++)?(e.consume(j),s===Q.length?g:m):n(j)}function g(j){return j===null?n(j):j===93?(e.consume(j),v):Un(j)?(r=g,R(j)):(e.consume(j),g)}function v(j){return j===93?(e.consume(j),y):g(j)}function y(j){return j===62?O(j):j===93?(e.consume(j),y):g(j)}function b(j){return j===null||j===62?O(j):Un(j)?(r=b,R(j)):(e.consume(j),b)}function A(j){return j===null?n(j):j===63?(e.consume(j),w):Un(j)?(r=A,R(j)):(e.consume(j),A)}function w(j){return j===62?O(j):A(j)}function M(j){return Su(j)?(e.consume(j),N):n(j)}function N(j){return j===45||za(j)?(e.consume(j),N):T(j)}function T(j){return Un(j)?(r=T,R(j)):Ei(j)?(e.consume(j),T):O(j)}function C(j){return j===45||za(j)?(e.consume(j),C):j===47||j===62||Cl(j)?I(j):n(j)}function I(j){return j===47?(e.consume(j),O):j===58||j===95||Su(j)?(e.consume(j),S):Un(j)?(r=I,R(j)):Ei(j)?(e.consume(j),I):O(j)}function S(j){return j===45||j===46||j===58||j===95||za(j)?(e.consume(j),S):E(j)}function E(j){return j===61?(e.consume(j),_):Un(j)?(r=E,R(j)):Ei(j)?(e.consume(j),E):I(j)}function _(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),o=j,F):Un(j)?(r=_,R(j)):Ei(j)?(e.consume(j),_):(e.consume(j),q)}function F(j){return j===o?(e.consume(j),o=void 0,P):j===null?n(j):Un(j)?(r=F,R(j)):(e.consume(j),F)}function q(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Cl(j)?I(j):(e.consume(j),q)}function P(j){return j===47||j===62||Cl(j)?I(j):n(j)}function O(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function R(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),z}function z(j){return Ei(j)?fo(e,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):H(j)}function H(j){return e.enter("htmlTextData"),r(j)}}const Bx={name:"labelEnd",resolveAll:R7e,resolveTo:O7e,tokenize:$7e},D7e={tokenize:P7e},F7e={tokenize:z7e},B7e={tokenize:j7e};function R7e(e){let t=-1;const n=[];for(;++t=3&&(u===null||Un(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===o?(e.consume(u),i++,a):(e.exit("thematicBreakSequence"),Ei(u)?fo(e,l,"whitespace")(u):l(u))}}const ll={continuation:{tokenize:Y7e},exit:X7e,name:"list",tokenize:Q7e},Z7e={partial:!0,tokenize:exe},G7e={partial:!0,tokenize:J7e};function Q7e(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,r=0;return l;function l(h){const m=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:AA(h)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(k9,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return AA(h)&&++r<10?(e.consume(h),a):(!i.interrupt||r<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(S4,i.interrupt?n:c,e.attempt(Z7e,f,d))}function c(h){return i.containerState.initialBlankLine=!0,s++,f(h)}function d(h){return Ei(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Y7e(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(S4,o,s);function o(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,fo(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!Ei(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(G7e,t,r)(l))}function r(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,fo(e,e.attempt(ll,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function J7e(e,t,n){const i=this;return fo(e,o,"listItemIndent",i.containerState.size+1);function o(s){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(s):n(s)}}function X7e(e){e.exit(this.containerState.type)}function exe(e,t,n){const i=this;return fo(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const r=i.events[i.events.length-1];return!Ei(s)&&r&&r[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const rF={name:"setextUnderline",resolveTo:txe,tokenize:nxe};function txe(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const r={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",r,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=r,e.push(["exit",r,t]),e}function nxe(e,t,n){const i=this;let o;return s;function s(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),o=u,r(u)):n(u)}function r(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Ei(u)?fo(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||Un(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ixe={tokenize:oxe};function oxe(e){const t=this,n=e.attempt(S4,i,e.attempt(this.parser.constructs.flowInitial,o,fo(e,e.attempt(this.parser.constructs.flow,o,e.attempt(u7e,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sxe={resolveAll:Xq()},rxe=Jq("string"),lxe=Jq("text");function Jq(e){return{resolveAll:Xq(e==="text"?axe:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,r,l);return r;function r(c){return u(c)?s(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const d=o[c];let f=-1;if(d)for(;++f-1){const l=r[0];typeof l=="string"?r[0]=l.slice(i):r.shift()}s>0&&r.push(e[o].slice(0,s))}return r}function wxe(e,t){let n=-1;const i=[];let o;for(;++n>1}};Gs.from=function(e){if(e instanceof Gs)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Gs(t)};function eU(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(i),s=t.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){let r=o.text,l=s.text,a=0;for(;r[a]==l[a];a++)n++;return a&&a0&&f>0&&u[d-1]==c[f-1];)d--,f--,n--,i--;return d&&f&&d=56320&&e<57344}function iU(e){return e>=55296&&e<56320}class nn{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;it&&i(a,o+l,s||null,r)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,n-c),i,o+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,o){let s="",r=!0;return this.nodesBetween(t,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&i&&(r?r=!1:s+=i),s+=u},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);st)for(let s=0,r=0;rt&&((rn)&&(l.isText?l=l.cut(Math.max(0,t-r),Math.min(l.text.length,n-r)):l=l.cut(Math.max(0,t-r-1),Math.min(l.content.size,n-r-1))),i.push(l),o+=l.nodeSize),r=a}return new nn(i,o)}cutByIndex(t,n){return t==n?nn.empty:t==0&&n==this.content.length?this:new nn(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[t]=n,new nn(o,s)}addToStart(t){return new nn([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new nn(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=t)return s==t?My(n+1,s):My(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return nn.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return nn.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return nn.empty;let n,i=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;ni.type.rank-o.type.rank),n}}Pi.none=[];class av extends Error{}class mn{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=sU(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return i&&new mn(i,this.openStart,this.openEnd)}removeBetween(t,n){return new mn(oU(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return mn.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new mn(nn.fromJSON(t,n.content),i,o)}static maxOpen(t,n=!0){let i=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new mn(t,i,o)}}mn.empty=new mn(nn.empty,0,0);function oU(e,t,n){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i),{index:r,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(r).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=r)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(oU(s.content,t-o-1,n-o-1)))}function sU(e,t,n,i,o,s){let{index:r,offset:l}=e.findIndex(t),a=e.maybeChild(r);if(l==t||a.isText)return s&&i<=0&&o<=0&&!s.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=sU(a.content,t-l-1,n,r==0?i-1:0,r==e.childCount-1?o-1:0,a);return u&&e.replaceChild(r,a.copy(u))}function Sxe(e,t,n){if(n.openStart>e.depth)throw new av("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new av("Inconsistent open depths");return rU(e,t,n,0)}function rU(e,t,n,i){let o=e.index(i),s=e.node(i);if(o==t.index(i)&&i=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function A0(e,t,n,i){let o=(t||e).node(n),s=0,r=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(_h(e.nodeAfter,i),s++));for(let l=s;lo&&SA(e,t,o+1),r=i.depth>o&&SA(n,i,o+1),l=[];return A0(null,e,o,l),s&&r&&t.index(o)==n.index(o)?(lU(s,r),_h(Mh(s,aU(e,t,n,i,o+1)),l)):(s&&_h(Mh(s,Vk(e,t,o+1)),l),A0(t,n,o,l),r&&_h(Mh(r,Vk(n,i,o+1)),l)),A0(i,null,o,l),new nn(l)}function Vk(e,t,n){let i=[];if(A0(null,e,n,i),e.depth>n){let o=SA(e,t,n+1);_h(Mh(o,Vk(e,t,n+1)),i)}return A0(t,null,n,i),new nn(i)}function _xe(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy(nn.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class uv{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=t.child(n);return i?t.child(n).cut(i):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new Txe(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let r=t;;){let{index:l,offset:a}=r.content.findIndex(s),u=s-a;if(i.push(r,l,o+a),!u||(r=r.child(l),r.isText))break;s=u-1,o+=a+1}return new uv(n,i,s)}static resolveCached(t,n){let i=aF.get(t);if(i)for(let s=0;st&&this.nodesBetween(t,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),uU(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=nn.empty,o=0,s=i.childCount){let r=this.contentMatchAt(t).matchFragment(i,o,s),l=r&&r.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let o=nn.fromJSON(t,n.content),s=t.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};Ih.prototype.text=void 0;class Kk extends Ih{constructor(t,n,i,o){if(super(t,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):uU(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Kk(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Kk(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function uU(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Wh{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new Lxe(t,n);if(i.next==null)return Wh.empty;let o=cU(i);i.next&&i.err("Unexpected trailing text");let s=$xe(Oxe(o));return Pxe(s,i),s}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let o=0;o{let s=o+(i.validEnd?"*":" ")+" ";for(let r=0;r"+t.indexOf(i.next[r].next);return s}).join(` +`)}}Wh.empty=new Wh(!0);class Lxe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function cU(e){let t=[];do t.push(Nxe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Nxe(e){let t=[];do t.push(Dxe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Dxe(e){let t=Rxe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Fxe(e,t);else break;return t}function uF(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Fxe(e,t){let n=uF(e),i=n;return e.eat(",")&&(e.next!="}"?i=uF(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function Bxe(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let o=[];for(let s in n){let r=n[s];r.isInGroup(t)&&o.push(r)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function Rxe(e){if(e.eat("(")){let t=cU(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=Bxe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Oxe(e){let t=[[]];return o(s(e,0),n()),t;function n(){return t.push([])-1}function i(r,l,a){let u={term:a,to:l};return t[r].push(u),u}function o(r,l){r.forEach(a=>a.to=l)}function s(r,l){if(r.type=="choice")return r.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(r.type=="seq")for(let a=0;;a++){let u=s(r.exprs[a],l);if(a==r.exprs.length-1)return u;o(u,l=n())}else if(r.type=="star"){let a=n();return i(l,a),o(s(r.expr,a),a),[i(a)]}else if(r.type=="plus"){let a=n();return o(s(r.expr,l),a),o(s(r.expr,a),a),[i(a)]}else{if(r.type=="opt")return[i(l)].concat(s(r.expr,l));if(r.type=="range"){let a=l;for(let u=0;u{e[r].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=t[i.join(",")]=new Wh(i.indexOf(e.length-1)>-1);for(let r=0;r-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:hU(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ih(this,this.computeAttrs(t),nn.from(n),Pi.setFrom(i))}createChecked(t=null,n,i){return n=nn.from(n),this.checkContent(n),new Ih(this,this.computeAttrs(t),n,Pi.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=nn.from(n),n.size){let r=this.contentMatch.fillBefore(n);if(!r)return null;n=r.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(nn.empty,!0);return s?new Ih(this,t,n.append(s),Pi.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;ni[s]=new gU(s,n,r));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function zxe(e,t,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${s}`)}}class jxe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?zxe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class _4{constructor(t,n,i,o){this.name=t,this.rank=n,this.schema=i,this.spec=o,this.attrs=mU(t,o.attrs),this.excluded=null;let s=fU(this.attrs);this.instance=s?new Pi(this,s):null}create(t=null){return!t&&this.instance?this.instance:new Pi(this,hU(this.attrs,t))}static compile(t,n){let i=Object.create(null),o=0;return t.forEach((s,r)=>i[s]=new _4(s,o++,n,r)),i}removeFromSet(t){for(var n=0;n-1}}class Hxe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=Gs.from(t.nodes),n.marks=Gs.from(t.marks||{}),this.nodes=dF.compile(this.spec.nodes,this),this.marks=_4.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],r=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=i[r]||(i[r]=Wh.parse(r,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?fF(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],r=s.spec.excludes;s.excluded=r==null?[s]:r==""?[]:fF(this,r.split(" "))}this.nodeFromJSON=o=>Ih.fromJSON(this,o),this.markFromJSON=o=>Pi.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof dF){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,o)}text(t,n){let i=this.nodes.text;return new Kk(i,i.defaultAttrs,t,Pi.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function fF(e,t){let n=[];for(let i=0;i-1)&&n.push(r=a)}if(!r)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function Wxe(e){return e.tag!=null}function qxe(e){return e.style!=null}let vU=class MA{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(Wxe(o))this.tags.push(o);else if(qxe(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=t.nodes[o.node];return s.contentMatch.matchType(s)})}parse(t,n={}){let i=new pF(this,n,!1);return i.addAll(t,Pi.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new pF(this,n,!0);return i.addAll(t,Pi.none,n.from,n.to),mn.maxOpen(i.finish())}matchTag(t,n,i){for(let o=i?this.tags.indexOf(i)+1:0;ot.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(r.getAttrs){let a=r.getAttrs(n);if(a===!1)continue;r.attrs=a||void 0}return r}}}static schemaRules(t){let n=[];function i(o){let s=o.priority==null?50:o.priority,r=0;for(;r{i(r=mF(r)),r.mark||r.ignore||r.clearMark||(r.mark=o)})}for(let o in t.nodes){let s=t.nodes[o].spec.parseDOM;s&&s.forEach(r=>{i(r=mF(r)),r.node||r.ignore||r.mark||(r.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new MA(t,MA.schemaRules(t)))}};const yU={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Uxe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},kU={ol:!0,ul:!0},cv=1,IA=2,x0=4;function hF(e,t,n){return t!=null?(t?cv:0)|(t==="full"?IA:0):e&&e.whitespace=="pre"?cv|IA:n&~x0}class Iy{constructor(t,n,i,o,s,r){this.type=t,this.attrs=n,this.marks=i,this.solid=o,this.options=r,this.content=[],this.activeMarks=Pi.none,this.match=s||(r&x0?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(nn.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(t.type))?(this.match=i,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&cv)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=nn.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(nn.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!yU.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class pF{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,r=hF(null,n.preserveWhitespace,0)|(i?x0:0);o?s=new Iy(o.type,o.attrs,Pi.none,!0,n.topMatch||o.type.contentMatch,r):i?s=new Iy(null,null,Pi.none,!0,null,r):s=new Iy(t.schema.topNodeType,null,Pi.none,!0,null,r),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,o=this.top,s=o.options&IA?"full":this.localPreserveWS||(o.options&cv)>0,{schema:r}=this.parser;if(s==="full"||o.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` +`);else if(r.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(r.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(t,n,i,o){let s,r;if(n.node)if(r=this.parser.schema.nodes[n.node],r.isLeaf)this.insertNode(r.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let a=this.enter(r,n.attrs||null,i,n.preserveWhitespace);a&&(s=!0,i=a)}else{let a=this.parser.schema.marks[n.mark];i=i.concat(a.create(n.attrs))}let l=this.top;if(r&&r.isLeaf)this.findInside(t);else if(o)this.addElement(t,i,o);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,i,!1));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a,i),this.findAround(t,a,!1)}s&&this.sync(l)&&this.open--}addAll(t,n,i,o){let s=i||0;for(let r=i?t.childNodes[i]:t.firstChild,l=o==null?null:t.childNodes[o];r!=l;r=r.nextSibling,++s)this.findAtPoint(t,s),this.addDOM(r,n);this.findAtPoint(t,s)}findPlace(t,n,i){let o,s;for(let r=this.open,l=0;r>=0;r--){let a=this.nodes[r],u=a.findWrapping(t);if(u&&(!o||o.length>u.length+l)&&(o=u,s=a,!u.length))break;if(a.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let r=0;r(r.type?r.type.allowsMarkType(u.type):gF(u.type,t))?(a=u.addToSet(a),!1):!0),this.nodes.push(new Iy(t,n,a,o,null,l)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=cv)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)t+=i[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),r=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(r(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:i&&a>=s?i.node(a-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return r(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function Vxe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&kU.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function Kxe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function mF(e){let t={};for(let n in e)t[n]=e[n];return t}function gF(e,t){let n=t.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],r=l=>{s.push(l);for(let a=0;a{if(s.length||r.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(t.marks[o],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,n,i={}){let o=this.marks[t.type.name];return o&&b9(Ty(i),o(t,n),null,t.attrs)}static renderSpec(t,n,i=null,o){return typeof n=="string"?{dom:t.createTextNode(n)}:b9(t,n,i,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Fu(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=vF(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return vF(t.marks)}}function vF(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function Ty(e){return e.document||window.document}const yF=new WeakMap;function Zxe(e){let t=yF.get(e);return t===void 0&&yF.set(e,t=Gxe(e)),t}function Gxe(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let r=o.indexOf(" ");r>0&&(n=o.slice(0,r),o=o.slice(r+1));let l,a=n?e.createElementNS(n,o):e.createElement(o),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):d=="style"&&a.style?a.style.cssText=u[d]:a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(e.createTextNode(f));else{let{dom:h,contentDOM:m}=b9(e,f,n,i);if(a.appendChild(h),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:a,contentDOM:l}}const bU=65535,wU=Math.pow(2,16);function Qxe(e,t){return e+t*wU}function kF(e){return e&bU}function Yxe(e){return(e-(e&bU))/wU}const CU=1,AU=2,w9=4,xU=8;class TA{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&xU)>0}get deletedBefore(){return(this.delInfo&(CU|w9))>0}get deletedAfter(){return(this.delInfo&(AU|w9))>0}get deletedAcross(){return(this.delInfo&w9)>0}}class Ol{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Ol.empty)return Ol.empty}recover(t){let n=0,i=kF(t);if(!this.inverted)for(let o=0;ot)break;let u=this.ranges[l+s],c=this.ranges[l+r],d=a+u;if(t<=d){let f=u?t==a?-1:t==d?1:n:n,h=a+o+(f<0?0:c);if(i)return h;let m=t==(n<0?a:d)?null:Qxe(l/3,t-a),g=t==a?AU:t==d?CU:w9;return(n<0?t!=a:t!=d)&&(g|=xU),new TA(h,g,m)}o+=c-u}return i?t+o:new TA(t+o,0,null)}touches(t,n){let i=0,o=kF(n),s=this.inverted?2:1,r=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+s],c=a+u;if(t<=c&&l==o*3)return!0;i+=this.ranges[l+r]-u}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o=0;n--){let o=t.getMirror(n);this.appendMap(t._maps[n].invert(),o!=null&&o>n?i-o-1:void 0)}}invert(){let t=new dv;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let i=this.from;is&&a!r.isAtom||!l.type.allowsMarkType(this.mark.type)?r:r.mark(this.mark.addToSet(r.marks)),o),n.openStart,n.openEnd);return ds.fromReplace(t,this.from,this.to,s)}invert(){return new Tu(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new kd(n.pos,i.pos,this.mark)}merge(t){return t instanceof kd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new kd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new kd(n.from,n.to,t.markFromJSON(n.mark))}}_r.jsonID("addMark",kd);class Tu extends _r{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new mn(Rx(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return ds.fromReplace(t,this.from,this.to,i)}invert(){return new kd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Tu(n.pos,i.pos,this.mark)}merge(t){return t instanceof Tu&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Tu(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tu(n.from,n.to,t.markFromJSON(n.mark))}}_r.jsonID("removeMark",Tu);class bd extends _r{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ds.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ds.fromReplace(t,this.pos,this.pos+1,new mn(nn.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;oi.pos?null:new ql(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ql(n.from,n.to,n.gapFrom,n.gapTo,mn.fromJSON(t,n.slice),n.insert,!!n.structure)}}_r.jsonID("replaceAround",ql);function EA(e,t,n){let i=e.resolve(t),o=n-t,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let r=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function Jxe(e,t,n,i){let o=[],s=[],r,l;e.doc.nodesBetween(t,n,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!i.isInSet(d)&&c.type.allowsMarkType(i.type)){let f=Math.max(u,t),h=Math.min(u+a.nodeSize,n),m=i.addToSet(d);for(let g=0;ge.step(a)),s.forEach(a=>e.step(a))}function Xxe(e,t,n,i){let o=[],s=0;e.doc.nodesBetween(t,n,(r,l)=>{if(!r.isInline)return;s++;let a=null;if(i instanceof _4){let u=r.marks,c;for(;c=i.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else i?i.isInSet(r.marks)&&(a=[i]):a=r.marks;if(a&&a.length){let u=Math.min(l+r.nodeSize,n);for(let c=0;ce.step(new Tu(r.from,r.to,r.style)))}function Ox(e,t,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),r=[],l=t+1;for(let a=0;a=0;a--)e.step(r[a])}function eSe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $x(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let i=e.depth,o=0,s=0;;--i){let r=e.$from.node(i),l=e.$from.index(i)+o,a=e.$to.indexAfter(i)-s;if(in;m--)g||i.index(m)>0?(g=!0,c=nn.from(i.node(m).copy(c)),d++):a--;let f=nn.empty,h=0;for(let m=s,g=!1;m>n;m--)g||o.after(m+1)=0;r--){if(i.size){let l=n[r].type.contentMatch.matchFragment(i);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=nn.from(n[r].type.create(n[r].attrs,i))}let o=t.start,s=t.end;e.step(new ql(o,s,o,s,new mn(i,0,0),n.length,!0))}function iSe(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(r,l)=>{let a=typeof o=="function"?o(r):o;if(r.isTextblock&&!r.hasMarkup(i,a)&&oSe(e.doc,e.mapping.slice(s).map(l),i)){let u=null;if(i.schema.linebreakReplacement){let h=i.whitespace=="pre",m=!!i.contentMatch.matchType(i.schema.linebreakReplacement);h&&!m?u=!1:!h&&m&&(u=!0)}u===!1&&_U(e,r,l,s),Ox(e,e.mapping.slice(s).map(l,1),i,void 0,u===null);let c=e.mapping.slice(s),d=c.map(l,1),f=c.map(l+r.nodeSize,1);return e.step(new ql(d,f,d+1,f-1,new mn(nn.from(i.create(a,null,r.marks)),0,0),1,!0)),u===!0&&SU(e,r,l,s),!1}})}function SU(e,t,n,i){t.forEach((o,s)=>{if(o.isText){let r,l=/\r?\n|\r/g;for(;r=l.exec(o.text);){let a=e.mapping.slice(i).map(n+1+s+r.index);e.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create())}}})}function _U(e,t,n,i){t.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let r=e.mapping.slice(i).map(n+1+s);e.replaceWith(r,r+1,t.type.schema.text(` +`))}})}function oSe(e,t,n){let i=e.resolve(t),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}function sSe(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let r=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,r);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ql(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new mn(nn.from(r),0,0),1,!0))}function C9(e,t,n=1,i){let o=e.resolve(t),s=o.depth-n,r=i&&i[i.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!r.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,c=n-2;u>s;u--,c--){let d=o.node(u),f=o.index(u);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),m=i&&i[c+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let g=i&&i[c]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(s),a=i&&i[0];return o.node(s).canReplaceWith(l,l,a?a.type:o.node(s+1).type)}function rSe(e,t,n=1,i){let o=e.doc.resolve(t),s=nn.empty,r=nn.empty;for(let l=o.depth,a=o.depth-n,u=n-1;l>a;l--,u--){s=nn.from(o.node(l).copy(s));let c=i&&i[u];r=nn.from(c?c.type.create(c.attrs,r):o.node(l).copy(r))}e.step(new $s(t,t,new mn(s.append(r),n,n),!0))}function MU(e,t){let n=e.resolve(t),i=n.index();return aSe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function lSe(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let o=0;o=0;o--){let s=i.index(o);if(i.node(o).canReplaceWith(s,s,n))return i.before(o+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let s=i.indexAfter(o);if(i.node(o).canReplaceWith(s,s,n))return i.after(o+1);if(s=0;r--){let l=r==i.depth?0:i.pos<=(i.start(r+1)+i.end(r+1))/2?-1:1,a=i.index(r)+(l>0?1:0),u=i.node(r),c=!1;if(s==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?i.pos:l<0?i.before(r+1):i.after(r+1)}return null}function Px(e,t,n=t,i=mn.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return IU(o,s,i)?new $s(t,n,i):new fSe(o,s,i).fit()}function IU(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class fSe{constructor(t,n,i){this.$from=t,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=nn.empty;for(let o=0;o<=t.depth;o++){let s=t.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(t.indexAfter(o))})}for(let o=t.depth;o>0;o--)this.placed=nn.from(t.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(t<0?this.$to:i.doc.resolve(t));if(!o)return null;let s=this.placed,r=i.depth,l=o.depth;for(;r&&l&&s.childCount==1;)s=s.firstChild.content,r--,l--;let a=new mn(s,r,l);return t>-1?new ql(i.pos,t,this.$to.pos,this.$to.end(),a,n):a.size||i.pos!=this.$to.pos?new $s(i.pos,o.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,o=this.unplaced.openEnd;i1&&(o=0),s.type.spec.isolating&&o<=i){t=i;break}n=s.content}for(let n=1;n<=2;n++)for(let i=n==1?t:this.unplaced.openStart;i>=0;i--){let o,s=null;i?(s=y5(this.unplaced.content,i-1).firstChild,o=s.content):o=this.unplaced.content;let r=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(n==1&&(r?u.matchType(r.type)||(d=u.fillBefore(nn.from(r),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:l,parent:s,inject:d};if(n==2&&r&&(c=u.findWrapping(r.type)))return{sliceDepth:i,frontierDepth:l,parent:s,wrap:c};if(s&&u.matchType(s.type))break}}}openMore(){let{content:t,openStart:n,openEnd:i}=this.unplaced,o=y5(t,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new mn(t,n+1,Math.max(i,o.size+n>=t.size-i?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:i}=this.unplaced,o=y5(t,n);if(o.childCount<=1&&n>0){let s=t.size-n<=n+o.size;this.unplaced=new mn(Rg(t,n-1,1),n-1,s?n-1:i)}else this.unplaced=new mn(Rg(t,n,1),n,i)}placeNodes({sliceDepth:t,frontierDepth:n,parent:i,inject:o,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let g=0;g1||a==0||g.content.size)&&(d=v,c.push(TU(g.mark(f.allowedMarks(g.marks)),u==1?a:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=Og(this.placed,n,nn.from(c)),this.frontier[n].match=d,m&&h<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=l;g1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:i,type:o}=this.frontier[n],s=n=0;l--){let{match:a,type:u}=this.frontier[l],c=k5(t,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:n,fit:r,move:s?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Og(this.placed,n.depth,n.fit)),t=n.move;for(let i=n.depth+1;i<=t.depth;i++){let o=t.node(i),s=o.type.contentMatch.fillBefore(o.content,!0,t.index(i));this.openFrontierNode(o.type,o.attrs,s)}return t}openFrontierNode(t,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=Og(this.placed,this.depth,nn.from(t.create(n,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(nn.empty,!0);n.childCount&&(this.placed=Og(this.placed,this.frontier.length,n))}}function Rg(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Rg(e.firstChild.content,t-1,n)))}function Og(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Og(e.lastChild.content,t-1,n)))}function y5(e,t){for(let n=0;n1&&(i=i.replaceChild(0,TU(i.firstChild,t-1,i.childCount==1?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(nn.empty,!0)))),e.copy(i)}function k5(e,t,n,i,o){let s=e.node(t),r=o?e.indexAfter(t):e.index(t);if(r==s.childCount&&!n.compatibleContent(s.type))return null;let l=i.fillBefore(s.content,!0,r);return l&&!hSe(n,s.content,r)?l:null}function hSe(e,t,n){for(let i=n;i0;f--,h--){let m=o.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;r.indexOf(f)>-1?l=f:o.before(f)==h&&r.splice(1,0,-f)}let a=r.indexOf(l),u=[],c=i.openStart;for(let f=i.content,h=0;;h++){let m=f.firstChild;if(u.push(m),h==i.openStart)break;f=m.content}for(let f=c-1;f>=0;f--){let h=u[f],m=pSe(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))c=f;else if(m||!h.type.isTextblock)break}for(let f=i.openStart;f>=0;f--){let h=(f+c+1)%(i.openStart+1),m=u[h];if(m)for(let g=0;g=0&&(e.replace(t,n,i),!(e.steps.length>d));f--){let h=r[f];h<0||(t=o.before(h),n=s.after(h))}}function EU(e,t,n,i,o){if(ti){let s=o.contentMatchAt(0),r=s.fillBefore(e).append(e);e=r.append(s.matchFragment(r).fillBefore(nn.empty,!0))}return e}function gSe(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=cSe(e.doc,t,i.type);o!=null&&(t=n=o)}e.replaceRange(t,n,new mn(nn.from(i),0,0))}function vSe(e,t,n){let i=e.doc.resolve(t),o=e.doc.resolve(n);if(i.parent.isTextblock&&o.parent.isTextblock&&i.start()!=o.start()&&i.parentOffset==0&&o.parentOffset==0){let r=i.sharedDepth(n),l=!1;for(let a=i.depth;a>r;a--)i.node(a).type.spec.isolating&&(l=!0);for(let a=o.depth;a>r;a--)o.node(a).type.spec.isolating&&(l=!0);if(!l){for(let a=i.depth;a>0&&t==i.start(a);a--)t=i.before(a);for(let a=o.depth;a>0&&n==o.start(a);a--)n=o.before(a);i=e.doc.resolve(t),o=e.doc.resolve(n)}}let s=LU(i,o);for(let r=0;r0&&(a||i.node(l-1).canReplace(i.index(l-1),o.indexAfter(l-1))))return e.delete(i.before(l),o.after(l))}for(let r=1;r<=i.depth&&r<=o.depth;r++)if(t-i.start(r)==i.depth-r&&n>i.end(r)&&o.end(r)-n!=o.depth-r&&i.start(r-1)==o.start(r-1)&&i.node(r-1).canReplace(i.index(r-1),o.index(r-1)))return e.delete(i.before(r),n);e.delete(t,n)}function LU(e,t){let n=[],i=Math.min(e.depth,t.depth);for(let o=i;o>=0;o--){let s=e.start(o);if(st.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(s==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==s-1)&&n.push(o)}return n}class E1 extends _r{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return ds.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return ds.fromReplace(t,this.pos,this.pos+1,new mn(nn.from(o),0,n.isLeaf?0:1))}getMap(){return Ol.empty}invert(t){return new E1(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new E1(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new E1(n.pos,n.attr,n.value)}}_r.jsonID("attr",E1);class fv extends _r{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return ds.ok(i)}getMap(){return Ol.empty}invert(t){return new fv(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new fv(n.attr,n.value)}}_r.jsonID("docAttr",fv);let Y1=class extends Error{};Y1=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Y1.prototype=Object.create(Error.prototype);Y1.prototype.constructor=Y1;Y1.prototype.name="TransformError";class ySe{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new dv}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Y1(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let i=0;i{t=Math.min(t,l),n=Math.max(n,a)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,i=mn.empty){let o=Px(this.doc,t,n,i);return o&&this.step(o),this}replaceWith(t,n,i){return this.replace(t,n,new mn(nn.from(i),0,0))}delete(t,n){return this.replace(t,n,mn.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,i){return mSe(this,t,n,i),this}replaceRangeWith(t,n,i){return gSe(this,t,n,i),this}deleteRange(t,n){return vSe(this,t,n),this}lift(t,n){return tSe(this,t,n),this}join(t,n=1){return uSe(this,t,n),this}wrap(t,n){return nSe(this,t,n),this}setBlockType(t,n=t,i,o=null){return iSe(this,t,n,i,o),this}setNodeMarkup(t,n,i=null,o){return sSe(this,t,n,i,o),this}setNodeAttribute(t,n,i){return this.step(new E1(t,n,i)),this}setDocAttribute(t,n){return this.step(new fv(t,n)),this}addNodeMark(t,n){return this.step(new bd(t,n)),this}removeNodeMark(t,n){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(n instanceof Pi)n.isInSet(i.marks)&&this.step(new qh(t,n));else{let o=i.marks,s,r=[];for(;s=n.isInSet(o);)r.push(new qh(t,s)),o=s.removeFromSet(o);for(let l=r.length-1;l>=0;l--)this.step(r[l])}return this}split(t,n=1,i){return rSe(this,t,n,i),this}addMark(t,n,i){return Jxe(this,t,n,i),this}removeMark(t,n,i){return Xxe(this,t,n,i),this}clearIncompatible(t,n,i){return Ox(this,t,n,i),this}}const b5=Object.create(null);class Vi{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new kSe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;s--){let r=n<0?Kp(t.node(0),t.node(s),t.before(s+1),t.index(s),n,i):Kp(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,n,i);if(r)return r}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Ul(t.node(0))}static atStart(t){return Kp(t,t,0,0,1)||new Ul(t)}static atEnd(t){return Kp(t,t,t.content.size,t.childCount,-1)||new Ul(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=b5[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in b5)throw new RangeError("Duplicate use of selection JSON ID "+t);return b5[t]=n,n.prototype.jsonID=t,n}getBookmark(){return li.between(this.$anchor,this.$head).getBookmark()}}Vi.prototype.visible=!0;class kSe{constructor(t,n){this.$from=t,this.$to=n}}let bF=!1;function wF(e){!bF&&!e.parent.inlineContent&&(bF=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class li extends Vi{constructor(t,n=t){wF(t),wF(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Vi.near(i);let o=t.resolve(n.map(this.anchor));return new li(o.parent.inlineContent?o:i,i)}replace(t,n=mn.empty){if(super.replace(t,n),n==mn.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof li&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new M4(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new li(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let o=t.resolve(n);return new this(o,i==n?o:t.resolve(i))}static between(t,n,i){let o=t.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=Vi.findFrom(n,i,!0)||Vi.findFrom(n,-i,!0);if(s)n=s.$head;else return Vi.near(n,i)}return t.parent.inlineContent||(o==0?t=n:(t=(Vi.findFrom(t,-i,!0)||Vi.findFrom(t,i,!0)).$anchor,t.pos0?0:1);o>0?r=0;r+=o){let l=t.child(r);if(l.isAtom){if(!s&&Xn.isSelectable(l))return Xn.create(e,n-(o<0?l.nodeSize:0))}else{let a=Kp(e,l,n+o,o<0?l.childCount:0,o,s);if(a)return a}n+=l.nodeSize*o}return null}function CF(e,t,n){let i=e.steps.length-1;if(i{r==null&&(r=c)}),e.setSelection(Vi.near(e.doc.resolve(r),n))}const AF=1,Ey=2,xF=4;class wSe extends ySe{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ey,this}ensureMarks(t){return Pi.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ey)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Ey,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let i=this.selection;return n&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Pi.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,i){let o=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(i==null&&(i=n),!t)return this.deleteRange(n,i);let s=this.storedMarks;if(!s){let r=this.doc.resolve(n);s=i==n?r.marks():r.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,o.text(t,s)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(Vi.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=xF,this}get scrolledIntoView(){return(this.updated&xF)>0}}function SF(e,t){return!t||!e?e:e.bind(t)}class $g{constructor(t,n,i){this.name=t,this.init=SF(n.init,i),this.apply=SF(n.apply,i)}}const CSe=[new $g("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new $g("selection",{init(e,t){return e.selection||Vi.atStart(t.doc)},apply(e){return e.selection}}),new $g("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new $g("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class w5{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=CSe.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new $g(i.key,i.spec.state,i))})}}class ch{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let i=0;ii.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[i],s=o.spec.state;s&&s.toJSON&&(n[i]=s.toJSON.call(o,this[o.key]))}return n}static fromJSON(t,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new w5(t.schema,t.plugins),s=new ch(o);return o.fields.forEach(r=>{if(r.name=="doc")s.doc=Ih.fromJSON(t.schema,n.doc);else if(r.name=="selection")s.selection=Vi.fromJSON(s.doc,n.selection);else if(r.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let l in i){let a=i[l],u=a.spec.state;if(a.key==r.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[r.name]=u.fromJSON.call(a,t,n[l],s);return}}s[r.name]=r.init(t,s)}}),s}}function NU(e,t,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(t):i=="handleDOMEvents"&&(o=NU(o,t,{})),n[i]=o}return n}class Am{constructor(t){this.spec=t,this.props={},t.props&&NU(t.props,this,this.props),this.key=t.key?t.key.key:DU("plugin")}getState(t){return t[this.key]}}const C5=Object.create(null);function DU(e){return e in C5?e+"$"+ ++C5[e]:(C5[e]=0,e+"$")}class jx{constructor(t="key"){this.key=DU(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const LA=` + + + + +`,FU=` + + + + +`,BU='',RU=` + + + +`,OU=` + + +`,$U='',PU=` + + +`,zU=` + + +`,jU=` + + +`,ASe='',xSe='',SSe='',_Se='',MSe='',ISe={sm:14,md:16,lg:20},TSe={file:LA,folder:FU,skill:BU,copy:RU,check:OU,"external-link":$U,target:PU,"file-edit":zU,close:jU,attachment:ASe,image:xSe,video:SSe,fullscreen:_Se,quote:MSe};function Zr(e,t="md"){const n=ISe[t];return TSe[e].replace(/]*>/,i=>i.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^
      ([\s\S]*?)<\/summary>/,Xre=/([\s\S]*?)<\/resume_hint>/,f3=/]*)>|<\/subagent>/g,ele="",xS=/(completed|failed|aborted):\s*(\d+)/g,SS=/([a-z_]+)="([^"]*)"/g;function tle(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function nle(e){const t={};SS.lastIndex=0;let n;for(;(n=SS.exec(e))!==null;)t[n[1]]=tle(n[2]);return t}function ile(e){const t={completed:0,failed:0,aborted:0};xS.lastIndex=0;let n;for(;(n=xS.exec(e))!==null;){const i=n[1];t[i]=Number(n[2])}return t}function ole(e,t){const n=nle(e);return{outcome:n.outcome??"completed",item:n.item,agentId:n.agent_id,mode:n.mode,state:n.state,body:t.trim()}}function sle(e){const t=[],n=[];f3.lastIndex=0;let i;for(;(i=f3.exec(e))!==null;)if(i[0]===ele){if(n.length===0)continue;const o=n.pop();o&&n.length===0&&t.push(ole(o.attrs,e.slice(o.bodyStart,i.index)))}else n.length===0?n.push({attrs:i[1]??"",bodyStart:f3.lastIndex}):n.push(null);return t}function rle(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` -`):e;if(!t.includes(""))return null;const n=Jre.exec(t)?.[1]?.trim()??"",{completed:i,failed:o,aborted:s}=ile(n),r=Xre.exec(t)?.[1]?.trim(),l=sle(t),a=i+o+s;return{summary:n,completed:i,failed:o,aborted:s,total:a>0?a:l.length,subagents:l,resumeHint:r}}const lle=3,ale="Use TaskOutput with one of the task_id values above to read the full output.";function Td(e,t){return new RegExp(`^${t}: (.+)$`,"m").exec(e)?.[1]}function ule(e,t){const n=Number(Td(e,t)??0);return Number.isFinite(n)?n:0}function NB(e,t){return e.match(t)?.length??0}function _S(e,t,n){const i=new RegExp(`^\\[${t}\\]$`,"gm"),o=[];let s;for(;(s=i.exec(e))!==null;)s.index>=n&&o.push(s.index);return o}function MS(e,t){return t>=2&&e[t-1]===` -`&&e[t-2]===` -`}function IS(e,t,n){const i=e.slice(t+n.length+2),o=/^\[/m.exec(i);return(o===null?i:i.slice(0,o.index)).trim()}function cle(e){return e.endsWith(ale)}function dle(e){const t=Td(e,"active_background_tasks");if(t===void 0)return!1;const n=Number(t);return Number.isFinite(n)?NB(e,/^task_id: /gm)===n:!1}function fle(e,t){return[...e.matchAll(/^description: (.+)$/gm)].map(i=>i[1]??"").slice(0,Math.min(lle,t))}function hle(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` -`):e,n=/^\[/m.exec(t),i=n===null?t:t.slice(0,n.index),o=Td(i,"wait_status");if(o!=="completed"&&o!=="timed_out"&&o!=="no_tasks")return null;const s=Number(Td(i,"waited_ms")??0);let r,l=n?.index??t.length;o==="completed"&&n!==null&&t.slice(n.index).startsWith("[finished]")&&(r=IS(t,n.index,"finished"),l=n.index+10);let a=0,u=-1;for(const h of _S(t,"completed_during_wait",l)){if(!MS(t,h))continue;const p=IS(t,h,"completed_during_wait");cle(p)&&(a=NB(p,/^task_id: /gm),u=h)}let c=0,d=[];for(const h of _S(t,"still_running",l)){if(u>=0&&hc.replace(/\\/g,"/"),i=n(e);let o=n(t);o.length>1&&(o=o.replace(/\/+$/,""));const s=ES(o)||ES(i),r=s?o.toLowerCase():o,l=s?i.toLowerCase():i,a=r.endsWith("/")?r:`${r}/`;if(l!==r&&!l.startsWith(a))return null;const u=l===r?"":i.slice(a.length);return u.split("/").includes("..")?null:u||null}const mle=50,vle=3,FB=mle*2;function yle(e){const t=(e??[]).filter(n=>typeof n=="number"&&Number.isFinite(n)&&n>0).slice(0,2);return t.length===0?FB:Math.round(t.reduce((n,i)=>n+i,0))}function DB(e){return e==null||!Number.isFinite(e)||e<=0?FB:Math.round(e)}const jb=96;function kle(e,t,n){const i=e.filter(r=>r.visible),o=i[0],s=i[2];return{firstRowHeight:o?o.height:null,spanToThirdRow:s?s.viewportBottom-t+n:null}}function ble(e,t,n){const i=s=>s!=null&&Number.isFinite(s)&&s>0;return(s=>s!=null&&Number.isFinite(s)&&s>=0)(t)?i(e)?Math.round(e)+Math.round(t):i(n)?Math.round(n)*3+Math.round(t):jb:jb}function Ale(e){return e>vle}function TS(e){return Math.round(e*.4)}function Cle(e){return e==null||!Number.isFinite(e)||e<=0?jb:Math.round(e)}function wle(e,t,n,i){const o=DB(n),s=Cle(i),r=Math.max(o,Math.round(e*.6));if(t===void 0||!Number.isFinite(t))return r;const l=Math.round(t)-s;return Math.max(o,Math.min(r,l))}function h3(e,t,n){return t==null||!Number.isFinite(t)?e:Math.max(DB(n),Math.min(e,Math.round(t)))}function xle(e,t,n,i){return Math.max(Math.round(i),Math.min(Math.round(e+t),Math.round(n)))}function Sle(e,t){return t===null||t===e}const C2="application/x-kimi-session-row";function _le(e,t){return e.includes(t)?e:[...e,t]}function Mle(e,t){return e.includes(t)?e.filter(n=>n!==t):e}function Ile(e,t){const n=new Set(t),i=new Map,o=[];for(const r of e)n.has(r.id)?i.set(r.id,r):o.push(r);const s=[];for(const r of t){const l=i.get(r);l!==void 0&&s.push(l)}return{pinned:s,unpinned:o}}function Ele(e,t,n){return e.find(i=>i.window?.duration===t&&i.window?.unit===n)}const Tle=30;function Lle(e){return e!==void 0&&e0?(l.push(t("settings.planUsage.durationDay",{n:o})),l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):s>0?(l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):r>0?l.push(t("settings.planUsage.durationMinute",{n:r})):l.push(t("settings.planUsage.durationSecond",{n:i})),t("settings.planUsage.resetsIn",{duration:l.join(" ")})}function Hb(e,t){if(t<=0)return"ok";const n=e/t;return n>=.85?"danger":n>=.5?"warn":"ok"}function bv(e,t){return t<=0?0:Math.min(100,Math.round(e/t*100))}function Nle(e,t){const n=(e/100).toFixed(2);switch(t.toUpperCase()){case"CNY":return{symbol:"¥",number:n};case"USD":return{symbol:"$",number:n};default:return{symbol:"",number:`${n} ${t}`}}}const Fle=["kimi","openai","openai_responses","anthropic","google-genai","vertexai"];function _m(){return{model:"",maxContextSize:"",displayName:"",capabilities:["tool_use","thinking"],supportEfforts:[],adaptiveThinking:!0}}function Wb(e,t){const n=[];for(const i of Object.values(t??{})){if(i===null||typeof i!="object")continue;const o=i;o.provider===e.id&&n.push({model:typeof o.model=="string"?o.model:"",maxContextSize:typeof o.maxContextSize=="number"?String(o.maxContextSize):"",displayName:typeof o.displayName=="string"?o.displayName:"",capabilities:Array.isArray(o.capabilities)?o.capabilities.filter(s=>typeof s=="string"):[],supportEfforts:Array.isArray(o.supportEfforts)?o.supportEfforts.filter(s=>typeof s=="string"):[],...typeof o.adaptiveThinking=="boolean"?{adaptiveThinking:o.adaptiveThinking}:{}})}return n}const RB=/^[\p{L}\p{N}][\p{L}\p{N}\-_ ]*$/u;function Dle(e,t={}){const n=e.id.trim();if(n==="")return"idRequired";if(!RB.test(n))return"idInvalid";if(t.requireApiKey===!0&&e.apiKey.trim()==="")return"apiKeyRequired";if(t.requireBaseUrl===!0&&e.baseUrl.trim()==="")return"baseUrlRequired";if(e.models.length===0)return"modelRequired";for(const i of e.models){if(i.model.trim()==="")return"modelRequired";const o=i.maxContextSize.trim();if(o==="")return"contextSizeRequired";if(!/^\d+$/.test(o)||Number(o)<1)return"contextSizeInvalid"}return null}function zB(e){return e.map(t=>{const n=t.displayName.trim();return{model:t.model.trim(),maxContextSize:Number(t.maxContextSize.trim()),...t.capabilities.length>0?{capabilities:[...t.capabilities]}:{},...t.supportEfforts.length>0?{supportEfforts:[...t.supportEfforts]}:{},...t.adaptiveThinking!==void 0?{adaptiveThinking:t.adaptiveThinking}:{},...n===""?{}:{displayName:n}}})}function Ble(e){const t=e.apiKey.trim(),n=e.baseUrl.trim();return{id:e.id.trim(),type:e.type,models:zB(e.models),...t===""?{}:{apiKey:t},...n===""?{}:{baseUrl:n}}}function $le(e,t,n){const i=zB(e.models),o=e.id.trim(),s=e.apiKey.trim(),r=e.baseUrl.trim(),l=n?.existingDefaultModel?.trim()??"",a=l.indexOf("/")>=0?l.slice(l.indexOf("/")+1):l;return{...t!==void 0&&o!==""&&o!==t.id?{newId:o}:{},type:e.type,models:i,...s===""&&n?.includeBlankApiKey!==!0?{}:{apiKey:s},...r===""?{}:{baseUrl:r},...a!==""&&i.some(u=>u.model===a)?{defaultModel:a}:{}}}function OB(e){return e.id==="managed:kimi-code"&&e.type==="kimi"}const w2="/devices/",PB="kimi-rc-device-id";function Rle(e){return new URLSearchParams(e.search).get("rc")==="1"}function jB(e){const{pathname:t}=e;if(!t.startsWith(w2))return;const n=t.slice(w2.length).split("/")[0];if(n)try{const i=decodeURIComponent(n);return i.length>0?i:void 0}catch{return}}function zle(e){if(jB({pathname:e})===void 0)return e;const t=e.slice(w2.length),n=t.indexOf("/");return n<0?"/":t.slice(n)}function Ole(e){return`${w2}${encodeURIComponent(e)}/`}function HB(e,t){const n=new URLSearchParams(t),i=n.get("rc"),o=n.get("from");if(i===null&&o===null)return e;const s=new URLSearchParams;return i!==null&&s.set("rc",i),o!==null&&s.set("from",o),`${e}?${s.toString()}`}function Ple(e){const t=jB(e);return t!==void 0?(Hle(t),t):jle()}function jle(){try{return window.sessionStorage.getItem(PB)??void 0}catch{return}}function Hle(e){try{window.sessionStorage.setItem(PB,e)}catch{}}const Wle=/^(\d+)\t(.*)$/;function qle(e){const t=e.at(-1)===""?e.slice(0,-1):e;if(t.length===0)return null;const n=[],i=[];for(const o of t){const s=Wle.exec(o);if(!s)return null;i.push(Number(s[1])),n.push(s[2]??"")}return{contents:n,lineNumbers:i}}function LS(e,t){let n="",i=t;const o=/^((?:\\\\|\/\/)[^\\/]+[\\/][^\\/]+)/.exec(t),s=/^([a-zA-Z]:)[\\/]?/.exec(t);o?(n=o[1],i=t.slice(o[1].length)):t.startsWith("/")?(n="/",i=t.slice(1)):s&&(n=s[1],i=t.slice(s[0].length));const r=n!=="",l=i.split(/[\\/]+/).filter(Boolean);for(const u of e.split("/"))u===""||u==="."||(u===".."?l.length>0&&l[l.length-1]!==".."?l.pop():r||l.push(".."):l.push(u));const a=l.join("/");return n==="/"?`/${a}`:n!==""?a?`${n}/${a}`:`${n}/`:a}function WB(e,t){for(const n of e.stateMachineNames){const i=(e.stateMachineInputs(n)??[]).find(o=>o.name===t);if(i!==void 0)return i}return null}function Ule(e,t){const n=WB(e,t);return n!==null&&typeof n.fire=="function"?(n.fire(),!0):!1}function NS(e,t,n){const i=WB(e,t);return i!==null&&typeof i.value==typeof n?(i.value=n,!0):!1}const p3={isPageHidden:()=>typeof document<"u"&&document.hidden,onVisibilityChange:e=>typeof document>"u"?()=>{}:(document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)),observeIntersection:(e,t)=>{if(typeof IntersectionObserver!="function")return()=>{};const n=new IntersectionObserver(i=>{const o=i[0];o!==void 0&&t(o.isIntersecting)});return n.observe(e),()=>n.disconnect()}};function qB(e,t,n={}){const i=n.isPageHidden??p3.isPageHidden,o=n.onVisibilityChange??p3.onVisibilityChange,s=n.observeIntersection??p3.observeIntersection;let r=!i(),l=!0,a=!1;function u(){const h=!r||!l;h!==a&&(a=h,a?e.pause():e.play())}const c=o(()=>{r=!i(),u()}),d=s(t,h=>{l=h,u()});return u(),()=>{c(),d()}}const Kle={"&":"&","<":"<",">":">",'"':""","'":"'"};function FS(e){return e.replace(/[&<>"']/g,t=>Kle[t]??t)}function Vle(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zle(e,t,n=40){const i=e.replace(/\s+/g," ").trim();if(i.length===0)return"";const o=t.trim();if(o.length===0)return DS(i,n*2);const s=i.toLowerCase().indexOf(o.toLowerCase());if(s<0)return DS(i,n*2);const r=Math.max(0,s-n),l=Math.min(i.length,s+o.length+n),a=r>0,u=l`${s}`)}const js="kimi-web.server-credential",Gle="token",Qle=10080*60*1e3;let Da;const qb=new Set;function Yle(){if(typeof window>"u")return;const e=window.location.hash??"";if(!e.startsWith("#"))return;const n=new URLSearchParams(e.slice(1)).get(Gle);if(!n)return;const i=new URL(window.location.href);return i.hash="",window.history.replaceState(window.history.state,"",`${i.pathname}${i.search}`),n}function Ub(e){return{version:1,credential:e,expiresAt:Date.now()+Qle}}function Jle(e){return JSON.stringify(e)}function L6(e){try{const t=JSON.parse(e);if(typeof t!="object"||t===null)return;const n=t;return n.version!==1||typeof n.credential!="string"||n.credential.length===0||typeof n.expiresAt!="number"||!Number.isFinite(n.expiresAt)?void 0:{version:1,credential:n.credential,expiresAt:n.expiresAt}}catch{return}}function Kb(e){globalThis.localStorage?.setItem(js,Jle(e))}function Xle(){try{const e=globalThis.localStorage?.getItem(js);if(e){const n=L6(e);if(n===void 0){const i=Ub(e);let o=!1;try{Kb(i),o=!0}catch{}if(!o)try{globalThis.localStorage?.getItem(js)===e&&globalThis.localStorage?.removeItem(js),o=!0}catch{}try{globalThis.sessionStorage?.removeItem(js)}catch{}return o?i:void 0}if(n.expiresAt>Date.now())return n;globalThis.sessionStorage?.removeItem(js),globalThis.localStorage?.getItem(js)===e&&globalThis.localStorage?.removeItem(js);return}const t=globalThis.sessionStorage?.getItem(js);if(t){const n=Ub(t);let i=!1;try{Kb(n),i=!0}catch{}try{globalThis.sessionStorage?.removeItem(js),i=!0}catch{}return i?n:void 0}return}catch{return}}function eae(){const e=Yle();return e?(UB(e),!0):(Da=Xle(),Da!==void 0)}function tae(){if(Da!==void 0){if(Da.expiresAt<=Date.now()){nae(Da);return}return Da.credential}}function nae(e){Da=void 0;try{globalThis.sessionStorage?.removeItem(js);const t=globalThis.localStorage?.getItem(js),n=t==null?void 0:L6(t);(n===void 0?t===e.credential:n.credential===e.credential&&n.expiresAt===e.expiresAt)&&globalThis.localStorage?.removeItem(js)}catch{}}function UB(e){const t=Ub(e);Da=t;try{Kb(t)}catch{}try{globalThis.sessionStorage?.removeItem(js)}catch{}}function iae(){const e=Da;Da=void 0;try{const t=globalThis.localStorage?.getItem(js),i=(t==null?void 0:L6(t))?.credential??t;e!==void 0&&i===e.credential&&globalThis.localStorage?.removeItem(js),globalThis.sessionStorage?.removeItem(js)}catch{}}function oae(e){return qb.add(e),()=>{qb.delete(e)}}function sae(){iae();for(const e of qb)try{e()}catch{}}function og(e){return e.approvalCount>0?"awaiting-approval":e.questionCount>0?"awaiting-question":e.pendingInteraction==="approval"?"awaiting-approval":e.pendingInteraction==="question"?"awaiting-question":e.busy?"running":e.lastTurnReason==="failed"?"aborted":e.unread?"unread":"idle"}function BS(e){let t=null;for(const n of e){const i=og(n);if(i==="awaiting-approval")return"approval";i==="awaiting-question"?t="question":i==="aborted"?t!=="question"&&(t="aborted"):i==="unread"&&t===null&&(t="unread")}return t}let $S;function rae(e){if(typeof Intl.Segmenter=="function")return $S??=new Intl.Segmenter("und",{granularity:"grapheme"}),$S.segment(e)}const lae=/\p{Emoji_Presentation}/u,aae=/\p{Regional_Indicator}/u,uae=/\p{Extended_Pictographic}/u,cae="️";function dae(e){return lae.test(e)||aae.test(e)?!0:uae.test(e)&&e.includes(cae)}function KB(e){const t=rae(e)?.[Symbol.iterator]().next().value;if(t===void 0||!dae(t.segment))return{emoji:null,rest:e};const n=e.slice(t.index+t.segment.length).replace(/^\s+/,"");return{emoji:t.segment,rest:n}}function fae(e,t){const{rest:n}=KB(e),i=t?.trim()??"";return i?n?`${i} ${n}`:i:n}function VB(e,t){const n=e.findIndex(s=>s.id===t.id);if(n!==-1&&e[n].updatedAt===t.updatedAt)return e.map(s=>s.id===t.id?t:s);const i=e.filter(s=>s.id!==t.id),o=i.findIndex(s=>s.updatedAt0?i:void 0}catch{return}}function hae(e){return e===void 0||e.length===0?"/":`${Vb}${encodeURIComponent(e)}`}function GB(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function pae(e,t=GB()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyA"||e.key.toLowerCase()==="a")&&!e.defaultPrevented}function gae(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement&&(e.isContentEditable||e.closest("input, textarea")!==null)}function mae(e,t){return typeof Element>"u"||!(e instanceof Element)?null:e.closest(t)}function OS(e){e.ownerDocument.getSelection()?.selectAllChildren(e)}function vae(e,t=GB()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyK"||e.key.toLowerCase()==="k")&&!e.defaultPrevented}function qc(e){return Array.isArray?Array.isArray(e):YB(e)==="[object Array]"}function yae(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Zb(e){return e==null?"":yae(e)}function ir(e){return typeof e=="string"}function Av(e){return typeof e=="number"}function kae(e){return e===!0||e===!1||bae(e)&&YB(e)=="[object Boolean]"}function QB(e){return typeof e=="object"}function bae(e){return QB(e)&&e!==null}function sl(e){return e!=null}function Mm(e){return!e.trim().length}function YB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Aae="Incorrect 'index' type",Gb="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Cae=e=>`Invalid value for key ${e}`,wae=e=>`Pattern length exceeds max of ${e}.`,xae=e=>`Missing ${e} property in key`,Sae=e=>`Property 'weight' in key '${e}' must be a positive integer`,_ae="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",PS=Object.prototype.hasOwnProperty;var Mae=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(n=>{const i=JB(n);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(n=>{n.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function JB(e){let t=null,n=null,i=null,o=1,s=null;if(ir(e)||qc(e))i=e,t=jS(e),n=Cv(e);else{if(!PS.call(e,"name"))throw new Error(xae("name"));const r=e.name;if(i=r,PS.call(e,"weight")&&e.weight!==void 0&&(o=e.weight,o<=0))throw new Error(Sae(Cv(r)));t=jS(r),n=Cv(r),s=e.getFn??null}return{path:t,id:n,weight:o,src:i,getFn:s}}function jS(e){return qc(e)?e:e.split(".")}function Cv(e){return qc(e)?e.join("."):e}function Iae(e,t){const n=[];let i=!1;const o=(s,r,l,a)=>{if(sl(s))if(!r[l])n.push(a!==void 0?{v:s,i:a}:s);else{const u=s[r[l]];if(!sl(u))return;if(l===r.length-1&&(ir(u)||Av(u)||kae(u)||typeof u=="bigint"))n.push(a!==void 0?{v:Zb(u),i:a}:Zb(u));else if(qc(u)){i=!0;for(let c=0,d=u.length;ce.score===t.score?e.idx=9&&e<=13||e===32||e===160}function Dae(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(o){let s=0,r=!1;for(let a=0;a{this._keysMap[t.id]=n})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(ir(this.docs[0]))for(let n=0;ne&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const i of e)Number.isInteger(i)&&i>=0&&t.add(i);if(t.size===0)return;this.records=this.records.filter(i=>!t.has(i.i));const n=Array.from(t).sort((i,o)=>i-o);for(const i of this.records){let o=0,s=n.length;for(;o>>1;n[r]t),records:this.records}}};function XB(e,t,{getFn:n=In.getFn,fieldNormWeight:i=In.fieldNormWeight}={}){const o=new N6({getFn:n,fieldNormWeight:i});return o.setKeys(e.map(JB)),o.setSources(t),o.create(),o}function Bae(e,{getFn:t=In.getFn,fieldNormWeight:n=In.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new N6({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s}function $ae(e=[],t=In.minMatchCharLength){const n=[];let i=-1,o=-1,s=0;for(let r=e.length;s=t&&n.push([i,o]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}function Rae(e,t,n,{location:i=In.location,distance:o=In.distance,threshold:s=In.threshold,findAllMatches:r=In.findAllMatches,minMatchCharLength:l=In.minMatchCharLength,includeMatches:a=In.includeMatches,ignoreLocation:u=In.ignoreLocation}={}){if(t.length>32)throw new Error(wae(32));const c=t.length,d=e.length,h=Math.max(0,Math.min(i,d));let p=s,g=h;const m=(L,M)=>{const N=L/c;if(u)return N;const I=Math.abs(h-M);return o?N+I/o:I?1:N},k=l>1||a,w=k?Array(d):[];let y;for(;(y=e.indexOf(t,g))>-1;){const L=m(0,y);if(p=Math.min(L,p),g=y+c,k){let M=0;for(;M=I;O-=1){const R=O-1,j=n[e[R]];if(H[O]=(H[O+1]<<1|1)&j,L&&(H[O]|=(b[O+1]|b[O])<<1|1|b[O+1]),H[O]&x&&(A=m(L,R),A<=p)){if(p=A,g=R,T=L,g<=h)break;I=Math.max(1,2*h-g)}}if(m(L+1,h)>p)break;b=H}if(k&&g>=0){const L=Math.min(d-1,g+c-1+T);for(let M=g;M<=L;M+=1)n[e[M]]&&(w[M]=1)}const _={isMatch:g>=0,score:Math.max(.001,A)};if(k){const L=$ae(w,l);L.length?a&&(_.indices=L):_.isMatch=!1}return _}function zae(e){const t={};for(let n=0,i=e.length;nn[0]-i[0]||n[1]-i[1]);const t=[e[0]];for(let n=1,i=e.length;ne.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Oae,t=>e$[t]):e=>e;var D6=class{constructor(e,{location:t=In.location,threshold:n=In.threshold,distance:i=In.distance,includeMatches:o=In.includeMatches,findAllMatches:s=In.findAllMatches,minMatchCharLength:r=In.minMatchCharLength,isCaseSensitive:l=In.isCaseSensitive,ignoreDiacritics:a=In.ignoreDiacritics,ignoreLocation:u=In.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:r,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:u},e=l?e:e.toLowerCase(),e=a?M0(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(h,p)=>{this.chunks.push({pattern:h,alphabet:zae(h),startIndex:p})},d=this.pattern.length;if(d>32){let h=0;const p=d%32,g=d-p;for(;h{const{isMatch:w,score:y,indices:b}=Rae(e,g,m,{location:o+k,distance:s,threshold:r,findAllMatches:l,minMatchCharLength:a,includeMatches:i,ignoreLocation:u});w&&(h=!0),d+=y,w&&b&&c.push(...b)});const p={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(p.indices=F6(c)),p}};const Pae=new Set(["fuzzy","include"]);function jae(e){return e.startsWith("inverse")}const Qb=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n=0,i;const o=[],s=e.length;for(;(i=t.indexOf(e,n))>-1;)n=i+s,o.push([i,n-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=t.indexOf(e)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new D6(e,{location:t.location??In.location,threshold:t.threshold??In.threshold,distance:t.distance??In.distance,includeMatches:t.includeMatches??In.includeMatches,findAllMatches:t.findAllMatches??In.findAllMatches,minMatchCharLength:t.minMatchCharLength??In.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??In.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??In.ignoreDiacritics,ignoreLocation:t.ignoreLocation??In.ignoreLocation});return{type:"fuzzy",search(i){return n.searchIn(i)}}}}],HS=Qb.length,Hae="\0",Wae="|";function qae(e){const t=[],n=e.length;let i=0;for(;i=n)break;let o=i;for(;o=n||e[s]===" "){o++;break}if(e[s]==="$"&&(s+1>=n||e[s+1]===" ")){o+=2;break}}o++}t.push(e.substring(i,o)),i=o}else{for(;o{const i=qae(n.replace(/\u0000/g,"|").trim()).filter(s=>s&&!!s.trim()),o=[];for(let s=0,r=i.length;s!!(e[S2.AND]||e[S2.OR]),Vae=e=>!!e[Jb.PATH],Zae=e=>!qc(e)&&QB(e)&&!Xb(e),qS=e=>({[S2.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function t$(e,t,{auto:n=!0}={}){const i=o=>{if(ir(o)){const a={keyId:null,pattern:o};return n&&(a.searcher=x2(o,t)),a}const s=Object.keys(o),r=Vae(o);if(!r&&s.length>1&&!Xb(o))return i(qS(o));if(Zae(o)){const a=r?o[Jb.PATH]:s[0],u=r?o[Jb.PATTERN]:o[a];if(!ir(u))throw new Error(Cae(a));const c={keyId:Cv(a),pattern:u};return n&&(c.searcher=x2(u,t)),c}const l={children:[],operator:s[0]};return s.forEach(a=>{const u=o[a];qc(u)&&u.forEach(c=>{l.children.push(i(c))})}),l};return Xb(e)||(e=qS(e)),i(e)}function e8(e,{ignoreFieldNorm:t=In.ignoreFieldNorm}){let n=1;return e.forEach(({key:i,norm:o,score:s})=>{const r=i?i.weight:null;n*=Math.pow(s===0&&r?Number.EPSILON:s,(r||1)*(t?1:o))}),n}function Gae(e,{ignoreFieldNorm:t=In.ignoreFieldNorm}){e.forEach(n=>{n.score=e8(n.matches,{ignoreFieldNorm:t})})}var Qae=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const i=t[e];t[e]=t[n],t[n]=i,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let i=e;do{e=i;const o=2*e+1,s=2*e+2;if(o0&&(i=o),s0&&(i=s),i!==e){const r=t[e];t[e]=t[i],t[i]=r}}while(i!==e)}};function Yae(e){const t=[];return e.matches.forEach(n=>{if(!sl(n.indices)||!n.indices.length)return;const i={indices:n.indices,value:n.value};n.key&&(i.key=n.key.id),n.idx>-1&&(i.refIndex=n.idx),t.push(i)}),t}function Jae(e,t,{includeMatches:n=In.includeMatches,includeScore:i=In.includeScore}={}){return e.map(o=>{const{idx:s}=o,r={item:t[s],refIndex:s};return n&&(r.matches=Yae(o)),i&&(r.score=o.score),r})}const Xae=/[\p{L}\p{M}\p{N}_]+/gu,US=new WeakSet;function eue(e){US.has(e)||(US.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function tue(e){if(typeof e=="function"){let t=!1;return n=>{const i=e(n);if(!t&&(t=!0,!Array.isArray(i)||i.some(o=>typeof o!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(i)?"array containing non-strings":typeof i}.`);return i}}return e instanceof RegExp?(e.global||eue(e),t=>t.match(e)||[]):t=>t.match(Xae)||[]}function t8({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const i=tue(n);return{tokenize(o){return e||(o=o.toLowerCase()),t&&(o=M0(o)),i(o)}}}var nue=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=t8({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:i,fieldCount:o}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const s of n){this.termSearchers.push(new D6(s,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const r=i.get(s)||0,l=Math.log(1+(o-r+.5)/(r+.5));this.idfWeights.push(l)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,i=0,o=0,s=0;const r=this.combineAll&&!this.useMask?new Set:null;for(let u=0;u0?1-n/i:0,a={isMatch:!0,score:Math.max(.001,l)};return this.options.includeMatches&&t.length&&(a.indices=F6(t)),this.combineAll&&(this.useMask?a.matchedMask=s:a.matchedTerms=r,a.termCount=this.numTerms),a}};function g3(e,t,n,i){const o=i.tokenize(t);if(!o.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const s=new Set(o);let r=e.docTermFieldHits.get(n);r||(r=new Map,e.docTermFieldHits.set(n,r));for(const l of s)r.set(l,(r.get(l)||0)+1),e.df.set(l,(e.df.get(l)||0)+1)}function n$(e,t,n,i){const{i:o,v:s,$:r}=t;if(s!==void 0){g3(e,s,o,i);return}if(r)for(let l=0;ll-a);for(const l of n)sue(e,l);const i=l=>{let a=0,u=n.length;for(;a>>1;n[c]o?i(l):l,a);e.docFieldCount=s;const r=new Map;for(const[l,a]of e.docTermFieldHits)r.set(l>o?i(l):l,a);e.docTermFieldHits=r}var Uc=class{constructor(e,t,n){this.options={...In,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Mae(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=x2(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof N6))throw new Error(Aae);if(this._myIndex=t||XB(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=t8({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=iue(this._myIndex.records,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}add(e){if(!sl(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const n=t8({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});oue(this._invertedIndex,t,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let i=0,o=this._docs.length;i!i.has(s)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(Gb);this._invertedIndex&&KS(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:i,includeScore:o,shouldSort:s,sortFn:r,ignoreFieldNorm:l}=this.options;if(ir(e)&&!e.trim()){let h=this._docs.map((p,g)=>({item:p,refIndex:g}));return Av(n)&&n>-1&&(h=h.slice(0,n)),h}const a=s&&Av(n)&&n>0&&ir(e),u=r,c=(h,p)=>u(h,p)||h.idx-p.idx;let d;if(a){const h=new Qae(n,c);ir(this._docs[0])?this._searchStringList(e,{heap:h,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:h,ignoreFieldNorm:l}),d=h.extractSorted()}else d=ir(e)?ir(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Gae(d,{ignoreFieldNorm:l}),s&&d.sort(ir(e)?c:u),Av(n)&&n>-1&&(d=d.slice(0,n));return Jae(d,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=t?null:[];return s.forEach(({v:l,i:a,n:u})=>{if(!sl(l))return;const c=i.searchIn(l);if(c.isMatch){const d={score:c.score,value:l,norm:u,indices:c.indices};o&&(d.matchedMask=c.matchedMask,d.matchedTerms=c.matchedTerms,d.termCount=c.termCount);const h=[d];if(!o||this._coversAllTokens(h)){const p={item:l,idx:a,matches:h};t?(p.score=e8(p.matches,{ignoreFieldNorm:n}),t.insert(p)):r.push(p)}}}),r}_searchLogical(e){const t=t$(e,this.options),n=this._normalizedKeys(),i=(l,a,u)=>{if(!("children"in l)){const{keyId:p,searcher:g}=l;let m;return p===null?(m=[],n.forEach((k,w)=>{m.push(...this._findMatches({key:k,value:a[w],searcher:g}))})):m=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(a,p),searcher:g}),m&&m.length?[{idx:u,item:a,matches:m}]:[]}const{children:c,operator:d}=l,h=[];for(let p=0,g=c.length;p{if(sl(l)){const u=i(t,l,a);u.length&&(s.has(a)||(s.set(a,{idx:a,item:l,matches:[]}),r.push(s.get(a))),u.forEach(({matches:c})=>{s.get(a).matches.push(...c)}))}}),r}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=this._normalizedKeys(),l=t?null:[];return s.forEach(({$:a,i:u})=>{if(!sl(a))return;const c=[];let d=!1,h=!1;if(r.forEach((p,g)=>{const m=this._findMatches({key:p,value:a[g],searcher:i});m.length?(c.push(...m),m[0].hasInverse&&(h=!0)):d=!0}),!(h&&d)&&c.length&&(!o||this._coversAllTokens(c))){const p={idx:u,item:a,matches:c};t?(p.score=e8(p.matches,{ignoreFieldNorm:n}),t.insert(p)):l.push(p)}}),l}_findMatches({key:e,value:t,searcher:n}){if(!sl(t))return[];const i=[];if(qc(t))t.forEach(({v:o,i:s,n:r})=>{if(!sl(o))return;const l=n.searchIn(o);if(l.isMatch){const a={score:l.score,key:e,value:o,idx:s,norm:r,indices:l.indices,hasInverse:l.hasInverse};l.termCount!==void 0&&(a.matchedMask=l.matchedMask,a.matchedTerms=l.matchedTerms,a.termCount=l.termCount),i.push(a)}});else{const{v:o,n:s}=t,r=n.searchIn(o);if(r.isMatch){const l={score:r.score,key:e,value:o,norm:s,indices:r.indices,hasInverse:r.hasInverse};r.termCount!==void 0&&(l.matchedMask=r.matchedMask,l.matchedTerms=r.matchedTerms,l.termCount=r.termCount),i.push(l)}}return i}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let i=0;for(let o=0;oB6(t))};var rue=Uc;const lue=/^[\uD800-\uDBFF]$/,aue=/^[\uDC00-\uDFFF]$/,uue=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var VS;(function(e){e[e.Unknown=1e-13]="Unknown",e[e.Rule=1e-12]="Rule",e[e.DICT=2e-8]="DICT",e[e.Surname=1]="Surname",e[e.Custom=1]="Custom"})(VS||(VS={}));const yl={Normal:1,Surname:10,Custom:100};function ta(e){var t;return e.length-(((t=e.match(uue))===null||t===void 0?void 0:t.length)||0)}function n8(e){const t=[];let n=0;for(;n1)return this.StringDICT.get(t);{const n=t.charCodeAt(0);return this.NumberDICT[n]}}set(t,n){if(t.length>1)this.StringDICT.set(t,n);else{const i=t.charCodeAt(0);this.NumberDICT[i]=n}}clear(){this.NumberDICT=[],this.StringDICT.clear()}}const cue=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],due=["j","q","x"],fue=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],hue={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},pue=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],ZS={一:"yì",二:"èr",三:"sān",四:"sì",五:"wǔ",六:"liù",七:"qī",八:"bā",九:"jiǔ",十:"shí",百:"bǎi",千:"qiān",万:"wàn",亿:"yì",单:"dān",两:"liǎng",双:"shuāng",多:"duō",几:"jǐ",十一:"shí yī",零一:"líng yī",第一:"dì yī",一十:"yī shí",一十一:"yī shí yī"},GS={重:"chóng",行:"háng",斗:"dǒu",更:"gēng"};function gue(){const e={零一:"líng yī","〇一":"líng yī",十一:"shí yī",一十:"yī shí",第一:"dì yī",一十一:"yī shí yī"};for(let t in ZS)for(let n in GS){const i=`${t}${n}`,o=`${ZS[t]} ${GS[n]}`;e[i]=o}return e}const QS=gue(),mue=Object.keys(QS).map(e=>({zh:e,pinyin:QS[e],probability:1e-12,length:ta(e),priority:yl.Normal,dict:Symbol("rule")})),o$={不:{bú:[4]},一:{yí:[4],yì:[1,2,3]}},vue={不:["的","而","之","后","也","还","地"],一:["的","而","之","后","也","还","是"]},yue=Object.keys(o$),i8={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn",轩辕:"xuān yuán",令狐:"líng hú",钟离:"zhōng lí",宇文:"yǔ wén",长孙:"zhǎng sūn",慕容:"mù róng",鲜于:"xiān yú",闾丘:"lǘ qiū",司徒:"sī tú",司空:"sī kōng",亓官:"qí guān",司寇:"sī kòu",仉督:"zhǎng dū",子车:"zǐ jū",颛孙:"zhuān sūn",端木:"duān mù",巫马:"wū mǎ",公西:"gōng xī",漆雕:"qī diāo",乐正:"yuè zhèng",壤驷:"rǎng sì",公良:"gōng liáng",拓跋:"tuò bá",夹谷:"jiá gǔ",宰父:"zǎi fǔ",榖梁:"gǔ liáng",段干:"duàn gān",百里:"bǎi lǐ",东郭:"dōng guō",南门:"nán mén",呼延:"hū yán",羊舌:"yáng shé",梁丘:"liáng qiū",左丘:"zuǒ qiū",东门:"dōng mén",西门:"xī mén",句龙:"gōu lóng",毌丘:"guàn qiū",赵:"zhào",钱:"qián",孙:"sūn",李:"lǐ",周:"zhōu",吴:"wú",郑:"zhèng",王:"wáng",冯:"féng",陈:"chén",褚:"chǔ",卫:"wèi",蒋:"jiǎng",沈:"shěn",韩:"hán",杨:"yáng",朱:"zhū",秦:"qín",尤:"yóu",许:"xǔ",何:"hé",吕:"lǚ",施:"shī",张:"zhāng",孔:"kǒng",曹:"cáo",严:"yán",华:"huà",金:"jīn",魏:"wèi",陶:"táo",姜:"jiāng",戚:"qī",谢:"xiè",邹:"zōu",喻:"yù",柏:"bǎi",水:"shuǐ",窦:"dòu",章:"zhāng",云:"yún",苏:"sū",潘:"pān",葛:"gě",奚:"xī",范:"fàn",彭:"péng",郎:"láng",鲁:"lǔ",韦:"wéi",昌:"chāng",马:"mǎ",苗:"miáo",凤:"fèng",花:"huā",方:"fāng",俞:"yú",任:"rén",袁:"yuán",柳:"liǔ",酆:"fēng",鲍:"bào",史:"shǐ",唐:"táng",费:"fèi",廉:"lián",岑:"cén",薛:"xuē",雷:"léi",贺:"hè",倪:"ní",汤:"tāng",滕:"téng",殷:"yīn",罗:"luó",毕:"bì",郝:"hǎo",邬:"wū",安:"ān",常:"cháng",乐:"yuè",于:"yú",时:"shí",傅:"fù",皮:"pí",卞:"biàn",齐:"qí",康:"kāng",伍:"wǔ",余:"yú",元:"yuán",卜:"bǔ",顾:"gù",孟:"mèng",平:"píng",黄:"huáng",和:"hé",穆:"mù",萧:"xiāo",尹:"yǐn",姚:"yáo",邵:"shào",湛:"zhàn",汪:"wāng",祁:"qí",毛:"máo",禹:"yǔ",狄:"dí",米:"mǐ",贝:"bèi",明:"míng",臧:"zāng",计:"jì",伏:"fú",成:"chéng",戴:"dài",谈:"tán",宋:"sòng",茅:"máo",庞:"páng",熊:"xióng",纪:"jǐ",舒:"shū",屈:"qū",项:"xiàng",祝:"zhù",董:"dǒng",梁:"liáng",杜:"dù",阮:"ruǎn",蓝:"lán",闵:"mǐn",席:"xí",季:"jì",麻:"má",强:"qiáng",贾:"jiǎ",路:"lù",娄:"lóu",危:"wēi",江:"jiāng",童:"tóng",颜:"yán",郭:"guō",梅:"méi",盛:"shèng",林:"lín",刁:"diāo",钟:"zhōng",徐:"xú",邱:"qiū",骆:"luò",高:"gāo",夏:"xià",蔡:"cài",田:"tián",樊:"fán",胡:"hú",凌:"líng",霍:"huò",虞:"yú",万:"wàn",支:"zhī",柯:"kē",昝:"zǎn",管:"guǎn",卢:"lú",莫:"mò",经:"jīng",房:"fáng",裘:"qiú",缪:"miào",干:"gān",解:"xiè",应:"yīng",宗:"zōng",丁:"dīng",宣:"xuān",贲:"bēn",邓:"dèng",郁:"yù",单:"shàn",杭:"háng",洪:"hóng",包:"bāo",诸:"zhū",左:"zuǒ",石:"shí",崔:"cuī",吉:"jí",钮:"niǔ",龚:"gōng",程:"chéng",嵇:"jī",邢:"xíng",滑:"huá",裴:"péi",陆:"lù",荣:"róng",翁:"wēng",荀:"xún",羊:"yáng",於:"yū",惠:"huì",甄:"zhēn",曲:"qū",家:"jiā",封:"fēng",芮:"ruì",羿:"yì",储:"chǔ",靳:"jìn",汲:"jí",邴:"bǐng",糜:"mí",松:"sōng",井:"jǐng",段:"duàn",富:"fù",巫:"wū",乌:"wū",焦:"jiāo",巴:"bā",弓:"gōng",牧:"mù",隗:"wěi",山:"shān",谷:"gǔ",车:"chē",侯:"hóu",宓:"mì",蓬:"péng",全:"quán",郗:"xī",班:"bān",仰:"yǎng",秋:"qiū",仲:"zhòng",伊:"yī",宫:"gōng",宁:"nìng",仇:"qiú",栾:"luán",暴:"bào",甘:"gān",钭:"tǒu",厉:"lì",戎:"róng",祖:"zǔ",武:"wǔ",符:"fú",刘:"liú",景:"jǐng",詹:"zhān",束:"shù",龙:"lóng",叶:"yè",幸:"xìng",司:"sī",韶:"sháo",郜:"gào",黎:"lí",蓟:"jì",薄:"bó",印:"yìn",宿:"sù",白:"bái",怀:"huái",蒲:"pú",邰:"tái",从:"cóng",鄂:"è",索:"suǒ",咸:"xián",籍:"jí",赖:"lài",卓:"zhuó",蔺:"lìn",屠:"tú",蒙:"méng",池:"chí",乔:"qiáo",阴:"yīn",鬱:"yù",胥:"xū",能:"nài",苍:"cāng",双:"shuāng",闻:"wén",莘:"shēn",党:"dǎng",翟:"zhái",谭:"tán",贡:"gòng",劳:"láo",逄:"páng",姬:"jī",申:"shēn",扶:"fú",堵:"dǔ",冉:"rǎn",宰:"zǎi",郦:"lì",雍:"yōng",郤:"xì",璩:"qú",桑:"sāng",桂:"guì",濮:"pú",牛:"niú",寿:"shòu",通:"tōng",边:"biān",扈:"hù",燕:"yān",冀:"jì",郏:"jiá",浦:"pǔ",尚:"shàng",农:"nóng",温:"wēn",别:"bié",庄:"zhuāng",晏:"yàn",柴:"chái",瞿:"qú",阎:"yán",充:"chōng",慕:"mù",连:"lián",茹:"rú",习:"xí",宦:"huàn",艾:"ài",鱼:"yú",容:"róng",向:"xiàng",古:"gǔ",易:"yì",慎:"shèn",戈:"gē",廖:"liào",庾:"yǔ",终:"zhōng",暨:"jì",居:"jū",衡:"héng",步:"bù",都:"dū",耿:"gěng",满:"mǎn",弘:"hóng",匡:"kuāng",国:"guó",文:"wén",寇:"kòu",广:"guǎng",禄:"lù",阙:"quē",东:"dōng",欧:"ōu",殳:"shū",沃:"wò",利:"lì",蔚:"wèi",越:"yuè",夔:"kuí",隆:"lóng",师:"shī",巩:"gǒng",厍:"shè",聂:"niè",晁:"cháo",勾:"gōu",敖:"áo",融:"róng",冷:"lěng",訾:"zī",辛:"xīn",阚:"kàn",那:"nā",简:"jiǎn",饶:"ráo",空:"kōng",曾:"zēng",母:"mǔ",沙:"shā",乜:"niè",养:"yǎng",鞠:"jū",须:"xū",丰:"fēng",巢:"cháo",关:"guān",蒯:"kuǎi",相:"xiàng",查:"zhā",后:"hòu",荆:"jīng",红:"hóng",游:"yóu",竺:"zhú",权:"quán",逯:"lù",盖:"gě",益:"yì",桓:"huán",公:"gōng",牟:"móu",哈:"hǎ",言:"yán",福:"fú",肖:"xiāo",区:"ōu",覃:"qín",朴:"piáo",繁:"pó",员:"yùn",句:"gōu",要:"yāo",过:"guō",钻:"zuān",谌:"chén",折:"shé",召:"shào",郄:"qiè",撒:"sǎ",甯:"nìng",六:"lù",啜:"chuài",行:"xíng"},kue=Object.keys(i8).map(e=>({zh:e,pinyin:i8[e],probability:1+ta(e),length:ta(e),priority:yl.Surname,dict:Symbol("surname")})),YS={"bǎng páng pāng":["膀"],líng:["〇","伶","凌","刢","囹","坽","夌","姈","婈","孁","岺","彾","掕","昤","朎","柃","棂","櫺","欞","泠","淩","澪","灵","燯","爧","狑","玲","琌","瓴","皊","砱","祾","秢","竛","笭","紷","綾","绫","羐","羚","翎","聆","舲","苓","菱","蓤","蔆","蕶","蛉","衑","裬","詅","跉","軨","輘","酃","醽","鈴","錂","铃","閝","陵","零","霊","霗","霛","霝","靈","駖","魿","鯪","鲮","鴒","鸰","鹷","麢","齡","齢","龄","龗","㥄"],yī:["一","乊","伊","依","医","吚","咿","噫","壱","壹","夁","嫛","嬄","弌","揖","撎","檹","毉","洢","渏","漪","瑿","畩","祎","禕","稦","繄","蛜","衤","譩","辷","郼","醫","銥","铱","鷖","鹥","黟","黳"],"dīng zhēng":["丁"],"kǎo qiǎo yú":["丂"],qī:["七","倛","僛","凄","嘁","墄","娸","悽","慼","慽","戚","捿","柒","桤","桼","棲","榿","欺","沏","淒","漆","紪","緀","萋","褄","諆","迉","郪","鏚","霋","魌","鶈"],shàng:["丄","尙","尚","恦","緔","绱"],xià:["丅","下","乤","圷","夏","夓","懗","梺","疜","睱","罅","鎼","鏬"],hǎn:["丆","喊","浫","罕","豃","㘎"],"wàn mò":["万"],zhàng:["丈","仗","墇","嶂","帐","帳","幛","扙","杖","涱","痮","瘬","瘴","瞕","粀","胀","脹","賬","账","障"],sān:["三","厁","叁","弎","毵","毶","毿","犙","鬖"],"shàng shǎng shang":["上"],"qí jī":["丌","其","奇"],"bù fǒu":["不"],"yǔ yù yú":["与"],miǎn:["丏","偭","免","冕","勉","勔","喕","娩","愐","汅","沔","湎","睌","緬","缅","腼","葂","靦","鮸","𩾃"],gài:["丐","乢","匃","匄","戤","概","槩","槪","溉","漑","瓂","葢","鈣","钙","𬮿"],chǒu:["丑","丒","侴","吜","杽","瞅","矁","醜","魗"],zhuān:["专","叀","嫥","専","專","瑼","甎","砖","磗","磚","蟤","諯","鄟","顓","颛","鱄","䏝"],"qiě jū":["且"],pī:["丕","伓","伾","噼","坯","岯","憵","批","披","炋","狉","狓","砒","磇","礔","礕","秛","秠","耚","豾","邳","鈚","鉟","銔","錃","錍","霹","駓","髬","魾","𬳵"],shì:["世","丗","亊","事","仕","侍","冟","势","勢","卋","呩","嗜","噬","士","奭","嬕","室","市","式","弑","弒","恀","恃","戺","拭","揓","是","昰","枾","柿","栻","澨","烒","煶","眂","眎","眡","睗","示","礻","筮","簭","舐","舓","襫","視","视","觢","試","誓","諡","謚","试","谥","貰","贳","軾","轼","逝","遾","釈","释","釋","鈰","鉃","鉽","铈","飾","餙","餝","饰","鰘","䏡","𬤊"],qiū:["丘","丠","坵","媝","恘","恷","楸","秋","秌","穐","篍","緧","萩","蘒","蚯","蝵","蟗","蠤","趥","邱","鞦","鞧","鰌","鰍","鳅","鶖","鹙","龝"],bǐng:["丙","屛","怲","抦","昞","昺","柄","棅","炳","禀","秉","稟","苪","蛃","邴","鈵","陃","鞆","餅","餠","饼"],yè:["业","亱","僷","墷","夜","嶪","嶫","抴","捙","擛","擪","擫","晔","曄","曅","曗","曳","曵","枼","枽","業","洂","液","澲","烨","燁","爗","璍","皣","瞱","瞸","礏","腋","葉","謁","谒","邺","鄴","鍱","鐷","靥","靨","頁","页","餣","饁","馌","驜","鵺","鸈"],cóng:["丛","从","叢","婃","孮","従","徔","徖","悰","樷","欉","淙","灇","爜","琮","藂","誴","賨","賩","錝"],dōng:["东","倲","冬","咚","埬","岽","崬","徚","昸","東","氡","氭","涷","笗","苳","菄","蝀","鮗","鯟","鶇","鶫","鸫","鼕","𬟽"],sī:["丝","俬","凘","厮","司","咝","嘶","噝","媤","廝","恖","撕","斯","楒","泀","澌","燍","禗","禠","私","糹","絲","緦","纟","缌","罳","蕬","虒","蛳","蜤","螄","蟖","蟴","鉰","銯","鍶","鐁","锶","颸","飔","騦","鷥","鸶","鼶","㟃"],chéng:["丞","呈","城","埕","堘","塍","塖","宬","峸","惩","懲","成","承","挰","掁","揨","枨","棖","橙","檙","洆","溗","澂","珵","珹","畻","程","窚","筬","絾","脭","荿","誠","诚","郕","酲","鋮","铖","騬","鯎"],diū:["丟","丢","銩","铥"],liǎng:["両","两","兩","唡","啢","掚","緉","脼","蜽","裲","魉","魎","𬜯"],yǒu:["丣","卣","友","梄","湵","牖","禉","羑","聈","苃","莠","蜏","酉","銪","铕","黝"],yán:["严","厳","啱","喦","嚴","塩","壛","壧","妍","姸","娫","娮","岩","嵒","嵓","巌","巖","巗","延","揅","昖","楌","檐","櫩","欕","沿","炎","炏","狿","琂","盐","碞","筵","簷","莚","蔅","虤","蜒","言","訁","訮","詽","讠","郔","閆","閻","闫","阎","顏","顔","颜","鹽","麣","𫄧"],bìng:["並","併","倂","傡","垪","摒","栤","病","窉","竝","誁","靐","鮩"],"sàng sāng":["丧"],gǔn:["丨","惃","滚","滾","磙","緄","绲","蓘","蔉","衮","袞","輥","辊","鮌","鯀","鲧"],jiū:["丩","勼","啾","揪","揫","朻","究","糾","纠","萛","赳","阄","鬏","鬮","鳩","鸠"],"gè gě":["个","個","各"],yā:["丫","圧","孲","庘","押","枒","桠","椏","錏","鐚","鴉","鴨","鵶","鸦","鸭"],pán:["丬","媻","幋","槃","洀","瀊","爿","盘","盤","磐","縏","蒰","蟠","蹒","蹣","鎜","鞶"],"zhōng zhòng":["中"],jǐ:["丮","妀","己","戟","挤","掎","撠","擠","橶","泲","犱","脊","虮","蟣","魢","鱾","麂"],jiè:["丯","介","借","唶","堺","屆","届","岕","庎","徣","戒","楐","犗","玠","琾","界","畍","疥","砎","蚧","蛶","衸","褯","誡","诫","鎅","骱","魪"],fēng:["丰","仹","偑","僼","凨","凬","凮","妦","寷","封","峯","峰","崶","枫","楓","檒","沣","沨","渢","灃","烽","犎","猦","琒","疯","瘋","盽","砜","碸","篈","蘴","蜂","蠭","豐","鄷","酆","鋒","鎽","鏠","锋","霻","靊","飌","麷"],"guàn kuàng":["丱"],chuàn:["串","汌","玔","賗","釧","钏"],chǎn:["丳","产","冁","剷","囅","嵼","旵","浐","滻","灛","產","産","簅","蒇","蕆","諂","譂","讇","谄","鏟","铲","閳","闡","阐","骣","𬊤"],lín:["临","冧","壣","崊","嶙","斴","晽","暽","林","潾","瀶","燐","琳","璘","瞵","碄","磷","粦","粼","繗","翷","臨","轔","辚","遴","邻","鄰","鏻","阾","隣","霖","驎","鱗","鳞","麐","麟","𬴊","𬭸"],zhuó:["丵","劅","卓","啄","圴","妰","娺","撯","擆","擢","斫","斮","斱","斲","斵","晫","椓","浊","浞","濁","灼","烵","琸","硺","禚","窡","籗","籱","罬","茁","蠗","蠿","諁","諑","謶","诼","酌","鐲","镯","鵫","鷟","䓬","𬸦"],zhǔ:["丶","主","劯","嘱","囑","宔","帾","拄","渚","濐","煑","煮","燝","瞩","矚","罜","詝","陼","鸀","麈","𬣞"],bā:["丷","仈","八","叭","哵","夿","岜","巴","捌","朳","玐","疤","笆","粑","羓","芭","蚆","豝","釟"],wán:["丸","刓","完","岏","抏","捖","汍","烷","玩","琓","笂","紈","纨","翫","芄","貦","頑","顽"],dān:["丹","勯","匰","単","妉","媅","殚","殫","甔","眈","砃","箪","簞","耼","耽","聃","聸","褝","襌","躭","郸","鄲","酖","頕"],"wèi wéi":["为"],"jǐng dǎn":["丼"],"lì lí":["丽"],jǔ:["举","弆","挙","擧","椇","榉","榘","櫸","欅","矩","筥","聥","舉","莒","蒟","襷","踽","齟","龃"],piě:["丿","苤","鐅","𬭯"],fú:["乀","伏","俘","凫","刜","匐","咈","哹","垘","孚","岪","巿","帗","幅","幞","弗","彿","怫","扶","柫","栿","桴","氟","泭","浮","涪","澓","炥","玸","甶","畉","癁","祓","福","稪","符","箙","紱","紼","絥","綍","绂","绋","罘","罦","翇","艀","芙","芣","苻","茀","茯","菔","葍","虙","蚨","蜉","蝠","袚","袱","襆","襥","諨","豧","踾","輻","辐","郛","鉘","鉜","韍","韨","颫","髴","鮄","鮲","鳧","鳬","鴔","鵩","黻"],"yí jí":["乁"],yì:["乂","义","亄","亦","亿","伇","伿","佾","俋","億","兿","刈","劓","劮","勚","勩","匇","呓","呭","呹","唈","囈","圛","坄","垼","埸","奕","嫕","嬑","寱","屹","峄","嶧","帟","帠","幆","廙","异","弈","弋","役","忆","怈","怿","悒","意","憶","懌","懿","抑","挹","敡","易","晹","曀","曎","杙","枍","棭","榏","槸","檍","歝","殔","殪","殹","毅","浂","浥","浳","湙","溢","潩","澺","瀷","炈","焲","熠","熤","熼","燚","燡","燱","獈","玴","異","疫","痬","瘗","瘞","瘱","癔","益","瞖","穓","竩","篒","縊","繶","繹","绎","缢","義","羿","翊","翌","翳","翼","耴","肄","肊","膉","臆","艗","艺","芅","苅","萟","蓺","薏","藙","藝","蘙","虉","蜴","螠","衪","袣","裔","裛","褹","襼","訲","訳","詍","詣","誼","譯","議","讛","议","译","诣","谊","豙","豛","豷","貖","贀","跇","轶","逸","邑","鄓","醷","釴","鈠","鎰","鐿","镒","镱","阣","隿","霬","饐","駅","驛","驿","骮","鮨","鶂","鶃","鶍","鷁","鷊","鷧","鷾","鸃","鹝","鹢","黓","齸","𬬩","㑊","𫄷","𬟁"],nǎi:["乃","倷","奶","嬭","廼","氖","疓","艿","迺","釢"],wǔ:["乄","五","仵","伍","侮","倵","儛","午","啎","妩","娬","嫵","庑","廡","忤","怃","憮","摀","武","潕","熓","牾","玝","珷","瑦","甒","碔","舞","躌","迕","逜","陚","鵡","鹉","𣲘"],jiǔ:["久","乆","九","乣","奺","杦","汣","灸","玖","紤","舏","酒","镹","韭","韮"],"tuō zhé":["乇","杔","馲"],"me mó ma yāo":["么"],zhī:["之","倁","卮","巵","搘","支","栀","梔","椥","榰","汁","泜","疷","祗","祬","秓","稙","綕","肢","胑","胝","脂","芝","蘵","蜘","衼","隻","鳷","鴲","鼅","𦭜"],"wū wù":["乌"],zhà:["乍","咤","宱","搾","榨","溠","痄","蚱","詐","诈","醡","霅","䃎"],hū:["乎","乯","匢","匫","呼","唿","嘑","垀","寣","幠","忽","惚","昒","歑","泘","淴","滹","烀","苸","虍","虖","謼","軤","轷","雐"],fá:["乏","伐","傠","坺","垡","墢","姂","栰","浌","瞂","笩","筏","罚","罰","罸","藅","閥","阀"],"lè yuè yào lào":["乐","樂"],yín:["乑","吟","噖","嚚","圁","垠","夤","婬","寅","峾","崟","崯","檭","殥","泿","淫","滛","烎","犾","狺","璌","硍","碒","荶","蔩","訔","訚","訡","誾","鄞","鈝","銀","银","霪","鷣","齦"],pīng:["乒","俜","娉","涄","甹","砯","聠","艵","頩"],pāng:["乓","滂","胮","膖","雱","霶"],qiáo:["乔","侨","僑","嫶","憔","桥","槗","樵","橋","櫵","犞","瞧","硚","礄","荍","荞","蕎","藮","譙","趫","鐈","鞒","鞽","顦"],hǔ:["乕","琥","萀","虎","虝","錿","鯱"],guāi:["乖"],"chéng shèng":["乗","乘","娍"],yǐ:["乙","乛","以","倚","偯","嬟","崺","已","庡","扆","攺","敼","旑","旖","檥","矣","礒","笖","舣","艤","苡","苢","蚁","螘","蟻","裿","踦","輢","轙","逘","酏","釔","鈘","鉯","钇","顗","鳦","齮","𫖮","𬺈"],"háo yǐ":["乚"],"niè miē":["乜"],qǐ:["乞","企","启","唘","啓","啔","啟","婍","屺","杞","棨","玘","盀","綺","绮","芑","諬","起","邔","闙"],yě:["也","冶","嘢","埜","壄","漜","野"],xí:["习","喺","媳","嶍","席","椺","檄","漝","習","蓆","袭","襲","覡","觋","謵","趘","郋","鎴","隰","霫","飁","騱","騽","驨","鰼","鳛","𠅤","𫘬"],xiāng:["乡","厢","廂","忀","楿","欀","湘","瓖","稥","箱","緗","缃","膷","芗","萫","葙","薌","襄","郷","鄉","鄊","鄕","鑲","镶","香","驤","骧","鱜","麘","𬙋"],shū:["书","倏","倐","儵","叔","姝","尗","抒","掓","摅","攄","書","枢","梳","樞","殊","殳","毹","毺","淑","瀭","焂","疎","疏","紓","綀","纾","舒","菽","蔬","踈","軗","輸","输","鄃","陎","鮛","鵨"],dǒu:["乧","抖","枓","蚪","鈄","阧","陡"],shǐ:["乨","使","兘","史","始","宩","屎","榁","矢","笶","豕","鉂","駛","驶"],jī:["乩","僟","击","刉","刏","剞","叽","唧","喞","嗘","嘰","圾","基","墼","姬","屐","嵆","嵇","撃","擊","朞","机","枅","樭","機","毄","激","犄","玑","璣","畸","畿","癪","矶","磯","积","積","笄","筓","箕","簊","緁","羁","羇","羈","耭","肌","芨","虀","覉","覊","譏","譤","讥","賫","賷","赍","跻","踑","躋","躸","銈","錤","鐖","鑇","鑙","隮","雞","鞿","韲","飢","饑","饥","魕","鳮","鶏","鶺","鷄","鸄","鸡","齎","齏","齑","𬯀","𫓯","𫓹","𫌀"],náng:["乪","嚢","欜","蠰","饢"],jiā:["乫","佳","傢","加","嘉","抸","枷","梜","毠","泇","浃","浹","犌","猳","珈","痂","笳","糘","耞","腵","葭","袈","豭","貑","跏","迦","鉫","鎵","镓","鴐","麚","𬂩"],jù:["乬","倨","倶","具","剧","劇","勮","埧","埾","壉","姖","屦","屨","岠","巨","巪","怇","惧","愳","懅","懼","拒","拠","昛","歫","洰","澽","炬","烥","犋","秬","窭","窶","簴","粔","耟","聚","虡","蚷","詎","讵","豦","距","踞","躆","遽","邭","醵","鉅","鐻","钜","颶","飓","駏","鮔"],shí:["乭","十","埘","塒","姼","实","実","寔","實","峕","嵵","时","旹","時","榯","湜","溡","炻","祏","竍","蚀","蝕","辻","遈","鉐","飠","饣","鮖","鰣","鲥","鼫","鼭"],mǎo:["乮","冇","卯","峁","戼","昴","泖","笷","蓩","鉚","铆"],mǎi:["买","嘪","荬","蕒","買","鷶"],luàn:["乱","亂","釠"],rǔ:["乳","擩","汝","肗","辱","鄏"],xué:["乴","学","學","峃","嶨","斈","泶","澩","燢","穴","茓","袕","踅","鷽","鸴"],yǎn:["䶮","乵","俨","偃","儼","兖","兗","厣","厴","噞","孍","嵃","巘","巚","弇","愝","戭","扊","抁","掩","揜","曮","椼","檿","沇","渷","演","琰","甗","眼","罨","萒","蝘","衍","褗","躽","遃","郾","隒","顩","魇","魘","鰋","鶠","黡","黤","黬","黭","黶","鼴","鼹","齴","龑","𬸘","𬙂","𪩘"],fǔ:["乶","俌","俛","俯","府","弣","抚","拊","撫","斧","椨","滏","焤","甫","盙","簠","腐","腑","蜅","輔","辅","郙","釜","釡","阝","頫","鬴","黼","㕮","𫖯"],shā:["乷","唦","杀","桬","殺","毮","猀","痧","砂","硰","紗","繺","纱","蔱","裟","鎩","铩","閷","髿","魦","鯊","鯋","鲨"],nǎ:["乸","雫"],qián:["乹","亁","仱","偂","前","墘","媊","岒","拑","掮","榩","橬","歬","潛","潜","濳","灊","箝","葥","虔","軡","鈐","鉗","銭","錢","鎆","钤","钱","钳","靬","騚","騝","鰬","黔","黚"],suǒ:["乺","唢","嗩","所","暛","溑","溹","琐","琑","瑣","索","褨","鎖","鎻","鏁","锁"],yú:["乻","于","亐","伃","余","堣","堬","妤","娛","娯","娱","嬩","崳","嵎","嵛","愚","扵","揄","旟","楡","楰","榆","欤","歈","歟","歶","渔","渝","湡","漁","澞","牏","狳","玗","玙","瑜","璵","盂","睮","窬","竽","籅","羭","腴","臾","舁","舆","艅","茰","萮","萸","蕍","蘛","虞","虶","蝓","螸","衧","褕","覦","觎","諛","謣","谀","踰","輿","轝","逾","邘","酑","鍝","隅","雓","雩","餘","馀","騟","骬","髃","魚","魣","鮽","鯲","鰅","鱼","鷠","鸆","齵"],zhù:["乼","伫","佇","住","坾","墸","壴","嵀","拀","杼","柱","樦","殶","注","炷","疰","眝","祝","祩","竚","筯","箸","篫","簗","紵","紸","纻","羜","翥","苎","莇","蛀","註","貯","贮","跓","軴","鉒","鋳","鑄","铸","馵","駐","驻"],zhě:["乽","者","褶","襵","赭","踷","鍺","锗"],"qián gān":["乾"],"zhì luàn":["乿"],guī:["亀","圭","妫","媯","嫢","嬀","帰","归","摫","椝","槻","槼","櫷","歸","珪","瑰","璝","瓌","皈","瞡","硅","茥","蘬","規","规","邽","郌","閨","闺","騩","鬶","鬹"],"lǐn lìn":["亃"],jué:["亅","决","刔","劂","匷","厥","噊","孒","孓","崛","崫","嶥","彏","憠","憰","戄","抉","挗","掘","攫","桷","橛","橜","欮","氒","決","灍","焳","熦","爑","爴","爵","獗","玃","玦","玨","珏","瑴","瘚","矍","矡","砄","絕","絶","绝","臄","芵","蕝","蕨","虳","蟨","蟩","觖","觮","觼","訣","譎","诀","谲","貜","赽","趉","蹷","躩","鈌","鐍","鐝","钁","镢","鴂","鴃","鷢","𫘝","㵐","𫔎"],"le liǎo":["了"],"gè mā":["亇"],"yǔ yú":["予","懙"],zhēng:["争","佂","凧","姃","媜","峥","崝","崢","征","徰","炡","烝","爭","狰","猙","癥","眐","睁","睜","筝","箏","篜","聇","脀","蒸","踭","鉦","錚","鏳","鬇"],èr:["二","刵","咡","弍","弐","樲","誀","貮","貳","贰","髶"],chù:["亍","傗","儊","怵","憷","搐","斶","歜","珿","琡","矗","竌","絀","绌","臅","触","觸","豖","鄐","閦","黜"],kuī:["亏","刲","岿","巋","盔","窥","窺","聧","虧","闚","顝"],yún:["云","伝","勻","匀","囩","妘","愪","抣","昀","橒","沄","涢","溳","澐","熉","畇","秐","筼","篔","紜","縜","纭","耘","芸","蒷","蕓","郧","鄖","鋆","雲"],hù:["互","冱","嗀","嚛","婟","嫭","嫮","岵","帍","弖","怙","戶","户","戸","戽","扈","护","昈","槴","沍","沪","滬","熩","瓠","祜","笏","簄","粐","綔","蔰","護","豰","鄠","鍙","頀","鱯","鳠","鳸","鸌","鹱"],qí:["亓","剘","埼","岐","岓","崎","嵜","愭","掑","斉","斊","旂","旗","棊","棋","檱","櫀","歧","淇","濝","猉","玂","琦","琪","璂","畦","疧","碁","碕","祁","祈","祺","禥","竒","簯","簱","籏","粸","綥","綦","肵","脐","臍","艩","芪","萁","萕","蕲","藄","蘄","蚑","蚚","蛴","蜝","蜞","螧","蠐","褀","軝","鄿","釮","錡","锜","陭","頎","颀","騎","騏","騹","骐","骑","鬐","鬿","鯕","鰭","鲯","鳍","鵸","鶀","麒","麡","𨙸","𬨂","䓫"],jǐng:["井","儆","刭","剄","坓","宑","幜","憬","暻","殌","汫","汬","澋","璄","璟","璥","穽","肼","蟼","警","阱","頚","頸"],sì:["亖","佀","価","儩","兕","嗣","四","姒","娰","孠","寺","巳","柶","榹","汜","泗","泤","洍","洠","涘","瀃","牭","祀","禩","竢","笥","耜","肂","肆","蕼","覗","貄","釲","鈶","鈻","飤","飼","饲","駟","騃","驷"],suì:["亗","嬘","岁","嵗","旞","檖","歲","歳","澻","煫","燧","璲","砕","碎","祟","禭","穂","穗","穟","繀","繐","繸","襚","誶","譢","谇","賥","邃","鐆","鐩","隧","韢","𫟦","𬭼"],gèn:["亘","亙","揯","搄","茛"],yà:["亚","亜","俹","冴","劜","圔","圠","埡","娅","婭","揠","氩","氬","犽","砑","稏","聐","襾","覀","訝","讶","迓","齾"],"xiē suò":["些"],"qí zhāi":["亝","齊"],"yā yà":["亞","压","垭","壓","铔"],"jí qì":["亟","焏"],tóu:["亠","投","頭","骰"],"wáng wú":["亡"],"kàng háng gāng":["亢"],dà:["亣","眔"],jiāo:["交","僬","娇","嬌","峧","嶕","嶣","憍","椒","浇","澆","焦","礁","穚","簥","胶","膠","膲","茭","茮","蕉","虠","蛟","蟭","跤","轇","郊","鐎","驕","骄","鮫","鲛","鵁","鷦","鷮","鹪","䴔"],hài:["亥","嗐","害","氦","餀","饚","駭","駴","骇"],"hēng pēng":["亨"],mǔ:["亩","姆","峔","拇","母","牡","牳","畂","畆","畒","畝","畞","畮","砪","胟","踇","鉧","𬭁","𧿹"],ye:["亪"],xiǎng:["享","亯","响","想","晑","蚃","蠁","響","飨","餉","饗","饷","鮝","鯗","鱶","鲞"],jīng:["京","亰","兢","坕","坙","婛","惊","旌","旍","晶","橸","泾","涇","猄","睛","秔","稉","粳","精","経","經","綡","聙","腈","茎","荆","荊","菁","葏","驚","鯨","鲸","鶁","鶄","麖","麠","鼱","䴖"],tíng:["亭","停","婷","嵉","庭","廷","楟","榳","筳","聤","莛","葶","蜓","蝏","諪","邒","霆","鼮","䗴"],liàng:["亮","喨","悢","晾","湸","諒","谅","輌","輛","辆","鍄"],"qīn qìng":["亲","親"],bó:["亳","仢","侼","僰","博","帛","愽","懪","挬","搏","欂","浡","淿","渤","煿","牔","狛","瓝","礴","秡","箔","簙","糪","胉","脖","膊","舶","艊","萡","葧","袯","襏","襮","謈","踣","郣","鈸","鉑","鋍","鎛","鑮","钹","铂","镈","餺","馎","馛","馞","駁","駮","驳","髆","鵓","鹁"],yòu:["亴","佑","佦","侑","又","右","哊","唀","囿","姷","宥","峟","幼","狖","祐","蚴","誘","诱","貁","迶","酭","釉","鼬"],xiè:["亵","伳","偞","偰","僁","卨","卸","噧","塮","夑","媟","屑","屧","廨","徢","懈","暬","械","榍","榭","泻","洩","渫","澥","瀉","瀣","灺","炧","炨","燮","爕","獬","祄","禼","糏","紲","絏","絬","繲","纈","绁","缷","薢","薤","蟹","蠏","褉","褻","謝","谢","躞","邂","靾","韰","齂","齘","齛","齥","𬹼","𤫉"],"dǎn dàn":["亶","馾"],lián:["亷","劆","匲","匳","嗹","噒","奁","奩","嫾","帘","廉","怜","憐","涟","漣","濂","濓","瀮","熑","燫","簾","籢","籨","縺","翴","联","聨","聫","聮","聯","臁","莲","蓮","薕","螊","蠊","裢","褳","覝","謰","蹥","连","連","鎌","鐮","镰","鬑","鰱","鲢"],duǒ:["亸","哚","嚲","埵","崜","朵","朶","綞","缍","趓","躱","躲","軃"],"wěi mén":["亹","斖"],rén:["人","亻","仁","壬","忈","忎","朲","秂","芢","魜","鵀"],jí:["亼","亽","伋","佶","偮","卙","即","卽","及","叝","吉","堲","塉","姞","嫉","岌","嵴","嶯","彶","忣","急","愱","戢","揤","极","棘","楫","極","槉","檝","殛","汲","湒","潗","疾","瘠","皍","笈","箿","籍","級","级","膌","艥","蒺","蕀","蕺","蝍","螏","襋","觙","谻","踖","蹐","躤","輯","轚","辑","郆","銡","鍓","鏶","集","雧","霵","鹡","㴔"],wáng:["亾","仼","兦","莣","蚟"],"shén shí":["什"],lè:["仂","叻","忇","氻","泐","玏","砳","簕","艻","阞","韷","餎","鰳","鱳","鳓"],dīng:["仃","叮","帄","玎","疔","盯","耵","虰","靪"],zè:["仄","崱","庂","捑","昃","昗","汄"],"jǐn jìn":["仅","僅","嫤"],"pú pū":["仆"],"chóu qiú":["仇"],zhǎng:["仉","幥","掌","礃"],jīn:["今","堻","巾","惍","斤","津","珒","琻","璡","砛","筋","荕","衿","襟","觔","金","釒","釿","钅","鹶","黅","𬬱"],bīng:["仌","仒","兵","冫","冰","掤","氷","鋲"],réng:["仍","礽","芿","辸","陾"],fó:["仏","坲","梻"],"jīn sǎn":["仐"],lún:["仑","伦","侖","倫","囵","圇","婨","崘","崙","棆","沦","淪","磮","腀","菕","蜦","踚","輪","轮","錀","陯","鯩","𬬭"],cāng:["仓","仺","倉","凔","嵢","沧","滄","濸","獊","舱","艙","苍","蒼","螥","鸧"],"zǎi zǐ zī":["仔"],tā:["他","塌","它","榙","溻","牠","祂","褟","趿","遢","闧"],fù:["付","偩","傅","冨","副","咐","坿","复","妇","婦","媍","嬔","富","復","椱","祔","禣","竎","緮","縛","缚","腹","萯","蕧","蚹","蛗","蝜","蝮","袝","複","覄","覆","訃","詂","讣","負","賦","賻","负","赋","赙","赴","輹","鍑","鍢","阜","附","馥","駙","驸","鮒","鰒","鲋","鳆","㳇"],xiān:["仙","仚","佡","僊","僲","先","嘕","奾","屳","廯","忺","憸","掀","暹","杴","氙","珗","祆","秈","籼","繊","纎","纖","苮","褼","襳","跹","蹮","躚","酰","鍁","锨","韯","韱","馦","鱻","鶱","𬸣"],"tuō chà duó":["仛"],hóng:["仜","吰","垬","妅","娂","宏","宖","弘","彋","汯","泓","洪","浤","渱","潂","玒","玜","竑","竤","篊","粠","紘","紭","綋","纮","翃","翝","耾","苰","荭","葒","葓","谹","谼","鈜","鉷","鋐","閎","闳","霐","霟","鞃","魟","鴻","鸿","黉","黌","𫟹","𬭎"],tóng:["仝","佟","哃","峂","峝","庝","彤","晍","曈","桐","氃","浵","潼","犝","獞","眮","瞳","砼","秱","童","粡","膧","茼","蚒","詷","赨","酮","鉖","鉵","銅","铜","餇","鮦","鲖","𫍣","𦒍"],rèn:["仞","仭","刃","刄","妊","姙","屻","岃","扨","牣","祍","紉","紝","絍","纫","纴","肕","腍","衽","袵","訒","認","认","讱","軔","轫","鈓","靭","靱","韌","韧","飪","餁","饪"],qiān:["仟","佥","僉","千","圲","奷","孯","岍","悭","愆","慳","扦","拪","搴","撁","攐","攑","攓","杄","櫏","汘","汧","牵","牽","竏","签","簽","籖","籤","粁","芊","茾","蚈","褰","諐","謙","谦","谸","迁","遷","釺","鈆","鉛","鏲","钎","阡","韆","顅","騫","骞","鬜","鬝","鵮","鹐"],"gǎn hàn":["仠"],"yì gē":["仡"],dài:["代","侢","叇","垈","埭","岱","帒","带","帯","帶","廗","怠","戴","曃","柋","殆","瀻","玳","瑇","甙","簤","紿","緿","绐","艜","蝳","袋","襶","貣","贷","蹛","軑","軚","軩","轪","迨","霴","靆","鴏","黛","黱"],"lìng líng lǐng":["令"],chào:["仦","耖","觘"],"cháng zhǎng":["仧","兏","長","长"],sā:["仨"],cháng:["仩","偿","償","嘗","嚐","嫦","尝","常","徜","瑺","瓺","甞","肠","腸","膓","苌","萇","镸","鱨","鲿"],yí:["仪","侇","儀","冝","匜","咦","圯","夷","姨","宐","宜","宧","寲","峓","嶬","嶷","巸","彛","彜","彝","彞","怡","恞","扅","暆","栘","椬","椸","沂","洟","熪","瓵","痍","移","簃","籎","羠","胰","萓","蛦","螔","觺","謻","貽","贻","跠","迻","遺","鏔","頉","頤","頥","顊","颐","饴","鮧","鴺"],mù:["仫","凩","募","墓","幕","幙","慔","慕","暮","暯","木","楘","毣","沐","炑","牧","狇","目","睦","穆","艒","苜","莯","蚞","鉬","钼","雮","霂"],"men mén":["们"],fǎn:["仮","反","橎","返"],"chào miǎo":["仯"],"yǎng áng":["仰"],zhòng:["仲","众","堹","妕","媑","狆","眾","祌","筗","茽","蚛","衆","衶","諥"],"pǐ pí":["仳"],wò:["仴","偓","卧","媉","幄","握","楃","沃","渥","濣","瓁","瞃","硪","肟","腛","臥","齷","龌"],jiàn:["件","俴","健","僭","剑","剣","剱","劍","劎","劒","劔","墹","寋","建","徤","擶","旔","楗","毽","洊","涧","澗","牮","珔","瞷","磵","礀","箭","糋","繝","腱","臶","舰","艦","荐","薦","覸","諓","諫","譛","谏","賎","賤","贱","趝","践","踐","踺","轞","鉴","鍳","鍵","鐱","鑑","鑒","鑬","鑳","键","間","餞","饯","𬣡"],"jià jiè jie":["价"],"yǎo fó":["仸"],"rèn rén":["任"],"fèn bīn":["份"],dī:["仾","低","啲","埞","堤","岻","彽","樀","滴","磾","秪","羝","袛","趆","隄","鞮","䃅"],fǎng:["仿","倣","旊","昉","昘","瓬","眆","紡","纺","舫","訪","访","髣","鶭"],zhōng:["伀","刣","妐","幒","彸","忠","柊","汷","泈","炂","盅","籦","終","终","舯","蔠","蜙","螤","螽","衳","衷","蹱","鈡","鍾","鐘","钟","锺","鴤","鼨"],pèi:["伂","佩","姵","帔","斾","旆","沛","浿","珮","蓜","轡","辔","配","霈","馷"],diào:["伄","吊","弔","掉","瘹","盄","窎","窵","竨","訋","釣","鈟","銱","鋽","鑃","钓","铞","雿","魡"],dùn:["伅","潡","炖","燉","盾","砘","碷","踲","逇","遁","遯","鈍","钝"],wěn:["伆","刎","吻","呅","抆","桽","稳","穏","穩","紊","肳","脗"],xǐn:["伈"],kàng:["伉","匟","囥","抗","炕","鈧","钪"],ài:["伌","僾","塧","壒","嫒","嬡","愛","懓","暧","曖","爱","瑷","璦","皧","瞹","砹","硋","碍","礙","薆","譺","賹","鑀","隘","靉","餲","馤","鱫","鴱"],"jì qí":["伎","薺"],"xiū xǔ":["休"],"jìn yín":["伒"],dǎn:["伔","刐","撢","玬","瓭","紞","胆","膽","衴","賧","赕","黕","𬘘"],fū:["伕","呋","娐","孵","尃","怤","懯","敷","旉","玞","砆","稃","筟","糐","綒","肤","膚","荂","荴","衭","趺","跗","邞","鄜","酜","鈇","麩","麬","麱","麸","𫓧"],tǎng:["伖","傥","儻","埫","戃","曭","爣","矘","躺","鎲","钂","镋"],yōu:["优","優","呦","嚘","峳","幽","忧","悠","憂","攸","櫌","滺","瀀","纋","羪","耰","逌","鄾","麀"],huǒ:["伙","夥","火","煷","邩","鈥","钬"],"huì kuài":["会","會","浍","璯"],yǔ:["伛","俁","俣","偊","傴","匬","噳","圄","圉","宇","寙","屿","嶼","庾","挧","敔","斞","楀","瑀","瘐","祤","禹","穥","窳","羽","與","萭","貐","鄅","頨","麌","齬","龉","㺄"],cuì:["伜","啛","忰","悴","毳","淬","焠","疩","瘁","竁","粋","粹","紣","綷","翆","翠","脃","脆","脺","膬","膵","臎","萃","襊","顇"],sǎn:["伞","傘","糤","繖","饊","馓"],wěi:["伟","伪","偉","偽","僞","儰","娓","寪","屗","崣","嶉","徫","愇","捤","暐","梶","洧","浘","渨","炜","煒","猥","玮","瑋","痿","緯","纬","腲","艉","芛","苇","荱","萎","葦","蒍","蔿","蜼","諉","诿","踓","鍡","韑","韙","韡","韪","頠","颹","骩","骪","骫","鮪","鲔","𫇭","𬀩","𬱟"],"chuán zhuàn":["传","傳"],"chē jū":["伡","俥","车"],"jū chē":["車"],yá:["伢","厑","厓","堐","岈","崕","崖","涯","漄","牙","玡","琊","睚","笌","芽","蚜","衙","齖"],qiàn:["伣","俔","倩","儙","刋","壍","嬱","悓","棈","椠","槧","欠","歉","皘","篏","篟","縴","芡","蒨","蔳","輤","𬘬"],shāng:["伤","傷","商","墒","慯","殇","殤","滳","漡","熵","蔏","螪","觞","觴","謪","鬺"],chāng:["伥","倀","娼","昌","椙","淐","猖","琩","菖","裮","錩","锠","閶","阊","鯧","鲳","鼚"],"chen cāng":["伧"],xùn:["伨","侚","卂","噀","巺","巽","徇","愻","殉","殾","汛","潠","狥","蕈","訊","訓","訙","训","讯","迅","迿","逊","遜","鑂","顨","馴","驯"],xìn:["伩","囟","孞","脪","舋","衅","訫","釁","阠","顖"],chǐ:["伬","侈","卶","叺","呎","垑","恥","歯","耻","肔","胣","蚇","裭","褫","豉","鉹","齒","齿"],"xián xuán":["伭"],"nú nǔ":["伮"],"bó bǎi":["伯"],"gū gù":["估"],nǐ:["伱","你","儞","孴","拟","擬","旎","晲","狔","苨","薿","隬"],"nì ní":["伲"],bàn:["伴","办","半","姅","怑","扮","瓣","秚","絆","绊","辦","鉡","靽"],xù:["伵","侐","勖","勗","卹","叙","垿","壻","婿","序","恤","敍","敘","旭","昫","朂","槒","欰","殈","汿","沀","洫","溆","漵","潊","烅","烼","煦","獝","珬","盢","瞁","稸","絮","続","緒","緖","續","绪","续","聓","聟","蓄","藚","訹","賉","酗","頊","鱮","㳚"],zhòu:["伷","僽","冑","呪","咒","咮","宙","昼","晝","甃","皱","皺","籀","籒","籕","粙","紂","縐","纣","绉","胄","荮","葤","詋","酎","駎","驟","骤","㤘","㑇"],shēn:["伸","侁","兟","呻","堔","妽","娠","屾","峷","扟","敒","曑","柛","氠","深","燊","珅","甡","甧","申","眒","砷","穼","籶","籸","糂","紳","绅","罙","罧","葠","蓡","蔘","薓","裑","訷","詵","诜","身","駪","鯓","鯵","鰺","鲹","鵢","𬳽"],qū:["伹","佉","匤","呿","坥","屈","岖","岴","嶇","憈","抾","敺","浀","煀","祛","筁","粬","胠","蛆","蛐","袪","覻","詘","诎","趍","躯","軀","阹","駆","駈","驅","驱","髷","魼","鰸","鱋","鶌","麯","麴","麹","黢","㭕","𪨰","䓛"],"sì cì":["伺"],bēng:["伻","嘣","奟","崩","嵭","閍"],"sì shì":["似"],"jiā qié gā":["伽"],"yǐ chì":["佁"],"diàn tián":["佃","钿"],"hān gàn":["佄"],mài:["佅","劢","勱","卖","唛","売","脈","衇","賣","迈","邁","霡","霢","麥","麦","鿏"],dàn:["但","僤","啖","啗","啿","噉","嚪","帎","憺","旦","柦","氮","沊","泹","淡","狚","疍","癚","禫","窞","腅","萏","蓞","蛋","蜑","觛","訑","誕","诞","贉","霮","餤","饏","駳","髧","鴠","𫢸"],bù:["佈","勏","吥","咘","埗","埠","布","廍","怖","悑","步","歨","歩","瓿","篰","荹","蔀","踄","部","郶","鈈","钚","餢"],bǐ:["佊","俾","匕","夶","妣","彼","朼","柀","比","毞","沘","疕","秕","笔","筆","粃","聛","舭","貏","鄙"],"zhāo shào":["佋"],cǐ:["佌","此","泚","皉","𫚖"],wèi:["位","卫","味","喂","墛","媦","慰","懀","未","渭","煟","熭","犚","猬","畏","緭","罻","胃","苿","菋","藯","蘶","蝟","螱","衛","衞","褽","謂","讆","讏","谓","躗","躛","軎","轊","鏏","霨","餧","餵","饖","魏","鮇","鳚"],zuǒ:["佐","左","繓"],yǎng:["佒","傟","养","坱","岟","慃","懩","攁","氧","氱","炴","痒","癢","礢","紻","蝆","軮","養","駚"],"tǐ tī":["体","體"],zhàn:["佔","偡","嶘","战","戦","戰","栈","桟","棧","湛","站","綻","绽","菚","蘸","虥","虦","譧","轏","驏"],"hé hē hè":["何"],bì:["佖","咇","哔","嗶","坒","堛","壁","奰","妼","婢","嬖","币","幣","幤","庇","庳","廦","弊","弻","弼","彃","必","怭","愊","愎","敝","斃","梐","毕","毖","毙","湢","滗","滭","潷","煏","熚","狴","獘","獙","珌","璧","畀","畢","疪","痹","痺","皕","睤","碧","筚","箅","箆","篦","篳","粊","綼","縪","繴","罼","腷","苾","荜","萆","萞","蓖","蓽","蔽","薜","蜌","袐","襅","襞","襣","觱","詖","诐","貱","贔","赑","跸","蹕","躃","躄","避","邲","鄨","鄪","鉍","鏎","鐴","铋","閇","閉","閟","闭","陛","韠","飶","饆","馝","駜","驆","髀","魓","鮅","鷝","鷩","鼊"],tuó:["佗","坨","堶","岮","槖","橐","沱","砣","砤","碢","紽","詑","跎","酡","阤","陀","陁","駝","駞","騨","驒","驝","驼","鮀","鴕","鸵","鼉","鼍","鼧","𬶍"],shé:["佘","舌","虵","蛥"],"yì dié":["佚","昳","泆","軼"],"fó fú bì bó":["佛"],"zuò zuō":["作"],gōu:["佝","沟","溝","痀","篝","簼","緱","缑","袧","褠","鈎","鉤","钩","鞲","韝"],nìng:["佞","侫","倿","寕","泞","澝","濘"],qú:["佢","劬","戵","斪","欋","欔","氍","淭","灈","爠","璖","璩","癯","磲","籧","絇","胊","臞","菃","葋","蕖","蘧","蟝","蠷","蠼","衐","衢","躣","軥","鑺","鴝","鸜","鸲","鼩"],"yōng yòng":["佣"],wǎ:["佤","咓","砙","邷"],kǎ:["佧","垰","胩","裃","鉲"],bāo:["佨","勹","包","孢","煲","笣","胞","苞","蕔","裦","褒","襃","闁","齙","龅"],"huái huí":["佪"],"gé hè":["佫"],lǎo:["佬","咾","恅","栳","狫","珯","硓","老","耂","荖","蛯","轑","銠","铑","鮱"],xiáng:["佭","庠","栙","祥","絴","翔","詳","跭"],gé:["佮","匌","呄","嗝","塥","愅","挌","搿","槅","櫊","滆","膈","臵","茖","觡","諽","輵","轕","閣","阁","隔","鞷","韐","韚","騔","骼","鮯"],yáng:["佯","劷","垟","崸","徉","扬","揚","敭","旸","昜","暘","杨","楊","洋","炀","珜","疡","瘍","眻","蛘","諹","輰","鍚","钖","阦","阳","陽","霷","颺","飏","鰑","鴹","鸉"],bǎi:["佰","捭","摆","擺","栢","百","竡","粨","襬"],fǎ:["佱","峜","法","灋","砝","鍅"],mǐng:["佲","凕","姳","慏","酩"],"èr nài":["佴"],hěn:["佷","很","狠","詪","𬣳"],huó:["佸","活"],guǐ:["佹","匦","匭","厬","垝","姽","宄","庋","庪","恑","晷","湀","癸","祪","簋","蛫","蟡","觤","詭","诡","軌","轨","陒","鬼"],quán:["佺","全","啳","埢","姾","峑","巏","拳","搼","权","楾","権","權","泉","洤","湶","牷","犈","瑔","痊","硂","筌","縓","荃","葲","蜷","蠸","觠","詮","诠","跧","踡","輇","辁","醛","銓","铨","闎","顴","颧","駩","騡","鬈","鰁","鳈","齤"],tiāo:["佻","庣","旫","祧","聎"],jiǎo:["佼","儌","孂","挢","搅","撟","撹","攪","敫","敽","敿","晈","暞","曒","灚","燞","狡","璬","皎","皦","絞","纐","绞","腳","臫","蟜","譑","賋","踋","鉸","铰","餃","饺","鱎","龣"],cì:["佽","刾","庛","朿","栨","次","絘","茦","莿","蛓","螆","賜","赐"],xíng:["侀","刑","哘","型","娙","形","洐","硎","蛵","邢","郉","鈃","鉶","銒","钘","铏","陉","陘","餳","𫰛"],tuō:["侂","咃","咜","圫","托","拕","拖","汑","脫","脱","莌","袥","託","讬","飥","饦","魠","鮵"],kǎn:["侃","偘","冚","坎","惂","砍","莰","輡","轗","顑"],zhí:["侄","値","值","埴","執","姪","嬂","戠","执","摭","植","樴","淔","漐","直","禃","絷","縶","聀","职","職","膱","蟙","跖","踯","蹠","躑","軄","釞","馽"],gāi:["侅","垓","姟","峐","晐","畡","祴","荄","該","该","豥","賅","賌","赅","陔"],lái:["來","俫","倈","崃","崍","庲","来","梾","棶","涞","淶","猍","琜","筙","箂","莱","萊","逨","郲","錸","铼","騋","鯠","鶆","麳"],kuǎ:["侉","咵","垮","銙"],gōng:["侊","公","功","匑","匔","塨","宫","宮","工","幊","弓","恭","攻","杛","碽","糼","糿","肱","觥","觵","躬","躳","髸","龔","龚","䢼"],lì:["例","俐","俪","傈","儮","儷","凓","利","力","励","勵","历","厉","厤","厯","厲","叓","吏","呖","唎","唳","嚦","囇","坜","塛","壢","娳","婯","屴","岦","悧","悷","慄","戾","搮","暦","曆","曞","朸","枥","栃","栗","栛","檪","櫔","櫪","欐","歴","歷","沥","沴","涖","溧","濿","瀝","爏","犡","猁","珕","瑮","瓅","瓑","瓥","疬","痢","癧","盭","睙","砅","砺","砾","磿","礪","礫","礰","禲","秝","立","笠","篥","粒","粝","糲","脷","苈","茘","荔","莅","莉","蒚","蒞","藶","蚸","蛎","蛠","蜧","蝷","蠇","蠣","詈","讈","赲","轢","轣","轹","酈","鉝","隶","隷","雳","靂","靋","鬁","鳨","鴗","鷅","麜","𫵷","𬍛"],yīn:["侌","凐","喑","噾","囙","因","垔","堙","姻","婣","愔","慇","栶","氤","洇","溵","濦","瘖","禋","秵","筃","絪","緸","茵","蒑","蔭","裀","諲","銦","铟","闉","阥","阴","陰","陻","隂","霒","霠","鞇","音","韾","駰","骃","齗","𬘡","𬤇","𬮱"],mǐ:["侎","孊","弭","敉","洣","渳","灖","米","粎","羋","脒","芈","葞","蔝","銤"],zhū:["侏","株","槠","橥","櫧","櫫","洙","潴","瀦","猪","珠","硃","秼","絑","茱","蕏","蛛","蝫","蠩","袾","誅","諸","诛","诸","豬","跦","邾","銖","铢","駯","鮢","鯺","鴸","鼄"],ān:["侒","偣","媕","安","峖","庵","桉","氨","盦","盫","腤","菴","萻","葊","蓭","誝","諳","谙","鞌","鞍","韽","馣","鮟","鵪","鶕","鹌","𩽾"],lù:["侓","僇","勎","勠","圥","坴","塶","娽","峍","廘","彔","录","戮","摝","椂","樚","淕","淥","渌","漉","潞","琭","璐","甪","盝","睩","硉","祿","禄","稑","穋","箓","簏","簬","簵","簶","籙","粶","蔍","蕗","虂","螰","賂","赂","趢","路","踛","蹗","輅","轆","辂","辘","逯","醁","錄","録","錴","鏴","陸","騄","騼","鯥","鴼","鵦","鵱","鷺","鹭","鹿","麓","𫘧"],móu:["侔","劺","恈","眸","蛑","謀","谋","踎","鍪","鴾","麰"],ér:["侕","儿","児","兒","峏","栭","洏","粫","而","胹","荋","袻","輀","轜","陑","隭","髵","鮞","鲕","鴯","鸸"],"dòng tǒng tóng":["侗"],chà:["侘","奼","姹","岔","汊","詫","诧"],chì:["侙","傺","勅","勑","叱","啻","彳","恜","慗","憏","懘","抶","敕","斥","杘","湁","灻","炽","烾","熾","痓","痸","瘛","翄","翅","翤","翨","腟","赤","趩","遫","鉓","雴","飭","饬","鶒","鷘"],"gòng gōng":["供","共"],zhōu:["侜","周","喌","州","徟","洲","淍","炿","烐","珘","矪","舟","謅","譸","诌","賙","赒","輈","輖","辀","週","郮","銂","霌","駲","騆","鵃","鸼"],rú:["侞","儒","嚅","如","嬬","孺","帤","曘","桇","渪","濡","筎","茹","蕠","薷","蝡","蠕","袽","襦","邚","醹","銣","铷","顬","颥","鱬","鴑","鴽"],"jiàn cún":["侟"],xiá:["侠","俠","匣","峡","峽","敮","暇","柙","炠","烚","狎","狭","狹","珨","瑕","硖","硤","碬","祫","筪","縖","翈","舝","舺","蕸","赮","轄","辖","遐","鍜","鎋","陜","陿","霞","騢","魻","鶷","黠"],lǚ:["侣","侶","儢","吕","呂","屡","屢","履","挔","捛","旅","梠","焒","祣","稆","穭","絽","縷","缕","膂","膐","褛","褸","郘","鋁","铝"],ta:["侤"],"jiǎo yáo":["侥","僥","徺"],zhēn:["侦","偵","寊","帧","帪","幀","搸","斟","桢","楨","榛","樼","殝","浈","湞","潧","澵","獉","珍","珎","瑧","甄","眞","真","砧","碪","祯","禎","禛","箴","胗","臻","葴","蒖","蓁","薽","貞","贞","轃","遉","酙","針","鉁","錱","鍼","针","鱵"],"cè zè zhāi":["侧","側"],kuài:["侩","儈","凷","哙","噲","圦","块","塊","巜","廥","快","旝","欳","狯","獪","筷","糩","脍","膾","郐","鄶","鱠","鲙"],chái:["侪","儕","喍","柴","犲","祡","豺"],nóng:["侬","儂","农","哝","噥","檂","欁","浓","濃","燶","禯","秾","穠","脓","膿","蕽","襛","譨","農","辳","醲","鬞","𬪩"],jǐn:["侭","儘","卺","厪","巹","槿","漌","瑾","紧","緊","菫","蓳","謹","谨","錦","锦","饉","馑"],"hóu hòu":["侯","矦"],jiǒng:["侰","僒","冏","囧","泂","澃","炯","烱","煚","煛","熲","燛","窘","綗","褧","迥","逈","顈","颎","䌹"],"chěng tǐng":["侱"],"zhèn zhēn":["侲","揕"],zuò:["侳","做","唑","坐","岝","岞","座","祚","糳","胙","葃","葄","蓙","袏","阼"],qīn:["侵","兓","媇","嵚","嶔","欽","衾","誛","钦","顉","駸","骎","鮼"],jú:["侷","啹","婅","局","巈","椈","橘","泦","淗","湨","焗","犑","狊","粷","菊","蘜","趜","跼","蹫","輂","郹","閰","駶","驧","鵙","鵴","鶪","鼰","鼳","䴗"],"shù dōu":["侸"],tǐng:["侹","圢","娗","挺","涏","烶","珽","脡","艇","誔","頲","颋"],shèn:["侺","愼","慎","昚","涁","渗","滲","瘆","瘮","眘","祳","肾","胂","脤","腎","蜃","蜄","鋠"],"tuì tuó":["侻"],nán:["侽","喃","娚","抩","暔","枏","柟","楠","男","畘","莮","萳","遖"],xiāo:["侾","哓","嘵","嚻","囂","婋","宯","宵","庨","彇","揱","枭","枵","梟","櫹","歊","毊","消","潇","瀟","灱","灲","烋","焇","猇","獢","痚","痟","硝","硣","窙","箫","簘","簫","綃","绡","翛","膮","萧","蕭","虈","虓","蟂","蟏","蟰","蠨","踃","逍","銷","销","霄","颵","驍","骁","髇","髐","魈","鴞","鴵","鷍","鸮"],"biàn pián":["便","緶","缏"],tuǐ:["俀","腿","蹆","骽"],xì:["係","匸","卌","呬","墍","屃","屓","屭","忥","怬","恄","椞","潝","潟","澙","熂","犔","磶","禊","細","綌","縘","细","绤","舃","舄","蕮","虩","衋","覤","赩","趇","郤","釳","阋","隙","隟","霼","餼","饩","鬩","黖"],cù:["促","媨","憱","猝","瘄","瘯","簇","縬","脨","蔟","誎","趗","踧","踿","蹙","蹴","蹵","醋","顣","鼀"],é:["俄","囮","娥","峉","峨","峩","涐","珴","皒","睋","磀","莪","訛","誐","譌","讹","迗","鈋","鋨","锇","頟","額","额","魤","鵝","鵞","鹅"],qiú:["俅","叴","唒","囚","崷","巯","巰","扏","梂","殏","毬","求","汓","泅","浗","湭","煪","犰","玌","球","璆","皳","盚","紌","絿","肍","芁","莍","虬","虯","蛷","裘","觓","觩","訄","訅","賕","赇","逎","逑","遒","酋","釚","釻","銶","頄","鮂","鯄","鰽","鼽","𨱇"],xú:["俆","徐","禑"],"guàng kuāng":["俇"],kù:["俈","喾","嚳","库","庫","廤","瘔","絝","绔","袴","裤","褲","酷"],wù:["俉","务","務","勿","卼","坞","塢","奦","婺","寤","屼","岉","嵨","忢","悞","悟","悮","戊","扤","晤","杌","溩","焐","熃","物","痦","矹","窹","粅","蘁","誤","误","鋈","阢","隖","雾","霚","霧","靰","騖","骛","鶩","鹜","鼿","齀"],jùn:["俊","儁","呁","埈","寯","峻","懏","捃","攟","晙","棞","燇","珺","畯","竣","箟","蜠","賐","郡","陖","餕","馂","駿","骏","鵔","鵕","鵘","䐃"],liáng:["俍","墚","梁","椋","樑","粮","粱","糧","良","輬","辌","𫟅"],zǔ:["俎","唨","爼","祖","組","组","詛","诅","鎺","阻","靻"],"qiào xiào":["俏"],yǒng:["俑","勇","勈","咏","埇","塎","嵱","彮","怺","恿","悀","惥","愑","愹","慂","柡","栐","永","泳","湧","甬","蛹","詠","踊","踴","鯒","鲬"],hùn:["俒","倱","圂","尡","慁","掍","溷","焝","睴","觨","諢","诨"],jìng:["俓","傹","境","妌","婙","婧","弪","弳","径","徑","敬","曔","桱","梷","浄","瀞","獍","痉","痙","竞","竟","竫","競","竸","胫","脛","莖","誩","踁","迳","逕","鏡","镜","靖","静","靜","鵛"],sàn:["俕","閐"],pěi:["俖"],sú:["俗"],xī:["俙","僖","兮","凞","卥","厀","吸","唏","唽","嘻","噏","嚱","夕","奚","嬆","嬉","屖","嵠","巇","希","徆","徯","息","悉","悕","惁","惜","昔","晞","晰","晳","曦","析","桸","榽","樨","橀","欷","氥","汐","浠","淅","渓","溪","烯","焁","焈","焟","熄","熈","熙","熹","熺","熻","燨","爔","牺","犀","犠","犧","琋","瘜","皙","睎","瞦","矽","硒","磎","礂","稀","穸","窸","粞","糦","緆","繥","羲","翕","翖","肸","肹","膝","舾","莃","菥","蒠","蜥","螅","蟋","蠵","西","觹","觽","觿","譆","谿","豀","豨","豯","貕","赥","邜","鄎","酅","醯","釸","錫","鏭","鐊","鑴","锡","隵","餏","饎","饻","鯑","鵗","鸂","鼷"],lǐ:["俚","娌","峢","峲","李","欚","浬","澧","理","礼","禮","粴","裏","裡","豊","逦","邐","醴","鋰","锂","鯉","鱧","鱱","鲤","鳢"],bǎo:["保","堢","媬","宝","寚","寳","寶","珤","緥","葆","藵","褓","賲","靌","飹","飽","饱","駂","鳵","鴇","鸨"],"yú shù yù":["俞"],"sì qí":["俟"],"xìn shēn":["信"],xiū:["俢","修","咻","庥","樇","烌","羞","脙","脩","臹","貅","銝","鎀","飍","饈","馐","髤","髹","鮴","鱃","鵂","鸺","䗛"],dì:["俤","偙","僀","埊","墑","墬","娣","帝","怟","旳","梊","焍","玓","甋","眱","睇","碲","祶","禘","第","締","缔","腣","菂","蒂","蔕","蝃","蝭","螮","諦","谛","踶","递","逓","遞","遰","鉪","𤧛","䗖"],chóu:["俦","儔","嬦","惆","愁","懤","栦","燽","畴","疇","皗","稠","筹","籌","絒","綢","绸","菗","詶","讎","讐","踌","躊","酧","酬","醻","雔","雠","雦"],zhì:["俧","偫","儨","制","劕","垁","娡","寘","帙","帜","幟","庢","庤","廌","彘","徏","徝","志","忮","懥","懫","挃","挚","掷","摯","擲","旘","晊","智","栉","桎","梽","櫍","櫛","治","洷","滍","滞","滯","潌","瀄","炙","熫","狾","猘","璏","瓆","痔","痣","礩","祑","秩","秷","稚","稺","穉","窒","紩","緻","置","翐","膣","至","致","芖","蛭","袟","袠","製","覟","觗","觯","觶","誌","豑","豒","貭","質","贄","质","贽","跱","踬","躓","輊","轾","郅","銍","鋕","鑕","铚","锧","陟","隲","雉","駤","騭","騺","驇","骘","鯯","鴙","鷙","鸷","𬃊"],"liǎ liǎng":["俩"],jiǎn:["俭","倹","儉","减","剪","堿","弿","彅","戩","戬","拣","挸","捡","揀","撿","枧","柬","梘","检","検","檢","減","湕","瀽","瑐","睑","瞼","硷","碱","礆","笕","筧","简","簡","絸","繭","翦","茧","藆","蠒","裥","襇","襉","襺","詃","謇","謭","譾","谫","趼","蹇","鐗","鬋","鰎","鹸","鹻","鹼"],huò:["俰","咟","嚯","嚿","奯","彠","惑","或","擭","旤","曤","檴","沎","湱","瀖","獲","癨","眓","矐","祸","禍","穫","窢","耯","臛","艧","获","蒦","藿","蠖","謋","貨","货","鍃","鑊","镬","雘","霍","靃","韄","㸌"],"jù jū":["俱","据","鋸","锯"],xiào:["俲","傚","効","咲","哮","啸","嘋","嘨","嘯","孝","效","斅","斆","歗","涍","熽","笑","詨","誟"],pái:["俳","徘","牌","犤","猅","簰","簲","輫"],biào:["俵","鰾","鳔"],"chù tì":["俶"],fèi:["俷","剕","厞","吠","屝","废","廃","廢","昲","曊","櫠","沸","濷","狒","癈","肺","萉","費","费","鐨","镄","陫","靅","鼣"],fèng:["俸","凤","奉","湗","焨","煈","賵","赗","鳯","鳳","鴌"],ǎn:["俺","唵","埯","揞","罯","銨","铵"],bèi:["俻","倍","偝","偹","備","僃","备","悖","惫","愂","憊","昁","梖","焙","牬","犕","狈","狽","珼","琲","碚","禙","糒","苝","蓓","蛽","褙","貝","贝","軰","輩","辈","邶","郥","鄁","鋇","鐾","钡","鞁","鞴","𬇙"],yù:["俼","儥","喅","喩","喻","域","堉","妪","嫗","寓","峪","嶎","庽","彧","御","愈","慾","戫","昱","棛","棜","棫","櫲","欎","欝","欲","毓","浴","淯","滪","潏","澦","灪","焴","煜","燏","燠","爩","狱","獄","玉","琙","瘉","癒","砡","硢","硲","礇","礖","礜","禦","秗","稢","稶","篽","籞","籲","粖","緎","罭","聿","肀","艈","芋","芌","茟","蒮","蓣","蓹","蕷","蘌","蜟","蜮","袬","裕","誉","諭","譽","谕","豫","軉","輍","逳","遇","遹","郁","醧","鈺","鋊","錥","鐭","钰","閾","阈","雤","霱","預","预","飫","饇","饫","馭","驈","驭","鬰","鬱","鬻","魊","鱊","鳿","鴥","鴧","鴪","鵒","鷸","鸒","鹆","鹬"],xīn:["俽","噺","妡","嬜","廞","心","忄","忻","惞","新","昕","杺","欣","歆","炘","盺","薪","訢","辛","邤","鈊","鋅","鑫","锌","馨","馫","䜣","𫷷"],"hǔ chí":["俿"],jiù:["倃","僦","匓","匛","匶","厩","咎","就","廄","廏","廐","慦","捄","救","旧","柩","柾","桕","欍","殧","疚","臼","舅","舊","鯦","鷲","鹫","麔","齨","㠇"],yáo:["倄","傜","嗂","垚","堯","姚","媱","尧","尭","峣","嶢","嶤","徭","揺","搖","摇","摿","暚","榣","烑","爻","猺","珧","瑤","瑶","磘","窑","窯","窰","肴","蘨","謠","謡","谣","軺","轺","遙","遥","邎","顤","颻","飖","餆","餚","鰩","鱙","鳐"],"cuì zú":["倅"],"liǎng liǎ":["倆"],wǎn:["倇","唍","婉","惋","挽","晚","晥","晩","晼","梚","椀","琬","畹","皖","盌","碗","綩","綰","绾","脘","萖","踠","輓","鋔"],zǒng:["倊","偬","傯","嵸","总","惣","捴","搃","摠","燪","総","緫","縂","總","蓗"],guān:["倌","关","官","棺","瘝","癏","窤","蒄","関","闗","關","鰥","鱞","鳏"],tiǎn:["倎","唺","忝","悿","晪","殄","淟","睓","腆","舔","覥","觍","賟","錪","餂"],mén:["們","扪","捫","璊","菛","虋","鍆","钔","門","閅","门","𫞩"],"dǎo dào":["倒"],"tán tàn":["倓","埮"],"juè jué":["倔"],chuí:["倕","垂","埀","捶","搥","桘","棰","槌","箠","腄","菙","錘","鎚","锤","陲","顀"],xìng:["倖","姓","婞","嬹","幸","性","悻","杏","涬","緈","臖","荇","莕","葕"],péng:["倗","傰","塜","塳","弸","憉","捀","朋","棚","椖","樥","硼","稝","竼","篷","纄","膨","芃","蓬","蘕","蟚","蟛","袶","輣","錋","鑝","韸","韼","騯","髼","鬅","鬔","鵬","鹏"],"tǎng cháng":["倘"],hòu:["候","厚","后","垕","堠","後","洉","茩","豞","逅","郈","鮜","鱟","鲎","鲘"],tì:["倜","剃","嚏","嚔","屉","屜","悌","悐","惕","惖","戻","掦","替","朑","歒","殢","涕","瓋","笹","籊","薙","褅","逖","逷","髰","鬀","鬄"],gàn:["倝","凎","幹","榦","檊","淦","灨","盰","紺","绀","詌","贑","赣","骭","㽏"],"liàng jìng":["倞","靓"],suī:["倠","哸","夊","滖","濉","眭","睢","芕","荽","荾","虽","雖","鞖"],"chàng chāng":["倡"],jié:["倢","偼","傑","刦","刧","刼","劫","劼","卩","卪","婕","媫","孑","岊","崨","嵥","嶻","巀","幯","截","捷","掶","擮","昅","杢","杰","桀","桝","楬","楶","榤","洁","滐","潔","狤","睫","礍","竭","節","羯","莭","蓵","蛣","蜐","蠘","蠞","蠽","衱","袺","訐","詰","誱","讦","踕","迼","鉣","鍻","镼","頡","鮚","鲒","㛃"],"kǒng kōng":["倥"],juàn:["倦","劵","奆","慻","桊","淃","狷","獧","眷","睊","睠","絭","絹","绢","罥","羂","腃","蔨","鄄","餋"],zōng:["倧","堫","宗","嵏","嵕","惾","朡","棕","椶","熧","猣","磫","緃","翪","腙","葼","蝬","豵","踨","踪","蹤","鍐","鑁","騌","騣","骔","鬃","鬉","鬷","鯮","鯼"],ní:["倪","坭","埿","尼","屔","怩","淣","猊","籾","聣","蚭","蜺","觬","貎","跜","輗","郳","鈮","铌","霓","馜","鯢","鲵","麑","齯","𫐐","𫠜"],zhuō:["倬","拙","捉","桌","梲","棁","棳","槕","涿","窧","鐯","䦃"],"wō wēi":["倭"],luǒ:["倮","剆","曪","瘰","癳","臝","蓏","蠃","裸","躶"],sōng:["倯","凇","娀","崧","嵩","庺","憽","松","枀","枩","柗","梥","檧","淞","濍","硹","菘","鬆"],lèng:["倰","堎","愣","睖","踜"],zì:["倳","剚","字","恣","渍","漬","牸","眥","眦","胔","胾","自","茡","荢"],bèn:["倴","坌","捹","撪","渀","笨","逩"],cǎi:["倸","啋","婇","彩","採","棌","毝","睬","綵","跴","踩"],zhài:["债","債","寨","瘵","砦"],yē:["倻","吔","噎","擨","暍","椰","歋","潱","蠮"],shà:["倽","唼","喢","歃","箑","翜","翣","萐","閯","霎"],qīng:["倾","傾","卿","圊","寈","氢","氫","淸","清","蜻","軽","輕","轻","郬","錆","鑋","靑","青","鯖"],yīng:["偀","嘤","噟","嚶","婴","媖","嫈","嬰","孆","孾","愥","撄","攖","朠","桜","樱","櫻","渶","煐","珱","瑛","璎","瓔","甇","甖","碤","礯","緓","纓","绬","缨","罂","罃","罌","膺","英","莺","蘡","蝧","蠳","褮","譻","賏","軈","鑍","锳","霙","韺","鴬","鶑","鶧","鶯","鷪","鷹","鸎","鸚","鹦","鹰","䓨"],"chēng chèn":["偁","爯"],ruǎn:["偄","朊","瑌","瓀","碝","礝","腝","軟","輭","软","阮"],"zhòng tóng":["偅"],chǔn:["偆","惷","睶","萶","蠢","賰"],"jiǎ jià":["假"],"jì jié":["偈"],"bǐng bìng":["偋"],ruò:["偌","叒","嵶","弱","楉","焫","爇","箬","篛","蒻","鄀","鰙","鰯","鶸"],tí:["偍","厗","啼","嗁","崹","漽","瑅","睼","禵","稊","緹","缇","罤","蕛","褆","謕","趧","蹄","蹏","醍","鍗","題","题","騠","鮷","鯷","鳀","鵜","鷤","鹈","𫘨"],wēi:["偎","危","喴","威","媙","嶶","巍","微","愄","揋","揻","椳","楲","溦","烓","煨","燰","癓","縅","葨","葳","薇","蜲","蝛","覣","詴","逶","隇","隈","霺","鰃","鰄","鳂"],piān:["偏","囨","媥","楄","犏","篇","翩","鍂"],yàn:["偐","厌","厭","唁","喭","嚈","嚥","堰","妟","姲","嬊","嬿","宴","彥","彦","敥","晏","暥","曕","曣","滟","灎","灔","灧","灩","焔","焰","焱","熖","燄","牪","猒","砚","硯","艳","艶","艷","覎","觃","觾","諺","讌","讞","谚","谳","豓","豔","贋","贗","赝","軅","酀","酽","醼","釅","雁","餍","饜","騐","験","騴","驗","驠","验","鬳","鳫","鴈","鴳","鷃","鷰","齞"],"tǎng dàng":["偒"],è:["偔","匎","卾","厄","呝","咢","噩","垩","堊","堮","岋","崿","廅","悪","愕","戹","扼","搤","搹","擜","櫮","歞","歺","湂","琧","砈","砐","硆","腭","苊","萼","蕚","蚅","蝁","覨","諤","讍","谔","豟","軛","軶","轭","遌","遏","遻","鄂","鈪","鍔","鑩","锷","阨","阸","頞","顎","颚","餓","餩","饿","鰐","鰪","鱷","鳄","鶚","鹗","齃","齶","𫫇","𥔲"],xié:["偕","勰","协","協","嗋","垥","奊","恊","愶","拹","携","撷","擕","擷","攜","斜","旪","熁","燲","綊","緳","縀","缬","翓","胁","脅","脇","脋","膎","蝢","衺","襭","諧","讗","谐","鞋","鞵","龤","㙦"],chě:["偖","扯","撦"],shěng:["偗","渻","眚"],chā:["偛","嗏","扠","挿","插","揷","疀","臿","艖","銟","鍤","锸","餷"],huáng:["偟","凰","喤","堭","墴","媓","崲","徨","惶","楻","湟","煌","獚","瑝","璜","癀","皇","磺","穔","篁","簧","艎","葟","蝗","蟥","諻","趪","遑","鍠","鐄","锽","隍","韹","餭","騜","鰉","鱑","鳇","鷬","黃","黄","𨱑"],yǎo:["偠","咬","婹","宎","岆","杳","柼","榚","溔","狕","窅","窈","舀","苭","闄","騕","鷕","齩"],"chǒu qiào":["偢"],yóu:["偤","尤","庮","怣","沋","油","浟","游","犹","猶","猷","由","疣","秞","肬","莜","莸","蕕","蚰","蝣","訧","輏","輶","逰","遊","邮","郵","鈾","铀","駀","魷","鮋","鱿","鲉","𬨎"],xū:["偦","墟","媭","嬃","楈","欨","歔","燸","疞","盱","綇","縃","繻","胥","蕦","虗","虚","虛","蝑","裇","訏","許","諝","譃","谞","鑐","需","須","须","顼","驉","鬚","魆","魖","𬣙","𦈡"],zhā:["偧","哳","抯","挓","揸","摣","樝","渣","皶","觰","譇","齄","齇"],cī:["偨","疵","蠀","趀","骴","髊","齹"],bī:["偪","屄","楅","毴","豍","逼","鰏","鲾","鵖"],xún:["偱","噚","寻","尋","峋","巡","廵","循","恂","揗","攳","旬","杊","栒","桪","樳","洵","浔","潯","燅","燖","珣","璕","畃","紃","荀","蟳","詢","询","鄩","鱏","鱘","鲟","𬘓","𬩽","𬍤","𬊈"],"cāi sī":["偲"],duān:["偳","媏","端","褍","鍴"],ǒu:["偶","吘","嘔","耦","腢","蕅","藕","𬉼","𠙶"],tōu:["偷","偸","鍮"],"zán zá zǎ":["偺"],"lǚ lóu":["偻","僂"],fèn:["偾","僨","奋","奮","弅","忿","愤","憤","瀵","瞓","秎","粪","糞","膹","鱝","鲼"],"kuǐ guī":["傀"],sǒu:["傁","叜","叟","嗾","櫢","瞍","薮","藪"],"zhì sī tí":["傂"],sù:["傃","僳","嗉","塐","塑","夙","嫊","愫","憟","榡","樎","樕","殐","泝","涑","溯","溸","潚","潥","玊","珟","璛","簌","粛","粟","素","縤","肃","肅","膆","蔌","藗","觫","訴","謖","诉","谡","趚","蹜","速","遡","遬","鋉","餗","驌","骕","鱐","鷫","鹔","𫗧"],xiā:["傄","煆","瞎","虲","谺","颬","鰕"],"yuàn yuán":["傆","媛"],rǒng:["傇","冗","宂","氄","軵"],nù:["傉","怒"],yùn:["傊","孕","恽","惲","愠","慍","枟","腪","蕴","薀","藴","蘊","褞","貟","运","運","郓","鄆","酝","醖","醞","韗","韞","韵","韻","餫"],"gòu jiǎng":["傋"],mà:["傌","嘜","榪","睰","祃","禡","罵","閁","駡","骂","鬕"],bàng:["傍","塝","棒","玤","稖","艕","蒡","蜯","謗","谤","鎊","镑"],diān:["傎","厧","嵮","巅","巓","巔","掂","攧","敁","槇","滇","癫","癲","蹎","顚","顛","颠","齻"],táng:["傏","唐","啺","坣","堂","塘","搪","棠","榶","溏","漟","煻","瑭","磄","禟","篖","糃","糖","糛","膅","膛","蓎","螗","螳","赯","踼","鄌","醣","鎕","隚","餹","饄","鶶","䣘"],hào:["傐","哠","恏","昊","昦","晧","暠","暤","暭","曍","浩","淏","澔","灏","灝","皓","皜","皞","皡","皥","耗","聕","薃","號","鄗","顥","颢","鰝"],"xī xì":["傒"],shān:["傓","删","刪","剼","圸","山","挻","搧","柵","檆","潸","澘","煽","狦","珊","笘","縿","羴","羶","脠","舢","芟","衫","跚","軕","邖","閊","鯅"],"qiàn jiān":["傔"],"què jué":["傕","埆"],"cāng chen":["傖"],róng:["傛","媶","嫆","嬫","容","峵","嵘","嶸","戎","搈","曧","栄","榕","榮","榵","毧","溶","瀜","烿","熔","狨","瑢","穁","絨","绒","羢","肜","茙","茸","荣","蓉","蝾","融","螎","蠑","褣","鎔","镕","駥"],"tà tàn":["傝"],suō:["傞","唆","嗍","嗦","娑","摍","桫","梭","睃","簑","簔","羧","莏","蓑","趖","鮻"],dǎi:["傣","歹"],zài:["傤","儎","再","在","扗","洅","載","酨"],gǔ:["傦","古","啒","尳","愲","榖","榾","汩","淈","濲","瀔","牯","皷","皼","盬","瞽","穀","罟","羖","股","脵","臌","薣","蛊","蠱","詁","诂","轂","逧","鈷","钴","餶","馉","鼓","鼔","𦙶"],bīn:["傧","宾","彬","斌","椕","滨","濒","濱","濵","瀕","繽","缤","虨","豩","豳","賓","賔","邠","鑌","镔","霦","顮"],chǔ:["储","儲","杵","椘","楚","楮","檚","濋","璴","础","礎","禇","處","齭","齼","𬺓"],nuó:["傩","儺","挪","梛","橠"],"cān càn":["傪"],lěi:["傫","儡","厽","垒","塁","壘","壨","櫐","灅","癗","矋","磊","礨","耒","蕌","蕾","藟","蘽","蠝","誄","讄","诔","鑸","鸓"],cuī:["催","凗","墔","崔","嵟","慛","摧","榱","獕","磪","鏙"],yōng:["傭","嗈","墉","壅","嫞","庸","廱","慵","拥","擁","滽","灉","牅","痈","癕","癰","臃","邕","郺","鄘","鏞","镛","雍","雝","饔","鱅","鳙","鷛"],"zāo cáo":["傮"],sǒng:["傱","嵷","怂","悚","愯","慫","竦","耸","聳","駷","㧐"],ào:["傲","坳","垇","墺","奡","嫯","岙","岰","嶴","懊","擙","澳","鏊","驁","骜"],"qī còu":["傶"],chuǎng:["傸","磢","闖","闯"],shǎ:["傻","儍"],hàn:["傼","垾","悍","憾","扞","捍","撖","撼","旱","晘","暵","汉","涆","漢","瀚","焊","猂","皔","睅","翰","莟","菡","蛿","蜭","螒","譀","輚","釬","銲","鋎","雗","頷","顄","颔","駻","鶾"],zhāng:["傽","嫜","张","張","彰","慞","暲","樟","漳","獐","璋","章","粻","蔁","蟑","遧","鄣","鏱","餦","騿","鱆","麞"],"yān yàn":["傿","墕","嬮"],"piào biāo":["僄","骠"],liàn:["僆","堜","媡","恋","戀","楝","殓","殮","湅","潋","澰","瀲","炼","煉","瑓","練","纞","练","萰","錬","鍊","鏈","链","鰊","𬶠"],màn:["㵘","僈","墁","幔","慢","曼","漫","澷","熳","獌","縵","缦","蔄","蘰","鄤","鏝","镘","𬜬"],"tàn tǎn":["僋"],yíng:["僌","営","塋","嬴","攍","楹","櫿","溁","溋","滢","潆","濙","濚","濴","瀅","瀛","瀠","瀯","灐","灜","熒","營","瑩","盁","盈","禜","籝","籯","縈","茔","荧","莹","萤","营","萦","萾","蓥","藀","蛍","蝇","蝿","螢","蠅","謍","贏","赢","迎","鎣"],dòng:["働","冻","凍","动","動","姛","戙","挏","栋","棟","湩","硐","胨","胴","腖","迵","霘","駧"],zhuàn:["僎","啭","囀","堟","撰","灷","瑑","篆","腞","蒃","襈","譔","饌","馔"],xiàng:["像","勨","向","嚮","姠","嶑","曏","橡","珦","缿","蟓","衖","襐","象","鐌","項","项","鱌"],shàn:["僐","善","墠","墡","嬗","擅","敾","椫","樿","歚","汕","灗","疝","磰","繕","缮","膳","蟮","蟺","訕","謆","譱","讪","贍","赡","赸","鄯","鐥","饍","騸","骟","鱓","鱔","鳝","𫮃"],"tuí tuǐ":["僓"],zǔn:["僔","噂","撙","譐"],pú:["僕","匍","圤","墣","濮","獛","璞","瞨","穙","莆","菐","菩","葡","蒱","蒲","贌","酺","鏷","镤"],láo:["僗","劳","労","勞","哰","崂","嶗","憥","朥","浶","牢","痨","癆","窂","簩","醪","鐒","铹","顟","髝","𫭼"],chǎng:["僘","厰","廠","敞","昶","氅","鋹","𬬮"],guāng:["僙","光","咣","垙","姯","洸","灮","炗","炚","炛","烡","珖","胱","茪","輄","銧","黆","𨐈"],liáo:["僚","嘹","嫽","寥","寮","尞","屪","嵺","嶚","嶛","廫","憀","敹","暸","橑","獠","璙","疗","療","竂","簝","繚","缭","聊","膋","膫","藔","蟟","豂","賿","蹘","辽","遼","飉","髎","鷯","鹩"],dèng:["僜","凳","墱","嶝","櫈","瞪","磴","覴","邓","鄧","隥"],"chán zhàn zhuàn":["僝"],bō:["僠","嶓","拨","撥","播","波","溊","玻","癶","盋","砵","碆","礡","缽","菠","袰","蹳","鉢","钵","餑","饽","驋","鱍","𬭛"],huì:["僡","匯","卉","喙","嘒","嚖","圚","嬒","寭","屶","屷","彗","彙","彚","徻","恚","恵","惠","慧","憓","懳","晦","暳","槥","橞","檅","櫘","汇","泋","滙","潓","烩","燴","獩","璤","瞺","硊","秽","穢","篲","絵","繪","绘","翙","翽","荟","蔧","蕙","薈","薉","蟪","詯","誨","諱","譓","譿","讳","诲","賄","贿","鐬","闠","阓","靧","頮","顪","颒","餯","𬤝","𬭬"],chuǎn:["僢","喘","舛","荈","踳"],"tiě jiàn":["僣"],sēng:["僧","鬙"],xiàn:["僩","僴","哯","垷","塪","姭","娊","宪","岘","峴","憲","撊","晛","橌","橺","涀","瀗","献","獻","现","現","県","睍","粯","糮","絤","綫","線","线","缐","羡","羨","腺","臔","臽","苋","莧","誢","豏","鋧","錎","限","陥","陷","霰","餡","馅","麲","鼸","𬀪","𪾢"],"yù jú":["僪"],"è wū":["僫"],"tóng zhuàng":["僮"],lǐn:["僯","凛","凜","廩","廪","懍","懔","撛","檁","檩","澟","癛","癝"],gù:["僱","凅","固","堌","崓","崮","故","梏","棝","牿","痼","祻","錮","锢","雇","顧","顾","鯝","鲴"],jiāng:["僵","壃","姜","橿","殭","江","畕","疅","礓","繮","缰","翞","茳","葁","薑","螀","螿","豇","韁","鱂","鳉"],mǐn:["僶","冺","刡","勄","悯","惽","愍","慜","憫","抿","敃","敏","敯","泯","潣","皿","笢","笽","簢","蠠","閔","閩","闵","闽","鰵","鳘","黽"],jìn:["僸","凚","噤","嚍","墐","壗","妗","嬧","搢","晉","晋","枃","殣","浕","浸","溍","濅","濜","烬","煡","燼","琎","瑨","璶","盡","祲","縉","缙","荩","藎","覲","觐","賮","贐","赆","近","进","進","靳","齽"],"jià jie":["價"],qiào:["僺","峭","帩","撬","殻","窍","竅","誚","诮","躈","陗","鞩","韒","髚"],pì:["僻","媲","嫓","屁","澼","甓","疈","譬","闢","鷿","鸊","䴙"],sài:["僿","簺","賽","赛"],"chán tǎn shàn":["儃"],"dāng dàng":["儅","当","闣"],xuān:["儇","喧","塇","媗","宣","愃","愋","揎","昍","暄","煊","煖","瑄","睻","矎","禤","箮","翧","翾","萱","萲","蓒","蕿","藼","蘐","蝖","蠉","諠","諼","譞","谖","軒","轩","鍹","駽","鰚","𫓶","𫍽"],"dān dàn":["儋","擔","瘅"],càn:["儏","澯","灿","燦","璨","粲","薒","謲"],"bīn bìn":["儐"],"án àn":["儑"],tái:["儓","坮","嬯","抬","擡","檯","炱","炲","籉","臺","薹","跆","邰","颱","鮐","鲐"],lán:["儖","兰","囒","婪","岚","嵐","幱","拦","攔","斓","斕","栏","欄","欗","澜","瀾","灆","灡","燣","燷","璼","篮","籃","籣","繿","葻","蓝","藍","蘫","蘭","褴","襕","襤","襴","襽","譋","讕","谰","躝","鑭","镧","闌","阑","韊","𬒗"],"nǐ yì ài yí":["儗"],méng:["儚","幪","曚","朦","橗","檬","氋","溕","濛","甍","甿","盟","礞","艨","莔","萌","蕄","虻","蝱","鄳","鄸","霿","靀","顭","饛","鯍","鸏","鹲","𫑡","㠓"],níng:["儜","凝","咛","嚀","嬣","柠","橣","檸","狞","獰","聍","聹","薴","鑏","鬡","鸋"],qióng:["儝","卭","宆","惸","憌","桏","橩","焪","焭","煢","熍","琼","瓊","睘","穷","穹","窮","竆","笻","筇","舼","茕","藑","藭","蛩","蛬","赹","跫","邛","銎","䓖"],liè:["儠","冽","列","劣","劽","埒","埓","姴","峛","巤","挒","捩","栵","洌","浖","烈","烮","煭","犣","猎","猟","獵","聗","脟","茢","蛚","趔","躐","迾","颲","鬛","鬣","鮤","鱲","鴷","䴕","𫚭"],kuǎng:["儣","夼","懭"],bào:["儤","勽","報","忁","报","抱","曓","爆","犦","菢","虣","蚫","豹","鉋","鑤","铇","骲","髱","鮑","鲍"],biāo:["儦","墂","幖","彪","标","標","滮","瀌","熛","爂","猋","瘭","磦","膘","臕","謤","贆","鏢","鑣","镖","镳","颮","颷","飆","飇","飈","飊","飑","飙","飚","驫","骉","髟"],zǎn:["儧","儹","噆","攅","昝","趱","趲"],háo:["儫","嗥","嘷","噑","嚎","壕","椃","毜","毫","濠","獆","獔","竓","籇","蚝","蠔","譹","豪"],qìng:["儬","凊","庆","慶","櫦","濪","碃","磬","罄","靘"],chèn:["儭","嚫","榇","櫬","疢","衬","襯","讖","谶","趁","趂","齓","齔","龀"],téng:["儯","幐","滕","漛","疼","籐","籘","縢","腾","藤","虅","螣","誊","謄","邆","駦","騰","驣","鰧","䲢"],"lǒng lóng lòng":["儱"],"chán chàn":["儳"],"ráng xiāng":["儴","勷"],"huì xié":["儶"],luó:["儸","攞","椤","欏","猡","玀","箩","籮","罗","羅","脶","腡","萝","蘿","螺","覼","逻","邏","鏍","鑼","锣","镙","饠","騾","驘","骡","鸁"],léi:["儽","嫘","檑","欙","瓃","畾","縲","纍","纝","缧","罍","羸","蔂","蘲","虆","轠","鐳","鑘","镭","雷","靁","鱩","鼺"],"nàng nāng":["儾"],"wù wū":["兀"],yǔn:["允","喗","夽","抎","殒","殞","狁","磒","荺","賱","鈗","阭","陨","隕","霣","馻","齫","齳"],zān:["兂","橵","簪","簮","糌","鐕","鐟","鵤"],yuán:["元","円","原","厡","厵","园","圆","圎","園","圓","垣","塬","媴","嫄","援","榞","榬","橼","櫞","沅","湲","源","溒","爰","猨","猿","笎","緣","縁","缘","羱","茒","薗","蝝","蝯","螈","袁","褤","謜","轅","辕","邍","邧","酛","鈨","鎱","騵","魭","鶢","鶰","黿","鼋","𫘪"],xiōng:["兄","兇","凶","匂","匈","哅","忷","恟","汹","洶","胷","胸","芎","訩","詾","讻"],chōng:["充","嘃","忡","憃","憧","摏","沖","浺","珫","罿","翀","舂","艟","茺","衝","蹖","㳘"],zhào:["兆","垗","旐","曌","枛","櫂","照","燳","狣","瞾","笊","罀","罩","羄","肁","肇","肈","詔","诏","赵","趙","鮡","𬶐"],"duì ruì yuè":["兊","兌","兑"],kè:["克","刻","勀","勊","堁","娔","客","恪","愙","氪","溘","碦","緙","缂","艐","衉","課","课","錁","锞","騍","骒"],tù:["兎","兔","堍","迌","鵵"],dǎng:["党","攩","欓","譡","讜","谠","黨","𣗋"],dōu:["兜","兠","唗","橷","篼","蔸"],huǎng:["兤","奛","幌","怳","恍","晄","炾","熀","縨","詤","謊","谎"],rù:["入","嗕","媷","扖","杁","洳","溽","縟","缛","蓐","褥","鳰"],nèi:["內","氝","氞","錗"],"yú shù":["兪"],"liù lù":["六"],han:["兯","爳"],tiān:["兲","天","婖","添","酟","靔","靝","黇"],"xīng xìng":["兴"],diǎn:["典","嚸","奌","婰","敟","椣","点","碘","蒧","蕇","踮","點"],"zī cí":["兹"],jiān:["兼","冿","囏","坚","堅","奸","姦","姧","尖","幵","惤","戋","戔","搛","椾","樫","櫼","歼","殱","殲","湔","瀐","瀸","煎","熞","熸","牋","瑊","睷","礛","礷","笺","箋","緘","縑","缄","缣","肩","艰","艱","菅","菺","葌","蒹","蔪","蕑","蕳","虃","譼","豜","鑯","雃","鞯","韀","韉","餰","馢","鰔","鰜","鰹","鲣","鳒","鵑","鵳","鶼","鹣","麉"],shòu:["兽","受","售","壽","夀","寿","授","狩","獣","獸","痩","瘦","綬","绶","膄"],jì:["兾","冀","剂","剤","劑","勣","坖","垍","塈","妓","季","寂","寄","廭","彑","徛","忌","悸","惎","懻","技","旡","既","旣","暨","暩","曁","梞","檕","檵","洎","漃","漈","瀱","痵","癠","禝","稩","稷","穄","穊","穧","紀","継","績","繋","繼","继","绩","罽","臮","芰","茍","茤","葪","蓟","蔇","薊","蘎","蘮","蘻","裚","襀","覬","觊","計","記","誋","计","记","跡","跽","蹟","迹","际","際","霁","霽","驥","骥","髻","鬾","魝","魥","鯚","鯽","鰶","鰿","鱀","鱭","鲚","鲫","鵋","鷑","齌","𪟝","𬶨","𬶭"],jiōng:["冂","冋","坰","埛","扃","蘏","蘔","駉","駫","𬳶"],mào:["冃","冐","媢","帽","愗","懋","暓","柕","楙","毷","瑁","皃","眊","瞀","耄","茂","萺","蝐","袤","覒","貌","貿","贸","鄚","鄮"],rǎn:["冄","冉","姌","媣","染","珃","苒","蒅","䎃"],"nèi nà":["内"],gāng:["冈","冮","刚","剛","堈","堽","岡","掆","摃","棡","牨","犅","疘","綱","纲","缸","罁","罡","肛","釭","鎠","㭎"],cè:["冊","册","厕","厠","夨","廁","恻","惻","憡","敇","测","測","笧","策","筞","筴","箣","荝","萗","萴","蓛"],guǎ:["冎","剐","剮","叧","寡"],"mào mò":["冒"],gòu:["冓","啂","坸","垢","够","夠","媾","彀","搆","撀","构","構","煹","覯","觏","訽","詬","诟","購","购","遘","雊"],xǔ:["冔","喣","暊","栩","珝","盨","糈","詡","諿","诩","鄦","醑"],mì:["冖","冪","嘧","塓","宻","密","峚","幂","幎","幦","怽","榓","樒","櫁","汨","淧","滵","漞","濗","熐","羃","蔤","蜜","覓","覔","覛","觅","謐","谧","鼏"],"yóu yín":["冘"],xiě:["写","冩","藛"],jūn:["军","君","均","桾","汮","皲","皸","皹","碅","莙","蚐","袀","覠","軍","鈞","銁","銞","鍕","钧","頵","鮶","鲪","麏"],mí:["冞","擟","瀰","爢","猕","獼","祢","禰","縻","蒾","藌","蘪","蘼","袮","詸","謎","迷","醚","醾","醿","釄","镾","鸍","麊","麋","麛"],"guān guàn":["冠","覌","観","觀","观"],měng:["冡","勐","懵","掹","猛","獴","艋","蜢","蠓","錳","锰","鯭","鼆"],zhǒng:["冢","塚","尰","歱","煄","瘇","肿","腫","踵"],zuì:["冣","嶵","晬","最","栬","槜","檇","檌","祽","絊","罪","蕞","辠","酔","酻","醉","錊"],yuān:["冤","剈","囦","嬽","寃","棩","淵","渁","渆","渊","渕","灁","眢","肙","葾","蒬","蜎","蜵","駌","鳶","鴛","鵷","鸢","鸳","鹓","鼘","鼝"],míng:["冥","名","明","暝","朙","榠","洺","溟","猽","眀","眳","瞑","茗","螟","覭","詺","鄍","銘","铭","鳴","鸣"],kòu:["冦","叩","宼","寇","扣","敂","滱","窛","筘","簆","蔲","蔻","釦","鷇"],tài:["冭","太","夳","忲","态","態","汰","汱","泰","溙","肽","舦","酞","鈦","钛"],"féng píng":["冯","馮"],"chōng chòng":["冲"],kuàng:["况","圹","壙","岲","懬","旷","昿","曠","框","況","爌","眖","眶","矿","砿","礦","穬","絋","絖","纊","纩","貺","贶","軦","邝","鄺","鉱","鋛","鑛","黋"],lěng:["冷"],pàn:["冸","判","叛","沜","泮","溿","炍","牉","畔","盼","聁","袢","襻","詊","鋬","鑻","頖","鵥"],fā:["冹","彂","沷","発","發"],xiǎn:["冼","尟","尠","崄","嶮","幰","攇","显","櫶","毨","灦","烍","燹","狝","猃","獫","獮","玁","禒","筅","箲","藓","蘚","蚬","蜆","譣","赻","跣","鍌","险","険","險","韅","顕","顯","㬎"],qià:["冾","圶","帢","恰","殎","洽","硈","胢","髂"],"jìng chēng":["净","凈","淨"],sōu:["凁","嗖","廀","廋","捜","搜","摉","溲","獀","艘","蒐","螋","鄋","醙","鎪","锼","颼","飕","餿","馊","騪"],měi:["凂","媄","媺","嬍","嵄","挴","毎","每","浼","渼","燘","美","躾","鎂","镁","黣"],tú:["凃","図","图","圖","圗","塗","屠","峹","嵞","庩","廜","徒","悇","揬","涂","瘏","筡","腯","荼","蒤","跿","途","酴","鈯","鍎","馟","駼","鵌","鶟","鷋","鷵","𬳿"],zhǔn:["准","凖","埻","準","𬘯"],"liáng liàng":["凉","涼","量"],diāo:["凋","刁","刟","叼","奝","弴","彫","汈","琱","碉","簓","虭","蛁","貂","錭","雕","鮉","鯛","鲷","鵰","鼦"],còu:["凑","湊","腠","輳","辏"],ái:["凒","啀","嘊","捱","溰","癌","皑","皚"],duó:["凙","剫","夺","奪","痥","踱","鈬","鐸","铎"],dú:["凟","匵","嬻","椟","櫝","殰","涜","牍","牘","犊","犢","独","獨","瓄","皾","裻","読","讀","讟","豄","贕","錖","鑟","韇","韣","韥","騳","髑","黩","黷"],"jǐ jī":["几"],fán:["凡","凢","凣","匥","墦","杋","柉","棥","樊","瀿","烦","煩","燔","璠","矾","礬","笲","籵","緐","羳","舤","舧","薠","蘩","蠜","襎","蹯","釩","鐇","鐢","钒","鷭","𫔍","𬸪"],jū:["凥","匊","娵","婮","居","崌","抅","挶","掬","梮","椐","檋","毩","毱","泃","涺","狙","琚","疽","砠","罝","腒","艍","蜛","裾","諊","跔","踘","躹","陱","雎","鞠","鞫","駒","驹","鮈","鴡","鶋","𬶋"],"chù chǔ":["処","处"],zhǐ:["凪","劧","咫","址","坧","帋","恉","扺","指","旨","枳","止","汦","沚","洔","淽","疻","砋","祉","秖","紙","纸","芷","藢","衹","襧","訨","趾","軹","轵","酯","阯","黹"],píng:["凭","凴","呯","坪","塀","岼","帡","帲","幈","平","慿","憑","枰","洴","焩","玶","瓶","甁","竮","箳","簈","缾","荓","萍","蓱","蚲","蛢","評","评","軿","輧","郱","鮃","鲆"],kǎi:["凯","凱","剀","剴","垲","塏","恺","愷","慨","暟","蒈","輆","鍇","鎧","铠","锴","闓","闿","颽"],gān:["凲","坩","尲","尴","尶","尷","柑","泔","漧","玕","甘","疳","矸","竿","筸","粓","肝","苷","迀","酐","魐"],"kǎn qiǎn":["凵"],tū:["凸","堗","嶀","捸","涋","湥","痜","禿","秃","突","葖","鋵","鵚","鼵","㻬"],"āo wā":["凹"],chū:["出","初","岀","摴","榋","樗","貙","齣","䢺","䝙"],dàng:["凼","圵","垱","壋","档","檔","氹","璗","瓽","盪","瞊","砀","碭","礑","簜","荡","菪","蕩","蘯","趤","逿","雼","𬍡"],hán:["函","凾","含","圅","娢","寒","崡","晗","梒","浛","涵","澏","焓","琀","甝","筨","蜬","邗","邯","鋡","韓","韩"],záo:["凿","鑿"],dāo:["刀","刂","忉","氘","舠","螩","釖","魛","鱽"],chuāng:["刅","摐","牎","牕","疮","瘡","窓","窗","窻"],"fēn fèn":["分"],"qiè qiē":["切"],kān:["刊","勘","堪","戡","栞","龕","龛"],cǔn:["刌","忖"],chú:["刍","厨","幮","廚","橱","櫉","櫥","滁","犓","篨","耡","芻","蒢","蒭","蜍","蟵","豠","趎","蹰","躇","躕","鉏","鋤","锄","除","雏","雛","鶵"],"huà huá":["划"],lí:["刕","剓","剺","劙","厘","喱","嚟","囄","嫠","孷","廲","悡","梨","梸","棃","漓","灕","犁","犂","狸","琍","璃","瓈","盠","睝","离","穲","竰","筣","篱","籬","糎","縭","缡","罹","艃","荲","菞","蓠","蔾","藜","蘺","蜊","蟍","蟸","蠫","褵","謧","貍","醨","鋫","錅","鏫","鑗","離","驪","骊","鯏","鯬","鱺","鲡","鵹","鸝","鹂","黎","黧","㰀"],yuè:["刖","嬳","岄","岳","嶽","恱","悅","悦","戉","抈","捳","月","樾","瀹","爚","玥","礿","禴","篗","籆","籥","籰","粤","粵","蘥","蚎","蚏","説","越","跀","跃","躍","軏","鈅","鉞","鑰","钺","閱","閲","阅","鸑","鸙","黦","龠","𫐄","𬸚"],liú:["刘","劉","嚠","媹","嵧","旈","旒","榴","橊","流","浏","瀏","琉","瑠","瑬","璢","畄","留","畱","疁","瘤","癅","硫","蒥","蓅","蟉","裗","鎏","鏐","鐂","镠","飀","飅","飗","駠","駵","騮","驑","骝","鰡","鶹","鹠","麍"],zé:["则","則","啧","嘖","嫧","帻","幘","択","樍","歵","沢","泎","溭","皟","瞔","矠","礋","箦","簀","舴","蔶","蠌","襗","謮","賾","赜","迮","鸅","齚","齰"],"chuàng chuāng":["创","創"],qù:["刞","厺","去","閴","闃","阒","麮","鼁"],"bié biè":["別","别"],"páo bào":["刨"],"chǎn chàn":["刬","剗","幝"],guā:["刮","劀","桰","歄","煱","瓜","胍","踻","颪","颳","騧","鴰","鸹"],gēng:["刯","庚","椩","浭","焿","畊","絚","羮","羹","耕","菮","賡","赓","鶊","鹒"],dào:["到","噵","悼","椡","檤","燾","瓙","盗","盜","稲","稻","纛","翿","艔","菿","衜","衟","軇","道"],chuàng:["刱","剏","剙","怆","愴"],kū:["刳","哭","圐","堀","枯","桍","矻","窟","跍","郀","骷","鮬"],duò:["刴","剁","墯","尮","惰","憜","挅","桗","舵","跥","跺","陊","陏","飿","饳","鵽"],"shuā shuà":["刷"],"quàn xuàn":["券"],"chà shā":["刹","剎"],"cì cī":["刺"],guì:["刽","刿","劊","劌","撌","攰","昋","桂","椢","槶","樻","櫃","猤","禬","筀","蓕","襘","貴","贵","跪","鐀","鑎","鞼","鱖","鱥"],lóu:["剅","娄","婁","廔","楼","樓","溇","漊","熡","耧","耬","艛","蒌","蔞","蝼","螻","謱","軁","遱","鞻","髅","髏","𪣻"],cuò:["剉","剒","厝","夎","挫","措","棤","莝","莡","蓌","逪","銼","錯","锉","错"],"xiāo xuē":["削"],"kēi kè":["剋","尅"],"là lá":["剌"],tī:["剔","梯","踢","銻","锑","鷈","鷉","䏲","䴘"],pōu:["剖"],wān:["剜","塆","壪","帵","弯","彎","湾","潫","灣","睕","蜿","豌"],"bāo bō":["剝","剥"],duō:["剟","咄","哆","嚉","多","夛","掇","毲","畓","裰","㙍"],qíng:["剠","勍","夝","情","擎","晴","暒","棾","樈","檠","氰","甠","硘","葝","黥"],"yǎn shàn":["剡"],"dū zhuó":["剢"],yān:["剦","嫣","崦","嶖","恹","懕","懨","樮","淊","淹","漹","烟","焉","焑","煙","珚","篶","胭","臙","菸","鄢","醃","閹","阉","黫"],huō:["剨","劐","吙","攉","秴","耠","锪","騞","𬴃"],shèng:["剩","剰","勝","圣","墭","嵊","晠","榺","橳","琞","聖","蕂","貹","賸"],"duān zhì":["剬"],wū:["剭","呜","嗚","圬","屋","巫","弙","杇","歍","汙","汚","污","洿","烏","窏","箼","螐","誈","誣","诬","邬","鄔","鎢","钨","鰞","鴮"],gē:["割","哥","圪","彁","戈","戓","戨","歌","滒","犵","肐","袼","謌","鎶","鴚","鴿","鸽"],"dá zhá":["剳"],chuán:["剶","暷","椽","篅","舡","舩","船","輲","遄"],"tuán zhuān":["剸","漙","篿"],"lù jiū":["剹"],pēng:["剻","匉","嘭","怦","恲","抨","梈","烹","砰","軯","駍"],piāo:["剽","勡","慓","旚","犥","翲","螵","飃","飄","飘","魒"],kōu:["剾","彄","抠","摳","眍","瞘","芤","𫸩"],"jiǎo chāo":["剿","劋","勦","摷"],qiāo:["劁","勪","墝","幧","敲","橇","毃","燆","硗","磽","繑","趬","跷","踍","蹺","蹻","郻","鄡","鄥","鍫","鍬","鐰","锹","頝"],"huá huà":["劃"],"zhā zhá":["劄"],"pī pǐ":["劈","悂"],tāng:["劏","嘡","羰","薚","蝪","蹚","鞺","鼞"],chán:["劖","嚵","壥","婵","嬋","巉","廛","棎","毚","湹","潹","潺","澶","瀍","瀺","煘","獑","磛","緾","纏","纒","缠","艬","蝉","蟐","蟬","蟾","誗","讒","谗","躔","鄽","酁","鋋","鑱","镵","饞","馋"],zuān:["劗","躜","躦","鉆","鑚"],mó:["劘","嫫","嬤","嬷","尛","摹","擵","橅","糢","膜","藦","蘑","謨","謩","谟","饃","饝","馍","髍","魔","魹"],zhú:["劚","斸","曯","欘","灟","炢","烛","燭","爥","瘃","竹","笁","笜","舳","茿","蓫","蠋","蠾","躅","逐","逫","钃","鱁"],quàn:["劝","勧","勸","牶","韏"],"jìn jìng":["劤","劲","勁"],kēng:["劥","坑","牼","硁","硜","誙","銵","鍞","鏗","铿","阬"],"xié liè":["劦"],"zhù chú":["助"],nǔ:["努","弩","砮","胬"],shào:["劭","卲","哨","潲","紹","綤","绍","袑","邵"],miǎo:["劰","杪","淼","渺","眇","秒","篎","緲","缈","藐","邈"],kǒu:["劶","口"],wā:["劸","娲","媧","屲","挖","攨","洼","溛","漥","瓾","畖","穵","窊","窪","蛙","韈","鼃"],kuāng:["劻","匡","匩","哐","恇","洭","筐","筺","誆","诓","軭","邼"],hé:["劾","咊","啝","姀","峆","敆","曷","柇","楁","毼","河","涸","渮","澕","熆","皬","盇","盉","盍","盒","禾","篕","籺","粭","翮","菏","萂","覈","訸","詥","郃","釛","鉌","鑉","閡","闔","阂","阖","鞨","頜","餄","饸","魺","鹖","麧","齕","龁","龢","𬌗"],gào:["勂","吿","告","峼","祮","祰","禞","筶","誥","诰","郜","鋯","锆"],"bó bèi":["勃"],láng:["勆","嫏","廊","斏","桹","榔","樃","欴","狼","琅","瑯","硠","稂","艆","蓈","蜋","螂","躴","郒","郞","鋃","鎯","锒"],xūn:["勋","勛","勲","勳","嚑","坃","埙","塤","壎","壦","曛","燻","獯","矄","纁","臐","薫","薰","蘍","醺","𫄸"],"juàn juān":["勌","瓹"],"lè lēi":["勒"],kài:["勓","炌","烗","鎎"],"wěng yǎng":["勜"],qín:["勤","嗪","噙","嶜","庈","懃","懄","捦","擒","斳","檎","澿","珡","琴","琹","瘽","禽","秦","耹","芩","芹","菦","螓","蠄","鈙","鈫","雂","靲","鳹","鵭"],jiàng:["勥","匞","匠","嵹","弜","弶","摾","櫤","洚","滰","犟","糡","糨","絳","绛","謽","酱","醤","醬"],fān:["勫","嬏","帆","幡","忛","憣","旙","旛","繙","翻","藩","轓","颿","飜","鱕"],juān:["勬","姢","娟","捐","涓","蠲","裐","鎸","鐫","镌","鹃"],"tóng dòng":["勭","烔","燑","狪"],lǜ:["勴","垏","嵂","律","慮","氯","滤","濾","爈","箻","綠","繂","膟","葎","虑","鑢"],chè:["勶","坼","彻","徹","掣","撤","澈","烢","爡","瞮","硩","聅","迠","頙","㬚"],sháo:["勺","玿","韶"],"gōu gòu":["勾"],cōng:["匆","囪","囱","忩","怱","悤","暰","樬","漗","瑽","璁","瞛","篵","繱","聡","聦","聪","聰","苁","茐","葱","蓯","蔥","蟌","鍯","鏓","鏦","騘","驄","骢"],"táo yáo":["匋","陶"],páo:["匏","咆","垉","庖","爮","狍","袍","褜","軳","鞄","麅"],dá:["匒","妲","怛","炟","燵","畣","笪","羍","荙","薘","蟽","詚","达","迏","迖","迚","逹","達","鐽","靼","鞑","韃","龖","龘","𫟼"],"huà huā":["化"],"běi bèi":["北"],nǎo:["匘","垴","堖","嫐","恼","悩","惱","瑙","碯","脑","脳","腦"],"chí shi":["匙"],fāng:["匚","堏","方","淓","牥","芳","邡","鈁","錺","钫","鴋"],zā:["匝","咂","帀","沞","臜","臢","迊","鉔","魳"],qiè:["匧","厒","妾","怯","悏","惬","愜","挈","穕","窃","竊","笡","箧","篋","籡","踥","鍥","锲","鯜"],"zāng cáng":["匨"],fěi:["匪","奜","悱","棐","榧","篚","翡","蕜","誹","诽"],"kuì guì":["匮","匱"],suǎn:["匴"],pǐ:["匹","噽","嚭","圮","庀","痞","癖","脴","苉","銢","鴄"],"qū ōu":["区","區"],"kē qià":["匼"],"yǎn yàn":["匽","棪"],biǎn:["匾","惼","揙","碥","稨","窆","藊","褊","貶","贬","鴘"],nì:["匿","堄","嫟","嬺","惄","愵","昵","暱","氼","眤","睨","縌","胒","腻","膩","逆","𨺙"],niàn:["卄","唸","埝","廿","念","惗","艌"],sà:["卅","櫒","脎","萨","蕯","薩","鈒","隡","颯","飒","馺"],zú:["卆","哫","崪","族","箤","足","踤","镞"],shēng:["升","呏","声","斘","昇","曻","枡","殅","泩","湦","焺","牲","珄","生","甥","竔","笙","聲","鉎","鍟","阩","陞","陹","鵿","鼪"],wàn:["卍","卐","忨","杤","瞣","脕","腕","萬","蟃","贎","輐","錽","𬇕"],"huá huà huā":["华","華"],bēi:["卑","悲","揹","杯","桮","盃","碑","藣","鵯","鹎"],"zú cù":["卒"],"dān shàn chán":["单","單"],"nán nā":["南"],"shuài lǜ":["卛"],"bǔ bo pú":["卜"],"kuàng guàn":["卝"],biàn:["卞","变","変","峅","弁","徧","忭","抃","昪","汳","汴","玣","艑","苄","覍","諚","變","辡","辧","辨","辩","辫","辮","辯","遍","釆","𨚕"],bǔ:["卟","哺","捕","补","補","鸔","𬷕"],"zhàn zhān":["占","覱"],"kǎ qiǎ":["卡"],lú:["卢","嚧","垆","壚","庐","廬","曥","枦","栌","櫨","泸","瀘","炉","爐","獹","玈","瓐","盧","矑","籚","纑","罏","胪","臚","舮","舻","艫","芦","蘆","蠦","轤","轳","鈩","鑪","顱","颅","馿","髗","魲","鱸","鲈","鸕","鸬","黸","𬬻"],lǔ:["卤","塷","掳","擄","樐","橹","櫓","氌","滷","澛","瀂","硵","磠","穞","艣","艪","蓾","虏","虜","鏀","鐪","鑥","镥","魯","鲁","鹵"],guà:["卦","啩","挂","掛","罣","褂","詿","诖"],"áng yǎng":["卬"],yìn:["印","垽","堷","廕","慭","憖","憗","懚","洕","湚","猌","癊","胤","茚","酳","鮣","䲟"],què:["却","卻","塙","崅","悫","愨","慤","搉","榷","燩","琷","皵","确","確","礭","闋","阕","鵲","鹊","𬒈"],luǎn:["卵"],"juàn juǎn":["卷","巻"],"chǎng ān hàn":["厂"],"wěi yán":["厃"],tīng:["厅","厛","听","庁","廰","廳","汀","烃","烴","綎","耓","聴","聼","聽","鞓","𬘩"],"zhé zhái":["厇"],"hàn àn":["厈","屽"],yǎ:["厊","唖","庌","痖","瘂","蕥"],shè:["厍","厙","弽","慑","慴","懾","摂","欇","涉","涻","渉","滠","灄","社","舎","蔎","蠂","設","设","赦","騇","麝"],dǐ:["厎","呧","坘","弤","抵","拞","掋","牴","砥","菧","觝","詆","诋","軧","邸","阺","骶","鯳"],"zhǎ zhǎi":["厏"],páng:["厐","嫎","庞","徬","舽","螃","逄","鰟","鳑","龎","龐"],"zhì shī":["厔"],máng:["厖","吂","哤","娏","忙","恾","杗","杧","汒","浝","牻","痝","盲","硭","笀","芒","茫","蘉","邙","釯","鋩","铓","駹"],zuī:["厜","樶","纗","蟕"],"shà xià":["厦","廈"],áo:["厫","嗷","嗸","廒","敖","滶","獒","獓","璈","翱","翶","翺","聱","蔜","螯","謷","謸","遨","鏖","隞","鰲","鳌","鷔","鼇"],"lán qiān":["厱"],"sī mǒu":["厶"],"gōng hóng":["厷"],"lín miǎo":["厸"],"qiú róu":["厹"],dū:["厾","嘟","督","醏"],"xiàn xuán":["县","縣"],"cān shēn cēn sān":["参","參","叄","叅"],"ài yǐ":["叆"],"chā chà chǎ chá":["叉"],shuāng:["双","孀","孇","欆","礵","艭","雙","霜","騻","驦","骦","鷞","鸘","鹴"],shōu:["収","收"],guái:["叏"],bá:["叐","妭","抜","拔","炦","癹","胈","茇","菝","詙","跋","軷","魃","鼥"],"fā fà":["发"],"zhuó yǐ lì jué":["叕"],qǔ:["取","娶","竬","蝺","詓","齲","龋"],"jiǎ xiá":["叚","徦"],"wèi yù":["叞","尉","蔚"],dié:["叠","垤","堞","峌","幉","恎","惵","戜","曡","殜","氎","牃","牒","瓞","畳","疂","疉","疊","碟","絰","绖","耊","耋","胅","艓","苵","蜨","蝶","褋","詄","諜","谍","跮","蹀","迭","镻","鰈","鲽","鴩","𫶇"],ruì:["叡","枘","汭","瑞","睿","芮","蚋","蜹","銳","鋭","锐"],"jù gōu":["句"],lìng:["另","呤","炩","蘦"],"dāo dáo tāo":["叨"],"zhī zhǐ":["只"],jiào:["叫","呌","嘂","嘦","噍","嬓","斍","斠","滘","漖","獥","珓","皭","窖","藠","訆","譥","趭","較","轎","轿","较","酵","醮","釂"],"zhào shào":["召"],"kě kè":["可"],"tái tāi":["台","苔"],pǒ:["叵","尀","笸","箥","鉕","钷","駊"],"yè xié":["叶"],"hào háo":["号"],tàn:["叹","嘆","探","歎","湠","炭","碳","舕"],"hōng hóng":["叿"],miē:["吀","咩","哶","孭"],"xū yū yù":["吁"],chī:["吃","哧","喫","嗤","噄","妛","媸","彨","彲","摛","攡","殦","瓻","痴","癡","眵","瞝","笞","粚","胵","蚩","螭","訵","魑","鴟","鵄","鸱","黐","齝","𫄨"],"xuān sòng":["吅"],yāo:["吆","喓","夭","妖","幺","楆","殀","祅","腰","葽","訞","邀","鴁","鴢","㙘"],zǐ:["吇","姉","姊","子","杍","梓","榟","橴","滓","矷","秭","笫","籽","紫","耔","虸","訿","釨"],"hé gě":["合","鲄"],"cùn dòu":["吋"],"tóng tòng":["同"],"tǔ tù":["吐","唋"],"zhà zhā":["吒","奓"],"xià hè":["吓"],"ā yā":["吖"],"ma má mǎ":["吗"],lìn:["吝","恡","悋","橉","焛","甐","膦","蔺","藺","賃","赁","蹸","躏","躙","躪","轥","閵"],tūn:["吞","暾","朜","焞"],"bǐ pǐ":["吡"],qìn:["吢","吣","唚","抋","揿","搇","撳","沁","瀙","菣","藽"],"jiè gè":["吤"],"fǒu pǐ":["否"],"ba bā":["吧"],dūn:["吨","噸","墩","墪","惇","撉","撴","犜","獤","礅","蜳","蹾","驐"],fēn:["吩","帉","昐","朆","梤","棻","氛","竕","紛","纷","翂","芬","衯","訜","躮","酚","鈖","雰","餴","饙","馚"],"é huā":["吪"],"kēng háng":["吭","妔"],shǔn:["吮"],"zhī zī":["吱"],"yǐn shěn":["吲"],wú:["吳","吴","呉","墲","峿","梧","橆","毋","洖","浯","無","珸","璑","祦","芜","茣","莁","蕪","蜈","蟱","譕","郚","鋙","铻","鯃","鵐","鷡","鹀","鼯"],"chǎo chāo":["吵"],"nà nè":["吶"],"xuè chuò jué":["吷"],chuī:["吹","炊","龡"],"dōu rú":["吺"],hǒu:["吼","犼"],"hōng hǒu ōu":["吽"],"wú yù":["吾"],"ya yā":["呀"],"è e":["呃"],dāi:["呆","懛","獃"],"mèn qǐ":["呇"],hōng:["呍","嚝","揈","灴","烘","焢","硡","薨","訇","谾","軣","輷","轟","轰","鍧"],nà:["呐","捺","笝","納","纳","肭","蒳","衲","豽","貀","軜","郍","鈉","钠","靹","魶"],"tūn tiān":["呑"],"fǔ ḿ":["呒","嘸"],"dāi tǎi":["呔"],"ǒu ōu òu":["呕"],"bài bei":["呗"],"yuán yún yùn":["员","員"],guō:["呙","啯","嘓","埚","堝","墎","崞","彉","彍","懖","猓","瘑","聒","蝈","蟈","郭","鈛","鍋","锅"],"huá qì":["呚"],"qiàng qiāng":["呛","跄"],shī:["呞","失","尸","屍","师","師","施","浉","湤","湿","溮","溼","濕","狮","獅","瑡","絁","葹","蒒","蓍","虱","蝨","褷","襹","詩","诗","邿","釃","鉇","鍦","鯴","鰤","鲺","鳲","鳾","鶳","鸤","䴓","𫚕"],juǎn:["呟","埍","臇","菤","錈","锩"],pěn:["呠","翸"],"wěn mǐn":["呡"],"ne ní":["呢"],"ḿ m̀ móu":["呣"],rán:["呥","嘫","然","燃","繎","肰","蚦","蚺","衻","袇","袡","髥","髯"],"tiè chè":["呫"],"qì zhī":["呮"],"zǐ cī":["呰"],"guā gū guǎ":["呱"],"cī zī":["呲"],"hǒu xǔ gòu":["呴"],"hē ā á ǎ à a":["呵"],náo:["呶","夒","峱","嶩","巎","挠","撓","猱","硇","蛲","蟯","詉","譊","鐃","铙"],"xiā gā":["呷"],pēi:["呸","怌","肧","胚","衃","醅"],"háo xiāo":["呺"],mìng:["命","掵"],"dá dàn":["呾"],"zuǐ jǔ":["咀"],"xián gān":["咁"],pǒu:["咅","哣","犃"],"yǎng yāng":["咉"],"zǎ zé zhā":["咋"],"hé hè huó huò hú":["和"],hāi:["咍"],dā:["咑","哒","噠","墶","搭","撘","耷","褡","鎝","𨱏"],"kǎ kā":["咔"],gū:["咕","唂","唃","姑","嫴","孤","巬","巭","柧","橭","沽","泒","稒","笟","箍","箛","篐","罛","苽","菇","菰","蓇","觚","軱","軲","轱","辜","酤","鈲","鮕","鴣","鸪"],"kā gā":["咖"],zuo:["咗"],lóng:["咙","嚨","嶐","巃","巄","昽","曨","朧","栊","槞","櫳","湰","滝","漋","爖","珑","瓏","癃","眬","矓","砻","礱","礲","窿","竜","聋","聾","胧","茏","蘢","蠪","蠬","襱","豅","鏧","鑨","霳","靇","驡","鸗","龍","龒","龙"],"xiàn xián":["咞"],qì:["咠","唭","噐","器","夡","弃","憇","憩","暣","棄","欫","气","気","氣","汔","汽","泣","湆","湇","炁","甈","盵","矵","碛","碶","磜","磧","罊","芞","葺","藒","蟿","訖","讫","迄","鐑"],"xì dié":["咥"],"liē liě lié lie":["咧"],zī:["咨","嗞","姕","姿","孜","孳","孶","崰","嵫","栥","椔","淄","湽","滋","澬","玆","禌","秶","粢","紎","緇","緕","纃","缁","茊","茲","葘","諮","谘","貲","資","赀","资","赼","趑","趦","輜","輺","辎","鄑","鈭","錙","鍿","鎡","锱","镃","頾","頿","髭","鯔","鰦","鲻","鶅","鼒","齍","齜","龇"],mī:["咪"],"jī xī qià":["咭"],"gē luò kǎ lo":["咯"],"shù xún":["咰"],"zán zá zǎ zan":["咱"],"hāi ké":["咳"],huī:["咴","噅","噕","婎","媈","幑","徽","恢","拻","挥","揮","晖","暉","楎","洃","瀈","灰","灳","烣","睳","禈","翚","翬","蘳","袆","褘","詼","诙","豗","輝","辉","鰴","麾","㧑"],"huài shì":["咶"],táo:["咷","啕","桃","檮","洮","淘","祹","綯","绹","萄","蜪","裪","迯","逃","醄","鋾","鞀","鞉","饀","駣","騊","鼗","𫘦"],xián:["咸","啣","娴","娹","婱","嫌","嫺","嫻","弦","挦","撏","涎","湺","澖","甉","痫","癇","癎","絃","胘","舷","藖","蚿","蛝","衔","衘","誸","諴","賢","贒","贤","輱","醎","銜","鑦","閑","闲","鷳","鷴","鷼","鹇","鹹","麙","𫍯"],"è àn":["咹"],"xuān xuǎn":["咺","烜"],"wāi hé wǒ guǎ guō":["咼"],"yàn yè yān":["咽"],āi:["哀","哎","埃","溾","銰","鎄","锿"],pǐn:["品","榀"],shěn:["哂","婶","嬸","审","宷","審","弞","曋","渖","瀋","瞫","矤","矧","覾","訠","諗","讅","谂","谉","邥","頣","魫"],"hǒng hōng hòng":["哄"],"wā wa":["哇"],"hā hǎ hà":["哈"],zāi:["哉","栽","渽","溨","災","灾","烖","睵","賳"],"dì diè":["哋"],pài:["哌","沠","派","渒","湃","蒎","鎃"],"gén hěn":["哏"],"yǎ yā":["哑","雅"],"yuě huì":["哕","噦"],nián:["哖","年","秊","秥","鮎","鯰","鲇","鲶","鵇","黏"],"huá huā":["哗","嘩"],"jì jiē zhāi":["哜","嚌"],mōu:["哞"],"yō yo":["哟","喲"],lòng:["哢","梇","贚"],"ò ó é":["哦"],"lī lǐ li":["哩"],"nǎ na nǎi né něi":["哪"],hè:["哬","垎","壑","寉","惒","焃","煂","燺","爀","癋","碋","翯","褐","謞","賀","贺","赫","靍","靎","靏","鶴","鸖","鹤"],"bō pò bā":["哱"],zhé:["哲","啠","喆","嚞","埑","悊","摺","晢","晣","歽","矺","砓","磔","籷","粍","虴","蛰","蟄","袩","詟","謫","謺","讁","讋","谪","輒","輙","轍","辄","辙","鮿"],"liàng láng":["哴"],"liè lǜ":["哷"],hān:["哻","憨","蚶","谽","酣","頇","顸","馠","魽","鼾"],"hēng hng":["哼"],gěng:["哽","埂","峺","挭","梗","綆","绠","耿","莄","郠","骾","鯁","鲠","𬒔"],"chuò yuè":["哾"],"gě jiā":["哿"],"bei bài":["唄"],"hán hàn":["唅"],chún:["唇","浱","湻","滣","漘","犉","純","纯","脣","莼","蒓","蓴","醇","醕","錞","陙","鯙","鶉","鹑","𬭚"],"ài āi":["唉"],"jiá qiǎn":["唊"],"yán dàn xián":["唌"],chē:["唓","砗","硨","莗","蛼"],"wú ńg ń":["唔"],zào:["唕","唣","噪","慥","梍","灶","煰","燥","皁","皂","竃","竈","簉","艁","譟","趮","躁","造","𥖨"],dí:["唙","啇","嘀","嚁","嫡","廸","敌","敵","梑","涤","滌","狄","笛","籴","糴","苖","荻","蔋","蔐","藡","覿","觌","豴","迪","靮","頔","馰","髢","鸐","𬱖"],"gòng hǒng gǒng":["唝","嗊"],dóu:["唞"],"lào láo":["唠","嘮","憦"],huàn:["唤","喚","奂","奐","宦","嵈","幻","患","愌","换","換","擐","攌","梙","槵","浣","涣","渙","漶","澣","烉","焕","煥","瑍","痪","瘓","睆","肒","藧","豢","轘","逭","鯇","鯶","鰀","鲩"],léng:["唥","塄","楞","碐","薐"],"wō wěi":["唩"],fěng:["唪","覂","諷","讽"],"yín jìn":["唫"],"hǔ xià":["唬"],wéi:["唯","围","圍","壝","峗","峞","嵬","帏","帷","幃","惟","桅","沩","洈","涠","湋","溈","潍","潙","潿","濰","犩","矀","維","维","蓶","覹","违","違","鄬","醀","鍏","闈","闱","韋","韦","鮠","𣲗","𬶏"],shuā:["唰"],chàng:["唱","怅","悵","暢","焻","畅","畼","誯","韔","鬯"],"ér wā":["唲"],qiàng:["唴","炝","熗","羻"],yō:["唷"],yū:["唹","淤","瘀","盓","箊","紆","纡","込","迂","迃","陓"],lài:["唻","濑","瀨","瀬","癞","癩","睐","睞","籁","籟","藾","賚","賴","赉","赖","頼","顂","鵣"],tuò:["唾","嶞","柝","毤","毻","箨","籜","萚","蘀","跅"],"zhōu zhāo tiào":["啁"],kěn:["啃","垦","墾","恳","懇","肎","肯","肻","豤","錹"],"zhuó zhào":["啅","濯"],"hēng hèng":["啈","悙"],"lín lán":["啉"],"a ā á ǎ à":["啊"],qiāng:["啌","嗴","嶈","戕","摤","斨","枪","槍","溬","牄","猐","獇","羌","羗","腔","蜣","謒","鏘","锖","锵"],"tūn zhūn xiāng duǐ":["啍"],wèn:["問","妏","揾","搵","璺","问","顐"],"cuì qi":["啐"],"dié shà jié tì":["啑"],"yuē wā":["啘"],"zǐ cǐ":["啙"],"bǐ tú":["啚"],"chuò chuài":["啜"],"yǎ yā è":["啞"],fēi:["啡","婓","婔","扉","暃","渄","猆","緋","绯","裶","霏","非","靟","飛","飝","飞","餥","馡","騑","騛","鯡","鲱","𬴂"],pí:["啤","壀","枇","毗","毘","焷","琵","疲","皮","篺","罴","羆","脾","腗","膍","蚍","蚽","蜱","螷","蠯","豼","貔","郫","鈹","阰","陴","隦","魮","鮍","鲏","鵧","鼙"],shá:["啥"],"lā la":["啦"],"yīng qíng":["啨"],pā:["啪","妑","舥","葩","趴"],"zhě shì":["啫"],sè:["啬","嗇","懎","擌","栜","歮","涩","渋","澀","澁","濇","濏","瀒","瑟","璱","瘷","穑","穡","穯","繬","譅","轖","銫","鏼","铯","飋"],niè:["啮","嗫","噛","嚙","囁","囓","圼","孼","孽","嵲","嶭","巕","帇","敜","枿","槷","櫱","涅","湼","痆","篞","籋","糱","糵","聂","聶","臬","臲","蘖","蠥","讘","踂","踗","踙","蹑","躡","錜","鎳","鑈","鑷","钀","镊","镍","闑","陧","隉","顳","颞","齧","𫔶"],"luō luó luo":["啰","囉"],"tān chǎn tuō":["啴"],bo:["啵","蔔"],dìng:["啶","定","椗","矴","碇","碠","磸","聢","腚","萣","蝊","訂","订","錠","锭","顁","飣","饤"],lāng:["啷"],"án ān":["啽"],kā:["喀","擖"],"yóng yú":["喁"],"lā lá lǎ":["喇"],jiē:["喈","喼","嗟","堦","媘","接","掲","擑","湝","煯","疖","痎","癤","皆","秸","稭","脻","蝔","街","謯","阶","階","鞂","鶛"],hóu:["喉","帿","猴","瘊","睺","篌","糇","翭","葔","鄇","鍭","餱","骺","鯸","𬭤"],"dié zhá":["喋"],wāi:["喎","歪","竵"],"nuò rě":["喏"],"xù huò guó":["喐"],zán:["喒"],"wō ō":["喔"],hú:["喖","嘝","囫","壶","壷","壺","媩","弧","搰","斛","楜","槲","湖","瀫","焀","煳","狐","猢","瑚","瓳","箶","絗","縠","胡","葫","蔛","蝴","螜","衚","觳","醐","鍸","頶","餬","鬍","魱","鰗","鵠","鶘","鶦","鹕"],"huàn yuán xuǎn hé":["喛"],xǐ:["喜","囍","壐","屣","徙","憙","枲","橲","歖","漇","玺","璽","矖","禧","縰","葈","葸","蓰","蟢","謑","蹝","躧","鈢","鉨","鉩","鱚","𬭳","𬶮"],"hē hè yè":["喝"],kuì:["喟","嘳","媿","嬇","愦","愧","憒","篑","簣","籄","聩","聭","聵","膭","蕢","謉","餽","饋","馈"],"zhǒng chuáng":["喠"],"wéi wèi":["喡","為","爲"],"duó zhà":["喥"],"sāng sàng":["喪"],"qiáo jiāo":["喬"],"pèn bēn":["喯"],"cān sūn qī":["喰"],"zhā chā":["喳"],miāo:["喵"],"pēn pèn":["喷"],kuí:["喹","夔","奎","巙","戣","揆","晆","暌","楏","楑","櫆","犪","睽","葵","藈","蘷","虁","蝰","躨","逵","鄈","鍨","鍷","頯","馗","騤","骙","魁"],"lou lóu":["喽"],"zào qiāo":["喿"],"hè xiāo xiào hù":["嗃"],"á shà":["嗄"],xiù:["嗅","岫","峀","溴","珛","琇","璓","秀","綉","繍","繡","绣","螑","袖","褎","褏","銹","鏥","鏽","锈","齅"],"qiāng qiàng":["嗆","戗","戧","蹌","蹡"],"ài yì":["嗌","艾"],"má mǎ ma":["嗎"],"kè kē":["嗑"],"dā tà":["嗒","鎉"],sǎng:["嗓","搡","磉","褬","鎟","顙","颡"],chēn:["嗔","抻","琛","瞋","諃","謓","賝","郴","𬘭"],"wā gǔ":["嗗"],"pǎng bēng":["嗙"],"xián qiǎn qiān":["嗛"],lào:["嗠","嫪","橯","涝","澇","耢","耮","躼","軂","酪"],wēng:["嗡","翁","聬","螉","鎓","鶲","鹟","𬭩"],wà:["嗢","腽","膃","袜","襪","韤"],"hēi hāi":["嗨"],hē:["嗬","欱","蠚","訶","诃"],zi:["嗭"],sǎi:["嗮"],"ǹg ńg ňg":["嗯"],gě:["嗰","舸"],ná:["嗱","拏","拿","鎿","镎"],diǎ:["嗲"],"ài ǎi āi":["嗳"],tōng:["嗵","樋","炵","蓪"],"zuī suī":["嗺"],"zhē zhè zhù zhe":["嗻"],mò:["嗼","圽","塻","墨","妺","嫼","寞","帞","昩","末","枺","歿","殁","沫","漠","爅","獏","瘼","皌","眽","眿","瞐","瞙","砞","礳","秣","絈","纆","耱","茉","莈","蓦","蛨","蟔","貃","貊","貘","銆","鏌","镆","陌","靺","驀","魩","默","黙","𬙊"],sòu:["嗽","瘶"],tǎn:["嗿","坦","忐","憳","憻","暺","毯","璮","菼","袒","襢","醓","鉭","钽"],"jiào dǎo":["嘄"],"kǎi gě":["嘅"],"shān càn":["嘇"],cáo:["嘈","嶆","曹","曺","槽","漕","艚","蓸","螬","褿","鏪","𥕢"],piào:["嘌","徱","蔈","驃"],"lóu lou":["嘍"],gǎ:["尕","玍"],"gǔ jiǎ":["嘏"],"jiāo xiāo":["嘐"],"xū shī":["嘘","噓"],pó:["嘙","嚩","婆","櫇","皤","鄱"],"dē dēi":["嘚"],"ma má":["嘛"],"lē lei":["嘞"],"gā gá gǎ":["嘠"],sāi:["嘥","噻","毢","腮","顋","鰓"],"zuō chuài":["嘬"],"cháo zhāo":["嘲","朝","鼂"],zuǐ:["嘴","噿","嶊","璻"],"qiáo qiào":["嘺","翹","谯"],"chù xù shòu":["嘼"],"tān chǎn":["嘽"],"dàn tán":["嘾","弾","彈","惔","澹"],"hēi mò":["嘿"],ě:["噁","砨","頋","騀","鵈"],"fān bo":["噃"],chuáng:["噇","床","牀"],"cù zā hé":["噈"],"tūn kuò":["噋"],"cēng chēng":["噌"],dēng:["噔","嬁","灯","燈","璒","登","竳","簦","艠","豋"],pū:["噗","扑","撲","攴","攵","潽","炇","陠"],juē:["噘","屩","屫","撧"],lū:["噜","嚕","撸","擼","謢"],zhān:["噡","岾","惉","旃","旜","枬","栴","毡","氈","氊","沾","瞻","薝","蛅","詀","詹","譫","谵","趈","邅","閚","霑","飦","饘","驙","魙","鱣","鸇","鹯","𫗴"],ō:["噢"],"zhòu zhuó":["噣"],"jiào qiào chī":["噭"],yuàn:["噮","妴","怨","愿","掾","瑗","禐","苑","衏","裫","褑","院","願"],"ǎi ài āi":["噯"],"yōng yǒng":["噰","澭"],"jué xué":["噱"],"pēn pèn fèn":["噴"],gá:["噶","尜","釓","錷","钆"],"xīn hěn hèn":["噷"],dāng:["噹","澢","珰","璫","筜","簹","艡","蟷","裆","襠"],làn:["嚂","滥","濫","烂","燗","爁","爛","爤","瓓","糷","钄"],tà:["嚃","嚺","崉","挞","搨","撻","榻","橽","毾","涾","澾","濌","禢","粏","誻","譶","蹋","蹹","躂","躢","遝","錔","闒","闥","闼","阘","鞜","鞳"],"huō huò ǒ":["嚄"],hāo:["嚆","茠","蒿","薅"],"hè xià":["嚇"],"xiù pì":["嚊"],"zhōu chóu":["嚋","盩","诪"],mē:["嚒"],"chā cā":["嚓"],"bó pào bào":["嚗"],"me mèi mò":["嚜"],"xié hái":["嚡"],"áo xiāo":["嚣"],mō:["嚤","摸"],pín:["嚬","娦","嫔","嬪","玭","矉","薲","蠙","貧","贫","顰","颦","𬞟"],mè:["嚰","濹"],"rǎng rāng":["嚷"],lá:["嚹","旯"],"jiáo jué jiào":["嚼"],chuò:["嚽","娖","擉","歠","涰","磭","踀","輟","辍","辵","辶","酫","鑡","餟","齪","龊"],"huān huàn":["嚾"],"zá cà":["囃"],chài:["囆","虿","蠆","袃","訍"],"náng nāng":["囊"],"zá zàn cān":["囋"],sū:["囌","櫯","甦","稣","穌","窣","蘇","蘓","酥","鯂"],zèng:["囎","熷","甑","贈","赠","鋥","锃"],"zá niè yàn":["囐"],nāng:["囔"],"luó luō luo":["囖"],"wéi guó":["囗"],huí:["囘","回","囬","廻","廽","恛","洄","痐","茴","蚘","蛔","蛕","蜖","迴","逥","鮰"],nín:["囜","您","脌"],"jiǎn nān":["囝"],nān:["囡"],tuán:["团","団","團","慱","抟","摶","檲","糰","鏄","鷒","鷻"],"tún dùn":["囤","坉"],guó:["囯","囶","囻","国","圀","國","帼","幗","慖","摑","漍","聝","腘","膕","蔮","虢","馘","𬇹"],kùn:["困","涃","睏"],"wéi tōng":["囲"],qūn:["囷","夋","逡"],rì:["囸","日","衵","鈤","馹","驲"],tāi:["囼","孡","胎"],pǔ:["圃","圑","擈","普","暜","樸","檏","氆","浦","溥","烳","諩","譜","谱","蹼","鐠","镨"],"quān juàn juān":["圈","圏"],"chuí chuán":["圌"],tuǎn:["圕","畽","疃"],lüè:["圙","掠","略","畧","稤","鋝","鋢","锊","䂮"],"huán yuán":["圜"],luán:["圝","圞","奱","娈","孌","孪","孿","峦","巒","挛","攣","曫","栾","欒","滦","灤","癴","癵","羉","脔","臠","虊","銮","鑾","鵉","鸞","鸾"],tǔ:["土","圡","釷","钍"],"xū wéi":["圩"],"dì de":["地","嶳"],"qiān sú":["圱"],zhèn:["圳","塦","挋","振","朕","栚","甽","眹","紖","絼","纼","誫","賑","赈","鋴","鎭","鎮","镇","阵","陣","震","鴆","鸩"],"chǎng cháng":["场","場","塲"],"qí yín":["圻"],jiá:["圿","忦","恝","戞","扴","脥","荚","莢","蛱","蛺","裌","跲","郏","郟","鋏","铗","頬","頰","颊","鴶","鵊"],"zhǐ zhì":["坁"],bǎn:["坂","岅","昄","板","版","瓪","粄","舨","蝂","鈑","钣","阪","魬"],qǐn:["坅","寑","寝","寢","昑","梫","笉","螼","赾","鋟","锓"],"méi fén":["坆"],"rǒng kēng":["坈"],"fāng fáng":["坊"],"fèn bèn":["坋"],tān:["坍","怹","摊","擹","攤","滩","灘","瘫","癱","舑","貪","贪"],"huài pēi pī péi":["坏"],"dì làn":["坔"],tán:["坛","墰","墵","壇","壜","婒","憛","昙","曇","榃","檀","潭","燂","痰","磹","罈","罎","藫","談","譚","譠","谈","谭","貚","郯","醰","錟","顃"],bà:["坝","垻","壩","弝","欛","灞","爸","矲","覇","霸","鮁","鲅"],fén:["坟","墳","妢","岎","幩","枌","棼","汾","焚","燌","燓","羒","羵","蒶","蕡","蚠","蚡","豮","豶","轒","鐼","隫","馩","魵","黂","鼖","鼢","𣸣"],zhuì:["坠","墜","惴","甀","畷","礈","綴","縋","缀","缒","腏","膇","諈","贅","赘","醊","錣","鑆"],pō:["坡","岥","泼","溌","潑","釙","鏺","钋","頗","颇","䥽"],"pǎn bàn":["坢"],kūn:["坤","堃","堒","崐","崑","昆","晜","潉","焜","熴","猑","琨","瑻","菎","蜫","裈","裩","褌","醌","錕","锟","騉","髠","髡","髨","鯤","鲲","鵾","鶤","鹍"],diàn:["坫","垫","墊","壂","奠","婝","店","惦","扂","橂","殿","淀","澱","玷","琔","电","癜","簟","蜔","鈿","電","靛","驔"],"mù mǔ":["坶"],"kē kě":["坷","軻"],xuè:["坹","岤","桖","瀥","狘","瞲","謔","谑","趐"],"dǐ chí":["坻","柢"],lā:["垃","柆","菈","邋"],lǒng:["垄","垅","壟","壠","拢","攏","竉","陇","隴","𬕂"],mín:["垊","姄","岷","崏","捪","旻","旼","民","珉","琘","琝","瑉","痻","盿","砇","緍","緡","缗","罠","苠","鈱","錉","鍲","鴖"],"dòng tóng":["垌","峒","洞"],cí:["垐","嬨","慈","柌","濨","珁","瓷","甆","磁","礠","祠","糍","茨","詞","词","辝","辞","辤","辭","雌","飺","餈","鴜","鶿","鷀","鹚"],duī:["垖","堆","塠","痽","磓","鐓","鐜","鴭"],"duò duǒ":["垛"],"duǒ duò":["垜","挆"],chá:["垞","察","嵖","搽","槎","檫","猹","茬","茶","詧","靫","𥻗"],shǎng:["垧","晌","樉","賞","贘","赏","鋿","鏛","鑜"],shǒu:["垨","守","手","扌","艏","首"],da:["垯","繨","跶"],háng:["垳","斻","杭","筕","絎","绗","航","苀","蚢","裄","貥","迒","頏","颃","魧"],"ān ǎn":["垵"],xīng:["垶","惺","星","曐","煋","猩","瑆","皨","篂","腥","興","觪","觲","謃","騂","骍","鮏","鯹"],"yuàn huán":["垸"],bāng:["垹","帮","幇","幚","幫","捠","梆","浜","邦","邫","鞤","𠳐"],"póu fú":["垺"],cén:["埁","岑","涔"],"běng fēng":["埄"],"dì fáng":["埅"],"xiá jiā":["埉"],"mái mán":["埋"],làng:["埌","崀","浪","蒗","閬","㫰"],"shān yán":["埏"],"qín jīn":["埐"],"pǔ bù":["埔"],huā:["埖","婲","椛","硴","糀","花","蒊","蘤","誮","錵"],"suì sù":["埣"],"pí pì":["埤"],"qīng zhēng":["埥","鲭"],"wǎn wān":["埦"],lǔn:["埨","稐","𫭢"],"zhēng chéng":["埩"],kōng:["埪","崆","箜","躻","錓","鵼"],"cǎi cài":["埰","寀","采"],"chù tòu":["埱"],běng:["埲","琫","菶","鞛"],"kǎn xiàn":["埳"],"yì shì":["埶","醳"],péi:["培","毰","裴","裵","賠","赔","錇","锫","阫","陪"],"sào sǎo":["埽"],"jǐn qīn jìn":["堇"],"péng bèng":["堋"],"qiàn zàn jiàn":["堑"],àn:["堓","屵","岸","按","暗","案","胺","荌","豻","貋","錌","闇","隌","黯"],"duò huī":["堕","墮"],huán:["堚","寏","寰","峘","桓","洹","澴","獂","环","環","糫","繯","缳","羦","荁","萈","萑","豲","鍰","鐶","锾","镮","闤","阛","雈","鬟","鹮","𬘫","𤩽"],"bǎo bǔ pù":["堡"],"máo móu wǔ":["堥"],ruán:["堧","壖","撋"],"ài è yè":["堨"],gèng:["堩","暅"],méi:["堳","塺","媒","嵋","徾","攗","枚","栂","梅","楣","楳","槑","湄","湈","煤","猸","玫","珻","瑂","眉","睂","禖","脄","脢","腜","苺","莓","葿","郿","酶","鎇","镅","霉","鶥","鹛","黴"],dǔ:["堵","琽","睹","笃","篤","覩","賭","赌"],féng:["堸","綘","艂","逢"],hèng:["堼"],chūn:["堾","媋","旾","春","暙","杶","椿","槆","橁","櫄","瑃","箺","萅","蝽","輴","鰆","鶞","䲠"],jiǎng:["塂","奖","奨","奬","桨","槳","獎","耩","膙","蒋","蔣","講","讲","顜"],huāng:["塃","巟","慌","肓","荒","衁"],duàn:["塅","断","斷","椴","段","毈","煅","瑖","碫","簖","籪","緞","缎","腶","葮","躖","鍛","锻"],tǎ:["塔","墖","獭","獺","鮙","鰨","鳎"],wěng:["塕","奣","嵡","攚","暡","瞈","蓊"],"sāi sài sè":["塞"],zàng:["塟","弉","臓","臟","葬","蔵","銺"],tián:["塡","屇","恬","沺","湉","璳","甛","甜","田","畋","畑","碵","磌","胋","闐","阗","鴫","鷆","鷏"],zhèng:["塣","幁","政","証","諍","證","证","诤","郑","鄭","靕","鴊"],"tián zhèn":["填"],wēn:["塭","昷","榲","殟","温","溫","瑥","瘟","蕰","豱","輼","轀","辒","鎾","饂","鰛","鰮","鳁"],liù:["塯","廇","磟","翏","雡","霤","餾","鬸","鷚","鹨"],hǎi:["塰","海","烸","酼","醢"],lǎng:["塱","朖","朗","朤","烺","蓢","㮾"],bèng:["塴","揼","泵","甏","綳","蹦","迸","逬","鏰","镚"],chén:["塵","宸","尘","忱","敐","敶","晨","曟","栕","樄","沉","煁","瘎","臣","茞","莀","莐","蔯","薼","螴","訦","諶","軙","辰","迧","鈂","陈","陳","霃","鷐","麎"],"ōu qiū":["塸"],"qiàn jiàn":["塹"],"zhuān tuán":["塼"],shuǎng:["塽","慡","漺","爽","縔","鏯"],shú:["塾","婌","孰","璹","秫","贖","赎"],lǒu:["塿","嵝","嶁","甊","篓","簍"],chí:["墀","弛","持","池","漦","竾","筂","箎","篪","茌","荎","蚳","謘","貾","赿","踟","迟","迡","遅","遟","遲","鍉","馳","驰"],shù:["墅","庶","庻","怷","恕","戍","束","树","樹","沭","漱","潄","濖","竖","竪","絉","腧","荗","蒁","虪","術","裋","豎","述","鉥","錰","鏣","霔","鶐","𬬸"],"dì zhì":["墆","疐"],kàn:["墈","崁","瞰","矙","磡","衎","鬫"],chěn:["墋","夦","硶","碜","磣","贂","趻","踸","鍖"],"zhǐ zhuó":["墌"],qiǎng:["墏","繈","繦","羥","襁"],zēng:["増","增","憎","璔","矰","磳","罾","譄","鄫","鱛","䎖"],qiáng:["墙","墻","嫱","嬙","樯","檣","漒","牆","艢","蔃","蔷","蘠"],"kuài tuí":["墤"],"tuǎn dǒng":["墥"],"qiáo què":["墧"],"zūn dūn":["墫"],"qiāo áo":["墽"],"yì tú":["墿"],"xué bó jué":["壆"],lǎn:["壈","嬾","孄","孏","懒","懶","揽","擥","攬","榄","欖","浨","漤","灠","纜","缆","罱","覧","覽","览","醂","顲"],huài:["壊","壞","蘾"],rǎng:["壌","壤","攘","爙"],"làn xiàn":["壏"],dǎo:["壔","导","導","岛","島","嶋","嶌","嶹","捣","搗","擣","槝","祷","禂","禱","蹈","陦","隝","隯"],ruǐ:["壡","桵","橤","繠","蕊","蕋","蘂","蘃"],san:["壭"],zhuàng:["壮","壯","壵","撞","焋","状","狀"],"ké qiào":["壳","殼"],kǔn:["壸","壼","悃","捆","梱","硱","祵","稇","稛","綑","裍","閫","閸","阃"],mǎng:["壾","漭","茻","莽","莾","蠎"],cún:["壿","存"],"zhǐ zhōng":["夂"],"gǔ yíng":["夃"],"jiàng xiáng":["夅","降"],"páng féng fēng":["夆"],zhāi:["夈","捚","摘","斋","斎","榸","粂","齋"],"xuàn xiòng":["夐"],wài:["外","顡"],"wǎn yuàn wān yuān":["夗"],"mǎo wǎn":["夘"],mèng:["夢","夣","孟","梦","癦","霥"],"dà dài":["大"],"fū fú":["夫","姇","枎","粰"],guài:["夬","怪","恠"],yāng:["央","姎","抰","殃","泱","秧","胦","鉠","鍈","雵","鴦","鸯"],"hāng bèn":["夯"],gǎo:["夰","搞","杲","槀","槁","檺","稁","稾","稿","縞","缟","菒","藁","藳"],"tāo běn":["夲"],"tóu tou":["头"],"yǎn tāo":["夵"],"kuā kuà":["夸","誇"],"jiá jiā gā xiá":["夹"],huà:["夻","婳","嫿","嬅","崋","摦","杹","枠","桦","槬","樺","澅","画","畫","畵","繣","舙","話","諙","譮","话","黊"],"jiā jiá gā xiá":["夾"],ēn:["奀","恩","蒽"],"dī tì":["奃"],"yǎn yān":["奄","渰"],pào:["奅","疱","皰","砲","礟","礮","靤","麭"],nài:["奈","柰","渿","耐","萘","褦","錼","鼐"],"quān juàn":["奍","弮","棬"],zòu:["奏","揍"],"qì qiè xiè":["契"],kāi:["奒","开","揩","鐦","锎","開"],"bēn bèn":["奔","泍"],tào:["套"],"zàng zhuǎng":["奘"],běn:["奙","本","楍","畚","翉","苯"],"xùn zhuì":["奞"],shē:["奢","檨","猞","畭","畲","賒","賖","赊","輋","𪨶"],"hǎ pò tǎi":["奤"],"ào yù":["奥","奧","澚"],yūn:["奫","氲","氳","蒀","蒕","蝹","贇","赟","𫖳"],"duǒ chě":["奲"],"nǚ rǔ":["女"],nú:["奴","孥","笯","駑","驽"],"dīng dǐng tiǎn":["奵"],"tā jiě":["她"],nuán:["奻"],"hǎo hào":["好"],fàn:["奿","嬎","梵","汎","泛","滼","瀪","犯","畈","盕","笵","範","范","訉","販","贩","軬","輽","飯","飰","饭"],shuò:["妁","搠","朔","槊","烁","爍","矟","蒴","鎙","鑠","铄"],"fēi pèi":["妃"],wàng:["妄","忘","旺","望","朢"],zhuāng:["妆","妝","娤","庄","庒","桩","梉","樁","粧","糚","荘","莊","装","裝"],mā:["妈","媽"],"fū yōu":["妋"],"hài jiè":["妎"],dù:["妒","妬","杜","殬","渡","秺","芏","荰","螙","蠧","蠹","鍍","镀","靯","𬭊"],miào:["妙","庙","庿","廟","玅","竗"],"fǒu pēi pī":["妚"],"yuè jué":["妜"],niū:["妞"],"nà nàn":["妠"],tuǒ:["妥","嫷","庹","椭","楕","橢","鬌","鰖","鵎"],"wàn yuán":["妧"],fáng:["妨","房","肪","防","魴","鲂"],nī:["妮"],zhóu:["妯","碡"],zhāo:["妱","巶","招","昭","釗","鉊","鍣","钊","駋","𬬿"],"nǎi nǐ":["妳"],tǒu:["妵","敨","紏","蘣","黈"],"xián xuán xù":["妶"],"zhí yì":["妷","秇"],ē:["妸","妿","婀","屙"],mèi:["妹","媚","寐","抺","旀","昧","沬","煝","痗","眛","睸","祙","篃","蝞","袂","跊","鬽","魅"],"qī qì":["妻"],"xū xǔ":["姁","稰"],"shān shàn":["姍","姗","苫","釤","钐"],mán:["姏","慲","樠","蛮","蠻","謾","饅","馒","鬗","鬘","鰻","鳗"],jiě:["姐","媎","檞","毑","飷"],"wěi wēi":["委"],pīn:["姘","拼","礗","穦","馪","驞"],"huá huó":["姡"],"jiāo xiáo":["姣"],"gòu dù":["姤"],"lǎo mǔ":["姥"],"nián niàn":["姩"],zhěn:["姫","屒","弫","抮","昣","枕","畛","疹","眕","稹","縝","縥","缜","聄","萙","袗","裖","覙","診","诊","軫","轸","辴","駗","鬒"],héng:["姮","恆","恒","烆","珩","胻","蘅","衡","鑅","鴴","鵆","鸻"],"jūn xún":["姰"],"kuā hù":["姱"],"è yà":["姶"],"xiān shēn":["姺"],wá:["娃"],"ráo rǎo":["娆","嬈"],"shào shāo":["娋"],xiē:["娎","揳","楔","歇","蝎","蠍"],"wǔ méi mǔ":["娒"],"chuò lài":["娕"],niáng:["娘","嬢","孃"],"nà nuó":["娜","𦰡"],"pōu bǐ":["娝"],"něi suī":["娞"],tuì:["娧","煺","蛻","蜕","退","駾"],mǎn:["娨","屘","満","满","滿","螨","蟎","襔","鏋"],"wú wù yú":["娪"],"xī āi":["娭"],"zhuì shuì":["娷"],"dōng dòng":["娻"],"ǎi ái è":["娾"],"ē ě":["娿"],mián:["婂","嬵","宀","杣","棉","檰","櫋","眠","矈","矊","矏","綿","緜","绵","芇","蝒"],"pǒu péi bù":["婄"],biǎo:["婊","脿","表","裱","褾","諘","錶"],"fù fàn":["婏"],wǒ:["婐","婑","我"],"ní nǐ":["婗","棿"],"quán juàn":["婘","惓"],hūn:["婚","昏","昬","棔","涽","睧","睯","碈","荤","葷","蔒","轋","閽","阍"],"qiān jǐn":["婜"],"wān wà":["婠"],"lái lài":["婡","徕","徠"],"zhōu chōu":["婤"],"chuò nào":["婥"],"nüè àn":["婩"],"hùn kūn":["婫"],"dàng yáng":["婸"],nàn:["婻"],"ruò chuò":["婼"],jiǎ:["婽","岬","斚","斝","榎","槚","檟","玾","甲","胛","鉀","钾"],"tōu yú":["婾","媮"],"yù yú":["媀"],"wéi wěi":["媁"],"dì tí":["媂","珶","苐"],róu:["媃","揉","柔","渘","煣","瑈","瓇","禸","粈","糅","脜","腬","葇","蝚","蹂","輮","鍒","鞣","騥","鰇","鶔","𫐓"],"ruǎn nèn":["媆"],miáo:["媌","嫹","描","瞄","苗","鶓","鹋"],"yí pèi":["媐"],"mián miǎn":["媔"],"tí shì":["媞","惿"],"duò tuó":["媠","沲"],ǎo:["媪","媼","艹","芺","袄","襖","镺"],"chú zòu":["媰"],yìng:["媵","映","暎","硬","膡","鱦"],"qín shēn":["嫀"],jià:["嫁","幏","架","榢","稼","駕","驾"],sǎo:["嫂"],"zhēn zhěn":["嫃"],"jiē suǒ":["嫅"],"míng mǐng":["嫇"],niǎo:["嫋","嬝","嬲","茑","蔦","袅","裊","褭","鸟"],tāo:["嫍","幍","弢","慆","掏","搯","槄","涛","滔","濤","瑫","絛","縚","縧","绦","詜","謟","轁","鞱","韜","韬","飸","饕"],biáo:["嫑"],"piáo piāo":["嫖","薸"],xuán:["嫙","悬","懸","暶","檈","漩","玄","璇","璿","痃","蜁","𫠊"],"màn mān":["嫚"],kāng:["嫝","嵻","康","慷","槺","漮","砊","穅","糠","躿","鏮","鱇","𡐓","𩾌"],"hān nǎn":["嫨"],nèn:["嫩","嫰"],zhē:["嫬","遮"],"mā má":["嫲"],piè:["嫳"],zhǎn:["嫸","展","搌","斩","斬","琖","盏","盞","輾","醆","颭","飐"],"xiān yǎn jìn":["嬐"],liǎn:["嬚","敛","斂","琏","璉","羷","脸","臉","蔹","蘝","蘞","裣","襝","鄻"],"qióng huán xuān":["嬛"],dǒng:["嬞","懂","箽","董","蕫","諌"],cān:["嬠","湌","爘","飡","餐","驂","骖"],tiǎo:["嬥","宨","晀","朓","窱","脁"],bí:["嬶","荸","鼻"],liǔ:["嬼","柳","栁","桞","桺","橮","熮","珋","綹","绺","罶","羀","鋶","锍"],"qiān xiān":["孅","欦"],"xié huī":["孈"],"huān quán":["孉"],"lí lì":["孋","麗"],"zhú chuò":["孎"],kǒng:["孔","恐"],"mā zī":["孖"],"sūn xùn":["孙","孫"],"bèi bó":["孛","誖"],"yòu niū":["孧"],zhuǎn:["孨","竱","轉"],hái:["孩","骸"],nāo:["孬"],"chán càn":["孱"],bò:["孹","檗","蘗","譒"],nái:["孻","腉"],"níng nìng":["宁","寍","寗","寜","寧","甯"],zhái:["宅"],"tū jiā":["宊"],sòng:["宋","訟","誦","讼","诵","送","鎹","頌","颂","餸"],ròu:["宍","肉","譳"],zhūn:["宒","窀","衠","諄","谆","迍"],"mì fú":["宓"],"dàng tàn":["宕"],"wǎn yuān":["宛"],chǒng:["宠","寵"],qún:["宭","峮","帬","羣","群","裙","裠"],zǎi:["宰","崽"],"bǎo shí":["宲"],"jiā jia jie":["家"],"huāng huǎng":["宺"],kuān:["宽","寛","寬","臗","鑧","髋","髖"],"sù xiǔ xiù":["宿"],"jié zǎn":["寁"],"bìng bǐng":["寎"],"jìn qǐn":["寖"],"lóu jù":["寠"],"xiě xiè":["寫"],"qīn qìn":["寴"],cùn:["寸","籿"],duì:["对","対","對","怼","憝","懟","濧","瀩","碓","祋","綐","薱","譈","譵","轛","队","陮"],"lüè luó":["寽"],"shè yè yì":["射"],"jiāng jiàng qiāng":["将"],"jiāng jiàng":["將","浆","漿","畺"],zūn:["尊","嶟","樽","罇","遵","鐏","鱒","鳟","鶎","鷷","𨱔"],"shù zhù":["尌","澍"],xiǎo:["小","晓","暁","曉","皛","皢","筱","筿","篠","謏","𫍲"],"jié jí":["尐","诘","鞊"],"shǎo shào":["少"],ěr:["尒","尓","尔","栮","毦","洱","爾","珥","耳","薾","衈","趰","迩","邇","鉺","铒","餌","饵","駬"],"wāng yóu":["尢"],wāng:["尣","尩","尪","尫","汪"],liào:["尥","尦","廖","撂","料","炓","窷","鐐","镣","𪤗"],"méng máng lóng páng":["尨"],gà:["尬","魀"],"kuì kuǐ":["尯"],tuí:["尵","弚","穨","蘈","蹪","隤","頹","頺","頽","颓","魋","𬯎"],yǐn:["尹","嶾","引","朄","檃","檼","櫽","淾","濥","瘾","癮","粌","蘟","蚓","螾","讔","赺","趛","輑","鈏","靷"],"chǐ chě":["尺"],kāo:["尻","髛"],"jìn jǐn":["尽"],"wěi yǐ":["尾"],"niào suī":["尿"],céng:["层","層","嶒","驓"],diǎo:["屌"],"píng bǐng bīng":["屏"],lòu:["屚","漏","瘘","瘺","瘻","鏤","镂","陋"],"shǔ zhǔ":["属","屬"],"xiè tì":["屟"],"chè cǎo":["屮"],"tún zhūn":["屯"],"nì jǐ":["屰"],"hóng lóng":["屸"],"qǐ kǎi":["岂","豈"],áng:["岇","昂","昻"],"gǎng gāng":["岗","崗"],kě:["岢","敤","渇","渴","炣"],gǒu:["岣","狗","玽","笱","耇","耈","耉","苟","豿"],tiáo:["岧","岹","樤","祒","笤","芀","萔","蓚","蓨","蜩","迢","鋚","鎥","鞗","髫","鯈","鰷","鲦","齠","龆"],"qū jū":["岨"],lǐng:["岭","嶺","領","领"],pò:["岶","敀","洦","湐","烞","珀","破","砶","粕","蒪","魄"],"bā kè":["峇"],luò:["峈","摞","洛","洜","犖","珞","笿","纙","荦","詻","雒","駱","骆","鵅"],"fù niè":["峊"],ěn:["峎"],"zhì shì":["峙","崻"],qiǎ:["峠","跒","酠","鞐"],"qiáo jiào":["峤","癄"],"xié yé":["峫"],bū:["峬","庯","晡","誧","逋","鈽","錻","钸","餔","鵏"],chóng:["崇","崈","爞","虫","蝩","蟲","褈","隀"],"zú cuì":["崒","椊"],"líng léng":["崚"],"dòng dōng":["崠"],xiáo:["崤","洨","淆","訤","誵"],"pí bǐ":["崥","芘"],"zhǎn chán":["崭","嶃","嶄"],"wǎi wēi":["崴"],"yáng dàng":["崵"],"shì dié":["崼"],yào:["崾","曜","熎","燿","矅","穾","窔","筄","耀","艞","药","葯","薬","藥","袎","覞","詏","讑","靿","鷂","鹞","鼼"],"kān zhàn":["嵁"],"hán dǎng":["嵅"],"qiàn kàn":["嵌"],"wù máo":["嵍"],"kě jié":["嵑","嶱"],"wēi wěi":["嵔"],kē:["嵙","柯","棵","榼","樖","牁","牱","犐","珂","疴","瞌","磕","礚","科","稞","窠","萪","薖","蚵","蝌","趷","轲","醘","鈳","钶","頦","顆","颗","髁"],"dàng táng":["嵣"],"róng yíng":["嵤","爃"],"ái kǎi":["嵦"],"kāo qiāo":["嵪"],cuó:["嵯","嵳","痤","矬","蒫","蔖","虘","鹺","鹾"],"qiǎn qīn":["嵰"],"dì dié":["嵽"],cēn:["嵾"],dǐng:["嵿","艼","薡","鐤","頂","顶","鼎","鼑"],"áo ào":["嶅"],"pǐ pèi":["嶏"],"jiào qiáo":["嶠","潐"],"jué guì":["嶡","鳜"],"zhān shàn":["嶦","鳣"],"xiè jiè":["嶰"],"guī xī juàn":["嶲"],rū:["嶿"],"lì liè":["巁","棙","爄","綟"],"xī guī juàn":["巂"],"yíng hōng":["巆"],yǐng:["巊","廮","影","摬","梬","潁","瘿","癭","矨","穎","郢","鐛","頴","颍","颕","颖"],chǎo:["巐","炒","煼","眧","麨"],cuán:["巑","櫕","欑"],chuān:["巛","川","氚","瑏","穿"],"jīng xíng":["巠"],cháo:["巢","巣","晁","漅","潮","牊","窲","罺","謿","轈","鄛","鼌"],qiǎo:["巧","愀","髜"],gǒng:["巩","廾","拱","拲","栱","汞","珙","輁","鞏"],"chà chā chāi cī":["差"],"xiàng hàng":["巷"],shuài:["帅","帥","蟀"],pà:["帊","帕","怕","袙"],"tǎng nú":["帑"],"mò wà":["帓"],"tiē tiě tiè":["帖"],zhǒu:["帚","晭","疛","睭","箒","肘","菷","鯞"],"juǎn juàn":["帣"],shuì:["帨","涗","涚","睡","稅","税","裞"],"chóu dào":["帱","幬"],"jiǎn jiān sàn":["帴"],"shà qiè":["帹"],"qí jì":["帺","荠"],"shān qiāo shēn":["幓"],"zhuàng chuáng":["幢"],"chān chàn":["幨"],miè:["幭","懱","搣","滅","灭","烕","礣","篾","蔑","薎","蠛","衊","鑖","鱴","鴓"],"gān gàn":["干"],"bìng bīng":["并","幷"],"jī jǐ":["幾"],"guǎng ān":["广"],guǎng:["広","廣","犷","獷"],me:["庅"],"dùn tún":["庉"],"bài tīng":["庍"],"yìng yīng":["应"],"dǐ de":["底"],"dù duó":["度"],"máng méng páng":["庬"],"bìng píng":["庰"],chěng:["庱","悜","睈","逞","騁","骋"],"jī cuò":["庴"],qǐng:["庼","廎","檾","漀","苘","請","謦","请","頃","顷"],"guī wěi huì":["廆"],"jǐn qín":["廑"],kuò:["廓","扩","拡","擴","濶","筈","萿","葀","蛞","闊","阔","霩","鞟","鞹","韕","頢","鬠"],"qiáng sè":["廧","薔"],"yǐn yìn":["廴","隐","隠","隱","飮","飲","饮"],"pò pǎi":["廹","迫"],"nòng lòng":["弄"],"dì tì tuí":["弟"],"jué zhāng":["弡"],"mí mǐ":["弥","彌","靡"],chāo:["弨","怊","抄","欩","訬","超","鈔","钞"],yi:["弬"],shāo:["弰","旓","烧","焼","燒","筲","艄","萷","蕱","輎","髾","鮹"],"xuān yuān":["弲"],"qiáng qiǎng jiàng":["強","强"],"tán dàn":["弹","醈"],biè:["彆"],"qiáng jiàng qiǎng":["彊"],"jì xuě":["彐"],tuàn:["彖","褖"],yuē:["彟","曰","曱","矱"],"shān xiǎn":["彡"],wén:["彣","文","炆","珳","瘒","繧","聞","芠","蚉","蚊","螡","蟁","閺","閿","闅","闦","闻","阌","雯","馼","駇","魰","鳼","鴍","鼤","𫘜"],"péng bāng":["彭"],"piāo piào":["彯"],"zhuó bó":["彴"],"tuǒ yí":["彵"],"páng fǎng":["彷"],wǎng:["彺","往","徃","惘","枉","棢","網","网","罒","罓","罔","罖","菵","蛧","蝄","誷","輞","辋","魍"],cú:["徂","殂"],"dài dāi":["待"],huái:["徊","怀","懐","懷","槐","淮","耲","蘹","褢","褱","踝"],"wā wàng jiā":["徍"],"chěng zhèng":["徎"],"dé děi de":["得"],"cóng zòng":["從"],"shì tǐ":["徥"],"tí chí":["徲","鶗","鶙"],dé:["徳","德","恴","悳","惪","淂","鍀","锝"],"zhǐ zhēng":["徴","徵"],bié:["徶","癿","莂","蛂","襒","蹩"],"chōng zhǒng":["徸"],"jiǎo jiào":["徼","笅","筊"],"lòng lǒng":["徿"],"qú jù":["忂","渠","瞿","螶"],"dìng tìng":["忊"],gǎi:["忋","改"],rěn:["忍","栠","栣","秹","稔","綛","荏","荵","躵"],chàn:["忏","懴","懺","硟","羼","韂","顫"],tè:["忑","慝","特","蟘","鋱","铽"],"tè tēi tuī":["忒"],"gān hàn":["忓","攼"],"yì qì":["忔"],"tài shì":["忕"],"xī liě":["忚"],"yīng yìng":["応","應","譍"],"mǐn wěn mín":["忞","忟"],"sōng zhōng":["忪"],"yù shū":["忬","悆"],"qí shì":["忯","耆"],"tún zhūn dùn":["忳"],"qián qín":["忴","扲"],hún:["忶","浑","渾","餛","馄","魂","鼲"],niǔ:["忸","扭","炄","狃","紐","纽","莥","鈕","钮","靵"],"kuáng wǎng":["忹"],"kāng hàng":["忼"],"kài xì":["忾","愾"],òu:["怄","慪"],"bǎo bào":["怉"],"mín mén":["怋"],"zuò zhà":["怍"],zěn:["怎"],yàng:["怏","恙","样","様","樣","漾","羕","詇"],"kòu jù":["怐"],"náo niú":["怓"],"zhēng zhèng":["怔","掙","钲","铮"],"tiē zhān":["怗"],"hù gù":["怘"],"cū jù zū":["怚"],"sī sāi":["思"],"yóu chóu":["怞"],"tū dié":["怢"],"yōu yào":["怮"],xuàn:["怰","昡","楦","泫","渲","炫","琄","眩","碹","絢","縼","繏","绚","蔙","衒","袨","贙","鉉","鏇","铉","镟","颴"],"xù xuè":["怴"],"bì pī":["怶"],"xī shù":["怸"],"nèn nín":["恁"],"tiāo yáo":["恌"],"xī qī xù":["恓"],"xiào jiǎo":["恔"],"hū kuā":["恗"],nǜ:["恧","朒","衂","衄"],hèn:["恨"],"dòng tōng":["恫"],"quán zhuān":["恮"],"è wù ě wū":["恶","惡"],tòng:["恸","慟","憅","痛","衕"],"yuān juàn":["悁"],"qiāo qiǎo":["悄"],"jiè kè":["悈"],"hào jiào":["悎"],huǐ:["悔","檓","毀","毁","毇","燬","譭"],"mán mèn":["悗","鞔"],"yī yì":["悘","衣"],quān:["悛","箞","鐉","𨟠"],"kuī lǐ":["悝"],"yì niàn":["悥"],"mèn mēn":["悶"],guàn:["悹","悺","惯","慣","掼","摜","樌","欟","泴","涫","潅","灌","爟","瓘","盥","礶","祼","罆","罐","貫","贯","躀","遦","鏆","鑵","鱹","鸛","鹳"],"kōng kǒng":["悾"],"lǔn lùn":["惀"],guǒ:["惈","果","椁","槨","粿","綶","菓","蜾","裹","褁","輠","餜","馃"],"yuān wǎn":["惌","箢"],"lán lín":["惏"],"yù xù":["惐","淢"],"chuò chuì":["惙"],"hūn mèn":["惛"],"chǎng tǎng":["惝"],"suǒ ruǐ":["惢"],cǎn:["惨","慘","憯","黪","黲","䅟"],cán:["惭","慙","慚","残","殘","蚕","蝅","蠶","蠺"],"dàn dá":["惮","憚"],rě:["惹"],"yú tōu":["愉"],"kài qì":["愒"],"dàng táng shāng yáng":["愓"],"chén xìn dān":["愖"],"kè qià":["愘"],nuò:["愞","懦","懧","掿","搦","榒","稬","穤","糑","糥","糯","諾","诺","蹃","逽","鍩","锘"],gǎn:["感","擀","敢","桿","橄","澉","澸","皯","秆","稈","笴","芉","衦","赶","趕","鱤","鳡"],"còng sōng":["愡"],"sāi sī sǐ":["愢"],"gōng gòng hǒng":["愩","慐"],"shuò sù":["愬","洬"],"yáo yào":["愮"],huàng:["愰","曂","榥","滉","皝","皩","鎤","㿠"],zhěng:["愸","抍","拯","整","晸"],cǎo:["愺","艸","草","騲"],"xì xié":["慀"],"cǎo sāo":["慅"],"xù chù":["慉"],"qiè qiàn":["慊"],"cáo cóng":["慒"],"ào áo":["慠"],"lián liǎn":["慩","梿","槤","櫣"],"jìn qín jǐn":["慬"],"dì chì":["慸"],"zhí zhé":["慹"],"lóu lǚ":["慺","鷜"],còng:["憁","謥"],"zhī zhì":["憄","知","織","织"],chēng:["憆","摚","撐","撑","晿","柽","棦","橕","檉","泟","浾","琤","瞠","碀","緽","罉","蛏","蟶","赪","赬","鏿","鐣","阷","靗","頳","饓"],biē:["憋","虌","鱉","鳖","鼈","龞"],"chéng dèng zhèng":["憕"],"xǐ xī":["憘"],"duì dùn tūn":["憞"],"xiāo jiāo":["憢"],"xián xiàn":["憪"],"liáo liǎo":["憭","燎","爎","爒"],shéng:["憴","縄","繉","繩","绳","譝"],"náo nǎo náng":["憹"],"jǐng jìng":["憼"],"jǐ jiǎo":["憿"],"xuān huān":["懁"],"cǎo sāo sào":["懆"],mèn:["懑","懣","暪","焖","燜"],"mèng méng měng":["懜"],"ài yì nǐ":["懝"],"méng měng":["懞","瞢","矒"],"qí jī jì":["懠"],mǒ:["懡"],"lán xiàn":["懢"],"yōu yǒu":["懮"],"liú liǔ":["懰","藰"],ràng:["懹","譲","讓","让"],huān:["懽","欢","歓","歡","獾","讙","貛","酄","驩","鴅","鵍"],nǎn:["戁","揇","湳","煵","腩","蝻","赧"],"mí mó":["戂"],"gàng zhuàng":["戅","戆"],"zhuàng gàng":["戇"],"xū qu":["戌"],"xì hū":["戏","戯","戲"],"jiá gā":["戛"],zéi:["戝","蠈","賊","贼","鰂","鱡","鲗"],děng:["戥","等"],"hū xì":["戱"],chuō:["戳","踔","逴"],"biǎn piān":["扁"],"shǎng jiōng":["扄"],"shàn shān":["扇"],cái:["才","材","纔","裁","財","财"],"zhā zā zhá":["扎"],"lè lì cái":["扐"],"bā pá":["扒"],"dǎ dá":["打"],rēng:["扔"],"fǎn fú":["払"],"diǎo dí yuē lì":["扚"],"káng gāng":["扛"],"yū wū":["扜"],"yū wū kū":["扝"],"tuō chǐ yǐ":["扡"],"gǔ jié xì gē":["扢"],dèn:["扥","扽"],"sǎo sào":["扫","掃"],rǎo:["扰","擾","隢"],"xī chā qì":["扱"],"bān pān":["扳"],"bā ào":["扷"],"xī zhé":["扸"],"zhì sǔn kǎn":["扻"],zhǎo:["找","沼","瑵"],"kuáng wǎng zài":["抂"],"hú gǔ":["抇","鹄","鹘"],"bǎ bà":["把"],"dǎn shěn":["抌"],"nè nì ruì nà":["抐"],zhuā:["抓","檛","簻","膼","髽"],póu:["抔","裒"],"zhé shé zhē":["折"],"póu pōu fū":["抙","捊"],pāo:["抛","拋","脬","萢"],"ǎo ào niù":["抝"],"lūn lún":["抡","掄"],"qiǎng qiāng chēng":["抢"],"zhǐ zhǎi":["抧"],"bù pū":["抪","柨"],"yǎo tāo":["抭"],"hē hè qiā":["抲"],"nǐ ní":["抳"],"pī pēi":["抷"],"mǒ mò mā":["抹"],chōu:["抽","犨","犫","瘳","篘"],"jiā yá":["拁"],"fú bì":["拂","畐","鶝"],zhǎ:["拃","眨","砟","鮺","鲝"],"dān dàn dǎn":["担"],"chāi cā":["拆"],niān:["拈","蔫"],"lā lá lǎ là":["拉"],"bàn pàn":["拌"],pāi:["拍"],līn:["拎"],guǎi:["拐","枴","柺"],"tuò tà zhí":["拓"],"ào ǎo niù":["拗"],"jū gōu":["拘"],"pīn pàn fān":["拚"],"bài bái":["拜"],bài:["拝","敗","稗","粺","薭","贁","败","韛"],qiá:["拤"],"nǐng níng nìng":["拧"],"zé zhái":["择","擇"],hén:["拫","痕","鞎"],"kuò guā":["括"],"jié jiá":["拮"],nǐn:["拰"],shuān:["拴","栓","閂","闩"],"cún zùn":["拵"],"zā zǎn":["拶","桚"],kǎo:["拷","攷","栲","烤","考"],"yí chǐ hài":["拸"],"cè sè chuò":["拺"],"zhuài zhuāi yè":["拽"],"shí shè":["拾"],bāi:["挀","掰"],"kuò guāng":["挄"],nòng:["挊","挵","齈"],"jiào jiāo":["挍","敎","教"],"kuà kū":["挎"],"ná rú":["挐"],"tiāo tiǎo":["挑"],"dié shè":["挕"],liě:["挘","毟"],"yà yǎ":["挜","掗"],"wō zhuā":["挝"],"xié jiā":["挟","挾"],"dǎng dàng":["挡","擋"],"zhèng zhēng":["挣","正","症"],"āi ái":["挨"],"tuō shuì":["挩","捝"],"tǐ tì":["挮"],"suō shā":["挱"],"sā shā suō":["挲"],"kēng qiān":["挳","摼"],"bàng péng":["挷"],"ruó ruá":["挼"],"jiǎo kù":["捁"],"wǔ wú":["捂"],tǒng:["捅","桶","筒","筩","統","綂","统","㛚"],"huò chì":["捇"],"tú shū chá":["捈"],"lǚ luō":["捋"],"shāo shào":["捎","稍"],niē:["捏","揑"],"shù sǒng sōu":["捒"],"yé yú":["捓"],"jué zhuó":["捔"],"bù pú zhì":["捗"],zùn:["捘","銌"],lāo:["捞","撈","粩"],sǔn:["损","損","榫","笋","筍","箰","鎨","隼"],"wàn wǎn wān yù":["捥"],pěng:["捧","淎","皏"],shě:["捨"],"fǔ fù bǔ":["捬"],dáo:["捯"],"luò luǒ wǒ":["捰"],"juǎn quán":["捲"],"chēn tiǎn":["捵"],"niǎn niē":["捻"],"ruó wěi ré":["捼"],zuó:["捽","昨","秨","稓","筰","莋","鈼"],"wò xiá":["捾"],"qìng qiàn":["掅"],"póu pǒu":["掊"],qiā:["掐","葜"],"pái pǎi":["排"],"qiān wàn":["掔"],"yè yē":["掖"],"niè nǐ yì":["掜"],"huò xù":["掝"],"yàn shàn yǎn":["掞"],"zhěng dìng":["掟"],kòng:["控","鞚"],tuī:["推","蓷","藬"],"zōu zhōu chōu":["掫"],tiàn:["掭","舚"],kèn:["掯","裉","褃"],pá:["掱","杷","潖","爬","琶","筢"],"guó guāi":["掴"],"dǎn shàn":["掸","撣"],"chān xiān càn shǎn":["掺"],sāo:["掻","搔","溞","繅","缫","螦","騒","騷","鰠","鱢","鳋"],pèng:["掽","椪","槰","碰","踫"],"zhēng kēng":["揁"],"jiū yóu":["揂"],"jiān jiǎn":["揃","籛"],"pì chè":["揊"],"sāi zǒng cāi":["揌"],"tí dī dǐ":["提"],"zǒng sōng":["揔"],"huáng yóng":["揘"],"zǎn zuàn":["揝"],"xū jū":["揟"],"ké qiā":["揢"],"chuāi chuǎi chuài tuán zhuī":["揣"],"dì tì":["揥"],"lá là":["揦"],là:["揧","楋","溂","瓎","瘌","翋","臘","蝋","蝲","蠟","辢","辣","鑞","镴","鬎","鯻","𬶟"],"jiē qì":["揭"],"chòng dǒng":["揰"],"dié shé yè":["揲"],"jiàn qián jiǎn":["揵"],yé:["揶","爷","爺","瑘","鋣","鎁","铘"],chān:["搀","摻","攙","裧","襜","覘","觇","辿","鋓"],"gē gé":["搁","擱"],"lǒu lōu":["搂","摟"],"chōu zǒu":["搊"],chuāi:["搋"],sūn:["搎","槂","狲","猻","荪","蓀","蕵","薞","飧","飱"],"róng náng nǎng":["搑"],"péng bàng":["搒"],cuō:["搓","瑳","磋","蹉","遳","醝"],"kē è":["搕"],"nù nuò nòu":["搙"],"lā xié xiàn":["搚"],qiǔ:["搝","糗"],"xiǎn xiān":["搟"],"jié zhé":["搩"],"pán bān pó":["搫"],bān:["搬","攽","斑","斒","班","瘢","癍","肦","螁","螌","褩","辬","頒","颁","𨭉"],"zhì nái":["搱"],"wā wǎ wà":["搲"],huá:["搳","撶","滑","猾","蕐","螖","譁","鏵","铧","驊","骅","鷨"],"qiāng qiǎng chēng":["搶"],"tián shēn":["搷"],"ná nuò":["搻"],èn:["摁"],"shè niè":["摄","攝"],bìn:["摈","擯","殡","殯","膑","臏","髌","髕","髩","鬂","鬓","鬢"],"shā sà shǎi":["摋"],"chǎn sùn":["摌"],"jiū liú liáo jiǎo náo":["摎"],"féng pěng":["摓"],shuāi:["摔"],"dì tú zhí":["摕"],"qì jì chá":["摖"],"sōu sǒng":["摗"],"liǎn liàn":["摙"],"gài xì":["摡"],"hù chū":["摢"],tàng:["摥","烫","燙","鐋"],"nái zhì":["摨"],"mó mā":["摩"],"jiāng qiàng":["摪"],"áo qiáo":["摮"],"niè chè":["摰"],"mán màn":["摱"],"chàn cán":["摲"],"sè mí sù":["摵"],"biāo biào":["摽"],"juē jué":["撅"],piē:["撆","暼","氕","瞥"],"piě piē":["撇"],"zǎn zān zēn qián":["撍"],"sā sǎ":["撒"],hòng:["撔","訌","讧","闀","鬨"],"héng guàng":["撗"],niǎn:["撚","撵","攆","涊","焾","碾","簐","蹍","蹨","躎","輦","辇"],"chéng zhěng":["撜"],"huī wéi":["撝"],cāo:["撡","操","糙"],"xiāo sōu":["撨"],"liáo liāo":["撩"],"cuō zuǒ":["撮"],"wěi tuǒ":["撱"],cuān:["撺","攛","汆","蹿","躥","鑹","镩"],"qiào yāo jī":["撽"],"zhuā wō":["撾"],"lèi léi":["擂"],nǎng:["擃","攮","曩","灢"],"qíng jǐng":["擏"],kuǎi:["擓","蒯","㧟"],"pǐ bò":["擗"],"bò bāi":["擘"],"jù jǐ":["據"],mēng:["擝"],"sǒu sòu":["擞"],xǐng:["擤","箵","醒"],cā:["擦"],"níng nǐng nìng":["擰"],"zhì jié":["擳"],"là liè":["擸","爉"],"sòu sǒu":["擻"],"lì luò yuè":["擽"],"tī zhāi zhì":["擿"],pān:["攀","潘","眅","萠"],lèi:["攂","泪","涙","淚","禷","类","纇","蘱","酹","銇","錑","頛","頪","類","颣"],"cā sǎ":["攃"],"jùn pèi":["攈"],"lì luò":["攊","躒"],"là lài":["攋","櫴"],"lú luó":["攎"],"zǎn cuán":["攒"],"xiān jiān":["攕"],"mí mǐ mó":["攠"],"zǎn cuán zàn zuān":["攢"],zuàn:["攥"],"lì shài":["攦"],"lì luǒ":["攭"],"guǐ guì":["攱"],"jī qī yǐ":["攲"],fàng:["放"],"wù móu":["敄"],"chù shōu":["敊"],"gé guó è":["敋"],"duó duì":["敓","敚"],"duō què":["敠","敪"],"sàn sǎn":["散"],"dūn duì":["敦","镦"],"qī yǐ jī":["敧"],"xiào xué":["敩"],"shù shǔ shuò":["数","數"],"ái zhú":["敱","敳"],"xiòng xuàn":["敻"],"zhuó zhú":["斀"],"yì dù":["斁"],"lí tái":["斄"],"fěi fēi":["斐"],"yǔ zhōng":["斔"],"dòu dǒu":["斗"],"wò guǎn":["斡"],"tǒu tiǎo":["斢"],dòu:["斣","梪","浢","痘","窦","竇","脰","荳","豆","逗","郖","酘","閗","闘","餖","饾","鬥","鬦","鬪","鬬","鬭"],"yín zhì":["斦"],"chǎn jiè":["斺"],"wū yū yú":["於"],"yóu liú":["斿"],"páng bàng":["旁"],"máo mào":["旄"],"pī bì":["旇"],"xuán xuàn":["旋"],"wú mó":["无"],zǎo:["早","枣","栆","棗","澡","璪","薻","藻","蚤"],gā:["旮"],"gàn hàn":["旰"],"tái yīng":["旲"],"xū xù":["旴"],"tūn zhùn":["旽"],"wù wǔ":["旿"],"pò pèi":["昢"],zòng:["昮","猔","疭","瘲","粽","糉","糭","縦"],ǎi:["昹","毐","矮","蔼","藹","譪","躷","霭","靄"],"huàng huǎng":["晃"],xuǎn:["晅","癣","癬","选","選"],"xù kuā":["晇"],hǒng:["晎"],shài:["晒","曬"],"yūn yùn":["晕","煴"],"shèng chéng":["晟","椉","盛"],"jǐng yǐng":["景"],shǎn:["晱","熌","睒","覢","閃","闪","陕","陝"],"qǐ dù":["晵"],"ǎn àn yǎn":["晻"],"wǎng wàng":["暀"],zàn:["暂","暫","瓉","瓒","瓚","禶","襸","讃","讚","賛","贊","赞","蹔","鄼","錾","鏨","饡"],"yùn yūn":["暈"],"mín mǐn":["暋"],"dǔ shǔ":["暏"],shǔ:["暑","曙","潻","癙","糬","署","薥","薯","藷","蜀","蠴","襡","襩","鱪","鱰","黍","鼠","鼡"],"jiǎn lán":["暕"],nuǎn:["暖","煗","餪"],"bào pù":["暴"],"xī xǐ":["暿"],"pù bào":["曝","瀑"],"qū qǔ":["紶"],"qǔ qū":["曲"],"gèng gēng":["更"],"hū hù":["曶","雽"],"zēng céng":["曽","橧"],"céng zēng":["曾","竲"],"cǎn qián jiàn":["朁"],"qiè hé":["朅"],"bì pí":["朇","禆","笓","裨"],"yǒu yòu":["有"],"bān fén":["朌","鳻"],"fú fù":["服","洑"],"fěi kū":["朏","胐"],"qú xù chǔn":["朐"],"juān zuī":["朘"],"huāng máng wáng":["朚"],"qī jī":["期"],"tóng chuáng":["朣","橦"],zhá:["札","牐","箚","蚻","譗","鍘","铡","閘","闸"],"zhú shù shú":["朮"],"shù shú zhú":["术"],"zhū shú":["朱"],"pǔ pò pō piáo":["朴"],"dāo tiáo mù":["朷"],"guǐ qiú":["朹"],xiǔ:["朽","滫","潃","糔"],"chéng chēng":["朾"],zá:["杂","沯","砸","襍","雑","雜","雥","韴"],"yú wū":["杅"],"gān gǎn":["杆"],"chā chà":["杈"],"shān shā":["杉"],cūn:["村","皴","竴","膥","踆","邨"],"rèn ér":["杒","梕"],"sháo biāo":["杓"],"dì duò":["杕","枤"],"gū gài":["杚"],"yí zhì lí duò":["杝"],"gàng gāng":["杠"],"tiáo tiāo":["条","條"],"mà mǎ":["杩"],"sì zhǐ xǐ":["杫"],"yuán wán":["杬","蚖"],"bèi fèi":["杮"],"shū duì":["杸"],"niǔ chǒu":["杻"],"wò yuè":["枂","臒"],máo:["枆","毛","氂","渵","牦","矛","罞","茅","茆","蝥","蟊","軞","酕","鉾","錨","锚","髦","鶜"],"pī mì":["枈"],àng:["枊","盎","醠"],"fāng bìng":["枋"],"hù dǐ":["枑"],xín:["枔","襑","鐔","鬵"],"yāo yǎo":["枖"],"ě è":["枙"],"zhī qí":["枝"],"cōng zōng":["枞","樅"],"xiān zhēn":["枮"],"tái sì":["枱"],"gǒu jǔ gōu":["枸"],"bāo fú":["枹"],"yì xiè":["枻","栧"],"tuó duò":["柁","馱","駄","驮"],"yí duò lí":["柂"],"nǐ chì":["柅"],"pán bàn":["柈","跘"],"yǎng yàng yāng yīng":["柍"],"fù fū fǔ":["柎"],"bǎi bó bò":["柏"],mǒu:["某"],"sháo shào":["柖"],zhè:["柘","樜","浙","淛","蔗","蟅","這","鷓","鹧","䗪"],"yòu yóu":["柚","櫾"],"guì jǔ":["柜"],"zhà zuò":["柞"],"dié zhì":["柣","眰"],"zhā zǔ zū":["柤"],"chá zhā":["查","査"],"āo ào":["柪","軪"],"bā fú pèi bó biē":["柭"],"duò zuó wù":["柮"],"bì bié":["柲"],"zhù chù":["柷"],"bēi pēi":["柸"],"shì fèi":["柹"],"shān zhà shi cè":["栅"],"lì yuè":["栎","櫟"],"qì qiè":["栔","砌"],"qī xī":["栖","蹊"],"guā kuò":["栝"],"bīng bēn":["栟"],"xiào jiào":["校"],"jiàn zùn":["栫","袸"],"yǒu yù":["栯"],"hé hú":["核"],gēn:["根","跟"],"zhī yì":["栺"],"gé gē":["格"],"héng háng":["桁"],"guàng guāng":["桄"],"yí tí":["桋","荑"],sāng:["桑","桒","槡"],"jú jié":["桔"],"yú móu":["桙"],"ráo náo":["桡","橈"],"guì huì":["桧","檜"],"chén zhèn":["桭"],"tīng yíng":["桯"],"bó po":["桲"],"bèn fàn":["桳"],"fēng fèng":["桻","葑"],"sù yìn":["梀"],"tǐng tìng":["梃"],"xuān juān xié":["梋"],"tú chá":["梌"],"āo yòu":["梎"],kuǎn:["梡","欵","款","歀"],"shāo sào":["梢"],"qín chén cén":["梣"],"lí sì qǐ":["梩"],"chān yán":["梴"],"bīn bīng":["梹","槟","檳"],"táo chóu dào":["梼"],"cōng sōng":["棇"],"gùn hùn":["棍"],"dé zhé":["棏"],"pái bèi pèi":["棑"],"bàng pǒu bèi bēi":["棓"],"dì dài tì":["棣"],sēn:["森","椮","槮","襂"],"rěn shěn":["棯"],"léng lēng líng":["棱"],"fú sù":["棴"],"zōu sǒu":["棷"],zōu:["棸","箃","緅","諏","诹","邹","郰","鄒","鄹","陬","騶","驺","鯫","鲰","黀","齱","齺"],"zhào zhuō":["棹"],"chēn shēn":["棽"],"jiē qiè":["椄"],"yǐ yī":["椅"],"chóu zhòu diāo":["椆"],"qiāng kōng":["椌"],"zhuī chuí":["椎"],"bēi pí":["椑"],mēn:["椚"],"quān juàn quán":["椦"],"duǒ chuán":["椯"],"wěi huī":["椲"],"jiǎ jiā":["椵"],"hán jiān":["椷"],"shèn zhēn":["椹"],"yàn yà":["椻"],"zhā chá":["楂"],"guō kuǎ":["楇"],"jí zhì":["楖"],"kǔ hù":["楛"],"yóu yǒu":["楢"],"sǒng cōng":["楤"],"yuán xuàn":["楥"],"yǎng yàng yīng":["楧"],pián:["楩","胼","腁","賆","蹁","駢","騈","骈","骿","㛹"],"dié yè":["楪"],"dùn shǔn":["楯"],"còu zòu":["楱"],"dì dǐ shì":["楴"],"kǎi jiē":["楷"],"róu ròu":["楺"],"lè yuè":["楽"],"wēn yùn":["榅","鞰"],lǘ:["榈","櫚","氀","膢","藘","閭","闾","驢","驴"],shén:["榊","神","鉮","鰰","𬬹"],"bī pi":["榌"],"zhǎn niǎn zhèn":["榐"],"fú fù bó":["榑"],"jiàn jìn":["榗"],"bǎng bàng":["榜"],"shā xiè":["榝","樧"],nòu:["槈","耨","鎒","鐞"],"qiǎn lián xiàn":["槏"],gàng:["槓","焵","焹","筻","鿍"],gāo:["槔","槹","橰","櫜","睾","篙","糕","羔","臯","韟","餻","高","髙","鷎","鷱","鼛"],"diān zhěn zhēn":["槙"],"kǎn jiàn":["槛"],"xí dié":["槢"],"jī guī":["槣"],"róng yōng":["槦"],"tuán shuàn quán":["槫"],"qì sè":["槭"],"cuī zhǐ":["槯"],"yǒu chǎo":["槱"],"màn wàn":["槾"],"lí chī":["樆"],"léi lěi":["樏","櫑","礌"],"cháo jiǎo chāo":["樔"],"chēng táng":["樘"],"jiū liáo":["樛"],"mó mú":["模"],"niǎo mù":["樢"],"héng hèng":["横","橫"],xuě:["樰","膤","艝","轌","雪","鱈","鳕"],"fá fèi":["橃"],rùn:["橍","润","潤","膶","閏","閠","闰"],"zhǎn jiǎn":["橏"],shùn:["橓","瞚","瞬","舜","蕣","順","顺","鬊"],"tuí dūn":["橔"],"táng chēng":["橖"],"sù qiū":["橚"],"tán diàn":["橝"],"fén fèn fèi":["橨"],"rǎn yān":["橪"],"cū chu":["橻"],"shū qiāo":["橾"],"píng bò":["檘"],"zhái shì tú":["檡"],"biǎo biāo":["檦"],"qiān lián":["檶"],"nǐ mí":["檷"],"jiàn kǎn":["檻"],"nòu ruǎn rú":["檽"],"jī jì":["櫅","禨"],"huǎng guǒ gǔ":["櫎"],"lǜ chū":["櫖"],"miè mèi":["櫗"],ōu:["櫙","欧","歐","殴","毆","瓯","甌","膒","藲","謳","讴","鏂","鴎","鷗","鸥"],"zhù zhuó":["櫡"],"jué jì":["櫭"],"huái guī":["櫰"],"chán zhàn":["欃"],"wéi zuì":["欈"],cáng:["欌","鑶"],"yù yì":["欥"],"chù qù xì":["欪"],"kài ài":["欬"],"yì yīn":["欭"],"xì kài":["欯"],"shuò sòu":["欶"],"ǎi ēi éi ěi èi ê̄ ế ê̌ ề":["欸"],"qī yī":["欹"],"chuā xū":["欻"],"chǐ chuài":["欼"],"kǎn qiàn":["欿"],"kǎn kè":["歁"],"chuǎn chuán":["歂"],"yīn yān":["歅"],"jìn qūn":["歏"],pēn:["歕"],"xū chuā":["歘"],"xī shè":["歙"],"liǎn hān":["歛"],"zhì chí":["歭"],"sè shà":["歰"],sǐ:["死"],"wěn mò":["歾"],piǎo:["殍","皫","瞟","醥","顠"],"qíng jìng":["殑"],"fǒu bó":["殕"],"zhí shi":["殖"],"yè yān yàn":["殗"],"hūn mèi":["殙"],chòu:["殠","臰","遚"],"kuì huì":["殨","溃","潰"],cuàn:["殩","熶","爨","窜","竄","篡","簒"],"yīn yān yǐn":["殷"],"qìng kēng shēng":["殸"],"yáo xiáo xiào":["殽"],"gū gǔ":["毂","蛄"],"guàn wān":["毌"],"dú dài":["毒"],"xún xùn":["毥"],mú:["毪","氁"],"dòu nuò":["毭"],"sāi suī":["毸"],lu:["氇"],sào:["氉","瘙","矂","髞"],"shì zhī":["氏"],"dī dǐ":["氐"],"máng méng":["氓"],"yáng rì":["氜"],shuǐ:["水","氵","氺","閖"],"zhěng chéng zhèng":["氶"],tǔn:["氽"],"fán fàn":["氾"],"guǐ jiǔ":["氿"],"bīn pà pā":["汃"],"zhuó què":["汋"],"dà tài":["汏"],pìn:["汖","牝","聘"],"hàn hán":["汗","馯"],tu:["汢"],"tāng shāng":["汤","湯"],"zhī jì":["汥"],"gàn hán cén":["汵"],"wèn mén":["汶"],"fāng pāng":["汸"],"hǔ huǎng":["汻"],"niú yóu":["汼"],hàng:["沆"],"shěn chén":["沈"],"dùn zhuàn":["沌"],"nǜ niǔ":["沑"],"méi mò":["沒","没"],"tà dá":["沓"],"mì wù":["沕"],"hóng pāng":["沗"],"shā shà":["沙"],"zhuǐ zǐ":["沝"],"ōu òu":["沤","漚"],"jǔ jù":["沮"],"tuō duó":["沰"],"mǐ lì":["沵"],"yí chí":["沶"],"xiè yì":["泄"],"bó pō":["泊"],"mì bì":["泌","秘"],"chù shè":["泏"],"yōu yòu āo":["泑"],"pēng píng":["泙","硑"],"pào pāo":["泡"],"ní nì":["泥","秜"],"yuè sà":["泧"],"jué xuè":["泬","疦"],"lóng shuāng":["泷","瀧"],"luò pō":["泺","濼"],"zé shì":["泽","澤"],"sǎ xǐ":["洒"],"sè qì zì":["洓"],"xǐ xiǎn":["洗"],"kǎo kào":["洘"],"àn yàn è":["洝"],"lěi lèi":["洡"],"qiè jié":["洯"],"qiǎn jiān":["浅"],"jì jǐ":["济","済","濟","纪"],"hǔ xǔ":["浒","滸"],"jùn xùn":["浚","濬"],"yǐng chéng yíng":["浧"],"liàn lì":["浰"],"féng hóng":["浲","溄"],"jiǒng jiōng":["浻"],"suī něi":["浽"],"yǒng chōng":["涌"],"tūn yūn":["涒"],"wō guō":["涡","渦"],hēng:["涥","脝"],"zhǎng zhàng":["涨","漲"],"shòu tāo":["涭"],shuàn:["涮","腨"],"kōng náng":["涳"],"wò wǎn yuān":["涴"],"tuō tuò":["涶"],wō:["涹","猧","窝","窩","莴","萵","蜗","蝸","踒"],"qiè jí":["淁"],"guǒ guàn":["淉"],"lín lìn":["淋","獜","疄"],"tǎng chǎng":["淌"],"nào chuò zhuō":["淖"],"péng píng":["淜"],féi:["淝","肥","腓","蜰"],"pì pèi":["淠"],"niǎn shěn":["淰"],"biāo hǔ":["淲"],"chún zhūn":["淳"],"hùn hún":["混"],qiǎn:["淺","繾","缱","肷","膁","蜸","譴","谴","遣","鑓"],"wèn mín":["渂"],"rè ruò luò":["渃"],"dú dòu":["渎","瀆","读"],"jiàn jiān":["渐","溅","漸","濺"],"miǎn shéng":["渑","澠"],"nuǎn nuán":["渜"],"qiú wù":["渞"],"tíng tīng":["渟"],"dì tí dī":["渧"],"gǎng jiǎng":["港"],"hōng qìng":["渹"],tuān:["湍","煓"],"huì mǐn xū":["湏"],"xǔ xù":["湑"],pén:["湓","瓫","盆","葐"],"mǐn hūn":["湣"],"tuàn nuǎn":["湪"],"qiū jiǎo":["湫","湬"],"yān yīn":["湮"],"bàn pán":["湴"],"zhuāng hún":["湷"],"yàn guì":["溎"],"lián liǎn nián xián xiàn":["溓"],"dá tǎ":["溚","鿎"],"liū liù":["溜","澑","蹓"],lùn:["溣"],mǎ:["溤","犸","獁","玛","瑪","码","碼","遤","鎷","馬","马","鰢","鷌"],"zhēn qín":["溱"],"nì niào":["溺"],"chù xù":["滀","畜"],"wěng wēng":["滃"],"hào xuè":["滈"],"qì xì xiē":["滊"],"xíng yíng":["滎"],"zé hào":["滜"],"piāo piào piǎo":["漂"],"cóng sǒng":["漎"],"féng péng":["漨"],"luò tà":["漯"],"pēng bēn":["漰"],"chóng shuāng":["漴"],"huǒ kuò huò":["漷"],"liáo liú":["漻"],"cuǐ cuī":["漼"],"cóng zǒng":["潀"],"cóng zōng":["潈"],"pì piē":["潎"],"dàng xiàng":["潒"],"huáng guāng":["潢"],"liáo lào lǎo":["潦"],"cōng zòng":["潨"],"zhí zhì":["潪"],"tān shàn":["潬"],"tú zhā":["潳"],"sàn sǎ":["潵"],hēi:["潶","黑","黒","𬭶"],"chéng dèng":["澄","瀓"],"cūn cún":["澊"],"péng pēng":["澎"],"hòng gǒng":["澒","銾"],"wàn màn":["澫"],"kuài huì":["澮"],"guō wō":["濄"],"pēn fén":["濆"],"jí shà":["濈"],"huì huò":["濊"],"dǐng tìng":["濎"],"mǐ nǐ":["濔"],"bì pì":["濞"],"cuì zuǐ":["濢"],"hù huò":["濩"],"ǎi kài kè":["濭"],"wěi duì":["濻","瀢"],"zàn cuán":["濽","灒"],"yǎng yàng":["瀁"],"wǎng wāng":["瀇"],"mò miè":["瀎","眜"],suǐ:["瀡","膸","髓"],"huái wāi":["瀤"],"zùn jiàn":["瀳"],"yīng yǐng yìng":["瀴"],"ráng ràng":["瀼"],shuàng:["灀"],"zhuó jiào zé":["灂"],sǎ:["灑","訯","靸"],"luán luàn":["灓"],"dǎng tǎng":["灙"],"xún quán quàn":["灥"],"huǒ biāo":["灬"],"zhà yù":["灹"],"fén bèn":["炃"],"jiǒng guì":["炅"],"pàng fēng":["炐"],quē:["炔","缺","缼","蒛"],biān:["炞","煸","甂","砭","笾","箯","籩","編","编","蝙","邉","邊","鍽","鞭","鯾","鯿","鳊"],"zhāo zhào":["炤"],"zhuō chù":["炪"],"pào páo bāo":["炮"],"páo fǒu":["炰"],"shǎn qián shān":["炶"],"zhà zhá":["炸"],"jiǎo yào":["烄"],quǎn:["烇","犬","犭","畎","綣","绻","虇"],"yàng yáng":["烊"],"lào luò":["烙"],"huí huǐ":["烠"],rè:["热","熱"],"fú páo":["烰"],"xiè chè":["烲","焎"],"yàn shān":["烻"],"hūn xūn":["焄"],kào:["焅","犒","銬","铐","靠","鮳","鯌","鲓","㸆"],"juān yè":["焆"],"jùn qū":["焌"],"tāo dào":["焘"],"chǎo jù":["焣"],"wò ài":["焥"],"zǒng cōng":["焧"],"xī yì":["焬"],"xìn xīn":["焮"],"chāo zhuō":["焯"],"xiǒng yīng":["焸","焽"],kuǐ:["煃","跬","蹞","頍","𫠆"],"huī yùn xūn":["煇"],"jiǎo qiāo":["煍"],"qián shǎn shān":["煔"],"xī yí":["煕"],"shà shā":["煞"],"yè zhá":["煠"],"yáng yàng":["煬"],"ēn yūn":["煾"],"yūn yǔn":["熅"],"hè xiāo":["熇"],xióng:["熊","熋","雄"],"xūn xùn":["熏","爋"],gòng:["熕","貢","贡"],liū:["熘"],"cōng zǒng":["熜"],"lù āo":["熝"],"shú shóu":["熟"],"fēng péng":["熢"],"cuǐ suī":["熣"],tēng:["熥","膯","鼟"],"yùn yù":["熨"],"áo āo":["熬"],"hàn rǎn":["熯"],"ōu ǒu":["熰"],"huáng huǎng":["熿"],"chǎn dǎn chàn":["燀"],"jiāo zhuó qiáo jué":["燋"],"yàn yān":["燕"],"tài liè":["燤"],āo:["爊"],"yàn xún":["爓"],"jué jiào":["爝","覐","覚","覺","觉"],"lǎn làn":["爦"],"zhuǎ zhǎo":["爪"],"zhǎo zhuǎ":["爫"],"fù fǔ":["父"],diē:["爹","褺","跌"],zāng:["牂","羘","臧","賍","賘","贓","贜","赃","髒"],"piàn piān":["片"],"biān miàn":["牑"],bǎng:["牓","綁","绑"],"yǒu yōng":["牗"],"chēng chèng":["牚","竀"],niú:["牛","牜"],"jiū lè":["牞"],"mù móu":["牟"],māng:["牤"],"gē qiú":["牫"],"yòu chōu":["牰"],"tè zhí":["犆"],bēn:["犇","錛","锛"],"jiān qián":["犍","玪"],má:["犘","痲","蔴","蟇","麻"],"máo lí":["犛"],"bá quǎn":["犮"],"zhuó bào":["犳"],"àn hān":["犴"],"kàng gǎng":["犺"],"pèi fèi":["犻"],"fān huān":["犿"],kuáng:["狂","狅","誑","诳","軖","軠","鵟","𫛭"],"yí quán chí":["狋"],"xīng shēng":["狌"],"tuó yí":["狏"],kǔ:["狜","苦"],"huán huān":["狟"],"hé mò":["狢"],"tà shì":["狧"],"máng dòu":["狵"],"xī shǐ":["狶"],suān:["狻","痠","酸"],"bài pí":["猈"],"jiān yàn":["猏","豣"],"yī yǐ":["猗"],"yá wèi":["猚"],cāi:["猜"],"māo máo":["猫","貓"],"chuàn chuān":["猭"],"tuān tuàn":["猯","貒"],"yà jiá qiè":["猰"],"hè xiē gé hài":["猲"],"biān piàn":["猵","獱"],"bó pò":["猼"],"háo gāo":["獋"],"fén fèn":["獖"],"yào xiāo":["獟"],"shuò xī":["獡"],"gé liè xiē":["獦"],"nòu rú":["獳"],"náo nǎo yōu":["獶"],ráng:["獽","瓤","禳","穣","穰","蘘","躟","鬤"],"náo yōu":["獿"],"lǜ shuài":["率"],"wáng wàng":["王"],"yáng chàng":["玚"],"mín wén":["玟"],"bīn fēn":["玢"],"mén yǔn":["玧"],"qiāng cāng":["玱","瑲","篬"],"án gān":["玵"],"xuán xián":["玹"],"cī cǐ":["玼","跐"],"yí tāi":["珆"],"zǔ jù":["珇"],fà:["珐","琺","蕟","髪","髮"],"yín kèn":["珢"],"huī hún":["珲"],"xuán qióng":["琁"],"fú fū":["琈"],"bǐng pín":["琕"],"cuì sè":["琗"],"yù wéi":["琟"],"tiǎn tiàn":["琠"],"zhuó zuó":["琢"],"běng pěi":["琣"],guǎn:["琯","璭","痯","筦","管","舘","輨","錧","館","馆","鳤"],"hún huī":["琿"],"xié jiē":["瑎"],"chàng dàng yáng":["瑒"],"tiàn zhèn":["瑱"],"bīn pián":["瑸","璸"],"tú shū":["瑹"],cuǐ:["璀","皠","趡"],"zǎo suǒ":["璅"],"jué qióng":["璚"],"lú fū":["璷"],"jì zī":["璾"],suí:["瓍","綏","绥","遀","随","隨","髄"],"mí xǐ":["瓕"],"qióng wěi wèi":["瓗"],"huán yè yà":["瓛"],"bó páo":["瓟"],"zhí hú":["瓡"],piáo:["瓢","闝"],"wǎ wà":["瓦"],"xiáng hóng":["瓨"],wèng:["瓮","甕","罋","蕹","齆"],"shèn shén":["甚"],ruí:["甤","緌","蕤"],yòng:["用","砽","苚","蒏","醟","㶲"],shuǎi:["甩"],béng:["甭","甮"],"yóu zhá":["甴"],"diàn tián shèng":["甸"],"tǐng dīng":["町","甼"],"zāi zī":["甾"],"bì qí":["畁"],"dá fú":["畗"],"cè jì":["畟"],"zāi zī tián":["畠"],"zhì chóu shì":["畤"],"fān pān":["畨","番"],"shē yú":["畬"],"dāng dàng dǎng":["當"],"jiāng qiáng":["疆"],"pǐ yǎ shū":["疋"],"jié qiè":["疌"],"yí nǐ":["疑"],nè:["疒","眲","訥","讷"],"gē yì":["疙"],"nüè yào":["疟","瘧"],"lì lài":["疠","癘"],"yǎ xiā":["疨"],xuē:["疶","蒆","薛","辥","辪","靴","鞾"],"dǎn da":["疸"],"fá biǎn":["疺"],"fèi féi":["疿","痱"],"shān diàn":["痁"],"téng chóng":["痋"],"tōng tóng":["痌"],"wěi yòu yù":["痏"],"tān shǐ":["痑"],"pū pù":["痡","鋪"],"bēng péng":["痭"],"má lìn":["痳"],"tiǎn diàn":["痶"],"ān yè è":["痷"],"kē ē":["痾"],"zhì chì":["瘈"],"jiǎ xiá xiā":["瘕"],"lěi huì":["瘣"],"chài cuó":["瘥"],"diān chēn":["瘨"],"da dá":["瘩"],"biě biē":["瘪"],qué:["瘸"],"dàn dān":["癉"],"guì wēi":["癐"],"nòng nóng":["癑"],"biē biě":["癟"],"bō bǒ":["癷"],bái:["白"],"jí bī":["皀"],"de dì dí dī":["的"],"pā bà":["皅"],"gāo háo":["皋"],"gāo yáo":["皐"],"lì luò bō":["皪"],"zhā cǔ":["皻"],"zhāo zhǎn dǎn":["皽"],"jiān jiàn":["监","監","鋻","间","鞬"],"gài gě hé":["盖"],"máng wàng":["盳"],yuǎn:["盶","逺","遠"],"tián xián":["盷"],"xiāng xiàng":["相"],dǔn:["盹","趸","躉"],"xì pǎn":["盻"],"shěng xǐng":["省"],"yún hùn":["眃"],"miǎn miàn":["眄"],"kàn kān":["看"],"yìng yāng yǎng":["眏"],"yǎo āo ǎo":["眑"],"jū xū kōu":["眗"],"yí chì":["眙"],"dié tì":["眣"],"bǐng fǎng":["眪"],"pàng pán":["眫"],"mī mí":["眯","瞇"],"xuàn shùn xún":["眴"],tiào:["眺","粜","糶","覜","趒"],"zhe zhuó zháo zhāo":["着"],"qiáo shào xiāo":["睄"],"cuó zhuài":["睉"],gùn:["睔","謴"],"suì zuì":["睟"],"pì bì":["睥","稫","辟"],"yì zé gāo":["睪"],"xǐng xìng":["睲"],"guì wèi kuì":["瞆"],"kòu jì":["瞉"],"qióng huán":["瞏"],"mán mén":["瞒","瞞"],"diāo dōu":["瞗"],"lou lóu lǘ":["瞜"],"shùn rún":["瞤"],"liào liǎo":["瞭","钌"],"jiàn xián":["瞯"],"wǔ mí":["瞴"],"guì kuì":["瞶"],"nǐng chēng":["矃"],"huò yuè":["矆"],"mēng méng":["矇"],"kuàng guō":["矌"],"guàn quán":["矔"],"mǎn mán":["矕"],"jīn guān qín":["矜"],"jīn qín guān":["矝"],"yù xù jué":["矞"],"jiǎo jiáo":["矫","矯"],duǎn:["短"],"shí dàn":["石"],"gāng qiāng kòng":["矼"],"huā xū":["砉"],"pīn bīn fēn":["砏"],"yán yàn":["研","硏"],"luǒ kē":["砢"],"fú fèi":["砩","笰"],"zhǔ zhù":["砫"],"lá lì lā":["砬"],"kuāng guāng":["硄"],"gè luò":["硌"],"shuò shí":["硕","碩"],"wèi wéi ái":["硙"],"què kè kù":["硞"],"mǎng bàng":["硥"],"luò lòng":["硦"],"yǒng tóng":["硧"],nüè:["硸","虐"],"kēng kěng":["硻"],"yān yǎn":["硽"],"zhuì chuí duǒ":["硾"],"kōng kòng":["硿"],"zòng cóng":["碂"],"jiān zhàn":["碊"],"lù liù":["碌","陆"],"què xī":["碏"],"lún lǔn lùn":["碖"],"náo gāng":["碙"],"jié yà":["碣"],"wèi wěi":["碨"],"tí dī":["碮"],"chá chā":["碴"],"qiāo què":["碻"],"sù xiè":["碿"],"liú liù":["磂","遛","鎦","馏"],"sī tí":["磃"],"bàng páng":["磅"],"huá kě gū":["磆"],"wěi kuǐ":["磈"],"xiá qià yà":["磍"],"lián qiān":["磏"],"wèi ái gài":["磑"],"lá lā":["磖"],"áo qiāo":["磝"],"pēng pèng":["磞","閛"],"yīn yǐn":["磤"],"lěi léi":["磥"],"mó mò":["磨"],"qì zhú":["磩"],"láo luò":["磱"],"pán bō":["磻"],"jí shé":["磼"],"hé qiāo qiào":["礉"],"kè huò":["礊"],"què hú":["礐"],"è qì":["礘"],cǎ:["礤","礸"],"xián xín":["礥"],"léi lěi lèi":["礧"],"yán yǎn":["礹"],"qí zhǐ":["祇","蚔"],"bēng fāng":["祊"],"bì mì":["祕"],suàn:["祘","笇","筭","算","蒜"],"piào piāo":["票"],"jì zhài":["祭"],"shuì lèi":["祱"],"jìn jīn":["禁"],"chán shàn":["禅"],"yáng shāng":["禓"],"zhī zhǐ tí":["禔"],"shàn chán":["禪"],"yú yù ǒu":["禺"],"zǐ zì":["秄"],"chá ná":["秅"],"zhǒng zhòng chóng":["种"],"hào mào":["秏"],"kù kū":["秙"],zū:["租","葅"],chèng:["秤","穪"],"huó kuò":["秮","秳"],"chēng chèn chèng":["称","稱"],"shì zhì":["秲","銴"],"fù pū":["秿"],"xùn zè":["稄"],"tú shǔ":["稌"],"zhùn zhǔn":["稕"],"jī qí":["稘","綨","觭"],"léng líng":["稜"],"zuì zú sū":["稡"],"xì qiè":["稧","郄"],"zhǒng zhòng":["種"],"zōng zǒng":["稯"],"xián jiān liàn":["稴"],"zī jiū":["稵"],"jī qǐ":["稽"],ròng:["穃"],"shān cǎn cēn":["穇"],"mén méi":["穈"],"jǐ jì":["穖"],"xiāo rào":["穘"],"zhuō bó":["穛"],"tóng zhǒng zhòng":["穜"],zuō:["穝"],"biāo pāo":["穮","藨"],"zhuō jué":["穱"],"cuán zàn":["穳"],"kōng kòng kǒng":["空"],"yū yǔ":["穻"],zhǎi:["窄","鉙"],báo:["窇","雹"],"kū zhú":["窋"],"jiào liáo liù":["窌"],"wā guī":["窐"],"tiǎo yáo":["窕"],"xūn yìn":["窨"],"yà yē":["窫"],"tián diān yǎn":["窴"],"chāo kē":["窼"],"kuǎn cuàn":["窽","窾"],"chù qì":["竐"],"qǔ kǒu":["竘"],"jìng zhěn":["竧"],"kǎn kàn":["竷"],"zhú dǔ":["竺"],"lè jīn":["竻"],"zhuì ruì":["笍"],"háng hàng":["笐"],"cén jìn hán":["笒"],"dā xiá nà":["笚"],"zé zuó":["笮"],"lóng lǒng":["笼","篭","籠","躘","龓"],"zhù zhú":["筑","築"],"dá dā":["答","荅"],shāi:["筛","篩","簁","籭"],"yún jūn":["筠"],"láng làng":["筤","郎","阆"],"zhì zhǐ":["筫"],o:["筽"],"póu bù fú pú":["箁"],"pái bēi":["箄"],gè:["箇","虼","鉻","铬"],"tái chí":["箈"],"guǎi dài":["箉"],"zhào dào":["箌"],"jīng qìng":["箐"],"lín lǐn":["箖"],"jùn qūn":["箘"],"shī yí":["箷","釶"],"yuē yào chuò":["箹"],"xiāo shuò qiào":["箾"],"gōng gǎn lǒng":["篢"],"páng péng":["篣"],"zhuó huò":["篧"],"jiǎn jiān":["篯"],"dí zhú":["篴"],"zān cēn cǎn":["篸"],"zhuàn suǎn zuàn":["篹"],"piǎo biāo":["篻"],"guó guì":["簂"],"cè jí":["簎"],"mì miè":["簚"],"shāi sī":["簛"],"sǔn zhuàn":["簨"],"gàn gǎn":["簳"],"bò bǒ":["簸"],"bó bù":["簿"],shi:["籂"],"zhēn jiān":["籈"],"zhuàn zuǎn":["籑"],"fān pān biān":["籓"],"sǒu shǔ":["籔"],zuǎn:["籫","繤","纂","纉","纘","缵"],nǚ:["籹","釹","钕"],"shā chǎo":["粆"],"kāng jīng":["粇"],fěn:["粉","黺"],cū:["粗","觕","麁","麄","麤"],"nián zhān":["粘"],"cè sè":["粣"],"zhōu yù":["粥"],"shēn sǎn":["糁"],"biān biǎn":["糄","萹"],miàn:["糆","面","靣","麪","麫","麵","麺"],"hú hū hù":["糊"],"gǔ gòu":["糓"],"mí méi":["糜"],"sǎn shēn":["糝","糣"],zāo:["糟","蹧","遭","醩"],"mì sī":["糸"],"jiū jiǔ":["糺"],"xì jì":["系","繫"],"zhēng zhěng":["糽"],"chà chǎ":["紁","衩"],"yuē yāo":["約","约"],"hóng gōng":["紅","红"],"hé gē":["紇","纥"],"wén wèn":["紋","纹"],fóu:["紑"],"jì jié jiè":["紒"],"pī pí bǐ":["紕","纰"],"jīn jìn":["紟"],"zhā zā":["紥","紮"],hā:["紦"],"fū fù":["紨"],"chōu chóu":["紬"],"lèi léi lěi":["累"],"bō bì":["紴"],"tiǎn zhěn":["紾"],"jiōng jiǒng":["絅"],"jié jiē":["結","结","节"],"guà kuā":["絓"],"bǎi mò":["絔"],"gēng huán":["絙"],"jié xié":["絜"],"quán shuān":["絟"],"gǎi ǎi":["絠"],"luò lào":["絡","络"],"bīng bēng pēng":["絣"],"gěi jǐ":["給","给"],"tóng tōng dòng":["絧"],"tiào diào dào":["絩"],"lěi lèi léi":["絫"],"gāi hài":["絯"],"chī zhǐ":["絺"],"wèn miǎn mán wàn":["絻"],"huán huàn wàn":["綄"],"qīn xiān":["綅"],"tì tí":["綈"],"yán xiàn":["綖"],"zōng zèng zòng":["綜"],"chēn lín":["綝"],"zhǔn zhùn":["綧"],"qiàn qīng zhēng":["綪"],"qìng qǐ":["綮"],"lún guān":["綸","纶"],"chuò chāo":["綽","绰"],"tián tǎn chān":["緂"],"lǜ lù":["緑","绿"],"ruǎn ruàn":["緛"],"jí qī":["緝"],"zhòng chóng":["緟","重"],"miáo máo":["緢"],"xiè yè":["緤"],huǎn:["緩","缓","㬊"],"gēng gèng":["緪","縆"],"tōu xū shū":["緰"],"zōng zòng":["緵","繌"],"yùn gǔn":["緷"],"guā wō":["緺"],"yùn yūn wēn":["緼","縕"],"bāng bàng":["縍"],"gǔ hú":["縎","鶻"],"cī cuò suǒ":["縒"],"cuī shuāi":["縗"],"róng rǒng ròng":["縙"],"zài zēng":["縡"],cài:["縩","菜","蔡"],"féng fèng":["縫"],"suō sù":["縮","缩"],"yǎn yǐn":["縯","酓"],"zòng zǒng":["縱","纵"],"zhuàn juàn":["縳"],"mò mù":["縸","莫"],"piǎo piāo":["縹","缥"],"fán pó":["繁"],"bēng bèng":["繃"],"móu miù miào liǎo":["繆"],"yáo yóu zhòu":["繇"],"zēng zèng":["繒","缯"],"jú jué":["繘"],"chuō chuò":["繛"],"zūn zǔn":["繜"],rào:["繞","绕","遶"],"chǎn chán":["繟"],"huì huí":["繢","缋","藱"],"qiāo sāo zǎo":["繰"],"jiǎo zhuó":["繳","缴"],"dàn tán chán":["繵"],nǒng:["繷"],"pú fú":["纀"],"yào lì":["纅"],"rǎng xiāng":["纕"],"lí sǎ xǐ lǐ":["纚"],"xiān qiàn":["纤"],"jīng jìng":["经"],"tí tì":["绨"],"bēng běng bèng":["绷"],"zōng zèng":["综"],"jī qī":["缉"],"wēn yùn yūn":["缊"],"fèng féng":["缝"],"shuāi cuī suī":["缞"],"miù móu liáo miào mù":["缪"],"qiāo sāo":["缲"],fǒu:["缶","缹","缻","雬","鴀"],"bà ba pí":["罢","罷"],"guà guǎi":["罫"],"yáng xiáng":["羊","羏"],"měi gāo":["羙"],"yì xī":["羛"],"qiǎng qiān":["羟"],"qiāng kòng":["羫"],"qián xián yán":["羬"],nóu:["羺"],"hóng gòng":["羾"],"pī bì pō":["翍"],"qú yù":["翑"],ké:["翗"],"qiào qiáo":["翘"],"zhái dí":["翟"],"dào zhōu":["翢"],"hóu qú":["翵"],shuǎ:["耍"],"ruǎn nuò":["耎"],"ér nài":["耏"],"zhuān duān":["耑"],"pá bà":["耙"],"chí sì":["耛"],"qù chú":["耝"],"lún lǔn":["耣"],"jí jiè":["耤"],"tāng tǎng":["耥"],pǎng:["耪","覫"],"zhá zé":["耫"],"yē yé":["耶"],"yún yíng":["耺"],"wà tuǐ zhuó":["聉"],"ér nǜ":["聏"],"tiē zhé":["聑"],"dǐ zhì":["聜"],qié:["聺"],"nǐ jiàn":["聻"],"lèi lē":["肋"],cào:["肏","襙","鄵","鼜"],"bó dí":["肑"],"xiào xiāo":["肖"],"dù dǔ":["肚"],chāi:["肞","釵","钗"],"hán qín hàn":["肣"],"pàng pán pàn":["肨","胖"],"zhūn chún":["肫"],āng:["肮","骯"],"yù yō":["育"],"pí bǐ bì":["肶"],"fèi bì":["胇"],"bèi bēi":["背"],"fèi zǐ":["胏"],"píng pēng":["胓","苹"],"fū fú zhǒu":["胕"],"shèng shēng":["胜"],kuà:["胯","跨","骻"],"gǎi hǎi":["胲"],"gē gé gā":["胳"],"néng nài":["能"],"guī kuì":["胿"],"mài mò":["脉"],"zāng zàng":["脏"],"jiǎo jué":["脚","角"],cuǒ:["脞"],"de te":["脦"],"zuī juān":["脧"],něi:["脮","腇","餒","馁","鮾","鯘"],"pú fǔ":["脯"],niào:["脲"],shuí:["脽"],guò:["腂","過","鐹"],"là xī":["腊"],"yān ā":["腌"],"gāo gào":["膏"],"lù biāo":["膔"],chuái:["膗"],"zhuān chuán chún zhuǎn":["膞"],chuài:["膪","踹"],"fán pán":["膰"],"wǔ hū":["膴"],"shān dàn":["膻"],tún:["臀","臋","蛌","豘","豚","軘","霕","飩","饨","魨","鲀","黗"],"bì bei":["臂"],"là gé":["臈"],"sào sāo":["臊"],nào:["臑","閙","闹","鬧"],"ní luán":["臡"],"qiān xián":["臤"],"guàng jiǒng":["臦"],"guǎng jiǒng":["臩"],"chòu xiù":["臭"],"mián biān":["臱"],"dié zhí":["臷"],"zhī jìn":["臸"],"shè shě":["舍"],pù:["舖","舗"],"bān bō pán":["般"],kuā:["舿"],"gèn gěn":["艮"],"sè shǎi":["色"],"fú bó":["艴"],"jiāo qiú":["艽"],"chāi chā":["芆"],"sháo què":["芍"],"hù xià":["芐"],"zì zǐ":["芓"],"huì hū":["芔"],"tún chūn":["芚"],"jiè gài":["芥"],"xù zhù":["芧"],"yuán yán":["芫"],"xīn xìn":["芯"],"lún huā":["芲"],"wù hū":["芴"],"gōu gǒu":["芶"],"mào máo":["芼"],"fèi fú":["芾"],"chán yín":["苂"],qiē:["苆"],"sū sù":["苏"],"tiáo sháo":["苕"],"lì jī":["苙"],"kē hē":["苛"],"jù qǔ":["苣"],"ruò rě":["若"],"zhù níng":["苧"],"pā bó":["苩"],xiú:["苬"],"zhǎ zuó":["苲"],"jū chá":["苴"],nié:["苶"],"shēng ruí":["苼"],"qié jiā":["茄"],"zǐ cí":["茈"],"qiàn xī":["茜"],chǎi:["茝"],"fá pèi":["茷"],ráo:["荛","蕘","襓","饒","饶"],"yíng xíng":["荥"],"qián xún":["荨","蕁"],"yìn yīn":["荫"],"hé hè":["荷"],"shā suō":["莎"],"péng fēng":["莑"],"shēn xīn":["莘"],"wǎn guān guǎn":["莞"],"yóu sù":["莤"],"shāo xiāo":["莦","蛸"],"làng liáng":["莨"],"piǎo fú":["莩"],"wèn wǎn miǎn":["莬"],"shì shí":["莳","蒔"],"tù tú":["莵"],"xiān liǎn":["莶","薟"],"wǎn yù":["菀"],"zōu chù":["菆"],"lù lǜ":["菉"],"jūn jùn":["菌"],"niè rěn":["菍"],"zī zì zāi":["菑"],"tú tù":["菟"],"jiē shà":["菨"],"qiáo zhǎo":["菬"],"tái zhī chí":["菭"],"fēi fěi":["菲","蜚"],"qín qīn jīn":["菳"],"zū jù":["菹","蒩"],"lǐn má":["菻"],"tián tiàn":["菾"],tiē:["萜","貼","贴"],"luò là lào luō":["落"],"zhù zhuó zhe":["著"],"shèn rèn":["葚"],"gě gé":["葛"],"jùn suǒ":["葰"],"kuì kuài":["蒉"],"rú ná":["蒘"],"méng mēng měng":["蒙"],"yuán huán":["蒝"],"xú shú":["蒣"],"xí xì":["蒵"],"mì míng":["蓂"],"sōu sǒu":["蓃"],"gài gě hé hài":["蓋"],"yǎo zhuó":["蓔"],"diào tiáo dí":["蓧"],"xū qiū fū":["蓲"],"zí jú":["蓻"],"liǎo lù":["蓼"],xu:["蓿"],"hàn hǎn":["蔊"],"màn wàn mán":["蔓"],"pó bò":["蔢"],"fān fán bō":["蕃"],"hóng hòng":["蕻"],"yù ào":["薁","隩"],"xí xiào":["薂"],"báo bó bò":["薄"],"cí zī":["薋"],"wàn luàn":["薍"],"kǎo hāo":["薧"],"yuǎn wěi":["薳"],"zhòu chóu":["薵"],"wō mái":["薶"],"xiāo hào":["藃"],"yù xù xū":["藇"],"jiè jí":["藉"],"diào zhuó":["藋"],"cáng zàng":["藏"],lǎ:["藞"],"chú zhū":["藸"],"pín píng":["蘋"],"gān hán":["虷"],"hóng jiàng":["虹"],"huī huǐ":["虺"],"xiā há":["虾"],"mǎ mà mā":["蚂"],"fāng bàng":["蚄"],"bàng bèng":["蚌"],"jué quē":["蚗"],"qín qián":["蚙"],"gōng zhōng":["蚣"],"fǔ fù":["蚥"],"dài dé":["蚮"],"gǒu qú xù":["蚼"],"bǒ pí":["蚾"],"shé yí":["蛇"],tiě:["蛈","鉄","銕","鐡","鐵","铁","驖"],"gé luò":["蛒"],"máng bàng":["蛖"],"yì xǔ":["蛡"],"há gé":["蛤"],"qiè ní":["蛪"],"é yǐ":["蛾"],"zhē zhé":["蜇"],"là zhà":["蜡"],suò:["蜶","逤"],"yóu qiú":["蝤"],"xiā hā":["蝦"],"xī qī":["螇"],"bī pí":["螕"],"nài něng":["螚"],"hé xiá":["螛"],"guì huǐ":["螝"],"mǎ mā mà":["螞"],"shì zhē":["螫"],"zhì dié":["螲"],"jiàn chán":["螹"],"ma má mò":["蟆"],"mǎng měng":["蟒"],"biē bié":["蟞"],"bēn fèi":["蟦"],"láo liáo":["蟧"],"yín xún":["蟫"],"lí lǐ":["蠡"],"xuè xiě":["血"],"xíng háng hàng héng":["行"],"shuāi cuī":["衰"],"tuó tuō":["袉"],"lǐng líng":["袊"],"bào páo pào":["袌"],"jù jiē":["袓"],"hè kè":["袔"],"yí yì":["袘","貤"],"nà jué":["袦"],"bèi pī":["被"],"chǐ nuǒ":["袲"],"chǐ qǐ duǒ nuǒ":["袳"],"jiá qiā jié":["袷"],"bó mò":["袹"],"guī guà":["袿"],"liè liě":["裂"],"chéng chěng":["裎"],"jiē gé":["裓"],"dāo chóu":["裯"],"shang cháng":["裳"],"yuān gǔn":["裷"],"yǎn ān":["裺"],"tì xī":["裼"],"fù fú":["褔"],"chǔ zhǔ":["褚"],"tuì tùn":["褪"],lǎi:["襰"],"yào yāo":["要"],"qín tán":["覃"],"jiàn xiàn":["見","见"],piǎn:["覑","諞","谝","貵","𡎚"],"piē miè":["覕"],"yíng yǐng":["覮"],"qù qū":["覰","覷","觑"],"jiàn biǎn":["覵"],"luó luǎn":["覶"],"zī zuǐ":["觜"],"huà xiè":["觟"],"jiě jiè xiè":["解","觧"],"xué hù":["觷"],"lì lù":["觻"],tǎo:["討","讨"],zhùn:["訰"],"zī zǐ":["訾"],"yí dài":["詒","诒"],xiòng:["詗","诇"],"diào tiǎo":["誂"],"yí chǐ chì":["誃"],"lǎng làng":["誏"],"ēi éi ěi èi xī":["誒","诶"],shuà:["誜"],"yǔ yù":["語","语","雨"],"shuō shuì yuè":["說","说"],"shuí shéi":["誰","谁"],"qū juè":["誳"],"chī lài":["誺"],"nì ná":["誽"],"diào tiáo":["調"],"pǐ bēi":["諀"],"jì jī":["諅"],"zé zuò zhǎ cuò":["諎"],"chù jí":["諔"],"háo xià":["諕"],"lùn lún":["論","论"],"shì dì":["諟"],"huà guā":["諣"],"xǐ shāi āi":["諰"],"nán nàn":["諵","難"],miù:["謬","谬"],zèn:["譖","谮"],"shí zhì":["識","识"],"juàn xuān":["讂"],"yí tuī":["讉"],zhán:["讝"],"xǔ hǔ":["许"],"xiáng yáng":["详"],"tiáo diào zhōu":["调"],"chén shèn":["谌"],"mí mèi":["谜"],"màn mán":["谩"],"gǔ yù":["谷"],"huō huò huá":["豁"],"zhì zhài":["豸"],"huān huán":["貆"],"kěn kūn":["貇"],"mò hé":["貈"],"mò hé háo":["貉"],"jù lóu":["貗"],"zé zhài":["責","责"],"dài tè":["貸"],"bì bēn":["賁"],"jiǎ gǔ jià":["賈"],"xiōng mín":["賯"],càng:["賶"],"zhuàn zuàn":["賺","赚"],"wàn zhuàn":["贃"],"gàn gòng zhuàng":["贛"],"yuán yùn":["贠"],"bēn bì":["贲"],"jiǎ gǔ":["贾"],zǒu:["走","赱","鯐"],"dié tú":["趃"],"jū qiè":["趄"],"qū cù":["趋","趨"],"jí jié":["趌"],"guā huó":["趏"],"què qì jí":["趞"],"tàng tāng":["趟"],"chuō zhuó":["趠"],"qù cù":["趣"],"yuè tì":["趯"],"bō bào":["趵"],"kuà wù":["趶"],"guì jué":["趹"],"fāng fàng páng":["趽"],"páo bà":["跁"],"qí qǐ":["跂"],"jiàn chén":["跈"],"pǎo páo":["跑"],"diǎn diē tiē":["跕"],"jū jù qiè":["跙"],bǒ:["跛"],"luò lì":["跞"],"dài duò duō chí":["跢"],zhuǎi:["跩"],"bèng pián":["跰"],"tiào táo":["跳"],"shū chōu":["跾"],"liàng liáng":["踉"],"tà tā":["踏"],chǎ:["蹅","鑔","镲"],"dí zhí":["蹢"],"dēng dèng":["蹬","鐙","镫"],cèng:["蹭"],"dūn cún":["蹲"],"juě jué":["蹶"],liāo:["蹽"],"xiè sǎ":["躠"],tǐ:["躰","軆","骵"],"yà zhá gá":["轧","軋"],"xìn xiàn":["軐"],"fàn guǐ":["軓"],"zhuàn zhuǎn":["転"],"zhóu zhòu":["軸","轴"],bú:["轐","醭","鳪"],"zhuǎn zhuàn zhuǎi":["转"],"zǎi zài":["载"],"niǎn zhǎn":["辗"],"biān bian":["边"],"dào biān":["辺"],"yǐ yí":["迆","迤","迱"],"guò guo guō":["过"],"wàng kuāng":["迋"],"hái huán":["还"],"zhè zhèi":["这"],"yuǎn yuàn":["远"],"zhì lì":["迣"],"zhù wǎng":["迬"],"zhuī duī":["追"],"shì kuò":["适"],tòu:["透"],"tōng tòng":["通"],guàng:["逛"],"dǎi dài":["逮"],"suì suí":["遂"],"tí dì":["遆"],"yí wèi":["遗"],"shì dí zhé":["適"],cà:["遪"],"huán hái":["還"],"lí chí":["邌"],"kàng háng":["邟"],"nà nèi nā":["那"],"xié yá yé yú xú":["邪"],"gāi hái":["郂"],"huán xún":["郇"],"chī xī":["郗"],hǎo:["郝"],"lì zhí":["郦"],"xiáo ǎo":["郩"],"dōu dū":["都"],liǎo:["曢","鄝","镽"],"zàn cuán cuó":["酂","酇"],"dīng dǐng":["酊"],"cù zuò":["酢"],"fā pō":["酦"],"shāi shī":["酾"],niàng:["酿","醸"],"qiú chōu":["醔"],"pō fā":["醗","醱"],"chǎn chěn":["醦"],"yàn liǎn xiān":["醶"],"niàng niáng":["釀"],"lǐ li":["里"],"lí xǐ xī":["釐"],"liǎo liào":["釕"],"dīng dìng":["釘","钉"],"qiǎo jiǎo":["釥"],"yú huá":["釪"],"huá wū":["釫"],"rì rèn jiàn":["釰","釼"],"dì dài":["釱"],"pī zhāo":["釽"],"yá yé":["釾"],"bǎ pá":["鈀","钯"],"tā tuó":["鉈","铊"],běi:["鉳"],"bǐng píng":["鉼"],"hā kē":["鉿","铪"],chòng:["銃","铳"],"xiǎng jiōng":["銄"],"yù sì":["銉"],"xù huì":["銊"],"rén rěn":["銋"],"shàn shuò":["銏"],"chì lì":["銐"],"xiǎn xǐ":["銑","铣"],"hóu xiàng":["銗"],"diào tiáo yáo":["銚"],"xiān kuò tiǎn guā":["銛","銽","铦"],"zhé niè":["銸"],"zhōng yōng":["銿"],"tōu tù dòu":["鋀"],"méi méng":["鋂"],"wàn jiǎn":["鋄","鎫"],"tǐng dìng":["鋌","铤"],"juān jiān cuān":["鋑"],"sī tuó":["鋖"],"juān xuān juàn":["鋗"],"wú huá wū":["鋘"],"zhuó chuò":["鋜"],"xíng xìng jīng":["鋞"],"jū jú":["鋦","锔"],"zuì niè":["鋷"],"yuān yuǎn wǎn wān":["鋺"],"gāng gàng":["鋼","钢"],zhuī:["錐","锥","騅","骓","鵻"],ā:["錒","锕"],"cuō chā":["鎈"],"suǒ sè":["鎍"],"yáo zú":["鎐"],"yè tà gé":["鎑"],"qiāng chēng":["鎗"],"gé lì":["鎘","镉","鬲"],"bī pī bì":["鎞"],"gǎo hào":["鎬"],"zú chuò":["鏃"],"xiū xiù":["鏅"],"shòu sōu":["鏉"],"dí dī":["鏑","镝"],"qiāo sǎn càn":["鏒"],"lù áo":["鏕"],"tāng táng":["鏜"],"jiàn zàn":["鏩"],"huì suì ruì":["鏸"],"qiǎng qiāng":["鏹","镪"],"sǎn xiàn sà":["鏾"],"jiǎn jiàn":["鐧","锏"],"dāng chēng":["鐺","铛"],"zuān zuàn":["鑽"],"sà xì":["钑"],"yào yuè":["钥"],"tǒu dǒu":["钭"],"zuàn zuān":["钻"],"qiān yán":["铅"],"pí pī":["铍"],"yáo diào tiáo":["铫"],"tāng tàng":["铴"],"pù pū":["铺"],"tán xiān":["锬"],"liù liú":["镏"],"hào gǎo":["镐"],"táng tāng":["镗"],"tán chán xín":["镡"],"huò shǎn":["閄"],"hàn bì":["閈","闬"],"kāng kàng":["閌","闶"],"xián jiàn jiān jiǎn":["閒"],"xiā xiǎ":["閕"],"xiǎ kě":["閜"],"biàn guān":["閞"],"hé gé":["閤","颌"],"hòng xiàng":["閧"],"sē xī":["閪"],"tíng tǐng":["閮"],"è yān":["閼","阏"],"hòng juǎn xiàng":["闂"],"bǎn pàn":["闆"],"dū shé":["闍","阇"],"què quē":["闕"],"tāng táng chāng":["闛"],"kàn hǎn":["闞","阚"],"xì sè tà":["闟"],"mēn mèn":["闷"],"quē què":["阙"],"yán diàn":["阽"],"ā ē":["阿"],"bēi pō pí":["陂"],"yàn yǎn":["隁"],"yú yáo shù":["隃"],"lóng lōng":["隆"],"duì zhuì":["隊"],"suí duò":["隋"],"gāi qí ái":["隑"],"huī duò":["隓","隳"],"wěi kuí":["隗"],"lì dài":["隸"],"zhuī cuī wéi":["隹"],"hè hú":["隺","鶮"],"jùn juàn":["隽","雋"],"nán nàn nuó":["难"],"què qiāo qiǎo":["雀"],"guàn huán":["雚"],"guī xī":["雟"],"sè xí":["雭"],án:["雸"],"wù méng":["雺"],tèng:["霯"],"lù lòu":["露"],mái:["霾"],"jìng liàng":["靚"],"gé jí":["革"],bǎ:["靶"],"yāng yàng":["鞅"],"gé tà sǎ":["鞈"],"biān yìng":["鞕"],"qiào shāo":["鞘"],"juān xuān":["鞙"],"shàng zhǎng":["鞝"],"pí bǐng bì bēi":["鞞"],la:["鞡"],"xiè dié":["鞢"],ēng:["鞥"],"móu mù":["鞪"],"bì bǐng":["鞸"],"mèi wà":["韎"],rǒu:["韖"],"shè xiè":["韘"],"yùn wēn":["韫"],"dùn dú":["頓","顿"],duǐ:["頧"],luō:["頱"],"bīn pín":["頻"],yóng:["顒","颙","鰫"],mān:["顢","颟"],"jǐng gěng":["颈"],"jié xié jiá":["颉"],"kē ké":["颏"],"pín bīn":["频"],"chàn zhàn":["颤"],"fēng fěng":["風","风"],"biāo diū":["颩"],"bá fú":["颰"],"sāo sōu":["颾"],"liù liáo":["飂"],"shí sì yì":["食"],"yǎng juàn":["飬"],"zhù tǒu":["飳"],"yí sì":["飴"],"zuò zé zhā":["飵"],tiè:["飻","餮"],"xiǎng náng":["饟"],"táng xíng":["饧"],"gē le":["饹"],"chā zha":["馇"],"náng nǎng":["馕"],"yūn wò":["馧"],"zhī shì":["馶"],"xìn jìn":["馸"],"kuài jué":["駃"],zǎng:["駔","驵"],"tái dài":["駘"],"xún xuān":["駨"],"liáng láng":["駺"],piàn:["騗","騙","骗","魸"],"dài tái":["骀"],"sāo sǎo":["骚"],"gǔ gū":["骨"],"bèi mó":["骳"],"xiāo qiāo":["骹"],"bǎng pǎng":["髈"],"bó jué":["髉"],"bì pǒ":["髲"],"máo méng":["髳"],"kuò yuè":["髺"],"bā bà":["魞","鲃"],"jì cǐ":["鮆"],"bó bà":["鮊"],"zhǎ zhà":["鮓","鲊"],"chóu dài":["鮘"],"luò gé":["鮥"],"guī xié wā kuí":["鮭"],"xiān xiǎn":["鮮","鲜"],"pū bū":["鯆"],"yì sī":["鯣"],"bà bó":["鲌"],"guī xié":["鲑"],"sāi xǐ":["鳃"],"niǎo diǎo":["鳥"],"diāo zhāo":["鳭"],"gān hàn yàn":["鳱"],"fū guī":["鳺"],"jiān qiān zhān":["鳽"],"hé jiè":["鶡"],"piān biǎn":["鶣"],"chuàn zhì":["鶨"],"cāng qiāng":["鶬"],"sǔn xùn":["鶽"],"biāo páo":["麃"],"zhù cū":["麆"],"jūn qún":["麇","麕"],chi:["麶"],"mó me":["麼"],"mó me ma":["麽"],"mí mǒ":["麿"],"dàn shèn":["黮"],"zhěn yān":["黰"],"dǎn zhǎn":["黵"],"miǎn mǐn měng":["黾"],hōu:["齁"],nàng:["齉"],"qí jì zī zhāi":["齐"],"yín kěn yǎn":["龂"],"yín kěn":["龈"],"gōng wò":["龏"],"guī jūn qiū":["龜","龟"],"kuí wā":["䖯"],lōu:["䁖"],"ōu qū":["𫭟"],"lóu lǘ":["𦝼"],"gǎ gā gá":["嘎"],"wā guà":["坬"],"zhǐ dǐ":["茋"],"gǒng hóng":["硔"],"yáo xiào":["滧"]},_c=new i$;Object.keys(YS).forEach(e=>{const t=YS[e];for(let n of t)_c.set(n,e)});const JS={这个:"zhè ge",成为:"chéng wéi",认为:"rèn wéi",作为:"zuò wéi",部分:"bù fen",要求:"yāo qiú",应该:"yīng gāi",增长:"zēng zhǎng",提供:"tí gōng",觉得:"jué de",任务:"rèn wu",那个:"nà ge",称为:"chēng wéi",为主:"wéi zhǔ",了解:"liǎo jiě",处理:"chǔ lǐ",皇上:"huáng shang",只要:"zhǐ yào",大量:"dà liàng",力量:"lì liàng",几乎:"jī hū",干部:"gàn bù",目的:"mù dì",行为:"xíng wéi",只见:"zhǐ jiàn",认识:"rèn shi",市长:"shì zhǎng",师父:"shī fu",调查:"diào chá",重新:"chóng xīn",分为:"fēn wéi",知识:"zhī shi",导弹:"dǎo dàn",质量:"zhì liàng",行款:"háng kuǎn",行列:"háng liè",行话:"háng huà",行业:"háng yè",隔行:"gé háng",在行:"zài háng",行家:"háng jia",内行:"nèi háng",外行:"wài háng",同行:"tóng háng",本行:"běn háng",行伍:"háng wǔ",洋行:"yáng háng",银行:"yín háng",商行:"shāng háng",支行:"zhī háng",总行:"zǒng háng",行情:"háng qíng",懂行:"dǒng háng",行规:"háng guī",行当:"háng dang",行货:"háng huò",太行:"tài háng",入行:"rù háng",中行:"zhōng háng",农行:"nóng háng",工行:"gōng háng",建行:"jiàn háng",各行:"gè háng",行号:"háng hào",行高:"háng gāo",行首:"háng shǒu",行尾:"háng wěi",行末:"háng mò",行长:"háng zhǎng",行距:"háng jù",换行:"huàn háng",行会:"háng huì",行辈:"háng bèi",行道:"háng dào",道行:"dào heng",参与:"cān yù",充分:"chōng fèn",尽管:"jǐn guǎn",生长:"shēng zhǎng",数量:"shù liàng",应当:"yīng dāng",院长:"yuàn zhǎng",强调:"qiáng diào",只能:"zhǐ néng",音乐:"yīn yuè",以为:"yǐ wéi",处于:"chǔ yú",部长:"bù zhǎng",蒙古:"měng gǔ",只有:"zhǐ yǒu",适当:"shì dàng",只好:"zhǐ hǎo",成长:"chéng zhǎng",高兴:"gāo xìng",不了:"bù liǎo",产量:"chǎn liàng",胖子:"pàng zi",显得:"xiǎn de",只是:"zhǐ shì",似的:"shì de",率领:"shuài lǐng",改为:"gǎi wéi",不禁:"bù jīn",成分:"chéng fèn",答应:"dā ying",少年:"shào nián",兴趣:"xìng qù",太监:"tài jian",休息:"xiū xi",校长:"xiào zhǎng",更新:"gēng xīn",合同:"hé tong",喝道:"hè dào",重庆:"chóng qìng",重建:"chóng jiàn",使得:"shǐ de",审查:"shěn chá",累计:"lěi jì",给予:"jǐ yǔ",极为:"jí wéi",冠军:"guàn jūn",仿佛:"fǎng fú",头发:"tóu fa",投降:"tóu xiáng",家长:"jiā zhǎng",仔细:"zǐ xì",要是:"yào shi",将领:"jiàng lǐng",含量:"hán liàng",更为:"gèng wéi",积累:"jī lěi",地处:"dì chǔ",县长:"xiàn zhǎng",少女:"shào nǚ",路上:"lù shang",只怕:"zhǐ pà",能量:"néng liàng",储量:"chǔ liàng",供应:"gōng yìng",挑战:"tiǎo zhàn",西藏:"xī zàng",记得:"jì de",总量:"zǒng liàng",当真:"dàng zhēn",将士:"jiàng shì",差别:"chā bié",较为:"jiào wéi",长老:"zhǎng lǎo",大夫:"dài fu",差异:"chā yì",懂得:"dǒng de",尽量:"jǐn liàng",模样:"mú yàng",的确:"dí què",为首:"wéi shǒu",便宜:"pián yi",更名:"gēng míng",石头:"shí tou",州长:"zhōu zhǎng",为止:"wéi zhǐ",漂亮:"piào liang",炮弹:"pào dàn",藏族:"zàng zú",角色:"jué sè",当作:"dàng zuò",尽快:"jǐn kuài",人为:"rén wéi",重复:"chóng fù",胡同:"hú tòng",差距:"chā jù",弟兄:"dì xiong",大将:"dà jiàng",睡觉:"shuì jiào",一觉:"yí jiào",团长:"tuán zhǎng",队长:"duì zhǎng",区长:"qū zhǎng",难得:"nán dé",丫头:"yā tou",会长:"huì zhǎng",弟弟:"dì di",王爷:"wáng ye",重量:"zhòng liàng",誉为:"yù wéi",家伙:"jiā huo",华山:"huà shān",椅子:"yǐ zi",流量:"liú liàng",长大:"zhǎng dà",勉强:"miǎn qiǎng",会计:"kuài jì",过分:"guò fèn",济南:"jǐ nán",调动:"diào dòng",燕京:"yān jīng",少将:"shào jiàng",中毒:"zhòng dú",晓得:"xiǎo de",变更:"biàn gēng",打更:"dǎ gēng",认得:"rèn de",苹果:"píng guǒ",念头:"niàn tou",挣扎:"zhēng zhá",三藏:"sān zàng",剥削:"bō xuē",丞相:"chéng xiàng",少量:"shǎo liàng",寻思:"xún si",夺得:"duó dé",干线:"gàn xiàn",呼吁:"hū yù",处罚:"chǔ fá",长官:"zhǎng guān",柏林:"bó lín",亲戚:"qīn qi",身分:"shēn fèn",胳膊:"gē bo",着手:"zhuó shǒu",炸弹:"zhà dàn",咳嗽:"ké sou",叶子:"yè zi",外长:"wài zhǎng",供给:"gōng jǐ",师长:"shī zhǎng",变量:"biàn liàng",应有:"yīng yǒu",下载:"xià zài",乐器:"yuè qì",间接:"jiàn jiē",底下:"dǐ xià",打扮:"dǎ bàn",子弹:"zǐ dàn",弹药:"dàn yào",热量:"rè liàng",削弱:"xuē ruò",骨干:"gǔ gàn",容量:"róng liàng",模糊:"mó hu",转动:"zhuàn dòng",称呼:"chēng hu",科长:"kē zhǎng",处置:"chǔ zhì",着重:"zhuó zhòng",着急:"zháo jí",强迫:"qiǎng pò",庭长:"tíng zhǎng",首相:"shǒu xiàng",喇嘛:"lǎ ma",镇长:"zhèn zhǎng",只管:"zhǐ guǎn",重重:"chóng chóng",免得:"miǎn de",着实:"zhuó shí",度假:"dù jià",真相:"zhēn xiàng",相貌:"xiàng mào",处分:"chǔ fèn",委屈:"wěi qu",为期:"wéi qī",伯伯:"bó bo",伯子:"bǎi zi",圈子:"quān zi",见识:"jiàn shi",笼罩:"lǒng zhào",与会:"yù huì",都督:"dū du",都市:"dū shì",成都:"chéng dū",首都:"shǒu dū",帝都:"dì dū",王都:"wáng dū",东都:"dōng dū",都护:"dū hù",都城:"dū chéng",建都:"jiàn dū",迁都:"qiān dū",故都:"gù dū",定都:"dìng dū",中都:"zhōng dū",六安:"lù ān",宰相:"zǎi xiàng",较量:"jiào liàng",对称:"duì chèn",总长:"zǒng zhǎng",相公:"xiàng gong",空白:"kòng bái",打量:"dǎ liang",水分:"shuǐ fèn",舌头:"shé tou",没收:"mò shōu",行李:"xíng li",判处:"pàn chǔ",散文:"sǎn wén",处境:"chǔ jìng",孙子:"sūn zi",拳头:"quán tou",打发:"dǎ fā",组长:"zǔ zhǎng",骨头:"gǔ tou",宁可:"nìng kě",更换:"gēng huàn",薄弱:"bó ruò",还原:"huán yuán",重修:"chóng xiū",重来:"chóng lái",只顾:"zhǐ gù",爱好:"ài hào",馒头:"mán tou",军长:"jūn zhǎng",首长:"shǒu zhǎng",厂长:"chǎng zhǎng",司长:"sī zhǎng",长子:"zhǎng zǐ",强劲:"qiáng jìng",恰当:"qià dàng",头儿:"tóu er",站长:"zhàn zhǎng",折腾:"zhē teng",相处:"xiāng chǔ",统率:"tǒng shuài",中将:"zhōng jiàng",命中:"mìng zhòng",名将:"míng jiàng",木头:"mù tou",动弹:"dòng tan",地壳:"dì qiào",干活:"gàn huó",少爷:"shào ye",水量:"shuǐ liàng",补给:"bǔ jǐ",尾巴:"wěi ba",来得:"lái de",好奇:"hào qí",钥匙:"yào shi",当做:"dàng zuò",沉着:"chén zhuó",哑巴:"yǎ ba",车子:"chē zi",上将:"shàng jiàng",恶心:"ě xīn",担子:"dàn zi",应届:"yīng jiè",主角:"zhǔ jué",运转:"yùn zhuǎn",兄长:"xiōng zhǎng",格式:"gé shì",正月:"zhēng yuè",营长:"yíng zhǎng",当成:"dàng chéng",女婿:"nǚ xu",咽喉:"yān hóu",重阳:"chóng yáng",化为:"huà wéi",吐蕃:"tǔ bō",钻进:"zuān jìn",乐队:"yuè duì",亮相:"liàng xiàng",被子:"bèi zi",舍得:"shě de",杉木:"shā mù",击中:"jī zhòng",排长:"pái zhǎng",假期:"jià qī",分量:"fèn liàng",数次:"shù cì",提防:"dī fáng",吆喝:"yāo he",查处:"chá chǔ",量子:"liàng zǐ",里头:"lǐ tou",调研:"diào yán",伺候:"cì hou",重申:"chóng shēn",枕头:"zhěn tou",拚命:"pīn mìng",社长:"shè zhǎng",归还:"guī huán",批量:"pī liàng",畜牧:"xù mù",点着:"diǎn zháo",甚为:"shèn wéi",小将:"xiǎo jiàng",着眼:"zhuó yǎn",处死:"chǔ sǐ",厌恶:"yàn wù",鼓乐:"gǔ yuè",树干:"shù gàn",秘鲁:"bì lǔ",大方:"dà fāng",外头:"wài tou",班长:"bān zhǎng",星宿:"xīng xiù",宁愿:"nìng yuàn",钦差:"qīn chāi",为数:"wéi shù",勾当:"gòu dàng",削减:"xuē jiǎn",间谍:"jiàn dié",埋怨:"mán yuàn",结实:"jiē shi",计量:"jì liáng",淹没:"yān mò",村长:"cūn zhǎng",连长:"lián zhǎng",自给:"zì jǐ",武将:"wǔ jiàng",温差:"wēn chā",直奔:"zhí bèn",供求:"gōng qiú",剂量:"jì liàng",道长:"dào zhǎng",泄露:"xiè lòu",王八:"wáng ba",切割:"qiē gē",间隔:"jiàn gé",一晃:"yì huǎng",长假:"cháng jià",令狐:"líng hú",为害:"wéi hài",句子:"jù zi",偿还:"cháng huán",疙瘩:"gē da",燕山:"yān shān",堵塞:"dǔ sè",夺冠:"duó guàn",扎实:"zhā shi",电荷:"diàn hè",看守:"kān shǒu",复辟:"fù bì",郁闷:"yù mèn",尽早:"jǐn zǎo",切断:"qiē duàn",指头:"zhǐ tou",为生:"wéi shēng",畜生:"chù sheng",切除:"qiē chú",着力:"zhuó lì",着想:"zhuó xiǎng",级差:"jí chā",投奔:"tóu bèn",棍子:"gùn zi",含糊:"hán hu",少妇:"shào fù",兴致:"xìng zhì",纳闷:"nà mèn",干流:"gàn liú",卷起:"juǎn qǐ",扇子:"shàn zi",更改:"gēng gǎi",笼络:"lǒng luò",喇叭:"lǎ ba",载荷:"zài hè",妥当:"tuǒ dàng",为难:"wéi nán",着陆:"zhuó lù",燕子:"yàn zi",干吗:"gàn má",白发:"bái fà",总得:"zǒng děi",夹击:"jiā jī",曝光:"bào guāng",曲调:"qǔ diào",相机:"xiàng jī",叫化:"jiào huà",角逐:"jué zhú",啊哟:"ā yō",载重:"zài zhòng",长辈:"zhǎng bèi",出差:"chū chāi",垛口:"duǒ kǒu",撇开:"piē kāi",厅长:"tīng zhǎng",组分:"zǔ fèn",误差:"wù chā",家当:"jiā dàng",传记:"zhuàn jì",个子:"gè zi",铺设:"pū shè",干事:"gàn shì",杆菌:"gǎn jūn",定量:"dìng liàng",运载:"yùn zài",会儿:"huì er",酋长:"qiú zhǎng",重返:"chóng fǎn",差额:"chā é",露面:"lòu miàn",钻研:"zuān yán",大城:"dài chéng",上当:"shàng dàng",销量:"xiāo liàng",作坊:"zuō fang",照相:"zhào xiàng",哎呀:"āi yā",调集:"diào jí",看中:"kàn zhòng",议长:"yì zhǎng",风筝:"fēng zheng",辟邪:"bì xié",空隙:"kòng xì",更迭:"gēng dié",偏差:"piān chā",声调:"shēng diào",适量:"shì liàng",屯子:"tún zi",无量:"wú liàng",空地:"kòng dì",调度:"diào dù",散射:"sǎn shè",创伤:"chuāng shāng",海参:"hǎi shēn",满载:"mǎn zài",重叠:"chóng dié",落差:"luò chā",单调:"dān diào",老将:"lǎo jiàng",人参:"rén shēn",间断:"jiàn duàn",重现:"chóng xiàn",夹杂:"jiā zá",调用:"diào yòng",萝卜:"luó bo",附着:"fù zhuó",应声:"yìng shēng",主将:"zhǔ jiàng",罪过:"zuì guo",咀嚼:"jǔ jué",为政:"wéi zhèng",过量:"guò liàng",乐曲:"yuè qǔ",负荷:"fù hè",枪弹:"qiāng dàn",悄然:"qiǎo rán",处方:"chǔ fāng",悄声:"qiǎo shēng",曲子:"qǔ zi",情调:"qíng diào",挑衅:"tiǎo xìn",代为:"dài wéi",了结:"liǎo jié",打中:"dǎ zhòng",酒吧:"jiǔ bā",懒得:"lǎn de",增量:"zēng liàng",衣着:"yī zhuó",部将:"bù jiàng",要塞:"yào sài",茶几:"chá jī",杠杆:"gàng gǎn",出没:"chū mò",鲜有:"xiǎn yǒu",间隙:"jiàn xì",重担:"zhòng dàn",重演:"chóng yǎn",重试:"chóng shì",应酬:"yìng chou",只当:"zhǐ dāng",毋宁:"wú nìng",包扎:"bāo zā",前头:"qián tou",卷烟:"juǎn yān",非得:"fēi děi",弹道:"dàn dào",杆子:"gān zi",门将:"mén jiàng",后头:"hòu tou",喝彩:"hè cǎi",暖和:"nuǎn huo",累积:"lěi jī",调遣:"diào qiǎn",倔强:"jué jiàng",宝藏:"bǎo zàng",丧事:"sāng shì",约莫:"yuē mo",纤夫:"qiàn fū",更替:"gēng tì",装载:"zhuāng zài",背包:"bēi bāo",帖子:"tiě zi",松散:"sōng sǎn",呼喝:"hū hè",可恶:"kě wù",自转:"zì zhuàn",供电:"gōng diàn",反省:"fǎn xǐng",坦率:"tǎn shuài",苏打:"sū dá",本分:"běn fèn",落得:"luò de",鄙薄:"bǐ bó",相间:"xiāng jiàn",单薄:"dān bó",混蛋:"hún dàn",贞观:"zhēn guān",附和:"fù hè",能耐:"néng nài",吓唬:"xià hu",未了:"wèi liǎo",引着:"yǐn zháo",抽调:"chōu diào",沙子:"shā zi",席卷:"xí juǎn",标的:"biāo dì",别扭:"biè niu",思量:"sī liang",喝采:"hè cǎi",论语:"lún yǔ",盖子:"gài zi",分外:"fèn wài",弄堂:"lòng táng",乐舞:"yuè wǔ",雨量:"yǔ liàng",毛发:"máo fà",差遣:"chāi qiǎn",背负:"bēi fù",转速:"zhuàn sù",声乐:"shēng yuè",夹攻:"jiā gōng",供水:"gōng shuǐ",主干:"zhǔ gàn",惩处:"chéng chǔ",长相:"zhǎng xiàng",公差:"gōng chāi",榴弹:"liú dàn",省得:"shěng de",条子:"tiáo zi",重围:"chóng wéi",阻塞:"zǔ sè",劲风:"jìng fēng",纠葛:"jiū gé",颠簸:"diān bǒ",点中:"diǎn zhòng",重创:"zhòng chuāng",姥姥:"lǎo lao",迷糊:"mí hu",公家:"gōng jia",几率:"jī lǜ",苦闷:"kǔ mèn",度量:"dù liàng",差错:"chā cuò",暑假:"shǔ jià",参差:"cēn cī",搭载:"dā zài",助长:"zhù zhǎng",相称:"xiāng chèn",红晕:"hóng yùn",舍命:"shě mìng",喜好:"xǐ hào",列传:"liè zhuàn",劲敌:"jìng dí",蛤蟆:"há ma",请假:"qǐng jià",钉子:"dīng zi",沉没:"chén mò",高丽:"gāo lí",休假:"xiū jià",无为:"wú wéi",巴结:"bā jie",了得:"liǎo dé",变相:"biàn xiàng",核弹:"hé dàn",亲家:"qìng jia",承载:"chéng zài",喝问:"hè wèn",还击:"huán jī",交还:"jiāo huán",将令:"jiàng lìng",单于:"chán yú",空缺:"kòng quē",绿林:"lù lín",胆量:"dǎn liàng",执着:"zhí zhuó",低调:"dī diào",闭塞:"bì sè",轻薄:"qīng bó",得当:"dé dàng",占卜:"zhān bǔ",扫帚:"sào zhou",龟兹:"qiū cí",年长:"nián zhǎng",外传:"wài zhuàn",头子:"tóu zi",裁缝:"cái feng",礼乐:"lǐ yuè",血泊:"xuè pō",散乱:"sǎn luàn",动量:"dòng liàng",倒腾:"dǎo teng",取舍:"qǔ shě",咱家:"zán jiā",长发:"cháng fà",爪哇:"zhǎo wā",弹壳:"dàn ké",省悟:"xǐng wù",嚷嚷:"rāng rang",连累:"lián lèi",应得:"yīng dé",族长:"zú zhǎng",柜子:"guì zi",擂鼓:"léi gǔ",眩晕:"xuàn yùn",调配:"tiáo pèi",躯干:"qū gàn",差役:"chāi yì",坎坷:"kǎn kě",少儿:"shào ér",乐团:"yuè tuán",养分:"yǎng fèn",退还:"tuì huán",格调:"gé diào",语调:"yǔ diào",音调:"yīn diào",乐府:"yuè fǔ",古朴:"gǔ pǔ",打点:"dǎ diǎn",差使:"chāi shǐ",匀称:"yún chèn",瘦削:"shòu xuē",膏药:"gāo yao",吞没:"tūn mò",调任:"diào rèn",散居:"sǎn jū",上头:"shàng tóu",风靡:"fēng mǐ",放假:"fàng jià",估量:"gū liang",失当:"shī dàng",中弹:"zhòng dàn",妄为:"wàng wéi",长者:"zhǎng zhě",起哄:"qǐ hòng",末了:"mò liǎo",相声:"xiàng sheng",校正:"jiào zhèng",劝降:"quàn xiáng",矢量:"shǐ liàng",沉闷:"chén mèn",给与:"jǐ yǔ",解法:"jiě fǎ",塞外:"sài wài",将校:"jiàng xiào",嗜好:"shì hào",没落:"mò luò",朴刀:"pō dāo",片子:"piān zi",切削:"qiē xiāo",弹丸:"dàn wán",稀薄:"xī bó",亏得:"kuī dé",间歇:"jiàn xiē",翘首:"qiáo shǒu",色调:"sè diào",处决:"chǔ jué",表率:"biǎo shuài",尺子:"chǐ zi",招降:"zhāo xiáng",称职:"chèn zhí",斗篷:"dǒu peng",铺子:"pù zi",底子:"dǐ zi",负载:"fù zài",干警:"gàn jǐng",倒数:"dào shǔ",将官:"jiàng guān",锄头:"chú tou",归降:"guī xiáng",疟疾:"nüè ji",唠叨:"láo dao",限量:"xiàn liàng",屏息:"bǐng xī",重逢:"chóng féng",器乐:"qì yuè",氢弹:"qīng dàn",脖颈:"bó gěng",妃子:"fēi zi",处事:"chǔ shì",参量:"cān liàng",轻率:"qīng shuài",缥缈:"piāo miǎo",中奖:"zhòng jiǎng",才干:"cái gàn",施舍:"shī shě",卷子:"juàn zi",游说:"yóu shuì",巷子:"xiàng zi",膀胱:"páng guāng",切勿:"qiè wù",看管:"kān guǎn",风头:"fēng tou",精干:"jīng gàn",高差:"gāo chā",恐吓:"kǒng hè",扁担:"biǎn dàn",给养:"jǐ yǎng",格子:"gé zi",供需:"gōng xū",反差:"fǎn chā",飞弹:"fēi dàn",微薄:"wēi bó",发型:"fà xíng",即兴:"jí xìng",攒动:"cuán dòng",间或:"jiàn huò",浅薄:"qiǎn bó",乐章:"yuè zhāng",顺差:"shùn chā",调子:"diào zi",相位:"xiàng wèi",转子:"zhuàn zǐ",劲旅:"jìng lǚ",咔嚓:"kā chā",了事:"liǎo shì",转悠:"zhuàn you",当铺:"dàng pù",爪子:"zhuǎ zi",单子:"dān zi",好战:"hào zhàn",燕麦:"yàn mài",只许:"zhǐ xǔ",干练:"gàn liàn",女将:"nǚ jiàng",酒量:"jiǔ liàng",划船:"huá chuán",伎俩:"jì liǎng",挑拨:"tiǎo bō",少校:"shào xiào",着落:"zhuó luò",憎恶:"zēng wù",刻薄:"kè bó",要挟:"yāo xié",用处:"yòng chu",还手:"huán shǒu",模具:"mú jù",执著:"zhí zhuó",喝令:"hè lìng",保长:"bǎo zhǎng",吸着:"xī zhe",症结:"zhēng jié",公转:"gōng zhuàn",校勘:"jiào kān",重提:"chóng tí",扫兴:"sǎo xìng",铺盖:"pū gài",长史:"zhǎng shǐ",差价:"chā jià",压根:"yà gēn",怔住:"zhèng zhù",应允:"yīng yǔn",切入:"qiē rù",战将:"zhàn jiàng",年少:"nián shào",舍身:"shě shēn",执拗:"zhí niù",处世:"chǔ shì",中风:"zhòng fēng",等量:"děng liàng",放量:"fàng liàng",腔调:"qiāng diào",老少:"lǎo shào",没入:"mò rù",瓜葛:"guā gé",将帅:"jiàng shuài",车载:"chē zài",窝囊:"wō nang",长进:"zhǎng jìn",可汗:"kè hán",并州:"bīng zhōu",供销:"gōng xiāo",切片:"qiē piàn",差事:"chāi shì",知会:"zhī hui",鹰爪:"yīng zhǎo",处女:"chǔ nǚ",切磋:"qiē cuō",日头:"rì tou",押解:"yā jiè",滋长:"zī zhǎng",道观:"dào guàn",脚色:"jué sè",当量:"dāng liàng",婆家:"pó jia",缘分:"yuán fèn",空闲:"kòng xián",好色:"hào sè",怒喝:"nù hè",笼统:"lǒng tǒng",边塞:"biān sài",何曾:"hé céng",重合:"chóng hé",零散:"líng sǎn",轰隆:"hōng lōng",化子:"huà zi",内蒙:"nèi měng",数落:"shǔ luò",逆差:"nì chā",牟利:"móu lì",栅栏:"zhà lan",中标:"zhòng biāo",调档:"diào dàng",佝偻:"gōu lóu",场子:"chǎng zi",甲壳:"jiǎ qiào",重温:"chóng wēn",炮制:"páo zhì",返还:"fǎn huán",自传:"zì zhuàn",高调:"gāo diào",殷红:"yān hóng",固着:"gù zhuó",强求:"qiǎng qiú",本相:"běn xiàng",骄横:"jiāo hèng",草率:"cǎo shuài",气闷:"qì mèn",着色:"zhuó sè",宁肯:"nìng kěn",兴头:"xìng tou",拘泥:"jū nì",夹角:"jiā jiǎo",发髻:"fà jì",猛将:"měng jiàng",约摸:"yuē mo",拖累:"tuō lěi",呢绒:"ní róng",钻探:"zuān tàn",夹层:"jiā céng",落魄:"luò pò",巷道:"hàng dào",运量:"yùn liàng",解闷:"jiě mèn",空儿:"kòng er",估摸:"gū mo",好客:"hào kè",钻孔:"zuān kǒng",糊弄:"hù nòng",荥阳:"xíng yáng",烦闷:"fán mèn",仓卒:"cāng cù",分叉:"fēn chà",厂子:"chǎng zi",小调:"xiǎo diào",少阳:"shào yáng",受降:"shòu xiáng",染坊:"rǎn fáng",胳臂:"gē bei",将门:"jiàng mén",模板:"mú bǎn",配给:"pèi jǐ",为伍:"wéi wǔ",跟头:"gēn tou",划算:"huá suàn",累赘:"léi zhui",哄笑:"hōng xiào",晕眩:"yūn xuàn",干掉:"gàn diào",缝制:"féng zhì",难处:"nán chù",着意:"zhuó yì",蛮横:"mán hèng",奇数:"jī shù",短发:"duǎn fà",生还:"shēng huán",还清:"huán qīng",看护:"kān hù",直率:"zhí shuài",奏乐:"zòu yuè",载客:"zài kè",专横:"zhuān hèng",湮没:"yān mò",空格:"kòng gé",铺垫:"pū diàn",良将:"liáng jiàng",哗啦:"huā lā",散漫:"sǎn màn",脱发:"tuō fà",送还:"sòng huán",埋没:"mái mò",累及:"lěi jí",薄雾:"bó wù",调离:"diào lí",舌苔:"shé tāi",机长:"jī zhǎng",栓塞:"shuān sè",配角:"pèi jué",切口:"qiē kǒu",创口:"chuāng kǒu",哈欠:"hā qian",实弹:"shí dàn",铺平:"pū píng",哈达:"hǎ dá",懒散:"lǎn sǎn",实干:"shí gàn",填空:"tián kòng",刁钻:"diāo zuān",乐师:"yuè shī",量变:"liàng biàn",诱降:"yòu xiáng",搪塞:"táng sè",征调:"zhēng diào",夹道:"jiā dào",干咳:"gān ké",止咳:"zhǐ ké",乐工:"yuè gōng",划过:"huá guò",着火:"zháo huǒ",更正:"gēng zhèng",给付:"jǐ fù",空子:"kòng zi",哪吒:"né zhā",正着:"zhèng zháo",刷子:"shuā zi",丧葬:"sāng zàng",夹带:"jiā dài",安分:"ān fèn",中意:"zhòng yì",长孙:"zhǎng sūn",校订:"jiào dìng",卷曲:"juǎn qū",载运:"zài yùn",投弹:"tóu dàn",柞蚕:"zuò cán",份量:"fèn liàng",调换:"diào huàn",了然:"liǎo rán",咧嘴:"liě zuǐ",典当:"diǎn dàng",寒假:"hán jià",长兄:"zhǎng xiōng",给水:"jǐ shuǐ",须发:"xū fà",枝干:"zhī gàn",属相:"shǔ xiàng",哄抢:"hōng qiǎng",刻划:"kè huà",塞子:"sāi zi",单干:"dān gàn",还乡:"huán xiāng",兆头:"zhào tou",寺观:"sì guàn",督率:"dū shuài",啊哈:"ā ha",割舍:"gē shě",抹布:"mā bù",好恶:"hào wù",下处:"xià chǔ",消长:"xiāo zhǎng",离间:"lí jiàn",准头:"zhǔn tou",校对:"jiào duì",什物:"shí wù",番禺:"pān yú",佛爷:"fó ye",吗啡:"mǎ fēi",盐分:"yán fèn",虎将:"hǔ jiàng",薄荷:"bò he",独处:"dú chǔ",空位:"kòng wèi",铺路:"pū lù",乌拉:"wū lā",调回:"diào huí",来头:"lái tou",闲散:"xián sǎn",胶卷:"jiāo juǎn",冒失:"mào shi",干劲:"gàn jìn",弦乐:"xián yuè",相国:"xiàng guó",丹参:"dān shēn",助兴:"zhù xìng",铺开:"pū kāi",次长:"cì zhǎng",发卡:"fà qiǎ",拮据:"jié jū",刹车:"shā chē",生发:"shēng fà",重播:"chóng bō",缝合:"féng hé",音量:"yīn liàng",少尉:"shào wèi",冲压:"chòng yā",苍劲:"cāng jìng",厚薄:"hòu báo",威吓:"wēi hè",外相:"wài xiàng",呼号:"hū háo",着迷:"zháo mí",挑担:"tiāo dàn",纹路:"wén lù",还俗:"huán sú",强横:"qiáng hèng",着数:"zhāo shù",降顺:"xiáng shùn",挑明:"tiǎo míng",眯缝:"mī feng",分内:"fèn nèi",更衣:"gēng yī",软和:"ruǎn huo",尽兴:"jìn xìng",号子:"hào zi",爪牙:"zhǎo yá",败将:"bài jiàng",猜中:"cāi zhòng",结扎:"jié zā",没空:"méi kòng",夹缝:"jiā fèng",拾掇:"shí duo",掺和:"chān huo",簸箕:"bò ji",电量:"diàn liàng",荷载:"hè zǎi",调式:"diào shì",处身:"chǔ shēn",打手:"dǎ shǒu",弹弓:"dàn gōng",横蛮:"hèng mán",能干:"néng gàn",校点:"jiào diǎn",加载:"jiā zài",干校:"gàn xiào",哄传:"hōng chuán",校注:"jiào zhù",淤塞:"yū sè",马扎:"mǎ zhá",月氏:"yuè zhī",高干:"gāo gàn",经传:"jīng zhuàn",曾孙:"zēng sūn",好斗:"hào dòu",关卡:"guān qiǎ",逃奔:"táo bèn",磨蹭:"mó ceng",牟取:"móu qǔ",颤栗:"zhàn lì",蚂蚱:"mà zha",撮合:"cuō he",趔趄:"liè qie",摔打:"shuāi dǎ",台子:"tái zi",分得:"fēn de",粘着:"nián zhuó",采邑:"cài yì",散装:"sǎn zhuāng",婀娜:"ē nuó",兴味:"xìng wèi",行头:"xíng tou",气量:"qì liàng",调运:"diào yùn",处治:"chǔ zhì",乐音:"yuè yīn",充塞:"chōng sè",恫吓:"dòng hè",论调:"lùn diào",相中:"xiāng zhòng",民乐:"mín yuè",炮仗:"pào zhang",丧服:"sāng fú",骁将:"xiāo jiàng",量刑:"liàng xíng",缝补:"féng bǔ",财会:"cái kuài",大干:"dà gàn",历数:"lì shǔ",校场:"jiào chǎng",塞北:"sài běi",识相:"shí xiàng",辱没:"rǔ mò",鲜亮:"xiān liàng",语塞:"yǔ sè",露脸:"lòu liǎn",凉快:"liáng kuai",腰杆:"yāo gǎn",溜达:"liū da",嘎嘎:"gā gā",公干:"gōng gàn",桔梗:"jié gěng",挑逗:"tiǎo dòu",看门:"kān mén",乐歌:"yuè gē",拓片:"tà piàn",挑动:"tiǎo dòng",准将:"zhǔn jiàng",遒劲:"qiú jìng",磨坊:"mò fáng",逶迤:"wēi yí",搅和:"jiǎo huo",摩挲:"mó suō",作弄:"zuò nòng",苗头:"miáo tou",打颤:"dǎ zhàn",大藏:"dà zàng",畜牲:"chù shēng",勾搭:"gōu da",树荫:"shù yīn",树杈:"shù chà",铁杆:"tiě gǎn",将相:"jiàng xiàng",份子:"fèn zi",视差:"shì chā",绿荫:"lǜ yīn",枪杆:"qiāng gǎn",缝纫:"féng rèn",愁闷:"chóu mèn",点将:"diǎn jiàng",华佗:"huà tuó",劲射:"jìng shè",箱笼:"xiāng lǒng",终了:"zhōng liǎo",鬓发:"bìn fà",结巴:"jiē ba",苦干:"kǔ gàn",看家:"kān jiā",正旦:"zhēng dàn",中肯:"zhòng kěn",厦门:"xià mén",东莞:"dōng guǎn",食量:"shí liàng",宫调:"gōng diào",间作:"jiàn zuò",弹片:"dàn piàn",差池:"chā chí",漂白:"piǎo bái",杠子:"gàng zi",调处:"tiáo chǔ",好动:"hào dòng",转炉:"zhuàn lú",屏气:"bǐng qì",夹板:"jiā bǎn",哀乐:"āi yuè",干道:"gàn dào",苦处:"kǔ chù",劈柴:"pǐ chái",长势:"zhǎng shì",天华:"tiān huá",共处:"gòng chǔ",校验:"jiào yàn",出塞:"chū sài",磨盘:"mò pán",萎靡:"wěi mǐ",奔丧:"bēn sāng",唱和:"chàng hè",大调:"dà diào",非分:"fēi fèn",钻营:"zuān yíng",夹子:"jiā zi",超载:"chāo zài",更始:"gēng shǐ",铃铛:"líng dang",披散:"pī sàn",发还:"fā huán",转轮:"zhuàn lún",横财:"hèng cái",泡桐:"pāo tóng",抛撒:"pāo sǎ",天呀:"tiān yā",糊糊:"hū hu",躯壳:"qū qiào",通量:"tōng liàng",奉还:"fèng huán",午觉:"wǔ jiào",闷棍:"mèn gùn",浪头:"làng tou",砚台:"yàn tái",油坊:"yóu fáng",学长:"xué zhǎng",过载:"guò zài",笔调:"bǐ diào",衣被:"yī bèi",畜产:"xù chǎn",调阅:"diào yuè",蛮干:"mán gàn",曾祖:"zēng zǔ",提干:"tí gàn",变调:"biàn diào",覆没:"fù mò",模子:"mú zi",乐律:"yuè lǜ",称心:"chèn xīn",木杆:"mù gān",重印:"chóng yìn",自省:"zì xǐng",提调:"tí diào",看相:"kàn xiàng",芋头:"yù tou",下切:"xià qiē",塞上:"sài shàng",铺张:"pū zhāng",藤蔓:"téng wàn",薄幸:"bó xìng",解数:"xiè shù",褪去:"tuì qù",霰弹:"xiàn dàn",柚木:"yóu mù",痕量:"hén liàng",雅乐:"yǎ yuè",号哭:"háo kū",诈降:"zhà xiáng",猪圈:"zhū juàn",咋舌:"zé shé",铣床:"xǐ chuáng",防弹:"fáng dàn",健将:"jiàn jiàng",丽水:"lí shuǐ",削发:"xuē fà",空当:"kòng dāng",多相:"duō xiàng",鲜见:"xiǎn jiàn",划桨:"huá jiǎng",载波:"zài bō",跳蚤:"tiào zao",俏皮:"qiào pí",吧嗒:"bā dā",结发:"jié fà",了断:"liǎo duàn",同调:"tóng diào",石磨:"shí mò",时差:"shí chā",鼻塞:"bí sè",挑子:"tiāo zi",推磨:"tuī mò",武侯:"wǔ hóu",抹煞:"mǒ shā",调转:"diào zhuǎn",籍没:"jí mò",还债:"huán zhài",调演:"diào yǎn",分划:"fēn huá",奇偶:"jī ǒu",断喝:"duàn hè",闷雷:"mèn léi",狼藉:"láng jí",饭量:"fàn liàng",还礼:"huán lǐ",转调:"zhuǎn diào",星相:"xīng xiàng",手相:"shǒu xiàng",配乐:"pèi yuè",盖头:"gài tou",连杆:"lián gǎn",簿记:"bù jì",刀把:"dāo bà",量词:"liàng cí",名角:"míng jué",步调:"bù diào",校本:"jiào běn",账簿:"zhàng bù",隽永:"juàn yǒng",稍为:"shāo wéi",易传:"yì zhuàn",乐谱:"yuè pǔ",牵累:"qiān lěi",答理:"dā li",喝斥:"hè chì",吟哦:"yín é",干渠:"gàn qú",海量:"hǎi liàng",精当:"jīng dàng",着床:"zhuó chuáng",月相:"yuè xiàng",庶几:"shù jī",宫观:"gōng guàn",论处:"lùn chǔ",征辟:"zhēng bì",厚朴:"hòu pò",介壳:"jiè qiào",吭哧:"kēng chī",咯血:"kǎ xiě",铺陈:"pū chén",重生:"chóng shēng",乐理:"yuè lǐ",哀号:"āi háo",藏历:"zàng lì",刚劲:"gāng jìng",削平:"xuē píng",浓荫:"nóng yīn",城垛:"chéng duǒ",当差:"dāng chāi",正传:"zhèng zhuàn",并处:"bìng chǔ",创面:"chuāng miàn",旦角:"dàn jué",薄礼:"bó lǐ",晃荡:"huàng dang",臊子:"sào zi",家什:"jiā shí",闷头:"mēn tóu",美发:"měi fà",度数:"dù shu",着凉:"zháo liáng",闯将:"chuǎng jiàng",几案:"jī àn",姘头:"pīn tou",差数:"chā shù",散碎:"sǎn suì",壅塞:"yōng sè",寒颤:"hán zhàn",牵强:"qiān qiǎng",无间:"wú jiàn",轮转:"lún zhuàn",号叫:"háo jiào",铺排:"pū pái",降伏:"xiáng fú",轧钢:"zhá gāng",东阿:"dōng ē",病假:"bìng jià",累加:"lěi jiā",梗塞:"gěng sè",弹夹:"dàn jiā",钻心:"zuān xīn",晃眼:"huǎng yǎn",魔爪:"mó zhǎo",标量:"biāo liàng",憋闷:"biē mèn",猜度:"cāi duó",处士:"chǔ shì",官差:"guān chāi",讨还:"tǎo huán",长门:"cháng mén",馏分:"liú fēn",里弄:"lǐ lòng",色相:"sè xiàng",雅兴:"yǎ xìng",角力:"jué lì",弹坑:"dàn kēng",枝杈:"zhī chà",夹具:"jiā jù",处刑:"chǔ xíng",悍将:"hàn jiàng",好学:"hào xué",好好:"hǎo hǎo",银发:"yín fà",扫把:"sào bǎ",法相:"fǎ xiàng",贵干:"guì gàn",供气:"gōng qì",空余:"kòng yú",捆扎:"kǔn zā",瘠薄:"jí bó",浆糊:"jiàng hu",嘎吱:"gā zhī",调令:"diào lìng",法帖:"fǎ tiè",淋病:"lìn bìng",调派:"diào pài",转盘:"zhuàn pán",供稿:"gōng gǎo",差官:"chāi guān",忧闷:"yōu mèn",教长:"jiào zhǎng",重唱:"chóng chàng",酒兴:"jiǔ xìng",乐坛:"yuè tán",花呢:"huā ní",叱喝:"chì hè",膀臂:"bǎng bì",得空:"dé kòng",转圈:"zhuàn quān",横暴:"hèng bào",哄抬:"hōng tái",引吭:"yǐn háng",载货:"zài huò",中计:"zhòng jì",官长:"guān zhǎng",相面:"xiàng miàn",看头:"kàn tou",盼头:"pàn tou",意兴:"yì xìng",军乐:"jūn yuè",累次:"lěi cì",骨嘟:"gǔ dū",燕赵:"yān zhào",报丧:"bào sāng",弥撒:"mí sa",挨斗:"ái dòu",扁舟:"piān zhōu",丑角:"chǒu jué",吊丧:"diào sāng",强将:"qiáng jiàng",重奏:"chóng zòu",发辫:"fà biàn",着魔:"zháo mó",着法:"zhāo fǎ",盛放:"shèng fàng",填塞:"tián sè",凶横:"xiōng hèng",稽首:"qǐ shǒu",碑帖:"bēi tiè",冲量:"chōng liàng",发菜:"fà cài",假发:"jiǎ fà",翻卷:"fān juǎn",小量:"xiǎo liàng",胶着:"jiāo zhuó",里子:"lǐ zi",调调:"diào diao",散兵:"sǎn bīng",高挑:"gāo tiǎo",播撒:"bō sǎ",夹心:"jiā xīn",扇动:"shān dòng",叨扰:"tāo rǎo",霓裳:"ní cháng",捻子:"niǎn zi",弥缝:"mí féng",撒布:"sǎ bù",场院:"cháng yuàn",省亲:"xǐng qīn",提拉:"tí lā",惯量:"guàn liàng",强逼:"qiáng bī",强征:"qiáng zhēng",晕车:"yùn chē",数道:"shù dào",带累:"dài lèi",拓本:"tà běn",嫌恶:"xián wù",宿将:"sù jiàng",龟裂:"jūn liè",缠夹:"chán jiā",发式:"fà shì",隔扇:"gé shàn",天分:"tiān fèn",癖好:"pǐ hào",四通:"sì tōng",白术:"bái zhú",划伤:"huá shāng",角斗:"jué dòu",听差:"tīng chāi",岁差:"suì chā",丧礼:"sāng lǐ",脉脉:"mò mò",削瘦:"xuē shòu",撒播:"sǎ bō",莎草:"suō cǎo",犍为:"qián wéi",调头:"diào tóu",龙卷:"lóng juǎn",外调:"wài diào",字帖:"zì tiè",卷发:"juǎn fà",揣度:"chuǎi duó",洋相:"yáng xiàng",散光:"sǎn guāng",骨碌:"gū lu",薄命:"bó mìng",笼头:"lóng tóu",咽炎:"yān yán",碌碡:"liù zhou",片儿:"piàn er",纤手:"qiàn shǒu",散体:"sǎn tǐ",内省:"nèi xǐng",强留:"qiáng liú",解送:"jiè sòng",反间:"fǎn jiàn",少壮:"shào zhuàng",留空:"liú kōng",告假:"gào jià",咳血:"ké xuè",薄暮:"bó mù",铺轨:"pū guǐ",磨削:"mó xuē",治丧:"zhì sāng",叉子:"chā zi",哄动:"hōng dòng",蛾子:"é zi",出落:"chū luò",股长:"gǔ zhǎng",贵处:"guì chù",还魂:"huán hún",例假:"lì jià",刹住:"shā zhù",身量:"shēn liàng",同好:"tóng hào",模量:"mó liàng",更生:"gēng shēng",服丧:"fú sāng",率直:"shuài zhí",字模:"zì mú",散架:"sǎn jià",答腔:"dā qiāng",交恶:"jiāo wù",薄情:"bó qíng",眼泡:"yǎn pāo",袅娜:"niǎo nuó",草垛:"cǎo duò",冲劲:"chòng jìn",呢喃:"ní nán",切中:"qiè zhòng",挑灯:"tiǎo dēng",还愿:"huán yuàn",激将:"jī jiàng",更鼓:"gēng gǔ",没药:"mò yào",败兴:"bài xìng",切面:"qiē miàn",散户:"sǎn hù",累进:"lěi jìn",背带:"bēi dài",秤杆:"chèng gǎn",碾坊:"niǎn fáng",簿子:"bù zi",扳手:"bān shǒu",铅山:"yán shān",儒将:"rú jiàng",重光:"chóng guāng",剪发:"jiǎn fà",长上:"zhǎng shàng",小传:"xiǎo zhuàn",压轴:"yā zhòu",弱冠:"ruò guàn",花卷:"huā juǎn",横祸:"hèng huò",夹克:"jiā kè",光晕:"guāng yùn",披靡:"pī mǐ",对调:"duì diào",夹持:"jiā chí",空额:"kòng é",平调:"píng diào",铺床:"pū chuáng",丧钟:"sāng zhōng",作乐:"zuò lè",少府:"shào fǔ",数数:"shuò shuò",奔头:"bèn tou",进给:"jìn jǐ",率性:"shuài xìng",乐子:"lè zi",绑扎:"bǎng zā",挑唆:"tiǎo suō",漂洗:"piǎo xǐ",夹墙:"jiā qiáng",咳喘:"ké chuǎn",乜斜:"miē xie",错处:"cuò chù",闷酒:"mèn jiǔ",时调:"shí diào",重孙:"chóng sūn",经幢:"jīng chuáng",圩场:"xū chǎng",调门:"diào mén",花头:"huā tóu",划拉:"huá la",套色:"tào shǎi",粗率:"cū shuài",相率:"xiāng shuài",款识:"kuǎn zhì",吁请:"yù qǐng",荫蔽:"yīn bì",文蛤:"wén gé",嘀嗒:"dī dā",调取:"diào qǔ",交差:"jiāo chāi",落子:"luò zǐ",相册:"xiàng cè",絮叨:"xù dao",落发:"luò fà",异相:"yì xiàng",浸没:"jìn mò",角抵:"jué dǐ",卸载:"xiè zài",春卷:"chūn juǎn",扎挣:"zhá zheng",畜养:"xù yǎng",吡咯:"bǐ luò",垛子:"duò zi",恶少:"è shào",发际:"fà jì",红苕:"hóng sháo",糨糊:"jiàng hu",哭丧:"kū sāng",稍息:"shào xī",晕船:"yùn chuán",校样:"jiào yàng",外差:"wài chā",脚爪:"jiǎo zhǎo",铺展:"pū zhǎn",芫荽:"yán sui",夹紧:"jiā jǐn",尿泡:"suī pào",丧乱:"sāng luàn",凶相:"xiōng xiàng",华发:"huá fà",打场:"dǎ cháng",云量:"yún liàng",正切:"zhèng qiē",划拳:"huá quán",划艇:"huá tǐng",评传:"píng zhuàn",拉纤:"lā qiàn",句读:"jù dòu",散剂:"sǎn jì",骨殖:"gǔ shi",塞音:"sè yīn",铺叙:"pū xù",阏氏:"yān zhī",冷颤:"lěng zhàn",煞住:"shā zhù",少男:"shào nán",管乐:"guǎn yuè",号啕:"háo táo",纳降:"nà xiáng",拥塞:"yōng sè",万乘:"wàn shèng",杆儿:"gǎn ér",葛藤:"gé téng",簿籍:"bù jí",皮夹:"pí jiā",校准:"jiào zhǔn",允当:"yǔn dàng",器量:"qì liàng",选调:"xuǎn diào",扮相:"bàn xiàng",干才:"gàn cái",基干:"jī gàn",割切:"gē qiē",国乐:"guó yuè",卡壳:"qiǎ ké",辟谷:"bì gǔ",磨房:"mò fáng",咿呀:"yī yā",芥末:"jiè mo",薄技:"bó jì",产假:"chǎn jià",诗兴:"shī xìng",重出:"chóng chū",转椅:"zhuàn yǐ",酌量:"zhuó liang",簿册:"bù cè",藏青:"zàng qīng",的士:"dī shì",调人:"diào rén",解元:"jiè yuán",茎干:"jīng gàn",巨量:"jù liàng",榔头:"láng tou",率真:"shuài zhēn",喷香:"pèn xiāng",锁钥:"suǒ yuè",虾蟆:"há má",相图:"xiàng tú",兴会:"xìng huì",灶头:"zào tóu",重婚:"chóng hūn",钻洞:"zuān dòng",忖度:"cǔn duó",党参:"dǎng shēn",调温:"diào wēn",杆塔:"gān tǎ",葛布:"gé bù",拱券:"gǒng xuàn",夹生:"jiā shēng",露馅:"lòu xiàn",恰切:"qià qiè",散见:"sǎn jiàn",哨卡:"shào qiǎ",烫发:"tàng fà",体量:"tǐ liàng",挺括:"tǐng kuò",系带:"jì dài",相士:"xiàng shì",羊圈:"yáng juàn",转矩:"zhuàn jǔ",吧台:"bā tái",苍术:"cāng zhú",菲薄:"fěi bó",蛤蚧:"gé jiè",蛤蜊:"gé lí",瓜蔓:"guā wàn",怪相:"guài xiàng",临帖:"lín tiè",女红:"nǚ gōng",刨床:"bào chuáng",翘楚:"qiáo chǔ",数九:"shǔ jiǔ",谈兴:"tán xìng",雄劲:"xióng jìng",扎染:"zā rǎn",遮荫:"zhē yīn",周正:"zhōu zhèng",赚头:"zhuàn tou",扒手:"pá shǒu",搀和:"chān huo",诚朴:"chéng pǔ",肚量:"dù liàng",干结:"gān jié",工尺:"gōng chě",家累:"jiā lěi",曲水:"qū shuǐ",沙参:"shā shēn",挑花:"tiǎo huā",阿门:"ā mén",背篓:"bēi lǒu",瘪三:"biē sān",裁处:"cái chǔ",创痛:"chuāng tòng",福相:"fú xiàng",更动:"gēng dòng",豪兴:"háo xìng",还阳:"huán yáng",还嘴:"huán zuǐ",借调:"jiè diào",卷云:"juǎn yún",流弹:"liú dàn",想头:"xiǎng tou",削价:"xuē jià",校阅:"jiào yuè",雅量:"yǎ liàng",别传:"bié zhuàn",薄酒:"bó jiǔ",春假:"chūn jià",发妻:"fà qī",哗哗:"huā huā",宽绰:"kuān chuo",了悟:"liǎo wù",切花:"qiē huā",审度:"shěn duó",应许:"yīng xǔ",转台:"zhuàn tái",仔猪:"zǐ zhū",裁量:"cái liáng",藏戏:"zàng xì",乘兴:"chéng xìng",绸缪:"chóu móu",摧折:"cuī zhé",调经:"tiáo jīng",调职:"diào zhí",缝缀:"féng zhuì",骨朵:"gū duǒ",核儿:"hú er",恒量:"héng liàng",还价:"huán jià",浑朴:"hún pǔ",苦差:"kǔ chāi",面糊:"miàn hù",煞车:"shā chē",省视:"xǐng shì",什锦:"shí jǐn",信差:"xìn chāi",余切:"yú qiē",攒眉:"cuán méi",炸糕:"zhá gāo",钻杆:"zuàn gǎn",扒灰:"pá huī",拌和:"bàn huò",长调:"cháng diào",大溜:"dà liù",抖搂:"dǒu lōu",飞转:"fēi zhuàn",干仗:"gàn zhàng",好胜:"hào shèng",画片:"huà piàn",搅混:"jiǎo hún",螺杆:"luó gǎn",木模:"mù mú",怒号:"nù háo",频数:"pín shù",无宁:"wú níng",遗少:"yí shào",邮差:"yóu chāi",占卦:"zhān guà",占星:"zhān xīng",重审:"chóng shěn",自量:"zì liàng",调防:"diào fáng",发廊:"fà láng",反调:"fǎn diào",缝子:"fèng zi",更夫:"gēng fū",骨子:"gǔ zi",光杆:"guāng gǎn",夹棍:"jiā gùn",居丧:"jū sāng",巨贾:"jù gǔ",看押:"kān yā",空转:"kōng zhuàn",量力:"liàng lì",炮烙:"páo luò",赔还:"péi huán",扑扇:"pū shān",散记:"sǎn jì",散件:"sǎn jiàn",删削:"shān xuē",射干:"shè gàn",条几:"tiáo jī",偷空:"tōu kòng",削壁:"xuē bì",校核:"jiào hé",阴干:"yīn gān",择菜:"zhái cài",重九:"chóng jiǔ",主调:"zhǔ diào",自禁:"zì jīn",吧唧:"bā jī",便溺:"biàn niào",词调:"cí diào",叨咕:"dáo gu",落枕:"lào zhěn",铺砌:"pū qì",刷白:"shuà bái",委靡:"wěi mǐ",系泊:"xì bó",相马:"xiàng mǎ",熨帖:"yù tiē",转筋:"zhuàn jīn",棒喝:"bàng hè",傧相:"bīn xiàng",镐头:"gǎo tóu",间苗:"jiàn miáo",乐池:"yuè chí",卖相:"mài xiàng",屏弃:"bǐng qì",铅弹:"qiān dàn",切变:"qiē biàn",请调:"qǐng diào",群氓:"qún méng",散板:"sǎn bǎn",省察:"xǐng chá",事假:"shì jià",纤绳:"qiàn shéng",重影:"chóng yǐng",耕种:"gēng zhòng",种地:"zhòng dì",种菜:"zhòng cài",栽种:"zāi zhòng",接种:"jiē zhòng",垦种:"kěn zhòng",种殖:"zhòng zhí",种瓜:"zhòng guā",种豆:"zhòng dòu",种树:"zhòng shù",睡着:"shuì zháo",笼子:"lóng zi",重启:"chóng qǐ",重整:"chóng zhěng",重弹:"chóng tán",重足:"chóng zú",重山:"chóng shān",重游:"chóng yóu",重峦:"chóng luán",爷爷:"yé ye",奶奶:"nǎi nai",姥爷:"lǎo ye",爸爸:"bà ba",妈妈:"mā ma",婶婶:"shěn shen",舅舅:"jiù jiu",姑姑:"gū gu",叔叔:"shū shu",姨夫:"yí fu",舅母:"jiù mu",姑父:"gū fu",姐夫:"jiě fu",婆婆:"pó po",公公:"gōng gong",舅子:"jiù zi",姐姐:"jiě jie",哥哥:"gē ge",妹妹:"mèi mei",妹夫:"mèi fu",姨子:"yí zi",宝宝:"bǎo bao",娃娃:"wá wa",孩子:"hái zi",日子:"rì zi",样子:"yàng zi",狮子:"shī zi",身子:"shēn zi",架子:"jià zi",嫂子:"sǎo zi",鼻子:"bí zi",亭子:"tíng zi",折子:"zhé zi",面子:"miàn zi",脖子:"bó zi",辈子:"bèi zi",帽子:"mào zi",拍子:"pāi zi",柱子:"zhù zi",辫子:"biàn zi",鸽子:"gē zi",房子:"fáng zi",丸子:"wán zi",摊子:"tān zi",牌子:"pái zi",胡子:"hú zi",鬼子:"guǐ zi",矮子:"ǎi zi",鸭子:"yā zi",小子:"xiǎo zi",影子:"yǐng zi",屋子:"wū zi",对子:"duì zi",点子:"diǎn zi",本子:"běn zi",种子:"zhǒng zi",儿子:"ér zi",兔子:"tù zi",骗子:"piàn zi",院子:"yuàn zi",猴子:"hóu zi",嗓子:"sǎng zi",侄子:"zhí zi",柿子:"shì zi",钳子:"qián zi",虱子:"shī zi",瓶子:"píng zi",豹子:"bào zi",筷子:"kuài zi",篮子:"lán zi",绳子:"shéng zi",嘴巴:"zuǐ ba",耳朵:"ěr duo",茄子:"qié zi",蚌埠:"bèng bù",崆峒:"kōng tóng",琵琶:"pí pa",蘑菇:"mó gu",葫芦:"hú lu",狐狸:"hú li",桔子:"jú zi",盒子:"hé zi",桌子:"zhuō zi",竹子:"zhú zi",师傅:"shī fu",衣服:"yī fu",袜子:"wà zi",杯子:"bēi zi",刺猬:"cì wei",麦子:"mài zi",队伍:"duì wu",知了:"zhī liǎo",鱼儿:"yú er",馄饨:"hún tun",灯笼:"dēng long",庄稼:"zhuāng jia",聪明:"cōng ming",镜子:"jìng zi",银子:"yín zi",盘子:"pán zi",了却:"liǎo què",力气:"lì qi",席子:"xí zi",林子:"lín zi",朝霞:"zhāo xiá",朝夕:"zhāo xī",朝气:"zhāo qì",翅膀:"chì bǎng",省长:"shěng zhǎng",臧否:"zāng pǐ",否泰:"pǐ tài",变得:"biàn de",丈夫:"zhàng fu",豆腐:"dòu fu",笔杆:"bǐ gǎn",枞阳:"zōng yáng",行人:"xíng rén",打着:"dǎ zhe",第一:"dì yī",万一:"wàn yī",之一:"zhī yī",得之:"dé zhī",统一:"tǒng yī",唯一:"wéi yī",专一:"zhuān yī",单一:"dān yī",如一:"rú yī",其一:"qí yī",合一:"hé yī",逐一:"zhú yī",周一:"zhōu yī",初一:"chū yī",研一:"yán yī",归一:"guī yī",假一:"jiǎ yī",闻一:"wén yī",了了:"liǎo liǎo",公了:"gōng liǎo",私了:"sī liǎo",一月:"yī yuè",一号:"yī hào",一级:"yī jí",一等:"yī děng",一哥:"yī gē",月一:"yuè yī",一一:"yī yī",二一:"èr yī",三一:"sān yī",四一:"sì yī",五一:"wǔ yī",六一:"liù yī",七一:"qī yī",八一:"bā yī",九一:"jiǔ yī","一〇":"yī líng",一零:"yī líng",一二:"yī èr",一三:"yī sān",一四:"yī sì",一五:"yī wǔ",一六:"yī liù",一七:"yī qī",一八:"yī bā",一九:"yī jiǔ",一又:"yī yòu",一饼:"yī bǐng",一楼:"yī lóu",为例:"wéi lì",为准:"wéi zhǔn",沧海:"cāng hǎi",难为:"nán wéi",责难:"zé nàn",患难:"huàn nàn",磨难:"mó nàn",大难:"dà nàn",刁难:"diāo nàn",殉难:"xùn nàn",落难:"luò nàn",罹难:"lí nàn",灾难:"zāi nàn",难民:"nàn mín",苦难:"kǔ nàn",危难:"wēi nàn",发难:"fā nàn",逃难:"táo nàn",避难:"bì nàn",遇难:"yù nàn",阻难:"zǔ nàn",厄难:"è nàn",徇难:"xùn nàn",空难:"kōng nàn",喜欢:"xǐ huan",朝朝:"zhāo zhāo",不行:"bù xíng",轧轧:"yà yà",弯曲:"wān qū",扭曲:"niǔ qū",曲直:"qū zhí",委曲:"wěi qū",酒曲:"jiǔ qū",曲径:"qū jìng",曲解:"qū jiě",歪曲:"wāi qū",曲线:"qū xiàn",曲阜:"qū fù",九曲:"jiǔ qū",曲折:"qū zhé",曲肱:"qū gōng",曲意:"qū yì",仡佬:"gē lǎo"},bue=Object.keys(JS).map(e=>({zh:e,pinyin:JS[e],probability:2e-8,length:2,priority:yl.Normal,dict:Symbol("dict2")})),XS={为什么:"wèi shén me",实际上:"shí jì shang",检察长:"jiǎn chá zhǎng",干什么:"gàn shén me",这会儿:"zhè huì er",尽可能:"jǐn kě néng",董事长:"dǒng shì zhǎng",了不起:"liǎo bù qǐ",参谋长:"cān móu zhǎng",朝鲜族:"cháo xiǎn zú",海内外:"hǎi nèi wài",禁不住:"jīn bú zhù",柏拉图:"bó lā tú",不在乎:"bú zài hu",洛杉矶:"luò shān jī",有点儿:"yǒu diǎn er",迫击炮:"pǎi jī pào",不得了:"bù dé liǎo",马尾松:"mǎ wěi sōng",运输量:"yùn shū liàng",发脾气:"fā pí qi",士大夫:"shì dà fū",鸭绿江:"yā lù jiāng",压根儿:"yà gēn er",对得起:"duì de qǐ",那会儿:"nà huì er",自个儿:"zì gě er",物理量:"wù lǐ liàng",怎么着:"zěn me zhāo",明晃晃:"míng huǎng huǎng",节假日:"jié jià rì",心里话:"xīn lǐ huà",发行量:"fā xíng liàng",兴冲冲:"xìng chōng chōng",分子量:"fēn zǐ liàng",国子监:"guó zǐ jiàn",老大难:"lǎo dà nán",党内外:"dǎng nèi wài",这么着:"zhè me zhāo",少奶奶:"shào nǎi nai",暗地里:"àn dì lǐ",更年期:"gēng nián qī",工作量:"gōng zuò liàng",背地里:"bèi dì lǐ",山里红:"shān li hóng",好好儿:"hǎo hāo er",交响乐:"jiāo xiǎng yuè",好意思:"hǎo yì si",吐谷浑:"tǔ yù hún",没意思:"méi yì si",理发师:"lǐ fà shī",塔什干:"tǎ shí gān",充其量:"chōng qí liàng",靠得住:"kào de zhù",车行道:"chē xíng dào",人行道:"rén xíng dào",中郎将:"zhōng láng jiàng",照明弹:"zhào míng dàn",烟幕弹:"yān mù dàn",没奈何:"mò nài hé",乱哄哄:"luàn hōng hōng",惠更斯:"huì gēng sī",载重量:"zài zhòng liàng",瞧得起:"qiáo de qǐ",纪传体:"jì zhuàn tǐ",阿房宫:"ē páng gōng",卷心菜:"juǎn xīn cài",戏班子:"xì bān zi",过得去:"guò de qù",花岗石:"huā gāng shí",外甥女:"wài sheng nǚ",团团转:"tuán tuán zhuàn",大堡礁:"dà bǎo jiāo",燃烧弹:"rán shāo dàn",劳什子:"láo shí zi",摇滚乐:"yáo gǔn yuè",夹竹桃:"jiā zhú táo",闹哄哄:"nào hōng hōng",三连冠:"sān lián guàn",重头戏:"zhòng tóu xì",二人转:"èr rén zhuàn",节骨眼:"jiē gǔ yǎn",知识面:"zhī shi miàn",护士长:"hù shi zhǎng",信号弹:"xìn hào dàn",干电池:"gān diàn chí",枪杆子:"qiāng gǎn zi",哭丧棒:"kū sāng bàng",鼻咽癌:"bí yān ái",瓦岗军:"wǎ gāng jūn",买得起:"mǎi de qǐ",癞蛤蟆:"lài há ma",脊梁骨:"jǐ liang gǔ",子母弹:"zǐ mǔ dàn",开小差:"kāi xiǎo chāi",女强人:"nǚ qiáng rén",英雄传:"yīng xióng zhuàn",爵士乐:"jué shì yuè",说笑话:"shuō xiào hua",碰头会:"pèng tóu huì",玻璃钢:"bō li gāng",曳光弹:"yè guāng dàn",少林拳:"shào lín quán",咏叹调:"yǒng tàn diào",少先队:"shào xiān duì",灵长目:"líng zhǎng mù",对着干:"duì zhe gàn",蒙蒙亮:"méng méng liàng",软骨头:"ruǎn gǔ tou",铺盖卷:"pū gài juǎn",和稀泥:"huò xī ní",背黑锅:"bēi hēi guō",红彤彤:"hóng tōng tōng",武侯祠:"wǔ hóu cí",打哆嗦:"dǎ duō suo",户口簿:"hù kǒu bù",马尾藻:"mǎ wěi zǎo",夜猫子:"yè māo zi",打手势:"dǎ shǒu shì",龙王爷:"lóng wáng yé",气头上:"qì tóu shang",糊涂虫:"hú tu chóng",笔杆子:"bǐ gǎn zi",占便宜:"zhàn pián yi",打主意:"dǎ zhǔ yì",多弹头:"duō dàn tóu",露一手:"lòu yì shǒu",堰塞湖:"yàn sè hú",保得住:"bǎo de zhù",趵突泉:"bào tū quán",奥得河:"ào de hé",司务长:"sī wù zhǎng",禁不起:"jīn bù qǐ",什刹海:"shí chà hǎi",莲花落:"lián huā lào",见世面:"jiàn shì miàn",豁出去:"huō chū qù",电位差:"diàn wèi chā",挨个儿:"āi gè er",那阵儿:"nà zhèn er",肺活量:"fèi huó liàng",大师傅:"dà shī fu",掷弹筒:"zhì dàn tǒng",打呼噜:"dǎ hū lu",广渠门:"ān qú mén",未见得:"wèi jiàn dé",大婶儿:"dà shěn er",谈得来:"tán de lái",脚丫子:"jiǎo yā zi",空包弹:"kōng bāo dàn",窝里斗:"wō li dòu",弹着点:"dàn zhuó diǎn",个头儿:"gè tóu er",看得起:"kàn de qǐ",糊涂账:"hú tu zhàng",大猩猩:"dà xīng xing",禁得起:"jīn de qǐ",法相宗:"fǎ xiàng zōng",可怜相:"kě lián xiàng",吃得下:"chī de xià",汉堡包:"hàn bǎo bāo",闹嚷嚷:"nào rāng rāng",数来宝:"shǔ lái bǎo",合得来:"hé de lái",干性油:"gān xìng yóu",闷葫芦:"mèn hú lu",呱呱叫:"guā guā jiào",西洋参:"xī yáng shēn",林荫道:"lín yīn dào",拉家常:"lā jiā cháng",卷铺盖:"juǎn pū gài",过得硬:"guò de yìng",飞将军:"fēi jiāng jūn",挑大梁:"tiǎo dà liáng",哈巴狗:"hǎ ba gǒu",过家家:"guò jiā jiā",催泪弹:"cuī lèi dàn",雨夹雪:"yǔ jiā xuě",敲竹杠:"qiāo zhú gàng",列车长:"liè chē zhǎng",华达呢:"huá dá ní",犯得着:"fàn de zháo",土疙瘩:"tǔ gē da",煞风景:"shā fēng jǐng",轻量级:"qīng liàng jí",羞答答:"xiū dā dā",石子儿:"shí zǐ er",达姆弹:"dá mǔ dàn",科教片:"kē jiào piān",侃大山:"kǎn dà shān",丁点儿:"dīng diǎn er",吃得消:"chī de xiāo",捋虎须:"luō hǔ xū",高丽参:"gāo lí shēn",众生相:"zhòng shēng xiàng",咽峡炎:"yān xiá yán",禁得住:"jīn de zhù",吃得开:"chī de kāi",柞丝绸:"zuò sī chóu",应声虫:"yìng shēng chóng",数得着:"shǔ de zháo",傻劲儿:"shǎ jìn er",铅玻璃:"qiān bō li",可的松:"kě dì sōng",划得来:"huá de lái",晕乎乎:"yūn hū hū",屎壳郎:"shǐ ke làng",尥蹶子:"liào juě zi",藏红花:"zàng hóng huā",闷罐车:"mèn guàn chē",卡脖子:"qiǎ bó zi",红澄澄:"hóng deng deng",赶得及:"gǎn de jí",当间儿:"dāng jiàn er",露马脚:"lòu mǎ jiǎo",鸡内金:"jī nèi jīn",犯得上:"fàn de shàng",钉齿耙:"dīng chǐ bà",饱和点:"bǎo hé diǎn",龙爪槐:"lóng zhǎo huái",喝倒彩:"hè dào cǎi",定冠词:"dìng guàn cí",担担面:"dàn dan miàn",吃得住:"chī de zhù",爪尖儿:"zhuǎ jiān er",支着儿:"zhī zhāo er",折跟头:"zhē gēn tou",阴着儿:"yīn zhāo er",烟卷儿:"yān juǎn er",宣传弹:"xuān chuán dàn",信皮儿:"xìn pí er",弦切角:"xián qiē jiǎo",缩砂密:"sù shā mì",说得来:"shuō de lái",水漂儿:"shuǐ piāo er",耍笔杆:"shuǎ bǐ gǎn",数得上:"shǔ de shàng",数不着:"shǔ bù zháo",数不清:"shǔ bù qīng",什件儿:"shí jiàn er",生死簿:"shēng sǐ bù",扇风机:"shān fēng jī",撒呓挣:"sā yì zheng",日记簿:"rì jì bù",热得快:"rè de kuài",亲家公:"qìng jia gōng",奇函数:"jī hán shù",拍纸簿:"pāi zhǐ bù",努劲儿:"nǔ jìn er",泥娃娃:"ní wá wa",内切圆:"nèi qiē yuán",哪会儿:"nǎ huì er",闷头儿:"mēn tóu er",没谱儿:"méi pǔ er",铆劲儿:"mǎo jìn er",溜肩膀:"liū jiān bǎng",了望台:"liào wàng tái",老来少:"lǎo lái shào",坤角儿:"kūn jué er",考勤簿:"kǎo qín bù",卷笔刀:"juǎn bǐ dāo",进给量:"jìn jǐ liàng",划不来:"huá bù lái",汗褂儿:"hàn guà er",鼓囊囊:"gǔ nāng nāng",够劲儿:"gòu jìn er",公切线:"gōng qiē xiàn",搁得住:"gé de zhù",赶浪头:"gǎn làng tóu",赶得上:"gǎn de shàng",干酵母:"gān jiào mǔ",嘎渣儿:"gā zhā er",嘎嘣脆:"gā bēng cuì",对得住:"duì de zhù",逗闷子:"dòu mèn zi",顶呱呱:"dǐng guā guā",滴溜儿:"dī liù er",大轴子:"dà zhòu zi",打板子:"dǎ bǎn zi",寸劲儿:"cùn jìn er",醋劲儿:"cù jìn er",揣手儿:"chuāi shǒu er",冲劲儿:"chòng jìn er",吃得来:"chī de lái",不更事:"bù gēng shì",奔头儿:"bèn tou er",百夫长:"bǎi fū zhǎng",娃娃亲:"wá wa qīn",死劲儿:"sǐ jìn er",骨朵儿:"gū duǒ er",功劳簿:"gōng láo bù",都江堰:"dū jiāng yàn",一担水:"yí dàn shuǐ",否极泰:"pǐ jí tài",泰来否:"tài lái pǐ",咳特灵:"ké tè líng",开户行:"kāi hù háng",郦食其:"lì yì jī",花事了:"huā shì liǎo",一更更:"yì gēng gēng",一重山:"yì chóng shān",风一更:"fēng yì gēng",雪一更:"xuě yì gēng",归一码:"guī yì mǎ",星期一:"xīng qī yī",礼拜一:"lǐ bài yī",一季度:"yī jì dù",一月一:"yī yuè yī",一字马:"yī zì mǎ",一是一:"yī shì yī",一次方:"yī cì fāng",一阳指:"yī yáng zhǐ",一字决:"yī zì jué",一年级:"yī nián jí",一不做:"yī bú zuò",屈戌儿:"qū qu ér",难为水:"nán wéi shuǐ",难为情:"nán wéi qíng",行一行:"xíng yì háng",别别的:"biè bié de",干哪行:"gàn nǎ háng",干一行:"gàn yì háng",曲别针:"qū bié zhēn"},Aue=Object.keys(XS).map(e=>({zh:e,pinyin:XS[e],probability:2e-8,length:3,priority:yl.Normal,dict:Symbol("dict3")})),e_={成吉思汗:"chéng jí sī hán",四通八达:"sì tōng bā dá",一模一样:"yì mú yí yàng",青藏高原:"qīng zàng gāo yuán",阿弥陀佛:"ē mí tuó fó",解放思想:"jiè fàng sī xiǎng",所作所为:"suǒ zuò suǒ wéi",迷迷糊糊:"mí mí hu hū",荷枪实弹:"hè qiāng shí dàn",兴高采烈:"xìng gāo cǎi liè",无能为力:"wú néng wéi lì",布鲁塞尔:"bù lǔ sài ěr",为所欲为:"wéi suǒ yù wéi",克什米尔:"kè shí mǐ ěr",没完没了:"méi wán méi liǎo",不为人知:"bù wéi rén zhī",结结巴巴:"jiē jiē bā bā",前仆后继:"qián pū hòu jì",铺天盖地:"pū tiān gài dì",直截了当:"zhí jié liǎo dàng",供不应求:"gōng bú yìng qiú",御史大夫:"yù shǐ dà fū",不为瓦全:"bù wéi wǎ quán",不可收拾:"bù kě shōu shi",胡作非为:"hú zuò fēi wéi",分毫不差:"fēn háo bú chà",模模糊糊:"mó mó hu hū",不足为奇:"bù zú wéi qí",悄无声息:"qiǎo wú shēng xī",了如指掌:"liǎo rú zhǐ zhǎng",深恶痛绝:"shēn wù tòng jué",高高兴兴:"gāo gāo xìng xìng",唉声叹气:"āi shēng tàn qì",汉藏语系:"hàn zàng yǔ xì",处心积虑:"chǔ xīn jī lǜ",泣不成声:"qì bù chéng shēng",半夜三更:"bàn yè sān gēng",失魂落魄:"shī hún luò pò",二十八宿:"èr shí bā xiù",转来转去:"zhuàn lái zhuàn qù",数以万计:"shǔ yǐ wàn jì",相依为命:"xiāng yī wéi mìng",恋恋不舍:"liàn liàn bù shě",屈指可数:"qū zhǐ kě shǔ",神出鬼没:"shén chū guǐ mò",结结实实:"jiē jiē shí shí",有的放矢:"yǒu dì fàng shǐ",叽哩咕噜:"jī lǐ gū lū",调兵遣将:"diào bīng qiǎn jiàng",载歌载舞:"zài gē zài wǔ",转危为安:"zhuǎn wēi wéi ān",踏踏实实:"tā tā shi shí",桑给巴尔:"sāng jǐ bā ěr",装模作样:"zhuāng mú zuò yàng",见义勇为:"jiàn yì yǒng wéi",相差无几:"xiāng chā wú jǐ",叹为观止:"tàn wéi guān zhǐ",闷闷不乐:"mèn mèn bú lè",喜怒哀乐:"xǐ nù āi lè",鲜为人知:"xiǎn wéi rén zhī",张牙舞爪:"zhāng yá wǔ zhǎo",为非作歹:"wéi fēi zuò dǎi",含糊其辞:"hán hú qí cí",疲于奔命:"pí yú bēn mìng",勉为其难:"miǎn wéi qí nán",依依不舍:"yī yī bù shě",顶头上司:"dǐng tóu shàng si",不着边际:"bù zhuó biān jì",大模大样:"dà mú dà yàng",寻欢作乐:"xún huān zuò lè",一走了之:"yì zǒu liǎo zhī",字里行间:"zì lǐ háng jiān",含含糊糊:"hán hán hu hū",恰如其分:"qià rú qí fèn",破涕为笑:"pò tì wéi xiào",深更半夜:"shēn gēng bàn yè",千差万别:"qiān chā wàn bié",数不胜数:"shǔ bú shèng shǔ",据为己有:"jù wéi jǐ yǒu",天旋地转:"tiān xuán dì zhuàn",养尊处优:"yǎng zūn chǔ yōu",玻璃纤维:"bō li xiān wéi",吵吵闹闹:"chāo chao nào nào",晕头转向:"yūn tóu zhuàn xiàng",土生土长:"tǔ shēng tǔ zhǎng",宁死不屈:"nìng sǐ bù qū",不省人事:"bù xǐng rén shì",尽力而为:"jìn lì ér wéi",精明强干:"jīng míng qiáng gàn",唠唠叨叨:"láo lao dāo dāo",叽叽喳喳:"jī ji zhā zhā",功不可没:"gōng bù kě mò",锲而不舍:"qiè ér bù shě",排忧解难:"pái yōu jiě nàn",稀里糊涂:"xī li hú tú",各有所长:"gè yǒu suǒ cháng",的的确确:"dí dí què què",哄堂大笑:"hōng táng dà xiào",听而不闻:"tīng ér bù wén",刀耕火种:"dāo gēng huǒ zhòng",内分泌腺:"nèi fèn mì xiàn",化险为夷:"huà xiǎn wéi yí",百发百中:"bǎi fā bǎi zhòng",重见天日:"chóng jiàn tiān rì",反败为胜:"fǎn bài wéi shèng",一了百了:"yì liǎo bǎi liǎo",大大咧咧:"dà da liē liē",心急火燎:"xīn jí huǒ liǎo",粗心大意:"cū xīn dà yi",鸡皮疙瘩:"jī pí gē da",夷为平地:"yí wéi píng dì",日积月累:"rì jī yuè lěi",设身处地:"shè shēn chǔ dì",投其所好:"tóu qí suǒ hào",间不容发:"jiān bù róng fà",人满为患:"rén mǎn wéi huàn",穷追不舍:"qióng zhuī bù shě",为时已晚:"wéi shí yǐ wǎn",如数家珍:"rú shǔ jiā zhēn",心里有数:"xīn lǐ yǒu shù",以牙还牙:"yǐ yá huán yá",神不守舍:"shén bù shǒu shě",孟什维克:"mèng shí wéi kè",各自为战:"gè zì wéi zhàn",怨声载道:"yuàn shēng zài dào",救苦救难:"jiù kǔ jiù nàn",好好先生:"hǎo hǎo xiān sheng",怪模怪样:"guài mú guài yàng",抛头露面:"pāo tóu lù miàn",游手好闲:"yóu shǒu hào xián",无所不为:"wú suǒ bù wéi",调虎离山:"diào hǔ lí shān",步步为营:"bù bù wéi yíng",好大喜功:"hào dà xǐ gōng",众矢之的:"zhòng shǐ zhī dì",长生不死:"cháng shēng bù sǐ",蔚为壮观:"wèi wéi zhuàng guān",不可胜数:"bù kě shèng shǔ",鬼使神差:"guǐ shǐ shén chāi",洁身自好:"jié shēn zì hào",敢作敢为:"gǎn zuò gǎn wéi",茅塞顿开:"máo sè dùn kāi",走马换将:"zǒu mǎ huàn jiàng",为时过早:"wéi shí guò zǎo",为人师表:"wéi rén shī biǎo",阴差阳错:"yīn chā yáng cuò",油腔滑调:"yóu qiāng huá diào",重蹈覆辙:"chóng dǎo fù zhé",骂骂咧咧:"mà ma liē liē",絮絮叨叨:"xù xù dāo dāo",如履薄冰:"rú lǚ bó bīng",损兵折将:"sǔn bīng zhé jiàng",拐弯抹角:"guǎi wān mò jiǎo",像模像样:"xiàng mú xiàng yàng",供过于求:"gōng guò yú qiú",开花结果:"kāi huā jiē guǒ",仔仔细细:"zǐ zǐ xì xì",川藏公路:"chuān zàng gōng lù",河北梆子:"hé běi bāng zi",长年累月:"cháng nián lěi yuè",正儿八经:"zhèng er bā jīng",不识抬举:"bù shí tái ju",重振旗鼓:"chóng zhèn qí gǔ",气息奄奄:"qì xī yān yān",紧追不舍:"jǐn zhuī bù shě",服服帖帖:"fú fu tiē tiē",强词夺理:"qiǎng cí duó lǐ",噼里啪啦:"pī li pā lā",人才济济:"rén cái jǐ jǐ",发人深省:"fā rén shēn xǐng",不足为凭:"bù zú wéi píng",为富不仁:"wéi fù bù rén",连篇累牍:"lián piān lěi dú",呼天抢地:"hū tiān qiāng dì",落落大方:"luò luò dà fāng",自吹自擂:"zì chuī zì léi",乐善好施:"lè shàn hào shī",以攻为守:"yǐ gōng wéi shǒu",磨磨蹭蹭:"mó mó cèng cèng",削铁如泥:"xuē tiě rú ní",助纣为虐:"zhù zhòu wéi nüè",以退为进:"yǐ tuì wéi jìn",嘁嘁喳喳:"qī qī chā chā",枪林弹雨:"qiāng lín dàn yǔ",令人发指:"lìng rén fà zhǐ",转败为胜:"zhuǎn bài wéi shèng",转弯抹角:"zhuǎn wān mò jiǎo",在劫难逃:"zài jié nán táo",正当防卫:"zhèng dàng fáng wèi",不足为怪:"bù zú wéi guài",难兄难弟:"nàn xiōng nàn dì",咿咿呀呀:"yī yī yā yā",弹尽粮绝:"dàn jìn liáng jué",阿谀奉承:"ē yú fèng chéng",稀里哗啦:"xī li huā lā",返老还童:"fǎn lǎo huán tóng",好高骛远:"hào gāo wù yuǎn",鹿死谁手:"lù sǐ shéi shǒu",差强人意:"chā qiáng rén yì",大吹大擂:"dà chuī dà léi",成家立业:"chéng jiā lì yè",自怨自艾:"zì yuàn zì yì",负债累累:"fù zhài lěi lěi",古为今用:"gǔ wéi jīn yòng",入土为安:"rù tǔ wéi ān",下不为例:"xià bù wéi lì",一哄而上:"yì hōng ér shàng",没头苍蝇:"méi tóu cāng ying",天差地远:"tiān chā dì yuǎn",风卷残云:"fēng juǎn cán yún",多灾多难:"duō zāi duō nàn",乳臭未干:"rǔ xiù wèi gān",行家里手:"háng jiā lǐ shǒu",狼狈为奸:"láng bèi wéi jiān",处变不惊:"chǔ biàn bù jīng",一唱一和:"yí chàng yí hè",一念之差:"yí niàn zhī chā",金蝉脱壳:"jīn chán tuō qiào",滴滴答答:"dī dī dā dā",硕果累累:"shuò guǒ léi léi",好整以暇:"hào zhěng yǐ xiá",红得发紫:"hóng de fā zǐ",传为美谈:"chuán wéi měi tán",富商大贾:"fù shāng dà gǔ",四海为家:"sì hǎi wéi jiā",了若指掌:"liǎo ruò zhǐ zhǎng",大有可为:"dà yǒu kě wéi",出头露面:"chū tóu lù miàn",鼓鼓囊囊:"gǔ gu nāng nāng",窗明几净:"chuāng míng jī jìng",泰然处之:"tài rán chǔ zhī",怒发冲冠:"nù fà chōng guān",有机玻璃:"yǒu jī bō li",骨头架子:"gǔ tou jià zi",义薄云天:"yì bó yún tiān",一丁点儿:"yī dīng diǎn er",时来运转:"shí lái yùn zhuǎn",陈词滥调:"chén cí làn diào",化整为零:"huà zhěng wéi líng",火烧火燎:"huǒ shāo huǒ liǎo",干脆利索:"gàn cuì lì suǒ",吊儿郎当:"diào er láng dāng",广种薄收:"guǎng zhòng bó shōu",种瓜得瓜:"zhòng guā dé guā",种豆得豆:"zhòng dòu dé dòu",难舍难分:"nán shě nán fēn",歃血为盟:"shà xuè wéi méng",奋发有为:"fèn fā yǒu wéi",阴错阳差:"yīn cuò yáng chā",东躲西藏:"dōng duǒ xī cáng",烟熏火燎:"yān xūn huǒ liǎo",钻牛角尖:"zuān niú jiǎo jiān",乔装打扮:"qiáo zhuāng dǎ bàn",改弦更张:"gǎi xián gēng zhāng",河南梆子:"hé nán bāng zi",好吃懒做:"hào chī lǎn zuò",何乐不为:"hé lè bù wéi",大出风头:"dà chū fēng tóu",攻城掠地:"gōng chéng lüè dì",漂漂亮亮:"piào piào liang liang",折衷主义:"zhé zhōng zhǔ yì",大马哈鱼:"dà mǎ hǎ yú",绿树成荫:"lǜ shù chéng yīn",率先垂范:"shuài xiān chuí fàn",家长里短:"jiā cháng lǐ duǎn",宽大为怀:"kuān dà wéi huái",左膀右臂:"zuǒ bǎng yòu bì",一笑了之:"yí xiào liǎo zhī",天下为公:"tiān xià wéi gōng",还我河山:"huán wǒ hé shān",何足为奇:"hé zú wéi qí",好自为之:"hǎo zì wéi zhī",风姿绰约:"fēng zī chuò yuē",大雨滂沱:"dà yǔ pāng tuó",传为佳话:"chuán wéi jiā huà",吃里扒外:"chī lǐ pá wài",重操旧业:"chóng cāo jiù yè",小家子气:"xiǎo jiā zi qì",少不更事:"shào bù gēng shì",难分难舍:"nán fēn nán shě",添砖加瓦:"tiān zhuān jiā wǎ",是非分明:"shì fēi fēn míng",舍我其谁:"shě wǒ qí shuí",偏听偏信:"piān tīng piān xìn",量入为出:"liàng rù wéi chū",降龙伏虎:"xiáng lóng fú hǔ",钢化玻璃:"gāng huà bō li",正中下怀:"zhèng zhòng xià huái",以身许国:"yǐ shēn xǔ guó",一语中的:"yì yǔ zhòng dì",丧魂落魄:"sàng hún luò pò",三座大山:"sān zuò dà shān",济济一堂:"jǐ jǐ yì táng",好事之徒:"hào shì zhī tú",干净利索:"gàn jìng lì suǒ",出将入相:"chū jiàng rù xiàng",袅袅娜娜:"niǎo niǎo nuó nuó",狐狸尾巴:"hú li wěi ba",好逸恶劳:"hào yì wù láo",大而无当:"dà ér wú dàng",打马虎眼:"dǎ mǎ hu yǎn",板上钉钉:"bǎn shàng dìng dīng",吆五喝六:"yāo wǔ hè liù",虾兵蟹将:"xiā bīng xiè jiàng",水调歌头:"shuǐ diào gē tóu",数典忘祖:"shǔ diǎn wàng zǔ",人事不省:"rén shì bù xǐng",曲高和寡:"qǔ gāo hè guǎ",屡教不改:"lǚ jiào bù gǎi",互为因果:"hù wéi yīn guǒ",互为表里:"hù wéi biǎo lǐ",厚此薄彼:"hòu cǐ bó bǐ",过关斩将:"guò guān zhǎn jiàng",疙疙瘩瘩:"gē ge dā dā",大腹便便:"dà fù pián pián",走为上策:"zǒu wéi shàng cè",冤家对头:"yuān jia duì tóu",有隙可乘:"yǒu xì kě chèng",一鳞半爪:"yì lín bàn zhǎo",片言只语:"piàn yán zhǐ yǔ",开花结实:"kāi huā jié shí",经年累月:"jīng nián lěi yuè",含糊其词:"hán hú qí cí",寡廉鲜耻:"guǎ lián xiǎn chǐ",成年累月:"chéng nián lěi yuè",不徇私情:"bú xùn sī qíng",不当人子:"bù dāng rén zǐ",膀大腰圆:"bǎng dà yāo yuán",指腹为婚:"zhǐ fù wéi hūn",这么点儿:"zhè me diǎn er",意兴索然:"yì xīng suǒ rán",绣花枕头:"xiù huā zhěn tou",无的放矢:"wú dì fàng shǐ",望闻问切:"wàng wén wèn qiè",舍己为人:"shě jǐ wèi rén",穷年累月:"qióng nián lěi yuè",排难解纷:"pái nàn jiě fēn",处之泰然:"chǔ zhī tài rán",指鹿为马:"zhǐ lù wéi mǎ",危如累卵:"wēi rú lěi luǎn",天兵天将:"tiān bīng tiān jiàng",舍近求远:"shě jìn qiú yuǎn",南腔北调:"nán qiāng běi diào",苦中作乐:"kǔ zhōng zuò lè",厚积薄发:"hòu jī bó fā",臭味相投:"xiù wèi xiāng tóu",长幼有序:"zhǎng yòu yǒu xù",逼良为娼:"bī liáng wéi chāng",悲悲切切:"bēi bēi qiè qiē",败军之将:"bài jūn zhī jiàng",欺行霸市:"qī háng bà shì",削足适履:"xuē zú shì lǚ",先睹为快:"xiān dǔ wéi kuài",啼饥号寒:"tí jī háo hán",疏不间亲:"shū bú jiàn qīn",神差鬼使:"shén chāi guǐ shǐ",敲敲打打:"qiāo qiāo dǎ dǎ",平铺直叙:"píng pū zhí xù",没头没尾:"méi tóu mò wěi",寥寥可数:"liáo liáo kě shǔ",哼哈二将:"hēng hā èr jiàng",鹤发童颜:"hè fà tóng yán",各奔前程:"gè bèn qián chéng",弹无虚发:"dàn wú xū fā",大人先生:"dà rén xiān sheng",与民更始:"yǔ mín gēng shǐ",树碑立传:"shù bēi lì zhuàn",是非得失:"shì fēi dé shī",实逼处此:"shí bī chǔ cǐ",塞翁失马:"sài wēng shī mǎ",日薄西山:"rì bó xī shān",切身体会:"qiè shēn tǐ huì",片言只字:"piàn yán zhǐ zì",跑马卖解:"pǎo mǎ mài xiè",宁折不弯:"nìng zhé bù wān",零零散散:"líng líng sǎn sǎn",量体裁衣:"liàng tǐ cái yī",连中三元:"lián zhòng sān yuán",礼崩乐坏:"lǐ bēng yuè huài",不为已甚:"bù wéi yǐ shèn",转悲为喜:"zhuǎn bēi wéi xǐ",以眼还眼:"yǐ yǎn huán yǎn",蔚为大观:"wèi wéi dà guān",未为不可:"wèi wéi bù kě",童颜鹤发:"tóng yán hè fà",朋比为奸:"péng bǐ wéi jiān",莫此为甚:"mò cǐ wéi shèn",夹枪带棒:"jiā qiāng dài bàng",富商巨贾:"fù shāng jù jiǎ",淡然处之:"dàn rán chǔ zhī",箪食壶浆:"dān shí hú jiāng",创巨痛深:"chuāng jù tòng shēn",草长莺飞:"cǎo zhǎng yīng fēi",坐视不救:"zuò shī bú jiù",以己度人:"yǐ jǐ duó rén",随行就市:"suí háng jiù shì",文以载道:"wén yǐ zài dào",文不对题:"wén bú duì tí",铁板钉钉:"tiě bǎn dìng dīng",身体发肤:"shēn tǐ fà fū",缺吃少穿:"quē chī shǎo chuān",目无尊长:"mù wú zūn zhǎng",吉人天相:"jí rén tiān xiàng",毁家纾难:"huǐ jiā shū nàn",钢筋铁骨:"gāng jīn tiě gǔ",丢卒保车:"diū zú bǎo jū",丢三落四:"diū sān là sì",闭目塞听:"bì mù sè tīng",削尖脑袋:"xuē jiān nǎo dài",为非作恶:"wéi fēi zuò è",人才难得:"rén cái nán dé",情非得已:"qíng fēi dé yǐ",切中要害:"qiè zhòng yào hài",火急火燎:"huǒ jí huǒ liǎo",画地为牢:"huà dì wéi láo",好酒贪杯:"hào jiǔ tān bēi",长歌当哭:"cháng gē dàng kū",载沉载浮:"zài chén zài fú",遇难呈祥:"yù nàn chéng xiáng",榆木疙瘩:"yú mù gē da",以邻为壑:"yǐ lín wéi hè",洋为中用:"yáng wéi zhōng yòng",言为心声:"yán wéi xīn shēng",言必有中:"yán bì yǒu zhòng",图穷匕见:"tú qióng bǐ xiàn",滂沱大雨:"páng tuó dà yǔ",目不暇给:"mù bù xiá jǐ",量才录用:"liàng cái lù yòng",教学相长:"jiào xué xiāng zhǎng",悔不当初:"huǐ bù dāng chū",呼幺喝六:"hū yāo hè liù",不足为训:"bù zú wéi xùn",不拘形迹:"bù jū xíng jī",傍若无人:"páng ruò wú rén",罪责难逃:"zuì zé nán táo",自我吹嘘:"zì wǒ chuī xū",转祸为福:"zhuǎn huò wéi fú",勇冠三军:"yǒng guàn sān jūn",易地而处:"yì dì ér chǔ",卸磨杀驴:"xiè mò shā lǘ",玩儿不转:"wán ér bú zhuàn",天道好还:"tiān dào hǎo huán",身单力薄:"shēn dān lì bó",撒豆成兵:"sǎ dòu chéng bīng",片纸只字:"piàn zhǐ zhī zì",宁缺毋滥:"nìng quē wú làn",没没无闻:"mò mò wú wén",量力而为:"liàng lì ér wéi",历历可数:"lì lì kě shǔ",口碑载道:"kǒu bēi zài dào",君子好逑:"jūn zǐ hǎo qiú",好为人师:"hào wéi rén shī",豪商巨贾:"háo shāng jù jiǎ",各有所好:"gè yǒu suǒ hào",度德量力:"duó dé liàng lì",指天为誓:"zhǐ tiān wéi shì",逸兴遄飞:"yì xìng chuán fēi",心宽体胖:"xīn kuān tǐ pán",为德不卒:"wéi dé bù zú",天下为家:"tiān xià wéi jiā",视为畏途:"shì wéi wèi tú",三灾八难:"sān zāi bā nàn",沐猴而冠:"mù hóu ér guàn",哩哩啦啦:"lī li lā lā",见缝就钻:"jiàn fèng jiù zuān",夹层玻璃:"jiā céng bō li",急公好义:"jí gōng hào yì",积年累月:"jī nián lěi yuè",划地为牢:"huá dì wéi láo",更名改姓:"gēng míng gǎi xìng",奉为圭臬:"fèng wéi guī niè",多难兴邦:"duō nàn xīng bāng",不破不立:"bú pò bú lì",坐地自划:"zuò dì zì huá",坐不重席:"zuò bù chóng xí",坐不窥堂:"zuò bù kuī táng",作嫁衣裳:"zuò jià yī shang",左枝右梧:"zuǒ zhī yòu wú",左宜右有:"zuǒ yí yòu yǒu",钻头觅缝:"zuān tóu mì fèng",钻天打洞:"zuān tiān dǎ dòng",钻皮出羽:"zuān pí chū yǔ",钻火得冰:"zuān huǒ dé bīng",钻洞觅缝:"zuàn dòng mì féng",钻冰求火:"zuān bīng qiú huǒ",子为父隐:"zǐ wéi fù yǐn",擢发难数:"zhuó fà nán shǔ",着人先鞭:"zhuó rén xiān biān",斫雕为朴:"zhuó diāo wéi pǔ",锥处囊中:"zhuī chǔ náng zhōng",椎心饮泣:"chuí xīn yǐn qì",椎心泣血:"chuí xīn qì xuè",椎牛飨士:"chuí niú xiǎng shì",椎牛歃血:"chuí niú shà xuè",椎牛发冢:"chuí niú fà zhǒng",椎埋屠狗:"chuí mái tú gǒu",椎埋狗窃:"chuí mái gǒu qiè",壮发冲冠:"zhuàng fā chōng guàn",庄严宝相:"zhuāng yán bǎo xiàng",转愁为喜:"zhuǎn chóu wéi xǐ",转嗔为喜:"zhuǎn chēn wéi xǐ",拽巷啰街:"zhuài xiàng luó jiē",拽耙扶犁:"zhuāi pá fú lí",拽布拖麻:"zhuài bù tuō má",箸长碗短:"zhù cháng wǎn duǎn",铸剑为犁:"zhù jiàn wéi lí",杼柚其空:"zhù yòu qí kōng",杼柚空虚:"zhù yòu kōng xū",助天为虐:"zhù tiān wéi nüè",属垣有耳:"zhǔ yuán yǒu ěr",属毛离里:"zhǔ máo lí lǐ",属辞比事:"zhǔ cí bǐ shì",逐物不还:"zhú wù bù huán",铢量寸度:"zhū liáng cùn duó",铢两悉称:"zhū liǎng xī chèn",侏儒观戏:"zhū rú guān xì",朱轓皁盖:"zhū fān zào gài",昼度夜思:"zhòu duó yè sī",诪张为幻:"zhōu zhāng wéi huàn",重明继焰:"chóng míng jì yàn",众啄同音:"zhòng zhuó tóng yīn",众毛攒裘:"zhòng máo cuán qiú",众好众恶:"zhòng hào zhòng wù",擿埴索涂:"zhāi zhí suǒ tú",稚齿婑媠:"zhì chǐ wǒ tuó",至当不易:"zhì dàng bú yì",指皂为白:"zhǐ zào wéi bái",指雁为羹:"zhǐ yàn wéi gēng",指树为姓:"zhǐ shù wéi xìng",指山说磨:"zhǐ shān shuō mò",止戈为武:"zhǐ gē wéi wǔ",枝干相持:"zhī gàn xiāng chí",枝大于本:"zh dà yú běn",支吾其词:"zhī wú qí cí",正身率下:"zhèng shēn shuài xià",正冠李下:"zhèng guàn lǐ xià",整冠纳履:"zhěng guān nà lǚ",整躬率物:"zhěng gōng shuài wù",整顿干坤:"zhěng dùn gàn kūn",针头削铁:"zhēn tóu xuē tiě",贞松劲柏:"zhēn sōng jìng bǎi",赭衣塞路:"zhě yī sè lù",折箭为誓:"shé jiàn wéi shì",折而族之:"zhé ér zú zhī",昭德塞违:"zhāo dé sè wéi",章句小儒:"zhāng jù xiǎo rú",湛恩汪濊:"zhàn ēn wāng huì",占风望气:"zhān fēng wàng qì",斩将搴旗:"zhǎn jiàng qiān qí",曾母投杼:"zēng mǔ tóu zhù",曾参杀人:"zēng shēn shā rén",造谣中伤:"zào yáo zhòng shāng",早占勿药:"zǎo zhān wù yào",凿龟数策:"záo guī shǔ cè",攒三聚五:"cuán sān jù wǔ",攒眉蹙额:"cuán mei cù é",攒零合整:"cuán líng hé zhěng",攒锋聚镝:"cuán fēng jù dí",载笑载言:"zài xiào zài yán",载酒问字:"zài jiǔ wèn zì",殒身不恤:"yǔn shēn bú xù",云舒霞卷:"yún shū xiá juǎn",月中折桂:"yuè zhōng shé guì",月落参横:"yuè luò shēn héng",鬻驽窃价:"yù nú qiè jià",鬻鸡为凤:"yù jī wéi fèng",遇难成祥:"yù nàn chéng xiáng",郁郁累累:"yù yù lěi lěi",玉卮无当:"yù zhī wú dàng",语笑喧阗:"yǔ xiào xuān tián",与世沉浮:"yǔ shì chén fú",与时消息:"yǔ shí xiāo xi",逾墙钻隙:"yú qiáng zuān xì",渔夺侵牟:"yú duó qīn móu",杅穿皮蠹:"yú chuān pí dù",余勇可贾:"yú yǒng kě gǔ",予智予雄:"yú zhì yú xióng",予取予求:"yú qǔ yú qiú",于家为国:"yú jiā wéi guó",有借无还:"yǒu jiè wú huán",有加无已:"yǒu jiā wú yǐ",有国难投:"yǒu guó nán tóu",游必有方:"yóu bì yǒu fāng",油干灯尽:"yóu gàn dēng jìn",尤云殢雨:"yóu yún tì yǔ",庸中皦皦:"yōng zhōng jiǎo jiǎo",郢书燕说:"yǐng shū yān shuō",营蝇斐锦:"yíng yíng fēi jǐn",鹰心雁爪:"yīng xīn yàn zhǎo",莺吟燕儛:"yīng yín yàn wǔ",应天顺时:"yīng tiān shùn shí",印累绶若:"yìn léi shòu ruò",隐占身体:"yǐn zhàn shēn tǐ",饮犊上流:"yìn dú shàng liú",引绳切墨:"yǐn shéng qiē mò",龈齿弹舌:"yín chǐ dàn shé",因缘为市:"yīn yuán wéi shì",因树为屋:"yīn shù wéi wū",溢美溢恶:"yì měi yì wù",抑塞磊落:"yì sè lěi luò",倚闾望切:"yǐ lǘ wàng qiē",以意为之:"yǐ yì wéi zhī",以言为讳:"yǐ yán wéi huì",以疏间亲:"yǐ shū jiàn qīn",以水济水:"yǐ shuǐ jǐ shuǐ",以书为御:"yǐ shū wéi yù",以守为攻:"yǐ shǒu wéi gōng",以升量石:"yǐ shēng liáng dàn",以慎为键:"yǐ shèn wéi jiàn",以筌为鱼:"yǐ quán wéi yú",以利累形:"yǐ lì lěi xíng",以毁为罚:"yǐ huǐ wéi fá",以黑为白:"yǐ hēi wéi bái",以规为瑱:"yǐ guī wéi tiàn",以古为鉴:"yǐ gǔ wéi jiàn",以宫笑角:"yǐ gōng xiào jué",以法为教:"yǐ fǎ wéi jiào",以大恶细:"yǐ dà wù xì",遗世忘累:"yí shì wàng lěi",遗寝载怀:"yí qǐn zài huái",移的就箭:"yí dì jiù jiàn",依头缕当:"yī tóu lǚ dàng",衣租食税:"yì zū shí shuì",衣轻乘肥:"yì qīng chéng féi",衣裳之会:"yī shang zhī huì",衣单食薄:"yī dān shí bó",一还一报:"yì huán yí bào",叶公好龙:"yè gōng hào lóng",野调无腔:"yě diào wú qiāng",瑶池女使:"yáo chí nǚ shǐ",幺麽小丑:"yāo mó xiǎo chǒu",养精畜锐:"yǎng jīng xù ruì",卬首信眉:"áng shǒu shēn méi",洋洋纚纚:"yáng yáng sǎ sǎ",羊羔美酒:"yáng gāo měi jiǔ",扬风扢雅:"yáng fēng jié yǎ",燕昭市骏:"yān zhāo shì jùn",燕昭好马:"yān zhāo hǎo mǎ",燕石妄珍:"yān shí wàng zhēn",燕骏千金:"yān jùn qiān jīn",燕金募秀:"yān jīn mù xiù",燕驾越毂:"yān jià yuè gǔ",燕歌赵舞:"yān gē zhào wǔ",燕岱之石:"yān dài zhī shí",燕处危巢:"yàn chǔ wēi cháo",掞藻飞声:"shàn zǎo fēi shēng",偃革为轩:"yǎn gé wéi xuān",妍蚩好恶:"yán chī hǎo è",压良为贱:"yā liáng wéi jiàn",搀行夺市:"chān háng duó shì",泣数行下:"qì shù háng xià",当行出色:"dāng háng chū sè",秀出班行:"xiù chū bān háng",儿女成行:"ér nǚ chéng háng",大行大市:"dà háng dà shì",寻行数墨:"xún háng shǔ mò",埙篪相和:"xūn chí xiāng hè",血债累累:"xuè zhài lěi lěi",炫玉贾石:"xuàn yù gǔ shí",炫石为玉:"xuàn shí wéi yù",悬石程书:"xuán dàn chéng shū",悬狟素飡:"xuán huán sù cān",悬龟系鱼:"xuán guī xì yú",揎拳捋袖:"xuān quán luō xiù",轩鹤冠猴:"xuān hè guàn hóu",畜妻养子:"xù qī yǎng zǐ",羞人答答:"xiū rén dā dā",修鳞养爪:"xiū lín yǎng zhǎo",熊据虎跱:"xióng jù hǔ zhì",兄死弟及:"xiōng sǐ dì jí",腥闻在上:"xīng wén zài shàng",兴文匽武:"xīng wén yǎn wǔ",兴观群怨:"xìng guān qún yuàn",兴高彩烈:"xìng gāo cǎi liè",心手相应:"xīn shǒu xiāng yìng",心口相应:"xīn kǒu xiāng yīng",挟势弄权:"xié shì nòng quán",胁肩累足:"xié jiān lěi zú",校短量长:"jiào duǎn liáng cháng",小眼薄皮:"xiǎo yǎn bó pí",硝云弹雨:"xiāo yún dàn yǔ",鸮鸣鼠暴:"xiāo míng shǔ bào",削株掘根:"xuē zhū jué gēn",削铁无声:"xuē tiě wú shēng",削职为民:"xuē zhí wéi mín",削木为吏:"xuē mù wéi lì",想望风褱:"xiǎng wàng fēng huái",香培玉琢:"xiang pei yu zhuó",相鼠有皮:"xiàng shǔ yǒu pí",相时而动:"xiàng shí ér dòng",相切相磋:"xiāng qiē xiāng cuō",相女配夫:"xiàng nǚ pèi fū",相门有相:"xiàng mén yǒu xiàng",挦章撦句:"xián zhāng chě jù",先我着鞭:"xiān wǒ zhuó biān",习焉不察:"xí yān bù chá",歙漆阿胶:"shè qī ē jiāo",晰毛辨发:"xī máo biàn fà",悉索薄赋:"xī suǒ bó fù",雾鳞云爪:"wù lín yún zhǎo",物稀为贵:"wù xī wéi guì",碔砆混玉:"wǔ fū hùn yù",武断专横:"wǔ duàn zhuān héng",五石六鹢:"wǔ shí liù yì",五色相宣:"wǔ sè xiāng xuān",五侯七贵:"wǔ hóu qī guì",五侯蜡烛:"wǔ hòu là zhú",五羖大夫:"wǔ gǔ dà fū",吾自有处:"wú zì yǒu chǔ",无下箸处:"wú xià zhù chǔ",无伤无臭:"wú shāng wú xiù",无能为役:"wú néng wéi yì",无寇暴死:"wú kòu bào sǐ",无孔不钻:"wú kǒng bú zuàn",无间可乘:"wú jiān kě chéng",无间冬夏:"wú jiān dōng xià",无恶不为:"wú è bù wéi",无动为大:"wú dòng wéi dà",诬良为盗:"wū liáng wéi dào",握拳透爪:"wò quán tòu zhǎo",文武差事:"wén wǔ chāi shì",委委佗佗:"wēi wēi tuó tuó",惟日为岁:"wéi rì wéi suì",帷薄不修:"wéi bó bù xiū",为善最乐:"wéi shàn zuì lè",为山止篑:"wéi shān zhǐ kuì",为仁不富:"wéi rén bú fù",为裘为箕:"wéi qiú wéi jī",为民父母:"wéi mín fù mǔ",为虺弗摧:"wéi huǐ fú cuī",为好成歉:"wéi hǎo chéng qiàn",为鬼为蜮:"wéi guǐ wéi yù",望风响应:"wàng fēng xiǎng yīng",望尘僄声:"wàng chén piào shēng",往渚还汀:"wǎng zhǔ huán tīng",王贡弹冠:"wáng gòng dàn guàn",亡国大夫:"wáng guó dà fū",万贯家私:"wàn guàn jiā sī",晚食当肉:"wǎn shí dàng ròu",晚节不保:"wǎn jié bù bǎo",玩岁愒时:"wán suì kài shí",蛙蟆胜负:"wā má shèng fù",吞言咽理:"tūn yán yàn lǐ",颓垣断堑:"tuí yuán duàn qiàn",推干就湿:"tuī gàn jiù shī",剸繁决剧:"tuán fán jué jù",团头聚面:"tuán tóu jù miàn",兔丝燕麦:"tù sī yàn mài",兔头麞脑:"tù tóu zhāng nǎo",兔葵燕麦:"tù kuí yàn mài",吐哺握发:"tǔ bǔ wò fà",投传而去:"tóu zhuàn ér qù",头没杯案:"tóu mò bēi àn",头昏脑闷:"tóu hūn nǎo mèn",头会箕敛:"tóu kuài jī liǎn",头出头没:"tóu chū tóu mò",痛自创艾:"tòng zì chuāng yì",同恶相助:"tóng wù xiāng zhù",同恶相恤:"tóng wù xiāng xù",痌瘝在抱:"tōng guān zài bào",通文调武:"tōng wén diào wǔ",停留长智:"tíng liú zhǎng zhì",铁树开华:"tiě shù kāi huā",条贯部分:"tiáo guàn bù fēn",挑牙料唇:"tiǎo yá liào chún",挑么挑六:"tiāo yāo tiāo liù",挑唇料嘴:"tiǎo chún liào zuǐ",恬不为意:"tián bù wéi yì",恬不为怪:"tián bù wéi guài",天下为笼:"tiān xià wéi lóng",天台路迷:"tiān tái lù mí",天年不遂:"tiān nián bú suì",探囊胠箧:"tàn náng qū qiè",谭言微中:"tán yán wēi zhòng",谈言微中:"tán yán wēi zhòng",狧穅及米:"shì kāng jí mǐ",随物应机:"suí wù yīng jī",搜岩采干:"sōu yán cǎi gàn",宋斤鲁削:"sòng jīn lǔ xuē",松筠之节:"sōng yún zhī jié",四亭八当:"sì tíng bā dàng",四马攒蹄:"sì mǎ cuán tí",四不拗六:"sì bú niù liù",思所逐之:"sī suǒ zhú zhī",丝恩发怨:"sī ēn fà yuàn",硕望宿德:"shuò wàng xiǔ dé",铄古切今:"shuò gǔ qiē jīn",顺风而呼:"shùn fēng ér hū",顺风吹火:"shùn fēng chuī huǒ",水中著盐:"shuǐ zhōng zhuó yán",双柑斗酒:"shuāng gān dǒu jiǔ",数米而炊:"shǔ mǐ ér chuī",数米量柴:"shǔ mǐ liáng chái",数理逻辑:"shù lǐ luó ji",数黑论黄:"shǔ hēi lùn huáng",数白论黄:"shǔ bái lùn huáng",束缊还妇:"shù yūn huán fù",束蒲为脯:"shù pú wéi pú",束椽为柱:"shù chuán wéi zhù",书缺有间:"shū quē yǒu jiàn",手足重茧:"shǒu zú chóng jiǎn",手足异处:"shǒu zú yì chǔ",手脚干净:"shǒu jiǎo gàn jìng",手不应心:"shǒu bù yīng xīn",螫手解腕:"shì shǒu jiě wàn",释知遗形:"shì zhī yí xíng",适时应务:"shì shí yīng wù",适情率意:"shì qíng shuài yì",适当其冲:"shì dāng qí chōng",视为知己:"shì wéi zhī jǐ",使羊将狼:"shǐ yáng jiàng láng",食为民天:"shí wéi mín tiān",拾掇无遗:"shí duō wú yí",实与有力:"shí yù yǒu lì",石英玻璃:"shí yīng bō li",石室金匮:"shí shì jīn guì",什袭珍藏:"shí xí zhēn cáng",什伍东西:"shí wǔ dōng xī",什围伍攻:"shí wéi wǔ gōng",十魔九难:"shí mó jiǔ nàn",诗书发冢:"shī shū fà zhǒng",虱处裈中:"shī chǔ kūn zhōng",师直为壮:"shī zhí wéi zhuàng",尸居龙见:"shī jū lóng xiàn",圣经贤传:"shèng jīng xián zhuàn",圣君贤相:"shèng jūn xián xiàng",生拖死拽:"shēng tuō sǐ zhuài",审己度人:"shěn jǐ duó rén",神武挂冠:"shén wǔ guà guàn",神龙失埶:"shén lóng shī shì",深文曲折:"shēn wén qǔ shé",深厉浅揭:"shēn lì qiǎn qì",深谷为陵:"shēn gǔ wéi líng",深恶痛疾:"shēn wù tòng jí",深仇宿怨:"shēn chóu xiǔ yuàn",舍己为公:"shě jǐ wèi gōng",舍短取长:"shě duǎn qǔ cháng",舍策追羊:"shě cè zhuī yáng",蛇蝎为心:"shé xiē wéi xīn",少成若性:"shào chéng ruò xìng",上当学乖:"shàng dàng xué guāi",赏不当功:"shǎng bù dāng gōng",善自为谋:"shàn zì wéi móu",善为说辞:"shàn wéi shuō cí",善善恶恶:"shàn shàn wù è",善财难舍:"shàn cái nán shě",苫眼铺眉:"shān yǎn pū méi",讪牙闲嗑:"shàn yá xián kē",山阴乘兴:"shān yīn chéng xīng",山殽野湋:"shān yáo yě wéi",山溜穿石:"shān liù chuān shí",山节藻棁:"shān jié zǎo zhuō",杀鸡为黍:"shā jī wéi shǔ",色厉胆薄:"sè lì dǎn bó",桑荫未移:"sāng yīn wèi yí",桑荫不徙:"sāng yīn bù xǐ",桑土绸缪:"sāng tǔ chóu miù",桑户棬枢:"sāng hù juàn shū",三战三北:"sān zhàn sān běi",三瓦两舍:"sān wǎ liǎng shě",三人为众:"sān rén wèi zhòng",三差两错:"sān chā liǎng cuò",塞井焚舍:"sāi jǐng fén shě",洒心更始:"sǎ xīn gèng shǐ",洒扫应对:"sǎ sǎo yìng duì",软红香土:"ruǎn hóng xiāng tǔ",入吾彀中:"rù wú gòu zhōng",入铁主簿:"rù tiě zhǔ bù",入理切情:"rù lǐ qiē qíng",汝成人耶:"rǔ chéng rén yé",如水投石:"rú shuǐ tóu shí",如切如磋:"rú qiē rú cuō",如登春台:"rú dēng chūn tái",肉薄骨并:"ròu bó gǔ bìng",柔情绰态:"róu qíng chuò tài",戎马劻勷:"róng mǎ kuāng ráng",日中为市:"rì zhōng wéi shì",日月参辰:"rì yuè shēn chén",日省月修:"rì xǐng yuè xiū",日削月割:"rì xuē yuè gē",日省月试:"rì xǐng yuè shì",任达不拘:"rèn dá bù jū",人言藉藉:"rén yán jí jí",人模狗样:"rén mú gǒu yàng",人莫予毒:"rén mò yú dú",热熬翻饼:"rè áo fān bǐng",圈牢养物:"juàn láo yǎng wù",取予有节:"qǔ yǔ yǒu jié",诎要桡腘:"qū yāo ráo guó",穷形尽相:"qióng xíng jìn xiàng",情凄意切:"qíng qī yì qiè",情见势屈:"qíng xiàn shì qū",情见乎辞:"qíng xiàn hū cí",清都绛阙:"qīng dōu jiàng què",倾肠倒肚:"qīng cháng dào dǔ",青紫被体:"qīng zǐ pī tǐ",青林黑塞:"qīng lín hēi sài",螓首蛾眉:"qín shǒu é méi",琴瑟之好:"qín sè zhī hào",且住为佳:"qiě zhù wéi jiā",切树倒根:"qiē shù dǎo gēn",切理餍心:"qiē lǐ yàn xīn",切近的当:"qiē jìn de dāng",翘足引领:"qiáo zú yǐn lǐng",巧发奇中:"qiǎo fā qí zhòng",强嘴拗舌:"jiàng zuǐ niù shé",强直自遂:"qiáng zhí zì suí",强死强活:"qiǎng sǐ qiǎng huó",强食自爱:"qiǎng shí zì ài",强食靡角:"qiǎng shí mí jiǎo",强弓劲弩:"qiáng gōng jìng nǔ",强聒不舍:"qiǎng guō bù shě",强凫变鹤:"qiáng fú biàn hè",强而后可:"qiǎng ér hòu kě",强得易贫:"qiǎng dé yì pín",遣兴陶情:"qiǎn xìng táo qíng",牵羊担酒:"qiān yáng dān jiǔ",千了百当:"qiān liǎo bǎi dàng",泣下如雨:"qì xià rú yǔ",起偃为竖:"qǐ yǎn wéi shù",岂弟君子:"kǎi tì jūn zǐ",綦溪利跂:"qí xī lì qí",棋输先著:"qí shū xiān zhuó",齐王舍牛:"qí wáng shě niú",欺天诳地:"qī tiān kuáng dì",普天率土:"pǔ tiān shuài tǔ",铺胸纳地:"pū xiōng nà dì",铺锦列绣:"pū jǐn liè xiù",破家为国:"pò jiā wèi guó",破觚为圜:"pò gū wéi yuán",萍飘蓬转:"píng piāo péng zhuàn",帡天极地:"píng tiān jí dì",屏声息气:"bǐng shēng xī qì",凭几据杖:"píng jī jù zhàng",贫嘴薄舌:"pín zuǐ bó shé",片语只辞:"piàn yǔ zhī cí",披发文身:"pī fà wén shēn",烹龙炮凤:"pēng lóng páo fèng",炰鳖脍鲤:"fǒu biē kuài lǐ",庞眉皓发:"páng méi hào fà",攀花折柳:"pān huā zhé liǔ",攀蟾折桂:"pān chán shé guì",女大难留:"nǚ dà nán liú",弄玉吹箫:"nòng yù chuī xiāo",弄管调弦:"nòng guǎn tiáo xián",弄粉调朱:"nòng fěn diào zhū",浓抹淡妆:"nóng mò dàn zhuāng",捻土为香:"niǎn tǔ wéi xiāng",年谊世好:"nián yì shì hǎo",年华垂暮:"nián huá chuí mù",儗不于伦:"nǐ bù yú lún",泥而不滓:"ní ér bù zǐ",能者为师:"néng zhě wéi shī",能不称官:"néng bú chèn guān",挠直为曲:"náo zhí wéi qū",难进易退:"nán jìn yì tuì",难得糊涂:"nán dé hú tú",南蛮鴂舌:"nán mán jué shé",南贩北贾:"nán fàn běi gǔ",牧猪奴戏:"mù zhū nú xì",目眢心忳:"mù yuān xīn tún",目挑心招:"mù tiǎo xīn zhāo",目量意营:"mù liàng yì yíng",木头木脑:"mù tóu mù nǎo",木干鸟栖:"mù gàn niǎo qī",侔色揣称:"móu sè chuǎi chèn",莫予毒也:"mò yú dú yě",抹粉施脂:"mò fěn shī zhī",磨砻镌切:"mó lóng juān qiē",磨棱刓角:"mó léng wán jiǎo",摸门不着:"mō mén bù zháo",摸不着边:"mō bù zhuó biān",命中注定:"mìng zhōng zhù dìng",鸣鹤之应:"míng hè zhī yìng",明效大验:"míng xiào dà yàn",名我固当:"míng wǒ gù dāng",邈处欿视:"miǎo chǔ kǎn shì",黾穴鸲巢:"měng xué qú cháo",绵里薄材:"mián lǐ bó cái",靡有孑遗:"mǐ yǒu jié yí",靡衣偷食:"mǐ yī tōu shí",迷恋骸骨:"mí liàn hái gǔ",扪参历井:"mén shēn lì jǐng",门单户薄:"mén dān hù bó",昧旦晨兴:"mèi dàn chén xīng",冒名接脚:"mào míng jiē jiǎo",毛遂堕井:"máo suí duò jǐng",毛发倒竖:"máo fā dǎo shù",卖文为生:"mài wén wéi shēng",卖李钻核:"mài lǐ zuān hé",买椟还珠:"mǎi dú huán zhū",埋三怨四:"mán sān yuàn sì",马入华山:"mǎ rù huá shān",落魄江湖:"luò pò jiāng hú",落落难合:"luò luò nán hé",落草为寇:"luò cǎo wéi kòu",罗织构陷:"luó zhī gòu xiàn",鸾凤和鸣:"luán fèng hè míng",率由旧章:"shuài yóu jiù zhāng",率土同庆:"shuài tǔ tóng qìng",率兽食人:"shuài shòu shí rén",率土归心:"shuài tǔ guī xīn",率马以骥:"shuài mǎ yǐ jì",率尔成章:"shuài ěr chéng zhāng",鲁斤燕削:"lǔ jīn yàn xuē",漏尽更阑:"lòu jìn gēng lán",笼鸟槛猿:"lóng niǎo jiàn yuán",笼鸟池鱼:"lóng niǎo chí yú",龙游曲沼:"lóng yóu qū zhǎo",龙血玄黄:"lóng xuè xuán huáng",龙雕凤咀:"lóng diāo fèng jǔ",六尺之讬:"liù chǐ zhī tuō",令原之戚:"líng yuán zhī qī",令人捧腹:"lìng rén pěng fù",陵劲淬砺:"líng jìng cuì lì",临敌易将:"lín dí yì jiàng",裂裳衣疮:"liè shang yī chuāng",裂冠毁冕:"liè guàn huǐ miǎn",了无惧色:"liǎo wú jù sè",了身达命:"liǎo shēn dá mìng",了然无闻:"liǎo rán wú wén",了不可见:"liǎo bù kě jiàn",了不长进:"liǎo bù zhǎng jìn",燎发摧枯:"liǎo fà cuī kū",审时度势:"shěn shí duó shì",量小力微:"liàng xiǎo lì wēi",相时度力:"xiāng shí duó lì",量枘制凿:"liàng ruì zhì záo",量如江海:"liàng rú jiāng hǎi",量金买赋:"liàng jīn mǎi fù",量己审分:"liàng jǐ shěn fēn",敛骨吹魂:"liǎn gǔ chuī hún",詈夷为跖:"lì yí wéi zhí",利令志惛:"lì lìng zhì hūn",李广不侯:"lǐ guǎng bú hòu",礼为情貌:"lǐ wéi qíng mào",礼让为国:"lǐ ràng wéi guó",犁生骍角:"lí shēng xīng jiǎo",离本徼末:"lí běn jiǎo mò",楞眉横眼:"léng méi hèng yǎn",擂天倒地:"léi tiān dǎo dì",累足成步:"lěi zú chéng bù",累瓦结绳:"lěi wǎ jié shéng",累土至山:"lěi tǔ zhì shān",累土聚沙:"lěi tǔ jù shā",累卵之危:"lěi luǎn zhī wēi",累累如珠:"lěi lěi rú zhū",累块积苏:"lěi kuài jī sū",乐山乐水:"lè shān lè shuǐ",潦原浸天:"lǎo yuán jìn tiān",老师宿儒:"lǎo shī xiǔ rú",牢什古子:"láo shí gǔ zi",琅嬛福地:"láng huán fú dì",揆情度理:"kuí qíng duó lǐ",旷日累时:"kuàng rì lěi shí",匡救弥缝:"kuāng jiù mí fèng",枯树生华:"kū shù shēng huā",口轻舌薄:"kǒu qīng shé bó",口角生风:"kǒu jiǎo shēng fēng",口角春风:"kǒu jiǎo chūn fēng",口角风情:"kǒu jiǎo fēng qíng",口干舌焦:"kǒu gān shé jiāo",口腹之累:"kǒu fù zhī lěi",空腹便便:"kōng fù pián pián",嗑牙料嘴:"kē yá liào zuǐ",刻木为鹄:"kè mù wéi hú",咳珠唾玉:"ké zhū tuò yù",咳唾成珠:"ké tuò chéng zhū",抗颜为师:"kàng yán wéi shī",开华结果:"kāi huā jié guǒ",峻阪盐车:"jùn bǎn yán chē",嚼铁咀金:"jiáo tiě jǔ jīn",嚼墨喷纸:"jué mò pēn zhǐ",倔头强脑:"juè tóu jiàng nǎo",倔头倔脑:"juè tóu juè nǎo",倦鸟知还:"juàn niǎo zhī huán",卷席而葬:"juǎn xí ér zàng",卷甲倍道:"juǎn jiǎ bèi dào",聚米为山:"jù mǐ wéi shān",举手相庆:"jǔ shǒu xiāng qìng",举世混浊:"jǔ shì hún zhuó",鞠为茂草:"jū wéi mào cǎo",拘神遣将:"jū shén qiǎn jiàng",居下讪上:"jū xià shàn shàng",久要不忘:"jiǔ yāo bú wàng",九转功成:"jiǔ zhuǎn gōng chéng",九蒸三熯:"jiǔ zhēng sān hàn",敬业乐群:"jìng yè lè qún",井底虾蟆:"jǐng dǐ xiā má",旌旗卷舒:"jīng qí juǎn shū",荆棘载途:"jīng jí zài tú",禁舍开塞:"jìn shě kāi sāi",祲威盛容:"jìn wēi shèng róng",进退消长:"jìn tuì xiāo cháng",进退应矩:"jìn tuì yīng jǔ",进退触籓:"jìn tuì chù fān",进退跋疐:"jìn tuì bá zhì",尽多尽少:"jǐn duō jǐn shǎo",锦囊还矢:"jǐn náng huán shǐ",矜己自饰:"jīn jǐ zì shì",矜功负气:"jīn gōng fù qì",津关险塞:"jīn guān xiǎn sài",金吾不禁:"jīn wú bú jìn",金翅擘海:"jīn chì bāi hǎi",解衣衣人:"jiě yī yī rén",解人难得:"jiě rén nán dé",解铃系铃:"jiě líng xì líng",解发佯狂:"jiě fà yáng kuáng",诘屈磝碻:"jié qū áo qiāo",教猱升木:"jiāo náo shēng mù",较瘦量肥:"jiào shòu liàng féi",角立杰出:"jiǎo lì jié chū",焦沙烂石:"jiāo shā làn shí",骄儿騃女:"jiāo ér sì nǚ",浇风薄俗:"jiāo fēng bó sú",降妖捉怪:"xiáng yāo zhuō guài",将取固予:"jiāng qǔ gù yǔ",将门有将:"jiàng mén yǒu jiàng",将夺固与:"jiāng duó gù yǔ",槛花笼鹤:"jiàn huā lóng hè",鉴影度形:"jiàn yǐng duó xíng",渐不可长:"jiàn bù kě zhǎng",见素抱朴:"xiàn sù bào pǔ",见弃于人:"jiàn qì yú rén",简丝数米:"jiǎn sī shǔ mǐ",俭不中礼:"jiǎn bú zhòng lǐ",间见层出:"jiàn xiàn céng chū",尖嘴薄舌:"jiān zuǐ bó shé",甲冠天下:"jiǎ guàn tiān xià",葭莩之亲:"jiā fú zhī qīn",家累千金:"jiā lèi qiān jīn",家给人足:"jiā jǐ rén zú",家道从容:"jiā dào cóng róng",夹袋人物:"jiā dài rén wù",霁风朗月:"jì fēng lǎng yuè",寄兴寓情:"jì xìng yù qíng",计深虑远:"jì shēn lǜ yuǎn",计功量罪:"jì gōng liàng zuì",掎裳连襼:"jǐ shang lián yì",虮虱相吊:"jǐ shī xiāng diào",疾不可为:"jí bù kě wéi",极深研几:"jí shēn yán jī",及宾有鱼:"jí bīn yǒu yú",激薄停浇:"jī bó tíng jiāo",积素累旧:"jī sù lěi jiù",积时累日:"jī shí lěi rì",积露为波:"jī lù wéi bō",积德累功:"jī dé lěi gōng",积谗糜骨:"jī chán méi gǔ",击排冒没:"jī pái mào mò",祸为福先:"huò wéi fú xiān",祸福相依:"huò fú xiāng yī",获隽公车:"huò jùn gōng chē",混应滥应:"hùn yīng làn yīng",毁舟为杕:"huǐ zhōu wéi duò",毁钟为铎:"huǐ zhōng wéi duó",毁冠裂裳:"huǐ guān liè cháng",晦盲否塞:"huì máng pǐ sè",回船转舵:"huí chuán zhuàn duò",潢池盗弄:"huáng chí dào nòng",黄冠草履:"huáng guàn cǎo lǚ",黄发儿齿:"huáng fà ér chǐ",黄发垂髫:"huáng fà chuí tiáo",还珠返璧:"huán zhū fǎn bì",还年驻色:"huán nián zhù sè",还年却老:"huán nián què lǎo",坏裳为裤:"huài shang wéi kù",画荻和丸:"huà dí huò wán",化枭为鸠:"huà xiāo wéi jiū",化腐为奇:"huà fǔ wéi qí",化鸱为凤:"huà chī wéi fèng",花不棱登:"huā bu lēng dēng",户限为穿:"hù xiàn wéi chuān",呼卢喝雉:"hū lú hè zhì",呼来喝去:"hū lái hè qù",呼不给吸:"hū bù jǐ xī",厚味腊毒:"hòu wèi xī dú",厚德载物:"hòu dé zài wù",鸿渐于干:"hóng jiàn yú gàn",洪炉燎发:"hóng lú liáo fà",红绳系足:"hóng shéng jì zú",红不棱登:"hóng bu lēng dēng",横抢硬夺:"hèng qiǎng yìng duó",横恩滥赏:"hèng ēn làn shǎng",恨海难填:"hèn hǎi nán tián",鹤发鸡皮:"hè fà jī pí",涸思干虑:"hé sī gān lǜ",河涸海干:"hé hé hǎi gān",和颜说色:"hé yán yuè sè",合从连衡:"hé zòng lián héng",浩浩汤汤:"hào hào shāng shāng",好勇斗狠:"hào yǒng dòu hěn",好问则裕:"hào wèn zé yù",好为事端:"hào wéi shì duān",好问决疑:"hào wèn jué yí",好生之德:"hào shēng zhī dé",好奇尚异:"hǎo qí shàng yì",好恶不同:"hǎo è bù tóng",好丹非素:"hào dān fēi sù",豪干暴取:"háo gàn bào qǔ",毫发不爽:"háo fà bù shuǎng",寒酸落魄:"hán suān luò pò",含英咀华:"hán yīng jǔ huá",含糊不明:"hán hú bù míng",过为已甚:"guò wéi yǐ shèn",桂折兰摧:"guì shé lán cuī",规旋矩折:"guī xuán jǔ shé",广文先生:"guǎng wén xiān sheng",广陵散绝:"guǎng líng sǎn jué",冠山戴粒:"guàn shān dài lì",冠屦倒施:"guàn jù dǎo shī",挂席为门:"guà xí wéi mén",寡见鲜闻:"guǎ jiàn xiǎn wén",瓜葛相连:"guā gé xiāng lián",鼓吻奋爪:"gǔ wěn fèn zhǎo",古调单弹:"gǔ diào dān tán",古调不弹:"gǔ diào bù tán",姑射神人:"gū yè shén rén",苟合取容:"gǒu hé qǔ róng",狗续侯冠:"gǒu xù hòu guàn",钩爪锯牙:"gōu zhǎo jù yá",共枝别干:"gòng zhī bié gàn",共为唇齿:"gòng wéi chún chǐ",拱手而降:"gǒng shǒu ér xiáng",拱肩缩背:"gǒng jiān suō bèi",功薄蝉翼:"gōng bó chán yì",弓调马服:"gōng diào mǎ fú",更姓改物:"gēng xìng gǎi wù",更仆难数:"gēng pú nán shǔ",更令明号:"gēng lìng míng hào",更待干罢:"gèng dài gàn bà",更唱迭和:"gēng chàng dié hé",更长梦短:"gēng cháng mèng duǎn",各色名样:"gè sè míng yàng",格格不纳:"gé gé bú nà",格格不吐:"gé gé bù tǔ",告朔饩羊:"gù shuò xì yáng",膏车秣马:"gào chē mò mǎ",高义薄云:"gāo yì bó yún",岗头泽底:"gāng tóu zé dǐ",敢为敢做:"gǎn wéi gǎn zuò",甘分随时:"gān fèn suí shí",甘处下流:"gān chǔ xià liú",干啼湿哭:"gàn tí shī kū",干名犯义:"gàn míng fàn yì",干将莫邪:"gān jiāng mò yé",干城之将:"gān chéng zhī jiàng",腹载五车:"fù zài wǔ chē",父债子还:"fù zhài zǐ huán",父为子隐:"fù wéi zǐ yǐn",辅世长民:"fǔ shì zhǎng mín",福为祸始:"fú wéi huò shǐ",符号逻辑:"fú hào luó jí",浮收勒折:"fú shōu lè shé",肤受之愬:"fū shòu zhī sù",否终则泰:"pǐ zhōng zé tài",佛头著粪:"fó tóu zhuó fèn",奉为楷模:"fèng wéi kǎi mó",凤靡鸾吪:"fèng mǐ luán é",封豨修蛇:"fēng xī xiū shé",风影敷衍:"fēng yǐng fū yǎn",丰屋蔀家:"fēng wū bù jiā",粪土不如:"fèn tǔ bù rú",分风劈流:"fēn fēng pǐ liú",沸沸汤汤:"fèi fèi shāng shāng",菲食薄衣:"fěi shí bó yī",飞将数奇:"fēi jiàng shù qí",放辟邪侈:"fàng pì xié chǐ",方领圆冠:"fāng lǐng yuán guàn",犯而不校:"fàn ér bú jiào",返本还源:"fǎn běn huán yuán",反劳为逸:"fǎn láo wéi yì",法轮常转:"fǎ lún cháng zhuàn",罚不当罪:"fá bù dāng zuì",发引千钧:"fà yǐn qiān jūn",发奸擿伏:"fā jiān tī fú",发短心长:"fà duǎn xīn cháng",二竖为虐:"èr shù wéi nüè",儿女心肠:"ér nǚ xīn cháng",儿女亲家:"ér nǚ qìng jiā",遏恶扬善:"è wù yáng shàn",饿殍枕藉:"è piǎo zhěn jí",饿殍载道:"è piǎo zài dào",恶醉强酒:"wù zuì qiǎng jiǔ",恶意中伤:"è yì zhòng shāng",恶湿居下:"wù shī jū xià",恶居下流:"wù jū xià liú",恶不去善:"wù bú qù shàn",扼吭夺食:"è háng duó shí",扼襟控咽:"è jīn kòng yān",峨峨汤汤:"é é shāng shāng",屙金溺银:"ē jīn niào yín",朵颐大嚼:"duǒ yí dà jiáo",夺人所好:"duó rén suǒ hào",多言数穷:"duō yán shuò qióng",多文为富:"duō wén wéi fù",多端寡要:"duō duān guǎ yào",多财善贾:"duō cái shàn gǔ",遁世无闷:"dùn shì wú mèn",遁迹黄冠:"dùn jì huáng guàn",堆案盈几:"duī àn yíng jī",断还归宗:"duàn huán guī zōng",短见薄识:"duǎn jiàn bó shí",蠹居棊处:"dù jū qí chǔ",度己以绳:"duó jǐ yǐ shéng",杜默为诗:"dù mò wéi shī",杜鹃啼血:"dù juān tí xuè",笃近举远:"dǔ jìn jǔ yuǎn",独有千秋:"dú yǒu qiān qiū",读书得间:"dú shū dé jiàn",斗转参横:"dǒu zhuǎn shēn héng",兜肚连肠:"dōu dǔ lián cháng",洞见症结:"dòng jiàn zhèng jié",恫疑虚喝:"dòng yí xū hè",动中窾要:"dòng zhōng kuǎn yào",东鸣西应:"dōng míng xī yīng",东鳞西爪:"dōng lín xī zhǎo",东量西折:"dōng liàng xī shé",东家西舍:"dōng jiā xī shè",东扯西拽:"dōng chě xī zhuāi",鼎铛有耳:"dǐng chēng yǒu ěr",鼎铛玉石:"dǐng chēng yù shí",钉头磷磷:"dīng tóu lín lín",跌宕不羁:"diē dàng bù jī",跌弹斑鸠:"diē dàn bān jiū",雕心雁爪:"diāo xīn yàn zhǎo",颠倒衣裳:"diān dǎo yī cháng",德薄能鲜:"dé bó néng xiǎn",得马折足:"dé mǎ shé zú",蹈其覆辙:"dǎo qí fù zhé",捣虚撇抗:"dǎo xū piē kàng",倒载干戈:"dào zài gān gē",倒裳索领:"dào cháng suǒ lǐng",倒果为因:"dào guǒ wéi yīn",叨在知己:"tāo zài zhī jǐ",叨陪末座:"tāo péi mò zuò",党豺为虐:"dǎng chái wéi nüè",当轴处中:"dāng zhóu chǔ zhōng",当着不着:"dāng zhuó bù zhuó",当务始终:"dāng wù shǐ zhōng",淡汝浓抹:"dàn rǔ nóng mǒ",弹丸脱手:"tán wán tuō shǒu",弹铗无鱼:"dàn jiá wú yú",箪食瓢饮:"dān sì piáo yǐn",大璞不完:"dà pú bù wán",大明法度:"dà míng fǎ dù",大车以载:"dà chē yǐ zài",打闷葫芦:"dǎ mèn hú lu",沓来踵至:"tà lái zhǒng zhì",厝火燎原:"cuò huǒ liǎo yuán",撮科打哄:"cuō kē dǎ hòng",寸积铢累:"cùn jī zhū lěi",啛啛喳喳:"cuì cuì chā chā",摧折豪强:"cuī zhé háo qiáng",摧刚为柔:"cuī gāng wéi róu",从俗就简:"cóng sú jiù jiǎn",此发彼应:"cǐ fā bǐ yīng",此唱彼和:"cǐ chàng bǐ hè",慈悲为本:"cí bēi wéi běn",纯属骗局:"chún shǔ piàn jú",春笋怒发:"chūn sǔn nù fā",垂头搨翼:"chuí tóu tà yì",传为笑谈:"chuán wéi xiào tán",传风扇火:"chuán fēng shān huǒ",穿红着绿:"chuān hóng zhuó lǜ",触处机来:"chù chǔ jī lái",处尊居显:"chǔ zūn jū xiǎn",处堂燕雀:"chǔ táng yàn què",处实效功:"chǔ shí xiào gōng",处高临深:"chǔ gāo lín shēn",出入无间:"chū rù wú jiān",出门应辙:"chū mén yīng zhé",出处语默:"chū chǔ yǔ mò",出处殊途:"chū chǔ shū tú",出处进退:"chū chǔ jìn tuì",愁山闷海:"chóu shān mèn hǎi",冲冠眦裂:"chōng guàn zì liè",齿牙为祸:"chǐ yá wéi huò",尺二冤家:"chǐ èr yuān jia",尺短寸长:"chǐ duǎn cùn cháng",尺寸之功:"chǐ cùn zhī gōng",城北徐公:"chéng běi xú gōng",成败兴废:"chéng bài xīng fèi",趁水和泥:"chèn shuǐ huò ní",称雨道晴:"chēng yǔ dào qíng",称体载衣:"chēng tǐ zài yī",称体裁衣:"chèn tǐ cái yī",称家有无:"chèn jiā yǒu wú",称德度功:"chēng dé duó gōng",沉吟章句:"chén yín zhāng jù",沉吟不决:"chén yín bù jué",沉疴宿疾:"chén kē sù jí",扯纤拉烟:"chě qiàn lā yān",扯顺风旗:"chě shùn fēng qí",车载船装:"chē zǎi chuán zhuāng",朝升暮合:"zhāo shēng mù gě",朝攀暮折:"zhāo pān mù shé",超今冠古:"chāo jīn guàn gǔ",倡而不和:"chàng ér bú hè",畅所欲为:"chàng suǒ yù wéi",苌弘碧血:"cháng hóng bì xiě",长幼尊卑:"zhǎng yòu zūn bēi",长绳系日:"cháng shéng jì rì",长年三老:"zhǎng nián sān lǎo",长春不老:"cháng chūn bù lǎo",长傲饰非:"zhǎng ào shì fēi",昌亭旅食:"chāng tíng lǚ shí",禅絮沾泥:"chán xù zhān ní",差三错四:"chā sān cuò sì",层台累榭:"céng tái lěi xiè",层见迭出:"céng xiàn dié chū",藏踪蹑迹:"cáng zōng niè jì",苍蝇见血:"cāng yíng jiàn xiě",餐松啖柏:"cān sōng dàn bó",骖风驷霞:"cān fēng sì xiá",参伍错综:"cēn wǔ cuò zōng",参辰卯酉:"shēn chén mǎo yǒu",材优干济:"cái yōu gān jǐ",材薄质衰:"cái bó zhì shuāi",才大难用:"cái dà nán yòng",才薄智浅:"cái bó zhì qiǎn",不足为意:"bù zú wéi yì",不足为据:"bù zú wéi jù",不足为法:"bù zú wéi fǎ",不足齿数:"bù zú chǐ shǔ",不着疼热:"bù zhuó téng rè",不知薡蕫:"bù zhī dǐng dǒng",不越雷池:"bú yuè léi chí",不相为谋:"bù xiāng wéi móu",不贪为宝:"bù tān wéi bǎo",不了而了:"bù liǎo ér liǎo",不可揆度:"bù kě kuí duó",不遑启处:"bù huáng qǐ chǔ",不当不正:"bù dāng bú zhèng",不差什么:"bú chà shén me",不差累黍:"bù chā lěi shǔ",擘两分星:"bò liǎng fēn xīng",簸土扬沙:"bǒ tǔ yáng shā",薄物细故:"bó wù xì gù",薄寒中人:"bó hán zhòng rén",博文约礼:"bó wén yuē lǐ",播糠眯目:"bō kāng mí mù",剥皮抽筋:"bō pí chōu jīn",剥肤椎髓:"bō fū chuí suǐ",波属云委:"bō zhǔ yún wěi",波骇云属:"bō hài yún zhǔ",兵微将寡:"bīng wēi jiàng guǎ",兵强将勇:"bīng qiáng jiàng yǒng",兵多将广:"bīng duō jiàng guǎng",兵不由将:"bīng bù yóu jiàng",冰解的破:"bīng jiě dì pò",彬彬济济:"bīn bīn jǐ jǐ",摽梅之年:"biào méi zhī nián",表里为奸:"biǎo lǐ wéi jiān",飙发电举:"biāo fā diàn jǔ",变贪厉薄:"biàn tān lì bó",敝盖不弃:"bì gài bú qì",秕言谬说:"bǐ yán miù shuō",比物属事:"bǐ wù zhǔ shì",被山带河:"pī shān dài hé",被甲枕戈:"pī jiǎ zhěn gē",被甲据鞍:"pī jiǎ jù ān",被褐怀玉:"pī hè huái yù",被发缨冠:"pī fà yīng guàn",背曲腰躬:"bèi qǔ yāo gōng",北窗高卧:"běi chuāng gāo wò",北辰星拱:"běi chén xīng gǒng",北鄙之音:"běi bǐ zhī yīn",卑宫菲食:"bēi gōng fěi shí",暴衣露冠:"pù yī lù guàn",暴腮龙门:"pù sāi lóng mén",暴露文学:"bào lù wén xué",暴虎冯河:"bào hǔ píng hé",抱蔓摘瓜:"bào wàn zhāi guā",抱法处势:"bào fǎ chǔ shì",褒贬与夺:"bāo biǎn yǔ duó",帮闲钻懒:"bāng xián zuān lǎn",拜将封侯:"bài jiàng fēng hóu",百兽率舞:"bǎi shòu shuài wǔ",百孔千创:"bǎi kǒng qiān chuāng",白衣卿相:"bái yī qīng xiàng",白首为郎:"bái shǒu wéi láng",白首相知:"bái shǒu xiāng zhī",把玩无厌:"bǎ wán wú yàn",拔锅卷席:"bá guō juǎn xí",拔本塞源:"bá běn sè yuán",傲不可长:"ào bù kě zhǎng",熬更守夜:"áo gēng shǒu yè",安时处顺:"ān shí chǔ shùn",安身为乐:"ān shēn wéi lè",安老怀少:"ān lǎo huái shào",安步当车:"ān bù dàng chē",爱人好士:"ài rén hào shì",矮人观场:"ǎi rén guān chǎng",捱风缉缝:"ái fēng jī fèng",挨山塞海:"āi shān sè hǎi",阿家阿翁:"ā jiā ā wēng",阿党相为:"ē dǎng xiāng wéi",追亡逐北:"zhuī wáng zhú běi",竹篮打水:"zhú lán dá shuǐ",知疼着热:"zhī téng zháo rè",语不惊人:"yǔ bù jīng rén",于今为烈:"yú jīn wéi liè",一日三省:"yí rì sān xǐng",穴居野处:"xué jū yě chǔ",五脊六兽:"wǔ jǐ liù shòu",无声无臭:"wú shēng wú xiù",谓予不信:"wèi yú bú xìn",舍身为国:"shě shēn wéi guó",杀妻求将:"shā qī qiú jiàng",强作解人:"qiǎng zuò jiě rén",气冲斗牛:"qì chōng dǒu niú",临深履薄:"lín shēn lǚ bó",钧天广乐:"jūn tiān guǎng yuè",艰难竭蹶:"jiān nán jié jué",夹七夹八:"jiā qī jiā bā",混混噩噩:"hún hún è è",厚古薄今:"hòu gǔ bó jīn",鬼怕恶人:"guǐ pà è rén",伽马射线:"gā mǎ shè xiàn",佛头着粪:"fó tóu zhuó fèn",奉为至宝:"fèng wéi zhì bǎo",登坛拜将:"dēng tán bài jiàng",晨昏定省:"chén hūn dìng xǐng",察察为明:"chá chá wéi míng",博闻强识:"bó wén qiáng zhì",避难就易:"bì nán jiù yì",了无生机:"liǎo wú shēng jī",有一说一:"yǒu yī shuō yī",独一无二:"dú yī wú èr",说一不二:"shuō yī bù èr",举一反三:"jǔ yī fǎn sān",数一数二:"shǔ yī shǔ èr",杀一儆百:"shā yī jǐng bǎi",丁一卯二:"dīng yī mǎo èr",丁一确二:"dīng yī què èr",不一而止:"bù yī ér zhǐ",无一幸免:"wú yī xìng miǎn",表里不一:"biǎo lǐ bù yī",良莠不一:"liáng yǒu bù yī",心口不一:"xīn kǒu bù yī",言行不一:"yán xíng bù yī",政令不一:"zhèng lìng bù yī",参差不一:"cēn cī bù yī",纷纷不一:"fēn fēn bù yī",毁誉不一:"huǐ yù bù yī",不一而三:"bù yī ér sān",百不一遇:"bǎi bù yī yù",言行抱一:"yán xíng bào yī",瑜百瑕一:"yú bǎi xiá yī",背城借一:"bèi chéng jiè yī",凭城借一:"píng chéng jiè yī",劝百讽一:"quàn bǎi fěng yī",群居和一:"qún jū hé yī",百不获一:"bǎi bù huò yī",百不失一:"bǎi bù shī yī",百无失一:"bǎi wú shī yī",万不失一:"wàn bù shī yī",万无失一:"wàn wú shī yī",合而为一:"hé ér wéi yī",合两为一:"hé liǎng wéi yī",合二为一:"hé èr wéi yī",天下为一:"tiān xià wéi yī",相与为一:"xiāng yǔ wéi yī",较若画一:"jiào ruò huà yī",较如画一:"jiào rú huà yī",斠若画一:"jiào ruò huà yī",言行若一:"yán xíng ruò yī",始终若一:"shǐ zhōng ruò yī",终始若一:"zhōng shǐ ruò yī",惟精惟一:"wéi jīng wéi yī",众多非一:"zhòng duō fēi yī",不能赞一:"bù néng zàn yī",问一答十:"wèn yī dá shí",一不扭众:"yī bù niǔ zhòng",一以贯之:"yī yǐ guàn zhī",一以当百:"yī yǐ dāng bǎi",百不当一:"bǎi bù dāng yī",十不当一:"shí bù dāng yī",以一警百:"yǐ yī jǐng bǎi",以一奉百:"yǐ yī fèng bǎi",以一持万:"yǐ yī chí wàn",以一知万:"yǐ yī zhī wàn",百里挑一:"bǎi lǐ tiāo yī",整齐划一:"zhěng qí huà yī",一来二去:"yī lái èr qù",一路公交:"yī lù gōng jiāo",一路汽车:"yī lù qì chē",一路巴士:"yī lù bā shì",朝朝朝落:"zhāo cháo zhāo luò",曲意逢迎:"qū yì féng yíng",一行不行:"yì háng bù xíng",行行不行:"háng háng bù xíng"},Cue=Object.keys(e_).map(e=>({zh:e,pinyin:e_[e],probability:2e-8,length:4,priority:yl.Normal,dict:Symbol("dict4")})),t_={巴尔干半岛:"bā ěr gàn bàn dǎo",巴尔喀什湖:"bā ěr kā shí hú",不幸而言中:"bú xìng ér yán zhòng",布尔什维克:"bù ěr shí wéi kè",何乐而不为:"hé lè ér bù wéi",苛政猛于虎:"kē zhèng měng yú hǔ",蒙得维的亚:"méng dé wéi dì yà",民以食为天:"mín yǐ shí wéi tiān",事后诸葛亮:"shì hòu zhū gě liàng",物以稀为贵:"wù yǐ xī wéi guì",先下手为强:"xiān xià shǒu wéi qiáng",行行出状元:"háng háng chū zhuàng yuan",亚得里亚海:"yà dé lǐ yà hǎi",眼不见为净:"yǎn bú jiàn wéi jìng",竹筒倒豆子:"zhú tǒng dào dòu zi"},wue=Object.keys(t_).map(e=>({zh:e,pinyin:t_[e],probability:2e-8,length:5,priority:yl.Normal,dict:Symbol("dict5")}));function n_(e,t){return e&&(e.decimalt.probability)?e:t}function i_(e){e.probability<1e-300&&(e.probability*=1e300,e.decimal+=1)}function xue(e){return e.priority===yl.Custom?-(e.length*e.length*100):e.priority===yl.Surname?-(e.length*e.length*10):0}function Sue(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{probability:1,decimal:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={probability:o.probability*r.probability,decimal:r.decimal+xue(o),patterns:r.patterns,concatPattern:o};i_(u),n[a]=n_(n[a],u),o=e[--i]}const l={probability:1e-13*r.probability,decimal:0,patterns:r.patterns};i_(l),n[s]=n_(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function o_(e,t){return e&&e.count<=t.count?e:t}function _ue(e){return e.priority===yl.Custom?-(e.length*e.length*1e5):e.priority===yl.Surname?-(e.length*e.length*100):1}function Mue(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{count:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={count:_ue(o)+r.count,patterns:r.patterns,concatPattern:o};n[a]=o_(n[a],u),o=e[--i]}const l={count:1+r.count,patterns:r.patterns};n[s]=o_(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function Iue(e,t){return!(t.index+t.length<=e.index||t.priority>e.priority||t.priority===e.priority&&t.length>e.length)}function Eue(e){const t=[];for(let n=e.length-1;n>=0;){const{index:i}=e[n];let o=n-1;for(;o>=0&&Iue(e[n],e[o]);)o--;(o<0||e[o].index+e[o].length<=i)&&t.push(e[n]),n=o}return t.reverse()}var s_;(function(e){e[e.ReverseMaxMatch=1]="ReverseMaxMatch",e[e.MaxProbability=2]="MaxProbability",e[e.MinTokenization=3]="MinTokenization"})(s_||(s_={}));class r_{constructor(t,n="",i=""){this.children=new Map,this.fail=null,this.patterns=[],this.parent=t,this.prefix=n,this.key=i}}class Tue{constructor(){this.dictMap=new Map,this.queues=[],this.root=new r_(null)}build(t){this.buildTrie(t),this.buildFailPointer()}buildTrie(t){for(let n of t){const i=n8(n.zh);let o=this.root;for(let s=0;s{t=t.concat(i)}),this.queues=[];t.length>n;){let i=t[n++],o=i.parent&&i.parent.fail,s=i.key;for(;o&&!o.children.has(s);)o=o.fail;o?i.fail=o.children.get(s):i.fail=this.root}}addPatternToDictMap(t){this.dictMap.has(t.dict)||this.dictMap.set(t.dict,new Set),this.dictMap.get(t.dict).add(t)}addNodeToQueues(t){this.queues[ta(t.prefix)]||(this.queues[ta(t.prefix)]=[]),this.queues[ta(t.prefix)].push(t)}insertPattern(t,n){for(let i=t.length-1;i>=0;i--){const o=t[i];if(n.priority===o.priority&&n.probability>=o.probability)t[i+1]=o;else if(n.priority>o.priority)t[i+1]=o;else{t[i+1]=n;return}}t[0]=n}removeDict(t){this.dictMap.has(t)&&(this.dictMap.get(t).forEach(i=>{i.node.patterns=i.node.patterns.filter(o=>o!==i)}),this.dictMap.delete(t))}match(t,n){let i=this.root,o=[];const s=n8(t);for(let r=0;rn==="off"?c.priority!==yl.Surname:n==="head"?c.length-1-r===0:!0);a&&o.push(Object.assign(Object.assign({},a),{index:r-a.length+1}));let u=i.fail;for(;u!==null;){const c=u.patterns.find(d=>n==="off"?d.priority!==yl.Surname:n==="head"?d.length-1-r===0:!0);c&&o.push(Object.assign(Object.assign({},c),{index:r-c.length+1})),u=u.fail}}}return o}search(t,n,i=2){const o=this.match(t,n);return i===1?Eue(o):i===3?Mue(o,ta(t)):Sue(o,ta(t))}}const Lue=[...wue,...Cue,...Aue,...bue,...mue,...kue],s$=new Tue;s$.build(Lue);const Nue=new i$,Fue=()=>Nue,Due=[];function Bue(){return Due}const gp=e=>{const t=_c.get(e);return t?t.split(" ")[0]:e},$ue=e=>{const t=[],n=Bue();for(let i=0;i{const s=o?$ue(e):e,r=s$.search(s,n,i);let l=0;const a=n8(e);for(let u=0;ue.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(n̄|ń|ň|ǹ)/g,"n").replace(/(m̄|ḿ|m̌|m̀)/g,"m").replace(/(ê̄|ế|ê̌|ề)/g,"ê"),r$=(e,t="off")=>{const n=Fue();let i=_c.get(e)?_c.get(e).split(" "):[];if(n.get(e))i=n.get(e).split(" ");else if(t!=="off"){const o=i8[e];o&&(i=[o].concat(i.filter(s=>s!==o)))}return i},zue=(e,t="off")=>{let n=r$(e,t);return n.length>0?n.map(i=>({origin:e,result:i,isZh:!0,originPinyin:i})):[{origin:e,result:e,isZh:!1,originPinyin:e}]},_2=(e,t)=>{const n=e.split(" "),i=[],o=[];for(let s of n)for(let r of cue)if(s.startsWith(r)){let l=s.slice(r.length);due.indexOf(r)!==-1&&fue.indexOf(l)!==-1&&(l=hue[l]),i.push(r),o.push(l);break}return t==="standard"&&i.forEach((s,r)=>{(s==="y"||s==="w")&&(i[r]="")}),{final:o.join(" "),initial:i.join(" ")}},wv=e=>{const{final:t}=_2(e);let n="",i="",o="";return pue.indexOf(f9(t))!==-1?(n=t[0],i=t[1],o=t.slice(2)):(i=t[0]||"",o=t.slice(1)||""),{head:n,body:i,tail:o}},h9=e=>{const t=/(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/,n=/(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/,i=/(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/,o=/(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/,s=/(a|o|e|i|u|ü|ê)/,r=/(n|m)$/,l=[];return e.split(" ").forEach(u=>{t.test(u)?l.push("1"):n.test(u)?l.push("2"):i.test(u)?l.push("3"):o.test(u)?l.push("4"):s.test(u)||r.test(u)?l.push("0"):l.push("")}),l.join(" ")},Oue=(e,t)=>{const n=f9(e).split(" "),i=h9(t).split(" "),o=[];return n.forEach((s,r)=>{o.push(`${s}${i[r]}`)}),o.join(" ")},l$=(e,t)=>{const n=[];return e.split(" ").forEach(o=>{n.push(t?o[0]:o)}),n.join(" ")};function Pue(e,t,n){if(yue.indexOf(e)===-1)return gp(e);if(t===n&&t&&gp(t)!==t)return f9(gp(e));if(n&&!vue[e].includes(n)){const i=gp(n);if(i!==n){const o=h9(i),s=o$[e];for(let r in s)if(s[r].indexOf(Number(o))!==-1)return r}}}function jue(e,t){if(e==="了"&&(!t||!_c.get(t)))return"liǎo"}function Hue(e,t){if(e==="々")return!t||!_c.get(t)?"tóng":_c.get(t).split(" ")[0]}function l_(e,t,n){return Hue(e,t)||jue(e,t)||Pue(e,t,n)||gp(e)}const Wue=e=>typeof e!="string"?(console.error("The first param of pinyin is error: "+e+' is not assignable to type "string".'),!1):!0;function m3(e,t){return t instanceof RegExp?t.test(e):!0}const que=(e,t)=>{let n=t.nonZh;if(n==="removed")return e.filter(i=>i.isZh||!m3(i.origin,t.nonZhScope));if(n==="consecutive"){for(let i=e.length-2;i>=0;i--){const o=e[i],s=e[i+1];!o.isZh&&!s.isZh&&m3(o.origin,t.nonZhScope)&&m3(s.origin,t.nonZhScope)&&(o.origin+=s.origin,o.result+=s.result,s.delete=!0)}return e.filter(i=>!i.delete)}else return e},a_=(e,t)=>ta(e)===1&&t.multiple?zue(e,t.surname):!1,Uue=(e,t)=>{switch(t.pattern){case"pinyin":break;case"num":e.forEach(n=>{n.result=n.isZh?h9(n.result):""});break;case"initial":e.forEach(n=>{n.result=n.isZh?_2(n.result,t.initialPattern).initial:""});break;case"final":e.forEach(n=>{n.result=n.isZh?_2(n.result,t.initialPattern).final:""});break;case"first":e.forEach(n=>{n.result=l$(n.result,n.isZh)});break;case"finalHead":e.forEach(n=>{n.result=n.isZh?wv(n.result).head:""});break;case"finalBody":e.forEach(n=>{n.result=n.isZh?wv(n.result).body:""});break;case"finalTail":e.forEach(n=>{n.result=n.isZh?wv(n.result).tail:""});break}},Kue=(e,t)=>{switch(t.toneType){case"symbol":break;case"none":e.forEach(n=>{n.isZh&&(n.result=f9(n.result))});break;case"num":{e.forEach(n=>{n.isZh&&(n.result=Oue(n.result,n.originPinyin))});break}}},Vue=(e,t)=>{t.v&&e.forEach(n=>{n.isZh&&(n.result=n.result.replace(/ü/g,typeof t.v=="string"?t.v:"v"))})},Zue=(e,t,n)=>{if(t.multiple&&ta(n)===1){let i="";e=e.filter(o=>{const s=o.result!==i;return i=o.result,s})}return t.type==="array"?e.map(i=>i.result):t.type==="all"?e.map(i=>{const o=i.isZh?i.result:"",{initial:s,final:r}=_2(o,t.initialPattern),{head:l,body:a,tail:u}=wv(o);let c=[];return o!==""&&(c=[o].concat(r$(i.origin,t.surname).filter(d=>d!==o))),{origin:i.origin,pinyin:o,initial:s,final:r,first:l$(i.result,i.isZh),finalHead:l,finalBody:a,finalTail:u,num:Number(h9(i.originPinyin)),isZh:i.isZh,polyphonic:c,inZhRange:!!_c.get(i.origin),result:i.result}}):e.map(i=>i.result).join(t.separator)},Gue=(e,t)=>(t===!1&&e.forEach(n=>{n.origin==="一"?n.result=n.originPinyin="yī":n.origin==="不"&&(n.result=n.originPinyin="bù")}),e),Que={pattern:"pinyin",toneType:"symbol",type:"string",multiple:!1,mode:"normal",removeNonZh:!1,nonZh:"spaced",v:!1,separator:" ",toneSandhi:!0,segmentit:2};function M2(e,t){if(t=Object.assign(Object.assign({},Que),t||{}),!Wue(e))return e;if(e==="")return t.type==="array"||t.type==="all"?[]:"";t.surname===void 0&&(t.mode==="surname"?t.surname="all":t.surname="off"),t.type==="all"&&(t.pattern="pinyin"),t.pattern==="num"&&(t.toneType="none"),t.removeNonZh&&(t.nonZh="removed");let i=Array(ta(e)),{list:o}=Rue(e,i,t.surname,t.segmentit,t.traditional);return o=Gue(o,t.toneSandhi),o=que(o,t),a_(e,t)&&(o=a_(e,t)),Uue(o,t),Kue(o,t),Vue(o,t),Zue(o,t,e)}var o8;(function(e){e[e.AllSegment=1]="AllSegment",e[e.AllArray=2]="AllArray",e[e.AllString=3]="AllString",e[e.PinyinSegment=4]="PinyinSegment",e[e.PinyinArray=5]="PinyinArray",e[e.PinyinString=6]="PinyinString",e[e.ZhSegment=7]="ZhSegment",e[e.ZhArray=8]="ZhArray",e[e.ZhString=9]="ZhString"})(o8||(o8={}));o8.AllSegment;const a$=[{name:"/new",desc:"commands.new.desc"},{name:"/clear",desc:"commands.clear.desc"},{name:"/login",desc:"commands.login.desc"},{name:"/plan",desc:"commands.plan.desc"},{name:"/swarm",desc:"commands.swarm.desc"},{name:"/goal",desc:"commands.goal.desc"},{name:"/btw",desc:"commands.btw.desc",acceptsInput:!0},{name:"/compact",desc:"commands.compact.desc",acceptsInput:!0},{name:"/undo",desc:"commands.undo.desc"},{name:"/fork",desc:"commands.fork.desc"},{name:"/export",desc:"commands.export.desc"},{name:"/status",desc:"commands.status.desc"}];function Yue(e){if(!e.startsWith("/"))return null;const t=e.indexOf(" ");return t===-1?{cmd:e,arg:""}:{cmd:e.slice(0,t),arg:e.slice(t+1)}}const Zd="skill:";function Jue(e,t){const n=e.find(r=>r.name===t);if(n!==void 0)return n;const i=`/${Zd}${t.slice(1)}`,o=e.find(r=>r.name===i);if(o!==void 0)return o;if(!t.startsWith(`/${Zd}`))return;const s=t.slice(1+Zd.length);if(!(s.length===0||s.includes(" ")))return e.find(r=>r.isSkill===!0&&u$(r.name)===s)}function u$(e){const t=e.startsWith("/")?e.slice(1):e;return t.startsWith(Zd)?t.slice(Zd.length):t}function c$(e=[]){const t=e.map(n=>({name:n.source==="builtin"?`/${n.name}`:`/${Zd}${n.name}`,desc:n.description,isSkill:!0,acceptsInput:!0}));return[...a$,...t]}const u_=new Map;function d$(e){let t=u_.get(e);if(!t){const n=M2(e,{toneType:"none",type:"array"}),i=M2(e,{pattern:"first",toneType:"none",type:"array"});t=Xue(e,n,i),u_.set(e,t)}return t}const c_={full:[],first:[],offsets:[],literal:[]};function Xue(e,t,n){if(t.length!==n.length)return c_;const i=[],o=[];let s=0;for(let r=0;r0&&e.slice(s,s+l.length).toLowerCase()===l.toLowerCase()?(o.push(!0),s+=l.length):(o.push(!1),s+=Array.from(e.slice(s))[0]?.length??0)}return i.push(s),s!==e.length?c_:{full:t,first:n,offsets:i,literal:o}}function s8(e,t,n,i){const o=e[t];let s=0,r=-1,l=-1,a=0,u=0;for(let h=0;h=0)return s8(i,"first",o,o+t.length);const s=i.full.join("").indexOf(t);if(!(s<0))return s8(i,"full",s,s+t.length)}function oce(e,t,n){const i=e.trim().replace(/^\//,"").toLowerCase();if(i==="")return{};const o=nce(t,i),s=ice(n,i);return{name:o?[o]:void 0,desc:s?[s]:void 0}}const sce={keys:[{name:"name",weight:3},{name:"desc",weight:1},{name:"pinyinFull",weight:1},{name:"pinyinFirst",weight:1}],includeScore:!0,includeMatches:!0,ignoreLocation:!0,threshold:.4};function rce(e,t){const n=e.toLowerCase(),i=t.toLowerCase();return n===i?0:n.startsWith(i)?1:2}function f_(e){const t=[...e].sort((i,o)=>i[0]-o[0]),n=[];for(const i of t){const o=n[n.length-1];o&&i[0]<=o[1]?o[1]=Math.max(o[1],i[1]):n.push([...i])}return n}function lce(e,t){const n=[],i=[];for(const o of t??[])for(const[s,r]of o.indices)if(o.key==="name")n.push([s+1,r+2]);else if(o.key==="desc")i.push([s,r+1]);else if(o.key==="pinyinFirst"||o.key==="pinyinFull"){const l=s8(d$(e.desc),o.key==="pinyinFirst"?"first":"full",s,r+1);l&&i.push(l)}return{name:n.length>0?f_(n):void 0,desc:i.length>0?f_(i):void 0}}function ace(e,t=a$,n=i=>i.desc){const i=e.trim().replace(/^\//,"");if(i==="")return t.map(s=>({item:s,ranges:{}}));const o=t.map((s,r)=>{const l=n(s),a=ece(l);return{index:r,item:s,name:s.name.replace(/^\//,""),desc:l,pinyinFull:a.full,pinyinFirst:a.first}});return new rue(o,sce).search(i).map(({item:s,score:r,matches:l})=>({doc:s,score:r??1,rank:rce(s.name,i),ranges:lce(s,l)})).sort((s,r)=>s.rank!==r.rank?s.rank-r.rank:s.score!==r.score?s.score-r.score:s.doc.index-r.doc.index).map(({doc:s,ranges:r})=>({item:s.item,ranges:r}))}function uce(e,t){if(t.length===0||e.length===0)return t;const n=Date.parse(t[0].createdAt);if(Number.isNaN(n))return t;const i=new Set(t.map(r=>r.id)),o=new Set(t.flatMap(r=>r.role==="user"&&r.promptId!==void 0?[r.promptId]:[])),s=e.filter(r=>{const l=Date.parse(r.createdAt);return!(Number.isNaN(l)||l>=n||i.has(r.id)||r.role==="user"&&(r.userMessageId!==void 0&&i.has(r.userMessageId)||r.promptId!==void 0&&o.has(r.promptId)))});return s.length>0?[...s,...t]:t}function cce(e){const t=new Map,n=new Set;function i(s){const r=t.get(s);if(r!==void 0)return r;const l=(async()=>e(s))().finally(()=>{t.delete(s),n.delete(s)&&i(s)});return t.set(s,l),l}function o(s){if(t.has(s)){n.add(s);return}i(s)}return{run:i,request:o}}const un={permission:"kimi-web.permission",activeWorkspace:"kimi-active-workspace",planArmed:"kimi-web.plan-armed",swarmMode:"kimi-web.swarm-mode",goalMode:"kimi-web.goal-mode",fontScale:"kimi-web.font-scale",starredModels:"kimi-web.starred-models",unread:"kimi-web.unread",onboarded:"kimi-web.onboarded",colorScheme:"kimi-web.color-scheme",hiddenWorkspaces:"kimi-web.hidden-workspaces",collapsedWorkspaces:"kimi-web.collapsed-workspaces",workspaceOrder:"kimi-web.workspace-order",workspaceSort:"kimi-web.workspace-sort",workspaceRecencyFloor:"kimi-web.workspace-recency-floor",pinnedSessions:"kimi-web.pinned-sessions",pinnedCollapsed:"kimi-web.pinned-collapsed",workspaceNameOverrides:"kimi-web.workspace-name-overrides",notifyEnabled:"kimi-web.notify-enabled",notifySound:"kimi-web.notify-sound",inputHistory:"kimi-web.input-history",locale:"kimi-locale",clientId:"kimi-web.client-id",debug:"kimi-web.debug",openInDefaultTarget:"kimi-web.open-in.default-target",openInLastTarget:"kimi-web.open-in.last-target",sidebarCollapsed:"kimi-web.sidebar-collapsed",sidebarWidth:"kimi-web.sidebar-width",sidebarViewMode:"kimi-web.sidebar-view-mode",mobileSwitcherViewMode:"kimi-web.mobile-switcher-view-mode",sidebarPinnedHeight:"kimi-web.sidebar-pinned-height",shortcutOverrides:"kimi-web.shortcut-overrides",dockIconChoice:"kimi-web.dock-icon-choice",updateSkippedVersion:"kimi-web.update-skipped-version",planMode:"kimi-web.plan-mode",codeFont:"kimi-web.code-font",contentAlign:"kimi-web.content-align",theme:"kimi-web.theme",thinking:"kimi-web.thinking",accent:"kimi-web.accent",notifyOnComplete:"kimi-web.notify-on-complete",notifyOnQuestion:"kimi-web.notify-on-question",notifyOnApproval:"kimi-web.notify-on-approval",soundOnComplete:"kimi-web.sound-on-complete"};function h_(e){return`kimi-web.draft.${e&&e.length>0?e:"__new__"}`}function p_(e){return`kimi-web.attachment-draft.${e&&e.length>0?e:"__new__"}`}function gs(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function is(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function _r(e){try{globalThis.localStorage.removeItem(e)}catch{}}function Kc(e){const t=gs(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}function Lu(e,t){try{globalThis.localStorage.setItem(e,JSON.stringify(t))}catch{}}function $6(){const e=gs(un.unread);if(!e)return{};try{const t=JSON.parse(e);if(!t||typeof t!="object")return{};const n={};for(const[i,o]of Object.entries(t))o===!0&&(n[i]=!0);return n}catch{return{}}}function R6(e){const n={...$6()};for(const[i,o]of Object.entries(e))o?n[i]=!0:delete n[i];is(un.unread,JSON.stringify(n))}function dce(){const e=Kc(un.collapsedWorkspaces);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function v3(e){Lu(un.collapsedWorkspaces,Array.from(e))}function fce(){return Kc(un.pinnedCollapsed)===!0}function r8(e){Lu(un.pinnedCollapsed,e)}function hce(){return gs(un.sidebarViewMode)==="flat"?"flat":"grouped"}function pce(e){is(un.sidebarViewMode,e)}function gce(){return gs(un.mobileSwitcherViewMode)==="grouped"?"grouped":"flat"}function mce(e){is(un.mobileSwitcherViewMode,e)}function vce(){const e=Kc(un.workspaceOrder);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function h$(e){Lu(un.workspaceOrder,Array.from(e))}function yce(){return gs(un.workspaceSort)==="recent"?"recent":"manual"}function kce(e){is(un.workspaceSort,e)}function bce(){const e=Kc(un.workspaceRecencyFloor);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="number"&&Number.isFinite(i)&&(t[n]=i);return t}function p$(e){Lu(un.workspaceRecencyFloor,e)}function g$(){const e=Kc(un.pinnedSessions);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function y3(e){Lu(un.pinnedSessions,Array.from(e))}function Im(){const e=Kc(un.workspaceNameOverrides);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="string"&&(t[n]=i);return t}function g_(e){Lu(un.workspaceNameOverrides,e)}function Ace(e,t,n,i,o){const s=n-o-(t.right+i),r=t.left-i-o,l=e>s&&r>s,a=Math.min(e,l?r:s);return{left:l?t.left-i-a:t.right+i,maxWidth:a,flipped:l}}function m_(e,t){const n=new Set(e.map(u=>u.id)),i=t.filter(u=>u.kind==="subagent"&&!n.has(u.id));if(i.length===0)return e;const o=new Map(e.map(u=>[u.id,u])),s=new Map(e.filter(u=>u.kind==="subagent"&&u.agentId!==void 0).map(u=>[u.agentId,u])),r=new Set,l=i.map(u=>{const c=(u.backgroundTaskId!==void 0?o.get(u.backgroundTaskId):void 0)??s.get(u.agentId??u.id);if(c===void 0)return u;r.add(c.id);const d=u.status==="running"&&c.status!=="running";return{...u,status:u.status==="running"?c.status:u.status,subagentPhase:d?c.status==="completed"?"completed":"failed":u.subagentPhase,completedAt:c.completedAt??u.completedAt,completedAtEstimated:c.completedAt!==void 0?void 0:u.completedAtEstimated,outputPreview:c.outputPreview??u.outputPreview,outputBytes:c.outputBytes??u.outputBytes,model:u.model??c.model,thinkingEffort:u.thinkingEffort??c.thinkingEffort}});return[...e.filter(u=>!r.has(u.id)),...l]}function Cce(e,t){if(e.length===0)return t;const n=new Map(t.map(r=>[r.id,r])),i=new Set(e.map(r=>r.id)),o=e.map(r=>{const l=n.get(r.id);if(!l)return r;const a=r.completedAt===void 0&&l.completedAt===void 0&&l.status==="running"&&r.status!=="running";return{...r,outputLines:l.outputLines,text:l.text,completedAt:r.completedAt??l.completedAt??(a?new Date().toISOString():void 0),completedAtEstimated:r.completedAt!==void 0?void 0:l.completedAt!==void 0?l.completedAtEstimated:a?!0:void 0,model:r.model??l.model,thinkingEffort:r.thinkingEffort??l.thinkingEffort}}),s=t.filter(r=>!i.has(r.id));return s.length===0?o:[...o,...s]}function wce(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function xce(e,t=wce()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyF"||e.key.toLowerCase()==="f")&&!e.defaultPrevented}const Sce=new Map([["ς","σ"],["ß","ss"],["ſ","s"],["ff","ff"],["fi","fi"],["fl","fl"],["ffi","ffi"],["ffl","ffl"],["ſt","st"],["st","st"],["ʼn","ʼn"],["µ","μ"],["K","k"],["Å","å"],["Ω","ω"]]);function _ce(e){return e==="pre"||e==="pre-wrap"||e==="break-spaces"?"preserve":e==="pre-line"?"pre-line":"collapse"}function Mce(e,t){if(t==="preserve")return{text:e,map:Array.from({length:e.length},(r,l)=>l)};const n=t==="collapse"?/[\t\n\f\r ]/:/[\t ]/;let i="";const o=[];let s=!1;for(let r=0;rv_(c.text)),i="\0";let o="";const s=[];for(let c=0;c0&&e[c].gapBefore&&(o+=i),s[c]=o.length,o+=n[c].folded;const r=Tce(v_(t).folded);if(r===null)return;const l=new RegExp(r,"g");function a(c){let d=0,h=s.length-1,p=0;for(;d<=h;){const g=d+h>>1;s[g]<=c?(p=g,d=g+1):h=g-1}return p}let u;for(;;){const c=l.exec(o);if(c===null)return;const d=c.index,h=d+c[0].length-1,p=a(d),g=a(h),m=n[p].map[d-s[p]],k=n[g].map[h-s[g]],w={startSeg:p,startOffset:m.start,endSeg:g,endOffset:k.start+k.length};u!==void 0&&u.startSeg===w.startSeg&&u.startOffset===w.startOffset&&u.endSeg===w.endSeg&&u.endOffset===w.endOffset||(u=w,yield w)}}const Ece=/[.*+?^${}()|[\]\\]/g;function Tce(e){const t=[];let n=0;for(;n=Bce)return{ranges:a,truncated:!0};a.push(h)}}return{ranges:a,truncated:!1}}const m$="kimi-transcript-search",l8="kimi-transcript-search-current";function v$(){return globalThis.CSS?.highlights??null}function k3(e,t){const n=v$(),i=globalThis.Highlight;if(!n||!i)return;if(e.length===0){a8();return}const o=new i;for(const r of e)o.add(r);n.set(m$,o);const s=e[t];if(s!==void 0){const r=new i;r.add(s),n.set(l8,r)}else n.delete(l8)}function a8(){const e=v$();e?.delete(m$),e?.delete(l8)}let y$=null;function Rce(e){e!==null&&(y$=e)}let k_=0,Em=null;async function u8(e){const t=++k_,n=(async()=>{const o=await e();t===k_&&Rce(o)})(),i=(async()=>{await n,Em!==null&&Em.seq>t&&await Em.promise})();return Em={seq:t,promise:i},i}let k$=null;function zce(e){k$=e}const Oce=5e3;function Pce(e){return Promise.race([e(),new Promise(t=>{setTimeout(()=>t(null),Oce)})])}function Tm(){return`${y$==="global"?"https://www.kimi.ai":"https://www.kimi.com"}/code?from=${bf?"kimi_code_desktop":"kimi_code_web"}`}function sg(){const e=k$;if(e===null){window.open(Tm(),"_blank","noopener");return}const t=()=>Pce(e);if(bf){u8(t).then(()=>{window.open(Tm(),"_blank","noopener")});return}const n=window.open("","_blank");if(n===null){window.open(Tm(),"_blank","noopener");return}try{n.opener=null}catch{}u8(t).then(()=>{try{n.location.href=Tm()}catch{}})}function jce(e,t,n){if(e.length===0)return null;const i=new Set(e),o=t.filter(r=>i.has(r)),s=e.filter(r=>!t.includes(r));return s.length===0&&o.length===t.length?null:t.length===0&&n!==void 0?s.toSorted((r,l)=>(n.get(l)??Number.NEGATIVE_INFINITY)-(n.get(r)??Number.NEGATIVE_INFINITY)):[...s,...o]}function Hce(e,t){const n=new Map(t.map((i,o)=>[i,o]));return e.toSorted((i,o)=>(n.get(i.id)??-1)-(n.get(o.id)??-1))}function Wce(e,t,n,i="before"){const o=e.indexOf(t),s=e.indexOf(n);if(o===-1||s===-1||o===s)return e;const r=[...e];r.splice(o,1);const l=o(t.get(i.id)??Number.NEGATIVE_INFINITY)-(t.get(n.id)??Number.NEGATIVE_INFINITY))}function Uce(e,t){let n=!1;const i={...e};for(const[o,s]of t)s>(i[o]??Number.NEGATIVE_INFINITY)&&(i[o]=s,n=!0);return{next:i,changed:n}}function Kce(e,t){const n=new Map;for(const i of e){if(i.parentSessionId||i.archived)continue;const o=new Date(i.updatedAt).getTime();if(Number.isNaN(o))continue;const s=t(i);o>(n.get(s)??Number.NEGATIVE_INFINITY)&&n.set(s,o)}return n}function Vce(e,t){const n=new Map;for(const i of e){const o=t[i.id]??Number.NEGATIVE_INFINITY,s=i.lastOpenedAt?Date.parse(i.lastOpenedAt):Number.NaN,r=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s;n.set(i.id,Math.max(o,r))}return n}function Zce(e,t){const n=Object.keys(e);if(!n.some(o=>!t.has(o)))return{next:e,changed:!1};const i={};for(const o of n)t.has(o)&&(i[o]=e[o]);return{next:i,changed:!0}}const Gce=5;function Qce(e,t,n,i=Gce){if(e.length<=i)return e;const o=e.slice(0,i);if(t&&!o.some(s=>s.id===t)){const s=e.find(r=>r.id===t);s&&(o[i-1]=s)}return o}const Yce={class:"sd-body"},Jce={class:"sd-search"},Xce=["aria-label"],ede={key:0,class:"sd-section","aria-hidden":"true"},tde={class:"sd-section-count"},nde=["aria-selected","onClick","onMousemove"],ide=["innerHTML"],ode=["innerHTML"],sde=["aria-selected","onClick","onMousemove"],rde={class:"sd-line1"},lde=["innerHTML"],ade={class:"sd-time"},ude={class:"sd-line2"},cde=["innerHTML"],dde=["innerHTML"],fde={key:1,class:"sd-empty"},hde={class:"sd-foot","aria-hidden":"true"},pde={class:"sd-hint"},gde={class:"sd-hint"},mde={class:"sd-hint"},vde=200,yde=3,kde=Xe({__name:"SearchSessionsDialog",props:{sessions:{},workspaces:{},activeId:{}},emits:["select","selectWorkspace","close"],setup(e,{emit:t}){const{t:n}=zt(),i=e,o=t,s=K(!0),r=K(""),l=K(null),a=K(null),u=F(()=>{const x=r.value.trim().toLowerCase(),_=[];if(x.length===0)for(const M of i.workspaces.slice(0,yde))_.push({kind:"workspace",key:`ws:${M.id}`,hit:{workspace:M,inName:!1,inPath:!1}});else for(const M of i.workspaces){const N=M.name.toLowerCase().includes(x),I=M.shortPath.toLowerCase().includes(x);!N&&!I||_.push({kind:"workspace",key:`ws:${M.id}`,hit:{workspace:M,inName:N,inPath:I}})}const L=[];for(const M of i.sessions){const N=M.title??"",I=M.lastPrompt??"",z=M.workspaceName??"",H=x.length>0&&N.toLowerCase().includes(x),O=x.length>0&&I.toLowerCase().includes(x),R=x.length>0&&z.toLowerCase().includes(x);if(!(x.length>0&&!H&&!O&&!R)&&(L.push({kind:"session",key:`s:${M.id}`,hit:{session:M,inTitle:H,inWorkspace:R,snippetText:I?Zle(I,r.value):""}}),L.length>=vde))break}return _.length>0&&L.length>0&&(_[0].section={label:n("sidebar.workspaces"),count:_.length},L[0].section={label:n("sidebar.sessionsHeader"),count:L.length}),[..._,...L]}),c=K(0);Pe(r,()=>{c.value=0});function d(x){const _=u.value.length;return _===0?0:Math.max(0,Math.min(_-1,x))}async function h(){await dt(),a.value?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})}function p(x){c.value=d(c.value+x),h()}function g(x){o("select",x),o("close")}function m(x){o("selectWorkspace",x),o("close")}function k(){r.value="",l.value?.focus()}function w(){const x=u.value[c.value];x&&(x.kind==="workspace"?m(x.hit.workspace.id):g(x.hit.session.id))}function y(){return l.value?.el??null}const{handleCompositionStart:b,handleCompositionEnd:A,isComposingKeyEvent:T}=bl();function S(x){if(T(x)){x.key==="Escape"&&x.stopPropagation();return}x.key==="ArrowDown"?(x.preventDefault(),p(1)):x.key==="ArrowUp"?(x.preventDefault(),p(-1)):x.key==="Enter"&&(x.preventDefault(),w())}return cn(()=>{l.value?.focus()}),(x,_)=>(v(),ce(f(Pc),{open:s.value,"onUpdate:open":_[1]||(_[1]=L=>s.value=L),title:f(n)("sidebar.searchPlaceholder"),size:"lg",height:"fixed",padded:!1,"initial-focus":y,onClose:_[2]||(_[2]=L=>o("close"))},{default:de(()=>[C("div",Yce,[C("div",Jce,[U(f(Ns),{ref_key:"inputRef",ref:l,modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=L=>r.value=L),placeholder:f(n)("sidebar.searchPlaceholder"),autocomplete:"off",spellcheck:"false",onKeydown:S,onCompositionstart:f(b),onCompositionend:f(A)},null,8,["modelValue","placeholder","onCompositionstart","onCompositionend"]),U(f(gn),{text:f(n)("sidebar.searchClear")},{default:de(()=>[C("button",{type:"button",class:Fe(["search-clear",{"is-on":r.value.length>0}]),tabindex:"-1","aria-label":f(n)("sidebar.searchClear"),onClick:k},[U(f(ve),{name:"close",size:"sm"})],10,Xce)]),_:1},8,["text"])]),C("div",{ref_key:"listRef",ref:a,class:"sd-list",role:"listbox"},[u.value.length>0?(v(!0),E(Ee,{key:0},pt(u.value,(L,M)=>(v(),E(Ee,{key:L.key},[L.section?(v(),E("div",ede,[C("span",null,D(L.section.label),1),C("span",tde,D(L.section.count),1)])):X("",!0),L.kind==="workspace"?(v(),E("button",{key:1,class:Fe(["sd-row sd-row-ws",{on:M===c.value}]),role:"option","aria-selected":M===c.value,onClick:N=>m(L.hit.workspace.id),onMousemove:N=>c.value=M},[U(f(ve),{class:"sd-folder",name:"folder-closed",size:"sm"}),C("span",{class:"sd-ws-name",innerHTML:f(K1)(L.hit.workspace.name,L.hit.inName?r.value:"")},null,8,ide),C("span",{class:"sd-ws-path",innerHTML:f(K1)(L.hit.workspace.shortPath,L.hit.inPath?r.value:"")},null,8,ode)],42,nde)):(v(),E("button",{key:2,class:Fe(["sd-row",{on:M===c.value,active:L.hit.session.id===e.activeId}]),role:"option","aria-selected":M===c.value,onClick:N=>g(L.hit.session.id),onMousemove:N=>c.value=M},[C("span",rde,[C("span",{class:"sd-title",innerHTML:f(K1)(L.hit.session.title,L.hit.inTitle?r.value:"")},null,8,lde),C("span",ade,D(L.hit.session.time),1)]),C("span",ude,[C("span",{class:"sd-meta-ws",innerHTML:f(K1)(L.hit.session.workspaceName??L.hit.session.workspaceId??"",L.hit.inWorkspace?r.value:"")},null,8,cde),L.hit.snippetText?(v(),E(Ee,{key:0},[_[3]||(_[3]=C("span",{class:"sd-meta-sep","aria-hidden":"true"},"·",-1)),C("span",{class:"sd-meta-snippet",innerHTML:f(K1)(L.hit.snippetText,r.value)},null,8,dde)],64)):X("",!0)])],42,sde))],64))),128)):(v(),E("div",fde,[U(f(WQ),{title:r.value.trim()?f(n)("sidebar.searchNoResults"):f(n)("sidebar.searchEmpty")},{icon:de(()=>[U(f(ve),{name:"search",size:"lg"})]),_:1},8,["title"])]))],512),C("div",hde,[C("span",pde,[U(f(ku),{keys:["↑","↓"]}),$e(D(f(n)("sidebar.searchHintSelect")),1)]),_[4]||(_[4]=C("span",{class:"sd-dot"},"·",-1)),C("span",gde,[U(f(ku),{keys:["Enter"]}),$e(D(f(n)("sidebar.searchHintOpen")),1)]),_[5]||(_[5]=C("span",{class:"sd-dot"},"·",-1)),C("span",mde,[U(f(ku),{keys:["Esc"]}),$e(D(f(n)("sidebar.searchHintClose")),1)])])])]),_:1},8,["open","title"]))}}),bde=kt(kde,[["__scopeId","data-v-5bf43f78"]]),Ade=640,Cde=`(max-width: ${Ade}px)`;function rg(){const e=K(!1);if(typeof window>"u"||typeof window.matchMedia!="function")return e;const t=window.matchMedia(Cde);e.value=t.matches;const n=i=>{e.value=i.matches};return typeof t.addEventListener=="function"?(t.addEventListener("change",n),_n(()=>t.removeEventListener("change",n))):typeof t.addListener=="function"&&(t.addListener(n),_n(()=>t.removeListener(n))),e}const b$=K(typeof window>"u"?0:window.innerWidth);let Lm=0,I2=!1;function c8(){b$.value=window.innerWidth}function wde(){I2||typeof window>"u"||(window.addEventListener("resize",c8),I2=!0,c8())}function xde(){!I2||typeof window>"u"||(window.removeEventListener("resize",c8),I2=!1)}function A$(e,t,n){return Math.max(t,e-n)}function d8(e,t,n){return Math.min(n,Math.max(t,e))}function C$(){return cn(()=>{Lm+=1,wde()}),Hn(()=>{Lm=Math.max(0,Lm-1),Lm===0&&xde()}),{viewportWidth:b$}}const Sde=24;function _de(e){const t=K(null),n=K(!0);let i=null,o=null,s=null,r=0,l=0,a=!1,u=0;function c(){const k=t.value;k&&(k.scrollTop=Math.max(k.scrollTop,r))}function d(){const w=t.value?.firstElementChild??null;w!==s&&(s&&i?.unobserve(s),s=w,w&&i?.observe(w))}function h(){const k=t.value;!k||a||(n.value=r-k.scrollTop-lp(k));return}requestAnimationFrame(()=>{requestAnimationFrame(()=>p(k))})}function m(){const k=t.value;k&&(i?.disconnect(),o?.disconnect(),s=null,a=!1,u++,r=0,l=0,typeof ResizeObserver=="function"?(i=new ResizeObserver(()=>{const w=t.value;if(!w)return;const{scrollHeight:y,clientHeight:b}=w,A=y>r+1,T=b{n.value=!0,dt(m)}),Pe(t,()=>void dt(m)),cn(()=>void dt(m)),_n(()=>{u++,i?.disconnect(),o?.disconnect()}),{scroller:t,following:n,onScroll:h,pinScroll:g}}function Mde(e){try{const t=gs(e);if(t===null)return null;const n=Number(t);return Number.isFinite(n)?n:null}catch{return null}}function Ide(e,t){try{is(e,String(t))}catch{}}function w$(e){const{storageKey:t,defaultWidth:n,min:i,max:o,reverse:s=!1,axis:r="x",applyLive:l,persist:a}=e;function u(z){return Number.isFinite(z)?Math.min(Yl(o),Math.max(Yl(i),Math.round(z))):n}const c=K(u(Mde(t)??n)),d=K(!1);function h(z){const H=z<=Yl(i),O=z>=Yl(o),R=r==="x"?"col-resize":"row-resize";if(H&&O)return R;const[j,$]=r==="x"?["e-resize","w-resize"]:["s-resize","n-resize"];return O?s?j:$:H?s?$:j:R}const p=K(null),g=F(()=>h(p.value??c.value));function m(z){typeof document>"u"||(document.body.style.cursor=h(z))}function k(z){a&&!a()||Ide(t,z)}function w(z){const H=u(z);c.value=H,k(H)}Pe(()=>Yl(o),z=>{!d.value&&c.value>z&&w(z)}),Pe(()=>Yl(i),z=>{!d.value&&c.valuet.value!==null&&(n.value||i.value||o.value||s.value));function l(){const k=e.value;if(!k){t.value=null;return}const w=Ede(k.scrollTop,k.scrollHeight,k.clientHeight,b3(k,"--overlay-scrollbar-track-inset",0),b3(k,"--overlay-scrollbar-thumb-min",24)),y=w===null?null:{top:k.offsetTop+w.top,height:w.height},b=t.value;b!==null&&y!==null&&b.top===y.top&&b.height===y.height||(t.value=y)}let a=null;function u(){o.value=!0,a&&clearTimeout(a),a=setTimeout(()=>{o.value=!1,a=null},Tde)}let c=null;function d(k){const w=e.value,y=t.value;if(!w||!y)return;k.preventDefault(),c?.();const b=k.pointerId;k.target.setPointerCapture?.(k.pointerId);const A=b3(w,"--overlay-scrollbar-track-inset",0),T=w.clientHeight-A*2-y.height,S=w.scrollHeight-w.clientHeight,x=k.clientY,_=w.scrollTop;s.value=!0;const L=I=>{I.pointerId!==b||T<=0||(w.scrollTop=_+(I.clientY-x)/T*S)},M=I=>{I.pointerId===b&&N()},N=()=>{window.removeEventListener("pointerup",M),window.removeEventListener("pointermove",L),window.removeEventListener("pointercancel",M),s.value=!1,c===N&&(c=null)};c=N,window.addEventListener("pointermove",L),window.addEventListener("pointerup",M),window.addEventListener("pointercancel",M)}function h(){n.value=!0}function p(){n.value=!1}function g(){i.value=!0}function m(){i.value=!1}return Hn(()=>{a&&clearTimeout(a),c?.()}),{thumb:t,thumbVisible:r,scrolling:o,update:l,markScrolling:u,onThumbPointerDown:d,onListMouseEnter:h,onListMouseLeave:p,onThumbMouseEnter:g,onThumbMouseLeave:m}}const na=K(null),Lh=K(!1),Lde=F(()=>na.value!==null);function z6(e){const t=na.value;!t||Lh.value||(na.value=null,t.resolve(e))}async function Nde(){const e=na.value;if(!(!e||Lh.value)){if(!e.action){z6(!0);return}Lh.value=!0;try{await e.action(),na.value===e&&(na.value=null),e.resolve(!0)}catch(t){na.value===e&&(na.value=null),e.reject(t)}finally{Lh.value=!1}}}function Fde(e){return Lh.value?Promise.resolve(!1):(na.value&&z6(!1),new Promise((t,n)=>{na.value={...e,resolve:t,reject:n}}))}function Vc(){return{current:na,busy:Lh,isConfirmOpen:Lde,confirm:Fde,settle:z6,runAction:Nde}}function Dde(e){const{sessionId:t}=e;function n(a){return gs(h_(a))??""}function i(a,u){const c=h_(a);u?is(c,u):_r(c)}const o=K(n(t())),s=K(null);Pe(o,a=>{i(t(),a)}),Pe(t,(a,u)=>{a!==u&&(i(u,o.value),o.value=n(a))});function r(a){o.value=a,dt(()=>{const u=s.value;if(!u)return;u.focus();const c=a.length;u.setSelectionRange(c,c)})}function l(){i(t(),"")}return{text:o,editorRef:s,loadForEdit:r,clearDraft:l}}function Bde(e){return e?e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable===!0:!1}function $de(e){const{sessionId:t,mobile:n,starting:i,dockedComposer:o,emptyComposer:s}=e,r=K(!1);Pe(t,()=>{n()||(r.value=!0)}),Pe([r,o,s,i],()=>{if(!r.value)return;const l=o.value??s.value;if(!l)return;const a=typeof document<"u"?document.activeElement:null;if(Bde(a)){r.value=!1;return}l.focus(),(typeof document>"u"||document.activeElement!==a)&&(r.value=!1)},{flush:"post"})}const E2=100;function Rde(e){const t=Kc(un.inputHistory);if(Array.isArray(t)){const n=t.filter(s=>typeof s=="string"&&s.length>0);if(!e||n.length===0)return{};const i=n.length>E2?n.slice(-E2):n,o={[e]:i};return Lu(un.inputHistory,o),o}return t&&typeof t=="object"?t:{}}function zde(e){const{text:t,editorRef:n,sessionId:i}=e,o=K(Rde(i())),s=F(()=>o.value[i()??""]??[]);let r=-1,l="";function a(k){const w=i();if(r=-1,!w)return;const y=k.trim();if(!y)return;const b=o.value[w]??[];if(b.at(-1)===y)return;const A=[...b,y],T=A.length>E2?A.slice(-E2):A;o.value={...o.value,[w]:T},Lu(un.inputHistory,o.value)}function u(){const k=n.value;return k?(k.selectionStart??0)===0:!1}function c(k){t.value=k,dt(()=>{const w=n.value;if(!w)return;const y=k.length;w.setSelectionRange(y,y)})}function d(){const k=s.value;if(k.length!==0){if(r===-1)l=t.value,r=k.length-1;else if(r>0)r-=1;else return;c(k[r])}}function h(){if(r===-1)return;const k=s.value;r0}return Pe(i,()=>{r=-1}),{push:a,caretAtTextStart:u,recallOlder:d,recallNewer:h,resetBrowsing:p,isBrowsing:g,hasHistory:m}}function Ode(e){const{text:t,editorRef:n,skills:i,emitCommand:o,historyPush:s,clearDraft:r,resolveDesc:l}=e,a=K(!1),u=K([]),c=K([]),d=K(0);function h(){const g=t.value;if(/^\/\S*$/.test(g)){const m=ace(g,c$(i()),l);u.value=m.map(k=>k.item),c.value=m.map(k=>k.ranges),d.value=0,a.value=!0}else a.value=!1}function p(g){if(a.value=!1,g.acceptsInput){t.value=`${g.name} `,dt(()=>{const m=n.value;if(!m)return;const k=t.value.length;m.setSelectionRange(k,k),m.focus()});return}t.value="",r?.(),s(g.name),o(g.name)}return{open:a,items:u,ranges:c,active:d,update:h,select:p}}function Pde(e){const t=e.toLowerCase(),n=[];let i=0;for(const o of e){const s=o.toLowerCase().length;for(let r=0;r=3&&S$(e,t)!==null?1:0}function b_(e,t){const n=t.toLowerCase(),i=[];for(const o of e){const{lower:s,map:r}=Pde(o.name),l=jde(s,n);if(l===0)continue;const a=l>=2?Array.from({length:n.length},(u,c)=>s.indexOf(n)+c):S$(s,n);i.push({skill:o,tier:l,positions:a.map(u=>r[u])})}return i}function Hde(e,t){return t.includes("/")?!0:e.name.toLowerCase().includes(t)}function A_(e){return e.kind==="directory"||e.path.endsWith("/")?"folder":"file"}function Wde(e){const{text:t,editorRef:n,searchFiles:i,skills:o,insertMention:s}=e,r=K(!1),l=K([]),a=K(""),u=K(!1),c=K([]),d=K(0),h=K(!1),p=F(()=>{const O=a.value,R=[],j=[];for(const ae of l.value){const V={kind:A_(ae),file:ae};(Hde(ae,O)?R:j).push(V)}const $=[],W=[],P=[],Z=[];for(const{skill:ae,tier:V,positions:Y}of c.value){const oe={kind:"skill",skill:ae,matchPositions:Y};V===4?$.push(oe):V===3?W.push(oe):V===2?P.push(oe):Z.push(oe)}return[...$,...W,...R,...P,...Z,...j]});let g=0,m=null,k=!1;function w(){const O=t.value,R=n.value?.selectionStart??O.length,j=n.value?.inlineTextRunStart?.()??0;let $=R-1;for(;$>=j&&!/\s/.test(O[$]);)$--;$++,$=Math.max($,j);const W=O.slice($,R);return!W.startsWith("@")&&!W.startsWith("@")?null:{token:W.slice(1),start:$,end:R}}function y(O){return O.kind==="skill"?`skill:${O.skill.name}`:`${O.kind}:${O.file.path}`}let b=!1,A=!1;Pe(d,()=>{A||(b=!0)},{flush:"sync"});function T(O){A=!0,d.value=O,A=!1}function S(O){b=!0,T(O)}function x(O){if(O===null||!b){T(0);return}const R=p.value.findIndex(j=>y(j)===O);T(R===-1?0:R)}function _(O,R){const j=p.value[d.value],$=j?y(j):null;u.value=!1,a.value=R.toLowerCase(),l.value=O,x($)}async function L(O,R){const j=++g,$=performance.now();h.value=!0,r.value=!0;const W=()=>{const P=w();return j===g&&P!==null&&P.token===R&&r.value};try{const P=await O(R);W()&&_(P,R)}catch{W()&&_([],R)}finally{W()&&(console.debug(`[mention] search "${R}" → ${l.value.length} items in ${Math.round(performance.now()-$)}ms`),h.value=!1)}}function M(){const O=w(),R=i();if(k=!1,b=!1,!O){m=null,r.value=!1,h.value=!1,u.value=!1;return}const j=O.token;if(j!==m&&(l.value.length>0&&(u.value=!0),g+=1),m=j,c.value=j.length>0?b_(o?.()??[],j):[],T(0),!R){l.value=[],h.value=!1,u.value=!1,r.value=c.value.length>0;return}if(j.length===0){L(R,j);return}c.value.length>0&&(r.value=!0),L(R,j)}function N(){const O=w();if(!O)return;const R=p.value[d.value],j=R?y(R):null;c.value=O.token.length>0?b_(o?.()??[],O.token):[],x(j)}Pe(()=>o?.(),()=>{k||N()});function I(O){if(O.kind==="skill")return{kind:"skill",name:O.skill.name};const R=O.file.path;return{kind:A_(O.file),path:R,name:O.file.name||R.split("/").filter(Boolean).pop()||R}}function z(){k=!0,b=!1,r.value=!1,h.value=!1,u.value=!1,l.value=[],m=null,g+=1}function H(O){const R=w();if(!R||O.kind!=="skill"&&u.value)return;if(z(),s){s(I(O),{start:R.start,end:R.end});return}if(O.kind==="skill")return;const j=t.value;t.value=j.slice(0,R.start)+O.file.path+j.slice(R.end),dt(()=>{const $=n.value;if(!$)return;const W=R.start+O.file.path.length;$.setSelectionRange(W,W),$.focus()})}return{open:r,items:p,fileItems:l,fileStale:u,skillItems:c,active:d,loading:h,update:M,close:z,select:H,navigate:S,getToken:w}}const qde="kimi-web.file-preview-width",sh=320;function Ude({client:e,sideWidth:t,detailTarget:n,closeFilePreview:i}){const{viewportWidth:o}=C$(),s=F(()=>Math.max(0,o.value-t.value)),r=F(()=>A$(s.value,sh,sh));function l(se){return d8(Math.round(se),sh,r.value)}function a(){return l(s.value/2)}const u=F(()=>a()),c=K(u.value),d=F(()=>d8(c.value,sh,r.value)),h=K(null),p=F(()=>{const se=h.value;if(!se)return null;const re=e.turns.value.find(G=>G.id===se.turnId);return re?.role==="compaction"&&re.text?re.text:null}),g=F(()=>p.value!==null);function m(se){if(h.value?.turnId===se.turnId){h.value=null,n.value==="compaction"&&(n.value=null);return}n.value="compaction",h.value=se}function k(){h.value=null,n.value==="compaction"&&(n.value=null)}const w=K(null),y=F(()=>{const se=w.value;if(!se)return{entry:void 0,version:0};const re=e.auxiliaryTranscripts.getEntry(se.sessionId,se.subagentId);return{entry:re,version:re?.version.value??0}});function b(se){const re=e.turns.value.flatMap(G=>G.tools??[]).find(G=>G.agentId===se);if(!re)return{};try{const G=JSON.parse(re.arg);return{name:typeof G.description=="string"?G.description:void 0,subagentType:typeof G.subagent_type=="string"?G.subagent_type:void 0,status:re.status,outputLines:re.output}}catch{return{}}}const A=F(()=>{const se=w.value;if(!se)return null;const re=e.activeAppTasks.value.find(Ct=>Ct.agentId===se.subagentId||Ct.id===se.subagentId||Ct.backgroundTaskId===se.subagentId);if(re)return mse(re,e.findBashCommandForTask(re));const G=y.value.entry?.channel,le=G?.agents.find(Ct=>Ct.agentId===se.subagentId),ge=G?.refreshError??!1,ke=G===void 0||G.loading,Ie=G?.snapshot.meta.activity==="turn",Oe=b(se.subagentId),we=G?.snapshot.items.findLast(Ct=>Ct.kind==="turn"),Be=we?.kind==="turn"&&we.state==="cancelled",tt=we?.kind==="turn"&&we.state==="failed"||Oe.status==="error",ut=Ie?"working":Be?"cancelled":tt?"failed":ke?"queued":ge&&Oe.status===void 0?"failed":"completed",_t=Ie?"running":Be?"cancelled":tt?"failed":ke?"running":ge&&Oe.status===void 0?"failed":"completed";return{id:se.subagentId,name:le?.label??Oe.name??se.subagentId,subagentType:Oe.subagentType??(le?.type==="sub"?"subagent":le?.type),phase:ut,status:_t,outputLines:Oe.outputLines}}),T=F(()=>{const se=y.value.entry;if(!se)return[];const re=w.value,G=se.channel.agents.find(le=>le.agentId===re?.subagentId);return Ise(se.channel.snapshot,e.getFileUrl,G,{sessionId:re?.sessionId,getSessionMediaUrl:e.getSessionMediaUrl})}),S=F(()=>y.value.entry?.channel.loading??!1),x=F(()=>y.value.entry?.channel.refreshError??!1),_=F(()=>y.value.entry?.channel.loadingOlder??!1),L=F(()=>y.value.entry?.channel.loadOlderError??!1),M=F(()=>y.value.entry?.channel.snapshot.hasMoreOlder??!1),N=F(()=>y.value.entry?.channel.snapshot.meta.activity==="turn"),I=F(()=>A.value!==null);function z(se){const re=e.activeAppTasks.value.find(G=>G.agentId===se||G.id===se||G.backgroundTaskId===se);return!re||re.kind==="subagent"&&re.agentId===se}function H(se){return e.activeAppTasks.value.find(G=>G.agentId===se||G.id===se||G.backgroundTaskId===se)?.agentId??se}function O(se){const re=e.activeSessionId.value;if(!se||!re)return;const G=H(se);if(n.value==="agent"&&w.value?.sessionId===re&&w.value.subagentId===G){R();return}const le=w.value;le&&le.subagentId!==G&&e.auxiliaryTranscripts.deactivate(le.sessionId,le.subagentId),w.value={sessionId:re,subagentId:G},n.value="agent",z(G)&&e.auxiliaryTranscripts.activate(re,G)}Pe(()=>e.activeAppTasks.value,se=>{const re=w.value;if(!re)return;const G=se.find(le=>le.backgroundTaskId===re.subagentId&&le.agentId!==void 0);!G||G.agentId===re.subagentId||(e.auxiliaryTranscripts.deactivate(re.sessionId,re.subagentId),w.value={sessionId:re.sessionId,subagentId:G.agentId},n.value==="agent"&&e.auxiliaryTranscripts.activate(re.sessionId,G.agentId))});function R(){const se=w.value;se&&e.auxiliaryTranscripts.deactivate(se.sessionId,se.subagentId),w.value=null,n.value==="agent"&&(n.value=null)}Pe(n,(se,re)=>{if(re!=="agent"||se==="agent")return;const G=w.value;G&&e.auxiliaryTranscripts.deactivate(G.sessionId,G.subagentId)});function j(){const se=y.value.entry;se&&se.channel.loadOlder().catch(()=>{})}const $=K("list"),W=K(null);function P(){if(n.value==="diff"){Z();return}n.value="diff",$.value="list",W.value=null,e.loadGitStatus(e.activeSessionId.value)}function Z(){n.value==="diff"&&(n.value=null),$.value="list",W.value=null,e.clearFileDiff()}async function ae(se){$.value="detail",W.value=se,await e.loadFileDiff(se)}const V=ha(null);function Y(se){if(V.value===se&&n.value==="turn-diff"){oe();return}V.value=se,n.value="turn-diff"}function oe(){V.value=null,n.value==="turn-diff"&&(n.value=null)}async function q(se){if(!e.activeSessionId.value&&e.activeWorkspaceId.value){const re=await e.startSessionAndOpenSideChat(e.activeWorkspaceId.value,se);return n.value="btw",re}return await e.openSideChat(se),n.value="btw",null}function ne(){e.closeSideChat(),n.value==="btw"&&(n.value=null)}function ie(){n.value==="btw"&&(n.value=null)}const pe=F(()=>e.sideChatVisible.value),Ne=F(()=>n.value!==null&&(n.value!=="compaction"||g.value)&&(n.value!=="agent"||I.value)&&(n.value!=="btw"||pe.value)),te=K(!1),be=K({});function Q(){switch(n.value){case"compaction":return h.value?{kind:"compaction",...h.value}:null;case"agent":return w.value?{kind:"agent",...w.value}:null;case"btw":return{kind:"btw"};default:return null}}function ue(se){if(se)switch(se.kind){case"compaction":h.value={turnId:se.turnId},n.value="compaction";break;case"agent":if(e.activeSessionId.value){const re=H(se.subagentId);w.value={sessionId:e.activeSessionId.value,subagentId:re},n.value="agent",z(re)&&e.auxiliaryTranscripts.activate(e.activeSessionId.value,re)}break;case"btw":e.sideChatVisible.value&&(n.value="btw");break}}function Ae(){return n.value==="compaction"&&g.value?(k(),!0):n.value==="agent"&&I.value?(R(),!0):n.value==="file"?(i(),!0):n.value==="diff"?(Z(),!0):n.value==="turn-diff"?(oe(),!0):n.value==="btw"?(ne(),!0):!1}return Pe(e.activeSessionId,(se,re)=>{if(re){const G=Q();G?be.value[re]=G:delete be.value[re]}i(),k(),R(),Z(),oe(),ie(),se&&ue(be.value[se])}),{PREVIEW_WIDTH_KEY:qde,PREVIEW_MIN:sh,previewDefaultWidth:u,previewMax:r,previewWidth:c,previewPanelWidth:d,compactionPanelText:p,compactionPanelVisible:g,openCompactionPanel:m,closeCompactionPanel:k,agentPanelMember:A,agentPanelTurns:T,agentPanelLoading:S,agentPanelLoadError:x,agentPanelLoadingMore:_,agentPanelLoadMoreError:L,agentPanelHasMore:M,agentPanelRunning:N,agentPanelVisible:I,openAgentPanel:O,closeAgentPanel:R,loadOlderAgentMessages:j,detailDiffMode:$,detailDiffPath:W,openDiffDetail:P,closeDiffDetail:Z,selectDiffFile:ae,turnDiffChange:V,openTurnDiff:Y,closeTurnDiff:oe,btwVisible:pe,openSideChatTab:q,closeSideChat:ne,hideSideChatPanel:ie,sidePanelVisible:Ne,panelDragging:te,closeOpenSidePanel:Ae}}const Kde=un.sidebarWidth,C_=un.sidebarCollapsed,w_=270,A3=220,Vde=480,Zde=320;function Gde(e={}){const{viewportWidth:t}=C$(),n=K(w_),i=K(!1),o=K(!1),s=F(()=>{const c=Zde+(Yl(e.previewOpen)?sh:0);return Math.min(Vde,A$(t.value,A3,c))}),r=F(()=>d8(n.value,A3,s.value));function l(){try{i.value=gs(C_)==="true"}catch{i.value=!1}}function a(){try{is(C_,String(i.value))}catch{}}function u(){i.value=!i.value,a()}return{SIDEBAR_WIDTH_KEY:Kde,SIDEBAR_DEFAULT:w_,SIDEBAR_MIN:A3,sidebarMax:s,sessionColWidth:n,sidebarCollapsed:i,sidebarDragging:o,sideWidth:r,loadSidebarCollapsed:l,toggleSidebarCollapse:u}}const Qde=40409;function x_(e){return ko(e)&&e.code===Qde}function S_(e){return e.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(e)||e.startsWith("\\\\")}function __(e){if(e.startsWith("\\\\"))return e;const t=/^[a-zA-Z]:/.test(e)?e.slice(0,2):"",n=[];for(const i of e.slice(t.length).split(/[\\/]+/))if(!(!i||i===".")){if(i===".."){n.pop();continue}n.push(i)}return t?`${t}/${n.join("/")}`:`/${n.join("/")}`}function Yde({client:e,detailTarget:t,t:n}){const i=K(null),o=K(null),s=K(!1),r=K(null),l=K(null);let a=0;const u=F(()=>{const A=l.value;return A?e.getFileDownloadUrl(A):null}),c=F(()=>i.value!==null&&l.value!==null);function d(A){return A.length>1?A.replace(/\/+$/,""):A}function h(A){const T=d9(A,e.status.value.cwd);return T===null||T.split(/[\\/]+/).includes("..")?null:p(T)||null}function p(A){const T=[];for(const S of A.split(/[\\/]+/))if(!(!S||S===".")){if(S===".."){T.pop();continue}T.push(S)}return T.join("/")}function g(A){const T=A.trim();if(!T)return{error:n("filePreview.errors.emptyPath")};if(/^[a-z][a-z0-9+.-]*:\/\//i.test(T))return{error:n("filePreview.errors.unsupportedPath")};if(T.startsWith("~"))return{error:n("filePreview.errors.outsideWorkspace")};const S=d(e.status.value.cwd);if(T.startsWith("/")){if(!S||T!==S&&!T.startsWith(`${S}/`))return{error:n("filePreview.errors.outsideWorkspace")};const _=T===S?"":T.slice(S.length+1);if(_.split(/[\\/]+/).includes(".."))return{error:n("filePreview.errors.outsideWorkspace")};const L=p(_);return L?{path:L}:{error:n("filePreview.errors.isDirectory")}}if(T.split(/[\\/]+/).includes(".."))return{error:n("filePreview.errors.outsideWorkspace")};const x=p(T);return x?{path:x}:{error:n("filePreview.errors.emptyPath")}}async function m(A){const T=i.value;if(t.value==="file"&&T&&T.path===A.path&&T.line===A.line&&(T.content??"")===(A.content??"")){w();return}const S=++a;if(t.value="file",o.value=null,r.value=null,s.value=!0,i.value=A,l.value=null,typeof A.content=="string"){s.value=!1,o.value={path:A.path,content:A.content,encoding:"utf-8",mime:"text/markdown",isBinary:!1,size:A.content.length};return}if(!S_(A.path)&&A.path.split(/[\\/]+/).includes("..")){const _=d(e.status.value.cwd);_&&(A={...A,path:__(`${_}/${A.path}`)})}if(S_(A.path)){A={...A,path:__(A.path)};const _=h(A.path);if(_!==null)A={...A,path:_};else{try{const L=await e.readHostFileContent(A.path);if(S!==a)return;l.value=null,o.value={path:A.path,content:L.content,encoding:L.encoding,mime:L.mime,isBinary:L.isBinary,size:L.size}}catch(L){if(S!==a)return;r.value=x_(L)?n("filePreview.errors.notFound"):RY(L)?n("filePreview.errors.tooLarge"):L instanceof Error?L.message:n("filePreview.errors.loadFailed")}finally{S===a&&(s.value=!1)}return}}const x=g(A.path);if("error"in x){s.value=!1,r.value=x.error;return}l.value=x.path;try{const _=await e.readFileContent(x.path);if(S!==a)return;_?o.value={..._,path:_.path||x.path}:r.value=n("filePreview.errors.loadFailed")}catch(_){if(S!==a)return;r.value=x_(_)?n("filePreview.errors.notFound"):_ instanceof Error?_.message:n("filePreview.errors.loadFailed")}finally{S===a&&(s.value=!1)}}function k(){a+=1,i.value=null,l.value=null,o.value=null,r.value=null,s.value=!1}function w(){k(),t.value==="file"&&(t.value=null)}Pe(t,(A,T)=>{T==="file"&&A!=="file"&&k()});function y(){const A=o.value?.path??i.value?.path;A&&e.openWorkspaceFile(A,i.value?.line)}function b(){const A=o.value?.path??i.value?.path;A&&e.revealWorkspaceFile(A)}return{previewTarget:i,previewFile:o,previewLoading:s,previewError:r,previewDownloadUrl:u,previewExternalActions:c,openFilePreview:m,closeFilePreview:w,openPreviewInEditor:y,revealPreviewFile:b}}function Jde(e){const t=e.replace(/[/\\]+$/,"");return t===""?e:t.split(/[/\\]/).pop()??t}function Xde(e,t){return e!==""?e:t?`${Jde(t)} | Kimi Code`:"Kimi Code"}function efe(e){return F(()=>Xde(Yl(e.webTitle),Yl(e.activeWorkspaceRoot)))}function tfe({running:e,title:t="Kimi Code"}){if(bf){Zk(()=>{typeof document<"u"&&(document.title=Yl(t))});return}const n=["◐","◓","◑","◒"],i=K(0);let o=null;function s(){o===null&&(i.value=0,o=setInterval(()=>{i.value=(i.value+1)%n.length},250))}function r(){o!==null&&(clearInterval(o),o=null),i.value=0}Pe(e,a=>{a?s():r()},{immediate:!0});const l=F(()=>`${e.value?`${n[i.value]} `:""}${Yl(t)}`);Zk(()=>{typeof document<"u"&&(document.title=l.value)}),_n(()=>{r()})}function nfe(e,t,n){return e==="idle"&&!t&&!n}function O6(...e){for(const t of e){const n=t?.trim();if(n)return n}return""}function ife(e,t){return{title:e("settings.notifyTitle"),body:O6(t,e("settings.notifyFallback"))}}function ofe(e,t,n){return{title:e("settings.notifyQuestionTitle"),body:O6(n,t,e("settings.notifyQuestionFallback"))}}function sfe(e,t,n){return{title:e("settings.notifyApprovalTitle"),body:O6(n,t,e("settings.notifyApprovalFallback"))}}function Nm(e){return{fileId:e.fileId,kind:e.kind,sessionId:e.kind==="file"?void 0:e.sessionId,name:e.name,mediaType:e.mediaType,size:e.size}}function P6(e,t){const n=t.kind==="file"?void 0:t.sessionId;return{kind:t.kind,url:n?e.getSessionMediaUrl(n,t.fileId):e.getFileUrl(t.fileId),fileId:t.fileId,sessionId:n,name:t.name,mediaType:t.mediaType,size:t.size}}function T2(e){const t=[];for(const n of e??[])n.kind==="video"?t.push({type:"video",source:n.sessionId?{kind:"sessionMedia",fileId:n.fileId}:{kind:"file",fileId:n.fileId}}):n.kind==="file"?t.push({type:"file",fileId:n.fileId,name:n.name??"",mediaType:n.mediaType||"application/octet-stream",size:n.size??0}):t.push({type:"image",source:n.sessionId?{kind:"sessionMedia",fileId:n.fileId}:{kind:"file",fileId:n.fileId}});return t}function rfe(e){const{api:t,uploadImage:n,sessionId:i,insertFolderPaths:o}=e,s=K({}),r=F(()=>s.value[i()??""]??[]),l=K(null),a=K(null),u=K(!1);let c=0;function d(){return`att_${++c}`}function h(Y,oe){const q=p_(Y),ne=[];for(const ie of oe)ie.uploading||ie.error||!ie.fileId||ne.push({fileId:ie.fileId,kind:ie.kind,name:ie.name,mediaType:ie.mediaType,size:ie.size,sessionId:ie.sessionId});ne.length===0?_r(q):Lu(q,ne)}let p=!1;function g(Y,oe){p||(s.value={...s.value,[Y]:oe},h(Y,oe))}function m(Y){if(s.value[Y]!==void 0)return;const oe=Kc(p_(Y));if(!Array.isArray(oe)||oe.length===0)return;const q=[];for(const ne of oe)!ne||typeof ne.fileId!="string"||ne.fileId===""||ne.kind!=="image"&&ne.kind!=="video"&&ne.kind!=="file"||q.push({fileId:ne.fileId,kind:ne.kind,name:typeof ne.name=="string"&&ne.name!==""?ne.name:ne.kind,mediaType:typeof ne.mediaType=="string"?ne.mediaType:void 0,size:typeof ne.size=="number"?ne.size:void 0,sessionId:typeof ne.sessionId=="string"?ne.sessionId:void 0});q.length!==0&&V(q.map(ne=>P6(t,ne)),Y,{append:!0})}function k(Y){if(Y.previewUrl!==void 0)try{URL.revokeObjectURL(Y.previewUrl)}catch{}}function w(Y){return Y.startsWith("image/")?"image":Y.startsWith("video/")?"video":"file"}function y(Y){return Y<1024*1024?"<1mb":Y<10*1024*1024?"1-10mb":Y<50*1024*1024?"10-50mb":"50mb+"}async function b(Y,oe){const q=n();if(!q)return;const ne=i()??"";if(Y.length!==0)for(const ie of Y){const pe=w(ie.type);y(ie.size),Math.min(Y.length,100);const Ne=d(),te=pe==="file"?void 0:URL.createObjectURL(ie),be={localId:Ne,name:ie.name,kind:pe,previewUrl:te,mediaType:ie.type||"application/octet-stream",size:ie.size,uploading:!0};g(ne,[...s.value[ne]??[],be]),q(ie,ie.name).then(Q=>{const ue=s.value[ne]??[];g(ne,ue.map(Ae=>Ae.localId===Ne?{...Ae,uploading:!1,fileId:Q?.fileId,mediaType:Q?.mediaType??Ae.mediaType,error:Q===null}:Ae))}).catch(()=>{const Q=s.value[ne]??[];g(ne,Q.map(ue=>ue.localId===Ne?{...ue,uploading:!1,error:!0}:ue))})}}function A(Y){const oe=i()??"",q=s.value[oe]??[],ne=q.find(ie=>ie.localId===Y);l.value?.localId===Y&&(l.value=null),ne&&k(ne),g(oe,q.filter(ie=>ie.localId!==Y))}function T(Y){l.value=Y}function S(){l.value=null}function x(){a.value?.click()}function _(Y){const oe=Y.target,q=Array.from(oe.files??[]);b(q),oe.value=""}function L(Y){const oe=Y.clipboardData;if(!oe)return;const{files:q,folderPaths:ne,hasFolders:ie}=Qre(oe);if(ne.length>0?(o?.(ne),Y.preventDefault()):ie&&Y.preventDefault(),!n()||q.length===0)return;const pe=q.map(Ne=>{if(Ne.name.includes("."))return Ne;const te=Ne.type.split("/")[1]??"png";return new File([Ne],`paste-${Date.now()}.${te}`,{type:Ne.type})});Y.preventDefault(),b(pe)}let M=0;function N(Y){!n()||!Array.from(Y.dataTransfer?.items??[]).some(q=>q.kind==="file")||(Y.preventDefault(),Y.stopPropagation(),u.value=!0)}function I(){u.value=!1}function z(Y){M=0,u.value=!1;const{files:oe,folderPaths:q}=Pb(Y);q.length>0&&(o?.(q),Y.preventDefault(),Y.stopPropagation()),n()&&(Y.preventDefault(),Y.stopPropagation(),b(oe))}function H(Y){return Array.from(Y.dataTransfer?.items??[]).some(oe=>oe.kind==="file")}function O(Y){!n()||!H(Y)||(Y.preventDefault(),M+=1,u.value=!0)}function R(Y){!n()||!H(Y)||Y.preventDefault()}function j(Y){!n()||!H(Y)||(M=Math.max(0,M-1),M===0&&(u.value=!1))}function $(Y){M=0,u.value=!1;const{files:oe,folderPaths:q}=Pb(Y);q.length>0&&(o?.(q),Y.preventDefault()),n()&&(Y.preventDefault(),b(oe))}function W(){const Y=i()??"";for(const oe of s.value[Y]??[])k(oe);g(Y,[])}function P(){l.value=null,W()}function Z(Y,oe,q){const ne=s.value[Y]??[];ne.some(ie=>ie.localId===oe)&&g(Y,ne.map(ie=>ie.localId===oe?{...ie,...q}:ie))}function ae(Y){return fetch(Y).then(oe=>{if(!oe.ok)throw new Error(`fetch failed: ${oe.status}`);return oe.blob()})}function V(Y,oe,q){const ne=oe??i()??"";if(q?.append!==!0){for(const ie of s.value[ne]??[])k(ie);g(ne,[])}for(const ie of Y){const pe=d(),Ne=/^data:/i.test(ie.url),te=/^blob:/i.test(ie.url),be=ie.name??ie.kind;if(ie.fileId){const Q={localId:pe,name:be,kind:ie.kind,previewUrl:ie.kind==="file"?void 0:ie.url,uploading:!1,fileId:ie.fileId,sessionId:ie.sessionId,mediaType:ie.mediaType,size:ie.size};g(ne,[...s.value[ne]??[],Q]),ie.kind==="image"&&!Ne&&!te&&(ie.sessionId?t.getSessionMediaBlob(ie.sessionId,ie.fileId):t.getFileBlob(ie.fileId)).then(Ae=>{if(p)return;const se=URL.createObjectURL(Ae);if(!(s.value[ne]??[]).some(G=>G.localId===pe)){URL.revokeObjectURL(se);return}Z(ne,pe,{previewUrl:se})}).catch(()=>{})}else{if(!ie.url)continue;const Q=n();if(!Q)continue;const ue={localId:pe,name:be,kind:ie.kind,previewUrl:ie.url,uploading:!0};g(ne,[...s.value[ne]??[],ue]),ae(ie.url).then(Ae=>{const se=be.includes(".")?be:`${be}.${Ae.type.split("/")[1]??"bin"}`;return Q(Ae,se)}).then(Ae=>{if(Ae===null){const se=s.value[ne]??[];g(ne,se.filter(re=>re.localId!==pe));return}Z(ne,pe,{uploading:!1,fileId:Ae.fileId})}).catch(()=>{const Ae=s.value[ne]??[];g(ne,Ae.filter(se=>se.localId!==pe))})}}}return Pe(i,()=>{l.value=null,m(i()??"")}),m(i()??""),cn(()=>{document.addEventListener("paste",L),document.addEventListener("dragenter",O),document.addEventListener("dragover",R),document.addEventListener("dragleave",j),document.addEventListener("drop",$)}),_n(()=>{p=!0,document.removeEventListener("paste",L),document.removeEventListener("dragenter",O),document.removeEventListener("dragover",R),document.removeEventListener("dragleave",j),document.removeEventListener("drop",$);for(const Y of Object.values(s.value))for(const oe of Y)k(oe);l.value=null}),{attachments:r,previewAttachment:l,fileInputRef:a,isDragOver:u,removeAttachment:A,openAttachmentPreview:T,closeAttachmentPreview:S,openFilePicker:x,handleFileInputChange:_,handleDragOver:N,handleDragLeave:I,handleDrop:z,clearAfterSubmit:W,clearAttachments:P,loadAttachments:V}}const lfe=3;function _$(e){const t=K("starting"),n=K(!1),i=K(null),o=K(0),s=K(!1);let r=null,l=null,a=null,u=0,c=0,d=!1,h,p=!1,g=null,m=!1;function k(){r&&(clearTimeout(r),r=null),l&&(clearInterval(l),l=null),a&&(clearTimeout(a),a=null)}function w(L){k(),b(),t.value="success",a=setTimeout(()=>{a=null,e.onSuccess?.()},L)}function y(){l&&clearInterval(l),l=setInterval(()=>{o.value>0?o.value--:(l&&clearInterval(l),l=null)},1e3)}function b(){g?.(),g=null}async function A(L){p=!0;try{const M=await e.onPollOAuthLogin();if(m||d)return;if(M===null){if(u+=1,u>=lfe){k(),b(),n.value=!0,t.value="error",e.autoOpen?.settle(!1,{keepNavigated:!0}),Date.now()-c;return}T(L);return}u=0,M.status==="authenticated"?w(1200):M.status==="expired"||M.status==="cancelled"?(k(),b(),t.value="expired",e.autoOpen?.settle(!1),Date.now()-c,M.status,void 0):T(L)}finally{p=!1}}function T(L){r&&clearTimeout(r),r=setTimeout(()=>{r=null,A(L)},L*1e3)}function S(){t.value!=="device-code"||i.value===null||d||p||(r&&(clearTimeout(r),r=null),A(i.value.interval))}async function x(L){L!==void 0&&(h=L),k(),b(),i.value=null,n.value=!1,u=0,d=!1,c=Date.now(),t.value="starting",s.value=!1,e.autoOpen?.onGesture?.();const M=await e.onStartOAuthLogin(h);if(m){M!==null&&M.status!=="authenticated"&&e.onCancelOAuthLogin();return}if(!M){t.value="error",e.autoOpen?.settle(!1);return}if(M.status==="authenticated"){e.autoOpen?.settle(!0),w(800);return}if(i.value={flowId:M.flowId,verificationUri:M.verificationUri,verificationUriComplete:M.verificationUriComplete,userCode:M.userCode,expiresIn:M.expiresIn,interval:M.interval},o.value=M.expiresIn,t.value="device-code",e.autoOpen){const N=e.autoOpen.openUrl(M.verificationUriComplete,M.flowId);if(N===!1)s.value=!0;else if(N instanceof Promise){const I=M.flowId;N.then(z=>{!z&&!m&&i.value?.flowId===I&&(s.value=!0)})}}y(),T(M.interval),g=e.authWake?.subscribe(S)??null}function _(){t.value!=="success"&&(k(),b(),e.autoOpen?.settle(!1),t.value==="device-code"&&!d&&(d=!0,e.onCancelOAuthLogin()))}return Y0()&&Bc(()=>{m=!0,_()}),{step:t,pollError:n,flow:i,secondsLeft:o,autoOpenBlocked:s,startFlow:x,cancelFlow:_,pollNow:S}}const afe={state:"idle"};function ufe(e){const t=K(afe),n=K(gs(un.updateSkippedVersion)),i=K(!1);if(typeof e?.getUpdateAutoDownload=="function"&&e.getUpdateAutoDownload().then(s=>{i.value=s}).catch(()=>{}),e!==void 0){let s=!1;e.onUpdateStatus(r=>{s=!0,t.value=r}),e.getUpdateStatus().then(r=>{s||(t.value=r)}).catch(()=>{})}const o=F(()=>{const s=t.value;return!(s.state==="idle"||s.state==="available"&&s.version!==void 0&&s.version===n.value)});return{status:t,visible:o,canCheck:typeof e?.checkForUpdates=="function",autoDownload:i,canToggleAutoDownload:typeof e?.getUpdateAutoDownload=="function"&&typeof e?.setUpdateAutoDownload=="function",setAutoDownload:(s,r)=>{i.value=s,typeof e?.setUpdateAutoDownload=="function"&&e.setUpdateAutoDownload(s).then(()=>{}).catch(()=>{})},skipVersion:()=>{const s=t.value.version;t.value.state==="available"&&s!==void 0&&(n.value=s,is(un.updateSkippedVersion,s))},check:async()=>{if(typeof e?.checkForUpdates!="function")return Promise.resolve({outcome:"unsupported"});const s=await e.checkForUpdates().catch(()=>({outcome:"error",message:"bridge call failed"}));return s.outcome==="available"&&s.version!==void 0&&s.version===n.value&&(n.value=null,_r(un.updateSkippedVersion)),s},download:()=>{e?.downloadUpdate().catch(()=>{})},install:()=>{e?.installUpdate().catch(()=>{})}}}let C3=null;function cfe(){return C3===null&&(C3=ufe(window.kimiDesktop)),C3}class dfe{transcript;sessionId;agentId;fetchPage;pageSize;onChange;onGap;refreshPromise=null;buffered=[];agents_=[];seq_;loadingOlder_=!1;loadOlderError_=!1;refreshError_=!1;constructor(t){this.sessionId=t.sessionId,this.agentId=t.agentId,this.transcript=new SJ(t.agentId),this.fetchPage=t.fetchPage,this.pageSize=t.pageSize??20,this.onChange=t.onChange,this.onGap=t.onGap}get snapshot(){return this.transcript.snapshot()}get seq(){return this.seq_}get agents(){return this.agents_}get loading(){return this.refreshPromise!==null}get loadingOlder(){return this.loadingOlder_}get loadOlderError(){return this.loadOlderError_}get refreshError(){return this.refreshError_}refresh(){if(this.refreshPromise!==null)return this.refreshPromise;this.refreshError_=!1;const t=this.fetchPage({pageSize:this.pageSize}).then(n=>this.applyPage(n,!0)).catch(n=>{throw this.refreshError_=!0,n}).finally(()=>{this.refreshPromise=null;const n=this.buffered;this.buffered=[];for(const i of n)this.applyOps(i.ops,i.seq);this.onChange?.()});return this.refreshPromise=t,this.onChange?.(),t}receiveReset(t,n){this.transcript.receive([{op:"reset",agentId:this.agentId,snapshot:t}]),n!==void 0&&(this.seq_=n),this.refreshError_=!1,this.onChange?.()}applyOps(t,n){if(this.refreshPromise!==null||this.loadingOlder_)return this.buffered.push({ops:t,...n!==void 0?{seq:n}:{}}),!1;if(n!==void 0&&this.seq_!==void 0){if(n<=this.seq_)return!0;if(n!==this.seq_+1)return this.onGap?.(),!1}const i=this.transcript.apply(t);return n!==void 0&&(this.seq_=n),i.gap!==void 0&&this.onGap?.(),i.accepted.length>0&&this.onChange?.(),i.gap===void 0}async loadOlder(){if(!this.snapshot.hasMoreOlder||this.loadingOlder_)return;const t=this.snapshot.items.find(n=>n.kind==="turn");if(t?.kind==="turn"){this.loadingOlder_=!0,this.loadOlderError_=!1,this.onChange?.();try{const n=await this.fetchPage({beforeTurn:t.turnId,pageSize:this.pageSize});this.applyPage(n,!1)}catch(n){throw this.loadOlderError_=!0,n}finally{this.loadingOlder_=!1;const n=this.buffered;this.buffered=[];for(const i of n)this.applyOps(i.ops,i.seq);this.onChange?.()}}}applyPage(t,n){this.agents_=t.agents;const i=this.snapshot,o=n?t:{...t,items:ffe(t.items,i.items),hasMoreOlder:t.hasMoreOlder};this.receiveReset(o,n?t.seq:void 0)}}function ffe(e,t){const n=new Set,i=[];for(const o of[...e,...t]){const s=o.kind==="turn"?o.turnId:o.kind==="marker"?o.markerId:o.refId;n.has(s)||(n.add(s),i.push(o))}return i}function hfe(e){const t=cN(new Map),n=new Map,i=new Map,o=new Set;let s=null,r=null;function l(){s!==null&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(s),s=null),r!==null&&(clearTimeout(r),r=null);for(const b of o)b.version.value+=1;o.clear()}function a(b){o.add(b),!(s!==null||r!==null)&&(typeof requestAnimationFrame=="function"&&(s=requestAnimationFrame(l)),r=setTimeout(l,50))}function u(b,A){return`${b}\0${A}`}function c(b,A,T){const S=e.getEventConnection();S!==null&&(S.subscribeTranscript(b,A,T),i.set(b,A))}function d(b,A){const T=u(b,A),S=t.get(T);if(S!==void 0)return S;const x={channel:new dfe({sessionId:b,agentId:A,fetchPage:_=>e.api.getSessionTranscript(b,{..._,agentId:A}),onChange:()=>{a(x)},onGap:()=>{h(x)}}),version:K(0),baselineLoaded:!1,resumePromise:null};return t.set(T,x),x}async function h(b){if(b.resumePromise!==null)return b.resumePromise;const A=p(b).finally(()=>{b.resumePromise===A&&(b.resumePromise=null)});return b.resumePromise=A,A}async function p(b){const A=()=>t.get(u(b.channel.sessionId,b.channel.agentId))===b;try{await b.channel.refresh(),b.baselineLoaded=!0,A()&&n.get(b.channel.sessionId)===b.channel.agentId&&c(b.channel.sessionId,b.channel.agentId,b.channel.seq)}catch{A()&&n.get(b.channel.sessionId)===b.channel.agentId&&c(b.channel.sessionId,b.channel.agentId)}}function g(b,A){e.connectEventsIfNeeded(),n.set(b,A);const T=d(b,A);return T.baselineLoaded?c(b,A,T.channel.seq):h(T),T}function m(b,A){if(n.get(b)!==A)return;n.delete(b);const T=i.get(b);T!==void 0&&(e.getEventConnection()?.unsubscribeTranscript(b,[T]),i.delete(b));const S=u(b,A),x=t.get(S);x!==void 0&&(t.delete(S),o.delete(x))}function k(b,A,T,S){if(n.get(b)!==A)return;const x=d(b,A);x.channel.receiveReset(T,S),x.baselineLoaded=!0}function w(b,A,T,S){return n.get(b)!==A?!0:d(b,A).channel.applyOps(T,S)}function y(b){n.delete(b),i.delete(b)&&e.getEventConnection()?.unsubscribeTranscript(b);for(const[A,T]of t)T.channel.sessionId===b&&(t.delete(A),o.delete(T))}return{getEntry:(b,A)=>t.get(u(b,A)),activate:g,deactivate:m,receiveReset:k,applyOps:w,forgetSession:y}}async function pfe(){const e=await fetch("/v1/remote/devices",{credentials:"same-origin"});if(!e.ok)throw new Error(`rc devices fetch failed: ${e.status}`);const t=await e.json();return{devices:Array.isArray(t.devices)?t.devices:[],max_devices:typeof t.max_devices=="number"?t.max_devices:void 0}}const gfe=["aria-label","aria-expanded"],mfe={class:"rc-dev-name"},vfe={key:0,class:"rc-dev-state"},yfe={key:1,class:"rc-dev-state rc-dev-failed"},kfe={class:"rc-dev-caption"},bfe={class:"rc-dev-item-name"},Afe={class:"rc-dev-item-status"},Cfe={class:"rc-dev-item-check"},wfe={class:"rc-dev-caption"},xfe=["aria-current"],Sfe={class:"rc-dev-offline-row"},_fe={class:"rc-dev-item-name"},Mfe={class:"rc-dev-item-status"},Ife={class:"rc-dev-item-check"},Efe=Xe({__name:"RcDeviceSwitcher",setup(e){const{t}=zt(),n=rg(),i=Rle(window.location),o=Ple(window.location),s=K(null),r=K(void 0),l=K(!1),a=K(!1),u=F(()=>(s.value??[]).filter(L=>L.status==="online")),c=F(()=>(s.value??[]).filter(L=>L.status!=="online")),d=F(()=>s.value?.find(L=>L.device_id===o)?.platform??t("sidebar.rcSelectDevice"));let h=0;async function p(){const L=++h;s.value===null&&(l.value=!0);try{const M=await pfe();if(L!==h)return;s.value=M.devices,r.value=M.max_devices,a.value=!1}catch{if(L!==h)return;s.value===null&&(a.value=!0)}finally{L===h&&(l.value=!1)}g.value&&(await dt(),S())}cn(()=>{i&&p()});const g=K(!1),m=K({}),k=K(null),w=K(null);let y=null;function b(L){const M=L.target;M.closest(".rc-dev-menu")||M.closest(".rc-dev-trigger")||x()}function A(L){L.key==="Escape"&&(L.stopPropagation(),x())}async function T(){if(g.value){x();return}g.value=!0,document.addEventListener("mousedown",b),document.addEventListener("keydown",A,!0),window.addEventListener("resize",x),p(),await dt(),S();const L=w.value;L&&!n.value&&(y=new ResizeObserver(()=>S()),y.observe(L))}function S(){if(n.value)return;const L=w.value,M=k.value?.el;if(!L||!M)return;const N=L.getBoundingClientRect(),I=4,z=8,H=M.offsetHeight,O={left:`${Math.round(N.left)}px`,width:`${Math.round(N.width)}px`},R=window.innerHeight-N.bottom-I-z,j=N.top-I-z;H>R&&j>R?m.value={...O,top:"auto",bottom:`${Math.round(window.innerHeight-N.top+I)}px`,maxHeight:`${Math.round(j)}px`,transformOrigin:"bottom left","--menu-pop-shift":"2px"}:m.value={...O,top:`${Math.round(N.bottom+I)}px`,bottom:"auto",maxHeight:`${Math.round(R)}px`,transformOrigin:"top left","--menu-pop-shift":"-2px"}}function x(){g.value=!1,y?.disconnect(),y=null,document.removeEventListener("mousedown",b),document.removeEventListener("keydown",A,!0),window.removeEventListener("resize",x)}Hn(x);function _(L){L.device_id!==o&&window.location.assign(HB(Ole(L.device_id),window.location.search))}return(L,M)=>f(i)?(v(),E("div",{key:0,class:Fe(["rc-dev",{"rc-dev--mobile":f(n)}])},[C("button",{ref_key:"triggerRef",ref:w,class:"rc-dev-trigger",type:"button","aria-label":f(t)("sidebar.rcCurrentDevice",{name:d.value}),"aria-haspopup":"dialog","aria-expanded":g.value,onClick:wt(T,["stop"])},[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",mfe,D(d.value),1),U(f(ve),{class:"rc-dev-chevron",name:"chevron-down",size:"sm"})],8,gfe),(v(),ce(Ds,{to:"body",disabled:f(n)},[U(fo,{name:"menu-pop"},{default:de(()=>[g.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:k,class:Fe(["rc-dev-menu",{"rc-dev-menu--mobile":f(n)}]),role:"dialog",style:Kt(f(n)?void 0:m.value),onClick:M[0]||(M[0]=wt(()=>{},["stop"]))},{default:de(()=>[l.value?(v(),E("div",vfe,[U(f(Oi),{size:"sm"})])):a.value?(v(),E("div",yfe,D(f(t)("sidebar.rcDevicesLoadFailed")),1)):(v(),E(Ee,{key:2},[u.value.length>0?(v(),E(Ee,{key:0},[C("div",kfe,D(f(t)("sidebar.rcConnectable")),1),(v(!0),E(Ee,null,pt(u.value,N=>(v(),ce(f(Ut),{key:N.device_id,role:"button",size:f(n)?"lg":"md",active:N.device_id===f(o),"aria-current":N.device_id===f(o)?"true":void 0,onClick:I=>_(N)},{default:de(()=>[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",bfe,D(N.platform),1),C("span",Afe,[U(f(ml),{status:"ok"}),$e(D(f(t)("sidebar.rcOnline")),1)]),C("span",Cfe,[N.device_id===f(o)?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:2},1032,["size","active","aria-current","onClick"]))),128))],64)):X("",!0),c.value.length>0?(v(),E(Ee,{key:1},[C("div",wfe,D(f(t)("sidebar.rcUnavailable")),1),(v(!0),E(Ee,null,pt(c.value,N=>(v(),E("div",{key:N.device_id,class:Fe(["rc-dev-offline",{"is-current":N.device_id===f(o)}]),"aria-current":N.device_id===f(o)?"true":void 0},[C("div",Sfe,[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",_fe,D(N.platform),1),C("span",Mfe,[U(f(ml)),$e(D(f(t)("sidebar.rcOffline")),1)]),C("span",Ife,[N.device_id===f(o)?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])])],10,xfe))),128))],64)):X("",!0)],64))]),_:1},8,["class","style"])):X("",!0)]),_:1})],8,["disabled"]))],2)):X("",!0)}}),M$=kt(Efe,[["__scopeId","data-v-4dd165fb"]]),Tfe=1e3,Lfe=4096,M_=32*1024;function Nfe(e,t,n){let i=null,o;const s=new Set;async function r(p){try{const m=await n.api.listTasks(p),k=e.tasksBySession[p]??[],w=new Map(k.map(A=>[A.id,A])),y=new Map(k.filter(A=>A.backgroundTaskId!==void 0).map(A=>[A.backgroundTaskId,A])),b=m.map(A=>{const T=w.get(A.id)??y.get(A.id),S=A.completedAt===void 0&&T?.completedAt===void 0&&T?.status==="running"&&A.status!=="running";return{...A,completedAt:A.completedAt??T?.completedAt??(S?new Date().toISOString():void 0),completedAtEstimated:A.completedAt!==void 0?void 0:T?.completedAt!==void 0?T.completedAtEstimated:S?!0:void 0}});e.tasksBySession={...e.tasksBySession,[p]:m_(b,k)},await l(p,m)}catch{}}async function l(p,g){if(e.activeSessionId!==p)return;const m=g??e.tasksBySession[p]??[],k=n.api,w=new Map;if(await Promise.all(m.map(async b=>{if((b.status==="completed"||b.status==="failed"||b.status==="cancelled")&&!s.has(b.id)&&!((b.outputLines?.length??0)>0))try{const T=await k.getTask(p,b.id,{withOutput:!0,outputBytes:M_});T.outputPreview!==void 0&&w.set(b.id,{preview:T.outputPreview,bytes:T.outputBytes}),s.add(b.id)}catch{}})),w.size===0)return;const y=e.tasksBySession[p]??[];e.tasksBySession={...e.tasksBySession,[p]:y.map(b=>{const A=w.get(b.id)??(b.backgroundTaskId!==void 0?w.get(b.backgroundTaskId):void 0);return A?{...b,outputPreview:A.preview,outputBytes:A.bytes}:b})}}async function a(p){if(e.activeSessionId!==p)return;const g=n.api;let m;try{m=await g.listTasks(p)}catch{return}const k=new Map;await Promise.all(m.map(async T=>{const S=T.status==="running",x=T.status==="completed"||T.status==="failed"||T.status==="cancelled";if(!(!S&&!x)&&!(x&&(s.has(T.id)||(T.outputLines?.length??0)>0)))try{const _=await g.getTask(p,T.id,{withOutput:!0,outputBytes:S?Lfe:M_});_.outputPreview!==void 0&&k.set(T.id,{preview:_.outputPreview,bytes:_.outputBytes}),x&&s.add(T.id)}catch{}}));const w=e.tasksBySession[p]??[],y=new Map(w.map(T=>[T.id,T])),b=new Map(w.filter(T=>T.backgroundTaskId!==void 0).map(T=>[T.backgroundTaskId,T])),A=m.map(T=>{const S=y.get(T.id)??b.get(T.id),x=k.get(T.id),_=T.completedAt===void 0&&S?.completedAt===void 0&&S?.status==="running"&&T.status!=="running";return{...T,outputLines:S?.outputLines,text:S?.text,completedAt:T.completedAt??S?.completedAt??(_?new Date().toISOString():void 0),completedAtEstimated:T.completedAt!==void 0?void 0:S?.completedAt!==void 0?S.completedAtEstimated:_?!0:void 0,outputPreview:x?.preview??S?.outputPreview,outputBytes:x?.bytes??S?.outputBytes}});e.tasksBySession={...e.tasksBySession,[p]:m_(A,w)}}function u(p){i!==null&&o===p||(c(),o=p,a(p),i=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||(e.activeSessionId===p?a(p):c())},Tfe))}function c(){i!==null&&(clearInterval(i),i=null),o=void 0,s.clear()}const d=K(0);let h=null;return Pe(()=>t.value.some(p=>p.status==="running"),p=>{p&&h===null?h=setInterval(()=>{d.value=(d.value+1)%Number.MAX_SAFE_INTEGER},1e3):!p&&h!==null&&(clearInterval(h),h=null)},{immediate:!0}),Pe(()=>{const p=e.activeSessionId;if(!p)return{sid:void 0,hasRunning:!1};const g=e.tasksBySession[p]??[];return{sid:p,hasRunning:g.some(m=>m.status==="running")}},({sid:p,hasRunning:g},m,k)=>{let w;g&&p!==void 0?u(p):p!==void 0?w=setTimeout(()=>{(e.tasksBySession[p]??[]).some(b=>b.status==="running")||c()},1500):c(),k(()=>{w!==void 0&&clearTimeout(w)})},{deep:!0,immediate:!0}),{taskClock:F(()=>d.value),loadTasksForSession:r}}function Ffe(e,t){const{api:n,pushOperationFailure:i,nextOptimisticMsgId:o,connectEventsIfNeeded:s,getEventConn:r,resolveThinkingForPrompt:l,refreshSessionStatus:a}=t,u=K({}),c=F(()=>{const j=e.activeSessionId;if(!j)return null;const $=u.value[j];return $?{parentId:j,agentId:$.agentId}:null}),d=F(()=>c.value?.parentId??null),h=F(()=>c.value!==null),p=F(()=>{const j=c.value;return j?!!e.sideChatSendingByAgent[j.agentId]:!1}),g=F(()=>{const j=c.value;return j?e.sideChatSendingByAgent[j.agentId]?!0:(e.tasksBySession[j.parentId]??[]).some($=>$.id===j.agentId&&$.status==="running"):!1}),m=j=>n.getFileUrl(j),k=[],w=hB(),y=F(()=>{const j=c.value;return j?w({messages:e.sideChatMessagesByAgent[j.agentId]??[],approvals:k,getFileUrl:m,sessionActive:g.value}):[]});function b(j,$){e.sideChatMessagesByAgent[j]=$(e.sideChatMessagesByAgent[j]??[])}function A(j,$){b(j,W=>[...W,$])}function T(j,$){b(j,W=>{const P=W.find(Z=>Z.id===$);return P?.promptId!==void 0||P?.userMessageId!==void 0?W:W.filter(Z=>Z.id!==$)})}function S(j,$){const W=e.sideChatUserMessageIdsBySession[j]??[];W.includes($)||(e.sideChatUserMessageIdsBySession={...e.sideChatUserMessageIdsBySession,[j]:[...W,$]})}function x(j,$,W,P){b(j,Z=>{const ae=Z.findIndex(q=>q.id===$);if(ae===-1)return Z;const V=Z.findIndex((q,ne)=>ne!==ae&&q.role==="user"&&(q.id===P||q.userMessageId===P||q.promptId===W)),Y=Z[ae],oe=V===-1?Y:Z[V];return Z.flatMap((q,ne)=>ne===V?[]:ne!==ae?[q]:[{...oe,id:Y.id,promptId:W,userMessageId:P,metadata:{...oe.metadata,...Y.metadata}}])})}function _(j,$){S($.sessionId,$.userMessageId??$.id),b(j,W=>{const P=W.findIndex(V=>V.role==="user"&&(V.userMessageId===($.userMessageId??$.id)||V.promptId!==void 0&&V.promptId===$.promptId));if(P===-1)return[...W,$];const Z=W[P],ae=[...W];return ae[P]={...$,id:Z.id,promptId:$.promptId??Z.promptId,userMessageId:$.userMessageId??$.id,metadata:{...$.metadata,...Z.metadata}},ae})}function L(j,$,W){W&&b(j,P=>{const Z=P.at(-1);if(Z?.role==="assistant"){const ae=Z.content[0],V=ae?.type==="text"?ae.text:"";return[...P.slice(0,-1),{...Z,content:[{type:"text",text:`${V}${W}`}]}]}return[...P,{id:o(),sessionId:$,role:"assistant",content:[{type:"text",text:W}],createdAt:new Date().toISOString()}]})}function M(j,$,W){if(e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[j]:!1},!W)return;const Z=(e.sideChatMessagesByAgent[j]??[]).at(-1);(Z?.role==="assistant"&&Z.content[0]?.type==="text"?Z.content[0].text:"").trim().length>0||L(j,$,W)}async function N(j){const $=e.activeSessionId;return $?I($,j):!1}async function I(j,$){if(!u.value[j]){let W;try{({agentId:W}=await n.startBtw(j))}catch(P){return i("openSideChat",P,{sessionId:j}),!1}e.sideChatMessagesByAgent={...e.sideChatMessagesByAgent,[W]:e.sideChatMessagesByAgent[W]??[]},u.value={...u.value,[j]:{agentId:W}},s(),r()?.markSideChannelAgent(j,W)}return $&&$.trim()?z(j,$.trim()):!0}async function z(j,$){const W=u.value[j],P=$.trim();if(!W||!P)return!1;const Z=j,ae=W.agentId;e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[ae]:!0};const V=o(),Y={id:V,sessionId:Z,role:"user",content:[{type:"text",text:P}],createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};A(ae,Y);let oe,q=!1;try{const ne=e.sessions.find(te=>te.id===Z),ie=(ne?.model&&ne.model.length>0?ne.model:e.defaultModel)??void 0,pe=await l(Z,ie)??e.thinking;oe=e.pendingThinkingBySession[Z],q=!0;const Ne=await n.submitPrompt(Z,{content:[{type:"text",text:P}],agentId:ae,model:ie,thinking:pe,permissionMode:e.permission,planMode:e.planModeBySession[Z]??!1,swarmMode:e.swarmModeBySession[Z]??!1});return pe!==void 0&&Au(e,Z,oe),u.value[Z]?.agentId===ae&&(x(ae,V,Ne.promptId,Ne.userMessageId),S(Z,Ne.userMessageId)),!0}catch(ne){return Au(e,Z,oe)&&a(Z),i("sendSideChatPrompt",ne,{sessionId:Z}),u.value[Z]?.agentId===ae&&(T(ae,V),e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[ae]:!1}),!(!q||ne instanceof cc)}}function H(){const j=e.activeSessionId;if(!j)return;const{[j]:$,...W}=u.value;u.value=W}async function O(j){const $=c.value;return $?z($.parentId,j):!1}function R(j){if(e.sideChatUserMessageIdsBySession[j]!==void 0){const{[j]:ae,...V}=e.sideChatUserMessageIdsBySession;e.sideChatUserMessageIdsBySession=V}const $=u.value[j];if(!$)return;const{[j]:W,...P}=u.value;u.value=P;const Z=$.agentId;if(Object.prototype.hasOwnProperty.call(e.sideChatMessagesByAgent,Z)){const{[Z]:ae,...V}=e.sideChatMessagesByAgent;e.sideChatMessagesByAgent=V}if(Object.prototype.hasOwnProperty.call(e.sideChatSendingByAgent,Z)){const{[Z]:ae,...V}=e.sideChatSendingByAgent;e.sideChatSendingByAgent=V}}return{sideChatTargetBySession:u,sideChatSessionId:d,sideChatVisible:h,sideChatSending:p,sideChatRunning:g,sideChatTurns:y,appendSideChatAssistantText:L,finishSideChatAgent:M,reconcileSideChatUserMessage:_,openSideChat:N,openSideChatOn:I,closeSideChat:H,sendSideChatPrompt:O,clearSideChatForSession:R}}/*! - * pinia v4.0.3 - * (c) 2026 Eduardo San Martin Morote - * @license MIT - */let I$;const p9=e=>I$=e,E$=Symbol();function I_(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}function Dfe(){const e=F5(!0),t=e.run(()=>K({}));let n=[],i=[];const o=St({install(s){p9(o),o._a=s,s.provide(E$,o),s.config.globalProperties.$pinia=o,i.forEach(r=>n.push(r)),i=[]},use(s){return this._a?n.push(s):i.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const f8=()=>{};function E_(e,t,n,i=f8){e.add(t);const o=()=>{e.delete(t)&&i()};return!n&&Y0()&&Bc(o),o}function Kf(e,...t){e.forEach(n=>{n(...t)})}const Bfe=e=>e(),T_=Symbol(),w3=Symbol();function h8(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!Object.hasOwn(t,n))continue;const i=t[n],o=e[n];I_(o)&&I_(i)&&Object.hasOwn(e,n)&&!io(i)&&!Ra(i)?e[n]=h8(o,i):e[n]=i}return e}const $fe=Symbol();function Rfe(e){return!e||typeof e!="object"||!Object.hasOwn(e,$fe)}const{assign:Ju}=Object;function zfe(e){return!!(io(e)&&e.effect)}function Ofe(e,t,n,i){const{state:o,actions:s,getters:r}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=o?o():{});const c=dq(n.state.value[e]);return Ju(c,s,Object.keys(r||{}).reduce((d,h)=>(d[h]=St(F(()=>{p9(n);const p=n._s.get(e);return r[h].call(p,p)})),d),{}))}return a=T$(e,u,t,n,i,!0),a}function T$(e,t,n={},i,o,s){let r;const l=Ju({actions:{}},n),a={deep:!0};let u,c,d=new Set,h=new Set,p;const g=i.state.value[e];!s&&!g&&(i.state.value[e]={});let m;function k(x){let _;u=c=!1,typeof x=="function"?(x(i.state.value[e]),_={type:"patch function",storeId:e,events:p}):(h8(i.state.value[e],x),_={type:"patch object",payload:x,storeId:e,events:p});const L=m=Symbol();dt().then(()=>{m===L&&(u=!0)}),c=!0,Kf(d,_,i.state.value[e])}const w=s?function(){const{state:_}=n,L=_?_():{};this.$patch(M=>{Ju(M,L)})}:f8;function y(){r.stop(),d.clear(),h.clear(),i._s.delete(e)}const b=(x,_="")=>{if(T_ in x)return x[w3]=_,x;const L=function(){p9(i);const M=Array.from(arguments),N=new Set,I=new Set;function z(R){N.add(R)}function H(R){I.add(R)}Kf(h,{args:M,name:L[w3],store:T,after:z,onError:H});let O;try{O=x.apply(this&&this.$id===e?this:T,M)}catch(R){throw Kf(I,R),R}return O instanceof Promise?O.then(R=>(Kf(N,R),R)).catch(R=>(Kf(I,R),Promise.reject(R))):(Kf(N,O),O)};return L[T_]=!0,L[w3]=_,L},A={_p:i,$id:e,$onAction:E_.bind(null,h),$patch:k,$reset:w,$subscribe(x,_={}){if(d.has(x))return f8;const L=E_(d,x,_.detached,()=>M()),M=r.run(()=>Pe(()=>i.state.value[e],N=>{(_.flush==="sync"?c:u)&&x({storeId:e,type:"direct",events:p},N)},Ju({},a,_)));return L},$dispose:y},T=jo(A);i._s.set(e,T);const S=(i._a&&i._a.runWithContext||Bfe)(()=>i._e.run(()=>(r=F5()).run(()=>t({action:b}))));for(const x in S){const _=S[x];io(_)&&!zfe(_)||Ra(_)?s||(g&&Rfe(_)&&(io(_)?_.value=g[x]:((_ instanceof Set||_ instanceof Map)&&_.clear(),h8(_,g[x]))),i.state.value[e][x]=_):typeof _=="function"&&(S[x]=b(_,x),l.actions[x]=_)}return Ju(T,S),Ju(si(T),S),Object.defineProperty(T,"$state",{get:()=>i.state.value[e],set:x=>{k(_=>{Ju(_,x)})}}),i._p.forEach(x=>{const _=r.run(()=>x({store:T,app:i._a,pinia:i,options:l}));Ju(T,_)}),g&&s&&n.hydrate&&n.hydrate(T.$state,g),u=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function lg(e,t,n){let i;const o=typeof t=="function";i=o?n:t;function s(r,l){const a=wq();return r=r||(a?hn(E$,null):null),r&&p9(r),r=I$,r._s.has(e)||(o?T$(e,t,i,r):Ofe(e,i,r)),r._s.get(e)}return s.$id=e,s}const Pfe={api:()=>{throw new Error("[@moonshot-ai/app-client] client deps not installed — call setKimiClientDeps() at app bootstrap")},t:e=>e},ca=globalThis.__kimiAppClientDeps??={current:Pfe};function jfe(e){ca.current=e}const Hfe=new Proxy({},{get(e,t){return ca.current.api()[t]}});function Wt(){return Hfe}function gi(e,t){return ca.current.t(e,t)}function Wfe(e,t){ca.current.traceClientEvent?.(e,t)}function Ll(e,t){ca.current.traceKeyEvent?.(e,t)}function qfe(){return ca.current.sessionExportTraceToJsonl?.()??""}function p8(e){ca.current.onSessionDestroyed?.(e)}function Ufe(e,t,n){ca.current.onWorkspaceDestroyed?.(e,t,n)}function Kfe(e){return ca.current.consumeSessionIntent?.(e)??e}function Vfe(e){return ca.current.onPluginsShelfEvent?(ca.current.onPluginsShelfEvent(e),!0):!1}const f1=Dfe(),L$=un.starredModels;function Zfe(){try{const e=gs(L$);if(!e)return[];const t=JSON.parse(e);if(Array.isArray(t)&&t.every(n=>typeof n=="string"))return t}catch{}return[]}function Gfe(e){try{is(L$,JSON.stringify(e))}catch{}}const Qfe=lg("kimi.models",()=>{const e=K([]),t=K(Zfe()),n=K([]),i=K({}),o=K({}),s=K({}),r=K({}),l=new Set,a=new Set,u=K(null);function c(y){e.value=y}function d(y){n.value=y}function h(y){u.value=y}function p(y,b){i.value={...i.value,[y]:b}}function g(y,b){o.value={...o.value,[y]:b}}function m(y){const b=new Set(t.value);b.has(y)?b.delete(y):b.add(y),t.value=Array.from(b),Gfe(t.value)}async function k(y){if(l.has(y))return;l.add(y);const b={...s.value};delete b[y],s.value=b;try{const A=await Wt().listSkills(y);p(y,A)}catch{}finally{l.delete(y),s.value={...s.value,[y]:!0}}}async function w(y){if(a.has(y))return;a.add(y);const b={...r.value};delete b[y],r.value=b;try{const A=await Wt().listSkillsForWorkspace(y);g(y,A)}catch{}finally{a.delete(y),r.value={...r.value,[y]:!0}}}return{models:e,starredModelIds:t,providers:n,draftModel:u,skillsBySession:i,skillsByWorkspace:o,skillsFetchedBySession:s,skillsFetchedByWorkspace:r,setModels:c,setProviders:d,setDraftModel:h,setSkillsForSession:p,setSkillsForWorkspace:g,toggleStarModel:m,loadSkillsForSession:k,loadSkillsForWorkspace:w}});function g8(){return Qfe(f1)}const L_=new Error("profile persist failed");function Yfe(e,t){const{api:n,pushOperationFailure:i,refreshSessionStatus:o,persistSessionProfile:s,savePlanModeToStorage:r,activity:l,updateSession:a,updateSessionMessages:u,loadConfig:c,checkAuth:d,beginLocalTurn:h,settleLocalTurn:p}=t,g=g8();function m(q){if(!(q==null||q.length===0))return g.models.find(ne=>ne.id===q)??g.models.find(ne=>ne.model===q)}function k(){const q=e.activeSessionId?e.sessions.find(ie=>ie.id===e.activeSessionId):void 0,ne=q===void 0?g.draftModel??e.defaultModel:q.model||e.defaultModel;return m(ne)?.id??ne??void 0}function w(q){if(q===void 0)return;const ne=m(q);return ne===void 0?void 0:_0(ne)}function y(q,ne){const ie=q==null?void 0:e.thinkingBySession[q];return ie!==void 0&&Ure(ne,ie)?ie:_0(ne)}function b(q,ne){if(ne===void 0)return;const ie=m(ne);return ie===void 0?void 0:y(q,ie)}async function A(q,ne){return q!=null&&e.thinkingBySession[q]===void 0&&await o(q),b(q,ne)}function T(q){e.thinking=q;const ne=e.activeSessionId;return q!==void 0&&ne!==null&&ne!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:q},Ob(e,ne)),q}Pe([()=>e.activeSessionId,()=>k(),()=>{const q=e.activeSessionId;return q==null?void 0:e.thinkingBySession[q]}],()=>{const q=m(k());q!==void 0&&(e.thinking=y(e.activeSessionId,q))});function S(q){n.setConfig({thinking:Kre(q,m(k())?.supportEfforts)}).catch(ne=>i("setConfig",ne))}async function x(){try{g.setModels(await n.listModels());const q=m(k());q!==void 0&&(e.thinking=y(e.activeSessionId,q))}catch(q){i("loadModels",q)}}async function _(){try{g.setProviders(await n.listProviders())}catch(q){i("loadProviders",q)}}async function L(q){const ne=e.activeSessionId,ie=m(q),pe=e.thinking,Ne=ne?e.sessions.find(ue=>ue.id===ne)?.model:void 0,te=k()!==(ie?.id??q),be=Vre(ie,pe,te);if(!ne)return g.setDraftModel(q),e.thinking=be,be!==pe&&be!==void 0&&S(be),!0;a(ne,ue=>({...ue,model:q}));let Q;be!==pe&&(e.thinking=be,be!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:be},Q=Ob(e,ne)));try{await n.updateSession(ne,{model:q,thinking:be!==pe?be:void 0})}catch(ue){return a(ne,Ae=>({...Ae,model:Ne??Ae.model})),be!==pe&&(e.thinking=pe,pe!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:pe}),Au(e,ne,Q)&&o(ne)),i("setModel",ue,{sessionId:ne}),!1}return be!==pe&&be!==void 0&&S(be),Au(e,ne,Q),await o(ne),!0}async function M(q,ne,ie,pe,Ne){const te=pe??e.activeSessionId;if(!te)return!1;const be=l.value==="idle"&&!e.inFlightBySession[te],Q=`msg_skill_opt_${Date.now().toString(36)}`,ue=be?h(te):void 0;let Ae=!1;if(be){e.inFlightBySession={...e.inFlightBySession,[te]:!0};const se={id:Q,sessionId:te,role:"user",content:[{type:"text",text:`/${q}${ne?` ${ne}`:""}`},...T2(ie)],createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0,origin:{kind:"skill_activation",trigger:"user-slash",skillName:q,skillArgs:ne}}};u(te,re=>[...re,se])}try{if(Ne?.skipThinkingPersist!==!0){const se=e.sessions.find(ge=>ge.id===te)?.model,re=(se&&se.length>0?se:e.defaultModel)??void 0,G=e.planArmedBySession[te]??!1;if(!await s({thinking:await A(te,re)??e.thinking,swarmMode:e.swarmModeBySession?.[te]??!1,permissionMode:e.permission,...G?{planMode:!0}:{}},te))throw L_;G&&(e.planArmedBySession={...e.planArmedBySession,[te]:!1},r(),e.planModeBySession={...e.planModeBySession,[te]:!0})}return Ae=!0,await n.activateSkill(te,q,ne,T2(ie)),!0}catch(se){return be&&(e.inFlightBySession={...e.inFlightBySession,[te]:!1},u(te,re=>re.filter(G=>G.id!==Q))),se!==L_&&i("activateSkill",se,{sessionId:te}),!(!Ae||se instanceof cc)}finally{ue!==void 0&&p(te,ue)}}async function N(q){return n.getProvider(q)}async function I(q){try{return await n.addProvider(q),await Promise.all([_(),x(),c()]),await d(),null}catch(ne){return fu("[kimi-code] operation failed: addProvider",ne),ne instanceof Error?ne.message:String(ne)}}async function z(q,ne){try{return await n.updateProvider(q,ne),await Promise.all([_(),x(),c()]),null}catch(ie){return fu("[kimi-code] operation failed: updateProvider",ie),ie instanceof Error?ie.message:String(ie)}}async function H(q){try{const ne=await n.deleteProvider(q);return await Promise.all([_(),x(),c()]),await d(),ne}catch(ne){return i("deleteProvider",ne),null}}async function O(q){try{const ne=await n.refreshProvider(q);for(const ie of ne.failed)i("refreshProvider",new Error(ie.reason),{message:ie.provider});await Promise.all([_(),x(),c()])}catch(ne){i("refreshProvider",ne)}}async function R(){try{const q=await n.refreshAllProviders();for(const ne of q.failed)i("refreshAllProviders",new Error(ne.reason),{message:ne.provider});await Promise.all([_(),x(),c()])}catch(q){i("refreshAllProviders",q)}}async function j(){try{return{kind:"ok",items:await n.listCatalogProviders()}}catch(q){return q instanceof cc&&q.code===void 0?{kind:"unsupported"}:(fu("[kimi-code] operation failed: loadCatalogProviders",q),{kind:"error"})}}async function $(q){try{return await n.importCatalogProvider(q),await Promise.all([_(),x(),c()]),await d(),null}catch(ne){return fu("[kimi-code] operation failed: importCatalogProvider",ne),ne instanceof Error?ne.message:String(ne)}}async function W(q){try{const ne=await n.importCustomRegistry(q);return await Promise.all([_(),x(),c()]),await d(),ne}catch(ne){return fu("[kimi-code] operation failed: importCustomRegistry",ne),ne instanceof Error?ne.message:String(ne)}}async function P(q){try{return await n.startOAuthLogin(q)}catch{return null}}async function Z(){return n.getOAuthRegion()}async function ae(){try{return await n.pollOAuthLogin()}catch(q){return bu("[kimi-code] pollOAuthLogin failed",q),null}}async function V(){try{await n.cancelOAuthLogin()}catch{}}async function Y(){try{return await n.getUsage()}catch(q){return{kind:"error",message:q instanceof Error?q.message:String(q)}}}function oe(q){const ne=T(q);s({thinking:ne}),ne!==void 0&&S(ne)}return{models:F(()=>g.models),starredModelIds:F(()=>g.starredModelIds),providers:F(()=>g.providers),draftModel:F(()=>g.draftModel),skillsBySession:F(()=>g.skillsBySession),skillsByWorkspace:F(()=>g.skillsByWorkspace),skillsFetchedBySession:F(()=>g.skillsFetchedBySession),skillsFetchedByWorkspace:F(()=>g.skillsFetchedByWorkspace),loadSkillsForSession:g.loadSkillsForSession,loadSkillsForWorkspace:g.loadSkillsForWorkspace,loadModels:x,loadProviders:_,setModel:L,thinkingLevelForModelId:w,thinkingLevelForSessionId:b,resolveThinkingForPrompt:A,toggleStarModel:g.toggleStarModel,activateSkill:M,addProvider:I,updateProvider:z,deleteProvider:H,getProvider:N,loadCatalogProviders:j,importCatalogProvider:$,importCustomRegistry:W,refreshProvider:O,refreshAllProviders:R,startOAuthLogin:P,pollOAuthLogin:ae,cancelOAuthLogin:V,getOAuthRegion:Z,getUsage:Y,setThinking:oe}}const Jfe=lg("kimi.approvals",()=>{const e=K({}),t=K({});function n(c){Or(e.value,c)}function i(c){Or(t.value,c)}function o(c,d){e.value[c]=d}function s(c,d){t.value[c]=d}function r(c,d){const h=e.value[c]??[];e.value[c]=h.filter(p=>p.approvalId!==d)}function l(c,d){const h=t.value[c]??[];t.value[c]=h.filter(p=>p.questionId!==d)}function a(c){delete e.value[c]}function u(c){delete t.value[c]}return{approvalsBySession:e,questionsBySession:t,applyApprovalsDiff:n,applyQuestionsDiff:i,setSessionApprovals:o,setSessionQuestions:s,removePendingApproval:r,removePendingQuestion:l,clearSessionApprovals:a,clearSessionQuestions:u}});function qs(){return Jfe(f1)}const Xfe=lg("kimi.sessions",()=>{const e=K([]),t=K(void 0),n=K(g$());function i(p){e.value=p}function o(p,g){e.value=e.value.map(m=>m.id===p?g(m):m)}function s(p){e.value=VB(e.value,p)}function r(p){e.value=[...e.value,p]}function l(p){e.value=e.value.filter(g=>g.id!==p)}function a(p){t.value=p}function u(p){const g=_le(n.value,p);g!==n.value&&(n.value=g,y3(g))}function c(p){const g=Mle(n.value,p);g!==n.value&&(n.value=g,y3(g))}function d(p){const g=new Set(p),m=n.value.filter(k=>!g.has(k));m.length!==n.value.length&&(n.value=m,y3(m))}function h(p){n.value.includes(p)?c(p):u(p)}return{sessions:e,activeSessionId:t,pinnedSessionIds:n,setSessions:i,updateSession:o,upsertSessionSorted:s,appendSession:r,removeSession:l,setActiveSessionId:a,pinSession:u,unpinSession:c,unpinSessions:d,togglePinSession:h}});function or(){return Xfe(f1)}const ehe=40409;function the(e){return!e||e.state!=="open"&&e.state!=="closed"&&e.state!=="merged"?null:{number:e.number,state:e.state,url:e.url}}function nhe(e,t){return e==null||t==null?e==null&&t==null:e.number===t.number&&e.state===t.state&&e.url===t.url}const ihe=lg("kimi.files",()=>{const e=K(null),t=K([]),n=K(!1),i=K(null),o=K(!1),s=K({});async function r(d){const h=or().activeSessionId;if(!h)return null;try{const g=await Wt().readFile(h,{path:d});return{path:g.path,content:g.content,encoding:g.encoding,mime:g.mime,languageId:g.languageId,isBinary:g.isBinary,size:g.size,lineCount:g.lineCount}}catch(p){if(bu("[kimi-code] readFileContent failed for",d,p),ko(p)&&p.code===ehe)throw p;return null}}async function l(d){const h=or().activeSessionId;if(h){e.value=d,t.value=[],i.value=null,o.value=!1,n.value=!0;try{const g=await Wt().getFileDiff(h,d);if(e.value!==d||or().activeSessionId!==h)return;const m=Zse(g.diff);if(t.value=m,m.length===0){const w=await r(d).catch(()=>null);if(e.value!==d||or().activeSessionId!==h)return;o.value=w!==null&&w.size===0;return}n.value=!1;const k=await $se(m,{truncated:g.truncated,readNewText:async()=>{const w=await r(d).catch(()=>null);return!w||w.isBinary||w.encoding!=="utf-8"?null:w.content}});if(e.value!==d||or().activeSessionId!==h)return;i.value=k}catch(p){e.value===d&&(t.value=[]),bu("[loadFileDiff] diff unavailable for",d,p)}finally{e.value===d&&(n.value=!1)}}}function a(){e.value=null,t.value=[],i.value=null,o.value=!1,n.value=!1}async function u(d){try{const p=await Wt().getGitStatus(d);s.value[d]=p;const g=the(p.pullRequest);or().updateSession(d,m=>nhe(m.pullRequest,g)?m:{...m,pullRequest:g})}catch{}}function c(d){delete s.value[d]}return{selectedDiffPath:e,fileDiffLines:t,fileDiffLoading:n,fileDiffTexts:i,fileDiffEmptyFile:o,gitStatusBySession:s,readFileContent:r,loadFileDiff:l,clearFileDiff:a,loadGitStatus:u,clearSessionGitStatus:c}});function Hs(){return ihe(f1)}const ohe=50,mp=5,j6=5,dc=50,N_=40401,she=40402,rhe=40410,F_=40409,lhe=40902,ahe=2e3,uhe=10;function x3(e){return ko(e)&&e.code===lhe}const che=40904;function dhe(e){return ko(e)&&e.code===che}const pd=jo({}),Fm=jo({}),S3=jo({}),wa=jo(new Set),g9=new Map,uf=new Map,L2=new Map;let fhe=0;const xd=new Map,hhe=3,iu=new Map,vp=new Map,phe=3,xv=new Map;function ghe(e){const t=xv.get(e);if(!(t!==void 0&&(t.done||t.attempts>=phe))){xv.set(e,{attempts:(t?.attempts??0)+1,done:!1});try{Wt().generateSessionTitle(e,{source:"first_turn"}).then(n=>{n!==null&&xv.set(e,{attempts:0,done:!0})}).catch(()=>{})}catch{}}}let D_=0;function mhe(){return D_+=1,`${Date.now().toString(36)}-${D_}`}function vhe(e){return{generation:g9.get(e)??0,pending:(uf.get(e)?.size??0)>0}}function m8(e){const t=++fhe;g9.set(e,t);const n=uf.get(e)??new Set;return n.add(t),uf.set(e,n),t}function v8(e,t){const n=uf.get(e);if(n===void 0||(n.delete(t),n.size>0))return;uf.delete(e);const i=L2.get(e);L2.delete(e),i?.()}function yhe(e){g9.delete(e),uf.delete(e),L2.delete(e),xd.delete(e),iu.delete(e),vp.delete(e)}function khe(e,t){return!t.pending&&t.generation===(g9.get(e)??0)}function bhe(e,t){if((uf.get(e)?.size??0)===0){t();return}L2.set(e,t)}function Ahe(e,t){const{confirm:n}=Vc(),{taskPoller:i,sideChat:o,modelProvider:s,pushOperationFailure:r,notify:l,activity:a,sessionsKnownEmpty:u,setSessions:c,updateSession:d,upsertSessionSorted:h,appendSession:p,forgetSession:g,unpinSessions:m,setActiveSessionId:k,updateSessionMessages:w,nextOptimisticMsgId:y,getEventConn:b,syncSessionFromSnapshot:A,reopenSession:T,hasLoadedMessages:S,refreshSessionStatus:x,refreshSessionGoal:_,refillSessionGoalOnReload:L,refreshSessionPlans:M,settlePlanReviewLocally:N,persistSessionProfile:I,mergedWorkspaces:z,workspacesView:H,status:O,workspaceIdForSession:R,savePermissionToStorage:j,savePlanModeToStorage:$,saveSwarmModeToStorage:W,saveGoalModeToStorage:P,draftModes:Z,saveUnread:ae,saveActiveWorkspaceToStorage:V,saveHiddenWorkspacesToStorage:Y,goalErrorMessage:oe,initialized:q,connectIssue:ne}=t;let ie=0,pe=!1;function Ne(ee,me,Me,Re){w(ee,Qe=>{const Je=Qe.findIndex(fn=>fn.id===me);if(Je===-1)return Qe;const ft=Qe.findIndex((fn,dn)=>dn!==Je&&fn.role==="user"&&(fn.id===Re||fn.userMessageId===Re||fn.promptId===Me)),vt=Qe[Je],Pt=ft===-1?vt:Qe[ft];return Qe.flatMap((fn,dn)=>dn===ft?[]:dn!==Je?[fn]:[{...Pt,id:vt.id,promptId:Me,userMessageId:Re,metadata:{...Pt.metadata,...vt.metadata}}])})}async function te(ee){if(e.messagesLoadingMoreBySession[ee])return;const me=e.messagesBySession[ee];if(!me||me.length===0)return;const Me=me[0].id;e.messagesLoadingMoreBySession={...e.messagesLoadingMoreBySession,[ee]:!0},e.messagesLoadMoreErrorBySession={...e.messagesLoadMoreErrorBySession,[ee]:!1};try{const Re=await Wt().listMessages(ee,{beforeId:Me,pageSize:ohe}),Qe=[...Re.items].reverse();w(ee,Je=>[...Qe,...Je]),e.messagesHasMoreBySession={...e.messagesHasMoreBySession,[ee]:Re.hasMore}}catch(Re){e.messagesLoadMoreErrorBySession={...e.messagesLoadMoreErrorBySession,[ee]:!0},r("loadOlderMessages",Re,{sessionId:ee})}finally{e.messagesLoadingMoreBySession={...e.messagesLoadingMoreBySession,[ee]:!1}}}function be(ee,me){i.loadTasksForSession(ee),Hs().loadGitStatus(ee),me?.skipStatus!==!0&&x(ee),_(ee),M(ee),Object.prototype.hasOwnProperty.call(s.skillsBySession.value,ee)||s.loadSkillsForSession(ee)}let Q=0;async function ue(ee){try{const me=await Wt().getUserInfo();if(ee!==Q||e.managedProviderStatus!=="authenticated")return;e.managedUserInfo=me.kind==="ok"?me.userInfo:null,me.kind==="ok"?e.managedMembership=me.userInfo.userLevel===uhe?"free":"member":e.managedMembership=me.status===402?"free":null}catch{if(ee!==Q)return;e.managedProviderStatus==="authenticated"&&(e.managedUserInfo=null,e.managedMembership=null)}}async function Ae(){e.managedProviderStatus==="authenticated"&&await ue(++Q)}async function se(){const ee=++Q;try{const Me=await Wt().getAuth();return e.authReady=Me.ready,e.defaultModel=Me.defaultModel,e.managedProviderStatus=Me.managedProvider?.status??null,e.managedProviderStatus==="authenticated"?ue(ee):(e.managedUserInfo=null,e.managedMembership=null),ne.value=null,"proceed"}catch(me){return ko(me)&&(me.code===401||me.code===iD)?(ne.value=null,"server-auth-required"):(ne.value=(me instanceof Error?me.message:String(me)).slice(0,140),"retry")}}async function re(){let ee=!0;for(;;){const me=await se();if(me!=="retry")return me;ee&&(ne.value=null,ee=!1),await new Promise(Me=>{setTimeout(Me,ahe)})}}async function G(){try{const ee=Wt();e.config=await ee.getConfig()}catch{}}async function le(ee){try{const Me=await Wt().setConfig(ee);return e.config=Me,e.defaultModel=Me.defaultModel??null,!0}catch(me){return r("setConfig",me),!1}}const ge=100;async function ke(ee){const me=Wt(),Me=[];let Re,Qe;for(;ee?.shouldContinue?.()!==!1;){let Je;try{Je=await me.listSessions({pageSize:ge,beforeId:Re,excludeEmpty:!0})}catch(ft){if(Me.length===0)throw ft;Qe=ft;break}if(Me.push(...Je.items),!Je.hasMore||Je.items.length===0)break;Re=Je.items[Je.items.length-1].id}return{sessions:Me,error:Qe}}const Ie=new Set;function Oe(ee){const me=On.size===0?ee:ee.filter(ft=>!On.has(ft.id)),Me=new Set(me.map(ft=>ft.id)),Re=e.sessions.filter(ft=>Ie.has(ft.id)&&!Me.has(ft.id)&&!On.has(ft.id)),Qe=Re.length===0?me:[...me,...Re].sort((ft,vt)=>new Date(vt.updatedAt).getTime()-new Date(ft.updatedAt).getTime()),Je=new Map(e.sessions.map(ft=>[ft.id,ft]));c(Qe.map(ft=>{const vt=Je.get(ft.id);if(vt===void 0)return ft;const Pt=v2(ft.usage)&&!v2(vt.usage),fn=ft.pullRequest??vt.pullRequest,dn=(ft.model??"")===""?vt.model:ft.model;return!Pt&&fn===ft.pullRequest&&dn===ft.model?ft:{...ft,usage:Pt?vt.usage:ft.usage,pullRequest:fn,model:dn}}))}function we(ee){const me=[...ee],Me=new Set(me.map(Re=>Re.id));for(const Re of e.sessions)Me.has(Re.id)||(me.push(Re),Me.add(Re.id));return me.sort((Re,Qe)=>new Date(Qe.updatedAt).getTime()-new Date(Re.updatedAt).getTime()),me}async function Be(){const ee=Wt(),me={groupPageSize:mp,hasPrompt:!0};let Me;try{Me=await ee.listSessionGroupsV2(me)}catch(Ln){r("load",Ln);return}const Re=[...Me.groups];let Qe=Me.nextPageToken;for(;Qe!==null;){let Ln;try{Ln=await ee.listSessionGroupsV2({...me,pageToken:Qe})}catch(Sn){r("load",Sn);return}Re.push(...Ln.groups),Qe=Ln.nextPageToken}const Je=new Map(Re.map(Ln=>[Ln.workspace.id,Ln])),ft=new Map(Re.filter(Ln=>Ln.workspace.cwd!==null).map(Ln=>[ol(Ln.workspace.cwd),Ln])),vt=[],Pt=new Set,fn={},dn={},ui={};for(const Ln of e.workspaces){const Sn=Je.get(Ln.id)??ft.get(ol(Ln.root));if(Sn===void 0){fn[Ln.id]=!1,dn[Ln.id]=void 0,ui[Ln.id]=mp;continue}const fi=Sn.sessions.filter(Ui=>!On.has(Ui.id)&&(Ui.meta.last_prompt??"").length>0).map(Ui=>ym(Ui.workspace.cwd===null?{...Ui,workspace:{...Ui.workspace,cwd:Ln.root}}:Ui));for(const Ui of fi)Pt.has(Ui.id)||(vt.push(Ui),Pt.add(Ui.id));fn[Ln.id]=Sn.sessions.length0?fi[fi.length-1].id:void 0,ui[Ln.id]=Math.max(fi.length,mp)}e.sessionsHasMoreByWorkspace=fn,e.sessionsCursorByWorkspace=dn,e.sessionsInitialCountByWorkspace=ui,e.sessionsFullyLoaded=!1;for(const Ln of Re)for(const Sn of Ln.sessions){const fi=Sn.activity.status;(fi==="running"||fi==="approval"||fi==="question")&&tt.push(Sn.id)}return vt.sort((Ln,Sn)=>new Date(Sn.updatedAt).getTime()-new Date(Ln.updatedAt).getTime()),vt}const tt=[];async function ut(ee){const me=e.lastSeqBySession[ee]??0;let Me;try{Me=await Wt().getSession(ee)}catch{return}(e.lastSeqBySession[ee]??0)>me||d(ee,Re=>({...Re,busy:Me.busy,mainTurnActive:Me.mainTurnActive??Re.mainTurnActive,pendingInteraction:Me.pendingInteraction??Re.pendingInteraction,lastTurnReason:Me.lastTurnReason??Re.lastTurnReason}))}async function _t(){if(tt.length=0,e.workspaces.length===0){const me=await ke(),Me=me.error===void 0?me.sessions:we(me.sessions);return e.sessionsHasMoreByWorkspace={},e.sessionsCursorByWorkspace={},e.sessionsInitialCountByWorkspace={},e.sessionsFullyLoaded=me.error===void 0,me.error!==void 0&&r("load",me.error),Me}return Be()}async function Ct(ee){if(!e.sessionsLoadingMoreByWorkspace[ee]&&e.sessionsHasMoreByWorkspace[ee]!==!1&&e.sessionsCursorByWorkspace[ee]!==void 0){e.sessionsLoadingMoreByWorkspace={...e.sessionsLoadingMoreByWorkspace,[ee]:!0};try{let me=e.sessionsCursorByWorkspace[ee],Me;for(let ft=0;ft<3&&me!==void 0&&(Me=await Wt().listSessions({workspaceId:ee,pageSize:j6,beforeId:me,excludeEmpty:!0}),e.sessionsCursorByWorkspace[ee]!==me);ft+=1)Me=void 0,me=e.sessionsCursorByWorkspace[ee];if(Me===void 0)return;const Re=new Set(e.sessions.map(ft=>ft.id)),Qe=Me.items.filter(ft=>!Re.has(ft.id)&&!On.has(ft.id));for(const ft of Qe)Ie.add(ft.id);Qe.length>0&&c([...e.sessions,...Qe]);const Je=Me.items.filter(ft=>!On.has(ft.id)).at(-1);e.sessionsCursorByWorkspace={...e.sessionsCursorByWorkspace,[ee]:Je?.id??me},e.sessionsHasMoreByWorkspace={...e.sessionsHasMoreByWorkspace,[ee]:Me.hasMore}}catch(me){r("loadMoreSessions",me)}finally{e.sessionsLoadingMoreByWorkspace={...e.sessionsLoadingMoreByWorkspace,[ee]:!1}}}}function $t(ee){return e.sessions.filter(me=>!me.parentSessionId&&R(me)===ee)}const Vt=5;function nn(ee,me){const Me=new Set(e.sessions.map(Je=>Je.id)),Re=ee.items.filter(Je=>!Me.has(Je.id)&&!On.has(Je.id)&&(Je.meta.last_prompt??"").length>0).map(ym);for(const Je of Re)Ie.add(Je.id);Re.length>0&&c([...e.sessions,...Re]);for(const Je of ee.items)if(Me.has(Je.id)&&Je.git!==void 0){const ft=Je.git.pull_request;d(Je.id,vt=>vt.pullRequest===ft?vt:{...vt,pullRequest:ft})}if(ee.items.length>0){const Je=Math.min(...ee.items.map(ft=>ft.meta.updated_at));e.flatSessionsFrontier=me?.resetFrontier===!0||e.flatSessionsFrontier===null?Je:Math.min(e.flatSessionsFrontier,Je)}e.flatSessionsNextPageToken=ee.nextPageToken,e.flatSessionsHasMore=ee.hasMore;const Qe=new Set(H.value.map(Je=>Je.id));return ee.items.filter(Je=>(Je.meta.last_prompt??"").length>0&&!On.has(Je.id)&&Qe.has(R({workspaceId:Je.workspace.id,cwd:Je.workspace.cwd??""}))).length}async function gt(){const ee=await Wt().listSessionsV2({pageSize:dc,include:"git"});nn(ee,{resetFrontier:!0}),e.flatSessionsSeeded=!0}async function Le(){if(!(e.flatSessionsSeeded||e.flatSessionsLoading)){e.flatSessionsLoading=!0;try{await gt()}catch(ee){r("ensureFlatSessions",ee)}finally{e.flatSessionsLoading=!1}}}async function ze(){if(!(e.flatSessionsLoading||e.flatSessionsLoadingMore)&&e.flatSessionsHasMore){e.flatSessionsLoadingMore=!0;try{if(!e.flatSessionsSeeded){await gt();return}if(e.flatSessionsNextPageToken===null)return;for(let ee=0;ee0)break}}catch(ee){r("loadMoreFlatSessions",ee)}finally{e.flatSessionsLoadingMore=!1}}}async function Ye(){const ee=await Wt().listSessionsV2({pageSize:dc,include:"git",archived:!0}),me=new Set,Me=ee.items.filter(Qe=>(Qe.meta.last_prompt??"").length>0).filter(Qe=>!Wi.has(Qe.id)).filter(Qe=>me.has(Qe.id)?!1:(me.add(Qe.id),!0)).map(ym),Re=e.doneSessions.filter(Qe=>On.has(Qe.id)&&!me.has(Qe.id));e.doneSessions=[...Re,...Me],e.doneSessionsNextPageToken=ee.nextPageToken,e.doneSessionsHasMore=ee.hasMore}async function Tt(){if(!(e.doneSessionsSeeded||e.doneSessionsLoading)){e.doneSessionsLoading=!0;try{await Ye(),e.doneSessionsSeeded=!0}catch(ee){r("ensureDoneSessions",ee)}finally{e.doneSessionsLoading=!1}}}async function on(){if(!(e.doneSessionsLoading||e.doneSessionsLoadingMore)&&e.doneSessionsHasMore){e.doneSessionsLoadingMore=!0;try{if(!e.doneSessionsSeeded){await Ye(),e.doneSessionsSeeded=!0;return}let ee=3;for(;;){const me=e.doneSessionsNextPageToken;if(me===null)return;let Me;try{Me=await Wt().listSessionsV2({pageSize:dc,pageToken:me,include:"git",archived:!0})}catch(Je){if(!hx(Je))throw Je;e.doneSessionsNextPageToken=null,await Ye();return}const Re=new Set(e.doneSessions.map(Je=>Je.id)),Qe=Me.items.filter(Je=>!Re.has(Je.id)&&!Wi.has(Je.id)&&(Je.meta.last_prompt??"").length>0).map(ym);if(Qe.length>0&&(e.doneSessions=[...e.doneSessions,...Qe]),e.doneSessionsNextPageToken=Me.nextPageToken,e.doneSessionsHasMore=Me.hasMore,ee-=1,Qe.length>0||!Me.hasMore||ee<=0)return}}catch(ee){r("loadMoreDoneSessions",ee)}finally{e.doneSessionsLoadingMore=!1}}}async function jt(ee,me,Me,Re){if(e.sessionsCursorByWorkspace[ee]===me){const Je=new Date(Me).getTime();let ft;for(const vt of e.sessions){if(R(vt)!==ee)continue;const Pt=new Date(vt.updatedAt).getTime();Pt<=Je||(ft===void 0||Pt0&&$t(ee).lengthdn.id)),fn=vt.items.filter(dn=>!Pt.has(dn.id)&&!On.has(dn.id));for(const dn of fn)Ie.add(dn.id);fn.length>0&&c([...e.sessions,...fn].sort((dn,ui)=>new Date(ui.updatedAt).getTime()-new Date(dn.updatedAt).getTime())),e.sessionsCursorByWorkspace={...e.sessionsCursorByWorkspace,[ee]:vt.items.length>0?vt.items[vt.items.length-1].id:void 0},e.sessionsHasMoreByWorkspace={...e.sessionsHasMoreByWorkspace,[ee]:vt.hasMore}}catch(vt){r("loadMoreSessions",vt);break}else await Ct(ee);if(Qe-=1,$t(ee).length===ft&&e.sessionsCursorByWorkspace[ee]===Je)break}}async function kn(){if(e.sessionsFullyLoaded)return;const ee=await ke().catch(Re=>(bu("[kimi-code] loadAllSessions failed; search covers only loaded sessions",Re),null));if(ee===null)return;const me=ee.error===void 0?ee.sessions:we(ee.sessions);if(Oe(me),e.sessionsFullyLoaded=ee.error===void 0,ee.error!==void 0)return;const Me={};for(const Re of e.workspaces)Me[Re.id]=!1;e.sessionsHasMoreByWorkspace=Me}async function bn(){const ee=await Wt().getMeta().catch(()=>null);ee!==null&&(e.serverVersion=ee.serverVersion,e.availableOpenInApps=ee.openInApps,e.dangerousBypassAuth=ee.dangerousBypassAuth,e.experimentalFlags=ee.experimentalFlags,e.backend=ee.backend,e.webTitle=ee.webTitle)}async function mn(){const ee=Date.now();let me="accepted";Ll("app:load:start"),e.loading=!0,Ie.clear();const Me=!q.value;let Re=!0;try{if(Me&&await re()==="server-auth-required"){Re=!1,me="auth-required";return}const Qe=Wt();await Promise.all([Qe.getHealth().catch(()=>null),bn(),s.loadModels()]),Me||await se(),await G(),await zn();const Je=await _t();Je!==void 0&&Oe(Je);const ft=e.sessions;if(tt.length>0){const Sn=tt.splice(0);await Promise.allSettled(Sn.map(fi=>ut(fi)))}if(!Me&&Je!==void 0&&e.flatSessionsSeeded){e.flatSessionsSeeded=!1,e.flatSessionsNextPageToken=null,e.flatSessionsHasMore=!0,e.flatSessionsFrontier=null;try{await gt()}catch(Sn){r("ensureFlatSessions",Sn)}}const vt=g$().filter(Sn=>!e.sessions.some(fi=>fi.id===Sn));if(vt.length>0){const Sn=await Promise.all(vt.map(Ui=>Un(Ui))),fi=vt.filter((Ui,Fr)=>Sn[Fr]==="stale");fi.length>0&&m(fi)}e.activeSessionId!==void 0&&!e.sessions.some(Sn=>Sn.id===e.activeSessionId)&&await Tn(e.activeSessionId)==="not-found"&&(k(void 0),_i(void 0,"replace")),e.activeSessionId!==void 0&&await x(e.activeSessionId);for(const Sn of e.sessions)(Sn.mainTurnActive??Sn.busy)&&e.goalBySession[Sn.id]===void 0&&L(Sn.id);const Pt=ft[0],fn=e.activeWorkspaceId;!(fn!==null&&z.value.some(Sn=>Sn.id===fn))&&Pt&&st(R(Pt)),Io();const ui=typeof window<"u"&&RS(mo());ui&&(e.mainView="sessionAdmin");const Ln=typeof window<"u"?zS(mo()):void 0;!e.activeSessionId&&Ln!==void 0&&(e.sessions.some(fi=>fi.id===Ln)||await Tn(Ln)==="ok")&&await Ki(Ln,{urlMode:"replace",skipTrack:!0}),!e.activeSessionId&&ft.length>0&&await Ki(ft[0].id,{urlMode:ui?"none":"replace",skipTrack:!0})}catch(Qe){me="failed",r("load",Qe)}finally{e.loading=!1,Re&&(q.value=!0),Ll("app:load:complete",{status:me,sessionId:e.activeSessionId,sessionCount:e.sessions.length,workspaceCount:e.workspaces.length,durationMs:Date.now()-ee})}}async function zn(){try{const ee=Wt(),[me,Me]=await Promise.all([ee.listWorkspaces().catch(()=>[]),ee.getFsHome().catch(()=>({home:"",recentRoots:[]}))]);e.workspaces=He(me),e.fsHome=Me.home||null,e.recentRoots=Me.recentRoots}catch{}}function He(ee){const me=Im();return Object.keys(me).length===0?ee:ee.map(Me=>{const Re=me[Me.root];return Re!==void 0?{...Me,name:Re}:Me})}function st(ee){e.activeWorkspaceId=ee,V(ee)}function et(ee){e.mainView="chat",st(ee);const me=e.sessions.filter(Me=>R(Me)===ee);if(me.length>0){const Me=me[0];Me&&Me.id!==e.activeSessionId&&Ki(Me.id,{skipTrack:!0})}else k(void 0),_i(void 0,"push")}function Nt(ee){const me=Im()[ee.root],Me=me!==void 0?{...ee,name:me}:ee,Re=ol(Me.root);e.hiddenWorkspaceRoots.some(ft=>ol(ft)===Re)&&(e.hiddenWorkspaceRoots=e.hiddenWorkspaceRoots.filter(ft=>ol(ft)!==Re),Y(e.hiddenWorkspaceRoots));const Qe=e.workspaces.findIndex(ft=>ft.id===Me.id||ft.root===Me.root);if(Qe===-1){e.workspaces=[Me,...e.workspaces];return}const Je=[...e.workspaces];Je[Qe]=Me,e.workspaces=Je}function Lt(ee){if(ee.type==="workspaceCreated"||ee.type==="workspaceUpdated"){Nt(ee.workspace);return}const me=e.workspaces.find(Re=>Re.id===ee.workspaceId)?.root??ee.root;if(me&&!e.hiddenWorkspaceRoots.includes(me)&&(e.hiddenWorkspaceRoots=[...e.hiddenWorkspaceRoots,me],Y(e.hiddenWorkspaceRoots)),e.workspaces=e.workspaces.filter(Re=>Re.id!==ee.workspaceId&&Re.root!==me),e.activeWorkspaceId===ee.workspaceId||e.activeWorkspaceId===me){const Re=H.value[0]?.id??null;if(e.activeWorkspaceId=Re,Re)V(Re);else try{_r(un.activeWorkspace)}catch{}k(void 0),e.sessionLoading=!1,Hs().clearFileDiff(),_i(void 0,"replace")}}function qn(){k(void 0),e.mainView="chat",_i(void 0,"push")}function So(ee,me){me?.entry!==void 0&&(e.draftEntry=me.entry),st(ee),qn(),Hs().clearFileDiff()}async function Yn(ee){const me=z.value.find(dn=>dn.id===ee);if(!me)return null;Kfe("sidebar");const Me=e.thinking,Re=Wt();let Qe,Je=me.root;try{const dn=await Re.addWorkspace({root:me.root});Qe=dn.id,Je=dn.root,Nt(dn)}catch{}const ft=g8().draftModel??void 0,vt=await Re.createSession({workspaceId:Qe,cwd:Je,model:ft});g8().setDraftModel(null);const Pt=ft!==void 0&&(!vt.model||vt.model.length===0)?{...vt,model:ft}:vt;h(Pt);const fn=vt.id;return Me!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[fn]:Me},Ob(e,fn)),st(vt.workspaceId??Qe??ee),await Ki(vt.id,{skipTrack:!0,skipStatusRefresh:!0}),Z.planMode&&(e.planArmedBySession={...e.planArmedBySession,[fn]:!0},$()),Z.swarmMode&&(e.swarmModeBySession={...e.swarmModeBySession,[fn]:!0},W()),Z.goalMode&&(e.goalModeBySession={...e.goalModeBySession,[fn]:!0},P()),Z.planMode=!1,Z.swarmMode=!1,Z.goalMode=!1,fn}async function Ir(ee,me,Me){if(wa.has(ee))return null;wa.add(ee);let Re=null;try{const Qe=await Yn(ee);return Qe?(Re=Qe,await Ti(Qe,me,Me),Qe):null}catch(Qe){return r("startSessionAndSendPrompt",Qe),Re}finally{wa.delete(ee)}}async function _o(ee,me,Me,Re){if(wa.has(ee))return{sessionId:null,activated:!1};wa.add(ee);let Qe=null;try{const Je=await Yn(ee);if(!Je)return{sessionId:null,activated:!1};Qe=Je;const ft=e.planArmedBySession[Je]??!1,vt=e.swarmModeBySession[Je]??!1,Pt=e.sessions.find(Sn=>Sn.id===Je),fn=(Pt?.model&&Pt.model.length>0?Pt.model:e.defaultModel)??void 0,dn=await s.resolveThinkingForPrompt(Je,fn)??e.thinking;if(!await I({model:fn,planMode:ft,swarmMode:vt,permissionMode:e.permission,thinking:dn},Je))return{sessionId:Je,activated:!1};ft&&(e.planArmedBySession={...e.planArmedBySession,[Je]:!1},$(),e.planModeBySession={...e.planModeBySession,[Je]:!0});const Ln=await s.activateSkill(me,Me,Re,Je,{skipThinkingPersist:!0});return{sessionId:Je,activated:Ln}}catch(Je){return r("startSessionAndActivateSkill",Je),{sessionId:Qe,activated:!1}}finally{wa.delete(ee)}}async function It(ee,me){if(wa.has(ee))return null;wa.add(ee);let Me=null;try{const Re=await Yn(ee);return Re?(Me=Re,await o.openSideChatOn(Re,me),Re):null}catch(Re){return r("startSessionAndOpenSideChat",Re),Me}finally{wa.delete(ee)}}async function ms(ee){const me=ee.trim();if(!me)return!1;const Me=Wt();try{const Re=await Me.addWorkspace({root:me});return Nt(Re),So(Re.id,{entry:"workspace"}),!0}catch(Re){return bu("[kimi-code] addWorkspaceByPath failed for",me,Re),!1}}async function Er(ee){try{return await Wt().browseFs(ee)}catch{return{path:"",parent:null,entries:[]}}}async function go(){try{return await Wt().getFsHome()}catch{return{home:"",recentRoots:[]}}}function mo(){return{pathname:zle(window.location.pathname)}}function vs(ee,me){if(me==="none"||typeof window>"u"||!window.history||mo().pathname===ee)return;const Me=HB(ee,window.location.search);try{me==="push"?window.history.pushState(null,"",Me):window.history.replaceState(null,"",Me)}catch{}}function _i(ee,me){e.mainView==="chat"&&vs(hae(ee),me)}function Mo(){e.mainView!=="sessionAdmin"&&(e.mainView="sessionAdmin",vs(ZB,"push"))}function ys(ee){e.mainView==="sessionAdmin"&&(e.mainView="chat",_i(e.activeSessionId,ee?.urlMode??"push"))}async function Tn(ee){try{const me=await Wt().getSession(ee);return!me.archived&&On.has(ee)?"not-found":(e.sessions.some(Me=>Me.id===me.id)||(Ie.add(me.id),p(me)),"ok")}catch(me){return ko(me)&&me.code===N_?"not-found":"error"}}async function Un(ee){try{const me=await Wt().getSession(ee);return me.archived||On.has(ee)?"stale":(e.sessions.some(Me=>Me.id===me.id)||p(me),"ok")}catch(me){return ko(me)&&me.code===N_?"stale":"retry"}}function Kn(){if(RS(mo())){e.mainView="sessionAdmin";return}e.mainView="chat";const ee=zS(mo());if(ee===void 0){k(void 0);return}if(ee!==e.activeSessionId){if(e.sessions.some(me=>me.id===ee)){Ki(ee,{urlMode:"none",skipTrack:!0});return}(async()=>{if(await Tn(ee)==="ok"){await Ki(ee,{urlMode:"none",skipTrack:!0});return}const me=e.sessions[0];me?await Ki(me.id,{urlMode:"replace",skipTrack:!0}):(k(void 0),_i(void 0,"replace"))})()}}let Pi=!1;function Io(){Pi||typeof window>"u"||(Pi=!0,window.addEventListener("popstate",Kn))}async function Ki(ee,me){const Me=me?.source??"sidebar";if(!e.sessions.some(ft=>ft.id===ee)){const ft=++ie;if(await Tn(ee)!=="ok"||ft!==ie)return}const Re=S(ee),Qe=!Re&&u.has(ee);u.delete(ee);const Je=e.activeSessionId!==ee;try{(me?.urlMode??"push")==="push"&&(e.mainView="chat"),_i(ee,me?.urlMode??"push"),e.sessionLoading=!Re&&!Qe,k(ee),!me?.skipTrack&&Je&&void 0,e.unreadBySession[ee]&&(e.unreadBySession={...e.unreadBySession,[ee]:!1},ae({[ee]:!1})),Hs().clearFileDiff();const ft=e.sessions.find(vt=>vt.id===ee);if(ft){const vt=R(ft);e.activeWorkspaceId!==vt&&st(vt)}if(Re){if(await T(ee)==="not-found")return}else if(await A(ee,{skipStatusRefresh:me?.skipStatusRefresh===!0})==="not-found")return;be(ee,{skipStatus:me?.skipStatusRefresh===!0})}catch(ft){r("selectSession",ft,{sessionId:ee})}finally{e.activeSessionId===ee&&(e.sessionLoading=!1)}}async function Ti(ee,me,Me){const Re=m8(ee);e.inFlightBySession={...e.inFlightBySession,[ee]:!0};const Qe=y();let Je=e.pendingThinkingBySession[ee];try{const ft=Wt(),vt=[];if(me&&vt.push({type:"text",text:me}),vt.push(...T2(Me)),vt.length===0)return e.inFlightBySession={...e.inFlightBySession,[ee]:!1},"rejected";const Pt={id:Qe,sessionId:ee,role:"user",content:vt,createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};w(ee,ya=>[...ya,Pt]);const fn=e.sessions.find(ya=>ya.id===ee),dn=(fn?.model&&fn.model.length>0?fn.model:e.defaultModel)??void 0,ui=e.planArmedBySession[ee]??!1,Ln=ui||(e.planModeBySession[ee]??!1),Sn=e.swarmModeBySession[ee]??!1,fi=e.goalModeBySession[ee]??!1;ui&&(e.planArmedBySession={...e.planArmedBySession,[ee]:!1},$(),(e.planModeBySession[ee]??!1)||(await ft.updateSession(ee,{planMode:!0}),e.planModeBySession={...e.planModeBySession,[ee]:!0})),fi&&me&&(await ft.updateSession(ee,{goalObjective:me.trim(),planMode:!1}),e.planModeBySession={...e.planModeBySession,[ee]:!1});const Ui=await s.resolveThinkingForPrompt(ee,dn)??e.thinking;Je=e.pendingThinkingBySession[ee];const Fr=await ft.submitPrompt(ee,{content:vt,model:dn,thinking:Ui,permissionMode:e.permission,planMode:Ln&&!(fi&&me),swarmMode:Sn});return Ui!==void 0&&Au(e,ee,Je),fi&&me&&(e.goalModeBySession={...e.goalModeBySession,[ee]:!1},P()),e.promptIdBySession={...e.promptIdBySession,[ee]:Fr.promptId},Ne(ee,Qe,Fr.promptId,Fr.userMessageId),b()?.bindNextPromptId(ee,Fr.promptId),"ok"}catch(ft){return e.inFlightBySession={...e.inFlightBySession,[ee]:!1},w(ee,vt=>vt.some(Pt=>Pt.id===Qe)?vt.filter(Pt=>Pt.id!==Qe||Pt.promptId!==void 0||Pt.userMessageId!==void 0):vt),Au(e,ee,Je)&&x(ee),r("sendPrompt",ft,{sessionId:ee}),ko(ft)?"rejected":"uncertain"}finally{v8(ee,Re)}}async function Qs(ee,me){const Me=e.activeSessionId;if(Me){if(a.value!=="idle"||e.inFlightBySession[Me]){wi(ee,me);return}if((e.queuedBySession[Me]?.length??0)>0||(iu.get(Me)??0)>0){wi(ee,me),$o(Me);return}await Ti(Me,ee,me)}}async function Li(ee,me,Me){iu.set(ee,(iu.get(ee)??0)+1);try{if(a.value==="idle"&&!e.inFlightBySession[ee])return await Ti(ee,me,Me);const Re=[];me&&Re.push({type:"text",text:me}),Re.push(...T2(Me));const Qe=y(),Je={id:Qe,sessionId:ee,role:"user",content:Re,createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};w(ee,Pt=>[...Pt,Je]);const ft=m8(ee);let vt=!1;try{const Pt=Wt(),fn=e.sessions.find(fi=>fi.id===ee),dn=(fn?.model&&fn.model.length>0?fn.model:e.defaultModel)??void 0,ui=await s.resolveThinkingForPrompt(ee,dn)??e.thinking,Ln=e.pendingThinkingBySession[ee];vt=!0;const Sn=await Pt.submitPrompt(ee,{content:Re,model:dn,thinking:ui,permissionMode:e.permission,planMode:e.planModeBySession[ee]??!1,swarmMode:e.swarmModeBySession[ee]??!1});if(ui!==void 0&&Au(e,ee,Ln),Ne(ee,Qe,Sn.promptId,Sn.userMessageId),Sn.status!=="queued")return e.promptIdBySession={...e.promptIdBySession,[ee]:Sn.promptId},b()?.bindNextPromptId(ee,Sn.promptId),"ok";try{await Pt.steerPrompts(ee,[Sn.promptId])}catch{}return"ok"}catch(Pt){return w(ee,fn=>fn.filter(dn=>dn.id!==Qe||dn.promptId!==void 0||dn.userMessageId!==void 0)),r("steer",Pt,{sessionId:ee}),ko(Pt)||!vt?"rejected":"uncertain"}finally{v8(ee,ft)}}finally{const Re=(iu.get(ee)??1)-1;Re<=0?iu.delete(ee):iu.set(ee,Re)}}function an(ee){(iu.get(ee)??0)>0||a.value!=="idle"||e.inFlightBySession[ee]||$o(ee)}async function to(ee,me){const Me=e.activeSessionId;if(!Me)return;const Qe=(vp.get(Me)??Promise.resolve()).catch(()=>{}).then(()=>Jn(Me,ee,me));return vp.set(Me,Qe),Qe}async function Jn(ee,me,Me){const Re=e.queuedBySession[ee]??[],Qe=[],Je=[];for(const dn of Re){const ui=dn.text.trim();ui&&Qe.push(ui),dn.attachments?.length&&Je.push(...dn.attachments)}const ft=me.trim();if(ft&&Qe.push(ft),Me?.length&&Je.push(...Me),Qe.length===0&&Je.length===0)return;Re.length>0&&(e.queuedBySession={...e.queuedBySession,[ee]:[]});const vt=Qe.join(` - -`),Pt=()=>{if(Re.length===0)return;const dn=e.queuedBySession[ee]??[];e.queuedBySession={...e.queuedBySession,[ee]:[...Re,...dn]}},fn=await Li(ee,vt,Je);fn==="rejected"&&Pt(),fn!=="ok"&&an(ee)}async function Wo(ee){const me=e.activeSessionId;if(!me)return;const Me=(e.queuedBySession[me]??[])[ee];if(Me===void 0)return;const Re=Me.id??Me.text,Je=(vp.get(me)??Promise.resolve()).catch(()=>{}).then(()=>Mn(me,Re));return vp.set(me,Je),Je}async function Mn(ee,me){const Me=e.queuedBySession[ee]??[],Re=Me.findIndex(Pt=>(Pt.id??Pt.text)===me),Qe=Re>=0?Me[Re]:void 0;if(Qe===void 0)return;const Je=Qe.attachments??[];if(Qe.text.trim().length===0&&Je.length===0)return;const ft=[...Me];ft.splice(Re,1),e.queuedBySession={...e.queuedBySession,[ee]:ft};const vt=await Li(ee,Qe.text,Je);if(vt==="rejected"&&e.sessions.some(Pt=>Pt.id===ee)){const fn=[...e.queuedBySession[ee]??[]];fn.splice(Math.min(Re,fn.length),0,Qe),e.queuedBySession={...e.queuedBySession,[ee]:fn}}vt!=="ok"&&an(ee)}async function Ni(ee,me){try{const Re=await Wt().uploadFile({file:ee,name:me});return{fileId:Re.id,name:Re.name,mediaType:Re.mediaType}}catch(Me){return r("uploadImage",Me),null}}function wi(ee,me){const Me=e.activeSessionId;if(!Me)return;const Re=e.queuedBySession[Me]??[],Qe={text:ee,attachments:me,id:mhe()};e.queuedBySession={...e.queuedBySession,[Me]:[...Re,Qe]}}function $o(ee){if((iu.get(ee)??0)>0)return;const[me,...Me]=e.queuedBySession[ee]??[];me!==void 0&&(e.queuedBySession={...e.queuedBySession,[ee]:Me},Ti(ee,me.text,me.attachments).then(Re=>{if(Re==="ok"){xd.delete(ee);return}if(Re==="uncertain"){xd.delete(ee);return}if(!e.sessions.some(Pt=>Pt.id===ee)){xd.delete(ee);return}const Qe=me.id??me.text,Je=xd.get(ee),ft=Je!==void 0&&Je.key===Qe?Je.count+1:1;if(ft>=hhe){xd.delete(ee),(e.queuedBySession[ee]?.length??0)>0&&$o(ee);return}xd.set(ee,{key:Qe,count:ft});const vt=e.queuedBySession[ee]??[];e.queuedBySession={...e.queuedBySession,[ee]:[me,...vt]}}))}function $s(ee,me){const Me=e.inFlightBySession[ee]===!0;if(e.inFlightBySession={...e.inFlightBySession,[ee]:!1},e.promptIdBySession[ee]!==void 0){const Qe={...e.promptIdBySession};delete Qe[ee],e.promptIdBySession=Qe}return(Me||me?.turnWasActive===!0||(e.turnActiveBySession[ee]??!1))&&$o(ee),Me}function Vi(ee,me){me.inFlightTurn!==null&&me.busy||$s(ee)}async function Cn(){const ee=e.activeSessionId;if(!ee)return!1;const me=e.sessions.find(vt=>vt.id===ee);let Me=e.promptIdBySession[ee];if(Me===void 0){const vt=me?.currentPromptId;vt!==void 0&&vt.length>0&&!vt.startsWith("pr_")&&(Me=vt)}const Re=Wt();let Qe=!1;const Je=()=>{e.inFlightBySession={...e.inFlightBySession,[ee]:!1},e.turnActiveBySession={...e.turnActiveBySession,[ee]:!1}};if(Me!==void 0)try{if((await Re.abortPrompt(ee,Me)).aborted)return!0;Qe=!0;const Pt={...e.promptIdBySession};delete Pt[ee],e.promptIdBySession=Pt,Je()}catch(vt){if(ko(vt)&&vt.code===she){Qe=!0;const Pt={...e.promptIdBySession};delete Pt[ee],e.promptIdBySession=Pt,Je()}else return r("abortCurrentPrompt",vt,{sessionId:ee}),!1}if(Qe||!((e.inFlightBySession[ee]??!1)||(e.turnActiveBySession[ee]??!1)||(me?.mainTurnActive??!1)))return!1;try{return(await Re.abortSession(ee)).aborted===!0}catch(vt){return r("abortCurrentPrompt",vt,{sessionId:ee}),!1}}async function Rs(ee,me){const Me=e.activeSessionId;if(!Me||Fm[ee])return;Fm[ee]=!0;const Re=e.approvalsBySession[Me]?.find(Qe=>Qe.approvalId===ee&&Qe.toolName==="ExitPlanMode")?.toolCallId;try{const Qe=Wt(),Je={decision:me.decision,scope:me.scope,feedback:me.feedback,selectedLabel:me.selectedLabel};await Qe.respondApproval(Me,ee,Je),qs().removePendingApproval(Me,ee),Re!==void 0&&(N(Me,Re,{state:me.decision,selectedOption:me.selectedLabel,feedback:me.feedback}),M(Me,Re))}catch(Qe){x3(Qe)?(qs().removePendingApproval(Me,ee),Re!==void 0&&M(Me,Re)):r("respondApproval",Qe,{sessionId:Me})}finally{delete Fm[ee]}}async function qo(ee,me){const Me=e.activeSessionId;if(Me&&!pd[ee]){pd[ee]="answer";try{await Wt().respondQuestion(Me,ee,me),qs().removePendingQuestion(Me,ee)}catch(Re){x3(Re)?qs().removePendingQuestion(Me,ee):r("respondQuestion",Re,{sessionId:Me})}finally{delete pd[ee]}}}async function ar(ee){const me=e.activeSessionId;if(me&&!pd[ee]){pd[ee]="dismiss";try{await Wt().dismissQuestion(me,ee),qs().removePendingQuestion(me,ee)}catch(Me){x3(Me)?qs().removePendingQuestion(me,ee):r("dismissQuestion",Me,{sessionId:me})}finally{delete pd[ee]}}}async function ks(ee){const me=e.activeSessionId;if(me&&!S3[ee]){S3[ee]=!0;try{const Me=Wt(),Re=(e.tasksBySession[me]??[]).find(Je=>Je.id===ee)?.backgroundTaskId;await Me.cancelTask(me,Re??ee);const Qe=e.tasksBySession[me]??[];e.tasksBySession={...e.tasksBySession,[me]:Qe.map(Je=>(Re!==void 0?Je.backgroundTaskId===Re:Je.id===ee||Je.backgroundTaskId===ee)?{...Je,status:"cancelled",completedAt:Je.completedAt??new Date().toISOString(),completedAtEstimated:Je.completedAt===void 0?!0:Je.completedAtEstimated}:Je)}}catch(Me){dhe(Me)||r("cancelTask",Me,{sessionId:me})}finally{delete S3[ee]}}}function yi(ee){const me=e.activeSessionId;me?(e.planArmedBySession={...e.planArmedBySession,[me]:ee},$(),!ee&&(e.planModeBySession[me]??!1)&&(e.planModeBySession={...e.planModeBySession,[me]:!1},I({planMode:!1},me))):Z.planMode=ee}function Vn(){const ee=e.activeSessionId,me=ee?(e.planArmedBySession[ee]??!1)||(e.planModeBySession[ee]??!1):Z.planMode;yi(!me)}function ji(ee){const me=e.activeSessionId;me?(e.swarmModeBySession={...e.swarmModeBySession,[me]:ee},W(),I({swarmMode:ee})):Z.swarmMode=ee}async function Fi(){const ee=e.activeSessionId,Me=!(ee?e.swarmModeBySession[ee]??!1:Z.swarmMode);Me&&e.permission==="manual"&&!await n({title:gi("workspace.swarmEnableTitle"),message:gi("workspace.swarmEnableConfirm"),variant:"primary"})||ji(Me)}function bs(ee){const me=e.activeSessionId;me?(e.goalModeBySession={...e.goalModeBySession,[me]:ee},P()):Z.goalMode=ee}function As(){const ee=e.activeSessionId,me=ee?e.goalModeBySession[ee]??!1:Z.goalMode;bs(!me)}async function Eo(ee){const me=ee.trim();if(!me||e.permission==="manual"&&!await n({title:gi("workspace.goalStartTitle"),message:gi("workspace.goalStartConfirm",{objective:me}),variant:"primary"}))return null;let Me=e.activeSessionId,Re=null;if(!Me){const Qe=e.activeWorkspaceId,Je=Qe&&H.value.some(ft=>ft.id===Qe)?Qe:H.value[0]?.id??null;if(!Je)return null;try{Me=await Yn(Je)??void 0,Re=Me??null}catch(ft){return r("createGoal",ft),null}if(!Me)return null}try{await Wt().updateSession(Me,{goalObjective:me,planMode:!1}),e.planModeBySession={...e.planModeBySession,[Me]:!1}}catch(Qe){return r("createGoal",Qe,{sessionId:Me,message:oe(Qe)}),Re}return e.goalModeBySession[Me]&&(e.goalModeBySession={...e.goalModeBySession,[Me]:!1},P()),e.activeSessionId===Me?await Qs(me):await Ti(Me,me),Re}function Tr(ee){const me=e.activeSessionId;me&&Promise.resolve(Wt().updateSession(me,{goalControl:ee})).catch(Me=>{r("controlGoal",Me,{sessionId:me,message:oe(Me)})})}function Lr(ee){e.permission=ee,j(ee),I({permissionMode:ee})}function jl(ee){const me=[...e.warnings];me.splice(ee,1),e.warnings=me}async function Nr(ee,me){try{await Wt().updateSession(ee,{title:me}),d(ee,Re=>({...Re,title:me})),e.doneSessions.some(Re=>Re.id===ee)&&(e.doneSessions=e.doneSessions.map(Re=>Re.id===ee?{...Re,title:me}:Re))}catch(Me){r("renameSession",Me,{sessionId:ee})}}async function Di(ee){const me=await Wt().generateSessionTitle(ee,{force:!0,source:"digest"});return me===null?l({severity:"info",title:gi("sidebar.genTitleUnavailable")}):e.doneSessions.some(Me=>Me.id===ee)&&(e.doneSessions=e.doneSessions.map(Me=>Me.id===ee?{...Me,title:me}:Me)),me}async function Xn(ee,me){const Me=e.workspaces.find(Qe=>Qe.id===ee)?.root,Re=()=>{e.workspaces=e.workspaces.map(Qe=>Qe.id===ee?{...Qe,name:me}:Qe)};try{if(await Wt().updateWorkspace(ee,{name:me}),Me!==void 0){const Qe=Im();Me in Qe&&(delete Qe[Me],g_(Qe))}Re()}catch(Qe){if(Me!==void 0&&ko(Qe)&&Qe.code===rhe){g_({...Im(),[Me]:me}),Re();return}r("renameWorkspace",Qe)}}async function Cs(ee){const me=e.workspaces.find(Je=>Je.id===ee)?.root??z.value.find(Je=>Je.id===ee)?.root??ee,Me=e.activeSessionId?e.sessions.find(Je=>Je.id===e.activeSessionId):void 0,Re=e.activeWorkspaceId===ee||e.activeWorkspaceId===me,Qe=!!(Me&&(Me.cwd===me||Me.workspaceId===ee||R(Me)===ee));me&&!e.hiddenWorkspaceRoots.includes(me)&&(e.hiddenWorkspaceRoots=[...e.hiddenWorkspaceRoots,me],Y(e.hiddenWorkspaceRoots));try{await Wt().deleteWorkspace(ee)}catch(Je){bu("[kimi-code] deleteWorkspace registry cleanup failed for",ee,Je)}if(e.workspaces=e.workspaces.filter(Je=>Je.id!==ee&&Je.root!==me),Re||Qe){const Je=H.value[0]?.id??null;if(e.activeWorkspaceId=Je,Je)V(Je);else try{_r(un.activeWorkspace)}catch{}}(Re||Qe)&&(k(void 0),e.sessionLoading=!1,Hs().clearFileDiff(),_i(void 0,"replace"))}const Uo=500,On=new Set;function Hi(ee){if(!On.has(ee)){if(On.size>=Uo){const me=On.values().next().value;me!==void 0&&On.delete(me)}On.add(ee)}}const Wi=new Set;function rs(ee){if(!Wi.has(ee)){if(Wi.size>=Uo){const me=Wi.values().next().value;me!==void 0&&Wi.delete(me)}Wi.add(ee)}}const jn=new Map;function Ke(ee){if(jn.has(ee)&&jn.delete(ee),jn.size>=Uo){const me=jn.keys().next().value;me!==void 0&&jn.delete(me)}jn.set(ee,Date.now())}const Ue=new Set,yt=new Set;async function xt(ee,me){const Me=new Set(ee);if(me){for(const ft of ee)Hi(ft);const Qe=new Date().toISOString(),Je=e.sessions.filter(ft=>Me.has(ft.id));Je.length>0&&(e.doneSessions=[...Je.map(ft=>({...ft,archived:!0,archivedAt:Qe})),...e.doneSessions.filter(ft=>!Me.has(ft.id))]);for(const ft of ee)g(ft),xv.delete(ft);if(e.activeSessionId!==void 0&&Me.has(e.activeSessionId)){const ft=e.sessions[0];ft?await Ki(ft.id,{urlMode:"replace",skipTrack:!0}):(k(void 0),_i(void 0,"replace"))}return}for(const Qe of ee)On.delete(Qe),rs(Qe),Ke(Qe);const Re=e.doneSessions.filter(Qe=>Me.has(Qe.id));e.doneSessions=e.doneSessions.filter(Qe=>!Me.has(Qe.id));for(const Qe of Re)e.sessions.some(Je=>Je.id===Qe.id)||(Ie.add(Qe.id),h({...Qe,archived:!1}))}async function rn(ee){try{const me=Wt();yt.delete(ee),Ue.add(ee);const Me=e.sessions.find(Je=>Je.id===ee),Re=Me!==void 0?R(Me):void 0,Qe=Re!==void 0?$t(Re).length:0;await me.archiveSession(ee),await xt([ee],!0),Me!==void 0&&Re!==void 0&&jt(Re,ee,Me.updatedAt,Qe),Ue.delete(ee),yt.delete(ee)}catch(me){Ue.delete(ee),yt.delete(ee)||r("archiveSession",me,{sessionId:ee})}}async function Zi(ee,me){if(jn.has(ee)){let Je;try{Je=(await Wt().getSession(ee)).archived}catch{return!1}if(!Je)return!1}Ue.delete(ee)&&yt.add(ee),Wi.delete(ee),jn.delete(ee),Hi(ee);const Me=e.sessions.find(Je=>Je.id===ee);if(Me===void 0&&e.activeSessionId!==ee)return!0;const Re=me??(Me!==void 0?R(Me):void 0),Qe=Re!==void 0?$t(Re).length:0;return await xt([ee],!0),Me!==void 0&&Re!==void 0&&jt(Re,ee,Me.updatedAt,Qe),!0}async function Gi(ee){if(pe)return!1;const me=ee??e.activeSessionId;if(!me){const Re=gi("commands.export.noSession");return Ll("export:failed",{status:"no-session"}),r("exportSession",new Error(Re),{message:Re}),!1}pe=!0;const Me=Date.now();Ll("export:start",{sessionId:me});try{const Re=qfe(),{blob:Qe,fileName:Je}=await Wt().exportSession(me,Re,{desktop:bf});if(typeof document>"u")throw new Error("Document is unavailable");const ft=URL.createObjectURL(Qe);let vt;try{vt=document.createElement("a"),vt.href=ft,vt.download=Je,document.body.append(vt),vt.click()}finally{vt?.remove(),setTimeout(()=>{try{URL.revokeObjectURL(ft)}catch{}},0)}return Ll("export:accepted",{sessionId:me,status:"accepted",zipBytes:Qe.size,durationMs:Date.now()-Me}),!0}catch(Re){const Qe=typeof Re=="object"&&Re!==null?Re:void 0;return Ll("export:failed",{sessionId:me,status:"failed",durationMs:Date.now()-Me,errorName:typeof Qe?.name=="string"?Qe.name:typeof Re,errorCode:typeof Qe?.code=="number"?Qe.code:void 0,requestId:typeof Qe?.requestId=="string"?Qe.requestId:void 0,phase:typeof Qe?.phase=="string"?Qe.phase:void 0,httpStatus:typeof Qe?.status=="number"?Qe.status:void 0}),r("exportSession",Re,{sessionId:me,...ko(Re)&&Re.code===zY?{message:gi("commands.export.tooLarge",{sessionId:me})}:{}}),!1}finally{pe=!1}}async function oo(ee){try{const me=await Wt().restoreSession(ee);return h(me),await xt([ee],!1),!0}catch(me){return r("restoreSession",me,{sessionId:ee}),!1}}function qi(ee){return Wt().listSessions({archivedOnly:!0,beforeId:ee?.beforeId,pageSize:ee?.pageSize??50})}async function vo(){try{await Wt().logout(),await se(),await mn()}catch(ee){r("logout",ee)}}function so(ee){const me=e.activeSessionId;me&&Wt().compactSession(me,ee).catch(Me=>{r("compact",Me,{sessionId:me})})}async function Ro(ee){const me=ee??e.activeSessionId;if(me)try{const Me=await Wt().forkSession(me);h(Me),await Ki(Me.id,{skipTrack:!0})}catch(Me){r("fork",Me,{sessionId:me})}}async function ot(ee=1){const me=e.activeSessionId;if(!me)return null;const Me=e.messagesBySession[me]??[];let Re=-1;for(let vt=Me.length-1;vt>=0;vt--){const Pt=Me[vt];if(Pt.role==="user"&&!(Pt.metadata?.origin&&Pt.metadata.origin.kind!=="user")){Re=vt;break}}const Qe=Re>=0?Me[Re].content.filter(vt=>vt.type==="text").map(vt=>vt.text).join(` -`):null,Je=ee===1&&Re>=0&&Me.slice(Re+1).every(vt=>vt.role!=="user"),ft=Je?e.sessions.find(vt=>vt.id===me):void 0;if(Je&&(e.messagesBySession={...e.messagesBySession,[me]:Me.slice(0,Re)},ft!==void 0)){const vt={...ft};delete vt.lastTurnReason,h(vt)}try{return await Wt().undoSession(me,ee),await A(me),{text:Qe}}catch(vt){return Je&&(e.messagesBySession={...e.messagesBySession,[me]:Me},ft!==void 0&&h(ft),await A(me).catch(()=>{})),r("undo",vt,{sessionId:me}),null}}function xe(ee){const me=e.activeSessionId;if(!me)return;const Me=e.queuedBySession[me]??[];if(ee<0||ee>=Me.length)return;const Re=[...Me];Re.splice(ee,1),e.queuedBySession={...e.queuedBySession,[me]:Re}}function je(ee,me){const Me=e.activeSessionId;if(!Me)return;const Re=e.queuedBySession[Me]??[];if(ee===me||ee<0||ee>=Re.length||me<0||me>=Re.length)return;const Qe=[...Re],[Je]=Qe.splice(ee,1);Je!==void 0&&(Qe.splice(me,0,Je),e.queuedBySession={...e.queuedBySession,[Me]:Qe})}async function Dn(ee){const me=e.activeSessionId;if(!me)return[];try{return(await Wt().listDirectory(me,{path:ee,includeGitStatus:!0})).items}catch{return[]}}async function vn(ee,me){const Me=e.activeSessionId;if(!Me){let Re=ee;if(!Ss(ee)){const Qe=e.activeWorkspaceId,Je=Qe&&H.value.some(vt=>vt.id===Qe)?Qe:H.value[0]?.id??null,ft=Je?z.value.find(vt=>vt.id===Je)?.root:void 0;if(!ft)return!0;Re=`${ft.replace(/[\\/]+$/,"")}/${ee}`}try{return await ii(Re),!0}catch(Qe){return!(ko(Qe)&&Qe.code===F_)}}try{if(Ss(ee))return await ii(ee),!0;const Re=Wt();return me==="folder"?await Re.listDirectory(Me,{path:ee}):await Re.readFile(Me,{path:ee,length:1}),!0}catch(Re){return!(ko(Re)&&Re.code===F_)}}async function ii(ee){return Wt().readHostFileContent(ee)}const ws=10485760;function xs(ee){const me=e.activeSessionId;return me?Wt().getFileDownloadUrl(me,ee):null}async function ro(ee,me){const Me=e.activeSessionId;if(!Me)return!1;try{return await Wt().openFile(Me,{path:ee,line:me}),!0}catch(Re){return r("openFile",Re,{sessionId:Me}),!1}}async function ai(ee){const me=e.activeSessionId;if(!me)return;const Me=O.value.cwd||".";try{await Wt().openInApp(me,ee,Me)}catch(Re){r("openInApp",Re,{sessionId:me})}}async function Ys(ee){const me=e.activeSessionId;if(!me)return!1;try{return await Wt().revealFile(me,{path:ee}),!0}catch(Me){return r("revealFile",Me,{sessionId:me}),!1}}function Ss(ee){return ee.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(ee)||ee.startsWith("\\\\")}async function el(ee){if(/^(https?:|data:|blob:)/i.test(ee))return ee;const me=e.activeSessionId;if(!me)return ee;let Me=ee;if(Ss(Me)){const Re=e.sessions.find(Je=>Je.id===me)?.cwd,Qe=Re?d9(Me,Re):null;if(Qe)Me=Qe;else try{const Je=await ii(Me);return!Je.isBinary||Je.encoding!=="base64"?ee:`data:${Je.mime};base64,${Je.content}`}catch{return ee}}try{const Qe=await Wt().readFile(me,{path:Me,length:ws});return!Qe.isBinary||Qe.encoding!=="base64"||Qe.truncated?ee:`data:${Qe.mime};base64,${Qe.content}`}catch{return ee}}let ur=!1;async function tl(ee){const me=e.sessions.find(Re=>Re.id===e.activeSessionId),Me=me===void 0?e.activeWorkspaceId:R(me);if(!Me)return[];try{const Re=Wt();if(!ur)try{return(await Re.suggestFiles(Me,{query:ee,limit:20})).items.map(ft=>({path:ft.path,name:ft.name,kind:ft.kind,matchPositions:ft.matchPositions}))}catch(Je){if(!ko(Je)||Je.code!==404)throw Je;ur=!0}return(await Re.searchFiles(Me,{query:ee,limit:20})).items.map(Je=>({path:Je.path,name:Je.name,kind:Je.kind,matchPositions:Je.matchPositions}))}catch{return[]}}return{checkAuth:se,probeManagedMembership:Ae,loadConfig:G,updateConfig:le,listAllSessionsGlobal:ke,load:mn,refreshServerMeta:bn,loadWorkspaces:zn,loadMoreSessions:Ct,loadAllSessions:kn,ensureFlatSessions:Le,loadMoreFlatSessions:ze,ensureDoneSessions:Tt,loadMoreDoneSessions:on,selectWorkspace:st,openWorkspace:et,upsertWorkspacePreserveOrder:Nt,applyWorkspaceEvent:Lt,clearActiveSession:qn,openWorkspaceDraft:So,startSessionAndSendPrompt:Ir,startSessionAndActivateSkill:_o,startSessionAndOpenSideChat:It,addWorkspaceByPath:ms,browseFs:Er,getFsHome:go,writeSessionUrl:_i,openSessionAdmin:Mo,closeSessionAdmin:ys,fetchSessionIntoList:Tn,onSessionRoutePopState:Kn,bindSessionRoute:Io,selectSession:Ki,submitPromptInternal:Ti,finishPromptLocal:$s,maybeGenerateSessionTitle:ghe,localTurnStartState:vhe,isLocalTurnSnapshotCurrent:khe,afterLocalTurnStartsSettle:bhe,handleSessionSnapshot:Vi,sendPrompt:Qs,steerPrompt:to,steerQueued:Wo,uploadImage:Ni,enqueue:wi,unqueue:xe,reorderQueue:je,abortCurrentPrompt:Cn,respondApproval:Rs,respondQuestion:qo,dismissQuestion:ar,pendingQuestionActions:pd,pendingApprovalActions:Fm,cancelTask:ks,setPlanMode:yi,togglePlanMode:Vn,setSwarmMode:ji,toggleSwarmMode:Fi,setGoalMode:bs,toggleGoalMode:As,createGoal:Eo,controlGoal:Tr,setPermission:Lr,dismissWarning:jl,renameSession:Nr,regenerateSessionTitle:Di,renameWorkspace:Xn,deleteWorkspace:Cs,archiveSession:rn,applySessionsArchivedLocally:xt,applyRemoteSessionArchived:Zi,exportSession:Gi,restoreSession:oo,loadArchivedSessions:qi,logout:vo,compact:so,forkSession:Ro,undo:ot,listDir:Dn,readHostFileContent:ii,probeWorkspacePath:vn,getFileDownloadUrl:xs,openWorkspaceFile:ro,openInApp:ai,revealWorkspaceFile:Ys,resolveImageUrl:el,searchFiles:tl,loadOlderMessages:te,refreshSessionSidecars:be,isStartingFirstPrompt:()=>wa.size>0}}const Che=20,whe=300,xhe=1e4,B_=5e3;function N$(e){const[t,n,i]=e.split("-").map(Number);return new Date(t??0,(n??1)-1,i??1,0,0,0,0).getTime()}function F$(e){const[t,n,i]=e.split("-").map(Number);return new Date(t??0,(n??1)-1,i??1,23,59,59,999).getTime()}function She(e,t,n){return{workspaceIds:e.workspaceIds.length>0?[...e.workspaceIds]:void 0,archived:e.status==="all"?"all":e.status==="done",updatedAfter:e.updatedFrom!==""?N$(e.updatedFrom):void 0,updatedBefore:e.updatedTo!==""?F$(e.updatedTo):void 0,sort:"meta.updated_at_desc",page:t,pageSize:n}}function _he(e){return{workspaceIds:e.workspaceIds.length>0?[...e.workspaceIds]:void 0,archived:e.status==="all"?"all":e.status==="done",updatedAfter:e.updatedFrom!==""?N$(e.updatedFrom):void 0,updatedBefore:e.updatedTo!==""?F$(e.updatedTo):void 0,sort:"meta.updated_at_desc"}}function Dm(e){return JSON.stringify([[...e.workspaceIds].toSorted(),e.status,e.updatedFrom,e.updatedTo])}function Mhe(e){const t=jo({filters:{workspaceIds:[],status:"all",updatedFrom:"",updatedTo:""},page:1,pageSize:Che,items:[],total:0,loading:!1,seeded:!1,selectedIds:new Set,selectedArchivedById:new Map,allMatching:!1,materializingAll:!1});let n=0,i=null;async function o(){i!==null&&(clearTimeout(i),i=null);const x=++n;t.loading=!0;try{const _=await Wt().listSessionsV2(She(t.filters,t.page,t.pageSize));if(x!==n)return;t.items=_.items,t.total=_.total;for(const M of _.items)t.selectedArchivedById.has(M.id)&&t.selectedArchivedById.set(M.id,M.meta.archived);const L=Math.max(1,Math.ceil(_.total/t.pageSize));t.page>L&&(t.page=L,o())}catch(_){if(x!==n)return;e.pushOperationFailure("sessionAdmin",_)}finally{x===n&&(t.loading=!1)}}function s(){i!==null&&clearTimeout(i),i=setTimeout(()=>{i=null,o()},whe)}function r(){t.seeded||(t.seeded=!0,o())}async function l(){await o()}function a(x){t.allMatching&&Dm(x)!==Dm(t.filters)&&w(),t.filters.workspaceIds=[...x.workspaceIds],t.filters.status=x.status,t.filters.updatedFrom=x.updatedFrom,t.filters.updatedTo=x.updatedTo,t.page=1,t.seeded=!0,o()}function u(x){t.allMatching&&w(),t.filters.workspaceIds=[...x],t.page=1,s()}function c(x){t.allMatching&&w(),t.filters.status=x,t.page=1,s()}function d(x,_){t.allMatching&&w(),t.filters.updatedFrom=x,t.filters.updatedTo=_,t.page=1,s()}function h(x){x!==t.page&&(t.page=x,s())}function p(x){x!==t.pageSize&&(t.pageSize=x,t.page=1,s())}function g(x,_){if(t.selectedIds.has(x)){t.selectedIds.delete(x),t.selectedArchivedById.delete(x),t.selectedIds.size===0&&(t.allMatching=!1);return}t.selectedIds.add(x),t.selectedArchivedById.set(x,_)}function m(x){const _=x.length>0&&x.every(L=>t.selectedIds.has(L.id));for(const L of x)_?(t.selectedIds.delete(L.id),t.selectedArchivedById.delete(L.id)):(t.selectedIds.add(L.id),t.selectedArchivedById.set(L.id,L.archived));t.selectedIds.size===0&&(t.allMatching=!1)}function k(x){t.selectedIds=new Set(x.map(_=>_.id)),t.selectedArchivedById=new Map(x.map(_=>[_.id,_.archived])),t.allMatching=!1}function w(){t.selectedIds=new Set,t.selectedArchivedById=new Map,t.allMatching=!1}async function y(){if(t.allMatching||t.materializingAll)return;t.materializingAll=!0;const x=_he(t.filters),_=Dm(t.filters);try{const L=[];let M;for(;;){const N=await Wt().listSessionIdsV2({...x,pageSize:xhe,pageToken:M});if(L.push(...N.items),!N.hasMore||N.nextPageToken===null)break;M=N.nextPageToken}if(Dm(t.filters)!==_)return;for(const N of L)t.selectedIds.add(N.id),t.selectedArchivedById.set(N.id,N.archived);t.allMatching=!0}catch(L){e.pushOperationFailure("sessionAdmin",L)}finally{t.materializingAll=!1}}function b(x){const _=[];for(const[L,M]of t.selectedArchivedById)M===x&&_.push(L);return _}async function A(x,_,L){const M=[];let N=0,I=0;for(let z=0;zj.ok).map(j=>j.id);M.push(...R),N+=O.succeeded,I+=O.failed}catch(O){I+=x.length-z,e.pushOperationFailure(_?"archiveSessions":"restoreSessions",O);break}}if(M.length>0){await e.applySessionsArchivedLocally(M,_);for(const z of M)t.selectedIds.delete(z),t.selectedArchivedById.delete(z);t.selectedIds.size===0&&(t.allMatching=!1),await l()}return{okIds:M,succeeded:N,failed:I}}async function T(x){return A(x,!0,_=>Wt().archiveSessions(_))}async function S(x){return A(x,!1,_=>Wt().restoreSessions(_))}return{state:t,ensureSeeded:r,refresh:l,applyFilters:a,setWorkspaceIds:u,setStatus:c,setTimeRange:d,setPage:h,setPageSize:p,toggleSelection:g,togglePageSelection:m,setSelection:k,clearSelection:w,selectAllMatching:y,selectedIdsByArchived:b,archiveSessions:T,restoreSessions:S}}function Ihe(e){if(e.startsWith("kimi-complete-"))return"turn_complete";if(e.startsWith("kimi-question-"))return"question";if(e.startsWith("kimi-approval-"))return"approval"}function $_(e,t){const n=gs(e);return n===null?t:n==="1"}const Ehe="/favicon.ico",The=lg("kimi.notifications",()=>{const e=K($_(un.notifyEnabled,!0)),t=K($_(un.notifySound,!0)),n=K(typeof Notification<"u"?Notification.permission:"denied");async function i(c){if(!c){e.value=!1,is(un.notifyEnabled,"0");return}if(typeof Notification>"u")return;let d=Notification.permission;if(d==="default")try{d=await Notification.requestPermission()}catch{}n.value=d,d==="granted"&&(e.value=!0,is(un.notifyEnabled,"1"))}function o(c){t.value=c,is(un.notifySound,c?"1":"0")}function s(c,d,h){if(!e.value||typeof Notification>"u")return;const p=Notification.permission;if(p!=="denied"){if(p==="default"){Notification.requestPermission().then(g=>{n.value=g,g==="granted"&&r(c,d,h)});return}r(c,d,h)}}function r(c,d,h){if(!c.isUserWatching)try{const p=new Notification(d.title,{body:d.body,tag:h,icon:Ehe,silent:!t.value}),g=Ihe(h);g!==void 0&&void 0,p.onclick=()=>{try{window.kimiDesktop?.showWindow?.(),window.focus()}catch{}g!==void 0&&void 0,c.onClick(),p.close()}}catch{}}function l(c,d){s(d,ife(gi,d.sessionTitle),`kimi-complete-${c}-${d.promptId??Date.now()}`)}function a(c){s(c,ofe(gi,c.sessionTitle,c.questionPreview),`kimi-question-${c.questionId}`)}function u(c){s(c,sfe(gi,c.sessionTitle,c.toolName),`kimi-approval-${c.approvalId}`)}return{notifyEnabled:e,notifySound:t,notifyPermission:n,setNotifyEnabled:i,setNotifySound:o,maybeNotifyCompletion:l,maybeNotifyQuestion:a,maybeNotifyApproval:u}});function rc(){return The(f1)}const Bm=c1(),D$=un.permission,B$=un.activeWorkspace,$$=un.planArmed,R$=un.swarmMode,z$=un.goalMode,R_=40401,N2=un.onboarded;_r(un.codeFont);_r(un.accent);_r(un.theme);_r(un.thinking);_r(un.notifyOnComplete);_r(un.notifyOnQuestion);_r(un.notifyOnApproval);_r(un.soundOnComplete);function Lhe(){try{const e=gs(D$);if(e==="auto"||e==="yolo"||e==="manual")return e}catch{}return"manual"}function Nhe(e){try{is(D$,e)}catch{}}function $m(e){const t=gs(e);if(!t)return{};try{const n=JSON.parse(t);if(!n||typeof n!="object"||Array.isArray(n))return{};const i={};for(const[o,s]of Object.entries(n))s===!0&&(i[o]=!0);return i}catch{return{}}}function H6(e,t){try{const n={};for(const[i,o]of Object.entries(t))o&&(n[i]=!0);is(e,JSON.stringify(n))}catch{}}function W6(){H6($$,_e.planArmedBySession)}function O$(){H6(R$,_e.swarmModeBySession)}function P$(){H6(z$,_e.goalModeBySession)}function Fhe(){try{return gs(B$)}catch{return null}}const j$=un.hiddenWorkspaces;function Dhe(){try{const e=gs(j$);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function Bhe(e){try{is(j$,JSON.stringify(e))}catch{}}function $he(e){try{is(B$,e)}catch{}}function Rhe(e,t){if(t&&e.startsWith(t)){const i=e.slice(t.length);return i?`~${i}`:"~"}const n=e.match(/^\/(?:Users|home)\/[^/]+(\/.*)?$/);return n?`~${n[1]??""}`:e}const _e=jo({...Ioe(),get sessions(){return or().sessions},set sessions(e){or().setSessions(e)},get activeSessionId(){return or().activeSessionId},set activeSessionId(e){or().setActiveSessionId(e)},get approvalsBySession(){return qs().approvalsBySession},get questionsBySession(){return qs().questionsBySession},get gitStatusBySession(){return Hs().gitStatusBySession},connected:!1,serverVersion:"",webTitle:"",dangerousBypassAuth:!1,backend:"v1",experimentalFlags:{},workspaceName:"kimi-code",connection:"disconnected",permission:Lhe(),thinking:void 0,thinkingBySession:{},pendingThinkingBySession:{},planModeBySession:$m(un.planMode),planArmedBySession:$m($$),swarmModeBySession:$m(R$),goalModeBySession:$m(z$),loading:!1,sessionLoading:!1,queuedBySession:{},promptIdBySession:{},inFlightBySession:{},unreadBySession:$6(),authReady:!1,defaultModel:null,managedProviderStatus:null,managedUserInfo:null,managedMembership:null,workspaces:[],activeWorkspaceId:Fhe(),fsHome:null,recentRoots:[],hiddenWorkspaceRoots:Dhe(),availableOpenInApps:[],config:null,sideChatMessagesByAgent:{},sideChatSendingByAgent:{},sideChatUserMessageIdsBySession:{},messagesLoadingMoreBySession:{},messagesHasMoreBySession:{},messagesLoadMoreErrorBySession:{},sessionsHasMoreByWorkspace:{},sessionsLoadingMoreByWorkspace:{},sessionsCursorByWorkspace:{},sessionsInitialCountByWorkspace:{},sessionsFullyLoaded:!1,flatSessionsNextPageToken:null,flatSessionsHasMore:!0,flatSessionsLoading:!1,flatSessionsLoadingMore:!1,flatSessionsSeeded:!1,flatSessionsFrontier:null,doneSessions:[],doneSessionsNextPageToken:null,doneSessionsHasMore:!0,doneSessionsLoading:!1,doneSessionsLoadingMore:!1,doneSessionsSeeded:!1,draftEntry:"newChat",mainView:"chat"}),Cu=jo({}),q6=jo({}),zp=new Map,yp=new Map;function zhe(e,t){return`${e}\0${t??"*"}`}function H$(e,t,n){q6[t]=n;const i=Cu[e]?.[t];i&&(Cu[e]={...Cu[e],[t]:{...i,review:n}})}async function I0(e,t){if(t!==void 0){I0(e);return}const n=zhe(e,t),i=(zp.get(n)??0)+1;zp.set(n,i),t!==void 0&&yp.set(e,(yp.get(e)??0)+1);const o=yp.get(e)??0;try{const s=await Wt().getSessionPlans(e,{agentId:"main",toolCallId:t});if(zp.get(n)!==i||t===void 0&&(yp.get(e)??0)!==o||!_e.sessions.some(l=>l.id===e))return;const r=Object.fromEntries(s.map(l=>[l.toolCallId,l]));for(const[l,a]of Object.entries(r)){const u=q6[l];u&&(!a.review||a.review.state==="pending")&&(r[l]={...a,review:u})}Cu[e]=t===void 0?r:{...Cu[e],...r}}catch(s){bu("[refreshSessionPlans] plan history unavailable for",e,s)}}function Ohe(e){const t=`${e}\0`;for(const n of zp.keys())n.startsWith(t)&&zp.delete(n);yp.delete(e),delete Cu[e]}function Phe(e){delete Cu[e]}const ag=jo({planMode:!1,swarmMode:!1,goalMode:!1});function U6(e){_e.sessions=e}function m9(e,t){_e.sessions=_e.sessions.map(n=>n.id===e?t(n):n)}function jhe(e){_e.sessions=VB(_e.sessions,e)}function Hhe(e){_e.sessions=[..._e.sessions,e]}function Whe(e){_e.sessions=_e.sessions.filter(t=>t.id!==e)}function W$(){const e=_e.activeSessionId;e&&_e.unreadBySession[e]&&typeof document<"u"&&document.visibilityState==="visible"&&(_e.unreadBySession[e]=!1,R6({[e]:!1}))}typeof window<"u"&&window.addEventListener("storage",e=>{e.key===un.unread&&(_e.unreadBySession=$6(),W$())});function y8(){if(cl===null||!cl.health().stale)return;Ll("ws:stale-reconnect",{sessionId:_e.activeSessionId,status:"stale"}),Wfe("ws: stale socket on focus, reconnecting",{activeSessionId:_e.activeSessionId}),cl.reconnect();const e=_e.activeSessionId;e&&R2.request(e)}typeof document<"u"&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&(W$(),y8())});typeof window<"u"&&(window.addEventListener("focus",y8),window.addEventListener("online",y8));function K6(e){_e.activeSessionId=e}function qhe(e){Or(_e.messagesBySession,e)}function Uhe(e,t){_e.messagesBySession[e]=t}function q$(e,t){_e.messagesBySession[e]=t(_e.messagesBySession[e]??[])}function Khe(e){delete _e.messagesBySession[e]}function V6(e){cl?.unsubscribe(e),D2.forgetSession(e),Ws.clearSideChatForSession(e),b8.delete(e),m1e(e),Nh.discard(({meta:t})=>t.sessionId===e),Whe(e),Khe(e),Ohe(e),qs().clearSessionApprovals(e),qs().clearSessionQuestions(e),delete _e.tasksBySession[e],delete _e.goalBySession[e],Hs().clearSessionGitStatus(e),delete _e.lastSeqBySession[e],delete _e.compactionBySession[e],delete _e.messagesLoadingMoreBySession[e],delete _e.messagesHasMoreBySession[e],delete _e.messagesLoadMoreErrorBySession[e],delete k8[e],$2.delete(e),Sv.delete(e),eR.delete(e),yhe(e),delete _e.queuedBySession[e],delete _e.promptIdBySession[e],delete _e.inFlightBySession[e],delete _e.turnActiveBySession[e],delete _e.turnEndedPromptIdBySession[e],delete _e.turnErrorBySession[e],delete _e.turnRetryBySession[e],delete _e.planModeBySession[e],delete _e.planArmedBySession[e],delete _e.swarmModeBySession[e],delete _e.goalModeBySession[e],delete _e.thinkingBySession[e],delete _e.pendingThinkingBySession[e],W6(),O$(),P$(),or().unpinSession(e)}const U$=K(!1),K$=K(null);async function cf(e){let t;try{t=await Wt().getSessionStatus(e)}catch{return}m9(e,n=>({...n,model:t.model||n.model,usage:{...n.usage,contextTokens:t.contextTokens,contextLimit:t.maxContextTokens}})),_e.swarmModeBySession[e]=t.swarmMode,_e.planModeBySession[e]=t.planMode,_r(un.planMode),t.thinkingEffort.length>0&&EB(_e,e,t.thinkingEffort)}const F2=new Set;function Vhe(e){F2.add(e),V$(e).finally(()=>{F2.delete(e)})}async function V$(e){const t=_e.goalVersionBySession[e]??0;let n;try{n=await Wt().getSessionGoal(e)}catch{return}(_e.goalVersionBySession[e]??0)===t&&(n===null||n.status==="complete"?delete _e.goalBySession[e]:_e.goalBySession[e]=n)}function Z$(e,t){const n=t??_e.activeSessionId;if(!n)return Promise.resolve(!1);const i=e.thinking!==void 0?_e.pendingThinkingBySession[n]:void 0;return Promise.resolve(Wt().updateSession(n,e)).then(()=>(Au(_e,n,i),cf(n))).then(()=>!0).catch(o=>(Au(_e,n,i)&&cf(n),h1("persistSessionProfile",o,{sessionId:n}),!1))}function G$(e){try{return gs(e)??""}catch{return""}}function Zhe(){return typeof window>"u"?!1:new URLSearchParams(window.location.search).get("kimi_onboarded")==="1"}const Q$=Zhe();if(Q$&&G$(N2)!=="1")try{is(N2,"1")}catch{}const Y$=K(Q$||G$(N2)==="1");function Ghe(e){Y$.value=e;try{is(N2,e?"1":"0")}catch{}e&&window.kimiDesktop?.setOnboarded?.()}let cl=null;const D2=hfe({api:Wt(),connectEventsIfNeeded:Z6,getEventConnection:()=>cl});let z_=0;function J$(){return z_+=1,`msg_opt_${Date.now().toString(36)}_${z_}`}function O_(e,t,n){const i={sessions:_e.sessions,activeSessionId:_e.activeSessionId,messagesBySession:_e.messagesBySession,approvalsBySession:_e.approvalsBySession,planReviewByToolCallId:_e.planReviewByToolCallId,questionsBySession:_e.questionsBySession,tasksBySession:_e.tasksBySession,goalBySession:_e.goalBySession,goalVersionBySession:_e.goalVersionBySession,lastSeqBySession:_e.lastSeqBySession,turnActiveBySession:_e.turnActiveBySession,turnEndedPromptIdBySession:_e.turnEndedPromptIdBySession,turnErrorBySession:_e.turnErrorBySession,turnRetryBySession:_e.turnRetryBySession,compactionBySession:_e.compactionBySession,config:_e.config,warnings:_e.warnings},o=Roe(i,e,{sessionId:t,seq:n},{t:(s,r)=>r===void 0?gi(s):gi(s,r)});o.sessions!==i.sessions&&U6(o.sessions),o.activeSessionId!==i.activeSessionId&&K6(o.activeSessionId),qhe(o.messagesBySession),qs().applyApprovalsDiff(o.approvalsBySession),Or(_e.planReviewByToolCallId,o.planReviewByToolCallId),qs().applyQuestionsDiff(o.questionsBySession),Or(_e.tasksBySession,o.tasksBySession),Or(_e.goalBySession,o.goalBySession),Or(_e.goalVersionBySession,o.goalVersionBySession),Or(_e.lastSeqBySession,o.lastSeqBySession),Or(_e.turnActiveBySession,o.turnActiveBySession),Or(_e.turnEndedPromptIdBySession,o.turnEndedPromptIdBySession),Or(_e.turnErrorBySession,o.turnErrorBySession),Or(_e.turnRetryBySession,o.turnRetryBySession),Or(_e.compactionBySession,o.compactionBySession),o.config!==i.config&&(_e.config=o.config??null),zoe(o.warnings,i.warnings)||(_e.warnings=o.warnings),e.type==="goalUpdated"&&F2.delete(t),e.type==="configChanged"&&(_e.defaultModel=e.config.defaultModel??null),e.type==="modelCatalogChanged"&&(Zn.loadModels(),Zn.loadProviders()),e.type==="sessionUsageUpdated"&&(e.swarmMode!==void 0&&(_e.swarmModeBySession[e.sessionId]=e.swarmMode),e.planMode!==void 0&&(_e.planModeBySession[e.sessionId]=e.planMode),e.thinking!==void 0&&EB(_e,e.sessionId,e.thinking)),e.type==="sessionDeleted"&&(V6(e.sessionId),p8(e.sessionId)),e.type==="sessionUpdated"&&e.session.archived===!0&&p8(e.session.id)}function Qhe(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.role==="user")return;if(n.role==="assistant")for(let i=n.content.length-1;i>=0;i--){const o=n.content[i];if(o.type==="toolUse"&&o.toolName==="ExitPlanMode")return o.toolCallId}}}function Yhe(e,t){const n=_e.lastSeqBySession[t.sessionId]??0,i=_e.turnActiveBySession[t.sessionId]??!1,o=e.type==="approvalResolved"||e.type==="approvalExpired"?_e.approvalsBySession[t.sessionId]?.find(r=>r.approvalId===e.approvalId&&r.toolName==="ExitPlanMode")?.toolCallId:void 0,s=Ws.sideChatTargetBySession.value[t.sessionId];if(e.type==="messageCreated"&&e.message.role==="user"&&e.agentId!==void 0&&Object.prototype.hasOwnProperty.call(_e.sideChatMessagesByAgent,e.agentId)){O_({type:"unknown",raw:{_noop:!0}},t.sessionId,t.seq),Ws.reconcileSideChatUserMessage(e.agentId,e.message);return}if(O_(e,t.sessionId,t.seq),s){const{agentId:r}=s,l=t.sessionId;e.type==="agentDelta"&&e.agentId===r?e.delta.text&&Ws.appendSideChatAssistantText(r,l,e.delta.text):e.type==="agentTurnEnded"&&e.agentId===r?Ws.finishSideChatAgent(r,l):e.type==="taskProgress"&&e.taskId===r?Ws.appendSideChatAssistantText(r,l,e.outputChunk):e.type==="taskCompleted"&&e.taskId===r&&Ws.finishSideChatAgent(r,l,e.outputPreview)}if(e.type==="messageCreated"&&e.message.role==="user"&&e.message.promptId!==void 0){const r=e.message.sessionId;_e.promptIdBySession[r]!==e.message.promptId&&(_e.promptIdBySession[r]=e.message.promptId)}if(e.type==="turnActiveChanged"&&!e.active&&t.seq>n){const r=e.reason;Kpe(e.sessionId,r==="cancelled"||r==="failed"||r==="blocked"?"aborted":"idle",i);const l=Qhe(_e.messagesBySession[e.sessionId]??[]);l!==void 0&&I0(e.sessionId,l)}if(e.type==="sessionWorkChanged"&&(e.mainTurnActive===!1&&i||e.mainTurnActive===void 0&&!e.busy)&&t.seq>n&&Upe(e.sessionId),(e.type==="promptAborted"||e.type==="promptCompleted"&&e.reason==="blocked")&&t.seq>n&&_e.promptIdBySession[e.sessionId]===e.promptId&&Bt.finishPromptLocal(e.sessionId),e.type==="questionRequested"&&Vpe(e.sessionId,e.question),e.type==="approvalRequested"&&Zpe(e.sessionId,e.approval),o!==void 0){const r=e.type==="approvalResolved"?{state:e.decision,selectedOption:e.selectedLabel,feedback:e.feedback}:{state:"cancelled"};H$(t.sessionId,o,r),I0(t.sessionId,o)}}const Nh=Hse(({appEvent:e,meta:t})=>Yhe(e,t),({appEvent:e})=>zse(e),{coalesce:qse}),Jhe=3e4;let P_=0,tr=null;const Op=new Map;let B2=0,Fh=null;function Xhe(){Fh!==null&&(clearTimeout(Fh),Fh=null)}function j_(e){if(!_e.connected||Fh!==null)return;const t=Math.min(Jhe,1e3*2**B2);B2+=1,bu("[kimi-code] session work reconciliation incomplete; retrying",e),Fh=setTimeout(()=>{Fh=null,_e.connected&&X$()},t)}function e1e(e,t){const n=new Map(e.map(u=>[u.id,u]));let i=!1,o=!1;const s={..._e.turnActiveBySession},r=[],l=new Map,a=_e.sessions.map(u=>{const c=n.get(u.id);if(c===void 0)return u;const d=t.workEventSeqBySession.get(u.id)??0,h=t.turnEventSeqBySession.get(u.id)??0,p=t.pendingEventBySession.get(u.id),g=d>c.lastSeq,m=h>c.lastSeq,k=p!==void 0&&p.seq>c.lastSeq,w=g||m&&u.mainTurnActive===!0?u.busy||u.mainTurnActive===!0:c.busy,y=g||m?u.mainTurnActive:c.mainTurnActive??(w?u.mainTurnActive:!1),b=k?p.source==="work"?u.pendingInteraction:(_e.approvalsBySession[u.id]?.length??0)>0?"approval":(_e.questionsBySession[u.id]?.length??0)>0?"question":"none":c.pendingInteraction??(w?u.pendingInteraction:"none");(k&&p.source==="work"||!k&&(c.pendingInteraction!==void 0||c.busy===!1))&&b!==void 0&&l.set(u.id,b);const A=g?u.lastTurnReason:c.lastTurnReason;Op.set(u.id,Math.max(Op.get(u.id)??0,c.lastSeq));const T=t.turnStartBySession.get(u.id);return(y===!1||y===void 0&&!w)&&t.witnessedTurnBySession.has(u.id)&&T!==void 0&&Bt.isLocalTurnSnapshotCurrent(u.id,T)&&r.push(u.id),y===!0&&!s[u.id]?(s[u.id]=!0,o=!0):(y===!1||!w)&&s[u.id]&&(delete s[u.id],o=!0),u.busy===w&&u.mainTurnActive===y&&u.pendingInteraction===b&&u.lastTurnReason===A?u:(i=!0,{...u,busy:w,mainTurnActive:y,pendingInteraction:b,lastTurnReason:A})});i&&U6(a),o&&Or(_e.turnActiveBySession,s);for(const[u,c]of l)c==="none"?(qs().clearSessionApprovals(u),qs().clearSessionQuestions(u)):c==="question"&&qs().clearSessionApprovals(u);for(const u of r)Bt.finishPromptLocal(u,{turnWasActive:!0})}async function X$(){const e={workEventSeqBySession:new Map,turnEventSeqBySession:new Map,pendingEventBySession:new Map,turnStartBySession:new Map(_e.sessions.map(t=>[t.id,Bt.localTurnStartState(t.id)])),witnessedTurnBySession:new Set(_e.sessions.filter(t=>_e.inFlightBySession[t.id]||_e.turnActiveBySession[t.id]).map(t=>t.id))};tr=e;try{const t=await Bt.listAllSessionsGlobal({shouldContinue:()=>tr===e&&_e.connected});if(tr!==e||!_e.connected)return;Nh.flush(),e1e(t.sessions,e),tr=null,t.error!==void 0?j_(t.error):B2=0}catch(t){if(tr!==e||!_e.connected)return;tr=null,j_(t)}}function Z6(){if(cl!==null||typeof WebSocket>"u")return;Ll("ws:connection",{status:"connecting"}),_e.connection="connecting",cl=Wt().connectEvents({onEvent(t,n){if(t.type==="sessionArchived"){Bt.applyRemoteSessionArchived(t.sessionId,t.workspaceId).then(r=>{r&&p8(t.sessionId)});return}if(t.type==="workspaceCreated"||t.type==="workspaceUpdated"||t.type==="workspaceDeleted"){if(t.type==="workspaceDeleted"){const r=_e.sessions.filter(l=>l.workspaceId===t.workspaceId||l.cwd===t.root).map(l=>l.id);Ufe(t.workspaceId,t.root,r)}Bt.applyWorkspaceEvent(t);return}if((t.type==="pluginsChanged"||t.type==="capabilityChanged")&&Vfe(t))return;const i=t.type==="sessionWorkChanged",o=t.type==="turnActiveChanged",s=t.type==="approvalRequested"||t.type==="approvalResolved"||t.type==="approvalExpired"||t.type==="questionRequested"||t.type==="questionAnswered"||t.type==="questionDismissed";if((i||o||s)&&n.seq>0){const r=Op.get(n.sessionId)??0;if(n.seq<=r)return;Op.set(n.sessionId,n.seq)}if(tr!==null&&(i||o||s))if(i){const r=tr.workEventSeqBySession.get(n.sessionId)??0;if(n.seq>r&&tr.workEventSeqBySession.set(n.sessionId,n.seq),t.pendingInteraction!==void 0||!t.busy){const l=tr.pendingEventBySession.get(n.sessionId);(l===void 0||n.seq>l.seq)&&tr.pendingEventBySession.set(n.sessionId,{seq:n.seq,source:"work"})}}else if(o){const r=tr.turnEventSeqBySession.get(n.sessionId)??0;n.seq>r&&tr.turnEventSeqBySession.set(n.sessionId,n.seq)}else{const r=tr.pendingEventBySession.get(n.sessionId);(r===void 0||n.seq>r.seq)&&tr.pendingEventBySession.set(n.sessionId,{seq:n.seq,source:"interaction"})}for(const r of Wse({appEvent:t,meta:n}))Nh(r)},onResync(t,n,i){Ll("ws:resync",{sessionId:t,status:"required",seq:n}),Nh.flush(),$2.add(t),R2.request(t)},onError(t,n,i){Ll("ws:error",{status:"failed",errorCode:t,fatal:i}),ug({severity:"error",title:gi("warnings.wsTitle"),message:n,details:[yo("message",n)].filter(o=>o!==void 0)})},onConnectionChange(t){Ll("ws:connection",{status:t?"connected":"disconnected"}),_e.connected=t,_e.connection=t?"connected":"disconnected",t||(tr=null,Op.clear(),Xhe(),B2=0),t&&(P_+=1,a1e(),Bt.refreshServerMeta())},onReplayComplete(){Nh.flush(),P_>1&&X$()},onTranscriptReset(t,n,i,o){D2.receiveReset(t,n,i,o)},onTranscriptOps(t,n,i,o){return D2.applyOps(t,n,i,o)}})}const k8={},$2=new Set,Sv=new Set,eR=new Set;function t1e(e){return ko(e)&&e.code===R_?!0:typeof e=="object"&&e!==null&&e.code===R_}function yo(e,t){if(!(t==null||t===""))return{label:gi(`warnings.details.${e}`),value:tR(t)}}function tR(e){if(e instanceof Error)return typeof e.stack=="string"&&e.stack?e.stack:e.message?`${e.name}: ${e.message}`:e.name;if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function n1e(e){return e instanceof Error||typeof e=="object"&&e!==null&&typeof e.name=="string"?e.name:void 0}function i1e(e){return e instanceof Error||typeof e=="object"&&e!==null&&typeof e.message=="string"?e.message:void 0}function o1e(e){return e instanceof Error&&typeof e.stack=="string"&&e.stack?e.stack:void 0}function s1e(e){if(!(typeof e!="number"||!Number.isFinite(e)))return new Date(e).toISOString()}function H_(e){if(!(typeof e!="number"||!Number.isFinite(e)))return`${Math.round(e)}ms`}function r1e(e,t,n){const i=t9(t),o=ko(t),s=i||o?t.timestamp:void 0,r=i||o?t.durationMs:void 0,l=[yo("operation",e),yo("sessionId",n??_e.activeSessionId),yo("connection",_e.connection),yo("timestamp",s1e(s??Date.now()))];return i?l.push(yo("duration",H_(r)),yo("request",`${t.method} ${t.path}`),yo("endpoint",t.url),yo("requestId",t.requestId),yo("phase",t.phase),yo("timeout",`${t.timeoutMs}ms`),yo("status",t.status===void 0?void 0:`${t.status} ${t.statusText??""}`.trim()),yo("contentType",t.contentType),yo("responsePreview",t.bodyPreview),yo("cause",t.cause)):o?l.push(yo("duration",H_(r)),yo("code",t.code),yo("requestId",t.requestId),yo("message",t.message),yo("details",t.details)):l.push(yo("errorName",n1e(t)),yo("message",i1e(t)??tR(t)),yo("stack",o1e(t))),l.filter(a=>a!==void 0)}function l1e(e,t,n={}){const i=t9(t),o=ko(t),s=$Y(t),r=n.title??gi(i?s?"warnings.daemonTimeoutTitle":"warnings.daemonNetworkTitle":o?"warnings.daemonApiTitle":"warnings.operationFailedTitle"),l=n.message??(i?gi(s?"warnings.daemonTimeoutMessage":"warnings.daemonNetworkMessage"):o?t.message:gi("warnings.operationFailedMessage"));return{severity:"error",title:r,message:l,details:r1e(e,t,n.sessionId)}}function ug(e){_e.warnings=[..._e.warnings,e]}function a1e(){const e=gi("warnings.wsTitle"),t=_e.warnings.filter(n=>!(typeof n=="object"&&n!==null&&n.severity==="error"&&n.title===e));t.length!==_e.warnings.length&&(_e.warnings=t)}function h1(e,t,n){fu(`[kimi-code] operation failed: ${e}`,t);const i=ko(t),o=t9(t);Ll("operation:failed",{sessionId:n?.sessionId,status:"failed",operation:e,errorName:t instanceof Error?t.name:typeof t,errorCode:i?t.code:void 0,requestId:i||o?t.requestId:void 0,phase:o?t.phase:void 0,httpStatus:o?t.status:void 0}),ug(l1e(e,t,n))}const u1e={40913:"warnings.goal.alreadyExists",40914:"warnings.goal.notFound",40915:"warnings.goal.statusInvalid",40916:"warnings.goal.notResumable",40918:"warnings.goal.objectiveTooLong"};function c1e(e){if(!ko(e)||e.code===void 0)return;const t=u1e[e.code];return t?gi(t):void 0}async function d1e(e){if(V6(e),_e.activeSessionId!==e)return;const t=_e.sessions[0];t?await Bt.selectSession(t.id,{urlMode:"replace",skipTrack:!0}):(K6(void 0),_e.sessionLoading=!1,Bt.writeSessionUrl(void 0,"replace"))}const W_=new Set;async function f1e(e){if(!W_.has(e)){W_.add(e);try{const t=await Wt().getSessionWarnings(e),n=gi("warnings.noteLabel");for(const i of t)ug(`${n}: ${i.message}`)}catch{}}}async function G6(e,t){const n=Bt.localTurnStartState(e);try{const o=await Wt().getSessionSnapshot(e);if(!_e.sessions.some(d=>d.id===e))return"ok";Nh.flush();const s=_e.lastSeqBySession[e]??0,r=k8[e],l=$2.has(e)||z2.has(e);if(!l&&r!==void 0&&r===o.epoch&&s>o.asOfSeq)return Sv.delete(e)||(Sv.add(e),R2.request(e)),"ok";if(!Bt.isLocalTurnSnapshotCurrent(e,n))return Bt.afterLocalTurnStartsSettle(e,()=>{R2.request(e)}),"ok";const a=_e.turnRetryBySession[e];a!==void 0&&a.turnId!==o.inFlightTurn?.turnId&&delete _e.turnRetryBySession[e],(l||o.session.lastTurnReason!=="failed")&&delete _e.turnErrorBySession[e];const u=v2(o.session.usage),c=o.session.mainTurnActive??(o.inFlightTurn!==null&&o.session.busy);m9(e,d=>WY(d,o.session,c)),Uhe(e,uce(_e.messagesBySession[e]??[],o.messages)),_e.tasksBySession[e]=Cce(o.subagents,_e.tasksBySession[e]??[]),_e.messagesHasMoreBySession[e]=o.hasMoreMessages,qs().setSessionApprovals(e,o.pendingApprovals);for(const d of o.pendingApprovals){const h=d.display;h?.kind==="plan_review"&&typeof h.plan=="string"&&h.plan.length>0&&(_e.planReviewByToolCallId[d.toolCallId]={plan:h.plan,path:typeof h.path=="string"?h.path:void 0})}return qs().setSessionQuestions(e,o.pendingQuestions),_e.lastSeqBySession[e]=o.asOfSeq,k8[e]=o.epoch,$2.delete(e),Sv.delete(e),Bt.handleSessionSnapshot(e,{inFlightTurn:o.inFlightTurn,busy:o.session.busy}),c?_e.turnActiveBySession[e]=!0:delete _e.turnActiveBySession[e],Z6(),cl&&(cl.seedSnapshot(e,o),cl.subscribe(e,{seq:o.asOfSeq,epoch:o.epoch}),g1e(e)),z2.delete(e),u&&t?.skipStatusRefresh!==!0&&cf(e),f1e(e),"ok"}catch(i){return t1e(i)?(await d1e(e),"not-found"):(h1("getSessionSnapshot",i,{title:gi("warnings.sessionSnapshotTitle"),message:gi("warnings.sessionSnapshotMessage"),sessionId:e}),"failed")}}const R2=cce(G6);function h1e(e){return Object.prototype.hasOwnProperty.call(_e.messagesBySession,e)}const p1e=4,ru=[],z2=new Set;function g1e(e){const t=ru.indexOf(e);for(t!==-1&&ru.splice(t,1),ru.unshift(e);ru.length>p1e;){let n=-1;for(let o=ru.length-1;o>=0;o--)if(ru[o]!==_e.activeSessionId){n=o;break}if(n===-1)break;const[i]=ru.splice(n,1);if(i===void 0)break;cl?.unsubscribe(i),z2.add(i)}}function m1e(e){const t=ru.indexOf(e);t!==-1&&ru.splice(t,1),z2.delete(e)}async function v1e(e){return G6(e)}function df(e,t){return(_e.inFlightBySession[e]??!1)||(_e.turnActiveBySession[e]??!1)||(t??_e.sessions.find(n=>n.id===e)?.mainTurnActive??!1)}function Af(e){try{const t=new Date(e),i=Date.now()-t.getTime(),o=i/36e5;if(i<6e4)return gi("sessions.justNow");if(o<1)return`${Math.round(i/6e4)}m`;if(o<24)return`${Math.round(o)}h`;const s=i/864e5;return s<7?`${Math.round(s)}d`:s<30?`${Math.round(s/7)}w`:s<365?`${Math.round(s/30)}mo`:`${Math.round(s/365)}y`}catch{return e}}const y1e=3e4,Mc=K(0);let _3=null;function k1e(){_3===null&&(_3=setInterval(()=>{Mc.value=(Mc.value+1)%Number.MAX_SAFE_INTEGER},y1e),_3.unref?.())}function b1e(e){return{questionId:e.questionId,sessionId:e.sessionId,toolCallId:e.toolCallId,questions:e.questions.map(t=>({id:t.id,question:t.question,header:t.header,body:t.body,options:t.options.map(n=>({id:n.id,label:n.label,description:n.description,recommended:n.recommended})),multiSelect:t.multiSelect,allowOther:t.allowOther,otherLabel:t.otherLabel}))}}const A1e=F(()=>{const e=_e.activeSessionId,t=e?_e.messagesBySession[e]??[]:[],n=new Map;for(const o of t)if(o.role==="assistant")for(const s of o.content){if(s.type!=="toolUse"||s.toolName!=="Bash"&&s.toolName!=="bash")continue;const r=s.input,l=r&&typeof r.command=="string"?r.command:void 0;l&&n.set(s.toolCallId,l)}const i=new Map;if(n.size===0)return i;for(const o of t)if(o.role==="tool")for(const s of o.content){if(s.type!=="toolResult")continue;const r=x6(s.output);if(!r)continue;let l;for(const u of r){const c=/task_id:\s*(\S+)/.exec(u);if(c?.[1]){l=c[1];break}}if(!l)continue;const a=n.get(s.toolCallId);a&&i.set(l,a)}return i});function nR(e){return A1e.value.get(e.id)}const C1e=F(()=>{const e=_e.activeSessionId,t=e?_e.messagesBySession[e]??[]:[],n=new Map;for(const i of t)if(i.role==="assistant")for(const o of i.content){if(o.type!=="toolUse")continue;const s=o.input,r=s&&typeof s.prompt=="string"?s.prompt:void 0;r&&!n.has(o.toolCallId)&&n.set(o.toolCallId,r);const l=s?.items;if(!r&&Array.isArray(l)&&!n.has(o.toolCallId)){const a=l.filter(u=>typeof u=="string");a.length>0&&n.set(o.toolCallId,a)}}return n});function w1e(e){if(!e.parentToolCallId)return;const t=C1e.value.get(e.parentToolCallId);return Array.isArray(t)?e.swarmIndex!==void 0?t[e.swarmIndex]:void 0:t}function x1e(e){let t;e.status==="running"?t="run":e.status==="completed"?t="done":e.status==="cancelled"?t="cancelled":t="fail";let n="",i;if(e.status==="running"&&e.startedAt){i=Date.now()-new Date(e.startedAt).getTime();const l=Math.round(i/1e3),a=Math.floor(l/60),u=l%60;n=gi("tasks.timingRunning",{time:`${a}:${String(u).padStart(2,"0")}`})}else e.completedAt&&e.startedAt&&!e.completedAtEstimated?(i=new Date(e.completedAt).getTime()-new Date(e.startedAt).getTime(),n=gi("tasks.timingDone",{time:Wa(i,{h:gi("status.timeUnitHour"),m:gi("status.timeUnitMinute"),s:gi("status.timeUnitSecond")})})):n=e.status;const o=e.outputLines&&e.outputLines.length>0?e.outputLines:e.outputPreview?e.outputPreview.split(/\r?\n/):void 0,s=e.command??nR(e),r=e.kind==="bash"&&s?`$ ${s}`:e.kind==="subagent"?w1e(e)??e.subagentType:void 0;return{id:e.id,agentId:e.agentId,backgroundTaskId:e.backgroundTaskId,name:e.description,kind:e.kind,state:t,timing:n,durationMs:i,meta:r,output:o,runInBackground:e.runInBackground,parentToolCallId:e.parentToolCallId,swarmIndex:e.swarmIndex,completedAt:e.completedAt,createdAt:e.createdAt,model:e.model,thinkingEffort:e.thinkingEffort}}const S1e=F(()=>{const e=_e.sessions.find(n=>n.id===_e.activeSessionId),t=e?e.cwd.split("/").pop()??e.cwd:"main";return{name:_e.workspaceName,branch:t}}),_1e=F(()=>(Mc.value,_e.sessions.toSorted((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime()).map(e=>({id:e.id,title:e.title,time:Af(e.updatedAt),busy:df(e.id,e.mainTurnActive),pendingInteraction:e.pendingInteraction,lastTurnReason:e.lastTurnReason,workspaceId:Mr(e),cwd:e.cwd})))),M1e=F(()=>_e.activeSessionId??""),I1e=F(()=>{const e=_e.activeSessionId;if(e)return Zn.skillsBySession.value[e]??[];const t=fg.value;return t?Zn.skillsByWorkspace.value[t]??[]:[]}),E1e=F(()=>{const e=_e.activeSessionId;if(e)return Zn.skillsFetchedBySession.value[e]===!0;const t=fg.value;return t?Zn.skillsFetchedByWorkspace.value[t]===!0:!1}),Q6=F(()=>{const e=_e.activeSessionId;return e?_e.inFlightBySession[e]??!1:!1}),T1e=F(()=>Bt.isStartingFirstPrompt()),Ws=Ffe(_e,{api:Wt(),pushOperationFailure:h1,nextOptimisticMsgId:J$,connectEventsIfNeeded:Z6,getEventConn:()=>cl,resolveThinkingForPrompt:(e,t)=>Zn.resolveThinkingForPrompt(e,t),refreshSessionStatus:cf}),cg=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=Ws.sideChatTargetBySession.value[e]?.agentId;return(_e.tasksBySession[e]??[]).filter(n=>n.id!==t)}),iR=Nfe(_e,cg,{api:Wt()}),dg=F(()=>{const e=_e.activeSessionId;return e?(_e.turnActiveBySession[e]??!1)||(_e.sessions.find(t=>t.id===e)?.mainTurnActive??!1):!1}),L1e=F(()=>{const e=_e.activeSessionId;if(e)return _e.turnErrorBySession[e]}),N1e=F(()=>{const e=_e.activeSessionId;if(e&&dg.value)return _e.turnRetryBySession[e]}),oR=e=>Wt().getFileUrl(e),sR=(e,t)=>Wt().getSessionMediaUrl(e,t),F1e=[],D1e=hB(),rR=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=new Set(_e.sideChatUserMessageIdsBySession[e]??[]);return D1e({messages:(_e.messagesBySession[e]??[]).filter(n=>!t.has(n.id)),approvals:_e.approvalsBySession[e]??F1e,getFileUrl:oR,getSessionMediaUrl:sR,sessionActive:dg.value,planReviewByToolCallId:_e.planReviewByToolCallId,plansByToolCallId:Cu[e]})}),B1e=F(()=>Q6.value||dg.value),b8=new Map,$1e=F(()=>{iR.taskClock.value;const e=cg.value.map(x1e),t=_e.activeSessionId;if(t){let n=b8.get(t);n||(n=new Map,b8.set(t,n));const i=e.filter(r=>r.kind==="subagent"&&r.runInBackground);for(const r of i){const l=r.agentId??r.id;if(r.agentId!==void 0&&r.backgroundTaskId!==void 0&&!n.has(l)){const a=n.get(r.backgroundTaskId);a!==void 0&&(n.delete(r.backgroundTaskId),n.set(l,a))}}const o=i.filter(r=>!n.has(r.agentId??r.id)).sort((r,l)=>(r.createdAt??"").localeCompare(l.createdAt??""));let s=n.size===0?0:Math.max(...n.values())+1;for(const r of o)n.set(r.agentId??r.id,s++);for(const r of i)r.swarmIndex=n.get(r.agentId??r.id)}return e}),lR=F(()=>nre(cg.value)),R1e=F(()=>ore(cg.value)),rh=F(()=>{const e=_e.activeSessionId;return e?_e.goalBySession[e]??null:null}),z1e=F(()=>{const e=_e.activeSessionId;return e?Kse(_e.messagesBySession[e]??[]):[]}),O1e=F(()=>{const e=_e.activeSessionId;return e?_e.compactionBySession[e]??null:null}),P1e=F(()=>_e.connection),j1e=F(()=>_e.loading),H1e=F(()=>_e.sessionLoading),W1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesLoadingMoreBySession[e]??!1:!1}),q1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesHasMoreBySession[e]??!1:!1}),U1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesLoadMoreErrorBySession[e]??!1:!1}),K1e=F(()=>_e.serverVersion),aR=F(()=>_e.webTitle),V1e=F(()=>_e.experimentalFlags),Z1e=F(()=>_e.backend),G1e=F(()=>_e.dangerousBypassAuth);function Q1e(){_e.dangerousBypassAuth=!1}const Y1e=F(()=>_e.permission),J1e=F(()=>_e.thinking),uR=F(()=>{const e=_e.activeSessionId;return e?_e.planModeBySession[e]??!1:ag.planMode}),X1e=F(()=>{const e=_e.activeSessionId;return e?_e.planArmedBySession[e]??!1:ag.planMode}),epe=F(()=>{const e=_e.activeSessionId;return e?_e.swarmModeBySession[e]??!1:ag.swarmMode}),tpe=F(()=>{const e=_e.activeSessionId;return e?_e.goalModeBySession[e]??!1:ag.goalMode}),npe=F(()=>{const e=_e.activeSessionId,t=(e?Cu[e]:void 0)??{},n={},i=new Set;for(const s of rR.value)for(const r of s.tools??[]){if(r.name!=="ExitPlanMode")continue;i.add(r.id);const l=t[r.id];if(l){n[r.id]=l;continue}const a=_e.planReviewByToolCallId[r.id],u=ipe(r.arg),c=a?.plan??u?.plan,d=r.planPath??a?.path;!c&&!d||(n[r.id]={agentId:"main",toolCallId:r.id,turnId:s.id,source:"interaction",plan:c??"",path:d,options:u?.options,review:q6[r.id]})}return{...Object.fromEntries(Object.entries(t).filter(([s])=>!i.has(s))),...n}});function ipe(e){try{const t=JSON.parse(e);return{plan:typeof t.plan=="string"?t.plan:void 0,options:Array.isArray(t.options)?t.options:void 0}}catch{return}}const ope=F(()=>{const e=ire(lR.value);return{plan:uR.value,goal:rh.value&&rh.value.status!=="complete"?{status:rh.value.status,turnsUsed:rh.value.turnsUsed,elapsedMs:rh.value.wallClockMs}:null,swarm:e.total>0?e:null}}),spe=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=Wt();return(_e.queuedBySession[e]??[]).map(n=>({id:n.id??n.text,text:n.text,attachmentCount:n.attachments?.length??0,attachments:n.attachments?.map(i=>P6(t,i))}))}),rpe=F(()=>_e.warnings),lpe=F(()=>{const e=_e.activeSessionId;return e?(_e.questionsBySession[e]??[]).map(b1e):[]}),ape=F(()=>{const e=_e.activeSessionId;return e?(_e.approvalsBySession[e]??[]).map(t=>({approvalId:t.approvalId,block:aB(t),agentName:t.agentName,toolCallId:t.toolCallId})):[]}),Y6=F(()=>{const e=_e.activeSessionId;return e?(_e.approvalsBySession[e]??[]).length>0?"awaiting-approval":(_e.questionsBySession[e]??[]).length>0?"awaiting-question":Q6.value||dg.value?"running":"idle":"idle"}),Zn=Yfe(_e,{api:Wt(),pushOperationFailure:h1,refreshSessionStatus:cf,persistSessionProfile:Z$,savePlanModeToStorage:W6,activity:Y6,updateSession:m9,updateSessionMessages:q$,loadConfig:()=>Bt.loadConfig(),checkAuth:()=>Bt.checkAuth(),beginLocalTurn:m8,settleLocalTurn:v8}),A8=F(()=>{const e=_e.activeSessionId;if(!e)return null;const t=_e.gitStatusBySession[e];return t?{branch:t.branch,ahead:t.ahead,behind:t.behind}:null}),upe=F(()=>{const e=_e.activeSessionId;return e?_e.gitStatusBySession[e]?.pullRequest??null:null}),cpe=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=_e.gitStatusBySession[e];return t?Object.entries(t.entries).map(([n,i])=>({path:n,status:i})).sort((n,i)=>n.path.localeCompare(i.path)):[]}),dpe=F(()=>{const e=_e.activeSessionId;if(!e)return null;const t=_e.gitStatusBySession[e];return t?{totalAdditions:t.additions,totalDeletions:t.deletions}:null}),cR=F(()=>{const e=_e.sessions.find(r=>r.id===_e.activeSessionId),t=A8.value?.branch??(e?e.cwd.split("/").pop()??e.cwd:"main"),n=e===void 0?Zn.draftModel.value:null,i=(e?.model&&e.model.length>0?e.model:n??_e.defaultModel)??"—",o=Zn.models.value.find(r=>r.id===i)??Zn.models.value.find(r=>r.model===i);return{model:o?.displayName||o?.model||(i.includes("/")?i.split("/").pop():i),modelId:o?.id??i,ctxUsed:e?.usage.contextTokens??0,ctxMax:e?.usage.contextLimit??0,permission:_e.permission,branch:t,cwd:e?.cwd??"",isGitRepo:A8.value!==null}}),fpe=F(()=>Hs().fileDiffLines),hpe=F(()=>_e.sessions.find(t=>t.id===_e.activeSessionId)?.usage.totalCostUsd??0),ppe=F(()=>_e.authReady),gpe=F(()=>_e.defaultModel),mpe=F(()=>_e.managedProviderStatus),vpe=F(()=>_e.managedUserInfo),ype=F(()=>_e.managedMembership),kpe=F(()=>_e.config),bpe=F(()=>{const e=_e.activeSessionId;if(!e)return{};const t=_e.gitStatusBySession[e];return t?{...t.entries}:{}}),Ape=F(()=>{const e=new Map;for(const t of _e.workspaces){const n=ol(t.root);e.has(n)||e.set(n,t.id)}return e});function Mr(e){return Ape.value.get(ol(e.cwd))??e.workspaceId??e.cwd}const v9=F(()=>Pre({workspaces:_e.workspaces,sessions:_e.sessions,hiddenWorkspaceRoots:_e.hiddenWorkspaceRoots,sessionsHasMoreByWorkspace:_e.sessionsHasMoreByWorkspace})),O2=K(vce()),P2=K(yce());function Cpe(e){P2.value!==e&&(P2.value=e,kce(e))}const E0=K(bce());Pe(()=>_e.sessions,e=>{const t=Kce(e,Mr),{next:n,changed:i}=Uce(E0.value,t);i&&(E0.value=n,p$(n))});const dR=F(()=>Vce(v9.value,E0.value));Pe(()=>[v9.value.map(e=>e.id).join("\0"),_e.loading],([e,t])=>{if(t)return;const n=e?e.split("\0"):[],i=jce(n,O2.value,dR.value);i!==null&&(O2.value=i,h$(i));const{next:o,changed:s}=Zce(E0.value,new Set(n));s&&(E0.value=o,p$(o))});const y9=F(()=>or().pinnedSessionIds);function wpe(e){or().pinSession(e)}function xpe(e){or().unpinSession(e)}function Spe(e){or().unpinSessions(e)}function _pe(e){or().togglePinSession(e)}const Yr=F(()=>{const e=v9.value.map(t=>({id:t.id,name:t.name,root:t.root,shortPath:Rhe(t.root,_e.fsHome),sessionCount:t.sessionCount}));return P2.value==="recent"?qce(e,dR.value):Hce(e,O2.value)}),fg=F(()=>{const e=_e.activeWorkspaceId,t=Yr.value;return e&&t.some(n=>n.id===e)?e:t[0]?.id??null});Pe(fg,e=>{e&&(Object.prototype.hasOwnProperty.call(Zn.skillsByWorkspace.value,e)||Zn.loadSkillsForWorkspace(e))},{immediate:!0});const fR=F(()=>{const e=fg.value;return e?Yr.value.find(t=>t.id===e)??null:null}),Mpe=efe({webTitle:aR,activeWorkspaceRoot:()=>fR.value?.root??null}),Ipe=F(()=>{Mc.value;const e=new Set(Yr.value.map(n=>n.id)),t=new Map(Yr.value.map(n=>[n.id,n.name]));return _e.sessions.filter(n=>!n.parentSessionId&&e.has(Mr(n))).map(n=>{const i=Mr(n);return{id:n.id,title:n.title,time:Af(n.updatedAt),busy:df(n.id,n.mainTurnActive),pendingInteraction:n.pendingInteraction,lastTurnReason:n.lastTurnReason,lastPrompt:n.lastPrompt,workspaceId:i,workspaceName:t.get(i)}})}),C8=K(dc),k9=F(()=>{Mc.value;const e=new Set(Yr.value.map(r=>r.id)),t=new Map(Yr.value.map(r=>[r.id,r.name])),n=new Set(y9.value),i=(r,l)=>new Date(l.updatedAt).getTime()-new Date(r.updatedAt).getTime(),o=_e.flatSessionsFrontier,s=[];for(const r of _e.sessions)r.parentSessionId||r.archived||n.has(r.id)||!e.has(Mr(r))||!(og({busy:df(r.id,r.mainTurnActive),unread:e7.value[r.id]??!1,questionCount:T0.value[r.id]?.questions??0,approvalCount:T0.value[r.id]?.approvals??0,pendingInteraction:r.pendingInteraction,lastTurnReason:r.lastTurnReason})!=="idle")&&o!==null&&new Date(r.updatedAt).getTime(){const l=Mr(r);return{id:r.id,title:r.title,time:Af(r.updatedAt),busy:df(r.id,r.mainTurnActive),pendingInteraction:r.pendingInteraction,lastTurnReason:r.lastTurnReason,lastPrompt:r.lastPrompt,updatedAt:r.updatedAt,workspaceId:l,workspaceName:t.get(l),cwdLabel:r.cwd?Tu(r.cwd):"-",pullRequest:r.pullRequest}})});function Epe(e){return og({busy:e.busy,unread:e7.value[e.id]??!1,questionCount:T0.value[e.id]?.questions??0,approvalCount:T0.value[e.id]?.approvals??0,pendingInteraction:e.pendingInteraction,lastTurnReason:e.lastTurnReason})!=="idle"}const J6=F(()=>{const e=k9.value;let t=C8.value;for(let n=e.length-1;n>=t;n--)if(Epe(e[n])){t=n+1;break}return t}),Tpe=F(()=>k9.value.slice(0,J6.value)),Lpe=F(()=>_e.flatSessionsHasMore||J6.valuek9.value.length&&_e.flatSessionsHasMore&&Bt.loadMoreFlatSessions()}const j2=K(dc),X6=F(()=>{Mc.value;const e=new Set(Yr.value.map(n=>n.id)),t=new Map(Yr.value.map(n=>[n.id,n.name]));return _e.doneSessions.filter(n=>e.has(Mr(n))).map(n=>{const i=Mr(n),o=_e.sessions.find(r=>r.id===n.id),s=o!==void 0&&new Date(o.updatedAt).getTime()>new Date(n.updatedAt).getTime()?o.updatedAt:n.updatedAt;return{id:n.id,title:n.title,time:Af(s),busy:o?.busy??n.busy,pendingInteraction:o?.pendingInteraction??n.pendingInteraction,lastTurnReason:o?.lastTurnReason??n.lastTurnReason,lastPrompt:n.lastPrompt,updatedAt:s,workspaceId:i,workspaceName:t.get(i),archived:!0,cwdLabel:n.cwd?Tu(n.cwd):"-",pullRequest:n.pullRequest}}).sort((n,i)=>new Date(i.updatedAt).getTime()-new Date(n.updatedAt).getTime())}),Fpe=F(()=>X6.value.slice(0,j2.value)),Dpe=F(()=>_e.doneSessionsHasMore||j2.valueX6.value.length&&_e.doneSessionsHasMore&&Bt.loadMoreDoneSessions()}const $pe=F(()=>{const e=_e.activeSessionId;return e?_e.sessions.find(t=>t.id===e)?.archived===!0:!1});function Rpe(e,t=6){if(!e)return[];const n=new Map(Yr.value.map(r=>[r.id,r.name])),i=(r,l)=>({id:r.id,title:r.title,time:Af(l??r.updatedAt),busy:l===void 0&&df(r.id,r.mainTurnActive),pendingInteraction:l===void 0?r.pendingInteraction:void 0,lastTurnReason:l===void 0?r.lastTurnReason:void 0,lastPrompt:r.lastPrompt,updatedAt:l??r.updatedAt,workspaceId:e,workspaceName:n.get(e),archived:l!==void 0,cwdLabel:r.cwd?Tu(r.cwd):"-",pullRequest:r.pullRequest}),o=_e.sessions.filter(r=>!r.parentSessionId&&!r.archived&&Mr(r)===e).sort((r,l)=>new Date(l.updatedAt).getTime()-new Date(r.updatedAt).getTime()),s=_e.doneSessions.filter(r=>Mr(r)===e);return[...o.map(r=>i(r)),...s.map(r=>i(r,r.updatedAt))].slice(0,t)}function hR(e){Mc.value;const t=new Set(y9.value),n=new Map,i=new Map;for(const o of _e.sessions.toSorted((s,r)=>new Date(r.updatedAt).getTime()-new Date(s.updatedAt).getTime())){if(o.parentSessionId||o.archived)continue;const s=Mr(o);if(e&&t.has(o.id)){i.set(s,(i.get(s)??0)+1);continue}const r={id:o.id,title:o.title,time:Af(o.updatedAt),busy:df(o.id,o.mainTurnActive),pendingInteraction:o.pendingInteraction,lastTurnReason:o.lastTurnReason,updatedAt:o.updatedAt},l=n.get(s)??[];l.push(r),n.set(s,l)}return Yr.value.map(o=>({workspace:o,sessions:n.get(o.id)??[],pinnedCount:i.get(o.id)??0,hasMore:_e.sessionsHasMoreByWorkspace[o.id]??!1,loadingMore:_e.sessionsLoadingMoreByWorkspace[o.id]??!1,initialCount:_e.sessionsInitialCountByWorkspace[o.id]??mp}))}const zpe=F(()=>hR(!0)),Ope=F(()=>hR(!1)),Ppe=F(()=>{Mc.value;const e=new Set(Yr.value.map(o=>o.id)),t=new Map(Yr.value.map(o=>[o.id,o.name])),n=_e.sessions.filter(o=>!o.parentSessionId&&!o.archived&&e.has(Mr(o)));return Ile(n,y9.value).pinned.toSorted((o,s)=>new Date(s.updatedAt).getTime()-new Date(o.updatedAt).getTime()).map(o=>{const s=Mr(o);return{id:o.id,title:o.title,time:Af(o.updatedAt),busy:df(o.id,o.mainTurnActive),pendingInteraction:o.pendingInteraction,lastTurnReason:o.lastTurnReason,updatedAt:o.updatedAt,workspaceId:s,workspaceName:t.get(s),pinned:!0,cwdLabel:o.cwd?Tu(o.cwd):"-",pullRequest:o.pullRequest}})});function jpe(e){O2.value=e,h$(e)}const pR=F(()=>{const e={};for(const[t,n]of Object.entries(_e.approvalsBySession))n.length>0&&(e[t]=(e[t]??0)+n.length);for(const[t,n]of Object.entries(_e.questionsBySession))n.length>0&&(e[t]=(e[t]??0)+n.length);return e}),T0=F(()=>{const e={};for(const[t,n]of Object.entries(_e.approvalsBySession))n.length>0&&((e[t]??={approvals:0,questions:0}).approvals=n.length);for(const[t,n]of Object.entries(_e.questionsBySession))n.length>0&&((e[t]??={approvals:0,questions:0}).questions=n.length);return e}),e7=F(()=>{const e={};for(const[t,n]of Object.entries(_e.unreadBySession))n&&(e[t]=!0);return e}),Hpe=F(()=>{const e={},t=pR.value;for(const n of _e.sessions){const i=t[n.id]??0;if(i<=0)continue;const o=Mr(n);e[o]=(e[o]??0)+i}return e}),Wpe=F(()=>_e.recentRoots),qpe=F(()=>_e.availableOpenInApps),Bt=Ahe(_e,{taskPoller:iR,sideChat:Ws,modelProvider:Zn,pushOperationFailure:h1,notify:ug,activity:Y6,sessionsKnownEmpty:eR,setSessions:U6,updateSession:m9,upsertSessionSorted:jhe,appendSession:Hhe,forgetSession:V6,unpinSessions:Spe,setActiveSessionId:K6,updateSessionMessages:q$,nextOptimisticMsgId:J$,getEventConn:()=>cl,syncSessionFromSnapshot:G6,reopenSession:v1e,hasLoadedMessages:h1e,refreshSessionStatus:cf,refreshSessionGoal:V$,refillSessionGoalOnReload:Vhe,refreshSessionPlans:I0,settlePlanReviewLocally:H$,persistSessionProfile:Z$,mergedWorkspaces:v9,workspacesView:Yr,status:cR,workspaceIdForSession:Mr,savePermissionToStorage:Nhe,savePlanModeToStorage:W6,saveSwarmModeToStorage:O$,saveGoalModeToStorage:P$,draftModes:ag,saveUnread:R6,saveActiveWorkspaceToStorage:$he,saveHiddenWorkspacesToStorage:Bhe,goalErrorMessage:c1e,initialized:U$,connectIssue:K$}),$i=Mhe({pushOperationFailure:h1,applySessionsArchivedLocally:Bt.applySessionsArchivedLocally});Pe(()=>_e.mainView,e=>{e==="sessionAdmin"&&$i.ensureSeeded()});function t7(e){return e===_e.activeSessionId&&typeof document<"u"&&document.visibilityState==="visible"&&document.hasFocus()}function Upe(e){_e.turnActiveBySession[e]&&delete _e.turnActiveBySession[e],_e.inFlightBySession[e]&&(_e.inFlightBySession[e]=!1)}function Kpe(e,t,n){const i=_e.promptIdBySession[e],o=_e.goalBySession[e]?.status==="active"||F2.has(e);Bt.finishPromptLocal(e,{turnWasActive:n}),(_e.experimentalFlags?.auto_session_title??_e.config?.experimental?.auto_session_title)===!0&&Bt.maybeGenerateSessionTitle(e),Hs().loadGitStatus(e),e===_e.activeSessionId?cf(e):t==="idle"&&!o&&(_e.unreadBySession[e]=!0,R6({[e]:!0}));const s=(_e.approvalsBySession[e]??[]).length>0,r=(_e.questionsBySession[e]??[]).length>0;!o&&nfe(t,s,r)&&rc().maybeNotifyCompletion(e,{isUserWatching:t7(e),sessionTitle:_e.sessions.find(l=>l.id===e)?.title??"",promptId:i,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function Vpe(e,t){const n=t.questions[0],i=n?.header?.trim()??"",o=n?.question?.trim()??"",s=i&&o?`${i}: ${o}`:o||i;rc().maybeNotifyQuestion({isUserWatching:t7(e),sessionTitle:_e.sessions.find(r=>r.id===e)?.title??"",questionPreview:s,questionId:t.questionId,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function Zpe(e,t){rc().maybeNotifyApproval({isUserWatching:t7(e),sessionTitle:_e.sessions.find(n=>n.id===e)?.title??"",toolName:t.toolName,approvalId:t.approvalId,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function pa(){return k1e(),{workspace:S1e,sessions:_1e,activeSessionId:M1e,workspacesView:Yr,workspaceSortMode:P2,visibleWorkspace:fR,activeWorkspaceId:fg,sessionsForView:Ipe,workspaceGroups:zpe,mobileWorkspaceGroups:Ope,pinnedSessions:Ppe,pinnedSessionIds:y9,flatSessions:Tpe,flatSessionsHasMore:Lpe,flatSessionsLoadingMore:F(()=>_e.flatSessionsLoadingMore),doneSessions:Fpe,doneSessionsHasMore:Dpe,doneSessionsLoadingMore:F(()=>_e.doneSessionsLoadingMore),activeSessionArchived:$pe,recentSessionsForWorkspace:Rpe,draftEntry:F(()=>_e.draftEntry),mainView:F(()=>_e.mainView),attentionBySession:pR,pendingBySession:T0,attentionByWorkspace:Hpe,unreadBySession:e7,recentRoots:Wpe,turns:rR,tasks:$1e,activeAppTasks:cg,findBashCommandForTask:nR,auxiliaryTranscripts:D2,getFileUrl:oR,getSessionMediaUrl:sR,todos:z1e,goal:rh,sessionPlans:npe,refreshSessionPlans:I0,invalidateSessionPlans:Phe,swarms:lR,swarmMembersByToolCallId:R1e,activationBadges:ope,compaction:O1e,status:cR,sessionCost:hpe,fileDiff:fpe,selectedDiffPath:F(()=>Hs().selectedDiffPath),fileDiffLoading:F(()=>Hs().fileDiffLoading),fileDiffTexts:F(()=>Hs().fileDiffTexts),fileDiffEmptyFile:F(()=>Hs().fileDiffEmptyFile),changes:cpe,gitInfo:A8,gitDiffStats:dpe,activePullRequest:upe,changesByPath:bpe,pendingApprovals:ape,availableOpenInApps:qpe,connection:P1e,loading:j1e,sessionLoading:H1e,loadingMoreMessages:W1e,hasMoreMessages:q1e,loadMoreMessagesError:U1e,serverVersion:K1e,webTitle:aR,documentBaseTitle:Mpe,backend:Z1e,dangerousBypassAuth:G1e,experimentalFlags:V1e,clearDangerousBypassAuth:Q1e,initialized:U$,connectIssue:K$,permission:Y1e,thinking:J1e,planMode:uR,planArmed:X1e,swarmMode:epe,goalMode:tpe,queued:spe,warnings:rpe,questions:lpe,activity:Y6,turnActive:dg,activeTurnError:L1e,activeTurnRetry:N1e,inFlight:Q6,working:B1e,isStartingFirstPrompt:T1e,models:Zn.models,starredModelIds:Zn.starredModelIds,providers:Zn.providers,fontScale:Bm.fontScale,setFontScale:Bm.setFontScale,colorScheme:Bm.colorScheme,setColorScheme:Bm.setColorScheme,notifyEnabled:F(()=>rc().notifyEnabled),notifySound:F(()=>rc().notifySound),notifyPermission:F(()=>rc().notifyPermission),setNotifyEnabled:e=>rc().setNotifyEnabled(e),setNotifySound:e=>rc().setNotifySound(e),onboarded:Y$,setOnboarded:Ghe,load:Bt.load,selectSession:Bt.selectSession,clearActiveSession:Bt.clearActiveSession,openSessionAdmin:e=>{e!==void 0&&$i.applyFilters({workspaceIds:[e],status:"all",updatedFrom:"",updatedTo:""}),Bt.openSessionAdmin()},closeSessionAdmin:Bt.closeSessionAdmin,sessionAdminItems:F(()=>$i.state.items),sessionAdminTotal:F(()=>$i.state.total),sessionAdminLoading:F(()=>$i.state.loading),sessionAdminFilters:F(()=>$i.state.filters),sessionAdminPage:F(()=>$i.state.page),sessionAdminPageSize:F(()=>$i.state.pageSize),refreshSessionAdminSessions:$i.refresh,applySessionAdminFilters:$i.applyFilters,setSessionAdminWorkspaceFilter:$i.setWorkspaceIds,setSessionAdminStatusFilter:$i.setStatus,setSessionAdminTimeRange:$i.setTimeRange,setSessionAdminPage:$i.setPage,setSessionAdminPageSize:$i.setPageSize,sessionAdminSelectedIds:F(()=>$i.state.selectedIds),sessionAdminSelectedCount:F(()=>$i.state.selectedIds.size),sessionAdminOpenSelectedIds:F(()=>$i.selectedIdsByArchived(!1)),sessionAdminDoneSelectedIds:F(()=>$i.selectedIdsByArchived(!0)),toggleSessionAdminSelection:$i.toggleSelection,toggleSessionAdminPageSelection:$i.togglePageSelection,setSessionAdminSelection:$i.setSelection,clearSessionAdminSelection:$i.clearSelection,selectSessionAdminAllMatching:$i.selectAllMatching,sessionAdminAllMatching:F(()=>$i.state.allMatching),sessionAdminMaterializingAll:F(()=>$i.state.materializingAll),archiveSessions:$i.archiveSessions,restoreSessions:$i.restoreSessions,loadOlderMessages:Bt.loadOlderMessages,loadWorkspaces:Bt.loadWorkspaces,loadMoreSessions:Bt.loadMoreSessions,loadAllSessions:Bt.loadAllSessions,ensureFlatSessions:Bt.ensureFlatSessions,loadMoreFlatSessions:Npe,ensureDoneSessions:Bt.ensureDoneSessions,loadMoreDoneSessions:Bpe,selectWorkspace:Bt.selectWorkspace,openWorkspace:Bt.openWorkspace,openWorkspaceDraft:Bt.openWorkspaceDraft,startSessionAndSendPrompt:Bt.startSessionAndSendPrompt,startSessionAndActivateSkill:Bt.startSessionAndActivateSkill,startSessionAndOpenSideChat:Bt.startSessionAndOpenSideChat,addWorkspaceByPath:Bt.addWorkspaceByPath,browseFs:Bt.browseFs,getFsHome:Bt.getFsHome,sendPrompt:Bt.sendPrompt,steerPrompt:Bt.steerPrompt,steerQueued:Bt.steerQueued,sideChatVisible:Ws.sideChatVisible,sideChatSessionId:Ws.sideChatSessionId,sideChatTurns:Ws.sideChatTurns,sideChatRunning:Ws.sideChatRunning,sideChatSending:Ws.sideChatSending,openSideChat:Ws.openSideChat,closeSideChat:Ws.closeSideChat,sendSideChatPrompt:Ws.sendSideChatPrompt,uploadImage:Bt.uploadImage,abortCurrentPrompt:Bt.abortCurrentPrompt,respondApproval:Bt.respondApproval,respondQuestion:Bt.respondQuestion,dismissQuestion:Bt.dismissQuestion,pendingQuestionActions:Bt.pendingQuestionActions,pendingApprovalActions:Bt.pendingApprovalActions,cancelTask:Bt.cancelTask,setPermission:Bt.setPermission,setThinking:Zn.setThinking,setPlanMode:Bt.setPlanMode,togglePlanMode:Bt.togglePlanMode,setSwarmMode:Bt.setSwarmMode,toggleSwarmMode:Bt.toggleSwarmMode,setGoalMode:Bt.setGoalMode,toggleGoalMode:Bt.toggleGoalMode,createGoal:Bt.createGoal,controlGoal:Bt.controlGoal,enqueue:Bt.enqueue,dismissWarning:Bt.dismissWarning,renameSession:Bt.renameSession,regenerateSessionTitle:Bt.regenerateSessionTitle,renameWorkspace:Bt.renameWorkspace,deleteWorkspace:Bt.deleteWorkspace,reorderWorkspaces:jpe,setWorkspaceSortMode:Cpe,pinSession:wpe,unpinSession:xpe,togglePinSession:_pe,archiveSession:Bt.archiveSession,exportSession:Bt.exportSession,restoreSession:Bt.restoreSession,loadArchivedSessions:Bt.loadArchivedSessions,compact:Bt.compact,forkSession:Bt.forkSession,undo:Bt.undo,unqueue:Bt.unqueue,reorderQueue:Bt.reorderQueue,searchFiles:Bt.searchFiles,loadGitStatus:Hs().loadGitStatus,loadFileDiff:Hs().loadFileDiff,clearFileDiff:Hs().clearFileDiff,listDir:Bt.listDir,readFileContent:Hs().readFileContent,readHostFileContent:Bt.readHostFileContent,probeWorkspacePath:Bt.probeWorkspacePath,getFileDownloadUrl:Bt.getFileDownloadUrl,openWorkspaceFile:Bt.openWorkspaceFile,openInApp:Bt.openInApp,revealWorkspaceFile:Bt.revealWorkspaceFile,resolveImageUrl:Bt.resolveImageUrl,loadModels:Zn.loadModels,loadProviders:Zn.loadProviders,skills:I1e,skillsLoaded:E1e,activateSkill:Zn.activateSkill,setModel:Zn.setModel,toggleStarModel:Zn.toggleStarModel,addProvider:Zn.addProvider,updateProvider:Zn.updateProvider,getProvider:Zn.getProvider,deleteProvider:Zn.deleteProvider,refreshProvider:Zn.refreshProvider,refreshAllProviders:Zn.refreshAllProviders,loadCatalogProviders:Zn.loadCatalogProviders,importCatalogProvider:Zn.importCatalogProvider,importCustomRegistry:Zn.importCustomRegistry,authReady:ppe,defaultModel:gpe,managedProviderStatus:mpe,managedUserInfo:vpe,managedMembership:ype,notify:ug,config:kpe,loadConfig:Bt.loadConfig,updateConfig:Bt.updateConfig,checkAuth:Bt.checkAuth,probeManagedMembership:Bt.probeManagedMembership,startOAuthLogin:Zn.startOAuthLogin,pollOAuthLogin:Zn.pollOAuthLogin,cancelOAuthLogin:Zn.cancelOAuthLogin,getOAuthRegion:Zn.getOAuthRegion,getUsage:Zn.getUsage,logout:Bt.logout}}const H2=[{code:"en",label:"English"},{code:"zh",label:"简体中文"}],da=QG({locale:YF()});function n7(e){da.global.locale.value=e,is(un.locale,e)}const Gpe=["aria-expanded"],Qpe={class:"user-menu-avatar","aria-hidden":"true"},Ype=["src"],Jpe={class:"user-menu-name"},Xpe={class:"user-menu-name"},e0e={class:"user-menu-item-label"},t0e={class:"user-menu-item-label"},n0e={class:"user-menu-item-label user-menu-login-label"},i0e={class:"user-menu-item-label"},o0e={class:"user-menu-row-value"},s0e={class:"user-menu-item-label"},r0e={class:"user-menu-row-value"},l0e={class:"user-menu-item-label"},a0e={key:0,class:"user-menu-usage"},u0e={key:0,class:"user-menu-usage-state"},c0e={key:1,class:"user-menu-usage-state"},d0e={class:"user-menu-usage-error"},f0e={key:2,class:"user-menu-usage-state user-menu-usage-empty"},h0e={class:"user-menu-usage-label"},p0e={key:0,class:"user-menu-usage-hint"},g0e={class:"user-menu-item-label"},m0e={class:"user-menu-item-label"},v0e=Xe({__name:"UserMenu",emits:["login","openSettings"],setup(e,{emit:t}){const n=t,{t:i,locale:o}=zt(),s=pa(),{confirm:r}=Vc(),l=F(()=>s.managedProviderStatus.value==="authenticated"),a=s.managedUserInfo,u=s.managedMembership,c=F(()=>a.value?.nickname||i("sidebar.defaultUserName")),d=F(()=>u.value==="free"||Lle(a.value?.userLevel)),h=F(()=>u.value!=="free"),p=K(!1);Pe(()=>a.value?.avatar,()=>{p.value=!1});const g=F(()=>!!a.value?.avatar&&!p.value),m=s.colorScheme,k=F(()=>i(`theme.${m.value}`)),w=F(()=>m.value==="light"?"light-mode":m.value==="dark"?"dark-mode":"follow-system"),y=[{value:"light",labelKey:"theme.light",icon:"light-mode"},{value:"dark",labelKey:"theme.dark",icon:"dark-mode"},{value:"system",labelKey:"theme.system",icon:"follow-system"}];function b(le){s.setColorScheme(le)}const A=F(()=>H2.find(le=>le.code===o.value)?.label??o.value);function T(le){o.value!==le&&n7(le)}const S=K(!1),x=K({}),_=K(null),L=K(null);let M=null;function N(le){const ge=le.target;ge.closest(".user-menu")||ge.closest(".user-menu-trigger")||ge.closest(".user-submenu")||R()}function I(le){le.key==="Escape"&&(le.stopPropagation(),R())}async function z(){if(S.value){R();return}S.value=!0,document.addEventListener("mousedown",N),document.addEventListener("keydown",I,!0),window.addEventListener("resize",R),l.value&&te(),await dt(),H();const le=L.value;le&&(M=new ResizeObserver(O),M.observe(le))}function H(){const le=L.value,ge=_.value?.el;if(!le||!ge)return;const ke=le.getBoundingClientRect(),Ie=4,Oe=8,we=ge.offsetHeight,Be={left:`${Math.round(ke.left)}px`,width:`${Math.round(ke.width)}px`};ke.top-we-Ie{P[le]=ge instanceof HTMLElement?ge:ge?.$el??null}}function V(le){q(),j.value!==le&&(j.value=le,dt(ne))}function Y(le,ge){le.key!=="Enter"&&le.key!==" "&&le.key!=="ArrowRight"||(le.preventDefault(),V(ge))}function oe(){q(),Z=setTimeout(()=>{j.value=null,Z=null},250)}function q(){Z!==null&&(clearTimeout(Z),Z=null)}function ne(){const le=j.value,ge=_.value?.el,ke=W.value?.el,Ie=le!==null?P[le]:null;if(!ge||!ke||!Ie)return;const Oe=4,we=8,Be=ge.getBoundingClientRect(),tt=Ie.getBoundingClientRect();ke.style.maxWidth="none";const ut=ke.offsetHeight,_t=ke.offsetWidth,{left:Ct,maxWidth:$t,flipped:Vt}=Ace(_t,Be,window.innerWidth,Oe,we),nn=Math.max(we,Math.min(tt.top,window.innerHeight-ut-we));$.value={top:`${Math.round(nn)}px`,left:`${Math.round(Ct)}px`,maxWidth:`${Math.round($t)}px`,transformOrigin:Vt?"top right":"top left","--menu-pop-shift":"-2px"}}const ie=K(!1),pe=K(null);let Ne=0;async function te(){const le=++Ne;ie.value=!0;try{const ge=await s.getUsage();le===Ne&&(pe.value=ge)}finally{le===Ne&&(ie.value=!1)}}Pe([ie,pe],async()=>{j.value==="usage"&&(await dt(),ne())});const be=F(()=>{if(pe.value?.kind!=="ok")return[];const{summary:le,limits:ge}=pe.value,ke=Ele(ge,5,"hour");return[le,ke].filter(Ie=>Ie!=null)}),Q=F(()=>pe.value?.kind==="error"?pe.value.message:i("settings.planUsage.loadFailed"));function ue(le){return le.resetAt===void 0?"":$B(le.resetAt,i)}function Ae(){R(),sg()}function se(){R(),n("login")}function re(){R(),n("openSettings")}async function G(){R(),await r({title:i("sidebar.logoutConfirmTitle"),message:i("sidebar.logoutConfirmMessage"),variant:"danger",action:()=>s.logout()})}return(le,ge)=>(v(),E(Ee,null,[C("button",{ref_key:"triggerRef",ref:L,class:"user-menu-trigger",type:"button","aria-haspopup":"menu","aria-expanded":S.value,onClick:wt(z,["stop"])},[l.value?(v(),E(Ee,{key:0},[C("span",Qpe,[g.value?(v(),E("img",{key:0,src:f(a)?.avatar,alt:"",onError:ge[0]||(ge[0]=ke=>p.value=!0)},null,40,Ype)):(v(),ce(f(ve),{key:1,name:"user",size:"sm"}))]),C("span",Jpe,D(c.value),1)],64)):(v(),E(Ee,{key:1},[U(f(ve),{name:"user"}),C("span",Xpe,D(f(i)("sidebar.notSignedIn")),1)],64))],8,Gpe),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[S.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:_,class:"user-menu",style:Kt(x.value),onClick:ge[14]||(ge[14]=wt(()=>{},["stop"]))},{default:de(()=>[l.value?(v(),E(Ee,{key:0},[h.value?(v(),ce(f(Ut),{key:0,ref:ae("usage"),"aria-haspopup":"true","aria-expanded":j.value==="usage",onMouseenter:ge[1]||(ge[1]=ke=>V("usage")),onMouseleave:oe,onFocus:ge[2]||(ge[2]=ke=>V("usage")),onBlur:oe,onClick:ge[3]||(ge[3]=ke=>V("usage")),onKeydown:ge[4]||(ge[4]=ke=>Y(ke,"usage"))},{default:de(()=>[U(f(ve),{name:"histogram",size:"sm"}),C("span",e0e,D(f(i)("settings.planUsage.title")),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"])):X("",!0),d.value?(v(),ce(f(Ut),{key:1,onClick:Ae,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"music",size:"sm"}),C("span",t0e,D(f(i)("sidebar.upgradeMembership")),1),U(f(ve),{name:"external-link",size:"sm"})]),_:1})):X("",!0),U(f(Ut),{separator:""})],64)):(v(),E(Ee,{key:1},[U(f(Ut),{class:"user-menu-login",onClick:se,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"log-in",size:"sm"}),C("span",n0e,D(f(i)("sidebar.signIn")),1)]),_:1}),U(f(Ut),{separator:""})],64)),U(f(Ut),{ref:ae("theme"),"aria-haspopup":"true","aria-expanded":j.value==="theme",onMouseenter:ge[5]||(ge[5]=ke=>V("theme")),onMouseleave:oe,onFocus:ge[6]||(ge[6]=ke=>V("theme")),onBlur:oe,onClick:ge[7]||(ge[7]=ke=>V("theme")),onKeydown:ge[8]||(ge[8]=ke=>Y(ke,"theme"))},{default:de(()=>[U(f(ve),{name:w.value,size:"sm"},null,8,["name"]),C("span",i0e,D(f(i)("theme.colorSchemeLabel")),1),C("span",o0e,D(k.value),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"]),U(f(Ut),{ref:ae("language"),"aria-haspopup":"true","aria-expanded":j.value==="language",onMouseenter:ge[9]||(ge[9]=ke=>V("language")),onMouseleave:oe,onFocus:ge[10]||(ge[10]=ke=>V("language")),onBlur:oe,onClick:ge[11]||(ge[11]=ke=>V("language")),onKeydown:ge[12]||(ge[12]=ke=>Y(ke,"language"))},{default:de(()=>[U(f(ve),{name:"translate",size:"sm"}),C("span",s0e,D(f(i)("sidebar.language")),1),C("span",r0e,D(A.value),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"]),U(f(Ut),{onClick:re,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"settings",size:"sm"}),C("span",l0e,D(f(i)("settings.title")),1)]),_:1}),l.value?(v(),E(Ee,{key:2},[U(f(Ut),{separator:""}),U(f(Ut),{onClick:ge[13]||(ge[13]=ke=>void G()),onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"log-out",size:"sm"}),$e(" "+D(f(i)("sidebar.signOut")),1)]),_:1})],64)):X("",!0)]),_:1},8,["style"])):X("",!0)]),_:1})])),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[j.value!==null?(v(),ce(f(Zs),{key:0,ref_key:"submenuRef",ref:W,class:"user-submenu",style:Kt($.value),role:j.value==="usage"?"dialog":"menu",onClick:ge[16]||(ge[16]=wt(()=>{},["stop"])),onMouseenter:q,onMouseleave:oe,onFocusin:q,onFocusout:oe},{default:de(()=>[j.value==="usage"?(v(),E("div",a0e,[ie.value?(v(),E("div",u0e,[U(f(Oi),{size:"sm"})])):pe.value?.kind!=="ok"?(v(),E("div",c0e,[C("span",d0e,D(Q.value),1),U(f(Qt),{variant:"ghost",size:"sm",onClick:ge[15]||(ge[15]=ke=>void te())},{default:de(()=>[$e(D(f(i)("settings.planUsage.retry")),1)]),_:1})])):be.value.length===0?(v(),E("span",f0e,D(f(i)("settings.planUsage.empty")),1)):(v(!0),E(Ee,{key:3},pt(be.value,(ke,Ie)=>(v(),E("div",{key:Ie,class:"user-menu-usage-row"},[C("span",h0e,D(f(BB)(ke,f(i))),1),C("span",{class:Fe(["user-menu-usage-value",`sev-${f(Hb)(ke.used,ke.limit)}`])},D(f(i)("settings.planUsage.usedPct",{pct:f(bv)(ke.used,ke.limit)})),3),ue(ke)?(v(),E("span",p0e,D(ue(ke)),1)):X("",!0)]))),128))])):j.value==="theme"?(v(),E(Ee,{key:1},pt(y,ke=>U(f(Ut),{key:ke.value,onClick:Ie=>b(ke.value)},{default:de(()=>[U(f(ve),{name:ke.icon,size:"sm"},null,8,["name"]),C("span",g0e,D(f(i)(ke.labelKey)),1),f(m)===ke.value?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)]),_:2},1032,["onClick"])),64)):(v(!0),E(Ee,{key:2},pt(f(H2),ke=>(v(),ce(f(Ut),{key:ke.code,onClick:Ie=>T(ke.code)},{default:de(()=>[C("span",m0e,D(ke.label),1),f(o)===ke.code?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)]),_:2},1032,["onClick"]))),128))]),_:1},8,["style","role"])):X("",!0)]),_:1})]))],64))}}),y0e=kt(v0e,[["__scopeId","data-v-7472da32"]]),k0e={class:"ep-search"},b0e=["placeholder"],A0e={class:"ep-scroll"},C0e={key:0,class:"ep-grid"},w0e=["onClick"],x0e={key:1,class:"ep-empty"},S0e={class:"ep-label"},_0e={class:"ep-grid"},M0e=["onClick"],I0e={class:"ep-label"},E0e={class:"ep-grid"},T0e=["onClick"],q_="kimi-web.recent-emojis",L0e=Xe({__name:"SessionEmojiPicker",props:{current:{default:null},removable:{type:Boolean,default:!0}},emits:["pick"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),{handleCompositionStart:o,handleCompositionEnd:s,isComposingKeyEvent:r}=bl(),l=e,a=n,u=["⏳","⚠️","🐛","✨","🔥","🚀","🎯","🧪","📝","🔍","🛠️","💡","📦","🎨","🔒","📈","🧹","🚧","✅","❓","🌙","☕","🐳","🗂️","📊","🤖","🧩","⚙️","🌱","📌","💥","🕐"],c={faces:"sidebar.emojiGroupFaces",nature:"sidebar.emojiGroupNature",food:"sidebar.emojiGroupFood",activity:"sidebar.emojiGroupActivity",objects:"sidebar.emojiGroupObjects",symbols:"sidebar.emojiGroupSymbols"},d=Dre.map(S=>({id:S,labelKey:c[S],emojis:SB.filter(x=>x.group===S).map(x=>x.emoji)})),h=K(p());function p(){try{const S=JSON.parse(localStorage.getItem(q_)??"[]");return Array.isArray(S)?S.filter(x=>typeof x=="string"):[]}catch{return[]}}function g(S,x){h.value=zre(h.value,S);try{localStorage.setItem(q_,JSON.stringify(h.value))}catch{}a("pick",S,x)}const m=K(""),k=F(()=>m.value.trim().length>0),w=F(()=>$re(m.value)),y=K(null);cn(()=>y.value?.focus());function b(S){if(r(S))return;const x=w.value[0];k.value&&x&&g(x)}function A(){let S=l.current??void 0;for(;S===void 0||S===l.current;)S=u[Math.floor(Math.random()*u.length)];g(S,"random")}const T=K(null);return t({el:F(()=>T.value?.el),isComposingKeyEvent:r}),(S,x)=>(v(),ce(f(Zs),{ref_key:"menuRef",ref:T,class:"emoji-picker",role:"dialog","aria-label":f(i)("sidebar.sessionEmojiTitle"),onKeydown:x[4]||(x[4]=wt(()=>{},["stop"]))},{default:de(()=>[C("div",k0e,[U(f(ve),{name:"search",size:"sm"}),Wn(C("input",{ref_key:"inputRef",ref:y,"onUpdate:modelValue":x[0]||(x[0]=_=>m.value=_),class:"ep-input",type:"text",placeholder:f(i)("sidebar.searchEmoji"),autocomplete:"off",spellcheck:"false",onKeydown:Ho(b,["enter"]),onCompositionstart:x[1]||(x[1]=(..._)=>f(o)&&f(o)(..._)),onCompositionend:x[2]||(x[2]=(..._)=>f(s)&&f(s)(..._))},null,40,b0e),[[Bs,m.value]])]),C("div",A0e,[k.value?(v(),E(Ee,{key:0},[w.value.length?(v(),E("div",C0e,[(v(!0),E(Ee,null,pt(w.value,_=>(v(),E("button",{key:_,class:Fe(["ep-e",{sel:_===e.current}]),type:"button",onClick:L=>g(_)},D(_),11,w0e))),128))])):(v(),E("div",x0e,D(f(i)("sidebar.noEmojiResults")),1))],64)):(v(),E(Ee,{key:1},[h.value.length?(v(),E(Ee,{key:0},[C("div",S0e,D(f(i)("sidebar.recentEmojis")),1),C("div",_0e,[(v(!0),E(Ee,null,pt(h.value,_=>(v(),E("button",{key:_,class:Fe(["ep-e",{sel:_===e.current}]),type:"button",onClick:L=>g(_)},D(_),11,M0e))),128))])],64)):X("",!0),(v(!0),E(Ee,null,pt(f(d),_=>(v(),E(Ee,{key:_.id},[C("div",I0e,D(f(i)(_.labelKey)),1),C("div",E0e,[(v(!0),E(Ee,null,pt(_.emojis,L=>(v(),E("button",{key:L,class:Fe(["ep-e",{sel:L===e.current}]),type:"button",onClick:M=>g(L)},D(L),11,T0e))),128))])],64))),128))],64))]),U(f(Ut),{separator:""}),U(f(Ut),{role:"button",disabled:!(e.current&&e.removable),onClick:x[3]||(x[3]=_=>a("pick",null))},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeEmoji")),1)]),_:1},8,["disabled"]),U(f(Ut),{role:"button",onClick:A},{default:de(()=>[U(f(ve),{name:"sparkles",size:"sm"}),$e(" "+D(f(i)("sidebar.randomEmoji")),1)]),_:1})]),_:1},8,["aria-label"]))}}),N0e=kt(L0e,[["__scopeId","data-v-b0dbbae4"]]),F0e={class:"row"},D0e={key:0,class:"lead"},B0e={class:"left"},$0e=["readonly","onKeydown"],R0e={key:0,class:"gen-dots","aria-hidden":"true"},z0e=["aria-label"],O0e={key:1,class:"act"},P0e={key:0,class:"ts"},j0e={key:1,class:"st"},H0e={key:1,class:"unread-dot"},W0e={key:2,class:"ha"},q0e={key:0,class:"sub"},U0e={class:"sub-text"},K0e=["aria-label"],V0e={class:"menu-time"},Z0e=Xe({__name:"SessionRow",props:{session:{},active:{type:Boolean},approvalCount:{default:0},questionCount:{default:0},unread:{type:Boolean,default:!1},stateTag:{default:void 0}},emits:["select","rename","generateTitle","renameStateChange","archive","restore","fork","export","pin"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),{sidebarTabs:o}=d1(),s=e,r=n;function l(gt){const Le=new Date(gt);if(Number.isNaN(Le.getTime()))return gt;const ze=Ye=>String(Ye).padStart(2,"0");return`${Le.getFullYear()}-${ze(Le.getMonth()+1)}-${ze(Le.getDate())} ${ze(Le.getHours())}:${ze(Le.getMinutes())}`}const a=F(()=>s.session.updatedAt?l(s.session.updatedAt):s.session.time),u=F(()=>s.session.cwdLabel!==void 0),c=F(()=>Y.value?"idle":og({busy:s.session.busy,unread:s.unread,questionCount:s.questionCount,approvalCount:s.approvalCount,pendingInteraction:s.session.pendingInteraction,lastTurnReason:s.session.lastTurnReason})),d=F(()=>c.value==="awaiting-question"),h=F(()=>c.value==="awaiting-approval"),p=F(()=>c.value==="aborted"),g=F(()=>c.value==="running"),m=F(()=>c.value==="unread"),k=F(()=>c.value!=="idle"),w=K(!1),y=K(null),b=K({});function A(gt){const Le=gt.target;y.value?.el?.contains(Le)||S()}async function T(){O(),w.value=!0,setTimeout(()=>document.addEventListener("mousedown",A),0),window.addEventListener("resize",S),await dt()}function S(){w.value=!1,document.removeEventListener("mousedown",A),window.removeEventListener("resize",S)}_n(()=>{document.removeEventListener("mousedown",A),document.removeEventListener("mousedown",R),window.removeEventListener("keydown",j,!0),window.removeEventListener("resize",S),window.removeEventListener("resize",O)});const x=F(()=>KB(s.session.title)),_=F(()=>{const gt=x.value.emoji;return gt?s.session.title.slice(gt.length):s.session.title}),L=K(!1),M=K(null),N=K({});let I=null;function z(gt,Le,ze){const Ye=M.value?.el,Tt=4,on=8,jt=Ye?.offsetHeight??0,kn=Ye?.offsetWidth??0;let bn=gt.bottom+Tt,mn=!1;bn+jt>window.innerHeight-on&&(bn=Math.max(on,gt.top-jt-Tt),mn=!0);const zn=ze??(Le==="left"?gt.left:gt.right-kn),He=Math.max(on,Math.min(zn,window.innerWidth-kn-on)),st=ze===void 0?Le:`${Math.round(Math.min(Math.max(ze-He,0),kn))}px`;N.value={top:`${Math.round(bn)}px`,left:`${Math.round(He)}px`,transformOrigin:`${st} ${mn?"bottom":"top"}`,"--menu-pop-shift":mn?"2px":"-2px"}}async function H(gt,Le,ze="left",Ye){const Tt=Le??gt?.getBoundingClientRect();if(Tt){if(L.value){O();return}S(),I=gt??null,L.value=!0,setTimeout(()=>document.addEventListener("mousedown",R),0),window.addEventListener("keydown",j,!0),window.addEventListener("resize",O),await dt(),z(Tt,ze,Ye)}}function O(){L.value=!1,I=null,document.removeEventListener("mousedown",R),window.removeEventListener("keydown",j,!0),window.removeEventListener("resize",O)}function R(gt){const Le=gt.target;M.value?.el?.contains(Le)||I?.contains(Le)||O()}function j(gt){gt.key==="Escape"&&(M.value?.isComposingKeyEvent(gt)||(gt.preventDefault(),gt.stopPropagation(),O()))}function $(gt){return gt.clientX||gt.clientY?new DOMRect(gt.clientX,gt.clientY,0,0):void 0}function W(gt){gt.stopPropagation();const Le=gt;H(Le.currentTarget,$(Le),"left",Le.clientX||void 0)}function P(gt){const Le=y.value?.el,ze=gt,Ye=$(ze)??Le?.getBoundingClientRect();S(),H(Le,Ye,"left",ze.clientX||void 0)}function Z(gt){if(O(),gt===x.value.emoji)return;const Le=fae(s.session.title,gt);Le&&Le!==s.session.title&&r("rename",s.session.id,Le)}const ae=pa(),V=F(()=>(ae.experimentalFlags.value.auto_session_title??ae.config.value?.experimental?.auto_session_title)===!0),Y=K(!1),oe=K(""),q=K(null),ne=K(null),ie=K(!1);let pe="",Ne=null;const{handleCompositionStart:te,handleCompositionEnd:be,isComposingKeyEvent:Q}=bl();async function ue(){S(),O(),Y.value=!0,oe.value=s.session.title,await dt();try{q.value?.focus(),q.value?.select()}catch{}}function Ae(){if(!Y.value)return;const gt=oe.value.trim();gt&>!==Ne&>!==s.session.title&&r("rename",s.session.id,gt),Y.value=!1}function se(){ie.value||Ae()}function re(gt){Q(gt)||ie.value||Ae()}function G(gt){Q(gt)||le()}function le(){ie.value=!1,Y.value=!1}function ge(gt){const Le=ne.value;if(!(Le===null||!(gt.target instanceof Node)||Le.contains(gt.target))){if(ie.value){ie.value=!1,Y.value=!1;return}Ae()}}Pe(Y,gt=>{gt?document.addEventListener("pointerdown",ge,!0):document.removeEventListener("pointerdown",ge,!0)}),_n(()=>document.removeEventListener("pointerdown",ge,!0));function ke(){ie.value||(ie.value=!0,pe=oe.value,Ne=null,oe.value="",r("generateTitle",s.session.id,gt=>{ie.value=!1,Y.value&&(oe.value=gt??pe,Ne=gt,dt(()=>{try{q.value?.focus(),q.value?.select()}catch{}}))}))}Pe(Y,gt=>r("renameStateChange",gt));async function Ie(gt){Y.value||(gt.preventDefault(),gt.stopPropagation(),w.value&&S(),await T(),Oe(gt))}function Oe(gt){const Le=y.value?.el,ze=8,Ye=Le?.offsetHeight??0,Tt=Le?.offsetWidth??0;let on=gt.clientY,jt=!1;on+Ye>window.innerHeight-ze&&(on=Math.max(ze,gt.clientY-Ye),jt=!0);let kn=gt.clientX,bn=!1;kn+Tt>window.innerWidth-ze&&(kn=Math.max(ze,gt.clientX-Tt),bn=!0),b.value={top:`${Math.round(on)}px`,left:`${Math.round(kn)}px`,transformOrigin:`${jt?"bottom":"top"} ${bn?"right":"left"}`,"--menu-pop-shift":jt?"2px":"-2px"}}const we=K(!1),Be=K(!1);async function tt(){const gt=await Xo(s.session.id);we.value=gt,Be.value=!gt,setTimeout(()=>{we.value=!1,Be.value=!1,S()},1500)}function ut(){S(),r("fork",s.session.id)}function _t(){S(),r("export",s.session.id)}function Ct(){S(),r("pin",s.session.id)}function $t(){S(),r("archive",s.session.id)}function Vt(){S(),r("restore",s.session.id)}t({closeMenu:S});function nn(){const gt=s.session.pullRequest?.url;gt&&window.open(gt,"_blank","noopener")}return(gt,Le)=>(v(),E("div",{class:Fe(["se",{on:e.active,flat:u.value}]),onClick:Le[8]||(Le[8]=ze=>r("select",e.session.id)),onContextmenu:Ie},[C("div",F0e,[u.value?X("",!0):(v(),E("span",D0e)),C("div",B0e,[Y.value?(v(),E("div",{key:0,ref_key:"renameWrapRef",ref:ne,class:Fe(["rename-wrap",{generating:ie.value}]),onClick:Le[4]||(Le[4]=wt(()=>{},["stop"]))},[Wn(C("input",{ref_key:"renameInputRef",ref:q,"onUpdate:modelValue":Le[0]||(Le[0]=ze=>oe.value=ze),class:"rename-input",readonly:ie.value,onKeydown:[Ho(wt(re,["stop"]),["enter"]),Ho(wt(G,["stop"]),["esc"])],onCompositionstart:Le[1]||(Le[1]=(...ze)=>f(te)&&f(te)(...ze)),onCompositionend:Le[2]||(Le[2]=(...ze)=>f(be)&&f(be)(...ze)),onBlur:se},null,40,$0e),[[Bs,oe.value]]),ie.value?(v(),E("span",R0e,[...Le[9]||(Le[9]=[C("i",null,null,-1),C("i",null,null,-1),C("i",null,null,-1)])])):X("",!0),V.value?(v(),ce(f(gn),{key:1,text:f(i)("sidebar.genTitle")},{default:de(()=>[U(f(Jt),{class:"gen-title-btn",size:"sm",label:f(i)("sidebar.genTitle"),disabled:ie.value,onMousedown:Le[3]||(Le[3]=wt(()=>{},["prevent","stop"])),onClick:wt(ke,["stop"])},{default:de(()=>[U(f(ve),{name:"gen-title"})]),_:1},8,["label","disabled"])]),_:1},8,["text"])):X("",!0)],2)):(v(),E("span",{key:1,class:"t",onDblclick:wt(ue,["stop"])},[x.value.emoji?(v(),E("button",{key:0,type:"button",class:"emoji","aria-label":f(i)("sidebar.setEmoji"),onClick:wt(W,["stop"]),onDblclick:Le[5]||(Le[5]=wt(()=>{},["stop"]))},D(x.value.emoji),41,z0e)):X("",!0),$e(D(_.value),1)],32))]),Y.value?X("",!0):(v(),E("span",O0e,[U(f(gn),{text:f(i)("workspace.awaitingAnswerTitle")},{default:de(()=>[d.value?(v(),ce(f(br),{key:0,variant:"info",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.awaitingAnswer")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),U(f(gn),{text:f(i)("workspace.awaitingPermissionTitle")},{default:de(()=>[h.value?(v(),ce(f(br),{key:0,variant:"warning",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.awaitingPermission")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),U(f(gn),{text:f(i)("workspace.abortedTitle")},{default:de(()=>[p.value?(v(),ce(f(br),{key:0,variant:"danger",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.aborted")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),k.value?g.value||m.value?(v(),E("span",j0e,[g.value?(v(),ce(f(Oi),{key:0,size:"sm"})):(v(),E("span",H0e))])):X("",!0):(v(),E("span",P0e,D(e.session.time),1)),Y.value?X("",!0):(v(),E("span",W0e,[e.stateTag==="done"?(v(),ce(f(gn),{key:0,text:f(i)("sidebar.reopen")},{default:de(()=>[U(f(Jt),{class:"reopen-btn",size:"sm",label:f(i)("sidebar.reopen"),onClick:wt(Vt,["stop"])},{default:de(()=>[U(f(ve),{name:"undo"})]),_:1},8,["label"])]),_:1},8,["text"])):(v(),E(Ee,{key:1},[U(f(gn),{text:e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin")},{default:de(()=>[U(f(Jt),{class:"pin-btn",size:"sm",label:e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin"),onClick:wt(Ct,["stop"])},{default:de(()=>[U(f(ve),{name:e.session.pinned?"unpin":"pin"},null,8,["name"])]),_:1},8,["label"])]),_:1},8,["text"]),U(f(gn),{text:f(o)?f(i)("sidebar.complete"):f(i)("sidebar.archive")},{default:de(()=>[U(f(Jt),{class:Fe(f(o)?"complete-btn":"archive-btn"),size:"sm",label:f(o)?f(i)("sidebar.complete"):f(i)("sidebar.archive"),onClick:wt($t,["stop"])},{default:de(()=>[U(f(ve),{name:f(o)?"state-done":"archive"},null,8,["name"])]),_:1},8,["class","label"])]),_:1},8,["text"])],64))]))]))]),e.session.cwdLabel!==void 0?(v(),E("div",q0e,[U(f(ve),{class:"sub-icon",name:"folder-closed",size:"sm"}),C("span",U0e,D(e.session.cwdLabel),1),e.session.pullRequest?(v(),E("button",{key:0,type:"button",class:Fe(["pr",`pr--${e.session.pullRequest.state}`]),"aria-label":`PR #${e.session.pullRequest.number}`,onClick:wt(nn,["stop"])},[U(f(ve),{name:"git-pull-request",size:"sm"}),C("span",null,"#"+D(e.session.pullRequest.number),1)],10,K0e)):X("",!0)])):X("",!0),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[w.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:y,class:"menu",style:Kt(b.value),onClick:Le[6]||(Le[6]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{danger:Be.value,onClick:tt},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(Be.value?f(i)("sidebar.copyFailed"):we.value?f(i)("sidebar.copied"):f(i)("sidebar.copySessionId")),1)]),_:1},8,["danger"]),U(f(Ut),{separator:""}),U(f(Ut),{onClick:ue},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{onClick:P},{default:de(()=>[U(f(ve),{name:"emoji",size:"sm"}),$e(" "+D(f(i)("sidebar.setEmoji")),1)]),_:1}),U(f(Ut),{onClick:ut},{default:de(()=>[U(f(ve),{name:"git-fork",size:"sm"}),$e(" "+D(f(i)("sidebar.fork")),1)]),_:1}),U(f(Ut),{onClick:_t},{default:de(()=>[U(f(ve),{name:"download",size:"sm"}),$e(" "+D(f(i)("sidebar.export")),1)]),_:1}),e.stateTag!=="done"?(v(),ce(f(Ut),{key:0,onClick:Ct},{default:de(()=>[U(f(ve),{name:e.session.pinned?"unpin":"pin",size:"sm"},null,8,["name"]),$e(" "+D(e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin")),1)]),_:1})):X("",!0),e.stateTag==="done"?(v(),ce(f(Ut),{key:1,onClick:Vt},{default:de(()=>[U(f(ve),{name:"undo",size:"sm"}),$e(" "+D(f(i)("sidebar.reopen")),1)]),_:1})):(v(),ce(f(Ut),{key:2,onClick:$t},{default:de(()=>[U(f(ve),{name:f(o)?"state-done":"archive",size:"sm"},null,8,["name"]),$e(" "+D(f(o)?f(i)("sidebar.markDone"):f(i)("sidebar.archive")),1)]),_:1})),U(f(Ut),{separator:""}),C("div",V0e,D(f(i)("sidebar.lastActive",{time:a.value})),1)]),_:1},8,["style"])):X("",!0)]),_:1})])),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[L.value?(v(),ce(N0e,{key:0,ref_key:"pickerRef",ref:M,class:"picker",style:Kt(N.value),current:x.value.emoji,removable:x.value.rest.length>0,onClick:Le[7]||(Le[7]=wt(()=>{},["stop"])),onPick:Z},null,8,["style","current","removable"])):X("",!0)]),_:1})]))],34))}}),Pp=kt(Z0e,[["__scopeId","data-v-9068e4e1"]]),G0e=["draggable"],Q0e={class:"gh-top"},Y0e={class:"gh-name"},J0e=["inert"],X0e={key:0,class:"show-more-row"},ege=["disabled"],tge={class:"show-more-label"},nge={key:1,class:"show-more-sep","aria-hidden":"true"},ige={class:"show-more-label"},oge={key:1,class:"group-empty"},sge=Xe({__name:"WorkspaceGroup",props:{group:{},activeWorkspaceId:{},activeId:{},renamingId:{},renameValue:{},renameInputRef:{},pendingBySession:{},unreadBySession:{},wsMenuOpenId:{},dragging:{type:Boolean},sortable:{type:Boolean},isCollapsed:{type:Function},visibleLimit:{type:Function},flashSessionId:{},pinnedDragSession:{},stateTag:{}},emits:["groupClick","groupContextmenu","toggleWsMenu","createInWorkspace","selectSession","renameSession","generateSessionTitle","archiveSession","forkSession","exportSession","pinSession","dropPinnedSession","expand","collapse","confirmRename","cancelRename","updateRenameValue","wsDragstart","wsDragend"],setup(e,{emit:t}){const{t:n}=zt(),i=e,o=t,s=F({get:()=>i.renameValue,set:M=>o("updateRenameValue",M)}),r=K(!1),l=F(()=>i.pinnedDragSession!=null),a=F(()=>i.pinnedDragSession?.workspaceId===i.group.workspace.id);function u(M){if(i.pinnedDragSession!=null){if(!a.value){M.dataTransfer&&(M.dataTransfer.dropEffect="none");return}M.preventDefault(),M.dataTransfer&&(M.dataTransfer.dropEffect="move"),r.value=!0}}function c(M){i.pinnedDragSession==null||!a.value||(M.preventDefault(),r.value=!1,o("dropPinnedSession",i.pinnedDragSession.id))}function d(M){M.currentTarget.contains(M.relatedTarget)||(r.value=!1)}const h=F(()=>i.visibleLimit(i.group.workspace.id)??i.group.initialCount),p=F(()=>{const M=i.group.sessions.slice(0,h.value);if(i.activeId&&!M.some(N=>N.id===i.activeId)){const N=i.group.sessions.find(I=>I.id===i.activeId);if(N)return[...M,N]}return M}),g=F(()=>i.group.sessions.length>h.value||i.group.hasMore||i.group.loadingMore),m=F(()=>h.value>i.group.initialCount);function k(M){i.renameInputRef.value=M instanceof HTMLInputElement?M:null}const{handleCompositionStart:w,handleCompositionEnd:y,isComposingKeyEvent:b}=bl();function A(M){b(M)||o("confirmRename")}function T(M){b(M)||o("cancelRename")}const S=K(null);function x(M){i.renamingId!==i.group.workspace.id&&o("groupContextmenu",i.group.workspace,M)}function _(M){i.sortable!==!1&&M.dataTransfer&&(M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",i.group.workspace.id),o("wsDragstart",i.group.workspace.id))}function L(M,N){N.dataTransfer&&(N.dataTransfer.effectAllowed="move",N.dataTransfer.setData(C2,M),N.dataTransfer.setData("text/plain",M))}return(M,N)=>(v(),E("div",{class:Fe(["group",{dragging:e.dragging,"pinned-drag-active":l.value&&a.value,"pinned-drop-hover":r.value,"pinned-drop-blocked":l.value&&!a.value}]),onDragover:u,onDrop:c,onDragleave:d},[C("div",{class:Fe(["gh",{on:e.group.workspace.id===e.activeWorkspaceId&&e.activeId==="",collapsed:e.isCollapsed(e.group.workspace.id)}]),draggable:e.sortable!==!1&&e.renamingId!==e.group.workspace.id,onClick:N[7]||(N[7]=wt(I=>o("groupClick",e.group.workspace.id,I),["stop"])),onContextmenu:x,onDragstart:_,onDragend:N[8]||(N[8]=I=>o("wsDragend"))},[C("div",Q0e,[e.isCollapsed(e.group.workspace.id)?(v(),ce(f(ve),{key:0,class:"gh-folder",name:"folder-closed"})):(v(),ce(f(ve),{key:1,class:"gh-folder",name:"folder"})),e.renamingId!==e.group.workspace.id?(v(),ce(f(gn),{key:2,text:e.group.workspace.root},{default:de(()=>[C("span",Y0e,D(e.group.workspace.name),1)]),_:1},8,["text"])):Wn((v(),E("input",{key:3,ref:k,"onUpdate:modelValue":N[0]||(N[0]=I=>s.value=I),class:"gh-rename",type:"text",onKeydown:[Ho(A,["enter"]),Ho(T,["esc"])],onCompositionstart:N[1]||(N[1]=(...I)=>f(w)&&f(w)(...I)),onCompositionend:N[2]||(N[2]=(...I)=>f(y)&&f(y)(...I)),onBlur:N[3]||(N[3]=I=>o("cancelRename")),onClick:N[4]||(N[4]=wt(()=>{},["stop"]))},null,544)),[[Bs,s.value]]),e.renamingId!==e.group.workspace.id?(v(),E("div",{key:4,class:Fe(["gh-actions",{open:e.wsMenuOpenId===e.group.workspace.id}])},[U(f(Jt),{class:Fe(["gh-more",{open:e.wsMenuOpenId===e.group.workspace.id}]),size:"sm",label:f(n)("sidebar.options"),tooltip:f(n)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":e.wsMenuOpenId===e.group.workspace.id,onClick:N[5]||(N[5]=wt(I=>o("toggleWsMenu",e.group.workspace,I),["stop"]))},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded"]),U(f(Jt),{class:"gh-add",size:"sm",label:f(n)("workspace.newInGroup"),tooltip:f(n)("workspace.newInGroup"),onClick:N[6]||(N[6]=wt(I=>o("createInWorkspace",e.group.workspace.id),["stop"]))},{default:de(()=>[U(f(ve),{name:"chat-new"})]),_:1},8,["label","tooltip"])],2)):X("",!0)])],42,G0e),C("div",{class:Fe(["group-sessions",{collapsed:e.isCollapsed(e.group.workspace.id)}]),inert:e.isCollapsed(e.group.workspace.id)},[(v(!0),E(Ee,null,pt(p.value,I=>(v(),ce(Pp,{key:I.id,session:I,active:I.id===e.activeId,"approval-count":e.pendingBySession[I.id]?.approvals??0,"question-count":e.pendingBySession[I.id]?.questions??0,unread:e.unreadBySession[I.id]??!1,"state-tag":i.stateTag,draggable:S.value!==I.id,"data-session-id":I.id,class:Fe({"se-locate-flash":e.flashSessionId===I.id}),onDragstart:z=>L(I.id,z),onRenameStateChange:z=>S.value=z?I.id:null,onSelect:N[9]||(N[9]=z=>o("selectSession",z)),onRename:N[10]||(N[10]=(z,H)=>o("renameSession",z,H)),onGenerateTitle:N[11]||(N[11]=(z,H)=>o("generateSessionTitle",z,H)),onArchive:N[12]||(N[12]=z=>o("archiveSession",z)),onFork:N[13]||(N[13]=z=>o("forkSession",z)),onExport:N[14]||(N[14]=z=>o("exportSession",z)),onPin:N[15]||(N[15]=z=>o("pinSession",z))},null,8,["session","active","approval-count","question-count","unread","state-tag","draggable","data-session-id","class","onDragstart","onRenameStateChange"]))),128)),g.value||m.value?(v(),E("div",X0e,[g.value?(v(),E("button",{key:0,class:"show-more",disabled:e.group.loadingMore,onClick:N[16]||(N[16]=wt(I=>o("expand",e.group.workspace.id),["stop"]))},[U(f(ve),{name:"chevron-down",size:"sm"}),C("span",tge,D(e.group.loadingMore?f(n)("sidebar.loadingMore"):f(n)("sidebar.showMore")),1)],8,ege)):X("",!0),g.value&&m.value?(v(),E("span",nge,"·")):X("",!0),m.value?(v(),E("button",{key:2,class:"show-more",onClick:N[17]||(N[17]=wt(I=>o("collapse",e.group.workspace.id),["stop"]))},[U(f(ve),{name:"chevron-up",size:"sm"}),C("span",ige,D(f(n)("sidebar.showLess")),1)])):X("",!0)])):X("",!0),e.group.sessions.length===0?(v(),E("div",oge,D(e.group.pinnedCount>0?f(n)("sidebar.allPinned",{count:e.group.pinnedCount}):f(n)("sidebar.noSessions")),1)):X("",!0)],10,J0e)],34))}}),rge=kt(sge,[["__scopeId","data-v-8a2d5457"]]),lge={class:"pinned-label"},age={class:"pinned-title"},uge=["draggable","onDragstart"],cge=["aria-label","aria-valuenow","aria-valuemin","aria-valuemax"],dge=Xe({__name:"PinnedSessionList",props:{sessions:{},activeId:{},pendingBySession:{},unreadBySession:{},stateTag:{},flashSessionId:{}},emits:["selectSession","renameSession","generateSessionTitle","archiveSession","forkSession","exportSession","pinSession","dropPin","sessionDragStart","sessionDragEnd"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),o=e,s=n,r=K(fce());function l(){r.value=!r.value,r8(r.value)}function a(){r.value&&(r.value=!1,r8(!1))}t({expand:a});const u=F(()=>!r.value&&Ale(o.sessions.length)),c=K(window.innerHeight);function d(){c.value=window.innerHeight}cn(()=>window.addEventListener("resize",d)),Hn(()=>window.removeEventListener("resize",d));const h=K(null),p=K(null);function g(){return h.value?.parentElement?.nextElementSibling??null}const m=K(void 0);function k(){const Le=p.value,ze=g();if(!Le||!ze){m.value=void 0;return}m.value=Le.getBoundingClientRect().height+ze.getBoundingClientRect().height}const w=K(null),y=K(null),b=K(null);function A(){const Le=g();if(!Le)return;const ze=Le.querySelectorAll(".se"),Ye=[];let Tt=0;for(let kn=0;kn{dt(()=>{k(),A();const Le=g();typeof ResizeObserver=="function"&&Le&&(T=new ResizeObserver(k),T.observe(Le)),typeof MutationObserver=="function"&&Le&&(S=new MutationObserver(A),S.observe(Le,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})),Le?.addEventListener("transitionend",x)})}),Hn(()=>{T?.disconnect(),S?.disconnect(),g()?.removeEventListener("transitionend",x)});const _=K(null);function L(Le){_.value=Le,Y!==null&&Le!==Y&&(z.value=!0),p.value?.style.setProperty("max-height",`${Le}px`)}const M=K(null),N=K([]);let I=!1;const z=K(gs(un.sidebarPinnedHeight)!==null),H=F(()=>yle(N.value)),O=F(()=>ble(y.value,b.value,w.value)),R=F(()=>wle(c.value,m.value,H.value,O.value)),{width:j,dragging:$,cursor:W,clamp:P,setWidth:Z,onPointerDown:ae}=w$({storageKey:un.sidebarPinnedHeight,defaultWidth:TS(window.innerHeight),min:()=>H.value,max:()=>I?h3(R.value,M.value,H.value):R.value,axis:"y",applyLive:L,persist:()=>z.value});Pe([c,R],()=>{z.value||(j.value=P(TS(c.value)))});let V=null,Y=null,oe=!1;function q(Le){const ze=p.value;ze&&(A(),I=!0,V=j.value,oe=z.value,Y=P(ze.getBoundingClientRect().height),j.value=Y),ae(Le)}Pe($,Le=>{if(Le)return;I=!1;const ze=_.value;V!==null&&Sle(Y,ze)&&(j.value=P(V),z.value=oe),V=null,Y=null,_.value=null});const ne=F(()=>u.value||$.value);Pe([p,ne,j],([Le,ze,Ye])=>{Le&&(ze?Le.style.setProperty("max-height",`${Ye}px`):Le.style.removeProperty("max-height"))},{immediate:!0});function ie(Le){if(Le.key!=="ArrowUp"&&Le.key!=="ArrowDown")return;Le.preventDefault(),A();const ze=p.value,Ye=h3(R.value,ze?.scrollHeight??null,H.value),Tt=ze?P(ze.getBoundingClientRect().height):j.value,on=(Le.key==="ArrowDown"?1:-1)*(Le.shiftKey?48:16),jt=xle(Tt,on,Ye,H.value);jt!==Tt&&(z.value=!0,Z(jt))}const pe=F(()=>{if(_.value!==null)return _.value;const Le=M.value;return Le===null?j.value:Math.min(j.value,Le)}),Ne=K(!1),te=K(!1),{thumb:be,thumbVisible:Q,update:ue,markScrolling:Ae,onThumbPointerDown:se,onListMouseEnter:re,onListMouseLeave:G,onThumbMouseEnter:le,onThumbMouseLeave:ge}=x$(p);function ke(Le=p.value){if(!Le)return;M.value=Le.scrollHeight;const ze=[Le.children.item(0),Le.children.item(1)].map(Ye=>Ye?Ye.getBoundingClientRect().height:null);(ze.length!==N.value.length||ze.some((Ye,Tt)=>Ye!==N.value[Tt]))&&(N.value=ze),Ne.value=Le.scrollTop>0,te.value=Le.scrollTop+Le.clientHeight{ze&&Oe?.disconnect(),Oe=null,Le&&typeof ResizeObserver=="function"&&(Oe=new ResizeObserver(()=>ke()),Oe.observe(Le)),Le?ke(Le):(M.value=null,N.value=[],Ne.value=!1,te.value=!1,ue())}),s1(()=>ke()),Hn(()=>Oe?.disconnect());const{fontScale:we}=c1();Pe(we,()=>{dt(()=>{ke(),A()})});const Be=K(null),tt=K(null);function ut(Le,ze){if(!ze.dataTransfer)return;ze.dataTransfer.effectAllowed="move",ze.dataTransfer.setData("text/plain",Le),Be.value=Le;const Ye=o.sessions.find(Tt=>Tt.id===Le)?.workspaceId;Ye!==void 0&&s("sessionDragStart",Le,Ye)}function _t(){Be.value=null,s("sessionDragEnd")}Pe(()=>o.sessions,Le=>{Be.value!==null&&!Le.some(ze=>ze.id===Be.value)&&(Be.value=null)});const Ct=K(!1);function $t(Le){return Le.dataTransfer?.types.includes(C2)??!1}function Vt(Le){$t(Le)&&(Le.preventDefault(),Le.dataTransfer&&(Le.dataTransfer.dropEffect="move"),Ct.value=!0)}function nn(Le){Ct.value=!1;const ze=Le.dataTransfer?.getData(C2);ze&&s("dropPin",ze)}function gt(Le){Le.currentTarget.contains(Le.relatedTarget)||(Ct.value=!1)}return(Le,ze)=>(v(),E("div",{ref_key:"pinnedRootEl",ref:h,class:Fe(["pinned",{"drop-active":Ct.value}]),onDragover:Vt,onDrop:nn,onDragleave:gt},[C("div",lge,[C("span",age,D(f(i)("sidebar.pinned")),1),U(f(Jt),{class:Fe(["pinned-toggle",{"pinned-toggle--on":r.value}]),size:"sm",label:r.value?f(i)("sidebar.expandPinned"):f(i)("sidebar.collapsePinned"),tooltip:r.value?f(i)("sidebar.expandPinned"):f(i)("sidebar.collapsePinned"),onClick:wt(l,["stop"])},{default:de(()=>[r.value?(v(),ce(f(ve),{key:0,name:"chevron-right"})):(v(),ce(f(ve),{key:1,name:"chevron-down"}))]),_:1},8,["class","label","tooltip"])]),r.value?X("",!0):(v(),E("div",{key:0,class:Fe(["pinned-rows-wrap",{scrolled:Ne.value,"more-below":te.value}]),onMouseenter:ze[10]||(ze[10]=(...Ye)=>f(re)&&f(re)(...Ye)),onMouseleave:ze[11]||(ze[11]=(...Ye)=>f(G)&&f(G)(...Ye))},[C("div",{ref_key:"pinnedRowsEl",ref:p,class:"pinned-rows",onScroll:Ie},[(v(!0),E(Ee,null,pt(e.sessions,Ye=>(v(),E("div",{key:Ye.id,class:Fe(["pin-row",{dragging:Be.value===Ye.id}]),draggable:tt.value!==Ye.id,onDragstart:Tt=>ut(Ye.id,Tt),onDragend:_t},[U(Pp,{session:Ye,active:Ye.id===e.activeId,"approval-count":e.pendingBySession[Ye.id]?.approvals??0,"question-count":e.pendingBySession[Ye.id]?.questions??0,unread:e.unreadBySession[Ye.id]??!1,"state-tag":o.stateTag,"data-session-id":Ye.id,class:Fe({"se-locate-flash":e.flashSessionId===Ye.id}),onRenameStateChange:Tt=>tt.value=Tt?Ye.id:null,onSelect:ze[0]||(ze[0]=Tt=>s("selectSession",Tt)),onRename:ze[1]||(ze[1]=(Tt,on)=>s("renameSession",Tt,on)),onGenerateTitle:ze[2]||(ze[2]=(Tt,on)=>s("generateSessionTitle",Tt,on)),onArchive:ze[3]||(ze[3]=Tt=>s("archiveSession",Tt)),onFork:ze[4]||(ze[4]=Tt=>s("forkSession",Tt)),onExport:ze[5]||(ze[5]=Tt=>s("exportSession",Tt)),onPin:ze[6]||(ze[6]=Tt=>s("pinSession",Tt))},null,8,["session","active","approval-count","question-count","unread","state-tag","data-session-id","class","onRenameStateChange"])],42,uge))),128))],544),ze[12]||(ze[12]=C("span",{class:"pinned-seam pinned-seam--top","aria-hidden":"true"},null,-1)),ze[13]||(ze[13]=C("span",{class:"pinned-seam pinned-seam--bottom","aria-hidden":"true"},null,-1)),f(be)?(v(),E("span",{key:0,class:Fe(["pinned-thumb",{visible:f(Q)}]),style:Kt({top:`${f(be).top}px`,height:`${f(be).height}px`}),"aria-hidden":"true",onPointerdown:ze[7]||(ze[7]=(...Ye)=>f(se)&&f(se)(...Ye)),onMouseenter:ze[8]||(ze[8]=(...Ye)=>f(le)&&f(le)(...Ye)),onMouseleave:ze[9]||(ze[9]=(...Ye)=>f(ge)&&f(ge)(...Ye))},null,38)):X("",!0)],34)),ne.value?(v(),E("div",{key:1,class:Fe(["pinned-resize",{dragging:f($)}]),style:Kt({cursor:f(W)}),role:"separator","aria-orientation":"horizontal","aria-label":f(i)("sidebar.resizePinnedAria"),"aria-valuenow":Math.round(pe.value),"aria-valuemin":H.value,"aria-valuemax":f(h3)(R.value,M.value,H.value),tabindex:"0",onPointerdown:q,onKeydown:ie},[...ze[14]||(ze[14]=[C("span",{class:"pinned-resize-bar","aria-hidden":"true"},null,-1)])],46,cge)):X("",!0)],34))}}),fge=kt(dge,[["__scopeId","data-v-0c30d45b"]]),hge={class:"ch"},pge={class:"ch-brand"},gge={class:"ch-tail"},mge={class:"search-input"},vge={key:0,class:"status-tabs"},yge={class:"side-section-label"},kge={class:"side-section-title"},bge={class:"side-section-actions"},Age={key:0,class:"empty"},Cge={key:1,class:"show-more-row"},wge=["disabled"],xge={class:"show-more-label"},Sge={key:0,class:"empty"},_ge={key:1,class:"empty"},Mge=["data-ws-id","onDragover","onDrop"],Ige=["onClick","onContextmenu"],Ege={class:"done-gh-name"},Tge={class:"done-gh-count"},Lge={class:"done-gh-act"},Nge={key:0,class:"done-sessions"},Fge={key:2,class:"empty"},Dge={key:3,class:"show-more-row"},Bge=["disabled"],$ge={class:"show-more-label"},Rge=["onClick","onContextmenu"],zge={class:"ws-dir-row"},Oge=["onKeydown"],Pge={key:1,class:"ws-dir-name"},jge={class:"ws-dir-act"},Hge={class:"ws-dir-sub"},Wge={key:0,class:"empty"},qge={class:"folder-drop-card"},Uge={class:"view-menu-label"},Kge={class:"view-menu-check"},Vge={class:"view-menu-check"},Zge={class:"view-menu-label"},Gge={class:"view-menu-check"},Qge={class:"view-menu-check"},U_="var(--color-accent)",Yge=!1,Jge=1e3,Xge=Xe({__name:"Sidebar",props:{activeWorkspace:{default:null},activeWorkspaceId:{default:null},sessions:{},groups:{},workspaceSortMode:{default:"manual"},pinnedSessions:{default:()=>[]},flatSessions:{default:()=>[]},flatHasMore:{type:Boolean,default:!1},flatLoadingMore:{type:Boolean,default:!1},doneSessions:{default:()=>[]},doneHasMore:{type:Boolean,default:!1},doneLoadingMore:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},activeId:{},attentionBySession:{default:()=>({})},pendingBySession:{default:()=>({})},unreadBySession:{default:()=>({})},colWidth:{default:220},collapsed:{type:Boolean,default:!1},dragging:{type:Boolean,default:!1}},emits:["select","create","createInWorkspace","selectWorkspace","addWorkspace","addWorkspacePaths","rename","generateTitle","archive","restore","fork","export","pin","dropPin","unpin","renameWorkspace","deleteWorkspace","reorderWorkspaces","setWorkspaceSortMode","loadMoreSessions","loadAllSessions","ensureFlatSessions","loadMoreFlatSessions","ensureDoneSessions","loadMoreDoneSessions","openSessionAdmin","openSettings","login","collapse"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),o=e,s=n,r=K(!1),l=d()?["⌘","K"]:["Ctrl","K"],a=d()?["⌃","⇧","O"]:["Ctrl","Shift","O"];function u(){s("loadAllSessions"),r.value=!0}function c(Ke){if(vae(Ke)){Ke.preventDefault(),u();return}!Ke.metaKey&&Ke.ctrlKey&&Ke.shiftKey&&Ke.key.toLowerCase()==="o"&&(Ke.preventDefault(),s("create"))}cn(()=>window.addEventListener("keydown",c)),Hn(()=>window.removeEventListener("keydown",c));function d(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const Ke=navigator.userAgentData;return Ke?.platform==="macOS"||Ke?.platform==="iOS"}const h=K(null),p=K(!1),g=K(!1),{thumb:m,thumbVisible:k,scrolling:w,update:y,markScrolling:b,onThumbPointerDown:A,onListMouseEnter:T,onListMouseLeave:S,onThumbMouseEnter:x,onThumbMouseLeave:_}=x$(h);function L(Ke=h.value){Ke&&(p.value=Ke.scrollTop>0,g.value=Ke.scrollTop+Ke.clientHeight{dt(()=>{L(),typeof ResizeObserver=="function"&&h.value&&(N=new ResizeObserver(()=>L()),N.observe(h.value))})}),s1(()=>L());const{fontScale:I}=c1();Pe(I,()=>void dt(()=>L())),Hn(()=>{N?.disconnect(),Yn&&clearTimeout(Yn),He&&clearTimeout(He)});const z=K(new Set(dce()));function H(Ke){return z.value.has(Ke)}function O(Ke){const Ue=new Set(z.value);Ue.has(Ke)?Ue.delete(Ke):Ue.add(Ke),z.value=Ue,v3(Ue)}function R(){const Ke=new Set(o.groups.map(Ue=>Ue.workspace.id));z.value=Ke,v3(Ke)}function j(){const Ke=new Set;z.value=Ke,v3(Ke)}const $=F(()=>o.groups.length>0&&o.groups.every(Ke=>z.value.has(Ke.workspace.id))),W=K(new Map);function P(Ke){return W.value.get(Ke)}function Z(Ke){const Ue=o.groups.find(rn=>rn.workspace.id===Ke);if(!Ue)return;const yt=(W.value.get(Ke)??Ue.initialCount)+j6,xt=new Map(W.value);xt.set(Ke,yt),W.value=xt,Ue.sessions.lengthrn.workspace.id),Ue,Ke,yt);s("reorderWorkspaces",xt)}const Ne=K(null);function te(Ke,Ue){Ne.value={id:Ke,workspaceId:Ue}}function be(){Ne.value=null}function Q(Ke){Ne.value=null,s("unpin",Ke)}const ue=K(hce());function Ae(Ke){ue.value!==Ke&&(ue.value=Ke,pce(Ke))}const se=K("open"),{sidebarTabs:re}=d1();Pe(re,Ke=>{!Ke&&se.value!=="open"&&(se.value="open")});const G=F(()=>BS([...o.pinnedSessions,...o.flatSessions].map(Ke=>({busy:Ke.busy,unread:o.unreadBySession[Ke.id]??!1,questionCount:o.pendingBySession[Ke.id]?.questions??0,approvalCount:o.pendingBySession[Ke.id]?.approvals??0,pendingInteraction:Ke.pendingInteraction,lastTurnReason:Ke.lastTurnReason})))),le=F(()=>BS(o.doneSessions.map(Ke=>({busy:Ke.busy,unread:o.unreadBySession[Ke.id]??!1,questionCount:o.pendingBySession[Ke.id]?.questions??0,approvalCount:o.pendingBySession[Ke.id]?.approvals??0,pendingInteraction:Ke.pendingInteraction,lastTurnReason:Ke.lastTurnReason})))),ge=F(()=>[{value:"open",label:i("sidebar.tabOpen"),swatch:G.value===null?void 0:U_},{value:"done",label:i("sidebar.tabDone"),swatch:le.value===null?void 0:U_},{value:"workspaces",label:i("sidebar.tabWorkspaces")}]);function ke(Ke){re.value&&(se.value=Ke,Ke==="done"&&s("ensureDoneSessions"))}const Ie=F(()=>Yre(o.groups,o.activeWorkspaceId,re.value)),Oe=F(()=>o.groups.map(Ke=>({workspace:Ke.workspace,sessions:o.doneSessions.filter(Ue=>Ue.workspaceId===Ke.workspace.id).map(Ue=>({...Ue,cwdLabel:void 0}))})).filter(Ke=>Ke.sessions.length>0));Pe(()=>o.initialized,Ke=>{Ke&&(s("ensureFlatSessions"),s("ensureDoneSessions"))},{immediate:!0});const we=K(!1),Be=K({}),tt=K(null);function ut(Ke){const Ue=Ke.target;Ue.closest(".view-menu")||Ue.closest(".side-section-view")||Ct()}async function _t(Ke){if(we.value){Ct();return}const Ue=Ke.currentTarget;we.value=!0,document.addEventListener("mousedown",ut),window.addEventListener("resize",Ct),await dt();const yt=tt.value?.el,xt=Ue.getBoundingClientRect(),rn=4,Zi=8,Gi=yt?.offsetHeight??0,oo=yt?.offsetWidth??0;let qi=xt.bottom+rn,vo=!1;qi+Gi>window.innerHeight-Zi&&(qi=Math.max(Zi,xt.top-Gi-rn),vo=!0);let so=xt.right-oo;sose.value==="open"&&ue.value==="flat"),Ye=K(!1);function Tt(Ke){!ze.value||Ne.value===null||(Ke.preventDefault(),Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="move"),Ye.value=!0)}function on(Ke){!ze.value||Ne.value===null||(Ke.preventDefault(),Ye.value=!1,Q(Ne.value.id))}function jt(Ke){Ke.currentTarget.contains(Ke.relatedTarget)||(Ye.value=!1)}function kn(Ke,Ue){Ue.target.closest(".gh-more, .gh-add")||O(Ke)}function bn(Ke){s("select",Ke)}function mn(Ke){s("select",Ke),qn(Ke)}const zn=K(null);let He=null;const st=F(()=>o.groups.map(Ke=>Ke.workspace));function et(Ke,Ue){const yt=getComputedStyle(Ke).getPropertyValue(Ue).trim(),xt=/^([\d.]+)(ms|s)$/.exec(yt);if(!xt)return 0;const rn=Number.parseFloat(xt[1]);return xt[2]==="s"?rn*1e3:rn}function Nt(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}function Lt(Ke,Ue){zn.value=Ke,He&&clearTimeout(He),He=setTimeout(()=>{zn.value=null,He=null},et(Ue,"--duration-flash"))}function qn(Ke){const Ue=o.groups.find(yt=>yt.sessions.some(xt=>xt.id===Ke));if(!Ue){_o.value?.expand(),dt(()=>{const xt=[..._o.value?.$el?.querySelectorAll("[data-session-id]")??[]].find(rn=>rn.dataset.sessionId===Ke);xt?.scrollIntoView({block:"nearest",behavior:Nt()}),xt&&Lt(Ke,xt)});return}se.value!=="open"&&ke("open"),ue.value!=="grouped"&&Ae("grouped"),H(Ue.workspace.id)&&O(Ue.workspace.id),dt(()=>{const yt=[...h.value?.querySelectorAll("[data-session-id]")??[]].find(xt=>xt.dataset.sessionId===Ke);yt?.scrollIntoView({block:"start",behavior:Nt()}),yt&&Lt(Ke,yt)})}const So=K(null);let Yn=null;function Ir(Ke){se.value!=="open"&&ke("open"),ue.value!=="grouped"&&Ae("grouped"),H(Ke)&&O(Ke),s("selectWorkspace",Ke),dt(()=>{const Ue=[...h.value?.querySelectorAll("[data-ws-id]")??[]].find(yt=>yt.dataset.wsId===Ke);Ue?.scrollIntoView({block:"start",behavior:Nt()}),Ue&&(So.value=Ke,Yn&&clearTimeout(Yn),Yn=setTimeout(()=>{So.value=null,Yn=null},et(Ue,"--duration-flash")))})}const _o=K(null);function It(){se.value!=="open"&&ke("open"),_o.value?_o.value.expand():r8(!1)}t({revealPinnedSection:It});function ms(Ke){It(),s("pin",Ke)}function Er(Ke){_o.value?.expand(),s("dropPin",Ke)}const go=K(0),mo=K(!1);function vs(){go.value=0,mo.value=!1}function _i(Ke){!Sm()||!d3(Ke)||(Ke.preventDefault(),Ke.stopPropagation(),go.value+=1,mo.value=!0)}function Mo(Ke){!Sm()||!d3(Ke)||(Ke.preventDefault(),Ke.stopPropagation(),Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="copy"))}function ys(Ke){!Sm()||!d3(Ke)||(go.value=Math.max(0,go.value-1),go.value===0&&(mo.value=!1))}function Tn(Ke){if(vs(),!Sm())return;const Ue=Gre(Ke);Ue.length!==0&&(Ke.preventDefault(),Ke.stopPropagation(),s("addWorkspacePaths",Ue))}const Un=K(null),Kn=K(""),Pi=K(""),Io=K(null);function Ki(){return Io}function Ti(Ke,Ue){Un.value=Ke,Pi.value=Ue,Kn.value=Ue,dt().then(()=>Io.value?.focus())}function Qs(){const Ke=Un.value,Ue=Kn.value.trim();Ke&&Ue&&Ue!==Pi.value&&s("renameWorkspace",Ke,Ue),Un.value=null}function Li(){Un.value=null}function an(Ke){Kn.value=Ke}const{handleCompositionStart:to,handleCompositionEnd:Jn,isComposingKeyEvent:Wo}=bl();function Mn(Ke){Wo(Ke)||Qs()}const Ni=K(!1),wi=K(null),$o=K({}),$s=K(null);function Vi(Ke){$s.value?.el&&!$s.value.el.contains(Ke.target)&&Rs()}function Cn(Ke,Ue){Ue.preventDefault(),Ue.stopPropagation(),wi.value=Ke,$o.value={top:`${Ue.clientY}px`,left:`${Ue.clientX}px`,transformOrigin:"top left","--menu-pop-shift":"-2px"},Ni.value=!0,document.addEventListener("mousedown",Vi,!0)}function Rs(){Ni.value=!1,document.removeEventListener("mousedown",Vi,!0),wi.value=null}function qo(){wi.value&&Xo(wi.value.root),Rs()}function ar(){wi.value&&Ti(wi.value.id,wi.value.name),Rs()}function ks(){const Ke=wi.value;Ke&&(Rs(),s("deleteWorkspace",Ke.id))}const yi=K(null),Vn=K(null),ji=K({}),Fi=K(null);function bs(Ke){const Ue=Ke.target;Ue.closest(".gh-more")||Ue.closest(".ws-menu")||Eo()}async function As(Ke,Ue){if(yi.value===Ke.id){Eo();return}const yt=Ue.currentTarget;Vn.value=Ke,yi.value=Ke.id,document.addEventListener("mousedown",bs),window.addEventListener("resize",Eo),await dt();const xt=Fi.value?.el,rn=yt.getBoundingClientRect(),Zi=4,Gi=8,oo=xt?.offsetHeight??0,qi=xt?.offsetWidth??0;let vo=rn.bottom+Zi,so=!1;vo+oo>window.innerHeight-Gi&&(vo=Math.max(Gi,rn.top-oo-Zi),so=!0);let Ro=rn.right-qi;Ro{document.removeEventListener("mousedown",Vi,!0),document.removeEventListener("mousedown",bs),document.removeEventListener("mousedown",ut),window.removeEventListener("resize",Eo),window.removeEventListener("resize",Ct)});const Nr=K(null);let Di;function Xn(){const Ke=Nr.value;Ke&&(Ke.classList.remove("blink-now"),Ke.getBoundingClientRect(),Ke.classList.add("blink-now"),clearTimeout(Di),Di=setTimeout(()=>Ke.classList.remove("blink-now"),300))}const Cs=ia(()=>Fo(()=>import("./DesignSystemView-TDJEKkA2.js"),__vite__mapDeps([0,1]))),Uo=K(!1);let On,Hi=!1;function Wi(Ke){Hi=!1,clearTimeout(On),Ke.currentTarget.setPointerCapture?.(Ke.pointerId),On=setTimeout(()=>{Hi=!0,Uo.value=!0},Jge)}function rs(Ke){clearTimeout(On);const Ue=Ke.currentTarget;Ue.hasPointerCapture?.(Ke.pointerId)&&Ue.releasePointerCapture(Ke.pointerId)}function jn(){if(Hi){Hi=!1;return}Xn()}return Hn(()=>{clearTimeout(On)}),(Ke,Ue)=>(v(),E("aside",{class:Fe(["side",{"macos-desktop":f(pc),collapsed:e.collapsed,"no-anim":e.dragging}]),style:Kt({width:e.collapsed?"0px":e.colWidth+"px"})},[C("div",{class:"col",style:Kt({width:e.colWidth+"px"}),onDragenter:_i,onDragover:Mo,onDragleave:ys,onDrop:Tn},[C("div",hge,[C("div",pge,[f(pc)?X("",!0):(v(),E(Ee,{key:0},[(v(),E("svg",{ref_key:"logoRef",ref:Nr,class:"ch-logo",viewBox:"0 0 32 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Kimi Code",onClick:jn,onPointerdown:Wi,onPointerup:rs,onPointercancel:rs},[...Ue[58]||(Ue[58]=[$c('',2)])],544)),Ue[59]||(Ue[59]=C("span",{class:"ch-name"},"Kimi Code",-1))],64))]),C("div",gge,[f(pc)?X("",!0):(v(),ce(f(Jt),{key:0,class:"ch-collapse",size:"sm",label:f(i)("sidebar.collapseSidebar"),tooltip:f(i)("sidebar.collapseSidebar"),onClick:Ue[0]||(Ue[0]=wt(yt=>s("collapse"),["stop"]))},{default:de(()=>[U(f(ve),{name:"panel-collapse"})]),_:1},8,["label","tooltip"]))])]),U(M$),C("div",{class:Fe(["sidebar-actions",{"sidebar-actions--has-workspace-action":Yge}])},[C("button",{class:"btn-new-chat",type:"button",onClick:Ue[1]||(Ue[1]=wt(yt=>s("create"),["stop"]))},[U(f(ve),{name:"chat-new"}),C("span",null,D(f(i)("sidebar.newChat")),1),U(f(ku),{keys:f(a)},null,8,["keys"])]),X("",!0),C("button",{class:"search",type:"button",onClick:u},[U(f(ve),{class:"search-icon",name:"search"}),C("span",mge,D(f(i)("sidebar.search")),1),U(f(ku),{keys:f(l)},null,8,["keys"])])],2),f(re)?(v(),E("div",vge,[U(f(Vs),{class:"status-seg",size:"sm","model-value":se.value,options:ge.value,"onUpdate:modelValue":ke},null,8,["model-value","options"])])):X("",!0),C("div",{class:Fe(["sessions-head",{"sessions-head--scrolled":p.value}])},[e.pinnedSessions.length>0&&se.value==="open"?(v(),ce(fge,{key:0,ref_key:"pinnedListRef",ref:_o,sessions:e.pinnedSessions,"active-id":e.activeId,"pending-by-session":e.pendingBySession,"unread-by-session":e.unreadBySession,"state-tag":"open","flash-session-id":zn.value,onSelectSession:bn,onRenameSession:Ue[3]||(Ue[3]=(yt,xt)=>s("rename",yt,xt)),onGenerateSessionTitle:Ue[4]||(Ue[4]=(yt,xt)=>s("generateTitle",yt,xt)),onArchiveSession:Ue[5]||(Ue[5]=yt=>s("archive",yt)),onForkSession:Ue[6]||(Ue[6]=yt=>s("fork",yt)),onExportSession:Ue[7]||(Ue[7]=yt=>s("export",yt)),onPinSession:ms,onDropPin:Er,onSessionDragStart:te,onSessionDragEnd:be},null,8,["sessions","active-id","pending-by-session","unread-by-session","flash-session-id"])):X("",!0),C("div",yge,[C("span",kge,D(se.value==="workspaces"?f(i)("sidebar.tabWorkspaces"):se.value==="done"?f(i)("sidebar.tabDone"):f(i)("sidebar.sessionsHeader")),1),C("div",bge,[se.value==="workspaces"?(v(),ce(f(gn),{key:0,text:f(i)("sidebar.newWorkspace")},{default:de(()=>[U(f(Jt),{class:"side-section-toggle",size:"sm",label:f(i)("sidebar.newWorkspace"),onClick:Ue[8]||(Ue[8]=wt(yt=>s("addWorkspace"),["stop"]))},{default:de(()=>[U(f(ve),{name:"folder-plus"})]),_:1},8,["label"])]),_:1},8,["text"])):X("",!0),se.value!=="workspaces"&&ue.value==="grouped"?(v(),ce(f(Jt),{key:1,class:"side-section-toggle",size:"sm",label:$.value?f(i)("sidebar.expandAll"):f(i)("sidebar.collapseAll"),tooltip:$.value?f(i)("sidebar.expandAll"):f(i)("sidebar.collapseAll"),onClick:Ue[9]||(Ue[9]=wt(yt=>$.value?j():R(),["stop"]))},{default:de(()=>[$.value?(v(),ce(f(ve),{key:0,name:"expand"})):(v(),ce(f(ve),{key:1,name:"collapse"}))]),_:1},8,["label","tooltip"])):X("",!0),se.value!=="workspaces"?(v(),ce(f(gn),{key:2,text:f(i)("sidebar.viewSwitcher")},{default:de(()=>[U(f(Jt),{class:"side-section-toggle side-section-view",size:"sm",label:f(i)("sidebar.viewSwitcher"),onClick:wt(_t,["stop"])},{default:de(()=>[U(f(ve),{name:"list-settings"})]),_:1},8,["label"])]),_:1},8,["text"])):X("",!0)])])],2),C("div",{ref_key:"sessionsEl",ref:h,class:Fe(["sessions",{scrolling:f(w),"pinned-drag-active":ze.value&&Ne.value!==null,"flat-pinned-drop-hover":Ye.value}]),onScroll:M,onDragover:Tt,onDrop:on,onDragleave:jt,onMouseenter:Ue[39]||(Ue[39]=(...yt)=>f(T)&&f(T)(...yt)),onMouseleave:Ue[40]||(Ue[40]=(...yt)=>f(S)&&f(S)(...yt))},[se.value==="open"?(v(),E(Ee,{key:0},[ue.value==="flat"?(v(),E(Ee,{key:0},[(v(!0),E(Ee,null,pt(e.flatSessions,yt=>(v(),ce(Pp,{key:yt.id,session:yt,active:yt.id===e.activeId,"approval-count":e.pendingBySession[yt.id]?.approvals??0,"question-count":e.pendingBySession[yt.id]?.questions??0,unread:e.unreadBySession[yt.id]??!1,"state-tag":"open",draggable:gt.value!==yt.id,onDragstart:xt=>Le(yt.id,xt),onRenameStateChange:xt=>gt.value=xt?yt.id:null,onSelect:bn,onRename:Ue[10]||(Ue[10]=(xt,rn)=>s("rename",xt,rn)),onGenerateTitle:Ue[11]||(Ue[11]=(xt,rn)=>s("generateTitle",xt,rn)),onArchive:Ue[12]||(Ue[12]=xt=>s("archive",xt)),onFork:Ue[13]||(Ue[13]=xt=>s("fork",xt)),onExport:Ue[14]||(Ue[14]=xt=>s("export",xt)),onPin:ms},null,8,["session","active","approval-count","question-count","unread","draggable","onDragstart","onRenameStateChange"]))),128)),e.flatSessions.length===0&&!e.flatHasMore&&e.pinnedSessions.length===0?(v(),E("div",Age,D(f(i)("sidebar.noSessions")),1)):X("",!0),e.flatHasMore?(v(),E("div",Cge,[C("button",{class:"show-more",disabled:e.flatLoadingMore,onClick:Ue[15]||(Ue[15]=wt(yt=>s("loadMoreFlatSessions"),["stop"]))},[C("span",xge,D(e.flatLoadingMore?f(i)("sidebar.loadingMore"):f(i)("sidebar.loadMore")),1),U(f(ve),{name:"chevron-down",size:"sm"})],8,wge)])):X("",!0)],64)):(v(),E(Ee,{key:1},[e.groups.length===0?(v(),E("div",Sge,D(f(i)("workspace.noWorkspace")),1)):Ie.value.length===0&&e.pinnedSessions.length===0?(v(),E("div",_ge,D(f(i)("sidebar.noOpenSessions")),1)):(v(!0),E(Ee,{key:2},pt(Ie.value,yt=>(v(),E("div",{key:yt.workspace.id,class:Fe(["ws-drop-target",{"drop-before":Y.value?.id===yt.workspace.id&&Y.value.position==="before","drop-after":Y.value?.id===yt.workspace.id&&Y.value.position==="after","ws-locate-flash":So.value===yt.workspace.id}]),"data-ws-id":yt.workspace.id,onDragover:xt=>ie(xt,yt.workspace.id),onDrop:xt=>pe(yt.workspace.id)},[U(rge,{group:yt,"active-workspace-id":e.activeWorkspaceId,"active-id":e.activeId,"renaming-id":Un.value,"rename-value":Kn.value,"rename-input-ref":Ki(),"pending-by-session":e.pendingBySession,"unread-by-session":e.unreadBySession,"ws-menu-open-id":yi.value,dragging:V.value===yt.workspace.id,sortable:e.workspaceSortMode==="manual","is-collapsed":H,"visible-limit":P,"flash-session-id":zn.value,"pinned-drag-session":Ne.value,"state-tag":"open",onGroupClick:kn,onGroupContextmenu:Cn,onToggleWsMenu:As,onCreateInWorkspace:Ue[16]||(Ue[16]=xt=>s("createInWorkspace",xt)),onSelectSession:bn,onRenameSession:Ue[17]||(Ue[17]=(xt,rn)=>s("rename",xt,rn)),onGenerateSessionTitle:Ue[18]||(Ue[18]=(xt,rn)=>s("generateTitle",xt,rn)),onArchiveSession:Ue[19]||(Ue[19]=xt=>s("archive",xt)),onForkSession:Ue[20]||(Ue[20]=xt=>s("fork",xt)),onExportSession:Ue[21]||(Ue[21]=xt=>s("export",xt)),onPinSession:ms,onDropPinnedSession:Q,onExpand:Z,onCollapse:ae,onConfirmRename:Qs,onCancelRename:Li,onUpdateRenameValue:an,onWsDragstart:oe,onWsDragend:q},null,8,["group","active-workspace-id","active-id","renaming-id","rename-value","rename-input-ref","pending-by-session","unread-by-session","ws-menu-open-id","dragging","sortable","flash-session-id","pinned-drag-session"])],42,Mge))),128))],64))],64)):se.value==="done"?(v(),E(Ee,{key:1},[ue.value==="flat"?(v(!0),E(Ee,{key:0},pt(e.doneSessions,yt=>(v(),ce(Pp,{key:yt.id,session:yt,active:yt.id===e.activeId,"approval-count":e.pendingBySession[yt.id]?.approvals??0,"question-count":e.pendingBySession[yt.id]?.questions??0,unread:e.unreadBySession[yt.id]??!1,"state-tag":"done",onSelect:bn,onRename:Ue[22]||(Ue[22]=(xt,rn)=>s("rename",xt,rn)),onGenerateTitle:Ue[23]||(Ue[23]=(xt,rn)=>s("generateTitle",xt,rn)),onRestore:Ue[24]||(Ue[24]=xt=>s("restore",xt)),onFork:Ue[25]||(Ue[25]=xt=>s("fork",xt)),onExport:Ue[26]||(Ue[26]=xt=>s("export",xt))},null,8,["session","active","approval-count","question-count","unread"]))),128)):(v(!0),E(Ee,{key:1},pt(Oe.value,yt=>(v(),E("div",{key:yt.workspace.id,class:"done-group"},[C("div",{class:"done-gh",onClick:xt=>O(yt.workspace.id),onContextmenu:xt=>Cn(yt.workspace,xt)},[H(yt.workspace.id)?(v(),ce(f(ve),{key:0,class:"done-gh-folder",name:"folder-closed"})):(v(),ce(f(ve),{key:1,class:"done-gh-folder",name:"folder"})),C("span",Ege,D(yt.workspace.name),1),C("span",Tge,D(yt.sessions.length),1),C("span",Lge,[U(f(Jt),{class:Fe(["gh-more",{open:yi.value===yt.workspace.id}]),size:"sm",label:f(i)("sidebar.options"),tooltip:f(i)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":yi.value===yt.workspace.id,onClick:wt(xt=>As(yt.workspace,xt),["stop"])},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded","onClick"])])],40,Ige),H(yt.workspace.id)?X("",!0):(v(),E("div",Nge,[(v(!0),E(Ee,null,pt(yt.sessions,xt=>(v(),ce(Pp,{key:xt.id,session:xt,active:xt.id===e.activeId,"approval-count":e.pendingBySession[xt.id]?.approvals??0,"question-count":e.pendingBySession[xt.id]?.questions??0,unread:e.unreadBySession[xt.id]??!1,"state-tag":"done",onSelect:bn,onRename:Ue[27]||(Ue[27]=(rn,Zi)=>s("rename",rn,Zi)),onGenerateTitle:Ue[28]||(Ue[28]=(rn,Zi)=>s("generateTitle",rn,Zi)),onRestore:Ue[29]||(Ue[29]=rn=>s("restore",rn)),onFork:Ue[30]||(Ue[30]=rn=>s("fork",rn)),onExport:Ue[31]||(Ue[31]=rn=>s("export",rn))},null,8,["session","active","approval-count","question-count","unread"]))),128))]))]))),128)),e.doneSessions.length===0&&!e.doneHasMore?(v(),E("div",Fge,D(f(i)("sidebar.noDoneSessions")),1)):X("",!0),e.doneHasMore?(v(),E("div",Dge,[C("button",{class:"show-more",disabled:e.doneLoadingMore,onClick:Ue[32]||(Ue[32]=wt(yt=>s("loadMoreDoneSessions"),["stop"]))},[C("span",$ge,D(e.doneLoadingMore?f(i)("sidebar.loadingMore"):f(i)("sidebar.loadMore")),1),U(f(ve),{name:"chevron-down",size:"sm"})],8,Bge)])):X("",!0)],64)):(v(),E(Ee,{key:2},[(v(!0),E(Ee,null,pt(e.groups,yt=>(v(),E("div",{key:yt.workspace.id,class:Fe(["ws-dir",{on:yt.workspace.id===e.activeWorkspaceId}]),onClick:xt=>s("createInWorkspace",yt.workspace.id),onContextmenu:xt=>Cn(yt.workspace,xt)},[C("div",zge,[U(f(ve),{class:"ws-dir-icon",name:"folder-closed"}),Un.value===yt.workspace.id?Wn((v(),E("input",{key:0,ref_for:!0,ref:xt=>Io.value=xt,"onUpdate:modelValue":Ue[33]||(Ue[33]=xt=>Kn.value=xt),class:"ws-dir-rename",type:"text",onKeydown:[Ho(wt(Mn,["stop"]),["enter"]),Ue[34]||(Ue[34]=Ho(wt(xt=>Li(),["stop"]),["esc"]))],onCompositionstart:Ue[35]||(Ue[35]=(...xt)=>f(to)&&f(to)(...xt)),onCompositionend:Ue[36]||(Ue[36]=(...xt)=>f(Jn)&&f(Jn)(...xt)),onBlur:Ue[37]||(Ue[37]=xt=>Li()),onClick:Ue[38]||(Ue[38]=wt(()=>{},["stop"]))},null,40,Oge)),[[Bs,Kn.value]]):(v(),E("span",Pge,D(yt.workspace.name),1)),C("span",jge,[Un.value!==yt.workspace.id?(v(),ce(f(Jt),{key:0,class:Fe(["gh-more",{open:yi.value===yt.workspace.id}]),size:"sm",label:f(i)("sidebar.options"),tooltip:f(i)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":yi.value===yt.workspace.id,onClick:wt(xt=>As(yt.workspace,xt),["stop"])},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded","onClick"])):X("",!0)])]),C("div",Hge,D(yt.workspace.root),1)],42,Rge))),128)),e.groups.length===0?(v(),E("div",Wge,D(f(i)("workspace.noWorkspace")),1)):X("",!0)],64))],34),f(m)?(v(),E("div",{key:1,class:Fe(["sessions-thumb",{visible:f(k)}]),style:Kt({top:`${f(m).top}px`,height:`${f(m).height}px`}),"aria-hidden":"true",onPointerdown:Ue[41]||(Ue[41]=(...yt)=>f(A)&&f(A)(...yt)),onMouseenter:Ue[42]||(Ue[42]=(...yt)=>f(x)&&f(x)(...yt)),onMouseleave:Ue[43]||(Ue[43]=(...yt)=>f(_)&&f(_)(...yt))},null,38)):X("",!0),C("div",{class:Fe(["side-footer",{"side-footer--shadowed":g.value}])},[U(y0e,{onLogin:Ue[44]||(Ue[44]=yt=>s("login")),onOpenSettings:Ue[45]||(Ue[45]=yt=>s("openSettings"))})],2),C("div",{class:Fe(["folder-drop-overlay",{show:mo.value}]),"aria-hidden":"true"},[C("div",qge,[U(f(ve),{name:"folder",size:"lg"}),C("span",null,D(f(i)("sidebar.dropToAddWorkspace")),1)])],2)],36),U(fo,{name:"menu-pop"},{default:de(()=>[Ni.value?(v(),ce(f(Zs),{key:0,ref_key:"ghMenuRef",ref:$s,class:"gh-menu",style:Kt($o.value),onClick:Ue[46]||(Ue[46]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{onClick:qo},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(f(i)("sidebar.copyPath")),1)]),_:1}),U(f(Ut),{class:"workspace-rename-item",onClick:ar},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{danger:"",onClick:ks},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeWorkspace")),1)]),_:1})]),_:1},8,["style"])):X("",!0)]),_:1}),U(fo,{name:"menu-pop"},{default:de(()=>[yi.value!==null&&Vn.value?(v(),ce(f(Zs),{key:0,ref_key:"wsMenuRef",ref:Fi,class:"ws-menu",style:Kt(ji.value),onClick:Ue[50]||(Ue[50]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{onClick:Ue[47]||(Ue[47]=yt=>Tr(Vn.value))},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(f(i)("sidebar.copyPath")),1)]),_:1}),U(f(Ut),{class:"workspace-rename-item",onClick:Ue[48]||(Ue[48]=yt=>Lr(Vn.value))},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{danger:"",onClick:Ue[49]||(Ue[49]=yt=>jl(Vn.value))},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeWorkspace")),1)]),_:1})]),_:1},8,["style"])):X("",!0)]),_:1}),U(fo,{name:"menu-pop"},{default:de(()=>[we.value?(v(),ce(f(Zs),{key:0,ref_key:"viewMenuRef",ref:tt,class:"view-menu",style:Kt(Be.value),onClick:Ue[55]||(Ue[55]=wt(()=>{},["stop"]))},{default:de(()=>[C("div",Uge,D(f(i)("sidebar.viewGroup")),1),U(f(Ut),{onClick:Ue[51]||(Ue[51]=yt=>$t("flat"))},{default:de(()=>[U(f(ve),{name:"list",size:"sm"}),$e(" "+D(f(i)("sidebar.viewFlat"))+" ",1),C("span",Kge,[ue.value==="flat"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),U(f(Ut),{onClick:Ue[52]||(Ue[52]=yt=>$t("grouped"))},{default:de(()=>[U(f(ve),{name:"tree-view",size:"sm"}),$e(" "+D(f(i)("sidebar.viewGrouped"))+" ",1),C("span",Vge,[ue.value==="grouped"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),ue.value==="grouped"?(v(),E(Ee,{key:0},[C("div",Zge,D(f(i)("sidebar.sortGroup")),1),U(f(Ut),{onClick:Ue[53]||(Ue[53]=yt=>Vt("manual"))},{default:de(()=>[U(f(ve),{name:"grip",size:"sm"}),$e(" "+D(f(i)("sidebar.sortManual"))+" ",1),C("span",Gge,[e.workspaceSortMode==="manual"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),U(f(Ut),{onClick:Ue[54]||(Ue[54]=yt=>Vt("recent"))},{default:de(()=>[U(f(ve),{name:"clock",size:"sm"}),$e(" "+D(f(i)("sidebar.sortRecent"))+" ",1),C("span",Qge,[e.workspaceSortMode==="recent"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1})],64)):X("",!0),f(re)?(v(),E(Ee,{key:1},[U(f(Ut),{separator:""}),U(f(Ut),{onClick:nn},{default:de(()=>[U(f(ve),{name:"session-admin",size:"sm"}),$e(" "+D(f(i)("sidebar.sessionAdmin")),1)]),_:1})],64)):X("",!0)]),_:1},8,["style"])):X("",!0)]),_:1}),r.value?(v(),ce(bde,{key:0,sessions:e.sessions,workspaces:st.value,"active-id":e.activeId,onSelect:mn,onSelectWorkspace:Ir,onClose:Ue[56]||(Ue[56]=yt=>r.value=!1)},null,8,["sessions","workspaces","active-id"])):X("",!0),(v(),ce(Ds,{to:"body"},[Uo.value?(v(),ce(f(Cs),{key:0,onClose:Ue[57]||(Ue[57]=yt=>Uo.value=!1)})):X("",!0)]))],6))}}),eme=kt(Xge,[["__scopeId","data-v-e9b3eef9"]]),tme=["aria-label"],nme=Xe({__name:"ResizeHandle",props:{storageKey:{},defaultWidth:{},min:{},max:{},reverse:{type:Boolean},ariaLabel:{},applyLive:{}},emits:["update:width","update:dragging"],setup(e,{emit:t}){const n=e,i=t,{t:o}=zt(),{width:s,dragging:r,cursor:l,onPointerDown:a}=w$({storageKey:n.storageKey,defaultWidth:n.defaultWidth,min:n.min,max:()=>n.max,reverse:n.reverse,applyLive:n.applyLive});return i("update:width",s.value),Pe(s,u=>i("update:width",u)),Pe(r,u=>i("update:dragging",u)),(u,c)=>(v(),E("div",{class:Fe(["rh",{dragging:f(r)}]),style:Kt({cursor:f(l)}),role:"separator","aria-orientation":"vertical","aria-label":e.ariaLabel??f(o)("layout.resizeHandleAria"),onPointerdown:c[0]||(c[0]=(...d)=>f(a)&&f(a)(...d))},[...c[1]||(c[1]=[C("span",{class:"rh-bar","aria-hidden":"true"},null,-1)])],46,tme))}}),K_=kt(nme,[["__scopeId","data-v-1c6dfdc5"]]),ime={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ome(e,t){return v(),E("svg",ime,[...t[0]||(t[0]=[C("path",{d:"M12.0684 2.03418C12.5654 2.03421 12.9687 2.43755 12.9688 2.93457V11.0996H21.0654C21.5625 11.0996 21.9658 11.503 21.9658 12C21.9658 12.497 21.5625 12.9004 21.0654 12.9004H12.9688V21.0654C12.9687 21.5624 12.5654 21.9658 12.0684 21.9658C11.5713 21.9658 11.168 21.5625 11.168 21.0654V12.9004H2.93457C2.43751 12.9004 2.03418 12.4971 2.03418 12C2.03418 11.5029 2.43751 11.0996 2.93457 11.0996H11.168V2.93457C11.168 2.43753 11.5713 2.03418 12.0684 2.03418Z",fill:"currentColor"},null,-1)])])}const sme=St({name:"kimi-add",render:ome}),rme={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function lme(e,t){return v(),E("svg",rme,[...t[0]||(t[0]=[C("path",{id:"p0",d:"M 0 -9.9 C -5.468 -9.9 -9.9 -5.468 -9.9 0 C -9.9 1.923 -9.351 3.719 -8.402 5.239 C -8.402 5.239 -9.483 7.821 -9.483 7.821 C -9.896 8.809 -9.171 9.9 -8.099 9.9 C -8.099 9.9 0 9.9 0 9.9 C 5.468 9.9 9.9 5.468 9.9 0 C 9.9 -5.468 5.468 -9.9 0 -9.9 Z M -8.1 0 C -8.1 -4.474 -4.474 -8.1 0 -8.1 C 4.473 -8.1 8.1 -4.474 8.1 0 C 8.1 4.473 4.473 8.1 -0.001 8.1 C -0.001 8.1 -7.648 8.1 -7.648 8.1 L -6.365 5.035 C -6.365 5.035 -6.648 4.629 -6.648 4.629 C -7.563 3.317 -8.1 1.723 -8.1 0 Z",transform:"matrix(1 0 0 1 12 12)",fill:"currentColor","fill-rule":"evenodd"},null,-1),C("path",{id:"p1",d:"M 3.6 0.5 L -2.6 0.5 M 0.5 -2.573 L 0.5 3.573",transform:"translate(11.5 11.5)",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"},null,-1)])])}const ame=St({name:"kimi-add-conversation",render:lme}),ume={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cme(e,t){return v(),E("svg",ume,[...t[0]||(t[0]=[C("path",{d:"M15.0996 12C15.5967 12 16 12.4033 16 12.9004C15.9998 13.3973 15.5965 13.7998 15.0996 13.7998H8.90039C8.40346 13.7998 8.00021 13.3973 8 12.9004C8 12.4033 8.40333 12 8.90039 12H15.0996Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3.2002C20.5464 3.2002 21.7998 4.4536 21.7998 6V7C21.7998 8.03565 21.2363 8.93754 20.4004 9.42188V17C20.4004 19.1539 18.6539 20.9004 16.5 20.9004H7.5C5.34609 20.9004 3.59961 19.1539 3.59961 17V9.42188C2.76374 8.93754 2.2002 8.03565 2.2002 7V6C2.2002 4.4536 3.4536 3.2002 5 3.2002H19ZM5.40039 17C5.40039 18.1598 6.3402 19.0996 7.5 19.0996H16.5C17.6598 19.0996 18.5996 18.1598 18.5996 17V9.7998H5.40039V17ZM4.89746 5.00488C4.39333 5.05621 4 5.48232 4 6V7L4.00488 7.10254C4.05278 7.57297 4.42703 7.94722 4.89746 7.99512L5 8H19C19.5523 8 20 7.55228 20 7V6C20 5.44772 19.5523 5 19 5H5L4.89746 5.00488Z",fill:"currentColor"},null,-1)])])}const dme=St({name:"kimi-archive",render:cme}),fme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hme(e,t){return v(),E("svg",fme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.386 21.6387C11.7378 21.988 12.3059 21.987 12.6565 21.6364L18.1949 16.098C18.5464 15.7465 18.5464 15.1766 18.1949 14.8252C17.8434 14.4737 17.2736 14.4737 16.9221 14.8252L12.9201 18.8272V3.00002C12.9201 2.50297 12.5171 2.10003 12.0201 2.10003C11.523 2.10003 11.1201 2.50297 11.1201 3.00002V18.8383L7.07554 14.8229C6.7228 14.4727 6.15295 14.4747 5.80275 14.8275C5.45255 15.1802 5.45461 15.7501 5.80735 16.1003L11.386 21.6387Z",fill:"currentColor"},null,-1)])])}const pme=St({name:"kimi-arrow-down",render:hme}),gme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mme(e,t){return v(),E("svg",gme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.16127 12.814C1.81197 12.4622 1.81299 11.8941 2.16357 11.5435L7.70203 6.00506C8.0535 5.65359 8.62335 5.65359 8.97482 6.00506C9.32629 6.35653 9.32629 6.92638 8.97482 7.27785L4.97276 11.2799H20.8C21.297 11.2799 21.7 11.6829 21.7 12.1799C21.7 12.677 21.297 13.0799 20.8 13.0799H4.96171L8.97712 17.1244C9.32732 17.4772 9.32526 18.047 8.97252 18.3972C8.61978 18.7474 8.04993 18.7454 7.69973 18.3926L2.16127 12.814Z",fill:"currentColor"},null,-1)])])}const vme=St({name:"kimi-arrow-left",render:mme}),yme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kme(e,t){return v(),E("svg",yme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.4387 12.814C21.788 12.4622 21.787 11.8941 21.4364 11.5436L15.8979 6.0051C15.5464 5.65363 14.9766 5.65363 14.6251 6.0051C14.2737 6.35657 14.2737 6.92642 14.6251 7.27789L18.6272 11.28H2.79998C2.30293 11.28 1.89998 11.6829 1.89998 12.18C1.89998 12.677 2.30293 13.08 2.79998 13.08H18.6382L14.6228 17.1245C14.2726 17.4772 14.2747 18.0471 14.6274 18.3973C14.9802 18.7475 15.55 18.7454 15.9002 18.3927L21.4387 12.814Z",fill:"currentColor"},null,-1)])])}const bme=St({name:"kimi-arrow-right",render:kme}),Ame={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cme(e,t){return v(),E("svg",Ame,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.386 2.36129C11.7378 2.01198 12.3059 2.013 12.6565 2.36358L18.1949 7.90204C18.5464 8.25351 18.5464 8.82336 18.1949 9.17483C17.8434 9.52631 17.2736 9.52631 16.9221 9.17483L12.9201 5.17277V21C12.9201 21.497 12.5171 21.9 12.0201 21.9C11.523 21.9 11.1201 21.497 11.1201 21V5.16172L7.07554 9.17713C6.7228 9.52733 6.15295 9.52527 5.80275 9.17253C5.45255 8.81979 5.45461 8.24995 5.80735 7.89975L11.386 2.36129Z",fill:"currentColor"},null,-1)])])}const wme=St({name:"kimi-arrow-up",render:Cme}),xme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sme(e,t){return v(),E("svg",xme,[...t[0]||(t[0]=[C("path",{d:"M19.3027 5.9053C19.6542 5.55397 20.2247 5.55388 20.5761 5.9053C20.9273 6.25675 20.9273 6.82734 20.5761 7.17874L9.65911 18.0948C9.30773 18.4461 8.73814 18.446 8.38665 18.0948L3.42376 13.1328C3.0726 12.7814 3.07263 12.2118 3.42376 11.8604C3.77524 11.509 4.34575 11.5089 4.6972 11.8604L9.02239 16.1856L19.3027 5.9053Z",fill:"currentColor"},null,-1)])])}const _me=St({name:"kimi-check",render:Sme}),Mme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ime(e,t){return v(),E("svg",Mme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3912 16.7134C11.743 17.0627 12.3111 17.0617 12.6617 16.7111L19.6364 9.73641C19.9878 9.38494 19.9878 8.81509 19.6364 8.46362C19.2849 8.11215 18.7151 8.11215 18.3636 8.46362L12.023 14.8042L5.63407 8.46132C5.28133 8.11112 4.71149 8.11318 4.36129 8.46592C4.01109 8.81866 4.01314 9.3885 4.36588 9.73871L11.3912 16.7134Z",fill:"currentColor"},null,-1)])])}const Eme=St({name:"kimi-chevron-down",render:Ime}),Tme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lme(e,t){return v(),E("svg",Tme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.1261 12.6088C16.4754 12.257 16.4743 11.6889 16.1238 11.3383L9.14904 4.36363C8.79757 4.01216 8.22772 4.01216 7.87625 4.36363C7.52477 4.7151 7.52477 5.28495 7.87625 5.63642L14.2169 11.977L7.87395 18.3659C7.52375 18.7187 7.52581 19.2885 7.87855 19.6387C8.23129 19.9889 8.80113 19.9869 9.15133 19.6341L16.1261 12.6088Z",fill:"currentColor"},null,-1)])])}const Nme=St({name:"kimi-chevron-right",render:Lme}),Fme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dme(e,t){return v(),E("svg",Fme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3912 8.46132C11.743 8.11202 12.3111 8.11304 12.6617 8.46362L19.6364 15.4383C19.9878 15.7898 19.9878 16.3597 19.6364 16.7111C19.2849 17.0626 18.7151 17.0626 18.3636 16.7111L12.023 10.3705L5.63407 16.7134C5.28133 17.0636 4.71149 17.0616 4.36129 16.7088C4.01109 16.3561 4.01314 15.7862 4.36588 15.436L11.3912 8.46132Z",fill:"currentColor"},null,-1)])])}const Bme=St({name:"kimi-chevron-up",render:Dme}),$me={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rme(e,t){return v(),E("svg",$me,[...t[0]||(t[0]=[C("circle",{cx:"12",cy:"12",r:"10.875",stroke:"currentColor","stroke-width":"2.25"},null,-1),C("path",{d:"M7.125 12.6L10.65 16.125L17.025 8.85",stroke:"currentColor","stroke-width":"2.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const zme=St({name:"kimi-circle-check",render:Rme}),Ome={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pme(e,t){return v(),E("svg",Ome,[...t[0]||(t[0]=[C("path",{d:"M11.8999 6.79965C12.397 6.79965 12.7997 7.20235 12.7997 7.69941V11.7266L14.7359 13.6629C15.0873 14.0143 15.0879 14.584 14.7366 14.9355C14.3852 15.287 13.8148 15.287 13.4633 14.9355L11.2632 12.7355C11.0947 12.5668 11.0002 12.338 11.0001 12.0995V7.69941C11.0001 7.20238 11.4029 6.7997 11.8999 6.79965Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.89893C17.4677 1.89893 21.9001 6.33147 21.9002 11.7991C21.9002 17.2669 17.4678 21.6993 12 21.6993C6.53228 21.6993 2.09985 17.2669 2.09985 11.7991C2.09998 6.33147 6.53236 1.89893 12 1.89893ZM20.1 11.7998C20.1 7.32616 16.4737 3.69984 12 3.69984C7.5264 3.69984 3.90008 7.32616 3.90008 11.7998C3.90032 16.2732 7.52655 19.8998 12 19.8998C16.4735 19.8998 20.0998 16.2732 20.1 11.7998Z",fill:"currentColor"},null,-1)])])}const jme=St({name:"kimi-clock",render:Pme}),Hme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wme(e,t){return v(),E("svg",Hme,[...t[0]||(t[0]=[C("path",{d:"M17.9542 4.77253C18.3056 4.42106 18.8761 4.42106 19.2276 4.77253C19.579 5.12401 19.579 5.69452 19.2276 6.04597L13.2735 12.0001L19.2276 17.9542C19.5791 18.3056 19.5791 18.8761 19.2276 19.2276C18.8761 19.5791 18.3056 19.5791 17.9542 19.2276L12.0001 13.2735L6.04595 19.2276C5.69451 19.5791 5.12399 19.579 4.77252 19.2276C4.42104 18.8761 4.42104 18.3056 4.77252 17.9542L10.7266 12.0001L4.77252 6.04597C4.42104 5.6945 4.42104 5.124 4.77252 4.77253C5.12399 4.42107 5.69448 4.42106 6.04595 4.77253L12.0001 10.7266L17.9542 4.77253Z",fill:"currentColor"},null,-1)])])}const qme=St({name:"kimi-close",render:Wme}),Ume={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kme(e,t){return v(),E("svg",Ume,[...t[0]||(t[0]=[C("path",{d:"M9.85815 11.957C10.9074 11.957 11.7583 12.8083 11.7585 13.8574V19.8574C11.7585 20.3545 11.3552 20.7578 10.8582 20.7578C10.3611 20.7578 9.95776 20.3545 9.95776 19.8574V13.8574C9.95755 13.8024 9.91325 13.7578 9.85815 13.7578H3.85815C3.3611 13.7578 2.95776 13.3545 2.95776 12.8574C2.95798 12.3605 3.36123 11.957 3.85815 11.957H9.85815Z",fill:"currentColor"},null,-1),C("path",{d:"M12.8582 2.95703C13.3551 2.95703 13.7583 3.36054 13.7585 3.85742V9.85742C13.7585 9.91265 13.8029 9.95703 13.8582 9.95703H19.8582C20.3551 9.95703 20.7583 10.3605 20.7585 10.8574C20.7585 11.3545 20.3552 11.7578 19.8582 11.7578H13.8582C12.8088 11.7578 11.9578 10.9068 11.9578 9.85742V3.85742C11.958 3.36054 12.3612 2.95703 12.8582 2.95703Z",fill:"currentColor"},null,-1)])])}const Vme=St({name:"kimi-collapse",render:Kme}),Zme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gme(e,t){return v(),E("svg",Zme,[...t[0]||(t[0]=[C("path",{d:"M11.9004 2.19995C17.3678 2.20016 21.7998 6.63285 21.7998 12.1003C21.7996 17.5677 17.3677 21.9995 11.9004 21.9998H3.80078C2.72946 21.9996 2.00334 20.9089 2.41699 19.9207L3.49805 17.3386C2.54871 15.8189 2.00007 14.0226 2 12.1003C2 6.63272 6.43277 2.19995 11.9004 2.19995ZM11.9004 3.99976C7.42688 3.99976 3.7998 7.62684 3.7998 12.1003C3.79989 13.8228 4.33669 15.4175 5.25195 16.7292L5.53516 17.1345L4.25195 20.2H11.8994C16.3727 20.1999 19.9998 16.5736 20 12.1003C20 7.62697 16.3737 3.99997 11.9004 3.99976ZM8.9541 10.8005C9.75473 10.8006 10.4041 11.4491 10.4043 12.2498C10.4043 13.0505 9.75482 13.6998 8.9541 13.7C8.15329 13.7 7.50391 13.0506 7.50391 12.2498C7.50406 11.4491 8.15339 10.8005 8.9541 10.8005ZM15.1533 10.8005C15.9539 10.8006 16.6034 11.4491 16.6035 12.2498C16.6035 13.0505 15.954 13.6998 15.1533 13.7C14.3525 13.7 13.7031 13.0506 13.7031 12.2498C13.7033 11.4491 14.3526 10.8005 15.1533 10.8005Z",fill:"currentColor"},null,-1)])])}const Qme=St({name:"kimi-comment",render:Gme}),Yme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jme(e,t){return v(),E("svg",Yme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 7.09961C19.1539 7.09961 20.9004 8.84609 20.9004 11V17C20.9004 19.1539 19.1539 20.9004 17 20.9004H11C8.84609 20.9004 7.09961 19.1539 7.09961 17V11C7.09961 8.84609 8.84609 7.09961 11 7.09961H17ZM11 8.90039C9.8402 8.90039 8.90039 9.8402 8.90039 11V17C8.90039 18.1598 9.8402 19.0996 11 19.0996H17C18.1598 19.0996 19.0996 18.1598 19.0996 17V11C19.0996 9.8402 18.1598 8.90039 17 8.90039H11Z",fill:"currentColor"},null,-1),C("path",{d:"M13 3.09961C14.4447 3.09961 15.705 3.88644 16.3779 5.0498C16.6265 5.47999 16.4789 6.03049 16.0488 6.2793C15.6186 6.52781 15.0681 6.38029 14.8193 5.9502C14.4548 5.32041 13.776 4.90039 13 4.90039H7C5.8402 4.90039 4.90039 5.8402 4.90039 7V13C4.90039 13.776 5.32041 14.4548 5.9502 14.8193C6.38029 15.0681 6.52781 15.6186 6.2793 16.0488C6.03049 16.4789 5.47999 16.6265 5.0498 16.3779C3.88644 15.705 3.09961 14.4447 3.09961 13V7C3.09961 4.84609 4.84609 3.09961 7 3.09961H13Z",fill:"currentColor"},null,-1)])])}const Xme=St({name:"kimi-copy",render:Jme}),eve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tve(e,t){return v(),E("svg",eve,[...t[0]||(t[0]=[C("path",{d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 10.2797 2.43414 8.66074 3.19922 7.24707C3.20172 7.24246 3.20453 7.23801 3.20703 7.2334C3.33385 6.99995 3.47181 6.77351 3.61621 6.55176C3.73214 6.37355 3.85079 6.19744 3.97754 6.02734C5.35905 4.17471 7.36856 2.81959 9.68945 2.27051C9.69952 2.26813 9.70965 2.26602 9.71973 2.26367C9.85224 2.23276 9.98563 2.2043 10.1201 2.17871C10.1542 2.17221 10.1884 2.16631 10.2227 2.16016C10.3466 2.13791 10.4712 2.11724 10.5967 2.09961C10.6301 2.09489 10.6637 2.0913 10.6973 2.08691C10.8216 2.07073 10.9465 2.05552 11.0723 2.04395C11.1125 2.04022 11.153 2.0384 11.1934 2.03516C11.4595 2.0139 11.7284 2 12 2ZM11.9941 3.7998C11.9968 3.86623 12 3.93292 12 4C12 6.76142 9.76142 9 7 9C6.14209 9 5.33517 8.78324 4.62988 8.40234C4.09862 9.48861 3.7998 10.7093 3.7998 12C3.7998 12.4438 3.83644 12.8791 3.9043 13.3037C4.52807 12.5673 5.45945 12.0996 6.5 12.0996C8.37777 12.0996 9.90039 13.6222 9.90039 15.5C9.90039 17.0702 8.83532 18.3903 7.38867 18.7812C8.70267 19.6765 10.2901 20.2002 12 20.2002C12.468 20.2002 12.9264 20.1583 13.373 20.083C13.1323 19.4342 13 18.7327 13 18C13 14.6863 15.6863 12 19 12C19.4098 12 19.8098 12.0416 20.1963 12.1201C20.1969 12.0801 20.2002 12.0401 20.2002 12C20.2002 7.47126 16.5287 3.7998 12 3.7998H11.9941ZM19 13.7998C16.6804 13.7998 14.7998 15.6804 14.7998 18C14.7998 18.5617 14.9112 19.0972 15.1113 19.5869C17.5225 18.597 19.3558 16.4929 19.9727 13.9141C19.6605 13.8399 19.3349 13.7998 19 13.7998ZM6.5 13.9004C5.61634 13.9004 4.90039 14.6163 4.90039 15.5C4.90039 16.3837 5.61634 17.0996 6.5 17.0996C7.38366 17.0996 8.09961 16.3837 8.09961 15.5C8.09961 14.6163 7.38366 13.9004 6.5 13.9004ZM15.5 6.09961C16.8255 6.09961 17.9004 7.17452 17.9004 8.5C17.9004 9.82548 16.8255 10.9004 15.5 10.9004C14.1745 10.9004 13.0996 9.82548 13.0996 8.5C13.0996 7.17452 14.1745 6.09961 15.5 6.09961ZM15.5 7.90039C15.1686 7.90039 14.9004 8.16863 14.9004 8.5C14.9004 8.83137 15.1686 9.09961 15.5 9.09961C15.8314 9.09961 16.0996 8.83137 16.0996 8.5C16.0996 8.16863 15.8314 7.90039 15.5 7.90039ZM10.1992 4C8.35326 4.41375 6.74333 5.44923 5.59961 6.87598C6.02235 7.08306 6.49716 7.2002 7 7.2002C8.76731 7.2002 10.1992 5.76731 10.1992 4Z",fill:"currentColor"},null,-1)])])}const nve=St({name:"kimi-dark-mode",render:tve}),ive={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ove(e,t){return v(),E("svg",ive,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.90002C12.4971 2.90002 12.9 3.30297 12.9 3.80002V12.2939L15.8081 9.38585C16.1595 9.03438 16.7294 9.03438 17.0808 9.38585C17.4323 9.73732 17.4323 10.3072 17.0808 10.6586L12.6364 15.1031C12.4676 15.2719 12.2387 15.3667 12 15.3667C11.7613 15.3667 11.5324 15.2719 11.3636 15.1031L6.91917 10.6586C6.5677 10.3072 6.5677 9.73732 6.91917 9.38585C7.27064 9.03438 7.84049 9.03438 8.19196 9.38585L11.1 12.2939V3.80002C11.1 3.30297 11.503 2.90002 12 2.90002ZM4.00001 13.5874C4.49706 13.5874 4.90001 13.9903 4.90001 14.4874V18.043C4.90001 18.2758 4.99249 18.499 5.1571 18.6636C5.32172 18.8282 5.54498 18.9207 5.77778 18.9207H18.2222C18.455 18.9207 18.6783 18.8283 18.8429 18.6636C19.0075 18.499 19.1 18.2758 19.1 18.043V14.4874C19.1 13.9903 19.5029 13.5874 20 13.5874C20.4971 13.5874 20.9 13.9903 20.9 14.4874V18.043C20.9 18.7531 20.6179 19.4342 20.1157 19.9364C19.6135 20.4386 18.9324 20.7207 18.2222 20.7207H5.77778C5.06759 20.7207 4.38649 20.4386 3.88431 19.9364C3.38213 19.4342 3.10001 18.7531 3.10001 18.043V14.4874C3.10001 13.9903 3.50295 13.5874 4.00001 13.5874Z",fill:"currentColor"},null,-1)])])}const sve=St({name:"kimi-download",render:ove}),rve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lve(e,t){return v(),E("svg",rve,[...t[0]||(t[0]=[C("path",{d:"M18.0179 3.09998C18.3963 3.10003 18.7709 3.17491 19.1205 3.31971C19.4701 3.46454 19.7884 3.67614 20.056 3.94373C20.3237 4.21144 20.5362 4.52965 20.681 4.87928C20.8258 5.22887 20.8997 5.60423 20.8997 5.9828C20.8997 6.36118 20.8257 6.73591 20.681 7.08533C20.5362 7.43497 20.3237 7.75317 20.056 8.02088L17.639 10.4379L9.15756 18.9183C8.5296 19.5463 7.74274 19.992 6.8812 20.2074L4.21811 20.8734C3.91148 20.95 3.5871 20.8596 3.36362 20.6361C3.14017 20.4126 3.05063 20.0883 3.12729 19.7816L3.79233 17.1185C4.00771 16.257 4.45344 15.4701 5.08139 14.8422L15.9798 3.94373C16.5203 3.40346 17.2536 3.09998 18.0179 3.09998ZM19.0003 19.1C19.4972 19.1002 19.8997 19.5034 19.8997 20.0004C19.8995 20.4971 19.4971 20.8996 19.0003 20.8998H12.0003C11.5034 20.8998 11.1001 20.4973 11.0999 20.0004C11.0999 19.5033 11.5033 19.1 12.0003 19.1H19.0003ZM18.0179 4.89979C17.7309 4.89979 17.4553 5.01417 17.2523 5.21717L6.35385 16.1146C5.95661 16.5119 5.67469 17.01 5.53842 17.5551L5.23666 18.7631L6.44467 18.4613C6.98971 18.3251 7.48782 18.0431 7.8851 17.6459L18.7826 6.74744C18.883 6.64702 18.9635 6.52821 19.0179 6.39686C19.0723 6.26558 19.0999 6.1247 19.0999 5.9828C19.0999 5.84075 19.0723 5.69916 19.0179 5.56776C18.9635 5.43645 18.883 5.31757 18.7826 5.21717C18.6821 5.11678 18.5631 5.03716 18.432 4.9828C18.3008 4.92845 18.16 4.89983 18.0179 4.89979Z",fill:"currentColor"},null,-1)])])}const ave=St({name:"kimi-edit",render:lve}),uve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cve(e,t){return v(),E("svg",uve,[...t[0]||(t[0]=[C("path",{d:"M5 11.0996C5.49693 11.0996 5.90018 11.5031 5.90039 12V18C5.90039 18.0552 5.94477 18.0996 6 18.0996H12C12.4969 18.0996 12.9002 18.5031 12.9004 19C12.9004 19.4971 12.4971 19.9004 12 19.9004H6C4.95066 19.9004 4.09961 19.0493 4.09961 18V12C4.09982 11.5031 4.50307 11.0996 5 11.0996ZM18 4.09961C19.0492 4.09961 19.9002 4.95084 19.9004 6V12C19.9004 12.4971 19.4971 12.9004 19 12.9004C18.5029 12.9004 18.0996 12.4971 18.0996 12V6C18.0994 5.94495 18.0551 5.90039 18 5.90039H12C11.5029 5.90039 11.0996 5.49706 11.0996 5C11.0998 4.50312 11.5031 4.09961 12 4.09961H18Z",fill:"currentColor"},null,-1)])])}const dve=St({name:"kimi-expand",render:cve}),fve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hve(e,t){return v(),E("svg",fve,[...t[0]||(t[0]=[C("g",null,[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1723 2.1001C13.9413 2.10018 14.6793 2.40592 15.2231 2.94971L19.0512 6.77783C19.595 7.32162 19.9007 8.0596 19.9008 8.82861V18.0005C19.9008 20.1544 18.1543 21.9009 16.0004 21.9009H8.0004C5.84649 21.9009 4.10001 20.1544 4.10001 18.0005V6.00049C4.10001 3.84658 5.84649 2.1001 8.0004 2.1001H13.1723ZM8.0004 3.90088C6.8406 3.90088 5.90079 4.84069 5.90079 6.00049V18.0005C5.90079 19.1603 6.8406 20.1001 8.0004 20.1001H16.0004C17.1602 20.1001 18.1 19.1603 18.1 18.0005V9.90088H15.0004C13.3988 9.90088 12.1 8.60211 12.1 7.00049V3.90088H8.0004ZM13.9008 7.00049C13.9008 7.608 14.3929 8.1001 15.0004 8.1001H17.8217C17.8072 8.08375 17.7933 8.06681 17.7777 8.05127L13.9496 4.22314C13.9339 4.20745 13.9173 4.19286 13.9008 4.17822V7.00049Z",fill:"currentColor"})],-1)])])}const V_=St({name:"kimi-file",render:hve}),pve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gve(e,t){return v(),E("svg",pve,[...t[0]||(t[0]=[C("path",{d:"M15.4795 15.4971C15.9765 15.4971 16.3799 15.9004 16.3799 16.3975C16.3799 16.8945 15.9765 17.2978 15.4795 17.2979H8.52051C8.02345 17.2979 7.62012 16.8945 7.62012 16.3975C7.62012 15.9004 8.02345 15.4971 8.52051 15.4971H15.4795Z",fill:"currentColor"},null,-1),C("path",{d:"M12.3359 11.0996C12.8329 11.0997 13.2354 11.503 13.2354 12C13.2354 12.497 12.8329 12.9003 12.3359 12.9004H8.52051C8.02345 12.9004 7.62012 12.4971 7.62012 12C7.62012 11.5029 8.02345 11.0996 8.52051 11.0996H12.3359Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1719 2.09961C13.9408 2.09969 14.6789 2.40555 15.2227 2.94922L19.0508 6.77734C19.5946 7.32113 19.9003 8.05911 19.9004 8.82812V18C19.9004 20.1539 18.1539 21.9004 16 21.9004H8C5.84626 21.9002 4.09961 20.1538 4.09961 18V6C4.09961 3.84621 5.84626 2.09981 8 2.09961H13.1719ZM8 3.90039C6.84037 3.90059 5.90039 4.84032 5.90039 6V18C5.90039 19.1597 6.84037 20.0994 8 20.0996H16C17.1598 20.0996 18.0996 19.1598 18.0996 18V9.90039H15C13.3985 9.90019 12.0996 8.6015 12.0996 7V3.90039H8ZM13.9004 7C13.9004 7.60739 14.3927 8.09941 15 8.09961H17.8213C17.8068 8.08333 17.7928 8.06626 17.7773 8.05078L13.9492 4.22266C13.9335 4.20696 13.9169 4.19237 13.9004 4.17773V7Z",fill:"currentColor"},null,-1)])])}const mve=St({name:"kimi-file-text",render:gve}),vve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yve(e,t){return v(),E("svg",vve,[...t[0]||(t[0]=[C("path",{d:"M9.2373 3.7002C10.4169 3.7002 11.5297 4.24779 12.249 5.18262L12.4424 5.43359H18C20.0987 5.43359 21.7998 7.13472 21.7998 9.2334V16.5C21.7998 18.5987 20.0987 20.2998 18 20.2998H6C3.90132 20.2998 2.2002 18.5987 2.2002 16.5V7.5C2.2002 5.40132 3.90132 3.7002 6 3.7002H9.2373ZM6 5.5C4.89543 5.5 4 6.39543 4 7.5V16.5C4 17.6046 4.89543 18.5 6 18.5H18C19.0357 18.5 19.887 17.7128 19.9893 16.7041L20 16.5V9.2334C20 8.19775 19.2128 7.34641 18.2041 7.24414L18 7.2334H12.0479L11.9326 7.22656C11.666 7.19561 11.4205 7.05812 11.2549 6.84277L10.8223 6.28027C10.4437 5.78834 9.85808 5.5 9.2373 5.5H6ZM16 9.59961C16.4971 9.59961 16.9004 10.0029 16.9004 10.5C16.9004 10.9971 16.4971 11.4004 16 11.4004H8C7.50294 11.4004 7.09961 10.9971 7.09961 10.5C7.09961 10.0029 7.50294 9.59961 8 9.59961H16Z",fill:"currentColor"},null,-1)])])}const kve=St({name:"kimi-folder",render:yve}),bve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ave(e,t){return v(),E("svg",bve,[...t[0]||(t[0]=[C("g",null,[C("path",{d:"M18.3623 9.99976L18.209 8.48999C18.2031 8.43161 18.2004 8.37289 18.2002 8.31421C18.1988 8.31196 18.1956 8.30842 18.1904 8.30347C18.1718 8.28559 18.1302 8.26245 18.0713 8.26245H11C10.261 8.26245 9.59753 7.81016 9.32617 7.1228L8.9082 6.06421C8.88101 5.9953 8.85737 5.92501 8.83887 5.85327C8.83778 5.85099 8.833 5.84268 8.81836 5.83179C8.79454 5.81475 8.7549 5.79939 8.70605 5.80054H3.92871C3.86986 5.80054 3.82825 5.82368 3.80957 5.84155C3.80816 5.8429 3.80675 5.84428 3.80566 5.84546L4.47559 14.0955L3.62109 17.5154L5.12109 11.5154C5.34367 10.6251 6.1438 9.99977 7.06152 9.99976H18.3623ZM7.06152 11.7996C6.96976 11.7996 6.88944 11.8629 6.86719 11.9519L5.36719 17.9519C5.33598 18.078 5.43158 18.1999 5.56152 18.2H19.4385C19.5302 18.1999 19.6106 18.1376 19.6328 18.0486L21.1328 12.0486C21.1644 11.9224 21.0686 11.7996 20.9385 11.7996H7.06152ZM20.9385 9.99976C22.2396 9.99977 23.1945 11.2228 22.8789 12.4851L21.3789 18.4851C21.1563 19.3754 20.3562 19.9997 19.4385 19.9998H4.92871C4.41722 19.9998 3.92613 19.8059 3.56445 19.4597C3.20281 19.1135 3.00004 18.6436 3 18.1541L2 5.84644C2.00006 5.35711 2.20311 4.88786 2.56445 4.54175C2.92613 4.19554 3.41722 4.00073 3.92871 4.00073H8.66406C9.10133 3.99051 9.5296 4.1225 9.87793 4.37573C10.2285 4.63118 10.4767 4.99457 10.582 5.40405L11 6.46167H18.0713C18.5828 6.46167 19.0739 6.65648 19.4355 7.00269C19.7971 7.34888 20 7.81883 20 8.30835L20.1719 9.99976H20.9385Z",fill:"currentColor"})],-1)])])}const Cve=St({name:"kimi-folder-open",render:Ave}),wve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xve(e,t){return v(),E("svg",wve,[...t[0]||(t[0]=[C("path",{d:"M9.5 3Q10.8 8.2 16 9.5Q10.8 10.8 9.5 16Q8.2 10.8 3 9.5Q8.2 8.2 9.5 3Z",fill:"currentColor"},null,-1),C("path",{d:"M17.25 13.5Q18 16.5 21 17.25Q18 18 17.25 21Q16.5 18 13.5 17.25Q16.5 16.5 17.25 13.5Z",fill:"currentColor"},null,-1)])])}const Sve=St({name:"kimi-gen-title",render:xve}),_ve={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Mve(e,t){return v(),E("svg",_ve,[...t[0]||(t[0]=[C("path",{id:"af-p0",d:"M -2.619 -8.3 C -1.815 -8.3 -1.048 -7.97 -0.499 -7.39 C -0.499 -7.39 0.141 -6.712 0.141 -6.712 C 0.141 -6.712 5.75 -6.712 5.75 -6.712 C 7.904 -6.712 9.65 -4.986 9.65 -2.858 C 9.65 -2.858 9.65 -1.71 9.65 -1.71 C 9.65 -1.219 9.247 -0.821 8.75 -0.821 C 8.253 -0.821 7.85 -1.219 7.85 -1.71 C 7.85 -1.71 7.85 -2.858 7.85 -2.858 C 7.849 -4.004 6.91 -4.934 5.75 -4.934 C 5.75 -4.934 -0.207 -4.934 -0.207 -4.934 C -0.484 -4.934 -0.749 -5.047 -0.938 -5.247 C -0.938 -5.247 -1.815 -6.177 -1.815 -6.177 C -2.023 -6.397 -2.315 -6.521 -2.619 -6.521 C -2.619 -6.521 -6.25 -6.521 -6.25 -6.521 C -7.41 -6.521 -8.35 -5.592 -8.35 -4.446 C -8.35 -4.446 -8.35 4.446 -8.35 4.446 C -8.35 5.592 -7.41 6.521 -6.25 6.521 C -6.25 6.521 1.25 6.521 1.25 6.521 C 1.747 6.521 2.15 6.919 2.15 7.41 C 2.15 7.901 1.747 8.3 1.25 8.3 C 1.25 8.3 -6.25 8.3 -6.25 8.3 C -8.404 8.3 -10.15 6.574 -10.15 4.446 C -10.15 4.446 -10.15 -4.446 -10.15 -4.446 C -10.15 -6.574 -8.404 -8.3 -6.25 -8.3 C -6.25 -8.3 -2.619 -8.3 -2.619 -8.3 Z M 3.75 -2.5 C 4.247 -2.5 4.65 -2.097 4.65 -1.6 C 4.65 -1.103 4.247 -0.699 3.75 -0.699 C 3.75 -0.699 -4.25 -0.699 -4.25 -0.699 C -4.747 -0.699 -5.15 -1.103 -5.15 -1.6 C -5.15 -2.097 -4.747 -2.5 -4.25 -2.5 C -4.25 -2.5 3.75 -2.5 3.75 -2.5 Z",transform:"matrix(1 0 0 1 11.75 12)",fill:"currentColor"},null,-1),C("g",{id:"af-p1"},[C("path",{d:"M 2.635 0 L -2.635 0 M 0 -2.635 L 0 2.635",transform:"matrix(1 0 0 1 18.4 16.3)",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"})],-1)])])}const Ive=St({name:"kimi-folder-plus",render:Mve}),Eve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tve(e,t){return v(),E("svg",Eve,[...t[0]||(t[0]=[C("path",{d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3ZM12 19.2002C15.9764 19.2002 19.2002 15.9764 19.2002 12C19.2002 8.02355 15.9764 4.7998 12 4.7998V19.2002Z",fill:"currentColor"},null,-1)])])}const Lve=St({name:"kimi-follow-system",render:Tve}),Nve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fve(e,t){return v(),E("svg",Nve,[...t[0]||(t[0]=[C("path",{d:"M17 2C19.2091 2 21 3.79086 21 6V15.7646C21 17.2361 20.192 18.5884 18.8965 19.2861L13.8965 21.9785C12.7126 22.616 11.2874 22.616 10.1035 21.9785L5.10352 19.2861C3.80802 18.5884 3 17.2361 3 15.7646V6C3 3.79086 4.79086 2 7 2H17ZM7 3.7998C5.78498 3.7998 4.79981 4.78497 4.7998 6V15.7646C4.7998 16.574 5.24443 17.3184 5.95703 17.7021L10.957 20.3936C11.6082 20.7442 12.3918 20.7442 13.043 20.3936L18.043 17.7021C18.7556 17.3184 19.2002 16.574 19.2002 15.7646V6C19.2002 4.78497 18.215 3.7998 17 3.7998H7ZM12 15.6992C12.4968 15.6992 12.8994 16.1028 12.8994 16.5996C12.8994 17.0964 12.4968 17.5 12 17.5C11.5024 17.5 11.0996 17.0964 11.0996 16.5996C11.0996 16.1028 11.5024 15.6992 12 15.6992ZM12 6.49902C12.4969 6.49922 12.8994 6.86908 12.8994 7.3252V13.6729C12.8994 14.129 12.4969 14.4988 12 14.499C11.5029 14.499 11.0996 14.1291 11.0996 13.6729V7.3252C11.0996 6.86896 11.5029 6.49902 12 6.49902Z",fill:"currentColor"},null,-1)])])}const Dve=St({name:"kimi-full-access",render:Fve}),Bve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $ve(e,t){return v(),E("svg",Bve,[...t[0]||(t[0]=[C("path",{d:"M12.5092 2.11279C17.7402 2.37781 21.8998 6.70364 21.8998 12.0005C21.8996 17.4153 17.5524 21.8108 12.1576 21.895C12.1056 21.898 12.0532 21.8999 12.0004 21.8999C11.948 21.8999 11.8954 21.8968 11.8432 21.896L11.8422 21.895C6.44751 21.8107 2.10022 17.4152 2.10001 12.0005C2.10001 6.53287 6.53278 2.1001 12.0004 2.1001L12.5092 2.11279ZM8.92715 13.0005C9.02896 14.9787 9.42581 16.721 9.99356 17.9985C10.3249 18.7441 10.6971 19.292 11.0639 19.6411C11.4259 19.9855 11.741 20.1001 12.0004 20.1001C12.2598 20.1 12.5749 19.9856 12.9369 19.6411C13.3037 19.292 13.6749 18.7441 14.0063 17.9985C14.574 16.721 14.9718 14.9788 15.0736 13.0005H8.92715ZM3.96329 13.0005C4.31462 15.8522 6.14714 18.2427 8.66837 19.3823C8.55544 19.1733 8.44916 18.9552 8.34903 18.73C7.66574 17.1926 7.22657 15.1926 7.12344 13.0005H3.96329ZM16.8764 13.0005C16.7732 15.1926 16.3341 17.1926 15.6508 18.73C15.5506 18.9554 15.4435 19.1732 15.3305 19.3823C17.8522 18.2429 19.6851 15.8525 20.0365 13.0005H16.8764ZM8.66934 4.6167C6.08869 5.78266 4.22826 8.25964 3.93985 11.1997H7.11661C7.20176 8.92954 7.64512 6.85497 8.34903 5.271C8.4494 5.04516 8.5561 4.82619 8.66934 4.6167ZM12.0004 3.8999C11.7411 3.8999 11.4259 4.01454 11.0639 4.35889C10.6971 4.70797 10.3249 5.25587 9.99356 6.00146C9.40671 7.32188 9.00186 9.13885 8.91739 11.1997H15.0834C14.9989 9.13884 14.5931 7.32189 14.0063 6.00146C13.6749 5.2559 13.3037 4.70796 12.9369 4.35889C12.5749 4.0144 12.2598 3.90002 12.0004 3.8999ZM15.3295 4.61572C15.443 4.82559 15.5502 5.04471 15.6508 5.271C16.3547 6.85498 16.799 8.92949 16.8842 11.1997H20.06C19.7715 8.25914 17.9108 5.78143 15.3295 4.61572Z",fill:"currentColor"},null,-1)])])}const Rve=St({name:"kimi-globe",render:$ve}),zve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ove(e,t){return v(),E("svg",zve,[...t[0]||(t[0]=[C("path",{d:"M8 17C8.82834 17 9.5 17.6717 9.5 18.5C9.5 19.3283 8.82834 20 8 20C7.17166 20 6.5 19.3283 6.5 18.5C6.5 17.6717 7.17166 17 8 17ZM16 17C16.8283 17 17.5 17.6717 17.5 18.5C17.5 19.3283 16.8283 20 16 20C15.1717 20 14.5 19.3283 14.5 18.5C14.5 17.6717 15.1717 17 16 17ZM8 10.5C8.82834 10.5 9.5 11.1717 9.5 12C9.5 12.8283 8.82834 13.5 8 13.5C7.17166 13.5 6.5 12.8283 6.5 12C6.5 11.1717 7.17166 10.5 8 10.5ZM16 10.5C16.8283 10.5 17.5 11.1717 17.5 12C17.5 12.8283 16.8283 13.5 16 13.5C15.1717 13.5 14.5 12.8283 14.5 12C14.5 11.1717 15.1717 10.5 16 10.5ZM8 4C8.82834 4 9.5 4.67166 9.5 5.5C9.5 6.32834 8.82834 7 8 7C7.17166 7 6.5 6.32834 6.5 5.5C6.5 4.67166 7.17166 4 8 4ZM16 4C16.8283 4 17.5 4.67166 17.5 5.5C17.5 6.32834 16.8283 7 16 7C15.1717 7 14.5 6.32834 14.5 5.5C14.5 4.67166 15.1717 4 16 4Z",fill:"currentColor"},null,-1)])])}const Pve=St({name:"kimi-grip",render:Ove}),jve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hve(e,t){return v(),E("svg",jve,[...t[0]||(t[0]=[C("path",{d:"M7.22264 6.10352C7.22264 5.5078 7.48259 4.95449 7.91405 4.56055C8.34271 4.16918 8.90831 3.96198 9.48241 3.96191C9.64155 3.96191 9.80001 3.97936 9.95507 4.01074C10.0127 3.5042 10.2586 3.04178 10.6338 2.69922C11.0625 2.30778 11.6279 2.09961 12.2021 2.09961C12.7763 2.09966 13.3418 2.30783 13.7705 2.69922C13.9947 2.90401 14.1709 3.15244 14.29 3.42676C14.4947 3.37044 14.7071 3.34182 14.9209 3.3418C15.4951 3.3418 16.0605 3.549 16.4892 3.94043C16.8644 4.28293 17.1093 4.74548 17.167 5.25195C17.3223 5.22045 17.4812 5.20312 17.6406 5.20312C18.2147 5.20318 18.7803 5.41135 19.209 5.80273C19.6402 6.19663 19.9004 6.74922 19.9004 7.34473V14.6543C19.9004 17.413 19.2914 19.0434 18.0137 20.21C16.82 21.2998 15.2175 21.9004 13.5615 21.9004C11.7538 21.9004 10.2315 21.5696 8.95702 20.8535C7.67664 20.1341 6.71683 19.0652 5.97362 17.708L3.3496 12.916C3.18848 12.6213 3.10112 12.2914 3.0996 11.9531C3.09812 11.6147 3.18309 11.2835 3.34179 10.9873C3.5001 10.692 3.72639 10.4416 3.99706 10.251C4.26771 10.0604 4.57776 9.93235 4.90136 9.87305C5.56617 9.75102 6.25934 9.84517 6.86425 10.1445C6.9942 10.2088 7.11461 10.2788 7.22264 10.3477V6.10352ZM9.02343 12.7969C9.02336 13.1912 8.76624 13.5395 8.38964 13.6562C8.0129 13.773 7.60387 13.6309 7.38085 13.3057L6.53514 12.0723C6.51218 12.0529 6.48411 12.0282 6.45018 12.002C6.34595 11.9213 6.20986 11.8289 6.06639 11.7578C5.81525 11.6335 5.51637 11.5904 5.22655 11.6436H5.22557C5.15055 11.6573 5.08558 11.6865 5.03417 11.7227C4.98289 11.7588 4.94815 11.7998 4.92772 11.8379C4.90762 11.8755 4.90023 11.9122 4.90038 11.9453C4.90057 11.9782 4.9084 12.0144 4.9287 12.0518L7.55272 16.8438C8.16912 17.9693 8.90989 18.7622 9.83886 19.2842C10.7737 19.8094 11.9704 20.0996 13.5615 20.0996C14.7902 20.0996 15.9536 19.6533 16.7998 18.8809C17.5619 18.185 18.0996 17.1383 18.0996 14.6543V7.34473C18.0996 7.28204 18.0734 7.20342 17.9951 7.13184C17.9139 7.05771 17.7875 7.00396 17.6406 7.00391C17.4937 7.00391 17.3674 7.05771 17.2861 7.13184C17.2077 7.20347 17.1807 7.28199 17.1807 7.34473V11.0693C17.1805 11.5661 16.778 11.9685 16.2812 11.9688C15.7843 11.9688 15.381 11.5662 15.3808 11.0693V5.48242C15.3808 5.41973 15.3537 5.34107 15.2754 5.26953C15.1941 5.19547 15.0677 5.1416 14.9209 5.1416C14.774 5.14166 14.6476 5.19541 14.5664 5.26953C14.4881 5.34105 14.462 5.41974 14.4619 5.48242V11.0693C14.4617 11.5662 14.0584 11.9688 13.5615 11.9688C13.0646 11.9687 12.6613 11.5662 12.6611 11.0693V4.24121C12.6611 4.17852 12.635 4.09989 12.5566 4.02832C12.4754 3.95419 12.349 3.90045 12.2021 3.90039C12.0552 3.90039 11.9289 3.95421 11.8476 4.02832C11.7692 4.09992 11.7422 4.17849 11.7422 4.24121V11.0693C11.742 11.5661 11.3395 11.9685 10.8428 11.9688C10.3458 11.9688 9.94257 11.5662 9.94237 11.0693V6.10352L9.93651 6.05371C9.92534 6.00177 9.89573 5.94433 9.8369 5.89062C9.75567 5.81647 9.62938 5.76172 9.48241 5.76172C9.33554 5.76179 9.2091 5.81651 9.12792 5.89062C9.04964 5.96222 9.02343 6.04084 9.02343 6.10352V12.7969Z",fill:"currentColor"},null,-1)])])}const Wve=St({name:"kimi-hand",render:Hve}),qve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uve(e,t){return v(),E("svg",qve,[...t[0]||(t[0]=[C("path",{d:"M4 3.33203C4.55224 3.33203 4.99993 3.7798 5 4.33203V18.0908H20.0674C20.6195 18.0908 21.0671 18.5388 21.0674 19.0908C21.0674 19.6431 20.6197 20.0908 20.0674 20.0908H5C3.89543 20.0908 3 19.1954 3 18.0908V4.33203C3.00007 3.7798 3.44776 3.33203 4 3.33203ZM8.19922 9.28418C8.7515 9.28418 9.19922 9.73189 9.19922 10.2842V15.6045C9.19908 16.1567 8.75142 16.6045 8.19922 16.6045C7.64719 16.6043 7.19936 16.1565 7.19922 15.6045V10.2842C7.19922 9.73202 7.6471 9.28438 8.19922 9.28418ZM17.2227 6.85645C17.7748 6.85658 18.2226 7.3043 18.2227 7.85645V15.6045C18.2225 16.1566 17.7747 16.6044 17.2227 16.6045C16.6705 16.6045 16.2228 16.1566 16.2227 15.6045V7.85645C16.2227 7.30422 16.6704 6.85645 17.2227 6.85645ZM12.7109 3.96387C13.2631 3.96387 13.7107 4.41175 13.7109 4.96387V15.6035C13.7109 16.1558 13.2632 16.6035 12.7109 16.6035C12.1587 16.6035 11.7109 16.1558 11.7109 15.6035V4.96387C11.7111 4.41175 12.1588 3.96387 12.7109 3.96387Z",fill:"currentColor"},null,-1)])])}const Kve=St({name:"kimi-histogram",render:Uve}),Vve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zve(e,t){return v(),E("svg",Vve,[...t[0]||(t[0]=[C("path",{d:"M8.00916 7.50488C8.47326 7.50488 8.91828 7.68943 9.24646 8.01758C9.57465 8.34577 9.75916 8.79075 9.75916 9.25488C9.75916 9.71901 9.57465 10.164 9.24646 10.4922C8.91828 10.8203 8.47326 11.0049 8.00916 11.0049C7.54507 11.0049 7.10001 10.8203 6.77185 10.4922C6.4437 10.164 6.25916 9.71898 6.25916 9.25488C6.25916 8.79078 6.4437 8.34576 6.77185 8.01758C7.10001 7.68942 7.54507 7.50492 8.00916 7.50488Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8998 4.09961C20.0537 4.09961 21.8002 5.84609 21.8002 8V16C21.8002 18.1539 20.0537 19.9004 17.8998 19.9004H5.89978C3.74598 19.9003 1.99939 18.1538 1.99939 16V8C1.99939 5.84617 3.74598 4.09974 5.89978 4.09961H17.8998ZM15.4867 12.2539C15.448 12.2184 15.3885 12.2192 15.351 12.2559L11.7338 15.8027C11.0146 16.5079 9.87305 16.5222 9.13708 15.835L6.98669 13.8262C6.95049 13.7924 6.89516 13.791 6.85681 13.8223L3.82361 16.2988C3.96873 17.3168 4.84165 18.0995 5.89978 18.0996H17.8998C18.9375 18.0996 19.7964 17.3466 19.9662 16.3574L15.4867 12.2539ZM5.89978 5.90039C4.74009 5.90052 3.80017 6.84028 3.80017 8V14.002L5.73181 12.4238C6.46046 11.8286 7.51253 11.8634 8.20056 12.5059L10.351 14.5146C10.3897 14.5508 10.4498 14.5497 10.4877 14.5127L14.1049 10.9658C14.819 10.2656 15.9506 10.2466 16.6879 10.9219L19.9994 13.9551V8C19.9994 6.8402 19.0596 5.90039 17.8998 5.90039H5.89978Z",fill:"currentColor"},null,-1)])])}const Gve=St({name:"kimi-image",render:Zve}),Qve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yve(e,t){return v(),E("svg",Qve,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.09375 2.81174C5.4825 2.50796 6.04376 2.56488 6.34766 2.93869L20.1855 19.9602C20.4895 20.3341 20.421 20.8836 20.0322 21.1877C19.6435 21.4917 19.0823 21.4355 18.7783 21.0617L17.9971 20.1008H5.99609C3.84224 20.1008 2.0958 18.3552 2.0957 16.2014V8.13889C2.09589 6.26755 3.41429 4.70428 5.17285 4.32639L4.93945 4.03928C4.63577 3.66536 4.7051 3.11573 5.09375 2.81174ZM7.13184 14.1096C7.09416 14.0738 7.03659 14.0713 6.99609 14.1037L3.92871 16.5569C4.09761 17.5472 4.95753 18.301 5.99609 18.301H16.5342L13.373 14.4133L11.9072 15.9455C11.1531 16.7324 9.92202 16.7621 9.13281 16.0119L7.13184 14.1096ZM5.99609 6.03928C4.83643 6.03928 3.89669 6.97927 3.89648 8.13889V14.1408L5.83496 12.5901C6.60469 11.9742 7.69929 12.022 8.41504 12.7024L10.416 14.6037C10.4575 14.6431 10.5218 14.642 10.5615 14.6008L12.1641 12.926L9.78906 10.0051C9.70282 10.2646 9.55682 10.5038 9.35645 10.7004C9.02202 11.0285 8.56767 11.2131 8.09473 11.2131C7.62195 11.213 7.1683 11.0284 6.83398 10.7004C6.49961 10.3724 6.31152 9.92701 6.31152 9.46311C6.3116 8.99941 6.49981 8.55474 6.83398 8.22678C7.12986 7.93654 7.51931 7.75901 7.93262 7.7219L6.56543 6.03928H5.99609Z",fill:"currentColor"},null,-1),C("path",{d:"M18.0049 4.31272C20.1587 4.31288 21.9043 6.0593 21.9043 8.21311V13.718C21.9039 15.4743 19.7248 16.2906 18.5713 14.966L14.9141 10.7658C14.5882 10.3912 14.6278 9.82271 15.002 9.49631C15.3768 9.16994 15.9451 9.20948 16.2715 9.5842L19.9287 13.7844C19.9528 13.812 19.9696 13.8167 19.9775 13.8186C19.9908 13.8216 20.0141 13.8213 20.04 13.8117C20.0655 13.8021 20.0826 13.7875 20.0908 13.7766C20.0955 13.7702 20.1044 13.7552 20.1045 13.718V8.21311C20.1045 7.05341 19.1645 6.11366 18.0049 6.1135H10.6328C10.1361 6.11327 9.73267 5.70981 9.73242 5.21311C9.73242 4.71619 10.136 4.31295 10.6328 4.31272H18.0049Z",fill:"currentColor"},null,-1)])])}const Jve=St({name:"kimi-image-failed",render:Yve}),Xve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2e(e,t){return v(),E("svg",Xve,[...t[0]||(t[0]=[C("path",{d:"M12 2.1001C17.4676 2.10031 21.8994 6.53286 21.8994 12.0005C21.8992 17.4679 17.4674 21.8997 12 21.8999C6.53237 21.8999 2.09982 17.4681 2.09961 12.0005C2.09961 6.53273 6.53224 2.1001 12 2.1001ZM12 3.8999C7.52636 3.8999 3.89941 7.52684 3.89941 12.0005C3.89963 16.474 7.52649 20.1001 12 20.1001C16.4733 20.0999 20.0994 16.4738 20.0996 12.0005C20.0996 7.52697 16.4735 3.90011 12 3.8999ZM12 9.50049C12.4969 9.50068 12.8994 9.87055 12.8994 10.3267V16.6743C12.8992 17.1303 12.4968 17.5003 12 17.5005C11.503 17.5005 11.0998 17.1304 11.0996 16.6743V10.3267C11.0996 9.87043 11.5029 9.50049 12 9.50049ZM12 6.49951C12.4968 6.49951 12.8994 6.90313 12.8994 7.3999C12.8992 7.8965 12.4966 8.30029 12 8.30029C11.5025 8.30028 11.0998 7.8965 11.0996 7.3999C11.0996 6.90313 11.5024 6.49952 12 6.49951Z",fill:"currentColor"},null,-1)])])}const t2e=St({name:"kimi-info",render:e2e}),n2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2e(e,t){return v(),E("svg",n2e,[...t[0]||(t[0]=[$c('',10)])])}const o2e=St({name:"kimi-keyboard",render:i2e}),s2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function r2e(e,t){return v(),E("svg",s2e,[...t[0]||(t[0]=[C("path",{id:"bar-divider",d:"M 9.3 18.951 L 9.3 4.3",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{id:"bar-box",d:"M -7.9 -4.8 C -7.9 -6.512 -6.512 -7.9 -4.8 -7.9 L 4.8 -7.9 C 6.512 -7.9 7.9 -6.512 7.9 -4.8 L 7.9 4.8 C 7.9 6.512 6.512 7.9 4.8 7.9 L -4.8 7.9 C -6.512 7.9 -7.9 6.512 -7.9 4.8 L -7.9 -4.8 Z",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"butt","stroke-linejoin":"miter",transform:"matrix(1 0 0 1 11.8 11.8)"},null,-1),C("path",{id:"bar-arrow",d:"M -1.25 -2.5 L 1.25 0 L -1.25 2.5",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const l2e=St({name:"kimi-left-panel",render:r2e}),a2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function u2e(e,t){return v(),E("svg",a2e,[...t[0]||(t[0]=[C("path",{id:"bar-divider",d:"M 9.3 18.951 L 9.3 4.3",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{id:"bar-box",d:"M -7.9 -4.8 C -7.9 -6.512 -6.512 -7.9 -4.8 -7.9 L 4.8 -7.9 C 6.512 -7.9 7.9 -6.512 7.9 -4.8 L 7.9 4.8 C 7.9 6.512 6.512 7.9 4.8 7.9 L -4.8 7.9 C -6.512 7.9 -7.9 6.512 -7.9 4.8 L -7.9 -4.8 Z",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"butt","stroke-linejoin":"miter",transform:"matrix(1 0 0 1 11.8 11.8)"},null,-1),C("path",{id:"bar-arrow-expand",d:"M -1.25 -2.5 L 1.25 0 L -1.25 2.5",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const c2e=St({name:"kimi-left-panel-expand",render:u2e}),d2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2e(e,t){return v(),E("svg",d2e,[...t[0]||(t[0]=[$c('',1)])])}const h2e=St({name:"kimi-light-mode",render:f2e}),p2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g2e(e,t){return v(),E("svg",p2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.97427 8.06961C4.99348 7.33581 6.18946 7.1 7.00001 7.1H9.00001C9.49706 7.1 9.90001 7.50294 9.90001 8C9.90001 8.49706 9.49706 8.9 9.00001 8.9H7.00001C6.47755 8.9 5.67353 9.06419 5.02599 9.53039C4.42434 9.96356 3.90001 10.6934 3.90001 12C3.90001 13.3066 4.42434 14.0364 5.02599 14.4696C5.67353 14.9358 6.47755 15.1 7.00001 15.1H9.00001C9.49706 15.1 9.90001 15.5029 9.90001 16C9.90001 16.4971 9.49706 16.9 9.00001 16.9H7.00001C6.18946 16.9 4.99348 16.6642 3.97427 15.9304C2.90917 15.1636 2.10001 13.8934 2.10001 12C2.10001 10.1066 2.90917 8.83644 3.97427 8.06961ZM14.1 8C14.1 7.50294 14.5029 7.1 15 7.1H17C17.8105 7.1 19.0065 7.33581 20.0257 8.06961C21.0908 8.83644 21.9 10.1066 21.9 12C21.9 13.8934 21.0908 15.1636 20.0257 15.9304C19.0065 16.6642 17.8105 16.9 17 16.9H15C14.5029 16.9 14.1 16.4971 14.1 16C14.1 15.5029 14.5029 15.1 15 15.1H17C17.5225 15.1 18.3265 14.9358 18.974 14.4696C19.5757 14.0364 20.1 13.3066 20.1 12C20.1 10.6934 19.5757 9.96356 18.974 9.53039C18.3265 9.06419 17.5225 8.9 17 8.9H15C14.5029 8.9 14.1 8.49706 14.1 8ZM7.10001 12C7.10001 11.5029 7.50295 11.1 8.00001 11.1H16C16.4971 11.1 16.9 11.5029 16.9 12C16.9 12.4971 16.4971 12.9 16 12.9H8.00001C7.50295 12.9 7.10001 12.4971 7.10001 12Z",fill:"currentColor"},null,-1)])])}const m2e=St({name:"kimi-link",render:g2e}),v2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y2e(e,t){return v(),E("svg",v2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.10001 5.99998C4.10001 5.50292 4.50295 5.09998 5.00001 5.09998H19C19.4971 5.09998 19.9 5.50292 19.9 5.99998C19.9 6.49703 19.4971 6.89998 19 6.89998H5.00001C4.50295 6.89998 4.10001 6.49703 4.10001 5.99998ZM4.10001 12C4.10001 11.5029 4.50295 11.1 5.00001 11.1H19C19.4971 11.1 19.9 11.5029 19.9 12C19.9 12.497 19.4971 12.9 19 12.9H5.00001C4.50295 12.9 4.10001 12.497 4.10001 12ZM4.10001 18C4.10001 17.5029 4.50295 17.1 5.00001 17.1H19C19.4971 17.1 19.9 17.5029 19.9 18C19.9 18.497 19.4971 18.9 19 18.9H5.00001C4.50295 18.9 4.10001 18.497 4.10001 18Z",fill:"currentColor"},null,-1)])])}const k2e=St({name:"kimi-list",render:y2e}),b2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2e(e,t){return v(),E("svg",b2e,[...t[0]||(t[0]=[C("g",null,[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 4.09961C20.1539 4.09961 21.9004 5.84609 21.9004 8V16C21.9004 18.1539 20.1539 19.9004 18 19.9004H6C3.84609 19.9004 2.09961 18.1539 2.09961 16V8C2.09961 5.84609 3.84609 4.09961 6 4.09961H18ZM3.90039 16C3.90039 17.1598 4.8402 18.0996 6 18.0996H18C19.1598 18.0996 20.0996 17.1598 20.0996 16V9.49805L13.5361 13.5361C12.5955 14.1147 11.4075 14.1084 10.4727 13.5205L3.90039 9.38672V16ZM6 5.90039C5.0746 5.90039 4.29039 6.49909 4.01074 7.33008L11.4316 11.9971C11.7861 12.2199 12.2361 12.2222 12.5928 12.0029L20.0195 7.43457C19.7725 6.54993 18.9636 5.90039 18 5.90039H6Z",fill:"currentColor"})],-1)])])}const C2e=St({name:"kimi-mail",render:A2e}),w2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x2e(e,t){return v(),E("svg",w2e,[...t[0]||(t[0]=[C("path",{d:"M17 11.0996C17.4971 11.0996 17.9004 11.5029 17.9004 12C17.9004 12.4971 17.4971 12.9004 17 12.9004H7C6.50294 12.9004 6.09961 12.4971 6.09961 12C6.09961 11.5029 6.50294 11.0996 7 11.0996H17Z",fill:"currentColor"},null,-1)])])}const S2e=St({name:"kimi-minus",render:x2e}),_2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2e(e,t){return v(),E("svg",_2e,[...t[0]||(t[0]=[C("path",{d:"M15.182 3.32802C15.9304 2.72235 17.0309 2.76978 17.724 3.46767L18.5424 4.29189L18.6722 4.43642C19.2377 5.13495 19.234 6.1404 18.6635 6.83486L18.5326 6.97841L18.0248 7.48232C17.9549 7.55172 17.8793 7.61254 17.8021 7.66884C17.9794 8.18027 17.9316 8.7498 17.6595 9.22841C17.6847 9.24522 17.7091 9.2635 17.7328 9.2831L17.8002 9.3456L17.9847 9.53798C19.8515 11.5442 20.4549 14.0022 19.6224 16.2196C19.1921 17.3657 18.4025 18.3827 17.2992 19.203H19.0873L19.1801 19.2079C19.6337 19.2542 19.9877 19.6375 19.9877 20.1034C19.9876 20.5692 19.6337 20.9527 19.1801 20.9989L19.0873 21.0028H13.0385C13.0244 21.0033 13.0104 21.0031 12.9965 21.0028H4.9115C4.41448 21.0028 4.01117 20.6004 4.01111 20.1034C4.01111 19.6064 4.41444 19.203 4.9115 19.203H12.9047C15.7614 18.5471 17.3679 17.1023 17.9369 15.5868C18.4678 14.1726 18.179 12.4782 16.807 10.9188L16.5189 10.6093L16.4574 10.5399C16.4549 10.5368 16.453 10.5333 16.4506 10.5302L12.3011 14.6522C11.6031 15.3454 10.5023 15.3845 9.75818 14.7733L9.61365 14.6425L7.31091 12.3231C6.5717 11.5786 6.57617 10.376 7.32068 9.63662L12.3676 4.62392L12.5121 4.49404C13.0358 4.06988 13.7318 3.96755 14.3402 4.18251C14.3969 4.10597 14.4591 4.03197 14.5287 3.96279L15.0365 3.45791L15.182 3.32802ZM4.83044 12.9335C5.16112 12.6052 5.68305 12.5863 6.03552 12.8759L6.10291 12.9384L9.07361 15.9286L9.13513 15.997C9.42218 16.3514 9.3992 16.8727 9.06873 17.2011C8.7381 17.5294 8.21712 17.5482 7.86462 17.2587L7.79626 17.1972L4.82654 14.2069L4.76501 14.1376C4.47792 13.7831 4.49979 13.2619 4.83044 12.9335ZM13.6693 5.87978L13.6361 5.90126L8.58826 10.914C8.54935 10.9529 8.54943 11.0165 8.58826 11.0556L10.891 13.3739L10.9242 13.3964C10.9602 13.4111 11.0032 13.404 11.0326 13.3749L16.0795 8.3622L16.1019 8.329C16.1117 8.3049 16.1117 8.2779 16.1019 8.2538L16.0804 8.2206L13.7777 5.90224C13.7486 5.87289 13.7054 5.86535 13.6693 5.87978ZM16.3383 4.71376L16.3051 4.73525L15.7972 5.24013C15.7584 5.27904 15.7585 5.34166 15.7972 5.38076L16.6146 6.20498L16.6478 6.22744C16.6838 6.24221 16.7268 6.23487 16.7562 6.20595L17.264 5.70107L17.2865 5.66787C17.2962 5.64382 17.2963 5.61672 17.2865 5.59267L17.265 5.55947L16.4467 4.73623C16.4174 4.70681 16.3744 4.6992 16.3383 4.71376Z",fill:"currentColor"},null,-1)])])}const I2e=St({name:"kimi-microscope",render:M2e}),E2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T2e(e,t){return v(),E("svg",E2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.669 7.94435C11.6812 7.94435 11.6912 7.9546 11.6914 7.96681C11.6914 7.96922 11.6926 7.97233 11.6934 7.97462L14.0908 15.1924C14.1283 15.3052 14.0437 15.4219 13.9248 15.4219H12.709C12.6327 15.4217 12.5655 15.3718 12.543 15.2988L11.9639 13.418C11.9526 13.3814 11.9181 13.3565 11.8799 13.3565H9.1504C9.11222 13.3565 9.07868 13.3815 9.06739 13.418L8.48829 15.2988C8.46577 15.3719 8.39778 15.4219 8.3213 15.4219H7.10548C6.98659 15.4219 6.90296 15.3052 6.94044 15.1924L9.30762 8.06446C9.3313 7.99321 9.39855 7.94435 9.47364 7.94435H11.669ZM9.4961 12.041C9.47878 12.0971 9.52043 12.1543 9.57911 12.1543H11.4512C11.5098 12.1543 11.5525 12.0971 11.5352 12.041L10.6113 9.05177H10.4199L9.4961 12.041Z",fill:"currentColor"},null,-1),C("path",{d:"M16.0576 7.94435C16.1539 7.94435 16.2324 8.02289 16.2324 8.11915V15.2481C16.2322 15.3441 16.1537 15.4219 16.0576 15.4219H15.0645C14.9683 15.4219 14.8899 15.3441 14.8897 15.2481V8.11915C14.8897 8.02289 14.9682 7.94435 15.0645 7.94435H16.0576Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0534 2.091C12.5082 2.091 12.8766 2.45946 12.8766 2.91425L12.874 3.90821H14.3076L14.3102 2.92499C14.3103 2.47035 14.6788 2.10186 15.1334 2.10175C15.5882 2.10175 15.9566 2.47028 15.9567 2.92499L15.9541 3.90821H17.0293C18.4439 3.90854 19.5908 5.05504 19.5908 6.46974V7.90821L21.0852 7.93105C21.54 7.93105 21.9085 8.29951 21.9085 8.7543C21.9084 9.20899 21.54 9.57754 21.0852 9.57754L19.6074 9.5547C19.6019 9.5547 19.5964 9.55383 19.5908 9.55372V11.0215L21.0852 11.0443C21.54 11.0443 21.9084 11.4129 21.9085 11.8676C21.9085 12.3224 21.54 12.6908 21.0852 12.6908L19.6074 12.668C19.6019 12.668 19.5964 12.6671 19.5908 12.667V14.1016L21.0852 14.1244C21.54 14.1244 21.9084 14.4929 21.9085 14.9477C21.9085 15.4024 21.54 15.7709 21.0852 15.7709L19.6074 15.7481C19.6019 15.7481 19.5964 15.7472 19.5908 15.7471V16.8975C19.5907 18.312 18.4438 19.4587 17.0293 19.459H15.9453L15.9875 21.0863C15.9875 21.5409 15.6189 21.9094 15.1643 21.9095C14.7095 21.9095 14.3411 21.541 14.341 21.0863L14.2988 19.459H12.8311L12.8733 21.0863C12.8732 21.541 12.5048 21.9095 12.05 21.9095C11.5955 21.9093 11.2269 21.5409 11.2268 21.0863L11.1846 19.459H9.75098L9.79319 21.0687C9.79319 21.5235 9.42474 21.8919 8.96995 21.8919C8.51536 21.8917 8.14671 21.5233 8.14671 21.0687L8.1045 19.459H6.75489C5.34008 19.459 4.19352 18.3122 4.19337 16.8975V15.7031L2.90033 15.7353C2.4456 15.7353 2.07709 15.3668 2.07709 14.9121C2.0771 14.4574 2.44561 14.0889 2.90033 14.0889L4.19337 14.0567V12.5899L2.91595 12.6221C2.46128 12.6221 2.09289 12.2535 2.09271 11.7988C2.09271 11.344 2.46116 10.9756 2.91595 10.9756L4.19337 10.9434V9.50978L2.91595 9.54198C2.46126 9.54198 2.09287 9.1734 2.09271 8.71874C2.09271 8.26395 2.46116 7.8955 2.91595 7.8955L4.19337 7.86329V6.46974C4.19337 5.05483 5.33999 3.90821 6.75489 3.90821H8.11427L8.11684 2.91425C8.11684 2.45946 8.48529 2.091 8.94008 2.091C9.39483 2.09105 9.76332 2.45949 9.76332 2.91425L9.76075 3.90821H11.2275L11.2301 2.91425C11.2301 2.45955 11.5987 2.09115 12.0534 2.091ZM6.66114 5.55958C6.19983 5.6065 5.83985 5.99605 5.83985 6.46974V16.8975L5.84473 16.9912C5.88868 17.4216 6.23075 17.7639 6.66114 17.8076L6.75489 17.8125H17.0293L17.1221 17.8076C17.5526 17.764 17.8955 17.4217 17.9395 16.9912L17.9434 16.8975V6.46974C17.9434 5.99595 17.5835 5.60637 17.1221 5.55958L17.0293 5.5547H6.75489L6.66114 5.55958Z",fill:"currentColor"},null,-1)])])}const L2e=St({name:"kimi-model",render:T2e}),N2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F2e(e,t){return v(),E("svg",N2e,[...t[0]||(t[0]=[C("path",{d:"M6 12C6 12.8283 5.32834 13.5 4.5 13.5C3.67166 13.5 3 12.8283 3 12C3 11.1717 3.67166 10.5 4.5 10.5C5.32834 10.5 6 11.1717 6 12Z",fill:"currentColor"},null,-1),C("path",{d:"M13.5 12C13.5 12.8283 12.8283 13.5 12 13.5C11.1717 13.5 10.5 12.8283 10.5 12C10.5 11.1717 11.1717 10.5 12 10.5C12.8283 10.5 13.5 11.1717 13.5 12Z",fill:"currentColor"},null,-1),C("path",{d:"M19.5002 13.5C20.3287 13.5 21 12.8287 21 12.0002C21 11.1718 20.3287 10.5 19.5002 10.5C18.6718 10.5 18 11.1718 18 12.0002C18 12.8287 18.6718 13.5 19.5002 13.5Z",fill:"currentColor"},null,-1)])])}const D2e=St({name:"kimi-more",render:F2e}),B2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2e(e,t){return v(),E("svg",B2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 12.0993C8.49691 12.0993 8.90016 12.5028 8.90039 12.9997V17.9997C8.90039 19.6013 7.60163 20.9001 6 20.9001C4.39837 20.9001 3.09961 19.6013 3.09961 17.9997C3.09984 16.3982 4.39852 15.0993 6 15.0993C6.38939 15.0993 6.76033 15.1778 7.09961 15.317V12.9997C7.09984 12.5028 7.50309 12.0993 8 12.0993ZM6 16.9001C5.39263 16.9001 4.90062 17.3923 4.90039 17.9997C4.90039 18.6072 5.39249 19.0993 6 19.0993C6.60751 19.0993 7.09961 18.6072 7.09961 17.9997C7.09938 17.3923 6.60737 16.9001 6 16.9001Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.627 3.35611C19.8025 3.12106 20.9001 4.02068 20.9004 5.21939V15.9997C20.9004 17.6013 19.6016 18.9001 18 18.9001C16.3984 18.9001 15.0996 17.6013 15.0996 15.9997C15.0998 14.3982 16.3985 13.0993 18 13.0993C18.3894 13.0993 18.7603 13.1778 19.0996 13.317V9.21939C19.0993 9.15657 19.0421 9.10946 18.9805 9.12173L12.6768 10.3825C12.1894 10.4799 11.7148 10.1637 11.6172 9.67642C11.52 9.18922 11.8361 8.71439 12.3232 8.61685L18.627 7.35611C18.7868 7.32415 18.9452 7.31502 19.0996 7.32291V5.21939C19.0993 5.15657 19.0421 5.10946 18.9805 5.12173L12.6768 6.38248C12.1894 6.47994 11.7148 6.16372 11.6172 5.67642C11.52 5.18922 11.8361 4.71439 12.3232 4.61685L18.627 3.35611ZM18 14.9001C17.3926 14.9001 16.9006 15.3923 16.9004 15.9997C16.9004 16.6072 17.3925 17.0993 18 17.0993C18.6075 17.0993 19.0996 16.6072 19.0996 15.9997C19.0994 15.3923 18.6074 14.9001 18 14.9001Z",fill:"currentColor"},null,-1),C("path",{d:"M7.32422 5.38931C7.61669 4.87032 8.38346 4.87015 8.67578 5.38931L8.73047 5.50845L8.89551 5.95376L8.97949 6.1481C9.19937 6.58817 9.57968 6.93145 10.0459 7.10415L10.4912 7.26919C11.127 7.50461 11.1666 8.36217 10.6104 8.67544L10.4912 8.73013L10.0459 8.89517C9.5799 9.06783 9.19939 9.41141 8.97949 9.85123L8.89551 10.0456L8.73047 10.4909C8.49495 11.1267 7.63737 11.1665 7.32422 10.61L7.26953 10.4909L7.10449 10.0456C6.93172 9.57931 6.58767 9.19898 6.14746 8.97916L5.9541 8.89517L5.50879 8.73013C4.83054 8.47903 4.83061 7.52037 5.50879 7.26919L5.9541 7.10415L6.14746 7.02017C6.58757 6.80032 6.93176 6.41995 7.10449 5.95376L7.26953 5.50845L7.32422 5.38931Z",fill:"currentColor"},null,-1)])])}const R2e=St({name:"kimi-music",render:$2e}),z2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O2e(e,t){return v(),E("svg",z2e,[...t[0]||(t[0]=[C("path",{d:"M17.9551 6.32648C17.955 5.82951 17.5517 5.42706 17.0547 5.42706H15.4844C14.9875 5.42717 14.5851 5.82958 14.585 6.32648V17.6732C14.585 18.1701 14.9874 18.5734 15.4844 18.5735H17.0547C17.5518 18.5735 17.9551 18.1702 17.9551 17.6732V6.32648ZM19.7549 17.6732C19.7549 19.1643 18.5459 20.3734 17.0547 20.3734H15.4844C13.9933 20.3732 12.7842 19.1643 12.7842 17.6732V6.32648C12.7843 4.83546 13.9934 3.62639 15.4844 3.62628H17.0547C18.5458 3.62628 19.7548 4.8354 19.7549 6.32648V17.6732Z",fill:"currentColor"},null,-1),C("path",{d:"M9.41571 6.32648C9.41561 5.82951 9.01231 5.42706 8.51532 5.42706H6.94501C6.44811 5.42717 6.0457 5.82958 6.04559 6.32648V17.6732C6.04559 18.1701 6.44804 18.5734 6.94501 18.5735H8.51532C9.01238 18.5735 9.41571 18.1702 9.41571 17.6732V6.32648ZM11.2155 17.6732C11.2155 19.1643 10.0065 20.3734 8.51532 20.3734H6.94501C5.45393 20.3732 4.24481 19.1643 4.24481 17.6732V6.32648C4.24492 4.83546 5.45399 3.62639 6.94501 3.62628H8.51532C10.0064 3.62628 11.2154 4.8354 11.2155 6.32648V17.6732Z",fill:"currentColor"},null,-1)])])}const P2e=St({name:"kimi-pause",render:O2e}),j2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2e(e,t){return v(),E("svg",j2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.0176 4.89998C17.7305 4.89998 17.4552 5.014 17.2522 5.217L6.35429 16.1149C5.957 16.5122 5.67517 17.01 5.53889 17.5551L5.23691 18.763L6.44486 18.4611C6.98994 18.3248 7.48773 18.0429 7.88502 17.6456L18.783 6.74773C18.8834 6.64728 18.9631 6.52797 19.0176 6.39658C19.072 6.26517 19.1 6.12441 19.1 5.98236C19.1 5.84031 19.072 5.69956 19.0176 5.56815C18.9631 5.43676 18.8834 5.31745 18.783 5.217C18.6825 5.11649 18.5631 5.03676 18.4318 4.98237C18.3005 4.92798 18.1597 4.89998 18.0176 4.89998ZM15.9794 3.94421C16.52 3.40366 17.2531 3.09998 18.0176 3.09998C18.3961 3.09998 18.7709 3.17452 19.1207 3.31938C19.4704 3.46424 19.7881 3.67656 20.0558 3.94421C20.3235 4.21192 20.5357 4.52969 20.6805 4.87932C20.8254 5.22895 20.9 5.60375 20.9 5.98236C20.9 6.36098 20.8254 6.73578 20.6805 7.08541C20.5357 7.43504 20.3235 7.75281 20.0558 8.02052L17.6385 10.4378L9.15781 18.9184C8.52984 19.5464 7.74301 19.9919 6.88142 20.2073L4.21828 20.8731C3.91158 20.9498 3.58714 20.8599 3.3636 20.6364C3.14006 20.4128 3.05019 20.0884 3.12686 19.7817L3.79264 17.1185C4.00803 16.257 4.45351 15.4701 5.0815 14.8421L15.9794 3.94421Z",fill:"currentColor"},null,-1)])])}const W2e=St({name:"kimi-pencil",render:H2e}),q2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U2e(e,t){return v(),E("svg",q2e,[...t[0]||(t[0]=[C("path",{d:"M7.76251 3.10547C8.25776 3.10552 8.74422 3.23849 9.17072 3.49023L19.533 9.60742C20.8536 10.3869 21.2922 12.0901 20.5174 13.4121C20.2785 13.8195 19.9398 14.1604 19.533 14.4004L9.16974 20.5156C7.84721 21.2958 6.14595 20.8511 5.36993 19.5273C5.1196 19.1003 4.98719 18.6142 4.98712 18.1191V5.88672C4.98716 4.3537 6.2273 3.10547 7.76251 3.10547ZM6.7879 18.1191C6.78797 18.2945 6.8343 18.4664 6.92267 18.6172C7.19638 19.0841 7.79336 19.2377 8.25568 18.9648L18.618 12.8496C18.7607 12.7654 18.8803 12.6458 18.9647 12.502C19.2393 12.0334 19.082 11.4311 18.618 11.1572L8.25568 5.04102C8.1061 4.95273 7.93562 4.9063 7.76251 4.90625C7.22703 4.90625 6.78794 5.34218 6.7879 5.88672V18.1191Z",fill:"currentColor"},null,-1)])])}const K2e=St({name:"kimi-play",render:U2e}),V2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z2e(e,t){return v(),E("svg",V2e,[...t[0]||(t[0]=[C("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{d:"M12 2v10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const G2e=St({name:"kimi-power",render:Z2e}),Q2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y2e(e,t){return v(),E("svg",Q2e,[...t[0]||(t[0]=[C("path",{d:"M11.999 15.0049C12.6208 15.0049 13.1259 15.5091 13.126 16.1309C13.126 16.7528 12.6209 17.2578 11.999 17.2578C11.3773 17.2576 10.873 16.7526 10.873 16.1309C10.8732 15.5092 11.3774 15.0051 11.999 15.0049Z",fill:"currentColor"},null,-1),C("path",{d:"M10.1611 7.37109C10.9017 6.79576 11.8605 6.60385 12.7881 6.8457C13.808 7.10861 14.6385 7.93756 14.9014 8.95898C15.2694 10.3845 14.5793 11.8629 13.2598 12.4736C13.0803 12.557 12.75 12.9552 12.75 13.3525V13.502C12.75 13.9172 12.4142 14.2527 11.999 14.2529C11.5837 14.2529 11.248 13.9173 11.248 13.502V13.3525C11.248 12.313 11.9587 11.4215 12.6279 11.1113C13.1777 10.8567 13.6681 10.192 13.4473 9.33496C13.3195 8.84253 12.9038 8.42684 12.4121 8.2998C11.9292 8.17289 11.4573 8.26727 11.0811 8.55859C10.71 8.84626 10.4971 9.28012 10.4971 9.74805C10.4968 10.1632 10.1613 10.499 9.74609 10.499C9.33092 10.499 8.99536 10.1632 8.99512 9.74805C8.99512 8.81152 9.41918 7.94493 10.1611 7.37109Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 3.7998C7.47126 3.7998 3.7998 7.47126 3.7998 12C3.7998 16.5287 7.47126 20.2002 12 20.2002C16.5287 20.2002 20.2002 16.5287 20.2002 12C20.2002 7.47126 16.5287 3.7998 12 3.7998Z",fill:"currentColor"},null,-1)])])}const J2e=St({name:"kimi-question",render:Y2e}),X2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eye(e,t){return v(),E("svg",X2e,[...t[0]||(t[0]=[C("path",{d:"M12 2C13.1046 2 14 2.89543 14 4C14 4.78019 13.552 5.45353 12.9004 5.7832V7H16.5C18.1569 7 19.5 8.34315 19.5 10V17C19.5 18.6051 18.2394 19.9158 16.6543 19.9961L16.5 20H7.5L7.3457 19.9961C5.81166 19.9184 4.58163 18.6883 4.50391 17.1543L4.5 17V10C4.5 8.34315 5.84315 7 7.5 7H11.0996V5.7832C10.448 5.45353 10 4.78019 10 4C10 2.89543 10.8954 2 12 2ZM7.5 8.7998C6.83726 8.7998 6.2998 9.33726 6.2998 10V17C6.2998 17.6627 6.83726 18.2002 7.5 18.2002H16.5C17.1627 18.2002 17.7002 17.6627 17.7002 17V10C17.7002 9.33726 17.1627 8.7998 16.5 8.7998H7.5ZM3 10.7666C3.49706 10.7666 3.90039 11.1699 3.90039 11.667V15C3.90039 15.4971 3.49706 15.9004 3 15.9004C2.50294 15.9004 2.09961 15.4971 2.09961 15V11.667C2.09961 11.1699 2.50294 10.7666 3 10.7666ZM21 10.7666C21.4971 10.7666 21.9004 11.1699 21.9004 11.667V15C21.9004 15.4971 21.4971 15.9004 21 15.9004C20.5029 15.9004 20.0996 15.4971 20.0996 15V11.667C20.0996 11.1699 20.5029 10.7666 21 10.7666ZM9.5 11.0996C9.99706 11.0996 10.4004 11.5029 10.4004 12V14.5C10.4004 14.9971 9.99706 15.4004 9.5 15.4004C9.00294 15.4004 8.59961 14.9971 8.59961 14.5V12C8.59961 11.5029 9.00294 11.0996 9.5 11.0996ZM14.5 11.0996C14.9971 11.0996 15.4004 11.5029 15.4004 12V14.5C15.4004 14.9971 14.9971 15.4004 14.5 15.4004C14.0029 15.4004 13.5996 14.9971 13.5996 14.5V12C13.5996 11.5029 14.0029 11.0996 14.5 11.0996ZM12 3.5C11.7239 3.5 11.5 3.72386 11.5 4C11.5 4.27614 11.7239 4.5 12 4.5C12.2761 4.5 12.5 4.27614 12.5 4C12.5 3.72386 12.2761 3.5 12 3.5Z",fill:"currentColor"},null,-1)])])}const tye=St({name:"kimi-robot",render:eye}),nye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iye(e,t){return v(),E("svg",nye,[...t[0]||(t[0]=[C("path",{d:"M11.5 3C16.1944 3 20 6.80558 20 11.5C20 13.523 19.2933 15.381 18.1132 16.8404L21.1364 19.8636C21.4879 20.2151 21.4879 20.7849 21.1364 21.1364C20.7849 21.4879 20.2151 21.4879 19.8636 21.1364L16.8404 18.1132C15.381 19.2933 13.523 20 11.5 20C6.80558 20 3 16.1944 3 11.5C3 6.80558 6.80558 3 11.5 3ZM11.5 18.2C15.2003 18.2 18.2 15.2003 18.2 11.5C18.2 7.79969 15.2003 4.8 11.5 4.8C7.79969 4.8 4.8 7.79969 4.8 11.5C4.8 15.2003 7.79969 18.2 11.5 18.2Z",fill:"currentColor"},null,-1)])])}const oye=St({name:"kimi-search",render:iye}),sye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rye(e,t){return v(),E("svg",sye,[...t[0]||(t[0]=[C("path",{d:"M16.5364 10.1636C16.8879 10.5151 16.8879 11.0849 16.5364 11.4364C16.1849 11.7879 15.6151 11.7879 15.2636 11.4364L12.9 9.07281V17.1C12.9 17.597 12.4971 18 12 18C11.503 18 11.1 17.597 11.1 17.1V9.07281L8.73641 11.4364C8.38494 11.7879 7.81509 11.7879 7.46362 11.4364C7.11214 11.0849 7.11214 10.5151 7.46362 10.1636L11.3636 6.2636C11.7151 5.91211 12.2849 5.91211 12.6364 6.2636L16.5364 10.1636Z",fill:"currentColor"},null,-1)])])}const lye=St({name:"kimi-send",render:rye}),aye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uye(e,t){return v(),E("svg",aye,[...t[0]||(t[0]=[C("path",{d:"M16.0404 12C16.0404 9.76874 14.2313 7.9596 12.0001 7.9596C9.76883 7.9596 7.95972 9.76874 7.95972 12C7.95972 14.2313 9.76883 16.0404 12.0001 16.0404C14.2313 16.0404 16.0404 14.2313 16.0404 12ZM14.2222 12C14.2222 13.2271 13.2271 14.2222 12 14.2222C10.7729 14.2222 9.77783 13.2271 9.77783 12C9.77783 10.7729 10.7729 9.77778 12 9.77778C13.2271 9.77778 14.2222 10.7729 14.2222 12Z",fill:"currentColor"},null,-1),C("path",{d:"M9.91145 21.8009C9.29001 21.6797 8.76914 21.2612 8.50632 20.6922L8.07372 19.7556C7.88838 19.3544 7.43553 19.1048 6.95371 19.1549L5.89572 19.2647C5.2733 19.3293 4.64823 19.114 4.22298 18.6611C3.74343 18.1504 3.32454 17.6037 2.97033 17.0181C2.61571 16.4318 2.32839 15.8106 2.10407 15.1566C1.89769 14.5549 2.02148 13.8954 2.4089 13.3902L3.0376 12.5704C3.30043 12.2277 3.30042 11.7722 3.03758 11.4295L2.40413 10.6035C2.01474 10.0958 1.891 9.43198 2.10208 8.82826C2.55037 7.54612 3.27017 6.35997 4.22 5.34259C4.64518 4.8872 5.27275 4.67067 5.89701 4.73544L6.95383 4.84514C7.43561 4.89515 7.88844 4.6456 8.07377 4.24441L8.50266 3.31593C8.76494 2.74818 9.28448 2.33019 9.90423 2.20761C11.2916 1.9332 12.7148 1.93127 14.0885 2.19913C14.7099 2.32029 15.2308 2.73881 15.4937 3.3078L15.9263 4.24441C16.1116 4.6456 16.5644 4.89514 17.0462 4.84514L18.1043 4.73532C18.7267 4.67072 19.3518 4.88603 19.777 5.33886C20.2566 5.84953 20.6755 6.3963 21.0297 6.98193C21.3843 7.56823 21.6716 8.18942 21.8959 8.84339C22.1023 9.44509 21.9785 10.1046 21.5911 10.6098L20.9624 11.4295C20.6996 11.7722 20.6996 12.2278 20.9624 12.5705L21.5959 13.3964C21.9853 13.9042 22.109 14.568 21.8979 15.1717C21.4497 16.4538 20.7299 17.6399 19.7801 18.6573C19.3549 19.1128 18.7273 19.3294 18.103 19.2646L17.0462 19.1549C16.5645 19.1049 16.1116 19.3544 15.9263 19.7556L15.4974 20.6841C15.2351 21.2518 14.7156 21.6698 14.0958 21.7924C12.7083 22.0668 11.2852 22.0687 9.91145 21.8009ZM13.7432 20.0088C13.7844 20.0006 13.8259 19.9673 13.847 19.9216L14.2758 18.9931C14.7915 17.8768 15.9886 17.2171 17.2341 17.3464L18.2909 17.4561C18.3649 17.4638 18.4272 17.4423 18.4512 17.4166C19.2296 16.5828 19.8171 15.6146 20.1817 14.5716C20.1845 14.5636 20.1796 14.5373 20.1532 14.5029L19.5198 13.677C18.7564 12.6815 18.7564 11.3185 19.5198 10.323L20.1485 9.5033C20.1746 9.46927 20.1795 9.4429 20.1762 9.43327C19.9932 8.89965 19.7603 8.39623 19.4741 7.92293C19.1873 7.4489 18.846 7.00333 18.4517 6.58351C18.4272 6.55739 18.3656 6.53616 18.2921 6.54378L17.234 6.65361C15.9886 6.78287 14.7915 6.12317 14.2758 5.00689L13.8432 4.07027C13.822 4.02448 13.7811 3.9916 13.7406 3.98371C12.5983 3.76097 11.4132 3.76258 10.2571 3.99124C10.2158 3.99941 10.1744 4.03271 10.1533 4.07842L9.72441 5.00689C9.20875 6.12317 8.01164 6.7829 6.76619 6.6536L5.70942 6.54391C5.63535 6.53623 5.573 6.55774 5.54905 6.5834C4.77067 7.41713 4.18312 8.38534 3.81845 9.42835C3.81564 9.43637 3.82054 9.46265 3.84693 9.49706L4.48038 10.323C5.24381 11.3185 5.24383 12.6815 4.48041 13.6769L3.85171 14.4967C3.82561 14.5307 3.82066 14.5571 3.82396 14.5667C4.00701 15.1004 4.23986 15.6038 4.52613 16.0771C4.81284 16.5511 5.15421 16.9967 5.54845 17.4165C5.57298 17.4426 5.63461 17.4638 5.70811 17.4562L6.76608 17.3464C8.01157 17.2171 9.20871 17.8768 9.72438 18.9932L10.157 19.9297C10.1781 19.9755 10.2191 20.0084 10.2595 20.0163C11.4018 20.239 12.587 20.2374 13.7432 20.0088Z",fill:"currentColor"},null,-1)])])}const cye=St({name:"kimi-setting",render:uye}),dye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fye(e,t){return v(),E("svg",dye,[...t[0]||(t[0]=[C("path",{d:"M17 2C19.2091 2 21 3.79086 21 6V15.7646C21 17.2361 20.192 18.5884 18.8965 19.2861L13.8965 21.9785C12.7126 22.616 11.2874 22.616 10.1035 21.9785L5.10352 19.2861C3.80802 18.5884 3 17.2361 3 15.7646V6C3 3.79086 4.79086 2 7 2H17ZM7 3.7998C5.78498 3.7998 4.79981 4.78497 4.7998 6V15.7646C4.7998 16.574 5.24443 17.3184 5.95703 17.7021L10.957 20.3936C11.6082 20.7442 12.3918 20.7442 13.043 20.3936L18.043 17.7021C18.7556 17.3184 19.2002 16.574 19.2002 15.7646V6C19.2002 4.78497 18.215 3.7998 17 3.7998H7Z",fill:"currentColor"},null,-1),C("path",{d:"M10.1611 7.37109C10.9017 6.79576 11.8605 6.60385 12.7881 6.8457C13.808 7.10861 14.6385 7.93756 14.9014 8.95898C15.2694 10.3845 14.5793 11.8629 13.2598 12.4736C13.0803 12.557 12.75 12.9552 12.75 13.3525V13.502C12.75 13.9172 12.4142 14.2527 11.999 14.2529C11.5837 14.2529 11.248 13.9173 11.248 13.502V13.3525C11.248 12.313 11.9587 11.4215 12.6279 11.1113C13.1777 10.8567 13.6681 10.192 13.4473 9.33496C13.3195 8.84253 12.9038 8.42684 12.4121 8.2998C11.9292 8.17289 11.4573 8.26727 11.0811 8.55859C10.71 8.84626 10.4971 9.28012 10.4971 9.74805C10.4968 10.1632 10.1613 10.499 9.74609 10.499C9.33092 10.499 8.99536 10.1632 8.99512 9.74805C8.99512 8.81152 9.41918 7.94493 10.1611 7.37109Z",fill:"currentColor"},null,-1),C("path",{d:"M11.999 15.0049C12.6208 15.0049 13.1259 15.5091 13.126 16.1309C13.126 16.7528 12.6209 17.2578 11.999 17.2578C11.3773 17.2576 10.873 16.7526 10.873 16.1309C10.8732 15.5092 11.3774 15.0051 11.999 15.0049Z",fill:"currentColor"},null,-1)])])}const hye=St({name:"kimi-shield-question",render:fye}),pye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gye(e,t){return v(),E("svg",pye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.90005 12C2.90005 11.503 3.303 11.1 3.80005 11.1H12.2939L9.38588 8.19197C9.03441 7.8405 9.03441 7.27065 9.38588 6.91918C9.73735 6.56771 10.3072 6.56771 10.6587 6.91918L15.1031 11.3636C15.2719 11.5324 15.3667 11.7613 15.3667 12C15.3667 12.2387 15.2719 12.4676 15.1031 12.6364L10.6587 17.0809C10.3072 17.4323 9.73735 17.4323 9.38588 17.0809C9.03441 16.7294 9.03441 16.1595 9.38588 15.8081L12.2939 12.9H3.80005C3.303 12.9 2.90005 12.4971 2.90005 12ZM13.5874 20C13.5874 19.503 13.9904 19.1 14.4874 19.1H18.043C18.2758 19.1 18.4991 19.0075 18.6637 18.8429C18.8283 18.6783 18.9208 18.455 18.9208 18.2222V5.7778C18.9208 5.545 18.8283 5.32174 18.6637 5.15712C18.499 4.9925 18.2758 4.90002 18.043 4.90002H14.4874C13.9904 4.90002 13.5874 4.49708 13.5874 4.00002C13.5874 3.50297 13.9904 3.10003 14.4874 3.10003H18.043C18.7532 3.10003 19.4343 3.38215 19.9365 3.88433C20.4386 4.38651 20.7208 5.06761 20.7208 5.7778V18.2222C20.7208 18.9324 20.4386 19.6135 19.9365 20.1157C19.4343 20.6179 18.7532 20.9 18.043 20.9H14.4874C13.9904 20.9 13.5874 20.4971 13.5874 20Z",fill:"currentColor"},null,-1)])])}const mye=St({name:"kimi-sign-in",render:gye}),vye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yye(e,t){return v(),E("svg",vye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.6364 11.3636C20.9879 11.7151 20.9879 12.2849 20.6364 12.6364L16.1919 17.0808C15.8405 17.4323 15.2706 17.4323 14.9192 17.0808C14.5677 16.7293 14.5677 16.1595 14.9192 15.808L17.8272 12.9H9.33333C8.83627 12.9 8.43333 12.497 8.43333 12C8.43333 11.5029 8.83627 11.1 9.33333 11.1H17.8272L14.9192 8.19193C14.5677 7.84046 14.5677 7.27061 14.9192 6.91914C15.2706 6.56766 15.8405 6.56766 16.1919 6.91914L20.6364 11.3636ZM10.2333 3.99998C10.2333 4.49703 9.83038 4.89998 9.33333 4.89998H5.77777C5.54497 4.89998 5.3217 4.99246 5.15709 5.15707C4.99247 5.32169 4.89999 5.54495 4.89999 5.77775V18.2222C4.89999 18.455 4.99247 18.6783 5.15709 18.8429C5.32171 19.0075 5.54497 19.1 5.77777 19.1H9.33333C9.83038 19.1 10.2333 19.5029 10.2333 20C10.2333 20.497 9.83038 20.9 9.33333 20.9H5.77777C5.06758 20.9 4.38648 20.6179 3.8843 20.1157C3.38212 19.6135 3.09999 18.9324 3.09999 18.2222V5.77775C3.09999 5.06756 3.38212 4.38646 3.8843 3.88428C4.38648 3.3821 5.06758 3.09998 5.77777 3.09998H9.33333C9.83038 3.09998 10.2333 3.50292 10.2333 3.99998Z",fill:"currentColor"},null,-1)])])}const kye=St({name:"kimi-sign-out",render:yye}),bye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aye(e,t){return v(),E("svg",bye,[...t[0]||(t[0]=[$c('',9)])])}const Cye=St({name:"kimi-sliders",render:Aye}),wye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xye(e,t){return v(),E("svg",wye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.78027 8.90405C7.5 9.45411 7.5 10.1742 7.5 11.6144V12.3856C7.5 13.8258 7.5 14.5459 7.78027 15.096C8.02681 15.5798 8.42019 15.9732 8.90405 16.2197C9.45411 16.5 10.1742 16.5 11.6144 16.5H12.3856C13.8258 16.5 14.5459 16.5 15.096 16.2197C15.5798 15.9732 15.9732 15.5798 16.2197 15.096C16.5 14.5459 16.5 13.8258 16.5 12.3856V11.6144C16.5 10.1742 16.5 9.45411 16.2197 8.90405C15.9732 8.42019 15.5798 8.02681 15.096 7.78027C14.5459 7.5 13.8258 7.5 12.3856 7.5H11.6144C10.1742 7.5 9.45411 7.5 8.90405 7.78027C8.42019 8.02681 8.02681 8.42019 7.78027 8.90405Z",fill:"currentColor"},null,-1)])])}const Sye=St({name:"kimi-stop",render:xye}),_ye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mye(e,t){return v(),E("svg",_ye,[...t[0]||(t[0]=[C("path",{d:"M7.01562 3.41459C7.4446 3.16449 7.9954 3.30924 8.24609 3.73784C8.49645 4.167 8.35189 4.71868 7.92285 4.96928C5.51497 6.37506 3.90054 8.98498 3.90039 11.9703C3.90076 16.4435 7.52672 20.0699 12 20.0699C16.4733 20.0699 20.0992 16.4435 20.0996 11.9703C20.0996 11.2291 20 10.5116 19.8145 9.83159C19.6838 9.35222 19.967 8.85702 20.4463 8.72612C20.9256 8.59541 21.4207 8.87778 21.5518 9.35698C21.7792 10.1901 21.9004 11.0674 21.9004 11.9703C21.9 17.4376 17.4674 21.8697 12 21.8697C6.53261 21.8697 2.09998 17.4376 2.09961 11.9703C2.09976 8.31904 4.07782 5.12972 7.01562 3.41459ZM8.39258 8.24077C8.75015 7.89591 9.3199 7.90591 9.66504 8.26323C10.01 8.62076 9.99985 9.19051 9.64258 9.53569C9.00203 10.1541 8.60558 11.02 8.60547 11.979C8.60584 13.8536 10.1253 15.3736 12 15.3736C13.8746 15.3735 15.3942 13.8536 15.3945 11.979C15.3945 11.6847 15.3577 11.3989 15.2881 11.1285C15.1646 10.6474 15.4536 10.1568 15.9346 10.0328C16.4158 9.9089 16.9071 10.1991 17.0312 10.6802C17.1383 11.096 17.1943 11.5321 17.1943 11.979C17.194 14.8477 14.8688 17.1733 12 17.1734C9.1312 17.1734 6.80506 14.8478 6.80469 11.979C6.8048 10.5117 7.41519 9.18431 8.39258 8.24077ZM11.5459 1.12651C11.8216 0.965605 12.1631 0.963306 12.4414 1.11967L19.1953 4.91752C19.4859 5.08108 19.662 5.39277 19.6533 5.72612C19.6443 6.05972 19.4515 6.36154 19.1523 6.50932L12.9004 9.5933V12.2583C12.9004 12.7554 12.4971 13.1587 12 13.1587C11.5029 13.1587 11.0996 12.7554 11.0996 12.2583V1.90385C11.0999 1.58444 11.2702 1.2878 11.5459 1.12651ZM12.9004 7.58549L16.8252 5.64897L12.9004 3.44194V7.58549Z",fill:"currentColor"},null,-1)])])}const Iye=St({name:"kimi-target",render:Mye}),Eye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tye(e,t){return v(),E("svg",Eye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9893 6.60743C20.5897 6.60757 21.8877 7.8926 21.8877 9.47736C21.8877 10.7416 21.0607 11.8129 19.9141 12.1955V14.257C19.914 15.8428 18.6152 17.1288 17.0137 17.1289H12.8438V20.1381C12.8437 20.6301 12.4412 21.0293 11.9443 21.0296C11.4473 21.0296 11.044 20.6302 11.0439 20.1381V16.4356C11.0441 15.8343 11.5363 15.3461 12.1436 15.3458H17.0137C17.6211 15.3457 18.1133 14.8585 18.1133 14.257V12.2129C16.9408 11.8451 16.0909 10.7598 16.0908 9.47736C16.0908 7.89251 17.3887 6.60743 18.9893 6.60743ZM18.9893 8.38953C18.3828 8.38953 17.8906 8.87684 17.8906 9.47736C17.8907 10.0778 18.3828 10.5642 18.9893 10.5642C19.5956 10.5641 20.0869 10.0777 20.0869 9.47736C20.0869 8.87693 19.5956 8.38967 18.9893 8.38953Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.89844 6.60743C6.49899 6.60747 7.79688 7.89254 7.79688 9.47736C7.79684 10.7388 6.97371 11.8078 5.83105 12.1926V14.4021C5.83105 15.0036 6.32315 15.4918 6.93066 15.4918H8.37109C8.86789 15.492 9.27038 15.8905 9.27051 16.3824C9.27051 16.8744 8.86797 17.2737 8.37109 17.2739H6.93066C5.32904 17.2739 4.03027 15.9879 4.03027 14.4021V12.2158C2.85382 11.8504 2.00004 10.7627 2 9.47736C2 7.89251 3.29784 6.60743 4.89844 6.60743ZM4.89844 8.38953C4.29196 8.38953 3.7998 8.87684 3.7998 9.47736C3.79985 10.0778 4.29198 10.5642 4.89844 10.5642C5.50485 10.5642 5.99605 10.0778 5.99609 9.47736C5.99609 8.87687 5.50488 8.38958 4.89844 8.38953Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9434 2.9707C13.5439 2.97075 14.8418 4.25581 14.8418 5.84063C14.8418 7.11413 14.0035 8.1923 12.8438 8.56745V13.0135C12.8436 13.5056 12.4403 13.9041 11.9434 13.9041C11.4466 13.9039 11.0431 13.5055 11.043 13.0135V8.56745C9.8836 8.19209 9.04496 7.11387 9.04492 5.84063C9.04492 4.25592 10.343 2.97093 11.9434 2.9707ZM11.9434 4.75281C11.3371 4.75303 10.8447 5.24026 10.8447 5.84063C10.8448 6.44097 11.3371 6.92726 11.9434 6.92749C12.5498 6.92745 13.041 6.44108 13.041 5.84063C13.041 5.24014 12.5498 4.75285 11.9434 4.75281Z",fill:"currentColor"},null,-1)])])}const Lye=St({name:"kimi-task",render:Tye}),Nye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fye(e,t){return v(),E("svg",Nye,[...t[0]||(t[0]=[C("path",{d:"M16.5293 15.0596C16.9496 15.1021 17.2772 15.4572 17.2773 15.8887C17.2773 16.3202 16.9497 16.6753 16.5293 16.7178L16.4443 16.7217H12C11.5399 16.7216 11.167 16.3488 11.167 15.8887C11.1671 15.4286 11.54 15.0558 12 15.0557H16.4443L16.5293 15.0596Z",fill:"currentColor"},null,-1),C("path",{d:"M6.96582 7.52246C7.27077 7.21751 7.75375 7.1983 8.08105 7.46484L8.14453 7.52246L10.8232 10.2002C11.5102 10.8872 11.5102 12.0014 10.8232 12.6885L8.14453 15.3672L8.08105 15.4248C7.75377 15.6913 7.27075 15.6721 6.96582 15.3672C6.66114 15.0621 6.64234 14.5791 6.90918 14.252L6.96582 14.1885L9.64453 11.5098C9.68057 11.4736 9.68062 11.415 9.64453 11.3789L6.96582 8.7002C6.64116 8.37488 6.6411 7.84774 6.96582 7.52246Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 3.09961C19.1539 3.09966 20.9004 4.84612 20.9004 7V17C20.9004 19.1539 19.1539 20.9003 17 20.9004H7C4.84609 20.9004 3.09961 19.1539 3.09961 17V7C3.09961 4.84609 4.84609 3.09961 7 3.09961H17ZM7 4.90039C5.8402 4.90039 4.90039 5.8402 4.90039 7V17C4.90039 18.1598 5.8402 19.0996 7 19.0996H17C18.1598 19.0996 19.0996 18.1598 19.0996 17V7C19.0996 5.84024 18.1598 4.90044 17 4.90039H7Z",fill:"currentColor"},null,-1)])])}const Dye=St({name:"kimi-terminal",render:Fye}),Bye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $ye(e,t){return v(),E("svg",Bye,[...t[0]||(t[0]=[C("path",{d:"M16.9971 3.90597C15.9799 2.99725 14.7342 2.38312 13.394 2.12966C12.0538 1.8762 10.6699 1.99301 9.39111 2.46751C8.11236 2.94202 6.98721 3.75626 6.13676 4.82261C5.2863 5.88896 4.74274 7.16703 4.56457 8.5193C4.40455 9.70501 4.53253 10.9118 4.93767 12.0376C5.34281 13.1634 6.01318 14.175 6.89207 14.9868C7.43557 15.4634 7.87413 16.0477 8.17997 16.7027C8.48581 17.3577 8.65224 18.0691 8.66873 18.7918V18.926C8.66962 19.7412 8.99387 20.5229 9.57035 21.0993C10.1468 21.6758 10.9285 22.0001 11.7437 22.001H12.2604C13.0757 22.0001 13.8573 21.6758 14.4338 21.0993C15.0103 20.5229 15.3345 19.7412 15.3354 18.926V18.4685C15.3479 17.8297 15.4982 17.2011 15.7761 16.6258C16.0539 16.0505 16.4528 15.542 16.9454 15.1351C17.7442 14.4355 18.3853 13.5741 18.826 12.608C19.2668 11.642 19.4973 10.5932 19.5022 9.53136C19.5071 8.46948 19.2863 7.41869 18.8544 6.4486C18.4225 5.4785 17.7894 4.61125 16.9971 3.9043V3.90597ZM12.2604 20.3343H11.7437C11.3704 20.3339 11.0124 20.1853 10.7484 19.9213C10.4844 19.6573 10.3358 19.2993 10.3354 18.926C10.3354 18.926 10.3296 18.7093 10.3287 18.6676H13.6687V18.926C13.6683 19.2993 13.5198 19.6573 13.2558 19.9213C12.9917 20.1853 12.6338 20.3339 12.2604 20.3343ZM15.8437 13.8835C14.8949 14.7064 14.2097 15.7908 13.8737 17.001H12.8354V11.0143C13.3212 10.8426 13.742 10.5249 14.0403 10.1049C14.3387 9.68482 14.4999 9.18285 14.5021 8.66763C14.5021 8.44662 14.4143 8.23466 14.258 8.07838C14.1017 7.9221 13.8897 7.8343 13.6687 7.8343C13.4477 7.8343 13.2358 7.9221 13.0795 8.07838C12.9232 8.23466 12.8354 8.44662 12.8354 8.66763C12.8354 8.88865 12.7476 9.10061 12.5913 9.25689C12.435 9.41317 12.2231 9.50097 12.0021 9.50097C11.7811 9.50097 11.5691 9.41317 11.4128 9.25689C11.2565 9.10061 11.1687 8.88865 11.1687 8.66763C11.1687 8.44662 11.0809 8.23466 10.9247 8.07838C10.7684 7.9221 10.5564 7.8343 10.3354 7.8343C10.1144 7.8343 9.90242 7.9221 9.74614 8.07838C9.58986 8.23466 9.50207 8.44662 9.50207 8.66763C9.5042 9.18285 9.66547 9.68482 9.96381 10.1049C10.2621 10.5249 10.683 10.8426 11.1687 11.0143V17.001H10.0671C9.69123 15.7586 8.98633 14.6411 8.02707 13.7668C7.21286 13.0081 6.63267 12.0324 6.35496 10.9547C6.07725 9.87703 6.1136 8.7424 6.45974 7.68471C6.80588 6.62702 7.44735 5.69042 8.30846 4.98543C9.16956 4.28045 10.2144 3.83649 11.3196 3.70597C11.5487 3.68039 11.779 3.66759 12.0096 3.66763C13.4409 3.66338 14.8226 4.19149 15.8862 5.1493C16.5026 5.69896 16.9952 6.37337 17.3312 7.12782C17.6672 7.88227 17.839 8.69952 17.8352 9.5254C17.8314 10.3513 17.6522 11.1669 17.3092 11.9183C16.9663 12.6696 16.4677 13.3395 15.8462 13.8835H15.8437Z",fill:"currentColor"},null,-1)])])}const Rye=St({name:"kimi-thinking",render:$ye}),zye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oye(e,t){return v(),E("svg",zye,[...t[0]||(t[0]=[$c('',6)])])}const Pye=St({name:"kimi-todo",render:Oye}),jye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hye(e,t){return v(),E("svg",jye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.09752 2.19507C8.5421 1.97278 9.08271 2.15298 9.305 2.59756L10.0562 4.10005H13.5C13.9971 4.10005 14.4 4.50299 14.4 5.00005C14.4 5.49711 13.9971 5.90005 13.5 5.90005H12.3106C12.2556 6.2319 12.1667 6.64073 12.0226 7.0987C11.7254 8.04355 11.191 9.20402 10.2334 10.3239C11.4166 11.196 12.5606 11.7524 13.4512 12.0987C13.978 12.3036 14.4136 12.434 14.7124 12.5122L14.7348 12.5181L15.695 10.5976C15.8475 10.2927 16.1591 10.1 16.5 10.1C16.8409 10.1 17.1525 10.2927 17.305 10.5976L20.7969 17.5814L20.8044 17.5959L20.8137 17.615L21.805 19.5976C22.0273 20.0421 21.8471 20.5827 21.4025 20.805C20.9579 21.0273 20.4173 20.8471 20.195 20.4025L19.4438 18.9H13.5562L12.805 20.4025C12.5827 20.8471 12.0421 21.0273 11.5975 20.805C11.1529 20.5827 10.9727 20.0421 11.195 19.5976L12.1863 17.615C12.1917 17.6036 12.1973 17.5924 12.2031 17.5814L13.9146 14.1583C13.6034 14.0667 13.2256 13.9423 12.7988 13.7764C11.7294 13.3605 10.3442 12.6802 8.92538 11.5924C7.79753 12.5167 6.69473 13.0764 5.83285 13.4112C5.33899 13.603 4.92286 13.7216 4.62401 13.7931C4.47449 13.8288 4.35399 13.8529 4.26741 13.8684C4.2241 13.8762 4.18924 13.8818 4.16343 13.8858L4.13156 13.8904L4.12084 13.8919L4.11682 13.8924L4.11514 13.8927C4.11514 13.8927 4.11368 13.8928 4.00001 13L4.11368 13.8928C3.62061 13.9556 3.17 13.6068 3.10722 13.1137C3.0446 12.6219 3.39148 12.1723 3.88256 12.1077L3.94947 12.0967C4.00428 12.0869 4.09114 12.0698 4.20543 12.0424C4.43422 11.9877 4.77156 11.8924 5.18106 11.7334C5.84103 11.477 6.68484 11.0564 7.56458 10.3753C7.15054 9.93496 6.78945 9.48388 6.50421 9.10102C6.26672 8.78224 6.07517 8.50172 5.94227 8.29973C5.87571 8.19858 5.82359 8.11671 5.78748 8.05909C5.76942 8.03027 5.75535 8.00749 5.74545 7.99135L5.73377 7.9722L5.73032 7.96651L5.72864 7.96371C5.71133 7.9349 5.69582 7.9055 5.68208 7.87566C5.49265 7.46416 5.6393 6.96717 6.03659 6.72853C6.09037 6.69623 6.14617 6.6702 6.20315 6.65023C6.59739 6.51205 7.04758 6.66421 7.27129 7.03623L7.27266 7.0385L7.28001 7.05054C7.28695 7.06186 7.29793 7.07964 7.31274 7.10328C7.34239 7.15059 7.38731 7.2212 7.44595 7.31032C7.56343 7.48886 7.73484 7.73997 7.94765 8.02562C8.21085 8.37889 8.52772 8.77187 8.8756 9.14201C9.64226 8.24147 10.0681 7.3133 10.3056 6.55854C10.381 6.3186 10.4372 6.09683 10.4791 5.90005H9.51951C9.50696 5.90031 9.49442 5.90031 9.48191 5.90005H4.00001C3.50296 5.90005 3.10001 5.49711 3.10001 5.00005C3.10001 4.50299 3.50296 4.10005 4.00001 4.10005H8.04378L7.69503 3.40254C7.67314 3.35877 7.65516 3.31407 7.64094 3.26883C7.51078 2.8546 7.69671 2.39547 8.09752 2.19507ZM16.5 13.0125L18.5438 17.1H14.4562L16.5 13.0125Z",fill:"currentColor"},null,-1),C("path",{d:"M15.1 4.00007C15.1 3.50301 15.5029 3.10007 16 3.10007H18C19.6016 3.10007 20.9 4.39844 20.9 6.00007V8.00007C20.9 8.49712 20.497 8.90007 20 8.90007C19.5029 8.90007 19.1 8.49712 19.1 8.00007V6.00007C19.1 5.39255 18.6075 4.90007 18 4.90007H16C15.5029 4.90007 15.1 4.49712 15.1 4.00007Z",fill:"currentColor"},null,-1),C("path",{d:"M3.99998 15.1001C4.49703 15.1001 4.89998 15.503 4.89998 16.0001V18.0001C4.89998 18.6076 5.39246 19.1001 5.99998 19.1001H7.99998C8.49703 19.1001 8.89998 19.503 8.89998 20.0001C8.89998 20.4971 8.49703 20.9001 7.99998 20.9001H5.99998C4.39835 20.9001 3.09998 19.6017 3.09998 18.0001V16.0001C3.09998 15.503 3.50292 15.1001 3.99998 15.1001Z",fill:"currentColor"},null,-1)])])}const Wye=St({name:"kimi-translate",render:Hye}),qye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uye(e,t){return v(),E("svg",qye,[...t[0]||(t[0]=[C("path",{d:"M8.10001 3C8.10001 2.50294 8.50295 2.1 9.00001 2.1H15C15.4971 2.1 15.9 2.50294 15.9 3C15.9 3.49706 15.4971 3.9 15 3.9H9.00001C8.50295 3.9 8.10001 3.49706 8.10001 3Z",fill:"currentColor"},null,-1),C("path",{d:"M10 15.9C9.50295 15.9 9.10001 15.4971 9.10001 15L9.10001 10C9.10001 9.50294 9.50295 9.1 10 9.1C10.4971 9.1 10.9 9.50294 10.9 10L10.9 15C10.9 15.4971 10.4971 15.9 10 15.9Z",fill:"currentColor"},null,-1),C("path",{d:"M13.1 15C13.1 15.4971 13.5029 15.9 14 15.9C14.4971 15.9 14.9 15.4971 14.9 15L14.9 10C14.9 9.50294 14.4971 9.1 14 9.1C13.5029 9.1 13.1 9.50294 13.1 10V15Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.10001 6C2.10001 5.50294 2.50295 5.1 3.00001 5.1H4.99152C4.99785 5.09993 5.00417 5.09993 5.01048 5.1H18.9895C18.9958 5.09993 19.0021 5.09993 19.0085 5.1H21C21.4971 5.1 21.9 5.50294 21.9 6C21.9 6.49706 21.4971 6.9 21 6.9H19.8281L18.8448 18.6993C18.7412 19.9432 17.7013 20.9 16.4531 20.9H7.54686C6.29865 20.9 5.25881 19.9432 5.15515 18.6993L4.17188 6.9H3.00001C2.50295 6.9 2.10001 6.49706 2.10001 6ZM5.97811 6.9L18.0219 6.9L17.0511 18.5498C17.0251 18.8608 16.7652 19.1 16.4531 19.1H7.54686C7.23481 19.1 6.97485 18.8608 6.94893 18.5498L5.97811 6.9Z",fill:"currentColor"},null,-1)])])}const Kye=St({name:"kimi-trash",render:Uye}),Vye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zye(e,t){return v(),E("svg",Vye,[...t[0]||(t[0]=[C("path",{d:"M7.36336 3.3634C7.71483 3.01192 8.28533 3.01192 8.6368 3.3634C8.98817 3.71488 8.98824 4.2854 8.6368 4.63683L6.17391 7.09972H15.0001C18.2585 7.09977 20.9005 9.74166 20.9005 13.0001C20.9004 16.2585 18.2585 18.9005 15.0001 18.9005H7.00008C6.50307 18.9005 6.09976 18.4971 6.09969 18.0001C6.09969 17.5031 6.50302 17.0997 7.00008 17.0997H15.0001C17.2644 17.0997 19.0996 15.2644 19.0997 13.0001C19.0997 10.7358 17.2644 8.90055 15.0001 8.90051H6.17391L8.6368 11.3634L8.69832 11.4318C8.98668 11.7853 8.96632 12.3073 8.6368 12.6368C8.30728 12.9663 7.78521 12.9867 7.43172 12.6984L7.36336 12.6368L3.36336 8.63683C3.33098 8.60445 3.30286 8.56908 3.27645 8.53332C3.25597 8.50559 3.23607 8.47741 3.21883 8.44738C3.20492 8.42311 3.19221 8.39837 3.18074 8.37316C3.1764 8.36365 3.17109 8.35453 3.16707 8.34484C3.1627 8.33427 3.1593 8.32331 3.15535 8.31261C3.12946 8.24274 3.11237 8.16872 3.10457 8.09191C3.09258 7.97426 3.10262 7.85446 3.1368 7.74035C3.14281 7.72035 3.15094 7.70114 3.15828 7.68176C3.16165 7.67283 3.16341 7.66325 3.16707 7.65441C3.17216 7.64216 3.17806 7.63025 3.18367 7.61828C3.19055 7.60356 3.19744 7.58874 3.20516 7.57433C3.24709 7.49624 3.3012 7.42556 3.36336 7.3634L7.36336 3.3634Z",fill:"currentColor"},null,-1)])])}const Gye=St({name:"kimi-undo",render:Zye}),Qye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yye(e,t){return v(),E("svg",Qye,[...t[0]||(t[0]=[C("path",{d:"M11.9997 12.8779C16.0197 12.878 19.4393 15.3848 20.7048 18.8828C21.0812 19.9234 20.2782 20.8962 19.2038 21.0137L18.9861 21.0264H5.0134L4.79562 21.0137C3.7213 20.8961 2.91743 19.9233 3.29367 18.8828C4.55905 15.3847 7.9797 12.8781 11.9997 12.8779ZM11.9997 14.6777C8.84467 14.6779 6.17462 16.5794 5.09152 19.2256H18.9079C17.8248 16.5793 15.1549 14.6778 11.9997 14.6777ZM12.2312 3.00586C14.6088 3.1264 16.4997 5.09239 16.4997 7.5L16.4939 7.73145C16.3734 10.1091 14.4073 11.9999 11.9997 12C9.59225 11.9998 7.62604 10.109 7.50558 7.73145L7.49973 7.5C7.49973 5.01485 9.51462 3.00021 11.9997 3L12.2312 3.00586ZM11.9997 4.7998C10.5087 4.80001 9.29953 6.00896 9.29953 7.5C9.29953 8.99104 10.5087 10.2 11.9997 10.2002C13.4908 10.2001 14.6999 8.99112 14.6999 7.5C14.6999 6.00888 13.4908 4.79989 11.9997 4.7998Z",fill:"currentColor"},null,-1)])])}const Jye=St({name:"kimi-user",render:Yye}),Xye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e9e(e,t){return v(),E("svg",Xye,[...t[0]||(t[0]=[C("path",{d:"M11.9996 7C11.5026 7 11.0996 7.36985 11.0996 7.82609V14.1739C11.0996 14.6301 11.5026 15 11.9996 15C12.4967 15 12.8996 14.6301 12.8996 14.1739V7.82609C12.8996 7.36985 12.4967 7 11.9996 7Z",fill:"currentColor"},null,-1),C("path",{d:"M12.8996 17.1006C12.8996 17.5974 12.4968 18.001 11.9992 18.001C11.5024 18.001 11.0996 17.5974 11.0996 17.1006C11.0996 16.6038 11.5024 16.2002 11.9992 16.2002C12.4968 16.2002 12.8996 16.6038 12.8996 17.1006Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5108 3.5501C13.3946 1.61676 10.6041 1.61676 9.48786 3.5501L1.69363 17.0501C0.577423 18.9834 1.97269 21.4001 4.20511 21.4001H19.7936C22.026 21.4001 23.4212 18.9834 22.305 17.0501L14.5108 3.5501ZM11.0467 4.4501C11.4701 3.71676 12.5286 3.71676 12.952 4.4501L20.7462 17.9501C21.1696 18.6834 20.6403 19.6001 19.7936 19.6001H4.20511C3.35833 19.6001 2.82909 18.6834 3.25248 17.9501L11.0467 4.4501Z",fill:"currentColor"},null,-1)])])}const t9e=St({name:"kimi-warning",render:e9e}),n9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i9e(e,t){return v(),E("svg",n9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 6h8m4 0h4M6 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0m-2 0h2m4 0h10m-5 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 18h11m4 0h1"},null,-1)])])}const o9e=St({name:"tabler-adjustments-horizontal",render:i9e}),s9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function r9e(e,t){return v(),E("svg",s9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 6l-6 6l6 6"},null,-1)])])}const l9e=St({name:"tabler-chevron-left",render:r9e}),a9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function u9e(e,t){return v(),E("svg",a9e,[...t[0]||(t[0]=[C("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[C("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"}),C("path",{d:"m9 12l2 2l4-4"})],-1)])])}const c9e=St({name:"tabler-circle-check",render:u9e}),d9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function f9e(e,t){return v(),E("svg",d9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.56 3.69a9 9 0 0 0-2.92 1.95M3.69 8.56A9 9 0 0 0 3 12m.69 3.44a9 9 0 0 0 1.95 2.92m2.92 1.95A9 9 0 0 0 12 21m3.44-.69a9 9 0 0 0 2.92-1.95m1.95-2.92A9 9 0 0 0 21 12m-.69-3.44a9 9 0 0 0-1.95-2.92m-2.92-1.95A9 9 0 0 0 12 3"},null,-1)])])}const h9e=St({name:"tabler-circle-dashed",render:f9e}),p9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function g9e(e,t){return v(),E("svg",p9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 15h10m-8-4v4m6-4v4"},null,-1)])])}const m9e=St({name:"tabler-device-desktop",render:g9e}),v9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function y9e(e,t){return v(),E("svg",v9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 3h6m-5 6h4m-4-6v6L6 20a.7.7 0 0 0 .5 1h11a.7.7 0 0 0 .5-1L14 9V3"},null,-1)])])}const k9e=St({name:"tabler-flask",render:y9e}),b9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function A9e(e,t){return v(),E("svg",b9e,[...t[0]||(t[0]=[C("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[C("path",{d:"M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm11-2v16"}),C("path",{d:"m9 10l2 2l-2 2"})],-1)])])}const C9e=St({name:"tabler-layout-sidebar-right-collapse",render:A9e}),w9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function x9e(e,t){return v(),E("svg",w9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3L18 10a3 3 0 0 0-6-6l-6.5 6.5a4.5 4.5 0 0 0 9 9L21 13"},null,-1)])])}const S9e=St({name:"tabler-paperclip",render:x9e}),_9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function M9e(e,t){return v(),E("svg",_9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M4 18v-3.7a1.5 1.5 0 0 0-1.5-1.5H2v-1.6h.5A1.5 1.5 0 0 0 4 9.7V6a3 3 0 0 1 3-3h1v2H7a1 1 0 0 0-1 1v4.1A2 2 0 0 1 4.626 12A2 2 0 0 1 6 13.9V18a1 1 0 0 0 1 1h1v2H7a3 3 0 0 1-3-3m16-3.7V18a3 3 0 0 1-3 3h-1v-2h1a1 1 0 0 0 1-1v-4.1a2 2 0 0 1 1.374-1.9A2 2 0 0 1 18 10.1V6a1 1 0 0 0-1-1h-1V3h1a3 3 0 0 1 3 3v3.7a1.5 1.5 0 0 0 1.5 1.5h.5v1.6h-.5a1.5 1.5 0 0 0-1.5 1.5"},null,-1)])])}const I9e=St({name:"ri-braces-line",render:M9e}),E9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function T9e(e,t){return v(),E("svg",E9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M9 3V1H7v2H3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4V1h-2v2zm-5 7h16v9H4zm0-5h3v1h2V5h6v1h2V5h3v3H4zm5.879 5.964L12 13.086l2.121-2.122l1.415 1.415l-2.122 2.121l2.121 2.121l-1.414 1.414L12 15.915l-2.121 2.12l-1.415-1.414l2.122-2.12l-2.122-2.122z"},null,-1)])])}const L9e=St({name:"ri-calendar-close-line",render:T9e}),N9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function F9e(e,t){return v(),E("svg",N9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M7 3V1h2v2h6V1h2v2h4a1 1 0 0 1 1 1v5h-2V5h-3v2h-2V5H9v2H7V5H4v14h6v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm10 9a4 4 0 1 0 0 8a4 4 0 0 0 0-8m-6 4a6 6 0 1 1 12 0a6 6 0 0 1-12 0m5-3v3.414l2.293 2.293l1.414-1.414L18 15.586V13z"},null,-1)])])}const D9e=St({name:"ri-calendar-schedule-line",render:F9e}),B9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $9e(e,t){return v(),E("svg",B9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M9 1v2h6V1h2v2h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1zm11 10H4v8h16zM8 14v2H6v-2zm10 0v2h-8v-2zM7 5H4v4h16V5h-3v2h-2V5H9v2H7z"},null,-1)])])}const R9e=St({name:"ri-calendar-todo-line",render:$9e}),z9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function O9e(e,t){return v(),E("svg",z9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m23 12l-7.071 7.071l-1.414-1.414L20.172 12l-5.657-5.657l1.414-1.414zM3.828 12l5.657 5.657l-1.414 1.414L1 12l7.071-7.071l1.414 1.414z"},null,-1)])])}const P9e=St({name:"ri-code-line",render:O9e}),j9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function H9e(e,t){return v(),E("svg",j9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m-4-7h8a4 4 0 0 1-8 0m0-2a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m8 0a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3"},null,-1)])])}const W9e=St({name:"ri-emotion-line",render:H9e}),q9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function U9e(e,t){return v(),E("svg",q9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm11-3v8h-2V6.413l-7.793 7.794l-1.414-1.414L17.585 5H13V3z"},null,-1)])])}const K9e=St({name:"ri-external-link-line",render:U9e}),V9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Z9e(e,t){return v(),E("svg",V9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12 3c5.392 0 9.878 3.88 10.819 9c-.94 5.12-5.427 9-10.819 9s-9.878-3.88-10.818-9C2.122 6.88 6.608 3 12 3m0 16a9.005 9.005 0 0 0 8.778-7a9.005 9.005 0 0 0-17.555 0A9.005 9.005 0 0 0 12 19m0-2.5a4.5 4.5 0 1 1 0-9a4.5 4.5 0 0 1 0 9m0-2a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5"},null,-1)])])}const G9e=St({name:"ri-eye-line",render:Z9e}),Q9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Y9e(e,t){return v(),E("svg",Q9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M17.883 19.297A10.95 10.95 0 0 1 12 21c-5.392 0-9.878-3.88-10.818-9A11 11 0 0 1 4.52 5.935L1.394 2.808l1.414-1.414l19.799 19.798l-1.414 1.415zM5.936 7.35A8.97 8.97 0 0 0 3.223 12a9.005 9.005 0 0 0 13.201 5.838l-2.028-2.028A4.5 4.5 0 0 1 8.19 9.604zm6.978 6.978l-3.242-3.241a2.5 2.5 0 0 0 3.241 3.241m7.893 2.265l-1.431-1.431A8.9 8.9 0 0 0 20.778 12A9.005 9.005 0 0 0 9.552 5.338L7.974 3.76C9.221 3.27 10.58 3 12 3c5.392 0 9.878 3.88 10.819 9a10.95 10.95 0 0 1-2.012 4.593m-9.084-9.084Q11.86 7.5 12 7.5a4.5 4.5 0 0 1 4.492 4.778z"},null,-1)])])}const J9e=St({name:"ri-eye-off-line",render:Y9e}),X9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function e4e(e,t){return v(),E("svg",X9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM11 11V8h2v3h3v2h-3v3h-2v-3H8v-2z"},null,-1)])])}const t4e=St({name:"ri-file-add-line",render:e4e}),n4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i4e(e,t){return v(),E("svg",n4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M13 9h8L11 24v-9H4l9-15zm-2 2V7.22L7.532 13H13v4.394L17.263 11z"},null,-1)])])}const o4e=St({name:"ri-flashlight-line",render:i4e}),s4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function r4e(e,t){return v(),E("svg",s4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M14 4.438A2.437 2.437 0 0 0 16.438 2h1.125A2.437 2.437 0 0 0 20 4.438v1.125A2.437 2.437 0 0 0 17.563 8h-1.125A2.437 2.437 0 0 0 14 5.563zM1 11a6 6 0 0 0 6-6h2a6 6 0 0 0 6 6v2a6 6 0 0 0-6 6H7a6 6 0 0 0-6-6zm3.876 1A8.04 8.04 0 0 1 8 15.124A8.04 8.04 0 0 1 11.124 12A8.04 8.04 0 0 1 8 8.876A8.04 8.04 0 0 1 4.876 12m12.374 2A3.25 3.25 0 0 1 14 17.25v1.5A3.25 3.25 0 0 1 17.25 22h1.5A3.25 3.25 0 0 1 22 18.75v-1.5A3.25 3.25 0 0 1 18.75 14z"},null,-1)])])}const l4e=St({name:"ri-sparkling-line",render:r4e}),a4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function u4e(e,t){return v(),E("svg",a4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])}const c4e=St({name:"ri-folder-fill",render:u4e}),d4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function f4e(e,t){return v(),E("svg",d4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M6 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2M3 6a3 3 0 1 1 4 2.83V9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-.17a3.001 3.001 0 1 1 2 0V9a4 4 0 0 1-4 4h-2v2.17a3.001 3.001 0 1 1-2 0V13H9a4 4 0 0 1-4-4v-.17A3 3 0 0 1 3 6m15-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-6 12a1 1 0 1 0 0 2a1 1 0 0 0 0-2"},null,-1)])])}const h4e=St({name:"ri-git-fork-line",render:f4e}),p4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function g4e(e,t){return v(),E("svg",p4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M15 5h2a2 2 0 0 1 2 2v8.17a3.001 3.001 0 1 1-2 0V7h-2v3l-4.5-4L15 2zM5 8.83a3.001 3.001 0 1 1 2 0v6.34a3.001 3.001 0 1 1-2 0zM6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 12a1 1 0 1 0 0-2a1 1 0 0 0 0 2m12 0a1 1 0 1 0 0-2a1 1 0 0 0 0 2"},null,-1)])])}const m4e=St({name:"ri-git-pull-request-line",render:g4e}),v4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function y4e(e,t){return v(),E("svg",v4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M2 18h7v2H2zm0-7h9v2H2zm0-7h20v2H2zm18.674 9.025l1.156-.391l1 1.732l-.916.805a4 4 0 0 1 0 1.658l.916.805l-1 1.732l-1.156-.391a4 4 0 0 1-1.435.83L19 21h-2l-.24-1.196a4 4 0 0 1-1.434-.83l-1.156.392l-1-1.732l.916-.805a4 4 0 0 1 0-1.658l-.916-.805l1-1.732l1.156.391c.41-.37.898-.655 1.435-.83L17 11h2l.24 1.196a4 4 0 0 1 1.434.83M18 18a2 2 0 1 0 0-4a2 2 0 0 0 0 4"},null,-1)])])}const k4e=St({name:"ri-list-settings-line",render:y4e}),b4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function A4e(e,t){return v(),E("svg",b4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M10 2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H8v2h5V9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1H8v6h5v-1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1H7a1 1 0 0 1-1-1V8H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm9 16h-4v2h4zm0-8h-4v2h4zM9 4H5v2h4z"},null,-1)])])}const C4e=St({name:"ri-node-tree",render:A4e}),w4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function x4e(e,t){return v(),E("svg",w4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m13.827 1.69l8.486 8.485l-1.415 1.414l-.707-.707l-4.242 4.243l-.707 3.536l-1.415 1.414l-4.242-4.243l-4.95 4.95l-1.414-1.414l4.95-4.95l-4.243-4.243l1.414-1.414l3.536-.707l4.242-4.243l-.707-.707zm.707 3.536l-4.67 4.67l-2.822.565l6.5 6.5l.564-2.822l4.671-4.67z"},null,-1)])])}const S4e=St({name:"ri-pushpin-line",render:x4e}),_4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function M4e(e,t){return v(),E("svg",_4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M20 4v12h3l-4 5l-4-5h3V4zm-8 14v2H3v-2zm2-7v2H3v-2zm0-7v2H3V4z"},null,-1)])])}const I4e=St({name:"ri-sort-desc",render:M4e}),E4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function T4e(e,t){return v(),E("svg",E4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m12 18.26l-7.053 3.948l1.575-7.928L.588 8.792l8.027-.952L12 .5l3.385 7.34l8.027.952l-5.934 5.488l1.575 7.928z"},null,-1)])])}const L4e=St({name:"ri-star-fill",render:T4e}),N4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function F4e(e,t){return v(),E("svg",N4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m12 18.26l-7.053 3.948l1.575-7.928L.588 8.792l8.027-.952L12 .5l3.385 7.34l8.027.952l-5.934 5.488l1.575 7.928zm0-2.292l4.247 2.377l-.948-4.773l3.573-3.305l-4.833-.573l-2.038-4.419l-2.039 4.42l-4.833.572l3.573 3.305l-.948 4.773z"},null,-1)])])}const D4e=St({name:"ri-star-line",render:F4e}),B4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $4e(e,t){return v(),E("svg",B4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M5.33 3.272a3.5 3.5 0 0 1 4.254 4.962l10.709 10.71l-1.414 1.414l-10.71-10.71a3.502 3.502 0 0 1-4.962-4.255L5.444 7.63a1.5 1.5 0 0 0 2.121-2.121zm10.367 1.883l3.182-1.768l1.414 1.415l-1.768 3.182l-1.768.353l-2.12 2.121l-1.415-1.414l2.121-2.121zm-6.718 8.132l1.415 1.414l-5.304 5.303a1 1 0 0 1-1.492-1.327l.078-.087z"},null,-1)])])}const R4e=St({name:"ri-tools-line",render:$4e}),z4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function O4e(e,t){return v(),E("svg",z4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m20.97 17.172l-1.414 1.414l-3.535-3.535l-.073.074l-.707 3.536l-1.415 1.414l-4.242-4.243l-4.95 4.95l-1.414-1.414l4.95-4.95l-4.243-4.243L5.34 8.761l3.536-.707l.073-.074l-3.536-3.536L6.828 3.03zM10.365 9.394l-.502.502l-2.822.565l6.5 6.5l.564-2.822l.502-.502zm8.411.074l-1.34 1.34l1.414 1.415l1.34-1.34l.707.707l1.415-1.415l-8.486-8.485l-1.414 1.414l.707.707l-1.34 1.34l1.414 1.415l1.34-1.34z"},null,-1)])])}const P4e=St({name:"ri-unpin-line",render:O4e}),j4e=` - - -`,H4e=` - - - -`,W4e=` - - - -`,q4e=` - - -`,U4e=` - - -`,K4e=` - - -`,V4e=` - - -`,gR=` - - -`,Z4e=` - - -`,G4e=` - - -`,Q4e=` - - -`,Y4e=` - - - -`,J4e=` - - - -`,X4e=` - - -`,e3e=` - - - -`,t3e=` - - -`,mR=` - - - -`,n3e=` - - -`,i3e=` - - -`,o3e=` - - -`,s3e=` - - -`,w8=` - - - - -`,r3e=` - - - - -`,l3e=` - - -`,vR=` - - - - -`,a3e=` - - - -`,u3e=` - - - - - -`,c3e=` - - -`,d3e=` - - -`,f3e=` - - -`,h3e=` - - -`,p3e=` - - -`,g3e=` - - -`,m3e=` - - - -`,v3e=` - - - -`,y3e=` - - -`,k3e=` - - - - - - - - - - - -`,b3e=` - - - - -`,A3e=` - - - - -`,C3e=` - - - - - - - - - - - - -`,w3e=` - - -`,x3e=` - - -`,S3e=` - - - - -`,_3e=` - - -`,M3e=` - - -`,I3e=` - - - - -`,E3e=` - - - - -`,T3e=` - - - - -`,L3e=` - - - -`,N3e=` - - -`,F3e=` - - -`,D3e=` - - - -`,B3e=` - - - - -`,$3e=` - - -`,R3e=` - - -`,z3e=` - - -`,O3e=` - - - -`,P3e=` - - - - -`,j3e=` - - -`,H3e=` - - -`,W3e='',q3e=` - - -`,U3e=` - - -`,K3e=` - - - - -`,V3e=` - - - - -`,Z3e=` - - -`,G3e=` - - - - - - - -`,Q3e=` - - - - -`,Y3e=` - - - - - -`,J3e=` - - -`,X3e=` - - -`,eke=` - - - - -`,tke='',nke='',ike='',oke='',ske='',rke='',lke='',ake='',uke='',cke='',dke='',fke='',hke='',pke='',yR='',gke='',mke='',vke='',yke='',kR='',kke='',bke='',Ake='',Cke='',wke='',xke='',Ske='',_ke='',Mke='',Ike='',Eke='',Tke={sm:14,md:16,lg:20};function Et(e,t){return{component:e,svg:t}}const bR={plus:Et(sme,j4e),"chat-new":Et(ame,H4e),"calendar-close":Et(L9e,cke),"calendar-schedule":Et(D9e,dke),"calendar-todo":Et(R9e,fke),close:Et(qme,X4e),check:Et(_me,gR),"circle-check":Et(zme,Y4e),"state-open":Et(h9e,oke),"state-done":Et(c9e,ike),archive:Et(dme,W4e),search:Et(oye,R3e),copy:Et(Xme,mR),link:Et(m2e,w3e),"external-link":Et(K9e,yR),download:Et(sve,i3e),undo:Et(Gye,J3e),send:Et(lye,z3e),image:Et(Gve,m3e),settings:Et(cye,O3e),sliders:Et(Cye,W3e),"light-mode":Et(h2e,C3e),"dark-mode":Et(nve,n3e),"follow-system":Et(Lve,c3e),"log-in":Et(mye,j3e),"log-out":Et(kye,H3e),hand:Et(Wve,p3e),"full-access":Et(Dve,d3e),"shield-question":Et(hye,P3e),"chevron-down":Et(Eme,Z4e),"chevron-right":Et(Nme,G4e),"chevron-left":Et(l9e,nke),"chevron-up":Et(Bme,Q4e),"arrow-up":Et(wme,V4e),"arrow-down":Et(pme,q4e),"arrow-right":Et(bme,K4e),"arrow-left":Et(vme,U4e),minus:Et(S2e,_3e),microscope:Et(I2e,M3e),flask:Et(k9e,rke),"panel-collapse":Et(l2e,b3e),"panel-collapse-right":Et(C9e,lke),"panel-expand":Et(c2e,A3e),expand:Et(dve,s3e),collapse:Et(Vme,e3e),list:Et(k2e,x3e),"list-settings":Et(k4e,Cke),"tree-view":Et(C4e,wke),sort:Et(I4e,Ske),grip:Et(Pve,h3e),"session-admin":Et(o9e,tke),folder:Et(Cve,vR),"folder-closed":Et(kve,l3e),"folder-plus":Et(Ive,u3e),"folder-solid":Et(c4e,kke),file:Et(V_,w8),"file-text":Et(mve,r3e),"file-edit":Et(ave,o3e),"file-plus":Et(t4e,vke),"file-off":Et(V_,w8),attachment:Et(S9e,ake),"image-off":Et(Jve,v3e),eye:Et(G9e,gke),"eye-off":Et(J9e,mke),code:Et(P9e,hke),terminal:Et(Dye,V3e),"device-desktop":Et(m9e,ske),pencil:Et(W2e,N3e),tool:Et(R4e,Ike),glob:Et(I9e,uke),globe:Et(Rve,f3e),translate:Et(Wye,Q3e),"check-list":Et(Pye,G3e),bolt:Et(o4e,yke),sparkling:Et(l4e,kR),keyboard:Et(o2e,k3e),trash:Et(Kye,Y3e),"git-fork":Et(h4e,bke),"git-pull-request":Et(m4e,Ake),message:Et(Qme,t3e),mail:Et(C2e,S3e),user:Et(Jye,X3e),info:Et(t2e,y3e),"help-circle":Et(J2e,B3e),"alert-triangle":Et(t9e,eke),clock:Et(jme,J4e),robot:Et(tye,$3e),sparkles:Et(Lye,K3e),"gen-title":Et(Sve,a3e),histogram:Et(Kve,g3e),music:Et(R2e,T3e),emoji:Et(W9e,pke),target:Et(Iye,U3e),pause:Et(P2e,L3e),play:Et(K2e,F3e),power:Et(G2e,D3e),pin:Et(S4e,xke),stop:Et(Sye,q3e),star:Et(L4e,_ke),"star-outline":Et(D4e,Mke),unpin:Et(P4e,Eke),"dots-horizontal":Et(D2e,E3e),model:Et(L2e,I3e),thinking:Et(Rye,Z3e)};function Lke(e){return bR[e]}function Nke(e,t){return e.replace(/]*>/,n=>n.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^${r}`}function $5e(e,t,n){return(n.xhtmlOut?`
      -`:`
      -`)+`
      -
        -`}function R5e(){return`
      -
      -`}function z5e(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`
    1. `}function O5e(){return`
    2. -`}function P5e(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),` ↩︎`}function j5e(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=B5e,e.renderer.rules.footnote_block_open=$5e,e.renderer.rules.footnote_block_close=R5e,e.renderer.rules.footnote_open=z5e,e.renderer.rules.footnote_close=O5e,e.renderer.rules.footnote_anchor=P5e,e.renderer.rules.footnote_caption=D5e,e.renderer.rules.footnote_anchor_name=F5e;function i(l,a,u,c){const d=l.bMarks[a]+l.tShift[a],h=l.eMarks[a];if(d+4>h||l.src.charCodeAt(d)!==91||l.src.charCodeAt(d+1)!==94)return!1;let p;for(p=d+2;p=h||l.src.charCodeAt(++p)!==58)return!1;if(c)return!0;p++,l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.refs||(l.env.footnotes.refs={});const g=l.src.slice(d+2,p-2);l.env.footnotes.refs[`:${g}`]=-1;const m=new l.Token("footnote_reference_open","",1);m.meta={label:g},m.level=l.level++,l.tokens.push(m);const k=l.bMarks[a],w=l.tShift[a],y=l.sCount[a],b=l.parentType,A=p,T=l.sCount[a]+p-(l.bMarks[a]+l.tShift[a]);let S=T;for(;p=u||l.src.charCodeAt(c)!==94||l.src.charCodeAt(c+1)!==91)return!1;const d=c+2,h=t(l,c+1);if(h<0)return!1;if(!a){l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.list||(l.env.footnotes.list=[]);const p=l.env.footnotes.list.length,g=[];l.md.inline.parse(l.src.slice(d,h),l.md,l.env,g);const m=l.push("footnote_ref","",0);m.meta={id:p},l.env.footnotes.list[p]={content:l.src.slice(d,h),tokens:g}}return l.pos=h+1,l.posMax=u,!0}function s(l,a){const u=l.posMax,c=l.pos;if(c+3>u||!l.env.footnotes||!l.env.footnotes.refs||l.src.charCodeAt(c)!==91||l.src.charCodeAt(c+1)!==94)return!1;let d;for(d=c+2;d=u)return!1;d++;const h=l.src.slice(c+2,d-1);if(typeof l.env.footnotes.refs[`:${h}`]>"u")return!1;if(!a){l.env.footnotes.list||(l.env.footnotes.list=[]);let p;l.env.footnotes.refs[`:${h}`]<0?(p=l.env.footnotes.list.length,l.env.footnotes.list[p]={label:h,count:0},l.env.footnotes.refs[`:${h}`]=p):p=l.env.footnotes.refs[`:${h}`];const g=l.env.footnotes.list[p].count;l.env.footnotes.list[p].count++;const m=l.push("footnote_ref","",0);m.meta={id:p,subId:g,label:h}}return l.pos=d,l.posMax=u,!0}function r(l){let a,u,c,d=!1;const h={};if(!l.env.footnotes||(l.tokens=l.tokens.filter(function(g){return g.type==="footnote_reference_open"?(d=!0,u=[],c=g.meta.label,!1):g.type==="footnote_reference_close"?(d=!1,h[":"+c]=u,!1):(d&&u.push(g),!d)}),!l.env.footnotes.list))return;const p=l.env.footnotes.list;l.tokens.push(new l.Token("footnote_block_open","",1));for(let g=0,m=p.length;g0?p[g].count:1;for(let b=0;b?@[\]^_`{|}~-])/g;function U5e(e,t){const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==94||t||i+2>=n)return!1;e.pos=i+1;let o=!1;for(;e.pos{t.exports=function(m,k){k=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},k),m.core.ruler.after("inline","github-task-lists",function(w){for(var y=w.tokens,b=0,A=2;A=0;y--)if(m[y].level===w)return y;return-1}function o(m,k){return d(m[k])&&h(m[k-1])&&p(m[k-2])&&g(m[k])}function s(m,k,w,y){var b=w.idPrefix+k;m.children[0].content=m.children[0].content.slice(3),m.children.unshift(l(b,y)),m.children.push(a(y)),m.children.unshift(r(m,b,w,y)),w.divWrap&&(m.children.unshift(u(w,y)),m.children.push(c(y)))}function r(m,k,w,y){var b=new y("checkbox_input","input",0);return b.attrs=[["type","checkbox"],["id",k]],/^\[[xX]\][ \u00A0]/.test(m.content)===!0&&b.attrs.push(["checked","true"]),w.disabled===!0&&b.attrs.push(["disabled","true"]),b}function l(m,k){var w=new k("label_open","label",1);return w.attrs=[["for",m]],w}function a(m){return new m("label_close","label",-1)}function u(m,k){var w=new k("checkbox_open","div",0);return w.attrs=[["class",m.divClass]],w}function c(m){return new m("checkbox_close","div",-1)}function d(m){return m.type==="inline"}function h(m){return m.type==="paragraph_open"}function p(m){return m.type==="list_item_open"}function g(m){return/^\[[xX \u00A0]\][ \u00A0]/.test(m.content)}})});const Z5e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function G5e(e){return e>=55296&&e<=57343||e>1114111?65533:Z5e.get(e)??e}function Q5e(e){const t=atob(e),n=t.length&-2,i=new Uint16Array(n/2);for(let o=0,s=0;o=bo.ZERO&&e<=bo.NINE}function J5e(e){return e>=bo.UPPER_A&&e<=bo.UPPER_F||e>=bo.LOWER_A&&e<=bo.LOWER_F}function X5e(e){return e>=bo.UPPER_A&&e<=bo.UPPER_Z||e>=bo.LOWER_A&&e<=bo.LOWER_Z||S8(e)}function e6e(e){return e===bo.EQUALS||X5e(e)}var Is;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Is||(Is={}));var lc;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(lc||(lc={}));var t6e=class{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=Is.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=lc.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=Is.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Is.EntityStart:return e.charCodeAt(t)===bo.NUM?(this.state=Is.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Is.NamedEntity,this.stateNamedEntity(e,t));case Is.NumericStart:return this.stateNumericStart(e,t);case Is.NumericDecimal:return this.stateNumericDecimal(e,t);case Is.NumericHex:return this.stateNumericHex(e,t);case Is.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|X_)===bo.LOWER_X?(this.state=Is.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Is.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t>14;for(;t>7;if(this.runConsumed===0){const l=i&hr.JUMP_TABLE;if(e.charCodeAt(t)!==l)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const l=this.runConsumed-1,a=n[this.treeIndex+1+(l>>1)],u=l%2===0?a&255:a>>8&255;if(e.charCodeAt(t)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(r>>1),i=n[this.treeIndex],o=(i&hr.VALUE_LENGTH)>>14}if(t>=e.length)break;const s=e.charCodeAt(t);if(s===bo.SEMI&&o!==0&&(i&hr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.treeIndex=i6e(n,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===lc.Attribute&&(o===0||e6e(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],o=(i&hr.VALUE_LENGTH)>>14,o!==0){if(s===bo.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==lc.Strict&&(i&hr.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&hr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~(hr.VALUE_LENGTH|hr.FLAG13):i[e+1],n),t===3&&this.emitCodePoint(i[e+2],n),n}end(){switch(this.state){case Is.NamedEntity:return this.result!==0&&(this.decodeMode!==lc.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Is.NumericDecimal:return this.emitNumericEntity(0,2);case Is.NumericHex:return this.emitNumericEntity(0,3);case Is.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Is.EntityStart:return 0}}};function n6e(e){let t="";const n=new t6e(e,i=>t+=String.fromCodePoint(i));return function(o,s){let r=0,l=0;for(;(l=o.indexOf("&",l))>=0;){t+=o.slice(r,l),n.startEntity(s);const u=n.write(o,l+1);if(u<0){r=l+n.end();break}r=l+u,l=u===0?r+1:r}const a=t+o.slice(r);return t="",a}}function i6e(e,t,n,i){const o=(t&hr.BRANCH_LENGTH)>>7,s=t&hr.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}const r=o+1>>1;let l=0,a=o-1;for(;l<=a;){const u=l+a>>>1,c=e[n+(u>>1)]>>(u&1)*8&255;if(ci)a=u-1;else return e[n+r+u]}return-1}const o6e=n6e(Y5e);function r7(e,t=lc.Legacy){return o6e(e,t)}var s6e=TR(V5e());const eM={};function r6e(e){let t=eM[e];if(t)return t;t=eM[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),s+=6;continue}}if((l&248)===240&&s+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}b9.defaultChars=";/?:@&=+$,#";b9.componentChars="";var _8=b9;const tM={};function l6e(e){let t=tM[e];if(t)return t;t=tM[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const i=l6e(t);let o="";for(let s=0,r=e.length;s=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1=56320&&a<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}A9.defaultChars=";/?:@&=+$,-_.!~*'()#";A9.componentChars="-_.!~*'()";var LR=A9;function l7(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function K2(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const a6e=/^([a-z0-9.+-]+:)/i,u6e=/:[0-9]*$/,c6e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d6e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),f6e=["'"].concat(d6e),nM=["%","/","?",";","#"].concat(f6e),iM=["/","?","#"],h6e=255,oM=/^[+a-z0-9A-Z_-]{0,63}$/,p6e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sM={javascript:!0,"javascript:":!0},rM={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g6e(e,t){if(e&&e instanceof K2)return e;const n=new K2;return n.parse(e,t),n}K2.prototype.parse=function(e,t){let n,i,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const u=c6e.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=a6e.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&sM[r])&&(s=s.substr(2),this.slashes=!0)),!sM[r]&&(o||r&&!rM[r])){let u=-1;for(let g=0;g127?y+="x":y+=w[b];if(!y.match(oM)){const b=g.slice(0,m),A=g.slice(m+1),T=w.match(p6e);T&&(b.push(T[1]),A.unshift(T[2])),A.length&&(s=A.join(".")+s),this.hostname=b.join(".");break}}}}this.hostname.length>h6e&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const a=s.indexOf("?");return a!==-1&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),rM[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};K2.prototype.parseHost=function(e){let t=u6e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var a7=g6e,NR=L5e({decode:()=>_8,encode:()=>LR,format:()=>l7,parse:()=>a7}),m6e=Object.defineProperty,FR=e=>{let t={};for(var n in e)m6e(t,n,{get:e[n],enumerable:!0});return t},hs=class{type;tag;attrs;map;nesting;level;children;content;markup;info;meta;block;hidden;constructor(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},v6e=FR({arrayReplaceAt:()=>x6e,assign:()=>C6e,countLines:()=>To,escapeHtml:()=>F6e,escapeRE:()=>B6e,fromCodePoint:()=>N0,has:()=>A6e,isMdAsciiPunct:()=>G2,isPunctChar:()=>Z2,isPunctCode:()=>M8,isSpace:()=>w6e,isString:()=>k6e,isValidEntityCode:()=>w9,isWhiteSpace:()=>L0,lib:()=>$6e,mdurl:()=>NR,normalizeReference:()=>C9,ucmicro:()=>V2,unescapeAll:()=>F0,unescapeMd:()=>I6e});const V2={Any:/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc:/[\0-\x1F\x7F-\x9F]/,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,S:/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z:/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/};function y6e(e){return Object.prototype.toString.call(e)}function k6e(e){return y6e(e)==="[object String]"}const b6e=Object.prototype.hasOwnProperty;function A6e(e,t){return b6e.call(e,t)}function C6e(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(i=>{e[i]=n[i]})}}),e}function w6e(e){return e===9||e===32}function L0(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Z2(e){return V2.P.test(e)||V2.S.test(e)}const lM=new Map;function M8(e){if(G2(e))return!0;if(e>=0&&e<128)return!1;const t=lM.get(e);if(t!==void 0)return t;const n=Z2(String.fromCharCode(e));return lM.set(e,n),n}function G2(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function C9(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function x6e(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function w9(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function N0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const DR=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,S6e=new RegExp(`${DR.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),_6e=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function M6e(e,t){if(t.charCodeAt(0)===35&&_6e.test(t)){const i=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return w9(i)?N0(i):e}const n=r7(e);return n!==e?n:e}function I6e(e){return e.includes("\\")?e.replace(DR,"$1"):e}function F0(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(S6e,(t,n,i)=>n||M6e(t,i))}const E6e=/[&<>"]/,T6e=/[&<>"]/g,L6e={"&":"&","<":"<",">":">",'"':"""};function N6e(e){return L6e[e]}function F6e(e){return E6e.test(e)?e.replace(T6e,N6e):e}const D6e=/[.?*+^$[\]\\(){}|-]/g;function B6e(e){return e.replace(D6e,"\\$&")}const $6e={mdurl:NR,ucmicro:V2};function To(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(` -`,n+1))!==-1;)t++;return t}const R6e=/(?:^|\n)[ \t]{0,3}\[\^[^\]\n]+\]:/m,z6e=/(?:^|\n)[ \t]{0,3}\*\[[^\]\n]+\]:/m,O6e=/(?:^|\n)[ \t]{0,3}\[(?!\^)(?:\\[\s\S]|[^\]\\[])+\][ \t]*:/m,u7=["references","footnotes","abbreviations","abbr","abbrs"],c7=Symbol.for("markdown-it-ts.global-state"),d7=Object.prototype.hasOwnProperty;function aM(e){return e==="reference-definition"||e==="footnote-definition"||e==="abbreviation-definition"}function sa(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mc(e){if(Array.isArray(e))return e.map(t=>mc(t));if(sa(e)){const t={};for(const n of Object.keys(e))t[n]=mc(e[n]);return t}return e}function Q2(e){return Array.isArray(e)?e.map((t,n)=>String(n)):sa(e)?Object.keys(e):[]}function I8(e,t){if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ns.has(r)?!I8(o[r],BR(i.value,r)):!0)}}function Mu(e){const t=f7(e);if(t){for(const n of u7){const i=t.snapshot[n];if(!i){delete e[n];continue}if(i.ownedKeys){j6e(e,n,i);continue}i.existed?e[n]=P6e(e[n],i.value):delete e[n]}delete e[c7]}}function F3(e){return{area:e,attempted:!0,matched:!1,attemptMs:0,blocks:0,headings:0,paragraphs:0,lists:0,fences:0,paragraphCacheHits:0,paragraphCacheMisses:0,paragraphCacheBypasses:0,listCacheHits:0,listCacheMisses:0,fenceCacheHits:0,fenceCacheMisses:0}}const E8=Symbol.for("markdown-it-ts.diagnostics");function gg(e,t){if(e)try{const n=e[E8];if(n&&typeof n=="object")return n;if(!t)return;const i={};return e[E8]=i,i}catch{return}}function lu(e){return gg(e,!1)}function W6e(e){if(e)try{const t=e[E8];t&&typeof t=="object"&&(delete t.strategy,delete t.chunk,delete t.unbounded,delete t.editable,delete t.stockFast)}catch{}}function gr(e){W6e(e)}function V1(e,t){const n=gg(e,!0);n&&(n.stockFast=t)}function Go(e,t){const n=gg(e,!0);n&&(n.strategy=t)}function D3(e,t){const n=gg(e,!0);n&&(n.chunk=t)}function $R(e,t){const n=gg(e,!0);n&&(n.unbounded=t)}const q6e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,U6e=/[\0-\x1F\x7F-\x9F]/,K6e=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,V6e=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var Z6e=class{src_Any=q6e.source;src_Cc=U6e.source;src_Z=V6e.source;src_P=K6e.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const i=this.escapeRE(e),o=this.escapeRE(t),s=`(?:(?!${this.src_ZCc}|${i}|${o}).)`;let r=`${i}${s}{0,1000}${o}`;for(let l=2;l<=n;l++)r=`${i}(?:${s}|${r}){0,1000}${o}`;return r}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},B3={validate:(e,t,n)=>{const i=n.re.get_http_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},G6e={"http:":B3,"https:":B3,"ftp:":B3,"//":{validate:function(e,t,n){const i=n.re.get_relative_proto_validator();i.lastIndex=t;const o=i.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const i=n.re.get_mailto_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Q6e="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Y6e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function J6e(){const e=Y6e.split("|");return Q6e.split("|").forEach(t=>{const n=t.indexOf(":"),i=t.slice(0,n);for(const o of t.slice(n+1))e.push(i+o)}),e}var X6e={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:J6e(),urlAuth:!1,maxLength:1e4},uM=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,i){const o=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=o,this.text=o,this.url=o}},RR=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:t,...n}=e;this.__opts__={...X6e,...n},this.__schemas__={...G6e},this.re=t||new Z6e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(i,o)=>o.normalize(i),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const i=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(i.lastIndex=0;(t=i.exec(e))!==null;){const s=e.slice(Math.max(0,t.index-65),t.index);if(o.test(s))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let i,o,s,r,l,a,u=!1,c=!1,d=!1,h=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(i=this.re.get_fuzzy_link_search(),i.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,s=this.re.get_mail_name_validator());;){const p=Math.max(h-1,0);if(o&&s&&!d&&(!l||l.index=h)break;o.lastIndex=h)break;i.lastIndexg.lastIndex))&&(g=r);let m;if(!u)for(;;){if(!a){n.lastIndexg.index)break;const y=a;a=void 0;const b=this.testSchemaAt(e,y.schema,y.lastIndex);if(b){m={schema:y.schema,index:y.index,lastIndex:y.lastIndex+b};break}}let k=m;if((!k||l&&(l.indexk.lastIndex))&&(k=l),(!k||r&&(r.indexk.lastIndex))&&(k=r),!k)break;k===l?l=void 0:k===r&&(r=void 0);const w=new uM(e,k.schema,k.index,k.lastIndex);w.schema?this.__schemas__[w.schema].normalize(w,this):this.normalize(w),t.push(w),h=k.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new uM(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[i.schema].normalize(i,this),i}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},e7e=ER({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,h=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=35,k=Math.floor,w=String.fromCharCode;function y(O){throw new RangeError(g[O])}function b(O,R){const j=[];let $=O.length;for(;$--;)j[$]=R(O[$]);return j}function A(O,R){const j=O.split("@");let $="";j.length>1&&($=j[0]+"@",O=j[1]),O=O.replace(p,".");const W=b(O.split("."),R).join(".");return $+W}function T(O){const R=[];let j=0;const $=O.length;for(;j<$;){const W=O.charCodeAt(j++);if(W>=55296&&W<=56319&&j<$){const P=O.charCodeAt(j++);(P&64512)==56320?R.push(((W&1023)<<10)+(P&1023)+65536):(R.push(W),j--)}else R.push(W)}return R}const S=O=>String.fromCodePoint(...O),x=function(O){return O>=48&&O<58?26+(O-48):O>=65&&O<91?O-65:O>=97&&O<123?O-97:36},_=function(O,R){return O+22+75*(O<26)-((R!=0)<<5)},L=function(O,R,j){let $=0;for(O=j?k(O/700):O>>1,O+=k(O/R);O>m*26>>1;$+=36)O=k(O/m);return k($+(m+1)*O/(O+38))},M=function(O){const R=[],j=O.length;let $=0,W=128,P=72,Z=O.lastIndexOf("-");Z<0&&(Z=0);for(let ae=0;ae=128&&y("not-basic"),R.push(O.charCodeAt(ae));for(let ae=Z>0?Z+1:0;ae=j&&y("invalid-input");const ne=x(O.charCodeAt(ae++));ne>=36&&y("invalid-input"),ne>k((2147483647-$)/oe)&&y("overflow"),$+=ne*oe;const ie=q<=P?1:q>=P+26?26:q-P;if(nek(2147483647/pe)&&y("overflow"),oe*=pe}const Y=R.length+1;P=L($-V,Y,V==0),k($/Y)>2147483647-W&&y("overflow"),W+=k($/Y),$%=Y,R.splice($++,0,W)}return String.fromCodePoint(...R)},N=function(O){const R=[];O=T(O);const j=O.length;let $=128,W=0,P=72;for(const V of O)V<128&&R.push(w(V));const Z=R.length;let ae=Z;for(Z&&R.push("-");ae=$&&oek((2147483647-W)/Y)&&y("overflow"),W+=(V-$)*Y,$=V;for(const oe of O)if(oe<$&&++W>2147483647&&y("overflow"),oe===$){let q=W;for(let ne=36;;ne+=36){const ie=ne<=P?1:ne>=P+26?26:ne-P;if(q32))return s;if(i===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=F0(e.slice(t,o)),s.pos=o,s.ok=!0),s}var OR=g7;const _v=-2;function t7e(e,t,n,i){let o=1,s=t+1;for(;s=0&&t+1>=c)return-1;const d=l.indexOf("]",t+1);if(d<0||d>=a)return e.linkLabelNoCloseFrom=t+1,-1;const h=t7e(l,t,a,n);if(h!==_v)return h;for(e.pos=t+1;e.pos=n)return r;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return r;t++,s++,l===40&&(l=41),r.marker=l}for(;s=0?e.attrs[n][1]:null}function o7e(e,t,n){const i=x9(e,t);i<0?y7(e,[t,n]):e.attrs[i][1]=`${e.attrs[i][1]} ${n}`}var s7e=FR({attrGet:()=>i7e,attrIndex:()=>x9,attrJoin:()=>o7e,attrPush:()=>y7,attrSet:()=>n7e,parseLinkDestination:()=>g7,parseLinkLabel:()=>m7,parseLinkTitle:()=>v7});function r7e(e){return e.includes("\r")||e.includes("\0")}function jR(e){return typeof e=="string"?e:e.toString()}function l7e(e){if(e.inlineMode){const t=new hs("inline","",0);t.content=jR(e.src),t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}const a7e=/^([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])?)*)$/,u7e=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function c7e(e,t){let n=e.pos;const i=e.src;if(i.charCodeAt(n)!==60)return!1;const o=n,s=e.posMax;for(;;){if(++n>=s)return!1;const l=i.charCodeAt(n);if(l===60)return!1;if(l===62)break}const r=i.slice(o+1,n);if(u7e.test(r)){const l=e.md.normalizeLink(r);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(a7e.test(r)){const l=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}var HR=c7e;function d7e(e,t){const n=e.src;let i=e.pos;if(n.charCodeAt(i)!==96)return!1;const o=i;i++;const s=e.posMax;for(;i2&&h.charCodeAt(0)===32&&h.charCodeAt(h.length-1)===32&&(h=h.slice(1,-1)),d.content=h}return e.pos=a,!0}e.backticks[c]=u}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=l,!0}var WR=d7e;function cM(e){const t={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let r=0;ra;u-=s[u]+1){const d=e[u];if(d.marker===l.marker&&d.open&&d.end<0){let h=!1;if((d.close||l.open)&&(d.length+l.length)%3===0&&(d.length%3!==0||l.length%3!==0)&&(h=!0),!h){const p=u>0&&!e[u-1].open?s[u-1]+1:0;s[r]=r-u+p,s[u]=p,l.open=!1,d.end=r,d.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=c)}}function f7e(e){const t=e.tokens_meta,n=e.tokens_meta.length;cM(e.delimiters);for(let i=0;i=0;o--){const s=t[o],r=s.marker;if(r!==95&&r!==42||s.end===-1)continue;const l=t[s.end],a=s.token,u=l.token,c=o>0&&t[o-1].end===s.end+1&&t[o-1].marker===r&&t[o-1].token===a-1&&t[s.end+1].token===u+1,d=r===42?qR:UR,h=i[a];c?(h.type="strong_open",h.tag="strong",h.nesting=1,h.markup=d+d,h.content=""):(h.type="em_open",h.tag="em",h.nesting=1,h.markup=d,h.content="");const p=i[u];c?(p.type="strong_close",p.tag="strong",p.nesting=-1,p.markup=d+d,p.content=""):(p.type="em_close",p.tag="em",p.nesting=-1,p.markup=d,p.content=""),c&&(i[t[o-1].token].content="",i[t[s.end+1].token].content="",o--)}}function g7e(e){const t=e.tokens_meta,n=e.tokens_meta.length;dM(e,e.delimiters);for(let i=0;i=48&&e<=57}function m7e(e){const t=e|32;return k7(e)||t>=97&&t<=102}function VR(e){const t=e|32;return t>=97&&t<=122}function v7e(e){return VR(e)||k7(e)}function y7e(e,t,n){let i=t+2;if(i>=n)return null;let o=!1,s=7,r=i;for((e.charCodeAt(i)|32)===120&&(o=!0,s=6,i++,r=i);i=n||e.charCodeAt(i)!==59?null:e.slice(t,i+1)}function k7e(e,t,n){let i=t+1;if(i>=n||!VR(e.charCodeAt(i)))return null;for(i++;i=n||e.charCodeAt(i)!==59)return null;const o=e.slice(t,i+1);return KR(o)!==o?o:null}function b7e(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=y7e(e.src,n,i);if(o){if(!t){const s=(o.charCodeAt(2)|32)===120?Number.parseInt(o.slice(3,-1),16):Number.parseInt(o.slice(2,-1),10),r=e.push("text_special","",0);r.content=w9(s)?N0(s):N0(65533),r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}else{const o=k7e(e.src,n,i);if(o){const s=KR(o);if(!t){const r=e.push("text_special","",0);r.content=s,r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}return!1}var ZR=b7e;const GR=(()=>{const e=new Array(256).fill(0),t="\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-";for(let n=0;n<32;n++)e[t.charCodeAt(n)]=1;return e})(),L8=new Array(128),QR=new Array(128);for(let e=0;e<128;e++){const t=String.fromCharCode(e);L8[e]=`\\${t}`,QR[e]=GR[e]?t:L8[e]}function fM(e,t,n){e.pending&&e.pushPending();const i=new hs("text_special","",0);i.level=e.level,i.content=t,i.markup=n,i.info="escape",e.pendingLevel=e.level,e.tokens.push(i),e.tokens_meta.push(null)}function A7e(e,t){let n=e.pos;const i=e.posMax,o=e.src;if(o.charCodeAt(n)!==92||(n++,n>=i))return!1;let s=o.charCodeAt(n);if(s===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&s<=56319&&n+1=56320&&a<=57343&&n++}return e.pos=n+1,!0}let r=o.charAt(n);if(s>=55296&&s<=56319&&n+1=56320&&a<=57343&&(r+=o.charAt(n+1),n++)}const l=`\\${r}`;return fM(e,s<256&&GR[s]?r:l,l),e.pos=n+1,!0}var YR=A7e;function C7e(e){let t,n,i=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t0&&i++,r.type==="text"&&t+1\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,XR="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",x7e=new RegExp(`^(?:${JR}|${XR}||<\\?[\\s\\S]*?\\?>|]*>|)`),S7e=new RegExp(`^(?:${JR}|${XR})`);function ez(e){return e===32||e===9||e===10||e===12||e===13}function _7e(e){if(e.length<3||e.charCodeAt(0)!==60||(e.charCodeAt(1)|32)!==97)return!1;const t=e.charCodeAt(2);return t===62||ez(t)}function M7e(e){if(e.length<4||e.charCodeAt(0)!==60||e.charCodeAt(1)!==47||(e.charCodeAt(2)|32)!==97)return!1;for(let t=3;t=97&&t<=122}function E7e(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos,o=e.src;if(o.charCodeAt(i)!==60||i+2>=n)return!1;const s=o.charCodeAt(i+1);if(s!==33&&s!==63&&s!==47&&!I7e(s))return!1;const r=o.slice(i).match(x7e);if(!r)return!1;const l=r[0];if(!t){const a=e.pushSimple("html_inline","");a.content=l,_7e(l)&&e.linkLevel++,M7e(l)&&e.linkLevel--}return e.pos+=l.length,!0}var tz=E7e;function T7e(e,t){let n,i,o,s,r,l,a,u,c="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,g=Y2(e,e.pos+1,!1);if(g<0)return!1;if(s=g+1,s=h)return!1;if(l=OR(e.src,s,e.posMax),l.ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",u=s;s=h||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(u,s++):s=g+1):s=g+1,o||(o=e.src.slice(p,g)),r=e.env.references[C9(o)],!r)return e.pos=d,!1;c=r.href,a=r.title}if(!t){i=e.src.slice(p,g);const m=[];e.md.inline.parse(i,e.md,e.env,m);const k=e.push("image","img",0);k.attrs=[["src",c],["alt",""]],k.children=m,k.content=i,a&&k.attrs.push(["title",a])}return e.pos=s,e.posMax=h,!0}var nz=T7e;function $3(e,t,n){for(;t"u")return!1;let d;if(l=r+1,l=0?(d=n.slice(p,g),d||(d=n.slice(s,r)),l=g+1):d=n.slice(s,r)}else d=n.slice(s,r);const h=e.env.references[C9(d)];if(!h)return e.pos=i,!1;a=h.href,u=h.title}if(!t){e.pos=s,e.posMax=r;const d=e.push("link_open","a",1);d.attrs=u?[["href",a],["title",u]]:[["href",a]],e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=l,e.posMax=o,!0}var iz=L7e;function oz(e){const t=e|32;return t>=97&&t<=122}function N7e(e){return e>=48&&e<=57}function F7e(e){return oz(e)||N7e(e)||e===43||e===45||e===46}function D7e(e){if(e.length===0)return null;let t=e.length-1;for(;t>=0&&F7e(e.charCodeAt(t));)t--;return t++,t>=e.length||!oz(e.charCodeAt(t))?null:e.slice(t)}function B7e(e,t,n){let i=t;for(;i0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=D7e(e.pending);if(!o)return!1;const s=B7e(e.src,n-o.length,i),r=e.md.linkify.matchAtStart(s);if(!r)return!1;let l=r.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=l.length-o.length,!0}function $7e(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.pushSimple("hardbreak","br")}else e.pending=e.pending.slice(0,-1),e.pushSimple("softbreak","br");else e.pushSimple("softbreak","br");for(n++;n=o||pM(n.charCodeAt(i)))return!1;let s=i+1;for(;si-o),n=Math.floor(t.length/2);return t.length%2===0?(t[n-1]+t[n])/2:t[n]}function j7e(e,t){return{chain:e,name:t,calls:0,hits:0,inclusiveMs:0,medianMs:0,maxMs:0,normalCalls:0,normalHits:0,silentCalls:0,silentHits:0,samples:[]}}function az(e){const t=e;if(!t)return null;if(t.__mdtsRuleProfile)return t.__mdtsRuleProfile;if(!t.__mdtsProfileRules)return null;const n=t.__mdtsProfileRules===!0?{}:t.__mdtsProfileRules,i={enabled:!0,fixture:n.fixture,mode:n.mode,startedAt:b7(),records:Object.create(null)};return t.__mdtsRuleProfile=i,i}function $h(e,t,n,i,o,s){const r=az(e);if(!r)return;const l=`${t}:${n}`,a=r.records[l]??(r.records[l]=j7e(t,n));a.calls++,a.inclusiveMs+=i,i>a.maxMs&&(a.maxMs=i),a.samples.push(i),s?(a.silentCalls++,o&&a.silentHits++):(a.normalCalls++,o&&a.normalHits++),o&&a.hits++,r.completedAt=b7()}function H7e(e){const t=az(e);if(!t)return null;const n=Object.keys(t.records);for(let i=0;io.name===e);i>=0&&this.rules.splice(i,1),this.rules.push({name:e,fn:t,alt:n?.alt||[],enabled:!0}),this.invalidateCache()}at(e,t,n){const i=this.rules.findIndex(o=>o.name===e);if(t===void 0){if(i<0)return;const o=this.rules[i];return Object.freeze({name:o.name,fn:o.fn,alt:o.alt?Object.freeze(o.alt.slice()):void 0,enabled:o.enabled})}if(i<0)throw new Error(`Parser rule not found: ${e}`);this.rules[i].fn=t,n?.alt!==void 0&&(this.rules[i].alt=n.alt),this.invalidateCache()}before(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}after(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o+1,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache.get(t)??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache.get(t)??[]}compileCache(){const e=new Set([""]);for(const i of this.rules)if(i.enabled&&i.alt)for(const o of i.alt)e.add(o);const t=new Map,n=new Map;for(const i of e){const o=[],s=[];for(const r of this.rules)r.enabled&&(i!==""&&!r.alt?.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t.set(i,o),n.set(i,s)}this.cache=t,this.namedCache=n}},uz=class{src;md;env;tokens;tokens_meta;pos;posMax;level;pending;pendingLevel;cache;delimiters;_prev_delimiters;backticks;backticksScanned;linkLevel;linkLabelNoCloseFrom;maxNesting;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.tokens_meta=new Array(i.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.linkLabelNoCloseFrom=-1,this.maxNesting=t.options.maxNesting}pushPending(){const e=new hs("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}pushSimple(e,t){this.pending&&this.pushPending();const n=new hs(e,t,0);return n.level=this.level,this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(null),n}push(e,t,n){if(this.pending&&this.pushPending(),n===0)return this.pushSimple(e,t);const i=new hs(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i}scanDelims(e,t){const{src:n,posMax:i}=this,o=n.charCodeAt(e);let s=e;for(;s0?n.charCodeAt(e-1):32,a=s@[\]\\^_`{}~]/;function mM(e,t){switch(e.src.charCodeAt(e.pos)){case 10:return rz(e,t);case 33:return nz(e,t);case 38:return ZR(e,t);case 42:case 95:return T8.tokenize(e,t);case 58:return e.md.options.linkify&&sz(e,t);case 60:return HR(e,t)||tz(e,t);case 91:return iz(e,t);case 92:return YR(e,t);case 96:return WR(e,t);case 126:return N8.tokenize(e,t);default:return lz(e,t)}}function cz(e){return!W7e.test(e)}var q7e=class{ruler;ruler2;cachedRulesVersion=-1;cachedRules=[];cachedRules2Version=-1;cachedRules2=[];defaultRulerVersion;defaultRuler2Version;constructor(){this.ruler=new gM,this.ruler2=new gM,this.ruler.push("text",lz),this.ruler.push("linkify",sz),this.ruler.push("newline",rz),this.ruler.push("escape",YR),this.ruler.push("backticks",WR),this.ruler.push("strikethrough",N8.tokenize),this.ruler.push("emphasis",T8.tokenize),this.ruler.push("link",iz),this.ruler.push("image",nz),this.ruler.push("autolink",HR),this.ruler.push("html_inline",tz),this.ruler.push("entity",ZR),this.ruler2.push("balance_pairs",h7e),this.ruler2.push("strikethrough",N8.postProcess),this.ruler2.push("emphasis",T8.postProcess),this.ruler2.push("fragments_join",w7e),this.defaultRulerVersion=this.ruler.version,this.defaultRuler2Version=this.ruler2.version}skipToken(e){const t=e.pos,n=this.getRules(),i=n.length,o=e.cache,s=o[t],r=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules"));if(s!==void 0){e.pos=s;return}let l=!1;if(e.level=e.pos)throw new Error("inline rule didn't increment state.pos");break}}}else if(this.isDefaultRuleset()){if(e.level++,l=mM(e,!0),e.level--,l&&t>=e.pos)throw new Error("inline rule didn't increment state.pos")}else for(let a=0;a=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;l||e.pos++,o[t]=e.pos}tokenize(e){const t=this.getRules(),n=t.length,i=e.posMax;if(!(e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules")))){const s=this.isDefaultRuleset();for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos")}if(l){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending();return}const o=this.ruler.getNamedRules("");for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending()}isDefaultRuleset(){return this.ruler.version===this.defaultRulerVersion&&this.ruler2.version===this.defaultRuler2Version}parseSource(e,t,n,i){if(typeof e=="string"&&e.length>0&&this.isDefaultRuleset()&&cz(e)){const a=new hs("text","",0);a.content=e,i.push(a);return}const o=new uz(e,t,n,i);this.tokenize(o);const s=this.getRules2(),r=s.length;if(!(o.env&&(Object.prototype.hasOwnProperty.call(o.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(o.env,"__mdtsProfileRules")))){for(let a=0;a0&&cz(s.content)){const r=new hs("text","",0);r.content=s.content,s.children.push(r);continue}e.md.inline.parse(s.content,e.md,e.env,s.children)}}}const K7e=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,V7e=/[0-9a-z]/i;function Z7e(e){return/^\s]/i.test(e)}function G7e(e){return/^<\/a\s*>/i.test(e)}function Q7e(e,t){if(t.schema||t.index!==0||!t.raw)return t;for(let n=1;n=0;r--){const l=o[r];if(l.type==="link_close"){for(r--;r>=0&&o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(Z7e(l.content)&&s>0&&s--,G7e(l.content)&&s++),s>0||l.type!=="text"||!e.md.linkify.test(l.content))continue;const a=l.content;let u=(e.md.linkify.match(a)||[]).map(p=>Q7e(e.md.linkify,p));if(u.length===0)continue;const c=[];let d=l.level,h=0;u.length>0&&u[0].index===0&&r>0&&o[r-1].type==="text_special"&&(u=u.slice(1));for(let p=0;ph){const T=new hs("text","",0);T.content=a.slice(h,w),T.level=d,c.push(T)}const y=new hs("link_open","a",1);y.attrs=[["href",m]],y.level=d++,y.markup="linkify",y.info="auto",c.push(y);const b=new hs("text","",0);b.content=k,b.level=d,c.push(b);const A=new hs("link_close","a",-1);A.level=--d,A.markup="linkify",A.info="auto",c.push(A),h=g.lastIndex}if(h!==0){if(h=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(nAe,oAe)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function rAe(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&dz.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function lAe(e){if(e.md?.options?.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=n.content||(Array.isArray(n.children)?n.children.map(o=>o.type==="text"?o.content:"").join(""):"");tAe.test(i)&&sAe(n.children||[]),dz.test(i)&&rAe(n.children||[])}}var aAe=class{rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t){const n=this.rules.findIndex(i=>i.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex(i=>i.name===e);if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn),this.namedCache=this.rules.filter(e=>e.enabled).map(e=>({name:e.name,fn:e.fn}))}getRules(e=""){return this.cache||this.compileCache(),this.cache}getNamedRules(e=""){return this.namedCache||this.compileCache(),this.namedCache}};const uAe=/['"]/,vM=/['"]/g,yM="’";function Om(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function cAe(e,t){let n;const i=[],o=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let s=0;s=0&&!(i[n].level<=l);n--);if(i.length=n+1,r.type!=="text")continue;let a=r.content,u=0,c=a.length;e:for(;u=0)m=a.charCodeAt(d.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let k=32;if(u=48&&m<=57&&(p=h=!1),h&&p&&(h=w,p=y),!h&&!p){g&&(r.content=Om(r.content,d.index,yM));continue}if(p)for(n=i.length-1;n>=0;n--){let T=i[n];if(i[n].level=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=typeof n.content=="string"?n.content:(n.children||[]).map(o=>o.content||"").join("");!uAe.test(i)||!n.children||cAe(n.children,e)}}function fAe(e){const t=e.tokens||[],n=t.length;for(let i=0;i=4||o.charCodeAt(c)!==62)return!1;if(i)return!0;const p=[],g=[],m=[],k=[],w=e.md.block.ruler.getRulesForState(e,"blockquote"),y=e.parentType;e.parentType="blockquote";let b=!1,A;for(A=t;A=d)break;if(o.charCodeAt(c++)===62&&!L){let N=a[A]+1,I,z;o.charCodeAt(c)===32?(c++,N++,z=!1,I=!0):o.charCodeAt(c)===9?(I=!0,(u[A]+N)%4===3?(c++,N++,z=!1):z=!0):I=!1;let H=N;for(p.push(s[A]),s[A]=c;c=d,g.push(u[A]),u[A]=a[A]+1+(I?1:0),m.push(a[A]),a[A]=H-N,k.push(l[A]),l[A]=c-s[A];continue}if(b)break;let M=!1;for(let N=0,I=w.length;N";const x=[t,0];S.map=x,e.md.block.tokenize(e,t,A);const _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=h,e.parentType=y,x[1]=e.line;for(let L=0;L=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=`${e.getLines(t,o,4+e.blkIndent,!1)} -`,s.map=[t,e.line],!0}function yAe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let l=o;o=e.skipChars(o,r);let a=o-l;if(a<3)return!1;const u=e.src.slice(l,o),c=e.src.slice(o,s);if(r===96&&c.includes(String.fromCharCode(r)))return!1;if(i)return!0;let d=t,h=!1;for(;d++,!(d>=n||(o=l=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=4)&&(o=e.skipChars(o,r),!(o-l=4)return!1;let c=o.charCodeAt(a);if(c!==35||a>=u)return!1;let d=1;for(c=o.charCodeAt(++a);c===35&&a6||aa&&AM(o.charCodeAt(h-1))&&(u=h),e.line=t+1;const p=e.push("heading_open",kM[d],1);p.markup=bM[d],p.map=[t,e.line];const g=e.push("inline","",0);g.content=o.slice(a,u).trim(),g.map=[t,e.line],g.children=[];const m=e.push("heading_close",kM[d],-1);return m.markup=bM[d],!0}function bAe(e){switch(e){case 9:case 32:return!0}return!1}function AAe(e,t,n,i){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let l=1;for(;s|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${S7e.source}\\s*$`),/^$/,!1]];function CAe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),l=0;for(;l=48&&e<=57}var mz=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];lineFlags=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType="root";level=0;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i;const o=this.src;let s=0,r=0,l=0,a=!1,u=0;for(let c=0,d=o.length;c0&&this.level++,this.tokens.push(i),i}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){const t=this.bMarks,n=this.tShift,i=this.eMarks;for(let o=this.lineMax;et;){const i=n.charCodeAt(--e);if(i!==9&&i!==32)return e+1}return e}skipChars(e,t){const n=this.src;for(let i=n.length;en;)if(t!==i.charCodeAt(--e))return e+1;return e}getLines(e,t,n,i){if(e>=t)return"";if(e+1===t){const c=e,d=this.bMarks[c];let h=d;const p=i?this.eMarks[c]+1:this.eMarks[c];let g=0;const m=this.src,k=this.bsCount,w=this.tShift;for(;hn?new Array(g-n+1).join(" ")+m.slice(h,p):m.slice(h,p)}const o=new Array(t-e),s=this.src,r=this.bMarks,l=this.eMarks,a=this.bsCount,u=this.tShift;for(let c=0,d=e;dn?o[c]=new Array(h-n+1).join(" ")+s.slice(g,m):o[c]=s.slice(g,m)}return o.join("")}};mz.prototype.Token=hs;function xAe(e,t,n){for(let i=t;i=o)return!1;const s=n.charCodeAt(i);switch(s){case 35:case 42:case 43:case 45:case 60:case 62:case 95:case 96:case 126:return!0}return s>=48&&s<=57?!0:xAe(n,i,o)}const wM=["","h1","h2"];function SAe(e,t,n){const i=e.md.block.ruler.getRulesForState(e,"paragraph"),o=e.src,s=e.bMarks,r=e.tShift,l=e.eMarks,a=e.sCount,u=e.blkIndent,c=vz(e);if(a[t]-u>=4)return!1;const d=e.parentType;e.parentType="paragraph";let h=0,p,g=t+1;for(;g=T)break;if(a[g]-u>3)continue;if(a[g]>=u&&(p=o.charCodeAt(A),p===45||p===61)){let x=A+1,_=x;for(;x=T){h=p===61?1:2;break}if(_-A>1)continue}if(a[g]<0||c&&!yz(e,g,o,A,T))continue;let S=!1;for(let x=0,_=i.length;x<_;x++)if(i[x](e,g,n,!0)){S=!0;break}if(S)break}if(!h)return!1;let m;if(g===t+1){const A=s[t]+r[t];let T=l[t];for(;T>A;){const S=o.charCodeAt(T-1);if(S!==9&&S!==32)break;T--}m=o.slice(A,T)}else m=e.getLines(t,g,u,!1).trim();e.line=g+1;const k=p===61?"=":"-",w=e.push("heading_open",wM[h],1);w.markup=k,w.map=[t,e.line];const y=e.push("inline","",0);y.content=m,y.map=[t,e.line-1],y.children=[];const b=e.push("heading_close",wM[h],-1);return b.markup=k,e.parentType=d,!0}function kz(e){switch(e){case 9:case 32:return!0}return!1}function xM(e,t){const n=e.eMarks,i=e.bMarks,o=e.tShift,s=e.src,r=n[t];let l=i[t]+o[t];const a=s.charCodeAt(l++);return a!==42&&a!==45&&a!==43||l=l)return-1;let u=s.charCodeAt(a++);if(u<48||u>57)return-1;for(;;){if(a>=l)return-1;if(u=s.charCodeAt(a++),u>=48&&u<=57){if(a-r>=10)return-1;continue}if(u===41||u===46)break;return-1}return a0&&++o=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let c,d,h;const p=e.src,g=e.bMarks,m=e.tShift,k=e.eMarks,w=e.sCount,y=e.bsCount,b=g[l]+m[l];if(b>=k[l])return!1;const A=p.charCodeAt(b);if(A>=48&&A<=57){if(h=SM(e,l),h<0||(c=!0,r=b,d=_Ae(e,l,h),u&&d!==1))return!1}else if(A===42||A===45||A===43){if(h=xM(e,l),h<0)return!1;c=!1}else return!1;if(u&&e.skipSpaces(h)>=k[l])return!1;if(i)return!0;const T=p.charCodeAt(h-1),S=String.fromCharCode(T);if(c){const I=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(I.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const x=[l,0];e.tokens[e.tokens.length-1].map=x,e.tokens[e.tokens.length-1].markup=S;let _=!1;const L=e.tokens.length-1,M=e.md.block.ruler.getRulesForState(e,"list"),N=e.parentType;for(e.parentType="list";l=o?O=1:O=z-I,O>4&&(O=1);const R=I+O,j=e.push("list_item_open","li",1);j.markup=S;const $=[l,0];j.map=$,c&&(j.info=h-r-1===1?MAe[p.charCodeAt(r)-48]:p.slice(r,h-1));const W=e.tight,P=e.tShift[l],Z=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[l]=H-g[l],e.sCount[l]=z,H>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||_)&&(a=!1),_=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=P,e.sCount[l]=Z,e.tight=W,e.push("list_item_close","li",-1).markup=S,l=e.line,$[1]=l,l>=n||e.sCount[l]=4)break;let V=!1;for(let Y=0,oe=M.length;Y3||u[h]<0)continue;if(o==="list"&&u[h]>=c){const b=r[h]+l[h],A=a[h];if(b=A||_M(s.charCodeAt(b+1)))break}else if(T>=48&&T<=57&&b+1=A){S=-1;break}const x=s.charCodeAt(S++);if(x>=48&&x<=57){if(S-b>=10){S=-1;break}continue}if((x===41||x===46)&&(S>=A||_M(s.charCodeAt(S))))break;S=-1;break}if(S>=0)break}}}const k=r[h]+l[h],w=a[h];if(d&&!yz(e,h,s,k,w))continue;let y=!1;for(let b=0,A=i.length;b=4||e.src.charCodeAt(o)!==91)return!1;function a(b){const A=e.lineMax;if(b>=A||e.isEmpty(b))return null;let T=!1;if(e.sCount[b]-e.blkIndent>3&&(T=!0),e.sCount[b]<0&&(T=!0),!T){const _=e.parentType;e.parentType="reference";let L=!1;for(let M=0,N=l.length;M"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:w,href:h}),e.line=r),!0):!1}function R3(e){switch(e){case 9:case 32:return!0}return!1}const NAe=65536;function z3(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function FAe(e,t){if(e.lineFlags)return(e.lineFlags[t]&jp.Pipe)!==0;for(let n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];nn)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!R3(l)||r===45&&R3(l)||!FAe(e,t))return!1;for(;s=4)return!1;u=MM(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==c.length)return!1;if(i)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRulesForState(e,"blockquote"),g=e.push("table_open","table",1),m=[t,0];g.map=m;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const w=e.push("tr_open","tr",1);w.map=[t,t+1];for(let A=0;A=4||(u=MM(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),b+=d-u.length,b>NAe))break;if(o===t+2){const S=e.push("tbody_open","tbody",1);S.map=y=[t+2,0]}const T=e.push("tr_open","tr",1);T.map=[o,o+1];for(let S=0;Sr.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}after(e,t,n,i){const o=this._rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache[t]??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache[t]??[]}getRulesForState(e,t){const n=e?.env;return n&&(Object.prototype.hasOwnProperty.call(n,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(n,"__mdtsProfileRules"))?this.getNamedRules(t).map(({name:i,fn:o})=>(s,r,l,a)=>{const u=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now(),c=o(s,r,l,a),d=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now();return $h(s?.env,"block",i,d-u,c,!!a),c}):this.getRules(t)}at(e,t,n){const i=this._rules.findIndex(o=>o.name===e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[i].fn=t,n?.alt&&(this._rules[i].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled||(this._rules[r].enabled=!0,o=!0)}),o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled&&(this._rules[r].enabled=!1,o=!0)}),o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this._rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const i of this._rules)if(i.enabled)for(const o of i.alt)e.add(o);const t=Object.create(null),n=Object.create(null);for(const i of e){const o=[],s=[];for(const r of this._rules)r.enabled&&(i!==""&&!r.alt.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t[i]=o,n[i]=s}this.cache=t,this.namedCache=n}};const jm=[["table",DAe,["paragraph","reference"]],["code",vAe],["fence",yAe,["paragraph","reference","blockquote","list"]],["blockquote",mAe,["paragraph","reference","blockquote","list"]],["hr",AAe,["paragraph","reference","blockquote","list"]],["list",EAe,["paragraph","reference","blockquote"]],["reference",LAe],["html_block",CAe,["paragraph","reference","blockquote"]],["heading",kAe,["paragraph","reference","blockquote"]],["lheading",SAe],["paragraph",TAe]];var $Ae=class{ruler;cachedRulesVersion=-1;cachedRules=[];constructor(){this.ruler=new BAe;for(let e=0;e=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const p=e.line;let g=!1;for(let m=0;m=e.line)throw new Error("block rule didn't increment state.line");break}if(!g)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}return}const h=this.ruler.getNamedRules("");for(;c=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const p=e.line;let g=!1;for(let m=0;m=e.line)throw new Error("block rule didn't increment state.line");break}}if(!g)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}}parse(e,t,n,i){if(!e||e.length===0)return;const o=new mz(e,t,n,i);this.tokenize(o,o.line,o.lineMax)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(""),this.cachedRulesVersion=this.ruler.version),this.cachedRules}},bz=class{src;env;tokens;inlineMode;md;constructor(e,t,n={}){this.src=typeof e=="string"?e||"":e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}};bz.prototype.Token=hs;const IM=[["normalize",eAe],["block",l7e],["inline",U7e],["linkify",Y7e],["replacements",lAe],["smartquotes",dAe],["text_join",fAe]],RAe={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},zAe={parseLinkLabel:m7,parseLinkDestination:g7,parseLinkTitle:v7};function OAe(){return{...RAe}}function PAe(){return{...zAe}}var jAe=class{fallbackParser;lastState=null;block;inline;ruler;linkifyInstance=null;cachedCoreRulesVersion=-1;cachedCoreRules=[];cachedCoreNamedRulesVersion=-1;cachedCoreNamedRules=[];constructor(){this.block=new $Ae,this.inline=new q7e,this.ruler=new aAe;for(let e=0;e@[\]\\^_`{}~]/;function J2(e){return!HAe.test(e)}function Cp(e,t){const n=e.indexOf(` -`,t);return n===-1?e.length:n}function Mv(e,t,n){for(let i=t;i3)return J2(e);for(let t=0;t=i||t.charCodeAt(r)!==32)return!1;let l=r+1;for(;ll&&t.charCodeAt(a-1)===32;)a--;let u=a;for(;u>l&&t.charCodeAt(u-1)===35;)u--;if(u>l&&t.charCodeAt(u-1)===32)for(a=u-1;a>l&&t.charCodeAt(a-1)===32;)a--;const c=t.slice(l,a);if(!J2(c))return!1;const d=qAe[s],h=UAe[s],p=Dl("heading_open",d,1,0);p.map=[o,o+1],p.markup=h,e.push(p),e.push(A7(c,o,1));const g=Dl("heading_close",d,-1,0);return g.markup=h,e.push(g),!0}function VAe(e,t,n){const i=Dl("paragraph_open","p",1,0);i.map=[n,n+1],e.push(i),e.push(A7(t,n,1)),e.push(Dl("paragraph_close","p",-1,0))}function ZAe(e,t,n){const i=e.charCodeAt(n-1);return i===32||i===9?e.slice(t,n).trim():e.slice(t,n)}function H3(e,t){for(;t=1e5?TM:j3,o="",s=!1,r=!1,l=0,a=0;for(;l"]/,LM=/[&<>"]/g,tCe=/&/g,nCe=/[<>"]/g,iCe={"&":"&","<":"<",">":">",'"':"""};function W3(e){return iCe[e]||e}function Ii(e){if(e.length===0)return"";if(e.length<32)return eCe.test(e)?e.replace(LM,W3):e;const t=e.includes("&"),n=e.includes("<"),i=e.includes(">"),o=e.includes('"');return!t&&!n&&!i&&!o?e:t&&!n&&!i&&!o?e.replace(tCe,"&"):t?e.replace(LM,W3):e.replace(nCe,W3)}const oCe=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),sCe=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function Az(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(oCe,(t,n,i)=>{if(n)return n;if(sCe.test(i)){const s=i[1].toLowerCase()==="x"?Number.parseInt(i.slice(2),16):Number.parseInt(i.slice(1),10);return w9(s)?N0(s):"�"}const o=r7(t);return o!==t?o:t})}const rCe=/[\n!#$%&*+\-:<=>@[\]\\^_`{}~]/,lCe=/[\n!"#$%&*+\-:<=>@[\]\\^_`{}~]/,aCe=/"/g;function vh(e,t){const n=e.indexOf(` -`,t);return n===-1?e.length:n}function X2(e,t,n){for(let i=t;i=e.length||e.charCodeAt(t)===10?!1:!X2(e,t,vh(e,t))}function NM(e,t,n){return t+2=n||e.charCodeAt(o)!==32)return null;let s=o+1;for(;ss&&e.charCodeAt(r-1)===32;)r--;let l=r;for(;l>s&&e.charCodeAt(l-1)===35;)l--;if(l>s&&e.charCodeAt(l-1)===32)for(r=l-1;r>s&&e.charCodeAt(r-1)===32;)r--;const a=C7(e.slice(s,r));return a===null?null:`${a} -`}function FM(e,t,n){return t+1" -`;case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return null}return`
    3. ${e[t]}
    4. -`}function hCe(e,t,n){const i=t+2;if(n===i+1)return fCe(e,i);const o=C7(e.slice(t+2,n));return o===null?null:`
    5. ${o}
    6. -`}function pCe(e,t,n){for(;tt;){const o=e.charCodeAt(n-1);if(o!==32&&o!==9)break;n--}let i=n;for(let o=t;o`:"
      ",i.lang=s,i.open=d),{html:`${d}${Ii(c)}
      -`,nextPos:u=25e4,s=[],r={lang:null,open:""};let l="",a="",u="",c="";for(;n -`;A -`,l=w,a=y}let b=Hm(e,k);for(;b${k}

      -`,u=p,c=g}const m=de.core.parse(t,n,e).tokens);let r=Iv(t,o);if(o.maxChunks&&r.length>o.maxChunks&&(r=bCe(r,o.maxChunks)),Ev(t,r))return D3(n,{count:1,fallback:!0,fallbackReason:"unsafe-chunk-boundary",maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines}),Bh(n,s,()=>e.core.parse(t,n,e).tokens);let l=0;const a=[];return D3(n,{count:r.length,maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines,globalStateDetected:s||void 0,globalStateFallbackDisabled:o.fallbackOnGlobalState===!1&&!!s}),Bh(n,s,()=>{for(let u=0;u=3&&(c?c.marker===b&&T>=c.length&&(c=null):c={marker:b,length:T})}}const k=g-h;o+=k,s+=1,l+=1,m?(a=0,u=0):(a+=1,u+=k);const w=m;if((o>=t.maxChunkChars||s>=t.maxChunkLines)&&!c)if(w)d(g);else{const y=Math.max(10,Math.floor(t.maxChunkLines*.5)),b=Math.max(t.maxChunkChars,8e3);(a>=y||u>=b)&&d(g)}h=g}return n&&d(e.length),i}function Ev(e,t,n={rangesCoverWholeSource:!0}){const i=n.rangesCoverWholeSource?t.length-1:t.length;for(let o=0;oe.length||e.charCodeAt(t-1)!==10)return!1;let n=t-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;for(let i=n+1;i=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function kCe(e,t){for(let n=0;n=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Uu(e){return e.length===0?0:To(e)+(e.charCodeAt(e.length-1)===10?0:1)}function MCe(e,t,n){for(let i=t;i=3&&(n?n.marker===r&&a>=n.length&&(n=null):n={marker:r,length:a})}i=o===e.length?e.length:o+1}return n!==null}function ECe(e,t){if(e.length===0||e.charCodeAt(e.length-1)!==10)return!1;let n=e.length-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;return MCe(e,n+1,e.length-1)?!ICe(e,t):!1}function TCe(e,t,n,i={}){const o=i.mode??"full",s=i.fenceAware??(o==="stream"?e.options.streamChunkFenceAware??!0:e.options.fullChunkFenceAware??!0);if(i.maxChunkChars!==void 0||i.maxChunkLines!==void 0||i.autoTune===!1){const r=i.maxChunkChars??(o==="stream"?e.options.streamChunkSizeChars??xCe:e.options.fullChunkSizeChars??CCe),l=i.maxChunkLines??(o==="stream"?e.options.streamChunkSizeLines??SCe:e.options.fullChunkSizeLines??wCe);return{maxChunkChars:r,maxChunkLines:l,holdBelowChars:r,holdBelowLines:l,fenceAware:s}}return o==="stream"?t<=5e3?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=2e4?{maxChunkChars:16e3,maxChunkLines:200,holdBelowChars:16e3,holdBelowLines:200,fenceAware:s}:t<=5e4?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}:t<=1e5&&n<=2500?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:1e5,holdBelowLines:2500,fenceAware:s}:t<=2e5?{maxChunkChars:2e4,maxChunkLines:150,holdBelowChars:2e4,holdBelowLines:150,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}}var mg=class{md;options;pending="";tokens=[];committedChars=0;committedLines=0;fedChunks=0;parsedChunks=0;globalStateEnv=null;markedGlobalStateReason=null;constructor(e,t={}){if(this.md=e,this.options={mode:"full",autoTune:!0,retainTokens:!0,...t},this.options.retainTokens===!1&&!this.options.onChunkTokens)throw new Error("UnboundedBuffer with retainTokens=false requires onChunkTokens")}feed(e){e&&(this.pending+=e,this.fedChunks+=1)}flushAvailable(e={}){if(!this.pending)return null;const t=this.resolveWindow(),n=Uu(this.pending);if(this.pending.length=i||n>=o}function Mz(e,t,n){if(e.options.autoUnbounded===!1)return"no";if(t>=(e.options.autoUnboundedThresholdChars??wz))return"yes";const i=e.options.autoUnboundedThresholdLines??xz;return n!==void 0?n>=i?"yes":"no":t+1e.core.parse(t,n,e).tokens);const s=[],r=new mg(e,{mode:"full",...i,retainTokens:!1,onChunkTokens(l){Sz(s,l)}});if(o&&h7(n,o),r.feed(t),r.flushForce(n),o&&(p7(n),i.fallbackOnGlobalState===!1)){const l=lu(n)?.unbounded;l&&(l.globalStateDetected=o,l.globalStateFallbackDisabled=!0)}return s}const Rh=(e,t,n)=>en?n:e;function Iz(e){return e.experimental?{...e,...e.experimental}:e}const $M=[{max:5e3,strategy:"discrete",maxChunkChars:32e3,maxChunkLines:150,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:24e3,maxChunkLines:200,maxChunks:12,notes:"<=20k"},{max:1e5,strategy:"plain",notes:"<=100k plain"},{max:2e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:150,maxChunks:12,notes:"<=200k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=5M"}],RM=[{max:5e3,strategy:"discrete",maxChunkChars:16e3,maxChunkLines:250,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=20k"},{max:1e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=100k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=5M"}];function Ez(e,t){return{strategy:t.strategy,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,maxChunks:t.maxChunks,fenceAware:e,notes:t.notes}}function BCe(e,t=Math.max(0,e/40|0),n={}){const i=Iz(n),o=i.fullChunkFenceAware??!0,s=i.fullChunkTargetChunks??8,r=i.fullChunkAdaptive!==!1;for(let l=0;l<$M.length;l++){const a=$M[l];if(e<=a.max){if(a.strategy!=="adaptive")return Ez(o,a);break}}return e>5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:Rh(Math.ceil(e/s),8e3,64e3),maxChunkLines:Rh(Math.ceil(t/s),150,700),maxChunks:Rh(Math.ceil(e/64e3),s,16),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.fullChunkSizeChars??1e4,maxChunkLines:i.fullChunkSizeLines??200,fenceAware:o,maxChunks:i.fullChunkMaxChunks}}function zM(e,t=Math.max(0,e/40|0),n={}){const i=Iz(n),o=i.streamChunkFenceAware??!0,s=i.streamChunkTargetChunks??8,r=i.streamChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:Rh(Math.ceil(e/s),8e3,64e3),maxChunkLines:Rh(Math.ceil(t/s),150,700),maxChunks:Rh(Math.ceil(e/64e3),s,32),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.streamChunkSizeChars??1e4,maxChunkLines:i.streamChunkSizeLines??200,maxChunks:i.streamChunkMaxChunks,fenceAware:o}}var $Ce={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"]},inline2:{rules:["balance_pairs","emphasis","fragments_join"]}}},RCe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zCe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};function S9(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Tv(e,t){if(S9(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e}const OM=e=>S9(e)?e:Promise.resolve(e);function Wp(e){switch(e){case"alt":case"class":case"href":case"id":case"lang":case"rel":case"src":case"start":case"style":case"target":case"title":return e;default:return Ii(e)}}function Ec(e){if(!e||e.length===0)return"";const t=e[0];let n=` ${Wp(t[0])}="${Ii(t[1])}"`;for(let i=1;i=e.length)return{langName:e,langAttrs:""};let n=t;for(;n${t} -`;const s=e.attrIndex("class"),r=e.attrs?e.attrs.slice():[],l=`${o.langPrefix??"language-"}${i}`;return s<0?r.push(["class",l]):(r[s]=r[s].slice(),r[s][1]+=` ${l}`),`
      ${t}
      -`}return`
      ${t}
      -`}function D0(e){return!e.attrs||e.attrs.length===0?`${Ii(e.content)}`:`${Ii(e.content)}`}function F8(e){const t=Ii(e.content);return e.attrs?`${t} -`:`
      ${t}
      -`}function OCe(e,t){const n=e.attrs;if(!n||n.length===0)switch(e.type){case"paragraph_open":return`${t}

      `;case"heading_open":return`<${e.tag}>`;case"td_open":return`${t}`;case"th_open":return`${t}`;default:return null}if(n.length===1&&n[0][0]==="style"){if(e.type==="td_open")return`${t}`;if(e.type==="th_open")return`${t}`}return null}function PM(e){const t=e.attrs;return!t||t.length===0?"":t.length===1?``:t.length===2?``:``}function PCe(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":case"image":return!0;default:return!1}}function jM(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":return!0;default:return!1}}function ty(e,t){if(e.hidden)return"";const n=e.attrs,i=e.nesting,o=e.tag;if(!n||n.length===0)return i===0?t?`<${o} />`:`<${o}>`:i===-1?``:`<${o}>`;let s=(i===-1?"`}const jCe={langPrefix:"language-",xhtmlOut:!1,breaks:!1},Wm=Object.prototype.hasOwnProperty,ci={code_inline(e,t){return D0(e[t])},code_block(e,t){return F8(e[t])},fence(e,t,n,i,o){const s=e[t],r=s.info?Az(s.info).trim():"",{langName:l,langAttrs:a}=Tz(r),u=n.highlight,c=Ii(s.content);if(!u)return qp(s,c,r,l,n);const d=u(s.content,l,a);return S9(d)?d.then(h=>qp(s,h||c,r,l,n)):qp(s,d||c,r,l,n)},image(e,t,n,i,o){const s=e[t],r=o.renderInlineAsText(s.children||[],n,i),l=s.attrIndex("alt");return l>=0&&s.attrs?s.attrs[l][1]=r:s.attrs?s.attrs.push(["alt",r]):s.attrs=[["alt",r]],ty(s,n.xhtmlOut===!0)},hardbreak(e,t,n){return n.xhtmlOut?`
      -`:`
      -`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`
      -`:`
      -`:` -`},text(e,t){return Ii(e[t].content)},text_special(e,t){return Ii(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};function HM(e,t,n){const i=e.info?Az(e.info).trim():"",{langName:o,langAttrs:s}=Tz(i),r=t.highlight,l=Ii(e.content);if(!r)return qp(e,l,i,o,t);const a=r(e.content,o,s);if(S9(a))throw new TypeError('Renderer rule "fence" returned a Promise. Use renderAsync() instead.');return qp(e,a||l,i,o,t)}function q3(e,t,n,i){switch(e.type){case"text":return t.text===ci.text?e.content.length===0?"":Ii(e.content):null;case"text_special":return t.text_special===ci.text_special?e.content.length===0?"":Ii(e.content):null;case"softbreak":return t.softbreak===ci.softbreak?i:null;case"hardbreak":return t.hardbreak===ci.hardbreak?n:null;case"html_inline":return t.html_inline===ci.html_inline?e.content:null;case"code_inline":return t.code_inline===ci.code_inline?D0(e):null;default:return null}}function HCe(e,t,n,i,o){const s=e[0];switch(s.type){case"text":if(o.text===ci.text)return s.content.length===0?"":Ii(s.content);break;case"text_special":if(o.text_special===ci.text_special)return s.content.length===0?"":Ii(s.content);break;case"softbreak":if(o.softbreak===ci.softbreak)return t.breaks?t.xhtmlOut?`
      -`:`
      -`:` -`;break;case"hardbreak":if(o.hardbreak===ci.hardbreak)return t.xhtmlOut?`
      -`:`
      -`;break;case"html_inline":if(o.html_inline===ci.html_inline)return s.content;break;case"code_inline":if(o.code_inline===ci.code_inline)return D0(s);break}const r=o[s.type];if(!r)return ty(s,t.xhtmlOut===!0);const l=r(e,0,t,n,i);return typeof l=="string"?l:Tv(l,s.type)}var WCe=class{rules;baseOptions;normalizedBase;constructor(e={}){this.baseOptions={...e},this.normalizedBase=this.buildNormalizedBase(),this.rules={...ci}}set(e){return this.baseOptions={...this.baseOptions,...e},this.normalizedBase=this.buildNormalizedBase(),this}render(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");if(e.length===1)return this.renderSingleToken(e,e[0],t,n);const i=this.mergeOptions(t),o=n??{},s=this.rules,r=i.xhtmlOut===!0;let l,a,u,c,d,h,p="",g="",m=!1,k="";for(let w=0;w0&&e[w-1].hidden?` -`:"";if(b==="list_item_open"&&(!y.attrs||y.attrs.length===0)&&w+3${this.renderInlineTokens(_.children||[],i,o)}`,w+=3;continue}}if(w+2 -`,w+=2;continue}}}if(b==="inline"){const x=y.children||[];if(x.length===1){m||(l=s.text,a=s.text_special,u=s.softbreak,c=s.hardbreak,d=s.html_inline,h=s.code_inline,p=i.xhtmlOut?`
      -`:`
      -`,g=i.breaks?p:` -`,m=!0);const _=x[0];switch(_.type){case"text":if(l===ci.text){k+=Ii(_.content);continue}break;case"text_special":if(a===ci.text_special){k+=Ii(_.content);continue}break;case"softbreak":if(u===ci.softbreak){k+=g;continue}break;case"hardbreak":if(c===ci.hardbreak){k+=p;continue}break;case"html_inline":if(d===ci.html_inline){k+=_.content;continue}break;case"code_inline":if(h===ci.code_inline){k+=D0(_);continue}break}}k+=this.renderInlineTokens(x,i,o);continue}const T=s[b];if(!T){const x=y.attrs;if(!y.hidden){if(!x||x.length===0)switch(b){case"hr":k+=r?`


      -`:`
      -`;continue;case"heading_open":k+=`<${y.tag}>`;continue;case"heading_close":k+=` -`;continue;case"paragraph_open":k+=`${A}

      `;continue;case"paragraph_close":k+=`

      -`;continue;case"list_item_open":{const _=e[w+1];k+=A+(_&&(_.type==="inline"||_.hidden||_.nesting===-1&&_.tag==="li")?"
    7. ":`
    8. -`);continue}case"list_item_close":k+=`
    9. -`;continue;case"bullet_list_open":k+=`${A}
        -`;continue;case"bullet_list_close":k+=`
      -`;continue;case"blockquote_open":k+=A+(e[w+1]&&e[w+1].nesting===-1&&e[w+1].tag==="blockquote"?"
      ":`
      -`);continue;case"blockquote_close":k+=`
      -`;continue;case"ordered_list_open":k+=`${A}
        -`;continue;case"ordered_list_close":k+=`
      -`;continue;case"table_open":k+=`${A} -`;continue;case"table_close":k+=`
      -`;continue;case"thead_open":k+=`${A} -`;continue;case"thead_close":k+=` -`;continue;case"tbody_open":k+=`${A} -`;continue;case"tbody_close":k+=` -`;continue;case"tr_open":k+=`${A} -`;continue;case"tr_close":k+=` -`;continue;case"td_open":k+=`${A}`;continue;case"td_close":k+=` -`;continue;case"th_open":k+=`${A}`;continue;case"th_close":k+=` -`;continue}else if(x.length===1){const _=x[0];if(b==="ordered_list_open"&&_[0]==="start"){k+=`${A}
        -`;continue}if(b==="td_open"&&_[0]==="style"){k+=`${A}`;continue}if(b==="th_open"&&_[0]==="style"){k+=`${A}`;continue}}}k+=this.renderToken(e,w,i);continue}if(b==="code_block"&&T===ci.code_block){k+=F8(y);continue}if(b==="fence"&&T===ci.fence){k+=HM(y,i);continue}if(b==="html_block"&&T===ci.html_block){k+=y.content;continue}const S=T(e,w,i,o,this);typeof S=="string"?k+=S:k+=Tv(S,y.type)}return k}async renderAsync(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const i=this.mergeOptions(t),o=n??{},s=this.rules;let r="";for(let l=0;l0&&e[t-1].hidden?` -`:"",c=a?`> -`:">";if(!l||l.length===0)return s===0?n.xhtmlOut?`${u}<${r} /${c}`:`${u}<${r}${c}`:s===-1?`${u}(n||(n={...t}),n);if(Wm.call(e,"highlight")&&e.highlight!==t.highlight&&(i().highlight=e.highlight),Wm.call(e,"langPrefix")){const o=e.langPrefix;o!==t.langPrefix&&(i().langPrefix=o)}if(Wm.call(e,"xhtmlOut")){const o=e.xhtmlOut;o!==t.xhtmlOut&&(i().xhtmlOut=o)}if(Wm.call(e,"breaks")){const o=e.breaks;o!==t.breaks&&(i().breaks=o)}return n||t}buildNormalizedBase(){return Object.freeze({...jCe,...this.baseOptions})}renderSingleToken(e,t,n,i){const o=this.rules,s=t.type;if(s==="code_block"&&o.code_block===ci.code_block)return F8(t);if(s==="html_block"&&o.html_block===ci.html_block)return t.content;const r=this.mergeOptions(n),l=i??{};if(s==="inline")return this.renderInlineTokens(t.children||[],r,l);const a=o[s];if(!a)return t.block?this.renderToken(e,0,r):ty(t,r.xhtmlOut===!0);if(s==="fence"&&a===ci.fence)return HM(t,r);const u=a(e,0,r,l,this);return typeof u=="string"?u:Tv(u,s)}renderInlineTokens(e,t,n){if(!e||e.length===0)return"";const i=this.rules;if(e.length===1)return HCe(e,t,n,this,i);const o=t.xhtmlOut===!0,s=o?`
        -`:`
        -`,r=t.breaks?s:` -`,l=i.text,a=i.text_special,u=i.softbreak,c=i.hardbreak,d=i.html_inline,h=i.code_inline,p=i.link_open,g=i.link_close,m=i.em_open,k=i.em_close,w=i.strong_open,y=i.strong_close;let b="";for(let A=0;A`;if(u===ci.softbreak&&A+3`,A+=1;continue}if(T.type==="em_open"&&!m&&!k&&A+2${L}`,A+=2;continue}}}if(T.type==="strong_open"&&!w&&!y&&A+2${L}`,A+=2;continue}}}switch(T.type){case"text":if(l===ci.text){const _=T.content.length===0?"":Ii(T.content);if(d===ci.html_inline&&A+1=4)return!0;continue}if(l===9){if(r+=4-r%4,s++,r>=4)return!0;continue}break}if(s0&&u<=6){if(a=3)return!0;break}default:if(l>=48&&l<=57){let a=s+1;for(;a57)break;a++}if(a=ie,!te&&pe!==void 0&&(Ne=To(e),te=Ne>=pe)),te){const Q=this.parseFullDocument(e,z,n,Ne,!1);return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:"skip-cache-large-one-shot",unbounded:!!lu(z)?.unbounded}),Q.tokens}else if($){const Q=(ge,ke,Ie)=>geIe?Ie:ge;Ne===void 0&&(Ne=To(e));const ue=oe&&!Y?zM(e.length,Ne,n.options):null,Ae=ue?.maxChunkChars??(W?Q(Math.ceil(e.length/P),8e3,64e3):Z??1e4),se=ue?.maxChunkLines??(W?Q(Math.ceil(Ne/P),150,700):ae??200),re=ue?.maxChunks??(W?Q(Math.ceil(e.length/64e3),P,32):V),G=e.length>0&&e.charCodeAt(e.length-1)===10,le=j&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&ue?.strategy!=="plain";if((R||le)&&(e.length>=Ae*2||Ne>=se*2)&&G){const ge=ey(n,e,z,{maxChunkChars:Ae,maxChunkLines:se,fenceAware:ue?.fenceAware??q,maxChunks:re});return this.cache={src:e,tokens:ge,env:z,lineCount:Ne,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,Ne),this.recordChunkedParseResult(z,R?"explicit-initial-large-doc":"default-initial-large-doc"),ge}}const be=this.parseFullDocument(e,z,n,Ne);return Ne=be.lineCount,this.cache={src:e,tokens:be.tokens,env:z,lineCount:Ne,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,Ne),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:"initial-parse",unbounded:!!lu(z)?.unbounded}),be.tokens}if(e===o.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",Go(o.env,{area:"stream",path:"stream-cache",reason:"same-source"}),o.tokens;const s=e.startsWith(o.src)?e.slice(o.src.length):null;let r=o.globalStateReason;r===void 0&&(r=Pr(o.src),o.globalStateReason=r);const l=r?null:s!==null?this.detectGlobalStateForAppend(o,s):Pr(e),a=r||l;if(a){const z=i??o.env;Mu(z);const H=Pr(e),O=this.parseFullDocument(e,z,n),R=O.tokens,j=O.lineCount;return this.cache={src:e,tokens:R,env:z,lineCount:j,lastSegment:void 0,globalStateReason:H},this.updateCacheLineCount(this.cache,j),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:`global-state:${a}`,unbounded:!!lu(z)?.unbounded}),R}const u=n.options?.streamOptimizationMinSize??this.MIN_SIZE_FOR_OPTIMIZATION;if(o.src.length5e3?H=8:c.length>1e3?H=6:c.length>200&&(H=4),H=Math.min(H,z);let O=null;const R=n.options?.streamContextParseStrategy??"chars",j=n.options?.streamContextParseMinChars??200,$=n.options?.streamContextParseMinLines??2;let W;const P=()=>(W===void 0&&(W=To(c)),W),Z=this.canDirectlyParseAppend(o),ae=Z&&this.shouldUseUnboundedAppend(e,o,c);let V=!1;if(!Z)switch(R){case"lines":V=P()>=$;break;case"constructs":if(c.length>=j){V=!0;break}if(KCe(c)){V=!0;break}V=P()>=$;break;case"chars":default:V=c.length>=j}if(H>0&&V){const q=this.getTailLines(o.src,H)+c;try{const ne=this.core.parse(q,o.env,n).tokens,ie=ne.findIndex(pe=>pe.map&&typeof pe.map[1]=="number"&&pe.map[1]>H);if(ie!==-1){const pe=ne.slice(ie),Ne=z-H;Ne!==0&&this.shiftTokenLines(pe,Ne),O={tokens:pe}}}catch{O=null}}else O=null;if(!O){const q=z;if(ae)O={tokens:Hp(n,c,o.env,{mode:"stream"})},q>0&&this.shiftTokenLines(O.tokens,q);else{const ne=this.core.parse(c,o.env,n);q>0&&this.shiftTokenLines(ne.tokens,q),O=ne}}let Y=0;if(o.tokens.length>0&&O.tokens.length>0){const q=o.tokens[o.tokens.length-1],ne=O.tokens[0];try{q.type==="inline"&&ne.type==="inline"&&(ne.children&&ne.children.length>0&&(q.children||(q.children=[]),this.appendTokens(q.children,ne.children)),q.content=(q.content||"")+(ne.content||""),Y=1)}catch{Y=0}}const oe=o.tokens.length;if(O.tokens.length>Y){const q=o.tokens,ne=O.tokens,ie=Math.min(q.length,ne.length-Y);let pe=0;for(let Ne=ie;Ne>0;Ne--){let te=!0;for(let be=0;be0&&(Y+=pe),ne.length>Y&&this.appendTokens(o.tokens,ne,Y)}if(o.src=e,o.globalStateReason=null,o.lineCount=z+(W??P()),o.tokens.length>oe){const q=this.getLastSegment(o.tokens,e,oe,o.tokens.length,e.length-c.length,z);q?o.lastSegment=q:o.lastSegment=void 0}else o.lastSegment=void 0;return this.stats.total+=1,this.stats.appendHits+=1,ae&&(this.stats.unboundedAppendHits=(this.stats.unboundedAppendHits||0)+1),this.stats.lastMode="append",Go(o.env,{area:"stream",path:ae?"stream-unbounded-append":"stream-append",reason:ae?"large-delta":"safe-append",unbounded:ae}),o.tokens}const d=i??o.env,h=this.tryTailSegmentReparse(e,o,d,n);if(h)return this.stats.total+=1,this.stats.tailHits+=1,this.stats.lastMode="tail",Go(d,{area:"stream",path:"stream-tail",reason:"tail-reparse"}),h;const p=!!n.__explicitStreamChunkFallbackSetting,g=typeof n.__canUseImplicitLargeInputStrategy=="function"?n.__canUseImplicitLargeInputStrategy():!0,m=!!n.options?.streamChunkedFallback,k=!p&&!c&&g,w=m||k,y=n.options?.streamChunkAdaptive!==!1,b=n.options?.streamChunkTargetChunks??8,A=n.options?.streamChunkSizeChars,T=n.options?.streamChunkSizeLines,S=n.options?.streamChunkMaxChunks,x=!!n.__explicitStreamChunkConfig,_=n.options?.autoTuneChunks!==!1,L=n.options?.streamChunkFenceAware??!0;let M=c&&o.lineCount!==void 0?o.lineCount+To(c):void 0;if(w){M===void 0&&(M=To(e));const z=(P,Z,ae)=>Pae?ae:P,H=_&&!x?zM(e.length,M,n.options):null,O=H?.maxChunkChars??(y?z(Math.ceil(e.length/b),8e3,64e3):A??1e4),R=H?.maxChunkLines??(y?z(Math.ceil(M/b),150,700):T??200),j=H?.maxChunks??(y?z(Math.ceil(e.length/64e3),b,32):S),$=e.length>0&&e.charCodeAt(e.length-1)===10,W=k&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&H?.strategy!=="plain";if((m||W)&&(e.length>=O*2||M>=R*2)&&$){const P=ey(n,e,d,{maxChunkChars:O,maxChunkLines:R,fenceAware:H?.fenceAware??L,maxChunks:j});return this.cache={src:e,tokens:P,env:d,lineCount:M,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,M),this.recordChunkedParseResult(d,m?"explicit-fallback-large-doc":"default-fallback-large-doc"),P}}const N=this.parseFullDocument(e,d,n,M),I=N.tokens;return M=N.lineCount,this.cache={src:e,tokens:I,env:d,lineCount:M,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,M),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(d,{area:"stream",path:"stream-full",reason:"fallback-full",unbounded:!!lu(d)?.unbounded}),I}recordChunkedParseResult(e,t){const n=lu(e)?.chunk,i=n?.fallback?String(n.fallbackReason||"global-state"):null;if(this.stats.total+=1,i){this.stats.fullParses+=1,this.stats.lastMode="full",Go(e,{area:"stream",path:"stream-full",reason:`global-state:${i}`,unbounded:!!lu(e)?.unbounded});return}this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",Go(e,{area:"stream",path:"stream-chunked",chunked:!0,reason:t})}parseFullDocument(e,t,n,i,o=!0){const s=Pr(e);pg(t)&&Mu(t);const r=typeof n.__canUseImplicitLargeInputStrategy!="function"||n.__canUseImplicitLargeInputStrategy()?Mz(n,e.length,i):"no";if(r==="yes"){const a=Hp(n,e,t);return Go(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-char-threshold",unbounded:!0}),{tokens:a,lineCount:i??(o?To(e):0)}}let l=i;if(r==="need-lines"&&(l=To(e),_z(n,e.length,l))){const a=Hp(n,e,t);return Go(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-line-threshold",unbounded:!0}),{tokens:a,lineCount:l}}return l===void 0&&(l=o?To(e):0),{tokens:Bh(t,s,()=>this.core.parse(e,t,n).tokens),lineCount:l}}shouldUseUnboundedAppend(e,t,n){return!n||e.length=this.MIN_UNBOUNDED_APPEND_CHARS?!0:To(n)>=this.MIN_UNBOUNDED_APPEND_LINES}getAppendedSegment(e,t,n){if(n===null||n===void 0&&!t.startsWith(e)||!e.endsWith(` -`))return null;const i=n??t.slice(e.length);if(!i)return null;const o=i.length;if(i.charCodeAt(o-1)!==10)return null;let s=0,r=-1;for(let a=0;a=2));a++);if(s<2)return null;const l=(r===-1?i:i.slice(0,r)).trim();if(l.length===0)return null;if(/^[-=]+$/.test(l)){const a=e.slice(0,-1),u=a.lastIndexOf(` -`);if(a.slice(u+1).trim().length>0)return null}return this.endsInsideOpenFence(e)||this.mayContainReferenceDefinition(i)?null:i}tryTailSegmentReparse(e,t,n,i){const o=this.ensureLastSegment(t);if(!o||o.srcOffset<=0&&o.tokenStart<=0)return null;const s=t.src.slice(0,o.srcOffset);if(!e.startsWith(s))return null;const r=t.src.slice(o.srcOffset),l=e.slice(o.srcOffset);if(l===r)return null;const a=e.startsWith(t.src)?e.slice(t.src.length):null;if(a){const u=this.tryContainerTailAppendMerge(e,t,n,i,o,a);if(u)return u}if(this.mayContainReferenceDefinition(r)||this.mayContainReferenceDefinition(l))return null;try{const u=this.core.parse(l,n,i),c=this.getLastSegment(u.tokens,l);return o.lineStart>0&&this.shiftTokenLines(u.tokens,o.lineStart),t.src=e,t.env=n,t.globalStateReason=null,t.globalStateCarry=void 0,t.tokens.length=o.tokenStart,this.appendTokens(t.tokens,u.tokens),t.lineCount=o.lineStart+To(l),c?t.lastSegment={tokenStart:o.tokenStart+c.tokenStart,tokenEnd:o.tokenStart+c.tokenEnd,lineStart:o.lineStart+c.lineStart,lineEnd:o.lineStart+c.lineEnd,srcOffset:o.srcOffset+c.srcOffset}:t.lastSegment=null,t.tokens}catch{return null}}getTailLines(e,t){if(t<=0)return"";let n=t;for(let i=e.length-1;i>=0;i--)if(e.charCodeAt(i)===10&&(n--,n===0))return e.slice(i+1);return e}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,i=e.slice(n),o=i.length;let s=null,r=0;for(;r<=o;){let l=i.indexOf(` -`,r);l===-1&&(l=o);let a=r;for(;a=3&&(s?s.marker===u&&d>=s.length&&(s=null):s={marker:u,length:d})}}if(l===o)break;r=l+1}return s!==null}peek(){return this.cache?.tokens??UCe}getStats(){return{...this.stats}}appendTokens(e,t,n=0,i=t.length){for(let o=n;oU3?n.slice(n.length-U3):n,i&&(e.globalStateReason=i),i}ensureLastSegment(e){return e.lastSegment!==void 0||(e.lastSegment=this.getLastSegment(e.tokens,e.src)),e.lastSegment}getLastSegment(e,t,n=0,i=e.length,o,s){if(i<=n)return null;let r=Number.POSITIVE_INFINITY,l=-1,a=0;for(let u=i-1;u>=n;u--){const c=e[u];if(c.map&&(c.map[0]l&&(l=c.map[1])),c.nesting<0){a+=-c.nesting;continue}if(c.nesting>0){if(a-=c.nesting,c.level===0&&a<=0){const d=Number.isFinite(r)?r:c.map?.[0]??0,h=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:h,srcOffset:this.getLineStartOffset(t,d,o,s)}}continue}if(c.level===0&&a===0){const d=Number.isFinite(r)?r:c.map?.[0]??0,h=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:h,srcOffset:this.getLineStartOffset(t,d,o,s)}}}return null}getLineStartOffset(e,t,n,i){if(n!==void 0&&i!==void 0&&t>=i)return this.getLineStartOffsetFrom(e,n,t-i);if(t<=0)return 0;let o=t,s=-1;for(;o>0;){if(s=e.indexOf(` -`,s+1),s===-1)return e.length;o--}return s+1}getLineStartOffsetFrom(e,t,n){if(n<=0)return t;let i=n,o=t-1;for(;i>0;){if(o=e.indexOf(` -`,o+1),o===-1)return e.length;i--}return o+1}mayContainReferenceDefinition(e){return e.includes("]:")?/(?:^|\n)[ \t]{0,3}\[[^\]\n]+\]:/.test(e):!1}canDirectlyParseAppend(e){if(!this.endsWithBlankLine(e.src))return!1;const t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case"paragraph_open":case"heading_open":case"fence":case"code_block":case"html_block":case"hr":case"table_open":return!0;default:return!1}}tryContainerTailAppendMerge(e,t,n,i,o,s){if(!s||this.mayContainReferenceDefinition(s))return null;const r=t.tokens[o.tokenStart];switch(r?.type){case"bullet_list_open":case"ordered_list_open":return this.tryListTailAppendMerge(e,t,n,i,o,s,r);case"table_open":return this.tryTableTailAppendMerge(e,t,n,i,o,s,r);default:return null}}tryListTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10)return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l0&&this.shiftTokenLines(d,h);const p=this.getListParagraphMode(t.tokens,o.tokenStart,t.tokens.length,r.level),g=this.getListParagraphMode(c,0,c.length,0);(p==="loose"||g==="loose"||this.endsWithBlankLine(t.src)||(c[0]?.map?.[0]??0)>0)&&(this.setListParagraphVisibility(t.tokens,o.tokenStart,t.tokens.length,r.level,!1),this.setListParagraphVisibility(d,0,d.length,r.level,!1)),t.tokens.splice(t.tokens.length-1,0,...d),t.src=e,t.env=n,t.globalStateReason=null;const m=h+To(s);t.lineCount=m;const k=this.getDocLineCount(e,m);return r.map&&(r.map[1]=k),t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:k,srcOffset:o.srcOffset},t.tokens}tryTableTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10||/(?:^|\n)[ \t]*\n/.test(s))return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l=0?d.slice(h.tbodyOpenIndex+1,h.tbodyCloseIndex):d.slice(h.tbodyOpenIndex,h.tbodyCloseIndex+1);if(g.length===0)return null;const m=o.lineEnd-2;m!==0&&this.shiftTokenLines(g,m);const k=p.tbodyCloseIndex>=0?p.tbodyCloseIndex:p.tableCloseIndex,w=t.lineCount??To(t.src);t.tokens.splice(k,0,...g),t.src=e,t.env=n,t.globalStateReason=null;const y=w+To(s);t.lineCount=y;const b=this.getDocLineCount(e,y);if(r.map&&(r.map[1]=b),p.tbodyOpenIndex>=0){const A=t.tokens[p.tbodyOpenIndex];A?.map&&(A.map[1]=b)}return t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:b,srcOffset:o.srcOffset},t.tokens}getTableHeaderContext(e){const t=e.indexOf(` -`);if(t<0)return null;const n=e.indexOf(` -`,t+1);return n<0?null:e.slice(0,n+1)}getTableBodySection(e,t,n,i){if(t<0||t>=n||e[t]?.type!=="table_open")return null;let o=-1;for(let l=n-1;l>t;l--){const a=e[l];if(a.type==="table_close"&&a.level===i){o=l;break}}if(o<0)return null;let s=-1,r=-1;for(let l=t+1;l=0){for(let l=o-1;l>s;l--){const a=e[l];if(a.type==="tbody_close"&&a.level===i+1){r=l;break}}if(r<0)return null}return{tableCloseIndex:o,tbodyOpenIndex:s,tbodyCloseIndex:r}}isSingleTopLevelContainer(e,t,n,i){if(e.length<2)return!1;const o=e[0],s=e[e.length-1];if(o.type!==t||s.type!==n||o.level!==0||s.level!==0||i!==void 0&&o.markup!==i)return!1;let r=0;for(let l=0;l0&&l0||a.nesting<0)&&(r+=a.nesting)}return r===0}getListParagraphMode(e,t,n,i){let o=!1,s=!1;const r=i+2;for(let l=t;l=0;){const i=e.charCodeAt(n);if(i===32||i===9){n--;continue}return i===10}return!0}getDocLineCount(e,t=To(e)){return e.length===0?0:e.charCodeAt(e.length-1)===10?t:t+1}shiftTokenLines(e,t){if(t===0)return;let n=null;for(let i=0;i=0;s--)n.push(o.children[s]);for(;n.length>0;){const s=n.pop();if(s.map&&(s.map[0]+=t,s.map[1]+=t),s.children)for(let r=s.children.length-1;r>=0;r--)n.push(s.children[r])}}}}};const qM={default:RCe,zero:zCe,commonmark:$Ce};function QCe(e){return{core:e.core.ruler.version,block:e.block.ruler.version,inline:e.inline.ruler.version,inline2:e.inline.ruler2.version}}function YCe(e,t){return e.core.ruler.version!==t.core||e.block.ruler.version!==t.block||e.inline.ruler.version!==t.inline||e.inline.ruler2.version!==t.inline2}function UM(e){return e.experimental?{...e,...e.experimental}:e}function Ml(e,t){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0)return!0;const n=e.experimental;return!!n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0}function KM(e,t,n){for(let i=0;i=4?n.quotes=[_[0],_[1],_[2],_[3]]:n.quotes=["“","”","‘","’"]}let r=KM(s?.options,o,["fullChunkSizeChars","fullChunkSizeLines","fullChunkMaxChunks"]),l=KM(s?.options,o,["streamChunkSizeChars","streamChunkSizeLines","streamChunkMaxChunks"]),a=VM(s?.options,o,"fullChunkedFallback"),u=VM(s?.options,o,"streamChunkedFallback"),c=!1,d=null,h=null;const p=new jAe;let g=null;const m=()=>(g||(g=new qCe(n)),g);let k=null;const w=()=>(k||(k=new GCe(p)),k);let y=null;const b=()=>(y||(y=new RR({fuzzyLink:!0})),y),A=_=>!c&&!!d&&!YCe(_,d),T=(_,L)=>i==="default"&&!c&&g===null&&h!==null&&_.parse===h&&A(_)&&!_.stream.enabled&&L<(_.options.autoUnboundedThresholdChars??4e6)&&_.options.html===!1&&_.options.xhtmlOut===!1&&_.options.breaks===!1&&_.options.langPrefix==="language-"&&_.options.linkify===!1&&_.options.typographer===!1&&_.options.highlight===null,S=(_,L)=>i==="default"&&!c&&A(_)&&!_.stream.enabled&&!_.options.fullChunkedFallback&&L<(_.options.autoUnboundedThresholdChars??4e6)&&_.options.html===!1&&_.options.linkify===!1&&_.options.typographer===!1,x={core:p,block:p.block,inline:p.inline,get linkify(){const _=b();return Object.defineProperty(this,"linkify",{value:_,writable:!0,configurable:!0}),_},get renderer(){const _=m();return Object.defineProperty(this,"renderer",{value:_,writable:!0,configurable:!0}),_},options:n,__explicitFullChunkConfig:r,__explicitStreamChunkConfig:l,__explicitFullChunkFallbackSetting:a,__explicitStreamChunkFallbackSetting:u,__canUseImplicitLargeInputStrategy(){return A(this)},set(_){const L=UM(_);return this.options={...this.options,...L},(Ml(_,"fullChunkSizeChars")||Ml(_,"fullChunkSizeLines")||Ml(_,"fullChunkMaxChunks"))&&(r=!0,this.__explicitFullChunkConfig=!0),(Ml(_,"streamChunkSizeChars")||Ml(_,"streamChunkSizeLines")||Ml(_,"streamChunkMaxChunks"))&&(l=!0,this.__explicitStreamChunkConfig=!0),Ml(_,"fullChunkedFallback")&&(a=!0,this.__explicitFullChunkFallbackSetting=!0),Ml(_,"streamChunkedFallback")&&(u=!0,this.__explicitStreamChunkFallbackSetting=!0),g&&g.set(L),typeof L.stream=="boolean"&&(this.stream.enabled=L.stream,k&&(k.reset(),k.resetStats())),this},configure(_){const L=typeof _=="string"?qM[_]:_;if(!L)throw new Error("Wrong `markdown-it` preset, can't be empty");if(L.options&&this.set(L.options),L.components){const M=L.components;M.core?.rules&&this.core.ruler.enableOnly(M.core.rules),M.block?.rules&&this.block.ruler.enableOnly(M.block.rules),M.inline?.rules&&this.inline.ruler.enableOnly(M.inline.rules),M.inline2?.rules&&this.inline.ruler2.enableOnly(M.inline2.rules)}return this},enable(_,L){const M=Array.isArray(_)?_:[_],N=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],I=new Set;for(const z of N){if(!z)continue;const H=z.enable(M,!0);for(let O=0;O!I.has(H));if(z.length)throw new Error(`Rules manager: invalid rule name ${z.join(", ")}`)}return this},disable(_,L){const M=Array.isArray(_)?_:[_],N=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],I=new Set;for(const z of N){if(!z)continue;const H=z.disable(M,!0);for(let O=0;O!I.has(H));if(z.length)throw new Error(`Rules manager: invalid rule name ${z.join(", ")}`)}return this},use(_,...L){const M=typeof _=="function"?_:_&&typeof _.default=="function"?_.default:void 0;if(!M)throw new TypeError("MarkdownIt.use: plugin must be a function");const N=[this,...L],I=_;return c=!0,M.apply(I,N),this},render(_,L){let M;if(T(this,_.length)){L!==void 0&&(gr(L),M=F3("render"));const z=M?Zf():0,H=M?BM(_,M):DM(_);if(M&&(M.attemptMs=Zf()-z,H===null&&(M.fallbackReason="unsupported-stock-subset"),V1(L,M)),H!==null)return L!==void 0&&Go(L,{area:"render",path:"stock-fast",reason:"stock-subset"}),H}const N=L??{},I=this.parse(_,N);return M&&V1(N,M),m().render(I,this.options,N)},async renderAsync(_,L){let M;if(T(this,_.length)){L!==void 0&&(gr(L),M=F3("render"));const z=M?Zf():0,H=M?BM(_,M):DM(_);if(M&&(M.attemptMs=Zf()-z,H===null&&(M.fallbackReason="unsupported-stock-subset"),V1(L,M)),H!==null)return L!==void 0&&Go(L,{area:"render",path:"stock-fast",reason:"stock-subset"}),H}const N=L??{},I=this.parse(_,N);return M&&V1(N,M),m().renderAsync(I,this.options,N)},renderIterable(_,L={}){const M=this.parseIterable(_,L);return m().render(M,this.options,L)},async renderAsyncIterable(_,L={}){const M=await this.parseAsyncIterable(_,L);return m().renderAsync(M,this.options,L)},renderInline(_,L={}){const M=this.parseInline(_,L);return m().render(M,this.options,L)},validateLink:hz,normalizeLink:pz,normalizeLinkText:gz,utils:v6e,helpers:{...s7e},parse(_,L){if(typeof _!="string")throw new TypeError("Input data should be a String");if(L!==void 0&&gr(L),S(this,_.length)){const z=L===void 0?void 0:F3("parse"),H=z?Zf():0,O=XAe(_,z);if(z&&(z.attemptMs=Zf()-H,O===null&&(z.fallbackReason="unsupported-stock-subset"),V1(L,z)),O!==null)return L!==void 0&&Go(L,{area:"parse",path:"stock-fast",reason:"stock-subset"}),O}const M=L??{};let N;if(!this.stream.enabled&&!this.options.fullChunkedFallback&&A(this)){const z=Mz(this,_.length);if(z==="yes"){const H=Hp(this,_,M);return Go(L,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"char-threshold"}),H}z==="need-lines"&&(N=To(_))}if(!this.stream.enabled){const z=_.length,H=this.options.autoTuneChunks!==!1,O=r,R=!a&&A(this),j=!!this.options.fullChunkedFallback,$=R&&z>=2e5;let W;(j||$||N!==void 0)&&(W=N??To(_));const P=(j||$)&&H&&!O?BCe(z,W,this.options):null;if(j||$){const Z=W??0;if(j?z>=(this.options.fullChunkThresholdChars??2e4)||Z>=(this.options.fullChunkThresholdLines??400):$){if(P&&P.strategy!=="plain"){const ae=ey(this,_,M,{maxChunkChars:P.maxChunkChars,maxChunkLines:P.maxChunkLines,fenceAware:P.fenceAware,maxChunks:P.maxChunks});return L&&ZM(L,j?"explicit-full-chunk":"default-large-string"),ae}if(j){const ae=(te,be,Q)=>teQ?Q:te,V=this.options.fullChunkAdaptive!==!1,Y=this.options.fullChunkTargetChunks??8,oe=ae(Math.ceil(z/Y),8e3,64e3),q=ae(Math.ceil(Z/Y),150,700),ne=V?oe:this.options.fullChunkSizeChars??1e4,ie=V?q:this.options.fullChunkSizeLines??200,pe=V?ae(Math.ceil(z/64e3),Y,32):this.options.fullChunkMaxChunks,Ne=ey(this,_,M,{maxChunkChars:ne,maxChunkLines:ie,fenceAware:this.options.fullChunkFenceAware??!0,maxChunks:pe});return L&&ZM(L,"explicit-full-chunk"),Ne}}}if(N!==void 0&&A(this)&&_z(this,z,W??N)){const Z=Hp(this,_,M);return Go(L,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"line-threshold"}),Z}}const I=Pr(_);return Go(L,{area:"parse",path:"plain",reason:"default-plain"}),Bh(M,I,()=>p.parse(_,M,this).tokens)},parseIterable(_,L={}){return gr(L),LCe(this,_,L)},parseAsyncIterable(_,L={}){return gr(L),NCe(this,_,L)},parseIterableToSink(_,L,M={}){return gr(M),FCe(this,_,L,M)},parseAsyncIterableToSink(_,L,M={}){return gr(M),DCe(this,_,L,M)},parseInline(_,L={}){if(typeof _!="string")throw new TypeError("Input data should be a String");gr(L),pg(L)&&Mu(L);const M=p.createState(_,L,this);return M.inlineMode=!0,p.process(M),M.tokens}};if(x.stream={enabled:!!n.stream,parse(_,L){return x.stream.enabled?w().parse(_,L,x):x.parse(_,L??{})},reset(){w().reset()},peek(){return k?k.peek():[]},stats(){return k?k.getStats():{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){k&&k.resetStats()}},s?.components){const _=s.components;_.core?.rules&&x.core.ruler.enableOnly(_.core.rules),_.block?.rules&&x.block.ruler.enableOnly(_.block.rules),_.inline?.rules&&x.inline.ruler.enableOnly(_.inline.rules),_.inline2?.rules&&x.inline.ruler2.enableOnly(_.inline2.rules)}return d=QCe(x),h=x.parse,x}var XCe=JCe;const Nz=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],ewe=["a","abbr","b","bdi","bdo","button","cite","code","data","del","dfn","em","font","i","ins","kbd","label","mark","q","s","samp","small","span","strong","sub","sup","time","u","var"],Fz=["article","aside","blockquote","details","div","figcaption","figure","footer","header","h1","h2","h3","h4","h5","h6","li","main","nav","ol","p","pre","section","summary","table","tbody","td","th","thead","tr","ul"],twe=["svg","g","path"],nwe=["address","audio","body","canvas","caption","colgroup","datalist","dd","dialog","dl","dt","fieldset","form","head","hgroup","html","iframe","legend","map","menu","meter","noscript","object","optgroup","option","output","picture","progress","rp","rt","ruby","script","select","style","template","textarea","tfoot","title","video"],iwe=["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onsearch","innerhtml","outerhtml","textcontent","innertext","srcdoc","ping"],owe=["action","data","href","src","srcset","poster","xlink:href","formaction"],swe=["script"],rwe=["pre","iframe","picture","script","style","table","tbody","td","tfoot","th","thead","textarea","tr","title","video"],Tc=new Set(Nz),Dz=new Set(Fz),B0=new Set([...Nz,...ewe,...Fz,...twe]),Bz=new Set([...B0,...nwe]),lwe=new Set(iwe),awe=new Set(owe),vg=new Set(swe),$z=new Set(rwe);function Rz(e){let t="";for(const n of e){const i=n.charCodeAt(0);i<=31||i>=127&&i<=159||/\s/u.test(n)||(t+=n)}return t}const uwe={amp:"&",bsol:"\\",colon:":",newline:` -`,sol:"/",tab:" "};function zz(e){return e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|([a-z][a-z0-9]+));?/gi,(t,n,i,o)=>{const s=n??i;if(s){const r=Number.parseInt(s,n?10:16);try{return Number.isFinite(r)?String.fromCodePoint(r):""}catch{return""}}return uwe[String(o??"").toLowerCase()]??t})}const qm=new Set(["http","https","mailto","tel"]),cwe=new Set(["javascript","vbscript","data","file","ftp","blob","filesystem","intent","chrome","chrome-extension","moz-extension","ms-browser-extension","view-source"]),md=new Set(["http","https"]);function Oz(e){return e.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]?.toLowerCase()??""}const dwe=/^https?:\/\//i;function fwe(e){if(!dwe.test(e))return!1;for(const t of e){const n=t.charCodeAt(0);if(t==="&"||n<=32||n>=127&&n<=159||n>127&&/\s/u.test(t))return!1}return!0}function hwe(e,t,n){if(!Up(t,n)||!e.startsWith("file:///"))return!1;const i=e.charAt(8);return i!=="/"&&i!=="\\"}function Up(e,t){return e?(e==="a"||e==="area")&&(!t||t==="href"||t==="xlink:href"):!t||t==="href"}function pwe(e,t){return t==="href"||t==="xlink:href"?Up(e,t)?qm:md:t==="src"||t==="srcset"||t==="poster"||t==="action"||t==="formaction"||t==="data"?md:(Up(e,t),qm)}function Gd(e,t={}){if(fwe(e))return!1;const n=Rz(zz(e)).toLowerCase(),i=String(t.tagName??"").toLowerCase(),o=String(t.attrName??"").toLowerCase();if(!n)return!1;if(n.startsWith("data:")){const r=/^data:image\/(?:png|gif|jpe?g|webp|avif|bmp);/i.test(n);return i==="img"&&o==="src"?!r:!0}if(/^[\\/]{2}/.test(n))return!0;if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#")||n.startsWith("?"))return!1;const s=Oz(n);return s?s==="file"?!hwe(n,i,o):Up(i,o)?cwe.has(s):!pwe(i,o).has(s):!1}function gwe(e){const t=zz(String(e??"")).trim();if(!t||t.startsWith("#")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("?"))return!1;const n=Oz(Rz(t).toLowerCase());return n==="http"||n==="https"}function mwe(e,t={}){const n=String(e??"").trim();return n?Gd(n,t)?"":n:""}function GM(e){return mwe(e,{tagName:"img",attrName:"src"})}function vwe(e,t,n){function i(h){return h.trim().split(" ",2)[0]===t}function o(h,p,g,m,k){return h[p].nesting===1&&h[p].attrJoin("class",t),k.renderToken(h,p,g,m,k)}n=n||{};const s=3,r=n.marker||":",l=r.charCodeAt(0),a=r.length,u=n.validate||i,c=n.render||o;function d(h,p,g,m){let k,w=!1,y=h.bMarks[p]+h.tShift[p],b=h.eMarks[p];if(l!==h.src.charCodeAt(y))return!1;for(k=y+1;k<=b&&r[(k-y)%a]===h.src[k];k++);const A=Math.floor((k-y)/a);if(A=g||(y=h.bMarks[x]+h.tShift[x],b=h.eMarks[x],y=4)){for(k=y+1;k<=b&&r[(k-y)%a]===h.src[k];k++);if(!(Math.floor((k-y)/a)=2){const r=Number(s[0]),l=Number(s[1]);Number.isFinite(r)&&Number.isFinite(l)&&(o.map=[r+t,Math.min(l+t,n)])}Array.isArray(o.children)&&Pz(o.children,t,n)}}function kwe(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(vwe,t,{render(n,i){return n[i].nesting===1?`
        `:`
        -`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,i,o)=>{const s=t,r=s.bMarks[n]+s.tShift[n],l=s.eMarks[n],a=s.src.slice(r,l),u=a.match(/^:::\s*([^\s{]+)/);if(!u)return!1;const c=u[1];if(!c.trim())return!1;const d=a.slice(u[0].length).trim();let h,p;const g=d.indexOf("{"),m=g>=0?d.slice(g).trimStart():void 0;if(g===-1)h=d||void 0;else{if(h=d.slice(0,g).trim()||void 0,m?.startsWith("{")){let S=0,x=-1;for(let _=0;_0&&(p=m.slice(0,x))}p||(h=d||void 0)}if(o)return!0;const k=!!s.env.__markstreamFinal;let w=n+1,y=!1;for(;w<=i;){const S=s.bMarks[w]+s.tShift[w],x=s.eMarks[w];if(s.src.slice(S,x).trim()===":::"){y=!0;break}w++}y||(w=i);const b=s.push("vmr_container_open","div",1);if(b.attrSet("class",`vmr-container vmr-container-${c}`),b.map=[n,y?w:i],b.meta={...b.meta??{},unclosed:!y&&!k},h&&b.attrSet("data-args",h),p)try{const S=JSON.parse(p);for(const[x,_]of Object.entries(S)){const L=_!=null&&typeof _=="object";b.attrSet(`data-${x}`,L?JSON.stringify(_):String(_))}}catch{const S=ywe(p);if(S)for(const[x,_]of Object.entries(S)){const L=_!=null&&typeof _=="object";b.attrSet(`data-${x}`,L?JSON.stringify(_):String(_))}else b.attrSet("data-attrs",p)}const A=[];for(let S=n+1;SS.trim().length>0)){let S=A.join(` -`);S.endsWith(` -`)||(S+=` -`),S.endsWith(` - -`)||(S+=` -`);const x=s.tokens[s.tokens.length-1];x&&(x.raw=S);const _=[];s.md.block.parse(S,s.md,s.env,_),Pz(_,n+1,n+1+A.length),s.tokens.push(..._)}const T=s.push("vmr_container_close","div",-1);return y||(T.hidden=!0,T.map=[i,i]),s.line=y?w+1:w,!0},{alt:["paragraph","reference","blockquote","list"]})}function fa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Do(e){let t=!1,n=!1;for(let i=0;i")return i}return-1}function _9(e){const t=[],n=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let i;for(;(i=n.exec(e))!==null;){const o=i[1];if(!o)continue;const s=i[2]||i[3]||i[4]||"";t.push([o,s])}return t}const bwe=/^[a-z][a-z0-9_-]*$/;function QM(e){return bwe.test(String(e??"").trim().toLowerCase())}function zl(e){const t=String(e??"").trim();if(!t)return"";if(!t.startsWith("<"))return QM(t)?t.toLowerCase():"";let n=1;for(;n]/.test(s)?"":QM(o)?o:""}function wf(e){if(!e||e.length===0)return[];const t=new Set,n=[];for(const i of e){const o=zl(i);!o||t.has(o)||(t.add(o),n.push(o))}return n}function Awe(...e){const t=new Set,n=[];for(const i of e)for(const o of wf(i))t.has(o)||(t.add(o),n.push(o));return n}function Cwe(e){const t=wf(e);return{key:t.join(","),tags:t}}function jz(e){return zl(e)}function wwe(e,t){const n=String(e??""),i=zl(t);if(!i)return!1;const o=fa(i),s=n.match(new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?(\s*\/)?>`,"i"));return s?s[1]?!0:new RegExp(String.raw`<\s*\/\s*${o}\s*>`,"i").test(n):!1}function Hz(e,t){const n=zl(t);return!!n&&!B0.has(n)&&!wwe(e,n)}function xwe(e,t){const n=String(e??""),i=zl(t);if(!i)return n;const o=fa(i),s=new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?>\s*`,"i"),r=new RegExp(String.raw`\s*<\s*\/\s*${o}\s*>\s*$`,"i");return n.replace(s,"").replace(r,"")}const Wz=Tc,Swe=B0,qz=new Set(Dz);qz.delete("details");const _we=/<([A-Z][\w-]*)(?=[\s/>]|$)/gi,Mwe=/<\/\s*([A-Z][\w-]*)(?=[\s/>]|$)/gi,D8=/^<\s*(?:\/\s*)?([A-Z][\w-]*)/i,Iwe=/^<\s*([A-Z][\w:-]*)(?=[\s/>]|$)/i;function ny(e){return(e.match(D8)?.[1]??"").toLowerCase()}function w7(e){return/^\s*<\s*\//.test(e)}function x7(e,t){return Wz.has(t)||/\/\s*>\s*$/.test(e)}function Ewe(e,t){let n=0;for(let i=0;i0&&n--;continue}x7(o,s)||n++}}return n}function YM(e,t,n=0){const i=new RegExp(String.raw`<\s*(\/?)\s*${fa(t)}(?=[\s>/])[^>]*>`,"gi");i.lastIndex=Math.max(0,n);let o=0,s;for(;(s=i.exec(e))!==null;){const r=s[0]??"",l=!!s[1],a=!l&&/\/\s*>$/.test(r);if(l){if(o===0)return{start:s.index,end:s.index+r.length};o--;continue}a||o++}return null}function Lwe(e,t){const n=new RegExp(String.raw`<\s*(\/?)\s*${fa(t)}(?=[\s>/])[^>]*>`,"gi");let i=0,o;for(;(o=n.exec(e))!==null;){const s=o[0]??"",r=!!o[1],l=!r&&/\/\s*>$/.test(s);if(r){i>0&&i--;continue}l||i++}return i}function iy(e){const t=e;return String(t.raw??t.content??t.markup??"")}function Nwe(e){const t=e;return t.meta||(t.meta={}),t.meta}function K3(e,t,n){const i=Nwe(e);i.markstreamCustomHtmlRaw=t,i.markstreamCustomHtmlInner=n}function Fwe(e,t){if(!t.size)return;const n=Array.from(t,p=>new RegExp(String.raw`<\s*${fa(p)}(?=[\s>/])`,"i")),i=[];let o=!1;const s=p=>p?n.some(g=>g.test(p)):!1,r=p=>{if(!(!p||!i.length))for(const g of i)g.raw+=p,g.inner+=p},l=()=>{!i.length||!o||(r(` -`),o=!1)},a=p=>{r(p)},u=p=>{for(let m=0;m{const g=i[i.length-1]?.tag;if(!g)return null;const m=new RegExp(String.raw`^\s*<\s*\/\s*${fa(g)}\s*>`,"i");return p.match(m)?.[0]??null},d=p=>!!c(p),h=(p,g,m)=>{const k=m??(p.type==="html_inline"?ny(g):"");if(!(k&&t.has(k))){r(g);return}const w=w7(g),y=!w&&x7(g,k);if(w){if(!i.length||i[i.length-1].tag!==k){r(g);return}u(g);return}if(r(g),y){K3(p,g,"");return}i.push({tag:k,token:p,raw:g,inner:""})};for(const p of e){if(p.type==="inline"&&Array.isArray(p.children)){const g=String(p.content??"");if(d(g)?o=!1:l(),!i.length&&!s(g)){o=!1;continue}let m=0,k=!0;for(const w of p.children){const y=iy(w),b=w.type==="html_inline"?ny(y):"",A=b&&t.has(b);let T=y;if(k&&g&&y&&(i.length||A)){const S=g.indexOf(y,m);if(S!==-1)a(g.slice(m,S)),T=g.slice(S,S+y.length),m=S+y.length;else{if(i.length&&!A)continue;k=!1}}h(w,T,b)}k&&g&&m0;continue}if(i.length&&typeof p.content=="string"){const g=iy(p),m=p.type==="html_block"?c(g):null;if(m){u(`${o?` -`:""}${m}`),o=i.length>0;continue}if(!p.content)continue;l(),r(p.content),o=!0}}for(const p of i)K3(p.token,p.raw,p.inner)}function Dwe(e){return/^\s*<\s*[!?]/.test(e)}function Bwe(e){const t=new Set(Swe);if(e&&Array.isArray(e))for(const n of e){const i=String(n??"").trim();if(!i)continue;const o=i.match(/^[<\s/]*([A-Z][\w-]*)/i);o&&t.add(o[1].toLowerCase())}return t}function JM(e,t){if(t.has(e))return!0;for(const n of t)if(n.startsWith(e))return!0;return!1}function $we(e,t){let n=null;for(const s of e.matchAll(_we)){const r=s.index??-1;if(r<0)continue;const l=(s[1]??"").toLowerCase();JM(l,t)&&Do(e.slice(r))===-1&&(!n||r")&&(!n||s")&&(!n||s{const p=h,g=new Set(n),m=Array.isArray(p.env?.__markstreamCustomHtmlTags)?p.env.__markstreamCustomHtmlTags:[];for(const b of m){const A=zl(String(b??""));A&&g.add(A)}const k=Bwe(Array.from(g)),w=new Set(Owe);for(const b of g)w.add(b);return{autoCloseInlineTagSet:w,commonHtmlTags:k,customTagSet:g,shouldMergeHtmlBlockTag:b=>g.has(b)||!k.has(b)||qz.has(b)}},o=h=>{if(h.type==="html_block")return String(h.content??"");if(h.type!=="inline"||!Array.isArray(h.children)||h.children.length!==1)return"";const p=h.children[0];return p?.type!=="html_block"?"":String(h.content??p.content??"")},s=(h,p)=>{h.type="html_block",h.content=p,h.raw=p,h.children=[]},r=h=>h.replace(/^(?:\r?\n)+/,""),l=h=>/^(?: {4}|\t)/.test(h),a=h=>h.replace(/^(?: {4}|\t)/gm,""),u=(h,p)=>{const g=r(h);if(!/\S/.test(g))return[];if(l(g))return[{type:"code_block",content:a(g),raw:g}];const m=g.replace(/^[\t ]+/,"");if(!m)return[];if(m.startsWith("<"))return[{type:"html_block",content:m}];const k={type:"inline",tag:"",nesting:0,content:m,children:[{type:"text",content:m,raw:m}]};return p==="paragraph"?[{type:"paragraph_open",tag:"p",nesting:1},k,{type:"paragraph_close",tag:"p",nesting:-1}]:p==="text"?[{type:"text",content:m,raw:m}]:[k]},c=(h,p,g)=>h[p-1]?.type==="paragraph_open"&&h[p+1]?.type==="paragraph_close"?"inline":g,d=(h,p)=>{const g=r(p);return!/\S/.test(g)||h.type!=="inline"||!Array.isArray(h.children)?!1:(h.content=`${String(h.content??"")}${g}`,h.children.push({type:"text",content:g,raw:g}),!0)};e.core.ruler.after("inline","fix_html_inline_streaming",h=>{const p=h.tokens??[],{commonHtmlTags:g,customTagSet:m}=i(h);for(const k of p){const w=k;if(w.type!=="inline"||!Array.isArray(w.children))continue;const y=String(w.content??""),b=w.children.length?w.children:y.includes("<")?[{type:"text",content:y,raw:y}]:null;if(b)try{const A=zwe(b,g);if(w.children=A.children,A.pendingBuffer){const T=y.lastIndexOf(A.pendingBuffer);if(T!==-1){const S=y.slice(0,T);w.content=S,typeof w.raw=="string"&&(w.raw=S)}}}catch(A){console.error("[applyFixHtmlInlineTokens] failed to fix streaming html inline",A)}}Fwe(p,m)}),e.core.ruler.push("fix_html_inline_tokens",h=>{const p=h.tokens??[],{autoCloseInlineTagSet:g,customTagSet:m,shouldMergeHtmlBlockTag:k}=i(h),w=[];for(let y=0;y0){const[T,S]=w[w.length-1];if(y!==S){if(b.type==="paragraph_open"||b.type==="paragraph_close"){p.splice(y,1),y--;continue}const x=String(b.content??b.raw??"");if(x){const _=p[S],L=`${String(_.content||"")} -${x}`,M=Do(L),N=M===-1?null:YM(L,T,M+1);if(N){const I=L.slice(0,N.end),z=L.slice(N.end);_.content=I,_.loading=!1,p.splice(y,1),w.pop();const H=d(_,z)?[]:u(z,c(p,y,"paragraph"));H.length&&p.splice(y,0,...H),y--;continue}_.content=L,_.loading!==!1&&(_.loading=!0)}p.splice(y,1),y--;continue}}const A=o(b);if(A){if(Dwe(A))continue;const T=(A.match(/<\s*(?:\/\s*)?([^\s>/]+)/)?.[1]??"").toLowerCase(),S=/^\s*<\s*\//.test(A);if(!T||!k(T))continue;if(s(b,A),!S)T&&!new RegExp(`^\\s*<\\s*${T}\\b[^>]*\\/\\s*>`,"i").test(A)&&Lwe(A,T)>0&&w.push([T,y]);else if(w.length>0&&T&&w[w.length-1][0]===T){const[,x]=w[w.length-1],_=p[x];_.content=`${String(_.content||"")} -${A}`,_.loading=!1,w.pop(),p.splice(y,1),y--}continue}else if(w.length>0){if(b.type==="paragraph_open"||b.type==="paragraph_close"){p.splice(y,1),y--;continue}const T=b.content||"",S=new RegExp(`<\\s*\\/\\s*${w[w.length-1][0]}\\s*>`,"i").test(T);if(T){const[,x]=w[w.length-1],_=p[x];_.content=`${_.content||""} -${T}`,_.loading!==!1&&(_.loading=!S)}S&&w.pop(),p.splice(y,1),y--}else continue}if(m.size>0){const y=new Map,b=new Map,A=x=>{let _=y.get(x);return _||(_=new RegExp(`<\\s*${x}\\b`,"i"),y.set(x,_)),_},T=x=>{let _=b.get(x);return _||(_=new RegExp(`<\\s*\\/\\s*${x}\\s*>`,"i"),b.set(x,_)),_},S=[];for(let x=0;x0){const N=S[S.length-1],I=p[N.index],z=_.type==="html_block"?T(N.tag).exec(L):null;if(z){const R=z.index+z[0].length,j=L.slice(0,R),$=L.slice(R);I.content=`${String(I.content??"")} -${j}`,Array.isArray(I.children)&&I.children.push({type:"html_inline",content:``,raw:``}),S.pop();const W=d(I,$)?[]:u($,c(p,x,"paragraph"));W.length?p.splice(x,1,...W):(p.splice(x,1),x--);continue}if(_.type!=="inline")continue;const H=Array.isArray(_.children)?_.children:[],O=Ewe(H,N.tag);if(O!==-1){const R=H.slice(0,O+1),j=H.slice(O+1),$=R.map(W=>String(W?.content??W?.raw??"")).join("");if(I.content=`${String(I.content??"")} -${$}`,Array.isArray(I.children)&&I.children.push(...R),j.length){const W=j.map(P=>String(P.content??P.raw??"")).join("");if(W.trim()){const P=W.replace(/^\s+/,"");if(d(I,W))p.splice(x,1),x--;else if(P.startsWith("<"))p.splice(x,1,{type:"html_block",content:P});else{const Z=u(W,c(p,x,"paragraph"));p.splice(x,1,...Z)}}else p.splice(x,1),x--}else p.splice(x,1),x--;S.pop();continue}I.content=`${String(I.content??"")} -${L}`,Array.isArray(I.children)&&I.children.push(...H),p.splice(x,1),x--;continue}if(_.type!=="inline")continue;const M=Array.isArray(_.children)?_.children:[];for(const N of m)if((M.length?Twe(M,N):A(N).test(L)&&!T(N).test(L)?1:0)>0){S.push({tag:N,index:x});break}}}{let y=0;for(let b=0;b0?y--:(p.splice(b,1),b--))}}for(let y=0;y/]+)/)?.[1]??"").toLowerCase();if(_.startsWith("!")||_.startsWith("?")){b.loading=!1;continue}if(m.has(_)){const O=String(b.content??""),R=Do(O),j=R===-1?null:YM(O,_,R+1);b.loading=j?!1:b.loading!==void 0?b.loading:!0;const $=j?.start??-1,W=j?j.end-j.start:0;if($!==-1){const P=O.slice(0,$+W);let Z="";R!==-1&&R<$&&(Z=O.slice(R+1,$)),b.children=[{type:_,content:Z,raw:P,attrs:[],tag:_,loading:!1}],b.content=P,b.raw=P;const ae=u(O.slice($+W)||"","text");ae.length&&p.splice(y+1,0,...ae)}else b.children=[{type:_,content:"",raw:O,attrs:[],tag:_,loading:!0}];continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(_))continue;b.type="inline";const L=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let M;for(;(M=L.exec(b.content||""))!==null;)M[1],M[2]||M[3]||M[4];const N=String(b.content??""),I=new RegExp(`<\\/\\s*${_}\\s*>`,"i").exec(N),z=I?I.index:-1,H=I?I[0].length:0;if(z!==-1){const O=N.slice(0,z+H),R=(N.slice(z+H)||"").replace(/^\s+/,"");b.children=[{type:"html_block",content:O,tag:_,loading:!1}],b.content=O,b.raw=O,R&&p.splice(y+1,0,R.startsWith("<")?{type:"html_block",content:R}:{type:"text",content:R,raw:R})}else b.children=[{type:"html_block",content:b.content,tag:_,loading:!0}];continue}if(!b||b.type!=="inline")continue;if(b.children.length===2&&b.children[0].type==="html_inline"){const _=(b.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase(),L=b.children[1],M=String(L?.content??"").match(/^<\s*\/\s*([^\s>]+)/)?.[1]?.toLowerCase()??"";if(L?.type==="html_inline"&&M===_)continue;g.has(_)?(b.children[0].loading=!0,b.children[0].tag=_,b.children.push({type:"html_inline",tag:_,loading:!0,content:``})):b.children=[{type:"html_block",loading:!0,tag:_,content:String(b.children[0]?.content??"")+String(b.children[1]?.content??"")}];continue}else if(b.children.length===3&&b.children[0].type==="html_inline"&&b.children[2].type==="html_inline"){const _=(b.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase();if(g.has(_))continue;b.children=[{type:"html_block",loading:!1,tag:_,content:b.children.map(L=>L.content).join("")}];continue}if(!b.content?.startsWith("<")||b.children?.length!==1)continue;const A=String(b.content),T=b,S=T.children[0];if(S?.type!=="html_inline"){/^<\s*(?:\/\s*)?[A-Z][\w:-]*\s*$/i.test(A)&&(T.children.length=0);continue}const x=String(S.content??A).match(Iwe)?.[1]?.toLowerCase()??"";if(x){if(/\/\s*>\s*$/.test(A)||Wz.has(x)){T.children=[{type:"html_inline",content:A}];continue}T.children.length=0}}})}function jwe(e){const t=e.trim();return!t||/^&[a-z0-9#]+;/i.test(t)?!1:!!(/^(?:const|let|var|function|class|import|export|if|for|while|return|await|async|yield|try|catch|throw|new|typeof|instanceof|switch|case|break|continue|def|ruby|perl|print|echo|true|false|null|undefined|NaN|Infinity|this)\b/.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\])*\s*\(/i.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[[\d+\]])+/i.test(t)||/\w+\s*(?:===?|!==?|<=?|>=?|\+\+|--|&&|\|\||\?\.)/.test(t)||/^(?:!!|\+\+|--)\s*\w/.test(t)||/[\w$]+\s*(?:\+=|-=|\*=|\/=|%=|\*\*=|=)/.test(t)||/^(?:https?:\/\/|ftp:\/\/|file:\/\/|\/\/|www\.)/i.test(t)||/`[^`]*\$\{[^}]*\}[^`]*`/.test(t)||/<\/?[A-Z][a-zA-Z0-9]*/.test(t)||/<[a-z][a-z0-9]*\s[^>]+>/.test(t)||/^(["'`]).*\1\s*[;,]?$/.test(t)||/^\[[\s\S]*\]$/.test(t)||/^\{[\s\S]*\}$/.test(t)||/^\(\s*\)$/.test(t)||/[\w$]+(?:\s*[+\-*/%<>=!&|^~:]+\s*[\w$]+|\s*\.\s*[\w$]+)/.test(t)||/=>|->|::/.test(t)||/^@[\w.$]+$/.test(t)||/^(?:0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\d+(?:\.\d*)?(?:px|em|rem|%|vh|vw|deg|s|ms)?)$/.test(t)||/^\$[\w$]+\s*[=:]/.test(t)||/\|\s*\w+|\w+\s*\|/.test(t)||/^(?:git|npm|yarn|pnpm|bun|pip|cargo|go|rust|python|node|java|mvn|gradle|docker|kubectl)\s+/.test(t)||/(?:console|window|document|Math|JSON|Date|Array|Object|String|Number|Boolean)\.[a-zA-Z]/.test(t)||/^(?:\/\/|#|\/\*|\*\/|)/.test(t)||/^(?:<<<|<<\s*['"]?\w+['"]?)/.test(t))}function Hwe(e,t={}){t.enabled!==!1&&e.core.ruler.after("inline","fix_indented_code_block",n=>{const i=n.tokens??[];for(let o=0;oa.trim().length>0);if(l.length===1&&!jwe(l[0]??"")){const a=l[0]??"",u=s.level??0;i.splice(o,1,{type:"paragraph_open",tag:"p",nesting:1,level:u},{type:"inline",tag:"",nesting:0,level:u,content:a,children:[{type:"text",content:a,level:u+1,raw:a}],block:!0},{type:"paragraph_close",tag:"p",nesting:-1,level:u}),o+=2}}})}const Uz=/\.([a-z0-9]{1,15})$/i,Wwe=/[_()[\]{}<>]/u,qwe=/^(?:https?:\/\/|ftp:\/\/|mailto:|www\.)/i,Uwe=/[?#@]/u,Kwe=/[\\/]/u,Vwe=/^[\p{L}\p{N}./\\-]+$/u,Zwe=/^[A-Za-z0-9-]{1,63}$/u,Gwe=/^xn--[a-z0-9-]{2,59}$/i,Qwe=/^(?:[A-Z]{1,6}|\d{1,8})$/u,Ywe=/^(?=.{1,12}$)[A-Z0-9]+(?:[-.][A-Z0-9]+)*$/iu,Jwe=/文件名\s*[::]?|附件\s*[::]?|路径\s*[::]?|路徑\s*[::]?|文件列表\s*[::]?|文档列表\s*[::]?|文檔列表\s*[::]?|\bfile\s*names?\b\s*[::]?|\battachments?\b\s*[::]?|\bpaths?\b\s*[::]?|\bfile\s+lists?\b\s*[::]?|\bdocument\s+lists?\b\s*[::]?/iu,Xwe=/文件名\s*[::]?|文件\s*[::]?|附件\s*[::]?|档案\s*[::]?|檔案\s*[::]?|文档\s*[::]?|文檔\s*[::]?|资料\s*[::]?|資料\s*[::]?|路径\s*[::]?|路徑\s*[::]?|\bfile\s*name\b\s*[::]?|\battachments?\b\s*[::]?|\bfiles?\b\s*[::]?|\bdocuments?\b\s*[::]?|\bdocs?\b\s*[::]?|\bpaths?\b\s*[::]?/iu,exe=/股票代码|股票代碼|证券代码|證券代碼|(?:代码|代碼|交易所|后缀|後綴|市场|市場)(?=$|[\s::/|,,、()()])|\btickers?\b|\bsymbols?\b|\bexchanges?\b/iu,txe=2e3,nxe=512,ixe={},oxe=new Set(["ai","md","py","rs","sh","zip"]),Kz=new Set(["as","bj","de","hk","l","ln","ny","pa","sh","ss","sz","t","us"]),sxe=new Set([...Kz,"at","ax","cn","co","it","jp","ks","mc","mx","nz","pl","sa","si","to","tw"]),rxe=new Set(["com","dev","io","page","site"]),lxe=new Set(["app","apk","dmg","exe","ipa","lock","log","markdown","webmanifest"]),axe=new Set(["7z","ai","astro","avi","bash","bz2","c","cjs","cpp","cs","csv","doc","docx","fish","flac","gif","go","gz","h","hpp","html","java","jpeg","jpg","js","json","jsx","kt","md","mdx","mjs","mov","mp3","mp4","pdf","php","png","ppt","pptx","ps1","py","rar","rb","rs","sh","sql","svg","swift","svelte","tar","tgz","toml","ts","tsx","txt","vue","wav","webp","xls","xlsx","xml","yaml","yml","zip","zsh"]),Rd=new Map;function XM(e,t){if(!e||e.length>nxe)return t;for(Rd.set(e,t);Rd.size>txe;){const n=Rd.keys().next().value;if(!n)break;Rd.delete(n)}return t}function $0(e){return e?.filename===!0||e?.explicitFilename===!0||e?.marketTicker===!0}function V3(e,t){const n={filename:e?.filename||t?.filename,explicitFilename:e?.explicitFilename||t?.explicitFilename,marketTicker:e?.marketTicker||t?.marketTicker};return $0(n)?n:void 0}function eI(e,t){if(!$0(t))return e;const n=e?.__linkifyDemotionContext;return{...e,__linkifyDemotionContext:{filename:n?.filename||t?.filename,explicitFilename:n?.explicitFilename||t?.explicitFilename,marketTicker:n?.marketTicker||t?.marketTicker}}}function tI(e){const t=yg(e);return $0(t)?t:void 0}function uxe(e){return e.replace(/^[\s>*_`[\]((【《"'“‘]+/u,"").replace(/[\s<*_`\]))】》"'.。;;,,、::!?!?]+$/u,"")}function nI(e,t){if(!$0(t))return;const n=String(e??"").trim().split(/\s+/u).map(uxe).filter(Boolean);if(n.length===0)return;const i={};return t?.filename&&n.every(o=>oy(o,{filename:!0,explicitFilename:t.explicitFilename}))&&(i.filename=!0),t?.explicitFilename&&i.filename&&(i.explicitFilename=!0),t?.marketTicker&&n.every(o=>oy(o,{marketTicker:!0}))&&(i.marketTicker=!0),$0(i)?i:void 0}function Gc(e,t=!1){let n;return{options(i){return t||i==null?eI(e,n):eI(e,V3(tI(i),nI(i,n)))},remember(i){const o=tI(i);n=t?V3(n,o):V3(o,nI(i,n))},reset(){n=void 0}}}function iI(e){return Zwe.test(e)&&!e.startsWith("-")&&!e.endsWith("-")}function cxe(e){const t=e.split(".");if(t.length<2)return!1;const n=t[t.length-1]?.toLowerCase()??"";return iI(n)||Gwe.test(n)?t.every(iI):!1}function Vz(e){return Array.from(e).some(t=>t.charCodeAt(0)>127)}function dxe(e){return e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/,1)[0]??""}function fxe(e){return e.split(".").some(t=>t.toLowerCase().startsWith("xn--"))}function Zz(e,t,n){const i=dxe(t);return Vz(e)&&fxe(i)&&String(n??"").toLowerCase().includes(i.toLowerCase())}function hxe(e){if(!e)return!1;if(e.includes("文件")||e.includes("附件")||e.includes("路径")||e.includes("路徑")||e.includes("文档")||e.includes("文檔")||e.includes("档案")||e.includes("檔案")||e.includes("资料")||e.includes("資料")||e.includes("股票")||e.includes("证券")||e.includes("證券")||e.includes("代码")||e.includes("代碼")||e.includes("交易所")||e.includes("后缀")||e.includes("後綴")||e.includes("市场")||e.includes("市場"))return!0;const t=e.toLowerCase();return t.includes("file")||t.includes("attachment")||t.includes("document")||t.includes("doc")||t.includes("path")||t.includes("ticker")||t.includes("symbol")||t.includes("exchange")}function yg(e){const t=String(e??""),n=Rd.get(t);return n?(Rd.delete(t),Rd.set(t,n),n):hxe(t)?XM(t,{explicitFilename:Jwe.test(t),filename:Xwe.test(t),marketTicker:exe.test(t)}):XM(t,ixe)}function pxe(e){return cxe(e.split(/[\\/]/)[0]??"")}function gxe(e){const t=e.replace(/[^a-z]/gi,"");return t.length>=2&&t===t.toUpperCase()}function mxe(e){if(Wwe.test(e)||!Vwe.test(e))return!0;if(Kwe.test(e))return!pxe(e);const t=e.replace(Uz,"");return Vz(t)?!0:t.split(".").filter(Boolean).some(gxe)}function vxe(e,t,n){if(!(n?sxe:Kz).has(t))return!1;const i=e.slice(0,-(t.length+1));return i===""?e.startsWith("."):(n?Ywe:Qwe).test(i)}function oy(e,t={}){if(!e||qwe.test(e)||Uwe.test(e))return!1;const n=e.match(Uz);if(!n)return!1;const i=String(n[1]??"").toLowerCase();return vxe(e,i,t.marketTicker===!0)?!0:axe.has(i)?!oxe.has(i)||t.filename?!0:mxe(e):!!(t.explicitFilename&&rxe.has(i)||t.filename&&lxe.has(i))}const Gz=new WeakMap,Qz=new WeakSet;function B8(e,t){return Gz.set(e,t),e}function yxe(e){return Gz.get(e)}function kxe(e){Qz.add(e)}function bxe(e){return e===void 0||Qz.has(e)}const oI=["!"];function sI(e){return e==="linkify"||e==="autolink"?e:"recovery"}function $r(e){return{type:"text",content:e,raw:e}}function vd(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function yd(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Ku(e,t,n,i="recovery"){let o="";if(t.includes('"')){const s=t.split('"');t=s[0].trim(),o=s[1].trim()}return B8({type:"link",loading:n,href:t,title:o,text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`},i)}function Axe(e,t){if(!(!e||!t)&&(e.href=String(e.href??"")+t,e.text=String(e.text??"")+t,e.raw=`[${e.text}](${e.href})`,Array.isArray(e.children)&&e.children.length)){const n=e.children[e.children.length-1];n?.type==="text"?(n.content=String(n.content??"")+t,n.raw=String(n.raw??"")+t):e.children.push($r(t))}}function rI(e,t){let n=-1;for(const i of t){const o=e.indexOf(i);o!==-1&&(n===-1||on?.[0]==="href")?.[1];return typeof t=="string"?t:""}function wxe(e,t){if(!e)return;e.attrs=Array.isArray(e.attrs)?e.attrs:[];const n=e.attrs.findIndex(i=>i?.[0]==="href");n>=0?e.attrs[n][1]=t:e.attrs.push(["href",t])}function lI(e,t,n){let i="";for(let o=t+1;o{const n=t.tokens??[];for(let i=0;ir.type==="code_inline"),i=new Map;let o=0;for(let r=0;r0&&u?aI(u):-1;if(c!==-1&&u)for(const d of u.slice(c))d==="("?o++:d===")"&&o>0&&o--}a!==-1&&(r=a);continue}if(!(l.type!=="text"||typeof l.content!="string"))for(const a of l.content)a==="("?o++:a===")"&&o>0&&o--}const s=yg(t);for(let r=0;r<=e.length-1;r++){r<0&&(r=0);const l=e[r];if(!l)break;if(l.type==="link_open"&&(l.markup==="linkify"||l.markup==="autolink")){let a=-1;for(let u=r+1;u0){const g=aI(u);g!==-1&&(d===-1||g=m.content.length){p-=m.content.length;continue}if(p<0)break;const k=m.content[p],w=m.content.slice(0,p);let y=m.content.slice(p);for(let T=g+1;T0&&(e.splice(g+1,b),a=g+1);let A=c;if(k==="!"&&h!==-1)A=c.slice(0,h);else if(y){const T=encodeURI(y);if(T&&c.endsWith(T))A=c.slice(0,c.length-T.length);else{const S=k?encodeURI(k):"",x=S?c.indexOf(S):-1;x!==-1&&(A=c.slice(0,x))}}A!==c&&wxe(l,A),y&&e.splice(a+1,0,$r(y));break}}}if(!n){if(l?.type==="em_open"&&e[r-1]?.type==="text"&&e[r-1].content?.endsWith("*")){const a=e[r-1].content?.replace(/(\*+)$/,"")||"";e[r-1].content=a,l.type="strong_open",l.tag="strong",l.markup="**";for(let u=r+1;ud[0]==="href")?.[1]||"";if(e[r+3]?.type==="text"){const d=(e[r+3]?.content??"").indexOf(")"),h=d===-1;d===-1&&(c+=e[r+3]?.content?.slice(0,d)||"",e[r+3].content=""),a.push(Ku(u,c,h,"linkify"));const p=e[r+3].content?.replace(/^\)\**/,"");p&&a.push($r(p)),e.splice(r-4,8,...a)}else a.push(B8({type:"link",loading:!0,href:c,title:"",text:u,children:[{type:"text",content:c,raw:c}],raw:`[${u}](${c})`},"linkify")),e.splice(r-4,7,...a);continue}else if(e[r-1].content==="]("&&e[r-3]?.type==="text"&&e[r-3].content?.endsWith(")"))if(e[r-2]?.type==="strong_open"){const[a,u]=e[r-3].content?.split("[**")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else if(e[r-2]?.type==="em_open"){const[a,u]=e[r-3].content?.split("[*")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else{const[a,u]=e[r-3].content?.split("[")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}}if(l.type==="link_close"&&l.nesting===-1&&e[r-2]?.type==="link_open"&&e[r+1]?.type==="text"&&e[r-1]?.type==="text"){const a=e[r-1].content||"",u=e[r-2].attrs||[],c=u.find(w=>w[0]==="href")?.[1]||"",d=u.find(w=>w[0]==="title")?.[1]||"";let h=3,p=2;const g=(e[r-3]?.content||"").match(/^(\*+)$/),m=[];if(g){p+=1;const w=g[1].length;vd(m,w)}if(l.markup!=="linkify"&&e[r+1].type==="text"&&e[r+1]?.content?.startsWith("](")){h+=1;for(let w=r+1;wk[0]==="href")?.[1];e[r+5]?.type==="text"&&e[r+5].content==="."?(h=(m||h)+e[r+5].content,e[r+5].content=""):h=m||h,p+=3}let g=!0;if(l.nesting===-1&&(d=d.replace(/\*+$/,"")),e[r+2]?.type==="text"){const m=(e[r+2]?.content??"").indexOf(")");g=m===-1,m===-1&&(h+=e[r+2]?.content?.slice(0,m)||"",e[r+2].content="")}a.push(Ku(d,h,g)),yd(a,2),e.splice(r-2,p,...a)}if(l.type==="text"&&/\*+\[[^\]]*$/.test(l.content||"")&&e[r+1]?.type==="strong_open"&&e[r+2]?.type==="text"&&e[r+2].content==="]("&&e[r+3]?.type==="link_open"&&e[r+5]?.type==="link_close"&&e[r+6]?.type==="text"&&e[r+6].content===")"&&e[r+7]?.type==="strong_close"){const a=(l.content||"").match(/^(\*+)\[(.*)$/);if(a){const u=(a[2]||"")+a[1];let c=e[r+3]?.attrs?.find(h=>h[0]==="href")?.[1]||"";!c&&e[r+4]?.type==="text"&&(c=e[r+4].content||"");const d=[];vd(d,2),d.push(Ku(u,c,!1)),yd(d,2),e.splice(r,9,...d),r-=d.length-1;continue}}}}if(n)return e;for(let r=0;r{const n=t.tokens??[];for(let i=0;i{const n=t.tokens??[];for(let i=0;i=0&&e[g].type==="text"&&e[g].content==="";)g--;const m=e[g];let k=c+1;for(;k=0&&e[g].type==="text"&&e[g].content==="";)g--;const m=e[g];let k=c+1;for(;k{const n=t;try{const i=zxe(n.tokens??[],!!n.env?.__markstreamFinal,n.src??"");Array.isArray(i)&&(n.tokens=i)}catch(i){console.error("[applyFixTableTokens] failed to fix table tokens",i)}})}function uI(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function cI(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function dI(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:null,content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function Yz(e,t){if(!e.startsWith("|")||e.includes(` -`)||!e.endsWith("|"))return null;const n=e.slice(1).split("|");return n.at(-1)===""&&n.pop(),n.length>0&&n.every(i=>i.trim().length>0)?n:null}function Z3(e){return Yz(e)!==null}function Jz(e){return/^:?-+:?$/.test(e.trim())}function Fxe(e){if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|");return t.at(-1)===""&&t.pop(),t.length>0&&t.every(Jz)}function Dxe(e){return/^(?:[::]-*|:?-+:?)?$/.test(e.trim())}function Bxe(e){if(e==="")return!0;if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|"),n=t.at(-1)??"";return t.slice(0,-1).every(Jz)&&Dxe(n)}function $xe(e){return e==="|"||e==="|:"}function Rxe(e){const t=Yz(e);return t!==null&&t.every(n=>!n.includes(":"))}function zxe(e,t=!1,n=""){const i=[...e];if(e.length<3)return i;const o=e.length-2,s=e[o];if(s.type==="inline"){const r=String(s.content??""),l=r.split(` -`)[0]??"",[a="",u="",...c]=r.split(` -`),d=!t&&!r.includes(` -`)&&/\r?\n$/.test(n)&&Z3(r);if(!t&&(r.includes(` -`)&&c.length===0&&Z3(a)&&Bxe(u)||d)){const h=l.slice(1,-1).split("|").map(g=>g.trim()).flatMap(g=>dI(g)),p=[...uI(),...h,...cI()];i.splice(o-1,3,...p)}else if(r.includes(` -`)&&c.length===0&&Z3(a)&&Fxe(u)){const h=l.slice(1,-1).split("|").map(g=>g.trim()).flatMap(g=>dI(g)),p=[...uI(),...h,...cI()];i.splice(o-1,3,...p)}else r.includes(` -`)&&c.length===0&&Rxe(a)&&$xe(u)&&(s.content=r.slice(0,-2),s.children.splice(2,1))}return i}function Oxe(e,t,n,i){const o=e.length;if(n==="$$"&&i==="$$"){let u=t;for(;u=0&&e[c]==="\\";)d++,c--;if(d%2===0)return u}u++}return-1}const s=n[n.length-1],r=i;let l=0,a=t;for(;a=0&&e[c]==="\\";)d++,c--;if(d%2===0){if(l===0)return a;l--,a+=r.length;continue}}const u=e[a];if(u==="\\"){a+=2;continue}u===s?l++:u===r[r.length-1]&&l>0&&l--,a++}return-1}var Pxe=Oxe;const jxe=["boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],sy=jxe.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),Hxe=/\\[a-z]+/i,Xz="(?:\\\\|\\u0008)",Wxe=new RegExp(String.raw`${Xz}(?:${sy})\s*\{[^}]+\}`,"i"),qxe=new RegExp(String.raw`(?:${Xz})?(?:${sy})\s*\{`,"i"),Uxe=/\\(?:text|frac|left|right|times)/,Kxe=/(?:^|[^+])\+(?!\+)|[=\-*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/,Vxe=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Zxe=/[A-Z]+\s*\([^)]+\)/i,Gxe=/^\(\s*[a-z](?:\s*,\s*[a-z])+\s*\)$/i,Qxe=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,Yxe=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/,Jxe={"\b":"\\b","\v":"\\v","\f":"\\f"};function Xxe(e){let t="";for(const n of e)t+=Jxe[n]??n;return t}function ac(e){if(!e)return!1;const t=Xxe(e),n=t.trim();if(Yxe.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const i=Hxe.test(t),o=Wxe.test(t),s=qxe.test(t),r=Uxe.test(t),l=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),a=Kxe.test(t)&&!Vxe.test(t),u=Zxe.test(t),c=Gxe.test(n),d=Qxe.test(t),h=/^\([a-z]\)$/i.test(n)||/^(?:[a-z]|pi)$/i.test(n),p=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return i||o||s||r||l||a||u||c||d||h||p}const eO="__markstreamMathPluginApplied",$8=80,tO=2e4,fI=tO+4096;function S7(e){return!!e[eO]}function eSe(e){e[eO]=!0}const nO=["ldots","cdots","quad","in","displaystyle","int_","lim","lim_","ce","pu","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathit","mathbb","mathcal","mathfrak","implies","alpha","beta","gamma","delta","epsilon","lambda","sum","sum_","prod","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","frac","text","left","right"],tSe=["cdot","mathbf{","partial","mu_{"],iO=nO.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),oO="[ \r\b\f\v]",nSe=new RegExp(`([^\\\\])(${tSe.map(e=>e).join("|")})+`,"g"),iSe=/span\{([^}]+)\}/,oSe=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,sSe=/(^|[^\\])\\\r?\n/g,rSe=/(^|[^\\])\\$/g,lSe=/[\p{L}\p{M}\p{N}\p{Pe}\p{Pf}'′″‴|‖]/u,aSe=new RegExp(`(${oO})|(${iO})\\b`,"g"),hI=new Map,pI=new Map;function uSe(e){if(!e)return aSe;const t=[...e];t.sort((r,l)=>l.length-r.length);const n=t.join(""),i=hI.get(n);if(i)return i;const o=`(?:${t.map(r=>r.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,s=new RegExp(`(${oO})|(${o})\\b`,"g");return hI.set(n,s),s}function cSe(e,t){const n=e?[]:[...t??[]];e||n.sort((l,a)=>a.length-l.length);const i=e?"__default__":n.join(""),o=pI.get(i);if(o)return o;const s=e?[sy,iO].filter(Boolean).join("|"):[n.map(l=>l.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),sy].filter(Boolean).join("|"),r=new RegExp(`(^|[^\\\\\\w])(${s})\\s*\\{`,"g");return pI.set(i,r),r}const gI={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function mI(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function dSe(e){return e.replace(/(^|[^\\])!+/gu,(t,n)=>{if(n&&lSe.test(n))return t;const i=n?t.slice(n.length):t;return`${n}${"\\!".repeat(i.length)}`})}function vI(e){const t=/(^|[^\\])(__|\*\*)/g;let n,i=null;for(;(n=t.exec(e))!==null;)i={marker:n[2],index:n.index+(n[1]?.length??0)};return i}function Vu(e,t){const n=t?.commands??nO,i=t?.escapeExclamation??!0,o=t?.commands==null,s=uSe(o?void 0:n);let r=e.replace(s,(u,c,d,h,p)=>{if(c!==void 0&&gI[c]!==void 0)return`\\${gI[c]}`;if(d&&n.includes(d)){const g=p&&typeof h=="number"?p[h-1]:void 0;return g==="\\"||g&&/\w/.test(g)?u:`\\${d}`}return u});i&&(r=dSe(r));let l=r;const a=cSe(o,o?void 0:n);return l=l.replace(a,(u,c,d)=>`${c}\\${d}{`),l=l.replace(iSe,"span\\{$1\\}").replace(oSe,"\\operatorname{span}\\{$1\\}"),l=l.replace(sSe,`$1\\\\ -`),l=l.replace(rSe,"$1\\\\"),l=l.replace(nSe,"$1\\$2"),l}function yI(e){const t=e.trim();return!(!ac(t)||/"[^"\n]{1,80}"\s*:\s*/.test(t)||!(/\\[a-z]+/i.test(t)||/[=+*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/.test(t)||/[_^]/.test(t))&&/\s-\s/.test(t))}function sO(e){const t=[];let n=0;for(;n=n[0]&&t0;){if(e[s]==="\\"&&s+10;){if(e[l]==="\\"&&l+1=0&&e[n]==="\\";)i++,n--;return i%2===1}function R8(e,t){let n=t;for(;n0&&e[i-1]==="$"||i+1=l)break;const u=ry(o,a);if(u){r=Math.max(a+Math.max(1,t.length),u[1]);continue}kg(e,a)||s++,r=a+Math.max(1,t.length)}return s}function _7(e,t,n){const i=z0(String(e??""));if(!i.endsWith(t))return-1;const o=i.length-t.length;if(o<=0||!z0(i.slice(0,o)).trim()||kg(i,o))return-1;const s=sO(i);if(ry(s,o))return-1;const r=kI(i,t,0,o,s);if(t==="$$"){if(r%2===1)return-1}else if(r>kI(i,n,0,o,s))return-1;return o}function R0(e){return e===" "||e===" "}function z0(e){let t=e.length;for(;t>0&&R0(e[t-1]);)t--;return e.slice(0,t)}function bI(e){let t=0;for(let n=0;n=48&&t<=57}function hSe(e){if(e.length<3)return!1;const t=e[0];if(t!=="-"&&t!=="*"&&t!=="_"&&t!=="=")return!1;let n=0;for(let i=0;i=3}function pSe(e){const t=e.trim();if(!t)return!1;let n=0;t[n]===":"&&n++;let i=0;for(;t[n]==="-";)i++,n++;return i<3?!1:(t[n]===":"&&n++,n===t.length)}function gSe(e){if(!e.includes("|"))return!1;const t=e[0]==="|"?e.slice(1):e;return(t.endsWith("|")?t.slice(0,-1):t).split("|").every(pSe)}function mSe(e){let t=0;if(!AI(e[t]))return!1;for(;AI(e[t]);)t++;return e[t]!=="."&&e[t]!==")"?!1:R0(e[t+1])}function rO(e){const t=e.trimStart();if(!t||t.startsWith("```")||t.startsWith("~~~")||t.startsWith(":::")||t[0]===">"||t[0]==="<")return!0;if(t[0]==="#"){let n=0;for(;t[n]==="#";)n++;if(n>=1&&n<=6&&R0(t[n]))return!0}return!!((t[0]==="-"||t[0]==="+"||t[0]==="*")&&R0(t[1])||mSe(t)||hSe(t)||gSe(t))}function CI(e,t){return e?t?`${e} -${t}`:e:t}function z8(e){const t=String(e??"").trim();return t?ac(t):!1}function wI(e){let t=0;for(let n=0;n$8){p=!0;break}const m=o[g],k=lh(m,c);if(k!==-1){const w=CI(h,m.slice(0,k));if(!z8(w)){p=!0;break}const y=m.slice(k+c.length),b=y.trim()?`suffix:${wI(y)}`:"nosuffix";return["closed",u,i+l,d,i+g,k,wI(w),b].join(":")}if(rO(m)){p=!0;break}if(h=CI(h,m),h.length>tO){p=!0;break}}if(!p&&z8(h))return["pending",u,i+l,d].join(":")}}return null}function Q3(e,t){const n=String(e??"").trim();return!n||!/^\d[\d,.]*\s*[~~-]\s*$/.test(n)?!1:/\d/.test(String(t??""))}function ySe(e){const t=String(e??"").trimStart(),n=t.match(/^\d+(?:,\d{3})*(?:\.\d+)?/);if(!n)return!1;const i=t.slice(n[0].length);return/^\s*(?:[+\-*/^_=<>]|\\[a-z]+)/i.test(i)?!1:i===""||/^[)\s,.!?;:]/.test(i)}function Y3(e){const t=String(e??"").trim();return t?/^(?:\.{3,}|…+)$/.test(t):!1}function kSe(e,t){eSe(e);const n=(r,l,a)=>{const u=String(l??"").replace(/^[\t ]+/,"").replace(/[\t ]+$/,"");if(!u)return;const c=r.push("paragraph_open","p",1);c.map=[a,a+1];const d=r.push("inline","",0);d.content=u,d.map=[a,a+1],d.children=[],r.push("paragraph_close","p",-1)},i=(r,l)=>{const a=r,u=!!t?.strictDelimiters,c=!a?.env?.__markstreamFinal,d=(y,b)=>{let A=b;for(;A=3&&(!A||/\s/.test(A))){const T=a.push("text","",0);return T.content=a.src.slice(a.pos,y),a.pos=y,!0}}const h=[["$$","$$"],["$","$"],["\\(","\\)"]],p=String(a.pending??""),g=Math.max(0,a.pos-p.length);let m=g,k=g;const w=g;for(const[y,b]of h){const A=a.src,T=sO(A),S=fSe(A,c);let x=!1;y==="$$"&&m!==w&&(m=w);let _=-1,L=-1,M=0;const N=I=>{if((I==="undefined"||I==null)&&(I=""),I==="\\"){a.pos=a.pos+I.length,m=a.pos;return}if(I==="\\)"||I==="\\("){const O=a.push("text_special","",0);O.content=I==="\\)"?")":"(",O.markup=I,a.pos=a.pos+I.length,m=a.pos;return}if(!I)return;if(y==="$$"&&I.includes("$")){let O=0;for(;O0&&I[R-1]==="$"||R+10){const j=I.slice(0,z),$=a.push("text","",0);$.content=j,a.pos=a.pos+j.length,m=a.pos}const O=I.slice(z).match(/^!\[([^\]]*)\]\(([^)]+)\)/);if(O){const[,j,$]=O,W=$.match(/^(\S+)(?:\s+"([^"]+)")?\s*$/),P=W?W[1]:$,Z=W&&W[2]?W[2]:null,ae=a.push("image","img",0);ae.attrs=[["src",P],["alt",j]],Z&&ae.attrs.push(["title",Z]),ae.content=j,ae.children=[{type:"text",content:j,tag:""}],a.pos=a.pos+O[0].length,m=a.pos;const V=I.slice(z+O[0].length);V&&N(V);return}const R=a.push("text","",0);R.content=I,a.pos=a.pos+I.length,m=a.pos;return}const H=a.push("text","",0);H.content=I,a.pos=a.pos+I.length,m=a.pos};for(;!(m>=A.length);){const I=A.indexOf(y,m);if(I===-1)break;if(kg(A,I)){m=I+Math.max(1,y.length);continue}const z=ry(T,I);if(z){m=z[1];continue}const H=ry(S,I);if(H){m=H[1];continue}if(I===_&&m===L){if(M++,M>2){m=I+Math.max(1,y.length);continue}}else M=0,_=I,L=m;if(y==="("&&I>0){let V=I-1;for(;V>=0&&A[V]===" ";)V--;if(V>=0&&A[V]==="]"){m=I+y.length;continue}}if(y==="$"&&I>0&&A[I-1]==="$"){m=I+1;continue}if(y==="$"&&I=A.length);){const z=R8(A,I);if(z===-1)break;if(z+10&&A[z-1]==="$"){I=z+1;continue}const H=G3(A,z+1);if(H===-1)break;const O=A.slice(z+1,H),R=O.includes("`"),j=!O||!O.trim(),$=A[H+1],W=Q3(O,$),P=Y3(O);if(!R&&!j&&!W&&!P){const Z=A.slice(m,z);Z&&N(Z);const ae=a.push("math_inline","math",0);ae.content=Vu(O,t),ae.markup="$",ae.raw=`$${O}$`,ae.loading=!1,m=H+1,I=H+1}else N("$"),I=z+1}I{const c=r,d=!c?.env?.__markstreamFinal,h=t?.strictDelimiters,p=h?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],g=c.bMarks[l]+c.tShift[l];let m=c.src.slice(g,c.eMarks[l]).trim(),k=!1,w="",y="",b=!1,A="",T=!1;for(const[Z,ae]of p)if(m.startsWith(Z))if(Z.includes("[")){const V=Z==="\\["?m.slice(Z.length):"";if(Z==="\\["&&lh(V,ae)===-1&&!/^\s*!\[/.test(V)&&!V.includes("`")&&ac(V)){k=!0,w=Z,y=ae;break}if(t?.strictDelimiters){if(m.replace("\\","")==="["){if(l+1=0?"\\]":y,M=_>=0?_:lh(m,y,x);if(!b&&M>w.length){const Z=m.slice(S+w.length,M),ae=c.push("math_block","math",0);ae.content=Vu(Z),ae.markup=w==="$$"?"$$":w==="["?"[]":"\\[\\]",ae.map=[l,l+1],ae.raw=`${w}${Z}${L}`,ae.block=!0,ae.loading=!1,c.line=l+1;const V=m.slice(M+L.length);return V.trim()&&n(c,V,l),!0}let N=l,I="",z=!1,H="",O=l;const R=b?m:m===w?"":m.slice(w.length),j=!h&&w==="\\["?"]":"",$=lh(R,y);if($!==-1){const Z=$;I=R.slice(0,Z),H=R.slice(Z+y.length),O=b?l+1:l,z=!0,N=O}else for(R&&!b&&(I=R),N=l+1;N{const c=r,d=c.bMarks[l]+c.tShift[l],h=c.src.slice(d,c.eMarks[l]).trim();return!h.startsWith("$$")&&!h.startsWith("\\[")?!1:o(r,l,a,u)};e.inline.ruler.before("escape","math",i),e.block.ruler.before("lheading","explicit_math_block",s,{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function bSe(e){const t=e.renderer.rules.image||function(n,i,o,s,r){const l=n,a=r;return a.renderToken?a.renderToken(l,i,o):""};e.renderer.rules.image=(n,i,o,s,r)=>{const l=n;return l[i].attrSet?.("loading","lazy"),t(l,i,o,s,r)},e.renderer.rules.fence=e.renderer.rules.fence||((n,i)=>{const o=n[i],s=String(o.info??"").trim();return`
        ${e.utils.escapeHtml(String(o.content??""))}
        `})}const ASe=/^\s]/i,CSe=/^<\/a\s*>/i;function wSe(e,t){if(e?.type!=="inline")return!1;const n=e.children;if(!Array.isArray(n)||n.length===0)return t.test(String(e.content??""));let i=0;for(let o=n.length-1;o>=0;o--){const s=n[o];if(s?.type==="link_close"){for(o--;o>=0&&n[o]?.level!==s.level&&n[o]?.type!=="link_open";)o--;continue}if(s?.type==="html_inline"){const r=String(s.content??"");ASe.test(r)&&i>0&&i--,CSe.test(r)&&i++}if(!(i>0)&&s?.type==="text"&&t.test(String(s.content??"")))return!0}return!1}function xSe(e){const t=e.core?.ruler,n=t.getNamedRules?.().find(i=>i.name==="linkify")?.fn;typeof n=="function"&&t.at("linkify",i=>{if(!i.md?.options?.linkify)return;const o=Array.isArray(i.tokens)?i.tokens:[],s=i.md.linkify;if(!s)return;const r=o.filter(l=>wSe(l,s));if(r.length)return n(Object.assign(Object.create(Object.getPrototypeOf(i)),i,{tokens:r}))})}function SSe(e){const t=e.inline.ruler,n=t.getNamedRules?.(),i=n?.find(l=>l.name==="link")?.fn,o=n?.find(l=>l.name==="image")?.fn;if(typeof i!="function"||typeof o!="function")return;const s=e.validateLink,r=e;r.__markstreamOriginalValidateLink=s,t.at("link",(...l)=>{const a=l[0].md,u=a?.validateLink===s?a.options?.validateLink:a?.validateLink;if(!a||typeof u!="function")return i(...l);const c=a.validateLink;a.validateLink=u;try{return i(...l)}finally{a.validateLink=c}}),t.at("image",(...l)=>{const a=l[0].md;if(!a)return o(...l);const u=a.validateLink;a.validateLink=s;try{return o(...l)}finally{a.validateLink=u}})}function _Se(e={}){const t=e.markdownItOptions??{},n=typeof t.experimental=="object"&&t.experimental!==null?t.experimental:{},i=Object.prototype.hasOwnProperty.call(t,"stream")?!!t.stream:!0,o=Object.prototype.hasOwnProperty.call(t,"validateLink"),s=new XCe({html:!0,linkify:!0,typographer:!0,...t,experimental:{stream:i,...n}});if(!o){const r=l=>!Gd(l,{tagName:"a",attrName:"href"});kxe(r),s.set({validateLink:r})}return SSe(s),xSe(s),(e.enableMath??!0)&&kSe(s,{...e.mathOptions??{}}),(e.enableContainers??!0)&&kwe(s),e.enableFixIndentedCodeBlock!==!1&&Hwe(s),xxe(s),Ixe(s),_xe(s),Nxe(s),bSe(s),Pwe(s,{customHtmlTags:e.customHtmlTags}),s}function Qd(e){const t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return Array.isArray(e.attrs)&&(t.attrs=e.attrs.map(n=>[...n])),Array.isArray(e.map)&&(t.map=[...e.map]),Array.isArray(e.children)&&(t.children=e.children.map(n=>Qd(n))),t}function MSe(e){const t=e.meta??{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function ISe(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,i=n===""||n==="true";return{type:"checkbox_input",checked:i,raw:i?"[x]":"[ ]"}}function ESe(e){const t=String(e.content??"");return{type:"emoji",name:t,markup:String(e.markup??""),raw:`:${t}:`}}function Um(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;sn.startsWith(t)||t.startsWith(n)):!1}function xI(e,t,n,i){n.length>0&&e.push(...n),i.length>0&&t.push(...i),n.length=0,i.length=0}function SI(e,t){return!t&&e.startsWith(" ")&&!e.startsWith(" ")?` ${e}`:e}function FSe(e,t){const n=[],i=[],o=[],s=[],r=e.split(LSe),l=/\r?\n$/.test(e),a=r.some(p=>p.startsWith("diff ")||p.startsWith("--- ")||p.startsWith("+++ ")||p.startsWith("@@ ")),u=p=>{const g=p;if(!uO.some(m=>g.startsWith(m)))if(g.startsWith("-")){const m=g.slice(1);o.push(SI(m,a))}else if(g.startsWith("+")){const m=g.slice(1);s.push(SI(m,a))}else{xI(n,i,o,s);const m=a&&g.startsWith(" ")?g.slice(1):g;n.push(m),i.push(m)}},c=l?Math.max(0,r.length-1):r.length;for(let p=0;p0||s.length>0)&&xI(n,i,o,s);const d=n.join(` -`),h=i.join(` -`);return{original:t&&l&&d?`${d} -`:d,updated:t&&l&&h?`${h} -`:h}}function M7(e){const t=Array.isArray(e.map)&&e.map.length===2,n=e.meta??{},i=typeof n.closed=="boolean"?n.closed:void 0,o=i===!0||i!==!1&&t,s=String(e.info??""),r=s.startsWith("diff"),l=r?(()=>{const u=s,c=u.indexOf(" ");return c===-1?"":String(u.slice(c+1)??"")})():s;let a=String(e.content??"");if(!o&&e.markup){const u=e.markup[0],c=e.markup.length,d=TSe(u,c);d.test(a)&&(a=a.replace(d,""))}if(r){const{original:u,updated:c}=FSe(a,o===!0);return{type:"code_block",language:l,code:String(c??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t,originalCode:u,updatedCode:c}}return{type:"code_block",language:l,code:String(a??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t}}function DSe(e){const t=e.meta??{};return{type:"footnote_reference",id:String(t.label??""),raw:`[^${String(t.label??"")}]`}}function BSe(){return{type:"hardbreak",raw:`\\ -`}}function $Se(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s\s*$/.test(t)||Tc.has(e)}function RSe(e){if(!e||e.length===0)return _I();const t=X3.get(e);if(t)return t;const n=e.map(zl).filter(Boolean);if(!n.length){const o=_I();return X3.set(e,o),o}const i={customTagSet:new Set(n),allowedTagSet:T9({customHtmlTags:e})};return X3.set(e,i),i}function hO(e){const t=e,n=t.raw??t.content??t.markup??"";return String(n??"")}function zSe(e){const t=e.meta,n=t?.markstreamCustomHtmlRaw,i=t?.markstreamCustomHtmlInner;return typeof n=="string"&&typeof i=="string"?{raw:n,inner:i}:null}function ly(e,t){const n=t.toLowerCase();for(let i=e.length-1;i>=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function OSe(e,t,n){const i=e.slice();return ly(i,"href")||i.push(["href",t]),n!=null&&!ly(i,"title")&&i.push(["title",n]),i}function O8(e){return e.map(hO).join("")}function Lv(e){const t=[],n=i=>{const o=String(i??"");if(!o)return;const s=t[t.length-1];if(s?.type==="text"){s.content=`${s.content}${o}`,s.raw=`${s.raw}${o}`;return}t.push({type:"text",content:o,raw:o})};for(const i of e)if(i){if(i.type==="reference"||i.type==="footnote_reference"){n(String(i.raw??""));continue}if("children"in i&&Array.isArray(i.children)){t.push({...i,children:Lv(i.children)});continue}t.push(i)}return t}function PSe(e,t,n){let i=0;for(let o=t;o`;m.toLowerCase().includes(T.toLowerCase())||(m+=T),w=!0,k=!0}const y=[],b=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let A;for(;(A=b.exec(l))!==null;){const T=A[1],S=A[2]||A[3]||A[4]||"";y.push([T,S])}if(u?.has(a)){const T=zSe(e);return[{type:a,tag:a,attrs:y,content:T?T.inner:p.innerTokens.length?O8(p.innerTokens):"",children:p.innerTokens.length?i(p.innerTokens,o,s,r):[],raw:T?.raw??m,loading:e.loading||k,autoClosed:w},p.nextIndex]}return[{type:"html_inline",tag:a,attrs:y,content:m,children:g,raw:m,loading:k,autoClosed:w},p.nextIndex]}function pO(e){if(e.type==="math_inline"){if(e.raw)return String(e.raw);const t=e.markup==="$$"?"$$":"$";return`${t}${String(e.content??"")}${t}`}return Array.isArray(e.children)&&e.children.length>0?e.children.map(t=>pO(t)).join(""):String(e.content??"")}function HSe(e){return!e||!Array.isArray(e.children)||e.children.length===0?"":e.children.map(t=>pO(t)).join("")}function MI(e,t=!1){let n=e.attrs??[],i=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const d of e.children){const h=d.attrs;if(Array.isArray(h)&&h.length>0){n=h,i=d;break}}const o=String(n.find(d=>d[0]==="src")?.[1]??""),s=n.find(d=>d[0]==="alt")?.[1],r=HSe(i??e);let l="";r?l=r:s!=null&&String(s).length>0?l=String(s):i?.content!=null&&String(i.content).length>0?l=String(i.content):Array.isArray(i?.children)&&i.children[0]?.content?l=String(i.children[0].content):Array.isArray(e.children)&&e.children[0]?.content?l=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(l=String(e.content));const a=n.find(d=>d[0]==="title")?.[1]??null,u=a===null?null:String(a),c=String(e.content??"");return{type:"image",src:o,alt:l,title:u,raw:c,loading:t}}function WSe(e){const t=String(e.content??"");return{type:"inline_code",code:t,raw:t}}function qSe(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function KSe(e,t,n){const i=e.slice();return ay(i,"href")||i.push(["href",t]),n!=null&&!ay(i,"title")&&i.push(["title",n]),i}function Km(e,t,n){const i=e[t],o=USe(i.attrs),s=String(ay(o,"href")??""),r=ay(o,"title"),l=r==null?null:String(r),a=KSe(o,s,l);let u=t+1;const c=[];let d=!0;for(;uk.type==="strong_open")){const k=String(p.content??""),w=String(p.raw??k),y=Qd(p);y.content=k.slice(0,-2),y.raw=w.replace(/\*\*$/,""),h=c.slice(),h[h.length-1]=y}const g=Ao(h,void 0,void 0,n),m=g.map(k=>{const w=k;return"content"in k?String(w.content??""):String(w.raw??"")}).join("");return{node:{type:"link",href:s,title:l,text:m,children:g,raw:`[${m}](${s}${l?` "${l}"`:""})`,loading:d,attrs:a},nextIndex:u0?i:[{type:"text",content:a,raw:a}],raw:`~${a}~`},nextIndex:s0?i:[{type:"text",content:o||String(e[t].content??""),raw:o||String(e[t].content??"")}],raw:`^${o||String(e[t].content??"")}^`},nextIndex:s?@[\\\]^_`{|}~]/,s_e=/\p{P}/u,r_e=/^[\x22\x27《「『【〔〖〘〚〈([{“‘﹁﹃﹙﹛﹝]$/u,l_e=/^[\x22\x27》」』】〕〗〙〛〉)]}”’﹂﹄﹚﹜﹞]$/u,a_e=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,u_e=/:\/\//,P8=1,gO=2,c_e=4,d_e=8,mO=16,ec=32,Nv=64,wp=128,vO=256,f_e=512,xp=1024,h_e=1982;function Vm(e){let t=0;for(let n=0;n=t){n++,i++;continue}n++,i++;continue}if(o==="*"&&n>=t)return n;n++}return-1}function Lc(e){return!!e&&i_e.test(e)}function Nc(e){return!!e&&(o_e.test(e)||s_e.test(e))}function kO(e,t){return!!e&&!!t&&/^\p{Script=Han}$/u.test(t)&&r_e.test(e)}function bO(e,t){return!!e&&!!t&&/^[\p{L}\p{N}]$/u.test(t)&&l_e.test(e)}function g_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!i||Lc(i)?!1:!(Nc(i)&&!kO(i,n)&&n&&!Lc(n)&&!Nc(n))}function m_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!n||Lc(n)?!1:!(Nc(n)&&!bO(n,i)&&i&&!Lc(i)&&!Nc(i))}function v_e(e,t,n=0){let i=n,o=!1;for(;i0?e[t-1]:void 0,i=e[t+2];return!i||Lc(i)?!1:!(Nc(i)&&!kO(i,n)&&n&&!Lc(n)&&!Nc(n))}function k_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+2];return!n||Lc(n)?!1:!(Nc(n)&&!bO(n,i)&&i&&!Lc(i)&&!Nc(i))}function b_e(e,t=0){let n=t,i=!1;for(;n=0&&e[s]==="\\";s--)o++;return o%2===1}const x_e=/[\p{L}\p{N}]/u,S_e=/^[\p{L}\p{N}]+$/u;function j8(e){return e?x_e.test(e):!1}function AO(e){return e?S_e.test(e):!1}function Kp(e,t){let n=t;for(;n0?e[t-1]:void 0,o=n=2&&i.intraword&&t.push({start:n,end:o}),n=o}for(let n=0;n=3)return i;n=i+o.len}return-1}function E_e(e){return e?a_e.test(e)||u_e.test(e):!1}function T_e(e,t){if(!e||!t)return null;const n=e.match(/\[([^\]\n]+)\]\(([^)]*)$/);return n&&n[2]===t?n[1]:null}function Ao(e,t,n,i){if(!e||e.length===0)return[];const o=i?.__linkifyDemotionContext,s=yg(t),r={filename:o?.filename||s.filename,explicitFilename:o?.explicitFilename||s.explicitFilename,marketTicker:o?.marketTicker||s.marketTicker};(r.filename||r.explicitFilename||r.marketTicker)&&(i={...i,__linkifyDemotionContext:r});const l=i,a=[];let u=null,c=0;const d=i?.requireClosingStrong,h=e;function p(){return e===h&&(e=e.slice()),e}function g(){u=null}function m(te,be){const Q=e.length===1?t:String(be.content??""),ue=[],Ae=__e(te);if(Ae!==-1){T(te.slice(0,Ae),te.slice(0,Ae));const re=te.slice(Ae);return re&&(N({type:"text",content:re,raw:re}),c--),c++,!0}if(XSe.test(te)){const re=te.indexOf("~~");re!==-1&&ue.push({type:"strikethrough",index:re})}if(e_e.test(te)){const re=te.indexOf("**");re!==-1&&ue.push({type:"strong",index:re})}if(/[^*]*\*[^*]+/.test(te)){const re=Q?yO(Q,0):te.indexOf("*");if(Q&&re===-1)return!1;re!==-1&&ue.push({type:"emphasis",index:re})}ue.sort((re,G)=>re.index!==G.index?re.index-G.index:re.type===G.type?0:re.type==="strong"?-1:G.type==="strong"?1:0);const se=ue[0];if(!se)return!1;if(se.type==="strikethrough"){const re=se.index,G=re>-1?te.slice(0,re):"";if(G&&T(G,G),re===-1)return c++,!0;const le=te.indexOf("~~",re+2),ge=le===-1?te.slice(re+2):te.slice(re+2,le),ke=le===-1?"":te.slice(le+2),{node:Ie}=EI([{type:"s_open",tag:"s",content:"",markup:"~~",info:"",meta:null},{type:"text",tag:"",content:ge,markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"~~",info:"",meta:null}],0,i);return g(),A(Ie),ke&&(N({type:"text",content:ke,raw:ke}),c--),c++,!0}if(se.type==="strong"){const re=se.index,G=re>-1?te.slice(0,re):"";if(G&&T(G,G),re===-1)return c++,!0;if(t&&re===0){let we=!1,Be=0;for(;Be=2)return T(te,te),c++,!0}}if(t&&(te.match(/\*/g)||[]).length>p_e(t))return T(te.slice(G.length),te.slice(G.length)),c++,!0;const le=Kp(te,re);if(le.len>=3){const we=I_e(te,re+le.len);if(we!==-1){const Be=te.slice(re+le.len,we);if(M_e(Be)){const{node:tt}=Z1([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:Be,markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);g(),A(tt);const ut=te.slice(we+3);return ut&&(N({type:"text",content:ut,raw:ut}),c--),c++,!0}}}if(!y_e(te,re)){const we=te.slice(re,re+le.len);T(we,we);const Be=te.slice(re+le.len);return Be&&(N({type:"text",content:Be,raw:Be}),c--),c++,!0}const ge=b_e(te,re+2);let ke="",Ie="";if(ge.index!==-1){ke=te.slice(re+2,ge.index),Ie=te.slice(ge.index+2);const we=ge.index,Be=Kp(te,we);if(le.intraword&&Be.intraword&&!AO(ke)||!ke&&le.len>=4&&le.intraword)return T(te.slice(G.length),te.slice(G.length)),c++,!0}else{if(d||ge.sawInvalidClose||le.intraword)return T(te.slice(G.length),te.slice(G.length)),c++,!0;ke=te.slice(re+2),Ie=""}if(!ke&&/^\*+$/.test(Ie))return T(te,te),c++,!0;const{node:Oe}=Z1([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"text",tag:"",content:ke,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);return g(),A(Oe),Ie&&(N({type:"text",content:Ie,raw:Ie}),c--),c++,!0}if(se.type==="emphasis"){let re=se.index;re===-1&&(re=0);const G=te.slice(0,re);if(G&&T(G,G),!g_e(te,re)){T(te[re],te[re]);const we=te.slice(re+1);return we&&(N({type:"text",content:we,raw:we}),c--),c++,!0}const le=Kp(te,re),ge=v_e(Q,te,re+1),ke=ge.index,Ie=e[c+1];if(i?.final&&Ie?.type==="em_open"&&ke!==-1&&te.slice(re+1,ke).trim()!==te.slice(re+1,ke)||ke===-1&&(ge.sawInvalidClose||i?.final||le.intraword||!j8(te[re+1])))return T(te.slice(re),te.slice(re)),c++,!0;const{node:Oe}=Um([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:ke>-1?te.slice(re+1,ke):te.slice(re+1),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,i);if(g(),A(Oe),ke!==-1&&ke{for(let Oe=0;Oe=0&&Ie[Be]==="\\";Be--)we++;if(we%2===0)return Oe}return-1})(te);if(ue===-1)return!1;let Ae=1;for(let Ie=ue+1;Iese?.type==="math_inline")||!t_e.test(te))return null;const Q=be.parseInline(te,{__markstreamFinal:!!i?.final});if(!Array.isArray(Q)||Q.length===0)return null;const ue=(Q.find(se=>se?.type==="inline")?.children??[]).filter(se=>!(se?.type==="text"&&String(se.content??"")===""));if(!ue.length||!ue.some(se=>se?.type!=="text")||ue.length===1&&ue[0]?.type==="text"&&String(ue[0].content??"")===te)return null;const Ae=Ao(ue,te,n,i);return Ae.length?Ae:null}function y(te){g(),a.push(te)}function b(te){g();const be=Qd(te);a.push(be)}function A(te){y(te)}function T(te,be){u?(u.content+=te,u.raw+=be??te):(u={type:"text",content:String(te??""),raw:String(be??te??"")},a.push(u))}function S(te,be){if(!te)return;const Q=Ao([{...be,type:"text",content:te,raw:te}],te,n,i);if(Q.length===1&&Q[0]?.type==="text"){const ue=Q[0];T(String(ue.content??""),String(ue.raw??ue.content??""));return}for(const ue of Q)A(ue)}function x(te,be){return String(te.markup??"").startsWith(be)}function _(te){if(!u||te.loading!==!0||te.markup!=="\\(\\)")return;const be=e[c-1];!be||be.type!=="text"||!x(be,"\\(")||u.content.endsWith("(")&&(u.content=u.content.slice(0,-1),u.raw.endsWith("(")&&(u.raw=u.raw.slice(0,-1)),!u.content&&a[a.length-1]===u&&(a.pop(),u=null))}function L(te){return te.endsWith("](")?e[c+1]?.type==="link_open"&&e[c+1]?.markup==="linkify"&&e[c+2]?.type==="text"&&e[c+3]?.type==="link_close"&&e[c+4]?.type==="text"&&String(e[c+4]?.content??"").startsWith(")"):!1}function M(te,be,Q=Vm(te)){let ue=te;const Ae=String(be.content??"");return(Q&P8)!==0&&ue.endsWith("\\")&&!x(be,"\\\\")&&!Ae.endsWith("\\\\")&&(ue=ue.slice(0,-1)),(Q&xp)!==0&&ue.endsWith("(")&&!x(be,"\\(")&&!Ae.endsWith("\\(")&&(ue=ue.slice(0,-1)),(Q&gO)!==0&&/\*+$/.test(ue)&&!x(be,"\\*")&&!Ae.endsWith("\\*")&&(ue=ue.replace(/\*+$/,"")),ue}for(;c=0;we--){const Be=a[we];if(Be.type!=="text")break;le=we,ge=String(Be.content??"")+ge}lele==="href")?.[1],G=String(re??"");if(t&&G){const le=t.indexOf("](");if(le!==-1){const ge=t.indexOf(")",le+2);ge===-1?Q.loading=!0:Q.loading&&t.slice(le+2,ge).includes(G)&&(Q.loading=!1)}}/^file:\/\/\/[a-z]:\//i.test(Q.href)&&P(Q,be-1)||j(Q)||y(Q)}function O(te){if(te.markup!=="linkify")return!1;const{node:be,nextIndex:Q}=Km(e,c,i);return W(be,Q)?(c=Q,!0):!1}function R(te){g(),A(VSe(te)),c++}function j(te){if(te.type!=="link")return!1;const be=a[a.length-1];if(!be||be.type!=="text")return!1;const Q=String(be.content??"").match(/^([^[]*)\[([^\]\n]+)\]\($/);if(!Q)return!1;const ue=te,Ae=String(ue.href??""),se=String(ue.text??""),re=String(Q[2]??""),G=Ae.replace(/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,"");if(!Ae||!(se===Ae||se===G||E_e(se)))return!1;const le=String(Q[1]??"");return le?(be.content=le,be.raw=le):a.pop(),y({...te,text:re,children:[{type:"text",content:re,raw:re}],raw:`[${re}](${Ae}${ue.title?` "${ue.title}"`:""})`}),!0}function $(te){if(te.type!=="link")return!1;const be=te,Q=String(be.href??"");return Q?W({href:Q,title:be.title==null||be.title===""?null:String(be.title),loading:!!be.loading},c+1):!1}function W(te,be){const Q=a[a.length-1];if(Q?.type!=="image"||Q.src||!Q.loading||!String(Q.raw??"").endsWith("]("))return!1;const ue=e[be],Ae=String(ue?.content??"");if(ue?.type!=="text"||!Ae.startsWith(")"))return!1;a.pop(),u=null;const se=String(Q.alt??"");y({type:"image",src:te.href,alt:se,title:te.title,raw:`![${se}](${te.href}${te.title?` "${te.title}"`:""})`,loading:!!te.loading});const re=Ae.slice(1),G=Qd(ue);return G.content=re,G.raw=re,p()[be]=G,!0}function P(te,be=c-1){if(te.type!=="link")return!1;const Q=a[a.length-1],ue=e[be];if(!Q||Q.type!=="text"||ue?.type!=="text")return!1;const Ae=String(Q.content??""),se=String(ue.content??"");if(!Ae.endsWith("!")||!se.endsWith("!")||x(ue,"\\!"))return!1;const re=Ae.slice(0,-1);re?(Q.content=re,Q.raw=re,u=Q):(a.pop(),u=null);const G=te,le=String(G.text??G.children?.map(Ie=>String(Ie?.content??Ie?.raw??"")).join("")??""),ge=String(G.href??""),ke=G.title==null||G.title===""?null:String(G.title);return y({type:"image",src:ge,alt:le,title:ke,raw:`![${le}](${ge}${ke?` "${ke}"`:""})`,loading:!!G.loading}),!0}function Z(te,be="",Q=null){const ue=String(te.alt??te.raw??"");return{type:"link",href:be,title:Q,text:ue,children:[te],raw:`[${ue}](${be}${Q?` "${Q}"`:""})`,loading:!0}}function ae(te){const be=te.startsWith("![")?te:`![${te}`,Q=be.slice(2),ue=Q.indexOf("](");return{type:"image",src:"",alt:ue===-1?Q.replace(/\]$/,""):Q.slice(0,ue),title:null,raw:be,loading:!0}}function V(te){const be=te.indexOf("[![");if(be===-1||typeof t=="string"&&e.length===1&&w_e(t,be,"["))return!1;const Q=te.slice(0,be);return Q&&T(Q,Q),y(Z(ae(te.slice(be+1)))),c++,!0}function Y(te){if(i?.final)return!1;const be=e[c-1];if(be?.type!=="text"||!String(be.content??"").endsWith("[")||x(be,"\\["))return!1;const Q=a[a.length-1];if(Q?.type==="text"&&Q.content.endsWith("[")){const ue=Q.content.slice(0,-1);ue?(Q.content=ue,Q.raw=ue,u=Q):(a.pop(),u=null)}return y(Z(MI(te))),c++,!0}function oe(te){if(te.type!=="link")return!1;const be=te,Q=String(be.raw??""),ue=String(be.text??"");if(!Q.startsWith("[![")&&!ue.startsWith("!["))return!1;const Ae=be.title==null||be.title===""?null:String(be.title);return y(Z({type:"image",src:String(be.href??""),alt:ue.replace(/^!\[/,"").replace(/\]$/,""),title:Ae,raw:Q.startsWith("[![")?Q.slice(1):Q,loading:!0})),!0}function q(te){if(!te.startsWith("]("))return!1;const be=e[c-2];if(be?.type==="text"&&String(be.content??"").endsWith("[")&&x(be,"\\["))return!1;const Q=a[a.length-1];if(Q?.type!=="image"&&Q?.type!=="link")return!1;const ue=Q,Ae=Q?.type==="link"&&Array.isArray(ue.children)&&ue.children.length===1&&ue.children[0]?.type==="image"?a.pop():null,se=Ae?Ae.children[0]:a.pop();if(!se||se.type!=="image")return!1;const re=e[c+1];let G=String(Ae?.href??""),le=Ae?.title==null?null:String(Ae.title),ge=!0;if(re?.type==="link_open"){const{node:Ie,nextIndex:Oe}=Km(e,c+1,i);G=Ie.href,le=Ie.title,ge=!0,c=Oe}else{if(G=te.slice(2),G.includes('"')){const Ie=G.split('"');G=String(Ie[0]??"").trim(),le=Ie[1]==null?null:String(Ie[1]).trim()}c++}const ke=Z(se,G,le);return ke.loading=ge,y(ke),!0}function ne(){const te=e[c-3];return e[c-2]?.type==="image"&&e[c-1]?.type==="text"&&String(e[c-1].content??"")==="]("&&te?.type==="text"&&String(te.content??"").endsWith("[")&&x(te,"\\[")}function ie(te,be){const Q=te.indexOf("[");if(Q===-1)return!1;let ue=te.slice(0,Q);const Ae=te.indexOf("](",Q);if(Ae!==-1){const se=e[c+2];let re=te.slice(Q+1,Ae);if(re.includes("[")){const we=re.indexOf("[");ue+=te.slice(0,Q+we+1);const Be=Q+we+1;re=te.slice(Be+1,Ae)}const G=e[c+1];if(te.endsWith("](")&&G?.type==="link_open"&&se){const we=e[c+4];let Be=4,tt=!0;if(we?.type==="text"){const _t=String(we.content??"");if(_t.startsWith(")")){tt=!1;const Ct=_t.slice(1);if(Ct){const $t=Qd(we);$t.content=Ct,$t.raw=Ct,p()[c+4]=$t}else Be++}else _t==="."&&Be++}S(ue,be);const ut=String(se.content??"");return i?.validateLink&&!i.validateLink(ut)?T(re,re):y({type:"link",href:ut,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:tt}),c+=Be,!0}const le=te.indexOf(")",Ae),ge=le!==-1?te.slice(Ae+2,le):"",ke=le===-1;let Ie=ue.match(/\*+$/);if(Ie&&(ue=ue.replace(/\*+$/,"")),S(ue,be),Ie||(Ie=re.match(/^\*+/)),!d&&Ie){const we=Ie[0].length;re=re.replace(/^\*+/,"").replace(/\*+$/,"");const Be=[];if(we===1?Be.push({type:"em_open",tag:"em",nesting:1}):we===2?Be.push({type:"strong_open",tag:"strong",nesting:1}):we===3&&(Be.push({type:"strong_open",tag:"strong",nesting:1}),Be.push({type:"em_open",tag:"em",nesting:1})),Be.push({type:"link",href:ge,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:ke}),we===1){Be.push({type:"em_close",tag:"em",nesting:-1});const{node:tt}=Um(Be,0,i);A(tt)}else if(we===2){Be.push({type:"strong_close",tag:"strong",nesting:-1});const{node:tt}=Z1(Be,0,void 0,i);A(tt)}else if(we===3){Be.push({type:"em_close",tag:"em",nesting:-1}),Be.push({type:"strong_close",tag:"strong",nesting:-1});const{node:tt}=Z1(Be,0,void 0,i);A(tt)}else{const{node:tt}=Um(Be,0,i);A(tt)}}else i?.validateLink&&!i.validateLink(ge)?T(re,re):y({type:"link",href:ge,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:ke});const Oe=le!==-1?te.slice(le+1):"";return Oe&&(N({type:"text",content:Oe,raw:Oe}),c--),c++,!0}return!1}function pe(te){const be=te.indexOf("![");if(be===-1)return!1;const Q=te.slice(0,be);return Q&&!u?u={type:"text",content:Q,raw:Q}:Q&&u&&(u.content+=Q),u&&(a.push(u),u=null),y(ae(te.slice(be))),c++,!0}function Ne(te){if(!(te?.startsWith("[")&&n?.type==="list_item_open"))return!1;const be=te.slice(1).match(/[^\s\]]/);if(be===null)return c++,!0;if(be&&/x/i.test(be[0])){const Q=be[0]==="x"||be[0]==="X";return y({type:"checkbox_input",checked:Q,raw:Q?"[x]":"[ ]"}),c++,!0}return!1}return a}function E7(e,t,n){const i=n?.__sourceLineMapper;if(!i)return{startLine:e,endLine:t};const o=i(e),s=t>e?i(t-1).endLine:i(t).startLine;return{startLine:o.startLine,endLine:Math.max(o.startLine,s)}}function TI(e,t){const n=Math.max(0,Math.min(e.length,Math.trunc(t)));let i=0;for(let o=0;oi&&e[o-1]!==` -`&&r++,{startLine:s,endLine:r}}function O0(e,t,n,i){const o=L_e(e,t,n);return E7(o.startLine,o.endLine,i)}function N_e(e,t){const n=e?.map;if(!Array.isArray(n)||n.length<2)return null;const i=Number(n[0]),o=Number(n[1]);return!Number.isFinite(i)||!Number.isFinite(o)?null:E7(i,o,t)}function di(e,t,n){if(!n?.includeSourceMap)return e;const i=N_e(t,n);if(!i)return e;if(e.sourceMap=i,e.type==="code_block"){const o=e;o.startLine=i.startLine,o.endLine=i.endLine}return e}function F_e(e,t,n,i){if(!i?.includeSourceMap)return e;const o=t?.map;if(!Array.isArray(o)||o.length<2)return e;const s=Number(o[0]),r=Number(o[1]),l=Number(n);return!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(l)||(e.sourceMap=E7(s,Math.max(r,l),i)),e}function D_e(e){const t=String(e.content??""),n=t.replace(/[ \t\r\n]+$/g,"");if(n===t)return;e.content=n;const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??""),r=s.replace(/[ \t\r\n]+$/g,"");if(r===s)break;if(r){o.content=r;break}i.pop();continue}break}}function B_e(e){const t=String(e.content??""),n=t.match(/\r?\n\s*\d+[.)]?\s*$/);if(!n||typeof n.index!="number")return;e.content=t.slice(0,n.index);const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??"");if(/^[ \t\r\n\d.)]*$/.test(s)){i.pop();continue}const r=s.replace(/[ \t\r\n\d.)]+$/g,"");r!==s&&(r?o.content=r:i.pop())}break}}function $_e(e){const t=String(e.content??"");return/[ \t\r\n]+$/.test(t)||/\r?\n\s*\d+[.)]?\s*$/.test(t)}function p1(e,t,n){const i=e[t],o=[],s=Gc(n,!0);let r=t+1;for(;rd.raw).join("")};n?.includeSourceMap&&di(c,e[r],n),o.push(c),r=u+1}else r+=1;const l={type:"list",ordered:i.type==="ordered_list_open",start:(()=>{if(i.attrs&&i.attrs.length){const a=i.attrs.find(u=>u[0]==="start");if(a){const u=Number(a[1]);return Number.isFinite(u)&&u!==0?u:1}}})(),items:o,raw:o.map(a=>a.raw).join(` -`)};return n?.includeSourceMap&&di(l,i,n),[l,r+1]}function R_e(e,t,n,i){const o=String(n[1]??"note"),s=String(n[2]??o.charAt(0).toUpperCase()+o.slice(1)),r=[],l=Gc(i,!0);let a=t+1;for(;au.raw).join(` -`)} -:::`},a+1]}const z_e=new Set(["warning","info","note","tip","danger","caution"]);function O_e(e){let t=0;for(;t=0;m--){const k=h[m];if(k.type==="text"&&/:+/.test(k.content)){p=m;break}}const g={type:"paragraph",children:Ao((p!==-1?h.slice(0,p):h)||[],void 0,void 0,a.options()),raw:String(d.content??"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")};n?.includeSourceMap&&di(g,e[u],n),l.push(g),a.remember(g.raw)}u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[d,h]=p1(e,u,a.options());n?.includeSourceMap&&di(d,e[u],n),l.push(d),a.remember(d.raw),u=h}else if(e[u].type==="blockquote_open"){const[d,h]=g1(e,u,a.options());n?.includeSourceMap&&di(d,e[u],n),l.push(d),a.remember(d.raw),u=h}else{const d=M9(e,u,a.options());d?(l.push(d[0]),a.remember(d[0].raw),u=d[1]):u++}return[{type:"admonition",kind:o,title:s,children:l,raw:`:::${o} ${s} -${l.map(d=>d.raw).join(` -`)} -:::`},u+1]}const j_e=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/;function H_e(e,t,n){const i=e[t];if(i.type!=="container_open")return null;const o=j_e.exec(String(i.info??""));return o?R_e(e,t,o,n):null}const T7={parseContainer:(e,t,n)=>P_e(e,t,n),matchAdmonition:H_e};function g1(e,t,n){const i=[],o=Gc(n,!0);let s=t+1;for(;sl.raw).join(` -`)};return n?.includeSourceMap&&di(r,e[t],n),[r,s+1]}function W_e(e){if(e.info?.startsWith("diff"))return M7(e);const t=String(e.content??""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);let i=t;n?.[1]&&(i=t.replace(/]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String(e.info??""),code:i,raw:i,loading:!o}}function q_e(e,t,n){const i=[];let o=t+1,s=[],r=[];const l=Gc(n,!0);for(;ou.raw).join("")),o+=3}else if(e[o].type==="dd_open"){let a=o+1;for(r=[];a0&&(i.push({type:"definition_item",term:s,definition:r,raw:`${s.map(u=>u.raw).join("")}: ${r.map(u=>u.raw).join(` -`)}`}),s=[]),o=a+1}else o++;return[{type:"definition_list",items:i,raw:i.map(a=>a.raw).join(` -`)},o+1]}function U_e(e,t,n){const i=e[t].meta??{},o=String(i?.label??"0"),s=[],r=Gc(n,!0);let l=t+1;for(;la.raw).join(` -`)}`},l+1]}function K_e(e,t,n){const i=e[t],o=i.attrs,s=Array.isArray(o)&&o.length?Object.fromEntries(o.filter(c=>Array.isArray(c)&&c.length>=1&&c[0]).map(([c,d])=>[String(c),d==null||d===""?!0:String(d)])):void 0,r=String(i.tag?.substring(1)??"1"),l=Number.parseInt(r,10),a=e[t+1],u=String(a.content??"");return{type:"heading",level:l,text:u,...s?{attrs:s}:{},children:Ao(a.children||[],u,void 0,n),raw:u}}function V_e(e,t,n){const i=t.toLowerCase(),o=new RegExp(String.raw`^<\s*${i}(?=\s|>|/)`,"i"),s=new RegExp(String.raw`^<\s*\/\s*${i}(?=\s|>)`,"i");let r=0,l=Math.max(0,n);for(;l$/.test(d)||r++,l=a+c+1;continue}l=a+1}return-1}function CO(e){const t=String(e.content??"");if(/^\s*");else if(a)a=!k.includes(">");else if(u)u=!k.includes("?>");else if(k.startsWith("");else if(k.startsWith("");else if(k.startsWith("");else{const w=o(k);if(w)if(w.closing){for(let y=r.length-1;y>=0;y--)if(r[y]===w.tag){r.length=y;break}}else w.selfClosing||s(w.after,w.tag)||r.push(w.tag)}}if(d===-1||d>=t)break;c=d+1}return l||a||u||r.length>0}function NMe(e,t,n){if(!n?.length)return!1;const i=new Set(wf(n));if(!i.size)return!1;const o=c=>{const d=c.charCodeAt(0);return d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||c==="_"||c==="-"||c===":"},s=c=>c===" "||c===" ",r=c=>{if(c[0]!=="<")return null;let d=1;for(;d"&&m!=="/")return null;const k=c.indexOf(">",d);if(k===-1)return null;let w=k-1;for(;w>=0&&s(c[w]);)w--;return{closing:h,tag:g,selfClosing:!h&&c[w]==="/",after:c.slice(k+1)}},l=(c,d)=>{const h=c.toLowerCase();let p=0;for(;p")return!0}}return!1},a=[];let u=0;for(;u=t?t:c,h=e.slice(u,d),p=h.endsWith("\r")?h.slice(0,-1):h,g=m1(p);if(g){const m=r(p.slice(g.index));if(m)if(m.closing){for(let k=a.length-1;k>=0;k--)if(a[k]===m.tag){a.length=k;break}}else m.selfClosing||l(m.after,m.tag)||a.push(m.tag)}if(c===-1||c>=t)break;u=c+1}return a.length>0}function FMe(e,t){const n=uMe.exec(e);if(!n)return null;const i=n[1]??"",o=n.index+i.length,s=e.indexOf(` -`,o),r=e.slice(o,s===-1?e.length:s);return!m1(r.endsWith("\r")?r.slice(0,-1):r)||NO(e,o)||LMe(e,o)||NMe(e,o,t)?null:`${e.slice(0,n.index)}${i}`}function R7(e,t,n){let i=t;for(;ii&&(r=!0),t.inMath=!1,t.mathOpenOffset=null,s+=2;continue}s++;continue}if(t.inDollarMath){if(e.startsWith("$$",s)&&!Na(e,l)){i!=null&&o&&n+s+2>i&&(r=!0),t.inDollarMath=!1,t.dollarMathOpenOffset=null,s+=2;continue}s++;continue}if(e[s]==="`"&&!Na(e,l)){const a=R7(e,s,"`"),u=FO(e,s+a,a);if(u===-1)break;s=u+a;continue}if(e.startsWith("\\[",s)&&!Na(e,l)){t.inMath=!0,t.mathOpenOffset=n+s,s+=2;continue}if(e.startsWith("$$",s)&&!Na(e,l)){t.inDollarMath=!0,t.dollarMathOpenOffset=n+s,s+=2;continue}s++}return r}function DMe(e,t){if(!S7(t))return e;const n=t,i=BI.get(n),o=i?.source===e?i.state:i&&e.startsWith(i.source)?DO(i.state,e.slice(i.source.length),i.source.length-i.state.lineBuffer.length).state:E9(e).state;BI.set(n,{source:e,state:o});const{context:s}=o,r=s.inMath?s.mathOpenOffset:s.inDollarMath?s.dollarMathOpenOffset:null;if(r==null)return e;const l=e.slice(r+2),a=e.lastIndexOf(` -`,r-1)+1;if(e.slice(a,r).trim()!==""&&!/^\r?\n/.test(l)||/^\s*!\[/.test(l))return e;const u=l.trim(),c=/^(?:[a-z]|pi)$/i.test(u);return ac(l)&&!c?e:e.slice(0,r)}function BMe(e,t,n,i,o){const s=F7(e),r=D7(e);if(t.inFence&&t.fenceInBlockquote&&e.trim()&&B7(e)==null&&sk(t),t.inFence&&t.fenceInList&&e.trim()&&s.column=t.fenceLen&&/^\s*$/.test(l.rest)&&sk(t):(t.inFence=!0,t.fenceChar=l.markerChar,t.fenceLen=l.markerLen,t.fenceInBlockquote=l.inBlockquote,t.fenceInList=l.inList||t.listContentIndent!=null&&!l.inBlockquote&&s.column>=t.listContentIndent,t.fenceListIndent=l.listIndent||t.listContentIndent||0);else if(!t.inFence)return OI(e,t,n,i,o)}else return OI(e,t,n,i,o);return!1}function E9(e,t=_Me(),n=null,i=!1,o=0){const s=Zp(t);let r=Zp(t),l="",a=!1,u=0;for(;uu&&e[c-1]==="\r"?c-1:d?c:e.length,p=e.slice(u,h);BMe(p,s,o+u,n,i)&&(a=!0),d?(r=Zp(s),l=""):l=p,u=d?c+1:e.length}return{closedOpenMath:a,state:{committedContext:r,context:s,lineBuffer:l}}}function DO(e,t,n=0){return t&&!e.context.inMath&&!e.context.inDollarMath&&!e.context.inFence&&!e.committedContext.inFence&&!/[\\$`~\r\n]/.test(t)&&!(e.lineBuffer.endsWith("\\")&&(t[0]==="["||t[0]==="]"))?{closedOpenMath:!1,state:{committedContext:Zp(e.committedContext),context:Zp(e.context),lineBuffer:e.lineBuffer+t}}:E9(e.lineBuffer+t,e.committedContext,n+e.lineBuffer.length,e.context.inMath||e.context.inDollarMath,n)}function $Me(e,t){if(!S7(e))return;const n=e.stream;if(typeof n?.reset!="function")return;const i=e,o=I9.get(i);if(o?.source===t)return;const s=o?t.startsWith(o.source):!1,r=s&&o?t.slice(o.source.length):"",l=s&&o?DO(o.explicitBracketMath,r,o.source.length-o.explicitBracketMath.lineBuffer.length):E9(t),a=l.state,u=s&&o?l.closedOpenMath:!1;if(o&&s&&o.key===null&&o.pendingCandidate===!1&&!u&&!TMe(o.source,r)&&!IMe(t)){o.source=t,o.explicitBracketMath=a;return}const c=vSe(t);(o&&(o&&!s||o.key!==c||u)||!o&&c)&&n.reset(),MMe(e,t,c,a)}function RMe(e){return typeof e.preTransformTokens=="function"||typeof e.postTransformTokens=="function"}function BO(e,t){const n=e?.map,i=t?.map;return n===i?!0:!Array.isArray(n)||!Array.isArray(i)?!1:n.length===i.length&&n.every((o,s)=>o===i[s])}function zMe(e,t){const n=e?.attrs,i=t?.attrs;if(n===i)return!0;if(!Array.isArray(n)||!Array.isArray(i)||n.length!==i.length)return!1;for(let o=0;o":""}function WI(e){return{type:"paragraph",children:e,raw:e.map(HMe).join("")}}function qI(e,t){if(t.sourceMap)for(const n of e)n.sourceMap||(n.sourceMap=t.sourceMap)}function UI(e,t){if(e.type!=="paragraph")return null;const n=e.children,i=Array.isArray(n)?n:[];if(i.length===0)return null;const o=AMe(t);if(!o?.size)return null;let s=-1;for(let c=0;cp?.type==="hardbreak")){s=c;break}}if(s===-1)return null;const r=i.slice(0,s),l=i[s];if(!l)return null;const a=[];r.length&&a.push(WI(r)),a.push(l);const u=i.slice(s+1);return u.length&&a.push(WI(u)),a}function WMe(e){const t=e.trim();if(!t)return null;const n=/^(?:]*>\s*)?]*)?>/i.test(t),i=/<\/html>\s*$/i.test(t);return!n||!i?null:[{type:"html_block",tag:"html",raw:e,content:e,loading:!1}]}function Gp(e){const t=e.raw;if(typeof t=="string")return t;const n=e.content;return typeof n=="string"?n:""}function qMe(e,t){if(e.type!=="html_block"||!t)return!1;const n=String(e.raw??e.content??"");return new RegExp(String.raw`^\s*<\s*\/\s*${fa(t)}\s*>\s*$`,"i").test(n)}const lk=new Set(["iframe","script","style","textarea","title"]);function bg(e,t,n){if(!e||!t)return null;const i=t.toLowerCase(),o=h=>{if(e.startsWith("",h+4);return{closing:!1,end:b===-1?e.length:b+3,selfClosing:!1,tag:""}}if(e.startsWith("",h+9);return{closing:!1,end:b===-1?e.length:b+3,selfClosing:!1,tag:""}}const p=Do(e.slice(h));if(p===-1)return null;const g=h+p+1,m=e.slice(h,g);if(/^<\s*[!?]/.test(m))return{closing:!1,end:g,selfClosing:!1,tag:""};let k=m.slice(1).trimStart();const w=k.startsWith("/");w&&(k=k.slice(1).trimStart());const y=k.match(/^([A-Z][\w:-]*)/i);return y?.[1]?{closing:w,end:g,selfClosing:/\/\s*>$/.test(m),tag:y[1].toLowerCase()}:{closing:!1,end:h+1,selfClosing:!1,tag:""}},s=(h,p)=>{const g=new RegExp(String.raw`<\s*\/\s*${fa(h)}(?=\s|>)`,"gi");g.lastIndex=p;const m=g.exec(e);if(!m||m.index==null)return null;const k=o(m.index);return k?{start:m.index,end:k.end}:null};let r=-1,l=-1,a=Math.max(0,n);for(;a$/.test(u))return{raw:u,start:r,end:l+1,closed:!0};if(lk.has(i)){const h=s(i,l+1);return h?{raw:e.slice(r,h.end),start:r,end:h.end,closeStart:h.start,closed:!0}:{raw:e.slice(r),start:r,end:e.length,closed:!1}}let c=1,d=l+1;for(;d]*$/,"")} -`}function KI(e){return e.replace(/\r\n/g,` -`).replace(/(^|\n)[ \t]{1,4}/g,"$1")}function VMe(e,t,n){return n?e.includes(n,t)?!0:KI(e.slice(Math.max(0,t))).includes(KI(n)):!1}function ZMe(e,t){let n=Math.max(0,t);for(;n)`,"gi");let i=-1,o;for(;(o=n.exec(e))!==null;)i=o.index;return i}function RO(e,t){return{final:t,__disableStreamParse:!0,requireClosingStrong:e.requireClosingStrong,customHtmlTags:e.customHtmlTags,validateLink:e.validateLink}}const QMe=new Set(["admonition","blockquote","code_block","definition_list","footnote","heading","list","math_block","table","thematic_break"]),YMe=/(?:^|\n)\s{0,3}(?:#{1,6}\s+\S|[-+*]\s+\S|\d+[.)]\s+\S|>\s*\S|`{3,}|~{3,}|(?:\*{3,}|-{3,}|_{3,})(?:\s|$)|\|.*\|)/m;function JMe(e){return/\n\s*\n/.test(e)||YMe.test(e)}function XMe(e,t){if(!e.trim()||t.length===0)return!1;if(t.some(i=>QMe.has(String(i?.type??"").toLowerCase()))||t.some(i=>{if(i?.type!=="html_block")return!1;const o=i;return Array.isArray(o.children)&&o.children.length>0}))return!0;if(!JMe(e))return!1;if(t.length>1)return!0;const[n]=t;return!!(n&&n.type==="paragraph")}function eIe(e){const t=[];let n=0;for(;n=e.length)break;const i=e.slice(n).match(/^<([A-Z][\w:-]*)/i);if(!i?.[1])return null;const o=bg(e,i[1],n);if(!o||o.start!==n)return null;t.push(o.raw),n=o.end}return t.length>1?t:null}function tIe(e,t,n,i){const o=n.customHtmlTags?.join("\0")??"",s=t,r=DI.get(s),l=r&&r.final===i&&r.customHtmlTags===o&&r.requireClosingStrong===n.requireClosingStrong&&r.validateLink===n.validateLink,a=e.map((u,c)=>l&&r.blocks[c]===u?r.children[c]:zh(u,t,n));return DI.set(s,{blocks:e,children:a,customHtmlTags:o,final:i,requireClosingStrong:n.requireClosingStrong,validateLink:n.validateLink}),a.flat()}function nIe(e,t,n,i){return e.map(o=>{if(o?.type!=="html_block")return o;const s=o,r=String(s.tag??"").toLowerCase();if(!r||r==="details"||$z.has(r)||Array.isArray(s.children))return o;const l=String(o.raw??s.content??"");if(!l)return o;const a=Do(l);if(a===-1)return o;const u=bg(l,r,0),c=u?.closeStart??-1,d=u?.closed===!0&&c>=a+1,h=d?l.slice(a+1,c):l.slice(a+1);if(!h.trim())return o;const p=RO(n,i),g=d?null:eIe(h),m=g?tIe(g,t,p,i):zh(h,t,p);return XMe(h,m)?{...o,children:m}:o})}function iIe(e){for(const t of e)if(t?.type==="html_block")return!0;return!1}function zh(e,t,n){return e.trim()?OO(e,t,{...n,__disableStreamParse:!0,__disableStructuredReuse:!0}):[]}function oIe(e,t,n){const i=zh(e,t,n),o=i[0];return i.length===1&&o?.type==="paragraph"&&Array.isArray(o.children)?o.children:i}function sIe(e,t,n){const i=CO({content:e}),o=Do(e),s=$O(e,"summary");if(o!==-1&&s!==-1&&s>=o+1){const r=oIe(e.slice(o+1,s),t,n);r.length>0&&(i.children=r)}return i.raw=e,i}function rIe(e,t,n){const i=Do(e);if(i===-1)return[];const o=e.slice(i+1);if(!o.trim())return[];const s=bg(o,"summary",0);if(!s)return zh(o,t,n);const r=o.slice(0,s.start),l=o.slice(s.end);return[...zh(r,t,n),sIe(s.raw,t,n),...zh(l,t,n)]}function zO(e,t,n,i,o,s=0){const r=[];let l=s;for(let a=0;a{const P=$O(h,"details");return P!==-1?h.slice(0,P):h})():h,[b]=zO(w?[]:m===-1?e.slice(a+1):e.slice(a+1,m),t,n,i,o,p+h.length),A=rIe(y,n,RO(i,o)),T=m===-1?"":String(e[m].raw??Gp(e[m])??""),S=w||m!==-1&&k?.closed===!0,x=T.replace(/[\t\r\n ]+$/,""),_=S?(()=>{const P=(k?.raw??"").lastIndexOf(x);return P===-1?t.length:p+P})():t.length,L=Do(h),M=w&&L!==-1?p+L+1:p+h.length,N=t.slice(M,_===-1?t.length:_),I=n.parse(N,{__markstreamFinal:o}),z=n.renderer.render(I,n.options,{__markstreamFinal:o}),H=_+x.length,O=S?Math.max(_+T.length,ZMe(t,H)):t.length,R=S?t.slice(_,O):T,j=S?t.slice(p,O):t.slice(p),$=w&&L!==-1?h.slice(0,L+1):h,W={...u,tag:"details",attrs:_9(h.slice(0,L+1)),raw:j,content:`${$}${z}${R}`,children:[...A,...b],loading:!o&&!S};if(i.includeSourceMap&&(W.sourceMap=O0(t,p,S?O:t.length,i)),r.push(W),l=S?O:t.length,m===-1&&!w)break;m!==-1&&(a=m)}return[r,l]}function lIe(e,t,n,i){if(!n)return e;const o=e.slice();let s=0;for(let r=0;r=d.start&&L.end<=d.end){o.splice(S,1);continue}break}T=_+x.length,o.splice(S,1)}}return o}function aIe(e){const t=l=>l===" "||l===" "||l===` -`||l==="\r",n=l=>{if(!l||l[0]!=="<"||l.includes(">"))return!1;let a=1;if(a{const k=m.charCodeAt(0);return k>=65&&k<=90||k>=97&&k<=122},c=m=>{const k=m.charCodeAt(0);return k>=48&&k<=57},d=m=>m==="!"||u(m),h=m=>u(m)||c(m)||m===":"||m==="-",p=m=>u(m)||c(m)||m==="_"||m==="."||m===":"||m==="-",g=p;if(a>=l.length||!d(l[a]))return!1;for(a++;a=l.length)return!0;if(l[a]==="/"){for(a++;a=l.length}if(!p(l[a]))return!1;for(a++;a=l.length)return!0;const m=l[a];if(m==='"'||m==="'"){for(a++;a=l.length)return!0;a++}else{for(;a"||k==='"'||k==="'"||k==="`")break;a++}if(a>=l.length)return!0}}}return!0},i=(l,a)=>NO(l,a),o=String(e??""),s=o.lastIndexOf("<");if(s===-1||i(o,s))return o;if(s>0){const l=o[s-1],a=l===" "||l===" "||l===` -`||l==="\r",u=o[s-2];if(!a&&!((l==="n"||l==="r")&&u==="\\"))return o}const r=o.slice(s);return r.includes(">")||r.length>1&&(r[1]===" "||r[1]===" "||r[1]===` -`||r[1]==="\r")||!n(r)?o:o.slice(0,s)}function ZI(e,t){if(e===t)return;const n=e.split(/\r?\n/),i=t.split(/\r?\n/),o=[];let s=0;for(let r=0;r{const l=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0;if(lString(g??"").toLowerCase()).filter(Boolean));if(!n.size)return e;const i=g=>g===" "||g===" ",o=g=>{const m=g.charCodeAt(0);return m>=65&&m<=90||m>=97&&m<=122||m>=48&&m<=57||g==="_"||g==="-"||g===":"},s=g=>{if(!g)return!1;if(g[0]===" ")return!0;let m=0;for(let k=0;k=4)return!0;continue}if(w===" ")return!0;break}return!1},r=g=>{let m=!1,k=!1;for(let w=0;w")return w}return-1},l=g=>{let m=0;for(;m{if(s(g))return-1;const k=g.replace(/^[ \t]+/,"");if(!k||k.startsWith(">")||k.startsWith("|")||/^(?:[*+-]|\d+[.)])[\t ]+/.test(k))return-1;let w=!1,y=0;for(;y=T.length){w=!0,y++;continue}const x=T[S];if(x==="!"||x==="?"){w=!0,y+=A+1;continue}if(x==="/"){w=!0,y+=A+1;continue}const _=S;for(;S"&&M!=="/"){w=!0,y++;continue}const N=new RegExp(String.raw`<\s*\/\s*${L}\s*>`,"i"),I=/\/\s*>$/.test(T),z=N.test(g.slice(y+A+1)),H=N.test(e.slice(m+y+A+1)),O=/[\r\n]/.test(e.slice(m+y+A+1));if(w&&n.has(L)&&!I&&!z&&(H||O))return y;w=!0,y+=A+1}return-1};let u=!1,c="",d=0,h="",p=0;for(;pp&&e[g-1]==="\r",w=m?k?g-1:g:e.length,y=e.slice(p,w),b=m?k?`\r -`:` -`:"",A=l(y);let T=y;if(!u&&!A){const S=a(y,p);if(S!==-1){const x=b||` -`;T=`${y.slice(0,S).replace(/[ \t]+$/,"")}${x}${x}${y.slice(S).replace(/^[ \t]+/,"")}`}}h+=T,h+=b,A&&(u?A.markerChar===c&&A.markerLen>=d&&/^\s*$/.test(A.rest)&&(u=!1,c="",d=0):(u=!0,c=A.markerChar,d=A.markerLen)),p=m?g+1:e.length}return h}function cIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(d=>String(d??"").toLowerCase()));if(!n.size)return e;const i=d=>d===" "||d===" ",o=d=>{const h=d.charCodeAt(0);return h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||d==="_"||d==="-"},s=d=>{let h=0;for(;h{let h=!1,p=!1;for(let g=0;g")return g}return-1},l=(d,h,p)=>{const g=p.toLowerCase();let m=d.indexOf("<",h);for(;m!==-1;){let k=m+1;for(;k=d.length||d[k]!=="/"){m=d.indexOf("<",m+1);continue}for(k++;kd.length){m=d.indexOf("<",m+1);continue}let w=!0;for(let b=0;b="A"&&A<="Z"?String.fromCharCode(A.charCodeAt(0)+32):A)!==g[b]){w=!1;break}}if(!w){m=d.indexOf("<",m+1);continue}let y=k+g.length;if(y")return!0;m=d.indexOf("<",m+1)}return!1},a=d=>{let h=0;for(;h=d.length||d[h]!=="<")return d;for(h++;h=d.length||d[h]==="/")return d;const p=h;for(;hc&&e[d-1]==="\r",p=h?d-1:d,g=e.slice(c,p);u+=a(g),u+=h?`\r -`:` -`,c=d+1}return u}function dIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(h=>String(h??"").toLowerCase()));if(!n.size)return e;const i=h=>h===" "||h===" ",o=h=>{let p=0,g=!1,m=0;for(;p=h.length||h[p]!==">")break;for(g=!0,p++;p{let p=0;for(;pnew RegExp(String.raw`(<\s*\/\s*${h}\s*>)${"(?=[\\t ]*(?:#{1,6}[\\t ]+|>|(?:[*+-]|\\d+[.)])[\\t ]+|(?:`{3,}|~{3,})|\\||\\$\\$|:{3,}|\\[\\^[^\\]]+\\]:|(?:-{3,}|\\*{3,}|_{3,})))"}`,"gi"));let l=!1,a="",u=0,c="",d=0;for(;dd&&e[h-1]==="\r",m=p?g?h-1:h:e.length,k=e.slice(d,m),w=p?g?`\r -`:` -`:"",y=o(k),b=y?.prefix??"",A=y?.content??k,T=s(A);T&&(l?T.markerChar===a&&T.markerLen>=u&&/^\s*$/.test(T.rest)&&(l=!1,a="",u=0):(l=!0,a=T.markerChar,u=T.markerLen));let S=A;if(!l&&S.includes("{if(N.replace(/^[\t ]+/,"").startsWith("|"))return _;const I=N.slice(0,M).replace(/^[\t ]+/,"");if(I.length>0){const z=L.match(/^<\s*\/\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"",H=I.match(/^<\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"";if(!z||!H||z!==H)return _}return`${L} - -`});if(b){const x=b+S.split(` -`).join(` -${b}`);c+=x}else c+=S;c+=w,d=p?h+1:e.length}return c}function fIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(I=>String(I??"").toLowerCase()));if(!n.size)return e;const i=I=>I===" "||I===" ",o=I=>{if(!I)return!1;if(I[0]===" ")return!0;let z=0;for(let H=0;H=4)return!0;continue}if(O===" ")return!0;break}return!1},s=I=>{const z=I.charCodeAt(0);return z>=65&&z<=90||z>=97&&z<=122||z>=48&&z<=57||I==="_"||I==="-"||I===":"},r=I=>{let z=0;for(;z{let z=0,H=!1,O=0;for(;z=I.length||I[z]!==">")break;for(H=!0,z++;zr(I).startsWith("<"),u=I=>{for(let z=0;z{if(o(I))return"";const z=r(I);if(!z.startsWith("<"))return"";let H=1;for(;H=z.length||z[H]==="/"||z[H]==="!"||z[H]==="?")return"";const O=H;for(;H"&&j!=="/"?"":R},d=I=>{if(o(I))return null;const z=r(I);if(!z.startsWith("<"))return null;let H=1;for(;H=z.length)return null;const O=z[H]==="/";if(O)for(H++;H"&&W!=="/")return null;if(O)return{type:"close",name:$};if(/\/\s*>\s*$/.test(z))return{type:"open",name:$,complete:!0};const P=z.indexOf(">",H);if(P!==-1){const Z=z.slice(P+1);if(new RegExp(`<\\s*\\/\\s*${$}\\s*>`,"i").test(Z))return{type:"open",name:$,complete:!0}}return{type:"open",name:$,complete:!1}},h=I=>{if(o(I))return null;const z=r(I).replace(/[ \t]+$/,"");if(!z.startsWith("<")||/^<\s*(?:!--|!doctype\b|\?)/i.test(z))return null;const H=z.match(/^<\s*([A-Z][\w:-]*)\b[^>]*\/\s*>\s*$/i);if(H?.[1])return H[1].toLowerCase();const O=z.match(/^<\s*([A-Z][\w:-]*)\b[^>]*>[\s\S]*<\s*\/\s*([A-Z][\w:-]*)\s*>\s*$/i);if(!O?.[1]||!O[2])return null;const R=O[1].toLowerCase();return R===O[2].toLowerCase()?R:null};let p=!1,g="",m=0;const k=I=>{let z=0;for(;zk(I),y=I=>{const z=r(I);return z?o(I)?!0:/^(?:#{1,6}[ \t]+|>|[*+-][ \t]+|\d+[.)][ \t]+|`{3,}|~{3,}|\||\$\$|:{3,}|\[\^[^\]]+\]:|-{3,}|\*{3,}|_{3,})/.test(z):!1},b=(I,z,H)=>{let O=I,R=0;for(;OO&&e[j-1]==="\r",P=$?W?j-1:j:e.length,Z=e.slice(O,P),ae=l(Z),V=ae?.key??"";if(R>0&&z&&V!==z)break;const Y=ae?.content??Z,oe=d(Y);if(oe?.name===H){if(oe.type==="open")oe.complete||R++;else if(R>0&&(R--,R===0))return!1}else if(R>0&&(u(Y)||y(Y)))return!0;if($)O=j+1;else break}return!1};let A="",T=0,S=!0,x=!1,_=!1,L=` -`;const M=[];let N="";for(;TT&&e[I-1]==="\r",O=z?H?I-1:I:e.length,R=e.slice(T,O),j=z?H?`\r -`:` -`:"",$=l(R),W=$?.key??"",P=$?.content??R,Z=w(P);Z&&(p?Z.markerChar===g&&Z.markerLen>=m&&/^\s*$/.test(Z.rest)&&(p=!1,g="",m=0):(p=!0,g=Z.markerChar,m=Z.markerLen));const ae=M.length>0;if(!p&&!ae){const Y=c(P),oe=!!Y&&!S&&x&&_&&b(T,W,Y);Y&&!S&&(!x||oe)&&(W&&N&&W===N?A+=`${W}${L}`:W||(A+=L))}if(A+=R,A+=j,j&&(L=j),!p){const Y=d(P);if(Y){if(Y.type==="open")Y.complete||M.push(Y.name);else for(let oe=M.length-1;oe>=0;oe--)if(M[oe]===Y.name){M.length=oe;break}}}const V=u(P);S=V,x=!V&&a(P),_=!V&&!!h(P),N=W,T=z?I+1:e.length}return A}function hIe(e){let t=!1,n="",i=0,o=!1,s=!1,r=!1,l=0;const a=(c,d)=>{const h=$7(c);if(h){t?h.markerChar===n&&h.markerLen>=i&&/^\s*$/.test(h.rest)&&(t=!1,n="",i=0):(t=!0,n=h.markerChar,i=h.markerLen);return}if(t)return;let p=0;for(;p{for(;l=c?c:d,p=h>l&&e[h-1]==="\r"?h-1:h;if(a(e.slice(l,p)),d===-1||d>=c){l=c;break}r=!1,l=d+1}},inMath:()=>o||s||r}}function ak(e,t,n,i){let o=e.replace(/([^\\])\r(ight|ho)/g,"$1\\r$2");const s=hIe(o);if(o=o.replace(/([^\\])\r?\n(abla|eq|ot|exists)/g,(r,l,a,u)=>{s.scanTo(u+1);const c=s.inMath();return s.scanTo(u+r.length),c?`${l}\\n${a}`:r}),t||(o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/(?:^|\n)\s*-\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*-\s*$/,r=>r.startsWith(` -`)?` -`:""):/(?:^|\n)\s*--\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*--\s*$/,r=>r.startsWith(` -`)?` -`:""):/(?:^|\n)\s*>\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*>\s*$/,r=>r.startsWith(` -`)?` -`:""):/\n\s*[*+]\s*$/.test(o)?o=o.replace(/\n\s*[*+]\s*$/,` -`):/(?:^|\n)\s*\d+\s*$/.test(o)?/^\d+$/.test(o.trim())||(o=o.replace(/(?:^|\n)\s*\d+\s*$/,r=>r.startsWith(` -`)?` -`:"")):/(?:^|\n)\s*\d+[.)]\s+\*{1,3}\s*$/.test(o)?o=o.replace(/((?:^|\n)\s*\d+[.)]\s+)(\*{1,3})\s*$/,(r,l,a)=>`${l}${a.split("").map(()=>"\\*").join("")}`):/(?:^|\n)\s*\d+[.)]\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*\d+[.)]\s*$/,r=>r.startsWith(` -`)?` -`:""):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,` -`)),o=FMe(o,i.customHtmlTags)??o),i.customHtmlTags?.length&&o.includes("<")){const r=wf(i.customHtmlTags);if(r.length&&(o=uIe(o,r),o=cIe(o,r),o=fIe(o,r),o=dIe(o,r),o.includes("[\t ]*)(\r?\n)(?![\t ]*\r?\n|$)`,"gim");o=o.replace(a,"$1$2$2")}}return t||(o=aIe(o)),o}function pIe(e,t,n,i){const o=e,s=`${n?"final":"stream"}:${(i.customHtmlTags??[]).join(",")}`,r=W8.get(o);let l;if(!n&&!i.customHtmlTags?.length&&r&&r.mode===s&&t.length>=r.source.length&&t.startsWith(r.source)){const a=Math.max(0,r.source.length-cMe-dMe),u=ak(t.slice(a),n,e,i),c=r.source.length-a;l=u.length>=c&&u.slice(0,c)===r.safeMarkdown.slice(-c)?r.safeMarkdown.slice(0,r.safeMarkdown.length-c)+u:ak(t,n,e,i)}else l=ak(t,n,e,i);return n||(l=DMe(l,e)),W8.set(o,{source:t,safeMarkdown:l,mode:s}),l}function OO(e,t,n={}){const i=_O(n),o=i?Jl():0,s=!!n.final,r=(e??"").toString();xMe(t,n)&&(t.stream.reset(),SMe(t),W8.delete(t));const l=pIe(t,r,s,n);i&&vc(i,"safeMarkdownMs",Jl()-o);const a=WMe(l);if(a){if(n.includeSourceMap){const T={...n,__sourceLineMapper:ZI(r,l)};a[0].sourceMap=O0(l,0,l.length,T)}const b=n.preTransformTokens,A=n.postTransformTokens;if(N7(t,n)||typeof b=="function"||typeof A=="function"){const T=HI(t,l,{__markstreamFinal:s},n),S=typeof b=="function"&&b(T)||T;typeof A=="function"&&A(S)}return $I(a,n,i,o)}const u=i?Jl():0,c=HI(t,l,{__markstreamFinal:s},n);if(i&&vc(i,"tokenizeMs",Jl()-u),!c||!Array.isArray(c))return $I([],n,i,o);const d=n.preTransformTokens,h=n.postTransformTokens;let p=c;d&&typeof d=="function"&&(p=d(p)||p);const g=t,m=typeof g.validateLink=="function"&&g.__markstreamOriginalValidateLink&&g.validateLink!==g.__markstreamOriginalValidateLink?g.validateLink:void 0,k=n.validateLink??m??g.options?.validateLink??(typeof g.validateLink=="function"?g.validateLink:void 0),w={...n,validateLink:k,__markdownIt:t,__sourceLineMapper:n.includeSourceMap===!0?ZI(r,l):void 0,__sourceMarkdown:l,__customHtmlBlockCursor:0};let y=bMe(t,l,p,w,i);if(h&&typeof h=="function"){const b=h(p);if(Array.isArray(b)){const A=b[0],T=A?.type;A&&typeof T=="string"?y=ah(b,{...w,__customHtmlBlockCursor:0},i):y=b}}if(iIe(y)){const b=i?Jl():0;y=lIe(y,s,l,w),y=zO(y,l,t,w,s)[0],y=nIe(y,t,w,s),i&&vc(i,"htmlBlockPassesMs",Jl()-b)}if(s){const b=new WeakSet,A=T=>{if(!T||typeof T!="object"||b.has(T))return;if(b.add(T),Array.isArray(T)){for(const x of T)A(x);return}const S=T;S.type==="html_block"&&S.loading===!0&&(S.loading=!1);for(const x of Object.values(S))A(x)};A(y)}return y=IO(y,n),n.debug&&console.log("Parsed Markdown Tree Structure:",y),MO(y,i,o)}function GI(e,t){if(!e||!Array.isArray(e))return[];const n=[],i=Gc(t),o=t?.__linkifyDemotionSeed;if(Array.isArray(o)&&o.length)for(const l of o)i.remember(String(l??""));const s=t?.includeSourceMap===!0;let r=0;for(;rd.type==="html_block")){if(s)for(const d of c)di(d,a,t);for(const d of c)xa(d,a,t);n.push(...c)}else{const d={type:"paragraph",raw:u,children:c};s&&di(d,a,t);const h=UI(d,t);if(h){s&&qI(h,d);for(const p of h)xa(p,a,t);n.push(...h)}else xa(d,a,t),n.push(d)}i.remember(u)}r+=1;break;default:r+=1;break}}return n}const gIe=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g,Qp=/\d/u,mIe=/[,.!?;:,。;、!?:]/u,vIe=/\d\p{Script=Han}{1,3}$/u;function yIe(e){return e.pos>0&&e.pos+1{const u=l,c=u.posMax,d=u.pos;if(u.src.charCodeAt(d)!==r||a||s.refuseDigitRange&&yIe(u))return!1;u.pos=d+1;let h=!1;for(;u.pos]|$)/i,CIe=new Set([...vg,"base","button","datalist","dialog","embed","fieldset","form","iframe","input","legend","link","meta","object","optgroup","option","output","param","select","style","template","textarea","title"]),wIe=new Set(["a","abbr","b","blockquote","br","caption","code","col","colgroup","dd","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","picture","pre","s","small","source","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","ul"]);function QI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xIe(e){return typeof e=="string"?e:e==null?"":String(e)}function PO(e){return/^[^\s"'<>`=]+$/.test(e)&&!/^on/i.test(e)}function uc(e){return xIe(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function jO(e){return uc(e).replace(/`/g,"`")}function L9(e){return String(e??"").trim().toLowerCase()}function z7(e,t="safe"){const n=L9(e);return n?t==="escape"?!0:t==="trusted"?vg.has(n):!wIe.has(n):!1}function HO(e,t="safe"){const n=L9(e);return n?t==="escape"?!0:t==="trusted"?vg.has(n):CIe.has(n):!1}function YI(e){const t=Object.entries(e);return t.length===0?"":t.map(([n,i])=>i===""?` ${n}`:` ${n}="${jO(i)}"`).join("")}function WO(e){const t=e.startsWith("/"),n=t?e.slice(1):e,i=n.match(AIe);return i?{attrsStr:t?"":n.slice(i[0].length).trimStart(),isClosing:t,isSelfClosing:!t&&e.trimEnd().endsWith("/"),tagName:i[1]}:null}function SIe(e,t){const n=e.split(",").map(i=>i.trim()).filter(Boolean);return n.length===0?!1:n.some(i=>{const o=i.split(/\s+/,1)[0]??"";return!o||Gd(o,{tagName:t,attrName:"srcset"})})}function qO(e,t,n,i){return lwe.has(e)||n==="safe"&&e==="style"?!0:e==="srcset"?SIe(t,i):!!(awe.has(e)&&t&&Gd(t,{tagName:i,attrName:e}))}function Fd(e,t){const n=t.toLowerCase();return Object.keys(e).find(i=>i.toLowerCase()===n)}function UO(e,t,n,i=!1){if(t!=="safe"||L9(n)!=="a")return e;const o=Fd(e,"href");if(i&&(!o||!e[o])){const a=Fd(e,"target"),u=Fd(e,"rel");return a&&delete e[a],u&&delete e[u],e}const s=Fd(e,"target");if((s?String(e[s]).trim():"").toLowerCase()!=="_blank")return e;const r=Fd(e,"rel"),l=new Set(String(r?e[r]:"").split(/\s+/).map(a=>a.trim()).filter(Boolean).filter(a=>a.toLowerCase()!=="opener"));return l.add("noopener"),l.add("noreferrer"),r&&r!=="rel"&&delete e[r],e.rel=Array.from(l).join(" "),e}function JI(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!PO(r)||qO(l,s,t,n)||(i[r]=s)}return UO(i,t,n,!!Fd(e,"href"))}function KO(e,t){const n=e.toLowerCase();return Bz.has(n)?!1:QI(t,n)||QI(t,e)}function O7(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!PO(r)||qO(l,s,t,n)||(i[r]=s)}return UO(i,t,n,!!Fd(e,"href"))}function Yp(e){const t={};if(!Array.isArray(e)||e.length===0)return t;for(const[n,i]of e)n&&(t[String(n)]=i==null?"":String(i));return t}function Fv(e,t="safe",n){const i=O7(Yp(e),t,n),o=Object.entries(i).map(([s,r])=>[s,r]);return o.length>0?o:void 0}function _Ie(e,t){const n=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(n))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(n)){const i=Number(e);if(e!==""&&!Number.isNaN(i))return i}return e}function MIe(e){const t={};for(const[n,i]of Object.entries(e))t[n]=_Ie(i,n);return t}function uk(e){return e.trim().length>0}function VO(e){const t=[];let n=0;for(;n",n);if(r!==-1){n=r+3;continue}break}const i=e.indexOf("<",n);if(i===-1){if(nn){const r=e.slice(n,i);uk(r)&&t.push({type:"text",content:r})}if(e.startsWith("![CDATA[",i+1)){const r=e.indexOf("]]>",i);if(r!==-1){t.push({type:"text",content:e.slice(i,r+3)}),n=r+3;continue}break}if(e.startsWith("!",i+1)){const r=e.indexOf(">",i);if(r!==-1){n=r+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=WO(e.slice(i+1,o));if(!s){const r=e.slice(i,o+1);uk(r)&&t.push({type:"text",content:r}),n=o+1;continue}if(s.isClosing)t.push({type:"tag_close",tagName:s.tagName});else{const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Tc.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r})}n=o+1}return t}function IIe(e){const t=[];let n=0;for(;n",n);if(l!==-1){n=l+3;continue}break}const i=e.indexOf("<",n);if(i===-1){nn&&t.push({type:"text",content:e.slice(n,i)}),e.startsWith("![CDATA[",i+1)){const l=e.indexOf("]]>",i);if(l!==-1){t.push({type:"text",content:e.slice(i,l+3)}),n=l+3;continue}break}if(e.startsWith("!",i+1)){const l=e.indexOf(">",i);if(l!==-1){n=l+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=WO(e.slice(i+1,o));if(!s){t.push({type:"text",content:e.slice(i,o+1)}),n=o+1;continue}if(s.isClosing){t.push({type:"tag_close",tagName:s.tagName}),n=o+1;continue}const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Tc.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r}),n=o+1}return t}function EIe(e){const t=String(e.tagName??"").trim();if(!t)return"";if(e.type==="tag_close")return`</${uc(t)}>`;const n=Object.entries(e.attrs??{}).map(([i,o])=>o===""?` ${uc(i)}`:` ${uc(i)}="${jO(o)}"`).join("");return e.type==="self_closing"?`<${uc(t)}${n} />`:`<${uc(t)}${n}>`}function TIe(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;for(const n of VO(e))if((n.type==="tag_open"||n.type==="self_closing")&&KO(n.tagName??"",t))return!0;return!1}function Oh(e,t="safe"){if(!e)return"";if(t==="escape")return uc(e);const n=IIe(e),i=[],o=[],s=[];for(const r of n){if(r.type==="text"){s.length===0&&o.push(uc(r.content??""));continue}const l=L9(r.tagName);if(!l)continue;if(HO(l,t)){r.type==="tag_open"?s.push(l):r.type==="tag_close"&&s[s.length-1]===l&&s.pop();continue}if(s.length>0)continue;if(t==="safe"&&z7(l,t)){o.push(EIe(r));continue}if(r.type==="self_closing"){o.push(`<${l}${YI(JI(r.attrs??{},t,l))}>`);continue}if(r.type==="tag_open"){o.push(`<${l}${YI(JI(r.attrs??{},t,l))}>`),Tc.has(l)||i.push(l);continue}const a=i.lastIndexOf(l);if(a===-1)continue;for(;i.length>a+1;){const c=i.pop();c&&o.push(``)}const u=i.pop();u&&o.push(``)}for(;i.length>0;){const r=i.pop();r&&o.push(``)}return o.join("")}const LIe=[/javascript:/i,/vbscript:/i,/data:text\/html/i,/expression\s*\(/i,/@import/i],XI="http://www.w3.org/2000/svg",NIe=new Set(["script","style","iframe","object","embed","link","meta"]),FIe=new Set(["svg","style","g","a","defs","marker","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","title","desc","use","image","lineargradient","radialgradient","stop","clippath","mask","pattern"]),DIe=new Set(["href","xlink:href","src","srcdoc","action","data","formaction","poster"]),BIe=new Set(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"]),$Ie=new Set(["circle","ellipse","image","line","path","polygon","polyline","rect","text","tspan","use"]);function RIe(e){return(e.getAttribute("href")||e.getAttribute("xlink:href"))?.startsWith("#")===!0}function zIe(e){return!!(e.getAttribute("href")||e.getAttribute("xlink:href")||e.getAttribute("src"))}function OIe(e){const t=e.nodeName.toLowerCase();return t==="use"?RIe(e):t==="image"?zIe(e):t==="text"||t==="tspan"?!!e.textContent?.trim():$Ie.has(t)}function PIe(e){return e.replace(/(["'])\s*javascript:/gi,"$1#").replace(/\bjavascript:/gi,"#").replace(/(["'])\s*vbscript:/gi,"$1#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#")}function jIe(e,t,n){const i=e.toLowerCase(),o=t.toLowerCase(),s=String(n??"").trim();return s?(i==="use"||i==="marker"||i==="clippath"||i==="mask")&&(o==="href"||o==="xlink:href")?s.startsWith("#")?s:"":i==="a"&&(o==="href"||o==="xlink:href")?Gd(s,{tagName:"a",attrName:"href"})?"":s:i==="image"&&(o==="href"||o==="xlink:href"||o==="src")?Gd(s,{tagName:"img",attrName:"src"})?"":s:o==="href"||o==="xlink:href"?s.startsWith("#")?s:"":Gd(s,{tagName:i,attrName:o})?"":s:""}function HIe(e,t){let n=t+4;for(;n{const i=n.trim();if(/^[0-9a-f]+$/i.test(i)){const o=Number.parseInt(i,16);try{return Number.isFinite(o)?String.fromCodePoint(o):""}catch{return""}}return String(n).trim()})}function GO(e){const t=ZO(e),n=t.toLowerCase();let i=0;for(;in.test(t))||GO(t)}function WIe(e){if(e.tagName.toLowerCase()!=="a"||e.getAttribute("target")?.trim().toLowerCase()!=="_blank")return;const t=new Set(String(e.getAttribute("rel")??"").split(/\s+/).map(n=>n.trim()).filter(Boolean).filter(n=>n.toLowerCase()!=="opener"));t.add("noopener"),t.add("noreferrer"),e.setAttribute("rel",Array.from(t).join(" "))}function Gm(e){const t=Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function QO(e,t){if(e.nodeType===Node.TEXT_NODE){const o=e.textContent??"";o&&t.push(o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const n=e,i=n.tagName.toLowerCase();if(!NIe.has(i)){if(i==="br"){t.push(` -`);return}for(const o of Array.from(n.childNodes))QO(o,t)}}function qIe(e){for(const t of Array.from(e.querySelectorAll("foreignObject"))){const n=[];QO(t,n);const i=n.join("").split(/\r?\n/).map(c=>c.trim()).filter(Boolean);if(!i.length){t.remove();continue}const o=Gm(t.getAttribute("width")),s=Gm(t.getAttribute("height")),r=Gm(t.getAttribute("x")),l=Gm(t.getAttribute("y")),a=e.ownerDocument.createElementNS(XI,"text");a.setAttribute("x",String(r+o/2)),a.setAttribute("y",String(l+s/2)),a.setAttribute("text-anchor","middle"),a.setAttribute("dominant-baseline","central");const u=t.querySelector(".nodeLabel");if(u?.getAttribute("class")&&a.setAttribute("class",u.getAttribute("class")),i.length===1)a.textContent=i[0];else{const c=-.6*(i.length-1);for(const[d,h]of i.entries()){const p=e.ownerDocument.createElementNS(XI,"tspan");p.setAttribute("x",String(r+o/2)),p.setAttribute("dy",d===0?`${c}em`:"1.2em"),p.textContent=h,a.appendChild(p)}}t.parentNode?.replaceChild(a,t)}}function UIe(e){qIe(e);const t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){const i=n.tagName.toLowerCase();if(!FIe.has(i)){n.remove();continue}if(i==="style"&&eE(n.textContent??"")){n.remove();continue}const o=Array.from(n.attributes);for(const s of o){const r=s.name.toLowerCase();if(/^on/i.test(r)){n.removeAttribute(s.name);continue}if(r==="style"&&s.value&&eE(s.value)){n.removeAttribute(s.name);continue}if(r==="srcdoc"){n.removeAttribute(s.name);continue}if(DIe.has(r)&&s.value){const l=jIe(i,r,s.value);if(!l){n.removeAttribute(s.name);continue}l!==s.value&&n.setAttribute(s.name,l);continue}if(BIe.has(r)&&s.value&&GO(s.value)){n.removeAttribute(s.name);continue}if(s.value){const l=PIe(s.value);l!==s.value&&n.setAttribute(s.name,l)}}WIe(n)}}function gct(e){if(typeof DOMParser>"u"||!e)return null;try{const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;if(!t||t.nodeName.toLowerCase()!=="svg")return null;const n=t;return UIe(n),KIe(n)?null:n}catch{return null}}function KIe(e){const t=e.getAttribute("viewBox");if(t){const o=t.trim().split(/[\s,]+/);if(o.length===4){const s=Number.parseFloat(o[2]||""),r=Number.parseFloat(o[3]||"");if(!Number.isFinite(s)||!Number.isFinite(r)||s<=0||r<=0)return!0}}const n=[e,...Array.from(e.querySelectorAll("*"))];let i=!1;for(const o of n){OIe(o)&&(i=!0);for(const s of Array.from(o.attributes))if(/\bNaN\b/i.test(s.value)||s.name==="style"&&/max-width:\s*0(?:px)?/i.test(s.value))return!0}return!i}const Qm=[];function ck(e){return String(e??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function VIe(e){return(String(e||"text").trim().split(/\s+/)[0]||"text").replace(/[^\w+.#:-]/g,"-").replace(/-+/g,"-")||"text"}function ZIe(e){return e.replace(/[^\w:.+-]/g,"-").replace(/-+/g,"-")}function tE(e=`editor-${Date.now()}`,t={}){const n=_Se(t),i=n;i.__markstreamRegisteredPluginCount=Qm.length,i.__markstreamHasCustomParserExtensions=!!(t.plugin?.length||t.apply?.length||Qm.length);const o={"common.copy":"Copy"};let s;if(typeof t.i18n=="function")s=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const p=t.i18n;s=g=>p[g]??o[g]??g}else s=p=>o[p]??p;if(Array.isArray(t.plugin))for(const p of t.plugin){const g=p;if(Array.isArray(g)){const[m,...k]=g;typeof m=="function"&&n.use(m,...k)}else typeof g=="function"&&n.use(g)}if(Array.isArray(t.apply))for(const p of t.apply)try{p(n)}catch(g){console.error("[getMarkdown] apply function threw an error",g)}if(Qm.length)for(const p of Qm)if(Array.isArray(p)){const[g,...m]=p;typeof g=="function"&&n.use(g,...m)}else typeof p=="function"&&n.use(p);n.use(bIe),n.use(K5e),n.use(W5e);const r=s6e,l=r.default??r;n.use(l),n.use(H5e),n.use(j5e),n.core.ruler.after("block","mark_fence_closed",p=>{const g=p,m=g.src,k=!!g.env?.__markstreamFinal,w=m.split(/\r?\n/);for(const y of g.tokens){if(y.type!=="fence"||!y.map||!y.markup)continue;const b=y.map[0],A=y.map[1],T=y.markup,S=T[0],x=T.length,_=w[Math.max(0,A-1)]??"";let L=0;for(;L<_.length&&(_[L]===" "||_[L]===" ");)L++;let M=0;for(;L+M<_.length&&_[L+M]===S;)M++;let N=L+M;for(;N<_.length&&(_[N]===" "||_[N]===" ");)N++;const I=k?!0:A>b+1&&M>=x&&N===_.length,z=y;z.meta=z.meta??{},z.meta.unclosed=!I,z.meta.closed=!!I}}),n.renderer.rules.fence=(p,g)=>{const m=p[g],k=String(m.info??"").trim(),w=String(m.content??""),y=btoa(unescape(encodeURIComponent(w))),b=VIe(k),A=ck(b),T=ZIe(`editor-${e}-${g}-${b}`),S=ck(s("common.copy"));return`
        -
        - ${ck(b.toUpperCase())} - -
        -
        -
        `};const a=/^\[(\d+)\]/,u=/^\[([^\]\n]+)\]/,c=p=>{if(!p.startsWith("["))return!1;const g=u.exec(p);if(!g)return p!=="["&&!/^\[\d+$/.test(p);const m=String(g[1]??"");return p.slice(g[0].length).startsWith("(")?!1:!/^\d+$/.test(m)},d=(p,g)=>{const m=p;if(m.src[m.pos]!=="[")return!1;const k=a.exec(m.src.slice(m.pos));if(!k)return!1;const w=m.src.slice(Math.max(0,m.pos-120),m.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(w))return!1;const y=m.src.slice(m.pos+k[0].length);if(y.startsWith("](")||y.startsWith("(")||c(y))return!1;if(!g){const b=k[1],A=m.push("reference","span",0);A.content=b,A.markup=k[0],A.raw=k[0]}return m.pos+=k[0].length,!0};n.inline.ruler.before("escape","reference",d),n.renderer.rules.reference=(p,g)=>{const k=String(p[g].content??"");return`${k}`};const h=n.use.bind(n);return n.use=((...p)=>(i.__markstreamHasCustomParserExtensions=!0,h(...p))),n}function GIe({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function YO({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:i,streamRenderVersionChanged:o=!1}){const s=`${n.settledContent}${n.streamedDelta}`;return i?n.streamedDelta&&s===e?o?{settledContent:s,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:GIe({nextContent:e,previousContent:t??s,typewriterEnabled:i}):{settledContent:e,streamedDelta:"",appended:!1}}const QIe={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function YIe(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function JO(e){const t=YIe(e);return QIe[t]??t}function JIe(e){if(!Array.isArray(e))return;const t=e.filter(i=>typeof i=="string").map(i=>JO(i)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function XIe(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const i of e){if(typeof i!="string")continue;const o=i.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function eEe(e){return XIe(e)?.join("\0")??""}function tEe(e,t){return`${eEe(e)}\0\0${JIe(t)?.join("\0")??""}`}function Gf(e,t,n=1){const i=Number(e);return Number.isFinite(i)?Math.max(n,i):t}function nE(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var nEe=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=d=>this.destroyed?()=>{}:(this.listeners.add(d),()=>{this.listeners.delete(d)}),this.enqueue=d=>{if(this.destroyed||!d)return;this.done&&(this.done=!1);const h=this.source.length>0,p=this.pendingChars<=0;if(this.source+=d,p){const g=iE();this.startedAt=h&&this.hasStarted?g-this.normalizedStartDelayMs:g,this.lastTick=g,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(d={})=>{if(!this.destroyed){if(this.done=!0,d.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(d="")=>{this.destroyed||(this.cancelLoop(),this.source=d,this.visible=d,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const d=iE();this.lastTick=d,this.startedAt||=d,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=d=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(d-this.startedAtthis.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,k=rEe(g/Math.max(.001,m/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(k-this.currentCps)*.2,this.charBudget+=this.currentCps*(p/1e3),this.charBudget<1){this.ensureLoop();return}const w=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),y=sEe(this.source.slice(this.visible.length),w,this.segmenter);y.text&&(this.visible+=y.text,this.charBudget=Math.max(0,this.charBudget-y.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:i=1e3,targetLatencyMs:o=900,catchUpLatencyMs:s=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:a=80,maxCharsPerCommit:u=80,flushOnFinish:c=!1}=e;this.minCharsPerSecond=Gf(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,Gf(i,1e3,1)),this.normalizedTargetLatencyMs=Gf(o,900,1),this.normalizedCatchUpLatencyMs=Gf(s,350,1),this.normalizedCatchUpThreshold=nE(r,600),this.normalizedStartDelayMs=nE(a,80),this.maxCommitFps=Math.trunc(Gf(l,30,1)),this.maxCharsPerCommit=Math.trunc(Gf(u,80,1)),this.flushOnFinish=c,this.segmenter=oEe(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function iEe(e={},t){const n=new nEe(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function oEe(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function sEe(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const s=Array.from(e).slice(0,t);return{text:s.join(""),graphemeCount:s.length}}let i="",o=0;for(const s of n.segment(e)){if(o>=t)break;i+=s.segment,o++}return{text:i,graphemeCount:o}}function iE(){return typeof performance<"u"?performance.now():Date.now()}function rEe(e,t,n){return Math.min(n,Math.max(t,e))}var lEe=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const U8=Symbol.for("markstream-vue:node-lifecycle");function mct(){}const P7=new Map;let XO="material";const yh=new Map,oE=new Map;let K8=null;function aEe(e){P7.set(e.id,e)}function uEe(e){const t=P7.get(XO);if(!t)return;const n=t.core[e];if(n)return n;const i=yh.get(t.id);if(i){const o=i[e];if(o)return o}t.loadExtended&&!yh.has(t.id)&&dEe(t)}function cEe(){var e,t;return(t=(e=P7.get(XO))==null?void 0:e.fallback)!=null?t:""}function dEe(e){return lEe(this,null,function*(){var t,n,i;if(yh.has(e.id))return(t=yh.get(e.id))!=null?t:null;let o=oE.get(e.id);return o||(o=((i=(n=e.loadExtended)==null?void 0:n.call(e))!=null?i:Promise.resolve(null)).then(s=>(yh.set(e.id,s),K8?.(),s)).catch(()=>(yh.set(e.id,null),null)),oE.set(e.id,o)),o})}const sE='',rE='',fEe={id:"material",core:{"":rE,plain:'',text:rE,javascript:'',typescript:'',jsx:'',tsx:'',html:'',css:'',scss:'',json:'',python:'',ruby:'',go:'',java:'',kotlin:'',c:'',cpp:'',cs:sE,csharp:sE,php:'',shell:'',powershell:'',sql:'',yaml:'',markdown:'',xml:'',rust:'',vue:'',mermaid:''},fallback:'',loadExtended:()=>Fo(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},hEe=ha(0);K8=()=>{hEe.value++},aEe(fEe);const pEe={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function N9(e){var t;const n=(function(i){if(!i)return"";const o=i.trim();if(!o)return"";const[s]=o.split(/\s+/),[r]=s.split(":");return r.toLowerCase()})(e);return(t=pEe[n])!=null?t:n}function vct(e){const t=N9(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function yct(e){return uEe(N9(e))||cEe()}const lE={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var F9=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});let yr=null,zd=!1,Od=null,D9=H7;function Ag(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function j7(){try{const e=globalThis;return Ag(e?.katex)}catch{return null}}function H7(){return F9(null,null,function*(){const e=j7();if(e)return e;const t=yield Fo(()=>import("./katex-DnlPpQZa.js"),[]);try{yield Fo(()=>import("./mhchem-DtR62fUK.js"),__vite__mapDeps([2,3]))}catch{}return Ag(t)})}function eP(e){const t=Promise.resolve(e).then(n=>{var i;return Od===t&&n?(yr=(i=Ag(n))!=null?i:n,yr):null}).catch(()=>null).finally(()=>{Od===t&&(Od=null)});return Od=t,zd=!0,t}function gEe(e){D9=e,yr=null,zd=!1,Od=null}function mEe(e){gEe(H7)}function tP(){return typeof D9=="function"}function kct(){var e;const t=D9;if(!t||t===H7)return null;if(yr)return yr;const n=j7();if(n)return yr=n,yr;if(zd)return null;try{const i=t();return i?typeof i?.then=="function"?(eP(i),null):(yr=(e=Ag(i))!=null?e:i,yr):null}catch{return null}}function nP(){return F9(this,null,function*(){var e;const t=j7();if(t)return yr=t,yr;if(yr)return yr;if(Od)return Od;if(zd)return null;const n=D9;if(!n)return zd=!0,null;try{const i=n();if(typeof i?.then=="function")return eP(i);if(i)return yr=(e=Ag(i))!=null?e:i,zd=!0,yr}catch{}return zd=!0,null})}function iP(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let Dv=null,Sd=null;const mr=new Map,gu=new Map;let P0=5;const Yd=new Set;function Jp(){if(mr.size{const{id:n,html:i,error:o}=t.data,s=mr.get(n);if(s)if(mr.delete(n),clearTimeout(s.timeoutId),s.cleanup(),Jp(),o)s.aborted||s.reject(new Error(o));else{const{content:r,displayMode:l}=t.data;if(r){const a=`${l?"d":"i"}:${r}`;if(gu.set(a,i),gu.size>200){const u=gu.keys().next().value;gu.delete(u)}}s.aborted||s.resolve(i)}},Dv.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,i]of mr.entries())clearTimeout(i.timeoutId),i.cleanup(),i.aborted||i.reject(new Error(`Worker error: ${t.message}`));mr.clear(),vEe()}}function kEe(e,t=!0,n=2e3,i){return F9(this,null,function*(){performance.now();const o=iP(e);if(!tP()){const a=new Error("KaTeX rendering disabled");return a.name="KaTeXDisabled",a.code="KATEX_DISABLED",Promise.reject(a)}if(Sd)return Promise.reject(Sd);const s=`${t?"d":"i"}:${o}`,r=gu.get(s);if(r)return Jp(),Promise.resolve(r);const l=Dv||(Sd=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Sd.name="WorkerInitError",Sd.code="WORKER_INIT_ERROR",null);if(!l)return Promise.reject(Sd);if(mr.size>=P0){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code="WORKER_BUSY",a.busy=!0,a.inFlight=mr.size,a.max=P0,Promise.reject(a)}return new Promise((a,u)=>{if(i?.aborted){const m=new Error("Aborted");return m.name="AbortError",void u(m)}const c=Math.random().toString(36).slice(2);let d=null;const h=globalThis.setTimeout(()=>{const m=mr.get(c);if(!m)return;mr.delete(c),m.cleanup();const k=new Error("Worker render timed out");k.name="WorkerTimeout",k.code="WORKER_TIMEOUT",m.aborted||m.reject(k),Jp()},n);d=()=>{const m=mr.get(c);if(!m||m.aborted)return;m.aborted=!0,m.cleanup();const k=new Error("Aborted");k.name="AbortError",u(k)},i&&i.addEventListener("abort",d,{once:!0});const p=a,g=u;mr.set(c,{resolve:m=>{p(m)},reject:m=>{g(m)},timeoutId:h,aborted:!1,cleanup:()=>{i&&d&&i.removeEventListener("abort",d),d=null}});try{l.postMessage({id:c,content:o,displayMode:t})}catch(m){const k=mr.get(c);mr.delete(c),clearTimeout(h),k?.cleanup(),k?.reject(m),Jp()}})})}function bct(e,t=!0,n){const i=`${t?"d":"i"}:${iP(e)}`;if(gu.set(i,n),gu.size>200){const o=gu.keys().next().value;gu.delete(o)}}const bEe="WORKER_BUSY";function AEe(e=2e3,t){return mr.size{let o,s=!1,r=null,l=()=>{};const a=()=>{o&&globalThis.clearTimeout(o),Yd.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{s||(s=!0,a(),n())},Yd.add(l),o=globalThis.setTimeout(()=>{if(s)return;s=!0,a();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",i(u)},e),queueMicrotask(()=>Jp()),t&&(r=()=>{if(s)return;s=!0,a();const u=new Error("Aborted");u.name="AbortError",i(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const G1={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Act(e){return F9(this,arguments,function*(t,n=!0,i={}){var o,s,r,l;if(!tP()){const m=new Error("KaTeX rendering disabled");throw m.name="KaTeXDisabled",m.code="KATEX_DISABLED",m}const a=(o=i.timeout)!=null?o:G1.timeout,u=(s=i.waitTimeout)!=null?s:G1.waitTimeout,c=(r=i.backoffMs)!=null?r:G1.backoffMs,d=(l=i.maxRetries)!=null?l:G1.maxRetries,h=Number.isFinite(d)?Math.max(0,Math.min(Math.floor(d),8)):G1.maxRetries,p=i.signal;let g=0;for(;;){if(p?.aborted){const m=new Error("Aborted");throw m.name="AbortError",m}try{return yield kEe(t,n,a,p)}catch(m){if(m?.code!==bEe||g>=h)throw m;if(g++,yield AEe(u,p).catch(()=>{}),p?.aborted){const k=new Error("Aborted");throw k.name="AbortError",k}c>0&&(yield new Promise(k=>globalThis.setTimeout(k,c*g)))}}})}function kh(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function CEe(e){var t;for(const n of e.split(/\r?\n/)){const i=n.trim();if(!i||i.startsWith("%%"))continue;const o=i.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function uy(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),i=CEe(e);return i==="gantt"?220+28*n:i==="sequencediagram"?180+26*n:i==="classdiagram"||i==="statediagram"||i==="erdiagram"?180+24*n:i==="flowchart"||i==="graph"?170+28*n:200+22*n}function cy(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function oP(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function dy(e,t=360,n=500){return oP(e,t,n)}function fy(e,t=360,n=500){return oP(e,t,n)}var wEe=Object.defineProperty,xEe=Object.defineProperties,SEe=Object.getOwnPropertyDescriptors,aE=Object.getOwnPropertySymbols,_Ee=Object.prototype.hasOwnProperty,MEe=Object.prototype.propertyIsEnumerable,uE=(e,t,n)=>t in e?wEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sP=(e,t)=>{for(var n in t||(t={}))_Ee.call(t,n)&&uE(e,n,t[n]);if(aE)for(var n of aE(t))MEe.call(t,n)&&uE(e,n,t[n]);return e},cE=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const hy=()=>Fo(()=>import("./mermaid.core-DaDTfY6S.js").then(e=>e.bp),__vite__mapDeps([4,5]));let ou=null,bh=hy,_p=null,V8=!1,Z8=!1,Mp=0;function IEe(e){bh=e,Mp++,ou=null,_p=null,V8=!1,Z8=!1}function EEe(e){IEe(hy)}function dE(){return typeof bh=="function"}function fE(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=sP({},t),i={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:s=>typeof t.initialize=="function"?t.initialize(s):o.initialize?o.initialize(s):void 0},xEe(n,SEe(i))}var n,i;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function hE(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const i=sP({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,i):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(i):void 0}}catch{}}function Cct(){return cE(this,null,function*(){if(ou)return ou;const e=(function(){try{const i=globalThis;return fE(i?.mermaid)}catch{return null}})();if(e)return ou=e,hE(ou),ou;const t=bh,n=Mp;return t?t===hy&&V8?null:_p||(_p=cE(null,null,function*(){let i;try{i=yield t()}catch(o){if(t===hy)return n===Mp&&t===bh&&(V8=!0,(function(s){Z8||(Z8=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',s))})(o)),null;throw o}finally{n===Mp&&t===bh&&(_p=null)}return n!==Mp||t!==bh?null:i?(ou=fE(i),hE(ou),ou):null}),_p):null})}let Ma=null,_d=null;const Xl=new Map,Md=new Map;function dk(e){for(const t of Xl.values())t.reject(e);Xl.clear(),Md.clear()}let pE=5,gE=!1;const TEe="WORKER_BUSY",mE="MERMAID_DISABLED";function LEe(e){if(Ma&&Ma!==e){const n=new Error("Worker replaced");n.code="WORKER_REPLACED",dk(n)}Ma=e,_d=null;const t=e;Ma.onmessage=n=>{if(Ma!==t)return;const{id:i,ok:o,result:s,error:r}=n.data,l=Xl.get(i);l&&(o===!1||r?l.reject(new Error(r||"Unknown error")):l.resolve(s))},Ma.onerror=n=>{var i,o;if(Ma===t)if(Xl.size!==0){try{gE?console.error("[mermaidWorkerClient] Worker error:",n?.message||n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error:",n?.message||n)}catch{}dk(new Error(`Worker error: ${n.message}`))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker error (no pending):",n?.message||n)},Ma.onmessageerror=n=>{var i,o;if(Ma===t)if(Xl.size!==0){try{gE?console.error("[mermaidWorkerClient] Worker messageerror:",n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch{}dk(new Error("Worker messageerror"))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n)}}function rP(e,t,n,i){if(!dE()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=mE,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let s=Md.get(o);return s||(s=(function(r,l,a=1400){if(!dE()){const c=new Error("Mermaid rendering disabled");return c.name="MermaidDisabled",c.code=mE,Promise.reject(c)}if(_d)return Promise.reject(_d);const u=Ma||(_d=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),_d.name="WorkerInitError",_d.code="WORKER_INIT_ERROR",null);if(!u)return Promise.reject(_d);if(Xl.size>=pE){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code=TEe,c.inFlight=Xl.size,c.max=pE,Promise.reject(c)}return new Promise((c,d)=>{const h=Math.random().toString(36).slice(2);let p,g=!1;const m=()=>{g||(g=!0,p!=null&&globalThis.clearTimeout(p),Xl.delete(h))},k={resolve:w=>{m(),c(w)},reject:w=>{m(),d(w)}};Xl.set(h,k);try{u.postMessage({id:h,action:r,payload:l})}catch(w){return Xl.delete(h),void d(w)}p=globalThis.setTimeout(()=>{const w=new Error("Worker call timed out");w.name="WorkerTimeout",w.code="WORKER_TIMEOUT";const y=Xl.get(h);y&&y.reject(w)},a)})})(e,t,n),Md.set(o,s),s.then(()=>{Md.get(o)===s&&Md.delete(o)},()=>{Md.get(o)===s&&Md.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const a=new Error("Aborted");return a.name="AbortError",Promise.reject(a)}return new Promise((a,u)=>{let c=()=>{};const d=()=>l.removeEventListener("abort",c);c=()=>{d();const h=new Error("Aborted");h.name="AbortError",u(h)},l.addEventListener("abort",c,{once:!0}),r.then(h=>{d(),a(h)},h=>{d(),u(h)})})})(s,i)}function wct(e,t,n=1400,i){return rP("canParse",{code:e,theme:t},n,i)}function xct(e,t,n=1400,i){return rP("findPrefix",{code:e,theme:t},n,i)}var NEe=Object.defineProperty,FEe=Object.defineProperties,DEe=Object.getOwnPropertyDescriptors,vE=Object.getOwnPropertySymbols,BEe=Object.prototype.hasOwnProperty,$Ee=Object.prototype.propertyIsEnumerable,yE=(e,t,n)=>t in e?NEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t)=>{for(var n in t||(t={}))BEe.call(t,n)&&yE(e,n,t[n]);if(vE)for(var n of vE(t))$Ee.call(t,n)&&yE(e,n,t[n]);return e},An=(e,t)=>FEe(e,DEe(t)),Ji=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const REe="__global__",fk="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",G8=(()=>{const e=globalThis;if(e[fk])return e[fk];const t={scopedCustomComponents:{},revision:ha(0)};return e[fk]=t,t})(),kE=G8.revision,zEe=Symbol("markstreamCustomComponents"),OEe=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function Cg(e){return OEe.has(String(e).trim().toLowerCase())}function PEe(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function hk(e={}){const t={};for(const[n,i]of Object.entries(e))if(i!=null){t[n]=i;for(const o of new Set([zl(n),zl(PEe(n))]))!o||Cg(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=i)}return t}function ss(e){const t=hn(zEe,null);return F(()=>{var n;return kE.value,(function(i,o={}){return kE.value,Mt(Mt(Mt({},hk(G8.scopedCustomComponents[REe]||{})),hk(o)),hk((function(s){return s&&G8.scopedCustomComponents[s]||{}})(i)))})(e?.(),(n=t?.value)!=null?n:{})})}const jEe=["aria-label"],HEe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},WEe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},Ci=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},dl=Ci(Xe({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(v(),E("svg",WEe,[...n[1]||(n[1]=[C("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),C("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(v(),E("svg",HEe,[...n[0]||(n[0]=[C("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,jEe))}),[["__scopeId","data-v-be21ab83"]]);dl.install=e=>{e.component(dl.__name,dl)};const qEe={class:"emoji-node"},Ur=Ci(Xe({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("span",qEe,D(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);Ur.install=e=>{e.component(Ur.__name,Ur)};const UEe=["id"],KEe=["title"],fl=Ci(Xe({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const i=document.querySelector(t);i?i.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(i,o)=>(v(),E("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[C("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+D(e.node.id)+"]",9,KEe)],8,UEe))}}),[["__scopeId","data-v-c1463a29"]]);fl.install=e=>{e.component(fl.__name,fl)};const lP=(()=>{try{return!1}catch{}return!1})();function pk(e){lP&&console.warn(e)}function bE(e,t="safe",n){return O7(e,t,n)}function aP(e){return MIe(e)}function gk(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function W7(e,t="safe"){const n=String(e.tag||e.type||"").trim(),i=Fv((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),gk(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),gk(r.value)]):Object.entries(o).map(([r,l])=>[r,gk(l)]):null,t,n);var o;if(!i)return;const s=aP(Yp(i));return Object.keys(s).length>0?s:void 0}function AE(e,t,n=!1){const i=Object.entries(t??{}),o=i.length>0?i.map(([s,r])=>r===""?` ${s}`:` ${s}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function Q1(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function mk(e,t,n,i,o,s,r=!1){const l=(function(d,h){return KO(d,h)})(e,i);if(vg.has(e.toLowerCase())||!l&&HO(e,s))return null;if(!l&&z7(e,s))return r?[AE(e,t,!0)]:[AE(e,t),...n,``];const a=O7(t,s,e),u=a.key,c=u!=null&&u!==""?u:o;if(l){const d=i[e]||i[e.toLowerCase()],h=aP(a);return yn(d,An(Mt({},h),{key:c}),n.length>0?n:void 0)}return yn(e,An(Mt({},a),{innerHTML:void 0,key:c}),n.length>0?n:void 0)}function uP(e,t){return TIe(e,t)}function py(e,t,n="safe"){if(!e)return[];try{return(function(s,r,l="safe"){let a=0;const u=[],c=[];for(const d of s)if(d.type==="text")(u.length>0?u[u.length-1].children:c).push(d.content);else if(d.type==="self_closing"){const h=mk(d.tagName,d.attrs||{},[],r,"ms-html-"+a++,l,!0);Q1(u.length>0?u[u.length-1].children:c,h)}else if(d.type==="tag_open")u.push({tagName:d.tagName,children:[],attrs:d.attrs,autoKey:"ms-html-"+a++});else if(d.type==="tag_close"){const h=d.tagName.toLowerCase();let p=-1;for(let g=u.length-1;g>=0;g--)if(u[g].tagName.toLowerCase()===h){p=g;break}if(p!==-1)for(;u.length>p;){const g=u.pop(),m=mk(g.tagName,g.attrs||{},g.children,r,g.autoKey,l);u.length>0?Q1(u[u.length-1].children,m):Q1(c,m),g.tagName.toLowerCase()!==h&&u.length>p&&pk(`Auto-closing unclosed tag: <${g.tagName}>`)}else pk(`Ignoring closing tag with no matching opening tag: `)}for(;u.length>0;){const d=u.pop(),h=mk(d.tagName,d.attrs||{},d.children,r,d.autoKey,l);u.length>0?Q1(u[u.length-1].children,h):Q1(c,h),pk(`Auto-closing unclosed tag: <${d.tagName}>`)}return c})(VO(e),t,n)}catch(o){return i=o,lP&&console.error("Failed to parse HTML to VNodes:",i),null}var i}const VEe=["innerHTML"],hl=Ci(Xe({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=hn("markstreamHtmlPolicy",void 0),i=F(()=>{var l,a;return(a=(l=t.htmlPolicy)!=null?l:n?.value)!=null?a:"safe"}),o=ss(()=>t.customId),s=Xe({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=F(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(i.value==="escape")return{mode:"html",content:Oh(l,i.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=py(l,o.value,i.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!uP(l,o.value))return{mode:"html",content:Oh(l,i.value)};const a=py(l,o.value,i.value);return a===null?{mode:"html",content:Oh(l,i.value)}:{mode:"dynamic",nodes:a}});return(l,a)=>r.value.mode==="dynamic"?(v(),E("span",{key:0,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[U(f(s),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(v(),E("span",{key:1,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},D(r.value.content),3)):(v(),E("span",{key:2,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,VEe))}}),[["__scopeId","data-v-d17f12b0"]]);hl.install=e=>{e.component(hl.__name,hl)};const ZEe={class:"inline-code"},GEe={key:0},rr=Ci(Xe({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=r1(),i=hn("markstreamFade",void 0),o=hn("markstreamTextStreamState",void 0),s=hn("markstreamStreamVersion",void 0),r=F(()=>{const y=n.fade;return y===""||y===!0||y==="true"||y!==!1&&y!=="false"&&void 0}),l=F(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=F(()=>{var y;return String((y=t.node.code)!=null?y:"")}),u=F(()=>!l.value),c=F(()=>{var y;const b=(y=n["index-key"])!=null?y:n.indexKey;return b==null||b===""?"":String(b)}),d=K(t.node.code),h=K(""),p=K(0);let g;function m(){g?.(),g=void 0}function k(){m(),h.value&&(d.value=d.value+h.value,h.value="")}Pe([()=>t.node.code,c,l],([y])=>{const b=String(y??""),A=c.value,T=YO({nextContent:b,persistedContent:A?o?.get(A):void 0,currentState:{settledContent:d.value,streamedDelta:h.value},typewriterEnabled:l.value});d.value=T.settledContent,h.value=T.streamedDelta,T.appended?(p.value+=1,(function(){if(!h.value||g||!s)return;const S=s.value;g=Pe(()=>s.value,x=>{x!==S&&k()},{flush:"sync"})})()):h.value||m(),A&&o?.set(A,b)},{immediate:!0}),Bc(m);const w=F(()=>p.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(y,b)=>(v(),E("code",ZEe,[u.value?(v(),E(Ee,{key:0},[$e(D(a.value),1)],64)):(v(),E(Ee,{key:1},[d.value?(v(),E("span",GEe,D(d.value),1)):X("",!0),h.value?(v(),E("span",{key:1,class:Fe(["inline-code-stream-delta",[w.value]]),onAnimationend:k},D(h.value),35)):X("",!0)],64))]))}}),[["__scopeId","data-v-4e331c97"]]);rr.install=e=>{e.component(rr.__name,rr)};const Q8=K(!1),CE=K(""),wE=K("top"),Xp=K(null),e0=K(null),Y8=K(null),J8=K(null),xE=K(null);let Bv=null,$v=null,X8=0;function cP(){Bv&&(clearTimeout(Bv),Bv=null),$v&&(clearTimeout($v),$v=null)}let Ym=!1,Jm=null,SE=!1;function QEe(e,t,n="top",i=!1,o,s){if(!e)return;const r=++X8;cP();const l=()=>Ji(null,null,function*(){var a,u;if(yield(function(){return Ji(this,null,function*(){if(!Ym&&!SE&&typeof document<"u"){Jm!=null||(Jm=Ji(null,null,function*(){const[{createApp:c,h:d},{default:h}]=yield Promise.all([Fo(()=>import("./vue.runtime.esm-bundler-DL_Wfh3f.js"),[]),Fo(()=>import("./Tooltip-06BtTYE8.js"),[])]),p=document.createElement("div");p.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(p),c({setup:()=>()=>{var g;return d(h,{visible:Q8.value,"anchor-el":Xp.value,content:CE.value,placement:wE.value,id:e0.value,originX:Y8.value,originY:J8.value,isDark:(g=xE.value)!=null?g:void 0})}}).mount(p),Ym=!0}));try{yield Jm}catch(c){Ym=!1,Jm=null,SE=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",c)}}})})(),Ym&&r===X8){e0.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,Xp.value=e,CE.value=t,wE.value=n,Y8.value=(a=o?.x)!=null?a:null,J8.value=(u=o?.y)!=null?u:null,xE.value=typeof s=="boolean"?s:null,Q8.value=!0;try{e.setAttribute("aria-describedby",e0.value)}catch{}}});i?l():Bv=setTimeout(l,80)}function YEe(e=!1){X8+=1,cP();const t=()=>{if(Xp.value&&e0.value)try{Xp.value.removeAttribute("aria-describedby")}catch{}Q8.value=!1,Xp.value=null,e0.value=null,Y8.value=null,J8.value=null};e?t():$v=setTimeout(t,120)}const JEe={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},XEe=Symbol("markstreamI18nFallback");function dP(e,t){var n;return(n=t?.[e])!=null?n:JEe[e]}const e5=(e,t)=>{var n;return(n=dP(e,t))!=null?n:(function(i){return(i.split(".").pop()||i).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function _E(e,t){return{t(n){const i=dP(n,t);if(e.te&&i!=null&&!e.te(n))return e5(n,t);const o=e.t(n);return o===n&&i!=null?e5(n,t):o}}}function eTe(){const e=(function(){var n,i,o;try{const s=os(),r=XEe,l=s?.provides,a=(n=s?.appContext)==null?void 0:n.provides;return(o=(i=l?.[r])!=null?i:a?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,i;try{const o=os(),s=o?.proxy,r=s?.$t;if(typeof r=="function"){const u=s?.$te;return{t:r.bind(s),te:typeof u=="function"?u.bind(s):void 0}}const l=(i=(n=o?.appContext)==null?void 0:n.config)==null?void 0:i.globalProperties,a=l?.$t;if(typeof a=="function"){const u=l?.$te;return{t:a.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return _E(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const i=n();if(i&&typeof i.t=="function")return _E({t:i.t.bind(i),te:typeof i.te=="function"?i.te.bind(i):void 0},e)}catch{}}catch{}return{t:n=>e5(n,e)}}const fP=Symbol("ViewportPriority"),hP=Symbol("ViewportPriorityOptions"),pP=Symbol("OffscreenHeavyNodeDeferral"),tTe=F(()=>!1),ff="400px";function q7(){return hn(hP,void 0)}function U7(){return hn(pP,tTe)}function nTe(e,t){var n,i;const o=typeof window<"u"&&typeof document<"u",s=typeof t=="boolean"?K(t):t,r=o?(n=window.requestIdleCallback)!=null?n:x=>window.setTimeout(()=>x({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(i=window.cancelIdleCallback)!=null?i:x=>window.clearTimeout(x):null,a=new WeakMap;let u=1;const c=new Map,d=new Map,h=new Set;let p=null,g=null;function m(x){if(!x)return"viewport";let _=a.get(x);return _||(_=u++,a.set(x,_)),String(_)}function k(){if(p!=null){try{l?.(p)}catch{}p=null}}function w(x){if(x){const _=c.get(x);if(_&&!_.targets.size){try{_.io.disconnect()}catch{}c.delete(x)}}d.size||h.size||k()}function y(x){const _=d.get(x);if(!_)return;const L=c.get(_.bucketKey);if(!_.visible.value){_.visible.value=!0;try{_.resolve()}catch{}}try{L?.io.unobserve(x)}catch{}L?.targets.delete(x),d.delete(x),h.delete(x),w(_.bucketKey)}function b(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&p==null&&h.size&&(p=r(()=>{p=null;const x=h.values().next().value;x&&(h.delete(x),y(x),h.size&&b())},{timeout:1200}))}function A(x,_){if(!o||typeof IntersectionObserver>"u")return null;const L=(function(O,R){var j,$,W;return{root:(j=e?.(O??null))!=null?j:null,rootMargin:($=R?.rootMargin)!=null?$:ff,threshold:(W=R?.threshold)!=null?W:0}})(x,_),M=[m((N=L).root),N.rootMargin,N.threshold].join("\0");var N;const I=c.get(M);if(I)return{key:M,bucket:I};let z;try{z=new IntersectionObserver(O=>{for(const R of O)(R.isIntersecting||R.intersectionRatio>0)&&y(R.target)},{root:L.root,rootMargin:L.rootMargin,threshold:L.threshold})}catch{return null}const H={io:z,targets:new Map};return c.set(M,H),{key:M,bucket:H}}function T(){if(o&&s.value)for(const[x,_]of Array.from(d.entries())){const L=A(x,_.opts);if(!L){y(x);continue}if(L.key===_.bucketKey)continue;const M=_.bucketKey,N=c.get(M);try{N?.io.unobserve(x)}catch{}N?.targets.delete(x),_.bucketKey=L.key,L.bucket.targets.set(x,_),L.bucket.io.observe(x),w(M)}}Pe(s,x=>{if(!x){for(const _ of Array.from(d.keys()))y(_);k()}},{flush:"sync"});const S=(x,_)=>{const L=K(!1);let M,N=!1;const I=new Promise(R=>{M=()=>{N||(N=!0,R())}}),z=()=>{const R=d.get(x);if(!R)return h.delete(x),void w();const j=c.get(R.bucketKey);try{j?.io.unobserve(x)}catch{}j?.targets.delete(x),d.delete(x),h.delete(x),w(R.bucketKey)};if(!o||!s.value)return L.value=!0,M(),{isVisible:L,whenVisible:I,destroy:z};const H=A(x,_);if(!H)return L.value=!0,M(),{isVisible:L,whenVisible:I,destroy:z};const O={resolve:M,visible:L,bucketKey:H.key,opts:_};return d.set(x,O),H.bucket.targets.set(x,O),H.bucket.io.observe(x),o&&g==null&&(g=window.requestAnimationFrame(()=>{g=null,T()})),_?.allowIdle!==!1&&(h.add(x),b()),{isVisible:L,whenVisible:I,destroy:z}};return S.refresh=T,oi(fP,S),S}function K7(){var e,t;const n=hn(fP,void 0);if(n)return n;const i=new WeakMap,o=new Map,s=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:p=>window.setTimeout(()=>p({didTimeout:!0,timeRemaining:()=>0}),16):null,a=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:p=>window.clearTimeout(p):null,u=()=>{if(r!=null){try{a?.(r)}catch{}r=null}},c=p=>{if(!p)return;const g=o.get(p);if(g&&!g.targets.size){try{g.io.disconnect()}catch{}o.delete(p)}},d=p=>{const g=i.get(p);if(!g)return;const m=o.get(g.bucketKey);if(!g.visible.value){g.visible.value=!0;try{g.resolve()}catch{}}try{m?.io.unobserve(p)}catch{}i.delete(p),m?.targets.delete(p),s.delete(p),c(g.bucketKey),s.size||u()},h=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&s.size&&(r=l(()=>{r=null;const p=s.values().next().value;p&&(s.delete(p),d(p),s.size&&h())},{timeout:1200}))};return(p,g)=>{const m=K(!1);let k,w=!1;const y=new Promise(T=>{k=()=>{w||(w=!0,T())}}),b=()=>{const T=i.get(p);if(!T)return s.delete(p),void(s.size||u());const S=o.get(T.bucketKey);try{S?.io.unobserve(p)}catch{}i.delete(p),S?.targets.delete(p),s.delete(p),c(T.bucketKey),s.size||u()},A=(T=>{var S,x;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const _=(z=>{var H,O;return[(H=z?.rootMargin)!=null?H:ff,(O=z?.threshold)!=null?O:0].join("\0")})(T),L=o.get(_);if(L)return{key:_,bucket:L};const M=(S=T?.rootMargin)!=null?S:ff;let N;try{N=new IntersectionObserver(z=>{for(const H of z)(H.isIntersecting||H.intersectionRatio>0)&&d(H.target)},{root:null,rootMargin:M,threshold:(x=T?.threshold)!=null?x:0})}catch{return null}const I={io:N,targets:new Set};return o.set(_,I),{key:_,bucket:I}})(g);return A?(i.set(p,{resolve:k,visible:m,bucketKey:A.key}),A.bucket.targets.add(p),A.bucket.io.observe(p),g?.allowIdle!==!1&&(s.add(p),h()),{isVisible:m,whenVisible:y,destroy:b}):(m.value=!0,k(),{isVisible:m,whenVisible:y,destroy:b})}}function iTe(e,t){var n,i;const o=(i=(n=e.indexKey)!=null?n:t["index-key"])!=null?i:t.indexKey;return o==null||o===""?"":String(o)}const oTe=["data-markstream-viewport-pending"],sTe=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],rTe={key:1,class:"image-placeholder"},lTe={key:1,class:"image-node__raw-text"},aTe={key:2,class:"image-shimmer-overlay"},uTe={key:1,class:"image-node__raw-text"},cTe={key:3,class:"image-error"},yc=Ci(Xe({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,i,o;const s=e,r=t,l=K(!1),a=K(!1),u=K(""),c=K("primary"),d=K(null),h=r1(),p=hn(U8,null),g=K7(),m=q7(),k=U7(),w=F(()=>GM(s.node.src)),y=F(()=>GM(s.fallbackSrc)),b=(o=(i=(n=os())==null?void 0:n.vnode.el)==null?void 0:i.querySelector)==null?void 0:o.call(i,"img"),A=typeof window<"u"&&b?.getAttribute("src")===(w.value||y.value),T=K(typeof window>"u"||A||!k.value),S=ha(null);let x="",_=null;const L=F(()=>u.value),M=F(()=>!s.lazy),N=F(()=>typeof window<"u"&&k.value&&!A),I=F(()=>!N.value||T.value),z=F(()=>I.value?L.value:""),H=F(()=>{var ie,pe;return(pe=(ie=m?.value.heavyBlockMargin)!=null?ie:m?.value.rootMargin)!=null?pe:ff}),O=F(()=>!s.node.loading&&c.value!=="failed"&&u.value.length>0),R=F(()=>c.value==="failed"),j=F(()=>(!M.value||N.value&&!T.value)&&!l.value&&!a.value&&c.value!=="failed"&&u.value.length>0),$=F(()=>iTe(s,h));function W(ie=$.value){ie&&d.value&&p?.reportHeight(ie,d.value.offsetHeight)}function P(ie=$.value){ie&&dt(()=>{W(ie)})}function Z(){_&&(clearTimeout(_),_=null)}function ae(){const ie=$.value;ie&&x!==ie&&(x&&p?.markSettled(x),Z(),x=ie,p?.markPending(ie),typeof window<"u"&&(_=window.setTimeout(()=>{x===ie&&(P(ie),V())},8e3)))}function V(){return Ji(this,null,function*(){const ie=x;ie&&(Z(),x="",yield dt(),W(ie),p?.markSettled(ie))})}function Y(){if(c.value==="primary"&&y.value&&y.value!==u.value)return c.value="fallback",u.value=y.value,l.value=!1,a.value=!1,void P();c.value="failed",a.value=!0,r("error",u.value),P()}function oe(){l.value=!0,a.value=!1,r("load",L.value),P()}function q(ie){ie.preventDefault(),l.value&&!a.value&&r("click",[ie,L.value])}const{t:ne}=eTe();return Pe([w,y,()=>s.node.loading],()=>(l.value=!1,a.value=!1,s.node.loading||w.value?(u.value=w.value,void(c.value="primary")):y.value?(u.value=y.value,void(c.value="fallback")):(u.value="",c.value="failed",void(a.value=!0))),{immediate:!0}),typeof window<"u"&&Pe([d,N],([ie,pe],Ne,te)=>{var be;if((be=S.value)==null||be.destroy(),S.value=null,!pe||T.value)return void(T.value=!0);if(!ie)return void(T.value=!1);let Q=!0;const ue=g(ie,{rootMargin:H.value,allowIdle:!1});S.value=ue,T.value=ue.isVisible.value,ue.whenVisible.then(()=>{Q&&S.value===ue&&(T.value=!0)}),te(()=>{Q=!1,ue.destroy(),S.value===ue&&(S.value=null)})},{immediate:!0}),Pe([O,l,a,L,()=>s.lazy,I],([ie,pe,Ne,te,be,Q])=>ie&&te&&!Ne&&Q?pe?(V(),void P()):be?(ae(),void P()):void(pe||Ne||ae()):(V(),void P()),{flush:"post",immediate:!0}),Hn(()=>{var ie;(ie=S.value)==null||ie.destroy(),S.value=null,(function(){const pe=x;pe&&(Z(),x="",p?.markSettled(pe))})()}),(ie,pe)=>{var Ne,te,be,Q,ue;return v(),E("span",{ref_key:"rootRef",ref:d,class:"image-node-container","data-markstream-viewport-pending":N.value&&!T.value?"true":void 0},[O.value?(v(),E("img",{key:0,src:z.value||void 0,alt:String((te=(Ne=s.node.alt)!=null?Ne:s.node.title)!=null?te:""),title:String((Q=(be=s.node.title)!=null?be:s.node.alt)!=null?Q:""),class:Fe(["image-node__img",{"is-loading":!M.value&&!l.value,"is-loaded":M.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:s.lazy?"lazy":void 0,fetchpriority:M.value?"high":void 0,decoding:M.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(ue=s.node.alt)!=null?ue:f(ne)("image.preview"),onError:Y,onLoad:oe,onClick:q},null,42,sTe)):X("",!0),e.node.loading&&!a.value?(v(),E("span",rTe,[s.usePlaceholder?Rn(ie.$slots,"placeholder",{key:0,node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[0]||(pe[0]=C("span",{class:"image-shimmer"},null,-1))],!0):(v(),E("span",lTe,D(e.node.raw),1))])):X("",!0),j.value&&!e.node.loading?(v(),E("span",aTe,[s.usePlaceholder?Rn(ie.$slots,"placeholder",{key:0,node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[1]||(pe[1]=C("span",{class:"image-shimmer"},null,-1))],!0):(v(),E("span",uTe,D(e.node.raw),1))])):X("",!0),R.value?(v(),E("span",cTe,[Rn(ie.$slots,"error",{node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[2]||(pe[2]=C("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[C("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),C("span",null,D(f(ne)("image.loadError")),1)],!0)])):X("",!0)],8,oTe)}}}),[["__scopeId","data-v-046e82ac"]]);yc.install=e=>{e.component(yc.__name,yc)};const dTe={key:2},Va=Xe({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamHtmlPolicy",void 0),o=hn("markstreamNestedRendererProps",void 0),s=F(()=>{var g;return(g=i?.value)!=null?g:"safe"}),r=F(()=>{var g,m;const k=(g=o?.value)!=null?g:{};return An(Mt({},k),{customId:(m=t.customId)!=null?m:k.customId,htmlPolicy:s.value})}),l=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1}),a=F(()=>t.components[String(t.node.type)]),u=F(()=>!!(a.value&&n.value[t.node.type]&&!Cg(String(t.node.type)))),c=F(()=>u.value?W7(t.node,s.value):void 0),d=F(()=>Array.isArray(t.node.children)&&t.node.children.length>0),h=F(()=>{var g;return String((g=t.node.content)!=null?g:"")}),p=F(()=>{var g,m;return String((m=(g=t.node.content)!=null?g:t.node.raw)!=null?m:"")});return(g,m)=>a.value&&u.value?(v(),ce(Oo(a.value),ni({key:0},c.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:de(()=>[d.value?(v(),ce(f(l),ni({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):h.value?(v(),ce(f(l),ni({key:1},r.value,{content:h.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):a.value?(v(),ce(Oo(a.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(v(),E("span",dTe,D(p.value),1)):X("",!0)}}),ME=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function fTe(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return An(Mt(Mt({},ME),n),{enabled:(t=n.enabled)==null||t})}return Mt({},ME)}function V7(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,i=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=i}function gP(e){var t,n;const i=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(i.length<3)return"";const o=i[0];if(o!=="`"&&o!=="~"||i[1]!==o||i[2]!==o)return"";let s=3;for(;i[s]===o;)s+=1;return i.slice(s).trim()}function IE(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function hTe(e){var t;return e.diff===!0||IE(e.language)||IE(gP(String((t=e.raw)!=null?t:"")))}function pTe(e,t,n){const i=(function(o){const s=gP(o);if(!s)return"";const r=s.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const a of l){const u=a.includes(":")?a.slice(a.indexOf(":")+1):a;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:i||t,caption:i?n?`Diff / ${t}`:t:""}}const gTe=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],mTe={key:0,translate:"no",class:"markstream-pre__diff-code"},vTe={class:"markstream-pre__diff-pane-content"},yTe={class:"markstream-pre__diff-number","aria-hidden":"true"},kTe={class:"markstream-pre__diff-content"},bTe={class:"markstream-pre__diff-content-inner"},ATe={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},CTe=["textContent"],wTe=["textContent"],jr=Xe({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(q,ne){const ie=String(q??"");return ne?ie:ie.replace(/\r\n$|\n$|\r$/,"")}const i=F(()=>{var q,ne,ie;const pe=String((ne=(q=t.node)==null?void 0:q.language)!=null?ne:"");return String((ie=String(pe).split(/\s+/g)[0])!=null?ie:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=F(()=>`language-${i.value}`),s=F(()=>{var q;return t.loading===!0||((q=t.node)==null?void 0:q.loading)===!0}),r=F(()=>{var q;return n((q=t.node)==null?void 0:q.code,s.value)});let l="",a=1;const u=F(()=>(function(q){let ne=0,ie=1;q.startsWith(l)&&(ne=l.length,ie=a,ne>0&&q[ne-1]==="\r"&&q[ne]===` -`&&ne++);for(let pe=ne;per.value.split(/\r\n|\n|\r/));let d=0,h="";const p=F(()=>{const q=u.value;q{var q;return t.showLineNumbers===!0&&((q=t.node)==null?void 0:q.diff)===!0}),m=F(()=>g.value&&t.diffInline===!0),k=F(()=>{const q=Number(t.reservedHeightPx);if(!Number.isFinite(q)||q<=0)return;const ne=`${Math.ceil(q)}px`;return s.value?{maxHeight:ne,overflow:"auto"}:{height:ne,minHeight:ne,maxHeight:ne,overflow:"auto"}}),w=["diff ","index ","--- ","+++ ","@@ "];function y(q){return String(q??"").trim().length===0}function b(q,ne="context",ie={}){const pe=y(q);return{code:q,kind:pe&&ne!=="hunk"&&ne!=="spacer"&&!ie.preserveBlankKind?"context":ne,empty:pe}}function A(q){const ne=n(q,s.value);return ne?ne.split(/\r\n|\n|\r/):[]}function T(q,ne){return!y(q[ne])||new.some(ie=>ne.startsWith(ie)))}function L(q,ne){return ne||!q.startsWith(" ")||q.startsWith(" ")?q:` ${q}`}function M(q,ne){const ie=q.length,pe=ne.length,Ne=[];let te=0;for(;te=te&&ue>=te&&q[Q]===ne[ue];)be.unshift({originalIndex:Q,modifiedIndex:ue}),Q--,ue--;const Ae=Q-te+1,se=ue-te+1;if(Ae<=0||se<=0||s.value||(Ae+1)*(se+1)>15e5)return Ne.concat(be);const re=se+1,G=new Uint32Array((Ae+1)*(se+1));for(let Ie=Ae-1;Ie>=0;Ie--)for(let Oe=se-1;Oe>=0;Oe--){const we=Ie*re+Oe;if(q[te+Ie]===ne[te+Oe])G[we]=G[(Ie+1)*re+Oe+1]+1;else{const Be=G[(Ie+1)*re+Oe],tt=G[Ie*re+Oe+1];G[we]=Be>=tt?Be:tt}}const le=[];let ge=0,ke=0;for(;ge=G[ge*re+ke+1]?ge++:ke++;return Ne.concat(le,be)}function N(q){var ne;const ie=(function(){var ue,Ae;const se=t.diffHideUnchangedRegions;if(se==null||se===!1)return null;const re=se===!0?{}:se;return re.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((ue=re.contextLineCount)!=null?ue:2)),minimumLineCount:Math.max(1,Math.floor((Ae=re.minimumLineCount)!=null?Ae:4))}})();if(!ie||q.length<1||q.length>2||q.length===2&&q[0].lines.length!==q[1].lines.length)return q;const pe=q[0].lines,Ne=(ne=q[1])==null?void 0:ne.lines,te=ue=>pe[ue].kind==="context"&&(Ne===void 0||Ne[ue].kind==="context"&&pe[ue].code===Ne[ue].code),be=[];let Q=0;for(;Q=ie.minimumLineCount){const se=ue+(ue===0?0:ie.contextLineCount),re=Ae-(Ae===pe.length?0:ie.contextLineCount);re-se>=ie.minimumLineCount&&be.push({start:se,end:re})}Q===ue&&Q++}return be.length?q.map((ue,Ae)=>{const se=[];let re=0;for(const G of be)se.push(...ue.lines.slice(re,G.start)),se.push({code:Ae===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${ue.key}-collapsed-${G.start}-${G.end}`,number:""}),re=G.end;return se.push(...ue.lines.slice(re)),An(Mt({},ue),{lines:se})}):q}const I=F(()=>{var q,ne,ie,pe;if(!g.value)return[];const Ne=(function(Ae){const se=Ae.some(G=>S(G)),re=Ae.some(G=>x(G));return se&&re||(function(){var G,le,ge,ke;if(i.value==="diff")return!0;const Ie=(ke=(ge=String((le=(G=t.node)==null?void 0:G.raw)!=null?le:"").split(/\r?\n/,1)[0])==null?void 0:ge.trim())!=null?ke:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(Ie)})()&&(se||re)})(c.value),te=(function(){var Ae,se;return((Ae=t.node)==null?void 0:Ae.originalCode)!=null||((se=t.node)==null?void 0:se.updatedCode)!=null})();if(m.value){const Ae=te?(function(se,re){const G=A(se),le=A(re),ge=M(G,le);if(ge.length>0){const tt=[];let ut=0,_t=0;for(const Ct of ge){for(;ut=Ie&&we>=Ie&&G[Oe]===le[we];)Be.unshift(An(Mt({},b(le[we])),{key:`inline-suffix-${we}`,number:we+1})),Oe--,we--;for(let tt=Ie;tt<=Oe;tt++)ke.push(An(Mt({},b(G[tt],"removed",{preserveBlankKind:T(G,tt)})),{key:`inline-removed-source-${tt}`,number:tt+1}));for(let tt=Ie;tt<=we;tt++)ke.push(An(Mt({},b(le[tt],"added",{preserveBlankKind:T(le,tt)})),{key:`inline-added-source-${tt}`,number:tt+1}));return ke.concat(Be)})((q=t.node)==null?void 0:q.originalCode,(ne=t.node)==null?void 0:ne.updatedCode):(function(se){const re=[];let G=1,le=1;const ge=_(se);for(const[ke,Ie]of se.entries())if(Ie.startsWith("@@")){const Oe=Ie.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);Oe&&(G=Number(Oe[1]),le=Number(Oe[2])),re.push(An(Mt({},b(Ie,"hunk")),{key:`inline-hunk-${ke}`,number:""}))}else if(S(Ie))re.push(An(Mt({},b(L(Ie.slice(1),ge),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${ke}`,number:G++}));else if(x(Ie))re.push(An(Mt({},b(L(Ie.slice(1),ge),"added",{preserveBlankKind:!0})),{key:`inline-added-${ke}`,number:le++}));else{const Oe=ge&&Ie.startsWith(" ")?Ie.slice(1):Ie;re.push(An(Mt({},b(Oe)),{key:`inline-context-${ke}`,number:le})),G++,le++}return re})(c.value);return N([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:Ae}])}if(!Ne&&te)return(function(Ae,se){const re=A(Ae),G=A(se),le=M(re,G),ge=[],ke=[];let Ie=0,Oe=0,we=0;const Be=(tt,ut)=>{const _t=Math.max(tt-Ie,ut-Oe);for(let Ct=0;Ct<_t;Ct++){const $t=Ie+Ct,Vt=Oe+Ct;ge.push($tAn(Mt({},Ae),{key:`original-${se}`,number:se+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:Q.map((Ae,se)=>An(Mt({},Ae),{key:`modified-${se}`,number:se+1}))}])}),z=F(()=>{var q,ne;if(t.showLineNumbers!==!0)return;let ie=g.value?1:u.value;if(g.value){ie=Math.max(ie,A((q=t.node)==null?void 0:q.originalCode).length,A((ne=t.node)==null?void 0:ne.updatedCode).length);for(const Ne of I.value)for(const te of Ne.lines)typeof te.number=="number"&&(ie=Math.max(ie,te.number))}const pe=`${Math.max(2,String(ie).length)}ch`;return{"--markstream-pre-line-number-width":pe,"--markstream-pre-diff-line-number-width":pe,"--markstream-code-padding-left":"calc(var(--markstream-pre-line-number-padding-left, 2ch) + var(--markstream-pre-line-number-width, 2ch) + var(--markstream-pre-line-number-padding-right, 1ch) + var(--markstream-pre-line-number-separator-width, 2px) + var(--markstream-pre-line-number-gap-to-code, 1ch))"}}),H=F(()=>I.value.some(q=>q.lines.some(ne=>ne.kind==="collapsed"))),O=F(()=>{const q=i.value;return q?`Code block: ${q}`:"Code block"}),R=K(null),j=K([]);let $=null,W=!1,P=null;function Z(q){const ne=Number.parseFloat(String(q??""));return Number.isFinite(ne)&&ne>0?ne:0}function ae(q,ne){var ie;if(!q)return ne;if(q.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const pe=q.querySelector(".markstream-pre__diff-content"),Ne=pe?.getBoundingClientRect(),te=(ie=Ne?.height)!=null?ie:0;return Math.max(ne,Math.ceil(te))}function V(){W||typeof window>"u"||($!=null&&window.cancelAnimationFrame($),$=window.requestAnimationFrame(()=>{$=null,W||(function(){var q,ne;$=null;const ie=R.value;if(!ie||!g.value||m.value||!ie.classList.contains("is-wrap"))return void(j.value.length&&(j.value=[]));const pe=(function(se){const re=window.getComputedStyle(se),G=Z(re.getPropertyValue("--markstream-pre-diff-line-height"));if(G>0)return G;const le=Z(re.lineHeight);return le>0?le:18})(ie),Ne=Array.from(ie.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),te=Array.from(ie.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),be=Math.max(Ne.length,te.length),Q=[];for(let se=0;se{const G=Ae[re];return G&&Math.abs(se.rowHeight-G.rowHeight)<=.5&&Math.abs(se.originalHeight-G.originalHeight)<=.5&&Math.abs(se.modifiedHeight-G.modifiedHeight)<=.5})||(j.value=Q)})()}))}function Y(q){P?.disconnect(),P=null,q&&g.value&&!m.value&&typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{V()}),P.observe(q))}function oe(q,ne){const ie=j.value[q];if(!ie)return;const pe=ne==="original"?ie.originalHeight:ie.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(ie.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(pe)}px`}}return Pe(R,q=>{Y(q),dt(()=>V())},{flush:"post"}),Pe([g,m,I],()=>{Y(R.value),dt(()=>V())},{flush:"post",immediate:!0}),Hn(()=>{W=!0,$!=null&&(window.cancelAnimationFrame($),$=null),P?.disconnect(),P=null}),(q,ne)=>(v(),E("pre",{ref_key:"preRef",ref:R,style:Kt([k.value,z.value]),class:Fe([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":g.value,"markstream-pre--diff-inline":m.value,"markstream-pre--diff-collapsed":H.value}]),"aria-busy":s.value,"aria-label":O.value,"data-language":i.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[g.value?(v(),E("code",mTe,[(v(!0),E(Ee,null,pt(I.value,ie=>(v(),E("span",{key:ie.key,class:Fe(["markstream-pre__diff-pane",ie.className])},[C("span",vTe,[(v(!0),E(Ee,null,pt(ie.lines,(pe,Ne)=>(v(),E("span",{key:pe.key,class:Fe(["markstream-pre__diff-line",[`markstream-pre__diff-line--${pe.kind}`,{"markstream-pre__diff-line--empty":pe.empty}]]),style:Kt(oe(Ne,ie.key))},[ne[0]||(ne[0]=C("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),C("span",yTe,D(pe.number),1),C("span",kTe,[C("span",bTe,D(pe.code),1)])],6))),128))])],2))),128))])):(v(),E(Ee,{key:1},[t.showLineNumbers?(v(),E("span",ATe,[C("span",{class:"markstream-pre__line-numbers-text",textContent:D(p.value)},null,8,CTe)])):X("",!0),C("code",{translate:"no",class:"markstream-pre__code",textContent:D(r.value)},null,8,wTe)],64))],14,gTe))}});jr.install=e=>{e.component(jr.__name,jr)};const Bo=Ci(Xe({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=r1(),i=hn("markstreamFade",void 0),o=hn("markstreamTextStreamState",void 0),s=hn("markstreamStreamVersion",void 0),r=F(()=>{const T=n.fade;return T===""||T===!0||T==="true"||T!==!1&&T!=="false"&&void 0}),l=F(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=F(()=>{var T;const S=(T=n["index-key"])!=null?T:n.indexKey;return S==null||S===""?"":String(S)}),u=K(t.node.content),c=K(""),d=K(0),h=K(t.node.content);let p;const g=K(null),m=K(null);let k="",w=null;function y(){p?.(),p=void 0}function b(){y(),c.value&&(u.value=u.value+c.value,c.value="")}Pe([u,g,m],function(){var T,S;const x=g.value;if(!x)return;const _=String((T=u.value)!=null?T:""),L=m.value;return w||(w=x.firstChild,k=(S=w?.data)!=null?S:""),_.startsWith(k)?!w&&_?(x.textContent=_,w=x.firstChild,void(k=_)):void(_.length>k.length&&L&&(L.appendChild(document.createTextNode(_.slice(k.length))),k=_)):(x.textContent=_,w=x.firstChild,L&&(L.textContent=""),void(k=_))},{immediate:!0}),Pe([()=>t.node.content,a,l],([T])=>{const S=String(T??""),x=a.value,_=YO({nextContent:S,persistedContent:x?o?.get(x):void 0,currentState:{settledContent:u.value,streamedDelta:c.value},typewriterEnabled:l.value});u.value=_.settledContent,c.value=_.streamedDelta,_.appended?(d.value+=1,(function(){if(!c.value||p||!s)return;const L=s.value;p=Pe(()=>s.value,M=>{M!==L&&b()},{flush:"sync"})})()):c.value||y(),x&&o?.set(x,S)},{immediate:!0}),Bc(y);const A=F(()=>d.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(T,S)=>(v(),E("span",{class:Fe([[e.node.center?"text-node-center":""],"text-node"])},[Wn(C("span",{ref_key:"settledTextEl",ref:g},D(h.value),513),[[Po,u.value!==""]]),Wn(C("span",{ref_key:"settledAppendsEl",ref:m},null,512),[[Po,u.value!==""]]),c.value?(v(),E("span",{key:0,class:Fe(["text-node-stream-delta",[A.value]]),onAnimationend:b},D(c.value),35)):X("",!0)],2))}}),[["__scopeId","data-v-fd79037c"]]);function Ip(e,t,n){return Xe({name:e,inheritAttrs:!1,setup(i,{attrs:o,slots:s}){var r,l;const a=K7(),u=q7(),c=U7(),d=typeof window<"u"&&((l=(r=os())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,h=K(typeof window>"u"||d||!c.value),p=ha(null);let g=null;function m(k){const w=k&&"$el"in k?k.$el:k;p.value=w instanceof HTMLElement?w:null}return typeof window<"u"&&Pe([p,c],([k,w],y,b)=>{if(g?.destroy(),g=null,!w||h.value)return void(h.value=!0);if(!k)return;let A=!0;const T=a(k,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});g=T,h.value=T.isVisible.value,T.whenVisible.then(()=>{A&&g===T&&(h.value=!0)}),b(()=>{A=!1,T.destroy(),g===T&&(g=null)})},{immediate:!0}),Hn(()=>{g?.destroy(),g=null}),()=>yn(h.value?t:n,An(Mt({},o),{ref:m}),s)}})}Bo.install=e=>{e.component(Bo.__name,Bo)};const gy=Xe({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var i,o,s,r,l,a,u;const c=N9(String((o=(i=n.node)==null?void 0:i.language)!=null?o:"")),d=lE[c]||(c?c.charAt(0).toUpperCase()+c.slice(1):lE[""]),h=hTe(n.node),p=pTe(String((r=(s=n.node)==null?void 0:s.raw)!=null?r:""),d,h),g=n.monacoOptions,m=h&&((l=n.estimatedDiffInline)!=null?l:V7(g??{},typeof window>"u"?0:window.innerWidth)),k=g?.diffAppearance,w=k==="dark"||k!=="light"&&n.isDark===!0,y=typeof g?.fontSize=="number"&&Number.isFinite(g.fontSize)&&g.fontSize>0?g.fontSize:12,b=typeof g?.lineHeight=="number"&&Number.isFinite(g.lineHeight)&&g.lineHeight>0?g.lineHeight:y===12?18:Math.max(12,Math.round(1.5*y)),A=typeof g?.tabSize=="number"&&Number.isFinite(g.tabSize)&&g.tabSize>0?g.tabSize:4,T=h?0:8,S=typeof((a=g?.padding)==null?void 0:a.top)=="number"&&Number.isFinite(g.padding.top)&&g.padding.top>=0?g.padding.top:T,x=typeof((u=g?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(g.padding.bottom)&&g.padding.bottom>=0?g.padding.bottom:T,_=typeof g?.fontFamily=="string"?g.fontFamily.trim():"",L=Mt(Mt({fontSize:`${y}px`,lineHeight:`${b}px`,tabSize:A,paddingTop:`${S}px`,paddingBottom:`${x}px`,"--markstream-pre-line-number-top":`${S}px`},h?{"--markstream-pre-diff-line-height":`${b}px`}:{}),_?{"--markstream-code-font-family":_}:{}),M=()=>yn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[yn("svg",{class:"action-icon",width:"14",height:"14"})]),N=n.isShowPreview!==!1&&(c==="html"||c==="svg"),I=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||N&&n.showPreviewButton!==!1,z=O=>{if(O!=null)return typeof O=="number"?`${O}px`:String(O)},H=Mt(Mt(Mt({"--markstream-code-layout-character-width":"1ch"},z(n.minWidth)?{minWidth:z(n.minWidth)}:{}),z(n.maxWidth)?{maxWidth:z(n.maxWidth)}:{}),h?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--markstream-code-fallback-bg, var(--code-bg, #fff))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return yn("div",An(Mt({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":w,"is-diff":h,"is-plain-text":c===""||c==="plaintext"||c==="text"},t.class],style:[H,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:yn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[yn("div",{class:"code-header-main",style:{minWidth:0,flex:"1 1 auto",display:"flex",alignItems:"center",gap:"var(--ms-gap-header-main, 0.625rem)",overflow:"hidden"}},[yn("span",{class:"icon-slot h-4 w-4 flex-shrink-0","aria-hidden":"true",style:{display:"inline-flex",width:"1rem",height:"1rem",flex:"0 0 auto"}}),yn("div",{class:"code-header-copy",style:{minWidth:0,display:"grid",gap:"2px"}},[yn("div",{class:"code-header-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--ms-text-label, 0.75rem)",fontWeight:"500",color:"var(--code-action-fg)"}},p.title),p.caption?yn("div",{class:"code-header-caption",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.75rem",color:"var(--code-line-number)"}},p.caption):null])]),yn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[h?yn("div",{class:"code-diff-stats","aria-hidden":"true"},[yn("span",{class:"code-diff-stat removed"},"-0"),yn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:M(),n.showCollapseButton===!1?null:M(),I?yn("div",{class:"relative"},[M()]):null])]),yn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[yn(jr,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:h?void 0:n.estimatedContentHeightPx,diffInline:m,diffHideUnchangedRegions:h?fTe(g?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:L,"data-markstream-code-loading":"1"})]),yn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[yn("div",{class:"loading-skeleton"},[yn("div",{class:"skeleton-line"}),yn("div",{class:"skeleton-line"}),yn("div",{class:"skeleton-line short"})])]),yn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),vk=Ip("ViewportDeferredCodeBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./CodeBlockNode-CJGhujJE.js"),__vite__mapDeps([6,7]))).default}catch(e){return console.warn('[markstream-vue] Failed to load the enhanced CodeBlockNode chunk; falling back to preformatted code rendering. Enhanced code blocks require the optional "stream-diffs" peer (or "stream-monaco" as a fallback).',e),jr}}),loadingComponent:gy,delay:0,suspensible:!1}),gy),ma=ia(()=>Ji(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,i,o,s;return yn(Bo,An(Mt({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield nP(),(yield Fo(()=>import("./index7-DnGHoBRb.js"),[])).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,i,o,s;return yn(Bo,An(Mt({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))}})),mP=ia(()=>Ji(null,null,function*(){try{return yield nP(),(yield Fo(()=>import("./index6-CBDuyf4L.js"),[])).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,i,o;return yn(Bo,An(Mt({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(i=e.node.content)!=null?i:""}$$`}}))}})),Ar=Ci(Xe({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(v(),E("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=i=>t.$emit("click",i,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=i=>t.$emit("mouseEnter",i,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=i=>t.$emit("mouseLeave",i,e.node.id,e.messageId,e.threadId))},D(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Ar.install=e=>{e.component(Ar.__name,Ar)};const xTe={class:"superscript-node"},Kr=Ci(Xe({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,footnote_reference:fl,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,emoji:Ur,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("sup",xTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"superscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);Kr.install=e=>{e.component(Kr.__name,Kr)};const STe={class:"subscript-node"},Vr=Ci(Xe({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,footnote_reference:fl,strikethrough:wr,highlight:pl,insert:Zr,superscript:Kr,emoji:Ur,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("sub",STe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"subscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);Vr.install=e=>{e.component(Vr.__name,Vr)};const _Te={class:"strong-node"},Cr=Ci(Xe({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("strong",_Te,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"strong"}-${l}`,components:i.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const MTe={class:"strikethrough-node"},wr=Ci(Xe({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("del",MTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"strikethrough"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);wr.install=e=>{e.component(wr.__name,wr)};const ITe=["href","title","aria-label","aria-hidden","target","rel"],ETe=["aria-hidden"],TTe={class:"link-text-wrapper relative inline-flex"},LTe={class:"leading-[normal] link-text"},xr=Ci(Xe({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=hn("markstreamShowTooltips",void 0),i=F(()=>{const w=n?.value;return typeof w=="boolean"?w:t.showTooltip}),o=F(()=>{var w,y,b,A,T;const S=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",x=(w=t.animationOpacity)!=null?w:.35,_=Math.max(.12,Math.min(.5*x,x)),L={"--underline-height":`${(y=t.underlineHeight)!=null?y:2}px`,"--underline-bottom":S,"--underline-opacity":String(x),"--underline-rest-opacity":String(_),"--underline-duration":`${(b=t.animationDuration)!=null?b:1.6}s`,"--underline-timing":(A=t.animationTiming)!=null?A:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(T=t.animationIteration)!=null?T:"infinite"};return t.color&&(L["--link-color"]=t.color),L}),s=ss(()=>t.customId),r=F(()=>Mt({text:Bo,strong:Cr,strikethrough:wr,emphasis:Sr,image:yc,html_inline:hl,inline_code:rr},s.value)),l=r1(),a=F(()=>{var w,y;const b=(w=t.node)==null?void 0:w.attrs;if(!b||typeof b!="object")return{};const A={};if(Array.isArray(b))for(const T of b)Array.isArray(T)&&T[0]&&(A[String(T[0])]=String((y=T[1])!=null?y:""));else for(const[T,S]of Object.entries(b))T&&S!=null&&S!==!1&&(A[T]=S===!0?"":String(S));return bE(A,"safe","a")}),u=F(()=>Mt(Mt({},l),a.value)),c=F(()=>{var w,y;return bE({href:String((y=(w=t.node)==null?void 0:w.href)!=null?y:"")},"safe","a").href}),d=F(()=>{if(!c.value)return;const w=u.value.target;return(typeof w=="string"?w.trim():String(w??"").trim())||(gwe(c.value)?"_blank":void 0)}),h=F(()=>{var w;return String((w=d.value)!=null?w:"").trim().toLowerCase()==="_blank"}),p=F(()=>{if(!c.value)return;const w=u.value.rel,y=new Set((typeof w=="string"?w:String(w??"")).split(/\s+/).filter(Boolean)),b=new Set(Array.from(y).filter(A=>A.toLowerCase()!=="opener"));return h.value&&(b.add("noopener"),b.add("noreferrer")),b.size>0?Array.from(b).join(" "):void 0}),g=F(()=>{const w=Mt({},u.value);return delete w.title,delete w.href,delete w.target,delete w.rel,w});function m(){i.value&&YEe()}const k=F(()=>{var w,y;const b=(w=t.node)==null?void 0:w.title;return typeof b=="string"&&b.trim().length>0?b:String((y=c.value)!=null?y:"")});return(w,y)=>{var b,A;return e.node.loading?(v(),E("span",ni({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},f(l),{style:o.value}),[C("span",TTe,[C("span",LTe,[U(f(Bo),{class:"leading-[normal] link-text",node:{type:"text",content:String((b=e.node.text)!=null?b:""),raw:String((A=e.node.text)!=null?A:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),y[1]||(y[1]=C("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,ETe)):(v(),E("a",ni({key:0,class:"link-node",href:c.value,title:i.value?"":k.value,"aria-label":`Link: ${k.value}`,"aria-hidden":e.node.loading?"true":"false",target:d.value,rel:p.value},g.value,{style:o.value,onMouseenter:y[0]||(y[0]=T=>(function(S){var x,_,L,M;if(!i.value)return;const N=S,I=N?.clientX!=null&&N?.clientY!=null?{x:N.clientX,y:N.clientY}:void 0,z=((x=t.node)==null?void 0:x.title)||((_=c.value)!=null&&_.includes("xn--")&&((M=(L=t.node)==null?void 0:L.text)!=null&&M.includes("://"))?t.node.text:c.value)||"";QEe(S.currentTarget,z,"top",!1,I)})(T)),onMouseleave:m}),[(v(!0),E(Ee,null,pt(e.node.children,(T,S)=>(v(),ce(f(Va),{key:`${e.indexKey||"emphasis"}-${S}`,components:r.value,node:T,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${S}`},null,8,["components","node","custom-id","index-key"]))),128))],16,ITe))}}}),[["__scopeId","data-v-367e6ca4"]]);xr.install=e=>{e.component(xr.__name,xr)};const NTe={class:"insert-node"},Zr=Ci(Xe({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("ins",NTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"insert"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);Zr.install=e=>{e.component(Zr.__name,Zr)};const FTe={class:"highlight-node"},pl=Ci(Xe({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,strikethrough:wr,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("mark",FTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"highlight"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);pl.install=e=>{e.component(pl.__name,pl)};const DTe={class:"emphasis-node"},Sr=Ci(Xe({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("em",DTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"emphasis"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Sr.install=e=>{e.component(Sr.__name,Sr)};const BTe={class:"hard-break"},kc=Ci(Xe({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("br",BTe))}),[["__scopeId","data-v-50c58f70"]]);kc.install=e=>{e.component(kc.__name,kc)};const j0=Xe({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=St({checkbox:dl,checkbox_input:dl,emoji:Ur,emphasis:Sr,hardbreak:kc,highlight:pl,inline_code:rr,insert:Zr,link:xr,reference:Ar,strikethrough:wr,strong:Cr,subscript:Vr,superscript:Kr,text:Bo}),i=ss(()=>t.customId),o=F(()=>{const s=i.value;return Object.keys(s).length>0?Mt(Mt({},n),s):n});return(s,r)=>(v(!0),E(Ee,null,pt(e.nodes,(l,a)=>(v(),ce(f(Va),{key:a,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${a}`},null,8,["components","node","custom-id","index-key"]))),128))}});function t5(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(t5)}function my(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(t5))return e;if(!t||e.length!==1)return null;const i=e[0];if(i?.type!=="paragraph"||!Array.isArray(i.children))return null;const o=i.children;return(n||o.length>0)&&o.every(t5)?o:null}function hf(e){var t,n;if(!e?.length)return null;let i="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;i+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return i}const $Te=["cite"],RTe={key:0,dir:"auto",class:"paragraph-node"},zTe=["custom-id"],Rv=Ci(Xe({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>!!n.value.paragraph),o=F(()=>!!n.value.text),s=F(()=>my(t.node.children,!i.value)),r=F(()=>t.fade!==!1||o.value?null:hf(s.value));return oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade)),(l,a)=>(v(),E("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[s.value?(v(),E("p",RTe,[r.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(r.value),9,zTe)):(v(),ce(f(j0),{key:1,nodes:s.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(v(),ce(f(Gr),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:a[0]||(a[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,$Te))}}),[["__scopeId","data-v-abfecebc"]]);Rv.install=e=>{e.component(Rv.__name,Rv)};const OTe={class:"definition-list"},PTe={class:"definition-term"},jTe={class:"definition-desc"},zv=Ci(Xe({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(v(),E("dl",OTe,[(v(!0),E(Ee,null,pt(t.node.items,(o,s)=>(v(),E(Ee,{key:s},[C("dt",PTe,[U(f(Gr),{"index-key":`definition-term-${t.indexKey}-${s}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),C("dd",jTe,[U(f(Gr),{"index-key":`definition-desc-${t.indexKey}-${s}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[1]||(i[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);zv.install=e=>{e.component(zv.__name,zv)};const HTe=["href","title"],t0=Ci(Xe({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(i){var o;if(i.preventDefault(),typeof document>"u")return;const s=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(s);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(i,o)=>(v(),E("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,HTe))}}),[["__scopeId","data-v-e1eb37b6"]]);t0.install=e=>{e.component(t0.__name,t0)};const WTe=["id"],qTe={class:"flex-1"},Ov=Xe({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(v(),E("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[C("div",qTe,[U(f(Gr),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,WTe))}});Ov.install=e=>{e.component(Ov.__name,Ov)};const UTe=["custom-id"],n5=Ci(Xe({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamFade",void 0),o=F(()=>i?.value!==!1||n.value.text?null:hf(t.node.children)),s=F(()=>Mt({text:Bo,inline_code:rr,link:xr,image:yc,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,checkbox:dl,checkbox_input:dl,footnote_reference:fl,hardbreak:kc,math_inline:ma,reference:Ar},n.value));return(r,l)=>(v(),ce(Oo(`h${e.node.level}`),ni({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:de(()=>[o.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(o.value),9,UTe)):(v(!0),E(Ee,{key:1},pt(e.node.children,(a,u)=>(v(),ce(f(Va),{key:u,components:s.value,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),B9=n5;B9.install=e=>{e.component(n5.__name,n5)};const KTe={key:0,dir:"auto",class:"paragraph-node"},VTe=["custom-id"],ZTe={dir:"auto",class:"paragraph-node"},GTe=["custom-id"],Ph=Ci(Xe({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=F(()=>{var p;return(p=t.node)!=null?p:t.item}),i=ss(()=>t.customId),o=F(()=>!!i.value.paragraph),s=F(()=>!!i.value.text),r=F(()=>{var p;return my((p=n.value)==null?void 0:p.children,!o.value)}),l=F(()=>{var p;if(o.value)return null;const g=(p=n.value)==null?void 0:p.children;if(!Array.isArray(g)||g.length<2)return null;const m=g[0];if(m?.type!=="paragraph"||!Array.isArray(m.children))return null;const k=g.slice(1);if(!k.every(y=>y?.type==="list"))return null;const w=my([m]);return w?{paragraphChildren:w,nestedLists:k}:null});function a(){return t.fade===!1&&!s.value}const u=F(()=>a()?hf(r.value):null),c=F(()=>{var p;return a()?hf((p=l.value)==null?void 0:p.paragraphChildren):null}),d=Object.freeze({}),h=F(()=>{const{value:p}=t;return typeof p=="number"&&Number.isFinite(p)?{value:p}:d});return oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade)),(p,g)=>{var m,k;return v(),E("li",ni({class:"list-item",dir:"auto"},h.value),[r.value?(v(),E("p",KTe,[u.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(u.value),9,VTe)):(v(),ce(f(j0),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(v(),E(Ee,{key:1},[C("p",ZTe,[c.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(c.value),9,GTe)):(v(),ce(f(j0),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(v(!0),E(Ee,null,pt(l.value.nestedLists,(w,y)=>(v(),ce(f(Gr),{key:y,nodes:[w],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${y}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:g[0]||(g[0]=b=>p.$emit("copy",b))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(v(),ce(f(Gr),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(k=(m=n.value)==null?void 0:m.children)!=null?k:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:g[1]||(g[1]=w=>p.$emit("copy",w))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);Ph.install=e=>{e.component(Ph.__name,Ph)};const jh=Ci(Xe({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=ss(()=>e.customId),n=F(()=>t.value.list_item||Ph);return(i,o)=>(v(),ce(Oo(e.node.ordered?"ol":"ul"),{class:Fe(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:de(()=>[(v(!0),E(Ee,null,pt(e.node.items,(s,r)=>{var l;return v(),ce(Oo(n.value),ni({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:s,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=a=>i.$emit("copy",a))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);jh.install=e=>{e.component(jh.__name,jh)};const QTe={key:2,class:"html-block-node__raw"},YTe=["innerHTML"],JTe={key:1,class:"html-block-node__placeholder"},n0=Ci(Xe({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=hn("markstreamHtmlPolicy",void 0),i=hn("markstreamNestedRendererProps",void 0),o=F(()=>{var I,z;return(z=(I=t.htmlPolicy)!=null?I:n?.value)!=null?z:"safe"}),s=F(()=>{var I,z;const H=(I=i?.value)!=null?I:{};return An(Mt({},H),{customId:(z=t.customId)!=null?z:H.customId,htmlPolicy:o.value})}),r=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1}),l=F(()=>{const I=Fv(t.node.attrs,o.value);if(!I)return;const z=Yp(I);return Object.keys(z).length>0?z:void 0}),a=F(()=>{const I=String(t.node.tag||"").trim(),z=Fv(t.node.attrs,o.value,I);if(!z)return;const H=Yp(z);return Object.keys(H).length>0?H:void 0}),u=ss(()=>t.customId),c=Xe({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),d=K(null),h=K(typeof window>"u"),p=K(t.node.content),g=F(()=>Array.isArray(t.node.children)?t.node.children:[]),m=F(()=>String(t.node.tag||"div")),k=F(()=>{var I;if(m.value.trim().toLowerCase()!=="details"||(I=t.node.attrs)!=null&&I.some(([H])=>String(H).toLowerCase()==="open"))return null;const z=g.value[0];return z?.type==="html_block"&&String(z.tag||"").toLowerCase()==="summary"?z:null}),w=F(()=>{var I;return hf((I=k.value)==null?void 0:I.children)}),y=F(()=>{const I=k.value;if(!I)return;const z=Fv(I.attrs,o.value,"summary");if(!z)return;const H=Yp(z);return Object.keys(H).length>0?H:void 0}),b=F(()=>w.value==null?g.value:g.value.slice(1)),A=F(()=>{const I=m.value.trim().toLowerCase();return $z.has(I)||z7(I,o.value)}),T=F(()=>g.value.length>0&&!!t.node.tag&&!A.value),S=F(()=>{var I,z,H;if(T.value)return{mode:"structured"};if(!h.value)return{mode:"html",content:(I=p.value)!=null?I:""};const O=(z=p.value)!=null?z:t.node.content;if(!O)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:Oh(O,o.value)};if(t.node.loading){const j=py(O,u.value,o.value);return j===null?{mode:"text",content:(H=t.node.raw)!=null?H:O}:{mode:"dynamic",nodes:j}}if(!uP(O,u.value))return{mode:"html",content:Oh(O,o.value)};const R=py(O,u.value,o.value);return R===null?{mode:"html",content:Oh(O,o.value)}:{mode:"dynamic",nodes:R}}),x=K7(),_=q7(),L=U7(),M=ha(null),N=!!t.node.loading;return typeof window<"u"?(Pe([()=>d.value,()=>_?.value.heavyBlockMargin,()=>_?.value.rootMargin],([I],z,H)=>{var O,R,j,$;if((R=(O=M.value)==null?void 0:O.destroy)==null||R.call(O),M.value=null,!N)return h.value=!0,void(p.value=t.node.content);if(!I)return void(h.value=!1);let W=!0;const P=($=(j=_?.value.heavyBlockMargin)!=null?j:_?.value.rootMargin)!=null?$:ff,Z=x(I,{rootMargin:P,allowIdle:!L.value});M.value=Z,h.value=h.value||Z.isVisible.value,Z.whenVisible.then(()=>{W&&M.value===Z&&(h.value=!0)}),H(()=>{W=!1,Z.destroy(),M.value===Z&&(M.value=null)})},{immediate:!0}),Pe(()=>t.node.content,I=>{N&&!h.value||(p.value=I)})):h.value=!0,Hn(()=>{var I,z;(z=(I=M.value)==null?void 0:I.destroy)==null||z.call(I),M.value=null}),(I,z)=>(v(),ce(Oo(T.value?m.value:"div"),ni({ref_key:"htmlRef",ref:d,class:"html-block-node","data-markstream-viewport-pending":f(L)&&!h.value?"true":void 0},T.value?a.value:void 0),{default:de(()=>[h.value?(v(),E(Ee,{key:0},[S.value.mode==="structured"?(v(),E(Ee,{key:0},[w.value!==null?(v(),E(Ee,{key:0},[C("summary",RW(eF(y.value)),D(w.value),17),b.value.length?(v(),ce(f(r),ni({key:0},s.value,{nodes:b.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):X("",!0)],64)):(v(),ce(f(r),ni({key:1},s.value,{nodes:g.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):S.value.mode==="dynamic"?(v(),ce(f(c),{key:1,nodes:S.value.nodes},null,8,["nodes"])):S.value.mode==="text"?(v(),E("pre",QTe,D(S.value.content),1)):(v(),E("div",ni({key:3},l.value,{innerHTML:S.value.content}),null,16,YTe))],64)):(v(),E("div",JTe,[Rn(I.$slots,"placeholder",{node:e.node},()=>[z[0]||(z[0]=C("span",{class:"html-block-node__placeholder-bar"},null,-1)),z[1]||(z[1]=C("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),z[2]||(z[2]=C("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);n0.install=e=>{e.component(n0.__name,n0)};const XTe={dir:"auto",class:"paragraph-node"},eLe=["custom-id"],Jd=Ci(Xe({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamHtmlPolicy",void 0),o=hn("markstreamFade",void 0),s=hn("markstreamParseOptions",void 0),r=hn("markstreamCustomMarkdownIt",void 0),l=hn("markstreamNestedRendererProps",void 0),a=F(()=>{var _;return(_=i?.value)!=null?_:"safe"}),u=F(()=>{var _;return(_=t.parseOptions)!=null?_:s?.value}),c=F(()=>{var _;return(_=t.customMarkdownIt)!=null?_:r?.value}),d=F(()=>{var _,L;return(L=t.customHtmlTags)!=null?L:(_=l?.value)==null?void 0:_.customHtmlTags}),h=F(()=>{var _,L;const M=(_=l?.value)!=null?_:{};return An(Mt({},M),{customId:(L=t.customId)!=null?L:M.customId,customHtmlTags:d.value,parseOptions:u.value,customMarkdownIt:c.value,htmlPolicy:a.value})}),p=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1});function g(_){var L;return _.type==="text"&&String((L=_.content)!=null?L:"").trim()===""}const m=F(()=>t.node.children.filter(_=>!g(_))),k=F(()=>m.value.length>0&&m.value.every(_=>_.type==="image"||(function(L){var M;const N=(function(I){return I.type==="link"&&Array.isArray(I.children)?I.children.filter(z=>!g(z)):[]})(L);return N.length===1&&((M=N[0])==null?void 0:M.type)==="image"})(_))),w=F(()=>new Set(wf(d.value))),y=F(()=>{if(!k.value||m.value.length<=1)return t.node.children;const _=[];for(let L=0;L0,I=t.node.children.slice(L+1).some(z=>!g(z));N&&I&&_.push(An(Mt({},M),{content:" ",raw:" "}))}return _}),b=F(()=>o?.value===!1&&!n.value.text),A=F(()=>b.value?hf(y.value):null);function T(_,L){return{node:_,"index-key":`${t.indexKey}-${L}`,"custom-id":t.customId,"custom-html-tags":d.value}}const S=F(()=>Mt({inline_code:rr,image:yc,link:xr,hardbreak:kc,emphasis:Sr,strong:Cr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,html_inline:hl,html_block:n0,emoji:Ur,checkbox:dl,math_inline:ma,checkbox_input:dl,reference:Ar,footnote_anchor:t0,footnote_reference:fl,text:Bo},n.value)),x=F(()=>y.value.map((_,L)=>{var M;const N=(function(I){var z,H,O,R;if(I.type==="html_block"||I.type==="html_inline"){const j=String((z=I.tag)!=null?z:"").trim().toLowerCase()||jz(I.content);if(j&&!w.value.has(j)&&Hz((H=I.content)!=null?H:I.raw,j)){const $=String((R=(O=I.content)!=null?O:I.raw)!=null?R:"");return{child:{type:"text",content:$,raw:$},component:Bo,isCustomComponent:!1}}}return{child:I,component:S.value[I.type],isCustomComponent:!!(n.value[I.type]&&!Cg(String(I.type)))}})(_);return An(Mt({},N),{index:L,key:`${t.indexKey||"paragraph"}-${L}`,customAttrs:N.isCustomComponent?W7(N.child,a.value):void 0,hasSlotChildren:Array.isArray(N.child.children)&&N.child.children.length>0,slotContent:String((M=N.child.content)!=null?M:""),originalChild:_})}));return(_,L)=>(v(),E("p",XTe,[A.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(A.value),9,eLe)):(v(!0),E(Ee,{key:1},pt(x.value,M=>{return v(),E(Ee,{key:M.key},[k.value&&g(M.originalChild)?(v(),E(Ee,{key:0},[$e(D((N=M.originalChild,String((I=N.content)!=null?I:""))),1)],64)):M.isCustomComponent?(v(),ce(Oo(M.component),ni({key:1,ref_for:!0},M.customAttrs,{node:M.child,loading:M.child.loading,"index-key":M.key,"custom-id":t.customId,"custom-html-tags":d.value,"is-dark":h.value.isDark}),{default:de(()=>[M.hasSlotChildren?(v(),ce(f(p),ni({key:0,ref_for:!0},h.value,{nodes:M.child.children,"index-key":M.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):M.slotContent?(v(),ce(f(p),ni({key:1,ref_for:!0},h.value,{content:M.slotContent,final:!M.child.loading,"index-key":`${M.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(v(),ce(Oo(M.component),ni({key:2,ref_for:!0},T(M.child,M.index)),null,16))],64);var N,I}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Jd.install=e=>{e.component(Jd.__name,Jd)};const tLe={class:"table-node-wrapper"},nLe=["aria-busy"],iLe={key:0},oLe=["custom-id"],sLe=["aria-label","onPointerdown"],rLe=["custom-id"],lLe={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},i0=Ci(Xe({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=F(()=>{var w;return(w=t.node.loading)!=null&&w}),i=F(()=>{var w;return(w=t.node.rows)!=null?w:[]}),o=K(null),s=K([]);let r=null;const l=F(()=>t.node.header.cells.length),a=F(()=>s.value.some(w=>Number.isFinite(w)&&w>0)),u=F(()=>a.value?s.value.map(w=>w>0?{width:`${w}px`}:void 0):[]);oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade));const c=ss(()=>t.customId),d=F(()=>!!c.value.text),h=F(()=>!!c.value.paragraph),p=new WeakMap;function g(w){const y=t.fade===!1&&!d.value,b=!h.value,A=p.get(w);if(A?.children===w.children&&A.textFastPath===y&&A.paragraphFastPath===b)return A.info;const T=my(w.children,b,!0),S={simpleChildren:T,plainText:T&&y?hf(T):null};return p.set(w,{children:w.children,textFastPath:y,paragraphFastPath:b,info:S}),S}function m(w){if(!r)return;w.preventDefault();const y=r.startWidth+r.nextStartWidth,b=Math.min(48,Math.floor(y/2)),A=Math.max(b,Math.min(y-b,Math.round(r.startWidth+w.clientX-r.startX))),T=[...r.widths];T[r.index]=A,T[r.index+1]=y-A,s.value=T}function k(){r&&(window.removeEventListener("pointermove",m),window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",k),r=null)}return Pe(l,()=>{k(),s.value=[]}),Hn(k),(w,y)=>(v(),E("div",tLe,[C("table",{ref_key:"tableRef",ref:o,class:Fe(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[a.value?(v(),E("colgroup",iLe,[(v(!0),E(Ee,null,pt(e.node.header.cells,(b,A)=>(v(),E("col",{key:A,style:Kt(u.value[A])},null,4))),128))])):X("",!0),C("thead",null,[C("tr",null,[(v(!0),E(Ee,null,pt(e.node.header.cells,(b,A)=>(v(),E("th",{key:A,dir:"auto",class:Fe([b.align==="right"?"text-right":b.align==="center"?"text-center":"text-left"])},[g(b).plainText!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(g(b).plainText),9,oLe)):g(b).simpleChildren?(v(),ce(f(j0),{key:1,nodes:g(b).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${A}`},null,8,["nodes","custom-id","index-key"])):(v(),ce(f(Gr),{key:2,nodes:b.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:y[0]||(y[0]=T=>w.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),A(function(S,x){if(x.button!==0)return;const _=(function(){var N;const I=(N=o.value)==null?void 0:N.querySelectorAll("thead th");return Array.from(I??[],z=>Math.round(z.getBoundingClientRect().width))})(),L=_[S],M=_[S+1];L&&M&&(x.preventDefault(),r={index:S,startX:x.clientX,startWidth:L,nextStartWidth:M,widths:_},s.value=_,window.addEventListener("pointermove",m),window.addEventListener("pointerup",k),window.addEventListener("pointercancel",k))})(A,T)},null,40,sLe)):X("",!0)],2))),128))])]),C("tbody",null,[(v(!0),E(Ee,null,pt(i.value,(b,A)=>(v(),E("tr",{key:A},[(v(!0),E(Ee,null,pt(b.cells,(T,S)=>(v(),E("td",{key:S,class:Fe([T.align==="right"?"text-right":T.align==="center"?"text-center":"text-left"]),dir:"auto"},[g(T).plainText!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(g(T).plainText),9,rLe)):g(T).simpleChildren?(v(),ce(f(j0),{key:1,nodes:g(T).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${A}-${S}`},null,8,["nodes","custom-id","index-key"])):(v(),ce(f(Gr),{key:2,nodes:T.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:y[1]||(y[1]=x=>w.$emit("copy",x))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,nLe),U(fo,{name:"table-node-fade"},{default:de(()=>[n.value?(v(),E("div",lLe,[Rn(w.$slots,"loading",{isLoading:n.value},()=>[y[2]||(y[2]=C("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),y[3]||(y[3]=C("span",{class:"sr-only"},"Loading",-1))],!0)])):X("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);i0.install=e=>{e.component(i0.__name,i0)};const aLe={class:"hr-node"},Pv=Ci({},[["render",function(e,t){return v(),E("hr",aLe)}],["__scopeId","data-v-39b2349c"]]);Pv.install=e=>{e.component(Pv.__name,Pv)};const uLe={class:"unknown-node"},i5=Xe({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(v(),E("div",uLe,D(e.node.raw),1))}),jv=Ci(Xe({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=F(()=>`vmr-container vmr-container-${t.node.name}`),i=ss(()=>t.customId),o=F(()=>Mt({text:Bo,paragraph:Jd,heading:B9,inline_code:rr,link:xr,image:yc,strong:Cr,emphasis:Sr,strikethrough:wr,insert:Zr,subscript:Vr,superscript:Kr,checkbox:dl,checkbox_input:dl,hardbreak:kc,math_inline:ma,reference:Ar,list:jh,math_block:mP,table:i0},i.value));return(s,r)=>(v(),E("div",ni({class:n.value},e.node.attrs),[(v(!0),E(Ee,null,pt(e.node.children,(l,a)=>{return v(),ce(Oo((u=l.type,o.value[u]||i5)),{key:`${e.indexKey||"vmr-container"}-${a}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${a}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);jv.install=e=>{e.component(jv.__name,jv)};const cLe=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],EE=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function dLe(e){if(e<=255)return cLe[e];let t=0,n=EE.length-1;for(;t<=n;){const i=t+n>>1,o=EE[i];if(eo[1]))return o[2];t=i+1}}return"L"}const fLe=/[ \t\n\r\f]+/g,hLe=/[\t\n\r\f]| {2,}|^ | $/;let yk=null;const pLe=new RegExp("\\p{Script=Arabic}","u"),Fc=new RegExp("\\p{M}","u"),Z7=new RegExp("\\p{Nd}","u");function TE(e){return pLe.test(e)}function LE(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Ba(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&i<=57343){if(LE(i-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(LE(n))return!0}}return!1}const gLe=new Set([" "," ","⁠","\uFEFF"]),mLe=new Set(["-","‐","–","—"]);function vP(e,t){return!((function(n){const i=o0(n);return i!==null&&gLe.has(i)})(e)||t&&((function(n){const i=o0(n);return i!==null&&(G7.has(i)||pf.has(i))})(e)||(function(n){const i=o0(n);return i!==null&&mLe.has(i)})(e)))}const G7=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),$9=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),Q7=new Set(["'","’"]),pf=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),vLe=new Set([":",".","،","؛"]),yLe=new Set(["၏"]),kLe=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function bLe(e){if(Y7(e))return!0;let t=!1;for(const n of e)if(pf.has(n)||yy(n))t=!0;else if(!t||!Fc.test(n))return!1;return t}function ALe(e){for(const t of e)if(!G7.has(t)&&!pf.has(t))return!1;return e.length>0}function CLe(e){if(Y7(e))return!0;for(const t of e)if(!($9.has(t)||Q7.has(t)||Fc.test(t)||yy(t)))return!1;return e.length>0}function Y7(e){let t=!1;for(const n of e)if(n!=="\\"&&!Fc.test(n)){if(!($9.has(n)||pf.has(n)||Q7.has(n)))return!1;t=!0}return t}function vy(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const i=e.charCodeAt(n);if(i<56320||i>57343)return n;const o=n-1;if(o<0)return n;const s=e.charCodeAt(o);return s>=55296&&s<=56319?o:n}function o0(e){if(e.length===0)return null;const t=vy(e,e.length);return e.slice(t)}const wLe=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function yy(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,i){for(let o=0;o=i[o]&&n<=i[o+1])return!0;return!1})(t,wLe)}function xLe(e){const t=(function(n){for(const i of n)if(!Fc.test(i))return i;return null})(e);return t!==null&&Z7.test(t)}function SLe(e){const t=Array.from(e);let n=t.length;for(;n>0;){const i=t[n-1];if(Fc.test(i))n--;else{if(!$9.has(i)&&!Q7.has(i))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function _Le(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function NE(e,t,n,i){const o=t[i],s=e[i];if(o==null)return s;const r=n[i];if(s.length===r)return s;const l=o.repeat(r);return e[i]=l,l}function FE(e,t){return e&&t!==null&&vLe.has(t)}function MLe(e){const t=o0(e);return t!==null&&yLe.has(t)}function ILe(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function o5(e){let t=e.length;for(;t>0;){const n=vy(e,t),i=e.slice(n,t);if(kLe.has(i))return!0;if(!pf.has(i))return!1;t=n}return!1}function ELe(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===` -`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const TLe=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Gl(e){return e.length===1?e[0]:e.join("")}function LLe(e,t){const n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),Gl(n)}function NLe(e,t,n,i){if(!TLe.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let s=null,r=[],l=n,a=!1,u=0;for(const c of e){const d=ELe(c,i),h=d==="text"&&t;s===null||d!==s||h!==a?(s!==null&&o.push({text:Gl(r),isWordLike:a,kind:s,start:l}),s=d,r=[c],l=n+u,a=h,u+=c.length):(r.push(c),u+=c.length)}return s!==null&&o.push({text:Gl(r),isWordLike:a,kind:s,start:l}),o}function kk(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const FLe=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function DLe(e,t){const n=e.texts[t];return!!n.startsWith("www.")||FLe.test(n)&&t+1=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(t):!OLe.has(e)&&!zLe.test(e)&&RLe.test(e)}function DE(e){let t=!1;for(const n of e)if(!Fc.test(n)){if(!yP(n))return!1;t=!0}return t}function PLe(e,t,n,i){const o=!t&&DE(e),s=!i&&DE(n),r=(function(a){const u=(function(c){for(let d=c.length;d>0;){const h=vy(c,d),p=c.slice(h,d);if(!Fc.test(p))return p;d=h}return null})(a);return u!==null&&yy(u)})(e),l=(t||r)&&(function(a){for(let u=a.length;u>0;){const c=vy(a,u),d=a.slice(c,u);if(!Fc.test(d))return yP(d)||yy(d);u=c}return!1})(e);return!!(o||s||l)&&!Ba(e)&&!Ba(n)&&(t||o||r)&&(i||s)}function BE(e){for(const t of e)if(Z7.test(t))return!0;return!1}function Hv(e){if(e.length===0)return!1;for(const t of e)if(!Z7.test(t)&&!$Le.has(t))return!1;return!0}function jLe(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let i=0;for(let o=0;o0&&u.charCodeAt(u.length-1)===32&&(u=u.slice(0,-1)),u})(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const r=(function(a,u,c){var d,h,p;const g=(yk===null&&(yk=new Intl.Segmenter(void 0,{granularity:"word"})),yk);let m=0;const k=[],w=[],y=[],b=[],A=[],T=[],S=[],x=[],_=[],L=[],M=[],N=[];for(const R of g.segment(a))for(const j of NLe(R.segment,(d=R.isWordLike)!=null&&d,R.index,c)){let $=function(){T[q]!==null&&(w[q]=[NE(k,T,S,q)],T[q]=null),w[q].push(j.text),y[q]=y[q]||j.isWordLike,x[q]=x[q]||Z,_[q]=_[q]||ae,L[q]=Y,M[q]=oe,N[q]=FE(_[q],V)};const W=j.kind==="text",P=_Le(j.text,j.isWordLike,j.kind),Z=Ba(j.text),ae=TE(j.text),V=o0(j.text),Y=o5(j.text),oe=MLe(j.text),q=m-1;u.carryCJKAfterClosingQuote&&W&&m>0&&b[q]==="text"&&Z&&x[q]&&L[q]||W&&m>0&&b[q]==="text"&&ALe(j.text)&&x[q]||W&&m>0&&b[q]==="text"&&M[q]?$():W&&m>0&&b[q]==="text"&&j.isWordLike&&ae&&N[q]?($(),y[q]=!0):P!==null&&m>0&&b[q]==="text"&&T[q]===P?S[q]=((h=S[q])!=null?h:1)+1:W&&!j.isWordLike&&m>0&&b[q]==="text"&&!x[q]&&(bLe(j.text)||j.text==="-"&&y[q])?$():(k[m]=j.text,w[m]=[j.text],y[m]=j.isWordLike,b[m]=j.kind,A[m]=j.start,T[m]=P,S[m]=P===null?0:1,x[m]=Z,_[m]=ae,L[m]=Y,M[m]=oe,N[m]=FE(ae,V),m++)}for(let R=0;Rnull);let z=-1;for(let R=m-1;R>=0;R--){const j=k[R];if(j.length!==0){if(b[R]==="text"&&!y[R]&&z>=0&&b[z]==="text"&&(CLe(j)||j==="-"&&xLe(k[z]))){const $=(p=I[z])!=null?p:[];$.push(j),I[z]=$,A[z]=A[R],k[R]="";continue}z=R}}for(let R=0;RZ+1){j.push(Gl(oe)),$.push(ne),W.push("text"),P.push(R.starts[Z]),Z=q;continue}}j.push(ae),$.push(Y),W.push(V),P.push(R.starts[Z]),Z++}return{len:j.length,texts:j,isWordLike:$,kinds:W,starts:P}})((function(R){const j=[],$=[],W=[],P=[];for(let Z=0;Z1;for(let oe=0;oe=R.len||kk(R.kinds[V]))continue;const Y=[],oe=R.starts[V];let q=V;for(;q0&&(j.push(Gl(Y)),$.push(!0),W.push("text"),P.push(oe),Z=q-1)}return{len:j.length,texts:j,isWordLike:$,kinds:W,starts:P}})((function(R){const j=R.texts.slice(),$=R.isWordLike.slice(),W=R.kinds.slice(),P=R.starts.slice();for(let ae=0;ae=0&&!vP(u.texts[b-1],c)&&y(b),m<0&&(m=b),k=k||Ba(A))}return y(u.len),{len:d.length,texts:d,isWordLike:h,kinds:p,starts:g}})(s,r,t.breakKeepAllAfterPunctuation):r;return Mt({normalized:s,chunks:jLe(l,o)},l)}let Qf=null;const $E=new Map;let Yf=null;const WLe=new RegExp("\\p{Emoji_Presentation}","u"),qLe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let bk=null;const RE=new Map;function s5(){if(Qf!==null)return Qf;if(typeof OffscreenCanvas<"u")return Qf=new OffscreenCanvas(1,1).getContext("2d"),Qf;if(typeof document<"u")return Qf=document.createElement("canvas").getContext("2d"),Qf;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function Zu(e,t){let n=t.get(e);return n===void 0&&(n={width:s5().measureText(e).width,containsCJK:Ba(e)},t.set(e,n)),n}function ky(){if(Yf!==null)return Yf;if(typeof navigator>"u")return Yf={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Yf;const e=navigator.userAgent,t=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),n=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return Yf={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},Yf}function kP(){return bk===null&&(bk=new Intl.Segmenter(void 0,{granularity:"grapheme"})),bk}function ULe(e){return WLe.test(e)||e.includes("️")}function kd(e,t,n){return n===0?t.width:t.width-(function(i,o){return o.emojiCount===void 0&&(o.emojiCount=(function(s){let r=0;const l=kP();for(const a of l.segment(s))ULe(a.segment)&&r++;return r})(i)),o.emojiCount})(e,t)*n}function KLe(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function zE(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function OE(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function J7(e,t){return t===0?0:e+t}function GLe(e,t,n,i,o){return J7(i,t==="tab"?o+(function(s,r){return s.letterSpacing!==0&&s.spacingGraphemeCounts[r]>0?s.letterSpacing:0})(e,n):e.lineEndFitAdvances[n])}function PE(e,t,n,i){return J7(i,t==="tab"?0:e.lineEndFitAdvances[n])}function jE(e,t,n,i,o){return J7(i,t==="tab"?o:e.lineEndPaintAdvances[n])}function QLe(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function YLe(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Xm(e,t,n){let i=t;for(;i$){if(se!==null&&G>Q){q(be,G,le),ge=G,re=Xm(se,re,ge+1),G=-1,le=0;continue}q(),ie(be,ge,ke)}else P+=ke,ae=be,V=ge+1;else ie(be,ge,ke);const Ie=ge+1;se!==null&&se[re]===Ie&&(G=Ie,le=P,re++),ge++}Z&&ae===be&&V===Ae.length&&(ae=be+1,V=0)}let te=0;for(;te=H.length)));){const be=H[te],Q=zE(O[te]);if(Z)if(P+be>$){if(Q){pe(te,be),q(te+1,0,P-be),te++;continue}if(Y>=0){if(ae>Y||ae===Y&&V>0){q();continue}q(Y,0,oe);continue}if(be>$&&R[te]!==null){q(),Ne(te,0),te++;continue}q()}else pe(te,be),Q&&(Y=te+1,oe=P-be),te++;else be>$&&R[te]!==null?Ne(te,0):ne(te,be),Q&&(Y=te+1,oe=P-be),te++}return Z&&q(),W})(n,i);const{widths:o,kinds:s,breakableFitAdvances:r,breakablePreferredBreaks:l,discretionaryHyphenWidth:a,chunks:u}=n;if(o.length===0||u.length===0)return 0;const c=ky(),d=i+c.lineFitEpsilon;let h=0,p=0,g=!1,m=0,k=0,w=-1,y=0,b=null;function A(){w=-1,y=0,b=null}function T(I=m,z=k,H){h++,p=0,g=!1,A()}function S(I,z){g=!0,m=I+1,k=0,p=z}function x(I,z,H){g=!0,m=I,k=z+1,p=H}function _(I,z){g?(p+=z,m=I+1,k=0):S(I,z)}function L(I,z,H,O,R,j){if(!z)return;const $=PE(n,I,H,R);jE(n,I,H,R,O),w=H+1,y=p-j+$,b=I}function M(I,z){var H;const O=r[I],R=(H=l[I])!=null?H:null;let j=R===null?-1:Xm(R,0,z+1),$=-1,W=z;for(;Wd){if(R!==null&&$>z){T(I,$),W=$,j=Xm(R,j,W+1),$=-1;continue}T(),x(I,W,P)}else p=V,m=I,k=W+1}else x(I,W,P);const Z=W+1;R!==null&&R[j]===Z&&($=Z,j++),W++}g&&m===I&&k===O.length&&(m=I+1,k=0)}function N(I){h++,A()}for(let I=0;I=z.endSegmentIndex)));){const O=s[H],R=zE(O),j=ZLe(n,g,H),$=O==="tab"?VLe(p+j,n.tabStopAdvance):o[H],W=j+$,P=GLe(n,O,H,j,$);if(O!=="soft-hyphen")if(g){if(p+P>d){const Z=p+PE(n,O,H,j);if(jE(n,O,H,j,$),b==="soft-hyphen"&&c.preferEarlySoftHyphenBreak&&y<=d){T(w,0);continue}if(R&&Z<=d){_(H,W),T(H+1,0),H++;continue}if(w>=0&&y<=d){if(m>w||m===w&&k>0){T();continue}const ae=w;T(ae,0),H=ae;continue}if(P>d&&r[H]!==null){T(),M(H,0),H++;continue}T();continue}_(H,W),L(O,R,H,$,j,W),H++}else P>d&&r[H]!==null?M(H,0):S(H,$),L(O,R,H,$,j,W),H++;else g&&(m=H+1,k=0,w=H+1,y=p+a,b=O),H++}g&&(z.consumedEndSegmentIndex,T(z.consumedEndSegmentIndex,0))}return h})(e,t)}let Ak=null;function X7(){return Ak===null&&(Ak=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ak}function XLe(e,t){const n=[];let i=[],o=0,s=!1,r=!1,l=!1;function a(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(""),start:o}),i=[],s=!1,r=!1,l=!1)}function u(d,h,p){i=[d],o=h,s=p,r=o5(d),l=$9.has(d)}function c(d,h){i.push(d),s=s||h;const p=o5(d);r=d.length===1&&pf.has(d)&&r||p,l=!1}for(const d of X7().segment(e)){const h=d.segment,p=Ba(h);i.length!==0?l||G7.has(h)||pf.has(h)||t.carryCJKAfterClosingQuote&&p&&r?c(h,p):s||p?(a(),u(h,d.index,p)):c(h,p):u(h,d.index,p)}return a(),n}function eNe(e,t,n){if(t.length<=1)return t;const i=[];let o=-1,s=!1;function r(l){if(!(o<0)){if(s)o+1===l?i.push(t[o]):(function(a,u){const c=t[a].start,d=u=0&&!vP(t[l-1].text,n)&&r(l),o<0&&(o=l),s=s||Ba(a.text)}return r(t.length),i}function HE(e,t){if(t==="zero-width-break"||t==="soft-hyphen"||t==="hard-break")return 0;if(t==="tab")return 1;let n=0;const i=X7();for(const o of i.segment(e))n++;return n}function tNe(e){return e==="-"||e==="֊"||e==="‐"||e==="‒"||e==="–"||e==="—"}function nNe(e,t,n,i,o){const s=ky(),{cache:r,emojiCorrection:l}=(function(N,I){s5().font=N;const z=(function(R){let j=$E.get(R);return j||(j=new Map,$E.set(R,j)),j})(N),H=(function(R){const j=R.match(/(\d+(?:\.\d+)?)\s*px/);return j?parseFloat(j[1]):16})(N),O=I?(function(R,j){let $=RE.get(R);if($!==void 0)return $;const W=s5();W.font=R;const P=W.measureText("😀").width;if($=0,P>j+.5&&typeof document<"u"&&document.body!==null){const Z=document.createElement("span");Z.style.font=R,Z.style.display="inline-block",Z.style.visibility="hidden",Z.style.position="absolute",Z.textContent="😀",document.body.appendChild(Z);const ae=Z.getBoundingClientRect().width;document.body.removeChild(Z),P-ae>.5&&($=P-ae)}return RE.set(R,$),$})(N,H):0;return{cache:z,fontSize:H,emojiCorrection:O}})(t,(a=e.normalized,qLe.test(a)));var a;const u=kd("-",Zu("-",r),l)+(o===0?0:2*o),c=8*kd(" ",Zu(" ",r),l),d=o!==0;if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};const h=[],p=[],g=[],m=[];let k=e.chunks.length<=1&&!d;const w=null,y=[],b=[],A=[],T=null,S=Array.from({length:e.len});function x(N,I,z,H,O,R,j,$,W){O!=="text"&&O!=="space"&&O!=="zero-width-break"&&(k=!1),h.push(I),p.push(z),g.push(H),m.push(O),y.push(j),b.push($),d&&A.push(W)}function _(N,I,z,H,O){const R=Zu(N,r),j=d?HE(N,I):0,$=(function(ae,V,Y){return V>1?ae+(V-1)*Y:ae})(kd(N,R,l),j,o),W=I==="space"||I==="preserved-space"||I==="zero-width-break"?0:$,P=W===0?0:W+(j>0?o:0),Z=I==="space"||I==="zero-width-break"?0:$;if(O&&H&&N.length>1){let ae="sum-graphemes";o!==0?ae="segment-prefixes":Hv(N)?ae="pair-context":s.preferPrefixWidthsForBreakableRuns&&(ae="segment-prefixes");const V=(function(oe,q,ne,ie,pe){if(q.breakableFitAdvances!==void 0&&q.breakableFitMode===pe)return q.breakableFitAdvances;q.breakableFitMode=pe;const Ne=kP(),te=[];for(const Ae of Ne.segment(oe))te.push(Ae.segment);if(te.length<=1)return q.breakableFitAdvances=null,q.breakableFitAdvances;if(pe==="sum-graphemes"){const Ae=[];for(const se of te){const re=Zu(se,ne);Ae.push(kd(se,re,ie))}return q.breakableFitAdvances=Ae,q.breakableFitAdvances}if(pe==="pair-context"||te.length>96){const Ae=[];let se=null,re=0;for(const G of te){const le=kd(G,Zu(G,ne),ie);if(se===null)Ae.push(le);else{const ge=se+G,ke=Zu(ge,ne);Ae.push(kd(ge,ke,ie)-re)}se=G,re=le}return q.breakableFitAdvances=Ae,q.breakableFitAdvances}const be=[];let Q="",ue=0;for(const Ae of te){Q+=Ae;const se=kd(Q,Zu(Q,ne),ie);be.push(se-ue),ue=se}return q.breakableFitAdvances=be,q.breakableFitAdvances})(N,R,r,l,ae),Y=V===null||i==="keep-all"?null:(function(oe){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(oe))return null;const q=[];let ne=0;for(const ie of X7().segment(oe))ne++,tNe(ie.segment)&&q.push(ne);return q.length===0?null:q})(N);return void x(N,$,P,Z,I,z,V,Y,j)}x(N,$,P,Z,I,z,null,null,j)}for(let N=0;N=55296&&oe<=56319&&Y+1=56320&&pe<=57343&&(q=pe-56320+(oe-55296<<10)+65536,ne=2)}const ie=dLe(q);ie!=="R"&&ie!=="AL"&&ie!=="AN"||($=!0);for(let pe=0;pe=0&&j[oe]==="ET";oe--)j[oe]="EN";for(oe=Y+1;oe0?j[Y-1]:ae)!=="L"?"R":"L";if(q===((oe{const e=globalThis;if(e[Ck])return e[Ck];const t={configs:{},controllers:{},revision:ha(0),preparedCache:new Map,blockEstimateCache:new Map};return e[Ck]=t,t})();let Y1=null;const wk=cs.revision;function WE(e){var t;return e&&(t=cs.configs[e])!=null?t:null}function qE(e,t){const n=Number.parseFloat(String(e??""));return Number.isFinite(n)&&n>0?n:t}function oNe(e){return e?.type==="text"||e?.type==="emoji"||e?.type==="hardbreak"}function xk(e){var t,n,i;if(!Array.isArray(e)||e.length===0)return null;let o="";for(const s of e){if(!oNe(s))return null;s.type==="text"?o+=String((t=s.content)!=null?t:""):s.type==="emoji"?o+=String((i=(n=s.name)!=null?n:s.raw)!=null?i:""):s.type==="hardbreak"&&(o+=` -`)}return o.length>0?o:null}function Sk(e,t,n){var i,o;if(!e||!Number.isFinite(t)||t<=0||!(function(){var s;if(Y1!=null)return Y1;if(typeof document>"u")return!1;try{const r=document.createElement("canvas");return Y1=!!((s=r.getContext)!=null&&s.call(r,"2d")),Y1}catch{return Y1=!1,!1}})())return null;try{const s=Math.round(100*t)/100,r=[(i=n.whiteSpace)!=null?i:"pre-wrap",n.font,n.lineHeight,n.wrapperOverhead,n.widthAdjustment,s,e].join("\0"),l=cs.blockEstimateCache.get(r);if(l)return cs.blockEstimateCache.delete(r),cs.blockEstimateCache.set(r,l),{kind:"simple-text",height:l.height,contentHeight:l.contentHeight};const a=(o=n.whiteSpace)!=null?o:"pre-wrap",u=(function(p,g,m){const k=`${m}\0${g}\0${p}`,w=cs.preparedCache.get(k);if(w)return cs.preparedCache.delete(k),cs.preparedCache.set(k,w),w.prepared;const y=(function(b,A,T){return(function(S,x,_,L){var M,N;const I=(M=L?.wordBreak)!=null?M:"normal",z=(N=L?.letterSpacing)!=null?N:0;return nNe(HLe(S,ky(),L?.whiteSpace,I),x,!1,I,z)})(b,A,0,T)})(p,g,{whiteSpace:m});for(cs.preparedCache.set(k,{prepared:y});cs.preparedCache.size>240;){const b=cs.preparedCache.keys().next().value;if(!b)break;cs.preparedCache.delete(b)}return y})(e,n.font,a),c=(function(p,g,m){const k=JLe(p,g);return{lineCount:k,height:k*m}})(u,Math.max(24,s-n.widthAdjustment),n.lineHeight),d=Math.max(n.lineHeight,c.height),h=Math.max(n.lineHeight,Math.round(d+n.wrapperOverhead));for(cs.blockEstimateCache.set(r,{height:h,contentHeight:Math.round(d)});cs.blockEstimateCache.size>4e3;){const p=cs.blockEstimateCache.keys().next().value;if(!p)break;cs.blockEstimateCache.delete(p)}return{kind:"simple-text",height:h,contentHeight:Math.round(d)}}catch{return null}}function bP(e,t,n){var i,o;if(!n||!e||!Number.isFinite(t)||t<=0)return null;if(e.type==="paragraph"){const s=xk(e.children);return s&&n.paragraph?Sk(s,t,n.paragraph):null}if(e.type==="heading"){const s=Number(e.level||0),r=xk(e.children),l=n.headings[s];return r&&l?Sk(r,t,l):null}if(e.type==="list_item"){const s=Array.isArray(e.children)?e.children:[];if(s.length!==1||((i=s[0])==null?void 0:i.type)!=="paragraph"||!n.listItem)return null;const r=xk((o=s[0])==null?void 0:o.children);return r?Sk(r,t,n.listItem):null}if(e.type==="list"){const s=Array.isArray(e.items)?e.items:[];if(!s.length)return null;let r=Math.max(0,n.listWrapperOverhead);for(const l of s){const a=bP(l,t,n);if(!a)return null;r+=a.height}return{kind:"simple-text",height:Math.max(1,Math.round(r)),contentHeight:Math.max(1,Math.round(r))}}return null}function J1(e){if(!e)return 1;const t=String(e).split(/\r?\n/);return Math.max(1,t.length)}function bd(e,t){const n=String(e??"");return t?n:n.replace(/\r\n$|\n$|\r$/,"")}function _k(e,t,n=0){return e.diff?V7(t??{},n)?(function(i){const o=bd(i.raw);if(o){const s=o.split(/\r?\n/);return i.originalCode!=null||i.updatedCode!=null?Math.max(1,s.filter(r=>!iNe.some(l=>r.startsWith(l))).length):Math.max(1,s.length)}return J1(bd(i.originalCode))+J1(bd(i.updatedCode))})(e):(function(i){const o=i.originalCode,s=i.updatedCode;if(o!=null||s!=null)return Math.max(J1(bd(o)),J1(bd(s)));const r=bd(i.code).split(/\r?\n/);let l=0,a=0;for(const u of r)u.startsWith("+")&&!u.startsWith("+++")?a++:u.startsWith("-")&&!u.startsWith("---")?l++:(l++,a++);return Math.max(1,l,a)})(e):J1(bd(e.code,e.loading===!0))}function sNe(e){return e?`${e.fontStyle||"normal"} ${e.fontWeight||"400"} ${e.fontSize||"16px"} ${e.fontFamily||"sans-serif"}`:""}function Mk(e,t,n="pre-wrap"){if(!e||!t||typeof window>"u")return null;const i=window.getComputedStyle(t),o=e.offsetHeight,s=qE(i.lineHeight,1.5*qE(i.fontSize,16)),r=e.getBoundingClientRect().width,l=t.getBoundingClientRect().width;return{font:sNe(i),lineHeight:s,wrapperOverhead:Math.max(0,o-s),widthAdjustment:Math.max(0,r-l),whiteSpace:n}}const rNe=new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function UE(e,t={}){var n;const i={},o=new Set((n=t.omit)!=null?n:[]);if(!e||typeof e!="object")return i;const s=Object.getOwnPropertyDescriptors(e);for(const[r,l]of Object.entries(s))rNe.has(r)||o.has(r)||l.enumerable&&"value"in l&&(i[r]=l.value);return i}function KE(e,t,n,i){var o;const s=(function(h){return Math.max(0,Math.ceil(h.scrollHeight||0)-Math.ceil(h.clientHeight||0))})(e),r=(function(h,p){return Number.isFinite(h)?Math.min(Math.max(0,h),p):0})(n,s);if(!i.isReverseFlexScrollRoot(e))return void(e.scrollTop=r);const l=Math.max(0,s-r),a=[-l,l];let u=a[0],c=Number.POSITIVE_INFINITY;for(const h of a){e.scrollTop=h;const p=i.getNormalizedScrollTop(e,t,!1),g=Math.abs(p-r);gd&&(e.scrollTop=u)}function VE(e,t){let n=0,i=null,o=null;const s=()=>{const r=o;o=null,i=null,r&&(n=Date.now(),e(...r))};return function(...r){const l=Date.now(),a=t-(l-n);o=r,a<=0?(i&&(clearTimeout(i),i=null),n=l,o=null,e(...r)):i||(i=setTimeout(s,a))}}function ZE(e){return e==="simple"?"simple":e===!0||e==="true"||e==="precise"?"precise":"off"}const AP=Symbol("MarkstreamMathBlockMinHeightCache");function Sct(){return hn(AP,null)}const lNe=new Set(["text","inline_code","emoji","footnote_reference"]),aNe=new Set(["strong","emphasis","strikethrough","highlight","insert","subscript","superscript","link"]);function X1(e){const t=Number(e);return!Number.isFinite(t)||t<=0?-1:Math.round(t/32)}function Ad(e,t,n,i=22){const o=String(e??"");if(!o)return n;const s=Math.max(18,Math.floor(Math.max(320,t)/8)),r=o.split(/\r?\n/).length,l=Math.ceil(o.length/s),a=Math.max(1,r,l);return Math.max(n,Math.ceil(a*i+12))}function CP(e){var t;if(!e||typeof e!="object")return!1;const n=e,i=String((t=n.type)!=null?t:"");if(lNe.has(i))return!0;if(!aNe.has(i))return!1;const o=n.children;return!Array.isArray(o)||!o.length||o.every(CP)}function r5(e){var t,n,i,o,s,r,l,a;if(!e||typeof e!="object")return"";const u=e,c=String((t=u.type)!=null?t:"");if(c==="text")return String((i=(n=u.content)!=null?n:u.raw)!=null?i:"");if(c==="inline_code")return String((r=(s=(o=u.code)!=null?o:u.content)!=null?s:u.raw)!=null?r:"");if(c==="emoji")return String((a=(l=u.name)!=null?l:u.raw)!=null?a:"");if(typeof u.text=="string")return u.text;const d=[];for(const h of["children","items","cells","rows"]){const p=u[h];if(Array.isArray(p)){const g=p.map(r5).filter(Boolean).join(" ");g&&d.push(g)}}return d.join(" ").replace(/\s+/g," ").trim()}function wP(e){if(!e||typeof e!="object")return!1;const t=e;return t.type==="inline_code"||["children","items","cells","rows"].some(n=>{const i=t[n];return Array.isArray(i)&&i.some(wP)})}function uNe(e,t){if(!e)return 30;const n=Math.max(18,Math.floor(Math.max(320,t)/8)),i=e.split(/\r?\n/).length,o=Math.ceil(e.length/n),s=Math.max(1,i,o);return 30+26*Math.max(0,s-1)}function cNe(e,t){var n,i,o,s,r,l,a,u,c,d,h,p,g,m;if(!e||typeof e!="object")return 32;const k=e,w=String((n=k.type)!=null?n:""),y=Number.isFinite(t)&&t>0?t:640;switch(w){case"heading":return(function(b){var A;const T=Number((A=b.level)!=null?A:b.depth);return T>=4?20:T===3?30:T===2?32:44})(k);case"paragraph":return(function(b,A){const T=String(b??"");if(!T)return 28;const S=Math.max(18,Math.floor(Math.max(320,A)/8)),x=T.split(/\r?\n/).length,_=Math.ceil(T.length/S);return Math.max(1,x,_)<=1?28:Ad(T,A,34)})(String((o=(i=k.raw)!=null?i:k.content)!=null?o:""),y);case"list":return(function(b,A){var T;const S=Array.isArray(b.items)?b.items:[];if(!S.length)return 48;const x=Math.max(48,30*S.length+12);let _=12;for(const N of S)_+=uNe(r5(N)||String((T=N.raw)!=null?T:""),A);const L=Math.max(0,_-x);if(S.length>20){const N=Math.round(2.4*S.length);return Math.round(x+Math.max(N,Math.min(L,3*S.length)))}if(L<=0)return x;const M=S.length>8?8*S.length:L;return Math.round(x+Math.min(L,M))})(k,y);case"list_item":return Ad(String((r=(s=k.raw)!=null?s:k.content)!=null?r:""),y,34);case"blockquote":return Ad(String((a=(l=k.raw)!=null?l:k.content)!=null?a:""),y,56);case"table":return(function(b,A){const T=[...b.header?[b.header]:[],...Array.isArray(b.rows)?b.rows:[]];if(!T.length){const S=Array.isArray(b.children)?b.children.length:3;return Math.max(120,38*S+48)}return Math.max(120,Math.round(4+T.reduce((S,x)=>S+(function(_,L){const M=Math.max(1,_.length),N=Math.max(80,(L-32)/M),I=Math.max(10,Math.floor(N/8)),z=Math.max(1,..._.map(H=>{var O;const R=r5(H)||String((O=H?.raw)!=null?O:"");return Math.ceil(R.length/I)||1}));return 54+34*Math.max(0,z-1)+(M<=3&&_.some(wP)?14:0)})((function(_){var L;return Array.isArray(_?.cells)&&(L=_.cells)!=null?L:[]})(x),A),0)))})(k,y);case"code_block":{const b=String((u=k.language)!=null?u:"").trim().toLowerCase(),A=String((d=(c=k.code)!=null?c:k.raw)!=null?d:"");return b==="mermaid"?dy(uy(A)):b==="infographic"?fy(cy(A)):Ad(A,y,96,20)}case"math_block":return 72;case"image":return 220;case"admonition":case"vmr_container":case"html_block":return(function(b,A){var T,S,x;const _=b.match(/^\s*]*)>/i);return _&&!/(?:^|\s)open(?:\s|=|$)/i.test((T=_[1])!=null?T:"")?Ad(((x=(S=b.match(/]*>([\s\S]*?)<\/summary>/i))==null?void 0:S[1])==null?void 0:x.replace(/<[^>]*>/g,"").trim())||"Details",A,28,28):Ad(b,A,96)})(String((p=(h=k.raw)!=null?h:k.content)!=null?p:""),y);case"thematic_break":return 24;default:return Ad(String((m=(g=k.raw)!=null?g:k.content)!=null?m:""),y,40)}}function GE(e,t,n){return Math.min(Math.max(e,t),n)}const dNe=["total","cacheHits","appendHits","tailHits","fullParses","chunkedParses"],fNe=["tokenCloneMs","processTokensInputTokens","processTokensReusedTopLevelNodes","processTokensMs","safeMarkdownMs","tokenizeMs","htmlBlockPassesMs","parseMarkdownToStructureTotalMs"],hNe=new Set(["attrs","data","items","header","payload","props","rows","cells","term","definition","sourceMap"]),xP=["raw","content","code","originalCode","updatedCode"],QE=new WeakMap,YE=new WeakMap;let pNe=1;function Zl(){return typeof performance<"u"?performance.now():Date.now()}function JE(e){const t=e.stream;return t&&typeof t.stats=="function"?t.stats():null}function rl(e){if(typeof e!="object"&&typeof e!="function"||e===null)return"";const t=e;let n=QE.get(t);return n||(n=pNe++,QE.set(t,n)),String(n)}function XE(e,t,n,i={}){var o,s;const r=i.includeFinal!==!1,l={md:rl(t),customMarkdownIt:rl(n),requireClosingStrong:e.requireClosingStrong===!0,customHtmlTags:(o=e.customHtmlTags)!=null?o:[],includeSourceMap:e.includeSourceMap===!0,streamParse:(s=e.streamParse)!=null?s:"auto",validateLink:rl(e.validateLink),preTransformTokens:rl(e.preTransformTokens),postTransformTokens:rl(e.postTransformTokens),postTransformNodes:rl(e.postTransformNodes)};return r&&(l.final=e.final===!0),JSON.stringify(l)}function eT(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===10;)t-=1;const n=e.lastIndexOf(` -`,t-1)+1;return e.slice(n,t).trim()}function tT(e){const t=SP(e);return t.length>=2&&t.every(n=>{const i=n.trim();return i.length>=1&&i.replace(/^:/,"").replace(/:$/,"").split("").every(o=>o==="-")})}function SP(e){return e.includes("|")?e.replace(/^\|/,"").replace(/\|$/,"").split("|"):[]}function _P(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function eA(e){const t=String(e??"");return`${t.length}:${_P(t)}`}function l5(e,t=new WeakMap,n=0){if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="string")return`s:${(function(r){return r.length<=8192?eA(r):`${r.length}:${_P(r.slice(0,8192))}:truncated`})(e)}`;if(typeof e=="function")return`fn:${rl(e)}`;if(typeof e!="object")return typeof e;const i=e,o=t.get(i);if(o)return`cycle:${o}`;if(n>=6)return`object:${rl(i)}`;const s=rl(i);if(t.set(i,s),Array.isArray(e)){const r=e.slice(0,200);return`a:${e.length}:${r.map(l=>l5(l,t,n+1)).join(",")}`}if(typeof e=="object"){const r=e,l=Object.keys(r).sort(),a=l.slice(0,80);return`o:${l.length}:${a.sort().map(u=>`${u}:${l5(r[u],t,n+1)}`).join(";")}`}return typeof e}function by(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"&&typeof e.raw=="string"}function MP(e,t=new WeakMap,n=0){return Array.isArray(e)?`a:${e.length}:${e.slice(0,200).map(i=>by(i)?Dc(i,t,n+1):MP(i,t,n+1)).join(",")}`:by(e)?Dc(e,t,n):l5(e,t,n)}function gNe(e,t,n){return Object.keys(e).sort().filter(i=>i!=="children"&&!xP.includes(i)).map(i=>{const o=e[i];return typeof o=="string"?`${i}=s:${eA(o)}`:typeof o=="number"||typeof o=="boolean"||o==null?`${i}=${String(o)}`:typeof o=="function"?`${i}=fn:${rl(o)}`:hNe.has(i)&&(Array.isArray(o)||typeof o=="object")?`${i}=${MP(o,t,n+1)}`:o&&typeof o=="object"?`${i}=object:${rl(o)}`:""}).filter(Boolean).join(";")}function mNe(e){return xP.map(t=>{const n=e[t];return typeof n=="string"?`${t}=s:${eA(n)}`:""}).filter(Boolean).join(";")}function Dc(e,t=new WeakMap,n=0){const i=YE.get(e);if(i)return i;const o=e,s=t.get(o);if(s)return`node-cycle:${s}`;if(n>=6)return`node:${e.type}:${rl(o)}`;const r=rl(o);t.set(o,r);const l=(function(a,u,c){const d=a,h=Array.isArray(d.children)?d.children:[],p=h.length?h.slice(0,200).map(g=>Dc(g,u,c+1)).join("|"):"";return[a.type,mNe(d),gNe(d,u,c),h.length,p].join(":")})(e,t,n);return YE.set(o,l),l}function IP(e,t){return Dc(e)===Dc(t)}function tA(e,t,n){const i=Zl(),o=t==="stabilizeSignatureMs"?"stabilizeSignatureCallCount":"primeSignatureCallCount";try{return n()}finally{e[t]+=Zl()-i,e[o]+=1,e.signatureMs=e.stabilizeSignatureMs+e.primeSignatureMs,e.signatureCallCount=e.stabilizeSignatureCallCount+e.primeSignatureCallCount}}function nT(e,t,n){return tA(t,n,()=>Dc(e))}function EP(e,t,n){return nT(e,n,"stabilizeSignatureMs")===nT(t,n,"stabilizeSignatureMs")}function ev(e){return{reusedNodeCount:0,dirtyStartIndex:e>0?0:-1,stablePrefixNodeCount:0,dirtyTailNodeCount:e}}function iT(e,t,n){return e<0?0:Math.max(t.length,n.length)-e}function oT(e){return e.__markstreamHasCustomParserExtensions===!0||(function(t){var n;return Number((n=t.__markstreamRegisteredPluginCount)!=null?n:0)>0})(e)}function vNe(e,t){return e.length===t.length&&e===t}function nA(e,t,n=0){if(n>=4)return null;if(e.type!==t.type)return!1;const i=e,o=t,s=Object.keys(i).filter(c=>c!=="type"&&c!=="children").sort(),r=Object.keys(o).filter(c=>c!=="type"&&c!=="children").sort();if(s.length!==r.length)return!1;for(let c=0;c{i=nA(e,t)}),i??EP(e,t,n)}function bNe(e,t){const n={};for(const i of dNe){const o=e[i],s=t?.[i];typeof o=="number"&&(n[i]=o-(typeof s=="number"?s:0))}return n}function ANe(e,t){var n;const i=tE(t.instanceMsgId),o=new Map,s=(n=t.smoothStreamingEnabled)!=null?n:F(()=>!1),r=K(t.renderContent.value);let l=[],a="",u="",c="",d=!1;const h=(function(){let H="",O=0,R=!1,j=!1,$=!1,W=!1;function P(){H="",O=0,R=!1,j=!1,$=!1,W=!1}function Z(ae){let V=!1;for(let Y=0;Y{if(!ae||!V.startsWith(ae)||V.length<=ae.length)return P(),[!0,0];let Y=0;H!==ae&&(P(),Z(ae),Y=ae.length);const oe=V.slice(ae.length),q=Z(oe);return H=V,[q,Y+oe.length]}})();let p,g=0,m=0,k=Zl(),w=-1,y=0;function b(H){w=Number.isInteger(H)?H:0,y+=1}function A(){p&&(clearTimeout(p),p=void 0)}function T(){A();const H=t.renderContent.value;r.value!==H&&(r.value=H),k=Zl()}Pe([t.renderContent,t.effectiveFinal,s],([H,O,R])=>{r.value!==H&&(!R||O||(function(j,$){if(!j&&$||$.length<=80||$.length\s*|`{3,}|~{3,})/.test(W))||W.endsWith(` -`)&&!(function(P){const Z=eT(P);if(tT(Z))return!1;const ae=SP(Z);return ae.length>=2&&ae.some(V=>V.trim())})($))})(r.value,H)?T():(function(){if(m+=1,p)return;const j=Math.max(0,(function($){const W=$.parseCoalesceMs;return typeof W=="number"&&Number.isFinite(W)&&W>=0?W:80})(e)-(Zl()-k));j<=0?T():p=setTimeout(T,j)})())},{flush:"sync",immediate:!0}),Bc(A);const S=F(()=>{var H,O,R,j;return Awe(e.customHtmlTags,(H=e.parseOptions)==null?void 0:H.customHtmlTags,(j=(R=(O=t.customComponentsMap)==null?void 0:O.value)!=null?R:{},Object.entries(j).map(([$,W])=>{const P=zl($);return W==null||!P||Cg(P)||Bz.has(P)||vg.has(P)?"":P}).filter(Boolean)))}),x=F(()=>{const{key:H,tags:O}=Cwe(S.value);if(!H)return i;const R=o.get(H);if(R)return R;const j=tE(t.instanceMsgId,{customHtmlTags:O});return o.set(H,j),j}),_=F(()=>{const H=x.value;if(!e.customMarkdownIt)return H;const O=e.customMarkdownIt(H);return H.__markstreamHasCustomParserExtensions=!0,O.__markstreamHasCustomParserExtensions=!0,O}),L=F(()=>{var H,O;const R=(H=e.parseOptions)!=null?H:{},j=t.effectiveFinal.value,$=S.value,W=j!=null,P=$.length>0;return W||P||R.streamParse==null?Mt(Mt(An(Mt({},R),{streamParse:(O=R.streamParse)==null||O}),W?{final:j}:{}),P?{customHtmlTags:$}:{}):R}),M=F(()=>{var H;return new Set(((H=L.value.customHtmlTags)!=null?H:[]).map(O=>String(O).trim().toLowerCase()).filter(Boolean))}),N=F(()=>XE(L.value,_.value,e.customMarkdownIt,{includeFinal:!0})),I=F(()=>XE(L.value,_.value,e.customMarkdownIt,{includeFinal:!1}));Pe([N,I],([H,O],[R,j])=>{R&&(H===R&&O===j||(T(),O!==j&&(l=[],c="")))},{flush:"sync"});const z=F(()=>{var H,O,R,j,$,W,P,Z,ae,V,Y;if((H=e.nodes)!=null&&H.length)return l=[],c="",b(0),St(e.nodes.slice());const oe=r.value;if(!oe)return l=[],c="",b(-1),[];const q=t.debugPerformanceEnabled.value,ne=q?Zl():0,ie=_.value,pe=N.value,Ne=I.value;a&&pe!==a&&(function(ut){var _t,Ct;(Ct=(_t=ut.stream)==null?void 0:_t.reset)==null||Ct.call(_t)})(ie),u&&Ne!==u&&(l=[],c="");const te=Object.keys((R=(O=t.customComponentsMap)==null?void 0:O.value)!=null?R:{}).length>0||typeof L.value.postTransformNodes=="function";te!==d&&(l=[],c="");const be=!te&&l.length>0&&oe.startsWith(c)&&Ne===u,Q=q?JE(ie):null,ue=q?{}:void 0,Ae=oT(ie),se=!Ae&&!te,re=Mt(Mt(An(Mt({},L.value),{__reuseStableTopLevelNodes:se}),Ae?{__disableStreamParse:!0}:{}),ue?{__timing:ue}:{}),G=OO(oe,ie,re),le=q?Zl():0,ge=q?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let ke,Ie=q?ev(G.length):void 0,Oe=0,we=0,Be=0;if(be){const ut=q?Zl():0,[_t,Ct]=(function(Vt){var nn,gt;const[Le,ze]=Vt.scanGlobalReferenceAppend(Vt.previousContent,Vt.content),Ye=Vt.parseOptions;return[Vt.previousDirtyStartIndex>0&&Ye.final!==!0&&!Vt.customMarkdownIt&&!oT(Vt.md)&&!Le&&typeof Ye.preTransformTokens!="function"&&typeof Ye.postTransformTokens!="function"&&typeof Ye.postTransformNodes!="function"&&((gt=(nn=Ye.customHtmlTags)==null?void 0:nn.length)!=null?gt:0)===0?Vt.previousDirtyStartIndex:0,ze]})({content:oe,previousContent:c,previousDirtyStartIndex:w,parseOptions:L.value,customMarkdownIt:e.customMarkdownIt,md:ie,scanGlobalReferenceAppend:h});Be=Ct;const $t=_t<=0;if(ge){const Vt=(function(nn,gt,Le,ze={}){var Ye;if(!gt.length)return{nodes:nn,metrics:ev(nn.length)};const Tt=(Ye=ze.scanStartIndex)!=null?Ye:0,on=ze.reuseDirtyTail!==!1,jt=(function(mn,zn,He,st=0){const et=Math.min(mn.length,zn.length);for(let Nt=Math.min(et,Math.max(0,st));NtDc(ut[$t]))})(ke,ge,we):(function(ut,_t=0){for(let Ct=Math.max(0,_t);Ct(($=Q?.total)!=null?$:0);t.logPerf(_t?"parse(stream)":"parse(sync)",Mt(Mt(Mt({rendererId:t.instanceMsgId,ms:Math.round(Zl()-ne),nodes:ke.length,contentLength:oe.length,parseCommitCount:g,parseCoalescedCount:m,nodeReuseMs:tt,referenceDefinitionScanChars:Be,signatureMs:(W=ge?.signatureMs)!=null?W:0,stabilizeSignatureMs:(P=ge?.stabilizeSignatureMs)!=null?P:0,primeSignatureMs:(Z=ge?.primeSignatureMs)!=null?Z:0,signatureCallCount:(ae=ge?.signatureCallCount)!=null?ae:0,stabilizeSignatureCallCount:(V=ge?.stabilizeSignatureCallCount)!=null?V:0,primeSignatureCallCount:(Y=ge?.primeSignatureCallCount)!=null?Y:0,stabilizeMs:Oe},Ie??{}),ue?Object.fromEntries(fNe.map(Ct=>{var $t;return[Ct,($t=ue[Ct])!=null?$t:0]})):{}),ut?{streamMode:ut.lastMode,streamDelta:bNe(ut,Q),streamStats:ut}:{}))}return St(ke)});return{effectiveCustomHtmlTags:S,effectiveCustomHtmlTagsSet:M,mdBase:x,mdInstance:_,mergedParseOptions:L,getParsedNodesDirtyStartIndex:()=>w,getParsedNodesRevision:()=>y,parsedNodes:z}}function CNe(e){const{isClient:t}=e,n=K(new Set),i=new Map,o=new Map,s=new Map;function r(u){if(!t)return;const c=s.get(u);c!=null&&(window.clearTimeout(c),s.delete(u))}function l(){if(t)for(const u of s.values())window.clearTimeout(u);s.clear()}function a(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:i,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:s,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,c=!0){var d;c&&r(u),(function(h,p){if((m=(g=e.shouldTrackVisibleNodeIndices)==null?void 0:g.call(e))!=null&&!m)return;var g,m;const k=n.value,w=k.has(h);if(p){if(w)return;const b=new Set(k);return b.add(h),void(n.value=b)}if(!w)return;const y=new Set(k);y.delete(h),n.value=y})(u,c),c&&((d=e.onNodeMarkedVisible)==null||d.call(e,u))},resetNodeVisibleState:a,cleanupNodeVisibility:function(u){var c;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[h,p]of o.entries())h{const c=o.getSnapshot();t.value=c.source,n.value=c.visible,i.value=c.done},r=o.subscribe(s);s();const l=F(()=>Math.max(0,t.value.length-n.value.length)),a=F(()=>l.value===0),u=F(()=>i.value&&a.value);return Y0()&&Bc(()=>{r(),o.destroy()}),{source:t,visible:n,done:i,final:u,caughtUp:a,pendingChars:l,enqueue:c=>o.enqueue(c),finish:c=>o.finish(c),flush:()=>o.flush(),reset:c=>o.reset(c),pause:()=>o.pause(),resume:()=>o.resume()}}const xNe={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},sT=/auto|scroll|overlay/i;function SNe(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return sT.test(t)||sT.test(n)}function _Ne(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const MNe={class:"m-0 p-0"},INe=["data-probe"],ENe=Ci(Xe(An(Mt({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(i){var o,s;return(s=(o=t.headingNodes)==null?void 0:o[i])!=null?s:null}return(i,o)=>(v(),E("div",{class:"height-estimation-probes",style:Kt({width:`${e.width}px`}),"aria-hidden":"true"},[C("div",{ref:s=>e.setParagraphWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[U(f(Jd),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),C("div",{ref:s=>e.setListItemWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[C("ul",MNe,[U(f(Ph),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),C("div",{ref:s=>e.setListWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[U(f(jh),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(v(),E(Ee,null,pt(6,s=>C("div",{key:`probe-heading-${s}`,ref_for:!0,ref:r=>e.setHeadingWrapper(s,r),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${s}`},[U(f(B9),{node:n(s),"index-key":`probe-heading-${s}`},null,8,["node","index-key"])],10,INe)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),rT=Xe({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=F(()=>{var n,i;return fy((i=kh(e.estimatedPreviewHeightPx))!=null?i:cy(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return yn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?yn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[yn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[yn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),yn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),yn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>yn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,yn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[yn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),yn("div",{class:"absolute inset-0"},[yn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),lT=Xe({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=F(()=>{var n,i;return dy((i=kh(e.estimatedPreviewHeightPx))!=null?i:uy(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return yn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?yn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[yn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[yn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),yn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>yn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[yn("span",{class:"action-icon block"})])))]):null,yn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[yn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),yn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),TNe={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function Ms(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const LNe=["data-custom-id"],NNe=["data-node-index","data-node-type"],aT="typewriter-simple-cursor-target",TP=Ci(Xe(An(Mt({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const i=e,o=n;function s(B){if(!(typeof Event<"u"&&B instanceof Event))return typeof B=="string"&&o("copy-code",B),void o("copy",B)}const r=os(),l=hn("markstreamNestedRendererProps",void 0);function a(B){const J=r?.vnode.props;return!!J&&(Object.prototype.hasOwnProperty.call(J,B)||Object.prototype.hasOwnProperty.call(J,String(B).replace(/[A-Z]/g,fe=>`-${fe.toLowerCase()}`)))}function u(B){var J,fe;const he=i[B];return a(B)?he:(fe=(J=l?.value)==null?void 0:J[B])!=null?fe:he}const c=F(()=>{return(B=u("mode"))==="chat"||B==="minimal"||B==="docs"?B:"docs";var B}),d=F(()=>ZE(u("typewriter"))),h=F(()=>d.value!=="off"),p=F(()=>u("domMode")==="minimal"?"minimal":"full"),g=F(()=>{return(B={mode:c.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":B.codeRenderer==="pre"||B.codeRenderer==="shiki"||B.codeRenderer==="monaco"?B.codeRenderer:B.renderCodeBlocksAsPre===!1||B.mode==="docs"?"monaco":"pre";var B}),m=F(()=>TNe[c.value]),k=F(()=>{var B;return(B=u("showTooltips"))!=null?B:m.value.showTooltips}),w=F(()=>{var B;return(B=u("fade"))!=null?B:m.value.fade}),y=F(()=>{var B;return(B=u("batchRendering"))!=null?B:m.value.batchRendering}),b=F(()=>{var B;return(B=u("initialRenderBatchSize"))!=null?B:m.value.initialRenderBatchSize}),A=F(()=>{var B;return(B=u("renderBatchSize"))!=null?B:m.value.renderBatchSize}),T=F(()=>{var B;return(B=u("renderBatchDelay"))!=null?B:m.value.renderBatchDelay}),S=F(()=>{var B;return(B=u("renderBatchBudgetMs"))!=null?B:m.value.renderBatchBudgetMs}),x=F(()=>{var B;return(B=u("renderBatchIdleTimeoutMs"))!=null?B:m.value.renderBatchIdleTimeoutMs}),_=F(()=>{var B;return(B=u("deferNodesUntilVisible"))!=null?B:m.value.deferNodesUntilVisible}),L=F(()=>{var B;return(B=u("maxLiveNodes"))!=null?B:m.value.maxLiveNodes}),M=F(()=>{var B;return(B=u("liveNodeBuffer"))!=null?B:m.value.liveNodeBuffer}),N=F(()=>{var B;return(B=u("nodeVirtual"))!=null?B:m.value.nodeVirtual}),I={get content(){return i.content},get nodes(){return i.nodes},get final(){return i.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return i.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return p.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return k.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return i.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return i.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return w.value},get batchRendering(){return y.value},get initialRenderBatchSize(){return b.value},get renderBatchSize(){return A.value},get renderBatchDelay(){return T.value},get renderBatchBudgetMs(){return S.value},get renderBatchIdleTimeoutMs(){return x.value},get deferNodesUntilVisible(){return _.value},get maxLiveNodes(){return L.value},get liveNodeBuffer(){return M.value},get nodeVirtual(){return N.value},get virtualScroll(){return i.virtualScroll},get renderAsFragment(){return i.renderAsFragment}};function z(B){o("height-change",B)}function H(B){o("virtual-state-change",B)}function O(B){o("anchor-change",B)}const R=K(),j=K(null),$=K(null),W=K(null),P=jo({1:null,2:null,3:null,4:null,5:null,6:null}),Z=K(!1),ae=new Map,V=K(0),Y=K(0),oe=K({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function q(B,J){return typeof B!="string"?J:B.trim()||J}function ne(B){const J=Number(B);return Number.isFinite(J)&&J>0?Math.max(1,Math.trunc(J)):640}const ie=F(()=>{var B;const J=(B=I.viewportPriorityOptions)!=null?B:{},fe=q(J.rootMargin,ff);return{rootMargin:fe,heavyBlockMargin:q(J.heavyBlockMargin,fe),maxTargets:ne(J.maxTargets)}}),pe=F(()=>{var B;return(B=ie.value.rootMargin)!=null?B:ff}),Ne=F(()=>{var B;return(B=ie.value.maxTargets)!=null?B:640});function te(){var B,J;if(((B=i.virtualScroll)==null?void 0:B.enabled)!==!0)return null;const fe=(J=i.virtualScroll)==null?void 0:J.scrollRoot;return be(typeof fe=="function"?fe():fe)}function be(B){return B?typeof HTMLElement<"u"&&B instanceof HTMLElement?B:typeof B=="object"&&"value"in B?be(B.value):typeof B=="object"&&"$el"in B?be(B.$el):null:null}oi(hP,ie);const{isClient:Q,renderAsFragment:ue,debugPerformanceEnabled:Ae,resolvedShowTooltips:se,resolvedHtmlPolicy:re,inheritedSmoothStreaming:G,ownsTypewriterCursor:le}=(function(B){const J=typeof window<"u",fe=r1(),he=hn("markstreamHtmlPolicy",void 0),Ce=hn("markstreamTypewriterCursor",void 0),De=hn("markstreamSmoothStreaming",void 0),We=F(()=>B.renderAsFragment===!0),Ze=F(()=>!!(B.debugPerformance&&J&&typeof console<"u")),lt=F(()=>{var rt;if(typeof B.showTooltips=="boolean")return B.showTooltips;const qe=(rt=fe.showTooltips)!=null?rt:fe["show-tooltips"];return qe===""||qe===!0||qe==="true"||qe!==!1&&qe!=="false"&&void 0}),Ge=F(()=>{var rt,qe;return(qe=(rt=B.htmlPolicy)!=null?rt:he?.value)!=null?qe:"safe"}),nt=F(()=>Ce?.value!==!0);return{isClient:J,renderAsFragment:We,debugPerformanceEnabled:Ze,resolvedShowTooltips:lt,resolvedHtmlPolicy:Ge,inheritedSmoothStreaming:De,inheritedTypewriterCursor:Ce,ownsTypewriterCursor:nt}})(I),{resolveViewportRoot:ge,resolveScrollContainer:ke,isReverseFlexScrollRoot:Ie,getNormalizedScrollTop:Oe,getOffsetTopWithinRoot:we}=(function(B,J){function fe(){var Ze,lt;return(lt=(Ze=J.scrollRoot)==null?void 0:Ze.call(J))!=null?lt:null}function he(Ze){if(typeof window>"u")return null;const lt=fe();if(lt)return lt;const Ge=Ze??B.value;if(!Ge)return null;const nt=Ge.ownerDocument||document,rt=nt.scrollingElement||nt.documentElement;let qe=Ge;for(;qe&&qe!==nt.body&&qe!==rt;){if(SNe(window.getComputedStyle(qe))&&_Ne(qe))return qe;qe=qe.parentElement}return null}function Ce(Ze){if(!J.isClient)return!1;try{const lt=window.getComputedStyle(Ze);return!!(lt.display||"").toLowerCase().includes("flex")&&(lt.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function De(Ze,lt,Ge){var nt,rt;if(Ge)return We(lt);const qe=Ze.scrollTop;if(!Ce(Ze))return qe;const it=qe<0?-qe:qe;return Math.max(0,((nt=Ze.scrollHeight)!=null?nt:0)-((rt=Ze.clientHeight)!=null?rt:0))-it}function We(Ze){var lt,Ge,nt,rt,qe;const it=Number((lt=Ze.scrollingElement)==null?void 0:lt.scrollTop),mt=Number((nt=(Ge=Ze.documentElement)==null?void 0:Ge.scrollTop)!=null?nt:0),ht=Number((qe=(rt=Ze.body)==null?void 0:rt.scrollTop)!=null?qe:0);return Math.max(0,Number.isFinite(it)?it:0,Number.isFinite(mt)?mt:0,Number.isFinite(ht)?ht:0)}return{resolveViewportRoot:he,resolveScrollContainer:function(Ze){var lt,Ge,nt,rt;const qe=fe();if(qe)return qe;const it=he((lt=Ze??B.value)!=null?lt:null);if(it)return it;const mt=(rt=(nt=Ze?.ownerDocument)!=null?nt:(Ge=B.value)==null?void 0:Ge.ownerDocument)!=null?rt:typeof document<"u"?document:null;return mt?.scrollingElement||mt?.documentElement||null},isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De,getOffsetTopWithinRoot:function(Ze,lt){const Ge=lt.ownerDocument||Ze.ownerDocument||document;if((function(it,mt){return it===mt.documentElement||it===mt.body||it===mt.scrollingElement})(lt,Ge))return Ze.getBoundingClientRect().top+We(Ge);const nt=lt.getBoundingClientRect(),rt=Ze.getBoundingClientRect(),qe=De(lt,Ge,!1);return rt.top-nt.top+qe}}})(R,{isClient:Q,scrollRoot:te});oi("markstreamShowTooltips",se),oi("markstreamHtmlPolicy",re),oi("markstreamTypewriter",h),oi("markstreamFade",F(()=>I.fade!==!1)),oi("markstreamTypewriterCursor",F(()=>!0)),oi("markstreamTextStreamState",ae),oi("markstreamStreamVersion",V),oi("markstreamParseOptions",F(()=>I.parseOptions)),oi("markstreamCustomMarkdownIt",F(()=>I.customMarkdownIt));const{smoothStreamingEnabled:Be,renderContent:tt,requestedFinal:ut,effectiveFinal:_t}=(function(B,J){const fe=wNe(Mt(Mt({},xNe),B.smoothStreamingOptions)),he=F(()=>{var qe,it,mt;return B.smoothStreaming!==!1&&!((qe=B.nodes)!=null&&qe.length)&&(B.smoothStreaming===!0||!((it=J.inheritedSmoothStreaming)!=null&&it.value))&&(B.smoothStreaming===!0||ZE(B.typewriter)!=="off"||((mt=B.maxLiveNodes)!=null?mt:0)<=0)}),Ce=K(!J.isClient||B.smoothStreaming===!0);cn(()=>{Ce.value=!0});const De=F(()=>Ce.value&&he.value),We=F(()=>{var qe;return De.value?fe.visible.value:(qe=B.content)!=null?qe:""}),Ze=F(()=>{var qe,it;const mt=(qe=B.parseOptions)!=null?qe:{};return(it=B.final)!=null?it:mt.final}),lt=F(()=>{const qe=Ze.value;return De.value&&qe!=null?!!qe&&fe.caughtUp.value:qe});let Ge=0,nt=!1;function rt(){Ge=0,nt=!1}return Pe([()=>B.content,()=>B.nodes,De,Ze],([qe,it,mt,ht])=>{if(it?.length)return rt(),void fe.reset("");const Dt=qe??"";if(!mt)return rt(),fe.reset(Dt),void(ht&&fe.finish({flush:!0}));const At=fe.source.value;if(Dt){if(Dt!==At)if(Dt.startsWith(At)){const qt=Dt.slice(At.length),Zt=fe.pendingChars.value;qt.length<=8?(Ge++,nt||Ge>=2&&Zt<=8?(nt=!0,fe.reset(Dt)):fe.enqueue(qt)):(rt(),fe.enqueue(qt))}else rt(),fe.reset(Dt)}else rt(),fe.reset("");ht&&fe.finish()},{immediate:!0}),{smoothStream:fe,smoothStreamingEligible:he,smoothStreamingEnabled:De,renderContent:We,requestedFinal:Ze,effectiveFinal:lt}})(I,{isClient:Q,inheritedSmoothStreaming:G}),Ct=ut.value===!0;oi("markstreamSmoothStreaming",Be);const $t=K(!1),Vt=K(!1),nn=K(!1);let gt="",Le=!1,ze=null;function Ye(){Q&&ze!=null&&(window.clearTimeout(ze),ze=null)}function Tt(){$t.value=!1,Ye()}function on(B,J){if(!Ae.value)return;const fe=(function(){if(!Ae.value)return null;const he=zn(jt),Ce=zn(kn),De=Math.max(mn,Ce);if(he<=0&&De<=0)return null;const We={total:he,maxPerFrame:De,byLabel:(Ze=jt,Object.fromEntries(Array.from(Ze.entries()).sort((lt,Ge)=>Ge[1]-lt[1]||lt[0].localeCompare(Ge[0]))))};var Ze;return jt.clear(),kn.clear(),mn=0,We})();console.info(`[markstream-vue][perf] ${B}`,fe?An(Mt({},J),{layoutReads:fe}):J)}Pe([()=>I.indexKey,()=>I.customId],()=>{var B,J;Tt(),Vt.value=!1,nn.value=!((B=i.nodes)!=null&&B.length)&&ut.value!==!0&&!!i.content,gt=(J=tt.value)!=null?J:"",Le=gt.length>0},{flush:"sync"}),Pe([()=>i.content,()=>i.nodes,ut],([B,J,fe])=>{!J?.length&&fe!==!0&&B&&(nn.value=!0)},{flush:"sync",immediate:!0}),Pe([tt,()=>i.nodes,ut],([B,J,fe])=>{const he=B??"";return J?.length||fe===!0?(Tt(),Vt.value=!1,gt=he,void(Le=!0)):(he.length>0&&(nn.value=!0),Le?(gt&&he.length>gt.length&&he.startsWith(gt)?($t.value=!0,Vt.value=!0,Q&&(Ye(),ze=window.setTimeout(()=>{var Ce;ze=null,_t.value===!0||(Ce=i.nodes)!=null&&Ce.length||($f(),$t.value=!1,Qa())},1200))):(he.length"u")return null;const De=window;if(De.__markstreamLayoutReadPerformance)return De.__markstreamLayoutReadPerformance;const We={total:0,maxPerFrame:0,byLabel:{}};return De.__markstreamLayoutReadPerformance=We,We})();Ce&&(Ce.total=Number(Ce.total||0)+1,Ce.byLabel[he]=Number(Ce.byLabel[he]||0)+1,Ce.currentFrameTotal=Number(Ce.currentFrameTotal||0)+1,Ce.frameScheduled||(Ce.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>st(Ce),0):queueMicrotask(()=>st(Ce)):window.requestAnimationFrame(()=>st(Ce))))})(B),bn||(bn=!0,Q&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(He):typeof queueMicrotask!="function"?setTimeout(He,0):queueMicrotask(He)))}function Nt(B,J){return et(B),J()}const Lt=I.customId?`renderer-${I.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,qn=(function(B){const J=new Map;return{scope:B,cache:J,clear:()=>J.clear()}})(Lt),So=Lt;oi(AP,qn);const Yn=ss(()=>I.customId),{effectiveCustomHtmlTagsSet:Ir,mergedParseOptions:_o,parsedNodes:It,getParsedNodesDirtyStartIndex:ms,getParsedNodesRevision:Er}=ANe(I,{instanceMsgId:Lt,renderContent:tt,effectiveFinal:_t,smoothStreamingEnabled:Be,debugPerformanceEnabled:Ae,customComponentsMap:Yn,logPerf:on});Pe(It,()=>{$t.value||qn.clear(),V.value+=1},{immediate:!0});const go=F(()=>({customId:I.customId,customHtmlTags:_o.value.customHtmlTags,parseOptions:I.parseOptions,customMarkdownIt:I.customMarkdownIt,htmlPolicy:re.value,viewportPriority:I.viewportPriority,viewportPriorityOptions:ie.value,mode:c.value,domMode:I.domMode,codeRenderer:g.value,codeBlockStream:I.codeBlockStream,codeBlockDarkTheme:I.codeBlockDarkTheme,codeBlockLightTheme:I.codeBlockLightTheme,codeBlockMonacoOptions:I.codeBlockMonacoOptions,renderCodeBlocksAsPre:I.renderCodeBlocksAsPre,codeBlockMinWidth:I.codeBlockMinWidth,codeBlockMaxWidth:I.codeBlockMaxWidth,codeBlockProps:I.codeBlockProps,mermaidProps:I.mermaidProps,d2Props:I.d2Props,infographicProps:I.infographicProps,showTooltips:se.value,themes:I.themes,langs:I.langs,isDark:I.isDark,typewriter:h.value,smoothStreamingOptions:I.smoothStreamingOptions,parseCoalesceMs:I.parseCoalesceMs,fade:I.fade}));oi("markstreamNestedRendererProps",go);const mo=F(()=>It.value),vs=F(()=>It.value.length),_i=K(null),Mo=K(null),ys=K(null),Tn=K(null),Un=i.indexKey!=null&&String(i.indexKey).startsWith("list-item-"),Kn=!Un&&I.customId?WE(I.customId):null,Pi=F(()=>Kn?(wk.value,WE(I.customId)):null),Io=F(()=>{var B;return!!(!ue.value&&I.customId&&!Un&&((B=Pi.value)!=null&&B.enabled))}),Ki=F(()=>!!(Q&&Io.value)),Ti=F(()=>{var B;return!!(!ue.value&&((B=i.virtualScroll)!=null&&B.enabled))}),Qs=F(()=>Ti.value),Li=K(!1);cn(()=>{Li.value=!0});const an=F(()=>!!(Q&&Ti.value));oi("markstreamHostScrollManaged",an);const to=F(()=>!!(Li.value&&an.value)),Jn=F(()=>Ki.value||an.value),Wo=F(()=>Ki.value||to.value),Mn=F(()=>{var B;return Jn.value&&((B=Pi.value)==null?void 0:B.textEstimation)!==!1});function Ni(){const B=Y.value||Nt("getMeasuredContainerWidth.clientWidth",()=>{var J;return((J=R.value)==null?void 0:J.clientWidth)||0});return Number.isFinite(B)&&B>0?B:0}const wi=F(()=>{const B=Ni();return B>0?Math.max(1,Math.round(B)):640}),$o=F(()=>{var B,J;return!(_t.value!==!0||Ti.value||c.value!=="chat"&&c.value!=="minimal"||a("maxLiveNodes")||a("liveNodeBuffer")||(B=i.nodes)!=null&&B.length||nn.value||!(((J=I.maxLiveNodes)!=null?J:0)<=0))}),$s=F(()=>{var B;return $o.value?50:Math.max(1,(B=I.maxLiveNodes)!=null?B:320)}),Vi=F(()=>{var B;return $o.value?16:Math.max(0,(B=I.liveNodeBuffer)!=null?B:60)}),Cn=F(()=>{var B;return!ue.value&&I.nodeVirtual!==!1&&!(((B=I.maxLiveNodes)!=null?B:0)<=0&&!$o.value)&&(I.nodeVirtual===!0?It.value.length>0:It.value.length>$s.value)}),Rs=F(()=>Cn.value||Ki.value||an.value),qo=F(()=>I.viewportPriority!==!1),ar=F(()=>!!qo.value&&!Z.value);var ks;ks=F(()=>qo.value),oi(pP,ks);const yi=F(()=>{var B;return!(ue.value||I.deferNodesUntilVisible===!1||((B=I.maxLiveNodes)!=null?B:0)<=0||Cn.value||It.value.length>900||I.viewportPriority===!1)}),Vn=nTe(B=>{var J;return ge((J=B??R.value)!=null?J:null)},qo),{requestFrame:ji,cancelFrame:Fi,hasIdleCallback:bs,isTestEnv:As}=(function(B){const J=B.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,fe=B.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,he=B.isClient&&typeof window.requestIdleCallback=="function",Ce=(function(){var De;if(typeof globalThis>"u"||!("process"in globalThis))return;const We=(De=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:De.value;return We?.env})();return{requestFrame:J,cancelFrame:fe,hasIdleCallback:he,isTestEnv:Ce?.NODE_ENV==="test"}})({isClient:Q}),Eo=F(()=>_t.value===!0&&!Ti.value),{resolvedBatchSize:Tr,resolvedInitialBatch:Lr,batchingEnabled:jl,incrementalRenderingActive:Nr,renderedCount:Di,previousRenderContext:Xn,adaptiveBatchSize:Cs,previousBatchConfig:Uo}=(function(B,J){var fe;const he=F(()=>{var rt;const qe=Math.trunc((rt=B.renderBatchSize)!=null?rt:80);return Number.isFinite(qe)?Math.max(0,qe):0}),Ce=F(()=>{var rt;const qe=Math.trunc((rt=B.initialRenderBatchSize)!=null?rt:he.value);return Number.isFinite(qe)?Math.max(0,qe):he.value}),De=F(()=>!J.renderAsFragment.value&&B.batchRendering!==!1&&he.value>0&&J.isClient&&!J.isTestEnv),We=K(0),Ze=K({key:B.indexKey,total:0}),lt=K(Math.max(1,he.value||1)),Ge=F(()=>{var rt,qe,it;return De.value&&!((rt=J.continuousStreaming)!=null&&rt.value)&&!((qe=J.forceFullRenderFinalContent)!=null&&qe.value)&&((it=B.maxLiveNodes)!=null?it:0)<=0}),nt=K({batchSize:he.value,initial:Ce.value,delay:(fe=B.renderBatchDelay)!=null?fe:16,enabled:Ge.value});return{resolvedBatchSize:he,resolvedInitialBatch:Ce,batchingEnabled:De,incrementalRenderingActive:Ge,renderedCount:We,previousRenderContext:Ze,adaptiveBatchSize:lt,previousBatchConfig:nt}})(I,{isClient:Q,isTestEnv:As,renderAsFragment:ue,forceFullRenderFinalContent:Eo,continuousStreaming:F(()=>Vt.value&&_t.value!==!0)}),On=F(()=>{var B;return!ue.value&&I.batchRendering!==!1&&Tr.value>0&&!As&&((B=I.maxLiveNodes)!=null?B:0)<=0&&!Eo.value}),Hi=F(()=>On.value),Wi=F(()=>Jn.value||Hi.value),rs=F(()=>{var B;return Wi.value&&((B=Pi.value)==null?void 0:B.codeBlockEstimation)!==!1}),jn=new Map,Ke=new Map,Ue=new WeakMap;let yt=null;const xt=new WeakMap,rn=new Map,Zi=[];let Gi=[],oo=[],qi=-1;const vo=ha(Zi),so=new Set,Ro=K(0);let ot=0;const xe=K(0),je=F(()=>(xe.value,Array.from(jn.entries()).sort((B,J)=>B[0]-J[0]))),Dn=K(null),vn=K(null);let ii,ws=null,xs=0,ro=null;function ai(){ii.markFallbackHeightPrefixDirty()}function Ys(B){return ii.getFallbackNodeHeight(B)}function Ss(B,J){return ii.estimateHeightRange(B,J)}function el(B){return ii.estimateIndexForOffset(B)}const{activeRestoreAnchor:ur,getRelativeScrollTopWithinContainer:tl,setRelativeScrollTopWithinContainer:ee,resolveAnchorOffset:me,clearRestoreReconcile:Me,scheduleRestoreReconcile:Re,captureRestoreAnchor:Qe,restoreAnchor:Je,getAnchorDrift:ft}=(function(B){const{isClient:J,containerRef:fe,parsedNodeCount:he,requestFrame:Ce,cancelFrame:De,resolveScrollContainer:We,getNormalizedScrollTop:Ze,getOffsetTopWithinRoot:lt,isReverseFlexScrollRoot:Ge,estimateIndexForOffset:nt,estimateHeightRange:rt,getFallbackNodeHeight:qe,clamp:it}=B,mt=K(null);let ht=null,Dt=[];function At(){const ln=We(),Fn=fe.value;if(!ln||!Fn)return null;const Pn=ln.ownerDocument||Fn.ownerDocument||document;if(ln===Pn.documentElement||ln===Pn.body||ln===Pn.scrollingElement){const Mi=Fn.getBoundingClientRect();return Math.max(0,-Mi.top)}return Math.max(0,Ze(ln,Pn,!1)-lt(Fn,ln))}function qt(ln){var Fn;const Pn=We(),Mi=fe.value;if(!Pn||!Mi)return;const Os=Math.max(0,ln),_s=Pn.ownerDocument||Mi.ownerDocument||document,Ul=_s.defaultView||(typeof window<"u"?window:null);if(Pn===_s.documentElement||Pn===_s.body||Pn===_s.scrollingElement){const ba=Ze(Pn,_s,!0)+Mi.getBoundingClientRect().top;return void((Fn=Ul?.scrollTo)==null||Fn.call(Ul,0,Math.max(0,ba+Os)))}KE(Pn,_s,lt(Mi,Pn)+Os,{isReverseFlexScrollRoot:ba=>{var R1;return(R1=Ge?.(ba))!=null&&R1},getNormalizedScrollTop:Ze})}function Zt(ln){const Fn=he.value,Pn=it(ln.nodeIndex,0,Math.max(0,Fn-1));return rt(0,Pn)+Math.max(0,ln.offsetWithinNodePx)}function sn(){if(ht!=null&&(De?.(ht),ht=null),J)for(const ln of Dt)window.clearTimeout(ln);Dt=[]}function Xt(ln){const Fn=Zt(ln),Pn=At();Pn!=null&&Math.abs(Pn-Fn)<=.5||qt(Fn)}return{activeRestoreAnchor:mt,getRelativeScrollTopWithinContainer:At,setRelativeScrollTopWithinContainer:qt,resolveAnchorOffset:Zt,clearRestoreReconcile:sn,applyRestoreAnchor:Xt,scheduleRestoreReconcile:function(){mt.value&&J&&ht==null&&(ht=Ce?Ce(()=>{ht=null,mt.value&&Xt(mt.value)}):null,ht==null&&mt.value&&Xt(mt.value))},captureRestoreAnchor:function(){const ln=At(),Fn=he.value;if(ln==null||Fn<=0)return null;const Pn=it(nt(ln+1),0,Fn-1),Mi=rt(0,Pn),Os=qe(Pn);return{nodeIndex:Pn,offsetWithinNodePx:it(ln-Mi,0,Math.max(0,Os-1))}},restoreAnchor:function(ln){const Fn=he.value;if(mt.value={nodeIndex:it(ln.nodeIndex,0,Math.max(0,Fn-1)),offsetWithinNodePx:Math.max(0,ln.offsetWithinNodePx)},sn(),Xt(mt.value),J)for(const Pn of[0,120,280,480])Dt.push(window.setTimeout(()=>{mt.value&&Xt(mt.value)},Pn))},getAnchorDrift:function(ln){const Fn=At();return Fn==null?null:Fn-Zt(ln)}}})({isClient:Q,containerRef:R,parsedNodeCount:vs,requestFrame:ji,cancelFrame:Fi,resolveScrollContainer:()=>Dn.value||ke(),getNormalizedScrollTop:Oe,getOffsetTopWithinRoot:we,isReverseFlexScrollRoot:Ie,estimateIndexForOffset:el,estimateHeightRange:Ss,getFallbackNodeHeight:Ys,clamp:zs}),{nodeHeights:vt,heightStats:Pt,heightTreeSize:fn,heightSumTree:dn,heightKnownTree:ui,averageNodeHeight:Ln,resetHeightMeasurements:Sn,pruneHeightMeasurements:fi,rebuildHeightTrees:Ui,recordNodeHeight:Fr,removeNodeHeights:ya,exportHeightCache:ka,importHeightCache:Du,fenwickRangeSum:v1}=(function(B={}){const J=jo({}),fe=jo({total:0,count:0}),he=K(0),Ce=K([]),De=K([]);function We(){for(const qe of Object.keys(J))delete J[Number(qe)];fe.total=0,fe.count=0,he.value=0,Ce.value=[],De.value=[]}function Ze(qe,it,mt){for(let ht=it+1;ht0;ht-=ht&-ht)mt+=qe[ht];return mt}function Ge(qe){he.value=qe;const it=new Array(qe+1).fill(0),mt=new Array(qe+1).fill(0);for(const[ht,Dt]of Object.entries(J)){const At=Number(ht),qt=Number(Dt);!Number.isFinite(At)||At<0||At>=qe||!Number.isFinite(qt)||qt<=0||(Ze(it,At,qt),Ze(mt,At,1))}Ce.value=it,De.value=mt}function nt(qe){if(!Number.isInteger(qe)||qe<0)return!1;const it=J[qe];if(!Number.isFinite(it)||it<=0)return!1;if(delete J[qe],fe.total=Math.max(0,fe.total-it),fe.count=Math.max(0,fe.count-1),he.value>qe){const mt=Ce.value,ht=De.value;mt.length&&ht.length&&(Ze(mt,qe,-it),Ze(ht,qe,-1))}return!0}const rt=F(()=>fe.count>0?Math.max(12,fe.total/fe.count):32);return{nodeHeights:J,heightStats:fe,heightTreeSize:he,heightSumTree:Ce,heightKnownTree:De,averageNodeHeight:rt,resetHeightMeasurements:We,pruneHeightMeasurements:function(qe){if(qe<=0)return void We();let it=0,mt=0;for(const[ht,Dt]of Object.entries(J)){const At=Number(ht),qt=Number(Dt);!Number.isFinite(At)||At<0||At>=qe||!Number.isFinite(qt)||qt<=0?delete J[At]:(it+=qt,mt++)}fe.total=it,fe.count=mt},rebuildHeightTrees:Ge,recordNodeHeight:function(qe,it,mt={}){(function(ht,Dt,At={}){var qt;if(!Number.isFinite(Dt)||Dt<=0)return!1;const Zt=J[ht];if(Zt&&(At.allowShrink===!1&&Dtht){const sn=Ce.value,Xt=De.value;if(sn.length&&Xt.length)if(Zt){const ln=Dt-Zt;ln!==0&&Ze(sn,ht,ln)}else Ze(sn,ht,Dt),Ze(Xt,ht,1)}At.notify!==!1&&((qt=B.onHeightRecorded)==null||qt.call(B))})(qe,it,An(Mt({},mt),{notify:!0}))},removeNodeHeight:function(qe,it={}){var mt;const ht=nt(qe);return ht&&it.notify!==!1&&((mt=B.onHeightRecorded)==null||mt.call(B)),ht},removeNodeHeights:function(qe,it={}){var mt;let ht=0;for(const Dt of qe)nt(Number(Dt))&&ht++;return ht>0&&it.notify!==!1&&((mt=B.onHeightRecorded)==null||mt.call(B)),ht},exportHeightCache:function(){return Object.entries(J).map(([qe,it])=>({index:Number(qe),height:Number(it)})).filter(qe=>Number.isFinite(qe.index)&&qe.index>=0&&Number.isFinite(qe.height)&&qe.height>0).sort((qe,it)=>qe.index-it.index)},importHeightCache:function(qe,it={}){var mt;if(!Array.isArray(qe))return;const ht=he.value;let Dt=!1;if(it.mode!=="merge"){const At=Object.keys(J);if(At.length>0){for(const qt of At)delete J[Number(qt)];Dt=!0}}for(const At of qe){const qt=Number(At.index),Zt=Number(At.height);if(!Number.isInteger(qt)||qt<0||ht>0&&qt>=ht||!Number.isFinite(Zt)||Zt<=0)continue;const sn=J[qt];sn&&Math.abs(sn-Zt)<=1||(J[qt]=Zt,Dt=!0)}Dt&&((function(){let At=0,qt=0;const Zt=he.value;for(const[sn,Xt]of Object.entries(J)){const ln=Number(sn),Fn=Number(Xt);!Number.isFinite(ln)||ln<0||Zt>0&&ln>=Zt||!Number.isFinite(Fn)||Fn<=0?delete J[ln]:(At+=Fn,qt++)}fe.total=At,fe.count=qt})(),ht>0&&Ge(ht),(mt=B.onHeightRecorded)==null||mt.call(B))},fenwickRangeSum:function(qe,it,mt){if(mt<=it)return 0;const ht=lt(qe,mt-1);return it<=0?ht:ht-lt(qe,it-1)}}})({onHeightRecorded:()=>{ai(),an.value&&L1(),ur.value&&Re(),vn.value&&Ff(),Qi("node-resize")}});function ye(B){Number.isInteger(B)&&B>=0&&so.add(B)}function Se(B){for(const J of B)ye(Number(J))}function Ve(B){ot++;let J=!0;try{const fe=B();return J=fe!==!1,fe}finally{ot--,ot===0&&J&&Ro.value++}}function Rt(){Gi=[],oo=[],qi=-1,so.clear(),vo.value=Zi}function Yt(){Rt(),Ve(()=>Sn()),rn.clear()}function wn(B){!Number.isInteger(B)||B<0||B>=It.value.length||rn.set(B,b1(B))}function ei(B,J,fe={}){const he=vt[B];ye(B),Fr(B,J,fe);const Ce=vt[B];return Object.is(he,Ce)?(so.delete(B),!1):(Ce&&Ce>0?wn(B):he&&rn.delete(B),!0)}function Bi(B,J){const fe=Nt("getNodeLayoutHeight.slot.offsetHeight",()=>{var he,Ce;return(Ce=(he=jn.get(B))==null?void 0:he.offsetHeight)!=null?Ce:0});return fe>0?fe:Nt("getNodeLayoutHeight.content.offsetHeight",()=>J.offsetHeight)}function Ko(B,J={}){J.mode!=="merge"?Rt():Se(B.map(fe=>fe.index)),Ve(()=>Du(B,J)),b4()}const ls=F(()=>yi.value&&ar.value),Hl=F(()=>{var B;return!ue.value&&I.batchRendering!==!1&&Tr.value>0&&((B=I.maxLiveNodes)!=null?B:0)<=0}),V9=F(()=>!ue.value&&Ct&&_t.value===!0&&!Cn.value&&!Ti.value&&!Io.value&&!ls.value&&!Hl.value),Za=F(()=>!!Vn&&ls.value),Ng=F(()=>Cn.value||an.value),{focusIndex:Al,liveRange:as,updateLiveRange:Bu}=(function(B,J){const{parsedNodeCount:fe,virtualizationEnabled:he,maxLiveNodesResolved:Ce,liveNodeBufferResolved:De,clamp:We}=J,Ze=De??F(()=>{var nt;return Math.max(0,(nt=B.liveNodeBuffer)!=null?nt:60)}),lt=K(0),Ge=jo({start:0,end:0});return{liveNodeBufferResolved:Ze,focusIndex:lt,liveRange:Ge,updateLiveRange:function(){const nt=fe.value;if(!he.value||nt===0)return Ge.start=0,void(Ge.end=nt);const rt=Math.min(Ce.value,nt),qe=Ze.value,it=We(lt.value-qe,0,Math.max(0,nt-rt));Ge.start=it,Ge.end=Math.min(nt,it+rt)}}})(I,{parsedNodeCount:vs,virtualizationEnabled:Cn,maxLiveNodesResolved:$s,liveNodeBufferResolved:Vi,clamp:zs}),Te=new Map,ct=new Map,at=new Map,Ht=[],Nn=new Map,no=new Set,Js=K(0);let zo=!1;const Wl=F(()=>(Js.value,no.size)),us=new Map,cr=new Map,zA=K(0),Z9=F(()=>{zA.value;let B=0;for(const J of us.values())B+=Math.max(0,J);return B});let nl=null;const Fg=F(()=>{if(!Cn.value)return It.value.length;const B=Vi.value,J=Math.max(as.end+B,Lr.value),fe=Math.min(It.value.length,J);return Math.max(Di.value,fe)});function Dg(){zo||(zo=!0,queueMicrotask(()=>{zo=!1,Js.value+=1}))}function OA(B,J,fe="node-resize"){if(!Q||typeof window>"u")return null;const he=window.setTimeout(()=>{no.delete(he)&&Dg();try{J()}finally{Qi(fe)}},Math.max(0,B));return no.add(he),Dg(),he}function Bg(B){Q&&B!=null&&(no.delete(B)&&Dg(),window.clearTimeout(B))}function PA(){if(Q&&typeof window<"u")for(const B of no)window.clearTimeout(B);no.size&&(no.clear(),Dg()),Ht.length=0,at.clear()}function RH(B){j.value=B}function zH(B){$.value=B}function OH(B){W.value=B}const{cancelScheduledFocusSync:G9,scheduleFocusSync:ql}=(function(B){const{isClient:J,containerRef:fe,virtualizationEnabled:he,requestFrame:Ce,cancelFrame:De,syncFocusToScroll:We}=B;let Ze=null;function lt(){var nt,rt,qe;return(qe=(rt=(nt=fe.value)==null?void 0:nt.ownerDocument)==null?void 0:rt.defaultView)!=null?qe:typeof window<"u"?window:null}function Ge(){if(!Ze)return;const nt=lt();Ze.viaTimeout?nt?nt.clearTimeout(Ze.id):clearTimeout(Ze.id):De?.(Ze.id),Ze=null}return{cancelScheduledFocusSync:Ge,scheduleFocusSync:function(nt={}){if(!he.value)return;if(!J)return void We(!0);if(nt.immediate)return Ge(),void We(!0);if(Ze)return;const rt=()=>{Ze=null,We()};if(Ce)return void(Ze={id:Ce(rt),viaTimeout:!1});const qe=lt();Ze={id:qe?qe.setTimeout(rt,16):setTimeout(rt,16),viaTimeout:!0}}}})({isClient:Q,containerRef:R,virtualizationEnabled:Cn,requestFrame:ji,cancelFrame:Fi,syncFocusToScroll:function(B=!1){var J;if(!Cn.value)return;const fe=Dn.value||ke();if(!fe)return;const he=fe.ownerDocument||((J=R.value)==null?void 0:J.ownerDocument)||document,Ce=he?.defaultView||(typeof window<"u"?window:null),De=fe===he?.documentElement||fe===he?.body,We=It.value.length;if(We<=0)return;if(!De&&We>0&&Ie(fe)){const ht=Nt("syncFocusToScroll.clientHeight",()=>fe.clientHeight||0),Dt=Nt("syncFocusToScroll.scrollTop",()=>fe.scrollTop),At=Dt<0?-Dt:Dt;return void zg(zs((Ze=Math.max(0,At)+.5*Math.max(0,ht),ii.estimateIndexForOffsetFromEnd(Ze)),0,Math.max(0,We-1)),B)}var Ze;const lt=(function(ht,Dt,At,qt){const Zt=R.value;if(!Zt)return null;const sn=qt?0:Nt("syncFocusToScroll.model.root.getBoundingClientRect",()=>ht.getBoundingClientRect().top),Xt=Nt("syncFocusToScroll.model.container.getBoundingClientRect",()=>Zt.getBoundingClientRect().top),ln=Math.max(0,sn-Xt),Fn=qt?Nt("syncFocusToScroll.model.viewport.clientHeight",()=>{var Pn,Mi,Os,_s;return(_s=(Os=(Mi=At?.innerHeight)!=null?Mi:(Pn=Dt.documentElement)==null?void 0:Pn.clientHeight)!=null?Os:ht.clientHeight)!=null?_s:0}):Nt("syncFocusToScroll.model.root.clientHeight",()=>ht.clientHeight);return zs(el(ln+.5*Math.max(0,Fn)),0,Math.max(0,It.value.length-1))})(fe,he,Ce,De);if(lt!=null)return void zg(lt,B);const Ge=De?null:Nt("syncFocusToScroll.root.getBoundingClientRect",()=>fe.getBoundingClientRect()),nt=De?0:Ge.top,rt=De?Nt("syncFocusToScroll.viewport.clientHeight",()=>{var ht,Dt;return(Dt=(ht=Ce?.innerHeight)!=null?ht:fe.clientHeight)!=null?Dt:0}):Ge.bottom,qe=je.value;let it=null,mt=null;for(const[ht,Dt]of qe){if(!Dt)continue;const At=Nt("syncFocusToScroll.slot.getBoundingClientRect",()=>Dt.getBoundingClientRect());At.bottom<=nt||At.top>=rt||(it==null&&(it=ht),mt=ht)}if(it==null||mt==null){const ht=R.value;if(!ht)return;const Dt=De?{top:0}:Nt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>fe.getBoundingClientRect()),At=Nt("syncFocusToScroll.fallback.scrollTop",()=>Oe(fe,he,De)),qt=De?(()=>{const sn=Nt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>ht.getBoundingClientRect()),Xt=(De?0:Dt.top)-sn.top;return Math.max(0,Xt)})():(()=>{const sn=we(ht,fe);return Math.max(0,At-sn)})(),Zt=De?Nt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var sn,Xt,ln,Fn;return(Fn=(ln=(Xt=Ce?.innerHeight)!=null?Xt:(sn=he?.documentElement)==null?void 0:sn.clientHeight)!=null?ln:fe.clientHeight)!=null?Fn:0}):Nt("syncFocusToScroll.fallback.root.clientHeight",()=>fe.clientHeight);return void zg(zs(el(qt+.5*Math.max(0,Zt)),0,Math.max(0,It.value.length-1)),!0)}zg(Math.round((it+mt)/2),B)}}),{visibleNodeIndices:Q9,nodeVisibilityHandles:_f,nodeVisibilityWatchStops:$g,nodeVisibilityFallbackTimers:jA,clearVisibilityFallback:Rg,markNodeVisible:$u,cleanupNodeVisibility:PH,destroyNodeVisibilityState:Y9}=CNe({isClient:Q,shouldTrackVisibleNodeIndices:()=>ls.value,shouldCleanupNodeVisibility:()=>Cn.value,onNodeMarkedVisible:B=>{Cn.value?ql():Al.value=zs(B,0,Math.max(0,It.value.length-1))},onNodeVisibilityCleaned:B=>{jn.delete(B)&&gC()}}),{cleanupScrollListener:HA,setupScrollListener:jH}=(function(B){const{isClient:J,virtualizationEnabled:fe,listenerEnabled:he,scrollRootElement:Ce,resolveScrollContainer:De,scheduleFocusSync:We,onScroll:Ze}=B;let lt=null,Ge=null;function nt(){lt&&(lt(),lt=null),Ge=null,Ce.value=null}function rt(qe){const it=B.getScrollTop?B.getScrollTop(qe):qe.scrollTop;return Math.max(0,Number.isFinite(it)?Math.abs(it):0)}return{cleanupScrollListener:nt,setupScrollListener:function(){if(!J)return;if(!((qe=he?.value)!=null?qe:fe.value))return void nt();var qe;const it=De();if(!it)return void nt();if(Ce.value===it&<)return;nt(),Ge=rt(it);const mt=()=>{if(Ze?.(),fe.value){const ht=(function(Dt){const At=rt(Dt),qt=Ge;Ge=At;const Zt=Math.max(480,.75*(Dt.clientHeight||0));return qt==null?At>Zt?{immediate:!0}:void 0:Math.abs(At-qt)>Zt?{immediate:!0}:void 0})(it);ht?We(ht):We()}};it.addEventListener("scroll",mt,{passive:!0}),Ce.value=it,lt=()=>{it.removeEventListener("scroll",mt)}}}})({isClient:Q,virtualizationEnabled:Cn,listenerEnabled:Ng,scrollRootElement:Dn,resolveScrollContainer:ke,scheduleFocusSync:ql,onScroll:function(){const B=vn.value;if(!B)return;const J=k1();if(!J||(function(he){if(S1()>=xs)return ro=null,!1;const Ce=ro;if(Ce==null)return!0;const De=Math.abs(he.scrollTop-Ce)<=2;return De||(ro=null),De})(J))return;const fe=iC(J);fe!=null?(fe<-32||Math.abs(Math.max(0,fe)-Math.max(0,B.distanceFromBottomPx))>32)&&Nf("restore"):Nf("restore")},getScrollTop:B=>{var J;const fe=B.ownerDocument||((J=R.value)==null?void 0:J.ownerDocument)||document,he=B===fe.documentElement||B===fe.body||B===fe.scrollingElement;return Nt("scrollListener.getScrollTop",()=>Oe(B,fe,he))}});function zg(B,J=!1){const fe=zs(B,0,Math.max(0,It.value.length-1));!J&&Math.abs(fe-Al.value)<=1||(Al.value=fe,Bu())}function zs(B,J,fe){return Math.min(Math.max(B,J),fe)}function J9(B=It.value.length){const J=ms();return!Number.isInteger(J)||J<0?B:zs(J,0,B)}function X9(B){return B?.firstElementChild}function WA(B,J){var fe;return B?(fe=B.matches)!=null&&fe.call(B,J)?B:B.querySelector(J):null}function HH(B,J){B<1||B>6||(P[B]=J)}function qA(){if(!Jn.value)return void(Y.value=0);const B=Nt("updateExperimentContainerWidth.clientWidth",()=>{var J,fe;return(fe=(J=R.value)==null?void 0:J.clientWidth)!=null?fe:0});Y.value=B>0?B:0}let y1=null;function e4(){y1?.disconnect(),y1=null}const UA=Ip("ViewportDeferredMarkdownCodeBlockNode",ia({loader:()=>Ji(null,null,function*(){return(yield Fo(()=>import("./index5-L7WSqVk4.js"),__vite__mapDeps([8,6,7]))).default}),loadingComponent:gy,delay:0,suspensible:!1}),gy);function KA(B){return B===UA}const VA=F(()=>g.value==="pre"?jr:g.value==="shiki"?UA:vk);function ZA(){var B;return((B=I.codeBlockProps)==null?void 0:B.showHeader)!==!1}function GA(B,J,fe){const he=vt[J],Ce=typeof he=="number"&&he>0;if(Mn.value&&!Ce&&!(function(De){return!!Yn.value.paragraph&&(De.type==="paragraph"||De.type==="list_item"||De.type==="list")})(B)){const De=bP(B,fe,oe.value);if(De)return De}if(rs.value&&B.type==="code_block"){const De=(function(We){if(We.type!=="code_block")return null;const Ze=MC(We,Zg(We));return KA(Ze)?"markdown":Ze===jr?"pre":Ze===VA.value||Ze===vk?"monaco":null})(B);if(De==="monaco"||De==="markdown"||De==="pre")return(function(We,Ze){var lt,Ge,nt;if(!We||We.type!=="code_block")return null;const rt=Ze.rendererKind,qe=rt!=="pre"&&Ze.showHeader!==!1,it=!!We.diff;let mt=0,ht=500;if(rt==="monaco"){const At=(lt=Ze.monacoOptions)!=null?lt:{},qt=_k(We,At,Ze.width),Zt=(function(Xt){const ln=typeof Xt?.fontSize=="number"&&Xt.fontSize>0?Xt.fontSize:12;return typeof Xt?.lineHeight=="number"&&Xt.lineHeight>0?Xt.lineHeight:Math.round(1.5*ln)})(At),sn=(function(Xt,ln){var Fn,Pn;const Mi=typeof((Fn=Xt?.padding)==null?void 0:Fn.top)=="number"?Xt.padding.top:ln?0:8,Os=typeof((Pn=Xt?.padding)==null?void 0:Pn.bottom)=="number"?Xt.padding.bottom:ln?0:8;return Math.max(0,Mi)+Math.max(0,Os)})(At,it);ht=typeof At.MAX_HEIGHT=="number"&&At.MAX_HEIGHT>0?At.MAX_HEIGHT:500,mt=Math.round(qt*Zt+sn)}else if(rt==="markdown"){const At=_k(We);mt=Math.round(21*At+32)}else{const At=_k(We);mt=Math.round(28*At),ht=Number.POSITIVE_INFINITY}const Dt=Math.max(1,Math.min(mt,ht));return Mt({kind:"code-block",height:Math.round(Dt+(qe?40:0)),contentHeight:Dt,rendererKind:rt},it&&rt==="monaco"?{diffInline:V7((Ge=Ze.monacoOptions)!=null?Ge:{},(nt=Ze.width)!=null?nt:0)}:{})})(B,{rendererKind:De,monacoOptions:I.codeBlockMonacoOptions,showHeader:ZA(),width:fe})}return null}Zk(()=>{if(Ro.value,ot>0)return;const B=It.value,J=Er();if(!B.length||!Wi.value)return Gi=[],oo=[],qi=-1,so.clear(),void(vo.value=Zi);const fe=Y.value||Nt("estimatedNodeHeights.clientWidth",()=>{var Ge;return((Ge=R.value)==null?void 0:Ge.clientWidth)||0});if(!Number.isFinite(fe)||fe<=0)return Gi=[],oo=[],qi=-1,so.clear(),void(vo.value=Zi);const he=(function(Ge){return[Math.round(Ge),Mn.value,rs.value,oe.value,I.codeBlockMonacoOptions,ZA(),g.value,Yn.value,wk.value]})(fe),Ce=Gi.length<=B.length&&(We=he,(De=oo).length===We.length&&De.every((Ge,nt)=>Object.is(Ge,We[nt])));var De,We;const Ze=Ce&&qi===J?B.length:Ce?J9(B.length):0,lt=Ce?Array.from(so):[];Gi.length=B.length;for(let Ge=Ze;Ge=0&&Gevo.value);ii=(function(B){let J=!0,fe=[0],he="";function Ce(nt){var rt;const qe=B.nodeHeights[nt];if(Number.isFinite(qe)&&qe>0)return qe;const it=B.parsedNodes.value[nt],mt=it?.type,ht=!!((rt=B.hasCustomParagraphComponent)!=null&&rt.call(B)),Dt=B.estimatedNodeHeights.value[nt],At=Dt?.height;if(!(function(Zt,sn,Xt){return!!(Xt&&sn?.kind==="simple-text"&&(Zt==="paragraph"||Zt==="list_item"||Zt==="list"))})(mt,Dt,ht)&&Number.isFinite(At)&&At>0)return At;const qt=cNe(it,B.getContainerWidth()||640);return mt==="heading"||mt==="paragraph"&&qt<=28&&(function(Zt,sn){if(sn)return!1;const Xt=Zt.children;return!Array.isArray(Xt)||!Xt.length||Xt.every(CP)})(it,ht)?qt:Math.max(B.averageNodeHeight.value,qt)}function De(){var nt;const rt=B.parsedNodes.value.length,qe=B.getPrefixCacheKeyParts().join(":");if(!J&&he===qe)return fe;const it=new Array(rt+1);it[0]=0;for(let mt=0;mt=((rt=mt[it])!=null?rt:0))return it-1;let ht=0,Dt=it-1,At=it-1;for(;ht<=Dt;){const qt=ht+Dt>>1;((qe=mt[qt+1])!=null?qe:0)>=nt?(At=qt,Dt=qt-1):ht=qt+1}return At}function Ze(nt,rt){var qe,it;if(nt>=rt)return 0;if(B.heightEstimationActive.value)return(function(Dt,At){var qt,Zt;const sn=B.parsedNodes.value.length,Xt=GE(Math.trunc(Dt),0,sn),ln=GE(Math.trunc(At),Xt,sn);if(Xt>=ln)return 0;const Fn=De();return((qt=Fn[ln])!=null?qt:0)-((Zt=Fn[Xt])!=null?Zt:0)})(nt,rt);if(B.heightTreeSize.value!==B.parsedNodes.value.length){let Dt=0;for(let At=nt;AtXt<=0?0:B.fenwickRangeSum(ht,0,Xt)+(Xt-B.fenwickRangeSum(Dt,0,Xt))*mt;let qt=0,Zt=qe.length-1,sn=qe.length-1;for(;qt<=Zt;){const Xt=qt+Zt>>1;At(Xt+1)>=nt?(sn=Xt,Zt=Xt-1):qt=Xt+1}return sn}let it=nt;for(let mt=0;mt0||nt++}return nt}return{markFallbackHeightPrefixDirty:function(){J=!0},getFallbackNodeHeight:Ce,estimateHeightRange:Ze,estimateIndexForOffset:lt,estimateIndexForOffsetFromEnd:function(nt){var rt,qe;const it=B.parsedNodes.value;if(!it.length)return 0;if(nt<=0)return Math.max(0,it.length-1);if(B.heightEstimationActive.value){const ht=(rt=De()[it.length])!=null?rt:0;return We(Math.max(0,ht-nt))}if(B.heightTreeSize.value===it.length){const ht=Ze(0,it.length);return lt(Math.max(0,ht-nt))}let mt=nt;for(let ht=it.length-1;ht>=0;ht--){const Dt=(qe=B.nodeHeights[ht])!=null?qe:B.averageNodeHeight.value;if(mt<=Dt)return ht;mt-=Dt}return 0},getEstimatedNodeHeightCount:Ge,buildVirtualHeightSummary:function(nt){var rt;const qe=B.parsedNodes.value.length;return{totalNodes:qe,measuredCount:B.heightStats.count,estimatedCount:Ge(),averageNodeHeight:B.averageNodeHeight.value,topSpacerHeight:nt.topSpacerHeight,bottomSpacerHeight:nt.bottomSpacerHeight,estimatedTotalHeight:Ze(0,qe),width:(rt=nt.width)!=null?rt:B.getContainerWidth()}}}})({parsedNodes:It,nodeHeights:vt,heightStats:Pt,heightTreeSize:fn,heightSumTree:dn,heightKnownTree:ui,averageNodeHeight:Ln,heightEstimationActive:Jn,estimatedNodeHeights:Mf,getContainerWidth:Ni,hasCustomParagraphComponent:()=>!!Yn.value.paragraph,getPrefixCacheKeyParts:()=>{var B;const J=X1(Y.value||Nt("getFallbackHeightPrefix.clientWidth",()=>{var he;return((he=R.value)==null?void 0:he.clientWidth)||0})),fe=((B=i.virtualScroll)==null?void 0:B.measurementKey)==null?"":String(i.virtualScroll.measurementKey);return[It.value.length,Pt.count,Math.round(Pt.total),Math.round(100*Ln.value),fe,J,Jn.value?1:0,wk.value,V.value,Yn.value.paragraph?1:0]},fenwickRangeSum:v1}),Pe(()=>It.value.length,B=>{var J;ai(),B<=0?Yt():(Bfi(J))),B!==fn.value&&Ui(B))},{immediate:!0});const WH=F(()=>{if(!Cn.value)return It.value.map((he,Ce)=>({node:he,index:Ce}));const B=It.value.length,J=zs(as.start,0,B),fe=zs(as.end,J,B);return It.value.slice(J,fe).map((he,Ce)=>({node:he,index:J+Ce}))}),t4=F(()=>Cn.value?Ss(0,Math.min(as.start,It.value.length)):0),n4=F(()=>{if(!Cn.value)return 0;const B=It.value.length;return Ss(Math.min(as.end,B),B)});function QA(){return ii.buildVirtualHeightSummary({topSpacerHeight:t4.value,bottomSpacerHeight:n4.value,width:ed()})}function qH(){const B=It.value,J=QA();return An(Mt({},J),{probe:{paragraphReady:!!oe.value.paragraph,listItemReady:!!oe.value.listItem,listWrapperOverhead:oe.value.listWrapperOverhead,headingReadyLevels:Object.entries(oe.value.headings).filter(([,fe])=>!!fe).map(([fe])=>Number(fe))},nodes:B.map((fe,he)=>{var Ce,De,We,Ze,lt,Ge,nt,rt,qe;return{index:he,type:fe.type,estimateKind:(De=(Ce=Mf.value[he])==null?void 0:Ce.kind)!=null?De:null,rendererKind:(Ze=(We=Mf.value[he])==null?void 0:We.rendererKind)!=null?Ze:null,estimatedHeight:(Ge=(lt=Mf.value[he])==null?void 0:lt.height)!=null?Ge:null,estimatedContentHeight:(rt=(nt=Mf.value[he])==null?void 0:nt.contentHeight)!=null?rt:null,measuredHeight:(qe=vt[he])!=null?qe:null}})})}function i4(){return i.indexKey!=null?String(i.indexKey):Ti.value?`virtual-${lo()}`:"markdown-renderer"}function YA(B){const J=String(B),fe=`${i4()}-`;if(!J.startsWith(fe))return null;const he=J.slice(fe.length).match(/^(\d+)(?:$|-)/);if(!he)return null;const Ce=Number(he[1]);return!Number.isInteger(Ce)||Ce<0||Ce>=It.value.length?null:Ce}function lo(){var B,J,fe;const he=(B=i.virtualScroll)==null?void 0:B.sessionKey;return String(he!=null&&he!==""?he:(fe=(J=i.indexKey)!=null?J:I.customId)!=null?fe:Lt)}function Vo(){var B;const J=(B=i.virtualScroll)==null?void 0:B.threadKey;return J==null||J===""?void 0:String(J)}const UH=F(()=>{var B,J,fe;return(fe=Vo())!=null?fe:String((J=(B=i.indexKey)!=null?B:I.customId)!=null?J:Lt)});function o4(B){var J;return(B??"")===((J=Vo())!=null?J:"")}function Ga(){var B,J,fe;return J=(B=i.virtualScroll)==null?void 0:B.measurementKey,fe=(function(){const he=g.value;return(function(Ce){var De,We;const Ze=Ce.renderer,lt=Ze==="monaco"?Ce.codeBlockMonacoOptions:void 0,Ge=Ce.codeBlockProps,nt=Ze==="shiki";return[Ce.isDark?"dark":"light",Ze==="monaco"?"code-rich":Ze==="pre"?"code-pre":"code-shiki",Ce.codeBlockStream===!1?"code-static":"code-stream",Ms(Ce.codeBlockMinWidth),Ms(Ce.codeBlockMaxWidth),...nt?[tEe((De=Ge?.themes)!=null?De:Ce.themes,(We=Ge?.langs)!=null?We:Ce.langs)]:[],Ms(lt?.fontSize),Ms(lt?.lineHeight),Ms(lt?.fontFamily),Ms(lt?.tabSize),Ms(lt?.MAX_HEIGHT),Ms(lt?.wordWrap),Ms(lt?.wrappingIndent),Ms(lt?.padding),Ms(Ge?.showHeader),Ms(Ge?.showCopyButton),Ms(Ge?.showExpandButton),Ms(Ge?.showPreviewButton),Ms(Ge?.showCollapseButton),Ms(Ge?.showFontSizeButtons)].join("\0")})({renderer:he,isDark:I.isDark,codeBlockStream:I.codeBlockStream,codeBlockMinWidth:I.codeBlockMinWidth,codeBlockMaxWidth:I.codeBlockMaxWidth,codeBlockMonacoOptions:he==="monaco"?I.codeBlockMonacoOptions:void 0,codeBlockProps:I.codeBlockProps,themes:he==="shiki"?I.themes:void 0,langs:he==="shiki"?I.langs:void 0})})(),[J==null?"":String(J),fe].join("\0")}function ed(){return Ni()}const Og=F(()=>X1(ed())),il=F(()=>[Ga(),Og.value].join("\0")),KH=F(()=>{var B;return Ti.value?["virtual",(B=Vo())!=null?B:"",lo(),il.value].join("\0"):i.indexKey});function If(){zA.value+=1}function s4(B){return!(!B||!Number.isInteger(B.index)||B.index<0||B.index>=It.value.length||B.sessionKey!==lo()||B.threadKey!==Vo()||B.layoutEpochKey!==il.value)}function JA(B){const J=String(B),fe=cr.get(J);return fe?s4(fe)?fe.index:null:YA(J)}function XA(B="async-node"){(us.size||cr.size)&&(us.clear(),cr.clear(),If(),Qi(B))}const Ef=hn(U8,null),r4={reportHeight(B,J){if(!an.value)return;const fe=JA(B);if(fe==null)return;const he=Te.get(fe);if(!he)return;const Ce=Number(J),De=Bi(fe,he);(function(We,Ze,lt={}){Ve(()=>ei(We,Ze,lt))})(fe,Number.isFinite(Ce)&&Ce>0?Math.max(Ce,De||0):De)},markPending(B){if(!an.value)return;const J=YA(B);J!=null&&(function(fe,he){var Ce;const De=cr.get(fe);if(De&&s4(De))return us.set(fe,Math.max(0,(Ce=us.get(fe))!=null?Ce:0)+1),If(),void Qi("async-node");us.set(fe,1),cr.set(fe,(function(We){return{index:We,sessionKey:lo(),threadKey:Vo(),layoutEpochKey:il.value}})(he)),If(),Qi("async-node")})(String(B),J)},markSettled(B){if(!an.value)return;const J=String(B),fe=JA(B);(fe!=null||(function(he){return us.has(String(he))})(J))&&(function(he){var Ce;const De=(Ce=us.get(he))!=null?Ce:0;return!(De<=0||(De<=1?(us.delete(he),cr.delete(he)):us.set(he,De-1),If(),De===1&&Qi("async-node"),0))})(J)&&fe!=null&&Qa()}};function VH(){let B=0;for(const J of Te.values())B+=Nt("getVisibleDomHeight.offsetHeight",()=>{var fe;return(fe=J?.offsetHeight)!=null?fe:0});return Math.ceil(Math.max(0,B))}oi(U8,{reportHeight(B,J){r4.reportHeight(B,J),Ef?.reportHeight(B,J)},markPending(B){r4.markPending(B),Ef?.markPending(B)},markSettled(B){r4.markSettled(B),Ef?.markSettled(B)}});let l4,a4=null,Tf=null;function Pg(B){return B!==!1&&B!=null&&B!==""}function eC(){return Cn.value?(function(){if(!Cn.value)return!0;const B=It.value.length,J=zs(as.start,0,B),fe=zs(as.end,J,B);if(J>=fe)return!0;for(let he=J;he=Fg.value}function u4(){return _t.value===!0&&!$t.value&&Z9.value===0&&no.size===0&&Nn.size===0&&nl==null&&eC()}function tC(){var B,J;if(((B=i.virtualScroll)==null?void 0:B.settleMode)!=="manual"||a4===lo()&&l4===Vo())return!0;const fe=(J=i.virtualScroll)==null?void 0:J.settledToken;return!!Pg(fe)&&Tf===N1(fe)}function c4(){return u4()&&tC()}function ZH(B,J){return J.totalNodes<=0?B==="final"?"final":"estimate":J.measuredCount>=J.totalNodes?B==="final"?"final":"measured":J.measuredCount>0||J.estimatedCount>0?"mixed":"estimate"}function td(B="manual",J){const fe=QA(),he=(function(Ce){return Ce||(_t.value!==!0?It.value.length>0?"streaming":"estimating":!eC()||Nn.size>0||nl!=null?"measuring":c4()?"settled":"settling")})(J);return{sessionKey:lo(),threadKey:Vo(),phase:he,nodeCount:fe.totalNodes,liveRange:{start:as.start,end:as.end},renderedCount:Di.value,measuredCount:fe.measuredCount,estimatedCount:fe.estimatedCount,averageNodeHeight:fe.averageNodeHeight,topSpacerHeight:fe.topSpacerHeight,bottomSpacerHeight:fe.bottomSpacerHeight,visibleDomHeight:VH(),totalHeight:nC(),width:fe.width,final:_t.value===!0,stable:c4(),confidence:ZH(he,fe),reason:B}}function k1(){const B=Dn.value||ke(),J=R.value;if(!B||!J)return null;const fe=B.ownerDocument||J.ownerDocument||document,he=B===fe.documentElement||B===fe.body||B===fe.scrollingElement,Ce=Nt("getScrollBox.scrollTop",()=>Oe(B,fe,he)),De=Nt("getScrollBox.scrollHeight",()=>{var Ze,lt,Ge,nt,rt;return he?Math.max((lt=(Ze=fe.documentElement)==null?void 0:Ze.scrollHeight)!=null?lt:0,(nt=(Ge=fe.body)==null?void 0:Ge.scrollHeight)!=null?nt:0,(rt=B.scrollHeight)!=null?rt:0):B.scrollHeight}),We=Nt("getScrollBox.clientHeight",()=>{var Ze;return he?((Ze=fe.documentElement)==null?void 0:Ze.clientHeight)||B.clientHeight||0:B.clientHeight});return{root:B,doc:fe,isViewportRoot:he,scrollTop:Ce,scrollHeight:De,clientHeight:We}}function nC(){const B=It.value.length,J=Math.max(0,Ss(0,B)),fe=Nt("getRendererLogicalHeight.offsetHeight",()=>{var Ce,De;return(De=(Ce=R.value)==null?void 0:Ce.offsetHeight)!=null?De:0}),he=Math.max(0,fe>0?fe:Nt("getRendererLogicalHeight.scrollHeight",()=>{var Ce,De;return(De=(Ce=R.value)==null?void 0:Ce.scrollHeight)!=null?De:0}));return B<=0?Math.ceil(fe):Cn.value?J>0?Math.max(1,Math.ceil(J),(function(){let Ce=t4.value+n4.value;for(const De of jn.values())De&&(Ce+=Math.max(0,Nt("getVirtualizedDomLogicalHeight.offsetHeight",()=>De.offsetHeight||0)));return Math.ceil(Math.max(0,Ce))})(),(function(Ce,De){return Ce<=0||De<=0?0:De<=Ce+Math.max(512,.05*Ce)?Math.ceil(De):0})(J,he)):Math.max(1,Math.ceil(he)):an.value?J>0||Pt.count>0||ii.getEstimatedNodeHeightCount()>0?(Nr.value&&Di.value,Math.max(1,Math.ceil(he),Math.ceil(J))):Math.ceil(he):Math.max(1,Math.ceil(he),Math.ceil(J))}function iC(B){const J=R.value;if(!J)return null;const fe=Nt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>J.getBoundingClientRect());return(function(Ce){return Ce.isViewportRoot?Ce.clientHeight:Nt("getViewportBottomInRoot.getBoundingClientRect",()=>Ce.root.getBoundingClientRect().bottom)})(B)-fe.bottom}function GH(B={}){const J=B.requireViewport!==!1,fe=(function(De=64){const We=k1(),Ze=R.value;if(!We||!Ze)return!1;const lt=(function(nt){if(nt.isViewportRoot)return{top:0,bottom:nt.clientHeight};const rt=Nt("getVirtualViewportRect.getBoundingClientRect",()=>nt.root.getBoundingClientRect());return{top:rt.top,bottom:rt.bottom}})(We),Ge=Nt("isRendererNearVirtualViewport.getBoundingClientRect",()=>Ze.getBoundingClientRect());return Ge.bottom>=lt.top-De&&Ge.top<=lt.bottom+De})();if(J&&!fe)return null;const he=(function(){const De=k1(),We=R.value;if(!De||!We||Math.max(0,De.scrollHeight-De.scrollTop-De.clientHeight)>64)return null;const Ze=iC(De);return Ze==null?null:Ze>=-8&&Ze<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,Ze)}:null})();if(he)return{anchor:he,captured:!0};const Ce=Qe();if(Ce)return{anchor:{type:"node",nodeIndex:Ce.nodeIndex,offsetWithinNodePx:Ce.offsetWithinNodePx},captured:fe};if(B.allowFallback===!0){const De=(function(){const We=It.value.length;return We<=0?null:{type:"node",nodeIndex:zs(Al.value,0,Math.max(0,We-1)),offsetWithinNodePx:0}})();return De?{anchor:De,captured:!1}:null}return null}function d4(B){let J=2166136261;for(let fe=0;fe>>0).toString(36)}function QH(B,J){let fe=B;for(let he=0;he8192?`${he.slice(0,8192)}...${he.length}`:he;return`${he.length}:${d4(Ce)}`})(B)}`;if(typeof B=="function")return"fn";if(typeof B!="object")return typeof B;if(J.has(B))return"cycle";if(fe>=6)return"max-depth";J.add(B);try{if(Array.isArray(B)){if(B.length<=160){const Ge=[];for(let nt=0;nt=Ze&&We.push(nt)}return[`a:${B.length}`,`h=${De.join(",")}`,`t=${We.join(",")}`,`all=${(lt>>>0).toString(36)}`].join(":")}const he=B,Ce=Object.keys(he).filter(De=>{const We=he[De];return De!=="parent"&&De!=="el"&&De!=="component"&&(We==null||typeof We=="string"||typeof We=="number"||typeof We=="boolean"||YH.has(De))}).sort();return`o:${Ce.length}:${Ce.map(De=>`${De}=${jg(he[De],J,fe+1)}`).join(";")}`}finally{J.delete(B)}}let f4=-1,h4="",nd=[2166136261];function b1(B){const J=It.value[B];return J?d4(jg(J)):""}function JH(B,J){let fe=B;for(let he=0;he>>0}function p4(){var B,J;const fe=V.value;if(f4===fe)return h4;const he=It.value.length;let Ce=J9(he);(f4!==fe-1||Ce>he||nd.length>>0).toString(36),f4=fe,h4}function Lf(B,J={}){var fe;const he=J.includeHeightCache===!0,Ce=(fe=J.includeContentHash)!=null?fe:he,De=he?(function(Ze){const lt=(function(){var ht,Dt;const At=Number((Dt=(ht=i.virtualScroll)==null?void 0:ht.heightCacheLimit)!=null?Dt:5e3);return!Number.isFinite(At)||At<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(At))})();if(!Number.isFinite(lt)||Ze.length<=lt)return Ze;const Ge=new Map,nt=ht=>{!ht||Ge.size>=lt||Ge.set(ht.index,ht)},rt=It.value.length,qe=zs(as.start-2*Vi.value,0,rt),it=zs(as.end+2*Vi.value,qe,rt);for(const ht of Ze)ht.index>=qe&&ht.index=0&&Ge.sizeht.index-Dt.index).slice(0,lt)})(ka().map(Ze=>{var lt;const Ge=It.value[Ze.index];return Ge?An(Mt({},Ze),{nodeType:String((lt=Ge.type)!=null?lt:""),signature:b1(Ze.index)}):null}).filter(Ze=>!!Ze)):[],We=GH({allowFallback:J.allowAnchorFallback===!0,requireViewport:J.requireViewport});return We||De.length||J.includeEmptyState===!0?An(Mt({sessionKey:B.sessionKey,threadKey:B.threadKey},We?{anchor:We.anchor,anchorCaptured:We.captured}:{anchorCaptured:!1}),{metrics:B,width:B.width,contentHash:Ce?p4():void 0,measurementKey:Ga()||void 0,heightCache:De.length?De:void 0}):null}function g4(B){var J,fe;const he=k1();if(!he)return;const Ce=(function(Ze){const lt=R.value;if(!lt)return null;const Ge=we(lt,Ze.root),nt=It.value.length,rt=Nt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>lt.offsetHeight||0),qe=Math.max(0,rt>0?rt:nt>0?Nt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>lt.scrollHeight||0):0),it=nC();return Ge+Math.max(qe,it)})(he);if(Ce==null)return;const De=Math.max(0,B.distanceFromBottomPx),We=Math.max(0,Ce-he.clientHeight-De);(function(Ze){xs=S1()+120,ro=Ze})(We),he.isViewportRoot?(fe=(J=he.doc.defaultView)==null?void 0:J.scrollTo)==null||fe.call(J,0,We):KE(he.root,he.doc,We,{isReverseFlexScrollRoot:Ie,getNormalizedScrollTop:Oe})}const m4=[];function oC(){if(Q)for(ws!=null&&(Fi?.(ws),ws=null);m4.length;){const B=m4.pop();B!=null&&window.clearTimeout(B)}}function Nf(B){const J=!!vn.value;vn.value=null,xs=0,ro=null,oC(),J&&B&&Qi(B)}function Ff(){if(!vn.value||!Q||ws!=null)return;const B=()=>{ws=null;const J=vn.value;J&&g4(J)};ws=ji?ji(B):null,ws==null&&B()}function sC(B,J={}){const fe=It.value.length;return fe<=0?[]:B.filter(he=>!(!Number.isInteger(he.index)||he.index<0||he.index>=fe)&&!(!Number.isFinite(he.height)||he.height<=0)&&!(J.requireSignature&&!he.signature)&&!(J.requireCompatibilityMetadata&&!he.nodeType&&!he.signature)&&(function(Ce){var De;const We=It.value[Ce.index];return!(!We||Ce.nodeType&&Ce.nodeType!==String((De=We.type)!=null?De:"")||Ce.signature&&Ce.signature!==b1(Ce.index))})(he))}function rC(B){const J=X1(ed()),fe=X1(B);return J!==-1&&fe!==-1&&J===fe}function v4(B){var J;const fe=Number(B?.width);if(Number.isFinite(fe)&&fe>0)return fe;const he=Number((J=B?.metrics)==null?void 0:J.width);return Number.isFinite(he)&&he>0?he:null}function lC(B){var J;return B.sessionKey===lo()&&!!o4(B.threadKey)&&((J=B.measurementKey)!=null?J:"")===Ga()&&!!rC(v4(B))&&!!(function(fe){const he=fe.heightCache;return!!he?.length&&(aC(fe)?he.some(Ce=>!!(Ce.nodeType||Ce.signature)):he.some(Ce=>!!Ce.signature))})(B)}function aC(B){return!!(B.contentHash&&B.contentHash===p4())}function XH(B){return!aC(B)}let id=null,od=null,Hg=null,A1=null,C1=null;function y4(B){var J;const fe=B.map(Ce=>{var De,We;return[Ce.index,Math.round(10*Ce.height),(De=Ce.nodeType)!=null?De:"",(We=Ce.signature)!=null?We:""].join("")}).join(""),he=X1(ed());return[(J=Vo())!=null?J:"",lo(),Ga(),It.value.length,he,B.length,d4(fe)].join(":")}function uC(B=(J=>(J=i.virtualScroll)==null?void 0:J.heightCache)()){if(!an.value||!B?.length||It.value.length<=0||!rC((J=i.virtualScroll)==null?void 0:J.heightCacheWidth))return!1;var J;const fe=sC(B,{requireSignature:!0});if(!fe.length)return!1;const he=y4(fe);return he===id?(od="standalone",!0):(Ko(fe,{mode:"merge"}),ai(),id=he,od="standalone",M1(),Qi("restore"),!0)}function k4(B,J={}){var fe,he,Ce;if(!an.value||!B||B.sessionKey!==lo()||!o4(B.threadKey)||It.value.length<=0)return!1;const De=!!((fe=B.heightCache)!=null&&fe.length)&&!Wg(),We=!B.anchor||B.anchorCaptured===!1&&J.allowUncapturedAnchor!==!0?null:B.anchor,Ze=J.restoreAnchor===!0&&!!We&&!Wg()&&Number(v4(B))>0;let lt=!1;if((he=B.heightCache)!=null&&he.length&&lC(B)){const nt=sC(B.heightCache,{requireCompatibilityMetadata:!B.contentHash,requireSignature:XH(B)});nt.length&&(Ko(nt,{mode:"merge"}),ai(),id=y4(nt),od="restore",M1(),lt=!0)}if(De||Ze)return!1;if(!J.restoreAnchor||!We)return lt&&Qi("restore"),!0;const Ge=(function(nt,rt){var qe;const it=nt.anchor,mt=it?it.type==="bottom"?`bottom:${Math.round(it.distanceFromBottomPx)}`:`node:${it.nodeIndex}:${Math.round(it.offsetWithinNodePx)}`:"none";return[(qe=Vo())!=null?qe:"",lo(),Ga(),Og.value,rt,mt].join(":")})(B,(Ce=J.restoreToken)!=null?Ce:"imperative");return Hg===Ge?(lt&&Qi("restore"),!0):(Hg=Ge,(function(nt){const rt=()=>{if(nt.type==="node")return Nf(),void Je({nodeIndex:nt.nodeIndex,offsetWithinNodePx:nt.offsetWithinNodePx});if(Me(),ur.value=null,vn.value=nt,oC(),g4(nt),Q)for(const qe of[0,120,280,480])m4.push(window.setTimeout(()=>{const it=vn.value;it&&g4(it)},qe))};(function(qe){if(!Cn.value)return!1;const it=It.value.length;return!(it<=0||(Al.value=qe.type==="node"?zs(qe.nodeIndex,0,it-1):it-1,Bu(),0))})(nt)?dt(rt):rt()})(We),Qi("restore"),!0)}function Wg(){const B=ed();return Number.isFinite(B)&&B>0}function cC(B){var J;return B.sessionKey===lo()&&!!o4(B.threadKey)&&(It.value.length<=0||!(!((J=B.heightCache)!=null&&J.length)||Wg())||!(!(B.anchor&&Number(v4(B))>0)||Wg()))}function b4(){rn.clear();for(const B of Object.keys(vt)){const J=Number(B);Number.isInteger(J)&&J>=0&&J{let J=!1,fe=null;const he=()=>{J||(J=!0,fe!=null&&window.clearTimeout(fe),B())};if(ji)return ji(he),void(fe=window.setTimeout(he,50));fe=window.setTimeout(he,0)})}function A4(B,J=Vo(),fe=il.value){return lo()===B&&Vo()===J&&il.value===fe}function C4(){return Ji(this,arguments,function*(B={}){var J,fe,he,Ce,De;const We=lo(),Ze=Vo(),lt=il.value,Ge=(J=B.frames)!=null?J:2,nt=(fe=B.timeoutMs)!=null?fe:120,rt=(he=B.reason)!=null?he:"manual",qe=B.expectedSettledTokenKey,it=B.flushPendingTimers===!0,mt=td(rt),ht=()=>An(Mt({},mt),{phase:mt.final?"settling":mt.phase,stable:!1,confidence:mt.confidence==="final"?"mixed":mt.confidence,reason:rt}),Dt=()=>A4(We,Ze,lt)&&(qe==null||_1()===qe);for(let sn=0;snwindow.setTimeout(Xt,sn))})(nt),!Dt()||(it&&PA(),Qa(),w1(),!Dt()))return ht();const At=u4();At&&(a4=We,l4=Ze,((Ce=i.virtualScroll)==null?void 0:Ce.settleMode)==="manual"&&qe!=null&&Pg((De=i.virtualScroll)==null?void 0:De.settledToken)&&_1()===qe&&(Tf=N1(i.virtualScroll.settledToken)));const qt=Dt()&&At&&tC(),Zt=td(rt,qt?"final":void 0);return M4(Zt,!0),Zt})}let w4="content",sd=null,rd=null,x4=0,x1=null,Df=null,S4=null,_4=null;function S1(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function fC(B){var J,fe;const he=x1;if(!he)return!0;const Ce=(fe=(J=i.virtualScroll)==null?void 0:J.heightDiffThresholdPx)!=null?fe:1;return Math.abs(B.totalHeight-he.totalHeight)>Ce||B.sessionKey!==he.sessionKey||B.phase!==he.phase||B.stable!==he.stable||B.final!==he.final||B.threadKey!==he.threadKey||B.nodeCount!==he.nodeCount||B.measuredCount!==he.measuredCount||B.width!==he.width}function _1(B=(J=>(J=i.virtualScroll)==null?void 0:J.settledToken)()){return Ms(B)}function hC(B,J){var fe,he;return[B,J.sessionKey,(fe=J.threadKey)!=null?fe:"",Ga(),p4(),Ms((he=i.virtualScroll)==null?void 0:he.settledToken),Math.round(J.totalHeight),Math.round(J.width)].join("\0")}function M1(){S4=null,_4=null,Df=null}function eW(B){const J=B.heightCache;return J?.length?y4(J):""}function I1(B){var J,fe,he;const Ce=B.metrics,De=B.anchor?(We=B.anchor).type==="bottom"?`bottom:${Math.round(We.distanceFromBottomPx)}`:`node:${We.nodeIndex}:${Math.round(We.offsetWithinNodePx)}`:"none";var We;return[B.sessionKey,(J=B.threadKey)!=null?J:"",(fe=B.measurementKey)!=null?fe:Ga(),(he=B.contentHash)!=null?he:"",eW(B),De,B.anchorCaptured?1:0,Ce.liveRange.start,Ce.liveRange.end,Ce.renderedCount,Ce.nodeCount,Math.round(Ce.totalHeight),Math.round(Ce.width),Ce.phase,Ce.stable?1:0].join("\0")}function M4(B,J=!1){if(!an.value||(function(We=!1){return!We&&Ti.value&&!to.value})(J))return;const fe=J||fC(B),he=(function(We,Ze=!1){return Ze||We.stable||We.phase==="final"?{state:Lf(We,{includeHeightCache:!0})}:{state:Lf(We)}})(B,J),Ce=he.state,De=!!(Ce&&(fe||(function(We,Ze=!1){return!!Ze||I1(We)!==Df})(Ce,J)));if(fe&&(z(B),x1=B,x4=S1()),Ce&&De&&(H(Ce),Ce.anchor&&O(Ce.anchor),Df=I1(Ce)),B.stable){const We=hC("settled",B);if(We!==S4){S4=We;const Ze=Lf(B,{includeHeightCache:!0});Ze&&(H(Ze),Df=I1(Ze)),(function(lt){o("render-settled",lt)})(B)}}if(B.phase==="final"){const We=hC("final",B);if(We!==_4){_4=We;const Ze=Lf(B,{includeHeightCache:!0});Ze&&(H(Ze),Df=I1(Ze)),(function(lt){o("render-final",lt)})(B)}}}function I4(){sd!=null&&(Fi?.(sd),sd=null),rd!=null&&Q&&(window.clearTimeout(rd),rd=null)}function pC(){sd=null,rd=null,(function(B){if(Nn.size>0||nl!=null)return!0;switch(B){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(w4)&&(Qa(),w1()),M4(td(w4))}function Qi(B){var J,fe;if(!an.value||(w4=B,sd!=null||rd!=null))return;const he=Math.max(0,(fe=(J=i.virtualScroll)==null?void 0:J.emitIntervalMs)!=null?fe:32),Ce=Math.max(0,he-(S1()-x4)),De=()=>{rd=null,sd=ji?ji(pC):null,sd==null&&pC()};Q&&Ce>0?rd=window.setTimeout(De,Ce):De()}function gC(){xe.value+=1}function qg(B){if(Nr.value&&B>=Di.value){const J=It.value[B],fe=ut.value===!0&&_t.value!==!0&&B>=It.value.length-2,he=J?.type==="code_block"||J?.type==="image"||J?.type==="mermaid"||J?.type==="infographic";if(!fe||he)return!1}return!ls.value||B=Ne.value&&(Z.value||(Z.value=!0,Y9()),!Za.value||!Vn))return Bf(B),void(J&&$u(B,!0));if(B{if(jA.delete(De),!ls.value||Q9.value.has(De))return;const lt=jn.get(De);if(!lt)return;const Ge=ke(lt),nt=lt.ownerDocument||document,rt=nt.defaultView||window,qe=!Ge||Ge===nt.documentElement||Ge===nt.body,it=!qe&&Ge?Nt("nodeVisibilityFallback.root.getBoundingClientRect",()=>Ge.getBoundingClientRect()):null,mt=qe?0:it.top,ht=qe?Nt("nodeVisibilityFallback.clientHeight",()=>{var At,qt;return(qt=(At=rt.innerHeight)!=null?At:Ge?.clientHeight)!=null?qt:0}):it.bottom,Dt=Nt("nodeVisibilityFallback.node.getBoundingClientRect",()=>lt.getBoundingClientRect());Dt.bottom>=mt-500&&Dt.top<=ht+500&&$u(De,!0)},1800+We);jA.set(De,Ze)})(B);let Ce=null;Ce=Pe(()=>he.isVisible.value,De=>{if(De){Rg(B),$u(B,!0),Ce?.(),$g.delete(B),_f.get(B)===he&&_f.delete(B);try{he.destroy()}catch{}}},{immediate:!0}),$g.set(B,Ce),Cn.value&&ql()}function E4(){nl=null,Ve(()=>{let B=!1;for(const[J,fe]of Nn)Nn.delete(J),Te.get(J)===fe.el&&ct.get(J)===fe.version&&(B=ei(J,fe.height,{allowShrink:fe.allowShrink})||B);return B})}function $f(){nl!=null&&(Fi?.(nl),nl=null),Nn.clear()}function Kg(B,J){(function(fe,he,Ce){var De;if(!Number.isFinite(Ce)||Ce<=0||Te.get(fe)!==he)return;const We=ct.get(fe);if(We==null)return;const Ze=It.value[fe],lt=$t.value&&_t.value!==!0&&!((De=i.nodes)!=null&&De.length)&&fe>=It.value.length-2,Ge=!(Ze?.loading===!0||lt),nt=Nn.get(fe),rt=nt?nt.allowShrink&&Ge:Ge,qe=nt&&!rt?Math.max(nt.height,Ce):Ce;Nn.set(fe,{height:qe,allowShrink:rt,version:We,el:he}),nl==null&&(nl=ji?ji(E4):null,nl==null&&E4())})(B,J,Bi(B,J))}function Qa(){for(const[B,J]of Te)J&&Kg(B,J)}function mC(){yt?.disconnect(),yt=null,Ke.clear()}function T4(){for(;Ht.length;)Bg(Ht.pop())}Pe(to,B=>{B&&Qi("content")},{flush:"post"}),t({getVirtualMetrics:td,captureVirtualState:function(B={}){var J;return Lf(td("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:B.allowFallbackAnchor===!0,requireViewport:B.requireViewport===!0,includeEmptyState:(J=B.includeEmptyState)==null||J})},restoreVirtualState:function(B,J={}){const fe=J.restoreAnchor===!0,he=J.restoreToken==null?"imperative":String(J.restoreToken);A1=B,C1={restoreAnchor:fe,restoreToken:he,allowUncapturedAnchor:J.allowUncapturedAnchor===!0},!k4(B,{restoreAnchor:fe,restoreToken:he,allowUncapturedAnchor:J.allowUncapturedAnchor===!0})&&cC(B)||(A1=null,C1=null)},forceMeasure:function(B="manual"){return Ji(this,null,function*(){yield dt(),yield dC(),Qa(),w1(),yield dt();const J=td(B);return M4(J,!0),J})},settle:C4,scrollToNode:function(B,J="start"){Nf(),Me();const fe=It.value.length;if(fe<=0)return;const he=zs(B,0,fe-1),Ce=()=>{var De;const We=me({nodeIndex:he,offsetWithinNodePx:0}),Ze=Ys(he),lt=k1(),Ge=(De=lt?.clientHeight)!=null?De:0,nt=tl();let rt=We;if(J==="center")rt=We-Ge/2+Ze/2;else if(J==="end")rt=We-Ge+Ze;else if(J==="nearest"&&nt!=null){if(We>=nt&&We+Ze<=nt+Ge)return;rt=WeRs.value,B=>{if(!B){mC();for(const J of at.values())for(const fe of J)Bg(fe);at.clear(),ct.clear(),T4(),$f()}},{immediate:!0}),Pe(_t,B=>{B&&(function(){if(Q&&_t.value&&Te.size){T4();for(const J of[80,240,640]){const fe=OA(J,()=>{for(const[he,Ce]of Te)Ce&&Kg(he,Ce)},"final");fe!=null&&Ht.push(fe)}}})(),Qi(B?"final":"content")});const tW=VE(()=>Qi("content"),16),nW=VE(()=>Qi("batch"),16);Pe([()=>It.value.length,()=>Di.value],()=>{vn.value&&Ff(),tW()},{flush:"post",immediate:!0}),Pe([()=>as.start,()=>as.end],()=>{nW()},{flush:"post"});const{cleanupBatchScheduler:iW}=(function(B){const{props:J,isClient:fe,isTestEnv:he,parsedNodesIdentity:Ce,parsedNodeCount:De,desiredRenderedCount:We,datasetKey:Ze,batchingEnabled:lt,incrementalRenderingActive:Ge,resolvedBatchSize:nt,resolvedInitialBatch:rt,renderedCount:qe,adaptiveBatchSize:it,previousRenderContext:mt,previousBatchConfig:ht,requestFrame:Dt,cancelFrame:At,hasIdleCallback:qt,cleanupNodeVisibility:Zt,onDatasetKeyChanged:sn,onDatasetChanged:Xt}=B;let ln=null,Fn="raf",Pn=null,Mi=0,Os=!1,_s=!1;const Ul=new Set,ba=new Set;function R1(){if(fe){ln!=null&&(Fn==="raf"&&At?At(ln):Fn==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(ln):Fn==="timeout"&&window.clearTimeout(ln),ln=null),Mi+=1;for(const Xs of Ul)At&&At(Xs);for(const Xs of ba)window.clearTimeout(Xs);Ul.clear(),ba.clear(),Pn=null,Os=!1,_s=!1}}function tm(){return typeof performance<"u"?performance.now():Date.now()}function DC(Xs){(function(Ya){var zu;if(!Ge.value)return;const Ja=Math.max(2,(zu=J.renderBatchBudgetMs)!=null?zu:6),Xa=Math.max(1,nt.value||1),Kl=Math.max(1,Math.floor(Xa/4));Ya>1.5*Ja?it.value=Math.max(Kl,Math.floor(.8*it.value)):Ya<.6*Ja&&it.value=Ja)return;const Xa=Math.max(1,Xs),Kl=()=>{const Of=tm();ln=null;const z1=Pn??Xa;Pn=null;const Pf=tm();qe.value=Math.min(Ja,qe.value+z1),Zt(qe.value),(function(R4,nm){if(!fe)return void DC(nm);Os=!0;const zC=++Mi;dt().then(()=>{var OC;if(zC!==Mi)return;const xW=tm(),SW=Math.max(nm,xW-R4),PC=()=>{zC===Mi&&DC(SW)};if(Dt){let ad=null,jf=null,HC=!1;const WC=()=>{HC||(HC=!0,ad!==null&&(Ul.delete(ad),ad=null),jf!==null&&(ba.delete(jf),window.clearTimeout(jf),jf=null),PC())};return ad=Dt(()=>{WC()}),Ul.add(ad),jf=window.setTimeout(()=>{ad!==null&&At&&At(ad),WC()},Math.max(32,(OC=J.renderBatchIdleTimeoutMs)!=null?OC:120)),void ba.add(jf)}const jC=window.setTimeout(()=>{ba.delete(jC),PC()},0);ba.add(jC)})})(Of,tm()-Pf)};if(!fe||Br.immediate)return void Kl();const Ou=Math.max(0,(Ya=J.renderBatchDelay)!=null?Ya:16);if(Pn=Pn!=null?Math.max(Pn,Xa):Xa,ln==null){if(!he&&qt&&window.requestIdleCallback){const Of=Math.max(0,(zu=J.renderBatchIdleTimeoutMs)!=null?zu:120);return Fn="idle",void(ln=window.requestIdleCallback(()=>Kl(),{timeout:Of}))}if(Dt&&!he)return Fn="raf",void(ln=Dt(()=>{Ou===0?Kl():(Fn="timeout",ln=window.setTimeout(()=>Kl(),Ou))}));Fn="timeout",ln=window.setTimeout(()=>Kl(),Ou)}}function $C(Xs,Br={}){Os?_s=!0:Xs==null?RC():BC(Xs,Br)}function RC(){Ge.value&&BC(lt.value?Math.max(1,Math.round(it.value)):Math.max(1,nt.value))}return Pe([Ce,De,Ze,Ge,nt,rt,()=>J.renderBatchDelay],()=>{var Xs;const Br=De.value,Ya=mt.value,zu=Ze.value,Ja=!Object.is(zu,Ya.key),Xa=Br!==Ya.total,Kl=Ja||Xa;mt.value={key:zu,total:Br};const Ou=ht.value,Of=(Xs=J.renderBatchDelay)!=null?Xs:16,z1=Ou.batchSize!==nt.value||Ou.initial!==rt.value||Ou.delay!==Of||Ou.enabled!==Ge.value;ht.value={batchSize:nt.value,initial:rt.value,delay:Of,enabled:Ge.value},Ja&&sn(Br),(Kl||z1||!Ge.value)&&R1(),(Kl||z1)&&(it.value=Math.max(1,nt.value||1)),Kl&&Xt();const Pf=We.value;if(!Br)return qe.value=0,void Zt(0);if(!Ge.value)return qe.value=Pf,void Zt(qe.value);const R4=Ja||Ya.total===0;qe.value=R4||z1?Math.min(Pf,rt.value):Math.min(qe.value,Pf);const nm=Math.max(1,rt.value||nt.value||Br);qe.value{Ge.value&&(typeof Br=="number"&&Xs<=Br||Xs>qe.value&&$C())}),{cleanupBatchScheduler:R1}})({props:I,isClient:Q,isTestEnv:As,parsedNodesIdentity:mo,parsedNodeCount:vs,desiredRenderedCount:Fg,datasetKey:KH,batchingEnabled:jl,incrementalRenderingActive:Nr,resolvedBatchSize:Tr,resolvedInitialBatch:Lr,renderedCount:Di,adaptiveBatchSize:Cs,previousRenderContext:Xn,previousBatchConfig:Uo,requestFrame:ji,cancelFrame:Fi,hasIdleCallback:bs,cleanupNodeVisibility:PH,onDatasetKeyChanged:B=>{$f(),Yt(),ai(),M1(),B>0&&Ui(B)},onDatasetChanged:()=>{Cn.value&&ql({immediate:!0})}});Pe([Ng,Cn,()=>R.value,()=>te()],([B,J])=>{if(!B)return HA(),void G9();jH(),J?ql({immediate:!0}):G9()},{flush:"post",immediate:!0}),Pe([()=>It.value.length,()=>Cn.value],B=>Ji(null,[B],function*([J,fe]){fe&&J&&Q&&(yield dt(),ql({immediate:!0}))}),{flush:"post"}),Pe(Jn,B=>{B&&(function(){var J;if(_i.value&&Mo.value&&ys.value&&((J=Tn.value)!=null&&J[1]))return;const fe=St({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),he=St({type:"list_item",children:[fe],raw:"- Probe paragraph text"}),Ce=St({type:"list",ordered:!1,items:[he],raw:"- Probe paragraph text"});_i.value=fe,Mo.value=he,ys.value=Ce;const De={1:null,2:null,3:null,4:null,5:null,6:null};for(let We=1;We<=6;We++)De[We]=St({type:"heading",level:We,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(We)} Probe heading`});Tn.value=De})()},{immediate:!0}),Pe([()=>R.value,Jn],()=>{if(!Jn.value)return e4(),void(Y.value=0);qA(),e4(),Jn.value&&R.value&&typeof ResizeObserver<"u"&&(y1=new ResizeObserver(()=>{qA(),ur.value&&Re(),vn.value&&Ff(),Qi("resize")}),y1.observe(R.value))},{immediate:!0}),Pe([Jn,wi,il],()=>Ji(null,null,function*(){if(!Jn.value)return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ai();yield dt(),(function(){if(!Jn.value||typeof window>"u")return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ai();const B={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},J=WA(X9(j.value),".paragraph-node");B.paragraph=Mk(j.value,J,"pre-wrap");const fe=X9($.value),he=fe?.querySelector(".paragraph-node");B.listItem=Mk($.value,he,"pre-wrap");const Ce=Nt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var We,Ze;return(Ze=(We=W.value)==null?void 0:We.offsetHeight)!=null?Ze:0}),De=Nt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var We,Ze;return(Ze=(We=$.value)==null?void 0:We.offsetHeight)!=null?Ze:0});B.listWrapperOverhead=Math.max(0,Ce-De);for(let We=1;We<=6;We++){const Ze=WA(X9(P[We]),`h${We}`);B.headings[We]=Mk(P[We],Ze,"pre-wrap")}oe.value=B,ai()})()}),{flush:"post",immediate:!0}),Pe(()=>It.value.length,()=>{Cn.value&&ql({immediate:!0})}),Pe([Jn,Y],()=>{ai(),Cn.value&&ql({immediate:!0}),ur.value&&Re(),vn.value&&Ff(),Qi("resize")},{immediate:!1}),Pe(()=>ls.value,B=>{if(B)for(const[J,fe]of jn)Ug(J,fe);else if(Y9(),Cn.value)ql({immediate:!0});else for(const[J,fe]of jn)fe&&$u(J,!0)},{immediate:!1}),Pe([pe,Ne,()=>te()],()=>{var B;(B=Vn.refresh)==null||B.call(Vn);for(const[J,fe]of jn)Ug(J,fe)},{immediate:!1}),Pe([()=>I.viewportPriority,()=>It.value.length,Ne],([B,J,fe])=>{if(B!==!1){if(Z.value&&(J<=200||J<=fe)){Z.value=!1;for(const[he,Ce]of jn)Ug(he,Ce)}}else Z.value=!1}),Pe(()=>Di.value,()=>{Cn.value&&ql({immediate:!0})}),Pe([Al,$s,Vi,()=>It.value.length,Cn],()=>{Bu()},{immediate:!0});let E1=null,T1=!1,Rf=null;function L1(){E1=null,a4=null,l4=void 0,Tf=null,M1()}function L4(){$f(),Yt(),ai(),rn.clear();const B=It.value.length;B>0&&Ui(B),b4()}function N4(){I4(),PA(),x1=null,id=null,od=null,Hg=null,A1=null,C1=null,T1=!1,L1(),XA("restore"),Me(),Nf()}function N1(B){var J;return[(J=Vo())!=null?J:"",lo(),Ga(),Og.value,_1(B),It.value.length,Math.round(Ss(0,It.value.length)),Math.round(ed()),Pt.count,Math.round(Pt.total)].join(":")}function vC(){return Ji(this,null,function*(){var B,J,fe,he;const Ce=(B=i.virtualScroll)==null?void 0:B.settledToken,De=_1(Ce),We=lo(),Ze=Vo(),lt=il.value;if(an.value&&((J=i.virtualScroll)==null?void 0:J.settleMode)==="manual"&&Pg(Ce))if(u4()){if(N1(Ce)!==Tf&&!T1){T1=!0;try{const Ge=yield C4({reason:"manual",expectedSettledTokenKey:De}),nt=_1()===De;A4(We,Ze,lt)&&Ge.sessionKey===We&&Ge.threadKey===Ze&&nt&&Ge.stable&&Ge.phase==="final"&&(Tf=N1((fe=i.virtualScroll)==null?void 0:fe.settledToken))}finally{T1=!1,yield dt();const Ge=(he=i.virtualScroll)==null?void 0:he.settledToken,nt=Pg(Ge)?N1(Ge):"";A4(We,Ze,lt)&&nt&&Tf!==nt&&vC()}}}else Qi("manual")})}Pe(an,(B,J)=>{if(B!==J){if(!B)return N4(),void I4();N4(),L4(),Rf=il.value,Qi("content")}},{flush:"post"}),Pe([an,il],([B,J])=>{B?Rf!=null?Rf!==J&&(Rf=J,(function(fe="resize"){$f(),Yt(),ai(),rn.clear();const he=It.value.length;he>0&&Ui(he),b4(),id=null,od=null,Hg=null,x1=null,T1=!1,L1(),uC(),dt(()=>{Qa(),ur.value&&Re(),vn.value&&Ff(),Qi(fe)})})("resize")):Rf=J:Rf=null},{flush:"post",immediate:!0}),Pe([an,()=>lo(),()=>Vo()],([B])=>{B&&(N4(),L4(),XA("content"),Qi("content"))}),Pe([an,()=>lo(),()=>Vo(),il,()=>It.value.length],([B])=>{B&&(function(J="async-node"){let fe=!1;for(const[he,Ce]of Array.from(cr.entries()))s4(Ce)||(cr.delete(he),us.delete(he),fe=!0);fe&&(If(),Qi(J))})("async-node")},{flush:"post"}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.sessionKey},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>i.indexKey,()=>V.value],([B])=>{B&&(M1(),(function(J="content"){if(!an.value)return;const fe=[],he=It.value.length,Ce=J9(he);for(const De of Array.from(rn.keys())){if(De>=he){fe.push(De);continue}if(De=he&&rn.delete(De);fe.length&&((function(De,We={}){const Ze=Array.from(De,Number);Se(Ze);let lt=0;if(Ve(()=>(lt=ya(Ze,We),lt>0)),lt>0)(function(Ge){for(const nt of Ge)rn.delete(nt)})(Ze);else for(const Ge of Ze)so.delete(Ge)})(fe,{notify:!1}),ai(),L1(),ur.value&&Re(),vn.value&&Ff(),Qi(J))})("content"))},{flush:"post",immediate:!0}),Pe([an,()=>It.value.length,()=>lo(),()=>Vo()],([B,J,fe,he],[Ce,De,We,Ze])=>{B&&Ce&&fe===We&&he===Ze&&J!==De&&L1()},{flush:"post"}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.heightCache},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.heightCacheWidth},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>It.value.length,()=>lo(),Y],()=>{uC()},{flush:"post",immediate:!0}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreAnchor},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>It.value.length,()=>lo(),Y],B=>Ji(null,[B],function*([J,fe]){if(!J||!fe)return;yield dt();const he=(function(){var Ce;const De=(Ce=i.virtualScroll)==null?void 0:Ce.restoreAnchor;return De==null||De===!1?null:De===!0?"true":String(De)})();k4(fe,{restoreAnchor:he!=null,restoreToken:he??void 0})}),{flush:"post",immediate:!0}),Pe([an,Y,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey}],([B])=>{var J;if(!B)return;const fe=(J=i.virtualScroll)==null?void 0:J.restoreState;fe&&id&&od==="restore"&&(lC(fe)||(L4(),id=null,od=null,Qi("resize")))},{flush:"post"}),Pe([an,()=>It.value.length,()=>lo(),Y],B=>Ji(null,[B],function*([J]){var fe;const he=A1,Ce=C1;J&&he&&(yield dt(),!k4(he,{restoreAnchor:Ce?.restoreAnchor===!0,restoreToken:(fe=Ce?.restoreToken)!=null?fe:"imperative",allowUncapturedAnchor:Ce?.allowUncapturedAnchor===!0})&&cC(he)||(A1=null,C1=null))}),{flush:"post",immediate:!0}),Pe([an,_t,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settleMode},()=>lo(),()=>Vo(),il,Z9,Wl,()=>Di.value,Fg,()=>Pt.count,()=>Pt.total],([B,J,fe])=>{if(!B||J!==!0||fe==="manual"||!c4())return;const he=(function(){var Ce;const De=It.value.length;return[(Ce=Vo())!=null?Ce:"",lo(),Ga(),Og.value,De,Math.round(Ss(0,De)),Math.round(ed()),Pt.count,Math.round(Pt.total)].join(":")})();E1!==he&&(E1=he,C4({reason:"final"}).then(Ce=>{Ce.stable||E1!==he||(E1=null)}))},{flush:"post",immediate:!0}),Pe([an,_t,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settleMode},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settledToken},()=>lo(),()=>Vo(),il,Z9,Wl,()=>Di.value,Fg,()=>It.value.length,()=>Pt.count,()=>Pt.total],()=>{vC()},{flush:"post",immediate:!0}),Pe([()=>It.value.length,Cn,$s,Vi,()=>as.start,()=>as.end],([B,J,fe,he,Ce,De])=>{Ae.value&&on("virtualization",{nodes:B,virtualization:J,maxLiveNodes:fe,buffer:he,focusIndex:Al.value,scroll:J?(()=>{const We=Dn.value||ke();return We?{reverse:Ie(We),scrollTop:Math.round(We.scrollTop),scrollTopAbs:Math.round(Math.abs(We.scrollTop)),scrollHeight:Math.round(We.scrollHeight),clientHeight:Math.round(We.clientHeight)}:null})():null,liveRange:{start:Ce,end:De},rendered:Di.value})}),Pe([()=>I.customId],([B],J,fe)=>{if(!B||Un)return;const he=(function(Ce,De){return Ce?(cs.controllers[Ce]=De,()=>{cs.controllers[Ce]===De&&delete cs.controllers[Ce]}):()=>{}})(B,{captureRestoreAnchor:Qe,restoreAnchor:Je,getAnchorDrift:ft,getReport:qH});fe(()=>{he()})},{immediate:!0}),Hn(()=>{(function(){if(an.value)try{Qa(),w1();const B=td("manual");fC(B)&&(z(B),x1=B,x4=S1());const J=Lf(B,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});J&&(H(J),J.anchor&&O(J.anchor),Df=I1(J))}catch{}})(),iW(),Y9(),Ye(),mC();for(const B of at.values())for(const J of B)Bg(J);at.clear(),ct.clear(),rn.clear(),T4(),$f(),e4(),Me(),Nf(),I4(),HA(),G9()});const oW=Ip("ViewportDeferredMermaidBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index11-DwTakJcU.js"),__vite__mapDeps([9,7]))).default}catch(B){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',B),jr}}),loadingComponent:lT,delay:0}),lT),sW=Ip("ViewportDeferredInfographicBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index10-BqVmm7xb.js"),[])).default}catch(B){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',B),jr}}),loadingComponent:rT,delay:0}),rT),rW=Ip("ViewportDeferredD2BlockNode",ia(()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index8-Dz0AkV3W.js"),[])).default}catch(B){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',B),jr}})),jr),yC={text:Bo,paragraph:Jd,heading:B9,code_block:vk,list:jh,list_item:Ph,blockquote:Rv,table:i0,definition_list:zv,footnote:Ov,footnote_reference:fl,footnote_anchor:t0,admonition:Wv,vmr_container:jv,hardbreak:kc,link:xr,image:yc,thematic_break:Pv,math_inline:ma,math_block:mP,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,checkbox:dl,checkbox_input:dl,inline_code:rr,html_inline:hl,reference:Ar,html_block:n0},lW=F(()=>i4()),kC=F(()=>UE(I.codeBlockProps)),aW=F(()=>UE(I.codeBlockProps,{omit:["langs"]})),bC=F(()=>Mt(Mt({stream:I.codeBlockStream,darkTheme:I.codeBlockDarkTheme,lightTheme:I.codeBlockLightTheme,monacoOptions:I.codeBlockMonacoOptions,themes:I.themes,langs:g.value==="shiki"?I.langs:void 0,minWidth:I.codeBlockMinWidth,maxWidth:I.codeBlockMaxWidth},typeof se.value=="boolean"?{showTooltips:se.value}:{}),aW.value)),AC=F(()=>Mt(An(Mt({},bC.value),{langs:I.langs}),kC.value));function CC(B){return typeof B=="boolean"?B:void 0}const uW=F(()=>{const B=I.codeBlockProps||{},J={},fe=CC(B.showLineNumbers);fe!==void 0&&(J.showLineNumbers=fe);const he=CC(B.diffInline);he!==void 0&&(J.diffInline=he);const Ce=(function(De){const We=Number(De);return Number.isFinite(We)&&We>0?We:void 0})(B.reservedHeightPx);return Ce!==void 0&&(J.reservedHeightPx=Ce),J}),cW=F(()=>Mt(Mt({stream:I.codeBlockStream,darkTheme:I.codeBlockDarkTheme,lightTheme:I.codeBlockLightTheme,themes:I.themes,langs:I.langs,minWidth:I.codeBlockMinWidth,maxWidth:I.codeBlockMaxWidth},typeof se.value=="boolean"?{showTooltips:se.value}:{}),kC.value)),dW=F(()=>Mt({},I.mermaidProps||{})),wC=F(()=>Mt({},I.d2Props||{})),fW=F(()=>Mt({},I.infographicProps||{})),F1=F(()=>({typewriter:h.value,fade:I.fade,customHtmlTags:_o.value.customHtmlTags})),hW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltip:se.value}:{})),pW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{})),gW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{})),mW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{}));function vW(B){return Array.isArray(B.children)&&B.children.length>0}const Vg=F(()=>WH.value.map(B=>{var J,fe,he,Ce,De,We,Ze,lt;let Ge=(function(At){var qt,Zt,sn,Xt,ln,Fn,Pn;if(At.type!=="code_block")return At;const Mi=At,Os=[String((qt=Mi.language)!=null?qt:""),String((Zt=Mi.loading)!=null?Zt:""),String((sn=Mi.diff)!=null?sn:""),String((Xt=Mi.code)!=null?Xt:""),String((ln=Mi.originalCode)!=null?ln:""),String((Fn=Mi.updatedCode)!=null?Fn:""),String((Pn=Mi.raw)!=null?Pn:"")].join("\0"),_s=xt.get(Mi);if(_s&&_s.signature===Os)return _s.node;const Ul=Mt({},Mi);return xt.set(Mi,{signature:Os,node:Ul}),Ul})(B.node);const nt=Zg(Ge);let rt=MC(Ge,nt);if((Ge.type==="html_block"||Ge.type==="html_inline")&&rt===yC[Ge.type]){const At=Ge,qt=String((J=At.tag)!=null?J:"").trim().toLowerCase()||jz(At.content);if(qt){const Zt=Yn.value[qt];if(Ir.value.has(qt)&&Zt)rt=Zt,Ge=An(Mt({},At),{type:qt,tag:qt,content:xwe(At.content,qt)});else if(Hz((fe=At.content)!=null?fe:At.raw,qt)){const sn=String((Ce=(he=At.content)!=null?he:At.raw)!=null?Ce:"");Ge.type==="html_inline"?(rt=Bo,Ge={type:"text",content:sn,raw:sn}):(rt=Jd,Ge={type:"paragraph",children:[{type:"text",content:sn,raw:sn}],raw:sn})}}}const qe=Ge.type==="code_block"&&g.value==="pre"&&rt===jr&&!F4(Yn.value,nt);let it=Mt({},(function(At,qt,Zt){const sn=qt??Zg(At);if(At.type==="code_block"){const Xt=sn?F4(Yn.value,sn):void 0;if(Zt&&g.value==="pre"&&!Xt&&Zt===jr)return uW.value;if(Zt&&sn&&Zt===Xt)return sn==="mermaid"?SC(At):sn==="infographic"?_C(At):sn==="d2"||sn==="d2lang"?wC.value:AC.value;if(Zt&&Zt===Yn.value.code_block)return AC.value;if(KA(Zt))return cW.value}return sn==="mermaid"?SC(At):sn==="infographic"?_C(At):sn==="d2"||sn==="d2lang"?wC.value:At.type==="link"?hW.value:At.type==="list"?pW.value:At.type==="blockquote"?gW.value:At.type==="table"?mW.value:At.type==="code_block"?bC.value:F1.value})(Ge,nt,rt));const mt=Jn.value?Mf.value[B.index]:null;Ge.type==="code_block"&&mt?.kind==="code-block"&&(it=An(Mt({},it),qe?{reservedHeightPx:(De=mt.height)!=null?De:mt.contentHeight}:{estimatedHeightPx:mt.height,estimatedContentHeightPx:mt.contentHeight,estimatedDiffInline:mt.diffInline})),qe||Ge.type!=="code_block"||nt!=="mermaid"||kh(it.estimatedPreviewHeightPx)!=null||(it=An(Mt({},it),{estimatedPreviewHeightPx:dy(uy(String((We=Ge.code)!=null?We:"")))})),qe||Ge.type!=="code_block"||nt!=="infographic"||kh(it.estimatedPreviewHeightPx)!=null||(it=An(Mt({},it),{estimatedPreviewHeightPx:fy(cy(String((Ze=Ge.code)!=null?Ze:"")))})),Ge.type==="math_block"&&(it=An(Mt({},it),{cacheScope:So}));const ht=(function(At,qt){const Zt=String(At.type);return!Cg(Zt)&&Yn.value[Zt]===qt})(Ge,rt),Dt=ht?W7(Ge,re.value):void 0;return An(Mt({},B),{node:Ge,component:rt,bindings:it,customBindings:Mt(Mt({},Dt??{}),it),rendersCustomNode:ht,hasSlotChildren:vW(Ge),slotContent:String((lt=Ge.content)!=null?lt:""),isCodeBlock:Ge.type==="code_block",indexKey:`${lW.value}-${B.index}`,vnodeKey:`${UH.value}\0${B.index}\0${Ge.type}`})}));function Zg(B){var J;return B?.type==="code_block"?String((J=B.language)!=null?J:"").trim().toLowerCase():""}function F4(B,J){const fe=J.trim().toLowerCase();if(fe)for(const he of[fe,N9(fe),JO(fe)]){const Ce=he&&B[he];if(Ce)return Ce}}function xC(B,J,fe,he){var Ce,De;const We=Mt({},B.value);return kh(We.estimatedPreviewHeightPx)==null&&(We.estimatedPreviewHeightPx=he(fe(String((Ce=J?.code)!=null?Ce:"")),void 0,We.maxHeight==="none"?null:(De=kh(We.maxHeight))!=null?De:void 0)),We}function SC(B){return xC(dW,B,uy,dy)}function _C(B){return xC(fW,B,cy,fy)}function MC(B,J){if(!B)return i5;const fe=Yn.value,he=fe[String(B.type)];if(B.type==="code_block"){const Ce=J??Zg(B),De=Ce?F4(fe,Ce):void 0;return De||(g.value==="pre"?fe.code_block||jr:Ce==="mermaid"?fe.mermaid||oW:Ce==="infographic"?fe.infographic||sW:Ce==="d2"||Ce==="d2lang"?fe.d2||rW:he||fe.code_block||VA.value)}return he||yC[String(B.type)]||i5}function D4(B){o("click",B)}function yW(B){var J;(J=B.target)!=null&&J.closest("[data-node-index]")&&o("mouseover",B)}function kW(B){var J;(J=B.target)!=null&&J.closest("[data-node-index]")&&o("mouseout",B)}function IC(B){o("mouseover",B)}function EC(B){o("mouseout",B)}const ld=K(null),Dr=K(!1),D1=K(null),bW=F(()=>!(I.domMode!=="minimal"||ue.value||I.fade!==!1||h.value||Dr.value||On.value||Cn.value||Qs.value||Io.value||yi.value||Object.keys(Yn.value).length!==0));let B1,zf=null,B4=0,Gg=0,Qg=0;const TC=["code_block","admonition","table","math_block","html_block","image","thematic_break"],AW=new Set(TC),LC=[".typewriter-cursor",".height-estimation-probes",...TC.map(B=>`[data-node-type="${B}"]`),"script","style"].join(",");function NC(B){if(!B||typeof B!="object")return!1;const J=B.type;return typeof J=="string"&&AW.has(J)}function Yg(B){var J,fe;if(!B||typeof B!="object")return 0;const he=B,Ce=(fe=(J=he.raw)!=null?J:he.content)!=null?fe:he.code;if(typeof Ce=="string")return Ce.length;const De=he.children;if(Array.isArray(De))return De.reduce((Ze,lt)=>Ze+Yg(lt),0);const We=he.items;return Array.isArray(We)?We.reduce((Ze,lt)=>Ze+Yg(lt),0):0}function Jg(){B1&&(clearTimeout(B1),B1=void 0)}function $4(){B4+=1,zf!=null&&(Fi?.(zf),zf=null)}function $1(){$4(),Ru(),ld.value&&(ld.value.style.visibility="hidden")}function CW(B){var J;if(B.nodeType!==Node.TEXT_NODE||!((J=B.textContent)!=null?J:"").trim())return!1;const fe=B.parentElement;return!!fe&&!fe.closest(LC)}function wW(B){let J=B.lastChild;for(;J;){if(CW(J))return J;if(J.nodeType===Node.ELEMENT_NODE){const fe=J;if(!fe.matches(LC)&&fe.lastChild){J=fe.lastChild;continue}}for(;J&&J!==B&&!J.previousSibling;)J=J.parentNode;if(!J||J===B)break;J=J.previousSibling}return null}function FC(){const B=Vg.value;for(let J=B.length-1;J>=0;J--){const fe=B[J];if(!fe||NC(fe.node)||!qg(fe.index))continue;const he=jn.get(fe.index);if(!he)continue;const Ce=wW(he);if(Ce)return Ce}return null}function Ru(){D1.value&&(D1.value.classList.remove(aT),D1.value=null)}function Xg(){if(d.value!=="simple"||!Q||!Dr.value||!R.value)return void Ru();const B=FC(),J=B?(function(fe){var he;const Ce=(he=fe.parentElement)==null?void 0:he.closest(".text-node");return Ce instanceof HTMLElement?Ce:fe.parentElement})(B):null;J!==D1.value&&(Ru(),J&&(J.classList.add(aT),D1.value=J))}function em(){if(d.value!=="precise"||!Q||!Dr.value||zf!=null)return;const B=B4,J=()=>{zf=null,B===B4&&(function(){var fe,he;if(d.value!=="precise"||!(Q&&Dr.value&&R.value&&ld.value))return;const Ce=R.value,De=ld.value;De.style.visibility="hidden";const We=FC();if(!We)return;let Ze=0,lt=0,Ge=20,nt=!1;if(We?.textContent){const rt=We.textContent.length,qe=document.createRange();qe.setStart(We,Math.max(0,rt-1)),qe.setEnd(We,rt);const it=typeof qe.getClientRects=="function"?qe.getClientRects():void 0,mt=(he=it?.[it.length-1])!=null?he:(fe=We.parentElement)==null?void 0:fe.getBoundingClientRect();if(mt){const ht=Nt("typewriterCursor.root.getBoundingClientRect",()=>Ce.getBoundingClientRect());Ze=mt.right-ht.left+Ce.scrollLeft,lt=mt.top-ht.top+Ce.scrollTop,Ge=mt.height||Ge,nt=!0}qe.detach()}nt&&(De.style.transform=`translate(${Math.max(0,Ze)}px, ${Math.max(0,lt)}px)`,De.style.height=`${Ge}px`,De.style.visibility="visible")})()};ji?zf=ji(J):J()}return Pe([tt,()=>i.content,()=>i.nodes,()=>I.typewriter,_t],()=>Ji(null,null,function*(){var B,J;if(!Q||ue.value||!le.value)return;if(_t.value)return Dr.value=!1,Jg(),void $1();if((B=i.nodes)!=null&&B.length)return Dr.value=!1,Jg(),$1(),Gg=((J=i.content)!=null?J:"").length,void(Qg=tt.value.length);const fe=(function(){var Ze,lt;return(Ze=i.nodes)!=null&&Ze.length?i.nodes.reduce((Ge,nt)=>Ge+Yg(nt),0):((lt=i.content)!=null?lt:"").length})(),he=(function(){var Ze;return(Ze=i.nodes)!=null&&Ze.length?i.nodes.reduce((lt,Ge)=>lt+Yg(Ge),0):tt.value.length})(),Ce=!NC(It.value[It.value.length-1]),De=fe>Gg,We=he>Qg;if(!h.value||!Ce||!De&&!We)return h.value&&Ce||(Dr.value=!1,$1()),Gg=fe,void(Qg=he);Gg=fe,Qg=he,Dr.value=!0,d.value==="precise"&&ld.value&&(ld.value.style.visibility="hidden"),Jg(),yield dt(),d.value==="simple"?Xg():(Ru(),em()),B1=setTimeout(()=>{B1=void 0,Dr.value=!1},3e3)}),{flush:"post",immediate:!0}),Pe(Dr,B=>Ji(null,null,function*(){B?(yield dt(),d.value!=="simple"?(Ru(),d.value==="precise"&&em()):Xg()):$1()}),{flush:"post"}),Pe(d,()=>Ji(null,null,function*(){if(Q&&!ue.value&&le.value&&Dr.value){if(yield dt(),d.value==="simple")return $4(),void Xg();Ru(),d.value!=="precise"?$1():em()}}),{flush:"post"}),Pe([()=>Di.value,()=>as.start,()=>as.end],()=>Ji(null,null,function*(){Q&&!ue.value&&le.value&&Dr.value&&(yield dt(),d.value!=="simple"?(Ru(),d.value==="precise"&&em()):Xg())}),{flush:"post"}),Hn(()=>{Jg(),$4(),Ru(),qn.clear()}),(B,J)=>{const fe=tU("NodeRenderer",!0);return f(ue)?(v(!0),E(Ee,{key:0},pt(Vg.value,he=>(v(),E(Ee,{key:he.vnodeKey},[he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:0,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onClick:D4,onMouseover:IC,onMouseout:EC,onCopy:J[0]||(J[0]=Ce=>s(Ce)),onHandleArtifactClick:J[1]||(J[1]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:1,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onClick:D4,onMouseover:IC,onMouseout:EC,onCopy:J[2]||(J[2]=Ce=>s(Ce)),onHandleArtifactClick:J[3]||(J[3]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(v(),E("div",{key:1,ref_key:"containerRef",ref:R,class:Fe(["markstream-vue markdown-renderer",[{dark:I.isDark},{virtualized:Cn.value},{"virtual-scroll-coordinated":to.value},{"stable-layout":V9.value},{"typewriter-simple-cursor":Dr.value&&d.value==="simple"}]]),"data-custom-id":I.customId,onClick:D4,onMouseover:yW,onMouseout:kW},[Wo.value||Cn.value?(v(),E(Ee,{key:0},[Wo.value?(v(),ce(ENe,{key:0,width:wi.value,"flow-root":Cn.value||to.value,"paragraph-node":_i.value,"list-item-node":Mo.value,"list-node":ys.value,"heading-nodes":Tn.value,"set-paragraph-wrapper":RH,"set-list-item-wrapper":zH,"set-list-wrapper":OH,"set-heading-wrapper":HH},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):X("",!0),Cn.value?(v(),E("div",{key:1,class:"node-spacer",style:Kt({height:`${t4.value}px`}),"aria-hidden":"true"},null,4)):X("",!0)],64)):X("",!0),bW.value?(v(!0),E(Ee,{key:1},pt(Vg.value,he=>(v(),E(Ee,{key:he.vnodeKey},[qg(he.index)?(v(),ce(Oo(he.component),ni({key:0,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onMouseover:J[4]||(J[4]=Ce=>o("mouseover",Ce)),onMouseout:J[5]||(J[5]=Ce=>o("mouseout",Ce)),onCopy:J[6]||(J[6]=Ce=>s(Ce)),onHandleArtifactClick:J[7]||(J[7]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"])):X("",!0)],64))),128)):(v(!0),E(Ee,{key:2},pt(Vg.value,he=>(v(),E("div",{key:he.vnodeKey,ref_for:!0,ref:Ce=>Ug(he.index,Ce),class:"node-slot","data-node-index":he.index,"data-node-type":he.node.type},[qg(he.index)?(v(),E("div",{key:0,ref_for:!0,ref:Ce=>(function(De,We){var Ze;We||(function(rt){const qe=`${i4()}-${rt}`;let it=!1;for(const mt of Array.from(us.keys())){const ht=cr.get(mt);(ht?.index===rt||mt===qe||mt.startsWith(`${qe}-`))&&(us.delete(mt),cr.delete(mt),it=!0)}it&&(If(),Qi("async-node"))})(De),Nn.delete(De),(function(rt){var qe;const it=((qe=ct.get(rt))!=null?qe:0)+1;ct.set(rt,it)})(De);const lt=at.get(De);if(lt){for(const rt of lt)Bg(rt);at.delete(De)}if((function(rt){const qe=Ke.get(rt);qe&&(yt?.unobserve(qe),Ue.delete(qe),Ke.delete(rt))})(De),!We||!Rs.value)return Te.delete(De),void ct.delete(De);Te.set(De,We);const Ge=()=>{Kg(De,We)};queueMicrotask(Ge);const nt=(yt||typeof ResizeObserver>"u"||(yt=new ResizeObserver(rt=>{if(rt.length)for(const qe of rt){const it=Ue.get(qe.target),mt=Ke.get(it??-1);it!=null&&mt&&Kg(it,mt)}else Qa()})),yt);if(nt&&(Ke.set(De,We),Ue.set(We,De),nt.observe(We)),typeof window<"u"){const rt=((Ze=It.value[De])==null?void 0:Ze.type)==="code_block"?[16,80,240,800]:_t.value?[80]:[];if(rt.length){const qe=rt.map(it=>OA(it,Ge,"node-resize")).filter(it=>it!=null);qe.length&&at.set(De,qe)}}})(he.index,Ce),class:"node-content"},[he.isCodeBlock?he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:1,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[12]||(J[12]=Ce=>s(Ce)),onHandleArtifactClick:J[13]||(J[13]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:2,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[14]||(J[14]=Ce=>s(Ce)),onHandleArtifactClick:J[15]||(J[15]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(fo,{key:0,name:"fade",css:I.fade!==!1,appear:I.fade!==!1},{default:de(()=>[he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:0,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[8]||(J[8]=Ce=>s(Ce)),onHandleArtifactClick:J[9]||(J[9]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:1,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[10]||(J[10]=Ce=>s(Ce)),onHandleArtifactClick:J[11]||(J[11]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(v(),E("div",{key:1,class:"node-placeholder",style:Kt({height:`${Ys(he.index)}px`})},null,4))],8,NNe))),128)),Dr.value&&d.value==="precise"?(v(),E("span",{key:3,ref_key:"typewriterCursorRef",ref:ld,class:"typewriter-cursor","aria-hidden":"true"},null,512)):X("",!0),Cn.value?(v(),E("div",{key:4,class:"node-spacer",style:Kt({height:`${n4.value}px`}),"aria-hidden":"true"},null,4)):X("",!0)],42,LNe))}}})),[["__scopeId","data-v-a9489508"]]),Gr=TP;Gr.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",Gr.__name,Gr.name].filter(n=>!!n));for(const n of t)e.component(n,TP)};const iA=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"})),FNe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},DNe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},BNe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},$Ne={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},RNe={class:"admonition-title"},zNe=["aria-expanded","aria-controls"],ONe=["id"],Wv=Ci(Xe({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const i=e,o=t,s=F(()=>{if(i.node.title&&i.node.title.trim().length)return i.node.title;const u=i.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=K(!!i.node.collapsible&&!((n=i.node.open)==null||n));function l(){i.node.collapsible&&(r.value=!r.value)}const a=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,c)=>(v(),E("div",{class:Fe(["admonition",[`admonition-${i.node.kind}`]])},[C("div",{id:a,class:"admonition-legend"},[i.node.kind==="note"||i.node.kind==="info"?(v(),E("svg",FNe,[...c[1]||(c[1]=[C("circle",{cx:"12",cy:"12",r:"10"},null,-1),C("path",{d:"M12 16v-4"},null,-1),C("path",{d:"M12 8h.01"},null,-1)])])):i.node.kind==="tip"?(v(),E("svg",DNe,[...c[2]||(c[2]=[C("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),C("path",{d:"M9 18h6"},null,-1),C("path",{d:"M10 22h4"},null,-1)])])):i.node.kind==="warning"||i.node.kind==="caution"?(v(),E("svg",BNe,[...c[3]||(c[3]=[C("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},null,-1),C("path",{d:"M12 9v4"},null,-1),C("path",{d:"M12 17h.01"},null,-1)])])):i.node.kind==="danger"||i.node.kind==="error"?(v(),E("svg",$Ne,[...c[4]||(c[4]=[C("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),C("path",{d:"M12 8v4"},null,-1),C("path",{d:"M12 16h.01"},null,-1)])])):X("",!0),C("span",RNe,D(s.value),1),i.node.collapsible?(v(),E("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${a}-content`,onClick:l},[(v(),E("svg",{style:Kt({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...c[5]||(c[5]=[C("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,zNe)):X("",!0)]),Wn(C("div",{id:`${a}-content`,class:"admonition-content","aria-labelledby":a},[U(f(Gr),{"index-key":`admonition-${e.indexKey}`,nodes:i.node.children,"custom-id":i.customId,typewriter:i.typewriter,fade:i.fade,onCopy:c[0]||(c[0]=d=>o("copy",d))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,ONe),[[Po,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);Wv.install=e=>{e.component(Wv.__name,Wv)};const a5=()=>Fo(()=>import("./d2_markstream-vue-yoD6TSFD.js"),[]);let tv=null,nv=a5,iv=null,uT=!1,cT=!1;function _ct(){return Ji(this,null,function*(){if(tv)return tv;const e=nv;return e?e===a5&&uT?null:iv||(iv=Ji(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===a5)return e===nv&&(uT=!0,(function(i){cT||(cT=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',i))})(n)),null;throw n}finally{e===nv&&(iv=null)}return e!==nv?null:t?(tv=(function(n){var i;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(i=n.default)!=null?i:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),tv):null}),iv):null})}let ov=null,LP=null,sv=null;function Mct(){return typeof LP=="function"}function Ict(){return Ji(this,null,function*(){if(ov)return ov;const e=LP;return e?sv||(sv=Ji(null,null,function*(){const t=yield e(),n=(function(i){var o,s,r;if(!i)return null;const l=(o=i.default)!=null?o:i,a=typeof l=="function"&&typeof((s=l.prototype)==null?void 0:s.render)=="function"?l:(r=i.Infographic)!=null?r:l?.Infographic;return typeof a=="function"?a:null})(t);return n?(ov=n,ov):null}).finally(()=>{sv=null}),sv):null})}const Ect=Symbol("markstreamLanguageIconResolver");function PNe(e){return new Worker("/assets/katexRenderer.worker-CO_gEm4q.js",{type:"module",name:e?.name})}function jNe(e){return new Worker("/assets/mermaidParser.worker-BFSlSHEW.js",{type:"module",name:e?.name})}let dT=!1;function NP(){dT||typeof Worker>"u"||(dT=!0,yEe(new PNe),LEe(new jNe))}NP();const fT=document.createElement("i");function HNe(e){const t="&"+e+";";fT.innerHTML=t;const n=fT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function qa(e,t,n,i){const o=e.length;let s=0,r;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)r=Array.from(i),r.unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);s0?(qa(e,e.length,0,t),e):t}const hT={}.hasOwnProperty;function WNe(e){const t={};let n=-1;for(;++n-1&&e.test(String.fromCharCode(n))}}function Xi(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return r;function r(a){return bi(a)?(e.enter(n),l(a)):t(a)}function l(a){return bi(a)&&s++r))return;const x=t.events.length;let _=x,L,M;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(L){M=t.events[_][1].end;break}L=!0}for(w(i),S=x;Sb;){const T=n[A];t.containerState=T[1],T[0].exit.call(t,e)}n.length=b}function y(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function tFe(e,t,n){return Xi(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gT(e){if(e===null||Qr(e)||QNe(e))return 1;if(GNe(e))return 2}function sA(e,t,n){const i=[];let o=-1;for(;++o1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},h={...e[n][1].start};mT(d,-a),mT(h,a),r={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:a>1?"strong":"emphasis",start:{...r.start},end:{...l.end}},e[i][1].end={...r.start},e[n][1].start={...l.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=Nl(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=Nl(u,[["enter",o,t],["enter",r,t],["exit",r,t],["enter",s,t]]),u=Nl(u,sA(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=Nl(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Nl(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,qa(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n0&&bi(S)?Xi(e,y,"linePrefix",s+1)(S):y(S)}function y(S){return S===null||En(S)?e.check(vT,m,A)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||En(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),b)}function A(S){return e.exit("codeFenced"),t(S)}function T(S,x,_){let L=0;return M;function M(O){return S.enter("lineEnding"),S.consume(O),S.exit("lineEnding"),N}function N(O){return S.enter("codeFencedFence"),bi(O)?Xi(S,I,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):I(O)}function I(O){return O===l?(S.enter("codeFencedFenceSequence"),z(O)):_(O)}function z(O){return O===l?(L++,S.consume(O),z):L>=r?(S.exit("codeFencedFenceSequence"),bi(O)?Xi(S,H,"whitespace")(O):H(O)):_(O)}function H(O){return O===null||En(O)?(S.exit("codeFencedFence"),x(O)):_(O)}}}function hFe(e,t,n){const i=this;return o;function o(r){return r===null?n(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}const Ik={name:"codeIndented",tokenize:gFe},pFe={partial:!0,tokenize:mFe};function gFe(e,t,n){const i=this;return o;function o(u){return e.enter("codeIndented"),Xi(e,s,"linePrefix",5)(u)}function s(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(u):n(u)}function r(u){return u===null?a(u):En(u)?e.attempt(pFe,r,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||En(u)?(e.exit("codeFlowValue"),r(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function mFe(e,t,n){const i=this;return o;function o(r){return i.parser.lazy[i.now().line]?n(r):En(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),o):Xi(e,s,"linePrefix",5)(r)}function s(r){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(r):En(r)?o(r):n(r)}}const vFe={name:"codeText",previous:kFe,resolve:yFe,tokenize:bFe};function yFe(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&ep(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ep(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ep(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}}function RP(e,t,n,i,o,s,r,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(w){return w===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(w),e.exit(s),h):w===null||w===32||w===41||u5(w)?n(w):(e.enter(i),e.enter(r),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(w))}function h(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(l),h(w)):w===null||w===60||En(w)?n(w):(e.consume(w),w===92?g:p)}function g(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function m(w){return!c&&(w===null||w===41||Qr(w))?(e.exit("chunkString"),e.exit(l),e.exit(r),e.exit(i),t(w)):c999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in r.parser.constructs?n(p):p===93?(e.exit(s),e.enter(o),e.consume(p),e.exit(o),e.exit(i),t):En(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||En(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!bi(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function OP(e,t,n,i,o,s){let r;return l;function l(h){return h===34||h===39||h===40?(e.enter(i),e.enter(o),e.consume(h),e.exit(o),r=h===40?41:h,a):n(h)}function a(h){return h===r?(e.enter(o),e.consume(h),e.exit(o),e.exit(i),t):(e.enter(s),u(h))}function u(h){return h===r?(e.exit(s),a(r)):h===null?n(h):En(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Xi(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===r||h===null||En(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===r||h===92?(e.consume(h),c):c(h)}}function s0(e,t){let n;return i;function i(o){return En(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):bi(o)?Xi(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const IFe={name:"definition",tokenize:TFe},EFe={partial:!0,tokenize:LFe};function TFe(e,t,n){const i=this;let o;return s;function s(p){return e.enter("definition"),r(p)}function r(p){return zP.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return o=oA(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Qr(p)?s0(e,u)(p):u(p)}function u(p){return RP(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(EFe,d,d)(p)}function d(p){return bi(p)?Xi(e,h,"whitespace")(p):h(p)}function h(p){return p===null||En(p)?(e.exit("definition"),i.parser.defined.push(o),t(p)):n(p)}}function LFe(e,t,n){return i;function i(l){return Qr(l)?s0(e,o)(l):n(l)}function o(l){return OP(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return bi(l)?Xi(e,r,"whitespace")(l):r(l)}function r(l){return l===null||En(l)?t(l):n(l)}}const NFe={name:"hardBreakEscape",tokenize:FFe};function FFe(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return En(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const DFe={name:"headingAtx",resolve:BFe,tokenize:$Fe};function BFe(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},qa(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function $Fe(e,t,n){let i=0;return o;function o(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),r(c)}function r(c){return c===35&&i++<6?(e.consume(c),r):c===null||Qr(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||En(c)?(e.exit("atxHeading"),t(c)):bi(c)?Xi(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Qr(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const RFe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kT=["pre","script","style","textarea"],zFe={concrete:!0,name:"htmlFlow",resolveTo:jFe,tokenize:HFe},OFe={partial:!0,tokenize:qFe},PFe={partial:!0,tokenize:WFe};function jFe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function HFe(e,t,n){const i=this;let o,s,r,l,a;return u;function u(V){return c(V)}function c(V){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(V),d}function d(V){return V===33?(e.consume(V),h):V===47?(e.consume(V),s=!0,m):V===63?(e.consume(V),o=3,i.interrupt?t:P):Fa(V)?(e.consume(V),r=String.fromCharCode(V),k):n(V)}function h(V){return V===45?(e.consume(V),o=2,p):V===91?(e.consume(V),o=5,l=0,g):Fa(V)?(e.consume(V),o=4,i.interrupt?t:P):n(V)}function p(V){return V===45?(e.consume(V),i.interrupt?t:P):n(V)}function g(V){const Y="CDATA[";return V===Y.charCodeAt(l++)?(e.consume(V),l===Y.length?i.interrupt?t:I:g):n(V)}function m(V){return Fa(V)?(e.consume(V),r=String.fromCharCode(V),k):n(V)}function k(V){if(V===null||V===47||V===62||Qr(V)){const Y=V===47,oe=r.toLowerCase();return!Y&&!s&&kT.includes(oe)?(o=1,i.interrupt?t(V):I(V)):RFe.includes(r.toLowerCase())?(o=6,Y?(e.consume(V),w):i.interrupt?t(V):I(V)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(V):s?y(V):b(V))}return V===45||ra(V)?(e.consume(V),r+=String.fromCharCode(V),k):n(V)}function w(V){return V===62?(e.consume(V),i.interrupt?t:I):n(V)}function y(V){return bi(V)?(e.consume(V),y):M(V)}function b(V){return V===47?(e.consume(V),M):V===58||V===95||Fa(V)?(e.consume(V),A):bi(V)?(e.consume(V),b):M(V)}function A(V){return V===45||V===46||V===58||V===95||ra(V)?(e.consume(V),A):T(V)}function T(V){return V===61?(e.consume(V),S):bi(V)?(e.consume(V),T):b(V)}function S(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),a=V,x):bi(V)?(e.consume(V),S):_(V)}function x(V){return V===a?(e.consume(V),a=null,L):V===null||En(V)?n(V):(e.consume(V),x)}function _(V){return V===null||V===34||V===39||V===47||V===60||V===61||V===62||V===96||Qr(V)?T(V):(e.consume(V),_)}function L(V){return V===47||V===62||bi(V)?b(V):n(V)}function M(V){return V===62?(e.consume(V),N):n(V)}function N(V){return V===null||En(V)?I(V):bi(V)?(e.consume(V),N):n(V)}function I(V){return V===45&&o===2?(e.consume(V),R):V===60&&o===1?(e.consume(V),j):V===62&&o===4?(e.consume(V),Z):V===63&&o===3?(e.consume(V),P):V===93&&o===5?(e.consume(V),W):En(V)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(OFe,ae,z)(V)):V===null||En(V)?(e.exit("htmlFlowData"),z(V)):(e.consume(V),I)}function z(V){return e.check(PFe,H,ae)(V)}function H(V){return e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),O}function O(V){return V===null||En(V)?z(V):(e.enter("htmlFlowData"),I(V))}function R(V){return V===45?(e.consume(V),P):I(V)}function j(V){return V===47?(e.consume(V),r="",$):I(V)}function $(V){if(V===62){const Y=r.toLowerCase();return kT.includes(Y)?(e.consume(V),Z):I(V)}return Fa(V)&&r.length<8?(e.consume(V),r+=String.fromCharCode(V),$):I(V)}function W(V){return V===93?(e.consume(V),P):I(V)}function P(V){return V===62?(e.consume(V),Z):V===45&&o===2?(e.consume(V),P):I(V)}function Z(V){return V===null||En(V)?(e.exit("htmlFlowData"),ae(V)):(e.consume(V),Z)}function ae(V){return e.exit("htmlFlow"),t(V)}}function WFe(e,t,n){const i=this;return o;function o(r){return En(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s):n(r)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}function qFe(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(R9,t,n)}}const UFe={name:"htmlText",tokenize:KFe};function KFe(e,t,n){const i=this;let o,s,r;return l;function l(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),a}function a(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),T):P===63?(e.consume(P),b):Fa(P)?(e.consume(P),_):n(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),s=0,g):Fa(P)?(e.consume(P),y):n(P)}function c(P){return P===45?(e.consume(P),p):n(P)}function d(P){return P===null?n(P):P===45?(e.consume(P),h):En(P)?(r=d,j(P)):(e.consume(P),d)}function h(P){return P===45?(e.consume(P),p):d(P)}function p(P){return P===62?R(P):P===45?h(P):d(P)}function g(P){const Z="CDATA[";return P===Z.charCodeAt(s++)?(e.consume(P),s===Z.length?m:g):n(P)}function m(P){return P===null?n(P):P===93?(e.consume(P),k):En(P)?(r=m,j(P)):(e.consume(P),m)}function k(P){return P===93?(e.consume(P),w):m(P)}function w(P){return P===62?R(P):P===93?(e.consume(P),w):m(P)}function y(P){return P===null||P===62?R(P):En(P)?(r=y,j(P)):(e.consume(P),y)}function b(P){return P===null?n(P):P===63?(e.consume(P),A):En(P)?(r=b,j(P)):(e.consume(P),b)}function A(P){return P===62?R(P):b(P)}function T(P){return Fa(P)?(e.consume(P),S):n(P)}function S(P){return P===45||ra(P)?(e.consume(P),S):x(P)}function x(P){return En(P)?(r=x,j(P)):bi(P)?(e.consume(P),x):R(P)}function _(P){return P===45||ra(P)?(e.consume(P),_):P===47||P===62||Qr(P)?L(P):n(P)}function L(P){return P===47?(e.consume(P),R):P===58||P===95||Fa(P)?(e.consume(P),M):En(P)?(r=L,j(P)):bi(P)?(e.consume(P),L):R(P)}function M(P){return P===45||P===46||P===58||P===95||ra(P)?(e.consume(P),M):N(P)}function N(P){return P===61?(e.consume(P),I):En(P)?(r=N,j(P)):bi(P)?(e.consume(P),N):L(P)}function I(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),o=P,z):En(P)?(r=I,j(P)):bi(P)?(e.consume(P),I):(e.consume(P),H)}function z(P){return P===o?(e.consume(P),o=void 0,O):P===null?n(P):En(P)?(r=z,j(P)):(e.consume(P),z)}function H(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Qr(P)?L(P):(e.consume(P),H)}function O(P){return P===47||P===62||Qr(P)?L(P):n(P)}function R(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function j(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),$}function $(P){return bi(P)?Xi(e,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):W(P)}function W(P){return e.enter("htmlTextData"),r(P)}}const rA={name:"labelEnd",resolveAll:QFe,resolveTo:YFe,tokenize:JFe},VFe={tokenize:XFe},ZFe={tokenize:eDe},GFe={tokenize:tDe};function QFe(e){let t=-1;const n=[];for(;++t=3&&(u===null||En(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===o?(e.consume(u),i++,a):(e.exit("thematicBreakSequence"),bi(u)?Xi(e,l,"whitespace")(u):l(u))}}const Rr={continuation:{tokenize:dDe},exit:hDe,name:"list",tokenize:cDe},aDe={partial:!0,tokenize:pDe},uDe={partial:!0,tokenize:fDe};function cDe(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,r=0;return l;function l(p){const g=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:c5(p)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(qv,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return c5(p)&&++r<10?(e.consume(p),a):(!i.interrupt||r<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(R9,i.interrupt?n:c,e.attempt(aDe,h,d))}function c(p){return i.containerState.initialBlankLine=!0,s++,h(p)}function d(p){return bi(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function dDe(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(R9,o,s);function o(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Xi(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!bi(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(uDe,t,r)(l))}function r(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,Xi(e,e.attempt(Rr,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function fDe(e,t,n){const i=this;return Xi(e,o,"listItemIndent",i.containerState.size+1);function o(s){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(s):n(s)}}function hDe(e){e.exit(this.containerState.type)}function pDe(e,t,n){const i=this;return Xi(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const r=i.events[i.events.length-1];return!bi(s)&&r&&r[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const bT={name:"setextUnderline",resolveTo:gDe,tokenize:mDe};function gDe(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const r={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",r,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=r,e.push(["exit",r,t]),e}function mDe(e,t,n){const i=this;let o;return s;function s(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),o=u,r(u)):n(u)}function r(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),bi(u)?Xi(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||En(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const vDe={tokenize:yDe};function yDe(e){const t=this,n=e.attempt(R9,i,e.attempt(this.parser.constructs.flowInitial,o,Xi(e,e.attempt(this.parser.constructs.flow,o,e.attempt(wFe,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kDe={resolveAll:jP()},bDe=PP("string"),ADe=PP("text");function PP(e){return{resolveAll:jP(e==="text"?CDe:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,r,l);return r;function r(c){return u(c)?s(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const d=o[c];let h=-1;if(d)for(;++h-1){const l=r[0];typeof l=="string"?r[0]=l.slice(i):r.shift()}s>0&&r.push(e[o].slice(0,s))}return r}function BDe(e,t){let n=-1;const i=[];let o;for(;++n>1}};Ps.from=function(e){if(e instanceof Ps)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Ps(t)};function HP(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(i),s=t.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){let r=o.text,l=s.text,a=0;for(;r[a]==l[a];a++)n++;return a&&a0&&h>0&&u[d-1]==c[h-1];)d--,h--,n--,i--;return d&&h&&d=56320&&e<57344}function UP(e){return e>=55296&&e<56320}class Bn{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;it&&i(a,o+l,s||null,r)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,n-c),i,o+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,o){let s="",r=!0;return this.nodesBetween(t,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&i&&(r?r=!1:s+=i),s+=u},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);st)for(let s=0,r=0;rt&&((rn)&&(l.isText?l=l.cut(Math.max(0,t-r),Math.min(l.text.length,n-r)):l=l.cut(Math.max(0,t-r-1),Math.min(l.content.size,n-r-1))),i.push(l),o+=l.nodeSize),r=a}return new Bn(i,o)}cutByIndex(t,n){return t==n?Bn.empty:t==0&&n==this.content.length?this:new Bn(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[t]=n,new Bn(o,s)}addToStart(t){return new Bn([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Bn(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=t)return s==t?rv(n+1,s):rv(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Bn.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return Bn.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Bn.empty;let n,i=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;ni.type.rank-o.type.rank),n}}eo.none=[];class H0 extends Error{}class Qn{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=VP(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return i&&new Qn(i,this.openStart,this.openEnd)}removeBetween(t,n){return new Qn(KP(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Qn.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Qn(Bn.fromJSON(t,n.content),i,o)}static maxOpen(t,n=!0){let i=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new Qn(t,i,o)}}Qn.empty=new Qn(Bn.empty,0,0);function KP(e,t,n){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i),{index:r,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(r).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=r)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(KP(s.content,t-o-1,n-o-1)))}function VP(e,t,n,i,o,s){let{index:r,offset:l}=e.findIndex(t),a=e.maybeChild(r);if(l==t||a.isText)return s&&i<=0&&o<=0&&!s.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=VP(a.content,t-l-1,n,r==0?i-1:0,r==e.childCount-1?o-1:0,a);return u&&e.replaceChild(r,a.copy(u))}function ODe(e,t,n){if(n.openStart>e.depth)throw new H0("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new H0("Inconsistent open depths");return ZP(e,t,n,0)}function ZP(e,t,n,i){let o=e.index(i),s=e.node(i);if(o==t.index(i)&&i=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function r0(e,t,n,i){let o=(t||e).node(n),s=0,r=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(Xd(e.nodeAfter,i),s++));for(let l=s;lo&&f5(e,t,o+1),r=i.depth>o&&f5(n,i,o+1),l=[];return r0(null,e,o,l),s&&r&&t.index(o)==n.index(o)?(GP(s,r),Xd(ef(s,QP(e,t,n,i,o+1)),l)):(s&&Xd(ef(s,Cy(e,t,o+1)),l),r0(t,n,o,l),r&&Xd(ef(r,Cy(n,i,o+1)),l)),r0(i,null,o,l),new Bn(l)}function Cy(e,t,n){let i=[];if(r0(null,e,n,i),e.depth>n){let o=f5(e,t,n+1);Xd(ef(o,Cy(e,t,n+1)),i)}return r0(t,null,n,i),new Bn(i)}function PDe(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy(Bn.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class W0{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=t.child(n);return i?t.child(n).cut(i):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new WDe(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let r=t;;){let{index:l,offset:a}=r.content.findIndex(s),u=s-a;if(i.push(r,l,o+a),!u||(r=r.child(l),r.isText))break;s=u-1,o+=a+1}return new W0(n,i,s)}static resolveCached(t,n){let i=CT.get(t);if(i)for(let s=0;st&&this.nodesBetween(t,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),YP(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=Bn.empty,o=0,s=i.childCount){let r=this.contentMatchAt(t).matchFragment(i,o,s),l=r&&r.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let o=Bn.fromJSON(t,n.content),s=t.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};Hh.prototype.text=void 0;class wy extends Hh{constructor(t,n,i,o){if(super(t,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):YP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new wy(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new wy(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function YP(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class gf{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new UDe(t,n);if(i.next==null)return gf.empty;let o=JP(i);i.next&&i.err("Unexpected trailing text");let s=JDe(YDe(o));return XDe(s,i),s}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let o=0;o{let s=o+(i.validEnd?"*":" ")+" ";for(let r=0;r"+t.indexOf(i.next[r].next);return s}).join(` -`)}}gf.empty=new gf(!0);class UDe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function JP(e){let t=[];do t.push(KDe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function KDe(e){let t=[];do t.push(VDe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function VDe(e){let t=QDe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=ZDe(e,t);else break;return t}function wT(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function ZDe(e,t){let n=wT(e),i=n;return e.eat(",")&&(e.next!="}"?i=wT(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function GDe(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let o=[];for(let s in n){let r=n[s];r.isInGroup(t)&&o.push(r)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function QDe(e){if(e.eat("(")){let t=JP(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=GDe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function YDe(e){let t=[[]];return o(s(e,0),n()),t;function n(){return t.push([])-1}function i(r,l,a){let u={term:a,to:l};return t[r].push(u),u}function o(r,l){r.forEach(a=>a.to=l)}function s(r,l){if(r.type=="choice")return r.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(r.type=="seq")for(let a=0;;a++){let u=s(r.exprs[a],l);if(a==r.exprs.length-1)return u;o(u,l=n())}else if(r.type=="star"){let a=n();return i(l,a),o(s(r.expr,a),a),[i(a)]}else if(r.type=="plus"){let a=n();return o(s(r.expr,l),a),o(s(r.expr,a),a),[i(a)]}else{if(r.type=="opt")return[i(l)].concat(s(r.expr,l));if(r.type=="range"){let a=l;for(let u=0;u{e[r].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=t[i.join(",")]=new gf(i.indexOf(e.length-1)>-1);for(let r=0;r-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:tj(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Hh(this,this.computeAttrs(t),Bn.from(n),eo.setFrom(i))}createChecked(t=null,n,i){return n=Bn.from(n),this.checkContent(n),new Hh(this,this.computeAttrs(t),n,eo.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=Bn.from(n),n.size){let r=this.contentMatch.fillBefore(n);if(!r)return null;n=r.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(Bn.empty,!0);return s?new Hh(this,t,n.append(s),eo.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;ni[s]=new oj(s,n,r));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function eBe(e,t,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${s}`)}}class tBe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?eBe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class lA{constructor(t,n,i,o){this.name=t,this.rank=n,this.schema=i,this.spec=o,this.attrs=ij(t,o.attrs),this.excluded=null;let s=ej(this.attrs);this.instance=s?new eo(this,s):null}create(t=null){return!t&&this.instance?this.instance:new eo(this,tj(this.attrs,t))}static compile(t,n){let i=Object.create(null),o=0;return t.forEach((s,r)=>i[s]=new lA(s,o++,n,r)),i}removeFromSet(t){for(var n=0;n-1}}class nBe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=Ps.from(t.nodes),n.marks=Ps.from(t.marks||{}),this.nodes=ST.compile(this.spec.nodes,this),this.marks=lA.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],r=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=i[r]||(i[r]=gf.parse(r,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?_T(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],r=s.spec.excludes;s.excluded=r==null?[s]:r==""?[]:_T(this,r.split(" "))}this.nodeFromJSON=o=>Hh.fromJSON(this,o),this.markFromJSON=o=>eo.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof ST){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,o)}text(t,n){let i=this.nodes.text;return new wy(i,i.defaultAttrs,t,eo.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function _T(e,t){let n=[];for(let i=0;i-1)&&n.push(r=a)}if(!r)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function iBe(e){return e.tag!=null}function oBe(e){return e.style!=null}let sBe=class p5{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(iBe(o))this.tags.push(o);else if(oBe(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=t.nodes[o.node];return s.contentMatch.matchType(s)})}parse(t,n={}){let i=new IT(this,n,!1);return i.addAll(t,eo.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new IT(this,n,!0);return i.addAll(t,eo.none,n.from,n.to),Qn.maxOpen(i.finish())}matchTag(t,n,i){for(let o=i?this.tags.indexOf(i)+1:0;ot.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(r.getAttrs){let a=r.getAttrs(n);if(a===!1)continue;r.attrs=a||void 0}return r}}}static schemaRules(t){let n=[];function i(o){let s=o.priority==null?50:o.priority,r=0;for(;r{i(r=ET(r)),r.mark||r.ignore||r.clearMark||(r.mark=o)})}for(let o in t.nodes){let s=t.nodes[o].spec.parseDOM;s&&s.forEach(r=>{i(r=ET(r)),r.node||r.ignore||r.mark||(r.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new p5(t,p5.schemaRules(t)))}};const sj={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},rBe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},rj={ol:!0,ul:!0},q0=1,g5=2,l0=4;function MT(e,t,n){return t!=null?(t?q0:0)|(t==="full"?g5:0):e&&e.whitespace=="pre"?q0|g5:n&~l0}class lv{constructor(t,n,i,o,s,r){this.type=t,this.attrs=n,this.marks=i,this.solid=o,this.options=r,this.content=[],this.activeMarks=eo.none,this.match=s||(r&l0?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Bn.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(t.type))?(this.match=i,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&q0)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=Bn.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Bn.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!sj.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class IT{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,r=MT(null,n.preserveWhitespace,0)|(i?l0:0);o?s=new lv(o.type,o.attrs,eo.none,!0,n.topMatch||o.type.contentMatch,r):i?s=new lv(null,null,eo.none,!0,null,r):s=new lv(t.schema.topNodeType,null,eo.none,!0,null,r),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,o=this.top,s=o.options&g5?"full":this.localPreserveWS||(o.options&q0)>0,{schema:r}=this.parser;if(s==="full"||o.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` -`);else if(r.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(r.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(t,n,i,o){let s,r;if(n.node)if(r=this.parser.schema.nodes[n.node],r.isLeaf)this.insertNode(r.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let a=this.enter(r,n.attrs||null,i,n.preserveWhitespace);a&&(s=!0,i=a)}else{let a=this.parser.schema.marks[n.mark];i=i.concat(a.create(n.attrs))}let l=this.top;if(r&&r.isLeaf)this.findInside(t);else if(o)this.addElement(t,i,o);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,i,!1));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a,i),this.findAround(t,a,!1)}s&&this.sync(l)&&this.open--}addAll(t,n,i,o){let s=i||0;for(let r=i?t.childNodes[i]:t.firstChild,l=o==null?null:t.childNodes[o];r!=l;r=r.nextSibling,++s)this.findAtPoint(t,s),this.addDOM(r,n);this.findAtPoint(t,s)}findPlace(t,n,i){let o,s;for(let r=this.open,l=0;r>=0;r--){let a=this.nodes[r],u=a.findWrapping(t);if(u&&(!o||o.length>u.length+l)&&(o=u,s=a,!u.length))break;if(a.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let r=0;r(r.type?r.type.allowsMarkType(u.type):TT(u.type,t))?(a=u.addToSet(a),!1):!0),this.nodes.push(new lv(t,n,a,o,null,l)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=q0)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)t+=i[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),r=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(r(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:i&&a>=s?i.node(a-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return r(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function lBe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&rj.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function aBe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ET(e){let t={};for(let n in e)t[n]=e[n];return t}function TT(e,t){let n=t.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],r=l=>{s.push(l);for(let a=0;a{if(s.length||r.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(t.marks[o],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,n,i={}){let o=this.marks[t.type.name];return o&&Uv(av(i),o(t,n),null,t.attrs)}static renderSpec(t,n,i=null,o){return typeof n=="string"?{dom:t.createTextNode(n)}:Uv(t,n,i,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new z9(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=LT(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return LT(t.marks)}}function LT(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function av(e){return e.document||window.document}const NT=new WeakMap;function uBe(e){let t=NT.get(e);return t===void 0&&NT.set(e,t=cBe(e)),t}function cBe(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let r=o.indexOf(" ");r>0&&(n=o.slice(0,r),o=o.slice(r+1));let l,a=n?e.createElementNS(n,o):e.createElement(o),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let h=d.indexOf(" ");h>0?a.setAttributeNS(d.slice(0,h),d.slice(h+1),u[d]):d=="style"&&a.style?a.style.cssText=u[d]:a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof h=="string")a.appendChild(e.createTextNode(h));else{let{dom:p,contentDOM:g}=Uv(e,h,n,i);if(a.appendChild(p),g){if(l)throw new RangeError("Multiple content holes");l=g}}}return{dom:a,contentDOM:l}}const lj=65535,aj=Math.pow(2,16);function dBe(e,t){return e+t*aj}function FT(e){return e&lj}function fBe(e){return(e-(e&lj))/aj}const uj=1,cj=2,Kv=4,dj=8;class DT{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&dj)>0}get deletedBefore(){return(this.delInfo&(uj|Kv))>0}get deletedAfter(){return(this.delInfo&(cj|Kv))>0}get deletedAcross(){return(this.delInfo&Kv)>0}}class ll{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&ll.empty)return ll.empty}recover(t){let n=0,i=FT(t);if(!this.inverted)for(let o=0;ot)break;let u=this.ranges[l+s],c=this.ranges[l+r],d=a+u;if(t<=d){let h=u?t==a?-1:t==d?1:n:n,p=a+o+(h<0?0:c);if(i)return p;let g=t==(n<0?a:d)?null:dBe(l/3,t-a),m=t==a?cj:t==d?uj:Kv;return(n<0?t!=a:t!=d)&&(m|=dj),new DT(p,m,g)}o+=c-u}return i?t+o:new DT(t+o,0,null)}touches(t,n){let i=0,o=FT(n),s=this.inverted?2:1,r=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+s],c=a+u;if(t<=c&&l==o*3)return!0;i+=this.ranges[l+r]-u}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o!r.isAtom||!l.type.allowsMarkType(this.mark.type)?r:r.mark(this.mark.addToSet(r.marks)),o),n.openStart,n.openEnd);return es.fromReplace(t,this.from,this.to,s)}invert(){return new jd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Pd(n.pos,i.pos,this.mark)}merge(t){return t instanceof Pd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Pd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Pd(n.from,n.to,t.markFromJSON(n.mark))}}lr.jsonID("addMark",Pd);class jd extends lr{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new Qn(aA(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return es.fromReplace(t,this.from,this.to,i)}invert(){return new Pd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new jd(n.pos,i.pos,this.mark)}merge(t){return t instanceof jd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new jd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new jd(n.from,n.to,t.markFromJSON(n.mark))}}lr.jsonID("removeMark",jd);class Hd extends lr{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return es.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return es.fromReplace(t,this.pos,this.pos+1,new Qn(Bn.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;oi.pos?null:new Wh(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Wh(n.from,n.to,n.gapFrom,n.gapTo,Qn.fromJSON(t,n.slice),n.insert,!!n.structure)}}lr.jsonID("replaceAround",Wh);function m5(e,t,n){let i=e.resolve(t),o=n-t,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let r=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function hBe(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let s=0;s=0;r--){let l=r==i.depth?0:i.pos<=(i.start(r+1)+i.end(r+1))/2?-1:1,a=i.index(r)+(l>0?1:0),u=i.node(r),c=!1;if(s==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?i.pos:l<0?i.before(r+1):i.after(r+1)}return null}class a0 extends lr{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return es.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return es.fromReplace(t,this.pos,this.pos+1,new Qn(Bn.from(o),0,n.isLeaf?0:1))}getMap(){return ll.empty}invert(t){return new a0(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new a0(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new a0(n.pos,n.attr,n.value)}}lr.jsonID("attr",a0);class xy extends lr{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return es.ok(i)}getMap(){return ll.empty}invert(t){return new xy(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xy(n.attr,n.value)}}lr.jsonID("docAttr",xy);let K0=class extends Error{};K0=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};K0.prototype=Object.create(Error.prototype);K0.prototype.constructor=K0;K0.prototype.name="TransformError";const Nk=Object.create(null);class Lo{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new pBe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;s--){let r=n<0?uh(t.node(0),t.node(s),t.before(s+1),t.index(s),n,i):uh(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,n,i);if(r)return r}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Oa(t.node(0))}static atStart(t){return uh(t,t,0,0,1)||new Oa(t)}static atEnd(t){return uh(t,t,t.content.size,t.childCount,-1)||new Oa(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=Nk[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in Nk)throw new RangeError("Duplicate use of selection JSON ID "+t);return Nk[t]=n,n.prototype.jsonID=t,n}getBookmark(){return co.between(this.$anchor,this.$head).getBookmark()}}Lo.prototype.visible=!0;class pBe{constructor(t,n){this.$from=t,this.$to=n}}let BT=!1;function $T(e){!BT&&!e.parent.inlineContent&&(BT=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class co extends Lo{constructor(t,n=t){$T(t),$T(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Lo.near(i);let o=t.resolve(n.map(this.anchor));return new co(o.parent.inlineContent?o:i,i)}replace(t,n=Qn.empty){if(super.replace(t,n),n==Qn.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof co&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new O9(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new co(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let o=t.resolve(n);return new this(o,i==n?o:t.resolve(i))}static between(t,n,i){let o=t.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=Lo.findFrom(n,i,!0)||Lo.findFrom(n,-i,!0);if(s)n=s.$head;else return Lo.near(n,i)}return t.parent.inlineContent||(o==0?t=n:(t=(Lo.findFrom(t,-i,!0)||Lo.findFrom(t,i,!0)).$anchor,t.pos0?0:1);o>0?r=0;r+=o){let l=t.child(r);if(l.isAtom){if(!s&&vi.isSelectable(l))return vi.create(e,n-(o<0?l.nodeSize:0))}else{let a=uh(e,l,n+o,o<0?l.childCount:0,o,s);if(a)return a}n+=l.nodeSize*o}return null}function RT(e,t,n){let i=e.steps.length-1;if(i{r==null&&(r=c)}),e.setSelection(Lo.near(e.doc.resolve(r),n))}function zT(e,t){return!t||!e?e:e.bind(t)}class uv{constructor(t,n,i){this.name=t,this.init=zT(n.init,i),this.apply=zT(n.apply,i)}}new uv("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new uv("selection",{init(e,t){return e.selection||Lo.atStart(t.doc)},apply(e){return e.selection}}),new uv("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new uv("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function fj(e,t,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(t):i=="handleDOMEvents"&&(o=fj(o,t,{})),n[i]=o}return n}class mBe{constructor(t){this.spec=t,this.props={},t.props&&fj(t.props,this,this.props),this.key=t.key?t.key.key:vBe("plugin")}getState(t){return t[this.key]}}const Fk=Object.create(null);function vBe(e){return e in Fk?e+"$"+ ++Fk[e]:(Fk[e]=0,e+"$")}const Sy="kimi-code://skill/";function hj(e){return e?e.startsWith(Sy)&&e.length>Sy.length?"skill":e.startsWith("#")||e.startsWith("?")||e.startsWith("//")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)&&!/^[a-zA-Z]:(?:[\\/]|%5c)/i.test(e)?null:e.endsWith("/")||e.endsWith("\\")||/%5c$/i.test(e)?"folder":"file":null}function Ep(e){const t=e.search(/[#?]/);return t>0?e.slice(0,t):e}function pj(e){let t="";for(const n of e)n.codePointAt(0)>127||/[A-Za-z0-9\-._~]/.test(n)?t+=n:t+=`%${n.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`;return t}function yBe(e){const t=e.split("/").map(pj).join("/");return t.startsWith("//")?`/%2F${t.slice(2)}`:t}function kBe(e){return e.replace(/%/g,"%25").replace(/&/g,"%26").replace(//g,"%3E").replace(/([\\[\]])/g,"\\$1").replace(/\n/g,"%0A").replace(/\r/g,"%0D")}function bBe(e){return e.replace(/\\([\\[\]])/g,"$1").replace(/%0A/g,` -`).replace(/%0D/g,"\r").replace(/%26/g,"&").replace(/%3C/g,"<").replace(/%3E/g,">").replace(/%25/g,"%")}function ABe(e){return e.replace(/%0A/g,` -`).replace(/%0D/g,"\r").replace(/%26/g,"&").replace(/%3C/g,"<").replace(/%3E/g,">").replace(/%25/g,"%")}function CBe(e,t){const n=t?e.replace(/\\([\\<>])/g,"$1"):e.replace(/\\([\\()])/g,"$1");try{return decodeURIComponent(n)}catch{return n}}function gj(e){const t=e.slice(Sy.length);try{return decodeURIComponent(t)}catch{return t}}function cA(e){const t=kBe(e.name);if(e.kind==="skill")return`[${t}](${Sy}${pj(e.name)})`;const n=e.kind==="folder"&&!e.path.endsWith("/")&&!e.path.endsWith("\\")?`${e.path}/`:e.path;return`[${t}](${yBe(n)})`}const wBe=new nBe({nodes:{doc:{content:"block+"},paragraph:{group:"block",content:"inline*",toDOM:()=>["p",0],parseDOM:[{tag:"p"}]},text:{group:"inline"},mention:{group:"inline",inline:!0,atom:!0,selectable:!0,attrs:{kind:{},name:{},path:{default:""}},leafText:e=>cA(e.attrs),toDOM:e=>{const t=e.attrs;return["span",{class:`mention-pill mention-${t.kind}`,"data-mention-path":t.path},t.name]}}}}),xBe={extensions:[{disable:{null:["attention","autolink","blockQuote","characterReference","codeFenced","codeIndented","codeText","definition","hardBreakEscape","headingAtx","htmlFlow","htmlText","list","setextUnderline","thematicBreak"]}}]};function dA(e){if(e.includes(` -`)){const a=[];let u=0;for(const c of e.split(` -`)){for(const d of dA(c))a.push({...d,start:d.start+u,end:d.end+u});u+=c.length+1}return a}const t=RDe($De(xBe).document().write(zDe()(e,void 0,!0))),n=[];let i=null,o=!1,s=!1,r=null,l=0;for(const[a,u]of t){if(u.type==="image"){l+=a==="enter"?1:-1;continue}if(l>0)continue;if(a==="enter"){u.type==="label"?i={start:u.start.offset,end:u.end.offset}:u.type==="resource"&&i!==null&&u.start.offset===i.end?(o=!0,s=!1,r=null):u.type==="resourceTitle"&&o?s=!0:u.type==="resourceDestination"&&o&&(r={start:u.start.offset,end:u.end.offset});continue}if(u.type!=="resource"||!o||i===null)continue;o=!1;const{start:c,end:d}=i;i=null;const h=u.end.offset;if(s||e[c]!=="["||r===null)continue;const p=e.slice(c+1,d-1);let g=e.slice(r.start,r.end),m=!1;if(g.startsWith("<")&&(m=!0,g=g.slice(1,-1)),!p||!g)continue;const k=hj(g);if(k!==null)if(k==="skill")n.push({start:c,end:h,attrs:{kind:k,name:gj(g),path:""},rawDest:g});else{const w=CBe(g,m);n.push({start:c,end:h,attrs:{kind:k,name:bBe(p),path:w},rawDest:g})}}return n}function SBe(e){const t=dA(e);if(t.length===0)return[{type:"text",value:e}];const n=[];let i=0;for(const o of t)o.start>i&&n.push({type:"text",value:e.slice(i,o.start)}),n.push({type:"mention",attrs:o.attrs,rawDest:o.rawDest}),i=o.end;return in.attrs.kind==="skill");return t.length===1&&t[0].attrs.name===e.name}function fA(e,t){if(mj(e))return t.revivePill?e.args??"":null;if(e.name.includes(" "))return null;const n=e.args??"";return`/skill:${e.name}${n.length>0?` ${n}`:""}`}function vj(e,t){return fA(e,t)!==null}const xf=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},yj=function(e,t,n,i){return n&&(OT(e,t,n,i,-1)||OT(e,t,n,i,1))},_Be=/^(img|br|input|textarea|hr)$/i;function OT(e,t,n,i,o){for(var s;;){if(e==n&&t==i)return!0;if(t==(o<0?0:_y(e))){let r=e.parentNode;if(!r||r.nodeType!=1||hA(e)||_Be.test(e.nodeName)||e.contentEditable=="false")return!1;t=xf(e)+(o<0?0:1),e=r}else if(e.nodeType==1){let r=e.childNodes[t+(o<0?-1:0)];if(r.nodeType==1&&r.contentEditable=="false")if(!((s=r.pmViewDesc)===null||s===void 0)&&s.ignoreForSelection)t+=o;else return!1;else e=r,t=o<0?_y(e):0}else return!1}}function _y(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function MBe(e,t,n){for(let i=t==0,o=t==_y(e);i||o;){if(e==n)return!0;let s=xf(e);if(e=e.parentNode,!e)return!1;i=i&&s==0,o=o&&s==_y(e)}}function hA(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const kj=function(e){return e.focusNode&&yj(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function bj(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const Ua=typeof navigator<"u"?navigator:null,PT=typeof document<"u"?document:null,Yc=Ua&&Ua.userAgent||"",v5=/Edge\/(\d+)/.exec(Yc),Aj=/MSIE \d/.exec(Yc),y5=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yc),wg=!!(Aj||y5||v5),Cj=Aj?document.documentMode:y5?+y5[1]:v5?+v5[1]:0,P9=!wg&&/gecko\/(\d+)/i.test(Yc);P9&&+(/Firefox\/(\d+)/.exec(Yc)||[0,0])[1];const k5=!wg&&/Chrome\/(\d+)/.exec(Yc),Jc=!!k5,wj=k5?+k5[1]:0,Sf=!wg&&!!Ua&&/Apple Computer/.test(Ua.vendor),pA=Sf&&(/Mobile\/\w+/.test(Yc)||!!Ua&&Ua.maxTouchPoints>2),El=pA||(Ua?/Mac/.test(Ua.platform):!1),xj=Ua?/Win/.test(Ua.platform):!1,xg=/Android \d/.test(Yc),gA=!!PT&&"webkitFontSmoothing"in PT.documentElement.style,IBe=gA?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function EBe(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),s=o&&o.size==0,r=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(r<0)return null;let l=i.resolve(r),a,u;if(kj(n)){for(a=r;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&vi.isSelectable(d)&&o.parent&&!(d.isInline&&MBe(n.focusNode,n.focusOffset,o.dom))){let h=o.posBefore;u=new vi(r==h?l:i.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=r,h=r;for(let p=0;p{(n.anchorNode!=i||n.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Sj(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function LBe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?t.collapse(n.parentNode,xf(n)+1):t.collapse(n,0),!i&&!e.state.selection.visible&&wg&&Cj<=11&&(n.disabled=!0,n.disabled=!1)}function NBe(e,t){if(t instanceof vi){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qT(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qT(e)}function qT(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function _j(e,t,n,i){return e.someProp("createSelectionBetween",o=>o(e,t,n))||co.between(t,n,i)}function FBe(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function b5(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&Lo.findFrom(s,t)}function oc(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function UT(e,t,n){let i=e.state.selection;if(i instanceof co)if(n.indexOf("s")>-1){let{$head:o}=i,s=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let r=e.state.doc.resolve(o.pos+s.nodeSize*(t<0?-1:1));return oc(e,new co(i.$anchor,r))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=b5(e.state,t);return o&&o instanceof vi?oc(e,o):!1}else if(!(El&&n.indexOf("m")>-1)){let o=i.$head,s=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,r;if(!s||s.isText)return!1;let l=t<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(r=e.docView.descAt(l))&&!r.contentDOM?vi.isSelectable(s)?oc(e,new vi(t<0?e.state.doc.resolve(o.pos-s.nodeSize):o)):gA?oc(e,new co(e.state.doc.resolve(t<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof vi&&i.node.isInline)return oc(e,new co(t>0?i.$to:i.$from));{let o=b5(e.state,t);return o?oc(e,o):!1}}}function My(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function u0(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Jf(e,t){return t<0?DBe(e):BBe(e)}function DBe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let o,s,r=!1;for(P9&&n.nodeType==1&&i0){if(n.nodeType!=1)break;{let l=n.childNodes[i-1];if(u0(l,-1))o=n,s=--i;else if(l.nodeType==3)n=l,i=n.nodeValue.length;else break}}else{if(Mj(n))break;{let l=n.previousSibling;for(;l&&u0(l,-1);)o=n.parentNode,s=xf(l),l=l.previousSibling;if(l)n=l,i=My(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}r?A5(e,n,i):o&&A5(e,o,s)}function BBe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let o=My(n),s,r;for(;;)if(i{e.state==o&&mA(e)},50)}function KT(e,t){let n=e.state.doc.resolve(t);if(!(Jc||xj)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let s=e.coordsAtPos(t-1),r=(s.top+s.bottom)/2;if(r>o.top&&r1)return s.lefto.top&&r1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function VT(e,t,n){let i=e.state.selection;if(i instanceof co&&!i.empty||n.indexOf("s")>-1||El&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=b5(e.state,t);if(r&&r instanceof vi)return oc(e,r)}if(!o.parent.inlineContent){let r=t<0?o:s,l=i instanceof Oa?Lo.near(r,t):Lo.findFrom(r,t);return l?oc(e,l):!1}return!1}function ZT(e,t){if(!(e.state.selection instanceof co))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let r=e.state.tr;return t<0?r.delete(n.pos-s.nodeSize,n.pos):r.delete(n.pos,n.pos+s.nodeSize),e.dispatch(r),!0}return!1}function GT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zBe(e){if(!Sf||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;GT(e,i,"true"),setTimeout(()=>GT(e,i,"false"),20)}return!1}function OBe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function PBe(e,t){let n=t.keyCode,i=OBe(t);if(n==8||El&&n==72&&i=="c")return ZT(e,-1)||Jf(e,-1);if(n==46&&!t.shiftKey||El&&n==68&&i=="c")return ZT(e,1)||Jf(e,1);if(n==13||n==27)return!0;if(n==37||El&&n==66&&i=="c"){let o=n==37?KT(e,e.state.selection.from)=="ltr"?-1:1:-1;return UT(e,o,i)||Jf(e,o)}else if(n==39||El&&n==70&&i=="c"){let o=n==39?KT(e,e.state.selection.from)=="ltr"?1:-1:1;return UT(e,o,i)||Jf(e,o)}else{if(n==38||El&&n==80&&i=="c")return VT(e,-1,i)||Jf(e,-1);if(n==40||El&&n==78&&i=="c")return zBe(e)||VT(e,1,i)||Jf(e,1);if(i==(El?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ij(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:i,openStart:o,openEnd:s}=t;for(;o>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){o--,s--;let p=i.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let r=e.someProp("clipboardSerializer")||z9.fromSchema(e.state.schema),l=Dj(),a=l.createElement("div");a.appendChild(r.serializeFragment(i,{document:l}));let u=a.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=Fj[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let g=l.createElement(c[p]);for(;a.firstChild;)g.appendChild(a.firstChild);a.appendChild(g),d++}u=a.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` - -`);return{dom:a,text:h,slice:t}}function Ej(e,t,n,i,o){let s=o.parent.type.spec.code,r,l;if(!n&&!t)return null;let a=!!t&&(i||s||!n);if(a){if(e.someProp("transformPastedText",h=>{t=h(t,s||i,e)}),s)return l=new Qn(Bn.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0),e.someProp("transformPasted",h=>{l=h(l,e,!0)}),l;let d=e.someProp("clipboardTextParser",h=>h(t,o,i,e));if(d)l=d;else{let h=o.marks(),{schema:p}=e.state,g=z9.fromSchema(p);r=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let k=r.appendChild(document.createElement("p"));m&&k.appendChild(g.serializeNode(p.text(m,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),r=qBe(n),gA&&UBe(r);let u=r&&r.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=r.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;r=h}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||sBe.fromSchema(e.state.schema)).parseSlice(r,{preserveWhitespace:!!(a||c),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!jBe.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)l=KBe(QT(l,+c[1],+c[2]),c[4]);else if(l=Qn.maxOpen(HBe(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let p=l.content.firstChild;d{l=d(l,e,a)}),l}const jBe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function HBe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),s,r=[];if(e.forEach(l=>{if(!r)return;let a=o.findWrapping(l.type),u;if(!a)return r=null;if(u=r.length&&s.length&&Lj(a,s,l,r[r.length-1],0))r[r.length-1]=u;else{r.length&&(r[r.length-1]=Nj(r[r.length-1],s.length));let c=Tj(l,a);r.push(c),o=o.matchType(c.type),s=a}}),r)return Bn.from(r)}return e}function Tj(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,Bn.from(e));return e}function Lj(e,t,n,i,o){if(o1&&(s=0),o=n&&(l=t<0?r.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(r.contentMatchAt(r.childCount).fillBefore(Bn.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,r.copy(l))}function QT(e,t,n){return tn})),Bk.createHTML(e)):e}function qBe(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Dj(),i=n.body,o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&Fj[o[1].toLowerCase()])&&(e=s.map(r=>"<"+r+">").join("")+e+s.map(r=>"").reverse().join("")),i.innerHTML=WBe(e),s)for(let r=0;r=0;l-=2){let a=n.nodes[i[l]];if(!a||a.hasRequiredAttrs())break;o=Bn.from(a.create(i[l+1],o)),s++,r++}return new Qn(o,s,r)}const va={},kl={};function mu(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}kl.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!zj(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(xg&&Jc&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),pA&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",o=>o(e,bj(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||PBe(e,n)?n.preventDefault():mu(e,"key")};kl.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};kl.keypress=(e,t)=>{let n=t;if(zj(e)||!n.charCode||n.ctrlKey&&!n.altKey||El&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof co)||!i.$from.sameParent(i.$to)){let o=String.fromCharCode(n.charCode),s=()=>e.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",r=>r(e,i.$from.pos,i.$to.pos,o,s))&&e.dispatch(s()),n.preventDefault()}};function Sg(e){return{left:e.clientX,top:e.clientY}}function VBe(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}function vA(e,t,n,i,o){if(i==-1)return!1;let s=e.state.doc.resolve(i);for(let r=s.depth+1;r>0;r--)if(e.someProp(t,l=>r>s.depth?l(e,n,s.nodeAfter,s.before(r),o,!0):l(e,n,s.node(r),s.before(r),o,!1)))return!0;return!1}function _g(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let i=e.state.tr.setSelection(t);i.setMeta("pointer",!0),e.dispatch(i)}function ZBe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return i&&i.isAtom&&vi.isSelectable(i)?(_g(e,new vi(n)),!0):!1}function GBe(e,t){if(t==-1)return!1;let n=e.state.selection,i,o;n instanceof vi&&(i=n.node);let s=e.state.doc.resolve(t);for(let r=s.depth+1;r>0;r--){let l=r>s.depth?s.nodeAfter:s.node(r);if(vi.isSelectable(l)){i&&n.$from.depth>0&&r>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?o=s.before(n.$from.depth):o=s.before(r);break}}return o!=null?(_g(e,vi.create(e.state.doc,o)),!0):!1}function QBe(e,t,n,i,o){return vA(e,"handleClickOn",t,n,i)||e.someProp("handleClick",s=>s(e,t,i))||(o?GBe(e,n):ZBe(e,n))}function YBe(e,t,n,i){return vA(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",o=>o(e,t,i))}function JBe(e,t,n,i){return vA(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",o=>o(e,t,i))||XBe(e,n,i)}function XBe(e,t,n){if(n.button!=0)return!1;let i=Bj(e,t,!0),o=e.state.doc;return i?(_g(e,i),i instanceof co&&o.eq(e.state.doc)&&(e.input.mouseDown=new t$e(e,i)),!0):!1}function Bj(e,t,n){let i=e.state.doc;if(t==-1)return i.inlineContent?co.create(i,0,i.content.size):null;let o=i.resolve(t);for(let s=o.depth+1;s>0;s--){let r=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(r.inlineContent)return co.create(i,l+1,l+1+r.content.size);if(n&&vi.isSelectable(r))return vi.create(i,l)}return null}function yA(e){return Iy(e)}const $j=El?"metaKey":"ctrlKey";va.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=yA(e),o=Date.now(),s="singleClick";o-e.input.lastClick.time<500&&VBe(n,e.input.lastClick)&&!n[$j]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:s,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let r=e.posAtCoords(Sg(n));r&&(s=="singleClick"?e.input.mouseDown=new e$e(e,r,n,!!i):(s=="doubleClick"?YBe:JBe)(e,r.pos,r.inside,n)?n.preventDefault():mu(e,"pointer"))};class Rj{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){t.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class e$e extends Rj{constructor(t,n,i,o){super(t),this.pos=n,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!i[$j],this.allowDefault=i.shiftKey;let s,r;if(n.inside>-1)s=t.state.doc.nodeAt(n.inside),r=n.inside;else{let c=t.state.doc.resolve(n.pos);s=c.parent,r=c.depth?c.before():0}const l=o?null:i.target,a=l?t.docView.nearestDesc(l,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=t.state;i.button==0&&(s.type.spec.draggable&&s.type.spec.selectable!==!1||u instanceof vi&&u.from<=r&&u.to>r)&&(this.mightDrag={node:s,pos:r,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&P9&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),mu(t,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||mA(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Sg(t))),this.updateAllowDefault(t),this.allowDefault||!n?mu(this.view,"pointer"):QBe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Sf&&this.mightDrag&&!this.mightDrag.node.isAtom||Jc&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(_g(this.view,Lo.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):mu(this.view,"pointer")}move(t){this.updateAllowDefault(t),mu(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class t$e extends Rj{constructor(t,n){super(t),this.startSelection=n,this.startDoc=t.state.doc}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),mu(this.view,"pointer");let n=this.view.posAtCoords(Sg(t)),i=n&&Bj(this.view,n.inside,!1);if(!i)return;let{doc:o}=this.view.state,s=this.startSelection,[r,l]=i.from{e.input.lastTouch=Date.now(),yA(e),mu(e,"pointer")};va.touchmove=e=>{e.input.lastTouch=Date.now(),mu(e,"pointer")};va.contextmenu=e=>yA(e);function zj(e,t){return e.composing?!0:Sf&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const n$e=xg?5e3:-1;kl.compositionstart=kl.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof co&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)||Jc&&xj&&i$e(e)))e.markCursor=e.state.storedMarks||n.marks(),Iy(e,!0),e.markCursor=null;else if(Iy(e,!t.selection.empty),P9&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let o=i.focusNode,s=i.focusOffset;o&&o.nodeType==1&&s!=0;){let r=s<0?o.lastChild:o.childNodes[s-1];if(!r)break;if(r.nodeType==3){let l=e.domSelection();l&&l.collapse(r,r.nodeValue.length);break}else o=r,s=-1}}e.input.composing=!0}Oj(e,n$e)};function i$e(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let i=t.childNodes[n];return i.nodeType==1&&i.contentEditable=="false"}kl.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Oj(e,20))};function Oj(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Iy(e),t))}function o$e(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Iy(e,t=!1){if(!(xg&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),o$e(e),t||e.docView&&e.docView.dirty){let n=EBe(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function s$e(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const V0=wg&&Cj<15||pA&&IBe<604;va.copy=kl.cut=(e,t)=>{let n=t,i=e.state.selection,o=n.type=="cut";if(i.empty)return;let s=V0?null:n.clipboardData,r=i.content(),{dom:l,text:a}=Ij(e,r);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):s$e(e,l),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function r$e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function l$e(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?w5(e,i.value,null,o,t):w5(e,i.textContent,i.innerHTML,o,t)},50)}function w5(e,t,n,i,o){let s=Ej(e,t,n,i,e.state.selection.$from);if(e.someProp("handlePaste",a=>a(e,o,s||Qn.empty)))return!0;if(!s)return!1;let r=r$e(s),l=r?e.state.tr.replaceSelectionWith(r,i):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Pj(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}kl.paste=(e,t)=>{let n=t;if(e.composing&&!xg)return;let i=V0?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&w5(e,Pj(i),i.getData("text/html"),o,n)?n.preventDefault():l$e(e,n)};class a$e{constructor(t,n,i){this.slice=t,this.move=n,this.node=i}}const u$e=El?"altKey":"ctrlKey";function jj(e,t){let n;return e.someProp("dragCopies",i=>{n=n||i(t)}),n!=null?!n:!t[u$e]}va.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,s=o.empty?null:e.posAtCoords(Sg(n)),r;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof vi?o.to-1:o.to))){if(i&&i.mightDrag)r=vi.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(r=vi.create(e.state.doc,d.posBefore))}}let l=(r||e.state.selection).content(),{dom:a,text:u,slice:c}=Ij(e,l);(!n.dataTransfer.files.length||!Jc||wj>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(V0?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",V0||n.dataTransfer.setData("text/plain",u),e.dragging=new a$e(c,jj(e,n),r)};va.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};kl.dragover=kl.dragenter=(e,t)=>t.preventDefault();kl.drop=(e,t)=>{try{c$e(e,t,e.dragging)}finally{e.dragging=null}};function c$e(e,t,n){if(!t.dataTransfer)return;let i=e.posAtCoords(Sg(t));if(!i)return;let o=e.state.doc.resolve(i.pos),s=n&&n.slice;s?e.someProp("transformPasted",p=>{s=p(s,e,!1)}):s=Ej(e,Pj(t.dataTransfer),V0?null:t.dataTransfer.getData("text/html"),!1,o);let r=!!(n&&jj(e,t));if(e.someProp("handleDrop",p=>p(e,t,s||Qn.empty,r))){t.preventDefault();return}if(!s)return;t.preventDefault();let l=s?hBe(e.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let a=e.state.tr;if(r){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let u=a.mapping.map(l),c=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=a.doc;if(c?a.replaceRangeWith(u,u,s.content.firstChild):a.replaceRange(u,u,s),a.doc.eq(d))return;let h=a.doc.resolve(u);if(c&&vi.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))a.setSelection(new vi(h));else{let p=a.mapping.map(l);a.mapping.maps[a.mapping.maps.length-1].forEach((g,m,k,w)=>p=w),a.setSelection(_j(e,h,a.doc.resolve(p)))}e.focus(),e.dispatch(a.setMeta("uiEvent","drop"))}va.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&mA(e)},20))};va.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};va.beforeinput=(e,t)=>{if(xg&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:i}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=i||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",s=>s(e,bj(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in kl)va[e]=kl[e];function Z0(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Ey{constructor(t,n){this.toDOM=t,this.spec=n||tf,this.side=this.spec.side||0}map(t,n,i,o){let{pos:s,deleted:r}=t.mapResult(n.from+o,this.side<0?-1:1);return r?null:new $a(s-i,s-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Ey&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Z0(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class bc{constructor(t,n){this.attrs=t,this.spec=n||tf}map(t,n,i,o){let s=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-i,r=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-i;return s>=r?null:new $a(s,r,this)}valid(t,n){return n.from=t&&(!s||s(l.spec))&&i.push(l.copy(l.from+o,l.to+o))}for(let r=0;rt){let l=this.children[r]+1;this.children[r+2].findInner(t-l,n-l,i,o+l,s)}}map(t,n,i){return this==pr||t.maps.length==0?this:this.mapInner(t,n,0,0,i||tf)}mapInner(t,n,i,o,s){let r;for(let l=0;l{let u=a+i,c;if(c=Wj(n,l,u)){for(o||(o=this.children.slice());sl&&d.to=t){this.children[l]==t&&(i=this.children[l+2]);break}let s=t+1,r=s+n.content.size;for(let l=0;ls&&a.type instanceof bc){let u=Math.max(s,a.from)-s,c=Math.min(r,a.to)-s;uo.map(t,n,tf));return Dd.from(i)}forChild(t,n){if(n.isLeaf)return Ls.empty;let i=[];for(let o=0;on instanceof Ls)?t:t.reduce((n,i)=>n.concat(i instanceof Ls?i:i.members),[]))}}forEachSet(t){for(let n=0;n{let k=m-g-(p-h);for(let w=0;wy+c-d)continue;let b=l[w]+c-d;p>=b?l[w+1]=h<=b?-2:-1:h>=c&&k&&(l[w]+=k,l[w+1]+=k)}d+=k}),c=n.maps[u].map(c,-1)}let a=!1;for(let u=0;u=i.content.size){a=!0;continue}let h=n.map(e[u+1]+s,-1),p=h-o,{index:g,offset:m}=i.content.findIndex(d),k=i.maybeChild(g);if(k&&m==d&&m+k.nodeSize==p){let w=l[u+2].mapInner(n,k,c+1,e[u]+s+1,r);w!=pr?(l[u]=d,l[u+1]=p,l[u+2]=w):(l[u+1]=-2,a=!0)}else a=!0}if(a){let u=f$e(l,e,t,n,o,s,r),c=Ty(u,i,0,r);t=c.local;for(let d=0;dn&&r.to{let u=Wj(e,l,a+n);if(u){s=!0;let c=Ty(u,l,n+a+1,i);c!=pr&&o.push(a,a+l.nodeSize,c)}});let r=Hj(s?qj(e):e,-n).sort(nf);for(let l=0;l0;)t++;e.splice(t,0,n)}const h$e={sm:14,md:16,lg:20},p$e={file:w8,folder:vR,skill:kR,copy:mR,check:gR,"external-link":yR};function e1(e,t="md"){const n=h$e[t];return p$e[e].replace(/]*>/,i=>i.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^
        ',1)),t("main",V,[t("div",L,[a[150]||(a[150]=c('
        ● Design System · v1.0

        Kimi Web Design System

        This document defines the visual language and component specification for Kimi Web — design tokens, component primitives, the chat interface, theming, and style rules. All UI work is grounded in it: unified, restrained, token-driven, and themeable.

        Scope apps/kimi-webComponent primitivesTheme 1 set · 4 customizable colorsLight / dark mode
        i
        This spec is the single reference when changing the web UI. Before adding or modifying a component, style, layout, or theme, read this document first; color, font, radius, spacing, shadow, z-index, and motion always use the §02 tokens, components reuse the §03 primitives, and the §06 style rules are followed.
        01

        Design Principles

        Every UI decision traces back to the following principles. Kimi Web is a local Agent tool for developers: quick scanning, long stretches of staring, often in the dark — the design serves the task, and is restrained, clinical, and density-first.

        • Consistency —— The same semantics use the same component. The primary button, dialog, input, and badge should each have exactly "one" correct way to be written across the entire site.
        • Hierarchy —— Build a clear hierarchy through size, weight, color, and whitespace; emphasize through "restraint" rather than "bolder and bigger".
        • Proximity —— Group related elements, leave whitespace between unrelated ones. A card's padding, line spacing, and group spacing all come from the same spacing scale.
        • Feedback —— hover / active / focus / loading / success / error all have visible states, and the state language is unified.
        • Breathing room —— Control density with the spacing scale rather than arbitrary pixels; prefer restrained whitespace over cramming controls together.
        • Accessibility (A11y) —— Text contrast ≥ 4.5:1, visible focus rings, touch targets ≥ 32px, and states that don't rely on color alone.
        • Reduction —— The number of colors, radii, shadow levels, and type sizes all converge to a finite set of tokens; delete stray values.
        Brand tone (the do-not list): calm, clinical, never exaggerated. Reject purple gradients, glassmorphism, glowing shadows, AI purple / blue glows, endlessly looping fussy micro-animations, "Boost your productivity"-style marketing copy, and using emoji as icons. These are all common tells of AI-generated interfaces (an "AI tell"), deliberately avoided.
        i
        Declare design intent first (Design Read): before adding a component / page, write one sentence describing its scenario, audience, and tone (for example, "a lightweight tool card embedded in a conversation, for developers, calm and restrained"), then build. If the intent isn't clear, ask one question first rather than defaulting to the nearest existing style.
        ',2)),t("section",N,[a[7]||(a[7]=c(`
        02

        Design Tokens

        Collapse every visual decision into tokens. Color tokens keep the existing short names and fill out the semantics (lowering migration cost), while spacing, z-index, motion, and font-weight fill in the scales that are currently missing. Every token has: name, light value, dark value, and usage.

        i
        Naming convention: --<category>-<role>-<state>. For example --color-text-muted, --radius-md, --space-4. To reduce churn, the existing short names (--bg / --ink / --line / --blue …) are kept as compatibility aliases for one release cycle.

        Color

        Semantic-first, in three layers: background / text / border + accent + status colors. All colors are defined in light / dark pairs, with contrast ≥ 4.5:1.

        i
        The table below shows the semantic tokens. Each ships a light value in :root and a dark override in the data-color-scheme blocks — for example --color-bg is #ffffff in light and #121212 in dark; --color-accent is the brand blue (#1783ff light / #1a88ff dark). The semantic status colors (success / warning / danger / info) are independent palettes, one set each for light / dark.
        bg
        #ffffff / #121212
        surface
        #f5f5f5 / #1f1f1f
        surface-sunken
        #f5f5f5 / #121212
        well
        #f5f5f5 / #1f1f1f
        surface-deep
        #f5f5f5 / #0d0d0d
        surface-overlay
        #ffffff / rgba(255,255,255,.1)
        selected
        rgba(0,0,0,.05) / rgba(255,255,255,.1)
        fg
        rgba(0,0,0,.9) / rgba(255,255,255,.84)
        fg-muted
        rgba(0,0,0,.6) / rgba(255,255,255,.56)
        line
        rgba(0,0,0,.13) / rgba(255,255,255,.12)
        subtle
        rgba(0,0,0,.05) / rgba(255,255,255,.05)
        accent (KMBlue)
        #1783ff / #1a88ff
        accent-soft
        #e8f3ff / rgba(26,136,255,.1)
        TokenLightDarkUsage
        --color-bg#ffffff#121212Page background
        --color-surface#f5f5f5#1f1f1fPanel / sidebar / card head
        --color-surface-raised#ffffff#292929Raised card / dialog / input
        --color-menu-bgrgba(255,255,255,.95)rgba(41,41,41,.95)Floating menu panel — frosted glass over --p-menu-backdrop blur
        --color-surface-overlay#ffffffrgba(255,255,255,.1)Field-control fill on raised cards (selects, steppers) — top rung; light tops out at white (the level is carried by the border), dark steps one rung above raised. Floating layers stay at raised
        --color-well#f5f5f5#1f1f1fContent well on the page (code blocks, tool-output panels, match/file lists, media thumbnails) — light reuses the sunken recess; dark lifts one rung ABOVE the page, because a true recess (#121212) vanishes into the page there
        --color-surface-deep#f5f5f5#0d0d0dDeep chrome plane one step BELOW the page (panel headers, diff gutters) — dark drops under --color-bg so chrome framing stays darker than the content it frames
        --color-textrgba(0,0,0,.9)rgba(255,255,255,.84)Body text / headings
        --color-text-strong#000000#ffffffMax foreground emphasis — menu-row label & icon on hover
        --color-text-mutedrgba(0,0,0,.6)rgba(255,255,255,.56)Secondary text / placeholder
        --color-linergba(0,0,0,.13)rgba(255,255,255,.12)Divider / card border
        --color-subtlergba(0,0,0,.05)rgba(255,255,255,.05)Subtle hairline — tertiary separators below --color-line (diff-gutter column rules, quiet dividers inside wells)
        --color-selectedrgba(0,0,0,.05)rgba(255,255,255,.1)Neutral selected fill (sidebar rows, list pickers) — translucent, never accent-tinted
        --color-hoverrgba(0,0,0,.03)rgba(255,255,255,.05)Row hover wash — lighter than the selected fill (hover < selected); translucent, sits on any surface. The global hover rule: transparent-base controls overlay this f1 wash (hover never darkens — never sunken); filled controls use their own hover token (accent-hover, send-bg-hover)
        --color-selected-hoverrgba(0,0,0,.08)rgba(255,255,255,.14)Hover of a control RESTING at the selected fill (work cards) — one rung above f2, below f3: hover deepens/brightens a step, never drops below the rest state
        --color-inline-code-bgrgba(0,0,0,.03)rgba(255,255,255,.1)Inline-code chip fill — fills.f1 / fills.f2; dark lifts off any dark surface (sunken == bg there)
        --color-media-alpha-bg-1≈#858585≈#76797eCheckerboard square A of the <img> alpha canvas — color-mix of --color-bg/--color-text (52/48); applied via --media-alpha-canvas (16px period)
        --color-media-alpha-bg-2≈#6b6b6b≈#8c8f93Checkerboard square B (42/58) — both squares stay ≥3:1 against white and black; opaque images cover the canvas
        --color-sidebar-bg#f9fbfc#0d0d0dSidebar surface — one step off --color-bg (just under white in light, one step BELOW the page in dark) so the session column reads as its own plane and never brighter than the reading surface
        --color-scrimrgba(0,0,0,.4)rgba(0,0,0,.6)Modal scrim — the dark veil behind dialogs/lightboxes (mask.base; legacy hardcoded overlays can migrate here)
        --color-scrim-strongrgba(0,0,0,.6)rgba(0,0,0,.75)Stronger scrim for full-screen media previews (mask.strong — the PhotoSwipe image preview backdrop)
        --color-text-on-scrim#ffffffsameText drawn on the scrim (captions over the media lightbox)
        --color-accent#1783ff#1a88ffPrimary action / link / focus
        --color-success#0e7a38#3fb950Success / pass
        --color-warning#a9610a#d29922Warning / pending
        --color-danger#c0392b#f85149Danger / error / abort

        Palette

        The palette is the production kimi.com palette (design tokens tokens.json): neutral-gray surfaces, an alpha-based label / fill / separator ramp (labels.* / fills.* / separator.s1), the KMBlue accent, and a true neutral dark ladder (#121212 → #1f1f1f → #292929; the deep chrome plane and sidebar derive one step below at #0d0d0d — the palette has nothing darker than primary).

        The ONE deliberate exception is the status hues: success / warning / danger / done keep the app's own WCAG-tuned ramp (≥4.5:1 on the neutral surfaces) — the production status colours (positiveGreen #16c456, orange #ff9500, danger red #ff3849) are too bright against it. Diff add/del bands happen to coincide (both use the production 25% fills in light, 14% in dark).

        Surface usage

        The surface layers each have a role — choose by "field overlay / raised layer / content well / default flat layer / sunken layer / page background / deep chrome", and avoid treating --p-surface-raised as a universal background. In dark, elevation = lighter: floating layers sit above the content, content wells sit above the page, and chrome planes (sidebar, panel headers) sit below it — never the reverse. One consequence: on the page itself, never use --color-surface-sunken for a content carrier — it equals --color-bg in dark and the fill vanishes; use --color-well. Sunken stays correct INSIDE surface / raised cards, where it is a genuine recess. Field controls (selects, steppers) on a raised card use --color-surface-overlay, the top fill rung; floating layers keep --color-surface-raised — their elevation is shadow + hairline, not a lighter fill.

        TokenLightDarkUsage
        --p-surface-overlay#ffffff#22272eField controls on raised cards — select, stepper (top fill rung; light = white)
        --p-surface-raised#ffffff#1c2128Raised card / dialog / input (raised layer)
        --p-well#f3f5f8#13181eCode block / tool output / list carrier directly on the page (content well — light: recessed, dark: one rung above the page)
        --p-surface#fafbfc#13181ePanel / sidebar / card head (default flat layer)
        --p-surface-sunken#f3f5f8#0d1117Recessed area INSIDE a surface / raised card — never a content carrier on the page (sunken layer)
        --p-bg#ffffff#0d1117Page background
        --p-surface-deep#fafbfc#0a0d12Panel header / diff gutter (deep chrome layer — below the page in dark)

        Borders & hairlines

        Three line tokens, three jobs: --color-line is the default structural separator, --color-subtle the tertiary separator that must stay quieter (diff-gutter column rules, quiet dividers inside wells), and --color-line-strong the edge of interactive controls (inputs, selects, secondary buttons). Width is one: 0.5px — every stroke is the same hairline, on static structural edges (card rims, plane seams, header dividers), interactive control rims and floating layers alike. Separation comes from luminance first — planes one rung apart already read as distinct in dark, so their shared edge stays a 0.5px hairline rather than a heavier border; same-rung neighbours (list rows, card head / body) are exactly where a hairline is required. In dark, drop shadows fade on near-black surfaces, so a floating layer's edge IS its hairline — never ship a shadow-only floating surface. (Legacy --line / --line2 alias --color-line / --color-subtle for one cycle; new work references the v2 names.)

        Focus ring

        All focusable controls (button, input, link, menu item, switch, checkbox) use the focus-ring token uniformly; do not hand-write a box-shadow focus ring.

        TokenValueUsage
        --p-focus-ring-w3pxThe focus ring's spread width — the rings below derive from it, and so does anything that must reserve room for the ring (clip protection)
        --p-focus-ring0 0 0 3px var(--p-accent-soft)Default focus ring (link, menu item, switch, checkbox)
        --p-focus-ring-strong0 0 0 3px var(--p-accent-soft), 0 0 0 1px var(--p-accent)Strong focus ring (button, primary action)

        Text selection

        The text-selection color uses --p-selection uniformly (light rgba(23,131,255,.18) / dark rgba(88,166,255,.32)), applied by the global ::selection rule; do not set a separate highlight background.

        Disabled state

        All disabled controls use opacity:.5 + cursor:not-allowed uniformly; do not separately grey out or recolor.

        Font families

        Kimi Web uses two font tokens: --font-ui (UI and body, with Schibsted Grotesk for Latin and Noto Sans SC for Simplified Chinese) and --font-mono (code and monospace). Components always reference the variables; do not hard-code font names.

        --font-ui · UI & body (Schibsted Grotesk + Noto Sans SC)

        Body and UI use self-hosted Schibsted Grotesk for Latin text and self-hosted Noto Sans SC Variable for Simplified Chinese. Platform fonts remain as fallbacks:

        --font-ui
        --font-ui: "Schibsted Grotesk Variable", "Helvetica Neue", Arial,
        +      "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC",
        +      "Microsoft YaHei",
        +      -apple-system, BlinkMacSystemFont, "Segoe UI",
        +      Roboto, Ubuntu, sans-serif,
        +      "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
        • Schibsted Grotesk first: self-hosted Latin UI and body text, with normal and italic variable faces.
        • Western fallbacks next: Helvetica Neue / Arial for environments where Schibsted Grotesk cannot load.
        • Noto Sans SC Variable next: bundled Simplified Chinese glyphs with a weight range of 100–900.
        • System UI fallbacks last: PingFang SC / Microsoft YaHei, platform UI fonts, and emoji fonts.

        --font-mono · Code & monospace

        Code, line numbers, diffs, and Bash commands use JetBrains Mono (a self-hosted variable font), falling back to the system monospace. Other tool labels and summaries use the UI font:

        --font-mono
        --font-mono: "JetBrains Mono Variable", "JetBrains Mono",
        +      ui-monospace, "SF Mono", Menlo, Consolas, monospace;

        Loading strategy

        FontSourceBundledUsage
        JetBrains Mono@fontsource-variable/jetbrains-mono✓ self-hostedmonospace / code (--font-mono)
        Schibsted Groteskprepare-fonts → app-ui/assets/fonts✓ generated + bundledUI / body / display (--font-ui, --font-display), wght 400-900, normal + italic
        Noto Sans SCprepare-fonts → app-ui/assets/fonts✓ generated + bundledSimplified Chinese UI / body, wght 100–900
        System UI / CJK fontsoperating systemlate fallback for UI / body
        Schibsted Grotesk, Noto Sans SC, and JetBrains Mono are self-hosted. They make no external network requests and work offline; platform fonts remain as fallbacks.

        Usage rules

        • Components always use var(--font-ui) / var(--font-mono); do not hard-code font names like 'Schibsted Grotesk' / 'JetBrains Mono'.
        • Body / UI use --font-ui (Schibsted Grotesk for Latin, Noto Sans SC for Simplified Chinese); code / monospace use --font-mono (JetBrains Mono).
        • Schibsted Grotesk is loaded from complete variable faces, including normal and italic styles; font-optical-sizing: auto is enabled globally.
        • Noto Sans SC is loaded from one complete weight-variable WOFF2 asset. Platform CJK fonts stay late in the fallback chain.

        Type scale & weight

        The user font-size preference is one of four named steps (small / medium / large / xlarge, Medium default) written to data-font-scale on <html>; the step name is persisted, never a px value. The step only moves --base-font; every size token derives additively (default + shift), and line heights are locked to integer px via round(size × ratio, 1px) — never a unitless ratio.

        Two token groups share the shift but keep their own ratios: --ui-* for chrome (tight, 1.40–1.50) and --md-* for Markdown content + the composer (loose, 1.56–1.63; body is anchored to the UI body size — the spec's +2px offset was dropped as a product decision — while keeping its own looser line-height ratios). T0/T1 cap at 24/22px on the top steps (built into the tokens via min() — do not remove). Use the .text-ui-* / .text-md-* utility classes; legacy aliases --ui-font-size (→ --ui-b2), --content-font-size (→ --md-b1) and the whole 6-level --text-* ramp (xs→c1, sm→b2−1px, base→b2, lg→t2, xl→t1, 2xl→t0) keep older components on the ramp. Panel titles sit at the base step (--ui-b2); dropdown menu items sit one rung below (--text-sm = b2 − 1px) — both still follow the user's font scale.

        Section Title
        --ui-t1 · title (cap 22)
        Card title
        --ui-t2 · subtitle
        UI emphasis
        --ui-b1 · body strong
        UI control / button / form
        --ui-b2 · body
        Helper text / table
        --ui-c1 · caption
        Badge / timestamp
        --ui-c2 · non-critical only
        Markdown H1
        --md-h1
        Chat body / message bubbles / composer
        --md-b1 · prose body
        Quote / table
        --md-b2 · secondary
        Code block / inline code
        --md-b3 · weak / code

        The fixed product type tokens still define scale-independent defaults: transcript prose enables text-autospace: normal for mixed CJK and Latin text. Drop stray font-weight: 650 / 750; converge on 400 / 500 (regular / emphasis), with a dedicated 600 weight for sidebar section labels.

        TokenValueUsage
        --font-ui"Schibsted Grotesk Variable", …, "Noto Sans SC Variable", …UI & body (Schibsted Grotesk + Noto Sans SC)
        --font-kbd"Schibsted Grotesk Variable", system-ui, sans-serifkeyboard shortcut keycaps
        --font-monoJetBrains Mono…code, Bash commands, line numbers, diffs
        data-font-scalesmall / medium / large / xlargeuser preference on <html>; sets --base-font (12–18px), Medium = 14px default
        --ui-t0…--ui-c2default + --ui-shift, t0/t1 capped via min()chrome type ramp (title / subtitle / body / caption); .text-ui-* classes
        --md-h1…--md-b3default + --md-shiftMarkdown ramp (headings / body / secondary / code); .text-md-* classes
        --ui-font-size / --content-font-sizevar(--ui-b2) / var(--md-b1)legacy aliases kept on the ramp
        --code-font-sizecalc(var(--content-font-size) - 2px)standalone code surfaces (diff view, file preview, tool cards) — one step below body, 12px @ Medium; prose-embedded code stays on the --md-* ramp
        --text-xs / sm / base / lg / xl / 2xlc1 / b2−1 / b2 / t2 / t1 / t0legacy ramp, aliased into the scale
        --leading-tight/normal/prose/relaxed1.25 / 1.5 / 1.6 / 1.7headings / UI / chat prose / long text
        --weight-regular/option-label/medium/ui-strong400 / 475 / 500 / 525body / settings labels / emphasis / compact UI emphasis
        --weight-section-label600sidebar section labels

        Icon size

        Icons use three size tokens uniformly. The global .p-ic default is 16px (--p-ic-md); components pick as needed, and random pixel sizes are forbidden.

        TokenValueUsage
        --p-ic-sm14pxsmall button, badge, menu item, inline link icon
        --p-ic-md16pxdefault (button, icon button, toolbar)
        --p-ic-lg20pxToast status icon, empty-state illustration

        Icon

        Icons always come from the centralized registry lib/icons.ts: in templates use the <Icon name size /> component (components/ui/Icon.vue); for v-html contexts (such as a tool glyph) use iconSvg(name, size). Do not hand-write <svg> — the scripts/check-style.mjs icon-from-registry rule flags stray SVGs. Every glyph shares the 24×24 source grid and currentColor (colour follows text); size uses the three tokens below, and only icons imported in lib/icons.ts are bundled by unplugin-icons at build time. Three collections feed the registry, in this order of preference: ~icons/kimi/* — Kimi Design System icons (24×24 outlined, 1.8px stroke), local SVGs under src/icons/kimi/ registered as a custom collection in the Vite config, used whenever a Kimi glyph exists for the intent; ~icons/tabler/* — Tabler Icons (MIT), for the few gaps it uniquely covers (today: the right-panel toggle); and ~icons/ri/*Remix Icon (Apache-2.0), for the remaining intents the Kimi set does not cover yet. A few glyphs are filed under their intent rather than the upstream asset name (see the lib/icons.ts header). When an icon is missing, prefer a glyph from the Kimi icon set: copy the SVG into src/icons/kimi/ (kebab-case name, monochrome currentColor) and register it — two static imports (component + ?raw string) plus one entry in ICONS; reach for Remix only when no Kimi glyph fits, and never draw paths in a component.

        Size scale

        `,49)),t("div",W,[t("div",P,[(n(),l("svg",U,[...a[1]||(a[1]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[2]||(a[2]=e("sm · 14",-1))]),t("div",F,[(n(),l("svg",j,[...a[3]||(a[3]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[4]||(a[4]=e("md · 16",-1))]),t("div",G,[(n(),l("svg",K,[...a[5]||(a[5]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[6]||(a[6]=e("lg · 20",-1))])]),a[8]||(a[8]=t("h4",{class:"mini"},"Icon library",-1)),a[9]||(a[9]=t("p",null,[e("Currently registered icons, grouped by purpose. The display order and grouping are defined by "),t("code",null,"ICON_GROUPS"),e(" in "),t("code",null,"lib/icons.ts"),e(" (a hand-maintained array covering the same icon names), and this catalog is rendered directly from that array so the registry and the document never drift.")],-1)),t("div",J,[(n(!0),l(g,null,k(d(I),([r,v])=>(n(),l(g,{key:r},[t("div",Y,x(r),1),(n(!0),l(g,null,k(v,i=>(n(),l("div",{key:i,class:"icon-cell"},[s(d(o),{name:i},null,8,["name"]),t("span",Q,x(i),1)]))),128))],64))),128))]),a[10]||(a[10]=c('

        Do not use emoji as functional icons. The Kimi brand mark (the robot mascot logo) is a brand asset and is not part of this icon system.

        A few special graphics are not in the registry; each has a dedicated component maintained in one place, and must not be copied by hand: <ContextRing :pct /> (the Composer context progress ring, data-driven), <AuthStateIcon kind /> (the success / expired / error colored illustrations in the login flow), <Spinner /> (loading state). Status dots (such as in the Provider list) always use CSS dots (border-radius:50%), not SVG. The scripts/check-style.mjs icon-from-registry rule exempts the above and the brand mark; all other hand-written <svg> is flagged.

        Spacing

        A 4px base grid. All spacing, gaps, and padding inside and outside components come from this scale — no arbitrary pixels.

        --space-1 · 4
        icon gap, badge padding
        --space-1-5 · 6
        workbar pill icon ↔ label
        --space-2 · 8
        control gap, small padding
        --space-3 · 12
        button padding, form-item gap
        --space-4 · 16
        card padding, grid gap
        --space-5 · 20
        dialog padding
        --space-6 · 24
        section gap
        --space-8 · 32
        large section gap

        Dense list (sidebar / file tree)

        High-density navigation lists like the sidebar share one rhythm, all on the 4px grid: in-row vertical padding --space-1 (4px), no margin between rows (the hover pill provides the separation); section gap (between logo / search / action buttons / group title / list) uniformly --space-2 (8px); between groups --space-2; the brand header is slightly looser at the top (--space-3). When building similar lists, reuse this scale — do not hand-write 1/6/7/10px.

        Radius

        Merge the existing 14 values into the nearest of 7 scale steps. Rule: the component type determines the radius, not the author's feel. The Composer shell is the sole product-specific exception: its 32px radius pairs with superellipse(1.5) so the flatter curve stays visually concentric with its controls.

        xs · 4
        sm · 6
        md · 8
        lg · 12
        xl · 16
        2xl · 20
        composer · 32 / 1.5
        full · 999
        TokenValueUsageMerged from
        --radius-xs4pxsmall badge, inline tag2/3/4px →
        --radius-sm6pxsmall button, icon button, menu item5/6px →
        --radius-md8pxbutton, input, badge, card7/8/9px →
        --radius-lg12pxmenu, toast, bubble, floating card10/12px →
        --radius-xl16pxcontainer baseline: dialogs, settings cards, sheets, work panel13/16px →
        --radius-2xl20pxworkspace attachment card bottom (0 0 2xl 2xl) tucked under the composer18/20px →
        --radius-composer32pxComposer shell, with --corner-shape-composerproduct-specific
        --radius-menu-rowvar(--radius-sm)Menu rows inset 6px inside the plain --radius-lg menu frame (concentric: 12px − 6px hug)product-specific
        --radius-menu-itemcalc(--radius-lg − --menu-pad − --p-hairline)Items of the §03 dropdown Menu — concentric with the frame: 12px − the 3.5px panel inset − the 0.5px hairline = 8pxproduct-specific
        --radius-select-optioncalc(--radius-md − --space-1 − --p-hairline)Options of the §03 Select listbox family (Select, SecondaryModelPicker) — concentric: 8px frame − 4px pad − hairline = 3.5pxproduct-specific
        --radius-dropdown-rowcalc(--radius-lg − --space-1 − --p-hairline)Rows of the composer dropdowns (model / permission) and the workspace picker — concentric: 12px frame − 4px pad − hairline = 7.5pxproduct-specific
        --radius-window14pxmacOS hidden-titlebar window corner (measured on macOS 26 Tahoe) — referenced only through calc(), never directlyplatform constant
        --radius-window-chipcalc(--radius-window − --space-2)Sidebar footer chip's bottom-left corner on macOS desktop — concentric with the window corner (14px − the footer's 8px inset = 6px, exactly --radius-sm)product-specific
        --radius-full999pxpill badge, avatar, send button999px / 50%

        Elevation & z-index

        Shadows express only "elevation", never decoration (no colored glow). z-index is unified into a scale, eradicating 9999-style one-upping.

        sm · dropdown menu / sticky
        md · Toast
        lg · overlay (reserved)
        xl · dialog
        Z-index TokenValueUsage
        --z-base0normal flow
        --z-raised1in-component local stacking (menu scroll thumbs, strip badges, floating pills) — never a global layer
        --z-sticky100sticky header / sidebar
        --z-dropdown200dropdown menu
        --z-overlay300overlay / bottom Sheet
        --z-modal400dialog — sibling overlays tie-break by DOM order, so the global confirm (ConfirmDialogHost) mounts on demand to always land last / on top
        --z-modal-dropdown500menus / popovers that open above a modal dialog (teleported to <body>, e.g. the settings SecondaryModelPicker cascade)
        --z-toast600toast
        --z-tooltip650tooltip bubble — transient and pointer-events none, so it sits above everything (dialogs, toasts) to stay visible anywhere
        --z-max9999reserved: only this tier for extreme fallback

        Motion

        TokenValueUsage
        --ease-outcubic-bezier(0.16, 1, 0.3, 1)enter, hover, expand
        --ease-in-outcubic-bezier(0.4, 0, 0.2, 1)panel width, layout changes
        --duration-fast120mspress, focus
        --duration-base160mshover, show/hide
        --duration-slow260msdialog, Sheet, layout
        --duration-hover-intent250mshover-intent reveal gate (TOC rail)
        --duration-spin700msspinner rotation period (mention-tip probe spinner)
        --duration-flash1200msone-shot attention flashes (search locate, provider-row added) — a highlight timeout, past the show/hide ramp on purpose
        --anim-rive-spin416.7msnew-chat / folder-plus icon: plus spin on hover
        --anim-leftbar533.3mssidebar toggle icon: arrow fly-in on hover
        --anim-leftbar-shrink200mssidebar toggle icon: divider shrink on hover

        The --anim-* lengths are track timings ported verbatim from the designer's Rive exports, so they sit outside the --duration-* ramp on purpose — retiming the ramp must not distort them. Their interpolation stays linear because the easing is already baked into the dense keyframe stops; a token easing would double-apply. Three hover tracks use them today: the sidebar toggle shrinks its divider to half height while an arrow flies in and settles (the expand variant mirrors the track from the left), and the new-chat / folder-plus pluses do one bouncy spin. Each track is keyed to an id inside its own glyph (#bar-divider, #bar-arrow / #bar-arrow-expand, #p1, #af-p1) so every instance of the icon animates, and all revert on mouse-out. They still fall under the global reduced-motion switch below.

        Reduced motion

        i
        Under @media (prefers-reduced-motion: reduce), all animation and transition durations drop to about 0.001ms (effectively off), and the chat working indicator's mascot renders its static fallback instead of the Rive loop. Components should not check this individually; it is handled uniformly in the global styles. The switch clears durations, not transition-delay: a hover-intent gate (the conversation TOC's 250ms reveal) decides whether hidden content appears, and clearing it would make pointer fly-bys strobe content for reduced-motion users.

        Layout & breakpoints

        Layout sizes and responsive breakpoints are tokenized too: sidebar width, content reading-column width, and two global breakpoints. Components should not hard-code pixels.

        TokenValueUsage
        --p-sidebar-w264pxleft session sidebar width
        --p-content-max760pxchat reading-column max width (regular chat prose)
        --p-content-wide920pxwide content (settings / panel)
        --p-table-max1040pxdesktop wide-table max width (see §04)
        --p-table-cell-max700pxmax width of a single table column; longer cell content wraps (see §04)
        --p-bubble-max78%right-aligned chat column cap — user bubble, cron notice, task-notification notice (see §04)
        --p-bp-sm640pxmobile / desktop boundary
        --p-bp-md980pxnarrow / wide screen boundary
        i
        At ≤640px: dialogs become bottom Sheets, the sidebar collapses into an expandable drawer, and Composer toolbar controls are allowed to wrap.
        ',24))]),t("section",X,[a[32]||(a[32]=c(`
        03

        Primitives

        Component primitives are the "smallest correct units" of the site UI. Each primitive exposes variants along only two dimensions — variant / size — with appearance driven by tokens, so it naturally supports light / dark mode and customizable theme colors.

        i
        For every interactive primitive, the keyboard behavior, focus, and ARIA contract are in §08 Accessibility. New primitives must ship with a keyboard model — mouse-only interaction is not enough.

        Component selection guide

        ScenarioUse
        Primary action (submit / confirm)Button variant=primary
        Secondary action / cancelButton secondary / ghost
        Destructive action (delete / abort)Button danger / danger-soft
        Status markerBadge
        Toolbar filter / model switchPill
        2–5 mutually exclusive optionsSegmentedControl
        Top tabsTabs
        Switch / multi-selectSwitch / Checkbox
        Scrollable regions with overlay controlsScrollArea
        Floating content card / list action menuCard / Menu
        Inline notice / global toastBanner / Toast
        Dialog / confirmation · bottom panel (mobile)Dialog / Sheet

        Button

        6 semantic variants × 3 sizes. The primary action primary takes its color from the current theme color (§05 can switch between the blue and black families). Radius uses --radius-md uniformly (small size --radius-sm), weight 600, with a visible focus ring. The text variant is the exception to the box: a chromeless inline action — underlined muted text, sized and weighted by its context — for quiet fallbacks such as a copy-link next to a muted label. Use it wherever a native link-styled button would tempt you; never hand-roll one.

        Variant matrix lightpreview
        medium · default
        Didn't open?
        small
        With icon / state
        Dark skin dark

        API

        Button.vue · usage
        <Button variant="primary" size="md" :loading="submitting">Save</Button>
        +    // variant: primary | secondary | ghost | danger | danger-soft | text
        +    // size:    sm | md | lg
        States

        IconButton

        Unified into three sizes — 26 / 32 / 44px — with the neutral --color-hover wash on hover and a visible focus ring. Replaces the ad-hoc icon + click areas scattered across components today.

        IconButton
        i
        The desktop IconButton comes in sm 26 / md 32; on touch devices the tap target should be ≥ 44px, so use lg 44px, satisfying the §01 accessibility principle (the mobile three-piece set uses lg). Icon-only buttons must also name themselves on hover: pass tooltip (usually the same text as labellabel alone only sets the aria-label); bare icon <button>/<a> triggers wrap the Tooltip component directly.

        Badge · Chip · Pill

        Collapsed into two kinds: Badge (status badge, with an optional status dot) and Pill (the clickable pill in the composer toolbar). Radius, font size, and padding are all unified.

        Badge · status badge
        Semantic variants
        pendingrunningcompletedneeds confirmationfailedKIMI
        With icon / small size
        planpassedread-only
        `,19)),t("div",Z,[a[14]||(a[14]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Pill · toolbar pill (composer)")],-1)),t("div",$,[a[12]||(a[12]=c('kimi-k2· thinking',1)),t("span",_,[s(d(o),{name:"shield-question",size:"sm"}),a[11]||(a[11]=e("yolo",-1))]),a[13]||(a[13]=t("span",{class:"p-pill"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"})]),e("12k / 200k")],-1))])]),a[33]||(a[33]=c('

        Kbd · keyboard shortcut

        Kbd renders a shortcut as keycaps — one block per key, never inline text like (⌘K). Caps are 18px tall (Badge sm rhythm): transparent ground with a 0.5px hairline edge, 11px --font-kbd (Inter + system-ui), text colour inherited from the row that carries it — the cap has no fill or colour of its own, so it follows its context (bright inside the accent-ringed recording box, quiet in a hint row). Typical placement: pushed to the row's trailing edge, opposite the label (e.g. the sidebar search row), and inside dialog navigation hints.

        Kbd · keycaps
        KCtrlKP

        Card / Surface

        All cards across the site share one structurehead / body / foot — and come in two tiers by visual weight:

        • Operation card —— composite "process" content such as the Swarm overview. (Individual tool calls are NOT cards anymore: they render as quiet borderless lines, see §04.) Flat shell: 0.5px hairline, --radius-md, no shadow. The head is compact mono with no fill, low weight by default, not competing with the conversation.
        • Attention card —— content that needs a user decision, such as Question / Approval. A floating neutral card: white raised surface, --radius-lg, a faint popover shadow (--shadow-menu), a plain dark title head, and a hairline footer whose actions read in number-key order (chips on the buttons) leading to one solid primary action. No semantic color band.
        • Action card —— the only interactive card pattern (ActionCard.vue in app-ui): one clickable row for pick-one choices (the OAuth login entries, the custom-provider entry). Leading visual slot, title with an optional trailing status Badge, second-line hint, fixed chevron; hover and the focus ring share the site language, and disabled dims + disarms it (the login entries use it while the daemon-support probe is in flight). Consumers never hand-roll a card-shaped <button>.
        Operation card · compact mono head (no fill)
        read_filesession.ts
        The head uses mono + a neutral background to emphasize its "code / process" nature; the body uses sans for readability. Flat, radius-md, same shape as the Swarm composite card.
        Attention card · floating neutral surface (no color band)
        A decision needs your confirmation
        A floating neutral card — no color band. The raised surface, large radius and soft shadow lift it above the transcript; the head is a plain dark title, and the hairline footer lines up quiet text buttons leading to one solid primary action.
        Activity run · a summary row expands into the folded lines
        Read 2 files
        Readsession.tssrc/auth34 lines
        Readmiddleware.tssrc/auth58 lines
        ',9)),t("div",aa,[a[19]||(a[19]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"ActionCard · clickable choice row (normal / disabled)")],-1)),t("div",ta,[s(d(T),{style:{"max-width":"460px"}},{leading:h(()=>[s(d(o),{name:"globe",size:"lg"})]),hint:h(()=>[...a[15]||(a[15]=[e("Sign in with your kimi.com account",-1)])]),default:h(()=>[a[16]||(a[16]=e(" Kimi Code ",-1))]),_:1}),s(d(T),{style:{"max-width":"460px"},disabled:""},{leading:h(()=>[s(d(o),{name:"bolt",size:"lg"})]),hint:h(()=>[...a[17]||(a[17]=[e("Bring your own API key for OpenAI-compatible and other services",-1)])]),default:h(()=>[a[18]||(a[18]=e(" Add a custom provider ",-1))]),_:1})])]),a[34]||(a[34]=c(`
        • One structure, two shells: every card is head / body / foot; operation cards are flat + 0.5px hairline + radius-md with no shadow, while the attention card is the single exception — raised surface, radius-lg and a soft shadow, because it floats above the transcript in place of the composer.
        • Differences are intentional: operation cards keep a compact mono head; attention cards get a plain dark title head and footer actions.
        • Grouping: consecutive activity (thinking + tool calls of any kind, cards included) folds into ONE activity-run row — a smart summary sentence that expands into the items in order; only text and successful media tools (inline media is the turn's output) stay out and break the run. Task notifications stay out too but NEVER break it — a mid-run notice defers and renders right after the run block (see §04).
        • Turn fold: once an assistant turn settles, everything before its final text block (thinking, activity runs, interim text, standalone cards) folds into ONE bare "Worked Ns" row — no glyph, a faint one-line label + rotating chevron sharing the activity-run head's padding and hover language; while the turn streams the row stays hidden and the body forced open, and on settle the row appears and folds itself back. The span is the turn's elapsed time (daemon duration once settled, server message stamps for history; approval/question waits included by design), reading the generic "Work details" without any stamp. The final text — and anything after it, so trailing media / cards stay on screen — never folds; a text-only turn renders no row at all (see §04).
        • Status dots: running (pulsing blue) / done (green) / failed (red), sharing one color vocabulary (see §04 tool calls).

        Input / Select / Textarea

        Unified 38px height (32px small), --radius-md radius, --color-surface-overlay background, and a unified blue focus ring (0 0 0 3px accent-soft). Select is a custom combobox and listbox, not a native <select>; opening it centres the selected option in the scrollable menu. The listbox teleports to <body> with position: fixed — anchored to the trigger (opening toward the roomier side: flipping upward near the viewport bottom and shrinking its max-height to fit when neither side has room; re-anchoring on scroll/resize; closing when focus tabs away) on the --z-modal-dropdown rung, so it floats above modal dialogs and no scrolling container can clip it; while it is open, scroll gestures outside the menu are swallowed so the surface behind it cannot scroll. Listbox options round at --radius-select-option, concentric with the menu frame (--radius-md--space-1 pad − the 0.5px hairline = 3.5px).

        Form primitives
        Only letters, numbers, and hyphens are allowed.
        States
        Please enter a valid workspace name
        Normal state · validation passed

        Code / Diff

        Diff controls: The non-selectable branch summary starts with a 14px branch icon, aligns to the panel header's 12px inset, uses 12px labels, and ends with a 0.5px hairline. List and tree choices use the 14px list and tree-view registry icons. Flat-list and tree-view paths use the UI font at 12px. Tree roots share the flat list's 14px content inset, then each depth advances by 12px and adds a grey indentation rule.

        Diff empty state: Centre the clean-workspace message in the available panel height and lead with a quiet 32px status icon.

        Diff detail body: the right-side diff detail reuses HighlightedCode unframed (the panel owns the edge and scroll) — shiki highlighting with the language inferred from the file path, an old/new line-number gutter, hunk headers as a muted band, at the shared code size --code-font-size (12px at Medium, one step below body text). The file preview's code body (text / JSON / HTML and Markdown source) renders through the same component with a per-row number gutter plus search-hit / jump-target row states.

        Inline code, code blocks, and diff contents use the monospace font (--p-font-mono); diff change counts and branch summaries use the UI font. Code blocks have a filename title bar and a copy button; the action edge uses a compact 6px inset. Diffs use + / - row colors to express additions and deletions — additions use a success light background, deletions use a danger light background, with no gradients.

        Code / Diff
        inline code
        The server uses jwt.verify(token) to verify the signature, returning 401 on failure.
        code block
        session.ts
        import { verify } from './jwt';
        +
        +    export function auth(token: string) {
        +      return verify(token, process.env.JWT_SECRET!);
        +    }
        diff
        session.ts · +3 -1
        import { verify } from './jwt';
        -const secret = 'dev-secret';
        +const secret = process.env.JWT_SECRET!;
        return verify(token, secret);

        Dialog

        One dialog primitive replaces 6 hand-written implementations: unified --radius-xl radius, --shadow-xl shadow, 20px head padding, right-aligned footer actions, and an IconButton close button.

        Dialog primitive
        New chat
        Create an independent Agent chat in the current workspace.
        i
        Size & height: Dialog offers four widths — sm 360 / md 440 / lg 640 / xl 760 (--p-content-max) — chosen by content weight; sm is for quiet single-purpose dialogs (login, confirm). Height comes in two kinds: auto (default, grows with content up to max-height) and fixed (constant height min(680px, 100vh - 64px), with overflow scrolled inside the body). At ≤640px every modal becomes a bottom-anchored full-width sheet (rounded top, slide-up, max height 86% of the shell's --app-height so it shrinks with the software keyboard). Content / multi-tab dialogs (settings, model picker, provider manager, folder browser) Content / multi-tab dialogs (settings, model picker, provider manager, folder browser) always use fixed so the frame size stays constant and doesn't jump when switching tabs or content length; short confirmation dialogs keep auto. Selectable controls inside Settings use 0.5px hairlines. Its navigation stays transparent on the grouped canvas — separated from the content region by the 0.5px hairline (horizontal in the stacked mobile layout) — and uses 12px labels at weight 525 with 16px registry icons; the selected tab paints the same neutral --color-hover wash as hover, with the label simply brightening to --color-text — the Kimi app settings nav's recipe (.ss-nav-item--activeFills-F1, no accent tint, no weight change); section captions use 16px UI text in --color-text. Every setting row has a plain-language description; option labels use --color-text at weight 475 with a 1px gap before that description. Chinese descriptions use “思考” and “计划模式” rather than the English terms; “skills” stays lowercase when it appears within a sentence. Every settings section puts its rows inside one rounded group with 0.5px dividers; the content region paints the flat --color-surface so each group (--color-surface-raised) reads one rung above it — never a sunken pit, which would sink the dialog's content below its chrome in dark. The font-size stepper is a compact 32px UI-font control with 12px values and custom minus and plus buttons. Its 52px desktop row centres the control with equal space above and below. Archived workspace headings reuse the sidebar’s folder-closed registry icon, and Restore actions lead with the undo icon. Archive counts use weight 500; timestamps and workspace paths use the UI font.

        Dialog backdrop: Use a restrained 28% neutral overlay so the workspace remains legible without competing with the modal.

        Settings regions: The settings title and close action belong to the right content region. The navigation is a separate full-height region that starts at the dialog's top edge, not content beneath a dialog-wide header.

        Archived sessions: Start with the localized page title. Do not add a repeated English kicker above it.

        Settings interaction: Notification labels and descriptions are not selectable; their switches remain fully interactive.

        Conversation chrome: Header labels are not selectable; the rename input remains selectable and editable. Branch names start with a 14px branch icon. The overflow trigger is a compact 24px control with a 14px icon. Below a 720px header container, hide the workspace prefix and give the conversation title the available width. On macOS desktop the header doubles as the window-drag region and interactive controls opt out with no-drag; while one of its menus or a dock work panel is open every window-drag strip (chat header, sidebar header, panel header) drops the drag region so an outside press anywhere reaches the page and dismisses the overlay (window dragging is simply paused).

        Session search: follows the §09 flush picker anatomy — a boxed Input under the head, and a result list that fills the body's available height and owns vertical scrolling.

        Model picker: follows the §09 flush picker anatomy; the provider filter remains horizontally scrollable without showing a persistent scrollbar. Only the model list scrolls; the shortcut bar remains pinned at the bottom.

        Toast

        Unified information architecture: status icon + title + description. The status color appears only on the icon, avoiding large colored areas that create visual noise. For an undoable action there is a second, lighter form — the Action toast (ActionToast.vue): a pill floating top-center just below the 48px header, carrying a one-line sentence whose actions are plain inline <button>s (styled accent by the component), plus close. Self-timed (default 8s, hover pauses); the parent re-keys to reset and wraps it in a <Transition>. First used by session archive (Undo / Settings); warnings keep the bottom-right Toast stack.

        Toast
        Connected to server
        The local server is responding normally; you can start a new chat.
        Context usage 82%
        Consider running /compact to free up space.
        Action toast
        or view archived chats in

        Spinner

        Loaders fall into two categories by scenario — do not mix them:

        • Spinner (plain · SVG ring) —— the default loader. Used for button loading, app startup (GlobalLoading), and general inline waits — "everything else".
        • WorkingIndicator (小蓝 mascot · brand signature) —— used only for the chat working state after a prompt is sent (the sending placeholder in ChatPane, the send → first-token loading in SideChatPanel). The label follows the phase: "Requesting…" until the assistant's reply starts, then "Working…".

        Spinner · plain loader (default)

        `,30)),t("div",ea,[a[23]||(a[23]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Spinner · common scenarios")],-1)),t("div",sa,[t("div",da,[a[22]||(a[22]=c('Loading…',2)),t("button",oa,[(n(),l("svg",ca,[...a[20]||(a[20]=[t("circle",{class:"track",cx:"12",cy:"12",r:"9"},null,-1),t("circle",{class:"arc",cx:"12",cy:"12",r:"9"},null,-1)])])),a[21]||(a[21]=e("Submitting",-1))])])])]),a[35]||(a[35]=t("h4",{class:"mini"},"WorkingIndicator · 小蓝 mascot (only the chat working state)",-1)),t("div",ia,[a[25]||(a[25]=t("div",{class:"stage-bar"},[t("span",{class:"st"},[e("WorkingIndicator · chat working state only "),t("span",{class:"tag spec"},"signature")])],-1)),t("div",na,[a[24]||(a[24]=t("span",{class:"stage-label"},"Usage · only while the chat has an unfinished prompt",-1)),t("div",la,[s(S,{label:"Requesting…"}),s(S,{label:"Working…"})])])]),a[36]||(a[36]=c('
        i
        The chat working state is rendered uniformly by WorkingIndicator — the 小蓝 mascot (KimiMascot, the kimi.com avatar Rive asset, with a static SVG fallback under reduced motion or when the runtime fails) plus a phase label. All other loading states use the plain Spinner.

        Link

        Inline text link: the default is the accent color with no underline; on hover it shows an underline and darkens. File links inside inline code use a 1.5px underline offset so the line stays clear of the chip background. The .muted variant uses the secondary text color. Used for in-text jumps, external links, "view all", and other lightweight actions.

        Link · inline link
        Read the full design token docs before building.View on GitHubView history

        Menu / Dropdown

        Desktop menus inset their items by --menu-pad (3.5px, so the hairline plus inset lands exactly on the 4px grid), and item corners stay concentric with the frame at --radius-menu-item (--radius-lg--menu-pad − the 0.5px hairline = 8px — the item arc shares the panel's corner center instead of cutting across it). Standard items pad from the shared --menu-item-padding-block × --menu-item-padding-inline tokens (5px × 9px) with a 7px icon gap. Their three-layer neutral shadow stays below 4% opacity.

        Dropdown menu panel: frosted glass — the translucent --color-menu-bg fill over a blurred, saturated page backdrop (--p-menu-backdrop) — plus hairline + light shadow (--shadow-menu, a three-layer neutral ramp). This is the one place glassmorphism is the design language rather than an exception (§06); every floating menu surface (Menu.vue, the Select listbox, composer dropdowns, slash/mention popups) uses the token pair, never ad-hoc blur values. Menu items support icons, the current (active) state, the danger state, and the disabled state, with separators grouping items. All menu actions use 13px labels at weight 475 with 16px leading icons; both share a 16px line box for vertical alignment. Menu timestamps use the UI font. On touch / mobile, use lg (≥44px row height) while keeping the same type size. A dropdown menu pops in from its trigger corner — fade plus a slight 0.97 scale over --duration-base (exit --duration-fast), the composer model dropdown's motion language; the transform origin and the nudge direction follow the anchoring, including the upward flip near the viewport edge.

        Row states: hover uses the mode-aware --color-hover wash (it lightens under dark, never darkens); a leading icon sits one rung below the label (--muted), and on hover both label and icon step up to --color-text-strong, the max foreground tier. Selection keeps the accent pair (--color-accent-soft / --color-accent-hover); danger keeps its own colour.

        Menu · dropdown menu
        Open file
        Selected item
        Disabled item
        Delete chat

        SegmentedControl

        Mutually exclusive short option groups, commonly used for 2–5 option switches such as "light / dark / follow system" or the four font-scale steps. Options may include a 14px registry icon or a colour swatch. A single raised indicator with a soft shadow (no border — the edge stays clean) slides and resizes between options using the standard motion tokens. Three sizes: md (default, settings pages), sm (compact rows), and xs (dense menus such as the composer model dropdown — 20px items, 12px labels).

        SegmentedControl
        LightDarkFollow system

        SecondaryModelPicker

        Linked model + thinking-effort picker (settings → Agent → Subagents, experimental; components/settings/SecondaryModelPicker.vue, shared by both ends). Use it whenever two choices are only valid as a pair — here an effort is meaningless without its model, and every model declares a different supported set. It is a cascading variant of the §03 Select: the trigger is the Select trigger verbatim (value renders model · effort, the unset state uses the placeholder tint), and the dropdown opens as a SINGLE-LEVEL model list (grouped by provider) on the floating menu surface (--color-menu-bg / --p-menu-backdrop / --shadow-lg). The menu teleports to <body> with position: fixed — it opens on top of the settings modal (on the --z-modal-dropdown rung), and only a body-level surface escapes the dialog's scrolling-body clip; it re-anchors to the trigger on any outside scroll and closes on window resize (the UserMenu teleport's full recipe). Hovering or clicking a model row flies its effort submenu out to the RIGHT of the row — same menu surface, anchored to the row's live position, flipping to the left only near the viewport edge per the §03 anchoring rules — with a 250ms hover-intent grace (the UserMenu flyout's recipe) so the diagonal path into the submenu doesn't collapse it. Every model row carries a trailing chevron-right affordance; clicking an effort confirms the pair and closes — one atomic write, never two staggered patches. Flyout options follow the composer's thinking-level model (segmentsFor): effort models get off + their declared levels (always-thinking ones get no off), boolean-thinking models get on/off, unsupported models get off alone; while no effort is set at all, a "Model default" entry leads (it writes the model alone — POST /config merges and cannot clear a stored effort, so the entry disappears once one is set). A configured effort the model no longer declares is appended as an extra flyout option so the current pair stays visible and re-selectable. Keyboard mirrors the Select contract (focus stays on the trigger, Esc preventDefaults so the hosting dialog does not close): ↑/↓ move within the active level (the flyout follows model moves), → opens the flyout, ← collapses it, Enter confirms, Home/End jump. ARIA: combobox trigger → dialog menu holding a model listbox plus the effort listbox flyout with option rows. The menu itself flips upward when the trigger sits near the viewport bottom.

        Tabs

        Tabs with a bottom hairline, used for grouping and switching sibling content. The current tab is marked with accent text + an accent underline.

        Tabs
        GeneralAgentAdvanced

        Switch

        A two-state switch for settings that take effect immediately. The 36×20 track has a 0.5px hairline and full radius; its 16px knob uses 1.5px internal offsets so the visible inset remains 2px and symmetric after accounting for the border. On hover, the knob eases to an 18px rounded rectangle towards the track centre. When on, the track turns accent and the knob slides right.

        Switch

        Checkbox

        A 17×17 checkbox. When checked it fills with the accent color and shows a white tick (inline SVG). Often paired with a text label.

        Checkbox

        Avatar

        A 32px default avatar with md radius; .sm is 24px. Can hold an initial or an icon; falls back to this placeholder when there is no image.

        Avatar
        KK

        EmptyState

        A centered placeholder for empty lists / panels: a 48px faint icon + title + hint, avoiding blank pages.

        EmptyState
        No chats yet
        Click "New chat" to start a conversation with Kimi

        Divider

        A 0.5px hairline divider (--p-line); .p-divider-v is the vertical divider, used between inline elements.

        Divider
        Content above

        Content below
        kimi-k2thinking

        Tooltip

        A CSS-only hover hint, wrapped in .p-tip. Inverted background (--p-text / --p-bg), single line, no wrapping — carries only short notes.

        Component behavior contract (the Tooltip primitive and IconButton's tooltip prop, both backed by TooltipBubble): while any menu surface is open, every tooltip OUTSIDE it hides immediately and no new one may appear — a menu owns the screen, so a trigger's hint must never hang above its own dropdown (native menu behavior). Hints anchored INSIDE an open menu stay live, and ordinary hover behavior resumes once the last menu closes. Menu.vue and the Select listbox register as menu surfaces automatically; a bespoke menu surface (composer dropdowns, the slash/mention autocomplete popups, pickers) wires its open ref + panel element through trackMenuSurface from @moonshot-ai/app-ui.

        Tooltip (hover the button)
        New chat

        Banner

        An inline notice bar placed at the top of a content area. Three states — .info / .warning / .danger — each with a matching 18px icon.

        Banner
        Connected to server
        Currently in yolo mode; tool calls will run automatically

        Sheet / BottomSheet

        A mobile bottom slide-up panel: xl top radius + drag handle, xl shadow. At ≤640px, dialogs become bottom-anchored Sheets.

        BottomSheet
        Choose a model
        kimi-k2 · thinking
        kimi-k2 · instant

        Skeleton

        A placeholder for loading content, using a breathing opacity animation (no gradients), following the no-gradient-text rule. Composed into titles / text lines / avatars.

        Skeleton

        Command Bar

        An inline combination of "primary action + command text + copy", sitting between a button and a code block — used for install / onboarding / one-click execution. The primary action reuses Button primary; the command area uses a mono light-grey background.

        Command Bar
        curl -fsSL https://code.kimi.com/install.sh | bash

        TopBar

        The application top bar. Solid by default; the .frost variant is translucent + background blur, used only for sticky navigation bars. Together with the floating menu surfaces (Menu / Dropdown), it is one of the two exceptions to the no-glassmorphism rule (see §06).

        The mobile shell's top bar (components/mobile/MobileTopBar.vue, ≤640px) is the canonical consumer of this .frost recipe — 78% surface + backdrop blur over the scrolling transcript, 0.5px hairline at the bottom. Its content is one full-height tap target that opens the switcher sheet: an optional leading status — the active session's ONE SessionDisplayStatus (approval/question Badge sm, running Spinner sm, 7px unread accent dot; same precedence as the sidebar rows) — ahead of a single vertically-centred line at max(16px, --ui-font-size-xl): quiet workspace name, strong --weight-semibold session title, faint chevron-down. The trailing IconButton lg (44px) opens settings.

        TopBar · solid / frosted glass
        Solid TopBar
        Frosted-glass TopBar · .frost

        Find Bar · transcript search

        The in-transcript find bar (Cmd/Ctrl+F), implemented by components/chat/TranscriptSearch.vue. A floating card pinned to the transcript's top-right (top: --panel-head-h + --space-3, right: --space-3 — equal inset on both axes), --z-sticky, raised surface + 0.5px hairline + --shadow-menu. One radius for both states: --radius-2xl is a full capsule at the collapsed height and a card once the footer expands — never animate between two radii.

        PartRule
        Input rowSearch icon (muted) + bare input — the list-style bare-input exception family (sidebar search row, inline rename), NOT the boxed Input primitive; the 38px bordered control would break the pill. Circular close IconButton sm (concentric with the capsule end); a 0.5px hairline separator before it. Height comes from the grid: 32px control (--space-8) + 2× --space-1 padding = 40px — at which --radius-2xl is exactly the half-height capsule.
        Footer (results)Expands via the 0fr→1fr grid fold (--duration-slow), hairline top separator, prev/next IconButton sm left, right-aligned muted count (N/M results · --ui-font-size-sm). Only exists once a query has settled — while typing or empty, the bar stays a bare pill.
        Statescollapsed (empty query) / searching (Spinner sm in the input row during the ~800ms debounce) / results / no-results (count reads "No results", nav disabled). Disabled is uniformly opacity:.5.
        FocusComposer-style: a neutral hairline overlay (::after + --color-composer-focus-line) fading in on :focus-within. No accent ring.
        Match inkCSS Custom Highlight API — the bar mutates no transcript DOM. All matches: --color-search-match (yellow); current: --color-search-match-current + a 2px --color-warning outline ring (a positioned overlay — highlight pseudos can't paint box outlines). Tokens live in app-ui/style.css with light/dark pairs.
        KeyboardCmd/Ctrl+F opens + focuses (repeat = re-focus + select-all; hardcoded, reserved in the desktop keymap), Enter / Shift+Enter steps matches (wrapping), Esc closes from ANY control inside (container-level, so it never reaches the conversation's Esc-abort).
        Matching semanticsRendered transcript DOM only (unloaded older pages are out of scope), capped at 1000 matches (count reads N/1000+). Matches span inline nodes within one block, never cross block breaks; inert and display:none content is excluded. Stepping scrolls the match's own rect into view, not its parent element.

        SectionLabel

        A small group title for sidebar lists, used to section the content below (such as Workspaces in the sidebar). Spec: 13px / 700 / uppercase / letter-spacing .08em, color --color-fg-faint; left-aligned to the row's starting padding (--sb-pad-x), keeping the same indent as the group rows below. For scripts without case (such as Chinese), text-transform:uppercase simply has no effect — no special handling needed.

        ',57)),t("div",ra,[a[31]||(a[31]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Sidebar · group title")],-1)),t("div",va,[a[30]||(a[30]=t("div",{class:"p-section-label",style:{padding:"12px 16px 4px"}},"Workspaces",-1)),t("div",fa,[(n(),l("svg",ha,[...a[26]||(a[26]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[27]||(a[27]=e(" kimi-code-web ",-1))]),t("div",pa,[(n(),l("svg",ua,[...a[28]||(a[28]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[29]||(a[29]=e(" playground ",-1))])])])]),t("section",ga,[a[142]||(a[142]=c('
        04

        Chat Interface Overhaul

        The message stream is the core of Kimi Web. Tool calls render as quiet activity lines — one borderless line per call, bespoke per tool kind, auto-grouped, expanding on demand — while Question / Approval elevate to a floating neutral surface because they need a decision, and the Swarm composite keeps a card; the Composer collapses into a single rounded container.

        Unified message stream

        User-message bubbles follow the kimiwork production recipe (MessageItem .user-bubble): a neutral --color-user-bubble-bg fill (BubbleGray — #f5f5f5 light / #292929 dark), uniform --radius-lg corners, no border, no shadow.

        Message timestamps use 12px UI text at weight 500, matching the compact metadata scale without switching to a monospace face.

        The user-message metadata row sits one 8px spacing step below the bubble, so its actions and timestamp read as supporting information rather than part of the bubble edge.

        Overlong user messages clamp at 10 measured lines, the tail dissolving through an alpha mask rather than a tint overlay (the translucent accent fill would double-composite); a floating pill toggle centred on the fade expands in place and collapses back, and the collapse pins the toggle itself so the reading position survives. Skill / plugin command args clamp through the same wrapper, beside the card head. Like the transcript's other disclosure controls (thinking row, turn fold, tool lines), the toggle is a bare native button carrying aria-expanded — chat-surface disclosure controls do not use the §03 Button primitive.

        The floating jump-to-latest control uses 12px UI text at weight 525, led by the full down-arrow icon rather than a disclosure caret.

        Thinking is an inline, borderless disclosure row in the message stream — never a side panel. The k15 bulb (the thinking registry icon) leads the row in every state; while streaming the "Thinking…" label breathes (opacity only, never a gradient shimmer) and whole elapsed seconds tick beside it, afterwards the label settles to "Thinking process" with the final span as · Ns (renderer-measured, live sessions only — history shows no seconds). Collapsed by default, it expands in place with the standard grid-rows animation and a 90° chevron rotation, and it folds itself back once the stream moves past it, even if the user expanded mid-stream. The header only animates its text colour on hover (standard duration and easing tokens), no card shell.

        Conversation · 760px reading column
        Please change the login endpoint to JWT and add the corresponding unit tests.
        🌔Analyzing the auth module…
        Read 2 files
        Readsession.tssrc/auth · :12-4534 lines
        12 export function verify(token: string) {
        13 return jwt.verify(token, getSecret());
        14 }
        Readmiddleware.tssrc/auth58 lines
        Editmiddleware.tssrc/auth+12−4
        Search"jwt.verify"src/auth4 results

        I looked at the structure of src/auth; it is currently based on a session cookie. The scope of the change is below — once you confirm, I'll start.

        A decision needs your confirmation
        How long should the JWT expiry be? Default 7 days, refresh token 30 days.
        Write permission required
        About to modify src/auth/middleware.ts, 42 lines changed. Allow?
        Replace session with JWT signing
        Refactor the auth middleware
        Add unit tests

        Wide markdown tables (desktop): regular chat prose stays within the 760px reading column (--p-content-max), and tables stay there too by default — an overflowing table scrolls horizontally inside its own wrapper, so the page and the chat area never scroll sideways. A clipped table shows a gradient fade at its truncated right edge, and hovering the table reveals a small widen button at its top-right corner; clicking it lets the table grow naturally with its content up to 1040px (--p-table-max), centred within the conversation pane, and clicking again restores the default width. At the default width a single column is capped at 36% of the pane; once widened the cap relaxes to 700px (--p-table-cell-max), so long cell content wraps inside the cell instead of stretching the table. The conversation outline (TOC) keeps its usual position just outside the reading column; when a widened table grows past it and scrolls under the rail, the TOC is hidden temporarily and returns as soon as the table leaves, without touching the user's TOC setting. On mobile a table never breaks out of the reading column.

        Tool calls: quiet activity lines, bespoke per tool

        High-frequency calls like read / bash / grep are "operational noise" — boxed, collapsible cards quickly drown out the conversation. Tool calls therefore render as one quiet borderless line in the message stream — never a card — and each tool kind composes that line for its own content, so the stream reads like an activity log rather than a pile of widgets. The three visual-weight tiers:

        Three visual-weight tiers
        ① Tool line · lightest (default) — bespoke content per tool, no card chrome
        Runpnpm run build && pnpm lint0.8s
        ② Activity run · medium (consecutive quiet activity — thinking + tool lines — folds to one smart-summary row)
        Read 3 files
        ③ Sub Agent identity card · one per delegation — task title + a meta line leading with the 前台/后台 mode then agent type · model · effort; the whole card opens the side panel (no in-stream expansion, never grouped)
        分析双引擎架构前台 · Explore
        ④ Decision card · heavy (only question / approval, needs user input)
        Write permission required
        About to modify src/auth/middleware.ts, 42 lines changed.
        • A tool call renders as one quiet borderless line (~24px, the thinking row's rhythm): leading glyph, tool-specific content, trailing meta + status. There is no card chrome and no hover wash — the chevron hugging the line's text (thinking-row style, never pushed to the far edge) is the only disclosure affordance, a real <button> carrying aria-expanded (keyboard path); the head itself is a plain click target (mouse path), so trailing slots may hold genuine buttons of their own (e.g. Agent's "open detail").
        • One type scale for the whole stream: thinking rows, fold summary rows and tool lines all set 13px UI text; in-line mono and trailing meta run one step down at 12px (a monospace x-height reads larger, so 12px sits level next to 13px). Hierarchy comes from colour, never from size jumps or bold — everything on the line is regular weight: the only dark object is the file-name button (--color-text — the one interactive place to go); the action label (Run / Read / Edit…), the mono command / pattern and secondary context all sit at --color-text-muted; auxiliary elements (glyphs, chevrons, trailing meta) stay --color-text-faint. The stream thus reads in three quiet tiers: prose in text, tool lines in muted, thinking / captions in faint. Line content is centre-aligned so mono-only rows (Bash) sit level with the icon and chevron. Truncating line content (the CSS-ellipsis spans) sets --leading-tight rather than the row's line-height: 1 — a 1em line box is shorter than the font's ascent + descent, so overflow: hidden would clip descenders (j / p / g / y); mono runs take the font's own normal leading instead, since JetBrains Mono's ≈1.32em metrics exceed --leading-tight. The 16px chevron still drives the ~24px row height.
        • Every tool kind composes its own line, leading with the tool's localized action label (Run / Read / Edit / Write / Search / Find / Fetch…): Bash pairs its label with the full command in mono (CSS-truncated) plus a duration chip; Read / Edit / Write follow the label with the file name as a real button (opens the file preview) followed by the directory, a :line-range or a +N −M stat with a mini segmented bar; Grep shows the pattern in mono plus a match count; Glob / Ls list paths; Todo carries the active task with a done/total progress bar; goal tools show a coloured status pill; WaitFor names the waited / finished task with the task's terminal status as a §03 Badge (a timed-out wait renders as a warning, never an error) and the waited span as a chip; ExitPlanMode expands into a read-only plan receipt with its persisted review outcome. Unrecognized tools fall back to glyph + localized label + argument summary.
        • The settled question is the one exception to the quiet line: once AskUserQuestion settles with a recognized answer, it becomes a small receipt card — the question card's echo (raised surface, hairline edge, lg radius, --shadow-xs, flush with the stream's left edge, ≤560px). The card echoes only the picks, checked with the live QuestionCard's CSS glyph language one step down (14px); passed-over options are not echoed. Dismissed (or zero-answer) collapses to a slim italic one-line card; while running, and for unrecognized output (background launch / error), it stays the plain quiet disclosure line with the raw output.
        • Clicking a line expands it in place; the detail hangs below at the line's own left edge (no inset), so it reads as part of the stream rather than as a separate card. Details are one of: the mono output panel (content-well surface, hairline edge, 12-line scroll cap), the inline diff, or clickable match / file lists (path:line opens the preview at that line). Code-bearing details — the Read content, the Edit diff, the Write content — are syntax-highlighted by file type (github-light / github-dark, following the colour scheme), with the Read output's real line numbers as the gutter; highlighting mounts lazily on first expand and degrades to plain text for unknown languages or oversized content.
        • Rows sit flush with the message stream's left edge (same alignment as prose and the thinking row): no inset, no hover wash, and the glyph rides the thinking row's 4px icon-to-text rhythm with no padded slot. Expanded rows inside a group stack directly on the shared rhythm — no dividers.
        • Consecutive activity — thinking segments and tool calls of ANY kind, quiet lines and richer cards alike — folds into ONE activity-run row: a smart summary sentence that aggregates the run per tool kind in first-appearance order (Read 2 files · Ran 5 commands (1 failed) · 26s), the failure clause hanging on its kind in danger red, the total span faint at the tail — one line, ellipsis-truncated, the full sentence in the title tooltip. Thinking items fold into the run but are not narrated in the sentence. The row shares the thinking row's language (borderless faint text row, text-colour hover only, one whole-row button with a rotating chevron) but rides a roomier 8px vertical padding — 30px against the quiet lines' 22px, so the turn-level summary keeps its presence between prose paragraphs; while the turn streams through the run the row stays expanded and the summary turns live (current action + cumulative per-kind stats + ticking whole seconds), and once every item settles it folds itself back — even if the user expanded it mid-run (the thinking block's vocabulary); a settled → running transition (the stream appending to the same run) reopens it. The glyph carries the state: the current step's own icon breathing while running, green ✓ / red ✕ once settled. A run needs ≥ 2 steps — a lone step renders standalone as the block it always was. Text never folds (it breaks the run), and neither do successful media tools (no card — inline media is the turn's output). Task notifications never join the run either — but unlike text they never break it: a notice landing mid-run queues and renders right after the run block (see the notification entry below); everything else folds, cards included: Todo / Goal progress narration, the sub-agent identity card, Question / Swarm cards and unrecognized kinds (skills, MCP tools) all join the run — the stay-expanded-while-live rule keeps a card visible exactly while it is active. The expanded run is the items flat in order (thinking rows + tool rows), each with its own in-row details intact — the lines keep their own 4px row rhythm but breathe 8px apart, with a small inset below the head.
        • Above the activity run sits the turn fold (TurnFold.vue): when an assistant turn settles, every block before the LAST text block — thinking segments, activity runs, interim text paragraphs, Todo / Goal / sub-agent cards — folds into a single bare row reading Worked 4m57s (whole seconds, no glyph, no summary sentence), expanding into the folded blocks in order, each with its own rendering intact. The span is the turn's ELAPSED time (turnWorkMs): it ticks from the stamped start while the turn is open — approval/question waits included by design, so no park bookkeeping exists — then reads the daemon's own durationMs once settled (the server message stamps for history turns); the wall clock only feeds the live tick, so throttled tabs, session switches and remounts cannot corrupt the settled value. Without any stamp the row falls back to the generic Work details. Streaming turns show no row and a forced-open body — the live transcript is untouched, the fold lands only when the stream moves past the turn (or the turn parks). The split never hides the turn's output: the final text block and any trailing blocks (inline media, standalone cards) stay visible, and a text-only turn folds nothing. Fold state is a plain component ref — nothing persists, switching sessions resets to folded. Inside the right-side sub-agent transcript (ChatPane's inspector mode), the turn fold and the run-end footer are suppressed entirely; activity runs stay pinned open (their heads demoted to plain captions — an inspection view exists to show the whole trajectory), while thinking blocks keep the main transcript's fold behavior — collapsed by default, toggleable, folding back when the stream moves past them — skipping only the reveal animation (the instantReveal prop). Disclosure bodies open instantly while their chevrons retain the standard rotation: animating the height of a full historical stream would relayout the entire panel on every animation frame.
        • A sub-agent delegation is an identity card — never a quiet line: the card carries the TASK as its title and the agent type as a quiet meta line, while the orchestrator's full prompt stays out of the stream on purpose. The whole card is one action (the quiet shell vocabulary: raised surface, hairline edge, large radius, no shadow): click to open the subagent's live progress in the side panel — there is no in-stream expansion.
        • Status keeps the shared vocabulary: running (pulsing accent dot) / done (green ✓) / failed (red ✗), at the line's right edge. Only two types keep a full card: Question and Approval — they genuinely need the user's attention. The Swarm composite keeps one quiet card (raised surface, 0.5px hairline, large radius) for its phase overview + member accordion.
        • A task notification renders in the cron notice's language, not as a status card (NotificationCard.vue, sharing CronNotice.vue's visual grammar): the hidden <notification> injections (background-task / sub-agent settlement) render as a right-aligned column capped at --p-bubble-max — the user bubble / cron notice side of the stream. A small faint provenance line sits ABOVE the content (status icon + title + source id, e.g. "后台任务完成 · bash-lo9yv9ch", mirroring the cron head's "title · schedule"); only the icon carries the status colour (completed → success, failed / timed_out / lost → danger, killed → warning, else neutral; a sub-agent info notice takes the robot glyph). Under it, the notification's own text sits in a neutral grey rounded block (the user-bubble fill, uniform large radius, no border, no shadow): title and body in full (wrapping, never truncated), an output-file row (mono ellipsized path + formatted size + copy-path button), the output-preview block (a faint caption carrying the payload's truncated flag + sizes over the line-clamped monospace tail of the task output), and the raw-payload <details> disclosure — type / source / severity fields plus the verbatim XML in a height-capped mono scroller — fused INTO the block as its last section; only the event time sits underneath. ≥2 CONSECUTIVE notifications merge into ONE render block, but every notification renders as its own notice, stacked in order — never a collapsed group card. A notification never breaks the activity run: one landing mid-run (a background task settling while the agent keeps working) is held back and rendered right AFTER the run block, so the turn's tools stay in one group; with no run open it renders in place. Notifications are never turn boundaries, and they never fold — a notification is an event worth noticing, not process noise, so it punches out of the turn fold and renders right after the fold row, in order.
        • A turn that dies on a model-request failure leaves a persistent terminal card at the transcript tail (ChatPane's .turn-failed): the notification card's danger shell (danger-soft surface, danger hairline, 24px status chip with the warning glyph) carrying a title keyed by the wire error kind (model failure vs step-limit stop), the provider message as a muted sub, a mono diagnostics meta (code · HTTP status · request id), and exactly ONE secondary sm action — Continue, which submits a short continue prompt through the normal path. It renders only while the session sits idle on lastTurnReason === 'failed' (a turn with zero assistant output included, so it pins to the tail rather than any assistant row), it is not dismissible, and it vanishes the moment a new turn starts. While the turn is still fighting, the working indicator instead narrates the retry backoff ("retrying n/max" from the live agent.status.updated phase) — a retrying turn never shows the card. The transient error toast now fires only for background sessions; the viewed session's failure is fully covered by the card.
        • Turn failed card · persistent terminal marker + one resume action
          模型请求失败,本轮对话已中断429 The engine is currently overloaded, please try again laterprovider.rate_limit · HTTP 429 · req_01KZ8Y…
        • A goal-continuation turn carries a provenance row: the hidden goal_continuation trigger (goal mode's self-driven next turn — a turn boundary, unlike task notifications) never renders its machine prompt; instead the assistant turn it opens shows one faint 12px line flush with the stream's left edge — the target glyph shared with the Goal tool (this turn belongs to the goal) + a localized label — ABOVE the turn's content and OUTSIDE the turn fold, so the row survives as the turn's provenance after settling. The marker lands with the trigger (before the first assistant block), and while the newest exchange is a goal-continuation turn the undo affordances (edit-and-resend, Esc undo) are suppressed — rewinding would drop the hidden trigger while refilling the older user text.
        • A settled turn's file changes are one summary card (TurnFilesSummary.vue): between the turn's final text and its footer, a §03 Card (hairline border, no shadow — NOT the quiet tool line, the artifacts are worth a discrete object) lists every file the turn's Edit / Write calls touched. The head reads "N files changed" with the aggregate +A −D and the mini diffbar; the aggregate hides whenever any row's stats are incomplete (a Write or an underivable edit makes the total a lower bound, never presented as exact). Each row is one clickable workspace-relative path (short and self-locating; a file outside the cwd stays absolute) with its per-file +A −D at the right edge. The row's action keys on the tool kind, and the stats tell it apart: a Write has no per-file count (its diff is underivable) and opens the whole file in the preview; an Edit / MultiEdit carries its +A −D and opens that file's turn diff in the right-side detail layer (TurnDiffPanel.vue — the turn's own X→Y change, not the git diff), whose header keeps an open-file action. The first three files show inline; the rest collapse behind a "N more files" ghost-button row in the card's foot. Where nothing handles the row action (the BTW side chat), the card renders its file rows as plain text instead of links.
        ',15)),t("div",ma,[a[37]||(a[37]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Turn files summary · a real TurnFilesSummary (fixed sample)")],-1)),t("div",ba,[t("div",wa,[s(E,{changes:z,cwd:Vt,onOpenDiff:m,onOpenFile:m})])])]),a[143]||(a[143]=c('
        Tool Call · quiet lines (expand on demand)
        Read 2 files
        Readsession.tssrc/auth · :12-4534 lines
        12 export function verify(…
        Readmiddleware.tssrc/auth58 lines
        Editmiddleware.ts+12−4

        Decision cards · Question / Approval

        The two attention cards replace the composer in the dock and share one contract: a floating neutral shell (--color-surface-raised + hairline + --radius-lg + --shadow-menu), a plain dark 16px title head, and a hairline footer whose actions read in number-key order with exactly one accent primary. There is no semantic colour band — the floating card itself is the "needs a decision" signal.

        Plan review · pinned option rows, second-line descriptions
        按这份 plan 开始实现?
        The plan markdown scrolls in a capped area; the approaches are pinned below it — label on the first line, full description always on the second. The number chip doubles as the keyboard hint.
        1方案 A:静态徽章零依赖、渲染稳定,升级时需手动同步版本号。
        2方案 B:动态徽章版本自动同步免维护,但要求仓库公开可访问。
        • Footer contract: actions are left-aligned in number-key order (1·2·3·4), each carrying a number chip — sized by --p-chip-num over --color-inline-code-bg, the same chip vocabulary as option rows and the multi-step chip; exactly one primary action, the rest are ghost. Feedback mode swaps the whole footer for submit / cancel.
        • Feedback input: the reject-with-feedback box is the shared §03 Textarea primitive (no bespoke input), three rows at rest, auto-growing with its content UPWARD — the card is bottom-anchored in the dock, so the bottom edge and the submit / cancel footer never move — capped at 40% of the VISUAL viewport, then scrolling internally. Height budgets follow --app-height (the visual viewport, which shrinks with the iOS keyboard where dvh does not): the card caps at calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance)) and the dock takes over the same budget. While the feedback box grows, every body kind yields and scrolls internally by default instead of pushing the card past its cap — the plan scroll area, code previews, shell output, todo lists, invocation chips and generic text — with only the one-line plan path pinned at full height. A plan review's option rows belong to the plan region and never shrink, so once fixed chrome (options, grown feedback box) exceeds what the capped card leaves — e.g. the iOS keyboard shrinking the visual viewport — the WHOLE plan region (body and options together) becomes one scroller, keeping an approve option reachable by scrolling instead of clipped out of reach. Below even that budget — the cap under the fixed chrome alone (header plus mobile's stacked ≥46px submit / cancel buttons), as when an iOS landscape keyboard leaves a ~200px visual viewport — the body has already shrunk to zero and the CARD itself becomes the scroller of last resort (overflow-y: auto, with its own scroll seam), so the footer buttons are never clipped away.
        • Body by kind: Write approvals preview the incoming content with HighlightedCode (syntax-highlighted, 24-row cap with scroll); Edit approvals render the before/after hunk as a highlighted line diff. Plan / diff / file kinds get a head expand toggle that lifts the cap so the block fills the card; the card itself never exceeds the pane (only the scroll area shrinks) — with the dock work pills visible, the dock takes over the same height budget as a flex column, so an expanded card yields the pills' height instead of pushing them past the pane's top edge. Once the plan scrolls, a soft shadow fades in at the scroll area's top edge — the sidebar's scroll-linked seam language, so clipped content reads as passing under the card chrome.
        • Danger hint: destructive shell commands (rm -rf, sudo, force-push…) show a danger-soft filled hint row under the command — detection is a display-layer heuristic on the client.
        • Minimized: the card collapses to a thin bar with a mono peek of the subject; the whole bar is the expand click target.
        • Question card: the title is the question itself, wrapping in full (only the minimized bar truncates to a single-line ellipsis), with a step chip for multi-question flows and a × dismiss button. Like the approval card, the expanded card is capped just below the chat header (the shared --dock-card-top-clearance budget) — the body is the internal scroll region, and when the fixed chrome (a very long title plus the footer) exhausts the budget on its own the body keeps an operable floor (--question-card-body-min-h) while the CARD itself becomes the scroller of last resort (overflow-y: auto), so the options and footer actions are never clipped out of reach; with dock work pills visible the dock takes over the same budget as a flex column so the card yields the pills' height — and with no room left above a full-height card, an open work panel closes and stays closed until the question resolves; ↑/↓ keeps the highlighted/selected row inside the body's scrollport, and paging between questions resets the scroll position. Options use CSS radio/checkbox glyphs (accent when selected); the number chip and glyph top-align with the option text, optically centred on the label's first line. The footer follows the same left-aligned action contract (primary first, ghosts after), with the keyboard hint pinned to the right edge; keyboard: ↑↓ moves (Space toggles in multi), digits pick, Enter advances/submits, Esc dismisses.

        Composer

        Unified into a single raised container: --radius-composer (32px) with --corner-shape-composer: superellipse(1.5) and a stable 0.5px edge. Focus crossfades a low-chroma line-and-accent edge over --duration-slow with --ease-in-out, while the neutral shadow stays unchanged — there is no added halo and no layout shift. The composer input (a ProseMirror contenteditable on desktop, a textarea on the web during the migration) uses text-autospace: normal for mixed CJK and Latin input. Toolbar controls use a quiet 32px full-round geometry with 8px edge inset; the send button remains a standard 32px circle, with its glyph at 28px (--composer-send-icon-size, the production kimi.com size; it sits outside the --p-ic-* scale on purpose).

        Fill and edge tokens: the card's fill and rest border are their own tokens — --color-composer-bg and --color-composer-line — running the kimiwork / kimi.com production input recipe (.chat-input__shell): fill = groupedBackground.secondary (#ffffff light / #1f1f1f dark), rest border = separator.s1 (13% black / 12% white), focus line = fills.f4 (25% in both schemes), and --shadow-input = effect.shadow.inputDefault (0 5px 16px -4px rgba(0,0,0,0.07), kept identical in dark — the hairline carries the edge there). Only colours sit in the tokens; the 32px superellipse shape and the focus-only edge overlay are unchanged.

        Send button tokens: the send circle runs on --color-send-bg / --color-send-bg-hover / --color-send-icon (+ *-disabled, --opacity-send-disabled, --shadow-send[-hover]), following the production recipe (.chat-input__send): a neutral labels.primary fill (90% black light / 84% white dark, hover #252525 / 84.8%) with the production lift shadow (0 7px 16px -13px 38% + 0 1px 2px 7%, one step larger on hover), a groupedBackground.secondary glyph, and a disabled state of the same vocabulary — fills.f2 fill with a labels.quaternary glyph at full opacity. The button is disabled exactly when submit would no-op — an empty draft with no ready attachment (image-only sends stay enabled), an upload in flight, or the starting spinner — so disabled is a first-class persistent state, never a fade.

        Layering, anchors, and motion: the dock normally stays at --z-sticky so the Latest Messages pill can remain visible above its veil. While any Composer popup or work panel is open, the dock temporarily joins --z-dropdown, ensuring permission, work-mode, and model menus — and the work panel — always paint above that pill. The permission menu's left edge and the model menu's right edge each follow their own trigger pill. All three menus use --shadow-menu and the same trigger-corner pop motion as Session Row menus: 0.97 scale with a 2px shift toward the trigger, --duration-base on entry, and --duration-fast on exit.

        Attachment strip: attachments hang inside the composer card above the input as two grouped rows — images/videos as shared MediaThumb rounded thumbnails, files as the shared AttachmentChip pill — the same pair the sent bubble renders, so a draft looks exactly like the sent message. File-store videos render a static play tile instead of fetching a first frame. The strip caps at two thumbnail rows and scrolls beyond that instead of pushing the input down; while overflowing, a quiet count badge pins to the bottom-left and new attachments auto-scroll into view (to the end of whichever group grew). With two or more attachments, a one-click clear-all pins to the strip's top-right corner as a quiet 22px badge (trash glyph, danger on hover). The composer's pending preview and the bubble's media clicks open the same MediaLightbox preview, which owns Escape via the shared dialog stack: images go through PhotoSwipe (@moonshot-ai/app-client's lib/mediaPreview) and zoom out of the clicked thumbnail (scrim = --color-scrim-strong, caption = --color-text-on-scrim; the slide area is inset — 24px sides matching the video modal, 56px top/bottom clearing the close button and caption — so a viewport-filling image never kisses the edges), videos keep the custom modal. Both share the --color-scrim-strong backdrop and the same close button — the raised 36px circle (.media-lightbox-close) fixed at the viewport's top-right, rendered by MediaLightbox for both (PhotoSwipe's own top bar is disabled; zoom stays on wheel / pinch / image click). ReadMedia tool cards open it too (an App-level instance fed by the openMedia chain): the image zooms out of the card's thumbnail, and videos show as a static play tile that opens the modal player — no more right-side-panel detour or inline <video>.

        Mention pills: @-mentions render as inline pills in the editor — one element of the cross-surface rich-text vocabulary specified in §05 Rich Text Messages (visual recipe, wire forms, and behavior contract live there).

        ',12)),t("div",ya,[a[44]||(a[44]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Composer")],-1)),t("div",ka,[t("div",xa,[a[42]||(a[42]=t("div",{class:"p-composer-ta ph"},"Message Kimi, / to run a command, @ to reference a file…",-1)),t("div",Ta,[t("div",Sa,[a[39]||(a[39]=t("button",{class:"p-icon-btn"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"})])],-1)),t("span",Ca,[s(d(o),{name:"shield-question",size:"sm"}),a[38]||(a[38]=e("yolo",-1))]),a[40]||(a[40]=t("span",{class:"p-pill"},[t("svg",{class:"p-ic",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{fill:"currentColor",d:"M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"})]),e("plan")],-1))]),a[41]||(a[41]=c('
        kimi-k2· thinking
        ',1))])]),a[43]||(a[43]=c('
        kimi-code-web
        ',1))])]),a[144]||(a[144]=c('
        i
        Site-wide consistency: the composer uses one 32px superellipse shell and one 32px desktop control height. The add (+), permission, compact, and model controls are all full-round and transparent at rest; hover reveals a neutral wash, open/active may use accent-soft, and Send remains the sole persistent filled control — an inverted --color-text fill with a --color-bg glyph (never the accent), disabled while the input is empty or an upload is in flight. The transparent dock floats over the transcript, while the scrolling content receives bottom padding equal to the live dock height so its final item can still clear the composer. Composer chrome is not selectable; only the message input permits text selection. Each permission mode has its own registry icon — manual hand, yolo shield-question, auto full-access — paired with the label in the pill (the left cluster is rigid — its labels never ellipsize; once the row's only valve, the model name, is measured crushed below the readability floor, the stage machine flips the permission/swarm pills straight from full text to the accessible icon circle — computed from the live layout, never a fixed width — and flips them back with hysteresis) and leading its dropdown row in the mode's colour, with the current row's check trailing the row's end. The right toolbar holds the row's only valve: the model name ellipsizes as the toolbar tightens (the thinking suffix is never ellipsized — short effort words show in full or not at all — and the chevron never shrinks); each time it is measured crushed below the readability floor the stage advances one step — permission/swarm pills flip to icon circles, then, if it still doesn't fit, the model pill sheds its text and chevron for the bare model icon (the tooltip carries the model + effort identity and the dropdown stays one tap away) — every transition computed from the live layout with em-based thresholds that track the font scale, unfolding with hysteresis as the pressure eases. The dock's work pills and panels — pill vocabulary, panel shell and motion, the two-tone head, per-kind bodies, filtering, and the open/cancel model — are specified in Dock · work pills & panels below.

        Workspace attachment card: on the empty session, the workspace picker is a separate attachment card tucked under the composer — and the composer card itself stays complete (its own 0.5px border, --radius-composer corners with --corner-shape-composer, and shadow are never altered). The attachment lives inside the composer's padding box as the card's sibling, so its width always matches; its top --space-4 slides behind the card (the card is raised to --z-sticky), its square top edge stays hidden, and only the rounded bottom (0 0 --radius-xl --radius-xl) shows. Background --color-hover at 60% via color-mix (≈0.03 black in light, self-adapting in dark), no border, no shadow. Inside sits one quiet capsule trigger: transparent, --radius-full, 16px leading icon and 12px label at weight 475 in --color-text-muted; hover deepens to --color-selected and the label turns --color-text. The dropdown follows the §03 menu spec and is viewport-aware (flips above when more room, clamps max-height to the scrollport); at --z-dropdown it outranks both the card and the fixed click-outside backdrop (--z-sticky), which renders outside the composer because the card's container-type captures position: fixed descendants.

        Autocomplete menus

        The slash, mention, and add popups share one geometry, all on dedicated tokens: the --color-menu-bg-frost surface (the frostier recipe), frame padding --menu-row-hug, rows at --menu-row-padding-block × --menu-row-padding-inline with --radius-menu-row caps (plain corners — the frame is --radius-lg with NO corner-shape, and the row radius stays concentric: 12px frame − 6px hug = 6px), an icon-to-label gap of --menu-row-gap-icon, and a --menu-rows-seam between stacked rows. Touch rows pad to --menu-row-touch-padding-block with a hard floor of --touch-target-min. Scroll height caps at --p-slash-menu-h / --p-mention-menu-h / --p-add-menu-h; the scroll-edge fade is --menu-scroll-fade, and the overlay thumb rides --menu-scrollbar-width / --menu-scrollbar-edge / --menu-scrollbar-track-inset / --menu-scrollbar-thumb-min in --color-menu-scrollbar (hover --color-menu-scrollbar-hover) — 3px visually, with a wider invisible drag strip.

        Add menu

        The composer's + button opens the add menu — the autocomplete family's action-list member: one column of icon + label (+ muted description) rows (Files, Goal, Plan, Swarm) on the same frost surface and row geometry as the slash/mention popups, capped at --p-add-menu-h. Semantically it is an action menu, not an autocomplete listbox: rows are menuitem commands, DOM focus moves into the menu (arrows navigate, Enter activates, Escape closes), and the + button carries aria-haspopup="menu" — the textarea's combobox ARIA never points at it.

        Design decision: deliberately NOT the §03 Menu/MenuItem primitives. Those are the trigger-dropdown family (sidebar, user menu, session rows) — --color-menu-bg, --radius-lg, a min-width box. The add menu instead shares the composer menus' material (the frostier surface, the composer corner curve, rows hugging the frame at the composer's text column, muted description sub-lines). Bending MenuItem into that material would require exactly the per-screen appearance overrides the primitive contract forbids, so the add menu keeps bespoke rows built directly on the shared --menu-row-* tokens. This paragraph is the canonical record of that choice — reviews should not re-litigate it.

        ',7)),t("div",za,[a[52]||(a[52]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Add menu — family surface, icon + label + desc rows, keyboard focus wash")],-1)),t("div",qa,[t("div",Aa,[t("span",Ba,[s(d(o),{name:"attachment",size:"sm"}),a[45]||(a[45]=t("span",{class:"n"},"Files",-1))]),t("span",Ma,[s(d(o),{name:"target",size:"sm"}),a[46]||(a[46]=t("span",{class:"n"},"Goal",-1)),a[47]||(a[47]=t("span",{class:"d"},"Set a goal to keep pursuing",-1))]),t("span",Ia,[s(d(o),{name:"file-edit",size:"sm"}),a[48]||(a[48]=t("span",{class:"n"},"Plan",-1)),a[49]||(a[49]=t("span",{class:"d"},"Turn plan mode on",-1))]),t("span",Ea,[s(d(o),{name:"sparkles",size:"sm"}),a[50]||(a[50]=t("span",{class:"n"},"Swarm",-1)),a[51]||(a[51]=t("span",{class:"d"},"Turn swarm mode on",-1))])])])]),a[145]||(a[145]=c('

        Work modes

        Plan and Goal are the primary work modes — mutually exclusive, at most one armed at a time. Arming happens only through the slash commands (/plan, /goal) or the add menu; an armed mode renders as the input row's leading pill — a neutral --color-surface chip with the mode's 14px icon, its label, and a × that disarms. The × is an IconButton sized --wm-x-size (below the sm default, so its hover wash never outgrows the pill's rounded end) with a --wm-x-ring hit reserve that stays inside the textarea's indent; on touch it meets --touch-target-min. The input's first-line text indent reserves exactly the pill's width (the desktop ProseMirror editor applies it to the first paragraph), so the caret and placeholder slide right rather than colliding; arming Goal also swaps the placeholder to its objective prompt. Sending with Goal armed creates the goal and the pill hands off to the dock's goal pill; a live goal does NOT lock the primary modes — /goal then just focuses the goal's panel, and /plan still arms (the only hard rule: one message cannot both create a goal and enter plan — the goal write carries the plan disarm atomically — and a failed mode write is treated as a send failure: the optimistic message rolls back, the error toasts). Swarm is deliberately NOT a mode: an orthogonal toolbar chip with its own enable confirmation, disarmed from the chip's ×.

        Dock · work pills & panels

        Work pills (WorkPill.vue): the dock's workbar above the composer carries one pill vocabulary — font-driven by flex computation: the 1.5em leading icon and the label's own line box (--text-base at --leading-normal) both come to 21px at the 14px UI text, and 8px block padding wraps them to 37px, nothing pinning pixels, so the pills rescale with the font; borderless, with --radius-lg rounded-square corners, filled at the fills ladder's --color-selected rung over the shared --p-menu-backdrop blur — the panel's frosted recipe scaled down to a chip, so transcript text never reads through the light fill (the neutral hover wash layers on top — one layer, never two), the icon at full text colour, --space-2 / --space-3 block / inline padding — the trailing side adds a --space-05 optical compensation against the leading glyph — and a --space-1-5 content gap. Every pill stays expanded — the Code client does not collapse status chips — carrying icon + label and a trailing meta that answers one question — what is live on this surface right now — for background bash tasks, background sub-agents, todos, and the goal alike; the row insets to the composer's text column — dock inline inset + the card's 0.5px border + the input wrap's 16px inline padding — not the card edge. The active pill keeps the wash on permanently — one fills-ladder step deeper, neutral. The meta is always muted ink and surface-specific: the goal carries its status word, colour-coded by state (active --color-success, paused --color-warning, blocked --color-danger); the bash and sub-agent pills carry a pulsing dot and the running count, only while something runs (a quiet absence otherwise); the todos carry the done/total fraction. The plan pill joins the row only once plan mode is live server-side or a persisted plan exists — a merely armed directive stays in the composer's inline work-mode pill (its × cancels) and never reaches this bar, so every pill here reads as live server truth rather than local intent. Narrow panes wrap the row instead of clipping (the dock height observes); below the --p-bp-sm breakpoint the pills collapse to their icons — label and meta hide (the threshold is read from the token, never a hardcoded width).

        Panel shell & motion: a pill toggles the shared work panel — the menu family material: 70% page background via color-mix over the shared --p-menu-backdrop blur (the frostier recipe, see §06 Glassmorphism exemption), a 0.5px --color-line edge, --radius-2xl, and the menu panel's --shadow-menu. The panel pops from the clicked pill along the trigger-corner motion tokens (--motion-panel-scale / --motion-panel-shift), and switching pills replays the pop from the newly clicked pill (the shell is keyed by panel kind); while it is open the dock raises to --z-dropdown so it clears the transcript's new-message pill, and every window-drag strip pauses so an outside press reaches the page and dismisses. The panel owns Escape while open (a document-capture handler guarded by the shared IME latch, so a candidate-cancelling Escape is never swallowed), and a scrolled body dissolves toward the head through the --menu-scroll-fade alpha mask instead of hard-clipping. Height is content-sized up to min(360px, 50vh); the filtered panels pin instead — see Filtering & sizing. The panel is chrome: nothing inside it is text-selectable, the head's filter chips included.

        Panel head (WorkPanelHead.vue): every work panel head is one tab row — a leading icon at the pill's 1.5em glyph size, the panel title at full text colour, and a muted trailing meta (--color-text-muted) carrying that panel's one live number, joined by the row's --space-2 gap with no separator glyph: the goal's wall-clock time, the bash / sub-agent running count, the todos' done/total. Actions right-align in the head: the goal's pause / resume / cancel / close as quiet neutral IconButtons (cancel deliberately shares that neutral vocabulary), the plan's open-in-side-panel, dismiss-directive (shown only while the directive is live), and close, and the bash / sub-agent filter chips as a SegmentedControl. The plan head's meta carries the latest plan's review outcome. On touch these meet the 44px minimum (--touch-target-min) via the hover: none capability query — a width-only gate would miss tablets — and below 480px the head wraps so the actions take a full row.

        Panel bodies: todos read as a quiet list — a green circle-check for done, a hollow ring for pending, an xs Spinner for in-progress. The goal's detail (full objective, completion criterion, rendered with the chat Markdown renderer) fills the body — no footer strip. Bash tasks are long rows (TasksPane.vue): a StatusDot while running, circle-check when done, a close glyph for failed and for cancelled (a user stop is neutral, never reported as a failure), the command as the meta line, and a bare duration that renders only when computable — never the raw protocol status word. Sub-agents form a card grid (SubagentGrid.vue) — an auto-fill grid (minmax --p-subagent-card-min) of cards at the --color-selected rung with --radius-lg corners; each card carries the task name, a stable session-wide number (creation order across the session's background sub-agents — unique even across swarms; once shown it sticks, so late-arriving history takes the next tail number), an optional prompt meta line one size down (--text-sm), an icon-led model · effort line and the status row a further size down (--text-xs) — the status row pairs the task-row state glyph with the localized label, plus a clock-led bare duration that renders only when computable; the full-bleed circle-check (drawn for the todo rows' ring family) is scaled onto the shared icon grid wherever it sits beside other glyphs (task rows, cards, filter chips). A failed row tints its name --color-danger; a cancelled one stays neutral. Rows hover with a rounded strip that grows by padding and a matching negative margin — the row metrics never shift. The row stop is danger-coloured; the card cancel reveals on hover and is always visible on touch as a --touch-target-min corner target. Every pane's empty state is centered and muted. State and time labels — the head meta included — set text-autospace: normal, the transcript's mixed CJK/numeric spacing rule, so durations like 9小时2分 breathe.

        State vocabulary: two glyph families meet here by design — the activity dot (shared with the transcript's tool rows and swarm members) backs the task rows, the todo rows speak the default loader ring, and the sub-agent cards skip glyphs in favour of a localized text label:

        ',8)),t("table",Da,[a[89]||(a[89]=t("thead",null,[t("tr",null,[t("th",null,"Surface"),t("th",null,"State"),t("th",null,"Meaning"),t("th",null,"Glyph"),t("th",null,"Ink")])],-1)),t("tbody",null,[t("tr",null,[a[54]||(a[54]=t("td",null,"Bash rows",-1)),a[55]||(a[55]=t("td",{class:"tk"},"running",-1)),a[56]||(a[56]=t("td",null,"Task in flight",-1)),t("td",null,[s(d(u),{status:"running"}),a[53]||(a[53]=e(" pulsing dot",-1))]),a[57]||(a[57]=t("td",null,[t("code",null,"--color-accent")],-1))]),t("tr",null,[a[60]||(a[60]=t("td",null,null,-1)),a[61]||(a[61]=t("td",{class:"tk"},"done",-1)),a[62]||(a[62]=t("td",null,"Finished cleanly",-1)),t("td",null,[s(d(o),{name:"circle-check",size:"sm"}),a[58]||(a[58]=e()),a[59]||(a[59]=t("code",null,"circle-check",-1))]),a[63]||(a[63]=t("td",null,[t("code",null,"--color-success")],-1))]),t("tr",null,[a[66]||(a[66]=t("td",null,null,-1)),a[67]||(a[67]=t("td",{class:"tk"},"failed",-1)),a[68]||(a[68]=t("td",null,"Errored — the row's name tints to match",-1)),t("td",null,[s(d(o),{name:"close",size:"sm"}),a[64]||(a[64]=e()),a[65]||(a[65]=t("code",null,"close",-1))]),a[69]||(a[69]=t("td",null,[t("code",null,"--color-danger")],-1))]),t("tr",null,[a[72]||(a[72]=t("td",null,null,-1)),a[73]||(a[73]=t("td",{class:"tk"},"cancelled",-1)),a[74]||(a[74]=t("td",null,"User stop — neutral, never a failure",-1)),t("td",null,[s(d(o),{name:"close",size:"sm"}),a[70]||(a[70]=e()),a[71]||(a[71]=t("code",null,"close",-1))]),a[75]||(a[75]=t("td",null,[t("code",null,"--color-text-muted")],-1))]),t("tr",null,[a[77]||(a[77]=t("td",null,"Todo rows",-1)),a[78]||(a[78]=t("td",{class:"tk"},"in_progress",-1)),a[79]||(a[79]=t("td",null,"Being worked on",-1)),t("td",null,[t("span",Oa,[s(d(D),{size:"xs"})]),a[76]||(a[76]=e(" xs Spinner ring",-1))]),a[80]||(a[80]=t("td",null,[e("the row's own ink ("),t("code",null,"--color-text"),e(")")],-1))]),a[87]||(a[87]=t("tr",null,[t("td"),t("td",{class:"tk"},"pending"),t("td",null,"Not started"),t("td",null,[t("span",{class:"dw-ring"}),e(" hollow ring")]),t("td",null,[t("code",null,"--color-line-strong"),e(" stroke")])],-1)),t("tr",null,[a[83]||(a[83]=t("td",null,null,-1)),a[84]||(a[84]=t("td",{class:"tk"},"done",-1)),a[85]||(a[85]=t("td",null,"Completed",-1)),t("td",null,[s(d(o),{name:"circle-check",size:"md"}),a[81]||(a[81]=e()),a[82]||(a[82]=t("code",null,"circle-check",-1))]),a[86]||(a[86]=t("td",null,[t("code",null,"--color-success")],-1))]),a[88]||(a[88]=t("tr",null,[t("td",null,"Sub-agent cards"),t("td",{class:"tk"},"all"),t("td",null,"The task-row glyph plus a localized label — failed alone tints danger — with a clock-led bare duration trailing"),t("td",null,"glyph + label"),t("td",null,"muted / danger")],-1))])]),a[146]||(a[146]=c("

        Filtering & sizing: the bash and sub-agent heads carry the same four icon-led filter chips — recent (clock; running + the five most recently finished), running (play), done (circle-check; every terminal state), all (list) — and both filtered panels pin to --p-dock-panel-h so filtering never resizes the panel; the body scrolls inside. When the head runs out of room the chips collapse into a dropdown menu (FilterControl.vue measures the head itself, so the switch follows the panel's own width, not the viewport; the menu teleports to <body> and anchors to the trigger, so the panel's clip and backdrop-filter never squeeze it); the head title never wraps and is never clipped — once the filter is a dropdown the head always fits. An empty pane names its filter (no completed tasks is not no tasks).

        Opening & cancelling: clicking a row or card opens the task's detail in the right-side panel. Opening is gated: the overlay navigation button renders only when a stable agentId (on-demand transcript) or locally held output exists, so a REST-only cold-loaded row stays inert instead of opening an empty panel — and says so with the not-allowed cursor. Open and cancel are sibling controls (a full-cover overlay button, the stop IconButton floating above it): no nested interactives, and the stop action exists only while the task runs.

        ",2)),t("div",Ha,[a[100]||(a[100]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Work pills — one vocabulary, a live count or status where one exists")],-1)),t("div",Ra,[t("div",Va,[t("span",La,[s(d(o),{name:"target",size:"md"}),a[90]||(a[90]=t("span",null,"Goal",-1)),a[91]||(a[91]=e()),a[92]||(a[92]=t("span",{class:"dw-live"},"Active",-1))]),t("span",Na,[s(d(o),{name:"terminal",size:"md"}),a[93]||(a[93]=t("span",null,"Bash",-1))]),t("span",Wa,[s(d(o),{name:"sparkles",size:"md"}),a[95]||(a[95]=t("span",null,"Background Agent",-1)),a[96]||(a[96]=e()),t("span",Pa,[s(d(u),{status:"running"}),a[94]||(a[94]=e("3",-1))])]),t("span",Ua,[s(d(o),{name:"list",size:"md"}),a[97]||(a[97]=t("span",null,"Progress",-1)),a[98]||(a[98]=e()),a[99]||(a[99]=t("span",{class:"dw-count"},"3/7",-1))])])])]),t("div",Fa,[a[141]||(a[141]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Work panels — two-tone head, filter chips, rows & card grid")],-1)),t("div",ja,[t("div",Ga,[t("div",Ka,[t("span",Ja,[s(d(o),{name:"terminal",size:"md"}),a[101]||(a[101]=e("Bash ",-1)),a[102]||(a[102]=t("span",{class:"dw-meta"},"1 running",-1))]),t("span",Ya,[t("span",Qa,[s(d(o),{name:"clock",size:"sm"}),a[103]||(a[103]=e("Recent",-1))]),t("span",Xa,[s(d(o),{name:"play",size:"sm"}),a[104]||(a[104]=e("Running",-1))]),t("span",Za,[s(d(o),{name:"circle-check",size:"sm"}),a[105]||(a[105]=e("Done",-1))]),t("span",$a,[s(d(o),{name:"list",size:"sm"}),a[106]||(a[106]=e("All",-1))])])]),t("div",_a,[t("div",at,[s(d(u),{status:"running"}),a[107]||(a[107]=t("span",{class:"nm"},"pnpm test -- --watch",-1)),a[108]||(a[108]=t("span",{class:"tm"},"0:42",-1))]),t("div",tt,[s(d(o),{name:"circle-check",size:"sm",class:"ok"}),a[109]||(a[109]=t("span",{class:"nm"},"pnpm run build",-1)),a[110]||(a[110]=t("span",{class:"tm"},"3m12s",-1))]),t("div",et,[s(d(o),{name:"close",size:"sm"}),a[111]||(a[111]=t("span",{class:"nm"},"pnpm lint",-1)),a[112]||(a[112]=t("span",{class:"tm"},"1m05s",-1))]),t("div",st,[s(d(o),{name:"close",size:"sm"}),a[113]||(a[113]=t("span",{class:"nm"},"node scripts/migrate.mjs",-1)),a[114]||(a[114]=t("span",{class:"tm"},"0:18",-1))])])]),t("div",dt,[t("div",ot,[t("span",ct,[s(d(o),{name:"sparkles",size:"md"}),a[115]||(a[115]=e("Background Agent ",-1)),a[116]||(a[116]=t("span",{class:"dw-meta"},"1 running",-1))]),t("span",it,[t("span",nt,[s(d(o),{name:"clock",size:"sm"}),a[117]||(a[117]=e("Recent",-1))]),t("span",lt,[s(d(o),{name:"play",size:"sm"}),a[118]||(a[118]=e("Running",-1))]),t("span",rt,[s(d(o),{name:"circle-check",size:"sm"}),a[119]||(a[119]=e("Done",-1))]),t("span",vt,[s(d(o),{name:"list",size:"sm"}),a[120]||(a[120]=e("All",-1))])])]),t("div",ft,[t("div",ht,[a[124]||(a[124]=t("div",{class:"ct"},[t("span",{class:"nu"},"01"),t("span",{class:"nm"},"Explore the auth module")],-1)),a[125]||(a[125]=t("div",{class:"ds"},"Map every callsite of the legacy token refresh and report findings",-1)),t("div",pt,[t("div",ut,[s(d(o),{name:"robot",size:"sm"}),a[121]||(a[121]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",gt,[t("span",mt,[s(d(u),{status:"running"}),a[122]||(a[122]=e("Running",-1))]),t("span",bt,[s(d(o),{name:"clock",size:"sm"}),a[123]||(a[123]=e("0:42",-1))])])])]),t("div",wt,[a[129]||(a[129]=t("div",{class:"ct"},[t("span",{class:"nu"},"02"),t("span",{class:"nm"},"Draft the release notes")],-1)),a[130]||(a[130]=t("div",{class:"ds"},"Summarize the merged PRs since the last tag into user-facing notes",-1)),t("div",yt,[t("div",kt,[s(d(o),{name:"robot",size:"sm"}),a[126]||(a[126]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",xt,[t("span",Tt,[s(d(o),{name:"circle-check",size:"sm",class:"ok"}),a[127]||(a[127]=e("Done",-1))]),t("span",St,[s(d(o),{name:"clock",size:"sm"}),a[128]||(a[128]=e("3m12s",-1))])])])]),t("div",Ct,[a[134]||(a[134]=t("div",{class:"ct"},[t("span",{class:"nu"},"03"),t("span",{class:"nm"},"Run the integration tests")],-1)),a[135]||(a[135]=t("div",{class:"ds"},"pnpm test against the staging daemon",-1)),t("div",zt,[t("div",qt,[s(d(o),{name:"robot",size:"sm"}),a[131]||(a[131]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",At,[t("span",Bt,[s(d(o),{name:"close",size:"sm"}),a[132]||(a[132]=e("Failed",-1))]),t("span",Mt,[s(d(o),{name:"clock",size:"sm"}),a[133]||(a[133]=e("1m05s",-1))])])])]),t("div",It,[a[139]||(a[139]=t("div",{class:"ct"},[t("span",{class:"nu"},"04"),t("span",{class:"nm"},"Migrate the config files")],-1)),a[140]||(a[140]=t("div",{class:"ds"},"Rewrite the workspace configs to the new schema",-1)),t("div",Et,[t("div",Dt,[s(d(o),{name:"robot",size:"sm"}),a[136]||(a[136]=t("span",null,"kimi-k2 · thinking",-1))]),t("div",Ot,[t("span",Ht,[s(d(o),{name:"close",size:"sm"}),a[137]||(a[137]=e("Cancelled",-1))]),t("span",Rt,[s(d(o),{name:"clock",size:"sm"}),a[138]||(a[138]=e("0:18",-1))])])])])])])])]),a[147]||(a[147]=t("h3",{class:"sub"},"Responsive",-1)),a[148]||(a[148]=t("p",null,[e("See §02 "),t("code",null,"--p-bp-sm"),e(" for the breakpoint. This section only gives mobile-adaptation pointers for the chat interface; a full mobile mockup is out of scope for this spec.")],-1)),a[149]||(a[149]=t("div",{class:"callout info"},[t("span",{class:"ico"},"i"),t("div",null," At ≤640px: dialogs anchor to the bottom as Sheets (xl top radius, top drag handle), the sidebar collapses into an expandable drawer, the Composer toolbar is allowed to wrap, and the chat reading column drops its max-width to fill the screen. ")],-1))]),a[151]||(a[151]=c('
        05

        Rich Text Messages

        Structured references travel as plain text on the wire and render as pills at both ends: the composer's editing surface and the rendered message stream share one pill vocabulary, so what you type is what the message shows. This section is the category spec — every future rich-text element (marks, embeds, interactive chips) joins it here.

        Mention pill

        The mention is the first rich-text element. It exists in two synchronized forms: an atom inside the desktop composer's ProseMirror document, and a pill in the message stream — assistant Markdown decorates local links with the same classes, and user/queue bubbles (verbatim wire text, never Markdown) render through the declarative ComposerText component. Both are the same mark: not a filled chip — no background, no vertical padding — just body text in a heavier weight (--weight-ui-strong) on a lighter ink (--color-text-muted), so the baseline stays flush with the surrounding text; a 2px horizontal inset (padding-inline: var(--space-05)) supplies the CJK/Latin autospacing that can't cross element boundaries and sets the mention apart from plain text; a 13px muted kind glyph leads, and the label is the basename — never the full path, which lives on the tooltip. Hover deepens the ink (glyph included) toward --color-text on every surface; in the message stream the clickable kinds (file, skill) also take the pointer cursor and the link underline, while the composer keeps pure editing semantics — I-beam, no underline, a click just places the caret. The shared classes live in app-ui's global sheet; the kind → glyph mapping is single-sourced in app-composer (mentionIcons) and also drives the mention menu rows, so a file looks identical in the menu, the editor, and the sent bubble. Copying from a bubble re-serializes the selection back to the wire text — pills carry their full attrs in data-mention-*, so a copy/paste round trip restores the link instead of a truncated basename.

        Kinds and wire forms (serialization is a Markdown link, so the daemon payload stays plain text and the TUI needs nothing new):

        KindGlyphWire formClick (in messages)
        Filesingle folded-corner file glyph for every file (no per-extension variants)[name](path) — the dest is canonically encoded per path segment (every non-unreserved ASCII character → %XX; non-ASCII stays literal, so a CJK path reads as itself — one decodeURIComponent restores it on every surface)opens the file preview
        Folderfolder glyph[name](path/) — trailing slash marks the kind (dest %%25 as above)inert (no target yet)
        Skillsparkling glyph[name](kimi-code://skill/<name>) — the app's deep-link protocolopens the skill's SKILL.md in the preview panel

        Hover tooltip: one document-level singleton (mentionTooltip) serves every pill — composer NodeViews, ComposerText-rendered bubbles, and Markdown anchors are all raw DOM a Vue wrapper can't reach, so it delegates on document mouseover into a single shared bubble. The bubble keeps the design-system tooltip's dark skin but is interactive. File and folder pills show the full path, wrapping anywhere within a fixed max width: every / separator muted, the basename bold (--weight-semibold). Skill pills show a card — the name with an open button at the right (opens the skill's SKILL.md in the preview panel; the path rides the wire skill descriptor through AppSkill.path), the description below, clamped to four lines; an unresolvable skill degrades to the name alone. Timing mirrors TooltipBubble (150ms show delay, top placement with flip, viewport clamping) and the bubble stays open while hovered so the button is reachable; native title tooltips are removed wherever a pill appears. The bubble is a documented structural exception to the component-primitive rule (like the dock overlay): its anchors are ProseMirror NodeViews and pillified spans a Vue wrapper can't reach, so the open/copy buttons re-implement the Button primitive's contract (size, hover, :focus-visible ring) by hand instead of importing it.

        Edge cases: labels cap at 32 chars — a longer name takes a middle ellipsis that keeps the head of the base name and the whole extension (the full name stays in the data attributes, the full path on the tooltip). A pill whose target was deleted after the fact: hovering fires a one-byte existence probe (an inline spinner sits at the tail of the tooltip's path text while in flight), and a definitive not-found fades the pill and strikes it through — in messages and in the composer alike. Clicks are never gated on the verdict (the preview's own not-found state is the final answer); only confirmed-existing verdicts are cached, scoped to the session, so a recreated file recovers on the next hover and a flaky daemon can never strike a pill by mistake.

        Behavior contract: a bare @ opens the menu instantly with the workspace root listing (Esc dismisses); with a query, the menu is ONE merged list — no sections — ranked by match strength: exact skill > prefix skill > strong file hits (substring-or-better on the basename; a query containing / matches path segments and is always strong) > substring skill > subsequence skill (tokens of 3+ chars, separator-bridging — larkim matches lark-im) > weak file hits (a bare subsequence), with the search firing per keystroke (rg-backed fs:suggest, no debounce; older daemons fall back to fs:search). An in-flight search never hides the current rows (a corner spinner marks it; superseded rows dim as stale and stay unselectable until fresh results land). File and skill rows highlight the matched characters with ink emphasis only — semibold strong ink in the name, body ink in the muted directory, never a background, so the row rhythm never shifts. The default highlight is simply the top row of the ranking — skill rows included — and follows its row by identity across async landings. Full-width from IMEs triggers identically. Insertion replaces the @token and adds a separating trailing space; the pill is one atom — Backspace removes it whole, and a zero-width caret anchor keeps the caret on the pill's line when it ends a paragraph. Drafts, history recall, and queue reloads revive pills from their link form on load, and pasting mention-link text (e.g. a copied pill) revives them too — the serializer round-trips both ways. Skill activation: sending a message with exactly one skill pill activates that skill via the existing channel (the pill form of /skill:<name>, the full text — the pill traveling as its mention link — becomes the args, attachments ride along), and the sent bubble shows the original message verbatim with the pill revived in place (a slash-typed activation, whose bare args carry no pill, keeps the identity card instead); two or more skill pills degrade to plain references, because each activation is its own turn.

        Implementation map: schema/serialization/offset mapping in app-composer's composerTextDoc (pure, node-tested); the editor surface in composerEditor; user/queue bubbles render via app-composer's ComposerText (one segment pass, declarative tree — no post-processing); assistant-side classification (classifyMentionHref) and decoration in app-markdown's Markdown.vue link pass; hover + skill-click routing in app-composer's mentionTooltip singleton, wired per app shell. When editing these, keep the two surfaces in lockstep — a pill that serializes one way in the composer must read the same way in a message.

        06

        Theming

        Kimi Web uses one unified theme: the same components, fonts, radii, shadows, and surfaces — theming only swaps color values. Every semantic color token ships a light value in :root and a dark override in the data-color-scheme blocks; the semantic status colors (success / warning / danger) are independent palettes, one set each for light / dark.

        Accent

        The app has one accent: the brand blue (--color-accent, #1783ff light / #58a6ff dark). Use it sparingly — the accent is reserved for the primary action, focus rings, links, and active marks (current tab, toggles); large fills always come from the neutral surface tokens. Selection that means "where I am" (sidebar rows, list pickers) is deliberately NOT accent-tinted — it uses --color-selected so it reads as location, not as an action.

        Light / dark mode

        Each semantic token ships a light value in :root and a dark override in the two data-color-scheme blocks (explicit choice, or following the OS preference via prefers-color-scheme). Switching light / dark simply swaps between these two sets of derived tokens, with zero structural change.

        Benefits of one theme: components, fonts, radii, and surfaces are consistent site-wide; a single accent keeps the brand identity unambiguous; light / dark mode works out of the box; semantic status colors are independently tunable.
        07

        Style Rules

        Anti-pattern rules that all UI code must follow. These rules are also the basis of the check-style detection script, one-to-one with a warning.

        Rule IDWhat it detectsAction
        no-gradient-textgradient text / gradient backgroundForbidden
        no-glassmorphismbackdrop-filter: blur (TopBar sticky nav bar and menu surfaces via --p-menu-backdrop are the exceptions)TopBar + menus exempt
        no-color-glowcolored / large-radius box-shadow glowForbidden
        no-emoji-iconusing emoji as a functional icon (no exceptions). Emoji inside user content — session titles, messages — is not chrome and is out of scope (see §07 Session row's emoji icon)Forbidden
        no-hardcoded-hexunregistered hex color inside a component <style>Warning
        no-hardcoded-fonthard-coded font-family in a component (e.g. 'Inter') instead of var(--font-ui)Warning
        radius-from-scaleradius value not in {4,6,8,12,16,20,999}Warning
        z-from-scalez-index using an unregistered large numberWarning
        weight-from-scalefont-weight not in {400,500}Warning

        State matrix

        Every interactive primitive should define the following states where applicable; missing ones are flagged by the style rules. focus-visible always uses --p-focus-ring (appears only on keyboard focus, see §08); disabled is uniformly opacity:.5.

        StateButtonInputCardMenu itemSwitch
        default
        hover
        active / pressed
        focus-visible
        disabled
        loading
        selected / active
        error
        readonly

        Chat working indicator

        The chat working state ("prompt sent, turn unfinished") is a brand signature of Kimi Web, rendered uniformly by the WorkingIndicator component: the 小蓝 mascot plus a phase label — "Requesting…" until the assistant's reply starts, "Working…" once it is streaming. All other loading states (including ActivityNotice) use the plain Spinner.

        Glassmorphism exemption

        backdrop-filter: blur is banned site-wide, with two exceptions: the .frost variant of TopBar — only in the one place of the "sticky navigation bar", used to stay readable over scrolling content — and the floating menu surfaces: Menu.vue, the Select listbox and the composer dropdowns use the --color-menu-bg token (a 95% surface), while the autocomplete family — slash/mention popups and the dock work panel — deliberately runs a frostier recipe of its own: 70% page background (single-sourced as --color-menu-bg-frost) over the shared --p-menu-backdrop blur, which stays the single-sourced blur token across all of them. The dock's work surfaces — the work panel and its pills, persistent over the scrolling transcript — ride that same frostier recipe (specified per-surface in §04 (Dock · work pills & panels)) rather than a bespoke one. No other component (card, dialog, Toast, panel) may use glassmorphism; violations are flagged under no-glassmorphism, and menu blur with ad-hoc values (anything but the token) is flagged too.
        08

        App Shell & Sidebar

        The structural spec for the app shell (three-column grid + right preview panel) and the left session sidebar. These are business-agnostic "skeletons" — components, fonts, radii, and surfaces are reused from §02 / §03, but layout and alignment have their own conventions.

        Layout grid

        On web it is a single-row 5-track grid: the sidebar and the right panel each occupy a permanent auto track, with the conversation column in the middle; two 0-width tracks are for the ResizeHandles. (The desktop app adds a second row for its terminal panel — desktop-only, see below.)

        App.vue · .app
        grid-template-columns: auto 0 minmax(0, 1fr) 0 auto;\n    /*         sidebar ↑    ↑handle  ↑conversation  ↑handle ↑right panel (auto) */
        TokenValueUsage
        sidebar width270px default (adjustable)expanded sidebar width, changed by dragging the ResizeHandle; should approach §02's --p-sidebar-w (264px)
        --preview-w460pxwidth of the right preview panel when open
        --panel-head-h48pxunified height for all right panel heads + the conversation column head; both use a 0.5px bottom hairline
        --p-bp-sm640px≤640 switches to a mobile single column (top bar + conversation), no sidebar / handle / right panel
        • The right panel track exists permanently, with its width toggling between 0 ↔ var(--preview-w) and no transition — animating a grid track would relayout the whole app grid every frame (when open it squeezes the conversation column, rather than switching templates).
        • The sidebar collapses SYMMETRICALLY to the right panel: its container width animates to 0 while the content keeps its fixed width anchored to the right edge (clipped, sliding out left — no reflow, hairline stays on the clipped content). No rail remains. The collapse control differs by platform: on macOS desktop the toggle is a single resident floating IconButton pinned beside the traffic lights (rendered in both states, only the glyph swaps — the sidebar slides underneath it, never moves or flashes); on Windows / web the collapse button lives inside the sidebar header (right-aligned), and a floating expand button appears at the top-left only while collapsed. The conversation header uses a 0.5px bottom hairline and pads left in step with the transition while collapsed.
        • All grid children must have min-height:0; min-width:0, so only the inner scroll containers scroll and the page itself does not scroll.

        Sidebar alignment system (--sb-*)

        All sidebar rows (group head, session row, New chat, search, and Settings buttons) share 5 custom properties. Their 16px icon slots and --sb-gap place every label on the same x-axis as the workspace name.

        TokenValueUsage
        --sb-inset12pxrow box (hover/selected pill) inset from the sidebar edges — matches the brand header's 12px padding
        --sb-pad-x20pxcontent start x (= --sb-inset + 8px row padding)
        --sb-gutter16pxleading icon slot width — matches the workspace folder icon so the session title aligns under the workspace name
        --sb-gap8pxgap between the icon slot and the text
        --sb-action-insetcalc((max(--ui-font-size-sm × --leading-tight, --p-ic-md) + 2 × --space-2 − --icon-button-sm) / 2) ≈ 3pxtrailing action buttons sit this far inside the row box's right edge — exactly the buttons' vertical inset: half the font-driven row height's slack over the fixed IconButton sm box. The row height is the title line box floored at the group-head / directory rows' 16px folder icon, plus the vertical row padding, so the inset tracks the user's font scale without dropping below the icon-floored rows' slack; the session row's hover cluster, the group head's ⋯/+, and the section labels' buttons all share this one right edge
        i
        The session title's starting x = --sb-pad-x + --sb-gutter + --sb-gap. The group head has a folder icon and the session row has a status slot; both icons are the same width and position, so the titles align naturally. On the trailing side, the list's scrollbar is an overlay thumb that reserves no layout space: the native bar is hidden outright (.sessions and the pinned rows' scroller set scrollbar-width: none + ::-webkit-scrollbar display:none) and a floating thumb element follows the scroll position — hidden at rest, revealed while the list is hovered or scrolling, fading back out once idle, and draggable since the thumb is the only scroll affordance (useOverlayScrollbar in @moonshot-ai/app-client, the same contract as the composer menus' overlay thumbs; the thumb floats over the right padding strip, 4px in the text-derived 12% fill / 25% on hover, with an invisible wider drag strip). A layout scrollbar — even the thin 4px one these lists used to carry — reserves width on the right whenever it shows, so the rows' right edge sat one track width further in than the left edge. With the overlay the rows' left/right insets stay symmetric whether or not the list scrolls, and the section labels' right padding is simply --sb-action-inset: every trailing button — section-label buttons included — stays on the same right line, with nothing measured or hard-coded.

        Sidebar structure

        The sidebar from top to bottom: brand header → action group → pinned head (pinned section + "Workspaces" label) → scrolling grouped list (workspace head + session rows) → user-menu footer. New chat and Search are direct sibling controls in the same grid container; the optional new-workspace action shares the first row, while Search spans the next row. A 4px gap keeps Search clear of the scroll boundary. The pinned head sits OUTSIDE the scroll container (the action-group / footer pattern — never position: sticky, which would need an opaque plate over the frosted tint), so the pinned sessions and the "Workspaces" label stay put while the workspace groups scroll beneath; the pinned section is collapsible (a chevron on its label, revealed on hover/focus and kept visible while folded; state persisted) so a long pinned set can't eat the sidebar, and it re-expands when a new session is pinned. Both pinned edges use three light near, middle and far fades across --p-sidebar-seam-h (13px), entering over 260ms only while more session content exists beyond that edge — the top seam lives at the pinned head's bottom border. The footer seam is a 0.5px hairline. Controls reuse the §03 primitives as much as possible. The sidebar sits on --color-sidebar-bg (one step off --color-bg: warm off-white just under white in light, one step BELOW the page in dark — the session column reads as its own plane, and with dark elevation = lighter the chrome never sits brighter than the conversation pane; the hairline still separates it from the pane). Vertical rhythm: the brand header keeps 12px padding (on macOS desktop the left padding grows to 80px to clear the traffic lights); rows inside the action group stack flush (0 gap, same rhythm as the list rows); adjacent groups are separated by 12px. The search glyph has a -0.5px optical correction to align its visual centre with the label. Row hover uses --sb-hover (= the global --color-hover wash); the selected row uses the lighter --sb-selected wash derived from --color-selected — On macOS desktop the sidebar is instead frosted: the window carries a native NSVisualEffectView ('menu' vibrancy, following the in-app scheme via the nativeTheme mirror, its state pinned to active — the focused, translucent rendering that lets the desktop read through, with no active/inactive drift) and the sidebar column drops --color-sidebar-bg for a single translucent --color-sidebar-tint wash that presses the see-through material just a whisper — a shade darker in dark (rgba(0,0,0,0.12)), a shade brighter in light (rgba(255,255,255,0.2)) — so the sidebar ink stays legible while the tone follows the wallpaper, with header and footer staying transparent so the tint reads as one uniform pane; the root chain (html/body/#app/.app) stays unpainted only under the macos-desktop + vibrancy flags — the latter is the Settings → Appearance accessibility switch (default on; persisted main-side so the window is created with the right material, and live-applied on toggle): off repaints the root chain and the sidebar falls back to opaque --color-sidebar-bg, while the traffic-light layout keeps keying off macos-desktop alone — while the conversation pane, chat header and right preview keep their own opaque surfaces. The list's hover-icon clusters (session-row kebab, group-head actions) paint NOTHING there — no plate, no wash, no blur (real backdrop blur does not even render over this window: Chromium's backdrop sampler returns a flat wash above the transparent BrowserWindow + vibrancy view). Instead the row's title/name dissolves before it ever reaches the buttons: a two-stage mask-image fade — a subtle 16px dissolve at rest, extending over the cluster zone only while the actions are revealed (row hover / keyboard focus / menu open): 34px on session rows (the pin+kebab cluster overhangs the title by ≈25px), 68px on group heads (the floating cluster is ≈60px wide). The fade is zone-based, so short rows render untouched, and text-overflow becomes clip so a long tail dissolves instead of dotting.

        BlockUseNote
        Brand headerlogo + name + collapse IconButton (right-aligned)on Windows / web the brand is left and the collapse IconButton sm is right-aligned inside the header; the dev-only backend version/address pill uses the UI font, not monospace; the logo is animated (a blinking eye). On macOS desktop the header is a bare drag strip (brand hidden, traffic lights + resident floating toggle over it)
        New chatfull-width left-aligned button (custom)500-weight label; same rhythm as the session rows in the list (left-aligned, hover = --sb-hover). Do not use Button (centered, breaks the rhythm)
        Searchbare search row (custom)500-weight label; no border, hover/focus shows the faint --color-hover wash; icon + label, with the Kbd keycaps (⌘K / Ctrl K) pushed to the trailing edge — label and shortcut are justified apart. Do not use Input (the 38px bordered version is too heavy). It is a direct sibling of New chat in the action group
        Section label.p-section-labeluppercase muted small titles like "Workspaces", using --weight-section-label (600)
        Pinned headfixed block above the scroll container (.sessions-head): the pinned section (PinnedSessionList.vue) + the "Workspaces" section labelstays put while the workspace groups scroll; owns the top scroll-linked seam (hairline + fade, only while scrolled). Pinned rows render in pure recency order (updatedAt desc — no manual ordering, no attention tiering): drag a session row in to pin it (the drop spot carries no position meaning), drag a pinned row out to unpin. The pinned section folds via its label chevron (persisted, kimi-web.pinned-collapsed) and re-expands only on an explicit pin (never on load backfill); the expanded rows are capped (40vh at rest) with their own scroll so a long pinned set can't push the list or footer out of view. Once the pinned content exceeds a few rows, a horizontal ResizeHandle twin renders between the rows and the section label (a shorter set keeps its natural height and no handle): dragging it re-caps the rows (two rows min; the max is 60% of the viewport, narrowed further on short windows so the list below always keeps ~3 rows — both bounds measured off the rendered rows, so they track the font-scale setting — and a gesture never targets positions past the content's natural height so the separator always tracks what renders; 40vh default; persisted per device, kimi-web.sidebar-pinned-height) and the list below takes what remains — same 4px strip / centred 2px bar, neutral f2/f3 ramp, row-resize with directional hints at the limits, useResizable axis: 'y' with imperative height writes, and the §08 separator keyboard model (↑/↓). While the rows scroll internally, their edges carry the session list's scroll-linked seam language: a --p-sidebar-seam-h three-layer text-tint veil plus a 0.5px --line hairline at the content edge, at the top once scrolled and at the bottom while more rows remain — absolutely positioned (no layout shift), --duration-slow opacity fade, below the resize handle so its hover/drag bar always wins. The rows scroller owns the same inset as .sessions (the wrapper stretches to the full column width), so the rows' right edge and the scrollbar track land exactly where the session list's do
        Workspace head / session rowsee next two sectionsshare --sb-* alignment
        User-menu footeraccount area (components/UserMenu.vue) opening an upward §03 menupinned row under the session list, separated by a 0.5px --line hairline; trigger keeps the same list-style family as New chat (24px round avatar + nickname when signed in, user icon + sign-in hint otherwise). The menu box follows the trigger's left edge and width (ResizeObserver-tracked, so it survives a sidebar resize) and is teleported to body because the column's container-type would capture position:fixed. Rows: plan usage / theme / language are macOS-style hover flyout submenus — the parent row carries the module icon, a faint current value and a fixed chevron-right, and hovering (or moving focus to the parent row, or pressing Enter / Space / → on it) opens a teleported panel anchored to the parent menu's right edge (content-adaptive width floored by the menu's own min-width and capped by the viewport margin on the side it opens (usage reset hints ellipsize only when the window is genuinely too narrow); flips left near the viewport edge) with a 250ms hover-intent close grace; the usage panel shows weekly + 5h rows (used-percent values via settings.planUsage.usedPct, with severity colours), while the theme (three schemes) and language (two locales) panels move the check to the picked option without closing the menu — then the upgrade entry below the top plan level, settings (with an always-visible Kbd keycap shortcut hint on desktop) and a confirming sign-out; all menu icons come from the Kimi set, and the whole menu (flyouts included) runs at the §03 default density — same row inset, label size and separator rhythm as every other menu; the usage flyout's custom rows read the same --menu-item-padding-* inset tokens as the primitive — each a two-column grid (label + end-justified used-percent on line one, the reset hint one rung down at --text-xs spanning both columns on line two so it is never squeezed by the top line's split), stacked at the adjacent-menu-item rhythm (2 × --menu-item-padding-block). On macOS desktop the trigger's bottom-left corner rounds at --radius-window-chip — concentric with the window's corner (the window rounds at the measured 14px --radius-window, and the footer's --sb-inset row inset and --space-2 block padding both resolve to 8px, so the chip hugs 8px from the window's left and bottom edges and 14px − 8px lands exactly on --radius-sm); web and other platforms have no rounded container corner there and keep the uniform --radius-sm
        !
        Why New chat / search / inline rename don't use Button / Input: they are "list-style" controls (full-width, left-aligned, compact, borderless), while Button is centered and Input is a 38px bordered control — forcing them in would break the sidebar's visual density and alignment. This is an intentional custom exception, not an oversight.
        i
        实验室 multi-tab sidebar toggle (Settings → 实验室, kimi-web.sidebar-multi-tab, default OFF) forks the sidebar into two forms. OFF = the legacy single session list: no 进行中/已完成/工作空间 tabs (statusTab pinned to open, tab shortcuts inert), no session-admin entries (the 列表管理 menu item hides and the workspace home itself falls back to the classic 新建会话 doodle hero — no workspace head, no recent-sessions list), the row hover action + context menu and the chat-header ⋯ menu read 归档 with the archive glyph (no success-hover variant, the header's Done pill + reopen button hide), and the archive ActionToast is the legacy «撤销 · 或到 · 设置 · 查看已归档的会话» linking to Settings → Archived. ON = the status-tabs form documented in this section (tabs, session admin page, the complete/reopen relabel, «已完成 · 撤销» toast). The preference is an app-core singleton (useSidebarTabs) consumed directly by Sidebar / SessionRow / ConversationPane / App.vue — no prop threading.

        Session row

        A session row is an inset rounded pill, structured as: status slot → title → time → attention Badge → hover actions (pin / archive).

        PartRule
        Containerpadding: 8px 8px inside the list's --sb-inset gutter, radius-sm; no fixed/min height — row height is font-driven (title line-height: --leading-tight, ≈16px) → ≈32px total, the sidebar-wide row rhythm. The hover actions are absolutely positioned so they never force the row taller (no hover jitter). hover = --sb-hover (the global --color-hover wash); active = --sb-selected (75% of the global selected wash) — neutral, no accent tint, no border, no weight change
        Status slot (lead)fixed --sb-gutter width; running = Spinner sm, otherwise unread = 7px accent dot; empty while an attention Badge owns the row — one status at a time, decided by the shared SessionDisplayStatus enum (app-core sessionDisplayStatus.ts: approval › question › running › aborted › unread)
        Titleflex:1 with truncation and user-select:none; double-click enters inline rename (compact input, not Input), whose text remains selectable
        Emoji iconthe session icon is the title's LEADING emoji cluster (app-core splitSessionEmoji — no icon field; every client renders the title as-is). The emoji is an ordinary title character — no decoration at rest or on hover (it stays a <button> for a11y), and clicking it opens SessionEmojiPicker — a Menu-shelled panel (bare list-style search row → scrollable sections: Recently used persisted in localStorage (cap 8) + the grouped emoji dataset, with remove/random as MenuItems in the footer; a query swaps the sections for keyword-search results), teleported + fixed + --z-dropdown, popping from the trigger corner like the right-click menu. The menu's "Set Emoji…" opens the same picker and is the discoverable path. Inline rename edits the whole title — the emoji is an ordinary character in the input
        Timemono xs, fg-faint; yields to the hover actions on hover
        Attention BadgeBadge sm: info (needs answer) / warning (needs approval) / danger (aborted)
        Hover actionsIconButton sm × 2 — pin + archive — cross-faded over the time on row hover (no kebab button). Right-clicking the row opens the full menu (copy ID / rename / emoji / fork / export / pin / archive + timestamp) anchored to the cursor, except over the inline rename input, where the native text-editing menu stays
        Flat-style variant (flat list + pinned section)the sidebar's flat list rows AND — always, regardless of view mode — the pinned section's rows differ from the grouped row in three ways (all keyed off the facade projecting cwdLabel): ① no leading status slot — the title is left-aligned at the row's content edge; ② a second line under the title: folder-closed icon sm + the cwd's final directory name (- when the session has no cwd), xs faint like the time — except the icon, which takes --color-text-muted (one rung stronger, the same optical compensation as the group head's folder; the open-folder glyph's thin back-flap washed out at 14px) — rest-width tail mask fade; when the session has an associated PR (v2 git domain), a small tag (git-pull-request icon + #number, 2xs medium on a soft ground with a hairline edge and radius-sm corners — a mini §03 Badge) sits at the line's right edge, state-colored the GitHub way (open = --color-success-soft ground + --color-success text, merged = --color-done-soft + --color-done purple, closed = neutral sunken) and opens the PR on click; ③ the first line's right side shows status — attention Badges anchored to the row's right edge, running Spinner, unread dot — INSTEAD of the time, which only renders when there is nothing to report (the Spinner yields to the attention pills: a session waiting for approval/answer never shows both); on hover the actions cross-fade IN as the whole status cluster fades OUT — pills and pin/archive never co-exist (grouped rows keep pills visible on hover). Height stays font-driven — the pill just grows the line. Grouped rows never set cwdLabel and keep the classic structure. The flat ↔ grouped switch lives in a dropdown on the SESSIONS section label (fixed list-settings icon + hover tooltip; the menu opens with a muted group label, per-view icons, and the current view checked at the row's right edge; mode persisted per device)
        Archiveno confirm — the hover archive button / menu item archives immediately, then App.vue shows the §03 ActionToast (top-center) with Undo (restores the session) and Settings (opens the archived list)

        Workspace group

        The group head and session rows share --sb-*: folder icon (open/closed) → name, with the kebab and "+" revealed on hover.

        • The folder icon leads the row (switching icons between open and closed states) with the plain --sb-gap before the name — it does not pad out the --sb-gutter slot.
        • The name uses 500 weight with muted color (--color-text-muted, one step lighter than session titles), so group heads remain clear without competing with list content. No path subtitle; hovering the name shows the full root path in a Tooltip.
        • The kebab (menu) and "+" (new chat in this workspace) both use IconButton sm inside a floating actions layer anchored to the row's right edge — no reserved layout space, so the name uses the full row width when idle. Shown on hover, keyboard focus, or while the menu is open; the layer backs itself with the sidebar surface (container background) plus the row hover wash (an ::after shown only while the row is hovered), so its color exactly equals the row's current background and the overlapped name tail doesn't bleed through (hidden via opacity:0, staying in the tab order). On macOS desktop the layer paints nothing at all — the name's mask-image fade (see the sidebar section above) dissolves the tail before it reaches the buttons
        • The group is collapsible; when collapsed its session list is hidden.
        • A group with no sessions is NOT rendered in the 进行中 tab of the status-tabs form (a cleanup leaves no pile of empty folders; the 工作空间 tab is the directory for creating sessions) — EXCEPT the active workspace's group, which stays so the draft state below keeps its head fill. The legacy single-list form (multi-tab toggle OFF) has no 工作空间 tab to fall back on, so it keeps EVERY group, empty ones included — archiving a workspace's last session must not make the workspace unreachable there. The Done tab's groups filter the same way. When nothing is open at all (and no pinned sessions), the tab shows the "还没有进行中的会话" empty line.
        • While the active workspace has no session selected (the draft state — e.g. right after adding the workspace, or after New chat), the group head carries the same neutral --sb-selected fill as a selected session row (selection reads as "where I am"; the fill wins over hover). Once a session is selected or created, the fill moves to that session row.

        Show more & collapse

        The "expand / collapse" controls at the bottom of each workspace group are compact list controls (same family as search, New chat, inline rename — not Buttons) sharing one row: expand (chevron-down) first, collapse (chevron-up) after a faint middot when both are present. Expanding reveals the next batch of sessions, fetching the next page from the server only when the locally loaded rows can't cover it — the control never exposes whether a reveal came from memory or the network.

        PartRule
        Rowa single flex row holding the controls, all content-width — hover washes just the button as a snug pill, never the full row. Font-driven height (≈32px like a session row), radius-sm; hover = --sb-hover (no text recolor); :focus-visible uses --p-focus-ring
        Chevronsm (down = expand, up = collapse); the row indents by --sb-gutter + --sb-gap so the first button's chevron starts exactly at the session-title x, lining the control's leading edge up with the titles above
        Labelfont-ui, text-xs, --color-text-muted; truncated
        Separatorfaint middot (--color-text-faint) with --space-1 side margins, rendered only when both controls are present
        Behavioreach group keeps a display cap starting at the first page; "Show more" steps it up by one batch (5) and fetches the next page only when the loaded rows fall short (busy = "Loading…", disabled); "Show less" resets the cap to the first page (view-layer trim — data is kept, no refetch). "Show more" exists while undisplayed loaded rows remain or the server has more; "Show less" appears once past the first page

        ResizeHandle

        A 4px grab strip layered over the 1px column border (margin: 0 -2px makes the whole 4px grabbable) with a centred 2px indicator bar. The bar stays transparent at rest and shows the neutral fills one step up the ramp — f2 on hover, f3 while the drag is live (the sidebar column is translucent on macOS, so f1 read too faint) — never the accent.

        RuleValue
        Width / cursor4px strip, 2px bar / col-resize mid-range; w-resize / e-resize at the drag limits (hints the direction that still resizes)
        Normal / hover / dragtransparent / --color-selected (f2) / --color-line-strong (f3) — the neutral ramp one step up, never accent
        Layer--z-dropdown, above pane-level sticky chrome (chat dock at --z-sticky) so the overhang stays visible and grabbable
        Behaviorpanel width follows the pointer 1:1 while dragging (the parent disables transitions to avoid lag); on release it is persisted to localStorage

        Right panel

        The right panels (file preview / Diff / compaction summary / sub-agent / side chat) share one track and one head primitive.

        • The panel head uses the PanelHeader primitive (48px = --panel-head-h), the same height as the conversation column head, so the hairline runs as one line.
        • Panel head: bold mono title + optional muted subtitle + middle slot (Badge / control / path) + close IconButton on the right.
        • When opened, the panel width snaps from 0 → var(--preview-w) with no animation, squeezing the conversation column in a single layout.
        • At ≤640px the panel becomes a full-screen overlay (position:fixed; inset:0).

        Bottom terminal panel (desktop-only)

        The native terminal (components/terminal/) sits in the conversation column's own bottom grid slot — the sidebar and the right panel span BOTH rows and keep full height (the VS Code layout: the panel belongs to the editor area, not to the whole window). Its height transitions 0 ↔ var(--terminal-h) (260px default, 120 min, 60% viewport max; persisted), squeezing the conversation column above instead of overlaying it. The panel mounts lazily on first open and then stays mounted so xterm scrollback survives a collapse.

        • Resize: a horizontal twin of the ResizeHandle (4px strip over the 0.5px top hairline, row-resize mid-range, n/s-resize at the limits, same neutral f2/f3 ramp, never accent). The shared useResizable hook owns it via axis: 'y'; the height var is written imperatively during a drag (same no-Vue-rerender rule as --preview-w).
        • Toolbar (32px, 0.5px bottom hairline): tab strip on the left — each tab is a compact radius-sm pill (leading terminal glyph, muted while exited + shell label + hover close affordance), the active tab uses --color-selected, hover --color-hover; a "+" action appends a tab. Tabs follow the §08 tablist keyboard model (roving tabindex, ←/→/Home/End), the close affordance is its own button (no nested interactives), and the height separator is keyboard-operable (↑/↓ in steps, value exposed). Trailing actions: restart (only while the active tab exited) and a collapse chevron. Collapsing sets inert on the region — the xterm instances and their scrollback stay mounted but leave the tab order.
        • The xterm canvas cannot resolve CSS variables either, so its palette is resolved from the live --color-* tokens at runtime (re-read on scheme flips; the ANSI hues the status ramp doesn't cover use dedicated --color-term-magenta/cyan tokens); the font is the app JetBrains Mono stack sized off the content token scale. While focused, the panel owns every key except the registered app shortcuts (chat-level Esc / find / select-all chords stay inert inside it).
        • Entries: the chat header's terminal IconButton (right of Open in, lit while the panel is open) — on the empty-composer state, where no chat header renders, the same button floats at the conversation's top-right instead — plus ctrl+` (⌃` on macOS — VS Code's binding; ⌘` stays free for the OS window switcher — customizable in the shortcut registry), and the View menu's Toggle Terminal item. New tabs spawn in the visible workspace root. Terminal state is per session: switching sessions swaps the visible bucket while the others keep their PTYs and xterm views alive (scrollback survives a round trip; the ten most recent sessions are kept, LRU). The panel never renders on mobile / web.
        i
        One-sentence principle: the sidebar / shell is a "list + grid" skeleton that reuses the §02 tokens and §03 primitives (Button / IconButton / Badge / Kbd / Menu / Spinner / PanelHeader); compact list controls that don't fit a primitive (search, New chat, inline rename, show-more) keep their custom form, governed by this section.
        09

        Accessibility (pragmatic edition)

        Kimi Web is a local developer tool; it does not target a specific WCAG conformance level, nor maintain a full screen-reader QA matrix. This section collects only the rules that are "low-cost, don't hurt the look, and directly benefit keyboard-heavy users", as the baseline contract for each primitive; the more expensive, lower-ROI parts (such as real-time announcement orchestration for streaming output) are not mandatory for now.

        i
        On the "ugly" focus ring: the focus visibility required below always uses :focus-visible (not :focus). It appears only on keyboard focus; mouse clicks don't trigger it, so it doesn't pollute the mouse-driven visual; the ring's strength is tuned uniformly with --p-focus-ring, not overridden per place.

        1. Contrast & color

        • Body text vs. background contrast ≥ 4.5:1; control borders, icons, and key graphics ≥ 3:1. When changing theme colors / dark mode, verify against §05 together.
        • Button text vs. button background, and form controls (input, placeholder, helper / error text) vs. their section background must all have contrast ≥ 4.5:1 (large text ≥ 3:1). White-on-white text, a transparent borderless button floating over the page background, and a light placeholder on a near-white background are all flagged by the style rules.
        • State is not conveyed by color alone. Error, selected, and disabled states also carry text, an icon, or a shape change (for example an error state is not just red, but also carries text or an icon).

        2. Keyboard operable

        Anything doable with a mouse must also be doable with a keyboard; Tab order follows the DOM, with no invented skipping. Composite controls define their keyboard model per the table below; a missing model is treated as incomplete:

        ControlKeyboard behavior
        DialogTab cycles within the dialog (focus trap); Esc closes; focus returns to the trigger element after closing.
        Menu / move the highlight, Enter selects, Esc closes.
        Tabs / switch tabs (roving tabindex); only the current tab is in the Tab sequence.
        Switch / Segmented / or Space / Enter to toggle.

        3. Focus visibility

        • Every interactive element must have a visible focus indicator on keyboard focus, uniformly via :focus-visible + --p-focus-ring (primary actions may use --p-focus-ring-strong).
        • Bare outline: none is forbidden. To remove the default outline, you must provide an equivalent replacement style.

        4. Labels & semantics

        • Semantic HTML first (button / a / input / dialog…); ARIA is added only when native semantics fall short.
        • Icon-only buttons must have an aria-labelIconButton already enforces this with a required label prop.
        • Dialog: role="dialog" + aria-modal="true", with the title as the dialog's accessible name.
        • Purely decorative SVG / icons get aria-hidden="true" to avoid being read out by screen readers.

        5. Target size

        Desktop click targets ≥ 32px; touch devices ≥ 44px (consistent with the §01 principle and the IconButton lg tier).

        6. Reduced motion

        Handled uniformly in the global styles per §02's @media (prefers-reduced-motion: reduce); components do not check this individually. The chat working indicator's mascot renders its static fallback.

        7. Live announcements (non-mandatory)

        Screen-reader announcements are not a mandatory contract in this product. Short hints like Toast can use role="status" / aria-live; chat streaming output is currently not announced word-by-word, which is an acceptable trade-off, to be added later if a real need arises.

        Explicitly not mandatory for now: a WCAG conformance-level claim, a complete ARIA pattern table, a per-screen-reader QA matrix, and real-time announcement orchestration for streaming output — these are not written into the primitive contract, to avoid becoming slogans no one maintains.
        10

        Dialogs

        Every overlay in the app — pickers, browsers, managers, confirmations — is built on the single §03 Dialog primitive. This chapter fixes the two layout anatomies allowed inside that frame, plus the row and footer contracts that make all dialogs read as one family. Do not hand-roll a third anatomy.

        The frame (recap)

        All dialogs share the §03 primitive: --radius-xl radius, --shadow-xl shadow, a restrained 28% neutral backdrop, a head (title + IconButton close), a body, and a right-aligned foot. Widths sm 360 / md 440 / lg 640 / xl 760 and auto / fixed height are chosen per §03. One interruptive overlay at a time; Esc closes; focus is trapped and restored. A blocking flow that must be resolved rather than dismissed (server token) uses hideClose with closeOnOverlay/closeOnEsc off — never a hand-written overlay.

        Anatomy A — padded (forms & confirmations)

        The default: the body carries its own padding and the caller drops content straight in. Confirmations put their Buttons in the #foot slot (right-aligned, cancel → confirm). Used by: confirm, login, status panel, server token.

        Anatomy B — flush (pickers & browsers)

        :padded="false" with height="fixed"; the consumer owns the zone layout inside a full-height column. The zones below are the whole vocabulary — a picker dialog composes them and adds nothing else. Used by: model picker, session search, folder browser, provider manager.

        ZoneContract
        SearchThe boxed §03 Input, inset 22px so its edge aligns with the head title. Autofocus on open. No leading icon, no borderless variant.
        Filter chipsOptional. 28px pill: transparent + muted text by default, --color-hover on hover, --color-selected + medium --color-text when active. Horizontally scrollable with the scrollbar hidden. Never a row of Buttons.
        Listflex:1, owns the vertical scrolling, padded 4px 8px so rows bleed near the dialog edge. role="listbox"; rows carry role="option" + aria-selected.
        Row8px 12px padding, --radius-md. Two quiet lines: name 14/20 (medium when current) and a meta line 12/18 in --color-text-faint — provider · context · capability labels, dot-separated. No badge rows, no raw-id line (search still matches them). Trailing slot: check icon (current row only), then the star IconButton.
        Row statesHover / keyboard-selected → --color-hover; current → --color-selected — a neutral "where I am" fill, never an accent tint, never an inset stroke. The star stays hidden until row hover, keyboard selection, or starred; it is always visible on touch devices and colored --star when starred.
        State rowsLoading / unavailable / empty: centered on both axes, muted 14px; warning color only for the unavailable case.
        Shortcut barThe footer: full-bleed, padding 8px 16px, border-top --color-line, left-aligned. Keyboard hints are Kbd keycaps + 12px --color-text-faint labels, groups separated by "·", the whole bar aria-hidden. An instructional sentence (folder browser) reuses the same bar without keycaps.

        Keyboard & behavior contract

        • / move a keyboard selection (rendered identical to hover) and always scrollIntoView({ block: 'nearest' }); Enter selects and closes; Esc closes.
        • Pointer hover drives the same selection index, so keyboard and mouse never disagree about which row is active.
        • Rows transition background only (--duration-fast ease-out); the open/close animation lives in the primitive, not in the consumer.
        • Selection is a fill, not a border (surface over stroke). Accent blue is reserved for actions — primary buttons and focus rings — never for "which row am I on".

        Dialog map

        DialogAnatomyComposition
        Model pickerflush · lg · fixedsearch + provider chips + model rows + shortcut bar
        Session searchflush · lg · fixedsearch + result rows (sidebar-style alignment: one icon gutter, shared left text edge, shared right meta edge; workspace rows single-line name + right-aligned path, session rows title + time over a workspace · snippet meta line; quiet uppercase section heads with counts; empty query shows a few top workspaces + recent sessions) + shortcut bar
        Folder browserflush · lg · fixedbreadcrumb bar + filter bar + folder rows + actions + hint bar
        Provider managerflush · xl · fixedmanagement rows with inset dividers (rows are not selectable) + add section + shortcut bar
        Confirm / Login / Statuspadded · md · autotitle + message or form + right-aligned foot
        App update (desktop)padded · lg · autoversion title (stays "发现新版本 vX" even while downloading) + quiet meta line (release date · current version) + height-capped scrolling what's-new list + right-aligned action row (skip → download; downloading → background + disabled live-percent button; later → restart) with the auto-download checkbox right-aligned on its own foot row below (a pure preference for future checks)
        Server tokenpadded · md · autohideClose, no Esc/overlay close — resolved only by a valid token
        Settingsflush · xl · fixedpage-like exception: side-nav region, per §03
        Onboarding wizardnot a Dialogfull-page takeover (not built on §03): one centered column (brand lockup → step content → ghost actions + centered primary CTA); selectable options share the option-card pattern — 0.5px --color-line hairline, --color-accent border + --color-accent-soft fill when selected
        Design intent: a picker dialog should feel like a quiet command palette — one boxed search, calm rows, a neutral "you are here" fill, and a predictable shortcut bar. Anything noisier — badge clouds, accent-selected rows, per-dialog footer inventions — is a regression to weed out.
        11

        Session Admin Page

        The session admin page (/admin/sessions, opened from the sidebar's list-management menu) is a full-pane management view for cross-workspace session triage: filters, a server-side paged table, and batch lifecycle actions. It is a main-view peer of the conversation pane (mainView in the facade, switched with v-show so the chat stays alive) and page-private by decision — everything lives under components/admin/ (SessionAdminView/Table/Pagination, FilterSelect, MultiSelectMenu, SessionAdminMenu, useAnchoredMenu); nothing here promotes to §03 until a second consumer exists. Data is one GET /api/v2/sessions page-mode call per filter/page change (all conditions pushed down, no client-side aggregation); batch archive/restore go through the v2 batch endpoints with per-item outcomes.

        Page skeleton — a full-pane admin surface

        A 48px title bar (a back IconButton — chevron-left, tooltip 返回, closing the page back to the chat underneath via closeSessionAdmin — then the page title, semibold base; hairline bottom edge; on macOS desktop it doubles as the window-drag region and takes the chat header's collapsed-sidebar clearance — 146px / 78px / Windows fallback — so ONLY the bar insets, the body never does) → muted subtitle → query-form filter bar → table card → pager. The title bar and the scroll container are siblings (bar fixed, body scrolls). The page wrapper spans the whole conversation column — do not apply the chat content measure (--p-content-max) here: under table-layout: fixed a narrow wrapper crushes the table's flexible columns to zero width (the title/prompt columns collapsed in practice). An admin table surface owns the pane width. The status filter defaults to 全部 (all) — the page is the whole inventory, 重置 restores that same default.

        !
        Lesson (content measure): --p-content-max is a READING measure for prose-like content (chat, dialogs). Full-bleed work surfaces — tables, grids, dashboards — span the pane instead. Pick one deliberately; inheriting the chat measure by default is the bug.

        Table

        The card is the flat shell: 0.5px --color-line hairline, --radius-lg, no shadow. Inside, table-layout: fixed with a colgroup: fixed-width utility columns (checkbox, workspace, status, the two time columns, actions) and two flexible content columns (title at max(200px, 20%) — a floor, not a bare percentage — last prompt taking the rest). The head row is a pinned-height 32px box (it hosts the batch transform below); body rows are 40px. Rows are separated by 0.5px --color-subtle hairlines (none after the last row), with a --color-hover wash on hover. Every cell truncates single-line with ellipsis and carries a title tooltip. Time columns are absolute (YYYY-MM-DD HH:mm) in --font-mono xs with tabular-nums — the admin page is an audit view, so no relative times; empty values render a faint . The status column sits right after the workspace column and reuses the sidebar row's lifecycle glyphs: state-open (dashed ring, --color-success) for 进行中 and state-done (checked ring, --color-done) for 已完成, icon + label. First load swaps the body for a centered §03 Spinner; refetches keep the stale rows and dim the card (opacity + pointer-events: none) rather than flashing it away; filters with no matches render the centered faint empty line.

        Responsive steps (the card is the query container; web's narrow panes matter too): the time columns give ground FIRST — at ≤1020px their values swap to the compact MM-DD HH:mm at 108px (each time cell carries both spans, CSS toggles them — no JS measuring); at ≤760px the time columns hide outright (the col and the cells share sa-c-time/sa-col-time classes) and the workspace column drops its folder icon. The table itself floors at 640px and the card takes overflow-x: auto — past the floor the card scrolls horizontally instead of crushing title/prompt to zero, and auto still clips the rounded corners like hidden did.

        ColumnWidthContent
        checkbox36pxheader select-this-page (indeterminate) + row checkboxes
        会话名20%title (emoji verbatim), weight 475, ellipsis; hosts inline rename
        工作空间116pxfolder-closed icon + workspace name (cwd basename fallback)
        状态88pxstate-open/state-done glyph + label
        最后一条 promptflexmuted, ellipsis, faint when null
        最后更新 / 完成时间140px ×2mono tabular-nums absolute time; completed shows while open
        操作84pxlifecycle IconButton (state-done completes an open row, undo reopens a done one; tooltips carry 标记完成/恢复进行中) + ⋯ IconButton dropdown (Rename… / Fork / Export)

        Batch header — the zero-offset transform

        GitHub issues/PR semantics: while a selection exists, the head row transforms IN PLACE — the checkbox column stays put, and the remaining column headers swap for a single <th colspan> batch bar ("已选 n 项" + Mark-as-done / Reopen, each disabled when the selection holds no row of that lifecycle) inside the SAME pinned 32px box, so the table body does not move a pixel. Mark-as-done is the bar's one accent-primary button (fill + on-accent icon/label); Reopen stays a quiet hairline button. The selection itself is facade-owned (a reactive id set plus a per-id lifecycle map, reconciled against fresh rows on every landing) and survives page and filter changes — the batch count deliberately includes rows no longer visible. Successful batch items leave the selection and the current page is silently re-pulled; failures stay selected. There is deliberately no "clear selection" button for ordinary selections: unchecking rows or the header checkbox is the way out. Toasts ride App.vue's shared ActionToast channel (succeeded count, failed count when partial, Undo through the inverse batch endpoint); an all-failed batch has nothing to undo and surfaces as a WarningToast instead.

        Select-all-matching — the Gmail move

        Page-size caps (≤100) make "mark everything done" hopeless against thousands of rows, so the batch bar borrows Gmail's escalation: once the header checkbox has the whole page selected and total says more rows exist, a link-style button appears IN the bar (zero-offset — no banner pushing the table down): "选中当前条件下的全部 N 项" (busy-label 正在选中… while fetching). Activating it materializes every matching id into the selection via the ids projection (GET /api/v2/sessions?fields=id,archived — the one cheap shape whose page_size ceiling relaxes to 10000; cursor-walked for larger sets), merging atomically: a filter change mid-flight discards the fetch entirely. While active the count reads "已选中全部 n 项" and the link becomes 清除选择. Exclusions are free — unchecking a row just drops it from the set; emptying the selection drops the mode, as does a right-click single-row collapse. The mode ties itself to the filter fingerprint it was built from: a real condition change (query-form apply with different values, or any granular setter) clears the whole selection — re-applying the SAME conditions keeps it. Batch executions chunk at the wire's 5000-unique-ids ceiling (sequential, merged per-item outcomes; a thrown chunk aborts the rest and counts everything unexecuted as failed — the succeeded ids still reconcile).

        The quiet-button border reset

        All quiet icon/text buttons on the page (the batch bar's Reopen, the pager buttons) set border: none; background: transparent explicitly — or, for the bordered shapes (the filter triggers), an explicit 0.5px hairline. Row actions are pure §03 IconButtons (the sidebar row's language): the lifecycle glyph (state-done completes an open row, undo reopens a done one — tooltips carry the labels) plus the ⋯ dropdown; a text button per row read as visual noise once every row carried one.

        !
        Lesson (UA borders): the global reset clears button backgrounds only — a bare <button> still inherits the UA stylesheet's outset border, which reads as a stray box around every quiet control. Any quiet button outside the §03 primitives must reset both properties.

        Quiet filter controls (query form)

        The filter bar is a query form (antd Pro semantics): the controls edit a local DRAFT only — nothing is requested until an explicit apply. 查询 (a §03 Button variant=primary size=sm) applies the whole draft through the facade in one shot (applySessionAdminFilters — atomic write + page reset + exactly one request, never the per-setter debounce dribble), 重置 (a ghost sibling) restores defaults the same way, and Enter inside the bar queries too — except while any overlay (a select dropdown) is open, where Enter belongs to the overlay. Pagination is exempt: page/page-size changes still fetch immediately. Entry paths can pre-seed the conditions: the workspace home's 查看更多 opens the page with its workspace already selected in the filter (openSessionAdmin(workspaceId) applies the filter atomically with the navigation), and because the page is v-show-kept, the draft re-seeds from the applied filters on EVERY entry so the controls always show the true conditions. The controls themselves are muted sm labels plus a family of quiet 30px hairline controls (0.5px --color-line, --radius-md, transparent ground, --color-hover on hover/open) — deliberately NOT the §03 Select (a 32px+ form control with an accent focus ring, too heavy for a filter strip):

        • FilterSelect — quiet single-select (status, updated time, page size): the trigger carries the current label + a faint chevron; the dropdown is the §03 Menu surface with a leading fixed-width check slot and an optional lifecycle dot (--color-success open / --color-done done).
        • MultiSelectMenu — workspace multi-select: the trigger shows the selection as removable tags (at most two, then "+N"; empty = the 全部工作空间 placeholder). The anchored panel leads with a search row (case-insensitive name filter, autofocused, reset on close), then a Select-all row, then the option rows — no checkboxes, selected rows take the active highlight. The options area is capped at 320px with its own scroll (in-menu scrolls never close the panel); the panel STAYS OPEN on toggles so several workspaces can be picked in one go (Esc / outside click / outside scroll closes). Empty selection = no filter.
        • Updated-time presets — a FilterSelect of relative windows (全部时间 / 3 天以前 / 7 天以前 / 30 天以前): a pick maps onto the facade's updatedTo bound as the local calendar day N days back (computed at apply time, so a saved draft never goes stale), and the facade's day-end mapping turns it into updatedBefore. Deliberately not a calendar range picker — triage asks "older than X", not "between two dates".

        Point-anchored context menus

        useAnchoredMenu is the page's one menu mechanic: fixed-position §03 Menu surface, pop-from-anchor motion (fade + 0.97 scale on the menu tokens, origin and nudge following the upward flip at the viewport edge), closed by outside mousedown / Esc / scroll / resize. Three anchor modes — left-aligned under a trigger (filter selects), right-edge under a trigger (the row ⋯), and openAt(x, y) at a raw viewport point for the row contextmenu. The contextmenu has two shapes: on a row outside the multi-selection the selection first collapses to just that row and the menu is the single shape (Open session / Rename… / Fork / Export / — / the lifecycle action); on a row inside it, the multi shape (a muted count head + Mark-as-done (n) / Reopen (n), disabled per availability). Open session is the facade's selectSession — a user navigation that also leaves the admin page back to chat.

        Inline rename

        The title cell swaps for an accent-ringed input (--color-accent border + --color-accent-bd ring, --radius-sm) — Enter commits, Esc cancels, blur commits, settled once. The table is server-fed, so a commit is followed by a silent re-pull of the current page (the facade's pool update never reaches it).

        ',7))])])])]))}}),Pt=O(Lt,[["__scopeId","data-v-247f7c56"]]);export{Pt as default}; diff --git a/apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js b/apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js similarity index 98% rename from apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js rename to apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js index 12bc0d11125..7c64e499aef 100644 --- a/apps/kimi-code/dist-web/assets/Tooltip-B76-fywy.js +++ b/apps/kimi-code/dist-web/assets/Tooltip-06BtTYE8.js @@ -1 +1 @@ -import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-CAYChmT7.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default}; +import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-D1h84VfZ.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default}; diff --git a/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js b/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js similarity index 86% rename from apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js rename to apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js index 081c8bfad9f..ed41ade5627 100644 --- a/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-B1DELWbe.js +++ b/apps/kimi-code/dist-web/assets/abnfDiagram-VRR7QNED-BXPcW32X.js @@ -1 +1 @@ -import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-BDh2X7Dq.js";import{p as f}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as n,l as o}from"./mermaid.core-D8UeR6T-.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram}; +import{g as p,r as u,d as a}from"./chunk-MOJQB5TN-Ce2Y728v.js";import{p as f}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as n,l as o}from"./mermaid.core-DaDTfY6S.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram}; diff --git a/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js b/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js deleted file mode 100644 index 31417d1064b..00000000000 --- a/apps/kimi-code/dist-web/assets/arc-B7MJFnai.js +++ /dev/null @@ -1 +0,0 @@ -import{P as ln,Q as an,R as j,S,T as W,V as un,W as y,X as tn,Y as C,$ as _,a0 as rn,a1 as o,a2 as on,a3 as sn,a4 as fn}from"./mermaid.core-D8UeR6T-.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,R,X,a){var I=E-l,i=q-h,n=X-v,d=a-R,u=d*I-n*i;if(!(u*ur*r+$*$&&(Q=w,V=p),{cx:Q,cy:V,x01:-n,y01:-d,x11:Q*(v/T-1),y11:V*(v/T-1)}}function hn(){var l=cn,h=yn,E=W(0),q=null,v=gn,R=dn,X=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,Y=rn(c-f),t=c>f;if(a||(a=n=I()),sy))a.moveTo(0,0);else if(Y>tn-y)a.moveTo(s*j(f),s*S(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*j(c),u*S(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=Y,O=Y,Q=X.apply(this,arguments)/2,V=Q>y&&(q?+q.apply(this,arguments):C(u*u+s*s)),w=_(rn(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(V>y){var $=sn(V/u*S(Q)),F=sn(V/s*S(Q));(P-=$*2)>y?($*=t?1:-1,A+=$,T-=$):(P=0,A=T=(f+c)/2),(O-=F*2)>y?(F*=t?1:-1,m+=F,g-=F):(O=0,m=g=(f+c)/2)}var z=s*j(m),B=s*S(m),G=u*j(T),H=u*S(T);if(w>y){var J=s*j(g),K=s*S(g),M=u*j(A),N=u*S(A),D;if(Yy?x>y?(e=L(M,N,z,B,s,x,t),r=L(J,K,G,H,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(G,H):p>y?(e=L(G,H,J,K,u,-p,t),r=L(z,B,M,N,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+M*M&&(G=w,H=p),{cx:G,cy:H,x01:-n,y01:-d,x11:G*(v/T-1),y11:H*(v/T-1)}}function hn(){var l=cn,h=yn,q=J(0),O=null,v=gn,R=dn,K=mn,u=null,D=ln(i);function i(){var n,d,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,L=rn(c-f),t=c>f;if(u||(u=n=D()),sy))u.moveTo(0,0);else if(L>tn-y)u.moveTo(s*N(f),s*I(f)),u.arc(0,0,s,f,c,!t),a>y&&(u.moveTo(a*N(c),a*I(c)),u.arc(0,0,a,c,f,t));else{var m=f,g=c,A=f,T=c,P=L,E=L,G=K.apply(this,arguments)/2,H=G>y&&(O?+O.apply(this,arguments):j(a*a+s*s)),w=_(rn(s-a)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(H>y){var M=sn(H/a*I(G)),z=sn(H/s*I(G));(P-=M*2)>y?(M*=t?1:-1,A+=M,T-=M):(P=0,A=T=(f+c)/2),(E-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(E=0,m=g=(f+c)/2)}var Q=s*N(m),V=s*I(m),B=a*N(T),C=a*I(T);if(w>y){var F=s*N(g),U=s*I(g),X=a*N(A),Y=a*I(A),S;if(Ly?x>y?(e=W(X,Y,Q,V,s,x,t),r=W(F,U,B,C,s,x,t),u.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?u.lineTo(B,C):p>y?(e=W(B,C,F,U,a,-p,t),r=W(Q,V,X,Y,a,-p,t),u.lineTo(e.cx+e.x01,e.cy+e.y01),ps?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=e}),(function(A,G,N){var v=N(0);function h(){}for(var i in v)h[i]=v[i];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,G,N){function v(h,i){h==null&&i==null?(this.x=0,this.y=0):(this.x=h,this.y=i)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(h){this.x=h},v.prototype.setY=function(h){this.y=h},v.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(0),r=N(7),a=N(3),f=N(1),e=N(13),u=N(12),t=N(11);function s(c,l,T){v.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}s.prototype=Object.create(v.prototype);for(var o in v)s[o]=v[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},s.prototype.remove=function(c){var l=c;if(c instanceof a){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,C=0;C-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(w,1),g.target!=g.source&&g.target.edges.splice(P,1);var S=g.source.owner.getEdges().indexOf(g);if(S==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(S,1)}},s.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,g,d,C=this.getNodes(),S=C.length,w=0;wT&&(c=T),l>g&&(l=g)}return c==h.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?d=C[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new u(this.left,this.top))},s.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,g=h.MAX_VALUE,d=-h.MAX_VALUE,C,S,w,P,B,U=this.nodes,V=U.length,M=0;MC&&(l=C),Tw&&(g=w),dC&&(l=C),Tw&&(g=w),d=this.nodes.length){var V=0;T.forEach(function(M){M.owner==c&&V++}),V==this.nodes.length&&(this.isConnected=!0)}},A.exports=s}),(function(A,G,N){var v,h=N(1);function i(r){v=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,u){if(f==null&&e==null&&u==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{u=f,e=a,f=r;var t=e.getOwner(),s=u.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,u);if(f.isInterGraph=!0,f.source=e,f.target=u,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof v){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,u=f.length,t=0;t=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var u=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(u=1);var t=u*a[0],s=a[1]/u;a[0]t)return a[0]=f,a[1]=o,a[2]=u,a[3]=U,!1;if(eu)return a[0]=s,a[1]=e,a[2]=P,a[3]=t,!1;if(fu?(a[0]=l,a[1]=T,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>u?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=T,n=!0)),-m===y?u>f?(a[2]=B,a[3]=U,E=!0):(a[2]=P,a[3]=w,E=!0):m===y&&(u>f?(a[2]=S,a[3]=w,E=!0):(a[2]=V,a[3]=U,E=!0)),n&&E)return!1;if(f>u?e>t?(I=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(I=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(I=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(I=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(I){case 1:W=o,R=f+-C/y,a[0]=R,a[1]=W;break;case 2:R=g,W=e+d*y,a[0]=R,a[1]=W;break;case 3:W=T,R=f+C/y,a[0]=R,a[1]=W;break;case 4:R=l,W=e+-d*y,a[0]=R,a[1]=W;break}if(!E)switch(O){case 1:Q=w,x=u+-_/y,a[2]=x,a[3]=Q;break;case 2:x=V,Q=t+M*y,a[2]=x,a[3]=Q;break;case 3:Q=U,x=u+_/y,a[2]=x,a[3]=Q;break;case 4:x=B,Q=t+-M*y,a[2]=x,a[3]=Q;break}}return!1},h.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},h.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,u=i.y,t=r.x,s=r.y,o=a.x,c=a.y,l=f.x,T=f.y,g=void 0,d=void 0,C=void 0,S=void 0,w=void 0,P=void 0,B=void 0,U=void 0,V=void 0;return C=s-u,w=e-t,B=t*u-e*s,S=T-c,P=o-l,U=l*c-o*T,V=C*P-S*w,V===0?null:(g=(w*U-P*B)/V,d=(S*B-C*U)/V,new v(g,d))},h.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a=0){var T=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,G,N){function v(){}v.sign=function(h){return h>0?1:h<0?-1:0},v.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},v.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=v}),(function(A,G,N){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,A.exports=v}),(function(A,G,N){var v=(function(){function e(u,t){for(var s=0;s"u"?"undefined":v(i);return i==null||r!="object"&&r!="function"},A.exports=h}),(function(A,G,N){function v(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(C.push(w[0]);C.length>0&&c;){var P=C[0];C.splice(0,1),d.add(P);for(var B=P.getEdges(),g=0;g-1&&w.splice(_,1)}d=new Set,S=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(U,1);var V=S.getNeighborsList();V.forEach(function(n){if(l.indexOf(n)<0){var E=T.get(n),p=E-1;p==1&&P.push(n),T.set(n,p)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},A.exports=s}),(function(A,G,N){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},A.exports=v}),(function(A,G,N){var v=N(5);function h(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(i){this.lworldExtX=i},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(i){this.lworldExtY=i},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},h.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},h.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},h.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},h.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},h.prototype.inverseTransformPoint=function(i){var r=new v(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},A.exports=h}),(function(A,G,N){function v(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);si.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oC||d>C)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(C=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>C||d>C)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||C>=g[0].length)){for(var S=0;Se}}]),a})();A.exports=r}),(function(A,G,N){function v(){}v.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var i=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),a=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),u=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;m--)if(this.s[m]!==0){for(var y=m+1;y=0;z--){if((function(Tt,Ct){return Tt&&Ct})(z0;){var J=void 0,It=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=J&&Nt!==J;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==J+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+tt*vt){this.s[Nt]=0;break}}Nt===J?It=3:Nt===n-1?It=1:(It=2,J=Nt)}switch(J++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Et=v.hypot(this.s[ut],it),wt=this.s[ut]/Et,Ot=it/Et;this.s[ut]=Et,ut!==J&&(it=-Ot*r[ut-1],r[ut-1]=wt*r[ut-1]);for(var mt=0;mt=this.s[J+1]);){var Lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Lt,JMath.abs(i)?(r=i/h,r=Math.abs(h)*Math.sqrt(1+r*r)):i!=0?(r=h/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},A.exports=v}),(function(A,G,N){var v=(function(){function r(a,f){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=u,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},h.emit=function(i,r){for(var a=0;a{var G={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}for(var u in f)e[u]=f[u];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),u=a(880),t=a(991),s=a(767),o=a(806),c=a(902),l=a(551).FDLayoutConstants,T=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,C=a(551).DimensionD,S=a(551).Layout,w=a(551).Integer,P=a(551).IGeometry,B=a(551).LGraph,U=a(551).Transform,V=a(551).LinkedList;function M(){f.call(this),this.toBeTiled={},this.constraints={}}M.prototype=Object.create(f.prototype);for(var _ in f)M[_]=f[_];M.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},M.prototype.newGraph=function(n){return new u(null,this.graphManager,n)},M.prototype.newNode=function(n){return new t(this.graphManager,n)},M.prototype.newEdge=function(n){return new s(null,null,n)},M.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},M.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},M.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},M.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return E.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},M.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},M.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(m.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var O=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(D){n.fixedNodesOnHorizontal.add(D),n.fixedNodesOnVertical.add(D)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*D.length/3;tt--)H=Math.floor(Math.random()*(tt+1)),k=D[tt],D[tt]=D[H],D[H]=k;return D},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(k)||(n.nodesInRelativeHorizontal.push(k),n.nodeToRelativeConstraintMapHorizontal.set(k,[]),n.dummyToNodeForVerticalAlignment.has(k)?n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(k).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:k,gap:D.gap}),n.nodeToRelativeConstraintMapHorizontal.get(k).push({left:H,gap:D.gap})}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;n.nodesInRelativeVertical.includes(tt)||(n.nodesInRelativeVertical.push(tt),n.nodeToRelativeConstraintMapVertical.set(tt,[]),n.dummyToNodeForHorizontalAlignment.has(tt)?n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(tt).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(tt).push({bottom:ht,gap:D.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:tt,gap:D.gap})}});else{var Q=new Map,z=new Map;this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;Q.has(H)?Q.get(H).push(k):Q.set(H,[k]),Q.has(k)?Q.get(k).push(H):Q.set(k,[H])}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;z.has(tt)?z.get(tt).push(ht):z.set(tt,[ht]),z.has(ht)?z.get(ht).push(tt):z.set(ht,[tt])}});var X=function(H,k){var tt=[],ht=[],J=new V,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){tt[Nt]=[],ht[Nt]=!1;var ut=it;for(J.push(ut),It.add(ut),tt[Nt].push(ut);J.length!=0;){ut=J.shift(),k.has(ut)&&(ht[Nt]=!0);var Et=H.get(ut);Et.forEach(function(wt){It.has(wt)||(J.push(wt),It.add(wt),tt[Nt].push(wt))})}Nt++}}),{components:tt,isFixed:ht}},rt=X(Q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var $=X(z,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},M.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var D=n.idToNodeMap.get($.nodeId);D.displacementX=0,D.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p1){var R;for(R=0;Rm&&(m=Math.floor(O.y)),I=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-O.x/2,T.WORLD_CENTER_Y-O.y/2))},M.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);M.branchRadialLayout(E,null,0,359,0,m);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var O=0;O1;){var k=H[0];H.splice(0,1);var tt=z.indexOf(k);tt>=0&&z.splice(tt,1),$--,X--}E!=null?D=(z.indexOf(H[0])+1)%$:D=0;for(var ht=Math.abs(m-p)/X,J=D;rt!=X;J=++J%$){var It=z[J].getOtherEnd(n);if(It!=E){var Nt=(p+rt*ht)%360,vt=(Nt+ht)%360;M.branchRadialLayout(It,n,Nt,vt,y+I,I),rt++}}},M.maxDiagonalInTree=function(n){for(var E=w.MIN_VALUE,p=0;pE&&(E=y)}return E},M.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},M.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y"u"&&(E[R]=[]),E[R]=E[R].concat(I)}Object.keys(E).forEach(function(W){if(E[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=E[W];var Q=E[W][0].getParent(),z=new t(n.graphManager);z.id=x,z.paddingLeft=Q.paddingLeft||0,z.paddingRight=Q.paddingRight||0,z.paddingBottom=Q.paddingBottom||0,z.paddingTop=Q.paddingTop||0,n.idToDummyNode[x]=z;var X=n.getGraphManager().add(n.newGraph(),z),rt=Q.getChild();rt.add(z);for(var $=0;$y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(I+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>I?(m.rect.y-=(m.labelHeight-I)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-I)/2):m.labelPosVertical=="bottom"&&m.setHeight(I+m.labelHeight))}})},M.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,I=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,I,O)}},M.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,I=m.paddingTop,O=m.labelMarginLeft,R=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,I,O,R)})},M.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y0)return this.toBeTiled[E]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},M.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;mQ&&(Q=X.rect.height)}p+=Q+n.verticalPadding}},M.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},M.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(m),O;return IR&&(R=$.getWidth())});var W=I/y,x=O/y,Q=Math.pow(p-m,2)+4*(W+m)*(x+p)*y,z=(m-p+Math.sqrt(Q))/(2*(W+m)),X;E?(X=Math.ceil(z),X==z&&X++):X=Math.floor(z);var rt=X*(W+m)-m;return R>rt&&(rt=R),rt+=m*2,rt},M.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};I&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(D){return D.rect.width*D.rect.height},W=function(D,H){return R(H)-R(D)};n.sort(function($,D){var H=W;return O.idealRowWidth?(H=I,H($.id,D.id)):H($,D)});for(var x=0,Q=0,z=0;z0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(E)},M.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;mp&&(E=m,p=n.rowWidth[m]);return E},M.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var O=n.rowWidth[I];if(O+n.horizontalPadding+E<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-O>=E+n.horizontalPadding?W=(n.height+R)/(O+E+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.widthI&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,R=0;RO&&(O=m[R].height);E>0&&(O+=n.verticalPadding);var W=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]0)for(var rt=y;rt<=I;rt++)X[0]+=this.grid[rt][O-1].length+this.grid[rt][O].length-1;if(I0)for(var rt=O;rt<=R;rt++)X[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var $=w.MAX_VALUE,D,H,k=0;k{var f=a(551).FDLayoutNode,e=a(551).IMath;function u(s,o,c,l){f.call(this,s,o,c,l)}u.prototype=Object.create(f.prototype);for(var t in f)u[t]=f[t];u.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},u.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){Z=="horizontal"?(et.set(st,g.has(st)?d[g.get(st)]:q.get(st)),Lt+=et.get(st)):(et.set(st,g.has(st)?C[g.get(st)]:q.get(st)),Lt+=et.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){K.has(st)||et.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){Z=="horizontal"?ft+=g.has(st)?d[g.get(st)]:q.get(st):ft+=g.has(st)?C[g.get(st)]:q.get(st)}),ft=ft/lt.length,lt.forEach(function(st){et.set(st,ft)})}});for(var At=function(){var ot=dt.shift(),Lt=Y.get(ot);Lt.forEach(function(ft){if(et.get(ft.id)st&&(st=kt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var fe=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),ne;!(Qt=(ne=Jt.next()).done);Qt=!0){var te=ne.value;et.set(te,et.get(te)+fe)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return et},_=function(Y){var Z=0,K=0,q=0,at=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?Z++:K++:C[g.get(j.top)]-C[g.get(j.bottom)]>=0?q++:at++}),Z>K&&q>at)for(var ct=0;ctK)for(var nt=0;ntat)for(var et=0;et1)l.fixedNodeConstraint.forEach(function(F,Y){m[Y]=[F.position.x,F.position.y],y[Y]=[d[g.get(F.nodeId)],C[g.get(F.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var F=0;if(l.alignmentConstraint.vertical){for(var Y=l.alignmentConstraint.vertical,Z=function(et){var j=new Set;Y[et].forEach(function(pt){j.add(pt)});var dt=new Set([].concat(f(j)).filter(function(pt){return R.has(pt)})),At=void 0;dt.size>0?At=d[g.get(dt.values().next().value)]:At=V(j).x,Y[et].forEach(function(pt){m[F]=[At,C[g.get(pt)]],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},K=0;K0?At=d[g.get(dt.values().next().value)]:At=V(j).y,q[et].forEach(function(pt){m[F]=[d[g.get(pt)],At],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},ct=0;ctz&&(z=Q[rt].length,X=rt);if(z0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(F,Y){var Z={x:d[g.get(F.nodeId)],y:C[g.get(F.nodeId)]},K=F.position,q=U(K,Z);mt.x+=q.x,mt.y+=q.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(F,Y){d[Y]+=mt.x}),C.forEach(function(F,Y){C[Y]+=mt.y}),l.fixedNodeConstraint.forEach(function(F){d[g.get(F.nodeId)]=F.position.x,C[g.get(F.nodeId)]=F.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(Y){var Z=new Set;Dt[Y].forEach(function(at){Z.add(at)});var K=new Set([].concat(f(Z)).filter(function(at){return R.has(at)})),q=void 0;K.size>0?q=d[g.get(K.values().next().value)]:q=V(Z).x,Z.forEach(function(at){R.has(at)||(d[g.get(at)]=q)})},Ht=0;Ht0?q=C[g.get(K.values().next().value)]:q=V(Z).y,Z.forEach(function(at){R.has(at)||(C[g.get(at)]=q)})},Ft=0;Ft{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(45);return h})()})})(he)),he.exports}var pr=se.exports,De;function yr(){return De||(De=1,(function(L,b){(function(G,N){L.exports=N(vr())})(pr,function(A){return(()=>{var G={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e{var f=(function(){function t(s,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=s[Symbol.iterator](),C;!(l=(C=d.next()).done)&&(c.push(C.value),!(o&&c.length===o));l=!0);}catch(S){T=!0,g=S}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,u={};u.getTopMostNodes=function(t){for(var s={},o=0;o0&&I.merge(x)});for(var O=0;O1){C=g[0],S=C.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),B),U},u.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,C=!1,S=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),P;!(d=(P=w.next()).done);d=!0){var B=P.value,U=f(B,2),V=U[0],M=U[1],_=o.cy.getElementById(V);if(_){var n=_.boundingBox(),E=s.xCoords[M]-n.w/2,p=s.xCoords[M]+n.w/2,m=s.yCoords[M]-n.h/2,y=s.yCoords[M]+n.h/2;El&&(l=p),mg&&(g=y)}}}catch(x){C=!0,S=x}finally{try{!d&&w.return&&w.return()}finally{if(C)throw S}}var I=t.x-(l+c)/2,O=t.y-(g+T)/2;s.xCoords=s.xCoords.map(function(x){return x+I}),s.yCoords=s.yCoords.map(function(x){return x+O})}else{Object.keys(s).forEach(function(x){var Q=s[x],z=Q.getRect().x,X=Q.getRect().x+Q.getRect().width,rt=Q.getRect().y,$=Q.getRect().y+Q.getRect().height;zl&&(l=X),rtg&&(g=$)});var R=t.x-(l+c)/2,W=t.y-(g+T)/2;Object.keys(s).forEach(function(x){var Q=s[x];Q.setCenter(Q.getCenterX()+R,Q.getCenterY()+W)})}}},u.calcBoundingBox=function(t,s,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,C=void 0,S=void 0,w=void 0,P=void 0,B=t.descendants().not(":parent"),U=B.length,V=0;VC&&(l=C),Tw&&(g=w),d{var f=a(548),e=a(140).CoSELayout,u=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,l=a(140).CoSEConstants,T=function(d,C){var S=d.cy,w=d.eles,P=w.nodes(),B=w.edges(),U=void 0,V=void 0,M=void 0,_={};d.randomize&&(U=C.nodeIndexes,V=C.xCoords,M=C.yCoords);var n=function(x){return typeof x=="function"},E=function(x,Q){return n(x)?x(Q):x},p=f.calcParentsWithoutChildren(S,w),m=function W(x,Q,z,X){for(var rt=Q.length,$=0;$0){var J=void 0;J=z.getGraphManager().add(z.newGraph(),k),W(J,H,z,X)}}},y=function(x,Q,z){for(var X=0,rt=0,$=0;$0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/rt:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,Q){Q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(x.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,R=O.newGraphManager();return m(R.addRoot(),f.getTopMostNodes(P),O,d),y(O,R,B),I(O,d),O.runLayout(),_};i.exports={coseLayout:T}}),212:((i,r,a)=>{var f=(function(){function d(C,S){for(var w=0;w0)if(p){var I=t.getTopMostNodes(w.eles.nodes());if(M=t.connectComponents(P,w.eles,I),M.forEach(function(vt){var it=vt.boundingBox();_.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),w.randomize&&M.forEach(function(vt){w.eles=vt,U.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=P.collection();if(w.tile){var R=new Map,W=[],x=[],Q=0,z={nodeIndexes:R,xCoords:W,yCoords:x},X=[];if(M.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Et){O.merge(vt.nodes()[Et]),ut.isParent()||(z.nodeIndexes.set(vt.nodes()[Et].id(),Q++),z.xCoords.push(vt.nodes()[0].position().x),z.yCoords.push(vt.nodes()[0].position().y))}),X.push(it))}),O.length>1){var rt=O.boundingBox();_.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),M.push(O),U.push(z);for(var $=X.length-1;$>=0;$--)M.splice(X[$],1),U.splice(X[$],1),_.splice(X[$],1)}}M.forEach(function(vt,it){w.eles=vt,V.push(l(w,U[it])),t.relocateComponent(_[it],V[it],w)})}else M.forEach(function(vt,it){t.relocateComponent(_[it],U[it],w)});var D=new Set;if(M.length>1){var H=[],k=B.filter(function(vt){return vt.css("display")=="none"});M.forEach(function(vt,it){var ut=void 0;if(w.quality=="draft"&&(ut=U[it].nodeIndexes),vt.nodes().not(k).length>0){var Et={};Et.edges=[],Et.nodes=[];var wt=void 0;vt.nodes().not(k).forEach(function(Ot){if(w.quality=="draft")if(!Ot.isParent())wt=ut.get(Ot.id()),Et.nodes.push({x:U[it].xCoords[wt]-Ot.boundingbox().w/2,y:U[it].yCoords[wt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var mt=t.calcBoundingBox(Ot,U[it].xCoords,U[it].yCoords,ut);Et.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else V[it][Ot.id()]&&Et.nodes.push({x:V[it][Ot.id()].getLeft(),y:V[it][Ot.id()].getTop(),width:V[it][Ot.id()].getWidth(),height:V[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var mt=Ot.source(),Dt=Ot.target();if(mt.css("display")!="none"&&Dt.css("display")!="none")if(w.quality=="draft"){var Rt=ut.get(mt.id()),Ht=ut.get(Dt.id()),Ut=[],Pt=[];if(mt.isParent()){var Ft=t.calcBoundingBox(mt,U[it].xCoords,U[it].yCoords,ut);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(U[it].xCoords[Rt]),Ut.push(U[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,U[it].xCoords,U[it].yCoords,ut);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(U[it].xCoords[Ht]),Pt.push(U[it].yCoords[Ht]);Et.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else V[it][mt.id()]&&V[it][Dt.id()]&&Et.edges.push({startX:V[it][mt.id()].getCenterX(),startY:V[it][mt.id()].getCenterY(),endX:V[it][Dt.id()].getCenterX(),endY:V[it][Dt.id()].getCenterY()})}),Et.nodes.length>0&&(H.push(Et),D.add(it))}});var tt=E.packComponents(H,w.randomize).shifts;if(w.quality=="draft")U.forEach(function(vt,it){var ut=vt.xCoords.map(function(wt){return wt+tt[it].dx}),Et=vt.yCoords.map(function(wt){return wt+tt[it].dy});vt.xCoords=ut,vt.yCoords=Et});else{var ht=0;D.forEach(function(vt){Object.keys(V[vt]).forEach(function(it){var ut=V[vt][it];ut.setCenter(ut.getCenterX()+tt[ht].dx,ut.getCenterY()+tt[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(_.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);U.push(y)}w.quality=="default"||w.quality=="proof"?(V.push(l(w,U[0])),t.relocateComponent(_[0],V[0],w)):t.relocateComponent(_[0],U[0],w)}var J=function(it,ut){if(w.quality=="default"||w.quality=="proof"){typeof it=="number"&&(it=ut);var Et=void 0,wt=void 0,Ot=it.data("id");return V.forEach(function(Dt){Ot in Dt&&(Et={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},wt=Dt[Ot])}),w.nodeDimensionsIncludeLabels&&(wt.labelWidth&&(wt.labelPosHorizontal=="left"?Et.x+=wt.labelWidth/2:wt.labelPosHorizontal=="right"&&(Et.x-=wt.labelWidth/2)),wt.labelHeight&&(wt.labelPosVertical=="top"?Et.y+=wt.labelHeight/2:wt.labelPosVertical=="bottom"&&(Et.y-=wt.labelHeight/2))),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}else{var mt=void 0;return U.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(mt={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(w.quality=="default"||w.quality=="proof"||w.randomize){var It=t.calcParentsWithoutChildren(P,B),Nt=B.filter(function(vt){return vt.css("display")=="none"});w.eles=B.not(Nt),B.nodes().not(":parent").not(Nt).layoutPositions(S,w,J),It.length>0&&It.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,u=a(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,C=new Map,S=new Map,w=[],P=[],B=[],U=[],V=[],M=[],_=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,I=o.samplingType,O=o.nodeSeparation,R=void 0,W=function(){for(var Y=0,Z=0,K=!1;Z=at;){nt=q[at++];for(var xt=w[nt],lt=0;ltdt&&(dt=V[Lt],At=Lt)}return At},Q=function(Y){var Z=void 0;if(Y){Z=Math.floor(Math.random()*E);for(var q=0;q=1)break;j=et}for(var pt=0;pt=1)break;j=et}for(var lt=0;lt0&&(Z.isParent()?w[Y].push(S.get(Z.id())):w[Y].push(Z.id()))})});var Nt=function(Y){var Z=C.get(Y),K=void 0;d.get(Y).forEach(function(q){c.getElementById(q).isParent()?K=S.get(q):K=q,w[Z].push(K),w[C.get(K)].push(Y)})},vt=!0,it=!1,ut=void 0;try{for(var Et=d.keys()[Symbol.iterator](),wt;!(vt=(wt=Et.next()).done);vt=!0){var Ot=wt.value;Nt(Ot)}}catch(F){it=!0,ut=F}finally{try{!vt&&Et.return&&Et.return()}finally{if(it)throw ut}}E=C.size;var mt=void 0;if(E>2){R=E{var f=a(212),e=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(579);return h})()})})(se)),se.exports}var mr=yr();const Er=cr(mr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:gt(L=>`${L},${L/2} 0,${L} 0,0`,"L"),R:gt(L=>`0,${L/2} ${L},0 ${L},${L}`,"R"),T:gt(L=>`0,0 ${L},0 ${L/2},${L}`,"T"),B:gt(L=>`${L/2},0 ${L},${L} 0,${L}`,"B")},oe={L:gt((L,b)=>L-b+2,"L"),R:gt((L,b)=>L-2,"R"),T:gt((L,b)=>L-b+2,"T"),B:gt((L,b)=>L-2,"B")},Tr=gt(function(L){return Wt(L)?L==="L"?"R":"L":L==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=gt(function(L){const b=L;return b==="L"||b==="R"||b==="T"||b==="B"},"isArchitectureDirection"),Wt=gt(function(L){const b=L;return b==="L"||b==="R"},"isArchitectureDirectionX"),qt=gt(function(L){const b=L;return b==="T"||b==="B"},"isArchitectureDirectionY"),Te=gt(function(L,b){const A=Wt(L)&&qt(b),G=qt(L)&&Wt(b);return A||G},"isArchitectureDirectionXY"),Nr=gt(function(L){const b=L[0],A=L[1],G=Wt(b)&&qt(A),N=qt(b)&&Wt(A);return G||N},"isArchitecturePairXY"),Lr=gt(function(L){return L!=="LL"&&L!=="RR"&&L!=="TT"&&L!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(L,b){const A=`${L}${b}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=gt(function([L,b],A){const G=A[0],N=A[1];return Wt(G)?qt(N)?[L+(G==="L"?-1:1),b+(N==="T"?1:-1)]:[L+(G==="L"?-1:1),b]:Wt(N)?[L+(N==="L"?1:-1),b+(G==="T"?1:-1)]:[L,b+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=gt(function(L){return L==="LT"||L==="TL"?[1,1]:L==="BL"||L==="LB"?[1,-1]:L==="BR"||L==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Ar=gt(function(L,b){return Te(L,b)?"bend":Wt(L)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Mr=gt(function(L){return L.type==="service"},"isArchitectureService"),Or=gt(function(L){return L.type==="junction"},"isArchitectureJunction"),be=gt(L=>L.data(),"edgeData"),ie=gt(L=>L.data(),"nodeData"),Dr=ar.architecture,Pe=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}static{gt(this,"ArchitectureDB")}setDiagramId(L){this.diagramId=L}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",er()}addService({id:L,icon:b,in:A,title:G,iconText:N}){if(this.registeredIds[L]!==void 0)throw new Error(`The service id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The service [${L}] cannot be placed within itself`);if(this.registeredIds[A]===void 0)throw new Error(`The service [${L}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[A]==="node")throw new Error(`The service [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"service",icon:b,iconText:N,title:G,edges:[],in:A}}getServices(){return Object.values(this.nodes).filter(Mr)}addJunction({id:L,in:b}){if(this.registeredIds[L]!==void 0)throw new Error(`The junction id [${L}] is already in use by another ${this.registeredIds[L]}`);if(b!==void 0){if(L===b)throw new Error(`The junction [${L}] cannot be placed within itself`);if(this.registeredIds[b]===void 0)throw new Error(`The junction [${L}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[b]==="node")throw new Error(`The junction [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"junction",edges:[],in:b}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(L){return this.nodes[L]??null}addGroup({id:L,icon:b,in:A,title:G}){if(this.registeredIds?.[L]!==void 0)throw new Error(`The group id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The group [${L}] cannot be placed within itself`);if(this.registeredIds?.[A]===void 0)throw new Error(`The group [${L}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[A]==="node")throw new Error(`The group [${L}]'s parent is not a group`)}this.registeredIds[L]="group",this.groups[L]={id:L,icon:b,title:G,in:A}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:L,rhsId:b,lhsDir:A,rhsDir:G,lhsInto:N,rhsInto:v,lhsGroup:h,rhsGroup:i,title:r}){if(!Re(A))throw new Error(`Invalid direction given for left hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(A)}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(G)}`);if(this.nodes[L]===void 0&&this.groups[L]===void 0)throw new Error(`The left-hand id [${L}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[b]===void 0&&this.groups[b]===void 0)throw new Error(`The right-hand id [${b}] does not yet exist. Please create the service/group before declaring an edge to it.`);const a=this.nodes[L].in,f=this.nodes[b].in;if(h&&a&&f&&a==f)throw new Error(`The left-hand id [${L}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&a&&f&&a==f)throw new Error(`The right-hand id [${b}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const e={lhsId:L,lhsDir:A,lhsInto:N,lhsGroup:h,rhsId:b,rhsDir:G,rhsInto:v,rhsGroup:i,title:r};this.edges.push(e),this.nodes[L]&&this.nodes[b]&&(this.nodes[L].edges.push(this.edges[this.edges.length-1]),this.nodes[b].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(L){if(L.members.length<2)throw new Error(`An align directive requires at least two members; got ${L.members.length}`);const b=new Set;L.members.forEach(A=>{if(this.registeredIds[A]!=="node")throw new Error(`align ${L.direction} references [${A}], which is not a service or junction`);if(b.has(A))throw new Error(`align ${L.direction} lists [${A}] more than once`);b.add(A)}),this.layoutHints.push(L)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const L={},b=Object.entries(this.nodes).reduce((i,[r,a])=>(i[r]=a.edges.reduce((f,e)=>{const u=this.getNode(e.lhsId)?.in,t=this.getNode(e.rhsId)?.in;if(u&&t&&u!==t){const s=Ar(e.lhsDir,e.rhsDir);s!=="bend"&&(L[u]??={},L[u][t]=s,L[t]??={},L[t][u]=s)}if(e.lhsId===r){const s=pe(e.lhsDir,e.rhsDir);s&&(f[s]=e.rhsId)}else{const s=pe(e.rhsDir,e.lhsDir);s&&(f[s]=e.lhsId)}return f},{}),i),{}),A=Object.keys(b)[0],G={[A]:1},N=Object.keys(b).reduce((i,r)=>r===A?i:{...i,[r]:1},{}),v=gt(i=>{const r={[i]:[0,0]},a=[i];for(;a.length>0;){const f=a.shift();if(f){G[f]=1,delete N[f];const e=b[f],[u,t]=r[f];Object.entries(e).forEach(([s,o])=>{G[o]||(r[o]=Cr([u,t],s),a.push(o))})}}return r},"BFS"),h=[v(A)];for(;Object.keys(N).length>0;)h.push(v(Object.keys(N)[0]));this.dataStructures={adjList:b,spatialMaps:h,groupAlignments:L}}return this.dataStructures}setElementForId(L,b){this.elements[L]=b}getElementById(L){return this.elements[L]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(L){return this.getConfig()[L]}},xr=gt((L,b)=>{ke(L,b),L.groups.map(A=>b.addGroup(A)),L.services.map(A=>b.addService({...A,type:"service"})),L.junctions.map(A=>b.addJunction({...A,type:"junction"})),L.edges.map(A=>b.addEdge(A)),L.alignments?.map(A=>b.addLayoutHint({direction:A.direction,members:[...A.members]}))},"populateDb"),Ge={parser:{yy:void 0},parse:gt(async L=>{const b=await fr("architecture",L);Se.debug(b);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(b,A)},"parse")},Ir=gt(L=>` +import{p as ke}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as gt,F as Ze,ad as qe,l as Se,b as Qe,a as Je,o as Ke,p as je,g as _e,s as tr,q as er,B as rr,z as ir,D as ar,c as me,a$ as Ee,ai as ve,i as nr,d as or,r as sr,aj as hr,b7 as lr}from"./mermaid.core-DaDTfY6S.js";import{p as fr}from"./cynefin-VYW2F7L2-0NmB13eq.js";import{c as Fe}from"./cytoscape.esm-OyMbaexL.js";import{g as cr}from"./_commonjsHelpers-CqkleIqs.js";import"./index-D1h84VfZ.js";var se={exports:{}},he={exports:{}},le={exports:{}},gr=le.exports,Me;function ur(){return Me||(Me=1,(function(L,b){(function(G,N){L.exports=N()})(gr,function(){return(function(A){var G={};function N(v){if(G[v])return G[v].exports;var h=G[v]={i:v,l:!1,exports:{}};return A[v].call(h.exports,h,h.exports,N),h.l=!0,h.exports}return N.m=A,N.c=G,N.i=function(v){return v},N.d=function(v,h,i){N.o(v,h)||Object.defineProperty(v,h,{configurable:!1,enumerable:!0,get:i})},N.n=function(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return N.d(h,"a",h),h},N.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)},N.p="",N(N.s=28)})([(function(A,G,N){function v(){}v.QUALITY=1,v.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,v.DEFAULT_INCREMENTAL=!1,v.DEFAULT_ANIMATION_ON_LAYOUT=!0,v.DEFAULT_ANIMATION_DURING_LAYOUT=!1,v.DEFAULT_ANIMATION_PERIOD=50,v.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,v.DEFAULT_GRAPH_MARGIN=15,v.NODE_DIMENSIONS_INCLUDE_LABELS=!1,v.SIMPLE_NODE_SIZE=40,v.SIMPLE_NODE_HALF_SIZE=v.SIMPLE_NODE_SIZE/2,v.EMPTY_COMPOUND_NODE_SIZE=40,v.MIN_EDGE_LENGTH=1,v.WORLD_BOUNDARY=1e6,v.INITIAL_WORLD_BOUNDARY=v.WORLD_BOUNDARY/1e3,v.WORLD_CENTER_X=1200,v.WORLD_CENTER_Y=900,A.exports=v}),(function(A,G,N){var v=N(2),h=N(8),i=N(9);function r(f,e,u){v.call(this,u),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=u,this.bendpoints=[],this.source=f,this.target=e}r.prototype=Object.create(v.prototype);for(var a in v)r[a]=v[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,e){for(var u=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(u.getOwner()==e)return u;if(u.getOwner()==t)break;u=u.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=h.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=r}),(function(A,G,N){function v(h){this.vGraphObject=h}A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(13),r=N(0),a=N(16),f=N(5);function e(t,s,o,c){o==null&&c==null&&(c=s),v.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=h.MIN_VALUE,this.inclusionTreeDepth=h.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&s!=null?this.rect=new i(s.x,s.y,o.width,o.height):this.rect=new i}e.prototype=Object.create(v.prototype);for(var u in v)e[u]=v[u];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(t){this.rect.width=t},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(t){this.rect.height=t},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(t,s){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=s.width,this.rect.height=s.height},e.prototype.setCenter=function(t,s){this.rect.x=t-this.rect.width/2,this.rect.y=s-this.rect.height/2},e.prototype.setLocation=function(t,s){this.rect.x=t,this.rect.y=s},e.prototype.moveBy=function(t,s){this.rect.x+=t,this.rect.y+=s},e.prototype.getEdgeListToNode=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";s.push(c)}}),s},e.prototype.getEdgesBetween=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&s.push(c)}),s},e.prototype.getNeighborsList=function(){var t=new Set,s=this;return s.edges.forEach(function(o){if(o.source==s)t.add(o.target);else{if(o.target!=s)throw"Incorrect incidency!";t.add(o.source)}}),t},e.prototype.withChildren=function(){var t=new Set,s,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;ls?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=e}),(function(A,G,N){var v=N(0);function h(){}for(var i in v)h[i]=v[i];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,G,N){function v(h,i){h==null&&i==null?(this.x=0,this.y=0):(this.x=h,this.y=i)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(h){this.x=h},v.prototype.setY=function(h){this.y=h},v.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=v}),(function(A,G,N){var v=N(2),h=N(10),i=N(0),r=N(7),a=N(3),f=N(1),e=N(13),u=N(12),t=N(11);function s(c,l,T){v.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}s.prototype=Object.create(v.prototype);for(var o in v)s[o]=v[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},s.prototype.remove=function(c){var l=c;if(c instanceof a){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,C=0;C-1&&P>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(w,1),g.target!=g.source&&g.target.edges.splice(P,1);var S=g.source.owner.getEdges().indexOf(g);if(S==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(S,1)}},s.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,g,d,C=this.getNodes(),S=C.length,w=0;wT&&(c=T),l>g&&(l=g)}return c==h.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?d=C[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new u(this.left,this.top))},s.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,g=h.MAX_VALUE,d=-h.MAX_VALUE,C,S,w,P,B,U=this.nodes,V=U.length,M=0;MC&&(l=C),Tw&&(g=w),dC&&(l=C),Tw&&(g=w),d=this.nodes.length){var V=0;T.forEach(function(M){M.owner==c&&V++}),V==this.nodes.length&&(this.isConnected=!0)}},A.exports=s}),(function(A,G,N){var v,h=N(1);function i(r){v=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,u){if(f==null&&e==null&&u==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{u=f,e=a,f=r;var t=e.getOwner(),s=u.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,u);if(f.isInterGraph=!0,f.source=e,f.target=u,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof v){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,u=f.length,t=0;t=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var u=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(u=1);var t=u*a[0],s=a[1]/u;a[0]t)return a[0]=f,a[1]=o,a[2]=u,a[3]=U,!1;if(eu)return a[0]=s,a[1]=e,a[2]=P,a[3]=t,!1;if(fu?(a[0]=l,a[1]=T,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>u?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=T,n=!0)),-m===y?u>f?(a[2]=B,a[3]=U,E=!0):(a[2]=P,a[3]=w,E=!0):m===y&&(u>f?(a[2]=S,a[3]=w,E=!0):(a[2]=V,a[3]=U,E=!0)),n&&E)return!1;if(f>u?e>t?(I=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(I=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(I=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(I=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(I){case 1:W=o,R=f+-C/y,a[0]=R,a[1]=W;break;case 2:R=g,W=e+d*y,a[0]=R,a[1]=W;break;case 3:W=T,R=f+C/y,a[0]=R,a[1]=W;break;case 4:R=l,W=e+-d*y,a[0]=R,a[1]=W;break}if(!E)switch(O){case 1:Q=w,x=u+-_/y,a[2]=x,a[3]=Q;break;case 2:x=V,Q=t+M*y,a[2]=x,a[3]=Q;break;case 3:Q=U,x=u+_/y,a[2]=x,a[3]=Q;break;case 4:x=B,Q=t+-M*y,a[2]=x,a[3]=Q;break}}return!1},h.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},h.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,u=i.y,t=r.x,s=r.y,o=a.x,c=a.y,l=f.x,T=f.y,g=void 0,d=void 0,C=void 0,S=void 0,w=void 0,P=void 0,B=void 0,U=void 0,V=void 0;return C=s-u,w=e-t,B=t*u-e*s,S=T-c,P=o-l,U=l*c-o*T,V=C*P-S*w,V===0?null:(g=(w*U-P*B)/V,d=(S*B-C*U)/V,new v(g,d))},h.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a=0){var T=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,G,N){function v(){}v.sign=function(h){return h>0?1:h<0?-1:0},v.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},v.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=v}),(function(A,G,N){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,A.exports=v}),(function(A,G,N){var v=(function(){function e(u,t){for(var s=0;s"u"?"undefined":v(i);return i==null||r!="object"&&r!="function"},A.exports=h}),(function(A,G,N){function v(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(C.push(w[0]);C.length>0&&c;){var P=C[0];C.splice(0,1),d.add(P);for(var B=P.getEdges(),g=0;g-1&&w.splice(_,1)}d=new Set,S=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(U,1);var V=S.getNeighborsList();V.forEach(function(n){if(l.indexOf(n)<0){var E=T.get(n),p=E-1;p==1&&P.push(n),T.set(n,p)}})}l=l.concat(P),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},A.exports=s}),(function(A,G,N){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},A.exports=v}),(function(A,G,N){var v=N(5);function h(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(i){this.lworldExtX=i},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(i){this.lworldExtY=i},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},h.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},h.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},h.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},h.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},h.prototype.inverseTransformPoint=function(i){var r=new v(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},A.exports=h}),(function(A,G,N){function v(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);si.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oC||d>C)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(C=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>C||d>C)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||C>=g[0].length)){for(var S=0;Se}}]),a})();A.exports=r}),(function(A,G,N){function v(){}v.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var i=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),a=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),u=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;m--)if(this.s[m]!==0){for(var y=m+1;y=0;z--){if((function(Tt,Ct){return Tt&&Ct})(z0;){var J=void 0,It=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=J&&Nt!==J;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==J+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+tt*vt){this.s[Nt]=0;break}}Nt===J?It=3:Nt===n-1?It=1:(It=2,J=Nt)}switch(J++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Et=v.hypot(this.s[ut],it),wt=this.s[ut]/Et,Ot=it/Et;this.s[ut]=Et,ut!==J&&(it=-Ot*r[ut-1],r[ut-1]=wt*r[ut-1]);for(var mt=0;mt=this.s[J+1]);){var Lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Lt,JMath.abs(i)?(r=i/h,r=Math.abs(h)*Math.sqrt(1+r*r)):i!=0?(r=h/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},A.exports=v}),(function(A,G,N){var v=(function(){function r(a,f){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=u,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},h.emit=function(i,r){for(var a=0;a{var G={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}for(var u in f)e[u]=f[u];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}e.prototype=Object.create(f.prototype);for(var u in f)e[u]=f[u];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),u=a(880),t=a(991),s=a(767),o=a(806),c=a(902),l=a(551).FDLayoutConstants,T=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,C=a(551).DimensionD,S=a(551).Layout,w=a(551).Integer,P=a(551).IGeometry,B=a(551).LGraph,U=a(551).Transform,V=a(551).LinkedList;function M(){f.call(this),this.toBeTiled={},this.constraints={}}M.prototype=Object.create(f.prototype);for(var _ in f)M[_]=f[_];M.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},M.prototype.newGraph=function(n){return new u(null,this.graphManager,n)},M.prototype.newNode=function(n){return new t(this.graphManager,n)},M.prototype.newEdge=function(n){return new s(null,null,n)},M.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},M.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},M.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},M.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return E.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},M.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},M.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(m.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var O=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(D){n.fixedNodesOnHorizontal.add(D),n.fixedNodesOnVertical.add(D)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*D.length/3;tt--)H=Math.floor(Math.random()*(tt+1)),k=D[tt],D[tt]=D[H],D[H]=k;return D},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(k)||(n.nodesInRelativeHorizontal.push(k),n.nodeToRelativeConstraintMapHorizontal.set(k,[]),n.dummyToNodeForVerticalAlignment.has(k)?n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(k,n.idToNodeMap.get(k).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:k,gap:D.gap}),n.nodeToRelativeConstraintMapHorizontal.get(k).push({left:H,gap:D.gap})}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;n.nodesInRelativeVertical.includes(tt)||(n.nodesInRelativeVertical.push(tt),n.nodeToRelativeConstraintMapVertical.set(tt,[]),n.dummyToNodeForHorizontalAlignment.has(tt)?n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(tt).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(tt).push({bottom:ht,gap:D.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:tt,gap:D.gap})}});else{var Q=new Map,z=new Map;this.constraints.relativePlacementConstraint.forEach(function(D){if(D.left){var H=O.has(D.left)?O.get(D.left):D.left,k=O.has(D.right)?O.get(D.right):D.right;Q.has(H)?Q.get(H).push(k):Q.set(H,[k]),Q.has(k)?Q.get(k).push(H):Q.set(k,[H])}else{var tt=R.has(D.top)?R.get(D.top):D.top,ht=R.has(D.bottom)?R.get(D.bottom):D.bottom;z.has(tt)?z.get(tt).push(ht):z.set(tt,[ht]),z.has(ht)?z.get(ht).push(tt):z.set(ht,[tt])}});var X=function(H,k){var tt=[],ht=[],J=new V,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){tt[Nt]=[],ht[Nt]=!1;var ut=it;for(J.push(ut),It.add(ut),tt[Nt].push(ut);J.length!=0;){ut=J.shift(),k.has(ut)&&(ht[Nt]=!0);var Et=H.get(ut);Et.forEach(function(wt){It.has(wt)||(J.push(wt),It.add(wt),tt[Nt].push(wt))})}Nt++}}),{components:tt,isFixed:ht}},rt=X(Q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var $=X(z,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},M.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var D=n.idToNodeMap.get($.nodeId);D.displacementX=0,D.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p1){var R;for(R=0;Rm&&(m=Math.floor(O.y)),I=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-O.x/2,T.WORLD_CENTER_Y-O.y/2))},M.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);M.branchRadialLayout(E,null,0,359,0,m);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var O=0;O1;){var k=H[0];H.splice(0,1);var tt=z.indexOf(k);tt>=0&&z.splice(tt,1),$--,X--}E!=null?D=(z.indexOf(H[0])+1)%$:D=0;for(var ht=Math.abs(m-p)/X,J=D;rt!=X;J=++J%$){var It=z[J].getOtherEnd(n);if(It!=E){var Nt=(p+rt*ht)%360,vt=(Nt+ht)%360;M.branchRadialLayout(It,n,Nt,vt,y+I,I),rt++}}},M.maxDiagonalInTree=function(n){for(var E=w.MIN_VALUE,p=0;pE&&(E=y)}return E},M.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},M.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y"u"&&(E[R]=[]),E[R]=E[R].concat(I)}Object.keys(E).forEach(function(W){if(E[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=E[W];var Q=E[W][0].getParent(),z=new t(n.graphManager);z.id=x,z.paddingLeft=Q.paddingLeft||0,z.paddingRight=Q.paddingRight||0,z.paddingBottom=Q.paddingBottom||0,z.paddingTop=Q.paddingTop||0,n.idToDummyNode[x]=z;var X=n.getGraphManager().add(n.newGraph(),z),rt=Q.getChild();rt.add(z);for(var $=0;$y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(I+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>I?(m.rect.y-=(m.labelHeight-I)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-I)/2):m.labelPosVertical=="bottom"&&m.setHeight(I+m.labelHeight))}})},M.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,I=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,I,O)}},M.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,I=m.paddingTop,O=m.labelMarginLeft,R=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,I,O,R)})},M.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y0)return this.toBeTiled[E]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},M.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;mQ&&(Q=X.rect.height)}p+=Q+n.verticalPadding}},M.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},M.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(m),O;return IR&&(R=$.getWidth())});var W=I/y,x=O/y,Q=Math.pow(p-m,2)+4*(W+m)*(x+p)*y,z=(m-p+Math.sqrt(Q))/(2*(W+m)),X;E?(X=Math.ceil(z),X==z&&X++):X=Math.floor(z);var rt=X*(W+m)-m;return R>rt&&(rt=R),rt+=m*2,rt},M.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};I&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(D){return D.rect.width*D.rect.height},W=function(D,H){return R(H)-R(D)};n.sort(function($,D){var H=W;return O.idealRowWidth?(H=I,H($.id,D.id)):H($,D)});for(var x=0,Q=0,z=0;z0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(E)},M.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;mp&&(E=m,p=n.rowWidth[m]);return E},M.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var O=n.rowWidth[I];if(O+n.horizontalPadding+E<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-O>=E+n.horizontalPadding?W=(n.height+R)/(O+E+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.widthI&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,R=0;RO&&(O=m[R].height);E>0&&(O+=n.verticalPadding);var W=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]0)for(var rt=y;rt<=I;rt++)X[0]+=this.grid[rt][O-1].length+this.grid[rt][O].length-1;if(I0)for(var rt=O;rt<=R;rt++)X[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var $=w.MAX_VALUE,D,H,k=0;k{var f=a(551).FDLayoutNode,e=a(551).IMath;function u(s,o,c,l){f.call(this,s,o,c,l)}u.prototype=Object.create(f.prototype);for(var t in f)u[t]=f[t];u.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},u.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){Z=="horizontal"?(et.set(st,g.has(st)?d[g.get(st)]:q.get(st)),Lt+=et.get(st)):(et.set(st,g.has(st)?C[g.get(st)]:q.get(st)),Lt+=et.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){K.has(st)||et.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){Z=="horizontal"?ft+=g.has(st)?d[g.get(st)]:q.get(st):ft+=g.has(st)?C[g.get(st)]:q.get(st)}),ft=ft/lt.length,lt.forEach(function(st){et.set(st,ft)})}});for(var At=function(){var ot=dt.shift(),Lt=Y.get(ot);Lt.forEach(function(ft){if(et.get(ft.id)st&&(st=kt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var fe=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),ne;!(Qt=(ne=Jt.next()).done);Qt=!0){var te=ne.value;et.set(te,et.get(te)+fe)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return et},_=function(Y){var Z=0,K=0,q=0,at=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?Z++:K++:C[g.get(j.top)]-C[g.get(j.bottom)]>=0?q++:at++}),Z>K&&q>at)for(var ct=0;ctK)for(var nt=0;ntat)for(var et=0;et1)l.fixedNodeConstraint.forEach(function(F,Y){m[Y]=[F.position.x,F.position.y],y[Y]=[d[g.get(F.nodeId)],C[g.get(F.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var F=0;if(l.alignmentConstraint.vertical){for(var Y=l.alignmentConstraint.vertical,Z=function(et){var j=new Set;Y[et].forEach(function(pt){j.add(pt)});var dt=new Set([].concat(f(j)).filter(function(pt){return R.has(pt)})),At=void 0;dt.size>0?At=d[g.get(dt.values().next().value)]:At=V(j).x,Y[et].forEach(function(pt){m[F]=[At,C[g.get(pt)]],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},K=0;K0?At=d[g.get(dt.values().next().value)]:At=V(j).y,q[et].forEach(function(pt){m[F]=[d[g.get(pt)],At],y[F]=[d[g.get(pt)],C[g.get(pt)]],F++})},ct=0;ctz&&(z=Q[rt].length,X=rt);if(z0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(F,Y){var Z={x:d[g.get(F.nodeId)],y:C[g.get(F.nodeId)]},K=F.position,q=U(K,Z);mt.x+=q.x,mt.y+=q.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(F,Y){d[Y]+=mt.x}),C.forEach(function(F,Y){C[Y]+=mt.y}),l.fixedNodeConstraint.forEach(function(F){d[g.get(F.nodeId)]=F.position.x,C[g.get(F.nodeId)]=F.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(Y){var Z=new Set;Dt[Y].forEach(function(at){Z.add(at)});var K=new Set([].concat(f(Z)).filter(function(at){return R.has(at)})),q=void 0;K.size>0?q=d[g.get(K.values().next().value)]:q=V(Z).x,Z.forEach(function(at){R.has(at)||(d[g.get(at)]=q)})},Ht=0;Ht0?q=C[g.get(K.values().next().value)]:q=V(Z).y,Z.forEach(function(at){R.has(at)||(C[g.get(at)]=q)})},Ft=0;Ft{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(45);return h})()})})(he)),he.exports}var pr=se.exports,De;function yr(){return De||(De=1,(function(L,b){(function(G,N){L.exports=N(vr())})(pr,function(A){return(()=>{var G={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e{var f=(function(){function t(s,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=s[Symbol.iterator](),C;!(l=(C=d.next()).done)&&(c.push(C.value),!(o&&c.length===o));l=!0);}catch(S){T=!0,g=S}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,u={};u.getTopMostNodes=function(t){for(var s={},o=0;o0&&I.merge(x)});for(var O=0;O1){C=g[0],S=C.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),B),U},u.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,C=!1,S=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),P;!(d=(P=w.next()).done);d=!0){var B=P.value,U=f(B,2),V=U[0],M=U[1],_=o.cy.getElementById(V);if(_){var n=_.boundingBox(),E=s.xCoords[M]-n.w/2,p=s.xCoords[M]+n.w/2,m=s.yCoords[M]-n.h/2,y=s.yCoords[M]+n.h/2;El&&(l=p),mg&&(g=y)}}}catch(x){C=!0,S=x}finally{try{!d&&w.return&&w.return()}finally{if(C)throw S}}var I=t.x-(l+c)/2,O=t.y-(g+T)/2;s.xCoords=s.xCoords.map(function(x){return x+I}),s.yCoords=s.yCoords.map(function(x){return x+O})}else{Object.keys(s).forEach(function(x){var Q=s[x],z=Q.getRect().x,X=Q.getRect().x+Q.getRect().width,rt=Q.getRect().y,$=Q.getRect().y+Q.getRect().height;zl&&(l=X),rtg&&(g=$)});var R=t.x-(l+c)/2,W=t.y-(g+T)/2;Object.keys(s).forEach(function(x){var Q=s[x];Q.setCenter(Q.getCenterX()+R,Q.getCenterY()+W)})}}},u.calcBoundingBox=function(t,s,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,C=void 0,S=void 0,w=void 0,P=void 0,B=t.descendants().not(":parent"),U=B.length,V=0;VC&&(l=C),Tw&&(g=w),d{var f=a(548),e=a(140).CoSELayout,u=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,l=a(140).CoSEConstants,T=function(d,C){var S=d.cy,w=d.eles,P=w.nodes(),B=w.edges(),U=void 0,V=void 0,M=void 0,_={};d.randomize&&(U=C.nodeIndexes,V=C.xCoords,M=C.yCoords);var n=function(x){return typeof x=="function"},E=function(x,Q){return n(x)?x(Q):x},p=f.calcParentsWithoutChildren(S,w),m=function W(x,Q,z,X){for(var rt=Q.length,$=0;$0){var J=void 0;J=z.getGraphManager().add(z.newGraph(),k),W(J,H,z,X)}}},y=function(x,Q,z){for(var X=0,rt=0,$=0;$0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/rt:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,Q){Q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(x.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,R=O.newGraphManager();return m(R.addRoot(),f.getTopMostNodes(P),O,d),y(O,R,B),I(O,d),O.runLayout(),_};i.exports={coseLayout:T}}),212:((i,r,a)=>{var f=(function(){function d(C,S){for(var w=0;w0)if(p){var I=t.getTopMostNodes(w.eles.nodes());if(M=t.connectComponents(P,w.eles,I),M.forEach(function(vt){var it=vt.boundingBox();_.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),w.randomize&&M.forEach(function(vt){w.eles=vt,U.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=P.collection();if(w.tile){var R=new Map,W=[],x=[],Q=0,z={nodeIndexes:R,xCoords:W,yCoords:x},X=[];if(M.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Et){O.merge(vt.nodes()[Et]),ut.isParent()||(z.nodeIndexes.set(vt.nodes()[Et].id(),Q++),z.xCoords.push(vt.nodes()[0].position().x),z.yCoords.push(vt.nodes()[0].position().y))}),X.push(it))}),O.length>1){var rt=O.boundingBox();_.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),M.push(O),U.push(z);for(var $=X.length-1;$>=0;$--)M.splice(X[$],1),U.splice(X[$],1),_.splice(X[$],1)}}M.forEach(function(vt,it){w.eles=vt,V.push(l(w,U[it])),t.relocateComponent(_[it],V[it],w)})}else M.forEach(function(vt,it){t.relocateComponent(_[it],U[it],w)});var D=new Set;if(M.length>1){var H=[],k=B.filter(function(vt){return vt.css("display")=="none"});M.forEach(function(vt,it){var ut=void 0;if(w.quality=="draft"&&(ut=U[it].nodeIndexes),vt.nodes().not(k).length>0){var Et={};Et.edges=[],Et.nodes=[];var wt=void 0;vt.nodes().not(k).forEach(function(Ot){if(w.quality=="draft")if(!Ot.isParent())wt=ut.get(Ot.id()),Et.nodes.push({x:U[it].xCoords[wt]-Ot.boundingbox().w/2,y:U[it].yCoords[wt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var mt=t.calcBoundingBox(Ot,U[it].xCoords,U[it].yCoords,ut);Et.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else V[it][Ot.id()]&&Et.nodes.push({x:V[it][Ot.id()].getLeft(),y:V[it][Ot.id()].getTop(),width:V[it][Ot.id()].getWidth(),height:V[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var mt=Ot.source(),Dt=Ot.target();if(mt.css("display")!="none"&&Dt.css("display")!="none")if(w.quality=="draft"){var Rt=ut.get(mt.id()),Ht=ut.get(Dt.id()),Ut=[],Pt=[];if(mt.isParent()){var Ft=t.calcBoundingBox(mt,U[it].xCoords,U[it].yCoords,ut);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(U[it].xCoords[Rt]),Ut.push(U[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,U[it].xCoords,U[it].yCoords,ut);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(U[it].xCoords[Ht]),Pt.push(U[it].yCoords[Ht]);Et.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else V[it][mt.id()]&&V[it][Dt.id()]&&Et.edges.push({startX:V[it][mt.id()].getCenterX(),startY:V[it][mt.id()].getCenterY(),endX:V[it][Dt.id()].getCenterX(),endY:V[it][Dt.id()].getCenterY()})}),Et.nodes.length>0&&(H.push(Et),D.add(it))}});var tt=E.packComponents(H,w.randomize).shifts;if(w.quality=="draft")U.forEach(function(vt,it){var ut=vt.xCoords.map(function(wt){return wt+tt[it].dx}),Et=vt.yCoords.map(function(wt){return wt+tt[it].dy});vt.xCoords=ut,vt.yCoords=Et});else{var ht=0;D.forEach(function(vt){Object.keys(V[vt]).forEach(function(it){var ut=V[vt][it];ut.setCenter(ut.getCenterX()+tt[ht].dx,ut.getCenterY()+tt[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(_.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);U.push(y)}w.quality=="default"||w.quality=="proof"?(V.push(l(w,U[0])),t.relocateComponent(_[0],V[0],w)):t.relocateComponent(_[0],U[0],w)}var J=function(it,ut){if(w.quality=="default"||w.quality=="proof"){typeof it=="number"&&(it=ut);var Et=void 0,wt=void 0,Ot=it.data("id");return V.forEach(function(Dt){Ot in Dt&&(Et={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},wt=Dt[Ot])}),w.nodeDimensionsIncludeLabels&&(wt.labelWidth&&(wt.labelPosHorizontal=="left"?Et.x+=wt.labelWidth/2:wt.labelPosHorizontal=="right"&&(Et.x-=wt.labelWidth/2)),wt.labelHeight&&(wt.labelPosVertical=="top"?Et.y+=wt.labelHeight/2:wt.labelPosVertical=="bottom"&&(Et.y-=wt.labelHeight/2))),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}else{var mt=void 0;return U.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(mt={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(w.quality=="default"||w.quality=="proof"||w.randomize){var It=t.calcParentsWithoutChildren(P,B),Nt=B.filter(function(vt){return vt.css("display")=="none"});w.eles=B.not(Nt),B.nodes().not(":parent").not(Nt).layoutPositions(S,w,J),It.length>0&&It.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,u=a(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,C=new Map,S=new Map,w=[],P=[],B=[],U=[],V=[],M=[],_=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,I=o.samplingType,O=o.nodeSeparation,R=void 0,W=function(){for(var Y=0,Z=0,K=!1;Z=at;){nt=q[at++];for(var xt=w[nt],lt=0;ltdt&&(dt=V[Lt],At=Lt)}return At},Q=function(Y){var Z=void 0;if(Y){Z=Math.floor(Math.random()*E);for(var q=0;q=1)break;j=et}for(var pt=0;pt=1)break;j=et}for(var lt=0;lt0&&(Z.isParent()?w[Y].push(S.get(Z.id())):w[Y].push(Z.id()))})});var Nt=function(Y){var Z=C.get(Y),K=void 0;d.get(Y).forEach(function(q){c.getElementById(q).isParent()?K=S.get(q):K=q,w[Z].push(K),w[C.get(K)].push(Y)})},vt=!0,it=!1,ut=void 0;try{for(var Et=d.keys()[Symbol.iterator](),wt;!(vt=(wt=Et.next()).done);vt=!0){var Ot=wt.value;Nt(Ot)}}catch(F){it=!0,ut=F}finally{try{!vt&&Et.return&&Et.return()}finally{if(it)throw ut}}E=C.size;var mt=void 0;if(E>2){R=E{var f=a(212),e=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=A})},N={};function v(i){var r=N[i];if(r!==void 0)return r.exports;var a=N[i]={exports:{}};return G[i](a,a.exports,v),a.exports}var h=v(579);return h})()})})(se)),se.exports}var mr=yr();const Er=cr(mr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:gt(L=>`${L},${L/2} 0,${L} 0,0`,"L"),R:gt(L=>`0,${L/2} ${L},0 ${L},${L}`,"R"),T:gt(L=>`0,0 ${L},0 ${L/2},${L}`,"T"),B:gt(L=>`${L/2},0 ${L},${L} 0,${L}`,"B")},oe={L:gt((L,b)=>L-b+2,"L"),R:gt((L,b)=>L-2,"R"),T:gt((L,b)=>L-b+2,"T"),B:gt((L,b)=>L-2,"B")},Tr=gt(function(L){return Wt(L)?L==="L"?"R":"L":L==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=gt(function(L){const b=L;return b==="L"||b==="R"||b==="T"||b==="B"},"isArchitectureDirection"),Wt=gt(function(L){const b=L;return b==="L"||b==="R"},"isArchitectureDirectionX"),qt=gt(function(L){const b=L;return b==="T"||b==="B"},"isArchitectureDirectionY"),Te=gt(function(L,b){const A=Wt(L)&&qt(b),G=qt(L)&&Wt(b);return A||G},"isArchitectureDirectionXY"),Nr=gt(function(L){const b=L[0],A=L[1],G=Wt(b)&&qt(A),N=qt(b)&&Wt(A);return G||N},"isArchitecturePairXY"),Lr=gt(function(L){return L!=="LL"&&L!=="RR"&&L!=="TT"&&L!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(L,b){const A=`${L}${b}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=gt(function([L,b],A){const G=A[0],N=A[1];return Wt(G)?qt(N)?[L+(G==="L"?-1:1),b+(N==="T"?1:-1)]:[L+(G==="L"?-1:1),b]:Wt(N)?[L+(N==="L"?1:-1),b+(G==="T"?1:-1)]:[L,b+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=gt(function(L){return L==="LT"||L==="TL"?[1,1]:L==="BL"||L==="LB"?[1,-1]:L==="BR"||L==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Ar=gt(function(L,b){return Te(L,b)?"bend":Wt(L)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Mr=gt(function(L){return L.type==="service"},"isArchitectureService"),Or=gt(function(L){return L.type==="junction"},"isArchitectureJunction"),be=gt(L=>L.data(),"edgeData"),ie=gt(L=>L.data(),"nodeData"),Dr=ar.architecture,Pe=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}static{gt(this,"ArchitectureDB")}setDiagramId(L){this.diagramId=L}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.layoutHints=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",er()}addService({id:L,icon:b,in:A,title:G,iconText:N}){if(this.registeredIds[L]!==void 0)throw new Error(`The service id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The service [${L}] cannot be placed within itself`);if(this.registeredIds[A]===void 0)throw new Error(`The service [${L}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[A]==="node")throw new Error(`The service [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"service",icon:b,iconText:N,title:G,edges:[],in:A}}getServices(){return Object.values(this.nodes).filter(Mr)}addJunction({id:L,in:b}){if(this.registeredIds[L]!==void 0)throw new Error(`The junction id [${L}] is already in use by another ${this.registeredIds[L]}`);if(b!==void 0){if(L===b)throw new Error(`The junction [${L}] cannot be placed within itself`);if(this.registeredIds[b]===void 0)throw new Error(`The junction [${L}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[b]==="node")throw new Error(`The junction [${L}]'s parent is not a group`)}this.registeredIds[L]="node",this.nodes[L]={id:L,type:"junction",edges:[],in:b}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(L){return this.nodes[L]??null}addGroup({id:L,icon:b,in:A,title:G}){if(this.registeredIds?.[L]!==void 0)throw new Error(`The group id [${L}] is already in use by another ${this.registeredIds[L]}`);if(A!==void 0){if(L===A)throw new Error(`The group [${L}] cannot be placed within itself`);if(this.registeredIds?.[A]===void 0)throw new Error(`The group [${L}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[A]==="node")throw new Error(`The group [${L}]'s parent is not a group`)}this.registeredIds[L]="group",this.groups[L]={id:L,icon:b,title:G,in:A}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:L,rhsId:b,lhsDir:A,rhsDir:G,lhsInto:N,rhsInto:v,lhsGroup:h,rhsGroup:i,title:r}){if(!Re(A))throw new Error(`Invalid direction given for left hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(A)}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${L}--${b}. Expected (L,R,T,B) got ${String(G)}`);if(this.nodes[L]===void 0&&this.groups[L]===void 0)throw new Error(`The left-hand id [${L}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[b]===void 0&&this.groups[b]===void 0)throw new Error(`The right-hand id [${b}] does not yet exist. Please create the service/group before declaring an edge to it.`);const a=this.nodes[L].in,f=this.nodes[b].in;if(h&&a&&f&&a==f)throw new Error(`The left-hand id [${L}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&a&&f&&a==f)throw new Error(`The right-hand id [${b}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const e={lhsId:L,lhsDir:A,lhsInto:N,lhsGroup:h,rhsId:b,rhsDir:G,rhsInto:v,rhsGroup:i,title:r};this.edges.push(e),this.nodes[L]&&this.nodes[b]&&(this.nodes[L].edges.push(this.edges[this.edges.length-1]),this.nodes[b].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(L){if(L.members.length<2)throw new Error(`An align directive requires at least two members; got ${L.members.length}`);const b=new Set;L.members.forEach(A=>{if(this.registeredIds[A]!=="node")throw new Error(`align ${L.direction} references [${A}], which is not a service or junction`);if(b.has(A))throw new Error(`align ${L.direction} lists [${A}] more than once`);b.add(A)}),this.layoutHints.push(L)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const L={},b=Object.entries(this.nodes).reduce((i,[r,a])=>(i[r]=a.edges.reduce((f,e)=>{const u=this.getNode(e.lhsId)?.in,t=this.getNode(e.rhsId)?.in;if(u&&t&&u!==t){const s=Ar(e.lhsDir,e.rhsDir);s!=="bend"&&(L[u]??={},L[u][t]=s,L[t]??={},L[t][u]=s)}if(e.lhsId===r){const s=pe(e.lhsDir,e.rhsDir);s&&(f[s]=e.rhsId)}else{const s=pe(e.rhsDir,e.lhsDir);s&&(f[s]=e.lhsId)}return f},{}),i),{}),A=Object.keys(b)[0],G={[A]:1},N=Object.keys(b).reduce((i,r)=>r===A?i:{...i,[r]:1},{}),v=gt(i=>{const r={[i]:[0,0]},a=[i];for(;a.length>0;){const f=a.shift();if(f){G[f]=1,delete N[f];const e=b[f],[u,t]=r[f];Object.entries(e).forEach(([s,o])=>{G[o]||(r[o]=Cr([u,t],s),a.push(o))})}}return r},"BFS"),h=[v(A)];for(;Object.keys(N).length>0;)h.push(v(Object.keys(N)[0]));this.dataStructures={adjList:b,spatialMaps:h,groupAlignments:L}}return this.dataStructures}setElementForId(L,b){this.elements[L]=b}getElementById(L){return this.elements[L]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(L){return this.getConfig()[L]}},xr=gt((L,b)=>{ke(L,b),L.groups.map(A=>b.addGroup(A)),L.services.map(A=>b.addService({...A,type:"service"})),L.junctions.map(A=>b.addJunction({...A,type:"junction"})),L.edges.map(A=>b.addEdge(A)),L.alignments?.map(A=>b.addLayoutHint({direction:A.direction,members:[...A.members]}))},"populateDb"),Ge={parser:{yy:void 0},parse:gt(async L=>{const b=await fr("architecture",L);Se.debug(b);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(b,A)},"parse")},Ir=gt(L=>` .edge { stroke-width: ${L.archEdgeWidth}; stroke: ${L.archEdgeColor}; diff --git a/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js b/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js similarity index 86% rename from apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js rename to apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js index 3d5eb0e991f..4fea8867e33 100644 --- a/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-kqxY_5qX.js +++ b/apps/kimi-code/dist-web/assets/blockDiagram-677ZJIJ3-DMGXLKk2.js @@ -1,4 +1,4 @@ -import{g as de}from"./chunk-5VM5RSS4-DzLUmY02.js";import{aA as pe,aB as Kt,aC as fe,aD as xe,aE as ye,aF as be,aG as we,aH as me,aI as Se,aJ as Le,aK as ke,aL as ve,aM as Ee,aN as _e,aO as Te,aP as De,aQ as Be,aR as Ne,aS as Ie,aT as Ce,aU as Oe,aV as Re,aW as Ae,aX as ze,aY as Me,_ as g,y as rt,d as D,e as Pe,l as k,p as Fe,r as We,c as R,aZ as Ye,a7 as He,a8 as Ke,L as Ue,a_ as M,a$ as kt,b0 as Q,as as Xe,x as $,k as Ve,b1 as je,i as Ct,b2 as Ot,b3 as Ge}from"./mermaid.core-D8UeR6T-.js";import{G as Ze}from"./graph-DOmOIIwC.js";import{c as qe}from"./channel-BiD6A78K.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";function Je(e){return Array.isArray(e)}function Qe(e){if(pe(e))return e;const t=Kt(e);if(!$e(e))return{};if(Je(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(fe(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const s=e,i=s.buffer,c=s.byteOffset,r=s.byteLength,n=new ArrayBuffer(r),l=new Uint8Array(i,c,r);return new Uint8Array(n).set(l),new DataView(n)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const s=e.constructor,i=new s(e.valueOf());return t==="[object String]"?er(i,e):xt(i,e),i}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const s=e,i=new Map;return s.forEach((c,r)=>{i.set(r,c)}),i}if(t==="[object Set]"){const s=e,i=new Set;return s.forEach(c=>{i.add(c)}),i}if(t==="[object Arguments]"){const s=e,i={};return xt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const a={};return rr(a,e),xt(a,e),tr(a,e),a}function $e(e){switch(Kt(e)){case Me:case ze:case Ae:case Re:case Oe:case Ce:case Ie:case Ne:case Be:case De:case Te:case _e:case Ee:case ve:case ke:case Le:case Se:case me:case we:case be:case ye:case xe:return!0;default:return!1}}function xt(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function tr(e,t){const a=Object.getOwnPropertySymbols(t);for(let s=0;s=a)&&(e[s]=t[s])}function rr(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var bt=(function(){var e=g(function(T,m,p,x){for(p=p||{},x=T.length;x--;p[T[x]]=m);return p},"o"),t=[1,15],a=[1,7],s=[1,13],i=[1,14],c=[1,19],r=[1,16],n=[1,17],l=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],S={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(m,p,x,L,E,o,F){var f=o.length-1;switch(E){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",o[f-1]),L.setHierarchy(o[f-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",o[f]),typeof o[f].length=="number"?this.$=o[f]:this.$=[o[f]];break;case 13:L.getLogger().debug("Rule: statement #2: ",o[f-1]),this.$=[o[f-1]].concat(o[f]);break;case 14:L.getLogger().debug("Rule: link: ",o[f],m),this.$={edgeTypeStr:o[f],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",o[f-3],o[f-1],o[f]),this.$={edgeTypeStr:o[f],label:o[f-1]};break;case 18:const C=parseInt(o[f]),Z=L.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",o[f-2],o[f-1],o[f]," typestr: ",o[f-1].edgeTypeStr);const V=L.edgeStrToEdgeData(o[f-1].edgeTypeStr),at=L.edgeStrToEdgeStartData(o[f-1].edgeTypeStr),gt=L.edgeStrToThickness(o[f-1].edgeTypeStr),O=L.edgeStrToPattern(o[f-1].edgeTypeStr);this.$=[{id:o[f-2].id,label:o[f-2].label,type:o[f-2].type,directions:o[f-2].directions},{id:o[f-2].id+"-"+o[f].id,start:o[f-2].id,end:o[f].id,label:o[f-1].label,type:"edge",thickness:gt,pattern:O,directions:o[f].directions,arrowTypeEnd:V,arrowTypeStart:at},{id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[f-1],o[f]),this.$={id:o[f-1].id,label:o[f-1].label,type:L.typeStr2Type(o[f-1].typeStr),directions:o[f-1].directions,widthInColumns:parseInt(o[f],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",o[f]),this.$={id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",o[f]),this.$={type:"column-setting",columns:o[f]==="auto"?-1:parseInt(o[f])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",o[f-2],o[f-1]),L.generateId(),this.$={...o[f-2],type:"composite",children:o[f-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",o[f-2],o[f-1],o[f]);const j=L.generateId();this.$={id:j,type:"composite",label:"",children:o[f-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",o[f]),this.$={id:o[f]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[f-1],o[f]),this.$={id:o[f-1],label:o[f].label,typeStr:o[f].typeStr,directions:o[f].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",o[f]),this.$=[o[f]];break;case 32:L.getLogger().debug("Rule: dirList: ",o[f-1],o[f]),this.$=[o[f-1]].concat(o[f]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",o[f-2],o[f-1],o[f]),this.$={typeStr:o[f-2]+o[f],label:o[f-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[f-3],o[f-2]," #3:",o[f-1],o[f]),this.$={typeStr:o[f-3]+o[f],label:o[f-2],directions:o[f-1]};break;case 35:case 36:this.$={type:"classDef",id:o[f-1].trim(),css:o[f].trim()};break;case 37:this.$={type:"applyClass",id:o[f-1].trim(),styleClass:o[f].trim()};break;case 38:this.$={type:"applyStyles",id:o[f-1].trim(),stylesStr:o[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:i,31:c,39:r,43:n,46:l}),e(h,[2,16],{14:22,15:d,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(w,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(h,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(m,p){if(p.recoverable)this.trace(m);else{var x=new Error(m);throw x.hash=p,x}},"parseError"),parse:g(function(m){var p=this,x=[0],L=[],E=[null],o=[],F=this.table,f="",C=0,Z=0,V=2,at=1,gt=o.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(j.yy[ut]=this.yy[ut]);O.setInput(m,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var dt=O.yylloc;o.push(dt);var ge=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(W){x.length=x.length-2*W,E.length=E.length-W,o.length=o.length-W}g(ue,"popStack");function Nt(){var W;return W=L.pop()||O.lex()||at,typeof W!="number"&&(W instanceof Array&&(L=W,W=L.pop()),W=p.symbols_[W]||W),W}g(Nt,"lex");for(var P,q,H,pt,J={},st,G,It,it;;){if(q=x[x.length-1],this.defaultActions[q]?H=this.defaultActions[q]:((P===null||typeof P>"u")&&(P=Nt()),H=F[q]&&F[q][P]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in F[q])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");O.showPosition?ft="Parse error on line "+(C+1)+`: +import{g as de}from"./chunk-5VM5RSS4-B87d3yQb.js";import{aA as pe,aB as Kt,aC as fe,aD as xe,aE as ye,aF as be,aG as we,aH as me,aI as Se,aJ as Le,aK as ke,aL as ve,aM as Ee,aN as _e,aO as Te,aP as De,aQ as Be,aR as Ne,aS as Ie,aT as Ce,aU as Oe,aV as Re,aW as Ae,aX as ze,aY as Me,_ as g,z as rt,d as D,e as Pe,l as k,q as Fe,t as We,c as R,aZ as Ye,a7 as He,a8 as Ke,a3 as Ue,a_ as M,a$ as kt,b0 as Q,as as Xe,y as $,k as Ve,b1 as je,i as Ct,b2 as Ot,b3 as Ge}from"./mermaid.core-DaDTfY6S.js";import{G as Ze}from"./graph-DOmOIIwC.js";import{c as qe}from"./channel-d4fEaqwQ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";function Je(e){return Array.isArray(e)}function Qe(e){if(pe(e))return e;const t=Kt(e);if(!$e(e))return{};if(Je(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(fe(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const s=e,i=s.buffer,c=s.byteOffset,r=s.byteLength,n=new ArrayBuffer(r),l=new Uint8Array(i,c,r);return new Uint8Array(n).set(l),new DataView(n)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const s=e.constructor,i=new s(e.valueOf());return t==="[object String]"?er(i,e):xt(i,e),i}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const s=e,i=new Map;return s.forEach((c,r)=>{i.set(r,c)}),i}if(t==="[object Set]"){const s=e,i=new Set;return s.forEach(c=>{i.add(c)}),i}if(t==="[object Arguments]"){const s=e,i={};return xt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const a={};return rr(a,e),xt(a,e),tr(a,e),a}function $e(e){switch(Kt(e)){case Me:case ze:case Ae:case Re:case Oe:case Ce:case Ie:case Ne:case Be:case De:case Te:case _e:case Ee:case ve:case ke:case Le:case Se:case me:case we:case be:case ye:case xe:return!0;default:return!1}}function xt(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function tr(e,t){const a=Object.getOwnPropertySymbols(t);for(let s=0;s=a)&&(e[s]=t[s])}function rr(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var bt=(function(){var e=g(function(T,m,p,x){for(p=p||{},x=T.length;x--;p[T[x]]=m);return p},"o"),t=[1,15],a=[1,7],s=[1,13],i=[1,14],c=[1,19],r=[1,16],n=[1,17],l=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],d=[1,23],b=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],S={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(m,p,x,L,E,o,F){var f=o.length-1;switch(E){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",o[f-1]),L.setHierarchy(o[f-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",o[f]),typeof o[f].length=="number"?this.$=o[f]:this.$=[o[f]];break;case 13:L.getLogger().debug("Rule: statement #2: ",o[f-1]),this.$=[o[f-1]].concat(o[f]);break;case 14:L.getLogger().debug("Rule: link: ",o[f],m),this.$={edgeTypeStr:o[f],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",o[f-3],o[f-1],o[f]),this.$={edgeTypeStr:o[f],label:o[f-1]};break;case 18:const C=parseInt(o[f]),Z=L.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",o[f-2],o[f-1],o[f]," typestr: ",o[f-1].edgeTypeStr);const V=L.edgeStrToEdgeData(o[f-1].edgeTypeStr),at=L.edgeStrToEdgeStartData(o[f-1].edgeTypeStr),gt=L.edgeStrToThickness(o[f-1].edgeTypeStr),O=L.edgeStrToPattern(o[f-1].edgeTypeStr);this.$=[{id:o[f-2].id,label:o[f-2].label,type:o[f-2].type,directions:o[f-2].directions},{id:o[f-2].id+"-"+o[f].id,start:o[f-2].id,end:o[f].id,label:o[f-1].label,type:"edge",thickness:gt,pattern:O,directions:o[f].directions,arrowTypeEnd:V,arrowTypeStart:at},{id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[f-1],o[f]),this.$={id:o[f-1].id,label:o[f-1].label,type:L.typeStr2Type(o[f-1].typeStr),directions:o[f-1].directions,widthInColumns:parseInt(o[f],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",o[f]),this.$={id:o[f].id,label:o[f].label,type:L.typeStr2Type(o[f].typeStr),directions:o[f].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",o[f]),this.$={type:"column-setting",columns:o[f]==="auto"?-1:parseInt(o[f])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",o[f-2],o[f-1]),L.generateId(),this.$={...o[f-2],type:"composite",children:o[f-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",o[f-2],o[f-1],o[f]);const j=L.generateId();this.$={id:j,type:"composite",label:"",children:o[f-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",o[f]),this.$={id:o[f]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[f-1],o[f]),this.$={id:o[f-1],label:o[f].label,typeStr:o[f].typeStr,directions:o[f].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",o[f]),this.$=[o[f]];break;case 32:L.getLogger().debug("Rule: dirList: ",o[f-1],o[f]),this.$=[o[f-1]].concat(o[f]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",o[f-2],o[f-1],o[f]),this.$={typeStr:o[f-2]+o[f],label:o[f-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[f-3],o[f-2]," #3:",o[f-1],o[f]),this.$={typeStr:o[f-3]+o[f],label:o[f-2],directions:o[f-1]};break;case 35:case 36:this.$={type:"classDef",id:o[f-1].trim(),css:o[f].trim()};break;case 37:this.$={type:"applyClass",id:o[f-1].trim(),styleClass:o[f].trim()};break;case 38:this.$={type:"applyStyles",id:o[f-1].trim(),stylesStr:o[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:i,31:c,39:r,43:n,46:l}),e(h,[2,16],{14:22,15:d,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(w,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(h,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(m,p){if(p.recoverable)this.trace(m);else{var x=new Error(m);throw x.hash=p,x}},"parseError"),parse:g(function(m){var p=this,x=[0],L=[],E=[null],o=[],F=this.table,f="",C=0,Z=0,V=2,at=1,gt=o.slice.call(arguments,1),O=Object.create(this.lexer),j={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(j.yy[ut]=this.yy[ut]);O.setInput(m,j.yy),j.yy.lexer=O,j.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var dt=O.yylloc;o.push(dt);var ge=O.options&&O.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(W){x.length=x.length-2*W,E.length=E.length-W,o.length=o.length-W}g(ue,"popStack");function Nt(){var W;return W=L.pop()||O.lex()||at,typeof W!="number"&&(W instanceof Array&&(L=W,W=L.pop()),W=p.symbols_[W]||W),W}g(Nt,"lex");for(var P,q,H,pt,J={},st,G,It,it;;){if(q=x[x.length-1],this.defaultActions[q]?H=this.defaultActions[q]:((P===null||typeof P>"u")&&(P=Nt()),H=F[q]&&F[q][P]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in F[q])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");O.showPosition?ft="Parse error on line "+(C+1)+`: `+O.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[P]||P)+"'":ft="Parse error on line "+(C+1)+": Unexpected "+(P==at?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(ft,{text:O.match,token:this.terminals_[P]||P,line:O.yylineno,loc:dt,expected:it})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(H[0]){case 1:x.push(P),E.push(O.yytext),o.push(O.yylloc),x.push(H[1]),P=null,Z=O.yyleng,f=O.yytext,C=O.yylineno,dt=O.yylloc;break;case 2:if(G=this.productions_[H[1]][1],J.$=E[E.length-G],J._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},ge&&(J._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),pt=this.performAction.apply(J,[f,Z,C,j.yy,H[1],E,o].concat(gt)),typeof pt<"u")return pt;G&&(x=x.slice(0,-1*G*2),E=E.slice(0,-1*G),o=o.slice(0,-1*G)),x.push(this.productions_[H[1]][0]),E.push(J.$),o.push(J._$),It=F[x[x.length-2]][x[x.length-1]],x.push(It);break;case 3:return!0}}return!0},"parse")},N=(function(){var T={EOF:1,parseError:g(function(p,x){if(this.yy.parser)this.yy.parser.parseError(p,x);else throw new Error(p)},"parseError"),setInput:g(function(m,p){return this.yy=p||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var p=m.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:g(function(m){var p=m.length,x=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===L.length?this.yylloc.first_column:0)+L[L.length-x.length].length-x[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(m){this.unput(this.match.slice(m))},"less"),pastInput:g(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var m=this.pastInput(),p=new Array(m.length+1).join("-");return m+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js b/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js similarity index 99% rename from apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js rename to apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js index 4282ed84383..583361a7a4d 100644 --- a/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-BqeCylRR.js +++ b/apps/kimi-code/dist-web/assets/c4Diagram-LMCZKHZV-CuD9sHro.js @@ -1,4 +1,4 @@ -import{g as Oe,d as Re}from"./chunk-32BRIVSS-wwoCS_p_.js";import{s as Se,g as De,a as Pe,b as Be,_ as y,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-D8UeR6T-.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var jt=(function(){var e=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],a=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(se,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(se,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,re=0,ke=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(At.yy[Ht]=this.yy[Ht]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(oe,"lex");for(var I,kt,N,Gt,wt={},Mt,W,ce,Lt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[kt]&&Rt[kt][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[kt])this.terminals_[Mt]&&Mt>ke&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`: +import{g as Oe,d as Re}from"./chunk-32BRIVSS-_Sd4SrsJ.js";import{s as Se,g as De,a as Pe,b as Be,_ as y,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-DaDTfY6S.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var jt=(function(){var e=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],a=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(se,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(se,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,re=0,ke=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(At.yy[Ht]=this.yy[Ht]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(oe,"lex");for(var I,kt,N,Gt,wt={},Mt,W,ce,Lt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[kt]&&Rt[kt][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[kt])this.terminals_[Mt]&&Mt>ke&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Kt="Parse error on line "+(Et+1)+": Unexpected "+(I==le?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Kt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:qt,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:E.push(I),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),I=null,re=D.yyleng,f=D.yytext,Et=D.yylineno,qt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},we&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Gt=this.performAction.apply(wt,[f,re,Et,At.yy,N[1],R,h].concat(Ce)),typeof Gt<"u")return Gt;W&&(E=E.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ce=Rt[E[E.length-2]][E[E.length-1]],E.push(ce);break;case 3:return!0}}return!0},"parse")},Ae=(function(){var _t={EOF:1,parseError:y(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:y(function(x,v){return this.yy=v||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var v=x.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:y(function(x){var v=x.length,E=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===b.length?this.yylloc.first_column:0)+b[b.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(x){this.unput(this.match.slice(x))},"less"),pastInput:y(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var x=this.pastInput(),v=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js b/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js deleted file mode 100644 index 514856bc6bd..00000000000 --- a/apps/kimi-code/dist-web/assets/channel-BiD6A78K.js +++ /dev/null @@ -1 +0,0 @@ -import{U as a,O as n}from"./mermaid.core-D8UeR6T-.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js b/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js new file mode 100644 index 00000000000..73cb5a3b91f --- /dev/null +++ b/apps/kimi-code/dist-web/assets/channel-d4fEaqwQ.js @@ -0,0 +1 @@ +import{U as a,C as n}from"./mermaid.core-DaDTfY6S.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js b/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js similarity index 67% rename from apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js rename to apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js index 0a33463a548..a2f47c6f6c8 100644 --- a/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-X9yuSZVx.js +++ b/apps/kimi-code/dist-web/assets/chunk-2Q5K7J3B-DqVWYlyS.js @@ -1 +1 @@ -import{_ as i}from"./mermaid.core-D8UeR6T-.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I}; +import{_ as i}from"./mermaid.core-DaDTfY6S.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I}; diff --git a/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js b/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js similarity index 96% rename from apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js rename to apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js index 26f0d98fedf..308520d84b3 100644 --- a/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-wwoCS_p_.js +++ b/apps/kimi-code/dist-web/assets/chunk-32BRIVSS-_Sd4SrsJ.js @@ -1 +1 @@ -import{_ as i,d as l,N as d,j as o}from"./mermaid.core-D8UeR6T-.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,g as c,x as d,m as e,w as f,h as g,y as h}; +import{_ as i,d as l,n as d,j as o}from"./mermaid.core-DaDTfY6S.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,g as c,x as d,m as e,w as f,h as g,y as h}; diff --git a/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js b/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js similarity index 83% rename from apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js rename to apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js index 6475c7701f6..a9aa966ae5a 100644 --- a/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-DzLUmY02.js +++ b/apps/kimi-code/dist-web/assets/chunk-5VM5RSS4-B87d3yQb.js @@ -1,4 +1,4 @@ -import{_ as e}from"./mermaid.core-D8UeR6T-.js";var l=e(()=>` +import{_ as e}from"./mermaid.core-DaDTfY6S.js";var l=e(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; diff --git a/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js b/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js rename to apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js index 960752596bc..d4962ee7fba 100644 --- a/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-5zoYnii5.js +++ b/apps/kimi-code/dist-web/assets/chunk-EX3LRPZG-CyUsdK3n.js @@ -1,4 +1,4 @@ -import{g as te}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as ee}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as f,l as _,c as $,v as se,x as ie,a as re,b as ae,g as ne,s as oe,n as le,o as ce,a9 as he,k as j,p as ue,d as bt,a5 as de}from"./mermaid.core-D8UeR6T-.js";import{f as fe}from"./chunk-32BRIVSS-wwoCS_p_.js";var vt=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],o=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],n=[1,17],T=[1,18],m=[1,19],O=[1,33],x=[1,20],k=[1,21],u=[1,22],L=[1,23],I=[1,24],v=[1,26],F=[1,27],C=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,E,i,B){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],K=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");Y=ht[0],K=[K,ht[1]]}this.$={stmt:"state",id:Y,type:"default",description:K};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:O,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:O,57:z},t(S,[2,17]),t(xt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,72],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(xt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,81],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],E=[null],i=[],B=this.table,l="",Y=0,K=0,ht=2,Q=1,gt=i.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(U.yy[Tt]=this.yy[Tt]);b.setInput(a,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Et=b.yylloc;i.push(Et);var Qt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){r.length=r.length-2*N,E.length=E.length-N,i.length=i.length-N}f(Zt,"popStack");function Lt(){var N;return N=g.pop()||b.lex()||Q,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=d.symbols_[N]||N),N}f(Lt,"lex");for(var A,W,R,_t,X={},ut,G,It,dt;;){if(W=r[r.length-1],this.defaultActions[W]?R=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=Lt()),R=B[W]&&B[W][A]),typeof R>"u"||!R.length||!R[0]){var mt="";dt=[];for(ut in B[W])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`: +import{g as te}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as ee}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as f,l as _,c as $,x as se,y as ie,a as re,b as ae,g as ne,s as oe,o as le,p as ce,a9 as he,k as j,q as ue,d as bt,a5 as de}from"./mermaid.core-DaDTfY6S.js";import{f as fe}from"./chunk-32BRIVSS-_Sd4SrsJ.js";var vt=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],o=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],n=[1,17],T=[1,18],m=[1,19],O=[1,33],x=[1,20],k=[1,21],u=[1,22],L=[1,23],I=[1,24],v=[1,26],F=[1,27],C=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,E,i,B){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const gt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:gt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],K=i[l-2].trim();if(i[l].match(":")){var ht=i[l].split(":");Y=ht[0],K=[K,ht[1]]}this.$={stmt:"state",id:Y,type:"default",description:K};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:n,19:T,22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:O,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:O,57:z},t(S,[2,17]),t(xt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,72],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(xt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:n,19:T,21:[1,81],22:m,24:O,25:x,26:k,27:u,28:L,29:I,32:25,33:v,35:F,37:C,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],E=[null],i=[],B=this.table,l="",Y=0,K=0,ht=2,Q=1,gt=i.slice.call(arguments,1),b=Object.create(this.lexer),U={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(U.yy[Tt]=this.yy[Tt]);b.setInput(a,U.yy),U.yy.lexer=b,U.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Et=b.yylloc;i.push(Et);var Qt=b.options&&b.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){r.length=r.length-2*N,E.length=E.length-N,i.length=i.length-N}f(Zt,"popStack");function Lt(){var N;return N=g.pop()||b.lex()||Q,typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=d.symbols_[N]||N),N}f(Lt,"lex");for(var A,W,R,_t,X={},ut,G,It,dt;;){if(W=r[r.length-1],this.defaultActions[W]?R=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=Lt()),R=B[W]&&B[W][A]),typeof R>"u"||!R.length||!R[0]){var mt="";dt=[];for(ut in B[W])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`: `+b.showPosition()+` Expecting `+dt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(Y+1)+": Unexpected "+(A==Q?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:Et,expected:dt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(R[0]){case 1:r.push(A),E.push(b.yytext),i.push(b.yylloc),r.push(R[1]),A=null,K=b.yyleng,l=b.yytext,Y=b.yylineno,Et=b.yylloc;break;case 2:if(G=this.productions_[R[1]][1],X.$=E[E.length-G],X._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(X._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),_t=this.performAction.apply(X,[l,K,Y,U.yy,R[1],E,i].concat(gt)),typeof _t<"u")return _t;G&&(r=r.slice(0,-1*G*2),E=E.slice(0,-1*G),i=i.slice(0,-1*G)),r.push(this.productions_[R[1]][0]),E.push(X.$),i.push(X._$),It=B[r[r.length-2]][r[r.length-1]],r.push(It);break;case 3:return!0}}return!0},"parse")},qt=(function(){var V={EOF:1,parseError:f(function(d,r){if(this.yy.parser)this.yy.parser.parseError(d,r);else throw new Error(d)},"parseError"),setInput:f(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var d=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===g.length?this.yylloc.first_column:0)+g[g.length-r.length].length-r[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js b/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js similarity index 71% rename from apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js rename to apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js index 27a49b0a189..889894642df 100644 --- a/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-pbPBApdZ.js +++ b/apps/kimi-code/dist-web/assets/chunk-JWPE2WC7-XhS5NGpP.js @@ -1 +1 @@ -import{_ as i}from"./mermaid.core-D8UeR6T-.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; +import{_ as i}from"./mermaid.core-DaDTfY6S.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; diff --git a/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js b/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js similarity index 97% rename from apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js rename to apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js index 667358099cc..d236c6b4906 100644 --- a/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-BDh2X7Dq.js +++ b/apps/kimi-code/dist-web/assets/chunk-MOJQB5TN-Ce2Y728v.js @@ -1,5 +1,5 @@ -import{_ as p,l as w,D as L,y as E,p as I,E as X,e as H,i as q,c as G}from"./mermaid.core-D8UeR6T-.js";var z="",b="",N="",A=[],R=new Map,k=p(e=>q(e,G()),"sanitizeText"),F=p(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=p(()=>{z="",b="",N="",A.length=0,R.clear(),I(),w.debug("[Railroad] Database cleared")},"clear"),_=p(e=>{z=k(e),w.debug("[Railroad] Title set:",e)},"setTitle"),W=p(()=>z,"getTitle"),j=p(e=>{const i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};w.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&w.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),A.push(i),R.set(i.name,i)},"addRule"),K=p(()=>A,"getRules"),J=p(e=>R.get(e),"getRule"),Q=p(e=>{b=k(e).replace(/^\s+/g,""),w.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=p(()=>b,"getAccTitle"),V=p(e=>{N=k(e).replace(/\n\s+/g,` -`),w.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=p(()=>N,"getAccDescription"),te=_,re=W,ie={clear:U,setTitle:_,getTitle:W,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=p(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=p(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),se=p(e=>{if(!e||B(e))return{};const{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),Y=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=p((e,i)=>{const a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=p(e=>{const i=Y(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),M=p(e=>{const i=E(),a={...X(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),ue=p(e=>{const{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:h,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:x,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=M(e);return` +import{_ as p,l as w,F as L,z as E,q as I,W as X,e as q,i as H,c as G}from"./mermaid.core-DaDTfY6S.js";var z="",b="",N="",A=[],R=new Map,k=p(e=>H(e,G()),"sanitizeText"),F=p(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=p(()=>{z="",b="",N="",A.length=0,R.clear(),I(),w.debug("[Railroad] Database cleared")},"clear"),W=p(e=>{z=k(e),w.debug("[Railroad] Title set:",e)},"setTitle"),_=p(()=>z,"getTitle"),j=p(e=>{const i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};w.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&w.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),A.push(i),R.set(i.name,i)},"addRule"),K=p(()=>A,"getRules"),J=p(e=>R.get(e),"getRule"),Q=p(e=>{b=k(e).replace(/^\s+/g,""),w.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=p(()=>b,"getAccTitle"),V=p(e=>{N=k(e).replace(/\n\s+/g,` +`),w.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=p(()=>N,"getAccDescription"),te=W,re=_,ie={clear:U,setTitle:W,getTitle:_,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=p(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=p(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),se=p(e=>{if(!e||B(e))return{};const{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),Y=p((e,i)=>{if(typeof e!="string")return i;const a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=p((e,i)=>{const a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=p(e=>{const i=Y(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),M=p(e=>{const i=E(),a={...X(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),ue=p(e=>{const{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:h,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:x,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=M(e);return` .railroad-diagram { font-family: ${i}; font-size: ${a}px; @@ -84,5 +84,5 @@ import{_ as p,l as w,D as L,y as E,p as I,E as X,e as H,i as q,c as G}from"./mer .railroad-group { /* Grouping container, no specific styles */ } -`},"getStyles"),T=class{constructor(){this.d=""}static{p(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,h){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${h} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=M()){this.textCache=new Map,this.svg=e,this.config=i}static{p(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){const a=i.map(o=>this.renderExpression(e,o));let r=0,t=0,n=0;for(const o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;const h=e.append("g").attr("class","railroad-sequence");let s=0;for(let o=0;othis.renderExpression(e,d));let r=0,t=0;for(const d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;const n=this.config.arcRadius,h=n*4,s=r+h,o=e.append("g").attr("class","railroad-choice");let u=0;const c=t/2;for(const d of a){const x=u,l=x+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${x})`);const v=new T,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());const $=new T,O=f+d.dimensions.width,P=s-n*2;l===c?$.moveTo(O,l).lineTo(s,c):$.moveTo(O,l).lineTo(P,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){const a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,h=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);const d=u+a.dimensions.up,x=new T().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",x.build());const l=new T().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());const f=new T().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:h,up:d,down:h-d}}}renderRepetition(e,i,a){const r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,h=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);const l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(c+r.dimensions.width,l).lineTo(h,l).build());const f=d+r.dimensions.height+t,y=new T().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){const v=new T().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(h-t*2,0).arcTo(t,t,0,!1,!0,h-t,t).lineTo(h-t,l-t).arcTo(t,t,0,!1,!1,h,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:h,height:o,up:l,down:o-l}}}renderSpecial(e,i){const a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){const a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,h=a.append("g"),s=this.renderExpression(h,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return h.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(const r of e){const t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},D=p((e,i,a)=>{H(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=p((e,i,a)=>{w.debug(`[Railroad] Rendering diagram +`},"getStyles"),T=class{constructor(){this.d=""}static{p(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,h){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${h} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=M()){this.textCache=new Map,this.svg=e,this.config=i}static{p(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){const a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){const a=i.map(o=>this.renderExpression(e,o));let r=0,t=0,n=0;for(const o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;const h=e.append("g").attr("class","railroad-sequence");let s=0;for(let o=0;othis.renderExpression(e,d));let r=0,t=0;for(const d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;const n=this.config.arcRadius,h=n*4,s=r+h,o=e.append("g").attr("class","railroad-choice");let u=0;const c=t/2;for(const d of a){const x=u,l=x+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${x})`);const v=new T,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());const $=new T,O=f+d.dimensions.width,P=s-n*2;l===c?$.moveTo(O,l).lineTo(s,c):$.moveTo(O,l).lineTo(P,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){const a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,h=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);const d=u+a.dimensions.up,x=new T().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",x.build());const l=new T().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());const f=new T().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:h,up:d,down:h-d}}}renderRepetition(e,i,a){const r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,h=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);const l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(c+r.dimensions.width,l).lineTo(h,l).build());const f=d+r.dimensions.height+t,y=new T().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){const v=new T().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(h-t*2,0).arcTo(t,t,0,!1,!0,h-t,t).lineTo(h-t,l-t).arcTo(t,t,0,!1,!1,h,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:h,height:o,up:l,down:o-l}}}renderSpecial(e,i){const a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){const a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,h=a.append("g"),s=this.renderExpression(h,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return h.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new T().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(const r of e){const t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},D=p((e,i,a)=>{q(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=p((e,i,a)=>{w.debug(`[Railroad] Rendering diagram `+e);try{const r=L(i);r.attr("class","railroad-diagram");const n=E().railroad?.useMaxWidth??!0,h=ie.getRules();if(w.debug(`[Railroad] Rendering ${h.length} rules`),h.length===0){w.warn("[Railroad] No rules to render"),D(r,{height:100,width:200},n);return}const o=new me(r,M()).renderDiagram(h);D(r,o,n),w.debug("[Railroad] Render complete")}catch(r){throw w.error("[Railroad] Render error:",r),r}},"draw"),ge={draw:he};export{ie as d,ue as g,ge as r}; diff --git a/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js b/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js rename to apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js index 13753c63a8b..17ac894a280 100644 --- a/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-DfJNuYFs.js +++ b/apps/kimi-code/dist-web/assets/chunk-RYQCIY6F-D1Yl7opn.js @@ -1 +1 @@ -import{_ as u,l as i}from"./mermaid.core-D8UeR6T-.js";import{i as m,G as y}from"./graph-DOmOIIwC.js";import{b as _,m as X}from"./map-DxJ2ADlA.js";var j=4;function p(e){return _(e,j)}function C(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:F(e),edges:M(e)};return m(e.graph())||(r.value=p(e.graph())),r}function F(e){return X(e.nodes(),function(r){var n=e.node(r),s=e.parent(r),t={v:r};return m(n)||(t.value=n),m(s)||(t.parent=s),t})}function M(e){return X(e.edges(),function(r){var n=e.edge(r),s={v:r.v,w:r.w};return m(r.name)||(s.name=r.name),m(n)||(s.value=n),s})}var c=new Map,w=new Map,A=new Map,J=u(()=>{w.clear(),A.clear(),c.clear()},"clear"),v=u((e,r)=>{const n=w.get(r)||[];return i.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),R=u((e,r)=>{const n=w.get(r)||[];return i.info("Descendants of ",r," is ",n),i.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||v(e.v,r)||v(e.w,r)||n.includes(e.w):(i.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),b=u((e,r,n,s)=>{i.warn("Copying children of ",e,"root",s,"data",r.node(e),s);const t=r.children(e)||[];e!==s&&t.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",t),t.forEach(o=>{if(r.children(o).length>0)b(o,r,n,s);else{const l=r.node(o);i.info("cp ",o," to ",s," with parent ",e),n.setNode(o,l),s!==r.parent(o)&&(i.warn("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o))),e!==s&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",s,"data",r.node(e),s),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==s,"node!==clusterId",o!==e));const f=r.edges(o);i.debug("Copying Edges",f),f.forEach(a=>{i.info("Edge",a);const d=r.edge(a.v,a.w,a.name);i.info("Edge data",d,s);try{if(R(a,s)){const g=w.get(s)||[],E=g.includes(a.v)||v(a.v,s)||a.v===s,x=g.includes(a.w)||v(a.w,s)||a.w===s;if(E&&x)i.info("Copying as ",a.v,a.w,d,a.name),n.setEdge(a.v,a.w,d,a.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else{const N=E?s:a.v,h=x?s:a.w;i.info("Rebinding cross-boundary edge as ",N,h,d,a.name),r.setEdge(N,h,d,a.name)}}else i.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",s," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",o),r.removeNode(o)})},"copy"),O=u((e,r)=>{const n=r.children(e);let s=[...n];for(const t of n)A.set(t,e),s=[...s,...O(t,r)];return s},"extractDescendants"),P=u((e,r,n)=>{const s=e.edges().filter(a=>a.v===r||a.w===r),t=e.edges().filter(a=>a.v===n||a.w===n),o=s.map(a=>({v:a.v===r?n:a.v,w:a.w===r?r:a.w})),l=t.map(a=>({v:a.v,w:a.w}));return o.filter(a=>l.some(d=>a.v===d.v&&a.w===d.w))},"findCommonEdges"),D=u((e,r,n)=>{const s=r.children(e);if(i.trace("Searching children of id ",e,s),s.length<1)return e;let t;for(const o of s){const l=D(o,r,n),f=P(r,n,l);if(l)if(f.length>0)t=l;else return l}return t},"findNonClusterChild"),S=u(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),U=u((e,r)=>{if(!e||r>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),w.set(n,O(n,e)),c.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const s=e.children(n),t=e.edges();s.length>0?(i.debug("Cluster identified",n,w),t.forEach(o=>{const l=v(o.v,n),f=v(o.w,n);l^f&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",w.get(n)),c.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,w)});for(let n of c.keys()){const s=c.get(n).id,t=e.parent(s);t!==n&&c.has(t)&&!c.get(t).externalConnections&&(c.get(n).id=t);const o=e.edges().some(l=>l.v===n);if(s&&c.get(n)?.externalConnections&&o&&L(e,s,n)){const l=T(e,n,e.parent(s));l&&(c.get(n).id=l)}}e.edges().forEach(function(n){const s=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let t=n.v,o=n.w;if(i.warn("Fix XXX",c,"ids:",n.v,n.w,"Translating: ",c.get(n.v)," --- ",c.get(n.w)),c.get(n.v)||c.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),t=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),t!==n.v){const l=e.parent(t);c.get(l).externalConnections=!0,s.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);c.get(l).externalConnections=!0,s.toCluster=n.w}i.warn("Fix Replacing with XXX",t,o,n.name),e.setEdge(t,o,s,n.name)}}),i.warn("Adjusted Graph",C(e)),k(e,0),i.trace(c)},"adjustClustersAndEdges"),k=u((e,r)=>{if(i.warn("extractor - ",r,C(e),e.children("D")),r>10){i.error("Bailing out");return}let n=e.nodes(),s=!1;for(const t of n){const o=e.children(t);s=s||o.length>0}if(!s){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,r);for(const t of n)if(i.debug("Extracting node",t,c,c.has(t)&&!c.get(t).externalConnections,!e.parent(t),e.node(t),e.children("D")," Depth ",r),!c.has(t))i.debug("Not a cluster",t,r);else if(c.get(t)?.clusterData?.explicitDir&&e.children(t)&&e.children(t).length>0){i.warn("Cluster with explicit dir, creating subgraph for children",t,r);const o=c.get(t).clusterData.dir,l=new y({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,l,t);const f=e.node(t)||{};e.setNode(t,{...f,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:l}),i.warn("Subgraph for cluster with explicit dir created:",t,C(l))}else if(!c.get(t).externalConnections&&e.children(t)&&e.children(t).length>0){i.warn("Cluster without external connections, without a parent and with children",t,r);let l=e.graph().rankdir==="TB"?"LR":"TB";c.get(t)?.clusterData?.dir&&(l=c.get(t).clusterData.dir,i.warn("Fixing dir",c.get(t).clusterData.dir,l));const f=new y({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,f,t);const a=e.node(t)||{};e.setNode(t,{...a,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:f}),i.debug("Old graph after copy",C(e))}else i.warn("Cluster ** ",t," **not meeting the criteria !externalConnections:",!c.get(t).externalConnections," no parent: ",!e.parent(t)," children ",e.children(t)&&e.children(t).length>0,e.children("D"),r),i.debug(c);n=e.nodes(),i.warn("New list of nodes",n);for(const t of n){const o=e.node(t);i.warn(" Now next level",t,o),o?.clusterNode&&k(o.graph,r+1)}},"extractor"),B=u((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(s=>{const t=e.children(s),o=B(e,t);n=[...n,...o]}),n},"sorter"),W=u(e=>B(e,e.children()),"sortNodesByHierarchy"),L=u((e,r,n)=>{let s=e.parent(r);for(;s&&s!==n;){const t=c.get(s);if(t&&!t.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),T=u((e,r,n)=>{const s=e.children(r)??[];for(const t of s){if(t===n||v(t,n))continue;const o=D(t,e,r);if(o&&!L(e,o,r))return o}return null},"findSafeAnchorNode");export{U as a,c as b,J as c,D as f,W as s,C as w}; +import{_ as u,l as i}from"./mermaid.core-DaDTfY6S.js";import{i as m,G as y}from"./graph-DOmOIIwC.js";import{b as _,m as X}from"./map-DxJ2ADlA.js";var j=4;function p(e){return _(e,j)}function C(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:F(e),edges:M(e)};return m(e.graph())||(r.value=p(e.graph())),r}function F(e){return X(e.nodes(),function(r){var n=e.node(r),s=e.parent(r),t={v:r};return m(n)||(t.value=n),m(s)||(t.parent=s),t})}function M(e){return X(e.edges(),function(r){var n=e.edge(r),s={v:r.v,w:r.w};return m(r.name)||(s.name=r.name),m(n)||(s.value=n),s})}var c=new Map,w=new Map,A=new Map,J=u(()=>{w.clear(),A.clear(),c.clear()},"clear"),v=u((e,r)=>{const n=w.get(r)||[];return i.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),R=u((e,r)=>{const n=w.get(r)||[];return i.info("Descendants of ",r," is ",n),i.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||v(e.v,r)||v(e.w,r)||n.includes(e.w):(i.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),b=u((e,r,n,s)=>{i.warn("Copying children of ",e,"root",s,"data",r.node(e),s);const t=r.children(e)||[];e!==s&&t.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",t),t.forEach(o=>{if(r.children(o).length>0)b(o,r,n,s);else{const l=r.node(o);i.info("cp ",o," to ",s," with parent ",e),n.setNode(o,l),s!==r.parent(o)&&(i.warn("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o))),e!==s&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",s,"data",r.node(e),s),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==s,"node!==clusterId",o!==e));const f=r.edges(o);i.debug("Copying Edges",f),f.forEach(a=>{i.info("Edge",a);const d=r.edge(a.v,a.w,a.name);i.info("Edge data",d,s);try{if(R(a,s)){const g=w.get(s)||[],E=g.includes(a.v)||v(a.v,s)||a.v===s,x=g.includes(a.w)||v(a.w,s)||a.w===s;if(E&&x)i.info("Copying as ",a.v,a.w,d,a.name),n.setEdge(a.v,a.w,d,a.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else{const N=E?s:a.v,h=x?s:a.w;i.info("Rebinding cross-boundary edge as ",N,h,d,a.name),r.setEdge(N,h,d,a.name)}}else i.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",s," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",o),r.removeNode(o)})},"copy"),O=u((e,r)=>{const n=r.children(e);let s=[...n];for(const t of n)A.set(t,e),s=[...s,...O(t,r)];return s},"extractDescendants"),P=u((e,r,n)=>{const s=e.edges().filter(a=>a.v===r||a.w===r),t=e.edges().filter(a=>a.v===n||a.w===n),o=s.map(a=>({v:a.v===r?n:a.v,w:a.w===r?r:a.w})),l=t.map(a=>({v:a.v,w:a.w}));return o.filter(a=>l.some(d=>a.v===d.v&&a.w===d.w))},"findCommonEdges"),D=u((e,r,n)=>{const s=r.children(e);if(i.trace("Searching children of id ",e,s),s.length<1)return e;let t;for(const o of s){const l=D(o,r,n),f=P(r,n,l);if(l)if(f.length>0)t=l;else return l}return t},"findNonClusterChild"),S=u(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),U=u((e,r)=>{if(!e||r>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),w.set(n,O(n,e)),c.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const s=e.children(n),t=e.edges();s.length>0?(i.debug("Cluster identified",n,w),t.forEach(o=>{const l=v(o.v,n),f=v(o.w,n);l^f&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",w.get(n)),c.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,w)});for(let n of c.keys()){const s=c.get(n).id,t=e.parent(s);t!==n&&c.has(t)&&!c.get(t).externalConnections&&(c.get(n).id=t);const o=e.edges().some(l=>l.v===n);if(s&&c.get(n)?.externalConnections&&o&&L(e,s,n)){const l=T(e,n,e.parent(s));l&&(c.get(n).id=l)}}e.edges().forEach(function(n){const s=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let t=n.v,o=n.w;if(i.warn("Fix XXX",c,"ids:",n.v,n.w,"Translating: ",c.get(n.v)," --- ",c.get(n.w)),c.get(n.v)||c.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),t=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),t!==n.v){const l=e.parent(t);c.get(l).externalConnections=!0,s.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);c.get(l).externalConnections=!0,s.toCluster=n.w}i.warn("Fix Replacing with XXX",t,o,n.name),e.setEdge(t,o,s,n.name)}}),i.warn("Adjusted Graph",C(e)),k(e,0),i.trace(c)},"adjustClustersAndEdges"),k=u((e,r)=>{if(i.warn("extractor - ",r,C(e),e.children("D")),r>10){i.error("Bailing out");return}let n=e.nodes(),s=!1;for(const t of n){const o=e.children(t);s=s||o.length>0}if(!s){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,r);for(const t of n)if(i.debug("Extracting node",t,c,c.has(t)&&!c.get(t).externalConnections,!e.parent(t),e.node(t),e.children("D")," Depth ",r),!c.has(t))i.debug("Not a cluster",t,r);else if(c.get(t)?.clusterData?.explicitDir&&e.children(t)&&e.children(t).length>0){i.warn("Cluster with explicit dir, creating subgraph for children",t,r);const o=c.get(t).clusterData.dir,l=new y({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,l,t);const f=e.node(t)||{};e.setNode(t,{...f,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:l}),i.warn("Subgraph for cluster with explicit dir created:",t,C(l))}else if(!c.get(t).externalConnections&&e.children(t)&&e.children(t).length>0){i.warn("Cluster without external connections, without a parent and with children",t,r);let l=e.graph().rankdir==="TB"?"LR":"TB";c.get(t)?.clusterData?.dir&&(l=c.get(t).clusterData.dir,i.warn("Fixing dir",c.get(t).clusterData.dir,l));const f=new y({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(t,e,f,t);const a=e.node(t)||{};e.setNode(t,{...a,clusterNode:!0,id:t,clusterData:c.get(t).clusterData,label:c.get(t).label,graph:f}),i.debug("Old graph after copy",C(e))}else i.warn("Cluster ** ",t," **not meeting the criteria !externalConnections:",!c.get(t).externalConnections," no parent: ",!e.parent(t)," children ",e.children(t)&&e.children(t).length>0,e.children("D"),r),i.debug(c);n=e.nodes(),i.warn("New list of nodes",n);for(const t of n){const o=e.node(t);i.warn(" Now next level",t,o),o?.clusterNode&&k(o.graph,r+1)}},"extractor"),B=u((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(s=>{const t=e.children(s),o=B(e,t);n=[...n,...o]}),n},"sorter"),W=u(e=>B(e,e.children()),"sortNodesByHierarchy"),L=u((e,r,n)=>{let s=e.parent(r);for(;s&&s!==n;){const t=c.get(s);if(t&&!t.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),T=u((e,r,n)=>{const s=e.children(r)??[];for(const t of s){if(t===n||v(t,n))continue;const o=D(t,e,r);if(o&&!L(e,o,r))return o}return null},"findSafeAnchorNode");export{U as a,c as b,J as c,D as f,W as s,C as w}; diff --git a/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js b/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js similarity index 99% rename from apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js rename to apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js index 5751ee639d8..4ea50361d42 100644 --- a/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-B-AWSZKD.js +++ b/apps/kimi-code/dist-web/assets/chunk-V7JOEXUC-czNi1QQl.js @@ -1,4 +1,4 @@ -import{g as tt}from"./chunk-5VM5RSS4-DzLUmY02.js";import{g as st}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as it}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as f,l as Ie,c as F,u as at,v as nt,x as Oe,d as de,a5 as rt,b as ut,a as lt,s as ct,g as ot,n as ht,o as dt,k as I,p as pt,q as At,i as ft,a6 as G}from"./mermaid.core-D8UeR6T-.js";import{f as gt}from"./chunk-32BRIVSS-wwoCS_p_.js";var we=(function(){var t=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],Ae=[1,34],b=[1,45],fe=[1,35],ge=[1,36],me=[1,37],Ce=[1,38],be=[1,27],ke=[1,28],Ee=[1,29],Te=[1,30],ye=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],De=[1,9],A=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],Fe=[1,63],Be=[1,64],_=[1,8,9,41],Pe=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Re=[22,50,60,61,82,86,87,88,89,90],Ge=[1,128],re=[12,39],_e=[1,8,9,39,41,44,46],ue=[1,8,9,22],Ue=[1,153],ze=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,J){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(De,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ie,[2,133]),t(ie,[2,134]),t(ie,[2,135]),t(ie,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be},t(A,[2,64]),{67:93,73:Fe,74:Be},t(ae,[2,83],{66:94,68:Z,69:$,70:ee,71:te,72:se}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Me,[2,89]),t(Me,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ne},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Pe,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Re,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:Ge,39:[2,36]},t(re,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(re,[2,10]),t(_e,[2,55],{11:131,12:Ge}),t(De,[2,7]),{9:[1,132]},t(ue,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(ae,[2,82],{66:136,68:Z,69:$,70:ee,71:te,72:se}),t(ae,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:Ue}),t(ze,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:Ue}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(re,[2,12]),t(_e,[2,56]),{1:[2,4]},t(ue,[2,69]),t(ue,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(ae,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ne},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Re,[2,75]),{14:[1,170]},t(re,[2,11]),t(ue,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(ze,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(_e,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],J=this.table,s="",ce=0,Ye=0,Je=2,Ke=1,Ze=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(w.yy[Ne]=this.yy[Ne]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Le=D.yylloc;e.push(Le);var $e=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(et,"popStack");function We(){var S;return S=l.pop()||D.lex()||Ke,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,V,L,xe,R={},oe,v,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=We()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var ve="";he=[];for(oe in J[V])this.terminals_[oe]&&oe>Je&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?ve="Parse error on line "+(ce+1)+`: +import{g as tt}from"./chunk-5VM5RSS4-B87d3yQb.js";import{g as st}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as it}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as f,l as Ie,c as F,v as at,x as nt,y as Oe,d as de,a5 as rt,b as ut,a as lt,s as ct,g as ot,o as ht,p as dt,k as I,q as pt,r as At,i as ft,a6 as G}from"./mermaid.core-DaDTfY6S.js";import{f as gt}from"./chunk-32BRIVSS-_Sd4SrsJ.js";var we=(function(){var t=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],Ae=[1,34],b=[1,45],fe=[1,35],ge=[1,36],me=[1,37],Ce=[1,38],be=[1,27],ke=[1,28],Ee=[1,29],Te=[1,30],ye=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],De=[1,9],A=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],Fe=[1,63],Be=[1,64],_=[1,8,9,41],Pe=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Re=[22,50,60,61,82,86,87,88,89,90],Ge=[1,128],re=[12,39],_e=[1,8,9,39,41,44,46],ue=[1,8,9,22],Ue=[1,153],ze=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,J){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(De,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ie,[2,133]),t(ie,[2,134]),t(ie,[2,135]),t(ie,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be},t(A,[2,64]),{67:93,73:Fe,74:Be},t(ae,[2,83],{66:94,68:Z,69:$,70:ee,71:te,72:se}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Me,[2,89]),t(Me,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ne},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Pe,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Re,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:Ge,39:[2,36]},t(re,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(re,[2,10]),t(_e,[2,55],{11:131,12:Ge}),t(De,[2,7]),{9:[1,132]},t(ue,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(ae,[2,82],{66:136,68:Z,69:$,70:ee,71:te,72:se}),t(ae,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:Ue}),t(ze,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:Ue}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(re,[2,12]),t(_e,[2,56]),{1:[2,4]},t(ue,[2,69]),t(ue,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(ae,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ne},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Re,[2,75]),{14:[1,170]},t(re,[2,11]),t(ue,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(ze,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(_e,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],J=this.table,s="",ce=0,Ye=0,Je=2,Ke=1,Ze=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(w.yy[Ne]=this.yy[Ne]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Le=D.yylloc;e.push(Le);var $e=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(et,"popStack");function We(){var S;return S=l.pop()||D.lex()||Ke,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,V,L,xe,R={},oe,v,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=We()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var ve="";he=[];for(oe in J[V])this.terminals_[oe]&&oe>Je&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?ve="Parse error on line "+(ce+1)+`: `+D.showPosition()+` Expecting `+he.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ve="Parse error on line "+(ce+1)+": Unexpected "+(B==Ke?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ve,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Le,expected:he})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ye=D.yyleng,s=D.yytext,ce=D.yylineno,Le=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],R.$=C[C.length-v],R._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},$e&&(R._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),xe=this.performAction.apply(R,[s,Ye,ce,w.yy,L[1],C,e].concat(Ze)),typeof xe<"u")return xe;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(R.$),e.push(R._$),Qe=J[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},He=(function(){var O={EOF:1,parseError:f(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js b/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js similarity index 87% rename from apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js rename to apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js index 8922b3fa2f0..b5ea7b6fe4d 100644 --- a/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-BZ6zSN1A.js +++ b/apps/kimi-code/dist-web/assets/chunk-VR4S4FIN-Dzr2NgNj.js @@ -1 +1 @@ -import{_ as a,e as w,l as x}from"./mermaid.core-D8UeR6T-.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; +import{_ as a,e as w,l as x}from"./mermaid.core-DaDTfY6S.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; diff --git a/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js b/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js similarity index 72% rename from apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js rename to apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js index 7698480f525..98cb654031b 100644 --- a/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BeMc-h4J.js +++ b/apps/kimi-code/dist-web/assets/chunk-XXDRQBXY-BEgNawAD.js @@ -1 +1 @@ -import{_ as a,d as o}from"./mermaid.core-D8UeR6T-.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; +import{_ as a,d as o}from"./mermaid.core-DaDTfY6S.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js new file mode 100644 index 00000000000..4c886977176 --- /dev/null +++ b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-DPiTyikT.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-czNi1QQl.js";import{_ as i}from"./mermaid.core-DaDTfY6S.js";import"./chunk-5VM5RSS4-B87d3yQb.js";import"./chunk-XXDRQBXY-BEgNawAD.js";import"./chunk-VR4S4FIN-Dzr2NgNj.js";import"./chunk-32BRIVSS-_Sd4SrsJ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js b/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js deleted file mode 100644 index ddd92afa6b4..00000000000 --- a/apps/kimi-code/dist-web/assets/classDiagram-OUVF2IWQ-H9j8pcUm.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-B-AWSZKD.js";import{_ as i}from"./mermaid.core-D8UeR6T-.js";import"./chunk-5VM5RSS4-DzLUmY02.js";import"./chunk-XXDRQBXY-BeMc-h4J.js";import"./chunk-VR4S4FIN-BZ6zSN1A.js";import"./chunk-32BRIVSS-wwoCS_p_.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js new file mode 100644 index 00000000000..4c886977176 --- /dev/null +++ b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-DPiTyikT.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-czNi1QQl.js";import{_ as i}from"./mermaid.core-DaDTfY6S.js";import"./chunk-5VM5RSS4-B87d3yQb.js";import"./chunk-XXDRQBXY-BEgNawAD.js";import"./chunk-VR4S4FIN-Dzr2NgNj.js";import"./chunk-32BRIVSS-_Sd4SrsJ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js b/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js deleted file mode 100644 index ddd92afa6b4..00000000000 --- a/apps/kimi-code/dist-web/assets/classDiagram-v2-EOCWNBFH-H9j8pcUm.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-V7JOEXUC-B-AWSZKD.js";import{_ as i}from"./mermaid.core-D8UeR6T-.js";import"./chunk-5VM5RSS4-DzLUmY02.js";import"./chunk-XXDRQBXY-BeMc-h4J.js";import"./chunk-VR4S4FIN-BZ6zSN1A.js";import"./chunk-32BRIVSS-wwoCS_p_.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram}; diff --git a/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js b/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js similarity index 99% rename from apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js rename to apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js index 971d2764a86..7ac21020026 100644 --- a/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-DPt2Cly4.js +++ b/apps/kimi-code/dist-web/assets/cose-bilkent-JH36ORCC-CDDliH5o.js @@ -1 +1 @@ -import{_ as V,l as k,d as lt}from"./mermaid.core-D8UeR6T-.js";import{c as tt}from"./cytoscape.esm-OyMbaexL.js";import{g as gt}from"./_commonjsHelpers-CqkleIqs.js";import"./index-CAYChmT7.js";var Z={exports:{}},$={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(Z)),Z.exports}var yt=vt();const Et=gt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=lt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Ot=Lt;export{Ot as render}; +import{_ as V,l as k,d as lt}from"./mermaid.core-DaDTfY6S.js";import{c as tt}from"./cytoscape.esm-OyMbaexL.js";import{g as gt}from"./_commonjsHelpers-CqkleIqs.js";import"./index-D1h84VfZ.js";var Z={exports:{}},$={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(Z)),Z.exports}var yt=vt();const Et=gt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=lt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Ot=Lt;export{Ot as render}; diff --git a/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js b/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js similarity index 99% rename from apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js rename to apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js index acb18fa8882..b2fdfebefce 100644 --- a/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-DZba3nFe.js +++ b/apps/kimi-code/dist-web/assets/cynefin-VYW2F7L2-0NmB13eq.js @@ -1,4 +1,4 @@ -import{bR as et}from"./index-CAYChmT7.js";var RI=Object.create,Ds=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,Ad=Object.getOwnPropertyNames,EI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,i=(e,t)=>Ds(e,"name",{value:t,configurable:!0}),bI=(e,t)=>function(){return e&&(t=(0,e[Ad(e)[0]])(e=0)),t},H=(e,t)=>function(){return t||(0,e[Ad(e)[0]])((t={exports:{}}).exports,t),t.exports},Vr=(e,t)=>{for(var r in t)Ds(e,r,{get:t[r],enumerable:!0})},Ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ad(t))!CI.call(e,a)&&a!==r&&Ds(e,a,{get:()=>t[a],enumerable:!(n=AI(t,a))||n.enumerable});return e},Ll=(e,t,r)=>(Ed(e,t,"default"),r),Cd=(e,t,r)=>(r=e!=null?RI(EI(e)):{},Ed(Ds(r,"default",{value:e,enumerable:!0}),e)),bd=e=>Ed(Ds({},"__esModule",{value:!0}),e),Dl={};Vr(Dl,{AnnotatedTextEdit:()=>mr,ChangeAnnotation:()=>an,ChangeAnnotationIdentifier:()=>Ke,CodeAction:()=>ef,CodeActionContext:()=>Qc,CodeActionKind:()=>Zc,CodeActionTriggerKind:()=>Xi,CodeDescription:()=>Nc,CodeLens:()=>tf,Color:()=>Co,ColorInformation:()=>Cc,ColorPresentation:()=>bc,Command:()=>nn,CompletionItem:()=>zc,CompletionItemKind:()=>Lc,CompletionItemLabelDetails:()=>Fc,CompletionItemTag:()=>xc,CompletionList:()=>jc,CreateFile:()=>ya,DeleteFile:()=>va,Diagnostic:()=>Vi,DiagnosticRelatedInformation:()=>bo,DiagnosticSeverity:()=>wc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>Vc,DocumentHighlightKind:()=>Wc,DocumentLink:()=>nf,DocumentSymbol:()=>Jc,DocumentUri:()=>Rc,EOL:()=>zg,FoldingRange:()=>Sc,FoldingRangeKind:()=>_c,FormattingOptions:()=>rf,Hover:()=>Bc,InlayHint:()=>pf,InlayHintKind:()=>wo,InlayHintLabelPart:()=>Io,InlineCompletionContext:()=>Tf,InlineCompletionItem:()=>hf,InlineCompletionList:()=>yf,InlineCompletionTriggerKind:()=>gf,InlineValueContext:()=>df,InlineValueEvaluatableExpression:()=>ff,InlineValueText:()=>uf,InlineValueVariableLookup:()=>cf,InsertReplaceEdit:()=>Mc,InsertTextFormat:()=>Dc,InsertTextMode:()=>Gc,Location:()=>Wi,LocationLink:()=>Ec,MarkedString:()=>Yi,MarkupContent:()=>Ta,MarkupKind:()=>So,OptionalVersionedTextDocumentIdentifier:()=>Hi,ParameterInformation:()=>Uc,Position:()=>ie,Range:()=>Q,RenameFile:()=>ga,SelectedCompletionInfo:()=>vf,SelectionRange:()=>af,SemanticTokenModifiers:()=>of,SemanticTokenTypes:()=>sf,SemanticTokens:()=>lf,SignatureInformation:()=>Kc,StringValue:()=>mf,SymbolInformation:()=>Yc,SymbolKind:()=>qc,SymbolTag:()=>Hc,TextDocument:()=>Rf,TextDocumentEdit:()=>qi,TextDocumentIdentifier:()=>Pc,TextDocumentItem:()=>Oc,TextEdit:()=>Yt,URI:()=>Eo,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>Fg,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>$f,WorkspaceSymbol:()=>Xc,integer:()=>Ac,uinteger:()=>Ki});var Rc,Eo,Ac,Ki,ie,Q,Wi,Ec,Co,Cc,bc,_c,Sc,bo,wc,Ic,Nc,Vi,nn,Yt,an,Ke,mr,qi,ya,ga,va,_o,ki,Ku,Fg,Pc,kc,Hi,Oc,So,Ta,Lc,Dc,xc,Mc,Gc,Fc,zc,jc,Yi,Bc,Uc,Kc,Wc,Vc,qc,Hc,Yc,Xc,Jc,Zc,Xi,Qc,ef,tf,rf,nf,af,sf,of,lf,uf,cf,ff,df,wo,Io,pf,mf,hf,yf,gf,vf,Tf,$f,zg,Rf,lh,A,xs=bI({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Rc||(Rc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Eo||(Eo={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ac||(Ac={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ki||(Ki={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Ki.MAX_VALUE),a===Number.MAX_VALUE&&(a=Ki.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.line)&&A.uinteger(a.character)}i(r,"is"),e.is=r})(ie||(ie={})),(function(e){function t(n,a,s,o){if(A.uinteger(n)&&A.uinteger(a)&&A.uinteger(s)&&A.uinteger(o))return{start:ie.create(n,a),end:ie.create(s,o)};if(ie.is(n)&&ie.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ie.is(a.start)&&ie.is(a.end)}i(r,"is"),e.is=r})(Q||(Q={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(A.string(a.uri)||A.undefined(a.uri))}i(r,"is"),e.is=r})(Wi||(Wi={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.targetRange)&&A.string(a.targetUri)&&Q.is(a.targetSelectionRange)&&(Q.is(a.originSelectionRange)||A.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(Ec||(Ec={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.numberRange(a.red,0,1)&&A.numberRange(a.green,0,1)&&A.numberRange(a.blue,0,1)&&A.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(Co||(Co={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&Q.is(a.range)&&Co.is(a.color)}i(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.undefined(a.textEdit)||Yt.is(a))&&(A.undefined(a.additionalTextEdits)||A.typedArray(a.additionalTextEdits,Yt.is))}i(r,"is"),e.is=r})(bc||(bc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={})),(function(e){function t(n,a,s,o,l,u){const c={startLine:n,endLine:a};return A.defined(s)&&(c.startCharacter=s),A.defined(o)&&(c.endCharacter=o),A.defined(l)&&(c.kind=l),A.defined(u)&&(c.collapsedText=u),c}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.uinteger(a.startLine)&&A.uinteger(a.startLine)&&(A.undefined(a.startCharacter)||A.uinteger(a.startCharacter))&&(A.undefined(a.endCharacter)||A.uinteger(a.endCharacter))&&(A.undefined(a.kind)||A.string(a.kind))}i(r,"is"),e.is=r})(Sc||(Sc={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Wi.is(a.location)&&A.string(a.message)}i(r,"is"),e.is=r})(bo||(bo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(wc||(wc={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&A.string(n.href)}i(t,"is"),e.is=t})(Nc||(Nc={})),(function(e){function t(n,a,s,o,l,u){let c={range:n,message:a};return A.defined(s)&&(c.severity=s),A.defined(o)&&(c.code=o),A.defined(l)&&(c.source=l),A.defined(u)&&(c.relatedInformation=u),c}i(t,"create"),e.create=t;function r(n){var a;let s=n;return A.defined(s)&&Q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,bo.is))}i(r,"is"),e.is=r})(Vi||(Vi={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return A.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.title)&&A.string(a.command)}i(r,"is"),e.is=r})(nn||(nn={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&Q.is(o.range)}i(a,"is"),e.is=a})(Yt||(Yt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(A.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(an||(an={})),(function(e){function t(r){const n=r;return A.string(n)}i(t,"is"),e.is=t})(Ke||(Ke={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return Yt.is(o)&&(an.is(o.annotationId)||Ke.is(o.annotationId))}i(a,"is"),e.is=a})(mr||(mr={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Hi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(qi||(qi={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&A.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ya||(ya={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&A.string(a.oldUri)&&A.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ga||(ga={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&A.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||A.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||A.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(va||(va={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>A.string(a.kind)?ya.is(a)||ga.is(a)||va.is(a):qi.is(a)))}i(t,"is"),e.is=t})(_o||(_o={})),ki=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=Yt.insert(e,t):Ke.is(r)?(a=r,n=mr.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=Yt.replace(e,t):Ke.is(r)?(a=r,n=mr.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=Yt.del(e):Ke.is(t)?(n=t,r=mr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=mr.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Ku=class{static{i(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(Ke.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Fg=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ku(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(qi.is(t)){const r=new ki(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new ki(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Hi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new ki(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new ki(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ku,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ya.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=ya.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;an.is(r)||Ke.is(r)?a=r:n=r;let s,o;if(a===void 0?s=ga.create(e,t,n):(o=Ke.is(a)?a:this._changeAnnotations.manage(a),s=ga.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=va.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=va.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)}i(r,"is"),e.is=r})(Pc||(Pc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.integer(a.version)}i(r,"is"),e.is=r})(kc||(kc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&(a.version===null||A.integer(a.version))}i(r,"is"),e.is=r})(Hi||(Hi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.string(a.languageId)&&A.integer(a.version)&&A.string(a.text)}i(r,"is"),e.is=r})(Oc||(Oc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(So||(So={})),(function(e){function t(r){const n=r;return A.objectLiteral(r)&&So.is(n.kind)&&A.string(n.value)}i(t,"is"),e.is=t})(Ta||(Ta={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lc||(Lc={})),(function(e){e.PlainText=1,e.Snippet=2})(Dc||(Dc={})),(function(e){e.Deprecated=1})(xc||(xc={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&A.string(a.newText)&&Q.is(a.insert)&&Q.is(a.replace)}i(r,"is"),e.is=r})(Mc||(Mc={})),(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={})),(function(e){function t(r){const n=r;return n&&(A.string(n.detail)||n.detail===void 0)&&(A.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(Fc||(Fc={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(zc||(zc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(jc||(jc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return A.string(a)||A.objectLiteral(a)&&A.string(a.language)&&A.string(a.value)}i(r,"is"),e.is=r})(Yi||(Yi={})),(function(e){function t(r){let n=r;return!!n&&A.objectLiteral(n)&&(Ta.is(n.contents)||Yi.is(n.contents)||A.typedArray(n.contents,Yi.is))&&(r.range===void 0||Q.is(r.range))}i(t,"is"),e.is=t})(Bc||(Bc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})(Uc||(Uc={})),(function(e){function t(r,n,...a){let s={label:r};return A.defined(n)&&(s.documentation=n),A.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Kc||(Kc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Wc||(Wc={})),(function(e){function t(r,n){let a={range:r};return A.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(Vc||(Vc={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qc||(qc={})),(function(e){e.Deprecated=1})(Hc||(Hc={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(Yc||(Yc={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(Xc||(Xc={})),(function(e){function t(n,a,s,o,l,u){let c={name:n,detail:a,kind:s,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.name)&&A.number(a.kind)&&Q.is(a.range)&&Q.is(a.selectionRange)&&(a.detail===void 0||A.string(a.detail))&&(a.deprecated===void 0||A.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(Jc||(Jc={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Zc||(Zc={})),(function(e){e.Invoked=1,e.Automatic=2})(Xi||(Xi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.typedArray(a.diagnostics,Vi.is)&&(a.only===void 0||A.typedArray(a.only,A.string))&&(a.triggerKind===void 0||a.triggerKind===Xi.Invoked||a.triggerKind===Xi.Automatic)}i(r,"is"),e.is=r})(Qc||(Qc={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):nn.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.title)&&(a.diagnostics===void 0||A.typedArray(a.diagnostics,Vi.is))&&(a.kind===void 0||A.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||nn.is(a.command))&&(a.isPreferred===void 0||A.boolean(a.isPreferred))&&(a.edit===void 0||_o.is(a.edit))}i(r,"is"),e.is=r})(ef||(ef={})),(function(e){function t(n,a){let s={range:n};return A.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.command)||nn.is(a.command))}i(r,"is"),e.is=r})(tf||(tf={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.uinteger(a.tabSize)&&A.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.target)||A.string(a.target))}i(r,"is"),e.is=r})(nf||(nf={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(af||(af={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(sf||(sf={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(of||(of={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(lf||(lf={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.string(a.text)}i(r,"is"),e.is=r})(uf||(uf={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.boolean(a.caseSensitiveLookup)&&(A.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(cf||(cf={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&(A.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(ff||(ff={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.defined(a)&&Q.is(n.stoppedLocation)}i(r,"is"),e.is=r})(df||(df={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})(wo||(wo={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.location===void 0||Wi.is(a.location))&&(a.command===void 0||nn.is(a.command))}i(r,"is"),e.is=r})(Io||(Io={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&ie.is(a.position)&&(A.string(a.label)||A.typedArray(a.label,Io.is))&&(a.kind===void 0||wo.is(a.kind))&&a.textEdits===void 0||A.typedArray(a.textEdits,Yt.is)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.paddingLeft===void 0||A.boolean(a.paddingLeft))&&(a.paddingRight===void 0||A.boolean(a.paddingRight))}i(r,"is"),e.is=r})(pf||(pf={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(mf||(mf={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(hf||(hf={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(yf||(yf={})),(function(e){e.Invoked=0,e.Automatic=1})(gf||(gf={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(vf||(vf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(Tf||(Tf={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&Eo.is(n.uri)&&A.string(n.name)}i(t,"is"),e.is=t})($f||($f={})),zg=[` +import{bR as et}from"./index-D1h84VfZ.js";var RI=Object.create,Ds=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,Ad=Object.getOwnPropertyNames,EI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,i=(e,t)=>Ds(e,"name",{value:t,configurable:!0}),bI=(e,t)=>function(){return e&&(t=(0,e[Ad(e)[0]])(e=0)),t},H=(e,t)=>function(){return t||(0,e[Ad(e)[0]])((t={exports:{}}).exports,t),t.exports},Vr=(e,t)=>{for(var r in t)Ds(e,r,{get:t[r],enumerable:!0})},Ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ad(t))!CI.call(e,a)&&a!==r&&Ds(e,a,{get:()=>t[a],enumerable:!(n=AI(t,a))||n.enumerable});return e},Ll=(e,t,r)=>(Ed(e,t,"default"),r),Cd=(e,t,r)=>(r=e!=null?RI(EI(e)):{},Ed(Ds(r,"default",{value:e,enumerable:!0}),e)),bd=e=>Ed(Ds({},"__esModule",{value:!0}),e),Dl={};Vr(Dl,{AnnotatedTextEdit:()=>mr,ChangeAnnotation:()=>an,ChangeAnnotationIdentifier:()=>Ke,CodeAction:()=>ef,CodeActionContext:()=>Qc,CodeActionKind:()=>Zc,CodeActionTriggerKind:()=>Xi,CodeDescription:()=>Nc,CodeLens:()=>tf,Color:()=>Co,ColorInformation:()=>Cc,ColorPresentation:()=>bc,Command:()=>nn,CompletionItem:()=>zc,CompletionItemKind:()=>Lc,CompletionItemLabelDetails:()=>Fc,CompletionItemTag:()=>xc,CompletionList:()=>jc,CreateFile:()=>ya,DeleteFile:()=>va,Diagnostic:()=>Vi,DiagnosticRelatedInformation:()=>bo,DiagnosticSeverity:()=>wc,DiagnosticTag:()=>Ic,DocumentHighlight:()=>Vc,DocumentHighlightKind:()=>Wc,DocumentLink:()=>nf,DocumentSymbol:()=>Jc,DocumentUri:()=>Rc,EOL:()=>zg,FoldingRange:()=>Sc,FoldingRangeKind:()=>_c,FormattingOptions:()=>rf,Hover:()=>Bc,InlayHint:()=>pf,InlayHintKind:()=>wo,InlayHintLabelPart:()=>Io,InlineCompletionContext:()=>Tf,InlineCompletionItem:()=>hf,InlineCompletionList:()=>yf,InlineCompletionTriggerKind:()=>gf,InlineValueContext:()=>df,InlineValueEvaluatableExpression:()=>ff,InlineValueText:()=>uf,InlineValueVariableLookup:()=>cf,InsertReplaceEdit:()=>Mc,InsertTextFormat:()=>Dc,InsertTextMode:()=>Gc,Location:()=>Wi,LocationLink:()=>Ec,MarkedString:()=>Yi,MarkupContent:()=>Ta,MarkupKind:()=>So,OptionalVersionedTextDocumentIdentifier:()=>Hi,ParameterInformation:()=>Uc,Position:()=>ie,Range:()=>Q,RenameFile:()=>ga,SelectedCompletionInfo:()=>vf,SelectionRange:()=>af,SemanticTokenModifiers:()=>of,SemanticTokenTypes:()=>sf,SemanticTokens:()=>lf,SignatureInformation:()=>Kc,StringValue:()=>mf,SymbolInformation:()=>Yc,SymbolKind:()=>qc,SymbolTag:()=>Hc,TextDocument:()=>Rf,TextDocumentEdit:()=>qi,TextDocumentIdentifier:()=>Pc,TextDocumentItem:()=>Oc,TextEdit:()=>Yt,URI:()=>Eo,VersionedTextDocumentIdentifier:()=>kc,WorkspaceChange:()=>Fg,WorkspaceEdit:()=>_o,WorkspaceFolder:()=>$f,WorkspaceSymbol:()=>Xc,integer:()=>Ac,uinteger:()=>Ki});var Rc,Eo,Ac,Ki,ie,Q,Wi,Ec,Co,Cc,bc,_c,Sc,bo,wc,Ic,Nc,Vi,nn,Yt,an,Ke,mr,qi,ya,ga,va,_o,ki,Ku,Fg,Pc,kc,Hi,Oc,So,Ta,Lc,Dc,xc,Mc,Gc,Fc,zc,jc,Yi,Bc,Uc,Kc,Wc,Vc,qc,Hc,Yc,Xc,Jc,Zc,Xi,Qc,ef,tf,rf,nf,af,sf,of,lf,uf,cf,ff,df,wo,Io,pf,mf,hf,yf,gf,vf,Tf,$f,zg,Rf,lh,A,xs=bI({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Rc||(Rc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Eo||(Eo={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ac||(Ac={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Ki||(Ki={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Ki.MAX_VALUE),a===Number.MAX_VALUE&&(a=Ki.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&A.uinteger(a.line)&&A.uinteger(a.character)}i(r,"is"),e.is=r})(ie||(ie={})),(function(e){function t(n,a,s,o){if(A.uinteger(n)&&A.uinteger(a)&&A.uinteger(s)&&A.uinteger(o))return{start:ie.create(n,a),end:ie.create(s,o)};if(ie.is(n)&&ie.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&ie.is(a.start)&&ie.is(a.end)}i(r,"is"),e.is=r})(Q||(Q={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(A.string(a.uri)||A.undefined(a.uri))}i(r,"is"),e.is=r})(Wi||(Wi={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.targetRange)&&A.string(a.targetUri)&&Q.is(a.targetSelectionRange)&&(Q.is(a.originSelectionRange)||A.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(Ec||(Ec={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.numberRange(a.red,0,1)&&A.numberRange(a.green,0,1)&&A.numberRange(a.blue,0,1)&&A.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(Co||(Co={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&Q.is(a.range)&&Co.is(a.color)}i(r,"is"),e.is=r})(Cc||(Cc={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.undefined(a.textEdit)||Yt.is(a))&&(A.undefined(a.additionalTextEdits)||A.typedArray(a.additionalTextEdits,Yt.is))}i(r,"is"),e.is=r})(bc||(bc={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_c||(_c={})),(function(e){function t(n,a,s,o,l,u){const c={startLine:n,endLine:a};return A.defined(s)&&(c.startCharacter=s),A.defined(o)&&(c.endCharacter=o),A.defined(l)&&(c.kind=l),A.defined(u)&&(c.collapsedText=u),c}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.uinteger(a.startLine)&&A.uinteger(a.startLine)&&(A.undefined(a.startCharacter)||A.uinteger(a.startCharacter))&&(A.undefined(a.endCharacter)||A.uinteger(a.endCharacter))&&(A.undefined(a.kind)||A.string(a.kind))}i(r,"is"),e.is=r})(Sc||(Sc={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Wi.is(a.location)&&A.string(a.message)}i(r,"is"),e.is=r})(bo||(bo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(wc||(wc={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(Ic||(Ic={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&A.string(n.href)}i(t,"is"),e.is=t})(Nc||(Nc={})),(function(e){function t(n,a,s,o,l,u){let c={range:n,message:a};return A.defined(s)&&(c.severity=s),A.defined(o)&&(c.code=o),A.defined(l)&&(c.source=l),A.defined(u)&&(c.relatedInformation=u),c}i(t,"create"),e.create=t;function r(n){var a;let s=n;return A.defined(s)&&Q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,bo.is))}i(r,"is"),e.is=r})(Vi||(Vi={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return A.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.title)&&A.string(a.command)}i(r,"is"),e.is=r})(nn||(nn={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return A.objectLiteral(o)&&A.string(o.newText)&&Q.is(o.range)}i(a,"is"),e.is=a})(Yt||(Yt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&A.string(a.label)&&(A.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&(A.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(an||(an={})),(function(e){function t(r){const n=r;return A.string(n)}i(t,"is"),e.is=t})(Ke||(Ke={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return Yt.is(o)&&(an.is(o.annotationId)||Ke.is(o.annotationId))}i(a,"is"),e.is=a})(mr||(mr={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Hi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(qi||(qi={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&A.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ya||(ya={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&A.string(a.oldUri)&&A.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||A.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||A.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(ga||(ga={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&A.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||A.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||A.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||Ke.is(a.annotationId))}i(r,"is"),e.is=r})(va||(va={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>A.string(a.kind)?ya.is(a)||ga.is(a)||va.is(a):qi.is(a)))}i(t,"is"),e.is=t})(_o||(_o={})),ki=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=Yt.insert(e,t):Ke.is(r)?(a=r,n=mr.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=Yt.replace(e,t):Ke.is(r)?(a=r,n=mr.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=mr.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=Yt.del(e):Ke.is(t)?(n=t,r=mr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=mr.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Ku=class{static{i(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(Ke.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Fg=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ku(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(qi.is(t)){const r=new ki(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new ki(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Hi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new ki(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new ki(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ku,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ya.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=ya.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;an.is(r)||Ke.is(r)?a=r:n=r;let s,o;if(a===void 0?s=ga.create(e,t,n):(o=Ke.is(a)?a:this._changeAnnotations.manage(a),s=ga.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;an.is(t)||Ke.is(t)?n=t:r=t;let a,s;if(n===void 0?a=va.create(e,r):(s=Ke.is(n)?n:this._changeAnnotations.manage(n),a=va.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)}i(r,"is"),e.is=r})(Pc||(Pc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.integer(a.version)}i(r,"is"),e.is=r})(kc||(kc={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&(a.version===null||A.integer(a.version))}i(r,"is"),e.is=r})(Hi||(Hi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.string(a.uri)&&A.string(a.languageId)&&A.integer(a.version)&&A.string(a.text)}i(r,"is"),e.is=r})(Oc||(Oc={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(So||(So={})),(function(e){function t(r){const n=r;return A.objectLiteral(r)&&So.is(n.kind)&&A.string(n.value)}i(t,"is"),e.is=t})(Ta||(Ta={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lc||(Lc={})),(function(e){e.PlainText=1,e.Snippet=2})(Dc||(Dc={})),(function(e){e.Deprecated=1})(xc||(xc={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&A.string(a.newText)&&Q.is(a.insert)&&Q.is(a.replace)}i(r,"is"),e.is=r})(Mc||(Mc={})),(function(e){e.asIs=1,e.adjustIndentation=2})(Gc||(Gc={})),(function(e){function t(r){const n=r;return n&&(A.string(n.detail)||n.detail===void 0)&&(A.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(Fc||(Fc={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(zc||(zc={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(jc||(jc={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return A.string(a)||A.objectLiteral(a)&&A.string(a.language)&&A.string(a.value)}i(r,"is"),e.is=r})(Yi||(Yi={})),(function(e){function t(r){let n=r;return!!n&&A.objectLiteral(n)&&(Ta.is(n.contents)||Yi.is(n.contents)||A.typedArray(n.contents,Yi.is))&&(r.range===void 0||Q.is(r.range))}i(t,"is"),e.is=t})(Bc||(Bc={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})(Uc||(Uc={})),(function(e){function t(r,n,...a){let s={label:r};return A.defined(n)&&(s.documentation=n),A.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Kc||(Kc={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Wc||(Wc={})),(function(e){function t(r,n){let a={range:r};return A.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(Vc||(Vc={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qc||(qc={})),(function(e){e.Deprecated=1})(Hc||(Hc={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(Yc||(Yc={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(Xc||(Xc={})),(function(e){function t(n,a,s,o,l,u){let c={name:n,detail:a,kind:s,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.name)&&A.number(a.kind)&&Q.is(a.range)&&Q.is(a.selectionRange)&&(a.detail===void 0||A.string(a.detail))&&(a.deprecated===void 0||A.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(Jc||(Jc={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Zc||(Zc={})),(function(e){e.Invoked=1,e.Automatic=2})(Xi||(Xi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.typedArray(a.diagnostics,Vi.is)&&(a.only===void 0||A.typedArray(a.only,A.string))&&(a.triggerKind===void 0||a.triggerKind===Xi.Invoked||a.triggerKind===Xi.Automatic)}i(r,"is"),e.is=r})(Qc||(Qc={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):nn.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&A.string(a.title)&&(a.diagnostics===void 0||A.typedArray(a.diagnostics,Vi.is))&&(a.kind===void 0||A.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||nn.is(a.command))&&(a.isPreferred===void 0||A.boolean(a.isPreferred))&&(a.edit===void 0||_o.is(a.edit))}i(r,"is"),e.is=r})(ef||(ef={})),(function(e){function t(n,a){let s={range:n};return A.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.command)||nn.is(a.command))}i(r,"is"),e.is=r})(tf||(tf={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&A.uinteger(a.tabSize)&&A.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(rf||(rf={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return A.defined(a)&&Q.is(a.range)&&(A.undefined(a.target)||A.string(a.target))}i(r,"is"),e.is=r})(nf||(nf={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return A.objectLiteral(a)&&Q.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(af||(af={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(sf||(sf={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(of||(of={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(lf||(lf={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.string(a.text)}i(r,"is"),e.is=r})(uf||(uf={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&A.boolean(a.caseSensitiveLookup)&&(A.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(cf||(cf={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&Q.is(a.range)&&(A.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(ff||(ff={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return A.defined(a)&&Q.is(n.stoppedLocation)}i(r,"is"),e.is=r})(df||(df={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})(wo||(wo={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.location===void 0||Wi.is(a.location))&&(a.command===void 0||nn.is(a.command))}i(r,"is"),e.is=r})(Io||(Io={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return A.objectLiteral(a)&&ie.is(a.position)&&(A.string(a.label)||A.typedArray(a.label,Io.is))&&(a.kind===void 0||wo.is(a.kind))&&a.textEdits===void 0||A.typedArray(a.textEdits,Yt.is)&&(a.tooltip===void 0||A.string(a.tooltip)||Ta.is(a.tooltip))&&(a.paddingLeft===void 0||A.boolean(a.paddingLeft))&&(a.paddingRight===void 0||A.boolean(a.paddingRight))}i(r,"is"),e.is=r})(pf||(pf={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(mf||(mf={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(hf||(hf={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(yf||(yf={})),(function(e){e.Invoked=0,e.Automatic=1})(gf||(gf={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(vf||(vf={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(Tf||(Tf={})),(function(e){function t(r){const n=r;return A.objectLiteral(n)&&Eo.is(n.uri)&&A.string(n.name)}i(t,"is"),e.is=t})($f||($f={})),zg=[` `,`\r `,"\r"],(function(e){function t(s,o,l,u){return new lh(s,o,l,u)}i(t,"create"),e.create=t;function r(s){let o=s;return!!(A.defined(o)&&A.string(o.uri)&&(A.undefined(o.languageId)||A.string(o.languageId))&&A.uinteger(o.lineCount)&&A.func(o.getText)&&A.func(o.positionAt)&&A.func(o.offsetAt))}i(r,"is"),e.is=r;function n(s,o){let l=s.getText(),u=a(o,(f,d)=>{let m=f.range.start.line-d.range.start.line;return m===0?f.range.start.character-d.range.start.character:m}),c=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],m=s.offsetAt(d.range.start),g=s.offsetAt(d.range.end);if(g<=c)l=l.substring(0,m)+d.newText+l.substring(g,l.length);else throw new Error("Overlapping edit");c=m}return l}i(n,"applyEdits"),e.applyEdits=n;function a(s,o){if(s.length<=1)return s;const l=s.length/2|0,u=s.slice(0,l),c=s.slice(l);a(u,o),a(c,o);let f=0,d=0,m=0;for(;f({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=s(()=>{At(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),Wt={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),It(e)},"parse")};function V(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(V,"seededRandom");function st(t){let e=0;for(let n=0;n{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,Et=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=_t();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,_=i+b*2,E=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,E,_,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${_} ${E}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Z=it(o.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Z,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Z+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,G=-x/C,ht=$/C,et=M+G*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Ft={draw:Et},Vt=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Vt();return` +import{p as xt}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{s as gt,g as $t,p as bt,o as wt,a as Ct,b as vt,_ as s,l as O,F as Dt,e as kt,q as Tt,B as U,z as Q,D as At,W as ot}from"./mermaid.core-DaDTfY6S.js";import{p as Bt}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Q().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),Y={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,Y),Y.setDomains(t.domains),Y.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Rt=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Rt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,F=o.boundaryAmplitude,R=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,R,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${R} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),V=Ft(i,f),Z=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=V[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Z,F)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Z+100,F)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=V[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=V[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=V[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const G=x.getBBox();G.width>0&&($=G.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=V[y.from],N=V[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,G=-x/C,ht=$/C,et=M+G*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Vt={draw:_t},Et=s(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return` .cynefinDomain { stroke: none; } @@ -59,4 +59,4 @@ import{p as xt}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{s as gt,g as $t,o as bt font-weight: bold; fill: ${t.labelColor}; } - `},"styles"),Gt=Ht,Ut={parser:Wt,db:Y,renderer:Ft,styles:Gt};export{Ut as diagram}; + `},"styles"),Gt=Ht,Ut={parser:It,db:Y,renderer:Vt,styles:Gt};export{Ut as diagram}; diff --git a/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js b/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js similarity index 97% rename from apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js rename to apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js index c82257adf93..97893ee8a1c 100644 --- a/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-Cnocta_B.js +++ b/apps/kimi-code/dist-web/assets/dagre-VKFMJZFB-BV_7O_eU.js @@ -1,4 +1,4 @@ -import{c as O,w as I,a as J,f as P,b as E,s as A}from"./chunk-RYQCIY6F-DfJNuYFs.js";import{_ as w,am as v,an as D,ao as H,ap as Y,l,c as _,aq as W,ar as $,ag as j,as as q,ah as R,af as F,at as z,au as K,av as G}from"./mermaid.core-D8UeR6T-.js";import{G as Q}from"./graph-DOmOIIwC.js";import{l as U}from"./layout-D-LzfAck.js";import"./map-DxJ2ADlA.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var C=w((s,t,g)=>Math.max(t,Math.min(g,s)),"clamp"),B=w((s="TB")=>{switch(s){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),V=w(s=>s==="flowchart"||s==="flowchart-v2"||s==="stateDiagram","shouldMergeSelfLoopSegments"),Z=w((s,t,g,m,c)=>{const o=[],r=new Set;if(g.forEach(({start:i,end:n})=>{i!==m&&r.add(i),n!==m&&r.add(n)}),r.forEach(i=>{const n=s.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)}),o.length===0&&g.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)})}),o.length===0)return B(c);const f=o.reduce((i,n)=>({x:i.x+n.x/o.length,y:i.y+n.y/o.length}),{x:0,y:0}),h=f.x-t.x,a=f.y-t.y;return Math.abs(h)>Math.abs(a)?h>0?"right":"left":Math.abs(a)>0?a>0?"bottom":"top":B(c)},"getSelfLoopSide"),ee=w((s,t="top",g=0,m=0)=>{const c=s.x,o=s.y-g,r=s.width/2,f=s.height/2,h=Math.max(36,Math.min(100,s.width*.8)),a=C(Math.max(m,s.width*.35),36,h),i=C(Math.min(s.width,s.height)*.45,24,48);switch(t){case"bottom":{const n=o+f;return[{x:c-a/2,y:n},{x:c-a/2,y:n+i},{x:c+a/2,y:n+i},{x:c+a/2,y:n}]}case"right":{const n=c+r;return[{x:n,y:o-a/2},{x:n+i,y:o-a/2},{x:n+i,y:o+a/2},{x:n,y:o+a/2}]}case"left":{const n=c-r;return[{x:n,y:o-a/2},{x:n-i,y:o-a/2},{x:n-i,y:o+a/2},{x:n,y:o+a/2}]}case"top":default:{const n=o-f;return[{x:c-a/2,y:n},{x:c-a/2,y:n-i},{x:c+a/2,y:n-i},{x:c+a/2,y:n}]}}},"getSelfLoopPoints"),te=w((s,t,g="top",m=0,c={})=>{const r=s.x,f=s.y-m,h=c.width??0,a=c.height??0;switch(g){case"bottom":return{x:r,y:Math.max(...t.map(i=>i.y))+a/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+h/2+4,y:f};case"left":return{x:Math.min(...t.map(i=>i.x))-h/2-4,y:f};case"top":default:return{x:r,y:Math.min(...t.map(i=>i.y))-a/2-4}}},"getSelfLoopLabelPosition"),ne=w((s,t=0,{mergeSelfLoops:g=!0}={})=>{const m=new Map,c=[],o=s.graph()?.rankdir;return s.edges().forEach(r=>{const f=s.edge(r);if(g&&f.selfLoop){const h=f.selfLoop.id;m.has(h)||m.set(h,[]),m.get(h).push({edge:f,start:r.v,end:r.w})}else c.push({edge:f,start:r.v,end:r.w})}),m.forEach(r=>{if(r.length!==3){r.forEach(L=>c.push(L));return}r.sort((L,d)=>L.edge.selfLoop.order-d.edge.selfLoop.order);const[f,h,a]=r,i=f.edge.originalEdge??h.edge.originalEdge??a.edge.originalEdge??h.edge,n=s.node(i.start);if(!n){r.forEach(L=>c.push(L));return}const p={width:h.edge.width,height:h.edge.height},y=Z(s,n,r,i.start,o),X=ee(n,y,t,p.width??0),S=te(n,X,y,t,p),b={...h.edge,...i,id:i.id,points:X,start:i.start,end:i.end,x:S.x,y:S.y,width:p.width,height:p.height,labelStyle:h.edge.labelStyle,fromCluster:f.edge.fromCluster??h.edge.fromCluster??a.edge.fromCluster,toCluster:f.edge.toCluster??h.edge.toCluster??a.edge.toCluster};delete b.selfLoop,delete b.originalEdge,c.push({edge:b,start:b.start,end:b.end})}),c},"getEdgesToRender"),T=w(async(s,t,g,m,c,o)=>{l.warn("Graph in recursive render:XAX",I(t),c);const r=t.graph().rankdir;l.trace("Dir in recursive render - dir:",r);const f=s.insert("g").attr("class","root");t.nodes()?l.info("Recursive render XXX",t.nodes()):l.info("No nodes found for",t),t.edges().length>0&&l.info("Recursive edges",t.edge(t.edges()[0]));const h=f.insert("g").attr("class","clusters"),a=f.insert("g").attr("class","edgePaths"),i=f.insert("g").attr("class","edgeLabels"),n=f.insert("g").attr("class","nodes"),p=V(g);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(c!==void 0){const u=JSON.parse(JSON.stringify(c.clusterData));l.trace(`Setting data for parent cluster XXX +import{c as O,w as I,a as J,f as P,b as E,s as A}from"./chunk-RYQCIY6F-D1Yl7opn.js";import{_ as w,am as v,an as D,ao as H,ap as Y,l,c as _,aq as W,ar as $,ag as j,as as q,ah as R,af as F,at as z,au as K,av as G}from"./mermaid.core-DaDTfY6S.js";import{G as Q}from"./graph-DOmOIIwC.js";import{l as U}from"./layout-D-LzfAck.js";import"./map-DxJ2ADlA.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var C=w((s,t,g)=>Math.max(t,Math.min(g,s)),"clamp"),B=w((s="TB")=>{switch(s){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),V=w(s=>s==="flowchart"||s==="flowchart-v2"||s==="stateDiagram","shouldMergeSelfLoopSegments"),Z=w((s,t,g,m,c)=>{const o=[],r=new Set;if(g.forEach(({start:i,end:n})=>{i!==m&&r.add(i),n!==m&&r.add(n)}),r.forEach(i=>{const n=s.node(i);typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)}),o.length===0&&g.forEach(({edge:i})=>{(i.points??[]).forEach(n=>{typeof n?.x=="number"&&typeof n?.y=="number"&&o.push(n)})}),o.length===0)return B(c);const f=o.reduce((i,n)=>({x:i.x+n.x/o.length,y:i.y+n.y/o.length}),{x:0,y:0}),h=f.x-t.x,a=f.y-t.y;return Math.abs(h)>Math.abs(a)?h>0?"right":"left":Math.abs(a)>0?a>0?"bottom":"top":B(c)},"getSelfLoopSide"),ee=w((s,t="top",g=0,m=0)=>{const c=s.x,o=s.y-g,r=s.width/2,f=s.height/2,h=Math.max(36,Math.min(100,s.width*.8)),a=C(Math.max(m,s.width*.35),36,h),i=C(Math.min(s.width,s.height)*.45,24,48);switch(t){case"bottom":{const n=o+f;return[{x:c-a/2,y:n},{x:c-a/2,y:n+i},{x:c+a/2,y:n+i},{x:c+a/2,y:n}]}case"right":{const n=c+r;return[{x:n,y:o-a/2},{x:n+i,y:o-a/2},{x:n+i,y:o+a/2},{x:n,y:o+a/2}]}case"left":{const n=c-r;return[{x:n,y:o-a/2},{x:n-i,y:o-a/2},{x:n-i,y:o+a/2},{x:n,y:o+a/2}]}case"top":default:{const n=o-f;return[{x:c-a/2,y:n},{x:c-a/2,y:n-i},{x:c+a/2,y:n-i},{x:c+a/2,y:n}]}}},"getSelfLoopPoints"),te=w((s,t,g="top",m=0,c={})=>{const r=s.x,f=s.y-m,h=c.width??0,a=c.height??0;switch(g){case"bottom":return{x:r,y:Math.max(...t.map(i=>i.y))+a/2+4};case"right":return{x:Math.max(...t.map(i=>i.x))+h/2+4,y:f};case"left":return{x:Math.min(...t.map(i=>i.x))-h/2-4,y:f};case"top":default:return{x:r,y:Math.min(...t.map(i=>i.y))-a/2-4}}},"getSelfLoopLabelPosition"),ne=w((s,t=0,{mergeSelfLoops:g=!0}={})=>{const m=new Map,c=[],o=s.graph()?.rankdir;return s.edges().forEach(r=>{const f=s.edge(r);if(g&&f.selfLoop){const h=f.selfLoop.id;m.has(h)||m.set(h,[]),m.get(h).push({edge:f,start:r.v,end:r.w})}else c.push({edge:f,start:r.v,end:r.w})}),m.forEach(r=>{if(r.length!==3){r.forEach(L=>c.push(L));return}r.sort((L,d)=>L.edge.selfLoop.order-d.edge.selfLoop.order);const[f,h,a]=r,i=f.edge.originalEdge??h.edge.originalEdge??a.edge.originalEdge??h.edge,n=s.node(i.start);if(!n){r.forEach(L=>c.push(L));return}const p={width:h.edge.width,height:h.edge.height},y=Z(s,n,r,i.start,o),X=ee(n,y,t,p.width??0),S=te(n,X,y,t,p),b={...h.edge,...i,id:i.id,points:X,start:i.start,end:i.end,x:S.x,y:S.y,width:p.width,height:p.height,labelStyle:h.edge.labelStyle,fromCluster:f.edge.fromCluster??h.edge.fromCluster??a.edge.fromCluster,toCluster:f.edge.toCluster??h.edge.toCluster??a.edge.toCluster};delete b.selfLoop,delete b.originalEdge,c.push({edge:b,start:b.start,end:b.end})}),c},"getEdgesToRender"),T=w(async(s,t,g,m,c,o)=>{l.warn("Graph in recursive render:XAX",I(t),c);const r=t.graph().rankdir;l.trace("Dir in recursive render - dir:",r);const f=s.insert("g").attr("class","root");t.nodes()?l.info("Recursive render XXX",t.nodes()):l.info("No nodes found for",t),t.edges().length>0&&l.info("Recursive edges",t.edge(t.edges()[0]));const h=f.insert("g").attr("class","clusters"),a=f.insert("g").attr("class","edgePaths"),i=f.insert("g").attr("class","edgeLabels"),n=f.insert("g").attr("class","nodes"),p=V(g);await Promise.all(t.nodes().map(async function(d){const e=t.node(d);if(c!==void 0){const u=JSON.parse(JSON.stringify(c.clusterData));l.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,u.height,` Parent cluster`,c.height),t.setNode(c.id,u),t.parent(d)||(l.trace("Setting parent",d,c.id),t.setParent(d,c.id,u))}if(l.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),e?.clusterNode){l.info("Cluster identified XBX",d,e.width,t.node(d));const{ranksep:u,nodesep:x}=t.graph();e.graph.setGraph({...e.graph.graph(),ranksep:u+25,nodesep:x});const N=await T(n,e.graph,g,m,t.node(d),o),M=N.elem;W(e,M),e.diff=N.diff||0,l.info("New compound node after recursive render XAX",d,"width",e.width,"height",e.height),$(M,e)}else t.children(d).length>0?(l.trace("Cluster - the non recursive path XBX",d,e.id,e,e.width,"Graph:",t),l.trace(P(e.id,t)),E.set(e.id,{id:P(e.id,t),node:e})):(l.trace("Node - the non recursive path XAX",d,n,t.node(d),r),await j(n,t.node(d),{config:o,dir:r}))})),await w(async()=>{const d=t.edges().map(async function(e){const u=t.edge(e.v,e.w,e.name);if(l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),l.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),l.info("Fix",E,"ids:",e.v,e.w,"Translating: ",E.get(e.v),E.get(e.w)),p&&u.selfLoop){if(u.selfLoop.order!==1)return;const x=u.id;u.id=u.selfLoop.id,await G(i,u),u.id=x;return}await G(i,u)});await Promise.all(d)},"processEdges")(),l.info("Graph before layout:",JSON.stringify(I(t))),l.info("############################################# XXX"),l.info("### Layout ### XXX"),l.info("############################################# XXX"),U(t),l.info("Graph after layout:",JSON.stringify(I(t)));let X=0,{subGraphTitleTotalMargin:S}=q(o);await Promise.all(A(t).map(async function(d){const e=t.node(d);if(l.info("Position XBX => "+d+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e?.clusterNode)e.y+=S,l.info("A tainted cluster node XBX1",d,e.id,e.width,e.height,e.x,e.y,t.parent(d)),E.get(e.id).node=e,R(e);else if(t.children(d).length>0){l.info("A pure cluster node XBX1",d,e.id,e.x,e.y,e.width,e.height,t.parent(d)),e.height+=S,t.node(e.parentId);const u=e?.padding/2||0,x=e?.labelBBox?.height||0,N=x-u||0;l.debug("OffsetY",N,"labelHeight",x,"halfPadding",u),await F(h,e),E.get(e.id).node=e}else{const u=t.node(e.parentId);e.y+=S/2,l.info("A regular node XBX1 - using the padding",e.id,"parent",e.parentId,e.width,e.height,e.x,e.y,"offsetY",e.offsetY,"parent",u,u?.offsetY,e),R(e)}}));const b=S/2;return ne(t,b,{mergeSelfLoops:p}).forEach(function({edge:d,start:e,end:u}){l.info("Edge "+e+" -> "+u+": "+JSON.stringify(d),d),d.points.forEach(k=>k.y+=b);const x=t.node(e),N=t.node(u),M=z(a,d,E,g,x,N,m);K(d,M)}),t.nodes().forEach(function(d){const e=t.node(d);l.info(d,e.type,e.diff),e.isGroup&&(X=e.diff)}),l.warn("Returning from recursive render XAX",f,X),{elem:f,diff:X}},"recursiveRender"),le=w(async(s,t)=>{const g=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:s.direction,nodesep:s.config?.nodeSpacing||s.config?.flowchart?.nodeSpacing||s.nodeSpacing,ranksep:s.config?.rankSpacing||s.config?.flowchart?.rankSpacing||s.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),m=t.select("g");v(m,s.markers,s.type,s.diagramId),D(),H(),Y(),O(),s.nodes.forEach(o=>{g.setNode(o.id,{...o}),o.parentId&&g.setParent(o.id,o.parentId)}),l.debug("Edges:",s.edges),s.edges.forEach(o=>{if(o.start===o.end){const r=o.start,f=r+"---"+r+"---1",h=r+"---"+r+"---2",a=g.node(r);g.setNode(f,{domId:f,id:f,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),g.setParent(f,a.parentId),g.setNode(h,{domId:h,id:h,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),g.setParent(h,a.parentId);const i=structuredClone(o),n=structuredClone(o),p=structuredClone(o),y=structuredClone(o);n.originalEdge=i,n.selfLoop={id:i.id,order:0},p.originalEdge=i,p.selfLoop={id:i.id,order:1},y.originalEdge=i,y.selfLoop={id:i.id,order:2},n.label="",n.arrowTypeEnd="none",n.endLabelLeft="",n.endLabelRight="",n.startLabelLeft="",n.id=r+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=r+"-cyclic-special-mid",y.label="",y.startLabelRight="",y.startLabelLeft="",y.arrowTypeStart="none",a.isGroup&&(n.fromCluster=r,y.toCluster=r),y.id=r+"-cyclic-special-2",y.arrowTypeStart="none",g.setEdge(r,f,n,r+"-cyclic-special-0"),g.setEdge(f,h,p,r+"-cyclic-special-1"),g.setEdge(h,r,y,r+"-cyclic-special-2")}else g.setEdge(o.start,o.end,{...o},o.id)}),l.warn("Graph at first:",JSON.stringify(I(g))),J(g),l.warn("Graph after XAX:",JSON.stringify(I(g)));const c=_();await T(m,g,s.type,s.diagramId,void 0,c)},"render");export{ne as getEdgesToRender,le as render}; diff --git a/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js b/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js similarity index 91% rename from apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js rename to apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js index ab3bbac4e0b..74f8f444bf8 100644 --- a/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ZAIcCI.js +++ b/apps/kimi-code/dist-web/assets/diagram-FQU43EPY-C_ItQEVf.js @@ -1,3 +1,3 @@ -import{p as re}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{o as oe,n as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,d as ue,z as xe,p as fe,A as ge,y as M,B as he,i as y,w as P,ak as pe}from"./mermaid.core-D8UeR6T-.js";import{p as be,i as ve}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){B={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&aNumber.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
        "};let c=`${P(a,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{ -`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="
        ")}const m=r!==void 0;m&&(c+=`

        ${r}`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+` -`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,Ue={parser:Ee,db:F,renderer:$e,styles:Ne};export{Ue as diagram}; +import{p as re}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{p as oe,o as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as D,d as ue,A as xe,q as fe,B as ge,z as M,D as he,i as y,w as P,ak as pe}from"./mermaid.core-DaDTfY6S.js";import{p as be,i as ve}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var T="position frame",$="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){B={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:T,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&aNumber.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function L(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(L,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
        "};let c=`${P(a,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{ +`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="
        ")}const m=r!==void 0;m&&(c+=`

        ${r}`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=L(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:$,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[T]:V,[S]:J},Be={[$]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=D(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var De=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+` +`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=D(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),Te={draw:De},$e=o(e=>"","getStyles"),Ne=$e,Ue={parser:Ee,db:F,renderer:Te,styles:Ne};export{Ue as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js b/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js similarity index 84% rename from apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js rename to apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js index 9d16fb78dfa..d4551abd9a6 100644 --- a/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-BGi9RAuZ.js +++ b/apps/kimi-code/dist-web/assets/diagram-G47NLZAW-Cm4DutfF.js @@ -1,4 +1,4 @@ -import{p as me}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as w,E as ge,y as te,A as Q,D as ye,e as Se,l as ee,be as B,d as j,b as ve,a as xe,n as be,o as we,g as Ce,s as Te,B as Le,bf as $e,p as Ae}from"./mermaid.core-D8UeR6T-.js";import{s as Fe}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{p as Ne}from"./cynefin-VYW2F7L2-DZba3nFe.js";import{b as I}from"./defaultLocale-DX6XiGOO.js";import{o as K}from"./ordinal-Cboi1Yqb.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";import"./init-Gi6I4Gst.js";function Me(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function _e(){return this.eachAfter(Me)}function ke(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function ze(e,a){for(var n=this,l=[n],r,o,h=-1;n=l.pop();)if(e.call(a,n,++h,this),r=n.children)for(o=r.length-1;o>=0;--o)l.push(r[o]);return this}function Ve(e,a){for(var n=this,l=[n],r=[],o,h,d,g=-1;n=l.pop();)if(r.push(n),o=n.children)for(h=0,d=o.length;h=0;)n+=l[r].value;a.value=n})}function Be(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function Ee(e){for(var a=this,n=Re(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var r=l.length;e!==n;)l.splice(r,0,e),e=e.parent;return l}function Re(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),r=null;for(e=n.pop(),a=l.pop();e===a;)r=e,e=n.pop(),a=l.pop();return r}function We(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function He(){return Array.from(this)}function Ie(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function Oe(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*Ge(){var e=this,a,n=[e],l,r,o;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(r=0,o=l.length;r=0;--d)r.push(o=h[d]=new U(h[d])),o.parent=l,o.depth=l.depth+1;return n.eachBefore(Ue)}function qe(){return ae(this).eachBefore(je)}function Xe(e){return e.children}function Ye(e){return Array.isArray(e)?e[1]:null}function je(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function U(e){this.data=e,this.depth=this.height=0,this.parent=null}U.prototype=ae.prototype={constructor:U,count:_e,each:ke,eachAfter:Ve,eachBefore:ze,find:De,sum:Pe,sort:Be,path:Ee,ancestors:We,descendants:He,leaves:Ie,links:Oe,copy:qe,[Symbol.iterator]:Ge};function Ze(e){if(typeof e!="function")throw new Error;return e}function O(){return 0}function G(e){return function(){return e}}function Je(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ke(e,a,n,l,r){for(var o=e.children,h,d=-1,g=o.length,c=e.value&&(l-a)/e.value;++dN&&(N=c),M=u*u*R,$=Math.max(N/M,M/y),$>V){u-=c;break}V=$}h.push(g={value:u,dice:x1?l:1)},n})(et);function nt(){var e=at,a=!1,n=1,l=1,r=[0],o=O,h=O,d=O,g=O,c=O;function p(s){return s.x0=s.y0=0,s.x1=n,s.y1=l,s.eachBefore(b),r=[0],a&&s.eachBefore(Je),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,u=s.x1-x,y=s.y1-x;u{$e(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){Ae(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function oe(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const r={name:l.name,children:l.type==="Leaf"?void 0:[]};for(r.classSelector=l?.classSelector,l?.cssCompiledStyles&&(r.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(r.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(r);else{const o=n[n.length-1].node;o.children?o.children.push(r):o.children=[r]}l.type!=="Leaf"&&n.push({node:r,level:l.level})}),a}w(oe,"buildHierarchy");var lt=w((e,a)=>{me(e,a);const n=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&a.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const h=o.item;if(!h)continue;const d=o.indent?parseInt(o.indent):0,g=rt(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],p=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:p};n.push(b)}const l=oe(n),r=w((o,h)=>{for(const d of o)a.addNode(d,h),d.children&&d.children.length>0&&r(d.children,h+1)},"addNodesRecursively");r(l,0)},"populate"),rt=w(e=>e.name?String(e.name):"","getItemName"),ce={parser:{yy:void 0},parse:w(async e=>{try{const n=await Ne("treemap",e);ee.debug("Treemap AST:",n);const l=ce.parser?.yy;if(!(l instanceof ie))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");lt(n,l)}catch(a){throw ee.error("Error parsing treemap:",a),a}},"parse")},st=10,E=10,q=25,it=w((e,a,n,l)=>{const r=l.db,o=r.getConfig(),h=o.padding??st,d=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:c}=te();if(!g)return;const p=d?30:0,b=ye(a),s=o.nodeWidth?o.nodeWidth*E:960,x=o.nodeHeight?o.nodeHeight*E:500,S=s,v=x+p;b.attr("viewBox",`0 0 ${S} ${v}`),Se(b,v,S,o.useMaxWidth);let u;try{const t=o.valueFormat||",";if(t==="$0,0")u=w(i=>"$"+I(",")(i),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const i=/\.\d+/.exec(t),f=i?i[0]:"";u=w(C=>"$"+I(","+f)(C),"valueFormat")}else if(t.startsWith("$")){const i=t.substring(1);u=w(f=>"$"+I(i||"")(f),"valueFormat")}else u=I(t)}catch(t){ee.error("Error creating format function:",t),u=I(",")}const y=K().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=K().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=K().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),R=ae(g).sum(t=>t.value??0).sort((t,i)=>(i.value??0)-(t.value??0)),ne=nt().size([s,x]).paddingTop(t=>t.children&&t.children.length>0?q+E:0).paddingInner(h).paddingLeft(t=>t.children&&t.children.length>0?E:0).paddingRight(t=>t.children&&t.children.length>0?E:0).paddingBottom(t=>t.children&&t.children.length>0?E:0).round(!0)(R),he=ne.descendants().filter(t=>t.children&&t.children.length>0),W=V.selectAll(".treemapSection").data(he).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);W.append("rect").attr("width",t=>t.x1-t.x0).attr("height",q).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),W.append("clipPath").attr("id",(t,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",q),W.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,i)=>`treemapSection section${i}`).attr("fill",t=>y(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>N(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const i=B({cssCompiledStyles:t.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",q/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("clip-path",(t,i)=>`url(#clip-section-${a}-${i})`).attr("style",t=>{if(t.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const i=j(this),f=t.data.name;i.text(f);const C=t.x1-t.x0,L=6;let T;o.showValues!==!1&&t.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=i.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){i.text("..."),_.getComputedTextLength()>m&&i.text("");break}if(i.text(z+"..."),_.getComputedTextLength()<=m)break}}}),o.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",q/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?u(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const le=ne.leaves(),A=le.length>20,de=A?16:38,X=A?14:28,D=A?4:8,H=A?4:6,Z=A?2:4,re=A?8:10,J=A?1:2,Y=V.selectAll(".treemapLeafGroup").data(le).enter().append("g").attr("class",(t,i)=>`treemapNode treemapLeafGroup leaf${i}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);Y.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("style",t=>B({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(t,i)=>`clip-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: middle; font-size: ${de}px;fill:`+$(t.data.name)+";",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${a}-${i})`).text(t=>t.data.name).each(function(t){const i=j(this),f=t.x1-t.x0,C=t.y1-t.y0,L=i.node(),T=f-2*Z,P=C-2*Z;if(TT&&m>D;)m--,i.style("font-size",`${m}px`);let F=Math.max(H,Math.min(X,Math.round(m*_))),k=m+J+F;for(;k>P&&m>D&&(m--,F=Math.max(H,Math.min(X,Math.round(m*_))),!(FT||m(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+$(i.data.name)+";",C=B({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?u(i.value):"").each(function(i){const f=j(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=j(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(i.y1-i.y0)/2+T/2+J;f.attr("y",F);const k=i.x1-i.x0,se=i.y1-i.y0-4,fe=k-2*Z;f.node().getComputedTextLength()>fe||F+m>se||m{const a=ge(),n=te(),l=Q(a,n.themeVariables),r=Q(ht,e),o=r.titleColor??l.titleColor,h=r.labelColor??l.textColor,d=r.valueColor??l.textColor;return` +import{p as me}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as w,W as ge,z as te,B as Q,F as ye,e as Se,l as ee,be as B,d as j,b as ve,a as xe,o as be,p as we,g as Ce,s as Te,D as Le,bf as $e,q as Ae}from"./mermaid.core-DaDTfY6S.js";import{s as Fe}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{p as Ne}from"./cynefin-VYW2F7L2-0NmB13eq.js";import{b as I}from"./defaultLocale-DX6XiGOO.js";import{o as K}from"./ordinal-Cboi1Yqb.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";import"./init-Gi6I4Gst.js";function Me(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function _e(){return this.eachAfter(Me)}function ke(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function ze(e,a){for(var n=this,l=[n],r,o,h=-1;n=l.pop();)if(e.call(a,n,++h,this),r=n.children)for(o=r.length-1;o>=0;--o)l.push(r[o]);return this}function Ve(e,a){for(var n=this,l=[n],r=[],o,h,d,g=-1;n=l.pop();)if(r.push(n),o=n.children)for(h=0,d=o.length;h=0;)n+=l[r].value;a.value=n})}function Be(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function We(e){for(var a=this,n=Ee(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var r=l.length;e!==n;)l.splice(r,0,e),e=e.parent;return l}function Ee(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),r=null;for(e=n.pop(),a=l.pop();e===a;)r=e,e=n.pop(),a=l.pop();return r}function Re(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function He(){return Array.from(this)}function Ie(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function Oe(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*qe(){var e=this,a,n=[e],l,r,o;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(r=0,o=l.length;r=0;--d)r.push(o=h[d]=new U(h[d])),o.parent=l,o.depth=l.depth+1;return n.eachBefore(Ue)}function Ge(){return ae(this).eachBefore(je)}function Xe(e){return e.children}function Ye(e){return Array.isArray(e)?e[1]:null}function je(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function U(e){this.data=e,this.depth=this.height=0,this.parent=null}U.prototype=ae.prototype={constructor:U,count:_e,each:ke,eachAfter:Ve,eachBefore:ze,find:De,sum:Pe,sort:Be,path:We,ancestors:Re,descendants:He,leaves:Ie,links:Oe,copy:Ge,[Symbol.iterator]:qe};function Ze(e){if(typeof e!="function")throw new Error;return e}function O(){return 0}function q(e){return function(){return e}}function Je(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ke(e,a,n,l,r){for(var o=e.children,h,d=-1,g=o.length,c=e.value&&(l-a)/e.value;++dN&&(N=c),M=u*u*E,$=Math.max(N/M,M/y),$>V){u-=c;break}V=$}h.push(g={value:u,dice:x1?l:1)},n})(et);function nt(){var e=at,a=!1,n=1,l=1,r=[0],o=O,h=O,d=O,g=O,c=O;function p(s){return s.x0=s.y0=0,s.x1=n,s.y1=l,s.eachBefore(b),r=[0],a&&s.eachBefore(Je),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,u=s.x1-x,y=s.y1-x;u{$e(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){Ae(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function oe(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const r={name:l.name,children:l.type==="Leaf"?void 0:[]};for(r.classSelector=l?.classSelector,l?.cssCompiledStyles&&(r.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(r.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(r);else{const o=n[n.length-1].node;o.children?o.children.push(r):o.children=[r]}l.type!=="Leaf"&&n.push({node:r,level:l.level})}),a}w(oe,"buildHierarchy");var lt=w((e,a)=>{me(e,a);const n=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&a.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const h=o.item;if(!h)continue;const d=o.indent?parseInt(o.indent):0,g=rt(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],p=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:p};n.push(b)}const l=oe(n),r=w((o,h)=>{for(const d of o)a.addNode(d,h),d.children&&d.children.length>0&&r(d.children,h+1)},"addNodesRecursively");r(l,0)},"populate"),rt=w(e=>e.name?String(e.name):"","getItemName"),ce={parser:{yy:void 0},parse:w(async e=>{try{const n=await Ne("treemap",e);ee.debug("Treemap AST:",n);const l=ce.parser?.yy;if(!(l instanceof ie))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");lt(n,l)}catch(a){throw ee.error("Error parsing treemap:",a),a}},"parse")},st=10,W=10,G=25,it=w((e,a,n,l)=>{const r=l.db,o=r.getConfig(),h=o.padding??st,d=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:c}=te();if(!g)return;const p=d?30:0,b=ye(a),s=o.nodeWidth?o.nodeWidth*W:960,x=o.nodeHeight?o.nodeHeight*W:500,S=s,v=x+p;b.attr("viewBox",`0 0 ${S} ${v}`),Se(b,v,S,o.useMaxWidth);let u;try{const t=o.valueFormat||",";if(t==="$0,0")u=w(i=>"$"+I(",")(i),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const i=/\.\d+/.exec(t),f=i?i[0]:"";u=w(C=>"$"+I(","+f)(C),"valueFormat")}else if(t.startsWith("$")){const i=t.substring(1);u=w(f=>"$"+I(i||"")(f),"valueFormat")}else u=I(t)}catch(t){ee.error("Error creating format function:",t),u=I(",")}const y=K().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=K().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=K().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=ae(g).sum(t=>t.value??0).sort((t,i)=>(i.value??0)-(t.value??0)),ne=nt().size([s,x]).paddingTop(t=>t.children&&t.children.length>0?G+W:0).paddingInner(h).paddingLeft(t=>t.children&&t.children.length>0?W:0).paddingRight(t=>t.children&&t.children.length>0?W:0).paddingBottom(t=>t.children&&t.children.length>0?W:0).round(!0)(E),he=ne.descendants().filter(t=>t.children&&t.children.length>0),R=V.selectAll(".treemapSection").data(he).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);R.append("rect").attr("width",t=>t.x1-t.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),R.append("clipPath").attr("id",(t,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",G),R.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,i)=>`treemapSection section${i}`).attr("fill",t=>y(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>N(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const i=B({cssCompiledStyles:t.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("clip-path",(t,i)=>`url(#clip-section-${a}-${i})`).attr("style",t=>{if(t.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const i=j(this),f=t.data.name;i.text(f);const C=t.x1-t.x0,L=6;let T;o.showValues!==!1&&t.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=i.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){i.text("..."),_.getComputedTextLength()>m&&i.text("");break}if(i.text(z+"..."),_.getComputedTextLength()<=m)break}}}),o.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?u(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const le=ne.leaves(),A=le.length>20,de=A?16:38,X=A?14:28,D=A?4:8,H=A?4:6,Z=A?2:4,re=A?8:10,J=A?1:2,Y=V.selectAll(".treemapLeafGroup").data(le).enter().append("g").attr("class",(t,i)=>`treemapNode treemapLeafGroup leaf${i}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);Y.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("style",t=>B({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?y(t.parent.data.name):y(t.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(t,i)=>`clip-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: middle; font-size: ${de}px;fill:`+$(t.data.name)+";",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${a}-${i})`).text(t=>t.data.name).each(function(t){const i=j(this),f=t.x1-t.x0,C=t.y1-t.y0,L=i.node(),T=f-2*Z,P=C-2*Z;if(TT&&m>D;)m--,i.style("font-size",`${m}px`);let F=Math.max(H,Math.min(X,Math.round(m*_))),k=m+J+F;for(;k>P&&m>D&&(m--,F=Math.max(H,Math.min(X,Math.round(m*_))),!(FT||m(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+$(i.data.name)+";",C=B({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?u(i.value):"").each(function(i){const f=j(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=j(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(i.y1-i.y0)/2+T/2+J;f.attr("y",F);const k=i.x1-i.x0,se=i.y1-i.y0-4,fe=k-2*Z;f.node().getComputedTextLength()>fe||F+m>se||m{const a=ge(),n=te(),l=Q(a,n.themeVariables),r=Q(ht,e),o=r.titleColor??l.titleColor,h=r.labelColor??l.textColor,d=r.valueColor??l.textColor;return` .treemapNode.section { stroke: ${r.sectionStrokeColor}; stroke-width: ${r.sectionStrokeWidth}; diff --git a/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js b/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js similarity index 85% rename from apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js rename to apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js index 6d286c13eef..b03d3cc85d3 100644 --- a/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-BcwnUf0T.js +++ b/apps/kimi-code/dist-web/assets/diagram-NH7WQ7WH-C09rk2Ua.js @@ -1,4 +1,4 @@ -import{p as B}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as b,A as u,D as $,e as C,l as m,b as S,a as D,n as T,o as P,g as z,s as A,y as E,B as F,p as W}from"./mermaid.core-D8UeR6T-.js";import{p as _}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var N=F.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}static{b(this,"PacketDB")}getConfig(){const t=u({...N,...E().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=b((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(e),M(e,r)},"parse")},I=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:t}={})=>{const e=u(G,t);return` +import{p as B}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as b,B as u,F as $,e as C,l as m,b as S,a as D,o as T,p as z,g as F,s as P,z as E,D as A,q as W}from"./mermaid.core-DaDTfY6S.js";import{p as _}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var N=A.packet,w=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=F,this.setAccDescription=P}static{b(this,"PacketDB")}getConfig(){const t=u({...N,...E().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},L=1e4,M=b((t,e)=>{B(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(e),M(e,r)},"parse")},I=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())O(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:t}={})=>{const e=u(q,t);return` .packetByte { font-size: ${e.byteFontSize}; } @@ -21,4 +21,4 @@ import{p as B}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as b,A as u,D as $,e a stroke-width: ${e.blockStrokeWidth}; fill: ${e.blockFillColor}; } - `},"styles"),J={parser:v,get db(){return new w},renderer:j,styles:H};export{J as diagram}; + `},"styles"),J={parser:v,get db(){return new w},renderer:j,styles:G};export{J as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js b/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js similarity index 82% rename from apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js rename to apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js index c8ba7bad2e1..cf50cd80ce5 100644 --- a/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-C13Jmwqn.js +++ b/apps/kimi-code/dist-web/assets/diagram-OA4YK3LP-DnPyyrOM.js @@ -1,7 +1,7 @@ -import{I as X}from"./chunk-2Q5K7J3B-X9yuSZVx.js";import{p as O}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{n as G,b as Y,s as P,o as j,g as F,a as Z,_ as f,A,l as D,D as q,e as U,y as N,p as J,i as K,ai as Q,B as ee,aj as te}from"./mermaid.core-D8UeR6T-.js";import{p as ne}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var E=/[─━│┃└┗├┣]/,S=/[└┗├┣]/,re=/[─━]/,V=/^[\s│┃]+$/,$=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,k=/^\s*%%/,ie=" ";function L(n){return n.some(e=>E.test(e))}f(L,"isBoxDrawingFormat");function _(n){for(const e of n){const t=S.exec(e);if(t?.index&&t.index>0)return t.index}return 4}f(_,"inferSegmentWidth");function M(n,e){return n.replace(/\bline\s+(\d+)\b/gi,(t,r)=>{const i=parseInt(r,10),a=e.get(i);return a?`line ${a}`:t})}f(M,"remapErrorLines");function R(n){const e=n.split(` +import{I as X}from"./chunk-2Q5K7J3B-DqVWYlyS.js";import{p as O}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{o as G,b as Y,s as F,p as P,g as j,a as q,_ as f,B as A,l as D,F as Z,e as U,z as N,q as J,i as K,ai as Q,D as ee,aj as te}from"./mermaid.core-DaDTfY6S.js";import{p as ne}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var E=/[─━│┃└┗├┣]/,S=/[└┗├┣]/,re=/[─━]/,V=/^[\s│┃]+$/,$=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,k=/^\s*%%/,ie=" ";function L(n){return n.some(e=>E.test(e))}f(L,"isBoxDrawingFormat");function _(n){for(const e of n){const t=S.exec(e);if(t?.index&&t.index>0)return t.index}return 4}f(_,"inferSegmentWidth");function M(n,e){return n.replace(/\bline\s+(\d+)\b/gi,(t,r)=>{const i=parseInt(r,10),a=e.get(i);return a?`line ${a}`:t})}f(M,"remapErrorLines");function R(n){const e=n.split(` `),t=new Map;let r=-1;for(const[s,o]of e.entries())if(o.trim()==="treeView-beta"){r=s;break}if(r===-1)return{text:n,lineMap:t};const i=[];for(let s=r+1;s({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=f(()=>{x.reset(),J()},"clear"),se=f(()=>x.records.stack[0],"getRoot"),ae=f(()=>x.records.cnt,"getCount"),ce=ee.treeView,le=f(()=>A(ce,N().treeView),"getConfig"),de=f((n,e,t,r,i,a)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const c={id:x.records.cnt++,level:n,name:e,nodeType:t,icon:i,cssClass:r,description:a,children:[]};x.records.stack[x.records.stack.length-1].children.push(c),x.records.stack.push(c)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:Z,getAccDescription:F,getDiagramTitle:j,setAccDescription:P,setAccTitle:Y,setDiagramTitle:G},I=he,pe=f(n=>{O(n,I);for(const e of n.nodes){const t=typeof e.indent=="number"?e.indent:0;let r=e.name;const i=r.endsWith("/");i&&(r=r.slice(0,-1));const a=i?"directory":"file",c=e.classAnnotation||void 0,l=e.iconAnnotation,s=l!==void 0?l||"none":void 0,o=e.descAnnotation||void 0,h=o?K(o,N()):void 0;I.addNode(t,r,a,c,s,h)}},"populate"),fe={parse:f(async n=>{const{text:e,lineMap:t}=R(n);try{const r=await ne("treeView",e);D.debug(r),pe(r)}catch(r){throw t.size>0&&r instanceof Error&&(r.message=M(r.message,t)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function H(n,e){const t=e?.filenameIcons?.[n];if(t)return t;const r=n.lastIndexOf(".");if(r>0){const i=n.substring(r).toLowerCase(),a=e?.extensionIcons;return a?.[i]??a?.[i.slice(1)]}}f(H,"detectIcon");function C(n,e){return n.includes(":")?n:n in b.icons||!e?`${b.prefix}:${n}`:`${e}:${n}`}f(C,"qualifyIcon");function B(n,e){if(n.icon!=="none"){if(n.icon)return C(n.icon,e.defaultIconPack);if(e.showIcons){if(n.nodeType==="file"){const t=H(n.name,e);if(t==="none")return;if(t)return C(t,e.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}f(B,"getNodeIcon");te([{name:b.prefix,icons:b}]);var y=14,ge=4,ue=16,z=f((n,e)=>`tv-icon-${n}-${e.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),we=f(async(n,e,t,r)=>{const i=new Set,a=f(s=>{const o=B(s,t);o&&i.add(o),s.children.forEach(a)},"collect");if(a(e),i.size===0)return;const c=await Promise.all([...i].map(async s=>({icon:s,svg:await Q(s,{height:y,width:y})}))),l=n.append("defs");for(const{icon:s,svg:o}of c)l.append("g").attr("id",z(r,s)).html(o)},"injectIconDefs"),me=f((n,e,t,r,i,a)=>{const c=r.append("g");let l="treeView-node-label";t.nodeType==="directory"&&(l+=" treeView-node-dir"),t.cssClass&&(l+=` ${t.cssClass}`);const s=y+ge,o=B(t,i),h=o!==void 0;o&&c.append("use").attr("xlink:href",`#${z(a,o)}`).attr("x",n+i.paddingX).attr("y",e+i.paddingY).attr("class","treeView-node-icon");const p=c.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:w}=p.node().getBBox(),g=d+i.paddingY*2,m=n+i.paddingX+(h?s:0);p.attr("x",m),p.attr("y",e+g/2);const u=m+w,v=w+i.paddingX*2+(h?s:0);return t.BBox={x:n,y:e,width:v,height:g},t.cssClass?.split(/\s+/).includes("highlight")&&c.insert("rect",":first-child").attr("x",n).attr("y",e+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:t,nodeGroup:c,labelRightEdge:u,centerY:e+g/2}},"positionLabel"),T=f((n,e,t,r,i,a)=>n.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),xe=f((n,e,t,r)=>{let i=0,a=0;const c=[],l=f((h,p,d,w)=>{const g=w*(d.rowIndent+d.paddingX),m=me(g,i,p,h,d,r);c.push(m);const{height:u,width:v}=p.BBox;T(h,g-d.rowIndent,i+u/2,g,i+u/2,d.lineThickness),a=Math.max(a,g+v),i+=u},"drawNode"),s=f((h,p=0)=>{l(n,h,t,p),h.children.forEach(m=>{s(m,p+1)});const{x:d,y:w,height:g}=h.BBox;if(h.children.length){const{y:m,height:u}=h.children[h.children.length-1].BBox;T(n,d+t.paddingX,w+g,d+t.paddingX,m+u/2+t.lineThickness/2,t.lineThickness)}},"processNode");s(e);const o=c.filter(h=>h.node.description);if(o.length>0){const p=Math.max(...c.map(d=>d.labelRightEdge))+ue;for(const d of o){const g=d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",p).attr("y",d.centerY).node().getBBox();a=Math.max(a,p+g.width+t.paddingX)}}for(const h of c)if(h.node.cssClass?.split(/\s+/).includes("highlight")){const p=h.nodeGroup.select(".treeView-highlight-bg");if(!p.empty()){const d=a-h.node.BBox.x+8;p.attr("width",d),a=Math.max(a,h.node.BBox.x+d+2)}}return{totalHeight:i,totalWidth:a}},"drawTree"),ve=f(async(n,e,t,r)=>{D.debug(`Rendering treeView diagram -`+n);const i=r.db,a=i.getRoot(),c=i.getConfig(),l=q(e);await we(l,a,c,e);const s=l.append("g");s.attr("class","tree-view");const{totalHeight:o,totalWidth:h}=xe(s,a,c,e);l.attr("viewBox",`-${c.lineThickness/2} 0 ${h} ${o}`),U(l,o,h,c.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=f(({treeView:n})=>{const{labelFontSize:e,labelColor:t,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:c,highlightStroke:l}=A(Ce,n);return` +`),lineMap:t}}f(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=f(()=>{x.reset(),J()},"clear"),se=f(()=>x.records.stack[0],"getRoot"),ae=f(()=>x.records.cnt,"getCount"),ce=ee.treeView,le=f(()=>A(ce,N().treeView),"getConfig"),de=f((n,e,t,r,i,a)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const c={id:x.records.cnt++,level:n,name:e,nodeType:t,icon:i,cssClass:r,description:a,children:[]};x.records.stack[x.records.stack.length-1].children.push(c),x.records.stack.push(c)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:q,getAccDescription:j,getDiagramTitle:P,setAccDescription:F,setAccTitle:Y,setDiagramTitle:G},I=he,pe=f(n=>{O(n,I);for(const e of n.nodes){const t=typeof e.indent=="number"?e.indent:0;let r=e.name;const i=r.endsWith("/");i&&(r=r.slice(0,-1));const a=i?"directory":"file",c=e.classAnnotation||void 0,l=e.iconAnnotation,s=l!==void 0?l||"none":void 0,o=e.descAnnotation||void 0,h=o?K(o,N()):void 0;I.addNode(t,r,a,c,s,h)}},"populate"),fe={parse:f(async n=>{const{text:e,lineMap:t}=R(n);try{const r=await ne("treeView",e);D.debug(r),pe(r)}catch(r){throw t.size>0&&r instanceof Error&&(r.message=M(r.message,t)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function z(n,e){const t=e?.filenameIcons?.[n];if(t)return t;const r=n.lastIndexOf(".");if(r>0){const i=n.substring(r).toLowerCase(),a=e?.extensionIcons;return a?.[i]??a?.[i.slice(1)]}}f(z,"detectIcon");function C(n,e){return n.includes(":")?n:n in b.icons||!e?`${b.prefix}:${n}`:`${e}:${n}`}f(C,"qualifyIcon");function B(n,e){if(n.icon!=="none"){if(n.icon)return C(n.icon,e.defaultIconPack);if(e.showIcons){if(n.nodeType==="file"){const t=z(n.name,e);if(t==="none")return;if(t)return C(t,e.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}f(B,"getNodeIcon");te([{name:b.prefix,icons:b}]);var y=14,ge=4,ue=16,H=f((n,e)=>`tv-icon-${n}-${e.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),we=f(async(n,e,t,r)=>{const i=new Set,a=f(s=>{const o=B(s,t);o&&i.add(o),s.children.forEach(a)},"collect");if(a(e),i.size===0)return;const c=await Promise.all([...i].map(async s=>({icon:s,svg:await Q(s,{height:y,width:y})}))),l=n.append("defs");for(const{icon:s,svg:o}of c)l.append("g").attr("id",H(r,s)).html(o)},"injectIconDefs"),me=f((n,e,t,r,i,a)=>{const c=r.append("g");let l="treeView-node-label";t.nodeType==="directory"&&(l+=" treeView-node-dir"),t.cssClass&&(l+=` ${t.cssClass}`);const s=y+ge,o=B(t,i),h=o!==void 0;o&&c.append("use").attr("xlink:href",`#${H(a,o)}`).attr("x",n+i.paddingX).attr("y",e+i.paddingY).attr("class","treeView-node-icon");const p=c.append("text").text(t.name).attr("dominant-baseline","middle").attr("class",l),{height:d,width:w}=p.node().getBBox(),g=d+i.paddingY*2,m=n+i.paddingX+(h?s:0);p.attr("x",m),p.attr("y",e+g/2);const u=m+w,v=w+i.paddingX*2+(h?s:0);return t.BBox={x:n,y:e,width:v,height:g},t.cssClass?.split(/\s+/).includes("highlight")&&c.insert("rect",":first-child").attr("x",n).attr("y",e+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:t,nodeGroup:c,labelRightEdge:u,centerY:e+g/2}},"positionLabel"),T=f((n,e,t,r,i,a)=>n.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",i).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),xe=f((n,e,t,r)=>{let i=0,a=0;const c=[],l=f((h,p,d,w)=>{const g=w*(d.rowIndent+d.paddingX),m=me(g,i,p,h,d,r);c.push(m);const{height:u,width:v}=p.BBox;T(h,g-d.rowIndent,i+u/2,g,i+u/2,d.lineThickness),a=Math.max(a,g+v),i+=u},"drawNode"),s=f((h,p=0)=>{l(n,h,t,p),h.children.forEach(m=>{s(m,p+1)});const{x:d,y:w,height:g}=h.BBox;if(h.children.length){const{y:m,height:u}=h.children[h.children.length-1].BBox;T(n,d+t.paddingX,w+g,d+t.paddingX,m+u/2+t.lineThickness/2,t.lineThickness)}},"processNode");s(e);const o=c.filter(h=>h.node.description);if(o.length>0){const p=Math.max(...c.map(d=>d.labelRightEdge))+ue;for(const d of o){const g=d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",p).attr("y",d.centerY).node().getBBox();a=Math.max(a,p+g.width+t.paddingX)}}for(const h of c)if(h.node.cssClass?.split(/\s+/).includes("highlight")){const p=h.nodeGroup.select(".treeView-highlight-bg");if(!p.empty()){const d=a-h.node.BBox.x+8;p.attr("width",d),a=Math.max(a,h.node.BBox.x+d+2)}}return{totalHeight:i,totalWidth:a}},"drawTree"),ve=f(async(n,e,t,r)=>{D.debug(`Rendering treeView diagram +`+n);const i=r.db,a=i.getRoot(),c=i.getConfig(),l=Z(e);await we(l,a,c,e);const s=l.append("g");s.attr("class","tree-view");const{totalHeight:o,totalWidth:h}=xe(s,a,c,e);l.attr("viewBox",`-${c.lineThickness/2} 0 ${h} ${o}`),U(l,o,h,c.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=f(({treeView:n})=>{const{labelFontSize:e,labelColor:t,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:c,highlightStroke:l}=A(Ce,n);return` .treeView-node-label { font-size: ${e}; fill: ${t}; diff --git a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js deleted file mode 100644 index bb8300d1e6f..00000000000 --- a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-CSnMej41.js +++ /dev/null @@ -1,41 +0,0 @@ -import{p as k}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{s as R,g as E,o as I,n as _,a as D,b as F,_ as c,D as P,p as z,A as y,y as C,B as G,l as B,E as W,e as V}from"./mermaid.core-D8UeR6T-.js";import{p as H}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:m},x=structuredClone(w),j=G.radar,N=c(()=>y({...j,...C().radar}),"getConfig"),b=c(()=>x.axes,"getAxes"),U=c(()=>x.curves,"getCurves"),X=c(()=>x.options,"getOptions"),Y=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:q(t.entries)}))},"setCurves"),q=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule}},"setOptions"),K=c(()=>{z(),x=structuredClone(w)},"clear"),$={getAxes:b,getCurves:U,getOptions:X,setAxes:Y,setCurves:Z,setOptions:J,getConfig:N,clear:K,setAccTitle:F,getAccTitle:D,setDiagramTitle:_,getDiagramTitle:I,getAccDescription:E,setAccDescription:R},Q=c(a=>{k(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),tt={parse:c(async a=>{const t=await H("radar",a);B.debug(t),Q(t)},"parse")},et=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=P(t),u=at(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;rt(u,i,v,n.ticks,n.graticule),st(u,i,v,o),A(u,i,l,h,g,n.graticule,o),T(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),at=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return V(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),rt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=c((a,t,e,r)=>{const s=t.length;for(let i=0;i.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function A(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=M(g,r,s,o),S=f*Math.cos(v),O=f*Math.sin(v);return{x:S,y:O}});i==="circle"?a.append("path").attr("d",L(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(A,"drawCurves");function M(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(M,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(T,"drawLegend");var nt={draw:et},ot=c((a,t)=>{let e="";for(let r=0;r{const t=W(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),lt=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=it(a);return` - .radarTitle { - font-size: ${t.fontSize}; - color: ${t.titleColor}; - dominant-baseline: hanging; - text-anchor: middle; - } - .radarAxisLine { - stroke: ${e.axisColor}; - stroke-width: ${e.axisStrokeWidth}; - } - .radarAxisLabel { - font-size: ${e.axisLabelFontSize}px; - color: ${e.axisColor}; - } - .radarGraticule { - fill: ${e.graticuleColor}; - fill-opacity: ${e.graticuleOpacity}; - stroke: ${e.graticuleColor}; - stroke-width: ${e.graticuleStrokeWidth}; - } - .radarLegendText { - text-anchor: start; - font-size: ${e.legendFontSize}px; - dominant-baseline: hanging; - } - ${ot(t,e)} - `},"styles"),xt={parser:tt,db:$,renderer:nt,styles:lt};export{xt as diagram}; diff --git a/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js new file mode 100644 index 00000000000..9261ef84467 --- /dev/null +++ b/apps/kimi-code/dist-web/assets/diagram-WEI45ONY-DRhsbaVI.js @@ -0,0 +1,41 @@ +import{p as k}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{s as R,g as F,p as I,o as _,a as D,b as E,_ as c,F as z,q as P,B as y,z as C,D as G,l as B,W,e as V}from"./mermaid.core-DaDTfY6S.js";import{p as H}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:m},x=structuredClone(w),j=G.radar,q=c(()=>y({...j,...C().radar}),"getConfig"),b=c(()=>x.axes,"getAxes"),N=c(()=>x.curves,"getCurves"),U=c(()=>x.options,"getOptions"),X=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule}},"setOptions"),K=c(()=>{P(),x=structuredClone(w)},"clear"),$={getAxes:b,getCurves:N,getOptions:U,setAxes:X,setCurves:Y,setOptions:J,getConfig:q,clear:K,setAccTitle:E,getAccTitle:D,setDiagramTitle:_,getDiagramTitle:I,getAccDescription:F,setAccDescription:R},Q=c(a=>{k(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),tt={parse:c(async a=>{const t=await H("radar",a);B.debug(t),Q(t)},"parse")},et=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=z(t),u=at(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;rt(u,i,v,n.ticks,n.graticule),st(u,i,v,o),A(u,i,l,h,g,n.graticule,o),T(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),at=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return V(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),rt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),st=c((a,t,e,r)=>{const s=t.length;for(let i=0;i.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function A(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=M(g,r,s,o),S=f*Math.cos(v),O=f*Math.sin(v);return{x:S,y:O}});i==="circle"?a.append("path").attr("d",L(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(A,"drawCurves");function M(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(M,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(T,"drawLegend");var nt={draw:et},ot=c((a,t)=>{let e="";for(let r=0;r{const t=W(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),lt=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=it(a);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${e.axisColor}; + stroke-width: ${e.axisStrokeWidth}; + } + .radarAxisLabel { + font-size: ${e.axisLabelFontSize}px; + color: ${e.axisColor}; + } + .radarGraticule { + fill: ${e.graticuleColor}; + fill-opacity: ${e.graticuleOpacity}; + stroke: ${e.graticuleColor}; + stroke-width: ${e.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${e.legendFontSize}px; + dominant-baseline: hanging; + } + ${ot(t,e)} + `},"styles"),xt={parser:tt,db:$,renderer:nt,styles:lt};export{xt as diagram}; diff --git a/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js b/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js similarity index 87% rename from apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js rename to apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js index 6a07e0d801c..e9b3835a7df 100644 --- a/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-BKT9L5_x.js +++ b/apps/kimi-code/dist-web/assets/ebnfDiagram-CCIWWBDH-C6JPA7C_.js @@ -1 +1 @@ -import{g as l,r as m,d as n}from"./chunk-MOJQB5TN-BDh2X7Dq.js";import{p}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{_ as t,l as o}from"./mermaid.core-D8UeR6T-.js";import{M as u,a as f}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},S={parser:g,db:n,renderer:m,styles:l};export{S as diagram}; +import{g as l,r as m,d as n}from"./chunk-MOJQB5TN-Ce2Y728v.js";import{p}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{_ as t,l as o}from"./mermaid.core-DaDTfY6S.js";import{M as u,a as f}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},S={parser:g,db:n,renderer:m,styles:l};export{S as diagram}; diff --git a/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js b/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js similarity index 98% rename from apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js rename to apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js index b8c18e07a51..c4af92731b5 100644 --- a/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-CQxYG2fs.js +++ b/apps/kimi-code/dist-web/assets/erDiagram-Q63AITRT-xK3dRTZk.js @@ -1,4 +1,4 @@ -import{g as Mt}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as Bt}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as l,b as Ft,a as Yt,s as Pt,g as zt,n as Gt,o as Kt,c as it,l as V,p as Ut,q as Zt,r as jt,t as Wt,u as qt,v as Qt,d as Xt,x as Ht}from"./mermaid.core-D8UeR6T-.js";import{c as Jt}from"./channel-BiD6A78K.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var _t=(function(){var e=l(function(I,n,c,o){for(c=c||{},o=I.length;o--;c[I[o]]=n);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],a=[1,11],u=[1,12],d=[1,13],y=[1,23],f=[1,24],m=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],C=[1,22],nt=[1,36],at=[1,37],ct=[1,38],ot=[1,39],lt=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],Q=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],gt=[66,67,68,69,70],bt=[1,85],kt=[1,84],mt=[1,82],Et=[1,83],St=[6,10,42,47],L=[6,10,13,41,42,47,48,49],X=[1,93],H=[1,92],J=[1,91],U=[19,58],Tt=[1,102],Ot=[1,101],ht=[19,58,61,63],ut={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:l(function(n,c,o,r,p,t,Z){var s=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 59:case 68:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 80:case 81:this.$=t[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[s];break;case 60:t[s].push(t[s-1]),this.$=t[s];break;case 61:this.$={type:t[s-1],name:t[s]};break;case 62:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 63:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 64:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 65:case 67:case 70:this.$=t[s];break;case 66:this.$=t[s-1]+t[s];break;case 69:t[s-2].push(t[s]),this.$=t[s-2];break;case 71:this.$=t[s].replace(/"/g,"");break;case 72:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:30,11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:nt,67:at,68:ct,69:ot,70:lt}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},e(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:C},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:C},{65:57,71:[1,58],72:[1,59]},e(Y,[2,73]),e(Y,[2,74]),e(Y,[2,75]),e(Y,[2,76]),e(Y,[2,77]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},e(Q,[2,37]),e(Q,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},e(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:nt,67:at,68:ct,69:ot,70:lt}),{19:[1,74]},e(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:nt,67:at,68:ct,69:ot,70:lt},e(gt,[2,78]),e(gt,[2,79]),{6:bt,10:kt,39:81,42:mt,47:Et},{40:[1,86],41:[1,87]},e(St,[2,43],{46:88,13:P,41:z,48:G,49:K}),e(L,[2,45]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(i,[2,41],{42:A}),{6:bt,10:kt,39:89,42:mt,47:Et},{14:90,40:X,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:C},{18:96,19:[1,97],53:53,54:54,58:F},e(i,[2,12]),{19:[2,60]},e(U,[2,61],{56:98,57:99,60:100,62:Tt,63:Ot}),e([19,58,62,63],[2,67]),{58:[2,66]},e(i,[2,22],{15:[1,104],17:[1,103]}),e([40,48,50,51,52],[2,72]),e(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(Q,[2,39]),e(Q,[2,40]),e(L,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,80]),e(i,[2,81]),e(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},e(i,[2,15]),e(U,[2,62],{57:110,61:[1,111],63:Ot}),e(U,[2,63]),e(ht,[2,68]),e(U,[2,71]),e(ht,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},e(St,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:X,50:H,73:J},{16:116,40:O,41:N},{14:117,40:X,50:H,73:J},e(i,[2,13]),e(U,[2,64]),{60:118,62:Tt},{19:[1,119]},e(i,[2,20]),e(i,[2,23],{17:[1,120],42:A}),e(i,[2,11]),{13:[1,121],42:A},e(i,[2,10]),e(ht,[2,69]),e(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:X,50:H,73:J},{19:[1,125]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:l(function(n,c){if(c.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=c,o}},"parseError"),parse:l(function(n){var c=this,o=[0],r=[],p=[null],t=[],Z=this.table,s="",tt=0,Nt=0,Dt=2,At=1,Lt=t.slice.call(arguments,1),_=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);_.setInput(n,x.yy),x.yy.lexer=_,x.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;t.push(pt);var wt=_.options&&_.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(b){o.length=o.length-2*b,p.length=p.length-b,t.length=t.length-b}l(Vt,"popStack");function It(){var b;return b=r.pop()||_.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}l(It,"lex");for(var g,v,k,ft,w={},et,E,Rt,st;;){if(v=o[o.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=It()),k=Z[v]&&Z[v][g]),typeof k>"u"||!k.length||!k[0]){var yt="";st=[];for(et in Z[v])this.terminals_[et]&&et>Dt&&st.push("'"+this.terminals_[et]+"'");_.showPosition?yt="Parse error on line "+(tt+1)+`: +import{g as Mt}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as Bt}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as l,b as Ft,a as Yt,s as Pt,g as zt,o as Gt,p as Kt,c as it,l as V,q as Ut,r as Zt,t as jt,u as Wt,v as qt,x as Qt,d as Xt,y as Ht}from"./mermaid.core-DaDTfY6S.js";import{c as Jt}from"./channel-d4fEaqwQ.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var _t=(function(){var e=l(function(I,n,c,o){for(c=c||{},o=I.length;o--;c[I[o]]=n);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],a=[1,11],u=[1,12],d=[1,13],y=[1,23],f=[1,24],m=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],C=[1,22],nt=[1,36],at=[1,37],ct=[1,38],ot=[1,39],lt=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],Q=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],gt=[66,67,68,69,70],bt=[1,85],kt=[1,84],mt=[1,82],Et=[1,83],St=[6,10,42,47],L=[6,10,13,41,42,47,48,49],X=[1,93],H=[1,92],J=[1,91],U=[19,58],Tt=[1,102],Ot=[1,101],ht=[19,58,61,63],ut={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:l(function(n,c,o,r,p,t,Z){var s=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 59:case 68:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 80:case 81:this.$=t[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[s];break;case 60:t[s].push(t[s-1]),this.$=t[s];break;case 61:this.$={type:t[s-1],name:t[s]};break;case 62:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 63:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 64:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 65:case 67:case 70:this.$=t[s];break;case 66:this.$=t[s-1]+t[s];break;case 69:t[s-2].push(t[s]),this.$=t[s-2];break;case 71:this.$=t[s].replace(/"/g,"");break;case 72:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:30,11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:C},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:nt,67:at,68:ct,69:ot,70:lt}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},e(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:C},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:C},{65:57,71:[1,58],72:[1,59]},e(Y,[2,73]),e(Y,[2,74]),e(Y,[2,75]),e(Y,[2,76]),e(Y,[2,77]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},e(Q,[2,37]),e(Q,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},e(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:nt,67:at,68:ct,69:ot,70:lt}),{19:[1,74]},e(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:nt,67:at,68:ct,69:ot,70:lt},e(gt,[2,78]),e(gt,[2,79]),{6:bt,10:kt,39:81,42:mt,47:Et},{40:[1,86],41:[1,87]},e(St,[2,43],{46:88,13:P,41:z,48:G,49:K}),e(L,[2,45]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(i,[2,41],{42:A}),{6:bt,10:kt,39:89,42:mt,47:Et},{14:90,40:X,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:C},{18:96,19:[1,97],53:53,54:54,58:F},e(i,[2,12]),{19:[2,60]},e(U,[2,61],{56:98,57:99,60:100,62:Tt,63:Ot}),e([19,58,62,63],[2,67]),{58:[2,66]},e(i,[2,22],{15:[1,104],17:[1,103]}),e([40,48,50,51,52],[2,72]),e(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(Q,[2,39]),e(Q,[2,40]),e(L,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,80]),e(i,[2,81]),e(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},e(i,[2,15]),e(U,[2,62],{57:110,61:[1,111],63:Ot}),e(U,[2,63]),e(ht,[2,68]),e(U,[2,71]),e(ht,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},e(St,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:X,50:H,73:J},{16:116,40:O,41:N},{14:117,40:X,50:H,73:J},e(i,[2,13]),e(U,[2,64]),{60:118,62:Tt},{19:[1,119]},e(i,[2,20]),e(i,[2,23],{17:[1,120],42:A}),e(i,[2,11]),{13:[1,121],42:A},e(i,[2,10]),e(ht,[2,69]),e(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:X,50:H,73:J},{19:[1,125]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:l(function(n,c){if(c.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=c,o}},"parseError"),parse:l(function(n){var c=this,o=[0],r=[],p=[null],t=[],Z=this.table,s="",tt=0,Nt=0,Dt=2,At=1,Lt=t.slice.call(arguments,1),_=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);_.setInput(n,x.yy),x.yy.lexer=_,x.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;t.push(pt);var wt=_.options&&_.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(b){o.length=o.length-2*b,p.length=p.length-b,t.length=t.length-b}l(Vt,"popStack");function It(){var b;return b=r.pop()||_.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}l(It,"lex");for(var g,v,k,ft,w={},et,E,Rt,st;;){if(v=o[o.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=It()),k=Z[v]&&Z[v][g]),typeof k>"u"||!k.length||!k[0]){var yt="";st=[];for(et in Z[v])this.terminals_[et]&&et>Dt&&st.push("'"+this.terminals_[et]+"'");_.showPosition?yt="Parse error on line "+(tt+1)+`: `+_.showPosition()+` Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":yt="Parse error on line "+(tt+1)+": Unexpected "+(g==At?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(yt,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:pt,expected:st})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(k[0]){case 1:o.push(g),p.push(_.yytext),t.push(_.yylloc),o.push(k[1]),g=null,Nt=_.yyleng,s=_.yytext,tt=_.yylineno,pt=_.yylloc;break;case 2:if(E=this.productions_[k[1]][1],w.$=p[p.length-E],w._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},wt&&(w._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),ft=this.performAction.apply(w,[s,Nt,tt,x.yy,k[1],p,t].concat(Lt)),typeof ft<"u")return ft;E&&(o=o.slice(0,-1*E*2),p=p.slice(0,-1*E),t=t.slice(0,-1*E)),o.push(this.productions_[k[1]][0]),p.push(w.$),t.push(w._$),Rt=Z[o[o.length-2]][o[o.length-1]],o.push(Rt);break;case 3:return!0}}return!0},"parse")},vt=(function(){var I={EOF:1,parseError:l(function(c,o){if(this.yy.parser)this.yy.parser.parseError(c,o);else throw new Error(c)},"parseError"),setInput:l(function(n,c){return this.yy=c||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var c=n.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var c=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===r.length?this.yylloc.first_column:0)+r[r.length-o.length].length-o[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),c=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js b/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js similarity index 96% rename from apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js rename to apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js index c7c578a280e..d2e5502bcd2 100644 --- a/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-YDQ5LVB-.js +++ b/apps/kimi-code/dist-web/assets/flowDiagram-23GEKE2U-D0EBISGr.js @@ -1,14 +1,14 @@ -import{g as He}from"./chunk-5VM5RSS4-DzLUmY02.js";import{g as Xe}from"./chunk-XXDRQBXY-BeMc-h4J.js";import{s as Qe}from"./chunk-VR4S4FIN-BZ6zSN1A.js";import{_ as b,b6 as Je,F as Oe,l as J,c as g1,u as Ze,v as $e,x as ie,b as et,s as tt,n as st,a as it,g as rt,o as at,k as nt,G as ut,J as ot,bo as lt,q as te,d as se,a5 as ct,p as ht,b8 as dt,r as pt}from"./mermaid.core-D8UeR6T-.js";import{f as ft}from"./chunk-32BRIVSS-wwoCS_p_.js";import{c as gt}from"./channel-BiD6A78K.js";var bt="flowchart-",At=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=et,this.setAccDescription=tt,this.setDiagramTitle=st,this.getAccTitle=it,this.getAccDescription=rt,this.getDiagramTitle=at,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{b(this,"FlowDB")}sanitizeText(e){return nt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,o,d,l={},A){if(!e||e.trim().length===0)return;let n;if(A!==void 0){let k;A.includes(` +import{g as He}from"./chunk-5VM5RSS4-B87d3yQb.js";import{g as Xe}from"./chunk-XXDRQBXY-BEgNawAD.js";import{s as Qe}from"./chunk-VR4S4FIN-Dzr2NgNj.js";import{_ as b,b6 as Ze,X as Oe,l as Z,c as g1,v as Je,x as $e,y as ie,b as et,s as tt,o as st,a as it,g as rt,p as at,k as nt,Y as ut,Z as ot,bo as lt,r as te,d as se,a5 as ct,q as ht,b8 as dt,t as pt}from"./mermaid.core-DaDTfY6S.js";import{f as ft}from"./chunk-32BRIVSS-_Sd4SrsJ.js";import{c as gt}from"./channel-d4fEaqwQ.js";var bt="flowchart-",At=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=et,this.setAccDescription=tt,this.setDiagramTitle=st,this.getAccTitle=it,this.getAccDescription=rt,this.getDiagramTitle=at,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{b(this,"FlowDB")}sanitizeText(e){return nt.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,o,d,l={},A){if(!e||e.trim().length===0)return;let n;if(A!==void 0){let k;A.includes(` `)?k=A+` `:k=`{ `+A+` -}`,n=ut(k,{schema:ot})}const g=this.edges.find(k=>k.id===e);if(g){const k=n;k?.animate!==void 0&&(g.animate=k.animate),k?.animation!==void 0&&(g.animation=k.animation),k?.curve!==void 0&&(g.interpolate=k.curve);return}let B,f=this.vertices.get(e);if(f===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&J.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:bt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,i!==void 0?(this.config=g1(),B=this.sanitizeText(i.text.trim()),f.labelType=i.type,B.startsWith('"')&&B.endsWith('"')&&(B=B.substring(1,B.length-1)),f.text=B):f.text===void 0&&(f.text=e),r!==void 0&&(f.type=r),a?.forEach(k=>{f.styles.push(k)}),o?.forEach(k=>{f.classes.push(k)}),d!==void 0&&(f.dir=d),f.props===void 0?f.props=l:l!==void 0&&Object.assign(f.props,l),n!==void 0){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!lt(n.shape))throw new Error(`No such shape: ${n.shape}.`);f.type=n?.shape}n?.label&&(f.text=n?.label,f.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(f.icon=n?.icon,!n.label?.trim()&&f.text===e&&(f.text="")),n?.form&&(f.form=n?.form),n?.pos&&(f.pos=n?.pos),n?.img&&(f.img=n?.img,!n.label?.trim()&&f.text===e&&(f.text="")),n?.constraint&&(f.constraint=n.constraint),n.w&&(f.assetWidth=Number(n.w)),n.h&&(f.assetHeight=Number(n.h))}}addSingleLink(e,i,r,a){const l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};J.info("abc78 Got edge...",l);const A=r.text;if(A!==void 0&&(l.text=this.sanitizeText(A.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(A.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(n=>n.id===a))l.id=a,l.isUserDefinedId=!0;else{const n=this.edges.filter(g=>g.start===l.start&&g.end===l.end);n.length===0?l.id=te(l.start,l.end,{counter:0,prefix:"L"}):l.id=te(l.start,l.end,{counter:n.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))J.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +}`,n=ut(k,{schema:ot})}const g=this.edges.find(k=>k.id===e);if(g){const k=n;k?.animate!==void 0&&(g.animate=k.animate),k?.animation!==void 0&&(g.animation=k.animation),k?.curve!==void 0&&(g.interpolate=k.curve);return}let B,f=this.vertices.get(e);if(f===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:bt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,i!==void 0?(this.config=g1(),B=this.sanitizeText(i.text.trim()),f.labelType=i.type,B.startsWith('"')&&B.endsWith('"')&&(B=B.substring(1,B.length-1)),f.text=B):f.text===void 0&&(f.text=e),r!==void 0&&(f.type=r),a?.forEach(k=>{f.styles.push(k)}),o?.forEach(k=>{f.classes.push(k)}),d!==void 0&&(f.dir=d),f.props===void 0?f.props=l:l!==void 0&&Object.assign(f.props,l),n!==void 0){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!lt(n.shape))throw new Error(`No such shape: ${n.shape}.`);f.type=n?.shape}n?.label&&(f.text=n?.label,f.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(f.icon=n?.icon,!n.label?.trim()&&f.text===e&&(f.text="")),n?.form&&(f.form=n?.form),n?.pos&&(f.pos=n?.pos),n?.img&&(f.img=n?.img,!n.label?.trim()&&f.text===e&&(f.text="")),n?.constraint&&(f.constraint=n.constraint),n.w&&(f.assetWidth=Number(n.w)),n.h&&(f.assetHeight=Number(n.h))}}addSingleLink(e,i,r,a){const l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",l);const A=r.text;if(A!==void 0&&(l.text=this.sanitizeText(A.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(A.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(n=>n.id===a))l.id=a,l.isUserDefinedId=!0;else{const n=this.edges.filter(g=>g.start===l.start&&g.end===l.end);n.length===0?l.id=te(l.start,l.end,{counter:0,prefix:"L"}):l.id=te(l.start,l.end,{counter:n.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;J.info("addLink",e,i,a);for(const o of e)for(const d of i){const l=o===e[e.length-1],A=d===i[0];l&&A?this.addSingleLink(o,d,r,a):this.addSingleLink(o,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]},this.classes.set(a,o)),r?.forEach(d=>{if(/color/.exec(d)){const l=d.replace("fill","bgFill");o.textStyles.push(l)}o.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const o=this.edges.find(l=>l.id===r);o&&o.classes.push(i);const d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(g1().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{const d=this.lookUpDomId(e),l=document.querySelector(`[id="${d}"]`);l!==null&&l.addEventListener("click",()=>{ie.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const o=this.vertices.get(a);o!==void 0&&(o.link=ie.formatUrl(i,this.config),o.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=ft();se(e).select("svg").selectAll("g.node").on("mouseover",o=>{const d=se(o.currentTarget),l=d.attr("title");if(l===null)return;const A=o.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),i.html(ct.sanitize(l)),d.classed("hover",!0)}).on("mouseout",o=>{i.transition().duration(500).style("opacity",0),se(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g1(),ht()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),o=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const l=b(Y=>{const F={boolean:{},number:{},string:{}},_=[];let b1;return{nodeList:Y.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(b1=j.value,!1):j.trim()===""?!1:h1 in F?F[h1].hasOwnProperty(j)?!1:F[h1][j]=!0:_.includes(j)?!1:_.push(j)}),dir:b1}},"uniq")(i.flat()),A=l.nodeList,n=l.dir,g=n!==void 0,B=g1().flowchart??{},f=n??(B.inheritDir?this.getDirection()??g1().direction??void 0:void 0);if(this.version==="gen-1")for(let Y=0;Y2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,o=1;for(;a=0){const l=this.indexNodes2(e,d);if(l.result)return{result:!0,count:o+l.count};o=o+l.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let o=0;o":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let o="normal",d=r.length-1;r.startsWith("=")&&(o="thick"),r.startsWith("~")&&(o="invisible");const l=this.countChar(".",r);return l&&(o="dotted",d=l),{type:a,stroke:o,length:d}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,o)=>{this.exists(i,a)||r.push(e.nodes[o])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,o,d){const l=r.get(e.id),A=a.get(e.id)??!1,n=this.findNode(i,e.id);if(n)n.cssStyles=e.styles,n.cssCompiledStyles=this.getCompiledStyles(e.classes),n.cssClasses=e.classes.join(" ");else{const g={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};A?i.push({...g,isGroup:!0,shape:"rect"}):i.push({...g,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(o=>o.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(o=>o.trim()))}return i}getData(){const e=g1(),i=[],r=[],a=this.getSubGraphs(),o=new Map,d=new Map;for(let n=a.length-1;n>=0;n--){const g=a[n];g.nodes.length>0&&d.set(g.id,!0);for(const B of g.nodes)o.set(B,g.id)}for(let n=a.length-1;n>=0;n--){const g=a[n];i.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:o.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir==="TD"?"TB":g.dir,explicitDir:g.hasExplicitDir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,i,o,d,e,e.look||"classic")});const A=this.getEdges();return A.forEach((n,g)=>{const{arrowTypeStart:B,arrowTypeEnd:f}=this.destructEdgeType(n.type),k=[...A.defaultStyle??[]];n.style&&k.push(...n.style);const Y={id:te(n.start,n.end,{counter:g,prefix:"L"},n.id),isUserDefinedId:n.isUserDefinedId,start:n.start,end:n.end,type:n.type??"normal",label:n.text,labelType:n.labelType,labelpos:"c",thickness:n.stroke,minlen:n.length,classes:n?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":B,arrowTypeEnd:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(n.classes),labelStyle:k,style:k,pattern:n.stroke,look:e.look,animate:n.animate,animation:n.animation,curve:n.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Y)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return dt.flowchart}},kt=b(function(e,i){return i.db.getClasses()},"getClasses"),mt=b(async function(e,i,r,a,o){J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:d,flowchart:l,layout:A}=g1();a.db.setDiagramId(i),J.debug("Before getData: ");const n=a.db.getData();J.debug("Data: ",n);const g=Xe(i,d),B=a.db.getDirection();n.type=a.type,n.layoutAlgorithm=Ze(A),n.layoutAlgorithm==="dagre"&&A==="elk"&&J.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=B,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=i,J.debug("REF1:",n),await $e(n,g,o);const f=n.config.flowchart?.diagramPadding??8;ie.insertTitle(g,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),Qe(g,f,"flowchart",l?.useMaxWidth||!1)},"draw"),Dt={getClasses:kt,draw:mt},re=(function(){var e=b(function(f1,c,h,p){for(h=h||{},p=f1.length;p--;h[f1[p]]=c);return h},"o"),i=[1,4],r=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],l=[1,13],A=[1,14],n=[1,15],g=[1,16],B=[1,23],f=[1,25],k=[1,26],Y=[1,27],F=[1,50],_=[1,49],b1=[1,29],N1=[1,30],j=[1,31],h1=[1,32],P1=[1,33],L=[1,45],V=[1,47],I=[1,43],w=[1,48],R=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],O1=[1,34],M1=[1,35],U1=[1,36],z1=[1,37],W1=[1,38],d1=[1,58],T=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],D1=[8,9,11,75,77,78],ae=[1,79],E1=[1,92],C1=[1,97],T1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],F1=[1,91],_1=[1,98],B1=[1,94],v1=[1,99],L1=[1,90],A1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],V1=[44,60,89,102,105,106,109,111,114,115,116],ue=[1,122],oe=[1,123],j1=[1,125],K1=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],he=[1,148],de=[1,149],pe=[1,150],fe=[1,151],ge=[1,136],be=[1,138],Ae=[1,142],ke=[1,143],me=[1,144],De=[1,145],Ee=[1,146],Ce=[1,147],Te=[1,152],Se=[1,153],ye=[1,132],xe=[1,133],Fe=[1,140],_e=[1,135],Be=[1,139],ve=[1,137],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Le=[1,155],Ve=[1,157],x=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],z=[1,173],W=[1,174],D=[1,178],E=[1,175],C=[1,176],I1=[77,116,119],S=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ie=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],w1=[1,269],we=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],Q1={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:b(function(c,h,p,u,y,t,G1){var s=t.length-1;switch(y){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=u.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=u.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:u.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:u.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],u.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],u.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],u.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1]};break;case 78:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],u.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],u.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],u.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],u.setClickEvent(t[s-4],t[s-3],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],u.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],u.setLink(t[s-4],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],u.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],u.setLink(t[s-6],t[s-4],t[s]),u.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],u.setLink(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],u.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],u.setLink(t[s-5],t[s-4],t[s]),u.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],u.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],u.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],u.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],u.updateLinkInterpolate([t[s-6]],t[s-2]),u.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],u.updateLinkInterpolate(t[s-6],t[s-2]),u.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],u.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],u.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(o,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},e(T,[2,36]),{35:[1,75]},{37:[1,76]},e(T,[2,39]),e(D1,[2,50],{18:77,39:78,10:d1,40:ae}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:E1,44:C1,60:T1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(T,[2,189]),e(A1,[2,51]),e(A1,[2,54],{46:[1,100]}),e(U,[2,72],{113:113,29:[1,101],44:F,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:_,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(q,[2,181]),e(q,[2,142]),e(q,[2,143]),e(q,[2,144]),e(q,[2,145]),e(q,[2,146]),e(q,[2,147]),e(q,[2,148]),e(q,[2,149]),e(q,[2,150]),e(q,[2,151]),e(q,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:d1}),e(T,[2,27]),{42:116,43:39,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(V1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ue,81:oe,116:j1,119:K1},{75:[1,126],77:[1,127]},e(le,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:ce,12:he,14:de,27:pe,28:128,32:fe,44:ge,60:be,75:Ae,80:[1,130],81:[1,131],83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:129,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(X1,d,{5:154}),e(T,[2,37]),e(T,[2,38]),e(D1,[2,48],{44:Le}),e(D1,[2,49],{18:156,10:d1,40:Ve}),e(A1,[2,44]),{44:F,47:158,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:F,47:162,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{44:F,47:163,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(x,[2,115],{120:168,10:[1,167],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,117],{10:[1,169]}),e(H,[2,183]),e(H,[2,170]),e(H,[2,171]),e(H,[2,172]),e(H,[2,173]),e(H,[2,174]),e(H,[2,175]),e(H,[2,176]),e(H,[2,177]),e(H,[2,178]),e(H,[2,179]),e(H,[2,180]),{44:F,47:170,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{30:171,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:179,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:181,50:[1,180],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:182,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:183,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:184,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{109:[1,185]},{30:186,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:187,65:[1,188],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:189,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:190,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:191,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(q,[2,182]),e(o,[2,20]),e(ne,[2,25]),e(D1,[2,46],{39:192,18:193,10:d1,40:ae}),e(V1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{77:[1,197],79:198,116:j1,119:K1},e(I1,[2,79]),e(I1,[2,81]),e(I1,[2,82]),e(I1,[2,168]),e(I1,[2,169]),{76:199,79:121,80:ue,81:oe,116:j1,119:K1},e(le,[2,84]),{8:$,9:e1,10:ce,11:t1,12:he,14:de,21:201,27:pe,29:[1,200],32:fe,44:ge,60:be,75:Ae,83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:202,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(S,[2,101]),e(S,[2,103]),e(S,[2,104]),e(S,[2,157]),e(S,[2,158]),e(S,[2,159]),e(S,[2,160]),e(S,[2,161]),e(S,[2,162]),e(S,[2,163]),e(S,[2,164]),e(S,[2,165]),e(S,[2,166]),e(S,[2,167]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(S,[2,99]),e(S,[2,100]),{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:d1,18:204},{44:[1,205]},e(A1,[2,43]),{10:[1,206],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ie,[2,128]),{10:[1,210],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},e(x,[2,109],{10:[1,213]}),e(x,[2,111],{10:[1,214]}),{80:[1,215]},e(H,[2,184]),{80:[1,216],98:[1,217]},e(A1,[2,55],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),{31:[1,218],67:m,82:219,116:D,117:E,118:C},e(p1,[2,86]),e(p1,[2,88]),e(p1,[2,89]),e(p1,[2,153]),e(p1,[2,154]),e(p1,[2,155]),e(p1,[2,156]),{49:[1,220],67:m,82:219,116:D,117:E,118:C},{30:221,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{51:[1,222],67:m,82:219,116:D,117:E,118:C},{53:[1,223],67:m,82:219,116:D,117:E,118:C},{55:[1,224],67:m,82:219,116:D,117:E,118:C},{57:[1,225],67:m,82:219,116:D,117:E,118:C},{60:[1,226]},{64:[1,227],67:m,82:219,116:D,117:E,118:C},{66:[1,228],67:m,82:219,116:D,117:E,118:C},{30:229,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{31:[1,230],67:m,82:219,116:D,117:E,118:C},{67:m,69:[1,231],71:[1,232],82:219,116:D,117:E,118:C},{67:m,69:[1,234],71:[1,233],82:219,116:D,117:E,118:C},e(D1,[2,45],{18:156,10:d1,40:Ve}),e(D1,[2,47],{44:Le}),e(V1,[2,75]),e(V1,[2,74]),{62:[1,235],67:m,82:219,116:D,117:E,118:C},e(V1,[2,77]),e(I1,[2,80]),{77:[1,236],79:198,116:j1,119:K1},{30:237,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(X1,d,{5:238}),e(S,[2,102]),e(T,[2,35]),{43:239,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:F,47:258,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(x,[2,116]),e(x,[2,118],{10:[1,262]}),e(x,[2,119]),e(U,[2,56]),e(p1,[2,87]),e(U,[2,57]),{51:[1,263],67:m,82:219,116:D,117:E,118:C},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,264]},e(U,[2,63]),e(U,[2,65]),{66:[1,265],67:m,82:219,116:D,117:E,118:C},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(V1,[2,78]),{31:[1,266],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(A1,[2,53]),{43:268,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,121],{106:w1}),e(we,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(Z,[2,132]),e(Z,[2,134]),e(Z,[2,135]),e(Z,[2,136]),e(Z,[2,137]),e(Z,[2,138]),e(Z,[2,139]),e(Z,[2,140]),e(Z,[2,141]),e(x,[2,122],{106:w1}),{10:[1,271]},e(x,[2,123],{106:w1}),{10:[1,272]},e(Ie,[2,129]),e(x,[2,105],{106:w1}),e(x,[2,106],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(x,[2,110]),e(x,[2,112],{10:[1,273]}),e(x,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},e(T,[2,34]),e(A1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},e(Z,[2,133]),{14:E1,44:C1,60:T1,89:S1,101:280,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{14:E1,44:C1,60:T1,89:S1,101:281,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{98:[1,282]},e(x,[2,120]),e(U,[2,58]),{30:283,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(U,[2,66]),e(X1,d,{5:284}),e(we,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(x,[2,126],{120:168,10:[1,285],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,127],{120:168,10:[1,286],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,114]),{31:[1,287],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(x,[2,124],{106:w1}),e(x,[2,125],{106:w1})],defaultActions:{},parseError:b(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:b(function(c){var h=this,p=[0],u=[],y=[null],t=[],G1=this.table,s="",v=0,Re=0,je=2,Ne=1,Ke=t.slice.call(arguments,1),M=Object.create(this.lexer),k1={yy:{}};for(var J1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J1)&&(k1.yy[J1]=this.yy[J1]);M.setInput(c,k1.yy),k1.yy.lexer=M,k1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var Z1=M.yylloc;t.push(Z1);var Ye=M.options&&M.options.ranges;typeof k1.yy.parseError=="function"?this.parseError=k1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(X){p.length=p.length-2*X,y.length=y.length-X,t.length=t.length-X}b(qe,"popStack");function Ge(){var X;return X=u.pop()||M.lex()||Ne,typeof X!="number"&&(X instanceof Array&&(u=X,X=u.pop()),X=h.symbols_[X]||X),X}b(Ge,"lex");for(var K,m1,Q,$1,R1={},q1,c1,Pe,H1;;){if(m1=p[p.length-1],this.defaultActions[m1]?Q=this.defaultActions[m1]:((K===null||typeof K>"u")&&(K=Ge()),Q=G1[m1]&&G1[m1][K]),typeof Q>"u"||!Q.length||!Q[0]){var ee="";H1=[];for(q1 in G1[m1])this.terminals_[q1]&&q1>je&&H1.push("'"+this.terminals_[q1]+"'");M.showPosition?ee="Parse error on line "+(v+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;Z.info("addLink",e,i,a);for(const o of e)for(const d of i){const l=o===e[e.length-1],A=d===i[0];l&&A?this.addSingleLink(o,d,r,a):this.addSingleLink(o,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]},this.classes.set(a,o)),r?.forEach(d=>{if(/color/.exec(d)){const l=d.replace("fill","bgFill");o.textStyles.push(l)}o.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const o=this.edges.find(l=>l.id===r);o&&o.classes.push(i);const d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(g1().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{const d=this.lookUpDomId(e),l=document.querySelector(`[id="${d}"]`);l!==null&&l.addEventListener("click",()=>{ie.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const o=this.vertices.get(a);o!==void 0&&(o.link=ie.formatUrl(i,this.config),o.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=ft();se(e).select("svg").selectAll("g.node").on("mouseover",o=>{const d=se(o.currentTarget),l=d.attr("title");if(l===null)return;const A=o.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+A.left+(A.right-A.left)/2+"px").style("top",window.scrollY+A.bottom+"px"),i.html(ct.sanitize(l)),d.classed("hover",!0)}).on("mouseout",o=>{i.transition().duration(500).style("opacity",0),se(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g1(),ht()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),o=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const l=b(Y=>{const F={boolean:{},number:{},string:{}},_=[];let b1;return{nodeList:Y.filter(function(j){const h1=typeof j;return j.stmt&&j.stmt==="dir"?(b1=j.value,!1):j.trim()===""?!1:h1 in F?F[h1].hasOwnProperty(j)?!1:F[h1][j]=!0:_.includes(j)?!1:_.push(j)}),dir:b1}},"uniq")(i.flat()),A=l.nodeList,n=l.dir,g=n!==void 0,B=g1().flowchart??{},f=n??(B.inheritDir?this.getDirection()??g1().direction??void 0:void 0);if(this.version==="gen-1")for(let Y=0;Y2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,o=1;for(;a=0){const l=this.indexNodes2(e,d);if(l.result)return{result:!0,count:o+l.count};o=o+l.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let o=0;o":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let o="normal",d=r.length-1;r.startsWith("=")&&(o="thick"),r.startsWith("~")&&(o="invisible");const l=this.countChar(".",r);return l&&(o="dotted",d=l),{type:a,stroke:o,length:d}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,o)=>{this.exists(i,a)||r.push(e.nodes[o])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,o,d){const l=r.get(e.id),A=a.get(e.id)??!1,n=this.findNode(i,e.id);if(n)n.cssStyles=e.styles,n.cssCompiledStyles=this.getCompiledStyles(e.classes),n.cssClasses=e.classes.join(" ");else{const g={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};A?i.push({...g,isGroup:!0,shape:"rect"}):i.push({...g,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(o=>o.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(o=>o.trim()))}return i}getData(){const e=g1(),i=[],r=[],a=this.getSubGraphs(),o=new Map,d=new Map;for(let n=a.length-1;n>=0;n--){const g=a[n];g.nodes.length>0&&d.set(g.id,!0);for(const B of g.nodes)o.set(B,g.id)}for(let n=a.length-1;n>=0;n--){const g=a[n];i.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:o.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir==="TD"?"TB":g.dir,explicitDir:g.hasExplicitDir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,i,o,d,e,e.look||"classic")});const A=this.getEdges();return A.forEach((n,g)=>{const{arrowTypeStart:B,arrowTypeEnd:f}=this.destructEdgeType(n.type),k=[...A.defaultStyle??[]];n.style&&k.push(...n.style);const Y={id:te(n.start,n.end,{counter:g,prefix:"L"},n.id),isUserDefinedId:n.isUserDefinedId,start:n.start,end:n.end,type:n.type??"normal",label:n.text,labelType:n.labelType,labelpos:"c",thickness:n.stroke,minlen:n.length,classes:n?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":B,arrowTypeEnd:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(n.classes),labelStyle:k,style:k,pattern:n.stroke,look:e.look,animate:n.animate,animation:n.animation,curve:n.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Y)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return dt.flowchart}},kt=b(function(e,i){return i.db.getClasses()},"getClasses"),mt=b(async function(e,i,r,a,o){Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);const{securityLevel:d,flowchart:l,layout:A}=g1();a.db.setDiagramId(i),Z.debug("Before getData: ");const n=a.db.getData();Z.debug("Data: ",n);const g=Xe(i,d),B=a.db.getDirection();n.type=a.type,n.layoutAlgorithm=Je(A),n.layoutAlgorithm==="dagre"&&A==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=B,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=i,Z.debug("REF1:",n),await $e(n,g,o);const f=n.config.flowchart?.diagramPadding??8;ie.insertTitle(g,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),Qe(g,f,"flowchart",l?.useMaxWidth||!1)},"draw"),Dt={getClasses:kt,draw:mt},re=(function(){var e=b(function(f1,c,h,p){for(h=h||{},p=f1.length;p--;h[f1[p]]=c);return h},"o"),i=[1,4],r=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],l=[1,13],A=[1,14],n=[1,15],g=[1,16],B=[1,23],f=[1,25],k=[1,26],Y=[1,27],F=[1,50],_=[1,49],b1=[1,29],N1=[1,30],j=[1,31],h1=[1,32],P1=[1,33],L=[1,45],V=[1,47],I=[1,43],w=[1,48],R=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],O1=[1,34],M1=[1,35],U1=[1,36],z1=[1,37],W1=[1,38],d1=[1,58],T=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],D1=[8,9,11,75,77,78],ae=[1,79],E1=[1,92],C1=[1,97],T1=[1,96],S1=[1,93],y1=[1,89],x1=[1,95],F1=[1,91],_1=[1,98],B1=[1,94],v1=[1,99],L1=[1,90],A1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],V1=[44,60,89,102,105,106,109,111,114,115,116],ue=[1,122],oe=[1,123],j1=[1,125],K1=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],he=[1,148],de=[1,149],pe=[1,150],fe=[1,151],ge=[1,136],be=[1,138],Ae=[1,142],ke=[1,143],me=[1,144],De=[1,145],Ee=[1,146],Ce=[1,147],Te=[1,152],Se=[1,153],ye=[1,132],xe=[1,133],Fe=[1,140],_e=[1,135],Be=[1,139],ve=[1,137],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Le=[1,155],Ve=[1,157],x=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],z=[1,173],W=[1,174],D=[1,178],E=[1,175],C=[1,176],I1=[77,116,119],S=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ie=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],w1=[1,269],we=[8,9,11,106],J=[8,9,10,11,60,84,105,106,109,110,111,112],Q1={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:b(function(c,h,p,u,y,t,G1){var s=t.length-1;switch(y){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=u.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=u.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:u.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:u.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],u.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],u.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],u.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1]};break;case 78:var v=u.destructLink(t[s],t[s-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=u.destructLink(t[s]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],u.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],u.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],u.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],u.setClickEvent(t[s-4],t[s-3],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],u.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],u.setLink(t[s-4],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],u.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],u.setLink(t[s-6],t[s-4],t[s]),u.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],u.setLink(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],u.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],u.setLink(t[s-5],t[s-4],t[s]),u.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],u.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],u.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],u.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],u.updateLinkInterpolate([t[s-6]],t[s-2]),u.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],u.updateLinkInterpolate(t[s-6],t[s-2]),u.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],u.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],u.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(o,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},e(T,[2,36]),{35:[1,75]},{37:[1,76]},e(T,[2,39]),e(D1,[2,50],{18:77,39:78,10:d1,40:ae}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:E1,44:C1,60:T1,80:[1,87],89:S1,95:[1,84],97:[1,85],101:86,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(T,[2,189]),e(A1,[2,51]),e(A1,[2,54],{46:[1,100]}),e(U,[2,72],{113:113,29:[1,101],44:F,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:_,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(q,[2,181]),e(q,[2,142]),e(q,[2,143]),e(q,[2,144]),e(q,[2,145]),e(q,[2,146]),e(q,[2,147]),e(q,[2,148]),e(q,[2,149]),e(q,[2,150]),e(q,[2,151]),e(q,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:d1}),e(T,[2,27]),{42:116,43:39,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(V1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ue,81:oe,116:j1,119:K1},{75:[1,126],77:[1,127]},e(le,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:ce,12:he,14:de,27:pe,28:128,32:fe,44:ge,60:be,75:Ae,80:[1,130],81:[1,131],83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:129,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(X1,d,{5:154}),e(T,[2,37]),e(T,[2,38]),e(D1,[2,48],{44:Le}),e(D1,[2,49],{18:156,10:d1,40:Ve}),e(A1,[2,44]),{44:F,47:158,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:F,47:162,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{44:F,47:163,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(x,[2,115],{120:168,10:[1,167],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,117],{10:[1,169]}),e(H,[2,183]),e(H,[2,170]),e(H,[2,171]),e(H,[2,172]),e(H,[2,173]),e(H,[2,174]),e(H,[2,175]),e(H,[2,176]),e(H,[2,177]),e(H,[2,178]),e(H,[2,179]),e(H,[2,180]),{44:F,47:170,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{30:171,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:179,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:181,50:[1,180],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:182,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:183,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:184,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{109:[1,185]},{30:186,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:187,65:[1,188],67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:189,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:190,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{30:191,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(q,[2,182]),e(o,[2,20]),e(ne,[2,25]),e(D1,[2,46],{39:192,18:193,10:d1,40:ae}),e(V1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{77:[1,197],79:198,116:j1,119:K1},e(I1,[2,79]),e(I1,[2,81]),e(I1,[2,82]),e(I1,[2,168]),e(I1,[2,169]),{76:199,79:121,80:ue,81:oe,116:j1,119:K1},e(le,[2,84]),{8:$,9:e1,10:ce,11:t1,12:he,14:de,21:201,27:pe,29:[1,200],32:fe,44:ge,60:be,75:Ae,83:141,84:ke,85:me,86:De,87:Ee,88:Ce,89:Te,90:Se,91:202,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(S,[2,101]),e(S,[2,103]),e(S,[2,104]),e(S,[2,157]),e(S,[2,158]),e(S,[2,159]),e(S,[2,160]),e(S,[2,161]),e(S,[2,162]),e(S,[2,163]),e(S,[2,164]),e(S,[2,165]),e(S,[2,166]),e(S,[2,167]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(S,[2,99]),e(S,[2,100]),{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:d1,18:204},{44:[1,205]},e(A1,[2,43]),{10:[1,206],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ie,[2,128]),{10:[1,210],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},e(x,[2,109],{10:[1,213]}),e(x,[2,111],{10:[1,214]}),{80:[1,215]},e(H,[2,184]),{80:[1,216],98:[1,217]},e(A1,[2,55],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),{31:[1,218],67:m,82:219,116:D,117:E,118:C},e(p1,[2,86]),e(p1,[2,88]),e(p1,[2,89]),e(p1,[2,153]),e(p1,[2,154]),e(p1,[2,155]),e(p1,[2,156]),{49:[1,220],67:m,82:219,116:D,117:E,118:C},{30:221,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{51:[1,222],67:m,82:219,116:D,117:E,118:C},{53:[1,223],67:m,82:219,116:D,117:E,118:C},{55:[1,224],67:m,82:219,116:D,117:E,118:C},{57:[1,225],67:m,82:219,116:D,117:E,118:C},{60:[1,226]},{64:[1,227],67:m,82:219,116:D,117:E,118:C},{66:[1,228],67:m,82:219,116:D,117:E,118:C},{30:229,67:m,80:z,81:W,82:172,116:D,117:E,118:C},{31:[1,230],67:m,82:219,116:D,117:E,118:C},{67:m,69:[1,231],71:[1,232],82:219,116:D,117:E,118:C},{67:m,69:[1,234],71:[1,233],82:219,116:D,117:E,118:C},e(D1,[2,45],{18:156,10:d1,40:Ve}),e(D1,[2,47],{44:Le}),e(V1,[2,75]),e(V1,[2,74]),{62:[1,235],67:m,82:219,116:D,117:E,118:C},e(V1,[2,77]),e(I1,[2,80]),{77:[1,236],79:198,116:j1,119:K1},{30:237,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(X1,d,{5:238}),e(S,[2,102]),e(T,[2,35]),{43:239,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:F,47:258,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(x,[2,116]),e(x,[2,118],{10:[1,262]}),e(x,[2,119]),e(U,[2,56]),e(p1,[2,87]),e(U,[2,57]),{51:[1,263],67:m,82:219,116:D,117:E,118:C},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,264]},e(U,[2,63]),e(U,[2,65]),{66:[1,265],67:m,82:219,116:D,117:E,118:C},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(V1,[2,78]),{31:[1,266],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(A1,[2,53]),{43:268,44:F,45:40,47:41,60:_,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(x,[2,121],{106:w1}),e(we,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(J,[2,132]),e(J,[2,134]),e(J,[2,135]),e(J,[2,136]),e(J,[2,137]),e(J,[2,138]),e(J,[2,139]),e(J,[2,140]),e(J,[2,141]),e(x,[2,122],{106:w1}),{10:[1,271]},e(x,[2,123],{106:w1}),{10:[1,272]},e(Ie,[2,129]),e(x,[2,105],{106:w1}),e(x,[2,106],{113:113,44:F,60:_,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(x,[2,110]),e(x,[2,112],{10:[1,273]}),e(x,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},e(T,[2,34]),e(A1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},e(J,[2,133]),{14:E1,44:C1,60:T1,89:S1,101:280,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{14:E1,44:C1,60:T1,89:S1,101:281,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1,120:88},{98:[1,282]},e(x,[2,120]),e(U,[2,58]),{30:283,67:m,80:z,81:W,82:172,116:D,117:E,118:C},e(U,[2,66]),e(X1,d,{5:284}),e(we,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(x,[2,126],{120:168,10:[1,285],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,127],{120:168,10:[1,286],14:E1,44:C1,60:T1,89:S1,105:y1,106:x1,109:F1,111:_1,114:B1,115:v1,116:L1}),e(x,[2,114]),{31:[1,287],67:m,82:219,116:D,117:E,118:C},{6:11,7:12,8:l,9:A,10:n,11:g,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:f,36:k,38:Y,42:28,43:39,44:F,45:40,47:41,60:_,84:b1,85:N1,86:j,87:h1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(x,[2,124],{106:w1}),e(x,[2,125],{106:w1})],defaultActions:{},parseError:b(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:b(function(c){var h=this,p=[0],u=[],y=[null],t=[],G1=this.table,s="",v=0,Re=0,je=2,Ne=1,Ke=t.slice.call(arguments,1),M=Object.create(this.lexer),k1={yy:{}};for(var Z1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z1)&&(k1.yy[Z1]=this.yy[Z1]);M.setInput(c,k1.yy),k1.yy.lexer=M,k1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var J1=M.yylloc;t.push(J1);var Ye=M.options&&M.options.ranges;typeof k1.yy.parseError=="function"?this.parseError=k1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(X){p.length=p.length-2*X,y.length=y.length-X,t.length=t.length-X}b(qe,"popStack");function Ge(){var X;return X=u.pop()||M.lex()||Ne,typeof X!="number"&&(X instanceof Array&&(u=X,X=u.pop()),X=h.symbols_[X]||X),X}b(Ge,"lex");for(var K,m1,Q,$1,R1={},q1,c1,Pe,H1;;){if(m1=p[p.length-1],this.defaultActions[m1]?Q=this.defaultActions[m1]:((K===null||typeof K>"u")&&(K=Ge()),Q=G1[m1]&&G1[m1][K]),typeof Q>"u"||!Q.length||!Q[0]){var ee="";H1=[];for(q1 in G1[m1])this.terminals_[q1]&&q1>je&&H1.push("'"+this.terminals_[q1]+"'");M.showPosition?ee="Parse error on line "+(v+1)+`: `+M.showPosition()+` -Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error on line "+(v+1)+": Unexpected "+(K==Ne?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ee,{text:M.match,token:this.terminals_[K]||K,line:M.yylineno,loc:Z1,expected:H1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m1+", token: "+K);switch(Q[0]){case 1:p.push(K),y.push(M.yytext),t.push(M.yylloc),p.push(Q[1]),K=null,Re=M.yyleng,s=M.yytext,v=M.yylineno,Z1=M.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],R1.$=y[y.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Ye&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),$1=this.performAction.apply(R1,[s,Re,v,k1.yy,Q[1],y,t].concat(Ke)),typeof $1<"u")return $1;c1&&(p=p.slice(0,-1*c1*2),y=y.slice(0,-1*c1),t=t.slice(0,-1*c1)),p.push(this.productions_[Q[1]][0]),y.push(R1.$),t.push(R1._$),Pe=G1[p[p.length-2]][p[p.length-1]],p.push(Pe);break;case 3:return!0}}return!0},"parse")},We=(function(){var f1={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error on line "+(v+1)+": Unexpected "+(K==Ne?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ee,{text:M.match,token:this.terminals_[K]||K,line:M.yylineno,loc:J1,expected:H1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m1+", token: "+K);switch(Q[0]){case 1:p.push(K),y.push(M.yytext),t.push(M.yylloc),p.push(Q[1]),K=null,Re=M.yyleng,s=M.yytext,v=M.yylineno,J1=M.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],R1.$=y[y.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Ye&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),$1=this.performAction.apply(R1,[s,Re,v,k1.yy,Q[1],y,t].concat(Ke)),typeof $1<"u")return $1;c1&&(p=p.slice(0,-1*c1*2),y=y.slice(0,-1*c1),t=t.slice(0,-1*c1)),p.push(this.productions_[Q[1]][0]),y.push(R1.$),t.push(R1._$),Pe=G1[p[p.length-2]][p[p.length-1]],p.push(Pe);break;case 3:return!0}}return!0},"parse")},We=(function(){var f1={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+` `+h+"^"},"showPosition"),test_match:b(function(c,h){var p,u,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var t in y)this[t]=y[t];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,p,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),t=0;th[0].length)){if(h=p,u=t,this.options.backtrack_lexer){if(c=this.test_match(p,y[t]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,y[u]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var h=this.next();return h||this.lex()},"lex"),begin:b(function(h){this.conditionStack.push(h)},"begin"),popState:b(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:b(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:b(function(h){this.begin(h)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(h,p,u,y){switch(u){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),p.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const t=/\n\s*/g;return p.yytext=p.yytext.replace(t,"
        "),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return h.lex.firstGraph()&&this.begin("dir"),12;case 36:return h.lex.firstGraph()&&this.begin("dir"),12;case 37:return h.lex.firstGraph()&&this.begin("dir"),12;case 38:return h.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState("thickEdgeText"),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState("dottedEdgeText"),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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\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-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return f1})();Q1.lexer=We;function Y1(){this.yy={}}return b(Y1,"Parser"),Y1.prototype=Q1,Q1.Parser=Y1,new Y1})();re.parser=re;var Me=re,Ue=Object.assign({},Me);Ue.parse=e=>{const i=e.replace(/}\s*\n/g,`} @@ -153,4 +153,4 @@ Expecting `+H1.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ee="Parse error text-align: center; } ${He()} -`,"getStyles"),St=Tt,ze=b(({defaultLayout:e,styles:i=St}={})=>({parser:Et,get db(){return new At},renderer:Dt,styles:i,init:b(r=>{r.flowchart||(r.flowchart={});const a=Je().layout??e??r.layout;a&&Oe({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Oe({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),yt=ze();const Vt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:ze,diagram:yt},Symbol.toStringTag,{value:"Module"}));export{ze as c,Vt as f,St as s}; +`,"getStyles"),St=Tt,ze=b(({defaultLayout:e,styles:i=St}={})=>({parser:Et,get db(){return new At},renderer:Dt,styles:i,init:b(r=>{r.flowchart||(r.flowchart={});const a=Ze().layout??e??r.layout;a&&Oe({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Oe({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),yt=ze();const Vt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:ze,diagram:yt},Symbol.toStringTag,{value:"Module"}));export{ze as c,Vt as f,St as s}; diff --git a/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js b/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js similarity index 99% rename from apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js rename to apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js index d38f59fadb3..bfcf7d35953 100644 --- a/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-DsKYDdll.js +++ b/apps/kimi-code/dist-web/assets/ganttDiagram-NO4QXBWP-IslzQD84.js @@ -1,4 +1,4 @@ -import{bg as on,bh as On,bi as cn,bj as un,bk as ln,bl as ue,bm as Hn,g as Nn,s as Pn,o as Vn,n as Rn,a as zn,b as qn,_ as d,c as Yt,d as Zt,e as Bn,bn as it,l as Tt,k as Zn,j as Xn,p as Gn,x as jn}from"./mermaid.core-D8UeR6T-.js";import{g as oe}from"./_commonjsHelpers-CqkleIqs.js";import{b as Qn,t as Ne,c as Jn,a as Kn,l as tr}from"./linear-CTrOW4k9.js";import{i as er}from"./init-Gi6I4Gst.js";import"./index-CAYChmT7.js";import"./defaultLocale-DX6XiGOO.js";function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function rr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ir(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function sr(t){return"translate("+t+",0)"}function ar(t){return"translate(0,"+t+")"}function or(t){return e=>+t(e)}function cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ur(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Gt||t===Xt?-1:1,w=t===Xt||t===le?"x":"y",P=t===Gt||t===xe?sr:ar;function _(Y){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),B=i??(e.tickFormat?e.tickFormat.apply(e,n):ir),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?cr:or)(e.copy(),F),G=Y.selection?Y.selection():Y,T=G.selectAll(".domain").data([null]),k=G.selectAll(".tick").data(X,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),x=x.merge(L.append("line").attr("stroke","currentColor").attr(w+"2",S*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(w,S*v).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),Y!==G&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Pe).attr("transform",function(M){return isFinite(M=z(M))?P(M+F):this.getAttribute("transform")}),L.attr("opacity",Pe).attr("transform",function(M){var D=this.parentNode.__axis;return P((D&&isFinite(D=D(M))?D:z(M))+F)})),p.remove(),T.attr("d",t===Xt||t===le?a?"M"+S*a+","+R+"H"+F+"V"+E+"H"+S*a:"M"+F+","+R+"V"+E:a?"M"+R+","+S*a+"V"+F+"H"+E+"V"+S*a:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(M){return P(z(M)+F)}),x.attr(w+"2",S*s),C.attr(w,S*v).text(B),G.filter(ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),G.each(function(){this.__axis=z})}return _.scale=function(Y){return arguments.length?(e=Y,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),_):n.slice()},_.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),_):r&&r.slice()},_.tickFormat=function(Y){return arguments.length?(i=Y,_):i},_.tickSize=function(Y){return arguments.length?(s=a=+Y,_):s},_.tickSizeInner=function(Y){return arguments.length?(s=+Y,_):s},_.tickSizeOuter=function(Y){return arguments.length?(a=+Y,_):a},_.tickPadding=function(Y){return arguments.length?(y=+Y,_):y},_.offset=function(Y){return arguments.length?(F=+Y,_):F},_}function lr(t){return fn(Gt,t)}function fr(t){return fn(xe,t)}const dr=Math.PI/180,hr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,mr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=On(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),s,a;return e===n&&n===r?s=a=i:(s=fe((.4360747*e+.3850649*n+.1430804*r)/dn),a=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(s-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}cn(ft,gr,un(ln,{brighter(t){return new ft(this.l+ne*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-ne*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=dn*de(e),t=hn*de(t),n=mn*de(n),new on(he(3.1338561*e-1.6168667*t-.4906146*n),he(-.9787684*e+1.9161415*t+.033454*n),he(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function fe(t){return t>mr?Math.pow(t,1/3):t/yn+gn}function de(t){return t>Ft?t*t*t:yn*(t-gn)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=kn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const F=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return F;let S;do F.push(S=new Date(+s)),e(s,y),t(s);while(Snt(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(ge.setTime(+s),ye.setTime(+a),t(ge),t(ye),Math.floor(n(ge,ye))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Et=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,Se=yt*7,Ve=yt*30,ke=yt*365,vt=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Nt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Nt.range;const Tr=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());Tr.range;const Pt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Pt.range;const xr=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());xr.range;const xt=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const _e=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);_e.range;const br=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));br.range;function Dt(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Se)}const zt=Dt(0),Vt=Dt(1),vn=Dt(2),Tn=Dt(3),bt=Dt(4),xn=Dt(5),bn=Dt(6);zt.range;Vt.range;vn.range;Tn.range;bt.range;xn.range;bn.range;function Mt(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Se)}const wn=Mt(0),re=Mt(1),wr=Mt(2),Dr=Mt(3),It=Mt(4),Mr=Mt(5),Cr=Mt(6);wn.range;re.range;wr.range;Dr.range;It.range;Mr.range;Cr.range;const Rt=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Rt.range;const Sr=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Sr.range;const kt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function _r(t,e,n,r,i,s){const a=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[s,1,ct],[s,5,5*ct],[s,15,15*ct],[s,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Se],[e,1,Ve],[e,3,3*Ve],[t,1,ke]];function y(S,w,P){const _=wv).right(a,_);if(Y===a.length)return t.every(Ne(S/ke,w/ke,P));if(Y===0)return Et.every(Math.max(Ne(S,w,P),1));const[X,B]=a[_/a[Y-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(A=ve($t(f.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?re.ceil(A):re(A),A=_e.offset(A,(f.V-1)*7),f.y=A.getUTCFullYear(),f.m=A.getUTCMonth(),f.d=A.getUTCDate()+(f.w+6)%7):(A=pe($t(f.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Vt.ceil(A):Vt(A),A=xt.offset(A,(f.V-1)*7),f.y=A.getFullYear(),f.m=A.getMonth(),f.d=A.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),Q="Z"in f?ve($t(f.y,0,1)).getUTCDay():pe($t(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Q+5)%7:f.w+f.U*7-(Q+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ve(f)):pe(f)}}function p(h,N,V,f){for(var tt=0,A=N.length,Q=V.length,Z,st;tt=Q)return-1;if(Z=N.charCodeAt(tt++),Z===37){if(Z=N.charAt(tt++),st=G[Z in Re?N.charAt(tt++):Z],!st||(f=st(h,V,f))<0)return-1}else if(Z!=V.charCodeAt(f++))return-1}return f}function L(h,N,V){var f=S.exec(N.slice(V));return f?(h.p=w.get(f[0].toLowerCase()),V+f[0].length):-1}function x(h,N,V){var f=Y.exec(N.slice(V));return f?(h.w=X.get(f[0].toLowerCase()),V+f[0].length):-1}function C(h,N,V){var f=P.exec(N.slice(V));return f?(h.w=_.get(f[0].toLowerCase()),V+f[0].length):-1}function M(h,N,V){var f=U.exec(N.slice(V));return f?(h.m=R.get(f[0].toLowerCase()),V+f[0].length):-1}function D(h,N,V){var f=B.exec(N.slice(V));return f?(h.m=v.get(f[0].toLowerCase()),V+f[0].length):-1}function c(h,N,V){return p(h,e,N,V)}function g(h,N,V){return p(h,n,N,V)}function b(h,N,V){return p(h,r,N,V)}function m(h){return a[h.getDay()]}function I(h){return s[h.getDay()]}function o(h){return F[h.getMonth()]}function W(h){return y[h.getMonth()]}function u(h){return i[+(h.getHours()>=12)]}function K(h){return 1+~~(h.getMonth()/3)}function l(h){return a[h.getUTCDay()]}function $(h){return s[h.getUTCDay()]}function O(h){return F[h.getUTCMonth()]}function j(h){return y[h.getUTCMonth()]}function H(h){return i[+(h.getUTCHours()>=12)]}function J(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var N=T(h+="",E);return N.toString=function(){return h},N},parse:function(h){var N=k(h+="",!1);return N.toString=function(){return h},N},utcFormat:function(h){var N=T(h+="",z);return N.toString=function(){return h},N},utcParse:function(h){var N=k(h+="",!0);return N.toString=function(){return h},N}}}var Re={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,Er=/^%/,Ir=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function Ar(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Nr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Be(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ze(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Gr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xe(t,e){return q(t.getDate(),e,2)}function Qr(t,e){return q(t.getHours(),e,2)}function Jr(t,e){return q(t.getHours()%12||12,e,2)}function Kr(t,e){return q(1+xt.count(kt(t),t),e,3)}function Dn(t,e){return q(t.getMilliseconds(),e,3)}function ti(t,e){return Dn(t,e)+"000"}function ei(t,e){return q(t.getMonth()+1,e,2)}function ni(t,e){return q(t.getMinutes(),e,2)}function ri(t,e){return q(t.getSeconds(),e,2)}function ii(t){var e=t.getDay();return e===0?7:e}function si(t,e){return q(zt.count(kt(t)-1,t),e,2)}function Mn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ai(t,e){return t=Mn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function oi(t){return t.getDay()}function ci(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function ui(t,e){return q(t.getFullYear()%100,e,2)}function li(t,e){return t=Mn(t),q(t.getFullYear()%100,e,2)}function fi(t,e){return q(t.getFullYear()%1e4,e,4)}function di(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function hi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ge(t,e){return q(t.getUTCDate(),e,2)}function mi(t,e){return q(t.getUTCHours(),e,2)}function gi(t,e){return q(t.getUTCHours()%12||12,e,2)}function yi(t,e){return q(1+_e.count(wt(t),t),e,3)}function Cn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ki(t,e){return Cn(t,e)+"000"}function pi(t,e){return q(t.getUTCMonth()+1,e,2)}function vi(t,e){return q(t.getUTCMinutes(),e,2)}function Ti(t,e){return q(t.getUTCSeconds(),e,2)}function xi(t){var e=t.getUTCDay();return e===0?7:e}function bi(t,e){return q(wn.count(wt(t)-1,t),e,2)}function Sn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function wi(t,e){return t=Sn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Di(t){return t.getUTCDay()}function Mi(t,e){return q(re.count(wt(t)-1,t),e,2)}function Ci(t,e){return q(t.getUTCFullYear()%100,e,2)}function Si(t,e){return t=Sn(t),q(t.getUTCFullYear()%100,e,2)}function _i(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Fi(){return"+0000"}function je(){return"%"}function Qe(t){return+t}function Je(t){return Math.floor(+t/1e3)}var St,ie;Ui({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ui(t){return St=Ur(t),ie=St.format,St.parse,St.utcFormat,St.utcParse,St}function Ei(t){return new Date(t)}function Ii(t){return t instanceof Date?+t:+new Date(+t)}function _n(t,e,n,r,i,s,a,y,F,S){var w=Jn(),P=w.invert,_=w.domain,Y=S(".%L"),X=S(":%S"),B=S("%I:%M"),v=S("%I %p"),U=S("%a %d"),R=S("%b %d"),E=S("%B"),z=S("%Y");function G(T){return(F(T)4&&(Y+=7),_.add(Y,n));return X.diff(B,"week")+1},y.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var F=y.startOf;y.startOf=function(S,w){var P=this.$utils(),_=!!P.u(w)||w;return P.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(S,w)}}}))})(jt)),jt.exports}var $i=Wi();const Oi=oe($i);var Qt={exports:{}},Hi=Qt.exports,tn;function Ni(){return tn||(tn=1,(function(t,e){(function(n,r){t.exports=r()})(Hi,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,F={},S=function(v){return(v=+v)+(v>68?1900:2e3)},w=function(v){return function(U){this[v]=+U}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(U){if(!U||U==="Z")return 0;var R=U.match(/([+-]|\d\d)/g),E=60*R[1]+(+R[2]||0);return E===0?0:R[0]==="+"?-E:E})(v)}],_=function(v){var U=F[v];return U&&(U.indexOf?U:U.s.concat(U.f))},Y=function(v,U){var R,E=F.meridiem;if(E){for(var z=1;z<=24;z+=1)if(v.indexOf(E(z,0,U))>-1){R=z>12;break}}else R=v===(U?"pm":"PM");return R},X={A:[y,function(v){this.afternoon=Y(v,!1)}],a:[y,function(v){this.afternoon=Y(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,w("seconds")],ss:[a,w("seconds")],m:[a,w("minutes")],mm:[a,w("minutes")],H:[a,w("hours")],h:[a,w("hours")],HH:[a,w("hours")],hh:[a,w("hours")],D:[a,w("day")],DD:[s,w("day")],Do:[y,function(v){var U=F.ordinal,R=v.match(/\d+/);if(this.day=R[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[a,w("week")],ww:[s,w("week")],M:[a,w("month")],MM:[s,w("month")],MMM:[y,function(v){var U=_("months"),R=(_("monthsShort")||U.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[y,function(v){var U=_("months").indexOf(v)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,w("year")],YY:[s,function(v){this.year=S(v)}],YYYY:[/\d{4}/,w("year")],Z:P,ZZ:P};function B(v){var U,R;U=v,R=F&&F.formats;for(var E=(v=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,M){var D=M&&M.toUpperCase();return C||R[M]||n[M]||R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(c,g,b){return g||b.slice(1)}))}))).match(r),z=E.length,G=0;G-1)return new Date((I==="X"?1e3:1)*m);var u=B(I)(m),K=u.year,l=u.month,$=u.day,O=u.hours,j=u.minutes,H=u.seconds,J=u.milliseconds,h=u.zone,N=u.week,V=new Date,f=$||(K||l?1:V.getDate()),tt=K||V.getFullYear(),A=0;K&&!l||(A=l>0?l-1:V.getMonth());var Q,Z=O||0,st=j||0,at=H||0,pt=J||0;return h?new Date(Date.UTC(tt,A,f,Z,st,at,pt+60*h.offset*1e3)):o?new Date(Date.UTC(tt,A,f,Z,st,at,pt)):(Q=new Date(tt,A,f,Z,st,at,pt),N&&(Q=W(Q).week(N).toDate()),Q)}catch{return new Date("")}})(T,L,k,R),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&T!=this.format(L)&&(this.$d=new Date("")),F={}}else if(L instanceof Array)for(var c=L.length,g=1;g<=c;g+=1){p[1]=L[g-1];var b=R.apply(this,p);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}g===c&&(this.$d=new Date(""))}else z.call(this,G)}}}))})(Qt)),Qt.exports}var Pi=Ni();const Vi=oe(Pi);var Jt={exports:{}},Ri=Jt.exports,en;function zi(){return en||(en=1,(function(t,e){(function(n,r){t.exports=r()})(Ri,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,F=this.$locale();if(!this.isValid())return s.bind(this)(a);var S=this.$utils(),w=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return F.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return F.ordinal(y.week(),"W");case"w":case"ww":return S.s(y.week(),P==="w"?1:2,"0");case"W":case"WW":return S.s(y.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return S.s(String(y.$H===0?24:y.$H),P==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return P}}));return s.bind(this)(w)}}}))})(Jt)),Jt.exports}var qi=zi();const Bi=oe(qi);var Kt={exports:{}},Zi=Kt.exports,nn;function Xi(){return nn||(nn=1,(function(t,e){(function(n,r){t.exports=r()})(Zi,(function(){var n,r,i=1e3,s=6e4,a=36e5,y=864e5,F=31536e6,S=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,P=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:F,months:S,days:y,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},Y=function(T){return T instanceof z},X=function(T,k,p){return new z(T,p,k.$l)},B=function(T){return r.p(T)+"s"},v=function(T){return T<0},U=function(T){return v(T)?Math.ceil(T):Math.floor(T)},R=function(T){return Math.abs(T)},E=function(T,k){return T?v(T)?{negative:!0,format:""+R(T)+k}:{negative:!1,format:""+T+k}:{negative:!1,format:""}},z=(function(){function T(p,L,x){var C=this;if(this.$d={},this.$l=x,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return X(p*_[B(L)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(c){C.$d[B(c)]=p[c]})),this.calMilliseconds(),this;if(typeof p=="string"){var M=p.match(w);if(M){var D=M.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=D[0],this.$d.months=D[1],this.$d.weeks=D[2],this.$d.days=D[3],this.$d.hours=D[4],this.$d.minutes=D[5],this.$d.seconds=D[6],this.calMilliseconds(),this}}return this}var k=T.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function(L,x){return L+(p.$d[x]||0)*_[x]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=U(p/F),p%=F,this.$d.months=U(p/S),p%=S,this.$d.days=U(p/y),p%=y,this.$d.hours=U(p/a),p%=a,this.$d.minutes=U(p/s),p%=s,this.$d.seconds=U(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=E(this.$d.years,"Y"),L=E(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var C=E(x,"D"),M=E(this.$d.hours,"H"),D=E(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var g=E(c,"S"),b=p.negative||L.negative||C.negative||M.negative||D.negative||g.negative,m=M.format||D.format||g.format?"T":"",I=(b?"-":"")+"P"+p.format+L.format+C.format+m+M.format+D.format+g.format;return I==="P"||I==="-P"?"P0D":I},k.toJSON=function(){return this.toISOString()},k.format=function(p){var L=p||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(P,(function(C,M){return M||String(x[C])}))},k.as=function(p){return this.$ms/_[B(p)]},k.get=function(p){var L=this.$ms,x=B(p);return x==="milliseconds"?L%=1e3:L=x==="weeks"?U(L/_[x]):this.$d[x],L||0},k.add=function(p,L,x){var C;return C=L?p*_[B(L)]:Y(p)?p.$ms:X(p,this).$ms,X(this.$ms+C*(x?-1:1),this)},k.subtract=function(p,L){return this.add(p,L,!0)},k.locale=function(p){var L=this.clone();return L.$l=p,L},k.clone=function(){return X(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},T})(),G=function(T,k,p){return T.add(k.years()*p,"y").add(k.months()*p,"M").add(k.days()*p,"d").add(k.hours()*p,"h").add(k.minutes()*p,"m").add(k.seconds()*p,"s").add(k.milliseconds()*p,"ms")};return function(T,k,p){n=p,r=p().$utils(),p.duration=function(C,M){var D=p.locale();return X(C,{$l:D},M)},p.isDuration=Y;var L=k.prototype.add,x=k.prototype.subtract;k.prototype.add=function(C,M){return Y(C)?G(this,C,1):L.bind(this)(C,M)},k.prototype.subtract=function(C,M){return Y(C)?G(this,C,-1):x.bind(this)(C,M)}}}))})(Kt)),Kt.exports}var Gi=Xi();const ji=oe(Gi);var we=(function(){var t=d(function(D,c,g,b){for(g=g||{},b=D.length;b--;g[D[b]]=c);return g},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],y=[1,31],F=[1,32],S=[1,33],w=[1,34],P=[1,9],_=[1,10],Y=[1,11],X=[1,12],B=[1,13],v=[1,14],U=[1,15],R=[1,16],E=[1,19],z=[1,20],G=[1,21],T=[1,22],k=[1,23],p=[1,25],L=[1,35],x={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(c,g,b,m,I,o,W){var u=o.length-1;switch(I){case 1:return o[u-1];case 2:this.$=[];break;case 3:o[u-1].push(o[u]),this.$=o[u-1];break;case 4:case 5:this.$=o[u];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=o[u].substr(18);break;case 19:m.TopAxis(),this.$=o[u].substr(8);break;case 20:m.setAxisFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 21:m.setTickInterval(o[u].substr(13)),this.$=o[u].substr(13);break;case 22:m.setExcludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 23:m.setIncludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 24:m.setTodayMarker(o[u].substr(12)),this.$=o[u].substr(12);break;case 27:m.setDiagramTitle(o[u].substr(6)),this.$=o[u].substr(6);break;case 28:this.$=o[u].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=o[u].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(o[u].substr(8)),this.$=o[u].substr(8);break;case 33:m.addTask(o[u-1],o[u]),this.$="task";break;case 34:this.$=o[u-1],m.setClickEvent(o[u-1],o[u],null);break;case 35:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],o[u]);break;case 36:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],null),m.setLink(o[u-2],o[u]);break;case 37:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-2],o[u-1]),m.setLink(o[u-3],o[u]);break;case 38:this.$=o[u-2],m.setClickEvent(o[u-2],o[u],null),m.setLink(o[u-2],o[u-1]);break;case 39:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-1],o[u]),m.setLink(o[u-3],o[u-2]);break;case 40:this.$=o[u-1],m.setLink(o[u-1],o[u]);break;case 41:case 47:this.$=o[u-1]+" "+o[u];break;case 42:case 43:case 45:this.$=o[u-2]+" "+o[u-1]+" "+o[u];break;case 44:case 46:this.$=o[u-3]+" "+o[u-2]+" "+o[u-1]+" "+o[u];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(c,g){if(g.recoverable)this.trace(c);else{var b=new Error(c);throw b.hash=g,b}},"parseError"),parse:d(function(c){var g=this,b=[0],m=[],I=[null],o=[],W=this.table,u="",K=0,l=0,$=2,O=1,j=o.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(J.yy[h]=this.yy[h]);H.setInput(c,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var N=H.yylloc;o.push(N);var V=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){b.length=b.length-2*ot,I.length=I.length-ot,o.length=o.length-ot}d(f,"popStack");function tt(){var ot;return ot=m.pop()||H.lex()||O,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=g.symbols_[ot]||ot),ot}d(tt,"lex");for(var A,Q,Z,st,at={},pt,ut,He,Bt;;){if(Q=b[b.length-1],this.defaultActions[Q]?Z=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=tt()),Z=W[Q]&&W[Q][A]),typeof Z>"u"||!Z.length||!Z[0]){var ce="";Bt=[];for(pt in W[Q])this.terminals_[pt]&&pt>$&&Bt.push("'"+this.terminals_[pt]+"'");H.showPosition?ce="Parse error on line "+(K+1)+`: +import{bg as on,bh as On,bi as cn,bj as un,bk as ln,bl as ue,bm as Hn,g as Nn,s as Pn,p as Vn,o as Rn,a as zn,b as qn,_ as d,c as Yt,d as Zt,e as Bn,bn as it,l as Tt,k as Zn,j as Xn,q as Gn,y as jn}from"./mermaid.core-DaDTfY6S.js";import{g as oe}from"./_commonjsHelpers-CqkleIqs.js";import{b as Qn,t as Ne,c as Jn,a as Kn,l as tr}from"./linear-BmFm-Eu7.js";import{i as er}from"./init-Gi6I4Gst.js";import"./index-D1h84VfZ.js";import"./defaultLocale-DX6XiGOO.js";function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function rr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ir(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function sr(t){return"translate("+t+",0)"}function ar(t){return"translate(0,"+t+")"}function or(t){return e=>+t(e)}function cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ur(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Gt||t===Xt?-1:1,w=t===Xt||t===le?"x":"y",P=t===Gt||t===xe?sr:ar;function _(Y){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),B=i??(e.tickFormat?e.tickFormat.apply(e,n):ir),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?cr:or)(e.copy(),F),G=Y.selection?Y.selection():Y,T=G.selectAll(".domain").data([null]),k=G.selectAll(".tick").data(X,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),x=x.merge(L.append("line").attr("stroke","currentColor").attr(w+"2",S*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(w,S*v).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),Y!==G&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Pe).attr("transform",function(M){return isFinite(M=z(M))?P(M+F):this.getAttribute("transform")}),L.attr("opacity",Pe).attr("transform",function(M){var D=this.parentNode.__axis;return P((D&&isFinite(D=D(M))?D:z(M))+F)})),p.remove(),T.attr("d",t===Xt||t===le?a?"M"+S*a+","+R+"H"+F+"V"+E+"H"+S*a:"M"+F+","+R+"V"+E:a?"M"+R+","+S*a+"V"+F+"H"+E+"V"+S*a:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(M){return P(z(M)+F)}),x.attr(w+"2",S*s),C.attr(w,S*v).text(B),G.filter(ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),G.each(function(){this.__axis=z})}return _.scale=function(Y){return arguments.length?(e=Y,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),_):n.slice()},_.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),_):r&&r.slice()},_.tickFormat=function(Y){return arguments.length?(i=Y,_):i},_.tickSize=function(Y){return arguments.length?(s=a=+Y,_):s},_.tickSizeInner=function(Y){return arguments.length?(s=+Y,_):s},_.tickSizeOuter=function(Y){return arguments.length?(a=+Y,_):a},_.tickPadding=function(Y){return arguments.length?(y=+Y,_):y},_.offset=function(Y){return arguments.length?(F=+Y,_):F},_}function lr(t){return fn(Gt,t)}function fr(t){return fn(xe,t)}const dr=Math.PI/180,hr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,mr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=On(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),s,a;return e===n&&n===r?s=a=i:(s=fe((.4360747*e+.3850649*n+.1430804*r)/dn),a=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(s-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}cn(ft,gr,un(ln,{brighter(t){return new ft(this.l+ne*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-ne*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=dn*de(e),t=hn*de(t),n=mn*de(n),new on(he(3.1338561*e-1.6168667*t-.4906146*n),he(-.9787684*e+1.9161415*t+.033454*n),he(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function fe(t){return t>mr?Math.pow(t,1/3):t/yn+gn}function de(t){return t>Ft?t*t*t:yn*(t-gn)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=kn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const F=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return F;let S;do F.push(S=new Date(+s)),e(s,y),t(s);while(Snt(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(ge.setTime(+s),ye.setTime(+a),t(ge),t(ye),Math.floor(n(ge,ye))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Et=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,Se=yt*7,Ve=yt*30,ke=yt*365,vt=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Nt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Nt.range;const Tr=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());Tr.range;const Pt=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Pt.range;const xr=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());xr.range;const xt=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const _e=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);_e.range;const br=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));br.range;function Dt(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Se)}const zt=Dt(0),Vt=Dt(1),vn=Dt(2),Tn=Dt(3),bt=Dt(4),xn=Dt(5),bn=Dt(6);zt.range;Vt.range;vn.range;Tn.range;bt.range;xn.range;bn.range;function Mt(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Se)}const wn=Mt(0),re=Mt(1),wr=Mt(2),Dr=Mt(3),It=Mt(4),Mr=Mt(5),Cr=Mt(6);wn.range;re.range;wr.range;Dr.range;It.range;Mr.range;Cr.range;const Rt=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Rt.range;const Sr=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Sr.range;const kt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function _r(t,e,n,r,i,s){const a=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[s,1,ct],[s,5,5*ct],[s,15,15*ct],[s,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Se],[e,1,Ve],[e,3,3*Ve],[t,1,ke]];function y(S,w,P){const _=wv).right(a,_);if(Y===a.length)return t.every(Ne(S/ke,w/ke,P));if(Y===0)return Et.every(Math.max(Ne(S,w,P),1));const[X,B]=a[_/a[Y-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(A=ve($t(f.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?re.ceil(A):re(A),A=_e.offset(A,(f.V-1)*7),f.y=A.getUTCFullYear(),f.m=A.getUTCMonth(),f.d=A.getUTCDate()+(f.w+6)%7):(A=pe($t(f.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Vt.ceil(A):Vt(A),A=xt.offset(A,(f.V-1)*7),f.y=A.getFullYear(),f.m=A.getMonth(),f.d=A.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),Q="Z"in f?ve($t(f.y,0,1)).getUTCDay():pe($t(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Q+5)%7:f.w+f.U*7-(Q+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ve(f)):pe(f)}}function p(h,N,V,f){for(var tt=0,A=N.length,Q=V.length,Z,st;tt=Q)return-1;if(Z=N.charCodeAt(tt++),Z===37){if(Z=N.charAt(tt++),st=G[Z in Re?N.charAt(tt++):Z],!st||(f=st(h,V,f))<0)return-1}else if(Z!=V.charCodeAt(f++))return-1}return f}function L(h,N,V){var f=S.exec(N.slice(V));return f?(h.p=w.get(f[0].toLowerCase()),V+f[0].length):-1}function x(h,N,V){var f=Y.exec(N.slice(V));return f?(h.w=X.get(f[0].toLowerCase()),V+f[0].length):-1}function C(h,N,V){var f=P.exec(N.slice(V));return f?(h.w=_.get(f[0].toLowerCase()),V+f[0].length):-1}function M(h,N,V){var f=U.exec(N.slice(V));return f?(h.m=R.get(f[0].toLowerCase()),V+f[0].length):-1}function D(h,N,V){var f=B.exec(N.slice(V));return f?(h.m=v.get(f[0].toLowerCase()),V+f[0].length):-1}function c(h,N,V){return p(h,e,N,V)}function g(h,N,V){return p(h,n,N,V)}function b(h,N,V){return p(h,r,N,V)}function m(h){return a[h.getDay()]}function I(h){return s[h.getDay()]}function o(h){return F[h.getMonth()]}function W(h){return y[h.getMonth()]}function u(h){return i[+(h.getHours()>=12)]}function K(h){return 1+~~(h.getMonth()/3)}function l(h){return a[h.getUTCDay()]}function $(h){return s[h.getUTCDay()]}function O(h){return F[h.getUTCMonth()]}function j(h){return y[h.getUTCMonth()]}function H(h){return i[+(h.getUTCHours()>=12)]}function J(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var N=T(h+="",E);return N.toString=function(){return h},N},parse:function(h){var N=k(h+="",!1);return N.toString=function(){return h},N},utcFormat:function(h){var N=T(h+="",z);return N.toString=function(){return h},N},utcParse:function(h){var N=k(h+="",!0);return N.toString=function(){return h},N}}}var Re={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,Er=/^%/,Ir=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function Ar(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Nr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pr(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Be(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ze(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Gr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function jr(t,e,n){var r=rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xe(t,e){return q(t.getDate(),e,2)}function Qr(t,e){return q(t.getHours(),e,2)}function Jr(t,e){return q(t.getHours()%12||12,e,2)}function Kr(t,e){return q(1+xt.count(kt(t),t),e,3)}function Dn(t,e){return q(t.getMilliseconds(),e,3)}function ti(t,e){return Dn(t,e)+"000"}function ei(t,e){return q(t.getMonth()+1,e,2)}function ni(t,e){return q(t.getMinutes(),e,2)}function ri(t,e){return q(t.getSeconds(),e,2)}function ii(t){var e=t.getDay();return e===0?7:e}function si(t,e){return q(zt.count(kt(t)-1,t),e,2)}function Mn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ai(t,e){return t=Mn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function oi(t){return t.getDay()}function ci(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function ui(t,e){return q(t.getFullYear()%100,e,2)}function li(t,e){return t=Mn(t),q(t.getFullYear()%100,e,2)}function fi(t,e){return q(t.getFullYear()%1e4,e,4)}function di(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function hi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ge(t,e){return q(t.getUTCDate(),e,2)}function mi(t,e){return q(t.getUTCHours(),e,2)}function gi(t,e){return q(t.getUTCHours()%12||12,e,2)}function yi(t,e){return q(1+_e.count(wt(t),t),e,3)}function Cn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ki(t,e){return Cn(t,e)+"000"}function pi(t,e){return q(t.getUTCMonth()+1,e,2)}function vi(t,e){return q(t.getUTCMinutes(),e,2)}function Ti(t,e){return q(t.getUTCSeconds(),e,2)}function xi(t){var e=t.getUTCDay();return e===0?7:e}function bi(t,e){return q(wn.count(wt(t)-1,t),e,2)}function Sn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function wi(t,e){return t=Sn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Di(t){return t.getUTCDay()}function Mi(t,e){return q(re.count(wt(t)-1,t),e,2)}function Ci(t,e){return q(t.getUTCFullYear()%100,e,2)}function Si(t,e){return t=Sn(t),q(t.getUTCFullYear()%100,e,2)}function _i(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Fi(){return"+0000"}function je(){return"%"}function Qe(t){return+t}function Je(t){return Math.floor(+t/1e3)}var St,ie;Ui({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ui(t){return St=Ur(t),ie=St.format,St.parse,St.utcFormat,St.utcParse,St}function Ei(t){return new Date(t)}function Ii(t){return t instanceof Date?+t:+new Date(+t)}function _n(t,e,n,r,i,s,a,y,F,S){var w=Jn(),P=w.invert,_=w.domain,Y=S(".%L"),X=S(":%S"),B=S("%I:%M"),v=S("%I %p"),U=S("%a %d"),R=S("%b %d"),E=S("%B"),z=S("%Y");function G(T){return(F(T)4&&(Y+=7),_.add(Y,n));return X.diff(B,"week")+1},y.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var F=y.startOf;y.startOf=function(S,w){var P=this.$utils(),_=!!P.u(w)||w;return P.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(S,w)}}}))})(jt)),jt.exports}var $i=Wi();const Oi=oe($i);var Qt={exports:{}},Hi=Qt.exports,tn;function Ni(){return tn||(tn=1,(function(t,e){(function(n,r){t.exports=r()})(Hi,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,F={},S=function(v){return(v=+v)+(v>68?1900:2e3)},w=function(v){return function(U){this[v]=+U}},P=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(U){if(!U||U==="Z")return 0;var R=U.match(/([+-]|\d\d)/g),E=60*R[1]+(+R[2]||0);return E===0?0:R[0]==="+"?-E:E})(v)}],_=function(v){var U=F[v];return U&&(U.indexOf?U:U.s.concat(U.f))},Y=function(v,U){var R,E=F.meridiem;if(E){for(var z=1;z<=24;z+=1)if(v.indexOf(E(z,0,U))>-1){R=z>12;break}}else R=v===(U?"pm":"PM");return R},X={A:[y,function(v){this.afternoon=Y(v,!1)}],a:[y,function(v){this.afternoon=Y(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,w("seconds")],ss:[a,w("seconds")],m:[a,w("minutes")],mm:[a,w("minutes")],H:[a,w("hours")],h:[a,w("hours")],HH:[a,w("hours")],hh:[a,w("hours")],D:[a,w("day")],DD:[s,w("day")],Do:[y,function(v){var U=F.ordinal,R=v.match(/\d+/);if(this.day=R[0],U)for(var E=1;E<=31;E+=1)U(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[a,w("week")],ww:[s,w("week")],M:[a,w("month")],MM:[s,w("month")],MMM:[y,function(v){var U=_("months"),R=(_("monthsShort")||U.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[y,function(v){var U=_("months").indexOf(v)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,w("year")],YY:[s,function(v){this.year=S(v)}],YYYY:[/\d{4}/,w("year")],Z:P,ZZ:P};function B(v){var U,R;U=v,R=F&&F.formats;for(var E=(v=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,M){var D=M&&M.toUpperCase();return C||R[M]||n[M]||R[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(c,g,b){return g||b.slice(1)}))}))).match(r),z=E.length,G=0;G-1)return new Date((I==="X"?1e3:1)*m);var u=B(I)(m),K=u.year,l=u.month,$=u.day,O=u.hours,j=u.minutes,H=u.seconds,J=u.milliseconds,h=u.zone,N=u.week,V=new Date,f=$||(K||l?1:V.getDate()),tt=K||V.getFullYear(),A=0;K&&!l||(A=l>0?l-1:V.getMonth());var Q,Z=O||0,st=j||0,at=H||0,pt=J||0;return h?new Date(Date.UTC(tt,A,f,Z,st,at,pt+60*h.offset*1e3)):o?new Date(Date.UTC(tt,A,f,Z,st,at,pt)):(Q=new Date(tt,A,f,Z,st,at,pt),N&&(Q=W(Q).week(N).toDate()),Q)}catch{return new Date("")}})(T,L,k,R),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&T!=this.format(L)&&(this.$d=new Date("")),F={}}else if(L instanceof Array)for(var c=L.length,g=1;g<=c;g+=1){p[1]=L[g-1];var b=R.apply(this,p);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}g===c&&(this.$d=new Date(""))}else z.call(this,G)}}}))})(Qt)),Qt.exports}var Pi=Ni();const Vi=oe(Pi);var Jt={exports:{}},Ri=Jt.exports,en;function zi(){return en||(en=1,(function(t,e){(function(n,r){t.exports=r()})(Ri,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,F=this.$locale();if(!this.isValid())return s.bind(this)(a);var S=this.$utils(),w=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(P){switch(P){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return F.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return F.ordinal(y.week(),"W");case"w":case"ww":return S.s(y.week(),P==="w"?1:2,"0");case"W":case"WW":return S.s(y.isoWeek(),P==="W"?1:2,"0");case"k":case"kk":return S.s(String(y.$H===0?24:y.$H),P==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return P}}));return s.bind(this)(w)}}}))})(Jt)),Jt.exports}var qi=zi();const Bi=oe(qi);var Kt={exports:{}},Zi=Kt.exports,nn;function Xi(){return nn||(nn=1,(function(t,e){(function(n,r){t.exports=r()})(Zi,(function(){var n,r,i=1e3,s=6e4,a=36e5,y=864e5,F=31536e6,S=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,P=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:F,months:S,days:y,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},Y=function(T){return T instanceof z},X=function(T,k,p){return new z(T,p,k.$l)},B=function(T){return r.p(T)+"s"},v=function(T){return T<0},U=function(T){return v(T)?Math.ceil(T):Math.floor(T)},R=function(T){return Math.abs(T)},E=function(T,k){return T?v(T)?{negative:!0,format:""+R(T)+k}:{negative:!1,format:""+T+k}:{negative:!1,format:""}},z=(function(){function T(p,L,x){var C=this;if(this.$d={},this.$l=x,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return X(p*_[B(L)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(c){C.$d[B(c)]=p[c]})),this.calMilliseconds(),this;if(typeof p=="string"){var M=p.match(w);if(M){var D=M.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=D[0],this.$d.months=D[1],this.$d.weeks=D[2],this.$d.days=D[3],this.$d.hours=D[4],this.$d.minutes=D[5],this.$d.seconds=D[6],this.calMilliseconds(),this}}return this}var k=T.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function(L,x){return L+(p.$d[x]||0)*_[x]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=U(p/F),p%=F,this.$d.months=U(p/S),p%=S,this.$d.days=U(p/y),p%=y,this.$d.hours=U(p/a),p%=a,this.$d.minutes=U(p/s),p%=s,this.$d.seconds=U(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=E(this.$d.years,"Y"),L=E(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var C=E(x,"D"),M=E(this.$d.hours,"H"),D=E(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var g=E(c,"S"),b=p.negative||L.negative||C.negative||M.negative||D.negative||g.negative,m=M.format||D.format||g.format?"T":"",I=(b?"-":"")+"P"+p.format+L.format+C.format+m+M.format+D.format+g.format;return I==="P"||I==="-P"?"P0D":I},k.toJSON=function(){return this.toISOString()},k.format=function(p){var L=p||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(P,(function(C,M){return M||String(x[C])}))},k.as=function(p){return this.$ms/_[B(p)]},k.get=function(p){var L=this.$ms,x=B(p);return x==="milliseconds"?L%=1e3:L=x==="weeks"?U(L/_[x]):this.$d[x],L||0},k.add=function(p,L,x){var C;return C=L?p*_[B(L)]:Y(p)?p.$ms:X(p,this).$ms,X(this.$ms+C*(x?-1:1),this)},k.subtract=function(p,L){return this.add(p,L,!0)},k.locale=function(p){var L=this.clone();return L.$l=p,L},k.clone=function(){return X(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},T})(),G=function(T,k,p){return T.add(k.years()*p,"y").add(k.months()*p,"M").add(k.days()*p,"d").add(k.hours()*p,"h").add(k.minutes()*p,"m").add(k.seconds()*p,"s").add(k.milliseconds()*p,"ms")};return function(T,k,p){n=p,r=p().$utils(),p.duration=function(C,M){var D=p.locale();return X(C,{$l:D},M)},p.isDuration=Y;var L=k.prototype.add,x=k.prototype.subtract;k.prototype.add=function(C,M){return Y(C)?G(this,C,1):L.bind(this)(C,M)},k.prototype.subtract=function(C,M){return Y(C)?G(this,C,-1):x.bind(this)(C,M)}}}))})(Kt)),Kt.exports}var Gi=Xi();const ji=oe(Gi);var we=(function(){var t=d(function(D,c,g,b){for(g=g||{},b=D.length;b--;g[D[b]]=c);return g},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],y=[1,31],F=[1,32],S=[1,33],w=[1,34],P=[1,9],_=[1,10],Y=[1,11],X=[1,12],B=[1,13],v=[1,14],U=[1,15],R=[1,16],E=[1,19],z=[1,20],G=[1,21],T=[1,22],k=[1,23],p=[1,25],L=[1,35],x={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(c,g,b,m,I,o,W){var u=o.length-1;switch(I){case 1:return o[u-1];case 2:this.$=[];break;case 3:o[u-1].push(o[u]),this.$=o[u-1];break;case 4:case 5:this.$=o[u];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=o[u].substr(18);break;case 19:m.TopAxis(),this.$=o[u].substr(8);break;case 20:m.setAxisFormat(o[u].substr(11)),this.$=o[u].substr(11);break;case 21:m.setTickInterval(o[u].substr(13)),this.$=o[u].substr(13);break;case 22:m.setExcludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 23:m.setIncludes(o[u].substr(9)),this.$=o[u].substr(9);break;case 24:m.setTodayMarker(o[u].substr(12)),this.$=o[u].substr(12);break;case 27:m.setDiagramTitle(o[u].substr(6)),this.$=o[u].substr(6);break;case 28:this.$=o[u].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=o[u].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(o[u].substr(8)),this.$=o[u].substr(8);break;case 33:m.addTask(o[u-1],o[u]),this.$="task";break;case 34:this.$=o[u-1],m.setClickEvent(o[u-1],o[u],null);break;case 35:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],o[u]);break;case 36:this.$=o[u-2],m.setClickEvent(o[u-2],o[u-1],null),m.setLink(o[u-2],o[u]);break;case 37:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-2],o[u-1]),m.setLink(o[u-3],o[u]);break;case 38:this.$=o[u-2],m.setClickEvent(o[u-2],o[u],null),m.setLink(o[u-2],o[u-1]);break;case 39:this.$=o[u-3],m.setClickEvent(o[u-3],o[u-1],o[u]),m.setLink(o[u-3],o[u-2]);break;case 40:this.$=o[u-1],m.setLink(o[u-1],o[u]);break;case 41:case 47:this.$=o[u-1]+" "+o[u];break;case 42:case 43:case 45:this.$=o[u-2]+" "+o[u-1]+" "+o[u];break;case 44:case 46:this.$=o[u-3]+" "+o[u-2]+" "+o[u-1]+" "+o[u];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:F,19:18,20:S,21:w,22:P,23:_,24:Y,25:X,26:B,27:v,28:U,29:R,30:E,31:z,33:G,35:T,36:k,37:24,38:p,40:L},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(c,g){if(g.recoverable)this.trace(c);else{var b=new Error(c);throw b.hash=g,b}},"parseError"),parse:d(function(c){var g=this,b=[0],m=[],I=[null],o=[],W=this.table,u="",K=0,l=0,$=2,O=1,j=o.slice.call(arguments,1),H=Object.create(this.lexer),J={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(J.yy[h]=this.yy[h]);H.setInput(c,J.yy),J.yy.lexer=H,J.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var N=H.yylloc;o.push(N);var V=H.options&&H.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){b.length=b.length-2*ot,I.length=I.length-ot,o.length=o.length-ot}d(f,"popStack");function tt(){var ot;return ot=m.pop()||H.lex()||O,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=g.symbols_[ot]||ot),ot}d(tt,"lex");for(var A,Q,Z,st,at={},pt,ut,He,Bt;;){if(Q=b[b.length-1],this.defaultActions[Q]?Z=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=tt()),Z=W[Q]&&W[Q][A]),typeof Z>"u"||!Z.length||!Z[0]){var ce="";Bt=[];for(pt in W[Q])this.terminals_[pt]&&pt>$&&Bt.push("'"+this.terminals_[pt]+"'");H.showPosition?ce="Parse error on line "+(K+1)+`: `+H.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ce="Parse error on line "+(K+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ce,{text:H.match,token:this.terminals_[A]||A,line:H.yylineno,loc:N,expected:Bt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(Z[0]){case 1:b.push(A),I.push(H.yytext),o.push(H.yylloc),b.push(Z[1]),A=null,l=H.yyleng,u=H.yytext,K=H.yylineno,N=H.yylloc;break;case 2:if(ut=this.productions_[Z[1]][1],at.$=I[I.length-ut],at._$={first_line:o[o.length-(ut||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ut||1)].first_column,last_column:o[o.length-1].last_column},V&&(at._$.range=[o[o.length-(ut||1)].range[0],o[o.length-1].range[1]]),st=this.performAction.apply(at,[u,l,K,J.yy,Z[1],I,o].concat(j)),typeof st<"u")return st;ut&&(b=b.slice(0,-1*ut*2),I=I.slice(0,-1*ut),o=o.slice(0,-1*ut)),b.push(this.productions_[Z[1]][0]),I.push(at.$),o.push(at._$),He=W[b[b.length-2]][b[b.length-1]],b.push(He);break;case 3:return!0}}return!0},"parse")},C=(function(){var D={EOF:1,parseError:d(function(g,b){if(this.yy.parser)this.yy.parser.parseError(g,b);else throw new Error(g)},"parseError"),setInput:d(function(c,g){return this.yy=g||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var g=c.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var g=c.length,b=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===m.length?this.yylloc.first_column:0)+m[m.length-b.length].length-b[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),g=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js b/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js similarity index 95% rename from apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js rename to apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js index 7b897ad223f..6c06acc6c8c 100644 --- a/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-BiSdMc-5.js +++ b/apps/kimi-code/dist-web/assets/gitGraphDiagram-IHSO6WYX-DaTSF-Bh.js @@ -1,4 +1,4 @@ -import{I as le}from"./chunk-2Q5K7J3B-X9yuSZVx.js";import{p as he}from"./chunk-JWPE2WC7-pbPBApdZ.js";import{o as $e,n as fe,s as ge,g as ue,a as ye,b as xe,_ as h,y as J,l as w,d as me,c as q,x as pe,z as be,p as we,k as B,A as ke,B as ve,C as Ce}from"./mermaid.core-D8UeR6T-.js";import{p as Ee}from"./cynefin-VYW2F7L2-DZba3nFe.js";import"./index-CAYChmT7.js";import"./_commonjsHelpers-CqkleIqs.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",` +import{I as le}from"./chunk-2Q5K7J3B-DqVWYlyS.js";import{p as he}from"./chunk-JWPE2WC7-XhS5NGpP.js";import{p as $e,o as fe,s as ge,g as ue,a as ye,b as xe,_ as h,z as J,l as w,d as me,c as W,y as pe,A as be,q as we,k as B,B as ke,D as ve,E as Ce}from"./mermaid.core-DaDTfY6S.js";import{p as Ee}from"./cynefin-VYW2F7L2-0NmB13eq.js";import"./index-D1h84VfZ.js";import"./_commonjsHelpers-CqkleIqs.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",` ${s-i/2-L/2},${x+R} ${s-i/2-L/2},${x-R} ${t.posWithOffset-i/2-L},${x-c-R} @@ -10,8 +10,8 @@ import{I as le}from"./chunk-2Q5K7J3B-X9yuSZVx.js";import{p as he}from"./chunk-JW ${t.x+O},${u-c-2} ${t.x+O+i+4},${u-c-2} ${t.x+O+i+4},${u+c+2} - ${t.x+O},${u+c+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),f.attr("cx",t.x+L/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),l.attr("x",t.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+s+")")}}}},"drawCommitTags"),cr=h(e=>{switch(e.customType??e.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ir=h((e,r,t,s)=>{const o={x:0,y:0};if(e.parents.length>0){const i=ce(e.parents);if(i){const n=s.get(i)??o;return r==="TB"?n.y+_:r==="BT"?(s.get(e.id)??o).y-_:n.x+_}}else return r==="TB"?F:r==="BT"?(s.get(e.id)??o).y-_:0;return 0},"calculatePosition"),dr=h((e,r,t)=>{const s=y==="BT"&&t?r:r+O,o=C.get(e.branch)?.pos,i=y==="TB"||y==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=j.has(q().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),re=h((e,r,t,s)=>{const o=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...r.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=r.get($)?.seq,u=r.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Ze(g,r,n),g=g.reverse()),g.forEach($=>{const c=r.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ir(c,y,n,E));const x=dr(c,n,l);if(t){const u=cr(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;nr(o,c,x,u,b,p),sr(i,c,x,n,s),or(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>I&&(I=n)})},"drawCommits"),lr=h((e,r,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.xf.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>e.seq&&f.seql(f)&&a(f))},"shouldRerouteArrow"),W=h((e,r,t=0)=>{const s=e+Math.abs(e-r)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(e-r);return W(e,r-i/5,t+1)},"findLane"),hr=h((e,r,t,s)=>{const{theme:o}=q(),i=Z.has(o??""),n=E.get(r.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=lr(r,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&r.id!==t.parents[0]&&(x=C.get(r.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.ya.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.xa.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.ya.y&&(t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$r=h((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const o=r.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{hr(t,r.get(i),o,r)})})},"drawArrows"),fr=h((e,r,t,s)=>{const{look:o,theme:i,themeVariables:n}=q(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=e.append("g");r.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",I),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",I),k.attr("x2",p)):y==="BT"&&(k.attr("y1",I),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const U=c.name,D=oe(U),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),ee=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",I),M.attr("transform","translate("+(p-v.width/2-5)+", "+I+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(I+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),gr=h(function(e,r,t,s,o){return C.set(e,{pos:r,index:t}),r+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),r},"setBranchPosition"),ur=h(function(e,r,t,s){Je(),w.debug("in gitgraph renderer",e+` -`,"id:",r,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;P=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=me(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=q(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,U)=>{const D=oe(k.name),T=l.append("g"),K=T.insert("g").attr("class","branchLabel"),M=K.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=gr(k.name,b,U,v,n),M.remove(),K.remove(),T.remove()}),re(l,P,!1,i),i.showBranches&&fr(l,a,i,r),$r(l,P),re(l,P,!0,i),pe.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),be(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),yr={draw:ur},ie=8,de=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xr=new Set(["redux-color","redux-dark-color"]),mr=new Set(["neo","neo-dark"]),pr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let s=0;s{switch(e.customType??e.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ir=h((e,r,t,s)=>{const o={x:0,y:0};if(e.parents.length>0){const i=ce(e.parents);if(i){const n=s.get(i)??o;return r==="TB"?n.y+_:r==="BT"?(s.get(e.id)??o).y-_:n.x+_}}else return r==="TB"?F:r==="BT"?(s.get(e.id)??o).y-_:0;return 0},"calculatePosition"),dr=h((e,r,t)=>{const s=y==="BT"&&t?r:r+O,o=C.get(e.branch)?.pos,i=y==="TB"||y==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=j.has(W().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),re=h((e,r,t,s)=>{const o=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...r.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=r.get($)?.seq,u=r.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Ze(g,r,n),g=g.reverse()),g.forEach($=>{const c=r.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ir(c,y,n,E));const x=dr(c,n,l);if(t){const u=cr(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;nr(o,c,x,u,b,p),sr(i,c,x,n,s),or(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>I&&(I=n)})},"drawCommits"),lr=h((e,r,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.xf.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>e.seq&&f.seql(f)&&a(f))},"shouldRerouteArrow"),P=h((e,r,t=0)=>{const s=e+Math.abs(e-r)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(e-r);return P(e,r-i/5,t+1)},"findLane"),hr=h((e,r,t,s)=>{const{theme:o}=W(),i=Z.has(o??""),n=E.get(r.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=lr(r,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&r.id!==t.parents[0]&&(x=C.get(r.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.ya.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.xa.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.ya.y&&(t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$r=h((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const o=r.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{hr(t,r.get(i),o,r)})})},"drawArrows"),fr=h((e,r,t,s)=>{const{look:o,theme:i,themeVariables:n}=W(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=e.append("g");r.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",I),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",I),k.attr("x2",p)):y==="BT"&&(k.attr("y1",I),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const U=c.name,D=oe(U),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),ee=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",I),M.attr("transform","translate("+(p-v.width/2-5)+", "+I+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(I+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),gr=h(function(e,r,t,s,o){return C.set(e,{pos:r,index:t}),r+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),r},"setBranchPosition"),ur=h(function(e,r,t,s){Je(),w.debug("in gitgraph renderer",e+` +`,"id:",r,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;q=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=me(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=W(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,U)=>{const D=oe(k.name),T=l.append("g"),K=T.insert("g").attr("class","branchLabel"),M=K.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=gr(k.name,b,U,v,n),M.remove(),K.remove(),T.remove()}),re(l,q,!1,i),i.showBranches&&fr(l,a,i,r),$r(l,q),re(l,q,!0,i),pe.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),be(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),yr={draw:ur},ie=8,de=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xr=new Set(["redux-color","redux-dark-color"]),mr=new Set(["neo","neo-dark"]),pr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let s=0;s{const r=J(),{theme:t,themeVariables:s}=r,{borderColorArray:o}=s,i=de.has(t);if(mr.has(t)){let n="";for(let a=0;adiv[id^=dmermaid-]{position:fixed;top:-10000px;left:0;width:100%;visibility:hidden;pointer-events:none}.markstream-vue .hover\:bg-\[var\(--code-action-hover-bg\)\]:hover{background-color:var(--code-action-hover-bg)}.markstream-vue .hover\:text-\[var\(--code-action-hover-fg\)\]:hover{color:var(--code-action-hover-fg)}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}.markstream-vue .active\:scale-\[0\.96\]:active{--tw-scale-x: .96;--tw-scale-y: .96;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.markstream-vue .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.markstream-vue .disabled\:opacity-40:disabled{opacity:.4}.checkbox-node[data-v-be21ab83]{display:inline-flex;align-items:center;margin-right:.5em;vertical-align:-.15em}.checkbox-icon[data-v-be21ab83]{flex-shrink:0}.checkbox-unchecked[data-v-be21ab83]{color:hsl(var(--ms-muted-foreground) / .5)}.checkbox-checked[data-v-be21ab83]{color:hsl(var(--ms-info))}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-c1463a29]{font-size:.75em;line-height:0}.footnote-link[data-v-c1463a29]{color:var(--link-color);text-decoration:none}.footnote-link[data-v-c1463a29]:hover{text-decoration:underline}.html-inline-node[data-v-d17f12b0]{display:inline}.html-inline-node--loading[data-v-d17f12b0]{opacity:.85}.inline-code[data-v-4e331c97]{display:inline;font-family:var(--ms-font-mono);font-size:.8125em;line-height:inherit;color:var(--inline-code-fg);background-color:var(--inline-code-bg);padding:.15em .35em;border-radius:.25em;white-space:normal;word-break:break-word;max-width:100%;-webkit-box-decoration-break:clone;box-decoration-break:clone}.inline-code-stream-delta[data-v-4e331c97]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both}.inline-code-stream-delta--a[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-a-4e331c97}.inline-code-stream-delta--b[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-b-4e331c97}@keyframes inline-code-stream-update-fade-a-4e331c97{0%{opacity:0}to{opacity:1}}@keyframes inline-code-stream-update-fade-b-4e331c97{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.inline-code-stream-delta[data-v-4e331c97]{animation:none!important}}.image-node-container[data-v-046e82ac]{display:inline-block;position:relative;vertical-align:middle;max-width:var(--ms-size-image-max-width)}.image-node__img[data-v-046e82ac]{display:inline-block;max-width:100%;min-width:var(--ms-size-image-min-width);min-height:var(--ms-size-image-min-height);height:auto;vertical-align:middle;transition:opacity var(--ms-duration-emphasis) var(--ms-ease-standard)}.image-node__img.is-loading[data-v-046e82ac]{opacity:0}.image-node__img.is-loaded[data-v-046e82ac]{opacity:1}.image-node__img.has-natural-size[data-v-046e82ac]{min-width:0;min-height:0}.image-placeholder[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:var(--ms-size-image-min-width);min-height:128px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));overflow:hidden;vertical-align:middle}.image-shimmer-overlay[data-v-046e82ac]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:hsl(var(--ms-muted));overflow:hidden}.image-shimmer-overlay .image-shimmer[data-v-046e82ac]{width:100%;height:100%}.image-shimmer[data-v-046e82ac]{display:block;width:100%;height:100%;min-height:128px;background:linear-gradient(90deg,hsl(var(--ms-muted)),hsl(var(--ms-muted-foreground) / .06),hsl(var(--ms-muted)));background-size:200% 100%;animation:image-shimmer-046e82ac 1.5s ease-in-out infinite}.image-node-container[data-markstream-viewport-pending=true] .image-shimmer[data-v-046e82ac]{animation:none}@keyframes image-shimmer-046e82ac{0%{background-position:100% 0}to{background-position:-100% 0}}.image-error[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:16px 24px;min-height:64px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground));font-size:var(--ms-text-label);vertical-align:middle}.image-node__raw-text[data-v-046e82ac]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}@media(prefers-reduced-motion:reduce){.image-shimmer[data-v-046e82ac]{animation:none!important}}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[data-markstream-pre="1"]:not(.markstream-pre--diff-preview){background:var(--code-bg);color:var(--code-fg)}.markstream-vue pre.markstream-pre--line-numbers{position:relative}.markstream-vue pre.code-pre-fallback[data-markstream-code-loading="1"]{--markstream-pre-line-number-top: var(--markstream-code-padding-y, 8px);--markstream-pre-line-number-left: 0px;--markstream-pre-line-number-width: 2ch;--markstream-pre-line-number-padding-left: 2ch;--markstream-pre-line-number-padding-right: 1ch;--markstream-pre-line-number-separator-width: 2px;--markstream-code-padding-left: calc(6ch + 2px) ;box-sizing:border-box;width:100%;margin:0;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left);overflow:auto;border:0;border-radius:0;background:var(--code-bg);color:var(--code-fg);font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace );font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers{position:absolute;top:var(--markstream-pre-line-number-top, 0);left:var(--markstream-pre-line-number-left, 0);box-sizing:content-box;display:flex;flex-direction:column;align-items:flex-end;width:var(--markstream-pre-line-number-width, 2ch);min-width:var(--markstream-pre-line-number-width, 2ch);padding-left:var(--markstream-pre-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-line-number-padding-right, 1ch);border-right:var(--markstream-pre-line-number-separator-width, 2px) solid transparent;color:var(--code-line-number);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--line-numbers:not(.markstream-pre--diff-preview):not(.code-pre-fallback)>.markstream-pre__code{box-sizing:border-box;min-width:100%;padding-left:var(--markstream-code-padding-left, 52px);padding-right:var(--markstream-code-padding-x, 12px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-number{display:block;min-height:1lh}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-numbers-text{display:block;min-height:1lh;text-align:right;white-space:pre}.markstream-vue pre.markstream-pre--diff-preview{box-sizing:border-box;padding-left:0;padding-right:0;width:100%;--markstream-pre-diff-gutter-marker-width: var(--stream-monaco-gutter-marker-width, 4px);--markstream-pre-diff-gutter-gap: var(--stream-monaco-gutter-gap, 1ch);--markstream-pre-diff-code-gap: var(--stream-monaco-diff-code-gap, 1ch);--markstream-pre-diff-code-padding: var(--stream-monaco-diff-code-padding, 0px);--markstream-diff-added-fg: var(--diff-added-fg, #2f8f68);--markstream-diff-removed-fg: var(--diff-removed-fg, #c24141);--markstream-diff-added-line-fill: var(--diff-added-bg, rgb(47 143 104 / 12%));--markstream-diff-removed-line-fill: var(--diff-removed-bg, rgb(194 65 65 / 12%));--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-diff-removed-gutter: linear-gradient( 90deg, var(--markstream-diff-removed-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-pre-diff-line-number-width: var( --stream-monaco-line-number-width, 2ch );--markstream-pre-diff-line-number-padding-left: var(--stream-monaco-line-number-padding-left, 2ch);--markstream-pre-diff-line-number-padding-right: var(--stream-monaco-line-number-padding-right, 1ch);--markstream-pre-diff-line-number-separator-width: var(--stream-monaco-line-number-separator-width, 2px);--markstream-pre-diff-line-number-box-width: calc( var(--markstream-pre-diff-line-number-padding-left) + var(--markstream-pre-diff-line-number-width) + var(--markstream-pre-diff-line-number-padding-right) + var(--markstream-pre-diff-line-number-separator-width) );--markstream-pre-diff-line-number-bg: var( --stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg, transparent) );--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-original-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );--markstream-pre-diff-line-number-align: var(--markstream-diff-line-number-align, right);--markstream-pre-diff-code-fill-left: calc( var(--markstream-pre-diff-line-number-left) + var(--markstream-pre-diff-line-number-box-width) );--markstream-pre-diff-code-left: calc( var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-line-number-gap-to-code) + var(--markstream-pre-diff-code-padding) )}.markstream-vue pre.markstream-pre--diff-preview::-webkit-scrollbar{width:12px;height:12px}.markstream-vue pre.markstream-pre--diff-preview.is-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline{--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px )}.markstream-vue pre.markstream-pre--diff-preview>.markstream-pre__diff-code{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font:inherit;line-height:inherit;min-width:100%;width:100%}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline>.markstream-pre__diff-code{grid-template-columns:minmax(0,1fr)}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap)>.markstream-pre__diff-code{grid-template-columns:minmax(100%,max-content);width:100%;min-width:-moz-max-content;min-width:max-content}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane{min-width:0;overflow:hidden}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{overflow-x:auto;overflow-y:hidden}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane-content{display:block;min-width:100%}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane-content{width:-moz-max-content;width:max-content}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap) .markstream-pre__diff-pane{min-width:-moz-max-content;min-width:max-content;width:100%;overflow:visible}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane--modified{--markstream-pre-diff-pane-divider-width: 1px;--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );box-shadow:inset 1px 0 var(--markstream-diff-pane-divider, hsl(var(--ms-border)))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified{--markstream-pre-diff-line-number-left: calc( var(--stream-monaco-line-number-left, 0px) + var(--markstream-pre-diff-pane-divider-width) )}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-rail{left:var(--markstream-pre-diff-pane-divider-width)}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line{padding-left:calc(var(--markstream-pre-diff-code-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line:before{left:calc(var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline .markstream-pre__diff-pane--modified{box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line{position:relative;display:block;box-sizing:border-box;width:100%;min-width:100%;min-height:var( --markstream-pre-diff-synced-row-height, var(--markstream-pre-diff-line-height, 18px) );padding-left:var(--markstream-pre-diff-code-left);line-height:var(--markstream-pre-diff-line-height, 18px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:before{content:"";position:absolute;left:var(--markstream-pre-diff-code-fill-left);right:0;top:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;border-radius:0;background:transparent}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:after{content:"";position:absolute;left:var(--markstream-pre-diff-line-number-left);top:0;width:var(--markstream-pre-diff-line-number-box-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-rail{position:absolute;z-index:2;top:0;left:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );width:var(--markstream-pre-diff-gutter-marker-width, 4px);min-width:var(--markstream-pre-diff-gutter-marker-width, 4px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-number{position:absolute;z-index:1;top:0;left:var(--markstream-pre-diff-line-number-left);width:var(--markstream-pre-diff-line-number-width);min-width:var(--markstream-pre-diff-line-number-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );box-sizing:content-box;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none;padding-left:var(--markstream-pre-diff-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-diff-line-number-padding-right, 1ch);border-right:var(--markstream-pre-diff-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg, var(--code-bg));color:var(--code-line-number);font-variant-numeric:tabular-nums;line-height:var(--markstream-pre-diff-line-height, 18px);text-align:var(--markstream-pre-diff-line-number-align, right);-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent));color:var(--stream-monaco-added-fg, var(--markstream-diff-added-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent));color:var(--stream-monaco-removed-fg, var(--markstream-diff-removed-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content{position:relative;z-index:1;display:block;width:-moz-max-content;width:max-content;min-width:100%;line-height:var(--markstream-pre-diff-line-height, 18px);white-space:inherit;overflow-wrap:normal;word-break:normal;line-break:auto}.markstream-vue pre.markstream-pre--diff-preview.is-wrap .markstream-pre__diff-content{width:auto;min-width:0;overflow-wrap:inherit}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content-inner{white-space:inherit;overflow-wrap:inherit;word-break:inherit;line-break:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk{color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk:before{background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:before{background-image:linear-gradient(-45deg,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 12.5%,transparent 12.5%,transparent 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 62.5%,transparent 62.5%,transparent 100%);background-size:10px 10px;opacity:.38}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-number,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-content{display:none}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-collapsed:not(.code-pre-fallback){height:auto!important;min-height:0!important}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed{min-height:28px;padding-left:0;color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)));line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:before{left:0;height:28px;background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, rgb(0 0 0 / 4%)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-number{display:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-content{width:100%;min-width:0;padding-left:calc(var(--markstream-pre-diff-code-left) + 12px);line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:before{background:linear-gradient(var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent)),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:before{background:linear-gradient(var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent)),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:after{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.text-node[data-v-fd79037c]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-fd79037c]{display:inline-flex;justify-content:center;width:100%}.text-node-stream-delta[data-v-fd79037c]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both;will-change:opacity}.text-node-stream-delta--a[data-v-fd79037c]{animation-name:text-node-stream-update-fade-a-fd79037c}.text-node-stream-delta--b[data-v-fd79037c]{animation-name:text-node-stream-update-fade-b-fd79037c}@keyframes text-node-stream-update-fade-a-fd79037c{0%{opacity:0}to{opacity:1}}@keyframes text-node-stream-update-fade-b-fd79037c{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.text-node-stream-delta[data-v-fd79037c]{animation:none!important}}.reference-node[data-v-775c65e4]{background-color:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground))}.reference-node[data-v-775c65e4]:hover{background-color:hsl(var(--ms-secondary))}.superscript-node[data-v-24160b22]{font-size:.8em;vertical-align:super}.subscript-node[data-v-197fa13b]{font-size:.8em;vertical-align:sub}.strong-node[data-v-a8647104]{font-weight:700}.strikethrough-node[data-v-b7a531fa]{text-decoration:line-through}.link-node[data-v-367e6ca4]{color:var(--link-color);text-decoration:none}.link-node[data-v-367e6ca4]:hover{text-decoration:underline;text-underline-offset:3.2px}.link-loading .link-text-wrapper[data-v-367e6ca4]{position:relative}.link-loading[data-v-367e6ca4]{color:var(--link-color)}.link-loading .link-text[data-v-367e6ca4]{position:relative;z-index:2}.link-loading-indicator[data-v-367e6ca4]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;border-radius:999px;will-change:opacity;opacity:var(--underline-rest-opacity, .18);animation:underlinePulse-367e6ca4 var(--underline-duration, 1.6s) var(--underline-timing, ease-in-out) var(--underline-iteration, infinite)}@keyframes underlinePulse-367e6ca4{0%,to{opacity:var(--underline-rest-opacity, .18)}50%{opacity:var(--underline-opacity, .35)}}@media(prefers-reduced-motion:reduce){.link-loading-indicator[data-v-367e6ca4]{animation:none;opacity:var(--underline-rest-opacity, .18)}}.insert-node[data-v-1e2c29d4]{text-decoration:underline}.highlight-node[data-v-7a62982a]{background-color:var(--highlight-bg);padding:0 3.2px;border-radius:.2em}.emphasis-node[data-v-2a5aafbf]{font-style:italic}.hard-break[data-v-50c58f70]{display:block}.blockquote[data-v-abfecebc]{font-weight:400;font-style:normal;color:var(--blockquote-fg, hsl(var(--ms-muted-foreground)));border-left:3px solid var(--blockquote-border);margin-top:var(--ms-flow-blockquote-y);margin-bottom:var(--ms-flow-blockquote-y);padding-left:var(--ms-flow-blockquote-indent)}.blockquote>.paragraph-node[data-v-abfecebc]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}.blockquote>.paragraph-node[data-v-abfecebc]:first-child{margin-top:0}.blockquote>.paragraph-node[data-v-abfecebc]:last-child{margin-bottom:0}.blockquote[data-v-abfecebc] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.definition-list[data-v-4e103b30]{margin:0 0 16px}.definition-term[data-v-4e103b30]{font-weight:600;margin-top:var(--ms-flow-definition-term-mt)}.definition-desc[data-v-4e103b30]{margin-left:var(--ms-flow-definition-desc-ml);margin-bottom:var(--ms-flow-definition-desc-mb)}.definition-list[data-v-4e103b30] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.footnote-anchor[data-v-e1eb37b6]{margin-left:8px;color:var(--link-color)}.footnote-node{margin-top:var(--ms-flow-footnote-y);margin-bottom:var(--ms-flow-footnote-y)}.markstream-vue [class*=footnote-] .markdown-renderer,.markstream-vue .flex-1 .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.heading-node[data-v-7122dbe1]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-7122dbe1]{margin-top:0}.heading-1[data-v-7122dbe1]{font-size:var(--ms-text-h1);line-height:var(--ms-leading-h1);font-weight:var(--ms-weight-h1);margin-top:var(--ms-flow-heading-1-mt);margin-bottom:var(--ms-flow-heading-1-mb)}.heading-2[data-v-7122dbe1]{font-size:var(--ms-text-h2);line-height:var(--ms-leading-h2);font-weight:var(--ms-weight-h2);margin-top:var(--ms-flow-heading-2-mt);margin-bottom:var(--ms-flow-heading-2-mb)}.heading-3[data-v-7122dbe1]{font-size:var(--ms-text-h3);line-height:var(--ms-leading-h3);font-weight:var(--ms-weight-h3);margin-top:var(--ms-flow-heading-3-mt);margin-bottom:var(--ms-flow-heading-3-mb)}.heading-4[data-v-7122dbe1]{font-size:var(--ms-text-h4);font-weight:var(--ms-weight-h4);margin-top:var(--ms-flow-heading-4-mt);margin-bottom:var(--ms-flow-heading-4-mb)}.heading-5[data-v-7122dbe1]{font-size:var(--ms-text-h5);margin-top:var(--ms-flow-heading-5-mt);margin-bottom:var(--ms-flow-heading-5-mb)}.heading-6[data-v-7122dbe1]{font-size:var(--ms-text-h6);margin-top:var(--ms-flow-heading-6-mt);margin-bottom:var(--ms-flow-heading-6-mb)}.list-item[data-v-617214f9]{margin:var(--ms-flow-list-item-y) 0;padding-left:var(--ms-space-1_5)}ol>.list-item[data-v-617214f9]::marker{color:var(--list-counter-marker);line-height:1.6}ul>.list-item[data-v-617214f9]::marker{color:var(--list-marker)}.list-item>.paragraph-node[data-v-617214f9]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:0}.list-item[data-v-617214f9] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:content}.list-node[data-v-99cb95e0]{margin-top:var(--ms-flow-list-y);margin-bottom:var(--ms-flow-list-y);padding-left:var(--ms-flow-list-indent)}.list-decimal[data-v-99cb95e0]{list-style-type:decimal}.list-disc[data-v-99cb95e0]{list-style-type:disc}@media(max-width:1023px){.list-disc[data-v-99cb95e0]{margin-top:calc(4/3*1em);margin-bottom:calc(4/3*1em);padding-left:var(--ms-flow-list-indent-mobile)}}.html-block-node__raw[data-v-e140a874]{white-space:pre-wrap;overflow-wrap:anywhere;opacity:.85}.html-block-node__placeholder[data-v-e140a874]{display:flex;flex-direction:column;gap:5.6px;padding:8px 0}.html-block-node__placeholder-bar[data-v-e140a874]{display:block;height:12.8px;border-radius:9999px;background-image:linear-gradient(90deg,var(--loading-shimmer),transparent,var(--loading-shimmer));background-size:200% 100%}.paragraph-node[data-v-c59ff506]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}li .paragraph-node[data-v-c59ff506]{margin:0}.table-node-wrapper[data-v-39f87b5d]{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable}.table-node[data-v-39f87b5d]{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:var(--ms-flow-table-y) 0;font-size:inherit;border:1px solid var(--table-border);border-radius:var(--ms-radius);overflow:hidden;box-shadow:var(--ms-shadow-subtle)}.table-node[data-v-39f87b5d] th,.table-node[data-v-39f87b5d] td{border-bottom:1px solid var(--table-border);border-right:1px solid var(--table-border);padding:var(--ms-flow-table-cell);white-space:normal;overflow-wrap:break-word;word-break:normal}.table-node[data-v-39f87b5d] th:last-child,.table-node[data-v-39f87b5d] td:last-child{border-right:none}.table-node[data-v-39f87b5d] tbody tr:last-child td{border-bottom:none}.table-node[data-v-39f87b5d] thead th{position:relative;font-weight:600;background-color:var(--table-header-bg);border-bottom-width:2px}.table-node__resize-handle[data-v-39f87b5d]{position:absolute;top:0;right:-4px;bottom:0;z-index:1;width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.table-node__resize-handle[data-v-39f87b5d]:after{content:"";position:absolute;top:.35em;bottom:.35em;left:50%;width:2px;border-radius:9999px;background:color-mix(in srgb,var(--table-border) 45%,hsl(var(--ms-foreground)));opacity:0;transform:translate(-50%);transition:opacity var(--ms-duration-fast) var(--ms-ease-standard)}.table-node__resize-handle[data-v-39f87b5d]:hover:after,.table-node__resize-handle[data-v-39f87b5d]:focus-visible:after{opacity:1}.table-node[data-v-39f87b5d] tbody tr:nth-child(2n){background-color:hsl(var(--ms-muted) / .35)}.table-node[data-v-39f87b5d] tbody tr:hover{background-color:var(--code-action-hover-bg)}.table-node--loading tbody td[data-v-39f87b5d]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-39f87b5d]>*{visibility:hidden}.table-node--loading tbody td[data-v-39f87b5d]:after{content:"";position:absolute;inset:0;border-radius:calc(var(--ms-radius) * .5);background:linear-gradient(90deg,var(--loading-shimmer) 25%,var(--loading-shimmer) 50%,var(--loading-shimmer) 75%);background-size:200% 100%;animation:table-node-shimmer-39f87b5d 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-39f87b5d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-39f87b5d]{width:40px;height:40px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-39f87b5d],.table-node-fade-leave-active[data-v-39f87b5d]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-39f87b5d],.table-node-fade-leave-to[data-v-39f87b5d]{opacity:0}[data-v-39f87b5d] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-39f87b5d] .table-node .markdown-renderer .node-slot,[data-v-39f87b5d] .table-node .markdown-renderer .node-content,[data-v-39f87b5d] .table-node .markdown-renderer .node-space{display:contents}[data-v-39f87b5d] .table-node .text-node,[data-v-39f87b5d] .table-node code{white-space:inherit;overflow-wrap:inherit;word-break:inherit;max-width:none}@keyframes table-node-shimmer-39f87b5d{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-39f87b5d]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-39f87b5d]{margin-top:0}.sr-only[data-v-39f87b5d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-39b2349c]{border-top-width:1px;border-color:var(--hr-border);margin:var(--ms-flow-hr-y) 0}.vmr-container[data-v-911e41c4]{margin-top:16px;margin-bottom:16px;border-radius:var(--ms-radius);border-width:1px;padding:16px;border-left-width:var(--ms-border-width-strong)}.height-estimation-probes[data-v-3e0766e2]{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;overflow:hidden;z-index:-1}.node-content[data-v-3e0766e2]{width:100%}.node-content-flow-root[data-v-3e0766e2]{display:flow-root}.markdown-renderer[data-v-a9489508]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:auto}.markdown-renderer.stable-layout[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:none}.node-slot[data-v-a9489508],.node-content[data-v-a9489508]{width:100%}.markdown-renderer.virtualized .node-slot[data-v-a9489508],.markdown-renderer.virtualized .node-content[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-slot[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-content[data-v-a9489508]{display:flow-root}.node-placeholder[data-v-a9489508]{width:100%;min-height:16px;margin:4px 0}.node-placeholder[data-v-a9489508]:first-child{margin-top:0}.node-spacer[data-v-a9489508]{width:100%}.unknown-node[data-v-a9489508]{color:hsl(var(--ms-muted-foreground));font-style:italic;margin:var(--ms-flow-paragraph-y) 0}.typewriter-cursor[data-v-a9489508]{position:absolute;left:0;top:0;display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;visibility:hidden;animation:typewriter-cursor-blink-a9489508 1s steps(1,end) infinite}@keyframes typewriter-cursor-blink-a9489508{0%,49%{opacity:1}50%,to{opacity:0}}.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{content:"";display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;animation:typewriter-cursor-blink 1s steps(1,end) infinite}@media(prefers-reduced-motion:reduce){.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{animation:none}}.markstream-vue .fade-enter-from{opacity:0}.markstream-vue .fade-enter-active{transition:opacity var(--fade-duration, .28s) var(--fade-ease, cubic-bezier(.33, 0, .67, 1));will-change:opacity}.markstream-vue .fade-enter-to{opacity:1}.admonition[data-v-a83480e1]{position:relative;margin:var(--ms-flow-admonition-y) 0;padding:.25em .75em .375em;border:1px solid var(--admonition-border);border-radius:var(--ms-radius);color:var(--admonition-fg)}.admonition-legend[data-v-a83480e1]{position:absolute;top:0;left:.75em;transform:translateY(-50%);display:inline-flex;align-items:center;gap:.35em;padding:0 .5em;background-color:hsl(var(--ms-background));font-size:13px;font-weight:600;line-height:1}.admonition-icon[data-v-a83480e1]{flex-shrink:0}.admonition-title[data-v-a83480e1]{white-space:nowrap}.admonition-content[data-v-a83480e1]{padding-top:.25em;color:var(--admonition-fg)}.admonition-note[data-v-a83480e1],.admonition-info[data-v-a83480e1]{border-color:hsl(var(--ms-info) / .3);background-color:hsl(var(--ms-info) / .04)}.admonition-note .admonition-legend[data-v-a83480e1],.admonition-info .admonition-legend[data-v-a83480e1]{color:var(--admonition-note)}.admonition-tip[data-v-a83480e1]{border-color:hsl(var(--ms-success) / .3);background-color:hsl(var(--ms-success) / .04)}.admonition-tip .admonition-legend[data-v-a83480e1]{color:var(--admonition-tip)}.admonition-warning[data-v-a83480e1],.admonition-caution[data-v-a83480e1]{border-color:hsl(var(--ms-warning) / .3);background-color:hsl(var(--ms-warning) / .04)}.admonition-warning .admonition-legend[data-v-a83480e1],.admonition-caution .admonition-legend[data-v-a83480e1]{color:var(--admonition-warning)}.admonition-danger[data-v-a83480e1],.admonition-error[data-v-a83480e1]{border-color:hsl(var(--ms-destructive) / .3);background-color:hsl(var(--ms-destructive) / .04)}.admonition-danger .admonition-legend[data-v-a83480e1],.admonition-error .admonition-legend[data-v-a83480e1]{color:var(--admonition-danger)}.admonition-toggle[data-v-a83480e1]{margin-left:.25em;background:transparent;border:none;color:inherit;cursor:pointer;padding:2px;border-radius:calc(var(--ms-radius) * .5);display:inline-flex;align-items:center;transition:background-color var(--ms-duration-fast) var(--ms-ease-standard)}.admonition-toggle[data-v-a83480e1]:hover{background-color:hsl(var(--ms-accent))}.admonition-toggle[data-v-a83480e1]:focus-visible{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.admonition-content[data-v-a83480e1] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.tooltip-element[data-v-c606ee4c]{z-index:9999;display:inline-block;max-width:320px;padding:4px 8px;border-radius:calc(var(--ms-radius) * .75);font-size:12px;line-height:1.4;white-space:normal;word-break:break-word;pointer-events:none;background-color:var(--tooltip-bg);color:var(--tooltip-fg);box-shadow:inset 0 1px #ffffff26,0 0 0 1px #0000001f,var(--ms-shadow-popover);transition:transform var(--ms-duration-emphasis) var(--ms-ease-spring),box-shadow var(--ms-duration-emphasis) var(--ms-ease-spring)}.tooltip-arrow[data-v-c606ee4c]{position:absolute;width:6px;height:6px;background:inherit;transform:rotate(45deg)}.tooltip-arrow[data-placement^=top][data-v-c606ee4c]{bottom:-3px}.tooltip-arrow[data-placement^=bottom][data-v-c606ee4c]{top:-3px}.tooltip-arrow[data-placement^=left][data-v-c606ee4c]{right:-3px}.tooltip-arrow[data-placement^=right][data-v-c606ee4c]{left:-3px}.tooltip-enter-active[data-v-c606ee4c]{transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1)}.tooltip-leave-active[data-v-c606ee4c]{transition:opacity .12s ease-in,transform .12s ease-in}.tooltip-enter-from[data-v-c606ee4c]{opacity:0;transform:scale(.96)}.tooltip-enter-to[data-v-c606ee4c],.tooltip-leave-from[data-v-c606ee4c]{opacity:1;transform:scale(1)}.tooltip-leave-to[data-v-c606ee4c]{opacity:0;transform:scale(.97)}.action-icon{width:var(--ms-action-btn-icon, 14px);height:var(--ms-action-btn-icon, 14px);max-width:20px;max-height:20px}.code-block-container{margin:var(--ms-flow-codeblock-y) 0;contain:layout style;container-type:inline-size;background:var(--code-bg);border-color:var(--code-border);color:var(--code-fg);box-shadow:var(--ms-shadow-subtle)}.code-block-header{position:relative;z-index:1;gap:var(--ms-gap-header);border-radius:var(--ms-radius) var(--ms-radius) 0 0;overflow:visible}.code-block-header .code-header-main{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:var(--ms-gap-header-main);overflow:hidden}.code-block-header .code-header-copy{min-width:0;display:grid;gap:2px}.code-block-header .code-header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ms-text-label);font-weight:500;color:var(--code-action-fg)}.code-block-header .code-header-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--code-line-number)}.code-block-header .code-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ms-gap-header-actions);flex-wrap:wrap}.code-block-header .icon-slot{display:inline-flex;align-items:center;justify-content:center}.code-block-header .icon-slot svg,.code-block-header .icon-slot img{display:block;width:100%;height:100%}.code-diff-stats{display:inline-flex;align-items:center;gap:var(--ms-space-1_5);margin-right:var(--ms-space-1);font-size:var(--ms-text-label);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.code-diff-stat{display:inline-flex;align-items:center;padding:2px 6px;border-radius:var(--ms-radius);line-height:1}.code-diff-stat.removed{color:var(--diff-removed-fg);background:hsl(var(--ms-diff-removed) / .1)}.code-diff-stat.added{color:var(--diff-added-fg);background:hsl(var(--ms-diff-added) / .1)}.code-more-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:50;border-radius:var(--ms-radius)}.code-block-shell-content,.code-loading-placeholder{overflow:hidden;border-radius:0 0 var(--ms-radius) var(--ms-radius);contain:content}.code-block-shell-content--collapsed{height:0;min-height:0;visibility:hidden;pointer-events:none}.code-menu-enter-active,.code-menu-leave-active{transform-origin:top right}.code-menu-enter-active{transition:opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1)}.code-menu-leave-active{transition:opacity .14s ease-in,transform .14s ease-in}.code-menu-enter-from{opacity:0;transform:scale(.9) translateY(-4px)}.code-menu-leave-to{opacity:0;transform:scale(.95) translateY(-2px)}.html-preview-frame__backdrop[data-v-24e66176]{position:fixed;inset:0;background-color:var(--modal-overlay);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame[data-v-24e66176]{width:80vw;max-width:960px;height:70vh;background-color:var(--modal-bg);color:var(--modal-fg);border-radius:calc(var(--ms-radius) * 2);overflow:hidden;box-shadow:var(--ms-shadow-preview);display:flex;flex-direction:column}.html-preview-frame__header[data-v-24e66176]{display:flex;justify-content:space-between;align-items:center;padding:6.4px 12px;border-bottom:1px solid var(--code-border)}.html-preview-frame__title[data-v-24e66176]{display:inline-flex;align-items:center;gap:6.4px;font-size:12px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-24e66176]{width:8px;height:8px;border-radius:999px;background-color:hsl(var(--ms-success))}.html-preview-frame__label[data-v-24e66176]{white-space:nowrap}.html-preview-frame__close[data-v-24e66176]{border:none;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--modal-fg)}.html-preview-frame__iframe[data-v-24e66176]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-24e66176]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--vscode-editor-selectionBackground: var(--markstream-code-fallback-selection-bg);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 16px 40px -32px hsl(var(--ms-foreground) / .18);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .92);--markstream-diff-editor-bg: hsl(var(--ms-background));--markstream-diff-editor-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-bg: hsl(var(--ms-muted));--markstream-diff-unchanged-divider: hsl(var(--ms-background) / .94);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .26);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: linear-gradient(180deg, var(--code-bg) 0%, hsl(var(--ms-muted)) 100%);--markstream-diff-panel-bg-soft: var(--code-bg);--markstream-diff-panel-bg-strong: var(--code-bg);--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .42);--markstream-diff-gutter-bg: transparent;--markstream-diff-gutter-guide: hsl(var(--ms-border) / .72);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(var(--ms-muted) / .45);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: var(--diff-added-fg);--markstream-diff-removed-fg: var(--diff-removed-fg);--markstream-diff-added-line: var(--diff-added-bg);--markstream-diff-removed-line: var(--diff-removed-bg);--markstream-diff-added-inline: var(--diff-added-inline-bg);--markstream-diff-removed-inline: var(--diff-removed-inline-bg);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: var(--diff-added-bg);--markstream-diff-removed-line-fill: var(--diff-removed-bg)}.code-block-container.is-dark[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 18px 40px -30px hsl(var(--ms-foreground) / .84);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .82);--markstream-diff-editor-bg: #121212;--markstream-diff-editor-fg: #e5e5e5;--markstream-diff-unchanged-fg: #d4d4d4;--markstream-diff-unchanged-bg: #262626;--markstream-diff-unchanged-divider: hsl(0 0% 100% / .08);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .72);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: #121212;--markstream-diff-panel-bg-soft: #121212;--markstream-diff-panel-bg-strong: #121212;--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .34);--markstream-diff-gutter-bg: linear-gradient( 180deg, hsl(0 0% 7% / .94) 0%, hsl(0 0% 7% / .98) 100% );--markstream-diff-gutter-guide: hsl(var(--ms-muted-foreground) / .08);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(0 0% 7% / .98);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: hsl(152 42% 60%);--markstream-diff-removed-fg: hsl(0 58% 58%);--markstream-diff-added-line: hsl(152 42% 60% / .18);--markstream-diff-removed-line: hsl(0 58% 58% / .18);--markstream-diff-added-inline: hsl(152 42% 60% / .28);--markstream-diff-removed-inline: hsl(0 58% 58% / .28);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: hsl(152 42% 60% / .18);--markstream-diff-removed-line-fill: hsl(0 58% 58% / .18)}.code-editor-container[data-v-ef6e4bb8]{transition:none;box-sizing:border-box;min-width:0;width:100%}.code-block-container.is-diff .code-editor-container[data-v-ef6e4bb8]{transition:none}.code-editor-layer[data-v-ef6e4bb8]{display:grid;min-width:0;position:relative}.code-editor-layer--collapsed[data-v-ef6e4bb8]{height:0;min-height:0;overflow:hidden;visibility:hidden;pointer-events:none}.code-editor-layer>.code-editor-container[data-v-ef6e4bb8]{grid-area:1 / 1;z-index:1}.code-editor-layer>pre.code-pre-fallback[data-v-ef6e4bb8]{grid-area:1 / 1;position:relative;z-index:2}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-editor-background,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{background:var(--vscode-editor-background, var(--markstream-code-fallback-bg))!important}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-lines,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line span,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{color:var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))!important}.code-block-container.is-diff[data-v-ef6e4bb8]{color:var(--markstream-diff-shell-fg);border-color:var(--markstream-diff-shell-border);background:var(--markstream-diff-shell-bg);box-shadow:var(--markstream-diff-shell-shadow);--vscode-editor-selectionBackground: var(--markstream-diff-action-hover);--code-fg: var(--markstream-diff-shell-fg);--code-header-bg: transparent;--code-border: var(--markstream-diff-header-border);--code-line-number: var(--markstream-diff-shell-muted);--code-action-fg: var(--markstream-diff-shell-muted)}.code-block-container.is-diff .code-editor-layer[data-v-ef6e4bb8]{background:transparent;--vscode-editor-background: var(--markstream-diff-editor-bg);--vscode-editor-foreground: var(--markstream-diff-editor-fg);--vscode-diffEditor-unchangedRegionForeground: var(--markstream-diff-unchanged-fg);--vscode-diffEditor-unchangedRegionBackground: var(--markstream-diff-unchanged-bg);--vscode-focusBorder: var(--markstream-diff-focus);--vscode-widget-shadow: var(--markstream-diff-widget-shadow);--vscode-editor-selectionBackground: color-mix( in srgb, var(--markstream-diff-editor-bg) 90%, var(--markstream-diff-editor-fg) 10% );--stream-monaco-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-editor-fg: var(--markstream-diff-editor-fg);--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg);--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg);--stream-monaco-frame-radius: 0;--stream-monaco-fixed-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-frame-border: transparent;--stream-monaco-frame-shadow: none;--stream-monaco-panel-bg: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-soft: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-strong: var(--markstream-diff-editor-bg);--stream-monaco-panel-border: transparent;--stream-monaco-pane-divider: var(--markstream-diff-pane-divider);--stream-monaco-gutter-bg: var(--markstream-diff-gutter-bg);--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide);--stream-monaco-gutter-marker-width: 4px;--stream-monaco-gutter-gap: 1ch;--stream-monaco-line-number-bg: var(--markstream-diff-line-number-bg);--stream-monaco-line-number: var(--markstream-diff-line-number);--stream-monaco-line-number-active: var(--markstream-diff-line-number-active);--stream-monaco-line-number-left: 0px;--stream-monaco-line-number-width: 2ch;--stream-monaco-line-number-padding-left: 2ch;--stream-monaco-line-number-padding-right: 1ch;--stream-monaco-line-number-separator-width: 2px;--stream-monaco-layout-character-width: var(--markstream-code-layout-character-width, 1ch);--stream-monaco-line-number-box-width: calc( var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-line-number-separator-width) );--stream-monaco-diff-code-gap: 1ch;--stream-monaco-diff-code-padding: 0px;--stream-monaco-line-number-gap-to-code: var(--stream-monaco-diff-code-gap);--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) );--stream-monaco-original-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-original-scrollable-left: var(--stream-monaco-original-margin-width);--stream-monaco-original-scrollable-width: calc( 100% - var(--stream-monaco-original-margin-width) );--stream-monaco-modified-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-modified-scrollable-left: var(--stream-monaco-modified-margin-width);--stream-monaco-modified-scrollable-width: calc( 100% - var(--stream-monaco-modified-margin-width) );--stream-monaco-added-fg: var(--markstream-diff-added-fg);--stream-monaco-removed-fg: var(--markstream-diff-removed-fg);--stream-monaco-added-line: var(--markstream-diff-added-line);--stream-monaco-removed-line: var(--markstream-diff-removed-line);--stream-monaco-added-inline: var(--markstream-diff-added-inline);--stream-monaco-removed-inline: var(--markstream-diff-removed-inline);--stream-monaco-added-outline: transparent;--stream-monaco-removed-outline: transparent;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border);--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border);--stream-monaco-added-line-shadow: none;--stream-monaco-removed-line-shadow: none;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter);--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter);--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill);--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill);--stream-monaco-added-border: hsl(var(--ms-diff-added) / .25);--stream-monaco-removed-border: hsl(var(--ms-diff-removed) / .25);--stream-monaco-widget-shadow: var(--markstream-diff-widget-shadow)}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers{left:var(--stream-monaco-line-number-left)!important;width:var(--stream-monaco-line-number-width)!important;min-width:var(--stream-monaco-line-number-width)!important;box-sizing:content-box!important;background:var(--stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg))!important;padding-left:var(--stream-monaco-line-number-padding-left, 2ch)!important;padding-right:var(--stream-monaco-line-number-padding-right, 1ch)!important;border-right:var(--stream-monaco-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg)!important;text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums;box-shadow:none}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers *{text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-delete.line-numbers{background:var(--stream-monaco-removed-line-fill)!important;color:var(--stream-monaco-removed-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-insert.line-numbers{background:var(--stream-monaco-added-line-fill)!important;color:var(--stream-monaco-added-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .monaco-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays{--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) ) !important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff){--markstream-code-line-number-box-width: calc( var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + 2px );--markstream-code-content-left: calc( var(--markstream-code-line-number-box-width) + var(--markstream-code-layout-character-width, 1ch) )}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin-view-overlays{width:var(--markstream-code-content-left)!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{left:0!important;width:2ch!important;min-width:2ch!important;box-sizing:content-box!important;padding-left:2ch!important;padding-right:1ch!important;border-right:2px solid var(--vscode-editor-background)!important;text-align:var(--markstream-code-line-number-align, right)!important;font-variant-numeric:tabular-nums}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-scrollable-element.editor-scrollable{left:var(--markstream-code-content-left)!important;width:calc(100% - var(--markstream-code-content-left))!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{left:0!important}.code-editor-container[data-markstream-host-hidden=true][data-v-ef6e4bb8]{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden;visibility:hidden;pointer-events:none}pre.code-pre-fallback[data-v-ef6e4bb8]{margin:0;box-sizing:border-box;width:100%;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left, 52px);background:var(--markstream-code-fallback-bg, var(--code-bg, #fff));color:var(--markstream-code-fallback-fg, var(--code-fg));backface-visibility:visible;transform:none;-webkit-font-smoothing:auto;font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px);font-weight:400;font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace )}pre.code-pre-fallback[data-v-ef6e4bb8] code{font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit}pre.code-pre-fallback.is-wrap[data-v-ef6e4bb8]{white-space:pre-wrap;overflow-wrap:anywhere}pre.code-pre-fallback.markstream-pre--diff-preview[data-v-ef6e4bb8]{padding-left:0;padding-right:0}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{background:var(--markstream-diff-editor-bg);transition:none}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-pane{box-sizing:border-box;padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-insert>.cmdr.gutter-insert{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-added-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-delete>.cmdr.gutter-delete{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-removed-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}@media(prefers-reduced-motion:reduce){.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{transition:none}}.code-block-container.is-rendering .code-height-placeholder[data-v-ef6e4bb8]{background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;min-height:var(--ms-size-skeleton-min-height);background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%)}.code-loading-placeholder[data-v-ef6e4bb8]{padding:16px;min-height:var(--ms-size-skeleton-min-height)}.loading-skeleton[data-v-ef6e4bb8]{display:flex;flex-direction:column;gap:12px}.skeleton-line[data-v-ef6e4bb8]{height:16px;background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;border-radius:calc(var(--ms-radius) * .5)}.skeleton-line.short[data-v-ef6e4bb8]{width:60%}.code-block-container[data-markstream-viewport-pending=true] .code-height-placeholder[data-v-ef6e4bb8],.code-block-container[data-markstream-viewport-pending=true] .skeleton-line[data-v-ef6e4bb8]{animation:none}@keyframes code-skeleton-shimmer-ef6e4bb8{0%{background-position:100% 0}to{background-position:0 0}}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center{border-radius:var(--ms-radius)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;min-height:28px!important;transition:background-color .14s ease,border-color .14s ease!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 4%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 10%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center{background:transparent!important;border-color:transparent!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 6%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 12%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center .stream-monaco-unchanged-count:before{content:"";display:inline-block;width:14px;height:14px;margin-right:4px;flex-shrink:0;background:currentColor;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}[data-v-ef6e4bb8] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .diffOverview,[data-v-ef6e4bb8] .stream-monaco-diff-root .decorationsOverviewRuler{display:none!important;width:0!important;min-width:0!important;max-width:0!important;border:0!important;background:transparent!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-diff-editor{border:0!important;border-radius:0!important;box-shadow:none!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-clickable)>*:not(a){visibility:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines-compact .text{opacity:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root{--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide) !important;--stream-monaco-gutter-gap: var(--markstream-diff-gutter-gap) !important;--stream-monaco-line-number: var(--markstream-diff-line-number) !important;--stream-monaco-line-number-active: var(--markstream-diff-line-number-active) !important;--stream-monaco-added-fg: var(--markstream-diff-added-fg) !important;--stream-monaco-removed-fg: var(--markstream-diff-removed-fg) !important;--stream-monaco-added-line: var(--markstream-diff-added-line) !important;--stream-monaco-removed-line: var(--markstream-diff-removed-line) !important;--stream-monaco-added-inline: var(--markstream-diff-added-inline) !important;--stream-monaco-removed-inline: var(--markstream-diff-removed-inline) !important;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border) !important;--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border) !important;--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill) !important;--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill) !important;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter) !important;--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter) !important;--stream-monaco-added-line-shadow: none !important;--stream-monaco-removed-line-shadow: none !important;--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;box-sizing:border-box;min-width:0;width:100%}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .overflow-guard,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side),[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .overflow-guard{min-width:0!important;width:100%!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-scrollable-element.editor-scrollable,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-scrollable-element.editor-scrollable{left:var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width))!important;width:calc(100% - var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width)))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.modified .view-lines .view-line.stream-monaco-line-insert-fill,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.original .view-lines .view-line.stream-monaco-line-delete-fill{width:1000000px!important}.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-fallback-inline-delete-line{box-sizing:border-box;padding-left:var(--stream-monaco-diff-code-padding, 0px)}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .scrollbar.horizontal,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .scrollbar.horizontal{display:none!important;height:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .view-lines.line-delete{margin-left:0!important;width:100%!important;background:var(--stream-monaco-removed-line-fill)!important;box-shadow:var(--stream-monaco-removed-line-shadow)!important;display:block!important;height:-moz-max-content!important;height:max-content!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .gutter-delete,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .inline-deleted-margin-view-zone,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .stream-monaco-fallback-inline-delete-margin{background:var(--stream-monaco-removed-gutter),var(--stream-monaco-removed-line-fill)!important;display:block!important;height:100%!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-unchanged-bridge-source),[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;background:var(--stream-monaco-unchanged-bg)!important;color:var(--stream-monaco-unchanged-fg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{right:calc(var(--stream-monaco-gutter-marker-width) - var(--stream-monaco-unchanged-rail-width) / 2 + (var(--stream-monaco-gutter-gap) * 2))!important;width:auto!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important;color:var(--markstream-diff-unchanged-fg)!important;padding-left:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important;padding-right:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge.stream-monaco-diff-unchanged-bridge-line-info .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail{border-right-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal{border-bottom-color:transparent!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-both .stream-monaco-unchanged-reveal:first-child{border-bottom-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-top-only .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-bottom-only .stream-monaco-unchanged-reveal{border-bottom:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-meta,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-count,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-metadata-label,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{color:var(--markstream-diff-unchanged-fg)!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center{align-items:center;justify-content:center}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center{align-items:center;justify-content:center!important;position:relative}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center:not(.stream-monaco-clickable){opacity:0!important;pointer-events:none!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center .stream-monaco-unchanged-meta{justify-content:center!important;padding:0 28px!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center>div:first-child{align-items:center;display:flex;justify-content:center!important;min-width:100%;width:100%!important}[data-v-ef6e4bb8] .markstream-inline-fold-proxy{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:calc(var(--ms-radius) * .5);box-shadow:none;cursor:pointer;inset:0;padding:0;pointer-events:auto;position:absolute;z-index:2}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:hover,[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{background:transparent}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{outline:1px solid var(--vscode-focusBorder, currentColor);outline-offset:-1px}.math-inline-wrapper[data-v-6c556261]{position:relative;display:inline-block}.math-inline[data-v-6c556261]{display:inline-block;vertical-align:middle}.math-inline--fallback[data-v-6c556261]{white-space:pre-wrap}.math-inline__loading[data-v-6c556261]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-6c556261]{width:16px;height:16px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-6c556261],.table-node-fade-leave-active[data-v-6c556261]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-6c556261],.table-node-fade-leave-to[data-v-6c556261]{opacity:0}.sr-only[data-v-6c556261]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-block[data-v-939191ad]{min-height:var(--ms-size-math-min-height);transition:min-height var(--ms-duration-overlay) var(--ms-ease-standard)}.math-loading-overlay[data-v-939191ad]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:var(--ms-size-math-min-height)}.math-loading-spinner[data-v-939191ad]{width:20px;height:20px;border:2px solid color-mix(in srgb,var(--loading-spinner) 15%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);border-radius:50%;animation:math-spin-939191ad .8s linear infinite}@keyframes math-spin-939191ad{to{transform:rotate(360deg)}}.math-rendering[data-v-939191ad]{opacity:.3;transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.math-block__fallback[data-v-939191ad]{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.math-fade-enter-active[data-v-939191ad],.math-fade-leave-active[data-v-939191ad]{transition:all var(--ms-duration-slow) var(--ms-ease-standard)}.math-fade-enter-from[data-v-939191ad],.math-fade-leave-to[data-v-939191ad]{opacity:0}.action-icon{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot{display:inline-flex;align-items:center;justify-content:center}.icon-slot svg{display:block;width:100%;height:100%}.mermaid-block-container[data-v-73c385f8]{margin:var(--ms-flow-diagram-y) 0;border-color:var(--diagram-border)}.mermaid-block-header[data-v-73c385f8]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border)}.mermaid-label-text[data-v-73c385f8]{color:var(--code-action-fg)}.mermaid-mode-toggle-group[data-v-73c385f8]{background:transparent}.mermaid-mode-btn[data-v-73c385f8]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6}.mermaid-mode-btn[data-v-73c385f8]:hover{opacity:.9}.mermaid-mode-btn.is-active[data-v-73c385f8]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.mermaid-header-actions[data-v-73c385f8]{gap:var(--ms-gap-header-actions)}.mermaid-action-btn[data-v-73c385f8]{font-family:inherit;font-size:var(--ms-text-label);color:var(--code-action-fg)}.mermaid-action-btn[data-v-73c385f8]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.mermaid-action-btn[data-v-73c385f8]:active{transform:scale(.98)}.mermaid-source-panel[data-v-73c385f8]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.mermaid-source-code[data-v-73c385f8]{color:hsl(var(--ms-foreground))}.mermaid-preview-area[data-v-73c385f8]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-standard)}.mermaid-modal-overlay[data-v-73c385f8]{background:var(--modal-overlay)}.mermaid-modal-panel[data-v-73c385f8]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}._mermaid[data-v-73c385f8]{position:relative;font-family:inherit;content-visibility:auto;contain:content;contain-intrinsic-size:var(--ms-size-diagram-min-height) 240px}._mermaid[data-v-73c385f8] [data-mermaid-svg-layer]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;min-height:100%}._mermaid[data-v-73c385f8] svg{width:100%;height:auto;max-height:100%;display:block}.fullscreen ._mermaid[data-v-73c385f8] svg{max-height:none}.fullscreen[data-v-73c385f8]{width:100%;max-height:100%!important;height:100%!important}.mermaid-dialog-enter-from[data-v-73c385f8],.mermaid-dialog-leave-to[data-v-73c385f8]{opacity:0}.mermaid-dialog-enter-active[data-v-73c385f8],.mermaid-dialog-leave-active[data-v-73c385f8]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.mermaid-dialog-enter-from .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-to .dialog-panel[data-v-73c385f8]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-from .dialog-panel[data-v-73c385f8]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-active .dialog-panel[data-v-73c385f8]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-block-container[data-v-de34ec4b]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.infographic-block-header[data-v-de34ec4b]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.infographic-label[data-v-de34ec4b]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}.action-icon[data-v-de34ec4b]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot[data-v-de34ec4b]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-de34ec4b] svg{display:block;width:100%;height:100%}.infographic-mode-toggle[data-v-de34ec4b]{background:transparent}.infographic-mode-btn[data-v-de34ec4b]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:color .15s,background-color .15s,opacity .15s}.infographic-mode-btn[data-v-de34ec4b]:hover{opacity:.9}.infographic-mode-btn.is-active[data-v-de34ec4b]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.infographic-header-actions[data-v-de34ec4b]{gap:var(--ms-gap-header-actions)}.infographic-action-btn[data-v-de34ec4b]{font-family:inherit;color:var(--code-action-fg);transition:background-color .15s,color .15s}.infographic-action-btn[data-v-de34ec4b]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.infographic-action-btn[data-v-de34ec4b]:active{transform:scale(.98)}.infographic-source[data-v-de34ec4b]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.infographic-source-code[data-v-de34ec4b]{color:hsl(var(--ms-foreground))}.infographic-preview[data-v-de34ec4b]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-fast)}.infographic-pending-source[data-v-de34ec4b]{position:absolute;inset:0;z-index:1;margin:0;padding:var(--ms-inset-panel-body);overflow:auto;color:hsl(var(--ms-foreground));text-align:left;background:var(--diagram-bg)}.infographic-modal-overlay[data-v-de34ec4b]{background:var(--modal-overlay)}.infographic-modal-panel[data-v-de34ec4b]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}.fullscreen[data-v-de34ec4b]{width:100%;max-height:100%!important;height:100%!important}.infographic-dialog-enter-from[data-v-de34ec4b],.infographic-dialog-leave-to[data-v-de34ec4b]{opacity:0}.infographic-dialog-enter-active[data-v-de34ec4b],.infographic-dialog-leave-active[data-v-de34ec4b]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-dialog-enter-from .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-to .dialog-panel[data-v-de34ec4b]{transform:translateY(8px) scale(.98);opacity:.98}.infographic-dialog-enter-to .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-from .dialog-panel[data-v-de34ec4b]{transform:translateY(0) scale(1);opacity:1}.infographic-dialog-enter-active .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-active .dialog-panel[data-v-de34ec4b]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.d2-block-container[data-v-3b434cf5]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.d2-block-header[data-v-3b434cf5]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.d2-mode-toggle[data-v-3b434cf5]{background:transparent}.mode-btn[data-v-3b434cf5]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:opacity .2s,color .2s,background-color .2s}.mode-btn[data-v-3b434cf5]:hover{opacity:.9}.mode-btn.is-active[data-v-3b434cf5]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.d2-header-actions[data-v-3b434cf5]{gap:var(--ms-gap-header-actions)}.d2-action-btn[data-v-3b434cf5]{color:var(--code-action-fg);opacity:.7;transition:opacity .2s,background-color .15s,color .15s}.d2-action-btn[data-v-3b434cf5]:hover{opacity:1;background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.d2-action-btn[data-v-3b434cf5]:disabled{opacity:.3;cursor:not-allowed}.d2-block-body[data-v-3b434cf5]{position:relative}.d2-source[data-v-3b434cf5]{padding:var(--ms-inset-panel-body) var(--ms-inset-panel-x);font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.d2-code[data-v-3b434cf5]{white-space:pre;font-size:14px;line-height:1.5}.d2-render[data-v-3b434cf5]{max-height:var(--ms-size-code-max-height);overflow:auto}.d2-svg[data-v-3b434cf5] svg.markstream-d2-root-svg{width:100%;max-width:100%;height:auto;display:block}.d2-label[data-v-3b434cf5]{font-size:var(--ms-text-label)}.action-icon[data-v-3b434cf5]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.d2-error[data-v-3b434cf5]{color:hsl(var(--ms-destructive))}.markstream-virtual-timeline[data-v-1303f06e]{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;overflow:auto;overflow-anchor:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__spacer[data-v-1303f06e],.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e]{opacity:0;visibility:hidden;pointer-events:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e],.markstream-virtual-timeline__item.is-restored-height-floor[data-v-1303f06e]{height:var(--markstream-virtual-item-size);overflow:hidden}.markstream-virtual-timeline__restore-loading[data-v-1303f06e]{position:absolute;top:0;left:0;right:0;z-index:10;display:grid;place-items:center;pointer-events:none;overflow:hidden;background:Canvas;contain:strict}.markstream-virtual-timeline__restore-loading-card[data-v-1303f06e]{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgb(148 163 184 / 32%);border-radius:999px;background:#ffffffeb;color:#334155;font-size:13px;box-shadow:0 8px 24px #0f172a14}.markstream-virtual-timeline__restore-spinner[data-v-1303f06e]{width:14px;height:14px;border:2px solid rgb(148 163 184 / 35%);border-top-color:#334155;border-radius:999px;animation:markstream-timeline-restore-spin-1303f06e .8s linear infinite}@keyframes markstream-timeline-restore-spin-1303f06e{to{transform:rotate(360deg)}}.markstream-virtual-timeline__spacer[data-v-1303f06e]{flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__item[data-v-1303f06e]{display:flow-root;flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__default-item[data-v-1303f06e]{margin:8px 0;padding:10px 12px;border:1px solid rgb(148 163 184 / 32%);border-radius:8px;background:#f8fafc;color:#0f172a;line-height:1.5;white-space:pre-wrap}.markstream-virtual-timeline__default-item--system-divider[data-v-1303f06e]{border:0;background:transparent;color:#64748b;font-size:12px;text-align:center}.markstream-virtual-timeline__default-item--error[data-v-1303f06e]{border-color:#f8717173;background:#fef2f2;color:#991b1b}.markstream-virtual-timeline__status[data-v-1303f06e]{display:inline-flex;margin-right:8px;color:#475569;font-size:12px;text-transform:uppercase}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.md[data-v-68e0c7c3]{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text);word-break:break-word}.md[data-v-68e0c7c3] .markdown-renderer{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text)}.md[data-v-68e0c7c3] .markstream-vue,.md[data-v-68e0c7c3] .markdown-renderer{--code-bg: var(--color-surface-sunken);--code-fg: var(--color-text);--code-border: var(--color-line);--code-header-bg: var(--color-surface);--code-action-fg: var(--color-text-muted);--code-action-hover-fg: var(--color-accent);--markstream-code-fallback-bg: var(--color-surface-sunken);--markstream-code-fallback-fg: var(--color-text);--markstream-code-border-color: var(--color-line);--inline-code-bg: var(--color-inline-code-bg);--inline-code-fg: var(--color-text);--inline-code-border: transparent}.md[data-v-68e0c7c3] .md-file-link{appearance:none;display:inline;border:0;padding:0;background:transparent;color:var(--color-accent-hover);font:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}.md[data-v-68e0c7c3] .md-file-link:hover{color:var(--color-accent)}.md[data-v-68e0c7c3] .inline-code .md-file-link{text-underline-offset:1.5px}.md[data-v-68e0c7c3] .markdown-renderer p,.md[data-v-68e0c7c3] .markdown-renderer li{font-size:var(--content-font-size);line-height:round(calc(var(--content-font-size) * 1.625),1px)}.md[data-v-68e0c7c3] .markdown-renderer blockquote,.md[data-v-68e0c7c3] .markdown-renderer td,.md[data-v-68e0c7c3] .markdown-renderer th{font-size:var(--md-b2)}.md[data-v-68e0c7c3] .markdown-renderer img{background:var(--media-alpha-canvas)}.md[data-v-68e0c7c3] strong{color:color-mix(in srgb,var(--color-text) 86%,var(--color-text-muted));font-weight:var(--weight-semibold)}.md[data-v-68e0c7c3] h1,.md[data-v-68e0c7c3] h2,.md[data-v-68e0c7c3] h3,.md[data-v-68e0c7c3] h4{color:var(--color-text);font-optical-sizing:auto;font-weight:600;margin:.85em 0 .35em}.md[data-v-68e0c7c3] h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px);border-bottom:1px solid var(--color-line);padding-bottom:4px}.md[data-v-68e0c7c3] h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.md[data-v-68e0c7c3] h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.md[data-v-68e0c7c3] h4{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px);color:var(--color-text-muted)}.md[data-v-68e0c7c3] p{margin:0}.md[data-v-68e0c7c3] .node-slot+.node-slot{margin-top:var(--content-font-size)}.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h1),.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h2){margin-top:calc(var(--content-font-size) * 2)}.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h3),.md[data-v-68e0c7c3] .node-slot+.node-slot:has(h4){margin-top:calc(var(--content-font-size) * 1.5)}.md[data-v-68e0c7c3] ul,.md[data-v-68e0c7c3] ol{--md-dot: round(calc(var(--content-font-size) * .375), 1px);list-style:none;margin:0;padding-left:calc(var(--content-font-size) * 2)}.md[data-v-68e0c7c3] li{position:relative;margin:0;padding:0}.md[data-v-68e0c7c3] li+li{margin-top:round(calc(var(--content-font-size) * .75),1px)}.md[data-v-68e0c7c3] li>ul,.md[data-v-68e0c7c3] li>ol{margin-top:round(calc(var(--content-font-size) * .75),1px);padding-left:calc(var(--content-font-size) * 1.5)}.md[data-v-68e0c7c3] ul>li:before{content:"";position:absolute;left:calc((var(--md-dot) + var(--content-font-size) * 2) / -2);top:calc((round(calc(var(--content-font-size) * 1.625),1px) - var(--md-dot)) / 2);width:var(--md-dot);height:var(--md-dot);border-radius:50%;background:color-mix(in srgb,var(--color-text) 90%,transparent)}.md[data-v-68e0c7c3] ul>li:has(>input[type=checkbox]):before,.md[data-v-68e0c7c3] ul>li:has(>p>input[type=checkbox]):before{content:none}.md[data-v-68e0c7c3] ul ul>li:before{background:transparent;border:1px solid color-mix(in srgb,var(--color-text) 90%,transparent);box-sizing:border-box}.md[data-v-68e0c7c3] ol{counter-reset:md-ol}.md[data-v-68e0c7c3] ol[start],.md[data-v-68e0c7c3] ol:has(>li[value]){counter-reset:none;list-style:decimal}.md[data-v-68e0c7c3] ol[start]>li,.md[data-v-68e0c7c3] ol:has(>li[value])>li{counter-increment:none}.md[data-v-68e0c7c3] ol[start]>li:before,.md[data-v-68e0c7c3] ol:has(>li[value])>li:before{content:none}.md[data-v-68e0c7c3] ol>li{counter-increment:md-ol}.md[data-v-68e0c7c3] ol>li:before{content:counter(md-ol) ".";position:absolute;top:0;left:calc(var(--content-font-size) * -2);width:calc(var(--content-font-size) * 2);line-height:round(calc(var(--content-font-size) * 1.625),1px);text-align:center;color:var(--color-text)}.md[data-v-68e0c7c3] :not(pre)>code,.md[data-v-68e0c7c3] .inline-code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);color:var(--color-text);border:0;padding:0 4px;border-radius:var(--radius-sm)}.md[data-v-68e0c7c3] strong code,.md[data-v-68e0c7c3] strong .inline-code,.md[data-v-68e0c7c3] b code,.md[data-v-68e0c7c3] b .inline-code{font-weight:var(--weight-semibold)}.md[data-v-68e0c7c3] .code-block-container{margin:.6em 0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow:hidden;--vscode-editor-font-size: var(--text-sm);--vscode-editor-line-height: calc(var(--text-sm) * var(--leading-normal))}.md[data-v-68e0c7c3] .code-block-header{background:var(--color-surface);border-bottom:.5px solid var(--color-line);padding:4px 6px 4px 12px;color:var(--color-text-muted);font:var(--text-xs) var(--font-ui);--ms-gap-header-main: var(--space-1-5)}.md[data-v-68e0c7c3] .code-block-header *{color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-68e0c7c3] .code-block-header .code-header-main{font-family:var(--font-ui)}.md[data-v-68e0c7c3] .code-block-header .code-header-title{font-size:var(--text-sm);font-weight:var(--weight-medium)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn{color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:hover{background:var(--color-hover);color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:hover *{color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-68e0c7c3] .code-block-header .code-action-btn *{pointer-events:none}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true],.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true]{background:var(--color-selected);color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true] *,.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true] *{background:transparent;color:var(--color-text)}.md[data-v-68e0c7c3] .code-block-header .md-code-wrap-toggle[aria-pressed=true]:hover,.md[data-v-68e0c7c3] .code-block-header .md-code-nums-toggle[aria-pressed=true]:hover{background:var(--color-selected-hover)}.md[data-v-68e0c7c3] .code-block-container.md-code-wrap pre{white-space:pre-wrap!important;overflow-wrap:anywhere}.md[data-v-68e0c7c3] .code-block-container ::selection,.md[data-v-68e0c7c3] .diff-wrap ::selection{background:var(--color-code-selection);color:var(--color-code-selection-text)}.md[data-v-68e0c7c3] .code-block-shell-content,.md[data-v-68e0c7c3] .markstream-pre{background:var(--color-well)}.md[data-v-68e0c7c3] .code-editor-container{line-height:var(--leading-normal);--diffs-gap-block: var(--code-pad-block)}.md[data-v-68e0c7c3] .code-editor-container diffs-container{--diffs-line-height: var(--leading-normal)}.md[data-v-68e0c7c3] .code-pre-fallback>.markstream-pre__line-numbers{display:none}.md[data-v-68e0c7c3] .code-block-container .code-pre-fallback{padding:var(--code-pad-block) var(--space-3);line-height:var(--leading-normal)!important}.md[data-v-68e0c7c3] .code-block-container pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers),.md[data-v-68e0c7c3] .markstream-pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers){margin:0;padding:var(--code-pad-block) var(--space-3);overflow-x:auto;font:var(--text-sm)/var(--leading-normal) var(--font-mono)}.md[data-v-68e0c7c3] .code-block-container pre code{font:inherit;color:var(--color-text);background:none;border:none;padding:0;border-radius:0}.md[data-v-68e0c7c3] .markstream-pre,.md[data-v-68e0c7c3] .code-pre-fallback,.md[data-v-68e0c7c3] .code-block-shell-content pre:not(.shiki),.md[data-v-68e0c7c3] .code-block-shell-content pre:not(.shiki) code{color:var(--color-text)}.md[data-v-68e0c7c3] a{color:var(--color-accent);text-decoration:none}.md[data-v-68e0c7c3] a:hover{text-decoration:underline}.md[data-v-68e0c7c3] a.mention-pill{color:var(--color-text-muted);text-decoration:none}.md[data-v-68e0c7c3] a.mention-folder:hover{text-decoration:none}.md[data-v-68e0c7c3] .katex-display{overflow-x:auto;overflow-y:hidden;padding:2px 0 6px;margin:.6em 0}.md[data-v-68e0c7c3] .math-inline{vertical-align:baseline}.md[data-v-68e0c7c3] blockquote{position:relative;margin:0;padding:0 0 0 round(calc(var(--content-font-size) * 1.5),1px);border-left:none;color:var(--color-text)}.md[data-v-68e0c7c3] blockquote:before{content:"";position:absolute;left:calc(round(calc(var(--content-font-size) * 1.5),1px)/2 - 1px);top:2px;bottom:2px;width:2px;border-radius:2px;background:var(--color-line)}.md[data-v-68e0c7c3] .blockquote>.paragraph-node{margin:0}.md[data-v-68e0c7c3] .blockquote>.paragraph-node+.paragraph-node{margin-top:var(--content-font-size)}.md[data-v-68e0c7c3] hr{border:none;border-top:1px solid var(--color-line);margin:0}.md[data-v-68e0c7c3] table:not(.table-node){border-collapse:collapse;font-size:var(--text-lg);margin:.5em 0}.md[data-v-68e0c7c3] table:not(.table-node) th,.md[data-v-68e0c7c3] table:not(.table-node) td{border:1px solid var(--color-line);padding:4px 10px;text-align:left}.md[data-v-68e0c7c3] table:not(.table-node) th{background:var(--color-surface);color:var(--color-text);font-weight:var(--weight-medium)}.md[data-v-68e0c7c3] .table-node-wrapper{width:100%;max-width:100%!important;min-width:0;overflow-x:auto!important;scrollbar-gutter:auto!important;position:relative;--table-cell-cap: var(--p-table-cell-max)}.md[data-v-68e0c7c3] .table-node{--table-border: var(--color-line);--table-header-bg: var(--color-surface);font-size:var(--text-lg);margin:.5em 0;width:max-content!important;min-width:100%;max-width:none!important;table-layout:auto!important}.md[data-v-68e0c7c3] .table-node th,.md[data-v-68e0c7c3] .table-node td{text-align:left;vertical-align:top;max-width:var(--table-cell-cap)}.md[data-v-68e0c7c3] .table-node .text-node{display:inline-block;max-width:var(--table-cell-cap);vertical-align:top}.md[data-v-68e0c7c3] .md-table-fade{display:none;position:absolute;top:0;bottom:0;right:0;width:36px;z-index:1;background:linear-gradient(to right,transparent,color-mix(in srgb,var(--color-bg) 65%,transparent) 55%,var(--color-bg));pointer-events:none;transition:opacity var(--duration-base) var(--ease-out)}.md[data-v-68e0c7c3] .md-table-at-end .md-table-fade{opacity:0}.md[data-v-68e0c7c3] .md-table-toggle{display:none;position:absolute;top:6px;right:6px;z-index:2;align-items:center;justify-content:center;width:26px;height:26px;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);cursor:pointer;opacity:0;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}@container (min-width: 760px){.md[data-v-68e0c7c3] .md-table-fade.md-table-toggle--show,.md[data-v-68e0c7c3] .md-table-toggle.md-table-toggle--show{display:block}.md[data-v-68e0c7c3] .md-table-toggle.md-table-toggle--show{display:inline-flex}}.md[data-v-68e0c7c3] .table-node-wrapper:hover .md-table-toggle.md-table-toggle--show,.md[data-v-68e0c7c3] .table-node-wrapper:focus-within .md-table-toggle.md-table-toggle--show,.md[data-v-68e0c7c3] .table-node-wrapper.md-table-wide .md-table-toggle.md-table-toggle--show{opacity:1}.md[data-v-68e0c7c3] .md-table-toggle:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-68e0c7c3] .md-table-toggle:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-68e0c7c3] .md-table-toggle svg{display:block}.md[data-v-68e0c7c3] .table-node tbody tr:hover{background-color:transparent!important}.md-frontmatter[data-v-68e0c7c3]{margin:0 0 var(--space-2);padding:var(--space-3) var(--space-4);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow-x:auto;color:var(--color-text-muted);font:var(--text-sm)/1.65 var(--font-mono)}.diff-wrap[data-v-68e0c7c3]{margin:.6em 0;border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-sunken);box-shadow:var(--shadow-xs);overflow:hidden}.diff-bar[data-v-68e0c7c3]{display:flex;align-items:center;gap:6px;padding:4px 12px;background:var(--color-surface);border-bottom:1px solid var(--color-line);color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.diff-lang[data-v-68e0c7c3]{margin-right:auto}.diff-copy[data-v-68e0c7c3]{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;padding:2px 6px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.diff-copy[data-v-68e0c7c3]:hover{background:var(--color-surface-sunken);color:var(--color-text)}.diff-copy[data-v-68e0c7c3]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.diff-bar[data-v-68e0c7c3] .ui-icon-button[aria-pressed=true]{background:var(--color-selected);color:var(--color-text)}.diff-bar[data-v-68e0c7c3] .ui-icon-button[aria-pressed=true]:hover{background:var(--color-selected-hover)}.diff-bar[data-v-68e0c7c3] .ui-icon-button svg{width:var(--p-ic-sm);height:var(--p-ic-sm)}.diff-wrap.md-code-wrap .diff-pre[data-v-68e0c7c3]{white-space:pre-wrap;overflow-wrap:anywhere}.diff-wrap.md-code-wrap .diff-pre code[data-v-68e0c7c3]{width:auto}.diff-wrap.md-code-wrap:not(.md-code-nums) .diff-line[data-v-68e0c7c3]{padding-left:calc(var(--space-3) + var(--diff-sign-col))}.diff-wrap.md-code-wrap:not(.md-code-nums) .diff-sign[data-v-68e0c7c3]{margin-left:calc(-1 * var(--diff-sign-col))}.diff-wrap.md-code-nums .diff-pre[data-v-68e0c7c3]{counter-reset:md-diff-line;position:relative;isolation:isolate}.diff-wrap.md-code-nums .diff-pre[data-v-68e0c7c3]:after{content:"";position:absolute;left:0;top:0;bottom:0;width:calc(var(--space-3) + var(--md-nums-gutter, 4ch));background:var(--color-selected);border-right:var(--p-hairline) solid var(--color-line);pointer-events:none;user-select:none;z-index:1}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]{padding-left:calc(var(--space-3) + var(--md-nums-gutter, 4ch) + var(--diff-sign-col))}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]:not(.diff-hunk){counter-increment:md-diff-line}.diff-wrap.md-code-nums .diff-line[data-v-68e0c7c3]:not(.diff-hunk):before{content:counter(md-diff-line);display:inline-block;position:relative;z-index:2;width:calc(var(--md-nums-gutter, 4ch) - 1ch);overflow:visible;margin-left:calc(-1 * (var(--md-nums-gutter, 4ch) + var(--diff-sign-col)));margin-right:1ch;text-align:right;color:var(--color-text-faint);user-select:none}.diff-pre[data-v-68e0c7c3]{margin:0;padding:var(--code-pad-block) 0;overflow-x:auto;background:var(--color-surface-sunken)}.diff-pre code[data-v-68e0c7c3]{display:block;width:max-content;min-width:100%;font:var(--text-sm)/var(--leading-normal) var(--font-mono);color:var(--color-text)}.diff-line[data-v-68e0c7c3]{display:block;width:100%;padding:0 var(--space-3)}.diff-sign[data-v-68e0c7c3]{display:inline-block;width:var(--diff-sign-col);text-align:center;color:var(--color-text-muted);user-select:none}.diff-text[data-v-68e0c7c3]{color:var(--color-text)}.diff-add[data-v-68e0c7c3]{background:var(--color-success-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.diff-add .diff-sign[data-v-68e0c7c3]{color:var(--color-success)}.diff-del[data-v-68e0c7c3]{background:var(--color-danger-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diff-del .diff-sign[data-v-68e0c7c3]{color:var(--color-danger)}.diff-hunk[data-v-68e0c7c3]{background:var(--color-surface)}.diff-hunk .diff-text[data-v-68e0c7c3]{color:var(--color-text-muted)}.md[data-v-68e0c7c3],.md .markdown-renderer[data-v-68e0c7c3]{font-family:var(--sans)}.md .code-block-container[data-v-68e0c7c3],.md .diff-wrap[data-v-68e0c7c3]{border-radius:var(--radius-md)}.md :not(pre)>code[data-v-68e0c7c3],.md .inline-code[data-v-68e0c7c3]{border-radius:var(--radius-sm)}.hl-code[data-v-dad8dd61]{border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:auto;max-height:calc(24 * 1.5 * var(--ui-font-size));overscroll-behavior:contain;font-family:var(--font-mono);font-size:var(--code-font-size);line-height:var(--leading-normal);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none}.hl-code[data-v-dad8dd61]:not(.framed){border:none;border-radius:0;background:transparent;max-height:none;overflow:visible}.hl-body[data-v-dad8dd61]{width:max-content;min-width:100%;padding:var(--space-1) 0 var(--space-2)}.hl-code.plain-pad .hl-body[data-v-dad8dd61]{padding-left:var(--space-3)}.hl-row[data-v-dad8dd61]{display:flex;align-items:flex-start;min-height:calc(1em * var(--leading-normal));white-space:pre;width:100%}.hl-gutter[data-v-dad8dd61]{flex:none;box-sizing:content-box;min-width:var(--gutter-ch, 4ch);padding:0 var(--space-2);text-align:right;color:var(--color-text-faint);user-select:none;border-right:.5px solid var(--color-line);font-variant-numeric:tabular-nums}.hl-sign[data-v-dad8dd61]{flex:none;width:16px;text-align:center;color:var(--color-text-muted);user-select:none}.hl-text[data-v-dad8dd61]{flex:none;padding-right:14px;white-space:pre;color:var(--color-text)}.hl-gutter+.hl-text[data-v-dad8dd61]{padding-left:var(--space-2)}.row-add[data-v-dad8dd61]{background:var(--color-diff-add-bg)}.row-add .hl-sign[data-v-dad8dd61]{color:var(--color-success)}.row-del[data-v-dad8dd61]{background:var(--color-diff-del-bg)}.row-del .hl-sign[data-v-dad8dd61]{color:var(--color-danger)}.row-hunk[data-v-dad8dd61]{background:var(--color-surface-sunken)}.row-hunk .hl-text[data-v-dad8dd61]{color:var(--color-text-muted)}.hl-code.gutter .row-add[data-v-dad8dd61]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.hl-code.gutter .row-del[data-v-dad8dd61]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.open-in[data-v-ad111e14]{display:inline-flex;align-items:stretch;flex:none;height:26px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);overflow:hidden}.open-in[data-v-ad111e14],.open-in[data-v-ad111e14] *{-webkit-app-region:no-drag}.open-in-main[data-v-ad111e14],.open-in-caret[data-v-ad111e14]{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;padding:0}.open-in-main[data-v-ad111e14]{width:30px}.open-in-caret[data-v-ad111e14]{width:22px}.open-in-main[data-v-ad111e14]:hover:not(:disabled),.open-in-caret[data-v-ad111e14]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text-strong)}.open-in-main[data-v-ad111e14]:focus-visible,.open-in-caret[data-v-ad111e14]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.open-in-main[data-v-ad111e14]:disabled,.open-in-caret[data-v-ad111e14]:disabled{cursor:default;opacity:.5}.open-in.open .open-in-caret[data-v-ad111e14]{background:var(--color-selected);color:var(--color-text-strong)}.open-in-sep[data-v-ad111e14]{flex:none;width:.5px;margin:5px 0;background:var(--color-line)}.open-in-icon[data-v-ad111e14]{width:16px;height:16px;border-radius:4px}.open-in-menu[data-v-ad111e14]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.om-icon[data-v-ad111e14]{width:16px;height:16px;flex:none;border-radius:4px}.om-label[data-v-ad111e14]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-file-head .ui-panel-header__title{font:400 var(--ui-c1) var(--font-ui);direction:rtl;text-align:left}.panel-file-head-actions{margin-left:auto;min-width:0;flex:none;display:flex;align-items:center;gap:var(--space-2)}.file-preview[data-v-2f04e5e9]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono);min-width:0}.fp-empty[data-v-2f04e5e9],.fp-loading[data-v-2f04e5e9]{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:var(--ui-font-size)}.fp-menu[data-v-2f04e5e9]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.fp-check[data-v-2f04e5e9]{color:var(--color-success)}.fp-body[data-v-2f04e5e9]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.fp-markdown[data-v-2f04e5e9]{padding:16px 20px}.fp-code[data-v-2f04e5e9]{background:var(--bg)}.fp-code[data-v-2f04e5e9] .hl-row.target,.fp-table tr.target th[data-v-2f04e5e9],.fp-table tr.target td[data-v-2f04e5e9]{background:var(--color-accent-soft)}.fp-html-frame[data-v-2f04e5e9],.fp-pdf-frame[data-v-2f04e5e9]{width:100%;height:100%;border:0;background:var(--color-surface-raised)}.fp-pdf-wrap[data-v-2f04e5e9]{background:var(--panel2)}.fp-table-wrap[data-v-2f04e5e9]{background:var(--bg)}.fp-table[data-v-2f04e5e9]{border-collapse:collapse;min-width:100%;font:var(--code-font-size)/var(--leading-normal) var(--mono)}.fp-table th[data-v-2f04e5e9]{position:sticky;left:0;z-index:1;width:44px;min-width:44px;padding:2px 8px;text-align:right;color:var(--faint);background:var(--panel);border-right:.5px solid var(--line2);user-select:none}.fp-table td[data-v-2f04e5e9]{padding:2px 10px;border-right:.5px solid var(--line2);border-bottom:.5px solid var(--line2);white-space:pre}.fp-image-wrap[data-v-2f04e5e9]{display:flex;align-items:center;justify-content:center;padding:24px;background:var(--panel2)}.fp-image[data-v-2f04e5e9]{max-width:100%;max-height:100%;object-fit:contain;border:.5px solid var(--line);border-radius:4px;background:var(--media-alpha-canvas)}.fp-image.actual[data-v-2f04e5e9]{max-width:none;max-height:none}.fp-binary-wrap[data-v-2f04e5e9]{display:flex;align-items:center;justify-content:center}.fp-binary-card[data-v-2f04e5e9]{display:flex;align-items:center;gap:12px;padding:20px 24px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:var(--ui-font-size);margin:32px auto;max-width:480px}.fp-binary-icon[data-v-2f04e5e9]{color:var(--faint);flex:none}.fp-error[data-v-2f04e5e9]{flex-direction:column;padding:24px;text-align:center}@keyframes spin-2f04e5e9{to{transform:rotate(360deg)}}.spinner[data-v-2f04e5e9]{display:inline-block;width:14px;height:14px;border:.5px solid var(--line);border-top-color:var(--color-accent);border-radius:50%;animation:spin-2f04e5e9 .7s linear infinite}@media(max-width:640px){.fp-markdown[data-v-2f04e5e9]{padding:14px 16px}.fp-body.fp-code[data-v-2f04e5e9]{-webkit-overflow-scrolling:touch}}.fp-empty[data-v-2f04e5e9],.fp-loading[data-v-2f04e5e9]{font-family:var(--sans)}.fp-binary-card[data-v-2f04e5e9]{border:.5px solid var(--color-line);border-radius:var(--radius-md)}.fp-binary-label[data-v-2f04e5e9]{font-family:var(--sans)}.fp-image[data-v-2f04e5e9]{border-radius:var(--radius-md)}.seg-btn[data-v-2f04e5e9]{font-family:var(--sans)}.gload[data-v-c183e202]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;min-width:100vw;min-height:100dvh;z-index:var(--z-toast);display:flex;align-items:center;justify-content:center;background:var(--bg)}.gload-box[data-v-c183e202]{display:flex;flex-direction:column;align-items:center;gap:22px;transform:translateY(-6%)}.gload-logo[data-v-c183e202]{width:128px;height:auto;color:var(--color-text);animation:gload-pop-c183e202 .55s cubic-bezier(.22,1,.36,1) both}.gload-text[data-v-c183e202]{font-family:var(--mono);font-size:var(--text-base);color:var(--muted);letter-spacing:.04em}@keyframes gload-pop-c183e202{0%{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.gload-logo[data-v-c183e202]{animation:none}}.gload-text[data-v-c183e202]{font-family:var(--sans)}.doodle-host[data-v-8004c140]{position:relative;width:100%;aspect-ratio:338 / 152;display:flex;align-items:center;justify-content:center}.doodle-canvas[data-v-8004c140]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.doodle-canvas.ready[data-v-8004c140]{opacity:1}@media(prefers-reduced-motion:reduce){.doodle-canvas[data-v-8004c140]{transition:none}}.mascot-host[data-v-69623d48]{position:relative;width:100%;aspect-ratio:72 / 100}.mascot-fallback[data-v-69623d48]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:86.5%;height:auto}.mascot-canvas[data-v-69623d48]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.mascot-canvas.ready[data-v-69623d48]{opacity:1}@media(prefers-reduced-motion:reduce){.mascot-canvas[data-v-69623d48]{transition:none}}.emoji-picker[data-v-23e78b23]{--ep-cell: 26px}.ep-search[data-v-23e78b23]{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-1);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--color-text-faint)}.ep-search[data-v-23e78b23]:hover,.ep-search[data-v-23e78b23]:focus-within{background:var(--color-surface-sunken)}.ep-input[data-v-23e78b23]{flex:1;min-width:0;height:calc(var(--ep-cell) + 2px);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;outline:none}.ep-input[data-v-23e78b23]::placeholder{color:var(--color-text-faint)}.ep-scroll[data-v-23e78b23]{max-height:calc(var(--ep-cell) * 10 + var(--space-1));overflow-y:auto;padding:0 var(--space-1)}.ep-label[data-v-23e78b23]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.ep-grid[data-v-23e78b23]{display:grid;grid-template-columns:repeat(8,var(--ep-cell));gap:var(--space-1);padding-bottom:var(--space-1)}.ep-e[data-v-23e78b23]{height:var(--ep-cell);display:grid;place-items:center;padding:0;font-size:var(--text-lg);background:transparent;border:none;border-radius:var(--radius-xs);cursor:pointer}.ep-e[data-v-23e78b23]:hover{background:var(--color-hover)}.ep-e[data-v-23e78b23]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ep-e.sel[data-v-23e78b23]{background:var(--color-accent-soft)}.ep-empty[data-v-23e78b23]{padding:var(--space-3) var(--space-2);font-size:var(--text-xs);color:var(--color-text-faint);text-align:center;user-select:none}.se[data-v-5086001d]{--se-pad-x: var(--space-2);display:block;margin:0;padding:8px var(--se-pad-x);border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);cursor:pointer;position:relative}.se[data-v-5086001d]:hover{background:var(--sb-hover, var(--color-hover));color:var(--color-text)}.se.on[data-v-5086001d]{background:var(--sb-selected, var(--color-selected));color:var(--color-text)}.row[data-v-5086001d]{display:flex;align-items:center;gap:var(--sb-gap, 6px);min-width:0}.left[data-v-5086001d]{display:flex;align-items:center;flex:1;min-width:0}.lead[data-v-5086001d]{width:var(--sb-gutter, 16px);flex:none;display:inline-flex;align-items:center;justify-content:center}.unread-dot[data-v-5086001d]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.ha .complete-btn[data-v-5086001d]:hover{color:var(--color-success)}.t[data-v-5086001d]{--sb-fade: 0px;--sb-fade-len: 16px;color:inherit;font-size:var(--ui-font-size-sm);font-weight:450;line-height:var(--leading-tight);user-select:none;flex:1;min-width:0;overflow:hidden;text-overflow:clip;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.se:hover .t[data-v-5086001d]{--sb-fade: 34px;--sb-fade-len: 26px}.se:has(.ui-badge):hover .t[data-v-5086001d]{--sb-fade: 0px;--sb-fade-len: 16px}.t .emoji[data-v-5086001d]{padding:0;background:transparent;border:none;cursor:pointer}.t .emoji[data-v-5086001d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sub[data-v-5086001d]{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);user-select:none}.sub-icon[data-v-5086001d]{flex:none;color:var(--color-text-muted)}.pr[data-v-5086001d]{display:inline-flex;align-items:center;gap:var(--space-05);flex:none;padding:1px var(--space-1);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-2xs);font-weight:var(--weight-medium);line-height:1;cursor:pointer}.pr[data-v-5086001d]:hover{border-color:var(--color-line-strong)}.pr[data-v-5086001d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pr--open[data-v-5086001d],.pr--open[data-v-5086001d]:hover{background:var(--color-success-soft);border-color:var(--color-success-bd);color:var(--color-success)}.pr--merged[data-v-5086001d],.pr--merged[data-v-5086001d]:hover{background:var(--color-done-soft);border-color:var(--color-done-bd);color:var(--color-done)}.sub-text[data-v-5086001d]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ts[data-v-5086001d]{color:var(--color-text-faint);font-size:var(--text-xs);font-family:var(--font-ui);font-weight:475;line-height:var(--leading-tight);font-variant-numeric:tabular-nums;text-align:right}.act[data-v-5086001d]{position:relative;flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;gap:var(--sb-gap, 6px);min-width:var(--icon-button-sm)}.act .ha[data-v-5086001d]{position:absolute;top:0;bottom:0;right:calc(var(--sb-action-inset, 3px) - var(--se-pad-x));display:inline-flex;align-items:center;gap:2px;opacity:0;visibility:hidden;border-radius:var(--radius-sm);transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.se:hover .ha[data-v-5086001d]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.act .ts[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ts[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .st[data-v-5086001d]{display:inline-flex;align-items:center;transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .st[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .ui-badge[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ui-badge[data-v-5086001d]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.menu[data-v-5086001d],.picker[data-v-5086001d]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-5086001d]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-5086001d]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-5086001d],.menu-pop-leave-to[data-v-5086001d]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.menu-time[data-v-5086001d]{padding:var(--space-1) var(--space-2);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-medium);cursor:default;user-select:text}.rename-wrap[data-v-5086001d]{position:relative;display:flex;align-items:center;flex:1;min-width:0;background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs)}.rename-input[data-v-5086001d]{flex:1;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;padding:1px 4px;outline:none;min-width:0}.rename-wrap.generating .rename-input[data-v-5086001d]{visibility:hidden}.gen-dots[data-v-5086001d]{position:absolute;left:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:3px;pointer-events:none}.gen-dots i[data-v-5086001d]{width:3px;height:3px;border-radius:var(--radius-full, 50%);background:var(--color-accent);animation:gen-title-dot-5086001d .9s var(--ease-out) infinite}.gen-dots i[data-v-5086001d]:nth-child(2){animation-delay:.15s}.gen-dots i[data-v-5086001d]:nth-child(3){animation-delay:.3s}@keyframes gen-title-dot-5086001d{0%,60%,to{opacity:.3;transform:translate(0)}30%{opacity:1;transform:translate(2px)}}.gen-title-btn[data-v-5086001d]{flex:none;margin-right:1px;color:var(--color-accent)}.gen-title-btn[data-v-5086001d]:hover:not(:disabled){color:var(--color-accent-hover);background:transparent}.sessions .se[data-v-5086001d]{margin:0;border-radius:var(--radius-sm);--se-pad-x: calc(var(--sb-pad-x, 20px) - var(--sb-inset, 12px));padding:8px var(--se-pad-x)}.sessions .se.flat+.se.flat[data-v-5086001d]{margin-top:var(--space-05)}.sessions .se .rename-input[data-v-5086001d]{border-radius:var(--radius-sm);font-family:var(--sans)}.pinned-label[data-v-7139df48]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.pinned-title[data-v-7139df48]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-toggle[data-v-7139df48]{color:var(--faint);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.pinned-label:hover .pinned-toggle[data-v-7139df48],.pinned-label:focus-within .pinned-toggle[data-v-7139df48],.pinned-toggle--on[data-v-7139df48]{opacity:1}.pinned-toggle[data-v-7139df48]:hover{color:var(--dim)}.pinned-toggle svg[data-v-7139df48]{width:13px;height:13px}.se-locate-flash[data-v-7139df48]{isolation:isolate}.se-locate-flash[data-v-7139df48]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-7139df48 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-7139df48{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-7139df48]:before{animation:none}}.pinned-rows[data-v-7139df48]{max-height:40vh;overflow-y:auto;padding:0 var(--sb-inset);--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.pinned-rows[data-v-7139df48]::-webkit-scrollbar{display:none}.pinned-thumb[data-v-7139df48]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.pinned-thumb.visible[data-v-7139df48]{opacity:1;pointer-events:auto}.pinned-thumb.visible[data-v-7139df48]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.pinned-thumb[data-v-7139df48]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.pinned-rows-wrap[data-v-7139df48]{position:relative;margin:0 calc(var(--sb-inset) * -1);--pinned-seam-down: linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) .75%, transparent), transparent);--pinned-seam-up: linear-gradient(to top, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to top, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to top, color-mix(in srgb, var(--color-text) .75%, transparent), transparent)}.pinned-seam[data-v-7139df48]{position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;z-index:var(--z-raised);transition:opacity var(--duration-slow) var(--ease-out)}.pinned-seam--top[data-v-7139df48]{top:0;border-top:var(--p-hairline) solid var(--line);background:var(--pinned-seam-down)}.pinned-seam--bottom[data-v-7139df48]{bottom:0;border-bottom:var(--p-hairline) solid var(--line);background:var(--pinned-seam-up)}.pinned-rows-wrap.scrolled .pinned-seam--top[data-v-7139df48],.pinned-rows-wrap.more-below .pinned-seam--bottom[data-v-7139df48]{opacity:1}.pinned-resize[data-v-7139df48]{height:var(--space-1);position:relative;background:transparent;touch-action:none;margin:calc(var(--space-05) * -1) calc(var(--sb-inset) * -1);z-index:var(--z-dropdown)}.pinned-resize-bar[data-v-7139df48]{position:absolute;top:50%;left:0;right:0;height:var(--space-05);translate:0 -50%;background:transparent;transition:background var(--duration-fast) var(--ease-out)}.pinned-resize:hover .pinned-resize-bar[data-v-7139df48]{background:var(--color-selected)}.pinned-resize.dragging .pinned-resize-bar[data-v-7139df48]{background:var(--color-line-strong)}.pinned-resize[data-v-7139df48]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pin-row.dragging[data-v-7139df48]{opacity:.45}.pinned.drop-active[data-v-7139df48]{border-radius:var(--radius-sm);box-shadow:inset 0 0 0 1px var(--color-accent)}.rh[data-v-c42027cd]{width:4px;flex:none;position:relative;align-self:stretch;background:transparent;touch-action:none;margin:0 -2px;z-index:var(--z-dropdown)}.rh-bar[data-v-c42027cd]{position:absolute;inset:0 1px;background:transparent;transition:background .12s}.rh:hover .rh-bar[data-v-c42027cd]{background:var(--color-selected)}.rh.dragging .rh-bar[data-v-c42027cd]{background:var(--color-line-strong)}.rh[data-v-c42027cd]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}/** - * Copyright (c) 2014 The xterm.js authors. All rights reserved. - * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) - * https://github.com/chjj/term.js - * @license MIT - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - * Originally forked from (with the author's permission): - * Fabrice Bellard's javascript vt100 for jslinux: - * http://bellard.org/jslinux/ - * Copyright (c) 2011 Fabrice Bellard - * The original design remains. The terminal itself - * has been extended to include xterm CSI codes, among - * other features. - */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.toasts[data-v-f46ca0b3]{position:fixed;right:16px;bottom:84px;display:flex;flex-direction:column;gap:var(--space-2);z-index:var(--z-toast);width:min(440px,calc(100vw - 32px));max-height:56vh;overflow-y:auto}.toasts.below-overlay[data-v-f46ca0b3]{z-index:var(--z-dropdown)}.toast-enter-active[data-v-f46ca0b3],.toast-leave-active[data-v-f46ca0b3]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.toast-enter-from[data-v-f46ca0b3],.toast-leave-to[data-v-f46ca0b3]{opacity:0;transform:translate(16px)}.toast-move[data-v-f46ca0b3]{transition:transform var(--duration-base) var(--ease-out)}.actions[data-v-f46ca0b3]{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.link[data-v-f46ca0b3]{border:0;padding:0;background:none;color:var(--color-accent);cursor:pointer;font:inherit;font-size:var(--ui-font-size-xs)}.link[data-v-f46ca0b3]:hover{text-decoration:underline}.details[data-v-f46ca0b3]{display:grid;gap:5px;margin:8px 0 0;padding:8px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken)}.detail-row[data-v-f46ca0b3]{display:grid;grid-template-columns:minmax(88px,.34fr) minmax(0,1fr);gap:8px}.detail-row dt[data-v-f46ca0b3]{color:var(--color-text-muted)}.detail-row dd[data-v-f46ca0b3]{margin:0;color:var(--color-text);overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:640px){.toasts[data-v-f46ca0b3]{left:12px;right:12px;bottom:calc(var(--dock-h, 76px) + 8px);width:auto;max-height:50vh}.detail-row[data-v-f46ca0b3]{grid-template-columns:1fr;gap:2px}}.group.dragging[data-v-643ef903]{opacity:.45}.group.pinned-drag-active[data-v-643ef903],.group.pinned-drop-hover[data-v-643ef903]{border-radius:var(--radius-sm)}.group.pinned-drag-active[data-v-643ef903]{box-shadow:inset 0 0 0 1px var(--color-accent)}.group.pinned-drop-hover[data-v-643ef903]{box-shadow:inset 0 0 0 2px var(--color-accent)}.group.pinned-drop-blocked[data-v-643ef903],.group.pinned-drop-blocked[data-v-643ef903] *{cursor:no-drop}.se-locate-flash[data-v-643ef903]{isolation:isolate}.se-locate-flash[data-v-643ef903]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-643ef903 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-643ef903{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-643ef903]:before{animation:none}}.group-sessions[data-v-643ef903]{height:auto;overflow:hidden;transition:height var(--duration-base) var(--ease-out)}.group-sessions.collapsed[data-v-643ef903]{height:0}.gh[data-v-643ef903]{display:flex;flex-direction:column;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text);user-select:none;position:relative;cursor:grab}.gh[data-v-643ef903]:active{cursor:grabbing}.gh[data-v-643ef903]:hover{background:var(--sb-hover, var(--color-hover))}.gh.on[data-v-643ef903]{background:var(--sb-selected, var(--color-selected))}.gh-top[data-v-643ef903]{position:relative;display:flex;align-items:center;gap:var(--sb-gap)}.gh-folder[data-v-643ef903]{flex:none;color:var(--color-text-muted)}.gh-name[data-v-643ef903]{font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.gh-actions[data-v-643ef903]{position:absolute;right:calc(var(--sb-action-inset) - (var(--sb-pad-x) - var(--sb-inset)));top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:var(--space-1);padding-left:var(--space-1);border-radius:var(--radius-sm);isolation:isolate;opacity:0;pointer-events:none}.gh-name[data-v-643ef903]{--sb-fade: 0px;--sb-fade-len: 16px;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.gh:hover .gh-name[data-v-643ef903],.gh:focus-within .gh-name[data-v-643ef903],.gh:has(.gh-actions.open) .gh-name[data-v-643ef903]{--sb-fade: 64px;--sb-fade-len: 26px}.gh-actions[data-v-643ef903]>*{position:relative;z-index:1}.gh:hover .gh-actions[data-v-643ef903],.gh:focus-within .gh-actions[data-v-643ef903],.gh-actions.open[data-v-643ef903]{opacity:1;pointer-events:auto}.gh-more.open[data-v-643ef903]{color:var(--color-text);background:var(--color-line)}.group-empty[data-v-643ef903]{padding:var(--space-1) var(--space-2) var(--space-1) calc(var(--sb-pad-x) - var(--sb-inset) + var(--sb-gutter) + var(--sb-gap));font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui);user-select:none}.show-more-row[data-v-643ef903]{display:flex;align-items:center;padding-left:calc(var(--sb-gutter) + var(--sb-gap))}.show-more[data-v-643ef903]{display:flex;align-items:center;gap:var(--sb-gap);margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:left;cursor:pointer}.show-more[data-v-643ef903]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-643ef903]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-sep[data-v-643ef903]{margin:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.show-more-label[data-v-643ef903]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gh-rename[data-v-643ef903]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none}.gh-rename[data-v-643ef903]{border-radius:var(--radius-sm);font-family:var(--sans)}.gh-add[data-v-643ef903]{color:var(--faint)}.gh-add[data-v-643ef903]:hover{color:var(--dim)}.sa-select[data-v-d0588d0e]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:30px;padding:0 var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-d0588d0e]:hover,.sa-select.is-open[data-v-d0588d0e]{background:var(--color-hover)}.sa-select-chev[data-v-d0588d0e]{color:var(--color-text-faint)}.sa-menu[data-v-d0588d0e]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-check[data-v-d0588d0e]{display:inline-flex;flex:none;width:14px}.sa-dot[data-v-d0588d0e]{flex:none;width:8px;height:8px;border-radius:var(--radius-full)}.sa-dot--open[data-v-d0588d0e]{background:var(--color-success)}.sa-dot--done[data-v-d0588d0e]{background:var(--color-done)}.menu-pop-enter-active[data-v-d0588d0e]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-d0588d0e]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-d0588d0e],.menu-pop-leave-to[data-v-d0588d0e]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-select[data-v-967a19b0]{display:inline-flex;align-items:center;gap:var(--space-1-5);min-height:30px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-967a19b0]:hover,.sa-select.is-open[data-v-967a19b0]{background:var(--color-hover)}.sa-select[data-v-967a19b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sa-select-chev[data-v-967a19b0]{color:var(--color-text-faint)}.sa-tag[data-v-967a19b0]{display:inline-flex;align-items:center;gap:1px;height:20px;padding:0 2px 0 var(--space-1-5);border-radius:var(--radius-xs);background:var(--color-selected);font-size:var(--text-xs)}.sa-tag-name[data-v-967a19b0]{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-tag-x[data-v-967a19b0]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:var(--color-text-faint);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-tag-x[data-v-967a19b0]:hover{background:var(--color-hover);color:var(--color-text)}.sa-tag-more[data-v-967a19b0]{color:var(--color-text-muted);font-size:var(--text-xs)}.sa-menu[data-v-967a19b0]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-search[data-v-967a19b0]{display:flex;align-items:center;gap:7px;padding:5px 9px;color:var(--color-text-faint)}.sa-search-input[data-v-967a19b0]{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-tight)}.sa-search-input[data-v-967a19b0]::placeholder{color:var(--color-text-faint)}.sa-ws-name[data-v-967a19b0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-opts[data-v-967a19b0]{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.sa-menu-empty[data-v-967a19b0]{padding:5px 9px;color:var(--color-text-faint);font-size:var(--text-sm)}.menu-pop-enter-active[data-v-967a19b0]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-967a19b0]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-967a19b0],.menu-pop-leave-to[data-v-967a19b0]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-menu[data-v-b35c02be]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-menu-head[data-v-b35c02be]{padding:var(--space-1) var(--space-2) var(--space-05);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.menu-pop-enter-active[data-v-b35c02be]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-b35c02be]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-b35c02be],.menu-pop-leave-to[data-v-b35c02be]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-pager[data-v-d8059995]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-3)}.sa-total[data-v-d8059995]{color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;user-select:none}.sa-pager-right[data-v-d8059995]{display:flex;align-items:center;gap:var(--space-3)}.sa-pages[data-v-d8059995]{display:flex;align-items:center;gap:var(--space-05)}.sa-pg[data-v-d8059995]{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 var(--space-1-5);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-pg[data-v-d8059995]:hover{background:var(--color-hover);color:var(--color-text)}.sa-pg.cur[data-v-d8059995]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.sa-pg.cur[data-v-d8059995]:hover{background:var(--color-selected)}.sa-pg[data-v-d8059995]:disabled{opacity:.38;cursor:default}.sa-pg[data-v-d8059995]:disabled:hover{background:transparent;color:var(--color-text-muted)}.sa-ellipsis[data-v-d8059995]{padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sa-table-card[data-v-dd5dbf42]{border:.5px solid var(--color-line);border-radius:var(--radius-lg);background:var(--color-bg);overflow-x:auto;container-type:inline-size;transition:opacity var(--duration-fast) var(--ease-out)}.sa-table-card.is-loading[data-v-dd5dbf42]{opacity:.45;pointer-events:none}table[data-v-dd5dbf42]{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed}.sa-col-cb[data-v-dd5dbf42]{width:36px}.sa-col-title[data-v-dd5dbf42]{width:max(200px,20%)}.sa-col-ws[data-v-dd5dbf42]{width:116px}.sa-col-status[data-v-dd5dbf42]{width:88px}.sa-col-time[data-v-dd5dbf42]{width:140px}.sa-col-act[data-v-dd5dbf42]{width:84px}.sa-time--compact[data-v-dd5dbf42]{display:none}@container (max-width: 1020px){.sa-col-time[data-v-dd5dbf42]{width:108px}.sa-time--full[data-v-dd5dbf42]{display:none}.sa-time--compact[data-v-dd5dbf42]{display:inline}}@container (max-width: 760px){col.sa-col-time[data-v-dd5dbf42],.sa-c-time[data-v-dd5dbf42]{display:none}.sa-col-ws[data-v-dd5dbf42]{width:96px}}thead th[data-v-dd5dbf42]{height:32px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);text-align:left;white-space:nowrap;user-select:none}th.sa-col-cb[data-v-dd5dbf42],td.sa-col-cb[data-v-dd5dbf42]{padding-right:0}tbody td[data-v-dd5dbf42]{height:40px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-subtle);font-size:var(--text-sm);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}tbody tr:last-child td[data-v-dd5dbf42]{border-bottom:none}tbody tr[data-v-dd5dbf42]{transition:background var(--duration-fast) var(--ease-out)}tbody tr[data-v-dd5dbf42]:hover{background:var(--color-hover)}.sa-cb[data-v-dd5dbf42]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:.5px solid var(--color-line-strong);border-radius:var(--radius-xs);color:var(--color-text-on-accent);vertical-align:middle;transition:background var(--duration-fast) var(--ease-out),border-color var(--duration-fast) var(--ease-out)}.sa-cb[data-v-dd5dbf42]:hover{border-color:var(--color-text-faint)}.sa-cb.on[data-v-dd5dbf42],.sa-cb.ind[data-v-dd5dbf42]{background:var(--color-accent);border-color:var(--color-accent)}.sa-batch-inner[data-v-dd5dbf42]{display:flex;align-items:center;gap:var(--space-2)}.sa-batch-count[data-v-dd5dbf42]{margin-right:var(--space-1);color:var(--color-text-muted);font-size:var(--text-sm);white-space:nowrap;user-select:none}.sa-batch-link[data-v-dd5dbf42]{display:inline-flex;align-items:center;height:24px;padding:0 var(--space-1);border:none;background:transparent;color:var(--color-accent);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.sa-batch-link[data-v-dd5dbf42]:hover{text-decoration:underline}.sa-batch-link[data-v-dd5dbf42]:disabled{color:var(--color-text-faint);cursor:default;text-decoration:none}.sa-btn-q[data-v-dd5dbf42]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:24px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-btn-q[data-v-dd5dbf42]:hover{background:var(--color-hover)}.sa-btn-q[data-v-dd5dbf42]:disabled{opacity:.42;cursor:default}.sa-btn-q[data-v-dd5dbf42]:disabled:hover{background:transparent}.sa-btn-q[data-v-dd5dbf42] :first-child{color:var(--color-text-muted)}.sa-btn-q[data-v-dd5dbf42]:hover :first-child{color:var(--color-text)}.sa-btn-q--primary[data-v-dd5dbf42],.sa-btn-q--primary[data-v-dd5dbf42] :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-dd5dbf42]:hover,.sa-btn-q--primary[data-v-dd5dbf42]:hover :first-child{border-color:var(--color-accent-hover);background:var(--color-accent-hover);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-dd5dbf42]:disabled,.sa-btn-q--primary[data-v-dd5dbf42]:disabled:hover,.sa-btn-q--primary[data-v-dd5dbf42]:disabled :first-child,.sa-btn-q--primary[data-v-dd5dbf42]:disabled:hover :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-st[data-v-dd5dbf42]{display:inline-flex;align-items:center;gap:var(--space-1-5)}.sa-st--open[data-v-dd5dbf42]{color:var(--color-success)}.sa-st--done[data-v-dd5dbf42]{color:var(--color-done)}.sa-title[data-v-dd5dbf42]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-option-label)}.sa-rename[data-v-dd5dbf42]{width:100%;height:26px;padding:0 var(--space-1-5);border:1px solid var(--color-accent);border-radius:var(--radius-sm);outline:none;box-shadow:0 0 0 2px var(--color-accent-bd);background:var(--color-bg);color:var(--color-text);font-family:inherit;font-size:var(--text-sm)}.sa-ws[data-v-dd5dbf42]{display:inline-flex;align-items:center;max-width:100%;color:var(--color-text-muted)}.sa-ws span[data-v-dd5dbf42]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-prompt[data-v-dd5dbf42]{color:var(--color-text-muted)}.sa-time[data-v-dd5dbf42]{color:var(--color-text-muted);font-family:var(--font-mono);font-size:var(--text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.sa-none[data-v-dd5dbf42]{color:var(--color-text-faint)}.sa-act[data-v-dd5dbf42]{display:flex;align-items:center;gap:var(--space-05)}.sa-state[data-v-dd5dbf42]{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-8) + var(--space-6)) var(--space-4)}.sa-empty[data-v-dd5dbf42]{color:var(--color-text-faint);font-size:var(--text-sm)}.activity-notice[data-v-fd031610]{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin:0;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.think[data-v-39bd75ea]{margin:0}.think-head[data-v-39bd75ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.think-head[data-v-39bd75ea]:hover{color:var(--color-text)}.think-head[data-v-39bd75ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.think-bulb[data-v-39bd75ea]{flex:none}.think-title[data-v-39bd75ea]{font-weight:var(--weight-medium)}.think-time[data-v-39bd75ea]{color:var(--color-text-faint);font-weight:400;flex:none}.think.streaming .think-title[data-v-39bd75ea]{animation:think-breathe-39bd75ea 1.6s var(--ease-in-out) infinite}@keyframes think-breathe-39bd75ea{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.think.streaming .think-title[data-v-39bd75ea]{animation:none}}.think-car[data-v-39bd75ea]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.think.open .think-car[data-v-39bd75ea]{transform:rotate(90deg)}.think-body[data-v-39bd75ea]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.think-body.instant[data-v-39bd75ea]{transition:none}.think-body.open[data-v-39bd75ea]{grid-template-rows:minmax(0,1fr)}.think-body-inner[data-v-39bd75ea]{min-height:0;overflow:hidden}.think-text[data-v-39bd75ea]{font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:var(--space-1) 0 var(--space-2)}.mob .think-text[data-v-39bd75ea]{color:var(--color-text-faint);line-height:var(--leading-normal)}.op[data-v-ad2b6614]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);background:var(--color-well);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-word;max-height:12lh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.op-empty[data-v-ad2b6614]{color:var(--color-text-faint);font-style:italic}.agent-card[data-v-4a2d5e3d]{margin:var(--space-1) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.agent-card[data-v-4a2d5e3d]:hover{border-color:var(--color-line-strong)}.agent-card.err[data-v-4a2d5e3d]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2) var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.head[data-v-4a2d5e3d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.head[data-v-4a2d5e3d]:disabled{cursor:default}.head-row[data-v-4a2d5e3d]{display:flex;align-items:center}.head-row .head[data-v-4a2d5e3d]{flex:1;min-width:0}.detach[data-v-4a2d5e3d]{position:relative;flex:none;margin-right:var(--space-1)}.detach.touch[data-v-4a2d5e3d]:after{content:"";position:absolute;inset:-9px}.go-slot[data-v-4a2d5e3d]{display:inline-flex;align-items:center;padding-right:var(--space-3);cursor:pointer;flex:none}.lead[data-v-4a2d5e3d]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-md);background:var(--color-surface-sunken);color:var(--color-text-muted);flex:none}.main[data-v-4a2d5e3d]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.task[data-v-4a2d5e3d]{font-size:var(--ui-font-size);line-height:var(--leading-caption);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type[data-v-4a2d5e3d]{font-size:var(--text-xs);line-height:var(--leading-caption);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tail[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-2);flex:none}.st[data-v-4a2d5e3d]{display:inline-flex;align-items:center}.st.ok[data-v-4a2d5e3d]{color:var(--color-success)}.st.error[data-v-4a2d5e3d]{color:var(--color-danger)}.st.cancelled[data-v-4a2d5e3d]{color:var(--color-text-faint)}.go[data-v-4a2d5e3d]{color:var(--color-text-faint);transition:color var(--duration-base) var(--ease-out)}.agent-card:hover .head:not(:disabled) .go[data-v-4a2d5e3d]{color:var(--color-text)}.go.car[data-v-4a2d5e3d]{transition:color var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.go.car.open[data-v-4a2d5e3d]{transform:rotate(90deg)}.saved-result[data-v-4a2d5e3d]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.saved-result[data-v-4a2d5e3d]:hover{color:var(--color-text-muted)}.saved-result[data-v-4a2d5e3d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.saved-result__chevron[data-v-4a2d5e3d]{transition:transform var(--duration-base) var(--ease-out)}.saved-result__chevron.open[data-v-4a2d5e3d]{transform:rotate(90deg)}.result[data-v-4a2d5e3d]{padding:var(--space-2) var(--space-3)}.result--legacy[data-v-4a2d5e3d]{border-top:.5px solid var(--color-line)}.tl-head[data-v-e445a9a3]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border-radius:var(--radius-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left}.tl-head.clickable[data-v-e445a9a3]{cursor:pointer;user-select:none}.tl-ic[data-v-e445a9a3]{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;color:var(--color-text-faint)}.tl-main[data-v-e445a9a3]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-1)}.tl-tail[data-v-e445a9a3]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}.tl-status[data-v-e445a9a3]{display:inline-flex;align-items:center;flex:none}.tl-status.ok[data-v-e445a9a3]{color:var(--color-success)}.tl-status.error[data-v-e445a9a3]{color:var(--color-danger)}.tl-car[data-v-e445a9a3]{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-car[data-v-e445a9a3]:hover{color:var(--color-text)}.tl-car[data-v-e445a9a3]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-car-ic[data-v-e445a9a3]{transition:transform var(--duration-base) var(--ease-out)}.tool-line.open .tl-car-ic[data-v-e445a9a3]{transform:rotate(90deg)}.tl-body[data-v-e445a9a3]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tl-body.open[data-v-e445a9a3]{grid-template-rows:minmax(0,1fr)}.tl-body-inner[data-v-e445a9a3]{min-height:0;overflow:hidden;padding:2px var(--space-2) var(--space-1) 0}.tl-main .tl-name[data-v-e445a9a3-s]{font-weight:var(--weight-regular);color:var(--color-text-muted);flex:none}.tl-main .tl-dim[data-v-e445a9a3-s]{color:var(--color-text-muted);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-faint[data-v-e445a9a3-s]{color:var(--color-text-faint);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-mono[data-v-e445a9a3-s]{font-family:var(--font-mono);font-size:var(--text-xs);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-file[data-v-e445a9a3-s]{font-weight:var(--weight-regular);color:var(--color-text);line-height:var(--leading-tight);flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 1px;font-family:inherit;font-size:inherit;cursor:pointer}.tl-main .tl-file[data-v-e445a9a3-s]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.tl-main .tl-file[data-v-e445a9a3-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-tail .tl-pill[data-v-e445a9a3-s]{font-size:var(--text-xs);line-height:1.5;padding:0 var(--space-2);border-radius:var(--radius-full);flex:none;white-space:nowrap}.tl-tail .tl-chip[data-v-e445a9a3-s]{color:var(--color-text-faint);font-size:var(--text-xs);flex:none;white-space:nowrap}.tl-tail .tl-add[data-v-e445a9a3-s]{color:var(--color-success);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tl-tail .tl-del[data-v-e445a9a3-s]{color:var(--color-danger);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.ask-receipt[data-v-928d131f]{max-width:560px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);padding:var(--space-2) var(--space-3) 10px;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.ask-receipt.flat[data-v-928d131f]{color:var(--color-text-faint);font-style:italic;padding-top:6px;padding-bottom:6px}.rc-head[data-v-928d131f]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text-faint);font-size:var(--text-xs);margin-bottom:6px}.rc-st[data-v-928d131f]{margin-left:auto;color:var(--color-success);display:inline-flex}.rc-q+.rc-q[data-v-928d131f]{margin-top:6px}.rc-qtext[data-v-928d131f]{display:flex;align-items:baseline;gap:var(--space-2);margin-bottom:3px;font-weight:var(--weight-medium);color:var(--color-text)}.rc-opt[data-v-928d131f]{display:flex;align-items:center;gap:var(--space-2);padding:1.5px 0;color:var(--color-text)}.rc-qskip[data-v-928d131f]{padding:1.5px 0;color:var(--color-text-faint);font-style:italic}.rc-lb[data-v-928d131f]{min-width:0}.rc-ds[data-v-928d131f]{color:var(--color-text-faint);font-size:var(--text-xs)}.rc-g[data-v-928d131f]{width:14px;height:14px;flex:none;border:.5px solid var(--color-line-strong);position:relative}.rc-g.chk[data-v-928d131f]{border-radius:var(--radius-xs)}.rc-g.rad[data-v-928d131f]{border-radius:50%}.rc-g.on[data-v-928d131f]{border-color:var(--color-accent)}.rc-g.chk.on[data-v-928d131f]{background:var(--color-accent)}.rc-g.chk.on[data-v-928d131f]:after{content:"";position:absolute;left:3.5px;top:.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.rc-g.rad.on[data-v-928d131f]:after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:var(--color-accent)}.cmd-echo[data-v-e0f3f8fe]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.tl-detach[data-v-e0f3f8fe]{position:relative;display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-detach[data-v-e0f3f8fe]:hover{color:var(--color-text)}.tl-detach[data-v-e0f3f8fe]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-detach.touch[data-v-e0f3f8fe]{width:44px;height:44px;margin-left:14px}.diffbar[data-v-b25ea4cc]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;gap:1px;flex:none}.seg-add[data-v-b25ea4cc]{background:var(--color-success)}.seg-del[data-v-b25ea4cc]{background:var(--color-danger)}.gl[data-v-c64dda93]{display:inline-flex;align-items:center}.arg-full[data-v-c64dda93]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.file-list[data-v-ef9af25f]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.file-row[data-v-ef9af25f]{width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.file-row[data-v-ef9af25f]:hover{background:var(--color-hover);color:var(--color-accent)}.file-row[data-v-ef9af25f]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-pill.pill-active[data-v-50602502]{color:var(--color-accent);background:var(--color-accent-soft)}.tl-pill.pill-done[data-v-50602502]{color:var(--color-success);background:var(--color-success-soft)}.tl-pill.pill-blocked[data-v-50602502]{color:var(--color-warning);background:var(--color-warning-soft)}.goal-block[data-v-50602502]{margin-bottom:var(--space-1)}.goal-text[data-v-50602502]{color:var(--color-text);font-size:calc(var(--content-font-size) - 1px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.goal-criterion[data-v-50602502]{color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;margin-top:2px;white-space:pre-wrap;word-break:break-word}.match-list[data-v-e5f2e791]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.match-row[data-v-e5f2e791]{display:flex;align-items:baseline;gap:var(--space-2);width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;cursor:default}.match-row.link[data-v-e5f2e791]{cursor:pointer}.match-row.link[data-v-e5f2e791]:hover{background:var(--color-hover)}.match-row[data-v-e5f2e791]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mref[data-v-e5f2e791]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-faint)}.match-row.link:hover .mref[data-v-e5f2e791]{color:var(--color-accent)}.mtext[data-v-e5f2e791]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-resolving[data-v-7bd83e15]{visibility:hidden}.media-tool[data-v-8ea09226]{display:inline-flex;flex-direction:column;gap:6px;max-width:320px}.media-title[data-v-8ea09226]{font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-image-button[data-v-8ea09226]{padding:0;border:none;background:transparent;cursor:pointer;border-radius:var(--radius-md);overflow:hidden}.media-image[data-v-8ea09226]{display:block;max-width:100%;border-radius:var(--radius-md);background:var(--media-alpha-canvas)}.media-video[data-v-8ea09226],.media-audio[data-v-8ea09226]{max-width:100%;border-radius:var(--radius-md)}.media-video[data-v-8ea09226]{display:block}.media-video-button[data-v-8ea09226]{position:relative}.media-video-tile[data-v-8ea09226]{display:block;width:320px;max-width:100%;aspect-ratio:16 / 9;background:var(--color-well)}.media-play-badge[data-v-8ea09226]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}.plan-glyph[data-v-ae3acb2d]{display:inline-flex;align-items:center}.plan-path[data-v-ae3acb2d]{display:block;max-width:100%;margin:0 0 var(--space-2);padding:0;overflow:hidden;border:none;background:transparent;color:var(--color-accent);font-family:var(--font-mono);font-size:var(--text-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-ae3acb2d]:hover{text-decoration:underline}.plan-path[data-v-ae3acb2d]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.plan-content[data-v-ae3acb2d]{padding:var(--space-3);border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);color:var(--color-text)}.plan-review[data-v-ae3acb2d]{display:flex;flex-direction:column;gap:var(--space-1);margin-top:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.plan-review>div[data-v-ae3acb2d]{display:flex;align-items:baseline;gap:var(--space-2)}.review-label[data-v-ae3acb2d]{flex:none;color:var(--color-text-faint)}.review-feedback[data-v-ae3acb2d]{white-space:pre-wrap}.path-link[data-v-a487370d]{display:block;width:100%;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 0 var(--space-1);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);color:var(--color-text-muted);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.path-link[data-v-a487370d]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.path-link[data-v-a487370d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.swarm-card[data-v-a03fd23e]{margin:0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.swarm-card.err[data-v-a03fd23e]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.head[data-v-a03fd23e]:hover{background:var(--color-hover);color:var(--color-text)}.head[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ic[data-v-a03fd23e]{color:var(--color-text-faint);flex:none}.title[data-v-a03fd23e]{font-weight:var(--weight-medium);color:var(--color-text);flex:none}.meta[data-v-a03fd23e]{color:var(--color-text-faint);flex:none}.sum-txt[data-v-a03fd23e]{color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.rt[data-v-a03fd23e]{margin-left:auto;display:flex;align-items:center;gap:var(--space-2);flex:none;color:var(--color-text-muted);font-size:var(--text-xs)}.status[data-v-a03fd23e]{display:inline-flex;align-items:center;flex:none}.status[data-v-a03fd23e]:has(>svg){color:var(--color-success)}.err .status[data-v-a03fd23e]:has(>svg){color:var(--color-danger)}.chip[data-v-a03fd23e]{color:var(--color-text-muted);font-family:var(--font-mono)}.tm[data-v-a03fd23e]{color:var(--color-text-faint);font-family:var(--font-mono)}.car[data-v-a03fd23e]{margin-left:2px;color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.swarm-card.open .car[data-v-a03fd23e]{transform:rotate(90deg)}.body[data-v-a03fd23e]{border-top:.5px solid var(--color-line)}.overview[data-v-a03fd23e]{padding:10px var(--space-3) var(--space-2);border-bottom:.5px solid var(--color-line)}.overview-line[data-v-a03fd23e]{display:flex;align-items:baseline;gap:var(--space-2)}.big[data-v-a03fd23e]{font-family:var(--font-mono);font-weight:var(--weight-medium);color:var(--color-text);font-size:15px}.lbl[data-v-a03fd23e]{color:var(--color-text-muted);font-size:var(--text-xs)}.seg[data-v-a03fd23e]{display:flex;height:5px;border-radius:var(--radius-full);overflow:hidden;margin:var(--space-2) 0 var(--space-1);gap:2px}.seg>span[data-v-a03fd23e]{height:100%;border-radius:var(--radius-full);min-width:3px}.s-ok[data-v-a03fd23e]{background:var(--color-success)}.s-run[data-v-a03fd23e]{background:var(--color-accent)}.s-warn[data-v-a03fd23e]{background:var(--color-warning)}.s-fail[data-v-a03fd23e]{background:var(--color-danger)}.s-queue[data-v-a03fd23e]{background:var(--color-line)}.legend[data-v-a03fd23e]{display:flex;flex-wrap:wrap;gap:10px}.legend span[data-v-a03fd23e]{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted)}.lg-dot[data-v-a03fd23e]{width:6px;height:6px;border-radius:var(--radius-full)}.member[data-v-a03fd23e]{border-bottom:.5px solid var(--color-line)}.member[data-v-a03fd23e]:last-child{border-bottom:none}.member-head[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:30px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.member-head[data-v-a03fd23e]:not(:disabled):hover{background:var(--color-hover)}.member-head[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.member-head[data-v-a03fd23e]:disabled{cursor:default}.row-dot[data-v-a03fd23e]{flex:none}.mname[data-v-a03fd23e]{flex:none;min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-medium);color:var(--color-text)}.mact[data-v-a03fd23e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font-size:var(--text-xs)}.mphase[data-v-a03fd23e]{flex:none;margin-left:auto;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.phase-completed .mphase[data-v-a03fd23e]{color:var(--color-success)}.phase-failed .mphase[data-v-a03fd23e]{color:var(--color-danger)}.phase-working .mphase[data-v-a03fd23e]{color:var(--color-accent)}.phase-suspended .mphase[data-v-a03fd23e]{color:var(--color-warning)}.mcar[data-v-a03fd23e]{margin-left:var(--space-1);color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.member.open .mcar[data-v-a03fd23e]{transform:rotate(90deg)}.member-saved[data-v-a03fd23e]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.member-saved[data-v-a03fd23e]:hover{color:var(--color-text-muted)}.member-saved[data-v-a03fd23e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.member-saved-car[data-v-a03fd23e]{transition:transform var(--duration-base) var(--ease-out)}.member-saved-car.open[data-v-a03fd23e]{transform:rotate(90deg)}.member-body[data-v-a03fd23e]{padding:var(--space-1) var(--space-3) 10px 31px;color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.65;white-space:pre-wrap;word-break:break-word}.waiting[data-v-a03fd23e]{padding:6px var(--space-3) 10px;color:var(--color-text-muted);font-size:var(--text-xs)}.fallback-output[data-v-a03fd23e]{padding:10px var(--space-3);color:var(--color-text);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.status-glyph[data-v-77ce35f9]{flex:none;width:16px;display:inline-flex;align-items:center;justify-content:center;user-select:none}.status-glyph.s-run[data-v-77ce35f9]{color:var(--color-accent)}.status-glyph.s-done[data-v-77ce35f9]{color:var(--color-success)}.status-glyph.s-fail[data-v-77ce35f9]{color:var(--color-danger)}.status-glyph.s-pending[data-v-77ce35f9]{color:var(--color-text-faint)}.todo-bar[data-v-9c43594f]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.todo-fill[data-v-9c43594f]{background:var(--color-success);border-radius:var(--radius-full);transition:width var(--duration-slow) var(--ease-out)}.todo-list[data-v-9c43594f]{display:flex;flex-direction:column;gap:1px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-2) var(--space-3);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.todo-row[data-v-9c43594f]{display:flex;align-items:center;gap:7px;padding:2px 0;font-size:calc(var(--content-font-size) - 1px);color:var(--color-text)}.todo-title[data-v-9c43594f]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}.todo-row.s-in_progress .todo-title[data-v-9c43594f]{font-weight:var(--weight-medium)}.todo-row.s-done .todo-title[data-v-9c43594f]{color:var(--color-text-faint);text-decoration:line-through}.wf-glance[data-v-3a167d7c]{margin-bottom:var(--space-1)}.wf-main[data-v-3a167d7c]{color:var(--color-text);font-size:var(--text-sm);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.wf-sub[data-v-3a167d7c]{color:var(--color-text-muted);font-size:var(--text-xs);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.fetch-url[data-v-214a8617]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;color:var(--color-text-faint);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.activity-run[data-v-0970b9ea]{display:flex;flex-direction:column;animation:kimi-card-in var(--duration-base) var(--ease-out)}.ar-head[data-v-0970b9ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.ar-head[data-v-0970b9ea]:hover{color:var(--color-text)}.ar-head.is-static[data-v-0970b9ea],.ar-head.is-static[data-v-0970b9ea]:hover{cursor:default;color:var(--color-text-faint)}.ar-head[data-v-0970b9ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ar-glyph[data-v-0970b9ea]{display:inline-flex;align-items:center;flex:none;color:var(--color-text-faint)}.ar-glyph.ok[data-v-0970b9ea]{color:var(--color-success)}.ar-glyph.err[data-v-0970b9ea]{color:var(--color-danger)}.ar-glyph.run[data-v-0970b9ea]{color:var(--color-text-muted);animation:ar-breathe-0970b9ea 1.6s var(--ease-in-out) infinite}@keyframes ar-breathe-0970b9ea{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.ar-glyph.run[data-v-0970b9ea]{animation:none}}.ar-sum[data-v-0970b9ea]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.ar-danger[data-v-0970b9ea]{color:var(--color-danger)}.ar-faint[data-v-0970b9ea],.ar-sep[data-v-0970b9ea]{color:var(--color-text-faint)}.ar-car[data-v-0970b9ea]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.activity-run.open .ar-car[data-v-0970b9ea]{transform:rotate(90deg)}.ar-body[data-v-0970b9ea]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.ar-body.open[data-v-0970b9ea]{grid-template-rows:minmax(0,1fr)}.ar-body-inner[data-v-0970b9ea]{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:var(--space-2);padding-top:var(--space-1)}.msg-time[data-v-182ed7d4]{display:inline-flex;align-items:center;min-height:22px;box-sizing:border-box;padding:2px 5px;border-radius:var(--radius-sm);color:var(--muted);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;opacity:.7;white-space:nowrap}.ntf-list[data-v-2962a217]{display:flex;flex-direction:column;align-items:flex-end;gap:var(--space-3);margin:var(--space-2) 0}.ntn[data-v-2962a217]{margin-left:auto;max-width:var(--p-bubble-max);display:flex;flex-direction:column;align-items:flex-end}.ntn-head[data-v-2962a217]{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.ntn-ico[data-v-2962a217]{flex:none}.ntn.ok .ntn-ico[data-v-2962a217]{color:var(--color-success)}.ntn.err .ntn-ico[data-v-2962a217]{color:var(--color-danger)}.ntn.warn .ntn-ico[data-v-2962a217]{color:var(--color-warning)}.ntn-bubble[data-v-2962a217]{box-sizing:border-box;max-width:100%;padding:var(--space-2) var(--space-3);background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.ntn-line+.ntn-line[data-v-2962a217]{margin-top:var(--space-1)}.ntn-out[data-v-2962a217]{display:flex;align-items:center;gap:var(--space-2);background:var(--color-surface-raised);border-radius:var(--radius-md);padding:var(--space-1) var(--space-2);box-shadow:var(--shadow-xs);white-space:normal}.ntn-out-ic[data-v-2962a217]{color:var(--color-text-faint);flex:none}.ntn-out-path[data-v-2962a217]{flex:1;min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}.ntn-out-size[data-v-2962a217]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.ntn-out-copy[data-v-2962a217]{display:inline-flex;align-items:center;height:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);color:var(--color-text-muted);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;transition:color var(--duration-fast) var(--ease-out)}.ntn-out-copy[data-v-2962a217]:hover{color:var(--color-text)}.ntn-preview-cap[data-v-2962a217]{font-size:var(--text-xs);color:var(--color-text-faint);margin-bottom:var(--space-05)}.ntn-preview-text[data-v-2962a217]{margin:0;font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}.ntn-meta[data-v-2962a217]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}.ntn-raw[data-v-2962a217]{max-width:100%}.ntn-raw summary[data-v-2962a217]{list-style:none;display:flex;align-items:center;gap:var(--space-1);cursor:pointer;font-size:var(--text-xs);color:var(--color-text-faint);user-select:none}.ntn-raw summary[data-v-2962a217]::-webkit-details-marker{display:none}.ntn-raw summary[data-v-2962a217]:hover{color:var(--color-text)}.ntn-raw-car[data-v-2962a217]{transition:transform var(--duration-base) var(--ease-out)}.ntn-raw[open] .ntn-raw-car[data-v-2962a217]{transform:rotate(90deg)}.ntn-raw-in[data-v-2962a217]{margin-top:var(--space-1);display:flex;flex-direction:column;gap:var(--space-2)}.ntn-raw-fields[data-v-2962a217]{display:grid;grid-template-columns:auto 1fr;gap:var(--space-1) var(--space-3)}.ntn-raw-fields .k[data-v-2962a217]{color:var(--color-text-faint);font-size:var(--text-xs)}.ntn-raw-fields .v[data-v-2962a217]{color:var(--color-text-muted);font-size:var(--text-xs);font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntn-raw-pre[data-v-2962a217]{margin:0;padding:var(--space-2) var(--space-3);background:var(--color-surface-raised);border-radius:var(--radius-sm);box-shadow:var(--shadow-xs);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre;overflow:auto;max-width:100%;max-height:13lh}.turn-fold[data-v-d69de1b5]{display:flex;flex-direction:column}.tf-head[data-v-d69de1b5]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.tf-head[data-v-d69de1b5]:hover{color:var(--color-text)}.tf-head[data-v-d69de1b5]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.tf-sum[data-v-d69de1b5]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.tf-car[data-v-d69de1b5]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.turn-fold.open .tf-car[data-v-d69de1b5]{transform:rotate(90deg)}.tf-body[data-v-d69de1b5]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tf-body.open[data-v-d69de1b5]{grid-template-rows:minmax(0,1fr)}.tf-body-inner[data-v-d69de1b5]{min-height:0;overflow:hidden;display:flex;flex-direction:column}.tf-body-inner>.msg[data-v-d69de1b5],.tf-body-inner[data-v-d69de1b5]>.think,.tf-body-inner[data-v-d69de1b5]>.tool-group,.tf-body-inner[data-v-d69de1b5]>.activity-run,.tf-body-inner[data-v-d69de1b5]>.agent-card,.tf-body-inner[data-v-d69de1b5]>.agent-group,.tf-body-inner[data-v-d69de1b5]>.tool-line,.tf-body-inner[data-v-d69de1b5]>.swarm-card,.tf-body-inner[data-v-d69de1b5]>.media-tool,.tf-body-inner[data-v-d69de1b5]>.ask-receipt{margin-top:var(--chat-block-gap)}.turn-fold.streaming .tf-body-inner>.msg[data-v-d69de1b5]:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.think:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.tool-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.activity-run:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.agent-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.agent-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.tool-line:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.swarm-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.media-tool:first-child,.turn-fold.streaming .tf-body-inner[data-v-d69de1b5]>.ask-receipt:first-child{margin-top:0}.tf-body-inner .msg[data-v-d69de1b5]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:var(--weight-medium)}.tf-body-inner .msg[data-v-d69de1b5] p{margin:0}.tf-body-inner .msg[data-v-d69de1b5] p+p{margin-top:var(--space-2)}@container (min-width: 760px){.tf-body-inner .msg[data-v-d69de1b5] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.tf-body-inner .msg[data-v-d69de1b5] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.tf-body-inner .msg[data-v-d69de1b5] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.turn-files[data-v-c82a66d2]{margin-top:var(--chat-block-gap)}.turn-files[data-v-c82a66d2] .ui-card__head{font-family:var(--font-ui);font-weight:var(--weight-regular);padding:var(--space-2) var(--space-3)}.turn-files[data-v-c82a66d2] .ui-card__body{padding:var(--space-1) var(--space-3)}.turn-files[data-v-c82a66d2] .ui-card__foot{padding:0;justify-content:stretch}.tf-ic[data-v-c82a66d2]{display:inline-flex;align-items:center;color:var(--color-text-faint);flex:none}.tf-title[data-v-c82a66d2]{font-size:var(--text-sm);color:var(--color-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-stats[data-v-c82a66d2]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.tf-add[data-v-c82a66d2],.tf-del[data-v-c82a66d2]{font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tf-add[data-v-c82a66d2]{color:var(--color-success)}.tf-del[data-v-c82a66d2]{color:var(--color-danger)}.tf-list[data-v-c82a66d2]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.tf-row[data-v-c82a66d2]{display:flex;align-items:center;gap:var(--space-1);min-width:0;padding:var(--space-1) 0;font-size:var(--text-sm);line-height:var(--leading-tight)}.tf-file[data-v-c82a66d2]{display:flex;align-items:baseline;border:none;border-radius:var(--radius-xs);background:transparent;padding:0;font-family:inherit;font-size:inherit;color:var(--color-text);flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-align:left}button.tf-file[data-v-c82a66d2]{cursor:pointer}button.tf-file[data-v-c82a66d2]:hover{text-decoration:underline;text-decoration-color:var(--color-text-faint);text-underline-offset:3px}.tf-file[data-v-c82a66d2]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tf-dir[data-v-c82a66d2]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tf-base[data-v-c82a66d2]{flex:none;font-weight:var(--weight-medium);color:var(--color-text)}.tf-more[data-v-c82a66d2]{width:100%;justify-content:flex-start;border-radius:0}.turn-files .tf-more[data-v-c82a66d2]:not(:disabled):active{transform:none}.tf-more-car[data-v-c82a66d2]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.tf-more-car.open[data-v-c82a66d2]{transform:rotate(180deg)}.diffbar[data-v-c82a66d2]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;flex:none}.seg-add[data-v-c82a66d2]{background:var(--color-success)}.seg-del[data-v-c82a66d2]{background:var(--color-danger)}.cn[data-v-bbd9b071]{margin:0;align-self:flex-end;max-width:78%;display:flex;flex-direction:column;align-items:flex-end}.cn-head[data-v-bbd9b071]{align-self:flex-end;display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.cn-head-ico[data-v-bbd9b071]{flex:none}.cn-head.error .cn-head-ico[data-v-bbd9b071]{color:var(--color-danger)}.cn-bubble[data-v-bbd9b071]{box-sizing:border-box;max-width:100%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.cn-meta[data-v-bbd9b071]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}.pswp{--pswp-root-z-index: var(--z-modal);--pswp-bg: var(--color-scrim-strong)}.media-preview-caption{position:absolute;left:0;right:0;bottom:var(--space-4);padding:0 var(--space-6);color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.media-lightbox[data-v-14fb6a4a]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:var(--color-scrim-strong)}.media-lightbox-card[data-v-14fb6a4a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);max-width:min(960px,calc(100vw - var(--space-6) * 2));max-height:calc(var(--app-height, 100vh) - var(--space-6) * 2)}.media-lightbox-frame[data-v-14fb6a4a]{max-width:100%;border-radius:var(--radius-md);overflow:hidden;background:var(--color-bg);box-shadow:var(--shadow-xl)}.media-lightbox-media[data-v-14fb6a4a]{display:block;max-width:100%;max-height:calc(var(--app-height, 100vh) - var(--space-6) * 4);object-fit:contain}.media-lightbox-name[data-v-14fb6a4a]{max-width:100%;color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox-close[data-v-14fb6a4a]{position:fixed;top:var(--space-4);right:var(--space-6);display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text);box-shadow:var(--shadow-sm);cursor:pointer;z-index:var(--z-modal-dropdown)}.media-lightbox-close[data-v-14fb6a4a]:before{content:"";position:absolute;inset:-6px}.media-lightbox-close[data-v-14fb6a4a]:hover{border-color:var(--color-line-strong);background:var(--color-surface-sunken)}.working-indicator[data-v-cd612157]{display:inline-flex;align-items:center;gap:var(--space-2);align-self:flex-start;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.wi-mascot[data-v-cd612157]{flex:none;width:40px}.wi-label[data-v-cd612157]{animation:wi-breathe-cd612157 1.6s var(--ease-in-out) infinite}@keyframes wi-breathe-cd612157{0%,to{opacity:1}50%{opacity:.45}}.sab[data-v-73604c69]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);min-width:0;max-width:calc(100vw - 2 * var(--p-mention-tip-vmargin));max-height:calc(100vh - 2 * var(--p-mention-tip-vmargin));overflow-y:auto}.sab[data-v-73604c69] .ui-menu-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sab-comment[data-v-73604c69]{display:flex;align-items:center;gap:var(--space-2);width:100%;max-width:var(--p-selection-bubble-w);padding:var(--space-1)}.chat-empty[data-v-999e1e60]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;color:var(--faint);text-align:center}.chat-empty-text[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat-loading[data-v-999e1e60]{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:24px 16px;color:var(--muted)}.chat-loading-text[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat[data-v-999e1e60]{--chat-turn-gap: 16px;--chat-block-gap: 10px;--chat-section-gap: 18px;display:flex;flex-direction:column;gap:0;padding:16px 14px 20px;flex:1;min-height:0;position:relative}.chat .chat-empty[data-v-999e1e60]{align-self:stretch}.chat>.u-turn[data-v-999e1e60],.chat>.a-msg[data-v-999e1e60],.chat>.compact-divider[data-v-999e1e60],.chat>.cron-notice[data-v-999e1e60],.chat>.sending-placeholder[data-v-999e1e60],.chat[data-v-999e1e60]>.activity-notice{margin-top:var(--chat-turn-gap)}.chat>.a-msg[data-v-999e1e60]{margin-top:10px}.chat>.u-turn[data-v-999e1e60]:first-child,.chat>.a-msg[data-v-999e1e60]:first-child,.chat>.compact-divider[data-v-999e1e60]:first-child,.chat>.cron-notice[data-v-999e1e60]:first-child,.chat>.sending-placeholder[data-v-999e1e60]:first-child,.chat[data-v-999e1e60]>.activity-notice:first-child{margin-top:0}.u-turn[data-v-999e1e60]{display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;width:100%}.u-bub[data-v-999e1e60]{align-self:flex-end;max-width:78%;background:var(--color-user-bubble-bg);color:var(--color-text);border-radius:var(--radius-lg);padding:10px 12px;font-size:var(--content-font-size);line-height:var(--leading-normal)}.u-meta[data-v-999e1e60]{align-self:flex-end;display:flex;justify-content:flex-end;align-items:center;max-width:78%;margin-top:var(--space-2);margin-right:4px}.u-meta .u-edit[data-v-999e1e60]{min-height:22px;box-sizing:border-box}.u-text[data-v-999e1e60]{white-space:pre-wrap;overflow-wrap:anywhere}.u-text-wrap[data-v-999e1e60]{position:relative;display:flex;flex-direction:column}.u-text-wrap-args[data-v-999e1e60]{margin-top:var(--space-1)}.u-text-wrap.is-clamped[data-v-999e1e60]{min-width:120px}.u-text-wrap.is-clamped>.u-text[data-v-999e1e60],.u-text-wrap.is-clamped>.skill-act-args[data-v-999e1e60]{max-height:10lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh))}.u-text-wrap.is-clamped>.q-body[data-v-999e1e60]{max-height:3lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh))}.u-text-toggle[data-v-999e1e60]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-2);padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.u-text-toggle[data-v-999e1e60]:hover{box-shadow:var(--shadow-md)}.u-text-toggle[data-v-999e1e60]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.u-text-wrap.is-clamped .u-text-toggle[data-v-999e1e60]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.u-text-toggle-car[data-v-999e1e60]{transition:transform var(--duration-base) var(--ease-out)}.u-text-toggle[aria-expanded=true] .u-text-toggle-car[data-v-999e1e60]{transform:rotate(180deg)}.u-edit[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s}.u-edit svg[data-v-999e1e60]{display:block;flex:none}.u-edit[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-armed[data-v-999e1e60]{--undo-hint-duration: 5s;gap:var(--space-1);opacity:1;color:var(--color-text);animation:u-edit-armed-blink-999e1e60 var(--undo-hint-duration) linear forwards}.u-edit-armed[data-v-999e1e60]:hover{color:var(--color-accent);background:var(--hover)}.u-edit-hint[data-v-999e1e60]{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap}@keyframes u-edit-armed-blink-999e1e60{0%,55%{opacity:1}62%{opacity:.45}69%{opacity:1}75%{opacity:.4}81%{opacity:.95}86%{opacity:.35}91%{opacity:.85}95%{opacity:.3}to{opacity:0}}@media(prefers-reduced-motion:reduce){.u-edit-armed[data-v-999e1e60]{animation:none}}.u-copy[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.u-copy svg[data-v-999e1e60]{display:block;flex:none}.u-copy[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-wrap[data-v-999e1e60]{display:flex;justify-content:flex-end}.chat>.u-edit-wrap[data-v-999e1e60]{margin-top:4px}.chat>.u-edit-wrap+.a-msg[data-v-999e1e60]{margin-top:8px}.compact-divider[data-v-999e1e60]{display:flex;align-items:center;gap:10px;align-self:stretch;width:100%;margin:var(--chat-section-gap) 0 0}.chat>.compact-divider[data-v-999e1e60]:first-child{margin-top:0}.cd-line[data-v-999e1e60]{flex:1;height:1px;background:var(--line)}.cd-label[data-v-999e1e60]{flex:none;display:inline-flex;align-items:center;gap:8px;max-width:80%;font-size:var(--text-base);color:var(--muted);white-space:nowrap}.cd-btn[data-v-999e1e60]{background:none;border:none;padding:0;cursor:pointer;font:inherit;font-size:var(--text-base);color:var(--muted)}.cd-view[data-v-999e1e60]{color:var(--color-accent)}.cd-btn:hover .cd-view[data-v-999e1e60]{text-decoration:underline}.chat>.turn-failed[data-v-999e1e60]{margin-top:var(--chat-turn-gap)}.chat>.turn-failed[data-v-999e1e60]:first-child{margin-top:0}.turn-failed[data-v-999e1e60]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:var(--p-hairline) solid var(--color-danger-bd);border-radius:var(--radius-lg);background:var(--color-danger-soft);box-shadow:var(--shadow-xs);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tf-chip[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);flex:none;color:var(--color-danger)}.tf-main[data-v-999e1e60]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tf-title[data-v-999e1e60]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);line-height:var(--leading-normal)}.tf-sub[data-v-999e1e60]{font-size:var(--text-xs);color:var(--color-text-muted);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-meta[data-v-999e1e60]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal-prov[data-v-999e1e60]{display:flex;align-items:center;gap:var(--space-1);margin-bottom:var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-normal);user-select:none}.a-msg[data-v-999e1e60]{align-self:flex-start;max-width:94%;width:94%}.a-msg-ft[data-v-999e1e60]{display:flex;justify-content:flex-start;align-items:center;gap:8px;height:auto;margin-top:var(--chat-block-gap);overflow:visible}.a-time[data-v-999e1e60]{display:inline-flex;align-items:center;font-size:var(--text-base);color:var(--muted);line-height:1}.a-cpbtn[data-v-999e1e60]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.a-cpbtn[data-v-999e1e60]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.a-cpbtn svg[data-v-999e1e60]{display:block;flex:none}@media(hover:none){.a-msg-ft[data-v-999e1e60]{height:auto;margin-top:var(--chat-block-gap);opacity:1;pointer-events:auto}.a-cpbtn[data-v-999e1e60]{font-size:var(--ui-font-size-sm);padding:8px 10px;margin:-4px -6px}}.a-msg .msg[data-v-999e1e60]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:500}.a-msg .msg[data-v-999e1e60] p{margin:0}.a-msg .msg[data-v-999e1e60] p+p{margin-top:8px}.a-msg>.msg[data-v-999e1e60],.a-msg[data-v-999e1e60]>.think,.a-msg[data-v-999e1e60]>.tool-group,.a-msg[data-v-999e1e60]>.activity-run,.a-msg[data-v-999e1e60]>.agent-card,.a-msg[data-v-999e1e60]>.agent-group,.a-msg[data-v-999e1e60]>.tool-line,.a-msg[data-v-999e1e60]>.swarm-card,.a-msg[data-v-999e1e60]>.media-tool,.a-msg[data-v-999e1e60]>.ask-receipt{margin-top:var(--chat-block-gap)}.a-msg>.msg[data-v-999e1e60]:first-child,.a-msg[data-v-999e1e60]>.think:first-child,.a-msg[data-v-999e1e60]>.tool-group:first-child,.a-msg[data-v-999e1e60]>.activity-run:first-child,.a-msg[data-v-999e1e60]>.agent-card:first-child,.a-msg[data-v-999e1e60]>.agent-group:first-child,.a-msg[data-v-999e1e60]>.tool-line:first-child,.a-msg[data-v-999e1e60]>.swarm-card:first-child,.a-msg[data-v-999e1e60]>.media-tool:first-child,.a-msg[data-v-999e1e60]>.ask-receipt:first-child{margin-top:0}.a-msg>.goal-prov:first-child+.msg[data-v-999e1e60],.a-msg>.goal-prov[data-v-999e1e60]:first-child+.think,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.tool-group,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.activity-run,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.agent-card,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.agent-group,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.tool-line,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.swarm-card,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.media-tool,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.ask-receipt,.a-msg>.goal-prov[data-v-999e1e60]:first-child+.turn-fold{margin-top:0}.a-msg[data-v-999e1e60] :not(pre)>code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:1px 6px;color:var(--color-accent-hover)}@container (min-width: 760px){.a-msg .msg[data-v-999e1e60] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.a-msg .msg[data-v-999e1e60] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.a-msg .msg[data-v-999e1e60] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.u-atts[data-v-999e1e60]{display:flex;flex-wrap:wrap;gap:var(--space-1-5);margin-bottom:var(--space-2)}.u-atts button.attachment-pill[data-v-999e1e60]{appearance:none;border:none;background:none;padding-block:0;font-family:inherit;font-size:inherit}.sending-placeholder[data-v-999e1e60]{align-self:flex-start;padding:10px 0}.skill-act[data-v-999e1e60]{display:flex;flex-direction:column;gap:2px}.skill-act-head[data-v-999e1e60]{font-size:var(--ui-font-size-sm);font-weight:500;color:var(--color-accent-hover);display:flex;align-items:center;gap:6px}.skill-act-arrow[data-v-999e1e60]{color:var(--color-accent);font-size:var(--text-base)}.skill-act-args[data-v-999e1e60]{font-size:var(--text-base);color:var(--muted);padding-left:17px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.chat[data-v-999e1e60]{box-sizing:border-box;width:100%;padding:14px max(12px,var(--safe-right)) 18px max(12px,var(--safe-left))}.u-bub[data-v-999e1e60]{max-width:min(88%,calc(100vw - 52px))}.a-msg[data-v-999e1e60]{width:100%;max-width:100%}.a-msg[data-v-999e1e60] .md,.a-msg[data-v-999e1e60] .markdown-renderer,.a-msg[data-v-999e1e60] .code-block-container,.a-msg[data-v-999e1e60] .diff-wrap,.a-msg[data-v-999e1e60] pre{max-width:100%}.a-msg[data-v-999e1e60] .code-block-container pre,.a-msg[data-v-999e1e60] .diff-pre{overflow-x:auto;-webkit-overflow-scrolling:touch}.a-msg[data-v-999e1e60] .media-tool.mob{width:min(44vw,160px)}.cd-label[data-v-999e1e60]{min-width:0;max-width:calc(100% - 48px);overflow:hidden;text-overflow:ellipsis}.u-edit-confirm[data-v-999e1e60]{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 28px)}.ts[data-v-999e1e60]{font-size:var(--ui-font-size-sm)}.chat-empty-text[data-v-999e1e60],.chat-loading-text[data-v-999e1e60]{font-size:var(--ui-font-size-lg)}.cd-label[data-v-999e1e60],.cd-btn[data-v-999e1e60]{font-size:var(--ui-font-size)}}.top-sentinel[data-v-999e1e60]{display:flex;align-items:center;justify-content:center;padding:12px 0;min-height:28px;user-select:none}.top-sentinel-loading[data-v-999e1e60]{opacity:.8}.top-sentinel-btn[data-v-999e1e60]{appearance:none;border:.5px solid var(--border);background:transparent;color:var(--muted);font-size:var(--ui-font-size-sm);padding:4px 12px;border-radius:999px;cursor:pointer;transition:color .15s ease,border-color .15s ease}.top-sentinel-btn[data-v-999e1e60]:hover{color:var(--fg);border-color:var(--fg)}.top-sentinel-text[data-v-999e1e60]{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--ui-font-size-sm)}.chat[data-v-999e1e60]{background:transparent}.chat[data-v-999e1e60]{gap:0;padding:22px 20px 26px}.u-bub[data-v-999e1e60]{background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);padding:10px 12px}.a-msg[data-v-999e1e60]{max-width:100%;width:100%}.chat>.q-stack[data-v-999e1e60]{margin-top:var(--chat-turn-gap)}.chat>.q-stack[data-v-999e1e60]:first-child{margin-top:0}.q-stack[data-v-999e1e60]{align-self:flex-end;width:100%;display:flex;flex-direction:column;gap:8px}.q-head[data-v-999e1e60]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 6px;color:var(--color-text-faint);font-size:var(--ui-font-size-xs)}.q-title[data-v-999e1e60]{display:inline-flex;align-items:center;gap:6px}.q-title b[data-v-999e1e60]{color:var(--color-accent-hover);font-weight:var(--weight-medium)}.q-turn[data-v-999e1e60]{position:relative;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--space-2)}.q-send[data-v-999e1e60]{flex:none;width:var(--space-6);height:var(--space-6);display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-accent);color:var(--color-text-on-accent);box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.q-send[data-v-999e1e60]:hover{background:var(--color-accent-hover)}.q-send[data-v-999e1e60]:active{transform:scale(.92)}.q-send[data-v-999e1e60]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.q-send svg[data-v-999e1e60]{display:block;flex:none}.q-bub[data-v-999e1e60]{display:flex;align-items:center;gap:8px;width:fit-content;background:var(--color-user-bubble-bg);padding:8px 8px 8px 6px;transition:background var(--duration-fast) var(--ease-out)}.q-bub[data-v-999e1e60]:hover{background:var(--hover)}.q-grip[data-v-999e1e60]{flex:none;display:inline-flex;align-items:center;padding:2px;color:var(--color-text-faint);cursor:grab;opacity:.7}.q-grip[data-v-999e1e60]:hover{opacity:1}.q-grip[data-v-999e1e60]:active{cursor:grabbing}.q-clamp[data-v-999e1e60]{flex:1;min-width:0}.q-body[data-v-999e1e60]{flex:1;min-width:0;background:none;border:none;padding:0;margin:0;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;opacity:.82}.q-bub:hover .q-body[data-v-999e1e60]{opacity:1}.q-body[data-v-999e1e60]:disabled{cursor:default}.q-text[data-v-999e1e60]{white-space:pre-wrap;overflow-wrap:anywhere}.q-text-placeholder[data-v-999e1e60]{display:inline-flex;align-items:center;gap:4px;color:var(--color-text-muted)}.q-imgs[data-v-999e1e60]{display:flex;gap:4px;flex:none}.q-img[data-v-999e1e60]{width:28px;height:28px;object-fit:cover;border-radius:var(--radius-sm);border:.5px solid var(--color-line)}.q-file[data-v-999e1e60]{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px;border-radius:var(--radius-sm);border:.5px solid var(--color-line);color:var(--color-text-muted);font-size:calc(var(--ui-font-size) - 3px);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-rm[data-v-999e1e60]{flex:none;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease,color .12s ease}.q-bub:hover .q-rm[data-v-999e1e60],.q-bub:focus-within .q-rm[data-v-999e1e60],.q-rm[data-v-999e1e60]:focus-visible{opacity:1}.q-rm[data-v-999e1e60]:hover{background:var(--color-danger-soft);color:var(--color-danger)}.q-edit[data-v-999e1e60]{display:none;flex:none;width:22px;height:22px;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer}.q-edit[data-v-999e1e60]:hover{background:var(--color-hover);color:var(--color-text)}@media(hover:none){.q-grip[data-v-999e1e60]{display:none}.q-edit[data-v-999e1e60]{display:inline-flex}.q-rm[data-v-999e1e60],.q-edit[data-v-999e1e60]{opacity:1;position:relative}.q-rm[data-v-999e1e60]:before,.q-edit[data-v-999e1e60]:before{content:"";position:absolute;inset:-11px}}.q-turn.q-dragging .q-bub[data-v-999e1e60]{opacity:.45}.q-turn.drop-before[data-v-999e1e60]:before,.q-turn.drop-after[data-v-999e1e60]:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--color-accent);border-radius:var(--radius-full);z-index:1}.q-turn.drop-before[data-v-999e1e60]:before{top:-5px}.q-turn.drop-after[data-v-999e1e60]:after{bottom:-5px}.agent-panel[data-v-1441b1f4]{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--color-bg)}.agent-meta[data-v-1441b1f4]{flex:none;display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-3) var(--space-2);user-select:none}.agent-meta[data-v-1441b1f4]:before,.agent-meta[data-v-1441b1f4]:after{content:"";flex:1;height:.5px;background:var(--color-line)}.agent-meta-text[data-v-1441b1f4]{font-size:var(--text-xs);line-height:1;color:var(--color-text-muted);white-space:nowrap;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.agent-prompt[data-v-1441b1f4]{flex:none;display:flex;flex-direction:column;padding:0 var(--space-3) var(--space-2)}.agent-prompt-bubble[data-v-1441b1f4]{display:flex;flex-direction:column;align-self:flex-end;max-width:78%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg)}.agent-prompt-wrap[data-v-1441b1f4]{position:relative;display:flex;flex-direction:column}.agent-prompt-text[data-v-1441b1f4]{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--content-font-size);line-height:var(--leading-normal);color:var(--color-text)}.agent-prompt-text.is-command[data-v-1441b1f4]{font-family:var(--font-mono)}.agent-prompt-wrap.is-clamped>.agent-prompt-text[data-v-1441b1f4]{max-height:6lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 2.5lh),transparent calc(100% - .5lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 2.5lh),transparent calc(100% - .5lh))}.agent-prompt-toggle[data-v-1441b1f4]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-1);padding:var(--space-1) var(--space-3);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.agent-prompt-toggle[data-v-1441b1f4]:hover{box-shadow:var(--shadow-md)}.agent-prompt-toggle[data-v-1441b1f4]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.agent-prompt-wrap.is-clamped .agent-prompt-toggle[data-v-1441b1f4]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.agent-prompt-toggle-car[data-v-1441b1f4]{transition:transform var(--duration-base) var(--ease-out)}.agent-prompt-toggle-car.open[data-v-1441b1f4]{transform:rotate(180deg)}.agent-transcript[data-v-1441b1f4]{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--pfc-host-h, 0px)}.agent-transcript-inner[data-v-1441b1f4]{display:flex;flex-direction:column;min-height:100%;width:100%;max-width:var(--p-content-max);margin-inline:auto}.agent-transcript[data-v-1441b1f4] .think-body,.agent-transcript[data-v-1441b1f4] .ar-body,.agent-transcript[data-v-1441b1f4] .tf-body,.agent-transcript[data-v-1441b1f4] .bb,.agent-transcript[data-v-1441b1f4] .tl-body{transition:none}.agent-error[data-v-1441b1f4]{color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui)}.agent-jump-btn[data-v-1441b1f4]{position:absolute;left:50%;bottom:var(--space-3);transform:translate(-50%);z-index:var(--z-sticky);display:inline-flex;align-items:center;gap:6px;padding:6px var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);line-height:1.5;white-space:nowrap;cursor:pointer;user-select:none}.agent-jump-car[data-v-1441b1f4]{width:12px;height:12px}.agent-jump-btn[data-v-1441b1f4]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.agent-jump-enter-active[data-v-1441b1f4],.agent-jump-leave-active[data-v-1441b1f4]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.agent-jump-enter-from[data-v-1441b1f4],.agent-jump-leave-to[data-v-1441b1f4]{opacity:0;transform:translate(-50%) translateY(8px)}.agent-fallback[data-v-1441b1f4]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}.agent-fallback.prose[data-v-1441b1f4] .op{font-family:var(--font-ui)}.conversation-toc[data-v-9c0a5438]{position:absolute;z-index:var(--z-sticky);top:50%;transform:translateY(-50%);--toc-content-max: min( var(--p-content-max), calc(100cqi - var(--space-5) - var(--space-5)) );left:calc(50% + (var(--toc-content-max) / 2) + 14px);max-height:calc(100% - 160px);display:flex;flex-direction:column;justify-content:center;opacity:.5;transition:opacity var(--duration-base) var(--ease-out)}.conversation-toc[data-v-9c0a5438]:before{content:"";position:absolute;inset:0 -48px 0 -14px;z-index:0}.conversation-toc[data-v-9c0a5438]:hover,.conversation-toc[data-v-9c0a5438]:focus-within{opacity:1}.conversation-toc[data-v-9c0a5438]:hover:not(:focus-within){transition-delay:var(--duration-hover-intent)}.toc-scroll[data-v-9c0a5438]{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;padding:8px 0;min-height:0;overflow-y:auto;scrollbar-width:none}.toc-scroll[data-v-9c0a5438]::-webkit-scrollbar{display:none}.toc-row[data-v-9c0a5438]{display:flex;align-items:center;gap:10px;height:18px;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);text-align:left;cursor:pointer;white-space:nowrap}.toc-row[data-v-9c0a5438]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.toc-bar[data-v-9c0a5438]{flex:none;width:3px;height:14px;border-radius:var(--radius-full);background:var(--color-accent);opacity:.3;transition:opacity var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.toc-label[data-v-9c0a5438]{display:block;max-width:0;overflow:hidden;opacity:0;text-overflow:ellipsis;transition:max-width .22s var(--ease-out),opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.conversation-toc:hover .toc-bar[data-v-9c0a5438],.conversation-toc:focus-within .toc-bar[data-v-9c0a5438]{height:18px;opacity:.5}.conversation-toc:hover .toc-label[data-v-9c0a5438],.conversation-toc:focus-within .toc-label[data-v-9c0a5438]{max-width:220px;opacity:1}.conversation-toc:hover:not(:focus-within) .toc-bar[data-v-9c0a5438]{transition-delay:0ms,var(--duration-hover-intent)}.conversation-toc:hover:not(:focus-within) .toc-label[data-v-9c0a5438]{transition-delay:var(--duration-hover-intent),var(--duration-hover-intent),0ms}.toc-row.active .toc-bar[data-v-9c0a5438]{opacity:1;height:18px}.toc-row.active .toc-label[data-v-9c0a5438]{color:var(--color-accent);font-weight:var(--weight-medium)}.toc-row:hover .toc-bar[data-v-9c0a5438]{opacity:1}.toc-row:hover .toc-label[data-v-9c0a5438]{color:var(--color-text)}.conversation-toc.toc-clipped[data-v-9c0a5438]{visibility:hidden;pointer-events:none}.changes-pane[data-v-2c83d74b]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono)}.dv-path[data-v-2c83d74b],.dv-change-count[data-v-2c83d74b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:var(--ui-font-size-xs);color:var(--muted)}.dv-change-count[data-v-2c83d74b]{flex:1;align-self:stretch;display:inline-flex;align-items:center;font-family:var(--font-ui)}.dv-path[data-v-2c83d74b]{font-family:var(--font-ui)}.ch-head[data-v-2c83d74b]{display:flex;align-items:center;gap:8px;padding:8px var(--space-3);border-bottom:.5px solid var(--line);background:var(--panel);font-size:var(--text-base);color:var(--dim);flex:none;white-space:nowrap;overflow:hidden;font-family:var(--font-ui);user-select:none}.br-heading[data-v-2c83d74b]{display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.br-icon[data-v-2c83d74b]{flex:none;color:var(--muted)}.br-label[data-v-2c83d74b]{color:var(--muted);font-size:var(--text-xs);font-weight:500}.br-name[data-v-2c83d74b]{color:var(--color-text);font-weight:500;font-size:var(--text-xs)}.sync-info[data-v-2c83d74b]{display:flex;align-items:center;gap:4px}.ahead[data-v-2c83d74b]{color:var(--color-accent);font-size:var(--text-xs)}.behind[data-v-2c83d74b]{color:var(--color-warning);font-size:var(--text-xs)}.empty-head[data-v-2c83d74b]{color:var(--muted);font-size:var(--text-base)}.ch-list[data-v-2c83d74b]{flex:1;min-height:0}.ch-list-content[data-v-2c83d74b]{min-height:100%;padding:4px 0;padding-bottom:max(4px,var(--pfc-host-h, 0px))}.ch-row[data-v-2c83d74b]{display:flex;align-items:center;gap:6px;padding:3px 8px;cursor:pointer;font-size:var(--text-xs);line-height:1.6;width:100%;background:none;border:none;text-align:left;font-family:var(--font-ui);color:inherit}.ch-row[data-v-2c83d74b]:hover{background:var(--panel2)}.ch-row[data-v-2c83d74b]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ch-tree[data-v-2c83d74b]{--tree-base-indent: 14px;--tree-indent-step: 12px;font-family:var(--font-ui)}.tree-list[data-v-2c83d74b]{list-style:none;margin:0}.tree-node[data-v-2c83d74b]{overflow:hidden;interpolate-size:allow-keywords}.tree-collapse-enter-active[data-v-2c83d74b],.tree-collapse-leave-active[data-v-2c83d74b]{transition:block-size var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out),transform var(--duration-base) var(--ease-out)}.tree-collapse-enter-from[data-v-2c83d74b],.tree-collapse-leave-to[data-v-2c83d74b]{block-size:0;opacity:0;transform:translateY(-3px)}.tree-collapse-enter-to[data-v-2c83d74b],.tree-collapse-leave-from[data-v-2c83d74b]{block-size:auto;opacity:1;transform:translateY(0)}.tree-row[data-v-2c83d74b]{position:relative;display:flex;align-items:center;gap:6px;width:100%;margin-top:1px;padding:3px 8px;background:none;border:none;text-align:left;font-family:inherit;font-size:var(--text-xs);color:inherit;cursor:pointer}.tree-row[data-v-2c83d74b]:before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--tree-base-indent) + 6px);width:calc(var(--tree-depth, 0) * var(--tree-indent-step));background:repeating-linear-gradient(to right,var(--color-line) 0 1px,transparent 1px var(--tree-indent-step));pointer-events:none}.tree-row[data-v-2c83d74b]:hover{background:var(--panel2)}.tree-row[data-v-2c83d74b]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.tree-folder[data-v-2c83d74b]{color:var(--color-text);font-weight:500}.tree-file[data-v-2c83d74b]{color:var(--color-text);font-weight:450}.tree-icon[data-v-2c83d74b]{flex:none;color:var(--muted)}.tree-name[data-v-2c83d74b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-2c83d74b]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:var(--radius-xs);font-size:max(9px,calc(var(--ui-font-size) - 4px));font-weight:500;flex:none;user-select:none}.badge.modified[data-v-2c83d74b]{background:var(--color-warning-soft);color:var(--color-warning)}.badge.added[data-v-2c83d74b]{background:var(--color-success-soft);color:var(--color-success)}.badge.deleted[data-v-2c83d74b]{background:var(--color-danger-soft);color:var(--color-danger)}.badge.renamed[data-v-2c83d74b]{background:var(--color-done-soft);color:var(--color-done)}.badge.untracked[data-v-2c83d74b]{background:var(--color-success-soft);color:var(--color-success)}.badge.conflicted[data-v-2c83d74b]{background:color-mix(in srgb,var(--color-danger) 10%,var(--bg));color:var(--color-danger);font-size:max(9px,calc(var(--ui-font-size) - 5px))}.badge.ignored[data-v-2c83d74b]{background:var(--color-well);color:var(--faint)}.badge.clean[data-v-2c83d74b]{background:transparent;color:var(--faint)}.badge.unknown[data-v-2c83d74b]{background:var(--color-well);color:var(--muted)}.fpath[data-v-2c83d74b]{color:var(--color-text);font-size:var(--text-xs);font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left;min-width:0}.fpath[data-v-2c83d74b]:before,.fpath[data-v-2c83d74b]:after{content:"‎"}.empty-state[data-v-2c83d74b]{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:32px 20px;color:var(--muted);font-size:var(--ui-font-size);text-align:center;user-select:none}.empty-state-icon[data-v-2c83d74b]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--color-well);color:var(--color-text-muted)}.diff-head[data-v-2c83d74b]{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:.5px solid var(--line);background:var(--panel);flex:none;white-space:nowrap;overflow:hidden}.dv-lines-wrap[data-v-2c83d74b]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.diff-content-enter-active[data-v-2c83d74b],.diff-content-leave-active[data-v-2c83d74b]{transition:opacity var(--duration-base) var(--ease-out)}.diff-content-enter-from[data-v-2c83d74b],.diff-content-leave-to[data-v-2c83d74b]{opacity:0}@media(max-width:640px){.ch-head[data-v-2c83d74b]{padding:10px 14px}.ch-list[data-v-2c83d74b]{padding:2px 0 12px}.ch-row[data-v-2c83d74b]{min-height:44px;padding:8px 14px;gap:12px;font-size:var(--text-xs)}.ch-row[data-v-2c83d74b]:active{background:var(--panel2)}.badge[data-v-2c83d74b]{width:18px;height:18px}.fpath[data-v-2c83d74b]{font-size:var(--text-xs)}.tree-row[data-v-2c83d74b]{min-height:40px;padding:8px 14px}.diff-head[data-v-2c83d74b]{padding:8px 12px;gap:10px}.diff-path[data-v-2c83d74b]{font-size:var(--text-base)}}.changes-pane .empty-state[data-v-2c83d74b],.br-label[data-v-2c83d74b],.empty-head[data-v-2c83d74b]{font-family:var(--sans)}.ch-row[data-v-2c83d74b],.ct-row[data-v-2c83d74b]{margin:1px 6px;width:calc(100% - 12px);border-radius:var(--radius-md)}.changes-pane .badge[data-v-2c83d74b],.changed-tree .badge[data-v-2c83d74b]{border-radius:var(--radius-sm)}.change-count[data-v-2c83d74b]{font-family:var(--sans);border-radius:999px}.qcard[data-v-645038cd]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.qcard>.qh[data-v-645038cd],.qcard>.qfoot[data-v-645038cd]{flex:none}.qcard.minimized[data-v-645038cd]{transition:background var(--duration-fast) var(--ease-out)}.qcard.minimized[data-v-645038cd]:hover{background:var(--color-hover)}.qh[data-v-645038cd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0}.qcard.minimized .qh[data-v-645038cd]{padding-bottom:var(--space-3);align-items:center}.qcard.minimized .qh.clickable[data-v-645038cd]{cursor:pointer}.qh-chip[data-v-645038cd]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qtitle[data-v-645038cd]{flex:1;min-width:0;color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);line-height:var(--leading-tight);overflow-wrap:anywhere}.qcard.minimized .qtitle[data-v-645038cd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmin[data-v-645038cd],.qclose[data-v-645038cd]{flex:none;margin-top:calc((var(--text-lg) * var(--leading-tight) - var(--icon-button-sm)) / 2)}.qmin[data-v-645038cd]{margin-left:auto}.qcard.minimized .qmin[data-v-645038cd],.qcard.minimized .qclose[data-v-645038cd]{margin-top:0}.qbody[data-v-645038cd]{min-height:min(var(--question-card-body-min-h),calc(var(--app-height, 100dvh) * .25));overflow-y:auto;padding:var(--space-3) var(--space-4) 0;color:var(--color-text);font:var(--text-base)/var(--leading-normal) var(--font-ui)}.qmdbody[data-v-645038cd]{margin-bottom:var(--space-2)}.qopts[data-v-645038cd]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-2)}.qopt[data-v-645038cd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text);transition:background var(--duration-fast) var(--ease-out);user-select:none}.qopt[data-v-645038cd]:hover,.qopt.highlighted[data-v-645038cd]{background:var(--color-hover)}.qopt-key[data-v-645038cd]{width:var(--p-chip-num);height:var(--p-chip-num);margin-top:calc((var(--text-base) * var(--leading-normal) - var(--p-chip-num)) / 2);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qopt-key[data-v-645038cd]:empty{background:transparent}.qopt-glyph[data-v-645038cd]{width:16px;height:16px;margin-top:calc((var(--text-base) * var(--leading-normal) - 16px) / 2);flex:none;border:.5px solid var(--color-line-strong);position:relative;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.qopt-glyph.rad[data-v-645038cd]{border-radius:50%}.qopt-glyph.chk[data-v-645038cd]{border-radius:var(--radius-xs)}.qopt.selected .qopt-glyph[data-v-645038cd]{border-color:var(--color-accent)}.qopt.selected .qopt-glyph.rad[data-v-645038cd]:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-645038cd]{background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-645038cd]:after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.qopt-text[data-v-645038cd]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.qopt-label[data-v-645038cd]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.qopt-desc[data-v-645038cd]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.qopt-text-other[data-v-645038cd]{flex:0 1 auto}.other-input[data-v-645038cd]{flex:1;font:var(--text-base) var(--font-ui);border:none;border-bottom:.5px solid var(--color-line);outline:none;padding:2px var(--space-1);color:var(--color-text);background:transparent;min-width:12ch}.other-input[data-v-645038cd]:focus-visible{border-bottom-color:var(--color-accent);box-shadow:0 1px 0 0 var(--color-accent)}.qfoot[data-v-645038cd]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.qbtns[data-v-645038cd]{display:flex;align-items:center;gap:var(--space-1)}.qhint[data-v-645038cd]{margin-left:auto;color:var(--color-text-faint);font:var(--text-xs) var(--font-ui);user-select:none}@media(max-width:640px){.qopt[data-v-645038cd]{min-height:44px;padding:var(--space-3)}.other-input[data-v-645038cd]{flex-basis:100%;min-height:28px}.qfoot[data-v-645038cd]{flex-direction:column;align-items:stretch}.qhint[data-v-645038cd]{display:none}.qbtns[data-v-645038cd]{flex-direction:column;gap:var(--space-2)}.qbtns[data-v-645038cd] .ui-button{width:100%;min-height:46px}}.sc[data-v-9932e21c]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--bg);position:relative}.sc-body[data-v-9932e21c]{flex:1;min-height:0;overflow-y:auto}.sc-empty[data-v-9932e21c]{padding:24px 16px;text-align:center;color:var(--muted);font-size:var(--ui-font-size)}.sc-composer[data-v-9932e21c]{position:absolute;left:0;right:0;bottom:0;z-index:var(--z-sticky);display:flex;align-items:flex-end;gap:6px;padding:8px 10px;border-top:.5px solid var(--color-line);background:var(--color-surface-raised)}.sc-input[data-v-9932e21c]{flex:1;min-width:0;resize:none;border:.5px solid var(--color-line);border-radius:var(--r-sm);padding:7px 9px;background:var(--bg);color:var(--color-text);font:var(--ui-font-size)/1.5 var(--sans);outline:none;max-height:160px}.sc-input[data-v-9932e21c]:focus{border-color:var(--color-accent-bd)}.sc-send[data-v-9932e21c]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:var(--r-sm);background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.sc-send[data-v-9932e21c]:disabled{opacity:.4;cursor:default}.sc-send[data-v-9932e21c]:not(:disabled):hover{background:var(--color-accent-hover)}.sc-loading[data-v-9932e21c]{flex:none;padding:8px 12px 12px}.sc-body[data-v-9932e21c] .sending-placeholder,.sc-body[data-v-9932e21c] .sending-line{display:none}.rows[data-v-5a4a3d46]{margin:0;padding:0}.row[data-v-5a4a3d46]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) 0;font-size:var(--text-base)}.row dt[data-v-5a4a3d46]{width:96px;flex:none;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:var(--text-xs)}.row dd[data-v-5a4a3d46]{margin:0;color:var(--color-text);font-weight:var(--weight-medium);display:flex;align-items:center;gap:var(--space-2);min-width:0}.row dd.plan-on[data-v-5a4a3d46],.row dd.swarm-on[data-v-5a4a3d46]{color:var(--color-accent)}.row dd.thinking-value[data-v-5a4a3d46]{flex-direction:column;align-items:flex-start;gap:var(--space-1)}.cache-note[data-v-5a4a3d46]{color:var(--color-text-faint);font-weight:var(--weight-regular);font-size:var(--text-xs)}.ctx-text[data-v-5a4a3d46]{flex:none}.bar[data-v-5a4a3d46]{width:80px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.bar i[data-v-5a4a3d46]{display:block;height:100%;background:var(--color-accent)}@media(max-width:640px){.rows[data-v-5a4a3d46]{overflow-y:auto;-webkit-overflow-scrolling:touch}.row[data-v-5a4a3d46]{align-items:flex-start;flex-direction:column;gap:var(--space-1);min-height:48px}.row dt[data-v-5a4a3d46]{width:auto}.row dd[data-v-5a4a3d46]{max-width:100%;flex-wrap:wrap}}.tp[data-v-5ecb9355]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--color-bg)}.tp-body[data-v-5ecb9355]{flex:1;min-height:0;overflow-y:auto;margin:0;padding:12px 14px;padding-bottom:max(12px,var(--pfc-host-h, 0px));font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word}.td[data-v-3b2ea55f]{display:flex;flex-direction:column;height:100%;min-height:0}.td-body[data-v-3b2ea55f]{flex:1;min-height:0;overflow:auto;padding-bottom:var(--pfc-host-h, 0px)}.td-empty[data-v-3b2ea55f]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);height:100%;padding:var(--space-6);color:var(--color-text-muted);font-size:var(--text-sm);text-align:center}.filter-control[data-v-9d5b56c7]{display:inline-flex;min-width:0}.fc-chevron[data-v-9d5b56c7]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.fc-trigger[aria-expanded=true] .fc-chevron[data-v-9d5b56c7]{transform:rotate(180deg)}.fc-menu[data-v-9d5b56c7]{position:fixed;z-index:var(--z-dropdown)}.fc-menu[data-v-9d5b56c7] .ui-menu{min-width:0}.fc-label[data-v-9d5b56c7]{flex:1;white-space:nowrap}.filter-control[data-v-9d5b56c7] .ui-seg__item[data-icon=circle-check] .ui-seg__icon,.fc-menu .kw-icon[data-icon=circle-check][data-v-9d5b56c7]{transform:scale(.91)}.fc-check[data-v-9d5b56c7]{color:var(--color-accent)}.goal-panel[data-v-6dea2f18]{display:flex;flex-direction:column;gap:var(--space-2);overflow-wrap:anywhere}.goal-criterion[data-v-6dea2f18]{padding-top:var(--space-2);border-top:.5px solid var(--color-line)}.goal-criterion-label[data-v-6dea2f18]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-section-label);line-height:var(--leading-normal);margin-bottom:var(--space-1)}.plan-panel[data-v-69db97fc]{display:flex;flex-direction:column;gap:var(--space-2)}.plan-review-row[data-v-69db97fc]{display:flex;gap:var(--space-2);font-size:var(--text-sm)}.plan-review-label[data-v-69db97fc]{flex:none;color:var(--color-text-muted)}.plan-review-feedback[data-v-69db97fc]{color:var(--color-text-muted)}.plan-path-only[data-v-69db97fc]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1)}.plan-path-hint[data-v-69db97fc]{color:var(--color-text-muted);font-size:var(--text-sm)}.plan-path[data-v-69db97fc]{max-width:100%;font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-empty[data-v-69db97fc]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.plan-empty-ico[data-v-69db97fc]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}.sg-empty[data-v-13735c1e]{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sg-grid[data-v-13735c1e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--p-subagent-card-min),1fr));gap:var(--space-2)}.sg-card[data-v-13735c1e]{position:relative;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected)}.sg-card.openable[data-v-13735c1e]{cursor:pointer}.sg-card.openable[data-v-13735c1e]:hover{background:var(--color-selected-hover)}.sg-card[data-v-13735c1e]:not(.openable){cursor:not-allowed}.sg-open[data-v-13735c1e]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.sg-open[data-v-13735c1e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sg-top[data-v-13735c1e]{display:flex;align-items:center;gap:var(--space-2)}.sg-name[data-v-13735c1e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.sg-num[data-v-13735c1e]{flex:none;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums}.sg-card:has(.sg-cancel) .sg-top[data-v-13735c1e]{padding-right:calc(var(--icon-button-sm) + var(--space-1))}@media(hover:none){.sg-card:has(.sg-cancel) .sg-top[data-v-13735c1e]{padding-right:calc(var(--touch-target-min) + var(--space-1))}}.sg-desc[data-v-13735c1e]{color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--leading-caption);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sg-foot[data-v-13735c1e]{display:flex;flex-direction:column;gap:var(--space-1)}.sg-model[data-v-13735c1e]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs)}.sg-model span[data-v-13735c1e]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-status[data-v-13735c1e]{display:flex;align-items:center}.sg-state[data-v-13735c1e]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);text-autospace:normal}.sg-ic-done[data-v-13735c1e]{color:var(--color-success);transform:scale(.91)}.s-fail .sg-state[data-v-13735c1e]{color:var(--color-danger)}.sg-time[data-v-13735c1e]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-autospace:normal}.sg-cancel[data-v-13735c1e]{position:absolute;top:var(--space-2);right:var(--space-2);color:var(--color-text-muted);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sg-card:hover .sg-cancel[data-v-13735c1e],.sg-cancel[data-v-13735c1e]:focus-visible{opacity:1}.sg-cancel[data-v-13735c1e]:hover{color:var(--color-danger)}@media(hover:none){.sg-cancel[data-v-13735c1e]{top:0;right:0;width:var(--touch-target-min);height:var(--touch-target-min);opacity:1}}.taskspane[data-v-25d6e0cb]{flex:1;min-height:0;display:flex;flex-direction:column}.tp-list[data-v-25d6e0cb]{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-05)}.tp-row[data-v-25d6e0cb]{padding:var(--space-1) 0}.tp-row.fail .tp-name[data-v-25d6e0cb]{color:var(--color-danger)}.tp-main[data-v-25d6e0cb]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-base)}.tp-row.expandable>.tp-main[data-v-25d6e0cb]{position:relative;border-radius:var(--radius-lg);padding:var(--space-1) var(--space-2);margin:calc(-1 * var(--space-1)) 0}.tp-row.expandable>.tp-main[data-v-25d6e0cb]:hover{background:var(--color-hover)}.tp-row[data-v-25d6e0cb]:not(.expandable){cursor:not-allowed}.tp-open[data-v-25d6e0cb]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.tp-open[data-v-25d6e0cb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tp-chevron[data-v-25d6e0cb]{flex:none;color:var(--muted)}.tp-name[data-v-25d6e0cb]{color:var(--color-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-meta[data-v-25d6e0cb]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted)}.tp-glyph[data-v-25d6e0cb]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center}.tp-done[data-v-25d6e0cb]{color:var(--color-success);transform:scale(.91)}.tp-cancelled[data-v-25d6e0cb]{color:var(--color-text-muted)}.tp-fail[data-v-25d6e0cb]{color:var(--color-danger)}.tp-time[data-v-25d6e0cb]{flex:none;font-size:var(--text-base);color:var(--muted);font-variant-numeric:tabular-nums;text-autospace:normal}.tp-model[data-v-25d6e0cb]{flex:0 1 auto;min-width:0;font-size:var(--text-base);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-stop[data-v-25d6e0cb]{position:relative;flex:none;color:var(--color-danger)}.tp-stop[data-v-25d6e0cb]:hover{color:var(--color-danger)}@media(hover:none){.tp-stop[data-v-25d6e0cb]{width:var(--touch-target-min);height:var(--touch-target-min)}.tp-row.expandable>.tp-main[data-v-25d6e0cb]{min-height:var(--touch-target-min)}}.tp-empty[data-v-25d6e0cb]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:var(--ui-font-size-sm);user-select:none}@media(max-width:640px){.tp-main[data-v-25d6e0cb]{flex-wrap:wrap;row-gap:var(--space-1)}.tp-name[data-v-25d6e0cb]{font-size:var(--ui-font-size-sm)}.tp-meta[data-v-25d6e0cb]{order:10;flex:1 1 100%;padding-left:calc(var(--p-ic-md) + var(--space-2));font-size:var(--ui-font-size-xs)}}.todo-card[data-v-1b02ea7b]{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-base)}.tc-row[data-v-1b02ea7b]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text)}.tc-name[data-v-1b02ea7b]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:var(--leading-caption)}.tc-row.s-in_progress .tc-name[data-v-1b02ea7b]{font-weight:var(--weight-medium)}.tc-row.s-pending .tc-name[data-v-1b02ea7b]{color:var(--color-text-muted)}.tc-glyph[data-v-1b02ea7b]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full)}.tc-glyph.g-done[data-v-1b02ea7b]{color:var(--color-success)}.tc-glyph.g-pending[data-v-1b02ea7b]{border:var(--p-ring-stroke) solid var(--color-line-strong)}.tc-glyph .tc-spin[data-v-1b02ea7b]{color:var(--color-text)}.tc-empty[data-v-1b02ea7b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.tc-empty-ico[data-v-1b02ea7b]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}@media(max-width:640px){.todo-card[data-v-1b02ea7b]{font-size:var(--text-lg)}.tc-row[data-v-1b02ea7b]{padding:var(--space-2) var(--space-3)}}.wp-head-tab[data-v-c935b92a]{display:inline-flex;align-items:center;gap:var(--space-2);padding:0;border:.5px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap;flex:none}.wp-head-tab[data-v-c935b92a] svg{width:1.5em;height:1.5em}.wp-head-meta[data-v-c935b92a]{color:var(--color-text-muted);text-autospace:normal}.wp-head-actions[data-v-c935b92a]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}@media(max-width:480px){.wp-head-actions[data-v-c935b92a]{flex-basis:100%;margin-left:0}}@media(hover:none){.wp-head-actions[data-v-c935b92a] .ui-seg__item{min-height:var(--touch-target-min)}}@media(max-width:640px),(hover:none){.wp-head-actions[data-v-c935b92a] .ui-seg__item{height:var(--touch-target-min)}.wp-head-actions[data-v-c935b92a] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}.wp-head-actions[data-v-c935b92a] .fc-trigger{min-height:var(--touch-target-min)}}.aw[data-v-e24668bd]{padding-top:4px}.crumbbar[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.crumbs[data-v-e24668bd]{display:flex;align-items:center;flex-wrap:wrap;gap:1px;min-width:0;font-size:var(--text-sm)}.crumb-sep[data-v-e24668bd]{color:var(--color-text-muted)}.crumb[data-v-e24668bd]{background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:1px var(--space-1);border-radius:var(--radius-xs)}.crumb[data-v-e24668bd]:hover{color:var(--color-text);background:var(--color-hover)}.crumb.last[data-v-e24668bd]{color:var(--color-text);font-weight:var(--weight-medium)}.filterbar[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.filter-icon[data-v-e24668bd]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.filter-input[data-v-e24668bd]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-base);padding:var(--space-1) 0;border:none;background:none;color:var(--color-text);outline:none}.filter-input[data-v-e24668bd]::placeholder{color:var(--color-text-muted)}.search-rel[data-v-e24668bd]{color:var(--color-text)}.folder-list[data-v-e24668bd]{height:300px;overflow-y:auto;padding:var(--space-1) var(--space-2)}.fl-loading[data-v-e24668bd],.fl-empty[data-v-e24668bd]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-muted);font-size:var(--text-sm)}.folder-row[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2);width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);color:var(--color-text);text-align:left;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);transition:background var(--duration-fast) var(--ease-out)}.folder-row[data-v-e24668bd]:hover{background:var(--color-hover)}.dir-icon[data-v-e24668bd]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.folder-name[data-v-e24668bd]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text)}.paste-section[data-v-e24668bd]{padding:var(--space-3) 22px;border-top:.5px solid var(--color-line)}.paste-section.paste-only[data-v-e24668bd]{border-top:none}.paste-row[data-v-e24668bd]{display:flex;align-items:center;gap:var(--space-2)}.paste-input-wrap[data-v-e24668bd]{flex:1;min-width:0}.add-error[data-v-e24668bd]{margin:0 22px var(--space-2);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-danger);background:var(--color-danger-soft);border:.5px solid var(--color-danger-bd);border-radius:var(--radius-sm)}.actions[data-v-e24668bd]{display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) 22px}.footer-hint[data-v-e24668bd]{padding:var(--space-2) var(--space-4);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint);border-top:.5px solid var(--color-line)}@media(max-width:640px){.folder-row[data-v-e24668bd]{min-height:44px}.crumbbar[data-v-e24668bd]{align-items:flex-start}.actions[data-v-e24668bd]{flex-wrap:wrap}}.sheet-root[data-v-91fc927c]{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;flex-direction:column;justify-content:flex-end}.sheet-scrim[data-v-91fc927c]{position:absolute;inset:0;background:#0d111773}.sheet-panel[data-v-91fc927c]{position:relative;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-bottom:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:var(--shadow-xl);max-height:calc(var(--app-height, 100dvh) * .86);display:flex;flex-direction:column;min-height:0;font-family:var(--font-ui);color:var(--color-text)}.sheet-grab[data-v-91fc927c]{flex:none;align-self:center;width:56px;height:18px;padding:0;border:none;background:none;cursor:pointer;position:relative;margin-top:4px}.sheet-grab[data-v-91fc927c]:after{content:"";position:absolute;left:50%;top:7px;transform:translate(-50%);width:38px;height:5px;border-radius:var(--radius-full);background:var(--color-line)}.sheet-head[data-v-91fc927c]{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px}.sheet-title[data-v-91fc927c]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.sheet-body[data-v-91fc927c]{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,var(--safe-bottom))}.sheet-enter-active[data-v-91fc927c],.sheet-leave-active[data-v-91fc927c]{transition:opacity var(--duration-slow) var(--ease-out)}.sheet-enter-active .sheet-panel[data-v-91fc927c],.sheet-leave-active .sheet-panel[data-v-91fc927c]{transition:transform var(--duration-slow) var(--ease-out)}.sheet-enter-from[data-v-91fc927c],.sheet-leave-to[data-v-91fc927c]{opacity:0}.sheet-enter-from .sheet-panel[data-v-91fc927c],.sheet-leave-to .sheet-panel[data-v-91fc927c]{transform:translateY(102%)}.confirm-dialog__message[data-v-32237722]{margin:0;font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.sd-search[data-v-35cdd013]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.sd-search[data-v-35cdd013] .ui-input{padding-right:30px}.search-clear[data-v-35cdd013]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-35cdd013]{visibility:visible;opacity:1}.search-clear[data-v-35cdd013]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-35cdd013]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}@media(prefers-reduced-motion:reduce){.search-clear[data-v-35cdd013]{transition:none}}.sd-body[data-v-35cdd013]{height:100%;min-height:0;display:flex;flex-direction:column;gap:var(--space-2);padding-top:4px}.sd-list[data-v-35cdd013]{flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2);--sd-gutter: var(--p-ic-md);--sd-gap: var(--space-2)}.sd-section[data-v-35cdd013]{display:flex;align-items:baseline;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.sd-section-count[data-v-35cdd013]{font-weight:var(--weight-regular)}.sd-section[data-v-35cdd013]:first-child{padding-top:var(--space-1)}.sd-section[data-v-35cdd013]:not(:first-child){margin-top:var(--space-1);border-top:var(--p-hairline) solid var(--color-line)}.sd-row[data-v-35cdd013]{display:flex;flex-direction:column;gap:2px;width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:none;cursor:pointer;text-align:left;font-family:var(--font-ui);color:var(--color-text)}.sd-row[data-v-35cdd013]:hover{background:var(--color-hover)}.sd-row.on[data-v-35cdd013]{background:var(--color-selected)}.sd-row.active .sd-title[data-v-35cdd013]{color:var(--color-accent-hover)}.sd-row-ws[data-v-35cdd013]{flex-direction:row;align-items:center;gap:var(--sd-gap)}.sd-folder[data-v-35cdd013]{flex:none;width:var(--sd-gutter);color:var(--color-text-muted)}.sd-ws-name[data-v-35cdd013]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-ws-path[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line1[data-v-35cdd013],.sd-line2[data-v-35cdd013]{padding-left:calc(var(--sd-gutter) + var(--sd-gap))}.sd-line1[data-v-35cdd013]{display:flex;align-items:baseline;gap:var(--space-2);min-width:0}.sd-title[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-time[data-v-35cdd013]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line2[data-v-35cdd013]{display:flex;align-items:center;gap:var(--space-1);min-width:0;font-size:var(--text-xs);color:var(--color-text-muted)}.sd-meta-ws[data-v-35cdd013]{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-meta-sep[data-v-35cdd013]{color:var(--color-text-faint)}.sd-meta-snippet[data-v-35cdd013]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-title[data-v-35cdd013] mark,.sd-ws-name[data-v-35cdd013] mark{background:var(--color-accent-soft);color:inherit;font-weight:var(--weight-semibold);border-radius:var(--radius-xs);padding:0 1px}.sd-line2[data-v-35cdd013] mark,.sd-ws-path[data-v-35cdd013] mark{background:var(--color-accent-soft);color:var(--color-text);font-weight:var(--weight-medium);border-radius:var(--radius-xs);padding:0 1px}.sd-empty[data-v-35cdd013]{height:100%;display:flex;align-items:center;justify-content:center}.sd-foot[data-v-35cdd013]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-hint[data-v-35cdd013]{display:inline-flex;align-items:center;gap:var(--space-1)}.sd-dot[data-v-35cdd013]{margin:0 var(--space-1)}.topbar[data-v-78cbb21c]{display:flex;align-items:center;height:calc(50px + var(--safe-top));flex:none;padding:var(--safe-top) max(12px,var(--safe-right)) 0 max(12px,var(--safe-left));border-bottom:.5px solid var(--color-line);background:var(--color-topbar-bg-frost);-webkit-backdrop-filter:var(--p-topbar-backdrop);backdrop-filter:var(--p-topbar-backdrop);font-family:var(--font-ui);-webkit-user-select:none;user-select:none}.tb-main[data-v-78cbb21c]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;margin-right:4px;padding:0 6px 0 0;background:none;border:none;border-radius:var(--radius-md);font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--duration-fast) var(--ease-out)}.tb-main[data-v-78cbb21c]:active{opacity:.55}.st[data-v-78cbb21c]{flex:none;display:inline-flex;align-items:center}.tb-line[data-v-78cbb21c]{flex:1;min-width:0;display:flex;align-items:baseline;gap:4px;font-size:max(16px,var(--ui-font-size-xl));line-height:1.25;white-space:nowrap}.tb-line .dir[data-v-78cbb21c]{flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tb-line .dir.solo[data-v-78cbb21c]{max-width:none;min-width:0;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .sl[data-v-78cbb21c]{flex:none;color:var(--color-text-faint)}.tb-line .tt[data-v-78cbb21c]{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .cv[data-v-78cbb21c]{flex:none;align-self:center;color:var(--color-text-faint)}.unread-dot[data-v-78cbb21c]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.pf-form[data-v-5ad95550]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.pf-guard[data-v-5ad95550] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.pf-guard .msg[data-v-5ad95550]{flex:1}.pf-field[data-v-5ad95550]{display:flex;flex-direction:column;gap:6px}.pf-key-wrap[data-v-5ad95550]{position:relative}.pf-key-wrap[data-v-5ad95550] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.pf-key-eye[data-v-5ad95550]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.pf-field-label[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-5ad95550]{color:var(--color-danger)}.pf-models[data-v-5ad95550]{display:flex;flex-direction:column;gap:var(--space-2)}.pf-model-grid[data-v-5ad95550]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto;gap:var(--space-2);align-items:center}.pf-model-head span[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.pf-models-empty[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.pf-foot[data-v-5ad95550]{display:flex;align-items:center;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.pf-foot .spacer[data-v-5ad95550]{flex:1}.pf-confirm-msg[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-danger)}.pf-managed-note[data-v-5ad95550]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}@media(max-width:640px){.pf-model-grid[data-v-5ad95550]{grid-template-columns:minmax(0,1fr) auto}}.af[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.af-guard[data-v-96ec6ac0] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.af-guard .msg[data-v-96ec6ac0]{flex:1}.af-catalog[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-3)}.af-center[data-v-96ec6ac0]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.af-error[data-v-96ec6ac0]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}.af-list[data-v-96ec6ac0]{display:flex;flex-direction:column;max-height:320px;overflow-y:auto;border:.5px solid var(--color-line);border-radius:var(--radius-md)}.af-list[data-v-96ec6ac0]>*+*{border-top:.5px solid var(--color-line)}.af-entry[data-v-96ec6ac0]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:var(--space-1) var(--space-3);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.af-entry[data-v-96ec6ac0]:hover:not(:disabled){background:var(--color-hover)}.af-entry[data-v-96ec6ac0]:disabled{cursor:not-allowed;opacity:.55}.af-entry-name[data-v-96ec6ac0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-medium)}.af-entry .grow[data-v-96ec6ac0]{flex:1;min-width:0}.af-entry-count[data-v-96ec6ac0],.af-entry-reason[data-v-96ec6ac0]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.af-empty[data-v-96ec6ac0]{padding:var(--space-4);text-align:center;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm)}.af-import[data-v-96ec6ac0],.af-registry[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:var(--space-4)}.af-hint[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-back[data-v-96ec6ac0]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:flex-start;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);cursor:pointer;transition:color var(--duration-fast) var(--ease-out)}.af-back[data-v-96ec6ac0]:hover{color:var(--color-text)}.af-field[data-v-96ec6ac0]{display:flex;flex-direction:column;gap:6px}.af-label[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-96ec6ac0]{color:var(--color-danger)}.af-key-wrap[data-v-96ec6ac0]{position:relative}.af-key-wrap[data-v-96ec6ac0] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.af-key-eye[data-v-96ec6ac0]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.af-note[data-v-96ec6ac0]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-foot[data-v-96ec6ac0]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.af-manual[data-v-96ec6ac0] .pf-form{padding:0;border-top:none}.mp[data-v-49f293b0]{display:flex;flex-direction:column;gap:var(--space-2);height:100%;min-height:0;padding-top:4px}.mp--sheet[data-v-49f293b0]{height:auto;padding-top:0}.mp--sheet .search-wrap[data-v-49f293b0],.mp--sheet .chip-strip[data-v-49f293b0]{margin:0 16px}.search-wrap[data-v-49f293b0]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.search-wrap[data-v-49f293b0] .ui-input{padding-right:30px}.search-clear[data-v-49f293b0]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-49f293b0]{visibility:visible;opacity:1}.search-clear[data-v-49f293b0]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-49f293b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chip-strip[data-v-49f293b0]{display:flex;gap:var(--space-1);margin:0 22px;overflow-x:auto;scrollbar-width:none}.chip-strip[data-v-49f293b0]::-webkit-scrollbar{display:none}.chip[data-v-49f293b0]{flex:none;height:28px;padding:0 var(--space-3);border:none;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base);white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.chip[data-v-49f293b0]:hover{background:var(--color-hover);color:var(--color-text)}.chip.is-active[data-v-49f293b0]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.chip[data-v-49f293b0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-list[data-v-49f293b0]{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2)}.model-row[data-v-49f293b0]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;color:var(--color-text);min-width:0;transition:background var(--duration-fast) var(--ease-out)}.model-row[data-v-49f293b0]:hover,.model-row.is-selected[data-v-49f293b0]{background:var(--color-hover)}.model-row.is-current[data-v-49f293b0]{background:var(--color-selected)}.model-main[data-v-49f293b0]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-name[data-v-49f293b0]{font-family:var(--font-ui);font-size:var(--text-base);line-height:20px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row.is-current .model-name[data-v-49f293b0]{font-weight:var(--weight-medium)}.model-meta[data-v-49f293b0]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:18px;color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-side[data-v-49f293b0]{display:flex;align-items:center;gap:var(--space-1);flex:none}.model-check[data-v-49f293b0]{color:var(--color-text)}.model-star[data-v-49f293b0]{color:var(--color-text-faint);visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast)}.model-row:hover .model-star[data-v-49f293b0],.model-row.is-selected .model-star[data-v-49f293b0],.model-star.is-starred[data-v-49f293b0],.model-star[data-v-49f293b0]:focus-visible{visibility:visible;opacity:1}.model-star.is-starred[data-v-49f293b0]{color:var(--star)}@media(hover:none){.model-star[data-v-49f293b0]{visibility:visible;opacity:1}}.state-row[data-v-49f293b0]{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.state-row.unavail[data-v-49f293b0]{color:var(--color-warning)}.empty[data-v-49f293b0]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.footer-hint[data-v-49f293b0]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.hint-dot[data-v-49f293b0]{margin:0 var(--space-1)}@media(hover:none){.footer-hint[data-v-49f293b0]{display:none}}@media(prefers-reduced-motion:reduce){.chip[data-v-49f293b0],.model-row[data-v-49f293b0],.model-star[data-v-49f293b0],.search-clear[data-v-49f293b0]{transition:none}}.sec[data-v-3cd02b1c]{margin-bottom:var(--space-5)}.sec-title[data-v-3cd02b1c]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-3cd02b1c]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-3cd02b1c]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4)}.pu-main[data-v-3cd02b1c]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-3cd02b1c]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-3cd02b1c]{font-size:var(--text-xs);color:var(--color-text-faint)}.pp[data-v-f7054f75]{display:flex;flex-direction:column}.pp-head[data-v-f7054f75]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.pp-title[data-v-f7054f75]{margin:0;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.pp-loading[data-v-f7054f75]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.pp-group[data-v-f7054f75]{overflow:hidden;border:.5px solid var(--color-line);border-radius:var(--radius-xl);background:var(--color-surface-raised)}.pp-group[data-v-f7054f75]>*+*{border-top:.5px solid var(--color-line)}.pp-row[data-v-f7054f75]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:40px;padding:var(--space-2) var(--space-4);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.pp-row[data-v-f7054f75]:hover{background:var(--color-hover)}.pp-item.open>.pp-row[data-v-f7054f75]{background:var(--color-surface-sunken)}.pp-row .grow[data-v-f7054f75]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-2)}.pp-id[data-v-f7054f75]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-count[data-v-f7054f75]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.pp-chev[data-v-f7054f75]{display:inline-flex;flex:none;color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.pp-item.open .pp-chev[data-v-f7054f75]{transform:rotate(90deg)}.pp-add-row[data-v-f7054f75]{gap:var(--space-2);color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.pp-acc[data-v-f7054f75]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.pp-item.open>.pp-acc[data-v-f7054f75]{grid-template-rows:1fr}.pp-acc-in[data-v-f7054f75]{overflow:hidden;min-height:0}.pp-item.open .pp-acc-in[data-v-f7054f75]{overflow:visible}.pp-item.flash>.pp-row[data-v-f7054f75]{animation:pp-flash-f7054f75 1.2s var(--ease-out)}@keyframes pp-flash-f7054f75{0%{background:var(--color-accent-soft)}to{background:transparent}}.pp-empty[data-v-f7054f75]{padding:var(--space-5) var(--space-4);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);text-align:center}.sm-picker[data-v-ae75986f]{position:relative;width:100%;font-family:var(--font-ui)}.sm-picker__trigger[data-v-ae75986f]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:38px;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.sm-picker__trigger[data-v-ae75986f]:focus-visible,.sm-picker.is-open .sm-picker__trigger[data-v-ae75986f]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.sm-picker__value[data-v-ae75986f]{min-width:0;flex:1;display:flex;align-items:center;overflow:hidden;white-space:nowrap}.sm-picker__value-text[data-v-ae75986f]{min-width:0;overflow:hidden;text-overflow:ellipsis}.sm-picker__value.is-placeholder[data-v-ae75986f]{color:var(--color-text-faint)}.sm-picker__chevron[data-v-ae75986f]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.sm-picker.is-open .sm-picker__chevron[data-v-ae75986f]{transform:rotate(180deg)}.sm-picker__menu[data-v-ae75986f]{position:fixed;z-index:var(--z-modal-dropdown);width:252px;max-width:calc(100vw - 64px);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__models[data-v-ae75986f]{max-height:280px;overflow-y:auto;padding:var(--space-1);border-radius:var(--radius-md)}.sm-picker__flyout[data-v-ae75986f]{position:absolute;width:180px;max-height:280px;overflow-y:auto;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__flyout--right[data-v-ae75986f]{left:calc(100% + var(--space-1))}.sm-picker__flyout--left[data-v-ae75986f]{right:calc(100% + var(--space-1))}.sm-picker__group[data-v-ae75986f]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.sm-picker__option[data-v-ae75986f]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.sm-picker__option.is-active[data-v-ae75986f]{background:var(--color-hover);color:var(--color-text-strong)}.sm-picker__option.is-muted[data-v-ae75986f]{color:var(--color-text-muted)}.sm-picker__option-label[data-v-ae75986f]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-picker__check[data-v-ae75986f]{flex:none;color:transparent}.sm-picker__option.is-selected .sm-picker__check[data-v-ae75986f]{color:var(--color-accent)}.sm-picker__flyout-caret[data-v-ae75986f]{flex:none;margin-left:auto;color:var(--color-text-faint)}.rc-dev[data-v-cfe04ecf]{--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gap: var(--space-2);--sb-hover: var(--color-hover);position:relative;padding:0 var(--sb-inset) var(--space-1)}.rc-dev--mobile[data-v-cfe04ecf]{padding:var(--space-1) var(--sb-inset) var(--space-2)}.rc-dev--mobile .rc-dev-trigger[data-v-cfe04ecf]{min-height:44px}.rc-dev-trigger[data-v-cfe04ecf]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:6px calc(var(--sb-pad-x) - var(--sb-inset));border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.rc-dev-trigger[data-v-cfe04ecf]:hover,.rc-dev-trigger[aria-expanded=true][data-v-cfe04ecf]{background:var(--sb-hover)}.rc-dev-trigger[data-v-cfe04ecf]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.rc-dev-trigger svg[data-v-cfe04ecf]{flex:none}.rc-dev-name[data-v-cfe04ecf]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-chevron[data-v-cfe04ecf]{margin-left:auto;color:var(--color-text-faint)}.rc-dev-menu[data-v-cfe04ecf]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.rc-dev-menu--mobile[data-v-cfe04ecf]{position:absolute;top:100%;left:var(--sb-inset);right:var(--sb-inset);bottom:auto;max-height:min(50vh,320px);transform-origin:top center}.rc-dev-menu--mobile .rc-dev-offline[data-v-cfe04ecf]{min-height:44px;padding:12px 14px}.menu-pop-enter-active[data-v-cfe04ecf]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-cfe04ecf]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-cfe04ecf],.menu-pop-leave-to[data-v-cfe04ecf]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.rc-dev-state[data-v-cfe04ecf]{display:flex;align-items:center;justify-content:center;padding:var(--space-3)}.rc-dev-failed[data-v-cfe04ecf]{color:var(--color-text-muted);font-size:var(--text-sm)}.rc-dev-caption[data-v-cfe04ecf]{padding:var(--space-2) var(--menu-item-padding-inline) 2px;color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.rc-dev-item-name[data-v-cfe04ecf]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-item-status[data-v-cfe04ecf]{display:flex;align-items:center;gap:6px;flex:none;color:var(--color-text-muted)}.rc-dev-item-check[data-v-cfe04ecf]{display:flex;align-items:center;justify-content:center;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.rc-dev-offline[data-v-cfe04ecf]{padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border-radius:var(--radius-menu-item);color:var(--color-text-muted);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight)}.rc-dev-offline.is-current[data-v-cfe04ecf]{background:var(--color-hover);color:var(--color-text)}.rc-dev-offline-row[data-v-cfe04ecf]{display:flex;align-items:center;gap:7px}.rc-dev-offline-row svg[data-v-cfe04ecf]{display:block;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.user-menu-trigger[data-v-b8060ccc]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.user-menu-trigger[data-v-b8060ccc]:hover,.user-menu-trigger[aria-expanded=true][data-v-b8060ccc]{background:var(--sb-hover)}.user-menu-trigger[data-v-b8060ccc]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}html.macos-desktop .user-menu-trigger[data-v-b8060ccc]{border-bottom-left-radius:var(--radius-window-chip)}.user-menu-trigger svg[data-v-b8060ccc]{flex:none}.user-menu-avatar[data-v-b8060ccc]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:var(--radius-full);background:var(--color-surface-sunken);color:var(--color-text-muted);overflow:hidden}.user-menu-avatar img[data-v-b8060ccc]{width:100%;height:100%;object-fit:cover}.user-menu-name[data-v-b8060ccc]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu[data-v-b8060ccc]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.user-submenu[data-v-b8060ccc]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);width:max-content;max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.menu-pop-enter-active[data-v-b8060ccc]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-b8060ccc]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-b8060ccc],.menu-pop-leave-to[data-v-b8060ccc]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.user-menu-usage[data-v-b8060ccc]{display:flex;flex-direction:column;gap:calc(var(--menu-item-padding-block) * 2);padding:var(--menu-item-padding-block) var(--menu-item-padding-inline)}.user-menu-usage-state[data-v-b8060ccc]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-1) 0;color:var(--color-text-muted);font-size:var(--text-sm)}.user-menu-usage-error[data-v-b8060ccc]{flex:1;min-width:0}.user-menu-usage-empty[data-v-b8060ccc]{color:var(--color-text-faint)}.user-menu-usage-row[data-v-b8060ccc]{display:grid;grid-template-columns:auto 1fr;column-gap:var(--space-3);row-gap:var(--space-05)}.user-menu-usage-label[data-v-b8060ccc]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:var(--leading-tight);color:var(--color-text)}.user-menu-usage-hint[data-v-b8060ccc]{grid-column:1 / -1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.user-menu-usage-value[data-v-b8060ccc]{justify-self:end;font-size:var(--text-sm);line-height:var(--leading-tight);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.user-menu-usage-value.sev-warn[data-v-b8060ccc]{color:var(--color-warning)}.user-menu-usage-value.sev-danger[data-v-b8060ccc]{color:var(--color-danger)}.user-menu-item-label[data-v-b8060ccc]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-login-label[data-v-b8060ccc]{color:var(--color-accent)}.user-menu-row-value[data-v-b8060ccc]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);color:var(--color-text-faint)}.side[data-v-a5d7cf12]{background:var(--color-sidebar-bg);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;min-width:0;height:100%;transition:width .28s cubic-bezier(.4,0,.2,1),visibility .28s;--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gutter: 16px;--sb-gap: var(--space-2);--sb-action-inset: calc((max(var(--ui-font-size-sm) * var(--leading-tight), var(--p-ic-md)) + 2 * var(--space-2) - var(--icon-button-sm)) / 2);--sb-hover: var(--color-hover);--sb-selected: color-mix(in srgb, var(--color-selected) 75%, transparent)}.side.no-anim[data-v-a5d7cf12]{transition:none}.side.collapsed[data-v-a5d7cf12]{visibility:hidden}.col[data-v-a5d7cf12]{flex:none;min-width:0;display:flex;flex-direction:column;min-height:0;width:100%;box-sizing:border-box;border-right:.5px solid var(--line);container-type:inline-size;container-name:sidebar-col;position:relative}.ch[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--space-3);min-height:calc(26px + 2 * var(--space-3));width:100%;box-sizing:border-box}.side.macos-desktop .ch[data-v-a5d7cf12]{padding-left:80px;-webkit-app-region:drag}.side.macos-desktop .ch-brand[data-v-a5d7cf12]{display:none}.ch-logo[data-v-a5d7cf12]{height:22px;width:32px;flex:none;display:block;cursor:pointer;user-select:none;touch-action:none;transition:transform .18s ease}.ch-logo[data-v-a5d7cf12]:hover{transform:scale(1.08)}.ch-brand[data-v-a5d7cf12]{display:flex;align-items:center;gap:8px;min-width:0;flex:1;user-select:none;touch-action:none}.ch-tail[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--space-2);flex:none;min-width:0;margin-left:auto}.ch-name[data-v-a5d7cf12]{font-size:var(--ui-font-size);font-weight:500;line-height:22px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container sidebar-col (max-width: 250px){.ch-name[data-v-a5d7cf12]{display:none}}.sidebar-actions[data-v-a5d7cf12]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--space-2);padding:0 var(--sb-inset) var(--space-1);position:relative;z-index:1;background:var(--color-sidebar-bg)}.sessions-head[data-v-a5d7cf12]{position:relative;z-index:1;padding:var(--space-3) var(--sb-inset) 0;border-bottom:.5px solid transparent;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.sessions-head[data-v-a5d7cf12]:after,.side-footer[data-v-a5d7cf12]:before{content:"";position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sessions-head[data-v-a5d7cf12]:after{top:100%;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.sessions-head--scrolled[data-v-a5d7cf12]{border-bottom-color:var(--line)}.sessions-head--scrolled[data-v-a5d7cf12]:after{opacity:1}.btn-new-chat[data-v-a5d7cf12]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.sidebar-actions--has-workspace-action .btn-new-chat[data-v-a5d7cf12]{grid-column:1}.btn-new-chat[data-v-a5d7cf12]:hover{background:var(--sb-hover)}.btn-new-chat[data-v-a5d7cf12]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.btn-new-chat svg[data-v-a5d7cf12]{flex:none}.btn-new-chat span[data-v-a5d7cf12]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-new-chat[data-v-a5d7cf12] .ui-kbd{margin-left:auto}.btn-new-chat[data-v-a5d7cf12] .ui-kbd,.search[data-v-a5d7cf12] .ui-kbd{opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.btn-new-chat[data-v-a5d7cf12]:hover .ui-kbd,.btn-new-chat[data-v-a5d7cf12]:focus-visible .ui-kbd,.search[data-v-a5d7cf12]:hover .ui-kbd,.search[data-v-a5d7cf12]:focus-visible .ui-kbd{opacity:1}.search[data-v-a5d7cf12]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.search[data-v-a5d7cf12]:hover{background:var(--sb-hover)}.search[data-v-a5d7cf12]:focus-visible{background:var(--sb-hover);color:var(--color-text);outline:2px solid var(--color-accent-bd);outline-offset:-2px}.search-icon[data-v-a5d7cf12]{flex:none;transform:translateY(-.5px)}.search-input[data-v-a5d7cf12]{flex:1;min-width:0;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-tabs[data-v-a5d7cf12]{padding:var(--space-2) var(--sb-inset) 0}.status-seg[data-v-a5d7cf12]{width:100%;display:flex}.status-seg[data-v-a5d7cf12] .ui-seg__item{flex:1;min-width:0;justify-content:center;padding:0 var(--space-1);overflow:hidden}.ws-dir[data-v-a5d7cf12]{display:block;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);cursor:pointer;position:relative;user-select:none}.ws-dir[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.ws-dir.on[data-v-a5d7cf12]{background:var(--sb-selected, var(--color-selected))}.ws-dir+.ws-dir[data-v-a5d7cf12]{margin-top:var(--space-05)}.ws-dir-row[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--sb-gap);min-width:0}.ws-dir-icon[data-v-a5d7cf12]{flex:none;color:var(--color-text-muted)}.ws-dir-name[data-v-a5d7cf12]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir-act[data-v-a5d7cf12]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.ws-dir-rename[data-v-a5d7cf12]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-sm);padding:2px 5px;outline:none}.ws-dir:hover .ws-dir-act[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-act[data-v-a5d7cf12]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.ws-dir-sub[data-v-a5d7cf12]{margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir:hover .ws-dir-name[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-name[data-v-a5d7cf12],.ws-dir:hover .ws-dir-sub[data-v-a5d7cf12],.ws-dir:focus-within .ws-dir-sub[data-v-a5d7cf12]{margin-right:calc(var(--icon-button-sm) + var(--space-2))}.done-gh[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--sb-gap);padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);user-select:none;position:relative;cursor:pointer}.done-gh[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.done-gh-folder[data-v-a5d7cf12]{flex:none;color:var(--color-text-muted)}.done-gh-name[data-v-a5d7cf12]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.done-gh-count[data-v-a5d7cf12]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.done-gh-act[data-v-a5d7cf12]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.done-gh:hover .done-gh-act[data-v-a5d7cf12],.done-gh:focus-within .done-gh-act[data-v-a5d7cf12]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.done-gh:hover .done-gh-count[data-v-a5d7cf12],.done-gh:focus-within .done-gh-count[data-v-a5d7cf12]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.sessions[data-v-a5d7cf12]{flex:1;overflow-y:auto;padding:0 var(--sb-inset) var(--space-3);min-height:0;--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.sessions[data-v-a5d7cf12]::-webkit-scrollbar{display:none}.sessions-thumb[data-v-a5d7cf12]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.sessions-thumb.visible[data-v-a5d7cf12]{opacity:1;pointer-events:auto}.sessions-thumb.visible[data-v-a5d7cf12]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.sessions-thumb[data-v-a5d7cf12]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.side-footer[data-v-a5d7cf12]{flex:none;position:relative;z-index:1;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--sb-inset);border-top:.5px solid var(--line);background:var(--color-sidebar-bg)}.side-footer-account[data-v-a5d7cf12]{flex:1 1 auto;min-width:0}.side-footer-settings[data-v-a5d7cf12]{flex:none}.side-footer[data-v-a5d7cf12]:before{bottom:100%;background:linear-gradient(to top,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to top,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to top,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.side-footer--shadowed[data-v-a5d7cf12]:before{opacity:1}.side-section-label[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.side-section-title[data-v-a5d7cf12]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sessions-head .pinned+.side-section-label[data-v-a5d7cf12]{margin-top:var(--space-1)}.side-section-toggle[data-v-a5d7cf12]{color:var(--faint)}.side-section-toggle[data-v-a5d7cf12]:hover{color:var(--dim)}.side-section-toggle svg[data-v-a5d7cf12]{width:13px;height:13px}.side-section-actions[data-v-a5d7cf12]{display:flex;align-items:center;gap:2px}.ws-drop-target.drop-before[data-v-a5d7cf12]{box-shadow:inset 0 2px 0 var(--color-accent)}.ws-drop-target.drop-after[data-v-a5d7cf12]{box-shadow:inset 0 -2px 0 var(--color-accent)}.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh{isolation:isolate}.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:ws-locate-fade-a5d7cf12 var(--duration-flash) var(--ease-out) forwards}@keyframes ws-locate-fade-a5d7cf12{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.ws-drop-target.ws-locate-flash[data-v-a5d7cf12] .gh:before{animation:none}}.sessions.pinned-drag-active[data-v-a5d7cf12]{box-shadow:inset 0 0 0 1px var(--color-accent)}.sessions.flat-pinned-drop-hover[data-v-a5d7cf12]{box-shadow:inset 0 0 0 2px var(--color-accent)}.show-more-row[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:center}.show-more[data-v-a5d7cf12]{display:flex;align-items:center;justify-content:center;gap:var(--space-1);margin:0;padding:6px var(--space-3);min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);cursor:pointer}.show-more[data-v-a5d7cf12]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-a5d7cf12]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-label[data-v-a5d7cf12]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-drop-overlay[data-v-a5d7cf12]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:var(--space-3);box-sizing:border-box;background:color-mix(in srgb,var(--color-sidebar-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.folder-drop-overlay.show[data-v-a5d7cf12]{opacity:1;visibility:visible}.folder-drop-card[data-v-a5d7cf12]{display:flex;align-items:center;gap:var(--space-3);max-width:100%;box-sizing:border-box;padding:var(--space-4);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.folder-drop-card svg[data-v-a5d7cf12]{flex:none}.folder-drop-card span[data-v-a5d7cf12]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-a5d7cf12]{padding:var(--space-6) var(--space-3);text-align:center;color:var(--faint);font-size:calc(var(--ui-font-size) - 3px);line-height:1.6}.ws-menu[data-v-a5d7cf12],.gh-menu[data-v-a5d7cf12],.view-menu[data-v-a5d7cf12]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.view-menu-label[data-v-a5d7cf12]{padding:var(--space-1) var(--space-2) var(--space-05);font-size:var(--text-xs);color:var(--faint);user-select:none}.view-menu-check[data-v-a5d7cf12]{margin-left:auto;display:inline-flex}.menu-pop-enter-active[data-v-a5d7cf12]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-a5d7cf12]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-a5d7cf12],.menu-pop-leave-to[data-v-a5d7cf12]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}[data-v-a5d7cf12] .workspace-rename-item{font-size:var(--text-xs);font-weight:var(--weight-option-label)}.section-menu-check[data-v-a5d7cf12]{display:inline-flex;flex:none;width:14px}.chat-header[data-v-927e8637]{flex:none;display:flex;align-items:center;gap:14px;height:var(--panel-head-h, 48px);padding:0 16px;border-bottom:.5px solid var(--color-line);background:var(--color-bg);font-family:var(--font-ui);min-width:0;user-select:none;container-type:inline-size}.chat-header.macos-desktop[data-v-927e8637]{-webkit-app-region:drag}.chat-header.macos-desktop button[data-v-927e8637],.chat-header.macos-desktop input[data-v-927e8637]{-webkit-app-region:no-drag}.app:not(.mobile) .chat-header{transition:padding-left .28s cubic-bezier(.4,0,.2,1)}.app.sidebar-collapsed .chat-header{padding-left:78px}.app.sidebar-collapsed.macos-desktop .chat-header{padding-left:146px}.ch-id[data-v-927e8637]{display:flex;align-items:center;gap:6px;min-width:0;flex:none;max-width:46%}.ch-ws[data-v-927e8637]{color:var(--color-text-muted);font-size:var(--text-base);font-weight:var(--weight-medium);flex:none}.ch-sep[data-v-927e8637]{color:var(--color-text-faint);flex:none}.ch-ses[data-v-927e8637]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-rename[data-v-927e8637]{flex:1;min-width:0;font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none;user-select:text}.ch-git[data-v-927e8637]{display:flex;align-items:center;gap:4px;border:none;background:transparent;padding:0;color:var(--muted);font-family:var(--font-ui);font-size:calc(var(--ui-font-size) - 2px);flex:0 1 auto;max-width:none;min-width:0;cursor:pointer}.ch-git:hover .ch-branch[data-v-927e8637]{color:var(--color-text)}.ch-branch-icon[data-v-927e8637]{flex:none;color:var(--color-text-muted)}.ch-branch[data-v-927e8637]{color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}.ch-detached[data-v-927e8637]{color:var(--muted);font-style:italic}.ch-pill[data-v-927e8637]{display:inline-flex;align-items:center;gap:3px;padding:1px 5px;border-radius:999px;background:var(--panel);border:.5px solid var(--line);font-size:calc(var(--ui-font-size) - 3px)}.ch-sync-pill[data-v-927e8637]{border-color:var(--line)}.ch-diff-pill[data-v-927e8637]{border-color:color-mix(in srgb,var(--color-success) 20%,var(--line));font-variant-numeric:tabular-nums}.ch-ahead[data-v-927e8637]{color:var(--color-warning);flex:none}.ch-behind[data-v-927e8637]{color:var(--color-accent-hover);flex:none}.ch-add[data-v-927e8637]{color:var(--color-success);flex:none}.ch-del[data-v-927e8637]{color:var(--color-danger);flex:none}.ch-spacer[data-v-927e8637]{flex:1;min-width:0}@container (max-width: 720px){.ch-ws[data-v-927e8637],.ch-sep[data-v-927e8637]{display:none}.ch-id[data-v-927e8637]{flex:0 1 auto;max-width:none}}.chat-header .ch-act-more[data-v-927e8637]{width:24px;height:24px;border-radius:var(--radius-sm)}.chat-header .ch-act-more[data-v-927e8637] svg{width:14px;height:14px}.ch-act-more.open[data-v-927e8637]{background:var(--color-well);color:var(--color-text)}.chat-header .ch-panel[data-v-927e8637]{width:var(--icon-button-sm);height:var(--icon-button-sm);border-radius:var(--radius-sm)}.chat-header .ch-panel[data-v-927e8637] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ch-dev[data-v-927e8637]{display:inline-flex;align-items:center;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-warning-bd);border-radius:var(--radius-full);background:var(--color-warning-soft);color:var(--color-warning);font-size:var(--text-xs);font-weight:500}.ch-pr[data-v-927e8637]{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-well);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:500;cursor:pointer}.ch-pr svg[data-v-927e8637]{flex:none}.ch-pr.pr-open[data-v-927e8637]{color:var(--color-success);border-color:var(--color-success-bd);background:var(--color-success-soft)}.ch-pr.pr-merged[data-v-927e8637]{color:var(--color-done);border-color:var(--color-done-bd);background:var(--color-done-soft)}.ch-pr.pr-closed[data-v-927e8637]{color:var(--color-danger);border-color:var(--color-danger-bd);background:var(--color-danger-soft)}.ch-pr.pr-draft[data-v-927e8637],.ch-pr.pr-unknown[data-v-927e8637]{color:var(--color-text-muted);border-color:var(--color-line-strong);background:var(--color-well)}.ch-pr[data-v-927e8637]:hover{border-color:var(--color-line-strong)}.ch-done-pill[data-v-927e8637]{cursor:default}.ch-done-pill[data-v-927e8637]:hover{border-color:var(--color-done-bd)}@container (max-width: 980px){.ch-sync-pill[data-v-927e8637],.ch-diff-pill[data-v-927e8637]{display:none}}@container (max-width: 860px){.ch-git[data-v-927e8637],.ch-pr[data-v-927e8637]{display:none}}.ch-menu[data-v-927e8637]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-927e8637]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-927e8637]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-927e8637],.menu-pop-leave-to[data-v-927e8637]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}@media(max-width:980px){.ch-act-label[data-v-927e8637]{display:none}}@media(max-width:640px){.chat-header[data-v-927e8637]{display:none}}.slash-menu[data-menu-frame][data-v-62eaf4c2]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.slash-menu.is-sheet[data-menu-frame][data-v-62eaf4c2]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.slash-menu.is-sheet .slash-scroll[data-v-62eaf4c2]{margin:0;padding:var(--space-1) var(--space-2)}.slash-menu.is-sheet .slash-item[data-v-62eaf4c2]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.slash-scroll[data-v-62eaf4c2]{max-height:var(--p-slash-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.slash-scroll[data-v-62eaf4c2]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-62eaf4c2]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.slash-menu:hover .scroll-thumb[data-v-62eaf4c2]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-62eaf4c2]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.slash-item[data-v-62eaf4c2]{display:flex;align-items:baseline;gap:var(--space-2);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-b2);border-radius:var(--radius-menu-row)}.slash-item[data-v-62eaf4c2]:hover{background:var(--color-hover)}.slash-item.active[data-v-62eaf4c2]{background:var(--color-selected)}.slash-item+.slash-item[data-v-62eaf4c2]{margin-top:var(--menu-rows-seam)}.slash-name[data-v-62eaf4c2]{flex:none;max-width:60%;color:var(--color-text);font-weight:500;min-width:0;line-height:var(--leading-normal);overflow-wrap:anywhere}.slash-match[data-v-62eaf4c2]{font-weight:var(--weight-semibold)}.slash-empty[data-v-62eaf4c2]{padding:var(--space-1-5) var(--space-1);color:var(--color-text-muted)}@media(hover:none){.slash-item[data-v-62eaf4c2]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.slash-desc[data-v-62eaf4c2]{flex:1;min-width:0;color:var(--color-text-muted);font-size:var(--ui-b2);font-weight:var(--weight-regular);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-desc-match[data-v-62eaf4c2]{font-weight:var(--weight-semibold)}@media(max-width:520px){.slash-item[data-v-62eaf4c2]{flex-direction:column;align-items:stretch;gap:var(--space-05)}.slash-name[data-v-62eaf4c2]{max-width:none}}.mention-menu[data-menu-frame][data-v-7c3431cd]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.mention-menu.is-sheet[data-menu-frame][data-v-7c3431cd]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.mention-menu.is-sheet .mention-scroll[data-v-7c3431cd]{margin:0;padding:var(--space-1) var(--space-2)}.mention-menu.is-sheet .mention-item[data-v-7c3431cd]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.mention-menu.is-sheet .mention-state[data-v-7c3431cd]{padding-left:var(--space-4)}.mention-scroll[data-v-7c3431cd]{max-height:var(--p-mention-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.mention-scroll[data-v-7c3431cd]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-7c3431cd]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.mention-menu:hover .scroll-thumb[data-v-7c3431cd]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-7c3431cd]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.mention-state[data-v-7c3431cd]{padding:var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--ui-b2)}.mention-spin[data-v-7c3431cd]{position:absolute;top:var(--space-2);right:var(--space-3);color:var(--color-text-muted);z-index:var(--z-raised)}.dim[data-v-7c3431cd]{color:var(--color-text-muted)}.mention-item[data-v-7c3431cd]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);border-radius:var(--radius-menu-row)}.mention-icon[data-v-7c3431cd]{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);flex-shrink:0}.mention-icon[data-v-7c3431cd] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-item:hover .mention-icon[data-v-7c3431cd],.mention-item.active .mention-icon[data-v-7c3431cd]{color:var(--color-text-strong)}.mention-item[data-v-7c3431cd]:hover{background:var(--color-hover)}.mention-item:hover .mention-name[data-v-7c3431cd],.mention-item.active .mention-name[data-v-7c3431cd]{color:var(--color-text-strong)}.mention-item.active[data-v-7c3431cd]{background:var(--color-selected)}.mention-item+.mention-item[data-v-7c3431cd]{margin-top:var(--menu-rows-seam)}.mention-item[data-v-7c3431cd]{transition:opacity var(--duration-slow) var(--ease-out)}.mention-item.stale[data-v-7c3431cd]{opacity:var(--opacity-stale)}@media(hover:none){.mention-item[data-v-7c3431cd]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.mention-name[data-v-7c3431cd]{color:var(--color-text);font-weight:500;flex-shrink:0}.mention-name .mention-hit[data-v-7c3431cd]{color:var(--color-text-strong);font-weight:var(--weight-semibold)}.mention-meta .mention-hit[data-v-7c3431cd]{color:var(--color-text)}.mention-meta[data-v-7c3431cd]{color:var(--color-text-muted);font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer[data-v-4b2d7169]{padding:7px var(--dock-inline-right, 16px) 12px var(--dock-inline-left, 16px);background:transparent;transition:background .12s}.composer.drag-over[data-v-4b2d7169]{background:var(--color-accent-soft)}.drop-overlay[data-v-4b2d7169]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.drop-overlay.show[data-v-4b2d7169]{opacity:1;visibility:visible}.drop-card[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.composer-card[data-v-4b2d7169]{--composer-control-size: var(--space-8);--composer-send-size: var(--composer-control-size);--composer-control-inset: var(--space-2);--composer-valve-floor: 4em;--composer-valve-expand-margin: 3.4em;position:relative;border:.5px solid var(--color-composer-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);background:var(--color-composer-bg);box-shadow:var(--shadow-input);user-select:none;container-type:inline-size}.composer-card[data-v-4b2d7169]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.composer-card[data-v-4b2d7169]:focus-within:after{opacity:1}.file-input-hidden[data-v-4b2d7169]{display:none}.cin-wrap[data-v-4b2d7169]{position:relative;padding:14px 16px 8px}.input-row[data-v-4b2d7169]{position:relative;display:flex;align-items:flex-start;gap:var(--space-2)}.expand-btn[data-v-4b2d7169]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--dim);cursor:pointer;padding:0;transition:background .12s,color .12s}.expand-btn[data-v-4b2d7169]:hover{background:var(--panel2);color:var(--color-text)}.expand-btn[data-v-4b2d7169]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.ph[data-v-4b2d7169]{color:var(--faint);caret-color:var(--color-text);flex:1;border:none;outline:none;font-family:var(--font-ui);font-size:var(--content-font-size);text-autospace:normal;background:transparent;min-height:36px;max-height:calc(var(--app-height, 100dvh) / 4);overflow-y:auto;scrollbar-width:none;line-height:1.5;margin-bottom:6px;user-select:text}.ph[data-v-4b2d7169]::-webkit-scrollbar{display:none}.ph[data-v-4b2d7169]:not([data-empty=true]){color:var(--color-text)}.ph[data-v-4b2d7169] .ProseMirror{outline:none;white-space:pre-wrap;overflow-wrap:break-word;min-height:inherit}.ph[data-v-4b2d7169] .ProseMirror p{margin:0}.ph[data-v-4b2d7169] .ProseMirror-trailingBreak:not(:only-child){display:none}.ph[data-v-4b2d7169] .mention-pill.ProseMirror-selectednode{color:var(--color-text)}.ph[data-v-4b2d7169] .wm-pill{display:inline-flex;align-items:center;gap:var(--space-1);vertical-align:top;height:calc(var(--content-font-size) * 1.5);margin-left:calc(-1 * var(--space-05));margin-right:var(--space-1-5);padding:0 calc((var(--content-font-size) * 1.5 - var(--wm-x-size)) / 2) 0 var(--space-2);border:none;border-radius:var(--radius-full);background:var(--color-selected);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:calc(var(--content-font-size) * 1.5);white-space:nowrap;user-select:none}.ph[data-v-4b2d7169] .wm-icon{display:inline-flex}.ph[data-v-4b2d7169] .wm-x{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--wm-x-size);height:var(--wm-x-size);padding:0;border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.ph[data-v-4b2d7169] .wm-x:hover{background:var(--color-hover);color:var(--color-text)}.ph[data-v-4b2d7169] .wm-x:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ph[data-v-4b2d7169] .wm-x:before{content:"";position:absolute;inset:calc(-1 * var(--wm-x-ring))}.ph[data-wm=true][data-v-4b2d7169] .ProseMirror{padding-top:var(--space-1);padding-left:var(--space-05)}.ph[data-v-4b2d7169] .wm-placeholder{color:var(--muted);pointer-events:none;user-select:none}.ph[data-v-4b2d7169] .wm-placeholder kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--kbd-min-width);height:var(--kbd-height);padding:0 var(--kbd-padding-x);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-xs);background:transparent;color:inherit;font-family:var(--font-kbd);font-size:var(--kbd-font-size);line-height:var(--leading-solid)}.composer.expanded .ph[data-v-4b2d7169]{min-height:calc(var(--app-height, 100dvh) * .7);max-height:calc(var(--app-height, 100dvh) * .7)}.compact-chip[data-v-4b2d7169]{height:var(--composer-control-size);padding:0 var(--space-2);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-warning);font-family:var(--mono);font-size:var(--ui-font-size);cursor:pointer;line-height:1;flex:none;transition:background var(--duration-base) var(--ease-out)}.compact-chip[data-v-4b2d7169]:hover{background:var(--color-hover)}.compact-chip.gone[data-v-4b2d7169],.model-pill.model-gone[data-v-4b2d7169]{display:none}.composer-attach[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);border-radius:var(--radius-full);flex:none}.add-menu[data-v-4b2d7169]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;z-index:var(--z-dropdown);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1-5) var(--space-3);display:flex;flex-direction:column;gap:var(--menu-rows-seam);font-family:var(--font-ui);transform-origin:bottom left}.am-scroll[data-v-4b2d7169]{max-height:var(--p-add-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:var(--menu-rows-seam)}.am-scroll[data-v-4b2d7169]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-4b2d7169]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);pointer-events:none;z-index:var(--z-raised)}.add-menu:hover .scroll-thumb[data-v-4b2d7169]{background:var(--color-menu-scrollbar-hover)}.msheet-search[data-v-4b2d7169]{padding:0 var(--space-4) var(--space-2)}.msheet-add[data-v-4b2d7169]{display:flex;flex-direction:column;gap:var(--menu-rows-seam);padding:0 var(--menu-row-hug);font-family:var(--font-ui)}.am-row[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);border:none;border-radius:var(--radius-menu-row);background:none;cursor:pointer;font-size:var(--ui-font-size);color:var(--color-text);text-align:left;transition:background var(--duration-base) var(--ease-out)}.am-row[data-v-4b2d7169]:hover{background:var(--color-hover)}.am-row[data-v-4b2d7169]:focus-visible{background:var(--color-selected);outline:none}@media(hover:none){.am-row[data-v-4b2d7169]{padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.am-row:hover .am-icon[data-v-4b2d7169],.am-row:focus-visible .am-icon[data-v-4b2d7169]{color:var(--color-text)}.am-icon[data-v-4b2d7169]{flex:none;width:var(--p-ic-sm);display:flex;justify-content:center;color:var(--color-text-muted);transition:color var(--duration-base) var(--ease-out)}.am-name[data-v-4b2d7169]{flex:none;font-weight:var(--weight-medium)}.am-desc[data-v-4b2d7169]{margin-left:var(--space-1);color:var(--color-text-muted);font-size:var(--ui-font-size-sm)}.send[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-send-bg);color:var(--color-send-icon);border:none;box-shadow:var(--shadow-send);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--duration-slow) var(--ease-out),transform var(--duration-fast) var(--ease-out),box-shadow var(--duration-slow) var(--ease-out);position:relative}.send[data-v-4b2d7169]:hover:not(:disabled){background:var(--color-send-bg-hover);box-shadow:var(--shadow-send-hover)}.send[data-v-4b2d7169]:active{transform:scale(.92)}.send[data-v-4b2d7169]:disabled{cursor:not-allowed;background:var(--color-send-bg-disabled);color:var(--color-send-icon-disabled);opacity:var(--opacity-send-disabled)}.send[data-v-4b2d7169]:disabled:active{transform:none}.send.is-starting[data-v-4b2d7169]:disabled{background:var(--color-send-bg);color:var(--color-send-icon)}.send.is-starting[data-v-4b2d7169] .ui-spinner{color:var(--color-send-icon)}.send.is-starting[data-v-4b2d7169] .ui-spinner__track{stroke:color-mix(in srgb,var(--color-send-icon) 32%,transparent)}.send svg[data-v-4b2d7169]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.stop[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-subtle);color:var(--color-stop-glyph);border:none;box-shadow:var(--shadow-xs);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .16s ease,color .16s ease,transform .12s ease}.stop[data-v-4b2d7169]:hover{background:var(--color-danger);color:var(--color-text-on-accent)}.stop[data-v-4b2d7169]:active{transform:scale(.92)}.stop svg[data-v-4b2d7169]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.toolbar[data-v-4b2d7169]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--composer-control-inset) var(--composer-control-inset);position:relative}.menu-measure[data-v-4b2d7169]{position:absolute;width:max-content;height:0;overflow:hidden;visibility:hidden;pointer-events:none}.toolbar-left[data-v-4b2d7169],.toolbar-right[data-v-4b2d7169]{display:flex;align-items:center;gap:var(--space-1);min-width:0}.toolbar-left[data-v-4b2d7169]{flex:none;overflow:hidden}.toolbar-right[data-v-4b2d7169]{flex:1 1 auto;justify-content:flex-end}.perm-pill[data-v-4b2d7169],.swarm-chip[data-v-4b2d7169],.model-pill[data-v-4b2d7169]{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);height:var(--composer-control-size);padding:0 var(--space-3);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:pointer;user-select:none;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.perm-pill[data-v-4b2d7169]{font-size:var(--ui-font-size-sm)}.perm-pill[data-v-4b2d7169]:after,.swarm-chip[data-v-4b2d7169]:after,.model-pill[data-v-4b2d7169]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.perm-pill[data-v-4b2d7169]:hover:after,.swarm-chip[data-v-4b2d7169]:hover:after,.model-pill[data-v-4b2d7169]:hover:after{opacity:1}.perm-pill.open[data-v-4b2d7169],.model-pill.open[data-v-4b2d7169]{background:var(--color-accent-soft)}.swarm-chip[data-v-4b2d7169]{cursor:default}.swarm-x[data-v-4b2d7169]{margin-right:calc(var(--composer-control-size) / 2 - var(--space-3) - var(--icon-button-sm) / 2);color:inherit;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.swarm-chip .swarm-x[data-v-4b2d7169]{border-radius:var(--radius-full)}.swarm-chip:hover .swarm-x[data-v-4b2d7169],.swarm-x[data-v-4b2d7169]:focus-visible{opacity:1}@media(hover:none){.toolbar-left[data-v-4b2d7169]{padding-right:var(--space-2)}.swarm-chip[data-v-4b2d7169]{margin-right:calc((var(--touch-target-min) - var(--icon-button-sm)) / 2 - var(--space-1))}.swarm-x[data-v-4b2d7169]{opacity:1;position:relative}.swarm-x[data-v-4b2d7169]:before{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.perm-pill.perm-manual[data-v-4b2d7169]{color:var(--dim)}.perm-pill.perm-yolo[data-v-4b2d7169]{color:var(--color-warning)}.perm-pill.perm-auto[data-v-4b2d7169]{color:var(--color-danger)}.perm-pill-icon[data-v-4b2d7169]{flex:none}.perm-pill[data-v-4b2d7169],.swarm-chip[data-v-4b2d7169]{flex:none;padding-left:var(--space-2)}.swarm-ic[data-v-4b2d7169],.swarm-x[data-v-4b2d7169]{flex:none}.labels-collapsed .perm-pill[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .perm-pill-label[data-v-4b2d7169]{display:none}.labels-collapsed .swarm-chip[data-v-4b2d7169]{position:relative;width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .swarm-label[data-v-4b2d7169]{display:none}.labels-collapsed .swarm-ic[data-v-4b2d7169]{transition:opacity var(--duration-base) var(--ease-out)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-4b2d7169]{opacity:0}.labels-collapsed .swarm-x[data-v-4b2d7169]{position:absolute;inset:0;width:auto;height:auto;margin-right:0}@media(hover:none){.labels-collapsed .swarm-chip[data-v-4b2d7169]{width:var(--touch-target-min);height:var(--touch-target-min)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-4b2d7169]{opacity:1}.labels-collapsed .swarm-x[data-v-4b2d7169]{inset:0;width:auto;height:auto;opacity:1;background:transparent}.labels-collapsed .swarm-x[data-v-4b2d7169]:before{inset:0 0 auto auto;width:var(--p-ic-md);height:var(--p-ic-md);border-radius:var(--radius-full);background:var(--color-selected)}.labels-collapsed .swarm-x[data-v-4b2d7169] svg{position:absolute;top:calc(var(--space-1-5) / 2);right:calc(var(--space-1-5) / 2);width:calc(var(--p-ic-md) - var(--space-1-5));height:calc(var(--p-ic-md) - var(--space-1-5))}}.ctx-group[data-v-4b2d7169]{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:2px 0;border-radius:var(--radius-xs)}.ctx-group[data-v-4b2d7169]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.model-pill[data-v-4b2d7169]{gap:var(--space-1);line-height:var(--leading-normal);overflow:hidden;flex:0 1 auto;min-width:0;max-width:320px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.model-pill[data-v-4b2d7169]:active{transform:scale(.97)}.model-pill[data-v-4b2d7169]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-pill .mp-name[data-v-4b2d7169]{flex:0 8 auto;font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.model-pill .think-suffix[data-v-4b2d7169]{color:var(--color-accent);font-weight:var(--weight-medium);flex:none}.model-pill .cv[data-v-4b2d7169]{color:var(--faint);flex:none;transition:transform var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.model-pill:hover .cv[data-v-4b2d7169],.model-pill.open .cv[data-v-4b2d7169]{color:var(--dim)}.model-pill.open .cv[data-v-4b2d7169]{transform:rotate(180deg)}.model-pill.icon-only[data-v-4b2d7169]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.model-pill.login-pill[data-v-4b2d7169],.model-pill.login-pill .mp-name[data-v-4b2d7169]{color:var(--color-accent)}.model-dropdown[data-v-4b2d7169]{position:absolute;bottom:calc(100% + var(--space-1));right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));z-index:var(--z-dropdown);min-width:200px;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;font-family:var(--font-ui);transform-origin:bottom right;overflow-y:auto;overscroll-behavior:contain}.model-dropdown.flip-down[data-v-4b2d7169]{top:calc(100% + var(--space-1));bottom:auto;transform-origin:top right}.composer-menu-pop-enter-active[data-v-4b2d7169]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.composer-menu-pop-leave-active[data-v-4b2d7169]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.composer-menu-pop-enter-from[data-v-4b2d7169],.composer-menu-pop-leave-to[data-v-4b2d7169]{opacity:0;transform:scale(.97) translateY(2px)}.model-dropdown.flip-down.composer-menu-pop-enter-from[data-v-4b2d7169],.model-dropdown.flip-down.composer-menu-pop-leave-to[data-v-4b2d7169]{transform:scale(.97) translateY(-2px)}.md-list[data-v-4b2d7169]{display:flex;flex-direction:column;gap:1px;max-height:min(320px,40vh);overflow-y:auto;overscroll-behavior:contain}.md-section[data-v-4b2d7169]{padding:4px 9px 2px;font-size:var(--text-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:var(--weight-semibold)}.md-row[data-v-4b2d7169]{display:flex;align-items:center;gap:7px;width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);padding:5px 9px;border-radius:var(--radius-dropdown-row);text-align:left;transition:background var(--duration-base) var(--ease-out)}.md-row[data-v-4b2d7169]:hover{background:var(--color-hover)}.md-row:hover .md-name[data-v-4b2d7169]{color:var(--color-text-strong)}.md-row[data-v-4b2d7169]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md-row[data-v-4b2d7169]:disabled{cursor:default;opacity:.58}.md-row[data-v-4b2d7169]:disabled:hover{background:none}.md-row.is-current[data-v-4b2d7169]{background:var(--color-selected)}.md-note[data-v-4b2d7169]{margin-left:auto;color:var(--muted);font-size:var(--ui-font-size-xs)}.md-row-more .md-more-icon[data-v-4b2d7169]{color:var(--dim)}.md-row-more .md-more-arrow[data-v-4b2d7169]{color:var(--faint);flex:none;transition:color var(--duration-base) var(--ease-out)}.md-row-more:hover .md-more-arrow[data-v-4b2d7169]{color:var(--dim)}.md-check[data-v-4b2d7169]{width:14px;flex:none;color:var(--color-accent);font-weight:500;display:flex;justify-content:center}.md-name[data-v-4b2d7169]{flex:1;transition:color var(--duration-base) var(--ease-out)}.md-provider[data-v-4b2d7169]{color:var(--muted);font-size:var(--ui-font-size-xs);flex:none}.md-star[data-v-4b2d7169]{color:var(--star);flex:none;margin-left:auto}.md-divider[data-v-4b2d7169]{height:1px;background:var(--line);margin:3px 0}.md-thinking[data-v-4b2d7169]{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:var(--radius-dropdown-row)}.md-thinking .md-name[data-v-4b2d7169]{font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);flex:none}.md-thinking .md-note[data-v-4b2d7169],.md-thinking .ui-seg[data-v-4b2d7169]{margin-left:auto}.md-cache-note[data-v-4b2d7169]{width:0;min-width:100%;padding:2px 7px 4px;color:var(--muted);font-size:var(--ui-font-size-xs);line-height:1.4}.perm-dropdown[data-v-4b2d7169]{position:absolute;bottom:calc(100% + 4px);left:var(--composer-control-inset);z-index:var(--z-dropdown);min-width:220px;width:max-content;max-width:calc(100vw - var(--space-8));background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;transform-origin:bottom left}.pd-row[data-v-4b2d7169]{display:grid;grid-template-columns:var(--p-ic-md) var(--composer-menu-desc-width, max-content) var(--p-ic-sm);column-gap:7px;row-gap:2px;align-items:start;width:100%;background:none;border:none;cursor:pointer;padding:6px 7px;border-radius:var(--radius-dropdown-row);text-align:left}.pd-row[data-v-4b2d7169]:hover,.pd-row.is-current[data-v-4b2d7169]{background:var(--color-hover)}.pd-icon[data-v-4b2d7169]{grid-column:1;grid-row:1;width:var(--p-ic-md);min-height:1lh;display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-check[data-v-4b2d7169]{grid-column:3;grid-row:1;width:var(--p-ic-sm);min-height:1lh;color:var(--color-accent);font-size:var(--ui-font-size);font-weight:var(--weight-medium);display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-info[data-v-4b2d7169]{display:contents}.pd-name[data-v-4b2d7169]{grid-column:2;grid-row:1;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.pd-desc[data-v-4b2d7169]{grid-column:2;grid-row:2;width:var(--composer-menu-desc-width, auto);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-caption);color:var(--muted);line-height:var(--leading-tight)}@media(max-width:640px){.composer[data-v-4b2d7169]{padding:9px var(--dock-inline-right, max(12px, var(--safe-right))) max(24px,var(--safe-bottom)) var(--dock-inline-left, max(12px, var(--safe-left)))}.composer-card[data-v-4b2d7169]{--composer-control-size: 36px;--composer-mobile-input-size: 16px;max-width:100%}.input-row[data-v-4b2d7169]{gap:6px;min-width:0}.send[data-v-4b2d7169],.stop[data-v-4b2d7169]{width:var(--composer-send-size);height:var(--composer-send-size);min-width:var(--composer-send-size);padding:0;border-radius:var(--radius-full);font-size:0;align-self:flex-end;position:relative}.ph[data-v-4b2d7169] .wm-pill{height:calc(var(--composer-mobile-input-size) * 1.5);line-height:calc(var(--composer-mobile-input-size) * 1.5);padding-right:calc((var(--composer-mobile-input-size) * 1.5 - var(--wm-x-size)) / 2)}.model-dropdown[data-v-4b2d7169]{right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));left:auto;min-width:180px;max-width:calc(100vw - 24px)}.ph[data-v-4b2d7169]{font-size:var(--composer-mobile-input-size)}.model-pill[data-v-4b2d7169],.attach-btn[data-v-4b2d7169]{font-size:var(--ui-font-size)}.toolbar[data-v-4b2d7169]{gap:6px;min-width:0}.toolbar-left[data-v-4b2d7169],.toolbar-right[data-v-4b2d7169]{min-width:0}.model-pill[data-v-4b2d7169]{max-width:min(52vw,220px)}.model-pill .mp-name[data-v-4b2d7169]{max-width:min(40vw,170px)}.md-row[data-v-4b2d7169],.md-section[data-v-4b2d7169]{font-size:var(--ui-font-size)}.md-thinking[data-v-4b2d7169]{flex-wrap:wrap;row-gap:6px}.md-thinking .ui-seg[data-v-4b2d7169]{margin-left:0}.pd-name[data-v-4b2d7169]{font-size:var(--ui-font-size)}.pd-desc[data-v-4b2d7169]{font-size:var(--text-xs)}}@media(hover:none){.ph[data-wm=true][data-v-4b2d7169] .ProseMirror{padding-top:var(--space-3)}.ph[data-v-4b2d7169] .wm-pill{display:flex;width:max-content;margin-right:0;margin-bottom:var(--space-3);padding-right:calc((var(--touch-target-min) - var(--wm-x-size)) / 2)}.ph[data-v-4b2d7169] .wm-x:before{inset:calc((var(--wm-x-size) - var(--touch-target-min)) / 2)}.ph[data-wm=true][data-v-4b2d7169]{min-height:calc(36px + var(--space-3))}}@media(max-width:640px)and (hover:none){.send[data-v-4b2d7169],.stop[data-v-4b2d7169],.attach-btn[data-v-4b2d7169],.expand-btn[data-v-4b2d7169],.model-pill[data-v-4b2d7169]{position:relative}.send[data-v-4b2d7169]:before,.stop[data-v-4b2d7169]:before,.attach-btn[data-v-4b2d7169]:before,.expand-btn[data-v-4b2d7169]:before,.model-pill[data-v-4b2d7169]:before{content:"";position:absolute;inset:-6px}.expand-btn[data-v-4b2d7169]:before{inset:-11px}.perm-pill[data-v-4b2d7169]{height:var(--touch-target-min)}.labels-collapsed .perm-pill[data-v-4b2d7169]{width:var(--touch-target-min);height:var(--touch-target-min)}}.appr[data-v-03ef6cfa]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.appr[data-v-03ef6cfa]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.appr.scrolled[data-v-03ef6cfa]:before{opacity:1}.appr>.ah[data-v-03ef6cfa],.appr>.af[data-v-03ef6cfa]{flex:none}.appr.minimized[data-v-03ef6cfa]{transition:background var(--duration-fast) var(--ease-out)}.appr.minimized[data-v-03ef6cfa]:hover{background:var(--color-hover)}.ah[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0;flex-wrap:nowrap}.appr.minimized .ah[data-v-03ef6cfa]{padding-bottom:var(--space-3)}.appr.minimized .ah.clickable[data-v-03ef6cfa]{cursor:pointer}.akind[data-v-03ef6cfa]{color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);white-space:nowrap;flex:none}.apeek[data-v-03ef6cfa]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.amin[data-v-03ef6cfa],.aexpand[data-v-03ef6cfa]{margin-left:auto;flex:none}.aexpand+.amin[data-v-03ef6cfa]{margin-left:0}.ab[data-v-03ef6cfa]{display:flex;flex-direction:column;flex:1;min-height:0;padding:var(--space-3) var(--space-4) 0}.ab[data-v-03ef6cfa]>*{flex:0 1 auto;min-height:0}.ab>.plan-path[data-v-03ef6cfa]{flex:none}.ab>.body-plan-wrap[data-v-03ef6cfa]{flex:1}.plan-path[data-v-03ef6cfa]{display:block;width:100%;margin-bottom:var(--space-2);padding:0;border:none;background:transparent;color:var(--color-accent);font:var(--text-xs) var(--font-mono);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-03ef6cfa]:hover{text-decoration:underline}.plan-path[data-v-03ef6cfa]:focus-visible{outline:none;text-decoration:underline;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.body-code[data-v-03ef6cfa]{display:flex;flex-direction:column}.body-code.expanded[data-v-03ef6cfa]{flex:1}.body-code.expanded[data-v-03ef6cfa] .hl-code{max-height:none;flex:1}.code-path[data-v-03ef6cfa]{flex:none;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body-shell[data-v-03ef6cfa]{overflow-y:auto}.shell-cmd[data-v-03ef6cfa]{font:var(--text-sm) var(--font-mono);background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-all;max-height:160px;overflow-y:auto;color:var(--color-text)}.shell-dollar[data-v-03ef6cfa]{color:var(--color-accent-hover);font-weight:var(--weight-medium);margin-right:var(--space-2)}.shell-cwd[data-v-03ef6cfa]{font:var(--text-xs) var(--font-mono);color:var(--color-text-muted);margin-top:var(--space-1)}.shell-danger[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui);background:var(--color-danger-soft)}.shell-danger-ic[data-v-03ef6cfa]{flex:none}.body-chip[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);overflow-y:auto}.chip-label[data-v-03ef6cfa]{background:var(--color-inline-code-bg);border-radius:var(--radius-sm);padding:2px var(--space-2);font:var(--weight-semibold) var(--text-xs) var(--font-mono);color:var(--color-text-muted);white-space:nowrap}.chip-value[data-v-03ef6cfa]{font:var(--text-sm) var(--font-mono);color:var(--color-text);word-break:break-all}.chip-detail[data-v-03ef6cfa]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted)}.body-todo[data-v-03ef6cfa]{overflow-y:auto}.todo-item[data-v-03ef6cfa]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-1) 0;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.todo-glyph[data-v-03ef6cfa]{color:var(--color-accent);font-size:var(--text-sm);flex:none;width:14px}.todo-title[data-v-03ef6cfa]{color:var(--color-text)}.todo-done[data-v-03ef6cfa]{color:var(--color-text-muted);text-decoration:line-through}.body-generic[data-v-03ef6cfa]{font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);word-break:break-word;overflow-y:auto}.body-plan-wrap[data-v-03ef6cfa]{display:flex;flex-direction:column;overflow-y:auto}.body-plan-wrap[data-v-03ef6cfa]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.body-plan-wrap.scrolled[data-v-03ef6cfa]:before{opacity:1}.body-plan-wrap>.plan-opts[data-v-03ef6cfa]{flex:none}.body-plan[data-v-03ef6cfa]{max-height:50vh;overflow-y:auto;min-height:0}.body-plan.expanded[data-v-03ef6cfa]{max-height:none;flex:1}.plan-opts[data-v-03ef6cfa]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-3);padding-top:var(--space-3);border-top:.5px solid var(--color-line)}.popt[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text);font:var(--text-sm)/var(--leading-normal) var(--font-ui);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.popt[data-v-03ef6cfa]:hover:not(:disabled){background:var(--color-hover)}.popt[data-v-03ef6cfa]:focus-visible{outline:none;background:var(--color-hover);box-shadow:var(--p-focus-ring)}.popt[data-v-03ef6cfa]:disabled{cursor:default;opacity:.6}.popt-key[data-v-03ef6cfa]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.popt-text[data-v-03ef6cfa]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.popt-label[data-v-03ef6cfa]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.popt-desc[data-v-03ef6cfa]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.popt-spin[data-v-03ef6cfa]{flex:none;color:var(--color-text-muted)}.feedback-wrap[data-v-03ef6cfa]{margin-top:var(--space-3);overflow-y:auto}.feedback-hint[data-v-03ef6cfa]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted);margin-top:var(--space-1)}.af[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.abtns[data-v-03ef6cfa]{display:flex;align-items:center;gap:var(--space-1)}.knum[data-v-03ef6cfa]{min-width:16px;height:16px;padding:0 3px;border-radius:var(--radius-xs);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/16px var(--font-ui);text-align:center}.abtns .ui-button--primary .knum[data-v-03ef6cfa]{background:color-mix(in srgb,var(--color-text-on-accent) 28%,transparent);color:var(--color-text-on-accent)}@media(max-width:640px){.popt[data-v-03ef6cfa]{min-height:44px;padding:var(--space-3)}.af[data-v-03ef6cfa]{flex-direction:column;align-items:stretch}.abtns[data-v-03ef6cfa]{flex-direction:column;margin-left:0;gap:var(--space-2)}.abtns[data-v-03ef6cfa] .ui-button{width:100%;min-height:46px}.abtns .amain[data-v-03ef6cfa]{order:-1}}.chat-dock[data-v-744a8d72]{--dock-inline-left: 16px;--dock-inline-right: 16px;box-sizing:border-box;width:100%;max-width:calc(var(--read-max) + var(--panes-scrollbar-width, 0px));padding-right:var(--panes-scrollbar-width, 0px);flex:none;position:absolute;inset:auto 0 0;background:transparent;z-index:var(--z-sticky)}.chat-dock.has-popup[data-v-744a8d72]{z-index:var(--z-dropdown)}.chat-dock.align-center[data-v-744a8d72]{margin-left:auto;margin-right:auto}.chat-dock.align-left[data-v-744a8d72]{margin-left:0;margin-right:auto}.chat-dock.align-mobile[data-v-744a8d72]{max-width:none}.chat-dock[data-v-744a8d72]:before{--fade: 48px;--veil: 72px;content:"";position:absolute;top:calc(-1 * var(--fade));right:0;bottom:0;left:0;z-index:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-bg) 0%,transparent),color-mix(in srgb,var(--color-bg) 30%,transparent) 21px,color-mix(in srgb,var(--color-bg) 70%,transparent) 45px,var(--color-bg) var(--veil))}.chat-dock[data-v-744a8d72]>*{position:relative;z-index:1}.dock-work-panel[data-v-744a8d72]{position:absolute;left:16px;right:calc(16px + var(--panes-scrollbar-width, 0px));bottom:100%;background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);margin-bottom:var(--space-2);max-height:min(360px,50vh);display:flex;flex-direction:column;overflow:hidden;user-select:none}.dock-work-panel.panel-todos .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-head[data-v-744a8d72]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-body[data-v-744a8d72]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-todos .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-head[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-head[data-v-744a8d72]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-tab[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-tab[data-v-744a8d72]{padding:0;line-height:var(--leading-solid)}.dock-work-panel.panel-goal .gh-time[data-v-744a8d72]{color:var(--color-text-muted)}.dock-work-panel.panel-todos .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-goal .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-plan .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-subagent .dock-work-body[data-v-744a8d72],.dock-work-panel.panel-bash .dock-work-body[data-v-744a8d72]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-subagent[data-v-744a8d72],.dock-work-panel.panel-bash[data-v-744a8d72]{height:min(var(--p-dock-panel-h),50vh)}.dock-work-tab.tab-progress[data-v-744a8d72]{display:inline-flex;align-items:center;gap:var(--space-2)}@media(max-width:640px){.dock-work-panel.panel-subagent[data-v-744a8d72],.dock-work-panel.panel-bash[data-v-744a8d72]{height:auto}}.dock-work-head[data-v-744a8d72]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:.5px solid var(--color-line);position:relative;z-index:1}.dock-work-body[data-v-744a8d72]{padding:var(--space-2) var(--space-3);overflow-y:auto;min-height:0;display:flex;flex-direction:column}@media(max-width:480px){.dock-work-head[data-v-744a8d72]{flex-wrap:wrap}}.dock-work-panel.body-scrolled-up .dock-work-body[data-v-744a8d72]{mask-image:linear-gradient(to bottom,transparent,black var(--menu-scroll-fade))}.dock-work-body[data-v-744a8d72] .taskspane{border:none;background:transparent;padding:0}.dock-work-body[data-v-744a8d72] .taskspane .tp-head{display:none}.dock-workbar[data-v-744a8d72]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-1-5);padding:var(--space-1) calc(var(--dock-inline-right) + var(--space-4) + var(--p-hairline)) var(--space-05) calc(var(--dock-inline-left) + var(--space-4) + var(--p-hairline))}.dock-workbar[data-v-744a8d72] .ui-pill{position:relative;gap:var(--space-1-5);height:auto;padding:var(--space-2) calc(var(--space-3) + var(--space-05)) var(--space-2) var(--space-3);border:none;border-radius:var(--radius-lg);background:var(--color-selected);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);color:var(--color-text);font-size:var(--text-base);line-height:var(--leading-normal)}.dock-workbar[data-v-744a8d72] .ui-pill svg{width:1.5em;height:1.5em;color:inherit}.dock-workbar[data-v-744a8d72] .ui-pill:after{content:"";position:absolute;inset:0;border-radius:var(--radius-lg);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.dock-workbar[data-v-744a8d72] .ui-pill:hover:not(:disabled):after,.dock-workbar[data-v-744a8d72] .ui-pill.is-active:after{opacity:1}.chat-dock.pills-compact .dock-workbar[data-v-744a8d72] .ui-pill{padding:var(--space-2)}.chat-dock.pills-compact .dock-workbar[data-v-744a8d72] .ui-pill>span{display:none}.dock-workbar .dw-count[data-v-744a8d72]{color:var(--color-text-muted)}.dock-workbar .dw-running[data-v-744a8d72]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted)}.dock-workbar .dw-goal-status[data-v-744a8d72]{font-weight:var(--weight-medium)}.dock-workbar .dw-goal-status--active[data-v-744a8d72]{color:var(--color-success)}.dock-workbar .dw-goal-status--paused[data-v-744a8d72]{color:var(--color-warning)}.dock-workbar .dw-goal-status--blocked[data-v-744a8d72]{color:var(--color-danger)}.dock-approval[data-v-744a8d72]{margin-top:8px}.chat-dock.has-approval[data-v-744a8d72],.chat-dock.has-question[data-v-744a8d72]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance))}.chat-dock.has-approval>.dock-workbar[data-v-744a8d72],.chat-dock.has-question>.dock-workbar[data-v-744a8d72]{flex:none}.chat-dock.has-approval>.dock-approval[data-v-744a8d72],.chat-dock.has-question>.dock-question[data-v-744a8d72]{min-height:0}@media(max-width:640px){.chat-dock[data-v-744a8d72]{--dock-inline-left: max(12px, var(--safe-left));--dock-inline-right: max(12px, var(--safe-right))}.dock-work-panel[data-v-744a8d72]{left:10px;right:calc(10px + var(--panes-scrollbar-width, 0px))}.dock-work-head-actions[data-v-744a8d72] .ui-seg__item{height:var(--touch-target-min)}.dock-work-head-actions[data-v-744a8d72] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}}.chat-dock[data-v-744a8d72]:not(.align-mobile) .composer{padding-bottom:14px}.dock-panel-enter-active[data-v-744a8d72]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.dock-panel-leave-active[data-v-744a8d72]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.dock-panel-enter-from[data-v-744a8d72],.dock-panel-leave-to[data-v-744a8d72]{opacity:0;transform:translateY(var(--motion-panel-shift)) scale(var(--motion-panel-scale))}.ws-home[data-v-33dedf8a]{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);padding:0 var(--space-4) var(--space-4);user-select:none}.ws-home-title[data-v-33dedf8a]{display:flex;align-items:center;gap:10px;color:var(--color-text);font-size:var(--ui-t1);font-weight:var(--weight-section-label)}.ws-home-folder[data-v-33dedf8a]{color:var(--color-text-muted)}.ws-home-path[data-v-33dedf8a]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs[data-v-460203b8]{flex:none;display:flex;flex-direction:column;margin:var(--space-4) var(--dock-inline-right, 16px) 0 var(--dock-inline-left, 16px)}.wrs-caption[data-v-460203b8]{padding:0 var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.wrs-row[data-v-460203b8]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-width:0;padding:6px var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.wrs-row[data-v-460203b8]:hover{background:var(--color-hover)}.wrs-row[data-v-460203b8]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.wrs-ico[data-v-460203b8]{display:inline-flex;flex:none}.wrs-ico--open[data-v-460203b8]{color:var(--color-success)}.wrs-ico--done[data-v-460203b8]{color:var(--color-done)}.wrs-title[data-v-460203b8]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs-time[data-v-460203b8]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.wrs-foot[data-v-460203b8]{display:flex;justify-content:center;margin-top:var(--space-2)}.wrs-more[data-v-460203b8]{display:inline-flex;align-items:center;gap:var(--space-1);height:26px;padding:0 var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.wrs-more[data-v-460203b8]:hover{background:var(--color-hover);color:var(--color-text)}.wrs-more svg[data-v-460203b8]{color:var(--color-text-faint)}.tsearch[data-v-43f7fb07]{position:absolute;top:calc(var(--panel-head-h, 48px) + var(--space-3));right:var(--space-3);z-index:var(--z-sticky);width:min(var(--p-findbar-w),calc(100% - var(--space-3) * 2));background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tsearch.mobile[data-v-43f7fb07]{top:var(--space-3)}.tsearch[data-v-43f7fb07]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-2xl);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.tsearch[data-v-43f7fb07]:focus-within:after{opacity:1}.tsearch-main[data-v-43f7fb07]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);min-height:calc(var(--space-8) + 2 * var(--space-1))}.tsearch-icon[data-v-43f7fb07]{flex:none;margin-left:var(--space-1);color:var(--color-text-muted)}.tsearch-input[data-v-43f7fb07]{flex:1;min-width:0;height:var(--space-8);padding:0;border:none;background:transparent;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text)}.tsearch-input[data-v-43f7fb07]:focus-visible{outline:none}.tsearch-input[data-v-43f7fb07]::placeholder{color:var(--color-text-muted)}.tsearch-spin[data-v-43f7fb07]{display:inline-flex;flex:none}.tsearch-sep[data-v-43f7fb07]{flex:none;width:var(--p-hairline);height:var(--space-4);background:var(--color-line)}.tsearch .tsearch-close[data-v-43f7fb07]{border-radius:var(--radius-full)}.tsearch-foot-wrap[data-v-43f7fb07]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.tsearch-foot-wrap.open[data-v-43f7fb07]{grid-template-rows:1fr}.tsearch-foot[data-v-43f7fb07]{overflow:hidden;min-height:0;display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2)}.tsearch-foot-wrap.open .tsearch-foot[data-v-43f7fb07]{padding:var(--space-1) var(--space-2);border-top:var(--p-hairline) solid var(--color-line)}.tsearch-count[data-v-43f7fb07]{margin-left:auto;padding-right:var(--space-1);font-size:var(--ui-font-size-sm);color:var(--color-text-muted);white-space:nowrap;user-select:none}.tsearch-rings[data-v-43f7fb07]{position:absolute;inset:0;pointer-events:none}.tsearch-ring[data-v-43f7fb07]{position:absolute;box-sizing:content-box;border:var(--p-findring-w) solid var(--color-warning);margin:calc(-1 * var(--p-findring-w));border-radius:var(--radius-xs);pointer-events:none}.con[data-v-e813729a]{--read-max: 760px;display:flex;flex-direction:column;min-width:0;height:100%;position:relative;container-type:inline-size}.empty-drag[data-v-e813729a]{position:absolute;top:0;left:0;right:0;height:var(--panel-head-h, 48px)}.empty-drag.macos-desktop[data-v-e813729a]{-webkit-app-region:drag}.empty-panel-btn[data-v-e813729a]{position:absolute;top:var(--space-3);right:var(--space-4);z-index:var(--z-sticky);width:var(--space-6);height:var(--space-6);border-radius:var(--radius-sm);-webkit-app-region:no-drag}.empty-panel-btn[data-v-e813729a] svg{width:var(--p-ic-sm);height:var(--p-ic-sm)}.panes[data-v-e813729a]{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;scrollbar-gutter:stable}.panes[data-v-e813729a]::-webkit-scrollbar{width:4px}.panes[data-v-e813729a]::-webkit-scrollbar-thumb{background:transparent;transition:background var(--duration-base) var(--ease-out)}.panes.scrolling[data-v-e813729a]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.panes.scrolling[data-v-e813729a]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panes.session-settling .chat[data-v-e813729a]>*:not(.chat-loading){visibility:hidden}.panes.is-following[data-v-e813729a],.panes.history-prepending[data-v-e813729a],.panes.is-pinned[data-v-e813729a]{overflow-anchor:none}.chat-layout[data-v-e813729a]{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.chat-scroll[data-v-e813729a]{flex:1;min-height:0;position:relative}.content-wrap[data-v-e813729a]{width:100%;max-width:var(--read-max);min-height:100%;box-sizing:border-box;padding-bottom:var(--chat-dock-height, 0px);display:flex;flex-direction:column;flex-shrink:0}.content-wrap.align-center[data-v-e813729a]{margin-left:auto;margin-right:auto}.content-wrap.align-left[data-v-e813729a]{margin-left:0;margin-right:auto}.content-wrap.align-mobile[data-v-e813729a]{max-width:none}@media(max-width:640px){.con.mobile[data-v-e813729a]{min-width:0;overflow:hidden}.con.mobile .panes[data-v-e813729a]{scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}.content-wrap.align-mobile[data-v-e813729a]{width:100%;min-width:0}}.empty-spacer[data-v-e813729a]{flex:1}.empty-tail[data-v-e813729a]{min-height:0;overflow-y:auto;padding-bottom:var(--space-4);box-sizing:border-box}.empty-hint[data-v-e813729a]{flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 16px 16px;color:var(--color-text);font-family:var(--font-ui);user-select:none}.empty-hint-title[data-v-e813729a]{font-size:calc(var(--ui-font-size) + 16px);font-optical-sizing:auto;font-weight:600}.empty-hint-title.is-starting[data-v-e813729a]{display:inline-flex;align-items:center;gap:9px;color:var(--dim);font-weight:400}.empty-doodle[data-v-e813729a]{width:min(340px,62vw)}.empty-hint-text[data-v-e813729a]{display:inline-block;font-size:var(--text-base);color:var(--dim);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upgrade-banner[data-v-e813729a]{flex:none;display:flex;align-items:center;gap:var(--space-3);margin:0 var(--dock-inline-right, 16px) var(--space-2) var(--dock-inline-left, 16px);padding:var(--space-2) var(--space-3);border:.5px solid var(--color-accent-bd);border-radius:var(--radius-xl);background:var(--color-accent-soft)}.upgrade-banner-icon[data-v-e813729a]{flex:none;color:var(--color-accent)}.upgrade-banner-text[data-v-e813729a]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text)}.upgrade-banner-cta[data-v-e813729a]{flex:none;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-accent);cursor:pointer}.upgrade-banner-cta[data-v-e813729a]:hover{color:var(--color-accent-hover)}.empty-composer[data-v-e813729a] .composer-card{position:relative;z-index:var(--z-sticky)}.empty-composer[data-v-e813729a]:not(.expanded) .ph{min-height:3lh}.ws-bar[data-v-e813729a]{margin-top:calc(-1 * var(--space-4));padding:calc(var(--space-4) + var(--space-2)) var(--space-2) var(--space-2);background:color-mix(in srgb,var(--color-hover) 60%,transparent);border-radius:0 0 var(--radius-2xl) var(--radius-2xl);font-family:var(--font-ui)}.ws-anchor[data-v-e813729a]{position:relative}.ws-chip[data-v-e813729a]{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;padding:var(--space-2) var(--space-3);background:none;border:none;border-radius:var(--radius-full);color:var(--color-text-muted);font-family:inherit;font-size:var(--ui-font-size-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ws-chip[data-v-e813729a]:hover,.ws-chip.open[data-v-e813729a]{background:var(--color-selected);color:var(--color-text)}.ws-chip[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-chip>.kw-icon[data-v-e813729a]{flex:none}.ws-chip-name[data-v-e813729a]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-option-label)}.ws-chip-chev[data-v-e813729a]{flex:none;transition:transform var(--duration-base) var(--ease-out)}.ws-chip.open .ws-chip-chev[data-v-e813729a]{transform:rotate(180deg)}.ws-chip.ws-ghost[data-v-e813729a]{color:var(--color-text-muted)}.ws-chip.ws-ghost[data-v-e813729a]:hover{color:var(--color-text)}.ws-backdrop[data-v-e813729a]{position:fixed;inset:0;z-index:var(--z-sticky)}.ws-panel[data-v-e813729a]{position:absolute;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);left:0;top:calc(100% + var(--space-1));z-index:var(--z-dropdown);width:max-content;min-width:min(calc(var(--space-8) * 8),100%);max-width:100%;max-height:calc(var(--space-8) * 10);overflow:hidden auto;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:var(--space-1);animation:ws-pop-e813729a var(--duration-base) var(--ease-out)}.ws-panel.up[data-v-e813729a]{top:auto;bottom:calc(100% + var(--space-1));animation-name:ws-pop-up-e813729a}@keyframes ws-pop-e813729a{0%{opacity:0;transform:translateY(calc(-1 * var(--space-1))) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ws-pop-up-e813729a{0%{opacity:0;transform:translateY(var(--space-1)) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.ws-caption[data-v-e813729a]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--color-text-faint);user-select:none}.ws-row[data-v-e813729a]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-1) var(--space-2);cursor:pointer;font-family:var(--font-ui)}.ws-row>.kw-icon[data-v-e813729a]{flex:none;color:var(--muted)}.ws-row[data-v-e813729a]:hover{background:var(--color-hover)}.ws-row.on[data-v-e813729a]{background:var(--color-selected)}.ws-row[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-info[data-v-e813729a]{flex:1;min-width:0;display:flex;flex-direction:column}.ws-name[data-v-e813729a]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-option-label);color:var(--color-text);line-height:var(--leading-normal)}.ws-path[data-v-e813729a]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:var(--weight-option-label);color:var(--muted);line-height:var(--leading-normal)}.ws-check[data-v-e813729a]{flex:none;margin-left:var(--space-3);color:var(--color-text)}.ws-divider[data-v-e813729a]{height:1px;margin:var(--space-1) var(--space-2);background:var(--line)}.ws-action[data-v-e813729a]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--dim)}.ws-action>.kw-icon[data-v-e813729a]{flex:none;color:var(--muted)}.ws-action span[data-v-e813729a]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-action[data-v-e813729a]:hover{background:var(--color-hover);color:var(--color-text)}.ws-action:hover>.kw-icon[data-v-e813729a]{color:var(--dim)}.ws-action[data-v-e813729a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chat-scroll[data-v-e813729a]{display:flex;flex-direction:column}.mobile .panes[data-v-e813729a]:has(>.chat-layout){overflow:hidden;scrollbar-gutter:auto}.newmsg-pill[data-v-e813729a]{position:absolute;left:50%;bottom:12px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:.5px solid var(--line);background:var(--panel);color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);cursor:pointer;box-shadow:var(--shadow-sm);z-index:var(--z-sticky)}.pill-chevron[data-v-e813729a]{width:12px;height:12px}.pill-enter-active[data-v-e813729a],.pill-leave-active[data-v-e813729a]{transition:opacity .2s ease,transform .2s ease}.pill-enter-from[data-v-e813729a],.pill-leave-to[data-v-e813729a]{opacity:0;transform:translate(-50%) translateY(8px)}.undo-toast[data-v-e813729a]{position:absolute;left:50%;top:60px;transform:translate(-50%);padding:8px 14px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--bg);font-size:var(--ui-font-size-sm);z-index:var(--z-sticky);box-shadow:var(--shadow-sm)}.undo-toast-text[data-v-e813729a]{display:flex;align-items:center;gap:8px}.undo-toast-enter-active[data-v-e813729a],.undo-toast-leave-active[data-v-e813729a]{transition:opacity .15s ease,transform .15s ease}.undo-toast-enter-from[data-v-e813729a],.undo-toast-leave-to[data-v-e813729a]{opacity:0;transform:translate(-50%) translateY(-6px)}.con[data-v-e813729a]{background:var(--bg)}.newmsg-pill[data-v-e813729a]{font-family:var(--sans)}.panel-tab-bar[data-v-808fd300]{position:relative;height:var(--panel-head-h);flex:none;display:flex;align-items:center;gap:var(--space-05);padding:0 var(--space-4) 0 var(--space-2);border-bottom:var(--p-hairline) solid var(--color-line)}.ptb-tabs[data-v-808fd300]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:var(--space-05);overflow-x:auto;scrollbar-width:none}.ptb-tabs[data-v-808fd300]::-webkit-scrollbar{display:none}.ptb-tab[data-v-808fd300]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:var(--panel-tab-h);padding:0 var(--space-1-5) 0 var(--panel-tab-pad-x);max-width:var(--panel-tab-max-w);min-width:0;flex:none;border-radius:var(--radius-md);background:var(--color-hover);color:var(--color-text-muted);transition:background var(--duration-fast) var(--ease-out)}.ptb-tab[data-v-808fd300]:hover{background:var(--color-selected);color:var(--color-text)}.ptb-tab.on[data-v-808fd300]{background:var(--color-selected-hover);color:var(--color-text)}.ptb-tab-main[data-v-808fd300]{display:inline-flex;align-items:center;gap:var(--space-1-5);flex:1;min-width:0;padding:0;border:none;background:none;color:inherit;font-family:var(--font-ui);font-size:var(--text-sm);white-space:nowrap;user-select:none;cursor:pointer}.ptb-tab-main[data-v-808fd300]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.ptb-t[data-v-808fd300]{overflow:hidden;text-overflow:ellipsis}.ptb-x[data-v-808fd300]{width:var(--panel-tab-x-size);height:var(--panel-tab-x-size);flex:none;padding:0;border:none;border-radius:var(--radius-xs);display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--color-text-faint);cursor:pointer}.ptb-x[data-v-808fd300]:hover{background:var(--color-well);color:var(--color-text)}.ptb-x[data-v-808fd300]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ptb-tail[data-v-808fd300]{flex:none;display:flex;align-items:center;gap:var(--space-05);padding-left:var(--space-1)}.panel-add-menu[data-v-808fd300]{position:absolute;top:calc(var(--panel-head-h) - var(--space-1-5));right:var(--space-4);z-index:var(--z-dropdown)}@media(hover:none),(max-width:640px){.ptb-x[data-v-808fd300],.ptb-tail[data-v-808fd300] .ui-icon-button{position:relative}.ptb-x[data-v-808fd300]:after{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--panel-tab-x-size)) / 2)}.ptb-tail[data-v-808fd300] .ui-icon-button:after{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.pl[data-v-445e1a28]{display:flex;flex-direction:column;justify-content:center;gap:var(--space-3);height:100%;box-sizing:border-box;width:min(var(--panel-launcher-w),100%);margin-inline:auto;padding:var(--space-2) 0}.global-preview[data-v-46c316da]{--preview-w: var(--panel-default-w);grid-column:4;grid-row:1 / -1;min-width:0;min-height:0;width:0;background:var(--bg);overflow:hidden;position:relative}.global-preview.open[data-v-46c316da]{width:var(--preview-w)}.global-preview.expanded[data-v-46c316da]{width:auto}.global-preview.mobile[data-v-46c316da]{position:fixed;inset:0;z-index:var(--z-sticky);width:auto;transition:none;border-top:var(--p-hairline) solid var(--color-text)}.panel-resize[data-v-46c316da]{position:absolute;left:var(--space-05);top:0;bottom:0}.pt-shell[data-v-46c316da]{display:flex;flex-direction:column;height:100%;box-sizing:border-box;position:relative}.global-preview:not(.mobile) .pt-shell[data-v-46c316da]{width:var(--preview-w);border-left:var(--p-hairline) solid var(--line)}.global-preview:not(.mobile).expanded .pt-shell[data-v-46c316da]{width:auto;border-left:none}.pt-body[data-v-46c316da]{flex:1;min-height:0}.pfc-host[data-v-46c316da]{position:absolute;left:0;right:0;bottom:0;z-index:var(--z-sticky);width:100%;max-width:var(--p-content-max);margin:0 auto;box-sizing:border-box;padding:0 var(--space-4) var(--space-4)}.pfc-host[data-v-46c316da]:empty{padding:0}.pt-body[data-v-46c316da]>*{height:100%;box-sizing:border-box}.session-admin[data-v-fd687e8e]{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--color-bg);font-family:var(--font-ui)}.sa-scroll[data-v-fd687e8e]{flex:1;min-height:0;overflow-y:auto}.sa-page[data-v-fd687e8e]{padding:var(--space-8) var(--space-6);display:flex;flex-direction:column;box-sizing:border-box}.sa-head[data-v-fd687e8e]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:48px;padding:0 var(--space-6);border-bottom:.5px solid var(--color-line);box-sizing:border-box}.sa-title[data-v-fd687e8e]{margin:0;font-size:var(--text-base);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);user-select:none}.sa-subtitle[data-v-fd687e8e]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.session-admin.macos-desktop .sa-head[data-v-fd687e8e]{-webkit-app-region:drag}.session-admin.macos-desktop .sa-head button[data-v-fd687e8e],.session-admin.macos-desktop .sa-head input[data-v-fd687e8e]{-webkit-app-region:no-drag}.sa-filters[data-v-fd687e8e]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)}.sa-f-label[data-v-fd687e8e]{margin-left:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);user-select:none}.sa-f-label[data-v-fd687e8e]:first-child{margin-left:0}.sa-f-actions[data-v-fd687e8e]{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:var(--space-2)}.brand-logo[data-v-0904de71]{display:block;flex:none;cursor:pointer;user-select:none;touch-action:manipulation}.nb-cards[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-2) 0 var(--space-4)}.center-body[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-8) 0 var(--space-4);text-align:center}.center-text[data-v-58e7d2aa]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.success-text[data-v-58e7d2aa]{color:var(--color-success)}.err-text[data-v-58e7d2aa]{color:var(--color-danger)}.warn-text[data-v-58e7d2aa]{color:var(--color-warning);font-size:var(--text-base)}.center-hint[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted)}.nb[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-4)}.nb-hero[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.nb-hero-icon[data-v-58e7d2aa]{display:inline-flex;margin-bottom:var(--space-1)}.nb-hero-title[data-v-58e7d2aa]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.nb-hero-hint[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.nb-manual[data-v-58e7d2aa]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.nb-manual-label[data-v-58e7d2aa]{font-size:var(--text-xs);color:var(--color-text-faint)}.nb-copy-text[data-v-58e7d2aa]{margin-left:var(--space-2)}.nb-copy-text.is-copied[data-v-58e7d2aa]{color:var(--color-success);text-decoration:none}.nb-or[data-v-58e7d2aa]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.nb-or[data-v-58e7d2aa]:before,.nb-or[data-v-58e7d2aa]:after{content:"";flex:1;height:1px;background:var(--color-line)}.nb-fallback[data-v-58e7d2aa]{display:flex;flex-direction:column;gap:var(--space-2)}.nb-fb-text[data-v-58e7d2aa]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.nb-fb-link[data-v-58e7d2aa]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.nb-fb-link[data-v-58e7d2aa]:hover{border-bottom-color:var(--color-accent)}.nb-code-row[data-v-58e7d2aa]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.nb-code[data-v-58e7d2aa]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.nb-copy.is-copied[data-v-58e7d2aa]{color:var(--color-success);border-color:var(--color-success-bd)}.actions[data-v-58e7d2aa]{display:flex;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-4)}@media(max-width:640px){.center-body[data-v-58e7d2aa],.nb[data-v-58e7d2aa]{overflow-y:auto;-webkit-overflow-scrolling:touch}.nb-code-row[data-v-58e7d2aa],.actions[data-v-58e7d2aa]{flex-wrap:wrap}.nb-code[data-v-58e7d2aa]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}.nb-copy[data-v-58e7d2aa]{min-height:34px}}.sec[data-v-b460ecbf]{margin-bottom:var(--space-5)}.sec-title[data-v-b460ecbf]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-b460ecbf]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-b460ecbf]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.pu-row[data-v-b460ecbf]:first-child{border-top:none}.pu-state[data-v-b460ecbf]{color:var(--color-text-muted);font-size:var(--text-sm)}.pu-error-text[data-v-b460ecbf]{flex:1;min-width:0}.pu-empty[data-v-b460ecbf]{color:var(--color-text-faint)}.pu-main[data-v-b460ecbf]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-b460ecbf]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-b460ecbf]{font-size:var(--text-xs);color:var(--color-text-faint)}.pu-value[data-v-b460ecbf]{flex:none;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.pu-value-sub[data-v-b460ecbf]{font-weight:var(--weight-regular);color:var(--color-text-faint)}.pu-meter[data-v-b460ecbf]{flex:none;width:120px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.pu-meter i[data-v-b460ecbf]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent);transition:width var(--duration-base) var(--ease-out)}.pu-meter i.sev-warn[data-v-b460ecbf]{background:var(--color-warning)}.pu-meter i.sev-danger[data-v-b460ecbf]{background:var(--color-danger)}.sd[data-v-08ed3275]{display:grid;grid-template-columns:148px 1fr;grid-template-areas:"tabs region";min-height:0;height:100%;user-select:none}.sd[data-v-08ed3275] :is(input,textarea,[contenteditable=true]){user-select:text}.settings-region[data-v-08ed3275]{display:flex;min-width:0;min-height:0;flex-direction:column;grid-area:region}.settings-region-header[data-v-08ed3275],.settings-tabs-header[data-v-08ed3275]{display:flex;align-items:center;height:calc(var(--space-4) + var(--icon-button-sm) + var(--space-2));box-sizing:border-box}.settings-region-header[data-v-08ed3275]{justify-content:flex-end;padding-right:var(--space-5)}.settings-tabs-header[data-v-08ed3275]{padding-inline:var(--space-3)}.settings-dialog-title[data-v-08ed3275]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text)}.settings-tabs[data-v-08ed3275]{display:flex;flex-direction:column;width:148px;padding:0 var(--space-2) var(--space-2);gap:2px;overflow-y:auto;border-right:.5px solid var(--color-line);grid-area:tabs}.settings-tab-list[data-v-08ed3275]{display:flex;flex-direction:column;gap:2px}.tab[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);text-align:left;padding:8px 10px;border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-ui-strong);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.tab[data-v-08ed3275]:hover{background:var(--color-hover);color:var(--color-text-strong)}.tab.on[data-v-08ed3275]{background:var(--color-hover);color:var(--color-text)}.tab[data-v-08ed3275]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.body[data-v-08ed3275]{display:flex;flex-direction:column;overflow-y:auto;padding:var(--space-2) 32px var(--space-5);flex:1;min-width:0}.body[data-v-08ed3275]::-webkit-scrollbar{width:4px}.body[data-v-08ed3275]::-webkit-scrollbar-track{background:transparent}.body[data-v-08ed3275]::-webkit-scrollbar-thumb{background:transparent;border-radius:var(--radius-full);transition:background var(--duration-base) var(--ease-out)}.body.scrolling[data-v-08ed3275]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.body.scrolling[data-v-08ed3275]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panel[data-v-08ed3275]{display:block}.sec[data-v-08ed3275]{padding:var(--space-4) 0}.panel>.sec[data-v-08ed3275]:first-child{padding-top:0}.sec-head[data-v-08ed3275]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.sec-title[data-v-08ed3275]{margin:0 0 var(--space-3);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.notification-settings[data-v-08ed3275]{user-select:none}.sec-head .sec-title[data-v-08ed3275]{margin-bottom:0}.row[data-v-08ed3275]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:38px;padding:var(--space-1) 0}.settings-group[data-v-08ed3275]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.settings-group>.row[data-v-08ed3275]{min-height:52px;padding:var(--space-4);border-top:.5px solid var(--color-line)}.settings-group>.row[data-v-08ed3275]:first-child{border-top:none}.settings-group>.empty-config[data-v-08ed3275]{padding:var(--space-3)}.account-row[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.account-avatar[data-v-08ed3275]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.account-avatar img[data-v-08ed3275]{width:100%;height:100%;border-radius:50%;object-fit:cover}.account-name-row[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.account-level[data-v-08ed3275]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.account-meta[data-v-08ed3275]{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.account-name[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-sub[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rlabel[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);font-weight:var(--weight-option-label);display:flex;flex-direction:column;gap:0}.rvalue[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-muted);max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rvalue.mono[data-v-08ed3275]{font-family:var(--font-mono);font-size:var(--text-xs)}.rvalue-wrap[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-1);max-width:60%;min-width:0}.rvalue-wrap .rvalue[data-v-08ed3275]{max-width:none}.sd-check[data-v-08ed3275]{color:var(--color-success)}.hint[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.body[data-v-08ed3275] .ui-seg,.body[data-v-08ed3275] .ui-select__trigger,.body[data-v-08ed3275] .ui-button,.archive-search[data-v-08ed3275]{border-width:.5px}.select-wrap[data-v-08ed3275]{min-width:220px;max-width:min(320px,50vw);flex:none}.empty-config[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:var(--space-1) 0}@media(max-width:640px){.sd[data-v-08ed3275]{grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"tabs" "region"}.settings-tabs[data-v-08ed3275]{width:auto;padding:0;overflow-x:visible;border-right:none;border-bottom:.5px solid var(--color-line)}.settings-tabs-header[data-v-08ed3275]{padding:var(--space-3)}.settings-tab-list[data-v-08ed3275]{flex-direction:row;gap:var(--space-1);overflow-x:auto;padding:0 var(--space-3) var(--space-2)}.settings-region-header[data-v-08ed3275]{padding:var(--space-3)}.body[data-v-08ed3275]{padding-inline:var(--space-3)}.tab[data-v-08ed3275]{white-space:nowrap;flex:none}.row[data-v-08ed3275]{align-items:flex-start;flex-direction:column}.settings-group[data-v-08ed3275]{margin-inline:0}.select-wrap[data-v-08ed3275]{width:100%;max-width:none}}.setting-card[data-v-08ed3275]{border-radius:var(--radius-xl);overflow:hidden;background:var(--color-surface)}.panel-head[data-v-08ed3275]{margin-bottom:var(--space-4)}.panel-title[data-v-08ed3275]{margin:0 0 var(--space-2);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.panel-desc[data-v-08ed3275]{margin:0;font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);max-width:560px}.archive-toolbar[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap}.archive-search[data-v-08ed3275]{flex:1;min-width:200px;height:36px;display:flex;align-items:center;gap:var(--space-2);padding:0 var(--space-3);border-radius:var(--radius-md);border:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);background:var(--color-surface-overlay);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.archive-search[data-v-08ed3275]:focus-within{border-color:var(--color-accent);box-shadow:var(--p-focus-ring);color:var(--color-text-muted)}.archive-search svg[data-v-08ed3275]{width:15px;height:15px;flex:none}.archive-search input[data-v-08ed3275]{width:100%;border:none;outline:none;background:transparent;font:inherit;color:var(--color-text)}.archive-list[data-v-08ed3275]{display:flex;flex-direction:column;gap:var(--space-4)}.archive-card .setting-card[data-v-08ed3275]{margin-bottom:0}.archive-workspace[data-v-08ed3275]{display:flex;align-items:center;gap:var(--space-2);margin:0 2px var(--space-2);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:var(--weight-medium)}.archive-workspace svg[data-v-08ed3275]{width:16px;height:16px;color:var(--color-text-faint);flex:none}.archive-workspace .path[data-v-08ed3275]{font-family:var(--font-ui);font-size:var(--text-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-workspace .count[data-v-08ed3275]{margin-left:auto;color:var(--color-text-faint);font-weight:var(--weight-medium);font-size:var(--text-xs);flex:none}.archive-row[data-v-08ed3275]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3);align-items:center;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.archive-row[data-v-08ed3275]:first-child{border-top:none}.archive-row[data-v-08ed3275]:hover{background:var(--color-hover)}.archive-meta[data-v-08ed3275]{min-width:0}.archive-name[data-v-08ed3275]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-time[data-v-08ed3275]{margin-top:2px;font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui)}.archive-draining[data-v-08ed3275]{margin-bottom:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-accent-hover);font-size:var(--text-xs)}.archive-empty[data-v-08ed3275]{padding:var(--space-6) var(--space-4);border-radius:var(--radius-xl);color:var(--color-text-faint);font-size:var(--text-xs);text-align:center;background:var(--color-surface)}@media(max-width:640px){.archive-toolbar[data-v-08ed3275]{flex-direction:column;align-items:stretch}.archive-search[data-v-08ed3275]{min-width:0}}[data-v-08ed3275] .ui-dialog{width:min(980px,96vw)}[data-v-08ed3275] .ui-dialog--fixed-height{height:min(780px,calc(var(--app-height, 100vh) - var(--space-8) * 2))}.actions[data-v-aaf2e643]{padding:0 var(--space-2) var(--space-2);border-bottom:.5px solid var(--color-line);margin-bottom:var(--space-1)}.newrow[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-family:var(--sans);font-weight:var(--weight-regular);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.newrow[data-v-aaf2e643]:hover{background:var(--color-hover)}.newrow[data-v-aaf2e643]:active{background:var(--color-surface-sunken);color:var(--color-text)}.view-tabs[data-v-aaf2e643]{padding:var(--space-1) var(--space-2) var(--space-2)}.view-tabs[data-v-aaf2e643] .ui-seg{display:flex;width:100%}.view-tabs[data-v-aaf2e643] .ui-seg__item{flex:1;justify-content:center}.mlist[data-v-aaf2e643]{--m-pad: 16px;--m-gutter: 15px;--m-gap: 8px;--m-indent: calc(var(--m-pad) + var(--m-gutter) + var(--m-gap));padding-bottom:var(--space-1)}.mempty[data-v-aaf2e643]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-faint);font-size:var(--ui-font-size)}.mempty.small[data-v-aaf2e643]{padding:10px 16px 12px var(--m-indent);text-align:left;font-size:var(--ui-font-size-xs)}.mgroup[data-v-aaf2e643]{padding-top:var(--space-2)}.mgh[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--m-gap);min-height:44px;margin:0 var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.mgh[data-v-aaf2e643]:hover{background:var(--color-hover)}.mgh[data-v-aaf2e643]:active{background:var(--color-surface-sunken)}.mgh-folder[data-v-aaf2e643]{flex:none;color:var(--color-text-muted)}.mgh-name[data-v-aaf2e643]{flex:none;max-width:50%;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-path[data-v-aaf2e643]{flex:1;min-width:0;font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-more[data-v-aaf2e643]{margin:0 calc(-1 * var(--space-2))}.mgh-add[data-v-aaf2e643]{margin:0 calc(-1 * var(--space-2)) 0 0}.mgh-add[data-v-aaf2e643]:active,.mgh-more[data-v-aaf2e643]:active{color:var(--color-text);background:var(--color-hover)}.srow[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;margin:1px var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2)) 0 calc(var(--m-indent) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.srow[data-v-aaf2e643]:hover{background:var(--color-hover)}.srow[data-v-aaf2e643]:active{background:var(--color-surface-sunken)}.srow.cur[data-v-aaf2e643]{background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-bd)}.srow .t[data-v-aaf2e643]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.srow.cur .t[data-v-aaf2e643]{color:var(--color-accent-hover)}.srow .t.run[data-v-aaf2e643]{position:relative}.srow .t.run[data-v-aaf2e643]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-accent);animation:mRunPulse-aaf2e643 1.4s ease-in-out infinite}@keyframes mRunPulse-aaf2e643{0%,to{opacity:1}50%{opacity:.35}}.srow .t.aborted[data-v-aaf2e643]{position:relative}.srow .t.aborted[data-v-aaf2e643]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-danger)}.srow .time[data-v-aaf2e643]{flex:none;font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--color-text-faint)}.att[data-v-aaf2e643]{flex:none;font-family:var(--font-mono);font-size:max(9px,calc(var(--ui-font-size) - 4px));color:var(--color-text-on-accent);background:var(--color-warning);border-radius:var(--radius-full);padding:1px 7px}.srow .kb[data-v-aaf2e643]{flex:none;margin:0 calc(-1 * var(--space-2)) 0 0}.srow .kb[data-v-aaf2e643]:active{color:var(--color-text);background:var(--color-hover)}.srow-flat[data-v-aaf2e643]{min-height:52px}.srow-main[data-v-aaf2e643]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-main .t[data-v-aaf2e643]{flex:none}.srow-sub[data-v-aaf2e643]{font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kmenu[data-v-aaf2e643]{position:absolute;right:12px;top:44px;z-index:var(--z-dropdown);min-width:96px;overflow:hidden}.wsmenu[data-v-aaf2e643]{top:calc(100% - 4px);right:var(--m-pad);min-width:132px}.mshow-more-row[data-v-aaf2e643]{display:flex;align-items:center;padding-left:calc(var(--m-indent) - var(--space-3))}.mshow-more[data-v-aaf2e643]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-1) var(--space-3);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.mshow-more[data-v-aaf2e643]:active{color:var(--color-accent-hover);background:var(--color-hover)}.mshow-more-sep[data-v-aaf2e643]{margin:0 var(--space-1);color:var(--color-text-faint);user-select:none}.group-title[data-v-1cc183d4]{padding:var(--space-4) max(var(--space-4),var(--safe-right)) var(--space-2) max(var(--space-4),var(--safe-left));font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.group-title[data-v-1cc183d4]:first-child{padding-top:0}.card[data-v-1cc183d4]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));background:var(--color-surface);border-radius:var(--radius-xl);overflow:hidden}.card>.srow[data-v-1cc183d4]{border-radius:0}.card>.srow+.srow[data-v-1cc183d4]{border-top:.5px solid var(--color-line)}.srow[data-v-1cc183d4]:disabled{opacity:.5;cursor:not-allowed}.srow[data-v-1cc183d4]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:var(--space-3) var(--space-4);background:none;border:none;border-radius:var(--radius-md);cursor:pointer;text-align:left;color:var(--color-text)}.srow[data-v-1cc183d4]:hover:not(.read-only){background:var(--color-hover)}.srow[data-v-1cc183d4]:active:not(.read-only){background:var(--color-surface-sunken)}.srow.read-only[data-v-1cc183d4]{cursor:default}.srow-main[data-v-1cc183d4]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-label[data-v-1cc183d4]{font-size:var(--text-base);color:var(--color-text)}.srow-sub[data-v-1cc183d4]{font-size:var(--text-base);color:var(--color-text-faint);overflow-wrap:anywhere}.back-row[data-v-1cc183d4]{min-height:var(--touch-target-min);color:var(--color-text-muted)}.back-row[data-v-1cc183d4]:hover{color:var(--color-text)}.providers-page[data-v-1cc183d4]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.providers-page[data-v-1cc183d4] .pp-title{display:none}.srow-val[data-v-1cc183d4]{flex:none;font-family:var(--font-mono);font-size:var(--ui-font-size);font-weight:500;color:var(--color-accent-hover)}.srow-val.dim[data-v-1cc183d4]{font-weight:400;color:var(--color-text-muted)}.cache-note[data-v-1cc183d4]{padding:var(--space-1) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));font-size:var(--text-xs);color:var(--color-text-faint);line-height:1.4}.chev[data-v-1cc183d4]{flex:none;color:var(--color-text-faint);font-size:17px;line-height:1}.toggle[data-v-1cc183d4]{flex:none;width:44px;height:26px;border-radius:var(--radius-full);background:var(--color-line);position:relative;transition:background .18s}.toggle.on[data-v-1cc183d4]{background:var(--color-accent)}.toggle[data-v-1cc183d4]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:var(--radius-full);box-sizing:border-box;background:var(--color-bg);border:.5px solid var(--color-line);box-shadow:var(--shadow-xs);transition:left .18s}.toggle.on[data-v-1cc183d4]:after{left:21px}.srow.pref[data-v-1cc183d4]{flex-wrap:wrap;cursor:default}.srow.pref .srow-main[data-v-1cc183d4]{flex:1 0 100%}.srow.acct.in .srow-label[data-v-1cc183d4]{color:var(--color-accent-hover);font-weight:500}.srow.acct.out .srow-label[data-v-1cc183d4]{color:var(--color-danger)}.acct-avatar[data-v-1cc183d4]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.acct-avatar img[data-v-1cc183d4]{width:100%;height:100%;border-radius:50%;object-fit:cover}.acct-name-row[data-v-1cc183d4]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.acct-name-row .srow-label[data-v-1cc183d4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acct-level[data-v-1cc183d4]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.usage[data-v-1cc183d4]{margin:var(--space-4) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.usage[data-v-1cc183d4] .sec{margin-bottom:0}.ctx-meter[data-v-1cc183d4]{flex:none;width:96px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.ctx-meter i[data-v-1cc183d4]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent)}.srow[data-v-1cc183d4],.srow-sub[data-v-1cc183d4],.srow-val[data-v-1cc183d4],.cache-note[data-v-1cc183d4]{font-family:var(--sans)}.ls-cards[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-3)}.ls-card-icon[data-v-f3de50df]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--color-text-muted)}.ls-card-text[data-v-f3de50df]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ls-card-title[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-card-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-done-card[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-success-bd);border-radius:var(--radius-lg)}.ls-done-badge[data-v-f3de50df]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-full);background:var(--color-success-soft);color:var(--color-success);flex:none}.ls-flow[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-center[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-6) 0 var(--space-2);text-align:center}.ls-center-text[data-v-f3de50df]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.ls-success-text[data-v-f3de50df]{color:var(--color-success)}.ls-err-text[data-v-f3de50df]{color:var(--color-danger)}.ls-warn-text[data-v-f3de50df]{color:var(--color-warning)}.ls-center-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted)}.ls-device[data-v-f3de50df]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-hero[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.ls-hero-icon[data-v-f3de50df]{display:inline-flex;margin-bottom:var(--space-1)}.ls-hero-title[data-v-f3de50df]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-hero-hint[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.ls-manual[data-v-f3de50df]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.ls-manual-label[data-v-f3de50df]{font-size:var(--text-xs);color:var(--color-text-faint)}.ls-copy-text[data-v-f3de50df]{margin-left:var(--space-2)}.ls-copy-text.is-copied[data-v-f3de50df]{color:var(--color-success);text-decoration:none}.ls-or[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.ls-or[data-v-f3de50df]:before,.ls-or[data-v-f3de50df]:after{content:"";flex:1;height:1px;background:var(--color-line)}.ls-fb-text[data-v-f3de50df]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-fb-link[data-v-f3de50df]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.ls-fb-link[data-v-f3de50df]:hover{border-bottom-color:var(--color-accent)}.ls-code-row[data-v-f3de50df]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.ls-code[data-v-f3de50df]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.ls-copy.is-copied[data-v-f3de50df]{color:var(--color-success);border-color:var(--color-success-bd)}.ls-actions[data-v-f3de50df]{display:flex;justify-content:flex-end;gap:var(--space-3)}@media(max-width:640px){.ls-code-row[data-v-f3de50df],.ls-actions[data-v-f3de50df]{flex-wrap:wrap}.ls-code[data-v-f3de50df]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}}.wizard[data-v-2e9dc37d]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;flex-direction:column;background:var(--color-bg);color:var(--color-text);overflow-y:auto;font-family:var(--font-ui)}.wiz-body[data-v-2e9dc37d]{flex:1;display:flex;flex-direction:column;align-items:center;width:min(560px,100%);margin:0 auto;padding:max(var(--space-8),12vh) var(--space-5) var(--space-6)}.wiz-step[data-v-2e9dc37d]{display:flex;flex-direction:column;align-items:center;width:100%;flex:1;min-height:0}.wiz-step-fill[data-v-2e9dc37d]{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;width:100%}.wiz-title[data-v-2e9dc37d]{margin:var(--space-4) 0 0;font-size:var(--text-2xl);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);text-align:center}.wiz-sub[data-v-2e9dc37d]{margin:var(--space-2) 0 var(--space-6);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted);text-align:center;max-width:460px}.pref-group[data-v-2e9dc37d]{width:100%;margin-bottom:var(--space-5)}.pref-label[data-v-2e9dc37d]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);margin-bottom:var(--space-2)}.opt-card[data-v-2e9dc37d]{display:flex;align-items:center;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.opt-card[data-v-2e9dc37d]:hover{border-color:var(--color-line-strong)}.opt-card[data-v-2e9dc37d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.opt-card.selected[data-v-2e9dc37d]{border-color:var(--color-accent);background:var(--color-accent-soft)}.opt-label[data-v-2e9dc37d]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.lang-cards[data-v-2e9dc37d]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3);width:100%}.lang-card[data-v-2e9dc37d]{gap:var(--space-3);padding:var(--space-4)}.opt-radio[data-v-2e9dc37d]{width:18px;height:18px;border-radius:var(--radius-full);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;display:inline-flex;align-items:center;justify-content:center;transition:border-color var(--duration-fast) var(--ease-out)}.opt-radio[data-v-2e9dc37d]:after{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:transparent;transition:background var(--duration-fast) var(--ease-out)}.opt-radio.on[data-v-2e9dc37d]{border-color:var(--color-accent)}.opt-radio.on[data-v-2e9dc37d]:after{background:var(--color-accent)}.theme-cards[data-v-2e9dc37d]{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3);width:100%}.theme-card[data-v-2e9dc37d]{flex-direction:column;gap:var(--space-3);padding:var(--space-3)}.tp[data-v-2e9dc37d]{display:flex;width:100%;aspect-ratio:16 / 10;border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.tp-light[data-v-2e9dc37d]{background:#fff}.tp-dark[data-v-2e9dc37d]{background:#0d1117}.tp-half[data-v-2e9dc37d]{flex:1;display:flex;min-width:0}.tp-half-light[data-v-2e9dc37d]{background:#fff}.tp-half-dark[data-v-2e9dc37d]{background:#0d1117}.tp-side[data-v-2e9dc37d]{width:30%;flex:none}.tp-light .tp-side[data-v-2e9dc37d],.tp-half-light .tp-side[data-v-2e9dc37d]{background:#0000000d}.tp-dark .tp-side[data-v-2e9dc37d],.tp-half-dark .tp-side[data-v-2e9dc37d]{background:#ffffff12}.tp-lines[data-v-2e9dc37d]{flex:1;display:flex;flex-direction:column;gap:6px;padding:14% 12%}.tp-lines span[data-v-2e9dc37d]{height:6px;border-radius:var(--radius-full)}.tp-lines span[data-v-2e9dc37d]:nth-child(1){width:62%}.tp-lines span[data-v-2e9dc37d]:nth-child(2){width:88%}.tp-lines span[data-v-2e9dc37d]:nth-child(3){width:44%}.tp-light .tp-lines span[data-v-2e9dc37d],.tp-half-light .tp-lines span[data-v-2e9dc37d]{background:#00000024}.tp-dark .tp-lines span[data-v-2e9dc37d],.tp-half-dark .tp-lines span[data-v-2e9dc37d]{background:#ffffff38}.wiz-foot[data-v-2e9dc37d]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:100%;margin-top:auto;padding:var(--space-8) 0 max(var(--space-8),8vh)}.wiz-foot-ghost[data-v-2e9dc37d]{display:flex;gap:var(--space-3);min-height:32px;align-items:center}.wiz-foot-ghost[data-v-2e9dc37d] .ui-button--ghost:not(:disabled):hover{background:transparent;color:var(--color-text)}.wiz-primary[data-v-2e9dc37d]{min-width:140px}@media(max-width:640px){.theme-cards[data-v-2e9dc37d]{gap:var(--space-2)}}.kap-root[data-v-2b13888e]{height:100vh;display:flex;flex-direction:column;background:var(--bg);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 2.5px);color:var(--color-text)}.kap-head[data-v-2b13888e]{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:.5px solid var(--line);background:var(--panel)}.kap-count[data-v-2b13888e]{color:var(--muted)}.kap-head-actions[data-v-2b13888e]{margin-left:auto;display:flex;gap:6px}.kap-head-actions button[data-v-2b13888e],.kap-view-toggle button[data-v-2b13888e]{padding:3px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font:inherit;cursor:pointer}.kap-head-actions button[data-v-2b13888e]:hover,.kap-view-toggle button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-head-actions button.on[data-v-2b13888e],.kap-view-toggle button.on[data-v-2b13888e]{color:var(--color-accent-hover);border-color:var(--color-accent-bd);background:var(--color-accent-soft)}.kap-filters[data-v-2b13888e]{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 10px;border-bottom:.5px solid var(--line)}.kap-filters select[data-v-2b13888e],.kap-filters input[type=text][data-v-2b13888e]{padding:3px 6px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--color-text);font:inherit;min-width:0}.kap-filters input[type=text][data-v-2b13888e]{flex:1;min-width:120px}.kap-check[data-v-2b13888e]{display:inline-flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}.kap-view-toggle[data-v-2b13888e]{display:flex;gap:0}.kap-view-toggle button[data-v-2b13888e]:first-child{border-radius:6px 0 0 6px;border-right:none}.kap-view-toggle button[data-v-2b13888e]:last-child{border-radius:0 6px 6px 0}.kap-list[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto}.kap-empty[data-v-2b13888e]{padding:18px 12px;color:var(--muted);text-align:center}.kap-row[data-v-2b13888e]{display:flex;align-items:baseline;gap:7px;width:100%;padding:3px 10px;border:none;border-bottom:.5px solid var(--line);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.kap-row[data-v-2b13888e]:hover{background:var(--panel2)}.kap-row.expanded[data-v-2b13888e]{background:var(--color-accent-soft)}.kap-ts[data-v-2b13888e]{flex:none;color:var(--muted)}.kap-badge[data-v-2b13888e]{flex:none;padding:0 5px;border-radius:var(--radius-sm);font-size:max(9px,calc(var(--ui-font-size) - 4.5px));font-weight:500;line-height:1.7}.b-rest[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-accent-hover)}.b-in[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-success)}.b-out[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-warning)}.b-life[data-v-2b13888e]{background:var(--panel2);color:var(--muted)}.b-err[data-v-2b13888e]{background:var(--color-warning);color:var(--bg)}.kap-label[data-v-2b13888e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kap-detail[data-v-2b13888e]{border-bottom:.5px solid var(--line);background:var(--bg);padding:6px 10px 10px}.kap-detail-actions[data-v-2b13888e]{display:flex;justify-content:flex-end;margin-bottom:4px}.kap-detail-actions button[data-v-2b13888e]{padding:2px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font:inherit;cursor:pointer}.kap-detail-actions button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-detail pre[data-v-2b13888e]{margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:calc(var(--ui-font-size) - 3px);line-height:1.45}.kap-agg[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto;padding:8px 10px}.kap-agg h4[data-v-2b13888e]{margin:8px 0 4px;font-size:calc(var(--ui-font-size) - 2.5px);color:var(--muted)}.kap-agg table[data-v-2b13888e]{width:100%;border-collapse:collapse}.kap-agg th[data-v-2b13888e],.kap-agg td[data-v-2b13888e]{padding:3px 6px;border-bottom:.5px solid var(--line);text-align:left;vertical-align:top}.kap-agg th[data-v-2b13888e]{color:var(--muted);font-weight:500}.kap-agg .num[data-v-2b13888e]{text-align:right}.kap-agg .err[data-v-2b13888e]{color:var(--color-warning);font-weight:500}.kap-agg .mono[data-v-2b13888e]{word-break:break-all}.kap-fab[data-v-21de79fc]{position:fixed;right:10px;bottom:10px;z-index:var(--z-overlay);padding:5px 9px;border:.5px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 3px);font-weight:500;letter-spacing:.04em;cursor:pointer;opacity:.75}.kap-fab[data-v-21de79fc]:hover{opacity:1;color:var(--color-accent)}.server-auth-hint[data-v-05495fe9]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.server-auth-hint code[data-v-05495fe9]{padding:1px 5px;font-family:var(--font-mono);font-size:var(--text-xs);background:var(--color-surface-sunken);border-radius:var(--radius-xs)}.internal-build-tag[data-v-439d3299]{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#f5a623;color:#3a2a00;font-size:11px;font-weight:700;letter-spacing:.01em;line-height:1.4;white-space:nowrap;user-select:none}.gload-fade-leave-active[data-v-fde40654]{transition:opacity .28s ease}.gload-fade-leave-to[data-v-fde40654]{opacity:0}.action-toast-enter-active[data-v-fde40654],.action-toast-leave-active[data-v-fde40654]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.action-toast-leave-active[data-v-fde40654]{transition-duration:var(--duration-fast);pointer-events:none}.action-toast-enter-from[data-v-fde40654],.action-toast-leave-to[data-v-fde40654]{opacity:0;transform:translateY(-6px)}.app-shell[data-v-fde40654]{position:fixed;top:var(--app-top, 0px);left:0;right:0;height:100vh;height:100dvh;height:var(--app-height, 100dvh);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.app[data-v-fde40654]{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:auto 0 minmax(0,1fr) auto;background:var(--bg);color:var(--color-text);overflow:hidden;box-sizing:border-box}.app[data-v-fde40654]>*{min-height:0;min-width:0}.app>.side[data-v-fde40654]{grid-column:1}.side-handle[data-v-fde40654]{grid-column:2}.app:not(.mobile)>.con[data-v-fde40654]{grid-column:3}.app.panel-expanded[data-v-fde40654]{grid-template-columns:auto 0 0 minmax(0,1fr)}.app.panel-expanded>.con[data-v-fde40654]{display:none}.sidebar-toggle-btn[data-v-fde40654]{position:absolute;top:11px;left:16px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-fde40654 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .sidebar-toggle-btn[data-v-fde40654]{left:84px;animation:none}.new-chat-btn[data-v-fde40654]{position:absolute;top:11px;left:42px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-fde40654 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .new-chat-btn[data-v-fde40654]{left:110px}@keyframes sidebar-toggle-btn-in-fde40654{0%{opacity:0}}.internal-build-fab[data-v-fde40654]{position:absolute;right:var(--space-3);bottom:var(--space-3);z-index:var(--z-sticky);pointer-events:none}.app.mobile[data-v-fde40654]{grid-template-columns:1fr;grid-template-rows:auto 1fr}:root{--panel-head-h: 48px;--panel-head-inset: calc((var(--panel-head-h) - var(--icon-button-sm)) / 2)}.app.panel-expanded.sidebar-collapsed .panel-tab-bar{padding-left:var(--header-collapsed-clearance)}.app.panel-expanded.sidebar-collapsed.macos-desktop .panel-tab-bar{padding-left:var(--header-collapsed-clearance-macos)}.app.sidebar-collapsed .session-admin .sa-head{padding-left:var(--header-collapsed-clearance)}.app.sidebar-collapsed.windows-desktop .session-admin .sa-head{padding-left:var(--space-6)}.app.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:var(--header-collapsed-clearance-macos)}.app.fullscreen.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:var(--header-collapsed-clearance)}.app.macos-desktop .global-preview .ui-panel-header{-webkit-app-region:drag}.app.macos-desktop .global-preview .ui-panel-header button,.app.macos-desktop .global-preview .ui-panel-header input{-webkit-app-region:no-drag}.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .chat-header,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .side .ch,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .global-preview .ui-panel-header{-webkit-app-region:no-drag}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--dim: rgba(0, 0, 0, .6);--muted: rgba(0, 0, 0, .45);--faint: rgba(0, 0, 0, .3);--line: var(--color-line);--line2: var(--color-subtle);--canvas: #f9fbfc;--sh: 0 1px 3px rgba(28, 40, 66, .05), 0 6px 18px rgba(28, 40, 66, .06);--shc: 0 1px 2px rgba(28, 40, 66, .05);--panel: #f5f5f5;--panel2: rgba(0, 0, 0, .05);--bg: #ffffff;--blue: #1783ff;--blue2: #167ff7;--soft: #e8f3ff;--bd: rgba(23, 131, 255, .25);--logo: #1783ff;--bluebg: #e8f3ff;--blueln: rgba(23, 131, 255, .25);--ok: #0e7a38;--warn: #a9610a;--star: #eab308;--err: #c0392b;--hover: var(--color-hover);--r-xs: var(--radius-sm);--r-sm: var(--radius-md);--r-md: var(--radius-lg);--r-lg: var(--radius-xl);--ui-font-size: var(--ui-b2);--ui-font-size-sm: calc(var(--ui-font-size) - 1px);--ui-font-size-xs: calc(var(--ui-font-size) - 2px);--ui-font-size-lg: calc(var(--ui-font-size) + 1px);--ui-font-size-xl: calc(var(--ui-font-size) + 2px);--content-font-size: var(--md-b1);--code-font-size: calc(var(--content-font-size) - 2px);--mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--sans: var(--font-ui);color-scheme:light dark}html[data-color-scheme=light]{color-scheme:light}html[data-color-scheme=system]{color-scheme:light dark}html[data-color-scheme=dark]{color-scheme:dark;--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}}:root{--color-bg: #ffffff;--color-surface: #f5f5f5;--color-surface-raised: #ffffff;--color-surface-overlay: #ffffff;--color-surface-sunken: #f5f5f5;--color-inline-code-bg: rgba(0, 0, 0, .03);--color-well: #f5f5f5;--color-surface-deep: #f5f5f5;--color-media-alpha-bg-1: color-mix(in srgb, var(--color-bg) 52%, var(--color-text) 48%);--color-media-alpha-bg-2: color-mix(in srgb, var(--color-bg) 42%, var(--color-text) 58%);--media-alpha-canvas: conic-gradient( var(--color-media-alpha-bg-1) 25%, var(--color-media-alpha-bg-2) 0 50%, var(--color-media-alpha-bg-1) 0 75%, var(--color-media-alpha-bg-2) 0 ) 0 0 / 16px 16px;--color-text: rgba(0, 0, 0, .9);--color-text-strong: #000000;--color-text-muted: rgba(0, 0, 0, .6);--color-text-faint: rgba(0, 0, 0, .45);--color-text-on-accent: #ffffff;--color-line: rgba(0, 0, 0, .13);--color-subtle: rgba(0, 0, 0, .05);--color-line-strong: rgba(0, 0, 0, .15);--color-scrim: rgba(0, 0, 0, .4);--color-scrim-strong: rgba(0, 0, 0, .6);--color-text-on-scrim: #ffffff;--color-selected: rgba(0, 0, 0, .05);--color-selected-hover: rgba(0, 0, 0, .08);--color-hover: rgba(0, 0, 0, .03);--color-sidebar-bg: #f9fbfc;--color-user-bubble-bg: #f5f5f5;--color-accent: #1783ff;--color-accent-hover: #167ff7;--color-accent-soft: #e8f3ff;--color-accent-bd: rgba(23, 131, 255, .25);--color-success: #0e7a38;--color-success-soft: #e7f6ee;--color-success-bd: #bfe3cc;--color-warning: #a9610a;--color-warning-soft: #fbf1e0;--color-warning-bd: #f0d9b8;--color-danger: #c0392b;--color-danger-soft: #fbeaea;--color-danger-bd: #f0cccc;--color-diff-add-bg: rgba(22, 196, 86, .25);--color-diff-del-bg: rgba(255, 56, 73, .25);--color-done: #8250df;--color-done-soft: #f3e8ff;--color-done-bd: #e0ccff;--color-info: #1783ff;--color-term-magenta: #8250df;--color-term-cyan: #1b7c83;--color-term-black: #24292f;--space-05: 2px;--space-1: 4px;--space-1-5: 6px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-2xl: 20px;--radius-composer: 32px;--corner-shape-composer: superellipse(1.5);--radius-menu-row: var(--radius-sm);--corner-shape-menu: var(--corner-shape-composer);--menu-pad: 3.5px;--radius-menu-item: calc(var(--radius-lg) - var(--menu-pad) - var(--p-hairline));--radius-select-option: calc(var(--radius-md) - var(--space-1) - var(--p-hairline));--radius-dropdown-row: calc(var(--radius-lg) - var(--space-1) - var(--p-hairline));--color-menu-bg-frost: color-mix(in srgb, var(--color-bg) 70%, transparent);--color-topbar-bg-frost: color-mix(in srgb, var(--color-surface) 78%, transparent);--p-topbar-backdrop: saturate(150%) blur(12px);--color-menu-scrollbar: color-mix(in srgb, var(--color-text) 16%, transparent);--color-menu-scrollbar-hover: color-mix(in srgb, var(--color-text) 48%, transparent);--radius-full: 999px;--radius-window: 14px;--radius-window-chip: calc(var(--radius-window) - var(--space-2));--menu-scroll-fade: var(--space-5);--panel-tab-pad-x: 10px;--panel-tab-max-w: 168px;--panel-tab-x-size: 18px;--panel-tab-h: 28px;--panel-launcher-w: 288px;--panel-default-w: 460px;--menu-item-padding-block: 5px;--menu-item-padding-inline: 9px;--menu-row-hug: var(--space-1-5);--menu-rows-seam: 1px;--menu-row-gap-icon: 7px;--menu-row-padding-block: var(--space-05);--menu-row-padding-inline: calc(var(--space-4) - var(--space-3) + var(--menu-row-hug));--menu-row-touch-padding-block: 11px;--menu-scrollbar-width: 3px;--menu-scrollbar-edge: calc(var(--menu-row-hug) + var(--p-hairline) - var(--menu-scrollbar-width));--menu-scrollbar-track-inset: calc(var(--radius-lg) - var(--space-1-5));--menu-scrollbar-thumb-min: 24px;--wm-x-size: calc(var(--p-ic-sm) + var(--space-1));--wm-x-ring: var(--space-1-5);--z-base: 0;--z-raised: 1;--z-sticky: 100;--z-dropdown: 200;--z-overlay: 300;--z-modal: 400;--z-modal-dropdown: 500;--z-toast: 600;--z-tooltip: 650;--z-max: 9999;--shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);--shadow-menu: 0 6px 18px lch(0% 0 0 / .02), 0 3px 9px lch(0% 0 0 / .04), 0 1px 1px lch(0% 0 0 / .04);--color-menu-bg: rgba(255, 255, 255, .95);--p-menu-backdrop: blur(24px) saturate(1.8);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .05);--shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .08);--shadow-xl: 0 24px 64px rgba(16, 24, 40, .18), 0 8px 20px rgba(16, 24, 40, .1);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--duration-fast: .12s;--duration-base: .16s;--duration-slow: .26s;--duration-hover-intent: .25s;--duration-tooltip: .15s;--duration-spin: .7s;--duration-flash: 1.2s;--motion-panel-shift: 2px;--motion-panel-scale: .97;--color-composer-bg: #ffffff;--color-composer-line: rgba(0, 0, 0, .13);--color-composer-focus-line: rgba(0, 0, 0, .25);--color-send-bg: rgba(0, 0, 0, .9);--color-send-bg-hover: #252525;--color-send-icon: #ffffff;--color-stop-glyph: var(--color-danger);--color-send-bg-disabled: rgba(0, 0, 0, .05);--color-send-icon-disabled: rgba(0, 0, 0, .27);--opacity-send-disabled: 1;--shadow-send: 0 7px 16px -13px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .07);--shadow-send-hover: 0 8px 18px -13px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .09);--composer-send-icon-size: 28px;--font-ui-latin: "Schibsted Grotesk Variable", "Helvetica Neue", Arial;--font-ui: var(--font-ui-latin), "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-display: var(--font-ui);--font-kbd: "Schibsted Grotesk Variable", system-ui, sans-serif;--kbd-height: 18px;--kbd-min-width: 18px;--kbd-padding-x: 5px;--kbd-font-size: 11px;--font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--text-2xs: calc(var(--ui-c1) - 1px);--text-xs: var(--ui-c1);--text-sm: calc(var(--ui-b2) - 1px);--text-base: var(--ui-b2);--text-lg: var(--ui-t2);--text-xl: var(--ui-t1);--text-2xl: var(--ui-t0);--leading-solid: 1;--leading-tight: 1.25;--leading-caption: 1.4;--leading-normal: 1.5;--leading-prose: 1.6;--leading-relaxed: 1.7;--weight-regular: 400;--weight-caption: 450;--weight-option-label: 475;--weight-medium: 500;--weight-ui-strong: 525;--weight-section-label: 600;--weight-semibold: 700;--ui-shift: calc(var(--base-font, 14px) - 14px);--md-shift: var(--ui-shift);--ui-t0: min(calc(20px + var(--ui-shift)), 24px);--ui-t1: min(calc(18px + var(--ui-shift)), 22px);--ui-t2: calc(16px + var(--ui-shift));--ui-b1: calc(15px + var(--ui-shift));--ui-b2: calc(14px + var(--ui-shift));--ui-c1: calc(12px + var(--ui-shift));--ui-c2: calc(10px + var(--ui-shift));--md-h1: calc(22px + var(--md-shift));--md-h2: calc(20px + var(--md-shift));--md-h3: calc(18px + var(--md-shift));--md-b1: calc(14px + var(--md-shift));--md-b2: calc(13px + var(--md-shift));--md-b3: calc(13px + var(--md-shift));--p-focus-ring-w: 3px;--p-focus-ring: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft);--p-focus-ring-strong: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft), 0 0 0 1px var(--color-accent);--p-selection: rgba(23, 131, 255, .2);--color-code-selection: rgba(23, 131, 255, .346);--color-code-selection-text: currentColor;--code-pad-block: calc(var(--text-sm) * (var(--leading-normal) - 1) / 2);--diff-sign-col: 14px;--p-ic-sm: 14px;--p-ic-md: 16px;--p-ring-stroke: 1.5px;--p-ic-lg: 20px;--p-empty-ico: 28px;--p-hairline: .5px;--p-findring-w: 2px;--p-pill-excerpt-max: 24em;--p-tip-quote-lines: 8.5lh;--p-tip-comment-lines: 4.5lh;--p-scroll-seam-h: 18px;--p-sidebar-seam-h: 13px;--icon-button-sm: 26px;--touch-target-min: 44px;--resize-handle-step: 16px;--resize-handle-step-lg: 48px;--p-chip-num: 20px;--p-sidebar-w: 264px;--p-content-max: 760px;--p-content-wide: 920px;--p-table-max: 1040px;--p-table-cell-max: 700px;--p-findbar-w: 340px;--p-bubble-max: 78%;--p-dock-panel-h: 320px;--p-subagent-card-min: 180px;--p-slash-menu-h: 228px;--p-mention-menu-h: 296px;--p-mention-tip-w: 320px;--p-mention-tip-media-w: 300px;--p-mention-tip-media-h: 220px;--p-mention-tip-media-min-w: 190px;--p-mention-tip-media-preview-min-h: 64px;--p-mention-tip-media-check: 12px;--p-mention-tip-media-ring: 12px;--p-mention-tip-media-spin: 10px;--p-mention-tip-media-check-bg: linear-gradient(45deg, color-mix(in srgb, var(--color-bg) 7%, transparent) 25%, transparent 25%), linear-gradient(-45deg, color-mix(in srgb, var(--color-bg) 7%, transparent) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--color-bg) 7%, transparent) 75%), linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--color-bg) 7%, transparent) 75%);--p-selection-bubble-w: 280px;--p-tip-max-w: 280px;--p-mention-tip-vmargin: var(--space-3);--p-mention-tip-spinner-lift: -.1em;--opacity-stale: .55;--p-add-menu-h: var(--p-slash-menu-h);--p-bp-sm: 640px;--p-bp-md: 980px}:root,html[data-font-scale=medium]{--base-font: 14px}html[data-font-scale=small]{--base-font: 12px}html[data-font-scale=large]{--base-font: 16px}html[data-font-scale=xlarge]{--base-font: 18px}.text-ui-t0{font-size:var(--ui-t0);line-height:round(calc(var(--ui-t0) * 1.4),1px)}.text-ui-t1{font-size:var(--ui-t1);line-height:round(calc(var(--ui-t1) * 1.44),1px)}.text-ui-t2{font-size:var(--ui-t2);line-height:round(calc(var(--ui-t2) * 1.5),1px)}.text-ui-b1{font-size:var(--ui-b1);line-height:round(calc(var(--ui-b1) * 1.47),1px)}.text-ui-b2{font-size:var(--ui-b2);line-height:round(calc(var(--ui-b2) * 1.42),1px)}.text-ui-c1{font-size:var(--ui-c1);line-height:round(calc(var(--ui-c1) * 1.5),1px)}.text-ui-c2{font-size:var(--ui-c2);line-height:round(calc(var(--ui-c2) * 1.4),1px)}.text-md-h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px)}.text-md-h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.text-md-h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.text-md-b1{font-size:var(--md-b1);line-height:round(calc(var(--md-b1) * 1.625),1px)}.text-md-b2{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px)}.text-md-b3{font-size:var(--md-b3);line-height:round(calc(var(--md-b3) * 1.57),1px)}html[data-color-scheme=dark]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-code-selection: rgba(26, 136, 255, .27);--color-code-selection-text: currentColor;--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-info: #1a88ff;--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-code-selection: rgba(26, 136, 255, .27);--color-code-selection-text: currentColor;--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-info: #1a88ff;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}}:root{--color-sidebar-tint: rgba(255, 255, 255, .2)}html[data-color-scheme=dark]{--color-sidebar-tint: rgba(0, 0, 0, .12)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-sidebar-tint: rgba(0, 0, 0, .12)}}:root{--color-search-match: #ffe066;--color-search-match-current: #ffc531}html[data-color-scheme=dark]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}}::highlight(kimi-transcript-search){background-color:var(--color-search-match)}::highlight(kimi-transcript-search-current){background-color:var(--color-search-match-current)}.mention-pill,.attachment-pill,.quote-pill{display:inline-flex;align-items:baseline;gap:var(--space-05);color:var(--color-text-muted);font-weight:var(--weight-ui-strong);white-space:nowrap;text-decoration:none;vertical-align:baseline;padding-inline:var(--space-05);transition:color var(--duration-fast) var(--ease-out)}.mention-pill:hover,.attachment-pill:hover{color:var(--color-text)}.mention-pill:hover .mention-pill-icon,.attachment-pill:hover .attachment-pill-icon{color:inherit}.mention-pill.mention-file,.mention-pill.mention-skill,.attachment-pill[data-attachment-url]{cursor:pointer}.mention-pill.mention-file:hover,.mention-pill.mention-skill:hover,.attachment-pill[data-attachment-url]:hover{text-decoration:underline}.mention-pill:focus-visible,.attachment-pill:focus-visible,.quote-pill:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-sm)}.ProseMirror .mention-pill,.ProseMirror .mention-pill:hover,.ProseMirror .attachment-pill,.ProseMirror .attachment-pill:hover,.ProseMirror .quote-pill,.ProseMirror .quote-pill:hover{cursor:text;text-decoration:none}a.mention-folder{cursor:default}.mention-pill.mention-skill.mention-inert,.mention-pill.mention-skill.mention-inert:hover{cursor:default;text-decoration:none}.mention-pill-name,.attachment-pill-name,.quote-pill-name{max-width:var(--p-pill-excerpt-max);min-width:0;overflow:hidden;text-overflow:ellipsis}.mention-pill-icon,.attachment-pill-icon,.quote-pill-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);align-self:center;flex-shrink:0}.mention-pill-icon svg,.attachment-pill-icon svg,.quote-pill-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;stroke:currentColor;stroke-width:var(--p-hairline)}.mention-pill.pill-in-selection,.attachment-pill.pill-in-selection,.quote-pill.pill-in-selection{background:var(--p-selection);border-radius:var(--radius-sm)}.quote-pill{color:var(--color-accent)}.quote-pill-icon{color:inherit}.quote-pill:hover{color:var(--color-accent-hover)}.quote-pill:focus-visible{box-shadow:0 0 0 1px var(--color-accent),0 0 0 var(--p-focus-ring-w) var(--color-accent-soft)}.quote-pill-comment{max-width:var(--p-pill-excerpt-max);min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-muted);font-weight:var(--weight-regular)}.quote-pill-comment:before{content:"·";color:var(--color-text-faint);margin-inline:var(--space-1-5) var(--space-1)}.composer-text .q-sep{font-size:0;white-space:normal}.mention-tip{position:fixed;z-index:var(--z-tooltip);max-width:min(var(--p-mention-tip-w),calc(100vw - 2 * var(--p-mention-tip-vmargin)));padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);--p-tip-line: color-mix(in srgb, currentColor 18%, transparent);--p-tip-ink: color-mix(in srgb, currentColor 80%, transparent);--p-tip-ink-weak: color-mix(in srgb, currentColor 55%, transparent);font-family:var(--font-ui);font-size:var(--text-xs);line-height:round(calc(var(--text-xs) * 1.5),1px);overflow-wrap:anywhere;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.mention-tip:not(.positioned){pointer-events:none}.mention-tip.positioned{opacity:1}.mention-tip:before,.mention-tip:after{content:"";position:absolute;left:0;right:0;height:var(--space-1-5)}.mention-tip:before{bottom:100%}.mention-tip:after{top:100%}.mention-tip>*{max-height:calc(100vh - 2 * var(--p-mention-tip-vmargin) - 2 * var(--space-2));overflow-y:auto}.mention-tip-caret{position:absolute;left:var(--tip-caret-x, 50%);width:12px;height:6px;background:var(--color-text);transform:translate(-50%)}.mention-tip[data-side=top]>.mention-tip-caret{top:100%;clip-path:polygon(0 0,100% 0,50% 100%)}.mention-tip[data-side=bottom]>.mention-tip-caret{bottom:100%;clip-path:polygon(50% 0,0 100%,100% 100%)}.mention-tip-path{display:flex;align-items:flex-start;gap:var(--space-2)}.mention-tip-path-text{min-width:0}.mention-tip-sep{color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-base{font-weight:var(--weight-semibold)}.mention-tip-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.mention-tip-name{font-weight:var(--weight-semibold);overflow-wrap:anywhere}.mention-tip-open,.mention-tip-copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-05);border:none;border-radius:var(--radius-xs);background:transparent;color:color-mix(in srgb,currentColor 65%,transparent);cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-open:hover,.mention-tip-copy:hover{color:var(--color-bg);background:color-mix(in srgb,var(--color-bg) 14%,transparent)}.mention-tip-open:focus-visible,.mention-tip-copy:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-open svg,.mention-tip-copy svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-att-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--p-ic-sm);height:1lh;color:color-mix(in srgb,currentColor 65%,transparent)}.mention-tip-att-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-att-size{color:color-mix(in srgb,currentColor 65%,transparent)}.mention-tip:has(.mention-tip-quote-card){padding:var(--space-2)}.mention-tip-quote-card{min-width:0;display:flex;flex-direction:column;gap:var(--space-1-5)}.mention-tip-quote-block{min-width:0;padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-xs);background:color-mix(in srgb,currentColor 6%,transparent)}.mention-tip-quote-block-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-05)}.mention-tip-quote-block-head .mention-tip-copy{margin-right:calc(-1 * var(--space-1));opacity:0;transition:opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-quote-block:hover .mention-tip-copy,.mention-tip-quote-block:focus-within .mention-tip-copy{opacity:1}@media(hover:none){.mention-tip-quote-block-head .mention-tip-copy{opacity:1}}.mention-tip-quote-block-head .mention-tip-quote-block-label{margin-bottom:0}.mention-tip-quote-block-label{margin-bottom:var(--space-05);color:var(--p-tip-ink-weak);font-size:var(--text-2xs);line-height:round(calc(var(--text-2xs) * 1.5),1px)}.mention-tip-quote-text{min-width:0;max-height:var(--p-tip-quote-lines);overflow-y:scroll;white-space:pre-wrap}.mention-tip-quote-comment{color:var(--p-tip-ink);white-space:pre-wrap;word-break:break-word;max-height:var(--p-tip-comment-lines);overflow-y:scroll}.mention-tip-quote-text,.mention-tip-quote-comment{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,currentColor 40%,transparent) transparent}.mention-tip-quote-text::-webkit-scrollbar,.mention-tip-quote-comment::-webkit-scrollbar{width:var(--space-1-5)}.mention-tip-quote-text::-webkit-scrollbar-thumb,.mention-tip-quote-comment::-webkit-scrollbar-thumb{background:color-mix(in srgb,currentColor 40%,transparent);border-radius:var(--radius-xs)}.mention-tip-quote-text::-webkit-scrollbar-track,.mention-tip-quote-comment::-webkit-scrollbar-track{background:transparent}.mention-tip-quote-source{min-width:0;color:var(--p-tip-ink-weak);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-tip-att-error{margin-top:var(--space-05);color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip--media{padding:var(--space-1-5);border-radius:var(--radius-lg)}.mention-tip-media{display:flex;flex-direction:column;gap:var(--space-1-5)}.mention-tip-media-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;min-height:var(--p-mention-tip-media-preview-min-h);border:1px solid color-mix(in srgb,var(--color-bg) 14%,transparent);border-radius:var(--radius-sm);background-color:color-mix(in srgb,var(--color-bg) 8%,transparent);background-image:var(--p-mention-tip-media-check-bg);background-size:var(--p-mention-tip-media-check) var(--p-mention-tip-media-check);background-position:0 0,0 calc(var(--p-mention-tip-media-check) / 2),calc(var(--p-mention-tip-media-check) / 2) calc(var(--p-mention-tip-media-check) / -2),calc(var(--p-mention-tip-media-check) / -2) 0;overflow:hidden}.mention-tip-media-el{display:block;max-width:var(--p-mention-tip-media-w);max-height:var(--p-mention-tip-media-h);object-fit:contain;border-radius:var(--radius-sm)}.mention-tip-media-placeholder{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-3) var(--space-3) var(--space-1);color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-media-placeholder svg{width:var(--p-ic-lg);height:var(--p-ic-lg);display:block}.mention-tip-media-hint{padding:0 var(--space-2) var(--space-2);color:color-mix(in srgb,currentColor 60%,transparent);text-align:center}.mention-tip-media-meta{display:flex;align-items:center;gap:var(--space-1);min-width:0}.mention-tip-media-name{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--weight-semibold)}.mention-tip-media-error{padding:var(--space-1) var(--space-1-5);border-radius:var(--radius-sm);background:color-mix(in srgb,var(--color-bg) 8%,transparent);color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip-media-foot{display:flex;align-items:center;gap:var(--space-2);min-width:0}.mention-tip-media-state{display:inline-flex;align-items:center;gap:var(--space-1-5);flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:color-mix(in srgb,currentColor 65%,transparent);font-weight:var(--weight-medium);padding-left:var(--space-05)}.mention-tip-media-state.is-danger{color:color-mix(in srgb,var(--color-danger) 70%,currentColor)}.mention-tip-media-ring,.mention-tip-media-ring svg{width:var(--p-mention-tip-media-ring);height:var(--p-mention-tip-media-ring);display:block;flex:none}.mention-tip-media-ring-track{stroke:color-mix(in srgb,currentColor 18%,transparent)}.mention-tip-media-ring-arc{stroke:color-mix(in srgb,currentColor 78%,transparent)}.mention-tip-media-spin{flex:none;width:var(--p-mention-tip-media-spin);height:var(--p-mention-tip-media-spin);border-radius:var(--radius-full);border:1.5px solid color-mix(in srgb,currentColor 18%,transparent);border-top-color:color-mix(in srgb,currentColor 78%,transparent);animation:mention-tip-media-rot var(--duration-slow) linear infinite}@keyframes mention-tip-media-rot{to{transform:rotate(360deg)}}.mention-tip-media-actions{display:flex;justify-content:flex-end;gap:var(--space-1-5);margin-left:auto;flex:none}.mention-tip-media-open{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-05) var(--space-1-5);border:none;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--color-bg) 10%,transparent);color:color-mix(in srgb,currentColor 65%,transparent);font:inherit;cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-media-open:hover{background:color-mix(in srgb,var(--color-bg) 18%,transparent);color:var(--color-bg)}.mention-tip-media-open:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-media-open svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;color:color-mix(in srgb,currentColor 45%,transparent);transition:color var(--duration-fast) var(--ease-out)}.mention-tip-media-open:hover svg{color:var(--color-bg)}.mention-tip-copy{margin-right:calc(var(--space-05) - var(--space-2))}.mention-tip-desc{margin-top:var(--space-05);color:color-mix(in srgb,currentColor 78%,transparent);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.mention-tip-spinner{display:inline-block;width:calc(var(--space-2) + var(--space-05));height:calc(var(--space-2) + var(--space-05));margin-left:var(--space-1);vertical-align:var(--p-mention-tip-spinner-lift);border-radius:50%;border:var(--p-ring-stroke) solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;animation:mention-tip-spin var(--duration-spin) linear infinite}@keyframes mention-tip-spin{to{transform:rotate(360deg)}}.mention-pill.mention-missing,.mention-pill.mention-missing:hover{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.mention-pill.mention-missing .mention-pill-icon{color:inherit}.attachment-pill.attachment-missing,.attachment-pill.attachment-missing:hover,.attachment-pill.attachment-missing .attachment-pill-icon,.attachment-pill.attachment-missing:hover .attachment-pill-icon{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.attachment-pill.attachment-error,.attachment-pill.attachment-error:hover,.attachment-pill.attachment-error .attachment-pill-icon,.attachment-pill.attachment-error:hover .attachment-pill-icon{color:var(--color-danger)}@font-face{font-family:Noto Sans SC Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/NotoSansSC_wght_-BkPpiACN.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk_wght_-DIzGrWVg.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:italic;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk-Italic_wght_-DjkBGo1z.woff2) format("woff2-variations")}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,blockquote,dl,dd,figure,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}b,strong{font-weight:var(--weight-medium)}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{margin:0;padding:0;font-family:inherit;font-size:100%;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background:transparent;background-image:none}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block}img,video{max-width:100%;height:auto}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1}table{border-collapse:collapse;border-color:inherit;text-indent:0}hr{height:0;color:inherit;border-top-width:1px}fieldset{margin:0;padding:0}legend{padding:0}dialog{padding:0}summary{display:list-item}[hidden]{display:none}@supports (interpolate-size: allow-keywords){:root{interpolate-size:allow-keywords}}:root{--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--dock-card-top-clearance: 72px;--question-card-body-min-h: 120px;--header-collapsed-clearance: 78px;--header-collapsed-clearance-macos: 146px}.kw-icon{display:inline-block;flex:none;vertical-align:-.15em}code,pre,kbd,samp,tt{font-feature-settings:"liga" 0,"calt" 0,"ss01" 0;font-variant-ligatures:none}html,body,#app{height:100%;margin:0;background:var(--bg)}#app{position:fixed;inset:0}html,body{overflow:hidden}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--color-text) 12%,transparent) transparent}}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}*::-webkit-scrollbar-corner{background:transparent}body{font-family:var(--sans);color:var(--color-text);background:var(--bg);font-size:var(--ui-font-size);font-weight:400;line-height:1.6;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto;font-synthesis:none;text-size-adjust:100%;-webkit-hyphens:none;hyphens:none}@keyframes kimi-card-in{0%{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes kimi-check-in{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.ch-eyes{animation:kimi-eye-look 16s ease-in-out infinite}.ch-eye{transform-box:fill-box;transform-origin:center;animation:kimi-eye-blink 11s ease-in-out infinite}@keyframes kimi-eye-look{0%,42%{transform:translate(0)}47%,53%{transform:translate(2px)}58%,80%{transform:translate(0)}84%,90%{transform:translate(-2px)}95%,to{transform:translate(0)}}@keyframes kimi-eye-blink{0%,94%,to{transform:scaleY(1)}96.5%,98%{transform:scaleY(.12)}}@media(prefers-reduced-motion:reduce){.ch-eyes,.ch-eye{animation:none}}.blink-now .ch-eye{animation:kimi-eye-blink-once .24s ease-in-out}@keyframes kimi-eye-blink-once{0%,to{transform:scaleY(1)}50%{transform:scaleY(.1)}}.md .markdown-renderer img{min-width:0;min-height:0}.app{font-size:var(--ui-font-size)}.md,.md .markdown-renderer,.md .markdown-renderer p,.md .markdown-renderer li,.u-bub,.u-bub .u-text,.a-msg .msg,.ph{font-size:var(--content-font-size)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:var(--md-b2)}.md,.u-bub .u-text,.a-msg .msg{text-autospace:normal}.md .code-block-container pre,.md .markstream-pre,.md .code-block-container pre code,.md .diff-pre code,.md .markdown-renderer :not(pre)>code,.md .markdown-renderer .inline-code,.a-msg code{font-size:var(--md-b3)}.md .markdown-renderer :is(h1,h2,h3,h4) :not(pre)>code,.md .markdown-renderer :is(h1,h2,h3,h4) .inline-code{font-size:.9em}.queue-item,.queue-text,.ctx-num,.model-pill,.perm-pill,.mode-pill,.compact-chip,.qcard,.qtext,.qopt,.qbtn,.srow,.srow-val{font-size:var(--ui-font-size)}.qopt-desc,.srow-label{font-size:var(--ui-font-size-sm)}.code-block-header,.code-block-header *,.diff-lang,.queue-label,.qopt-key,.qstep,.srow-sub{font-size:var(--ui-font-size-xs)}@media(max-width:640px){:root{--content-font-size: calc(var(--md-b1) + 2px)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:calc(var(--md-b2) + 2px)}}:root{--anim-rive-spin: .4167s;--anim-leftbar: .5333s;--anim-leftbar-shrink: .2s}#bar-divider{transform-box:view-box;transform-origin:9.3px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #bar-divider,button:hover #bar-divider{transform:translate(-1.5px) scaleY(.5)}#bar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(63.95833%,50.625%) scale(0)}svg:hover #bar-arrow,button:hover #bar-arrow{animation:leftbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}}#bar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(52.08333%,50.625%) scale(0)}svg:hover #bar-arrow-expand,button:hover #bar-arrow-expand{animation:leftbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow-expand{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(1);opacity:1}}#rbar-divider{transform-box:view-box;transform-origin:14.7px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #rbar-divider,button:hover #rbar-divider{transform:translate(1.5px) scaleY(.5)}#rbar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(47.91667%,50.625%) scale(0)}svg:hover #rbar-arrow,button:hover #rbar-arrow{animation:rightbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes rightbar-arrow{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(47.91667%,50.625%) scale(1);opacity:1}to{transform:translate(47.91667%,50.625%) scale(1);opacity:1}}#rbar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(47.91667%,50.625%) scale(0)}svg:hover #rbar-arrow-expand,button:hover #rbar-arrow-expand{animation:rightbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes rightbar-arrow-expand{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(47.91667%,50.625%) scale(-1);opacity:1}to{transform:translate(47.91667%,50.625%) scale(-1);opacity:1}}#p1{transform-box:view-box;transform-origin:0 0}svg:hover #p1,button:hover #p1{animation:nc-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes nc-plus-spin{0%{transform:translate(11.5px,11.5px)}8%{transform:translate(11.501px,11.48px) rotate(1.1795deg) scale(1.02022)}12%{transform:translate(11.511px,11.46px) rotate(2.8374deg) scale(1.03026)}20%{transform:translate(11.562px,11.401px) rotate(8.8167deg) scale(1.05041)}24%{transform:translate(11.608px,11.361px) rotate(13.4726deg) scale(1.06017)}32%{transform:translate(11.751px,11.278px) rotate(25.9719deg) scale(1.08008)}48%{transform:translate(12.149px,11.222px) rotate(55.8418deg) scale(1.12025)}52%{transform:translate(12.235px,11.236px) rotate(62.0737deg) scale(1.12953)}60%{transform:translate(12.371px,11.276px) rotate(72.1167deg) scale(1.14954)}68%{transform:translate(12.446px,11.346px) rotate(79.3018deg) scale(1.12048)}76%{transform:translate(12.488px,11.403px) rotate(84.2633deg) scale(1.09046)}88%{transform:translate(12.509px,11.464px) rotate(88.52deg) scale(1.04535)}to{transform:translate(12.5px,11.5px) rotate(90deg)}}#af-p1{transform-box:view-box;transform-origin:18.4px 16.3px}svg:hover #af-p1,button:hover #af-p1{animation:folder-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes folder-plus-spin{0%{transform:none}8%{transform:rotate(1.1795deg) scale(1.02022)}12%{transform:rotate(2.8374deg) scale(1.03026)}20%{transform:rotate(8.8167deg) scale(1.05041)}24%{transform:rotate(13.4726deg) scale(1.06017)}32%{transform:rotate(25.9719deg) scale(1.08008)}48%{transform:rotate(55.8418deg) scale(1.12025)}52%{transform:rotate(62.0737deg) scale(1.12953)}60%{transform:rotate(72.1167deg) scale(1.14954)}68%{transform:rotate(79.3018deg) scale(1.12048)}76%{transform:rotate(84.2633deg) scale(1.09046)}88%{transform:rotate(88.52deg) scale(1.04535)}to{transform:rotate(90deg)}} diff --git a/apps/kimi-code/dist-web/assets/index-BTY1et1y.css b/apps/kimi-code/dist-web/assets/index-BTY1et1y.css new file mode 100644 index 00000000000..355a43408ec --- /dev/null +++ b/apps/kimi-code/dist-web/assets/index-BTY1et1y.css @@ -0,0 +1 @@ +.ui-action-card[data-v-aa7ca9d9]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.ui-action-card[data-v-aa7ca9d9]:hover:not(:disabled){border-color:var(--color-line-strong);background:var(--color-surface)}.ui-action-card[data-v-aa7ca9d9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.ui-action-card[data-v-aa7ca9d9]:disabled{opacity:.5;cursor:not-allowed}.ui-action-card__leading[data-v-aa7ca9d9]{align-self:flex-start;display:inline-flex;flex:none}.ui-action-card__text[data-v-aa7ca9d9]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ui-action-card__title[data-v-aa7ca9d9]{display:block;font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ui-action-card__title[data-v-aa7ca9d9] .ui-badge{margin-left:var(--space-2);vertical-align:middle}.ui-action-card__hint[data-v-aa7ca9d9]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ui-action-card__chevron[data-v-aa7ca9d9]{color:var(--color-text-faint);flex:none}.ui-tip__bubble[data-v-890c262c]{position:fixed;z-index:var(--z-tooltip);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--tip-lines);max-width:280px;padding:4px 8px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);font-family:var(--font-ui);font-size:var(--text-xs);line-height:1.35;overflow:hidden;overflow-wrap:anywhere;pointer-events:none;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.ui-tip__bubble.positioned[data-v-890c262c]{opacity:1}.ui-icon-button[data-v-2cbeca98]{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:.5px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.ui-icon-button[data-v-2cbeca98]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text)}.ui-icon-button[data-v-2cbeca98]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-icon-button[data-v-2cbeca98]:disabled{opacity:.5;cursor:not-allowed}.ui-icon-button--sm[data-v-2cbeca98]{width:var(--icon-button-sm);height:var(--icon-button-sm);border-radius:var(--radius-sm)}.ui-icon-button--md[data-v-2cbeca98]{width:32px;height:32px}.ui-icon-button--lg[data-v-2cbeca98]{width:44px;height:44px}.ui-icon-button[data-v-2cbeca98] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-icon-button--sm[data-v-2cbeca98] svg{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-icon-button--lg[data-v-2cbeca98] svg{width:var(--p-ic-lg);height:var(--p-ic-lg)}.ui-action-toast-host[data-v-e67fcfa0]{position:fixed;top:calc(48px + var(--space-2));left:50%;translate:-50% 0;z-index:var(--z-toast);max-width:calc(100vw - 32px)}.ui-action-toast[data-v-e67fcfa0]{display:flex;align-items:center;gap:var(--space-2);padding:4px 6px 4px 14px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);font-family:var(--font-ui);font-size:var(--text-base);line-height:1.45;color:var(--color-text);white-space:nowrap}.ui-action-toast__body[data-v-e67fcfa0]{min-width:0}.ui-action-toast__body button[data-v-e67fcfa0-s]{border:0;padding:0;margin-inline:var(--space-1);background:none;color:var(--color-accent);cursor:pointer;font:inherit}.ui-action-toast__body button[data-v-e67fcfa0-s]:hover{color:var(--color-accent-hover);text-decoration:underline}.ui-action-toast__body button[data-v-e67fcfa0-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-xs)}.ui-action-toast__close[data-v-e67fcfa0]{flex:none}.ui-badge[data-v-d879fe18]{display:inline-flex;align-items:center;gap:6px;border-radius:var(--radius-full);font-family:var(--font-ui);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;border:.5px solid transparent}.ui-badge--md[data-v-d879fe18]{height:22px;padding:0 9px;font-size:var(--text-xs)}.ui-badge--sm[data-v-d879fe18]{height:18px;padding:0 7px;font-size:11px}.ui-badge__dot[data-v-d879fe18]{width:6px;height:6px;border-radius:var(--radius-full);background:currentColor;flex:none}.ui-badge--neutral[data-v-d879fe18]{background:var(--color-surface-sunken);color:var(--color-text-muted);border-color:var(--color-line)}.ui-badge--info[data-v-d879fe18]{background:var(--color-accent-soft);color:var(--color-accent-hover);border-color:var(--color-accent-bd)}.ui-badge--success[data-v-d879fe18]{background:var(--color-success-soft);color:var(--color-success);border-color:var(--color-success-bd)}.ui-badge--warning[data-v-d879fe18]{background:var(--color-warning-soft);color:var(--color-warning);border-color:var(--color-warning-bd)}.ui-badge--danger[data-v-d879fe18]{background:var(--color-danger-soft);color:var(--color-danger);border-color:var(--color-danger-bd)}.ui-badge--solid[data-v-d879fe18]{background:var(--color-text);color:var(--color-bg)}.ui-banner[data-v-6d739c6d]{display:flex;align-items:center;gap:10px;padding:10px 14px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.ui-banner__icon[data-v-6d739c6d]{display:inline-flex;flex:none}.ui-banner__icon svg[data-v-6d739c6d]{width:18px;height:18px}.ui-banner--info[data-v-6d739c6d]{background:var(--color-accent-soft);border-color:var(--color-accent-bd)}.ui-banner--warning[data-v-6d739c6d]{background:var(--color-warning-soft);border-color:var(--color-warning-bd)}.ui-banner--danger[data-v-6d739c6d]{background:var(--color-danger-soft);border-color:var(--color-danger-bd)}.ui-banner--info .ui-banner__icon[data-v-6d739c6d]{color:var(--color-accent)}.ui-banner--warning .ui-banner__icon[data-v-6d739c6d]{color:var(--color-warning)}.ui-banner--danger .ui-banner__icon[data-v-6d739c6d]{color:var(--color-danger)}.ui-spinner[data-v-476ed1b4]{display:inline-flex;flex:none;color:var(--color-accent)}.ui-spinner--xs[data-v-476ed1b4]{width:var(--p-ic-md);height:var(--p-ic-md)}.ui-spinner--xs .ui-spinner__track[data-v-476ed1b4],.ui-spinner--xs .ui-spinner__arc[data-v-476ed1b4]{r:10.875px;stroke-width:calc(var(--p-ring-stroke) * 1.5)}.ui-spinner--xs .ui-spinner__arc[data-v-476ed1b4]{stroke-dasharray:67.7 67.7;stroke-dashoffset:45.9}.ui-spinner--sm[data-v-476ed1b4]{width:14px;height:14px}.ui-spinner--md[data-v-476ed1b4]{width:18px;height:18px}.ui-spinner--lg[data-v-476ed1b4]{width:28px;height:28px}.ui-spinner__svg[data-v-476ed1b4]{width:100%;height:100%}.ui-spinner__track[data-v-476ed1b4]{fill:none;stroke:var(--color-line);stroke-width:2.2}.ui-spinner__arc[data-v-476ed1b4]{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:56 56;stroke-dashoffset:38}.ui-button[data-v-8e78b113]{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);border:.5px solid transparent;border-radius:var(--radius-md);font-family:var(--font-ui);font-weight:var(--weight-medium);line-height:1;cursor:pointer;white-space:nowrap;transition:background var(--duration-base) var(--ease-out),border-color var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.ui-button[data-v-8e78b113]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.ui-button[data-v-8e78b113]:not(:disabled):active{transform:scale(.98)}.ui-button[data-v-8e78b113]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.ui-button--sm[data-v-8e78b113]{height:30px;padding:0 var(--space-3);font-size:var(--text-sm);border-radius:var(--radius-sm)}.ui-button--md[data-v-8e78b113]{height:36px;padding:0 var(--space-4);font-size:var(--text-base)}.ui-button--lg[data-v-8e78b113]{height:42px;padding:0 var(--space-5);font-size:15px;border-radius:var(--radius-lg)}.ui-button__content[data-v-8e78b113]{display:inline-flex;align-items:center;gap:var(--space-2)}.ui-button__content[data-v-8e78b113] svg{flex:none}.ui-button__content[data-v-8e78b113] svg:not([width]){width:1em;height:1em}.ui-button--primary[data-v-8e78b113]{background:var(--color-accent);color:var(--color-text-on-accent);border-color:var(--color-accent);box-shadow:var(--shadow-xs)}.ui-button--primary[data-v-8e78b113]:not(:disabled):hover{background:var(--color-accent-hover);border-color:var(--color-accent-hover)}.ui-button--secondary[data-v-8e78b113]{background:var(--color-surface-raised);color:var(--color-text);border-color:var(--color-line-strong);box-shadow:var(--shadow-xs)}.ui-button--secondary[data-v-8e78b113]:not(:disabled):hover{border-color:var(--color-line-strong);background:var(--color-hover)}.ui-button--ghost[data-v-8e78b113]{background:transparent;color:var(--color-text-muted);border-color:transparent}.ui-button--ghost[data-v-8e78b113]:not(:disabled):hover{background:var(--color-hover);color:var(--color-text-strong)}.ui-button--danger[data-v-8e78b113]{background:var(--color-danger);color:var(--color-text-on-accent);border-color:var(--color-danger);box-shadow:var(--shadow-xs)}.ui-button--danger[data-v-8e78b113]:not(:disabled):hover{filter:brightness(.96)}.ui-button--danger-soft[data-v-8e78b113]{background:var(--color-danger-soft);color:var(--color-danger);border-color:var(--color-danger-bd)}.ui-button--danger-soft[data-v-8e78b113]:not(:disabled):hover{background:var(--color-danger);color:var(--color-text-on-accent);border-color:var(--color-danger)}.ui-button--text[data-v-8e78b113]{height:auto;padding:0;background:transparent;border-color:transparent;border-radius:var(--radius-xs);color:var(--color-text-muted);font-size:inherit;font-weight:inherit;text-decoration:underline;text-underline-offset:2px}.ui-button--text[data-v-8e78b113]:not(:disabled):hover{color:var(--color-text)}.ui-button--text[data-v-8e78b113]:not(:disabled):active{transform:none}.ui-button.is-loading .ui-button__content[data-v-8e78b113]{opacity:.7}.ui-button .ui-button__spinner[data-v-8e78b113]{flex:none;color:inherit}.ui-button__spinner[data-v-8e78b113] .ui-spinner__track{opacity:.35}.ui-card[data-v-fbd05138]{background:var(--color-surface);border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.ui-card.is-elevated[data-v-fbd05138]{box-shadow:var(--shadow-md);border-color:transparent}.ui-card__head[data-v-fbd05138]{display:flex;align-items:center;gap:var(--space-2);padding:10px 14px;border-bottom:.5px solid var(--color-line);background:var(--color-surface);font-family:var(--font-mono);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text)}.ui-card__body[data-v-fbd05138]{padding:14px;color:var(--color-text-muted)}.ui-card__foot[data-v-fbd05138]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding:10px 14px;border-top:.5px solid var(--color-line);background:var(--color-surface)}.ctx-ring[data-v-de787cf2]{width:16px;height:16px;flex:none;transform:rotate(-90deg)}.ctx-ring-track[data-v-de787cf2]{stroke:var(--line)}.ctx-ring-fill[data-v-de787cf2]{stroke:var(--color-accent);transition:stroke-dashoffset .3s ease,stroke .3s ease}.ui-dialog__overlay[data-v-41ce75e5]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:#0d111747;animation:kimi-dialog-overlay-in-41ce75e5 var(--duration-base) var(--ease-out)}@keyframes kimi-dialog-overlay-in-41ce75e5{0%{opacity:0}to{opacity:1}}.ui-dialog[data-v-41ce75e5]{max-height:calc(100vh - var(--space-8) * 2);display:flex;flex-direction:column;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);outline:none;overflow:hidden;animation:kimi-card-in var(--duration-slow) var(--ease-out)}.ui-dialog--sm[data-v-41ce75e5]{width:min(360px,100%)}.ui-dialog--md[data-v-41ce75e5]{width:min(440px,100%)}.ui-dialog--lg[data-v-41ce75e5]{width:min(640px,100%)}.ui-dialog--xl[data-v-41ce75e5]{width:min(var(--p-content-max),100%)}.ui-dialog--fixed-height[data-v-41ce75e5]{height:min(680px,calc(100vh - var(--space-8) * 2))}.ui-dialog--grouped[data-v-41ce75e5]{background:var(--color-bg)}.ui-dialog--flush .ui-dialog__body[data-v-41ce75e5]{padding:0}.ui-dialog__head[data-v-41ce75e5]{display:flex;align-items:flex-start;gap:var(--space-3);padding:20px 22px 14px}.ui-dialog__titles[data-v-41ce75e5]{flex:1;min-width:0}.ui-dialog__title[data-v-41ce75e5]{font-size:var(--text-lg);font-weight:500;color:var(--color-text);line-height:var(--leading-tight)}.ui-dialog__desc[data-v-41ce75e5]{margin-top:4px;font-size:var(--text-base);color:var(--color-text-muted)}.ui-dialog__close[data-v-41ce75e5]{flex:none;margin-top:-2px}.ui-dialog__body[data-v-41ce75e5]{flex:1;min-height:0;padding:4px 22px 18px;color:var(--color-text);overflow:auto}.ui-dialog__foot[data-v-41ce75e5]{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 22px 20px}@media(max-width:640px){.ui-dialog__overlay[data-v-41ce75e5]{align-items:flex-end;padding:0}.ui-dialog[data-v-41ce75e5]{width:100%;max-width:100%;max-height:calc(var(--app-height, 100dvh) * .86);border-right:none;border-bottom:none;border-left:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;padding-bottom:var(--safe-bottom, 0px);animation:ui-dialog-sheet-up-41ce75e5 var(--duration-slow) var(--ease-out)}.ui-dialog--fixed-height[data-v-41ce75e5]{height:calc(var(--app-height, 100dvh) * .86)}}@keyframes ui-dialog-sheet-up-41ce75e5{0%{transform:translateY(101%)}to{transform:translateY(0)}}.ui-empty[data-v-6da80932]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-8) var(--space-4);text-align:center;color:var(--color-text-muted)}.ui-empty__icon[data-v-6da80932]{color:var(--color-text-faint)}.ui-empty__icon[data-v-6da80932] svg{width:48px;height:48px}.ui-empty__title[data-v-6da80932]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text-muted)}.ui-empty__hint[data-v-6da80932]{font-size:var(--text-sm);color:var(--color-text-muted)}.ui-field[data-v-a8de5f7f]{display:flex;flex-direction:column;gap:6px}.ui-field__label[data-v-a8de5f7f]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.ui-field__hint[data-v-a8de5f7f]{font-size:var(--text-xs);color:var(--color-text-faint)}.ui-field__error[data-v-a8de5f7f]{font-size:var(--text-xs);color:var(--color-danger)}.ui-input[data-v-f1cdf732]{width:100%;border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-surface-overlay);box-shadow:var(--shadow-xs);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:0 var(--space-3);transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-input--md[data-v-f1cdf732]{height:38px}.ui-input--sm[data-v-f1cdf732]{height:32px;font-size:var(--text-sm);border-radius:var(--radius-sm)}.ui-input[data-v-f1cdf732]::placeholder{color:var(--color-text-faint)}.ui-input[data-v-f1cdf732]:hover:not(:disabled):not(:focus){border-color:var(--color-line-strong)}.ui-input[data-v-f1cdf732]:focus{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-input[data-v-f1cdf732]:disabled{opacity:.5;cursor:not-allowed}.ui-input[readonly][data-v-f1cdf732]{background:var(--color-surface-sunken)}.ui-input.has-error[data-v-f1cdf732]{border-color:var(--color-danger)}.ui-input.has-error[data-v-f1cdf732]:focus{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-kbd[data-v-04b30ce2]{display:inline-flex;align-items:center;gap:3px;flex:none}.ui-kbd__key[data-v-04b30ce2]{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border:.5px solid var(--color-line);border-radius:var(--radius-xs);background:transparent;color:inherit;font-family:var(--font-kbd);font-size:11px;line-height:1}.ui-menu[data-v-18d99605]{min-width:180px;padding:var(--menu-pad);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);display:flex;flex-direction:column}.ui-menu-item[data-v-607794d8]{display:flex;align-items:center;gap:7px;width:100%;padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border:none;border-radius:var(--radius-menu-item);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight);text-align:left;cursor:pointer;transition:background var(--duration-base),color var(--duration-base)}.ui-menu-item[data-v-607794d8]:hover:not(:disabled):not(.is-active):not(.is-danger){background:var(--color-hover);color:var(--color-text-strong)}.ui-menu-item[data-v-607794d8]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-menu-item[data-v-607794d8]:disabled{opacity:.5;cursor:not-allowed}.ui-menu-item.is-active[data-v-607794d8]{background:var(--color-hover);color:var(--color-text)}.ui-menu-item.is-danger[data-v-607794d8]{color:var(--color-danger)}.ui-menu-item.is-danger[data-v-607794d8]:hover:not(:disabled){background:var(--color-danger-soft)}.ui-menu-item[data-v-607794d8] svg{display:block;width:16px;height:16px;flex:none;color:var(--muted);transition:color var(--duration-base)}.ui-menu-item[data-v-607794d8]:hover:not(:disabled):not(.is-active):not(.is-danger) svg{color:var(--color-text-strong)}.ui-menu-item.is-active[data-v-607794d8] svg{color:var(--color-text)}.ui-menu-item.is-danger[data-v-607794d8] svg{color:var(--color-danger)}.ui-menu-item--lg[data-v-607794d8]{min-height:44px;padding:12px 14px;font-size:var(--text-sm)}.ui-menu-sep[data-v-607794d8]{height:1px;margin:4px 0;background:var(--color-line)}.ui-tip[data-v-414bd903]{display:contents}.ui-panel-header[data-v-2650aff3]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:var(--panel-head-h, 48px);padding:0 var(--panel-head-inset, 11px) 0 var(--space-3);box-sizing:border-box;min-width:0;border-bottom:.5px solid var(--color-line);background:var(--color-surface-deep)}.ui-panel-header__title[data-v-2650aff3]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--weight-semibold) var(--ui-b2) var(--font-ui);color:var(--color-text)}.ui-panel-header__sub[data-v-2650aff3]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--ui-c1) var(--font-mono);color:var(--color-text-muted)}.ui-panel-header__close[data-v-2650aff3]{flex:none;margin-left:auto}.ui-panel-header.wrap[data-v-2650aff3]{flex-wrap:wrap;height:auto;min-height:var(--panel-head-h, 48px);padding-top:3px;padding-bottom:3px;gap:4px 6px}.ui-panel-header.wrap .ui-panel-header__close[data-v-2650aff3]{margin-left:0}.ui-pill[data-v-fe6a2873]{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:.5px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:default;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}button.ui-pill[data-v-fe6a2873]{cursor:pointer}button.ui-pill[data-v-fe6a2873]:hover:not(:disabled){background:var(--color-hover);color:var(--color-text-strong)}button.ui-pill[data-v-fe6a2873]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}button.ui-pill[data-v-fe6a2873]:disabled{opacity:.5;cursor:not-allowed}.ui-pill.is-active[data-v-fe6a2873]{background:var(--color-accent-soft);color:var(--color-accent)}.ui-pill[data-v-fe6a2873] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);flex:none;color:var(--color-text-faint)}.ui-scroll-area[data-v-9c504ebc]{position:relative;min-width:0;min-height:0;overflow:hidden}.ui-scroll-area__viewport[data-v-9c504ebc]{width:100%;height:100%;overscroll-behavior:contain;scrollbar-width:none}.ui-scroll-area__viewport[data-v-9c504ebc]::-webkit-scrollbar{display:none}.ui-scroll-area__viewport[data-v-9c504ebc]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ui-scroll-area__bar[data-v-9c504ebc]{position:absolute;z-index:3;opacity:0;pointer-events:none;touch-action:none;transition:opacity var(--duration-base) var(--ease-out)}.ui-scroll-area__bar.is-visible[data-v-9c504ebc]{opacity:1;pointer-events:auto}.ui-scroll-area__bar--vertical[data-v-9c504ebc]{inset:2px 2px 2px auto;width:10px}.ui-scroll-area__bar--horizontal[data-v-9c504ebc]{inset:auto 2px 2px;height:10px}.ui-scroll-area__thumb[data-v-9c504ebc]{position:absolute;display:block;border-radius:999px;background:color-mix(in srgb,var(--color-text-muted) 62%,transparent);transition:background var(--duration-fast) var(--ease-out),width var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.ui-scroll-area__bar--vertical .ui-scroll-area__thumb[data-v-9c504ebc]{right:1px;width:4px}.ui-scroll-area__bar--horizontal .ui-scroll-area__thumb[data-v-9c504ebc]{bottom:1px;height:4px}.ui-scroll-area__bar:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__thumb[data-v-9c504ebc]:active{background:color-mix(in srgb,var(--color-text-muted) 82%,transparent)}.ui-scroll-area__bar--vertical:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__bar--vertical .ui-scroll-area__thumb[data-v-9c504ebc]:active{width:6px}.ui-scroll-area__bar--horizontal:hover .ui-scroll-area__thumb[data-v-9c504ebc],.ui-scroll-area__bar--horizontal .ui-scroll-area__thumb[data-v-9c504ebc]:active{height:6px}.ui-seg[data-v-b09ef1d1]{position:relative;display:inline-flex;gap:2px;padding:2px;background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md)}.ui-seg__indicator[data-v-b09ef1d1]{position:absolute;top:0;left:0;z-index:0;border-radius:var(--radius-sm);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);opacity:0;pointer-events:none;transition:transform var(--duration-base) var(--ease-out),width var(--duration-base) var(--ease-out),height var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out)}.ui-seg__indicator.is-ready[data-v-b09ef1d1]{opacity:1}.ui-seg__item[data-v-b09ef1d1]{position:relative;z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-weight:var(--weight-medium);cursor:pointer;line-height:1;white-space:nowrap;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-seg__swatch[data-v-b09ef1d1]{width:7px;height:7px;border:.5px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:50%;flex:none}.ui-seg__icon[data-v-b09ef1d1]{flex:none}.ui-seg--md .ui-seg__item[data-v-b09ef1d1]{padding:5px var(--space-3);font-size:var(--text-sm)}.ui-seg--sm .ui-seg__item[data-v-b09ef1d1]{height:24px;padding:0 var(--space-2);font-size:var(--text-sm)}.ui-seg--xs .ui-seg__item[data-v-b09ef1d1]{height:20px;padding:0 var(--space-2);font-size:var(--text-xs)}.ui-seg__item[data-v-b09ef1d1]:hover:not(.is-on){color:var(--color-text)}.ui-seg__item.is-on[data-v-b09ef1d1]{color:var(--color-text)}.ui-seg__item[data-v-b09ef1d1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-select[data-v-285335af]{position:relative;width:100%;font-family:var(--font-ui)}.ui-select__trigger[data-v-285335af]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:100%;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.ui-select--md[data-v-285335af]{height:38px}.ui-select--sm[data-v-285335af]{height:32px}.ui-select--sm .ui-select__trigger[data-v-285335af]{font-size:var(--text-sm)}.ui-select__trigger[data-v-285335af]:hover:not(:disabled){border-color:var(--color-line-strong)}.ui-select__trigger[data-v-285335af]:focus-visible,.ui-select.is-open .ui-select__trigger[data-v-285335af]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-select.has-error .ui-select__trigger[data-v-285335af]{border-color:var(--color-danger)}.ui-select.has-error .ui-select__trigger[data-v-285335af]:focus-visible{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-select__value[data-v-285335af]{min-width:0;flex:1;display:flex;align-items:center;gap:var(--space-2);overflow:hidden;white-space:nowrap}.ui-select__value-text[data-v-285335af]{min-width:0;overflow:hidden;text-overflow:ellipsis}.ui-select__value.is-placeholder[data-v-285335af]{color:var(--color-text-faint)}.ui-select__icon[data-v-285335af]{flex:none;width:14px;height:14px;border-radius:3px}.ui-select__icon--option[data-v-285335af]{width:16px;height:16px;border-radius:4px}.ui-select__chevron[data-v-285335af]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.ui-select.is-open .ui-select__chevron[data-v-285335af]{transform:rotate(180deg)}.ui-select.is-disabled[data-v-285335af]{opacity:.5}.ui-select.is-disabled .ui-select__trigger[data-v-285335af]{cursor:not-allowed}.ui-select__menu[data-v-285335af]{position:fixed;z-index:var(--z-modal-dropdown);max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.ui-select__group[data-v-285335af]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.ui-select__option[data-v-285335af]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.ui-select__option.is-active[data-v-285335af]{background:var(--color-hover);color:var(--color-text-strong)}.ui-select__option[data-v-285335af]:disabled{opacity:.45;cursor:not-allowed}.ui-select__check[data-v-285335af]{flex:none;color:transparent}.ui-select__option.is-selected .ui-select__check[data-v-285335af]{color:var(--color-accent)}.kw-dot[data-v-390a778a]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-text-faint);flex:none}.kw-dot--ok[data-v-390a778a]{background:var(--color-success)}.kw-dot--error[data-v-390a778a]{background:var(--color-danger)}.kw-dot--suspended[data-v-390a778a]{background:var(--color-warning)}.kw-dot--running[data-v-390a778a]{background:var(--color-accent);position:relative}.kw-dot--running[data-v-390a778a]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-accent) 40%,transparent);animation:kw-dot-pulse-390a778a 1.4s var(--ease-out) infinite}@keyframes kw-dot-pulse-390a778a{0%{transform:scale(1);opacity:1}to{transform:scale(2.7);opacity:0}}.ui-switch[data-v-2fc56545]{position:relative;width:36px;height:20px;flex:none;padding:0;border:.5px solid var(--color-line-strong);border-radius:var(--radius-full);background:var(--color-line-strong);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ui-switch.is-on[data-v-2fc56545]{background:var(--color-accent)}.ui-switch[data-v-2fc56545]:disabled{opacity:.5;cursor:not-allowed}.ui-switch[data-v-2fc56545]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ui-switch__thumb[data-v-2fc56545]{position:absolute;top:1.5px;left:1.5px;width:16px;height:16px;border-radius:var(--radius-full);background:var(--color-text-on-accent);box-shadow:var(--shadow-xs);transform-origin:left center;transition:transform var(--duration-base) var(--ease-out)}.ui-switch:not(:disabled):hover .ui-switch__thumb[data-v-2fc56545]{transform:scaleX(1.125)}.ui-switch.is-on .ui-switch__thumb[data-v-2fc56545]{transform:translate(16px);transform-origin:right center}.ui-switch.is-on:not(:disabled):hover .ui-switch__thumb[data-v-2fc56545]{transform:translate(16px) scaleX(1.125)}.ui-textarea[data-v-07cc9fb9]{width:100%;min-height:84px;resize:vertical;border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-surface-overlay);box-shadow:var(--shadow-xs);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:10px 12px;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.ui-textarea[data-v-07cc9fb9]::placeholder{color:var(--color-text-faint)}.ui-textarea.no-resize[data-v-07cc9fb9]{resize:none}.ui-textarea[data-v-07cc9fb9]:hover:not(:disabled):not(:focus){border-color:var(--color-line-strong)}.ui-textarea[data-v-07cc9fb9]:focus{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.ui-textarea[data-v-07cc9fb9]:disabled{opacity:.5;cursor:not-allowed}.ui-textarea[readonly][data-v-07cc9fb9]{background:var(--color-surface-sunken)}.ui-textarea.has-error[data-v-07cc9fb9]{border-color:var(--color-danger)}.ui-textarea.has-error[data-v-07cc9fb9]:focus{box-shadow:0 0 0 3px var(--color-danger-soft)}.ui-toast[data-v-62bc76d1]{display:flex;align-items:flex-start;gap:11px;width:360px;max-width:100%;padding:13px 14px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);font-family:var(--font-ui);line-height:1.45}.ui-toast__icon[data-v-62bc76d1]{flex:none;width:20px;height:20px;margin-top:1px;border-radius:var(--radius-full);display:grid;place-items:center;background:var(--color-accent-soft);color:var(--color-accent)}.ui-toast__icon svg[data-v-62bc76d1]{width:12px;height:12px}.ui-toast--success .ui-toast__icon[data-v-62bc76d1]{background:var(--color-success-soft);color:var(--color-success)}.ui-toast--warning .ui-toast__icon[data-v-62bc76d1]{background:var(--color-warning-soft);color:var(--color-warning)}.ui-toast--danger .ui-toast__icon[data-v-62bc76d1]{background:var(--color-danger-soft);color:var(--color-danger)}.ui-toast--danger[data-v-62bc76d1]{border-color:color-mix(in srgb,var(--color-danger) 35%,transparent)}.ui-toast__body[data-v-62bc76d1]{flex:1;min-width:0}.ui-toast__title[data-v-62bc76d1]{font-size:var(--text-base);font-weight:500;color:var(--color-text);overflow-wrap:anywhere}.ui-toast__msg[data-v-62bc76d1]{margin-top:2px;font-size:var(--text-sm);color:var(--color-text-muted);overflow-wrap:anywhere}.ui-toast--danger .ui-toast__msg[data-v-62bc76d1]{color:var(--color-danger)}.ui-toast__close[data-v-62bc76d1]{flex:none;margin:-3px -4px 0 0}.sd-search[data-v-5bf43f78]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.sd-search[data-v-5bf43f78] .ui-input{padding-right:30px}.search-clear[data-v-5bf43f78]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-5bf43f78]{visibility:visible;opacity:1}.search-clear[data-v-5bf43f78]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-5bf43f78]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}@media(prefers-reduced-motion:reduce){.search-clear[data-v-5bf43f78]{transition:none}}.sd-body[data-v-5bf43f78]{height:100%;min-height:0;display:flex;flex-direction:column;gap:var(--space-2);padding-top:4px}.sd-list[data-v-5bf43f78]{flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2);--sd-gutter: var(--p-ic-md);--sd-gap: var(--space-2)}.sd-section[data-v-5bf43f78]{display:flex;align-items:baseline;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.sd-section-count[data-v-5bf43f78]{font-weight:var(--weight-regular)}.sd-section[data-v-5bf43f78]:first-child{padding-top:var(--space-1)}.sd-section[data-v-5bf43f78]:not(:first-child){margin-top:var(--space-1);border-top:var(--p-hairline) solid var(--color-line)}.sd-row[data-v-5bf43f78]{display:flex;flex-direction:column;gap:2px;width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:none;cursor:pointer;text-align:left;font-family:var(--font-ui);color:var(--color-text)}.sd-row[data-v-5bf43f78]:hover{background:var(--color-hover)}.sd-row.on[data-v-5bf43f78]{background:var(--color-selected)}.sd-row.active .sd-title[data-v-5bf43f78]{color:var(--color-accent-hover)}.sd-row-ws[data-v-5bf43f78]{flex-direction:row;align-items:center;gap:var(--sd-gap)}.sd-folder[data-v-5bf43f78]{flex:none;width:var(--sd-gutter);color:var(--color-text-muted)}.sd-ws-name[data-v-5bf43f78]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-ws-path[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line1[data-v-5bf43f78],.sd-line2[data-v-5bf43f78]{padding-left:calc(var(--sd-gutter) + var(--sd-gap))}.sd-line1[data-v-5bf43f78]{display:flex;align-items:baseline;gap:var(--space-2);min-width:0}.sd-title[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);color:var(--color-text)}.sd-time[data-v-5bf43f78]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-line2[data-v-5bf43f78]{display:flex;align-items:center;gap:var(--space-1);min-width:0;font-size:var(--text-xs);color:var(--color-text-muted)}.sd-meta-ws[data-v-5bf43f78]{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-meta-sep[data-v-5bf43f78]{color:var(--color-text-faint)}.sd-meta-snippet[data-v-5bf43f78]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-title[data-v-5bf43f78] mark,.sd-ws-name[data-v-5bf43f78] mark{background:var(--color-accent-soft);color:inherit;font-weight:var(--weight-semibold);border-radius:var(--radius-xs);padding:0 1px}.sd-line2[data-v-5bf43f78] mark,.sd-ws-path[data-v-5bf43f78] mark{background:var(--color-accent-soft);color:var(--color-text);font-weight:var(--weight-medium);border-radius:var(--radius-xs);padding:0 1px}.sd-empty[data-v-5bf43f78]{height:100%;display:flex;align-items:center;justify-content:center}.sd-foot[data-v-5bf43f78]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.sd-hint[data-v-5bf43f78]{display:inline-flex;align-items:center;gap:var(--space-1)}.sd-dot[data-v-5bf43f78]{margin:0 var(--space-1)}.rc-dev[data-v-4dd165fb]{--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gap: var(--space-2);--sb-hover: var(--color-hover);position:relative;padding:0 var(--sb-inset) var(--space-1)}.rc-dev--mobile[data-v-4dd165fb]{padding:var(--space-1) var(--sb-inset) var(--space-2)}.rc-dev--mobile .rc-dev-trigger[data-v-4dd165fb]{min-height:44px}.rc-dev-trigger[data-v-4dd165fb]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:6px calc(var(--sb-pad-x) - var(--sb-inset));border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.rc-dev-trigger[data-v-4dd165fb]:hover,.rc-dev-trigger[aria-expanded=true][data-v-4dd165fb]{background:var(--sb-hover)}.rc-dev-trigger[data-v-4dd165fb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.rc-dev-trigger svg[data-v-4dd165fb]{flex:none}.rc-dev-name[data-v-4dd165fb]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-chevron[data-v-4dd165fb]{margin-left:auto;color:var(--color-text-faint)}.rc-dev-menu[data-v-4dd165fb]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.rc-dev-menu--mobile[data-v-4dd165fb]{position:absolute;top:100%;left:var(--sb-inset);right:var(--sb-inset);bottom:auto;max-height:min(50vh,320px);transform-origin:top center}.rc-dev-menu--mobile .rc-dev-offline[data-v-4dd165fb]{min-height:44px;padding:12px 14px}.menu-pop-enter-active[data-v-4dd165fb]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-4dd165fb]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-4dd165fb],.menu-pop-leave-to[data-v-4dd165fb]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.rc-dev-state[data-v-4dd165fb]{display:flex;align-items:center;justify-content:center;padding:var(--space-3)}.rc-dev-failed[data-v-4dd165fb]{color:var(--color-text-muted);font-size:var(--text-sm)}.rc-dev-caption[data-v-4dd165fb]{padding:var(--space-2) var(--menu-item-padding-inline) 2px;color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.rc-dev-item-name[data-v-4dd165fb]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rc-dev-item-status[data-v-4dd165fb]{display:flex;align-items:center;gap:6px;flex:none;color:var(--color-text-muted)}.rc-dev-item-check[data-v-4dd165fb]{display:flex;align-items:center;justify-content:center;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.rc-dev-offline[data-v-4dd165fb]{padding:var(--menu-item-padding-block) var(--menu-item-padding-inline);border-radius:var(--radius-menu-item);color:var(--color-text-muted);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:var(--leading-tight)}.rc-dev-offline.is-current[data-v-4dd165fb]{background:var(--color-hover);color:var(--color-text)}.rc-dev-offline-row[data-v-4dd165fb]{display:flex;align-items:center;gap:7px}.rc-dev-offline-row svg[data-v-4dd165fb]{display:block;width:var(--p-ic-md);height:var(--p-ic-md);flex:none}.user-menu-trigger[data-v-7472da32]{display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.user-menu-trigger[data-v-7472da32]:hover,.user-menu-trigger[aria-expanded=true][data-v-7472da32]{background:var(--sb-hover)}.user-menu-trigger[data-v-7472da32]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}html.macos-desktop .user-menu-trigger[data-v-7472da32]{border-bottom-left-radius:var(--radius-window-chip)}.user-menu-trigger svg[data-v-7472da32]{flex:none}.user-menu-avatar[data-v-7472da32]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:var(--radius-full);background:var(--color-surface-sunken);color:var(--color-text-muted);overflow:hidden}.user-menu-avatar img[data-v-7472da32]{width:100%;height:100%;object-fit:cover}.user-menu-name[data-v-7472da32]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu[data-v-7472da32]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.user-submenu[data-v-7472da32]{position:fixed;top:0;left:0;z-index:var(--z-dropdown);width:max-content;max-height:calc(100vh - 16px);overflow-y:auto;overflow-x:hidden;user-select:none}.menu-pop-enter-active[data-v-7472da32]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-7472da32]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-7472da32],.menu-pop-leave-to[data-v-7472da32]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, 2px))}.user-menu-usage[data-v-7472da32]{display:flex;flex-direction:column;gap:calc(var(--menu-item-padding-block) * 2);padding:var(--menu-item-padding-block) var(--menu-item-padding-inline)}.user-menu-usage-state[data-v-7472da32]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-1) 0;color:var(--color-text-muted);font-size:var(--text-sm)}.user-menu-usage-error[data-v-7472da32]{flex:1;min-width:0}.user-menu-usage-empty[data-v-7472da32]{color:var(--color-text-faint)}.user-menu-usage-row[data-v-7472da32]{display:grid;grid-template-columns:auto 1fr;column-gap:var(--space-3);row-gap:var(--space-05)}.user-menu-usage-label[data-v-7472da32]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:var(--leading-tight);color:var(--color-text)}.user-menu-usage-hint[data-v-7472da32]{grid-column:1 / -1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.user-menu-usage-value[data-v-7472da32]{justify-self:end;font-size:var(--text-sm);line-height:var(--leading-tight);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.user-menu-usage-value.sev-warn[data-v-7472da32]{color:var(--color-warning)}.user-menu-usage-value.sev-danger[data-v-7472da32]{color:var(--color-danger)}.user-menu-item-label[data-v-7472da32]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-login-label[data-v-7472da32]{color:var(--color-accent)}.user-menu-row-value[data-v-7472da32]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);color:var(--color-text-faint)}.emoji-picker[data-v-b0dbbae4]{--ep-cell: 26px}.ep-search[data-v-b0dbbae4]{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-1);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--color-text-faint)}.ep-search[data-v-b0dbbae4]:hover,.ep-search[data-v-b0dbbae4]:focus-within{background:var(--color-surface-sunken)}.ep-input[data-v-b0dbbae4]{flex:1;min-width:0;height:calc(var(--ep-cell) + 2px);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;outline:none}.ep-input[data-v-b0dbbae4]::placeholder{color:var(--color-text-faint)}.ep-scroll[data-v-b0dbbae4]{max-height:calc(var(--ep-cell) * 10 + var(--space-1));overflow-y:auto;padding:0 var(--space-1)}.ep-label[data-v-b0dbbae4]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--color-text-faint);user-select:none}.ep-grid[data-v-b0dbbae4]{display:grid;grid-template-columns:repeat(8,var(--ep-cell));gap:var(--space-1);padding-bottom:var(--space-1)}.ep-e[data-v-b0dbbae4]{height:var(--ep-cell);display:grid;place-items:center;padding:0;font-size:var(--text-lg);background:transparent;border:none;border-radius:var(--radius-xs);cursor:pointer}.ep-e[data-v-b0dbbae4]:hover{background:var(--color-hover)}.ep-e[data-v-b0dbbae4]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ep-e.sel[data-v-b0dbbae4]{background:var(--color-accent-soft)}.ep-empty[data-v-b0dbbae4]{padding:var(--space-3) var(--space-2);font-size:var(--text-xs);color:var(--color-text-faint);text-align:center;user-select:none}.se[data-v-9068e4e1]{--se-pad-x: var(--space-2);display:block;margin:0;padding:8px var(--se-pad-x);border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);cursor:pointer;position:relative}.se[data-v-9068e4e1]:hover{background:var(--sb-hover, var(--color-hover));color:var(--color-text)}.se.on[data-v-9068e4e1]{background:var(--sb-selected, var(--color-selected));color:var(--color-text)}.row[data-v-9068e4e1]{display:flex;align-items:center;gap:var(--sb-gap, 6px);min-width:0}.left[data-v-9068e4e1]{display:flex;align-items:center;flex:1;min-width:0}.lead[data-v-9068e4e1]{width:var(--sb-gutter, 16px);flex:none;display:inline-flex;align-items:center;justify-content:center}.unread-dot[data-v-9068e4e1]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.ha .complete-btn[data-v-9068e4e1]:hover{color:var(--color-success)}.t[data-v-9068e4e1]{--sb-fade: 0px;--sb-fade-len: 16px;color:inherit;font-size:var(--ui-font-size-sm);font-weight:450;line-height:var(--leading-tight);user-select:none;flex:1;min-width:0;overflow:hidden;text-overflow:clip;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.se:hover .t[data-v-9068e4e1]{--sb-fade: 34px;--sb-fade-len: 26px}.se:has(.ui-badge):hover .t[data-v-9068e4e1]{--sb-fade: 0px;--sb-fade-len: 16px}.t .emoji[data-v-9068e4e1]{padding:0;background:transparent;border:none;cursor:pointer}.t .emoji[data-v-9068e4e1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sub[data-v-9068e4e1]{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);user-select:none}.sub-icon[data-v-9068e4e1]{flex:none;color:var(--color-text-muted)}.pr[data-v-9068e4e1]{display:inline-flex;align-items:center;gap:var(--space-05);flex:none;padding:1px var(--space-1);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-2xs);font-weight:var(--weight-medium);line-height:1;cursor:pointer}.pr[data-v-9068e4e1]:hover{border-color:var(--color-line-strong)}.pr[data-v-9068e4e1]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pr--open[data-v-9068e4e1],.pr--open[data-v-9068e4e1]:hover{background:var(--color-success-soft);border-color:var(--color-success-bd);color:var(--color-success)}.pr--merged[data-v-9068e4e1],.pr--merged[data-v-9068e4e1]:hover{background:var(--color-done-soft);border-color:var(--color-done-bd);color:var(--color-done)}.sub-text[data-v-9068e4e1]{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ts[data-v-9068e4e1]{color:var(--color-text-faint);font-size:var(--text-xs);font-family:var(--font-ui);font-weight:475;line-height:var(--leading-tight);font-variant-numeric:tabular-nums;text-align:right}.act[data-v-9068e4e1]{position:relative;flex:none;align-self:stretch;display:inline-flex;align-items:center;justify-content:flex-end;gap:var(--sb-gap, 6px);min-width:var(--icon-button-sm)}.act .ha[data-v-9068e4e1]{position:absolute;top:0;bottom:0;right:calc(var(--sb-action-inset, 3px) - var(--se-pad-x));display:inline-flex;align-items:center;gap:2px;opacity:0;visibility:hidden;border-radius:var(--radius-sm);transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.se:hover .ha[data-v-9068e4e1]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.act .ts[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ts[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .st[data-v-9068e4e1]{display:inline-flex;align-items:center;transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .st[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.act .ui-badge[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out)}.se:hover .act .ui-badge[data-v-9068e4e1]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.menu[data-v-9068e4e1],.picker[data-v-9068e4e1]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-9068e4e1]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-9068e4e1]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-9068e4e1],.menu-pop-leave-to[data-v-9068e4e1]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.menu-time[data-v-9068e4e1]{padding:var(--space-1) var(--space-2);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-medium);cursor:default;user-select:text}.rename-wrap[data-v-9068e4e1]{position:relative;display:flex;align-items:center;flex:1;min-width:0;background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs)}.rename-input[data-v-9068e4e1]{flex:1;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);background:transparent;border:none;padding:1px 4px;outline:none;min-width:0}.rename-wrap.generating .rename-input[data-v-9068e4e1]{visibility:hidden}.gen-dots[data-v-9068e4e1]{position:absolute;left:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:3px;pointer-events:none}.gen-dots i[data-v-9068e4e1]{width:3px;height:3px;border-radius:var(--radius-full, 50%);background:var(--color-accent);animation:gen-title-dot-9068e4e1 .9s var(--ease-out) infinite}.gen-dots i[data-v-9068e4e1]:nth-child(2){animation-delay:.15s}.gen-dots i[data-v-9068e4e1]:nth-child(3){animation-delay:.3s}@keyframes gen-title-dot-9068e4e1{0%,60%,to{opacity:.3;transform:translate(0)}30%{opacity:1;transform:translate(2px)}}.gen-title-btn[data-v-9068e4e1]{flex:none;margin-right:1px;color:var(--color-accent)}.gen-title-btn[data-v-9068e4e1]:hover:not(:disabled){color:var(--color-accent-hover);background:transparent}.sessions .se[data-v-9068e4e1]{margin:0;border-radius:var(--radius-sm);--se-pad-x: calc(var(--sb-pad-x, 20px) - var(--sb-inset, 12px));padding:8px var(--se-pad-x)}.sessions .se.flat+.se.flat[data-v-9068e4e1]{margin-top:var(--space-05)}.sessions .se .rename-input[data-v-9068e4e1]{border-radius:var(--radius-sm);font-family:var(--sans)}.group.dragging[data-v-8a2d5457]{opacity:.45}.group.pinned-drag-active[data-v-8a2d5457],.group.pinned-drop-hover[data-v-8a2d5457]{border-radius:var(--radius-sm)}.group.pinned-drag-active[data-v-8a2d5457]{box-shadow:inset 0 0 0 1px var(--color-accent)}.group.pinned-drop-hover[data-v-8a2d5457]{box-shadow:inset 0 0 0 2px var(--color-accent)}.group.pinned-drop-blocked[data-v-8a2d5457],.group.pinned-drop-blocked[data-v-8a2d5457] *{cursor:no-drop}.se-locate-flash[data-v-8a2d5457]{isolation:isolate}.se-locate-flash[data-v-8a2d5457]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-8a2d5457 var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-8a2d5457{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-8a2d5457]:before{animation:none}}.group-sessions[data-v-8a2d5457]{height:auto;overflow:hidden;transition:height var(--duration-base) var(--ease-out)}.group-sessions.collapsed[data-v-8a2d5457]{height:0}.gh[data-v-8a2d5457]{display:flex;flex-direction:column;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text);user-select:none;position:relative;cursor:grab}.gh[data-v-8a2d5457]:active{cursor:grabbing}.gh[data-v-8a2d5457]:hover{background:var(--sb-hover, var(--color-hover))}.gh.on[data-v-8a2d5457]{background:var(--sb-selected, var(--color-selected))}.gh-top[data-v-8a2d5457]{position:relative;display:flex;align-items:center;gap:var(--sb-gap)}.gh-folder[data-v-8a2d5457]{flex:none;color:var(--color-text-muted)}.gh-name[data-v-8a2d5457]{font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.gh-actions[data-v-8a2d5457]{position:absolute;right:calc(var(--sb-action-inset) - (var(--sb-pad-x) - var(--sb-inset)));top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:var(--space-1);padding-left:var(--space-1);border-radius:var(--radius-sm);isolation:isolate;opacity:0;pointer-events:none}.gh-name[data-v-8a2d5457]{--sb-fade: 0px;--sb-fade-len: 16px;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)));mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - var(--sb-fade) - var(--sb-fade-len)),transparent calc(100% - var(--sb-fade)))}.gh:hover .gh-name[data-v-8a2d5457],.gh:focus-within .gh-name[data-v-8a2d5457],.gh:has(.gh-actions.open) .gh-name[data-v-8a2d5457]{--sb-fade: 64px;--sb-fade-len: 26px}.gh-actions[data-v-8a2d5457]>*{position:relative;z-index:1}.gh:hover .gh-actions[data-v-8a2d5457],.gh:focus-within .gh-actions[data-v-8a2d5457],.gh-actions.open[data-v-8a2d5457]{opacity:1;pointer-events:auto}.gh-more.open[data-v-8a2d5457]{color:var(--color-text);background:var(--color-line)}.group-empty[data-v-8a2d5457]{padding:var(--space-1) var(--space-2) var(--space-1) calc(var(--sb-pad-x) - var(--sb-inset) + var(--sb-gutter) + var(--sb-gap));font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui);user-select:none}.show-more-row[data-v-8a2d5457]{display:flex;align-items:center;padding-left:calc(var(--sb-gutter) + var(--sb-gap))}.show-more[data-v-8a2d5457]{display:flex;align-items:center;gap:var(--sb-gap);margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:left;cursor:pointer}.show-more[data-v-8a2d5457]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-8a2d5457]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-sep[data-v-8a2d5457]{margin:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.show-more-label[data-v-8a2d5457]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gh-rename[data-v-8a2d5457]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-regular);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none}.gh-rename[data-v-8a2d5457]{border-radius:var(--radius-sm);font-family:var(--sans)}.gh-add[data-v-8a2d5457]{color:var(--faint)}.gh-add[data-v-8a2d5457]:hover{color:var(--dim)}.pinned-label[data-v-0c30d45b]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.pinned-title[data-v-0c30d45b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-toggle[data-v-0c30d45b]{color:var(--faint);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.pinned-label:hover .pinned-toggle[data-v-0c30d45b],.pinned-label:focus-within .pinned-toggle[data-v-0c30d45b],.pinned-toggle--on[data-v-0c30d45b]{opacity:1}.pinned-toggle[data-v-0c30d45b]:hover{color:var(--dim)}.pinned-toggle svg[data-v-0c30d45b]{width:13px;height:13px}.se-locate-flash[data-v-0c30d45b]{isolation:isolate}.se-locate-flash[data-v-0c30d45b]:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:se-locate-fade-0c30d45b var(--duration-flash) var(--ease-out) forwards}@keyframes se-locate-fade-0c30d45b{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.se-locate-flash[data-v-0c30d45b]:before{animation:none}}.pinned-rows[data-v-0c30d45b]{max-height:40vh;overflow-y:auto;padding:0 var(--sb-inset);--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.pinned-rows[data-v-0c30d45b]::-webkit-scrollbar{display:none}.pinned-thumb[data-v-0c30d45b]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.pinned-thumb.visible[data-v-0c30d45b]{opacity:1;pointer-events:auto}.pinned-thumb.visible[data-v-0c30d45b]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.pinned-thumb[data-v-0c30d45b]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.pinned-rows-wrap[data-v-0c30d45b]{position:relative;margin:0 calc(var(--sb-inset) * -1);--pinned-seam-down: linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to bottom, color-mix(in srgb, var(--color-text) .75%, transparent), transparent);--pinned-seam-up: linear-gradient(to top, color-mix(in srgb, var(--color-text) 1.5%, transparent), transparent 35%), linear-gradient(to top, color-mix(in srgb, var(--color-text) 1%, transparent), transparent 65%), linear-gradient(to top, color-mix(in srgb, var(--color-text) .75%, transparent), transparent)}.pinned-seam[data-v-0c30d45b]{position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;z-index:var(--z-raised);transition:opacity var(--duration-slow) var(--ease-out)}.pinned-seam--top[data-v-0c30d45b]{top:0;border-top:var(--p-hairline) solid var(--line);background:var(--pinned-seam-down)}.pinned-seam--bottom[data-v-0c30d45b]{bottom:0;border-bottom:var(--p-hairline) solid var(--line);background:var(--pinned-seam-up)}.pinned-rows-wrap.scrolled .pinned-seam--top[data-v-0c30d45b],.pinned-rows-wrap.more-below .pinned-seam--bottom[data-v-0c30d45b]{opacity:1}.pinned-resize[data-v-0c30d45b]{height:var(--space-1);position:relative;background:transparent;touch-action:none;margin:calc(var(--space-05) * -1) calc(var(--sb-inset) * -1);z-index:var(--z-dropdown)}.pinned-resize-bar[data-v-0c30d45b]{position:absolute;top:50%;left:0;right:0;height:var(--space-05);translate:0 -50%;background:transparent;transition:background var(--duration-fast) var(--ease-out)}.pinned-resize:hover .pinned-resize-bar[data-v-0c30d45b]{background:var(--color-selected)}.pinned-resize.dragging .pinned-resize-bar[data-v-0c30d45b]{background:var(--color-line-strong)}.pinned-resize[data-v-0c30d45b]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.pin-row.dragging[data-v-0c30d45b]{opacity:.45}.pinned.drop-active[data-v-0c30d45b]{border-radius:var(--radius-sm);box-shadow:inset 0 0 0 1px var(--color-accent)}.side[data-v-e9b3eef9]{background:var(--color-sidebar-bg);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;min-width:0;height:100%;transition:width .28s cubic-bezier(.4,0,.2,1),visibility .28s;--sb-inset: var(--space-2);--sb-pad-x: var(--space-4);--sb-gutter: 16px;--sb-gap: var(--space-2);--sb-action-inset: calc((max(var(--ui-font-size-sm) * var(--leading-tight), var(--p-ic-md)) + 2 * var(--space-2) - var(--icon-button-sm)) / 2);--sb-hover: var(--color-hover);--sb-selected: color-mix(in srgb, var(--color-selected) 75%, transparent)}.side.no-anim[data-v-e9b3eef9]{transition:none}.side.collapsed[data-v-e9b3eef9]{visibility:hidden}.col[data-v-e9b3eef9]{flex:none;min-width:0;display:flex;flex-direction:column;min-height:0;width:100%;box-sizing:border-box;border-right:.5px solid var(--line);container-type:inline-size;container-name:sidebar-col;position:relative}.ch[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--space-3);min-height:calc(26px + 2 * var(--space-3));width:100%;box-sizing:border-box}.side.macos-desktop .ch[data-v-e9b3eef9]{padding-left:80px;-webkit-app-region:drag}.side.macos-desktop .ch-brand[data-v-e9b3eef9]{display:none}.ch-logo[data-v-e9b3eef9]{height:22px;width:32px;flex:none;display:block;cursor:pointer;user-select:none;touch-action:none;transition:transform .18s ease}.ch-logo[data-v-e9b3eef9]:hover{transform:scale(1.08)}.ch-brand[data-v-e9b3eef9]{display:flex;align-items:center;gap:8px;min-width:0;flex:1;user-select:none;touch-action:none}.ch-tail[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--space-2);flex:none;min-width:0;margin-left:auto}.ch-name[data-v-e9b3eef9]{font-size:var(--ui-font-size);font-weight:500;line-height:22px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container sidebar-col (max-width: 250px){.ch-name[data-v-e9b3eef9]{display:none}}.sidebar-actions[data-v-e9b3eef9]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--space-2);padding:0 var(--sb-inset) var(--space-1);position:relative;z-index:1;background:var(--color-sidebar-bg)}.sessions-head[data-v-e9b3eef9]{position:relative;z-index:1;padding:var(--space-3) var(--sb-inset) 0;border-bottom:.5px solid transparent;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.sessions-head[data-v-e9b3eef9]:after,.side-footer[data-v-e9b3eef9]:before{content:"";position:absolute;left:0;right:0;height:var(--p-sidebar-seam-h);pointer-events:none;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sessions-head[data-v-e9b3eef9]:after{top:100%;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.sessions-head--scrolled[data-v-e9b3eef9]{border-bottom-color:var(--line)}.sessions-head--scrolled[data-v-e9b3eef9]:after{opacity:1}.btn-new-chat[data-v-e9b3eef9]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;min-width:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);cursor:pointer;text-align:left}.sidebar-actions--has-workspace-action .btn-new-chat[data-v-e9b3eef9]{grid-column:1}.btn-new-chat[data-v-e9b3eef9]:hover{background:var(--sb-hover)}.btn-new-chat[data-v-e9b3eef9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.btn-new-chat svg[data-v-e9b3eef9]{flex:none}.btn-new-chat span[data-v-e9b3eef9]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-new-chat[data-v-e9b3eef9] .ui-kbd{margin-left:auto}.btn-new-chat[data-v-e9b3eef9] .ui-kbd,.search[data-v-e9b3eef9] .ui-kbd{opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.btn-new-chat[data-v-e9b3eef9]:hover .ui-kbd,.btn-new-chat[data-v-e9b3eef9]:focus-visible .ui-kbd,.search[data-v-e9b3eef9]:hover .ui-kbd,.search[data-v-e9b3eef9]:focus-visible .ui-kbd{opacity:1}.search[data-v-e9b3eef9]{grid-column:1 / -1;display:flex;align-items:center;gap:var(--sb-gap);width:100%;margin:0;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.search[data-v-e9b3eef9]:hover{background:var(--sb-hover)}.search[data-v-e9b3eef9]:focus-visible{background:var(--sb-hover);color:var(--color-text);outline:2px solid var(--color-accent-bd);outline-offset:-2px}.search-icon[data-v-e9b3eef9]{flex:none;transform:translateY(-.5px)}.search-input[data-v-e9b3eef9]{flex:1;min-width:0;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-tabs[data-v-e9b3eef9]{padding:var(--space-2) var(--sb-inset) 0}.status-seg[data-v-e9b3eef9]{width:100%;display:flex}.status-seg[data-v-e9b3eef9] .ui-seg__item{flex:1;min-width:0;justify-content:center;padding:0 var(--space-1);overflow:hidden}.ws-dir[data-v-e9b3eef9]{display:block;padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);cursor:pointer;position:relative;user-select:none}.ws-dir[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.ws-dir.on[data-v-e9b3eef9]{background:var(--sb-selected, var(--color-selected))}.ws-dir+.ws-dir[data-v-e9b3eef9]{margin-top:var(--space-05)}.ws-dir-row[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--sb-gap);min-width:0}.ws-dir-icon[data-v-e9b3eef9]{flex:none;color:var(--color-text-muted)}.ws-dir-name[data-v-e9b3eef9]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir-act[data-v-e9b3eef9]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.ws-dir-rename[data-v-e9b3eef9]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-sm);padding:2px 5px;outline:none}.ws-dir:hover .ws-dir-act[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-act[data-v-e9b3eef9]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.ws-dir-sub[data-v-e9b3eef9]{margin:var(--space-1) 0 0;color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-tight);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.ws-dir:hover .ws-dir-name[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-name[data-v-e9b3eef9],.ws-dir:hover .ws-dir-sub[data-v-e9b3eef9],.ws-dir:focus-within .ws-dir-sub[data-v-e9b3eef9]{margin-right:calc(var(--icon-button-sm) + var(--space-2))}.done-gh[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--sb-gap);padding:8px calc(var(--sb-pad-x) - var(--sb-inset));border-radius:var(--radius-sm);font-family:var(--font-ui);color:var(--color-text);user-select:none;position:relative;cursor:pointer}.done-gh[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.done-gh-folder[data-v-e9b3eef9]{flex:none;color:var(--color-text-muted)}.done-gh-name[data-v-e9b3eef9]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text-muted);overflow:hidden;white-space:nowrap;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent);mask-image:linear-gradient(to right,var(--color-text-strong) calc(100% - 16px),transparent)}.done-gh-count[data-v-e9b3eef9]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.done-gh-act[data-v-e9b3eef9]{position:absolute;top:0;bottom:0;right:var(--sb-action-inset);display:inline-flex;align-items:center;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.done-gh:hover .done-gh-act[data-v-e9b3eef9],.done-gh:focus-within .done-gh-act[data-v-e9b3eef9]{opacity:1;visibility:visible;transition:opacity var(--duration-fast) var(--ease-out)}.done-gh:hover .done-gh-count[data-v-e9b3eef9],.done-gh:focus-within .done-gh-count[data-v-e9b3eef9]{opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--ease-out),visibility 0s linear var(--duration-fast)}.sessions[data-v-e9b3eef9]{flex:1;overflow-y:auto;padding:0 var(--sb-inset) var(--space-3);min-height:0;--overlay-scrollbar-thumb-min: var(--space-6);scrollbar-width:none}.sessions[data-v-e9b3eef9]::-webkit-scrollbar{display:none}.sessions-thumb[data-v-e9b3eef9]{position:absolute;right:0;width:var(--space-1);border-radius:var(--radius-full);background:color-mix(in srgb,var(--color-text) 12%,transparent);opacity:0;pointer-events:none;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out);z-index:var(--z-raised);touch-action:none}.sessions-thumb.visible[data-v-e9b3eef9]{opacity:1;pointer-events:auto}.sessions-thumb.visible[data-v-e9b3eef9]:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.sessions-thumb[data-v-e9b3eef9]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.side-footer[data-v-e9b3eef9]{flex:none;position:relative;z-index:1;padding:var(--space-2) var(--sb-inset);border-top:.5px solid var(--line);background:var(--color-sidebar-bg)}.side-footer[data-v-e9b3eef9]:before{bottom:100%;background:linear-gradient(to top,color-mix(in srgb,var(--color-text) 1.5%,transparent),transparent 35%),linear-gradient(to top,color-mix(in srgb,var(--color-text) 1%,transparent),transparent 65%),linear-gradient(to top,color-mix(in srgb,var(--color-text) .75%,transparent),transparent);transition-duration:var(--duration-slow)}.side-footer--shadowed[data-v-e9b3eef9]:before{opacity:1}.side-section-label[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 var(--sb-action-inset) var(--space-1) var(--space-2);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.side-section-title[data-v-e9b3eef9]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sessions-head .pinned+.side-section-label[data-v-e9b3eef9]{margin-top:var(--space-1)}.side-section-toggle[data-v-e9b3eef9]{color:var(--faint)}.side-section-toggle[data-v-e9b3eef9]:hover{color:var(--dim)}.side-section-toggle svg[data-v-e9b3eef9]{width:13px;height:13px}.side-section-actions[data-v-e9b3eef9]{display:flex;align-items:center;gap:2px}.ws-drop-target.drop-before[data-v-e9b3eef9]{box-shadow:inset 0 2px 0 var(--color-accent)}.ws-drop-target.drop-after[data-v-e9b3eef9]{box-shadow:inset 0 -2px 0 var(--color-accent)}.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh{isolation:isolate}.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:var(--radius-sm);background:var(--color-accent-soft);pointer-events:none;animation:ws-locate-fade-e9b3eef9 var(--duration-flash) var(--ease-out) forwards}@keyframes ws-locate-fade-e9b3eef9{0%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.ws-drop-target.ws-locate-flash[data-v-e9b3eef9] .gh:before{animation:none}}.sessions.pinned-drag-active[data-v-e9b3eef9]{box-shadow:inset 0 0 0 1px var(--color-accent)}.sessions.flat-pinned-drop-hover[data-v-e9b3eef9]{box-shadow:inset 0 0 0 2px var(--color-accent)}.show-more-row[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:center}.show-more[data-v-e9b3eef9]{display:flex;align-items:center;justify-content:center;gap:var(--space-1);margin:0;padding:6px var(--space-3);min-width:0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);cursor:pointer}.show-more[data-v-e9b3eef9]:hover{background:var(--sb-hover, var(--color-hover))}.show-more[data-v-e9b3eef9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.show-more-label[data-v-e9b3eef9]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-drop-overlay[data-v-e9b3eef9]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:var(--space-3);box-sizing:border-box;background:color-mix(in srgb,var(--color-sidebar-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.folder-drop-overlay.show[data-v-e9b3eef9]{opacity:1;visibility:visible}.folder-drop-card[data-v-e9b3eef9]{display:flex;align-items:center;gap:var(--space-3);max-width:100%;box-sizing:border-box;padding:var(--space-4);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.folder-drop-card svg[data-v-e9b3eef9]{flex:none}.folder-drop-card span[data-v-e9b3eef9]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty[data-v-e9b3eef9]{padding:var(--space-6) var(--space-3);text-align:center;color:var(--faint);font-size:calc(var(--ui-font-size) - 3px);line-height:1.6}.ws-menu[data-v-e9b3eef9],.gh-menu[data-v-e9b3eef9],.view-menu[data-v-e9b3eef9]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.view-menu-label[data-v-e9b3eef9]{padding:var(--space-1) var(--space-2) var(--space-05);font-size:var(--text-xs);color:var(--faint);user-select:none}.view-menu-check[data-v-e9b3eef9]{margin-left:auto;display:inline-flex}.menu-pop-enter-active[data-v-e9b3eef9]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-e9b3eef9]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-e9b3eef9],.menu-pop-leave-to[data-v-e9b3eef9]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}[data-v-e9b3eef9] .workspace-rename-item{font-size:var(--text-xs);font-weight:var(--weight-option-label)}.section-menu-check[data-v-e9b3eef9]{display:inline-flex;flex:none;width:14px}.rh[data-v-1c6dfdc5]{width:4px;flex:none;position:relative;align-self:stretch;background:transparent;touch-action:none;margin:0 -2px;z-index:var(--z-dropdown)}.rh-bar[data-v-1c6dfdc5]{position:absolute;inset:0 1px;background:transparent;transition:background .12s}.rh:hover .rh-bar[data-v-1c6dfdc5]{background:var(--color-selected)}.rh.dragging .rh-bar[data-v-1c6dfdc5]{background:var(--color-line-strong)}.op[data-v-ab413c67]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);background:var(--color-well);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-word;max-height:12lh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.op-empty[data-v-ab413c67]{color:var(--color-text-faint);font-style:italic}.agent-card[data-v-ab8f0011]{margin:var(--space-1) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.agent-card[data-v-ab8f0011]:hover{border-color:var(--color-line-strong)}.agent-card.err[data-v-ab8f0011]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2) var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.head[data-v-ab8f0011]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.head[data-v-ab8f0011]:disabled{cursor:default}.lead[data-v-ab8f0011]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-md);background:var(--color-surface-sunken);color:var(--color-text-muted);flex:none}.main[data-v-ab8f0011]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.task[data-v-ab8f0011]{font-size:var(--ui-font-size);line-height:var(--leading-caption);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type[data-v-ab8f0011]{font-size:var(--text-xs);line-height:var(--leading-caption);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tail[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-2);flex:none}.st[data-v-ab8f0011]{display:inline-flex;align-items:center}.st.ok[data-v-ab8f0011]{color:var(--color-success)}.st.error[data-v-ab8f0011]{color:var(--color-danger)}.go[data-v-ab8f0011]{color:var(--color-text-faint);transition:color var(--duration-base) var(--ease-out)}.agent-card:hover .head:not(:disabled) .go[data-v-ab8f0011]{color:var(--color-text)}.go.car[data-v-ab8f0011]{transition:color var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.go.car.open[data-v-ab8f0011]{transform:rotate(90deg)}.saved-result[data-v-ab8f0011]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.saved-result[data-v-ab8f0011]:hover{color:var(--color-text-muted)}.saved-result[data-v-ab8f0011]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.saved-result__chevron[data-v-ab8f0011]{transition:transform var(--duration-base) var(--ease-out)}.saved-result__chevron.open[data-v-ab8f0011]{transform:rotate(90deg)}.result[data-v-ab8f0011]{padding:var(--space-2) var(--space-3)}.result--legacy[data-v-ab8f0011]{border-top:.5px solid var(--color-line)}.tl-head[data-v-6e9ab5f9]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border-radius:var(--radius-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left}.tl-head.clickable[data-v-6e9ab5f9]{cursor:pointer;user-select:none}.tl-ic[data-v-6e9ab5f9]{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;color:var(--color-text-faint)}.tl-main[data-v-6e9ab5f9]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-1)}.tl-tail[data-v-6e9ab5f9]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}.tl-status[data-v-6e9ab5f9]{display:inline-flex;align-items:center;flex:none}.tl-status.ok[data-v-6e9ab5f9]{color:var(--color-success)}.tl-status.error[data-v-6e9ab5f9]{color:var(--color-danger)}.tl-car[data-v-6e9ab5f9]{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);cursor:pointer;flex:none}.tl-car[data-v-6e9ab5f9]:hover{color:var(--color-text)}.tl-car[data-v-6e9ab5f9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-car-ic[data-v-6e9ab5f9]{transition:transform var(--duration-base) var(--ease-out)}.tool-line.open .tl-car-ic[data-v-6e9ab5f9]{transform:rotate(90deg)}.tl-body[data-v-6e9ab5f9]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tl-body.open[data-v-6e9ab5f9]{grid-template-rows:minmax(0,1fr)}.tl-body-inner[data-v-6e9ab5f9]{min-height:0;overflow:hidden;padding:2px var(--space-2) var(--space-1) 0}.tl-main .tl-name[data-v-6e9ab5f9-s]{font-weight:var(--weight-regular);color:var(--color-text-muted);flex:none}.tl-main .tl-dim[data-v-6e9ab5f9-s]{color:var(--color-text-muted);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-faint[data-v-6e9ab5f9-s]{color:var(--color-text-faint);line-height:var(--leading-tight);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-mono[data-v-6e9ab5f9-s]{font-family:var(--font-mono);font-size:var(--text-xs);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tl-main .tl-file[data-v-6e9ab5f9-s]{font-weight:var(--weight-regular);color:var(--color-text);line-height:var(--leading-tight);flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 1px;font-family:inherit;font-size:inherit;cursor:pointer}.tl-main .tl-file[data-v-6e9ab5f9-s]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.tl-main .tl-file[data-v-6e9ab5f9-s]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-tail .tl-pill[data-v-6e9ab5f9-s]{font-size:var(--text-xs);line-height:1.5;padding:0 var(--space-2);border-radius:var(--radius-full);flex:none;white-space:nowrap}.tl-tail .tl-chip[data-v-6e9ab5f9-s]{color:var(--color-text-faint);font-size:var(--text-xs);flex:none;white-space:nowrap}.tl-tail .tl-add[data-v-6e9ab5f9-s]{color:var(--color-success);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tl-tail .tl-del[data-v-6e9ab5f9-s]{color:var(--color-danger);font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.ask-receipt[data-v-f29eda04]{max-width:560px;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);padding:var(--space-2) var(--space-3) 10px;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.ask-receipt.flat[data-v-f29eda04]{color:var(--color-text-faint);font-style:italic;padding-top:6px;padding-bottom:6px}.rc-head[data-v-f29eda04]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text-faint);font-size:var(--text-xs);margin-bottom:6px}.rc-st[data-v-f29eda04]{margin-left:auto;color:var(--color-success);display:inline-flex}.rc-q+.rc-q[data-v-f29eda04]{margin-top:6px}.rc-qtext[data-v-f29eda04]{display:flex;align-items:baseline;gap:var(--space-2);margin-bottom:3px;font-weight:var(--weight-medium);color:var(--color-text)}.rc-opt[data-v-f29eda04]{display:flex;align-items:center;gap:var(--space-2);padding:1.5px 0;color:var(--color-text)}.rc-qskip[data-v-f29eda04]{padding:1.5px 0;color:var(--color-text-faint);font-style:italic}.rc-lb[data-v-f29eda04]{min-width:0}.rc-ds[data-v-f29eda04]{color:var(--color-text-faint);font-size:var(--text-xs)}.rc-g[data-v-f29eda04]{width:14px;height:14px;flex:none;border:.5px solid var(--color-line-strong);position:relative}.rc-g.chk[data-v-f29eda04]{border-radius:var(--radius-xs)}.rc-g.rad[data-v-f29eda04]{border-radius:50%}.rc-g.on[data-v-f29eda04]{border-color:var(--color-accent)}.rc-g.chk.on[data-v-f29eda04]{background:var(--color-accent)}.rc-g.chk.on[data-v-f29eda04]:after{content:"";position:absolute;left:3.5px;top:.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.rc-g.rad.on[data-v-f29eda04]:after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:var(--color-accent)}.cmd-echo[data-v-8869dd42]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.hl-code[data-v-6735e4da]{border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:auto;max-height:calc(24 * 1.5 * var(--ui-font-size));overscroll-behavior:contain;font-family:var(--font-mono);font-size:var(--code-font-size);line-height:var(--leading-normal);font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none}.hl-code[data-v-6735e4da]:not(.framed){border:none;border-radius:0;background:transparent;max-height:none;overflow:visible}.hl-body[data-v-6735e4da]{width:max-content;min-width:100%;padding:var(--space-1) 0 var(--space-2)}.hl-code.plain-pad .hl-body[data-v-6735e4da]{padding-left:var(--space-3)}.hl-row[data-v-6735e4da]{display:flex;align-items:flex-start;min-height:calc(1em * var(--leading-normal));white-space:pre;width:100%}.hl-gutter[data-v-6735e4da]{flex:none;box-sizing:content-box;min-width:var(--gutter-ch, 4ch);padding:0 var(--space-2);text-align:right;color:var(--color-text-faint);user-select:none;border-right:.5px solid var(--color-line);font-variant-numeric:tabular-nums}.hl-sign[data-v-6735e4da]{flex:none;width:16px;text-align:center;color:var(--color-text-muted);user-select:none}.hl-text[data-v-6735e4da]{flex:none;padding-right:14px;white-space:pre;color:var(--color-text)}.hl-gutter+.hl-text[data-v-6735e4da]{padding-left:var(--space-2)}.row-add[data-v-6735e4da]{background:var(--color-diff-add-bg)}.row-add .hl-sign[data-v-6735e4da]{color:var(--color-success)}.row-del[data-v-6735e4da]{background:var(--color-diff-del-bg)}.row-del .hl-sign[data-v-6735e4da]{color:var(--color-danger)}.row-hunk[data-v-6735e4da]{background:var(--color-surface-sunken)}.row-hunk .hl-text[data-v-6735e4da]{color:var(--color-text-muted)}.hl-code.gutter .row-add[data-v-6735e4da]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.hl-code.gutter .row-del[data-v-6735e4da]{box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diffbar[data-v-bbf61950]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;gap:1px;flex:none}.seg-add[data-v-bbf61950]{background:var(--color-success)}.seg-del[data-v-bbf61950]{background:var(--color-danger)}.gl[data-v-b12a8498]{display:inline-flex;align-items:center}.arg-full[data-v-b12a8498]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.file-list[data-v-3936099e]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.file-row[data-v-3936099e]{width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.file-row[data-v-3936099e]:hover{background:var(--color-hover);color:var(--color-accent)}.file-row[data-v-3936099e]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tl-pill.pill-active[data-v-862274de]{color:var(--color-accent);background:var(--color-accent-soft)}.tl-pill.pill-done[data-v-862274de]{color:var(--color-success);background:var(--color-success-soft)}.tl-pill.pill-blocked[data-v-862274de]{color:var(--color-warning);background:var(--color-warning-soft)}.goal-block[data-v-862274de]{margin-bottom:var(--space-1)}.goal-text[data-v-862274de]{color:var(--color-text);font-size:calc(var(--content-font-size) - 1px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.goal-criterion[data-v-862274de]{color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;margin-top:2px;white-space:pre-wrap;word-break:break-word}.match-list[data-v-899c1a48]{display:flex;flex-direction:column;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-1);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.match-row[data-v-899c1a48]{display:flex;align-items:baseline;gap:var(--space-2);width:100%;border:none;border-radius:var(--radius-sm);background:transparent;padding:2px var(--space-2);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;font-feature-settings:"liga" 0,"calt" 0;font-variant-ligatures:none;color:var(--color-text);text-align:left;cursor:default}.match-row.link[data-v-899c1a48]{cursor:pointer}.match-row.link[data-v-899c1a48]:hover{background:var(--color-hover)}.match-row[data-v-899c1a48]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mref[data-v-899c1a48]{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-faint)}.match-row.link:hover .mref[data-v-899c1a48]{color:var(--color-accent)}.mtext[data-v-899c1a48]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-resolving[data-v-23acd4fa]{visibility:hidden}.media-tool[data-v-3bc3ee1a]{display:inline-flex;flex-direction:column;gap:6px;max-width:320px}.media-title[data-v-3bc3ee1a]{font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-image-button[data-v-3bc3ee1a]{padding:0;border:none;background:transparent;cursor:pointer;border-radius:var(--radius-md);overflow:hidden}.media-image[data-v-3bc3ee1a]{display:block;max-width:100%;border-radius:var(--radius-md);background:var(--media-alpha-canvas)}.media-video[data-v-3bc3ee1a],.media-audio[data-v-3bc3ee1a]{max-width:100%;border-radius:var(--radius-md)}.media-video[data-v-3bc3ee1a]{display:block}.media-video-button[data-v-3bc3ee1a]{position:relative}.media-video-tile[data-v-3bc3ee1a]{display:block;width:320px;max-width:100%;aspect-ratio:16 / 9;background:var(--color-well)}.media-play-badge[data-v-3bc3ee1a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}:where(.markstream-vue) button{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:transparent;border:0;font:inherit;color:inherit}.markstream-vue li:has(.checkbox-node){list-style-type:none;margin-left:calc(-1 * var(--ms-flow-list-indent))}.markstream-vue .text-node{white-space:pre-wrap;overflow-wrap:break-word}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.markstream-vue .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.markstream-vue .pointer-events-none{pointer-events:none}.markstream-vue .\!visible{visibility:visible!important}.markstream-vue .visible{visibility:visible}.markstream-vue .collapse{visibility:collapse}.markstream-vue .static{position:static}.markstream-vue .fixed{position:fixed}.markstream-vue .absolute{position:absolute}.markstream-vue .relative{position:relative}.markstream-vue .inset-0{inset:0}.markstream-vue .right-2{right:8px}.markstream-vue .right-6{right:24px}.markstream-vue .top-2{top:8px}.markstream-vue .top-6{top:24px}.markstream-vue .z-10{z-index:10}.markstream-vue .z-50{z-index:50}.markstream-vue .m-0{margin:0}.markstream-vue .mx-0\.5{margin-left:2px;margin-right:2px}.markstream-vue .mr-2{margin-right:8px}.markstream-vue .mt-2{margin-top:8px}.markstream-vue .block{display:block}.markstream-vue .inline{display:inline}.markstream-vue .flex{display:flex}.markstream-vue .inline-flex{display:inline-flex}.markstream-vue .table{display:table}.markstream-vue .flow-root{display:flow-root}.markstream-vue .grid{display:grid}.markstream-vue .contents{display:contents}.markstream-vue .list-item{display:list-item}.markstream-vue .hidden{display:none}.markstream-vue .h-4{height:16px}.markstream-vue .h-full{height:100%}.markstream-vue .max-h-full{max-height:100%}.markstream-vue .min-h-full{min-height:100%}.markstream-vue .w-2\/3{width:66.666667%}.markstream-vue .w-4{width:16px}.markstream-vue .w-4\/5{width:80%}.markstream-vue .w-full{width:100%}.markstream-vue .min-w-\[160px\]{min-width:160px}.markstream-vue .max-w-full{max-width:100%}.markstream-vue .flex-1{flex:1 1 0%}.markstream-vue .flex-shrink{flex-shrink:1}.markstream-vue .flex-shrink-0{flex-shrink:0}.markstream-vue .shrink{flex-shrink:1}.markstream-vue .shrink-0{flex-shrink:0}.markstream-vue .border-collapse{border-collapse:collapse}.markstream-vue .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.markstream-vue .animate-spin{animation:spin 1s linear infinite}.markstream-vue .cursor-grab{cursor:grab}.markstream-vue .cursor-grabbing{cursor:grabbing}.markstream-vue .cursor-not-allowed{cursor:not-allowed}.markstream-vue .cursor-pointer{cursor:pointer}.markstream-vue .resize{resize:both}.markstream-vue .list-decimal{list-style-type:decimal}.markstream-vue .list-disc{list-style-type:disc}.markstream-vue .flex-wrap{flex-wrap:wrap}.markstream-vue .items-center{align-items:center}.markstream-vue .items-baseline{align-items:baseline}.markstream-vue .justify-center{justify-content:center}.markstream-vue .justify-between{justify-content:space-between}.markstream-vue .gap-0\.5{gap:2px}.markstream-vue .gap-1\.5{gap:6px}.markstream-vue .gap-2{gap:8px}.markstream-vue .gap-\[var\(--ms-gap-header-actions\)\]{gap:var(--ms-gap-header-actions)}.markstream-vue .gap-x-1{-moz-column-gap:4px;column-gap:4px}.markstream-vue .gap-x-2{-moz-column-gap:8px;column-gap:8px}.markstream-vue .overflow-hidden{overflow:hidden}.markstream-vue .overflow-x-auto{overflow-x:auto}.markstream-vue .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markstream-vue .whitespace-nowrap{white-space:nowrap}.markstream-vue .whitespace-pre-wrap{white-space:pre-wrap}.markstream-vue .rounded{border-radius:calc(var(--ms-radius) * .5)}.markstream-vue .rounded-lg{border-radius:var(--ms-radius)}.markstream-vue .rounded-md{border-radius:calc(var(--ms-radius) * .75)}.markstream-vue .border{border-width:1px}.markstream-vue .border-b{border-bottom-width:1px}.markstream-vue .border-t{border-top-width:1px}.markstream-vue .border-\[var\(--code-border\)\]{border-color:var(--code-border)}.markstream-vue .border-\[var\(--footnote-border\)\]{border-color:var(--footnote-border)}.markstream-vue .border-\[var\(--hr-border\)\]{border-color:var(--hr-border)}.markstream-vue .bg-\[hsl\(var\(--ms-popover\)\)\]{background-color:hsl(var(--ms-popover))}.markstream-vue .bg-\[var\(--code-header-bg\)\]{background-color:var(--code-header-bg)}.markstream-vue .p-0{padding:0}.markstream-vue .p-1{padding:4px}.markstream-vue .p-4{padding:16px}.markstream-vue .p-\[var\(--ms-action-btn-padding\)\]{padding:var(--ms-action-btn-padding)}.markstream-vue .px-1\.5{padding-left:6px;padding-right:6px}.markstream-vue .px-2{padding-left:8px;padding-right:8px}.markstream-vue .px-4{padding-left:16px;padding-right:16px}.markstream-vue .px-\[var\(--ms-inset-panel-x\)\]{padding-left:var(--ms-inset-panel-x);padding-right:var(--ms-inset-panel-x)}.markstream-vue .py-0\.5{padding-top:2px;padding-bottom:2px}.markstream-vue .py-1\.5{padding-top:6px;padding-bottom:6px}.markstream-vue .py-\[var\(--ms-inset-panel-y\)\]{padding-top:var(--ms-inset-panel-y);padding-bottom:var(--ms-inset-panel-y)}.markstream-vue .pb-3{padding-bottom:12px}.markstream-vue .pt-2{padding-top:8px}.markstream-vue .text-left{text-align:left}.markstream-vue .text-center{text-align:center}.markstream-vue .text-right{text-align:right}.markstream-vue .font-mono{font-family:var(--ms-font-mono)}.markstream-vue .text-\[length\:var\(--ms-text-label\)\]{font-size:var(--ms-text-label)}.markstream-vue .text-sm{font-size:14px;line-height:20px}.markstream-vue .text-xs{font-size:12px;line-height:16px}.markstream-vue .font-medium{font-weight:500}.markstream-vue .font-semibold{font-weight:600}.markstream-vue .uppercase{text-transform:uppercase}.markstream-vue .lowercase{text-transform:lowercase}.markstream-vue .italic{font-style:italic}.markstream-vue .leading-\[normal\]{line-height:normal}.markstream-vue .leading-none{line-height:1}.markstream-vue .leading-relaxed{line-height:1.625}.markstream-vue .text-\[\#0366d6\]{--tw-text-opacity: 1;color:rgb(3 102 214 / var(--tw-text-opacity, 1))}.markstream-vue .text-\[hsl\(var\(--ms-popover-foreground\)\)\]{color:hsl(var(--ms-popover-foreground))}.markstream-vue .text-\[var\(--code-action-fg\)\]{color:var(--code-action-fg)}.markstream-vue .text-\[var\(--code-fg\)\]{color:var(--code-fg)}.markstream-vue .underline{text-decoration-line:underline}.markstream-vue .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.markstream-vue .opacity-0{opacity:0}.markstream-vue .opacity-50{opacity:.5}.markstream-vue .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-\[var\(--ms-shadow-popover\)\]{--tw-shadow-color: var(--ms-shadow-popover);--tw-shadow: var(--tw-shadow-colored)}.markstream-vue .outline{outline-style:solid}.markstream-vue .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .backdrop-blur{--tw-backdrop-blur: blur(8px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-\[height\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.markstream-vue .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.markstream-vue{--ms-background: 0 0% 100%;--ms-foreground: 0 0% 10%;--ms-muted: 0 0% 96.5%;--ms-muted-foreground: 0 0% 43%;--ms-secondary: 0 0% 93.5%;--ms-secondary-foreground: 0 0% 10%;--ms-accent: 0 0% 91%;--ms-accent-foreground: 0 0% 10%;--ms-primary: 0 0% 10%;--ms-primary-foreground: 0 0% 100%;--ms-destructive: 0 62% 52%;--ms-destructive-foreground: 0 0% 100%;--ms-border: 0 0% 87%;--ms-ring: 0 0% 10%;--ms-popover: 0 0% 100%;--ms-popover-foreground: 0 0% 10%;--ms-radius: 8px;--ms-info: 215 60% 50%;--ms-info-foreground: 0 0% 100%;--ms-success: 152 56% 39%;--ms-success-foreground: 0 0% 100%;--ms-warning: 38 64% 46%;--ms-warning-foreground: 0 0% 9%;--ms-diff-added: 152 50% 36%;--ms-diff-removed: 0 58% 48%;--ms-highlight: 50 60% 72%;--ms-highlight-foreground: 0 0% 0%;--ms-font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";--ms-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace}.dark .markstream-vue,.markstream-vue.dark{--ms-background: 0 0% 7%;--ms-foreground: 0 0% 93%;--ms-muted: 0 0% 12%;--ms-muted-foreground: 0 0% 60%;--ms-secondary: 0 0% 16%;--ms-secondary-foreground: 0 0% 93%;--ms-accent: 0 0% 24%;--ms-accent-foreground: 0 0% 93%;--ms-primary: 0 0% 93%;--ms-primary-foreground: 0 0% 10%;--ms-destructive: 0 60% 50%;--ms-destructive-foreground: 0 0% 93%;--ms-border: 0 0% 20%;--ms-ring: 0 0% 80%;--ms-popover: 0 0% 9%;--ms-popover-foreground: 0 0% 93%;--ms-info: 215 55% 62%;--ms-info-foreground: 0 0% 100%;--ms-success: 152 48% 55%;--ms-success-foreground: 0 0% 100%;--ms-warning: 32 65% 58%;--ms-warning-foreground: 0 0% 9%;--ms-diff-added: 152 42% 60%;--ms-diff-removed: 0 58% 58%;--ms-highlight: 48 65% 50%;--ms-highlight-foreground: 0 0% 0%;--ms-shadow-subtle: 0 1px 3px 0 hsl(0 0% 0% / .25);--ms-shadow-popover: 0 4px 6px -1px hsl(0 0% 0% / .2), 0 2px 4px -2px hsl(0 0% 0% / .15);--ms-shadow-modal: 0 10px 15px -3px hsl(0 0% 0% / .5), 0 4px 6px -4px hsl(0 0% 0% / .4);--ms-shadow-preview: 0 10px 40px hsl(0 0% 0% / .6);--tooltip-bg: hsl(0 0% 12%);--tooltip-fg: hsl(0 0% 72%);--code-bg: #111827;--code-header-bg: hsl(var(--ms-muted));--admonition-note-header-bg: color-mix(in srgb, hsl(var(--ms-info)) 12%, transparent);--admonition-tip-header-bg: color-mix(in srgb, hsl(var(--ms-success)) 12%, transparent);--admonition-warn-header-bg: color-mix(in srgb, hsl(var(--ms-warning)) 12%, transparent);--admonition-danger-header-bg: color-mix(in srgb, hsl(var(--ms-destructive)) 12%, transparent)}.markstream-vue{font-family:var(--ms-font-sans);font-size:var(--ms-text-body);line-height:var(--ms-leading-body);--inline-code-bg: hsl(var(--ms-secondary));--inline-code-fg: hsl(var(--ms-foreground) / .75);--inline-code-border: hsl(var(--ms-border) / .9);--code-bg: #fff;--code-fg: hsl(var(--ms-foreground));--code-border: hsl(var(--ms-border));--code-header-bg: hsl(var(--ms-secondary));--code-selection-bg: hsl(var(--ms-accent) / .3);--code-line-number: hsl(var(--ms-muted-foreground));--markstream-code-line-number-align: right;--code-action-fg: hsl(var(--ms-muted-foreground));--code-action-hover-bg: hsl(var(--ms-accent));--code-action-hover-fg: hsl(var(--ms-accent-foreground));--code-action-active-bg: hsl(var(--ms-primary));--code-action-active-fg: hsl(var(--ms-primary-foreground));--diff-added-fg: hsl(var(--ms-diff-added));--diff-removed-fg: hsl(var(--ms-diff-removed));--diff-added-bg: hsl(var(--ms-diff-added) / .1);--diff-added-inline-bg: hsl(var(--ms-diff-added) / .2);--diff-removed-bg: hsl(var(--ms-diff-removed) / .1);--diff-removed-inline-bg: hsl(var(--ms-diff-removed) / .2);--blockquote-border: hsl(var(--ms-muted-foreground) / .2);--admonition-bg: hsl(var(--ms-muted));--admonition-border: hsl(var(--ms-border));--admonition-fg: hsl(var(--ms-foreground));--admonition-muted: hsl(var(--ms-muted-foreground));--admonition-header-bg: hsl(var(--ms-muted) / .5);--admonition-note: hsl(var(--ms-info));--admonition-tip: hsl(var(--ms-success));--admonition-warning: hsl(var(--ms-warning));--admonition-danger: hsl(var(--ms-destructive));--admonition-note-header-bg: color-mix(in srgb, hsl(var(--ms-info)) 6%, transparent);--admonition-tip-header-bg: color-mix(in srgb, hsl(var(--ms-success)) 6%, transparent);--admonition-warn-header-bg: color-mix(in srgb, hsl(var(--ms-warning)) 6%, transparent);--admonition-danger-header-bg: color-mix(in srgb, hsl(var(--ms-destructive)) 6%, transparent);--table-border: hsl(var(--ms-border));--table-header-bg: hsl(var(--ms-muted));--link-color: hsl(var(--ms-info));--list-marker: hsl(var(--ms-muted-foreground) / .5);--list-counter-marker: hsl(var(--ms-muted-foreground));--hr-border: hsl(var(--ms-border));--highlight-bg: hsl(var(--ms-highlight));--footnote-border: hsl(var(--ms-border));--tooltip-bg: hsl(0 0% 18%);--tooltip-fg: hsl(0 0% 88%);--tooltip-border: hsl(var(--ms-border));--modal-overlay: hsl(0 0% 0% / .7);--modal-bg: hsl(var(--ms-popover));--modal-fg: hsl(var(--ms-popover-foreground));--diagram-bg: hsl(var(--ms-muted));--diagram-border: hsl(var(--ms-border));--diagram-header-bg: hsl(var(--ms-muted));--loading-spinner: hsl(var(--ms-muted-foreground));--loading-shimmer: hsl(var(--ms-muted) / .5);--image-placeholder-bg: hsl(var(--ms-muted));--focus-ring: hsl(var(--ms-ring));--ms-space-1: 4px;--ms-space-1_5: 6px;--ms-space-2: 8px;--ms-space-2_5: 10px;--ms-space-3: 12px;--ms-space-4: 16px;--ms-space-5: 20px;--ms-space-6: 24px;--ms-space-8: 32px;--ms-space-12: 48px;--ms-flow-paragraph-y: 1.5em;--ms-flow-list-y: 1em;--ms-flow-list-item-y: .25em;--ms-flow-list-indent: 1.625em ;--ms-flow-list-indent-mobile: calc(14 / 9 * 1em);--ms-flow-table-y: 2em;--ms-flow-table-cell: .5em .75em;--ms-flow-blockquote-y: 1.25em;--ms-flow-blockquote-indent: 1.25em;--ms-flow-admonition-y: 1.25em;--ms-flow-footnote-y: .5em;--ms-flow-hr-y: 2.5em;--ms-flow-diagram-y: 1.5em;--ms-flow-codeblock-y: 1.5em;--ms-flow-definition-term-mt: .75em;--ms-flow-definition-desc-ml: 1.25em;--ms-flow-definition-desc-mb: .5em;--ms-flow-heading-1-mt: 0;--ms-flow-heading-1-mb: 1em;--ms-flow-heading-2-mt: 2em;--ms-flow-heading-2-mb: .75em;--ms-flow-heading-3-mt: 1.5em;--ms-flow-heading-3-mb: .6em;--ms-flow-heading-4-mt: 1.25em;--ms-flow-heading-4-mb: .4em;--ms-flow-heading-5-mt: 1em;--ms-flow-heading-5-mb: .25em;--ms-flow-heading-6-mt: 1em;--ms-flow-heading-6-mb: .25em;--ms-text-body: 16px;--ms-leading-body: 1.75;--ms-text-h1: 36px;--ms-text-h2: 24px;--ms-text-h3: 20px;--ms-text-h4: 16px;--ms-text-h5: 16px;--ms-text-h6: 16px;--ms-leading-h1: 1.2;--ms-leading-h2: 1.35;--ms-leading-h3: 1.5;--ms-weight-h1: 700;--ms-weight-h2: 600;--ms-weight-h3: 600;--ms-weight-h4: 600;--ms-text-label: 12px;--ms-action-btn-padding: 6px;--ms-action-btn-icon: 14px;--ms-inset-panel-x: 10px;--ms-inset-panel-y: 6px;--ms-inset-panel-body-sm: 8px;--ms-inset-panel-body: 16px;--ms-inset-admonition-body-top: 8px;--ms-inset-admonition-body-bottom: 12px;--ms-gap-header: var(--ms-space-4);--ms-gap-header-main: var(--ms-space-2_5);--ms-gap-header-actions: var(--ms-space-2);--ms-shadow-subtle: 0 1px 3px 0 hsl(var(--ms-foreground) / .06);--ms-shadow-popover: 0 4px 6px -1px hsl(var(--ms-foreground) / .1), 0 2px 4px -2px hsl(var(--ms-foreground) / .1);--ms-shadow-modal: 0 10px 15px -3px hsl(var(--ms-foreground) / .1), 0 4px 6px -4px hsl(var(--ms-foreground) / .1);--ms-shadow-preview: 0 10px 40px hsl(var(--ms-foreground) / .25);--ms-duration-fast: .12s;--ms-duration-standard: .18s;--ms-duration-overlay: .2s;--ms-duration-emphasis: .22s;--ms-duration-slow: .3s;--ms-duration-stream: .28s;--ms-ease-linear: linear;--ms-ease-standard: ease;--ms-ease-out: ease-out;--ms-ease-in-out: ease-in-out;--ms-ease-spring: cubic-bezier(.16, 1, .3, 1);--ms-border-width: 1px;--ms-border-width-strong: 4px;--ms-focus-ring-width: 2px;--ms-focus-ring-offset: 2px;--ms-size-diagram-min-height: 360px;--ms-size-code-max-height: 500px;--ms-size-image-max-width: 384px;--ms-size-image-min-width: 128px;--ms-size-image-min-height: 1.5em;--ms-size-math-min-height: 40px;--ms-size-skeleton-min-height: 120px}body>div[id^=dmermaid-]{position:fixed;top:-10000px;left:0;width:100%;visibility:hidden;pointer-events:none}.markstream-vue .hover\:bg-\[var\(--code-action-hover-bg\)\]:hover{background-color:var(--code-action-hover-bg)}.markstream-vue .hover\:text-\[var\(--code-action-hover-fg\)\]:hover{color:var(--code-action-hover-fg)}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}.markstream-vue .active\:scale-\[0\.96\]:active{--tw-scale-x: .96;--tw-scale-y: .96;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.markstream-vue .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.markstream-vue .disabled\:opacity-40:disabled{opacity:.4}.checkbox-node[data-v-be21ab83]{display:inline-flex;align-items:center;margin-right:.5em;vertical-align:-.15em}.checkbox-icon[data-v-be21ab83]{flex-shrink:0}.checkbox-unchecked[data-v-be21ab83]{color:hsl(var(--ms-muted-foreground) / .5)}.checkbox-checked[data-v-be21ab83]{color:hsl(var(--ms-info))}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-c1463a29]{font-size:.75em;line-height:0}.footnote-link[data-v-c1463a29]{color:var(--link-color);text-decoration:none}.footnote-link[data-v-c1463a29]:hover{text-decoration:underline}.html-inline-node[data-v-d17f12b0]{display:inline}.html-inline-node--loading[data-v-d17f12b0]{opacity:.85}.inline-code[data-v-4e331c97]{display:inline;font-family:var(--ms-font-mono);font-size:.8125em;line-height:inherit;color:var(--inline-code-fg);background-color:var(--inline-code-bg);padding:.15em .35em;border-radius:.25em;white-space:normal;word-break:break-word;max-width:100%;-webkit-box-decoration-break:clone;box-decoration-break:clone}.inline-code-stream-delta[data-v-4e331c97]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both}.inline-code-stream-delta--a[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-a-4e331c97}.inline-code-stream-delta--b[data-v-4e331c97]{animation-name:inline-code-stream-update-fade-b-4e331c97}@keyframes inline-code-stream-update-fade-a-4e331c97{0%{opacity:0}to{opacity:1}}@keyframes inline-code-stream-update-fade-b-4e331c97{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.inline-code-stream-delta[data-v-4e331c97]{animation:none!important}}.image-node-container[data-v-046e82ac]{display:inline-block;position:relative;vertical-align:middle;max-width:var(--ms-size-image-max-width)}.image-node__img[data-v-046e82ac]{display:inline-block;max-width:100%;min-width:var(--ms-size-image-min-width);min-height:var(--ms-size-image-min-height);height:auto;vertical-align:middle;transition:opacity var(--ms-duration-emphasis) var(--ms-ease-standard)}.image-node__img.is-loading[data-v-046e82ac]{opacity:0}.image-node__img.is-loaded[data-v-046e82ac]{opacity:1}.image-node__img.has-natural-size[data-v-046e82ac]{min-width:0;min-height:0}.image-placeholder[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:var(--ms-size-image-min-width);min-height:128px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));overflow:hidden;vertical-align:middle}.image-shimmer-overlay[data-v-046e82ac]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:hsl(var(--ms-muted));overflow:hidden}.image-shimmer-overlay .image-shimmer[data-v-046e82ac]{width:100%;height:100%}.image-shimmer[data-v-046e82ac]{display:block;width:100%;height:100%;min-height:128px;background:linear-gradient(90deg,hsl(var(--ms-muted)),hsl(var(--ms-muted-foreground) / .06),hsl(var(--ms-muted)));background-size:200% 100%;animation:image-shimmer-046e82ac 1.5s ease-in-out infinite}.image-node-container[data-markstream-viewport-pending=true] .image-shimmer[data-v-046e82ac]{animation:none}@keyframes image-shimmer-046e82ac{0%{background-position:100% 0}to{background-position:-100% 0}}.image-error[data-v-046e82ac]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:16px 24px;min-height:64px;max-width:var(--ms-size-image-max-width);background:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground));font-size:var(--ms-text-label);vertical-align:middle}.image-node__raw-text[data-v-046e82ac]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}@media(prefers-reduced-motion:reduce){.image-shimmer[data-v-046e82ac]{animation:none!important}}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[data-markstream-pre="1"]:not(.markstream-pre--diff-preview){background:var(--code-bg);color:var(--code-fg)}.markstream-vue pre.markstream-pre--line-numbers{position:relative}.markstream-vue pre.code-pre-fallback[data-markstream-code-loading="1"]{--markstream-pre-line-number-top: var(--markstream-code-padding-y, 8px);--markstream-pre-line-number-left: 0px;--markstream-pre-line-number-width: 2ch;--markstream-pre-line-number-padding-left: 2ch;--markstream-pre-line-number-padding-right: 1ch;--markstream-pre-line-number-separator-width: 2px;--markstream-code-padding-left: calc(6ch + 2px) ;box-sizing:border-box;width:100%;margin:0;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left);overflow:auto;border:0;border-radius:0;background:var(--code-bg);color:var(--code-fg);font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace );font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers{position:absolute;top:var(--markstream-pre-line-number-top, 0);left:var(--markstream-pre-line-number-left, 0);box-sizing:content-box;display:flex;flex-direction:column;align-items:flex-end;width:var(--markstream-pre-line-number-width, 2ch);min-width:var(--markstream-pre-line-number-width, 2ch);padding-left:var(--markstream-pre-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-line-number-padding-right, 1ch);border-right:var(--markstream-pre-line-number-separator-width, 2px) solid transparent;color:var(--code-line-number);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--line-numbers:not(.markstream-pre--diff-preview):not(.code-pre-fallback)>.markstream-pre__code{box-sizing:border-box;min-width:100%;padding-left:var(--markstream-code-padding-left, 52px);padding-right:var(--markstream-code-padding-x, 12px)}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-number{display:block;min-height:1lh}.markstream-vue pre.markstream-pre--line-numbers>.markstream-pre__line-numbers>.markstream-pre__line-numbers-text{display:block;min-height:1lh;text-align:right;white-space:pre}.markstream-vue pre.markstream-pre--diff-preview{box-sizing:border-box;padding-left:0;padding-right:0;width:100%;--markstream-pre-diff-gutter-marker-width: var(--stream-monaco-gutter-marker-width, 4px);--markstream-pre-diff-gutter-gap: var(--stream-monaco-gutter-gap, 1ch);--markstream-pre-diff-code-gap: var(--stream-monaco-diff-code-gap, 1ch);--markstream-pre-diff-code-padding: var(--stream-monaco-diff-code-padding, 0px);--markstream-diff-added-fg: var(--diff-added-fg, #2f8f68);--markstream-diff-removed-fg: var(--diff-removed-fg, #c24141);--markstream-diff-added-line-fill: var(--diff-added-bg, rgb(47 143 104 / 12%));--markstream-diff-removed-line-fill: var(--diff-removed-bg, rgb(194 65 65 / 12%));--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-diff-removed-gutter: linear-gradient( 90deg, var(--markstream-diff-removed-fg) 0 var(--markstream-pre-diff-gutter-marker-width), transparent var(--markstream-pre-diff-gutter-marker-width) 100% );--markstream-pre-diff-line-number-width: var( --stream-monaco-line-number-width, 2ch );--markstream-pre-diff-line-number-padding-left: var(--stream-monaco-line-number-padding-left, 2ch);--markstream-pre-diff-line-number-padding-right: var(--stream-monaco-line-number-padding-right, 1ch);--markstream-pre-diff-line-number-separator-width: var(--stream-monaco-line-number-separator-width, 2px);--markstream-pre-diff-line-number-box-width: calc( var(--markstream-pre-diff-line-number-padding-left) + var(--markstream-pre-diff-line-number-width) + var(--markstream-pre-diff-line-number-padding-right) + var(--markstream-pre-diff-line-number-separator-width) );--markstream-pre-diff-line-number-bg: var( --stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg, transparent) );--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-original-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );--markstream-pre-diff-line-number-align: var(--markstream-diff-line-number-align, right);--markstream-pre-diff-code-fill-left: calc( var(--markstream-pre-diff-line-number-left) + var(--markstream-pre-diff-line-number-box-width) );--markstream-pre-diff-code-left: calc( var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-line-number-gap-to-code) + var(--markstream-pre-diff-code-padding) )}.markstream-vue pre.markstream-pre--diff-preview::-webkit-scrollbar{width:12px;height:12px}.markstream-vue pre.markstream-pre--diff-preview.is-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline{--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px )}.markstream-vue pre.markstream-pre--diff-preview>.markstream-pre__diff-code{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font:inherit;line-height:inherit;min-width:100%;width:100%}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline>.markstream-pre__diff-code{grid-template-columns:minmax(0,1fr)}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap)>.markstream-pre__diff-code{grid-template-columns:minmax(100%,max-content);width:100%;min-width:-moz-max-content;min-width:max-content}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane{min-width:0;overflow:hidden}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{overflow-x:auto;overflow-y:hidden}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane-content{display:block;min-width:100%}.markstream-vue pre.markstream-pre--diff-preview:not(.is-wrap):not(.markstream-pre--diff-inline) .markstream-pre__diff-pane-content{width:-moz-max-content;width:max-content}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline:not(.is-wrap) .markstream-pre__diff-pane{min-width:-moz-max-content;min-width:max-content;width:100%;overflow:visible}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-pane--modified{--markstream-pre-diff-pane-divider-width: 1px;--markstream-pre-diff-line-number-gap-to-code: var( --stream-monaco-modified-line-number-gap-to-code, var(--stream-monaco-line-number-gap-to-code, var(--markstream-pre-diff-code-gap)) );--markstream-pre-diff-line-number-left: var( --stream-monaco-line-number-left, 0px );box-shadow:inset 1px 0 var(--markstream-diff-pane-divider, hsl(var(--ms-border)))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified{--markstream-pre-diff-line-number-left: calc( var(--stream-monaco-line-number-left, 0px) + var(--markstream-pre-diff-pane-divider-width) )}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-rail{left:var(--markstream-pre-diff-pane-divider-width)}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line{padding-left:calc(var(--markstream-pre-diff-code-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane--modified .markstream-pre__diff-line:before{left:calc(var(--markstream-pre-diff-code-fill-left) + var(--markstream-pre-diff-pane-divider-width))}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-inline .markstream-pre__diff-pane--modified{box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line{position:relative;display:block;box-sizing:border-box;width:100%;min-width:100%;min-height:var( --markstream-pre-diff-synced-row-height, var(--markstream-pre-diff-line-height, 18px) );padding-left:var(--markstream-pre-diff-code-left);line-height:var(--markstream-pre-diff-line-height, 18px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:before{content:"";position:absolute;left:var(--markstream-pre-diff-code-fill-left);right:0;top:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;border-radius:0;background:transparent}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line:after{content:"";position:absolute;left:var(--markstream-pre-diff-line-number-left);top:0;width:var(--markstream-pre-diff-line-number-box-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );z-index:0;pointer-events:none;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-rail{position:absolute;z-index:2;top:0;left:0;height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );width:var(--markstream-pre-diff-gutter-marker-width, 4px);min-width:var(--markstream-pre-diff-gutter-marker-width, 4px)}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-number{position:absolute;z-index:1;top:0;left:var(--markstream-pre-diff-line-number-left);width:var(--markstream-pre-diff-line-number-width);min-width:var(--markstream-pre-diff-line-number-width);height:var( --markstream-pre-diff-content-height, var(--markstream-pre-diff-line-height, 18px) );box-sizing:content-box;background:var(--markstream-pre-diff-line-number-bg);box-shadow:none;padding-left:var(--markstream-pre-diff-line-number-padding-left, 2ch);padding-right:var(--markstream-pre-diff-line-number-padding-right, 1ch);border-right:var(--markstream-pre-diff-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg, var(--code-bg));color:var(--code-line-number);font-variant-numeric:tabular-nums;line-height:var(--markstream-pre-diff-line-height, 18px);text-align:var(--markstream-pre-diff-line-number-align, right);-webkit-user-select:none;-moz-user-select:none;user-select:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent));color:var(--stream-monaco-added-fg, var(--markstream-diff-added-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent));color:var(--stream-monaco-removed-fg, var(--markstream-diff-removed-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content{position:relative;z-index:1;display:block;width:-moz-max-content;width:max-content;min-width:100%;line-height:var(--markstream-pre-diff-line-height, 18px);white-space:inherit;overflow-wrap:normal;word-break:normal;line-break:auto}.markstream-vue pre.markstream-pre--diff-preview.is-wrap .markstream-pre__diff-content{width:auto;min-width:0;overflow-wrap:inherit}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-content-inner{white-space:inherit;overflow-wrap:inherit;word-break:inherit;line-break:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk{color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--hunk:before{background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:before{background-image:linear-gradient(-45deg,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 12.5%,transparent 12.5%,transparent 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 50%,color-mix(in srgb,var(--stream-monaco-editor-fg, currentColor) 20%,transparent) 62.5%,transparent 62.5%,transparent 100%);background-size:10px 10px;opacity:.38}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-number,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--spacer>.markstream-pre__diff-content{display:none}.markstream-vue pre.markstream-pre--diff-preview.markstream-pre--diff-collapsed:not(.code-pre-fallback){height:auto!important;min-height:0!important}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed{min-height:28px;padding-left:0;color:var(--stream-monaco-unchanged-fg, var(--markstream-diff-unchanged-fg, var(--code-line-number)));line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:before{left:0;height:28px;background:var(--stream-monaco-unchanged-bg, var(--markstream-diff-unchanged-bg, rgb(0 0 0 / 4%)))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed:after,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-rail,.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-number{display:none}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--collapsed>.markstream-pre__diff-content{width:100%;min-width:0;padding-left:calc(var(--markstream-pre-diff-code-left) + 12px);line-height:28px}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:before{background:linear-gradient(var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent)),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))),var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:before{background:linear-gradient(var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent)),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))),var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added:after{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))}.markstream-vue pre.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.text-node[data-v-fd79037c]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-fd79037c]{display:inline-flex;justify-content:center;width:100%}.text-node-stream-delta[data-v-fd79037c]{animation-duration:var(--stream-update-fade-duration, var(--fade-duration, .28s));animation-timing-function:var(--stream-update-fade-ease, var(--fade-ease, cubic-bezier(.33, 0, .67, 1)));animation-fill-mode:both;will-change:opacity}.text-node-stream-delta--a[data-v-fd79037c]{animation-name:text-node-stream-update-fade-a-fd79037c}.text-node-stream-delta--b[data-v-fd79037c]{animation-name:text-node-stream-update-fade-b-fd79037c}@keyframes text-node-stream-update-fade-a-fd79037c{0%{opacity:0}to{opacity:1}}@keyframes text-node-stream-update-fade-b-fd79037c{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.text-node-stream-delta[data-v-fd79037c]{animation:none!important}}.reference-node[data-v-775c65e4]{background-color:hsl(var(--ms-muted));color:hsl(var(--ms-muted-foreground))}.reference-node[data-v-775c65e4]:hover{background-color:hsl(var(--ms-secondary))}.superscript-node[data-v-24160b22]{font-size:.8em;vertical-align:super}.subscript-node[data-v-197fa13b]{font-size:.8em;vertical-align:sub}.strong-node[data-v-a8647104]{font-weight:700}.strikethrough-node[data-v-b7a531fa]{text-decoration:line-through}.link-node[data-v-367e6ca4]{color:var(--link-color);text-decoration:none}.link-node[data-v-367e6ca4]:hover{text-decoration:underline;text-underline-offset:3.2px}.link-loading .link-text-wrapper[data-v-367e6ca4]{position:relative}.link-loading[data-v-367e6ca4]{color:var(--link-color)}.link-loading .link-text[data-v-367e6ca4]{position:relative;z-index:2}.link-loading-indicator[data-v-367e6ca4]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;border-radius:999px;will-change:opacity;opacity:var(--underline-rest-opacity, .18);animation:underlinePulse-367e6ca4 var(--underline-duration, 1.6s) var(--underline-timing, ease-in-out) var(--underline-iteration, infinite)}@keyframes underlinePulse-367e6ca4{0%,to{opacity:var(--underline-rest-opacity, .18)}50%{opacity:var(--underline-opacity, .35)}}@media(prefers-reduced-motion:reduce){.link-loading-indicator[data-v-367e6ca4]{animation:none;opacity:var(--underline-rest-opacity, .18)}}.insert-node[data-v-1e2c29d4]{text-decoration:underline}.highlight-node[data-v-7a62982a]{background-color:var(--highlight-bg);padding:0 3.2px;border-radius:.2em}.emphasis-node[data-v-2a5aafbf]{font-style:italic}.hard-break[data-v-50c58f70]{display:block}.blockquote[data-v-abfecebc]{font-weight:400;font-style:normal;color:var(--blockquote-fg, hsl(var(--ms-muted-foreground)));border-left:3px solid var(--blockquote-border);margin-top:var(--ms-flow-blockquote-y);margin-bottom:var(--ms-flow-blockquote-y);padding-left:var(--ms-flow-blockquote-indent)}.blockquote>.paragraph-node[data-v-abfecebc]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}.blockquote>.paragraph-node[data-v-abfecebc]:first-child{margin-top:0}.blockquote>.paragraph-node[data-v-abfecebc]:last-child{margin-bottom:0}.blockquote[data-v-abfecebc] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.definition-list[data-v-4e103b30]{margin:0 0 16px}.definition-term[data-v-4e103b30]{font-weight:600;margin-top:var(--ms-flow-definition-term-mt)}.definition-desc[data-v-4e103b30]{margin-left:var(--ms-flow-definition-desc-ml);margin-bottom:var(--ms-flow-definition-desc-mb)}.definition-list[data-v-4e103b30] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.footnote-anchor[data-v-e1eb37b6]{margin-left:8px;color:var(--link-color)}.footnote-node{margin-top:var(--ms-flow-footnote-y);margin-bottom:var(--ms-flow-footnote-y)}.markstream-vue [class*=footnote-] .markdown-renderer,.markstream-vue .flex-1 .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.heading-node[data-v-7122dbe1]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-7122dbe1]{margin-top:0}.heading-1[data-v-7122dbe1]{font-size:var(--ms-text-h1);line-height:var(--ms-leading-h1);font-weight:var(--ms-weight-h1);margin-top:var(--ms-flow-heading-1-mt);margin-bottom:var(--ms-flow-heading-1-mb)}.heading-2[data-v-7122dbe1]{font-size:var(--ms-text-h2);line-height:var(--ms-leading-h2);font-weight:var(--ms-weight-h2);margin-top:var(--ms-flow-heading-2-mt);margin-bottom:var(--ms-flow-heading-2-mb)}.heading-3[data-v-7122dbe1]{font-size:var(--ms-text-h3);line-height:var(--ms-leading-h3);font-weight:var(--ms-weight-h3);margin-top:var(--ms-flow-heading-3-mt);margin-bottom:var(--ms-flow-heading-3-mb)}.heading-4[data-v-7122dbe1]{font-size:var(--ms-text-h4);font-weight:var(--ms-weight-h4);margin-top:var(--ms-flow-heading-4-mt);margin-bottom:var(--ms-flow-heading-4-mb)}.heading-5[data-v-7122dbe1]{font-size:var(--ms-text-h5);margin-top:var(--ms-flow-heading-5-mt);margin-bottom:var(--ms-flow-heading-5-mb)}.heading-6[data-v-7122dbe1]{font-size:var(--ms-text-h6);margin-top:var(--ms-flow-heading-6-mt);margin-bottom:var(--ms-flow-heading-6-mb)}.list-item[data-v-617214f9]{margin:var(--ms-flow-list-item-y) 0;padding-left:var(--ms-space-1_5)}ol>.list-item[data-v-617214f9]::marker{color:var(--list-counter-marker);line-height:1.6}ul>.list-item[data-v-617214f9]::marker{color:var(--list-marker)}.list-item>.paragraph-node[data-v-617214f9]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:0}.list-item[data-v-617214f9] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:content}.list-node[data-v-99cb95e0]{margin-top:var(--ms-flow-list-y);margin-bottom:var(--ms-flow-list-y);padding-left:var(--ms-flow-list-indent)}.list-decimal[data-v-99cb95e0]{list-style-type:decimal}.list-disc[data-v-99cb95e0]{list-style-type:disc}@media(max-width:1023px){.list-disc[data-v-99cb95e0]{margin-top:calc(4/3*1em);margin-bottom:calc(4/3*1em);padding-left:var(--ms-flow-list-indent-mobile)}}.html-block-node__raw[data-v-e140a874]{white-space:pre-wrap;overflow-wrap:anywhere;opacity:.85}.html-block-node__placeholder[data-v-e140a874]{display:flex;flex-direction:column;gap:5.6px;padding:8px 0}.html-block-node__placeholder-bar[data-v-e140a874]{display:block;height:12.8px;border-radius:9999px;background-image:linear-gradient(90deg,var(--loading-shimmer),transparent,var(--loading-shimmer));background-size:200% 100%}.paragraph-node[data-v-c59ff506]{font-size:var(--ms-text-body);line-height:var(--ms-leading-body);margin:var(--ms-flow-paragraph-y) 0}li .paragraph-node[data-v-c59ff506]{margin:0}.table-node-wrapper[data-v-39f87b5d]{position:relative;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable}.table-node[data-v-39f87b5d]{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:var(--ms-flow-table-y) 0;font-size:inherit;border:1px solid var(--table-border);border-radius:var(--ms-radius);overflow:hidden;box-shadow:var(--ms-shadow-subtle)}.table-node[data-v-39f87b5d] th,.table-node[data-v-39f87b5d] td{border-bottom:1px solid var(--table-border);border-right:1px solid var(--table-border);padding:var(--ms-flow-table-cell);white-space:normal;overflow-wrap:break-word;word-break:normal}.table-node[data-v-39f87b5d] th:last-child,.table-node[data-v-39f87b5d] td:last-child{border-right:none}.table-node[data-v-39f87b5d] tbody tr:last-child td{border-bottom:none}.table-node[data-v-39f87b5d] thead th{position:relative;font-weight:600;background-color:var(--table-header-bg);border-bottom-width:2px}.table-node__resize-handle[data-v-39f87b5d]{position:absolute;top:0;right:-4px;bottom:0;z-index:1;width:8px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.table-node__resize-handle[data-v-39f87b5d]:after{content:"";position:absolute;top:.35em;bottom:.35em;left:50%;width:2px;border-radius:9999px;background:color-mix(in srgb,var(--table-border) 45%,hsl(var(--ms-foreground)));opacity:0;transform:translate(-50%);transition:opacity var(--ms-duration-fast) var(--ms-ease-standard)}.table-node__resize-handle[data-v-39f87b5d]:hover:after,.table-node__resize-handle[data-v-39f87b5d]:focus-visible:after{opacity:1}.table-node[data-v-39f87b5d] tbody tr:nth-child(2n){background-color:hsl(var(--ms-muted) / .35)}.table-node[data-v-39f87b5d] tbody tr:hover{background-color:var(--code-action-hover-bg)}.table-node--loading tbody td[data-v-39f87b5d]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-39f87b5d]>*{visibility:hidden}.table-node--loading tbody td[data-v-39f87b5d]:after{content:"";position:absolute;inset:0;border-radius:calc(var(--ms-radius) * .5);background:linear-gradient(90deg,var(--loading-shimmer) 25%,var(--loading-shimmer) 50%,var(--loading-shimmer) 75%);background-size:200% 100%;animation:table-node-shimmer-39f87b5d 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-39f87b5d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-39f87b5d]{width:40px;height:40px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-39f87b5d],.table-node-fade-leave-active[data-v-39f87b5d]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-39f87b5d],.table-node-fade-leave-to[data-v-39f87b5d]{opacity:0}[data-v-39f87b5d] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-39f87b5d] .table-node .markdown-renderer .node-slot,[data-v-39f87b5d] .table-node .markdown-renderer .node-content,[data-v-39f87b5d] .table-node .markdown-renderer .node-space{display:contents}[data-v-39f87b5d] .table-node .text-node,[data-v-39f87b5d] .table-node code{white-space:inherit;overflow-wrap:inherit;word-break:inherit;max-width:none}@keyframes table-node-shimmer-39f87b5d{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-39f87b5d]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-39f87b5d]{margin-top:0}.sr-only[data-v-39f87b5d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-39b2349c]{border-top-width:1px;border-color:var(--hr-border);margin:var(--ms-flow-hr-y) 0}.vmr-container[data-v-911e41c4]{margin-top:16px;margin-bottom:16px;border-radius:var(--ms-radius);border-width:1px;padding:16px;border-left-width:var(--ms-border-width-strong)}.height-estimation-probes[data-v-3e0766e2]{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;overflow:hidden;z-index:-1}.node-content[data-v-3e0766e2]{width:100%}.node-content-flow-root[data-v-3e0766e2]{display:flow-root}.markdown-renderer[data-v-a9489508]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:auto}.markdown-renderer.stable-layout[data-v-a9489508]{content-visibility:visible;contain-intrinsic-size:none}.node-slot[data-v-a9489508],.node-content[data-v-a9489508]{width:100%}.markdown-renderer.virtualized .node-slot[data-v-a9489508],.markdown-renderer.virtualized .node-content[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-slot[data-v-a9489508],.markdown-renderer.virtual-scroll-coordinated .node-content[data-v-a9489508]{display:flow-root}.node-placeholder[data-v-a9489508]{width:100%;min-height:16px;margin:4px 0}.node-placeholder[data-v-a9489508]:first-child{margin-top:0}.node-spacer[data-v-a9489508]{width:100%}.unknown-node[data-v-a9489508]{color:hsl(var(--ms-muted-foreground));font-style:italic;margin:var(--ms-flow-paragraph-y) 0}.typewriter-cursor[data-v-a9489508]{position:absolute;left:0;top:0;display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;visibility:hidden;animation:typewriter-cursor-blink-a9489508 1s steps(1,end) infinite}@keyframes typewriter-cursor-blink-a9489508{0%,49%{opacity:1}50%,to{opacity:0}}.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{content:"";display:inline-block;width:.55em;height:1em;margin-left:.08em;vertical-align:-.12em;border-right:2px solid currentColor;pointer-events:none;animation:typewriter-cursor-blink 1s steps(1,end) infinite}@media(prefers-reduced-motion:reduce){.markstream-vue.typewriter-simple-cursor .typewriter-simple-cursor-target:after{animation:none}}.markstream-vue .fade-enter-from{opacity:0}.markstream-vue .fade-enter-active{transition:opacity var(--fade-duration, .28s) var(--fade-ease, cubic-bezier(.33, 0, .67, 1));will-change:opacity}.markstream-vue .fade-enter-to{opacity:1}.admonition[data-v-a83480e1]{position:relative;margin:var(--ms-flow-admonition-y) 0;padding:.25em .75em .375em;border:1px solid var(--admonition-border);border-radius:var(--ms-radius);color:var(--admonition-fg)}.admonition-legend[data-v-a83480e1]{position:absolute;top:0;left:.75em;transform:translateY(-50%);display:inline-flex;align-items:center;gap:.35em;padding:0 .5em;background-color:hsl(var(--ms-background));font-size:13px;font-weight:600;line-height:1}.admonition-icon[data-v-a83480e1]{flex-shrink:0}.admonition-title[data-v-a83480e1]{white-space:nowrap}.admonition-content[data-v-a83480e1]{padding-top:.25em;color:var(--admonition-fg)}.admonition-note[data-v-a83480e1],.admonition-info[data-v-a83480e1]{border-color:hsl(var(--ms-info) / .3);background-color:hsl(var(--ms-info) / .04)}.admonition-note .admonition-legend[data-v-a83480e1],.admonition-info .admonition-legend[data-v-a83480e1]{color:var(--admonition-note)}.admonition-tip[data-v-a83480e1]{border-color:hsl(var(--ms-success) / .3);background-color:hsl(var(--ms-success) / .04)}.admonition-tip .admonition-legend[data-v-a83480e1]{color:var(--admonition-tip)}.admonition-warning[data-v-a83480e1],.admonition-caution[data-v-a83480e1]{border-color:hsl(var(--ms-warning) / .3);background-color:hsl(var(--ms-warning) / .04)}.admonition-warning .admonition-legend[data-v-a83480e1],.admonition-caution .admonition-legend[data-v-a83480e1]{color:var(--admonition-warning)}.admonition-danger[data-v-a83480e1],.admonition-error[data-v-a83480e1]{border-color:hsl(var(--ms-destructive) / .3);background-color:hsl(var(--ms-destructive) / .04)}.admonition-danger .admonition-legend[data-v-a83480e1],.admonition-error .admonition-legend[data-v-a83480e1]{color:var(--admonition-danger)}.admonition-toggle[data-v-a83480e1]{margin-left:.25em;background:transparent;border:none;color:inherit;cursor:pointer;padding:2px;border-radius:calc(var(--ms-radius) * .5);display:inline-flex;align-items:center;transition:background-color var(--ms-duration-fast) var(--ms-ease-standard)}.admonition-toggle[data-v-a83480e1]:hover{background-color:hsl(var(--ms-accent))}.admonition-toggle[data-v-a83480e1]:focus-visible{outline:var(--ms-focus-ring-width) solid var(--focus-ring);outline-offset:var(--ms-focus-ring-offset)}.admonition-content[data-v-a83480e1] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.tooltip-element[data-v-c606ee4c]{z-index:9999;display:inline-block;max-width:320px;padding:4px 8px;border-radius:calc(var(--ms-radius) * .75);font-size:12px;line-height:1.4;white-space:normal;word-break:break-word;pointer-events:none;background-color:var(--tooltip-bg);color:var(--tooltip-fg);box-shadow:inset 0 1px #ffffff26,0 0 0 1px #0000001f,var(--ms-shadow-popover);transition:transform var(--ms-duration-emphasis) var(--ms-ease-spring),box-shadow var(--ms-duration-emphasis) var(--ms-ease-spring)}.tooltip-arrow[data-v-c606ee4c]{position:absolute;width:6px;height:6px;background:inherit;transform:rotate(45deg)}.tooltip-arrow[data-placement^=top][data-v-c606ee4c]{bottom:-3px}.tooltip-arrow[data-placement^=bottom][data-v-c606ee4c]{top:-3px}.tooltip-arrow[data-placement^=left][data-v-c606ee4c]{right:-3px}.tooltip-arrow[data-placement^=right][data-v-c606ee4c]{left:-3px}.tooltip-enter-active[data-v-c606ee4c]{transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1)}.tooltip-leave-active[data-v-c606ee4c]{transition:opacity .12s ease-in,transform .12s ease-in}.tooltip-enter-from[data-v-c606ee4c]{opacity:0;transform:scale(.96)}.tooltip-enter-to[data-v-c606ee4c],.tooltip-leave-from[data-v-c606ee4c]{opacity:1;transform:scale(1)}.tooltip-leave-to[data-v-c606ee4c]{opacity:0;transform:scale(.97)}.action-icon{width:var(--ms-action-btn-icon, 14px);height:var(--ms-action-btn-icon, 14px);max-width:20px;max-height:20px}.code-block-container{margin:var(--ms-flow-codeblock-y) 0;contain:layout style;container-type:inline-size;background:var(--code-bg);border-color:var(--code-border);color:var(--code-fg);box-shadow:var(--ms-shadow-subtle)}.code-block-header{position:relative;z-index:1;gap:var(--ms-gap-header);border-radius:var(--ms-radius) var(--ms-radius) 0 0;overflow:visible}.code-block-header .code-header-main{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:var(--ms-gap-header-main);overflow:hidden}.code-block-header .code-header-copy{min-width:0;display:grid;gap:2px}.code-block-header .code-header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ms-text-label);font-weight:500;color:var(--code-action-fg)}.code-block-header .code-header-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--code-line-number)}.code-block-header .code-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--ms-gap-header-actions);flex-wrap:wrap}.code-block-header .icon-slot{display:inline-flex;align-items:center;justify-content:center}.code-block-header .icon-slot svg,.code-block-header .icon-slot img{display:block;width:100%;height:100%}.code-diff-stats{display:inline-flex;align-items:center;gap:var(--ms-space-1_5);margin-right:var(--ms-space-1);font-size:var(--ms-text-label);font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.code-diff-stat{display:inline-flex;align-items:center;padding:2px 6px;border-radius:var(--ms-radius);line-height:1}.code-diff-stat.removed{color:var(--diff-removed-fg);background:hsl(var(--ms-diff-removed) / .1)}.code-diff-stat.added{color:var(--diff-added-fg);background:hsl(var(--ms-diff-added) / .1)}.code-more-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:50;border-radius:var(--ms-radius)}.code-block-shell-content,.code-loading-placeholder{overflow:hidden;border-radius:0 0 var(--ms-radius) var(--ms-radius);contain:content}.code-block-shell-content--collapsed{height:0;min-height:0;visibility:hidden;pointer-events:none}.code-menu-enter-active,.code-menu-leave-active{transform-origin:top right}.code-menu-enter-active{transition:opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1)}.code-menu-leave-active{transition:opacity .14s ease-in,transform .14s ease-in}.code-menu-enter-from{opacity:0;transform:scale(.9) translateY(-4px)}.code-menu-leave-to{opacity:0;transform:scale(.95) translateY(-2px)}.html-preview-frame__backdrop[data-v-24e66176]{position:fixed;inset:0;background-color:var(--modal-overlay);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame[data-v-24e66176]{width:80vw;max-width:960px;height:70vh;background-color:var(--modal-bg);color:var(--modal-fg);border-radius:calc(var(--ms-radius) * 2);overflow:hidden;box-shadow:var(--ms-shadow-preview);display:flex;flex-direction:column}.html-preview-frame__header[data-v-24e66176]{display:flex;justify-content:space-between;align-items:center;padding:6.4px 12px;border-bottom:1px solid var(--code-border)}.html-preview-frame__title[data-v-24e66176]{display:inline-flex;align-items:center;gap:6.4px;font-size:12px;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-24e66176]{width:8px;height:8px;border-radius:999px;background-color:hsl(var(--ms-success))}.html-preview-frame__label[data-v-24e66176]{white-space:nowrap}.html-preview-frame__close[data-v-24e66176]{border:none;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--modal-fg)}.html-preview-frame__iframe[data-v-24e66176]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-24e66176]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--vscode-editor-selectionBackground: var(--markstream-code-fallback-selection-bg);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 16px 40px -32px hsl(var(--ms-foreground) / .18);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .92);--markstream-diff-editor-bg: hsl(var(--ms-background));--markstream-diff-editor-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-fg: hsl(var(--ms-foreground));--markstream-diff-unchanged-bg: hsl(var(--ms-muted));--markstream-diff-unchanged-divider: hsl(var(--ms-background) / .94);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .26);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: linear-gradient(180deg, var(--code-bg) 0%, hsl(var(--ms-muted)) 100%);--markstream-diff-panel-bg-soft: var(--code-bg);--markstream-diff-panel-bg-strong: var(--code-bg);--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .42);--markstream-diff-gutter-bg: transparent;--markstream-diff-gutter-guide: hsl(var(--ms-border) / .72);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(var(--ms-muted) / .45);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: var(--diff-added-fg);--markstream-diff-removed-fg: var(--diff-removed-fg);--markstream-diff-added-line: var(--diff-added-bg);--markstream-diff-removed-line: var(--diff-removed-bg);--markstream-diff-added-inline: var(--diff-added-inline-bg);--markstream-diff-removed-inline: var(--diff-removed-inline-bg);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: var(--diff-added-bg);--markstream-diff-removed-line-fill: var(--diff-removed-bg)}.code-block-container.is-dark[data-v-ef6e4bb8]{--markstream-code-fallback-bg: var(--code-bg);--markstream-code-fallback-fg: var(--code-fg);--markstream-code-border-color: var(--code-border);--markstream-code-fallback-selection-bg: var(--code-selection-bg);--markstream-diff-frame-border: var(--code-border);--markstream-diff-frame-shadow: 0 18px 40px -30px hsl(var(--ms-foreground) / .84);--markstream-diff-shell-fg: hsl(var(--ms-foreground));--markstream-diff-shell-muted: hsl(var(--ms-muted-foreground));--markstream-diff-shell-border: var(--code-border);--markstream-diff-shell-shadow: var(--ms-shadow-subtle);--markstream-diff-shell-bg: var(--code-bg);--markstream-diff-header-border: hsl(var(--ms-border) / .82);--markstream-diff-editor-bg: #121212;--markstream-diff-editor-fg: #e5e5e5;--markstream-diff-unchanged-fg: #d4d4d4;--markstream-diff-unchanged-bg: #262626;--markstream-diff-unchanged-divider: hsl(0 0% 100% / .08);--markstream-diff-focus: var(--focus-ring);--markstream-diff-widget-shadow: hsl(var(--ms-foreground) / .72);--markstream-diff-action-hover: var(--code-action-hover-bg);--markstream-diff-panel-bg: #121212;--markstream-diff-panel-bg-soft: #121212;--markstream-diff-panel-bg-strong: #121212;--markstream-diff-panel-border: hsl(var(--ms-border) / .3);--markstream-diff-pane-divider: hsl(var(--ms-border) / .34);--markstream-diff-gutter-bg: linear-gradient( 180deg, hsl(0 0% 7% / .94) 0%, hsl(0 0% 7% / .98) 100% );--markstream-diff-gutter-guide: hsl(var(--ms-muted-foreground) / .08);--markstream-diff-gutter-gap: 8px;--markstream-diff-line-number-bg: hsl(0 0% 7% / .98);--markstream-diff-line-number: var(--code-line-number);--markstream-diff-line-number-active: var(--code-line-number);--markstream-diff-added-fg: hsl(152 42% 60%);--markstream-diff-removed-fg: hsl(0 58% 58%);--markstream-diff-added-line: hsl(152 42% 60% / .18);--markstream-diff-removed-line: hsl(0 58% 58% / .18);--markstream-diff-added-inline: hsl(152 42% 60% / .28);--markstream-diff-removed-inline: hsl(0 58% 58% / .28);--markstream-diff-added-inline-border: transparent;--markstream-diff-removed-inline-border: transparent;--markstream-diff-added-gutter: linear-gradient( 90deg, var(--markstream-diff-added-fg) 0 var(--stream-monaco-gutter-marker-width, 4px), transparent var(--stream-monaco-gutter-marker-width, 4px) 100% );--markstream-diff-removed-gutter: repeating-linear-gradient( 180deg, var(--markstream-diff-removed-fg) 0 2px, transparent 2px 4px ) left / var(--stream-monaco-gutter-marker-width, 4px) 100% no-repeat;--markstream-diff-added-line-fill: hsl(152 42% 60% / .18);--markstream-diff-removed-line-fill: hsl(0 58% 58% / .18)}.code-editor-container[data-v-ef6e4bb8]{transition:none;box-sizing:border-box;min-width:0;width:100%}.code-block-container.is-diff .code-editor-container[data-v-ef6e4bb8]{transition:none}.code-editor-layer[data-v-ef6e4bb8]{display:grid;min-width:0;position:relative}.code-editor-layer--collapsed[data-v-ef6e4bb8]{height:0;min-height:0;overflow:hidden;visibility:hidden;pointer-events:none}.code-editor-layer>.code-editor-container[data-v-ef6e4bb8]{grid-area:1 / 1;z-index:1}.code-editor-layer>pre.code-pre-fallback[data-v-ef6e4bb8]{grid-area:1 / 1;position:relative;z-index:2}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-editor-background,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{background:var(--vscode-editor-background, var(--markstream-code-fallback-bg))!important}.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-lines,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .view-line span,.code-block-container.is-plain-text[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{color:var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))!important}.code-block-container.is-diff[data-v-ef6e4bb8]{color:var(--markstream-diff-shell-fg);border-color:var(--markstream-diff-shell-border);background:var(--markstream-diff-shell-bg);box-shadow:var(--markstream-diff-shell-shadow);--vscode-editor-selectionBackground: var(--markstream-diff-action-hover);--code-fg: var(--markstream-diff-shell-fg);--code-header-bg: transparent;--code-border: var(--markstream-diff-header-border);--code-line-number: var(--markstream-diff-shell-muted);--code-action-fg: var(--markstream-diff-shell-muted)}.code-block-container.is-diff .code-editor-layer[data-v-ef6e4bb8]{background:transparent;--vscode-editor-background: var(--markstream-diff-editor-bg);--vscode-editor-foreground: var(--markstream-diff-editor-fg);--vscode-diffEditor-unchangedRegionForeground: var(--markstream-diff-unchanged-fg);--vscode-diffEditor-unchangedRegionBackground: var(--markstream-diff-unchanged-bg);--vscode-focusBorder: var(--markstream-diff-focus);--vscode-widget-shadow: var(--markstream-diff-widget-shadow);--vscode-editor-selectionBackground: color-mix( in srgb, var(--markstream-diff-editor-bg) 90%, var(--markstream-diff-editor-fg) 10% );--stream-monaco-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-editor-fg: var(--markstream-diff-editor-fg);--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg);--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg);--stream-monaco-frame-radius: 0;--stream-monaco-fixed-editor-bg: var(--markstream-diff-editor-bg);--stream-monaco-frame-border: transparent;--stream-monaco-frame-shadow: none;--stream-monaco-panel-bg: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-soft: var(--markstream-diff-editor-bg);--stream-monaco-panel-bg-strong: var(--markstream-diff-editor-bg);--stream-monaco-panel-border: transparent;--stream-monaco-pane-divider: var(--markstream-diff-pane-divider);--stream-monaco-gutter-bg: var(--markstream-diff-gutter-bg);--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide);--stream-monaco-gutter-marker-width: 4px;--stream-monaco-gutter-gap: 1ch;--stream-monaco-line-number-bg: var(--markstream-diff-line-number-bg);--stream-monaco-line-number: var(--markstream-diff-line-number);--stream-monaco-line-number-active: var(--markstream-diff-line-number-active);--stream-monaco-line-number-left: 0px;--stream-monaco-line-number-width: 2ch;--stream-monaco-line-number-padding-left: 2ch;--stream-monaco-line-number-padding-right: 1ch;--stream-monaco-line-number-separator-width: 2px;--stream-monaco-layout-character-width: var(--markstream-code-layout-character-width, 1ch);--stream-monaco-line-number-box-width: calc( var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-layout-character-width) + var(--stream-monaco-line-number-separator-width) );--stream-monaco-diff-code-gap: 1ch;--stream-monaco-diff-code-padding: 0px;--stream-monaco-line-number-gap-to-code: var(--stream-monaco-diff-code-gap);--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) );--stream-monaco-original-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-original-scrollable-left: var(--stream-monaco-original-margin-width);--stream-monaco-original-scrollable-width: calc( 100% - var(--stream-monaco-original-margin-width) );--stream-monaco-modified-margin-width: calc( var(--stream-monaco-line-number-left) + var(--stream-monaco-line-number-box-width) + var(--stream-monaco-line-number-gap-to-code) );--stream-monaco-modified-scrollable-left: var(--stream-monaco-modified-margin-width);--stream-monaco-modified-scrollable-width: calc( 100% - var(--stream-monaco-modified-margin-width) );--stream-monaco-added-fg: var(--markstream-diff-added-fg);--stream-monaco-removed-fg: var(--markstream-diff-removed-fg);--stream-monaco-added-line: var(--markstream-diff-added-line);--stream-monaco-removed-line: var(--markstream-diff-removed-line);--stream-monaco-added-inline: var(--markstream-diff-added-inline);--stream-monaco-removed-inline: var(--markstream-diff-removed-inline);--stream-monaco-added-outline: transparent;--stream-monaco-removed-outline: transparent;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border);--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border);--stream-monaco-added-line-shadow: none;--stream-monaco-removed-line-shadow: none;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter);--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter);--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill);--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill);--stream-monaco-added-border: hsl(var(--ms-diff-added) / .25);--stream-monaco-removed-border: hsl(var(--ms-diff-removed) / .25);--stream-monaco-widget-shadow: var(--markstream-diff-widget-shadow)}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers{left:var(--stream-monaco-line-number-left)!important;width:var(--stream-monaco-line-number-width)!important;min-width:var(--stream-monaco-line-number-width)!important;box-sizing:content-box!important;background:var(--stream-monaco-line-number-bg, var(--markstream-diff-line-number-bg))!important;padding-left:var(--stream-monaco-line-number-padding-left, 2ch)!important;padding-right:var(--stream-monaco-line-number-padding-right, 1ch)!important;border-right:var(--stream-monaco-line-number-separator-width, 2px) solid var(--stream-monaco-editor-bg)!important;text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums;box-shadow:none}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays .line-numbers *{text-align:var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) )!important;font-variant-numeric:tabular-nums}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-delete.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-delete,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-delete.line-numbers{background:var(--stream-monaco-removed-line-fill)!important;color:var(--stream-monaco-removed-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .line-insert.line-numbers,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.original .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .editor.modified .margin-view-overlays .line-numbers.stream-monaco-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-editor .stream-monaco-fallback-line-number-insert,.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-native-stale .monaco-diff-editor .line-insert.line-numbers{background:var(--stream-monaco-added-line-fill)!important;color:var(--stream-monaco-added-fg)!important;box-shadow:none!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .monaco-editor,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin,.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays{--stream-monaco-line-number-align: var( --markstream-diff-line-number-align, var(--markstream-code-line-number-align, right) ) !important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff){--markstream-code-line-number-box-width: calc( var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + var(--markstream-code-layout-character-width, 1ch) + 2px );--markstream-code-content-left: calc( var(--markstream-code-line-number-box-width) + var(--markstream-code-layout-character-width, 1ch) )}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin,.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .margin-view-overlays{width:var(--markstream-code-content-left)!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .line-numbers{left:0!important;width:2ch!important;min-width:2ch!important;box-sizing:content-box!important;padding-left:2ch!important;padding-right:1ch!important;border-right:2px solid var(--vscode-editor-background)!important;text-align:var(--markstream-code-line-number-align, right)!important;font-variant-numeric:tabular-nums}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .monaco-scrollable-element.editor-scrollable{left:var(--markstream-code-content-left)!important;width:calc(100% - var(--markstream-code-content-left))!important}.code-block-container[data-v-ef6e4bb8]:not(.is-diff) .monaco-editor .lines-content{left:0!important}.code-editor-container[data-markstream-host-hidden=true][data-v-ef6e4bb8]{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden;visibility:hidden;pointer-events:none}pre.code-pre-fallback[data-v-ef6e4bb8]{margin:0;box-sizing:border-box;width:100%;padding:var(--markstream-code-padding-y, 8px) var(--markstream-code-padding-x, 12px);padding-left:var(--markstream-code-padding-left, 52px);background:var(--markstream-code-fallback-bg, var(--code-bg, #fff));color:var(--markstream-code-fallback-fg, var(--code-fg));backface-visibility:visible;transform:none;-webkit-font-smoothing:auto;font-size:var(--vscode-editor-font-size, 12px);line-height:var(--vscode-editor-line-height, 18px);font-weight:400;font-family:var( --markstream-code-font-family, Menlo, Monaco, Courier New, monospace )}pre.code-pre-fallback[data-v-ef6e4bb8] code{font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit}pre.code-pre-fallback.is-wrap[data-v-ef6e4bb8]{white-space:pre-wrap;overflow-wrap:anywhere}pre.code-pre-fallback.markstream-pre--diff-preview[data-v-ef6e4bb8]{padding-left:0;padding-right:0}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{background:var(--markstream-diff-editor-bg);transition:none}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-pane{box-sizing:border-box;padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview:not(.markstream-pre--diff-inline) .markstream-pre__diff-pane{padding-bottom:var(--markstream-pre-diff-pane-bottom-padding, 0px)}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-number{background:var(--stream-monaco-added-line-fill, var(--markstream-diff-added-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed:after,.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-number{background:var(--stream-monaco-removed-line-fill, var(--markstream-diff-removed-line-fill, transparent))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--added>.markstream-pre__diff-rail{background:var(--stream-monaco-added-gutter, var(--markstream-diff-added-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview .markstream-pre__diff-line--removed>.markstream-pre__diff-rail{background:var(--stream-monaco-removed-gutter, var(--markstream-diff-removed-gutter, currentColor))!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-insert>.cmdr.gutter-insert{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-added-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}.code-block-container.is-diff[data-v-ef6e4bb8] .monaco-diff-editor .margin-view-overlays>.gutter-delete>.cmdr.gutter-delete{background:linear-gradient(90deg,transparent 0 var(--stream-monaco-line-number-box-width),var(--stream-monaco-removed-line-fill) var(--stream-monaco-line-number-box-width) 100%)!important}@media(prefers-reduced-motion:reduce){.code-block-container.is-diff[data-v-ef6e4bb8] pre.code-pre-fallback.markstream-pre--diff-preview{transition:none}}.code-block-container.is-rendering .code-height-placeholder[data-v-ef6e4bb8]{background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;min-height:var(--ms-size-skeleton-min-height);background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%)}.code-loading-placeholder[data-v-ef6e4bb8]{padding:16px;min-height:var(--ms-size-skeleton-min-height)}.loading-skeleton[data-v-ef6e4bb8]{display:flex;flex-direction:column;gap:12px}.skeleton-line[data-v-ef6e4bb8]{height:16px;background:linear-gradient(90deg,var(--loading-shimmer) 25%,hsl(var(--ms-muted) / .7) 37%,var(--loading-shimmer) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-ef6e4bb8 1.2s ease-in-out infinite;border-radius:calc(var(--ms-radius) * .5)}.skeleton-line.short[data-v-ef6e4bb8]{width:60%}.code-block-container[data-markstream-viewport-pending=true] .code-height-placeholder[data-v-ef6e4bb8],.code-block-container[data-markstream-viewport-pending=true] .skeleton-line[data-v-ef6e4bb8]{animation:none}@keyframes code-skeleton-shimmer-ef6e4bb8{0%{background-position:100% 0}to{background-position:0 0}}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center{border-radius:var(--ms-radius)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;min-height:28px!important;transition:background-color .14s ease,border-color .14s ease!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 4%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 10%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center{background:transparent!important;border-color:transparent!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-appearance-dark .monaco-editor .diff-hidden-lines .center.stream-monaco-focus-within{background:color-mix(in srgb,var(--stream-monaco-editor-fg) 6%,transparent)!important;border-color:color-mix(in srgb,var(--stream-monaco-editor-fg) 12%,transparent)!important;box-shadow:none!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center .stream-monaco-unchanged-count:before{content:"";display:inline-block;width:14px;height:14px;margin-right:4px;flex-shrink:0;background:currentColor;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}[data-v-ef6e4bb8] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .diffOverview,[data-v-ef6e4bb8] .stream-monaco-diff-root .decorationsOverviewRuler{display:none!important;width:0!important;min-width:0!important;max-width:0!important;border:0!important;background:transparent!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-diff-editor{border:0!important;border-radius:0!important;box-shadow:none!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-clickable)>*:not(a){visibility:hidden!important}[data-v-ef6e4bb8] .code-block-container .stream-monaco-diff-root .monaco-editor .diff-hidden-lines-compact .text{opacity:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root{--stream-monaco-gutter-guide: var(--markstream-diff-gutter-guide) !important;--stream-monaco-gutter-gap: var(--markstream-diff-gutter-gap) !important;--stream-monaco-line-number: var(--markstream-diff-line-number) !important;--stream-monaco-line-number-active: var(--markstream-diff-line-number-active) !important;--stream-monaco-added-fg: var(--markstream-diff-added-fg) !important;--stream-monaco-removed-fg: var(--markstream-diff-removed-fg) !important;--stream-monaco-added-line: var(--markstream-diff-added-line) !important;--stream-monaco-removed-line: var(--markstream-diff-removed-line) !important;--stream-monaco-added-inline: var(--markstream-diff-added-inline) !important;--stream-monaco-removed-inline: var(--markstream-diff-removed-inline) !important;--stream-monaco-added-inline-border: var(--markstream-diff-added-inline-border) !important;--stream-monaco-removed-inline-border: var(--markstream-diff-removed-inline-border) !important;--stream-monaco-added-line-fill: var(--markstream-diff-added-line-fill) !important;--stream-monaco-removed-line-fill: var(--markstream-diff-removed-line-fill) !important;--stream-monaco-added-gutter: var(--markstream-diff-added-gutter) !important;--stream-monaco-removed-gutter: var(--markstream-diff-removed-gutter) !important;--stream-monaco-added-line-shadow: none !important;--stream-monaco-removed-line-shadow: none !important;--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;box-sizing:border-box;min-width:0;width:100%}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .overflow-guard,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side),[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-editor,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .overflow-guard{min-width:0!important;width:100%!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .editor.modified .monaco-scrollable-element.editor-scrollable,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .editor.modified .monaco-scrollable-element.editor-scrollable{left:var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width))!important;width:calc(100% - var(--stream-monaco-modified-scrollable-left, var(--stream-monaco-modified-margin-width)))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.modified .view-lines .view-line.stream-monaco-line-insert-fill,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor .editor.original .view-lines .view-line.stream-monaco-line-delete-fill{width:1000000px!important}.code-block-container.is-diff[data-v-ef6e4bb8] .stream-monaco-fallback-inline-delete-line{box-sizing:border-box;padding-left:var(--stream-monaco-diff-code-padding, 0px)}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline .monaco-diff-editor .scrollbar.horizontal,[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-diff-editor:not(.side-by-side) .scrollbar.horizontal{display:none!important;height:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .view-lines.line-delete{margin-left:0!important;width:100%!important;background:var(--stream-monaco-removed-line-fill)!important;box-shadow:var(--stream-monaco-removed-line-shadow)!important;display:block!important;height:-moz-max-content!important;height:max-content!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .gutter-delete,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .inline-deleted-margin-view-zone,[data-v-ef6e4bb8] .stream-monaco-diff-root.stream-monaco-diff-inline.stream-monaco-diff-inline-native-ready.stream-monaco-diff-native-stale .monaco-diff-editor .editor.modified .stream-monaco-fallback-inline-delete-margin{background:var(--stream-monaco-removed-gutter),var(--stream-monaco-removed-line-fill)!important;display:block!important;height:100%!important;min-height:18px!important;overflow:visible!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .monaco-editor .diff-hidden-lines .center:not(.stream-monaco-unchanged-bridge-source),[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{--stream-monaco-unchanged-bg: var(--markstream-diff-unchanged-bg) !important;--stream-monaco-unchanged-fg: var(--markstream-diff-unchanged-fg) !important;background:var(--stream-monaco-unchanged-bg)!important;color:var(--stream-monaco-unchanged-fg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge{right:calc(var(--stream-monaco-gutter-marker-width) - var(--stream-monaco-unchanged-rail-width) / 2 + (var(--stream-monaco-gutter-gap) * 2))!important;width:auto!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-summary.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important;color:var(--markstream-diff-unchanged-fg)!important;padding-left:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important;padding-right:calc(var(--stream-monaco-gutter-marker-width) + (var(--stream-monaco-gutter-gap) * 2))!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge.stream-monaco-diff-unchanged-bridge-line-info .stream-monaco-unchanged-rail,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{background:var(--stream-monaco-unchanged-bg)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail{border-right-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal{border-bottom-color:transparent!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-both .stream-monaco-unchanged-reveal:first-child{border-bottom-color:var(--markstream-diff-unchanged-divider)!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-top-only .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-rail.stream-monaco-unchanged-rail-bottom-only .stream-monaco-unchanged-reveal{border-bottom:0!important}[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-meta,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-count,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-metadata-label,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:hover,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal:focus-visible,[data-v-ef6e4bb8] .stream-monaco-diff-root .stream-monaco-diff-unchanged-bridge .stream-monaco-unchanged-reveal.stream-monaco-focus-visible{color:var(--markstream-diff-unchanged-fg)!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center{align-items:center;justify-content:center}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center{align-items:center;justify-content:center!important;position:relative}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center:not(.stream-monaco-clickable){opacity:0!important;pointer-events:none!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.modified .diff-hidden-lines .center .stream-monaco-unchanged-meta{justify-content:center!important;padding:0 28px!important}[data-v-ef6e4bb8] .monaco-diff-editor:not(.side-by-side) .editor.original .diff-hidden-lines .center>div:first-child{align-items:center;display:flex;justify-content:center!important;min-width:100%;width:100%!important}[data-v-ef6e4bb8] .markstream-inline-fold-proxy{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:calc(var(--ms-radius) * .5);box-shadow:none;cursor:pointer;inset:0;padding:0;pointer-events:auto;position:absolute;z-index:2}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:hover,[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{background:transparent}[data-v-ef6e4bb8] .markstream-inline-fold-proxy:focus-visible{outline:1px solid var(--vscode-focusBorder, currentColor);outline-offset:-1px}.math-inline-wrapper[data-v-6c556261]{position:relative;display:inline-block}.math-inline[data-v-6c556261]{display:inline-block;vertical-align:middle}.math-inline--fallback[data-v-6c556261]{white-space:pre-wrap}.math-inline__loading[data-v-6c556261]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-6c556261]{width:16px;height:16px;border-radius:9999px;border:2px solid color-mix(in srgb,var(--loading-spinner) 25%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);will-change:transform}.table-node-fade-enter-active[data-v-6c556261],.table-node-fade-leave-active[data-v-6c556261]{transition:opacity var(--ms-duration-standard) var(--ms-ease-standard)}.table-node-fade-enter-from[data-v-6c556261],.table-node-fade-leave-to[data-v-6c556261]{opacity:0}.sr-only[data-v-6c556261]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-block[data-v-939191ad]{min-height:var(--ms-size-math-min-height);transition:min-height var(--ms-duration-overlay) var(--ms-ease-standard)}.math-loading-overlay[data-v-939191ad]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:var(--ms-size-math-min-height)}.math-loading-spinner[data-v-939191ad]{width:20px;height:20px;border:2px solid color-mix(in srgb,var(--loading-spinner) 15%,transparent);border-top-color:color-mix(in srgb,var(--loading-spinner) 80%,transparent);border-radius:50%;animation:math-spin-939191ad .8s linear infinite}@keyframes math-spin-939191ad{to{transform:rotate(360deg)}}.math-rendering[data-v-939191ad]{opacity:.3;transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.math-block__fallback[data-v-939191ad]{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.math-fade-enter-active[data-v-939191ad],.math-fade-leave-active[data-v-939191ad]{transition:all var(--ms-duration-slow) var(--ms-ease-standard)}.math-fade-enter-from[data-v-939191ad],.math-fade-leave-to[data-v-939191ad]{opacity:0}.action-icon{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot{display:inline-flex;align-items:center;justify-content:center}.icon-slot svg{display:block;width:100%;height:100%}.mermaid-block-container[data-v-73c385f8]{margin:var(--ms-flow-diagram-y) 0;border-color:var(--diagram-border)}.mermaid-block-header[data-v-73c385f8]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border)}.mermaid-label-text[data-v-73c385f8]{color:var(--code-action-fg)}.mermaid-mode-toggle-group[data-v-73c385f8]{background:transparent}.mermaid-mode-btn[data-v-73c385f8]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6}.mermaid-mode-btn[data-v-73c385f8]:hover{opacity:.9}.mermaid-mode-btn.is-active[data-v-73c385f8]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.mermaid-header-actions[data-v-73c385f8]{gap:var(--ms-gap-header-actions)}.mermaid-action-btn[data-v-73c385f8]{font-family:inherit;font-size:var(--ms-text-label);color:var(--code-action-fg)}.mermaid-action-btn[data-v-73c385f8]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.mermaid-action-btn[data-v-73c385f8]:active{transform:scale(.98)}.mermaid-source-panel[data-v-73c385f8]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.mermaid-source-code[data-v-73c385f8]{color:hsl(var(--ms-foreground))}.mermaid-preview-area[data-v-73c385f8]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-standard)}.mermaid-modal-overlay[data-v-73c385f8]{background:var(--modal-overlay)}.mermaid-modal-panel[data-v-73c385f8]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}._mermaid[data-v-73c385f8]{position:relative;font-family:inherit;content-visibility:auto;contain:content;contain-intrinsic-size:var(--ms-size-diagram-min-height) 240px}._mermaid[data-v-73c385f8] [data-mermaid-svg-layer]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;min-height:100%}._mermaid[data-v-73c385f8] svg{width:100%;height:auto;max-height:100%;display:block}.fullscreen ._mermaid[data-v-73c385f8] svg{max-height:none}.fullscreen[data-v-73c385f8]{width:100%;max-height:100%!important;height:100%!important}.mermaid-dialog-enter-from[data-v-73c385f8],.mermaid-dialog-leave-to[data-v-73c385f8]{opacity:0}.mermaid-dialog-enter-active[data-v-73c385f8],.mermaid-dialog-leave-active[data-v-73c385f8]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.mermaid-dialog-enter-from .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-to .dialog-panel[data-v-73c385f8]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-from .dialog-panel[data-v-73c385f8]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-73c385f8],.mermaid-dialog-leave-active .dialog-panel[data-v-73c385f8]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-block-container[data-v-de34ec4b]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.infographic-block-header[data-v-de34ec4b]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.infographic-label[data-v-de34ec4b]{font-size:var(--ms-text-label);color:hsl(var(--ms-muted-foreground))}.action-icon[data-v-de34ec4b]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.icon-slot[data-v-de34ec4b]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-de34ec4b] svg{display:block;width:100%;height:100%}.infographic-mode-toggle[data-v-de34ec4b]{background:transparent}.infographic-mode-btn[data-v-de34ec4b]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:color .15s,background-color .15s,opacity .15s}.infographic-mode-btn[data-v-de34ec4b]:hover{opacity:.9}.infographic-mode-btn.is-active[data-v-de34ec4b]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.infographic-header-actions[data-v-de34ec4b]{gap:var(--ms-gap-header-actions)}.infographic-action-btn[data-v-de34ec4b]{font-family:inherit;color:var(--code-action-fg);transition:background-color .15s,color .15s}.infographic-action-btn[data-v-de34ec4b]:hover{background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.infographic-action-btn[data-v-de34ec4b]:active{transform:scale(.98)}.infographic-source[data-v-de34ec4b]{padding:var(--ms-inset-panel-body);background:var(--diagram-bg)}.infographic-source-code[data-v-de34ec4b]{color:hsl(var(--ms-foreground))}.infographic-preview[data-v-de34ec4b]{background:var(--diagram-bg);min-height:var(--ms-size-diagram-min-height);transition-duration:var(--ms-duration-fast)}.infographic-pending-source[data-v-de34ec4b]{position:absolute;inset:0;z-index:1;margin:0;padding:var(--ms-inset-panel-body);overflow:auto;color:hsl(var(--ms-foreground));text-align:left;background:var(--diagram-bg)}.infographic-modal-overlay[data-v-de34ec4b]{background:var(--modal-overlay)}.infographic-modal-panel[data-v-de34ec4b]{background:var(--modal-bg);color:var(--modal-fg);box-shadow:var(--ms-shadow-modal)}.fullscreen[data-v-de34ec4b]{width:100%;max-height:100%!important;height:100%!important}.infographic-dialog-enter-from[data-v-de34ec4b],.infographic-dialog-leave-to[data-v-de34ec4b]{opacity:0}.infographic-dialog-enter-active[data-v-de34ec4b],.infographic-dialog-leave-active[data-v-de34ec4b]{transition:opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.infographic-dialog-enter-from .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-to .dialog-panel[data-v-de34ec4b]{transform:translateY(8px) scale(.98);opacity:.98}.infographic-dialog-enter-to .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-from .dialog-panel[data-v-de34ec4b]{transform:translateY(0) scale(1);opacity:1}.infographic-dialog-enter-active .dialog-panel[data-v-de34ec4b],.infographic-dialog-leave-active .dialog-panel[data-v-de34ec4b]{transition:transform var(--ms-duration-overlay) var(--ms-ease-standard),opacity var(--ms-duration-overlay) var(--ms-ease-standard)}.d2-block-container[data-v-3b434cf5]{margin:var(--ms-flow-diagram-y) 0;background:var(--diagram-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground));box-shadow:var(--ms-shadow-subtle)}.d2-block-header[data-v-3b434cf5]{padding:var(--ms-inset-panel-y) var(--ms-inset-panel-x);background:var(--diagram-header-bg);border-color:var(--diagram-border);color:hsl(var(--ms-foreground))}.d2-mode-toggle[data-v-3b434cf5]{background:transparent}.mode-btn[data-v-3b434cf5]{font-size:var(--ms-text-label);color:var(--code-action-fg);opacity:.6;transition:opacity .2s,color .2s,background-color .2s}.mode-btn[data-v-3b434cf5]:hover{opacity:.9}.mode-btn.is-active[data-v-3b434cf5]{background:hsl(var(--ms-foreground) / .08);color:var(--code-fg);opacity:1}.d2-header-actions[data-v-3b434cf5]{gap:var(--ms-gap-header-actions)}.d2-action-btn[data-v-3b434cf5]{color:var(--code-action-fg);opacity:.7;transition:opacity .2s,background-color .15s,color .15s}.d2-action-btn[data-v-3b434cf5]:hover{opacity:1;background:var(--code-action-hover-bg);color:var(--code-action-hover-fg)}.d2-action-btn[data-v-3b434cf5]:disabled{opacity:.3;cursor:not-allowed}.d2-block-body[data-v-3b434cf5]{position:relative}.d2-source[data-v-3b434cf5]{padding:var(--ms-inset-panel-body) var(--ms-inset-panel-x);font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.d2-code[data-v-3b434cf5]{white-space:pre;font-size:14px;line-height:1.5}.d2-render[data-v-3b434cf5]{max-height:var(--ms-size-code-max-height);overflow:auto}.d2-svg[data-v-3b434cf5] svg.markstream-d2-root-svg{width:100%;max-width:100%;height:auto;display:block}.d2-label[data-v-3b434cf5]{font-size:var(--ms-text-label)}.action-icon[data-v-3b434cf5]{width:var(--ms-action-btn-icon);height:var(--ms-action-btn-icon)}.d2-error[data-v-3b434cf5]{color:hsl(var(--ms-destructive))}.markstream-virtual-timeline[data-v-1303f06e]{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;overflow:auto;overflow-anchor:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__spacer[data-v-1303f06e],.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e]{opacity:0;visibility:hidden;pointer-events:none}.markstream-virtual-timeline.is-restoring-thread>.markstream-virtual-timeline__item[data-v-1303f06e],.markstream-virtual-timeline__item.is-restored-height-floor[data-v-1303f06e]{height:var(--markstream-virtual-item-size);overflow:hidden}.markstream-virtual-timeline__restore-loading[data-v-1303f06e]{position:absolute;top:0;left:0;right:0;z-index:10;display:grid;place-items:center;pointer-events:none;overflow:hidden;background:Canvas;contain:strict}.markstream-virtual-timeline__restore-loading-card[data-v-1303f06e]{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgb(148 163 184 / 32%);border-radius:999px;background:#ffffffeb;color:#334155;font-size:13px;box-shadow:0 8px 24px #0f172a14}.markstream-virtual-timeline__restore-spinner[data-v-1303f06e]{width:14px;height:14px;border:2px solid rgb(148 163 184 / 35%);border-top-color:#334155;border-radius:999px;animation:markstream-timeline-restore-spin-1303f06e .8s linear infinite}@keyframes markstream-timeline-restore-spin-1303f06e{to{transform:rotate(360deg)}}.markstream-virtual-timeline__spacer[data-v-1303f06e]{flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__item[data-v-1303f06e]{display:flow-root;flex:0 0 auto;overflow-anchor:none}.markstream-virtual-timeline__default-item[data-v-1303f06e]{margin:8px 0;padding:10px 12px;border:1px solid rgb(148 163 184 / 32%);border-radius:8px;background:#f8fafc;color:#0f172a;line-height:1.5;white-space:pre-wrap}.markstream-virtual-timeline__default-item--system-divider[data-v-1303f06e]{border:0;background:transparent;color:#64748b;font-size:12px;text-align:center}.markstream-virtual-timeline__default-item--error[data-v-1303f06e]{border-color:#f8717173;background:#fef2f2;color:#991b1b}.markstream-virtual-timeline__status[data-v-1303f06e]{display:inline-flex;margin-right:8px;color:#475569;font-size:12px;text-transform:uppercase}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.17.0"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.md[data-v-4a3beed4]{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text);word-break:break-word}.md[data-v-4a3beed4] .markdown-renderer{font:400 var(--content-font-size)/1.6 var(--font-ui);line-height:round(calc(var(--content-font-size) * 1.625),1px);color:var(--color-text)}.md[data-v-4a3beed4] .markstream-vue,.md[data-v-4a3beed4] .markdown-renderer{--code-bg: var(--color-surface-sunken);--code-fg: var(--color-text);--code-border: var(--color-line);--code-header-bg: var(--color-surface);--code-action-fg: var(--color-text-muted);--code-action-hover-fg: var(--color-accent);--markstream-code-fallback-bg: var(--color-surface-sunken);--markstream-code-fallback-fg: var(--color-text);--markstream-code-border-color: var(--color-line);--inline-code-bg: var(--color-inline-code-bg);--inline-code-fg: var(--color-text);--inline-code-border: transparent}.md[data-v-4a3beed4] .md-file-link{appearance:none;display:inline;border:0;padding:0;background:transparent;color:var(--color-accent-hover);font:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}.md[data-v-4a3beed4] .md-file-link:hover{color:var(--color-accent)}.md[data-v-4a3beed4] .inline-code .md-file-link{text-underline-offset:1.5px}.md[data-v-4a3beed4] .markdown-renderer p,.md[data-v-4a3beed4] .markdown-renderer li{font-size:var(--content-font-size);line-height:round(calc(var(--content-font-size) * 1.625),1px)}.md[data-v-4a3beed4] .markdown-renderer blockquote,.md[data-v-4a3beed4] .markdown-renderer td,.md[data-v-4a3beed4] .markdown-renderer th{font-size:var(--md-b2)}.md[data-v-4a3beed4] .markdown-renderer img{background:var(--media-alpha-canvas)}.md[data-v-4a3beed4] strong{color:color-mix(in srgb,var(--color-text) 86%,var(--color-text-muted));font-weight:var(--weight-semibold)}.md[data-v-4a3beed4] h1,.md[data-v-4a3beed4] h2,.md[data-v-4a3beed4] h3,.md[data-v-4a3beed4] h4{color:var(--color-text);font-optical-sizing:auto;font-weight:600;margin:.85em 0 .35em}.md[data-v-4a3beed4] h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px);border-bottom:1px solid var(--color-line);padding-bottom:4px}.md[data-v-4a3beed4] h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.md[data-v-4a3beed4] h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.md[data-v-4a3beed4] h4{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px);color:var(--color-text-muted)}.md[data-v-4a3beed4] p{margin:0}.md[data-v-4a3beed4] .node-slot+.node-slot{margin-top:var(--content-font-size)}.md[data-v-4a3beed4] .node-slot+.node-slot:has(h1),.md[data-v-4a3beed4] .node-slot+.node-slot:has(h2){margin-top:calc(var(--content-font-size) * 2)}.md[data-v-4a3beed4] .node-slot+.node-slot:has(h3),.md[data-v-4a3beed4] .node-slot+.node-slot:has(h4){margin-top:calc(var(--content-font-size) * 1.5)}.md[data-v-4a3beed4] ul,.md[data-v-4a3beed4] ol{--md-dot: round(calc(var(--content-font-size) * .375), 1px);list-style:none;margin:0;padding-left:calc(var(--content-font-size) * 2)}.md[data-v-4a3beed4] li{position:relative;margin:0;padding:0}.md[data-v-4a3beed4] li+li{margin-top:round(calc(var(--content-font-size) * .75),1px)}.md[data-v-4a3beed4] li>ul,.md[data-v-4a3beed4] li>ol{margin-top:round(calc(var(--content-font-size) * .75),1px);padding-left:calc(var(--content-font-size) * 1.5)}.md[data-v-4a3beed4] ul>li:before{content:"";position:absolute;left:calc((var(--md-dot) + var(--content-font-size) * 2) / -2);top:calc((round(calc(var(--content-font-size) * 1.625),1px) - var(--md-dot)) / 2);width:var(--md-dot);height:var(--md-dot);border-radius:50%;background:color-mix(in srgb,var(--color-text) 90%,transparent)}.md[data-v-4a3beed4] ul>li:has(>input[type=checkbox]):before,.md[data-v-4a3beed4] ul>li:has(>p>input[type=checkbox]):before{content:none}.md[data-v-4a3beed4] ul ul>li:before{background:transparent;border:1px solid color-mix(in srgb,var(--color-text) 90%,transparent);box-sizing:border-box}.md[data-v-4a3beed4] ol{counter-reset:md-ol}.md[data-v-4a3beed4] ol[start],.md[data-v-4a3beed4] ol:has(>li[value]){counter-reset:none;list-style:decimal}.md[data-v-4a3beed4] ol[start]>li,.md[data-v-4a3beed4] ol:has(>li[value])>li{counter-increment:none}.md[data-v-4a3beed4] ol[start]>li:before,.md[data-v-4a3beed4] ol:has(>li[value])>li:before{content:none}.md[data-v-4a3beed4] ol>li{counter-increment:md-ol}.md[data-v-4a3beed4] ol>li:before{content:counter(md-ol) ".";position:absolute;top:0;left:calc(var(--content-font-size) * -2);width:calc(var(--content-font-size) * 2);line-height:round(calc(var(--content-font-size) * 1.625),1px);text-align:center;color:var(--color-text)}.md[data-v-4a3beed4] :not(pre)>code,.md[data-v-4a3beed4] .inline-code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);color:var(--color-text);border:0;padding:0 4px;border-radius:var(--radius-sm)}.md[data-v-4a3beed4] strong code,.md[data-v-4a3beed4] strong .inline-code,.md[data-v-4a3beed4] b code,.md[data-v-4a3beed4] b .inline-code{font-weight:var(--weight-semibold)}.md[data-v-4a3beed4] .code-block-container{margin:.6em 0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow:hidden;--vscode-editor-font-size: var(--text-sm);--vscode-editor-line-height: calc(var(--text-sm) * 1.65)}.md[data-v-4a3beed4] .code-block-header{background:var(--color-surface);border-bottom:.5px solid var(--color-line);padding:4px 6px 4px 12px;color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-4a3beed4] .code-block-header *{color:var(--color-text-muted);font:var(--text-xs) var(--font-ui)}.md[data-v-4a3beed4] .code-block-header .code-header-main{font-family:var(--font-ui)}.md[data-v-4a3beed4] .code-block-header .code-action-btn{color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.md[data-v-4a3beed4] .code-block-header .code-action-btn:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-4a3beed4] .code-block-header .code-action-btn:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-4a3beed4] .code-block-header .code-action-btn *{pointer-events:none}.md[data-v-4a3beed4] .code-block-shell-content,.md[data-v-4a3beed4] .markstream-pre{background:var(--color-well)}.md[data-v-4a3beed4] .code-editor-container{line-height:1.65;--diffs-gap-block: var(--space-3)}.md[data-v-4a3beed4] .code-editor-container diffs-container{--diffs-line-height: 1.65em}.md[data-v-4a3beed4] .code-pre-fallback>.markstream-pre__line-numbers{display:none}.md[data-v-4a3beed4] .code-block-container .code-pre-fallback{padding-left:1ch;line-height:1.65!important}.md[data-v-4a3beed4] .code-block-container pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers),.md[data-v-4a3beed4] .markstream-pre:not(.code-pre-fallback):not(.markstream-pre--line-numbers){margin:0;padding:12px 14px;overflow-x:auto;font:var(--text-sm)/1.65 var(--font-mono)}.md[data-v-4a3beed4] .code-block-container pre code{font:inherit;color:var(--color-text);background:none;border:none;padding:0;border-radius:0}.md[data-v-4a3beed4] .markstream-pre,.md[data-v-4a3beed4] .code-pre-fallback,.md[data-v-4a3beed4] .code-block-shell-content pre:not(.shiki),.md[data-v-4a3beed4] .code-block-shell-content pre:not(.shiki) code{color:var(--color-text)}.md[data-v-4a3beed4] a{color:var(--color-accent);text-decoration:none}.md[data-v-4a3beed4] a:hover{text-decoration:underline}.md[data-v-4a3beed4] a.mention-pill{color:var(--color-text-muted);text-decoration:none}.md[data-v-4a3beed4] a.mention-folder:hover{text-decoration:none}.md[data-v-4a3beed4] .katex-display{overflow-x:auto;overflow-y:hidden;padding:2px 0 6px;margin:.6em 0}.md[data-v-4a3beed4] .math-inline{vertical-align:baseline}.md[data-v-4a3beed4] blockquote{position:relative;margin:0;padding:0 0 0 round(calc(var(--content-font-size) * 1.5),1px);border-left:none;color:var(--color-text)}.md[data-v-4a3beed4] blockquote:before{content:"";position:absolute;left:calc(round(calc(var(--content-font-size) * 1.5),1px)/2 - 1px);top:2px;bottom:2px;width:2px;border-radius:2px;background:var(--color-line)}.md[data-v-4a3beed4] .blockquote>.paragraph-node{margin:0}.md[data-v-4a3beed4] .blockquote>.paragraph-node+.paragraph-node{margin-top:var(--content-font-size)}.md[data-v-4a3beed4] hr{border:none;border-top:1px solid var(--color-line);margin:0}.md[data-v-4a3beed4] table:not(.table-node){border-collapse:collapse;font-size:var(--text-lg);margin:.5em 0}.md[data-v-4a3beed4] table:not(.table-node) th,.md[data-v-4a3beed4] table:not(.table-node) td{border:1px solid var(--color-line);padding:4px 10px;text-align:left}.md[data-v-4a3beed4] table:not(.table-node) th{background:var(--color-surface);color:var(--color-text);font-weight:var(--weight-medium)}.md[data-v-4a3beed4] .table-node-wrapper{width:100%;max-width:100%!important;min-width:0;overflow-x:auto!important;scrollbar-gutter:auto!important;position:relative;--table-cell-cap: var(--p-table-cell-max)}.md[data-v-4a3beed4] .table-node{--table-border: var(--color-line);--table-header-bg: var(--color-surface);font-size:var(--text-lg);margin:.5em 0;width:max-content!important;min-width:100%;max-width:none!important;table-layout:auto!important}.md[data-v-4a3beed4] .table-node th,.md[data-v-4a3beed4] .table-node td{text-align:left;vertical-align:top;max-width:var(--table-cell-cap)}.md[data-v-4a3beed4] .table-node .text-node{display:inline-block;max-width:var(--table-cell-cap);vertical-align:top}.md[data-v-4a3beed4] .md-table-fade{display:none;position:absolute;top:0;bottom:0;right:0;width:36px;z-index:1;background:linear-gradient(to right,transparent,color-mix(in srgb,var(--color-bg) 65%,transparent) 55%,var(--color-bg));pointer-events:none;transition:opacity var(--duration-base) var(--ease-out)}.md[data-v-4a3beed4] .md-table-at-end .md-table-fade{opacity:0}.md[data-v-4a3beed4] .md-table-toggle{display:none;position:absolute;top:6px;right:6px;z-index:2;align-items:center;justify-content:center;width:26px;height:26px;color:var(--color-text-muted);background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);cursor:pointer;opacity:0;transition:opacity var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}@container (min-width: 760px){.md[data-v-4a3beed4] .md-table-fade.md-table-toggle--show,.md[data-v-4a3beed4] .md-table-toggle.md-table-toggle--show{display:block}.md[data-v-4a3beed4] .md-table-toggle.md-table-toggle--show{display:inline-flex}}.md[data-v-4a3beed4] .table-node-wrapper:hover .md-table-toggle.md-table-toggle--show,.md[data-v-4a3beed4] .table-node-wrapper:focus-within .md-table-toggle.md-table-toggle--show,.md[data-v-4a3beed4] .table-node-wrapper.md-table-wide .md-table-toggle.md-table-toggle--show{opacity:1}.md[data-v-4a3beed4] .md-table-toggle:hover{background:var(--color-surface-sunken);color:var(--color-text)}.md[data-v-4a3beed4] .md-table-toggle:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md[data-v-4a3beed4] .md-table-toggle svg{display:block}.md[data-v-4a3beed4] .table-node tbody tr:hover{background-color:transparent!important}.md-frontmatter[data-v-4a3beed4]{margin:0 0 var(--space-2);padding:var(--space-3) var(--space-4);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);box-shadow:var(--shadow-xs);overflow-x:auto;color:var(--color-text-muted);font:var(--text-sm)/1.65 var(--font-mono)}.diff-wrap[data-v-4a3beed4]{margin:.6em 0;border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-surface-sunken);box-shadow:var(--shadow-xs);overflow:hidden}.diff-bar[data-v-4a3beed4]{display:flex;align-items:center;gap:6px;padding:4px 12px;background:var(--color-surface);border-bottom:1px solid var(--color-line);color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.diff-lang[data-v-4a3beed4]{margin-right:auto}.diff-copy[data-v-4a3beed4]{display:inline-flex;align-items:center;justify-content:center;color:var(--color-text-muted);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;padding:2px 6px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.diff-copy[data-v-4a3beed4]:hover{background:var(--color-surface-sunken);color:var(--color-text)}.diff-copy[data-v-4a3beed4]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.diff-pre[data-v-4a3beed4]{margin:0;padding:12px 0;overflow-x:auto;background:var(--color-surface-sunken)}.diff-pre code[data-v-4a3beed4]{display:block;width:max-content;min-width:100%;font:var(--text-sm)/1.65 var(--font-mono);color:var(--color-text)}.diff-line[data-v-4a3beed4]{display:block;width:100%;padding:0 14px}.diff-sign[data-v-4a3beed4]{display:inline-block;width:14px;text-align:center;color:var(--color-text-muted);user-select:none}.diff-text[data-v-4a3beed4]{color:var(--color-text)}.diff-add[data-v-4a3beed4]{background:var(--color-success-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-success) 55%,transparent)}.diff-add .diff-sign[data-v-4a3beed4]{color:var(--color-success)}.diff-del[data-v-4a3beed4]{background:var(--color-danger-soft);box-shadow:inset 2px 0 color-mix(in srgb,var(--color-danger) 55%,transparent)}.diff-del .diff-sign[data-v-4a3beed4]{color:var(--color-danger)}.diff-hunk[data-v-4a3beed4]{background:var(--color-surface)}.diff-hunk .diff-text[data-v-4a3beed4]{color:var(--color-text-muted)}.md[data-v-4a3beed4],.md .markdown-renderer[data-v-4a3beed4]{font-family:var(--sans)}.md .code-block-container[data-v-4a3beed4],.md .diff-wrap[data-v-4a3beed4]{border-radius:var(--radius-md)}.md :not(pre)>code[data-v-4a3beed4],.md .inline-code[data-v-4a3beed4]{border-radius:var(--radius-sm)}.plan-glyph[data-v-8dff80a1]{display:inline-flex;align-items:center}.plan-path[data-v-8dff80a1]{display:block;max-width:100%;margin:0 0 var(--space-2);padding:0;overflow:hidden;border:none;background:transparent;color:var(--color-accent);font-family:var(--font-mono);font-size:var(--text-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-8dff80a1]:hover{text-decoration:underline}.plan-path[data-v-8dff80a1]:focus-visible{outline:none;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.plan-content[data-v-8dff80a1]{padding:var(--space-3);border:1px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);color:var(--color-text)}.plan-review[data-v-8dff80a1]{display:flex;flex-direction:column;gap:var(--space-1);margin-top:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-normal)}.plan-review>div[data-v-8dff80a1]{display:flex;align-items:baseline;gap:var(--space-2)}.review-label[data-v-8dff80a1]{flex:none;color:var(--color-text-faint)}.review-feedback[data-v-8dff80a1]{white-space:pre-wrap}.path-link[data-v-0edbdd82]{display:block;width:100%;border:none;border-radius:var(--radius-xs);background:transparent;padding:0 0 var(--space-1);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);color:var(--color-text-muted);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.path-link[data-v-0edbdd82]:hover{color:var(--color-accent);text-decoration:underline;text-underline-offset:3px}.path-link[data-v-0edbdd82]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.swarm-card[data-v-f7b643ea]{margin:0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--duration-base) var(--ease-out)}.swarm-card.err[data-v-f7b643ea]{border-color:color-mix(in srgb,var(--color-danger) 45%,var(--bg))}.head[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.head[data-v-f7b643ea]:hover{background:var(--color-hover);color:var(--color-text)}.head[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ic[data-v-f7b643ea]{color:var(--color-text-faint);flex:none}.title[data-v-f7b643ea]{font-weight:var(--weight-medium);color:var(--color-text);flex:none}.meta[data-v-f7b643ea]{color:var(--color-text-faint);flex:none}.sum-txt[data-v-f7b643ea]{color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.rt[data-v-f7b643ea]{margin-left:auto;display:flex;align-items:center;gap:var(--space-2);flex:none;color:var(--color-text-muted);font-size:var(--text-xs)}.status[data-v-f7b643ea]{display:inline-flex;align-items:center;flex:none}.status[data-v-f7b643ea]:has(>svg){color:var(--color-success)}.err .status[data-v-f7b643ea]:has(>svg){color:var(--color-danger)}.chip[data-v-f7b643ea]{color:var(--color-text-muted);font-family:var(--font-mono)}.tm[data-v-f7b643ea]{color:var(--color-text-faint);font-family:var(--font-mono)}.car[data-v-f7b643ea]{margin-left:2px;color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.swarm-card.open .car[data-v-f7b643ea]{transform:rotate(90deg)}.body[data-v-f7b643ea]{border-top:.5px solid var(--color-line)}.overview[data-v-f7b643ea]{padding:10px var(--space-3) var(--space-2);border-bottom:.5px solid var(--color-line)}.overview-line[data-v-f7b643ea]{display:flex;align-items:baseline;gap:var(--space-2)}.big[data-v-f7b643ea]{font-family:var(--font-mono);font-weight:var(--weight-medium);color:var(--color-text);font-size:15px}.lbl[data-v-f7b643ea]{color:var(--color-text-muted);font-size:var(--text-xs)}.seg[data-v-f7b643ea]{display:flex;height:5px;border-radius:var(--radius-full);overflow:hidden;margin:var(--space-2) 0 var(--space-1);gap:2px}.seg>span[data-v-f7b643ea]{height:100%;border-radius:var(--radius-full);min-width:3px}.s-ok[data-v-f7b643ea]{background:var(--color-success)}.s-run[data-v-f7b643ea]{background:var(--color-accent)}.s-warn[data-v-f7b643ea]{background:var(--color-warning)}.s-fail[data-v-f7b643ea]{background:var(--color-danger)}.s-queue[data-v-f7b643ea]{background:var(--color-line)}.legend[data-v-f7b643ea]{display:flex;flex-wrap:wrap;gap:10px}.legend span[data-v-f7b643ea]{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted)}.lg-dot[data-v-f7b643ea]{width:6px;height:6px;border-radius:var(--radius-full)}.member[data-v-f7b643ea]{border-bottom:.5px solid var(--color-line)}.member[data-v-f7b643ea]:last-child{border-bottom:none}.member-head[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:30px;padding:0 var(--space-2) 0 var(--space-3);border:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);text-align:left;cursor:pointer;user-select:none}.member-head[data-v-f7b643ea]:not(:disabled):hover{background:var(--color-hover)}.member-head[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.member-head[data-v-f7b643ea]:disabled{cursor:default}.row-dot[data-v-f7b643ea]{flex:none}.mname[data-v-f7b643ea]{flex:none;min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-medium);color:var(--color-text)}.mact[data-v-f7b643ea]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font-size:var(--text-xs)}.mphase[data-v-f7b643ea]{flex:none;margin-left:auto;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.phase-completed .mphase[data-v-f7b643ea]{color:var(--color-success)}.phase-failed .mphase[data-v-f7b643ea]{color:var(--color-danger)}.phase-working .mphase[data-v-f7b643ea]{color:var(--color-accent)}.phase-suspended .mphase[data-v-f7b643ea]{color:var(--color-warning)}.mcar[data-v-f7b643ea]{margin-left:var(--space-1);color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.member.open .mcar[data-v-f7b643ea]{transform:rotate(90deg)}.member-saved[data-v-f7b643ea]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) var(--space-3);border:none;border-top:.5px solid var(--color-line);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-xs);text-align:left;cursor:pointer}.member-saved[data-v-f7b643ea]:hover{color:var(--color-text-muted)}.member-saved[data-v-f7b643ea]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.member-saved-car[data-v-f7b643ea]{transition:transform var(--duration-base) var(--ease-out)}.member-saved-car.open[data-v-f7b643ea]{transform:rotate(90deg)}.member-body[data-v-f7b643ea]{padding:var(--space-1) var(--space-3) 10px 31px;color:var(--color-text-muted);font-size:calc(var(--content-font-size) - 2px);line-height:1.65;white-space:pre-wrap;word-break:break-word}.waiting[data-v-f7b643ea]{padding:6px var(--space-3) 10px;color:var(--color-text-muted);font-size:var(--text-xs)}.fallback-output[data-v-f7b643ea]{padding:10px var(--space-3);color:var(--color-text);font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;white-space:pre-wrap;word-break:break-word}.status-glyph[data-v-f1aedfd0]{flex:none;width:16px;display:inline-flex;align-items:center;justify-content:center;user-select:none}.status-glyph.s-run[data-v-f1aedfd0]{color:var(--color-accent)}.status-glyph.s-done[data-v-f1aedfd0]{color:var(--color-success)}.status-glyph.s-fail[data-v-f1aedfd0]{color:var(--color-danger)}.status-glyph.s-pending[data-v-f1aedfd0]{color:var(--color-text-faint)}.todo-bar[data-v-1b7f51f3]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.todo-fill[data-v-1b7f51f3]{background:var(--color-success);border-radius:var(--radius-full);transition:width var(--duration-slow) var(--ease-out)}.todo-list[data-v-1b7f51f3]{display:flex;flex-direction:column;gap:1px;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);padding:var(--space-2) var(--space-3);max-height:calc(12 * 1.6 * var(--content-font-size));overflow-y:auto;overscroll-behavior:contain}.todo-row[data-v-1b7f51f3]{display:flex;align-items:center;gap:7px;padding:2px 0;font-size:calc(var(--content-font-size) - 1px);color:var(--color-text)}.todo-title[data-v-1b7f51f3]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}.todo-row.s-in_progress .todo-title[data-v-1b7f51f3]{font-weight:var(--weight-medium)}.todo-row.s-done .todo-title[data-v-1b7f51f3]{color:var(--color-text-faint);text-decoration:line-through}.wf-glance[data-v-256015f8]{margin-bottom:var(--space-1)}.wf-main[data-v-256015f8]{color:var(--color-text);font-size:var(--text-sm);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.wf-sub[data-v-256015f8]{color:var(--color-text-muted);font-size:var(--text-xs);line-height:var(--leading-prose);white-space:pre-wrap;word-break:break-word}.fetch-url[data-v-8c248fcc]{font-family:var(--font-mono);font-size:calc(var(--content-font-size) - 2px);line-height:1.6;color:var(--color-text-faint);white-space:pre-wrap;word-break:break-all;margin-bottom:var(--space-1)}.think[data-v-980ffe0e]{margin:0}.think-head[data-v-980ffe0e]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-1) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.think-head[data-v-980ffe0e]:hover{color:var(--color-text)}.think-head[data-v-980ffe0e]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.think-bulb[data-v-980ffe0e]{flex:none}.think-title[data-v-980ffe0e]{font-weight:var(--weight-medium)}.think-time[data-v-980ffe0e]{color:var(--color-text-faint);font-weight:400;flex:none}.think.streaming .think-title[data-v-980ffe0e]{animation:think-breathe-980ffe0e 1.6s var(--ease-in-out) infinite}@keyframes think-breathe-980ffe0e{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.think.streaming .think-title[data-v-980ffe0e]{animation:none}}.think-car[data-v-980ffe0e]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.think.open .think-car[data-v-980ffe0e]{transform:rotate(90deg)}.think-body[data-v-980ffe0e]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.think-body.instant[data-v-980ffe0e]{transition:none}.think-body.open[data-v-980ffe0e]{grid-template-rows:minmax(0,1fr)}.think-body-inner[data-v-980ffe0e]{min-height:0;overflow:hidden}.think-text[data-v-980ffe0e]{font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word;margin:0;padding:var(--space-1) 0 var(--space-2)}.mob .think-text[data-v-980ffe0e]{color:var(--color-text-faint);line-height:var(--leading-normal)}.activity-run[data-v-45842de9]{display:flex;flex-direction:column;animation:kimi-card-in var(--duration-base) var(--ease-out)}.ar-head[data-v-45842de9]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.ar-head[data-v-45842de9]:hover{color:var(--color-text)}.ar-head.is-static[data-v-45842de9],.ar-head.is-static[data-v-45842de9]:hover{cursor:default;color:var(--color-text-faint)}.ar-head[data-v-45842de9]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.ar-glyph[data-v-45842de9]{display:inline-flex;align-items:center;flex:none;color:var(--color-text-faint)}.ar-glyph.ok[data-v-45842de9]{color:var(--color-success)}.ar-glyph.err[data-v-45842de9]{color:var(--color-danger)}.ar-glyph.run[data-v-45842de9]{color:var(--color-text-muted);animation:ar-breathe-45842de9 1.6s var(--ease-in-out) infinite}@keyframes ar-breathe-45842de9{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.ar-glyph.run[data-v-45842de9]{animation:none}}.ar-sum[data-v-45842de9]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.ar-danger[data-v-45842de9]{color:var(--color-danger)}.ar-faint[data-v-45842de9],.ar-sep[data-v-45842de9]{color:var(--color-text-faint)}.ar-car[data-v-45842de9]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.activity-run.open .ar-car[data-v-45842de9]{transform:rotate(90deg)}.ar-body[data-v-45842de9]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.ar-body.open[data-v-45842de9]{grid-template-rows:minmax(0,1fr)}.ar-body-inner[data-v-45842de9]{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:var(--space-2);padding-top:var(--space-1)}.msg-time[data-v-9153170e]{display:inline-flex;align-items:center;min-height:22px;box-sizing:border-box;padding:2px 5px;border-radius:var(--radius-sm);color:var(--muted);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;opacity:.7;white-space:nowrap}.ntf-list[data-v-010c7307]{display:flex;flex-direction:column;align-items:flex-end;gap:var(--space-3);margin:var(--space-2) 0}.ntn[data-v-010c7307]{margin-left:auto;max-width:var(--p-bubble-max);display:flex;flex-direction:column;align-items:flex-end}.ntn-head[data-v-010c7307]{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.ntn-ico[data-v-010c7307]{flex:none}.ntn.ok .ntn-ico[data-v-010c7307]{color:var(--color-success)}.ntn.err .ntn-ico[data-v-010c7307]{color:var(--color-danger)}.ntn.warn .ntn-ico[data-v-010c7307]{color:var(--color-warning)}.ntn-bubble[data-v-010c7307]{box-sizing:border-box;max-width:100%;padding:var(--space-2) var(--space-3);background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.ntn-line+.ntn-line[data-v-010c7307]{margin-top:var(--space-1)}.ntn-out[data-v-010c7307]{display:flex;align-items:center;gap:var(--space-2);background:var(--color-surface-raised);border-radius:var(--radius-md);padding:var(--space-1) var(--space-2);box-shadow:var(--shadow-xs);white-space:normal}.ntn-out-ic[data-v-010c7307]{color:var(--color-text-faint);flex:none}.ntn-out-path[data-v-010c7307]{flex:1;min-width:0;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}.ntn-out-size[data-v-010c7307]{flex:none;font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint)}.ntn-out-copy[data-v-010c7307]{display:inline-flex;align-items:center;height:var(--space-6);padding:0 var(--space-2);border-radius:var(--radius-full);font-size:var(--text-xs);color:var(--color-text-muted);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;transition:color var(--duration-fast) var(--ease-out)}.ntn-out-copy[data-v-010c7307]:hover{color:var(--color-text)}.ntn-preview-cap[data-v-010c7307]{font-size:var(--text-xs);color:var(--color-text-faint);margin-bottom:var(--space-05)}.ntn-preview-text[data-v-010c7307]{margin:0;font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}.ntn-meta[data-v-010c7307]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}.ntn-raw[data-v-010c7307]{max-width:100%}.ntn-raw summary[data-v-010c7307]{list-style:none;display:flex;align-items:center;gap:var(--space-1);cursor:pointer;font-size:var(--text-xs);color:var(--color-text-faint);user-select:none}.ntn-raw summary[data-v-010c7307]::-webkit-details-marker{display:none}.ntn-raw summary[data-v-010c7307]:hover{color:var(--color-text)}.ntn-raw-car[data-v-010c7307]{transition:transform var(--duration-base) var(--ease-out)}.ntn-raw[open] .ntn-raw-car[data-v-010c7307]{transform:rotate(90deg)}.ntn-raw-in[data-v-010c7307]{margin-top:var(--space-1);display:flex;flex-direction:column;gap:var(--space-2)}.ntn-raw-fields[data-v-010c7307]{display:grid;grid-template-columns:auto 1fr;gap:var(--space-1) var(--space-3)}.ntn-raw-fields .k[data-v-010c7307]{color:var(--color-text-faint);font-size:var(--text-xs)}.ntn-raw-fields .v[data-v-010c7307]{color:var(--color-text-muted);font-size:var(--text-xs);font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntn-raw-pre[data-v-010c7307]{margin:0;padding:var(--space-2) var(--space-3);background:var(--color-surface-raised);border-radius:var(--radius-sm);box-shadow:var(--shadow-xs);font-family:var(--font-mono);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);white-space:pre;overflow:auto;max-width:100%;max-height:13lh}.turn-fold[data-v-ce1eb651]{display:flex;flex-direction:column}.tf-head[data-v-ce1eb651]{display:flex;align-items:center;gap:var(--space-1);width:100%;padding:var(--space-2) 0;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);line-height:1;text-align:left;cursor:pointer;user-select:none;transition:color var(--duration-base) var(--ease-out)}.tf-head[data-v-ce1eb651]:hover{color:var(--color-text)}.tf-head[data-v-ce1eb651]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-accent-soft)}.tf-sum[data-v-ce1eb651]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-regular)}.tf-car[data-v-ce1eb651]{color:var(--color-text-faint);flex:none;transition:transform var(--duration-base) var(--ease-out)}.turn-fold.open .tf-car[data-v-ce1eb651]{transform:rotate(90deg)}.tf-body[data-v-ce1eb651]{display:grid;grid-template-rows:minmax(0,0fr);overflow:hidden;transition:grid-template-rows var(--duration-base) var(--ease-out)}.tf-body.open[data-v-ce1eb651]{grid-template-rows:minmax(0,1fr)}.tf-body-inner[data-v-ce1eb651]{min-height:0;overflow:hidden;display:flex;flex-direction:column}.tf-body-inner>.msg[data-v-ce1eb651],.tf-body-inner[data-v-ce1eb651]>.think,.tf-body-inner[data-v-ce1eb651]>.tool-group,.tf-body-inner[data-v-ce1eb651]>.activity-run,.tf-body-inner[data-v-ce1eb651]>.agent-card,.tf-body-inner[data-v-ce1eb651]>.agent-group,.tf-body-inner[data-v-ce1eb651]>.tool-line,.tf-body-inner[data-v-ce1eb651]>.swarm-card,.tf-body-inner[data-v-ce1eb651]>.media-tool,.tf-body-inner[data-v-ce1eb651]>.ask-receipt{margin-top:var(--chat-block-gap)}.turn-fold.streaming .tf-body-inner>.msg[data-v-ce1eb651]:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.think:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.tool-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.activity-run:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.agent-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.agent-group:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.tool-line:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.swarm-card:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.media-tool:first-child,.turn-fold.streaming .tf-body-inner[data-v-ce1eb651]>.ask-receipt:first-child{margin-top:0}.tf-body-inner .msg[data-v-ce1eb651]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:var(--weight-medium)}.tf-body-inner .msg[data-v-ce1eb651] p{margin:0}.tf-body-inner .msg[data-v-ce1eb651] p+p{margin-top:var(--space-2)}@container (min-width: 760px){.tf-body-inner .msg[data-v-ce1eb651] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.tf-body-inner .msg[data-v-ce1eb651] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.tf-body-inner .msg[data-v-ce1eb651] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.turn-files[data-v-f37da416]{margin-top:var(--chat-block-gap)}.turn-files[data-v-f37da416] .ui-card__head{font-family:var(--font-ui);font-weight:var(--weight-regular);padding:var(--space-2) var(--space-3)}.turn-files[data-v-f37da416] .ui-card__body{padding:var(--space-1) var(--space-3)}.turn-files[data-v-f37da416] .ui-card__foot{padding:0;justify-content:stretch}.tf-ic[data-v-f37da416]{display:inline-flex;align-items:center;color:var(--color-text-faint);flex:none}.tf-title[data-v-f37da416]{font-size:var(--text-sm);color:var(--color-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-stats[data-v-f37da416]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.tf-add[data-v-f37da416],.tf-del[data-v-f37da416]{font-family:var(--font-mono);font-size:var(--text-xs);flex:none}.tf-add[data-v-f37da416]{color:var(--color-success)}.tf-del[data-v-f37da416]{color:var(--color-danger)}.tf-list[data-v-f37da416]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.tf-row[data-v-f37da416]{display:flex;align-items:center;gap:var(--space-1);min-width:0;padding:var(--space-1) 0;font-size:var(--text-sm);line-height:var(--leading-tight)}.tf-file[data-v-f37da416]{display:flex;align-items:baseline;border:none;border-radius:var(--radius-xs);background:transparent;padding:0;font-family:inherit;font-size:inherit;color:var(--color-text);flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-align:left}button.tf-file[data-v-f37da416]{cursor:pointer}button.tf-file[data-v-f37da416]:hover{text-decoration:underline;text-decoration-color:var(--color-text-faint);text-underline-offset:3px}.tf-file[data-v-f37da416]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tf-dir[data-v-f37da416]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tf-base[data-v-f37da416]{flex:none;font-weight:var(--weight-medium);color:var(--color-text)}.tf-more[data-v-f37da416]{width:100%;justify-content:flex-start;border-radius:0}.turn-files .tf-more[data-v-f37da416]:not(:disabled):active{transform:none}.tf-more-car[data-v-f37da416]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.tf-more-car.open[data-v-f37da416]{transform:rotate(180deg)}.diffbar[data-v-f37da416]{display:inline-flex;width:36px;height:3px;border-radius:var(--radius-full);overflow:hidden;flex:none}.seg-add[data-v-f37da416]{background:var(--color-success)}.seg-del[data-v-f37da416]{background:var(--color-danger)}.activity-notice[data-v-cc29061f]{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin:0;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.cn[data-v-9f79345d]{margin:0;align-self:flex-end;max-width:78%;display:flex;flex-direction:column;align-items:flex-end}.cn-head[data-v-9f79345d]{align-self:flex-end;display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal);overflow-wrap:anywhere}.cn-head-ico[data-v-9f79345d]{flex:none}.cn-head.error .cn-head-ico[data-v-9f79345d]{color:var(--color-danger)}.cn-bubble[data-v-9f79345d]{box-sizing:border-box;max-width:100%;padding:10px 12px;background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);color:var(--color-text);font-size:var(--content-font-size);line-height:var(--leading-normal);white-space:pre-wrap;overflow-wrap:anywhere}.cn-meta[data-v-9f79345d]{margin-top:var(--space-1);padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-base);line-height:var(--leading-normal)}/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}.pswp{--pswp-root-z-index: var(--z-modal);--pswp-bg: var(--color-scrim-strong)}.media-preview-caption{position:absolute;left:0;right:0;bottom:var(--space-4);padding:0 var(--space-6);color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.media-lightbox[data-v-c59e1983]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:var(--color-scrim-strong)}.media-lightbox-card[data-v-c59e1983]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);max-width:min(960px,calc(100vw - var(--space-6) * 2));max-height:calc(var(--app-height, 100vh) - var(--space-6) * 2)}.media-lightbox-frame[data-v-c59e1983]{max-width:100%;border-radius:var(--radius-md);overflow:hidden;background:var(--color-bg);box-shadow:var(--shadow-xl)}.media-lightbox-media[data-v-c59e1983]{display:block;max-width:100%;max-height:calc(var(--app-height, 100vh) - var(--space-6) * 4);object-fit:contain}.media-lightbox-name[data-v-c59e1983]{max-width:100%;color:var(--color-text-on-scrim);font-size:var(--ui-font-size-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox-close[data-v-c59e1983]{position:fixed;top:var(--space-4);right:var(--space-6);display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text);box-shadow:var(--shadow-sm);cursor:pointer;z-index:var(--z-modal-dropdown)}.media-lightbox-close[data-v-c59e1983]:before{content:"";position:absolute;inset:-6px}.media-lightbox-close[data-v-c59e1983]:hover{border-color:var(--color-line-strong);background:var(--color-surface-sunken)}.media-thumb[data-v-16b8c78d]{position:relative;flex:none;display:inline-flex}.media-thumb-btn[data-v-16b8c78d]{display:block;padding:0;border:.5px solid var(--color-line);border-radius:var(--radius-md);background:var(--color-well);overflow:hidden;cursor:pointer;transition:border-color var(--duration-fast) ease}.media-thumb-btn[data-v-16b8c78d]:hover{border-color:var(--color-line-strong)}.media-thumb-btn[data-v-16b8c78d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.media-thumb-media[data-v-16b8c78d]{display:block;width:64px;height:64px;object-fit:cover}.media-thumb-tile[data-v-16b8c78d]{object-fit:none}.media-thumb-badge[data-v-16b8c78d]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--color-surface-raised);border:.5px solid var(--color-line);color:var(--color-text);box-shadow:var(--shadow-sm);pointer-events:none}.media-thumb-badge.is-error[data-v-16b8c78d]{color:var(--color-danger);border-color:var(--color-danger-bd)}.media-thumb.is-error .media-thumb-btn[data-v-16b8c78d]{border-color:var(--color-danger-bd)}.media-thumb-rm[data-v-16b8c78d]{position:absolute;top:var(--space-1);right:var(--space-1);z-index:1;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:var(--color-scrim);color:var(--color-text-on-scrim);cursor:pointer}.media-thumb-rm[data-v-16b8c78d]:hover{background:var(--color-text);color:var(--color-bg)}.media-thumb-rm[data-v-16b8c78d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.att-chip[data-v-37de1632]{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 9px 4px var(--att-chip-pad-left, 5px);background:var(--color-well);border:.5px solid var(--color-line);border-radius:999px;font-size:var(--ui-font-size-sm);transition:border-color var(--duration-fast) ease}.att-chip[data-v-37de1632]:hover{border-color:var(--color-line-strong)}.att-activate[data-v-37de1632]{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer}.att-activate[data-v-37de1632]:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:999px}.att-tile[data-v-37de1632]{width:20px;height:20px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--color-text-muted);background:var(--color-surface-sunken)}.att-tile[data-v-37de1632] .att-thumb{width:100%;height:100%;object-fit:cover;display:block}.att-name[data-v-37de1632]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.att-chip.is-error[data-v-37de1632]{border-color:var(--color-danger-bd)}.att-chip.is-error .att-err[data-v-37de1632]{flex:none;display:flex;align-items:center;color:var(--color-danger)}.att-rm[data-v-37de1632]{flex:none;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--color-text-faint);cursor:pointer}.att-rm[data-v-37de1632]:hover{background:var(--color-hover);color:var(--color-text)}.att-rm[data-v-37de1632]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mascot-host[data-v-27600ac7]{position:relative;width:100%;aspect-ratio:72 / 100}.mascot-fallback[data-v-27600ac7]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:86.5%;height:auto}.mascot-canvas[data-v-27600ac7]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.mascot-canvas.ready[data-v-27600ac7]{opacity:1}@media(prefers-reduced-motion:reduce){.mascot-canvas[data-v-27600ac7]{transition:none}}.working-indicator[data-v-8abb44ef]{display:inline-flex;align-items:center;gap:var(--space-2);align-self:flex-start;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text-muted)}.wi-mascot[data-v-8abb44ef]{flex:none;width:40px}.wi-label[data-v-8abb44ef]{animation:wi-breathe-8abb44ef 1.6s var(--ease-in-out) infinite}@keyframes wi-breathe-8abb44ef{0%,to{opacity:1}50%{opacity:.45}}.chat-empty[data-v-765caf09]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 16px;color:var(--faint);text-align:center}.chat-empty-text[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat-loading[data-v-765caf09]{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:24px 16px;color:var(--muted)}.chat-loading-text[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat[data-v-765caf09]{--chat-turn-gap: 16px;--chat-block-gap: 10px;--chat-section-gap: 18px;display:flex;flex-direction:column;gap:0;padding:16px 14px 20px;flex:1;min-height:0;position:relative}.chat .chat-empty[data-v-765caf09]{align-self:stretch}.open-unsupported[data-v-765caf09]{position:absolute;bottom:16px;left:50%;transform:translate(-50%);max-width:min(90%,480px);padding:6px 12px;border-radius:var(--radius-md);border:.5px solid var(--color-line);background:var(--color-surface-raised);color:var(--color-text-muted);font-size:var(--ui-font-size-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;z-index:var(--z-sticky)}.chat>.u-turn[data-v-765caf09],.chat>.a-msg[data-v-765caf09],.chat>.compact-divider[data-v-765caf09],.chat>.cron-notice[data-v-765caf09],.chat>.sending-placeholder[data-v-765caf09],.chat[data-v-765caf09]>.activity-notice{margin-top:var(--chat-turn-gap)}.chat>.a-msg[data-v-765caf09]{margin-top:10px}.chat>.u-turn[data-v-765caf09]:first-child,.chat>.a-msg[data-v-765caf09]:first-child,.chat>.compact-divider[data-v-765caf09]:first-child,.chat>.cron-notice[data-v-765caf09]:first-child,.chat>.sending-placeholder[data-v-765caf09]:first-child,.chat[data-v-765caf09]>.activity-notice:first-child{margin-top:0}.u-turn[data-v-765caf09]{display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;width:100%}.u-bub[data-v-765caf09]{align-self:flex-end;max-width:78%;background:var(--color-user-bubble-bg);color:var(--color-text);border-radius:var(--radius-lg);padding:10px 12px;font-size:var(--content-font-size);line-height:var(--leading-normal)}.u-meta[data-v-765caf09]{align-self:flex-end;display:flex;justify-content:flex-end;align-items:center;max-width:78%;margin-top:var(--space-2);margin-right:4px}.u-meta .u-edit[data-v-765caf09]{min-height:22px;box-sizing:border-box}.u-text[data-v-765caf09]{white-space:pre-wrap;overflow-wrap:anywhere}.u-text-wrap[data-v-765caf09]{position:relative;display:flex;flex-direction:column}.u-text-wrap-args[data-v-765caf09]{margin-top:var(--space-1)}.u-text-wrap.is-clamped[data-v-765caf09]{min-width:120px}.u-text-wrap.is-clamped>.u-text[data-v-765caf09],.u-text-wrap.is-clamped>.skill-act-args[data-v-765caf09]{max-height:10lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 5lh),transparent calc(100% - 1lh))}.u-text-wrap.is-clamped>.q-body[data-v-765caf09]{max-height:3lh;overflow:hidden;mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh));-webkit-mask-image:linear-gradient(to bottom,black calc(100% - 1.2lh),transparent calc(100% - .2lh))}.u-text-toggle[data-v-765caf09]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:center;margin-top:var(--space-2);padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-full);background:var(--color-surface-raised);box-shadow:var(--shadow-sm);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);line-height:1;cursor:pointer;user-select:none;transition:box-shadow var(--duration-base) var(--ease-out)}.u-text-toggle[data-v-765caf09]:hover{box-shadow:var(--shadow-md)}.u-text-toggle[data-v-765caf09]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.u-text-wrap.is-clamped .u-text-toggle[data-v-765caf09]{position:absolute;bottom:0;left:50%;transform:translate(-50%);margin-top:0}.u-text-toggle-car[data-v-765caf09]{transition:transform var(--duration-base) var(--ease-out)}.u-text-toggle[aria-expanded=true] .u-text-toggle-car[data-v-765caf09]{transform:rotate(180deg)}.u-edit[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s}.u-edit svg[data-v-765caf09]{display:block;flex:none}.u-edit[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-armed[data-v-765caf09]{--undo-hint-duration: 5s;gap:var(--space-1);opacity:1;color:var(--color-text);animation:u-edit-armed-blink-765caf09 var(--undo-hint-duration) linear forwards}.u-edit-armed[data-v-765caf09]:hover{color:var(--color-accent);background:var(--hover)}.u-edit-hint[data-v-765caf09]{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-medium);white-space:nowrap}@keyframes u-edit-armed-blink-765caf09{0%,55%{opacity:1}62%{opacity:.45}69%{opacity:1}75%{opacity:.4}81%{opacity:.95}86%{opacity:.35}91%{opacity:.85}95%{opacity:.3}to{opacity:0}}@media(prefers-reduced-motion:reduce){.u-edit-armed[data-v-765caf09]{animation:none}}.u-copy[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.u-copy svg[data-v-765caf09]{display:block;flex:none}.u-copy[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.u-edit-wrap[data-v-765caf09]{display:flex;justify-content:flex-end}.chat>.u-edit-wrap[data-v-765caf09]{margin-top:4px}.chat>.u-edit-wrap+.a-msg[data-v-765caf09]{margin-top:8px}.compact-divider[data-v-765caf09]{display:flex;align-items:center;gap:10px;align-self:stretch;width:100%;margin:var(--chat-section-gap) 0 0}.chat>.compact-divider[data-v-765caf09]:first-child{margin-top:0}.cd-line[data-v-765caf09]{flex:1;height:1px;background:var(--line)}.cd-label[data-v-765caf09]{flex:none;display:inline-flex;align-items:center;gap:8px;max-width:80%;font-size:var(--text-base);color:var(--muted);white-space:nowrap}.cd-btn[data-v-765caf09]{background:none;border:none;padding:0;cursor:pointer;font:inherit;font-size:var(--text-base);color:var(--muted)}.cd-view[data-v-765caf09]{color:var(--color-accent)}.cd-btn:hover .cd-view[data-v-765caf09]{text-decoration:underline}.chat>.turn-failed[data-v-765caf09]{margin-top:var(--chat-turn-gap)}.chat>.turn-failed[data-v-765caf09]:first-child{margin-top:0}.turn-failed[data-v-765caf09]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:var(--p-hairline) solid var(--color-danger-bd);border-radius:var(--radius-lg);background:var(--color-danger-soft);box-shadow:var(--shadow-xs);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tf-chip[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;width:var(--space-6);height:var(--space-6);border-radius:var(--radius-md);background:var(--color-surface-raised);box-shadow:var(--shadow-xs);flex:none;color:var(--color-danger)}.tf-main[data-v-765caf09]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.tf-title[data-v-765caf09]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);line-height:var(--leading-normal)}.tf-sub[data-v-765caf09]{font-size:var(--text-xs);color:var(--color-text-muted);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf-meta[data-v-765caf09]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal-prov[data-v-765caf09]{display:flex;align-items:center;gap:var(--space-1);margin-bottom:var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);line-height:var(--leading-normal);user-select:none}.a-msg[data-v-765caf09]{align-self:flex-start;max-width:94%;width:94%}.a-msg-ft[data-v-765caf09]{display:flex;justify-content:flex-start;align-items:center;gap:8px;height:auto;margin-top:var(--chat-block-gap);overflow:visible}.a-time[data-v-765caf09]{display:inline-flex;align-items:center;font-size:var(--text-base);color:var(--muted);line-height:1}.a-cpbtn[data-v-765caf09]{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;background:none;border:none;border-radius:var(--radius-sm);color:var(--muted);font:inherit;font-size:var(--text-base);line-height:1;cursor:pointer;opacity:.7;transition:opacity .12s,color .12s,background-color .12s;min-height:22px;box-sizing:border-box}.a-cpbtn[data-v-765caf09]:hover{opacity:1;color:var(--color-accent);background:var(--hover)}.a-cpbtn svg[data-v-765caf09]{display:block;flex:none}@media(hover:none){.a-msg-ft[data-v-765caf09]{height:auto;margin-top:var(--chat-block-gap);opacity:1;pointer-events:auto}.a-cpbtn[data-v-765caf09]{font-size:var(--ui-font-size-sm);padding:8px 10px;margin:-4px -6px}}.a-msg .msg[data-v-765caf09]{font-size:var(--ui-font-size);line-height:var(--leading-prose);color:var(--color-text);font-weight:500}.a-msg .msg[data-v-765caf09] p{margin:0}.a-msg .msg[data-v-765caf09] p+p{margin-top:8px}.a-msg>.msg[data-v-765caf09],.a-msg[data-v-765caf09]>.think,.a-msg[data-v-765caf09]>.tool-group,.a-msg[data-v-765caf09]>.activity-run,.a-msg[data-v-765caf09]>.agent-card,.a-msg[data-v-765caf09]>.agent-group,.a-msg[data-v-765caf09]>.tool-line,.a-msg[data-v-765caf09]>.swarm-card,.a-msg[data-v-765caf09]>.media-tool,.a-msg[data-v-765caf09]>.ask-receipt{margin-top:var(--chat-block-gap)}.a-msg>.msg[data-v-765caf09]:first-child,.a-msg[data-v-765caf09]>.think:first-child,.a-msg[data-v-765caf09]>.tool-group:first-child,.a-msg[data-v-765caf09]>.activity-run:first-child,.a-msg[data-v-765caf09]>.agent-card:first-child,.a-msg[data-v-765caf09]>.agent-group:first-child,.a-msg[data-v-765caf09]>.tool-line:first-child,.a-msg[data-v-765caf09]>.swarm-card:first-child,.a-msg[data-v-765caf09]>.media-tool:first-child,.a-msg[data-v-765caf09]>.ask-receipt:first-child{margin-top:0}.a-msg>.goal-prov:first-child+.msg[data-v-765caf09],.a-msg>.goal-prov[data-v-765caf09]:first-child+.think,.a-msg>.goal-prov[data-v-765caf09]:first-child+.tool-group,.a-msg>.goal-prov[data-v-765caf09]:first-child+.activity-run,.a-msg>.goal-prov[data-v-765caf09]:first-child+.agent-card,.a-msg>.goal-prov[data-v-765caf09]:first-child+.agent-group,.a-msg>.goal-prov[data-v-765caf09]:first-child+.tool-line,.a-msg>.goal-prov[data-v-765caf09]:first-child+.swarm-card,.a-msg>.goal-prov[data-v-765caf09]:first-child+.media-tool,.a-msg>.goal-prov[data-v-765caf09]:first-child+.ask-receipt,.a-msg>.goal-prov[data-v-765caf09]:first-child+.turn-fold{margin-top:0}.a-msg[data-v-765caf09] :not(pre)>code{font:.9em var(--font-mono);background:var(--color-inline-code-bg);border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:1px 6px;color:var(--color-accent-hover)}@container (min-width: 760px){.a-msg .msg[data-v-765caf09] .markstream-vue.markdown-renderer:has(.table-node-wrapper.md-table-wide){content-visibility:visible}.a-msg .msg[data-v-765caf09] .table-node-wrapper.md-table-wide{position:relative;left:50%;width:max-content;min-width:100%;max-width:min(var(--p-table-max),calc(100cqi - var(--space-5) - var(--space-5)))!important;transform:translate(-50%)}.a-msg .msg[data-v-765caf09] .table-node-wrapper:not(.md-table-wide){--table-cell-cap: min(var(--p-table-cell-max), 36cqi)}}.u-media[data-v-765caf09]{display:flex;flex-wrap:wrap;gap:var(--space-2)}.u-media[data-v-765caf09]:not(:last-child){margin-bottom:var(--space-2)}.u-atts[data-v-765caf09]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sending-placeholder[data-v-765caf09]{align-self:flex-start;padding:10px 0}.skill-act[data-v-765caf09]{display:flex;flex-direction:column;gap:2px}.skill-act-head[data-v-765caf09]{font-size:var(--ui-font-size-sm);font-weight:500;color:var(--color-accent-hover);display:flex;align-items:center;gap:6px}.skill-act-arrow[data-v-765caf09]{color:var(--color-accent);font-size:var(--text-base)}.skill-act-args[data-v-765caf09]{font-size:var(--text-base);color:var(--muted);padding-left:17px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.chat[data-v-765caf09]{box-sizing:border-box;width:100%;padding:14px max(12px,var(--safe-right)) 18px max(12px,var(--safe-left))}.u-bub[data-v-765caf09]{max-width:min(88%,calc(100vw - 52px))}.a-msg[data-v-765caf09]{width:100%;max-width:100%}.a-msg[data-v-765caf09] .md,.a-msg[data-v-765caf09] .markdown-renderer,.a-msg[data-v-765caf09] .code-block-container,.a-msg[data-v-765caf09] .diff-wrap,.a-msg[data-v-765caf09] pre{max-width:100%}.a-msg[data-v-765caf09] .code-block-container pre,.a-msg[data-v-765caf09] .diff-pre{overflow-x:auto;-webkit-overflow-scrolling:touch}.a-msg[data-v-765caf09] .media-tool.mob{width:min(44vw,160px)}.cd-label[data-v-765caf09]{min-width:0;max-width:calc(100% - 48px);overflow:hidden;text-overflow:ellipsis}.u-edit-confirm[data-v-765caf09]{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 28px)}.ts[data-v-765caf09]{font-size:var(--ui-font-size-sm)}.chat-empty-text[data-v-765caf09],.chat-loading-text[data-v-765caf09]{font-size:var(--ui-font-size-lg)}.cd-label[data-v-765caf09],.cd-btn[data-v-765caf09]{font-size:var(--ui-font-size)}}.top-sentinel[data-v-765caf09]{display:flex;align-items:center;justify-content:center;padding:12px 0;min-height:28px;user-select:none}.top-sentinel-loading[data-v-765caf09]{opacity:.8}.top-sentinel-btn[data-v-765caf09]{appearance:none;border:.5px solid var(--border);background:transparent;color:var(--muted);font-size:var(--ui-font-size-sm);padding:4px 12px;border-radius:999px;cursor:pointer;transition:color .15s ease,border-color .15s ease}.top-sentinel-btn[data-v-765caf09]:hover{color:var(--fg);border-color:var(--fg)}.top-sentinel-text[data-v-765caf09]{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--ui-font-size-sm)}.chat[data-v-765caf09]{background:transparent}.chat[data-v-765caf09]{gap:0;padding:22px 20px 26px}.u-bub[data-v-765caf09]{background:var(--color-user-bubble-bg);border-radius:var(--radius-lg);padding:10px 12px}.a-msg[data-v-765caf09]{max-width:100%;width:100%}.chat>.q-stack[data-v-765caf09]{margin-top:var(--chat-turn-gap)}.chat>.q-stack[data-v-765caf09]:first-child{margin-top:0}.q-stack[data-v-765caf09]{align-self:flex-end;width:100%;display:flex;flex-direction:column;gap:8px}.q-head[data-v-765caf09]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 6px;color:var(--color-text-faint);font-size:var(--ui-font-size-xs)}.q-title[data-v-765caf09]{display:inline-flex;align-items:center;gap:6px}.q-title b[data-v-765caf09]{color:var(--color-accent-hover);font-weight:var(--weight-medium)}.q-turn[data-v-765caf09]{position:relative;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--space-2)}.q-send[data-v-765caf09]{flex:none;width:var(--space-6);height:var(--space-6);display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-accent);color:var(--color-text-on-accent);box-shadow:var(--shadow-xs);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.q-send[data-v-765caf09]:hover{background:var(--color-accent-hover)}.q-send[data-v-765caf09]:active{transform:scale(.92)}.q-send[data-v-765caf09]:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px}.q-send svg[data-v-765caf09]{display:block;flex:none}.q-bub[data-v-765caf09]{display:flex;align-items:center;gap:8px;width:fit-content;background:var(--color-user-bubble-bg);padding:8px 8px 8px 6px;transition:background var(--duration-fast) var(--ease-out)}.q-bub[data-v-765caf09]:hover{background:var(--hover)}.q-grip[data-v-765caf09]{flex:none;display:inline-flex;align-items:center;padding:2px;color:var(--color-text-faint);cursor:grab;opacity:.7}.q-grip[data-v-765caf09]:hover{opacity:1}.q-grip[data-v-765caf09]:active{cursor:grabbing}.q-clamp[data-v-765caf09]{flex:1;min-width:0}.q-body[data-v-765caf09]{flex:1;min-width:0;background:none;border:none;padding:0;margin:0;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;opacity:.82}.q-bub:hover .q-body[data-v-765caf09]{opacity:1}.q-body[data-v-765caf09]:disabled{cursor:default}.q-text[data-v-765caf09]{white-space:pre-wrap;overflow-wrap:anywhere}.q-text-placeholder[data-v-765caf09]{display:inline-flex;align-items:center;gap:4px;color:var(--color-text-muted)}.q-imgs[data-v-765caf09]{display:flex;gap:4px;flex:none}.q-img[data-v-765caf09]{width:28px;height:28px;object-fit:cover;border-radius:var(--radius-sm);border:.5px solid var(--color-line)}.q-file[data-v-765caf09]{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px;border-radius:var(--radius-sm);border:.5px solid var(--color-line);color:var(--color-text-muted);font-size:calc(var(--ui-font-size) - 3px);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-rm[data-v-765caf09]{flex:none;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease,color .12s ease}.q-bub:hover .q-rm[data-v-765caf09],.q-bub:focus-within .q-rm[data-v-765caf09],.q-rm[data-v-765caf09]:focus-visible{opacity:1}.q-rm[data-v-765caf09]:hover{background:var(--color-danger-soft);color:var(--color-danger)}.q-edit[data-v-765caf09]{display:none;flex:none;width:22px;height:22px;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--color-text-faint);cursor:pointer}.q-edit[data-v-765caf09]:hover{background:var(--color-hover);color:var(--color-text)}@media(hover:none){.q-grip[data-v-765caf09]{display:none}.q-edit[data-v-765caf09]{display:inline-flex}.q-rm[data-v-765caf09],.q-edit[data-v-765caf09]{opacity:1;position:relative}.q-rm[data-v-765caf09]:before,.q-edit[data-v-765caf09]:before{content:"";position:absolute;inset:-11px}}.q-turn.q-dragging .q-bub[data-v-765caf09]{opacity:.45}.q-turn.drop-before[data-v-765caf09]:before,.q-turn.drop-after[data-v-765caf09]:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--color-accent);border-radius:var(--radius-full);z-index:1}.q-turn.drop-before[data-v-765caf09]:before{top:-5px}.q-turn.drop-after[data-v-765caf09]:after{bottom:-5px}.chat-header[data-v-2fde3f1e]{flex:none;display:flex;align-items:center;gap:14px;height:var(--panel-head-h, 48px);padding:0 16px;border-bottom:.5px solid var(--color-line);background:var(--color-bg);font-family:var(--font-ui);min-width:0;user-select:none;container-type:inline-size}.chat-header.macos-desktop[data-v-2fde3f1e]{-webkit-app-region:drag}.chat-header.macos-desktop button[data-v-2fde3f1e],.chat-header.macos-desktop input[data-v-2fde3f1e]{-webkit-app-region:no-drag}.ch-id[data-v-2fde3f1e]{display:flex;align-items:center;gap:6px;min-width:0;flex:none;max-width:46%}.ch-ws[data-v-2fde3f1e]{color:var(--color-text-muted);font-size:var(--text-base);font-weight:var(--weight-medium);flex:none}.ch-sep[data-v-2fde3f1e]{color:var(--color-text-faint);flex:none}.ch-ses[data-v-2fde3f1e]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-rename[data-v-2fde3f1e]{flex:1;min-width:0;font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);background:var(--color-bg);border:.5px solid var(--color-accent);border-radius:var(--radius-xs);padding:2px 5px;outline:none;user-select:text}.ch-git[data-v-2fde3f1e]{display:flex;align-items:center;gap:4px;border:none;background:transparent;padding:0;color:var(--muted);font-family:var(--font-ui);font-size:calc(var(--ui-font-size) - 2px);flex:0 1 auto;max-width:none;min-width:0;cursor:pointer}.ch-git:hover .ch-branch[data-v-2fde3f1e]{color:var(--color-text)}.ch-branch-icon[data-v-2fde3f1e]{flex:none;color:var(--color-text-muted)}.ch-branch[data-v-2fde3f1e]{color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}.ch-detached[data-v-2fde3f1e]{color:var(--muted);font-style:italic}.ch-pill[data-v-2fde3f1e]{display:inline-flex;align-items:center;gap:3px;padding:1px 5px;border-radius:999px;background:var(--panel);border:.5px solid var(--line);font-size:calc(var(--ui-font-size) - 3px)}.ch-sync-pill[data-v-2fde3f1e]{border-color:var(--line)}.ch-diff-pill[data-v-2fde3f1e]{border-color:color-mix(in srgb,var(--color-success) 20%,var(--line));font-variant-numeric:tabular-nums}.ch-ahead[data-v-2fde3f1e]{color:var(--color-warning);flex:none}.ch-behind[data-v-2fde3f1e]{color:var(--color-accent-hover);flex:none}.ch-add[data-v-2fde3f1e]{color:var(--color-success);flex:none}.ch-del[data-v-2fde3f1e]{color:var(--color-danger);flex:none}.ch-spacer[data-v-2fde3f1e]{flex:1;min-width:0}@container (max-width: 720px){.ch-ws[data-v-2fde3f1e],.ch-sep[data-v-2fde3f1e]{display:none}.ch-id[data-v-2fde3f1e]{flex:1;max-width:none}.ch-spacer[data-v-2fde3f1e]{flex:0}}.chat-header .ch-act-more[data-v-2fde3f1e]{width:24px;height:24px;border-radius:var(--radius-sm)}.chat-header .ch-act-more[data-v-2fde3f1e] svg{width:14px;height:14px}.ch-act-more.open[data-v-2fde3f1e]{background:var(--color-well);color:var(--color-text)}.ch-dev[data-v-2fde3f1e]{display:inline-flex;align-items:center;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-warning-bd);border-radius:var(--radius-full);background:var(--color-warning-soft);color:var(--color-warning);font-size:var(--text-xs);font-weight:500}.ch-pr[data-v-2fde3f1e]{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;flex:none;border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-well);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:500;cursor:pointer}.ch-pr svg[data-v-2fde3f1e]{flex:none}.ch-pr.pr-open[data-v-2fde3f1e]{color:var(--color-success);border-color:var(--color-success-bd);background:var(--color-success-soft)}.ch-pr.pr-merged[data-v-2fde3f1e]{color:var(--color-done);border-color:var(--color-done-bd);background:var(--color-done-soft)}.ch-pr.pr-closed[data-v-2fde3f1e]{color:var(--color-danger);border-color:var(--color-danger-bd);background:var(--color-danger-soft)}.ch-pr.pr-draft[data-v-2fde3f1e],.ch-pr.pr-unknown[data-v-2fde3f1e]{color:var(--color-text-muted);border-color:var(--color-line-strong);background:var(--color-well)}.ch-pr[data-v-2fde3f1e]:hover{border-color:var(--color-line-strong)}.ch-done-pill[data-v-2fde3f1e]{cursor:default}.ch-done-pill[data-v-2fde3f1e]:hover{border-color:var(--color-done-bd)}.ch-menu[data-v-2fde3f1e]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.menu-pop-enter-active[data-v-2fde3f1e]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-2fde3f1e]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-2fde3f1e],.menu-pop-leave-to[data-v-2fde3f1e]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}@media(max-width:980px){.ch-act-label[data-v-2fde3f1e]{display:none}}@media(max-width:640px){.chat-header[data-v-2fde3f1e]{display:none}}.slash-menu[data-menu-frame][data-v-ac34fe29]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.slash-menu.is-sheet[data-menu-frame][data-v-ac34fe29]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.slash-menu.is-sheet .slash-scroll[data-v-ac34fe29]{margin:0;padding:var(--space-1) var(--space-2)}.slash-menu.is-sheet .slash-item[data-v-ac34fe29]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.slash-scroll[data-v-ac34fe29]{max-height:var(--p-slash-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.slash-scroll[data-v-ac34fe29]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-ac34fe29]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.slash-menu:hover .scroll-thumb[data-v-ac34fe29]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-ac34fe29]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.slash-item[data-v-ac34fe29]{display:flex;align-items:baseline;gap:var(--space-2);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-b2);border-radius:var(--radius-menu-row)}.slash-item[data-v-ac34fe29]:hover{background:var(--color-hover)}.slash-item.active[data-v-ac34fe29]{background:var(--color-selected)}.slash-item+.slash-item[data-v-ac34fe29]{margin-top:var(--menu-rows-seam)}.slash-name[data-v-ac34fe29]{flex:none;max-width:60%;color:var(--color-text);font-weight:500;min-width:0;line-height:var(--leading-normal);overflow-wrap:anywhere}.slash-match[data-v-ac34fe29]{font-weight:var(--weight-semibold)}.slash-empty[data-v-ac34fe29]{padding:var(--space-1-5) var(--space-1);color:var(--color-text-muted)}@media(hover:none){.slash-item[data-v-ac34fe29]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.slash-desc[data-v-ac34fe29]{flex:1;min-width:0;color:var(--color-text-muted);font-size:var(--ui-b2);font-weight:var(--weight-regular);line-height:var(--leading-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-desc-match[data-v-ac34fe29]{font-weight:var(--weight-semibold)}@media(max-width:520px){.slash-item[data-v-ac34fe29]{flex-direction:column;align-items:stretch;gap:var(--space-05)}.slash-name[data-v-ac34fe29]{max-width:none}}.mention-menu[data-menu-frame][data-v-8b392586]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;padding:var(--space-1-5) var(--space-3);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);z-index:var(--z-dropdown)}.mention-menu.is-sheet[data-menu-frame][data-v-8b392586]{position:static;padding:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;box-shadow:none;z-index:auto}.mention-menu.is-sheet .mention-scroll[data-v-8b392586]{margin:0;padding:var(--space-1) var(--space-2)}.mention-menu.is-sheet .mention-item[data-v-8b392586]{margin:0;padding-left:var(--space-2);padding-right:var(--space-2)}.mention-menu.is-sheet .mention-state[data-v-8b392586]{padding-left:var(--space-4)}.mention-scroll[data-v-8b392586]{max-height:var(--p-mention-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none}.mention-scroll[data-v-8b392586]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-8b392586]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);cursor:default;touch-action:none;z-index:var(--z-raised)}.mention-menu:hover .scroll-thumb[data-v-8b392586]{background:var(--color-menu-scrollbar-hover)}.scroll-thumb[data-v-8b392586]:before{content:"";position:absolute;top:0;bottom:0;left:calc(-1 * var(--space-2));right:0}.mention-state[data-v-8b392586]{padding:var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--ui-b2)}.mention-spin[data-v-8b392586]{position:absolute;top:var(--space-2);right:var(--space-3);color:var(--color-text-muted);z-index:var(--z-raised)}.dim[data-v-8b392586]{color:var(--color-text-muted)}.mention-item[data-v-8b392586]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);border-radius:var(--radius-menu-row)}.mention-icon[data-v-8b392586]{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);flex-shrink:0}.mention-icon[data-v-8b392586] svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-item:hover .mention-icon[data-v-8b392586],.mention-item.active .mention-icon[data-v-8b392586]{color:var(--color-text-strong)}.mention-item[data-v-8b392586]:hover{background:var(--color-hover)}.mention-item:hover .mention-name[data-v-8b392586],.mention-item.active .mention-name[data-v-8b392586]{color:var(--color-text-strong)}.mention-item.active[data-v-8b392586]{background:var(--color-selected)}.mention-item+.mention-item[data-v-8b392586]{margin-top:var(--menu-rows-seam)}.mention-item[data-v-8b392586]{transition:opacity var(--duration-slow) var(--ease-out)}.mention-item.stale[data-v-8b392586]{opacity:var(--opacity-stale)}@media(hover:none){.mention-item[data-v-8b392586]{min-height:var(--touch-target-min);padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.mention-name[data-v-8b392586]{color:var(--color-text);font-weight:500;flex-shrink:0}.mention-name .mention-hit[data-v-8b392586]{color:var(--color-text-strong);font-weight:var(--weight-semibold)}.mention-meta .mention-hit[data-v-8b392586]{color:var(--color-text)}.mention-meta[data-v-8b392586]{color:var(--color-text-muted);font-size:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-root[data-v-d719a5d1]{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;flex-direction:column;justify-content:flex-end}.sheet-scrim[data-v-d719a5d1]{position:absolute;inset:0;background:#0d111773}.sheet-panel[data-v-d719a5d1]{position:relative;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-bottom:none;border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:var(--shadow-xl);max-height:calc(var(--app-height, 100dvh) * .86);display:flex;flex-direction:column;min-height:0;font-family:var(--font-ui);color:var(--color-text)}.sheet-grab[data-v-d719a5d1]{flex:none;align-self:center;width:56px;height:18px;padding:0;border:none;background:none;cursor:pointer;position:relative;margin-top:4px}.sheet-grab[data-v-d719a5d1]:after{content:"";position:absolute;left:50%;top:7px;transform:translate(-50%);width:38px;height:5px;border-radius:var(--radius-full);background:var(--color-line)}.sheet-head[data-v-d719a5d1]{flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px}.sheet-title[data-v-d719a5d1]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.sheet-body[data-v-d719a5d1]{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,var(--safe-bottom))}.sheet-enter-active[data-v-d719a5d1],.sheet-leave-active[data-v-d719a5d1]{transition:opacity var(--duration-slow) var(--ease-out)}.sheet-enter-active .sheet-panel[data-v-d719a5d1],.sheet-leave-active .sheet-panel[data-v-d719a5d1]{transition:transform var(--duration-slow) var(--ease-out)}.sheet-enter-from[data-v-d719a5d1],.sheet-leave-to[data-v-d719a5d1]{opacity:0}.sheet-enter-from .sheet-panel[data-v-d719a5d1],.sheet-leave-to .sheet-panel[data-v-d719a5d1]{transform:translateY(102%)}.composer[data-v-5a96480c]{padding:7px var(--dock-inline-right, 16px) 12px var(--dock-inline-left, 16px);background:transparent;transition:background .12s}.composer.drag-over[data-v-5a96480c]{background:var(--color-accent-soft)}.drop-overlay[data-v-5a96480c]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--color-bg) 72%,transparent);pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--duration-base) ease,visibility var(--duration-base)}.drop-overlay.show[data-v-5a96480c]{opacity:1;visibility:visible}.drop-card[data-v-5a96480c]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6);border-radius:var(--radius-lg);border:.5px dashed var(--color-accent);background:var(--color-bg);color:var(--color-accent);font-size:var(--ui-font-size-lg);font-weight:var(--weight-medium);box-shadow:var(--shadow-md)}.composer-card[data-v-5a96480c]{--composer-control-size: var(--space-8);--composer-send-size: var(--composer-control-size);--composer-control-inset: var(--space-2);--composer-valve-floor: 4em;--composer-valve-expand-margin: 3.4em;position:relative;border:.5px solid var(--color-composer-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);background:var(--color-composer-bg);box-shadow:var(--shadow-input);user-select:none;container-type:inline-size}.composer-card[data-v-5a96480c]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-composer);corner-shape:var(--corner-shape-composer);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.composer-card[data-v-5a96480c]:focus-within:after{opacity:1}.att-strip[data-v-5a96480c]{position:relative;padding:calc(var(--space-4) + var(--space-05)) var(--space-4) 0 calc(var(--space-4) + var(--space-05))}.att-scroll[data-v-5a96480c]{max-height:calc(128px + var(--space-2));overflow-y:auto;margin-right:calc(var(--icon-button-sm) + var(--space-1))}.att-scroll-content[data-v-5a96480c]{display:flex;flex-direction:column;gap:var(--space-2);padding-right:var(--space-1)}.att-scroll.is-overflowing[data-v-5a96480c]{padding-bottom:var(--space-6)}.att-more[data-v-5a96480c]{position:absolute;left:var(--space-4);bottom:var(--space-1);z-index:var(--z-raised);display:inline-flex;align-items:center;height:18px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-full);background:var(--color-surface-raised);color:var(--color-text-muted);font-size:var(--text-xs);box-shadow:var(--shadow-sm);pointer-events:none}.att-row[data-v-5a96480c]{display:flex;flex-wrap:wrap;gap:6px}.att-row-media[data-v-5a96480c]{gap:var(--space-2)}.att-scroll-content[data-v-5a96480c] .att-chip{corner-shape:superellipse(1.5)}.att-scroll-content[data-v-5a96480c] .att-tile{margin-left:calc(-1 * (var(--att-chip-pad-left, 5px) + var(--space-05)))}.att-clear[data-v-5a96480c]{position:absolute;top:calc(var(--space-4) + var(--space-05));right:var(--space-4);z-index:var(--z-raised)}.file-input-hidden[data-v-5a96480c]{display:none}.cin-wrap[data-v-5a96480c]{position:relative;padding:14px 16px 8px}.input-row[data-v-5a96480c]{position:relative;display:flex;align-items:flex-start;gap:var(--space-2)}.expand-btn[data-v-5a96480c]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;color:var(--dim);cursor:pointer;padding:0;transition:background .12s,color .12s}.expand-btn[data-v-5a96480c]:hover{background:var(--panel2);color:var(--color-text)}.expand-btn[data-v-5a96480c]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.ph[data-v-5a96480c]{color:var(--faint);caret-color:var(--color-text);flex:1;border:none;outline:none;resize:none;font-family:var(--font-ui);font-size:var(--content-font-size);text-autospace:normal;background:transparent;min-height:36px;max-height:calc(var(--app-height, 100dvh) / 4);overflow-y:auto;scrollbar-width:none;line-height:1.5;margin-bottom:6px;user-select:text}.ph[data-v-5a96480c]::-webkit-scrollbar{display:none}.ph[data-v-5a96480c]::placeholder{color:var(--muted)}.ph[data-v-5a96480c]:not(:placeholder-shown){color:var(--color-text)}.composer.expanded .ph[data-v-5a96480c]{min-height:calc(var(--app-height, 100dvh) * .7);max-height:calc(var(--app-height, 100dvh) * .7)}.compact-chip[data-v-5a96480c]{height:var(--composer-control-size);padding:0 var(--space-2);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-warning);font-family:var(--mono);font-size:var(--ui-font-size);cursor:pointer;line-height:1;flex:none;transition:background var(--duration-base) var(--ease-out)}.compact-chip[data-v-5a96480c]:hover{background:var(--color-hover)}.composer-attach[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);border-radius:var(--radius-full);flex:none}.add-menu[data-v-5a96480c]{position:absolute;bottom:calc(100% + var(--space-2));left:0;right:0;z-index:var(--z-dropdown);background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1-5) var(--space-3);display:flex;flex-direction:column;gap:var(--menu-rows-seam);font-family:var(--font-ui);transform-origin:bottom left}.am-scroll[data-v-5a96480c]{max-height:var(--p-add-menu-h);margin:0 calc(-1 * var(--menu-row-hug));padding:0 var(--menu-row-hug);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:var(--menu-rows-seam)}.am-scroll[data-v-5a96480c]::-webkit-scrollbar{display:none}.scroll-thumb[data-v-5a96480c]{position:absolute;right:var(--menu-scrollbar-edge);width:var(--menu-scrollbar-width);border-radius:var(--radius-full);background:var(--color-menu-scrollbar);transition:background var(--duration-base) var(--ease-out);pointer-events:none;z-index:var(--z-raised)}.add-menu:hover .scroll-thumb[data-v-5a96480c]{background:var(--color-menu-scrollbar-hover)}.msheet-search[data-v-5a96480c]{padding:0 var(--space-4) var(--space-2)}.msheet-add[data-v-5a96480c]{display:flex;flex-direction:column;gap:var(--menu-rows-seam);padding:0 var(--menu-row-hug);font-family:var(--font-ui)}.am-row[data-v-5a96480c]{display:flex;align-items:center;gap:var(--menu-row-gap-icon);margin:0 calc(-1 * var(--menu-row-hug));padding:var(--menu-row-padding-block) var(--menu-row-padding-inline);border:none;border-radius:var(--radius-menu-row);background:none;cursor:pointer;font-size:var(--ui-font-size);color:var(--color-text);text-align:left;transition:background var(--duration-base) var(--ease-out)}.am-row[data-v-5a96480c]:hover{background:var(--color-hover)}.am-row[data-v-5a96480c]:focus-visible{background:var(--color-selected);outline:none}@media(hover:none){.am-row[data-v-5a96480c]{padding-top:var(--menu-row-touch-padding-block);padding-bottom:var(--menu-row-touch-padding-block)}}.am-row:hover .am-icon[data-v-5a96480c],.am-row:focus-visible .am-icon[data-v-5a96480c]{color:var(--color-text)}.am-icon[data-v-5a96480c]{flex:none;width:var(--p-ic-sm);display:flex;justify-content:center;color:var(--color-text-muted);transition:color var(--duration-base) var(--ease-out)}.am-name[data-v-5a96480c]{flex:none;font-weight:var(--weight-medium)}.am-desc[data-v-5a96480c]{margin-left:var(--space-1);color:var(--color-text-muted);font-size:var(--ui-font-size-sm)}.send[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-send-bg);color:var(--color-send-icon);border:none;box-shadow:var(--shadow-send);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background var(--duration-slow) var(--ease-out),transform var(--duration-fast) var(--ease-out),box-shadow var(--duration-slow) var(--ease-out);position:relative}.send[data-v-5a96480c]:hover:not(:disabled){background:var(--color-send-bg-hover);box-shadow:var(--shadow-send-hover)}.send[data-v-5a96480c]:active{transform:scale(.92)}.send[data-v-5a96480c]:disabled{cursor:not-allowed;background:var(--color-send-bg-disabled);color:var(--color-send-icon-disabled);opacity:var(--opacity-send-disabled)}.send[data-v-5a96480c]:disabled:active{transform:none}.send.is-starting[data-v-5a96480c]:disabled{background:var(--color-send-bg);color:var(--color-send-icon)}.send.is-starting[data-v-5a96480c] .ui-spinner{color:var(--color-send-icon)}.send.is-starting[data-v-5a96480c] .ui-spinner__track{stroke:color-mix(in srgb,var(--color-send-icon) 32%,transparent)}.send svg[data-v-5a96480c]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.stop[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);border-radius:var(--radius-full);background:var(--color-subtle);color:var(--color-stop-glyph);border:none;box-shadow:var(--shadow-xs);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .16s ease,color .16s ease,transform .12s ease}.stop[data-v-5a96480c]:hover{background:var(--color-danger);color:var(--color-text-on-accent)}.stop[data-v-5a96480c]:active{transform:scale(.92)}.stop svg[data-v-5a96480c]{flex:none;width:var(--composer-send-icon-size);height:var(--composer-send-icon-size)}.toolbar[data-v-5a96480c]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--composer-control-inset) var(--composer-control-inset);position:relative}.menu-measure[data-v-5a96480c]{position:absolute;width:max-content;height:0;overflow:hidden;visibility:hidden;pointer-events:none}.toolbar-left[data-v-5a96480c],.toolbar-right[data-v-5a96480c]{display:flex;align-items:center;gap:var(--space-1);min-width:0}.toolbar-left[data-v-5a96480c]{flex:none;overflow:hidden}.toolbar-right[data-v-5a96480c]{flex:1 1 auto;justify-content:flex-end}.perm-pill[data-v-5a96480c],.swarm-chip[data-v-5a96480c],.model-pill[data-v-5a96480c]{position:relative;display:inline-flex;align-items:center;gap:var(--space-1);height:var(--composer-control-size);padding:0 var(--space-3);border:.5px solid transparent;border-radius:var(--radius-full);background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size);font-weight:var(--weight-medium);line-height:1;white-space:nowrap;cursor:pointer;user-select:none;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.perm-pill[data-v-5a96480c]{font-size:var(--ui-font-size-sm)}.perm-pill[data-v-5a96480c]:after,.swarm-chip[data-v-5a96480c]:after,.model-pill[data-v-5a96480c]:after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.perm-pill[data-v-5a96480c]:hover:after,.swarm-chip[data-v-5a96480c]:hover:after,.model-pill[data-v-5a96480c]:hover:after{opacity:1}.perm-pill.open[data-v-5a96480c],.model-pill.open[data-v-5a96480c]{background:var(--color-accent-soft)}.swarm-chip[data-v-5a96480c]{cursor:default}.swarm-x[data-v-5a96480c]{margin-right:calc(var(--composer-control-size) / 2 - var(--space-3) - var(--icon-button-sm) / 2);color:inherit;opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.swarm-chip .swarm-x[data-v-5a96480c]{border-radius:var(--radius-full)}.swarm-chip:hover .swarm-x[data-v-5a96480c],.swarm-x[data-v-5a96480c]:focus-visible{opacity:1}@media(hover:none){.toolbar-left[data-v-5a96480c]{padding-right:var(--space-2)}.swarm-chip[data-v-5a96480c]{margin-right:calc((var(--touch-target-min) - var(--icon-button-sm)) / 2 - var(--space-1))}.swarm-x[data-v-5a96480c]{opacity:1;position:relative}.swarm-x[data-v-5a96480c]:before{content:"";position:absolute;inset:calc(-1 * (var(--touch-target-min) - var(--icon-button-sm)) / 2)}}.perm-pill.perm-manual[data-v-5a96480c]{color:var(--dim)}.perm-pill.perm-yolo[data-v-5a96480c]{color:var(--color-warning)}.perm-pill.perm-auto[data-v-5a96480c]{color:var(--color-danger)}.perm-pill-icon[data-v-5a96480c]{flex:none}.perm-pill[data-v-5a96480c],.swarm-chip[data-v-5a96480c]{flex:none;padding-left:var(--space-2)}.swarm-ic[data-v-5a96480c],.swarm-x[data-v-5a96480c]{flex:none}.labels-collapsed .perm-pill[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .perm-pill-label[data-v-5a96480c]{display:none}.labels-collapsed .swarm-chip[data-v-5a96480c]{position:relative;width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.labels-collapsed .swarm-label[data-v-5a96480c]{display:none}.labels-collapsed .swarm-ic[data-v-5a96480c]{transition:opacity var(--duration-base) var(--ease-out)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-5a96480c]{opacity:0}.labels-collapsed .swarm-x[data-v-5a96480c]{position:absolute;inset:0;width:auto;height:auto;margin-right:0}@media(hover:none){.labels-collapsed .swarm-chip[data-v-5a96480c]{width:var(--touch-target-min);height:var(--touch-target-min)}.labels-collapsed .swarm-chip:hover .swarm-ic[data-v-5a96480c]{opacity:1}.labels-collapsed .swarm-x[data-v-5a96480c]{inset:0;width:auto;height:auto;opacity:1;background:transparent}.labels-collapsed .swarm-x[data-v-5a96480c]:before{inset:0 0 auto auto;width:var(--p-ic-md);height:var(--p-ic-md);border-radius:var(--radius-full);background:var(--color-selected)}.labels-collapsed .swarm-x[data-v-5a96480c] svg{position:absolute;top:calc(var(--space-1-5) / 2);right:calc(var(--space-1-5) / 2);width:calc(var(--p-ic-md) - var(--space-1-5));height:calc(var(--p-ic-md) - var(--space-1-5))}}.ctx-group[data-v-5a96480c]{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:2px 0;border-radius:var(--radius-xs)}.ctx-group[data-v-5a96480c]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.model-pill[data-v-5a96480c]{gap:var(--space-1);line-height:var(--leading-normal);overflow:hidden;flex:0 1 auto;min-width:0;max-width:320px;transition:background var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.model-pill[data-v-5a96480c]:active{transform:scale(.97)}.model-pill[data-v-5a96480c]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-pill .mp-name[data-v-5a96480c]{flex:0 8 auto;font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.model-pill .think-suffix[data-v-5a96480c]{color:var(--color-accent);font-weight:var(--weight-medium);flex:none}.model-pill .cv[data-v-5a96480c]{color:var(--faint);flex:none;transition:transform var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out)}.model-pill:hover .cv[data-v-5a96480c],.model-pill.open .cv[data-v-5a96480c]{color:var(--dim)}.model-pill.open .cv[data-v-5a96480c]{transform:rotate(180deg)}.model-pill.icon-only[data-v-5a96480c]{width:var(--composer-control-size);height:var(--composer-control-size);padding:0;justify-content:center;flex:none}.model-pill.login-pill[data-v-5a96480c]{flex:none;color:var(--color-accent)}.model-pill.login-pill .mp-name[data-v-5a96480c]{color:var(--color-accent)}.model-dropdown[data-v-5a96480c]{position:absolute;bottom:calc(100% + var(--space-1));right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));z-index:var(--z-dropdown);min-width:200px;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;font-family:var(--font-ui);transform-origin:bottom right;overflow-y:auto;overscroll-behavior:contain}.model-dropdown.flip-down[data-v-5a96480c]{top:calc(100% + var(--space-1));bottom:auto;transform-origin:top right}.composer-menu-pop-enter-active[data-v-5a96480c]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.composer-menu-pop-leave-active[data-v-5a96480c]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.composer-menu-pop-enter-from[data-v-5a96480c],.composer-menu-pop-leave-to[data-v-5a96480c]{opacity:0;transform:scale(.97) translateY(2px)}.model-dropdown.flip-down.composer-menu-pop-enter-from[data-v-5a96480c],.model-dropdown.flip-down.composer-menu-pop-leave-to[data-v-5a96480c]{transform:scale(.97) translateY(-2px)}.md-list[data-v-5a96480c]{display:flex;flex-direction:column;gap:1px;max-height:min(320px,40vh);overflow-y:auto;overscroll-behavior:contain}.md-section[data-v-5a96480c]{padding:4px 9px 2px;font-size:var(--text-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:var(--weight-semibold)}.md-row[data-v-5a96480c]{display:flex;align-items:center;gap:7px;width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);padding:5px 9px;border-radius:var(--radius-dropdown-row);text-align:left;transition:background var(--duration-base) var(--ease-out)}.md-row[data-v-5a96480c]:hover{background:var(--color-hover)}.md-row:hover .md-name[data-v-5a96480c]{color:var(--color-text-strong)}.md-row[data-v-5a96480c]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.md-row[data-v-5a96480c]:disabled{cursor:default;opacity:.58}.md-row[data-v-5a96480c]:disabled:hover{background:none}.md-row.is-current[data-v-5a96480c]{background:var(--color-selected)}.md-note[data-v-5a96480c]{margin-left:auto;color:var(--muted);font-size:var(--ui-font-size-xs)}.md-row-more .md-more-icon[data-v-5a96480c]{color:var(--dim)}.md-row-more .md-more-arrow[data-v-5a96480c]{color:var(--faint);flex:none;transition:color var(--duration-base) var(--ease-out)}.md-row-more:hover .md-more-arrow[data-v-5a96480c]{color:var(--dim)}.md-check[data-v-5a96480c]{width:14px;flex:none;color:var(--color-accent);font-weight:500;display:flex;justify-content:center}.md-name[data-v-5a96480c]{flex:1;transition:color var(--duration-base) var(--ease-out)}.md-provider[data-v-5a96480c]{color:var(--muted);font-size:var(--ui-font-size-xs);flex:none}.md-star[data-v-5a96480c]{color:var(--star);flex:none;margin-left:auto}.md-divider[data-v-5a96480c]{height:1px;background:var(--line);margin:3px 0}.md-thinking[data-v-5a96480c]{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:var(--radius-dropdown-row)}.md-thinking .md-name[data-v-5a96480c]{font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text);flex:none}.md-thinking .md-note[data-v-5a96480c],.md-thinking .ui-seg[data-v-5a96480c]{margin-left:auto}.md-cache-note[data-v-5a96480c]{width:0;min-width:100%;padding:2px 7px 4px;color:var(--muted);font-size:var(--ui-font-size-xs);line-height:1.4}.perm-dropdown[data-v-5a96480c]{position:absolute;bottom:calc(100% + 4px);left:var(--composer-control-inset);z-index:var(--z-dropdown);min-width:220px;width:max-content;max-width:calc(100vw - var(--space-8));background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);padding:var(--space-1);display:flex;flex-direction:column;gap:1px;transform-origin:bottom left}.pd-row[data-v-5a96480c]{display:grid;grid-template-columns:var(--p-ic-md) var(--composer-menu-desc-width, max-content) var(--p-ic-sm);column-gap:7px;row-gap:2px;align-items:start;width:100%;background:none;border:none;cursor:pointer;padding:6px 7px;border-radius:var(--radius-dropdown-row);text-align:left}.pd-row[data-v-5a96480c]:hover,.pd-row.is-current[data-v-5a96480c]{background:var(--color-hover)}.pd-icon[data-v-5a96480c]{grid-column:1;grid-row:1;width:var(--p-ic-md);min-height:1lh;display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-check[data-v-5a96480c]{grid-column:3;grid-row:1;width:var(--p-ic-sm);min-height:1lh;color:var(--color-accent);font-size:var(--ui-font-size);font-weight:var(--weight-medium);display:flex;align-items:center;justify-content:center;line-height:var(--leading-tight)}.pd-info[data-v-5a96480c]{display:contents}.pd-name[data-v-5a96480c]{grid-column:2;grid-row:1;font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight)}.pd-desc[data-v-5a96480c]{grid-column:2;grid-row:2;width:var(--composer-menu-desc-width, auto);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-caption);color:var(--muted);line-height:var(--leading-tight)}.wm-pill[data-v-5a96480c]{position:absolute;top:0;left:0;margin-left:calc(-1 * var(--space-05));z-index:var(--z-raised);display:inline-flex;align-items:center;gap:var(--space-1);height:calc(var(--content-font-size) * 1.5);padding:0 calc((var(--content-font-size) * 1.5 - var(--wm-x-size)) / 2) 0 var(--space-2);border:none;border-radius:var(--radius-full);background:var(--color-surface);color:var(--color-text);font-family:var(--font-ui);font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);line-height:calc(var(--content-font-size) * 1.5);white-space:nowrap;user-select:none}.wm-x[data-v-5a96480c]{position:relative;width:var(--wm-x-size);height:var(--wm-x-size);border-radius:var(--radius-full)}.wm-x[data-v-5a96480c]:before{content:"";position:absolute;inset:calc(-1 * var(--wm-x-ring))}@media(hover:none){.wm-x[data-v-5a96480c]:before{inset:calc((var(--wm-x-size) - var(--touch-target-min)) / 2)}}@media(max-width:640px){.composer[data-v-5a96480c]{padding:9px var(--dock-inline-right, max(12px, var(--safe-right))) max(24px,var(--safe-bottom)) var(--dock-inline-left, max(12px, var(--safe-left)))}.composer-card[data-v-5a96480c]{--composer-control-size: 36px;max-width:100%}.input-row[data-v-5a96480c]{gap:6px;min-width:0}.send[data-v-5a96480c],.stop[data-v-5a96480c]{width:var(--composer-send-size);height:var(--composer-send-size);min-width:var(--composer-send-size);padding:0;border-radius:var(--radius-full);font-size:0;align-self:flex-end;position:relative}.perm-pill[data-v-5a96480c],.wm-pill[data-v-5a96480c]{display:none}.model-dropdown[data-v-5a96480c]{right:calc(var(--composer-control-inset) + var(--composer-send-size) + var(--space-1));left:auto;min-width:180px;max-width:calc(100vw - 24px)}.ph[data-v-5a96480c]{font-size:16px}.model-pill[data-v-5a96480c],.attach-btn[data-v-5a96480c]{font-size:var(--ui-font-size)}.toolbar[data-v-5a96480c]{gap:6px;min-width:0}.toolbar-left[data-v-5a96480c],.toolbar-right[data-v-5a96480c]{min-width:0}.model-pill[data-v-5a96480c]{max-width:min(52vw,220px)}.model-pill .mp-name[data-v-5a96480c]{max-width:min(40vw,170px)}.md-row[data-v-5a96480c],.md-section[data-v-5a96480c]{font-size:var(--ui-font-size)}.md-thinking[data-v-5a96480c]{flex-wrap:wrap;row-gap:6px}.md-thinking .ui-seg[data-v-5a96480c]{margin-left:0}.pd-name[data-v-5a96480c]{font-size:var(--ui-font-size)}.pd-desc[data-v-5a96480c]{font-size:var(--text-xs)}}@media(max-width:640px)and (hover:none){.send[data-v-5a96480c],.stop[data-v-5a96480c],.attach-btn[data-v-5a96480c],.expand-btn[data-v-5a96480c],.model-pill[data-v-5a96480c]{position:relative}.send[data-v-5a96480c]:before,.stop[data-v-5a96480c]:before,.attach-btn[data-v-5a96480c]:before,.expand-btn[data-v-5a96480c]:before,.model-pill[data-v-5a96480c]:before{content:"";position:absolute;inset:-6px}.expand-btn[data-v-5a96480c]:before{inset:-11px}}.goal-panel[data-v-cdb3e8b0]{display:flex;flex-direction:column;gap:var(--space-2);overflow-wrap:anywhere}.goal-criterion[data-v-cdb3e8b0]{padding-top:var(--space-2);border-top:.5px solid var(--color-line)}.goal-criterion-label[data-v-cdb3e8b0]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-section-label);line-height:var(--leading-normal);margin-bottom:var(--space-1)}.plan-panel[data-v-dea23306]{display:flex;flex-direction:column;gap:var(--space-2)}.plan-review-row[data-v-dea23306]{display:flex;gap:var(--space-2);font-size:var(--text-sm)}.plan-review-label[data-v-dea23306]{flex:none;color:var(--color-text-muted)}.plan-review-feedback[data-v-dea23306]{color:var(--color-text-muted)}.plan-path-only[data-v-dea23306]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1)}.plan-path-hint[data-v-dea23306]{color:var(--color-text-muted);font-size:var(--text-sm)}.plan-path[data-v-dea23306]{max-width:100%;font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-empty[data-v-dea23306]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.plan-empty-ico[data-v-dea23306]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}.qcard[data-v-8e7280dd]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.qcard>.qh[data-v-8e7280dd],.qcard>.qfoot[data-v-8e7280dd]{flex:none}.qcard.minimized[data-v-8e7280dd]{transition:background var(--duration-fast) var(--ease-out)}.qcard.minimized[data-v-8e7280dd]:hover{background:var(--color-hover)}.qh[data-v-8e7280dd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0}.qcard.minimized .qh[data-v-8e7280dd]{padding-bottom:var(--space-3);align-items:center}.qcard.minimized .qh.clickable[data-v-8e7280dd]{cursor:pointer}.qh-chip[data-v-8e7280dd]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qtitle[data-v-8e7280dd]{flex:1;min-width:0;color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);line-height:var(--leading-tight);overflow-wrap:anywhere}.qcard.minimized .qtitle[data-v-8e7280dd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmin[data-v-8e7280dd],.qclose[data-v-8e7280dd]{flex:none;margin-top:calc((var(--text-lg) * var(--leading-tight) - var(--icon-button-sm)) / 2)}.qmin[data-v-8e7280dd]{margin-left:auto}.qcard.minimized .qmin[data-v-8e7280dd],.qcard.minimized .qclose[data-v-8e7280dd]{margin-top:0}.qbody[data-v-8e7280dd]{min-height:min(var(--question-card-body-min-h),calc(var(--app-height, 100dvh) * .25));overflow-y:auto;padding:var(--space-3) var(--space-4) 0;color:var(--color-text);font:var(--text-base)/var(--leading-normal) var(--font-ui)}.qmdbody[data-v-8e7280dd]{margin-bottom:var(--space-2)}.qopts[data-v-8e7280dd]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-2)}.qopt[data-v-8e7280dd]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;font:var(--text-sm)/var(--leading-normal) var(--font-ui);color:var(--color-text);transition:background var(--duration-fast) var(--ease-out);user-select:none}.qopt[data-v-8e7280dd]:hover,.qopt.highlighted[data-v-8e7280dd]{background:var(--color-hover)}.qopt-key[data-v-8e7280dd]{width:var(--p-chip-num);height:var(--p-chip-num);margin-top:calc((var(--text-base) * var(--leading-normal) - var(--p-chip-num)) / 2);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.qopt-key[data-v-8e7280dd]:empty{background:transparent}.qopt-glyph[data-v-8e7280dd]{width:16px;height:16px;margin-top:calc((var(--text-base) * var(--leading-normal) - 16px) / 2);flex:none;border:.5px solid var(--color-line-strong);position:relative;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.qopt-glyph.rad[data-v-8e7280dd]{border-radius:50%}.qopt-glyph.chk[data-v-8e7280dd]{border-radius:var(--radius-xs)}.qopt.selected .qopt-glyph[data-v-8e7280dd]{border-color:var(--color-accent)}.qopt.selected .qopt-glyph.rad[data-v-8e7280dd]:after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-8e7280dd]{background:var(--color-accent)}.qopt.selected .qopt-glyph.chk[data-v-8e7280dd]:after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border-right:1.5px solid var(--color-text-on-accent);border-bottom:1.5px solid var(--color-text-on-accent);transform:rotate(45deg)}.qopt-text[data-v-8e7280dd]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.qopt-label[data-v-8e7280dd]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.qopt-desc[data-v-8e7280dd]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.other-input[data-v-8e7280dd]{flex:1;font:var(--text-base) var(--font-ui);border:none;border-bottom:.5px solid var(--color-line);outline:none;padding:2px var(--space-1);color:var(--color-text);background:transparent;min-width:0}.other-input[data-v-8e7280dd]:focus-visible{border-bottom-color:var(--color-accent);box-shadow:0 1px 0 0 var(--color-accent)}.qfoot[data-v-8e7280dd]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.qbtns[data-v-8e7280dd]{display:flex;align-items:center;gap:var(--space-1)}.qhint[data-v-8e7280dd]{margin-left:auto;color:var(--color-text-faint);font:var(--text-xs) var(--font-ui);user-select:none}@media(max-width:640px){.qopt[data-v-8e7280dd]{min-height:44px;padding:var(--space-3)}.other-input[data-v-8e7280dd]{flex-basis:100%;min-height:28px}.qfoot[data-v-8e7280dd]{flex-direction:column;align-items:stretch}.qhint[data-v-8e7280dd]{display:none}.qbtns[data-v-8e7280dd]{flex-direction:column;gap:var(--space-2)}.qbtns[data-v-8e7280dd] .ui-button{width:100%;min-height:46px}}.appr[data-v-690f6ed6]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance));margin:var(--space-2) 0;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-menu);overflow:hidden auto;animation:kimi-card-in var(--duration-base) var(--ease-out)}.appr[data-v-690f6ed6]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.appr.scrolled[data-v-690f6ed6]:before{opacity:1}.appr>.ah[data-v-690f6ed6],.appr>.af[data-v-690f6ed6]{flex:none}.appr.minimized[data-v-690f6ed6]{transition:background var(--duration-fast) var(--ease-out)}.appr.minimized[data-v-690f6ed6]:hover{background:var(--color-hover)}.ah[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4) 0;flex-wrap:nowrap}.appr.minimized .ah[data-v-690f6ed6]{padding-bottom:var(--space-3)}.appr.minimized .ah.clickable[data-v-690f6ed6]{cursor:pointer}.akind[data-v-690f6ed6]{color:var(--color-text);font-size:var(--text-lg);font-weight:var(--weight-semibold);white-space:nowrap;flex:none}.apeek[data-v-690f6ed6]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono)}.amin[data-v-690f6ed6],.aexpand[data-v-690f6ed6]{margin-left:auto;flex:none}.aexpand+.amin[data-v-690f6ed6]{margin-left:0}.ab[data-v-690f6ed6]{display:flex;flex-direction:column;flex:1;min-height:0;padding:var(--space-3) var(--space-4) 0}.ab[data-v-690f6ed6]>*{flex:0 1 auto;min-height:0}.ab>.plan-path[data-v-690f6ed6]{flex:none}.ab>.body-plan-wrap[data-v-690f6ed6]{flex:1}.plan-path[data-v-690f6ed6]{display:block;width:100%;margin-bottom:var(--space-2);padding:0;border:none;background:transparent;color:var(--color-accent);font:var(--text-xs) var(--font-mono);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.plan-path[data-v-690f6ed6]:hover{text-decoration:underline}.plan-path[data-v-690f6ed6]:focus-visible{outline:none;text-decoration:underline;border-radius:var(--radius-xs);box-shadow:var(--p-focus-ring)}.body-code[data-v-690f6ed6]{display:flex;flex-direction:column}.body-code.expanded[data-v-690f6ed6]{flex:1}.body-code.expanded[data-v-690f6ed6] .hl-code{max-height:none;flex:1}.code-path[data-v-690f6ed6]{flex:none;color:var(--color-text-muted);font:var(--text-xs) var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.body-shell[data-v-690f6ed6]{overflow-y:auto}.shell-cmd[data-v-690f6ed6]{font:var(--text-sm) var(--font-mono);background:var(--color-surface-sunken);border:.5px solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);white-space:pre-wrap;word-break:break-all;max-height:160px;overflow-y:auto;color:var(--color-text)}.shell-dollar[data-v-690f6ed6]{color:var(--color-accent-hover);font-weight:var(--weight-medium);margin-right:var(--space-2)}.shell-cwd[data-v-690f6ed6]{font:var(--text-xs) var(--font-mono);color:var(--color-text-muted);margin-top:var(--space-1)}.shell-danger[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui);background:var(--color-danger-soft)}.shell-danger-ic[data-v-690f6ed6]{flex:none}.body-chip[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);overflow-y:auto}.chip-label[data-v-690f6ed6]{background:var(--color-inline-code-bg);border-radius:var(--radius-sm);padding:2px var(--space-2);font:var(--weight-semibold) var(--text-xs) var(--font-mono);color:var(--color-text-muted);white-space:nowrap}.chip-value[data-v-690f6ed6]{font:var(--text-sm) var(--font-mono);color:var(--color-text);word-break:break-all}.chip-detail[data-v-690f6ed6]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted)}.body-todo[data-v-690f6ed6]{overflow-y:auto}.todo-item[data-v-690f6ed6]{display:flex;align-items:flex-start;gap:var(--space-2);padding:var(--space-1) 0;font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text)}.todo-glyph[data-v-690f6ed6]{color:var(--color-accent);font-size:var(--text-sm);flex:none;width:14px}.todo-title[data-v-690f6ed6]{color:var(--color-text)}.todo-done[data-v-690f6ed6]{color:var(--color-text-muted);text-decoration:line-through}.body-generic[data-v-690f6ed6]{font:var(--text-base)/var(--leading-normal) var(--font-ui);color:var(--color-text);word-break:break-word;overflow-y:auto}.body-plan-wrap[data-v-690f6ed6]{display:flex;flex-direction:column;overflow-y:auto}.body-plan-wrap[data-v-690f6ed6]:before{content:"";position:sticky;top:0;flex:none;height:var(--p-scroll-seam-h);margin-bottom:calc(-1 * var(--p-scroll-seam-h));z-index:var(--z-raised);pointer-events:none;opacity:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 2.5%,transparent),transparent 35%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.75%,transparent),transparent 65%),linear-gradient(to bottom,color-mix(in srgb,var(--color-text) 1.25%,transparent),transparent);transition:opacity var(--duration-slow) var(--ease-out)}.body-plan-wrap.scrolled[data-v-690f6ed6]:before{opacity:1}.body-plan-wrap>.plan-opts[data-v-690f6ed6]{flex:none}.body-plan[data-v-690f6ed6]{max-height:50vh;overflow-y:auto;min-height:0}.body-plan.expanded[data-v-690f6ed6]{max-height:none;flex:1}.plan-opts[data-v-690f6ed6]{display:flex;flex-direction:column;gap:2px;margin-top:var(--space-3);padding-top:var(--space-3);border-top:.5px solid var(--color-line)}.popt[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text);font:var(--text-sm)/var(--leading-normal) var(--font-ui);text-align:left;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.popt[data-v-690f6ed6]:hover:not(:disabled){background:var(--color-hover)}.popt[data-v-690f6ed6]:focus-visible{outline:none;background:var(--color-hover);box-shadow:var(--p-focus-ring)}.popt[data-v-690f6ed6]:disabled{cursor:default;opacity:.6}.popt-key[data-v-690f6ed6]{width:var(--p-chip-num);height:var(--p-chip-num);border-radius:var(--radius-sm);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/var(--p-chip-num) var(--font-ui);text-align:center;flex:none}.popt-text[data-v-690f6ed6]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.popt-label[data-v-690f6ed6]{color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.popt-desc[data-v-690f6ed6]{color:var(--color-text-muted);font:var(--text-xs)/var(--leading-normal) var(--font-ui)}.popt-spin[data-v-690f6ed6]{flex:none;color:var(--color-text-muted)}.feedback-wrap[data-v-690f6ed6]{margin-top:var(--space-3);overflow-y:auto}.feedback-hint[data-v-690f6ed6]{font:var(--text-xs) var(--font-ui);color:var(--color-text-muted);margin-top:var(--space-1)}.af[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.abtns[data-v-690f6ed6]{display:flex;align-items:center;gap:var(--space-1)}.knum[data-v-690f6ed6]{min-width:16px;height:16px;padding:0 3px;border-radius:var(--radius-xs);background:var(--color-inline-code-bg);color:var(--color-text);font:var(--weight-medium) var(--text-xs)/16px var(--font-ui);text-align:center}.abtns .ui-button--primary .knum[data-v-690f6ed6]{background:color-mix(in srgb,var(--color-text-on-accent) 28%,transparent);color:var(--color-text-on-accent)}@media(max-width:640px){.popt[data-v-690f6ed6]{min-height:44px;padding:var(--space-3)}.af[data-v-690f6ed6]{flex-direction:column;align-items:stretch}.abtns[data-v-690f6ed6]{flex-direction:column;margin-left:0;gap:var(--space-2)}.abtns[data-v-690f6ed6] .ui-button{width:100%;min-height:46px}.abtns .amain[data-v-690f6ed6]{order:-1}}.taskspane[data-v-22fc9dfb]{flex:1;min-height:0;display:flex;flex-direction:column}.tp-list[data-v-22fc9dfb]{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-05)}.tp-row[data-v-22fc9dfb]{padding:var(--space-1) 0}.tp-row.fail .tp-name[data-v-22fc9dfb]{color:var(--color-danger)}.tp-main[data-v-22fc9dfb]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-base)}.tp-row.expandable>.tp-main[data-v-22fc9dfb]{position:relative;border-radius:var(--radius-lg);padding:var(--space-1) var(--space-2);margin:calc(-1 * var(--space-1)) 0}.tp-row.expandable>.tp-main[data-v-22fc9dfb]:hover{background:var(--color-hover)}.tp-row[data-v-22fc9dfb]:not(.expandable){cursor:not-allowed}.tp-open[data-v-22fc9dfb]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.tp-open[data-v-22fc9dfb]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.tp-chevron[data-v-22fc9dfb]{flex:none;color:var(--muted)}.tp-name[data-v-22fc9dfb]{color:var(--color-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-meta[data-v-22fc9dfb]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted)}.tp-glyph[data-v-22fc9dfb]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center}.tp-done[data-v-22fc9dfb]{color:var(--color-success);transform:scale(.91)}.tp-cancelled[data-v-22fc9dfb]{color:var(--color-text-muted)}.tp-fail[data-v-22fc9dfb]{color:var(--color-danger)}.tp-time[data-v-22fc9dfb]{flex:none;font-size:var(--text-base);color:var(--muted);font-variant-numeric:tabular-nums;text-autospace:normal}.tp-model[data-v-22fc9dfb]{flex:0 1 auto;min-width:0;font-size:var(--text-base);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-stop[data-v-22fc9dfb]{position:relative;flex:none;color:var(--color-danger)}.tp-stop[data-v-22fc9dfb]:hover{color:var(--color-danger)}@media(hover:none){.tp-stop[data-v-22fc9dfb]{width:var(--touch-target-min);height:var(--touch-target-min)}.tp-row.expandable>.tp-main[data-v-22fc9dfb]{min-height:var(--touch-target-min)}}.tp-empty[data-v-22fc9dfb]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:var(--ui-font-size-sm);user-select:none}@media(max-width:640px){.tp-main[data-v-22fc9dfb]{flex-wrap:wrap;row-gap:var(--space-1)}.tp-name[data-v-22fc9dfb]{font-size:var(--ui-font-size-sm)}.tp-meta[data-v-22fc9dfb]{order:10;flex:1 1 100%;padding-left:calc(var(--p-ic-md) + var(--space-2));font-size:var(--ui-font-size-xs)}}.sg-empty[data-v-f7e4b600]{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.sg-grid[data-v-f7e4b600]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--p-subagent-card-min),1fr));gap:var(--space-2)}.sg-card[data-v-f7e4b600]{position:relative;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-lg);background:var(--color-selected)}.sg-card.openable[data-v-f7e4b600]{cursor:pointer}.sg-card.openable[data-v-f7e4b600]:hover{background:var(--color-selected-hover)}.sg-card[data-v-f7e4b600]:not(.openable){cursor:not-allowed}.sg-open[data-v-f7e4b600]{position:absolute;inset:0;padding:0;border:none;border-radius:var(--radius-lg);background:transparent;cursor:pointer}.sg-open[data-v-f7e4b600]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sg-top[data-v-f7e4b600]{display:flex;align-items:center;gap:var(--space-2)}.sg-name[data-v-f7e4b600]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-medium)}.sg-num[data-v-f7e4b600]{flex:none;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums}.sg-card:has(.sg-cancel) .sg-top[data-v-f7e4b600]{padding-right:calc(var(--icon-button-sm) + var(--space-1))}@media(hover:none){.sg-card:has(.sg-cancel) .sg-top[data-v-f7e4b600]{padding-right:calc(var(--touch-target-min) + var(--space-1))}}.sg-desc[data-v-f7e4b600]{color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--leading-caption);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sg-foot[data-v-f7e4b600]{display:flex;flex-direction:column;gap:var(--space-1)}.sg-model[data-v-f7e4b600]{display:flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs)}.sg-model span[data-v-f7e4b600]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-status[data-v-f7e4b600]{display:flex;align-items:center}.sg-state[data-v-f7e4b600]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);text-autospace:normal}.sg-ic-done[data-v-f7e4b600]{color:var(--color-success);transform:scale(.91)}.s-fail .sg-state[data-v-f7e4b600]{color:var(--color-danger)}.sg-time[data-v-f7e4b600]{margin-left:auto;display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;text-autospace:normal}.sg-cancel[data-v-f7e4b600]{position:absolute;top:var(--space-2);right:var(--space-2);color:var(--color-text-muted);opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.sg-card:hover .sg-cancel[data-v-f7e4b600],.sg-cancel[data-v-f7e4b600]:focus-visible{opacity:1}.sg-cancel[data-v-f7e4b600]:hover{color:var(--color-danger)}@media(hover:none){.sg-cancel[data-v-f7e4b600]{top:0;right:0;width:var(--touch-target-min);height:var(--touch-target-min);opacity:1}}.todo-card[data-v-f090f678]{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-base)}.tc-row[data-v-f090f678]{display:flex;align-items:center;gap:var(--space-2);color:var(--color-text)}.tc-name[data-v-f090f678]{flex:1;min-width:0;overflow-wrap:anywhere;line-height:var(--leading-caption)}.tc-row.s-in_progress .tc-name[data-v-f090f678]{font-weight:var(--weight-medium)}.tc-row.s-pending .tc-name[data-v-f090f678]{color:var(--color-text-muted)}.tc-glyph[data-v-f090f678]{flex:none;width:var(--p-ic-md);height:var(--p-ic-md);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full)}.tc-glyph.g-done[data-v-f090f678]{color:var(--color-success)}.tc-glyph.g-pending[data-v-f090f678]{border:var(--p-ring-stroke) solid var(--color-line-strong)}.tc-glyph .tc-spin[data-v-f090f678]{color:var(--color-text)}.tc-empty[data-v-f090f678]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-6) var(--space-4);color:var(--color-text-faint);font-size:var(--text-sm)}.tc-empty-ico[data-v-f090f678]{width:var(--p-empty-ico);height:var(--p-empty-ico);color:var(--color-line-strong)}@media(max-width:640px){.todo-card[data-v-f090f678]{font-size:var(--text-lg)}.tc-row[data-v-f090f678]{padding:var(--space-2) var(--space-3)}}.wp-head-tab[data-v-82048a74]{display:inline-flex;align-items:center;gap:var(--space-2);padding:0;border:.5px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium);line-height:var(--leading-solid);white-space:nowrap;flex:none}.wp-head-tab[data-v-82048a74] svg{width:1.5em;height:1.5em}.wp-head-meta[data-v-82048a74]{color:var(--color-text-muted);text-autospace:normal}.wp-head-actions[data-v-82048a74]{margin-left:auto;display:flex;align-items:center;gap:var(--space-1);flex:none}@media(max-width:480px){.wp-head-actions[data-v-82048a74]{flex-basis:100%;margin-left:0}}@media(hover:none){.wp-head-actions[data-v-82048a74] .ui-seg__item{min-height:var(--touch-target-min)}}@media(max-width:640px),(hover:none){.wp-head-actions[data-v-82048a74] .ui-seg__item{height:var(--touch-target-min)}.wp-head-actions[data-v-82048a74] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}.wp-head-actions[data-v-82048a74] .fc-trigger{min-height:var(--touch-target-min)}}.filter-control[data-v-153e0d9c]{display:inline-flex;min-width:0}.fc-chevron[data-v-153e0d9c]{color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.fc-trigger[aria-expanded=true] .fc-chevron[data-v-153e0d9c]{transform:rotate(180deg)}.fc-menu[data-v-153e0d9c]{position:fixed;z-index:var(--z-dropdown)}.fc-menu[data-v-153e0d9c] .ui-menu{min-width:0}.fc-label[data-v-153e0d9c]{flex:1;white-space:nowrap}.filter-control[data-v-153e0d9c] .ui-seg__item[data-icon=circle-check] .ui-seg__icon,.fc-menu .kw-icon[data-icon=circle-check][data-v-153e0d9c]{transform:scale(.91)}.fc-check[data-v-153e0d9c]{color:var(--color-accent)}.chat-dock[data-v-8cd7cb40]{--dock-inline-left: 16px;--dock-inline-right: 16px;box-sizing:border-box;width:100%;max-width:calc(var(--read-max) + var(--panes-scrollbar-width, 0px));padding-right:var(--panes-scrollbar-width, 0px);flex:none;position:absolute;inset:auto 0 0;background:transparent;z-index:var(--z-sticky)}.chat-dock.has-popup[data-v-8cd7cb40]{z-index:var(--z-dropdown)}.chat-dock.align-center[data-v-8cd7cb40]{margin-left:auto;margin-right:auto}.chat-dock.align-left[data-v-8cd7cb40]{margin-left:0;margin-right:auto}.chat-dock.align-mobile[data-v-8cd7cb40]{max-width:none}.chat-dock[data-v-8cd7cb40]:before{--fade: 48px;--veil: 72px;content:"";position:absolute;top:calc(-1 * var(--fade));right:0;bottom:0;left:0;z-index:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--color-bg) 0%,transparent),color-mix(in srgb,var(--color-bg) 30%,transparent) 21px,color-mix(in srgb,var(--color-bg) 70%,transparent) 45px,var(--color-bg) var(--veil))}.chat-dock[data-v-8cd7cb40]>*{position:relative;z-index:1}.dock-work-panel[data-v-8cd7cb40]{position:absolute;left:16px;right:calc(16px + var(--panes-scrollbar-width, 0px));bottom:100%;background:var(--color-menu-bg-frost);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);margin-bottom:var(--space-2);max-height:min(360px,50vh);display:flex;flex-direction:column;overflow:hidden;user-select:none}.dock-work-panel.panel-todos .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-head[data-v-8cd7cb40]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-body[data-v-8cd7cb40]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-todos .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-head[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-head[data-v-8cd7cb40]{padding:var(--space-4) var(--space-4) 0;border-bottom:none}.dock-work-panel.panel-todos .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-tab[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-tab[data-v-8cd7cb40]{padding:0;line-height:var(--leading-solid)}.dock-work-panel.panel-goal .gh-time[data-v-8cd7cb40]{color:var(--color-text-muted)}.dock-work-panel.panel-todos .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-goal .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-plan .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-subagent .dock-work-body[data-v-8cd7cb40],.dock-work-panel.panel-bash .dock-work-body[data-v-8cd7cb40]{margin-top:var(--space-3);padding:0 var(--space-4) var(--space-4)}.dock-work-panel.panel-subagent[data-v-8cd7cb40],.dock-work-panel.panel-bash[data-v-8cd7cb40]{height:min(var(--p-dock-panel-h),50vh)}.dock-work-tab.tab-progress[data-v-8cd7cb40]{display:inline-flex;align-items:center;gap:var(--space-2)}@media(max-width:640px){.dock-work-panel.panel-subagent[data-v-8cd7cb40],.dock-work-panel.panel-bash[data-v-8cd7cb40]{height:auto}}.dock-work-head[data-v-8cd7cb40]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:.5px solid var(--color-line);position:relative;z-index:1}.dock-work-body[data-v-8cd7cb40]{padding:var(--space-2) var(--space-3);overflow-y:auto;min-height:0;display:flex;flex-direction:column}@media(max-width:480px){.dock-work-head[data-v-8cd7cb40]{flex-wrap:wrap}}.dock-work-panel.body-scrolled-up .dock-work-body[data-v-8cd7cb40]{mask-image:linear-gradient(to bottom,transparent,black var(--menu-scroll-fade))}.dock-work-body[data-v-8cd7cb40] .taskspane{border:none;background:transparent;padding:0}.dock-work-body[data-v-8cd7cb40] .taskspane .tp-head{display:none}.dock-workbar[data-v-8cd7cb40]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-1-5);padding:var(--space-1) calc(var(--dock-inline-right) + var(--space-4) + var(--p-hairline)) var(--space-05) calc(var(--dock-inline-left) + var(--space-4) + var(--p-hairline))}.dock-workbar[data-v-8cd7cb40] .ui-pill{position:relative;gap:var(--space-1-5);height:auto;padding:var(--space-2) calc(var(--space-3) + var(--space-05)) var(--space-2) var(--space-3);border:none;border-radius:var(--radius-lg);background:var(--color-selected);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);color:var(--color-text);font-size:var(--text-base);line-height:var(--leading-normal)}.dock-workbar[data-v-8cd7cb40] .ui-pill svg{width:1.5em;height:1.5em;color:inherit}.dock-workbar[data-v-8cd7cb40] .ui-pill:after{content:"";position:absolute;inset:0;border-radius:var(--radius-lg);background:var(--color-hover);opacity:0;transition:opacity var(--duration-base) var(--ease-out);pointer-events:none}.dock-workbar[data-v-8cd7cb40] .ui-pill:hover:not(:disabled):after,.dock-workbar[data-v-8cd7cb40] .ui-pill.is-active:after{opacity:1}.chat-dock.pills-compact .dock-workbar[data-v-8cd7cb40] .ui-pill{padding:var(--space-2)}.chat-dock.pills-compact .dock-workbar[data-v-8cd7cb40] .ui-pill>span{display:none}.dock-workbar .dw-count[data-v-8cd7cb40]{color:var(--color-text-muted)}.dock-workbar .dw-running[data-v-8cd7cb40]{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--color-text-muted)}.dock-workbar .dw-goal-status[data-v-8cd7cb40]{font-weight:var(--weight-medium)}.dock-workbar .dw-goal-status--active[data-v-8cd7cb40]{color:var(--color-success)}.dock-workbar .dw-goal-status--paused[data-v-8cd7cb40]{color:var(--color-warning)}.dock-workbar .dw-goal-status--blocked[data-v-8cd7cb40]{color:var(--color-danger)}.dock-approval[data-v-8cd7cb40]{margin-top:8px}.chat-dock.has-approval[data-v-8cd7cb40],.chat-dock.has-question[data-v-8cd7cb40]{display:flex;flex-direction:column;max-height:calc(var(--app-height, 100dvh) - var(--dock-card-top-clearance))}.chat-dock.has-approval>.dock-workbar[data-v-8cd7cb40],.chat-dock.has-question>.dock-workbar[data-v-8cd7cb40]{flex:none}.chat-dock.has-approval>.dock-approval[data-v-8cd7cb40],.chat-dock.has-question>.dock-question[data-v-8cd7cb40]{min-height:0}@media(max-width:640px){.chat-dock[data-v-8cd7cb40]{--dock-inline-left: max(12px, var(--safe-left));--dock-inline-right: max(12px, var(--safe-right))}.dock-work-panel[data-v-8cd7cb40]{left:10px;right:calc(10px + var(--panes-scrollbar-width, 0px))}.dock-work-head-actions[data-v-8cd7cb40] .ui-seg__item{height:var(--touch-target-min)}.dock-work-head-actions[data-v-8cd7cb40] .ui-icon-button{width:var(--touch-target-min);height:var(--touch-target-min)}}.chat-dock[data-v-8cd7cb40]:not(.align-mobile) .composer{padding-bottom:14px}.dock-panel-enter-active[data-v-8cd7cb40]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.dock-panel-leave-active[data-v-8cd7cb40]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}.dock-panel-enter-from[data-v-8cd7cb40],.dock-panel-leave-to[data-v-8cd7cb40]{opacity:0;transform:translateY(var(--motion-panel-shift)) scale(var(--motion-panel-scale))}.ws-home[data-v-cf7957ea]{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);padding:0 var(--space-4) var(--space-4);user-select:none}.ws-home-title[data-v-cf7957ea]{display:flex;align-items:center;gap:10px;color:var(--color-text);font-size:var(--ui-t1);font-weight:var(--weight-section-label)}.ws-home-folder[data-v-cf7957ea]{color:var(--color-text-muted)}.ws-home-path[data-v-cf7957ea]{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-text-faint);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs[data-v-f463cc7b]{flex:none;display:flex;flex-direction:column;margin:var(--space-4) var(--dock-inline-right, 16px) 0 var(--dock-inline-left, 16px)}.wrs-caption[data-v-f463cc7b]{padding:0 var(--space-2) var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs);font-weight:var(--weight-section-label);text-transform:uppercase;color:var(--faint);user-select:none}.wrs-row[data-v-f463cc7b]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-width:0;padding:6px var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-family:var(--font-ui);text-align:left;cursor:pointer}.wrs-row[data-v-f463cc7b]:hover{background:var(--color-hover)}.wrs-row[data-v-f463cc7b]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.wrs-ico[data-v-f463cc7b]{display:inline-flex;flex:none}.wrs-ico--open[data-v-f463cc7b]{color:var(--color-success)}.wrs-ico--done[data-v-f463cc7b]{color:var(--color-done)}.wrs-title[data-v-f463cc7b]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrs-time[data-v-f463cc7b]{flex:none;color:var(--color-text-faint);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.wrs-foot[data-v-f463cc7b]{display:flex;justify-content:center;margin-top:var(--space-2)}.wrs-more[data-v-f463cc7b]{display:inline-flex;align-items:center;gap:var(--space-1);height:26px;padding:0 var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.wrs-more[data-v-f463cc7b]:hover{background:var(--color-hover);color:var(--color-text)}.wrs-more svg[data-v-f463cc7b]{color:var(--color-text-faint)}.conversation-toc[data-v-b8ba267a]{position:absolute;z-index:var(--z-sticky);top:50%;transform:translateY(-50%);--toc-content-max: min( var(--p-content-max), calc(100cqi - var(--space-5) - var(--space-5)) );left:calc(50% + (var(--toc-content-max) / 2) + 14px);max-height:calc(100% - 160px);display:flex;flex-direction:column;justify-content:center;opacity:.5;transition:opacity var(--duration-base) var(--ease-out)}.conversation-toc[data-v-b8ba267a]:before{content:"";position:absolute;inset:0 -48px 0 -14px;z-index:0}.conversation-toc[data-v-b8ba267a]:hover,.conversation-toc[data-v-b8ba267a]:focus-within{opacity:1}.conversation-toc[data-v-b8ba267a]:hover:not(:focus-within){transition-delay:var(--duration-hover-intent)}.toc-scroll[data-v-b8ba267a]{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;padding:8px 0;min-height:0;overflow-y:auto;scrollbar-width:none}.toc-scroll[data-v-b8ba267a]::-webkit-scrollbar{display:none}.toc-row[data-v-b8ba267a]{display:flex;align-items:center;gap:10px;height:18px;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);text-align:left;cursor:pointer;white-space:nowrap}.toc-row[data-v-b8ba267a]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.toc-bar[data-v-b8ba267a]{flex:none;width:3px;height:14px;border-radius:var(--radius-full);background:var(--color-accent);opacity:.3;transition:opacity var(--duration-fast) var(--ease-out),height var(--duration-fast) var(--ease-out)}.toc-label[data-v-b8ba267a]{display:block;max-width:0;overflow:hidden;opacity:0;text-overflow:ellipsis;transition:max-width .22s var(--ease-out),opacity var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.conversation-toc:hover .toc-bar[data-v-b8ba267a],.conversation-toc:focus-within .toc-bar[data-v-b8ba267a]{height:18px;opacity:.5}.conversation-toc:hover .toc-label[data-v-b8ba267a],.conversation-toc:focus-within .toc-label[data-v-b8ba267a]{max-width:220px;opacity:1}.conversation-toc:hover:not(:focus-within) .toc-bar[data-v-b8ba267a]{transition-delay:0ms,var(--duration-hover-intent)}.conversation-toc:hover:not(:focus-within) .toc-label[data-v-b8ba267a]{transition-delay:var(--duration-hover-intent),var(--duration-hover-intent),0ms}.toc-row.active .toc-bar[data-v-b8ba267a]{opacity:1;height:18px}.toc-row.active .toc-label[data-v-b8ba267a]{color:var(--color-accent);font-weight:var(--weight-medium)}.toc-row:hover .toc-bar[data-v-b8ba267a]{opacity:1}.toc-row:hover .toc-label[data-v-b8ba267a]{color:var(--color-text)}.conversation-toc.toc-clipped[data-v-b8ba267a]{visibility:hidden;pointer-events:none}.tsearch[data-v-26f3fed5]{position:absolute;top:calc(var(--panel-head-h, 48px) + var(--space-3));right:var(--space-3);z-index:var(--z-sticky);width:min(var(--p-findbar-w),calc(100% - var(--space-3) * 2));background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-2xl);box-shadow:var(--shadow-menu);animation:kimi-card-in var(--duration-slow) var(--ease-out)}.tsearch.mobile[data-v-26f3fed5]{top:var(--space-3)}.tsearch[data-v-26f3fed5]:after{content:"";position:absolute;inset:0;border:inherit;border-color:var(--color-composer-focus-line);border-radius:var(--radius-2xl);opacity:0;pointer-events:none;transition:opacity var(--duration-slow) var(--ease-in-out)}.tsearch[data-v-26f3fed5]:focus-within:after{opacity:1}.tsearch-main[data-v-26f3fed5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);min-height:calc(var(--space-8) + 2 * var(--space-1))}.tsearch-icon[data-v-26f3fed5]{flex:none;margin-left:var(--space-1);color:var(--color-text-muted)}.tsearch-input[data-v-26f3fed5]{flex:1;min-width:0;height:var(--space-8);padding:0;border:none;background:transparent;font-family:var(--font-ui);font-size:var(--ui-font-size);color:var(--color-text)}.tsearch-input[data-v-26f3fed5]:focus-visible{outline:none}.tsearch-input[data-v-26f3fed5]::placeholder{color:var(--color-text-muted)}.tsearch-spin[data-v-26f3fed5]{display:inline-flex;flex:none}.tsearch-sep[data-v-26f3fed5]{flex:none;width:var(--p-hairline);height:var(--space-4);background:var(--color-line)}.tsearch .tsearch-close[data-v-26f3fed5]{border-radius:var(--radius-full)}.tsearch-foot-wrap[data-v-26f3fed5]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.tsearch-foot-wrap.open[data-v-26f3fed5]{grid-template-rows:1fr}.tsearch-foot[data-v-26f3fed5]{overflow:hidden;min-height:0;display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2)}.tsearch-foot-wrap.open .tsearch-foot[data-v-26f3fed5]{padding:var(--space-1) var(--space-2);border-top:var(--p-hairline) solid var(--color-line)}.tsearch-count[data-v-26f3fed5]{margin-left:auto;padding-right:var(--space-1);font-size:var(--ui-font-size-sm);color:var(--color-text-muted);white-space:nowrap;user-select:none}.tsearch-rings[data-v-26f3fed5]{position:absolute;inset:0;pointer-events:none}.tsearch-ring[data-v-26f3fed5]{position:absolute;box-sizing:content-box;border:var(--p-findring-w) solid var(--color-warning);margin:calc(-1 * var(--p-findring-w));border-radius:var(--radius-xs);pointer-events:none}.doodle-host[data-v-694a2ad0]{position:relative;width:100%;aspect-ratio:338 / 152;display:flex;align-items:center;justify-content:center}.doodle-canvas[data-v-694a2ad0]{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .25s ease}.doodle-canvas.ready[data-v-694a2ad0]{opacity:1}@media(prefers-reduced-motion:reduce){.doodle-canvas[data-v-694a2ad0]{transition:none}}.con[data-v-031838d6]{--read-max: 760px;display:flex;flex-direction:column;min-width:0;height:100%;position:relative;container-type:inline-size}.empty-drag[data-v-031838d6]{position:absolute;top:0;left:0;right:0;height:var(--panel-head-h, 48px)}.empty-drag.macos-desktop[data-v-031838d6]{-webkit-app-region:drag}.panes[data-v-031838d6]{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;scrollbar-gutter:stable}.panes[data-v-031838d6]::-webkit-scrollbar{width:4px}.panes[data-v-031838d6]::-webkit-scrollbar-thumb{background:transparent;transition:background var(--duration-base) var(--ease-out)}.panes.scrolling[data-v-031838d6]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.panes.scrolling[data-v-031838d6]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panes.session-settling .chat[data-v-031838d6]>*:not(.chat-loading){visibility:hidden}.panes.is-following[data-v-031838d6],.panes.history-prepending[data-v-031838d6],.panes.is-pinned[data-v-031838d6]{overflow-anchor:none}.chat-layout[data-v-031838d6]{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.chat-scroll[data-v-031838d6]{flex:1;min-height:0;position:relative}.content-wrap[data-v-031838d6]{width:100%;max-width:var(--read-max);min-height:100%;box-sizing:border-box;padding-bottom:var(--chat-dock-height, 0px);display:flex;flex-direction:column;flex-shrink:0}.content-wrap.align-center[data-v-031838d6]{margin-left:auto;margin-right:auto}.content-wrap.align-left[data-v-031838d6]{margin-left:0;margin-right:auto}.content-wrap.align-mobile[data-v-031838d6]{max-width:none}@media(max-width:640px){.con.mobile[data-v-031838d6]{min-width:0;overflow:hidden}.con.mobile .panes[data-v-031838d6]{scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}.content-wrap.align-mobile[data-v-031838d6]{width:100%;min-width:0}}.empty-spacer[data-v-031838d6]{flex:1}.empty-tail[data-v-031838d6]{min-height:0;overflow-y:auto;padding-bottom:var(--space-4);box-sizing:border-box}.empty-hint[data-v-031838d6]{flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:0 16px 16px;color:var(--color-text);font-family:var(--font-ui);user-select:none}.empty-hint-title[data-v-031838d6]{font-size:calc(var(--ui-font-size) + 16px);font-optical-sizing:auto;font-weight:600}.empty-hint-title.is-starting[data-v-031838d6]{display:inline-flex;align-items:center;gap:9px;color:var(--dim);font-weight:400}.empty-doodle[data-v-031838d6]{width:min(340px,62vw)}.empty-hint-text[data-v-031838d6]{display:inline-block;font-size:var(--text-base);color:var(--dim);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upgrade-banner[data-v-031838d6]{flex:none;display:flex;align-items:center;gap:var(--space-3);margin:0 var(--dock-inline-right, 16px) var(--space-2) var(--dock-inline-left, 16px);padding:var(--space-2) var(--space-3);border:.5px solid var(--color-accent-bd);border-radius:var(--radius-xl);background:var(--color-accent-soft)}.upgrade-banner-icon[data-v-031838d6]{flex:none;color:var(--color-accent)}.upgrade-banner-text[data-v-031838d6]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text)}.upgrade-banner-cta[data-v-031838d6]{flex:none;display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-sm);background:transparent;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-accent);cursor:pointer}.upgrade-banner-cta[data-v-031838d6]:hover{color:var(--color-accent-hover)}.empty-composer[data-v-031838d6] .composer-card{position:relative;z-index:var(--z-sticky)}.empty-composer[data-v-031838d6]:not(.expanded) .ph{min-height:3lh}.ws-bar[data-v-031838d6]{margin-top:calc(-1 * var(--space-4));padding:calc(var(--space-4) + var(--space-2)) var(--space-2) var(--space-2);background:color-mix(in srgb,var(--color-hover) 60%,transparent);border-radius:0 0 var(--radius-2xl) var(--radius-2xl);font-family:var(--font-ui)}.ws-anchor[data-v-031838d6]{position:relative}.ws-chip[data-v-031838d6]{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;padding:var(--space-2) var(--space-3);background:none;border:none;border-radius:var(--radius-full);color:var(--color-text-muted);font-family:inherit;font-size:var(--ui-font-size-sm);cursor:pointer;transition:background var(--duration-base) var(--ease-out)}.ws-chip[data-v-031838d6]:hover,.ws-chip.open[data-v-031838d6]{background:var(--color-selected);color:var(--color-text)}.ws-chip[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-chip>.kw-icon[data-v-031838d6]{flex:none}.ws-chip-name[data-v-031838d6]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:var(--weight-option-label)}.ws-chip-chev[data-v-031838d6]{flex:none;transition:transform var(--duration-base) var(--ease-out)}.ws-chip.open .ws-chip-chev[data-v-031838d6]{transform:rotate(180deg)}.ws-chip.ws-ghost[data-v-031838d6]{color:var(--color-text-muted)}.ws-chip.ws-ghost[data-v-031838d6]:hover{color:var(--color-text)}.ws-backdrop[data-v-031838d6]{position:fixed;inset:0;z-index:var(--z-sticky)}.ws-panel[data-v-031838d6]{position:absolute;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);left:0;top:calc(100% + var(--space-1));z-index:var(--z-dropdown);width:max-content;min-width:min(calc(var(--space-8) * 8),100%);max-width:100%;max-height:calc(var(--space-8) * 10);overflow:hidden auto;background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);border:.5px solid var(--color-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:var(--space-1);animation:ws-pop-031838d6 var(--duration-base) var(--ease-out)}.ws-panel.up[data-v-031838d6]{top:auto;bottom:calc(100% + var(--space-1));animation-name:ws-pop-up-031838d6}@keyframes ws-pop-031838d6{0%{opacity:0;transform:translateY(calc(-1 * var(--space-1))) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ws-pop-up-031838d6{0%{opacity:0;transform:translateY(var(--space-1)) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.ws-caption[data-v-031838d6]{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--color-text-faint);user-select:none}.ws-row[data-v-031838d6]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-1) var(--space-2);cursor:pointer;font-family:var(--font-ui)}.ws-row>.kw-icon[data-v-031838d6]{flex:none;color:var(--muted)}.ws-row[data-v-031838d6]:hover{background:var(--color-hover)}.ws-row.on[data-v-031838d6]{background:var(--color-selected)}.ws-row[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.ws-info[data-v-031838d6]{flex:1;min-width:0;display:flex;flex-direction:column}.ws-name[data-v-031838d6]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-option-label);color:var(--color-text);line-height:var(--leading-normal)}.ws-path[data-v-031838d6]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:var(--weight-option-label);color:var(--muted);line-height:var(--leading-normal)}.ws-check[data-v-031838d6]{flex:none;margin-left:var(--space-3);color:var(--color-text)}.ws-divider[data-v-031838d6]{height:1px;margin:var(--space-1) var(--space-2);background:var(--line)}.ws-action[data-v-031838d6]{display:flex;align-items:center;gap:var(--space-2);width:100%;text-align:left;background:none;border:none;border-radius:var(--radius-dropdown-row);padding:var(--space-2);cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--dim)}.ws-action>.kw-icon[data-v-031838d6]{flex:none;color:var(--muted)}.ws-action span[data-v-031838d6]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-action[data-v-031838d6]:hover{background:var(--color-hover);color:var(--color-text)}.ws-action:hover>.kw-icon[data-v-031838d6]{color:var(--dim)}.ws-action[data-v-031838d6]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chat-scroll[data-v-031838d6]{display:flex;flex-direction:column}.mobile .panes[data-v-031838d6]:has(>.chat-layout){overflow:hidden;scrollbar-gutter:auto}.newmsg-pill[data-v-031838d6]{position:absolute;left:50%;bottom:12px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:.5px solid var(--line);background:var(--panel);color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-ui-strong);cursor:pointer;box-shadow:var(--shadow-sm);z-index:var(--z-sticky)}.pill-chevron[data-v-031838d6]{width:12px;height:12px}.pill-enter-active[data-v-031838d6],.pill-leave-active[data-v-031838d6]{transition:opacity .2s ease,transform .2s ease}.pill-enter-from[data-v-031838d6],.pill-leave-to[data-v-031838d6]{opacity:0;transform:translate(-50%) translateY(8px)}.undo-toast[data-v-031838d6]{position:absolute;left:50%;top:60px;transform:translate(-50%);padding:8px 14px;border-radius:var(--radius-sm);background:var(--color-text);color:var(--bg);font-size:var(--ui-font-size-sm);z-index:var(--z-sticky);box-shadow:var(--shadow-sm)}.undo-toast-text[data-v-031838d6]{display:flex;align-items:center;gap:8px}.undo-toast-enter-active[data-v-031838d6],.undo-toast-leave-active[data-v-031838d6]{transition:opacity .15s ease,transform .15s ease}.undo-toast-enter-from[data-v-031838d6],.undo-toast-leave-to[data-v-031838d6]{opacity:0;transform:translate(-50%) translateY(-6px)}.con[data-v-031838d6]{background:var(--bg)}.newmsg-pill[data-v-031838d6]{font-family:var(--sans)}.sa-select[data-v-559b928b]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:30px;padding:0 var(--space-3);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-559b928b]:hover,.sa-select.is-open[data-v-559b928b]{background:var(--color-hover)}.sa-select-chev[data-v-559b928b]{color:var(--color-text-faint)}.sa-menu[data-v-559b928b]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-check[data-v-559b928b]{display:inline-flex;flex:none;width:14px}.sa-dot[data-v-559b928b]{flex:none;width:8px;height:8px;border-radius:var(--radius-full)}.sa-dot--open[data-v-559b928b]{background:var(--color-success)}.sa-dot--done[data-v-559b928b]{background:var(--color-done)}.menu-pop-enter-active[data-v-559b928b]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-559b928b]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-559b928b],.menu-pop-leave-to[data-v-559b928b]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-select[data-v-08fc2991]{display:inline-flex;align-items:center;gap:var(--space-1-5);min-height:30px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-md);background:transparent;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--weight-option-label);line-height:1;white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.sa-select[data-v-08fc2991]:hover,.sa-select.is-open[data-v-08fc2991]{background:var(--color-hover)}.sa-select[data-v-08fc2991]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.sa-select-chev[data-v-08fc2991]{color:var(--color-text-faint)}.sa-tag[data-v-08fc2991]{display:inline-flex;align-items:center;gap:1px;height:20px;padding:0 2px 0 var(--space-1-5);border-radius:var(--radius-xs);background:var(--color-selected);font-size:var(--text-xs)}.sa-tag-name[data-v-08fc2991]{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-tag-x[data-v-08fc2991]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:var(--color-text-faint);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-tag-x[data-v-08fc2991]:hover{background:var(--color-hover);color:var(--color-text)}.sa-tag-more[data-v-08fc2991]{color:var(--color-text-muted);font-size:var(--text-xs)}.sa-menu[data-v-08fc2991]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-search[data-v-08fc2991]{display:flex;align-items:center;gap:7px;padding:5px 9px;color:var(--color-text-faint)}.sa-search-input[data-v-08fc2991]{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-sm);line-height:var(--leading-tight)}.sa-search-input[data-v-08fc2991]::placeholder{color:var(--color-text-faint)}.sa-ws-name[data-v-08fc2991]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-opts[data-v-08fc2991]{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.sa-menu-empty[data-v-08fc2991]{padding:5px 9px;color:var(--color-text-faint);font-size:var(--text-sm)}.menu-pop-enter-active[data-v-08fc2991]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-08fc2991]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-08fc2991],.menu-pop-leave-to[data-v-08fc2991]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-menu[data-v-770e2854]{position:fixed;top:0;left:0;z-index:var(--z-dropdown)}.sa-menu-head[data-v-770e2854]{padding:var(--space-1) var(--space-2) var(--space-05);color:var(--color-text-faint);font-size:var(--text-xs);user-select:none}.menu-pop-enter-active[data-v-770e2854]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.menu-pop-leave-active[data-v-770e2854]{transition:opacity var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out);pointer-events:none}.menu-pop-enter-from[data-v-770e2854],.menu-pop-leave-to[data-v-770e2854]{opacity:0;transform:scale(.97) translateY(var(--menu-pop-shift, -2px))}.sa-table-card[data-v-9b9dc9c2]{border:.5px solid var(--color-line);border-radius:var(--radius-lg);background:var(--color-bg);overflow-x:auto;container-type:inline-size;transition:opacity var(--duration-fast) var(--ease-out)}.sa-table-card.is-loading[data-v-9b9dc9c2]{opacity:.45;pointer-events:none}table[data-v-9b9dc9c2]{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed}.sa-col-cb[data-v-9b9dc9c2]{width:36px}.sa-col-title[data-v-9b9dc9c2]{width:max(200px,20%)}.sa-col-ws[data-v-9b9dc9c2]{width:116px}.sa-col-status[data-v-9b9dc9c2]{width:88px}.sa-col-time[data-v-9b9dc9c2]{width:140px}.sa-col-act[data-v-9b9dc9c2]{width:84px}.sa-time--compact[data-v-9b9dc9c2]{display:none}@container (max-width: 1020px){.sa-col-time[data-v-9b9dc9c2]{width:108px}.sa-time--full[data-v-9b9dc9c2]{display:none}.sa-time--compact[data-v-9b9dc9c2]{display:inline}}@container (max-width: 760px){col.sa-col-time[data-v-9b9dc9c2],.sa-c-time[data-v-9b9dc9c2]{display:none}.sa-col-ws[data-v-9b9dc9c2]{width:96px}}thead th[data-v-9b9dc9c2]{height:32px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium);text-align:left;white-space:nowrap;user-select:none}th.sa-col-cb[data-v-9b9dc9c2],td.sa-col-cb[data-v-9b9dc9c2]{padding-right:0}tbody td[data-v-9b9dc9c2]{height:40px;padding:0 var(--space-3);border-bottom:.5px solid var(--color-subtle);font-size:var(--text-sm);line-height:var(--leading-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}tbody tr:last-child td[data-v-9b9dc9c2]{border-bottom:none}tbody tr[data-v-9b9dc9c2]{transition:background var(--duration-fast) var(--ease-out)}tbody tr[data-v-9b9dc9c2]:hover{background:var(--color-hover)}.sa-cb[data-v-9b9dc9c2]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:.5px solid var(--color-line-strong);border-radius:var(--radius-xs);color:var(--color-text-on-accent);vertical-align:middle;transition:background var(--duration-fast) var(--ease-out),border-color var(--duration-fast) var(--ease-out)}.sa-cb[data-v-9b9dc9c2]:hover{border-color:var(--color-text-faint)}.sa-cb.on[data-v-9b9dc9c2],.sa-cb.ind[data-v-9b9dc9c2]{background:var(--color-accent);border-color:var(--color-accent)}.sa-batch-inner[data-v-9b9dc9c2]{display:flex;align-items:center;gap:var(--space-2)}.sa-batch-count[data-v-9b9dc9c2]{margin-right:var(--space-1);color:var(--color-text-muted);font-size:var(--text-sm);white-space:nowrap;user-select:none}.sa-batch-link[data-v-9b9dc9c2]{display:inline-flex;align-items:center;height:24px;padding:0 var(--space-1);border:none;background:transparent;color:var(--color-accent);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.sa-batch-link[data-v-9b9dc9c2]:hover{text-decoration:underline}.sa-batch-link[data-v-9b9dc9c2]:disabled{color:var(--color-text-faint);cursor:default;text-decoration:none}.sa-btn-q[data-v-9b9dc9c2]{display:inline-flex;align-items:center;gap:var(--space-1-5);height:24px;padding:0 var(--space-2);border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:transparent;color:var(--color-text);font-size:var(--text-xs);font-weight:var(--weight-medium);line-height:1;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-btn-q[data-v-9b9dc9c2]:hover{background:var(--color-hover)}.sa-btn-q[data-v-9b9dc9c2]:disabled{opacity:.42;cursor:default}.sa-btn-q[data-v-9b9dc9c2]:disabled:hover{background:transparent}.sa-btn-q[data-v-9b9dc9c2] :first-child{color:var(--color-text-muted)}.sa-btn-q[data-v-9b9dc9c2]:hover :first-child{color:var(--color-text)}.sa-btn-q--primary[data-v-9b9dc9c2],.sa-btn-q--primary[data-v-9b9dc9c2] :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-9b9dc9c2]:hover,.sa-btn-q--primary[data-v-9b9dc9c2]:hover :first-child{border-color:var(--color-accent-hover);background:var(--color-accent-hover);color:var(--color-text-on-accent)}.sa-btn-q--primary[data-v-9b9dc9c2]:disabled,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled:hover,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled :first-child,.sa-btn-q--primary[data-v-9b9dc9c2]:disabled:hover :first-child{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-text-on-accent)}.sa-st[data-v-9b9dc9c2]{display:inline-flex;align-items:center;gap:var(--space-1-5)}.sa-st--open[data-v-9b9dc9c2]{color:var(--color-success)}.sa-st--done[data-v-9b9dc9c2]{color:var(--color-done)}.sa-title[data-v-9b9dc9c2]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-weight:var(--weight-option-label)}.sa-rename[data-v-9b9dc9c2]{width:100%;height:26px;padding:0 var(--space-1-5);border:1px solid var(--color-accent);border-radius:var(--radius-sm);outline:none;box-shadow:0 0 0 2px var(--color-accent-bd);background:var(--color-bg);color:var(--color-text);font-family:inherit;font-size:var(--text-sm)}.sa-ws[data-v-9b9dc9c2]{display:inline-flex;align-items:center;max-width:100%;color:var(--color-text-muted)}.sa-ws span[data-v-9b9dc9c2]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-prompt[data-v-9b9dc9c2]{color:var(--color-text-muted)}.sa-time[data-v-9b9dc9c2]{color:var(--color-text-muted);font-family:var(--font-mono);font-size:var(--text-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.sa-none[data-v-9b9dc9c2]{color:var(--color-text-faint)}.sa-act[data-v-9b9dc9c2]{display:flex;align-items:center;gap:var(--space-05)}.sa-state[data-v-9b9dc9c2]{display:flex;align-items:center;justify-content:center;padding:calc(var(--space-8) + var(--space-6)) var(--space-4)}.sa-empty[data-v-9b9dc9c2]{color:var(--color-text-faint);font-size:var(--text-sm)}.sa-pager[data-v-a27fa76f]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-3)}.sa-total[data-v-a27fa76f]{color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;user-select:none}.sa-pager-right[data-v-a27fa76f]{display:flex;align-items:center;gap:var(--space-3)}.sa-pages[data-v-a27fa76f]{display:flex;align-items:center;gap:var(--space-05)}.sa-pg[data-v-a27fa76f]{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 var(--space-1-5);border:none;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-muted);font-size:var(--text-sm);font-variant-numeric:tabular-nums;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.sa-pg[data-v-a27fa76f]:hover{background:var(--color-hover);color:var(--color-text)}.sa-pg.cur[data-v-a27fa76f]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.sa-pg.cur[data-v-a27fa76f]:hover{background:var(--color-selected)}.sa-pg[data-v-a27fa76f]:disabled{opacity:.38;cursor:default}.sa-pg[data-v-a27fa76f]:disabled:hover{background:transparent;color:var(--color-text-muted)}.sa-ellipsis[data-v-a27fa76f]{padding:0 var(--space-1);color:var(--color-text-faint);font-size:var(--text-sm);user-select:none}.session-admin[data-v-01565f3a]{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--color-bg);font-family:var(--font-ui)}.sa-scroll[data-v-01565f3a]{flex:1;min-height:0;overflow-y:auto}.sa-page[data-v-01565f3a]{padding:var(--space-8) var(--space-6);display:flex;flex-direction:column;box-sizing:border-box}.sa-head[data-v-01565f3a]{flex:none;display:flex;align-items:center;gap:var(--space-2);height:48px;padding:0 var(--space-6);border-bottom:.5px solid var(--color-line);box-sizing:border-box}.sa-title[data-v-01565f3a]{margin:0;font-size:var(--text-base);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);user-select:none}.sa-subtitle[data-v-01565f3a]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.session-admin.macos-desktop .sa-head[data-v-01565f3a]{-webkit-app-region:drag}.session-admin.macos-desktop .sa-head button[data-v-01565f3a],.session-admin.macos-desktop .sa-head input[data-v-01565f3a]{-webkit-app-region:no-drag}.sa-filters[data-v-01565f3a]{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)}.sa-f-label[data-v-01565f3a]{margin-left:var(--space-2);color:var(--color-text-muted);font-size:var(--text-sm);user-select:none}.sa-f-label[data-v-01565f3a]:first-child{margin-left:0}.sa-f-actions[data-v-01565f3a]{display:inline-flex;align-items:center;gap:var(--space-2);margin-left:var(--space-2)}.file-preview[data-v-9a4f39c9]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono);min-width:0;container-type:inline-size}.fp-empty[data-v-9a4f39c9],.fp-loading[data-v-9a4f39c9]{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:var(--ui-font-size)}.fp-path[data-v-9a4f39c9]{flex:1 1 60px;min-width:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left;font-size:var(--ui-font-size-xs);color:var(--muted);font-weight:400}.fp-meta[data-v-9a4f39c9]{display:flex;align-items:center;gap:8px;flex:none}@container (max-width: 539px){.fp-meta[data-v-9a4f39c9]{display:none}}.fp-lines[data-v-9a4f39c9],.fp-size[data-v-9a4f39c9]{font-size:max(9px,calc(var(--ui-font-size) - 3.5px));color:var(--muted);white-space:nowrap}.fp-search[data-v-9a4f39c9]{display:flex;align-items:center;gap:4px;flex:1 1 110px;min-width:70px;max-width:200px}.fp-search-input[data-v-9a4f39c9]{flex:1;min-width:0;height:26px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);padding:2px 7px;background:var(--color-surface-raised);color:var(--color-text);font:var(--text-xs) var(--font-mono)}.fp-search-count[data-v-9a4f39c9]{color:var(--muted);font-size:max(9px,calc(var(--ui-font-size) - 3.5px));min-width:18px;text-align:right}.fp-download[data-v-9a4f39c9]{display:inline-grid;place-items:center;width:26px;height:26px;flex:none;border-radius:var(--radius-sm);color:var(--color-text-muted)}.fp-download[data-v-9a4f39c9]:hover{background:var(--color-hover);color:var(--color-text)}.fp-download[data-v-9a4f39c9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.fp-download svg[data-v-9a4f39c9]{width:var(--p-ic-sm);height:var(--p-ic-sm)}.fp-check[data-v-9a4f39c9]{color:var(--color-success)}.fp-body[data-v-9a4f39c9]{--fp-search-hit-bg: color-mix(in srgb, var(--star) 22%, var(--bg));--fp-search-active-bg: color-mix(in srgb, var(--star) 36%, var(--bg));flex:1;min-height:0;overflow:auto}.fp-markdown[data-v-9a4f39c9]{padding:16px 20px}.fp-code[data-v-9a4f39c9]{background:var(--bg)}.fp-code[data-v-9a4f39c9] .hl-row.hit,.fp-table tr.hit td[data-v-9a4f39c9]{background:var(--fp-search-hit-bg)}.fp-code[data-v-9a4f39c9] .hl-row.active,.fp-table tr.active td[data-v-9a4f39c9]{background:var(--fp-search-active-bg)}.fp-code[data-v-9a4f39c9] .hl-row.target,.fp-table tr.target th[data-v-9a4f39c9],.fp-table tr.target td[data-v-9a4f39c9]{background:var(--color-accent-soft)}.fp-html-frame[data-v-9a4f39c9],.fp-pdf-frame[data-v-9a4f39c9]{width:100%;height:100%;border:0;background:var(--color-surface-raised)}.fp-pdf-wrap[data-v-9a4f39c9]{background:var(--panel2)}.fp-table-wrap[data-v-9a4f39c9]{background:var(--bg)}.fp-table[data-v-9a4f39c9]{border-collapse:collapse;min-width:100%;font:var(--code-font-size)/var(--leading-normal) var(--mono)}.fp-table th[data-v-9a4f39c9]{position:sticky;left:0;z-index:1;width:44px;min-width:44px;padding:2px 8px;text-align:right;color:var(--faint);background:var(--panel);border-right:.5px solid var(--line2);user-select:none}.fp-table td[data-v-9a4f39c9]{padding:2px 10px;border-right:.5px solid var(--line2);border-bottom:.5px solid var(--line2);white-space:pre}.fp-image-wrap[data-v-9a4f39c9]{display:flex;align-items:center;justify-content:center;padding:24px;background:var(--panel2)}.fp-image[data-v-9a4f39c9]{max-width:100%;max-height:100%;object-fit:contain;border:.5px solid var(--line);border-radius:4px;background:var(--media-alpha-canvas)}.fp-image.actual[data-v-9a4f39c9]{max-width:none;max-height:none}.fp-binary-wrap[data-v-9a4f39c9]{display:flex;align-items:center;justify-content:center}.fp-binary-card[data-v-9a4f39c9]{display:flex;align-items:center;gap:12px;padding:20px 24px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:var(--ui-font-size);margin:32px auto;max-width:480px}.fp-binary-icon[data-v-9a4f39c9]{color:var(--faint);flex:none}.fp-error[data-v-9a4f39c9]{flex-direction:column;padding:24px;text-align:center}@keyframes spin-9a4f39c9{to{transform:rotate(360deg)}}.spinner[data-v-9a4f39c9]{display:inline-block;width:14px;height:14px;border:.5px solid var(--line);border-top-color:var(--color-accent);border-radius:50%;animation:spin-9a4f39c9 .7s linear infinite}@media(max-width:640px){.fp-lines[data-v-9a4f39c9]{display:none}.fp-markdown[data-v-9a4f39c9]{padding:14px 16px}.fp-body.fp-code[data-v-9a4f39c9]{-webkit-overflow-scrolling:touch}}.fp-empty[data-v-9a4f39c9],.fp-loading[data-v-9a4f39c9]{font-family:var(--sans)}.fp-binary-card[data-v-9a4f39c9]{border:.5px solid var(--color-line);border-radius:var(--radius-md)}.fp-binary-label[data-v-9a4f39c9]{font-family:var(--sans)}.fp-image[data-v-9a4f39c9]{border-radius:var(--radius-md)}.seg-btn[data-v-9a4f39c9]{font-family:var(--sans)}.tp[data-v-afb1f46f]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--color-bg)}.tp-body[data-v-afb1f46f]{flex:1;min-height:0;overflow-y:auto;margin:0;padding:12px 14px;font:var(--text-base)/var(--leading-relaxed) var(--font-ui);font-weight:400;color:var(--color-text-muted);white-space:pre-wrap;word-break:break-word}.agent-panel[data-v-87af6ca2]{height:100%;min-height:0;display:flex;flex-direction:column;background:var(--color-bg)}.agent-transcript[data-v-87af6ca2]{flex:1;min-height:0;overflow-y:auto}.agent-transcript[data-v-87af6ca2] .think-body,.agent-transcript[data-v-87af6ca2] .ar-body,.agent-transcript[data-v-87af6ca2] .tf-body,.agent-transcript[data-v-87af6ca2] .bb,.agent-transcript[data-v-87af6ca2] .tl-body{transition:none}.agent-error[data-v-87af6ca2]{color:var(--color-danger);font:var(--text-sm)/var(--leading-normal) var(--font-ui)}.copy-menu[data-v-87af6ca2]{position:fixed;z-index:var(--z-dropdown)}.agent-fallback[data-v-87af6ca2]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4)}.sc[data-v-ce2b775d]{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--bg)}.sc-body[data-v-ce2b775d]{flex:1;min-height:0;overflow-y:auto}.sc-empty[data-v-ce2b775d]{padding:24px 16px;text-align:center;color:var(--muted);font-size:var(--ui-font-size)}.sc-composer[data-v-ce2b775d]{flex:none;display:flex;align-items:flex-end;gap:6px;padding:8px 10px;border-top:.5px solid var(--color-line);background:var(--color-surface-raised)}.sc-input[data-v-ce2b775d]{flex:1;min-width:0;resize:none;border:.5px solid var(--color-line);border-radius:var(--r-sm);padding:7px 9px;background:var(--bg);color:var(--color-text);font:var(--ui-font-size)/1.5 var(--sans);outline:none;max-height:160px}.sc-input[data-v-ce2b775d]:focus{border-color:var(--color-accent-bd)}.sc-send[data-v-ce2b775d]{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:var(--r-sm);background:var(--color-accent);color:var(--color-text-on-accent);cursor:pointer}.sc-send[data-v-ce2b775d]:disabled{opacity:.4;cursor:default}.sc-send[data-v-ce2b775d]:not(:disabled):hover{background:var(--color-accent-hover)}.sc-loading[data-v-ce2b775d]{flex:none;padding:8px 12px 12px}.sc-body[data-v-ce2b775d] .sending-placeholder,.sc-body[data-v-ce2b775d] .sending-line{display:none}.changes-pane[data-v-7d5ab9c7]{display:flex;flex-direction:column;height:100%;background:var(--bg);font-family:var(--mono)}.dv-path[data-v-7d5ab9c7],.dv-change-count[data-v-7d5ab9c7]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:var(--ui-font-size-xs);color:var(--muted)}.dv-change-count[data-v-7d5ab9c7]{flex:1;align-self:stretch;display:inline-flex;align-items:center;font-family:var(--font-ui)}.dv-path[data-v-7d5ab9c7]{font-family:var(--font-ui)}.ch-head[data-v-7d5ab9c7]{display:flex;align-items:center;gap:8px;padding:8px var(--space-3);border-bottom:.5px solid var(--line);background:var(--panel);font-size:var(--text-base);color:var(--dim);flex:none;white-space:nowrap;overflow:hidden;font-family:var(--font-ui);user-select:none}.br-heading[data-v-7d5ab9c7]{display:inline-flex;align-items:center;gap:var(--space-1);flex:none}.br-icon[data-v-7d5ab9c7]{flex:none;color:var(--muted)}.br-label[data-v-7d5ab9c7]{color:var(--muted);font-size:var(--text-xs);font-weight:500}.br-name[data-v-7d5ab9c7]{color:var(--color-text);font-weight:500;font-size:var(--text-xs)}.sync-info[data-v-7d5ab9c7]{display:flex;align-items:center;gap:4px}.ahead[data-v-7d5ab9c7]{color:var(--color-accent);font-size:var(--text-xs)}.behind[data-v-7d5ab9c7]{color:var(--color-warning);font-size:var(--text-xs)}.empty-head[data-v-7d5ab9c7]{color:var(--muted);font-size:var(--text-base)}.ch-list[data-v-7d5ab9c7]{flex:1;min-height:0}.ch-list-content[data-v-7d5ab9c7]{min-height:100%;padding:4px 0}.ch-row[data-v-7d5ab9c7]{display:flex;align-items:center;gap:6px;padding:3px 8px;cursor:pointer;font-size:var(--text-xs);line-height:1.6;width:100%;background:none;border:none;text-align:left;font-family:var(--font-ui);color:inherit}.ch-row[data-v-7d5ab9c7]:hover{background:var(--panel2)}.ch-row[data-v-7d5ab9c7]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.ch-tree[data-v-7d5ab9c7]{--tree-base-indent: 14px;--tree-indent-step: 12px;font-family:var(--font-ui)}.tree-list[data-v-7d5ab9c7]{list-style:none;margin:0}.tree-node[data-v-7d5ab9c7]{overflow:hidden;interpolate-size:allow-keywords}.tree-collapse-enter-active[data-v-7d5ab9c7],.tree-collapse-leave-active[data-v-7d5ab9c7]{transition:block-size var(--duration-base) var(--ease-out),opacity var(--duration-fast) var(--ease-out),transform var(--duration-base) var(--ease-out)}.tree-collapse-enter-from[data-v-7d5ab9c7],.tree-collapse-leave-to[data-v-7d5ab9c7]{block-size:0;opacity:0;transform:translateY(-3px)}.tree-collapse-enter-to[data-v-7d5ab9c7],.tree-collapse-leave-from[data-v-7d5ab9c7]{block-size:auto;opacity:1;transform:translateY(0)}.tree-row[data-v-7d5ab9c7]{position:relative;display:flex;align-items:center;gap:6px;width:100%;margin-top:1px;padding:3px 8px;background:none;border:none;text-align:left;font-family:inherit;font-size:var(--text-xs);color:inherit;cursor:pointer}.tree-row[data-v-7d5ab9c7]:before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--tree-base-indent) + 6px);width:calc(var(--tree-depth, 0) * var(--tree-indent-step));background:repeating-linear-gradient(to right,var(--color-line) 0 1px,transparent 1px var(--tree-indent-step));pointer-events:none}.tree-row[data-v-7d5ab9c7]:hover{background:var(--panel2)}.tree-row[data-v-7d5ab9c7]:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.tree-folder[data-v-7d5ab9c7]{color:var(--color-text);font-weight:500}.tree-file[data-v-7d5ab9c7]{color:var(--color-text);font-weight:450}.tree-icon[data-v-7d5ab9c7]{flex:none;color:var(--muted)}.tree-name[data-v-7d5ab9c7]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-7d5ab9c7]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:var(--radius-xs);font-size:max(9px,calc(var(--ui-font-size) - 4px));font-weight:500;flex:none;user-select:none}.badge.modified[data-v-7d5ab9c7]{background:var(--color-warning-soft);color:var(--color-warning)}.badge.added[data-v-7d5ab9c7]{background:var(--color-success-soft);color:var(--color-success)}.badge.deleted[data-v-7d5ab9c7]{background:var(--color-danger-soft);color:var(--color-danger)}.badge.renamed[data-v-7d5ab9c7]{background:var(--color-done-soft);color:var(--color-done)}.badge.untracked[data-v-7d5ab9c7]{background:var(--color-success-soft);color:var(--color-success)}.badge.conflicted[data-v-7d5ab9c7]{background:color-mix(in srgb,var(--color-danger) 10%,var(--bg));color:var(--color-danger);font-size:max(9px,calc(var(--ui-font-size) - 5px))}.badge.ignored[data-v-7d5ab9c7]{background:var(--color-well);color:var(--faint)}.badge.clean[data-v-7d5ab9c7]{background:transparent;color:var(--faint)}.badge.unknown[data-v-7d5ab9c7]{background:var(--color-well);color:var(--muted)}.fpath[data-v-7d5ab9c7]{color:var(--color-text);font-size:var(--text-xs);font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left;min-width:0}.fpath[data-v-7d5ab9c7]:before,.fpath[data-v-7d5ab9c7]:after{content:"‎"}.empty-state[data-v-7d5ab9c7]{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:32px 20px;color:var(--muted);font-size:var(--ui-font-size);text-align:center;user-select:none}.empty-state-icon[data-v-7d5ab9c7]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--color-well);color:var(--color-text-muted)}.diff-head[data-v-7d5ab9c7]{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:.5px solid var(--line);background:var(--panel);flex:none;white-space:nowrap;overflow:hidden}.dv-lines-wrap[data-v-7d5ab9c7]{flex:1;min-height:0;overflow:auto}.diff-content-enter-active[data-v-7d5ab9c7],.diff-content-leave-active[data-v-7d5ab9c7]{transition:opacity var(--duration-base) var(--ease-out)}.diff-content-enter-from[data-v-7d5ab9c7],.diff-content-leave-to[data-v-7d5ab9c7]{opacity:0}@media(max-width:640px){.ch-head[data-v-7d5ab9c7]{padding:10px 14px}.ch-list[data-v-7d5ab9c7]{padding:2px 0 12px}.ch-row[data-v-7d5ab9c7]{min-height:44px;padding:8px 14px;gap:12px;font-size:var(--text-xs)}.ch-row[data-v-7d5ab9c7]:active{background:var(--panel2)}.badge[data-v-7d5ab9c7]{width:18px;height:18px}.fpath[data-v-7d5ab9c7]{font-size:var(--text-xs)}.tree-row[data-v-7d5ab9c7]{min-height:40px;padding:8px 14px}.diff-head[data-v-7d5ab9c7]{padding:8px 12px;gap:10px}.diff-path[data-v-7d5ab9c7]{font-size:var(--text-base)}}.changes-pane .empty-state[data-v-7d5ab9c7],.br-label[data-v-7d5ab9c7],.empty-head[data-v-7d5ab9c7]{font-family:var(--sans)}.ch-row[data-v-7d5ab9c7],.ct-row[data-v-7d5ab9c7]{margin:1px 6px;width:calc(100% - 12px);border-radius:var(--radius-md)}.changes-pane .badge[data-v-7d5ab9c7],.changed-tree .badge[data-v-7d5ab9c7]{border-radius:var(--radius-sm)}.change-count[data-v-7d5ab9c7]{font-family:var(--sans);border-radius:999px}.td[data-v-fdd0bc05]{display:flex;flex-direction:column;height:100%;min-height:0}.td-path[data-v-fdd0bc05]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--ui-c1) var(--font-mono);color:var(--color-text-muted)}.td-body[data-v-fdd0bc05]{flex:1;min-height:0;overflow:auto}.td-empty[data-v-fdd0bc05]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);height:100%;padding:var(--space-6);color:var(--color-text-muted);font-size:var(--text-sm);text-align:center}.mp[data-v-87452cd9]{display:flex;flex-direction:column;gap:var(--space-2);height:100%;min-height:0;padding-top:4px}.mp--sheet[data-v-87452cd9]{height:auto;padding-top:0}.mp--sheet .search-wrap[data-v-87452cd9],.mp--sheet .chip-strip[data-v-87452cd9]{margin:0 16px}.search-wrap[data-v-87452cd9]{position:relative;margin:0 22px;padding-bottom:var(--space-1)}.search-wrap[data-v-87452cd9] .ui-input{padding-right:30px}.search-clear[data-v-87452cd9]{position:absolute;top:0;bottom:var(--space-1);right:var(--space-2);margin-block:auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--radius-full);background:var(--color-hover);color:var(--color-text-faint);cursor:pointer;visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast),background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.search-clear.is-on[data-v-87452cd9]{visibility:visible;opacity:1}.search-clear[data-v-87452cd9]:hover{background:var(--color-selected);color:var(--color-text-muted)}.search-clear[data-v-87452cd9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.chip-strip[data-v-87452cd9]{display:flex;gap:var(--space-1);margin:0 22px;overflow-x:auto;scrollbar-width:none}.chip-strip[data-v-87452cd9]::-webkit-scrollbar{display:none}.chip[data-v-87452cd9]{flex:none;height:28px;padding:0 var(--space-3);border:none;border-radius:var(--radius-full);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base);white-space:nowrap;cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.chip[data-v-87452cd9]:hover{background:var(--color-hover);color:var(--color-text)}.chip.is-active[data-v-87452cd9]{background:var(--color-selected);color:var(--color-text);font-weight:var(--weight-medium)}.chip[data-v-87452cd9]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.model-list[data-v-87452cd9]{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:var(--space-1) var(--space-2)}.model-row[data-v-87452cd9]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);cursor:pointer;color:var(--color-text);min-width:0;transition:background var(--duration-fast) var(--ease-out)}.model-row[data-v-87452cd9]:hover,.model-row.is-selected[data-v-87452cd9]{background:var(--color-hover)}.model-row.is-current[data-v-87452cd9]{background:var(--color-selected)}.model-main[data-v-87452cd9]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-name[data-v-87452cd9]{font-family:var(--font-ui);font-size:var(--text-base);line-height:20px;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row.is-current .model-name[data-v-87452cd9]{font-weight:var(--weight-medium)}.model-meta[data-v-87452cd9]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:18px;color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-side[data-v-87452cd9]{display:flex;align-items:center;gap:var(--space-1);flex:none}.model-check[data-v-87452cd9]{color:var(--color-text)}.model-star[data-v-87452cd9]{color:var(--color-text-faint);visibility:hidden;opacity:0;transition:opacity var(--duration-fast) var(--ease-out),visibility var(--duration-fast)}.model-row:hover .model-star[data-v-87452cd9],.model-row.is-selected .model-star[data-v-87452cd9],.model-star.is-starred[data-v-87452cd9],.model-star[data-v-87452cd9]:focus-visible{visibility:visible;opacity:1}.model-star.is-starred[data-v-87452cd9]{color:var(--star)}@media(hover:none){.model-star[data-v-87452cd9]{visibility:visible;opacity:1}}.state-row[data-v-87452cd9]{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:var(--space-2);color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.state-row.unavail[data-v-87452cd9]{color:var(--color-warning)}.empty[data-v-87452cd9]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.footer-hint[data-v-87452cd9]{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-top:.5px solid var(--color-line);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.hint-dot[data-v-87452cd9]{margin:0 var(--space-1)}@media(hover:none){.footer-hint[data-v-87452cd9]{display:none}}@media(prefers-reduced-motion:reduce){.chip[data-v-87452cd9],.model-row[data-v-87452cd9],.model-star[data-v-87452cd9],.search-clear[data-v-87452cd9]{transition:none}}.brand-logo[data-v-f04205a8]{display:block;flex:none;cursor:pointer;user-select:none;touch-action:manipulation}.nb-cards[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-2) 0 var(--space-4)}.center-body[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-8) 0 var(--space-4);text-align:center}.center-text[data-v-99a1a98a]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.success-text[data-v-99a1a98a]{color:var(--color-success)}.err-text[data-v-99a1a98a]{color:var(--color-danger)}.warn-text[data-v-99a1a98a]{color:var(--color-warning);font-size:var(--text-base)}.center-hint[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted)}.nb[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-4)}.nb-hero[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.nb-hero-icon[data-v-99a1a98a]{display:inline-flex;margin-bottom:var(--space-1)}.nb-hero-title[data-v-99a1a98a]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.nb-hero-hint[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.nb-manual[data-v-99a1a98a]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.nb-manual-label[data-v-99a1a98a]{font-size:var(--text-xs);color:var(--color-text-faint)}.nb-copy-text[data-v-99a1a98a]{margin-left:var(--space-2)}.nb-copy-text.is-copied[data-v-99a1a98a]{color:var(--color-success);text-decoration:none}.nb-or[data-v-99a1a98a]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.nb-or[data-v-99a1a98a]:before,.nb-or[data-v-99a1a98a]:after{content:"";flex:1;height:1px;background:var(--color-line)}.nb-fallback[data-v-99a1a98a]{display:flex;flex-direction:column;gap:var(--space-2)}.nb-fb-text[data-v-99a1a98a]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.nb-fb-link[data-v-99a1a98a]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.nb-fb-link[data-v-99a1a98a]:hover{border-bottom-color:var(--color-accent)}.nb-code-row[data-v-99a1a98a]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.nb-code[data-v-99a1a98a]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.nb-copy.is-copied[data-v-99a1a98a]{color:var(--color-success);border-color:var(--color-success-bd)}.actions[data-v-99a1a98a]{display:flex;justify-content:flex-end;gap:var(--space-3);padding-top:var(--space-4)}@media(max-width:640px){.center-body[data-v-99a1a98a],.nb[data-v-99a1a98a]{overflow-y:auto;-webkit-overflow-scrolling:touch}.nb-code-row[data-v-99a1a98a],.actions[data-v-99a1a98a]{flex-wrap:wrap}.nb-code[data-v-99a1a98a]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}.nb-copy[data-v-99a1a98a]{min-height:34px}}.pf-form[data-v-3164ed08]{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.pf-guard[data-v-3164ed08] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.pf-guard .msg[data-v-3164ed08]{flex:1}.pf-field[data-v-3164ed08]{display:flex;flex-direction:column;gap:6px}.pf-key-wrap[data-v-3164ed08]{position:relative}.pf-key-wrap[data-v-3164ed08] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.pf-key-eye[data-v-3164ed08]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.pf-field-label[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-3164ed08]{color:var(--color-danger)}.pf-models[data-v-3164ed08]{display:flex;flex-direction:column;gap:var(--space-2)}.pf-model-grid[data-v-3164ed08]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto;gap:var(--space-2);align-items:center}.pf-model-head span[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint)}.pf-models-empty[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.pf-foot[data-v-3164ed08]{display:flex;align-items:center;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.pf-foot .spacer[data-v-3164ed08]{flex:1}.pf-confirm-msg[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-danger)}.pf-managed-note[data-v-3164ed08]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}@media(max-width:640px){.pf-model-grid[data-v-3164ed08]{grid-template-columns:minmax(0,1fr) auto}}.af[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4) var(--space-4) var(--space-5);border-top:.5px solid var(--color-line)}.af-guard[data-v-9777a945] .ui-banner__text{display:flex;align-items:center;gap:var(--space-2);width:100%}.af-guard .msg[data-v-9777a945]{flex:1}.af-catalog[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-3)}.af-center[data-v-9777a945]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.af-error[data-v-9777a945]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}.af-list[data-v-9777a945]{display:flex;flex-direction:column;max-height:320px;overflow-y:auto;border:.5px solid var(--color-line);border-radius:var(--radius-md)}.af-list[data-v-9777a945]>*+*{border-top:.5px solid var(--color-line)}.af-entry[data-v-9777a945]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:34px;padding:var(--space-1) var(--space-3);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.af-entry[data-v-9777a945]:hover:not(:disabled){background:var(--color-hover)}.af-entry[data-v-9777a945]:disabled{cursor:not-allowed;opacity:.55}.af-entry-name[data-v-9777a945]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base);font-weight:var(--weight-medium)}.af-entry .grow[data-v-9777a945]{flex:1;min-width:0}.af-entry-count[data-v-9777a945],.af-entry-reason[data-v-9777a945]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.af-empty[data-v-9777a945]{padding:var(--space-4);text-align:center;color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm)}.af-import[data-v-9777a945],.af-registry[data-v-9777a945]{display:flex;flex-direction:column;gap:var(--space-4)}.af-hint[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-back[data-v-9777a945]{display:inline-flex;align-items:center;gap:var(--space-1);align-self:flex-start;padding:0;border:none;background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);cursor:pointer;transition:color var(--duration-fast) var(--ease-out)}.af-back[data-v-9777a945]:hover{color:var(--color-text)}.af-field[data-v-9777a945]{display:flex;flex-direction:column;gap:6px}.af-label[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted)}.req[data-v-9777a945]{color:var(--color-danger)}.af-key-wrap[data-v-9777a945]{position:relative}.af-key-wrap[data-v-9777a945] .ui-input{padding-right:calc(var(--icon-button-sm) + var(--space-2))}.af-key-eye[data-v-9777a945]{position:absolute;right:var(--space-1);top:50%;transform:translateY(-50%)}.af-note[data-v-9777a945]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-faint)}.af-foot[data-v-9777a945]{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-4);border-top:.5px solid var(--color-line)}.af-manual[data-v-9777a945] .pf-form{padding:0;border-top:none}.pp[data-v-193300c3]{display:flex;flex-direction:column}.pp-head[data-v-193300c3]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.pp-title[data-v-193300c3]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.pp-loading[data-v-193300c3]{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-4) 0;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-base)}.pp-group[data-v-193300c3]{overflow:hidden;border:.5px solid var(--color-line);border-radius:var(--radius-xl);background:var(--color-surface-raised)}.pp-group[data-v-193300c3]>*+*{border-top:.5px solid var(--color-line)}.pp-row[data-v-193300c3]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:40px;padding:var(--space-2) var(--space-4);border:none;background:transparent;text-align:left;font-family:var(--font-ui);color:var(--color-text);cursor:pointer;transition:background var(--duration-fast) var(--ease-out)}.pp-row[data-v-193300c3]:hover{background:var(--color-hover)}.pp-item.open>.pp-row[data-v-193300c3]{background:var(--color-surface-sunken)}.pp-row .grow[data-v-193300c3]{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-2)}.pp-id[data-v-193300c3]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-count[data-v-193300c3]{flex:none;font-size:var(--text-xs);color:var(--color-text-faint);white-space:nowrap}.pp-chev[data-v-193300c3]{display:inline-flex;flex:none;color:var(--color-text-faint);transition:transform var(--duration-base) var(--ease-out)}.pp-item.open .pp-chev[data-v-193300c3]{transform:rotate(90deg)}.pp-add-row[data-v-193300c3]{gap:var(--space-2);color:var(--color-text);font-size:var(--text-base);font-weight:var(--weight-medium)}.pp-acc[data-v-193300c3]{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--duration-slow) var(--ease-out)}.pp-item.open>.pp-acc[data-v-193300c3]{grid-template-rows:1fr}.pp-acc-in[data-v-193300c3]{overflow:hidden;min-height:0}.pp-item.open .pp-acc-in[data-v-193300c3]{overflow:visible}.pp-item.flash>.pp-row[data-v-193300c3]{animation:pp-flash-193300c3 1.2s var(--ease-out)}@keyframes pp-flash-193300c3{0%{background:var(--color-accent-soft)}to{background:transparent}}.pp-empty[data-v-193300c3]{padding:var(--space-5) var(--space-4);color:var(--color-text-faint);font-family:var(--font-ui);font-size:var(--text-sm);text-align:center}.sec[data-v-5711dff8]{margin-bottom:var(--space-5)}.sec-title[data-v-5711dff8]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-5711dff8]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-5711dff8]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4)}.pu-main[data-v-5711dff8]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-5711dff8]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-5711dff8]{font-size:var(--text-xs);color:var(--color-text-faint)}.sec[data-v-f39cdded]{margin-bottom:var(--space-5)}.sec-title[data-v-f39cdded]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text);margin:0 0 var(--space-3)}.pu-group[data-v-f39cdded]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.pu-row[data-v-f39cdded]{display:flex;align-items:center;gap:var(--space-3);min-height:52px;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.pu-row[data-v-f39cdded]:first-child{border-top:none}.pu-state[data-v-f39cdded]{color:var(--color-text-muted);font-size:var(--text-sm)}.pu-error-text[data-v-f39cdded]{flex:1;min-width:0}.pu-empty[data-v-f39cdded]{color:var(--color-text-faint)}.pu-main[data-v-f39cdded]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.pu-label[data-v-f39cdded]{font-size:var(--text-sm);color:var(--color-text)}.pu-hint[data-v-f39cdded]{font-size:var(--text-xs);color:var(--color-text-faint)}.pu-value[data-v-f39cdded]{flex:none;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);font-variant-numeric:tabular-nums;white-space:nowrap}.pu-value-sub[data-v-f39cdded]{font-weight:var(--weight-regular);color:var(--color-text-faint)}.pu-meter[data-v-f39cdded]{flex:none;width:120px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.pu-meter i[data-v-f39cdded]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent);transition:width var(--duration-base) var(--ease-out)}.pu-meter i.sev-warn[data-v-f39cdded]{background:var(--color-warning)}.pu-meter i.sev-danger[data-v-f39cdded]{background:var(--color-danger)}.sm-picker[data-v-0cf7dc4b]{position:relative;width:100%;font-family:var(--font-ui)}.sm-picker__trigger[data-v-0cf7dc4b]{display:flex;align-items:center;gap:var(--space-2);width:100%;height:38px;padding:0 var(--space-3);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:transparent;box-shadow:none;color:var(--color-text);font:inherit;font-size:var(--text-base);line-height:var(--leading-normal);text-align:left;cursor:pointer;transition:border-color var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),background var(--duration-base) var(--ease-out)}.sm-picker__trigger[data-v-0cf7dc4b]:focus-visible,.sm-picker.is-open .sm-picker__trigger[data-v-0cf7dc4b]{outline:none;border-color:var(--color-accent);box-shadow:var(--p-focus-ring)}.sm-picker__value[data-v-0cf7dc4b]{min-width:0;flex:1;display:flex;align-items:center;overflow:hidden;white-space:nowrap}.sm-picker__value-text[data-v-0cf7dc4b]{min-width:0;overflow:hidden;text-overflow:ellipsis}.sm-picker__value.is-placeholder[data-v-0cf7dc4b]{color:var(--color-text-faint)}.sm-picker__chevron[data-v-0cf7dc4b]{flex:none;color:var(--color-text-muted);transition:transform var(--duration-base) var(--ease-out)}.sm-picker.is-open .sm-picker__chevron[data-v-0cf7dc4b]{transform:rotate(180deg)}.sm-picker__menu[data-v-0cf7dc4b]{position:fixed;z-index:var(--z-modal-dropdown);width:252px;max-width:calc(100vw - 64px);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__models[data-v-0cf7dc4b]{max-height:280px;overflow-y:auto;padding:var(--space-1);border-radius:var(--radius-md)}.sm-picker__flyout[data-v-0cf7dc4b]{position:absolute;width:180px;max-height:280px;overflow-y:auto;padding:var(--space-1);border:.5px solid var(--color-line-strong);border-radius:var(--radius-md);background:var(--color-menu-bg);-webkit-backdrop-filter:var(--p-menu-backdrop);backdrop-filter:var(--p-menu-backdrop);box-shadow:var(--shadow-lg)}.sm-picker__flyout--right[data-v-0cf7dc4b]{left:calc(100% + var(--space-1))}.sm-picker__flyout--left[data-v-0cf7dc4b]{right:calc(100% + var(--space-1))}.sm-picker__group[data-v-0cf7dc4b]{padding:var(--space-2) var(--space-2) var(--space-1);color:var(--color-text-faint);font-size:var(--text-xs);font-weight:var(--weight-medium)}.sm-picker__option[data-v-0cf7dc4b]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:32px;padding:var(--space-1) var(--space-2);border:none;border-radius:var(--radius-select-option);background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.sm-picker__option.is-active[data-v-0cf7dc4b]{background:var(--color-hover);color:var(--color-text-strong)}.sm-picker__option.is-muted[data-v-0cf7dc4b]{color:var(--color-text-muted)}.sm-picker__option-label[data-v-0cf7dc4b]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-picker__check[data-v-0cf7dc4b]{flex:none;color:transparent}.sm-picker__option.is-selected .sm-picker__check[data-v-0cf7dc4b]{color:var(--color-accent)}.sm-picker__flyout-caret[data-v-0cf7dc4b]{flex:none;margin-left:auto;color:var(--color-text-faint)}.sd[data-v-955ddf4d]{display:grid;grid-template-columns:148px 1fr;grid-template-areas:"tabs region";min-height:0;height:100%;user-select:none}.sd[data-v-955ddf4d] :is(input,textarea,[contenteditable=true]){user-select:text}.settings-region[data-v-955ddf4d]{display:flex;min-width:0;min-height:0;flex-direction:column;grid-area:region}.settings-region-header[data-v-955ddf4d],.settings-tabs-header[data-v-955ddf4d]{display:flex;align-items:center;height:calc(var(--space-4) + var(--icon-button-sm) + var(--space-2));box-sizing:border-box}.settings-region-header[data-v-955ddf4d]{justify-content:flex-end;padding-right:var(--space-5)}.settings-tabs-header[data-v-955ddf4d]{padding-inline:var(--space-3)}.settings-dialog-title[data-v-955ddf4d]{margin:0;font-family:var(--font-ui);font-size:var(--text-lg);font-weight:var(--weight-medium);line-height:var(--leading-tight);color:var(--color-text)}.settings-tabs[data-v-955ddf4d]{display:flex;flex-direction:column;width:148px;padding:0 var(--space-2) var(--space-2);gap:2px;overflow-y:auto;border-right:.5px solid var(--color-line);grid-area:tabs}.settings-tab-list[data-v-955ddf4d]{display:flex;flex-direction:column;gap:2px}.tab[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);text-align:left;padding:8px 10px;border:none;border-radius:var(--radius-md);background:transparent;color:var(--color-text-muted);font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-ui-strong);cursor:pointer;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out)}.tab[data-v-955ddf4d]:hover{background:var(--color-hover);color:var(--color-text-strong)}.tab.on[data-v-955ddf4d]{background:var(--color-hover);color:var(--color-text)}.tab[data-v-955ddf4d]:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.body[data-v-955ddf4d]{display:flex;flex-direction:column;overflow-y:auto;padding:var(--space-2) 32px var(--space-5);flex:1;min-width:0}.body[data-v-955ddf4d]::-webkit-scrollbar{width:4px}.body[data-v-955ddf4d]::-webkit-scrollbar-track{background:transparent}.body[data-v-955ddf4d]::-webkit-scrollbar-thumb{background:transparent;border-radius:var(--radius-full);transition:background var(--duration-base) var(--ease-out)}.body.scrolling[data-v-955ddf4d]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent)}.body.scrolling[data-v-955ddf4d]::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}.panel[data-v-955ddf4d]{display:block}.sec[data-v-955ddf4d]{padding:var(--space-4) 0}.panel>.sec[data-v-955ddf4d]:first-child{padding-top:0}.sec-head[data-v-955ddf4d]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.sec-title[data-v-955ddf4d]{margin:0 0 var(--space-3);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.notification-settings[data-v-955ddf4d]{user-select:none}.sec-head .sec-title[data-v-955ddf4d]{margin-bottom:0}.row[data-v-955ddf4d]{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:38px;padding:var(--space-1) 0}.settings-group[data-v-955ddf4d]{overflow:hidden;border-radius:var(--radius-xl);background:var(--color-surface)}.settings-group>.row[data-v-955ddf4d]{min-height:52px;padding:var(--space-4);border-top:.5px solid var(--color-line)}.settings-group>.row[data-v-955ddf4d]:first-child{border-top:none}.settings-group>.empty-config[data-v-955ddf4d]{padding:var(--space-3)}.account-row[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.account-avatar[data-v-955ddf4d]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.account-avatar img[data-v-955ddf4d]{width:100%;height:100%;border-radius:50%;object-fit:cover}.account-name-row[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.account-level[data-v-955ddf4d]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.account-meta[data-v-955ddf4d]{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.account-name[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-sub[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rlabel[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text);font-weight:var(--weight-option-label);display:flex;flex-direction:column;gap:0}.rvalue[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-muted);max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rvalue.mono[data-v-955ddf4d]{font-family:var(--font-mono);font-size:var(--text-xs)}.rvalue-wrap[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-1);max-width:60%;min-width:0}.rvalue-wrap .rvalue[data-v-955ddf4d]{max-width:none}.sd-check[data-v-955ddf4d]{color:var(--color-success)}.hint[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-tight);color:var(--color-text-faint)}.body[data-v-955ddf4d] .ui-seg,.body[data-v-955ddf4d] .ui-select__trigger,.body[data-v-955ddf4d] .ui-button,.archive-search[data-v-955ddf4d]{border-width:.5px}.select-wrap[data-v-955ddf4d]{min-width:220px;max-width:min(320px,50vw);flex:none}.empty-config[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:var(--space-1) 0}@media(max-width:640px){.sd[data-v-955ddf4d]{grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"tabs" "region"}.settings-tabs[data-v-955ddf4d]{width:auto;padding:0;overflow-x:visible;border-right:none;border-bottom:.5px solid var(--color-line)}.settings-tabs-header[data-v-955ddf4d]{padding:var(--space-3)}.settings-tab-list[data-v-955ddf4d]{flex-direction:row;gap:var(--space-1);overflow-x:auto;padding:0 var(--space-3) var(--space-2)}.settings-region-header[data-v-955ddf4d]{padding:var(--space-3)}.body[data-v-955ddf4d]{padding-inline:var(--space-3)}.tab[data-v-955ddf4d]{white-space:nowrap;flex:none}.row[data-v-955ddf4d]{align-items:flex-start;flex-direction:column}.settings-group[data-v-955ddf4d]{margin-inline:0}.select-wrap[data-v-955ddf4d]{width:100%;max-width:none}}.setting-card[data-v-955ddf4d]{border-radius:var(--radius-xl);overflow:hidden;background:var(--color-surface)}.panel-head[data-v-955ddf4d]{margin-bottom:var(--space-4)}.panel-title[data-v-955ddf4d]{margin:0 0 var(--space-2);font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:0;color:var(--color-text)}.panel-desc[data-v-955ddf4d]{margin:0;font-family:var(--font-ui);font-size:var(--text-xs);line-height:var(--leading-normal);color:var(--color-text-muted);max-width:560px}.archive-toolbar[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap}.archive-search[data-v-955ddf4d]{flex:1;min-width:200px;height:36px;display:flex;align-items:center;gap:var(--space-2);padding:0 var(--space-3);border-radius:var(--radius-md);border:.5px solid var(--color-line);color:var(--color-text-faint);font-size:var(--text-xs);background:var(--color-surface-overlay);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.archive-search[data-v-955ddf4d]:focus-within{border-color:var(--color-accent);box-shadow:var(--p-focus-ring);color:var(--color-text-muted)}.archive-search svg[data-v-955ddf4d]{width:15px;height:15px;flex:none}.archive-search input[data-v-955ddf4d]{width:100%;border:none;outline:none;background:transparent;font:inherit;color:var(--color-text)}.archive-list[data-v-955ddf4d]{display:flex;flex-direction:column;gap:var(--space-4)}.archive-card .setting-card[data-v-955ddf4d]{margin-bottom:0}.archive-workspace[data-v-955ddf4d]{display:flex;align-items:center;gap:var(--space-2);margin:0 2px var(--space-2);color:var(--color-text-muted);font-size:var(--text-xs);font-weight:var(--weight-medium)}.archive-workspace svg[data-v-955ddf4d]{width:16px;height:16px;color:var(--color-text-faint);flex:none}.archive-workspace .path[data-v-955ddf4d]{font-family:var(--font-ui);font-size:var(--text-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-workspace .count[data-v-955ddf4d]{margin-left:auto;color:var(--color-text-faint);font-weight:var(--weight-medium);font-size:var(--text-xs);flex:none}.archive-row[data-v-955ddf4d]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3);align-items:center;padding:var(--space-3) var(--space-4);border-top:.5px solid var(--color-line)}.archive-row[data-v-955ddf4d]:first-child{border-top:none}.archive-row[data-v-955ddf4d]:hover{background:var(--color-hover)}.archive-meta[data-v-955ddf4d]{min-width:0}.archive-name[data-v-955ddf4d]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-time[data-v-955ddf4d]{margin-top:2px;font-size:var(--text-xs);color:var(--color-text-faint);font-family:var(--font-ui)}.archive-draining[data-v-955ddf4d]{margin-bottom:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-accent-hover);font-size:var(--text-xs)}.archive-empty[data-v-955ddf4d]{padding:var(--space-6) var(--space-4);border-radius:var(--radius-xl);color:var(--color-text-faint);font-size:var(--text-xs);text-align:center;background:var(--color-surface)}@media(max-width:640px){.archive-toolbar[data-v-955ddf4d]{flex-direction:column;align-items:stretch}.archive-search[data-v-955ddf4d]{min-width:0}}[data-v-955ddf4d] .ui-dialog{width:min(980px,96vw)}[data-v-955ddf4d] .ui-dialog--fixed-height{height:min(780px,calc(var(--app-height, 100vh) - var(--space-8) * 2))}.aw[data-v-fea98be5]{padding-top:4px}.crumbbar[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.crumbs[data-v-fea98be5]{display:flex;align-items:center;flex-wrap:wrap;gap:1px;min-width:0;font-size:var(--text-sm)}.crumb-sep[data-v-fea98be5]{color:var(--color-text-muted)}.crumb[data-v-fea98be5]{background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-text-muted);padding:1px var(--space-1);border-radius:var(--radius-xs)}.crumb[data-v-fea98be5]:hover{color:var(--color-text);background:var(--color-hover)}.crumb.last[data-v-fea98be5]{color:var(--color-text);font-weight:var(--weight-medium)}.filterbar[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) 22px;border-bottom:.5px solid var(--color-line)}.filter-icon[data-v-fea98be5]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.filter-input[data-v-fea98be5]{flex:1;min-width:0;font-family:var(--font-ui);font-size:var(--text-base);padding:var(--space-1) 0;border:none;background:none;color:var(--color-text);outline:none}.filter-input[data-v-fea98be5]::placeholder{color:var(--color-text-muted)}.search-rel[data-v-fea98be5]{color:var(--color-text)}.folder-list[data-v-fea98be5]{height:300px;overflow-y:auto;padding:var(--space-1) var(--space-2)}.fl-loading[data-v-fea98be5],.fl-empty[data-v-fea98be5]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-muted);font-size:var(--text-sm)}.folder-row[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2);width:100%;background:none;border:none;cursor:pointer;font-family:var(--font-ui);font-size:var(--text-base);color:var(--color-text);text-align:left;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);transition:background var(--duration-fast) var(--ease-out)}.folder-row[data-v-fea98be5]:hover{background:var(--color-hover)}.dir-icon[data-v-fea98be5]{flex:none;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--color-text-muted)}.folder-name[data-v-fea98be5]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text)}.paste-section[data-v-fea98be5]{padding:var(--space-3) 22px;border-top:.5px solid var(--color-line)}.paste-section.paste-only[data-v-fea98be5]{border-top:none}.paste-row[data-v-fea98be5]{display:flex;align-items:center;gap:var(--space-2)}.paste-input-wrap[data-v-fea98be5]{flex:1;min-width:0}.add-error[data-v-fea98be5]{margin:0 22px var(--space-2);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-danger);background:var(--color-danger-soft);border:.5px solid var(--color-danger-bd);border-radius:var(--radius-sm)}.actions[data-v-fea98be5]{display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) 22px}.footer-hint[data-v-fea98be5]{padding:var(--space-2) var(--space-4);font-family:var(--font-ui);font-size:var(--text-xs);color:var(--color-text-faint);border-top:.5px solid var(--color-line)}@media(max-width:640px){.folder-row[data-v-fea98be5]{min-height:44px}.crumbbar[data-v-fea98be5]{align-items:flex-start}.actions[data-v-fea98be5]{flex-wrap:wrap}}.confirm-dialog__message[data-v-aa5422da]{margin:0;font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.rows[data-v-340d1b31]{margin:0;padding:0}.row[data-v-340d1b31]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) 0;font-size:var(--text-base)}.row dt[data-v-340d1b31]{width:96px;flex:none;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:var(--text-xs)}.row dd[data-v-340d1b31]{margin:0;color:var(--color-text);font-weight:var(--weight-medium);display:flex;align-items:center;gap:var(--space-2);min-width:0}.row dd.plan-on[data-v-340d1b31],.row dd.swarm-on[data-v-340d1b31]{color:var(--color-accent)}.ctx-text[data-v-340d1b31]{flex:none}.bar[data-v-340d1b31]{width:80px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden;flex:none}.bar i[data-v-340d1b31]{display:block;height:100%;background:var(--color-accent)}@media(max-width:640px){.rows[data-v-340d1b31]{overflow-y:auto;-webkit-overflow-scrolling:touch}.row[data-v-340d1b31]{align-items:flex-start;flex-direction:column;gap:var(--space-1);min-height:48px}.row dt[data-v-340d1b31]{width:auto}.row dd[data-v-340d1b31]{max-width:100%;flex-wrap:wrap}}.toasts[data-v-c225aa7a]{position:fixed;right:16px;bottom:84px;display:flex;flex-direction:column;gap:var(--space-2);z-index:var(--z-toast);width:min(440px,calc(100vw - 32px));max-height:56vh;overflow-y:auto}.toasts.below-overlay[data-v-c225aa7a]{z-index:var(--z-dropdown)}.toast-enter-active[data-v-c225aa7a],.toast-leave-active[data-v-c225aa7a]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.toast-enter-from[data-v-c225aa7a],.toast-leave-to[data-v-c225aa7a]{opacity:0;transform:translate(16px)}.toast-move[data-v-c225aa7a]{transition:transform var(--duration-base) var(--ease-out)}.actions[data-v-c225aa7a]{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}.link[data-v-c225aa7a]{border:0;padding:0;background:none;color:var(--color-accent);cursor:pointer;font:inherit;font-size:var(--ui-font-size-xs)}.link[data-v-c225aa7a]:hover{text-decoration:underline}.details[data-v-c225aa7a]{display:grid;gap:5px;margin:8px 0 0;padding:8px;border:.5px solid var(--color-line);border-radius:var(--radius-sm);background:var(--color-surface-sunken)}.detail-row[data-v-c225aa7a]{display:grid;grid-template-columns:minmax(88px,.34fr) minmax(0,1fr);gap:8px}.detail-row dt[data-v-c225aa7a]{color:var(--color-text-muted)}.detail-row dd[data-v-c225aa7a]{margin:0;color:var(--color-text);overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:640px){.toasts[data-v-c225aa7a]{left:12px;right:12px;bottom:calc(var(--dock-h, 76px) + 8px);width:auto;max-height:50vh}.detail-row[data-v-c225aa7a]{grid-template-columns:1fr;gap:2px}}.topbar[data-v-58cf4cd3]{display:flex;align-items:center;height:calc(50px + var(--safe-top));flex:none;padding:var(--safe-top) max(12px,var(--safe-right)) 0 max(12px,var(--safe-left));border-bottom:.5px solid var(--color-line);background:var(--color-topbar-bg-frost);-webkit-backdrop-filter:var(--p-topbar-backdrop);backdrop-filter:var(--p-topbar-backdrop);font-family:var(--font-ui);-webkit-user-select:none;user-select:none}.tb-main[data-v-58cf4cd3]{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;margin-right:4px;padding:0 6px 0 0;background:none;border:none;border-radius:var(--radius-md);font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--duration-fast) var(--ease-out)}.tb-main[data-v-58cf4cd3]:active{opacity:.55}.st[data-v-58cf4cd3]{flex:none;display:inline-flex;align-items:center}.tb-line[data-v-58cf4cd3]{flex:1;min-width:0;display:flex;align-items:baseline;gap:4px;font-size:max(16px,var(--ui-font-size-xl));line-height:1.25;white-space:nowrap}.tb-line .dir[data-v-58cf4cd3]{flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-faint)}.tb-line .dir.solo[data-v-58cf4cd3]{max-width:none;min-width:0;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .sl[data-v-58cf4cd3]{flex:none;color:var(--color-text-faint)}.tb-line .tt[data-v-58cf4cd3]{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--color-text);font-weight:var(--weight-semibold)}.tb-line .cv[data-v-58cf4cd3]{flex:none;align-self:center;color:var(--color-text-faint)}.unread-dot[data-v-58cf4cd3]{width:7px;height:7px;border-radius:var(--radius-full);background:var(--color-accent)}.actions[data-v-38e26691]{padding:0 var(--space-2) var(--space-2);border-bottom:.5px solid var(--color-line);margin-bottom:var(--space-1)}.newrow[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-family:var(--sans);font-weight:var(--weight-regular);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.newrow[data-v-38e26691]:hover{background:var(--color-hover)}.newrow[data-v-38e26691]:active{background:var(--color-surface-sunken);color:var(--color-text)}.view-tabs[data-v-38e26691]{padding:var(--space-1) var(--space-2) var(--space-2)}.view-tabs[data-v-38e26691] .ui-seg{display:flex;width:100%}.view-tabs[data-v-38e26691] .ui-seg__item{flex:1;justify-content:center}.mlist[data-v-38e26691]{--m-pad: 16px;--m-gutter: 15px;--m-gap: 8px;--m-indent: calc(var(--m-pad) + var(--m-gutter) + var(--m-gap));padding-bottom:var(--space-1)}.mempty[data-v-38e26691]{padding:var(--space-6) var(--space-4);text-align:center;color:var(--color-text-faint);font-size:var(--ui-font-size)}.mempty.small[data-v-38e26691]{padding:10px 16px 12px var(--m-indent);text-align:left;font-size:var(--ui-font-size-xs)}.mgroup[data-v-38e26691]{padding-top:var(--space-2)}.mgh[data-v-38e26691]{display:flex;align-items:center;gap:var(--m-gap);min-height:44px;margin:0 var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.mgh[data-v-38e26691]:hover{background:var(--color-hover)}.mgh[data-v-38e26691]:active{background:var(--color-surface-sunken)}.mgh-folder[data-v-38e26691]{flex:none;color:var(--color-text-muted)}.mgh-name[data-v-38e26691]{flex:none;max-width:50%;font-size:var(--ui-font-size-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-path[data-v-38e26691]{flex:1;min-width:0;font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mgh-more[data-v-38e26691]{margin:0 calc(-1 * var(--space-2))}.mgh-add[data-v-38e26691]{margin:0 calc(-1 * var(--space-2)) 0 0}.mgh-add[data-v-38e26691]:active,.mgh-more[data-v-38e26691]:active{color:var(--color-text);background:var(--color-hover)}.srow[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;margin:1px var(--space-2);padding:0 calc(var(--m-pad) - var(--space-2)) 0 calc(var(--m-indent) - var(--space-2));border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.srow[data-v-38e26691]:hover{background:var(--color-hover)}.srow[data-v-38e26691]:active{background:var(--color-surface-sunken)}.srow.cur[data-v-38e26691]{background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-bd)}.srow .t[data-v-38e26691]{flex:1;min-width:0;font-size:var(--ui-font-size-sm);font-weight:var(--weight-caption);line-height:var(--leading-tight);color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.srow.cur .t[data-v-38e26691]{color:var(--color-accent-hover)}.srow .t.run[data-v-38e26691]{position:relative}.srow .t.run[data-v-38e26691]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-accent);animation:mRunPulse-38e26691 1.4s ease-in-out infinite}@keyframes mRunPulse-38e26691{0%,to{opacity:1}50%{opacity:.35}}.srow .t.aborted[data-v-38e26691]{position:relative}.srow .t.aborted[data-v-38e26691]:before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-danger)}.srow .time[data-v-38e26691]{flex:none;font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--color-text-faint)}.att[data-v-38e26691]{flex:none;font-family:var(--font-mono);font-size:max(9px,calc(var(--ui-font-size) - 4px));color:var(--color-text-on-accent);background:var(--color-warning);border-radius:var(--radius-full);padding:1px 7px}.srow .kb[data-v-38e26691]{flex:none;margin:0 calc(-1 * var(--space-2)) 0 0}.srow .kb[data-v-38e26691]:active{color:var(--color-text);background:var(--color-hover)}.srow-flat[data-v-38e26691]{min-height:52px}.srow-main[data-v-38e26691]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-main .t[data-v-38e26691]{flex:none}.srow-sub[data-v-38e26691]{font-size:var(--text-xs);color:var(--color-text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kmenu[data-v-38e26691]{position:absolute;right:12px;top:44px;z-index:var(--z-dropdown);min-width:96px;overflow:hidden}.wsmenu[data-v-38e26691]{top:calc(100% - 4px);right:var(--m-pad);min-width:132px}.mshow-more-row[data-v-38e26691]{display:flex;align-items:center;padding-left:calc(var(--m-indent) - var(--space-3))}.mshow-more[data-v-38e26691]{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-1) var(--space-3);background:none;border:none;border-radius:var(--radius-md);color:var(--color-text-muted);font-size:var(--ui-font-size);cursor:pointer;text-align:left}.mshow-more[data-v-38e26691]:active{color:var(--color-accent-hover);background:var(--color-hover)}.mshow-more-sep[data-v-38e26691]{margin:0 var(--space-1);color:var(--color-text-faint);user-select:none}.group-title[data-v-65e9ffc0]{padding:var(--space-4) max(var(--space-4),var(--safe-right)) var(--space-2) max(var(--space-4),var(--safe-left));font-family:var(--font-ui);font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.group-title[data-v-65e9ffc0]:first-child{padding-top:0}.card[data-v-65e9ffc0]{margin:0 max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));background:var(--color-surface);border-radius:var(--radius-xl);overflow:hidden}.card>.srow[data-v-65e9ffc0]{border-radius:0}.card>.srow+.srow[data-v-65e9ffc0]{border-top:.5px solid var(--color-line)}.srow[data-v-65e9ffc0]:disabled{opacity:.5;cursor:not-allowed}.srow[data-v-65e9ffc0]{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:var(--space-3) var(--space-4);background:none;border:none;border-radius:var(--radius-md);cursor:pointer;text-align:left;color:var(--color-text)}.srow[data-v-65e9ffc0]:hover:not(.read-only){background:var(--color-hover)}.srow[data-v-65e9ffc0]:active:not(.read-only){background:var(--color-surface-sunken)}.srow.read-only[data-v-65e9ffc0]{cursor:default}.srow-main[data-v-65e9ffc0]{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.srow-label[data-v-65e9ffc0]{font-size:var(--text-base);color:var(--color-text)}.srow-sub[data-v-65e9ffc0]{font-size:var(--text-base);color:var(--color-text-faint);overflow-wrap:anywhere}.srow-val[data-v-65e9ffc0]{flex:none;font-family:var(--font-mono);font-size:var(--ui-font-size);font-weight:500;color:var(--color-accent-hover)}.srow-val.dim[data-v-65e9ffc0]{font-weight:400;color:var(--color-text-muted)}.cache-note[data-v-65e9ffc0]{padding:var(--space-1) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left));font-size:var(--text-xs);color:var(--color-text-faint);line-height:1.4}.chev[data-v-65e9ffc0]{flex:none;color:var(--color-text-faint);font-size:17px;line-height:1}.toggle[data-v-65e9ffc0]{flex:none;width:44px;height:26px;border-radius:var(--radius-full);background:var(--color-line);position:relative;transition:background .18s}.toggle.on[data-v-65e9ffc0]{background:var(--color-accent)}.toggle[data-v-65e9ffc0]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:var(--radius-full);box-sizing:border-box;background:var(--color-bg);border:.5px solid var(--color-line);box-shadow:var(--shadow-xs);transition:left .18s}.toggle.on[data-v-65e9ffc0]:after{left:21px}.srow.pref[data-v-65e9ffc0]{flex-wrap:wrap;cursor:default}.srow.pref .srow-main[data-v-65e9ffc0]{flex:1 0 100%}.srow.acct.in .srow-label[data-v-65e9ffc0]{color:var(--color-accent-hover);font-weight:500}.srow.acct.out .srow-label[data-v-65e9ffc0]{color:var(--color-danger)}.acct-avatar[data-v-65e9ffc0]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--color-surface-sunken);color:var(--color-text-muted)}.acct-avatar img[data-v-65e9ffc0]{width:100%;height:100%;border-radius:50%;object-fit:cover}.acct-name-row[data-v-65e9ffc0]{display:flex;align-items:center;gap:var(--space-2);min-width:0}.acct-name-row .srow-label[data-v-65e9ffc0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.acct-level[data-v-65e9ffc0]{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.usage[data-v-65e9ffc0]{margin:var(--space-4) max(var(--space-4),var(--safe-right)) 0 max(var(--space-4),var(--safe-left))}.usage[data-v-65e9ffc0] .sec{margin-bottom:0}.ctx-meter[data-v-65e9ffc0]{flex:none;width:96px;height:5px;border-radius:var(--radius-full);background:var(--color-line);overflow:hidden}.ctx-meter i[data-v-65e9ffc0]{display:block;height:100%;border-radius:var(--radius-full);background:var(--color-accent)}.srow[data-v-65e9ffc0],.srow-sub[data-v-65e9ffc0],.srow-val[data-v-65e9ffc0],.cache-note[data-v-65e9ffc0]{font-family:var(--sans)}.ls-cards[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-3)}.ls-card-icon[data-v-3875193b]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--color-text-muted)}.ls-card-text[data-v-3875193b]{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.ls-card-title[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-card-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-done-card[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);background:var(--color-surface-raised);border:var(--p-hairline) solid var(--color-success-bd);border-radius:var(--radius-lg)}.ls-done-badge[data-v-3875193b]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-full);background:var(--color-success-soft);color:var(--color-success);flex:none}.ls-flow[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-center[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-6) 0 var(--space-2);text-align:center}.ls-center-text[data-v-3875193b]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.ls-success-text[data-v-3875193b]{color:var(--color-success)}.ls-err-text[data-v-3875193b]{color:var(--color-danger)}.ls-warn-text[data-v-3875193b]{color:var(--color-warning)}.ls-center-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted)}.ls-device[data-v-3875193b]{display:flex;flex-direction:column;gap:var(--space-4)}.ls-hero[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center}.ls-hero-icon[data-v-3875193b]{display:inline-flex;margin-bottom:var(--space-1)}.ls-hero-title[data-v-3875193b]{font-size:var(--text-lg);font-weight:var(--weight-medium);color:var(--color-text)}.ls-hero-hint[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal);font-variant-numeric:tabular-nums}.ls-manual[data-v-3875193b]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2)}.ls-manual-label[data-v-3875193b]{font-size:var(--text-xs);color:var(--color-text-faint)}.ls-copy-text[data-v-3875193b]{margin-left:var(--space-2)}.ls-copy-text.is-copied[data-v-3875193b]{color:var(--color-success);text-decoration:none}.ls-or[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-muted);font-size:var(--text-xs);letter-spacing:.06em}.ls-or[data-v-3875193b]:before,.ls-or[data-v-3875193b]:after{content:"";flex:1;height:1px;background:var(--color-line)}.ls-fb-text[data-v-3875193b]{font-size:var(--text-sm);color:var(--color-text-muted);line-height:var(--leading-normal)}.ls-fb-link[data-v-3875193b]{color:var(--color-accent);text-decoration:none;border-bottom:var(--p-hairline) solid var(--color-accent-bd)}.ls-fb-link[data-v-3875193b]:hover{border-bottom-color:var(--color-accent)}.ls-code-row[data-v-3875193b]{display:flex;align-items:center;gap:var(--space-3);background:var(--color-surface-sunken);border:var(--p-hairline) solid var(--color-line);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3)}.ls-code[data-v-3875193b]{flex:1;font-family:var(--font-mono);font-size:var(--text-xl);font-weight:var(--weight-medium);color:var(--color-text);letter-spacing:.14em}.ls-copy.is-copied[data-v-3875193b]{color:var(--color-success);border-color:var(--color-success-bd)}.ls-actions[data-v-3875193b]{display:flex;justify-content:flex-end;gap:var(--space-3)}@media(max-width:640px){.ls-code-row[data-v-3875193b],.ls-actions[data-v-3875193b]{flex-wrap:wrap}.ls-code[data-v-3875193b]{min-width:0;overflow-wrap:anywhere;letter-spacing:.08em}}.wizard[data-v-0535eac0]{position:fixed;inset:0;z-index:var(--z-modal);display:flex;flex-direction:column;background:var(--color-bg);color:var(--color-text);overflow-y:auto;font-family:var(--font-ui)}.wiz-body[data-v-0535eac0]{flex:1;display:flex;flex-direction:column;align-items:center;width:min(560px,100%);margin:0 auto;padding:max(var(--space-8),12vh) var(--space-5) var(--space-6)}.wiz-step[data-v-0535eac0]{display:flex;flex-direction:column;align-items:center;width:100%;flex:1;min-height:0}.wiz-step-fill[data-v-0535eac0]{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;width:100%}.wiz-title[data-v-0535eac0]{margin:var(--space-4) 0 0;font-size:var(--text-2xl);font-weight:var(--weight-semibold);line-height:var(--leading-tight);color:var(--color-text);text-align:center}.wiz-sub[data-v-0535eac0]{margin:var(--space-2) 0 var(--space-6);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted);text-align:center;max-width:460px}.pref-group[data-v-0535eac0]{width:100%;margin-bottom:var(--space-5)}.pref-label[data-v-0535eac0]{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--color-text-muted);margin-bottom:var(--space-2)}.opt-card[data-v-0535eac0]{display:flex;align-items:center;background:var(--color-surface-raised);border:.5px solid var(--color-line);border-radius:var(--radius-lg);font-family:var(--font-ui);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-out),background var(--duration-fast) var(--ease-out)}.opt-card[data-v-0535eac0]:hover{border-color:var(--color-line-strong)}.opt-card[data-v-0535eac0]:focus-visible{outline:none;box-shadow:var(--p-focus-ring-strong)}.opt-card.selected[data-v-0535eac0]{border-color:var(--color-accent);background:var(--color-accent-soft)}.opt-label[data-v-0535eac0]{font-size:var(--text-base);font-weight:var(--weight-medium);color:var(--color-text)}.lang-cards[data-v-0535eac0]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3);width:100%}.lang-card[data-v-0535eac0]{gap:var(--space-3);padding:var(--space-4)}.opt-radio[data-v-0535eac0]{width:18px;height:18px;border-radius:var(--radius-full);border:.5px solid var(--color-line-strong);background:var(--color-surface-raised);flex:none;display:inline-flex;align-items:center;justify-content:center;transition:border-color var(--duration-fast) var(--ease-out)}.opt-radio[data-v-0535eac0]:after{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:transparent;transition:background var(--duration-fast) var(--ease-out)}.opt-radio.on[data-v-0535eac0]{border-color:var(--color-accent)}.opt-radio.on[data-v-0535eac0]:after{background:var(--color-accent)}.theme-cards[data-v-0535eac0]{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3);width:100%}.theme-card[data-v-0535eac0]{flex-direction:column;gap:var(--space-3);padding:var(--space-3)}.tp[data-v-0535eac0]{display:flex;width:100%;aspect-ratio:16 / 10;border:.5px solid var(--color-line);border-radius:var(--radius-md);overflow:hidden}.tp-light[data-v-0535eac0]{background:#fff}.tp-dark[data-v-0535eac0]{background:#0d1117}.tp-half[data-v-0535eac0]{flex:1;display:flex;min-width:0}.tp-half-light[data-v-0535eac0]{background:#fff}.tp-half-dark[data-v-0535eac0]{background:#0d1117}.tp-side[data-v-0535eac0]{width:30%;flex:none}.tp-light .tp-side[data-v-0535eac0],.tp-half-light .tp-side[data-v-0535eac0]{background:#0000000d}.tp-dark .tp-side[data-v-0535eac0],.tp-half-dark .tp-side[data-v-0535eac0]{background:#ffffff12}.tp-lines[data-v-0535eac0]{flex:1;display:flex;flex-direction:column;gap:6px;padding:14% 12%}.tp-lines span[data-v-0535eac0]{height:6px;border-radius:var(--radius-full)}.tp-lines span[data-v-0535eac0]:nth-child(1){width:62%}.tp-lines span[data-v-0535eac0]:nth-child(2){width:88%}.tp-lines span[data-v-0535eac0]:nth-child(3){width:44%}.tp-light .tp-lines span[data-v-0535eac0],.tp-half-light .tp-lines span[data-v-0535eac0]{background:#00000024}.tp-dark .tp-lines span[data-v-0535eac0],.tp-half-dark .tp-lines span[data-v-0535eac0]{background:#ffffff38}.wiz-foot[data-v-0535eac0]{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:100%;margin-top:auto;padding:var(--space-8) 0 max(var(--space-8),8vh)}.wiz-foot-ghost[data-v-0535eac0]{display:flex;gap:var(--space-3);min-height:32px;align-items:center}.wiz-foot-ghost[data-v-0535eac0] .ui-button--ghost:not(:disabled):hover{background:transparent;color:var(--color-text)}.wiz-primary[data-v-0535eac0]{min-width:140px}@media(max-width:640px){.theme-cards[data-v-0535eac0]{gap:var(--space-2)}}.gload[data-v-ab85ede1]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;min-width:100vw;min-height:100dvh;z-index:var(--z-toast);display:flex;align-items:center;justify-content:center;background:var(--bg)}.gload-box[data-v-ab85ede1]{display:flex;flex-direction:column;align-items:center;gap:22px;transform:translateY(-6%)}.gload-logo[data-v-ab85ede1]{width:128px;height:auto;color:var(--color-text);animation:gload-pop-ab85ede1 .55s cubic-bezier(.22,1,.36,1) both}.gload-text[data-v-ab85ede1]{font-family:var(--mono);font-size:var(--text-base);color:var(--muted);letter-spacing:.04em}@keyframes gload-pop-ab85ede1{0%{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.gload-logo[data-v-ab85ede1]{animation:none}}.gload-text[data-v-ab85ede1]{font-family:var(--sans)}.kap-root[data-v-2b13888e]{height:100vh;display:flex;flex-direction:column;background:var(--bg);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 2.5px);color:var(--color-text)}.kap-head[data-v-2b13888e]{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:.5px solid var(--line);background:var(--panel)}.kap-count[data-v-2b13888e]{color:var(--muted)}.kap-head-actions[data-v-2b13888e]{margin-left:auto;display:flex;gap:6px}.kap-head-actions button[data-v-2b13888e],.kap-view-toggle button[data-v-2b13888e]{padding:3px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font:inherit;cursor:pointer}.kap-head-actions button[data-v-2b13888e]:hover,.kap-view-toggle button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-head-actions button.on[data-v-2b13888e],.kap-view-toggle button.on[data-v-2b13888e]{color:var(--color-accent-hover);border-color:var(--color-accent-bd);background:var(--color-accent-soft)}.kap-filters[data-v-2b13888e]{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 10px;border-bottom:.5px solid var(--line)}.kap-filters select[data-v-2b13888e],.kap-filters input[type=text][data-v-2b13888e]{padding:3px 6px;border:.5px solid var(--line);border-radius:6px;background:var(--bg);color:var(--color-text);font:inherit;min-width:0}.kap-filters input[type=text][data-v-2b13888e]{flex:1;min-width:120px}.kap-check[data-v-2b13888e]{display:inline-flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}.kap-view-toggle[data-v-2b13888e]{display:flex;gap:0}.kap-view-toggle button[data-v-2b13888e]:first-child{border-radius:6px 0 0 6px;border-right:none}.kap-view-toggle button[data-v-2b13888e]:last-child{border-radius:0 6px 6px 0}.kap-list[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto}.kap-empty[data-v-2b13888e]{padding:18px 12px;color:var(--muted);text-align:center}.kap-row[data-v-2b13888e]{display:flex;align-items:baseline;gap:7px;width:100%;padding:3px 10px;border:none;border-bottom:.5px solid var(--line);background:transparent;color:var(--color-text);font:inherit;text-align:left;cursor:pointer}.kap-row[data-v-2b13888e]:hover{background:var(--panel2)}.kap-row.expanded[data-v-2b13888e]{background:var(--color-accent-soft)}.kap-ts[data-v-2b13888e]{flex:none;color:var(--muted)}.kap-badge[data-v-2b13888e]{flex:none;padding:0 5px;border-radius:var(--radius-sm);font-size:max(9px,calc(var(--ui-font-size) - 4.5px));font-weight:500;line-height:1.7}.b-rest[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-accent-hover)}.b-in[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-success)}.b-out[data-v-2b13888e]{background:var(--color-accent-soft);color:var(--color-warning)}.b-life[data-v-2b13888e]{background:var(--panel2);color:var(--muted)}.b-err[data-v-2b13888e]{background:var(--color-warning);color:var(--bg)}.kap-label[data-v-2b13888e]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kap-detail[data-v-2b13888e]{border-bottom:.5px solid var(--line);background:var(--bg);padding:6px 10px 10px}.kap-detail-actions[data-v-2b13888e]{display:flex;justify-content:flex-end;margin-bottom:4px}.kap-detail-actions button[data-v-2b13888e]{padding:2px 8px;border:.5px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font:inherit;cursor:pointer}.kap-detail-actions button[data-v-2b13888e]:hover{color:var(--color-text)}.kap-detail pre[data-v-2b13888e]{margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:calc(var(--ui-font-size) - 3px);line-height:1.45}.kap-agg[data-v-2b13888e]{flex:1;min-height:0;overflow-y:auto;padding:8px 10px}.kap-agg h4[data-v-2b13888e]{margin:8px 0 4px;font-size:calc(var(--ui-font-size) - 2.5px);color:var(--muted)}.kap-agg table[data-v-2b13888e]{width:100%;border-collapse:collapse}.kap-agg th[data-v-2b13888e],.kap-agg td[data-v-2b13888e]{padding:3px 6px;border-bottom:.5px solid var(--line);text-align:left;vertical-align:top}.kap-agg th[data-v-2b13888e]{color:var(--muted);font-weight:500}.kap-agg .num[data-v-2b13888e]{text-align:right}.kap-agg .err[data-v-2b13888e]{color:var(--color-warning);font-weight:500}.kap-agg .mono[data-v-2b13888e]{word-break:break-all}.kap-fab[data-v-21de79fc]{position:fixed;right:10px;bottom:10px;z-index:var(--z-overlay);padding:5px 9px;border:.5px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-family:var(--mono);font-size:calc(var(--ui-font-size) - 3px);font-weight:500;letter-spacing:.04em;cursor:pointer;opacity:.75}.kap-fab[data-v-21de79fc]:hover{opacity:1;color:var(--color-accent)}.server-auth-hint[data-v-331563ff]{margin:0 0 var(--space-3);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--color-text-muted)}.server-auth-hint code[data-v-331563ff]{padding:1px 5px;font-family:var(--font-mono);font-size:var(--text-xs);background:var(--color-surface-sunken);border-radius:var(--radius-xs)}.internal-build-tag[data-v-14c3d0e0]{flex:none;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#f5a623;color:#3a2a00;font-size:11px;font-weight:700;letter-spacing:.01em;line-height:1.4;white-space:nowrap;user-select:none}.gload-fade-leave-active[data-v-d59cb496]{transition:opacity .28s ease}.gload-fade-leave-to[data-v-d59cb496]{opacity:0}.action-toast-enter-active[data-v-d59cb496],.action-toast-leave-active[data-v-d59cb496]{transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.action-toast-leave-active[data-v-d59cb496]{transition-duration:var(--duration-fast);pointer-events:none}.action-toast-enter-from[data-v-d59cb496],.action-toast-leave-to[data-v-d59cb496]{opacity:0;transform:translateY(-6px)}.app-shell[data-v-d59cb496]{position:fixed;top:var(--app-top, 0px);left:0;right:0;height:100vh;height:100dvh;height:var(--app-height, 100dvh);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.app[data-v-d59cb496]{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:auto 0 minmax(0,1fr) 0 auto;background:var(--bg);color:var(--color-text);overflow:hidden;box-sizing:border-box}.app[data-v-d59cb496]>*{min-height:0;min-width:0}.app>.side[data-v-d59cb496]{grid-column:1}.side-handle[data-v-d59cb496]{grid-column:2}.app:not(.mobile)>.con[data-v-d59cb496]{grid-column:3}.preview-handle[data-v-d59cb496]{grid-column:4}.sidebar-toggle-btn[data-v-d59cb496]{position:absolute;top:11px;left:16px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-d59cb496 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .sidebar-toggle-btn[data-v-d59cb496]{left:84px;animation:none}.new-chat-btn[data-v-d59cb496]{position:absolute;top:11px;left:42px;z-index:var(--z-sticky);animation:sidebar-toggle-btn-in-d59cb496 .18s var(--ease-out) .12s backwards;-webkit-app-region:no-drag}.app.macos-desktop .new-chat-btn[data-v-d59cb496]{left:110px}@keyframes sidebar-toggle-btn-in-d59cb496{0%{opacity:0}}.internal-build-fab[data-v-d59cb496]{position:absolute;right:var(--space-3);bottom:var(--space-3);z-index:var(--z-sticky);pointer-events:none}.app.mobile[data-v-d59cb496]{grid-template-columns:1fr;grid-template-rows:auto 1fr}.global-preview[data-v-d59cb496]{--preview-w: 460px;grid-column:5;min-width:0;min-height:0;width:0;background:var(--bg);overflow:hidden}.global-preview.open[data-v-d59cb496]{width:var(--preview-w)}.global-preview[data-v-d59cb496]:not(.mobile)>*{width:var(--preview-w);height:100%;box-sizing:border-box;border-left:.5px solid var(--line)}.global-preview.mobile[data-v-d59cb496]{position:fixed;inset:0;z-index:var(--z-sticky);width:auto;transition:none;border-top:.5px solid var(--color-text)}:root{--panel-head-h: 48px;--panel-head-inset: calc((var(--panel-head-h) - var(--icon-button-sm)) / 2)}.app:not(.mobile) .chat-header{transition:padding-left .28s cubic-bezier(.4,0,.2,1)}.app.sidebar-collapsed .chat-header{padding-left:78px}.app.sidebar-collapsed.macos-desktop .chat-header{padding-left:146px}.app.sidebar-collapsed .session-admin .sa-head{padding-left:78px}.app.sidebar-collapsed.windows-desktop .session-admin .sa-head{padding-left:var(--space-6)}.app.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:146px}.app.fullscreen.sidebar-collapsed.macos-desktop .session-admin .sa-head{padding-left:78px}.app.macos-desktop .global-preview .ui-panel-header{-webkit-app-region:drag}.app.macos-desktop .global-preview .ui-panel-header button,.app.macos-desktop .global-preview .ui-panel-header input{-webkit-app-region:no-drag}.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .chat-header,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .side .ch,.app.macos-desktop:has(.ch-menu,.open-in-menu,.dock-work-panel,.copy-menu-open) .global-preview .ui-panel-header{-webkit-app-region:no-drag}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--dim: rgba(0, 0, 0, .6);--muted: rgba(0, 0, 0, .45);--faint: rgba(0, 0, 0, .3);--line: var(--color-line);--line2: var(--color-subtle);--canvas: #f9fbfc;--sh: 0 1px 3px rgba(28, 40, 66, .05), 0 6px 18px rgba(28, 40, 66, .06);--shc: 0 1px 2px rgba(28, 40, 66, .05);--panel: #f5f5f5;--panel2: rgba(0, 0, 0, .05);--bg: #ffffff;--blue: #1783ff;--blue2: #167ff7;--soft: #e8f3ff;--bd: rgba(23, 131, 255, .25);--logo: #1783ff;--bluebg: #e8f3ff;--blueln: rgba(23, 131, 255, .25);--ok: #0e7a38;--warn: #a9610a;--star: #eab308;--err: #c0392b;--hover: var(--color-hover);--r-xs: var(--radius-sm);--r-sm: var(--radius-md);--r-md: var(--radius-lg);--r-lg: var(--radius-xl);--ui-font-size: var(--ui-b2);--ui-font-size-sm: calc(var(--ui-font-size) - 1px);--ui-font-size-xs: calc(var(--ui-font-size) - 2px);--ui-font-size-lg: calc(var(--ui-font-size) + 1px);--ui-font-size-xl: calc(var(--ui-font-size) + 2px);--content-font-size: var(--md-b1);--code-font-size: calc(var(--content-font-size) - 2px);--mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--sans: var(--font-ui);color-scheme:light dark}html[data-color-scheme=light]{color-scheme:light}html[data-color-scheme=system]{color-scheme:light dark}html[data-color-scheme=dark]{color-scheme:dark;--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--dim: rgba(255, 255, 255, .56);--muted: rgba(255, 255, 255, .42);--faint: rgba(255, 255, 255, .26);--panel: #1f1f1f;--panel2: #121212;--bg: #121212;--blue: #1a88ff;--blue2: #258eff;--soft: rgba(26, 136, 255, .1);--bd: rgba(26, 136, 255, .28);--logo: #1a88ff;--bluebg: #292929;--blueln: rgba(255, 255, 255, .05);--ok: #3fb950;--warn: #d29922;--star: #facc15;--err: #f85149;--hover: var(--color-hover);--canvas: #161717;--sh: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);--shc: 0 1px 2px rgba(0, 0, 0, .35)}}:root{--color-bg: #ffffff;--color-surface: #f5f5f5;--color-surface-raised: #ffffff;--color-surface-overlay: #ffffff;--color-surface-sunken: #f5f5f5;--color-inline-code-bg: rgba(0, 0, 0, .03);--color-well: #f5f5f5;--color-surface-deep: #f5f5f5;--color-media-alpha-bg-1: color-mix(in srgb, var(--color-bg) 52%, var(--color-text) 48%);--color-media-alpha-bg-2: color-mix(in srgb, var(--color-bg) 42%, var(--color-text) 58%);--media-alpha-canvas: conic-gradient( var(--color-media-alpha-bg-1) 25%, var(--color-media-alpha-bg-2) 0 50%, var(--color-media-alpha-bg-1) 0 75%, var(--color-media-alpha-bg-2) 0 ) 0 0 / 16px 16px;--color-text: rgba(0, 0, 0, .9);--color-text-strong: #000000;--color-text-muted: rgba(0, 0, 0, .6);--color-text-faint: rgba(0, 0, 0, .45);--color-text-on-accent: #ffffff;--color-line: rgba(0, 0, 0, .13);--color-subtle: rgba(0, 0, 0, .05);--color-line-strong: rgba(0, 0, 0, .15);--color-scrim: rgba(0, 0, 0, .4);--color-scrim-strong: rgba(0, 0, 0, .6);--color-text-on-scrim: #ffffff;--color-selected: rgba(0, 0, 0, .05);--color-selected-hover: rgba(0, 0, 0, .08);--color-hover: rgba(0, 0, 0, .03);--color-sidebar-bg: #f9fbfc;--color-user-bubble-bg: #f5f5f5;--color-accent: #1783ff;--color-accent-hover: #167ff7;--color-accent-soft: #e8f3ff;--color-accent-bd: rgba(23, 131, 255, .25);--color-success: #0e7a38;--color-success-soft: #e7f6ee;--color-success-bd: #bfe3cc;--color-warning: #a9610a;--color-warning-soft: #fbf1e0;--color-warning-bd: #f0d9b8;--color-danger: #c0392b;--color-danger-soft: #fbeaea;--color-danger-bd: #f0cccc;--color-diff-add-bg: rgba(22, 196, 86, .25);--color-diff-del-bg: rgba(255, 56, 73, .25);--color-done: #8250df;--color-done-soft: #f3e8ff;--color-done-bd: #e0ccff;--color-info: #1783ff;--color-term-magenta: #8250df;--color-term-cyan: #1b7c83;--color-term-black: #24292f;--space-05: 2px;--space-1: 4px;--space-1-5: 6px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-2xl: 20px;--radius-composer: 32px;--corner-shape-composer: superellipse(1.5);--radius-menu-row: var(--radius-sm);--corner-shape-menu: var(--corner-shape-composer);--menu-pad: 3.5px;--radius-menu-item: calc(var(--radius-lg) - var(--menu-pad) - var(--p-hairline));--radius-select-option: calc(var(--radius-md) - var(--space-1) - var(--p-hairline));--radius-dropdown-row: calc(var(--radius-lg) - var(--space-1) - var(--p-hairline));--color-menu-bg-frost: color-mix(in srgb, var(--color-bg) 70%, transparent);--color-topbar-bg-frost: color-mix(in srgb, var(--color-surface) 78%, transparent);--p-topbar-backdrop: saturate(150%) blur(12px);--color-menu-scrollbar: color-mix(in srgb, var(--color-text) 16%, transparent);--color-menu-scrollbar-hover: color-mix(in srgb, var(--color-text) 48%, transparent);--radius-full: 999px;--radius-window: 14px;--radius-window-chip: calc(var(--radius-window) - var(--space-2));--menu-scroll-fade: var(--space-5);--menu-item-padding-block: 5px;--menu-item-padding-inline: 9px;--menu-row-hug: var(--space-1-5);--menu-rows-seam: 1px;--menu-row-gap-icon: 7px;--menu-row-padding-block: var(--space-05);--menu-row-padding-inline: calc(var(--space-4) - var(--space-3) + var(--menu-row-hug));--menu-row-touch-padding-block: 11px;--menu-scrollbar-width: 3px;--menu-scrollbar-edge: calc(var(--menu-row-hug) + var(--p-hairline) - var(--menu-scrollbar-width));--menu-scrollbar-track-inset: calc(var(--radius-lg) - var(--space-1-5));--menu-scrollbar-thumb-min: 24px;--att-chip-pad-left: 5px;--wm-x-size: calc(var(--p-ic-sm) + var(--space-1));--wm-x-ring: var(--space-1-5);--z-base: 0;--z-raised: 1;--z-sticky: 100;--z-dropdown: 200;--z-overlay: 300;--z-modal: 400;--z-modal-dropdown: 500;--z-toast: 600;--z-tooltip: 650;--z-max: 9999;--shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);--shadow-menu: 0 6px 18px lch(0% 0 0 / .02), 0 3px 9px lch(0% 0 0 / .04), 0 1px 1px lch(0% 0 0 / .04);--color-menu-bg: rgba(255, 255, 255, .95);--p-menu-backdrop: blur(24px) saturate(1.8);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .05);--shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .08);--shadow-xl: 0 24px 64px rgba(16, 24, 40, .18), 0 8px 20px rgba(16, 24, 40, .1);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--duration-fast: .12s;--duration-base: .16s;--duration-slow: .26s;--duration-hover-intent: .25s;--duration-tooltip: .15s;--duration-spin: .7s;--duration-flash: 1.2s;--motion-panel-shift: 2px;--motion-panel-scale: .97;--color-composer-bg: #ffffff;--color-composer-line: rgba(0, 0, 0, .13);--color-composer-focus-line: rgba(0, 0, 0, .25);--color-send-bg: rgba(0, 0, 0, .9);--color-send-bg-hover: #252525;--color-send-icon: #ffffff;--color-stop-glyph: var(--color-danger);--color-send-bg-disabled: rgba(0, 0, 0, .05);--color-send-icon-disabled: rgba(0, 0, 0, .27);--opacity-send-disabled: 1;--shadow-send: 0 7px 16px -13px rgba(0, 0, 0, .38), 0 1px 2px rgba(0, 0, 0, .07);--shadow-send-hover: 0 8px 18px -13px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .09);--composer-send-icon-size: 28px;--font-ui-latin: "Schibsted Grotesk Variable", "Helvetica Neue", Arial;--font-ui: var(--font-ui-latin), "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-display: var(--font-ui);--font-kbd: "Schibsted Grotesk Variable", system-ui, sans-serif;--font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--text-2xs: calc(var(--ui-c1) - 1px);--text-xs: var(--ui-c1);--text-sm: calc(var(--ui-b2) - 1px);--text-base: var(--ui-b2);--text-lg: var(--ui-t2);--text-xl: var(--ui-t1);--text-2xl: var(--ui-t0);--leading-solid: 1;--leading-tight: 1.25;--leading-caption: 1.4;--leading-normal: 1.5;--leading-prose: 1.6;--leading-relaxed: 1.7;--weight-regular: 400;--weight-caption: 450;--weight-option-label: 475;--weight-medium: 500;--weight-ui-strong: 525;--weight-section-label: 600;--weight-semibold: 700;--ui-shift: calc(var(--base-font, 14px) - 14px);--md-shift: var(--ui-shift);--ui-t0: min(calc(20px + var(--ui-shift)), 24px);--ui-t1: min(calc(18px + var(--ui-shift)), 22px);--ui-t2: calc(16px + var(--ui-shift));--ui-b1: calc(15px + var(--ui-shift));--ui-b2: calc(14px + var(--ui-shift));--ui-c1: calc(12px + var(--ui-shift));--ui-c2: calc(10px + var(--ui-shift));--md-h1: calc(22px + var(--md-shift));--md-h2: calc(20px + var(--md-shift));--md-h3: calc(18px + var(--md-shift));--md-b1: calc(14px + var(--md-shift));--md-b2: calc(13px + var(--md-shift));--md-b3: calc(13px + var(--md-shift));--p-focus-ring-w: 3px;--p-focus-ring: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft);--p-focus-ring-strong: 0 0 0 var(--p-focus-ring-w) var(--color-accent-soft), 0 0 0 1px var(--color-accent);--p-selection: rgba(23, 131, 255, .2);--p-ic-sm: 14px;--p-ic-md: 16px;--p-ring-stroke: 1.5px;--p-ic-lg: 20px;--p-empty-ico: 28px;--p-hairline: .5px;--p-findring-w: 2px;--p-scroll-seam-h: 18px;--p-sidebar-seam-h: 13px;--icon-button-sm: 26px;--touch-target-min: 44px;--p-chip-num: 20px;--p-sidebar-w: 264px;--p-content-max: 760px;--p-content-wide: 920px;--p-table-max: 1040px;--p-table-cell-max: 700px;--p-findbar-w: 340px;--p-bubble-max: 78%;--p-dock-panel-h: 320px;--p-subagent-card-min: 180px;--p-slash-menu-h: 228px;--p-mention-menu-h: 296px;--p-mention-tip-w: 320px;--p-mention-tip-vmargin: var(--space-3);--p-mention-tip-spinner-lift: -.1em;--opacity-stale: .55;--p-add-menu-h: var(--p-slash-menu-h);--p-bp-sm: 640px;--p-bp-md: 980px}:root,html[data-font-scale=medium]{--base-font: 14px}html[data-font-scale=small]{--base-font: 12px}html[data-font-scale=large]{--base-font: 16px}html[data-font-scale=xlarge]{--base-font: 18px}.text-ui-t0{font-size:var(--ui-t0);line-height:round(calc(var(--ui-t0) * 1.4),1px)}.text-ui-t1{font-size:var(--ui-t1);line-height:round(calc(var(--ui-t1) * 1.44),1px)}.text-ui-t2{font-size:var(--ui-t2);line-height:round(calc(var(--ui-t2) * 1.5),1px)}.text-ui-b1{font-size:var(--ui-b1);line-height:round(calc(var(--ui-b1) * 1.47),1px)}.text-ui-b2{font-size:var(--ui-b2);line-height:round(calc(var(--ui-b2) * 1.42),1px)}.text-ui-c1{font-size:var(--ui-c1);line-height:round(calc(var(--ui-c1) * 1.5),1px)}.text-ui-c2{font-size:var(--ui-c2);line-height:round(calc(var(--ui-c2) * 1.4),1px)}.text-md-h1{font-size:var(--md-h1);line-height:round(calc(var(--md-h1) * 1.63),1px)}.text-md-h2{font-size:var(--md-h2);line-height:round(calc(var(--md-h2) * 1.6),1px)}.text-md-h3{font-size:var(--md-h3);line-height:round(calc(var(--md-h3) * 1.56),1px)}.text-md-b1{font-size:var(--md-b1);line-height:round(calc(var(--md-b1) * 1.625),1px)}.text-md-b2{font-size:var(--md-b2);line-height:round(calc(var(--md-b2) * 1.6),1px)}.text-md-b3{font-size:var(--md-b3);line-height:round(calc(var(--md-b3) * 1.57),1px)}html[data-color-scheme=dark]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-info: #1a88ff;--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-bg: #121212;--color-surface: #1f1f1f;--color-surface-raised: #292929;--color-surface-overlay: rgba(255, 255, 255, .1);--color-surface-sunken: #121212;--color-inline-code-bg: rgba(255, 255, 255, .1);--color-well: #1f1f1f;--color-surface-deep: #0d0d0d;--color-text: rgba(255, 255, 255, .84);--color-text-strong: #ffffff;--color-text-muted: rgba(255, 255, 255, .56);--color-text-faint: rgba(255, 255, 255, .42);--color-line: rgba(255, 255, 255, .12);--color-subtle: rgba(255, 255, 255, .05);--color-line-strong: rgba(255, 255, 255, .18);--color-scrim: rgba(0, 0, 0, .6);--color-scrim-strong: rgba(0, 0, 0, .75);--color-selected: rgba(255, 255, 255, .1);--color-selected-hover: rgba(255, 255, 255, .14);--color-hover: rgba(255, 255, 255, .05);--color-sidebar-bg: #0d0d0d;--color-user-bubble-bg: #292929;--color-accent: #1a88ff;--color-accent-hover: #258eff;--color-accent-soft: rgba(26, 136, 255, .1);--color-accent-bd: rgba(26, 136, 255, .28);--p-selection: rgba(26, 136, 255, .2);--color-success: #3fb950;--color-success-soft: rgba(63, 185, 80, .14);--color-success-bd: rgba(63, 185, 80, .28);--color-warning: #d29922;--color-warning-soft: rgba(210, 153, 34, .14);--color-warning-bd: rgba(210, 153, 34, .28);--color-danger: #f85149;--color-danger-soft: rgba(248, 81, 73, .14);--color-danger-bd: rgba(248, 81, 73, .28);--color-diff-add-bg: rgba(63, 185, 80, .14);--color-diff-del-bg: rgba(248, 81, 73, .14);--color-done: #a371f7;--color-done-soft: rgba(163, 113, 247, .14);--color-done-bd: rgba(163, 113, 247, .28);--color-term-magenta: #d2a8ff;--color-term-cyan: #76e3ea;--color-term-black: #484f58;--color-info: #1a88ff;--color-composer-bg: #1f1f1f;--color-composer-line: rgba(255, 255, 255, .12);--color-composer-focus-line: rgba(255, 255, 255, .25);--color-send-bg: rgba(255, 255, 255, .84);--color-send-bg-hover: rgba(255, 255, 255, .848);--color-send-icon: #1f1f1f;--color-stop-glyph: color-mix(in srgb, var(--color-danger) 72%, transparent);--color-send-bg-disabled: rgba(255, 255, 255, .1);--color-send-icon-disabled: rgba(255, 255, 255, .28);--shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18);--shadow-menu: 0 6px 18px rgba(0, 0, 0, .2), 0 3px 9px rgba(0, 0, 0, .24), 0 1px 1px rgba(0, 0, 0, .24);--color-menu-bg: rgba(41, 41, 41, .95);--shadow-input: 0 5px 16px -4px rgba(0, 0, 0, .07);--shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .24);--shadow-lg: 0 12px 32px rgba(0, 0, 0, .34), 0 4px 10px rgba(0, 0, 0, .28);--shadow-xl: 0 24px 64px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .32)}}:root{--color-sidebar-tint: rgba(255, 255, 255, .2)}html[data-color-scheme=dark]{--color-sidebar-tint: rgba(0, 0, 0, .12)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-sidebar-tint: rgba(0, 0, 0, .12)}}:root{--color-search-match: #ffe066;--color-search-match-current: #ffc531}html[data-color-scheme=dark]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}@media(prefers-color-scheme:dark){html[data-color-scheme=system]{--color-search-match: rgba(255, 197, 49, .3);--color-search-match-current: rgba(255, 197, 49, .55)}}::highlight(kimi-transcript-search){background-color:var(--color-search-match)}::highlight(kimi-transcript-search-current){background-color:var(--color-search-match-current)}.mention-pill{display:inline-flex;align-items:baseline;gap:var(--space-05);color:var(--color-text-muted);font-weight:var(--weight-ui-strong);white-space:nowrap;text-decoration:none;vertical-align:baseline;padding-inline:var(--space-05);transition:color var(--duration-fast) var(--ease-out)}.mention-pill:hover{color:var(--color-text)}.mention-pill:hover .mention-pill-icon{color:inherit}.mention-pill.mention-file,.mention-pill.mention-skill{cursor:pointer}.mention-pill.mention-file:hover,.mention-pill.mention-skill:hover{text-decoration:underline}.mention-pill:focus-visible{outline:none;box-shadow:var(--p-focus-ring);border-radius:var(--radius-sm)}.ProseMirror .mention-pill,.ProseMirror .mention-pill:hover{cursor:text;text-decoration:none}a.mention-folder{cursor:default}.mention-pill.mention-skill.mention-inert,.mention-pill.mention-skill.mention-inert:hover{cursor:default;text-decoration:none}.mention-pill-name{max-width:24em;min-width:0;overflow:hidden;text-overflow:ellipsis}.mention-pill-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--p-ic-sm);height:var(--p-ic-sm);color:var(--muted);align-self:center;flex-shrink:0}.mention-pill-icon svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block;stroke:currentColor;stroke-width:var(--p-hairline)}.mention-pill.pill-in-selection{background:var(--p-selection);border-radius:var(--radius-sm)}.mention-tip{position:fixed;z-index:var(--z-tooltip);max-width:min(var(--p-mention-tip-w),calc(100vw - 2 * var(--p-mention-tip-vmargin)));padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-bg);font-family:var(--font-ui);font-size:var(--text-xs);line-height:round(calc(var(--text-xs) * 1.5),1px);overflow-wrap:anywhere;opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}.mention-tip:not(.positioned){pointer-events:none}.mention-tip.positioned{opacity:1}.mention-tip-path{display:flex;align-items:flex-start;gap:var(--space-2)}.mention-tip-path-text{min-width:0}.mention-tip-sep{color:color-mix(in srgb,currentColor 45%,transparent)}.mention-tip-base{font-weight:var(--weight-semibold)}.mention-tip-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.mention-tip-name{font-weight:var(--weight-semibold);overflow-wrap:anywhere}.mention-tip-open,.mention-tip-copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--space-05);border:none;border-radius:var(--radius-xs);background:transparent;color:color-mix(in srgb,currentColor 65%,transparent);cursor:pointer;transition:color var(--duration-fast) var(--ease-out),background-color var(--duration-fast) var(--ease-out)}.mention-tip-open:hover,.mention-tip-copy:hover{color:var(--color-bg);background:color-mix(in srgb,var(--color-bg) 14%,transparent)}.mention-tip-open:focus-visible,.mention-tip-copy:focus-visible{outline:none;box-shadow:var(--p-focus-ring)}.mention-tip-open svg,.mention-tip-copy svg{width:var(--p-ic-sm);height:var(--p-ic-sm);display:block}.mention-tip-copy{margin-top:calc(0px - var(--space-05));margin-right:calc(var(--space-05) - var(--space-2))}.mention-tip-desc{margin-top:var(--space-05);color:color-mix(in srgb,currentColor 78%,transparent);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.mention-tip-spinner{display:inline-block;width:calc(var(--space-2) + var(--space-05));height:calc(var(--space-2) + var(--space-05));margin-left:var(--space-1);vertical-align:var(--p-mention-tip-spinner-lift);border-radius:50%;border:var(--p-ring-stroke) solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;animation:mention-tip-spin var(--duration-spin) linear infinite}@keyframes mention-tip-spin{to{transform:rotate(360deg)}}.mention-pill.mention-missing,.mention-pill.mention-missing:hover{color:color-mix(in srgb,var(--color-text-muted) 55%,transparent);text-decoration:line-through}.mention-pill.mention-missing .mention-pill-icon{color:inherit}@font-face{font-family:Noto Sans SC Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/NotoSansSC_wght_-BkPpiACN.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk_wght_-DIzGrWVg.woff2) format("woff2-variations")}@font-face{font-family:Schibsted Grotesk Variable;font-style:italic;font-display:swap;font-weight:400 900;src:url(/assets/SchibstedGrotesk-Italic_wght_-DjkBGo1z.woff2) format("woff2-variations")}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4}body{margin:0}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,blockquote,dl,dd,figure,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}b,strong{font-weight:var(--weight-medium)}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{margin:0;padding:0;font-family:inherit;font-size:100%;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background:transparent;background-image:none}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block}img,video{max-width:100%;height:auto}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1}table{border-collapse:collapse;border-color:inherit;text-indent:0}hr{height:0;color:inherit;border-top-width:1px}fieldset{margin:0;padding:0}legend{padding:0}dialog{padding:0}summary{display:list-item}[hidden]{display:none}@supports (interpolate-size: allow-keywords){:root{interpolate-size:allow-keywords}}:root{--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--dock-card-top-clearance: 72px;--question-card-body-min-h: 120px}.kw-icon{display:inline-block;flex:none;vertical-align:-.15em}code,pre,kbd,samp,tt{font-feature-settings:"liga" 0,"calt" 0,"ss01" 0;font-variant-ligatures:none}html,body,#app{height:100%;margin:0;background:var(--bg)}#app{position:fixed;inset:0}html,body{overflow:hidden}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--color-text) 12%,transparent) transparent}}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--color-text) 12%,transparent);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--color-text) 25%,transparent)}*::-webkit-scrollbar-corner{background:transparent}body{font-family:var(--sans);color:var(--color-text);background:var(--bg);font-size:var(--ui-font-size);font-weight:400;line-height:1.6;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto;font-synthesis:none;text-size-adjust:100%;-webkit-hyphens:none;hyphens:none}@keyframes kimi-card-in{0%{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes kimi-check-in{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.ch-eyes{animation:kimi-eye-look 16s ease-in-out infinite}.ch-eye{transform-box:fill-box;transform-origin:center;animation:kimi-eye-blink 11s ease-in-out infinite}@keyframes kimi-eye-look{0%,42%{transform:translate(0)}47%,53%{transform:translate(2px)}58%,80%{transform:translate(0)}84%,90%{transform:translate(-2px)}95%,to{transform:translate(0)}}@keyframes kimi-eye-blink{0%,94%,to{transform:scaleY(1)}96.5%,98%{transform:scaleY(.12)}}@media(prefers-reduced-motion:reduce){.ch-eyes,.ch-eye{animation:none}}.blink-now .ch-eye{animation:kimi-eye-blink-once .24s ease-in-out}@keyframes kimi-eye-blink-once{0%,to{transform:scaleY(1)}50%{transform:scaleY(.1)}}.md .markdown-renderer img{min-width:0;min-height:0}.app{font-size:var(--ui-font-size)}.md,.md .markdown-renderer,.md .markdown-renderer p,.md .markdown-renderer li,.u-bub,.u-bub .u-text,.a-msg .msg,.ph{font-size:var(--content-font-size)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:var(--md-b2)}.md,.u-bub .u-text,.a-msg .msg{text-autospace:normal}.md .code-block-container pre,.md .markstream-pre,.md .code-block-container pre code,.md .diff-pre code,.md .markdown-renderer :not(pre)>code,.md .markdown-renderer .inline-code,.a-msg code{font-size:var(--md-b3)}.md .markdown-renderer :is(h1,h2,h3,h4) :not(pre)>code,.md .markdown-renderer :is(h1,h2,h3,h4) .inline-code{font-size:.9em}.queue-item,.queue-text,.ctx-num,.model-pill,.perm-pill,.mode-pill,.compact-chip,.qcard,.qtext,.qopt,.qbtn,.srow,.srow-val{font-size:var(--ui-font-size)}.qopt-desc,.srow-label{font-size:var(--ui-font-size-sm)}.code-block-header,.code-block-header *,.diff-lang,.queue-label,.qopt-key,.qstep,.srow-sub{font-size:var(--ui-font-size-xs)}@media(max-width:640px){:root{--content-font-size: calc(var(--md-b1) + 2px)}.md .markdown-renderer blockquote,.md .markdown-renderer td,.md .markdown-renderer th{font-size:calc(var(--md-b2) + 2px)}}:root{--anim-rive-spin: .4167s;--anim-leftbar: .5333s;--anim-leftbar-shrink: .2s}#bar-divider{transform-box:view-box;transform-origin:9.3px 12px;transition:transform var(--anim-leftbar-shrink) linear}svg:hover #bar-divider,button:hover #bar-divider{transform:translate(-1.5px) scaleY(.5)}#bar-arrow{transform-box:view-box;transform-origin:0 0;transform:translate(63.95833%,50.625%) scale(0)}svg:hover #bar-arrow,button:hover #bar-arrow{animation:leftbar-arrow var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow{0%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:0}3.125%{transform:translate(62.97083%,50.625%) scale(-.6);opacity:1}15.625%{transform:translate(59.0125%,50.625%) scale(-1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(-1);opacity:1}}#bar-arrow-expand{transform-box:view-box;transform-origin:0 0;transform:translate(52.08333%,50.625%) scale(0)}svg:hover #bar-arrow-expand,button:hover #bar-arrow-expand{animation:leftbar-arrow-expand var(--anim-leftbar) linear 1 forwards}@keyframes leftbar-arrow-expand{0%{transform:translate(37.02917%,50.625%) scale(.6);opacity:0}3.125%{transform:translate(37.02917%,50.625%) scale(.6);opacity:1}15.625%{transform:translate(40.9875%,50.625%) scale(1);opacity:1}37.5%{transform:translate(52.08333%,50.625%) scale(1);opacity:1}to{transform:translate(52.08333%,50.625%) scale(1);opacity:1}}#p1{transform-box:view-box;transform-origin:0 0}svg:hover #p1,button:hover #p1{animation:nc-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes nc-plus-spin{0%{transform:translate(11.5px,11.5px)}8%{transform:translate(11.501px,11.48px) rotate(1.1795deg) scale(1.02022)}12%{transform:translate(11.511px,11.46px) rotate(2.8374deg) scale(1.03026)}20%{transform:translate(11.562px,11.401px) rotate(8.8167deg) scale(1.05041)}24%{transform:translate(11.608px,11.361px) rotate(13.4726deg) scale(1.06017)}32%{transform:translate(11.751px,11.278px) rotate(25.9719deg) scale(1.08008)}48%{transform:translate(12.149px,11.222px) rotate(55.8418deg) scale(1.12025)}52%{transform:translate(12.235px,11.236px) rotate(62.0737deg) scale(1.12953)}60%{transform:translate(12.371px,11.276px) rotate(72.1167deg) scale(1.14954)}68%{transform:translate(12.446px,11.346px) rotate(79.3018deg) scale(1.12048)}76%{transform:translate(12.488px,11.403px) rotate(84.2633deg) scale(1.09046)}88%{transform:translate(12.509px,11.464px) rotate(88.52deg) scale(1.04535)}to{transform:translate(12.5px,11.5px) rotate(90deg)}}#af-p1{transform-box:view-box;transform-origin:18.4px 16.3px}svg:hover #af-p1,button:hover #af-p1{animation:folder-plus-spin var(--anim-rive-spin) linear 1 forwards}@keyframes folder-plus-spin{0%{transform:none}8%{transform:rotate(1.1795deg) scale(1.02022)}12%{transform:rotate(2.8374deg) scale(1.03026)}20%{transform:rotate(8.8167deg) scale(1.05041)}24%{transform:rotate(13.4726deg) scale(1.06017)}32%{transform:rotate(25.9719deg) scale(1.08008)}48%{transform:rotate(55.8418deg) scale(1.12025)}52%{transform:rotate(62.0737deg) scale(1.12953)}60%{transform:rotate(72.1167deg) scale(1.14954)}68%{transform:rotate(79.3018deg) scale(1.12048)}76%{transform:rotate(84.2633deg) scale(1.09046)}88%{transform:rotate(88.52deg) scale(1.04535)}to{transform:rotate(90deg)}} diff --git a/apps/kimi-code/dist-web/assets/index-CAYChmT7.js b/apps/kimi-code/dist-web/assets/index-CAYChmT7.js deleted file mode 100644 index 649d65f5439..00000000000 --- a/apps/kimi-code/dist-web/assets/index-CAYChmT7.js +++ /dev/null @@ -1,818 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mhchem-DtR62fUK.js","assets/katex-DnlPpQZa.js","assets/mermaid.core-D8UeR6T-.js","assets/_commonjsHelpers-CqkleIqs.js","assets/CodeBlockNode-CAOmb2VU.js","assets/safeRaf-DGuzXxDK.js","assets/index5-Cs7H224C.js","assets/index11-DoKsjH9d.js","assets/rive-CeXCFBdn.js"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Mb(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hi={},h1=[],ga=()=>{},iO=()=>!1,Ev=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ib=e=>e.startsWith("onUpdate:"),Ki=Object.assign,C6=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},CQ=Object.prototype.hasOwnProperty,Ti=(e,t)=>CQ.call(e,t),Cn=Array.isArray,p1=e=>um(e)==="[object Map]",Xh=e=>um(e)==="[object Set]",aM=e=>um(e)==="[object Date]",AQ=e=>um(e)==="[object RegExp]",Hn=e=>typeof e=="function",Xi=e=>typeof e=="string",Vl=e=>typeof e=="symbol",Li=e=>e!==null&&typeof e=="object",A6=e=>(Li(e)||Hn(e))&&Hn(e.then)&&Hn(e.catch),oO=Object.prototype.toString,um=e=>oO.call(e),xQ=e=>um(e).slice(8,-1),Tb=e=>um(e)==="[object Object]",Eb=e=>Xi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yh=Mb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Lb=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},SQ=/-\w/g,Ts=Lb(e=>e.replace(SQ,t=>t.slice(1).toUpperCase())),_Q=/\B([A-Z])/g,fl=Lb(e=>e.replace(_Q,"-$1").toLowerCase()),Nb=Lb(e=>e.charAt(0).toUpperCase()+e.slice(1)),qy=Lb(e=>e?`on${Nb(e)}`:""),Os=(e,t)=>!Object.is(e,t),m1=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Db=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E9=e=>{const t=Xi(e)?Number(e):NaN;return isNaN(t)?e:t};let uM;const Fb=()=>uM||(uM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),MQ="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",IQ=Mb(MQ);function on(e){if(Cn(e)){const t={};for(let n=0;n{if(n){const i=n.split(EQ);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ze(e){let t="";if(Xi(e))t=e;else if(Cn(e))for(let n=0;nMc(n,t))}const lO=e=>!!(e&&e.__v_isRef===!0),B=e=>Xi(e)?e:e==null?"":Cn(e)||Li(e)&&(e.toString===oO||!Hn(e.toString))?lO(e)?B(e.value):JSON.stringify(e,aO,2):String(e),aO=(e,t)=>lO(t)?aO(e,t.value):p1(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o],s)=>(n[D3(i,s)+" =>"]=o,n),{})}:Xh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>D3(n))}:Vl(t)?D3(t):Li(t)&&!Cn(t)&&!Tb(t)?String(t):t,D3=(e,t="")=>{var n;return Vl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function OQ(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let As;class uO{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&As&&(As.active?(this.parent=As,this.index=(As.scopes||(As.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(As===this)As=this.prevScope;else{let t=As;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n0)return;if(Yg){let t=Yg;for(Yg=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Qg;){let t=Qg;for(Qg=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function fO(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hO(e){let t,n=e.depsTail,i=n;for(;i;){const o=i.prevDep;i.version===-1?(i===n&&(n=o),_6(i),$Q(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=n}function pw(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pO(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pO(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===B0)||(e.globalVersion=B0,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!pw(e))))return;e.flags|=2;const t=e.dep,n=uo,i=Ha;uo=e,Ha=!0;try{fO(e);const o=e.fn(e._value);(t.version===0||Os(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{uo=n,Ha=i,hO(e),e.flags&=-3}}function _6(e,t=!1){const{dep:n,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)_6(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $Q(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function M9t(e,t){e.effect instanceof L9&&(e=e.effect.fn);const n=new L9(e);t&&Ki(n,t);try{n.run()}catch(o){throw n.stop(),o}const i=n.run.bind(n);return i.effect=n,i}function I9t(e){e.effect.stop()}let Ha=!0;const mO=[];function Ru(){mO.push(Ha),Ha=!1}function Ou(){const e=mO.pop();Ha=e===void 0?!0:e}function cM(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=uo;uo=void 0;try{t()}finally{uo=n}}}let B0=0;class PQ{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ob{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!uo||!Ha||uo===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==uo)n=this.activeLink=new PQ(uo,this),uo.deps?(n.prevDep=uo.depsTail,uo.depsTail.nextDep=n,uo.depsTail=n):uo.deps=uo.depsTail=n,gO(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=uo.depsTail,n.nextDep=void 0,uo.depsTail.nextDep=n,uo.depsTail=n,uo.deps===n&&(uo.deps=i)}return n}trigger(t){this.version++,B0++,this.notify(t)}notify(t){x6();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{S6()}}}function gO(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)gO(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const N9=new WeakMap,kh=Symbol(""),mw=Symbol(""),R0=Symbol("");function yr(e,t,n){if(Ha&&uo){let i=N9.get(e);i||N9.set(e,i=new Map);let o=i.get(n);o||(i.set(n,o=new Ob),o.map=i,o.key=n),o.track()}}function dc(e,t,n,i,o,s){const r=N9.get(e);if(!r){B0++;return}const l=a=>{a&&a.trigger()};if(x6(),t==="clear")r.forEach(l);else{const a=Cn(e),u=a&&Eb(n);if(a&&n==="length"){const c=Number(i);r.forEach((d,f)=>{(f==="length"||f===R0||!Vl(f)&&f>=c)&&l(d)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),u&&l(r.get(R0)),t){case"add":a?u&&l(r.get("length")):(l(r.get(kh)),p1(e)&&l(r.get(mw)));break;case"delete":a||(l(r.get(kh)),p1(e)&&l(r.get(mw)));break;case"set":p1(e)&&l(r.get(kh));break}}S6()}function zQ(e,t){const n=N9.get(e);return n&&n.get(t)}function Ap(e){const t=mi(e);return t===e?t:(yr(t,"iterate",R0),Pl(e)?t:t.map(Va))}function $b(e){return yr(e=mi(e),"iterate",R0),e}function bu(e,t){return Ic(e)?j1(Nu(e)?Va(t):t):Va(t)}const jQ={__proto__:null,[Symbol.iterator](){return B3(this,Symbol.iterator,e=>bu(this,e))},concat(...e){return Ap(this).concat(...e.map(t=>Cn(t)?Ap(t):t))},entries(){return B3(this,"entries",e=>(e[1]=bu(this,e[1]),e))},every(e,t){return ec(this,"every",e,t,void 0,arguments)},filter(e,t){return ec(this,"filter",e,t,n=>n.map(i=>bu(this,i)),arguments)},find(e,t){return ec(this,"find",e,t,n=>bu(this,n),arguments)},findIndex(e,t){return ec(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ec(this,"findLast",e,t,n=>bu(this,n),arguments)},findLastIndex(e,t){return ec(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ec(this,"forEach",e,t,void 0,arguments)},includes(...e){return R3(this,"includes",e)},indexOf(...e){return R3(this,"indexOf",e)},join(e){return Ap(this).join(e)},lastIndexOf(...e){return R3(this,"lastIndexOf",e)},map(e,t){return ec(this,"map",e,t,void 0,arguments)},pop(){return Jm(this,"pop")},push(...e){return Jm(this,"push",e)},reduce(e,...t){return dM(this,"reduce",e,t)},reduceRight(e,...t){return dM(this,"reduceRight",e,t)},shift(){return Jm(this,"shift")},some(e,t){return ec(this,"some",e,t,void 0,arguments)},splice(...e){return Jm(this,"splice",e)},toReversed(){return Ap(this).toReversed()},toSorted(e){return Ap(this).toSorted(e)},toSpliced(...e){return Ap(this).toSpliced(...e)},unshift(...e){return Jm(this,"unshift",e)},values(){return B3(this,"values",e=>bu(this,e))}};function B3(e,t,n){const i=$b(e),o=i[t]();return i!==e&&!Pl(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const HQ=Array.prototype;function ec(e,t,n,i,o,s){const r=$b(e),l=r!==e&&!Pl(e),a=r[t];if(a!==HQ[t]){const d=a.apply(e,s);return l?Va(d):d}let u=n;r!==e&&(l?u=function(d,f){return n.call(this,bu(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=a.call(r,u,i);return l&&o?o(c):c}function dM(e,t,n,i){const o=$b(e),s=o!==e&&!Pl(e);let r=n,l=!1;o!==e&&(s?(l=i.length===0,r=function(u,c,d){return l&&(l=!1,u=bu(e,u)),n.call(this,u,bu(e,c),d,e)}):n.length>3&&(r=function(u,c,d){return n.call(this,u,c,d,e)}));const a=o[t](r,...i);return l?bu(e,a):a}function R3(e,t,n){const i=mi(e);yr(i,"iterate",R0);const o=i[t](...n);return(o===-1||o===!1)&&jb(n[0])?(n[0]=mi(n[0]),i[t](...n)):o}function Jm(e,t,n=[]){Ru(),x6();const i=mi(e)[t].apply(e,n);return S6(),Ou(),i}const WQ=Mb("__proto__,__v_isRef,__isVue"),vO=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vl));function qQ(e){Vl(e)||(e=String(e));const t=mi(this);return yr(t,"has",e),t.hasOwnProperty(e)}class yO{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(o?s?xO:AO:s?CO:wO).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const r=Cn(t);if(!o){let a;if(r&&(a=jQ[n]))return a;if(n==="hasOwnProperty")return qQ}const l=Reflect.get(t,n,xo(t)?t:i);if((Vl(n)?vO.has(n):WQ(n))||(o||yr(t,"get",n),s))return l;if(xo(l)){const a=r&&Eb(n)?l:l.value;return o&&Li(a)?D9(a):a}return Li(l)?o?D9(l):ho(l):l}}class kO extends yO{constructor(t=!1){super(!1,t)}set(t,n,i,o){let s=t[n];const r=Cn(t)&&Eb(n);if(!this._isShallow){const u=Ic(s);if(!Pl(i)&&!Ic(i)&&(s=mi(s),i=mi(i)),!r&&xo(s)&&!xo(i))return u||(s.value=i),!0}const l=r?Number(n)e,L2=e=>Reflect.getPrototypeOf(e);function GQ(e,t,n){return function(...i){const o=this.__v_raw,s=mi(o),r=p1(s),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,u=o[e](...i),c=n?gw:t?j1:Va;return!t&&yr(s,"iterate",a?mw:kh),Ki(Object.create(u),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:l?[c(d[0]),c(d[1])]:c(d),done:f}}})}}function N2(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function QQ(e,t){const n={get(o){const s=this.__v_raw,r=mi(s),l=mi(o);e||(Os(o,l)&&yr(r,"get",o),yr(r,"get",l));const{has:a}=L2(r),u=t?gw:e?j1:Va;if(a.call(r,o))return u(s.get(o));if(a.call(r,l))return u(s.get(l));s!==r&&s.get(o)},get size(){const o=this.__v_raw;return!e&&yr(mi(o),"iterate",kh),o.size},has(o){const s=this.__v_raw,r=mi(s),l=mi(o);return e||(Os(o,l)&&yr(r,"has",o),yr(r,"has",l)),o===l?s.has(o):s.has(o)||s.has(l)},forEach(o,s){const r=this,l=r.__v_raw,a=mi(l),u=t?gw:e?j1:Va;return!e&&yr(a,"iterate",kh),l.forEach((c,d)=>o.call(s,u(c),u(d),r))}};return Ki(n,e?{add:N2("add"),set:N2("set"),delete:N2("delete"),clear:N2("clear")}:{add(o){const s=mi(this),r=L2(s),l=mi(o),a=!t&&!Pl(o)&&!Ic(o)?l:o;return r.has.call(s,a)||Os(o,a)&&r.has.call(s,o)||Os(l,a)&&r.has.call(s,l)||(s.add(a),dc(s,"add",a,a)),this},set(o,s){!t&&!Pl(s)&&!Ic(s)&&(s=mi(s));const r=mi(this),{has:l,get:a}=L2(r);let u=l.call(r,o);u||(o=mi(o),u=l.call(r,o));const c=a.call(r,o);return r.set(o,s),u?Os(s,c)&&dc(r,"set",o,s):dc(r,"add",o,s),this},delete(o){const s=mi(this),{has:r,get:l}=L2(s);let a=r.call(s,o);a||(o=mi(o),a=r.call(s,o)),l&&l.call(s,o);const u=s.delete(o);return a&&dc(s,"delete",o,void 0),u},clear(){const o=mi(this),s=o.size!==0,r=o.clear();return s&&dc(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=GQ(o,e,t)}),n}function Pb(e,t){const n=QQ(e,t);return(i,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Ti(n,o)&&o in i?n:i,o,s)}const YQ={get:Pb(!1,!1)},JQ={get:Pb(!1,!0)},XQ={get:Pb(!0,!1)},eY={get:Pb(!0,!0)},wO=new WeakMap,CO=new WeakMap,AO=new WeakMap,xO=new WeakMap;function tY(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ho(e){return Ic(e)?e:zb(e,!1,UQ,YQ,wO)}function Bh(e){return zb(e,!1,KQ,JQ,CO)}function D9(e){return zb(e,!0,VQ,XQ,AO)}function T9t(e){return zb(e,!0,ZQ,eY,xO)}function zb(e,t,n,i,o){if(!Li(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const r=tY(xQ(e));if(r===0)return e;const l=new Proxy(e,r===2?i:n);return o.set(e,l),l}function Nu(e){return Ic(e)?Nu(e.__v_raw):!!(e&&e.__v_isReactive)}function Ic(e){return!!(e&&e.__v_isReadonly)}function Pl(e){return!!(e&&e.__v_isShallow)}function jb(e){return e?!!e.__v_raw:!1}function mi(e){const t=e&&e.__v_raw;return t?mi(t):e}function Bt(e){return!Ti(e,"__v_skip")&&Object.isExtensible(e)&&sO(e,"__v_skip",!0),e}const Va=e=>Li(e)?ho(e):e,j1=e=>Li(e)?D9(e):e;function xo(e){return e?e.__v_isRef===!0:!1}function U(e){return SO(e,!1)}function Ga(e){return SO(e,!0)}function SO(e,t){return xo(e)?e:new nY(e,t)}class nY{constructor(t,n){this.dep=new Ob,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:mi(t),this._value=n?t:Va(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||Pl(t)||Ic(t);t=i?t:mi(t),Os(t,n)&&(this._rawValue=t,this._value=i?t:Va(t),this.dep.trigger())}}function iY(e){e.dep&&e.dep.trigger()}function p(e){return xo(e)?e.value:e}function Na(e){return Hn(e)?e():p(e)}const oY={get:(e,t,n)=>t==="__v_raw"?e:p(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return xo(o)&&!xo(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function _O(e){return Nu(e)?e:new Proxy(e,oY)}class sY{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ob,{get:i,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function rY(e){return new sY(e)}function lY(e){const t=Cn(e)?new Array(e.length):{};for(const n in e)t[n]=MO(e,n);return t}class aY{constructor(t,n,i){this._object=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._key=Vl(n)?n:String(n),this._raw=mi(t);let o=!0,s=t;if(!Cn(t)||Vl(this._key)||!Eb(this._key))do o=!jb(s)||Pl(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=p(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&xo(this._raw[this._key])){const n=this._object[this._key];if(xo(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return zQ(this._raw,this._key)}}class uY{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function E9t(e,t,n){return xo(e)?e:Hn(e)?new uY(e):Li(e)&&arguments.length>1?MO(e,t,n):U(e)}function MO(e,t,n){return new aY(e,t,n)}class cY{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ob(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=B0-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&uo!==this)return dO(this,!0),!0}get value(){const t=this.dep.track();return pO(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dY(e,t,n=!1){let i,o;return Hn(e)?i=e:(i=e.get,o=e.set),new cY(i,o,n)}const L9t={GET:"get",HAS:"has",ITERATE:"iterate"},N9t={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},D2={},F9=new WeakMap;let od;function D9t(){return od}function fY(e,t=!1,n=od){if(n){let i=F9.get(n);i||F9.set(n,i=[]),i.push(e)}}function hY(e,t,n=hi){const{immediate:i,deep:o,once:s,scheduler:r,augmentJob:l,call:a}=n,u=w=>o?w:Pl(w)||o===!1||o===0?fc(w,1):fc(w);let c,d,f,h,m=!1,g=!1;if(xo(e)?(d=()=>e.value,m=Pl(e)):Nu(e)?(d=()=>u(e),m=!0):Cn(e)?(g=!0,m=e.some(w=>Nu(w)||Pl(w)),d=()=>e.map(w=>{if(xo(w))return w.value;if(Nu(w))return u(w);if(Hn(w))return a?a(w,2):w()})):Hn(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){Ru();try{f()}finally{Ou()}}const w=od;od=c;try{return a?a(e,3,[h]):e(h)}finally{od=w}}:d=ga,t&&o){const w=d,M=o===!0?1/0:o;d=()=>fc(w(),M)}const v=Lv(),y=()=>{c.stop(),v&&v.active&&C6(v.effects,c)};if(s&&t){const w=t;t=(...M)=>{const N=w(...M);return y(),N}}let b=g?new Array(e.length).fill(D2):D2;const A=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const M=c.run();if(w||o||m||(g?M.some((N,T)=>Os(N,b[T])):Os(M,b))){f&&f();const N=od;od=c;try{const T=[M,b===D2?void 0:g&&b[0]===D2?[]:b,h];b=M,a?a(t,3,T):t(...T)}finally{od=N}}}else c.run()};return l&&l(A),c=new L9(d),c.scheduler=r?()=>r(A,!1):A,h=w=>fY(w,!1,c),f=c.onStop=()=>{const w=F9.get(c);if(w){if(a)a(w,4);else for(const M of w)M();F9.delete(c)}},t?i?A(!0):b=c.run():r?r(A.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function fc(e,t=1/0,n){if(t<=0||!Li(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,xo(e))fc(e.value,t,n);else if(Cn(e))for(let i=0;i{fc(i,t,n)});else if(Tb(e)){for(const i in e)fc(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&fc(e[i],t,n)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const IO=[];function pY(e){IO.push(e)}function mY(){IO.pop()}function F9t(e,t){}const B9t={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},gY={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Nv(e,t,n,i){try{return i?e(...i):e()}catch(o){cm(o,t,n)}}function ba(e,t,n,i){if(Hn(e)){const o=Nv(e,t,n,i);return o&&A6(o)&&o.catch(s=>{cm(s,t,n)}),o}if(Cn(e)){const o=[];for(let s=0;s>>1,o=Pr[i],s=O0(o);s=O0(n)?Pr.push(e):Pr.splice(yY(t),0,e),e.flags|=1,EO()}}function EO(){B9||(B9=TO.then(LO))}function R9(e){Cn(e)?g1.push(...e):sd&&e.id===-1?sd.splice(zp+1,0,e):e.flags&1||(g1.push(e),e.flags|=1),EO()}function fM(e,t,n=mu+1){for(;nO0(n)-O0(i));if(g1.length=0,sd){sd.push(...t);return}for(sd=t,zp=0;zpe.id==null?e.flags&2?-1:1/0:e.id;function LO(e){try{for(mu=0;mujp.emit(o,...s)),F2=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{NO(s,t)}),setTimeout(()=>{jp||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,F2=[])},3e3)):F2=[]}let sr=null,Hb=null;function $0(e){const t=sr;return sr=e,Hb=e&&e.type.__scopeId||null,t}function R9t(e){Hb=e}function O9t(){Hb=null}const $9t=e=>ce;function ce(e,t=sr,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&W9(-1);const s=$0(t);let r;try{r=e(...o)}finally{$0(s),i._d&&W9(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function di(e,t){if(sr===null)return e;const n=Bv(sr),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Hn(t)?t.call(i&&i.proxy):t}}function kY(){return!!(vs()||bh)}const bY=Symbol.for("v-scx"),wY=()=>en(bY);function v1(e,t){return Dv(e,null,t)}function P9t(e,t){return Dv(e,null,{flush:"post"})}function CY(e,t){return Dv(e,null,{flush:"sync"})}function Ue(e,t,n){return Dv(e,t,n)}function Dv(e,t,n=hi){const{immediate:i,deep:o,flush:s,once:r}=n,l=Ki({},n),a=t&&i||!t&&s!=="post";let u;if(Oh){if(s==="sync"){const h=wY();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=ga,h.resume=ga,h.pause=ga,h}}const c=ir;l.call=(h,m,g)=>ba(h,c,m,g);let d=!1;s==="post"?l.scheduler=h=>{is(h,c&&c.suspense)}:s!=="sync"&&(d=!0,l.scheduler=(h,m)=>{m?h():M6(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=hY(e,t,l);return Oh&&(u?u.push(f):a&&f()),f}function AY(e,t,n){const i=this.proxy,o=Xi(e)?e.includes(".")?DO(i,e):()=>i[e]:e.bind(i,i);let s;Hn(t)?s=t:(s=t.handler,n=t);const r=hm(this),l=Dv(o,s.bind(i),n);return r(),l}function DO(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport,Qf=e=>e&&(e.disabled||e.disabled===""),xY=e=>e&&(e.defer||e.defer===""),hM=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pM=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,vw=(e,t)=>{const n=e&&e.to;return Xi(n)?t?t(n):null:n},SY={name:"Teleport",__isTeleport:!0,process(e,t,n,i,o,s,r,l,a,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:g,createComment:v,parentNode:y}}=u,b=Qf(t.props);let{dynamicChildren:A}=t;const w=(T,C,I)=>{T.shapeFlag&16&&c(T.children,C,I,o,s,r,l,a)},M=(T=t)=>{const C=Qf(T.props),I=T.target=vw(T.props,m),S=yw(I,T,g,h);I&&(r!=="svg"&&hM(I)?r="svg":r!=="mathml"&&pM(I)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(I),C||(w(T,I,S),Cg(T,!1)))},N=T=>{const C=()=>{if(Yc.get(T)===C){if(Yc.delete(T),Qf(T.props)){const I=y(T.el)||n;w(T,I,T.anchor),Cg(T,!0)}M(T)}};Yc.set(T,C),is(C,s)};if(e==null){const T=t.el=g(""),C=t.anchor=g("");if(h(T,n,i),h(C,n,i),xY(t.props)||s&&s.pendingBranch){N(t);return}b&&(w(t,n,C),Cg(t,!0)),M()}else{t.el=e.el;const T=t.anchor=e.anchor,C=Yc.get(e);if(C){C.flags|=8,Yc.delete(e),N(t);return}t.targetStart=e.targetStart;const I=t.target=e.target,S=t.targetAnchor=e.targetAnchor,E=Qf(e.props),_=E?n:I,F=E?T:S;if(r==="svg"||hM(I)?r="svg":(r==="mathml"||pM(I))&&(r="mathml"),A?(f(e.dynamicChildren,A,_,o,s,r,l),O6(e,t,!0)):a||d(e,t,_,F,o,s,r,l,!1),b)E?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):B2(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=vw(t.props,m);q&&(t.target=q,B2(t,q,null,u,0))}else E&&B2(t,I,S,u,1);Cg(t,b)}},remove(e,t,n,{um:i,o:{remove:o}},s){const{shapeFlag:r,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:f}=e,h=Qf(f),m=s||!h,g=Yc.get(e);if(g&&(g.flags|=8,Yc.delete(e)),d&&(o(u),o(c)),s&&o(a),!g&&(h||d)&&r&16)for(let v=0;v{e.isMounted=!0}),ii(()=>{e.isUnmounting=!0}),e}const ea=[Function,Array],OO={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ea,onEnter:ea,onAfterEnter:ea,onEnterCancelled:ea,onBeforeLeave:ea,onLeave:ea,onAfterLeave:ea,onLeaveCancelled:ea,onBeforeAppear:ea,onAppear:ea,onAfterAppear:ea,onAppearCancelled:ea},$O=e=>{const t=e.subTree;return t.component?$O(t.component):t},MY={name:"BaseTransition",props:OO,setup(e,{slots:t}){const n=vs(),i=RO();return()=>{const o=t.default&&I6(t.default(),!0),s=o&&o.length?PO(o):n.subTree?ne():void 0;if(!s)return;const r=mi(e),{mode:l}=r;if(i.isLeaving)return O3(s);const a=mM(s);if(!a)return O3(s);let u=P0(a,r,i,n,d=>u=d);a.type!==as&&Bd(a,u);let c=n.subTree&&mM(n.subTree);if(c&&c.type!==as&&!Ba(c,a)&&$O(n).type!==as){let d=P0(c,r,i,n);if(Bd(c,d),l==="out-in"&&a.type!==as)return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},O3(s);l==="in-out"&&a.type!==as?d.delayLeave=(f,h,m)=>{const g=zO(i,c);g[String(c.key)]=c,f[la]=()=>{h(),f[la]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function PO(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==as){t=n;break}}return t}const IY=MY;function zO(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function P0(e,t,n,i,o){const{appear:s,mode:r,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:A}=t,w=String(e.key),M=zO(n,e),N=(I,S)=>{I&&ba(I,i,9,S)},T=(I,S)=>{const E=S[1];N(I,S),Cn(I)?I.every(_=>_.length<=1)&&E():I.length<=1&&E()},C={mode:r,persisted:l,beforeEnter(I){let S=a;if(!n.isMounted)if(s)S=v||a;else return;I[la]&&I[la](!0);const E=M[w];E&&Ba(e,E)&&E.el[la]&&E.el[la](),N(S,[I])},enter(I){if(M[w]===e)return;let S=u,E=c,_=d;if(!n.isMounted)if(s)S=y||u,E=b||c,_=A||d;else return;let F=!1;I[Xm]=P=>{F||(F=!0,P?N(_,[I]):N(E,[I]),C.delayedLeave&&C.delayedLeave(),I[Xm]=void 0)};const q=I[Xm].bind(null,!1);S?T(S,[I,q]):q()},leave(I,S){const E=String(e.key);if(I[Xm]&&I[Xm](!0),n.isUnmounting)return S();N(f,[I]);let _=!1;I[la]=q=>{_||(_=!0,S(),q?N(g,[I]):N(m,[I]),I[la]=void 0,M[E]===e&&delete M[E])};const F=I[la].bind(null,!1);M[E]=e,h?T(h,[I,F]):F()},clone(I){const S=P0(I,t,n,i,o);return o&&o(S),S}};return C}function O3(e){if(Fv(e))return e=Tc(e),e.children=null,e}function mM(e){if(!Fv(e))return BO(e.type)&&e.children?PO(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Hn(n.default))return n.default()}}function Bd(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bd(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function I6(e,t=!1,n){let i=[],o=0;for(let s=0;s1)for(let s=0;sn.value,set:s=>n.value=s})}return n}function gM(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $9=new WeakMap;function y1(e,t,n,i,o=!1){if(Cn(e)){e.forEach((g,v)=>y1(g,t&&(Cn(t)?t[v]:t),n,i,o));return}if(wc(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&y1(e,t,n,i.component.subTree);return}const s=i.shapeFlag&4?Bv(i.component):i.el,r=o?null:s,{i:l,r:a}=e,u=t&&t.r,c=l.refs===hi?l.refs={}:l.refs,d=l.setupState,f=mi(d),h=d===hi?iO:g=>gM(c,g)?!1:Ti(f,g),m=(g,v)=>!(v&&gM(c,v));if(u!=null&&u!==a){if(vM(t),Xi(u))c[u]=null,h(u)&&(d[u]=null);else if(xo(u)){const g=t;m(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(Hn(a)){Ru();try{Nv(a,l,12,[r,c])}finally{Ou()}}else{const g=Xi(a),v=xo(a);if(g||v){const y=()=>{if(e.f){const b=g?h(a)?d[a]:c[a]:m()||!e.k?a.value:c[e.k];if(o)Cn(b)&&C6(b,s);else if(Cn(b))b.includes(s)||b.push(s);else if(g)c[a]=[s],h(a)&&(d[a]=c[a]);else{const A=[s];m(a,e.k)&&(a.value=A),e.k&&(c[e.k]=A)}}else g?(c[a]=r,h(a)&&(d[a]=r)):v&&(m(a,e.k)&&(a.value=r),e.k&&(c[e.k]=r))};if(r){const b=()=>{y(),$9.delete(e)};b.id=-1,$9.set(e,b),is(b,n)}else vM(e),y()}}}function vM(e){const t=$9.get(e);t&&(t.flags|=8,$9.delete(e))}let yM=!1;const xp=()=>{yM||(console.error("Hydration completed but contains mismatches."),yM=!0)},EY=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",LY=e=>e.namespaceURI.includes("MathML"),R2=e=>{if(e.nodeType===1){if(EY(e))return"svg";if(LY(e))return"mathml"}},Xp=e=>e.nodeType===8;function NY(e){const{mt:t,p:n,o:{patchProp:i,createText:o,nextSibling:s,parentNode:r,remove:l,insert:a,createComment:u}}=e,c=(A,w)=>{if(!w.hasChildNodes()){n(null,A,w),O9(),w._vnode=A;return}d(w.firstChild,A,null,null,null),O9(),w._vnode=A},d=(A,w,M,N,T,C=!1)=>{C=C||!!w.dynamicChildren;const I=Xp(A)&&A.data==="[",S=()=>g(A,w,M,N,T,I),{type:E,ref:_,shapeFlag:F,patchFlag:q}=w;let P=A.nodeType;w.el=A,q===-2&&(C=!1,w.dynamicChildren=null);let O=null;switch(E){case xd:P!==3?w.children===""?(a(w.el=o(""),r(A),A),O=A):O=S():(A.data!==w.children&&(xp(),A.data=w.children),O=s(A));break;case as:b(A)?(O=s(A),y(w.el=A.content.firstChild,A,M)):P!==8||I?O=S():O=s(A);break;case b1:if(I&&(A=s(A),P=A.nodeType),P===1||P===3){O=A;const R=!w.children.length;for(let z=0;z{C=C||!!w.dynamicChildren;const{type:I,dynamicProps:S,props:E,patchFlag:_,shapeFlag:F,dirs:q,transition:P}=w,O=I==="input"||I==="option",R=!!S;if(O||R||_!==-1){q&&ku(w,null,M,"created");let z=!1;if(b(A)){z=l$(null,P)&&M&&M.vnode.props&&M.vnode.props.appear;const j=A.content.firstChild;if(z){const Q=j.getAttribute("class");Q&&(j.$cls=Q),P.beforeEnter(j)}y(j,A,M),w.el=A=j}if(F&16&&!(E&&(E.innerHTML||E.textContent))){let j=h(A.firstChild,w,A,M,N,T,C);for(j&&!Uy(A,1)&&xp();j;){const Q=j;j=j.nextSibling,l(Q)}}else if(F&8){let j=w.children;j[0]===` -`&&(A.tagName==="PRE"||A.tagName==="TEXTAREA")&&(j=j.slice(1));const{textContent:Q}=A;Q!==j&&Q!==j.replace(/\r\n|\r/g,` -`)&&(Uy(A,0)||xp(),A.textContent=w.children)}if(E){if(O||R||!C||_&48){const j=A.tagName.includes("-");for(const Q in E)(O&&(Q.endsWith("value")||Q==="indeterminate")||Ev(Q)&&!yh(Q)||Q[0]==="."||j&&!yh(Q)||S&&S.includes(Q))&&i(A,Q,null,E[Q],void 0,M)}else if(E.onClick)i(A,"onClick",null,E.onClick,void 0,M);else if(_&4&&Nu(E.style))for(const j in E.style)E.style[j]}let H;(H=E&&E.onVnodeBeforeMount)&&al(H,M,w),q&&ku(w,null,M,"beforeMount"),((H=E&&E.onVnodeMounted)||q||z)&&d$(()=>{H&&al(H,M,w),z&&P.enter(A),q&&ku(w,null,M,"mounted")},N)}return A.nextSibling},h=(A,w,M,N,T,C,I)=>{I=I||!!w.dynamicChildren;const S=w.children,E=S.length;let _=!1;for(let F=0;F{const{slotScopeIds:I}=w;I&&(T=T?T.concat(I):I);const S=r(A),E=h(s(A),w,S,M,N,T,C);return E&&Xp(E)&&E.data==="]"?s(w.anchor=E):(xp(),a(w.anchor=u("]"),S,E),E)},g=(A,w,M,N,T,C)=>{if(FY(A,w)||xp(),w.el=null,C){const E=v(A);for(;;){const _=s(A);if(_&&_!==E)l(_);else break}}const I=s(A),S=r(A);return l(A),n(null,w,S,I,M,N,R2(S),T),M&&(M.vnode.el=w.el,Ub(M,w.el)),I},v=(A,w="[",M="]")=>{let N=0;for(;A;)if(A=s(A),A&&Xp(A)&&(A.data===w&&N++,A.data===M)){if(N===0)return s(A);N--}return A},y=(A,w,M)=>{const N=w.parentNode;N&&N.replaceChild(A,w);let T=M;for(;T;)T.vnode.el===w&&(T.vnode.el=T.subTree.el=A),T=T.parent},b=A=>A.nodeType===1&&A.tagName==="TEMPLATE";return[c,d]}const P9="data-allow-mismatch",DY={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(P9);)e=e.parentElement;return E6(e&&e.getAttribute(P9),t)}function E6(e,t){if(e==null)return!1;if(e==="")return!0;{const n=e.split(",");return t===0&&n.includes("children")?!0:n.includes(DY[t])}}function FY(e,t){return Uy(e.parentElement,1)||BY(e)||RY(t)}function BY(e){return e.nodeType===1&&E6(e.getAttribute(P9),1)}function RY({props:e}){const t=e&&e[P9];return typeof t=="string"&&E6(t,1)}const OY=Fb().requestIdleCallback||(e=>setTimeout(e,1)),$Y=Fb().cancelIdleCallback||(e=>clearTimeout(e)),j9t=(e=1e4)=>t=>{const n=OY(t,{timeout:e});return()=>$Y(n)};function PY(e){const{top:t,left:n,bottom:i,right:o}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:r}=window;return(t>0&&t0&&i0&&n0&&o(t,n)=>{const i=new IntersectionObserver(o=>{for(const s of o)if(s.isIntersecting){i.disconnect(),t();break}},e);return n(o=>{if(o instanceof Element){if(PY(o))return t(),i.disconnect(),!1;i.observe(o)}}),()=>i.disconnect()},W9t=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},q9t=(e=[])=>(t,n)=>{Xi(e)&&(e=[e]);let i=!1;const o=r=>{i||(i=!0,s(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},s=()=>{n(r=>{for(const l of e)r.removeEventListener(l,o)})};return n(r=>{for(const l of e)r.addEventListener(l,o,{once:!0})}),s};function zY(e,t){if(Xp(e)&&e.data==="["){let n=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Xp(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else t(e)}const wc=e=>!!e.type.__asyncLoader;function _u(e){Hn(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:o=200,hydrate:s,timeout:r,suspensible:l=!0,onError:a}=e;let u=null,c,d=0;const f=()=>(d++,u=null,h()),h=()=>{let m;return u||(m=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((v,y)=>{a(g,()=>v(f()),()=>y(g),d+1)});throw g}).then(g=>m!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return ut({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,g,v){let y=!1;(g.bu||(g.bu=[])).push(()=>y=!0);const b=()=>{y||v()},A=s?()=>{const w=s(b,M=>zY(m,M));w&&(g.bum||(g.bum=[])).push(w)}:b;c?A():h().then(()=>!g.isUnmounted&&A())},get __asyncResolved(){return c},setup(){const m=ir;if(T6(m),c)return()=>O2(c,m);const g=M=>{u=null,cm(M,m,13,!i)};if(l&&m.suspense||Oh)return h().then(M=>()=>O2(M,m)).catch(M=>(g(M),()=>i?K(i,{error:M}):null));const v=U(!1),y=U(),b=U(!!o);let A,w;return Fn(()=>{A!=null&&clearTimeout(A),w!=null&&clearTimeout(w)}),o&&(w=setTimeout(()=>{m.isUnmounted||(b.value=!1)},o)),r!=null&&(A=setTimeout(()=>{if(!m.isUnmounted&&!v.value&&!y.value){const M=new Error(`Async component timed out after ${r}ms.`);g(M),y.value=M}},r)),h().then(()=>{m.isUnmounted||(v.value=!0,m.parent&&Fv(m.parent.vnode)&&m.parent.update())}).catch(M=>{if(m.isUnmounted){u=null;return}g(M),y.value=M}),()=>{if(v.value&&c)return O2(c,m);if(y.value&&i)return K(i,{error:y.value});if(n&&!b.value)return O2(n,m)}}})}function O2(e,t){const{ref:n,props:i,children:o,ce:s}=t.vnode,r=K(e,i,o);return r.ref=n,r.ce=s,delete t.vnode.ce,r}const Fv=e=>e.type.__isKeepAlive,jY={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=vs(),i=n.ctx;if(!i.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let r=null;const l=n.suspense,{renderer:{p:a,m:u,um:c,o:{createElement:d}}}=i,f=d("div");i.activate=(b,A,w,M,N)=>{const T=b.component;u(b,A,w,0,l),a(T.vnode,b,A,w,T,l,M,b.slotScopeIds,N),is(()=>{T.isDeactivated=!1,T.a&&m1(T.a);const C=b.props&&b.props.onVnodeMounted;C&&al(C,T.parent,b)},l)},i.deactivate=b=>{const A=b.component;j9(A.m),j9(A.a),u(b,f,null,1,l),is(()=>{A.da&&m1(A.da);const w=b.props&&b.props.onVnodeUnmounted;w&&al(w,A.parent,b),A.isDeactivated=!0},l)};function h(b){$3(b),c(b,n,l,!0)}function m(b){o.forEach((A,w)=>{const M=Mw(wc(A)?A.type.__asyncResolved||{}:A.type);M&&!b(M)&&g(w)})}function g(b){const A=o.get(b);A&&(!r||!Ba(A,r))?h(A):r&&$3(r),o.delete(b),s.delete(b)}Ue(()=>[e.include,e.exclude],([b,A])=>{b&&m(w=>Ag(b,w)),A&&m(w=>!Ag(A,w))},{flush:"post",deep:!0});let v=null;const y=()=>{v!=null&&(H9(n.subTree.type)?is(()=>{o.set(v,$2(n.subTree))},n.subTree.suspense):o.set(v,$2(n.subTree)))};return yn(y),dm(y),ii(()=>{o.forEach(b=>{const{subTree:A,suspense:w}=n,M=$2(A);if(b.type===M.type&&b.key===M.key){$3(M);const N=M.component.da;N&&is(N,w);return}h(b)})}),()=>{if(v=null,!t.default)return r=null;const b=t.default(),A=b[0];if(b.length>1)return r=null,b;if(!Rd(A)||!(A.shapeFlag&4)&&!(A.shapeFlag&128))return r=null,A;let w=$2(A);if(w.type===as)return r=null,w;const M=w.type,N=Mw(wc(w)?w.type.__asyncResolved||{}:M),{include:T,exclude:C,max:I}=e;if(T&&(!N||!Ag(T,N))||C&&N&&Ag(C,N))return w.shapeFlag&=-257,r=w,A;const S=w.key==null?M:w.key,E=o.get(S);return w.el&&(w=Tc(w),A.shapeFlag&128&&(A.ssContent=w)),v=S,E?(w.el=E.el,w.component=E.component,w.transition&&Bd(w,w.transition),w.shapeFlag|=512,s.delete(S),s.add(S)):(s.add(S),I&&s.size>parseInt(I,10)&&g(s.values().next().value)),w.shapeFlag|=256,r=w,H9(A.type)?A:w}}},U9t=jY;function Ag(e,t){return Cn(e)?e.some(n=>Ag(n,t)):Xi(e)?e.split(",").includes(t):AQ(e)?(e.lastIndex=0,e.test(t)):!1}function HY(e,t){jO(e,"a",t)}function WY(e,t){jO(e,"da",t)}function jO(e,t,n=ir){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Wb(t,i,n),n){let o=n.parent;for(;o&&o.parent;)Fv(o.parent.vnode)&&qY(i,t,n,o),o=o.parent}}function qY(e,t,n,i){const o=Wb(t,e,i,!0);Fn(()=>{C6(i[t],o)},n)}function $3(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $2(e){return e.shapeFlag&128?e.ssContent:e}function Wb(e,t,n=ir,i=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{Ru();const l=hm(n),a=ba(t,n,e,r);return l(),Ou(),a});return i?o.unshift(s):o.push(s),s}}const Dc=e=>(t,n=ir)=>{(!Oh||e==="sp")&&Wb(e,(...i)=>t(...i),n)},UY=Dc("bm"),yn=Dc("m"),HO=Dc("bu"),dm=Dc("u"),ii=Dc("bum"),Fn=Dc("um"),VY=Dc("sp"),KY=Dc("rtg"),ZY=Dc("rtc");function WO(e,t=ir){Wb("ec",e,t)}const L6="components",GY="directives";function QY(e,t){return N6(L6,e,!0,t)||e}const qO=Symbol.for("v-ndc");function Po(e){return Xi(e)?N6(L6,e,!1)||e:e||qO}function V9t(e){return N6(GY,e)}function N6(e,t,n=!0,i=!1){const o=sr||ir;if(o){const s=o.type;if(e===L6){const l=Mw(s,!1);if(l&&(l===t||l===Ts(t)||l===Nb(Ts(t))))return s}const r=kM(o[e]||s[e],t)||kM(o.appContext[e],t);return!r&&i?s:r}}function kM(e,t){return e&&(e[t]||e[Ts(t)]||e[Nb(Ts(t))])}function xt(e,t,n,i){let o;const s=n&&n[i],r=Cn(e);if(r||Xi(e)){const l=r&&Nu(e);let a=!1,u=!1;l&&(a=!Pl(e),u=Ic(e),e=$b(e)),o=new Array(e.length);for(let c=0,d=e.length;ct(l,a,void 0,s&&s[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,u=l.length;a{const s=i.fn(...o);return s&&(s.key=i.key),s}:i.fn)}return e}function Qn(e,t,n={},i,o){if(sr.ce||sr.parent&&wc(sr.parent)&&sr.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),k(),de(Re,null,[K("slot",n,i&&i())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),k();const r=s&&D6(s(n)),l=n.key||r&&r.key,a=de(Re,{key:(l&&!Vl(l)?l:`_${t}`)+(!r&&i?"_fb":"")},r||(i?i():[]),r&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function D6(e){return e.some(t=>Rd(t)?!(t.type===as||t.type===Re&&!D6(t.children)):!0)?e:null}function K9t(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:qy(i)]=e[i];return n}const kw=e=>e?v$(e)?Bv(e):kw(e.parent):null,Jg=Ki(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kw(e.parent),$root:e=>kw(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>F6(e),$forceUpdate:e=>e.f||(e.f=()=>{M6(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>AY.bind(e)}),P3=(e,t)=>e!==hi&&!e.__isScriptSetup&&Ti(e,t),bw={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:o,props:s,accessCache:r,type:l,appContext:a}=e;if(t[0]!=="$"){const f=r[t];if(f!==void 0)switch(f){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(P3(i,t))return r[t]=1,i[t];if(o!==hi&&Ti(o,t))return r[t]=2,o[t];if(Ti(s,t))return r[t]=3,s[t];if(n!==hi&&Ti(n,t))return r[t]=4,n[t];ww&&(r[t]=0)}}const u=Jg[t];let c,d;if(u)return t==="$attrs"&&yr(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==hi&&Ti(n,t))return r[t]=4,n[t];if(d=a.config.globalProperties,Ti(d,t))return d[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:s}=e;return P3(o,t)?(o[t]=n,!0):i!==hi&&Ti(i,t)?(i[t]=n,!0):Ti(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,props:s,type:r}},l){let a;return!!(n[l]||e!==hi&&l[0]!=="$"&&Ti(e,l)||P3(t,l)||Ti(s,l)||Ti(i,l)||Ti(Jg,l)||Ti(o.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ti(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},YY=Ki({},bw,{get(e,t){if(t!==Symbol.unscopables)return bw.get(e,t,e)},has(e,t){return t[0]!=="_"&&!IQ(t)}});function Z9t(){return null}function G9t(){return null}function Q9t(e){}function Y9t(e){}function J9t(){return null}function X9t(){}function ekt(e,t){return null}function tkt(){return VO().slots}function fm(){return VO().attrs}function VO(e){const t=vs();return t.setupContext||(t.setupContext=b$(t))}function z0(e){return Cn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function nkt(e,t){const n=z0(e);for(const i in t){if(i.startsWith("__skip"))continue;let o=n[i];o?Cn(o)||Hn(o)?o=n[i]={type:o,default:t[i]}:o.default=t[i]:o===null&&(o=n[i]={default:t[i]}),o&&t[`__skip_${i}`]&&(o.skipFactory=!0)}return n}function ikt(e,t){return!e||!t?e||t:Cn(e)&&Cn(t)?e.concat(t):Ki({},z0(e),z0(t))}function okt(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function skt(e){const t=vs(),n=Oh;let i=e();H0(),n&&w1(!1);const o=()=>{hm(t),n&&w1(!0)},s=()=>{vs()!==t&&t.scope.off(),H0(),n&&w1(!1)};return A6(i)&&(i=i.catch(r=>{throw o(),Promise.resolve().then(()=>Promise.resolve().then(s)),r})),[i,()=>{o(),Promise.resolve().then(s)}]}let ww=!0;function JY(e){const t=F6(e),n=e.proxy,i=e.ctx;ww=!1,t.beforeCreate&&bM(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:r,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:g,deactivated:v,beforeDestroy:y,beforeUnmount:b,destroyed:A,unmounted:w,render:M,renderTracked:N,renderTriggered:T,errorCaptured:C,serverPrefetch:I,expose:S,inheritAttrs:E,components:_,directives:F,filters:q}=t;if(u&&XY(u,i,null),r)for(const R in r){const z=r[R];Hn(z)&&(i[R]=z.bind(n))}if(o){const R=o.call(n,n);Li(R)&&(e.data=ho(R))}if(ww=!0,s)for(const R in s){const z=s[R],H=Hn(z)?z.bind(n,n):Hn(z.get)?z.get.bind(n,n):ga,j=!Hn(z)&&Hn(z.set)?z.set.bind(n):ga,Q=D({get:H,set:j});Object.defineProperty(i,R,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ae=>Q.value=ae})}if(l)for(const R in l)KO(l[R],i,n,R);if(a){const R=Hn(a)?a.call(n):a;Reflect.ownKeys(R).forEach(z=>{si(z,R[z])})}c&&bM(c,e,"c");function O(R,z){Cn(z)?z.forEach(H=>R(H.bind(n))):z&&R(z.bind(n))}if(O(UY,d),O(yn,f),O(HO,h),O(dm,m),O(HY,g),O(WY,v),O(WO,C),O(ZY,N),O(KY,T),O(ii,b),O(Fn,w),O(VY,I),Cn(S))if(S.length){const R=e.exposed||(e.exposed={});S.forEach(z=>{Object.defineProperty(R,z,{get:()=>n[z],set:H=>n[z]=H,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===ga&&(e.render=M),E!=null&&(e.inheritAttrs=E),_&&(e.components=_),F&&(e.directives=F),I&&T6(e)}function XY(e,t,n=ga){Cn(e)&&(e=Cw(e));for(const i in e){const o=e[i];let s;Li(o)?"default"in o?s=en(o.from||i,o.default,!0):s=en(o.from||i):s=en(o),xo(s)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):t[i]=s}}function bM(e,t,n){ba(Cn(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function KO(e,t,n,i){let o=i.includes(".")?DO(n,i):()=>n[i];if(Xi(e)){const s=t[e];Hn(s)&&Ue(o,s)}else if(Hn(e))Ue(o,e.bind(n));else if(Li(e))if(Cn(e))e.forEach(s=>KO(s,t,n,i));else{const s=Hn(e.handler)?e.handler.bind(n):t[e.handler];Hn(s)&&Ue(o,s,e)}}function F6(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,l=s.get(t);let a;return l?a=l:!o.length&&!n&&!i?a=t:(a={},o.length&&o.forEach(u=>z9(a,u,r,!0)),z9(a,t,r)),Li(t)&&s.set(t,a),a}function z9(e,t,n,i=!1){const{mixins:o,extends:s}=t;s&&z9(e,s,n,!0),o&&o.forEach(r=>z9(e,r,n,!0));for(const r in t)if(!(i&&r==="expose")){const l=eJ[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const eJ={data:wM,props:CM,emits:CM,methods:xg,computed:xg,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:xg,directives:xg,watch:nJ,provide:wM,inject:tJ};function wM(e,t){return t?e?function(){return Ki(Hn(e)?e.call(this,this):e,Hn(t)?t.call(this,this):t)}:t:e}function tJ(e,t){return xg(Cw(e),Cw(t))}function Cw(e){if(Cn(e)){const t={};for(let n=0;n{let c,d=hi,f;return CY(()=>{const h=e[o];Os(c,h)&&(c=h,u())}),{get(){return a(),n.get?n.get(c):c},set(h){const m=n.set?n.set(h):h;if(!Os(m,c)&&!(d!==hi&&Os(h,d)))return;const g=i.vnode.props,v=!!(g&&(t in g||o in g||s in g)&&(`onUpdate:${t}`in g||`onUpdate:${o}`in g||`onUpdate:${s}`in g));v||(c=h,u()),i.emit(`update:${t}`,m),Os(h,d)&&(Os(h,m)&&!Os(m,f)||v&&d!==hi&&!Os(m,c))&&u(),d=h,f=m}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?r||hi:l,done:!1}:{done:!0}}}},l}const GO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ts(t)}Modifiers`]||e[`${fl(t)}Modifiers`];function sJ(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||hi;let o=n;const s=t.startsWith("update:"),r=s&&GO(i,t.slice(7));r&&(r.trim&&(o=n.map(c=>Xi(c)?c.trim():c)),r.number&&(o=n.map(Db)));let l,a=i[l=qy(t)]||i[l=qy(Ts(t))];!a&&s&&(a=i[l=qy(fl(t))]),a&&ba(a,e,6,o);const u=i[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ba(u,e,6,o)}}const rJ=new WeakMap;function QO(e,t,n=!1){const i=n?rJ:t.emitsCache,o=i.get(e);if(o!==void 0)return o;const s=e.emits;let r={},l=!1;if(!Hn(e)){const a=u=>{const c=QO(u,t,!0);c&&(l=!0,Ki(r,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(Li(e)&&i.set(e,null),null):(Cn(s)?s.forEach(a=>r[a]=null):Ki(r,s),Li(e)&&i.set(e,r),r)}function qb(e,t){return!e||!Ev(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ti(e,t[0].toLowerCase()+t.slice(1))||Ti(e,fl(t))||Ti(e,t))}function Vy(e){const{type:t,vnode:n,proxy:i,withProxy:o,propsOptions:[s],slots:r,attrs:l,emit:a,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=$0(e);let y,b;try{if(n.shapeFlag&4){const w=o||i,M=w;y=dl(u.call(M,w,c,d,h,f,m)),b=l}else{const w=t;y=dl(w.length>1?w(d,{attrs:l,slots:r,emit:a}):w(d,null)),b=t.props?l:aJ(l)}}catch(w){Xg.length=0,cm(w,e,1),y=K(as)}let A=y;if(b&&g!==!1){const w=Object.keys(b),{shapeFlag:M}=A;w.length&&M&7&&(s&&w.some(Ib)&&(b=uJ(b,s)),A=Tc(A,b,!1,!0))}return n.dirs&&(A=Tc(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&Bd(A,n.transition),y=A,$0(v),y}function lJ(e,t=!0){let n;for(let i=0;i{let t;for(const n in e)(n==="class"||n==="style"||Ev(n))&&((t||(t={}))[n]=e[n]);return t},uJ=(e,t)=>{const n={};for(const i in e)(!Ib(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function cJ(e,t,n){const{props:i,children:o,component:s}=e,{props:r,children:l,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?AM(i,r,u):!!r;if(a&8){const c=t.dynamicProps;for(let d=0;dObject.create(JO),e$=e=>Object.getPrototypeOf(e)===JO;function dJ(e,t,n,i=!1){const o={},s=XO();e.propsDefaults=Object.create(null),t$(e,t,o,s);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=i?o:Bh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function fJ(e,t,n,i){const{props:o,attrs:s,vnode:{patchFlag:r}}=e,l=mi(o),[a]=e.propsOptions;let u=!1;if((i||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,h]=n$(d,t,!0);Ki(r,f),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!a)return Li(e)&&i.set(e,h1),h1;if(Cn(s))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",R6=e=>Cn(e)?e.map(dl):[dl(e)],pJ=(e,t,n)=>{if(t._n)return t;const i=ce((...o)=>R6(t(...o)),n);return i._c=!1,i},i$=(e,t,n)=>{const i=e._ctx;for(const o in e){if(B6(o))continue;const s=e[o];if(Hn(s))t[o]=pJ(o,s,i);else if(s!=null){const r=R6(s);t[o]=()=>r}}},o$=(e,t)=>{const n=R6(t);e.slots.default=()=>n},s$=(e,t,n)=>{for(const i in t)(n||!B6(i))&&(e[i]=t[i])},mJ=(e,t,n)=>{const i=e.slots=XO();if(e.vnode.shapeFlag&32){const o=t._;o?(s$(i,t,n),n&&sO(i,"_",o,!0)):i$(t,i)}else t&&o$(e,t)},gJ=(e,t,n)=>{const{vnode:i,slots:o}=e;let s=!0,r=hi;if(i.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:s$(o,t,n):(s=!t.$stable,i$(t,o)),r=t}else t&&(o$(e,t),r={default:1});if(s)for(const l in o)!B6(l)&&r[l]==null&&delete o[l]},is=d$;function vJ(e){return r$(e)}function yJ(e){return r$(e,NY)}function r$(e,t){const n=Fb();n.__VUE__=!0;const{insert:i,remove:o,patchProp:s,createElement:r,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=ga,insertStaticContent:m}=e,g=(V,le,Se,be=null,he=null,re=null,J=void 0,fe=null,ke=!!le.dynamicChildren)=>{if(V===le)return;V&&!Ba(V,le)&&(be=ve(V),ae(V,he,re,!0),V=null),le.patchFlag===-2&&(ke=!1,le.dynamicChildren=null);const{type:Ce,ref:De,shapeFlag:ie}=le;switch(Ce){case xd:v(V,le,Se,be);break;case as:y(V,le,Se,be);break;case b1:V==null&&b(le,Se,be,J);break;case Re:_(V,le,Se,be,he,re,J,fe,ke);break;default:ie&1?M(V,le,Se,be,he,re,J,fe,ke):ie&6?F(V,le,Se,be,he,re,J,fe,ke):(ie&64||ie&128)&&Ce.process(V,le,Se,be,he,re,J,fe,ke,ye)}De!=null&&he?y1(De,V&&V.ref,re,le||V,!le):De==null&&V&&V.ref!=null&&y1(V.ref,null,re,V,!0)},v=(V,le,Se,be)=>{if(V==null)i(le.el=l(le.children),Se,be);else{const he=le.el=V.el;le.children!==V.children&&u(he,le.children)}},y=(V,le,Se,be)=>{V==null?i(le.el=a(le.children||""),Se,be):le.el=V.el},b=(V,le,Se,be)=>{[V.el,V.anchor]=m(V.children,le,Se,be,V.el,V.anchor)},A=({el:V,anchor:le},Se,be)=>{let he;for(;V&&V!==le;)he=f(V),i(V,Se,be),V=he;i(le,Se,be)},w=({el:V,anchor:le})=>{let Se;for(;V&&V!==le;)Se=f(V),o(V),V=Se;o(le)},M=(V,le,Se,be,he,re,J,fe,ke)=>{if(le.type==="svg"?J="svg":le.type==="math"&&(J="mathml"),V==null)N(le,Se,be,he,re,J,fe,ke);else{const Ce=V.el&&V.el._isVueCE?V.el:null;try{Ce&&Ce._beginPatch(),I(V,le,he,re,J,fe,ke)}finally{Ce&&Ce._endPatch()}}},N=(V,le,Se,be,he,re,J,fe)=>{let ke,Ce;const{props:De,shapeFlag:ie,transition:me,dirs:je}=V;if(ke=V.el=r(V.type,re,De&&De.is,De),ie&8?c(ke,V.children):ie&16&&C(V.children,ke,null,be,he,z3(V,re),J,fe),je&&ku(V,null,be,"created"),T(ke,V,V.scopeId,J,be),De){for(const lt in De)lt!=="value"&&!yh(lt)&&s(ke,lt,null,De[lt],re,be);"value"in De&&s(ke,"value",null,De.value,re),(Ce=De.onVnodeBeforeMount)&&al(Ce,be,V)}je&&ku(V,null,be,"beforeMount");const Ze=l$(he,me);Ze&&me.beforeEnter(ke),i(ke,le,Se),((Ce=De&&De.onVnodeMounted)||Ze||je)&&is(()=>{try{Ce&&al(Ce,be,V),Ze&&me.enter(ke),je&&ku(V,null,be,"mounted")}finally{}},he)},T=(V,le,Se,be,he)=>{if(Se&&h(V,Se),be)for(let re=0;re{for(let Ce=ke;Ce{const fe=le.el=V.el;let{patchFlag:ke,dynamicChildren:Ce,dirs:De}=le;ke|=V.patchFlag&16;const ie=V.props||hi,me=le.props||hi;let je;if(Se&&Nf(Se,!1),(je=me.onVnodeBeforeUpdate)&&al(je,Se,le,V),De&&ku(le,V,Se,"beforeUpdate"),Se&&Nf(Se,!0),Ce&&(!V.dynamicChildren||V.dynamicChildren.length!==Ce.length)&&(ke=0,J=!1,Ce=null),(ie.innerHTML&&me.innerHTML==null||ie.textContent&&me.textContent==null)&&c(fe,""),Ce?S(V.dynamicChildren,Ce,fe,Se,be,z3(le,he),re):J||z(V,le,fe,null,Se,be,z3(le,he),re,!1),ke>0){if(ke&16)E(fe,ie,me,Se,he);else if(ke&2&&ie.class!==me.class&&s(fe,"class",null,me.class,he),ke&4&&s(fe,"style",ie.style,me.style,he),ke&8){const Ze=le.dynamicProps;for(let lt=0;lt{je&&al(je,Se,le,V),De&&ku(le,V,Se,"updated")},be)},S=(V,le,Se,be,he,re,J)=>{for(let fe=0;fe{if(le!==Se){if(le!==hi)for(const re in le)!yh(re)&&!(re in Se)&&s(V,re,le[re],null,he,be);for(const re in Se){if(yh(re))continue;const J=Se[re],fe=le[re];J!==fe&&re!=="value"&&s(V,re,fe,J,he,be)}"value"in Se&&s(V,"value",le.value,Se.value,he)}},_=(V,le,Se,be,he,re,J,fe,ke)=>{const Ce=le.el=V?V.el:l(""),De=le.anchor=V?V.anchor:l("");let{patchFlag:ie,dynamicChildren:me,slotScopeIds:je}=le;je&&(fe=fe?fe.concat(je):je),V==null?(i(Ce,Se,be),i(De,Se,be),C(le.children||[],Se,De,he,re,J,fe,ke)):ie>0&&ie&64&&me&&V.dynamicChildren&&V.dynamicChildren.length===me.length?(S(V.dynamicChildren,me,Se,he,re,J,fe),(le.key!=null||he&&le===he.subTree)&&O6(V,le,!0)):z(V,le,Se,De,he,re,J,fe,ke)},F=(V,le,Se,be,he,re,J,fe,ke)=>{le.slotScopeIds=fe,V==null?le.shapeFlag&512?he.ctx.activate(le,Se,be,J,ke):q(le,Se,be,he,re,J,ke):P(V,le,ke)},q=(V,le,Se,be,he,re,J)=>{const fe=V.component=g$(V,be,he);if(Fv(V)&&(fe.ctx.renderer=ye),y$(fe,!1,J),fe.asyncDep){if(he&&he.registerDep(fe,O,J),!V.el){const ke=fe.subTree=K(as);y(null,ke,le,Se),V.placeholder=ke.el}}else O(fe,V,le,Se,he,re,J)},P=(V,le,Se)=>{const be=le.component=V.component;if(cJ(V,le,Se))if(be.asyncDep&&!be.asyncResolved){R(be,le,Se);return}else be.next=le,be.update();else le.el=V.el,be.vnode=le},O=(V,le,Se,be,he,re,J)=>{const fe=()=>{if(V.isMounted){let{next:ie,bu:me,u:je,parent:Ze,vnode:lt}=V;{const Ut=a$(V);if(Ut){ie&&(ie.el=lt.el,R(V,ie,J)),Ut.asyncDep.then(()=>{is(()=>{V.isUnmounted||Ce()},he)});return}}let ft=ie,Mt;Nf(V,!1),ie?(ie.el=lt.el,R(V,ie,J)):ie=lt,me&&m1(me),(Mt=ie.props&&ie.props.onVnodeBeforeUpdate)&&al(Mt,Ze,ie,lt),Nf(V,!0);const Rt=Vy(V),qt=V.subTree;V.subTree=Rt,g(qt,Rt,d(qt.el),ve(qt),V,he,re),ie.el=Rt.el,ft===null&&Ub(V,Rt.el),je&&is(je,he),(Mt=ie.props&&ie.props.onVnodeUpdated)&&is(()=>al(Mt,Ze,ie,lt),he)}else{let ie;const{el:me,props:je}=le,{bm:Ze,m:lt,parent:ft,root:Mt,type:Rt}=V,qt=wc(le);if(Nf(V,!1),Ze&&m1(Ze),!qt&&(ie=je&&je.onVnodeBeforeMount)&&al(ie,ft,le),Nf(V,!0),me&&se){const Ut=()=>{V.subTree=Vy(V),se(me,V.subTree,V,he,null)};qt&&Rt.__asyncHydrate?Rt.__asyncHydrate(me,V,Ut):Ut()}else{Mt.ce&&Mt.ce._hasShadowRoot()&&Mt.ce._injectChildStyle(Rt,V.parent?V.parent.type:void 0);const Ut=V.subTree=Vy(V);g(null,Ut,Se,be,V,he,re),le.el=Ut.el}if(lt&&is(lt,he),!qt&&(ie=je&&je.onVnodeMounted)){const Ut=le;is(()=>al(ie,ft,Ut),he)}(le.shapeFlag&256||ft&&wc(ft.vnode)&&ft.vnode.shapeFlag&256)&&V.a&&is(V.a,he),V.isMounted=!0,le=Se=be=null}};V.scope.on();const ke=V.effect=new L9(fe);V.scope.off();const Ce=V.update=ke.run.bind(ke),De=V.job=ke.runIfDirty.bind(ke);De.i=V,De.id=V.uid,ke.scheduler=()=>M6(De),Nf(V,!0),Ce()},R=(V,le,Se)=>{le.component=V;const be=V.vnode.props;V.vnode=le,V.next=null,fJ(V,le.props,be,Se),gJ(V,le.children,Se),Ru(),fM(V),Ou()},z=(V,le,Se,be,he,re,J,fe,ke=!1)=>{const Ce=V&&V.children,De=V?V.shapeFlag:0,ie=le.children,{patchFlag:me,shapeFlag:je}=le;if(me>0){if(me&128){j(Ce,ie,Se,be,he,re,J,fe,ke);return}else if(me&256){H(Ce,ie,Se,be,he,re,J,fe,ke);return}}je&8?(De&16&&te(Ce,he,re),ie!==Ce&&c(Se,ie)):De&16?je&16?j(Ce,ie,Se,be,he,re,J,fe,ke):te(Ce,he,re,!0):(De&8&&c(Se,""),je&16&&C(ie,Se,be,he,re,J,fe,ke))},H=(V,le,Se,be,he,re,J,fe,ke)=>{V=V||h1,le=le||h1;const Ce=V.length,De=le.length,ie=Math.min(Ce,De);let me;for(me=0;meDe?te(V,he,re,!0,!1,ie):C(le,Se,be,he,re,J,fe,ke,ie)},j=(V,le,Se,be,he,re,J,fe,ke)=>{let Ce=0;const De=le.length;let ie=V.length-1,me=De-1;for(;Ce<=ie&&Ce<=me;){const je=V[Ce],Ze=le[Ce]=ke?uc(le[Ce]):dl(le[Ce]);if(Ba(je,Ze))g(je,Ze,Se,null,he,re,J,fe,ke);else break;Ce++}for(;Ce<=ie&&Ce<=me;){const je=V[ie],Ze=le[me]=ke?uc(le[me]):dl(le[me]);if(Ba(je,Ze))g(je,Ze,Se,null,he,re,J,fe,ke);else break;ie--,me--}if(Ce>ie){if(Ce<=me){const je=me+1,Ze=jeme)for(;Ce<=ie;)ae(V[Ce],he,re,!0),Ce++;else{const je=Ce,Ze=Ce,lt=new Map;for(Ce=Ze;Ce<=me;Ce++){const qe=le[Ce]=ke?uc(le[Ce]):dl(le[Ce]);qe.key!=null&<.set(qe.key,Ce)}let ft,Mt=0;const Rt=me-Ze+1;let qt=!1,Ut=0;const Ie=new Array(Rt);for(Ce=0;Ce=Rt){ae(qe,he,re,!0);continue}let vt;if(qe.key!=null)vt=lt.get(qe.key);else for(ft=Ze;ft<=me;ft++)if(Ie[ft-Ze]===0&&Ba(qe,le[ft])){vt=ft;break}vt===void 0?ae(qe,he,re,!0):(Ie[vt-Ze]=Ce+1,vt>=Ut?Ut=vt:qt=!0,g(qe,le[vt],Se,null,he,re,J,fe,ke),Mt++)}const Pe=qt?kJ(Ie):h1;for(ft=Pe.length-1,Ce=Rt-1;Ce>=0;Ce--){const qe=Ze+Ce,vt=le[qe],It=le[qe+1],Et=qe+1{const{el:re,type:J,transition:fe,children:ke,shapeFlag:Ce}=V;if(Ce&6){Q(V.component.subTree,le,Se,be);return}if(Ce&128){V.suspense.move(le,Se,be);return}if(Ce&64){J.move(V,le,Se,ye);return}if(J===Re){i(re,le,Se);for(let ie=0;iefe.enter(re),he));else{const{leave:ie,delayLeave:me,afterLeave:je}=fe,Ze=()=>{V.ctx.isUnmounted?o(re):i(re,le,Se)},lt=()=>{const ft=re._isLeaving||!!re[la];re._isLeaving&&re[la](!0),fe.persisted&&!ft?Ze():ie(re,()=>{Ze(),je&&je()})};me?me(re,Ze,lt):lt()}else i(re,le,Se)},ae=(V,le,Se,be=!1,he=!1)=>{const{type:re,props:J,ref:fe,children:ke,dynamicChildren:Ce,shapeFlag:De,patchFlag:ie,dirs:me,cacheIndex:je,memo:Ze}=V;if(ie===-2&&(he=!1),fe!=null&&(Ru(),y1(fe,null,Se,V,!0),Ou()),je!=null&&(le.renderCache[je]=void 0),De&256){le.ctx.deactivate(V);return}const lt=De&1&&me,ft=!wc(V);let Mt;if(ft&&(Mt=J&&J.onVnodeBeforeUnmount)&&al(Mt,le,V),De&6)oe(V.component,Se,be);else{if(De&128){V.suspense.unmount(Se,be);return}lt&&ku(V,null,le,"beforeUnmount"),De&64?V.type.remove(V,le,Se,ye,be):Ce&&!Ce.hasOnce&&(re!==Re||ie>0&&ie&64)?te(Ce,le,Se,!1,!0):(re===Re&&ie&384||!he&&De&16)&&te(ke,le,Se),be&&W(V)}const Rt=Ze!=null&&je==null;(ft&&(Mt=J&&J.onVnodeUnmounted)||lt||Rt)&&is(()=>{Mt&&al(Mt,le,V),lt&&ku(V,null,le,"unmounted"),Rt&&(V.el=null)},Se)},W=V=>{const{type:le,el:Se,anchor:be,transition:he}=V;if(le===Re){G(Se,be);return}if(le===b1){w(V);return}const re=()=>{o(Se),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(V.shapeFlag&1&&he&&!he.persisted){const{leave:J,delayLeave:fe}=he,ke=()=>J(Se,re);fe?fe(V.el,re,ke):ke()}else re()},G=(V,le)=>{let Se;for(;V!==le;)Se=f(V),o(V),V=Se;o(le)},oe=(V,le,Se)=>{const{bum:be,scope:he,job:re,subTree:J,um:fe,m:ke,a:Ce}=V;j9(ke),j9(Ce),be&&m1(be),he.stop(),re&&(re.flags|=8,ae(J,V,le,Se)),fe&&is(fe,le),is(()=>{V.isUnmounted=!0},le)},te=(V,le,Se,be=!1,he=!1,re=0)=>{for(let J=re;J{if(V.shapeFlag&6)return ve(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const le=f(V.anchor||V.el),Se=le&&le[FO];return Se?f(Se):le};let Te=!1;const Fe=(V,le,Se)=>{let be;V==null?le._vnode&&(ae(le._vnode,null,null,!0),be=le._vnode.component):g(le._vnode||null,V,le,null,null,null,Se),le._vnode=V,Te||(Te=!0,fM(be),O9(),Te=!1)},ye={p:g,um:ae,m:Q,r:W,mt:q,mc:C,pc:z,pbc:S,n:ve,o:e};let Y,se;return t&&([Y,se]=t(ye)),{render:Fe,hydrate:Y,createApp:oJ(Fe,Y)}}function z3({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Nf({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function l$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function O6(e,t,n=!1){const i=e.children,o=t.children;if(Cn(i)&&Cn(o))for(let s=0;s>1,e[n[l]]0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}function a$(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:a$(t)}function j9(e){if(e)for(let t=0;te.__isSuspense;let xw=0;const bJ={name:"Suspense",__isSuspense:!0,process(e,t,n,i,o,s,r,l,a,u){if(e==null)wJ(t,n,i,o,s,r,l,a,u);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}CJ(e,t,n,i,o,r,l,a,u)}},hydrate:AJ,normalize:xJ},lkt=bJ;function j0(e,t){const n=e.props&&e.props[t];Hn(n)&&n()}function wJ(e,t,n,i,o,s,r,l,a){const{p:u,o:{createElement:c}}=a,d=c("div"),f=e.suspense=c$(e,o,i,t,d,n,s,r,l,a);u(null,f.pendingBranch=e.ssContent,d,null,i,f,s,r),f.deps>0?(j0(e,"onPending"),j0(e,"onFallback"),u(null,e.ssFallback,t,n,i,null,s,r),k1(f,e.ssFallback)):f.resolve(!1,!0)}function CJ(e,t,n,i,o,s,r,l,{p:a,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:v,isHydrating:y}=d;if(g)d.pendingBranch=f,Ba(g,f)?(a(g,f,d.hiddenContainer,null,o,d,s,r,l),d.deps<=0?d.resolve():v&&(y||(a(m,h,n,i,o,null,s,r,l),k1(d,h)))):(d.pendingId=xw++,y?(d.isHydrating=!1,d.activeBranch=g):u(g,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(a(null,f,d.hiddenContainer,null,o,d,s,r,l),d.deps<=0?d.resolve():(a(m,h,n,i,o,null,s,r,l),k1(d,h))):m&&Ba(m,f)?(a(m,f,n,i,o,d,s,r,l),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,o,d,s,r,l),d.deps<=0&&d.resolve()));else if(m&&Ba(m,f))a(m,f,n,i,o,d,s,r,l),k1(d,f);else if(j0(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=xw++,a(null,f,d.hiddenContainer,null,o,d,s,r,l),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:A}=d;b>0?setTimeout(()=>{d.pendingId===A&&d.fallback(h)},b):b===0&&d.fallback(h)}}function c$(e,t,n,i,o,s,r,l,a,u,c=!1){const{p:d,m:f,um:h,n:m,o:{parentNode:g,remove:v}}=u;let y;const b=SJ(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const A=e.props?E9(e.props.timeout):void 0,w=s,M={vnode:e,parent:t,parentComponent:n,namespace:r,container:i,hiddenContainer:o,deps:0,pendingId:xw++,timeout:typeof A=="number"?A:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(N=!1,T=!1){const{vnode:C,activeBranch:I,pendingBranch:S,pendingId:E,effects:_,parentComponent:F,container:q,isInFallback:P}=M;let O=!1;if(M.isHydrating)M.isHydrating=!1;else if(!N){O=I&&S.transition&&S.transition.mode==="out-in";let H=!1;O&&(I.transition.afterLeave=()=>{E===M.pendingId&&(f(S,q,s===w&&!H?m(I):s,0),R9(_),P&&C.ssFallback&&(C.ssFallback.el=null))}),I&&!M.isFallbackMountPending&&(g(I.el)===q&&(s=m(I),H=!0),h(I,F,M,!0),!O&&P&&C.ssFallback&&is(()=>C.ssFallback.el=null,M)),O||f(S,q,s,0)}M.isFallbackMountPending=!1,k1(M,S),M.pendingBranch=null,M.isInFallback=!1;let R=M.parent,z=!1;for(;R;){if(R.pendingBranch){R.effects.push(..._),z=!0;break}R=R.parent}!z&&!O&&R9(_),M.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),j0(C,"onResolve")},fallback(N){if(!M.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:I,container:S,namespace:E}=M;j0(T,"onFallback");const _=m(C),F=()=>{M.isFallbackMountPending=!1,M.isInFallback&&(d(null,N,S,_,I,null,E,l,a),k1(M,N))},q=N.transition&&N.transition.mode==="out-in";q&&(M.isFallbackMountPending=!0,C.transition.afterLeave=F),M.isInFallback=!0,h(C,I,null,!0),q||F()},move(N,T,C){M.activeBranch&&f(M.activeBranch,N,T,C),M.container=N},next(){return M.activeBranch&&m(M.activeBranch)},registerDep(N,T,C){const I=!!M.pendingBranch;I&&M.deps++;const S=N.vnode.el;N.asyncDep.catch(E=>{cm(E,N,0)}).then(E=>{if(N.isUnmounted||M.isUnmounted||M.pendingId!==N.suspenseId)return;H0(),N.asyncResolved=!0;const{vnode:_}=N;Sw(N,E,!1),S&&(_.el=S);const F=!S&&N.subTree.el;T(N,_,g(S||N.subTree.el),S?null:m(N.subTree),M,r,C),F&&(_.placeholder=null,v(F)),Ub(N,_.el),I&&--M.deps===0&&M.resolve()})},unmount(N,T){M.isUnmounted=!0,M.activeBranch&&h(M.activeBranch,n,N,T),M.pendingBranch&&h(M.pendingBranch,n,N,T)}};return M}function AJ(e,t,n,i,o,s,r,l,a){const u=t.suspense=c$(t,i,n,e.parentNode,document.createElement("div"),null,o,s,r,l,!0),c=a(e,u.pendingBranch=t.ssContent,n,u,s,r);return u.deps===0&&u.resolve(!1,!0),c}function xJ(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=SM(i?n.default:n),e.ssFallback=i?SM(n.fallback):K(as)}function SM(e){let t;if(Hn(e)){const n=Rh&&e._c;n&&(e._d=!1,k()),e=e(),n&&(e._d=!0,t=br,f$())}return Cn(e)&&(e=lJ(e)),e=dl(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function d$(e,t){t&&t.pendingBranch?Cn(e)?t.effects.push(...e):t.effects.push(e):R9(e)}function k1(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,i&&i.subTree===n&&(i.vnode.el=o,Ub(i,o))}function SJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Re=Symbol.for("v-fgt"),xd=Symbol.for("v-txt"),as=Symbol.for("v-cmt"),b1=Symbol.for("v-stc"),Xg=[];let br=null;function k(e=!1){Xg.push(br=e?null:[])}function f$(){Xg.pop(),br=Xg[Xg.length-1]||null}let Rh=1;function W9(e,t=!1){Rh+=e,e<0&&br&&t&&(br.hasOnce=!0)}function h$(e){return e.dynamicChildren=Rh>0?br||h1:null,f$(),Rh>0&&br&&br.push(e),e}function L(e,t,n,i,o,s){return h$(x(e,t,n,i,o,s,!0))}function de(e,t,n,i,o){return h$(K(e,t,n,i,o,!0))}function Rd(e){return e?e.__v_isVNode===!0:!1}function Ba(e,t){return e.type===t.type&&e.key===t.key}function akt(e){}const p$=({key:e})=>e??null,Ky=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xi(e)||xo(e)||Hn(e)?{i:sr,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,i=0,o=null,s=e===Re?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&p$(t),ref:t&&Ky(t),scopeId:Hb,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:sr};return l?(q9(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=Xi(n)?8:16),Rh>0&&!r&&br&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&br.push(a),a}const K=_J;function _J(e,t=null,n=null,i=0,o=null,s=!1){if((!e||e===qO)&&(e=as),Rd(e)){const l=Tc(e,t,!0);return n&&q9(l,n),Rh>0&&!s&&br&&(l.shapeFlag&6?br[br.indexOf(e)]=l:br.push(l)),l.patchFlag=-2,l}if(LJ(e)&&(e=e.__vccOpts),t){t=m$(t);let{class:l,style:a}=t;l&&!Xi(l)&&(t.class=ze(l)),Li(a)&&(jb(a)&&!Cn(a)&&(a=Ki({},a)),t.style=on(a))}const r=Xi(e)?1:H9(e)?128:BO(e)?64:Li(e)?4:Hn(e)?2:0;return x(e,t,n,i,o,r,s,!0)}function m$(e){return e?jb(e)||e$(e)?Ki({},e):e:null}function Tc(e,t,n=!1,i=!1){const{props:o,ref:s,patchFlag:r,children:l,transition:a}=e,u=t?ci(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&p$(u),ref:t&&t.ref?n&&s?Cn(s)?s.concat(Ky(t)):[s,Ky(t)]:Ky(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tc(e.ssContent),ssFallback:e.ssFallback&&Tc(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&Bd(c,a.clone(c)),c}function He(e=" ",t=0){return K(xd,null,e,t)}function ef(e,t){const n=K(b1,null,e);return n.staticCount=t,n}function ne(e="",t=!1){return t?(k(),de(as,null,e)):K(as,null,e)}function dl(e){return e==null||typeof e=="boolean"?K(as):Cn(e)?K(Re,null,e.slice()):Rd(e)?uc(e):K(xd,null,String(e))}function uc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tc(e)}function q9(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Cn(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),q9(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!e$(t)?t._ctx=sr:o===3&&sr&&(sr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Hn(t)){if(i&65){q9(e,{default:t});return}t={default:t,_ctx:sr},n=32}else t=String(t),i&64?(n=16,t=[He(t)]):n=8;e.children=t,e.shapeFlag|=n}function ci(...e){const t={};for(let n=0;nir||sr;let U9,w1;{const e=Fb(),t=(n,i)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(i),s=>{o.length>1?o.forEach(r=>r(s)):o[0](s)}};U9=t("__VUE_INSTANCE_SETTERS__",n=>ir=n),w1=t("__VUE_SSR_SETTERS__",n=>Oh=n)}const hm=e=>{const t=ir;return U9(e),e.scope.on(),()=>{e.scope.off(),U9(t)}},H0=()=>{ir&&ir.scope.off(),U9(null)};function v$(e){return e.vnode.shapeFlag&4}let Oh=!1;function y$(e,t=!1,n=!1){t&&w1(t);const{props:i,children:o}=e.vnode,s=v$(e);dJ(e,i,s,t),mJ(e,o,n||t);const r=s?TJ(e,t):void 0;return t&&w1(!1),r}function TJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bw);const{setup:i}=n;if(i){Ru();const o=e.setupContext=i.length>1?b$(e):null,s=hm(e),r=Nv(i,e,0,[e.props,o]),l=A6(r);if(Ou(),s(),(l||e.sp)&&!wc(e)&&T6(e),l){if(r.then(H0,H0),t)return r.then(a=>{Sw(e,a,t)}).catch(a=>{cm(a,e,0)});e.asyncDep=r}else Sw(e,r,t)}else k$(e,t)}function Sw(e,t,n){Hn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Li(t)&&(e.setupState=_O(t)),k$(e,n)}let V9,_w;function ukt(e){V9=e,_w=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,YY))}}const ckt=()=>!V9;function k$(e,t,n){const i=e.type;if(!e.render){if(!t&&V9&&!i.render){const o=i.template||F6(e).template;if(o){const{isCustomElement:s,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,u=Ki(Ki({isCustomElement:s,delimiters:l},r),a);i.render=V9(o,u)}}e.render=i.render||ga,_w&&_w(e)}{const o=hm(e);Ru();try{JY(e)}finally{Ou(),o()}}}const EJ={get(e,t){return yr(e,"get",""),e[t]}};function b$(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,EJ),slots:e.slots,emit:e.emit,expose:t}}function Bv(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_O(Bt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jg)return Jg[n](e)},has(t,n){return n in t||n in Jg}})):e.proxy}function Mw(e,t=!0){return Hn(e)?e.displayName||e.name:e.name||t&&e.__name}function LJ(e){return Hn(e)&&"__vccOpts"in e}const D=(e,t)=>dY(e,t,Oh);function Rn(e,t,n){try{W9(-1);const i=arguments.length;return i===2?Li(t)&&!Cn(t)?Rd(t)?K(e,null,[t]):K(e,t):K(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Rd(n)&&(n=[n]),K(e,t,n))}finally{W9(1)}}function dkt(){}function fkt(e,t,n,i){const o=n[i];if(o&&NJ(o,e))return o;const s=t();return s.memo=e.slice(),s.cacheIndex=i,n[i]=s}function NJ(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&&br&&br.push(e),!0}const DJ="3.5.39",hkt=ga,pkt=gY,mkt=jp,gkt=NO,FJ={createComponentInstance:g$,setupComponent:y$,renderComponentRoot:Vy,setCurrentRenderingInstance:$0,isVNode:Rd,normalizeVNode:dl,getComponentPublicInstance:Bv,ensureValidVNode:D6,pushWarningContext:pY,popWarningContext:mY},vkt=FJ,ykt=null,kkt=null,bkt=null;/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Iw;const _M=typeof window<"u"&&window.trustedTypes;if(_M)try{Iw=_M.createPolicy("vue",{createHTML:e=>e})}catch{}const w$=Iw?e=>Iw.createHTML(e):e=>e,BJ="http://www.w3.org/2000/svg",RJ="http://www.w3.org/1998/Math/MathML",rc=typeof document<"u"?document:null,MM=rc&&rc.createElement("template"),OJ={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t==="svg"?rc.createElementNS(BJ,e):t==="mathml"?rc.createElementNS(RJ,e):n?rc.createElement(e,{is:n}):rc.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>rc.createTextNode(e),createComment:e=>rc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,s){const r=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{MM.innerHTML=w$(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);const l=MM.content;if(i==="svg"||i==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hc="transition",eg="animation",H1=Symbol("_vtc"),C$={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},A$=Ki({},OO,C$),$J=e=>(e.displayName="Transition",e.props=A$,e),mo=$J((e,{slots:t})=>Rn(IY,x$(e),t)),Df=(e,t=[])=>{Cn(e)?e.forEach(n=>n(...t)):e&&e(...t)},IM=e=>e?Cn(e)?e.some(t=>t.length>1):e.length>1:!1;function x$(e){const t={};for(const _ in e)_ in C$||(t[_]=e[_]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=r,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=PJ(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:A,onLeave:w,onLeaveCancelled:M,onBeforeAppear:N=y,onAppear:T=b,onAppearCancelled:C=A}=t,I=(_,F,q,P)=>{_._enterCancelled=P,Jc(_,F?c:l),Jc(_,F?u:r),q&&q()},S=(_,F)=>{_._isLeaving=!1,Jc(_,d),Jc(_,h),Jc(_,f),F&&F()},E=_=>(F,q)=>{const P=_?T:b,O=()=>I(F,_,q);Df(P,[F,O]),TM(()=>{Jc(F,_?a:s),hu(F,_?c:l),IM(P)||EM(F,i,g,O)})};return Ki(t,{onBeforeEnter(_){Df(y,[_]),hu(_,s),hu(_,r)},onBeforeAppear(_){Df(N,[_]),hu(_,a),hu(_,u)},onEnter:E(!1),onAppear:E(!0),onLeave(_,F){_._isLeaving=!0;const q=()=>S(_,F);hu(_,d),_._enterCancelled?(hu(_,f),Tw(_)):(Tw(_),hu(_,f)),TM(()=>{_._isLeaving&&(Jc(_,d),hu(_,h),IM(w)||EM(_,i,v,q))}),Df(w,[_,q])},onEnterCancelled(_){I(_,!1,void 0,!0),Df(A,[_])},onAppearCancelled(_){I(_,!0,void 0,!0),Df(C,[_])},onLeaveCancelled(_){S(_),Df(M,[_])}})}function PJ(e){if(e==null)return null;if(Li(e))return[j3(e.enter),j3(e.leave)];{const t=j3(e);return[t,t]}}function j3(e){return E9(e)}function hu(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[H1]||(e[H1]=new Set)).add(t)}function Jc(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[H1];n&&(n.delete(t),n.size||(e[H1]=void 0))}function TM(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zJ=0;function EM(e,t,n,i){const o=e._endId=++zJ,s=()=>{o===e._endId&&i()};if(n!=null)return setTimeout(s,n);const{type:r,timeout:l,propCount:a}=S$(e,t);if(!r)return i();const u=r+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=h=>{h.target===e&&++c>=a&&d()};setTimeout(()=>{c(n[m]||"").split(", "),o=i(`${Hc}Delay`),s=i(`${Hc}Duration`),r=LM(o,s),l=i(`${eg}Delay`),a=i(`${eg}Duration`),u=LM(l,a);let c=null,d=0,f=0;t===Hc?r>0&&(c=Hc,d=r,f=s.length):t===eg?u>0&&(c=eg,d=u,f=a.length):(d=Math.max(r,u),c=d>0?r>u?Hc:eg:null,f=c?c===Hc?s.length:a.length:0);const h=c===Hc&&/\b(?:transform|all)(?:,|$)/.test(i(`${Hc}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function LM(e,t){for(;e.lengthNM(n)+NM(e[i])))}function NM(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Tw(e){return(e?e.ownerDocument:document).body.offsetHeight}function jJ(e,t,n){const i=e[H1];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const K9=Symbol("_vod"),$6=Symbol("_vsh"),Zo={name:"show",beforeMount(e,{value:t},{transition:n}){e[K9]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tg(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),tg(e,!0),i.enter(e)):i.leave(e,()=>{tg(e,!1)}):tg(e,t))},beforeUnmount(e,{value:t}){tg(e,t)}};function tg(e,t){e.style.display=t?e[K9]:"none",e[$6]=!t}function HJ(){Zo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const _$=Symbol("");function wkt(e){const t=vs();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Z9(s,o))},i=()=>{const o=e(t.proxy);t.ce?Z9(t.ce,o):Ew(t.subTree,o),n(o)};HO(()=>{R9(i)}),yn(()=>{Ue(i,ga,{flush:"post"});const o=new MutationObserver(i);o.observe(t.subTree.el.parentNode,{childList:!0}),Fn(()=>o.disconnect())})}function Ew(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ew(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Z9(e.el,t);else if(e.type===Re)e.children.forEach(n=>Ew(n,t));else if(e.type===b1){let{el:n,anchor:i}=e;for(;n&&(Z9(n,t),n!==i);)n=n.nextSibling}}function Z9(e,t){if(e.nodeType===1){const n=e.style;let i="";for(const o in t){const s=OQ(t[o]);n.setProperty(`--${o}`,s),i+=`--${o}: ${s};`}n[_$]=i}}const WJ=/(?:^|;)\s*display\s*:/;function qJ(e,t,n){const i=e.style,o=Xi(n);let s=!1;if(n&&!o){if(t)if(Xi(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&Sg(i,l,"")}else for(const r in t)n[r]==null&&Sg(i,r,"");for(const r in n){r==="display"&&(s=!0);const l=n[r];l!=null?VJ(e,r,!Xi(t)&&t?t[r]:void 0,l)||Sg(i,r,l):Sg(i,r,"")}}else if(o){if(t!==n){const r=i[_$];r&&(n+=";"+r),i.cssText=n,s=WJ.test(n)}}else t&&e.removeAttribute("style");K9 in e&&(e[K9]=s?i.display:"",e[$6]&&(i.display="none"))}const DM=/\s*!important$/;function Sg(e,t,n){if(Cn(n))n.forEach(i=>Sg(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=UJ(e,t);DM.test(n)?e.setProperty(fl(i),n.replace(DM,""),"important"):e[i]=n}}const FM=["Webkit","Moz","ms"],H3={};function UJ(e,t){const n=H3[t];if(n)return n;let i=Ts(t);if(i!=="filter"&&i in e)return H3[t]=i;i=Nb(i);for(let o=0;oW3||(JJ.then(()=>W3=0),W3=Date.now());function eX(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;const o=n.value;if(Cn(o)){const s=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{s.call(i),i._stopped=!0};const r=o.slice(),l=[i];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tX=(e,t,n,i,o,s)=>{const r=o==="svg";t==="class"?jJ(e,i,r):t==="style"?qJ(e,n,i):Ev(t)?Ib(t)||ZJ(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nX(e,t,i,r))?(OM(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&RM(e,t,i,r,s,t!=="value")):e._isVueCE&&(iX(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Xi(i)))?OM(e,Ts(t),i,s,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),RM(e,t,i,r))};function nX(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&PM(t)&&Hn(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return PM(t)&&Xi(n)?!1:t in e}function iX(e,t){const n=e._def.props;if(!n)return!1;const i=Ts(t);return Array.isArray(n)?n.some(o=>Ts(o)===i):Object.keys(n).some(o=>Ts(o)===i)}const zM={};function oX(e,t,n){let i=ut(e,t);Tb(i)&&(i=Ki({},i,t));class o extends P6{constructor(r){super(i,r,n)}}return o.def=i,o}const Ckt=((e,t)=>oX(e,t,bX)),sX=typeof HTMLElement<"u"?HTMLElement:class{};class P6 extends sX{constructor(t,n={},i=Y9){super(),this._def=t,this._props=n,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&i!==Y9?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ki({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof P6){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,gt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i{this._resolved=!0,this._pendingResolve=void 0;const{props:s,styles:r}=i;let l;if(s&&!Cn(s))for(const a in s){const u=s[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=E9(this._props[a])),(l||(l=Object.create(null)))[Ts(a)]=!0)}this._numberProps=l,this._resolveProps(i),this.shadowRoot&&this._applyStyles(r),this._mount(i)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const i in n)Ti(this,i)||Object.defineProperty(this,i,{get:()=>p(n[i])})}_resolveProps(t){const{props:n}=t,i=Cn(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&i.includes(o)&&this._setProp(o,this[o]);for(const o of i.map(Ts))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let i=n?this.getAttribute(t):zM;const o=Ts(t);n&&this._numberProps&&this._numberProps[o]&&(i=E9(i)),this._setProp(o,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,o=!1){if(n!==this._props[t]&&(this._dirty=!0,n===zM?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),i)){const s=this._ob;s&&(this._processMutations(s.takeRecords()),s.disconnect()),n===!0?this.setAttribute(fl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fl(t),n+""):n||this.removeAttribute(fl(t)),s&&s.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),kX(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=K(this._def,Ki(t,this._props));return this._instance||(n.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const o=(s,r)=>{this.dispatchEvent(new CustomEvent(s,Tb(r[0])?Ki({detail:r},r[0]):{detail:r}))};i.emit=(s,...r)=>{o(s,r),fl(s)!==s&&o(fl(s),r)},this._setParent()}),n}_applyStyles(t,n,i){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const o=this._nonce,s=this.shadowRoot,r=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(s);let l=null;for(let a=t.length-1;a>=0;a--){const u=document.createElement("style");o&&u.setAttribute("nonce",o),u.textContent=t[a],s.insertBefore(u,l||r),l=u,a===0&&(i||this._styleAnchors.set(this._def,u),n&&this._styleAnchors.set(n,u))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n(delete e.props.mode,e),aX=lX({name:"TransitionGroup",props:Ki({},A$,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vs(),i=RO();let o,s;return dm(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!fX(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(uX),o.forEach(cX);const l=o.filter(dX);Tw(n.vnode.el),l.forEach(a=>{const u=a.el,c=u.style;hu(u,r),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[G9]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[G9]=null,Jc(u,r))};u.addEventListener("transitionend",d)}),o=[]}),()=>{const r=mi(e),l=x$(r);let a=r.tag||Re;if(o=[],s)for(let u=0;u{l.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&i.classList.add(l)),i.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(i);const{hasTransform:r}=S$(i);return s.removeChild(i),r}const Od=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Cn(t)?n=>m1(t,n):t};function hX(e){e.target.composing=!0}function HM(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const va=Symbol("_assign");function WM(e,t,n){return t&&(e=e.trim()),n&&(e=Db(e)),e}const Ar={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[va]=Od(o);const s=i||o.props&&o.props.type==="number";hc(e,t?"change":"input",r=>{r.target.composing||e[va](WM(e.value,n,s))}),(n||s)&&hc(e,"change",()=>{e.value=WM(e.value,n,s)}),t||(hc(e,"compositionstart",hX),hc(e,"compositionend",HM),hc(e,"change",HM))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:o,number:s}},r){if(e[va]=Od(r),e.composing)return;const l=(s||e.type==="number")&&!/^0\d/.test(e.value)?Db(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(i&&t===n||o&&e.value.trim()===a)||(e.value=a)}},Q9={deep:!0,created(e,t,n){e[va]=Od(n),hc(e,"change",()=>{const i=e._modelValue,o=W1(e),s=e.checked,r=e[va];if(Cn(i)){const l=Bb(i,o),a=l!==-1;if(s&&!a)r(i.concat(o));else if(!s&&a){const u=[...i];u.splice(l,1),r(u)}}else if(Xh(i)){const l=new Set(i);s?l.add(o):l.delete(o),r(l)}else r(N$(e,s))})},mounted:qM,beforeUpdate(e,t,n){e[va]=Od(n),qM(e,t,n)}};function qM(e,{value:t,oldValue:n},i){e._modelValue=t;let o;if(Cn(t))o=Bb(t,i.props.value)>-1;else if(Xh(t))o=t.has(i.props.value);else{if(t===n)return;o=Mc(t,N$(e,!0))}e.checked!==o&&(e.checked=o)}const L$={created(e,{value:t},n){e.checked=Mc(t,n.props.value),e[va]=Od(n),hc(e,"change",()=>{e[va](W1(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[va]=Od(i),t!==n&&(e.checked=Mc(t,i.props.value))}},Lw={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=Xh(t);hc(e,"change",()=>{const s=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?Db(W1(r)):W1(r));e[va](e.multiple?o?new Set(s):s:s[0]),e._assigning=!0,gt(()=>{e._assigning=!1})}),e[va]=Od(i)},mounted(e,{value:t}){UM(e,t)},beforeUpdate(e,t,n){e[va]=Od(n)},updated(e,{value:t}){e._assigning||UM(e,t)}};function UM(e,t){const n=e.multiple,i=Cn(t);if(!(n&&!i&&!Xh(t))){for(let o=0,s=e.options.length;oString(u)===String(l)):r.selected=Bb(t,l)>-1}else r.selected=t.has(l);else if(Mc(W1(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function W1(e){return"_value"in e?e._value:e.value}function N$(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pX={created(e,t,n){P2(e,t,n,null,"created")},mounted(e,t,n){P2(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){P2(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){P2(e,t,n,i,"updated")}};function D$(e,t){switch(e){case"SELECT":return Lw;case"TEXTAREA":return Ar;default:switch(t){case"checkbox":return Q9;case"radio":return L$;default:return Ar}}}function P2(e,t,n,i,o){const r=D$(e.tagName,n.props&&n.props.type)[o];r&&r(e,t,n,i)}function mX(){Ar.getSSRProps=({value:e})=>({value:e}),L$.getSSRProps=({value:e},t)=>{if(t.props&&Mc(t.props.value,e))return{checked:!0}},Q9.getSSRProps=({value:e},t)=>{if(Cn(e)){if(t.props&&Bb(e,t.props.value)>-1)return{checked:!0}}else if(Xh(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},pX.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=D$(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const gX=["ctrl","shift","alt","meta"],vX={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gX.some(n=>e[`${n}Key`]&&!t.includes(n))},Tt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((o,...s)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(o=>{if(!("key"in o))return;const s=fl(o.key);if(t.some(r=>r===s||yX[r]===s))return e(o)}))},F$=Ki({patchProp:tX},OJ);let e0,VM=!1;function B$(){return e0||(e0=vJ(F$))}function R$(){return e0=VM?e0:yJ(F$),VM=!0,e0}const kX=((...e)=>{B$().render(...e)}),Skt=((...e)=>{R$().hydrate(...e)}),Y9=((...e)=>{const t=B$().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=$$(i);if(!o)return;const s=t._component;!Hn(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,O$(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t}),bX=((...e)=>{const t=R$().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=$$(i);if(o)return n(o,!0,O$(o))},t});function O$(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $$(e){return Xi(e)?document.querySelector(e):e}let KM=!1;const _kt=()=>{KM||(KM=!0,mX(),HJ())},P$=Symbol("IconResolver"),wX={sm:14,md:16,lg:20},Ae=ut({__name:"Icon",props:{name:{},size:{default:"md"},label:{}},setup(e){const t=e,n=en(P$,()=>{}),i=D(()=>n(t.name)),o=D(()=>wX[t.size]);return(s,r)=>i.value?(k(),de(Po(i.value),{key:0,class:"kw-icon",width:o.value,height:o.value,"aria-label":e.label,"aria-hidden":e.label?void 0:!0},null,8,["width","height","aria-label","aria-hidden"])):ne("",!0)}}),CX=["disabled"],AX={key:0,class:"ui-action-card__leading"},xX={class:"ui-action-card__text"},SX={class:"ui-action-card__title"},_X={key:0,class:"ui-action-card__hint"},MX=ut({__name:"ActionCard",props:{disabled:{type:Boolean,default:!1}},emits:["select"],setup(e){return(t,n)=>(k(),L("button",{class:"ui-action-card",type:"button",disabled:e.disabled,onClick:n[0]||(n[0]=i=>t.$emit("select"))},[t.$slots.leading?(k(),L("span",AX,[Qn(t.$slots,"leading",{},void 0,!0)])):ne("",!0),x("span",xX,[x("span",SX,[Qn(t.$slots,"default",{},void 0,!0),Qn(t.$slots,"badge",{},void 0,!0)]),t.$slots.hint?(k(),L("span",_X,[Qn(t.$slots,"hint",{},void 0,!0)])):ne("",!0)]),K(Ae,{name:"chevron-right",size:"lg",class:"ui-action-card__chevron"})],8,CX))}}),_t=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Nw=_t(MX,[["__scopeId","data-v-aa7ca9d9"]]);/*! - * shared v11.4.6 - * (c) 2026 kazuya kawaguchi - * Released under the MIT License. - */function IX(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const J9=typeof window<"u",tf=(e,t=!1)=>t?Symbol.for(e):Symbol(e),TX=(e,t,n)=>EX({l:e,k:t,s:n}),EX=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),cs=e=>typeof e=="number"&&isFinite(e),z$=e=>j6(e)==="[object Date]",q1=e=>j6(e)==="[object RegExp]",Vb=e=>vi(e)&&Object.keys(e).length===0,hs=Object.assign,LX=Object.create,Ji=(e=null)=>LX(e);let ZM;const rh=()=>ZM||(ZM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ji());function GM(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function NX(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}const DX=/^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i,FX=/^(?:href|src|action|formaction)$/i;function z6(e){return DX.test(e)}function BX(e){const t=/url\s*\(/gi;let n="",i=0,o;for(;(o=t.exec(e))!==null;){const s=o.index,r=t.lastIndex-1;let l=r+1,a=1,u=null;for(;l`${i}="${QM(i,o)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(n,i,o)=>`${i}='${QM(i,o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(n,i,o)=>z6(o)?`${i}about:blank`:n),e}const OX=Object.prototype.hasOwnProperty;function ha(e,t){return OX.call(e,t)}const zo=Array.isArray,Ao=e=>typeof e=="function",pn=e=>typeof e=="string",Si=e=>typeof e=="boolean",_i=e=>e!==null&&typeof e=="object",$X=e=>_i(e)&&Ao(e.then)&&Ao(e.catch),j$=Object.prototype.toString,j6=e=>j$.call(e),vi=e=>j6(e)==="[object Object]",PX=e=>e==null?"":zo(e)||vi(e)&&e.toString===j$?JSON.stringify(e,null,2):String(e);function H6(e,t=""){return e.reduce((n,i,o)=>o===0?n+i:n+t+i,"")}const z2=e=>!_i(e)||zo(e);function Zy(e,t){if(z2(e)||z2(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:i,des:o}=n.pop();Object.keys(i).forEach(s=>{s!=="__proto__"&&(_i(i[s])&&!_i(o[s])&&(o[s]=Array.isArray(i[s])?[]:Ji()),z2(o[s])||z2(i[s])?o[s]=i[s]:n.push({src:i[s],des:o[s]}))})}}/*! - * message-compiler v11.4.6 - * (c) 2026 kazuya kawaguchi - * Released under the MIT License. - */function zX(e,t,n){return{line:e,column:t,offset:n}}function Dw(e,t,n){return{start:e,end:t}}const $i={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},jX=17;function Kb(e,t,n={}){const{domain:i,messages:o,args:s}=n,r=e,l=new SyntaxError(String(r));return l.code=e,t&&(l.location=t),l.domain=i,l}function HX(e){throw e}const au=" ",WX="\r",pr=` -`,qX="\u2028",UX="\u2029";function VX(e){const t=e;let n=0,i=1,o=1,s=0;const r=T=>t[T]===WX&&t[T+1]===pr,l=T=>t[T]===pr,a=T=>t[T]===UX,u=T=>t[T]===qX,c=T=>r(T)||l(T)||a(T)||u(T),d=()=>n,f=()=>i,h=()=>o,m=()=>s,g=T=>r(T)||a(T)||u(T)?pr:t[T],v=()=>g(n),y=()=>g(n+s);function b(){return s=0,c(n)&&(i++,o=0),r(n)&&n++,n++,o++,t[n]}function A(){return r(n+s)&&s++,s++,t[n+s]}function w(){n=0,i=1,o=1,s=0}function M(T=0){s=T}function N(){const T=n+s;for(;T!==n;)b();s=0}return{index:d,line:f,column:h,peekOffset:m,charAt:g,currentChar:v,currentPeek:y,next:b,peek:A,reset:w,resetPeek:M,skipToPeek:N}}const tc=void 0,KX=".",YM="'",ZX="tokenizer";function GX(e,t={}){const n=t.location!==!1,i=VX(e),o=()=>i.index(),s=()=>zX(i.line(),i.column(),i.index()),r=s(),l=o(),a={currentType:13,offset:l,startLoc:r,endLoc:r,lastType:13,lastOffset:l,lastStartLoc:r,lastEndLoc:r,braceNest:0,inLinked:!1,text:""},u=()=>a,{onError:c}=t;function d(re,J,fe,...ke){const Ce=u();if(J.column+=fe,J.offset+=fe,c){const De=n?Dw(Ce.startLoc,J):null,ie=Kb(re,De,{domain:ZX,args:ke});c(ie)}}function f(re,J,fe){re.endLoc=s(),re.currentType=J;const ke={type:J};return n&&(ke.loc=Dw(re.startLoc,re.endLoc)),fe!=null&&(ke.value=fe),ke}const h=re=>f(re,13);function m(re,J){return re.currentChar()===J?(re.next(),J):(d($i.EXPECTED_TOKEN,s(),0,J),"")}function g(re){let J="";for(;re.currentPeek()===au||re.currentPeek()===pr;)J+=re.currentPeek(),re.peek();return J}function v(re){const J=g(re);return re.skipToPeek(),J}function y(re){if(re===tc)return!1;const J=re.charCodeAt(0);return J>=97&&J<=122||J>=65&&J<=90||J===95}function b(re){if(re===tc)return!1;const J=re.charCodeAt(0);return J>=48&&J<=57}function A(re,J){const{currentType:fe}=J;if(fe!==2)return!1;g(re);const ke=y(re.currentPeek());return re.resetPeek(),ke}function w(re,J){const{currentType:fe}=J;if(fe!==2)return!1;g(re);const ke=re.currentPeek()==="-"?re.peek():re.currentPeek(),Ce=b(ke);return re.resetPeek(),Ce}function M(re,J){const{currentType:fe}=J;if(fe!==2)return!1;g(re);const ke=re.currentPeek()===YM;return re.resetPeek(),ke}function N(re,J){const{currentType:fe}=J;if(fe!==7)return!1;g(re);const ke=re.currentPeek()===".";return re.resetPeek(),ke}function T(re,J){const{currentType:fe}=J;if(fe!==8)return!1;g(re);const ke=y(re.currentPeek());return re.resetPeek(),ke}function C(re,J){const{currentType:fe}=J;if(!(fe===7||fe===11))return!1;g(re);const ke=re.currentPeek()===":";return re.resetPeek(),ke}function I(re,J){const{currentType:fe}=J;if(fe!==9)return!1;const ke=()=>{const De=re.currentPeek();return De==="{"?y(re.peek()):De==="@"||De==="|"||De===":"||De==="."||De===au||!De?!1:De===pr?(re.peek(),ke()):E(re,!1)},Ce=ke();return re.resetPeek(),Ce}function S(re){g(re);const J=re.currentPeek()==="|";return re.resetPeek(),J}function E(re,J=!0){const fe=(Ce=!1,De="")=>{const ie=re.currentPeek();return ie==="{"||ie==="@"||!ie?Ce:ie==="|"?!(De===au||De===pr):ie===au?(re.peek(),fe(!0,au)):ie===pr?(re.peek(),fe(!0,pr)):!0},ke=fe();return J&&re.resetPeek(),ke}function _(re,J){const fe=re.currentChar();return fe===tc?tc:J(fe)?(re.next(),fe):null}function F(re){const J=re.charCodeAt(0);return J>=97&&J<=122||J>=65&&J<=90||J>=48&&J<=57||J===95||J===36}function q(re){return _(re,F)}function P(re){const J=re.charCodeAt(0);return J>=97&&J<=122||J>=65&&J<=90||J>=48&&J<=57||J===95||J===36||J===45}function O(re){return _(re,P)}function R(re){const J=re.charCodeAt(0);return J>=48&&J<=57}function z(re){return _(re,R)}function H(re){const J=re.charCodeAt(0);return J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102}function j(re){return _(re,H)}function Q(re){let J="",fe="";for(;J=z(re);)fe+=J;return fe}function ae(re){let J="";for(;;){const fe=re.currentChar();if(fe==="\\"){const ke=re.peek();ke==="{"||ke==="}"||ke==="@"||ke==="|"||ke==="\\"?(J+=fe+ke,re.next(),re.next()):(re.resetPeek(),J+=fe,re.next())}else{if(fe==="{"||fe==="}"||fe==="@"||fe==="|"||!fe)break;if(fe===au||fe===pr)if(E(re))J+=fe,re.next();else{if(S(re))break;J+=fe,re.next()}else J+=fe,re.next()}}return J}function W(re){v(re);let J="",fe="";for(;J=O(re);)fe+=J;const ke=re.currentChar();if(ke&&ke!=="}"&&ke!==tc&&ke!==au&&ke!==pr&&ke!==" "){const Ce=ye(re);return d($i.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,fe+Ce),fe+Ce}return re.currentChar()===tc&&d($i.UNTERMINATED_CLOSING_BRACE,s(),0),fe}function G(re){v(re);let J="";return re.currentChar()==="-"?(re.next(),J+=`-${Q(re)}`):J+=Q(re),re.currentChar()===tc&&d($i.UNTERMINATED_CLOSING_BRACE,s(),0),J}function oe(re){return re!==YM&&re!==pr}function te(re){v(re),m(re,"'");let J="",fe="";for(;J=_(re,oe);)J==="\\"?fe+=ve(re):fe+=J;const ke=re.currentChar();return ke===pr||ke===tc?(d($i.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ke===pr&&(re.next(),m(re,"'")),fe):(m(re,"'"),fe)}function ve(re){const J=re.currentChar();switch(J){case"\\":case"'":return re.next(),`\\${J}`;case"u":return Te(re,J,4);case"U":return Te(re,J,6);default:return d($i.UNKNOWN_ESCAPE_SEQUENCE,s(),0,J),""}}function Te(re,J,fe){m(re,J);let ke="";for(let Ce=0;Ce{const ke=re.currentChar();return ke==="{"||ke==="@"||ke==="|"||ke==="("||ke===")"||!ke||ke===au?fe:(fe+=ke,re.next(),J(fe))};return J("")}function V(re){v(re);const J=m(re,"|");return v(re),J}function le(re,J){let fe=null;switch(re.currentChar()){case"{":return J.braceNest>=1&&d($i.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),re.next(),fe=f(J,2,"{"),v(re),J.braceNest++,fe;case"}":return J.braceNest>0&&J.currentType===2&&d($i.EMPTY_PLACEHOLDER,s(),0),re.next(),fe=f(J,3,"}"),J.braceNest--,J.braceNest>0&&v(re),J.inLinked&&J.braceNest===0&&(J.inLinked=!1),fe;case"@":return J.braceNest>0&&d($i.UNTERMINATED_CLOSING_BRACE,s(),0),fe=Se(re,J)||h(J),J.braceNest=0,fe;default:{let Ce=!0,De=!0,ie=!0;if(S(re))return J.braceNest>0&&d($i.UNTERMINATED_CLOSING_BRACE,s(),0),fe=f(J,1,V(re)),J.braceNest=0,J.inLinked=!1,fe;if(J.braceNest>0&&(J.currentType===4||J.currentType===5||J.currentType===6))return d($i.UNTERMINATED_CLOSING_BRACE,s(),0),J.braceNest=0,be(re,J);if(Ce=A(re,J))return fe=f(J,4,W(re)),v(re),fe;if(De=w(re,J))return fe=f(J,5,G(re)),v(re),fe;if(ie=M(re,J))return fe=f(J,6,te(re)),v(re),fe;if(!Ce&&!De&&!ie)return fe=f(J,12,ye(re)),d($i.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,fe.value),v(re),fe;break}}return fe}function Se(re,J){const{currentType:fe}=J;let ke=null;const Ce=re.currentChar();switch((fe===7||fe===8||fe===11||fe===9)&&(Ce===pr||Ce===au)&&d($i.INVALID_LINKED_FORMAT,s(),0),Ce){case"@":return re.next(),ke=f(J,7,"@"),J.inLinked=!0,ke;case".":return v(re),re.next(),f(J,8,".");case":":return v(re),re.next(),f(J,9,":");default:return S(re)?(ke=f(J,1,V(re)),J.braceNest=0,J.inLinked=!1,ke):N(re,J)||C(re,J)?(v(re),Se(re,J)):T(re,J)?(v(re),f(J,11,Y(re))):I(re,J)?(v(re),Ce==="{"?le(re,J)||ke:f(J,10,se(re))):(fe===7&&d($i.INVALID_LINKED_FORMAT,s(),0),J.braceNest=0,J.inLinked=!1,be(re,J))}}function be(re,J){let fe={type:13};if(J.braceNest>0)return le(re,J)||h(J);if(J.inLinked)return Se(re,J)||h(J);switch(re.currentChar()){case"{":return le(re,J)||h(J);case"}":return d($i.UNBALANCED_CLOSING_BRACE,s(),0),re.next(),f(J,3,"}");case"@":return Se(re,J)||h(J);default:{if(S(re))return fe=f(J,1,V(re)),J.braceNest=0,J.inLinked=!1,fe;if(E(re))return f(J,0,ae(re));break}}return fe}function he(){const{currentType:re,offset:J,startLoc:fe,endLoc:ke}=a;return a.lastType=re,a.lastOffset=J,a.lastStartLoc=fe,a.lastEndLoc=ke,a.offset=o(),a.startLoc=s(),i.currentChar()===tc?f(a,13):be(i,a)}return{nextToken:he,currentOffset:o,currentPosition:s,context:u}}const QX="parser",YX=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,JX=/\\([\\@{}|])/g;function XX(e,t){return t}function eee(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(t||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function tee(e={}){const t=e.location!==!1,{onError:n}=e;function i(y,b,A,w,...M){const N=y.currentPosition();if(N.offset+=w,N.column+=w,n){const T=t?Dw(A,N):null,C=Kb(b,T,{domain:QX,args:M});n(C)}}function o(y,b,A){const w={type:y};return t&&(w.start=b,w.end=b,w.loc={start:A,end:A}),w}function s(y,b,A,w){t&&(y.end=b,y.loc&&(y.loc.end=A))}function r(y,b){const A=y.context(),w=o(3,A.offset,A.startLoc);return w.value=b.replace(JX,XX),s(w,y.currentOffset(),y.currentPosition()),w}function l(y,b){const A=y.context(),{lastOffset:w,lastStartLoc:M}=A,N=o(5,w,M);return N.index=parseInt(b,10),y.nextToken(),s(N,y.currentOffset(),y.currentPosition()),N}function a(y,b){const A=y.context(),{lastOffset:w,lastStartLoc:M}=A,N=o(4,w,M);return N.key=b,y.nextToken(),s(N,y.currentOffset(),y.currentPosition()),N}function u(y,b){const A=y.context(),{lastOffset:w,lastStartLoc:M}=A,N=o(9,w,M);return N.value=b.replace(YX,eee),y.nextToken(),s(N,y.currentOffset(),y.currentPosition()),N}function c(y){const b=y.nextToken(),A=y.context(),{lastOffset:w,lastStartLoc:M}=A,N=o(8,w,M);return b.type!==11?(i(y,$i.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),N.value="",s(N,w,M),{nextConsumeToken:b,node:N}):(b.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,uu(b)),N.value=b.value||"",s(N,y.currentOffset(),y.currentPosition()),{node:N})}function d(y,b){const A=y.context(),w=o(7,A.offset,A.startLoc);return w.value=b,s(w,y.currentOffset(),y.currentPosition()),w}function f(y){const b=y.context(),A=o(6,b.offset,b.startLoc);let w=y.nextToken();if(w.type===8){const M=c(y);A.modifier=M.node,w=M.nextConsumeToken||y.nextToken()}switch(w.type!==9&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(w)),A.key=d(y,w.value||"");break;case 4:w.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(w)),A.key=a(y,w.value||"");break;case 5:w.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(w)),A.key=l(y,w.value||"");break;case 6:w.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(w)),A.key=u(y,w.value||"");break;default:{i(y,$i.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const M=y.context(),N=o(7,M.offset,M.startLoc);return N.value="",s(N,M.offset,M.startLoc),A.key=N,s(A,M.offset,M.startLoc),{nextConsumeToken:w,node:A}}}return s(A,y.currentOffset(),y.currentPosition()),{node:A}}function h(y){const b=y.context(),A=b.currentType===1?y.currentOffset():b.offset,w=b.currentType===1?b.endLoc:b.startLoc,M=o(2,A,w);M.items=[];let N=null;do{const I=N||y.nextToken();switch(N=null,I.type){case 0:I.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(I)),M.items.push(r(y,I.value||""));break;case 5:I.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(I)),M.items.push(l(y,I.value||""));break;case 4:I.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(I)),M.items.push(a(y,I.value||""));break;case 6:I.value==null&&i(y,$i.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uu(I)),M.items.push(u(y,I.value||""));break;case 7:{const S=f(y);M.items.push(S.node),N=S.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const T=b.currentType===1?b.lastOffset:y.currentOffset(),C=b.currentType===1?b.lastEndLoc:y.currentPosition();return s(M,T,C),M}function m(y,b,A,w){const M=y.context();let N=w.items.length===0;const T=o(1,b,A);T.cases=[],T.cases.push(w);do{const C=h(y);N||(N=C.items.length===0),T.cases.push(C)}while(M.currentType!==13);return N&&i(y,$i.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),s(T,y.currentOffset(),y.currentPosition()),T}function g(y){const b=y.context(),{offset:A,startLoc:w}=b,M=h(y);return b.currentType===13?M:m(y,A,w,M)}function v(y){const b=GX(y,hs({},e)),A=b.context(),w=o(0,A.offset,A.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=g(b),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),A.currentType!==13&&i(b,$i.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,y[A.offset]||""),s(w,b.currentOffset(),b.currentPosition()),w}return{parse:v}}function uu(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function nee(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function JM(e,t){for(let n=0;nXM(n)),e}function XM(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;nr;function a(g,v){r.code+=g}function u(g,v=!0){const y=v?i:"";a(o?y+" ".repeat(g):y)}function c(g=!0){const v=++r.indentLevel;g&&u(v)}function d(g=!0){const v=--r.indentLevel;g&&u(v)}function f(){u(r.indentLevel)}return{context:l,push:a,indent:c,deindent:d,newline:f,helper:g=>`_${g}`,needIndent:()=>r.needIndent}}function ree(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),U1(e,t.key),t.modifier?(e.push(", "),U1(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function lee(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const o=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(i());const o=t.cases.length;for(let s=0;s{const n=pn(t.mode)?t.mode:"normal",i=pn(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,s=t.needIndent?t.needIndent:n!=="arrow",r=e.helpers||[],l=see(e,{filename:i,breakLineCode:o,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),r.length>0&&(l.push(`const { ${H6(r.map(c=>`${c}: _${c}`),", ")} } = ctx`),l.newline()),l.push("return "),U1(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:a,map:u}=l.context();return{ast:e,code:a,map:u?u.toJSON():void 0}};function dee(e,t={}){const n=hs({},t),i=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,l=tee(n).parse(e);return i?(s&&oee(l),o&&Hp(l),{ast:l,code:""}):(iee(l,n),cee(l,n))}/*! - * core-base v11.4.6 - * (c) 2026 kazuya kawaguchi - * Released under the MIT License. - */function fee(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rh().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Du(e){return _i(e)&&q6(e)===0&&(ha(e,"b")||ha(e,"body"))}const H$=["b","body"];function hee(e){return nf(e,H$)}const W$=["c","cases"];function pee(e){return nf(e,W$,[])}const q$=["s","static"];function mee(e){return nf(e,q$)}const U$=["i","items"];function gee(e){return nf(e,U$,[])}const V$=["t","type"];function q6(e){return nf(e,V$)}const K$=["v","value"];function j2(e,t){const n=nf(e,K$);if(n!=null)return n;throw W0(t)}const Z$=["m","modifier"];function vee(e){return nf(e,Z$)}const G$=["k","key"];function yee(e){const t=nf(e,G$);if(t)return t;throw W0(6)}function nf(e,t,n){for(let i=0;ikee(n,e)}function kee(e,t){const n=hee(t);if(n==null)throw W0(0);if(q6(n)===1){const s=pee(n);return e.plural(s.reduce((r,l)=>[...r,eI(e,l)],[]))}else return eI(e,n)}function eI(e,t){const n=mee(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const i=gee(t).reduce((o,s)=>[...o,Fw(e,s)],[]);return e.normalize(i)}}function Fw(e,t){const n=q6(t);switch(n){case 3:return j2(t,n);case 9:return j2(t,n);case 4:{const i=t;if(ha(i,"k")&&i.k)return e.interpolate(e.named(i.k));if(ha(i,"key")&&i.key)return e.interpolate(e.named(i.key));throw W0(n)}case 5:{const i=t;if(ha(i,"i")&&cs(i.i))return e.interpolate(e.list(i.i));if(ha(i,"index")&&cs(i.index))return e.interpolate(e.list(i.index));throw W0(n)}case 6:{const i=t,o=vee(i),s=yee(i);return e.linked(Fw(e,s),o?Fw(e,o):void 0,e.type)}case 7:return j2(t,n);case 8:return j2(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const bee=e=>e;let H2=Ji();function wee(e,t={}){let n=!1;const i=t.onError||HX;return t.onError=o=>{n=!0,i(o)},{...dee(e,t),detectError:n}}function Cee(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&pn(e)){Si(t.warnHtmlMessage)&&t.warnHtmlMessage;const i=(t.onCacheKey||bee)(e),o=H2[i];if(o)return o;const{ast:s,detectError:r}=wee(e,{...t,location:!1,jit:!0}),l=q3(s);return r?l:H2[i]=l}else{const n=e.cacheKey;if(n){const i=H2[n];return i||(H2[n]=q3(e))}else return q3(e)}}let q0=null;function Aee(e){q0=e}function xee(e,t,n){q0&&q0.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const See=_ee("function:translate");function _ee(e){return t=>q0&&q0.emit(e,t)}const mc={INVALID_ARGUMENT:jX,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Mee=24;function gc(e){return Kb(e,null,void 0)}function U6(e,t){return t.locale!=null?tI(t.locale):tI(e.locale)}let U3;function tI(e){if(pn(e))return e;if(Ao(e)){if(e.resolvedOnce&&U3!=null)return U3;if(e.constructor.name==="Function"){const t=e();if($X(t))throw gc(mc.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return U3=t}else throw gc(mc.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw gc(mc.NOT_SUPPORT_LOCALE_TYPE)}function Iee(e,t,n){return[...new Set([n,...zo(t)?t:_i(t)?Object.keys(t):pn(t)?[t]:[n]])]}function Bw(e,t,n){const i=pn(n)?n:U0,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(i);if(!s){s=[];let r=[n];for(;zo(r);)r=nI(s,r,t);const l=zo(t)||!vi(t)?t:t.default?t.default:null;r=pn(l)?[l]:l,zo(r)&&nI(s,r,!1),o.__localeChainCache.set(i,s)}return s}function nI(e,t,n){let i=!0;for(let o=0;o{r===void 0?r=l:r+=l},f[1]=()=>{r!==void 0&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,i=4,f[0]();else{if(o=0,r===void 0||(r=Bee(r),r===!1))return!1;f[1]()}};function h(){const m=e[n+1];if(i===5&&m==="'"||i===6&&m==='"')return n++,l="\\"+m,f[0](),!0}for(;i!==null;)if(n++,s=e[n],!(s==="\\"&&h())){if(a=Fee(s),d=of[i],u=d[a]||d.l||8,u===8||(i=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(l=s,c()===!1))))return;if(i===7)return t}}const iI=new Map;function Oee(e,t){return _i(e)?e[t]:null}function $ee(e,t){if(!_i(e))return null;let n=iI.get(t);if(n||(n=Ree(t),n&&iI.set(t,n)),!n)return null;const i=n.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function zee(){return{upper:(e,t)=>t==="text"&&pn(e)?e.toUpperCase():t==="vnode"&&_i(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&pn(e)?e.toLowerCase():t==="vnode"&&_i(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&pn(e)?oI(e):t==="vnode"&&_i(e)&&"__v_isVNode"in e?oI(e.children):e}}let Y$;function jee(e){Y$=e}let J$;function Hee(e){J$=e}let X$;function Wee(e){X$=e}let eP=null;const qee=e=>{eP=e},Uee=()=>eP;let tP=null;const sI=e=>{tP=e},Vee=()=>tP;let rI=0;function Kee(e={}){const t=Ao(e.onWarn)?e.onWarn:IX,n=pn(e.version)?e.version:Pee,i=pn(e.locale)||Ao(e.locale)?e.locale:U0,o=Ao(i)?U0:i,s=zo(e.fallbackLocale)||vi(e.fallbackLocale)||pn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,r=vi(e.messages)?e.messages:V3(o),l=vi(e.datetimeFormats)?e.datetimeFormats:V3(o),a=vi(e.numberFormats)?e.numberFormats:V3(o),u=hs(Ji(),e.modifiers,zee()),c=e.pluralRules||Ji(),d=Ao(e.missing)?e.missing:null,f=Si(e.missingWarn)||q1(e.missingWarn)?e.missingWarn:!0,h=Si(e.fallbackWarn)||q1(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,g=!!e.unresolving,v=Ao(e.postTranslation)?e.postTranslation:null,y=vi(e.processor)?e.processor:null,b=Si(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter,w=Ao(e.messageCompiler)?e.messageCompiler:Y$,M=Ao(e.messageResolver)?e.messageResolver:J$||Oee,N=Ao(e.localeFallbacker)?e.localeFallbacker:X$||Iee,T=_i(e.fallbackContext)?e.fallbackContext:void 0,C=e,I=_i(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,S=_i(C.__numberFormatters)?C.__numberFormatters:new Map,E=_i(C.__meta)?C.__meta:{};rI++;const _={version:n,cid:rI,locale:i,fallbackLocale:s,messages:r,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:g,postTranslation:v,processor:y,warnHtmlMessage:b,escapeParameter:A,messageCompiler:w,messageResolver:M,localeFallbacker:N,fallbackContext:T,onWarn:t,__meta:E};return _.datetimeFormats=l,_.numberFormats=a,_.__datetimeFormatters=I,_.__numberFormatters=S,__INTLIFY_PROD_DEVTOOLS__&&xee(_,n,E),_}const V3=e=>({[e]:Ji()});function V6(e,t,n,i,o){const{missing:s,onWarn:r}=e;if(s!==null){const l=s(e,n,t,o);return pn(l)?l:t}else return t}function ng(e,t,n){const i=e;i.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Zee(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Gee(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let i=n+1;i{nP.includes(a)?r[a]=n[a]:s[a]=n[a]}),pn(i)?s.locale=i:vi(i)&&(r=i),vi(o)&&(r=o),[s.key||"",l,s,r]}function aI(e,t,n){const i=e;for(const o in n){const s=`${t}__${o}`;i.__datetimeFormatters.has(s)&&i.__datetimeFormatters.delete(s)}}function uI(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:o,onWarn:s,localeFallbacker:r}=e,{__numberFormatters:l}=e;if(!cs(t[0]))return X9;const[a,u,c,d]=Ow(...t),f=Si(c.missingWarn)?c.missingWarn:e.missingWarn;Si(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,m=U6(e,c),g=r(e,o,m);if(!pn(a)||a===""){const N=new Intl.NumberFormat(m.replace(/!/g,""),d);return h?N.formatToParts(u):N.format(u)}let v={},y,b=null;const A="number format";for(let N=0;N{iP.includes(a)?r[a]=n[a]:s[a]=n[a]}),pn(i)?s.locale=i:vi(i)&&(r=i),vi(o)&&(r=o),[s.key||"",l,s,r]}function cI(e,t,n){const i=e;for(const o in n){const s=`${t}__${o}`;i.__numberFormatters.has(s)&&i.__numberFormatters.delete(s)}}const Qee=e=>e,Yee=e=>"",Jee="text",Xee=e=>e.length===0?"":H6(e),ete=PX;function K3(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function tte(e){const t=cs(e.pluralIndex)?e.pluralIndex:-1;return cs(e.named?.count)?e.named.count:cs(e.named?.n)?e.named.n:t}function nte(e={}){const t=e.locale,n=tte(e),i=pn(t)&&Ao(e.pluralRules?.[t])?e.pluralRules[t]:K3,o=i===K3?void 0:K3,s=y=>y[i(n,y.length,o)],r=e.list||[],l=y=>r[y],a=e.named||Ji();cs(e.pluralIndex)&&(a.count||=e.pluralIndex,a.n||=e.pluralIndex);const u=y=>a[y];function c(y,b){const A=Ao(e.messages)?e.messages(y,!!b):_i(e.messages)?e.messages[y]:!1;return A||(e.parent?e.parent.message(y):Yee)}const d=y=>e.modifiers?e.modifiers[y]:Qee,f=Ao(e.processor?.normalize)?e.processor.normalize:Xee,h=Ao(e.processor?.interpolate)?e.processor.interpolate:ete,m=pn(e.processor?.type)?e.processor.type:Jee,v={list:l,named:u,plural:s,linked:(y,...b)=>{const[A,w]=b;let M="text",N="";b.length===1?_i(A)?(N=A.modifier||N,M=A.type||M):pn(A)&&(N=A||N):b.length===2&&(pn(A)&&(N=A||N),pn(w)&&(M=w||M));const T=c(y,!0)(v),C=T===""||T===void 0?y:T,I=M==="vnode"&&zo(C)&&N?C[0]:C;return N?d(N)(I,M):I},message:c,type:m,interpolate:h,normalize:f,values:hs(Ji(),r,a)};return v}const dI=()=>"",ua=e=>Ao(e);function fI(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:o,messageCompiler:s,fallbackLocale:r,messages:l}=e,[a,u]=$w(...t),c=Si(u.missingWarn)?u.missingWarn:e.missingWarn,d=Si(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=Si(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,m=pn(u.default)||Si(u.default)?Si(u.default)?s?a:()=>a:u.default:n?s?a:()=>a:null,g=n||m!=null&&(pn(m)||Ao(m)),v=U6(e,u);f&&ite(u);let[y,b,A]=h?[a,v,l[v]||Ji()]:oP(e,a,v,r,d,c),w=y,M=a;if(!h&&!(pn(w)||Du(w)||ua(w))&&g&&(w=m,M=w),!h&&(!(pn(w)||Du(w)||ua(w))||!pn(b)))return o?Zb:a;let N=!1;const T=()=>{N=!0},C=ua(w)?w:sP(e,a,b,w,M,T);if(N)return w;const I=rte(e,b,A,u),S=nte(I),E=ote(e,C,S);let _=i?i(E,a):E;if(f&&pn(_)&&(_=RX(_)),__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:pn(a)?a:ua(w)?w.key:"",locale:b||(ua(w)?w.locale:""),format:pn(w)?w:ua(w)?w.source:"",message:_};F.meta=hs({},e.__meta,Uee()||{}),See(F)}return _}function ite(e){zo(e.list)?e.list=e.list.map(t=>pn(t)?GM(t):t):_i(e.named)&&Object.keys(e.named).forEach(t=>{pn(e.named[t])&&(e.named[t]=GM(e.named[t]))})}function oP(e,t,n,i,o,s){const{messages:r,onWarn:l,messageResolver:a,localeFallbacker:u}=e,c=u(e,i,n);let d=Ji(),f,h=null;const m="translate";for(let g=0;gi);return u.locale=n,u.key=t,u}const a=r(i,ste(e,n,o,i,l,s));return a.locale=n,a.key=t,a.source=i,a}function ote(e,t,n){return t(n)}function $w(...e){const[t,n,i]=e,o=Ji();if(!pn(t)&&!cs(t)&&!ua(t)&&!Du(t))throw gc(mc.INVALID_ARGUMENT);const s=cs(t)?String(t):(ua(t),t);return cs(n)?o.plural=n:pn(n)?o.default=n:vi(n)&&!Vb(n)?o.named=n:zo(n)&&(o.list=n),cs(i)?o.plural=i:pn(i)?o.default=i:vi(i)&&hs(o,i),[s,o]}function ste(e,t,n,i,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:r=>{throw s&&s(r),r},onCacheKey:r=>TX(t,n,r)}}function rte(e,t,n,i){const{modifiers:o,pluralRules:s,messageResolver:r,fallbackLocale:l,fallbackWarn:a,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:o,pluralRules:s,messages:(h,m)=>{let g=r(n,h);if(g==null&&(c||m)){const[v,,y]=oP(c||e,h,t,l,a,u);g=v??r(y,h)}if(pn(g)||Du(g)){let v=!1;const b=sP(e,h,t,g,h,()=>{v=!0});return v?dI:b}else return ua(g)?g:dI}};return e.processor&&(f.processor=e.processor),i.list&&(f.list=i.list),i.named&&(f.named=i.named),cs(i.plural)&&(f.pluralIndex=i.plural),f}fee();/*! - * vue-i18n v11.4.6 - * (c) 2026 kazuya kawaguchi - * Released under the MIT License. - */const lte="11.4.6";function ate(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(rh().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(rh().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rh().__INTLIFY_PROD_DEVTOOLS__=!1)}const Hr={UNEXPECTED_RETURN_TYPE:Mee,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ml(e,...t){return Kb(e,null,void 0)}const Pw=tf("__translateVNode"),zw=tf("__datetimeParts"),jw=tf("__numberParts"),rP=tf("__setPluralRules"),lP=tf("__injectWithOption"),e1=tf("__dispose");function V0(e){if(!_i(e)||Du(e))return e;for(const t in e)if(ha(e,t))if(!t.includes("."))_i(e[t])&&V0(e[t]);else{const n=t.split("."),i=n.length-1;let o=e,s=!1;for(let r=0;r{if("locale"in l&&"resource"in l){const{locale:a,resource:u}=l;a?(r[a]=r[a]||Ji(),Zy(u,r[a])):Zy(u,r)}else pn(l)&&Zy(JSON.parse(l),r)}),o==null&&s)for(const l in r)ha(r,l)&&V0(r[l]);return r}function aP(e){return e.type}function uP(e,t,n){let i=_i(t.messages)?t.messages:Ji();"__i18nGlobal"in n&&(i=K6(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const o=Object.keys(i);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(_i(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(r=>{e.mergeDateTimeFormat(r,t.datetimeFormats[r])})}if(_i(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(r=>{e.mergeNumberFormat(r,t.numberFormats[r])})}}}function hI(e){return K(xd,null,e,0)}function K0(){return vs()}const pI="__INTLIFY_META__",mI=()=>[],ute=()=>!1;let gI=0;function vI(e){return((t,n,i,o)=>e(n,i,K0()||void 0,o))}const cte=()=>{const e=K0();let t=null;return e&&(t=aP(e)[pI])?{[pI]:t}:null};function ek(e={}){const{__root:t,__injectWithOption:n}=e,i=t===void 0,o=e.flatJson,s=J9?U:Ga;let r=Si(e.inheritLocale)?e.inheritLocale:!0;const l=s(t&&r?t.locale.value:pn(e.locale)?e.locale:U0),a=s(t&&r?t.fallbackLocale.value:pn(e.fallbackLocale)||zo(e.fallbackLocale)||vi(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),u=s(K6(l.value,e)),c=s(vi(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=s(vi(e.numberFormats)?e.numberFormats:{[l.value]:{}});let f=t?t.missingWarn:Si(e.missingWarn)||q1(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:Si(e.fallbackWarn)||q1(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:Si(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,v=Ao(e.missing)?e.missing:null,y=Ao(e.missing)?vI(e.missing):null,b=Ao(e.postTranslation)?e.postTranslation:null,A=t?t.warnHtmlMessage:Si(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const M=t?t.modifiers:vi(e.modifiers)?e.modifiers:{};let N=e.pluralRules||t&&t.pluralRules,T;T=(()=>{i&&sI(null);const ie={version:lte,locale:l.value,fallbackLocale:a.value,messages:u.value,modifiers:M,pluralRules:N,missing:y===null?void 0:y,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:A,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=c.value,ie.numberFormats=d.value,ie.__datetimeFormatters=vi(T)?T.__datetimeFormatters:void 0,ie.__numberFormatters=vi(T)?T.__numberFormatters:void 0;const me=Kee(ie);return i&&sI(me),me})(),ng(T,l.value,a.value);function I(){return[l.value,a.value,u.value,c.value,d.value]}const S=D({get:()=>l.value,set:ie=>{T.locale=ie,l.value=ie}}),E=D({get:()=>a.value,set:ie=>{T.fallbackLocale=ie,a.value=ie,ng(T,l.value,ie)}}),_=D(()=>u.value),F=D(()=>c.value),q=D(()=>d.value);function P(){return Ao(b)?b:null}function O(ie){b=ie,T.postTranslation=ie}function R(){return v}function z(ie){ie!==null&&(y=vI(ie)),v=ie,T.missing=y}const H=(ie,me,je,Ze,lt,ft)=>{I();let Mt;try{__INTLIFY_PROD_DEVTOOLS__,i||(T.fallbackContext=t?Vee():void 0),Mt=ie(T)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(T.fallbackContext=void 0)}if(je!=="translate exists"&&cs(Mt)&&Mt===Zb||je==="translate exists"&&!Mt){const[Rt,qt]=me();return t&&m?Ze(t):lt(Rt)}else{if(ft(Mt))return Mt;throw ml(Hr.UNEXPECTED_RETURN_TYPE)}};function j(...ie){return H(me=>Reflect.apply(fI,null,[me,...ie]),()=>$w(...ie),"translate",me=>Reflect.apply(me.t,me,[...ie]),me=>me,me=>pn(me))}function Q(...ie){const[me,je,Ze]=ie;if(Ze&&!_i(Ze))throw ml(Hr.INVALID_ARGUMENT);return j(me,je,hs({resolvedMessage:!0},Ze||{}))}function ae(...ie){return H(me=>Reflect.apply(lI,null,[me,...ie]),()=>Rw(...ie),"datetime format",me=>Reflect.apply(me.d,me,[...ie]),()=>X9,me=>pn(me)||zo(me))}function W(...ie){return H(me=>Reflect.apply(uI,null,[me,...ie]),()=>Ow(...ie),"number format",me=>Reflect.apply(me.n,me,[...ie]),()=>X9,me=>pn(me)||zo(me))}function G(ie){return ie.map(me=>pn(me)||cs(me)||Si(me)?hI(String(me)):me)}const te={normalize:G,interpolate:ie=>ie,type:"vnode"};function ve(...ie){return H(me=>{let je;const Ze=me;try{Ze.processor=te,je=Reflect.apply(fI,null,[Ze,...ie])}finally{Ze.processor=null}return je},()=>$w(...ie),"translate",me=>me[Pw](...ie),me=>[hI(me)],me=>zo(me))}function Te(...ie){return H(me=>Reflect.apply(uI,null,[me,...ie]),()=>Ow(...ie),"number format",me=>me[jw](...ie),mI,me=>pn(me)||zo(me))}function Fe(...ie){return H(me=>Reflect.apply(lI,null,[me,...ie]),()=>Rw(...ie),"datetime format",me=>me[zw](...ie),mI,me=>pn(me)||zo(me))}function ye(ie){N=ie,T.pluralRules=N}function Y(ie,me){return H(()=>{if(!ie)return!1;const je=pn(me)?me:l.value,Ze=pn(me)?[je]:Bw(T,a.value,je);for(let lt=0;lt[ie],"translate exists",je=>Reflect.apply(je.te,je,[ie,me]),ute,je=>Si(je))}function se(ie){let me=null;const je=Bw(T,a.value,l.value);for(let Ze=0;Ze{r&&(l.value=ie,T.locale=ie,ng(T,l.value,a.value))}),Ue(t.fallbackLocale,ie=>{r&&(a.value=ie,T.fallbackLocale=ie,ng(T,l.value,a.value))}));const De={id:gI,locale:S,fallbackLocale:E,get inheritLocale(){return r},set inheritLocale(ie){r=ie,ie&&t&&(l.value=t.locale.value,a.value=t.fallbackLocale.value,ng(T,l.value,a.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:_,get modifiers(){return M},get pluralRules(){return N||{}},get isGlobal(){return i},get missingWarn(){return f},set missingWarn(ie){f=ie,T.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(ie){h=ie,T.fallbackWarn=h},get fallbackRoot(){return m},set fallbackRoot(ie){m=ie},get fallbackFormat(){return g},set fallbackFormat(ie){g=ie,T.fallbackFormat=g},get warnHtmlMessage(){return A},set warnHtmlMessage(ie){A=ie,T.warnHtmlMessage=ie},get escapeParameter(){return w},set escapeParameter(ie){w=ie,T.escapeParameter=ie},t:j,getLocaleMessage:le,setLocaleMessage:Se,mergeLocaleMessage:be,getPostTranslationHandler:P,setPostTranslationHandler:O,getMissingHandler:R,setMissingHandler:z,[rP]:ye};return De.datetimeFormats=F,De.numberFormats=q,De.rt=Q,De.te=Y,De.tm=V,De.d=ae,De.n=W,De.getDateTimeFormat=he,De.setDateTimeFormat=re,De.mergeDateTimeFormat=J,De.getNumberFormat=fe,De.setNumberFormat=ke,De.mergeNumberFormat=Ce,De[lP]=n,De[Pw]=ve,De[zw]=Fe,De[jw]=Te,De}function dte(e){const t=pn(e.locale)?e.locale:U0,n=pn(e.fallbackLocale)||zo(e.fallbackLocale)||vi(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,i=Ao(e.missing)?e.missing:void 0,o=Si(e.silentTranslationWarn)||q1(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Si(e.silentFallbackWarn)||q1(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,r=Si(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,a=vi(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Ao(e.postTranslation)?e.postTranslation:void 0,d=pn(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=Si(e.sync)?e.sync:!0;let m=e.messages;if(vi(e.sharedMessages)){const M=e.sharedMessages;m=Object.keys(M).reduce((T,C)=>{const I=T[C]||(T[C]={});return hs(I,M[C]),T},m||{})}const{__i18n:g,__root:v,__injectWithOption:y}=e,b=e.datetimeFormats,A=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:w,datetimeFormats:b,numberFormats:A,missing:i,missingWarn:o,fallbackWarn:s,fallbackRoot:r,fallbackFormat:l,modifiers:a,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:g,__root:v,__injectWithOption:y}}function Hw(e={}){const t=ek(dte(e)),{__extender:n}=e,i={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Si(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Si(o)?!o:o},get silentFallbackWarn(){return Si(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Si(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,s){return t.te(o,s)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,s){t.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){t.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,s){t.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){t.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,s){t.setNumberFormat(o,s)},mergeNumberFormat(o,s){t.mergeNumberFormat(o,s)}};return i.__extender=n,i}function fte(e,t,n){return{beforeCreate(){const i=K0();if(!i)throw ml(Hr.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=yI(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Hw(s);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=yI(e,o);else{this.$i18n=Hw({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&uP(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,r)=>this.$i18n.te(s,r),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=K0();if(!i)throw ml(Hr.UNEXPECTED_ERROR);const o=this.$i18n;o&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o?.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(i),delete this.$i18n)}}}function yI(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rP](t.pluralizationRules||e.pluralizationRules);const n=K6(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,t.datetimeFormats[i])),t.numberFormats&&Object.keys(t.numberFormats).forEach(i=>e.mergeNumberFormat(i,t.numberFormats[i])),e}const Z6={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function hte({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((i,o)=>[...i,...o.type===Re?o.children:[o]],[]):t.reduce((n,i)=>{const o=e[i];return o&&(n[i]=o()),n},Ji())}function cP(){return Re}const pte=ut({name:"i18n-t",props:hs({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>cs(e)||!isNaN(e)}},Z6),setup(e,t){const{slots:n,attrs:i}=t,o=e.i18n||Kt({useScope:e.scope,__useComponent:!0});return()=>{const s=()=>{const a=Object.keys(n).filter(d=>d[0]!=="_"),u=Ji();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=pn(e.plural)?+e.plural:e.plural);const c=hte(t,a);return o[Pw](e.keypath,c,u)},r=hs(Ji(),i),l=pn(e.tag)||_i(e.tag)?e.tag:cP();return _i(l)?Rn(l,r,{default:s}):Rn(l,r,s())}}}),kI=pte;function mte(e){return zo(e)&&!pn(e[0])}function dP(e,t,n,i){const{slots:o,attrs:s}=t;return()=>{const r=()=>{const u={part:!0};let c=Ji();e.locale&&(u.locale=e.locale),pn(e.format)?u.key=e.format:_i(e.format)&&(pn(e.format.key)&&(u.key=e.format.key),c=Object.keys(e.format).reduce((h,m)=>n.includes(m)?hs(Ji(),h,{[m]:e.format[m]}):h,Ji()));const d=i(e.value,u,c);let f=[u.key];return zo(d)?f=d.map((h,m)=>{const g=o[h.type],v=g?g({[h.type]:h.value,index:m,parts:d}):[h.value];return mte(v)&&(v[0].key=`${h.type}-${m}`),v}):pn(d)&&(f=[d]),f},l=hs(Ji(),s),a=pn(e.tag)||_i(e.tag)?e.tag:cP();return _i(a)?Rn(a,l,{default:r}):Rn(a,l,r())}}const gte=ut({name:"i18n-n",props:hs({value:{type:Number,required:!0},format:{type:[String,Object]}},Z6),setup(e,t){const n=e.i18n||Kt({useScope:e.scope,__useComponent:!0});return dP(e,t,iP,(...i)=>n[jw](...i))}}),bI=gte;function vte(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return i!=null?i.__composer:e.global.__composer}}function yte(e){const t=r=>{const{instance:l,value:a}=r;if(!l||!l.$)throw ml(Hr.UNEXPECTED_ERROR);const u=vte(e,l.$),c=wI(a);return[Reflect.apply(u.t,u,[...CI(c)]),u]};return{created:(r,l)=>{const[a,u]=t(l);J9&&(r.__i18nWatcher=Ue(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),r.__composer=u,r.textContent=a},unmounted:r=>{J9&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:l})=>{if(r.__composer){const a=r.__composer,u=wI(l);r.textContent=Reflect.apply(a.t,a,[...CI(u)])}},getSSRProps:r=>{const[l]=t(r);return{textContent:l}}}}function wI(e){if(pn(e))return{path:e};if(vi(e)){if(!("path"in e))throw ml(Hr.REQUIRED_VALUE,"path");return e}else throw ml(Hr.INVALID_VALUE)}function CI(e){const{path:t,locale:n,args:i,choice:o,plural:s}=e,r={},l=i||{};return pn(n)&&(r.locale=n),cs(o)&&(r.plural=o),cs(s)&&(r.plural=s),[t,l,r]}function kte(e,t,...n){const i=vi(n[0])?n[0]:{};(Si(i.globalInstall)?i.globalInstall:!0)&&([kI.name,"I18nT"].forEach(s=>e.component(s,kI)),[bI.name,"I18nN"].forEach(s=>e.component(s,bI)),[SI.name,"I18nD"].forEach(s=>e.component(s,SI))),e.directive("t",yte(t))}const bte=tf("global-vue-i18n");function wte(e={}){const t=__VUE_I18N_LEGACY_API__&&Si(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Si(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,s]=Cte(e,t),r=tf("");function l(d){return i.get(d)||null}function a(d,f){i.set(d,f)}function u(d){i.delete(d)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...f){if(d.__VUE_I18N_SYMBOL__=r,d.provide(d.__VUE_I18N_SYMBOL__,c),vi(f[0])){const g=f[0];c.__composerExtend=g.__composerExtend,c.__vueI18nExtend=g.__vueI18nExtend}let h=null;!t&&n&&(h=Tte(d,c.global)),__VUE_I18N_FULL_INSTALL__&&kte(d,c,...f),__VUE_I18N_LEGACY_API__&&t&&d.mixin(fte(s,s.__composer,c));const m=d.unmount;d.unmount=()=>{h&&h(),c.dispose(),m()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:a,__deleteInstance:u};return c}function Kt(e={}){const t=K0();if(t==null)throw ml(Hr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ml(Hr.NOT_INSTALLED);const n=Ate(t),i=Ste(n),o=aP(t),s=xte(e,o);if(s==="global")return uP(i,e,o),i;if(s==="parent"){let a=AI(n,t,e.__useComponent);return a==null&&(a=i),a}if(s==="isolated"){if(n.mode!=="composition")throw ml(Hr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=n,u=hs({},e),c=AI(n,t);u.__root=c||i;const d=ek(u);return a.__composerExtend&&(d[e1]=a.__composerExtend(d)),Lv()&&Xd(()=>{const h=d[e1];h&&(h(),delete d[e1])}),d}const r=n;let l=r.__getInstance(t);if(l==null){const a=hs({},e);"__i18n"in o&&(a.__i18n=o.__i18n),i&&(a.__root=i),l=ek(a),r.__composerExtend&&(l[e1]=r.__composerExtend(l)),Mte(r,t,l),r.__setInstance(t,l)}return l}function Cte(e,t){const n=Rb(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Hw(e)):n.run(()=>ek(e));if(i==null)throw ml(Hr.UNEXPECTED_ERROR);return[n,i]}function Ate(e){const t=en(e.isCE?bte:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ml(e.isCE?Hr.NOT_INSTALLED_WITH_PROVIDE:Hr.UNEXPECTED_ERROR);return t}function xte(e,t){return Vb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ste(e){return e.mode==="composition"?e.global:e.global.__composer}function AI(e,t,n=!1){let i=null;const o=t.root;let s=_te(t,n);for(;s!=null;){const r=e;if(e.mode==="composition")i=r.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=r.__getInstance(s);l!=null&&(i=l.__composer,n&&i&&!i[lP]&&(i=null))}if(i!=null||o===s)break;s=s.parent}return i}function _te(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Mte(e,t,n){yn(()=>{},t),Fn(()=>{const i=n;e.__deleteInstance(t);const o=i[e1];o&&(o(),delete i[e1])},t)}const Ite=["locale","fallbackLocale","availableLocales"],xI=["t","rt","d","n","tm","te"];function Tte(e,t){const n=Object.create(null);return Ite.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw ml(Hr.UNEXPECTED_ERROR);const r=xo(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,xI.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw ml(Hr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,xI.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const Ete=ut({name:"i18n-d",props:hs({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Z6),setup(e,t){const n=e.i18n||Kt({useScope:e.scope,__useComponent:!0});return dP(e,t,nP,(...i)=>n[zw](...i))}}),SI=Ete;ate();jee(Cee);Hee($ee);Wee(Bw);if(__INTLIFY_PROD_DEVTOOLS__){const e=rh();e.__INTLIFY__=!0,Aee(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Lte={preview:"Preview",confirm:"Confirm",cancel:"Cancel",close:"Close",dismiss:"Dismiss",loading:"Loading",copy:"Copy",errorBoundaryTitle:"Something went wrong",errorBoundaryRetry:"Try again",asyncLoadFailed:"Failed to load. Close this view and try again."},Nte={connecting:"Connecting…",internalBuildBanner:"Internal testing only",menuFile:"File",menuEdit:"Edit",menuView:"View",menuHelp:"Help",applicationMenu:"Application menu"},Dte={workspaceMeta:"workspace · {branch}",sessionsHeader:"sessions",workspaces:"workspaces",viewSwitcher:"List options",viewGroup:"View",viewFlat:"Flat list",viewGrouped:"Group by workspace",sortGroup:"Sort order",sortManual:"Manual",sortRecent:"Recent activity",sessionAdmin:"Manage Sessions",collapseAll:"Collapse all workspaces",expandAll:"Expand all workspaces",newSession:"New Session",newChat:"New Session",newWorkspace:"New Workspace",dropToAddWorkspace:"Drop to add workspace",emptyState:"No sessions yet · click New Session to start",options:"Options",rename:"Rename",genTitle:"Gen Title",genTitleUnavailable:"Title generation unavailable — needs a managed Kimi Code login and at least one message",setEmoji:"Set Emoji…",sessionEmojiTitle:"Pick an emoji",removeEmoji:"Remove emoji",randomEmoji:"Random",searchEmoji:"Search emoji",recentEmojis:"Recently used",noEmojiResults:"No matching emoji",emojiGroupFaces:"Smileys & People",emojiGroupNature:"Animals & Nature",emojiGroupFood:"Food & Drink",emojiGroupActivity:"Activities & Travel",emojiGroupObjects:"Objects & Work",emojiGroupSymbols:"Symbols & Status",copyPath:"Copy path",copySessionId:"Copy session ID",copied:"Copied ✓",copyFailed:"Copy failed",archive:"Archive",archiveToastUndo:"Undo",archiveToastMid:"or view archived chats in",archiveToastSettings:"Settings",archiveToastTail:"",tabOpen:"Open",tabDone:"Done",tabWorkspaces:"Workspaces",tagOpen:"Open",tagDone:"Done",complete:"Done",markDone:"Mark as done",reopen:"Mark as open",noDoneSessions:"No completed sessions yet",noOpenSessions:"No open sessions yet",completeToastLead:"Done",reopenToastLead:"Back to open",fork:"Fork session",export:"Export session",pin:"Pin",unpin:"Unpin",lastActive:"Last updated: {time}",pinned:"Pinned",collapsePinned:"Collapse pinned",expandPinned:"Expand pinned",resizePinnedAria:"Resize pinned section height",delete:"Delete",removeWorkspace:"Remove workspace",brand:"Kimi Code",signedIn:"Signed in",signOut:"Sign out",notSignedIn:"Not signed in",signIn:"Sign in",defaultUserName:"Kimi User",upgrade:"Upgrade",upgradeMembership:"Upgrade membership",logoutConfirmTitle:"Sign out",logoutConfirmMessage:"Are you sure you want to sign out?",language:"Language",backendTitle:"Backend {backend} · {endpoint} — click to switch",noSessions:"No conversations yet",allPinned:"{count} conversations pinned",showMore:"Show more",loadMore:"Load more",showLess:"Show less",loadingMore:"Loading…",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",searchPlaceholder:"Search sessions and workspaces",search:"Search",searchHint:"↑↓ navigate · ↵ open · Esc close",searchHintSelect:"navigate",searchHintOpen:"open",searchHintClose:"close",searchClear:"Clear search",searchNoResults:"No matching sessions or workspaces",searchEmpty:"No sessions yet",update:"Upgrade",updateAvailable:"v{version} available",updateDownloadingButton:"Downloading… ({percent}%)",updateReady:"v{version} ready",updateDone:"Restart",updateFailed:"Download failed",updateRetry:"Retry",updateDownloadNow:"Download & Update",updateSkip:"Skip This Version",updateRestartNow:"Restart Now",updateRestartLater:"Later",updateReleaseDate:"Released {date}",updateCurrentVersion:"Current v{version}",updateWhatsNew:"What’s new",updateBackground:"Download in Background",updateAutoDownload:"Automatically download and install updates",rcSelectDevice:"Select device",rcCurrentDevice:"Current device: {name}",rcConnectable:"Connectable",rcUnavailable:"Unavailable",rcOnline:"Online",rcOffline:"Offline",rcDevicesLoadFailed:"Failed to load devices"},Fte={title:"Session Management",subtitle:"Manage all sessions. Mark the finished ones as done. Filter by last updated to clean up old sessions in bulk.",back:"Back",filterWorkspace:"Workspace",filterStatus:"Status",filterTime:"Updated",allWorkspaces:"All workspaces",selectAll:"Select all",searchWorkspace:"Search workspaces",noWorkspaceMatch:"No matching workspaces",removeTag:"Remove {name}",statusAll:"All statuses",statusOpen:"Open",statusDone:"Done",timeAll:"Any time",timeDaysAgo:"{n} days ago",query:"Query",reset:"Reset",colStatus:"Status",colTitle:"Title",colWorkspace:"Workspace",colPrompt:"Last prompt",colUpdated:"Updated",colCompleted:"Completed",colActions:"Actions",empty:"No sessions match the current filters",loading:"Loading…",total:"{n} total",pageSize:"{n} / page",prevPage:"Previous page",nextPage:"Next page",selectPageAll:"Select all on this page",batchSelected:"{n} selected",selectAllMatching:"Select all {total} matching sessions",materializingAll:"Selecting…",allMatchingSelected:"All {n} selected",clearSelection:"Clear selection",markDone:"Mark as done",reopen:"Mark as open",markDoneCount:"Mark as done ({n})",reopenCount:"Mark as open ({n})",batchDoneToast:"{n} marked as done",batchReopenedToast:"{n} moved back to open",batchFailedSuffix:", {n} failed",batchDoneFailedNotice:"Could not mark {n} as done",batchReopenFailedNotice:"Could not move {n} back to open",undo:"Undo",open:"Open session",rename:"Rename…",fork:"Fork",export:"Export",moreActions:"More actions"},Bte={switcherTitle:"Switch workspace",switchTooltip:"Switch workspace",eyebrow:"Workspace",branchLabel:"branch: {branch}",noBranch:"no branch",sessionCount:"{count} session | {count} sessions",allWorkspaces:"All workspaces",currentWorkspace:"Current workspace only",addWorkspace:"Add workspace…",noWorkspace:"No workspace",deleteHasSessions:"This workspace still has sessions — archive them before deleting it",removeWorkspaceConfirm:'Remove workspace "{name}"?',swarmEnableTitle:"Enable swarm mode?",swarmEnableConfirm:"The agent will run multiple sub-agents in parallel.",goalStartTitle:"Start goal?",goalStartConfirm:'"{objective}" — the agent will run autonomously toward it.',scopeCurrent:"this workspace",scopeAll:"all workspaces",newInGroup:"New session in this workspace",addTitle:"Add workspace",pathLabel:"Path",pathPlaceholder:"/absolute/path/to/project",recentLabel:"Recent folders",add:"Add",cancel:"Cancel",addHint:"Paste an absolute folder path, or pick a recent one.",addFailed:"Couldn't open this folder. Check the path and try again.",requiredTitle:"Choose a workspace first",requiredMessage:"Pick a folder to use as your workspace before sending a message.",openThisFolder:"Open this folder",up:"Up",browsing:"Browsing…",filterPlaceholder:"Filter subfolders…",searchPlaceholder:"Fuzzy-search under this folder…",searching:"Searching…",pasteToggle:"Enter an absolute path",noFilterMatch:"No subfolders match “{q}”",noSubfolders:"No subfolders here",browseHint:'Click a folder to enter it, then "Open this folder" to add it as a workspace.',attentionTitle:"{count} item needs your attention | {count} items need your attention",awaitingAnswer:"Answer",awaitingAnswerTitle:"A question is waiting for your answer",awaitingPermission:"Approve",awaitingPermissionTitle:"An action is waiting for your approval",aborted:"Failed",abortedTitle:"This session's latest turn ended on an error"},Rte={jumpToLatestAria:"Jump to latest message",backToBottom:"Back to bottom",toc:"Conversation outline",newMessages:"Latest messages",loading:"Loading…",starting:"Starting conversation…",requesting:"Requesting…",working:"Working…",workingRetry:"Model request failed — retrying ({n}/{max})…",emptyWorkspaceHint:"Send in {name}",switchWorkspace:"Switch workspace",recentSessions:"Recent sessions",viewMoreSessions:"View more",sessionAdminTooltip:"View and manage more sessions in Session Management",addWorkspace:"New workspace",moreWorkspaces:"More workspaces ({count})",pickFolder:"Choose folder…",compacting:"Compacting context…",compactedPlain:"Context compacted",compactedAuto:"Context auto-compacted",compactedTokens:" ({before} → {after} tokens)",viewSummary:"View summary",summaryTitle:"Compaction summary",undo:"Undo",undoTooltip:"Undo edit",undoConfirm:"Undo back to this message?",escUndoHintPre:"Press",escUndoHintPost:"again to undo",undone:"Undone — the message is back in the composer",turnInterrupted:"Manually stopped",turnFailed:"Model request failed — this turn was interrupted",turnFailedMaxSteps:"Step limit reached — this turn was interrupted",turnFailedResume:"Continue",turnFailedResumeText:"Continue",yesterday:"Yesterday",loadOlder:"Load earlier messages",loadingOlder:"Loading earlier messages…",widenTable:"Widen table",restoreTableWidth:"Restore default width",wrapCode:"Enable word wrap",unwrapCode:"Disable word wrap",showLineNumbers:"Show line numbers",hideLineNumbers:"Hide line numbers",cron:{fired:"Scheduled reminder fired",missed:"Missed scheduled reminders",job:"job {id}",oneShot:"one-shot",coalesced:"{n} fires coalesced",missedCount:"{n} missed",finalDelivery:"final delivery",expand:"Show more",collapse:"Show less"},fold:{worked:"Worked {duration}",workedUnknown:"Work details"},turnFiles:{titleOne:"{number} file changed",titleOther:"{number} files changed",more:"{number} more files",moreOne:"1 more file",showLess:"Show less",diffUnavailable:"This file’s changes can’t be shown line by line",openFile:"Open file"},goal:{continuation:"Goal continuation"},notification:{kindTask:"Background task",kindSubagent:"Subagent",title:{completed:"{kind} completed",failed:"{kind} failed",timed_out:"{kind} timed out",killed:"{kind} killed",lost:"{kind} lost",info:"{kind} notification"},status:{completed:"completed",failed:"failed",timed_out:"timed out",killed:"killed",lost:"lost",info:"info"},groupTitle:"{n} notifications",copyPath:"Copy path",copied:"Copied",rawPayload:"Raw payload",outputTruncated:"Output truncated — showing the tail",fields:{type:"Type",source:"Source",severity:"Severity"}},userMessage:{expand:"Show more",collapse:"Show less"},search:{placeholder:"Search chat…",searching:"Searching…",results:"{current}/{total} results",resultsCapped:"{current}/{total}+ results",noResults:"No results",previous:"Previous match",next:"Next match",close:"Close search"}},Ote={connectionConnected:"Connected",connectionConnecting:"Connecting…",connectionDisconnected:"Disconnected",ctxTooltip:"Used {used} / {max} tokens ({pct}%)",modelLabel:"Model",permissionManual:"Manual",permissionAuto:"Auto",permissionYolo:"YOLO",permissionManualDesc:"Ask for approval on every tool action",permissionAutoDesc:"Fully autonomous — agent decides everything without asking",permissionYoloDesc:"Auto-approve tool actions, but agent may still ask questions",planLabel:"Plan",planOn:"on",planOff:"off",planTooltip:"Toggle plan mode (research before editing)",workModeDismiss:"Exit mode",goalLabel:"Goal",timeUnitHour:"h",timeUnitMinute:"m",timeUnitSecond:"s",planEmptyArmed:"Plan mode is on — the plan the agent writes will show up here.",planEmptyIdle:"No plan yet — turn plan mode on and the agent’s plan will show up here.",swarmLabel:"Swarm",swarmDismiss:"Turn off Swarm",modeOff:"Off",goalPlaceholder:"What should the agent achieve?",planPlaceholder:"What should the agent plan for?",goalStart:"Start",goalPause:"Pause",goalResume:"Resume",goalCancel:"Cancel",goalCancelConfirm:"Cancel this goal? It cannot be resumed afterwards.",goalCancelConfirmYes:"Yes",goalCancelConfirmNo:"No",goalDoneWhen:"Done when",goalStatusActive:"Active",goalStatusPaused:"Paused",goalStatusBlocked:"Blocked",goalStatusComplete:"Complete",modeNotSupported:"Not supported",thinkingLabel:"Thinking",thinkingTooltip:"Toggle thinking mode",cacheNote:"Note: Switching models or thinking effort invalidates the existing prompt cache. Start a new chat to avoid extra token costs.",starredModels:"Starred",moreModels:"More models…",statusPanelTitle:"Session status",statusPanelClose:"Close",statusModel:"Model",statusThinking:"Thinking",statusPermission:"Permission",statusPlanMode:"Plan mode",statusSwarmMode:"Swarm mode",swarmOn:"on",swarmOff:"off",statusContext:"Context",statusCost:"Cost",statusContextValue:"{used} / {max} ({pct}%)",statusNone:"—",activityRunning:"Running…",activityAwaitingApproval:"Awaiting approval",activityAwaitingQuestion:"Awaiting answer",interrupt:"Interrupt",runningShort:"in progress"},$te={placeholder:"Type a message…",send:"Send ↵",queueLabel:"Queue",placeholderRunning:"Press Enter to queue · Ctrl+S to inject into the running turn",placeholderRunningMobile:"Press Enter to queue",starting:"Sending…",queuePending:"{n} waiting to send",queueSteer:"Send into the running turn",queueDragTitle:"Drag to reorder",editQueued:"Edit (load back into the input)",queuedAttachments:"attachment ×{n}",queuedHasImage:"Contains {n} image(s) — remove only, not editable",attachmentImage:"Image",attachmentVideo:"Video",attachmentOpenUnsupported:"Can’t open {name} — this file type isn’t supported",dropToAttach:"Drop files to attach",remove:"Remove",uploading:"Uploading",uploadFailed:"Upload failed",attachFile:"Attach file",addMenu:"Add",addFiles:"Files",addFilesDesc:"Upload files",addGoalDesc:"Set a goal to keep pursuing",addPlanDesc:"Turn plan mode on",addSwarmDesc:"Turn swarm mode on",noCommands:"No commands",slashSheetTitle:"Commands",slashSearchPlaceholder:"Search commands…",mentionSheetTitle:"Files",mentionSearchPlaceholder:"Search files…",addSlash:"Commands",addSlashDesc:"Built-in commands or skills",addMention:"Mention",addMentionDesc:"Mention files in the project",interrupt:"Interrupt",interruptTitle:"Interrupt current operation",expandTitle:"Expand input for multi-line editing",collapseTitle:"Collapse input",emptyConversationTitle:"Kimi Code",emptyConversation:"No messages yet — type below to start the conversation",upgradeBanner:"Upgrade your Kimi account to use Kimi Code",quickStartPlaceholder:"Type a message to start a new conversation…",thinkingSuffix:" · thinking",thinkingSuffixEffort:" · {level}",noArgCommand:"{cmd} takes no arguments"},Pte={title:"Sign in to Kimi Code",close:"Close (Esc)",regionCnTitle:"Kimi Code",regionCnHint:"Sign in with your kimi.com account",regionOverseasTitle:"Kimi Code",regionOverseasHint:"Sign in with your kimi.ai account",oauthTitle:"Sign in with Kimi",oauthHint:"Finish authorizing in your browser to sign in",starting:"Starting sign-in flow…",openedHint:"Finish authorizing in your browser ({time}).",blockedTitle:"Could not open the login page",blockedHint:"The browser blocked the automatic opening — use the button below to continue authorizing.",notOpened:"Didn't open in your browser?",authorizeInBrowser:"Sign in via browser",orDivider:"or",fallbackPrefix:"On another device? Open ",fallbackSuffix:" and enter the device code:",copy:"Copy",copied:"Copied",copyLink:"Copy link",success:"Signed in",successHint:"Loading, will close automatically…",expiredTitle:"Device code expired",expiredHint:"Please restart the sign-in flow",deniedTitle:"Sign-in cancelled",retry:"Retry",closeBtn:"Close",failedTitle:"Login failed",errorHint:"Please upgrade kimi-code and try again",pollErrorTitle:"Lost connection",pollErrorHint:"Sign-in polling failed repeatedly. Check the kimi-code process and try again.",action:"Sign in",requiredTitle:"Sign in required",requiredMessage:"Sign in to your Kimi account and set up a model to start chatting.",goToLogin:"Sign in",upgradeRequiredTitle:"Upgrade required",upgradeRequiredMessage:"Your account is on the free plan. Upgrade to a membership to start chatting with Kimi models.",pickModelTitle:"Choose a model",pickModelMessage:"Models are available. Pick a default model to start chatting.",pickModelAction:"Choose",configureModelsTitle:"Set up a model",configureModelsMessage:"You're signed in, but no model is available yet. Set up a model to start chatting.",configureModelsGenericMessage:"No model is available yet. Set up a model to start chatting.",configureModelsAction:"Set up",rcSubtitle:"Remote Control session",rcChecking:"Checking sign-in status…",rcLead:"This Remote Control session requires authorization. Sign in with your Kimi account to continue.",rcSuccessHint:"Redirecting…",rcExpiredTitle:"Authorization expired or declined",rcDeniedTitle:"Authorization cancelled",rcStartErrorTitle:"Could not start sign-in",rcSessionErrorTitle:"Could not create your session",rcConnectionErrorHint:"Check your connection and try again.",rcSuccessNoRedirect:"You can close this page now."},zte={title:"Provider management",loading:"Loading providers…",unavailable:"Provider management is not available yet",empty:"No providers yet",status:{connected:"Connected",error:"Error",unconfigured:"Not configured"},keySet:"key set",keyNotSet:"key not set",managedBadge:"OAuth",modelCount:"{count} models",confirmDelete:"Confirm delete?",refresh:"Refresh",delete:"Delete",refreshTitle:"Refresh {type}",deleteTitle:"Delete {type}",loginKimi:"Sign in to Kimi",loginAnthropic:"Sign in to Anthropic",addProvider:"Add provider",added:"Provider added",enterApiKey:"Enter API Key",optional:"Optional",apiKeyRequired:"API Key cannot be empty",fieldId:"Name",fieldType:"API Protocol",types:{kimi:"Kimi",openai:"OpenAI",openai_responses:"OpenAI Responses",anthropic:"Anthropic","google-genai":"Google GenAI",vertexai:"Vertex AI"},fieldApiKey:"API Key",apiKeyManaged:"Signed in with OAuth",apiKeySet:"Set — enter a new key to replace",showApiKey:"Show API key",hideApiKey:"Hide API key",fieldBaseUrl:"Base URL",baseUrlPlaceholder:"https://api.example.com/v1",fieldModels:"Models",colModelId:"Model ID",colContext:"Context",colDisplayName:"Display name",modelIdPlaceholder:"kimi-k3",modelContextPlaceholder:"1048576",modelNamePlaceholder:"Optional",noModels:"No models",addModel:"Add model",removeModel:"Remove model",fieldDefaultModel:"Default model",save:"Save",saved:"Provider saved",deleteProvider:"Delete provider",deleteConfirm:"Delete {id} and its {count} models?",deleteConfirmYes:"Delete",managedHint:"Managed providers sign in and out on the Account tab",unsavedGuard:"You have unsaved changes.",guardStay:"Keep editing",guardDiscard:"Discard",add:"Add",catalog:{sourceCatalog:"From directory",sourceManual:"Manual",sourceRegistry:"Registry",registryHint:"Import providers and models from an api.json registry; re-importing the same URL refreshes it",registryUrlLabel:"Registry URL",registryImported:"{count} providers imported",searchPlaceholder:"Search providers",loading:"Loading directory…",loadError:"Failed to load the directory. Check your network and retry.",retry:"Retry",empty:"No matching providers",rejected:"Not importable",rejectReason:{"unknown-explicit-type":"Unsupported protocol","proprietary-sdk":"Proprietary SDK — cannot be imported","empty-base-url":"Blank base URL","placeholder-base-url":"Endpoint contains an env placeholder"},backToList:"Back to directory",willImport:"{count} models will be imported from the directory",overwriteWarning:"A provider with this name already exists; importing overwrites its config and models",importAction:"Import"},error:{idRequired:"Name cannot be empty",idInvalid:'Name must start with a letter or digit and may only contain letters, digits, "-", "_" and spaces',apiKeyRequired:"API Key cannot be empty",baseUrlRequired:"Base URL cannot be empty",registryUrlRequired:"Registry URL cannot be empty",modelRequired:"Model ID cannot be empty",contextSizeRequired:"Max context size cannot be empty",contextSizeInvalid:"Max context size must be a positive integer"},hintClose:"Close"},jte={dialogLabel:"Switch model",title:"Switch model",close:"Close (Esc)",allTab:"All",providerTabs:"Model providers",searchPlaceholder:"Search models or providers…",clearSearch:"Clear search",loading:"Loading models…",unavailable:"Model list is unavailable",contextSuffix:"{size} ctx",capabilityImageInput:"Image input",capabilityVideoInput:"Video input",capabilityToolUse:"Tool use",capabilityThinking:"Thinking",capabilityAlwaysThinking:"Always thinking",emptyNoModels:"No models available",emptyNoMatch:"No matching models",starTitle:"Add to favorites",unstarTitle:"Remove from favorites",hintNavigate:"Navigate",hintSelect:"Select",hintClose:"Close"},Hte={justNow:"just now"},Wte={title:{shell:"Run command?",diff:"Apply changes?",file:"Write file?",fileop:"File operation?",url:"Fetch URL?",search:"Search?",invocation:"Invoke?",todo:"Update todo?",plan_review:"Ready to build with this plan?",generic:"Approve action?"},subagentBadge:"sub agent · {name}",danger:"Danger: {detail}",searchQueryLabel:"query",searchScope:"scope: {scope}",feedbackPlaceholder:"Explain why you are rejecting… (Enter to submit, Shift+Enter for a new line, Esc to cancel)",feedbackHint:"Enter to submit · Shift+Enter for a new line · Esc to cancel",approve:"Approve",approveSession:"Approve for session",reject:"Reject",feedback:"Feedback",feedbackSubmit:"Reject with feedback",feedbackCancel:"Cancel",approvePlan:"Approve plan",revise:"Revise",rejectAndExit:"Reject and Exit",expandPlan:"Expand",collapsePlan:"Collapse"},qte={back:"‹ Previous question",nextQuestion:"Next question ›",otherDefault:"Other…",submit:"Submit",dismiss:"Dismiss",minimize:"Minimize",expand:"Expand",hint:"↑↓ to choose · Enter to confirm"},Ute={tag:"tasks",summary:"{run} running · {done} done",copy:"Copy",calling:"Calling {label}",fieldTask:"Task",fieldOutput:"Output",fieldProgress:"Progress",fieldResult:"Result",moreLines:"… ({count} more)",copied:"Copied",stop:"stop",defaultDescription:"Background task",dockTasks:"Background tasks",dockBash:"Bash",dockSubagent:"Background Agent",dockTodos:"Todos",todoProgressTitle:"Progress",stateDone:"Done",stateFail:"Failed",stateCancelled:"Cancelled",filterRecent:"Recent",filterRunning:"Running",filterDone:"Done",filterAll:"All",running:"running",closePanel:"Close panel",openPanel:"Open in the side panel",timingRunning:"Running · {time}",timingDone:"Done · {time}",emptyTasks:"No background tasks running",emptyRecent:"No recent tasks",emptyRunning:"No running tasks",emptyDone:"No completed tasks",emptyBash:"No bash tasks running",emptySubagent:"No background agent tasks running",emptyTodo:"No todos yet",openTab:"Open the tasks tab",openDetail:"Open",toBackground:"To background",collapse:"Collapse",expand:"Expand",transcriptLoadError:"Failed to load this sub agent’s conversation.",copyCommand:"Copy command",copyOutput:"Copy output",copyAll:"Copy all"},Vte={panelTitle:"Thinking",streaming:"Thinking…",close:"Close"},Kte={title:"Changes",branch:"branch",aheadTitle:"ahead of remote",behindTitle:"behind remote",fileCountOne:"{number} file",fileCountOther:"{number} files",empty:"No git changes",clean:"Working tree clean, no changes",back:"Back",loading:"Loading diff…",noDiff:"No line changes for this file",emptyFile:"Empty file",list:"List",tree:"Tree",close:"Close"},Zte={},Gte={empty:"Select a file on the left to preview",loading:"Loading…",lineCount:"{count} lines",copy:"Copy",copied:"Copied",copyPath:"Copy path",openInEditor:"Open",reveal:"Reveal",download:"Download",close:"Close",moreActions:"More actions",htmlMode:"HTML preview mode",markdownMode:"Markdown preview mode",preview:"Preview",source:"Source",imageFit:"Image sizing",fit:"Fit",actual:"Actual",pdfNoPreview:"This PDF cannot be embedded here. Download it to view.",imageNoPreview:"Image file · {mime} · {size} · preview unavailable",binaryNoPreview:"Binary file · {mime} · {size} bytes · preview unavailable",unknownType:"unknown type",copyCode:"Copy code",enlargeImage:"Enlarge image",errors:{emptyPath:"File path is empty",unsupportedPath:"URLs and remote paths cannot be previewed",outsideWorkspace:"Only files inside the current workspace can be previewed",isDirectory:"Select a file instead of a directory",notFound:"File no longer exists or was moved",tooLarge:"File is too large to preview",loadFailed:"Unable to read this file"}},Qte={searching:"Searching…",noMatch:"No matches",files:"Files",skills:"Skills",openSkill:"Open skill file",copyPath:"Copy path",attachmentUploadFailed:"Upload failed — remove the attachment, or drop the file in again to retry",attachmentUploadInterrupted:"Upload interrupted — remove the attachment, or drop the file in again to retry",viewFullscreen:"View fullscreen",mediaPreviewLoading:"Loading preview…",mediaPreviewUploading:"Uploading — preview when ready",mediaPreviewUnavailable:"Preview unavailable",stateUploading:"Uploading",stateUploaded:"Uploaded",stateUploadFailed:"Upload failed"},Yte={dismiss:"Close",errorLabel:"Error",noteLabel:"Note",agentWarningFallback:"agent warning",unhandledEvent:"Unhandled event: {type}",agentError:{title:"Model request failed",connection:"Cannot connect to the model service",auth:"Model authentication failed",rateLimit:"Model rate limit reached",overloaded:"Model overloaded",filtered:"Response filtered by the provider",api:"Model API error",contextOverflow:"Context size exceeded"},details:{cause:"Cause",code:"Error code",connection:"Connection",contentType:"Content type",details:"Server details",duration:"Duration",endpoint:"Endpoint",errorName:"Error type",message:"Message",operation:"Operation",phase:"Failure phase",request:"Request",requestId:"Request ID",responsePreview:"Response preview",sessionId:"Session ID",stack:"Stack",status:"HTTP status",timeout:"Timeout",timestamp:"Time"},daemonApiTitle:"Kimi server returned an error",daemonNetworkMessage:"Web did not receive a response from the Kimi server. Check that it is still running, or refresh the page.",daemonNetworkTitle:"Cannot connect to Kimi server",daemonTimeoutMessage:"The Kimi server did not respond within the wait limit. The operation may still complete in the background — refresh later to check, or try again.",daemonTimeoutTitle:"Kimi server response timed out",diagnostics:"Diagnostics",hideDetails:"Hide details",operationFailedMessage:"The last operation did not finish. Try again later.",operationFailedTitle:"Operation failed",sessionSnapshotMessage:"Web could not load the current conversation. Check that the Kimi server is still running, or refresh the page.",sessionSnapshotTitle:"Cannot load current conversation",showDetails:"Show details",copyDetails:"Copy diagnostics",copied:"Copied",wsTitle:"Realtime connection error",goal:{alreadyExists:"This session already has an active goal. Cancel it before starting a new one.",notFound:"No goal to act on — it may have already finished or been cancelled.",statusInvalid:"The current goal state does not allow this action.",notResumable:"This goal cannot be resumed (it may be cancelled or completed).",objectiveTooLong:"The objective is too long. Please shorten it and try again."}},Jte={new:{desc:"Create a new session"},clear:{desc:"Clear and start a new session"},login:{desc:"Sign in to Kimi in the browser"},plan:{desc:"Toggle plan mode on/off"},swarm:{desc:"Toggle swarm mode; /swarm runs a task in swarm"},goal:{desc:"Create/control a goal: /goal , /goal pause{'|'}resume{'|'}cancel"},btw:{desc:"Side chat: /btw asks a forked side session"},compact:{desc:"Compact the conversation history"},fork:{desc:"Fork this session into a new one"},export:{desc:"Download this session and troubleshooting logs as a ZIP",noSession:"Open a session before exporting it.",started:"Exporting session…",done:"Session exported.",tooLarge:"Session data exceeds the export size limit. Export it from a terminal instead: kimi export {sessionId} -o session.zip"},status:{desc:"View session status"},undo:{desc:"Undo the last message"}},Xte={label:{read:"Read",bash:"Run",edit:"Edit",write:"Write",grep:"Search",glob:"Find",ls:"List",web_fetch:"Fetch",search:"Search",todo:"Todo",task:"Task",swarm:"Swarm",ask_user:"Question",plan:"Plan",goal_create:"Start Goal",goal_get:"Read Goal",goal_budget:"Set Goal Budget",goal_update:"Update Goal",waitfor:"Wait"},waitfor:{waitingAny:"Waiting for any background task",waitingTask:"Waiting for {id}",noTasks:"No background tasks running",timedOut:"Timed out",stillRunning:"{count} still running",moreFinished:"+{count} finished during wait",moreRunning:"+{count} more"},swarm:{progress:"{done} / {total}",runningSub:"{count} in progress",doneSub:"{completed} completed · {failed} failed",doneSubWithCancelled:"{completed} completed · {failed} failed · {cancelled} cancelled",phaseQueued:"Queued",phaseWorking:"Working",phaseSuspended:"Suspended",phaseCompleted:"Completed",phaseFailed:"Failed",phaseCancelled:"Cancelled",waiting:"Waiting for subagents…"},chip:{lines:"{count} lines",results:"{count} results",files:"{count} files",edited:"edited",created:"created",todos:"{count} items"},disclosure:{expand:"Expand details",collapse:"Collapse details"},agent:{foreground:"Foreground",background:"Background",status:{running:"Running",ok:"Completed",error:"Failed",cancelled:"Cancelled"}},output:{waiting:"Waiting for output…",empty:"No output",saved:"Saved result"},plan:{review:{pending:"Pending review",approved:"Approved",rejected:"Rejected",cancelled:"Cancelled"},selectedOption:"Selected",pathOnlyHint:"No inline content — open it in the side panel:",feedback:"Feedback"},summary:{inScope:"{value} in {scope}"},goal:{objectiveWithCriterion:"{objective} · {criterion}",status:"Status: {status}",budget:"{value} {unit}",turns:"{value} turns",tokens:"{value} tokens",milliseconds:"{value} ms",seconds:"{value} sec",minutes:"{value} min",hours:"{value} hr"},group:{countOther:"{count} tool call | {count} tool calls",typed:{read:{done:"Read {count} file | Read {count} files"},bash:{done:"Ran {count} command | Ran {count} commands"},grep:{done:"Searched {count} pattern | Searched {count} patterns"},search:{done:"Ran {count} web search | Ran {count} web searches"},glob:{done:"Matched {count} file pattern | Matched {count} file patterns"},ls:{done:"Listed {count} directory | Listed {count} directories"},web_fetch:{done:"Fetched {count} page | Fetched {count} pages"},edit:{done:"Made {count} edit | Made {count} edits"},write:{done:"Wrote {count} file | Wrote {count} files"}}},activity:{failedClause:" ({count} failed)",liveDonePrefix:"",busy:"Working…",doing:{read:"Reading {subject}",bash:"Running {subject}",grep:"Searching {subject}",search:"Searching {subject}",glob:"Matching {subject}",ls:"Listing {subject}",web_fetch:"Fetching {subject}",edit:"Editing {subject}",write:"Writing {subject}"}},ask:{dismissed:"Dismissed",answer:"{count} answer",answers:"{count} answers",answered:"Answered",more:"(+{count} more)",collected:"Collected your answers",question:"{count} question",questions:"{count} questions",freeInput:"(free text)",unanswered:"No answer"}},ene={resizeHandleAria:"Resize sidebar width",resizePreviewAria:"Resize preview panel width",detailPanelAria:"Detail panel"},tne={openSwitcher:"Switch session / workspace",openSettings:"Session settings",settingsTitle:"Settings",groupSession:"Current session",groupApp:"App preferences",groupAccount:"Account",sheetLabel:"Sheet",closeSheet:"Close",tapToCycle:"tap to cycle",running:"running",idle:"idle",sessionCount:"{n} sessions",newSession:"New session",permManualSub:"confirm every tool",permAutoSub:"fully autonomous, never asks",permYoloSub:"auto-approve tools, may still ask",planModeSub:"Plan mode",goalModeSub:"Goal mode",swarmModeSub:"Swarm mode",archivedSessions:"Archived sessions",archivedSessionsSub:"Browse and restore archived sessions",archivedBack:"Back",viewFlat:"Flat",viewGrouped:"By workspace"},nne={colorSchemeLabel:"Appearance",light:"Moon bright",dark:"Moon dark",system:"System"},ine={continue:"Continue",back:"Back",skip:"Skip",welcome:{title:"Welcome to Kimi Code",subtitle:"The AI coding workbench for professional developers",languageLabel:"Language",themeLabel:"Appearance"},login:{title:"Configure Model",subtitle:"Choose the model service that powers Kimi Code. You can change it later in Settings",kimiTitle:"Sign in with Kimi",kimiHint:"Ready out of the box with Kimi membership benefits",kimiCnTitle:"Kimi Code",kimiCnHint:"Sign in with your kimi.com account",kimiOverseasTitle:"Kimi Code",kimiOverseasHint:"Sign in with your kimi.ai account",customProviderTitle:"Add a custom provider",customProviderHint:"Bring your own API key for OpenAI-compatible and other services",loggedInTitle:"Logged in with Kimi",loggedInHint:"Your model service is ready to use",finish:"Finish",skip:"Skip for now"}},one={title:"Settings",internalTest:"Internal Test",close:"Close (Esc)",tabs:{general:"General",agent:"Agent",account:"Account",providers:"Providers",advanced:"Advanced",archived:"Archived",shortcuts:"Hotkeys",plugins:"Plugins",lab:"Lab"},lab:{sidebarTabs:"Multi-tab sidebar",sidebarTabsHint:"The sidebar shows Open / Done / Workspaces tabs"},plugins:{retry:"Retry",builtIn:"Built-in",official:"Official",thirdParty:"Third-party",installed:"Installed",install:"Install",update:"Update",remove:"Remove",enabled:"Enabled",homepage:"Homepage",empty:"No plugins found",hasErrors:"Error",customInstall:"Install custom plugin",customInstallPlaceholder:"https://… or /path/to/plugin",customInstallHint:"Accepts an https zip URL, a GitHub repo URL, or a local directory path.",extensionHintTitle:"One step left: install the browser extension",extensionGuide:"Manual install",dismissHint:"Dismiss",catalogUnavailable:"The marketplace catalog is currently unreachable; installed plugins remain manageable below.",source:{"local-path":"Local","zip-url":"ZIP",github:"GitHub"},counts:{skill:"1 skill | {n} skills",mcp:"1 MCP server | {n} MCP servers",mcpEnabled:"{n} on",hook:"1 hook | {n} hooks",command:"1 command | {n} commands"}},appearance:"Appearance",notifications:"Notifications",notifyEnabled:"System notifications",notifyEnabledHint:"Send a system notification when a turn completes, needs an answer, or needs approval",notifySound:"Notification sound",notifySoundHint:"Play the system sound with notifications",notifyDenied:"Blocked in browser settings",notifyTitle:"Kimi Code · Turn finished",notifyQuestionTitle:"Kimi Code · Needs answer",notifyApprovalTitle:"Kimi Code · Approval required",notifyFallback:"View result",notifyQuestionFallback:"A question is waiting for your answer",notifyApprovalFallback:"A tool needs your approval",account:"Account",signedIn:"Signed in",signedOutHint:"Sign in to view your account and model access",planUsage:{title:"Plan Usage",retry:"Retry",loadFailed:"Failed to load",empty:"No usage data yet",weekLimit:"Weekly limit",genericLimit:"Limit",hourLimit:"{n}h limit",dayLimit:"{n}d limit",minuteLimit:"{n}m limit",resetsIn:"resets in {duration}",resetDone:"reset",durationDay:"{n}d",durationHour:"{n}h",durationMinute:"{n}m",durationSecond:"{n}s",usedPct:"{pct}% used",boosterTitle:"Booster",boosterBalance:"Balance",monthlyUsed:"Used this month",monthlyLimit:"Monthly limit",unlimited:"Unlimited",freeTitle:"Free account",freeHint:"Upgrade to a membership to use Kimi models and see plan usage"},colorSchemeHint:"Choose the app’s light or dark appearance",appIcon:"Dock icon",appIconHint:"Choose the icon shown in the Dock",appIconDefault:"Default",appIconBlack:"Black",uiFontSize:"Font size",uiFontSizeHint:"Adjust interface and message text size",vibrancy:"Frosted sidebar",vibrancyHint:"Use the native macOS frosted-glass material behind the sidebar — turn it off if the translucency is hard to read",languageHint:"Choose the interface language",defaultOpenInApp:"Default open-in app",defaultOpenInAppHint:"App used when opening files and folders from the header menu",openWith:"Open with",agentDefaults:"Agent defaults",saving:"Saving",defaultModel:"Default model",defaultModelHint:"New sessions prefer this model",noDefaultModel:"No default model",defaultPermission:"Default permission",defaultPermissionHint:"Only affects newly-created sessions",defaultThinking:"Thinking by default",defaultThinkingHint:"Whether new sessions start with thinking enabled",defaultPlanMode:"Plan mode by default",defaultPlanModeHint:"Whether new sessions start in plan mode",secondaryModelSection:"Subagents",secondaryModel:"Subagent model",secondaryModelHint:"Model and thinking effort that subagents use by default",secondaryModelEffort:"Thinking effort",noSecondaryModel:"Not set (inherit primary)",secondaryModelEffortAuto:"Model default",telemetry:"Improve product with usage data",telemetryHint:"When on, we collect anonymous interaction data (such as clicks, interruptions, and feature usage) to improve the product experience. You can turn it off at any time.",telemetryRestartHint:"Takes effect after restarting the service.",credentialReady:"Credential configured",credentialMissing:"Missing credential",configUnavailable:"The server did not return config yet. These settings are unavailable.",versionAndUpdates:"Version & updates",appVersion:"App version",appVersionHint:"The running app’s version and build time",checkUpdate:"Check for updates",checkUpdateHint:"Manually check whether a new version is available",checkUpdateBtn:"Check now",updateChecking:"Checking…",updateCheckLatest:"You’re on the latest version",updateCheckAvailable:"Version {version} is available — download it from the update entry in the sidebar",updateCheckUnsupported:"This build does not support update checks",updateCheckFailed:"Check failed. Please try again later.",updateCheckAvailableAuto:"Version {version} found — downloading in the background",updateCheckDownloaded:"Version {version} is ready — restart from the update entry in the sidebar",autoDownloadUpdate:"Auto-download updates",autoDownloadUpdateHint:"Download new versions in the background and install them on the next restart",canaryUpdate:"Update Canary",canaryGhMissing:"GitHub CLI not found — install it first (brew install gh) and sign in",canaryGhUnauthenticated:"GitHub CLI is not signed in — run gh auth login in a terminal first",canaryTrigger:"Repackage Canary",canaryTriggerHint:"Trigger the macOS arm64 build pipeline to produce a new canary build",canaryTriggerBtn:"Repackage Canary",canaryTriggerConfirm:"Click again to confirm",canaryTriggerDone:"Triggered — the build takes about 20–30 minutes",canaryTriggerFailed:"Failed to trigger: {error}",canaryViewWorkflow:"View workflow",canaryImportStable:"Import UI Settings from Stable…",canaryImportStableTitle:"Import UI Settings from Stable",canaryImportStableHint:"Copies the stable app’s UI settings (pinned sessions, appearance, and other localStorage preferences) into Canary, replacing the current ones (the existing copy is backed up as leveldb.bak). Canary restarts to finish the import; the stable app must stay quit.",canaryImportStableBtn:"Import & Restart",canaryImportStableRunning:"The stable app (Kimi Code) is running — quit it first, then import again.",canaryImportStableNoData:"No UI settings data from the stable app was found.",canaryImportStableFailed:"Import failed: {error}",privacy:"Data & privacy",diagnostics:"Diagnostics",messageFolding:"Message folding",turnFolding:"Auto-fold messages",turnFoldingHint:"When a turn ends, the work folds away automatically, leaving only the summary",activityRunFolding:"Tool call summary",activityRunFoldingHint:"During the answer, consecutive tool calls are summarized into one row",build:"Build",serverVersion:"Server version",serverAddress:"Server address",serverAddressHint:"The address of the connected server",serverVersionHint:"The version of the connected service",copyServerVersion:"Copy server version",copyServerAddress:"Copy server address",copied:"Copied",exportLog:"Troubleshooting log",exportLogHint:"Export the troubleshooting log collected by the app",logHint:"Enable with ?debug=1 to capture",exportLogBtn:"Export log",archivedTitle:"Archived sessions",archivedDesc:"Browse archived sessions, see their workspace path, name, and archive time, and restore them to the session list.",archivedSearch:"Search archived sessions",archivedAllWorkspaces:"All workspaces",archivedSortLabel:"Sort by",archivedSortArchived:"Archive time",archivedSortCreated:"Created time",archivedSortName:"Name",archivedRestore:"Restore",archivedEmpty:"No archived sessions yet",archivedNoMatch:"No matching archived sessions",archivedSessionsCount:"{count} sessions",archivedAt:"Archived {time}",archivedLoadMore:"Load more",archivedLoading:"Loading…",archivedLoadingAll:"Loading all archived sessions…"},sne={openInEditor:"Open in editor",openInEditorShort:"Open",openInApp:"Open in {app}",chooseOpenApp:"Choose application",copyAll:"Copy all as Markdown",copyFinalSummary:"Copy final summary",copied:"Copied",lastUsed:"Last used",copyPath:"Copy path",changed:"{n} changed",gitTooltip:"Open Files > Changed",detached:"detached",openPr:"Open pull request",prStatusOpen:"open",prStatusClosed:"closed",prStatusMerged:"merged",prStatusDraft:"draft",prStatusUnknown:"unknown",options:"Options",copySessionId:"Copy session ID",pinSession:"Pin",unpinSession:"Unpin",renameSession:"Rename",forkSession:"Fork session",archiveSession:"Archive",markSessionDone:"Mark as done",sessionDone:"Done",reopenSession:"Mark as open",exportSession:"Export session",devBadge:"Running in development mode"},rne={title:"Side chat",subtitle:"forked from this session",empty:"Ask a quick question on the side — it shares this session’s context.",placeholder:"Ask the side chat…",send:"Send"},lne={comment:"Comment",addToChat:"Add to chat",commentPlaceholder:"Write a comment…",confirm:"Add",copyQuote:"Copy quote",copyComment:"Copy comment",quoteLabel:"Quote"},ane={actions:{summonApp:{label:"Show App Window",desc:"Bring the app window to the foreground from anywhere"},newSession:{label:"New Session",desc:"Start a new session in the current workspace"},searchSessions:{label:"Search Chats",desc:"Open the session search dialog"},archiveSession:{label:"Complete Chat",desc:"Mark the current chat as done right away (find it under Done)"},toggleSideChat:{label:"Toggle Side Chat",desc:"Open or close the /btw side chat"},toggleSidebar:{label:"Toggle Sidebar",desc:"Collapse or expand the session sidebar"},openFolder:{label:"Open Folder",desc:"Add a workspace folder with the native picker"},openInDefaultApp:{label:"Open in App",desc:"Open the workspace in your default editor/terminal"},openSettings:{label:"Open Settings",desc:"Show or hide the settings dialog"},toggleTerminal:{label:"Toggle Terminal",desc:"Show or hide the bottom terminal panel"},openDiffTab:{label:"Open Changes",desc:"Open or activate the workspace changes tab"},sidebarTabOpen:{label:"Open Tab",desc:"Switch to the Open list in the sidebar"},sidebarTabDone:{label:"Done Tab",desc:"Switch to the Done list in the sidebar"},sidebarTabWorkspaces:{label:"Workspaces Tab",desc:"Switch to the workspace directory in the sidebar"},selectPrevSibling:{label:"Previous Item",desc:"Select the previous chat / workspace in the current tab"},selectNextSibling:{label:"Next Item",desc:"Select the next chat / workspace in the current tab"},send:{label:"Send Message",desc:"Send the composer input"},newline:{label:"Newline",desc:"Insert a newline in the composer"}},searchPlaceholder:"Search shortcuts",unassigned:"Unassigned",unassign:"Unassign shortcut",edit:"Edit shortcut",reset:"Reset to default",resetAll:"Reset all to defaults",recording:"Press the new shortcut…",invalid:"This key combination can’t be used as a shortcut",notGlobal:"This key combination can’t be registered as a system-wide shortcut",globalTaken:"This shortcut is already taken by the system or another app",reserved:"Reserved by the system menu",reservedSteer:"Reserved for steer (Ctrl/Cmd+S)",reservedFind:"Reserved for transcript find (Ctrl/Cmd+F)",conflict:"Already used by “{action}”",customBadge:"Custom"},une={panelAria:"Terminal",toolbarAria:"Terminal tabs",resizeAria:"Resize terminal panel height",toggle:"Toggle terminal",open:"Open terminal",close:"Close terminal",newTab:"New terminal",closeTab:"Close terminal",restartTab:"Restart terminal",collapse:"Collapse terminal panel",empty:"No terminal yet — click to start one",processExited:"[process exited]",processExitedWithCode:"[process exited with code {code}]"},cne={tabs:{diff:"Changes",file:"File",turnDiff:"Turn diff",compaction:"Summary",agent:"Subagent",term:"Terminal"},newTab:"New tab",closeTab:"Close tab",expand:"Expand panel",collapse:"Restore panel",hide:"Close right panel",openPanel:"Open right panel",launcherAria:"Quick open"},dne={title:"PR Preview",intro:"Build a pull request or branch of this repo in an isolated worktree and open its UI in a separate window. The first build can take a few minutes.",prLabel:"Preview target",customRefPlaceholder:"PR number, branch, tag, or commit SHA",invalidRef:"Enter a valid branch name, tag, or commit SHA",start:"Start preview",cleanup:"Clean up preview cache",cleanupConfirm:"Delete all cached previews except the one currently being previewed? They will be rebuilt on demand next time.",cleanupDone:"Removed {count} cached preview(s)",fetching:"Fetching {pr}…",installing:"Installing dependencies…",building:"Building renderer…",activeText:"Previewing {pr}",stop:"Exit preview",rebuild:"Fetch & rebuild",errorTitle:"Preview failed",retry:"Retry",stageFetch:"fetch the code",stageInstall:"install dependencies",stageBuild:"build the renderer",stageFailed:"Failed to {stage}",stageHung:"Building the preview hung while trying to {stage} (no output for 5 minutes, killed — check the network/proxy)"},fne={common:Lte,app:Nte,sidebar:Dte,admin:Fte,workspace:Bte,conversation:Rte,status:Ote,composer:$te,login:Pte,providers:zte,model:jte,sessions:Hte,approval:Wte,question:qte,tasks:Ute,thinking:Vte,diff:Kte,fileTree:Zte,filePreview:Gte,mention:Qte,warnings:Yte,commands:Jte,tools:Xte,layout:ene,mobile:tne,theme:nne,onboarding:ine,settings:one,header:sne,sideChat:rne,selection:lne,shortcuts:ane,terminal:une,panel:cne,prPreview:dne},hne={preview:"预览",confirm:"确认",cancel:"取消",close:"关闭",dismiss:"关闭",loading:"加载中",copy:"复制",errorBoundaryTitle:"出错了",errorBoundaryRetry:"重试",asyncLoadFailed:"加载失败,请关闭后重试"},pne={connecting:"连接中…",internalBuildBanner:"仅供内部测试",menuFile:"文件",menuEdit:"编辑",menuView:"视图",menuHelp:"帮助",applicationMenu:"应用菜单"},mne={workspaceMeta:"工作空间 · {branch}",sessionsHeader:"会话",workspaces:"工作区",viewSwitcher:"列表管理",viewGroup:"视图",viewFlat:"平铺列表",viewGrouped:"按工作区分组",sortGroup:"排序",sortManual:"手动排序",sortRecent:"按最近活动",sessionAdmin:"会话管理",collapseAll:"折叠全部工作区",expandAll:"展开全部工作区",newSession:"新建会话",newChat:"新建会话",newWorkspace:"新建工作空间",dropToAddWorkspace:"松开鼠标添加工作区",emptyState:"还没有会话 · 点击 新建会话 开始",options:"选项",rename:"重命名",genTitle:"生成标题",genTitleUnavailable:"无法生成标题:需要登录 Kimi Code 托管账号,且会话中已有消息",setEmoji:"设置 Emoji…",sessionEmojiTitle:"选择 Emoji",removeEmoji:"移除 Emoji",randomEmoji:"随机",searchEmoji:"搜索 Emoji",recentEmojis:"最近使用",noEmojiResults:"没有匹配的 Emoji",emojiGroupFaces:"笑脸与人物",emojiGroupNature:"动物与自然",emojiGroupFood:"美食饮品",emojiGroupActivity:"活动与出行",emojiGroupObjects:"物品与工作",emojiGroupSymbols:"符号与状态",copyPath:"复制路径",copySessionId:"复制 Session ID",copied:"已复制 ✓",copyFailed:"复制失败",archive:"归档",archiveToastUndo:"撤销",archiveToastMid:"或到",archiveToastSettings:"设置",archiveToastTail:"查看已归档的会话",tabOpen:"进行中",tabDone:"已完成",tabWorkspaces:"工作空间",tagOpen:"进行中",tagDone:"已完成",complete:"完成",markDone:"标记为完成",reopen:"恢复进行中",noDoneSessions:"还没有已完成的会话",noOpenSessions:"还没有进行中的会话",completeToastLead:"已完成",reopenToastLead:"已恢复进行中",fork:"分叉会话",export:"导出会话",pin:"置顶",unpin:"取消置顶",lastActive:"最后更新:{time}",pinned:"置顶",collapsePinned:"折叠置顶区",expandPinned:"展开置顶区",resizePinnedAria:"调整置顶区高度",delete:"删除",removeWorkspace:"移除工作区",brand:"Kimi Code",signedIn:"已登录",signOut:"退出登录",notSignedIn:"未登录",signIn:"登录",defaultUserName:"Kimi 用户",upgrade:"升级",upgradeMembership:"会员升级",logoutConfirmTitle:"退出登录",logoutConfirmMessage:"确定要退出当前账号吗?",language:"语言",backendTitle:"后端 {backend} · {endpoint} — 点击切换",noSessions:"暂无对话",allPinned:"有 {count} 条对话被置顶",showMore:"展开更多",loadMore:"加载更多",showLess:"收起",loadingMore:"加载中…",collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏",searchPlaceholder:"搜索会话或工作区",search:"搜索",searchHint:"↑↓ 选择 · ↵ 打开 · Esc 关闭",searchHintSelect:"选择",searchHintOpen:"打开",searchHintClose:"关闭",searchClear:"清除搜索",searchNoResults:"没有匹配的会话或工作区",searchEmpty:"暂无会话",update:"更新",updateAvailable:"发现新版本 v{version}",updateDownloadingButton:"下载中({percent}%)",updateReady:"v{version} 已就绪",updateDone:"重启并更新",updateFailed:"下载失败",updateRetry:"重试",updateDownloadNow:"下载并更新",updateSkip:"本次跳过",updateRestartNow:"立即重启",updateRestartLater:"下次启动",updateReleaseDate:"发布于 {date}",updateCurrentVersion:"当前版本 v{version}",updateWhatsNew:"更新内容",updateBackground:"后台下载",updateAutoDownload:"以后自动下载并安装更新",rcSelectDevice:"选择设备",rcCurrentDevice:"当前设备:{name}",rcConnectable:"可连接",rcUnavailable:"不可用",rcOnline:"在线",rcOffline:"离线",rcDevicesLoadFailed:"设备列表加载失败"},gne={title:"会话管理",subtitle:"管理所有会话,把任务完成的会话标记完成。旧会话按更新时间筛选,即可批量清理。",back:"返回",filterWorkspace:"工作空间",filterStatus:"状态",filterTime:"更新时间",allWorkspaces:"全部工作空间",selectAll:"全选",searchWorkspace:"搜索工作空间",noWorkspaceMatch:"没有匹配的工作空间",removeTag:"移除 {name}",statusAll:"全部状态",statusOpen:"进行中",statusDone:"已完成",timeAll:"全部时间",timeDaysAgo:"{n} 天以前",query:"查询",reset:"重置",colStatus:"状态",colTitle:"会话名",colWorkspace:"工作空间",colPrompt:"最后一条 prompt",colUpdated:"最后更新",colCompleted:"完成时间",colActions:"操作",empty:"没有符合当前筛选条件的会话",loading:"加载中…",total:"共 {n} 条",pageSize:"{n} 条/页",prevPage:"上一页",nextPage:"下一页",selectPageAll:"全选本页",batchSelected:"已选 {n} 项",selectAllMatching:"选中当前条件下的全部 {total} 项",materializingAll:"正在选中…",allMatchingSelected:"已选中全部 {n} 项",clearSelection:"清除选择",markDone:"标记完成",reopen:"恢复进行中",markDoneCount:"标记完成({n})",reopenCount:"恢复进行中({n})",batchDoneToast:"已标记完成 {n} 个会话",batchReopenedToast:"已将 {n} 个会话恢复为进行中",batchFailedSuffix:",{n} 个失败",batchDoneFailedNotice:"{n} 个会话未能标记完成",batchReopenFailedNotice:"{n} 个会话未能恢复为进行中",undo:"撤销",open:"打开会话",rename:"重命名…",fork:"分叉会话",export:"导出",moreActions:"更多操作"},vne={switcherTitle:"切换工作区",switchTooltip:"切换工作区",eyebrow:"工作区",branchLabel:"分支: {branch}",noBranch:"无分支",sessionCount:"{count} 个会话",allWorkspaces:"全部工作区",currentWorkspace:"仅当前工作区",addWorkspace:"添加工作区…",noWorkspace:"暂无工作区",deleteHasSessions:"工作区内还有会话,请先归档这些会话再删除",removeWorkspaceConfirm:"移除工作区「{name}」?",swarmEnableTitle:"启用 swarm 模式?",swarmEnableConfirm:"Agent 将并行运行多个子 agent。",goalStartTitle:"启动 goal?",goalStartConfirm:"「{objective}」——Agent 将自主执行。",scopeCurrent:"当前工作区",scopeAll:"全部工作区",newInGroup:"在此工作区新建会话",addTitle:"添加工作区",pathLabel:"路径",pathPlaceholder:"/项目的绝对路径",recentLabel:"最近的文件夹",add:"添加",cancel:"取消",addHint:"粘贴一个绝对路径,或从最近用过的文件夹中选择。",addFailed:"无法打开此文件夹,请检查路径后重试。",requiredTitle:"请先选择工作空间",requiredMessage:"发送消息前,需要先选择一个文件夹作为工作区。",openThisFolder:"打开此文件夹",up:"上一级",browsing:"加载中…",filterPlaceholder:"过滤子文件夹…",searchPlaceholder:"在此目录下模糊搜索…",searching:"搜索中…",pasteToggle:"直接输入绝对路径",noFilterMatch:"没有匹配「{q}」的子文件夹",noSubfolders:"此处没有子文件夹",browseHint:'点击文件夹进入,再点"打开此文件夹"将其添加为工作区。',attentionTitle:"{count} 项待处理",awaitingAnswer:"待回答",awaitingAnswerTitle:"有提问等待你回答",awaitingPermission:"待授权",awaitingPermissionTitle:"有操作等待你授权",aborted:"失败",abortedTitle:"此会话的上一轮对话因错误中断"},yne={jumpToLatestAria:"跳到最新消息",backToBottom:"回到底部",toc:"对话目录",newMessages:"最新消息",loading:"加载中…",starting:"正在创建对话…",requesting:"请求中…",working:"工作中…",workingRetry:"模型请求失败,正在重试(第 {n}/{max} 次)…",emptyWorkspaceHint:"在 {name} 中发送",switchWorkspace:"切换工作区",recentSessions:"最近会话",viewMoreSessions:"查看更多",sessionAdminTooltip:"在会话管理页面查看并管理更多会话",addWorkspace:"添加工作区",moreWorkspaces:"更多工作区 ({count})",pickFolder:"选择文件夹…",compacting:"正在压缩上下文…",compactedPlain:"上下文已压缩",compactedAuto:"已自动压缩上下文",compactedTokens:"({before} → {after} tokens)",viewSummary:"查看摘要",summaryTitle:"压缩摘要",undo:"撤销",undoTooltip:"撤回编辑",undoConfirm:"撤回到这条消息?",escUndoHintPre:"再按",escUndoHintPost:"撤销本条",undone:"已撤销,原文已放回输入框",turnInterrupted:"已手动终止",turnFailed:"模型请求失败,本轮对话已中断",turnFailedMaxSteps:"达到本轮步数上限,对话已中断",turnFailedResume:"继续",turnFailedResumeText:"继续",yesterday:"昨天",loadOlder:"加载更早的消息",loadingOlder:"正在加载更早的消息…",widenTable:"加宽表格",restoreTableWidth:"恢复默认宽度",wrapCode:"开启自动换行",unwrapCode:"关闭自动换行",showLineNumbers:"显示行号",hideLineNumbers:"隐藏行号",cron:{fired:"定时任务已触发",missed:"错过的定时提醒",job:"任务 {id}",oneShot:"单次",coalesced:"已合并 {n} 次触发",missedCount:"错过 {n} 次",finalDelivery:"最后一次投递",expand:"展开",collapse:"收起"},fold:{worked:"已工作 {duration}",workedUnknown:"工作过程"},turnFiles:{titleOne:"{number} 个文件已修改",titleOther:"{number} 个文件已修改",more:"还有 {number} 个文件",moreOne:"还有 1 个文件",showLess:"收起",diffUnavailable:"此文件的改动无法逐项展示",openFile:"打开文件"},goal:{continuation:"目标续跑"},notification:{kindTask:"后台任务",kindSubagent:"子代理",title:{completed:"{kind}完成",failed:"{kind}失败",timed_out:"{kind}超时",killed:"{kind}被终止",lost:"{kind}丢失",info:"{kind}通知"},status:{completed:"完成",failed:"失败",timed_out:"超时",killed:"已终止",lost:"丢失",info:"信息"},groupTitle:"{n} 条通知",copyPath:"复制路径",copied:"已复制",rawPayload:"原始 payload",outputTruncated:"输出已截断,仅显示末尾",fields:{type:"类型",source:"来源",severity:"严重度"}},userMessage:{expand:"展开",collapse:"收起"},search:{placeholder:"搜索对话…",searching:"搜索中…",results:"{current}/{total} 条结果",resultsCapped:"{current}/{total}+ 条结果",noResults:"无结果",previous:"上一个匹配",next:"下一个匹配",close:"关闭搜索"}},kne={connectionConnected:"已连接",connectionConnecting:"连接中…",connectionDisconnected:"未连接",ctxTooltip:"使用 {used} / {max} tokens ({pct}%)",modelLabel:"模型",permissionManual:"逐条确认",permissionAuto:"完全自主",permissionYolo:"自动通过",permissionManualDesc:"每个工具操作都需要你手动确认",permissionAutoDesc:"完全自主运行,智能体自己做决定,不再询问",permissionYoloDesc:"自动批准工具操作,但遇到关键问题仍会询问",planLabel:"计划",planOn:"开",planOff:"关",planTooltip:"切换计划模式(先调研再修改)",workModeDismiss:"退出模式",goalLabel:"目标",timeUnitHour:"小时",timeUnitMinute:"分",timeUnitSecond:"秒",planEmptyArmed:"计划模式已开启,智能体写出计划后会显示在这里",planEmptyIdle:"还没有计划——开启计划模式后,智能体写出的计划会显示在这里",swarmLabel:"Swarm",swarmDismiss:"关闭 Swarm",modeOff:"未启用",goalPlaceholder:"让智能体完成什么目标?",planPlaceholder:"让智能体先规划什么?",goalStart:"开始",goalPause:"暂停",goalResume:"继续",goalCancel:"取消",goalCancelConfirm:"是否需要取消当前目标?取消后将无法恢复。",goalCancelConfirmYes:"是",goalCancelConfirmNo:"否",goalDoneWhen:"完成条件",goalStatusActive:"进行中",goalStatusPaused:"已暂停",goalStatusBlocked:"已阻塞",goalStatusComplete:"已完成",modeNotSupported:"暂不支持",thinkingLabel:"思考",thinkingTooltip:"切换思考模式",cacheNote:"提示:切换模型或思考程度会使已有的提示词缓存失效。建议新建会话,避免额外的 token 消耗。",starredModels:"收藏",moreModels:"更多模型…",statusPanelTitle:"会话状态",statusPanelClose:"关闭",statusModel:"模型",statusThinking:"思考强度",statusPermission:"权限",statusPlanMode:"计划模式",statusSwarmMode:"Swarm 模式",swarmOn:"开",swarmOff:"关",statusContext:"上下文",statusCost:"花费",statusContextValue:"{used} / {max} ({pct}%)",statusNone:"—",activityRunning:"运行中…",activityAwaitingApproval:"等待批准",activityAwaitingQuestion:"等待回答",interrupt:"中断",runningShort:"进行中"},bne={placeholder:"输入消息…",send:"发送 ↵",queueLabel:"队列",placeholderRunning:"输入会加入队列 · Ctrl+S 立即插入运行中的回合",placeholderRunningMobile:"输入会加入队列",starting:"正在发送…",queuePending:"{n} 个任务等待发送",queueSteer:"立即发送到当前回合",queueDragTitle:"拖拽排序",editQueued:"编辑(载入到输入框)",queuedAttachments:"附件 ×{n}",queuedHasImage:"包含 {n} 张图片 — 只能移除,不能编辑",attachmentImage:"图片",attachmentVideo:"视频",attachmentOpenUnsupported:"无法打开 {name}:暂不支持此文件类型",dropToAttach:"松开鼠标添加附件",remove:"移除",uploading:"上传中",uploadFailed:"上传失败",attachFile:"添加附件",addMenu:"添加",addFiles:"文件",addFilesDesc:"上传文件",addGoalDesc:"设定目标并持续推进",addPlanDesc:"启用计划模式",addSwarmDesc:"启用 swarm 模式",noCommands:"无匹配命令",slashSheetTitle:"命令",slashSearchPlaceholder:"搜索命令…",mentionSheetTitle:"文件",mentionSearchPlaceholder:"搜索文件…",addSlash:"命令",addSlashDesc:"内置命令或技能",addMention:"提及",addMentionDesc:"提及项目中的文件",interrupt:"中断",interruptTitle:"中断当前操作",expandTitle:"展开输入框进行多行编辑",collapseTitle:"收起输入框",emptyConversationTitle:"Kimi Code",emptyConversation:"还没有消息 —— 在下方输入开始对话",upgradeBanner:"升级你的 Kimi 账户来使用 Kimi Code",quickStartPlaceholder:"输入消息开始新对话…",thinkingSuffix:" · 思考",thinkingSuffixEffort:" · {level}",noArgCommand:"{cmd} 不接受任何参数"},wne={title:"登录 Kimi Code",close:"关闭 (Esc)",regionCnTitle:"Kimi Code",regionCnHint:"使用 kimi.com 账号登录",regionOverseasTitle:"Kimi Code",regionOverseasHint:"使用 kimi.ai 账号登录",oauthTitle:"登录 Kimi 账号",oauthHint:"在浏览器中完成授权即可登录",starting:"正在启动登录流程…",openedHint:"请在浏览器中完成授权({time})",blockedTitle:"未能自动打开登录页",blockedHint:"浏览器拦截了自动打开,请点击下方按钮继续完成授权。",notOpened:"没有自动打开浏览器?",authorizeInBrowser:"在浏览器中登录",orDivider:"或者",fallbackPrefix:"换个设备?在浏览器打开 ",fallbackSuffix:" 输入设备码:",copy:"复制",copied:"已复制",copyLink:"复制链接",success:"已登录",successHint:"正在加载,稍后自动关闭…",expiredTitle:"设备码已过期",expiredHint:"请重新开始登录流程",deniedTitle:"登录已取消",retry:"重试",closeBtn:"关闭",failedTitle:"登录失败",errorHint:"请升级 kimi-code 后重试",pollErrorTitle:"连接已断开",pollErrorHint:"登录轮询连续失败,请检查 kimi-code 进程后重试",action:"登录",requiredTitle:"请先登录",requiredMessage:"登录 Kimi 账号并配置模型后,才能开始对话。",goToLogin:"去登录",upgradeRequiredTitle:"请升级会员",upgradeRequiredMessage:"当前为免费账户,升级会员后即可使用 Kimi 模型开始对话。",pickModelTitle:"请选择模型",pickModelMessage:"已有可用模型,选择一个默认模型后即可开始对话。",pickModelAction:"选择模型",configureModelsTitle:"请配置模型",configureModelsMessage:"账号已登录,但还没有可用模型。配置模型后即可开始对话。",configureModelsGenericMessage:"还没有可用模型。配置模型后即可开始对话。",configureModelsAction:"去配置",rcSubtitle:"远程控制会话",rcChecking:"正在检查登录状态…",rcLead:"远程控制功能需要登录后使用。使用 Kimi 账号登录即可继续。",rcSuccessHint:"正在跳转…",rcExpiredTitle:"授权已过期或被取消",rcDeniedTitle:"已取消授权",rcStartErrorTitle:"无法开始登录",rcSessionErrorTitle:"无法创建登录会话",rcConnectionErrorHint:"请检查网络连接后重试。",rcSuccessNoRedirect:"现在可以关闭本页了。"},Cne={title:"供应商管理",loading:"加载提供商中…",unavailable:"暂不支持提供商管理",empty:"暂无提供商",status:{connected:"已连接",error:"错误",unconfigured:"未配置"},keySet:"key 已设置",keyNotSet:"未设置 key",managedBadge:"OAuth",modelCount:"{count} 个模型",confirmDelete:"确认删除?",refresh:"刷新",delete:"删除",refreshTitle:"刷新 {type}",deleteTitle:"删除 {type}",loginKimi:"登录 Kimi",loginAnthropic:"登录 Anthropic",addProvider:"添加供应商",added:"已添加",enterApiKey:"填写 API Key",optional:"可选",apiKeyRequired:"API Key 不能为空",fieldId:"名称",fieldType:"API 协议",types:{kimi:"Kimi",openai:"OpenAI",openai_responses:"OpenAI Responses",anthropic:"Anthropic","google-genai":"Google GenAI",vertexai:"Vertex AI"},fieldApiKey:"API Key",apiKeyManaged:"OAuth 托管登录",apiKeySet:"已设置,输入以更换",showApiKey:"显示 API Key",hideApiKey:"隐藏 API Key",fieldBaseUrl:"Base URL",baseUrlPlaceholder:"https://api.example.com/v1",fieldModels:"模型",colModelId:"模型 ID",colContext:"上下文",colDisplayName:"显示名",modelIdPlaceholder:"kimi-k3",modelContextPlaceholder:"1048576",modelNamePlaceholder:"可选",noModels:"暂无模型",addModel:"添加模型",removeModel:"移除模型",fieldDefaultModel:"默认模型",save:"保存",saved:"已保存",deleteProvider:"删除供应商",deleteConfirm:"确认删除 {id} 及其 {count} 个模型?",deleteConfirmYes:"确认删除",managedHint:"托管供应商在账户页登录 / 登出",unsavedGuard:"有未保存的修改。",guardStay:"继续编辑",guardDiscard:"丢弃",add:"添加",catalog:{sourceCatalog:"从目录添加",sourceManual:"手动添加",sourceRegistry:"注册表",registryHint:"从 api.json 注册表导入供应商与模型;同一 URL 重复导入即为刷新",registryUrlLabel:"注册表 URL",registryImported:"已导入 {count} 个供应商",searchPlaceholder:"搜索供应商",loading:"加载目录中…",loadError:"目录加载失败,请检查网络后重试",retry:"重试",empty:"没有匹配的供应商",rejected:"不可导入",rejectReason:{"unknown-explicit-type":"协议不受支持","proprietary-sdk":"私有协议,无法导入","empty-base-url":"Base URL 为空","placeholder-base-url":"端点包含环境变量占位符"},backToList:"返回目录列表",willImport:"将从目录导入 {count} 个模型",overwriteWarning:"已存在同名供应商,导入将覆盖其配置与模型",importAction:"导入"},error:{idRequired:"名称不能为空",idInvalid:'名称需以字母或数字开头,只能包含字母、数字、"-"、"_" 和空格',apiKeyRequired:"API Key 不能为空",baseUrlRequired:"Base URL 不能为空",registryUrlRequired:"注册表 URL 不能为空",modelRequired:"模型 ID 不能为空",contextSizeRequired:"上下文长度不能为空",contextSizeInvalid:"上下文长度需为正整数"},hintClose:"关闭"},Ane={dialogLabel:"切换模型",title:"切换模型",close:"关闭 (Esc)",allTab:"全部",providerTabs:"模型提供商",searchPlaceholder:"搜索模型或提供商…",clearSearch:"清除搜索",loading:"加载模型中…",unavailable:"暂无可用模型列表",contextSuffix:"{size} ctx",capabilityImageInput:"图片输入",capabilityVideoInput:"视频输入",capabilityToolUse:"工具调用",capabilityThinking:"思考",capabilityAlwaysThinking:"始终思考",emptyNoModels:"暂无可用模型",emptyNoMatch:"无匹配模型",starTitle:"添加到收藏",unstarTitle:"取消收藏",hintNavigate:"导航",hintSelect:"选择",hintClose:"关闭"},xne={justNow:"刚刚"},Sne={title:{shell:"运行命令?",diff:"应用修改?",file:"写入文件?",fileop:"文件操作?",url:"抓取 URL?",search:"搜索?",invocation:"调用?",todo:"更新 todo?",plan_review:"按这份 plan 开始实现?",generic:"批准操作?"},subagentBadge:"子 agent · {name}",danger:"危险: {detail}",searchQueryLabel:"查询",searchScope:"范围:{scope}",feedbackPlaceholder:"说明拒绝原因… (Enter 提交, Shift+Enter 换行, Esc 取消)",feedbackHint:"Enter 提交 · Shift+Enter 换行 · Esc 取消",approve:"批准",approveSession:"本会话内批准",reject:"拒绝",feedback:"反馈",feedbackSubmit:"提交并拒绝",feedbackCancel:"取消",approvePlan:"批准 plan",revise:"修改",rejectAndExit:"拒绝并退出",expandPlan:"放大",collapsePlan:"还原"},_ne={back:"‹ 上一题",nextQuestion:"下一题 ›",otherDefault:"其他…",submit:"提交",dismiss:"放弃",minimize:"最小化",expand:"展开",hint:"↑↓ 选择 · Enter 确认"},Mne={tag:"任务",summary:"{run} 运行中 · {done} 完成",copy:"复制",calling:"调用 {label}",fieldTask:"任务",fieldOutput:"输出",fieldProgress:"进度",fieldResult:"结果",moreLines:"…(还有 {count} 行)",copied:"已复制",stop:"停止",defaultDescription:"后台任务",dockTasks:"后台任务",dockBash:"后台 Bash",dockSubagent:"后台 Agent",dockTodos:"待办",todoProgressTitle:"当前进度",stateDone:"完成",stateFail:"失败",stateCancelled:"已取消",filterRecent:"最近",filterRunning:"进行中",filterDone:"已完成",filterAll:"全部",running:"运行中",closePanel:"关闭面板",openPanel:"在侧边栏打开",timingRunning:"运行中 · {time}",timingDone:"完成 · {time}",emptyTasks:"暂无后台任务",emptyRecent:"暂无最近任务",emptyRunning:"暂无运行中的任务",emptyDone:"暂无已完成的任务",emptyBash:"暂无后台 Bash 任务",emptySubagent:"暂无后台 Agent 任务",emptyTodo:"暂无待办事项",openTab:"查看全部后台任务",openDetail:"查看",toBackground:"转后台",collapse:"折叠",expand:"展开",transcriptLoadError:"无法加载这个子 Agent 的对话。",copyCommand:"复制命令",copyOutput:"复制输出",copyAll:"复制全部"},Ine={panelTitle:"思考过程",streaming:"思考中…",close:"关闭"},Tne={title:"改动",branch:"分支",aheadTitle:"领先远程",behindTitle:"落后远程",fileCountOne:"{number} 个文件",fileCountOther:"{number} 个文件",empty:"无 git 改动",clean:"工作区干净,无改动",back:"返回",loading:"正在加载 diff…",noDiff:"该文件没有行级改动",emptyFile:"空文件",list:"列表",tree:"树形",close:"关闭"},Ene={},Lne={empty:"选择左侧文件预览",loading:"加载中…",lineCount:"{count} 行",copy:"复制",copied:"已复制",copyPath:"复制路径",openInEditor:"打开",reveal:"显示",download:"下载",close:"关闭",moreActions:"更多操作",htmlMode:"HTML 预览模式",markdownMode:"Markdown 预览模式",preview:"预览",source:"源码",imageFit:"图片缩放",fit:"适应",actual:"原始",pdfNoPreview:"无法内嵌预览此 PDF,可以下载后查看",imageNoPreview:"图片文件 · {mime} · {size} · 暂不预览",binaryNoPreview:"二进制文件 · {mime} · {size} 字节 · 暂不预览",unknownType:"未知类型",copyCode:"复制代码",enlargeImage:"放大图片",errors:{emptyPath:"文件路径为空",unsupportedPath:"不支持预览 URL 或远程路径",outsideWorkspace:"只能预览当前 workspace 内的文件",isDirectory:"请选择具体文件,而不是目录",notFound:"文件不存在或已被移动",tooLarge:"文件过大,暂不支持预览",loadFailed:"无法读取这个文件"}},Nne={searching:"搜索中…",noMatch:"无匹配",files:"文件",skills:"技能",openSkill:"打开技能文件",copyPath:"复制路径",attachmentUploadFailed:"上传失败——删除该附件,或重新拖入文件重试",attachmentUploadInterrupted:"上传中断——删除该附件,或重新拖入文件重试",viewFullscreen:"全屏查看",mediaPreviewLoading:"预览加载中…",mediaPreviewUploading:"上传中,完成后可预览",mediaPreviewUnavailable:"预览不可用",stateUploading:"上传中",stateUploaded:"已上传",stateUploadFailed:"上传失败"},Dne={dismiss:"关闭",errorLabel:"错误",noteLabel:"提示",agentWarningFallback:"agent 警告",unhandledEvent:"未处理的事件:{type}",agentError:{title:"模型请求失败",connection:"无法连接模型服务",auth:"模型认证失败",rateLimit:"模型请求被限流",overloaded:"模型服务过载",filtered:"响应被提供方过滤",api:"模型接口返回错误",contextOverflow:"上下文超出模型限制"},details:{cause:"底层原因",code:"错误码",connection:"连接状态",contentType:"响应类型",details:"服务端详情",duration:"耗时",endpoint:"请求地址",errorName:"错误类型",message:"错误信息",operation:"操作",phase:"失败阶段",request:"请求",requestId:"Request ID",responsePreview:"响应预览",sessionId:"Session ID",stack:"堆栈",status:"HTTP 状态",timeout:"超时设置",timestamp:"时间"},daemonApiTitle:"Kimi 服务器返回错误",daemonNetworkMessage:"Web 没有拿到 Kimi 服务器的响应。请确认它仍在运行,或刷新页面重试。",daemonNetworkTitle:"无法连接到 Kimi 服务器",daemonTimeoutMessage:"Kimi 服务器在等待时限内没有响应。操作可能仍在后台执行,请稍后刷新确认结果,或重试。",daemonTimeoutTitle:"Kimi 服务器响应超时",diagnostics:"诊断信息",hideDetails:"收起详情",operationFailedMessage:"刚才的操作没有完成,请稍后重试。",operationFailedTitle:"操作失败",sessionSnapshotMessage:"Web 没能加载当前会话内容。请确认 Kimi 服务器仍在运行,或刷新页面重试。",sessionSnapshotTitle:"无法加载当前会话内容",showDetails:"查看详情",copyDetails:"复制诊断信息",copied:"已复制",wsTitle:"实时连接出错",goal:{alreadyExists:"当前会话已有一个进行中的目标,请先取消它再创建新目标。",notFound:"没有找到可操作的目标,可能它已经结束或被取消。",statusInvalid:"当前目标状态不支持这个操作。",notResumable:"这个目标无法恢复(可能已取消或已完成)。",objectiveTooLong:"目标描述太长了,请精简后重试。"}},Fne={new:{desc:"创建新会话"},clear:{desc:"清空并新建会话"},login:{desc:"在浏览器中登录 Kimi"},plan:{desc:"切换计划模式 开/关"},swarm:{desc:"切换 swarm 模式;/swarm <任务> 直接在 swarm 下执行"},goal:{desc:"创建/控制目标:/goal <目标>、/goal pause{'|'}resume{'|'}cancel"},btw:{desc:"侧边聊天:/btw <问题> 向 fork 的侧边会话提问"},compact:{desc:"压缩会话历史"},fork:{desc:"把当前会话 fork 出一个新会话"},export:{desc:"将当前会话和排障日志下载为 ZIP 压缩包",noSession:"请先打开一个会话再导出。",started:"正在导出会话…",done:"会话导出完成。",tooLarge:"会话数据超过导出大小限制,可在终端用 CLI 导出:kimi export {sessionId} -o session.zip"},status:{desc:"查看会话状态"},undo:{desc:"撤销上一条消息"}},Bne={label:{read:"读取",bash:"运行",edit:"编辑",write:"写入",grep:"搜索",glob:"查找",ls:"列目录",web_fetch:"抓取",search:"搜索",todo:"待办",task:"任务",swarm:"Swarm",ask_user:"提问",plan:"计划",goal_create:"启动目标",goal_get:"读取目标",goal_budget:"设置目标预算",goal_update:"更新目标",waitfor:"等待"},waitfor:{waitingAny:"等待任一后台任务",waitingTask:"等待 {id}",noTasks:"没有后台任务在运行",timedOut:"等待超时",stillRunning:"{count} 个仍在运行",moreFinished:"另有 {count} 个在等待期间完成",moreRunning:"还有 {count} 个"},swarm:{progress:"{done} / {total}",runningSub:"{count} 个进行中",doneSub:"完成 {completed} · 失败 {failed}",doneSubWithCancelled:"完成 {completed} · 失败 {failed} · 已取消 {cancelled}",phaseQueued:"排队",phaseWorking:"运行中",phaseSuspended:"暂停",phaseCompleted:"完成",phaseFailed:"失败",phaseCancelled:"已取消",waiting:"等待子任务加入…"},chip:{lines:"{count} 行",results:"{count} 结果",files:"{count} 个文件",edited:"已编辑",created:"已创建",todos:"{count} 项"},disclosure:{expand:"展开详情",collapse:"收起详情"},agent:{foreground:"前台",background:"后台",status:{running:"运行中",ok:"已完成",error:"失败",cancelled:"已取消"}},output:{waiting:"等待输出…",empty:"(无输出)",saved:"已保存的结果"},plan:{review:{pending:"待确认",approved:"已通过",rejected:"已拒绝",cancelled:"已取消"},selectedOption:"已选择",pathOnlyHint:"该计划未保存内联内容,可在侧边栏打开:",feedback:"反馈"},summary:{inScope:"{value} 在 {scope} 中"},goal:{objectiveWithCriterion:"{objective} · {criterion}",status:"状态:{status}",budget:"{value} {unit}",turns:"{value} 轮",tokens:"{value} token",milliseconds:"{value} 毫秒",seconds:"{value} 秒",minutes:"{value} 分钟",hours:"{value} 小时"},group:{countOther:"执行了 {count} 次工具调用",typed:{read:{done:"读取了 {count} 个文件"},bash:{done:"运行了 {count} 条命令"},grep:{done:"搜索了 {count} 个模式"},search:{done:"网络搜索了 {count} 次"},glob:{done:"找了 {count} 次文件"},ls:{done:"列出了 {count} 个目录"},web_fetch:{done:"抓取了 {count} 个页面"},edit:{done:"编辑了 {count} 处"},write:{done:"写入了 {count} 个文件"}}},activity:{failedClause:"({count} 失败)",liveDonePrefix:"已",busy:"正在执行…",doing:{read:"正在读取 {subject}",bash:"正在运行 {subject}",grep:"正在搜索 {subject}",search:"正在搜索 {subject}",glob:"正在匹配 {subject}",ls:"正在列出 {subject}",web_fetch:"正在抓取 {subject}",edit:"正在编辑 {subject}",write:"正在写入 {subject}"}},ask:{dismissed:"已忽略",answer:"{count} 个回答",answers:"{count} 个回答",answered:"已回答",more:"(还有 {count} 个)",collected:"已收集回答",question:"{count} 个问题",questions:"{count} 个问题",freeInput:"(自由输入)",unanswered:"未作答"}},Rne={resizeHandleAria:"调整侧栏宽度",resizePreviewAria:"调整预览面板宽度",detailPanelAria:"详情面板"},One={openSwitcher:"切换会话 / 工作区",openSettings:"会话设置",settingsTitle:"设置",groupSession:"当前会话",groupApp:"应用偏好",groupAccount:"账号",sheetLabel:"面板",closeSheet:"关闭",tapToCycle:"点击切换",running:"运行中",idle:"空闲",sessionCount:"{n} 个会话",newSession:"新建会话",permManualSub:"每个工具都确认",permAutoSub:"完全自主,不再提问",permYoloSub:"自动批准工具,仍可能提问",planModeSub:"计划模式",goalModeSub:"目标模式",swarmModeSub:"Swarm 模式",archivedSessions:"已归档会话",archivedSessionsSub:"查看并恢复已归档会话",archivedBack:"返回",viewFlat:"平铺",viewGrouped:"按工作区"},$ne={colorSchemeLabel:"外观",light:"月之亮面",dark:"月之暗面",system:"跟随系统"},Pne={continue:"继续",back:"上一步",skip:"跳过",welcome:{title:"欢迎使用 Kimi Code",subtitle:"为专业开发者打造的 AI 编程工作台",languageLabel:"语言",themeLabel:"外观"},login:{title:"选择配置模型",subtitle:"选择驱动 Kimi Code 的模型服务,之后可在「设置」中更改。",kimiTitle:"登录 Kimi 账号",kimiHint:"使用 Kimi 会员权益,开箱即用",kimiCnTitle:"Kimi Code",kimiCnHint:"使用 kimi.com 账号登录",kimiOverseasTitle:"Kimi Code",kimiOverseasHint:"使用 kimi.ai 账号登录",customProviderTitle:"添加自定义供应商",customProviderHint:"使用自己的 API Key,接入 OpenAI 兼容等模型服务",loggedInTitle:"已登录 Kimi 账号",loggedInHint:"模型服务已就绪,可以开始使用",finish:"完成",skip:"跳过,稍后再说"}},zne={title:"设置",internalTest:"内部测试",close:"关闭 (Esc)",tabs:{general:"通用",agent:"Agent",account:"账户",providers:"供应商",advanced:"高级",archived:"已归档",shortcuts:"快捷键",plugins:"插件",lab:"实验室"},lab:{sidebarTabs:"多标签页侧边栏",sidebarTabsHint:"侧边栏显示「进行中 / 已完成 / 工作空间」三个标签页"},plugins:{retry:"重试",builtIn:"内置",official:"官方",thirdParty:"第三方",installed:"已安装",install:"安装",update:"更新",remove:"移除",enabled:"启用",homepage:"主页",empty:"没有找到插件",hasErrors:"错误",customInstall:"安装自定义插件",customInstallPlaceholder:"https://… 或 /本地/目录",customInstallHint:"支持 https zip 链接、GitHub 仓库地址或本地目录路径。",extensionHintTitle:"还差一步:安装浏览器扩展",extensionGuide:"手动安装",dismissHint:"知道了",catalogUnavailable:"插件市场目录暂时不可达;已安装的插件仍可正常管理。",source:{"local-path":"本地","zip-url":"ZIP",github:"GitHub"},counts:{skill:"{n} 个技能",mcp:"{n} 个 MCP 服务",mcpEnabled:"启用 {n} 个",hook:"{n} 个钩子",command:"{n} 个命令"}},appearance:"外观",notifications:"通知",notifyEnabled:"系统通知",notifyEnabledHint:"回合完成、待回答或待审批时发送系统通知",notifySound:"通知提示音",notifySoundHint:"系统通知随附提示音",notifyDenied:"已在浏览器设置中被阻止",notifyTitle:"Kimi Code · 回合完成",notifyQuestionTitle:"Kimi Code · 待回答",notifyApprovalTitle:"Kimi Code · 等待审批",notifyFallback:"点击查看结果",notifyQuestionFallback:"有提问等待你回答",notifyApprovalFallback:"有工具等待你审批",account:"账户",signedIn:"已登录",signedOutHint:"登录后可查看账户和模型权益",planUsage:{title:"套餐用量",retry:"重试",loadFailed:"加载失败",empty:"暂无用量数据",weekLimit:"每周限额",genericLimit:"限额",hourLimit:"{n} 小时限额",dayLimit:"{n} 天限额",minuteLimit:"{n} 分钟限额",resetsIn:"{duration}后重置",resetDone:"已重置",durationDay:"{n} 天",durationHour:"{n} 小时",durationMinute:"{n} 分钟",durationSecond:"{n} 秒",usedPct:"已使用 {pct}%",boosterTitle:"加油包",boosterBalance:"余额",monthlyUsed:"本月已用",monthlyLimit:"每月上限",unlimited:"不限",freeTitle:"免费账户",freeHint:"升级会员后即可使用 Kimi 模型并查看套餐用量"},colorSchemeHint:"选择应用的明暗外观",appIcon:"程序坞图标",appIconHint:"选择程序坞中显示的图标",appIconDefault:"默认",appIconBlack:"黑色",uiFontSize:"字体大小",uiFontSizeHint:"调整界面和消息文字大小",vibrancy:"毛玻璃侧栏",vibrancyHint:"在侧栏使用 macOS 原生毛玻璃材质——如果半透明影响阅读可以关闭",languageHint:"选择界面显示语言",defaultOpenInApp:"默认打开应用",defaultOpenInAppHint:"从顶栏菜单打开文件和文件夹时默认使用的应用",openWith:"打开方式",agentDefaults:"Agent 默认值",saving:"保存中",defaultModel:"默认模型",defaultModelHint:"新会话会优先使用这个模型",noDefaultModel:"未设置默认模型",defaultPermission:"默认权限",defaultPermissionHint:"只影响之后新建的会话",defaultThinking:"默认开启思考",defaultThinkingHint:"新会话默认是否开启思考",defaultPlanMode:"默认计划模式",defaultPlanModeHint:"新会话默认进入计划模式",secondaryModelSection:"子智能体",secondaryModel:"子智能体模型",secondaryModelHint:"子智能体默认使用的模型与思考强度",secondaryModelEffort:"思考强度",noSecondaryModel:"未设置(跟随主模型)",secondaryModelEffortAuto:"模型默认",telemetry:"使用数据改进产品",telemetryHint:"开启后,我们会收集您的匿名交互数据(如点击、打断、功能使用等),用于改进产品体验。您可以随时关闭。",telemetryRestartHint:"更改后需重启服务生效。",credentialReady:"凭据已配置",credentialMissing:"缺少凭据",configUnavailable:"当前服务端没有返回 config,设置项暂不可用。",versionAndUpdates:"版本与更新",appVersion:"应用版本",appVersionHint:"当前应用的版本号和构建时间",checkUpdate:"检查更新",checkUpdateHint:"手动检查是否有新版本",checkUpdateBtn:"立即检查",updateChecking:"检查中…",updateCheckLatest:"已是最新版本",updateCheckAvailable:"发现新版本 {version},可从侧边栏的更新入口下载",updateCheckUnsupported:"当前构建不支持检查更新",updateCheckFailed:"检查失败,请稍后重试",updateCheckAvailableAuto:"发现新版本 {version},正在后台下载",updateCheckDownloaded:"新版本 {version} 已就绪,可从侧边栏的更新入口重启安装",autoDownloadUpdate:"自动下载更新",autoDownloadUpdateHint:"发现新版本时在后台自动下载,重启后完成安装",canaryUpdate:"更新 Canary",canaryGhMissing:"未检测到 GitHub CLI,请先安装(brew install gh)并登录",canaryGhUnauthenticated:"GitHub CLI 未登录,请先在终端运行 gh auth login",canaryTrigger:"重新打包 Canary",canaryTriggerHint:"触发 macOS arm64 构建流水线,产出新的 Canary 内测版",canaryTriggerBtn:"重新打包 Canary",canaryTriggerConfirm:"再点一次确认触发",canaryTriggerDone:"已触发,构建约需 20–30 分钟",canaryTriggerFailed:"触发失败:{error}",canaryViewWorkflow:"查看流水线",canaryImportStable:"从正式版导入界面设置…",canaryImportStableTitle:"从正式版导入界面设置",canaryImportStableHint:"把正式版的界面设置(置顶、外观等 localStorage 偏好)复制到 Canary 并覆盖当前设置(原设置自动备份为 leveldb.bak)。确认后 Canary 会重启完成导入;正式版需保持退出状态。",canaryImportStableBtn:"导入并重启",canaryImportStableRunning:"正式版(Kimi Code)正在运行——请先退出它,再重新导入。",canaryImportStableNoData:"没有找到正式版的界面设置数据。",canaryImportStableFailed:"导入失败:{error}",privacy:"数据与隐私",diagnostics:"诊断",messageFolding:"消息折叠",turnFolding:"消息自动折叠",turnFoldingHint:"回合结束时自动折叠工作过程,仅展示总结",activityRunFolding:"工具调用汇总",activityRunFoldingHint:"回答过程中,连续的工具调用自动汇总为一行摘要",build:"构建",serverVersion:"服务端版本",serverAddress:"服务器地址",serverAddressHint:"当前连接的服务器地址",serverVersionHint:"当前连接服务的版本",copyServerVersion:"复制服务端版本",copyServerAddress:"复制服务器地址",copied:"已复制",exportLog:"故障排查日志",exportLogHint:"导出已采集的故障排查日志",logHint:"加 ?debug=1 开启采集",exportLogBtn:"导出日志",archivedTitle:"已归档会话",archivedDesc:"查看已归档会话,确认其所属工作区路径、会话名称和归档时间,并可恢复到会话列表。",archivedSearch:"搜索已归档会话",archivedAllWorkspaces:"所有工作区",archivedSortLabel:"排序方式",archivedSortArchived:"归档时间",archivedSortCreated:"创建时间",archivedSortName:"按字母顺序",archivedRestore:"恢复",archivedEmpty:"还没有归档的会话",archivedNoMatch:"没有匹配的已归档会话",archivedSessionsCount:"{count} 个会话",archivedAt:"归档于 {time}",archivedLoadMore:"加载更多",archivedLoading:"加载中…",archivedLoadingAll:"正在加载全部归档会话…"},jne={openInEditor:"在编辑器中打开",openInEditorShort:"打开",openInApp:"用 {app} 打开",chooseOpenApp:"选择应用",copyAll:"复制全部对话为 Markdown",copyFinalSummary:"仅复制最终总结",copied:"已复制",lastUsed:"上次使用",copyPath:"复制路径",changed:"{n} 处改动",gitTooltip:"打开「文件 > 改动」",detached:"游离",openPr:"打开 Pull Request",prStatusOpen:"已打开",prStatusClosed:"已关闭",prStatusMerged:"已合并",prStatusDraft:"草稿",prStatusUnknown:"未知",options:"选项",copySessionId:"复制 Session ID",pinSession:"置顶",unpinSession:"取消置顶",renameSession:"重命名",forkSession:"分叉会话",archiveSession:"归档",markSessionDone:"标记为完成",sessionDone:"已完成",reopenSession:"恢复进行中",exportSession:"导出会话",devBadge:"开发环境运行中"},Hne={title:"侧边聊天",subtitle:"从当前会话 fork",empty:"在侧边随手问一句 —— 它共享当前会话的上下文。",placeholder:"问问侧边聊天…",send:"发送"},Wne={comment:"评论",addToChat:"添加到对话",commentPlaceholder:"写一句评论…",confirm:"确定",copyQuote:"复制引用",copyComment:"复制评论",quoteLabel:"引用"},qne={actions:{summonApp:{label:"显示应用窗口",desc:"从任意位置将应用窗口唤起到前台"},newSession:{label:"新建会话",desc:"在当前工作区开始一个新会话"},searchSessions:{label:"搜索会话",desc:"打开会话搜索弹窗"},archiveSession:{label:"完成任务",desc:"立即完成当前会话(可在已完成列表找回)"},toggleSideChat:{label:"侧边聊天",desc:"打开或关闭 /btw 侧边聊天"},toggleSidebar:{label:"展开/收起侧边栏",desc:"收起或展开会话侧边栏"},openFolder:{label:"打开文件夹",desc:"通过系统原生选择器添加工作目录"},openInDefaultApp:{label:"在默认应用中打开",desc:"在默认编辑器或终端中打开当前工作目录"},openSettings:{label:"打开设置",desc:"显示或隐藏设置窗口"},toggleTerminal:{label:"切换终端",desc:"显示或隐藏底部终端面板"},openDiffTab:{label:"打开改动",desc:"打开或激活工作区改动标签页"},sidebarTabOpen:{label:"进行中标签页",desc:"切换到侧栏的进行中列表"},sidebarTabDone:{label:"已完成标签页",desc:"切换到侧栏的已完成列表"},sidebarTabWorkspaces:{label:"工作空间标签页",desc:"切换到侧栏的工作空间目录"},selectPrevSibling:{label:"上一条",desc:"在当前标签页中选中上一条会话 / 上一个工作空间"},selectNextSibling:{label:"下一条",desc:"在当前标签页中选中下一条会话 / 下一个工作空间"},send:{label:"发送消息",desc:"发送输入框中的内容"},newline:{label:"换行",desc:"在输入框中插入换行"}},searchPlaceholder:"搜索快捷键",unassigned:"未分配",unassign:"取消分配",edit:"编辑快捷键",reset:"恢复默认",resetAll:"全部恢复默认",recording:"按下新的快捷键…",invalid:"该按键组合不能用作快捷键",notGlobal:"该按键组合无法注册为系统级快捷键",globalTaken:"该快捷键已被系统或其他应用占用",reserved:"系统菜单已占用该快捷键",reservedSteer:"steer 固定快捷键(Ctrl/Cmd+S),不可占用",reservedFind:"对话搜索固定快捷键(Ctrl/Cmd+F),不可占用",conflict:"已被「{action}」占用",customBadge:"自定义"},Une={panelAria:"终端",toolbarAria:"终端标签页",resizeAria:"调整终端面板高度",toggle:"切换终端",open:"打开终端",close:"关闭终端",newTab:"新建终端",closeTab:"关闭终端",restartTab:"重启终端",collapse:"收起终端面板",empty:"还没有终端,点击新建一个",processExited:"[进程已退出]",processExitedWithCode:"[进程已退出,退出码 {code}]"},Vne={tabs:{diff:"改动",file:"文件",turnDiff:"本轮改动",compaction:"摘要",agent:"子 Agent",term:"终端"},newTab:"新建标签页",closeTab:"关闭标签页",expand:"展开面板",collapse:"恢复面板",hide:"关闭右侧面板",openPanel:"打开右侧面板",launcherAria:"快速打开"},Kne={title:"PR 预览",intro:"在隔离 worktree 中构建本仓库某个 PR 或分支的代码,构建完成后在独立窗口中打开它的界面。首次构建可能需要几分钟。",prLabel:"预览目标",customRefPlaceholder:"PR 编号、分支名、tag 或 commit sha",invalidRef:"请输入有效的分支名、tag 或 commit sha",start:"开始预览",cleanup:"清理预览缓存",cleanupConfirm:"删除除当前预览外的全部预览缓存?下次预览时会按需重新构建。",cleanupDone:"已清理 {count} 个预览缓存",fetching:"正在拉取 {pr} 的代码…",installing:"正在安装依赖…",building:"正在构建渲染产物…",activeText:"正在预览 {pr}",stop:"退出预览",rebuild:"重新拉取构建",errorTitle:"预览失败",retry:"重试",stageFetch:"拉取代码",stageInstall:"安装依赖",stageBuild:"构建渲染产物",stageFailed:"{stage}失败",stageHung:"{stage}时卡住超过 5 分钟,已终止(请检查网络/代理)"},Zne={common:hne,app:pne,sidebar:mne,admin:gne,workspace:vne,conversation:yne,status:kne,composer:bne,login:wne,providers:Cne,model:Ane,sessions:xne,approval:Sne,question:_ne,tasks:Mne,thinking:Ine,diff:Tne,fileTree:Ene,filePreview:Lne,mention:Nne,warnings:Dne,commands:Fne,tools:Bne,layout:Rne,mobile:One,theme:$ne,onboarding:Pne,settings:zne,header:jne,sideChat:Hne,selection:Wne,shortcuts:qne,terminal:Une,panel:Vne,prPreview:Kne},Gne={en:fne,zh:Zne},Qne="kimi-locale";function fP(){let e=null;try{e=globalThis.localStorage?.getItem(Qne)??null}catch{e=null}return e==="en"||e==="zh"?e:globalThis.navigator?.language?.toLowerCase().startsWith("zh")?"zh":"en"}function Yne(e){const t=e.locale??fP();return wte({legacy:!1,locale:t,fallbackLocale:"en",messages:Gne})}const hP=Symbol("KimiI18n"),Jne={t:e=>e};function pm(){const e=en(hP,null);if(e)return e;try{const t=Kt();return{t:(n,i)=>t.t(n,i),locale:t.locale.value}}catch{return Jne}}const Ww=U(0),tk=D(()=>Ww.value>0),qw=new Set;function pP(e){qw.add(e),Ww.value+=1;let t=!1;return()=>{t||(t=!0,qw.delete(e)&&(Ww.value-=1))}}function _I(e){if(!e)return!1;for(const t of qw)if(t===e||t.contains(e))return!0;return!1}function Xne(e){return typeof e=="object"&&e!==null&&typeof e.contains=="function"}function cd(e,t){let n;Ue([e,t],([i,o])=>{n?.(),n=void 0,i&&Xne(o)&&(n=pP(o))},{flush:"post",immediate:!0}),Xd(()=>{n?.(),n=void 0})}let Uw=-1,Vw=-1,W2=-1,Z3=-1,mP=!1,MI=!1;function eie(e){const t=W2>=0;Uw=W2,Vw=Z3,W2=e.clientX,Z3=e.clientY,t&&(W2!==Uw||Z3!==Vw)&&(mP=!0)}function gP(){MI||typeof document>"u"||(MI=!0,document.addEventListener("pointermove",eie,{capture:!0,passive:!0}))}function Kw(e){return mP?e.clientX===Uw&&e.clientY===Vw:!0}const Wc=6,qc=8,tie=150,nie=ut({__name:"TooltipBubble",props:{target:{default:null},delegate:{default:null},text:{},placement:{default:"top"},maxWidth:{default:280},maxLines:{default:6}},setup(e){const t=e,n=U(),i=U(!1),o=U(!1),s=U({maxWidth:`${t.maxWidth}px`});let r,l=null,a,u=!1;function c(){if(t.target)return t.target;const S=t.delegate;return S?S.firstElementChild??S:null}function d(S){const E=n.value;if(!E)return;const _=S.getBoundingClientRect(),F=E.offsetWidth,q=E.offsetHeight,P=window.innerWidth,O=window.innerHeight;let R=t.placement;R==="top"&&_.top-Wc-qO-qc?R="top":R==="left"&&_.left-Wc-FP-qc&&(R="left");let z=0,H=0;R==="top"?(z=_.top-Wc-q,H=_.left+_.width/2-F/2):R==="bottom"?(z=_.bottom+Wc,H=_.left+_.width/2-F/2):R==="left"?(z=_.top+_.height/2-q/2,H=_.left-Wc-F):(z=_.top+_.height/2-q/2,H=_.right+Wc),H=Math.min(Math.max(H,qc),P-qc-F),z=Math.min(Math.max(z,qc),O-qc-q),s.value={maxWidth:`${t.maxWidth}px`,top:`${Math.round(z)}px`,left:`${Math.round(H)}px`}}function f(){return tk.value&&!_I(c())}function h(){if(!t.text||f())return;const S=c();S&&(window.clearTimeout(r),r=window.setTimeout(()=>{i.value=!0,o.value=!1,gt(()=>{d(S),o.value=!0})},tie))}function m(){window.clearTimeout(r),u=!1,i.value=!1,o.value=!1}function g(S){u||Kw(S)||(u=!0,h())}function v(){h()}function y(){m()}function b(S){return S instanceof Element?S.closest(".ui-tip"):null}function A(S){const E=t.delegate;if(E){if(b(S.target)!==E){m();return}u||Kw(S)||(u=!0,h())}}function w(S){const E=t.delegate;if(!E)return;const _=S.relatedTarget;_ instanceof Element&&E.contains(_)||m()}function M(S){b(S.target)===t.delegate&&h()}function N(){m()}function T(){l&&(t.delegate?(l.removeEventListener("pointermove",A),l.removeEventListener("mouseout",w),l.removeEventListener("focusin",M),l.removeEventListener("focusout",N)):(l.removeEventListener("pointermove",g),l.removeEventListener("mouseleave",y),l.removeEventListener("focusin",v),l.removeEventListener("focusout",y)),l=null)}function C(){T(),a?.disconnect(),a=void 0;const S=t.target??t.delegate;S&&(l=S,t.delegate?(S.addEventListener("pointermove",A,{passive:!0}),S.addEventListener("mouseout",w),S.addEventListener("focusin",M),S.addEventListener("focusout",N),a=new MutationObserver(()=>{i.value&&m()}),a.observe(S,{childList:!0})):(S.addEventListener("pointermove",g,{passive:!0}),S.addEventListener("mouseleave",y),S.addEventListener("focusin",v),S.addEventListener("focusout",y)))}Ue(()=>[t.target,t.delegate],()=>{m(),C()}),Ue(tk,S=>{S&&!_I(c())&&m()});function I(){i.value&&m()}return yn(()=>{gP(),C(),window.addEventListener("scroll",I,!0),window.addEventListener("resize",I)}),ii(()=>{window.clearTimeout(r),a?.disconnect(),T(),window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I)}),(S,E)=>i.value?(k(),de(fs,{key:0,to:"body"},[x("div",{ref_key:"bubble",ref:n,class:ze(["ui-tip__bubble",{positioned:o.value}]),style:on([s.value,{"--tip-lines":e.maxLines}]),role:"tooltip"},B(e.text),7)])):ne("",!0)}}),vP=_t(nie,[["__scopeId","data-v-b279da6d"]]),iie=["type","disabled","aria-label"],oie=ut({__name:"IconButton",props:{size:{default:"md"},disabled:{type:Boolean},label:{},tooltip:{},type:{default:"button"}},setup(e,{expose:t}){const n=U();return t({el:n}),(i,o)=>(k(),L("button",{ref_key:"el",ref:n,class:ze(["ui-icon-button",`ui-icon-button--${e.size}`]),type:e.type,disabled:e.disabled,"aria-label":e.label},[Qn(i.$slots,"default",{},void 0,!0),e.tooltip?(k(),de(vP,{key:0,target:n.value??null,text:e.tooltip},null,8,["target","text"])):ne("",!0)],10,iie))}}),fn=_t(oie,[["__scopeId","data-v-2cbeca98"]]),sie={class:"ui-action-toast-host"},rie={class:"ui-action-toast__body"},lie=ut({__name:"ActionToast",props:{duration:{default:8e3},dismissLabel:{},dismissToken:{}},emits:["dismiss"],setup(e,{emit:t}){const n=e,i=t,{t:o}=pm();let s=null,r=0,l=0;function a(d){s=setTimeout(()=>i("dismiss",n.dismissToken),d),r=Date.now()+d}function u(){s!==null&&(clearTimeout(s),s=null,l=Math.max(0,r-Date.now()))}function c(){s===null&&a(l)}return a(n.duration),Fn(()=>{s!==null&&clearTimeout(s)}),(d,f)=>(k(),L("div",sie,[x("div",{class:"ui-action-toast",role:"status",onPointerenter:u,onPointerleave:c},[x("span",rie,[Qn(d.$slots,"default")]),K(fn,{class:"ui-action-toast__close",size:"sm",label:e.dismissLabel??p(o)("common.dismiss"),tooltip:e.dismissLabel??p(o)("common.dismiss"),onClick:f[0]||(f[0]=h=>i("dismiss",e.dismissToken))},{default:ce(()=>[K(Ae,{name:"close",size:"sm"})]),_:1},8,["label","tooltip"])],32)]))}}),aie=_t(lie,[["__scopeId","data-v-e67fcfa0"]]),uie={key:0,width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",stroke:"var(--color-success)","stroke-width":"2","aria-hidden":"true"},cie={key:1,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",stroke:"var(--color-danger)","stroke-width":"1.5","aria-hidden":"true"},die={key:2,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",stroke:"var(--color-warning)","stroke-width":"1.5","aria-hidden":"true"},yd=ut({__name:"AuthStateIcon",props:{kind:{}},setup(e){return(t,n)=>e.kind==="success"?(k(),L("svg",uie,[...n[0]||(n[0]=[x("circle",{cx:"18",cy:"18",r:"15"},null,-1),x("polyline",{points:"10,18 15,24 26,12"},null,-1)])])):e.kind==="expired"?(k(),L("svg",cie,[...n[1]||(n[1]=[x("circle",{cx:"14",cy:"14",r:"12"},null,-1),x("line",{x1:"14",y1:"8",x2:"14",y2:"15"},null,-1),x("circle",{cx:"14",cy:"19",r:"1.2",fill:"var(--color-danger)"},null,-1)])])):(k(),L("svg",die,[...n[2]||(n[2]=[x("path",{d:"M14 3 L26 24 H2 Z"},null,-1),x("line",{x1:"14",y1:"12",x2:"14",y2:"18"},null,-1),x("circle",{cx:"14",cy:"21.5",r:"1",fill:"var(--color-warning)"},null,-1)])]))}}),fie={key:0,class:"ui-badge__dot","aria-hidden":"true"},hie=ut({__name:"Badge",props:{variant:{default:"neutral"},size:{default:"md"},dot:{type:Boolean}},setup(e){return(t,n)=>(k(),L("span",{class:ze(["ui-badge",[`ui-badge--${e.variant}`,`ui-badge--${e.size}`]])},[e.dot?(k(),L("span",fie)):ne("",!0),Qn(t.$slots,"default",{},void 0,!0)],2))}}),gl=_t(hie,[["__scopeId","data-v-d879fe18"]]),pie={class:"ui-banner__icon","aria-hidden":"true"},mie={class:"ui-banner__text"},gie=ut({__name:"Banner",props:{variant:{default:"info"}},setup(e){return(t,n)=>(k(),L("div",{class:ze(["ui-banner",`ui-banner--${e.variant}`]),role:"status"},[x("span",pie,[Qn(t.$slots,"icon",{},()=>[e.variant==="info"?(k(),de(Ae,{key:0,name:"info",size:"md"})):(k(),de(Ae,{key:1,name:"alert-triangle",size:"md"}))],!0)]),x("span",mie,[Qn(t.$slots,"default",{},void 0,!0)])],2))}}),Yf=_t(gie,[["__scopeId","data-v-6d739c6d"]]),vie=["aria-label"],yie=ut({__name:"Spinner",props:{size:{default:"md"},label:{}},setup(e){const{t}=pm(),n=U(null);let i,o;function s(){const r=n.value;if(r){if(o?.matches){i?.cancel(),i=void 0;return}i||(i=r.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:850,iterations:1/0}),i.startTime=0)}}return yn(()=>{const r=n.value;!r||typeof r.animate!="function"||(o=window.matchMedia("(prefers-reduced-motion: reduce)"),o.addEventListener("change",s),s())}),ii(()=>{o?.removeEventListener("change",s),o=void 0,i?.cancel(),i=void 0}),(r,l)=>(k(),L("span",{ref_key:"boxRef",ref:n,class:ze(["ui-spinner",`ui-spinner--${e.size}`]),role:"status","aria-label":e.label??p(t)("common.loading")},[...l[0]||(l[0]=[x("svg",{class:"ui-spinner__svg",viewBox:"0 0 24 24","aria-hidden":"true"},[x("circle",{class:"ui-spinner__track",cx:"12",cy:"12",r:"9"}),x("circle",{class:"ui-spinner__arc",cx:"12",cy:"12",r:"9"})],-1)])],10,vie))}}),po=_t(yie,[["__scopeId","data-v-476ed1b4"]]),kie=["type","disabled"],bie={class:"ui-button__content"},wie=ut({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},disabled:{type:Boolean},loading:{type:Boolean},type:{default:"button"}},setup(e){return(t,n)=>(k(),L("button",{class:ze(["ui-button",[`ui-button--${e.variant}`,`ui-button--${e.size}`,{"is-loading":e.loading}]]),type:e.type,disabled:e.disabled||e.loading},[e.loading?(k(),de(po,{key:0,size:"sm",class:"ui-button__spinner"})):ne("",!0),x("span",bie,[Qn(t.$slots,"default",{},void 0,!0)])],10,kie))}}),rn=_t(wie,[["__scopeId","data-v-8e78b113"]]),Cie={key:0,class:"ui-card__head"},Aie={class:"ui-card__body"},xie={key:1,class:"ui-card__foot"},Sie=ut({__name:"Card",props:{elevated:{type:Boolean,default:!1}},setup(e){return(t,n)=>(k(),L("div",{class:ze(["ui-card",{"is-elevated":e.elevated}])},[t.$slots.head?(k(),L("div",Cie,[Qn(t.$slots,"head",{},void 0,!0)])):ne("",!0),x("div",Aie,[Qn(t.$slots,"default",{},void 0,!0)]),t.$slots.foot?(k(),L("div",xie,[Qn(t.$slots,"foot",{},void 0,!0)])):ne("",!0)],2))}}),_ie=_t(Sie,[["__scopeId","data-v-fbd05138"]]),Mie={class:"ctx-ring",viewBox:"0 0 20 20","aria-hidden":"true"},Iie=["stroke-dasharray","stroke-dashoffset"],G3=7,Tie=ut({__name:"ContextRing",props:{pct:{}},setup(e){const t=e,n=2*Math.PI*G3;return(i,o)=>(k(),L("svg",Mie,[x("circle",{class:"ctx-ring-track",cx:"10",cy:"10",r:G3,fill:"none","stroke-width":"2.5"}),x("circle",{class:"ctx-ring-fill",cx:"10",cy:"10",r:G3,fill:"none","stroke-width":"2.5","stroke-linecap":"round","stroke-dasharray":`${n}`,"stroke-dashoffset":`${n*(1-t.pct/100)}`},null,8,Iie)]))}}),Eie=_t(Tie,[["__scopeId","data-v-de787cf2"]]),or=U(0),Wp=U(0),Lie=["aria-label"],Nie={key:0,class:"ui-dialog__head"},Die={class:"ui-dialog__titles"},Fie={key:0,class:"ui-dialog__title"},Bie={key:1,class:"ui-dialog__desc"},Rie={class:"ui-dialog__body"},Oie={key:1,class:"ui-dialog__foot"},$ie='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',Pie=ut({__name:"Dialog",props:{open:{type:Boolean},title:{},ariaLabel:{},description:{},closeOnOverlay:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},size:{default:"md"},height:{default:"auto"},padded:{type:Boolean,default:!0},hideClose:{type:Boolean},level:{default:"raised"},initialFocus:{},focusOnOpen:{type:Boolean,default:!0}},emits:["update:open","close"],setup(e,{emit:t}){const n=e,i=t,{t:o}=pm(),s=U(null);let r=null;function l(){i("update:open",!1),i("close")}function a(){return s.value?Array.from(s.value.querySelectorAll($ie)):[]}function u(){const{initialFocus:f}=n;return f?typeof f=="function"?f()??null:typeof f=="string"?s.value?.querySelector(f)??null:s.value?.contains(f)?f:null:null}function c(f){if(!n.open)return;if(f.key==="Escape"&&n.closeOnEsc){f.preventDefault(),l();return}if(f.key!=="Tab")return;const h=a(),m=h[0],g=h[h.length-1];if(!m||!g){f.preventDefault(),s.value?.focus();return}const v=document.activeElement;f.shiftKey&&v===m?(f.preventDefault(),g.focus()):!f.shiftKey&&v===g&&(f.preventDefault(),m.focus())}function d(f){n.closeOnOverlay&&f.target===f.currentTarget&&l()}return Ue(()=>n.open,async f=>{if(f){if(or.value+=1,r=document.activeElement,n.focusOnOpen){await gt();const h=u(),m=a();(h??m[0]??s.value)?.focus()}}else or.value=Math.max(0,or.value-1),r instanceof HTMLElement&&(r.focus(),r=null)},{immediate:!0}),typeof window<"u"&&window.addEventListener("keydown",c),ii(()=>{typeof window<"u"&&window.removeEventListener("keydown",c),n.open&&(or.value=Math.max(0,or.value-1),r instanceof HTMLElement&&r.focus())}),(f,h)=>(k(),de(fs,{to:"body"},[e.open?(k(),L("div",{key:0,class:"ui-dialog__overlay",onMousedown:d},[x("div",{ref_key:"panel",ref:s,class:ze(["ui-dialog",[`ui-dialog--${e.size}`,{"ui-dialog--flush":!e.padded,"ui-dialog--fixed-height":e.height==="fixed","ui-dialog--grouped":e.level==="grouped"}]]),role:"dialog","aria-modal":"true","aria-label":e.ariaLabel??e.title,tabindex:"-1"},[e.title||f.$slots.head?(k(),L("div",Nie,[Qn(f.$slots,"head",{},()=>[x("div",Die,[e.title?(k(),L("div",Fie,B(e.title),1)):ne("",!0),e.description?(k(),L("div",Bie,B(e.description),1)):ne("",!0)])],!0),e.hideClose?ne("",!0):(k(),de(fn,{key:0,class:"ui-dialog__close",size:"sm",label:p(o)("common.close"),tooltip:p(o)("common.close"),onClick:l},{default:ce(()=>[K(Ae,{name:"close",size:"md"})]),_:1},8,["label","tooltip"]))])):ne("",!0),x("div",Rie,[Qn(f.$slots,"default",{},void 0,!0)]),f.$slots.foot?(k(),L("div",Oie,[Qn(f.$slots,"foot",{},void 0,!0)])):ne("",!0)],10,Lie)],32)):ne("",!0)]))}}),sf=_t(Pie,[["__scopeId","data-v-41ce75e5"]]),zie={class:"ui-empty"},jie={key:0,class:"ui-empty__icon","aria-hidden":"true"},Hie={key:1,class:"ui-empty__title"},Wie={key:2,class:"ui-empty__hint"},qie=ut({__name:"EmptyState",props:{title:{},hint:{}},setup(e){return(t,n)=>(k(),L("div",zie,[t.$slots.icon?(k(),L("span",jie,[Qn(t.$slots,"icon",{},void 0,!0)])):ne("",!0),e.title?(k(),L("div",Hie,B(e.title),1)):ne("",!0),e.hint?(k(),L("div",Wie,B(e.hint),1)):ne("",!0),Qn(t.$slots,"default",{},void 0,!0)]))}}),Uie=_t(qie,[["__scopeId","data-v-6da80932"]]),Vie={key:0,class:"ui-field__label"},Kie={key:1,class:"ui-field__error"},Zie={key:2,class:"ui-field__hint"},Gie=ut({__name:"Field",props:{label:{},hint:{},error:{}},setup(e){return(t,n)=>(k(),L("div",{class:ze(["ui-field",{"has-error":!!e.error}])},[e.label?(k(),L("label",Vie,B(e.label),1)):ne("",!0),Qn(t.$slots,"default",{},void 0,!0),e.error?(k(),L("span",Kie,B(e.error),1)):e.hint?(k(),L("span",Zie,B(e.hint),1)):ne("",!0)],2))}}),Qie=_t(Gie,[["__scopeId","data-v-a8de5f7f"]]),Yie=["type","value","placeholder","disabled","readonly"],Jie=ut({__name:"Input",props:{modelValue:{},size:{default:"md"},type:{default:"text"},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean}},emits:["update:modelValue","focus","blur"],setup(e,{expose:t,emit:n}){const i=n,o=U();function s(a){i("update:modelValue",a.target.value)}function r(){o.value?.focus()}function l(){o.value?.select()}return t({focus:r,select:l,el:o}),(a,u)=>(k(),L("input",{ref_key:"el",ref:o,class:ze(["ui-input",[`ui-input--${e.size}`,{"has-error":e.error}]]),type:e.type,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,onInput:s,onFocus:u[0]||(u[0]=c=>a.$emit("focus",c)),onBlur:u[1]||(u[1]=c=>a.$emit("blur",c))},null,42,Yie))}}),_s=_t(Jie,[["__scopeId","data-v-f1cdf732"]]),Xie={class:"ui-kbd"},eoe=ut({__name:"Kbd",props:{keys:{}},setup(e){return(t,n)=>(k(),L("span",Xie,[(k(!0),L(Re,null,xt(e.keys,i=>(k(),L("kbd",{key:i,class:"ui-kbd__key"},B(i),1))),128))]))}}),Cc=_t(eoe,[["__scopeId","data-v-c04e8fd4"]]),toe=["role"],noe=ut({__name:"Menu",props:{role:{default:"menu"}},setup(e,{expose:t}){const n=U();t({el:n});let i;return yn(()=>{n.value&&(i=pP(n.value))}),ii(()=>i?.()),(o,s)=>(k(),L("div",{ref_key:"el",ref:n,class:"ui-menu",role:e.role},[Qn(o.$slots,"default",{},void 0,!0)],8,toe))}}),ps=_t(noe,[["__scopeId","data-v-18d99605"]]),ioe={key:0,class:"ui-menu-sep",role:"separator"},ooe=["role","disabled"],soe=ut({__name:"MenuItem",props:{active:{type:Boolean},danger:{type:Boolean},disabled:{type:Boolean},separator:{type:Boolean},size:{default:"md"},role:{default:"menuitem"}},emits:["click"],setup(e){return(t,n)=>e.separator?(k(),L("div",ioe)):(k(),L("button",{key:1,class:ze(["ui-menu-item",[`ui-menu-item--${e.size}`,{"is-active":e.active,"is-danger":e.danger}]]),type:"button",role:e.role,disabled:e.disabled,onClick:n[0]||(n[0]=i=>t.$emit("click",i))},[Qn(t.$slots,"default",{},void 0,!0)],10,ooe))}}),Xt=_t(soe,[["__scopeId","data-v-607794d8"]]),roe=ut({__name:"Tooltip",props:{text:{},placement:{default:"top"},maxWidth:{default:280},maxLines:{default:6}},setup(e){const t=U();return(n,i)=>(k(),L(Re,null,[x("span",{ref_key:"trigger",ref:t,class:"ui-tip"},[Qn(n.$slots,"default",{},void 0,!0)],512),K(vP,{delegate:t.value??null,text:e.text,placement:e.placement,"max-width":e.maxWidth,"max-lines":e.maxLines},null,8,["delegate","text","placement","max-width","max-lines"])],64))}}),Ln=_t(roe,[["__scopeId","data-v-414bd903"]]),loe={class:"ui-panel-header__title"},aoe={key:0,class:"ui-panel-header__sub"},uoe=ut({__name:"PanelHeader",props:{title:{},titleTooltip:{},subtitle:{},closable:{type:Boolean,default:!0},closeLabel:{},closeIcon:{default:"close"},wrap:{type:Boolean}},emits:["close"],setup(e){const{t}=pm();return(n,i)=>(k(),L("div",{class:ze(["ui-panel-header",{wrap:e.wrap}])},[K(Ln,{text:e.titleTooltip??e.title},{default:ce(()=>[x("span",loe,B(e.title),1)]),_:1},8,["text"]),K(Ln,{text:e.subtitle},{default:ce(()=>[e.subtitle?(k(),L("span",aoe,B(e.subtitle),1)):ne("",!0)]),_:1},8,["text"]),Qn(n.$slots,"default",{},void 0,!0),e.closable?(k(),de(fn,{key:0,class:"ui-panel-header__close",size:"sm",label:e.closeLabel??p(t)("common.close"),tooltip:e.closeLabel??p(t)("common.close"),onClick:i[0]||(i[0]=o=>n.$emit("close"))},{default:ce(()=>[K(Ae,{name:e.closeIcon,size:"sm"},null,8,["name"])]),_:1},8,["label","tooltip"])):ne("",!0)],2))}}),V1=_t(uoe,[["__scopeId","data-v-03d5861a"]]),coe=["disabled","aria-pressed"],doe=ut({__name:"Pill",props:{clickable:{type:Boolean,default:!0},active:{type:Boolean},disabled:{type:Boolean},ariaPressed:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>e.clickable?(k(),L("button",{key:0,class:ze(["ui-pill",{"is-active":e.active}]),type:"button",disabled:e.disabled,"aria-pressed":e.ariaPressed,onClick:n[0]||(n[0]=i=>t.$emit("click",i))},[Qn(t.$slots,"default",{},void 0,!0)],10,coe)):(k(),L("span",{key:1,class:ze(["ui-pill",{"is-active":e.active}])},[Qn(t.$slots,"default",{},void 0,!0)],2))}}),yP=_t(doe,[["__scopeId","data-v-fe6a2873"]]),foe=ut({__name:"ScrollArea",props:{orientation:{default:"vertical"},hideDelay:{default:600}},setup(e,{expose:t}){const n=e,i=U(null),o=U(null),s=U(!1),r=U({overflow:!1,size:0,offset:0}),l=U({overflow:!1,size:0,offset:0}),a=U(null);let u=null,c=null,d=null;const f=D(()=>({overflowX:n.orientation==="vertical"?"hidden":"auto",overflowY:n.orientation==="horizontal"?"hidden":"auto"})),h=D(()=>({height:`${r.value.size}px`,transform:`translateY(${r.value.offset}px)`})),m=D(()=>({width:`${l.value.size}px`,transform:`translateX(${l.value.offset}px)`}));function g(I,S,E){if(!(S>I+1)||I<=0)return{overflow:!1,size:0,offset:0};const F=Math.max(0,I-4),q=Math.min(F,Math.max(24,F*I/S)),P=Math.max(0,F-q),O=Math.max(1,S-I);return{overflow:!0,size:q,offset:P*E/O}}function v(){const I=o.value;if(!I)return;const S=g(I.clientHeight,I.scrollHeight,I.scrollTop),E=g(I.clientWidth,I.scrollWidth,I.scrollLeft);(S.overflow!==r.value.overflow||S.size!==r.value.size||S.offset!==r.value.offset)&&(r.value=S),(E.overflow!==l.value.overflow||E.size!==l.value.size||E.offset!==l.value.offset)&&(l.value=E)}function y(){u!==null&&clearTimeout(u),u=null}function b(){y(),s.value=!0}function A(){y(),!(a.value||i.value?.matches(":hover, :focus-within"))&&(u=setTimeout(()=>{s.value=!1,u=null},n.hideDelay))}function w(){v(),b(),A()}function M(I,S){const E=o.value;E&&(S.preventDefault(),b(),a.value={axis:I,pointerId:S.pointerId,startPointer:I==="vertical"?S.clientY:S.clientX,startScroll:I==="vertical"?E.scrollTop:E.scrollLeft},S.currentTarget.setPointerCapture(S.pointerId))}function N(I){const S=a.value,E=o.value;if(!S||S.pointerId!==I.pointerId||!E)return;const _=S.axis==="vertical"?I.clientY:I.clientX,F=S.axis==="vertical"?E.clientHeight:E.clientWidth,q=S.axis==="vertical"?E.scrollHeight:E.scrollWidth,P=S.axis==="vertical"?r.value.size:l.value.size,O=Math.max(1,F-4-P),R=(_-S.startPointer)*(q-F)/O;S.axis==="vertical"?E.scrollTop=S.startScroll+R:E.scrollLeft=S.startScroll+R}function T(I){!a.value||a.value.pointerId!==I.pointerId||(a.value=null,A())}function C(){const I=o.value;if(!(!I||!c))for(const S of I.children)c.observe(S)}return yn(async()=>{await gt();const I=o.value;I&&(c=new ResizeObserver(v),c.observe(I),C(),d=new MutationObserver(()=>{C(),v()}),d.observe(I,{childList:!0,subtree:!0,characterData:!0}),v())}),ii(()=>{y(),c?.disconnect(),d?.disconnect()}),t({viewport:o,updateMetrics:v}),(I,S)=>(k(),L("div",{ref_key:"root",ref:i,class:"ui-scroll-area",onPointerenter:b,onPointerleave:A,onFocusin:b,onFocusout:A},[x("div",{ref_key:"viewport",ref:o,class:"ui-scroll-area__viewport",style:on(f.value),tabindex:"0",onScroll:w},[Qn(I.$slots,"default",{},void 0,!0)],36),r.value.overflow&&n.orientation!=="horizontal"?(k(),L("div",{key:0,class:ze(["ui-scroll-area__bar ui-scroll-area__bar--vertical",{"is-visible":s.value}]),"aria-hidden":"true"},[x("span",{class:"ui-scroll-area__thumb",style:on(h.value),onPointerdown:S[0]||(S[0]=E=>M("vertical",E)),onPointermove:N,onPointerup:T,onPointercancel:T},null,36)],2)):ne("",!0),l.value.overflow&&n.orientation!=="vertical"?(k(),L("div",{key:1,class:ze(["ui-scroll-area__bar ui-scroll-area__bar--horizontal",{"is-visible":s.value}]),"aria-hidden":"true"},[x("span",{class:"ui-scroll-area__thumb",style:on(m.value),onPointerdown:S[1]||(S[1]=E=>M("horizontal",E)),onPointermove:N,onPointerup:T,onPointercancel:T},null,36)],2)):ne("",!0)],544))}}),II=_t(foe,[["__scopeId","data-v-9c504ebc"]]),hoe=["data-icon","aria-selected","onClick"],poe=ut({__name:"SegmentedControl",props:{modelValue:{},options:{},size:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=U(null),s=U([]),r=U(!1),l=U({});let a=null;function u(d,f){d instanceof HTMLElement&&(s.value[f]=d)}async function c(){await gt();const d=n.options.findIndex(h=>h.value===n.modelValue),f=s.value[d];f&&(l.value={width:`${f.offsetWidth}px`,height:`${f.offsetHeight}px`,transform:`translate(${f.offsetLeft}px, ${f.offsetTop}px)`},r.value=!0)}return Ue(()=>[n.modelValue,n.options.length],c,{immediate:!0}),yn(()=>{a=new ResizeObserver(()=>c()),o.value&&a.observe(o.value);for(const d of s.value)a.observe(d);c()}),ii(()=>a?.disconnect()),(d,f)=>(k(),L("div",{ref_key:"root",ref:o,class:ze(["ui-seg",`ui-seg--${e.size??"md"}`]),role:"tablist"},[x("span",{class:ze(["ui-seg__indicator",{"is-ready":r.value}]),style:on(l.value),"aria-hidden":"true"},null,6),(k(!0),L(Re,null,xt(e.options,(h,m)=>(k(),L("button",{key:h.value,ref_for:!0,ref:g=>u(g,m),class:ze(["ui-seg__item",{"is-on":h.value===e.modelValue}]),"data-icon":h.icon,type:"button",role:"tab","aria-selected":h.value===e.modelValue,onClick:g=>i("update:modelValue",h.value)},[h.icon?(k(),de(Ae,{key:0,class:"ui-seg__icon",name:h.icon,size:"sm"},null,8,["name"])):ne("",!0),h.swatch?(k(),L("span",{key:1,class:"ui-seg__swatch",style:on({backgroundColor:h.swatch})},null,4)):ne("",!0),He(" "+B(h.label),1)],10,hoe))),128))],2))}}),Ms=_t(poe,[["__scopeId","data-v-b09ef1d1"]]);function moe(e){const{anchor:t,menuHeight:n,viewportWidth:i,viewportHeight:o,gap:s,margin:r}=e,l=o-r-(t.bottom+s),a=t.top-s-r,u=ll,c=u?a:l,d=Math.min(t.width,Math.max(0,i-2*r)),f=Math.min(Math.max(t.left,r),Math.max(r,i-r-d)),h={left:`${Math.round(f)}px`,width:`${Math.round(d)}px`};return cn.options.findIndex(oe=>String(oe.value)===String(n.modelValue??""))),w=D(()=>n.options[A.value]),M=D(()=>w.value?.label??n.placeholder);function N(oe,te){a.value[te]=oe instanceof HTMLElement?oe:null}function T(){const oe=l.value,te=a.value[c.value];!oe||!te||(oe.scrollTop=te.offsetTop-(oe.clientHeight-te.offsetHeight)/2)}function C(){const oe=r.value,te=l.value;if(!oe||!te)return;te.style.maxHeight="";const ve=oe.getBoundingClientRect();f.value=moe({anchor:ve,menuHeight:te.offsetHeight,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,gap:v,margin:y}).style}function I(){n.disabled||u.value||(u.value=!0,c.value=A.value>=0?A.value:n.options.findIndex(oe=>!oe.disabled),v=b("--space-1",TI),y=b("--space-2",EI),ae(),gt(()=>{C(),gt(T)}))}function S({restoreFocus:oe=!1}={}){u.value&&(u.value=!1,G(),oe&>(()=>r.value?.focus()))}function E(){u.value?S():I()}function _(oe){oe.disabled||(String(oe.value)!==String(n.modelValue??"")&&i("update:modelValue",oe.value),S({restoreFocus:!0}))}function F(oe){if(u.value||I(),n.options.length===0)return;let te=c.value;for(let ve=0;veve.disabled?-1:Te).filter(ve=>ve>=0);c.value=oe.key==="Home"?te[0]??-1:te.at(-1)??-1,gt(T)}}function P(oe){m=u.value;const te=oe.target;s.value?.contains(te)||l.value?.contains(te)||S()}function O(){const oe=g;m=!1,g=!1,G(),oe&&u.value&&r.value?.focus()}function R(){g=!0}function z(oe){const te=oe.relatedTarget;te instanceof Node&&(s.value?.contains(te)||l.value?.contains(te))||requestAnimationFrame(()=>{if(!u.value||g)return;const ve=document.activeElement;ve&&(s.value?.contains(ve)||l.value?.contains(ve))||S()})}function H(oe){u.value&&(l.value?.contains(oe.target)||C())}function j(){u.value&&C()}Ue(()=>n.options.length,()=>{u.value&>(C)});function Q(oe){(oe.type==="touchmove"?u.value||m:u.value)&&goe(oe.target,l.value)&&oe.preventDefault()}function ae(){h||(h=!0,document.addEventListener("wheel",Q,{capture:!0,passive:!1}),document.addEventListener("touchmove",Q,{capture:!0,passive:!1}))}function W(){h&&(h=!1,document.removeEventListener("wheel",Q,{capture:!0}),document.removeEventListener("touchmove",Q,{capture:!0}))}function G(){u.value||m||W()}return yn(()=>{document.addEventListener("pointerdown",P,{passive:!0}),document.addEventListener("pointerup",O,{passive:!0}),document.addEventListener("pointercancel",O,{passive:!0}),document.addEventListener("scroll",H,!0),window.addEventListener("resize",j)}),Fn(()=>{m=!1,W(),document.removeEventListener("pointerdown",P),document.removeEventListener("pointerup",O),document.removeEventListener("pointercancel",O),document.removeEventListener("scroll",H,!0),window.removeEventListener("resize",j)}),(oe,te)=>(k(),L("div",{ref_key:"rootRef",ref:s,class:ze(["ui-select",[`ui-select--${e.size}`,{"has-error":e.error,"is-open":u.value,"is-disabled":e.disabled}]])},[x("button",ci({ref_key:"triggerRef",ref:r},p(o),{class:"ui-select__trigger",type:"button",role:"combobox","aria-controls":d,"aria-expanded":u.value,"aria-haspopup":"listbox",disabled:e.disabled,onClick:E,onKeydown:q,onFocusout:z}),[x("span",{class:ze(["ui-select__value",{"is-placeholder":!w.value}])},[w.value?.icon?(k(),L("img",{key:0,class:"ui-select__icon",src:w.value.icon,alt:""},null,8,yoe)):ne("",!0),x("span",koe,B(M.value),1)],2),K(Ae,{class:"ui-select__chevron",name:"chevron-down",size:"sm"})],16,voe),(k(),de(fs,{to:"body"},[u.value?(k(),L("div",{key:0,id:d,ref_key:"listRef",ref:l,class:"ui-select__menu",style:on(f.value),role:"listbox",onPointerdown:R,onFocusout:z},[(k(!0),L(Re,null,xt(e.options,(ve,Te)=>(k(),L(Re,{key:`${ve.group??""}:${ve.value}`},[ve.group&&ve.group!==e.options[Te-1]?.group?(k(),L("div",boe,B(ve.group),1)):ne("",!0),x("button",{ref_for:!0,ref:Fe=>N(Fe,Te),class:ze(["ui-select__option",{"is-selected":Te===A.value,"is-active":Te===c.value}]),type:"button",role:"option","aria-selected":Te===A.value,disabled:ve.disabled,onMouseenter:Fe=>c.value=Te,onClick:Fe=>_(ve)},[K(Ae,{class:"ui-select__check",name:"check",size:"sm"}),ve.icon?(k(),L("img",{key:0,class:"ui-select__icon ui-select__icon--option",src:ve.icon,alt:""},null,8,Coe)):ne("",!0),x("span",null,B(ve.label),1)],42,woe)],64))),128))],36)):ne("",!0)]))],2))}}),Zw=_t(Aoe,[["__scopeId","data-v-285335af"]]),xoe=ut({__name:"StatusDot",props:{status:{}},setup(e){const t=e;function n(o){switch(o){case"ok":case"done":case"completed":case"success":return"ok";case"error":case"failed":case"fail":case"danger":return"error";case"running":case"run":case"working":case"in_progress":case"active":return"running";case"suspended":return"suspended";default:return"idle"}}const i=D(()=>n(t.status));return(o,s)=>(k(),L("span",{class:ze(["kw-dot",`kw-dot--${i.value}`]),"aria-hidden":"true"},null,2))}}),Kl=_t(xoe,[["__scopeId","data-v-390a778a"]]),Soe=["aria-checked","aria-label","disabled"],_oe=ut({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},label:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(i,o)=>(k(),L("button",{class:ze(["ui-switch",{"is-on":e.modelValue}]),type:"button",role:"switch","aria-checked":e.modelValue,"aria-label":e.label,disabled:e.disabled,onClick:o[0]||(o[0]=s=>n("update:modelValue",!e.modelValue))},[...o[1]||(o[1]=[x("span",{class:"ui-switch__thumb"},null,-1)])],10,Soe))}}),Uc=_t(_oe,[["__scopeId","data-v-2fc56545"]]),Moe=["value","rows","placeholder","disabled","readonly"],Ioe=ut({__name:"Textarea",props:{modelValue:{},rows:{default:3},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},resize:{type:Boolean,default:!0}},emits:["update:modelValue","focus","blur"],setup(e,{expose:t,emit:n}){const i=n;function o(r){i("update:modelValue",r.target.value)}const s=U(null);return t({el:s}),(r,l)=>(k(),L("textarea",{ref_key:"textareaRef",ref:s,class:ze(["ui-textarea",{"has-error":e.error,"no-resize":!e.resize}]),value:e.modelValue,rows:e.rows,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,onInput:o,onFocus:l[0]||(l[0]=a=>r.$emit("focus",a)),onBlur:l[1]||(l[1]=a=>r.$emit("blur",a))},null,42,Moe))}}),Toe=_t(Ioe,[["__scopeId","data-v-07cc9fb9"]]),Eoe={class:"ui-toast__icon","aria-hidden":"true"},Loe={class:"ui-toast__body"},Noe={class:"ui-toast__title"},Doe={key:0,class:"ui-toast__msg"},Foe=ut({__name:"Toast",props:{variant:{default:"info"},title:{},message:{},dismissLabel:{}},emits:["dismiss"],setup(e){const{t}=pm();return(n,i)=>(k(),L("div",{class:ze(["ui-toast",`ui-toast--${e.variant}`])},[x("span",Eoe,[Qn(n.$slots,"icon",{},()=>[e.variant==="success"?(k(),de(Ae,{key:0,name:"check"})):e.variant==="danger"?(k(),de(Ae,{key:1,name:"close"})):e.variant==="warning"?(k(),de(Ae,{key:2,name:"alert-triangle"})):(k(),de(Ae,{key:3,name:"info"}))],!0)]),x("div",Loe,[x("div",Noe,B(e.title),1),e.message?(k(),L("div",Doe,B(e.message),1)):ne("",!0),Qn(n.$slots,"default",{},void 0,!0)]),K(fn,{class:"ui-toast__close",size:"sm",label:e.dismissLabel??p(t)("common.dismiss"),tooltip:e.dismissLabel??p(t)("common.dismiss"),onClick:i[0]||(i[0]=o=>n.$emit("dismiss"))},{default:ce(()=>[K(Ae,{name:"close",size:"sm"})]),_:1},8,["label","tooltip"])],2))}}),Boe=_t(Foe,[["__scopeId","data-v-62bc76d1"]]),Roe=100;function _l(){let e=!1,t=0;function n(){e=!0,t=0}function i(){e=!1,t=Date.now()}function o(){e=!1,t=0}function s(r){return e||r.isComposing||r.keyCode===229||Date.now()-t{typeof window<"u"&&(window.removeEventListener("focusin",o,!0),window.removeEventListener("focusout",o,!0))}),{handleCompositionStart:n,handleCompositionEnd:i,resetComposition:o,isComposingKeyEvent:s}}function $u(e,t){const n=t??{h:"h",m:"m",s:"s"},i=Math.max(0,Math.floor(e/1e3));if(i<60)return i===0?"":`${i}${n.s}`;const o=Math.floor(i/60);if(o<60){const l=i%60;return l===0?`${o}${n.m}`:`${o}${n.m}${l}${n.s}`}const s=Math.floor(o/60),r=o%60;return r===0?`${s}${n.h}`:`${s}${n.h}${r}${n.m}`}const Ooe={multiedit:"multi_edit",multiedits:"multi_edit",shell:"bash",run:"bash",exec:"bash",ripgrep:"grep",rg:"grep",find:"glob",fetch:"web_fetch",webfetch:"web_fetch",url_fetch:"web_fetch",urlfetch:"web_fetch",list:"ls",listdir:"ls",list_dir:"ls",todowrite:"todo",todo_write:"todo",todoread:"todo",todolist:"todo",todo_list:"todo",agent:"task",subagent:"task",websearch:"search",web_search:"search",create_goal:"creategoal",get_goal:"getgoal",set_goal_budget:"setgoalbudget",update_goal:"updategoal",wait_for:"waitfor"};function Sr(e){const t=(e??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return Ooe[t]??t}const $oe={read:"tools.label.read",bash:"tools.label.bash",edit:"tools.label.edit",multi_edit:"tools.label.edit",write:"tools.label.write",grep:"tools.label.grep",glob:"tools.label.glob",ls:"tools.label.ls",web_fetch:"tools.label.web_fetch",search:"tools.label.search",todo:"tools.label.todo",task:"tools.label.task",agentswarm:"tools.label.swarm",askuserquestion:"tools.label.ask_user",exitplanmode:"tools.label.plan",creategoal:"tools.label.goal_create",getgoal:"tools.label.goal_get",setgoalbudget:"tools.label.goal_budget",updategoal:"tools.label.goal_update",waitfor:"tools.label.waitfor"};function kP(e,t){const n=$oe[Sr(t)];return n?e(n):t}const bP=80;function Poe(e,t=bP){const n=e.trim();return n.length>t?n.slice(0,t-1)+"…":n}function zoe(e,t){const n=e.trim();return!!(n===""||n==="{}"||n==="[]"||n==="null"||t&&Object.keys(t).length===0)}function joe(e){const t=e.trim();if(!t.startsWith("{"))return null;try{const n=JSON.parse(t);return n&&typeof n=="object"&&!Array.isArray(n)?n:null}catch{return null}}function pi(e){return typeof e=="string"&&e.length>0?e:void 0}function Xc(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function Hoe(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean)[0];return n?`${t.host}/${n}`:t.host}catch{return e.replace(/^https?:\/\//,"")}}function Q3(e){return pi(e.path)??pi(e.file_path)??pi(e.filePath)??pi(e.filename)}const Woe={active:"status.goalStatusActive",blocked:"status.goalStatusBlocked",complete:"status.goalStatusComplete"};function qoe(e,t){const n=pi(t);if(!n)return;const i=Woe[n];return i?e(i):n}function Uoe(e,t){const n=Xc(t.value),i=pi(t.unit);if(!(n===void 0||!i))switch(i){case"turns":return e("tools.goal.turns",{value:n});case"tokens":return e("tools.goal.tokens",{value:n});case"milliseconds":return e("tools.goal.milliseconds",{value:n});case"seconds":return e("tools.goal.seconds",{value:n});case"minutes":return e("tools.goal.minutes",{value:n});case"hours":return e("tools.goal.hours",{value:n});default:return e("tools.goal.budget",{value:n,unit:i})}}function G6(e,t,n,i=!1){const o=(s,r=bP)=>i?s.trim():Poe(s,r);try{const s=joe(n);if(!i&&zoe(n,s))return"";const r=()=>o(n.replace(/^·\s*/,""));if(!s)return r();switch(Sr(t)){case"read":{const l=Q3(s);if(!l)return r();const a=Xc(s.offset)??Xc(s.line_start)??Xc(s.start_line),u=Xc(s.limit)??Xc(s.length),c=Xc(s.line_end)??Xc(s.end_line)??(a!==void 0&&u!==void 0?a+u:void 0);return o(a!==void 0&&c!==void 0?`${l}:${a}-${c}`:a!==void 0?`${l}:${a}`:l)}case"write":{const l=Q3(s);return l?o(`${l} ${e("tools.chip.created")}`):r()}case"edit":case"multi_edit":{const l=Q3(s);return l?o(l):r()}case"bash":{const l=pi(s.command)??pi(s.cmd)??pi(s.script);return l?l.trim():r()}case"grep":case"search":{const l=pi(s.pattern)??pi(s.query)??pi(s.regex),a=pi(s.path)??pi(s.glob)??pi(s.include);return l&&a?o(e("tools.summary.inScope",{value:l,scope:a})):l?o(l):r()}case"glob":{const l=pi(s.pattern)??pi(s.glob)??pi(s.query),a=pi(s.path)??pi(s.cwd);return l&&a?o(e("tools.summary.inScope",{value:l,scope:a})):l?o(l):pi(s.path)?o(pi(s.path)):r()}case"ls":{const l=pi(s.path)??pi(s.dir)??pi(s.directory)??pi(s.cwd);return l?o(l):r()}case"web_fetch":{const l=pi(s.url)??pi(s.uri);return l?o(Hoe(l)):r()}case"todo":case"task":{const l=pi(s.description)??pi(s.title)??pi(s.prompt)??pi(s.name)??pi(s.subagent_type);if(l)return o(l);const a=Array.isArray(s.todos)?s.todos:Array.isArray(s.items)?s.items:void 0;return a?o(e("tools.chip.todos",{count:a.length})):r()}case"creategoal":{if(i)return r();const l=pi(s.objective),a=pi(s.completionCriterion);return l&&a?o(e("tools.goal.objectiveWithCriterion",{objective:l,criterion:a})):l?o(l):r()}case"getgoal":return i?r():"";case"setgoalbudget":{if(i)return r();const l=Uoe(e,s);return l?o(l):r()}case"updategoal":{if(i)return r();const l=qoe(e,s.status);return l?o(e("tools.goal.status",{status:l})):r()}default:return r()}}catch{return n}}function Voe(e,t){try{switch(Sr(t.name)){case"bash":return t.timing?t.timing:"";case"read":{if(t.output&&t.output.length>0){const n=t.output.length;return e("tools.chip.lines",{count:n})}return""}case"edit":case"multi_edit":case"write":{if(t.output){for(const i of t.output){const o=i.match(/\+(\d+).*[-−](\d+)/);if(o)return`+${o[1]} −${o[2]}`}const n=t.output.find(i=>/\d+/.test(i));if(n){const i=n.match(/\+(\d+)/),o=n.match(/[-−](\d+)/);if(i||o)return`${i?`+${i[1]}`:""} ${o?`−${o[1]}`:""}`.trim()}if(t.status!=="error")return e("tools.chip.edited")}return""}case"grep":case"search":return t.output&&t.output.length>0?e("tools.chip.results",{count:t.output.length}):"";default:return""}}catch{return""}}const wP=new Set(["read","bash","grep","search","glob","ls","web_fetch","edit","write"]);function CP(e){const t=Sr(e);return t==="multi_edit"?"edit":t}function AP(e){const t=[],n=new Map;for(const i of e){if(i.kind==="thinking")continue;const o=CP(i.tool.name);let s=n.get(o);s||(s={count:0,errors:0},n.set(o,s),t.push(o)),s.count++,i.tool.status==="error"&&s.errors++}return{order:t,byKind:n}}function xP(e,t,n){return wP.has(t)?e(`tools.group.typed.${t}.done`,{count:n}):e("tools.group.countOther",{count:n})}function SP(e,t){return{text:e("tools.activity.failedClause",{count:t}),tone:"danger"}}function _P(e){return e.map(t=>t.fragments.map(n=>n.text).join("")).join(" · ")}function Koe(e,t,n={}){const{order:i,byKind:o}=AP(t),s=[];let r=!1;for(const l of i){const a=o.get(l);if(!a)continue;const u=[{text:xP(e,l,a.count),tone:"normal"}];a.errors>0&&(r=!0,u.push(SP(e,a.errors))),s.push({fragments:u})}if(n.durationMs!==void 0){const l=$u(n.durationMs);l&&s.push({fragments:[{text:l,tone:"faint"}]})}return{clauses:s,plain:_P(s),hasError:r}}function Zoe(e,t){if(t.kind==="thinking")return{fragments:[{text:e("thinking.streaming"),tone:"normal"}]};const n=CP(t.tool.name);let i=G6(e,t.tool.name,t.tool.arg);if(n==="write"&&i){const s=e("tools.chip.created");i.endsWith(s)&&(i=i.slice(0,i.length-s.length).trimEnd())}return{fragments:[{text:i&&wP.has(n)?e(`tools.activity.doing.${n}`,{subject:i}):e("tools.activity.busy"),tone:"normal"}]}}function Goe(e,t,n){const i=t.filter(c=>c!==n&&!(c.kind==="tool"&&c.tool.status==="running")),{order:o,byKind:s}=AP(i),r=e("tools.activity.liveDonePrefix"),l=[];for(const c of o){const d=s.get(c);if(!d)continue;const f=[{text:`${r}${xP(e,c,d.count)}`,tone:"faint"}];d.errors>0&&f.push(SP(e,d.errors)),l.push({fragments:f})}const a=n===null?null:Zoe(e,n),u=a?[a,...l]:l;return{current:a,done:l,plain:_P(u)}}async function ms(e){const t=typeof navigator<"u"?navigator.clipboard:void 0;if(t&&typeof t.writeText=="function")try{return await t.writeText(e),!0}catch{}return Qoe(e)}function Qoe(e){if(typeof document>"u"||typeof document.execCommand!="function")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",t.style.opacity="0",document.body.appendChild(t);let n=!1;try{t.focus(),t.select(),n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const Yoe={ts:"ts",tsx:"tsx",js:"js",jsx:"jsx",mjs:"js",cjs:"js",vue:"vue",svelte:"svelte",py:"py",rb:"rb",go:"go",rs:"rs",java:"java",kt:"kt",kts:"kts",scala:"scala",swift:"swift",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",cs:"cs",php:"php",sh:"sh",bash:"bash",zsh:"zsh",fish:"fish",ps1:"ps1",bat:"bat",cmd:"bat",sql:"sql",graphql:"graphql",prisma:"prisma",html:"html",htm:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",sass:"sass",less:"less",json:"json",jsonc:"jsonc",json5:"json5",yaml:"yaml",yml:"yml",toml:"toml",ini:"ini",md:"md",markdown:"markdown",mdx:"mdx",lua:"lua",r:"r",dart:"dart",zig:"zig",mk:"makefile",cmake:"cmake",diff:"diff",proto:"proto"},Joe={dockerfile:"dockerfile",makefile:"makefile","cmakelists.txt":"cmake"};function Xoe(e){const t=e?.split(/[\\/]/).pop()?.toLowerCase()??"";if(!t)return;const n=Joe[t];if(n)return n;const i=t.lastIndexOf(".");if(!(i<=0))return Yoe[t.slice(i+1)]}const ese="kimi_desktop",tse="platform",LI="kimi-desktop",NI="kimi-desktop-platform";function nse(){let e=!1,t=null;try{const n=new URLSearchParams(window.location.search);n.has(ese)?(sessionStorage.setItem(LI,"1"),e=!0):e=e||sessionStorage.getItem(LI)==="1";const i=n.get(tse);i?(sessionStorage.setItem(NI,i),t=i):t=sessionStorage.getItem(NI)}catch{}return{isDesktop:e,platform:t}}const Gw=nse(),ep=Gw.isDesktop,Sd=Gw.isDesktop&&Gw.platform==="darwin",ise=["faces","nature","food","activity","objects","symbols"],ose=[["😀","faces","grinning smile happy 笑 开心"],["😄","faces","smile happy joy 笑 开心 高兴"],["😁","faces","grin beaming 咧嘴笑 开心"],["😂","faces","joy laugh tears 笑哭 爆笑"],["🤣","faces","rofl laugh rolling 笑翻 爆笑"],["😊","faces","blush shy happy 微笑 害羞"],["😉","faces","wink 眨眼"],["😍","faces","heart eyes love 爱心眼 喜欢 爱"],["🥰","faces","smiling hearts love 爱心 喜欢"],["😘","faces","kiss 飞吻 亲亲"],["😋","faces","yum tongue 好吃 馋"],["🤪","faces","zany crazy 鬼脸 疯"],["🤔","faces","thinking hmm consider 思考 想"],["🤨","faces","skeptical eyebrow 怀疑 挑眉"],["😐","faces","neutral meh 面无表情 无语"],["😑","faces","expressionless 面无表情 无语"],["🙄","faces","eye roll 翻白眼 无语"],["😶","faces","no mouth silent 无言 沉默"],["🫡","faces","salute 敬礼 收到"],["🤫","faces","shush quiet 嘘 安静"],["🤭","faces","oops giggle 捂嘴 偷笑"],["😴","faces","sleeping sleepy 睡觉 困"],["😪","faces","sleepy tired 困 疲惫"],["😷","faces","mask sick 口罩 生病"],["🤒","faces","sick fever 生病 发烧"],["🤕","faces","hurt bandage 受伤"],["🤢","faces","nauseated 恶心"],["🤯","faces","mind blown explode 震惊 爆炸"],["🥳","faces","party celebrate 庆祝 派对"],["🤩","faces","star struck 星星眼 激动"],["😎","faces","cool sunglasses 酷 墨镜"],["🥸","faces","disguise 伪装 假扮"],["🤓","faces","nerd geek 书呆子 学霸"],["😢","faces","cry sad 哭 难过"],["😭","faces","sob cry loudly 大哭 痛哭"],["😤","faces","triumph huff 哼 生气"],["😡","faces","angry rage mad 生气 愤怒"],["🤬","faces","swearing cursing 骂人 爆粗"],["😱","faces","scream fear 尖叫 害怕"],["😨","faces","fearful 害怕 恐惧"],["🥵","faces","hot heat 热 出汗"],["🥶","faces","cold freezing 冷 冻"],["🥴","faces","woozy drunk 晕 醉"],["😇","faces","angel innocent 天使 无辜"],["🙃","faces","upside down silly 倒脸 哭笑不得"],["💀","faces","skull dead 骷髅 笑死"],["👻","faces","ghost 鬼 幽灵"],["👍","faces","thumbs up like good 赞 好"],["👎","faces","thumbs down dislike 踩 差"],["👏","faces","clap applause 鼓掌 厉害"],["🙌","faces","raise hands celebrate 举手 庆祝"],["🙏","faces","pray thanks please 拜托 感谢 祈祷"],["💪","faces","muscle strong flex 加油 强壮 肌肉"],["👀","faces","eyes look watch 看 围观 眼睛"],["🤝","faces","handshake deal 握手 合作"],["✌️","faces","victory peace 胜利 耶"],["👋","faces","wave hello bye 挥手 你好 再见"],["🤞","faces","crossed fingers luck 祈祷 好运"],["👌","faces","ok okay 好的 可以"],["🫶","faces","heart hands love 比心 爱心"],["✍️","faces","writing hand 写字 记录"],["🧠","faces","brain smart 大脑 聪明"],["🦾","faces","mechanical arm 机械臂 力量"],["👤","faces","person user profile 个人 用户"],["👥","faces","people team group 团队 多人"],["🐶","nature","dog puppy 狗 小狗"],["🐱","nature","cat kitten 猫 小猫"],["🐭","nature","mouse rat 老鼠"],["🐹","nature","hamster 仓鼠"],["🐰","nature","rabbit bunny 兔子"],["🦊","nature","fox 狐狸"],["🐻","nature","bear 熊"],["🐼","nature","panda 熊猫"],["🐨","nature","koala 考拉"],["🐯","nature","tiger 老虎"],["🦁","nature","lion 狮子"],["🐮","nature","cow 牛"],["🐷","nature","pig 猪"],["🐸","nature","frog 青蛙"],["🐵","nature","monkey 猴子"],["🐔","nature","chicken 鸡"],["🐧","nature","penguin 企鹅"],["🐦","nature","bird 鸟"],["🐣","nature","chick hatching 小鸡 孵化"],["🦆","nature","duck 鸭子"],["🦉","nature","owl 猫头鹰"],["🐝","nature","bee 蜜蜂"],["🐛","nature","bug caterpillar 虫子 毛虫"],["🦋","nature","butterfly 蝴蝶"],["🐌","nature","snail slow 蜗牛 慢"],["🐢","nature","turtle slow 乌龟 慢"],["🐍","nature","snake 蛇"],["🐙","nature","octopus 章鱼"],["🦑","nature","squid 鱿鱼"],["🦐","nature","shrimp 虾"],["🦀","nature","crab 螃蟹"],["🐠","nature","tropical fish 鱼 热带鱼"],["🐳","nature","whale 鲸鱼"],["🦈","nature","shark 鲨鱼"],["🐊","nature","crocodile 鳄鱼"],["🦄","nature","unicorn 独角兽"],["🐴","nature","horse 马"],["🐑","nature","sheep 羊 绵羊"],["🐐","nature","goat 山羊"],["🦜","nature","parrot 鹦鹉"],["🌸","nature","blossom flower sakura 樱花 花"],["🌹","nature","rose flower 玫瑰 花"],["🌻","nature","sunflower 向日葵"],["🌷","nature","tulip 郁金香"],["🌱","nature","seedling sprout 发芽 幼苗"],["🌲","nature","tree evergreen 树 松树"],["🌳","nature","deciduous tree 树 大树"],["🌵","nature","cactus 仙人掌"],["🍀","nature","clover luck 四叶草 幸运"],["🍁","nature","maple leaf autumn 枫叶 秋天"],["🍄","nature","mushroom 蘑菇"],["🌈","nature","rainbow 彩虹"],["☀️","nature","sun sunny 太阳 晴"],["🌙","nature","moon crescent 月亮"],["⭐","nature","star 星星"],["🌟","nature","glowing star 星星 闪亮"],["☁️","nature","cloud 云"],["⛅","nature","partly cloudy 多云"],["🌧️","nature","rain rainy 下雨"],["❄️","nature","snowflake snow 雪 雪花"],["⛄","nature","snowman 雪人"],["⚡","nature","lightning bolt 闪电"],["🔥","nature","fire hot 火 燃"],["🌊","nature","wave ocean sea 海浪"],["🏔️","nature","mountain snow 雪山 山"],["☕","food","coffee 咖啡"],["🍵","food","tea 茶"],["🧋","food","bubble tea boba 奶茶"],["🥛","food","milk 牛奶"],["🍺","food","beer 啤酒"],["🍷","food","wine 红酒"],["🥂","food","champagne cheers 香槟 干杯"],["🥤","food","cup straw soda 饮料 可乐"],["🧃","food","juice box 果汁"],["🍎","food","apple 苹果"],["🍊","food","orange tangerine 橙子 橘子"],["🍋","food","lemon 柠檬"],["🍉","food","watermelon 西瓜"],["🍓","food","strawberry 草莓"],["🍑","food","peach 桃子"],["🥭","food","mango 芒果"],["🍍","food","pineapple 菠萝"],["🥝","food","kiwi 猕猴桃"],["🍇","food","grapes 葡萄"],["🍒","food","cherries 樱桃"],["🥑","food","avocado 牛油果"],["🥦","food","broccoli 西兰花"],["🌽","food","corn 玉米"],["🌶️","food","hot pepper spicy 辣椒 辣"],["🍔","food","burger hamburger 汉堡"],["🍟","food","fries 薯条"],["🍕","food","pizza 披萨"],["🌭","food","hot dog 热狗"],["🥪","food","sandwich 三明治"],["🌮","food","taco 墨西哥卷"],["🍜","food","ramen noodles 拉面 面条"],["🍝","food","spaghetti pasta 意面"],["🍣","food","sushi 寿司"],["🍱","food","bento 便当"],["🥟","food","dumpling 饺子"],["🍚","food","rice 米饭"],["🍞","food","bread 面包"],["🥐","food","croissant 可颂 牛角包"],["🧀","food","cheese 奶酪 芝士"],["🍳","food","cooking egg 煎蛋 做饭"],["🍦","food","ice cream 冰淇淋"],["🍰","food","cake 蛋糕"],["🎂","food","birthday cake 生日蛋糕"],["🍫","food","chocolate 巧克力"],["🍩","food","donut doughnut 甜甜圈"],["🍪","food","cookie 饼干"],["🍭","food","lollipop 棒棒糖"],["⚽","activity","soccer football 足球"],["🏀","activity","basketball 篮球"],["🏈","activity","american football 橄榄球"],["⚾","activity","baseball 棒球"],["🎾","activity","tennis 网球"],["🏐","activity","volleyball 排球"],["🏓","activity","ping pong 乒乓球"],["🏸","activity","badminton 羽毛球"],["🥊","activity","boxing 拳击"],["⛳","activity","golf 高尔夫"],["🎣","activity","fishing 钓鱼"],["🏊","activity","swim 游泳"],["🏄","activity","surf 冲浪"],["🚴","activity","cycling 骑行"],["🏋️","activity","weightlifting gym 举重 健身"],["🧘","activity","yoga meditation 瑜伽 冥想"],["🎮","activity","video game controller 游戏 游戏机"],["🎲","activity","dice 骰子"],["🎯","activity","target bullseye 目标 靶心"],["🎳","activity","bowling 保龄球"],["🎰","activity","slot machine 老虎机"],["♟️","activity","chess 国际象棋 棋"],["🎸","activity","guitar 吉他"],["🎹","activity","piano keyboard 钢琴"],["🥁","activity","drum 鼓"],["🎤","activity","microphone sing 麦克风 唱歌"],["🎧","activity","headphones 耳机"],["🎬","activity","clapper movie 电影 拍摄"],["🎨","activity","art palette paint 画画 艺术"],["🎭","activity","theater masks 戏剧 面具"],["🎪","activity","circus 马戏团"],["🎡","activity","ferris wheel 摩天轮"],["✈️","activity","airplane travel flight 飞机 旅行"],["🚗","activity","car drive 汽车 车"],["🚕","activity","taxi 出租车"],["🚌","activity","bus 公交车"],["🚑","activity","ambulance 救护车"],["🚒","activity","fire engine 消防车"],["🚀","activity","rocket launch ship 火箭 发射"],["🛸","activity","ufo flying saucer 飞碟"],["🚲","activity","bicycle bike 自行车"],["🛴","activity","scooter 滑板车"],["🚄","activity","bullet train 高铁 动车"],["🚢","activity","ship 船 轮船"],["⛵","activity","sailboat 帆船"],["🏠","activity","house home 房子 家"],["🏢","activity","office building 公司 办公楼"],["🏥","activity","hospital 医院"],["🏫","activity","school 学校"],["🏖️","activity","beach vacation 海滩 度假"],["⛺","activity","camping tent 露营 帐篷"],["🌋","activity","volcano 火山"],["🗺️","activity","map world 地图"],["🧭","activity","compass 指南针"],["💻","objects","laptop computer 电脑 笔记本"],["🖥️","objects","desktop computer 台式机 电脑"],["⌨️","objects","keyboard 键盘"],["🖱️","objects","computer mouse 鼠标"],["📱","objects","phone mobile 手机"],["🔋","objects","battery 电池"],["🔌","objects","plug electric 插头"],["💾","objects","floppy save 软盘 保存"],["📀","objects","cd disc 光盘"],["🎥","objects","movie camera 摄像机"],["📷","objects","camera 相机"],["🔭","objects","telescope 望远镜"],["📡","objects","satellite antenna 卫星 天线"],["🌐","objects","globe web internet 网络 全球 互联网"],["🕯️","objects","candle 蜡烛"],["💡","objects","bulb idea light 灯泡 点子"],["🔦","objects","flashlight 手电筒"],["📁","objects","folder 文件夹"],["📂","objects","open folder 文件夹 打开"],["🗂️","objects","card index archive 归档 索引"],["📅","objects","calendar date 日历 日期"],["📌","objects","pin pushpin 图钉 置顶"],["📍","objects","round pin location 定位 位置"],["📎","objects","paperclip attachment 回形针 附件"],["✂️","objects","scissors cut 剪刀 剪切"],["📏","objects","ruler 尺子"],["📝","objects","memo note write 备忘 记录"],["✏️","objects","pencil edit write 铅笔 编辑"],["📄","objects","document page 文档 文件"],["📃","objects","page curl 文档 文件"],["📑","objects","bookmark tabs 标签页 文档"],["📚","objects","books 书 书籍"],["📖","objects","open book 打开的书 阅读"],["🔖","objects","bookmark 书签"],["🏷️","objects","label tag 标签"],["📊","objects","bar chart stats 图表 统计"],["📈","objects","chart up growth 上涨 增长"],["📉","objects","chart down 下跌 下降"],["🔍","objects","search magnifier 搜索 查找"],["🔎","objects","search magnifier right 搜索 查找"],["🔒","objects","lock locked 锁 锁定"],["🔓","objects","unlock open 解锁"],["🔑","objects","key 钥匙 密钥"],["🔧","objects","wrench tool 扳手 工具"],["🔨","objects","hammer 锤子"],["🛠️","objects","tools hammer wrench 工具 修理"],["🧰","objects","toolbox 工具箱 工具"],["🪛","objects","screwdriver 螺丝刀 工具"],["🔩","objects","nut and bolt screw 螺母 螺栓"],["🏗️","objects","building construction crane 施工 建造"],["⚙️","objects","gear settings 齿轮 设置"],["🧲","objects","magnet 磁铁"],["⚗️","objects","alembic 蒸馏器 实验"],["🧪","objects","test tube experiment 实验 试管"],["🔬","objects","microscope science 显微镜 科学"],["🤖","objects","robot bot 机器人"],["👾","objects","alien monster game 外星人 游戏"],["💣","objects","bomb 炸弹"],["🧨","objects","firecracker 爆竹"],["🗑️","objects","trash delete 垃圾桶 删除"],["🧹","objects","broom clean 扫帚 清理"],["🧻","objects","toilet paper 纸巾"],["🧽","objects","sponge 海绵"],["📦","objects","package box 包裹 箱子"],["✉️","objects","envelope mail 邮件 信封"],["📮","objects","mailbox postbox 邮箱"],["📧","objects","email mail 邮件"],["📥","objects","inbox tray receive 收件箱 接收"],["📤","objects","outbox tray send 发件箱 发送"],["📞","objects","telephone receiver call phone 电话 通话"],["💬","objects","speech balloon chat message bubble 聊天 对话 气泡 消息"],["💭","objects","thought balloon thinking 思考 想法 气泡"],["📣","objects","megaphone announcement 喇叭 公告"],["📢","objects","loudspeaker broadcast 广播 喇叭 通知"],["🚨","objects","police light alert emergency 警报 告警 紧急"],["🗳️","objects","ballot box vote 投票箱 投票"],["🔗","objects","link chain 链接 连接"],["🧩","objects","puzzle piece plugin 拼图 插件"],["🪄","objects","magic wand 魔法 魔杖"],["🛡️","objects","shield security 盾牌 安全"],["⚔️","objects","crossed swords 交叉剑 战斗"],["💳","objects","credit card 信用卡"],["💰","objects","money bag 钱袋 钱"],["🧾","objects","receipt 收据 小票"],["📿","objects","prayer beads 念珠"],["💍","objects","ring 戒指"],["👑","objects","crown 皇冠"],["🎩","objects","top hat 礼帽"],["🎒","objects","backpack 背包 书包"],["👓","objects","glasses 眼镜"],["🌂","objects","umbrella 雨伞"],["🕰️","objects","mantel clock 座钟"],["⌚","objects","watch 手表"],["⏱️","objects","stopwatch 秒表"],["🧯","objects","fire extinguisher 灭火器"],["🩹","objects","bandage patch fix 创可贴 补丁 修复"],["🎓","objects","graduation cap study learn 毕业 学习"],["🎫","objects","ticket 票 门票 工单"],["✅","symbols","check done complete 完成 对勾"],["✔️","symbols","checkmark correct 对勾 正确"],["❌","symbols","cross x wrong 错误 叉"],["❓","symbols","question help 问题 问号"],["❔","symbols","white question 问题 问号"],["❗","symbols","exclamation important 感叹号 重要"],["❕","symbols","white exclamation 感叹号"],["⚠️","symbols","warning caution 警告 注意"],["🚧","symbols","construction wip 施工 进行中"],["🚫","symbols","prohibited no 禁止"],["💥","symbols","boom explosion 爆炸"],["✨","symbols","sparkles shiny 闪亮 星星"],["🎉","symbols","tada party celebrate 庆祝 撒花"],["🎊","symbols","confetti party 庆祝 彩带"],["🏆","symbols","trophy champion 奖杯 冠军"],["🥇","symbols","gold medal first 金牌 第一"],["🥈","symbols","silver medal second 银牌 第二"],["🥉","symbols","bronze medal third 铜牌 第三"],["🎖️","symbols","military medal 勋章"],["🚩","symbols","red flag mark 红旗 标记"],["🏁","symbols","checkered flag finish 终点 完成"],["⏳","symbols","hourglass time waiting 沙漏 时间"],["⌛","symbols","hourglass done 沙漏 时间"],["🕐","symbols","clock one time 时钟 一点"],["⏰","symbols","alarm clock 闹钟"],["🔔","symbols","bell notification 铃铛 通知"],["🔕","symbols","bell slash mute 静音 免打扰"],["🕹️","symbols","joystick game 摇杆 游戏"],["🔴","symbols","red circle record 红圆 录制"],["🟢","symbols","green circle online 绿圆 在线"],["🟡","symbols","yellow circle 黄圆"],["🟠","symbols","orange circle 橙圆"],["🔵","symbols","blue circle 蓝圆"],["🟣","symbols","purple circle 紫圆"],["⚫","symbols","black circle 黑圆"],["⚪","symbols","white circle 白圆"],["🟥","symbols","red square 红方"],["🟩","symbols","green square 绿方"],["🟦","symbols","blue square 蓝方"],["🔺","symbols","red triangle up 三角 上"],["🔻","symbols","triangle down 三角 下"],["🔸","symbols","diamond orange 菱形"],["🔹","symbols","diamond blue 菱形"],["💠","symbols","diamond dot 菱形 花"],["🔶","symbols","diamond orange big 菱形"],["🔷","symbols","diamond blue big 菱形"],["▶️","symbols","play 播放"],["⏸️","symbols","pause 暂停"],["⏹️","symbols","stop 停止"],["⏺️","symbols","record 录制"],["⏩","symbols","fast forward 快进"],["⏪","symbols","rewind 快退"],["🔀","symbols","shuffle 随机 打乱"],["🔁","symbols","repeat 重复 循环"],["🔂","symbols","repeat one 单曲循环"],["🔄","symbols","refresh sync 刷新 同步"],["🔃","symbols","reload 重载"],["➕","symbols","plus add 加 新增"],["➖","symbols","minus 减"],["➗","symbols","divide 除"],["✖️","symbols","multiply 乘"],["💲","symbols","dollar money 美元 钱"],["™️","symbols","trademark 商标"],["©️","symbols","copyright 版权"],["®️","symbols","registered 注册商标"],["↔️","symbols","left right arrow 左右箭头"],["⬆️","symbols","up arrow 上箭头"],["⬇️","symbols","down arrow 下箭头"],["➡️","symbols","right arrow 右箭头"],["⬅️","symbols","left arrow 左箭头"],["🔙","symbols","back 返回"],["🔜","symbols","soon 很快"],["🔝","symbols","top 置顶 顶部"],["💤","symbols","zzz sleep 睡觉"],["🆕","symbols","new 新 新品"],["🆒","symbols","cool 酷"],["🆓","symbols","free 免费"],["🆗","symbols","ok 可以"],["🆙","symbols","up 提升"],["🆚","symbols","vs versus 对比"],["♾️","symbols","infinity 无限"],["💯","symbols","hundred perfect 满分 一百"],["💢","symbols","anger 生气"],["♨️","symbols","hot springs 温泉"],["🚸","symbols","children crossing 注意儿童"],["🔞","symbols","no one under eighteen 十八禁"],["📵","symbols","no mobile phones 禁止手机"],["❤️","symbols","red heart love 红心 爱"],["🧡","symbols","orange heart 橙心"],["💛","symbols","yellow heart 黄心"],["💚","symbols","green heart 绿心"],["💙","symbols","blue heart 蓝心"],["💜","symbols","purple heart 紫心"],["🖤","symbols","black heart 黑心"],["🤍","symbols","white heart 白心"],["🤎","symbols","brown heart 棕心"],["💔","symbols","broken heart 心碎"],["💕","symbols","two hearts 双心 爱心"],["💖","symbols","sparkling heart 闪亮的心"],["💗","symbols","growing heart 心动"]],MP=ose.map(([e,t,n])=>({emoji:e,group:t,keywords:n}));function sse(e,t=24){const n=e.trim().toLowerCase();if(!n)return[];const i=[];for(const o of MP)if((o.keywords.includes(n)||o.emoji===n)&&(i.push(o.emoji),i.length>=t))break;return i}const rse=8;function lse(e,t,n=rse){return[t,...e.filter(i=>i!==t)].slice(0,n)}function IP(e,t){try{const n=new Date(e);if(Number.isNaN(n.getTime()))return e;const i=new Date,o=c=>String(c).padStart(2,"0"),s=`${o(n.getHours())}:${o(n.getMinutes())}`,r=n.getFullYear()===i.getFullYear(),l=n.getMonth()===i.getMonth(),a=n.getDate()===i.getDate();if(r&&l&&a)return s;const u=new Date(i);return u.setDate(i.getDate()-1),n.getFullYear()===u.getFullYear()&&n.getMonth()===u.getMonth()&&n.getDate()===u.getDate()?`${t} ${s}`:r?`${o(n.getMonth()+1)}-${o(n.getDate())} ${s}`:`${n.getFullYear()}-${o(n.getMonth()+1)}-${o(n.getDate())} ${s}`}catch{return e}}function Ec(e){if(e>=1024*1024)return`${DI(e/(1024*1024))}M`;if(e>=1024){const t=e/1024;return`${t>=100?Math.round(t):DI(t)}k`}return String(e)}function DI(e){const t=e.toFixed(1);return t.endsWith(".0")?t.slice(0,-2):t}function ase(){return window.kimiDesktop}function TP(e,t,n){const i=n.length===0?void 0:n.length===1?n[0]:n;try{ase()?.log?.(e,t,i)}catch{}}function Wa(e,...t){console.warn(e,...t),TP("warn",e,t)}function Cu(e,...t){console.error(e,...t),TP("error",e,t)}function Fc(e){const t=e.split("/").filter(Boolean);return t.length>0?t[t.length-1]:e}const use=/^(?:[A-Za-z]:[\\/]|\\\\|\/\/)/;function Fl(e){const t=e.replaceAll("\\","/"),n=use.test(t),i=t.replace(/\/+$/,"");return n?i.toLowerCase():i}function cse(e){const{workspaces:t,sessions:n,hiddenWorkspaceRoots:i,sessionsHasMoreByWorkspace:o}=e,s=new Set(i.map(Fl)),r=new Map;for(const f of t){const h=Fl(f.root);s.has(h)||r.has(h)||r.set(h,{...f})}for(const f of n){const h=f.cwd;if(!h)continue;const m=Fl(h);s.has(m)||r.has(m)||r.set(m,{id:f.workspaceId??h,root:h,name:Fc(h),sessionCount:0})}const l=new Map;for(const f of t){const h=Fl(f.root);l.has(h)||l.set(h,f.id)}const a=new Map;for(const f of n){const h=l.get(Fl(f.cwd))??f.workspaceId??f.cwd;a.set(h,(a.get(h)??0)+1)}const u=[];for(const f of t){const h=Fl(f.root);!s.has(h)&&!u.includes(h)&&u.push(h)}const c=[...r.keys()].filter(f=>!u.includes(f));c.sort((f,h)=>r.get(f).root.localeCompare(r.get(h).root));const d=[];for(const f of[...u,...c]){const h=r.get(f),m=a.get(h.id)??a.get(h.root)??0,g=o[h.id]===!1?m:Math.max(h.sessionCount,m);d.push({...h,sessionCount:g})}return d}function dse(e,t){if(e===void 0||e.length===0)return;const n=t?.find(i=>i.id===e)??t?.find(i=>i.model===e);return n?.displayName||n?.model||(e.includes("/")?e.split("/").pop():e)}function fse(e){if(!(e===void 0||e.length===0||e==="off"||e==="on"))return e}function mm(e){if(e===void 0)return"toggle";const t=e.capabilities??[];return t.includes("always_thinking")?"always-on":t.includes("thinking")||e.adaptiveThinking===!0?"toggle":"unsupported"}function EP(e){return e?.supportEfforts??[]}function hse(e){return e[Math.floor(e.length/2)]}function wh(e){if(mm(e)==="unsupported")return"off";const t=EP(e);return t.length>0?e?.defaultEffort??hse(t):"on"}function gm(e){const t=EP(e),n=mm(e);return t.length>0?n==="always-on"?[...t]:["off",...t]:n==="always-on"?["on"]:n==="unsupported"?["off"]:["on","off"]}function $d(e){return e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1)}function pse(e){return e!=="off"}function nk(e,t){return gm(e).includes(t)}function Gb(e,t){return t==="off"?"off":t==="on"?wh(e):t}function Q6(e,t){return t??wh(e)}function mse(e,t){if(e==="off")return{enabled:!1};if(e==="on")return{enabled:!0};const n=t?.at(-1);return n!==void 0&&e===n?{enabled:!0}:{enabled:!0,effort:e}}function Y6(e,t){if(!e||typeof e!="object")return;const{enabled:n,effort:i}=e;if(n===!1)return nk(t,"off")?"off":void 0;if(typeof i=="string"&&nk(t,i))return i}function FI(e,t,n,i){return!n||e===void 0?t:Y6(i,e)??wh(e)}let gse=0;function Gy(e,t){const n=++gse;return e.pendingThinkingBySession[t]=n,n}function pa(e,t,n){return n===void 0||e.pendingThinkingBySession[t]!==n?!1:(delete e.pendingThinkingBySession[t],!0)}function J6(e,t,n){e.pendingThinkingBySession[t]===void 0&&(e.thinkingBySession[t]=n)}function LP(){if(!(typeof window>"u"))return window.kimiDesktop}function q2(){return typeof LP()?.getPathForFile=="function"}function Qb(e){const t=LP()?.getPathForFile;if(typeof t!="function")return null;try{return t(e)}catch{return null}}function BI(e){return Qb(e)}function Y3(e){return Array.from(e.dataTransfer?.items??[]).some(t=>t.kind==="file"&&t.type==="")}function Qw(e,t=Qb){const n=Array.from(e.dataTransfer?.items??[]);if(n.length===0){const l=Array.from(e.dataTransfer?.files??[]);return{files:l,folderPaths:[],items:l.map(a=>({kind:"file",file:a}))}}const i=[],o=[],s=[],r=new Set;for(const l of n){if(l.kind!=="file")continue;const a=l.getAsFile();if(a)if(l.webkitGetAsEntry()?.isDirectory===!0){const u=t(a);if(!u||r.has(u))continue;r.add(u),o.push(u),s.push({kind:"folder",path:u})}else i.push(a),s.push({kind:"file",file:a})}return{files:i,folderPaths:o,items:s}}function vse(e,t=Qb){return Qw(e,t).folderPaths}function yse(e,t=Qb){const n=c=>`${c.size}:${c.type}:${c.name}`,i=[],o=new Set,s=new Set,r=[],l=new Set,a=[];let u=!1;for(const c of Array.from(e.items??[])){if(c.kind!=="file")continue;const d=c.getAsFile();if(c.webkitGetAsEntry?.()?.isDirectory===!0){u=!0,d&&s.add(n(d));const h=d?t(d):null;if(!h||l.has(h))continue;l.add(h),r.push(h),a.push({kind:"folder",path:h});continue}if(!d)continue;const f=n(d);o.has(f)||(o.add(f),i.push(d),a.push({kind:"file",file:d}))}for(const c of Array.from(e.files??[])){const d=n(c);s.has(d)||o.has(d)||(o.add(d),i.push(c),a.push({kind:"file",file:c}))}return{files:i,folderPaths:r,hasFolders:u,items:a}}function NP(e,t,n){return e==="unsupported"?[{titleKey:n.titleKey,hintKey:n.hintKey,disabled:!1}]:t.map(i=>({...i,disabled:e==="pending"}))}function kse(e,t,n){return n?e.filter(i=>i.sessions.length>0||i.workspace.id===t):e}const bse=/([\s\S]*?)<\/summary>/,wse=/([\s\S]*?)<\/resume_hint>/,J3=/]*)>|<\/subagent>/g,Cse="",RI=/(completed|failed|aborted):\s*(\d+)/g,OI=/([a-z_]+)="([^"]*)"/g;function Ase(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function xse(e){const t={};OI.lastIndex=0;let n;for(;(n=OI.exec(e))!==null;)t[n[1]]=Ase(n[2]);return t}function Sse(e){const t={completed:0,failed:0,aborted:0};RI.lastIndex=0;let n;for(;(n=RI.exec(e))!==null;){const i=n[1];t[i]=Number(n[2])}return t}function _se(e,t){const n=xse(e);return{outcome:n.outcome??"completed",item:n.item,agentId:n.agent_id,mode:n.mode,state:n.state,body:t.trim()}}function Mse(e){const t=[],n=[];J3.lastIndex=0;let i;for(;(i=J3.exec(e))!==null;)if(i[0]===Cse){if(n.length===0)continue;const o=n.pop();o&&n.length===0&&t.push(_se(o.attrs,e.slice(o.bodyStart,i.index)))}else n.length===0?n.push({attrs:i[1]??"",bodyStart:J3.lastIndex}):n.push(null);return t}function Ise(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` -`):e;if(!t.includes(""))return null;const n=bse.exec(t)?.[1]?.trim()??"",{completed:i,failed:o,aborted:s}=Sse(n),r=wse.exec(t)?.[1]?.trim(),l=Mse(t),a=i+o+s;return{summary:n,completed:i,failed:o,aborted:s,total:a>0?a:l.length,subagents:l,resumeHint:r}}const Tse=3,Ese="Use TaskOutput with one of the task_id values above to read the full output.";function Jf(e,t){return new RegExp(`^${t}: (.+)$`,"m").exec(e)?.[1]}function Lse(e,t){const n=Number(Jf(e,t)??0);return Number.isFinite(n)?n:0}function DP(e,t){return e.match(t)?.length??0}function $I(e,t,n){const i=new RegExp(`^\\[${t}\\]$`,"gm"),o=[];let s;for(;(s=i.exec(e))!==null;)s.index>=n&&o.push(s.index);return o}function PI(e,t){return t>=2&&e[t-1]===` -`&&e[t-2]===` -`}function zI(e,t,n){const i=e.slice(t+n.length+2),o=/^\[/m.exec(i);return(o===null?i:i.slice(0,o.index)).trim()}function Nse(e){return e.endsWith(Ese)}function Dse(e){const t=Jf(e,"active_background_tasks");if(t===void 0)return!1;const n=Number(t);return Number.isFinite(n)?DP(e,/^task_id: /gm)===n:!1}function Fse(e,t){return[...e.matchAll(/^description: (.+)$/gm)].map(i=>i[1]??"").slice(0,Math.min(Tse,t))}function Bse(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` -`):e,n=/^\[/m.exec(t),i=n===null?t:t.slice(0,n.index),o=Jf(i,"wait_status");if(o!=="completed"&&o!=="timed_out"&&o!=="no_tasks")return null;const s=Number(Jf(i,"waited_ms")??0);let r,l=n?.index??t.length;o==="completed"&&n!==null&&t.slice(n.index).startsWith("[finished]")&&(r=zI(t,n.index,"finished"),l=n.index+10);let a=0,u=-1;for(const f of $I(t,"completed_during_wait",l)){if(!PI(t,f))continue;const h=zI(t,f,"completed_during_wait");Nse(h)&&(a=DP(h,/^task_id: /gm),u=f)}let c=0,d=[];for(const f of $I(t,"still_running",l)){if(u>=0&&fc.replace(/\\/g,"/"),i=n(e);let o=n(t);o.length>1&&(o=o.replace(/\/+$/,""));const s=jI(o)||jI(i),r=s?o.toLowerCase():o,l=s?i.toLowerCase():i,a=r.endsWith("/")?r:`${r}/`;if(l!==r&&!l.startsWith(a))return null;const u=l===r?"":i.slice(a.length);return u.split("/").includes("..")?null:u||null}const ln={permission:"kimi-web.permission",permissionBySession:"kimi-web.permission-by-session",permissionExplicit:"kimi-web.permission-explicit",permissionStickyAt:"kimi-web.permission-sticky-at",permissionDaemonDefault:"kimi-web.permission-daemon-default",activeWorkspace:"kimi-active-workspace",planArmed:"kimi-web.plan-armed",swarmMode:"kimi-web.swarm-mode",goalMode:"kimi-web.goal-mode",fontScale:"kimi-web.font-scale",starredModels:"kimi-web.starred-models",unread:"kimi-web.unread",onboarded:"kimi-web.onboarded",colorScheme:"kimi-web.color-scheme",hiddenWorkspaces:"kimi-web.hidden-workspaces",collapsedWorkspaces:"kimi-web.collapsed-workspaces",workspaceOrder:"kimi-web.workspace-order",workspaceSort:"kimi-web.workspace-sort",workspaceRecencyFloor:"kimi-web.workspace-recency-floor",pinnedSessions:"kimi-web.pinned-sessions",pinnedCollapsed:"kimi-web.pinned-collapsed",workspaceNameOverrides:"kimi-web.workspace-name-overrides",notifyEnabled:"kimi-web.notify-enabled",notifySound:"kimi-web.notify-sound",inputHistory:"kimi-web.input-history",locale:"kimi-locale",clientId:"kimi-web.client-id",debug:"kimi-web.debug",openInDefaultTarget:"kimi-web.open-in.default-target",openInLastTarget:"kimi-web.open-in.last-target",sidebarCollapsed:"kimi-web.sidebar-collapsed",sidebarWidth:"kimi-web.sidebar-width",sidebarViewMode:"kimi-web.sidebar-view-mode",mobileSwitcherViewMode:"kimi-web.mobile-switcher-view-mode",sidebarPinnedHeight:"kimi-web.sidebar-pinned-height",shortcutOverrides:"kimi-web.shortcut-overrides",dockIconChoice:"kimi-web.dock-icon-choice",updateSkippedVersion:"kimi-web.update-skipped-version",canarySkippedVersion:"kimi-web.canary-skipped-version",planMode:"kimi-web.plan-mode",codeFont:"kimi-web.code-font",contentAlign:"kimi-web.content-align",theme:"kimi-web.theme",thinking:"kimi-web.thinking",accent:"kimi-web.accent",notifyOnComplete:"kimi-web.notify-on-complete",notifyOnQuestion:"kimi-web.notify-on-question",notifyOnApproval:"kimi-web.notify-on-approval",soundOnComplete:"kimi-web.sound-on-complete"},$se="__new__";function dd(e){return e&&e.length>0?e:$se}function ik(e){return`kimi-web.draft.${dd(e)}`}function HI(e){return`kimi-web.attachment-draft.${dd(e)}`}function ok(e){return`kimi-web.draft-atts.${dd(e)}`}function vo(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function go(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function Es(e){try{globalThis.localStorage.removeItem(e)}catch{}}function Bc(e){const t=vo(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}function Wu(e,t){try{globalThis.localStorage.setItem(e,JSON.stringify(t))}catch{}}function e7(){const e=vo(ln.unread);if(!e)return{};try{const t=JSON.parse(e);if(!t||typeof t!="object")return{};const n={};for(const[i,o]of Object.entries(t))o===!0&&(n[i]=!0);return n}catch{return{}}}function t7(e){const n={...e7()};for(const[i,o]of Object.entries(e))o?n[i]=!0:delete n[i];go(ln.unread,JSON.stringify(n))}function Pse(){const e=Bc(ln.collapsedWorkspaces);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function X3(e){Wu(ln.collapsedWorkspaces,Array.from(e))}function zse(){return Bc(ln.pinnedCollapsed)===!0}function Yw(e){Wu(ln.pinnedCollapsed,e)}function jse(){return vo(ln.sidebarViewMode)==="flat"?"flat":"grouped"}function Hse(e){go(ln.sidebarViewMode,e)}function Wse(){return vo(ln.mobileSwitcherViewMode)==="grouped"?"grouped":"flat"}function qse(e){go(ln.mobileSwitcherViewMode,e)}function Use(){const e=Bc(ln.workspaceOrder);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function FP(e){Wu(ln.workspaceOrder,Array.from(e))}function Vse(){return vo(ln.workspaceSort)==="recent"?"recent":"manual"}function Kse(e){go(ln.workspaceSort,e)}function Zse(){const e=Bc(ln.workspaceRecencyFloor);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="number"&&Number.isFinite(i)&&(t[n]=i);return t}function BP(e){Wu(ln.workspaceRecencyFloor,e)}function RP(){const e=Bc(ln.pinnedSessions);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function e8(e){Wu(ln.pinnedSessions,Array.from(e))}function U2(){const e=Bc(ln.workspaceNameOverrides);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="string"&&(t[n]=i);return t}function WI(e){Wu(ln.workspaceNameOverrides,e)}function Pd(e){return e==="manual"||e==="auto"||e==="yolo"?e:void 0}function qI(){return Pd(vo(ln.permission))??"manual"}function Gse(e){go(ln.permission,e)}function UI(){const e=vo(ln.permissionStickyAt),t=Number(e);return Number.isFinite(t)&&t>0?t:e===null&&vo(ln.permission)!==null?1:0}function Sp(e){go(ln.permissionStickyAt,String(e))}function OP(e){const t=vo(e);if(!t)return{};try{const n=JSON.parse(t);if(!n||typeof n!="object"||Array.isArray(n))return{};const i={};for(const[o,s]of Object.entries(n)){const r=Pd(s);r!==void 0&&(i[o]=r)}return i}catch{return{}}}function $P(e,t){go(e,JSON.stringify(t))}function VI(){return OP(ln.permissionBySession)}function t8(e){$P(ln.permissionBySession,e)}function KI(){return OP(ln.permissionExplicit)}function Qse(e){$P(ln.permissionExplicit,e)}const ZI={manual:0,yolo:1,auto:2};function Yse(e){let t="auto",n=!1;for(const i of e)i!==void 0&&(n=!0,ZI[i]typeof n=="number"&&Number.isFinite(n)&&n>0).slice(0,2);return t.length===0?PP:Math.round(t.reduce((n,i)=>n+i,0))}function zP(e){return e==null||!Number.isFinite(e)||e<=0?PP:Math.round(e)}const Jw=96;function tre(e,t,n){const i=e.filter(r=>r.visible),o=i[0],s=i[2];return{firstRowHeight:o?o.height:null,spanToThirdRow:s?s.viewportBottom-t+n:null}}function nre(e,t,n){const i=s=>s!=null&&Number.isFinite(s)&&s>0;return(s=>s!=null&&Number.isFinite(s)&&s>=0)(t)?i(e)?Math.round(e)+Math.round(t):i(n)?Math.round(n)*3+Math.round(t):Jw:Jw}function ire(e){return e>Xse}function GI(e){return Math.round(e*.4)}function ore(e){return e==null||!Number.isFinite(e)||e<=0?Jw:Math.round(e)}function sre(e,t,n,i){const o=zP(n),s=ore(i),r=Math.max(o,Math.round(e*.6));if(t===void 0||!Number.isFinite(t))return r;const l=Math.round(t)-s;return Math.max(o,Math.min(r,l))}function n8(e,t,n){return t==null||!Number.isFinite(t)?e:Math.max(zP(n),Math.min(e,Math.round(t)))}function rre(e,t,n,i){return Math.max(Math.round(i),Math.min(Math.round(e+t),Math.round(n)))}function lre(e,t){return t===null||t===e}const sk="application/x-kimi-session-row";function are(e,t){return e.includes(t)?e:[...e,t]}function ure(e,t){return e.includes(t)?e.filter(n=>n!==t):e}function cre(e,t){const n=new Set(t),i=new Map,o=[];for(const r of e)n.has(r.id)?i.set(r.id,r):o.push(r);const s=[];for(const r of t){const l=i.get(r);l!==void 0&&s.push(l)}return{pinned:s,unpinned:o}}const dre={"&":"&","<":"<",">":">",'"':""","'":"'"};function t0(e){return e.replace(/[&<>"']/g,t=>dre[t]??t)}function fre(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hre(e,t,n=40){const i=e.replace(/\s+/g," ").trim();if(i.length===0)return"";const o=t.trim();if(o.length===0)return QI(i,n*2);const s=i.toLowerCase().indexOf(o.toLowerCase());if(s<0)return QI(i,n*2);const r=Math.max(0,s-n),l=Math.min(i.length,s+o.length+n),a=r>0,u=l`${s}`)}const jP=/([\s\S]*?)<\/kbd>/g;function pre(e){let t="",n=0;for(const i of e.matchAll(jP))t+=t0(e.slice(n,i.index)),t+=`${t0(i[1]??"")}`,n=i.index+i[0].length;return t+t0(e.slice(n))}function mre(e){return e.replace(jP,"$1")}let gre=0;function vre(e,t){const n=++gre;return e.pendingPlanBySession[t]=n,n}function n7(e,t,n){return n===void 0||e.pendingPlanBySession[t]!==n?!1:(delete e.pendingPlanBySession[t],!0)}function Xw(e,t,n){e.pendingPlanBySession[t]===void 0&&(e.planModeBySession[t]=n)}function yre(e,t,n){return e.find(i=>i.window?.duration===t&&i.window?.unit===n)}const kre=30;function bre(e){return e!==void 0&&e0?(l.push(t("settings.planUsage.durationDay",{n:o})),l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):s>0?(l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):r>0?l.push(t("settings.planUsage.durationMinute",{n:r})):l.push(t("settings.planUsage.durationSecond",{n:i})),t("settings.planUsage.resetsIn",{duration:l.join(" ")})}function eC(e,t){if(t<=0)return"ok";const n=e/t;return n>=.85?"danger":n>=.5?"warn":"ok"}function Qy(e,t){return t<=0?0:Math.min(100,Math.round(e/t*100))}function wre(e,t){const n=(e/100).toFixed(2);switch(t.toUpperCase()){case"CNY":return{symbol:"¥",number:n};case"USD":return{symbol:"$",number:n};default:return{symbol:"",number:`${n} ${t}`}}}const qP="kimiWeb.compaction",UP="managed:kimi-code",Cre=["kimi","openai","openai_responses","anthropic","google-genai","vertexai"];function V2(){return{model:"",maxContextSize:"",displayName:"",capabilities:["tool_use","thinking"],supportEfforts:[],adaptiveThinking:!0}}function tC(e,t){const n=[];for(const i of Object.values(t??{})){if(i===null||typeof i!="object")continue;const o=i;o.provider===e.id&&n.push({model:typeof o.model=="string"?o.model:"",maxContextSize:typeof o.maxContextSize=="number"?String(o.maxContextSize):"",displayName:typeof o.displayName=="string"?o.displayName:"",capabilities:Array.isArray(o.capabilities)?o.capabilities.filter(s=>typeof s=="string"):[],supportEfforts:Array.isArray(o.supportEfforts)?o.supportEfforts.filter(s=>typeof s=="string"):[],...typeof o.adaptiveThinking=="boolean"?{adaptiveThinking:o.adaptiveThinking}:{}})}return n}const VP=/^[\p{L}\p{N}][\p{L}\p{N}\-_ ]*$/u;function Are(e,t={}){const n=e.id.trim();if(n==="")return"idRequired";if(!VP.test(n))return"idInvalid";if(t.requireApiKey===!0&&e.apiKey.trim()==="")return"apiKeyRequired";if(t.requireBaseUrl===!0&&e.baseUrl.trim()==="")return"baseUrlRequired";if(e.models.length===0)return"modelRequired";for(const i of e.models){if(i.model.trim()==="")return"modelRequired";const o=i.maxContextSize.trim();if(o==="")return"contextSizeRequired";if(!/^\d+$/.test(o)||Number(o)<1)return"contextSizeInvalid"}return null}function KP(e){return e.map(t=>{const n=t.displayName.trim();return{model:t.model.trim(),maxContextSize:Number(t.maxContextSize.trim()),...t.capabilities.length>0?{capabilities:[...t.capabilities]}:{},...t.supportEfforts.length>0?{supportEfforts:[...t.supportEfforts]}:{},...t.adaptiveThinking!==void 0?{adaptiveThinking:t.adaptiveThinking}:{},...n===""?{}:{displayName:n}}})}function xre(e){const t=e.apiKey.trim(),n=e.baseUrl.trim();return{id:e.id.trim(),type:e.type,models:KP(e.models),...t===""?{}:{apiKey:t},...n===""?{}:{baseUrl:n}}}function Sre(e,t,n){const i=KP(e.models),o=e.id.trim(),s=e.apiKey.trim(),r=e.baseUrl.trim(),l=n?.existingDefaultModel?.trim()??"",a=l.indexOf("/")>=0?l.slice(l.indexOf("/")+1):l;return{...t!==void 0&&o!==""&&o!==t.id?{newId:o}:{},type:e.type,models:i,...s===""&&n?.includeBlankApiKey!==!0?{}:{apiKey:s},...r===""?{}:{baseUrl:r},...a!==""&&i.some(u=>u.model===a)?{defaultModel:a}:{}}}function ZP(e){return e.id===UP&&e.type==="kimi"}const rk="/devices/",GP="kimi-rc-device-id";function _re(e){return new URLSearchParams(e.search).get("rc")==="1"}function QP(e){const{pathname:t}=e;if(!t.startsWith(rk))return;const n=t.slice(rk.length).split("/")[0];if(n)try{const i=decodeURIComponent(n);return i.length>0?i:void 0}catch{return}}function Mre(e){if(QP({pathname:e})===void 0)return e;const t=e.slice(rk.length),n=t.indexOf("/");return n<0?"/":t.slice(n)}function Ire(e){return`${rk}${encodeURIComponent(e)}/`}function YP(e,t){const n=new URLSearchParams(t),i=n.get("rc"),o=n.get("from");if(i===null&&o===null)return e;const s=new URLSearchParams;return i!==null&&s.set("rc",i),o!==null&&s.set("from",o),`${e}?${s.toString()}`}function Tre(e){const t=QP(e);return t!==void 0?(Lre(t),t):Ere()}function Ere(){try{return window.sessionStorage.getItem(GP)??void 0}catch{return}}function Lre(e){try{window.sessionStorage.setItem(GP,e)}catch{}}const Nre=/^(\d+)\t(.*)$/;function Dre(e){const t=e.at(-1)===""?e.slice(0,-1):e;if(t.length===0)return null;const n=[],i=[];for(const o of t){const s=Nre.exec(o);if(!s)return null;i.push(Number(s[1])),n.push(s[2]??"")}return{contents:n,lineNumbers:i}}function YI(e,t){let n="",i=t;const o=/^((?:\\\\|\/\/)[^\\/]+[\\/][^\\/]+)/.exec(t),s=/^([a-zA-Z]:)[\\/]?/.exec(t);o?(n=o[1],i=t.slice(o[1].length)):t.startsWith("/")?(n="/",i=t.slice(1)):s&&(n=s[1],i=t.slice(s[0].length));const r=n!=="",l=i.split(/[\\/]+/).filter(Boolean);for(const u of e.split("/"))u===""||u==="."||(u===".."?l.length>0&&l[l.length-1]!==".."?l.pop():r||l.push(".."):l.push(u));const a=l.join("/");return n==="/"?`/${a}`:n!==""?a?`${n}/${a}`:`${n}/`:a}function JP(e,t){for(const n of e.stateMachineNames){const i=(e.stateMachineInputs(n)??[]).find(o=>o.name===t);if(i!==void 0)return i}return null}function Fre(e,t){const n=JP(e,t);return n!==null&&typeof n.fire=="function"?(n.fire(),!0):!1}function JI(e,t,n){const i=JP(e,t);return i!==null&&typeof i.value==typeof n?(i.value=n,!0):!1}const i8={isPageHidden:()=>typeof document<"u"&&document.hidden,onVisibilityChange:e=>typeof document>"u"?()=>{}:(document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)),observeIntersection:(e,t)=>{if(typeof IntersectionObserver!="function")return()=>{};const n=new IntersectionObserver(i=>{const o=i[0];o!==void 0&&t(o.isIntersecting)});return n.observe(e),()=>n.disconnect()}};function XP(e,t,n={}){const i=n.isPageHidden??i8.isPageHidden,o=n.onVisibilityChange??i8.onVisibilityChange,s=n.observeIntersection??i8.observeIntersection;let r=!i(),l=!0,a=!1;function u(){const f=!r||!l;f!==a&&(a=f,a?e.pause():e.play())}const c=o(()=>{r=!i(),u()}),d=s(t,f=>{l=f,u()});return u(),()=>{c(),d()}}const Ys="kimi-web.server-credential",Bre="token",Rre=10080*60*1e3;let Mu;const nC=new Set;function Ore(){if(typeof window>"u")return;const e=window.location.hash??"";if(!e.startsWith("#"))return;const n=new URLSearchParams(e.slice(1)).get(Bre);if(!n)return;const i=new URL(window.location.href);return i.hash="",window.history.replaceState(window.history.state,"",`${i.pathname}${i.search}`),n}function iC(e){return{version:1,credential:e,expiresAt:Date.now()+Rre}}function $re(e){return JSON.stringify(e)}function i7(e){try{const t=JSON.parse(e);if(typeof t!="object"||t===null)return;const n=t;return n.version!==1||typeof n.credential!="string"||n.credential.length===0||typeof n.expiresAt!="number"||!Number.isFinite(n.expiresAt)?void 0:{version:1,credential:n.credential,expiresAt:n.expiresAt}}catch{return}}function oC(e){globalThis.localStorage?.setItem(Ys,$re(e))}function Pre(){try{const e=globalThis.localStorage?.getItem(Ys);if(e){const n=i7(e);if(n===void 0){const i=iC(e);let o=!1;try{oC(i),o=!0}catch{}if(!o)try{globalThis.localStorage?.getItem(Ys)===e&&globalThis.localStorage?.removeItem(Ys),o=!0}catch{}try{globalThis.sessionStorage?.removeItem(Ys)}catch{}return o?i:void 0}if(n.expiresAt>Date.now())return n;globalThis.sessionStorage?.removeItem(Ys),globalThis.localStorage?.getItem(Ys)===e&&globalThis.localStorage?.removeItem(Ys);return}const t=globalThis.sessionStorage?.getItem(Ys);if(t){const n=iC(t);let i=!1;try{oC(n),i=!0}catch{}try{globalThis.sessionStorage?.removeItem(Ys),i=!0}catch{}return i?n:void 0}return}catch{return}}function zre(){const e=Ore();return e?(ez(e),!0):(Mu=Pre(),Mu!==void 0)}function jre(){if(Mu!==void 0){if(Mu.expiresAt<=Date.now()){Hre(Mu);return}return Mu.credential}}function Hre(e){Mu=void 0;try{globalThis.sessionStorage?.removeItem(Ys);const t=globalThis.localStorage?.getItem(Ys),n=t==null?void 0:i7(t);(n===void 0?t===e.credential:n.credential===e.credential&&n.expiresAt===e.expiresAt)&&globalThis.localStorage?.removeItem(Ys)}catch{}}function ez(e){const t=iC(e);Mu=t;try{oC(t)}catch{}try{globalThis.sessionStorage?.removeItem(Ys)}catch{}}function Wre(){const e=Mu;Mu=void 0;try{const t=globalThis.localStorage?.getItem(Ys),i=(t==null?void 0:i7(t))?.credential??t;e!==void 0&&i===e.credential&&globalThis.localStorage?.removeItem(Ys),globalThis.sessionStorage?.removeItem(Ys)}catch{}}function qre(e){return nC.add(e),()=>{nC.delete(e)}}function Ure(){Wre();for(const e of nC)try{e()}catch{}}function Rv(e){return e.approvalCount>0?"awaiting-approval":e.questionCount>0?"awaiting-question":e.pendingInteraction==="approval"?"awaiting-approval":e.pendingInteraction==="question"?"awaiting-question":e.busy?"running":e.lastTurnReason==="failed"?"aborted":e.unread?"unread":"idle"}function XI(e){let t=null;for(const n of e){const i=Rv(n);if(i==="awaiting-approval")return"approval";i==="awaiting-question"?t="question":i==="aborted"?t!=="question"&&(t="aborted"):i==="unread"&&t===null&&(t="unread")}return t}let eT;function Vre(e){if(typeof Intl.Segmenter=="function")return eT??=new Intl.Segmenter("und",{granularity:"grapheme"}),eT.segment(e)}const Kre=/\p{Emoji_Presentation}/u,Zre=/\p{Regional_Indicator}/u,Gre=/\p{Extended_Pictographic}/u,Qre="️";function Yre(e){return Kre.test(e)||Zre.test(e)?!0:Gre.test(e)&&e.includes(Qre)}function tz(e){const t=Vre(e)?.[Symbol.iterator]().next().value;if(t===void 0||!Yre(t.segment))return{emoji:null,rest:e};const n=e.slice(t.index+t.segment.length).replace(/^\s+/,"");return{emoji:t.segment,rest:n}}function Jre(e,t){const{rest:n}=tz(e),i=t?.trim()??"";return i?n?`${i} ${n}`:i:n}function nz(e,t){const n=e.findIndex(s=>s.id===t.id);if(n!==-1&&e[n].updatedAt===t.updatedAt)return e.map(s=>s.id===t.id?t:s);const i=e.filter(s=>s.id!==t.id),o=i.findIndex(s=>s.updatedAt0?i:void 0}catch{return}}function Xre(e){return e===void 0||e.length===0?"/":`${sC}${encodeURIComponent(e)}`}function oz(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function ele(e,t=oz()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyA"||e.key.toLowerCase()==="a")&&!e.defaultPrevented}function tle(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement&&(e.isContentEditable||e.closest("input, textarea")!==null)}function nle(e,t){return typeof Element>"u"||!(e instanceof Element)?null:e.closest(t)}function iT(e){e.ownerDocument.getSelection()?.selectAllChildren(e)}function ile(e,t=oz()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyK"||e.key.toLowerCase()==="k")&&!e.defaultPrevented}const ole=[{pattern:/\brm\s+(?:-[a-zA-Z]*[rf][a-zA-Z]*|--recursive|--force)\b/,detail:"rm -rf"},{pattern:/\bsudo\b/,detail:"sudo"},{pattern:/\bmkfs(?:\.[a-z0-9]+)?\b/,detail:"mkfs"},{pattern:/\bdd\b[^|;&]*\bof=/,detail:"dd of=…"},{pattern:/>\s*\/dev\/(?:sd|nvme|disk|hd)/,detail:"> /dev/…"},{pattern:/:\(\)\s*\{/,detail:"fork bomb"},{pattern:/\bgit\s+push\b[^|;&]*(?:--force(?:-with-lease)?\b|\s-f\b)/,detail:"git push --force"},{pattern:/\bchmod\s+(?:-[a-zA-Z]+\s+)*777\b/,detail:"chmod 777"},{pattern:/\b(?:curl|wget)\b[^|;&]*\|\s*(?:sudo\s+)?(?:ba|z)?sh\b/,detail:"curl | sh"},{pattern:/\b(?:shutdown|reboot|poweroff|halt)\b/,detail:"shutdown / reboot"}];function sle(e){const t=e.replace(/"[^"]*"|'[^']*'/g," ");for(const{pattern:n,detail:i}of ole)if(n.test(t))return i}function rf(e){return Array.isArray?Array.isArray(e):rz(e)==="[object Array]"}function rle(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rC(e){return e==null?"":rle(e)}function kr(e){return typeof e=="string"}function Yy(e){return typeof e=="number"}function lle(e){return e===!0||e===!1||ale(e)&&rz(e)=="[object Boolean]"}function sz(e){return typeof e=="object"}function ale(e){return sz(e)&&e!==null}function Bl(e){return e!=null}function K2(e){return!e.trim().length}function rz(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ule="Incorrect 'index' type",lC="Invalid doc index: must be a non-negative integer within the bounds of the docs array",cle=e=>`Invalid value for key ${e}`,dle=e=>`Pattern length exceeds max of ${e}.`,fle=e=>`Missing ${e} property in key`,hle=e=>`Property 'weight' in key '${e}' must be a positive integer`,ple="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",oT=Object.prototype.hasOwnProperty;var mle=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(n=>{const i=lz(n);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(n=>{n.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function lz(e){let t=null,n=null,i=null,o=1,s=null;if(kr(e)||rf(e))i=e,t=sT(e),n=Jy(e);else{if(!oT.call(e,"name"))throw new Error(fle("name"));const r=e.name;if(i=r,oT.call(e,"weight")&&e.weight!==void 0&&(o=e.weight,o<=0))throw new Error(hle(Jy(r)));t=sT(r),n=Jy(r),s=e.getFn??null}return{path:t,id:n,weight:o,src:i,getFn:s}}function sT(e){return rf(e)?e:e.split(".")}function Jy(e){return rf(e)?e.join("."):e}function gle(e,t){const n=[];let i=!1;const o=(s,r,l,a)=>{if(Bl(s))if(!r[l])n.push(a!==void 0?{v:s,i:a}:s);else{const u=s[r[l]];if(!Bl(u))return;if(l===r.length-1&&(kr(u)||Yy(u)||lle(u)||typeof u=="bigint"))n.push(a!==void 0?{v:rC(u),i:a}:rC(u));else if(rf(u)){i=!0;for(let c=0,d=u.length;ce.score===t.score?e.idx=9&&e<=13||e===32||e===160}function Cle(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(o){let s=0,r=!1;for(let a=0;a{this._keysMap[t.id]=n})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(kr(this.docs[0]))for(let n=0;ne&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const i of e)Number.isInteger(i)&&i>=0&&t.add(i);if(t.size===0)return;this.records=this.records.filter(i=>!t.has(i.i));const n=Array.from(t).sort((i,o)=>i-o);for(const i of this.records){let o=0,s=n.length;for(;o>>1;n[r]t),records:this.records}}};function az(e,t,{getFn:n=qn.getFn,fieldNormWeight:i=qn.fieldNormWeight}={}){const o=new o7({getFn:n,fieldNormWeight:i});return o.setKeys(e.map(lz)),o.setSources(t),o.create(),o}function Ale(e,{getFn:t=qn.getFn,fieldNormWeight:n=qn.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new o7({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s}function xle(e=[],t=qn.minMatchCharLength){const n=[];let i=-1,o=-1,s=0;for(let r=e.length;s=t&&n.push([i,o]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}function Sle(e,t,n,{location:i=qn.location,distance:o=qn.distance,threshold:s=qn.threshold,findAllMatches:r=qn.findAllMatches,minMatchCharLength:l=qn.minMatchCharLength,includeMatches:a=qn.includeMatches,ignoreLocation:u=qn.ignoreLocation}={}){if(t.length>32)throw new Error(dle(32));const c=t.length,d=e.length,f=Math.max(0,Math.min(i,d));let h=s,m=f;const g=(I,S)=>{const E=I/c;if(u)return E;const _=Math.abs(f-S);return o?E+_/o:_?1:E},v=l>1||a,y=v?Array(d):[];let b;for(;(b=e.indexOf(t,m))>-1;){const I=g(0,b);if(h=Math.min(I,h),m=b+c,v){let S=0;for(;S=_;P-=1){const O=P-1,R=n[e[O]];if(q[P]=(q[P+1]<<1|1)&R,I&&(q[P]|=(A[P+1]|A[P])<<1|1|A[P+1]),q[P]&T&&(w=g(I,O),w<=h)){if(h=w,m=O,M=I,m<=f)break;_=Math.max(1,2*f-m)}}if(g(I+1,f)>h)break;A=q}if(v&&m>=0){const I=Math.min(d-1,m+c-1+M);for(let S=m;S<=I;S+=1)n[e[S]]&&(y[S]=1)}const C={isMatch:m>=0,score:Math.max(.001,w)};if(v){const I=xle(y,l);I.length?a&&(C.indices=I):C.isMatch=!1}return C}function _le(e){const t={};for(let n=0,i=e.length;nn[0]-i[0]||n[1]-i[1]);const t=[e[0]];for(let n=1,i=e.length;ne.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Mle,t=>uz[t]):e=>e;var r7=class{constructor(e,{location:t=qn.location,threshold:n=qn.threshold,distance:i=qn.distance,includeMatches:o=qn.includeMatches,findAllMatches:s=qn.findAllMatches,minMatchCharLength:r=qn.minMatchCharLength,isCaseSensitive:l=qn.isCaseSensitive,ignoreDiacritics:a=qn.ignoreDiacritics,ignoreLocation:u=qn.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:r,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:u},e=l?e:e.toLowerCase(),e=a?Z0(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(f,h)=>{this.chunks.push({pattern:f,alphabet:_le(f),startIndex:h})},d=this.pattern.length;if(d>32){let f=0;const h=d%32,m=d-h;for(;f{const{isMatch:y,score:b,indices:A}=Sle(e,m,g,{location:o+v,distance:s,threshold:r,findAllMatches:l,minMatchCharLength:a,includeMatches:i,ignoreLocation:u});y&&(f=!0),d+=b,y&&A&&c.push(...A)});const h={isMatch:f,score:f?d/this.chunks.length:1};return f&&i&&(h.indices=s7(c)),h}};const Ile=new Set(["fuzzy","include"]);function Tle(e){return e.startsWith("inverse")}const aC=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n=0,i;const o=[],s=e.length;for(;(i=t.indexOf(e,n))>-1;)n=i+s,o.push([i,n-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=t.indexOf(e)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new r7(e,{location:t.location??qn.location,threshold:t.threshold??qn.threshold,distance:t.distance??qn.distance,includeMatches:t.includeMatches??qn.includeMatches,findAllMatches:t.findAllMatches??qn.findAllMatches,minMatchCharLength:t.minMatchCharLength??qn.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??qn.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??qn.ignoreDiacritics,ignoreLocation:t.ignoreLocation??qn.ignoreLocation});return{type:"fuzzy",search(i){return n.searchIn(i)}}}}],rT=aC.length,Ele="\0",Lle="|";function Nle(e){const t=[],n=e.length;let i=0;for(;i=n)break;let o=i;for(;o=n||e[s]===" "){o++;break}if(e[s]==="$"&&(s+1>=n||e[s+1]===" ")){o+=2;break}}o++}t.push(e.substring(i,o)),i=o}else{for(;o{const i=Nle(n.replace(/\u0000/g,"|").trim()).filter(s=>s&&!!s.trim()),o=[];for(let s=0,r=i.length;s!!(e[ak.AND]||e[ak.OR]),Ble=e=>!!e[cC.PATH],Rle=e=>!rf(e)&&sz(e)&&!dC(e),aT=e=>({[ak.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function cz(e,t,{auto:n=!0}={}){const i=o=>{if(kr(o)){const a={keyId:null,pattern:o};return n&&(a.searcher=lk(o,t)),a}const s=Object.keys(o),r=Ble(o);if(!r&&s.length>1&&!dC(o))return i(aT(o));if(Rle(o)){const a=r?o[cC.PATH]:s[0],u=r?o[cC.PATTERN]:o[a];if(!kr(u))throw new Error(cle(a));const c={keyId:Jy(a),pattern:u};return n&&(c.searcher=lk(u,t)),c}const l={children:[],operator:s[0]};return s.forEach(a=>{const u=o[a];rf(u)&&u.forEach(c=>{l.children.push(i(c))})}),l};return dC(e)||(e=aT(e)),i(e)}function fC(e,{ignoreFieldNorm:t=qn.ignoreFieldNorm}){let n=1;return e.forEach(({key:i,norm:o,score:s})=>{const r=i?i.weight:null;n*=Math.pow(s===0&&r?Number.EPSILON:s,(r||1)*(t?1:o))}),n}function Ole(e,{ignoreFieldNorm:t=qn.ignoreFieldNorm}){e.forEach(n=>{n.score=fC(n.matches,{ignoreFieldNorm:t})})}var $le=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const i=t[e];t[e]=t[n],t[n]=i,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let i=e;do{e=i;const o=2*e+1,s=2*e+2;if(o0&&(i=o),s0&&(i=s),i!==e){const r=t[e];t[e]=t[i],t[i]=r}}while(i!==e)}};function Ple(e){const t=[];return e.matches.forEach(n=>{if(!Bl(n.indices)||!n.indices.length)return;const i={indices:n.indices,value:n.value};n.key&&(i.key=n.key.id),n.idx>-1&&(i.refIndex=n.idx),t.push(i)}),t}function zle(e,t,{includeMatches:n=qn.includeMatches,includeScore:i=qn.includeScore}={}){return e.map(o=>{const{idx:s}=o,r={item:t[s],refIndex:s};return n&&(r.matches=Ple(o)),i&&(r.score=o.score),r})}const jle=/[\p{L}\p{M}\p{N}_]+/gu,uT=new WeakSet;function Hle(e){uT.has(e)||(uT.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Wle(e){if(typeof e=="function"){let t=!1;return n=>{const i=e(n);if(!t&&(t=!0,!Array.isArray(i)||i.some(o=>typeof o!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(i)?"array containing non-strings":typeof i}.`);return i}}return e instanceof RegExp?(e.global||Hle(e),t=>t.match(e)||[]):t=>t.match(jle)||[]}function hC({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const i=Wle(n);return{tokenize(o){return e||(o=o.toLowerCase()),t&&(o=Z0(o)),i(o)}}}var qle=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=hC({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:i,fieldCount:o}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const s of n){this.termSearchers.push(new r7(s,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const r=i.get(s)||0,l=Math.log(1+(o-r+.5)/(r+.5));this.idfWeights.push(l)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,i=0,o=0,s=0;const r=this.combineAll&&!this.useMask?new Set:null;for(let u=0;u0?1-n/i:0,a={isMatch:!0,score:Math.max(.001,l)};return this.options.includeMatches&&t.length&&(a.indices=s7(t)),this.combineAll&&(this.useMask?a.matchedMask=s:a.matchedTerms=r,a.termCount=this.numTerms),a}};function o8(e,t,n,i){const o=i.tokenize(t);if(!o.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const s=new Set(o);let r=e.docTermFieldHits.get(n);r||(r=new Map,e.docTermFieldHits.set(n,r));for(const l of s)r.set(l,(r.get(l)||0)+1),e.df.set(l,(e.df.get(l)||0)+1)}function dz(e,t,n,i){const{i:o,v:s,$:r}=t;if(s!==void 0){o8(e,s,o,i);return}if(r)for(let l=0;ll-a);for(const l of n)Kle(e,l);const i=l=>{let a=0,u=n.length;for(;a>>1;n[c]o?i(l):l,a);e.docFieldCount=s;const r=new Map;for(const[l,a]of e.docTermFieldHits)r.set(l>o?i(l):l,a);e.docTermFieldHits=r}var lf=class{constructor(e,t,n){this.options={...qn,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new mle(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=lk(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof o7))throw new Error(ule);if(this._myIndex=t||az(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=hC({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Ule(this._myIndex.records,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}add(e){if(!Bl(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const n=hC({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Vle(this._invertedIndex,t,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let i=0,o=this._docs.length;i!i.has(s)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(lC);this._invertedIndex&&cT(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:i,includeScore:o,shouldSort:s,sortFn:r,ignoreFieldNorm:l}=this.options;if(kr(e)&&!e.trim()){let f=this._docs.map((h,m)=>({item:h,refIndex:m}));return Yy(n)&&n>-1&&(f=f.slice(0,n)),f}const a=s&&Yy(n)&&n>0&&kr(e),u=r,c=(f,h)=>u(f,h)||f.idx-h.idx;let d;if(a){const f=new $le(n,c);kr(this._docs[0])?this._searchStringList(e,{heap:f,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:f,ignoreFieldNorm:l}),d=f.extractSorted()}else d=kr(e)?kr(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Ole(d,{ignoreFieldNorm:l}),s&&d.sort(kr(e)?c:u),Yy(n)&&n>-1&&(d=d.slice(0,n));return zle(d,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=t?null:[];return s.forEach(({v:l,i:a,n:u})=>{if(!Bl(l))return;const c=i.searchIn(l);if(c.isMatch){const d={score:c.score,value:l,norm:u,indices:c.indices};o&&(d.matchedMask=c.matchedMask,d.matchedTerms=c.matchedTerms,d.termCount=c.termCount);const f=[d];if(!o||this._coversAllTokens(f)){const h={item:l,idx:a,matches:f};t?(h.score=fC(h.matches,{ignoreFieldNorm:n}),t.insert(h)):r.push(h)}}}),r}_searchLogical(e){const t=cz(e,this.options),n=this._normalizedKeys(),i=(l,a,u)=>{if(!("children"in l)){const{keyId:h,searcher:m}=l;let g;return h===null?(g=[],n.forEach((v,y)=>{g.push(...this._findMatches({key:v,value:a[y],searcher:m}))})):g=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(a,h),searcher:m}),g&&g.length?[{idx:u,item:a,matches:g}]:[]}const{children:c,operator:d}=l,f=[];for(let h=0,m=c.length;h{if(Bl(l)){const u=i(t,l,a);u.length&&(s.has(a)||(s.set(a,{idx:a,item:l,matches:[]}),r.push(s.get(a))),u.forEach(({matches:c})=>{s.get(a).matches.push(...c)}))}}),r}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=this._normalizedKeys(),l=t?null:[];return s.forEach(({$:a,i:u})=>{if(!Bl(a))return;const c=[];let d=!1,f=!1;if(r.forEach((h,m)=>{const g=this._findMatches({key:h,value:a[m],searcher:i});g.length?(c.push(...g),g[0].hasInverse&&(f=!0)):d=!0}),!(f&&d)&&c.length&&(!o||this._coversAllTokens(c))){const h={idx:u,item:a,matches:c};t?(h.score=fC(h.matches,{ignoreFieldNorm:n}),t.insert(h)):l.push(h)}}),l}_findMatches({key:e,value:t,searcher:n}){if(!Bl(t))return[];const i=[];if(rf(t))t.forEach(({v:o,i:s,n:r})=>{if(!Bl(o))return;const l=n.searchIn(o);if(l.isMatch){const a={score:l.score,key:e,value:o,idx:s,norm:r,indices:l.indices,hasInverse:l.hasInverse};l.termCount!==void 0&&(a.matchedMask=l.matchedMask,a.matchedTerms=l.matchedTerms,a.termCount=l.termCount),i.push(a)}});else{const{v:o,n:s}=t,r=n.searchIn(o);if(r.isMatch){const l={score:r.score,key:e,value:o,norm:s,indices:r.indices,hasInverse:r.hasInverse};r.termCount!==void 0&&(l.matchedMask=r.matchedMask,l.matchedTerms=r.matchedTerms,l.termCount=r.termCount),i.push(l)}}return i}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let i=0;for(let o=0;ol7(t))};var Zle=lf;const Gle=/^[\uD800-\uDBFF]$/,Qle=/^[\uDC00-\uDFFF]$/,Yle=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var dT;(function(e){e[e.Unknown=1e-13]="Unknown",e[e.Rule=1e-12]="Rule",e[e.DICT=2e-8]="DICT",e[e.Surname=1]="Surname",e[e.Custom=1]="Custom"})(dT||(dT={}));const Zl={Normal:1,Surname:10,Custom:100};function Ra(e){var t;return e.length-(((t=e.match(Yle))===null||t===void 0?void 0:t.length)||0)}function pC(e){const t=[];let n=0;for(;n1)return this.StringDICT.get(t);{const n=t.charCodeAt(0);return this.NumberDICT[n]}}set(t,n){if(t.length>1)this.StringDICT.set(t,n);else{const i=t.charCodeAt(0);this.NumberDICT[i]=n}}clear(){this.NumberDICT=[],this.StringDICT.clear()}}const Jle=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],Xle=["j","q","x"],eae=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],tae={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},nae=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],fT={一:"yì",二:"èr",三:"sān",四:"sì",五:"wǔ",六:"liù",七:"qī",八:"bā",九:"jiǔ",十:"shí",百:"bǎi",千:"qiān",万:"wàn",亿:"yì",单:"dān",两:"liǎng",双:"shuāng",多:"duō",几:"jǐ",十一:"shí yī",零一:"líng yī",第一:"dì yī",一十:"yī shí",一十一:"yī shí yī"},hT={重:"chóng",行:"háng",斗:"dǒu",更:"gēng"};function iae(){const e={零一:"líng yī","〇一":"líng yī",十一:"shí yī",一十:"yī shí",第一:"dì yī",一十一:"yī shí yī"};for(let t in fT)for(let n in hT){const i=`${t}${n}`,o=`${fT[t]} ${hT[n]}`;e[i]=o}return e}const pT=iae(),oae=Object.keys(pT).map(e=>({zh:e,pinyin:pT[e],probability:1e-12,length:Ra(e),priority:Zl.Normal,dict:Symbol("rule")})),hz={不:{bú:[4]},一:{yí:[4],yì:[1,2,3]}},sae={不:["的","而","之","后","也","还","地"],一:["的","而","之","后","也","还","是"]},rae=Object.keys(hz),mC={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn",轩辕:"xuān yuán",令狐:"líng hú",钟离:"zhōng lí",宇文:"yǔ wén",长孙:"zhǎng sūn",慕容:"mù róng",鲜于:"xiān yú",闾丘:"lǘ qiū",司徒:"sī tú",司空:"sī kōng",亓官:"qí guān",司寇:"sī kòu",仉督:"zhǎng dū",子车:"zǐ jū",颛孙:"zhuān sūn",端木:"duān mù",巫马:"wū mǎ",公西:"gōng xī",漆雕:"qī diāo",乐正:"yuè zhèng",壤驷:"rǎng sì",公良:"gōng liáng",拓跋:"tuò bá",夹谷:"jiá gǔ",宰父:"zǎi fǔ",榖梁:"gǔ liáng",段干:"duàn gān",百里:"bǎi lǐ",东郭:"dōng guō",南门:"nán mén",呼延:"hū yán",羊舌:"yáng shé",梁丘:"liáng qiū",左丘:"zuǒ qiū",东门:"dōng mén",西门:"xī mén",句龙:"gōu lóng",毌丘:"guàn qiū",赵:"zhào",钱:"qián",孙:"sūn",李:"lǐ",周:"zhōu",吴:"wú",郑:"zhèng",王:"wáng",冯:"féng",陈:"chén",褚:"chǔ",卫:"wèi",蒋:"jiǎng",沈:"shěn",韩:"hán",杨:"yáng",朱:"zhū",秦:"qín",尤:"yóu",许:"xǔ",何:"hé",吕:"lǚ",施:"shī",张:"zhāng",孔:"kǒng",曹:"cáo",严:"yán",华:"huà",金:"jīn",魏:"wèi",陶:"táo",姜:"jiāng",戚:"qī",谢:"xiè",邹:"zōu",喻:"yù",柏:"bǎi",水:"shuǐ",窦:"dòu",章:"zhāng",云:"yún",苏:"sū",潘:"pān",葛:"gě",奚:"xī",范:"fàn",彭:"péng",郎:"láng",鲁:"lǔ",韦:"wéi",昌:"chāng",马:"mǎ",苗:"miáo",凤:"fèng",花:"huā",方:"fāng",俞:"yú",任:"rén",袁:"yuán",柳:"liǔ",酆:"fēng",鲍:"bào",史:"shǐ",唐:"táng",费:"fèi",廉:"lián",岑:"cén",薛:"xuē",雷:"léi",贺:"hè",倪:"ní",汤:"tāng",滕:"téng",殷:"yīn",罗:"luó",毕:"bì",郝:"hǎo",邬:"wū",安:"ān",常:"cháng",乐:"yuè",于:"yú",时:"shí",傅:"fù",皮:"pí",卞:"biàn",齐:"qí",康:"kāng",伍:"wǔ",余:"yú",元:"yuán",卜:"bǔ",顾:"gù",孟:"mèng",平:"píng",黄:"huáng",和:"hé",穆:"mù",萧:"xiāo",尹:"yǐn",姚:"yáo",邵:"shào",湛:"zhàn",汪:"wāng",祁:"qí",毛:"máo",禹:"yǔ",狄:"dí",米:"mǐ",贝:"bèi",明:"míng",臧:"zāng",计:"jì",伏:"fú",成:"chéng",戴:"dài",谈:"tán",宋:"sòng",茅:"máo",庞:"páng",熊:"xióng",纪:"jǐ",舒:"shū",屈:"qū",项:"xiàng",祝:"zhù",董:"dǒng",梁:"liáng",杜:"dù",阮:"ruǎn",蓝:"lán",闵:"mǐn",席:"xí",季:"jì",麻:"má",强:"qiáng",贾:"jiǎ",路:"lù",娄:"lóu",危:"wēi",江:"jiāng",童:"tóng",颜:"yán",郭:"guō",梅:"méi",盛:"shèng",林:"lín",刁:"diāo",钟:"zhōng",徐:"xú",邱:"qiū",骆:"luò",高:"gāo",夏:"xià",蔡:"cài",田:"tián",樊:"fán",胡:"hú",凌:"líng",霍:"huò",虞:"yú",万:"wàn",支:"zhī",柯:"kē",昝:"zǎn",管:"guǎn",卢:"lú",莫:"mò",经:"jīng",房:"fáng",裘:"qiú",缪:"miào",干:"gān",解:"xiè",应:"yīng",宗:"zōng",丁:"dīng",宣:"xuān",贲:"bēn",邓:"dèng",郁:"yù",单:"shàn",杭:"háng",洪:"hóng",包:"bāo",诸:"zhū",左:"zuǒ",石:"shí",崔:"cuī",吉:"jí",钮:"niǔ",龚:"gōng",程:"chéng",嵇:"jī",邢:"xíng",滑:"huá",裴:"péi",陆:"lù",荣:"róng",翁:"wēng",荀:"xún",羊:"yáng",於:"yū",惠:"huì",甄:"zhēn",曲:"qū",家:"jiā",封:"fēng",芮:"ruì",羿:"yì",储:"chǔ",靳:"jìn",汲:"jí",邴:"bǐng",糜:"mí",松:"sōng",井:"jǐng",段:"duàn",富:"fù",巫:"wū",乌:"wū",焦:"jiāo",巴:"bā",弓:"gōng",牧:"mù",隗:"wěi",山:"shān",谷:"gǔ",车:"chē",侯:"hóu",宓:"mì",蓬:"péng",全:"quán",郗:"xī",班:"bān",仰:"yǎng",秋:"qiū",仲:"zhòng",伊:"yī",宫:"gōng",宁:"nìng",仇:"qiú",栾:"luán",暴:"bào",甘:"gān",钭:"tǒu",厉:"lì",戎:"róng",祖:"zǔ",武:"wǔ",符:"fú",刘:"liú",景:"jǐng",詹:"zhān",束:"shù",龙:"lóng",叶:"yè",幸:"xìng",司:"sī",韶:"sháo",郜:"gào",黎:"lí",蓟:"jì",薄:"bó",印:"yìn",宿:"sù",白:"bái",怀:"huái",蒲:"pú",邰:"tái",从:"cóng",鄂:"è",索:"suǒ",咸:"xián",籍:"jí",赖:"lài",卓:"zhuó",蔺:"lìn",屠:"tú",蒙:"méng",池:"chí",乔:"qiáo",阴:"yīn",鬱:"yù",胥:"xū",能:"nài",苍:"cāng",双:"shuāng",闻:"wén",莘:"shēn",党:"dǎng",翟:"zhái",谭:"tán",贡:"gòng",劳:"láo",逄:"páng",姬:"jī",申:"shēn",扶:"fú",堵:"dǔ",冉:"rǎn",宰:"zǎi",郦:"lì",雍:"yōng",郤:"xì",璩:"qú",桑:"sāng",桂:"guì",濮:"pú",牛:"niú",寿:"shòu",通:"tōng",边:"biān",扈:"hù",燕:"yān",冀:"jì",郏:"jiá",浦:"pǔ",尚:"shàng",农:"nóng",温:"wēn",别:"bié",庄:"zhuāng",晏:"yàn",柴:"chái",瞿:"qú",阎:"yán",充:"chōng",慕:"mù",连:"lián",茹:"rú",习:"xí",宦:"huàn",艾:"ài",鱼:"yú",容:"róng",向:"xiàng",古:"gǔ",易:"yì",慎:"shèn",戈:"gē",廖:"liào",庾:"yǔ",终:"zhōng",暨:"jì",居:"jū",衡:"héng",步:"bù",都:"dū",耿:"gěng",满:"mǎn",弘:"hóng",匡:"kuāng",国:"guó",文:"wén",寇:"kòu",广:"guǎng",禄:"lù",阙:"quē",东:"dōng",欧:"ōu",殳:"shū",沃:"wò",利:"lì",蔚:"wèi",越:"yuè",夔:"kuí",隆:"lóng",师:"shī",巩:"gǒng",厍:"shè",聂:"niè",晁:"cháo",勾:"gōu",敖:"áo",融:"róng",冷:"lěng",訾:"zī",辛:"xīn",阚:"kàn",那:"nā",简:"jiǎn",饶:"ráo",空:"kōng",曾:"zēng",母:"mǔ",沙:"shā",乜:"niè",养:"yǎng",鞠:"jū",须:"xū",丰:"fēng",巢:"cháo",关:"guān",蒯:"kuǎi",相:"xiàng",查:"zhā",后:"hòu",荆:"jīng",红:"hóng",游:"yóu",竺:"zhú",权:"quán",逯:"lù",盖:"gě",益:"yì",桓:"huán",公:"gōng",牟:"móu",哈:"hǎ",言:"yán",福:"fú",肖:"xiāo",区:"ōu",覃:"qín",朴:"piáo",繁:"pó",员:"yùn",句:"gōu",要:"yāo",过:"guō",钻:"zuān",谌:"chén",折:"shé",召:"shào",郄:"qiè",撒:"sǎ",甯:"nìng",六:"lù",啜:"chuài",行:"xíng"},lae=Object.keys(mC).map(e=>({zh:e,pinyin:mC[e],probability:1+Ra(e),length:Ra(e),priority:Zl.Surname,dict:Symbol("surname")})),mT={"bǎng páng pāng":["膀"],líng:["〇","伶","凌","刢","囹","坽","夌","姈","婈","孁","岺","彾","掕","昤","朎","柃","棂","櫺","欞","泠","淩","澪","灵","燯","爧","狑","玲","琌","瓴","皊","砱","祾","秢","竛","笭","紷","綾","绫","羐","羚","翎","聆","舲","苓","菱","蓤","蔆","蕶","蛉","衑","裬","詅","跉","軨","輘","酃","醽","鈴","錂","铃","閝","陵","零","霊","霗","霛","霝","靈","駖","魿","鯪","鲮","鴒","鸰","鹷","麢","齡","齢","龄","龗","㥄"],yī:["一","乊","伊","依","医","吚","咿","噫","壱","壹","夁","嫛","嬄","弌","揖","撎","檹","毉","洢","渏","漪","瑿","畩","祎","禕","稦","繄","蛜","衤","譩","辷","郼","醫","銥","铱","鷖","鹥","黟","黳"],"dīng zhēng":["丁"],"kǎo qiǎo yú":["丂"],qī:["七","倛","僛","凄","嘁","墄","娸","悽","慼","慽","戚","捿","柒","桤","桼","棲","榿","欺","沏","淒","漆","紪","緀","萋","褄","諆","迉","郪","鏚","霋","魌","鶈"],shàng:["丄","尙","尚","恦","緔","绱"],xià:["丅","下","乤","圷","夏","夓","懗","梺","疜","睱","罅","鎼","鏬"],hǎn:["丆","喊","浫","罕","豃","㘎"],"wàn mò":["万"],zhàng:["丈","仗","墇","嶂","帐","帳","幛","扙","杖","涱","痮","瘬","瘴","瞕","粀","胀","脹","賬","账","障"],sān:["三","厁","叁","弎","毵","毶","毿","犙","鬖"],"shàng shǎng shang":["上"],"qí jī":["丌","其","奇"],"bù fǒu":["不"],"yǔ yù yú":["与"],miǎn:["丏","偭","免","冕","勉","勔","喕","娩","愐","汅","沔","湎","睌","緬","缅","腼","葂","靦","鮸","𩾃"],gài:["丐","乢","匃","匄","戤","概","槩","槪","溉","漑","瓂","葢","鈣","钙","𬮿"],chǒu:["丑","丒","侴","吜","杽","瞅","矁","醜","魗"],zhuān:["专","叀","嫥","専","專","瑼","甎","砖","磗","磚","蟤","諯","鄟","顓","颛","鱄","䏝"],"qiě jū":["且"],pī:["丕","伓","伾","噼","坯","岯","憵","批","披","炋","狉","狓","砒","磇","礔","礕","秛","秠","耚","豾","邳","鈚","鉟","銔","錃","錍","霹","駓","髬","魾","𬳵"],shì:["世","丗","亊","事","仕","侍","冟","势","勢","卋","呩","嗜","噬","士","奭","嬕","室","市","式","弑","弒","恀","恃","戺","拭","揓","是","昰","枾","柿","栻","澨","烒","煶","眂","眎","眡","睗","示","礻","筮","簭","舐","舓","襫","視","视","觢","試","誓","諡","謚","试","谥","貰","贳","軾","轼","逝","遾","釈","释","釋","鈰","鉃","鉽","铈","飾","餙","餝","饰","鰘","䏡","𬤊"],qiū:["丘","丠","坵","媝","恘","恷","楸","秋","秌","穐","篍","緧","萩","蘒","蚯","蝵","蟗","蠤","趥","邱","鞦","鞧","鰌","鰍","鳅","鶖","鹙","龝"],bǐng:["丙","屛","怲","抦","昞","昺","柄","棅","炳","禀","秉","稟","苪","蛃","邴","鈵","陃","鞆","餅","餠","饼"],yè:["业","亱","僷","墷","夜","嶪","嶫","抴","捙","擛","擪","擫","晔","曄","曅","曗","曳","曵","枼","枽","業","洂","液","澲","烨","燁","爗","璍","皣","瞱","瞸","礏","腋","葉","謁","谒","邺","鄴","鍱","鐷","靥","靨","頁","页","餣","饁","馌","驜","鵺","鸈"],cóng:["丛","从","叢","婃","孮","従","徔","徖","悰","樷","欉","淙","灇","爜","琮","藂","誴","賨","賩","錝"],dōng:["东","倲","冬","咚","埬","岽","崬","徚","昸","東","氡","氭","涷","笗","苳","菄","蝀","鮗","鯟","鶇","鶫","鸫","鼕","𬟽"],sī:["丝","俬","凘","厮","司","咝","嘶","噝","媤","廝","恖","撕","斯","楒","泀","澌","燍","禗","禠","私","糹","絲","緦","纟","缌","罳","蕬","虒","蛳","蜤","螄","蟖","蟴","鉰","銯","鍶","鐁","锶","颸","飔","騦","鷥","鸶","鼶","㟃"],chéng:["丞","呈","城","埕","堘","塍","塖","宬","峸","惩","懲","成","承","挰","掁","揨","枨","棖","橙","檙","洆","溗","澂","珵","珹","畻","程","窚","筬","絾","脭","荿","誠","诚","郕","酲","鋮","铖","騬","鯎"],diū:["丟","丢","銩","铥"],liǎng:["両","两","兩","唡","啢","掚","緉","脼","蜽","裲","魉","魎","𬜯"],yǒu:["丣","卣","友","梄","湵","牖","禉","羑","聈","苃","莠","蜏","酉","銪","铕","黝"],yán:["严","厳","啱","喦","嚴","塩","壛","壧","妍","姸","娫","娮","岩","嵒","嵓","巌","巖","巗","延","揅","昖","楌","檐","櫩","欕","沿","炎","炏","狿","琂","盐","碞","筵","簷","莚","蔅","虤","蜒","言","訁","訮","詽","讠","郔","閆","閻","闫","阎","顏","顔","颜","鹽","麣","𫄧"],bìng:["並","併","倂","傡","垪","摒","栤","病","窉","竝","誁","靐","鮩"],"sàng sāng":["丧"],gǔn:["丨","惃","滚","滾","磙","緄","绲","蓘","蔉","衮","袞","輥","辊","鮌","鯀","鲧"],jiū:["丩","勼","啾","揪","揫","朻","究","糾","纠","萛","赳","阄","鬏","鬮","鳩","鸠"],"gè gě":["个","個","各"],yā:["丫","圧","孲","庘","押","枒","桠","椏","錏","鐚","鴉","鴨","鵶","鸦","鸭"],pán:["丬","媻","幋","槃","洀","瀊","爿","盘","盤","磐","縏","蒰","蟠","蹒","蹣","鎜","鞶"],"zhōng zhòng":["中"],jǐ:["丮","妀","己","戟","挤","掎","撠","擠","橶","泲","犱","脊","虮","蟣","魢","鱾","麂"],jiè:["丯","介","借","唶","堺","屆","届","岕","庎","徣","戒","楐","犗","玠","琾","界","畍","疥","砎","蚧","蛶","衸","褯","誡","诫","鎅","骱","魪"],fēng:["丰","仹","偑","僼","凨","凬","凮","妦","寷","封","峯","峰","崶","枫","楓","檒","沣","沨","渢","灃","烽","犎","猦","琒","疯","瘋","盽","砜","碸","篈","蘴","蜂","蠭","豐","鄷","酆","鋒","鎽","鏠","锋","霻","靊","飌","麷"],"guàn kuàng":["丱"],chuàn:["串","汌","玔","賗","釧","钏"],chǎn:["丳","产","冁","剷","囅","嵼","旵","浐","滻","灛","產","産","簅","蒇","蕆","諂","譂","讇","谄","鏟","铲","閳","闡","阐","骣","𬊤"],lín:["临","冧","壣","崊","嶙","斴","晽","暽","林","潾","瀶","燐","琳","璘","瞵","碄","磷","粦","粼","繗","翷","臨","轔","辚","遴","邻","鄰","鏻","阾","隣","霖","驎","鱗","鳞","麐","麟","𬴊","𬭸"],zhuó:["丵","劅","卓","啄","圴","妰","娺","撯","擆","擢","斫","斮","斱","斲","斵","晫","椓","浊","浞","濁","灼","烵","琸","硺","禚","窡","籗","籱","罬","茁","蠗","蠿","諁","諑","謶","诼","酌","鐲","镯","鵫","鷟","䓬","𬸦"],zhǔ:["丶","主","劯","嘱","囑","宔","帾","拄","渚","濐","煑","煮","燝","瞩","矚","罜","詝","陼","鸀","麈","𬣞"],bā:["丷","仈","八","叭","哵","夿","岜","巴","捌","朳","玐","疤","笆","粑","羓","芭","蚆","豝","釟"],wán:["丸","刓","完","岏","抏","捖","汍","烷","玩","琓","笂","紈","纨","翫","芄","貦","頑","顽"],dān:["丹","勯","匰","単","妉","媅","殚","殫","甔","眈","砃","箪","簞","耼","耽","聃","聸","褝","襌","躭","郸","鄲","酖","頕"],"wèi wéi":["为"],"jǐng dǎn":["丼"],"lì lí":["丽"],jǔ:["举","弆","挙","擧","椇","榉","榘","櫸","欅","矩","筥","聥","舉","莒","蒟","襷","踽","齟","龃"],piě:["丿","苤","鐅","𬭯"],fú:["乀","伏","俘","凫","刜","匐","咈","哹","垘","孚","岪","巿","帗","幅","幞","弗","彿","怫","扶","柫","栿","桴","氟","泭","浮","涪","澓","炥","玸","甶","畉","癁","祓","福","稪","符","箙","紱","紼","絥","綍","绂","绋","罘","罦","翇","艀","芙","芣","苻","茀","茯","菔","葍","虙","蚨","蜉","蝠","袚","袱","襆","襥","諨","豧","踾","輻","辐","郛","鉘","鉜","韍","韨","颫","髴","鮄","鮲","鳧","鳬","鴔","鵩","黻"],"yí jí":["乁"],yì:["乂","义","亄","亦","亿","伇","伿","佾","俋","億","兿","刈","劓","劮","勚","勩","匇","呓","呭","呹","唈","囈","圛","坄","垼","埸","奕","嫕","嬑","寱","屹","峄","嶧","帟","帠","幆","廙","异","弈","弋","役","忆","怈","怿","悒","意","憶","懌","懿","抑","挹","敡","易","晹","曀","曎","杙","枍","棭","榏","槸","檍","歝","殔","殪","殹","毅","浂","浥","浳","湙","溢","潩","澺","瀷","炈","焲","熠","熤","熼","燚","燡","燱","獈","玴","異","疫","痬","瘗","瘞","瘱","癔","益","瞖","穓","竩","篒","縊","繶","繹","绎","缢","義","羿","翊","翌","翳","翼","耴","肄","肊","膉","臆","艗","艺","芅","苅","萟","蓺","薏","藙","藝","蘙","虉","蜴","螠","衪","袣","裔","裛","褹","襼","訲","訳","詍","詣","誼","譯","議","讛","议","译","诣","谊","豙","豛","豷","貖","贀","跇","轶","逸","邑","鄓","醷","釴","鈠","鎰","鐿","镒","镱","阣","隿","霬","饐","駅","驛","驿","骮","鮨","鶂","鶃","鶍","鷁","鷊","鷧","鷾","鸃","鹝","鹢","黓","齸","𬬩","㑊","𫄷","𬟁"],nǎi:["乃","倷","奶","嬭","廼","氖","疓","艿","迺","釢"],wǔ:["乄","五","仵","伍","侮","倵","儛","午","啎","妩","娬","嫵","庑","廡","忤","怃","憮","摀","武","潕","熓","牾","玝","珷","瑦","甒","碔","舞","躌","迕","逜","陚","鵡","鹉","𣲘"],jiǔ:["久","乆","九","乣","奺","杦","汣","灸","玖","紤","舏","酒","镹","韭","韮"],"tuō zhé":["乇","杔","馲"],"me mó ma yāo":["么"],zhī:["之","倁","卮","巵","搘","支","栀","梔","椥","榰","汁","泜","疷","祗","祬","秓","稙","綕","肢","胑","胝","脂","芝","蘵","蜘","衼","隻","鳷","鴲","鼅","𦭜"],"wū wù":["乌"],zhà:["乍","咤","宱","搾","榨","溠","痄","蚱","詐","诈","醡","霅","䃎"],hū:["乎","乯","匢","匫","呼","唿","嘑","垀","寣","幠","忽","惚","昒","歑","泘","淴","滹","烀","苸","虍","虖","謼","軤","轷","雐"],fá:["乏","伐","傠","坺","垡","墢","姂","栰","浌","瞂","笩","筏","罚","罰","罸","藅","閥","阀"],"lè yuè yào lào":["乐","樂"],yín:["乑","吟","噖","嚚","圁","垠","夤","婬","寅","峾","崟","崯","檭","殥","泿","淫","滛","烎","犾","狺","璌","硍","碒","荶","蔩","訔","訚","訡","誾","鄞","鈝","銀","银","霪","鷣","齦"],pīng:["乒","俜","娉","涄","甹","砯","聠","艵","頩"],pāng:["乓","滂","胮","膖","雱","霶"],qiáo:["乔","侨","僑","嫶","憔","桥","槗","樵","橋","櫵","犞","瞧","硚","礄","荍","荞","蕎","藮","譙","趫","鐈","鞒","鞽","顦"],hǔ:["乕","琥","萀","虎","虝","錿","鯱"],guāi:["乖"],"chéng shèng":["乗","乘","娍"],yǐ:["乙","乛","以","倚","偯","嬟","崺","已","庡","扆","攺","敼","旑","旖","檥","矣","礒","笖","舣","艤","苡","苢","蚁","螘","蟻","裿","踦","輢","轙","逘","酏","釔","鈘","鉯","钇","顗","鳦","齮","𫖮","𬺈"],"háo yǐ":["乚"],"niè miē":["乜"],qǐ:["乞","企","启","唘","啓","啔","啟","婍","屺","杞","棨","玘","盀","綺","绮","芑","諬","起","邔","闙"],yě:["也","冶","嘢","埜","壄","漜","野"],xí:["习","喺","媳","嶍","席","椺","檄","漝","習","蓆","袭","襲","覡","觋","謵","趘","郋","鎴","隰","霫","飁","騱","騽","驨","鰼","鳛","𠅤","𫘬"],xiāng:["乡","厢","廂","忀","楿","欀","湘","瓖","稥","箱","緗","缃","膷","芗","萫","葙","薌","襄","郷","鄉","鄊","鄕","鑲","镶","香","驤","骧","鱜","麘","𬙋"],shū:["书","倏","倐","儵","叔","姝","尗","抒","掓","摅","攄","書","枢","梳","樞","殊","殳","毹","毺","淑","瀭","焂","疎","疏","紓","綀","纾","舒","菽","蔬","踈","軗","輸","输","鄃","陎","鮛","鵨"],dǒu:["乧","抖","枓","蚪","鈄","阧","陡"],shǐ:["乨","使","兘","史","始","宩","屎","榁","矢","笶","豕","鉂","駛","驶"],jī:["乩","僟","击","刉","刏","剞","叽","唧","喞","嗘","嘰","圾","基","墼","姬","屐","嵆","嵇","撃","擊","朞","机","枅","樭","機","毄","激","犄","玑","璣","畸","畿","癪","矶","磯","积","積","笄","筓","箕","簊","緁","羁","羇","羈","耭","肌","芨","虀","覉","覊","譏","譤","讥","賫","賷","赍","跻","踑","躋","躸","銈","錤","鐖","鑇","鑙","隮","雞","鞿","韲","飢","饑","饥","魕","鳮","鶏","鶺","鷄","鸄","鸡","齎","齏","齑","𬯀","𫓯","𫓹","𫌀"],náng:["乪","嚢","欜","蠰","饢"],jiā:["乫","佳","傢","加","嘉","抸","枷","梜","毠","泇","浃","浹","犌","猳","珈","痂","笳","糘","耞","腵","葭","袈","豭","貑","跏","迦","鉫","鎵","镓","鴐","麚","𬂩"],jù:["乬","倨","倶","具","剧","劇","勮","埧","埾","壉","姖","屦","屨","岠","巨","巪","怇","惧","愳","懅","懼","拒","拠","昛","歫","洰","澽","炬","烥","犋","秬","窭","窶","簴","粔","耟","聚","虡","蚷","詎","讵","豦","距","踞","躆","遽","邭","醵","鉅","鐻","钜","颶","飓","駏","鮔"],shí:["乭","十","埘","塒","姼","实","実","寔","實","峕","嵵","时","旹","時","榯","湜","溡","炻","祏","竍","蚀","蝕","辻","遈","鉐","飠","饣","鮖","鰣","鲥","鼫","鼭"],mǎo:["乮","冇","卯","峁","戼","昴","泖","笷","蓩","鉚","铆"],mǎi:["买","嘪","荬","蕒","買","鷶"],luàn:["乱","亂","釠"],rǔ:["乳","擩","汝","肗","辱","鄏"],xué:["乴","学","學","峃","嶨","斈","泶","澩","燢","穴","茓","袕","踅","鷽","鸴"],yǎn:["䶮","乵","俨","偃","儼","兖","兗","厣","厴","噞","孍","嵃","巘","巚","弇","愝","戭","扊","抁","掩","揜","曮","椼","檿","沇","渷","演","琰","甗","眼","罨","萒","蝘","衍","褗","躽","遃","郾","隒","顩","魇","魘","鰋","鶠","黡","黤","黬","黭","黶","鼴","鼹","齴","龑","𬸘","𬙂","𪩘"],fǔ:["乶","俌","俛","俯","府","弣","抚","拊","撫","斧","椨","滏","焤","甫","盙","簠","腐","腑","蜅","輔","辅","郙","釜","釡","阝","頫","鬴","黼","㕮","𫖯"],shā:["乷","唦","杀","桬","殺","毮","猀","痧","砂","硰","紗","繺","纱","蔱","裟","鎩","铩","閷","髿","魦","鯊","鯋","鲨"],nǎ:["乸","雫"],qián:["乹","亁","仱","偂","前","墘","媊","岒","拑","掮","榩","橬","歬","潛","潜","濳","灊","箝","葥","虔","軡","鈐","鉗","銭","錢","鎆","钤","钱","钳","靬","騚","騝","鰬","黔","黚"],suǒ:["乺","唢","嗩","所","暛","溑","溹","琐","琑","瑣","索","褨","鎖","鎻","鏁","锁"],yú:["乻","于","亐","伃","余","堣","堬","妤","娛","娯","娱","嬩","崳","嵎","嵛","愚","扵","揄","旟","楡","楰","榆","欤","歈","歟","歶","渔","渝","湡","漁","澞","牏","狳","玗","玙","瑜","璵","盂","睮","窬","竽","籅","羭","腴","臾","舁","舆","艅","茰","萮","萸","蕍","蘛","虞","虶","蝓","螸","衧","褕","覦","觎","諛","謣","谀","踰","輿","轝","逾","邘","酑","鍝","隅","雓","雩","餘","馀","騟","骬","髃","魚","魣","鮽","鯲","鰅","鱼","鷠","鸆","齵"],zhù:["乼","伫","佇","住","坾","墸","壴","嵀","拀","杼","柱","樦","殶","注","炷","疰","眝","祝","祩","竚","筯","箸","篫","簗","紵","紸","纻","羜","翥","苎","莇","蛀","註","貯","贮","跓","軴","鉒","鋳","鑄","铸","馵","駐","驻"],zhě:["乽","者","褶","襵","赭","踷","鍺","锗"],"qián gān":["乾"],"zhì luàn":["乿"],guī:["亀","圭","妫","媯","嫢","嬀","帰","归","摫","椝","槻","槼","櫷","歸","珪","瑰","璝","瓌","皈","瞡","硅","茥","蘬","規","规","邽","郌","閨","闺","騩","鬶","鬹"],"lǐn lìn":["亃"],jué:["亅","决","刔","劂","匷","厥","噊","孒","孓","崛","崫","嶥","彏","憠","憰","戄","抉","挗","掘","攫","桷","橛","橜","欮","氒","決","灍","焳","熦","爑","爴","爵","獗","玃","玦","玨","珏","瑴","瘚","矍","矡","砄","絕","絶","绝","臄","芵","蕝","蕨","虳","蟨","蟩","觖","觮","觼","訣","譎","诀","谲","貜","赽","趉","蹷","躩","鈌","鐍","鐝","钁","镢","鴂","鴃","鷢","𫘝","㵐","𫔎"],"le liǎo":["了"],"gè mā":["亇"],"yǔ yú":["予","懙"],zhēng:["争","佂","凧","姃","媜","峥","崝","崢","征","徰","炡","烝","爭","狰","猙","癥","眐","睁","睜","筝","箏","篜","聇","脀","蒸","踭","鉦","錚","鏳","鬇"],èr:["二","刵","咡","弍","弐","樲","誀","貮","貳","贰","髶"],chù:["亍","傗","儊","怵","憷","搐","斶","歜","珿","琡","矗","竌","絀","绌","臅","触","觸","豖","鄐","閦","黜"],kuī:["亏","刲","岿","巋","盔","窥","窺","聧","虧","闚","顝"],yún:["云","伝","勻","匀","囩","妘","愪","抣","昀","橒","沄","涢","溳","澐","熉","畇","秐","筼","篔","紜","縜","纭","耘","芸","蒷","蕓","郧","鄖","鋆","雲"],hù:["互","冱","嗀","嚛","婟","嫭","嫮","岵","帍","弖","怙","戶","户","戸","戽","扈","护","昈","槴","沍","沪","滬","熩","瓠","祜","笏","簄","粐","綔","蔰","護","豰","鄠","鍙","頀","鱯","鳠","鳸","鸌","鹱"],qí:["亓","剘","埼","岐","岓","崎","嵜","愭","掑","斉","斊","旂","旗","棊","棋","檱","櫀","歧","淇","濝","猉","玂","琦","琪","璂","畦","疧","碁","碕","祁","祈","祺","禥","竒","簯","簱","籏","粸","綥","綦","肵","脐","臍","艩","芪","萁","萕","蕲","藄","蘄","蚑","蚚","蛴","蜝","蜞","螧","蠐","褀","軝","鄿","釮","錡","锜","陭","頎","颀","騎","騏","騹","骐","骑","鬐","鬿","鯕","鰭","鲯","鳍","鵸","鶀","麒","麡","𨙸","𬨂","䓫"],jǐng:["井","儆","刭","剄","坓","宑","幜","憬","暻","殌","汫","汬","澋","璄","璟","璥","穽","肼","蟼","警","阱","頚","頸"],sì:["亖","佀","価","儩","兕","嗣","四","姒","娰","孠","寺","巳","柶","榹","汜","泗","泤","洍","洠","涘","瀃","牭","祀","禩","竢","笥","耜","肂","肆","蕼","覗","貄","釲","鈶","鈻","飤","飼","饲","駟","騃","驷"],suì:["亗","嬘","岁","嵗","旞","檖","歲","歳","澻","煫","燧","璲","砕","碎","祟","禭","穂","穗","穟","繀","繐","繸","襚","誶","譢","谇","賥","邃","鐆","鐩","隧","韢","𫟦","𬭼"],gèn:["亘","亙","揯","搄","茛"],yà:["亚","亜","俹","冴","劜","圔","圠","埡","娅","婭","揠","氩","氬","犽","砑","稏","聐","襾","覀","訝","讶","迓","齾"],"xiē suò":["些"],"qí zhāi":["亝","齊"],"yā yà":["亞","压","垭","壓","铔"],"jí qì":["亟","焏"],tóu:["亠","投","頭","骰"],"wáng wú":["亡"],"kàng háng gāng":["亢"],dà:["亣","眔"],jiāo:["交","僬","娇","嬌","峧","嶕","嶣","憍","椒","浇","澆","焦","礁","穚","簥","胶","膠","膲","茭","茮","蕉","虠","蛟","蟭","跤","轇","郊","鐎","驕","骄","鮫","鲛","鵁","鷦","鷮","鹪","䴔"],hài:["亥","嗐","害","氦","餀","饚","駭","駴","骇"],"hēng pēng":["亨"],mǔ:["亩","姆","峔","拇","母","牡","牳","畂","畆","畒","畝","畞","畮","砪","胟","踇","鉧","𬭁","𧿹"],ye:["亪"],xiǎng:["享","亯","响","想","晑","蚃","蠁","響","飨","餉","饗","饷","鮝","鯗","鱶","鲞"],jīng:["京","亰","兢","坕","坙","婛","惊","旌","旍","晶","橸","泾","涇","猄","睛","秔","稉","粳","精","経","經","綡","聙","腈","茎","荆","荊","菁","葏","驚","鯨","鲸","鶁","鶄","麖","麠","鼱","䴖"],tíng:["亭","停","婷","嵉","庭","廷","楟","榳","筳","聤","莛","葶","蜓","蝏","諪","邒","霆","鼮","䗴"],liàng:["亮","喨","悢","晾","湸","諒","谅","輌","輛","辆","鍄"],"qīn qìng":["亲","親"],bó:["亳","仢","侼","僰","博","帛","愽","懪","挬","搏","欂","浡","淿","渤","煿","牔","狛","瓝","礴","秡","箔","簙","糪","胉","脖","膊","舶","艊","萡","葧","袯","襏","襮","謈","踣","郣","鈸","鉑","鋍","鎛","鑮","钹","铂","镈","餺","馎","馛","馞","駁","駮","驳","髆","鵓","鹁"],yòu:["亴","佑","佦","侑","又","右","哊","唀","囿","姷","宥","峟","幼","狖","祐","蚴","誘","诱","貁","迶","酭","釉","鼬"],xiè:["亵","伳","偞","偰","僁","卨","卸","噧","塮","夑","媟","屑","屧","廨","徢","懈","暬","械","榍","榭","泻","洩","渫","澥","瀉","瀣","灺","炧","炨","燮","爕","獬","祄","禼","糏","紲","絏","絬","繲","纈","绁","缷","薢","薤","蟹","蠏","褉","褻","謝","谢","躞","邂","靾","韰","齂","齘","齛","齥","𬹼","𤫉"],"dǎn dàn":["亶","馾"],lián:["亷","劆","匲","匳","嗹","噒","奁","奩","嫾","帘","廉","怜","憐","涟","漣","濂","濓","瀮","熑","燫","簾","籢","籨","縺","翴","联","聨","聫","聮","聯","臁","莲","蓮","薕","螊","蠊","裢","褳","覝","謰","蹥","连","連","鎌","鐮","镰","鬑","鰱","鲢"],duǒ:["亸","哚","嚲","埵","崜","朵","朶","綞","缍","趓","躱","躲","軃"],"wěi mén":["亹","斖"],rén:["人","亻","仁","壬","忈","忎","朲","秂","芢","魜","鵀"],jí:["亼","亽","伋","佶","偮","卙","即","卽","及","叝","吉","堲","塉","姞","嫉","岌","嵴","嶯","彶","忣","急","愱","戢","揤","极","棘","楫","極","槉","檝","殛","汲","湒","潗","疾","瘠","皍","笈","箿","籍","級","级","膌","艥","蒺","蕀","蕺","蝍","螏","襋","觙","谻","踖","蹐","躤","輯","轚","辑","郆","銡","鍓","鏶","集","雧","霵","鹡","㴔"],wáng:["亾","仼","兦","莣","蚟"],"shén shí":["什"],lè:["仂","叻","忇","氻","泐","玏","砳","簕","艻","阞","韷","餎","鰳","鱳","鳓"],dīng:["仃","叮","帄","玎","疔","盯","耵","虰","靪"],zè:["仄","崱","庂","捑","昃","昗","汄"],"jǐn jìn":["仅","僅","嫤"],"pú pū":["仆"],"chóu qiú":["仇"],zhǎng:["仉","幥","掌","礃"],jīn:["今","堻","巾","惍","斤","津","珒","琻","璡","砛","筋","荕","衿","襟","觔","金","釒","釿","钅","鹶","黅","𬬱"],bīng:["仌","仒","兵","冫","冰","掤","氷","鋲"],réng:["仍","礽","芿","辸","陾"],fó:["仏","坲","梻"],"jīn sǎn":["仐"],lún:["仑","伦","侖","倫","囵","圇","婨","崘","崙","棆","沦","淪","磮","腀","菕","蜦","踚","輪","轮","錀","陯","鯩","𬬭"],cāng:["仓","仺","倉","凔","嵢","沧","滄","濸","獊","舱","艙","苍","蒼","螥","鸧"],"zǎi zǐ zī":["仔"],tā:["他","塌","它","榙","溻","牠","祂","褟","趿","遢","闧"],fù:["付","偩","傅","冨","副","咐","坿","复","妇","婦","媍","嬔","富","復","椱","祔","禣","竎","緮","縛","缚","腹","萯","蕧","蚹","蛗","蝜","蝮","袝","複","覄","覆","訃","詂","讣","負","賦","賻","负","赋","赙","赴","輹","鍑","鍢","阜","附","馥","駙","驸","鮒","鰒","鲋","鳆","㳇"],xiān:["仙","仚","佡","僊","僲","先","嘕","奾","屳","廯","忺","憸","掀","暹","杴","氙","珗","祆","秈","籼","繊","纎","纖","苮","褼","襳","跹","蹮","躚","酰","鍁","锨","韯","韱","馦","鱻","鶱","𬸣"],"tuō chà duó":["仛"],hóng:["仜","吰","垬","妅","娂","宏","宖","弘","彋","汯","泓","洪","浤","渱","潂","玒","玜","竑","竤","篊","粠","紘","紭","綋","纮","翃","翝","耾","苰","荭","葒","葓","谹","谼","鈜","鉷","鋐","閎","闳","霐","霟","鞃","魟","鴻","鸿","黉","黌","𫟹","𬭎"],tóng:["仝","佟","哃","峂","峝","庝","彤","晍","曈","桐","氃","浵","潼","犝","獞","眮","瞳","砼","秱","童","粡","膧","茼","蚒","詷","赨","酮","鉖","鉵","銅","铜","餇","鮦","鲖","𫍣","𦒍"],rèn:["仞","仭","刃","刄","妊","姙","屻","岃","扨","牣","祍","紉","紝","絍","纫","纴","肕","腍","衽","袵","訒","認","认","讱","軔","轫","鈓","靭","靱","韌","韧","飪","餁","饪"],qiān:["仟","佥","僉","千","圲","奷","孯","岍","悭","愆","慳","扦","拪","搴","撁","攐","攑","攓","杄","櫏","汘","汧","牵","牽","竏","签","簽","籖","籤","粁","芊","茾","蚈","褰","諐","謙","谦","谸","迁","遷","釺","鈆","鉛","鏲","钎","阡","韆","顅","騫","骞","鬜","鬝","鵮","鹐"],"gǎn hàn":["仠"],"yì gē":["仡"],dài:["代","侢","叇","垈","埭","岱","帒","带","帯","帶","廗","怠","戴","曃","柋","殆","瀻","玳","瑇","甙","簤","紿","緿","绐","艜","蝳","袋","襶","貣","贷","蹛","軑","軚","軩","轪","迨","霴","靆","鴏","黛","黱"],"lìng líng lǐng":["令"],chào:["仦","耖","觘"],"cháng zhǎng":["仧","兏","長","长"],sā:["仨"],cháng:["仩","偿","償","嘗","嚐","嫦","尝","常","徜","瑺","瓺","甞","肠","腸","膓","苌","萇","镸","鱨","鲿"],yí:["仪","侇","儀","冝","匜","咦","圯","夷","姨","宐","宜","宧","寲","峓","嶬","嶷","巸","彛","彜","彝","彞","怡","恞","扅","暆","栘","椬","椸","沂","洟","熪","瓵","痍","移","簃","籎","羠","胰","萓","蛦","螔","觺","謻","貽","贻","跠","迻","遺","鏔","頉","頤","頥","顊","颐","饴","鮧","鴺"],mù:["仫","凩","募","墓","幕","幙","慔","慕","暮","暯","木","楘","毣","沐","炑","牧","狇","目","睦","穆","艒","苜","莯","蚞","鉬","钼","雮","霂"],"men mén":["们"],fǎn:["仮","反","橎","返"],"chào miǎo":["仯"],"yǎng áng":["仰"],zhòng:["仲","众","堹","妕","媑","狆","眾","祌","筗","茽","蚛","衆","衶","諥"],"pǐ pí":["仳"],wò:["仴","偓","卧","媉","幄","握","楃","沃","渥","濣","瓁","瞃","硪","肟","腛","臥","齷","龌"],jiàn:["件","俴","健","僭","剑","剣","剱","劍","劎","劒","劔","墹","寋","建","徤","擶","旔","楗","毽","洊","涧","澗","牮","珔","瞷","磵","礀","箭","糋","繝","腱","臶","舰","艦","荐","薦","覸","諓","諫","譛","谏","賎","賤","贱","趝","践","踐","踺","轞","鉴","鍳","鍵","鐱","鑑","鑒","鑬","鑳","键","間","餞","饯","𬣡"],"jià jiè jie":["价"],"yǎo fó":["仸"],"rèn rén":["任"],"fèn bīn":["份"],dī:["仾","低","啲","埞","堤","岻","彽","樀","滴","磾","秪","羝","袛","趆","隄","鞮","䃅"],fǎng:["仿","倣","旊","昉","昘","瓬","眆","紡","纺","舫","訪","访","髣","鶭"],zhōng:["伀","刣","妐","幒","彸","忠","柊","汷","泈","炂","盅","籦","終","终","舯","蔠","蜙","螤","螽","衳","衷","蹱","鈡","鍾","鐘","钟","锺","鴤","鼨"],pèi:["伂","佩","姵","帔","斾","旆","沛","浿","珮","蓜","轡","辔","配","霈","馷"],diào:["伄","吊","弔","掉","瘹","盄","窎","窵","竨","訋","釣","鈟","銱","鋽","鑃","钓","铞","雿","魡"],dùn:["伅","潡","炖","燉","盾","砘","碷","踲","逇","遁","遯","鈍","钝"],wěn:["伆","刎","吻","呅","抆","桽","稳","穏","穩","紊","肳","脗"],xǐn:["伈"],kàng:["伉","匟","囥","抗","炕","鈧","钪"],ài:["伌","僾","塧","壒","嫒","嬡","愛","懓","暧","曖","爱","瑷","璦","皧","瞹","砹","硋","碍","礙","薆","譺","賹","鑀","隘","靉","餲","馤","鱫","鴱"],"jì qí":["伎","薺"],"xiū xǔ":["休"],"jìn yín":["伒"],dǎn:["伔","刐","撢","玬","瓭","紞","胆","膽","衴","賧","赕","黕","𬘘"],fū:["伕","呋","娐","孵","尃","怤","懯","敷","旉","玞","砆","稃","筟","糐","綒","肤","膚","荂","荴","衭","趺","跗","邞","鄜","酜","鈇","麩","麬","麱","麸","𫓧"],tǎng:["伖","傥","儻","埫","戃","曭","爣","矘","躺","鎲","钂","镋"],yōu:["优","優","呦","嚘","峳","幽","忧","悠","憂","攸","櫌","滺","瀀","纋","羪","耰","逌","鄾","麀"],huǒ:["伙","夥","火","煷","邩","鈥","钬"],"huì kuài":["会","會","浍","璯"],yǔ:["伛","俁","俣","偊","傴","匬","噳","圄","圉","宇","寙","屿","嶼","庾","挧","敔","斞","楀","瑀","瘐","祤","禹","穥","窳","羽","與","萭","貐","鄅","頨","麌","齬","龉","㺄"],cuì:["伜","啛","忰","悴","毳","淬","焠","疩","瘁","竁","粋","粹","紣","綷","翆","翠","脃","脆","脺","膬","膵","臎","萃","襊","顇"],sǎn:["伞","傘","糤","繖","饊","馓"],wěi:["伟","伪","偉","偽","僞","儰","娓","寪","屗","崣","嶉","徫","愇","捤","暐","梶","洧","浘","渨","炜","煒","猥","玮","瑋","痿","緯","纬","腲","艉","芛","苇","荱","萎","葦","蒍","蔿","蜼","諉","诿","踓","鍡","韑","韙","韡","韪","頠","颹","骩","骪","骫","鮪","鲔","𫇭","𬀩","𬱟"],"chuán zhuàn":["传","傳"],"chē jū":["伡","俥","车"],"jū chē":["車"],yá:["伢","厑","厓","堐","岈","崕","崖","涯","漄","牙","玡","琊","睚","笌","芽","蚜","衙","齖"],qiàn:["伣","俔","倩","儙","刋","壍","嬱","悓","棈","椠","槧","欠","歉","皘","篏","篟","縴","芡","蒨","蔳","輤","𬘬"],shāng:["伤","傷","商","墒","慯","殇","殤","滳","漡","熵","蔏","螪","觞","觴","謪","鬺"],chāng:["伥","倀","娼","昌","椙","淐","猖","琩","菖","裮","錩","锠","閶","阊","鯧","鲳","鼚"],"chen cāng":["伧"],xùn:["伨","侚","卂","噀","巺","巽","徇","愻","殉","殾","汛","潠","狥","蕈","訊","訓","訙","训","讯","迅","迿","逊","遜","鑂","顨","馴","驯"],xìn:["伩","囟","孞","脪","舋","衅","訫","釁","阠","顖"],chǐ:["伬","侈","卶","叺","呎","垑","恥","歯","耻","肔","胣","蚇","裭","褫","豉","鉹","齒","齿"],"xián xuán":["伭"],"nú nǔ":["伮"],"bó bǎi":["伯"],"gū gù":["估"],nǐ:["伱","你","儞","孴","拟","擬","旎","晲","狔","苨","薿","隬"],"nì ní":["伲"],bàn:["伴","办","半","姅","怑","扮","瓣","秚","絆","绊","辦","鉡","靽"],xù:["伵","侐","勖","勗","卹","叙","垿","壻","婿","序","恤","敍","敘","旭","昫","朂","槒","欰","殈","汿","沀","洫","溆","漵","潊","烅","烼","煦","獝","珬","盢","瞁","稸","絮","続","緒","緖","續","绪","续","聓","聟","蓄","藚","訹","賉","酗","頊","鱮","㳚"],zhòu:["伷","僽","冑","呪","咒","咮","宙","昼","晝","甃","皱","皺","籀","籒","籕","粙","紂","縐","纣","绉","胄","荮","葤","詋","酎","駎","驟","骤","㤘","㑇"],shēn:["伸","侁","兟","呻","堔","妽","娠","屾","峷","扟","敒","曑","柛","氠","深","燊","珅","甡","甧","申","眒","砷","穼","籶","籸","糂","紳","绅","罙","罧","葠","蓡","蔘","薓","裑","訷","詵","诜","身","駪","鯓","鯵","鰺","鲹","鵢","𬳽"],qū:["伹","佉","匤","呿","坥","屈","岖","岴","嶇","憈","抾","敺","浀","煀","祛","筁","粬","胠","蛆","蛐","袪","覻","詘","诎","趍","躯","軀","阹","駆","駈","驅","驱","髷","魼","鰸","鱋","鶌","麯","麴","麹","黢","㭕","𪨰","䓛"],"sì cì":["伺"],bēng:["伻","嘣","奟","崩","嵭","閍"],"sì shì":["似"],"jiā qié gā":["伽"],"yǐ chì":["佁"],"diàn tián":["佃","钿"],"hān gàn":["佄"],mài:["佅","劢","勱","卖","唛","売","脈","衇","賣","迈","邁","霡","霢","麥","麦","鿏"],dàn:["但","僤","啖","啗","啿","噉","嚪","帎","憺","旦","柦","氮","沊","泹","淡","狚","疍","癚","禫","窞","腅","萏","蓞","蛋","蜑","觛","訑","誕","诞","贉","霮","餤","饏","駳","髧","鴠","𫢸"],bù:["佈","勏","吥","咘","埗","埠","布","廍","怖","悑","步","歨","歩","瓿","篰","荹","蔀","踄","部","郶","鈈","钚","餢"],bǐ:["佊","俾","匕","夶","妣","彼","朼","柀","比","毞","沘","疕","秕","笔","筆","粃","聛","舭","貏","鄙"],"zhāo shào":["佋"],cǐ:["佌","此","泚","皉","𫚖"],wèi:["位","卫","味","喂","墛","媦","慰","懀","未","渭","煟","熭","犚","猬","畏","緭","罻","胃","苿","菋","藯","蘶","蝟","螱","衛","衞","褽","謂","讆","讏","谓","躗","躛","軎","轊","鏏","霨","餧","餵","饖","魏","鮇","鳚"],zuǒ:["佐","左","繓"],yǎng:["佒","傟","养","坱","岟","慃","懩","攁","氧","氱","炴","痒","癢","礢","紻","蝆","軮","養","駚"],"tǐ tī":["体","體"],zhàn:["佔","偡","嶘","战","戦","戰","栈","桟","棧","湛","站","綻","绽","菚","蘸","虥","虦","譧","轏","驏"],"hé hē hè":["何"],bì:["佖","咇","哔","嗶","坒","堛","壁","奰","妼","婢","嬖","币","幣","幤","庇","庳","廦","弊","弻","弼","彃","必","怭","愊","愎","敝","斃","梐","毕","毖","毙","湢","滗","滭","潷","煏","熚","狴","獘","獙","珌","璧","畀","畢","疪","痹","痺","皕","睤","碧","筚","箅","箆","篦","篳","粊","綼","縪","繴","罼","腷","苾","荜","萆","萞","蓖","蓽","蔽","薜","蜌","袐","襅","襞","襣","觱","詖","诐","貱","贔","赑","跸","蹕","躃","躄","避","邲","鄨","鄪","鉍","鏎","鐴","铋","閇","閉","閟","闭","陛","韠","飶","饆","馝","駜","驆","髀","魓","鮅","鷝","鷩","鼊"],tuó:["佗","坨","堶","岮","槖","橐","沱","砣","砤","碢","紽","詑","跎","酡","阤","陀","陁","駝","駞","騨","驒","驝","驼","鮀","鴕","鸵","鼉","鼍","鼧","𬶍"],shé:["佘","舌","虵","蛥"],"yì dié":["佚","昳","泆","軼"],"fó fú bì bó":["佛"],"zuò zuō":["作"],gōu:["佝","沟","溝","痀","篝","簼","緱","缑","袧","褠","鈎","鉤","钩","鞲","韝"],nìng:["佞","侫","倿","寕","泞","澝","濘"],qú:["佢","劬","戵","斪","欋","欔","氍","淭","灈","爠","璖","璩","癯","磲","籧","絇","胊","臞","菃","葋","蕖","蘧","蟝","蠷","蠼","衐","衢","躣","軥","鑺","鴝","鸜","鸲","鼩"],"yōng yòng":["佣"],wǎ:["佤","咓","砙","邷"],kǎ:["佧","垰","胩","裃","鉲"],bāo:["佨","勹","包","孢","煲","笣","胞","苞","蕔","裦","褒","襃","闁","齙","龅"],"huái huí":["佪"],"gé hè":["佫"],lǎo:["佬","咾","恅","栳","狫","珯","硓","老","耂","荖","蛯","轑","銠","铑","鮱"],xiáng:["佭","庠","栙","祥","絴","翔","詳","跭"],gé:["佮","匌","呄","嗝","塥","愅","挌","搿","槅","櫊","滆","膈","臵","茖","觡","諽","輵","轕","閣","阁","隔","鞷","韐","韚","騔","骼","鮯"],yáng:["佯","劷","垟","崸","徉","扬","揚","敭","旸","昜","暘","杨","楊","洋","炀","珜","疡","瘍","眻","蛘","諹","輰","鍚","钖","阦","阳","陽","霷","颺","飏","鰑","鴹","鸉"],bǎi:["佰","捭","摆","擺","栢","百","竡","粨","襬"],fǎ:["佱","峜","法","灋","砝","鍅"],mǐng:["佲","凕","姳","慏","酩"],"èr nài":["佴"],hěn:["佷","很","狠","詪","𬣳"],huó:["佸","活"],guǐ:["佹","匦","匭","厬","垝","姽","宄","庋","庪","恑","晷","湀","癸","祪","簋","蛫","蟡","觤","詭","诡","軌","轨","陒","鬼"],quán:["佺","全","啳","埢","姾","峑","巏","拳","搼","权","楾","権","權","泉","洤","湶","牷","犈","瑔","痊","硂","筌","縓","荃","葲","蜷","蠸","觠","詮","诠","跧","踡","輇","辁","醛","銓","铨","闎","顴","颧","駩","騡","鬈","鰁","鳈","齤"],tiāo:["佻","庣","旫","祧","聎"],jiǎo:["佼","儌","孂","挢","搅","撟","撹","攪","敫","敽","敿","晈","暞","曒","灚","燞","狡","璬","皎","皦","絞","纐","绞","腳","臫","蟜","譑","賋","踋","鉸","铰","餃","饺","鱎","龣"],cì:["佽","刾","庛","朿","栨","次","絘","茦","莿","蛓","螆","賜","赐"],xíng:["侀","刑","哘","型","娙","形","洐","硎","蛵","邢","郉","鈃","鉶","銒","钘","铏","陉","陘","餳","𫰛"],tuō:["侂","咃","咜","圫","托","拕","拖","汑","脫","脱","莌","袥","託","讬","飥","饦","魠","鮵"],kǎn:["侃","偘","冚","坎","惂","砍","莰","輡","轗","顑"],zhí:["侄","値","值","埴","執","姪","嬂","戠","执","摭","植","樴","淔","漐","直","禃","絷","縶","聀","职","職","膱","蟙","跖","踯","蹠","躑","軄","釞","馽"],gāi:["侅","垓","姟","峐","晐","畡","祴","荄","該","该","豥","賅","賌","赅","陔"],lái:["來","俫","倈","崃","崍","庲","来","梾","棶","涞","淶","猍","琜","筙","箂","莱","萊","逨","郲","錸","铼","騋","鯠","鶆","麳"],kuǎ:["侉","咵","垮","銙"],gōng:["侊","公","功","匑","匔","塨","宫","宮","工","幊","弓","恭","攻","杛","碽","糼","糿","肱","觥","觵","躬","躳","髸","龔","龚","䢼"],lì:["例","俐","俪","傈","儮","儷","凓","利","力","励","勵","历","厉","厤","厯","厲","叓","吏","呖","唎","唳","嚦","囇","坜","塛","壢","娳","婯","屴","岦","悧","悷","慄","戾","搮","暦","曆","曞","朸","枥","栃","栗","栛","檪","櫔","櫪","欐","歴","歷","沥","沴","涖","溧","濿","瀝","爏","犡","猁","珕","瑮","瓅","瓑","瓥","疬","痢","癧","盭","睙","砅","砺","砾","磿","礪","礫","礰","禲","秝","立","笠","篥","粒","粝","糲","脷","苈","茘","荔","莅","莉","蒚","蒞","藶","蚸","蛎","蛠","蜧","蝷","蠇","蠣","詈","讈","赲","轢","轣","轹","酈","鉝","隶","隷","雳","靂","靋","鬁","鳨","鴗","鷅","麜","𫵷","𬍛"],yīn:["侌","凐","喑","噾","囙","因","垔","堙","姻","婣","愔","慇","栶","氤","洇","溵","濦","瘖","禋","秵","筃","絪","緸","茵","蒑","蔭","裀","諲","銦","铟","闉","阥","阴","陰","陻","隂","霒","霠","鞇","音","韾","駰","骃","齗","𬘡","𬤇","𬮱"],mǐ:["侎","孊","弭","敉","洣","渳","灖","米","粎","羋","脒","芈","葞","蔝","銤"],zhū:["侏","株","槠","橥","櫧","櫫","洙","潴","瀦","猪","珠","硃","秼","絑","茱","蕏","蛛","蝫","蠩","袾","誅","諸","诛","诸","豬","跦","邾","銖","铢","駯","鮢","鯺","鴸","鼄"],ān:["侒","偣","媕","安","峖","庵","桉","氨","盦","盫","腤","菴","萻","葊","蓭","誝","諳","谙","鞌","鞍","韽","馣","鮟","鵪","鶕","鹌","𩽾"],lù:["侓","僇","勎","勠","圥","坴","塶","娽","峍","廘","彔","录","戮","摝","椂","樚","淕","淥","渌","漉","潞","琭","璐","甪","盝","睩","硉","祿","禄","稑","穋","箓","簏","簬","簵","簶","籙","粶","蔍","蕗","虂","螰","賂","赂","趢","路","踛","蹗","輅","轆","辂","辘","逯","醁","錄","録","錴","鏴","陸","騄","騼","鯥","鴼","鵦","鵱","鷺","鹭","鹿","麓","𫘧"],móu:["侔","劺","恈","眸","蛑","謀","谋","踎","鍪","鴾","麰"],ér:["侕","儿","児","兒","峏","栭","洏","粫","而","胹","荋","袻","輀","轜","陑","隭","髵","鮞","鲕","鴯","鸸"],"dòng tǒng tóng":["侗"],chà:["侘","奼","姹","岔","汊","詫","诧"],chì:["侙","傺","勅","勑","叱","啻","彳","恜","慗","憏","懘","抶","敕","斥","杘","湁","灻","炽","烾","熾","痓","痸","瘛","翄","翅","翤","翨","腟","赤","趩","遫","鉓","雴","飭","饬","鶒","鷘"],"gòng gōng":["供","共"],zhōu:["侜","周","喌","州","徟","洲","淍","炿","烐","珘","矪","舟","謅","譸","诌","賙","赒","輈","輖","辀","週","郮","銂","霌","駲","騆","鵃","鸼"],rú:["侞","儒","嚅","如","嬬","孺","帤","曘","桇","渪","濡","筎","茹","蕠","薷","蝡","蠕","袽","襦","邚","醹","銣","铷","顬","颥","鱬","鴑","鴽"],"jiàn cún":["侟"],xiá:["侠","俠","匣","峡","峽","敮","暇","柙","炠","烚","狎","狭","狹","珨","瑕","硖","硤","碬","祫","筪","縖","翈","舝","舺","蕸","赮","轄","辖","遐","鍜","鎋","陜","陿","霞","騢","魻","鶷","黠"],lǚ:["侣","侶","儢","吕","呂","屡","屢","履","挔","捛","旅","梠","焒","祣","稆","穭","絽","縷","缕","膂","膐","褛","褸","郘","鋁","铝"],ta:["侤"],"jiǎo yáo":["侥","僥","徺"],zhēn:["侦","偵","寊","帧","帪","幀","搸","斟","桢","楨","榛","樼","殝","浈","湞","潧","澵","獉","珍","珎","瑧","甄","眞","真","砧","碪","祯","禎","禛","箴","胗","臻","葴","蒖","蓁","薽","貞","贞","轃","遉","酙","針","鉁","錱","鍼","针","鱵"],"cè zè zhāi":["侧","側"],kuài:["侩","儈","凷","哙","噲","圦","块","塊","巜","廥","快","旝","欳","狯","獪","筷","糩","脍","膾","郐","鄶","鱠","鲙"],chái:["侪","儕","喍","柴","犲","祡","豺"],nóng:["侬","儂","农","哝","噥","檂","欁","浓","濃","燶","禯","秾","穠","脓","膿","蕽","襛","譨","農","辳","醲","鬞","𬪩"],jǐn:["侭","儘","卺","厪","巹","槿","漌","瑾","紧","緊","菫","蓳","謹","谨","錦","锦","饉","馑"],"hóu hòu":["侯","矦"],jiǒng:["侰","僒","冏","囧","泂","澃","炯","烱","煚","煛","熲","燛","窘","綗","褧","迥","逈","顈","颎","䌹"],"chěng tǐng":["侱"],"zhèn zhēn":["侲","揕"],zuò:["侳","做","唑","坐","岝","岞","座","祚","糳","胙","葃","葄","蓙","袏","阼"],qīn:["侵","兓","媇","嵚","嶔","欽","衾","誛","钦","顉","駸","骎","鮼"],jú:["侷","啹","婅","局","巈","椈","橘","泦","淗","湨","焗","犑","狊","粷","菊","蘜","趜","跼","蹫","輂","郹","閰","駶","驧","鵙","鵴","鶪","鼰","鼳","䴗"],"shù dōu":["侸"],tǐng:["侹","圢","娗","挺","涏","烶","珽","脡","艇","誔","頲","颋"],shèn:["侺","愼","慎","昚","涁","渗","滲","瘆","瘮","眘","祳","肾","胂","脤","腎","蜃","蜄","鋠"],"tuì tuó":["侻"],nán:["侽","喃","娚","抩","暔","枏","柟","楠","男","畘","莮","萳","遖"],xiāo:["侾","哓","嘵","嚻","囂","婋","宯","宵","庨","彇","揱","枭","枵","梟","櫹","歊","毊","消","潇","瀟","灱","灲","烋","焇","猇","獢","痚","痟","硝","硣","窙","箫","簘","簫","綃","绡","翛","膮","萧","蕭","虈","虓","蟂","蟏","蟰","蠨","踃","逍","銷","销","霄","颵","驍","骁","髇","髐","魈","鴞","鴵","鷍","鸮"],"biàn pián":["便","緶","缏"],tuǐ:["俀","腿","蹆","骽"],xì:["係","匸","卌","呬","墍","屃","屓","屭","忥","怬","恄","椞","潝","潟","澙","熂","犔","磶","禊","細","綌","縘","细","绤","舃","舄","蕮","虩","衋","覤","赩","趇","郤","釳","阋","隙","隟","霼","餼","饩","鬩","黖"],cù:["促","媨","憱","猝","瘄","瘯","簇","縬","脨","蔟","誎","趗","踧","踿","蹙","蹴","蹵","醋","顣","鼀"],é:["俄","囮","娥","峉","峨","峩","涐","珴","皒","睋","磀","莪","訛","誐","譌","讹","迗","鈋","鋨","锇","頟","額","额","魤","鵝","鵞","鹅"],qiú:["俅","叴","唒","囚","崷","巯","巰","扏","梂","殏","毬","求","汓","泅","浗","湭","煪","犰","玌","球","璆","皳","盚","紌","絿","肍","芁","莍","虬","虯","蛷","裘","觓","觩","訄","訅","賕","赇","逎","逑","遒","酋","釚","釻","銶","頄","鮂","鯄","鰽","鼽","𨱇"],xú:["俆","徐","禑"],"guàng kuāng":["俇"],kù:["俈","喾","嚳","库","庫","廤","瘔","絝","绔","袴","裤","褲","酷"],wù:["俉","务","務","勿","卼","坞","塢","奦","婺","寤","屼","岉","嵨","忢","悞","悟","悮","戊","扤","晤","杌","溩","焐","熃","物","痦","矹","窹","粅","蘁","誤","误","鋈","阢","隖","雾","霚","霧","靰","騖","骛","鶩","鹜","鼿","齀"],jùn:["俊","儁","呁","埈","寯","峻","懏","捃","攟","晙","棞","燇","珺","畯","竣","箟","蜠","賐","郡","陖","餕","馂","駿","骏","鵔","鵕","鵘","䐃"],liáng:["俍","墚","梁","椋","樑","粮","粱","糧","良","輬","辌","𫟅"],zǔ:["俎","唨","爼","祖","組","组","詛","诅","鎺","阻","靻"],"qiào xiào":["俏"],yǒng:["俑","勇","勈","咏","埇","塎","嵱","彮","怺","恿","悀","惥","愑","愹","慂","柡","栐","永","泳","湧","甬","蛹","詠","踊","踴","鯒","鲬"],hùn:["俒","倱","圂","尡","慁","掍","溷","焝","睴","觨","諢","诨"],jìng:["俓","傹","境","妌","婙","婧","弪","弳","径","徑","敬","曔","桱","梷","浄","瀞","獍","痉","痙","竞","竟","竫","競","竸","胫","脛","莖","誩","踁","迳","逕","鏡","镜","靖","静","靜","鵛"],sàn:["俕","閐"],pěi:["俖"],sú:["俗"],xī:["俙","僖","兮","凞","卥","厀","吸","唏","唽","嘻","噏","嚱","夕","奚","嬆","嬉","屖","嵠","巇","希","徆","徯","息","悉","悕","惁","惜","昔","晞","晰","晳","曦","析","桸","榽","樨","橀","欷","氥","汐","浠","淅","渓","溪","烯","焁","焈","焟","熄","熈","熙","熹","熺","熻","燨","爔","牺","犀","犠","犧","琋","瘜","皙","睎","瞦","矽","硒","磎","礂","稀","穸","窸","粞","糦","緆","繥","羲","翕","翖","肸","肹","膝","舾","莃","菥","蒠","蜥","螅","蟋","蠵","西","觹","觽","觿","譆","谿","豀","豨","豯","貕","赥","邜","鄎","酅","醯","釸","錫","鏭","鐊","鑴","锡","隵","餏","饎","饻","鯑","鵗","鸂","鼷"],lǐ:["俚","娌","峢","峲","李","欚","浬","澧","理","礼","禮","粴","裏","裡","豊","逦","邐","醴","鋰","锂","鯉","鱧","鱱","鲤","鳢"],bǎo:["保","堢","媬","宝","寚","寳","寶","珤","緥","葆","藵","褓","賲","靌","飹","飽","饱","駂","鳵","鴇","鸨"],"yú shù yù":["俞"],"sì qí":["俟"],"xìn shēn":["信"],xiū:["俢","修","咻","庥","樇","烌","羞","脙","脩","臹","貅","銝","鎀","飍","饈","馐","髤","髹","鮴","鱃","鵂","鸺","䗛"],dì:["俤","偙","僀","埊","墑","墬","娣","帝","怟","旳","梊","焍","玓","甋","眱","睇","碲","祶","禘","第","締","缔","腣","菂","蒂","蔕","蝃","蝭","螮","諦","谛","踶","递","逓","遞","遰","鉪","𤧛","䗖"],chóu:["俦","儔","嬦","惆","愁","懤","栦","燽","畴","疇","皗","稠","筹","籌","絒","綢","绸","菗","詶","讎","讐","踌","躊","酧","酬","醻","雔","雠","雦"],zhì:["俧","偫","儨","制","劕","垁","娡","寘","帙","帜","幟","庢","庤","廌","彘","徏","徝","志","忮","懥","懫","挃","挚","掷","摯","擲","旘","晊","智","栉","桎","梽","櫍","櫛","治","洷","滍","滞","滯","潌","瀄","炙","熫","狾","猘","璏","瓆","痔","痣","礩","祑","秩","秷","稚","稺","穉","窒","紩","緻","置","翐","膣","至","致","芖","蛭","袟","袠","製","覟","觗","觯","觶","誌","豑","豒","貭","質","贄","质","贽","跱","踬","躓","輊","轾","郅","銍","鋕","鑕","铚","锧","陟","隲","雉","駤","騭","騺","驇","骘","鯯","鴙","鷙","鸷","𬃊"],"liǎ liǎng":["俩"],jiǎn:["俭","倹","儉","减","剪","堿","弿","彅","戩","戬","拣","挸","捡","揀","撿","枧","柬","梘","检","検","檢","減","湕","瀽","瑐","睑","瞼","硷","碱","礆","笕","筧","简","簡","絸","繭","翦","茧","藆","蠒","裥","襇","襉","襺","詃","謇","謭","譾","谫","趼","蹇","鐗","鬋","鰎","鹸","鹻","鹼"],huò:["俰","咟","嚯","嚿","奯","彠","惑","或","擭","旤","曤","檴","沎","湱","瀖","獲","癨","眓","矐","祸","禍","穫","窢","耯","臛","艧","获","蒦","藿","蠖","謋","貨","货","鍃","鑊","镬","雘","霍","靃","韄","㸌"],"jù jū":["俱","据","鋸","锯"],xiào:["俲","傚","効","咲","哮","啸","嘋","嘨","嘯","孝","效","斅","斆","歗","涍","熽","笑","詨","誟"],pái:["俳","徘","牌","犤","猅","簰","簲","輫"],biào:["俵","鰾","鳔"],"chù tì":["俶"],fèi:["俷","剕","厞","吠","屝","废","廃","廢","昲","曊","櫠","沸","濷","狒","癈","肺","萉","費","费","鐨","镄","陫","靅","鼣"],fèng:["俸","凤","奉","湗","焨","煈","賵","赗","鳯","鳳","鴌"],ǎn:["俺","唵","埯","揞","罯","銨","铵"],bèi:["俻","倍","偝","偹","備","僃","备","悖","惫","愂","憊","昁","梖","焙","牬","犕","狈","狽","珼","琲","碚","禙","糒","苝","蓓","蛽","褙","貝","贝","軰","輩","辈","邶","郥","鄁","鋇","鐾","钡","鞁","鞴","𬇙"],yù:["俼","儥","喅","喩","喻","域","堉","妪","嫗","寓","峪","嶎","庽","彧","御","愈","慾","戫","昱","棛","棜","棫","櫲","欎","欝","欲","毓","浴","淯","滪","潏","澦","灪","焴","煜","燏","燠","爩","狱","獄","玉","琙","瘉","癒","砡","硢","硲","礇","礖","礜","禦","秗","稢","稶","篽","籞","籲","粖","緎","罭","聿","肀","艈","芋","芌","茟","蒮","蓣","蓹","蕷","蘌","蜟","蜮","袬","裕","誉","諭","譽","谕","豫","軉","輍","逳","遇","遹","郁","醧","鈺","鋊","錥","鐭","钰","閾","阈","雤","霱","預","预","飫","饇","饫","馭","驈","驭","鬰","鬱","鬻","魊","鱊","鳿","鴥","鴧","鴪","鵒","鷸","鸒","鹆","鹬"],xīn:["俽","噺","妡","嬜","廞","心","忄","忻","惞","新","昕","杺","欣","歆","炘","盺","薪","訢","辛","邤","鈊","鋅","鑫","锌","馨","馫","䜣","𫷷"],"hǔ chí":["俿"],jiù:["倃","僦","匓","匛","匶","厩","咎","就","廄","廏","廐","慦","捄","救","旧","柩","柾","桕","欍","殧","疚","臼","舅","舊","鯦","鷲","鹫","麔","齨","㠇"],yáo:["倄","傜","嗂","垚","堯","姚","媱","尧","尭","峣","嶢","嶤","徭","揺","搖","摇","摿","暚","榣","烑","爻","猺","珧","瑤","瑶","磘","窑","窯","窰","肴","蘨","謠","謡","谣","軺","轺","遙","遥","邎","顤","颻","飖","餆","餚","鰩","鱙","鳐"],"cuì zú":["倅"],"liǎng liǎ":["倆"],wǎn:["倇","唍","婉","惋","挽","晚","晥","晩","晼","梚","椀","琬","畹","皖","盌","碗","綩","綰","绾","脘","萖","踠","輓","鋔"],zǒng:["倊","偬","傯","嵸","总","惣","捴","搃","摠","燪","総","緫","縂","總","蓗"],guān:["倌","关","官","棺","瘝","癏","窤","蒄","関","闗","關","鰥","鱞","鳏"],tiǎn:["倎","唺","忝","悿","晪","殄","淟","睓","腆","舔","覥","觍","賟","錪","餂"],mén:["們","扪","捫","璊","菛","虋","鍆","钔","門","閅","门","𫞩"],"dǎo dào":["倒"],"tán tàn":["倓","埮"],"juè jué":["倔"],chuí:["倕","垂","埀","捶","搥","桘","棰","槌","箠","腄","菙","錘","鎚","锤","陲","顀"],xìng:["倖","姓","婞","嬹","幸","性","悻","杏","涬","緈","臖","荇","莕","葕"],péng:["倗","傰","塜","塳","弸","憉","捀","朋","棚","椖","樥","硼","稝","竼","篷","纄","膨","芃","蓬","蘕","蟚","蟛","袶","輣","錋","鑝","韸","韼","騯","髼","鬅","鬔","鵬","鹏"],"tǎng cháng":["倘"],hòu:["候","厚","后","垕","堠","後","洉","茩","豞","逅","郈","鮜","鱟","鲎","鲘"],tì:["倜","剃","嚏","嚔","屉","屜","悌","悐","惕","惖","戻","掦","替","朑","歒","殢","涕","瓋","笹","籊","薙","褅","逖","逷","髰","鬀","鬄"],gàn:["倝","凎","幹","榦","檊","淦","灨","盰","紺","绀","詌","贑","赣","骭","㽏"],"liàng jìng":["倞","靓"],suī:["倠","哸","夊","滖","濉","眭","睢","芕","荽","荾","虽","雖","鞖"],"chàng chāng":["倡"],jié:["倢","偼","傑","刦","刧","刼","劫","劼","卩","卪","婕","媫","孑","岊","崨","嵥","嶻","巀","幯","截","捷","掶","擮","昅","杢","杰","桀","桝","楬","楶","榤","洁","滐","潔","狤","睫","礍","竭","節","羯","莭","蓵","蛣","蜐","蠘","蠞","蠽","衱","袺","訐","詰","誱","讦","踕","迼","鉣","鍻","镼","頡","鮚","鲒","㛃"],"kǒng kōng":["倥"],juàn:["倦","劵","奆","慻","桊","淃","狷","獧","眷","睊","睠","絭","絹","绢","罥","羂","腃","蔨","鄄","餋"],zōng:["倧","堫","宗","嵏","嵕","惾","朡","棕","椶","熧","猣","磫","緃","翪","腙","葼","蝬","豵","踨","踪","蹤","鍐","鑁","騌","騣","骔","鬃","鬉","鬷","鯮","鯼"],ní:["倪","坭","埿","尼","屔","怩","淣","猊","籾","聣","蚭","蜺","觬","貎","跜","輗","郳","鈮","铌","霓","馜","鯢","鲵","麑","齯","𫐐","𫠜"],zhuō:["倬","拙","捉","桌","梲","棁","棳","槕","涿","窧","鐯","䦃"],"wō wēi":["倭"],luǒ:["倮","剆","曪","瘰","癳","臝","蓏","蠃","裸","躶"],sōng:["倯","凇","娀","崧","嵩","庺","憽","松","枀","枩","柗","梥","檧","淞","濍","硹","菘","鬆"],lèng:["倰","堎","愣","睖","踜"],zì:["倳","剚","字","恣","渍","漬","牸","眥","眦","胔","胾","自","茡","荢"],bèn:["倴","坌","捹","撪","渀","笨","逩"],cǎi:["倸","啋","婇","彩","採","棌","毝","睬","綵","跴","踩"],zhài:["债","債","寨","瘵","砦"],yē:["倻","吔","噎","擨","暍","椰","歋","潱","蠮"],shà:["倽","唼","喢","歃","箑","翜","翣","萐","閯","霎"],qīng:["倾","傾","卿","圊","寈","氢","氫","淸","清","蜻","軽","輕","轻","郬","錆","鑋","靑","青","鯖"],yīng:["偀","嘤","噟","嚶","婴","媖","嫈","嬰","孆","孾","愥","撄","攖","朠","桜","樱","櫻","渶","煐","珱","瑛","璎","瓔","甇","甖","碤","礯","緓","纓","绬","缨","罂","罃","罌","膺","英","莺","蘡","蝧","蠳","褮","譻","賏","軈","鑍","锳","霙","韺","鴬","鶑","鶧","鶯","鷪","鷹","鸎","鸚","鹦","鹰","䓨"],"chēng chèn":["偁","爯"],ruǎn:["偄","朊","瑌","瓀","碝","礝","腝","軟","輭","软","阮"],"zhòng tóng":["偅"],chǔn:["偆","惷","睶","萶","蠢","賰"],"jiǎ jià":["假"],"jì jié":["偈"],"bǐng bìng":["偋"],ruò:["偌","叒","嵶","弱","楉","焫","爇","箬","篛","蒻","鄀","鰙","鰯","鶸"],tí:["偍","厗","啼","嗁","崹","漽","瑅","睼","禵","稊","緹","缇","罤","蕛","褆","謕","趧","蹄","蹏","醍","鍗","題","题","騠","鮷","鯷","鳀","鵜","鷤","鹈","𫘨"],wēi:["偎","危","喴","威","媙","嶶","巍","微","愄","揋","揻","椳","楲","溦","烓","煨","燰","癓","縅","葨","葳","薇","蜲","蝛","覣","詴","逶","隇","隈","霺","鰃","鰄","鳂"],piān:["偏","囨","媥","楄","犏","篇","翩","鍂"],yàn:["偐","厌","厭","唁","喭","嚈","嚥","堰","妟","姲","嬊","嬿","宴","彥","彦","敥","晏","暥","曕","曣","滟","灎","灔","灧","灩","焔","焰","焱","熖","燄","牪","猒","砚","硯","艳","艶","艷","覎","觃","觾","諺","讌","讞","谚","谳","豓","豔","贋","贗","赝","軅","酀","酽","醼","釅","雁","餍","饜","騐","験","騴","驗","驠","验","鬳","鳫","鴈","鴳","鷃","鷰","齞"],"tǎng dàng":["偒"],è:["偔","匎","卾","厄","呝","咢","噩","垩","堊","堮","岋","崿","廅","悪","愕","戹","扼","搤","搹","擜","櫮","歞","歺","湂","琧","砈","砐","硆","腭","苊","萼","蕚","蚅","蝁","覨","諤","讍","谔","豟","軛","軶","轭","遌","遏","遻","鄂","鈪","鍔","鑩","锷","阨","阸","頞","顎","颚","餓","餩","饿","鰐","鰪","鱷","鳄","鶚","鹗","齃","齶","𫫇","𥔲"],xié:["偕","勰","协","協","嗋","垥","奊","恊","愶","拹","携","撷","擕","擷","攜","斜","旪","熁","燲","綊","緳","縀","缬","翓","胁","脅","脇","脋","膎","蝢","衺","襭","諧","讗","谐","鞋","鞵","龤","㙦"],chě:["偖","扯","撦"],shěng:["偗","渻","眚"],chā:["偛","嗏","扠","挿","插","揷","疀","臿","艖","銟","鍤","锸","餷"],huáng:["偟","凰","喤","堭","墴","媓","崲","徨","惶","楻","湟","煌","獚","瑝","璜","癀","皇","磺","穔","篁","簧","艎","葟","蝗","蟥","諻","趪","遑","鍠","鐄","锽","隍","韹","餭","騜","鰉","鱑","鳇","鷬","黃","黄","𨱑"],yǎo:["偠","咬","婹","宎","岆","杳","柼","榚","溔","狕","窅","窈","舀","苭","闄","騕","鷕","齩"],"chǒu qiào":["偢"],yóu:["偤","尤","庮","怣","沋","油","浟","游","犹","猶","猷","由","疣","秞","肬","莜","莸","蕕","蚰","蝣","訧","輏","輶","逰","遊","邮","郵","鈾","铀","駀","魷","鮋","鱿","鲉","𬨎"],xū:["偦","墟","媭","嬃","楈","欨","歔","燸","疞","盱","綇","縃","繻","胥","蕦","虗","虚","虛","蝑","裇","訏","許","諝","譃","谞","鑐","需","須","须","顼","驉","鬚","魆","魖","𬣙","𦈡"],zhā:["偧","哳","抯","挓","揸","摣","樝","渣","皶","觰","譇","齄","齇"],cī:["偨","疵","蠀","趀","骴","髊","齹"],bī:["偪","屄","楅","毴","豍","逼","鰏","鲾","鵖"],xún:["偱","噚","寻","尋","峋","巡","廵","循","恂","揗","攳","旬","杊","栒","桪","樳","洵","浔","潯","燅","燖","珣","璕","畃","紃","荀","蟳","詢","询","鄩","鱏","鱘","鲟","𬘓","𬩽","𬍤","𬊈"],"cāi sī":["偲"],duān:["偳","媏","端","褍","鍴"],ǒu:["偶","吘","嘔","耦","腢","蕅","藕","𬉼","𠙶"],tōu:["偷","偸","鍮"],"zán zá zǎ":["偺"],"lǚ lóu":["偻","僂"],fèn:["偾","僨","奋","奮","弅","忿","愤","憤","瀵","瞓","秎","粪","糞","膹","鱝","鲼"],"kuǐ guī":["傀"],sǒu:["傁","叜","叟","嗾","櫢","瞍","薮","藪"],"zhì sī tí":["傂"],sù:["傃","僳","嗉","塐","塑","夙","嫊","愫","憟","榡","樎","樕","殐","泝","涑","溯","溸","潚","潥","玊","珟","璛","簌","粛","粟","素","縤","肃","肅","膆","蔌","藗","觫","訴","謖","诉","谡","趚","蹜","速","遡","遬","鋉","餗","驌","骕","鱐","鷫","鹔","𫗧"],xiā:["傄","煆","瞎","虲","谺","颬","鰕"],"yuàn yuán":["傆","媛"],rǒng:["傇","冗","宂","氄","軵"],nù:["傉","怒"],yùn:["傊","孕","恽","惲","愠","慍","枟","腪","蕴","薀","藴","蘊","褞","貟","运","運","郓","鄆","酝","醖","醞","韗","韞","韵","韻","餫"],"gòu jiǎng":["傋"],mà:["傌","嘜","榪","睰","祃","禡","罵","閁","駡","骂","鬕"],bàng:["傍","塝","棒","玤","稖","艕","蒡","蜯","謗","谤","鎊","镑"],diān:["傎","厧","嵮","巅","巓","巔","掂","攧","敁","槇","滇","癫","癲","蹎","顚","顛","颠","齻"],táng:["傏","唐","啺","坣","堂","塘","搪","棠","榶","溏","漟","煻","瑭","磄","禟","篖","糃","糖","糛","膅","膛","蓎","螗","螳","赯","踼","鄌","醣","鎕","隚","餹","饄","鶶","䣘"],hào:["傐","哠","恏","昊","昦","晧","暠","暤","暭","曍","浩","淏","澔","灏","灝","皓","皜","皞","皡","皥","耗","聕","薃","號","鄗","顥","颢","鰝"],"xī xì":["傒"],shān:["傓","删","刪","剼","圸","山","挻","搧","柵","檆","潸","澘","煽","狦","珊","笘","縿","羴","羶","脠","舢","芟","衫","跚","軕","邖","閊","鯅"],"qiàn jiān":["傔"],"què jué":["傕","埆"],"cāng chen":["傖"],róng:["傛","媶","嫆","嬫","容","峵","嵘","嶸","戎","搈","曧","栄","榕","榮","榵","毧","溶","瀜","烿","熔","狨","瑢","穁","絨","绒","羢","肜","茙","茸","荣","蓉","蝾","融","螎","蠑","褣","鎔","镕","駥"],"tà tàn":["傝"],suō:["傞","唆","嗍","嗦","娑","摍","桫","梭","睃","簑","簔","羧","莏","蓑","趖","鮻"],dǎi:["傣","歹"],zài:["傤","儎","再","在","扗","洅","載","酨"],gǔ:["傦","古","啒","尳","愲","榖","榾","汩","淈","濲","瀔","牯","皷","皼","盬","瞽","穀","罟","羖","股","脵","臌","薣","蛊","蠱","詁","诂","轂","逧","鈷","钴","餶","馉","鼓","鼔","𦙶"],bīn:["傧","宾","彬","斌","椕","滨","濒","濱","濵","瀕","繽","缤","虨","豩","豳","賓","賔","邠","鑌","镔","霦","顮"],chǔ:["储","儲","杵","椘","楚","楮","檚","濋","璴","础","礎","禇","處","齭","齼","𬺓"],nuó:["傩","儺","挪","梛","橠"],"cān càn":["傪"],lěi:["傫","儡","厽","垒","塁","壘","壨","櫐","灅","癗","矋","磊","礨","耒","蕌","蕾","藟","蘽","蠝","誄","讄","诔","鑸","鸓"],cuī:["催","凗","墔","崔","嵟","慛","摧","榱","獕","磪","鏙"],yōng:["傭","嗈","墉","壅","嫞","庸","廱","慵","拥","擁","滽","灉","牅","痈","癕","癰","臃","邕","郺","鄘","鏞","镛","雍","雝","饔","鱅","鳙","鷛"],"zāo cáo":["傮"],sǒng:["傱","嵷","怂","悚","愯","慫","竦","耸","聳","駷","㧐"],ào:["傲","坳","垇","墺","奡","嫯","岙","岰","嶴","懊","擙","澳","鏊","驁","骜"],"qī còu":["傶"],chuǎng:["傸","磢","闖","闯"],shǎ:["傻","儍"],hàn:["傼","垾","悍","憾","扞","捍","撖","撼","旱","晘","暵","汉","涆","漢","瀚","焊","猂","皔","睅","翰","莟","菡","蛿","蜭","螒","譀","輚","釬","銲","鋎","雗","頷","顄","颔","駻","鶾"],zhāng:["傽","嫜","张","張","彰","慞","暲","樟","漳","獐","璋","章","粻","蔁","蟑","遧","鄣","鏱","餦","騿","鱆","麞"],"yān yàn":["傿","墕","嬮"],"piào biāo":["僄","骠"],liàn:["僆","堜","媡","恋","戀","楝","殓","殮","湅","潋","澰","瀲","炼","煉","瑓","練","纞","练","萰","錬","鍊","鏈","链","鰊","𬶠"],màn:["㵘","僈","墁","幔","慢","曼","漫","澷","熳","獌","縵","缦","蔄","蘰","鄤","鏝","镘","𬜬"],"tàn tǎn":["僋"],yíng:["僌","営","塋","嬴","攍","楹","櫿","溁","溋","滢","潆","濙","濚","濴","瀅","瀛","瀠","瀯","灐","灜","熒","營","瑩","盁","盈","禜","籝","籯","縈","茔","荧","莹","萤","营","萦","萾","蓥","藀","蛍","蝇","蝿","螢","蠅","謍","贏","赢","迎","鎣"],dòng:["働","冻","凍","动","動","姛","戙","挏","栋","棟","湩","硐","胨","胴","腖","迵","霘","駧"],zhuàn:["僎","啭","囀","堟","撰","灷","瑑","篆","腞","蒃","襈","譔","饌","馔"],xiàng:["像","勨","向","嚮","姠","嶑","曏","橡","珦","缿","蟓","衖","襐","象","鐌","項","项","鱌"],shàn:["僐","善","墠","墡","嬗","擅","敾","椫","樿","歚","汕","灗","疝","磰","繕","缮","膳","蟮","蟺","訕","謆","譱","讪","贍","赡","赸","鄯","鐥","饍","騸","骟","鱓","鱔","鳝","𫮃"],"tuí tuǐ":["僓"],zǔn:["僔","噂","撙","譐"],pú:["僕","匍","圤","墣","濮","獛","璞","瞨","穙","莆","菐","菩","葡","蒱","蒲","贌","酺","鏷","镤"],láo:["僗","劳","労","勞","哰","崂","嶗","憥","朥","浶","牢","痨","癆","窂","簩","醪","鐒","铹","顟","髝","𫭼"],chǎng:["僘","厰","廠","敞","昶","氅","鋹","𬬮"],guāng:["僙","光","咣","垙","姯","洸","灮","炗","炚","炛","烡","珖","胱","茪","輄","銧","黆","𨐈"],liáo:["僚","嘹","嫽","寥","寮","尞","屪","嵺","嶚","嶛","廫","憀","敹","暸","橑","獠","璙","疗","療","竂","簝","繚","缭","聊","膋","膫","藔","蟟","豂","賿","蹘","辽","遼","飉","髎","鷯","鹩"],dèng:["僜","凳","墱","嶝","櫈","瞪","磴","覴","邓","鄧","隥"],"chán zhàn zhuàn":["僝"],bō:["僠","嶓","拨","撥","播","波","溊","玻","癶","盋","砵","碆","礡","缽","菠","袰","蹳","鉢","钵","餑","饽","驋","鱍","𬭛"],huì:["僡","匯","卉","喙","嘒","嚖","圚","嬒","寭","屶","屷","彗","彙","彚","徻","恚","恵","惠","慧","憓","懳","晦","暳","槥","橞","檅","櫘","汇","泋","滙","潓","烩","燴","獩","璤","瞺","硊","秽","穢","篲","絵","繪","绘","翙","翽","荟","蔧","蕙","薈","薉","蟪","詯","誨","諱","譓","譿","讳","诲","賄","贿","鐬","闠","阓","靧","頮","顪","颒","餯","𬤝","𬭬"],chuǎn:["僢","喘","舛","荈","踳"],"tiě jiàn":["僣"],sēng:["僧","鬙"],xiàn:["僩","僴","哯","垷","塪","姭","娊","宪","岘","峴","憲","撊","晛","橌","橺","涀","瀗","献","獻","现","現","県","睍","粯","糮","絤","綫","線","线","缐","羡","羨","腺","臔","臽","苋","莧","誢","豏","鋧","錎","限","陥","陷","霰","餡","馅","麲","鼸","𬀪","𪾢"],"yù jú":["僪"],"è wū":["僫"],"tóng zhuàng":["僮"],lǐn:["僯","凛","凜","廩","廪","懍","懔","撛","檁","檩","澟","癛","癝"],gù:["僱","凅","固","堌","崓","崮","故","梏","棝","牿","痼","祻","錮","锢","雇","顧","顾","鯝","鲴"],jiāng:["僵","壃","姜","橿","殭","江","畕","疅","礓","繮","缰","翞","茳","葁","薑","螀","螿","豇","韁","鱂","鳉"],mǐn:["僶","冺","刡","勄","悯","惽","愍","慜","憫","抿","敃","敏","敯","泯","潣","皿","笢","笽","簢","蠠","閔","閩","闵","闽","鰵","鳘","黽"],jìn:["僸","凚","噤","嚍","墐","壗","妗","嬧","搢","晉","晋","枃","殣","浕","浸","溍","濅","濜","烬","煡","燼","琎","瑨","璶","盡","祲","縉","缙","荩","藎","覲","觐","賮","贐","赆","近","进","進","靳","齽"],"jià jie":["價"],qiào:["僺","峭","帩","撬","殻","窍","竅","誚","诮","躈","陗","鞩","韒","髚"],pì:["僻","媲","嫓","屁","澼","甓","疈","譬","闢","鷿","鸊","䴙"],sài:["僿","簺","賽","赛"],"chán tǎn shàn":["儃"],"dāng dàng":["儅","当","闣"],xuān:["儇","喧","塇","媗","宣","愃","愋","揎","昍","暄","煊","煖","瑄","睻","矎","禤","箮","翧","翾","萱","萲","蓒","蕿","藼","蘐","蝖","蠉","諠","諼","譞","谖","軒","轩","鍹","駽","鰚","𫓶","𫍽"],"dān dàn":["儋","擔","瘅"],càn:["儏","澯","灿","燦","璨","粲","薒","謲"],"bīn bìn":["儐"],"án àn":["儑"],tái:["儓","坮","嬯","抬","擡","檯","炱","炲","籉","臺","薹","跆","邰","颱","鮐","鲐"],lán:["儖","兰","囒","婪","岚","嵐","幱","拦","攔","斓","斕","栏","欄","欗","澜","瀾","灆","灡","燣","燷","璼","篮","籃","籣","繿","葻","蓝","藍","蘫","蘭","褴","襕","襤","襴","襽","譋","讕","谰","躝","鑭","镧","闌","阑","韊","𬒗"],"nǐ yì ài yí":["儗"],méng:["儚","幪","曚","朦","橗","檬","氋","溕","濛","甍","甿","盟","礞","艨","莔","萌","蕄","虻","蝱","鄳","鄸","霿","靀","顭","饛","鯍","鸏","鹲","𫑡","㠓"],níng:["儜","凝","咛","嚀","嬣","柠","橣","檸","狞","獰","聍","聹","薴","鑏","鬡","鸋"],qióng:["儝","卭","宆","惸","憌","桏","橩","焪","焭","煢","熍","琼","瓊","睘","穷","穹","窮","竆","笻","筇","舼","茕","藑","藭","蛩","蛬","赹","跫","邛","銎","䓖"],liè:["儠","冽","列","劣","劽","埒","埓","姴","峛","巤","挒","捩","栵","洌","浖","烈","烮","煭","犣","猎","猟","獵","聗","脟","茢","蛚","趔","躐","迾","颲","鬛","鬣","鮤","鱲","鴷","䴕","𫚭"],kuǎng:["儣","夼","懭"],bào:["儤","勽","報","忁","报","抱","曓","爆","犦","菢","虣","蚫","豹","鉋","鑤","铇","骲","髱","鮑","鲍"],biāo:["儦","墂","幖","彪","标","標","滮","瀌","熛","爂","猋","瘭","磦","膘","臕","謤","贆","鏢","鑣","镖","镳","颮","颷","飆","飇","飈","飊","飑","飙","飚","驫","骉","髟"],zǎn:["儧","儹","噆","攅","昝","趱","趲"],háo:["儫","嗥","嘷","噑","嚎","壕","椃","毜","毫","濠","獆","獔","竓","籇","蚝","蠔","譹","豪"],qìng:["儬","凊","庆","慶","櫦","濪","碃","磬","罄","靘"],chèn:["儭","嚫","榇","櫬","疢","衬","襯","讖","谶","趁","趂","齓","齔","龀"],téng:["儯","幐","滕","漛","疼","籐","籘","縢","腾","藤","虅","螣","誊","謄","邆","駦","騰","驣","鰧","䲢"],"lǒng lóng lòng":["儱"],"chán chàn":["儳"],"ráng xiāng":["儴","勷"],"huì xié":["儶"],luó:["儸","攞","椤","欏","猡","玀","箩","籮","罗","羅","脶","腡","萝","蘿","螺","覼","逻","邏","鏍","鑼","锣","镙","饠","騾","驘","骡","鸁"],léi:["儽","嫘","檑","欙","瓃","畾","縲","纍","纝","缧","罍","羸","蔂","蘲","虆","轠","鐳","鑘","镭","雷","靁","鱩","鼺"],"nàng nāng":["儾"],"wù wū":["兀"],yǔn:["允","喗","夽","抎","殒","殞","狁","磒","荺","賱","鈗","阭","陨","隕","霣","馻","齫","齳"],zān:["兂","橵","簪","簮","糌","鐕","鐟","鵤"],yuán:["元","円","原","厡","厵","园","圆","圎","園","圓","垣","塬","媴","嫄","援","榞","榬","橼","櫞","沅","湲","源","溒","爰","猨","猿","笎","緣","縁","缘","羱","茒","薗","蝝","蝯","螈","袁","褤","謜","轅","辕","邍","邧","酛","鈨","鎱","騵","魭","鶢","鶰","黿","鼋","𫘪"],xiōng:["兄","兇","凶","匂","匈","哅","忷","恟","汹","洶","胷","胸","芎","訩","詾","讻"],chōng:["充","嘃","忡","憃","憧","摏","沖","浺","珫","罿","翀","舂","艟","茺","衝","蹖","㳘"],zhào:["兆","垗","旐","曌","枛","櫂","照","燳","狣","瞾","笊","罀","罩","羄","肁","肇","肈","詔","诏","赵","趙","鮡","𬶐"],"duì ruì yuè":["兊","兌","兑"],kè:["克","刻","勀","勊","堁","娔","客","恪","愙","氪","溘","碦","緙","缂","艐","衉","課","课","錁","锞","騍","骒"],tù:["兎","兔","堍","迌","鵵"],dǎng:["党","攩","欓","譡","讜","谠","黨","𣗋"],dōu:["兜","兠","唗","橷","篼","蔸"],huǎng:["兤","奛","幌","怳","恍","晄","炾","熀","縨","詤","謊","谎"],rù:["入","嗕","媷","扖","杁","洳","溽","縟","缛","蓐","褥","鳰"],nèi:["內","氝","氞","錗"],"yú shù":["兪"],"liù lù":["六"],han:["兯","爳"],tiān:["兲","天","婖","添","酟","靔","靝","黇"],"xīng xìng":["兴"],diǎn:["典","嚸","奌","婰","敟","椣","点","碘","蒧","蕇","踮","點"],"zī cí":["兹"],jiān:["兼","冿","囏","坚","堅","奸","姦","姧","尖","幵","惤","戋","戔","搛","椾","樫","櫼","歼","殱","殲","湔","瀐","瀸","煎","熞","熸","牋","瑊","睷","礛","礷","笺","箋","緘","縑","缄","缣","肩","艰","艱","菅","菺","葌","蒹","蔪","蕑","蕳","虃","譼","豜","鑯","雃","鞯","韀","韉","餰","馢","鰔","鰜","鰹","鲣","鳒","鵑","鵳","鶼","鹣","麉"],shòu:["兽","受","售","壽","夀","寿","授","狩","獣","獸","痩","瘦","綬","绶","膄"],jì:["兾","冀","剂","剤","劑","勣","坖","垍","塈","妓","季","寂","寄","廭","彑","徛","忌","悸","惎","懻","技","旡","既","旣","暨","暩","曁","梞","檕","檵","洎","漃","漈","瀱","痵","癠","禝","稩","稷","穄","穊","穧","紀","継","績","繋","繼","继","绩","罽","臮","芰","茍","茤","葪","蓟","蔇","薊","蘎","蘮","蘻","裚","襀","覬","觊","計","記","誋","计","记","跡","跽","蹟","迹","际","際","霁","霽","驥","骥","髻","鬾","魝","魥","鯚","鯽","鰶","鰿","鱀","鱭","鲚","鲫","鵋","鷑","齌","𪟝","𬶨","𬶭"],jiōng:["冂","冋","坰","埛","扃","蘏","蘔","駉","駫","𬳶"],mào:["冃","冐","媢","帽","愗","懋","暓","柕","楙","毷","瑁","皃","眊","瞀","耄","茂","萺","蝐","袤","覒","貌","貿","贸","鄚","鄮"],rǎn:["冄","冉","姌","媣","染","珃","苒","蒅","䎃"],"nèi nà":["内"],gāng:["冈","冮","刚","剛","堈","堽","岡","掆","摃","棡","牨","犅","疘","綱","纲","缸","罁","罡","肛","釭","鎠","㭎"],cè:["冊","册","厕","厠","夨","廁","恻","惻","憡","敇","测","測","笧","策","筞","筴","箣","荝","萗","萴","蓛"],guǎ:["冎","剐","剮","叧","寡"],"mào mò":["冒"],gòu:["冓","啂","坸","垢","够","夠","媾","彀","搆","撀","构","構","煹","覯","觏","訽","詬","诟","購","购","遘","雊"],xǔ:["冔","喣","暊","栩","珝","盨","糈","詡","諿","诩","鄦","醑"],mì:["冖","冪","嘧","塓","宻","密","峚","幂","幎","幦","怽","榓","樒","櫁","汨","淧","滵","漞","濗","熐","羃","蔤","蜜","覓","覔","覛","觅","謐","谧","鼏"],"yóu yín":["冘"],xiě:["写","冩","藛"],jūn:["军","君","均","桾","汮","皲","皸","皹","碅","莙","蚐","袀","覠","軍","鈞","銁","銞","鍕","钧","頵","鮶","鲪","麏"],mí:["冞","擟","瀰","爢","猕","獼","祢","禰","縻","蒾","藌","蘪","蘼","袮","詸","謎","迷","醚","醾","醿","釄","镾","鸍","麊","麋","麛"],"guān guàn":["冠","覌","観","觀","观"],měng:["冡","勐","懵","掹","猛","獴","艋","蜢","蠓","錳","锰","鯭","鼆"],zhǒng:["冢","塚","尰","歱","煄","瘇","肿","腫","踵"],zuì:["冣","嶵","晬","最","栬","槜","檇","檌","祽","絊","罪","蕞","辠","酔","酻","醉","錊"],yuān:["冤","剈","囦","嬽","寃","棩","淵","渁","渆","渊","渕","灁","眢","肙","葾","蒬","蜎","蜵","駌","鳶","鴛","鵷","鸢","鸳","鹓","鼘","鼝"],míng:["冥","名","明","暝","朙","榠","洺","溟","猽","眀","眳","瞑","茗","螟","覭","詺","鄍","銘","铭","鳴","鸣"],kòu:["冦","叩","宼","寇","扣","敂","滱","窛","筘","簆","蔲","蔻","釦","鷇"],tài:["冭","太","夳","忲","态","態","汰","汱","泰","溙","肽","舦","酞","鈦","钛"],"féng píng":["冯","馮"],"chōng chòng":["冲"],kuàng:["况","圹","壙","岲","懬","旷","昿","曠","框","況","爌","眖","眶","矿","砿","礦","穬","絋","絖","纊","纩","貺","贶","軦","邝","鄺","鉱","鋛","鑛","黋"],lěng:["冷"],pàn:["冸","判","叛","沜","泮","溿","炍","牉","畔","盼","聁","袢","襻","詊","鋬","鑻","頖","鵥"],fā:["冹","彂","沷","発","發"],xiǎn:["冼","尟","尠","崄","嶮","幰","攇","显","櫶","毨","灦","烍","燹","狝","猃","獫","獮","玁","禒","筅","箲","藓","蘚","蚬","蜆","譣","赻","跣","鍌","险","険","險","韅","顕","顯","㬎"],qià:["冾","圶","帢","恰","殎","洽","硈","胢","髂"],"jìng chēng":["净","凈","淨"],sōu:["凁","嗖","廀","廋","捜","搜","摉","溲","獀","艘","蒐","螋","鄋","醙","鎪","锼","颼","飕","餿","馊","騪"],měi:["凂","媄","媺","嬍","嵄","挴","毎","每","浼","渼","燘","美","躾","鎂","镁","黣"],tú:["凃","図","图","圖","圗","塗","屠","峹","嵞","庩","廜","徒","悇","揬","涂","瘏","筡","腯","荼","蒤","跿","途","酴","鈯","鍎","馟","駼","鵌","鶟","鷋","鷵","𬳿"],zhǔn:["准","凖","埻","準","𬘯"],"liáng liàng":["凉","涼","量"],diāo:["凋","刁","刟","叼","奝","弴","彫","汈","琱","碉","簓","虭","蛁","貂","錭","雕","鮉","鯛","鲷","鵰","鼦"],còu:["凑","湊","腠","輳","辏"],ái:["凒","啀","嘊","捱","溰","癌","皑","皚"],duó:["凙","剫","夺","奪","痥","踱","鈬","鐸","铎"],dú:["凟","匵","嬻","椟","櫝","殰","涜","牍","牘","犊","犢","独","獨","瓄","皾","裻","読","讀","讟","豄","贕","錖","鑟","韇","韣","韥","騳","髑","黩","黷"],"jǐ jī":["几"],fán:["凡","凢","凣","匥","墦","杋","柉","棥","樊","瀿","烦","煩","燔","璠","矾","礬","笲","籵","緐","羳","舤","舧","薠","蘩","蠜","襎","蹯","釩","鐇","鐢","钒","鷭","𫔍","𬸪"],jū:["凥","匊","娵","婮","居","崌","抅","挶","掬","梮","椐","檋","毩","毱","泃","涺","狙","琚","疽","砠","罝","腒","艍","蜛","裾","諊","跔","踘","躹","陱","雎","鞠","鞫","駒","驹","鮈","鴡","鶋","𬶋"],"chù chǔ":["処","处"],zhǐ:["凪","劧","咫","址","坧","帋","恉","扺","指","旨","枳","止","汦","沚","洔","淽","疻","砋","祉","秖","紙","纸","芷","藢","衹","襧","訨","趾","軹","轵","酯","阯","黹"],píng:["凭","凴","呯","坪","塀","岼","帡","帲","幈","平","慿","憑","枰","洴","焩","玶","瓶","甁","竮","箳","簈","缾","荓","萍","蓱","蚲","蛢","評","评","軿","輧","郱","鮃","鲆"],kǎi:["凯","凱","剀","剴","垲","塏","恺","愷","慨","暟","蒈","輆","鍇","鎧","铠","锴","闓","闿","颽"],gān:["凲","坩","尲","尴","尶","尷","柑","泔","漧","玕","甘","疳","矸","竿","筸","粓","肝","苷","迀","酐","魐"],"kǎn qiǎn":["凵"],tū:["凸","堗","嶀","捸","涋","湥","痜","禿","秃","突","葖","鋵","鵚","鼵","㻬"],"āo wā":["凹"],chū:["出","初","岀","摴","榋","樗","貙","齣","䢺","䝙"],dàng:["凼","圵","垱","壋","档","檔","氹","璗","瓽","盪","瞊","砀","碭","礑","簜","荡","菪","蕩","蘯","趤","逿","雼","𬍡"],hán:["函","凾","含","圅","娢","寒","崡","晗","梒","浛","涵","澏","焓","琀","甝","筨","蜬","邗","邯","鋡","韓","韩"],záo:["凿","鑿"],dāo:["刀","刂","忉","氘","舠","螩","釖","魛","鱽"],chuāng:["刅","摐","牎","牕","疮","瘡","窓","窗","窻"],"fēn fèn":["分"],"qiè qiē":["切"],kān:["刊","勘","堪","戡","栞","龕","龛"],cǔn:["刌","忖"],chú:["刍","厨","幮","廚","橱","櫉","櫥","滁","犓","篨","耡","芻","蒢","蒭","蜍","蟵","豠","趎","蹰","躇","躕","鉏","鋤","锄","除","雏","雛","鶵"],"huà huá":["划"],lí:["刕","剓","剺","劙","厘","喱","嚟","囄","嫠","孷","廲","悡","梨","梸","棃","漓","灕","犁","犂","狸","琍","璃","瓈","盠","睝","离","穲","竰","筣","篱","籬","糎","縭","缡","罹","艃","荲","菞","蓠","蔾","藜","蘺","蜊","蟍","蟸","蠫","褵","謧","貍","醨","鋫","錅","鏫","鑗","離","驪","骊","鯏","鯬","鱺","鲡","鵹","鸝","鹂","黎","黧","㰀"],yuè:["刖","嬳","岄","岳","嶽","恱","悅","悦","戉","抈","捳","月","樾","瀹","爚","玥","礿","禴","篗","籆","籥","籰","粤","粵","蘥","蚎","蚏","説","越","跀","跃","躍","軏","鈅","鉞","鑰","钺","閱","閲","阅","鸑","鸙","黦","龠","𫐄","𬸚"],liú:["刘","劉","嚠","媹","嵧","旈","旒","榴","橊","流","浏","瀏","琉","瑠","瑬","璢","畄","留","畱","疁","瘤","癅","硫","蒥","蓅","蟉","裗","鎏","鏐","鐂","镠","飀","飅","飗","駠","駵","騮","驑","骝","鰡","鶹","鹠","麍"],zé:["则","則","啧","嘖","嫧","帻","幘","択","樍","歵","沢","泎","溭","皟","瞔","矠","礋","箦","簀","舴","蔶","蠌","襗","謮","賾","赜","迮","鸅","齚","齰"],"chuàng chuāng":["创","創"],qù:["刞","厺","去","閴","闃","阒","麮","鼁"],"bié biè":["別","别"],"páo bào":["刨"],"chǎn chàn":["刬","剗","幝"],guā:["刮","劀","桰","歄","煱","瓜","胍","踻","颪","颳","騧","鴰","鸹"],gēng:["刯","庚","椩","浭","焿","畊","絚","羮","羹","耕","菮","賡","赓","鶊","鹒"],dào:["到","噵","悼","椡","檤","燾","瓙","盗","盜","稲","稻","纛","翿","艔","菿","衜","衟","軇","道"],chuàng:["刱","剏","剙","怆","愴"],kū:["刳","哭","圐","堀","枯","桍","矻","窟","跍","郀","骷","鮬"],duò:["刴","剁","墯","尮","惰","憜","挅","桗","舵","跥","跺","陊","陏","飿","饳","鵽"],"shuā shuà":["刷"],"quàn xuàn":["券"],"chà shā":["刹","剎"],"cì cī":["刺"],guì:["刽","刿","劊","劌","撌","攰","昋","桂","椢","槶","樻","櫃","猤","禬","筀","蓕","襘","貴","贵","跪","鐀","鑎","鞼","鱖","鱥"],lóu:["剅","娄","婁","廔","楼","樓","溇","漊","熡","耧","耬","艛","蒌","蔞","蝼","螻","謱","軁","遱","鞻","髅","髏","𪣻"],cuò:["剉","剒","厝","夎","挫","措","棤","莝","莡","蓌","逪","銼","錯","锉","错"],"xiāo xuē":["削"],"kēi kè":["剋","尅"],"là lá":["剌"],tī:["剔","梯","踢","銻","锑","鷈","鷉","䏲","䴘"],pōu:["剖"],wān:["剜","塆","壪","帵","弯","彎","湾","潫","灣","睕","蜿","豌"],"bāo bō":["剝","剥"],duō:["剟","咄","哆","嚉","多","夛","掇","毲","畓","裰","㙍"],qíng:["剠","勍","夝","情","擎","晴","暒","棾","樈","檠","氰","甠","硘","葝","黥"],"yǎn shàn":["剡"],"dū zhuó":["剢"],yān:["剦","嫣","崦","嶖","恹","懕","懨","樮","淊","淹","漹","烟","焉","焑","煙","珚","篶","胭","臙","菸","鄢","醃","閹","阉","黫"],huō:["剨","劐","吙","攉","秴","耠","锪","騞","𬴃"],shèng:["剩","剰","勝","圣","墭","嵊","晠","榺","橳","琞","聖","蕂","貹","賸"],"duān zhì":["剬"],wū:["剭","呜","嗚","圬","屋","巫","弙","杇","歍","汙","汚","污","洿","烏","窏","箼","螐","誈","誣","诬","邬","鄔","鎢","钨","鰞","鴮"],gē:["割","哥","圪","彁","戈","戓","戨","歌","滒","犵","肐","袼","謌","鎶","鴚","鴿","鸽"],"dá zhá":["剳"],chuán:["剶","暷","椽","篅","舡","舩","船","輲","遄"],"tuán zhuān":["剸","漙","篿"],"lù jiū":["剹"],pēng:["剻","匉","嘭","怦","恲","抨","梈","烹","砰","軯","駍"],piāo:["剽","勡","慓","旚","犥","翲","螵","飃","飄","飘","魒"],kōu:["剾","彄","抠","摳","眍","瞘","芤","𫸩"],"jiǎo chāo":["剿","劋","勦","摷"],qiāo:["劁","勪","墝","幧","敲","橇","毃","燆","硗","磽","繑","趬","跷","踍","蹺","蹻","郻","鄡","鄥","鍫","鍬","鐰","锹","頝"],"huá huà":["劃"],"zhā zhá":["劄"],"pī pǐ":["劈","悂"],tāng:["劏","嘡","羰","薚","蝪","蹚","鞺","鼞"],chán:["劖","嚵","壥","婵","嬋","巉","廛","棎","毚","湹","潹","潺","澶","瀍","瀺","煘","獑","磛","緾","纏","纒","缠","艬","蝉","蟐","蟬","蟾","誗","讒","谗","躔","鄽","酁","鋋","鑱","镵","饞","馋"],zuān:["劗","躜","躦","鉆","鑚"],mó:["劘","嫫","嬤","嬷","尛","摹","擵","橅","糢","膜","藦","蘑","謨","謩","谟","饃","饝","馍","髍","魔","魹"],zhú:["劚","斸","曯","欘","灟","炢","烛","燭","爥","瘃","竹","笁","笜","舳","茿","蓫","蠋","蠾","躅","逐","逫","钃","鱁"],quàn:["劝","勧","勸","牶","韏"],"jìn jìng":["劤","劲","勁"],kēng:["劥","坑","牼","硁","硜","誙","銵","鍞","鏗","铿","阬"],"xié liè":["劦"],"zhù chú":["助"],nǔ:["努","弩","砮","胬"],shào:["劭","卲","哨","潲","紹","綤","绍","袑","邵"],miǎo:["劰","杪","淼","渺","眇","秒","篎","緲","缈","藐","邈"],kǒu:["劶","口"],wā:["劸","娲","媧","屲","挖","攨","洼","溛","漥","瓾","畖","穵","窊","窪","蛙","韈","鼃"],kuāng:["劻","匡","匩","哐","恇","洭","筐","筺","誆","诓","軭","邼"],hé:["劾","咊","啝","姀","峆","敆","曷","柇","楁","毼","河","涸","渮","澕","熆","皬","盇","盉","盍","盒","禾","篕","籺","粭","翮","菏","萂","覈","訸","詥","郃","釛","鉌","鑉","閡","闔","阂","阖","鞨","頜","餄","饸","魺","鹖","麧","齕","龁","龢","𬌗"],gào:["勂","吿","告","峼","祮","祰","禞","筶","誥","诰","郜","鋯","锆"],"bó bèi":["勃"],láng:["勆","嫏","廊","斏","桹","榔","樃","欴","狼","琅","瑯","硠","稂","艆","蓈","蜋","螂","躴","郒","郞","鋃","鎯","锒"],xūn:["勋","勛","勲","勳","嚑","坃","埙","塤","壎","壦","曛","燻","獯","矄","纁","臐","薫","薰","蘍","醺","𫄸"],"juàn juān":["勌","瓹"],"lè lēi":["勒"],kài:["勓","炌","烗","鎎"],"wěng yǎng":["勜"],qín:["勤","嗪","噙","嶜","庈","懃","懄","捦","擒","斳","檎","澿","珡","琴","琹","瘽","禽","秦","耹","芩","芹","菦","螓","蠄","鈙","鈫","雂","靲","鳹","鵭"],jiàng:["勥","匞","匠","嵹","弜","弶","摾","櫤","洚","滰","犟","糡","糨","絳","绛","謽","酱","醤","醬"],fān:["勫","嬏","帆","幡","忛","憣","旙","旛","繙","翻","藩","轓","颿","飜","鱕"],juān:["勬","姢","娟","捐","涓","蠲","裐","鎸","鐫","镌","鹃"],"tóng dòng":["勭","烔","燑","狪"],lǜ:["勴","垏","嵂","律","慮","氯","滤","濾","爈","箻","綠","繂","膟","葎","虑","鑢"],chè:["勶","坼","彻","徹","掣","撤","澈","烢","爡","瞮","硩","聅","迠","頙","㬚"],sháo:["勺","玿","韶"],"gōu gòu":["勾"],cōng:["匆","囪","囱","忩","怱","悤","暰","樬","漗","瑽","璁","瞛","篵","繱","聡","聦","聪","聰","苁","茐","葱","蓯","蔥","蟌","鍯","鏓","鏦","騘","驄","骢"],"táo yáo":["匋","陶"],páo:["匏","咆","垉","庖","爮","狍","袍","褜","軳","鞄","麅"],dá:["匒","妲","怛","炟","燵","畣","笪","羍","荙","薘","蟽","詚","达","迏","迖","迚","逹","達","鐽","靼","鞑","韃","龖","龘","𫟼"],"huà huā":["化"],"běi bèi":["北"],nǎo:["匘","垴","堖","嫐","恼","悩","惱","瑙","碯","脑","脳","腦"],"chí shi":["匙"],fāng:["匚","堏","方","淓","牥","芳","邡","鈁","錺","钫","鴋"],zā:["匝","咂","帀","沞","臜","臢","迊","鉔","魳"],qiè:["匧","厒","妾","怯","悏","惬","愜","挈","穕","窃","竊","笡","箧","篋","籡","踥","鍥","锲","鯜"],"zāng cáng":["匨"],fěi:["匪","奜","悱","棐","榧","篚","翡","蕜","誹","诽"],"kuì guì":["匮","匱"],suǎn:["匴"],pǐ:["匹","噽","嚭","圮","庀","痞","癖","脴","苉","銢","鴄"],"qū ōu":["区","區"],"kē qià":["匼"],"yǎn yàn":["匽","棪"],biǎn:["匾","惼","揙","碥","稨","窆","藊","褊","貶","贬","鴘"],nì:["匿","堄","嫟","嬺","惄","愵","昵","暱","氼","眤","睨","縌","胒","腻","膩","逆","𨺙"],niàn:["卄","唸","埝","廿","念","惗","艌"],sà:["卅","櫒","脎","萨","蕯","薩","鈒","隡","颯","飒","馺"],zú:["卆","哫","崪","族","箤","足","踤","镞"],shēng:["升","呏","声","斘","昇","曻","枡","殅","泩","湦","焺","牲","珄","生","甥","竔","笙","聲","鉎","鍟","阩","陞","陹","鵿","鼪"],wàn:["卍","卐","忨","杤","瞣","脕","腕","萬","蟃","贎","輐","錽","𬇕"],"huá huà huā":["华","華"],bēi:["卑","悲","揹","杯","桮","盃","碑","藣","鵯","鹎"],"zú cù":["卒"],"dān shàn chán":["单","單"],"nán nā":["南"],"shuài lǜ":["卛"],"bǔ bo pú":["卜"],"kuàng guàn":["卝"],biàn:["卞","变","変","峅","弁","徧","忭","抃","昪","汳","汴","玣","艑","苄","覍","諚","變","辡","辧","辨","辩","辫","辮","辯","遍","釆","𨚕"],bǔ:["卟","哺","捕","补","補","鸔","𬷕"],"zhàn zhān":["占","覱"],"kǎ qiǎ":["卡"],lú:["卢","嚧","垆","壚","庐","廬","曥","枦","栌","櫨","泸","瀘","炉","爐","獹","玈","瓐","盧","矑","籚","纑","罏","胪","臚","舮","舻","艫","芦","蘆","蠦","轤","轳","鈩","鑪","顱","颅","馿","髗","魲","鱸","鲈","鸕","鸬","黸","𬬻"],lǔ:["卤","塷","掳","擄","樐","橹","櫓","氌","滷","澛","瀂","硵","磠","穞","艣","艪","蓾","虏","虜","鏀","鐪","鑥","镥","魯","鲁","鹵"],guà:["卦","啩","挂","掛","罣","褂","詿","诖"],"áng yǎng":["卬"],yìn:["印","垽","堷","廕","慭","憖","憗","懚","洕","湚","猌","癊","胤","茚","酳","鮣","䲟"],què:["却","卻","塙","崅","悫","愨","慤","搉","榷","燩","琷","皵","确","確","礭","闋","阕","鵲","鹊","𬒈"],luǎn:["卵"],"juàn juǎn":["卷","巻"],"chǎng ān hàn":["厂"],"wěi yán":["厃"],tīng:["厅","厛","听","庁","廰","廳","汀","烃","烴","綎","耓","聴","聼","聽","鞓","𬘩"],"zhé zhái":["厇"],"hàn àn":["厈","屽"],yǎ:["厊","唖","庌","痖","瘂","蕥"],shè:["厍","厙","弽","慑","慴","懾","摂","欇","涉","涻","渉","滠","灄","社","舎","蔎","蠂","設","设","赦","騇","麝"],dǐ:["厎","呧","坘","弤","抵","拞","掋","牴","砥","菧","觝","詆","诋","軧","邸","阺","骶","鯳"],"zhǎ zhǎi":["厏"],páng:["厐","嫎","庞","徬","舽","螃","逄","鰟","鳑","龎","龐"],"zhì shī":["厔"],máng:["厖","吂","哤","娏","忙","恾","杗","杧","汒","浝","牻","痝","盲","硭","笀","芒","茫","蘉","邙","釯","鋩","铓","駹"],zuī:["厜","樶","纗","蟕"],"shà xià":["厦","廈"],áo:["厫","嗷","嗸","廒","敖","滶","獒","獓","璈","翱","翶","翺","聱","蔜","螯","謷","謸","遨","鏖","隞","鰲","鳌","鷔","鼇"],"lán qiān":["厱"],"sī mǒu":["厶"],"gōng hóng":["厷"],"lín miǎo":["厸"],"qiú róu":["厹"],dū:["厾","嘟","督","醏"],"xiàn xuán":["县","縣"],"cān shēn cēn sān":["参","參","叄","叅"],"ài yǐ":["叆"],"chā chà chǎ chá":["叉"],shuāng:["双","孀","孇","欆","礵","艭","雙","霜","騻","驦","骦","鷞","鸘","鹴"],shōu:["収","收"],guái:["叏"],bá:["叐","妭","抜","拔","炦","癹","胈","茇","菝","詙","跋","軷","魃","鼥"],"fā fà":["发"],"zhuó yǐ lì jué":["叕"],qǔ:["取","娶","竬","蝺","詓","齲","龋"],"jiǎ xiá":["叚","徦"],"wèi yù":["叞","尉","蔚"],dié:["叠","垤","堞","峌","幉","恎","惵","戜","曡","殜","氎","牃","牒","瓞","畳","疂","疉","疊","碟","絰","绖","耊","耋","胅","艓","苵","蜨","蝶","褋","詄","諜","谍","跮","蹀","迭","镻","鰈","鲽","鴩","𫶇"],ruì:["叡","枘","汭","瑞","睿","芮","蚋","蜹","銳","鋭","锐"],"jù gōu":["句"],lìng:["另","呤","炩","蘦"],"dāo dáo tāo":["叨"],"zhī zhǐ":["只"],jiào:["叫","呌","嘂","嘦","噍","嬓","斍","斠","滘","漖","獥","珓","皭","窖","藠","訆","譥","趭","較","轎","轿","较","酵","醮","釂"],"zhào shào":["召"],"kě kè":["可"],"tái tāi":["台","苔"],pǒ:["叵","尀","笸","箥","鉕","钷","駊"],"yè xié":["叶"],"hào háo":["号"],tàn:["叹","嘆","探","歎","湠","炭","碳","舕"],"hōng hóng":["叿"],miē:["吀","咩","哶","孭"],"xū yū yù":["吁"],chī:["吃","哧","喫","嗤","噄","妛","媸","彨","彲","摛","攡","殦","瓻","痴","癡","眵","瞝","笞","粚","胵","蚩","螭","訵","魑","鴟","鵄","鸱","黐","齝","𫄨"],"xuān sòng":["吅"],yāo:["吆","喓","夭","妖","幺","楆","殀","祅","腰","葽","訞","邀","鴁","鴢","㙘"],zǐ:["吇","姉","姊","子","杍","梓","榟","橴","滓","矷","秭","笫","籽","紫","耔","虸","訿","釨"],"hé gě":["合","鲄"],"cùn dòu":["吋"],"tóng tòng":["同"],"tǔ tù":["吐","唋"],"zhà zhā":["吒","奓"],"xià hè":["吓"],"ā yā":["吖"],"ma má mǎ":["吗"],lìn:["吝","恡","悋","橉","焛","甐","膦","蔺","藺","賃","赁","蹸","躏","躙","躪","轥","閵"],tūn:["吞","暾","朜","焞"],"bǐ pǐ":["吡"],qìn:["吢","吣","唚","抋","揿","搇","撳","沁","瀙","菣","藽"],"jiè gè":["吤"],"fǒu pǐ":["否"],"ba bā":["吧"],dūn:["吨","噸","墩","墪","惇","撉","撴","犜","獤","礅","蜳","蹾","驐"],fēn:["吩","帉","昐","朆","梤","棻","氛","竕","紛","纷","翂","芬","衯","訜","躮","酚","鈖","雰","餴","饙","馚"],"é huā":["吪"],"kēng háng":["吭","妔"],shǔn:["吮"],"zhī zī":["吱"],"yǐn shěn":["吲"],wú:["吳","吴","呉","墲","峿","梧","橆","毋","洖","浯","無","珸","璑","祦","芜","茣","莁","蕪","蜈","蟱","譕","郚","鋙","铻","鯃","鵐","鷡","鹀","鼯"],"chǎo chāo":["吵"],"nà nè":["吶"],"xuè chuò jué":["吷"],chuī:["吹","炊","龡"],"dōu rú":["吺"],hǒu:["吼","犼"],"hōng hǒu ōu":["吽"],"wú yù":["吾"],"ya yā":["呀"],"è e":["呃"],dāi:["呆","懛","獃"],"mèn qǐ":["呇"],hōng:["呍","嚝","揈","灴","烘","焢","硡","薨","訇","谾","軣","輷","轟","轰","鍧"],nà:["呐","捺","笝","納","纳","肭","蒳","衲","豽","貀","軜","郍","鈉","钠","靹","魶"],"tūn tiān":["呑"],"fǔ ḿ":["呒","嘸"],"dāi tǎi":["呔"],"ǒu ōu òu":["呕"],"bài bei":["呗"],"yuán yún yùn":["员","員"],guō:["呙","啯","嘓","埚","堝","墎","崞","彉","彍","懖","猓","瘑","聒","蝈","蟈","郭","鈛","鍋","锅"],"huá qì":["呚"],"qiàng qiāng":["呛","跄"],shī:["呞","失","尸","屍","师","師","施","浉","湤","湿","溮","溼","濕","狮","獅","瑡","絁","葹","蒒","蓍","虱","蝨","褷","襹","詩","诗","邿","釃","鉇","鍦","鯴","鰤","鲺","鳲","鳾","鶳","鸤","䴓","𫚕"],juǎn:["呟","埍","臇","菤","錈","锩"],pěn:["呠","翸"],"wěn mǐn":["呡"],"ne ní":["呢"],"ḿ m̀ móu":["呣"],rán:["呥","嘫","然","燃","繎","肰","蚦","蚺","衻","袇","袡","髥","髯"],"tiè chè":["呫"],"qì zhī":["呮"],"zǐ cī":["呰"],"guā gū guǎ":["呱"],"cī zī":["呲"],"hǒu xǔ gòu":["呴"],"hē ā á ǎ à a":["呵"],náo:["呶","夒","峱","嶩","巎","挠","撓","猱","硇","蛲","蟯","詉","譊","鐃","铙"],"xiā gā":["呷"],pēi:["呸","怌","肧","胚","衃","醅"],"háo xiāo":["呺"],mìng:["命","掵"],"dá dàn":["呾"],"zuǐ jǔ":["咀"],"xián gān":["咁"],pǒu:["咅","哣","犃"],"yǎng yāng":["咉"],"zǎ zé zhā":["咋"],"hé hè huó huò hú":["和"],hāi:["咍"],dā:["咑","哒","噠","墶","搭","撘","耷","褡","鎝","𨱏"],"kǎ kā":["咔"],gū:["咕","唂","唃","姑","嫴","孤","巬","巭","柧","橭","沽","泒","稒","笟","箍","箛","篐","罛","苽","菇","菰","蓇","觚","軱","軲","轱","辜","酤","鈲","鮕","鴣","鸪"],"kā gā":["咖"],zuo:["咗"],lóng:["咙","嚨","嶐","巃","巄","昽","曨","朧","栊","槞","櫳","湰","滝","漋","爖","珑","瓏","癃","眬","矓","砻","礱","礲","窿","竜","聋","聾","胧","茏","蘢","蠪","蠬","襱","豅","鏧","鑨","霳","靇","驡","鸗","龍","龒","龙"],"xiàn xián":["咞"],qì:["咠","唭","噐","器","夡","弃","憇","憩","暣","棄","欫","气","気","氣","汔","汽","泣","湆","湇","炁","甈","盵","矵","碛","碶","磜","磧","罊","芞","葺","藒","蟿","訖","讫","迄","鐑"],"xì dié":["咥"],"liē liě lié lie":["咧"],zī:["咨","嗞","姕","姿","孜","孳","孶","崰","嵫","栥","椔","淄","湽","滋","澬","玆","禌","秶","粢","紎","緇","緕","纃","缁","茊","茲","葘","諮","谘","貲","資","赀","资","赼","趑","趦","輜","輺","辎","鄑","鈭","錙","鍿","鎡","锱","镃","頾","頿","髭","鯔","鰦","鲻","鶅","鼒","齍","齜","龇"],mī:["咪"],"jī xī qià":["咭"],"gē luò kǎ lo":["咯"],"shù xún":["咰"],"zán zá zǎ zan":["咱"],"hāi ké":["咳"],huī:["咴","噅","噕","婎","媈","幑","徽","恢","拻","挥","揮","晖","暉","楎","洃","瀈","灰","灳","烣","睳","禈","翚","翬","蘳","袆","褘","詼","诙","豗","輝","辉","鰴","麾","㧑"],"huài shì":["咶"],táo:["咷","啕","桃","檮","洮","淘","祹","綯","绹","萄","蜪","裪","迯","逃","醄","鋾","鞀","鞉","饀","駣","騊","鼗","𫘦"],xián:["咸","啣","娴","娹","婱","嫌","嫺","嫻","弦","挦","撏","涎","湺","澖","甉","痫","癇","癎","絃","胘","舷","藖","蚿","蛝","衔","衘","誸","諴","賢","贒","贤","輱","醎","銜","鑦","閑","闲","鷳","鷴","鷼","鹇","鹹","麙","𫍯"],"è àn":["咹"],"xuān xuǎn":["咺","烜"],"wāi hé wǒ guǎ guō":["咼"],"yàn yè yān":["咽"],āi:["哀","哎","埃","溾","銰","鎄","锿"],pǐn:["品","榀"],shěn:["哂","婶","嬸","审","宷","審","弞","曋","渖","瀋","瞫","矤","矧","覾","訠","諗","讅","谂","谉","邥","頣","魫"],"hǒng hōng hòng":["哄"],"wā wa":["哇"],"hā hǎ hà":["哈"],zāi:["哉","栽","渽","溨","災","灾","烖","睵","賳"],"dì diè":["哋"],pài:["哌","沠","派","渒","湃","蒎","鎃"],"gén hěn":["哏"],"yǎ yā":["哑","雅"],"yuě huì":["哕","噦"],nián:["哖","年","秊","秥","鮎","鯰","鲇","鲶","鵇","黏"],"huá huā":["哗","嘩"],"jì jiē zhāi":["哜","嚌"],mōu:["哞"],"yō yo":["哟","喲"],lòng:["哢","梇","贚"],"ò ó é":["哦"],"lī lǐ li":["哩"],"nǎ na nǎi né něi":["哪"],hè:["哬","垎","壑","寉","惒","焃","煂","燺","爀","癋","碋","翯","褐","謞","賀","贺","赫","靍","靎","靏","鶴","鸖","鹤"],"bō pò bā":["哱"],zhé:["哲","啠","喆","嚞","埑","悊","摺","晢","晣","歽","矺","砓","磔","籷","粍","虴","蛰","蟄","袩","詟","謫","謺","讁","讋","谪","輒","輙","轍","辄","辙","鮿"],"liàng láng":["哴"],"liè lǜ":["哷"],hān:["哻","憨","蚶","谽","酣","頇","顸","馠","魽","鼾"],"hēng hng":["哼"],gěng:["哽","埂","峺","挭","梗","綆","绠","耿","莄","郠","骾","鯁","鲠","𬒔"],"chuò yuè":["哾"],"gě jiā":["哿"],"bei bài":["唄"],"hán hàn":["唅"],chún:["唇","浱","湻","滣","漘","犉","純","纯","脣","莼","蒓","蓴","醇","醕","錞","陙","鯙","鶉","鹑","𬭚"],"ài āi":["唉"],"jiá qiǎn":["唊"],"yán dàn xián":["唌"],chē:["唓","砗","硨","莗","蛼"],"wú ńg ń":["唔"],zào:["唕","唣","噪","慥","梍","灶","煰","燥","皁","皂","竃","竈","簉","艁","譟","趮","躁","造","𥖨"],dí:["唙","啇","嘀","嚁","嫡","廸","敌","敵","梑","涤","滌","狄","笛","籴","糴","苖","荻","蔋","蔐","藡","覿","觌","豴","迪","靮","頔","馰","髢","鸐","𬱖"],"gòng hǒng gǒng":["唝","嗊"],dóu:["唞"],"lào láo":["唠","嘮","憦"],huàn:["唤","喚","奂","奐","宦","嵈","幻","患","愌","换","換","擐","攌","梙","槵","浣","涣","渙","漶","澣","烉","焕","煥","瑍","痪","瘓","睆","肒","藧","豢","轘","逭","鯇","鯶","鰀","鲩"],léng:["唥","塄","楞","碐","薐"],"wō wěi":["唩"],fěng:["唪","覂","諷","讽"],"yín jìn":["唫"],"hǔ xià":["唬"],wéi:["唯","围","圍","壝","峗","峞","嵬","帏","帷","幃","惟","桅","沩","洈","涠","湋","溈","潍","潙","潿","濰","犩","矀","維","维","蓶","覹","违","違","鄬","醀","鍏","闈","闱","韋","韦","鮠","𣲗","𬶏"],shuā:["唰"],chàng:["唱","怅","悵","暢","焻","畅","畼","誯","韔","鬯"],"ér wā":["唲"],qiàng:["唴","炝","熗","羻"],yō:["唷"],yū:["唹","淤","瘀","盓","箊","紆","纡","込","迂","迃","陓"],lài:["唻","濑","瀨","瀬","癞","癩","睐","睞","籁","籟","藾","賚","賴","赉","赖","頼","顂","鵣"],tuò:["唾","嶞","柝","毤","毻","箨","籜","萚","蘀","跅"],"zhōu zhāo tiào":["啁"],kěn:["啃","垦","墾","恳","懇","肎","肯","肻","豤","錹"],"zhuó zhào":["啅","濯"],"hēng hèng":["啈","悙"],"lín lán":["啉"],"a ā á ǎ à":["啊"],qiāng:["啌","嗴","嶈","戕","摤","斨","枪","槍","溬","牄","猐","獇","羌","羗","腔","蜣","謒","鏘","锖","锵"],"tūn zhūn xiāng duǐ":["啍"],wèn:["問","妏","揾","搵","璺","问","顐"],"cuì qi":["啐"],"dié shà jié tì":["啑"],"yuē wā":["啘"],"zǐ cǐ":["啙"],"bǐ tú":["啚"],"chuò chuài":["啜"],"yǎ yā è":["啞"],fēi:["啡","婓","婔","扉","暃","渄","猆","緋","绯","裶","霏","非","靟","飛","飝","飞","餥","馡","騑","騛","鯡","鲱","𬴂"],pí:["啤","壀","枇","毗","毘","焷","琵","疲","皮","篺","罴","羆","脾","腗","膍","蚍","蚽","蜱","螷","蠯","豼","貔","郫","鈹","阰","陴","隦","魮","鮍","鲏","鵧","鼙"],shá:["啥"],"lā la":["啦"],"yīng qíng":["啨"],pā:["啪","妑","舥","葩","趴"],"zhě shì":["啫"],sè:["啬","嗇","懎","擌","栜","歮","涩","渋","澀","澁","濇","濏","瀒","瑟","璱","瘷","穑","穡","穯","繬","譅","轖","銫","鏼","铯","飋"],niè:["啮","嗫","噛","嚙","囁","囓","圼","孼","孽","嵲","嶭","巕","帇","敜","枿","槷","櫱","涅","湼","痆","篞","籋","糱","糵","聂","聶","臬","臲","蘖","蠥","讘","踂","踗","踙","蹑","躡","錜","鎳","鑈","鑷","钀","镊","镍","闑","陧","隉","顳","颞","齧","𫔶"],"luō luó luo":["啰","囉"],"tān chǎn tuō":["啴"],bo:["啵","蔔"],dìng:["啶","定","椗","矴","碇","碠","磸","聢","腚","萣","蝊","訂","订","錠","锭","顁","飣","饤"],lāng:["啷"],"án ān":["啽"],kā:["喀","擖"],"yóng yú":["喁"],"lā lá lǎ":["喇"],jiē:["喈","喼","嗟","堦","媘","接","掲","擑","湝","煯","疖","痎","癤","皆","秸","稭","脻","蝔","街","謯","阶","階","鞂","鶛"],hóu:["喉","帿","猴","瘊","睺","篌","糇","翭","葔","鄇","鍭","餱","骺","鯸","𬭤"],"dié zhá":["喋"],wāi:["喎","歪","竵"],"nuò rě":["喏"],"xù huò guó":["喐"],zán:["喒"],"wō ō":["喔"],hú:["喖","嘝","囫","壶","壷","壺","媩","弧","搰","斛","楜","槲","湖","瀫","焀","煳","狐","猢","瑚","瓳","箶","絗","縠","胡","葫","蔛","蝴","螜","衚","觳","醐","鍸","頶","餬","鬍","魱","鰗","鵠","鶘","鶦","鹕"],"huàn yuán xuǎn hé":["喛"],xǐ:["喜","囍","壐","屣","徙","憙","枲","橲","歖","漇","玺","璽","矖","禧","縰","葈","葸","蓰","蟢","謑","蹝","躧","鈢","鉨","鉩","鱚","𬭳","𬶮"],"hē hè yè":["喝"],kuì:["喟","嘳","媿","嬇","愦","愧","憒","篑","簣","籄","聩","聭","聵","膭","蕢","謉","餽","饋","馈"],"zhǒng chuáng":["喠"],"wéi wèi":["喡","為","爲"],"duó zhà":["喥"],"sāng sàng":["喪"],"qiáo jiāo":["喬"],"pèn bēn":["喯"],"cān sūn qī":["喰"],"zhā chā":["喳"],miāo:["喵"],"pēn pèn":["喷"],kuí:["喹","夔","奎","巙","戣","揆","晆","暌","楏","楑","櫆","犪","睽","葵","藈","蘷","虁","蝰","躨","逵","鄈","鍨","鍷","頯","馗","騤","骙","魁"],"lou lóu":["喽"],"zào qiāo":["喿"],"hè xiāo xiào hù":["嗃"],"á shà":["嗄"],xiù:["嗅","岫","峀","溴","珛","琇","璓","秀","綉","繍","繡","绣","螑","袖","褎","褏","銹","鏥","鏽","锈","齅"],"qiāng qiàng":["嗆","戗","戧","蹌","蹡"],"ài yì":["嗌","艾"],"má mǎ ma":["嗎"],"kè kē":["嗑"],"dā tà":["嗒","鎉"],sǎng:["嗓","搡","磉","褬","鎟","顙","颡"],chēn:["嗔","抻","琛","瞋","諃","謓","賝","郴","𬘭"],"wā gǔ":["嗗"],"pǎng bēng":["嗙"],"xián qiǎn qiān":["嗛"],lào:["嗠","嫪","橯","涝","澇","耢","耮","躼","軂","酪"],wēng:["嗡","翁","聬","螉","鎓","鶲","鹟","𬭩"],wà:["嗢","腽","膃","袜","襪","韤"],"hēi hāi":["嗨"],hē:["嗬","欱","蠚","訶","诃"],zi:["嗭"],sǎi:["嗮"],"ǹg ńg ňg":["嗯"],gě:["嗰","舸"],ná:["嗱","拏","拿","鎿","镎"],diǎ:["嗲"],"ài ǎi āi":["嗳"],tōng:["嗵","樋","炵","蓪"],"zuī suī":["嗺"],"zhē zhè zhù zhe":["嗻"],mò:["嗼","圽","塻","墨","妺","嫼","寞","帞","昩","末","枺","歿","殁","沫","漠","爅","獏","瘼","皌","眽","眿","瞐","瞙","砞","礳","秣","絈","纆","耱","茉","莈","蓦","蛨","蟔","貃","貊","貘","銆","鏌","镆","陌","靺","驀","魩","默","黙","𬙊"],sòu:["嗽","瘶"],tǎn:["嗿","坦","忐","憳","憻","暺","毯","璮","菼","袒","襢","醓","鉭","钽"],"jiào dǎo":["嘄"],"kǎi gě":["嘅"],"shān càn":["嘇"],cáo:["嘈","嶆","曹","曺","槽","漕","艚","蓸","螬","褿","鏪","𥕢"],piào:["嘌","徱","蔈","驃"],"lóu lou":["嘍"],gǎ:["尕","玍"],"gǔ jiǎ":["嘏"],"jiāo xiāo":["嘐"],"xū shī":["嘘","噓"],pó:["嘙","嚩","婆","櫇","皤","鄱"],"dē dēi":["嘚"],"ma má":["嘛"],"lē lei":["嘞"],"gā gá gǎ":["嘠"],sāi:["嘥","噻","毢","腮","顋","鰓"],"zuō chuài":["嘬"],"cháo zhāo":["嘲","朝","鼂"],zuǐ:["嘴","噿","嶊","璻"],"qiáo qiào":["嘺","翹","谯"],"chù xù shòu":["嘼"],"tān chǎn":["嘽"],"dàn tán":["嘾","弾","彈","惔","澹"],"hēi mò":["嘿"],ě:["噁","砨","頋","騀","鵈"],"fān bo":["噃"],chuáng:["噇","床","牀"],"cù zā hé":["噈"],"tūn kuò":["噋"],"cēng chēng":["噌"],dēng:["噔","嬁","灯","燈","璒","登","竳","簦","艠","豋"],pū:["噗","扑","撲","攴","攵","潽","炇","陠"],juē:["噘","屩","屫","撧"],lū:["噜","嚕","撸","擼","謢"],zhān:["噡","岾","惉","旃","旜","枬","栴","毡","氈","氊","沾","瞻","薝","蛅","詀","詹","譫","谵","趈","邅","閚","霑","飦","饘","驙","魙","鱣","鸇","鹯","𫗴"],ō:["噢"],"zhòu zhuó":["噣"],"jiào qiào chī":["噭"],yuàn:["噮","妴","怨","愿","掾","瑗","禐","苑","衏","裫","褑","院","願"],"ǎi ài āi":["噯"],"yōng yǒng":["噰","澭"],"jué xué":["噱"],"pēn pèn fèn":["噴"],gá:["噶","尜","釓","錷","钆"],"xīn hěn hèn":["噷"],dāng:["噹","澢","珰","璫","筜","簹","艡","蟷","裆","襠"],làn:["嚂","滥","濫","烂","燗","爁","爛","爤","瓓","糷","钄"],tà:["嚃","嚺","崉","挞","搨","撻","榻","橽","毾","涾","澾","濌","禢","粏","誻","譶","蹋","蹹","躂","躢","遝","錔","闒","闥","闼","阘","鞜","鞳"],"huō huò ǒ":["嚄"],hāo:["嚆","茠","蒿","薅"],"hè xià":["嚇"],"xiù pì":["嚊"],"zhōu chóu":["嚋","盩","诪"],mē:["嚒"],"chā cā":["嚓"],"bó pào bào":["嚗"],"me mèi mò":["嚜"],"xié hái":["嚡"],"áo xiāo":["嚣"],mō:["嚤","摸"],pín:["嚬","娦","嫔","嬪","玭","矉","薲","蠙","貧","贫","顰","颦","𬞟"],mè:["嚰","濹"],"rǎng rāng":["嚷"],lá:["嚹","旯"],"jiáo jué jiào":["嚼"],chuò:["嚽","娖","擉","歠","涰","磭","踀","輟","辍","辵","辶","酫","鑡","餟","齪","龊"],"huān huàn":["嚾"],"zá cà":["囃"],chài:["囆","虿","蠆","袃","訍"],"náng nāng":["囊"],"zá zàn cān":["囋"],sū:["囌","櫯","甦","稣","穌","窣","蘇","蘓","酥","鯂"],zèng:["囎","熷","甑","贈","赠","鋥","锃"],"zá niè yàn":["囐"],nāng:["囔"],"luó luō luo":["囖"],"wéi guó":["囗"],huí:["囘","回","囬","廻","廽","恛","洄","痐","茴","蚘","蛔","蛕","蜖","迴","逥","鮰"],nín:["囜","您","脌"],"jiǎn nān":["囝"],nān:["囡"],tuán:["团","団","團","慱","抟","摶","檲","糰","鏄","鷒","鷻"],"tún dùn":["囤","坉"],guó:["囯","囶","囻","国","圀","國","帼","幗","慖","摑","漍","聝","腘","膕","蔮","虢","馘","𬇹"],kùn:["困","涃","睏"],"wéi tōng":["囲"],qūn:["囷","夋","逡"],rì:["囸","日","衵","鈤","馹","驲"],tāi:["囼","孡","胎"],pǔ:["圃","圑","擈","普","暜","樸","檏","氆","浦","溥","烳","諩","譜","谱","蹼","鐠","镨"],"quān juàn juān":["圈","圏"],"chuí chuán":["圌"],tuǎn:["圕","畽","疃"],lüè:["圙","掠","略","畧","稤","鋝","鋢","锊","䂮"],"huán yuán":["圜"],luán:["圝","圞","奱","娈","孌","孪","孿","峦","巒","挛","攣","曫","栾","欒","滦","灤","癴","癵","羉","脔","臠","虊","銮","鑾","鵉","鸞","鸾"],tǔ:["土","圡","釷","钍"],"xū wéi":["圩"],"dì de":["地","嶳"],"qiān sú":["圱"],zhèn:["圳","塦","挋","振","朕","栚","甽","眹","紖","絼","纼","誫","賑","赈","鋴","鎭","鎮","镇","阵","陣","震","鴆","鸩"],"chǎng cháng":["场","場","塲"],"qí yín":["圻"],jiá:["圿","忦","恝","戞","扴","脥","荚","莢","蛱","蛺","裌","跲","郏","郟","鋏","铗","頬","頰","颊","鴶","鵊"],"zhǐ zhì":["坁"],bǎn:["坂","岅","昄","板","版","瓪","粄","舨","蝂","鈑","钣","阪","魬"],qǐn:["坅","寑","寝","寢","昑","梫","笉","螼","赾","鋟","锓"],"méi fén":["坆"],"rǒng kēng":["坈"],"fāng fáng":["坊"],"fèn bèn":["坋"],tān:["坍","怹","摊","擹","攤","滩","灘","瘫","癱","舑","貪","贪"],"huài pēi pī péi":["坏"],"dì làn":["坔"],tán:["坛","墰","墵","壇","壜","婒","憛","昙","曇","榃","檀","潭","燂","痰","磹","罈","罎","藫","談","譚","譠","谈","谭","貚","郯","醰","錟","顃"],bà:["坝","垻","壩","弝","欛","灞","爸","矲","覇","霸","鮁","鲅"],fén:["坟","墳","妢","岎","幩","枌","棼","汾","焚","燌","燓","羒","羵","蒶","蕡","蚠","蚡","豮","豶","轒","鐼","隫","馩","魵","黂","鼖","鼢","𣸣"],zhuì:["坠","墜","惴","甀","畷","礈","綴","縋","缀","缒","腏","膇","諈","贅","赘","醊","錣","鑆"],pō:["坡","岥","泼","溌","潑","釙","鏺","钋","頗","颇","䥽"],"pǎn bàn":["坢"],kūn:["坤","堃","堒","崐","崑","昆","晜","潉","焜","熴","猑","琨","瑻","菎","蜫","裈","裩","褌","醌","錕","锟","騉","髠","髡","髨","鯤","鲲","鵾","鶤","鹍"],diàn:["坫","垫","墊","壂","奠","婝","店","惦","扂","橂","殿","淀","澱","玷","琔","电","癜","簟","蜔","鈿","電","靛","驔"],"mù mǔ":["坶"],"kē kě":["坷","軻"],xuè:["坹","岤","桖","瀥","狘","瞲","謔","谑","趐"],"dǐ chí":["坻","柢"],lā:["垃","柆","菈","邋"],lǒng:["垄","垅","壟","壠","拢","攏","竉","陇","隴","𬕂"],mín:["垊","姄","岷","崏","捪","旻","旼","民","珉","琘","琝","瑉","痻","盿","砇","緍","緡","缗","罠","苠","鈱","錉","鍲","鴖"],"dòng tóng":["垌","峒","洞"],cí:["垐","嬨","慈","柌","濨","珁","瓷","甆","磁","礠","祠","糍","茨","詞","词","辝","辞","辤","辭","雌","飺","餈","鴜","鶿","鷀","鹚"],duī:["垖","堆","塠","痽","磓","鐓","鐜","鴭"],"duò duǒ":["垛"],"duǒ duò":["垜","挆"],chá:["垞","察","嵖","搽","槎","檫","猹","茬","茶","詧","靫","𥻗"],shǎng:["垧","晌","樉","賞","贘","赏","鋿","鏛","鑜"],shǒu:["垨","守","手","扌","艏","首"],da:["垯","繨","跶"],háng:["垳","斻","杭","筕","絎","绗","航","苀","蚢","裄","貥","迒","頏","颃","魧"],"ān ǎn":["垵"],xīng:["垶","惺","星","曐","煋","猩","瑆","皨","篂","腥","興","觪","觲","謃","騂","骍","鮏","鯹"],"yuàn huán":["垸"],bāng:["垹","帮","幇","幚","幫","捠","梆","浜","邦","邫","鞤","𠳐"],"póu fú":["垺"],cén:["埁","岑","涔"],"běng fēng":["埄"],"dì fáng":["埅"],"xiá jiā":["埉"],"mái mán":["埋"],làng:["埌","崀","浪","蒗","閬","㫰"],"shān yán":["埏"],"qín jīn":["埐"],"pǔ bù":["埔"],huā:["埖","婲","椛","硴","糀","花","蒊","蘤","誮","錵"],"suì sù":["埣"],"pí pì":["埤"],"qīng zhēng":["埥","鲭"],"wǎn wān":["埦"],lǔn:["埨","稐","𫭢"],"zhēng chéng":["埩"],kōng:["埪","崆","箜","躻","錓","鵼"],"cǎi cài":["埰","寀","采"],"chù tòu":["埱"],běng:["埲","琫","菶","鞛"],"kǎn xiàn":["埳"],"yì shì":["埶","醳"],péi:["培","毰","裴","裵","賠","赔","錇","锫","阫","陪"],"sào sǎo":["埽"],"jǐn qīn jìn":["堇"],"péng bèng":["堋"],"qiàn zàn jiàn":["堑"],àn:["堓","屵","岸","按","暗","案","胺","荌","豻","貋","錌","闇","隌","黯"],"duò huī":["堕","墮"],huán:["堚","寏","寰","峘","桓","洹","澴","獂","环","環","糫","繯","缳","羦","荁","萈","萑","豲","鍰","鐶","锾","镮","闤","阛","雈","鬟","鹮","𬘫","𤩽"],"bǎo bǔ pù":["堡"],"máo móu wǔ":["堥"],ruán:["堧","壖","撋"],"ài è yè":["堨"],gèng:["堩","暅"],méi:["堳","塺","媒","嵋","徾","攗","枚","栂","梅","楣","楳","槑","湄","湈","煤","猸","玫","珻","瑂","眉","睂","禖","脄","脢","腜","苺","莓","葿","郿","酶","鎇","镅","霉","鶥","鹛","黴"],dǔ:["堵","琽","睹","笃","篤","覩","賭","赌"],féng:["堸","綘","艂","逢"],hèng:["堼"],chūn:["堾","媋","旾","春","暙","杶","椿","槆","橁","櫄","瑃","箺","萅","蝽","輴","鰆","鶞","䲠"],jiǎng:["塂","奖","奨","奬","桨","槳","獎","耩","膙","蒋","蔣","講","讲","顜"],huāng:["塃","巟","慌","肓","荒","衁"],duàn:["塅","断","斷","椴","段","毈","煅","瑖","碫","簖","籪","緞","缎","腶","葮","躖","鍛","锻"],tǎ:["塔","墖","獭","獺","鮙","鰨","鳎"],wěng:["塕","奣","嵡","攚","暡","瞈","蓊"],"sāi sài sè":["塞"],zàng:["塟","弉","臓","臟","葬","蔵","銺"],tián:["塡","屇","恬","沺","湉","璳","甛","甜","田","畋","畑","碵","磌","胋","闐","阗","鴫","鷆","鷏"],zhèng:["塣","幁","政","証","諍","證","证","诤","郑","鄭","靕","鴊"],"tián zhèn":["填"],wēn:["塭","昷","榲","殟","温","溫","瑥","瘟","蕰","豱","輼","轀","辒","鎾","饂","鰛","鰮","鳁"],liù:["塯","廇","磟","翏","雡","霤","餾","鬸","鷚","鹨"],hǎi:["塰","海","烸","酼","醢"],lǎng:["塱","朖","朗","朤","烺","蓢","㮾"],bèng:["塴","揼","泵","甏","綳","蹦","迸","逬","鏰","镚"],chén:["塵","宸","尘","忱","敐","敶","晨","曟","栕","樄","沉","煁","瘎","臣","茞","莀","莐","蔯","薼","螴","訦","諶","軙","辰","迧","鈂","陈","陳","霃","鷐","麎"],"ōu qiū":["塸"],"qiàn jiàn":["塹"],"zhuān tuán":["塼"],shuǎng:["塽","慡","漺","爽","縔","鏯"],shú:["塾","婌","孰","璹","秫","贖","赎"],lǒu:["塿","嵝","嶁","甊","篓","簍"],chí:["墀","弛","持","池","漦","竾","筂","箎","篪","茌","荎","蚳","謘","貾","赿","踟","迟","迡","遅","遟","遲","鍉","馳","驰"],shù:["墅","庶","庻","怷","恕","戍","束","树","樹","沭","漱","潄","濖","竖","竪","絉","腧","荗","蒁","虪","術","裋","豎","述","鉥","錰","鏣","霔","鶐","𬬸"],"dì zhì":["墆","疐"],kàn:["墈","崁","瞰","矙","磡","衎","鬫"],chěn:["墋","夦","硶","碜","磣","贂","趻","踸","鍖"],"zhǐ zhuó":["墌"],qiǎng:["墏","繈","繦","羥","襁"],zēng:["増","增","憎","璔","矰","磳","罾","譄","鄫","鱛","䎖"],qiáng:["墙","墻","嫱","嬙","樯","檣","漒","牆","艢","蔃","蔷","蘠"],"kuài tuí":["墤"],"tuǎn dǒng":["墥"],"qiáo què":["墧"],"zūn dūn":["墫"],"qiāo áo":["墽"],"yì tú":["墿"],"xué bó jué":["壆"],lǎn:["壈","嬾","孄","孏","懒","懶","揽","擥","攬","榄","欖","浨","漤","灠","纜","缆","罱","覧","覽","览","醂","顲"],huài:["壊","壞","蘾"],rǎng:["壌","壤","攘","爙"],"làn xiàn":["壏"],dǎo:["壔","导","導","岛","島","嶋","嶌","嶹","捣","搗","擣","槝","祷","禂","禱","蹈","陦","隝","隯"],ruǐ:["壡","桵","橤","繠","蕊","蕋","蘂","蘃"],san:["壭"],zhuàng:["壮","壯","壵","撞","焋","状","狀"],"ké qiào":["壳","殼"],kǔn:["壸","壼","悃","捆","梱","硱","祵","稇","稛","綑","裍","閫","閸","阃"],mǎng:["壾","漭","茻","莽","莾","蠎"],cún:["壿","存"],"zhǐ zhōng":["夂"],"gǔ yíng":["夃"],"jiàng xiáng":["夅","降"],"páng féng fēng":["夆"],zhāi:["夈","捚","摘","斋","斎","榸","粂","齋"],"xuàn xiòng":["夐"],wài:["外","顡"],"wǎn yuàn wān yuān":["夗"],"mǎo wǎn":["夘"],mèng:["夢","夣","孟","梦","癦","霥"],"dà dài":["大"],"fū fú":["夫","姇","枎","粰"],guài:["夬","怪","恠"],yāng:["央","姎","抰","殃","泱","秧","胦","鉠","鍈","雵","鴦","鸯"],"hāng bèn":["夯"],gǎo:["夰","搞","杲","槀","槁","檺","稁","稾","稿","縞","缟","菒","藁","藳"],"tāo běn":["夲"],"tóu tou":["头"],"yǎn tāo":["夵"],"kuā kuà":["夸","誇"],"jiá jiā gā xiá":["夹"],huà:["夻","婳","嫿","嬅","崋","摦","杹","枠","桦","槬","樺","澅","画","畫","畵","繣","舙","話","諙","譮","话","黊"],"jiā jiá gā xiá":["夾"],ēn:["奀","恩","蒽"],"dī tì":["奃"],"yǎn yān":["奄","渰"],pào:["奅","疱","皰","砲","礟","礮","靤","麭"],nài:["奈","柰","渿","耐","萘","褦","錼","鼐"],"quān juàn":["奍","弮","棬"],zòu:["奏","揍"],"qì qiè xiè":["契"],kāi:["奒","开","揩","鐦","锎","開"],"bēn bèn":["奔","泍"],tào:["套"],"zàng zhuǎng":["奘"],běn:["奙","本","楍","畚","翉","苯"],"xùn zhuì":["奞"],shē:["奢","檨","猞","畭","畲","賒","賖","赊","輋","𪨶"],"hǎ pò tǎi":["奤"],"ào yù":["奥","奧","澚"],yūn:["奫","氲","氳","蒀","蒕","蝹","贇","赟","𫖳"],"duǒ chě":["奲"],"nǚ rǔ":["女"],nú:["奴","孥","笯","駑","驽"],"dīng dǐng tiǎn":["奵"],"tā jiě":["她"],nuán:["奻"],"hǎo hào":["好"],fàn:["奿","嬎","梵","汎","泛","滼","瀪","犯","畈","盕","笵","範","范","訉","販","贩","軬","輽","飯","飰","饭"],shuò:["妁","搠","朔","槊","烁","爍","矟","蒴","鎙","鑠","铄"],"fēi pèi":["妃"],wàng:["妄","忘","旺","望","朢"],zhuāng:["妆","妝","娤","庄","庒","桩","梉","樁","粧","糚","荘","莊","装","裝"],mā:["妈","媽"],"fū yōu":["妋"],"hài jiè":["妎"],dù:["妒","妬","杜","殬","渡","秺","芏","荰","螙","蠧","蠹","鍍","镀","靯","𬭊"],miào:["妙","庙","庿","廟","玅","竗"],"fǒu pēi pī":["妚"],"yuè jué":["妜"],niū:["妞"],"nà nàn":["妠"],tuǒ:["妥","嫷","庹","椭","楕","橢","鬌","鰖","鵎"],"wàn yuán":["妧"],fáng:["妨","房","肪","防","魴","鲂"],nī:["妮"],zhóu:["妯","碡"],zhāo:["妱","巶","招","昭","釗","鉊","鍣","钊","駋","𬬿"],"nǎi nǐ":["妳"],tǒu:["妵","敨","紏","蘣","黈"],"xián xuán xù":["妶"],"zhí yì":["妷","秇"],ē:["妸","妿","婀","屙"],mèi:["妹","媚","寐","抺","旀","昧","沬","煝","痗","眛","睸","祙","篃","蝞","袂","跊","鬽","魅"],"qī qì":["妻"],"xū xǔ":["姁","稰"],"shān shàn":["姍","姗","苫","釤","钐"],mán:["姏","慲","樠","蛮","蠻","謾","饅","馒","鬗","鬘","鰻","鳗"],jiě:["姐","媎","檞","毑","飷"],"wěi wēi":["委"],pīn:["姘","拼","礗","穦","馪","驞"],"huá huó":["姡"],"jiāo xiáo":["姣"],"gòu dù":["姤"],"lǎo mǔ":["姥"],"nián niàn":["姩"],zhěn:["姫","屒","弫","抮","昣","枕","畛","疹","眕","稹","縝","縥","缜","聄","萙","袗","裖","覙","診","诊","軫","轸","辴","駗","鬒"],héng:["姮","恆","恒","烆","珩","胻","蘅","衡","鑅","鴴","鵆","鸻"],"jūn xún":["姰"],"kuā hù":["姱"],"è yà":["姶"],"xiān shēn":["姺"],wá:["娃"],"ráo rǎo":["娆","嬈"],"shào shāo":["娋"],xiē:["娎","揳","楔","歇","蝎","蠍"],"wǔ méi mǔ":["娒"],"chuò lài":["娕"],niáng:["娘","嬢","孃"],"nà nuó":["娜","𦰡"],"pōu bǐ":["娝"],"něi suī":["娞"],tuì:["娧","煺","蛻","蜕","退","駾"],mǎn:["娨","屘","満","满","滿","螨","蟎","襔","鏋"],"wú wù yú":["娪"],"xī āi":["娭"],"zhuì shuì":["娷"],"dōng dòng":["娻"],"ǎi ái è":["娾"],"ē ě":["娿"],mián:["婂","嬵","宀","杣","棉","檰","櫋","眠","矈","矊","矏","綿","緜","绵","芇","蝒"],"pǒu péi bù":["婄"],biǎo:["婊","脿","表","裱","褾","諘","錶"],"fù fàn":["婏"],wǒ:["婐","婑","我"],"ní nǐ":["婗","棿"],"quán juàn":["婘","惓"],hūn:["婚","昏","昬","棔","涽","睧","睯","碈","荤","葷","蔒","轋","閽","阍"],"qiān jǐn":["婜"],"wān wà":["婠"],"lái lài":["婡","徕","徠"],"zhōu chōu":["婤"],"chuò nào":["婥"],"nüè àn":["婩"],"hùn kūn":["婫"],"dàng yáng":["婸"],nàn:["婻"],"ruò chuò":["婼"],jiǎ:["婽","岬","斚","斝","榎","槚","檟","玾","甲","胛","鉀","钾"],"tōu yú":["婾","媮"],"yù yú":["媀"],"wéi wěi":["媁"],"dì tí":["媂","珶","苐"],róu:["媃","揉","柔","渘","煣","瑈","瓇","禸","粈","糅","脜","腬","葇","蝚","蹂","輮","鍒","鞣","騥","鰇","鶔","𫐓"],"ruǎn nèn":["媆"],miáo:["媌","嫹","描","瞄","苗","鶓","鹋"],"yí pèi":["媐"],"mián miǎn":["媔"],"tí shì":["媞","惿"],"duò tuó":["媠","沲"],ǎo:["媪","媼","艹","芺","袄","襖","镺"],"chú zòu":["媰"],yìng:["媵","映","暎","硬","膡","鱦"],"qín shēn":["嫀"],jià:["嫁","幏","架","榢","稼","駕","驾"],sǎo:["嫂"],"zhēn zhěn":["嫃"],"jiē suǒ":["嫅"],"míng mǐng":["嫇"],niǎo:["嫋","嬝","嬲","茑","蔦","袅","裊","褭","鸟"],tāo:["嫍","幍","弢","慆","掏","搯","槄","涛","滔","濤","瑫","絛","縚","縧","绦","詜","謟","轁","鞱","韜","韬","飸","饕"],biáo:["嫑"],"piáo piāo":["嫖","薸"],xuán:["嫙","悬","懸","暶","檈","漩","玄","璇","璿","痃","蜁","𫠊"],"màn mān":["嫚"],kāng:["嫝","嵻","康","慷","槺","漮","砊","穅","糠","躿","鏮","鱇","𡐓","𩾌"],"hān nǎn":["嫨"],nèn:["嫩","嫰"],zhē:["嫬","遮"],"mā má":["嫲"],piè:["嫳"],zhǎn:["嫸","展","搌","斩","斬","琖","盏","盞","輾","醆","颭","飐"],"xiān yǎn jìn":["嬐"],liǎn:["嬚","敛","斂","琏","璉","羷","脸","臉","蔹","蘝","蘞","裣","襝","鄻"],"qióng huán xuān":["嬛"],dǒng:["嬞","懂","箽","董","蕫","諌"],cān:["嬠","湌","爘","飡","餐","驂","骖"],tiǎo:["嬥","宨","晀","朓","窱","脁"],bí:["嬶","荸","鼻"],liǔ:["嬼","柳","栁","桞","桺","橮","熮","珋","綹","绺","罶","羀","鋶","锍"],"qiān xiān":["孅","欦"],"xié huī":["孈"],"huān quán":["孉"],"lí lì":["孋","麗"],"zhú chuò":["孎"],kǒng:["孔","恐"],"mā zī":["孖"],"sūn xùn":["孙","孫"],"bèi bó":["孛","誖"],"yòu niū":["孧"],zhuǎn:["孨","竱","轉"],hái:["孩","骸"],nāo:["孬"],"chán càn":["孱"],bò:["孹","檗","蘗","譒"],nái:["孻","腉"],"níng nìng":["宁","寍","寗","寜","寧","甯"],zhái:["宅"],"tū jiā":["宊"],sòng:["宋","訟","誦","讼","诵","送","鎹","頌","颂","餸"],ròu:["宍","肉","譳"],zhūn:["宒","窀","衠","諄","谆","迍"],"mì fú":["宓"],"dàng tàn":["宕"],"wǎn yuān":["宛"],chǒng:["宠","寵"],qún:["宭","峮","帬","羣","群","裙","裠"],zǎi:["宰","崽"],"bǎo shí":["宲"],"jiā jia jie":["家"],"huāng huǎng":["宺"],kuān:["宽","寛","寬","臗","鑧","髋","髖"],"sù xiǔ xiù":["宿"],"jié zǎn":["寁"],"bìng bǐng":["寎"],"jìn qǐn":["寖"],"lóu jù":["寠"],"xiě xiè":["寫"],"qīn qìn":["寴"],cùn:["寸","籿"],duì:["对","対","對","怼","憝","懟","濧","瀩","碓","祋","綐","薱","譈","譵","轛","队","陮"],"lüè luó":["寽"],"shè yè yì":["射"],"jiāng jiàng qiāng":["将"],"jiāng jiàng":["將","浆","漿","畺"],zūn:["尊","嶟","樽","罇","遵","鐏","鱒","鳟","鶎","鷷","𨱔"],"shù zhù":["尌","澍"],xiǎo:["小","晓","暁","曉","皛","皢","筱","筿","篠","謏","𫍲"],"jié jí":["尐","诘","鞊"],"shǎo shào":["少"],ěr:["尒","尓","尔","栮","毦","洱","爾","珥","耳","薾","衈","趰","迩","邇","鉺","铒","餌","饵","駬"],"wāng yóu":["尢"],wāng:["尣","尩","尪","尫","汪"],liào:["尥","尦","廖","撂","料","炓","窷","鐐","镣","𪤗"],"méng máng lóng páng":["尨"],gà:["尬","魀"],"kuì kuǐ":["尯"],tuí:["尵","弚","穨","蘈","蹪","隤","頹","頺","頽","颓","魋","𬯎"],yǐn:["尹","嶾","引","朄","檃","檼","櫽","淾","濥","瘾","癮","粌","蘟","蚓","螾","讔","赺","趛","輑","鈏","靷"],"chǐ chě":["尺"],kāo:["尻","髛"],"jìn jǐn":["尽"],"wěi yǐ":["尾"],"niào suī":["尿"],céng:["层","層","嶒","驓"],diǎo:["屌"],"píng bǐng bīng":["屏"],lòu:["屚","漏","瘘","瘺","瘻","鏤","镂","陋"],"shǔ zhǔ":["属","屬"],"xiè tì":["屟"],"chè cǎo":["屮"],"tún zhūn":["屯"],"nì jǐ":["屰"],"hóng lóng":["屸"],"qǐ kǎi":["岂","豈"],áng:["岇","昂","昻"],"gǎng gāng":["岗","崗"],kě:["岢","敤","渇","渴","炣"],gǒu:["岣","狗","玽","笱","耇","耈","耉","苟","豿"],tiáo:["岧","岹","樤","祒","笤","芀","萔","蓚","蓨","蜩","迢","鋚","鎥","鞗","髫","鯈","鰷","鲦","齠","龆"],"qū jū":["岨"],lǐng:["岭","嶺","領","领"],pò:["岶","敀","洦","湐","烞","珀","破","砶","粕","蒪","魄"],"bā kè":["峇"],luò:["峈","摞","洛","洜","犖","珞","笿","纙","荦","詻","雒","駱","骆","鵅"],"fù niè":["峊"],ěn:["峎"],"zhì shì":["峙","崻"],qiǎ:["峠","跒","酠","鞐"],"qiáo jiào":["峤","癄"],"xié yé":["峫"],bū:["峬","庯","晡","誧","逋","鈽","錻","钸","餔","鵏"],chóng:["崇","崈","爞","虫","蝩","蟲","褈","隀"],"zú cuì":["崒","椊"],"líng léng":["崚"],"dòng dōng":["崠"],xiáo:["崤","洨","淆","訤","誵"],"pí bǐ":["崥","芘"],"zhǎn chán":["崭","嶃","嶄"],"wǎi wēi":["崴"],"yáng dàng":["崵"],"shì dié":["崼"],yào:["崾","曜","熎","燿","矅","穾","窔","筄","耀","艞","药","葯","薬","藥","袎","覞","詏","讑","靿","鷂","鹞","鼼"],"kān zhàn":["嵁"],"hán dǎng":["嵅"],"qiàn kàn":["嵌"],"wù máo":["嵍"],"kě jié":["嵑","嶱"],"wēi wěi":["嵔"],kē:["嵙","柯","棵","榼","樖","牁","牱","犐","珂","疴","瞌","磕","礚","科","稞","窠","萪","薖","蚵","蝌","趷","轲","醘","鈳","钶","頦","顆","颗","髁"],"dàng táng":["嵣"],"róng yíng":["嵤","爃"],"ái kǎi":["嵦"],"kāo qiāo":["嵪"],cuó:["嵯","嵳","痤","矬","蒫","蔖","虘","鹺","鹾"],"qiǎn qīn":["嵰"],"dì dié":["嵽"],cēn:["嵾"],dǐng:["嵿","艼","薡","鐤","頂","顶","鼎","鼑"],"áo ào":["嶅"],"pǐ pèi":["嶏"],"jiào qiáo":["嶠","潐"],"jué guì":["嶡","鳜"],"zhān shàn":["嶦","鳣"],"xiè jiè":["嶰"],"guī xī juàn":["嶲"],rū:["嶿"],"lì liè":["巁","棙","爄","綟"],"xī guī juàn":["巂"],"yíng hōng":["巆"],yǐng:["巊","廮","影","摬","梬","潁","瘿","癭","矨","穎","郢","鐛","頴","颍","颕","颖"],chǎo:["巐","炒","煼","眧","麨"],cuán:["巑","櫕","欑"],chuān:["巛","川","氚","瑏","穿"],"jīng xíng":["巠"],cháo:["巢","巣","晁","漅","潮","牊","窲","罺","謿","轈","鄛","鼌"],qiǎo:["巧","愀","髜"],gǒng:["巩","廾","拱","拲","栱","汞","珙","輁","鞏"],"chà chā chāi cī":["差"],"xiàng hàng":["巷"],shuài:["帅","帥","蟀"],pà:["帊","帕","怕","袙"],"tǎng nú":["帑"],"mò wà":["帓"],"tiē tiě tiè":["帖"],zhǒu:["帚","晭","疛","睭","箒","肘","菷","鯞"],"juǎn juàn":["帣"],shuì:["帨","涗","涚","睡","稅","税","裞"],"chóu dào":["帱","幬"],"jiǎn jiān sàn":["帴"],"shà qiè":["帹"],"qí jì":["帺","荠"],"shān qiāo shēn":["幓"],"zhuàng chuáng":["幢"],"chān chàn":["幨"],miè:["幭","懱","搣","滅","灭","烕","礣","篾","蔑","薎","蠛","衊","鑖","鱴","鴓"],"gān gàn":["干"],"bìng bīng":["并","幷"],"jī jǐ":["幾"],"guǎng ān":["广"],guǎng:["広","廣","犷","獷"],me:["庅"],"dùn tún":["庉"],"bài tīng":["庍"],"yìng yīng":["应"],"dǐ de":["底"],"dù duó":["度"],"máng méng páng":["庬"],"bìng píng":["庰"],chěng:["庱","悜","睈","逞","騁","骋"],"jī cuò":["庴"],qǐng:["庼","廎","檾","漀","苘","請","謦","请","頃","顷"],"guī wěi huì":["廆"],"jǐn qín":["廑"],kuò:["廓","扩","拡","擴","濶","筈","萿","葀","蛞","闊","阔","霩","鞟","鞹","韕","頢","鬠"],"qiáng sè":["廧","薔"],"yǐn yìn":["廴","隐","隠","隱","飮","飲","饮"],"pò pǎi":["廹","迫"],"nòng lòng":["弄"],"dì tì tuí":["弟"],"jué zhāng":["弡"],"mí mǐ":["弥","彌","靡"],chāo:["弨","怊","抄","欩","訬","超","鈔","钞"],yi:["弬"],shāo:["弰","旓","烧","焼","燒","筲","艄","萷","蕱","輎","髾","鮹"],"xuān yuān":["弲"],"qiáng qiǎng jiàng":["強","强"],"tán dàn":["弹","醈"],biè:["彆"],"qiáng jiàng qiǎng":["彊"],"jì xuě":["彐"],tuàn:["彖","褖"],yuē:["彟","曰","曱","矱"],"shān xiǎn":["彡"],wén:["彣","文","炆","珳","瘒","繧","聞","芠","蚉","蚊","螡","蟁","閺","閿","闅","闦","闻","阌","雯","馼","駇","魰","鳼","鴍","鼤","𫘜"],"péng bāng":["彭"],"piāo piào":["彯"],"zhuó bó":["彴"],"tuǒ yí":["彵"],"páng fǎng":["彷"],wǎng:["彺","往","徃","惘","枉","棢","網","网","罒","罓","罔","罖","菵","蛧","蝄","誷","輞","辋","魍"],cú:["徂","殂"],"dài dāi":["待"],huái:["徊","怀","懐","懷","槐","淮","耲","蘹","褢","褱","踝"],"wā wàng jiā":["徍"],"chěng zhèng":["徎"],"dé děi de":["得"],"cóng zòng":["從"],"shì tǐ":["徥"],"tí chí":["徲","鶗","鶙"],dé:["徳","德","恴","悳","惪","淂","鍀","锝"],"zhǐ zhēng":["徴","徵"],bié:["徶","癿","莂","蛂","襒","蹩"],"chōng zhǒng":["徸"],"jiǎo jiào":["徼","笅","筊"],"lòng lǒng":["徿"],"qú jù":["忂","渠","瞿","螶"],"dìng tìng":["忊"],gǎi:["忋","改"],rěn:["忍","栠","栣","秹","稔","綛","荏","荵","躵"],chàn:["忏","懴","懺","硟","羼","韂","顫"],tè:["忑","慝","特","蟘","鋱","铽"],"tè tēi tuī":["忒"],"gān hàn":["忓","攼"],"yì qì":["忔"],"tài shì":["忕"],"xī liě":["忚"],"yīng yìng":["応","應","譍"],"mǐn wěn mín":["忞","忟"],"sōng zhōng":["忪"],"yù shū":["忬","悆"],"qí shì":["忯","耆"],"tún zhūn dùn":["忳"],"qián qín":["忴","扲"],hún:["忶","浑","渾","餛","馄","魂","鼲"],niǔ:["忸","扭","炄","狃","紐","纽","莥","鈕","钮","靵"],"kuáng wǎng":["忹"],"kāng hàng":["忼"],"kài xì":["忾","愾"],òu:["怄","慪"],"bǎo bào":["怉"],"mín mén":["怋"],"zuò zhà":["怍"],zěn:["怎"],yàng:["怏","恙","样","様","樣","漾","羕","詇"],"kòu jù":["怐"],"náo niú":["怓"],"zhēng zhèng":["怔","掙","钲","铮"],"tiē zhān":["怗"],"hù gù":["怘"],"cū jù zū":["怚"],"sī sāi":["思"],"yóu chóu":["怞"],"tū dié":["怢"],"yōu yào":["怮"],xuàn:["怰","昡","楦","泫","渲","炫","琄","眩","碹","絢","縼","繏","绚","蔙","衒","袨","贙","鉉","鏇","铉","镟","颴"],"xù xuè":["怴"],"bì pī":["怶"],"xī shù":["怸"],"nèn nín":["恁"],"tiāo yáo":["恌"],"xī qī xù":["恓"],"xiào jiǎo":["恔"],"hū kuā":["恗"],nǜ:["恧","朒","衂","衄"],hèn:["恨"],"dòng tōng":["恫"],"quán zhuān":["恮"],"è wù ě wū":["恶","惡"],tòng:["恸","慟","憅","痛","衕"],"yuān juàn":["悁"],"qiāo qiǎo":["悄"],"jiè kè":["悈"],"hào jiào":["悎"],huǐ:["悔","檓","毀","毁","毇","燬","譭"],"mán mèn":["悗","鞔"],"yī yì":["悘","衣"],quān:["悛","箞","鐉","𨟠"],"kuī lǐ":["悝"],"yì niàn":["悥"],"mèn mēn":["悶"],guàn:["悹","悺","惯","慣","掼","摜","樌","欟","泴","涫","潅","灌","爟","瓘","盥","礶","祼","罆","罐","貫","贯","躀","遦","鏆","鑵","鱹","鸛","鹳"],"kōng kǒng":["悾"],"lǔn lùn":["惀"],guǒ:["惈","果","椁","槨","粿","綶","菓","蜾","裹","褁","輠","餜","馃"],"yuān wǎn":["惌","箢"],"lán lín":["惏"],"yù xù":["惐","淢"],"chuò chuì":["惙"],"hūn mèn":["惛"],"chǎng tǎng":["惝"],"suǒ ruǐ":["惢"],cǎn:["惨","慘","憯","黪","黲","䅟"],cán:["惭","慙","慚","残","殘","蚕","蝅","蠶","蠺"],"dàn dá":["惮","憚"],rě:["惹"],"yú tōu":["愉"],"kài qì":["愒"],"dàng táng shāng yáng":["愓"],"chén xìn dān":["愖"],"kè qià":["愘"],nuò:["愞","懦","懧","掿","搦","榒","稬","穤","糑","糥","糯","諾","诺","蹃","逽","鍩","锘"],gǎn:["感","擀","敢","桿","橄","澉","澸","皯","秆","稈","笴","芉","衦","赶","趕","鱤","鳡"],"còng sōng":["愡"],"sāi sī sǐ":["愢"],"gōng gòng hǒng":["愩","慐"],"shuò sù":["愬","洬"],"yáo yào":["愮"],huàng:["愰","曂","榥","滉","皝","皩","鎤","㿠"],zhěng:["愸","抍","拯","整","晸"],cǎo:["愺","艸","草","騲"],"xì xié":["慀"],"cǎo sāo":["慅"],"xù chù":["慉"],"qiè qiàn":["慊"],"cáo cóng":["慒"],"ào áo":["慠"],"lián liǎn":["慩","梿","槤","櫣"],"jìn qín jǐn":["慬"],"dì chì":["慸"],"zhí zhé":["慹"],"lóu lǚ":["慺","鷜"],còng:["憁","謥"],"zhī zhì":["憄","知","織","织"],chēng:["憆","摚","撐","撑","晿","柽","棦","橕","檉","泟","浾","琤","瞠","碀","緽","罉","蛏","蟶","赪","赬","鏿","鐣","阷","靗","頳","饓"],biē:["憋","虌","鱉","鳖","鼈","龞"],"chéng dèng zhèng":["憕"],"xǐ xī":["憘"],"duì dùn tūn":["憞"],"xiāo jiāo":["憢"],"xián xiàn":["憪"],"liáo liǎo":["憭","燎","爎","爒"],shéng:["憴","縄","繉","繩","绳","譝"],"náo nǎo náng":["憹"],"jǐng jìng":["憼"],"jǐ jiǎo":["憿"],"xuān huān":["懁"],"cǎo sāo sào":["懆"],mèn:["懑","懣","暪","焖","燜"],"mèng méng měng":["懜"],"ài yì nǐ":["懝"],"méng měng":["懞","瞢","矒"],"qí jī jì":["懠"],mǒ:["懡"],"lán xiàn":["懢"],"yōu yǒu":["懮"],"liú liǔ":["懰","藰"],ràng:["懹","譲","讓","让"],huān:["懽","欢","歓","歡","獾","讙","貛","酄","驩","鴅","鵍"],nǎn:["戁","揇","湳","煵","腩","蝻","赧"],"mí mó":["戂"],"gàng zhuàng":["戅","戆"],"zhuàng gàng":["戇"],"xū qu":["戌"],"xì hū":["戏","戯","戲"],"jiá gā":["戛"],zéi:["戝","蠈","賊","贼","鰂","鱡","鲗"],děng:["戥","等"],"hū xì":["戱"],chuō:["戳","踔","逴"],"biǎn piān":["扁"],"shǎng jiōng":["扄"],"shàn shān":["扇"],cái:["才","材","纔","裁","財","财"],"zhā zā zhá":["扎"],"lè lì cái":["扐"],"bā pá":["扒"],"dǎ dá":["打"],rēng:["扔"],"fǎn fú":["払"],"diǎo dí yuē lì":["扚"],"káng gāng":["扛"],"yū wū":["扜"],"yū wū kū":["扝"],"tuō chǐ yǐ":["扡"],"gǔ jié xì gē":["扢"],dèn:["扥","扽"],"sǎo sào":["扫","掃"],rǎo:["扰","擾","隢"],"xī chā qì":["扱"],"bān pān":["扳"],"bā ào":["扷"],"xī zhé":["扸"],"zhì sǔn kǎn":["扻"],zhǎo:["找","沼","瑵"],"kuáng wǎng zài":["抂"],"hú gǔ":["抇","鹄","鹘"],"bǎ bà":["把"],"dǎn shěn":["抌"],"nè nì ruì nà":["抐"],zhuā:["抓","檛","簻","膼","髽"],póu:["抔","裒"],"zhé shé zhē":["折"],"póu pōu fū":["抙","捊"],pāo:["抛","拋","脬","萢"],"ǎo ào niù":["抝"],"lūn lún":["抡","掄"],"qiǎng qiāng chēng":["抢"],"zhǐ zhǎi":["抧"],"bù pū":["抪","柨"],"yǎo tāo":["抭"],"hē hè qiā":["抲"],"nǐ ní":["抳"],"pī pēi":["抷"],"mǒ mò mā":["抹"],chōu:["抽","犨","犫","瘳","篘"],"jiā yá":["拁"],"fú bì":["拂","畐","鶝"],zhǎ:["拃","眨","砟","鮺","鲝"],"dān dàn dǎn":["担"],"chāi cā":["拆"],niān:["拈","蔫"],"lā lá lǎ là":["拉"],"bàn pàn":["拌"],pāi:["拍"],līn:["拎"],guǎi:["拐","枴","柺"],"tuò tà zhí":["拓"],"ào ǎo niù":["拗"],"jū gōu":["拘"],"pīn pàn fān":["拚"],"bài bái":["拜"],bài:["拝","敗","稗","粺","薭","贁","败","韛"],qiá:["拤"],"nǐng níng nìng":["拧"],"zé zhái":["择","擇"],hén:["拫","痕","鞎"],"kuò guā":["括"],"jié jiá":["拮"],nǐn:["拰"],shuān:["拴","栓","閂","闩"],"cún zùn":["拵"],"zā zǎn":["拶","桚"],kǎo:["拷","攷","栲","烤","考"],"yí chǐ hài":["拸"],"cè sè chuò":["拺"],"zhuài zhuāi yè":["拽"],"shí shè":["拾"],bāi:["挀","掰"],"kuò guāng":["挄"],nòng:["挊","挵","齈"],"jiào jiāo":["挍","敎","教"],"kuà kū":["挎"],"ná rú":["挐"],"tiāo tiǎo":["挑"],"dié shè":["挕"],liě:["挘","毟"],"yà yǎ":["挜","掗"],"wō zhuā":["挝"],"xié jiā":["挟","挾"],"dǎng dàng":["挡","擋"],"zhèng zhēng":["挣","正","症"],"āi ái":["挨"],"tuō shuì":["挩","捝"],"tǐ tì":["挮"],"suō shā":["挱"],"sā shā suō":["挲"],"kēng qiān":["挳","摼"],"bàng péng":["挷"],"ruó ruá":["挼"],"jiǎo kù":["捁"],"wǔ wú":["捂"],tǒng:["捅","桶","筒","筩","統","綂","统","㛚"],"huò chì":["捇"],"tú shū chá":["捈"],"lǚ luō":["捋"],"shāo shào":["捎","稍"],niē:["捏","揑"],"shù sǒng sōu":["捒"],"yé yú":["捓"],"jué zhuó":["捔"],"bù pú zhì":["捗"],zùn:["捘","銌"],lāo:["捞","撈","粩"],sǔn:["损","損","榫","笋","筍","箰","鎨","隼"],"wàn wǎn wān yù":["捥"],pěng:["捧","淎","皏"],shě:["捨"],"fǔ fù bǔ":["捬"],dáo:["捯"],"luò luǒ wǒ":["捰"],"juǎn quán":["捲"],"chēn tiǎn":["捵"],"niǎn niē":["捻"],"ruó wěi ré":["捼"],zuó:["捽","昨","秨","稓","筰","莋","鈼"],"wò xiá":["捾"],"qìng qiàn":["掅"],"póu pǒu":["掊"],qiā:["掐","葜"],"pái pǎi":["排"],"qiān wàn":["掔"],"yè yē":["掖"],"niè nǐ yì":["掜"],"huò xù":["掝"],"yàn shàn yǎn":["掞"],"zhěng dìng":["掟"],kòng:["控","鞚"],tuī:["推","蓷","藬"],"zōu zhōu chōu":["掫"],tiàn:["掭","舚"],kèn:["掯","裉","褃"],pá:["掱","杷","潖","爬","琶","筢"],"guó guāi":["掴"],"dǎn shàn":["掸","撣"],"chān xiān càn shǎn":["掺"],sāo:["掻","搔","溞","繅","缫","螦","騒","騷","鰠","鱢","鳋"],pèng:["掽","椪","槰","碰","踫"],"zhēng kēng":["揁"],"jiū yóu":["揂"],"jiān jiǎn":["揃","籛"],"pì chè":["揊"],"sāi zǒng cāi":["揌"],"tí dī dǐ":["提"],"zǒng sōng":["揔"],"huáng yóng":["揘"],"zǎn zuàn":["揝"],"xū jū":["揟"],"ké qiā":["揢"],"chuāi chuǎi chuài tuán zhuī":["揣"],"dì tì":["揥"],"lá là":["揦"],là:["揧","楋","溂","瓎","瘌","翋","臘","蝋","蝲","蠟","辢","辣","鑞","镴","鬎","鯻","𬶟"],"jiē qì":["揭"],"chòng dǒng":["揰"],"dié shé yè":["揲"],"jiàn qián jiǎn":["揵"],yé:["揶","爷","爺","瑘","鋣","鎁","铘"],chān:["搀","摻","攙","裧","襜","覘","觇","辿","鋓"],"gē gé":["搁","擱"],"lǒu lōu":["搂","摟"],"chōu zǒu":["搊"],chuāi:["搋"],sūn:["搎","槂","狲","猻","荪","蓀","蕵","薞","飧","飱"],"róng náng nǎng":["搑"],"péng bàng":["搒"],cuō:["搓","瑳","磋","蹉","遳","醝"],"kē è":["搕"],"nù nuò nòu":["搙"],"lā xié xiàn":["搚"],qiǔ:["搝","糗"],"xiǎn xiān":["搟"],"jié zhé":["搩"],"pán bān pó":["搫"],bān:["搬","攽","斑","斒","班","瘢","癍","肦","螁","螌","褩","辬","頒","颁","𨭉"],"zhì nái":["搱"],"wā wǎ wà":["搲"],huá:["搳","撶","滑","猾","蕐","螖","譁","鏵","铧","驊","骅","鷨"],"qiāng qiǎng chēng":["搶"],"tián shēn":["搷"],"ná nuò":["搻"],èn:["摁"],"shè niè":["摄","攝"],bìn:["摈","擯","殡","殯","膑","臏","髌","髕","髩","鬂","鬓","鬢"],"shā sà shǎi":["摋"],"chǎn sùn":["摌"],"jiū liú liáo jiǎo náo":["摎"],"féng pěng":["摓"],shuāi:["摔"],"dì tú zhí":["摕"],"qì jì chá":["摖"],"sōu sǒng":["摗"],"liǎn liàn":["摙"],"gài xì":["摡"],"hù chū":["摢"],tàng:["摥","烫","燙","鐋"],"nái zhì":["摨"],"mó mā":["摩"],"jiāng qiàng":["摪"],"áo qiáo":["摮"],"niè chè":["摰"],"mán màn":["摱"],"chàn cán":["摲"],"sè mí sù":["摵"],"biāo biào":["摽"],"juē jué":["撅"],piē:["撆","暼","氕","瞥"],"piě piē":["撇"],"zǎn zān zēn qián":["撍"],"sā sǎ":["撒"],hòng:["撔","訌","讧","闀","鬨"],"héng guàng":["撗"],niǎn:["撚","撵","攆","涊","焾","碾","簐","蹍","蹨","躎","輦","辇"],"chéng zhěng":["撜"],"huī wéi":["撝"],cāo:["撡","操","糙"],"xiāo sōu":["撨"],"liáo liāo":["撩"],"cuō zuǒ":["撮"],"wěi tuǒ":["撱"],cuān:["撺","攛","汆","蹿","躥","鑹","镩"],"qiào yāo jī":["撽"],"zhuā wō":["撾"],"lèi léi":["擂"],nǎng:["擃","攮","曩","灢"],"qíng jǐng":["擏"],kuǎi:["擓","蒯","㧟"],"pǐ bò":["擗"],"bò bāi":["擘"],"jù jǐ":["據"],mēng:["擝"],"sǒu sòu":["擞"],xǐng:["擤","箵","醒"],cā:["擦"],"níng nǐng nìng":["擰"],"zhì jié":["擳"],"là liè":["擸","爉"],"sòu sǒu":["擻"],"lì luò yuè":["擽"],"tī zhāi zhì":["擿"],pān:["攀","潘","眅","萠"],lèi:["攂","泪","涙","淚","禷","类","纇","蘱","酹","銇","錑","頛","頪","類","颣"],"cā sǎ":["攃"],"jùn pèi":["攈"],"lì luò":["攊","躒"],"là lài":["攋","櫴"],"lú luó":["攎"],"zǎn cuán":["攒"],"xiān jiān":["攕"],"mí mǐ mó":["攠"],"zǎn cuán zàn zuān":["攢"],zuàn:["攥"],"lì shài":["攦"],"lì luǒ":["攭"],"guǐ guì":["攱"],"jī qī yǐ":["攲"],fàng:["放"],"wù móu":["敄"],"chù shōu":["敊"],"gé guó è":["敋"],"duó duì":["敓","敚"],"duō què":["敠","敪"],"sàn sǎn":["散"],"dūn duì":["敦","镦"],"qī yǐ jī":["敧"],"xiào xué":["敩"],"shù shǔ shuò":["数","數"],"ái zhú":["敱","敳"],"xiòng xuàn":["敻"],"zhuó zhú":["斀"],"yì dù":["斁"],"lí tái":["斄"],"fěi fēi":["斐"],"yǔ zhōng":["斔"],"dòu dǒu":["斗"],"wò guǎn":["斡"],"tǒu tiǎo":["斢"],dòu:["斣","梪","浢","痘","窦","竇","脰","荳","豆","逗","郖","酘","閗","闘","餖","饾","鬥","鬦","鬪","鬬","鬭"],"yín zhì":["斦"],"chǎn jiè":["斺"],"wū yū yú":["於"],"yóu liú":["斿"],"páng bàng":["旁"],"máo mào":["旄"],"pī bì":["旇"],"xuán xuàn":["旋"],"wú mó":["无"],zǎo:["早","枣","栆","棗","澡","璪","薻","藻","蚤"],gā:["旮"],"gàn hàn":["旰"],"tái yīng":["旲"],"xū xù":["旴"],"tūn zhùn":["旽"],"wù wǔ":["旿"],"pò pèi":["昢"],zòng:["昮","猔","疭","瘲","粽","糉","糭","縦"],ǎi:["昹","毐","矮","蔼","藹","譪","躷","霭","靄"],"huàng huǎng":["晃"],xuǎn:["晅","癣","癬","选","選"],"xù kuā":["晇"],hǒng:["晎"],shài:["晒","曬"],"yūn yùn":["晕","煴"],"shèng chéng":["晟","椉","盛"],"jǐng yǐng":["景"],shǎn:["晱","熌","睒","覢","閃","闪","陕","陝"],"qǐ dù":["晵"],"ǎn àn yǎn":["晻"],"wǎng wàng":["暀"],zàn:["暂","暫","瓉","瓒","瓚","禶","襸","讃","讚","賛","贊","赞","蹔","鄼","錾","鏨","饡"],"yùn yūn":["暈"],"mín mǐn":["暋"],"dǔ shǔ":["暏"],shǔ:["暑","曙","潻","癙","糬","署","薥","薯","藷","蜀","蠴","襡","襩","鱪","鱰","黍","鼠","鼡"],"jiǎn lán":["暕"],nuǎn:["暖","煗","餪"],"bào pù":["暴"],"xī xǐ":["暿"],"pù bào":["曝","瀑"],"qū qǔ":["紶"],"qǔ qū":["曲"],"gèng gēng":["更"],"hū hù":["曶","雽"],"zēng céng":["曽","橧"],"céng zēng":["曾","竲"],"cǎn qián jiàn":["朁"],"qiè hé":["朅"],"bì pí":["朇","禆","笓","裨"],"yǒu yòu":["有"],"bān fén":["朌","鳻"],"fú fù":["服","洑"],"fěi kū":["朏","胐"],"qú xù chǔn":["朐"],"juān zuī":["朘"],"huāng máng wáng":["朚"],"qī jī":["期"],"tóng chuáng":["朣","橦"],zhá:["札","牐","箚","蚻","譗","鍘","铡","閘","闸"],"zhú shù shú":["朮"],"shù shú zhú":["术"],"zhū shú":["朱"],"pǔ pò pō piáo":["朴"],"dāo tiáo mù":["朷"],"guǐ qiú":["朹"],xiǔ:["朽","滫","潃","糔"],"chéng chēng":["朾"],zá:["杂","沯","砸","襍","雑","雜","雥","韴"],"yú wū":["杅"],"gān gǎn":["杆"],"chā chà":["杈"],"shān shā":["杉"],cūn:["村","皴","竴","膥","踆","邨"],"rèn ér":["杒","梕"],"sháo biāo":["杓"],"dì duò":["杕","枤"],"gū gài":["杚"],"yí zhì lí duò":["杝"],"gàng gāng":["杠"],"tiáo tiāo":["条","條"],"mà mǎ":["杩"],"sì zhǐ xǐ":["杫"],"yuán wán":["杬","蚖"],"bèi fèi":["杮"],"shū duì":["杸"],"niǔ chǒu":["杻"],"wò yuè":["枂","臒"],máo:["枆","毛","氂","渵","牦","矛","罞","茅","茆","蝥","蟊","軞","酕","鉾","錨","锚","髦","鶜"],"pī mì":["枈"],àng:["枊","盎","醠"],"fāng bìng":["枋"],"hù dǐ":["枑"],xín:["枔","襑","鐔","鬵"],"yāo yǎo":["枖"],"ě è":["枙"],"zhī qí":["枝"],"cōng zōng":["枞","樅"],"xiān zhēn":["枮"],"tái sì":["枱"],"gǒu jǔ gōu":["枸"],"bāo fú":["枹"],"yì xiè":["枻","栧"],"tuó duò":["柁","馱","駄","驮"],"yí duò lí":["柂"],"nǐ chì":["柅"],"pán bàn":["柈","跘"],"yǎng yàng yāng yīng":["柍"],"fù fū fǔ":["柎"],"bǎi bó bò":["柏"],mǒu:["某"],"sháo shào":["柖"],zhè:["柘","樜","浙","淛","蔗","蟅","這","鷓","鹧","䗪"],"yòu yóu":["柚","櫾"],"guì jǔ":["柜"],"zhà zuò":["柞"],"dié zhì":["柣","眰"],"zhā zǔ zū":["柤"],"chá zhā":["查","査"],"āo ào":["柪","軪"],"bā fú pèi bó biē":["柭"],"duò zuó wù":["柮"],"bì bié":["柲"],"zhù chù":["柷"],"bēi pēi":["柸"],"shì fèi":["柹"],"shān zhà shi cè":["栅"],"lì yuè":["栎","櫟"],"qì qiè":["栔","砌"],"qī xī":["栖","蹊"],"guā kuò":["栝"],"bīng bēn":["栟"],"xiào jiào":["校"],"jiàn zùn":["栫","袸"],"yǒu yù":["栯"],"hé hú":["核"],gēn:["根","跟"],"zhī yì":["栺"],"gé gē":["格"],"héng háng":["桁"],"guàng guāng":["桄"],"yí tí":["桋","荑"],sāng:["桑","桒","槡"],"jú jié":["桔"],"yú móu":["桙"],"ráo náo":["桡","橈"],"guì huì":["桧","檜"],"chén zhèn":["桭"],"tīng yíng":["桯"],"bó po":["桲"],"bèn fàn":["桳"],"fēng fèng":["桻","葑"],"sù yìn":["梀"],"tǐng tìng":["梃"],"xuān juān xié":["梋"],"tú chá":["梌"],"āo yòu":["梎"],kuǎn:["梡","欵","款","歀"],"shāo sào":["梢"],"qín chén cén":["梣"],"lí sì qǐ":["梩"],"chān yán":["梴"],"bīn bīng":["梹","槟","檳"],"táo chóu dào":["梼"],"cōng sōng":["棇"],"gùn hùn":["棍"],"dé zhé":["棏"],"pái bèi pèi":["棑"],"bàng pǒu bèi bēi":["棓"],"dì dài tì":["棣"],sēn:["森","椮","槮","襂"],"rěn shěn":["棯"],"léng lēng líng":["棱"],"fú sù":["棴"],"zōu sǒu":["棷"],zōu:["棸","箃","緅","諏","诹","邹","郰","鄒","鄹","陬","騶","驺","鯫","鲰","黀","齱","齺"],"zhào zhuō":["棹"],"chēn shēn":["棽"],"jiē qiè":["椄"],"yǐ yī":["椅"],"chóu zhòu diāo":["椆"],"qiāng kōng":["椌"],"zhuī chuí":["椎"],"bēi pí":["椑"],mēn:["椚"],"quān juàn quán":["椦"],"duǒ chuán":["椯"],"wěi huī":["椲"],"jiǎ jiā":["椵"],"hán jiān":["椷"],"shèn zhēn":["椹"],"yàn yà":["椻"],"zhā chá":["楂"],"guō kuǎ":["楇"],"jí zhì":["楖"],"kǔ hù":["楛"],"yóu yǒu":["楢"],"sǒng cōng":["楤"],"yuán xuàn":["楥"],"yǎng yàng yīng":["楧"],pián:["楩","胼","腁","賆","蹁","駢","騈","骈","骿","㛹"],"dié yè":["楪"],"dùn shǔn":["楯"],"còu zòu":["楱"],"dì dǐ shì":["楴"],"kǎi jiē":["楷"],"róu ròu":["楺"],"lè yuè":["楽"],"wēn yùn":["榅","鞰"],lǘ:["榈","櫚","氀","膢","藘","閭","闾","驢","驴"],shén:["榊","神","鉮","鰰","𬬹"],"bī pi":["榌"],"zhǎn niǎn zhèn":["榐"],"fú fù bó":["榑"],"jiàn jìn":["榗"],"bǎng bàng":["榜"],"shā xiè":["榝","樧"],nòu:["槈","耨","鎒","鐞"],"qiǎn lián xiàn":["槏"],gàng:["槓","焵","焹","筻","鿍"],gāo:["槔","槹","橰","櫜","睾","篙","糕","羔","臯","韟","餻","高","髙","鷎","鷱","鼛"],"diān zhěn zhēn":["槙"],"kǎn jiàn":["槛"],"xí dié":["槢"],"jī guī":["槣"],"róng yōng":["槦"],"tuán shuàn quán":["槫"],"qì sè":["槭"],"cuī zhǐ":["槯"],"yǒu chǎo":["槱"],"màn wàn":["槾"],"lí chī":["樆"],"léi lěi":["樏","櫑","礌"],"cháo jiǎo chāo":["樔"],"chēng táng":["樘"],"jiū liáo":["樛"],"mó mú":["模"],"niǎo mù":["樢"],"héng hèng":["横","橫"],xuě:["樰","膤","艝","轌","雪","鱈","鳕"],"fá fèi":["橃"],rùn:["橍","润","潤","膶","閏","閠","闰"],"zhǎn jiǎn":["橏"],shùn:["橓","瞚","瞬","舜","蕣","順","顺","鬊"],"tuí dūn":["橔"],"táng chēng":["橖"],"sù qiū":["橚"],"tán diàn":["橝"],"fén fèn fèi":["橨"],"rǎn yān":["橪"],"cū chu":["橻"],"shū qiāo":["橾"],"píng bò":["檘"],"zhái shì tú":["檡"],"biǎo biāo":["檦"],"qiān lián":["檶"],"nǐ mí":["檷"],"jiàn kǎn":["檻"],"nòu ruǎn rú":["檽"],"jī jì":["櫅","禨"],"huǎng guǒ gǔ":["櫎"],"lǜ chū":["櫖"],"miè mèi":["櫗"],ōu:["櫙","欧","歐","殴","毆","瓯","甌","膒","藲","謳","讴","鏂","鴎","鷗","鸥"],"zhù zhuó":["櫡"],"jué jì":["櫭"],"huái guī":["櫰"],"chán zhàn":["欃"],"wéi zuì":["欈"],cáng:["欌","鑶"],"yù yì":["欥"],"chù qù xì":["欪"],"kài ài":["欬"],"yì yīn":["欭"],"xì kài":["欯"],"shuò sòu":["欶"],"ǎi ēi éi ěi èi ê̄ ế ê̌ ề":["欸"],"qī yī":["欹"],"chuā xū":["欻"],"chǐ chuài":["欼"],"kǎn qiàn":["欿"],"kǎn kè":["歁"],"chuǎn chuán":["歂"],"yīn yān":["歅"],"jìn qūn":["歏"],pēn:["歕"],"xū chuā":["歘"],"xī shè":["歙"],"liǎn hān":["歛"],"zhì chí":["歭"],"sè shà":["歰"],sǐ:["死"],"wěn mò":["歾"],piǎo:["殍","皫","瞟","醥","顠"],"qíng jìng":["殑"],"fǒu bó":["殕"],"zhí shi":["殖"],"yè yān yàn":["殗"],"hūn mèi":["殙"],chòu:["殠","臰","遚"],"kuì huì":["殨","溃","潰"],cuàn:["殩","熶","爨","窜","竄","篡","簒"],"yīn yān yǐn":["殷"],"qìng kēng shēng":["殸"],"yáo xiáo xiào":["殽"],"gū gǔ":["毂","蛄"],"guàn wān":["毌"],"dú dài":["毒"],"xún xùn":["毥"],mú:["毪","氁"],"dòu nuò":["毭"],"sāi suī":["毸"],lu:["氇"],sào:["氉","瘙","矂","髞"],"shì zhī":["氏"],"dī dǐ":["氐"],"máng méng":["氓"],"yáng rì":["氜"],shuǐ:["水","氵","氺","閖"],"zhěng chéng zhèng":["氶"],tǔn:["氽"],"fán fàn":["氾"],"guǐ jiǔ":["氿"],"bīn pà pā":["汃"],"zhuó què":["汋"],"dà tài":["汏"],pìn:["汖","牝","聘"],"hàn hán":["汗","馯"],tu:["汢"],"tāng shāng":["汤","湯"],"zhī jì":["汥"],"gàn hán cén":["汵"],"wèn mén":["汶"],"fāng pāng":["汸"],"hǔ huǎng":["汻"],"niú yóu":["汼"],hàng:["沆"],"shěn chén":["沈"],"dùn zhuàn":["沌"],"nǜ niǔ":["沑"],"méi mò":["沒","没"],"tà dá":["沓"],"mì wù":["沕"],"hóng pāng":["沗"],"shā shà":["沙"],"zhuǐ zǐ":["沝"],"ōu òu":["沤","漚"],"jǔ jù":["沮"],"tuō duó":["沰"],"mǐ lì":["沵"],"yí chí":["沶"],"xiè yì":["泄"],"bó pō":["泊"],"mì bì":["泌","秘"],"chù shè":["泏"],"yōu yòu āo":["泑"],"pēng píng":["泙","硑"],"pào pāo":["泡"],"ní nì":["泥","秜"],"yuè sà":["泧"],"jué xuè":["泬","疦"],"lóng shuāng":["泷","瀧"],"luò pō":["泺","濼"],"zé shì":["泽","澤"],"sǎ xǐ":["洒"],"sè qì zì":["洓"],"xǐ xiǎn":["洗"],"kǎo kào":["洘"],"àn yàn è":["洝"],"lěi lèi":["洡"],"qiè jié":["洯"],"qiǎn jiān":["浅"],"jì jǐ":["济","済","濟","纪"],"hǔ xǔ":["浒","滸"],"jùn xùn":["浚","濬"],"yǐng chéng yíng":["浧"],"liàn lì":["浰"],"féng hóng":["浲","溄"],"jiǒng jiōng":["浻"],"suī něi":["浽"],"yǒng chōng":["涌"],"tūn yūn":["涒"],"wō guō":["涡","渦"],hēng:["涥","脝"],"zhǎng zhàng":["涨","漲"],"shòu tāo":["涭"],shuàn:["涮","腨"],"kōng náng":["涳"],"wò wǎn yuān":["涴"],"tuō tuò":["涶"],wō:["涹","猧","窝","窩","莴","萵","蜗","蝸","踒"],"qiè jí":["淁"],"guǒ guàn":["淉"],"lín lìn":["淋","獜","疄"],"tǎng chǎng":["淌"],"nào chuò zhuō":["淖"],"péng píng":["淜"],féi:["淝","肥","腓","蜰"],"pì pèi":["淠"],"niǎn shěn":["淰"],"biāo hǔ":["淲"],"chún zhūn":["淳"],"hùn hún":["混"],qiǎn:["淺","繾","缱","肷","膁","蜸","譴","谴","遣","鑓"],"wèn mín":["渂"],"rè ruò luò":["渃"],"dú dòu":["渎","瀆","读"],"jiàn jiān":["渐","溅","漸","濺"],"miǎn shéng":["渑","澠"],"nuǎn nuán":["渜"],"qiú wù":["渞"],"tíng tīng":["渟"],"dì tí dī":["渧"],"gǎng jiǎng":["港"],"hōng qìng":["渹"],tuān:["湍","煓"],"huì mǐn xū":["湏"],"xǔ xù":["湑"],pén:["湓","瓫","盆","葐"],"mǐn hūn":["湣"],"tuàn nuǎn":["湪"],"qiū jiǎo":["湫","湬"],"yān yīn":["湮"],"bàn pán":["湴"],"zhuāng hún":["湷"],"yàn guì":["溎"],"lián liǎn nián xián xiàn":["溓"],"dá tǎ":["溚","鿎"],"liū liù":["溜","澑","蹓"],lùn:["溣"],mǎ:["溤","犸","獁","玛","瑪","码","碼","遤","鎷","馬","马","鰢","鷌"],"zhēn qín":["溱"],"nì niào":["溺"],"chù xù":["滀","畜"],"wěng wēng":["滃"],"hào xuè":["滈"],"qì xì xiē":["滊"],"xíng yíng":["滎"],"zé hào":["滜"],"piāo piào piǎo":["漂"],"cóng sǒng":["漎"],"féng péng":["漨"],"luò tà":["漯"],"pēng bēn":["漰"],"chóng shuāng":["漴"],"huǒ kuò huò":["漷"],"liáo liú":["漻"],"cuǐ cuī":["漼"],"cóng zǒng":["潀"],"cóng zōng":["潈"],"pì piē":["潎"],"dàng xiàng":["潒"],"huáng guāng":["潢"],"liáo lào lǎo":["潦"],"cōng zòng":["潨"],"zhí zhì":["潪"],"tān shàn":["潬"],"tú zhā":["潳"],"sàn sǎ":["潵"],hēi:["潶","黑","黒","𬭶"],"chéng dèng":["澄","瀓"],"cūn cún":["澊"],"péng pēng":["澎"],"hòng gǒng":["澒","銾"],"wàn màn":["澫"],"kuài huì":["澮"],"guō wō":["濄"],"pēn fén":["濆"],"jí shà":["濈"],"huì huò":["濊"],"dǐng tìng":["濎"],"mǐ nǐ":["濔"],"bì pì":["濞"],"cuì zuǐ":["濢"],"hù huò":["濩"],"ǎi kài kè":["濭"],"wěi duì":["濻","瀢"],"zàn cuán":["濽","灒"],"yǎng yàng":["瀁"],"wǎng wāng":["瀇"],"mò miè":["瀎","眜"],suǐ:["瀡","膸","髓"],"huái wāi":["瀤"],"zùn jiàn":["瀳"],"yīng yǐng yìng":["瀴"],"ráng ràng":["瀼"],shuàng:["灀"],"zhuó jiào zé":["灂"],sǎ:["灑","訯","靸"],"luán luàn":["灓"],"dǎng tǎng":["灙"],"xún quán quàn":["灥"],"huǒ biāo":["灬"],"zhà yù":["灹"],"fén bèn":["炃"],"jiǒng guì":["炅"],"pàng fēng":["炐"],quē:["炔","缺","缼","蒛"],biān:["炞","煸","甂","砭","笾","箯","籩","編","编","蝙","邉","邊","鍽","鞭","鯾","鯿","鳊"],"zhāo zhào":["炤"],"zhuō chù":["炪"],"pào páo bāo":["炮"],"páo fǒu":["炰"],"shǎn qián shān":["炶"],"zhà zhá":["炸"],"jiǎo yào":["烄"],quǎn:["烇","犬","犭","畎","綣","绻","虇"],"yàng yáng":["烊"],"lào luò":["烙"],"huí huǐ":["烠"],rè:["热","熱"],"fú páo":["烰"],"xiè chè":["烲","焎"],"yàn shān":["烻"],"hūn xūn":["焄"],kào:["焅","犒","銬","铐","靠","鮳","鯌","鲓","㸆"],"juān yè":["焆"],"jùn qū":["焌"],"tāo dào":["焘"],"chǎo jù":["焣"],"wò ài":["焥"],"zǒng cōng":["焧"],"xī yì":["焬"],"xìn xīn":["焮"],"chāo zhuō":["焯"],"xiǒng yīng":["焸","焽"],kuǐ:["煃","跬","蹞","頍","𫠆"],"huī yùn xūn":["煇"],"jiǎo qiāo":["煍"],"qián shǎn shān":["煔"],"xī yí":["煕"],"shà shā":["煞"],"yè zhá":["煠"],"yáng yàng":["煬"],"ēn yūn":["煾"],"yūn yǔn":["熅"],"hè xiāo":["熇"],xióng:["熊","熋","雄"],"xūn xùn":["熏","爋"],gòng:["熕","貢","贡"],liū:["熘"],"cōng zǒng":["熜"],"lù āo":["熝"],"shú shóu":["熟"],"fēng péng":["熢"],"cuǐ suī":["熣"],tēng:["熥","膯","鼟"],"yùn yù":["熨"],"áo āo":["熬"],"hàn rǎn":["熯"],"ōu ǒu":["熰"],"huáng huǎng":["熿"],"chǎn dǎn chàn":["燀"],"jiāo zhuó qiáo jué":["燋"],"yàn yān":["燕"],"tài liè":["燤"],āo:["爊"],"yàn xún":["爓"],"jué jiào":["爝","覐","覚","覺","觉"],"lǎn làn":["爦"],"zhuǎ zhǎo":["爪"],"zhǎo zhuǎ":["爫"],"fù fǔ":["父"],diē:["爹","褺","跌"],zāng:["牂","羘","臧","賍","賘","贓","贜","赃","髒"],"piàn piān":["片"],"biān miàn":["牑"],bǎng:["牓","綁","绑"],"yǒu yōng":["牗"],"chēng chèng":["牚","竀"],niú:["牛","牜"],"jiū lè":["牞"],"mù móu":["牟"],māng:["牤"],"gē qiú":["牫"],"yòu chōu":["牰"],"tè zhí":["犆"],bēn:["犇","錛","锛"],"jiān qián":["犍","玪"],má:["犘","痲","蔴","蟇","麻"],"máo lí":["犛"],"bá quǎn":["犮"],"zhuó bào":["犳"],"àn hān":["犴"],"kàng gǎng":["犺"],"pèi fèi":["犻"],"fān huān":["犿"],kuáng:["狂","狅","誑","诳","軖","軠","鵟","𫛭"],"yí quán chí":["狋"],"xīng shēng":["狌"],"tuó yí":["狏"],kǔ:["狜","苦"],"huán huān":["狟"],"hé mò":["狢"],"tà shì":["狧"],"máng dòu":["狵"],"xī shǐ":["狶"],suān:["狻","痠","酸"],"bài pí":["猈"],"jiān yàn":["猏","豣"],"yī yǐ":["猗"],"yá wèi":["猚"],cāi:["猜"],"māo máo":["猫","貓"],"chuàn chuān":["猭"],"tuān tuàn":["猯","貒"],"yà jiá qiè":["猰"],"hè xiē gé hài":["猲"],"biān piàn":["猵","獱"],"bó pò":["猼"],"háo gāo":["獋"],"fén fèn":["獖"],"yào xiāo":["獟"],"shuò xī":["獡"],"gé liè xiē":["獦"],"nòu rú":["獳"],"náo nǎo yōu":["獶"],ráng:["獽","瓤","禳","穣","穰","蘘","躟","鬤"],"náo yōu":["獿"],"lǜ shuài":["率"],"wáng wàng":["王"],"yáng chàng":["玚"],"mín wén":["玟"],"bīn fēn":["玢"],"mén yǔn":["玧"],"qiāng cāng":["玱","瑲","篬"],"án gān":["玵"],"xuán xián":["玹"],"cī cǐ":["玼","跐"],"yí tāi":["珆"],"zǔ jù":["珇"],fà:["珐","琺","蕟","髪","髮"],"yín kèn":["珢"],"huī hún":["珲"],"xuán qióng":["琁"],"fú fū":["琈"],"bǐng pín":["琕"],"cuì sè":["琗"],"yù wéi":["琟"],"tiǎn tiàn":["琠"],"zhuó zuó":["琢"],"běng pěi":["琣"],guǎn:["琯","璭","痯","筦","管","舘","輨","錧","館","馆","鳤"],"hún huī":["琿"],"xié jiē":["瑎"],"chàng dàng yáng":["瑒"],"tiàn zhèn":["瑱"],"bīn pián":["瑸","璸"],"tú shū":["瑹"],cuǐ:["璀","皠","趡"],"zǎo suǒ":["璅"],"jué qióng":["璚"],"lú fū":["璷"],"jì zī":["璾"],suí:["瓍","綏","绥","遀","随","隨","髄"],"mí xǐ":["瓕"],"qióng wěi wèi":["瓗"],"huán yè yà":["瓛"],"bó páo":["瓟"],"zhí hú":["瓡"],piáo:["瓢","闝"],"wǎ wà":["瓦"],"xiáng hóng":["瓨"],wèng:["瓮","甕","罋","蕹","齆"],"shèn shén":["甚"],ruí:["甤","緌","蕤"],yòng:["用","砽","苚","蒏","醟","㶲"],shuǎi:["甩"],béng:["甭","甮"],"yóu zhá":["甴"],"diàn tián shèng":["甸"],"tǐng dīng":["町","甼"],"zāi zī":["甾"],"bì qí":["畁"],"dá fú":["畗"],"cè jì":["畟"],"zāi zī tián":["畠"],"zhì chóu shì":["畤"],"fān pān":["畨","番"],"shē yú":["畬"],"dāng dàng dǎng":["當"],"jiāng qiáng":["疆"],"pǐ yǎ shū":["疋"],"jié qiè":["疌"],"yí nǐ":["疑"],nè:["疒","眲","訥","讷"],"gē yì":["疙"],"nüè yào":["疟","瘧"],"lì lài":["疠","癘"],"yǎ xiā":["疨"],xuē:["疶","蒆","薛","辥","辪","靴","鞾"],"dǎn da":["疸"],"fá biǎn":["疺"],"fèi féi":["疿","痱"],"shān diàn":["痁"],"téng chóng":["痋"],"tōng tóng":["痌"],"wěi yòu yù":["痏"],"tān shǐ":["痑"],"pū pù":["痡","鋪"],"bēng péng":["痭"],"má lìn":["痳"],"tiǎn diàn":["痶"],"ān yè è":["痷"],"kē ē":["痾"],"zhì chì":["瘈"],"jiǎ xiá xiā":["瘕"],"lěi huì":["瘣"],"chài cuó":["瘥"],"diān chēn":["瘨"],"da dá":["瘩"],"biě biē":["瘪"],qué:["瘸"],"dàn dān":["癉"],"guì wēi":["癐"],"nòng nóng":["癑"],"biē biě":["癟"],"bō bǒ":["癷"],bái:["白"],"jí bī":["皀"],"de dì dí dī":["的"],"pā bà":["皅"],"gāo háo":["皋"],"gāo yáo":["皐"],"lì luò bō":["皪"],"zhā cǔ":["皻"],"zhāo zhǎn dǎn":["皽"],"jiān jiàn":["监","監","鋻","间","鞬"],"gài gě hé":["盖"],"máng wàng":["盳"],yuǎn:["盶","逺","遠"],"tián xián":["盷"],"xiāng xiàng":["相"],dǔn:["盹","趸","躉"],"xì pǎn":["盻"],"shěng xǐng":["省"],"yún hùn":["眃"],"miǎn miàn":["眄"],"kàn kān":["看"],"yìng yāng yǎng":["眏"],"yǎo āo ǎo":["眑"],"jū xū kōu":["眗"],"yí chì":["眙"],"dié tì":["眣"],"bǐng fǎng":["眪"],"pàng pán":["眫"],"mī mí":["眯","瞇"],"xuàn shùn xún":["眴"],tiào:["眺","粜","糶","覜","趒"],"zhe zhuó zháo zhāo":["着"],"qiáo shào xiāo":["睄"],"cuó zhuài":["睉"],gùn:["睔","謴"],"suì zuì":["睟"],"pì bì":["睥","稫","辟"],"yì zé gāo":["睪"],"xǐng xìng":["睲"],"guì wèi kuì":["瞆"],"kòu jì":["瞉"],"qióng huán":["瞏"],"mán mén":["瞒","瞞"],"diāo dōu":["瞗"],"lou lóu lǘ":["瞜"],"shùn rún":["瞤"],"liào liǎo":["瞭","钌"],"jiàn xián":["瞯"],"wǔ mí":["瞴"],"guì kuì":["瞶"],"nǐng chēng":["矃"],"huò yuè":["矆"],"mēng méng":["矇"],"kuàng guō":["矌"],"guàn quán":["矔"],"mǎn mán":["矕"],"jīn guān qín":["矜"],"jīn qín guān":["矝"],"yù xù jué":["矞"],"jiǎo jiáo":["矫","矯"],duǎn:["短"],"shí dàn":["石"],"gāng qiāng kòng":["矼"],"huā xū":["砉"],"pīn bīn fēn":["砏"],"yán yàn":["研","硏"],"luǒ kē":["砢"],"fú fèi":["砩","笰"],"zhǔ zhù":["砫"],"lá lì lā":["砬"],"kuāng guāng":["硄"],"gè luò":["硌"],"shuò shí":["硕","碩"],"wèi wéi ái":["硙"],"què kè kù":["硞"],"mǎng bàng":["硥"],"luò lòng":["硦"],"yǒng tóng":["硧"],nüè:["硸","虐"],"kēng kěng":["硻"],"yān yǎn":["硽"],"zhuì chuí duǒ":["硾"],"kōng kòng":["硿"],"zòng cóng":["碂"],"jiān zhàn":["碊"],"lù liù":["碌","陆"],"què xī":["碏"],"lún lǔn lùn":["碖"],"náo gāng":["碙"],"jié yà":["碣"],"wèi wěi":["碨"],"tí dī":["碮"],"chá chā":["碴"],"qiāo què":["碻"],"sù xiè":["碿"],"liú liù":["磂","遛","鎦","馏"],"sī tí":["磃"],"bàng páng":["磅"],"huá kě gū":["磆"],"wěi kuǐ":["磈"],"xiá qià yà":["磍"],"lián qiān":["磏"],"wèi ái gài":["磑"],"lá lā":["磖"],"áo qiāo":["磝"],"pēng pèng":["磞","閛"],"yīn yǐn":["磤"],"lěi léi":["磥"],"mó mò":["磨"],"qì zhú":["磩"],"láo luò":["磱"],"pán bō":["磻"],"jí shé":["磼"],"hé qiāo qiào":["礉"],"kè huò":["礊"],"què hú":["礐"],"è qì":["礘"],cǎ:["礤","礸"],"xián xín":["礥"],"léi lěi lèi":["礧"],"yán yǎn":["礹"],"qí zhǐ":["祇","蚔"],"bēng fāng":["祊"],"bì mì":["祕"],suàn:["祘","笇","筭","算","蒜"],"piào piāo":["票"],"jì zhài":["祭"],"shuì lèi":["祱"],"jìn jīn":["禁"],"chán shàn":["禅"],"yáng shāng":["禓"],"zhī zhǐ tí":["禔"],"shàn chán":["禪"],"yú yù ǒu":["禺"],"zǐ zì":["秄"],"chá ná":["秅"],"zhǒng zhòng chóng":["种"],"hào mào":["秏"],"kù kū":["秙"],zū:["租","葅"],chèng:["秤","穪"],"huó kuò":["秮","秳"],"chēng chèn chèng":["称","稱"],"shì zhì":["秲","銴"],"fù pū":["秿"],"xùn zè":["稄"],"tú shǔ":["稌"],"zhùn zhǔn":["稕"],"jī qí":["稘","綨","觭"],"léng líng":["稜"],"zuì zú sū":["稡"],"xì qiè":["稧","郄"],"zhǒng zhòng":["種"],"zōng zǒng":["稯"],"xián jiān liàn":["稴"],"zī jiū":["稵"],"jī qǐ":["稽"],ròng:["穃"],"shān cǎn cēn":["穇"],"mén méi":["穈"],"jǐ jì":["穖"],"xiāo rào":["穘"],"zhuō bó":["穛"],"tóng zhǒng zhòng":["穜"],zuō:["穝"],"biāo pāo":["穮","藨"],"zhuō jué":["穱"],"cuán zàn":["穳"],"kōng kòng kǒng":["空"],"yū yǔ":["穻"],zhǎi:["窄","鉙"],báo:["窇","雹"],"kū zhú":["窋"],"jiào liáo liù":["窌"],"wā guī":["窐"],"tiǎo yáo":["窕"],"xūn yìn":["窨"],"yà yē":["窫"],"tián diān yǎn":["窴"],"chāo kē":["窼"],"kuǎn cuàn":["窽","窾"],"chù qì":["竐"],"qǔ kǒu":["竘"],"jìng zhěn":["竧"],"kǎn kàn":["竷"],"zhú dǔ":["竺"],"lè jīn":["竻"],"zhuì ruì":["笍"],"háng hàng":["笐"],"cén jìn hán":["笒"],"dā xiá nà":["笚"],"zé zuó":["笮"],"lóng lǒng":["笼","篭","籠","躘","龓"],"zhù zhú":["筑","築"],"dá dā":["答","荅"],shāi:["筛","篩","簁","籭"],"yún jūn":["筠"],"láng làng":["筤","郎","阆"],"zhì zhǐ":["筫"],o:["筽"],"póu bù fú pú":["箁"],"pái bēi":["箄"],gè:["箇","虼","鉻","铬"],"tái chí":["箈"],"guǎi dài":["箉"],"zhào dào":["箌"],"jīng qìng":["箐"],"lín lǐn":["箖"],"jùn qūn":["箘"],"shī yí":["箷","釶"],"yuē yào chuò":["箹"],"xiāo shuò qiào":["箾"],"gōng gǎn lǒng":["篢"],"páng péng":["篣"],"zhuó huò":["篧"],"jiǎn jiān":["篯"],"dí zhú":["篴"],"zān cēn cǎn":["篸"],"zhuàn suǎn zuàn":["篹"],"piǎo biāo":["篻"],"guó guì":["簂"],"cè jí":["簎"],"mì miè":["簚"],"shāi sī":["簛"],"sǔn zhuàn":["簨"],"gàn gǎn":["簳"],"bò bǒ":["簸"],"bó bù":["簿"],shi:["籂"],"zhēn jiān":["籈"],"zhuàn zuǎn":["籑"],"fān pān biān":["籓"],"sǒu shǔ":["籔"],zuǎn:["籫","繤","纂","纉","纘","缵"],nǚ:["籹","釹","钕"],"shā chǎo":["粆"],"kāng jīng":["粇"],fěn:["粉","黺"],cū:["粗","觕","麁","麄","麤"],"nián zhān":["粘"],"cè sè":["粣"],"zhōu yù":["粥"],"shēn sǎn":["糁"],"biān biǎn":["糄","萹"],miàn:["糆","面","靣","麪","麫","麵","麺"],"hú hū hù":["糊"],"gǔ gòu":["糓"],"mí méi":["糜"],"sǎn shēn":["糝","糣"],zāo:["糟","蹧","遭","醩"],"mì sī":["糸"],"jiū jiǔ":["糺"],"xì jì":["系","繫"],"zhēng zhěng":["糽"],"chà chǎ":["紁","衩"],"yuē yāo":["約","约"],"hóng gōng":["紅","红"],"hé gē":["紇","纥"],"wén wèn":["紋","纹"],fóu:["紑"],"jì jié jiè":["紒"],"pī pí bǐ":["紕","纰"],"jīn jìn":["紟"],"zhā zā":["紥","紮"],hā:["紦"],"fū fù":["紨"],"chōu chóu":["紬"],"lèi léi lěi":["累"],"bō bì":["紴"],"tiǎn zhěn":["紾"],"jiōng jiǒng":["絅"],"jié jiē":["結","结","节"],"guà kuā":["絓"],"bǎi mò":["絔"],"gēng huán":["絙"],"jié xié":["絜"],"quán shuān":["絟"],"gǎi ǎi":["絠"],"luò lào":["絡","络"],"bīng bēng pēng":["絣"],"gěi jǐ":["給","给"],"tóng tōng dòng":["絧"],"tiào diào dào":["絩"],"lěi lèi léi":["絫"],"gāi hài":["絯"],"chī zhǐ":["絺"],"wèn miǎn mán wàn":["絻"],"huán huàn wàn":["綄"],"qīn xiān":["綅"],"tì tí":["綈"],"yán xiàn":["綖"],"zōng zèng zòng":["綜"],"chēn lín":["綝"],"zhǔn zhùn":["綧"],"qiàn qīng zhēng":["綪"],"qìng qǐ":["綮"],"lún guān":["綸","纶"],"chuò chāo":["綽","绰"],"tián tǎn chān":["緂"],"lǜ lù":["緑","绿"],"ruǎn ruàn":["緛"],"jí qī":["緝"],"zhòng chóng":["緟","重"],"miáo máo":["緢"],"xiè yè":["緤"],huǎn:["緩","缓","㬊"],"gēng gèng":["緪","縆"],"tōu xū shū":["緰"],"zōng zòng":["緵","繌"],"yùn gǔn":["緷"],"guā wō":["緺"],"yùn yūn wēn":["緼","縕"],"bāng bàng":["縍"],"gǔ hú":["縎","鶻"],"cī cuò suǒ":["縒"],"cuī shuāi":["縗"],"róng rǒng ròng":["縙"],"zài zēng":["縡"],cài:["縩","菜","蔡"],"féng fèng":["縫"],"suō sù":["縮","缩"],"yǎn yǐn":["縯","酓"],"zòng zǒng":["縱","纵"],"zhuàn juàn":["縳"],"mò mù":["縸","莫"],"piǎo piāo":["縹","缥"],"fán pó":["繁"],"bēng bèng":["繃"],"móu miù miào liǎo":["繆"],"yáo yóu zhòu":["繇"],"zēng zèng":["繒","缯"],"jú jué":["繘"],"chuō chuò":["繛"],"zūn zǔn":["繜"],rào:["繞","绕","遶"],"chǎn chán":["繟"],"huì huí":["繢","缋","藱"],"qiāo sāo zǎo":["繰"],"jiǎo zhuó":["繳","缴"],"dàn tán chán":["繵"],nǒng:["繷"],"pú fú":["纀"],"yào lì":["纅"],"rǎng xiāng":["纕"],"lí sǎ xǐ lǐ":["纚"],"xiān qiàn":["纤"],"jīng jìng":["经"],"tí tì":["绨"],"bēng běng bèng":["绷"],"zōng zèng":["综"],"jī qī":["缉"],"wēn yùn yūn":["缊"],"fèng féng":["缝"],"shuāi cuī suī":["缞"],"miù móu liáo miào mù":["缪"],"qiāo sāo":["缲"],fǒu:["缶","缹","缻","雬","鴀"],"bà ba pí":["罢","罷"],"guà guǎi":["罫"],"yáng xiáng":["羊","羏"],"měi gāo":["羙"],"yì xī":["羛"],"qiǎng qiān":["羟"],"qiāng kòng":["羫"],"qián xián yán":["羬"],nóu:["羺"],"hóng gòng":["羾"],"pī bì pō":["翍"],"qú yù":["翑"],ké:["翗"],"qiào qiáo":["翘"],"zhái dí":["翟"],"dào zhōu":["翢"],"hóu qú":["翵"],shuǎ:["耍"],"ruǎn nuò":["耎"],"ér nài":["耏"],"zhuān duān":["耑"],"pá bà":["耙"],"chí sì":["耛"],"qù chú":["耝"],"lún lǔn":["耣"],"jí jiè":["耤"],"tāng tǎng":["耥"],pǎng:["耪","覫"],"zhá zé":["耫"],"yē yé":["耶"],"yún yíng":["耺"],"wà tuǐ zhuó":["聉"],"ér nǜ":["聏"],"tiē zhé":["聑"],"dǐ zhì":["聜"],qié:["聺"],"nǐ jiàn":["聻"],"lèi lē":["肋"],cào:["肏","襙","鄵","鼜"],"bó dí":["肑"],"xiào xiāo":["肖"],"dù dǔ":["肚"],chāi:["肞","釵","钗"],"hán qín hàn":["肣"],"pàng pán pàn":["肨","胖"],"zhūn chún":["肫"],āng:["肮","骯"],"yù yō":["育"],"pí bǐ bì":["肶"],"fèi bì":["胇"],"bèi bēi":["背"],"fèi zǐ":["胏"],"píng pēng":["胓","苹"],"fū fú zhǒu":["胕"],"shèng shēng":["胜"],kuà:["胯","跨","骻"],"gǎi hǎi":["胲"],"gē gé gā":["胳"],"néng nài":["能"],"guī kuì":["胿"],"mài mò":["脉"],"zāng zàng":["脏"],"jiǎo jué":["脚","角"],cuǒ:["脞"],"de te":["脦"],"zuī juān":["脧"],něi:["脮","腇","餒","馁","鮾","鯘"],"pú fǔ":["脯"],niào:["脲"],shuí:["脽"],guò:["腂","過","鐹"],"là xī":["腊"],"yān ā":["腌"],"gāo gào":["膏"],"lù biāo":["膔"],chuái:["膗"],"zhuān chuán chún zhuǎn":["膞"],chuài:["膪","踹"],"fán pán":["膰"],"wǔ hū":["膴"],"shān dàn":["膻"],tún:["臀","臋","蛌","豘","豚","軘","霕","飩","饨","魨","鲀","黗"],"bì bei":["臂"],"là gé":["臈"],"sào sāo":["臊"],nào:["臑","閙","闹","鬧"],"ní luán":["臡"],"qiān xián":["臤"],"guàng jiǒng":["臦"],"guǎng jiǒng":["臩"],"chòu xiù":["臭"],"mián biān":["臱"],"dié zhí":["臷"],"zhī jìn":["臸"],"shè shě":["舍"],pù:["舖","舗"],"bān bō pán":["般"],kuā:["舿"],"gèn gěn":["艮"],"sè shǎi":["色"],"fú bó":["艴"],"jiāo qiú":["艽"],"chāi chā":["芆"],"sháo què":["芍"],"hù xià":["芐"],"zì zǐ":["芓"],"huì hū":["芔"],"tún chūn":["芚"],"jiè gài":["芥"],"xù zhù":["芧"],"yuán yán":["芫"],"xīn xìn":["芯"],"lún huā":["芲"],"wù hū":["芴"],"gōu gǒu":["芶"],"mào máo":["芼"],"fèi fú":["芾"],"chán yín":["苂"],qiē:["苆"],"sū sù":["苏"],"tiáo sháo":["苕"],"lì jī":["苙"],"kē hē":["苛"],"jù qǔ":["苣"],"ruò rě":["若"],"zhù níng":["苧"],"pā bó":["苩"],xiú:["苬"],"zhǎ zuó":["苲"],"jū chá":["苴"],nié:["苶"],"shēng ruí":["苼"],"qié jiā":["茄"],"zǐ cí":["茈"],"qiàn xī":["茜"],chǎi:["茝"],"fá pèi":["茷"],ráo:["荛","蕘","襓","饒","饶"],"yíng xíng":["荥"],"qián xún":["荨","蕁"],"yìn yīn":["荫"],"hé hè":["荷"],"shā suō":["莎"],"péng fēng":["莑"],"shēn xīn":["莘"],"wǎn guān guǎn":["莞"],"yóu sù":["莤"],"shāo xiāo":["莦","蛸"],"làng liáng":["莨"],"piǎo fú":["莩"],"wèn wǎn miǎn":["莬"],"shì shí":["莳","蒔"],"tù tú":["莵"],"xiān liǎn":["莶","薟"],"wǎn yù":["菀"],"zōu chù":["菆"],"lù lǜ":["菉"],"jūn jùn":["菌"],"niè rěn":["菍"],"zī zì zāi":["菑"],"tú tù":["菟"],"jiē shà":["菨"],"qiáo zhǎo":["菬"],"tái zhī chí":["菭"],"fēi fěi":["菲","蜚"],"qín qīn jīn":["菳"],"zū jù":["菹","蒩"],"lǐn má":["菻"],"tián tiàn":["菾"],tiē:["萜","貼","贴"],"luò là lào luō":["落"],"zhù zhuó zhe":["著"],"shèn rèn":["葚"],"gě gé":["葛"],"jùn suǒ":["葰"],"kuì kuài":["蒉"],"rú ná":["蒘"],"méng mēng měng":["蒙"],"yuán huán":["蒝"],"xú shú":["蒣"],"xí xì":["蒵"],"mì míng":["蓂"],"sōu sǒu":["蓃"],"gài gě hé hài":["蓋"],"yǎo zhuó":["蓔"],"diào tiáo dí":["蓧"],"xū qiū fū":["蓲"],"zí jú":["蓻"],"liǎo lù":["蓼"],xu:["蓿"],"hàn hǎn":["蔊"],"màn wàn mán":["蔓"],"pó bò":["蔢"],"fān fán bō":["蕃"],"hóng hòng":["蕻"],"yù ào":["薁","隩"],"xí xiào":["薂"],"báo bó bò":["薄"],"cí zī":["薋"],"wàn luàn":["薍"],"kǎo hāo":["薧"],"yuǎn wěi":["薳"],"zhòu chóu":["薵"],"wō mái":["薶"],"xiāo hào":["藃"],"yù xù xū":["藇"],"jiè jí":["藉"],"diào zhuó":["藋"],"cáng zàng":["藏"],lǎ:["藞"],"chú zhū":["藸"],"pín píng":["蘋"],"gān hán":["虷"],"hóng jiàng":["虹"],"huī huǐ":["虺"],"xiā há":["虾"],"mǎ mà mā":["蚂"],"fāng bàng":["蚄"],"bàng bèng":["蚌"],"jué quē":["蚗"],"qín qián":["蚙"],"gōng zhōng":["蚣"],"fǔ fù":["蚥"],"dài dé":["蚮"],"gǒu qú xù":["蚼"],"bǒ pí":["蚾"],"shé yí":["蛇"],tiě:["蛈","鉄","銕","鐡","鐵","铁","驖"],"gé luò":["蛒"],"máng bàng":["蛖"],"yì xǔ":["蛡"],"há gé":["蛤"],"qiè ní":["蛪"],"é yǐ":["蛾"],"zhē zhé":["蜇"],"là zhà":["蜡"],suò:["蜶","逤"],"yóu qiú":["蝤"],"xiā hā":["蝦"],"xī qī":["螇"],"bī pí":["螕"],"nài něng":["螚"],"hé xiá":["螛"],"guì huǐ":["螝"],"mǎ mā mà":["螞"],"shì zhē":["螫"],"zhì dié":["螲"],"jiàn chán":["螹"],"ma má mò":["蟆"],"mǎng měng":["蟒"],"biē bié":["蟞"],"bēn fèi":["蟦"],"láo liáo":["蟧"],"yín xún":["蟫"],"lí lǐ":["蠡"],"xuè xiě":["血"],"xíng háng hàng héng":["行"],"shuāi cuī":["衰"],"tuó tuō":["袉"],"lǐng líng":["袊"],"bào páo pào":["袌"],"jù jiē":["袓"],"hè kè":["袔"],"yí yì":["袘","貤"],"nà jué":["袦"],"bèi pī":["被"],"chǐ nuǒ":["袲"],"chǐ qǐ duǒ nuǒ":["袳"],"jiá qiā jié":["袷"],"bó mò":["袹"],"guī guà":["袿"],"liè liě":["裂"],"chéng chěng":["裎"],"jiē gé":["裓"],"dāo chóu":["裯"],"shang cháng":["裳"],"yuān gǔn":["裷"],"yǎn ān":["裺"],"tì xī":["裼"],"fù fú":["褔"],"chǔ zhǔ":["褚"],"tuì tùn":["褪"],lǎi:["襰"],"yào yāo":["要"],"qín tán":["覃"],"jiàn xiàn":["見","见"],piǎn:["覑","諞","谝","貵","𡎚"],"piē miè":["覕"],"yíng yǐng":["覮"],"qù qū":["覰","覷","觑"],"jiàn biǎn":["覵"],"luó luǎn":["覶"],"zī zuǐ":["觜"],"huà xiè":["觟"],"jiě jiè xiè":["解","觧"],"xué hù":["觷"],"lì lù":["觻"],tǎo:["討","讨"],zhùn:["訰"],"zī zǐ":["訾"],"yí dài":["詒","诒"],xiòng:["詗","诇"],"diào tiǎo":["誂"],"yí chǐ chì":["誃"],"lǎng làng":["誏"],"ēi éi ěi èi xī":["誒","诶"],shuà:["誜"],"yǔ yù":["語","语","雨"],"shuō shuì yuè":["說","说"],"shuí shéi":["誰","谁"],"qū juè":["誳"],"chī lài":["誺"],"nì ná":["誽"],"diào tiáo":["調"],"pǐ bēi":["諀"],"jì jī":["諅"],"zé zuò zhǎ cuò":["諎"],"chù jí":["諔"],"háo xià":["諕"],"lùn lún":["論","论"],"shì dì":["諟"],"huà guā":["諣"],"xǐ shāi āi":["諰"],"nán nàn":["諵","難"],miù:["謬","谬"],zèn:["譖","谮"],"shí zhì":["識","识"],"juàn xuān":["讂"],"yí tuī":["讉"],zhán:["讝"],"xǔ hǔ":["许"],"xiáng yáng":["详"],"tiáo diào zhōu":["调"],"chén shèn":["谌"],"mí mèi":["谜"],"màn mán":["谩"],"gǔ yù":["谷"],"huō huò huá":["豁"],"zhì zhài":["豸"],"huān huán":["貆"],"kěn kūn":["貇"],"mò hé":["貈"],"mò hé háo":["貉"],"jù lóu":["貗"],"zé zhài":["責","责"],"dài tè":["貸"],"bì bēn":["賁"],"jiǎ gǔ jià":["賈"],"xiōng mín":["賯"],càng:["賶"],"zhuàn zuàn":["賺","赚"],"wàn zhuàn":["贃"],"gàn gòng zhuàng":["贛"],"yuán yùn":["贠"],"bēn bì":["贲"],"jiǎ gǔ":["贾"],zǒu:["走","赱","鯐"],"dié tú":["趃"],"jū qiè":["趄"],"qū cù":["趋","趨"],"jí jié":["趌"],"guā huó":["趏"],"què qì jí":["趞"],"tàng tāng":["趟"],"chuō zhuó":["趠"],"qù cù":["趣"],"yuè tì":["趯"],"bō bào":["趵"],"kuà wù":["趶"],"guì jué":["趹"],"fāng fàng páng":["趽"],"páo bà":["跁"],"qí qǐ":["跂"],"jiàn chén":["跈"],"pǎo páo":["跑"],"diǎn diē tiē":["跕"],"jū jù qiè":["跙"],bǒ:["跛"],"luò lì":["跞"],"dài duò duō chí":["跢"],zhuǎi:["跩"],"bèng pián":["跰"],"tiào táo":["跳"],"shū chōu":["跾"],"liàng liáng":["踉"],"tà tā":["踏"],chǎ:["蹅","鑔","镲"],"dí zhí":["蹢"],"dēng dèng":["蹬","鐙","镫"],cèng:["蹭"],"dūn cún":["蹲"],"juě jué":["蹶"],liāo:["蹽"],"xiè sǎ":["躠"],tǐ:["躰","軆","骵"],"yà zhá gá":["轧","軋"],"xìn xiàn":["軐"],"fàn guǐ":["軓"],"zhuàn zhuǎn":["転"],"zhóu zhòu":["軸","轴"],bú:["轐","醭","鳪"],"zhuǎn zhuàn zhuǎi":["转"],"zǎi zài":["载"],"niǎn zhǎn":["辗"],"biān bian":["边"],"dào biān":["辺"],"yǐ yí":["迆","迤","迱"],"guò guo guō":["过"],"wàng kuāng":["迋"],"hái huán":["还"],"zhè zhèi":["这"],"yuǎn yuàn":["远"],"zhì lì":["迣"],"zhù wǎng":["迬"],"zhuī duī":["追"],"shì kuò":["适"],tòu:["透"],"tōng tòng":["通"],guàng:["逛"],"dǎi dài":["逮"],"suì suí":["遂"],"tí dì":["遆"],"yí wèi":["遗"],"shì dí zhé":["適"],cà:["遪"],"huán hái":["還"],"lí chí":["邌"],"kàng háng":["邟"],"nà nèi nā":["那"],"xié yá yé yú xú":["邪"],"gāi hái":["郂"],"huán xún":["郇"],"chī xī":["郗"],hǎo:["郝"],"lì zhí":["郦"],"xiáo ǎo":["郩"],"dōu dū":["都"],liǎo:["曢","鄝","镽"],"zàn cuán cuó":["酂","酇"],"dīng dǐng":["酊"],"cù zuò":["酢"],"fā pō":["酦"],"shāi shī":["酾"],niàng:["酿","醸"],"qiú chōu":["醔"],"pō fā":["醗","醱"],"chǎn chěn":["醦"],"yàn liǎn xiān":["醶"],"niàng niáng":["釀"],"lǐ li":["里"],"lí xǐ xī":["釐"],"liǎo liào":["釕"],"dīng dìng":["釘","钉"],"qiǎo jiǎo":["釥"],"yú huá":["釪"],"huá wū":["釫"],"rì rèn jiàn":["釰","釼"],"dì dài":["釱"],"pī zhāo":["釽"],"yá yé":["釾"],"bǎ pá":["鈀","钯"],"tā tuó":["鉈","铊"],běi:["鉳"],"bǐng píng":["鉼"],"hā kē":["鉿","铪"],chòng:["銃","铳"],"xiǎng jiōng":["銄"],"yù sì":["銉"],"xù huì":["銊"],"rén rěn":["銋"],"shàn shuò":["銏"],"chì lì":["銐"],"xiǎn xǐ":["銑","铣"],"hóu xiàng":["銗"],"diào tiáo yáo":["銚"],"xiān kuò tiǎn guā":["銛","銽","铦"],"zhé niè":["銸"],"zhōng yōng":["銿"],"tōu tù dòu":["鋀"],"méi méng":["鋂"],"wàn jiǎn":["鋄","鎫"],"tǐng dìng":["鋌","铤"],"juān jiān cuān":["鋑"],"sī tuó":["鋖"],"juān xuān juàn":["鋗"],"wú huá wū":["鋘"],"zhuó chuò":["鋜"],"xíng xìng jīng":["鋞"],"jū jú":["鋦","锔"],"zuì niè":["鋷"],"yuān yuǎn wǎn wān":["鋺"],"gāng gàng":["鋼","钢"],zhuī:["錐","锥","騅","骓","鵻"],ā:["錒","锕"],"cuō chā":["鎈"],"suǒ sè":["鎍"],"yáo zú":["鎐"],"yè tà gé":["鎑"],"qiāng chēng":["鎗"],"gé lì":["鎘","镉","鬲"],"bī pī bì":["鎞"],"gǎo hào":["鎬"],"zú chuò":["鏃"],"xiū xiù":["鏅"],"shòu sōu":["鏉"],"dí dī":["鏑","镝"],"qiāo sǎn càn":["鏒"],"lù áo":["鏕"],"tāng táng":["鏜"],"jiàn zàn":["鏩"],"huì suì ruì":["鏸"],"qiǎng qiāng":["鏹","镪"],"sǎn xiàn sà":["鏾"],"jiǎn jiàn":["鐧","锏"],"dāng chēng":["鐺","铛"],"zuān zuàn":["鑽"],"sà xì":["钑"],"yào yuè":["钥"],"tǒu dǒu":["钭"],"zuàn zuān":["钻"],"qiān yán":["铅"],"pí pī":["铍"],"yáo diào tiáo":["铫"],"tāng tàng":["铴"],"pù pū":["铺"],"tán xiān":["锬"],"liù liú":["镏"],"hào gǎo":["镐"],"táng tāng":["镗"],"tán chán xín":["镡"],"huò shǎn":["閄"],"hàn bì":["閈","闬"],"kāng kàng":["閌","闶"],"xián jiàn jiān jiǎn":["閒"],"xiā xiǎ":["閕"],"xiǎ kě":["閜"],"biàn guān":["閞"],"hé gé":["閤","颌"],"hòng xiàng":["閧"],"sē xī":["閪"],"tíng tǐng":["閮"],"è yān":["閼","阏"],"hòng juǎn xiàng":["闂"],"bǎn pàn":["闆"],"dū shé":["闍","阇"],"què quē":["闕"],"tāng táng chāng":["闛"],"kàn hǎn":["闞","阚"],"xì sè tà":["闟"],"mēn mèn":["闷"],"quē què":["阙"],"yán diàn":["阽"],"ā ē":["阿"],"bēi pō pí":["陂"],"yàn yǎn":["隁"],"yú yáo shù":["隃"],"lóng lōng":["隆"],"duì zhuì":["隊"],"suí duò":["隋"],"gāi qí ái":["隑"],"huī duò":["隓","隳"],"wěi kuí":["隗"],"lì dài":["隸"],"zhuī cuī wéi":["隹"],"hè hú":["隺","鶮"],"jùn juàn":["隽","雋"],"nán nàn nuó":["难"],"què qiāo qiǎo":["雀"],"guàn huán":["雚"],"guī xī":["雟"],"sè xí":["雭"],án:["雸"],"wù méng":["雺"],tèng:["霯"],"lù lòu":["露"],mái:["霾"],"jìng liàng":["靚"],"gé jí":["革"],bǎ:["靶"],"yāng yàng":["鞅"],"gé tà sǎ":["鞈"],"biān yìng":["鞕"],"qiào shāo":["鞘"],"juān xuān":["鞙"],"shàng zhǎng":["鞝"],"pí bǐng bì bēi":["鞞"],la:["鞡"],"xiè dié":["鞢"],ēng:["鞥"],"móu mù":["鞪"],"bì bǐng":["鞸"],"mèi wà":["韎"],rǒu:["韖"],"shè xiè":["韘"],"yùn wēn":["韫"],"dùn dú":["頓","顿"],duǐ:["頧"],luō:["頱"],"bīn pín":["頻"],yóng:["顒","颙","鰫"],mān:["顢","颟"],"jǐng gěng":["颈"],"jié xié jiá":["颉"],"kē ké":["颏"],"pín bīn":["频"],"chàn zhàn":["颤"],"fēng fěng":["風","风"],"biāo diū":["颩"],"bá fú":["颰"],"sāo sōu":["颾"],"liù liáo":["飂"],"shí sì yì":["食"],"yǎng juàn":["飬"],"zhù tǒu":["飳"],"yí sì":["飴"],"zuò zé zhā":["飵"],tiè:["飻","餮"],"xiǎng náng":["饟"],"táng xíng":["饧"],"gē le":["饹"],"chā zha":["馇"],"náng nǎng":["馕"],"yūn wò":["馧"],"zhī shì":["馶"],"xìn jìn":["馸"],"kuài jué":["駃"],zǎng:["駔","驵"],"tái dài":["駘"],"xún xuān":["駨"],"liáng láng":["駺"],piàn:["騗","騙","骗","魸"],"dài tái":["骀"],"sāo sǎo":["骚"],"gǔ gū":["骨"],"bèi mó":["骳"],"xiāo qiāo":["骹"],"bǎng pǎng":["髈"],"bó jué":["髉"],"bì pǒ":["髲"],"máo méng":["髳"],"kuò yuè":["髺"],"bā bà":["魞","鲃"],"jì cǐ":["鮆"],"bó bà":["鮊"],"zhǎ zhà":["鮓","鲊"],"chóu dài":["鮘"],"luò gé":["鮥"],"guī xié wā kuí":["鮭"],"xiān xiǎn":["鮮","鲜"],"pū bū":["鯆"],"yì sī":["鯣"],"bà bó":["鲌"],"guī xié":["鲑"],"sāi xǐ":["鳃"],"niǎo diǎo":["鳥"],"diāo zhāo":["鳭"],"gān hàn yàn":["鳱"],"fū guī":["鳺"],"jiān qiān zhān":["鳽"],"hé jiè":["鶡"],"piān biǎn":["鶣"],"chuàn zhì":["鶨"],"cāng qiāng":["鶬"],"sǔn xùn":["鶽"],"biāo páo":["麃"],"zhù cū":["麆"],"jūn qún":["麇","麕"],chi:["麶"],"mó me":["麼"],"mó me ma":["麽"],"mí mǒ":["麿"],"dàn shèn":["黮"],"zhěn yān":["黰"],"dǎn zhǎn":["黵"],"miǎn mǐn měng":["黾"],hōu:["齁"],nàng:["齉"],"qí jì zī zhāi":["齐"],"yín kěn yǎn":["龂"],"yín kěn":["龈"],"gōng wò":["龏"],"guī jūn qiū":["龜","龟"],"kuí wā":["䖯"],lōu:["䁖"],"ōu qū":["𫭟"],"lóu lǘ":["𦝼"],"gǎ gā gá":["嘎"],"wā guà":["坬"],"zhǐ dǐ":["茋"],"gǒng hóng":["硔"],"yáo xiào":["滧"]},zd=new fz;Object.keys(mT).forEach(e=>{const t=mT[e];for(let n of t)zd.set(n,e)});const gT={这个:"zhè ge",成为:"chéng wéi",认为:"rèn wéi",作为:"zuò wéi",部分:"bù fen",要求:"yāo qiú",应该:"yīng gāi",增长:"zēng zhǎng",提供:"tí gōng",觉得:"jué de",任务:"rèn wu",那个:"nà ge",称为:"chēng wéi",为主:"wéi zhǔ",了解:"liǎo jiě",处理:"chǔ lǐ",皇上:"huáng shang",只要:"zhǐ yào",大量:"dà liàng",力量:"lì liàng",几乎:"jī hū",干部:"gàn bù",目的:"mù dì",行为:"xíng wéi",只见:"zhǐ jiàn",认识:"rèn shi",市长:"shì zhǎng",师父:"shī fu",调查:"diào chá",重新:"chóng xīn",分为:"fēn wéi",知识:"zhī shi",导弹:"dǎo dàn",质量:"zhì liàng",行款:"háng kuǎn",行列:"háng liè",行话:"háng huà",行业:"háng yè",隔行:"gé háng",在行:"zài háng",行家:"háng jia",内行:"nèi háng",外行:"wài háng",同行:"tóng háng",本行:"běn háng",行伍:"háng wǔ",洋行:"yáng háng",银行:"yín háng",商行:"shāng háng",支行:"zhī háng",总行:"zǒng háng",行情:"háng qíng",懂行:"dǒng háng",行规:"háng guī",行当:"háng dang",行货:"háng huò",太行:"tài háng",入行:"rù háng",中行:"zhōng háng",农行:"nóng háng",工行:"gōng háng",建行:"jiàn háng",各行:"gè háng",行号:"háng hào",行高:"háng gāo",行首:"háng shǒu",行尾:"háng wěi",行末:"háng mò",行长:"háng zhǎng",行距:"háng jù",换行:"huàn háng",行会:"háng huì",行辈:"háng bèi",行道:"háng dào",道行:"dào heng",参与:"cān yù",充分:"chōng fèn",尽管:"jǐn guǎn",生长:"shēng zhǎng",数量:"shù liàng",应当:"yīng dāng",院长:"yuàn zhǎng",强调:"qiáng diào",只能:"zhǐ néng",音乐:"yīn yuè",以为:"yǐ wéi",处于:"chǔ yú",部长:"bù zhǎng",蒙古:"měng gǔ",只有:"zhǐ yǒu",适当:"shì dàng",只好:"zhǐ hǎo",成长:"chéng zhǎng",高兴:"gāo xìng",不了:"bù liǎo",产量:"chǎn liàng",胖子:"pàng zi",显得:"xiǎn de",只是:"zhǐ shì",似的:"shì de",率领:"shuài lǐng",改为:"gǎi wéi",不禁:"bù jīn",成分:"chéng fèn",答应:"dā ying",少年:"shào nián",兴趣:"xìng qù",太监:"tài jian",休息:"xiū xi",校长:"xiào zhǎng",更新:"gēng xīn",合同:"hé tong",喝道:"hè dào",重庆:"chóng qìng",重建:"chóng jiàn",使得:"shǐ de",审查:"shěn chá",累计:"lěi jì",给予:"jǐ yǔ",极为:"jí wéi",冠军:"guàn jūn",仿佛:"fǎng fú",头发:"tóu fa",投降:"tóu xiáng",家长:"jiā zhǎng",仔细:"zǐ xì",要是:"yào shi",将领:"jiàng lǐng",含量:"hán liàng",更为:"gèng wéi",积累:"jī lěi",地处:"dì chǔ",县长:"xiàn zhǎng",少女:"shào nǚ",路上:"lù shang",只怕:"zhǐ pà",能量:"néng liàng",储量:"chǔ liàng",供应:"gōng yìng",挑战:"tiǎo zhàn",西藏:"xī zàng",记得:"jì de",总量:"zǒng liàng",当真:"dàng zhēn",将士:"jiàng shì",差别:"chā bié",较为:"jiào wéi",长老:"zhǎng lǎo",大夫:"dài fu",差异:"chā yì",懂得:"dǒng de",尽量:"jǐn liàng",模样:"mú yàng",的确:"dí què",为首:"wéi shǒu",便宜:"pián yi",更名:"gēng míng",石头:"shí tou",州长:"zhōu zhǎng",为止:"wéi zhǐ",漂亮:"piào liang",炮弹:"pào dàn",藏族:"zàng zú",角色:"jué sè",当作:"dàng zuò",尽快:"jǐn kuài",人为:"rén wéi",重复:"chóng fù",胡同:"hú tòng",差距:"chā jù",弟兄:"dì xiong",大将:"dà jiàng",睡觉:"shuì jiào",一觉:"yí jiào",团长:"tuán zhǎng",队长:"duì zhǎng",区长:"qū zhǎng",难得:"nán dé",丫头:"yā tou",会长:"huì zhǎng",弟弟:"dì di",王爷:"wáng ye",重量:"zhòng liàng",誉为:"yù wéi",家伙:"jiā huo",华山:"huà shān",椅子:"yǐ zi",流量:"liú liàng",长大:"zhǎng dà",勉强:"miǎn qiǎng",会计:"kuài jì",过分:"guò fèn",济南:"jǐ nán",调动:"diào dòng",燕京:"yān jīng",少将:"shào jiàng",中毒:"zhòng dú",晓得:"xiǎo de",变更:"biàn gēng",打更:"dǎ gēng",认得:"rèn de",苹果:"píng guǒ",念头:"niàn tou",挣扎:"zhēng zhá",三藏:"sān zàng",剥削:"bō xuē",丞相:"chéng xiàng",少量:"shǎo liàng",寻思:"xún si",夺得:"duó dé",干线:"gàn xiàn",呼吁:"hū yù",处罚:"chǔ fá",长官:"zhǎng guān",柏林:"bó lín",亲戚:"qīn qi",身分:"shēn fèn",胳膊:"gē bo",着手:"zhuó shǒu",炸弹:"zhà dàn",咳嗽:"ké sou",叶子:"yè zi",外长:"wài zhǎng",供给:"gōng jǐ",师长:"shī zhǎng",变量:"biàn liàng",应有:"yīng yǒu",下载:"xià zài",乐器:"yuè qì",间接:"jiàn jiē",底下:"dǐ xià",打扮:"dǎ bàn",子弹:"zǐ dàn",弹药:"dàn yào",热量:"rè liàng",削弱:"xuē ruò",骨干:"gǔ gàn",容量:"róng liàng",模糊:"mó hu",转动:"zhuàn dòng",称呼:"chēng hu",科长:"kē zhǎng",处置:"chǔ zhì",着重:"zhuó zhòng",着急:"zháo jí",强迫:"qiǎng pò",庭长:"tíng zhǎng",首相:"shǒu xiàng",喇嘛:"lǎ ma",镇长:"zhèn zhǎng",只管:"zhǐ guǎn",重重:"chóng chóng",免得:"miǎn de",着实:"zhuó shí",度假:"dù jià",真相:"zhēn xiàng",相貌:"xiàng mào",处分:"chǔ fèn",委屈:"wěi qu",为期:"wéi qī",伯伯:"bó bo",伯子:"bǎi zi",圈子:"quān zi",见识:"jiàn shi",笼罩:"lǒng zhào",与会:"yù huì",都督:"dū du",都市:"dū shì",成都:"chéng dū",首都:"shǒu dū",帝都:"dì dū",王都:"wáng dū",东都:"dōng dū",都护:"dū hù",都城:"dū chéng",建都:"jiàn dū",迁都:"qiān dū",故都:"gù dū",定都:"dìng dū",中都:"zhōng dū",六安:"lù ān",宰相:"zǎi xiàng",较量:"jiào liàng",对称:"duì chèn",总长:"zǒng zhǎng",相公:"xiàng gong",空白:"kòng bái",打量:"dǎ liang",水分:"shuǐ fèn",舌头:"shé tou",没收:"mò shōu",行李:"xíng li",判处:"pàn chǔ",散文:"sǎn wén",处境:"chǔ jìng",孙子:"sūn zi",拳头:"quán tou",打发:"dǎ fā",组长:"zǔ zhǎng",骨头:"gǔ tou",宁可:"nìng kě",更换:"gēng huàn",薄弱:"bó ruò",还原:"huán yuán",重修:"chóng xiū",重来:"chóng lái",只顾:"zhǐ gù",爱好:"ài hào",馒头:"mán tou",军长:"jūn zhǎng",首长:"shǒu zhǎng",厂长:"chǎng zhǎng",司长:"sī zhǎng",长子:"zhǎng zǐ",强劲:"qiáng jìng",恰当:"qià dàng",头儿:"tóu er",站长:"zhàn zhǎng",折腾:"zhē teng",相处:"xiāng chǔ",统率:"tǒng shuài",中将:"zhōng jiàng",命中:"mìng zhòng",名将:"míng jiàng",木头:"mù tou",动弹:"dòng tan",地壳:"dì qiào",干活:"gàn huó",少爷:"shào ye",水量:"shuǐ liàng",补给:"bǔ jǐ",尾巴:"wěi ba",来得:"lái de",好奇:"hào qí",钥匙:"yào shi",当做:"dàng zuò",沉着:"chén zhuó",哑巴:"yǎ ba",车子:"chē zi",上将:"shàng jiàng",恶心:"ě xīn",担子:"dàn zi",应届:"yīng jiè",主角:"zhǔ jué",运转:"yùn zhuǎn",兄长:"xiōng zhǎng",格式:"gé shì",正月:"zhēng yuè",营长:"yíng zhǎng",当成:"dàng chéng",女婿:"nǚ xu",咽喉:"yān hóu",重阳:"chóng yáng",化为:"huà wéi",吐蕃:"tǔ bō",钻进:"zuān jìn",乐队:"yuè duì",亮相:"liàng xiàng",被子:"bèi zi",舍得:"shě de",杉木:"shā mù",击中:"jī zhòng",排长:"pái zhǎng",假期:"jià qī",分量:"fèn liàng",数次:"shù cì",提防:"dī fáng",吆喝:"yāo he",查处:"chá chǔ",量子:"liàng zǐ",里头:"lǐ tou",调研:"diào yán",伺候:"cì hou",重申:"chóng shēn",枕头:"zhěn tou",拚命:"pīn mìng",社长:"shè zhǎng",归还:"guī huán",批量:"pī liàng",畜牧:"xù mù",点着:"diǎn zháo",甚为:"shèn wéi",小将:"xiǎo jiàng",着眼:"zhuó yǎn",处死:"chǔ sǐ",厌恶:"yàn wù",鼓乐:"gǔ yuè",树干:"shù gàn",秘鲁:"bì lǔ",大方:"dà fāng",外头:"wài tou",班长:"bān zhǎng",星宿:"xīng xiù",宁愿:"nìng yuàn",钦差:"qīn chāi",为数:"wéi shù",勾当:"gòu dàng",削减:"xuē jiǎn",间谍:"jiàn dié",埋怨:"mán yuàn",结实:"jiē shi",计量:"jì liáng",淹没:"yān mò",村长:"cūn zhǎng",连长:"lián zhǎng",自给:"zì jǐ",武将:"wǔ jiàng",温差:"wēn chā",直奔:"zhí bèn",供求:"gōng qiú",剂量:"jì liàng",道长:"dào zhǎng",泄露:"xiè lòu",王八:"wáng ba",切割:"qiē gē",间隔:"jiàn gé",一晃:"yì huǎng",长假:"cháng jià",令狐:"líng hú",为害:"wéi hài",句子:"jù zi",偿还:"cháng huán",疙瘩:"gē da",燕山:"yān shān",堵塞:"dǔ sè",夺冠:"duó guàn",扎实:"zhā shi",电荷:"diàn hè",看守:"kān shǒu",复辟:"fù bì",郁闷:"yù mèn",尽早:"jǐn zǎo",切断:"qiē duàn",指头:"zhǐ tou",为生:"wéi shēng",畜生:"chù sheng",切除:"qiē chú",着力:"zhuó lì",着想:"zhuó xiǎng",级差:"jí chā",投奔:"tóu bèn",棍子:"gùn zi",含糊:"hán hu",少妇:"shào fù",兴致:"xìng zhì",纳闷:"nà mèn",干流:"gàn liú",卷起:"juǎn qǐ",扇子:"shàn zi",更改:"gēng gǎi",笼络:"lǒng luò",喇叭:"lǎ ba",载荷:"zài hè",妥当:"tuǒ dàng",为难:"wéi nán",着陆:"zhuó lù",燕子:"yàn zi",干吗:"gàn má",白发:"bái fà",总得:"zǒng děi",夹击:"jiā jī",曝光:"bào guāng",曲调:"qǔ diào",相机:"xiàng jī",叫化:"jiào huà",角逐:"jué zhú",啊哟:"ā yō",载重:"zài zhòng",长辈:"zhǎng bèi",出差:"chū chāi",垛口:"duǒ kǒu",撇开:"piē kāi",厅长:"tīng zhǎng",组分:"zǔ fèn",误差:"wù chā",家当:"jiā dàng",传记:"zhuàn jì",个子:"gè zi",铺设:"pū shè",干事:"gàn shì",杆菌:"gǎn jūn",定量:"dìng liàng",运载:"yùn zài",会儿:"huì er",酋长:"qiú zhǎng",重返:"chóng fǎn",差额:"chā é",露面:"lòu miàn",钻研:"zuān yán",大城:"dài chéng",上当:"shàng dàng",销量:"xiāo liàng",作坊:"zuō fang",照相:"zhào xiàng",哎呀:"āi yā",调集:"diào jí",看中:"kàn zhòng",议长:"yì zhǎng",风筝:"fēng zheng",辟邪:"bì xié",空隙:"kòng xì",更迭:"gēng dié",偏差:"piān chā",声调:"shēng diào",适量:"shì liàng",屯子:"tún zi",无量:"wú liàng",空地:"kòng dì",调度:"diào dù",散射:"sǎn shè",创伤:"chuāng shāng",海参:"hǎi shēn",满载:"mǎn zài",重叠:"chóng dié",落差:"luò chā",单调:"dān diào",老将:"lǎo jiàng",人参:"rén shēn",间断:"jiàn duàn",重现:"chóng xiàn",夹杂:"jiā zá",调用:"diào yòng",萝卜:"luó bo",附着:"fù zhuó",应声:"yìng shēng",主将:"zhǔ jiàng",罪过:"zuì guo",咀嚼:"jǔ jué",为政:"wéi zhèng",过量:"guò liàng",乐曲:"yuè qǔ",负荷:"fù hè",枪弹:"qiāng dàn",悄然:"qiǎo rán",处方:"chǔ fāng",悄声:"qiǎo shēng",曲子:"qǔ zi",情调:"qíng diào",挑衅:"tiǎo xìn",代为:"dài wéi",了结:"liǎo jié",打中:"dǎ zhòng",酒吧:"jiǔ bā",懒得:"lǎn de",增量:"zēng liàng",衣着:"yī zhuó",部将:"bù jiàng",要塞:"yào sài",茶几:"chá jī",杠杆:"gàng gǎn",出没:"chū mò",鲜有:"xiǎn yǒu",间隙:"jiàn xì",重担:"zhòng dàn",重演:"chóng yǎn",重试:"chóng shì",应酬:"yìng chou",只当:"zhǐ dāng",毋宁:"wú nìng",包扎:"bāo zā",前头:"qián tou",卷烟:"juǎn yān",非得:"fēi děi",弹道:"dàn dào",杆子:"gān zi",门将:"mén jiàng",后头:"hòu tou",喝彩:"hè cǎi",暖和:"nuǎn huo",累积:"lěi jī",调遣:"diào qiǎn",倔强:"jué jiàng",宝藏:"bǎo zàng",丧事:"sāng shì",约莫:"yuē mo",纤夫:"qiàn fū",更替:"gēng tì",装载:"zhuāng zài",背包:"bēi bāo",帖子:"tiě zi",松散:"sōng sǎn",呼喝:"hū hè",可恶:"kě wù",自转:"zì zhuàn",供电:"gōng diàn",反省:"fǎn xǐng",坦率:"tǎn shuài",苏打:"sū dá",本分:"běn fèn",落得:"luò de",鄙薄:"bǐ bó",相间:"xiāng jiàn",单薄:"dān bó",混蛋:"hún dàn",贞观:"zhēn guān",附和:"fù hè",能耐:"néng nài",吓唬:"xià hu",未了:"wèi liǎo",引着:"yǐn zháo",抽调:"chōu diào",沙子:"shā zi",席卷:"xí juǎn",标的:"biāo dì",别扭:"biè niu",思量:"sī liang",喝采:"hè cǎi",论语:"lún yǔ",盖子:"gài zi",分外:"fèn wài",弄堂:"lòng táng",乐舞:"yuè wǔ",雨量:"yǔ liàng",毛发:"máo fà",差遣:"chāi qiǎn",背负:"bēi fù",转速:"zhuàn sù",声乐:"shēng yuè",夹攻:"jiā gōng",供水:"gōng shuǐ",主干:"zhǔ gàn",惩处:"chéng chǔ",长相:"zhǎng xiàng",公差:"gōng chāi",榴弹:"liú dàn",省得:"shěng de",条子:"tiáo zi",重围:"chóng wéi",阻塞:"zǔ sè",劲风:"jìng fēng",纠葛:"jiū gé",颠簸:"diān bǒ",点中:"diǎn zhòng",重创:"zhòng chuāng",姥姥:"lǎo lao",迷糊:"mí hu",公家:"gōng jia",几率:"jī lǜ",苦闷:"kǔ mèn",度量:"dù liàng",差错:"chā cuò",暑假:"shǔ jià",参差:"cēn cī",搭载:"dā zài",助长:"zhù zhǎng",相称:"xiāng chèn",红晕:"hóng yùn",舍命:"shě mìng",喜好:"xǐ hào",列传:"liè zhuàn",劲敌:"jìng dí",蛤蟆:"há ma",请假:"qǐng jià",钉子:"dīng zi",沉没:"chén mò",高丽:"gāo lí",休假:"xiū jià",无为:"wú wéi",巴结:"bā jie",了得:"liǎo dé",变相:"biàn xiàng",核弹:"hé dàn",亲家:"qìng jia",承载:"chéng zài",喝问:"hè wèn",还击:"huán jī",交还:"jiāo huán",将令:"jiàng lìng",单于:"chán yú",空缺:"kòng quē",绿林:"lù lín",胆量:"dǎn liàng",执着:"zhí zhuó",低调:"dī diào",闭塞:"bì sè",轻薄:"qīng bó",得当:"dé dàng",占卜:"zhān bǔ",扫帚:"sào zhou",龟兹:"qiū cí",年长:"nián zhǎng",外传:"wài zhuàn",头子:"tóu zi",裁缝:"cái feng",礼乐:"lǐ yuè",血泊:"xuè pō",散乱:"sǎn luàn",动量:"dòng liàng",倒腾:"dǎo teng",取舍:"qǔ shě",咱家:"zán jiā",长发:"cháng fà",爪哇:"zhǎo wā",弹壳:"dàn ké",省悟:"xǐng wù",嚷嚷:"rāng rang",连累:"lián lèi",应得:"yīng dé",族长:"zú zhǎng",柜子:"guì zi",擂鼓:"léi gǔ",眩晕:"xuàn yùn",调配:"tiáo pèi",躯干:"qū gàn",差役:"chāi yì",坎坷:"kǎn kě",少儿:"shào ér",乐团:"yuè tuán",养分:"yǎng fèn",退还:"tuì huán",格调:"gé diào",语调:"yǔ diào",音调:"yīn diào",乐府:"yuè fǔ",古朴:"gǔ pǔ",打点:"dǎ diǎn",差使:"chāi shǐ",匀称:"yún chèn",瘦削:"shòu xuē",膏药:"gāo yao",吞没:"tūn mò",调任:"diào rèn",散居:"sǎn jū",上头:"shàng tóu",风靡:"fēng mǐ",放假:"fàng jià",估量:"gū liang",失当:"shī dàng",中弹:"zhòng dàn",妄为:"wàng wéi",长者:"zhǎng zhě",起哄:"qǐ hòng",末了:"mò liǎo",相声:"xiàng sheng",校正:"jiào zhèng",劝降:"quàn xiáng",矢量:"shǐ liàng",沉闷:"chén mèn",给与:"jǐ yǔ",解法:"jiě fǎ",塞外:"sài wài",将校:"jiàng xiào",嗜好:"shì hào",没落:"mò luò",朴刀:"pō dāo",片子:"piān zi",切削:"qiē xiāo",弹丸:"dàn wán",稀薄:"xī bó",亏得:"kuī dé",间歇:"jiàn xiē",翘首:"qiáo shǒu",色调:"sè diào",处决:"chǔ jué",表率:"biǎo shuài",尺子:"chǐ zi",招降:"zhāo xiáng",称职:"chèn zhí",斗篷:"dǒu peng",铺子:"pù zi",底子:"dǐ zi",负载:"fù zài",干警:"gàn jǐng",倒数:"dào shǔ",将官:"jiàng guān",锄头:"chú tou",归降:"guī xiáng",疟疾:"nüè ji",唠叨:"láo dao",限量:"xiàn liàng",屏息:"bǐng xī",重逢:"chóng féng",器乐:"qì yuè",氢弹:"qīng dàn",脖颈:"bó gěng",妃子:"fēi zi",处事:"chǔ shì",参量:"cān liàng",轻率:"qīng shuài",缥缈:"piāo miǎo",中奖:"zhòng jiǎng",才干:"cái gàn",施舍:"shī shě",卷子:"juàn zi",游说:"yóu shuì",巷子:"xiàng zi",膀胱:"páng guāng",切勿:"qiè wù",看管:"kān guǎn",风头:"fēng tou",精干:"jīng gàn",高差:"gāo chā",恐吓:"kǒng hè",扁担:"biǎn dàn",给养:"jǐ yǎng",格子:"gé zi",供需:"gōng xū",反差:"fǎn chā",飞弹:"fēi dàn",微薄:"wēi bó",发型:"fà xíng",即兴:"jí xìng",攒动:"cuán dòng",间或:"jiàn huò",浅薄:"qiǎn bó",乐章:"yuè zhāng",顺差:"shùn chā",调子:"diào zi",相位:"xiàng wèi",转子:"zhuàn zǐ",劲旅:"jìng lǚ",咔嚓:"kā chā",了事:"liǎo shì",转悠:"zhuàn you",当铺:"dàng pù",爪子:"zhuǎ zi",单子:"dān zi",好战:"hào zhàn",燕麦:"yàn mài",只许:"zhǐ xǔ",干练:"gàn liàn",女将:"nǚ jiàng",酒量:"jiǔ liàng",划船:"huá chuán",伎俩:"jì liǎng",挑拨:"tiǎo bō",少校:"shào xiào",着落:"zhuó luò",憎恶:"zēng wù",刻薄:"kè bó",要挟:"yāo xié",用处:"yòng chu",还手:"huán shǒu",模具:"mú jù",执著:"zhí zhuó",喝令:"hè lìng",保长:"bǎo zhǎng",吸着:"xī zhe",症结:"zhēng jié",公转:"gōng zhuàn",校勘:"jiào kān",重提:"chóng tí",扫兴:"sǎo xìng",铺盖:"pū gài",长史:"zhǎng shǐ",差价:"chā jià",压根:"yà gēn",怔住:"zhèng zhù",应允:"yīng yǔn",切入:"qiē rù",战将:"zhàn jiàng",年少:"nián shào",舍身:"shě shēn",执拗:"zhí niù",处世:"chǔ shì",中风:"zhòng fēng",等量:"děng liàng",放量:"fàng liàng",腔调:"qiāng diào",老少:"lǎo shào",没入:"mò rù",瓜葛:"guā gé",将帅:"jiàng shuài",车载:"chē zài",窝囊:"wō nang",长进:"zhǎng jìn",可汗:"kè hán",并州:"bīng zhōu",供销:"gōng xiāo",切片:"qiē piàn",差事:"chāi shì",知会:"zhī hui",鹰爪:"yīng zhǎo",处女:"chǔ nǚ",切磋:"qiē cuō",日头:"rì tou",押解:"yā jiè",滋长:"zī zhǎng",道观:"dào guàn",脚色:"jué sè",当量:"dāng liàng",婆家:"pó jia",缘分:"yuán fèn",空闲:"kòng xián",好色:"hào sè",怒喝:"nù hè",笼统:"lǒng tǒng",边塞:"biān sài",何曾:"hé céng",重合:"chóng hé",零散:"líng sǎn",轰隆:"hōng lōng",化子:"huà zi",内蒙:"nèi měng",数落:"shǔ luò",逆差:"nì chā",牟利:"móu lì",栅栏:"zhà lan",中标:"zhòng biāo",调档:"diào dàng",佝偻:"gōu lóu",场子:"chǎng zi",甲壳:"jiǎ qiào",重温:"chóng wēn",炮制:"páo zhì",返还:"fǎn huán",自传:"zì zhuàn",高调:"gāo diào",殷红:"yān hóng",固着:"gù zhuó",强求:"qiǎng qiú",本相:"běn xiàng",骄横:"jiāo hèng",草率:"cǎo shuài",气闷:"qì mèn",着色:"zhuó sè",宁肯:"nìng kěn",兴头:"xìng tou",拘泥:"jū nì",夹角:"jiā jiǎo",发髻:"fà jì",猛将:"měng jiàng",约摸:"yuē mo",拖累:"tuō lěi",呢绒:"ní róng",钻探:"zuān tàn",夹层:"jiā céng",落魄:"luò pò",巷道:"hàng dào",运量:"yùn liàng",解闷:"jiě mèn",空儿:"kòng er",估摸:"gū mo",好客:"hào kè",钻孔:"zuān kǒng",糊弄:"hù nòng",荥阳:"xíng yáng",烦闷:"fán mèn",仓卒:"cāng cù",分叉:"fēn chà",厂子:"chǎng zi",小调:"xiǎo diào",少阳:"shào yáng",受降:"shòu xiáng",染坊:"rǎn fáng",胳臂:"gē bei",将门:"jiàng mén",模板:"mú bǎn",配给:"pèi jǐ",为伍:"wéi wǔ",跟头:"gēn tou",划算:"huá suàn",累赘:"léi zhui",哄笑:"hōng xiào",晕眩:"yūn xuàn",干掉:"gàn diào",缝制:"féng zhì",难处:"nán chù",着意:"zhuó yì",蛮横:"mán hèng",奇数:"jī shù",短发:"duǎn fà",生还:"shēng huán",还清:"huán qīng",看护:"kān hù",直率:"zhí shuài",奏乐:"zòu yuè",载客:"zài kè",专横:"zhuān hèng",湮没:"yān mò",空格:"kòng gé",铺垫:"pū diàn",良将:"liáng jiàng",哗啦:"huā lā",散漫:"sǎn màn",脱发:"tuō fà",送还:"sòng huán",埋没:"mái mò",累及:"lěi jí",薄雾:"bó wù",调离:"diào lí",舌苔:"shé tāi",机长:"jī zhǎng",栓塞:"shuān sè",配角:"pèi jué",切口:"qiē kǒu",创口:"chuāng kǒu",哈欠:"hā qian",实弹:"shí dàn",铺平:"pū píng",哈达:"hǎ dá",懒散:"lǎn sǎn",实干:"shí gàn",填空:"tián kòng",刁钻:"diāo zuān",乐师:"yuè shī",量变:"liàng biàn",诱降:"yòu xiáng",搪塞:"táng sè",征调:"zhēng diào",夹道:"jiā dào",干咳:"gān ké",止咳:"zhǐ ké",乐工:"yuè gōng",划过:"huá guò",着火:"zháo huǒ",更正:"gēng zhèng",给付:"jǐ fù",空子:"kòng zi",哪吒:"né zhā",正着:"zhèng zháo",刷子:"shuā zi",丧葬:"sāng zàng",夹带:"jiā dài",安分:"ān fèn",中意:"zhòng yì",长孙:"zhǎng sūn",校订:"jiào dìng",卷曲:"juǎn qū",载运:"zài yùn",投弹:"tóu dàn",柞蚕:"zuò cán",份量:"fèn liàng",调换:"diào huàn",了然:"liǎo rán",咧嘴:"liě zuǐ",典当:"diǎn dàng",寒假:"hán jià",长兄:"zhǎng xiōng",给水:"jǐ shuǐ",须发:"xū fà",枝干:"zhī gàn",属相:"shǔ xiàng",哄抢:"hōng qiǎng",刻划:"kè huà",塞子:"sāi zi",单干:"dān gàn",还乡:"huán xiāng",兆头:"zhào tou",寺观:"sì guàn",督率:"dū shuài",啊哈:"ā ha",割舍:"gē shě",抹布:"mā bù",好恶:"hào wù",下处:"xià chǔ",消长:"xiāo zhǎng",离间:"lí jiàn",准头:"zhǔn tou",校对:"jiào duì",什物:"shí wù",番禺:"pān yú",佛爷:"fó ye",吗啡:"mǎ fēi",盐分:"yán fèn",虎将:"hǔ jiàng",薄荷:"bò he",独处:"dú chǔ",空位:"kòng wèi",铺路:"pū lù",乌拉:"wū lā",调回:"diào huí",来头:"lái tou",闲散:"xián sǎn",胶卷:"jiāo juǎn",冒失:"mào shi",干劲:"gàn jìn",弦乐:"xián yuè",相国:"xiàng guó",丹参:"dān shēn",助兴:"zhù xìng",铺开:"pū kāi",次长:"cì zhǎng",发卡:"fà qiǎ",拮据:"jié jū",刹车:"shā chē",生发:"shēng fà",重播:"chóng bō",缝合:"féng hé",音量:"yīn liàng",少尉:"shào wèi",冲压:"chòng yā",苍劲:"cāng jìng",厚薄:"hòu báo",威吓:"wēi hè",外相:"wài xiàng",呼号:"hū háo",着迷:"zháo mí",挑担:"tiāo dàn",纹路:"wén lù",还俗:"huán sú",强横:"qiáng hèng",着数:"zhāo shù",降顺:"xiáng shùn",挑明:"tiǎo míng",眯缝:"mī feng",分内:"fèn nèi",更衣:"gēng yī",软和:"ruǎn huo",尽兴:"jìn xìng",号子:"hào zi",爪牙:"zhǎo yá",败将:"bài jiàng",猜中:"cāi zhòng",结扎:"jié zā",没空:"méi kòng",夹缝:"jiā fèng",拾掇:"shí duo",掺和:"chān huo",簸箕:"bò ji",电量:"diàn liàng",荷载:"hè zǎi",调式:"diào shì",处身:"chǔ shēn",打手:"dǎ shǒu",弹弓:"dàn gōng",横蛮:"hèng mán",能干:"néng gàn",校点:"jiào diǎn",加载:"jiā zài",干校:"gàn xiào",哄传:"hōng chuán",校注:"jiào zhù",淤塞:"yū sè",马扎:"mǎ zhá",月氏:"yuè zhī",高干:"gāo gàn",经传:"jīng zhuàn",曾孙:"zēng sūn",好斗:"hào dòu",关卡:"guān qiǎ",逃奔:"táo bèn",磨蹭:"mó ceng",牟取:"móu qǔ",颤栗:"zhàn lì",蚂蚱:"mà zha",撮合:"cuō he",趔趄:"liè qie",摔打:"shuāi dǎ",台子:"tái zi",分得:"fēn de",粘着:"nián zhuó",采邑:"cài yì",散装:"sǎn zhuāng",婀娜:"ē nuó",兴味:"xìng wèi",行头:"xíng tou",气量:"qì liàng",调运:"diào yùn",处治:"chǔ zhì",乐音:"yuè yīn",充塞:"chōng sè",恫吓:"dòng hè",论调:"lùn diào",相中:"xiāng zhòng",民乐:"mín yuè",炮仗:"pào zhang",丧服:"sāng fú",骁将:"xiāo jiàng",量刑:"liàng xíng",缝补:"féng bǔ",财会:"cái kuài",大干:"dà gàn",历数:"lì shǔ",校场:"jiào chǎng",塞北:"sài běi",识相:"shí xiàng",辱没:"rǔ mò",鲜亮:"xiān liàng",语塞:"yǔ sè",露脸:"lòu liǎn",凉快:"liáng kuai",腰杆:"yāo gǎn",溜达:"liū da",嘎嘎:"gā gā",公干:"gōng gàn",桔梗:"jié gěng",挑逗:"tiǎo dòu",看门:"kān mén",乐歌:"yuè gē",拓片:"tà piàn",挑动:"tiǎo dòng",准将:"zhǔn jiàng",遒劲:"qiú jìng",磨坊:"mò fáng",逶迤:"wēi yí",搅和:"jiǎo huo",摩挲:"mó suō",作弄:"zuò nòng",苗头:"miáo tou",打颤:"dǎ zhàn",大藏:"dà zàng",畜牲:"chù shēng",勾搭:"gōu da",树荫:"shù yīn",树杈:"shù chà",铁杆:"tiě gǎn",将相:"jiàng xiàng",份子:"fèn zi",视差:"shì chā",绿荫:"lǜ yīn",枪杆:"qiāng gǎn",缝纫:"féng rèn",愁闷:"chóu mèn",点将:"diǎn jiàng",华佗:"huà tuó",劲射:"jìng shè",箱笼:"xiāng lǒng",终了:"zhōng liǎo",鬓发:"bìn fà",结巴:"jiē ba",苦干:"kǔ gàn",看家:"kān jiā",正旦:"zhēng dàn",中肯:"zhòng kěn",厦门:"xià mén",东莞:"dōng guǎn",食量:"shí liàng",宫调:"gōng diào",间作:"jiàn zuò",弹片:"dàn piàn",差池:"chā chí",漂白:"piǎo bái",杠子:"gàng zi",调处:"tiáo chǔ",好动:"hào dòng",转炉:"zhuàn lú",屏气:"bǐng qì",夹板:"jiā bǎn",哀乐:"āi yuè",干道:"gàn dào",苦处:"kǔ chù",劈柴:"pǐ chái",长势:"zhǎng shì",天华:"tiān huá",共处:"gòng chǔ",校验:"jiào yàn",出塞:"chū sài",磨盘:"mò pán",萎靡:"wěi mǐ",奔丧:"bēn sāng",唱和:"chàng hè",大调:"dà diào",非分:"fēi fèn",钻营:"zuān yíng",夹子:"jiā zi",超载:"chāo zài",更始:"gēng shǐ",铃铛:"líng dang",披散:"pī sàn",发还:"fā huán",转轮:"zhuàn lún",横财:"hèng cái",泡桐:"pāo tóng",抛撒:"pāo sǎ",天呀:"tiān yā",糊糊:"hū hu",躯壳:"qū qiào",通量:"tōng liàng",奉还:"fèng huán",午觉:"wǔ jiào",闷棍:"mèn gùn",浪头:"làng tou",砚台:"yàn tái",油坊:"yóu fáng",学长:"xué zhǎng",过载:"guò zài",笔调:"bǐ diào",衣被:"yī bèi",畜产:"xù chǎn",调阅:"diào yuè",蛮干:"mán gàn",曾祖:"zēng zǔ",提干:"tí gàn",变调:"biàn diào",覆没:"fù mò",模子:"mú zi",乐律:"yuè lǜ",称心:"chèn xīn",木杆:"mù gān",重印:"chóng yìn",自省:"zì xǐng",提调:"tí diào",看相:"kàn xiàng",芋头:"yù tou",下切:"xià qiē",塞上:"sài shàng",铺张:"pū zhāng",藤蔓:"téng wàn",薄幸:"bó xìng",解数:"xiè shù",褪去:"tuì qù",霰弹:"xiàn dàn",柚木:"yóu mù",痕量:"hén liàng",雅乐:"yǎ yuè",号哭:"háo kū",诈降:"zhà xiáng",猪圈:"zhū juàn",咋舌:"zé shé",铣床:"xǐ chuáng",防弹:"fáng dàn",健将:"jiàn jiàng",丽水:"lí shuǐ",削发:"xuē fà",空当:"kòng dāng",多相:"duō xiàng",鲜见:"xiǎn jiàn",划桨:"huá jiǎng",载波:"zài bō",跳蚤:"tiào zao",俏皮:"qiào pí",吧嗒:"bā dā",结发:"jié fà",了断:"liǎo duàn",同调:"tóng diào",石磨:"shí mò",时差:"shí chā",鼻塞:"bí sè",挑子:"tiāo zi",推磨:"tuī mò",武侯:"wǔ hóu",抹煞:"mǒ shā",调转:"diào zhuǎn",籍没:"jí mò",还债:"huán zhài",调演:"diào yǎn",分划:"fēn huá",奇偶:"jī ǒu",断喝:"duàn hè",闷雷:"mèn léi",狼藉:"láng jí",饭量:"fàn liàng",还礼:"huán lǐ",转调:"zhuǎn diào",星相:"xīng xiàng",手相:"shǒu xiàng",配乐:"pèi yuè",盖头:"gài tou",连杆:"lián gǎn",簿记:"bù jì",刀把:"dāo bà",量词:"liàng cí",名角:"míng jué",步调:"bù diào",校本:"jiào běn",账簿:"zhàng bù",隽永:"juàn yǒng",稍为:"shāo wéi",易传:"yì zhuàn",乐谱:"yuè pǔ",牵累:"qiān lěi",答理:"dā li",喝斥:"hè chì",吟哦:"yín é",干渠:"gàn qú",海量:"hǎi liàng",精当:"jīng dàng",着床:"zhuó chuáng",月相:"yuè xiàng",庶几:"shù jī",宫观:"gōng guàn",论处:"lùn chǔ",征辟:"zhēng bì",厚朴:"hòu pò",介壳:"jiè qiào",吭哧:"kēng chī",咯血:"kǎ xiě",铺陈:"pū chén",重生:"chóng shēng",乐理:"yuè lǐ",哀号:"āi háo",藏历:"zàng lì",刚劲:"gāng jìng",削平:"xuē píng",浓荫:"nóng yīn",城垛:"chéng duǒ",当差:"dāng chāi",正传:"zhèng zhuàn",并处:"bìng chǔ",创面:"chuāng miàn",旦角:"dàn jué",薄礼:"bó lǐ",晃荡:"huàng dang",臊子:"sào zi",家什:"jiā shí",闷头:"mēn tóu",美发:"měi fà",度数:"dù shu",着凉:"zháo liáng",闯将:"chuǎng jiàng",几案:"jī àn",姘头:"pīn tou",差数:"chā shù",散碎:"sǎn suì",壅塞:"yōng sè",寒颤:"hán zhàn",牵强:"qiān qiǎng",无间:"wú jiàn",轮转:"lún zhuàn",号叫:"háo jiào",铺排:"pū pái",降伏:"xiáng fú",轧钢:"zhá gāng",东阿:"dōng ē",病假:"bìng jià",累加:"lěi jiā",梗塞:"gěng sè",弹夹:"dàn jiā",钻心:"zuān xīn",晃眼:"huǎng yǎn",魔爪:"mó zhǎo",标量:"biāo liàng",憋闷:"biē mèn",猜度:"cāi duó",处士:"chǔ shì",官差:"guān chāi",讨还:"tǎo huán",长门:"cháng mén",馏分:"liú fēn",里弄:"lǐ lòng",色相:"sè xiàng",雅兴:"yǎ xìng",角力:"jué lì",弹坑:"dàn kēng",枝杈:"zhī chà",夹具:"jiā jù",处刑:"chǔ xíng",悍将:"hàn jiàng",好学:"hào xué",好好:"hǎo hǎo",银发:"yín fà",扫把:"sào bǎ",法相:"fǎ xiàng",贵干:"guì gàn",供气:"gōng qì",空余:"kòng yú",捆扎:"kǔn zā",瘠薄:"jí bó",浆糊:"jiàng hu",嘎吱:"gā zhī",调令:"diào lìng",法帖:"fǎ tiè",淋病:"lìn bìng",调派:"diào pài",转盘:"zhuàn pán",供稿:"gōng gǎo",差官:"chāi guān",忧闷:"yōu mèn",教长:"jiào zhǎng",重唱:"chóng chàng",酒兴:"jiǔ xìng",乐坛:"yuè tán",花呢:"huā ní",叱喝:"chì hè",膀臂:"bǎng bì",得空:"dé kòng",转圈:"zhuàn quān",横暴:"hèng bào",哄抬:"hōng tái",引吭:"yǐn háng",载货:"zài huò",中计:"zhòng jì",官长:"guān zhǎng",相面:"xiàng miàn",看头:"kàn tou",盼头:"pàn tou",意兴:"yì xìng",军乐:"jūn yuè",累次:"lěi cì",骨嘟:"gǔ dū",燕赵:"yān zhào",报丧:"bào sāng",弥撒:"mí sa",挨斗:"ái dòu",扁舟:"piān zhōu",丑角:"chǒu jué",吊丧:"diào sāng",强将:"qiáng jiàng",重奏:"chóng zòu",发辫:"fà biàn",着魔:"zháo mó",着法:"zhāo fǎ",盛放:"shèng fàng",填塞:"tián sè",凶横:"xiōng hèng",稽首:"qǐ shǒu",碑帖:"bēi tiè",冲量:"chōng liàng",发菜:"fà cài",假发:"jiǎ fà",翻卷:"fān juǎn",小量:"xiǎo liàng",胶着:"jiāo zhuó",里子:"lǐ zi",调调:"diào diao",散兵:"sǎn bīng",高挑:"gāo tiǎo",播撒:"bō sǎ",夹心:"jiā xīn",扇动:"shān dòng",叨扰:"tāo rǎo",霓裳:"ní cháng",捻子:"niǎn zi",弥缝:"mí féng",撒布:"sǎ bù",场院:"cháng yuàn",省亲:"xǐng qīn",提拉:"tí lā",惯量:"guàn liàng",强逼:"qiáng bī",强征:"qiáng zhēng",晕车:"yùn chē",数道:"shù dào",带累:"dài lèi",拓本:"tà běn",嫌恶:"xián wù",宿将:"sù jiàng",龟裂:"jūn liè",缠夹:"chán jiā",发式:"fà shì",隔扇:"gé shàn",天分:"tiān fèn",癖好:"pǐ hào",四通:"sì tōng",白术:"bái zhú",划伤:"huá shāng",角斗:"jué dòu",听差:"tīng chāi",岁差:"suì chā",丧礼:"sāng lǐ",脉脉:"mò mò",削瘦:"xuē shòu",撒播:"sǎ bō",莎草:"suō cǎo",犍为:"qián wéi",调头:"diào tóu",龙卷:"lóng juǎn",外调:"wài diào",字帖:"zì tiè",卷发:"juǎn fà",揣度:"chuǎi duó",洋相:"yáng xiàng",散光:"sǎn guāng",骨碌:"gū lu",薄命:"bó mìng",笼头:"lóng tóu",咽炎:"yān yán",碌碡:"liù zhou",片儿:"piàn er",纤手:"qiàn shǒu",散体:"sǎn tǐ",内省:"nèi xǐng",强留:"qiáng liú",解送:"jiè sòng",反间:"fǎn jiàn",少壮:"shào zhuàng",留空:"liú kōng",告假:"gào jià",咳血:"ké xuè",薄暮:"bó mù",铺轨:"pū guǐ",磨削:"mó xuē",治丧:"zhì sāng",叉子:"chā zi",哄动:"hōng dòng",蛾子:"é zi",出落:"chū luò",股长:"gǔ zhǎng",贵处:"guì chù",还魂:"huán hún",例假:"lì jià",刹住:"shā zhù",身量:"shēn liàng",同好:"tóng hào",模量:"mó liàng",更生:"gēng shēng",服丧:"fú sāng",率直:"shuài zhí",字模:"zì mú",散架:"sǎn jià",答腔:"dā qiāng",交恶:"jiāo wù",薄情:"bó qíng",眼泡:"yǎn pāo",袅娜:"niǎo nuó",草垛:"cǎo duò",冲劲:"chòng jìn",呢喃:"ní nán",切中:"qiè zhòng",挑灯:"tiǎo dēng",还愿:"huán yuàn",激将:"jī jiàng",更鼓:"gēng gǔ",没药:"mò yào",败兴:"bài xìng",切面:"qiē miàn",散户:"sǎn hù",累进:"lěi jìn",背带:"bēi dài",秤杆:"chèng gǎn",碾坊:"niǎn fáng",簿子:"bù zi",扳手:"bān shǒu",铅山:"yán shān",儒将:"rú jiàng",重光:"chóng guāng",剪发:"jiǎn fà",长上:"zhǎng shàng",小传:"xiǎo zhuàn",压轴:"yā zhòu",弱冠:"ruò guàn",花卷:"huā juǎn",横祸:"hèng huò",夹克:"jiā kè",光晕:"guāng yùn",披靡:"pī mǐ",对调:"duì diào",夹持:"jiā chí",空额:"kòng é",平调:"píng diào",铺床:"pū chuáng",丧钟:"sāng zhōng",作乐:"zuò lè",少府:"shào fǔ",数数:"shuò shuò",奔头:"bèn tou",进给:"jìn jǐ",率性:"shuài xìng",乐子:"lè zi",绑扎:"bǎng zā",挑唆:"tiǎo suō",漂洗:"piǎo xǐ",夹墙:"jiā qiáng",咳喘:"ké chuǎn",乜斜:"miē xie",错处:"cuò chù",闷酒:"mèn jiǔ",时调:"shí diào",重孙:"chóng sūn",经幢:"jīng chuáng",圩场:"xū chǎng",调门:"diào mén",花头:"huā tóu",划拉:"huá la",套色:"tào shǎi",粗率:"cū shuài",相率:"xiāng shuài",款识:"kuǎn zhì",吁请:"yù qǐng",荫蔽:"yīn bì",文蛤:"wén gé",嘀嗒:"dī dā",调取:"diào qǔ",交差:"jiāo chāi",落子:"luò zǐ",相册:"xiàng cè",絮叨:"xù dao",落发:"luò fà",异相:"yì xiàng",浸没:"jìn mò",角抵:"jué dǐ",卸载:"xiè zài",春卷:"chūn juǎn",扎挣:"zhá zheng",畜养:"xù yǎng",吡咯:"bǐ luò",垛子:"duò zi",恶少:"è shào",发际:"fà jì",红苕:"hóng sháo",糨糊:"jiàng hu",哭丧:"kū sāng",稍息:"shào xī",晕船:"yùn chuán",校样:"jiào yàng",外差:"wài chā",脚爪:"jiǎo zhǎo",铺展:"pū zhǎn",芫荽:"yán sui",夹紧:"jiā jǐn",尿泡:"suī pào",丧乱:"sāng luàn",凶相:"xiōng xiàng",华发:"huá fà",打场:"dǎ cháng",云量:"yún liàng",正切:"zhèng qiē",划拳:"huá quán",划艇:"huá tǐng",评传:"píng zhuàn",拉纤:"lā qiàn",句读:"jù dòu",散剂:"sǎn jì",骨殖:"gǔ shi",塞音:"sè yīn",铺叙:"pū xù",阏氏:"yān zhī",冷颤:"lěng zhàn",煞住:"shā zhù",少男:"shào nán",管乐:"guǎn yuè",号啕:"háo táo",纳降:"nà xiáng",拥塞:"yōng sè",万乘:"wàn shèng",杆儿:"gǎn ér",葛藤:"gé téng",簿籍:"bù jí",皮夹:"pí jiā",校准:"jiào zhǔn",允当:"yǔn dàng",器量:"qì liàng",选调:"xuǎn diào",扮相:"bàn xiàng",干才:"gàn cái",基干:"jī gàn",割切:"gē qiē",国乐:"guó yuè",卡壳:"qiǎ ké",辟谷:"bì gǔ",磨房:"mò fáng",咿呀:"yī yā",芥末:"jiè mo",薄技:"bó jì",产假:"chǎn jià",诗兴:"shī xìng",重出:"chóng chū",转椅:"zhuàn yǐ",酌量:"zhuó liang",簿册:"bù cè",藏青:"zàng qīng",的士:"dī shì",调人:"diào rén",解元:"jiè yuán",茎干:"jīng gàn",巨量:"jù liàng",榔头:"láng tou",率真:"shuài zhēn",喷香:"pèn xiāng",锁钥:"suǒ yuè",虾蟆:"há má",相图:"xiàng tú",兴会:"xìng huì",灶头:"zào tóu",重婚:"chóng hūn",钻洞:"zuān dòng",忖度:"cǔn duó",党参:"dǎng shēn",调温:"diào wēn",杆塔:"gān tǎ",葛布:"gé bù",拱券:"gǒng xuàn",夹生:"jiā shēng",露馅:"lòu xiàn",恰切:"qià qiè",散见:"sǎn jiàn",哨卡:"shào qiǎ",烫发:"tàng fà",体量:"tǐ liàng",挺括:"tǐng kuò",系带:"jì dài",相士:"xiàng shì",羊圈:"yáng juàn",转矩:"zhuàn jǔ",吧台:"bā tái",苍术:"cāng zhú",菲薄:"fěi bó",蛤蚧:"gé jiè",蛤蜊:"gé lí",瓜蔓:"guā wàn",怪相:"guài xiàng",临帖:"lín tiè",女红:"nǚ gōng",刨床:"bào chuáng",翘楚:"qiáo chǔ",数九:"shǔ jiǔ",谈兴:"tán xìng",雄劲:"xióng jìng",扎染:"zā rǎn",遮荫:"zhē yīn",周正:"zhōu zhèng",赚头:"zhuàn tou",扒手:"pá shǒu",搀和:"chān huo",诚朴:"chéng pǔ",肚量:"dù liàng",干结:"gān jié",工尺:"gōng chě",家累:"jiā lěi",曲水:"qū shuǐ",沙参:"shā shēn",挑花:"tiǎo huā",阿门:"ā mén",背篓:"bēi lǒu",瘪三:"biē sān",裁处:"cái chǔ",创痛:"chuāng tòng",福相:"fú xiàng",更动:"gēng dòng",豪兴:"háo xìng",还阳:"huán yáng",还嘴:"huán zuǐ",借调:"jiè diào",卷云:"juǎn yún",流弹:"liú dàn",想头:"xiǎng tou",削价:"xuē jià",校阅:"jiào yuè",雅量:"yǎ liàng",别传:"bié zhuàn",薄酒:"bó jiǔ",春假:"chūn jià",发妻:"fà qī",哗哗:"huā huā",宽绰:"kuān chuo",了悟:"liǎo wù",切花:"qiē huā",审度:"shěn duó",应许:"yīng xǔ",转台:"zhuàn tái",仔猪:"zǐ zhū",裁量:"cái liáng",藏戏:"zàng xì",乘兴:"chéng xìng",绸缪:"chóu móu",摧折:"cuī zhé",调经:"tiáo jīng",调职:"diào zhí",缝缀:"féng zhuì",骨朵:"gū duǒ",核儿:"hú er",恒量:"héng liàng",还价:"huán jià",浑朴:"hún pǔ",苦差:"kǔ chāi",面糊:"miàn hù",煞车:"shā chē",省视:"xǐng shì",什锦:"shí jǐn",信差:"xìn chāi",余切:"yú qiē",攒眉:"cuán méi",炸糕:"zhá gāo",钻杆:"zuàn gǎn",扒灰:"pá huī",拌和:"bàn huò",长调:"cháng diào",大溜:"dà liù",抖搂:"dǒu lōu",飞转:"fēi zhuàn",干仗:"gàn zhàng",好胜:"hào shèng",画片:"huà piàn",搅混:"jiǎo hún",螺杆:"luó gǎn",木模:"mù mú",怒号:"nù háo",频数:"pín shù",无宁:"wú níng",遗少:"yí shào",邮差:"yóu chāi",占卦:"zhān guà",占星:"zhān xīng",重审:"chóng shěn",自量:"zì liàng",调防:"diào fáng",发廊:"fà láng",反调:"fǎn diào",缝子:"fèng zi",更夫:"gēng fū",骨子:"gǔ zi",光杆:"guāng gǎn",夹棍:"jiā gùn",居丧:"jū sāng",巨贾:"jù gǔ",看押:"kān yā",空转:"kōng zhuàn",量力:"liàng lì",炮烙:"páo luò",赔还:"péi huán",扑扇:"pū shān",散记:"sǎn jì",散件:"sǎn jiàn",删削:"shān xuē",射干:"shè gàn",条几:"tiáo jī",偷空:"tōu kòng",削壁:"xuē bì",校核:"jiào hé",阴干:"yīn gān",择菜:"zhái cài",重九:"chóng jiǔ",主调:"zhǔ diào",自禁:"zì jīn",吧唧:"bā jī",便溺:"biàn niào",词调:"cí diào",叨咕:"dáo gu",落枕:"lào zhěn",铺砌:"pū qì",刷白:"shuà bái",委靡:"wěi mǐ",系泊:"xì bó",相马:"xiàng mǎ",熨帖:"yù tiē",转筋:"zhuàn jīn",棒喝:"bàng hè",傧相:"bīn xiàng",镐头:"gǎo tóu",间苗:"jiàn miáo",乐池:"yuè chí",卖相:"mài xiàng",屏弃:"bǐng qì",铅弹:"qiān dàn",切变:"qiē biàn",请调:"qǐng diào",群氓:"qún méng",散板:"sǎn bǎn",省察:"xǐng chá",事假:"shì jià",纤绳:"qiàn shéng",重影:"chóng yǐng",耕种:"gēng zhòng",种地:"zhòng dì",种菜:"zhòng cài",栽种:"zāi zhòng",接种:"jiē zhòng",垦种:"kěn zhòng",种殖:"zhòng zhí",种瓜:"zhòng guā",种豆:"zhòng dòu",种树:"zhòng shù",睡着:"shuì zháo",笼子:"lóng zi",重启:"chóng qǐ",重整:"chóng zhěng",重弹:"chóng tán",重足:"chóng zú",重山:"chóng shān",重游:"chóng yóu",重峦:"chóng luán",爷爷:"yé ye",奶奶:"nǎi nai",姥爷:"lǎo ye",爸爸:"bà ba",妈妈:"mā ma",婶婶:"shěn shen",舅舅:"jiù jiu",姑姑:"gū gu",叔叔:"shū shu",姨夫:"yí fu",舅母:"jiù mu",姑父:"gū fu",姐夫:"jiě fu",婆婆:"pó po",公公:"gōng gong",舅子:"jiù zi",姐姐:"jiě jie",哥哥:"gē ge",妹妹:"mèi mei",妹夫:"mèi fu",姨子:"yí zi",宝宝:"bǎo bao",娃娃:"wá wa",孩子:"hái zi",日子:"rì zi",样子:"yàng zi",狮子:"shī zi",身子:"shēn zi",架子:"jià zi",嫂子:"sǎo zi",鼻子:"bí zi",亭子:"tíng zi",折子:"zhé zi",面子:"miàn zi",脖子:"bó zi",辈子:"bèi zi",帽子:"mào zi",拍子:"pāi zi",柱子:"zhù zi",辫子:"biàn zi",鸽子:"gē zi",房子:"fáng zi",丸子:"wán zi",摊子:"tān zi",牌子:"pái zi",胡子:"hú zi",鬼子:"guǐ zi",矮子:"ǎi zi",鸭子:"yā zi",小子:"xiǎo zi",影子:"yǐng zi",屋子:"wū zi",对子:"duì zi",点子:"diǎn zi",本子:"běn zi",种子:"zhǒng zi",儿子:"ér zi",兔子:"tù zi",骗子:"piàn zi",院子:"yuàn zi",猴子:"hóu zi",嗓子:"sǎng zi",侄子:"zhí zi",柿子:"shì zi",钳子:"qián zi",虱子:"shī zi",瓶子:"píng zi",豹子:"bào zi",筷子:"kuài zi",篮子:"lán zi",绳子:"shéng zi",嘴巴:"zuǐ ba",耳朵:"ěr duo",茄子:"qié zi",蚌埠:"bèng bù",崆峒:"kōng tóng",琵琶:"pí pa",蘑菇:"mó gu",葫芦:"hú lu",狐狸:"hú li",桔子:"jú zi",盒子:"hé zi",桌子:"zhuō zi",竹子:"zhú zi",师傅:"shī fu",衣服:"yī fu",袜子:"wà zi",杯子:"bēi zi",刺猬:"cì wei",麦子:"mài zi",队伍:"duì wu",知了:"zhī liǎo",鱼儿:"yú er",馄饨:"hún tun",灯笼:"dēng long",庄稼:"zhuāng jia",聪明:"cōng ming",镜子:"jìng zi",银子:"yín zi",盘子:"pán zi",了却:"liǎo què",力气:"lì qi",席子:"xí zi",林子:"lín zi",朝霞:"zhāo xiá",朝夕:"zhāo xī",朝气:"zhāo qì",翅膀:"chì bǎng",省长:"shěng zhǎng",臧否:"zāng pǐ",否泰:"pǐ tài",变得:"biàn de",丈夫:"zhàng fu",豆腐:"dòu fu",笔杆:"bǐ gǎn",枞阳:"zōng yáng",行人:"xíng rén",打着:"dǎ zhe",第一:"dì yī",万一:"wàn yī",之一:"zhī yī",得之:"dé zhī",统一:"tǒng yī",唯一:"wéi yī",专一:"zhuān yī",单一:"dān yī",如一:"rú yī",其一:"qí yī",合一:"hé yī",逐一:"zhú yī",周一:"zhōu yī",初一:"chū yī",研一:"yán yī",归一:"guī yī",假一:"jiǎ yī",闻一:"wén yī",了了:"liǎo liǎo",公了:"gōng liǎo",私了:"sī liǎo",一月:"yī yuè",一号:"yī hào",一级:"yī jí",一等:"yī děng",一哥:"yī gē",月一:"yuè yī",一一:"yī yī",二一:"èr yī",三一:"sān yī",四一:"sì yī",五一:"wǔ yī",六一:"liù yī",七一:"qī yī",八一:"bā yī",九一:"jiǔ yī","一〇":"yī líng",一零:"yī líng",一二:"yī èr",一三:"yī sān",一四:"yī sì",一五:"yī wǔ",一六:"yī liù",一七:"yī qī",一八:"yī bā",一九:"yī jiǔ",一又:"yī yòu",一饼:"yī bǐng",一楼:"yī lóu",为例:"wéi lì",为准:"wéi zhǔn",沧海:"cāng hǎi",难为:"nán wéi",责难:"zé nàn",患难:"huàn nàn",磨难:"mó nàn",大难:"dà nàn",刁难:"diāo nàn",殉难:"xùn nàn",落难:"luò nàn",罹难:"lí nàn",灾难:"zāi nàn",难民:"nàn mín",苦难:"kǔ nàn",危难:"wēi nàn",发难:"fā nàn",逃难:"táo nàn",避难:"bì nàn",遇难:"yù nàn",阻难:"zǔ nàn",厄难:"è nàn",徇难:"xùn nàn",空难:"kōng nàn",喜欢:"xǐ huan",朝朝:"zhāo zhāo",不行:"bù xíng",轧轧:"yà yà",弯曲:"wān qū",扭曲:"niǔ qū",曲直:"qū zhí",委曲:"wěi qū",酒曲:"jiǔ qū",曲径:"qū jìng",曲解:"qū jiě",歪曲:"wāi qū",曲线:"qū xiàn",曲阜:"qū fù",九曲:"jiǔ qū",曲折:"qū zhé",曲肱:"qū gōng",曲意:"qū yì",仡佬:"gē lǎo"},aae=Object.keys(gT).map(e=>({zh:e,pinyin:gT[e],probability:2e-8,length:2,priority:Zl.Normal,dict:Symbol("dict2")})),vT={为什么:"wèi shén me",实际上:"shí jì shang",检察长:"jiǎn chá zhǎng",干什么:"gàn shén me",这会儿:"zhè huì er",尽可能:"jǐn kě néng",董事长:"dǒng shì zhǎng",了不起:"liǎo bù qǐ",参谋长:"cān móu zhǎng",朝鲜族:"cháo xiǎn zú",海内外:"hǎi nèi wài",禁不住:"jīn bú zhù",柏拉图:"bó lā tú",不在乎:"bú zài hu",洛杉矶:"luò shān jī",有点儿:"yǒu diǎn er",迫击炮:"pǎi jī pào",不得了:"bù dé liǎo",马尾松:"mǎ wěi sōng",运输量:"yùn shū liàng",发脾气:"fā pí qi",士大夫:"shì dà fū",鸭绿江:"yā lù jiāng",压根儿:"yà gēn er",对得起:"duì de qǐ",那会儿:"nà huì er",自个儿:"zì gě er",物理量:"wù lǐ liàng",怎么着:"zěn me zhāo",明晃晃:"míng huǎng huǎng",节假日:"jié jià rì",心里话:"xīn lǐ huà",发行量:"fā xíng liàng",兴冲冲:"xìng chōng chōng",分子量:"fēn zǐ liàng",国子监:"guó zǐ jiàn",老大难:"lǎo dà nán",党内外:"dǎng nèi wài",这么着:"zhè me zhāo",少奶奶:"shào nǎi nai",暗地里:"àn dì lǐ",更年期:"gēng nián qī",工作量:"gōng zuò liàng",背地里:"bèi dì lǐ",山里红:"shān li hóng",好好儿:"hǎo hāo er",交响乐:"jiāo xiǎng yuè",好意思:"hǎo yì si",吐谷浑:"tǔ yù hún",没意思:"méi yì si",理发师:"lǐ fà shī",塔什干:"tǎ shí gān",充其量:"chōng qí liàng",靠得住:"kào de zhù",车行道:"chē xíng dào",人行道:"rén xíng dào",中郎将:"zhōng láng jiàng",照明弹:"zhào míng dàn",烟幕弹:"yān mù dàn",没奈何:"mò nài hé",乱哄哄:"luàn hōng hōng",惠更斯:"huì gēng sī",载重量:"zài zhòng liàng",瞧得起:"qiáo de qǐ",纪传体:"jì zhuàn tǐ",阿房宫:"ē páng gōng",卷心菜:"juǎn xīn cài",戏班子:"xì bān zi",过得去:"guò de qù",花岗石:"huā gāng shí",外甥女:"wài sheng nǚ",团团转:"tuán tuán zhuàn",大堡礁:"dà bǎo jiāo",燃烧弹:"rán shāo dàn",劳什子:"láo shí zi",摇滚乐:"yáo gǔn yuè",夹竹桃:"jiā zhú táo",闹哄哄:"nào hōng hōng",三连冠:"sān lián guàn",重头戏:"zhòng tóu xì",二人转:"èr rén zhuàn",节骨眼:"jiē gǔ yǎn",知识面:"zhī shi miàn",护士长:"hù shi zhǎng",信号弹:"xìn hào dàn",干电池:"gān diàn chí",枪杆子:"qiāng gǎn zi",哭丧棒:"kū sāng bàng",鼻咽癌:"bí yān ái",瓦岗军:"wǎ gāng jūn",买得起:"mǎi de qǐ",癞蛤蟆:"lài há ma",脊梁骨:"jǐ liang gǔ",子母弹:"zǐ mǔ dàn",开小差:"kāi xiǎo chāi",女强人:"nǚ qiáng rén",英雄传:"yīng xióng zhuàn",爵士乐:"jué shì yuè",说笑话:"shuō xiào hua",碰头会:"pèng tóu huì",玻璃钢:"bō li gāng",曳光弹:"yè guāng dàn",少林拳:"shào lín quán",咏叹调:"yǒng tàn diào",少先队:"shào xiān duì",灵长目:"líng zhǎng mù",对着干:"duì zhe gàn",蒙蒙亮:"méng méng liàng",软骨头:"ruǎn gǔ tou",铺盖卷:"pū gài juǎn",和稀泥:"huò xī ní",背黑锅:"bēi hēi guō",红彤彤:"hóng tōng tōng",武侯祠:"wǔ hóu cí",打哆嗦:"dǎ duō suo",户口簿:"hù kǒu bù",马尾藻:"mǎ wěi zǎo",夜猫子:"yè māo zi",打手势:"dǎ shǒu shì",龙王爷:"lóng wáng yé",气头上:"qì tóu shang",糊涂虫:"hú tu chóng",笔杆子:"bǐ gǎn zi",占便宜:"zhàn pián yi",打主意:"dǎ zhǔ yì",多弹头:"duō dàn tóu",露一手:"lòu yì shǒu",堰塞湖:"yàn sè hú",保得住:"bǎo de zhù",趵突泉:"bào tū quán",奥得河:"ào de hé",司务长:"sī wù zhǎng",禁不起:"jīn bù qǐ",什刹海:"shí chà hǎi",莲花落:"lián huā lào",见世面:"jiàn shì miàn",豁出去:"huō chū qù",电位差:"diàn wèi chā",挨个儿:"āi gè er",那阵儿:"nà zhèn er",肺活量:"fèi huó liàng",大师傅:"dà shī fu",掷弹筒:"zhì dàn tǒng",打呼噜:"dǎ hū lu",广渠门:"ān qú mén",未见得:"wèi jiàn dé",大婶儿:"dà shěn er",谈得来:"tán de lái",脚丫子:"jiǎo yā zi",空包弹:"kōng bāo dàn",窝里斗:"wō li dòu",弹着点:"dàn zhuó diǎn",个头儿:"gè tóu er",看得起:"kàn de qǐ",糊涂账:"hú tu zhàng",大猩猩:"dà xīng xing",禁得起:"jīn de qǐ",法相宗:"fǎ xiàng zōng",可怜相:"kě lián xiàng",吃得下:"chī de xià",汉堡包:"hàn bǎo bāo",闹嚷嚷:"nào rāng rāng",数来宝:"shǔ lái bǎo",合得来:"hé de lái",干性油:"gān xìng yóu",闷葫芦:"mèn hú lu",呱呱叫:"guā guā jiào",西洋参:"xī yáng shēn",林荫道:"lín yīn dào",拉家常:"lā jiā cháng",卷铺盖:"juǎn pū gài",过得硬:"guò de yìng",飞将军:"fēi jiāng jūn",挑大梁:"tiǎo dà liáng",哈巴狗:"hǎ ba gǒu",过家家:"guò jiā jiā",催泪弹:"cuī lèi dàn",雨夹雪:"yǔ jiā xuě",敲竹杠:"qiāo zhú gàng",列车长:"liè chē zhǎng",华达呢:"huá dá ní",犯得着:"fàn de zháo",土疙瘩:"tǔ gē da",煞风景:"shā fēng jǐng",轻量级:"qīng liàng jí",羞答答:"xiū dā dā",石子儿:"shí zǐ er",达姆弹:"dá mǔ dàn",科教片:"kē jiào piān",侃大山:"kǎn dà shān",丁点儿:"dīng diǎn er",吃得消:"chī de xiāo",捋虎须:"luō hǔ xū",高丽参:"gāo lí shēn",众生相:"zhòng shēng xiàng",咽峡炎:"yān xiá yán",禁得住:"jīn de zhù",吃得开:"chī de kāi",柞丝绸:"zuò sī chóu",应声虫:"yìng shēng chóng",数得着:"shǔ de zháo",傻劲儿:"shǎ jìn er",铅玻璃:"qiān bō li",可的松:"kě dì sōng",划得来:"huá de lái",晕乎乎:"yūn hū hū",屎壳郎:"shǐ ke làng",尥蹶子:"liào juě zi",藏红花:"zàng hóng huā",闷罐车:"mèn guàn chē",卡脖子:"qiǎ bó zi",红澄澄:"hóng deng deng",赶得及:"gǎn de jí",当间儿:"dāng jiàn er",露马脚:"lòu mǎ jiǎo",鸡内金:"jī nèi jīn",犯得上:"fàn de shàng",钉齿耙:"dīng chǐ bà",饱和点:"bǎo hé diǎn",龙爪槐:"lóng zhǎo huái",喝倒彩:"hè dào cǎi",定冠词:"dìng guàn cí",担担面:"dàn dan miàn",吃得住:"chī de zhù",爪尖儿:"zhuǎ jiān er",支着儿:"zhī zhāo er",折跟头:"zhē gēn tou",阴着儿:"yīn zhāo er",烟卷儿:"yān juǎn er",宣传弹:"xuān chuán dàn",信皮儿:"xìn pí er",弦切角:"xián qiē jiǎo",缩砂密:"sù shā mì",说得来:"shuō de lái",水漂儿:"shuǐ piāo er",耍笔杆:"shuǎ bǐ gǎn",数得上:"shǔ de shàng",数不着:"shǔ bù zháo",数不清:"shǔ bù qīng",什件儿:"shí jiàn er",生死簿:"shēng sǐ bù",扇风机:"shān fēng jī",撒呓挣:"sā yì zheng",日记簿:"rì jì bù",热得快:"rè de kuài",亲家公:"qìng jia gōng",奇函数:"jī hán shù",拍纸簿:"pāi zhǐ bù",努劲儿:"nǔ jìn er",泥娃娃:"ní wá wa",内切圆:"nèi qiē yuán",哪会儿:"nǎ huì er",闷头儿:"mēn tóu er",没谱儿:"méi pǔ er",铆劲儿:"mǎo jìn er",溜肩膀:"liū jiān bǎng",了望台:"liào wàng tái",老来少:"lǎo lái shào",坤角儿:"kūn jué er",考勤簿:"kǎo qín bù",卷笔刀:"juǎn bǐ dāo",进给量:"jìn jǐ liàng",划不来:"huá bù lái",汗褂儿:"hàn guà er",鼓囊囊:"gǔ nāng nāng",够劲儿:"gòu jìn er",公切线:"gōng qiē xiàn",搁得住:"gé de zhù",赶浪头:"gǎn làng tóu",赶得上:"gǎn de shàng",干酵母:"gān jiào mǔ",嘎渣儿:"gā zhā er",嘎嘣脆:"gā bēng cuì",对得住:"duì de zhù",逗闷子:"dòu mèn zi",顶呱呱:"dǐng guā guā",滴溜儿:"dī liù er",大轴子:"dà zhòu zi",打板子:"dǎ bǎn zi",寸劲儿:"cùn jìn er",醋劲儿:"cù jìn er",揣手儿:"chuāi shǒu er",冲劲儿:"chòng jìn er",吃得来:"chī de lái",不更事:"bù gēng shì",奔头儿:"bèn tou er",百夫长:"bǎi fū zhǎng",娃娃亲:"wá wa qīn",死劲儿:"sǐ jìn er",骨朵儿:"gū duǒ er",功劳簿:"gōng láo bù",都江堰:"dū jiāng yàn",一担水:"yí dàn shuǐ",否极泰:"pǐ jí tài",泰来否:"tài lái pǐ",咳特灵:"ké tè líng",开户行:"kāi hù háng",郦食其:"lì yì jī",花事了:"huā shì liǎo",一更更:"yì gēng gēng",一重山:"yì chóng shān",风一更:"fēng yì gēng",雪一更:"xuě yì gēng",归一码:"guī yì mǎ",星期一:"xīng qī yī",礼拜一:"lǐ bài yī",一季度:"yī jì dù",一月一:"yī yuè yī",一字马:"yī zì mǎ",一是一:"yī shì yī",一次方:"yī cì fāng",一阳指:"yī yáng zhǐ",一字决:"yī zì jué",一年级:"yī nián jí",一不做:"yī bú zuò",屈戌儿:"qū qu ér",难为水:"nán wéi shuǐ",难为情:"nán wéi qíng",行一行:"xíng yì háng",别别的:"biè bié de",干哪行:"gàn nǎ háng",干一行:"gàn yì háng",曲别针:"qū bié zhēn"},uae=Object.keys(vT).map(e=>({zh:e,pinyin:vT[e],probability:2e-8,length:3,priority:Zl.Normal,dict:Symbol("dict3")})),yT={成吉思汗:"chéng jí sī hán",四通八达:"sì tōng bā dá",一模一样:"yì mú yí yàng",青藏高原:"qīng zàng gāo yuán",阿弥陀佛:"ē mí tuó fó",解放思想:"jiè fàng sī xiǎng",所作所为:"suǒ zuò suǒ wéi",迷迷糊糊:"mí mí hu hū",荷枪实弹:"hè qiāng shí dàn",兴高采烈:"xìng gāo cǎi liè",无能为力:"wú néng wéi lì",布鲁塞尔:"bù lǔ sài ěr",为所欲为:"wéi suǒ yù wéi",克什米尔:"kè shí mǐ ěr",没完没了:"méi wán méi liǎo",不为人知:"bù wéi rén zhī",结结巴巴:"jiē jiē bā bā",前仆后继:"qián pū hòu jì",铺天盖地:"pū tiān gài dì",直截了当:"zhí jié liǎo dàng",供不应求:"gōng bú yìng qiú",御史大夫:"yù shǐ dà fū",不为瓦全:"bù wéi wǎ quán",不可收拾:"bù kě shōu shi",胡作非为:"hú zuò fēi wéi",分毫不差:"fēn háo bú chà",模模糊糊:"mó mó hu hū",不足为奇:"bù zú wéi qí",悄无声息:"qiǎo wú shēng xī",了如指掌:"liǎo rú zhǐ zhǎng",深恶痛绝:"shēn wù tòng jué",高高兴兴:"gāo gāo xìng xìng",唉声叹气:"āi shēng tàn qì",汉藏语系:"hàn zàng yǔ xì",处心积虑:"chǔ xīn jī lǜ",泣不成声:"qì bù chéng shēng",半夜三更:"bàn yè sān gēng",失魂落魄:"shī hún luò pò",二十八宿:"èr shí bā xiù",转来转去:"zhuàn lái zhuàn qù",数以万计:"shǔ yǐ wàn jì",相依为命:"xiāng yī wéi mìng",恋恋不舍:"liàn liàn bù shě",屈指可数:"qū zhǐ kě shǔ",神出鬼没:"shén chū guǐ mò",结结实实:"jiē jiē shí shí",有的放矢:"yǒu dì fàng shǐ",叽哩咕噜:"jī lǐ gū lū",调兵遣将:"diào bīng qiǎn jiàng",载歌载舞:"zài gē zài wǔ",转危为安:"zhuǎn wēi wéi ān",踏踏实实:"tā tā shi shí",桑给巴尔:"sāng jǐ bā ěr",装模作样:"zhuāng mú zuò yàng",见义勇为:"jiàn yì yǒng wéi",相差无几:"xiāng chā wú jǐ",叹为观止:"tàn wéi guān zhǐ",闷闷不乐:"mèn mèn bú lè",喜怒哀乐:"xǐ nù āi lè",鲜为人知:"xiǎn wéi rén zhī",张牙舞爪:"zhāng yá wǔ zhǎo",为非作歹:"wéi fēi zuò dǎi",含糊其辞:"hán hú qí cí",疲于奔命:"pí yú bēn mìng",勉为其难:"miǎn wéi qí nán",依依不舍:"yī yī bù shě",顶头上司:"dǐng tóu shàng si",不着边际:"bù zhuó biān jì",大模大样:"dà mú dà yàng",寻欢作乐:"xún huān zuò lè",一走了之:"yì zǒu liǎo zhī",字里行间:"zì lǐ háng jiān",含含糊糊:"hán hán hu hū",恰如其分:"qià rú qí fèn",破涕为笑:"pò tì wéi xiào",深更半夜:"shēn gēng bàn yè",千差万别:"qiān chā wàn bié",数不胜数:"shǔ bú shèng shǔ",据为己有:"jù wéi jǐ yǒu",天旋地转:"tiān xuán dì zhuàn",养尊处优:"yǎng zūn chǔ yōu",玻璃纤维:"bō li xiān wéi",吵吵闹闹:"chāo chao nào nào",晕头转向:"yūn tóu zhuàn xiàng",土生土长:"tǔ shēng tǔ zhǎng",宁死不屈:"nìng sǐ bù qū",不省人事:"bù xǐng rén shì",尽力而为:"jìn lì ér wéi",精明强干:"jīng míng qiáng gàn",唠唠叨叨:"láo lao dāo dāo",叽叽喳喳:"jī ji zhā zhā",功不可没:"gōng bù kě mò",锲而不舍:"qiè ér bù shě",排忧解难:"pái yōu jiě nàn",稀里糊涂:"xī li hú tú",各有所长:"gè yǒu suǒ cháng",的的确确:"dí dí què què",哄堂大笑:"hōng táng dà xiào",听而不闻:"tīng ér bù wén",刀耕火种:"dāo gēng huǒ zhòng",内分泌腺:"nèi fèn mì xiàn",化险为夷:"huà xiǎn wéi yí",百发百中:"bǎi fā bǎi zhòng",重见天日:"chóng jiàn tiān rì",反败为胜:"fǎn bài wéi shèng",一了百了:"yì liǎo bǎi liǎo",大大咧咧:"dà da liē liē",心急火燎:"xīn jí huǒ liǎo",粗心大意:"cū xīn dà yi",鸡皮疙瘩:"jī pí gē da",夷为平地:"yí wéi píng dì",日积月累:"rì jī yuè lěi",设身处地:"shè shēn chǔ dì",投其所好:"tóu qí suǒ hào",间不容发:"jiān bù róng fà",人满为患:"rén mǎn wéi huàn",穷追不舍:"qióng zhuī bù shě",为时已晚:"wéi shí yǐ wǎn",如数家珍:"rú shǔ jiā zhēn",心里有数:"xīn lǐ yǒu shù",以牙还牙:"yǐ yá huán yá",神不守舍:"shén bù shǒu shě",孟什维克:"mèng shí wéi kè",各自为战:"gè zì wéi zhàn",怨声载道:"yuàn shēng zài dào",救苦救难:"jiù kǔ jiù nàn",好好先生:"hǎo hǎo xiān sheng",怪模怪样:"guài mú guài yàng",抛头露面:"pāo tóu lù miàn",游手好闲:"yóu shǒu hào xián",无所不为:"wú suǒ bù wéi",调虎离山:"diào hǔ lí shān",步步为营:"bù bù wéi yíng",好大喜功:"hào dà xǐ gōng",众矢之的:"zhòng shǐ zhī dì",长生不死:"cháng shēng bù sǐ",蔚为壮观:"wèi wéi zhuàng guān",不可胜数:"bù kě shèng shǔ",鬼使神差:"guǐ shǐ shén chāi",洁身自好:"jié shēn zì hào",敢作敢为:"gǎn zuò gǎn wéi",茅塞顿开:"máo sè dùn kāi",走马换将:"zǒu mǎ huàn jiàng",为时过早:"wéi shí guò zǎo",为人师表:"wéi rén shī biǎo",阴差阳错:"yīn chā yáng cuò",油腔滑调:"yóu qiāng huá diào",重蹈覆辙:"chóng dǎo fù zhé",骂骂咧咧:"mà ma liē liē",絮絮叨叨:"xù xù dāo dāo",如履薄冰:"rú lǚ bó bīng",损兵折将:"sǔn bīng zhé jiàng",拐弯抹角:"guǎi wān mò jiǎo",像模像样:"xiàng mú xiàng yàng",供过于求:"gōng guò yú qiú",开花结果:"kāi huā jiē guǒ",仔仔细细:"zǐ zǐ xì xì",川藏公路:"chuān zàng gōng lù",河北梆子:"hé běi bāng zi",长年累月:"cháng nián lěi yuè",正儿八经:"zhèng er bā jīng",不识抬举:"bù shí tái ju",重振旗鼓:"chóng zhèn qí gǔ",气息奄奄:"qì xī yān yān",紧追不舍:"jǐn zhuī bù shě",服服帖帖:"fú fu tiē tiē",强词夺理:"qiǎng cí duó lǐ",噼里啪啦:"pī li pā lā",人才济济:"rén cái jǐ jǐ",发人深省:"fā rén shēn xǐng",不足为凭:"bù zú wéi píng",为富不仁:"wéi fù bù rén",连篇累牍:"lián piān lěi dú",呼天抢地:"hū tiān qiāng dì",落落大方:"luò luò dà fāng",自吹自擂:"zì chuī zì léi",乐善好施:"lè shàn hào shī",以攻为守:"yǐ gōng wéi shǒu",磨磨蹭蹭:"mó mó cèng cèng",削铁如泥:"xuē tiě rú ní",助纣为虐:"zhù zhòu wéi nüè",以退为进:"yǐ tuì wéi jìn",嘁嘁喳喳:"qī qī chā chā",枪林弹雨:"qiāng lín dàn yǔ",令人发指:"lìng rén fà zhǐ",转败为胜:"zhuǎn bài wéi shèng",转弯抹角:"zhuǎn wān mò jiǎo",在劫难逃:"zài jié nán táo",正当防卫:"zhèng dàng fáng wèi",不足为怪:"bù zú wéi guài",难兄难弟:"nàn xiōng nàn dì",咿咿呀呀:"yī yī yā yā",弹尽粮绝:"dàn jìn liáng jué",阿谀奉承:"ē yú fèng chéng",稀里哗啦:"xī li huā lā",返老还童:"fǎn lǎo huán tóng",好高骛远:"hào gāo wù yuǎn",鹿死谁手:"lù sǐ shéi shǒu",差强人意:"chā qiáng rén yì",大吹大擂:"dà chuī dà léi",成家立业:"chéng jiā lì yè",自怨自艾:"zì yuàn zì yì",负债累累:"fù zhài lěi lěi",古为今用:"gǔ wéi jīn yòng",入土为安:"rù tǔ wéi ān",下不为例:"xià bù wéi lì",一哄而上:"yì hōng ér shàng",没头苍蝇:"méi tóu cāng ying",天差地远:"tiān chā dì yuǎn",风卷残云:"fēng juǎn cán yún",多灾多难:"duō zāi duō nàn",乳臭未干:"rǔ xiù wèi gān",行家里手:"háng jiā lǐ shǒu",狼狈为奸:"láng bèi wéi jiān",处变不惊:"chǔ biàn bù jīng",一唱一和:"yí chàng yí hè",一念之差:"yí niàn zhī chā",金蝉脱壳:"jīn chán tuō qiào",滴滴答答:"dī dī dā dā",硕果累累:"shuò guǒ léi léi",好整以暇:"hào zhěng yǐ xiá",红得发紫:"hóng de fā zǐ",传为美谈:"chuán wéi měi tán",富商大贾:"fù shāng dà gǔ",四海为家:"sì hǎi wéi jiā",了若指掌:"liǎo ruò zhǐ zhǎng",大有可为:"dà yǒu kě wéi",出头露面:"chū tóu lù miàn",鼓鼓囊囊:"gǔ gu nāng nāng",窗明几净:"chuāng míng jī jìng",泰然处之:"tài rán chǔ zhī",怒发冲冠:"nù fà chōng guān",有机玻璃:"yǒu jī bō li",骨头架子:"gǔ tou jià zi",义薄云天:"yì bó yún tiān",一丁点儿:"yī dīng diǎn er",时来运转:"shí lái yùn zhuǎn",陈词滥调:"chén cí làn diào",化整为零:"huà zhěng wéi líng",火烧火燎:"huǒ shāo huǒ liǎo",干脆利索:"gàn cuì lì suǒ",吊儿郎当:"diào er láng dāng",广种薄收:"guǎng zhòng bó shōu",种瓜得瓜:"zhòng guā dé guā",种豆得豆:"zhòng dòu dé dòu",难舍难分:"nán shě nán fēn",歃血为盟:"shà xuè wéi méng",奋发有为:"fèn fā yǒu wéi",阴错阳差:"yīn cuò yáng chā",东躲西藏:"dōng duǒ xī cáng",烟熏火燎:"yān xūn huǒ liǎo",钻牛角尖:"zuān niú jiǎo jiān",乔装打扮:"qiáo zhuāng dǎ bàn",改弦更张:"gǎi xián gēng zhāng",河南梆子:"hé nán bāng zi",好吃懒做:"hào chī lǎn zuò",何乐不为:"hé lè bù wéi",大出风头:"dà chū fēng tóu",攻城掠地:"gōng chéng lüè dì",漂漂亮亮:"piào piào liang liang",折衷主义:"zhé zhōng zhǔ yì",大马哈鱼:"dà mǎ hǎ yú",绿树成荫:"lǜ shù chéng yīn",率先垂范:"shuài xiān chuí fàn",家长里短:"jiā cháng lǐ duǎn",宽大为怀:"kuān dà wéi huái",左膀右臂:"zuǒ bǎng yòu bì",一笑了之:"yí xiào liǎo zhī",天下为公:"tiān xià wéi gōng",还我河山:"huán wǒ hé shān",何足为奇:"hé zú wéi qí",好自为之:"hǎo zì wéi zhī",风姿绰约:"fēng zī chuò yuē",大雨滂沱:"dà yǔ pāng tuó",传为佳话:"chuán wéi jiā huà",吃里扒外:"chī lǐ pá wài",重操旧业:"chóng cāo jiù yè",小家子气:"xiǎo jiā zi qì",少不更事:"shào bù gēng shì",难分难舍:"nán fēn nán shě",添砖加瓦:"tiān zhuān jiā wǎ",是非分明:"shì fēi fēn míng",舍我其谁:"shě wǒ qí shuí",偏听偏信:"piān tīng piān xìn",量入为出:"liàng rù wéi chū",降龙伏虎:"xiáng lóng fú hǔ",钢化玻璃:"gāng huà bō li",正中下怀:"zhèng zhòng xià huái",以身许国:"yǐ shēn xǔ guó",一语中的:"yì yǔ zhòng dì",丧魂落魄:"sàng hún luò pò",三座大山:"sān zuò dà shān",济济一堂:"jǐ jǐ yì táng",好事之徒:"hào shì zhī tú",干净利索:"gàn jìng lì suǒ",出将入相:"chū jiàng rù xiàng",袅袅娜娜:"niǎo niǎo nuó nuó",狐狸尾巴:"hú li wěi ba",好逸恶劳:"hào yì wù láo",大而无当:"dà ér wú dàng",打马虎眼:"dǎ mǎ hu yǎn",板上钉钉:"bǎn shàng dìng dīng",吆五喝六:"yāo wǔ hè liù",虾兵蟹将:"xiā bīng xiè jiàng",水调歌头:"shuǐ diào gē tóu",数典忘祖:"shǔ diǎn wàng zǔ",人事不省:"rén shì bù xǐng",曲高和寡:"qǔ gāo hè guǎ",屡教不改:"lǚ jiào bù gǎi",互为因果:"hù wéi yīn guǒ",互为表里:"hù wéi biǎo lǐ",厚此薄彼:"hòu cǐ bó bǐ",过关斩将:"guò guān zhǎn jiàng",疙疙瘩瘩:"gē ge dā dā",大腹便便:"dà fù pián pián",走为上策:"zǒu wéi shàng cè",冤家对头:"yuān jia duì tóu",有隙可乘:"yǒu xì kě chèng",一鳞半爪:"yì lín bàn zhǎo",片言只语:"piàn yán zhǐ yǔ",开花结实:"kāi huā jié shí",经年累月:"jīng nián lěi yuè",含糊其词:"hán hú qí cí",寡廉鲜耻:"guǎ lián xiǎn chǐ",成年累月:"chéng nián lěi yuè",不徇私情:"bú xùn sī qíng",不当人子:"bù dāng rén zǐ",膀大腰圆:"bǎng dà yāo yuán",指腹为婚:"zhǐ fù wéi hūn",这么点儿:"zhè me diǎn er",意兴索然:"yì xīng suǒ rán",绣花枕头:"xiù huā zhěn tou",无的放矢:"wú dì fàng shǐ",望闻问切:"wàng wén wèn qiè",舍己为人:"shě jǐ wèi rén",穷年累月:"qióng nián lěi yuè",排难解纷:"pái nàn jiě fēn",处之泰然:"chǔ zhī tài rán",指鹿为马:"zhǐ lù wéi mǎ",危如累卵:"wēi rú lěi luǎn",天兵天将:"tiān bīng tiān jiàng",舍近求远:"shě jìn qiú yuǎn",南腔北调:"nán qiāng běi diào",苦中作乐:"kǔ zhōng zuò lè",厚积薄发:"hòu jī bó fā",臭味相投:"xiù wèi xiāng tóu",长幼有序:"zhǎng yòu yǒu xù",逼良为娼:"bī liáng wéi chāng",悲悲切切:"bēi bēi qiè qiē",败军之将:"bài jūn zhī jiàng",欺行霸市:"qī háng bà shì",削足适履:"xuē zú shì lǚ",先睹为快:"xiān dǔ wéi kuài",啼饥号寒:"tí jī háo hán",疏不间亲:"shū bú jiàn qīn",神差鬼使:"shén chāi guǐ shǐ",敲敲打打:"qiāo qiāo dǎ dǎ",平铺直叙:"píng pū zhí xù",没头没尾:"méi tóu mò wěi",寥寥可数:"liáo liáo kě shǔ",哼哈二将:"hēng hā èr jiàng",鹤发童颜:"hè fà tóng yán",各奔前程:"gè bèn qián chéng",弹无虚发:"dàn wú xū fā",大人先生:"dà rén xiān sheng",与民更始:"yǔ mín gēng shǐ",树碑立传:"shù bēi lì zhuàn",是非得失:"shì fēi dé shī",实逼处此:"shí bī chǔ cǐ",塞翁失马:"sài wēng shī mǎ",日薄西山:"rì bó xī shān",切身体会:"qiè shēn tǐ huì",片言只字:"piàn yán zhǐ zì",跑马卖解:"pǎo mǎ mài xiè",宁折不弯:"nìng zhé bù wān",零零散散:"líng líng sǎn sǎn",量体裁衣:"liàng tǐ cái yī",连中三元:"lián zhòng sān yuán",礼崩乐坏:"lǐ bēng yuè huài",不为已甚:"bù wéi yǐ shèn",转悲为喜:"zhuǎn bēi wéi xǐ",以眼还眼:"yǐ yǎn huán yǎn",蔚为大观:"wèi wéi dà guān",未为不可:"wèi wéi bù kě",童颜鹤发:"tóng yán hè fà",朋比为奸:"péng bǐ wéi jiān",莫此为甚:"mò cǐ wéi shèn",夹枪带棒:"jiā qiāng dài bàng",富商巨贾:"fù shāng jù jiǎ",淡然处之:"dàn rán chǔ zhī",箪食壶浆:"dān shí hú jiāng",创巨痛深:"chuāng jù tòng shēn",草长莺飞:"cǎo zhǎng yīng fēi",坐视不救:"zuò shī bú jiù",以己度人:"yǐ jǐ duó rén",随行就市:"suí háng jiù shì",文以载道:"wén yǐ zài dào",文不对题:"wén bú duì tí",铁板钉钉:"tiě bǎn dìng dīng",身体发肤:"shēn tǐ fà fū",缺吃少穿:"quē chī shǎo chuān",目无尊长:"mù wú zūn zhǎng",吉人天相:"jí rén tiān xiàng",毁家纾难:"huǐ jiā shū nàn",钢筋铁骨:"gāng jīn tiě gǔ",丢卒保车:"diū zú bǎo jū",丢三落四:"diū sān là sì",闭目塞听:"bì mù sè tīng",削尖脑袋:"xuē jiān nǎo dài",为非作恶:"wéi fēi zuò è",人才难得:"rén cái nán dé",情非得已:"qíng fēi dé yǐ",切中要害:"qiè zhòng yào hài",火急火燎:"huǒ jí huǒ liǎo",画地为牢:"huà dì wéi láo",好酒贪杯:"hào jiǔ tān bēi",长歌当哭:"cháng gē dàng kū",载沉载浮:"zài chén zài fú",遇难呈祥:"yù nàn chéng xiáng",榆木疙瘩:"yú mù gē da",以邻为壑:"yǐ lín wéi hè",洋为中用:"yáng wéi zhōng yòng",言为心声:"yán wéi xīn shēng",言必有中:"yán bì yǒu zhòng",图穷匕见:"tú qióng bǐ xiàn",滂沱大雨:"páng tuó dà yǔ",目不暇给:"mù bù xiá jǐ",量才录用:"liàng cái lù yòng",教学相长:"jiào xué xiāng zhǎng",悔不当初:"huǐ bù dāng chū",呼幺喝六:"hū yāo hè liù",不足为训:"bù zú wéi xùn",不拘形迹:"bù jū xíng jī",傍若无人:"páng ruò wú rén",罪责难逃:"zuì zé nán táo",自我吹嘘:"zì wǒ chuī xū",转祸为福:"zhuǎn huò wéi fú",勇冠三军:"yǒng guàn sān jūn",易地而处:"yì dì ér chǔ",卸磨杀驴:"xiè mò shā lǘ",玩儿不转:"wán ér bú zhuàn",天道好还:"tiān dào hǎo huán",身单力薄:"shēn dān lì bó",撒豆成兵:"sǎ dòu chéng bīng",片纸只字:"piàn zhǐ zhī zì",宁缺毋滥:"nìng quē wú làn",没没无闻:"mò mò wú wén",量力而为:"liàng lì ér wéi",历历可数:"lì lì kě shǔ",口碑载道:"kǒu bēi zài dào",君子好逑:"jūn zǐ hǎo qiú",好为人师:"hào wéi rén shī",豪商巨贾:"háo shāng jù jiǎ",各有所好:"gè yǒu suǒ hào",度德量力:"duó dé liàng lì",指天为誓:"zhǐ tiān wéi shì",逸兴遄飞:"yì xìng chuán fēi",心宽体胖:"xīn kuān tǐ pán",为德不卒:"wéi dé bù zú",天下为家:"tiān xià wéi jiā",视为畏途:"shì wéi wèi tú",三灾八难:"sān zāi bā nàn",沐猴而冠:"mù hóu ér guàn",哩哩啦啦:"lī li lā lā",见缝就钻:"jiàn fèng jiù zuān",夹层玻璃:"jiā céng bō li",急公好义:"jí gōng hào yì",积年累月:"jī nián lěi yuè",划地为牢:"huá dì wéi láo",更名改姓:"gēng míng gǎi xìng",奉为圭臬:"fèng wéi guī niè",多难兴邦:"duō nàn xīng bāng",不破不立:"bú pò bú lì",坐地自划:"zuò dì zì huá",坐不重席:"zuò bù chóng xí",坐不窥堂:"zuò bù kuī táng",作嫁衣裳:"zuò jià yī shang",左枝右梧:"zuǒ zhī yòu wú",左宜右有:"zuǒ yí yòu yǒu",钻头觅缝:"zuān tóu mì fèng",钻天打洞:"zuān tiān dǎ dòng",钻皮出羽:"zuān pí chū yǔ",钻火得冰:"zuān huǒ dé bīng",钻洞觅缝:"zuàn dòng mì féng",钻冰求火:"zuān bīng qiú huǒ",子为父隐:"zǐ wéi fù yǐn",擢发难数:"zhuó fà nán shǔ",着人先鞭:"zhuó rén xiān biān",斫雕为朴:"zhuó diāo wéi pǔ",锥处囊中:"zhuī chǔ náng zhōng",椎心饮泣:"chuí xīn yǐn qì",椎心泣血:"chuí xīn qì xuè",椎牛飨士:"chuí niú xiǎng shì",椎牛歃血:"chuí niú shà xuè",椎牛发冢:"chuí niú fà zhǒng",椎埋屠狗:"chuí mái tú gǒu",椎埋狗窃:"chuí mái gǒu qiè",壮发冲冠:"zhuàng fā chōng guàn",庄严宝相:"zhuāng yán bǎo xiàng",转愁为喜:"zhuǎn chóu wéi xǐ",转嗔为喜:"zhuǎn chēn wéi xǐ",拽巷啰街:"zhuài xiàng luó jiē",拽耙扶犁:"zhuāi pá fú lí",拽布拖麻:"zhuài bù tuō má",箸长碗短:"zhù cháng wǎn duǎn",铸剑为犁:"zhù jiàn wéi lí",杼柚其空:"zhù yòu qí kōng",杼柚空虚:"zhù yòu kōng xū",助天为虐:"zhù tiān wéi nüè",属垣有耳:"zhǔ yuán yǒu ěr",属毛离里:"zhǔ máo lí lǐ",属辞比事:"zhǔ cí bǐ shì",逐物不还:"zhú wù bù huán",铢量寸度:"zhū liáng cùn duó",铢两悉称:"zhū liǎng xī chèn",侏儒观戏:"zhū rú guān xì",朱轓皁盖:"zhū fān zào gài",昼度夜思:"zhòu duó yè sī",诪张为幻:"zhōu zhāng wéi huàn",重明继焰:"chóng míng jì yàn",众啄同音:"zhòng zhuó tóng yīn",众毛攒裘:"zhòng máo cuán qiú",众好众恶:"zhòng hào zhòng wù",擿埴索涂:"zhāi zhí suǒ tú",稚齿婑媠:"zhì chǐ wǒ tuó",至当不易:"zhì dàng bú yì",指皂为白:"zhǐ zào wéi bái",指雁为羹:"zhǐ yàn wéi gēng",指树为姓:"zhǐ shù wéi xìng",指山说磨:"zhǐ shān shuō mò",止戈为武:"zhǐ gē wéi wǔ",枝干相持:"zhī gàn xiāng chí",枝大于本:"zh dà yú běn",支吾其词:"zhī wú qí cí",正身率下:"zhèng shēn shuài xià",正冠李下:"zhèng guàn lǐ xià",整冠纳履:"zhěng guān nà lǚ",整躬率物:"zhěng gōng shuài wù",整顿干坤:"zhěng dùn gàn kūn",针头削铁:"zhēn tóu xuē tiě",贞松劲柏:"zhēn sōng jìng bǎi",赭衣塞路:"zhě yī sè lù",折箭为誓:"shé jiàn wéi shì",折而族之:"zhé ér zú zhī",昭德塞违:"zhāo dé sè wéi",章句小儒:"zhāng jù xiǎo rú",湛恩汪濊:"zhàn ēn wāng huì",占风望气:"zhān fēng wàng qì",斩将搴旗:"zhǎn jiàng qiān qí",曾母投杼:"zēng mǔ tóu zhù",曾参杀人:"zēng shēn shā rén",造谣中伤:"zào yáo zhòng shāng",早占勿药:"zǎo zhān wù yào",凿龟数策:"záo guī shǔ cè",攒三聚五:"cuán sān jù wǔ",攒眉蹙额:"cuán mei cù é",攒零合整:"cuán líng hé zhěng",攒锋聚镝:"cuán fēng jù dí",载笑载言:"zài xiào zài yán",载酒问字:"zài jiǔ wèn zì",殒身不恤:"yǔn shēn bú xù",云舒霞卷:"yún shū xiá juǎn",月中折桂:"yuè zhōng shé guì",月落参横:"yuè luò shēn héng",鬻驽窃价:"yù nú qiè jià",鬻鸡为凤:"yù jī wéi fèng",遇难成祥:"yù nàn chéng xiáng",郁郁累累:"yù yù lěi lěi",玉卮无当:"yù zhī wú dàng",语笑喧阗:"yǔ xiào xuān tián",与世沉浮:"yǔ shì chén fú",与时消息:"yǔ shí xiāo xi",逾墙钻隙:"yú qiáng zuān xì",渔夺侵牟:"yú duó qīn móu",杅穿皮蠹:"yú chuān pí dù",余勇可贾:"yú yǒng kě gǔ",予智予雄:"yú zhì yú xióng",予取予求:"yú qǔ yú qiú",于家为国:"yú jiā wéi guó",有借无还:"yǒu jiè wú huán",有加无已:"yǒu jiā wú yǐ",有国难投:"yǒu guó nán tóu",游必有方:"yóu bì yǒu fāng",油干灯尽:"yóu gàn dēng jìn",尤云殢雨:"yóu yún tì yǔ",庸中皦皦:"yōng zhōng jiǎo jiǎo",郢书燕说:"yǐng shū yān shuō",营蝇斐锦:"yíng yíng fēi jǐn",鹰心雁爪:"yīng xīn yàn zhǎo",莺吟燕儛:"yīng yín yàn wǔ",应天顺时:"yīng tiān shùn shí",印累绶若:"yìn léi shòu ruò",隐占身体:"yǐn zhàn shēn tǐ",饮犊上流:"yìn dú shàng liú",引绳切墨:"yǐn shéng qiē mò",龈齿弹舌:"yín chǐ dàn shé",因缘为市:"yīn yuán wéi shì",因树为屋:"yīn shù wéi wū",溢美溢恶:"yì měi yì wù",抑塞磊落:"yì sè lěi luò",倚闾望切:"yǐ lǘ wàng qiē",以意为之:"yǐ yì wéi zhī",以言为讳:"yǐ yán wéi huì",以疏间亲:"yǐ shū jiàn qīn",以水济水:"yǐ shuǐ jǐ shuǐ",以书为御:"yǐ shū wéi yù",以守为攻:"yǐ shǒu wéi gōng",以升量石:"yǐ shēng liáng dàn",以慎为键:"yǐ shèn wéi jiàn",以筌为鱼:"yǐ quán wéi yú",以利累形:"yǐ lì lěi xíng",以毁为罚:"yǐ huǐ wéi fá",以黑为白:"yǐ hēi wéi bái",以规为瑱:"yǐ guī wéi tiàn",以古为鉴:"yǐ gǔ wéi jiàn",以宫笑角:"yǐ gōng xiào jué",以法为教:"yǐ fǎ wéi jiào",以大恶细:"yǐ dà wù xì",遗世忘累:"yí shì wàng lěi",遗寝载怀:"yí qǐn zài huái",移的就箭:"yí dì jiù jiàn",依头缕当:"yī tóu lǚ dàng",衣租食税:"yì zū shí shuì",衣轻乘肥:"yì qīng chéng féi",衣裳之会:"yī shang zhī huì",衣单食薄:"yī dān shí bó",一还一报:"yì huán yí bào",叶公好龙:"yè gōng hào lóng",野调无腔:"yě diào wú qiāng",瑶池女使:"yáo chí nǚ shǐ",幺麽小丑:"yāo mó xiǎo chǒu",养精畜锐:"yǎng jīng xù ruì",卬首信眉:"áng shǒu shēn méi",洋洋纚纚:"yáng yáng sǎ sǎ",羊羔美酒:"yáng gāo měi jiǔ",扬风扢雅:"yáng fēng jié yǎ",燕昭市骏:"yān zhāo shì jùn",燕昭好马:"yān zhāo hǎo mǎ",燕石妄珍:"yān shí wàng zhēn",燕骏千金:"yān jùn qiān jīn",燕金募秀:"yān jīn mù xiù",燕驾越毂:"yān jià yuè gǔ",燕歌赵舞:"yān gē zhào wǔ",燕岱之石:"yān dài zhī shí",燕处危巢:"yàn chǔ wēi cháo",掞藻飞声:"shàn zǎo fēi shēng",偃革为轩:"yǎn gé wéi xuān",妍蚩好恶:"yán chī hǎo è",压良为贱:"yā liáng wéi jiàn",搀行夺市:"chān háng duó shì",泣数行下:"qì shù háng xià",当行出色:"dāng háng chū sè",秀出班行:"xiù chū bān háng",儿女成行:"ér nǚ chéng háng",大行大市:"dà háng dà shì",寻行数墨:"xún háng shǔ mò",埙篪相和:"xūn chí xiāng hè",血债累累:"xuè zhài lěi lěi",炫玉贾石:"xuàn yù gǔ shí",炫石为玉:"xuàn shí wéi yù",悬石程书:"xuán dàn chéng shū",悬狟素飡:"xuán huán sù cān",悬龟系鱼:"xuán guī xì yú",揎拳捋袖:"xuān quán luō xiù",轩鹤冠猴:"xuān hè guàn hóu",畜妻养子:"xù qī yǎng zǐ",羞人答答:"xiū rén dā dā",修鳞养爪:"xiū lín yǎng zhǎo",熊据虎跱:"xióng jù hǔ zhì",兄死弟及:"xiōng sǐ dì jí",腥闻在上:"xīng wén zài shàng",兴文匽武:"xīng wén yǎn wǔ",兴观群怨:"xìng guān qún yuàn",兴高彩烈:"xìng gāo cǎi liè",心手相应:"xīn shǒu xiāng yìng",心口相应:"xīn kǒu xiāng yīng",挟势弄权:"xié shì nòng quán",胁肩累足:"xié jiān lěi zú",校短量长:"jiào duǎn liáng cháng",小眼薄皮:"xiǎo yǎn bó pí",硝云弹雨:"xiāo yún dàn yǔ",鸮鸣鼠暴:"xiāo míng shǔ bào",削株掘根:"xuē zhū jué gēn",削铁无声:"xuē tiě wú shēng",削职为民:"xuē zhí wéi mín",削木为吏:"xuē mù wéi lì",想望风褱:"xiǎng wàng fēng huái",香培玉琢:"xiang pei yu zhuó",相鼠有皮:"xiàng shǔ yǒu pí",相时而动:"xiàng shí ér dòng",相切相磋:"xiāng qiē xiāng cuō",相女配夫:"xiàng nǚ pèi fū",相门有相:"xiàng mén yǒu xiàng",挦章撦句:"xián zhāng chě jù",先我着鞭:"xiān wǒ zhuó biān",习焉不察:"xí yān bù chá",歙漆阿胶:"shè qī ē jiāo",晰毛辨发:"xī máo biàn fà",悉索薄赋:"xī suǒ bó fù",雾鳞云爪:"wù lín yún zhǎo",物稀为贵:"wù xī wéi guì",碔砆混玉:"wǔ fū hùn yù",武断专横:"wǔ duàn zhuān héng",五石六鹢:"wǔ shí liù yì",五色相宣:"wǔ sè xiāng xuān",五侯七贵:"wǔ hóu qī guì",五侯蜡烛:"wǔ hòu là zhú",五羖大夫:"wǔ gǔ dà fū",吾自有处:"wú zì yǒu chǔ",无下箸处:"wú xià zhù chǔ",无伤无臭:"wú shāng wú xiù",无能为役:"wú néng wéi yì",无寇暴死:"wú kòu bào sǐ",无孔不钻:"wú kǒng bú zuàn",无间可乘:"wú jiān kě chéng",无间冬夏:"wú jiān dōng xià",无恶不为:"wú è bù wéi",无动为大:"wú dòng wéi dà",诬良为盗:"wū liáng wéi dào",握拳透爪:"wò quán tòu zhǎo",文武差事:"wén wǔ chāi shì",委委佗佗:"wēi wēi tuó tuó",惟日为岁:"wéi rì wéi suì",帷薄不修:"wéi bó bù xiū",为善最乐:"wéi shàn zuì lè",为山止篑:"wéi shān zhǐ kuì",为仁不富:"wéi rén bú fù",为裘为箕:"wéi qiú wéi jī",为民父母:"wéi mín fù mǔ",为虺弗摧:"wéi huǐ fú cuī",为好成歉:"wéi hǎo chéng qiàn",为鬼为蜮:"wéi guǐ wéi yù",望风响应:"wàng fēng xiǎng yīng",望尘僄声:"wàng chén piào shēng",往渚还汀:"wǎng zhǔ huán tīng",王贡弹冠:"wáng gòng dàn guàn",亡国大夫:"wáng guó dà fū",万贯家私:"wàn guàn jiā sī",晚食当肉:"wǎn shí dàng ròu",晚节不保:"wǎn jié bù bǎo",玩岁愒时:"wán suì kài shí",蛙蟆胜负:"wā má shèng fù",吞言咽理:"tūn yán yàn lǐ",颓垣断堑:"tuí yuán duàn qiàn",推干就湿:"tuī gàn jiù shī",剸繁决剧:"tuán fán jué jù",团头聚面:"tuán tóu jù miàn",兔丝燕麦:"tù sī yàn mài",兔头麞脑:"tù tóu zhāng nǎo",兔葵燕麦:"tù kuí yàn mài",吐哺握发:"tǔ bǔ wò fà",投传而去:"tóu zhuàn ér qù",头没杯案:"tóu mò bēi àn",头昏脑闷:"tóu hūn nǎo mèn",头会箕敛:"tóu kuài jī liǎn",头出头没:"tóu chū tóu mò",痛自创艾:"tòng zì chuāng yì",同恶相助:"tóng wù xiāng zhù",同恶相恤:"tóng wù xiāng xù",痌瘝在抱:"tōng guān zài bào",通文调武:"tōng wén diào wǔ",停留长智:"tíng liú zhǎng zhì",铁树开华:"tiě shù kāi huā",条贯部分:"tiáo guàn bù fēn",挑牙料唇:"tiǎo yá liào chún",挑么挑六:"tiāo yāo tiāo liù",挑唇料嘴:"tiǎo chún liào zuǐ",恬不为意:"tián bù wéi yì",恬不为怪:"tián bù wéi guài",天下为笼:"tiān xià wéi lóng",天台路迷:"tiān tái lù mí",天年不遂:"tiān nián bú suì",探囊胠箧:"tàn náng qū qiè",谭言微中:"tán yán wēi zhòng",谈言微中:"tán yán wēi zhòng",狧穅及米:"shì kāng jí mǐ",随物应机:"suí wù yīng jī",搜岩采干:"sōu yán cǎi gàn",宋斤鲁削:"sòng jīn lǔ xuē",松筠之节:"sōng yún zhī jié",四亭八当:"sì tíng bā dàng",四马攒蹄:"sì mǎ cuán tí",四不拗六:"sì bú niù liù",思所逐之:"sī suǒ zhú zhī",丝恩发怨:"sī ēn fà yuàn",硕望宿德:"shuò wàng xiǔ dé",铄古切今:"shuò gǔ qiē jīn",顺风而呼:"shùn fēng ér hū",顺风吹火:"shùn fēng chuī huǒ",水中著盐:"shuǐ zhōng zhuó yán",双柑斗酒:"shuāng gān dǒu jiǔ",数米而炊:"shǔ mǐ ér chuī",数米量柴:"shǔ mǐ liáng chái",数理逻辑:"shù lǐ luó ji",数黑论黄:"shǔ hēi lùn huáng",数白论黄:"shǔ bái lùn huáng",束缊还妇:"shù yūn huán fù",束蒲为脯:"shù pú wéi pú",束椽为柱:"shù chuán wéi zhù",书缺有间:"shū quē yǒu jiàn",手足重茧:"shǒu zú chóng jiǎn",手足异处:"shǒu zú yì chǔ",手脚干净:"shǒu jiǎo gàn jìng",手不应心:"shǒu bù yīng xīn",螫手解腕:"shì shǒu jiě wàn",释知遗形:"shì zhī yí xíng",适时应务:"shì shí yīng wù",适情率意:"shì qíng shuài yì",适当其冲:"shì dāng qí chōng",视为知己:"shì wéi zhī jǐ",使羊将狼:"shǐ yáng jiàng láng",食为民天:"shí wéi mín tiān",拾掇无遗:"shí duō wú yí",实与有力:"shí yù yǒu lì",石英玻璃:"shí yīng bō li",石室金匮:"shí shì jīn guì",什袭珍藏:"shí xí zhēn cáng",什伍东西:"shí wǔ dōng xī",什围伍攻:"shí wéi wǔ gōng",十魔九难:"shí mó jiǔ nàn",诗书发冢:"shī shū fà zhǒng",虱处裈中:"shī chǔ kūn zhōng",师直为壮:"shī zhí wéi zhuàng",尸居龙见:"shī jū lóng xiàn",圣经贤传:"shèng jīng xián zhuàn",圣君贤相:"shèng jūn xián xiàng",生拖死拽:"shēng tuō sǐ zhuài",审己度人:"shěn jǐ duó rén",神武挂冠:"shén wǔ guà guàn",神龙失埶:"shén lóng shī shì",深文曲折:"shēn wén qǔ shé",深厉浅揭:"shēn lì qiǎn qì",深谷为陵:"shēn gǔ wéi líng",深恶痛疾:"shēn wù tòng jí",深仇宿怨:"shēn chóu xiǔ yuàn",舍己为公:"shě jǐ wèi gōng",舍短取长:"shě duǎn qǔ cháng",舍策追羊:"shě cè zhuī yáng",蛇蝎为心:"shé xiē wéi xīn",少成若性:"shào chéng ruò xìng",上当学乖:"shàng dàng xué guāi",赏不当功:"shǎng bù dāng gōng",善自为谋:"shàn zì wéi móu",善为说辞:"shàn wéi shuō cí",善善恶恶:"shàn shàn wù è",善财难舍:"shàn cái nán shě",苫眼铺眉:"shān yǎn pū méi",讪牙闲嗑:"shàn yá xián kē",山阴乘兴:"shān yīn chéng xīng",山殽野湋:"shān yáo yě wéi",山溜穿石:"shān liù chuān shí",山节藻棁:"shān jié zǎo zhuō",杀鸡为黍:"shā jī wéi shǔ",色厉胆薄:"sè lì dǎn bó",桑荫未移:"sāng yīn wèi yí",桑荫不徙:"sāng yīn bù xǐ",桑土绸缪:"sāng tǔ chóu miù",桑户棬枢:"sāng hù juàn shū",三战三北:"sān zhàn sān běi",三瓦两舍:"sān wǎ liǎng shě",三人为众:"sān rén wèi zhòng",三差两错:"sān chā liǎng cuò",塞井焚舍:"sāi jǐng fén shě",洒心更始:"sǎ xīn gèng shǐ",洒扫应对:"sǎ sǎo yìng duì",软红香土:"ruǎn hóng xiāng tǔ",入吾彀中:"rù wú gòu zhōng",入铁主簿:"rù tiě zhǔ bù",入理切情:"rù lǐ qiē qíng",汝成人耶:"rǔ chéng rén yé",如水投石:"rú shuǐ tóu shí",如切如磋:"rú qiē rú cuō",如登春台:"rú dēng chūn tái",肉薄骨并:"ròu bó gǔ bìng",柔情绰态:"róu qíng chuò tài",戎马劻勷:"róng mǎ kuāng ráng",日中为市:"rì zhōng wéi shì",日月参辰:"rì yuè shēn chén",日省月修:"rì xǐng yuè xiū",日削月割:"rì xuē yuè gē",日省月试:"rì xǐng yuè shì",任达不拘:"rèn dá bù jū",人言藉藉:"rén yán jí jí",人模狗样:"rén mú gǒu yàng",人莫予毒:"rén mò yú dú",热熬翻饼:"rè áo fān bǐng",圈牢养物:"juàn láo yǎng wù",取予有节:"qǔ yǔ yǒu jié",诎要桡腘:"qū yāo ráo guó",穷形尽相:"qióng xíng jìn xiàng",情凄意切:"qíng qī yì qiè",情见势屈:"qíng xiàn shì qū",情见乎辞:"qíng xiàn hū cí",清都绛阙:"qīng dōu jiàng què",倾肠倒肚:"qīng cháng dào dǔ",青紫被体:"qīng zǐ pī tǐ",青林黑塞:"qīng lín hēi sài",螓首蛾眉:"qín shǒu é méi",琴瑟之好:"qín sè zhī hào",且住为佳:"qiě zhù wéi jiā",切树倒根:"qiē shù dǎo gēn",切理餍心:"qiē lǐ yàn xīn",切近的当:"qiē jìn de dāng",翘足引领:"qiáo zú yǐn lǐng",巧发奇中:"qiǎo fā qí zhòng",强嘴拗舌:"jiàng zuǐ niù shé",强直自遂:"qiáng zhí zì suí",强死强活:"qiǎng sǐ qiǎng huó",强食自爱:"qiǎng shí zì ài",强食靡角:"qiǎng shí mí jiǎo",强弓劲弩:"qiáng gōng jìng nǔ",强聒不舍:"qiǎng guō bù shě",强凫变鹤:"qiáng fú biàn hè",强而后可:"qiǎng ér hòu kě",强得易贫:"qiǎng dé yì pín",遣兴陶情:"qiǎn xìng táo qíng",牵羊担酒:"qiān yáng dān jiǔ",千了百当:"qiān liǎo bǎi dàng",泣下如雨:"qì xià rú yǔ",起偃为竖:"qǐ yǎn wéi shù",岂弟君子:"kǎi tì jūn zǐ",綦溪利跂:"qí xī lì qí",棋输先著:"qí shū xiān zhuó",齐王舍牛:"qí wáng shě niú",欺天诳地:"qī tiān kuáng dì",普天率土:"pǔ tiān shuài tǔ",铺胸纳地:"pū xiōng nà dì",铺锦列绣:"pū jǐn liè xiù",破家为国:"pò jiā wèi guó",破觚为圜:"pò gū wéi yuán",萍飘蓬转:"píng piāo péng zhuàn",帡天极地:"píng tiān jí dì",屏声息气:"bǐng shēng xī qì",凭几据杖:"píng jī jù zhàng",贫嘴薄舌:"pín zuǐ bó shé",片语只辞:"piàn yǔ zhī cí",披发文身:"pī fà wén shēn",烹龙炮凤:"pēng lóng páo fèng",炰鳖脍鲤:"fǒu biē kuài lǐ",庞眉皓发:"páng méi hào fà",攀花折柳:"pān huā zhé liǔ",攀蟾折桂:"pān chán shé guì",女大难留:"nǚ dà nán liú",弄玉吹箫:"nòng yù chuī xiāo",弄管调弦:"nòng guǎn tiáo xián",弄粉调朱:"nòng fěn diào zhū",浓抹淡妆:"nóng mò dàn zhuāng",捻土为香:"niǎn tǔ wéi xiāng",年谊世好:"nián yì shì hǎo",年华垂暮:"nián huá chuí mù",儗不于伦:"nǐ bù yú lún",泥而不滓:"ní ér bù zǐ",能者为师:"néng zhě wéi shī",能不称官:"néng bú chèn guān",挠直为曲:"náo zhí wéi qū",难进易退:"nán jìn yì tuì",难得糊涂:"nán dé hú tú",南蛮鴂舌:"nán mán jué shé",南贩北贾:"nán fàn běi gǔ",牧猪奴戏:"mù zhū nú xì",目眢心忳:"mù yuān xīn tún",目挑心招:"mù tiǎo xīn zhāo",目量意营:"mù liàng yì yíng",木头木脑:"mù tóu mù nǎo",木干鸟栖:"mù gàn niǎo qī",侔色揣称:"móu sè chuǎi chèn",莫予毒也:"mò yú dú yě",抹粉施脂:"mò fěn shī zhī",磨砻镌切:"mó lóng juān qiē",磨棱刓角:"mó léng wán jiǎo",摸门不着:"mō mén bù zháo",摸不着边:"mō bù zhuó biān",命中注定:"mìng zhōng zhù dìng",鸣鹤之应:"míng hè zhī yìng",明效大验:"míng xiào dà yàn",名我固当:"míng wǒ gù dāng",邈处欿视:"miǎo chǔ kǎn shì",黾穴鸲巢:"měng xué qú cháo",绵里薄材:"mián lǐ bó cái",靡有孑遗:"mǐ yǒu jié yí",靡衣偷食:"mǐ yī tōu shí",迷恋骸骨:"mí liàn hái gǔ",扪参历井:"mén shēn lì jǐng",门单户薄:"mén dān hù bó",昧旦晨兴:"mèi dàn chén xīng",冒名接脚:"mào míng jiē jiǎo",毛遂堕井:"máo suí duò jǐng",毛发倒竖:"máo fā dǎo shù",卖文为生:"mài wén wéi shēng",卖李钻核:"mài lǐ zuān hé",买椟还珠:"mǎi dú huán zhū",埋三怨四:"mán sān yuàn sì",马入华山:"mǎ rù huá shān",落魄江湖:"luò pò jiāng hú",落落难合:"luò luò nán hé",落草为寇:"luò cǎo wéi kòu",罗织构陷:"luó zhī gòu xiàn",鸾凤和鸣:"luán fèng hè míng",率由旧章:"shuài yóu jiù zhāng",率土同庆:"shuài tǔ tóng qìng",率兽食人:"shuài shòu shí rén",率土归心:"shuài tǔ guī xīn",率马以骥:"shuài mǎ yǐ jì",率尔成章:"shuài ěr chéng zhāng",鲁斤燕削:"lǔ jīn yàn xuē",漏尽更阑:"lòu jìn gēng lán",笼鸟槛猿:"lóng niǎo jiàn yuán",笼鸟池鱼:"lóng niǎo chí yú",龙游曲沼:"lóng yóu qū zhǎo",龙血玄黄:"lóng xuè xuán huáng",龙雕凤咀:"lóng diāo fèng jǔ",六尺之讬:"liù chǐ zhī tuō",令原之戚:"líng yuán zhī qī",令人捧腹:"lìng rén pěng fù",陵劲淬砺:"líng jìng cuì lì",临敌易将:"lín dí yì jiàng",裂裳衣疮:"liè shang yī chuāng",裂冠毁冕:"liè guàn huǐ miǎn",了无惧色:"liǎo wú jù sè",了身达命:"liǎo shēn dá mìng",了然无闻:"liǎo rán wú wén",了不可见:"liǎo bù kě jiàn",了不长进:"liǎo bù zhǎng jìn",燎发摧枯:"liǎo fà cuī kū",审时度势:"shěn shí duó shì",量小力微:"liàng xiǎo lì wēi",相时度力:"xiāng shí duó lì",量枘制凿:"liàng ruì zhì záo",量如江海:"liàng rú jiāng hǎi",量金买赋:"liàng jīn mǎi fù",量己审分:"liàng jǐ shěn fēn",敛骨吹魂:"liǎn gǔ chuī hún",詈夷为跖:"lì yí wéi zhí",利令志惛:"lì lìng zhì hūn",李广不侯:"lǐ guǎng bú hòu",礼为情貌:"lǐ wéi qíng mào",礼让为国:"lǐ ràng wéi guó",犁生骍角:"lí shēng xīng jiǎo",离本徼末:"lí běn jiǎo mò",楞眉横眼:"léng méi hèng yǎn",擂天倒地:"léi tiān dǎo dì",累足成步:"lěi zú chéng bù",累瓦结绳:"lěi wǎ jié shéng",累土至山:"lěi tǔ zhì shān",累土聚沙:"lěi tǔ jù shā",累卵之危:"lěi luǎn zhī wēi",累累如珠:"lěi lěi rú zhū",累块积苏:"lěi kuài jī sū",乐山乐水:"lè shān lè shuǐ",潦原浸天:"lǎo yuán jìn tiān",老师宿儒:"lǎo shī xiǔ rú",牢什古子:"láo shí gǔ zi",琅嬛福地:"láng huán fú dì",揆情度理:"kuí qíng duó lǐ",旷日累时:"kuàng rì lěi shí",匡救弥缝:"kuāng jiù mí fèng",枯树生华:"kū shù shēng huā",口轻舌薄:"kǒu qīng shé bó",口角生风:"kǒu jiǎo shēng fēng",口角春风:"kǒu jiǎo chūn fēng",口角风情:"kǒu jiǎo fēng qíng",口干舌焦:"kǒu gān shé jiāo",口腹之累:"kǒu fù zhī lěi",空腹便便:"kōng fù pián pián",嗑牙料嘴:"kē yá liào zuǐ",刻木为鹄:"kè mù wéi hú",咳珠唾玉:"ké zhū tuò yù",咳唾成珠:"ké tuò chéng zhū",抗颜为师:"kàng yán wéi shī",开华结果:"kāi huā jié guǒ",峻阪盐车:"jùn bǎn yán chē",嚼铁咀金:"jiáo tiě jǔ jīn",嚼墨喷纸:"jué mò pēn zhǐ",倔头强脑:"juè tóu jiàng nǎo",倔头倔脑:"juè tóu juè nǎo",倦鸟知还:"juàn niǎo zhī huán",卷席而葬:"juǎn xí ér zàng",卷甲倍道:"juǎn jiǎ bèi dào",聚米为山:"jù mǐ wéi shān",举手相庆:"jǔ shǒu xiāng qìng",举世混浊:"jǔ shì hún zhuó",鞠为茂草:"jū wéi mào cǎo",拘神遣将:"jū shén qiǎn jiàng",居下讪上:"jū xià shàn shàng",久要不忘:"jiǔ yāo bú wàng",九转功成:"jiǔ zhuǎn gōng chéng",九蒸三熯:"jiǔ zhēng sān hàn",敬业乐群:"jìng yè lè qún",井底虾蟆:"jǐng dǐ xiā má",旌旗卷舒:"jīng qí juǎn shū",荆棘载途:"jīng jí zài tú",禁舍开塞:"jìn shě kāi sāi",祲威盛容:"jìn wēi shèng róng",进退消长:"jìn tuì xiāo cháng",进退应矩:"jìn tuì yīng jǔ",进退触籓:"jìn tuì chù fān",进退跋疐:"jìn tuì bá zhì",尽多尽少:"jǐn duō jǐn shǎo",锦囊还矢:"jǐn náng huán shǐ",矜己自饰:"jīn jǐ zì shì",矜功负气:"jīn gōng fù qì",津关险塞:"jīn guān xiǎn sài",金吾不禁:"jīn wú bú jìn",金翅擘海:"jīn chì bāi hǎi",解衣衣人:"jiě yī yī rén",解人难得:"jiě rén nán dé",解铃系铃:"jiě líng xì líng",解发佯狂:"jiě fà yáng kuáng",诘屈磝碻:"jié qū áo qiāo",教猱升木:"jiāo náo shēng mù",较瘦量肥:"jiào shòu liàng féi",角立杰出:"jiǎo lì jié chū",焦沙烂石:"jiāo shā làn shí",骄儿騃女:"jiāo ér sì nǚ",浇风薄俗:"jiāo fēng bó sú",降妖捉怪:"xiáng yāo zhuō guài",将取固予:"jiāng qǔ gù yǔ",将门有将:"jiàng mén yǒu jiàng",将夺固与:"jiāng duó gù yǔ",槛花笼鹤:"jiàn huā lóng hè",鉴影度形:"jiàn yǐng duó xíng",渐不可长:"jiàn bù kě zhǎng",见素抱朴:"xiàn sù bào pǔ",见弃于人:"jiàn qì yú rén",简丝数米:"jiǎn sī shǔ mǐ",俭不中礼:"jiǎn bú zhòng lǐ",间见层出:"jiàn xiàn céng chū",尖嘴薄舌:"jiān zuǐ bó shé",甲冠天下:"jiǎ guàn tiān xià",葭莩之亲:"jiā fú zhī qīn",家累千金:"jiā lèi qiān jīn",家给人足:"jiā jǐ rén zú",家道从容:"jiā dào cóng róng",夹袋人物:"jiā dài rén wù",霁风朗月:"jì fēng lǎng yuè",寄兴寓情:"jì xìng yù qíng",计深虑远:"jì shēn lǜ yuǎn",计功量罪:"jì gōng liàng zuì",掎裳连襼:"jǐ shang lián yì",虮虱相吊:"jǐ shī xiāng diào",疾不可为:"jí bù kě wéi",极深研几:"jí shēn yán jī",及宾有鱼:"jí bīn yǒu yú",激薄停浇:"jī bó tíng jiāo",积素累旧:"jī sù lěi jiù",积时累日:"jī shí lěi rì",积露为波:"jī lù wéi bō",积德累功:"jī dé lěi gōng",积谗糜骨:"jī chán méi gǔ",击排冒没:"jī pái mào mò",祸为福先:"huò wéi fú xiān",祸福相依:"huò fú xiāng yī",获隽公车:"huò jùn gōng chē",混应滥应:"hùn yīng làn yīng",毁舟为杕:"huǐ zhōu wéi duò",毁钟为铎:"huǐ zhōng wéi duó",毁冠裂裳:"huǐ guān liè cháng",晦盲否塞:"huì máng pǐ sè",回船转舵:"huí chuán zhuàn duò",潢池盗弄:"huáng chí dào nòng",黄冠草履:"huáng guàn cǎo lǚ",黄发儿齿:"huáng fà ér chǐ",黄发垂髫:"huáng fà chuí tiáo",还珠返璧:"huán zhū fǎn bì",还年驻色:"huán nián zhù sè",还年却老:"huán nián què lǎo",坏裳为裤:"huài shang wéi kù",画荻和丸:"huà dí huò wán",化枭为鸠:"huà xiāo wéi jiū",化腐为奇:"huà fǔ wéi qí",化鸱为凤:"huà chī wéi fèng",花不棱登:"huā bu lēng dēng",户限为穿:"hù xiàn wéi chuān",呼卢喝雉:"hū lú hè zhì",呼来喝去:"hū lái hè qù",呼不给吸:"hū bù jǐ xī",厚味腊毒:"hòu wèi xī dú",厚德载物:"hòu dé zài wù",鸿渐于干:"hóng jiàn yú gàn",洪炉燎发:"hóng lú liáo fà",红绳系足:"hóng shéng jì zú",红不棱登:"hóng bu lēng dēng",横抢硬夺:"hèng qiǎng yìng duó",横恩滥赏:"hèng ēn làn shǎng",恨海难填:"hèn hǎi nán tián",鹤发鸡皮:"hè fà jī pí",涸思干虑:"hé sī gān lǜ",河涸海干:"hé hé hǎi gān",和颜说色:"hé yán yuè sè",合从连衡:"hé zòng lián héng",浩浩汤汤:"hào hào shāng shāng",好勇斗狠:"hào yǒng dòu hěn",好问则裕:"hào wèn zé yù",好为事端:"hào wéi shì duān",好问决疑:"hào wèn jué yí",好生之德:"hào shēng zhī dé",好奇尚异:"hǎo qí shàng yì",好恶不同:"hǎo è bù tóng",好丹非素:"hào dān fēi sù",豪干暴取:"háo gàn bào qǔ",毫发不爽:"háo fà bù shuǎng",寒酸落魄:"hán suān luò pò",含英咀华:"hán yīng jǔ huá",含糊不明:"hán hú bù míng",过为已甚:"guò wéi yǐ shèn",桂折兰摧:"guì shé lán cuī",规旋矩折:"guī xuán jǔ shé",广文先生:"guǎng wén xiān sheng",广陵散绝:"guǎng líng sǎn jué",冠山戴粒:"guàn shān dài lì",冠屦倒施:"guàn jù dǎo shī",挂席为门:"guà xí wéi mén",寡见鲜闻:"guǎ jiàn xiǎn wén",瓜葛相连:"guā gé xiāng lián",鼓吻奋爪:"gǔ wěn fèn zhǎo",古调单弹:"gǔ diào dān tán",古调不弹:"gǔ diào bù tán",姑射神人:"gū yè shén rén",苟合取容:"gǒu hé qǔ róng",狗续侯冠:"gǒu xù hòu guàn",钩爪锯牙:"gōu zhǎo jù yá",共枝别干:"gòng zhī bié gàn",共为唇齿:"gòng wéi chún chǐ",拱手而降:"gǒng shǒu ér xiáng",拱肩缩背:"gǒng jiān suō bèi",功薄蝉翼:"gōng bó chán yì",弓调马服:"gōng diào mǎ fú",更姓改物:"gēng xìng gǎi wù",更仆难数:"gēng pú nán shǔ",更令明号:"gēng lìng míng hào",更待干罢:"gèng dài gàn bà",更唱迭和:"gēng chàng dié hé",更长梦短:"gēng cháng mèng duǎn",各色名样:"gè sè míng yàng",格格不纳:"gé gé bú nà",格格不吐:"gé gé bù tǔ",告朔饩羊:"gù shuò xì yáng",膏车秣马:"gào chē mò mǎ",高义薄云:"gāo yì bó yún",岗头泽底:"gāng tóu zé dǐ",敢为敢做:"gǎn wéi gǎn zuò",甘分随时:"gān fèn suí shí",甘处下流:"gān chǔ xià liú",干啼湿哭:"gàn tí shī kū",干名犯义:"gàn míng fàn yì",干将莫邪:"gān jiāng mò yé",干城之将:"gān chéng zhī jiàng",腹载五车:"fù zài wǔ chē",父债子还:"fù zhài zǐ huán",父为子隐:"fù wéi zǐ yǐn",辅世长民:"fǔ shì zhǎng mín",福为祸始:"fú wéi huò shǐ",符号逻辑:"fú hào luó jí",浮收勒折:"fú shōu lè shé",肤受之愬:"fū shòu zhī sù",否终则泰:"pǐ zhōng zé tài",佛头著粪:"fó tóu zhuó fèn",奉为楷模:"fèng wéi kǎi mó",凤靡鸾吪:"fèng mǐ luán é",封豨修蛇:"fēng xī xiū shé",风影敷衍:"fēng yǐng fū yǎn",丰屋蔀家:"fēng wū bù jiā",粪土不如:"fèn tǔ bù rú",分风劈流:"fēn fēng pǐ liú",沸沸汤汤:"fèi fèi shāng shāng",菲食薄衣:"fěi shí bó yī",飞将数奇:"fēi jiàng shù qí",放辟邪侈:"fàng pì xié chǐ",方领圆冠:"fāng lǐng yuán guàn",犯而不校:"fàn ér bú jiào",返本还源:"fǎn běn huán yuán",反劳为逸:"fǎn láo wéi yì",法轮常转:"fǎ lún cháng zhuàn",罚不当罪:"fá bù dāng zuì",发引千钧:"fà yǐn qiān jūn",发奸擿伏:"fā jiān tī fú",发短心长:"fà duǎn xīn cháng",二竖为虐:"èr shù wéi nüè",儿女心肠:"ér nǚ xīn cháng",儿女亲家:"ér nǚ qìng jiā",遏恶扬善:"è wù yáng shàn",饿殍枕藉:"è piǎo zhěn jí",饿殍载道:"è piǎo zài dào",恶醉强酒:"wù zuì qiǎng jiǔ",恶意中伤:"è yì zhòng shāng",恶湿居下:"wù shī jū xià",恶居下流:"wù jū xià liú",恶不去善:"wù bú qù shàn",扼吭夺食:"è háng duó shí",扼襟控咽:"è jīn kòng yān",峨峨汤汤:"é é shāng shāng",屙金溺银:"ē jīn niào yín",朵颐大嚼:"duǒ yí dà jiáo",夺人所好:"duó rén suǒ hào",多言数穷:"duō yán shuò qióng",多文为富:"duō wén wéi fù",多端寡要:"duō duān guǎ yào",多财善贾:"duō cái shàn gǔ",遁世无闷:"dùn shì wú mèn",遁迹黄冠:"dùn jì huáng guàn",堆案盈几:"duī àn yíng jī",断还归宗:"duàn huán guī zōng",短见薄识:"duǎn jiàn bó shí",蠹居棊处:"dù jū qí chǔ",度己以绳:"duó jǐ yǐ shéng",杜默为诗:"dù mò wéi shī",杜鹃啼血:"dù juān tí xuè",笃近举远:"dǔ jìn jǔ yuǎn",独有千秋:"dú yǒu qiān qiū",读书得间:"dú shū dé jiàn",斗转参横:"dǒu zhuǎn shēn héng",兜肚连肠:"dōu dǔ lián cháng",洞见症结:"dòng jiàn zhèng jié",恫疑虚喝:"dòng yí xū hè",动中窾要:"dòng zhōng kuǎn yào",东鸣西应:"dōng míng xī yīng",东鳞西爪:"dōng lín xī zhǎo",东量西折:"dōng liàng xī shé",东家西舍:"dōng jiā xī shè",东扯西拽:"dōng chě xī zhuāi",鼎铛有耳:"dǐng chēng yǒu ěr",鼎铛玉石:"dǐng chēng yù shí",钉头磷磷:"dīng tóu lín lín",跌宕不羁:"diē dàng bù jī",跌弹斑鸠:"diē dàn bān jiū",雕心雁爪:"diāo xīn yàn zhǎo",颠倒衣裳:"diān dǎo yī cháng",德薄能鲜:"dé bó néng xiǎn",得马折足:"dé mǎ shé zú",蹈其覆辙:"dǎo qí fù zhé",捣虚撇抗:"dǎo xū piē kàng",倒载干戈:"dào zài gān gē",倒裳索领:"dào cháng suǒ lǐng",倒果为因:"dào guǒ wéi yīn",叨在知己:"tāo zài zhī jǐ",叨陪末座:"tāo péi mò zuò",党豺为虐:"dǎng chái wéi nüè",当轴处中:"dāng zhóu chǔ zhōng",当着不着:"dāng zhuó bù zhuó",当务始终:"dāng wù shǐ zhōng",淡汝浓抹:"dàn rǔ nóng mǒ",弹丸脱手:"tán wán tuō shǒu",弹铗无鱼:"dàn jiá wú yú",箪食瓢饮:"dān sì piáo yǐn",大璞不完:"dà pú bù wán",大明法度:"dà míng fǎ dù",大车以载:"dà chē yǐ zài",打闷葫芦:"dǎ mèn hú lu",沓来踵至:"tà lái zhǒng zhì",厝火燎原:"cuò huǒ liǎo yuán",撮科打哄:"cuō kē dǎ hòng",寸积铢累:"cùn jī zhū lěi",啛啛喳喳:"cuì cuì chā chā",摧折豪强:"cuī zhé háo qiáng",摧刚为柔:"cuī gāng wéi róu",从俗就简:"cóng sú jiù jiǎn",此发彼应:"cǐ fā bǐ yīng",此唱彼和:"cǐ chàng bǐ hè",慈悲为本:"cí bēi wéi běn",纯属骗局:"chún shǔ piàn jú",春笋怒发:"chūn sǔn nù fā",垂头搨翼:"chuí tóu tà yì",传为笑谈:"chuán wéi xiào tán",传风扇火:"chuán fēng shān huǒ",穿红着绿:"chuān hóng zhuó lǜ",触处机来:"chù chǔ jī lái",处尊居显:"chǔ zūn jū xiǎn",处堂燕雀:"chǔ táng yàn què",处实效功:"chǔ shí xiào gōng",处高临深:"chǔ gāo lín shēn",出入无间:"chū rù wú jiān",出门应辙:"chū mén yīng zhé",出处语默:"chū chǔ yǔ mò",出处殊途:"chū chǔ shū tú",出处进退:"chū chǔ jìn tuì",愁山闷海:"chóu shān mèn hǎi",冲冠眦裂:"chōng guàn zì liè",齿牙为祸:"chǐ yá wéi huò",尺二冤家:"chǐ èr yuān jia",尺短寸长:"chǐ duǎn cùn cháng",尺寸之功:"chǐ cùn zhī gōng",城北徐公:"chéng běi xú gōng",成败兴废:"chéng bài xīng fèi",趁水和泥:"chèn shuǐ huò ní",称雨道晴:"chēng yǔ dào qíng",称体载衣:"chēng tǐ zài yī",称体裁衣:"chèn tǐ cái yī",称家有无:"chèn jiā yǒu wú",称德度功:"chēng dé duó gōng",沉吟章句:"chén yín zhāng jù",沉吟不决:"chén yín bù jué",沉疴宿疾:"chén kē sù jí",扯纤拉烟:"chě qiàn lā yān",扯顺风旗:"chě shùn fēng qí",车载船装:"chē zǎi chuán zhuāng",朝升暮合:"zhāo shēng mù gě",朝攀暮折:"zhāo pān mù shé",超今冠古:"chāo jīn guàn gǔ",倡而不和:"chàng ér bú hè",畅所欲为:"chàng suǒ yù wéi",苌弘碧血:"cháng hóng bì xiě",长幼尊卑:"zhǎng yòu zūn bēi",长绳系日:"cháng shéng jì rì",长年三老:"zhǎng nián sān lǎo",长春不老:"cháng chūn bù lǎo",长傲饰非:"zhǎng ào shì fēi",昌亭旅食:"chāng tíng lǚ shí",禅絮沾泥:"chán xù zhān ní",差三错四:"chā sān cuò sì",层台累榭:"céng tái lěi xiè",层见迭出:"céng xiàn dié chū",藏踪蹑迹:"cáng zōng niè jì",苍蝇见血:"cāng yíng jiàn xiě",餐松啖柏:"cān sōng dàn bó",骖风驷霞:"cān fēng sì xiá",参伍错综:"cēn wǔ cuò zōng",参辰卯酉:"shēn chén mǎo yǒu",材优干济:"cái yōu gān jǐ",材薄质衰:"cái bó zhì shuāi",才大难用:"cái dà nán yòng",才薄智浅:"cái bó zhì qiǎn",不足为意:"bù zú wéi yì",不足为据:"bù zú wéi jù",不足为法:"bù zú wéi fǎ",不足齿数:"bù zú chǐ shǔ",不着疼热:"bù zhuó téng rè",不知薡蕫:"bù zhī dǐng dǒng",不越雷池:"bú yuè léi chí",不相为谋:"bù xiāng wéi móu",不贪为宝:"bù tān wéi bǎo",不了而了:"bù liǎo ér liǎo",不可揆度:"bù kě kuí duó",不遑启处:"bù huáng qǐ chǔ",不当不正:"bù dāng bú zhèng",不差什么:"bú chà shén me",不差累黍:"bù chā lěi shǔ",擘两分星:"bò liǎng fēn xīng",簸土扬沙:"bǒ tǔ yáng shā",薄物细故:"bó wù xì gù",薄寒中人:"bó hán zhòng rén",博文约礼:"bó wén yuē lǐ",播糠眯目:"bō kāng mí mù",剥皮抽筋:"bō pí chōu jīn",剥肤椎髓:"bō fū chuí suǐ",波属云委:"bō zhǔ yún wěi",波骇云属:"bō hài yún zhǔ",兵微将寡:"bīng wēi jiàng guǎ",兵强将勇:"bīng qiáng jiàng yǒng",兵多将广:"bīng duō jiàng guǎng",兵不由将:"bīng bù yóu jiàng",冰解的破:"bīng jiě dì pò",彬彬济济:"bīn bīn jǐ jǐ",摽梅之年:"biào méi zhī nián",表里为奸:"biǎo lǐ wéi jiān",飙发电举:"biāo fā diàn jǔ",变贪厉薄:"biàn tān lì bó",敝盖不弃:"bì gài bú qì",秕言谬说:"bǐ yán miù shuō",比物属事:"bǐ wù zhǔ shì",被山带河:"pī shān dài hé",被甲枕戈:"pī jiǎ zhěn gē",被甲据鞍:"pī jiǎ jù ān",被褐怀玉:"pī hè huái yù",被发缨冠:"pī fà yīng guàn",背曲腰躬:"bèi qǔ yāo gōng",北窗高卧:"běi chuāng gāo wò",北辰星拱:"běi chén xīng gǒng",北鄙之音:"běi bǐ zhī yīn",卑宫菲食:"bēi gōng fěi shí",暴衣露冠:"pù yī lù guàn",暴腮龙门:"pù sāi lóng mén",暴露文学:"bào lù wén xué",暴虎冯河:"bào hǔ píng hé",抱蔓摘瓜:"bào wàn zhāi guā",抱法处势:"bào fǎ chǔ shì",褒贬与夺:"bāo biǎn yǔ duó",帮闲钻懒:"bāng xián zuān lǎn",拜将封侯:"bài jiàng fēng hóu",百兽率舞:"bǎi shòu shuài wǔ",百孔千创:"bǎi kǒng qiān chuāng",白衣卿相:"bái yī qīng xiàng",白首为郎:"bái shǒu wéi láng",白首相知:"bái shǒu xiāng zhī",把玩无厌:"bǎ wán wú yàn",拔锅卷席:"bá guō juǎn xí",拔本塞源:"bá běn sè yuán",傲不可长:"ào bù kě zhǎng",熬更守夜:"áo gēng shǒu yè",安时处顺:"ān shí chǔ shùn",安身为乐:"ān shēn wéi lè",安老怀少:"ān lǎo huái shào",安步当车:"ān bù dàng chē",爱人好士:"ài rén hào shì",矮人观场:"ǎi rén guān chǎng",捱风缉缝:"ái fēng jī fèng",挨山塞海:"āi shān sè hǎi",阿家阿翁:"ā jiā ā wēng",阿党相为:"ē dǎng xiāng wéi",追亡逐北:"zhuī wáng zhú běi",竹篮打水:"zhú lán dá shuǐ",知疼着热:"zhī téng zháo rè",语不惊人:"yǔ bù jīng rén",于今为烈:"yú jīn wéi liè",一日三省:"yí rì sān xǐng",穴居野处:"xué jū yě chǔ",五脊六兽:"wǔ jǐ liù shòu",无声无臭:"wú shēng wú xiù",谓予不信:"wèi yú bú xìn",舍身为国:"shě shēn wéi guó",杀妻求将:"shā qī qiú jiàng",强作解人:"qiǎng zuò jiě rén",气冲斗牛:"qì chōng dǒu niú",临深履薄:"lín shēn lǚ bó",钧天广乐:"jūn tiān guǎng yuè",艰难竭蹶:"jiān nán jié jué",夹七夹八:"jiā qī jiā bā",混混噩噩:"hún hún è è",厚古薄今:"hòu gǔ bó jīn",鬼怕恶人:"guǐ pà è rén",伽马射线:"gā mǎ shè xiàn",佛头着粪:"fó tóu zhuó fèn",奉为至宝:"fèng wéi zhì bǎo",登坛拜将:"dēng tán bài jiàng",晨昏定省:"chén hūn dìng xǐng",察察为明:"chá chá wéi míng",博闻强识:"bó wén qiáng zhì",避难就易:"bì nán jiù yì",了无生机:"liǎo wú shēng jī",有一说一:"yǒu yī shuō yī",独一无二:"dú yī wú èr",说一不二:"shuō yī bù èr",举一反三:"jǔ yī fǎn sān",数一数二:"shǔ yī shǔ èr",杀一儆百:"shā yī jǐng bǎi",丁一卯二:"dīng yī mǎo èr",丁一确二:"dīng yī què èr",不一而止:"bù yī ér zhǐ",无一幸免:"wú yī xìng miǎn",表里不一:"biǎo lǐ bù yī",良莠不一:"liáng yǒu bù yī",心口不一:"xīn kǒu bù yī",言行不一:"yán xíng bù yī",政令不一:"zhèng lìng bù yī",参差不一:"cēn cī bù yī",纷纷不一:"fēn fēn bù yī",毁誉不一:"huǐ yù bù yī",不一而三:"bù yī ér sān",百不一遇:"bǎi bù yī yù",言行抱一:"yán xíng bào yī",瑜百瑕一:"yú bǎi xiá yī",背城借一:"bèi chéng jiè yī",凭城借一:"píng chéng jiè yī",劝百讽一:"quàn bǎi fěng yī",群居和一:"qún jū hé yī",百不获一:"bǎi bù huò yī",百不失一:"bǎi bù shī yī",百无失一:"bǎi wú shī yī",万不失一:"wàn bù shī yī",万无失一:"wàn wú shī yī",合而为一:"hé ér wéi yī",合两为一:"hé liǎng wéi yī",合二为一:"hé èr wéi yī",天下为一:"tiān xià wéi yī",相与为一:"xiāng yǔ wéi yī",较若画一:"jiào ruò huà yī",较如画一:"jiào rú huà yī",斠若画一:"jiào ruò huà yī",言行若一:"yán xíng ruò yī",始终若一:"shǐ zhōng ruò yī",终始若一:"zhōng shǐ ruò yī",惟精惟一:"wéi jīng wéi yī",众多非一:"zhòng duō fēi yī",不能赞一:"bù néng zàn yī",问一答十:"wèn yī dá shí",一不扭众:"yī bù niǔ zhòng",一以贯之:"yī yǐ guàn zhī",一以当百:"yī yǐ dāng bǎi",百不当一:"bǎi bù dāng yī",十不当一:"shí bù dāng yī",以一警百:"yǐ yī jǐng bǎi",以一奉百:"yǐ yī fèng bǎi",以一持万:"yǐ yī chí wàn",以一知万:"yǐ yī zhī wàn",百里挑一:"bǎi lǐ tiāo yī",整齐划一:"zhěng qí huà yī",一来二去:"yī lái èr qù",一路公交:"yī lù gōng jiāo",一路汽车:"yī lù qì chē",一路巴士:"yī lù bā shì",朝朝朝落:"zhāo cháo zhāo luò",曲意逢迎:"qū yì féng yíng",一行不行:"yì háng bù xíng",行行不行:"háng háng bù xíng"},cae=Object.keys(yT).map(e=>({zh:e,pinyin:yT[e],probability:2e-8,length:4,priority:Zl.Normal,dict:Symbol("dict4")})),kT={巴尔干半岛:"bā ěr gàn bàn dǎo",巴尔喀什湖:"bā ěr kā shí hú",不幸而言中:"bú xìng ér yán zhòng",布尔什维克:"bù ěr shí wéi kè",何乐而不为:"hé lè ér bù wéi",苛政猛于虎:"kē zhèng měng yú hǔ",蒙得维的亚:"méng dé wéi dì yà",民以食为天:"mín yǐ shí wéi tiān",事后诸葛亮:"shì hòu zhū gě liàng",物以稀为贵:"wù yǐ xī wéi guì",先下手为强:"xiān xià shǒu wéi qiáng",行行出状元:"háng háng chū zhuàng yuan",亚得里亚海:"yà dé lǐ yà hǎi",眼不见为净:"yǎn bú jiàn wéi jìng",竹筒倒豆子:"zhú tǒng dào dòu zi"},dae=Object.keys(kT).map(e=>({zh:e,pinyin:kT[e],probability:2e-8,length:5,priority:Zl.Normal,dict:Symbol("dict5")}));function bT(e,t){return e&&(e.decimalt.probability)?e:t}function wT(e){e.probability<1e-300&&(e.probability*=1e300,e.decimal+=1)}function fae(e){return e.priority===Zl.Custom?-(e.length*e.length*100):e.priority===Zl.Surname?-(e.length*e.length*10):0}function hae(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{probability:1,decimal:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={probability:o.probability*r.probability,decimal:r.decimal+fae(o),patterns:r.patterns,concatPattern:o};wT(u),n[a]=bT(n[a],u),o=e[--i]}const l={probability:1e-13*r.probability,decimal:0,patterns:r.patterns};wT(l),n[s]=bT(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function CT(e,t){return e&&e.count<=t.count?e:t}function pae(e){return e.priority===Zl.Custom?-(e.length*e.length*1e5):e.priority===Zl.Surname?-(e.length*e.length*100):1}function mae(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{count:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={count:pae(o)+r.count,patterns:r.patterns,concatPattern:o};n[a]=CT(n[a],u),o=e[--i]}const l={count:1+r.count,patterns:r.patterns};n[s]=CT(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function gae(e,t){return!(t.index+t.length<=e.index||t.priority>e.priority||t.priority===e.priority&&t.length>e.length)}function vae(e){const t=[];for(let n=e.length-1;n>=0;){const{index:i}=e[n];let o=n-1;for(;o>=0&&gae(e[n],e[o]);)o--;(o<0||e[o].index+e[o].length<=i)&&t.push(e[n]),n=o}return t.reverse()}var AT;(function(e){e[e.ReverseMaxMatch=1]="ReverseMaxMatch",e[e.MaxProbability=2]="MaxProbability",e[e.MinTokenization=3]="MinTokenization"})(AT||(AT={}));class xT{constructor(t,n="",i=""){this.children=new Map,this.fail=null,this.patterns=[],this.parent=t,this.prefix=n,this.key=i}}class yae{constructor(){this.dictMap=new Map,this.queues=[],this.root=new xT(null)}build(t){this.buildTrie(t),this.buildFailPointer()}buildTrie(t){for(let n of t){const i=pC(n.zh);let o=this.root;for(let s=0;s{t=t.concat(i)}),this.queues=[];t.length>n;){let i=t[n++],o=i.parent&&i.parent.fail,s=i.key;for(;o&&!o.children.has(s);)o=o.fail;o?i.fail=o.children.get(s):i.fail=this.root}}addPatternToDictMap(t){this.dictMap.has(t.dict)||this.dictMap.set(t.dict,new Set),this.dictMap.get(t.dict).add(t)}addNodeToQueues(t){this.queues[Ra(t.prefix)]||(this.queues[Ra(t.prefix)]=[]),this.queues[Ra(t.prefix)].push(t)}insertPattern(t,n){for(let i=t.length-1;i>=0;i--){const o=t[i];if(n.priority===o.priority&&n.probability>=o.probability)t[i+1]=o;else if(n.priority>o.priority)t[i+1]=o;else{t[i+1]=n;return}}t[0]=n}removeDict(t){this.dictMap.has(t)&&(this.dictMap.get(t).forEach(i=>{i.node.patterns=i.node.patterns.filter(o=>o!==i)}),this.dictMap.delete(t))}match(t,n){let i=this.root,o=[];const s=pC(t);for(let r=0;rn==="off"?c.priority!==Zl.Surname:n==="head"?c.length-1-r===0:!0);a&&o.push(Object.assign(Object.assign({},a),{index:r-a.length+1}));let u=i.fail;for(;u!==null;){const c=u.patterns.find(d=>n==="off"?d.priority!==Zl.Surname:n==="head"?d.length-1-r===0:!0);c&&o.push(Object.assign(Object.assign({},c),{index:r-c.length+1})),u=u.fail}}}return o}search(t,n,i=2){const o=this.match(t,n);return i===1?vae(o):i===3?mae(o,Ra(t)):hae(o,Ra(t))}}const kae=[...dae,...cae,...uae,...aae,...oae,...lae],pz=new yae;pz.build(kae);const bae=new fz,wae=()=>bae,Cae=[];function Aae(){return Cae}const _g=e=>{const t=zd.get(e);return t?t.split(" ")[0]:e},xae=e=>{const t=[],n=Aae();for(let i=0;i{const s=o?xae(e):e,r=pz.search(s,n,i);let l=0;const a=pC(e);for(let u=0;ue.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(n̄|ń|ň|ǹ)/g,"n").replace(/(m̄|ḿ|m̌|m̀)/g,"m").replace(/(ê̄|ế|ê̌|ề)/g,"ê"),mz=(e,t="off")=>{const n=wae();let i=zd.get(e)?zd.get(e).split(" "):[];if(n.get(e))i=n.get(e).split(" ");else if(t!=="off"){const o=mC[e];o&&(i=[o].concat(i.filter(s=>s!==o)))}return i},_ae=(e,t="off")=>{let n=mz(e,t);return n.length>0?n.map(i=>({origin:e,result:i,isZh:!0,originPinyin:i})):[{origin:e,result:e,isZh:!1,originPinyin:e}]},uk=(e,t)=>{const n=e.split(" "),i=[],o=[];for(let s of n)for(let r of Jle)if(s.startsWith(r)){let l=s.slice(r.length);Xle.indexOf(r)!==-1&&eae.indexOf(l)!==-1&&(l=tae[l]),i.push(r),o.push(l);break}return t==="standard"&&i.forEach((s,r)=>{(s==="y"||s==="w")&&(i[r]="")}),{final:o.join(" "),initial:i.join(" ")}},Xy=e=>{const{final:t}=uk(e);let n="",i="",o="";return nae.indexOf(Yb(t))!==-1?(n=t[0],i=t[1],o=t.slice(2)):(i=t[0]||"",o=t.slice(1)||""),{head:n,body:i,tail:o}},Jb=e=>{const t=/(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/,n=/(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/,i=/(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/,o=/(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/,s=/(a|o|e|i|u|ü|ê)/,r=/(n|m)$/,l=[];return e.split(" ").forEach(u=>{t.test(u)?l.push("1"):n.test(u)?l.push("2"):i.test(u)?l.push("3"):o.test(u)?l.push("4"):s.test(u)||r.test(u)?l.push("0"):l.push("")}),l.join(" ")},Mae=(e,t)=>{const n=Yb(e).split(" "),i=Jb(t).split(" "),o=[];return n.forEach((s,r)=>{o.push(`${s}${i[r]}`)}),o.join(" ")},gz=(e,t)=>{const n=[];return e.split(" ").forEach(o=>{n.push(t?o[0]:o)}),n.join(" ")};function Iae(e,t,n){if(rae.indexOf(e)===-1)return _g(e);if(t===n&&t&&_g(t)!==t)return Yb(_g(e));if(n&&!sae[e].includes(n)){const i=_g(n);if(i!==n){const o=Jb(i),s=hz[e];for(let r in s)if(s[r].indexOf(Number(o))!==-1)return r}}}function Tae(e,t){if(e==="了"&&(!t||!zd.get(t)))return"liǎo"}function Eae(e,t){if(e==="々")return!t||!zd.get(t)?"tóng":zd.get(t).split(" ")[0]}function ST(e,t,n){return Eae(e,t)||Tae(e,t)||Iae(e,t,n)||_g(e)}const Lae=e=>typeof e!="string"?(console.error("The first param of pinyin is error: "+e+' is not assignable to type "string".'),!1):!0;function s8(e,t){return t instanceof RegExp?t.test(e):!0}const Nae=(e,t)=>{let n=t.nonZh;if(n==="removed")return e.filter(i=>i.isZh||!s8(i.origin,t.nonZhScope));if(n==="consecutive"){for(let i=e.length-2;i>=0;i--){const o=e[i],s=e[i+1];!o.isZh&&!s.isZh&&s8(o.origin,t.nonZhScope)&&s8(s.origin,t.nonZhScope)&&(o.origin+=s.origin,o.result+=s.result,s.delete=!0)}return e.filter(i=>!i.delete)}else return e},_T=(e,t)=>Ra(e)===1&&t.multiple?_ae(e,t.surname):!1,Dae=(e,t)=>{switch(t.pattern){case"pinyin":break;case"num":e.forEach(n=>{n.result=n.isZh?Jb(n.result):""});break;case"initial":e.forEach(n=>{n.result=n.isZh?uk(n.result,t.initialPattern).initial:""});break;case"final":e.forEach(n=>{n.result=n.isZh?uk(n.result,t.initialPattern).final:""});break;case"first":e.forEach(n=>{n.result=gz(n.result,n.isZh)});break;case"finalHead":e.forEach(n=>{n.result=n.isZh?Xy(n.result).head:""});break;case"finalBody":e.forEach(n=>{n.result=n.isZh?Xy(n.result).body:""});break;case"finalTail":e.forEach(n=>{n.result=n.isZh?Xy(n.result).tail:""});break}},Fae=(e,t)=>{switch(t.toneType){case"symbol":break;case"none":e.forEach(n=>{n.isZh&&(n.result=Yb(n.result))});break;case"num":{e.forEach(n=>{n.isZh&&(n.result=Mae(n.result,n.originPinyin))});break}}},Bae=(e,t)=>{t.v&&e.forEach(n=>{n.isZh&&(n.result=n.result.replace(/ü/g,typeof t.v=="string"?t.v:"v"))})},Rae=(e,t,n)=>{if(t.multiple&&Ra(n)===1){let i="";e=e.filter(o=>{const s=o.result!==i;return i=o.result,s})}return t.type==="array"?e.map(i=>i.result):t.type==="all"?e.map(i=>{const o=i.isZh?i.result:"",{initial:s,final:r}=uk(o,t.initialPattern),{head:l,body:a,tail:u}=Xy(o);let c=[];return o!==""&&(c=[o].concat(mz(i.origin,t.surname).filter(d=>d!==o))),{origin:i.origin,pinyin:o,initial:s,final:r,first:gz(i.result,i.isZh),finalHead:l,finalBody:a,finalTail:u,num:Number(Jb(i.originPinyin)),isZh:i.isZh,polyphonic:c,inZhRange:!!zd.get(i.origin),result:i.result}}):e.map(i=>i.result).join(t.separator)},Oae=(e,t)=>(t===!1&&e.forEach(n=>{n.origin==="一"?n.result=n.originPinyin="yī":n.origin==="不"&&(n.result=n.originPinyin="bù")}),e),$ae={pattern:"pinyin",toneType:"symbol",type:"string",multiple:!1,mode:"normal",removeNonZh:!1,nonZh:"spaced",v:!1,separator:" ",toneSandhi:!0,segmentit:2};function ck(e,t){if(t=Object.assign(Object.assign({},$ae),t||{}),!Lae(e))return e;if(e==="")return t.type==="array"||t.type==="all"?[]:"";t.surname===void 0&&(t.mode==="surname"?t.surname="all":t.surname="off"),t.type==="all"&&(t.pattern="pinyin"),t.pattern==="num"&&(t.toneType="none"),t.removeNonZh&&(t.nonZh="removed");let i=Array(Ra(e)),{list:o}=Sae(e,i,t.surname,t.segmentit,t.traditional);return o=Oae(o,t.toneSandhi),o=Nae(o,t),_T(e,t)&&(o=_T(e,t)),Dae(o,t),Fae(o,t),Bae(o,t),Rae(o,t,e)}var gC;(function(e){e[e.AllSegment=1]="AllSegment",e[e.AllArray=2]="AllArray",e[e.AllString=3]="AllString",e[e.PinyinSegment=4]="PinyinSegment",e[e.PinyinArray=5]="PinyinArray",e[e.PinyinString=6]="PinyinString",e[e.ZhSegment=7]="ZhSegment",e[e.ZhArray=8]="ZhArray",e[e.ZhString=9]="ZhString"})(gC||(gC={}));gC.AllSegment;const vz=[{name:"/new",desc:"commands.new.desc",noArgs:!0},{name:"/clear",desc:"commands.clear.desc",noArgs:!0},{name:"/login",desc:"commands.login.desc",noArgs:!0},{name:"/plan",desc:"commands.plan.desc"},{name:"/swarm",desc:"commands.swarm.desc"},{name:"/goal",desc:"commands.goal.desc"},{name:"/btw",desc:"commands.btw.desc",acceptsInput:!0},{name:"/compact",desc:"commands.compact.desc",acceptsInput:!0},{name:"/undo",desc:"commands.undo.desc",noArgs:!0},{name:"/fork",desc:"commands.fork.desc",noArgs:!0},{name:"/export",desc:"commands.export.desc",noArgs:!0},{name:"/status",desc:"commands.status.desc",noArgs:!0}];function MT(e){if(!e.startsWith("/"))return null;const t=e.indexOf(" ");return t===-1?{cmd:e,arg:""}:{cmd:e.slice(0,t),arg:e.slice(t+1)}}const Ac="skill:";function Pae(e,t){const n=e.find(r=>r.name===t);if(n!==void 0)return n;const i=`/${Ac}${t.slice(1)}`,o=e.find(r=>r.name===i);if(o!==void 0)return o;if(!t.startsWith(`/${Ac}`))return;const s=t.slice(1+Ac.length);if(!(s.length===0||s.includes(" ")))return e.find(r=>r.isSkill===!0&&a7(r.name)===s)}function a7(e){const t=e.startsWith("/")?e.slice(1):e;return t.startsWith(Ac)?t.slice(Ac.length):t}function zae(e,t,n){for(const i of[`/${Ac}${t}`,`/${t}`]){if(e===i)return;if(e.startsWith(`${i} `))return e.slice(i.length+1).trim()||void 0}return(n??"").trim()||void 0}function yz(e=[]){const t=e.map(n=>({name:n.source==="builtin"?`/${n.name}`:`/${Ac}${n.name}`,desc:n.description,isSkill:!0,acceptsInput:!0}));return[...vz,...t]}const IT=new Map;function kz(e){let t=IT.get(e);if(!t){const n=ck(e,{toneType:"none",type:"array"}),i=ck(e,{pattern:"first",toneType:"none",type:"array"});t=jae(e,n,i),IT.set(e,t)}return t}const TT={full:[],first:[],offsets:[],literal:[]};function jae(e,t,n){if(t.length!==n.length)return TT;const i=[],o=[];let s=0;for(let r=0;r0&&e.slice(s,s+l.length).toLowerCase()===l.toLowerCase()?(o.push(!0),s+=l.length):(o.push(!1),s+=Array.from(e.slice(s))[0]?.length??0)}return i.push(s),s!==e.length?TT:{full:t,first:n,offsets:i,literal:o}}function vC(e,t,n,i){const o=e[t];let s=0,r=-1,l=-1,a=0,u=0;for(let f=0;f=0)return vC(i,"first",o,o+t.length);const s=i.full.join("").indexOf(t);if(!(s<0))return vC(i,"full",s,s+t.length)}function Vae(e,t,n){const i=e.trim().replace(/^\//,"").toLowerCase();if(i==="")return{};const o=qae(t,i),s=Uae(n,i);return{name:o?[o]:void 0,desc:s?[s]:void 0}}const Kae={keys:[{name:"name",weight:3},{name:"desc",weight:1},{name:"pinyinFull",weight:1},{name:"pinyinFirst",weight:1}],includeScore:!0,includeMatches:!0,ignoreLocation:!0,threshold:.4};function Zae(e,t){const n=e.toLowerCase(),i=t.toLowerCase();return n===i?0:n.startsWith(i)?1:2}function LT(e){const t=[...e].sort((i,o)=>i[0]-o[0]),n=[];for(const i of t){const o=n[n.length-1];o&&i[0]<=o[1]?o[1]=Math.max(o[1],i[1]):n.push([...i])}return n}function Gae(e,t){const n=[],i=[];for(const o of t??[])for(const[s,r]of o.indices)if(o.key==="name")n.push([s+1,r+2]);else if(o.key==="desc")i.push([s,r+1]);else if(o.key==="pinyinFirst"||o.key==="pinyinFull"){const l=vC(kz(e.desc),o.key==="pinyinFirst"?"first":"full",s,r+1);l&&i.push(l)}return{name:n.length>0?LT(n):void 0,desc:i.length>0?LT(i):void 0}}function Qae(e,t=vz,n=i=>i.desc){const i=e.trim().replace(/^\//,"");if(i==="")return t.map(s=>({item:s,ranges:{}}));const o=t.map((s,r)=>{const l=n(s),a=Hae(l);return{index:r,item:s,name:s.name.replace(/^\//,""),desc:l,pinyinFull:a.full,pinyinFirst:a.first}});return new Zle(o,Kae).search(i).map(({item:s,score:r,matches:l})=>({doc:s,score:r??1,rank:Zae(s.name,i),ranges:Gae(s,l)})).sort((s,r)=>s.rank!==r.rank?s.rank-r.rank:s.score!==r.score?s.score-r.score:s.doc.index-r.doc.index).map(({doc:s,ranges:r})=>({item:s.item,ranges:r}))}function Yae(e,t,n,i,o){const s=n-o-(t.right+i),r=t.left-i-o,l=e>s&&r>s,a=Math.min(e,l?r:s);return{left:l?t.left-i-a:t.right+i,maxWidth:a,flipped:l}}let Jae=0;function Xae(e,t){const n=++Jae;return e.pendingSwarmBySession[t]=n,n}function u7(e,t,n){return n===void 0||e.pendingSwarmBySession[t]!==n?!1:(delete e.pendingSwarmBySession[t],!0)}function yC(e,t,n){e.pendingSwarmBySession[t]===void 0&&(e.swarmModeBySession[t]=n)}function NT(e,t){const n=new Set(e.map(u=>u.id)),i=t.filter(u=>u.kind==="subagent"&&!n.has(u.id));if(i.length===0)return e;const o=new Map(e.map(u=>[u.id,u])),s=new Map(e.filter(u=>u.kind==="subagent"&&u.agentId!==void 0).map(u=>[u.agentId,u])),r=new Set,l=i.map(u=>{const c=u.backgroundTaskId!==void 0?o.get(u.backgroundTaskId):void 0,d=s.get(u.agentId??u.id),f=(d?.status==="running"&&c?.status!=="running"?d:c)??d;if(f===void 0)return u;r.add(f.id);const h=u.status==="running"&&f.status!=="running";return{...u,status:u.status==="running"?f.status:u.status,subagentPhase:h?f.status==="completed"?"completed":"failed":u.subagentPhase,completedAt:f.completedAt??u.completedAt,completedAtEstimated:f.completedAt!==void 0?void 0:u.completedAtEstimated,outputPreview:f.outputPreview??u.outputPreview,outputBytes:f.outputBytes??u.outputBytes,model:u.model??f.model,thinkingEffort:u.thinkingEffort??f.thinkingEffort,backgroundTaskId:f.id}});return[...e.filter(u=>!r.has(u.id)),...l]}function eue(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function tue(e,t=eue()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyF"||e.key.toLowerCase()==="f")&&!e.defaultPrevented}const nue=new Map([["ς","σ"],["ß","ss"],["ſ","s"],["ff","ff"],["fi","fi"],["fl","fl"],["ffi","ffi"],["ffl","ffl"],["ſt","st"],["st","st"],["ʼn","ʼn"],["µ","μ"],["K","k"],["Å","å"],["Ω","ω"]]);function iue(e){return e==="pre"||e==="pre-wrap"||e==="break-spaces"?"preserve":e==="pre-line"?"pre-line":"collapse"}function oue(e,t){if(t==="preserve")return{text:e,map:Array.from({length:e.length},(r,l)=>l)};const n=t==="collapse"?/[\t\n\f\r ]/:/[\t ]/;let i="";const o=[];let s=!1;for(let r=0;rDT(c.text)),i="\0";let o="";const s=[];for(let c=0;c0&&e[c].gapBefore&&(o+=i),s[c]=o.length,o+=n[c].folded;const r=lue(DT(t).folded);if(r===null)return;const l=new RegExp(r,"g");function a(c){let d=0,f=s.length-1,h=0;for(;d<=f;){const m=d+f>>1;s[m]<=c?(h=m,d=m+1):f=m-1}return h}let u;for(;;){const c=l.exec(o);if(c===null)return;const d=c.index,f=d+c[0].length-1,h=a(d),m=a(f),g=n[h].map[d-s[h]],v=n[m].map[f-s[m]],y={startSeg:h,startOffset:g.start,endSeg:m,endOffset:v.start+v.length};u!==void 0&&u.startSeg===y.startSeg&&u.startOffset===y.startOffset&&u.endSeg===y.endSeg&&u.endOffset===y.endOffset||(u=y,yield y)}}const rue=/[.*+?^${}()|[\]\\]/g;function lue(e){const t=[];let n=0;for(;n=fue)return{ranges:a,truncated:!0};a.push(f)}}return{ranges:a,truncated:!1}}const wz="kimi-transcript-search",kC="kimi-transcript-search-current";function Cz(){return globalThis.CSS?.highlights??null}function r8(e,t){const n=Cz(),i=globalThis.Highlight;if(!n||!i)return;if(e.length===0){bC();return}const o=new i;for(const r of e)o.add(r);n.set(wz,o);const s=e[t];if(s!==void 0){const r=new i;r.add(s),n.set(kC,r)}else n.delete(kC)}function bC(){const e=Cz();e?.delete(wz),e?.delete(kC)}let Az=null;function pue(e){e!==null&&(Az=e)}let BT=0,Z2=null;async function wC(e){const t=++BT,n=(async()=>{const o=await e();t===BT&&pue(o)})(),i=(async()=>{await n,Z2!==null&&Z2.seq>t&&await Z2.promise})();return Z2={seq:t,promise:i},i}let xz=null;function mue(e){xz=e}const gue=5e3;function vue(e){return Promise.race([e(),new Promise(t=>{setTimeout(()=>t(null),gue)})])}function G2(){return`${Az==="global"?"https://www.kimi.ai":"https://www.kimi.com"}/code?from=${ep?"kimi_code_desktop":"kimi_code_web"}`}function Ov(){const e=xz;if(e===null){window.open(G2(),"_blank","noopener");return}const t=()=>vue(e);if(ep){wC(t).then(()=>{window.open(G2(),"_blank","noopener")});return}const n=window.open("","_blank");if(n===null){window.open(G2(),"_blank","noopener");return}try{n.opener=null}catch{}wC(t).then(()=>{try{n.location.href=G2()}catch{}})}function yue(e,t,n){if(e.length===0)return null;const i=new Set(e),o=t.filter(r=>i.has(r)),s=e.filter(r=>!t.includes(r));return s.length===0&&o.length===t.length?null:t.length===0&&n!==void 0?s.toSorted((r,l)=>(n.get(l)??Number.NEGATIVE_INFINITY)-(n.get(r)??Number.NEGATIVE_INFINITY)):[...s,...o]}function kue(e,t){const n=new Map(t.map((i,o)=>[i,o]));return e.toSorted((i,o)=>(n.get(i.id)??-1)-(n.get(o.id)??-1))}function bue(e,t,n,i="before"){const o=e.indexOf(t),s=e.indexOf(n);if(o===-1||s===-1||o===s)return e;const r=[...e];r.splice(o,1);const l=o(t.get(i.id)??Number.NEGATIVE_INFINITY)-(t.get(n.id)??Number.NEGATIVE_INFINITY))}function Cue(e,t){let n=!1;const i={...e};for(const[o,s]of t)s>(i[o]??Number.NEGATIVE_INFINITY)&&(i[o]=s,n=!0);return{next:i,changed:n}}function Aue(e,t){const n=new Map;for(const i of e){if(i.parentSessionId||i.archived)continue;const o=new Date(i.updatedAt).getTime();if(Number.isNaN(o))continue;const s=t(i);o>(n.get(s)??Number.NEGATIVE_INFINITY)&&n.set(s,o)}return n}function xue(e,t){const n=new Map;for(const i of e){const o=t[i.id]??Number.NEGATIVE_INFINITY,s=i.lastOpenedAt?Date.parse(i.lastOpenedAt):Number.NaN,r=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s;n.set(i.id,Math.max(o,r))}return n}function Sue(e,t){const n=Object.keys(e);if(!n.some(o=>!t.has(o)))return{next:e,changed:!1};const i={};for(const o of n)t.has(o)&&(i[o]=e[o]);return{next:i,changed:!0}}const _ue=5;function Mue(e,t,n,i=_ue){if(e.length<=i)return e;const o=e.slice(0,i);if(t&&!o.some(s=>s.id===t)){const s=e.find(r=>r.id===t);s&&(o[i-1]=s)}return o}const Iue={class:"error-boundary-title"},Tue=ut({__name:"ErrorBoundary",props:{closable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=t,{t:i}=Kt(),o=U(!1);WO(()=>{o.value=!0});function s(){o.value=!1}return(r,l)=>o.value?(k(),L("div",{key:1,class:ze(["error-boundary",{fullscreen:e.fullscreen}]),role:"alert"},[e.closable?(k(),de(p(fn),{key:0,class:"error-boundary-close",size:"sm",label:p(i)("common.close"),tooltip:p(i)("common.close"),onClick:l[0]||(l[0]=a=>n("close"))},{default:ce(()=>[K(p(Ae),{name:"close",size:"sm"})]),_:1},8,["label","tooltip"])):ne("",!0),K(p(Ae),{class:"error-boundary-icon",name:"alert-triangle",size:"lg"}),x("p",Iue,B(p(i)("common.errorBoundaryTitle")),1),K(p(rn),{size:"sm",onClick:s},{default:ce(()=>[He(B(p(i)("common.errorBoundaryRetry")),1)]),_:1})],2)):Qn(r.$slots,"default",{key:0},void 0,!0)}}),Sz=_t(Tue,[["__scopeId","data-v-3c47f494"]]);var Eue=Object.create,c7=Object.defineProperty,Lue=Object.getOwnPropertyDescriptor,_z=Object.getOwnPropertyNames,Nue=Object.getPrototypeOf,Due=Object.prototype.hasOwnProperty,Mz=(e,t)=>function(){return t||(0,e[_z(e)[0]])((t={exports:{}}).exports,t),t.exports},Fue=e=>{let t={};for(var n in e)c7(t,n,{get:e[n],enumerable:!0});return t},Bue=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=_z(t),s=0,r=o.length,l;st[a]).bind(null,l),enumerable:!(i=Lue(t,l))||i.enumerable});return e},Iz=(e,t,n)=>(n=e!=null?Eue(Nue(e)):{},Bue(c7(n,"default",{value:e,enumerable:!0}),e));function Rue(e,t,n,i){const o=Number(e[t].meta.id+1).toString();let s="";return typeof i.docId=="string"&&(s=`-${i.docId}-`),s+o}function Oue(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function $ue(e,t,n,i,o){const s=o.rules.footnote_anchor_name(e,t,n,i,o),r=o.rules.footnote_caption(e,t,n,i,o);let l=s;return e[t].meta.subId>0&&(l+=`:${e[t].meta.subId}`),`${r}`}function Pue(e,t,n){return(n.xhtmlOut?`
        -`:`
        -`)+`
        -
          -`}function zue(){return`
        -
        -`}function jue(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`
      1. `}function Hue(){return`
      2. -`}function Wue(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),` ↩︎`}function que(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=$ue,e.renderer.rules.footnote_block_open=Pue,e.renderer.rules.footnote_block_close=zue,e.renderer.rules.footnote_open=jue,e.renderer.rules.footnote_close=Hue,e.renderer.rules.footnote_anchor=Wue,e.renderer.rules.footnote_caption=Oue,e.renderer.rules.footnote_anchor_name=Rue;function i(l,a,u,c){const d=l.bMarks[a]+l.tShift[a],f=l.eMarks[a];if(d+4>f||l.src.charCodeAt(d)!==91||l.src.charCodeAt(d+1)!==94)return!1;let h;for(h=d+2;h=f||l.src.charCodeAt(++h)!==58)return!1;if(c)return!0;h++,l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.refs||(l.env.footnotes.refs={});const m=l.src.slice(d+2,h-2);l.env.footnotes.refs[`:${m}`]=-1;const g=new l.Token("footnote_reference_open","",1);g.meta={label:m},g.level=l.level++,l.tokens.push(g);const v=l.bMarks[a],y=l.tShift[a],b=l.sCount[a],A=l.parentType,w=h,M=l.sCount[a]+h-(l.bMarks[a]+l.tShift[a]);let N=M;for(;h=u||l.src.charCodeAt(c)!==94||l.src.charCodeAt(c+1)!==91)return!1;const d=c+2,f=t(l,c+1);if(f<0)return!1;if(!a){l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.list||(l.env.footnotes.list=[]);const h=l.env.footnotes.list.length,m=[];l.md.inline.parse(l.src.slice(d,f),l.md,l.env,m);const g=l.push("footnote_ref","",0);g.meta={id:h},l.env.footnotes.list[h]={content:l.src.slice(d,f),tokens:m}}return l.pos=f+1,l.posMax=u,!0}function s(l,a){const u=l.posMax,c=l.pos;if(c+3>u||!l.env.footnotes||!l.env.footnotes.refs||l.src.charCodeAt(c)!==91||l.src.charCodeAt(c+1)!==94)return!1;let d;for(d=c+2;d=u)return!1;d++;const f=l.src.slice(c+2,d-1);if(typeof l.env.footnotes.refs[`:${f}`]>"u")return!1;if(!a){l.env.footnotes.list||(l.env.footnotes.list=[]);let h;l.env.footnotes.refs[`:${f}`]<0?(h=l.env.footnotes.list.length,l.env.footnotes.list[h]={label:f,count:0},l.env.footnotes.refs[`:${f}`]=h):h=l.env.footnotes.refs[`:${f}`];const m=l.env.footnotes.list[h].count;l.env.footnotes.list[h].count++;const g=l.push("footnote_ref","",0);g.meta={id:h,subId:m,label:f}}return l.pos=d,l.posMax=u,!0}function r(l){let a,u,c,d=!1;const f={};if(!l.env.footnotes||(l.tokens=l.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,u=[],c=m.meta.label,!1):m.type==="footnote_reference_close"?(d=!1,f[":"+c]=u,!1):(d&&u.push(m),!d)}),!l.env.footnotes.list))return;const h=l.env.footnotes.list;l.tokens.push(new l.Token("footnote_block_open","",1));for(let m=0,g=h.length;m0?h[m].count:1;for(let A=0;A?@[\]^_`{|}~-])/g;function Zue(e,t){const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==94||t||i+2>=n)return!1;e.pos=i+1;let o=!1;for(;e.pos{t.exports=function(g,v){v=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},v),g.core.ruler.after("inline","github-task-lists",function(y){for(var b=y.tokens,A=0,w=2;w=0;b--)if(g[b].level===y)return b;return-1}function o(g,v){return d(g[v])&&f(g[v-1])&&h(g[v-2])&&m(g[v])}function s(g,v,y,b){var A=y.idPrefix+v;g.children[0].content=g.children[0].content.slice(3),g.children.unshift(l(A,b)),g.children.push(a(b)),g.children.unshift(r(g,A,y,b)),y.divWrap&&(g.children.unshift(u(y,b)),g.children.push(c(b)))}function r(g,v,y,b){var A=new b("checkbox_input","input",0);return A.attrs=[["type","checkbox"],["id",v]],/^\[[xX]\][ \u00A0]/.test(g.content)===!0&&A.attrs.push(["checked","true"]),y.disabled===!0&&A.attrs.push(["disabled","true"]),A}function l(g,v){var y=new v("label_open","label",1);return y.attrs=[["for",g]],y}function a(g){return new g("label_close","label",-1)}function u(g,v){var y=new v("checkbox_open","div",0);return y.attrs=[["class",g.divClass]],y}function c(g){return new g("checkbox_close","div",-1)}function d(g){return g.type==="inline"}function f(g){return g.type==="paragraph_open"}function h(g){return g.type==="list_item_open"}function m(g){return/^\[[xX \u00A0]\][ \u00A0]/.test(g.content)}})});const Yue=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Jue(e){return e>=55296&&e<=57343||e>1114111?65533:Yue.get(e)??e}function Xue(e){const t=atob(e),n=t.length&-2,i=new Uint16Array(n/2);for(let o=0,s=0;o=Eo.ZERO&&e<=Eo.NINE}function tce(e){return e>=Eo.UPPER_A&&e<=Eo.UPPER_F||e>=Eo.LOWER_A&&e<=Eo.LOWER_F}function nce(e){return e>=Eo.UPPER_A&&e<=Eo.UPPER_Z||e>=Eo.LOWER_A&&e<=Eo.LOWER_Z||CC(e)}function ice(e){return e===Eo.EQUALS||nce(e)}var Rs;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Rs||(Rs={}));var fd;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(fd||(fd={}));var oce=class{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=Rs.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=fd.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=Rs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Rs.EntityStart:return e.charCodeAt(t)===Eo.NUM?(this.state=Rs.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Rs.NamedEntity,this.stateNamedEntity(e,t));case Rs.NumericStart:return this.stateNumericStart(e,t);case Rs.NumericDecimal:return this.stateNumericDecimal(e,t);case Rs.NumericHex:return this.stateNumericHex(e,t);case Rs.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|RT)===Eo.LOWER_X?(this.state=Rs.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Rs.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t>14;for(;t>7;if(this.runConsumed===0){const l=i&Rr.JUMP_TABLE;if(e.charCodeAt(t)!==l)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const l=this.runConsumed-1,a=n[this.treeIndex+1+(l>>1)],u=l%2===0?a&255:a>>8&255;if(e.charCodeAt(t)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(r>>1),i=n[this.treeIndex],o=(i&Rr.VALUE_LENGTH)>>14}if(t>=e.length)break;const s=e.charCodeAt(t);if(s===Eo.SEMI&&o!==0&&(i&Rr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.treeIndex=rce(n,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===fd.Attribute&&(o===0||ice(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],o=(i&Rr.VALUE_LENGTH)>>14,o!==0){if(s===Eo.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==fd.Strict&&(i&Rr.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&Rr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~(Rr.VALUE_LENGTH|Rr.FLAG13):i[e+1],n),t===3&&this.emitCodePoint(i[e+2],n),n}end(){switch(this.state){case Rs.NamedEntity:return this.result!==0&&(this.decodeMode!==fd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rs.NumericDecimal:return this.emitNumericEntity(0,2);case Rs.NumericHex:return this.emitNumericEntity(0,3);case Rs.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rs.EntityStart:return 0}}};function sce(e){let t="";const n=new oce(e,i=>t+=String.fromCodePoint(i));return function(o,s){let r=0,l=0;for(;(l=o.indexOf("&",l))>=0;){t+=o.slice(r,l),n.startEntity(s);const u=n.write(o,l+1);if(u<0){r=l+n.end();break}r=l+u,l=u===0?r+1:r}const a=t+o.slice(r);return t="",a}}function rce(e,t,n,i){const o=(t&Rr.BRANCH_LENGTH)>>7,s=t&Rr.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}const r=o+1>>1;let l=0,a=o-1;for(;l<=a;){const u=l+a>>>1,c=e[n+(u>>1)]>>(u&1)*8&255;if(ci)a=u-1;else return e[n+r+u]}return-1}const lce=sce(ece);function d7(e,t=fd.Legacy){return lce(e,t)}var ace=Iz(Que());const OT={};function uce(e){let t=OT[e];if(t)return t;t=OT[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),s+=6;continue}}if((l&248)===240&&s+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}Xb.defaultChars=";/?:@&=+$,#";Xb.componentChars="";var AC=Xb;const $T={};function cce(e){let t=$T[e];if(t)return t;t=$T[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const i=cce(t);let o="";for(let s=0,r=e.length;s=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1=56320&&a<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}e4.defaultChars=";/?:@&=+$,-_.!~*'()#";e4.componentChars="-_.!~*'()";var Tz=e4;function f7(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function dk(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const dce=/^([a-z0-9.+-]+:)/i,fce=/:[0-9]*$/,hce=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pce=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),mce=["'"].concat(pce),PT=["%","/","?",";","#"].concat(mce),zT=["/","?","#"],gce=255,jT=/^[+a-z0-9A-Z_-]{0,63}$/,vce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,HT={javascript:!0,"javascript:":!0},WT={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yce(e,t){if(e&&e instanceof dk)return e;const n=new dk;return n.parse(e,t),n}dk.prototype.parse=function(e,t){let n,i,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const u=hce.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=dce.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&HT[r])&&(s=s.substr(2),this.slashes=!0)),!HT[r]&&(o||r&&!WT[r])){let u=-1;for(let m=0;m127?b+="x":b+=y[A];if(!b.match(jT)){const A=m.slice(0,g),w=m.slice(g+1),M=y.match(vce);M&&(A.push(M[1]),w.unshift(M[2])),w.length&&(s=w.join(".")+s),this.hostname=A.join(".");break}}}}this.hostname.length>gce&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const a=s.indexOf("?");return a!==-1&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),WT[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};dk.prototype.parseHost=function(e){let t=fce.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var h7=yce,Ez=Fue({decode:()=>AC,encode:()=>Tz,format:()=>f7,parse:()=>h7}),kce=Object.defineProperty,Lz=e=>{let t={};for(var n in e)kce(t,n,{get:e[n],enumerable:!0});return t},Is=class{type;tag;attrs;map;nesting;level;children;content;markup;info;meta;block;hidden;constructor(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},bce=Lz({arrayReplaceAt:()=>Mce,assign:()=>Sce,countLines:()=>$o,escapeHtml:()=>Rce,escapeRE:()=>$ce,fromCodePoint:()=>Q0,has:()=>xce,isMdAsciiPunct:()=>pk,isPunctChar:()=>hk,isPunctCode:()=>xC,isSpace:()=>_ce,isString:()=>Cce,isValidEntityCode:()=>n4,isWhiteSpace:()=>G0,lib:()=>Pce,mdurl:()=>Ez,normalizeReference:()=>t4,ucmicro:()=>fk,unescapeAll:()=>Y0,unescapeMd:()=>Lce});const fk={Any:/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc:/[\0-\x1F\x7F-\x9F]/,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,S:/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z:/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/};function wce(e){return Object.prototype.toString.call(e)}function Cce(e){return wce(e)==="[object String]"}const Ace=Object.prototype.hasOwnProperty;function xce(e,t){return Ace.call(e,t)}function Sce(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(i=>{e[i]=n[i]})}}),e}function _ce(e){return e===9||e===32}function G0(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function hk(e){return fk.P.test(e)||fk.S.test(e)}const qT=new Map;function xC(e){if(pk(e))return!0;if(e>=0&&e<128)return!1;const t=qT.get(e);if(t!==void 0)return t;const n=hk(String.fromCharCode(e));return qT.set(e,n),n}function pk(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function t4(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Mce(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function n4(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Q0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Nz=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,Ice=new RegExp(`${Nz.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Tce=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ece(e,t){if(t.charCodeAt(0)===35&&Tce.test(t)){const i=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return n4(i)?Q0(i):e}const n=d7(e);return n!==e?n:e}function Lce(e){return e.includes("\\")?e.replace(Nz,"$1"):e}function Y0(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(Ice,(t,n,i)=>n||Ece(t,i))}const Nce=/[&<>"]/,Dce=/[&<>"]/g,Fce={"&":"&","<":"<",">":">",'"':"""};function Bce(e){return Fce[e]}function Rce(e){return Nce.test(e)?e.replace(Dce,Bce):e}const Oce=/[.?*+^$[\]\\(){}|-]/g;function $ce(e){return e.replace(Oce,"\\$&")}const Pce={mdurl:Ez,ucmicro:fk};function $o(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(` -`,n+1))!==-1;)t++;return t}const zce=/(?:^|\n)[ \t]{0,3}\[\^[^\]\n]+\]:/m,jce=/(?:^|\n)[ \t]{0,3}\*\[[^\]\n]+\]:/m,Hce=/(?:^|\n)[ \t]{0,3}\[(?!\^)(?:\\[\s\S]|[^\]\\[])+\][ \t]*:/m,p7=["references","footnotes","abbreviations","abbr","abbrs"],m7=Symbol.for("markdown-it-ts.global-state"),g7=Object.prototype.hasOwnProperty;function UT(e){return e==="reference-definition"||e==="footnote-definition"||e==="abbreviation-definition"}function Pa(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _d(e){if(Array.isArray(e))return e.map(t=>_d(t));if(Pa(e)){const t={};for(const n of Object.keys(e))t[n]=_d(e[n]);return t}return e}function mk(e){return Array.isArray(e)?e.map((t,n)=>String(n)):Pa(e)?Object.keys(e):[]}function SC(e,t){if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ns.has(r)?!SC(o[r],Dz(i.value,r)):!0)}}function Lc(e){const t=v7(e);if(t){for(const n of p7){const i=t.snapshot[n];if(!i){delete e[n];continue}if(i.ownedKeys){qce(e,n,i);continue}i.existed?e[n]=Wce(e[n],i.value):delete e[n]}delete e[m7]}}function l8(e){return{area:e,attempted:!0,matched:!1,attemptMs:0,blocks:0,headings:0,paragraphs:0,lists:0,fences:0,paragraphCacheHits:0,paragraphCacheMisses:0,paragraphCacheBypasses:0,listCacheHits:0,listCacheMisses:0,fenceCacheHits:0,fenceCacheMisses:0}}const _C=Symbol.for("markdown-it-ts.diagnostics");function Pv(e,t){if(e)try{const n=e[_C];if(n&&typeof n=="object")return n;if(!t)return;const i={};return e[_C]=i,i}catch{return}}function lc(e){return Pv(e,!1)}function Vce(e){if(e)try{const t=e[_C];t&&typeof t=="object"&&(delete t.strategy,delete t.chunk,delete t.unbounded,delete t.editable,delete t.stockFast)}catch{}}function Or(e){Vce(e)}function og(e,t){const n=Pv(e,!0);n&&(n.stockFast=t)}function ss(e,t){const n=Pv(e,!0);n&&(n.strategy=t)}function a8(e,t){const n=Pv(e,!0);n&&(n.chunk=t)}function Fz(e,t){const n=Pv(e,!0);n&&(n.unbounded=t)}const Kce=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zce=/[\0-\x1F\x7F-\x9F]/,Gce=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Qce=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var Yce=class{src_Any=Kce.source;src_Cc=Zce.source;src_Z=Qce.source;src_P=Gce.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const i=this.escapeRE(e),o=this.escapeRE(t),s=`(?:(?!${this.src_ZCc}|${i}|${o}).)`;let r=`${i}${s}{0,1000}${o}`;for(let l=2;l<=n;l++)r=`${i}(?:${s}|${r}){0,1000}${o}`;return r}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},u8={validate:(e,t,n)=>{const i=n.re.get_http_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Jce={"http:":u8,"https:":u8,"ftp:":u8,"//":{validate:function(e,t,n){const i=n.re.get_relative_proto_validator();i.lastIndex=t;const o=i.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const i=n.re.get_mailto_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Xce="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",ede="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function tde(){const e=ede.split("|");return Xce.split("|").forEach(t=>{const n=t.indexOf(":"),i=t.slice(0,n);for(const o of t.slice(n+1))e.push(i+o)}),e}var nde={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:tde(),urlAuth:!1,maxLength:1e4},VT=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,i){const o=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=o,this.text=o,this.url=o}},Bz=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:t,...n}=e;this.__opts__={...nde,...n},this.__schemas__={...Jce},this.re=t||new Yce,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(i,o)=>o.normalize(i),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const i=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(i.lastIndex=0;(t=i.exec(e))!==null;){const s=e.slice(Math.max(0,t.index-65),t.index);if(o.test(s))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let i,o,s,r,l,a,u=!1,c=!1,d=!1,f=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(i=this.re.get_fuzzy_link_search(),i.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,s=this.re.get_mail_name_validator());;){const h=Math.max(f-1,0);if(o&&s&&!d&&(!l||l.index=f)break;o.lastIndex=f)break;i.lastIndexm.lastIndex))&&(m=r);let g;if(!u)for(;;){if(!a){n.lastIndexm.index)break;const b=a;a=void 0;const A=this.testSchemaAt(e,b.schema,b.lastIndex);if(A){g={schema:b.schema,index:b.index,lastIndex:b.lastIndex+A};break}}let v=g;if((!v||l&&(l.indexv.lastIndex))&&(v=l),(!v||r&&(r.indexv.lastIndex))&&(v=r),!v)break;v===l?l=void 0:v===r&&(r=void 0);const y=new VT(e,v.schema,v.index,v.lastIndex);y.schema?this.__schemas__[y.schema].normalize(y,this):this.normalize(y),t.push(y),f=v.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new VT(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[i.schema].normalize(i,this),i}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},ide=Mz({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,f=/[^\0-\x7F]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=35,v=Math.floor,y=String.fromCharCode;function b(P){throw new RangeError(m[P])}function A(P,O){const R=[];let z=P.length;for(;z--;)R[z]=O(P[z]);return R}function w(P,O){const R=P.split("@");let z="";R.length>1&&(z=R[0]+"@",P=R[1]),P=P.replace(h,".");const H=A(P.split("."),O).join(".");return z+H}function M(P){const O=[];let R=0;const z=P.length;for(;R=55296&&H<=56319&&RString.fromCodePoint(...P),T=function(P){return P>=48&&P<58?26+(P-48):P>=65&&P<91?P-65:P>=97&&P<123?P-97:36},C=function(P,O){return P+22+75*(P<26)-((O!=0)<<5)},I=function(P,O,R){let z=0;for(P=R?v(P/700):P>>1,P+=v(P/O);P>g*26>>1;z+=36)P=v(P/g);return v(z+(g+1)*P/(P+38))},S=function(P){const O=[],R=P.length;let z=0,H=128,j=72,Q=P.lastIndexOf("-");Q<0&&(Q=0);for(let ae=0;ae=128&&b("not-basic"),O.push(P.charCodeAt(ae));for(let ae=Q>0?Q+1:0;ae=R&&b("invalid-input");const ve=T(P.charCodeAt(ae++));ve>=36&&b("invalid-input"),ve>v((2147483647-z)/oe)&&b("overflow"),z+=ve*oe;const Te=te<=j?1:te>=j+26?26:te-j;if(vev(2147483647/Fe)&&b("overflow"),oe*=Fe}const G=O.length+1;j=I(z-W,G,W==0),v(z/G)>2147483647-H&&b("overflow"),H+=v(z/G),z%=G,O.splice(z++,0,H)}return String.fromCodePoint(...O)},E=function(P){const O=[];P=M(P);const R=P.length;let z=128,H=0,j=72;for(const W of P)W<128&&O.push(y(W));const Q=O.length;let ae=Q;for(Q&&O.push("-");ae=z&&oev((2147483647-H)/G)&&b("overflow"),H+=(W-z)*G,z=W;for(const oe of P)if(oe2147483647&&b("overflow"),oe===z){let te=H;for(let ve=36;;ve+=36){const Te=ve<=j?1:ve>=j+26?26:ve-j;if(te32))return s;if(i===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=Y0(e.slice(t,o)),s.pos=o,s.ok=!0),s}var Oz=b7;const e9=-2;function ode(e,t,n,i){let o=1,s=t+1;for(;s=0&&t+1>=c)return-1;const d=l.indexOf("]",t+1);if(d<0||d>=a)return e.linkLabelNoCloseFrom=t+1,-1;const f=ode(l,t,a,n);if(f!==e9)return f;for(e.pos=t+1;e.pos=n)return r;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return r;t++,s++,l===40&&(l=41),r.marker=l}for(;s=0?e.attrs[n][1]:null}function lde(e,t,n){const i=i4(e,t);i<0?A7(e,[t,n]):e.attrs[i][1]=`${e.attrs[i][1]} ${n}`}var ade=Lz({attrGet:()=>rde,attrIndex:()=>i4,attrJoin:()=>lde,attrPush:()=>A7,attrSet:()=>sde,parseLinkDestination:()=>b7,parseLinkLabel:()=>w7,parseLinkTitle:()=>C7});function ude(e){return e.includes("\r")||e.includes("\0")}function Pz(e){return typeof e=="string"?e:e.toString()}function cde(e){if(e.inlineMode){const t=new Is("inline","",0);t.content=Pz(e.src),t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}const dde=/^([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])?)*)$/,fde=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function hde(e,t){let n=e.pos;const i=e.src;if(i.charCodeAt(n)!==60)return!1;const o=n,s=e.posMax;for(;;){if(++n>=s)return!1;const l=i.charCodeAt(n);if(l===60)return!1;if(l===62)break}const r=i.slice(o+1,n);if(fde.test(r)){const l=e.md.normalizeLink(r);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(dde.test(r)){const l=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}var zz=hde;function pde(e,t){const n=e.src;let i=e.pos;if(n.charCodeAt(i)!==96)return!1;const o=i;i++;const s=e.posMax;for(;i2&&f.charCodeAt(0)===32&&f.charCodeAt(f.length-1)===32&&(f=f.slice(1,-1)),d.content=f}return e.pos=a,!0}e.backticks[c]=u}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=l,!0}var jz=pde;function KT(e){const t={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let r=0;ra;u-=s[u]+1){const d=e[u];if(d.marker===l.marker&&d.open&&d.end<0){let f=!1;if((d.close||l.open)&&(d.length+l.length)%3===0&&(d.length%3!==0||l.length%3!==0)&&(f=!0),!f){const h=u>0&&!e[u-1].open?s[u-1]+1:0;s[r]=r-u+h,s[u]=h,l.open=!1,d.end=r,d.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=c)}}function mde(e){const t=e.tokens_meta,n=e.tokens_meta.length;KT(e.delimiters);for(let i=0;i=0;o--){const s=t[o],r=s.marker;if(r!==95&&r!==42||s.end===-1)continue;const l=t[s.end],a=s.token,u=l.token,c=o>0&&t[o-1].end===s.end+1&&t[o-1].marker===r&&t[o-1].token===a-1&&t[s.end+1].token===u+1,d=r===42?Hz:Wz,f=i[a];c?(f.type="strong_open",f.tag="strong",f.nesting=1,f.markup=d+d,f.content=""):(f.type="em_open",f.tag="em",f.nesting=1,f.markup=d,f.content="");const h=i[u];c?(h.type="strong_close",h.tag="strong",h.nesting=-1,h.markup=d+d,h.content=""):(h.type="em_close",h.tag="em",h.nesting=-1,h.markup=d,h.content=""),c&&(i[t[o-1].token].content="",i[t[s.end+1].token].content="",o--)}}function yde(e){const t=e.tokens_meta,n=e.tokens_meta.length;ZT(e,e.delimiters);for(let i=0;i=48&&e<=57}function kde(e){const t=e|32;return x7(e)||t>=97&&t<=102}function Uz(e){const t=e|32;return t>=97&&t<=122}function bde(e){return Uz(e)||x7(e)}function wde(e,t,n){let i=t+2;if(i>=n)return null;let o=!1,s=7,r=i;for((e.charCodeAt(i)|32)===120&&(o=!0,s=6,i++,r=i);i=n||e.charCodeAt(i)!==59?null:e.slice(t,i+1)}function Cde(e,t,n){let i=t+1;if(i>=n||!Uz(e.charCodeAt(i)))return null;for(i++;i=n||e.charCodeAt(i)!==59)return null;const o=e.slice(t,i+1);return qz(o)!==o?o:null}function Ade(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=wde(e.src,n,i);if(o){if(!t){const s=(o.charCodeAt(2)|32)===120?Number.parseInt(o.slice(3,-1),16):Number.parseInt(o.slice(2,-1),10),r=e.push("text_special","",0);r.content=n4(s)?Q0(s):Q0(65533),r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}else{const o=Cde(e.src,n,i);if(o){const s=qz(o);if(!t){const r=e.push("text_special","",0);r.content=s,r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}return!1}var Vz=Ade;const Kz=(()=>{const e=new Array(256).fill(0),t="\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-";for(let n=0;n<32;n++)e[t.charCodeAt(n)]=1;return e})(),IC=new Array(128),Zz=new Array(128);for(let e=0;e<128;e++){const t=String.fromCharCode(e);IC[e]=`\\${t}`,Zz[e]=Kz[e]?t:IC[e]}function GT(e,t,n){e.pending&&e.pushPending();const i=new Is("text_special","",0);i.level=e.level,i.content=t,i.markup=n,i.info="escape",e.pendingLevel=e.level,e.tokens.push(i),e.tokens_meta.push(null)}function xde(e,t){let n=e.pos;const i=e.posMax,o=e.src;if(o.charCodeAt(n)!==92||(n++,n>=i))return!1;let s=o.charCodeAt(n);if(s===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&s<=56319&&n+1=56320&&a<=57343&&n++}return e.pos=n+1,!0}let r=o.charAt(n);if(s>=55296&&s<=56319&&n+1=56320&&a<=57343&&(r+=o.charAt(n+1),n++)}const l=`\\${r}`;return GT(e,s<256&&Kz[s]?r:l,l),e.pos=n+1,!0}var Gz=xde;function Sde(e){let t,n,i=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t0&&i++,r.type==="text"&&t+1\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Yz="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Mde=new RegExp(`^(?:${Qz}|${Yz}||<\\?[\\s\\S]*?\\?>|]*>|)`),Ide=new RegExp(`^(?:${Qz}|${Yz})`);function Jz(e){return e===32||e===9||e===10||e===12||e===13}function Tde(e){if(e.length<3||e.charCodeAt(0)!==60||(e.charCodeAt(1)|32)!==97)return!1;const t=e.charCodeAt(2);return t===62||Jz(t)}function Ede(e){if(e.length<4||e.charCodeAt(0)!==60||e.charCodeAt(1)!==47||(e.charCodeAt(2)|32)!==97)return!1;for(let t=3;t=97&&t<=122}function Nde(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos,o=e.src;if(o.charCodeAt(i)!==60||i+2>=n)return!1;const s=o.charCodeAt(i+1);if(s!==33&&s!==63&&s!==47&&!Lde(s))return!1;const r=o.slice(i).match(Mde);if(!r)return!1;const l=r[0];if(!t){const a=e.pushSimple("html_inline","");a.content=l,Tde(l)&&e.linkLevel++,Ede(l)&&e.linkLevel--}return e.pos+=l.length,!0}var Xz=Nde;function Dde(e,t){let n,i,o,s,r,l,a,u,c="";const d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,m=gk(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s=f)return!1;if(l=Oz(e.src,s,e.posMax),l.ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",u=s;s=f||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(u,s++):s=m+1):s=m+1,o||(o=e.src.slice(h,m)),r=e.env.references[t4(o)],!r)return e.pos=d,!1;c=r.href,a=r.title}if(!t){i=e.src.slice(h,m);const g=[];e.md.inline.parse(i,e.md,e.env,g);const v=e.push("image","img",0);v.attrs=[["src",c],["alt",""]],v.children=g,v.content=i,a&&v.attrs.push(["title",a])}return e.pos=s,e.posMax=f,!0}var ej=Dde;function c8(e,t,n){for(;t"u")return!1;let d;if(l=r+1,l=0?(d=n.slice(h,m),d||(d=n.slice(s,r)),l=m+1):d=n.slice(s,r)}else d=n.slice(s,r);const f=e.env.references[t4(d)];if(!f)return e.pos=i,!1;a=f.href,u=f.title}if(!t){e.pos=s,e.posMax=r;const d=e.push("link_open","a",1);d.attrs=u?[["href",a],["title",u]]:[["href",a]],e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=l,e.posMax=o,!0}var tj=Fde;function nj(e){const t=e|32;return t>=97&&t<=122}function Bde(e){return e>=48&&e<=57}function Rde(e){return nj(e)||Bde(e)||e===43||e===45||e===46}function Ode(e){if(e.length===0)return null;let t=e.length-1;for(;t>=0&&Rde(e.charCodeAt(t));)t--;return t++,t>=e.length||!nj(e.charCodeAt(t))?null:e.slice(t)}function $de(e,t,n){let i=t;for(;i0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=Ode(e.pending);if(!o)return!1;const s=$de(e.src,n-o.length,i),r=e.md.linkify.matchAtStart(s);if(!r)return!1;let l=r.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=l.length-o.length,!0}function Pde(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.pushSimple("hardbreak","br")}else e.pending=e.pending.slice(0,-1),e.pushSimple("softbreak","br");else e.pushSimple("softbreak","br");for(n++;n=o||YT(n.charCodeAt(i)))return!1;let s=i+1;for(;si-o),n=Math.floor(t.length/2);return t.length%2===0?(t[n-1]+t[n])/2:t[n]}function qde(e,t){return{chain:e,name:t,calls:0,hits:0,inclusiveMs:0,medianMs:0,maxMs:0,normalCalls:0,normalHits:0,silentCalls:0,silentHits:0,samples:[]}}function rj(e){const t=e;if(!t)return null;if(t.__mdtsRuleProfile)return t.__mdtsRuleProfile;if(!t.__mdtsProfileRules)return null;const n=t.__mdtsProfileRules===!0?{}:t.__mdtsProfileRules,i={enabled:!0,fixture:n.fixture,mode:n.mode,startedAt:S7(),records:Object.create(null)};return t.__mdtsRuleProfile=i,i}function A1(e,t,n,i,o,s){const r=rj(e);if(!r)return;const l=`${t}:${n}`,a=r.records[l]??(r.records[l]=qde(t,n));a.calls++,a.inclusiveMs+=i,i>a.maxMs&&(a.maxMs=i),a.samples.push(i),s?(a.silentCalls++,o&&a.silentHits++):(a.normalCalls++,o&&a.normalHits++),o&&a.hits++,r.completedAt=S7()}function Ude(e){const t=rj(e);if(!t)return null;const n=Object.keys(t.records);for(let i=0;io.name===e);i>=0&&this.rules.splice(i,1),this.rules.push({name:e,fn:t,alt:n?.alt||[],enabled:!0}),this.invalidateCache()}at(e,t,n){const i=this.rules.findIndex(o=>o.name===e);if(t===void 0){if(i<0)return;const o=this.rules[i];return Object.freeze({name:o.name,fn:o.fn,alt:o.alt?Object.freeze(o.alt.slice()):void 0,enabled:o.enabled})}if(i<0)throw new Error(`Parser rule not found: ${e}`);this.rules[i].fn=t,n?.alt!==void 0&&(this.rules[i].alt=n.alt),this.invalidateCache()}before(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}after(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o+1,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache.get(t)??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache.get(t)??[]}compileCache(){const e=new Set([""]);for(const i of this.rules)if(i.enabled&&i.alt)for(const o of i.alt)e.add(o);const t=new Map,n=new Map;for(const i of e){const o=[],s=[];for(const r of this.rules)r.enabled&&(i!==""&&!r.alt?.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t.set(i,o),n.set(i,s)}this.cache=t,this.namedCache=n}},lj=class{src;md;env;tokens;tokens_meta;pos;posMax;level;pending;pendingLevel;cache;delimiters;_prev_delimiters;backticks;backticksScanned;linkLevel;linkLabelNoCloseFrom;maxNesting;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.tokens_meta=new Array(i.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.linkLabelNoCloseFrom=-1,this.maxNesting=t.options.maxNesting}pushPending(){const e=new Is("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}pushSimple(e,t){this.pending&&this.pushPending();const n=new Is(e,t,0);return n.level=this.level,this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(null),n}push(e,t,n){if(this.pending&&this.pushPending(),n===0)return this.pushSimple(e,t);const i=new Is(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i}scanDelims(e,t){const{src:n,posMax:i}=this,o=n.charCodeAt(e);let s=e;for(;s0?n.charCodeAt(e-1):32,a=s@[\]\\^_`{}~]/;function XT(e,t){switch(e.src.charCodeAt(e.pos)){case 10:return oj(e,t);case 33:return ej(e,t);case 38:return Vz(e,t);case 42:case 95:return MC.tokenize(e,t);case 58:return e.md.options.linkify&&ij(e,t);case 60:return zz(e,t)||Xz(e,t);case 91:return tj(e,t);case 92:return Gz(e,t);case 96:return jz(e,t);case 126:return TC.tokenize(e,t);default:return sj(e,t)}}function aj(e){return!Vde.test(e)}var Kde=class{ruler;ruler2;cachedRulesVersion=-1;cachedRules=[];cachedRules2Version=-1;cachedRules2=[];defaultRulerVersion;defaultRuler2Version;constructor(){this.ruler=new JT,this.ruler2=new JT,this.ruler.push("text",sj),this.ruler.push("linkify",ij),this.ruler.push("newline",oj),this.ruler.push("escape",Gz),this.ruler.push("backticks",jz),this.ruler.push("strikethrough",TC.tokenize),this.ruler.push("emphasis",MC.tokenize),this.ruler.push("link",tj),this.ruler.push("image",ej),this.ruler.push("autolink",zz),this.ruler.push("html_inline",Xz),this.ruler.push("entity",Vz),this.ruler2.push("balance_pairs",gde),this.ruler2.push("strikethrough",TC.postProcess),this.ruler2.push("emphasis",MC.postProcess),this.ruler2.push("fragments_join",_de),this.defaultRulerVersion=this.ruler.version,this.defaultRuler2Version=this.ruler2.version}skipToken(e){const t=e.pos,n=this.getRules(),i=n.length,o=e.cache,s=o[t],r=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules"));if(s!==void 0){e.pos=s;return}let l=!1;if(e.level=e.pos)throw new Error("inline rule didn't increment state.pos");break}}}else if(this.isDefaultRuleset()){if(e.level++,l=XT(e,!0),e.level--,l&&t>=e.pos)throw new Error("inline rule didn't increment state.pos")}else for(let a=0;a=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;l||e.pos++,o[t]=e.pos}tokenize(e){const t=this.getRules(),n=t.length,i=e.posMax;if(!(e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules")))){const s=this.isDefaultRuleset();for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos")}if(l){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending();return}const o=this.ruler.getNamedRules("");for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending()}isDefaultRuleset(){return this.ruler.version===this.defaultRulerVersion&&this.ruler2.version===this.defaultRuler2Version}parseSource(e,t,n,i){if(typeof e=="string"&&e.length>0&&this.isDefaultRuleset()&&aj(e)){const a=new Is("text","",0);a.content=e,i.push(a);return}const o=new lj(e,t,n,i);this.tokenize(o);const s=this.getRules2(),r=s.length;if(!(o.env&&(Object.prototype.hasOwnProperty.call(o.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(o.env,"__mdtsProfileRules")))){for(let a=0;a0&&aj(s.content)){const r=new Is("text","",0);r.content=s.content,s.children.push(r);continue}e.md.inline.parse(s.content,e.md,e.env,s.children)}}}const Gde=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,Qde=/[0-9a-z]/i;function Yde(e){return/^\s]/i.test(e)}function Jde(e){return/^<\/a\s*>/i.test(e)}function Xde(e,t){if(t.schema||t.index!==0||!t.raw)return t;for(let n=1;n=0;r--){const l=o[r];if(l.type==="link_close"){for(r--;r>=0&&o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(Yde(l.content)&&s>0&&s--,Jde(l.content)&&s++),s>0||l.type!=="text"||!e.md.linkify.test(l.content))continue;const a=l.content;let u=(e.md.linkify.match(a)||[]).map(h=>Xde(e.md.linkify,h));if(u.length===0)continue;const c=[];let d=l.level,f=0;u.length>0&&u[0].index===0&&r>0&&o[r-1].type==="text_special"&&(u=u.slice(1));for(let h=0;hf){const M=new Is("text","",0);M.content=a.slice(f,y),M.level=d,c.push(M)}const b=new Is("link_open","a",1);b.attrs=[["href",g]],b.level=d++,b.markup="linkify",b.info="auto",c.push(b);const A=new Is("text","",0);A.content=v,A.level=d,c.push(A);const w=new Is("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",c.push(w),f=m.lastIndex}if(f!==0){if(f=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(sfe,lfe)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function ufe(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&uj.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function cfe(e){if(e.md?.options?.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=n.content||(Array.isArray(n.children)?n.children.map(o=>o.type==="text"?o.content:"").join(""):"");ofe.test(i)&&afe(n.children||[]),uj.test(i)&&ufe(n.children||[])}}var dfe=class{rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t){const n=this.rules.findIndex(i=>i.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex(i=>i.name===e);if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn),this.namedCache=this.rules.filter(e=>e.enabled).map(e=>({name:e.name,fn:e.fn}))}getRules(e=""){return this.cache||this.compileCache(),this.cache}getNamedRules(e=""){return this.namedCache||this.compileCache(),this.namedCache}};const ffe=/['"]/,eE=/['"]/g,tE="’";function Q2(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function hfe(e,t){let n;const i=[],o=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let s=0;s=0&&!(i[n].level<=l);n--);if(i.length=n+1,r.type!=="text")continue;let a=r.content,u=0,c=a.length;e:for(;u=0)g=a.charCodeAt(d.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(u=48&&g<=57&&(h=f=!1),f&&h&&(f=y,h=b),!f&&!h){m&&(r.content=Q2(r.content,d.index,tE));continue}if(h)for(n=i.length-1;n>=0;n--){let M=i[n];if(i[n].level=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=typeof n.content=="string"?n.content:(n.children||[]).map(o=>o.content||"").join("");!ffe.test(i)||!n.children||hfe(n.children,e)}}function mfe(e){const t=e.tokens||[],n=t.length;for(let i=0;i=4||o.charCodeAt(c)!==62)return!1;if(i)return!0;const h=[],m=[],g=[],v=[],y=e.md.block.ruler.getRulesForState(e,"blockquote"),b=e.parentType;e.parentType="blockquote";let A=!1,w;for(w=t;w=d)break;if(o.charCodeAt(c++)===62&&!I){let E=a[w]+1,_,F;o.charCodeAt(c)===32?(c++,E++,F=!1,_=!0):o.charCodeAt(c)===9?(_=!0,(u[w]+E)%4===3?(c++,E++,F=!1):F=!0):_=!1;let q=E;for(h.push(s[w]),s[w]=c;c=d,m.push(u[w]),u[w]=a[w]+1+(_?1:0),g.push(a[w]),a[w]=q-E,v.push(l[w]),l[w]=c-s[w];continue}if(A)break;let S=!1;for(let E=0,_=y.length;E<_;E++)if(y[E](e,w,n,!0)){S=!0;break}if(S){e.lineMax=w,e.blkIndent!==0&&(h.push(s[w]),m.push(u[w]),v.push(l[w]),g.push(a[w]),a[w]-=e.blkIndent);break}h.push(s[w]),m.push(u[w]),v.push(l[w]),g.push(a[w]),a[w]=-1}const M=e.blkIndent;e.blkIndent=0;const N=e.push("blockquote_open","blockquote",1);N.markup=">";const T=[t,0];N.map=T,e.md.block.tokenize(e,t,w);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=f,e.parentType=b,T[1]=e.line;for(let I=0;I=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=`${e.getLines(t,o,4+e.blkIndent,!1)} -`,s.map=[t,e.line],!0}function wfe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let l=o;o=e.skipChars(o,r);let a=o-l;if(a<3)return!1;const u=e.src.slice(l,o),c=e.src.slice(o,s);if(r===96&&c.includes(String.fromCharCode(r)))return!1;if(i)return!0;let d=t,f=!1;for(;d++,!(d>=n||(o=l=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=4)&&(o=e.skipChars(o,r),!(o-l=4)return!1;let c=o.charCodeAt(a);if(c!==35||a>=u)return!1;let d=1;for(c=o.charCodeAt(++a);c===35&&a6||aa&&oE(o.charCodeAt(f-1))&&(u=f),e.line=t+1;const h=e.push("heading_open",nE[d],1);h.markup=iE[d],h.map=[t,e.line];const m=e.push("inline","",0);m.content=o.slice(a,u).trim(),m.map=[t,e.line],m.children=[];const g=e.push("heading_close",nE[d],-1);return g.markup=iE[d],!0}function Afe(e){switch(e){case 9:case 32:return!0}return!1}function xfe(e,t,n,i){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let l=1;for(;s|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Ide.source}\\s*$`),/^$/,!1]];function Sfe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),l=0;for(;l<_p.length&&!_p[l][0].test(r);l++);if(l===_p.length)return!1;if(i)return _p[l][2];let a=t+1;if(!_p[l][1].test(r)){for(;a=48&&e<=57}var pj=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];lineFlags=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType="root";level=0;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i;const o=this.src;let s=0,r=0,l=0,a=!1,u=0;for(let c=0,d=o.length;c0&&this.level++,this.tokens.push(i),i}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){const t=this.bMarks,n=this.tShift,i=this.eMarks;for(let o=this.lineMax;et;){const i=n.charCodeAt(--e);if(i!==9&&i!==32)return e+1}return e}skipChars(e,t){const n=this.src;for(let i=n.length;en;)if(t!==i.charCodeAt(--e))return e+1;return e}getLines(e,t,n,i){if(e>=t)return"";if(e+1===t){const c=e,d=this.bMarks[c];let f=d;const h=i?this.eMarks[c]+1:this.eMarks[c];let m=0;const g=this.src,v=this.bsCount,y=this.tShift;for(;fn?new Array(m-n+1).join(" ")+g.slice(f,h):g.slice(f,h)}const o=new Array(t-e),s=this.src,r=this.bMarks,l=this.eMarks,a=this.bsCount,u=this.tShift;for(let c=0,d=e;dn?o[c]=new Array(f-n+1).join(" ")+s.slice(m,g):o[c]=s.slice(m,g)}return o.join("")}};pj.prototype.Token=Is;function Mfe(e,t,n){for(let i=t;i=o)return!1;const s=n.charCodeAt(i);switch(s){case 35:case 42:case 43:case 45:case 60:case 62:case 95:case 96:case 126:return!0}return s>=48&&s<=57?!0:Mfe(n,i,o)}const rE=["","h1","h2"];function Ife(e,t,n){const i=e.md.block.ruler.getRulesForState(e,"paragraph"),o=e.src,s=e.bMarks,r=e.tShift,l=e.eMarks,a=e.sCount,u=e.blkIndent,c=mj(e);if(a[t]-u>=4)return!1;const d=e.parentType;e.parentType="paragraph";let f=0,h,m=t+1;for(;m=M)break;if(a[m]-u>3)continue;if(a[m]>=u&&(h=o.charCodeAt(w),h===45||h===61)){let T=w+1,C=T;for(;T=M){f=h===61?1:2;break}if(C-w>1)continue}if(a[m]<0||c&&!gj(e,m,o,w,M))continue;let N=!1;for(let T=0,C=i.length;Tw;){const N=o.charCodeAt(M-1);if(N!==9&&N!==32)break;M--}g=o.slice(w,M)}else g=e.getLines(t,m,u,!1).trim();e.line=m+1;const v=h===61?"=":"-",y=e.push("heading_open",rE[f],1);y.markup=v,y.map=[t,e.line];const b=e.push("inline","",0);b.content=g,b.map=[t,e.line-1],b.children=[];const A=e.push("heading_close",rE[f],-1);return A.markup=v,e.parentType=d,!0}function vj(e){switch(e){case 9:case 32:return!0}return!1}function lE(e,t){const n=e.eMarks,i=e.bMarks,o=e.tShift,s=e.src,r=n[t];let l=i[t]+o[t];const a=s.charCodeAt(l++);return a!==42&&a!==45&&a!==43||l=l)return-1;let u=s.charCodeAt(a++);if(u<48||u>57)return-1;for(;;){if(a>=l)return-1;if(u=s.charCodeAt(a++),u>=48&&u<=57){if(a-r>=10)return-1;continue}if(u===41||u===46)break;return-1}return a0&&++o=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let c,d,f;const h=e.src,m=e.bMarks,g=e.tShift,v=e.eMarks,y=e.sCount,b=e.bsCount,A=m[l]+g[l];if(A>=v[l])return!1;const w=h.charCodeAt(A);if(w>=48&&w<=57){if(f=aE(e,l),f<0||(c=!0,r=A,d=Tfe(e,l,f),u&&d!==1))return!1}else if(w===42||w===45||w===43){if(f=lE(e,l),f<0)return!1;c=!1}else return!1;if(u&&e.skipSpaces(f)>=v[l])return!1;if(i)return!0;const M=h.charCodeAt(f-1),N=String.fromCharCode(M);if(c){const _=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(_.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const T=[l,0];e.tokens[e.tokens.length-1].map=T,e.tokens[e.tokens.length-1].markup=N;let C=!1;const I=e.tokens.length-1,S=e.md.block.ruler.getRulesForState(e,"list"),E=e.parentType;for(e.parentType="list";l=o?P=1:P=F-_,P>4&&(P=1);const O=_+P,R=e.push("list_item_open","li",1);R.markup=N;const z=[l,0];R.map=z,c&&(R.info=f-r-1===1?Efe[h.charCodeAt(r)-48]:h.slice(r,f-1));const H=e.tight,j=e.tShift[l],Q=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=O,e.tight=!0,e.tShift[l]=q-m[l],e.sCount[l]=F,q>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||C)&&(a=!1),C=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=j,e.sCount[l]=Q,e.tight=H,e.push("list_item_close","li",-1).markup=N,l=e.line,z[1]=l,l>=n||e.sCount[l]=4)break;let W=!1;for(let G=0,oe=S.length;G3||u[f]<0)continue;if(o==="list"&&u[f]>=c){const A=r[f]+l[f],w=a[f];if(A=w||uE(s.charCodeAt(A+1)))break}else if(M>=48&&M<=57&&A+1=w){N=-1;break}const T=s.charCodeAt(N++);if(T>=48&&T<=57){if(N-A>=10){N=-1;break}continue}if((T===41||T===46)&&(N>=w||uE(s.charCodeAt(N))))break;N=-1;break}if(N>=0)break}}}const v=r[f]+l[f],y=a[f];if(d&&!gj(e,f,s,v,y))continue;let b=!1;for(let A=0,w=i.length;A=4||e.src.charCodeAt(o)!==91)return!1;function a(A){const w=e.lineMax;if(A>=w||e.isEmpty(A))return null;let M=!1;if(e.sCount[A]-e.blkIndent>3&&(M=!0),e.sCount[A]<0&&(M=!0),!M){const C=e.parentType;e.parentType="reference";let I=!1;for(let S=0,E=l.length;S"u"&&(e.env.references={}),typeof e.env.references[b]>"u"&&(e.env.references[b]={title:y,href:f}),e.line=r),!0):!1}function d8(e){switch(e){case 9:case 32:return!0}return!1}const Bfe=65536;function f8(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function Rfe(e,t){if(e.lineFlags)return(e.lineFlags[t]&n0.Pipe)!==0;for(let n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];nn)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!d8(l)||r===45&&d8(l)||!Rfe(e,t))return!1;for(;s=4)return!1;u=cE(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==c.length)return!1;if(i)return!0;const f=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRulesForState(e,"blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w=4||(u=cE(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),A+=d-u.length,A>Bfe))break;if(o===t+2){const N=e.push("tbody_open","tbody",1);N.map=b=[t+2,0]}const M=e.push("tr_open","tr",1);M.map=[o,o+1];for(let N=0;Nr.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}after(e,t,n,i){const o=this._rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache[t]??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache[t]??[]}getRulesForState(e,t){const n=e?.env;return n&&(Object.prototype.hasOwnProperty.call(n,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(n,"__mdtsProfileRules"))?this.getNamedRules(t).map(({name:i,fn:o})=>(s,r,l,a)=>{const u=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now(),c=o(s,r,l,a),d=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now();return A1(s?.env,"block",i,d-u,c,!!a),c}):this.getRules(t)}at(e,t,n){const i=this._rules.findIndex(o=>o.name===e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[i].fn=t,n?.alt&&(this._rules[i].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled||(this._rules[r].enabled=!0,o=!0)}),o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled&&(this._rules[r].enabled=!1,o=!0)}),o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this._rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const i of this._rules)if(i.enabled)for(const o of i.alt)e.add(o);const t=Object.create(null),n=Object.create(null);for(const i of e){const o=[],s=[];for(const r of this._rules)r.enabled&&(i!==""&&!r.alt.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t[i]=o,n[i]=s}this.cache=t,this.namedCache=n}};const J2=[["table",Ofe,["paragraph","reference"]],["code",bfe],["fence",wfe,["paragraph","reference","blockquote","list"]],["blockquote",kfe,["paragraph","reference","blockquote","list"]],["hr",xfe,["paragraph","reference","blockquote","list"]],["list",Nfe,["paragraph","reference","blockquote"]],["reference",Ffe],["html_block",Sfe,["paragraph","reference","blockquote"]],["heading",Cfe,["paragraph","reference","blockquote"]],["lheading",Ife],["paragraph",Dfe]];var Pfe=class{ruler;cachedRulesVersion=-1;cachedRules=[];constructor(){this.ruler=new $fe;for(let e=0;e=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const h=e.line;let m=!1;for(let g=0;g=e.line)throw new Error("block rule didn't increment state.line");break}if(!m)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}return}const f=this.ruler.getNamedRules("");for(;c=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const h=e.line;let m=!1;for(let g=0;g=e.line)throw new Error("block rule didn't increment state.line");break}}if(!m)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}}parse(e,t,n,i){if(!e||e.length===0)return;const o=new pj(e,t,n,i);this.tokenize(o,o.line,o.lineMax)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(""),this.cachedRulesVersion=this.ruler.version),this.cachedRules}},yj=class{src;env;tokens;inlineMode;md;constructor(e,t,n={}){this.src=typeof e=="string"?e||"":e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}};yj.prototype.Token=Is;const dE=[["normalize",ife],["block",cde],["inline",Zde],["linkify",efe],["replacements",cfe],["smartquotes",pfe],["text_join",mfe]],zfe={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},jfe={parseLinkLabel:w7,parseLinkDestination:b7,parseLinkTitle:C7};function Hfe(){return{...zfe}}function Wfe(){return{...jfe}}var qfe=class{fallbackParser;lastState=null;block;inline;ruler;linkifyInstance=null;cachedCoreRulesVersion=-1;cachedCoreRules=[];cachedCoreNamedRulesVersion=-1;cachedCoreNamedRules=[];constructor(){this.block=new Pfe,this.inline=new Kde,this.ruler=new dfe;for(let e=0;e@[\]\\^_`{}~]/;function vk(e){return!Ufe.test(e)}function Mg(e,t){const n=e.indexOf(` -`,t);return n===-1?e.length:n}function t9(e,t,n){for(let i=t;i3)return vk(e);for(let t=0;t=i||t.charCodeAt(r)!==32)return!1;let l=r+1;for(;ll&&t.charCodeAt(a-1)===32;)a--;let u=a;for(;u>l&&t.charCodeAt(u-1)===35;)u--;if(u>l&&t.charCodeAt(u-1)===32)for(a=u-1;a>l&&t.charCodeAt(a-1)===32;)a--;const c=t.slice(l,a);if(!vk(c))return!1;const d=Kfe[s],f=Zfe[s],h=ma("heading_open",d,1,0);h.map=[o,o+1],h.markup=f,e.push(h),e.push(_7(c,o,1));const m=ma("heading_close",d,-1,0);return m.markup=f,e.push(m),!0}function Qfe(e,t,n){const i=ma("paragraph_open","p",1,0);i.map=[n,n+1],e.push(i),e.push(_7(t,n,1)),e.push(ma("paragraph_close","p",-1,0))}function Yfe(e,t,n){const i=e.charCodeAt(n-1);return i===32||i===9?e.slice(t,n).trim():e.slice(t,n)}function g8(e,t){for(;t=1e5?hE:m8,o="",s=!1,r=!1,l=0,a=0;for(;l"]/,pE=/[&<>"]/g,ohe=/&/g,she=/[<>"]/g,rhe={"&":"&","<":"<",">":">",'"':"""};function v8(e){return rhe[e]||e}function Ui(e){if(e.length===0)return"";if(e.length<32)return ihe.test(e)?e.replace(pE,v8):e;const t=e.includes("&"),n=e.includes("<"),i=e.includes(">"),o=e.includes('"');return!t&&!n&&!i&&!o?e:t&&!n&&!i&&!o?e.replace(ohe,"&"):t?e.replace(pE,v8):e.replace(she,v8)}const lhe=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),ahe=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function kj(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(lhe,(t,n,i)=>{if(n)return n;if(ahe.test(i)){const s=i[1].toLowerCase()==="x"?Number.parseInt(i.slice(2),16):Number.parseInt(i.slice(1),10);return n4(s)?Q0(s):"�"}const o=d7(t);return o!==t?o:t})}const uhe=/[\n!#$%&*+\-:<=>@[\]\\^_`{}~]/,che=/[\n!"#$%&*+\-:<=>@[\]\\^_`{}~]/,dhe=/"/g;function t1(e,t){const n=e.indexOf(` -`,t);return n===-1?e.length:n}function yk(e,t,n){for(let i=t;i=e.length||e.charCodeAt(t)===10?!1:!yk(e,t,t1(e,t))}function mE(e,t,n){return t+2=n||e.charCodeAt(o)!==32)return null;let s=o+1;for(;ss&&e.charCodeAt(r-1)===32;)r--;let l=r;for(;l>s&&e.charCodeAt(l-1)===35;)l--;if(l>s&&e.charCodeAt(l-1)===32)for(r=l-1;r>s&&e.charCodeAt(r-1)===32;)r--;const a=M7(e.slice(s,r));return a===null?null:`${a} -`}function gE(e,t,n){return t+1" -`;case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return null}return`
      3. ${e[t]}
      4. -`}function ghe(e,t,n){const i=t+2;if(n===i+1)return mhe(e,i);const o=M7(e.slice(t+2,n));return o===null?null:`
      5. ${o}
      6. -`}function vhe(e,t,n){for(;tt;){const o=e.charCodeAt(n-1);if(o!==32&&o!==9)break;n--}let i=n;for(let o=t;o`:"
        ",i.lang=s,i.open=d),{html:`${d}${Ui(c)}
        -`,nextPos:u=25e4,s=[],r={lang:null,open:""};let l="",a="",u="",c="";for(;n -`;w -`,l=y,a=b}let A=X2(e,v);for(;A${v}

        -`,u=h,c=m}const g=de.core.parse(t,n,e).tokens);let r=n9(t,o);if(o.maxChunks&&r.length>o.maxChunks&&(r=Ahe(r,o.maxChunks)),i9(t,r))return a8(n,{count:1,fallback:!0,fallbackReason:"unsafe-chunk-boundary",maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines}),C1(n,s,()=>e.core.parse(t,n,e).tokens);let l=0;const a=[];return a8(n,{count:r.length,maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines,globalStateDetected:s||void 0,globalStateFallbackDisabled:o.fallbackOnGlobalState===!1&&!!s}),C1(n,s,()=>{for(let u=0;u=3&&(c?c.marker===A&&M>=c.length&&(c=null):c={marker:A,length:M})}}const v=m-f;o+=v,s+=1,l+=1,g?(a=0,u=0):(a+=1,u+=v);const y=g;if((o>=t.maxChunkChars||s>=t.maxChunkLines)&&!c)if(y)d(m);else{const b=Math.max(10,Math.floor(t.maxChunkLines*.5)),A=Math.max(t.maxChunkChars,8e3);(a>=b||u>=A)&&d(m)}f=m}return n&&d(e.length),i}function i9(e,t,n={rangesCoverWholeSource:!0}){const i=n.rangesCoverWholeSource?t.length-1:t.length;for(let o=0;oe.length||e.charCodeAt(t-1)!==10)return!1;let n=t-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;for(let i=n+1;i=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Che(e,t){for(let n=0;n=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Vc(e){return e.length===0?0:$o(e)+(e.charCodeAt(e.length-1)===10?0:1)}function Ehe(e,t,n){for(let i=t;i=3&&(n?n.marker===r&&a>=n.length&&(n=null):n={marker:r,length:a})}i=o===e.length?e.length:o+1}return n!==null}function Nhe(e,t){if(e.length===0||e.charCodeAt(e.length-1)!==10)return!1;let n=e.length-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;return Ehe(e,n+1,e.length-1)?!Lhe(e,t):!1}function Dhe(e,t,n,i={}){const o=i.mode??"full",s=i.fenceAware??(o==="stream"?e.options.streamChunkFenceAware??!0:e.options.fullChunkFenceAware??!0);if(i.maxChunkChars!==void 0||i.maxChunkLines!==void 0||i.autoTune===!1){const r=i.maxChunkChars??(o==="stream"?e.options.streamChunkSizeChars??Mhe:e.options.fullChunkSizeChars??She),l=i.maxChunkLines??(o==="stream"?e.options.streamChunkSizeLines??Ihe:e.options.fullChunkSizeLines??_he);return{maxChunkChars:r,maxChunkLines:l,holdBelowChars:r,holdBelowLines:l,fenceAware:s}}return o==="stream"?t<=5e3?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=2e4?{maxChunkChars:16e3,maxChunkLines:200,holdBelowChars:16e3,holdBelowLines:200,fenceAware:s}:t<=5e4?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}:t<=1e5&&n<=2500?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:1e5,holdBelowLines:2500,fenceAware:s}:t<=2e5?{maxChunkChars:2e4,maxChunkLines:150,holdBelowChars:2e4,holdBelowLines:150,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}}var zv=class{md;options;pending="";tokens=[];committedChars=0;committedLines=0;fedChunks=0;parsedChunks=0;globalStateEnv=null;markedGlobalStateReason=null;constructor(e,t={}){if(this.md=e,this.options={mode:"full",autoTune:!0,retainTokens:!0,...t},this.options.retainTokens===!1&&!this.options.onChunkTokens)throw new Error("UnboundedBuffer with retainTokens=false requires onChunkTokens")}feed(e){e&&(this.pending+=e,this.fedChunks+=1)}flushAvailable(e={}){if(!this.pending)return null;const t=this.resolveWindow(),n=Vc(this.pending);if(this.pending.length=i||n>=o}function Sj(e,t,n){if(e.options.autoUnbounded===!1)return"no";if(t>=(e.options.autoUnboundedThresholdChars??wj))return"yes";const i=e.options.autoUnboundedThresholdLines??Cj;return n!==void 0?n>=i?"yes":"no":t+1e.core.parse(t,n,e).tokens);const s=[],r=new zv(e,{mode:"full",...i,retainTokens:!1,onChunkTokens(l){Aj(s,l)}});if(o&&y7(n,o),r.feed(t),r.flushForce(n),o&&(k7(n),i.fallbackOnGlobalState===!1)){const l=lc(n)?.unbounded;l&&(l.globalStateDetected=o,l.globalStateFallbackDisabled=!0)}return s}const x1=(e,t,n)=>en?n:e;function _j(e){return e.experimental?{...e,...e.experimental}:e}const kE=[{max:5e3,strategy:"discrete",maxChunkChars:32e3,maxChunkLines:150,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:24e3,maxChunkLines:200,maxChunks:12,notes:"<=20k"},{max:1e5,strategy:"plain",notes:"<=100k plain"},{max:2e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:150,maxChunks:12,notes:"<=200k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=5M"}],bE=[{max:5e3,strategy:"discrete",maxChunkChars:16e3,maxChunkLines:250,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=20k"},{max:1e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=100k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=5M"}];function Mj(e,t){return{strategy:t.strategy,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,maxChunks:t.maxChunks,fenceAware:e,notes:t.notes}}function $he(e,t=Math.max(0,e/40|0),n={}){const i=_j(n),o=i.fullChunkFenceAware??!0,s=i.fullChunkTargetChunks??8,r=i.fullChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:x1(Math.ceil(e/s),8e3,64e3),maxChunkLines:x1(Math.ceil(t/s),150,700),maxChunks:x1(Math.ceil(e/64e3),s,16),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.fullChunkSizeChars??1e4,maxChunkLines:i.fullChunkSizeLines??200,fenceAware:o,maxChunks:i.fullChunkMaxChunks}}function wE(e,t=Math.max(0,e/40|0),n={}){const i=_j(n),o=i.streamChunkFenceAware??!0,s=i.streamChunkTargetChunks??8,r=i.streamChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:x1(Math.ceil(e/s),8e3,64e3),maxChunkLines:x1(Math.ceil(t/s),150,700),maxChunks:x1(Math.ceil(e/64e3),s,32),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.streamChunkSizeChars??1e4,maxChunkLines:i.streamChunkSizeLines??200,maxChunks:i.streamChunkMaxChunks,fenceAware:o}}var Phe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"]},inline2:{rules:["balance_pairs","emphasis","fragments_join"]}}},zhe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},jhe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};function o4(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function o9(e,t){if(o4(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e}const CE=e=>o4(e)?e:Promise.resolve(e);function o0(e){switch(e){case"alt":case"class":case"href":case"id":case"lang":case"rel":case"src":case"start":case"style":case"target":case"title":return e;default:return Ui(e)}}function jd(e){if(!e||e.length===0)return"";const t=e[0];let n=` ${o0(t[0])}="${Ui(t[1])}"`;for(let i=1;i=e.length)return{langName:e,langAttrs:""};let n=t;for(;n${t} -`;const s=e.attrIndex("class"),r=e.attrs?e.attrs.slice():[],l=`${o.langPrefix??"language-"}${i}`;return s<0?r.push(["class",l]):(r[s]=r[s].slice(),r[s][1]+=` ${l}`),`
        ${t}
        -`}return`
        ${t}
        -`}function J0(e){return!e.attrs||e.attrs.length===0?`${Ui(e.content)}`:`${Ui(e.content)}`}function EC(e){const t=Ui(e.content);return e.attrs?`${t} -`:`
        ${t}
        -`}function Hhe(e,t){const n=e.attrs;if(!n||n.length===0)switch(e.type){case"paragraph_open":return`${t}

        `;case"heading_open":return`<${e.tag}>`;case"td_open":return`${t}`;case"th_open":return`${t}`;default:return null}if(n.length===1&&n[0][0]==="style"){if(e.type==="td_open")return`${t}`;if(e.type==="th_open")return`${t}`}return null}function AE(e){const t=e.attrs;return!t||t.length===0?"":t.length===1?``:t.length===2?``:``}function Whe(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":case"image":return!0;default:return!1}}function xE(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":return!0;default:return!1}}function bk(e,t){if(e.hidden)return"";const n=e.attrs,i=e.nesting,o=e.tag;if(!n||n.length===0)return i===0?t?`<${o} />`:`<${o}>`:i===-1?``:`<${o}>`;let s=(i===-1?"`}const qhe={langPrefix:"language-",xhtmlOut:!1,breaks:!1},ey=Object.prototype.hasOwnProperty,ki={code_inline(e,t){return J0(e[t])},code_block(e,t){return EC(e[t])},fence(e,t,n,i,o){const s=e[t],r=s.info?kj(s.info).trim():"",{langName:l,langAttrs:a}=Ij(r),u=n.highlight,c=Ui(s.content);if(!u)return s0(s,c,r,l,n);const d=u(s.content,l,a);return o4(d)?d.then(f=>s0(s,f||c,r,l,n)):s0(s,d||c,r,l,n)},image(e,t,n,i,o){const s=e[t],r=o.renderInlineAsText(s.children||[],n,i),l=s.attrIndex("alt");return l>=0&&s.attrs?s.attrs[l][1]=r:s.attrs?s.attrs.push(["alt",r]):s.attrs=[["alt",r]],bk(s,n.xhtmlOut===!0)},hardbreak(e,t,n){return n.xhtmlOut?`
        -`:`
        -`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`
        -`:`
        -`:` -`},text(e,t){return Ui(e[t].content)},text_special(e,t){return Ui(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};function SE(e,t,n){const i=e.info?kj(e.info).trim():"",{langName:o,langAttrs:s}=Ij(i),r=t.highlight,l=Ui(e.content);if(!r)return s0(e,l,i,o,t);const a=r(e.content,o,s);if(o4(a))throw new TypeError('Renderer rule "fence" returned a Promise. Use renderAsync() instead.');return s0(e,a||l,i,o,t)}function y8(e,t,n,i){switch(e.type){case"text":return t.text===ki.text?e.content.length===0?"":Ui(e.content):null;case"text_special":return t.text_special===ki.text_special?e.content.length===0?"":Ui(e.content):null;case"softbreak":return t.softbreak===ki.softbreak?i:null;case"hardbreak":return t.hardbreak===ki.hardbreak?n:null;case"html_inline":return t.html_inline===ki.html_inline?e.content:null;case"code_inline":return t.code_inline===ki.code_inline?J0(e):null;default:return null}}function Uhe(e,t,n,i,o){const s=e[0];switch(s.type){case"text":if(o.text===ki.text)return s.content.length===0?"":Ui(s.content);break;case"text_special":if(o.text_special===ki.text_special)return s.content.length===0?"":Ui(s.content);break;case"softbreak":if(o.softbreak===ki.softbreak)return t.breaks?t.xhtmlOut?`
        -`:`
        -`:` -`;break;case"hardbreak":if(o.hardbreak===ki.hardbreak)return t.xhtmlOut?`
        -`:`
        -`;break;case"html_inline":if(o.html_inline===ki.html_inline)return s.content;break;case"code_inline":if(o.code_inline===ki.code_inline)return J0(s);break}const r=o[s.type];if(!r)return bk(s,t.xhtmlOut===!0);const l=r(e,0,t,n,i);return typeof l=="string"?l:o9(l,s.type)}var Vhe=class{rules;baseOptions;normalizedBase;constructor(e={}){this.baseOptions={...e},this.normalizedBase=this.buildNormalizedBase(),this.rules={...ki}}set(e){return this.baseOptions={...this.baseOptions,...e},this.normalizedBase=this.buildNormalizedBase(),this}render(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");if(e.length===1)return this.renderSingleToken(e,e[0],t,n);const i=this.mergeOptions(t),o=n??{},s=this.rules,r=i.xhtmlOut===!0;let l,a,u,c,d,f,h="",m="",g=!1,v="";for(let y=0;y0&&e[y-1].hidden?` -`:"";if(A==="list_item_open"&&(!b.attrs||b.attrs.length===0)&&y+3${this.renderInlineTokens(C.children||[],i,o)}`,y+=3;continue}}if(y+2 -`,y+=2;continue}}}if(A==="inline"){const T=b.children||[];if(T.length===1){g||(l=s.text,a=s.text_special,u=s.softbreak,c=s.hardbreak,d=s.html_inline,f=s.code_inline,h=i.xhtmlOut?`
        -`:`
        -`,m=i.breaks?h:` -`,g=!0);const C=T[0];switch(C.type){case"text":if(l===ki.text){v+=Ui(C.content);continue}break;case"text_special":if(a===ki.text_special){v+=Ui(C.content);continue}break;case"softbreak":if(u===ki.softbreak){v+=m;continue}break;case"hardbreak":if(c===ki.hardbreak){v+=h;continue}break;case"html_inline":if(d===ki.html_inline){v+=C.content;continue}break;case"code_inline":if(f===ki.code_inline){v+=J0(C);continue}break}}v+=this.renderInlineTokens(T,i,o);continue}const M=s[A];if(!M){const T=b.attrs;if(!b.hidden){if(!T||T.length===0)switch(A){case"hr":v+=r?`


        -`:`
        -`;continue;case"heading_open":v+=`<${b.tag}>`;continue;case"heading_close":v+=` -`;continue;case"paragraph_open":v+=`${w}

        `;continue;case"paragraph_close":v+=`

        -`;continue;case"list_item_open":{const C=e[y+1];v+=w+(C&&(C.type==="inline"||C.hidden||C.nesting===-1&&C.tag==="li")?"
      7. ":`
      8. -`);continue}case"list_item_close":v+=`
      9. -`;continue;case"bullet_list_open":v+=`${w}
          -`;continue;case"bullet_list_close":v+=`
        -`;continue;case"blockquote_open":v+=w+(e[y+1]&&e[y+1].nesting===-1&&e[y+1].tag==="blockquote"?"
        ":`
        -`);continue;case"blockquote_close":v+=`
        -`;continue;case"ordered_list_open":v+=`${w}
          -`;continue;case"ordered_list_close":v+=`
        -`;continue;case"table_open":v+=`${w} -`;continue;case"table_close":v+=`
        -`;continue;case"thead_open":v+=`${w} -`;continue;case"thead_close":v+=` -`;continue;case"tbody_open":v+=`${w} -`;continue;case"tbody_close":v+=` -`;continue;case"tr_open":v+=`${w} -`;continue;case"tr_close":v+=` -`;continue;case"td_open":v+=`${w}`;continue;case"td_close":v+=` -`;continue;case"th_open":v+=`${w}`;continue;case"th_close":v+=` -`;continue}else if(T.length===1){const C=T[0];if(A==="ordered_list_open"&&C[0]==="start"){v+=`${w}
          -`;continue}if(A==="td_open"&&C[0]==="style"){v+=`${w}`;continue}if(A==="th_open"&&C[0]==="style"){v+=`${w}`;continue}}}v+=this.renderToken(e,y,i);continue}if(A==="code_block"&&M===ki.code_block){v+=EC(b);continue}if(A==="fence"&&M===ki.fence){v+=SE(b,i);continue}if(A==="html_block"&&M===ki.html_block){v+=b.content;continue}const N=M(e,y,i,o,this);typeof N=="string"?v+=N:v+=o9(N,b.type)}return v}async renderAsync(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const i=this.mergeOptions(t),o=n??{},s=this.rules;let r="";for(let l=0;l0&&e[t-1].hidden?` -`:"",c=a?`> -`:">";if(!l||l.length===0)return s===0?n.xhtmlOut?`${u}<${r} /${c}`:`${u}<${r}${c}`:s===-1?`${u}(n||(n={...t}),n);if(ey.call(e,"highlight")&&e.highlight!==t.highlight&&(i().highlight=e.highlight),ey.call(e,"langPrefix")){const o=e.langPrefix;o!==t.langPrefix&&(i().langPrefix=o)}if(ey.call(e,"xhtmlOut")){const o=e.xhtmlOut;o!==t.xhtmlOut&&(i().xhtmlOut=o)}if(ey.call(e,"breaks")){const o=e.breaks;o!==t.breaks&&(i().breaks=o)}return n||t}buildNormalizedBase(){return Object.freeze({...qhe,...this.baseOptions})}renderSingleToken(e,t,n,i){const o=this.rules,s=t.type;if(s==="code_block"&&o.code_block===ki.code_block)return EC(t);if(s==="html_block"&&o.html_block===ki.html_block)return t.content;const r=this.mergeOptions(n),l=i??{};if(s==="inline")return this.renderInlineTokens(t.children||[],r,l);const a=o[s];if(!a)return t.block?this.renderToken(e,0,r):bk(t,r.xhtmlOut===!0);if(s==="fence"&&a===ki.fence)return SE(t,r);const u=a(e,0,r,l,this);return typeof u=="string"?u:o9(u,s)}renderInlineTokens(e,t,n){if(!e||e.length===0)return"";const i=this.rules;if(e.length===1)return Uhe(e,t,n,this,i);const o=t.xhtmlOut===!0,s=o?`
          -`:`
          -`,r=t.breaks?s:` -`,l=i.text,a=i.text_special,u=i.softbreak,c=i.hardbreak,d=i.html_inline,f=i.code_inline,h=i.link_open,m=i.link_close,g=i.em_open,v=i.em_close,y=i.strong_open,b=i.strong_close;let A="";for(let w=0;w`;if(u===ki.softbreak&&w+3`,w+=1;continue}if(M.type==="em_open"&&!g&&!v&&w+2${I}`,w+=2;continue}}}if(M.type==="strong_open"&&!y&&!b&&w+2${I}`,w+=2;continue}}}switch(M.type){case"text":if(l===ki.text){const C=M.content.length===0?"":Ui(M.content);if(d===ki.html_inline&&w+1=4)return!0;continue}if(l===9){if(r+=4-r%4,s++,r>=4)return!0;continue}break}if(s0&&u<=6){if(a=3)return!0;break}default:if(l>=48&&l<=57){let a=s+1;for(;a57)break;a++}if(a=Te,!Y&&Fe!==void 0&&(ye=$o(e),Y=ye>=Fe)),Y){const V=this.parseFullDocument(e,F,n,ye,!1);return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:"skip-cache-large-one-shot",unbounded:!!lc(F)?.unbounded}),V.tokens}else if(z){const V=(fe,ke,Ce)=>feCe?Ce:fe;ye===void 0&&(ye=$o(e));const le=oe&&!G?wE(e.length,ye,n.options):null,Se=le?.maxChunkChars??(H?V(Math.ceil(e.length/j),8e3,64e3):Q??1e4),be=le?.maxChunkLines??(H?V(Math.ceil(ye/j),150,700):ae??200),he=le?.maxChunks??(H?V(Math.ceil(e.length/64e3),j,32):W),re=e.length>0&&e.charCodeAt(e.length-1)===10,J=R&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&le?.strategy!=="plain";if((O||J)&&(e.length>=Se*2||ye>=be*2)&&re){const fe=kk(n,e,F,{maxChunkChars:Se,maxChunkLines:be,fenceAware:le?.fenceAware??te,maxChunks:he});return this.cache={src:e,tokens:fe,env:F,lineCount:ye,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,ye),this.recordChunkedParseResult(F,O?"explicit-initial-large-doc":"default-initial-large-doc"),fe}}const se=this.parseFullDocument(e,F,n,ye);return ye=se.lineCount,this.cache={src:e,tokens:se.tokens,env:F,lineCount:ye,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,ye),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:"initial-parse",unbounded:!!lc(F)?.unbounded}),se.tokens}if(e===o.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",ss(o.env,{area:"stream",path:"stream-cache",reason:"same-source"}),o.tokens;const s=e.startsWith(o.src)?e.slice(o.src.length):null;let r=o.globalStateReason;r===void 0&&(r=ul(o.src),o.globalStateReason=r);const l=r?null:s!==null?this.detectGlobalStateForAppend(o,s):ul(e),a=r||l;if(a){const F=i??o.env;Lc(F);const q=ul(e),P=this.parseFullDocument(e,F,n),O=P.tokens,R=P.lineCount;return this.cache={src:e,tokens:O,env:F,lineCount:R,lastSegment:void 0,globalStateReason:q},this.updateCacheLineCount(this.cache,R),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(F,{area:"stream",path:"stream-full",reason:`global-state:${a}`,unbounded:!!lc(F)?.unbounded}),O}const u=n.options?.streamOptimizationMinSize??this.MIN_SIZE_FOR_OPTIMIZATION;if(o.src.length5e3?q=8:c.length>1e3?q=6:c.length>200&&(q=4),q=Math.min(q,F);let P=null;const O=n.options?.streamContextParseStrategy??"chars",R=n.options?.streamContextParseMinChars??200,z=n.options?.streamContextParseMinLines??2;let H;const j=()=>(H===void 0&&(H=$o(c)),H),Q=this.canDirectlyParseAppend(o),ae=Q&&this.shouldUseUnboundedAppend(e,o,c);let W=!1;if(!Q)switch(O){case"lines":W=j()>=z;break;case"constructs":if(c.length>=R){W=!0;break}if(Ghe(c)){W=!0;break}W=j()>=z;break;case"chars":default:W=c.length>=R}if(q>0&&W){const te=this.getTailLines(o.src,q)+c;try{const ve=this.core.parse(te,o.env,n).tokens,Te=ve.findIndex(Fe=>Fe.map&&typeof Fe.map[1]=="number"&&Fe.map[1]>q);if(Te!==-1){const Fe=ve.slice(Te),ye=F-q;ye!==0&&this.shiftTokenLines(Fe,ye),P={tokens:Fe}}}catch{P=null}}else P=null;if(!P){const te=F;if(ae)P={tokens:i0(n,c,o.env,{mode:"stream"})},te>0&&this.shiftTokenLines(P.tokens,te);else{const ve=this.core.parse(c,o.env,n);te>0&&this.shiftTokenLines(ve.tokens,te),P=ve}}let G=0;if(o.tokens.length>0&&P.tokens.length>0){const te=o.tokens[o.tokens.length-1],ve=P.tokens[0];try{te.type==="inline"&&ve.type==="inline"&&(ve.children&&ve.children.length>0&&(te.children||(te.children=[]),this.appendTokens(te.children,ve.children)),te.content=(te.content||"")+(ve.content||""),G=1)}catch{G=0}}const oe=o.tokens.length;if(P.tokens.length>G){const te=o.tokens,ve=P.tokens,Te=Math.min(te.length,ve.length-G);let Fe=0;for(let ye=Te;ye>0;ye--){let Y=!0;for(let se=0;se0&&(G+=Fe),ve.length>G&&this.appendTokens(o.tokens,ve,G)}if(o.src=e,o.globalStateReason=null,o.lineCount=F+(H??j()),o.tokens.length>oe){const te=this.getLastSegment(o.tokens,e,oe,o.tokens.length,e.length-c.length,F);te?o.lastSegment=te:o.lastSegment=void 0}else o.lastSegment=void 0;return this.stats.total+=1,this.stats.appendHits+=1,ae&&(this.stats.unboundedAppendHits=(this.stats.unboundedAppendHits||0)+1),this.stats.lastMode="append",ss(o.env,{area:"stream",path:ae?"stream-unbounded-append":"stream-append",reason:ae?"large-delta":"safe-append",unbounded:ae}),o.tokens}const d=i??o.env,f=this.tryTailSegmentReparse(e,o,d,n);if(f)return this.stats.total+=1,this.stats.tailHits+=1,this.stats.lastMode="tail",ss(d,{area:"stream",path:"stream-tail",reason:"tail-reparse"}),f;const h=!!n.__explicitStreamChunkFallbackSetting,m=typeof n.__canUseImplicitLargeInputStrategy=="function"?n.__canUseImplicitLargeInputStrategy():!0,g=!!n.options?.streamChunkedFallback,v=!h&&!c&&m,y=g||v,b=n.options?.streamChunkAdaptive!==!1,A=n.options?.streamChunkTargetChunks??8,w=n.options?.streamChunkSizeChars,M=n.options?.streamChunkSizeLines,N=n.options?.streamChunkMaxChunks,T=!!n.__explicitStreamChunkConfig,C=n.options?.autoTuneChunks!==!1,I=n.options?.streamChunkFenceAware??!0;let S=c&&o.lineCount!==void 0?o.lineCount+$o(c):void 0;if(y){S===void 0&&(S=$o(e));const F=(j,Q,ae)=>jae?ae:j,q=C&&!T?wE(e.length,S,n.options):null,P=q?.maxChunkChars??(b?F(Math.ceil(e.length/A),8e3,64e3):w??1e4),O=q?.maxChunkLines??(b?F(Math.ceil(S/A),150,700):M??200),R=q?.maxChunks??(b?F(Math.ceil(e.length/64e3),A,32):N),z=e.length>0&&e.charCodeAt(e.length-1)===10,H=v&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&q?.strategy!=="plain";if((g||H)&&(e.length>=P*2||S>=O*2)&&z){const j=kk(n,e,d,{maxChunkChars:P,maxChunkLines:O,fenceAware:q?.fenceAware??I,maxChunks:R});return this.cache={src:e,tokens:j,env:d,lineCount:S,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,S),this.recordChunkedParseResult(d,g?"explicit-fallback-large-doc":"default-fallback-large-doc"),j}}const E=this.parseFullDocument(e,d,n,S),_=E.tokens;return S=E.lineCount,this.cache={src:e,tokens:_,env:d,lineCount:S,lastSegment:void 0,globalStateReason:ul(e)},this.updateCacheLineCount(this.cache,S),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",ss(d,{area:"stream",path:"stream-full",reason:"fallback-full",unbounded:!!lc(d)?.unbounded}),_}recordChunkedParseResult(e,t){const n=lc(e)?.chunk,i=n?.fallback?String(n.fallbackReason||"global-state"):null;if(this.stats.total+=1,i){this.stats.fullParses+=1,this.stats.lastMode="full",ss(e,{area:"stream",path:"stream-full",reason:`global-state:${i}`,unbounded:!!lc(e)?.unbounded});return}this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",ss(e,{area:"stream",path:"stream-chunked",chunked:!0,reason:t})}parseFullDocument(e,t,n,i,o=!0){const s=ul(e);$v(t)&&Lc(t);const r=typeof n.__canUseImplicitLargeInputStrategy!="function"||n.__canUseImplicitLargeInputStrategy()?Sj(n,e.length,i):"no";if(r==="yes"){const a=i0(n,e,t);return ss(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-char-threshold",unbounded:!0}),{tokens:a,lineCount:i??(o?$o(e):0)}}let l=i;if(r==="need-lines"&&(l=$o(e),xj(n,e.length,l))){const a=i0(n,e,t);return ss(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-line-threshold",unbounded:!0}),{tokens:a,lineCount:l}}return l===void 0&&(l=o?$o(e):0),{tokens:C1(t,s,()=>this.core.parse(e,t,n).tokens),lineCount:l}}shouldUseUnboundedAppend(e,t,n){return!n||e.length=this.MIN_UNBOUNDED_APPEND_CHARS?!0:$o(n)>=this.MIN_UNBOUNDED_APPEND_LINES}getAppendedSegment(e,t,n){if(n===null||n===void 0&&!t.startsWith(e)||!e.endsWith(` -`))return null;const i=n??t.slice(e.length);if(!i)return null;const o=i.length;if(i.charCodeAt(o-1)!==10)return null;let s=0,r=-1;for(let a=0;a=2));a++);if(s<2)return null;const l=(r===-1?i:i.slice(0,r)).trim();if(l.length===0)return null;if(/^[-=]+$/.test(l)){const a=e.slice(0,-1),u=a.lastIndexOf(` -`);if(a.slice(u+1).trim().length>0)return null}return this.endsInsideOpenFence(e)||this.mayContainReferenceDefinition(i)?null:i}tryTailSegmentReparse(e,t,n,i){const o=this.ensureLastSegment(t);if(!o||o.srcOffset<=0&&o.tokenStart<=0)return null;const s=t.src.slice(0,o.srcOffset);if(!e.startsWith(s))return null;const r=t.src.slice(o.srcOffset),l=e.slice(o.srcOffset);if(l===r)return null;const a=e.startsWith(t.src)?e.slice(t.src.length):null;if(a){const u=this.tryContainerTailAppendMerge(e,t,n,i,o,a);if(u)return u}if(this.mayContainReferenceDefinition(r)||this.mayContainReferenceDefinition(l))return null;try{const u=this.core.parse(l,n,i),c=this.getLastSegment(u.tokens,l);return o.lineStart>0&&this.shiftTokenLines(u.tokens,o.lineStart),t.src=e,t.env=n,t.globalStateReason=null,t.globalStateCarry=void 0,t.tokens.length=o.tokenStart,this.appendTokens(t.tokens,u.tokens),t.lineCount=o.lineStart+$o(l),c?t.lastSegment={tokenStart:o.tokenStart+c.tokenStart,tokenEnd:o.tokenStart+c.tokenEnd,lineStart:o.lineStart+c.lineStart,lineEnd:o.lineStart+c.lineEnd,srcOffset:o.srcOffset+c.srcOffset}:t.lastSegment=null,t.tokens}catch{return null}}getTailLines(e,t){if(t<=0)return"";let n=t;for(let i=e.length-1;i>=0;i--)if(e.charCodeAt(i)===10&&(n--,n===0))return e.slice(i+1);return e}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,i=e.slice(n),o=i.length;let s=null,r=0;for(;r<=o;){let l=i.indexOf(` -`,r);l===-1&&(l=o);let a=r;for(;a=3&&(s?s.marker===u&&d>=s.length&&(s=null):s={marker:u,length:d})}}if(l===o)break;r=l+1}return s!==null}peek(){return this.cache?.tokens??Zhe}getStats(){return{...this.stats}}appendTokens(e,t,n=0,i=t.length){for(let o=n;ok8?n.slice(n.length-k8):n,i&&(e.globalStateReason=i),i}ensureLastSegment(e){return e.lastSegment!==void 0||(e.lastSegment=this.getLastSegment(e.tokens,e.src)),e.lastSegment}getLastSegment(e,t,n=0,i=e.length,o,s){if(i<=n)return null;let r=Number.POSITIVE_INFINITY,l=-1,a=0;for(let u=i-1;u>=n;u--){const c=e[u];if(c.map&&(c.map[0]l&&(l=c.map[1])),c.nesting<0){a+=-c.nesting;continue}if(c.nesting>0){if(a-=c.nesting,c.level===0&&a<=0){const d=Number.isFinite(r)?r:c.map?.[0]??0,f=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:f,srcOffset:this.getLineStartOffset(t,d,o,s)}}continue}if(c.level===0&&a===0){const d=Number.isFinite(r)?r:c.map?.[0]??0,f=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:f,srcOffset:this.getLineStartOffset(t,d,o,s)}}}return null}getLineStartOffset(e,t,n,i){if(n!==void 0&&i!==void 0&&t>=i)return this.getLineStartOffsetFrom(e,n,t-i);if(t<=0)return 0;let o=t,s=-1;for(;o>0;){if(s=e.indexOf(` -`,s+1),s===-1)return e.length;o--}return s+1}getLineStartOffsetFrom(e,t,n){if(n<=0)return t;let i=n,o=t-1;for(;i>0;){if(o=e.indexOf(` -`,o+1),o===-1)return e.length;i--}return o+1}mayContainReferenceDefinition(e){return e.includes("]:")?/(?:^|\n)[ \t]{0,3}\[[^\]\n]+\]:/.test(e):!1}canDirectlyParseAppend(e){if(!this.endsWithBlankLine(e.src))return!1;const t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case"paragraph_open":case"heading_open":case"fence":case"code_block":case"html_block":case"hr":case"table_open":return!0;default:return!1}}tryContainerTailAppendMerge(e,t,n,i,o,s){if(!s||this.mayContainReferenceDefinition(s))return null;const r=t.tokens[o.tokenStart];switch(r?.type){case"bullet_list_open":case"ordered_list_open":return this.tryListTailAppendMerge(e,t,n,i,o,s,r);case"table_open":return this.tryTableTailAppendMerge(e,t,n,i,o,s,r);default:return null}}tryListTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10)return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l0&&this.shiftTokenLines(d,f);const h=this.getListParagraphMode(t.tokens,o.tokenStart,t.tokens.length,r.level),m=this.getListParagraphMode(c,0,c.length,0);(h==="loose"||m==="loose"||this.endsWithBlankLine(t.src)||(c[0]?.map?.[0]??0)>0)&&(this.setListParagraphVisibility(t.tokens,o.tokenStart,t.tokens.length,r.level,!1),this.setListParagraphVisibility(d,0,d.length,r.level,!1)),t.tokens.splice(t.tokens.length-1,0,...d),t.src=e,t.env=n,t.globalStateReason=null;const g=f+$o(s);t.lineCount=g;const v=this.getDocLineCount(e,g);return r.map&&(r.map[1]=v),t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:v,srcOffset:o.srcOffset},t.tokens}tryTableTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10||/(?:^|\n)[ \t]*\n/.test(s))return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l=0?d.slice(f.tbodyOpenIndex+1,f.tbodyCloseIndex):d.slice(f.tbodyOpenIndex,f.tbodyCloseIndex+1);if(m.length===0)return null;const g=o.lineEnd-2;g!==0&&this.shiftTokenLines(m,g);const v=h.tbodyCloseIndex>=0?h.tbodyCloseIndex:h.tableCloseIndex,y=t.lineCount??$o(t.src);t.tokens.splice(v,0,...m),t.src=e,t.env=n,t.globalStateReason=null;const b=y+$o(s);t.lineCount=b;const A=this.getDocLineCount(e,b);if(r.map&&(r.map[1]=A),h.tbodyOpenIndex>=0){const w=t.tokens[h.tbodyOpenIndex];w?.map&&(w.map[1]=A)}return t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:A,srcOffset:o.srcOffset},t.tokens}getTableHeaderContext(e){const t=e.indexOf(` -`);if(t<0)return null;const n=e.indexOf(` -`,t+1);return n<0?null:e.slice(0,n+1)}getTableBodySection(e,t,n,i){if(t<0||t>=n||e[t]?.type!=="table_open")return null;let o=-1;for(let l=n-1;l>t;l--){const a=e[l];if(a.type==="table_close"&&a.level===i){o=l;break}}if(o<0)return null;let s=-1,r=-1;for(let l=t+1;l=0){for(let l=o-1;l>s;l--){const a=e[l];if(a.type==="tbody_close"&&a.level===i+1){r=l;break}}if(r<0)return null}return{tableCloseIndex:o,tbodyOpenIndex:s,tbodyCloseIndex:r}}isSingleTopLevelContainer(e,t,n,i){if(e.length<2)return!1;const o=e[0],s=e[e.length-1];if(o.type!==t||s.type!==n||o.level!==0||s.level!==0||i!==void 0&&o.markup!==i)return!1;let r=0;for(let l=0;l0&&l0||a.nesting<0)&&(r+=a.nesting)}return r===0}getListParagraphMode(e,t,n,i){let o=!1,s=!1;const r=i+2;for(let l=t;l=0;){const i=e.charCodeAt(n);if(i===32||i===9){n--;continue}return i===10}return!0}getDocLineCount(e,t=$o(e)){return e.length===0?0:e.charCodeAt(e.length-1)===10?t:t+1}shiftTokenLines(e,t){if(t===0)return;let n=null;for(let i=0;i=0;s--)n.push(o.children[s]);for(;n.length>0;){const s=n.pop();if(s.map&&(s.map[0]+=t,s.map[1]+=t),s.children)for(let r=s.children.length-1;r>=0;r--)n.push(s.children[r])}}}}};const ME={default:zhe,zero:jhe,commonmark:Phe};function Xhe(e){return{core:e.core.ruler.version,block:e.block.ruler.version,inline:e.inline.ruler.version,inline2:e.inline.ruler2.version}}function epe(e,t){return e.core.ruler.version!==t.core||e.block.ruler.version!==t.block||e.inline.ruler.version!==t.inline||e.inline.ruler2.version!==t.inline2}function IE(e){return e.experimental?{...e,...e.experimental}:e}function ra(e,t){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0)return!0;const n=e.experimental;return!!n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0}function TE(e,t,n){for(let i=0;i=4?n.quotes=[C[0],C[1],C[2],C[3]]:n.quotes=["“","”","‘","’"]}let r=TE(s?.options,o,["fullChunkSizeChars","fullChunkSizeLines","fullChunkMaxChunks"]),l=TE(s?.options,o,["streamChunkSizeChars","streamChunkSizeLines","streamChunkMaxChunks"]),a=EE(s?.options,o,"fullChunkedFallback"),u=EE(s?.options,o,"streamChunkedFallback"),c=!1,d=null,f=null;const h=new qfe;let m=null;const g=()=>(m||(m=new Khe(n)),m);let v=null;const y=()=>(v||(v=new Jhe(h)),v);let b=null;const A=()=>(b||(b=new Bz({fuzzyLink:!0})),b),w=C=>!c&&!!d&&!epe(C,d),M=(C,I)=>i==="default"&&!c&&m===null&&f!==null&&C.parse===f&&w(C)&&!C.stream.enabled&&I<(C.options.autoUnboundedThresholdChars??4e6)&&C.options.html===!1&&C.options.xhtmlOut===!1&&C.options.breaks===!1&&C.options.langPrefix==="language-"&&C.options.linkify===!1&&C.options.typographer===!1&&C.options.highlight===null,N=(C,I)=>i==="default"&&!c&&w(C)&&!C.stream.enabled&&!C.options.fullChunkedFallback&&I<(C.options.autoUnboundedThresholdChars??4e6)&&C.options.html===!1&&C.options.linkify===!1&&C.options.typographer===!1,T={core:h,block:h.block,inline:h.inline,get linkify(){const C=A();return Object.defineProperty(this,"linkify",{value:C,writable:!0,configurable:!0}),C},get renderer(){const C=g();return Object.defineProperty(this,"renderer",{value:C,writable:!0,configurable:!0}),C},options:n,__explicitFullChunkConfig:r,__explicitStreamChunkConfig:l,__explicitFullChunkFallbackSetting:a,__explicitStreamChunkFallbackSetting:u,__canUseImplicitLargeInputStrategy(){return w(this)},set(C){const I=IE(C);return this.options={...this.options,...I},(ra(C,"fullChunkSizeChars")||ra(C,"fullChunkSizeLines")||ra(C,"fullChunkMaxChunks"))&&(r=!0,this.__explicitFullChunkConfig=!0),(ra(C,"streamChunkSizeChars")||ra(C,"streamChunkSizeLines")||ra(C,"streamChunkMaxChunks"))&&(l=!0,this.__explicitStreamChunkConfig=!0),ra(C,"fullChunkedFallback")&&(a=!0,this.__explicitFullChunkFallbackSetting=!0),ra(C,"streamChunkedFallback")&&(u=!0,this.__explicitStreamChunkFallbackSetting=!0),m&&m.set(I),typeof I.stream=="boolean"&&(this.stream.enabled=I.stream,v&&(v.reset(),v.resetStats())),this},configure(C){const I=typeof C=="string"?ME[C]:C;if(!I)throw new Error("Wrong `markdown-it` preset, can't be empty");if(I.options&&this.set(I.options),I.components){const S=I.components;S.core?.rules&&this.core.ruler.enableOnly(S.core.rules),S.block?.rules&&this.block.ruler.enableOnly(S.block.rules),S.inline?.rules&&this.inline.ruler.enableOnly(S.inline.rules),S.inline2?.rules&&this.inline.ruler2.enableOnly(S.inline2.rules)}return this},enable(C,I){const S=Array.isArray(C)?C:[C],E=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],_=new Set;for(const F of E){if(!F)continue;const q=F.enable(S,!0);for(let P=0;P!_.has(q));if(F.length)throw new Error(`Rules manager: invalid rule name ${F.join(", ")}`)}return this},disable(C,I){const S=Array.isArray(C)?C:[C],E=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],_=new Set;for(const F of E){if(!F)continue;const q=F.disable(S,!0);for(let P=0;P!_.has(q));if(F.length)throw new Error(`Rules manager: invalid rule name ${F.join(", ")}`)}return this},use(C,...I){const S=typeof C=="function"?C:C&&typeof C.default=="function"?C.default:void 0;if(!S)throw new TypeError("MarkdownIt.use: plugin must be a function");const E=[this,...I],_=C;return c=!0,S.apply(_,E),this},render(C,I){let S;if(M(this,C.length)){I!==void 0&&(Or(I),S=l8("render"));const F=S?Mp():0,q=S?yE(C,S):vE(C);if(S&&(S.attemptMs=Mp()-F,q===null&&(S.fallbackReason="unsupported-stock-subset"),og(I,S)),q!==null)return I!==void 0&&ss(I,{area:"render",path:"stock-fast",reason:"stock-subset"}),q}const E=I??{},_=this.parse(C,E);return S&&og(E,S),g().render(_,this.options,E)},async renderAsync(C,I){let S;if(M(this,C.length)){I!==void 0&&(Or(I),S=l8("render"));const F=S?Mp():0,q=S?yE(C,S):vE(C);if(S&&(S.attemptMs=Mp()-F,q===null&&(S.fallbackReason="unsupported-stock-subset"),og(I,S)),q!==null)return I!==void 0&&ss(I,{area:"render",path:"stock-fast",reason:"stock-subset"}),q}const E=I??{},_=this.parse(C,E);return S&&og(E,S),g().renderAsync(_,this.options,E)},renderIterable(C,I={}){const S=this.parseIterable(C,I);return g().render(S,this.options,I)},async renderAsyncIterable(C,I={}){const S=await this.parseAsyncIterable(C,I);return g().renderAsync(S,this.options,I)},renderInline(C,I={}){const S=this.parseInline(C,I);return g().render(S,this.options,I)},validateLink:dj,normalizeLink:fj,normalizeLinkText:hj,utils:bce,helpers:{...ade},parse(C,I){if(typeof C!="string")throw new TypeError("Input data should be a String");if(I!==void 0&&Or(I),N(this,C.length)){const F=I===void 0?void 0:l8("parse"),q=F?Mp():0,P=nhe(C,F);if(F&&(F.attemptMs=Mp()-q,P===null&&(F.fallbackReason="unsupported-stock-subset"),og(I,F)),P!==null)return I!==void 0&&ss(I,{area:"parse",path:"stock-fast",reason:"stock-subset"}),P}const S=I??{};let E;if(!this.stream.enabled&&!this.options.fullChunkedFallback&&w(this)){const F=Sj(this,C.length);if(F==="yes"){const q=i0(this,C,S);return ss(I,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"char-threshold"}),q}F==="need-lines"&&(E=$o(C))}if(!this.stream.enabled){const F=C.length,q=this.options.autoTuneChunks!==!1,P=r,O=!a&&w(this),R=!!this.options.fullChunkedFallback,z=O&&F>=2e5;let H;(R||z||E!==void 0)&&(H=E??$o(C));const j=(R||z)&&q&&!P?$he(F,H,this.options):null;if(R||z){const Q=H??0;if(R?F>=(this.options.fullChunkThresholdChars??2e4)||Q>=(this.options.fullChunkThresholdLines??400):z){if(j&&j.strategy!=="plain"){const ae=kk(this,C,S,{maxChunkChars:j.maxChunkChars,maxChunkLines:j.maxChunkLines,fenceAware:j.fenceAware,maxChunks:j.maxChunks});return I&&LE(I,R?"explicit-full-chunk":"default-large-string"),ae}if(R){const ae=(Y,se,V)=>YV?V:Y,W=this.options.fullChunkAdaptive!==!1,G=this.options.fullChunkTargetChunks??8,oe=ae(Math.ceil(F/G),8e3,64e3),te=ae(Math.ceil(Q/G),150,700),ve=W?oe:this.options.fullChunkSizeChars??1e4,Te=W?te:this.options.fullChunkSizeLines??200,Fe=W?ae(Math.ceil(F/64e3),G,32):this.options.fullChunkMaxChunks,ye=kk(this,C,S,{maxChunkChars:ve,maxChunkLines:Te,fenceAware:this.options.fullChunkFenceAware??!0,maxChunks:Fe});return I&&LE(I,"explicit-full-chunk"),ye}}}if(E!==void 0&&w(this)&&xj(this,F,H??E)){const Q=i0(this,C,S);return ss(I,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"line-threshold"}),Q}}const _=ul(C);return ss(I,{area:"parse",path:"plain",reason:"default-plain"}),C1(S,_,()=>h.parse(C,S,this).tokens)},parseIterable(C,I={}){return Or(I),Fhe(this,C,I)},parseAsyncIterable(C,I={}){return Or(I),Bhe(this,C,I)},parseIterableToSink(C,I,S={}){return Or(S),Rhe(this,C,I,S)},parseAsyncIterableToSink(C,I,S={}){return Or(S),Ohe(this,C,I,S)},parseInline(C,I={}){if(typeof C!="string")throw new TypeError("Input data should be a String");Or(I),$v(I)&&Lc(I);const S=h.createState(C,I,this);return S.inlineMode=!0,h.process(S),S.tokens}};if(T.stream={enabled:!!n.stream,parse(C,I){return T.stream.enabled?y().parse(C,I,T):T.parse(C,I??{})},reset(){y().reset()},peek(){return v?v.peek():[]},stats(){return v?v.getStats():{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){v&&v.resetStats()}},s?.components){const C=s.components;C.core?.rules&&T.core.ruler.enableOnly(C.core.rules),C.block?.rules&&T.block.ruler.enableOnly(C.block.rules),C.inline?.rules&&T.inline.ruler.enableOnly(C.inline.rules),C.inline2?.rules&&T.inline.ruler2.enableOnly(C.inline2.rules)}return d=Xhe(T),f=T.parse,T}var npe=tpe;const Ej=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],ipe=["a","abbr","b","bdi","bdo","button","cite","code","data","del","dfn","em","font","i","ins","kbd","label","mark","q","s","samp","small","span","strong","sub","sup","time","u","var"],Lj=["article","aside","blockquote","details","div","figcaption","figure","footer","header","h1","h2","h3","h4","h5","h6","li","main","nav","ol","p","pre","section","summary","table","tbody","td","th","thead","tr","ul"],ope=["svg","g","path"],spe=["address","audio","body","canvas","caption","colgroup","datalist","dd","dialog","dl","dt","fieldset","form","head","hgroup","html","iframe","legend","map","menu","meter","noscript","object","optgroup","option","output","picture","progress","rp","rt","ruby","script","select","style","template","textarea","tfoot","title","video"],rpe=["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onsearch","innerhtml","outerhtml","textcontent","innertext","srcdoc","ping"],lpe=["action","data","href","src","srcset","poster","xlink:href","formaction"],ape=["script"],upe=["pre","iframe","picture","script","style","table","tbody","td","tfoot","th","thead","textarea","tr","title","video"],Hd=new Set(Ej),Nj=new Set(Lj),X0=new Set([...Ej,...ipe,...Lj,...ope]),Dj=new Set([...X0,...spe]),cpe=new Set(rpe),dpe=new Set(lpe),jv=new Set(ape),Fj=new Set(upe);function Bj(e){let t="";for(const n of e){const i=n.charCodeAt(0);i<=31||i>=127&&i<=159||/\s/u.test(n)||(t+=n)}return t}const fpe={amp:"&",bsol:"\\",colon:":",newline:` -`,sol:"/",tab:" "};function Rj(e){return e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|([a-z][a-z0-9]+));?/gi,(t,n,i,o)=>{const s=n??i;if(s){const r=Number.parseInt(s,n?10:16);try{return Number.isFinite(r)?String.fromCodePoint(r):""}catch{return""}}return fpe[String(o??"").toLowerCase()]??t})}const ty=new Set(["http","https","mailto","tel"]),hpe=new Set(["javascript","vbscript","data","file","ftp","blob","filesystem","intent","chrome","chrome-extension","moz-extension","ms-browser-extension","view-source"]),Ff=new Set(["http","https"]);function Oj(e){return e.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]?.toLowerCase()??""}const ppe=/^https?:\/\//i;function mpe(e){if(!ppe.test(e))return!1;for(const t of e){const n=t.charCodeAt(0);if(t==="&"||n<=32||n>=127&&n<=159||n>127&&/\s/u.test(t))return!1}return!0}function gpe(e,t,n){if(!r0(t,n)||!e.startsWith("file:///"))return!1;const i=e.charAt(8);return i!=="/"&&i!=="\\"}function r0(e,t){return e?(e==="a"||e==="area")&&(!t||t==="href"||t==="xlink:href"):!t||t==="href"}function vpe(e,t){return t==="href"||t==="xlink:href"?r0(e,t)?ty:Ff:t==="src"||t==="srcset"||t==="poster"||t==="action"||t==="formaction"||t==="data"?Ff:(r0(e,t),ty)}function Ch(e,t={}){if(mpe(e))return!1;const n=Bj(Rj(e)).toLowerCase(),i=String(t.tagName??"").toLowerCase(),o=String(t.attrName??"").toLowerCase();if(!n)return!1;if(n.startsWith("data:")){const r=/^data:image\/(?:png|gif|jpe?g|webp|avif|bmp);/i.test(n);return i==="img"&&o==="src"?!r:!0}if(/^[\\/]{2}/.test(n))return!0;if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#")||n.startsWith("?"))return!1;const s=Oj(n);return s?s==="file"?!gpe(n,i,o):r0(i,o)?hpe.has(s):!vpe(i,o).has(s):!1}function ype(e){const t=Rj(String(e??"")).trim();if(!t||t.startsWith("#")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("?"))return!1;const n=Oj(Bj(t).toLowerCase());return n==="http"||n==="https"}function kpe(e,t={}){const n=String(e??"").trim();return n?Ch(n,t)?"":n:""}function NE(e){return kpe(e,{tagName:"img",attrName:"src"})}function bpe(e,t,n){function i(f){return f.trim().split(" ",2)[0]===t}function o(f,h,m,g,v){return f[h].nesting===1&&f[h].attrJoin("class",t),v.renderToken(f,h,m,g,v)}n=n||{};const s=3,r=n.marker||":",l=r.charCodeAt(0),a=r.length,u=n.validate||i,c=n.render||o;function d(f,h,m,g){let v,y=!1,b=f.bMarks[h]+f.tShift[h],A=f.eMarks[h];if(l!==f.src.charCodeAt(b))return!1;for(v=b+1;v<=A&&r[(v-b)%a]===f.src[v];v++);const w=Math.floor((v-b)/a);if(w=m||(b=f.bMarks[T]+f.tShift[T],A=f.eMarks[T],b=4)){for(v=b+1;v<=A&&r[(v-b)%a]===f.src[v];v++);if(!(Math.floor((v-b)/a)=2){const r=Number(s[0]),l=Number(s[1]);Number.isFinite(r)&&Number.isFinite(l)&&(o.map=[r+t,Math.min(l+t,n)])}Array.isArray(o.children)&&$j(o.children,t,n)}}function Cpe(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(bpe,t,{render(n,i){return n[i].nesting===1?`
          `:`
          -`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,i,o)=>{const s=t,r=s.bMarks[n]+s.tShift[n],l=s.eMarks[n],a=s.src.slice(r,l),u=a.match(/^:::\s*([^\s{]+)/);if(!u)return!1;const c=u[1];if(!c.trim())return!1;const d=a.slice(u[0].length).trim();let f,h;const m=d.indexOf("{"),g=m>=0?d.slice(m).trimStart():void 0;if(m===-1)f=d||void 0;else{if(f=d.slice(0,m).trim()||void 0,g?.startsWith("{")){let N=0,T=-1;for(let C=0;C0&&(h=g.slice(0,T))}h||(f=d||void 0)}if(o)return!0;const v=!!s.env.__markstreamFinal;let y=n+1,b=!1;for(;y<=i;){const N=s.bMarks[y]+s.tShift[y],T=s.eMarks[y];if(s.src.slice(N,T).trim()===":::"){b=!0;break}y++}b||(y=i);const A=s.push("vmr_container_open","div",1);if(A.attrSet("class",`vmr-container vmr-container-${c}`),A.map=[n,b?y:i],A.meta={...A.meta??{},unclosed:!b&&!v},f&&A.attrSet("data-args",f),h)try{const N=JSON.parse(h);for(const[T,C]of Object.entries(N)){const I=C!=null&&typeof C=="object";A.attrSet(`data-${T}`,I?JSON.stringify(C):String(C))}}catch{const N=wpe(h);if(N)for(const[T,C]of Object.entries(N)){const I=C!=null&&typeof C=="object";A.attrSet(`data-${T}`,I?JSON.stringify(C):String(C))}else A.attrSet("data-attrs",h)}const w=[];for(let N=n+1;NN.trim().length>0)){let N=w.join(` -`);N.endsWith(` -`)||(N+=` -`),N.endsWith(` - -`)||(N+=` -`);const T=s.tokens[s.tokens.length-1];T&&(T.raw=N);const C=[];s.md.block.parse(N,s.md,s.env,C),$j(C,n+1,n+1+w.length),s.tokens.push(...C)}const M=s.push("vmr_container_close","div",-1);return b||(M.hidden=!0,M.map=[i,i]),s.line=b?y+1:y,!0},{alt:["paragraph","reference","blockquote","list"]})}function Ka(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ho(e){let t=!1,n=!1;for(let i=0;i")return i}return-1}function s4(e){const t=[],n=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let i;for(;(i=n.exec(e))!==null;){const o=i[1];if(!o)continue;const s=i[2]||i[3]||i[4]||"";t.push([o,s])}return t}const Ape=/^[a-z][a-z0-9_-]*$/;function DE(e){return Ape.test(String(e??"").trim().toLowerCase())}function wa(e){const t=String(e??"").trim();if(!t)return"";if(!t.startsWith("<"))return DE(t)?t.toLowerCase():"";let n=1;for(;n]/.test(s)?"":DE(o)?o:""}function tp(e){if(!e||e.length===0)return[];const t=new Set,n=[];for(const i of e){const o=wa(i);!o||t.has(o)||(t.add(o),n.push(o))}return n}function xpe(...e){const t=new Set,n=[];for(const i of e)for(const o of tp(i))t.has(o)||(t.add(o),n.push(o));return n}function Spe(e){const t=tp(e);return{key:t.join(","),tags:t}}function Pj(e){return wa(e)}function _pe(e,t){const n=String(e??""),i=wa(t);if(!i)return!1;const o=Ka(i),s=n.match(new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?(\s*\/)?>`,"i"));return s?s[1]?!0:new RegExp(String.raw`<\s*\/\s*${o}\s*>`,"i").test(n):!1}function zj(e,t){const n=wa(t);return!!n&&!X0.has(n)&&!_pe(e,n)}function Mpe(e,t){const n=String(e??""),i=wa(t);if(!i)return n;const o=Ka(i),s=new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?>\s*`,"i"),r=new RegExp(String.raw`\s*<\s*\/\s*${o}\s*>\s*$`,"i");return n.replace(s,"").replace(r,"")}const jj=Hd,Ipe=X0,Hj=new Set(Nj);Hj.delete("details");const Tpe=/<([A-Z][\w-]*)(?=[\s/>]|$)/gi,Epe=/<\/\s*([A-Z][\w-]*)(?=[\s/>]|$)/gi,LC=/^<\s*(?:\/\s*)?([A-Z][\w-]*)/i,Lpe=/^<\s*([A-Z][\w:-]*)(?=[\s/>]|$)/i;function wk(e){return(e.match(LC)?.[1]??"").toLowerCase()}function I7(e){return/^\s*<\s*\//.test(e)}function T7(e,t){return jj.has(t)||/\/\s*>\s*$/.test(e)}function Npe(e,t){let n=0;for(let i=0;i0&&n--;continue}T7(o,s)||n++}}return n}function FE(e,t,n=0){const i=new RegExp(String.raw`<\s*(\/?)\s*${Ka(t)}(?=[\s>/])[^>]*>`,"gi");i.lastIndex=Math.max(0,n);let o=0,s;for(;(s=i.exec(e))!==null;){const r=s[0]??"",l=!!s[1],a=!l&&/\/\s*>$/.test(r);if(l){if(o===0)return{start:s.index,end:s.index+r.length};o--;continue}a||o++}return null}function Fpe(e,t){const n=new RegExp(String.raw`<\s*(\/?)\s*${Ka(t)}(?=[\s>/])[^>]*>`,"gi");let i=0,o;for(;(o=n.exec(e))!==null;){const s=o[0]??"",r=!!o[1],l=!r&&/\/\s*>$/.test(s);if(r){i>0&&i--;continue}l||i++}return i}function Ck(e){const t=e;return String(t.raw??t.content??t.markup??"")}function Bpe(e){const t=e;return t.meta||(t.meta={}),t.meta}function b8(e,t,n){const i=Bpe(e);i.markstreamCustomHtmlRaw=t,i.markstreamCustomHtmlInner=n}function Rpe(e,t){if(!t.size)return;const n=Array.from(t,h=>new RegExp(String.raw`<\s*${Ka(h)}(?=[\s>/])`,"i")),i=[];let o=!1;const s=h=>h?n.some(m=>m.test(h)):!1,r=h=>{if(!(!h||!i.length))for(const m of i)m.raw+=h,m.inner+=h},l=()=>{!i.length||!o||(r(` -`),o=!1)},a=h=>{r(h)},u=h=>{for(let g=0;g{const m=i[i.length-1]?.tag;if(!m)return null;const g=new RegExp(String.raw`^\s*<\s*\/\s*${Ka(m)}\s*>`,"i");return h.match(g)?.[0]??null},d=h=>!!c(h),f=(h,m,g)=>{const v=g??(h.type==="html_inline"?wk(m):"");if(!(v&&t.has(v))){r(m);return}const y=I7(m),b=!y&&T7(m,v);if(y){if(!i.length||i[i.length-1].tag!==v){r(m);return}u(m);return}if(r(m),b){b8(h,m,"");return}i.push({tag:v,token:h,raw:m,inner:""})};for(const h of e){if(h.type==="inline"&&Array.isArray(h.children)){const m=String(h.content??"");if(d(m)?o=!1:l(),!i.length&&!s(m)){o=!1;continue}let g=0,v=!0;for(const y of h.children){const b=Ck(y),A=y.type==="html_inline"?wk(b):"",w=A&&t.has(A);let M=b;if(v&&m&&b&&(i.length||w)){const N=m.indexOf(b,g);if(N!==-1)a(m.slice(g,N)),M=m.slice(N,N+b.length),g=N+b.length;else{if(i.length&&!w)continue;v=!1}}f(y,M,A)}v&&m&&g0;continue}if(i.length&&typeof h.content=="string"){const m=Ck(h),g=h.type==="html_block"?c(m):null;if(g){u(`${o?` -`:""}${g}`),o=i.length>0;continue}if(!h.content)continue;l(),r(h.content),o=!0}}for(const h of i)b8(h.token,h.raw,h.inner)}function Ope(e){return/^\s*<\s*[!?]/.test(e)}function $pe(e){const t=new Set(Ipe);if(e&&Array.isArray(e))for(const n of e){const i=String(n??"").trim();if(!i)continue;const o=i.match(/^[<\s/]*([A-Z][\w-]*)/i);o&&t.add(o[1].toLowerCase())}return t}function BE(e,t){if(t.has(e))return!0;for(const n of t)if(n.startsWith(e))return!0;return!1}function Ppe(e,t){let n=null;for(const s of e.matchAll(Tpe)){const r=s.index??-1;if(r<0)continue;const l=(s[1]??"").toLowerCase();BE(l,t)&&Ho(e.slice(r))===-1&&(!n||r")&&(!n||s")&&(!n||s{const h=f,m=new Set(n),g=Array.isArray(h.env?.__markstreamCustomHtmlTags)?h.env.__markstreamCustomHtmlTags:[];for(const A of g){const w=wa(String(A??""));w&&m.add(w)}const v=$pe(Array.from(m)),y=new Set(Hpe);for(const A of m)y.add(A);return{autoCloseInlineTagSet:y,commonHtmlTags:v,customTagSet:m,shouldMergeHtmlBlockTag:A=>m.has(A)||!v.has(A)||Hj.has(A)}},o=f=>{if(f.type==="html_block")return String(f.content??"");if(f.type!=="inline"||!Array.isArray(f.children)||f.children.length!==1)return"";const h=f.children[0];return h?.type!=="html_block"?"":String(f.content??h.content??"")},s=(f,h)=>{f.type="html_block",f.content=h,f.raw=h,f.children=[]},r=f=>f.replace(/^(?:\r?\n)+/,""),l=f=>/^(?: {4}|\t)/.test(f),a=f=>f.replace(/^(?: {4}|\t)/gm,""),u=(f,h)=>{const m=r(f);if(!/\S/.test(m))return[];if(l(m))return[{type:"code_block",content:a(m),raw:m}];const g=m.replace(/^[\t ]+/,"");if(!g)return[];if(g.startsWith("<"))return[{type:"html_block",content:g}];const v={type:"inline",tag:"",nesting:0,content:g,children:[{type:"text",content:g,raw:g}]};return h==="paragraph"?[{type:"paragraph_open",tag:"p",nesting:1},v,{type:"paragraph_close",tag:"p",nesting:-1}]:h==="text"?[{type:"text",content:g,raw:g}]:[v]},c=(f,h,m)=>f[h-1]?.type==="paragraph_open"&&f[h+1]?.type==="paragraph_close"?"inline":m,d=(f,h)=>{const m=r(h);return!/\S/.test(m)||f.type!=="inline"||!Array.isArray(f.children)?!1:(f.content=`${String(f.content??"")}${m}`,f.children.push({type:"text",content:m,raw:m}),!0)};e.core.ruler.after("inline","fix_html_inline_streaming",f=>{const h=f.tokens??[],{commonHtmlTags:m,customTagSet:g}=i(f);for(const v of h){const y=v;if(y.type!=="inline"||!Array.isArray(y.children))continue;const b=String(y.content??""),A=y.children.length?y.children:b.includes("<")?[{type:"text",content:b,raw:b}]:null;if(A)try{const w=jpe(A,m);if(y.children=w.children,w.pendingBuffer){const M=b.lastIndexOf(w.pendingBuffer);if(M!==-1){const N=b.slice(0,M);y.content=N,typeof y.raw=="string"&&(y.raw=N)}}}catch(w){console.error("[applyFixHtmlInlineTokens] failed to fix streaming html inline",w)}}Rpe(h,g)}),e.core.ruler.push("fix_html_inline_tokens",f=>{const h=f.tokens??[],{autoCloseInlineTagSet:m,customTagSet:g,shouldMergeHtmlBlockTag:v}=i(f),y=[];for(let b=0;b0){const[M,N]=y[y.length-1];if(b!==N){if(A.type==="paragraph_open"||A.type==="paragraph_close"){h.splice(b,1),b--;continue}const T=String(A.content??A.raw??"");if(T){const C=h[N],I=`${String(C.content||"")} -${T}`,S=Ho(I),E=S===-1?null:FE(I,M,S+1);if(E){const _=I.slice(0,E.end),F=I.slice(E.end);C.content=_,C.loading=!1,h.splice(b,1),y.pop();const q=d(C,F)?[]:u(F,c(h,b,"paragraph"));q.length&&h.splice(b,0,...q),b--;continue}C.content=I,C.loading!==!1&&(C.loading=!0)}h.splice(b,1),b--;continue}}const w=o(A);if(w){if(Ope(w))continue;const M=(w.match(/<\s*(?:\/\s*)?([^\s>/]+)/)?.[1]??"").toLowerCase(),N=/^\s*<\s*\//.test(w);if(!M||!v(M))continue;if(s(A,w),!N)M&&!new RegExp(`^\\s*<\\s*${M}\\b[^>]*\\/\\s*>`,"i").test(w)&&Fpe(w,M)>0&&y.push([M,b]);else if(y.length>0&&M&&y[y.length-1][0]===M){const[,T]=y[y.length-1],C=h[T];C.content=`${String(C.content||"")} -${w}`,C.loading=!1,y.pop(),h.splice(b,1),b--}continue}else if(y.length>0){if(A.type==="paragraph_open"||A.type==="paragraph_close"){h.splice(b,1),b--;continue}const M=A.content||"",N=new RegExp(`<\\s*\\/\\s*${y[y.length-1][0]}\\s*>`,"i").test(M);if(M){const[,T]=y[y.length-1],C=h[T];C.content=`${C.content||""} -${M}`,C.loading!==!1&&(C.loading=!N)}N&&y.pop(),h.splice(b,1),b--}else continue}if(g.size>0){const b=new Map,A=new Map,w=T=>{let C=b.get(T);return C||(C=new RegExp(`<\\s*${T}\\b`,"i"),b.set(T,C)),C},M=T=>{let C=A.get(T);return C||(C=new RegExp(`<\\s*\\/\\s*${T}\\s*>`,"i"),A.set(T,C)),C},N=[];for(let T=0;T0){const E=N[N.length-1],_=h[E.index],F=C.type==="html_block"?M(E.tag).exec(I):null;if(F){const O=F.index+F[0].length,R=I.slice(0,O),z=I.slice(O);_.content=`${String(_.content??"")} -${R}`,Array.isArray(_.children)&&_.children.push({type:"html_inline",content:``,raw:``}),N.pop();const H=d(_,z)?[]:u(z,c(h,T,"paragraph"));H.length?h.splice(T,1,...H):(h.splice(T,1),T--);continue}if(C.type!=="inline")continue;const q=Array.isArray(C.children)?C.children:[],P=Npe(q,E.tag);if(P!==-1){const O=q.slice(0,P+1),R=q.slice(P+1),z=O.map(H=>String(H?.content??H?.raw??"")).join("");if(_.content=`${String(_.content??"")} -${z}`,Array.isArray(_.children)&&_.children.push(...O),R.length){const H=R.map(j=>String(j.content??j.raw??"")).join("");if(H.trim()){const j=H.replace(/^\s+/,"");if(d(_,H))h.splice(T,1),T--;else if(j.startsWith("<"))h.splice(T,1,{type:"html_block",content:j});else{const Q=u(H,c(h,T,"paragraph"));h.splice(T,1,...Q)}}else h.splice(T,1),T--}else h.splice(T,1),T--;N.pop();continue}_.content=`${String(_.content??"")} -${I}`,Array.isArray(_.children)&&_.children.push(...q),h.splice(T,1),T--;continue}if(C.type!=="inline")continue;const S=Array.isArray(C.children)?C.children:[];for(const E of g)if((S.length?Dpe(S,E):w(E).test(I)&&!M(E).test(I)?1:0)>0){N.push({tag:E,index:T});break}}}{let b=0;for(let A=0;A0?b--:(h.splice(A,1),A--))}}for(let b=0;b/]+)/)?.[1]??"").toLowerCase();if(C.startsWith("!")||C.startsWith("?")){A.loading=!1;continue}if(g.has(C)){const P=String(A.content??""),O=Ho(P),R=O===-1?null:FE(P,C,O+1);A.loading=R?!1:A.loading!==void 0?A.loading:!0;const z=R?.start??-1,H=R?R.end-R.start:0;if(z!==-1){const j=P.slice(0,z+H);let Q="";O!==-1&&O]+)))?/g;let S;for(;(S=I.exec(A.content||""))!==null;)S[1],S[2]||S[3]||S[4];const E=String(A.content??""),_=new RegExp(`<\\/\\s*${C}\\s*>`,"i").exec(E),F=_?_.index:-1,q=_?_[0].length:0;if(F!==-1){const P=E.slice(0,F+q),O=(E.slice(F+q)||"").replace(/^\s+/,"");A.children=[{type:"html_block",content:P,tag:C,loading:!1}],A.content=P,A.raw=P,O&&h.splice(b+1,0,O.startsWith("<")?{type:"html_block",content:O}:{type:"text",content:O,raw:O})}else A.children=[{type:"html_block",content:A.content,tag:C,loading:!0}];continue}if(!A||A.type!=="inline")continue;if(A.children.length===2&&A.children[0].type==="html_inline"){const C=(A.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase(),I=A.children[1],S=String(I?.content??"").match(/^<\s*\/\s*([^\s>]+)/)?.[1]?.toLowerCase()??"";if(I?.type==="html_inline"&&S===C)continue;m.has(C)?(A.children[0].loading=!0,A.children[0].tag=C,A.children.push({type:"html_inline",tag:C,loading:!0,content:``})):A.children=[{type:"html_block",loading:!0,tag:C,content:String(A.children[0]?.content??"")+String(A.children[1]?.content??"")}];continue}else if(A.children.length===3&&A.children[0].type==="html_inline"&&A.children[2].type==="html_inline"){const C=(A.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase();if(m.has(C))continue;A.children=[{type:"html_block",loading:!1,tag:C,content:A.children.map(I=>I.content).join("")}];continue}if(!A.content?.startsWith("<")||A.children?.length!==1)continue;const w=String(A.content),M=A,N=M.children[0];if(N?.type!=="html_inline"){/^<\s*(?:\/\s*)?[A-Z][\w:-]*\s*$/i.test(w)&&(M.children.length=0);continue}const T=String(N.content??w).match(Lpe)?.[1]?.toLowerCase()??"";if(T){if(/\/\s*>\s*$/.test(w)||jj.has(T)){M.children=[{type:"html_inline",content:w}];continue}M.children.length=0}}})}function qpe(e){const t=e.trim();return!t||/^&[a-z0-9#]+;/i.test(t)?!1:!!(/^(?:const|let|var|function|class|import|export|if|for|while|return|await|async|yield|try|catch|throw|new|typeof|instanceof|switch|case|break|continue|def|ruby|perl|print|echo|true|false|null|undefined|NaN|Infinity|this)\b/.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\])*\s*\(/i.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[[\d+\]])+/i.test(t)||/\w+\s*(?:===?|!==?|<=?|>=?|\+\+|--|&&|\|\||\?\.)/.test(t)||/^(?:!!|\+\+|--)\s*\w/.test(t)||/[\w$]+\s*(?:\+=|-=|\*=|\/=|%=|\*\*=|=)/.test(t)||/^(?:https?:\/\/|ftp:\/\/|file:\/\/|\/\/|www\.)/i.test(t)||/`[^`]*\$\{[^}]*\}[^`]*`/.test(t)||/<\/?[A-Z][a-zA-Z0-9]*/.test(t)||/<[a-z][a-z0-9]*\s[^>]+>/.test(t)||/^(["'`]).*\1\s*[;,]?$/.test(t)||/^\[[\s\S]*\]$/.test(t)||/^\{[\s\S]*\}$/.test(t)||/^\(\s*\)$/.test(t)||/[\w$]+(?:\s*[+\-*/%<>=!&|^~:]+\s*[\w$]+|\s*\.\s*[\w$]+)/.test(t)||/=>|->|::/.test(t)||/^@[\w.$]+$/.test(t)||/^(?:0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\d+(?:\.\d*)?(?:px|em|rem|%|vh|vw|deg|s|ms)?)$/.test(t)||/^\$[\w$]+\s*[=:]/.test(t)||/\|\s*\w+|\w+\s*\|/.test(t)||/^(?:git|npm|yarn|pnpm|bun|pip|cargo|go|rust|python|node|java|mvn|gradle|docker|kubectl)\s+/.test(t)||/(?:console|window|document|Math|JSON|Date|Array|Object|String|Number|Boolean)\.[a-zA-Z]/.test(t)||/^(?:\/\/|#|\/\*|\*\/|)/.test(t)||/^(?:<<<|<<\s*['"]?\w+['"]?)/.test(t))}function Upe(e,t={}){t.enabled!==!1&&e.core.ruler.after("inline","fix_indented_code_block",n=>{const i=n.tokens??[];for(let o=0;oa.trim().length>0);if(l.length===1&&!qpe(l[0]??"")){const a=l[0]??"",u=s.level??0;i.splice(o,1,{type:"paragraph_open",tag:"p",nesting:1,level:u},{type:"inline",tag:"",nesting:0,level:u,content:a,children:[{type:"text",content:a,level:u+1,raw:a}],block:!0},{type:"paragraph_close",tag:"p",nesting:-1,level:u}),o+=2}}})}const Wj=/\.([a-z0-9]{1,15})$/i,Vpe=/[_()[\]{}<>]/u,Kpe=/^(?:https?:\/\/|ftp:\/\/|mailto:|www\.)/i,Zpe=/[?#@]/u,Gpe=/[\\/]/u,Qpe=/^[\p{L}\p{N}./\\-]+$/u,Ype=/^[A-Za-z0-9-]{1,63}$/u,Jpe=/^xn--[a-z0-9-]{2,59}$/i,Xpe=/^(?:[A-Z]{1,6}|\d{1,8})$/u,e1e=/^(?=.{1,12}$)[A-Z0-9]+(?:[-.][A-Z0-9]+)*$/iu,t1e=/文件名\s*[::]?|附件\s*[::]?|路径\s*[::]?|路徑\s*[::]?|文件列表\s*[::]?|文档列表\s*[::]?|文檔列表\s*[::]?|\bfile\s*names?\b\s*[::]?|\battachments?\b\s*[::]?|\bpaths?\b\s*[::]?|\bfile\s+lists?\b\s*[::]?|\bdocument\s+lists?\b\s*[::]?/iu,n1e=/文件名\s*[::]?|文件\s*[::]?|附件\s*[::]?|档案\s*[::]?|檔案\s*[::]?|文档\s*[::]?|文檔\s*[::]?|资料\s*[::]?|資料\s*[::]?|路径\s*[::]?|路徑\s*[::]?|\bfile\s*name\b\s*[::]?|\battachments?\b\s*[::]?|\bfiles?\b\s*[::]?|\bdocuments?\b\s*[::]?|\bdocs?\b\s*[::]?|\bpaths?\b\s*[::]?/iu,i1e=/股票代码|股票代碼|证券代码|證券代碼|(?:代码|代碼|交易所|后缀|後綴|市场|市場)(?=$|[\s::/|,,、()()])|\btickers?\b|\bsymbols?\b|\bexchanges?\b/iu,o1e=2e3,s1e=512,r1e={},l1e=new Set(["ai","md","py","rs","sh","zip"]),qj=new Set(["as","bj","de","hk","l","ln","ny","pa","sh","ss","sz","t","us"]),a1e=new Set([...qj,"at","ax","cn","co","it","jp","ks","mc","mx","nz","pl","sa","si","to","tw"]),u1e=new Set(["com","dev","io","page","site"]),c1e=new Set(["app","apk","dmg","exe","ipa","lock","log","markdown","webmanifest"]),d1e=new Set(["7z","ai","astro","avi","bash","bz2","c","cjs","cpp","cs","csv","doc","docx","fish","flac","gif","go","gz","h","hpp","html","java","jpeg","jpg","js","json","jsx","kt","md","mdx","mjs","mov","mp3","mp4","pdf","php","png","ppt","pptx","ps1","py","rar","rb","rs","sh","sql","svg","swift","svelte","tar","tgz","toml","ts","tsx","txt","vue","wav","webp","xls","xlsx","xml","yaml","yml","zip","zsh"]),lh=new Map;function RE(e,t){if(!e||e.length>s1e)return t;for(lh.set(e,t);lh.size>o1e;){const n=lh.keys().next().value;if(!n)break;lh.delete(n)}return t}function ev(e){return e?.filename===!0||e?.explicitFilename===!0||e?.marketTicker===!0}function w8(e,t){const n={filename:e?.filename||t?.filename,explicitFilename:e?.explicitFilename||t?.explicitFilename,marketTicker:e?.marketTicker||t?.marketTicker};return ev(n)?n:void 0}function OE(e,t){if(!ev(t))return e;const n=e?.__linkifyDemotionContext;return{...e,__linkifyDemotionContext:{filename:n?.filename||t?.filename,explicitFilename:n?.explicitFilename||t?.explicitFilename,marketTicker:n?.marketTicker||t?.marketTicker}}}function $E(e){const t=Hv(e);return ev(t)?t:void 0}function f1e(e){return e.replace(/^[\s>*_`[\]((【《"'“‘]+/u,"").replace(/[\s<*_`\]))】》"'.。;;,,、::!?!?]+$/u,"")}function PE(e,t){if(!ev(t))return;const n=String(e??"").trim().split(/\s+/u).map(f1e).filter(Boolean);if(n.length===0)return;const i={};return t?.filename&&n.every(o=>Ak(o,{filename:!0,explicitFilename:t.explicitFilename}))&&(i.filename=!0),t?.explicitFilename&&i.filename&&(i.explicitFilename=!0),t?.marketTicker&&n.every(o=>Ak(o,{marketTicker:!0}))&&(i.marketTicker=!0),ev(i)?i:void 0}function af(e,t=!1){let n;return{options(i){return t||i==null?OE(e,n):OE(e,w8($E(i),PE(i,n)))},remember(i){const o=$E(i);n=t?w8(n,o):w8(o,PE(i,n))},reset(){n=void 0}}}function zE(e){return Ype.test(e)&&!e.startsWith("-")&&!e.endsWith("-")}function h1e(e){const t=e.split(".");if(t.length<2)return!1;const n=t[t.length-1]?.toLowerCase()??"";return zE(n)||Jpe.test(n)?t.every(zE):!1}function Uj(e){return Array.from(e).some(t=>t.charCodeAt(0)>127)}function p1e(e){return e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/,1)[0]??""}function m1e(e){return e.split(".").some(t=>t.toLowerCase().startsWith("xn--"))}function Vj(e,t,n){const i=p1e(t);return Uj(e)&&m1e(i)&&String(n??"").toLowerCase().includes(i.toLowerCase())}function g1e(e){if(!e)return!1;if(e.includes("文件")||e.includes("附件")||e.includes("路径")||e.includes("路徑")||e.includes("文档")||e.includes("文檔")||e.includes("档案")||e.includes("檔案")||e.includes("资料")||e.includes("資料")||e.includes("股票")||e.includes("证券")||e.includes("證券")||e.includes("代码")||e.includes("代碼")||e.includes("交易所")||e.includes("后缀")||e.includes("後綴")||e.includes("市场")||e.includes("市場"))return!0;const t=e.toLowerCase();return t.includes("file")||t.includes("attachment")||t.includes("document")||t.includes("doc")||t.includes("path")||t.includes("ticker")||t.includes("symbol")||t.includes("exchange")}function Hv(e){const t=String(e??""),n=lh.get(t);return n?(lh.delete(t),lh.set(t,n),n):g1e(t)?RE(t,{explicitFilename:t1e.test(t),filename:n1e.test(t),marketTicker:i1e.test(t)}):RE(t,r1e)}function v1e(e){return h1e(e.split(/[\\/]/)[0]??"")}function y1e(e){const t=e.replace(/[^a-z]/gi,"");return t.length>=2&&t===t.toUpperCase()}function k1e(e){if(Vpe.test(e)||!Qpe.test(e))return!0;if(Gpe.test(e))return!v1e(e);const t=e.replace(Wj,"");return Uj(t)?!0:t.split(".").filter(Boolean).some(y1e)}function b1e(e,t,n){if(!(n?a1e:qj).has(t))return!1;const i=e.slice(0,-(t.length+1));return i===""?e.startsWith("."):(n?e1e:Xpe).test(i)}function Ak(e,t={}){if(!e||Kpe.test(e)||Zpe.test(e))return!1;const n=e.match(Wj);if(!n)return!1;const i=String(n[1]??"").toLowerCase();return b1e(e,i,t.marketTicker===!0)?!0:d1e.has(i)?!l1e.has(i)||t.filename?!0:k1e(e):!!(t.explicitFilename&&u1e.has(i)||t.filename&&c1e.has(i))}const Kj=new WeakMap,Zj=new WeakSet;function NC(e,t){return Kj.set(e,t),e}function w1e(e){return Kj.get(e)}function C1e(e){Zj.add(e)}function A1e(e){return e===void 0||Zj.has(e)}const jE=["!"];function HE(e){return e==="linkify"||e==="autolink"?e:"recovery"}function rl(e){return{type:"text",content:e,raw:e}}function Bf(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function Rf(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Kc(e,t,n,i="recovery"){let o="";if(t.includes('"')){const s=t.split('"');t=s[0].trim(),o=s[1].trim()}return NC({type:"link",loading:n,href:t,title:o,text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`},i)}function x1e(e,t){if(!(!e||!t)&&(e.href=String(e.href??"")+t,e.text=String(e.text??"")+t,e.raw=`[${e.text}](${e.href})`,Array.isArray(e.children)&&e.children.length)){const n=e.children[e.children.length-1];n?.type==="text"?(n.content=String(n.content??"")+t,n.raw=String(n.raw??"")+t):e.children.push(rl(t))}}function WE(e,t){let n=-1;for(const i of t){const o=e.indexOf(i);o!==-1&&(n===-1||on?.[0]==="href")?.[1];return typeof t=="string"?t:""}function _1e(e,t){if(!e)return;e.attrs=Array.isArray(e.attrs)?e.attrs:[];const n=e.attrs.findIndex(i=>i?.[0]==="href");n>=0?e.attrs[n][1]=t:e.attrs.push(["href",t])}function qE(e,t,n){let i="";for(let o=t+1;o{const n=t.tokens??[];for(let i=0;ir.type==="code_inline"),i=new Map;let o=0;for(let r=0;r0&&u?UE(u):-1;if(c!==-1&&u)for(const d of u.slice(c))d==="("?o++:d===")"&&o>0&&o--}a!==-1&&(r=a);continue}if(!(l.type!=="text"||typeof l.content!="string"))for(const a of l.content)a==="("?o++:a===")"&&o>0&&o--}const s=Hv(t);for(let r=0;r<=e.length-1;r++){r<0&&(r=0);const l=e[r];if(!l)break;if(l.type==="link_open"&&(l.markup==="linkify"||l.markup==="autolink")){let a=-1;for(let u=r+1;u0){const m=UE(u);m!==-1&&(d===-1||m=g.content.length){h-=g.content.length;continue}if(h<0)break;const v=g.content[h],y=g.content.slice(0,h);let b=g.content.slice(h);for(let M=m+1;M0&&(e.splice(m+1,A),a=m+1);let w=c;if(v==="!"&&f!==-1)w=c.slice(0,f);else if(b){const M=encodeURI(b);if(M&&c.endsWith(M))w=c.slice(0,c.length-M.length);else{const N=v?encodeURI(v):"",T=N?c.indexOf(N):-1;T!==-1&&(w=c.slice(0,T))}}w!==c&&_1e(l,w),b&&e.splice(a+1,0,rl(b));break}}}if(!n){if(l?.type==="em_open"&&e[r-1]?.type==="text"&&e[r-1].content?.endsWith("*")){const a=e[r-1].content?.replace(/(\*+)$/,"")||"";e[r-1].content=a,l.type="strong_open",l.tag="strong",l.markup="**";for(let u=r+1;ud[0]==="href")?.[1]||"";if(e[r+3]?.type==="text"){const d=(e[r+3]?.content??"").indexOf(")"),f=d===-1;d===-1&&(c+=e[r+3]?.content?.slice(0,d)||"",e[r+3].content=""),a.push(Kc(u,c,f,"linkify"));const h=e[r+3].content?.replace(/^\)\**/,"");h&&a.push(rl(h)),e.splice(r-4,8,...a)}else a.push(NC({type:"link",loading:!0,href:c,title:"",text:u,children:[{type:"text",content:c,raw:c}],raw:`[${u}](${c})`},"linkify")),e.splice(r-4,7,...a);continue}else if(e[r-1].content==="]("&&e[r-3]?.type==="text"&&e[r-3].content?.endsWith(")"))if(e[r-2]?.type==="strong_open"){const[a,u]=e[r-3].content?.split("[**")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else if(e[r-2]?.type==="em_open"){const[a,u]=e[r-3].content?.split("[*")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else{const[a,u]=e[r-3].content?.split("[")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}}if(l.type==="link_close"&&l.nesting===-1&&e[r-2]?.type==="link_open"&&e[r+1]?.type==="text"&&e[r-1]?.type==="text"){const a=e[r-1].content||"",u=e[r-2].attrs||[],c=u.find(y=>y[0]==="href")?.[1]||"",d=u.find(y=>y[0]==="title")?.[1]||"";let f=3,h=2;const m=(e[r-3]?.content||"").match(/^(\*+)$/),g=[];if(m){h+=1;const y=m[1].length;Bf(g,y)}if(l.markup!=="linkify"&&e[r+1].type==="text"&&e[r+1]?.content?.startsWith("](")){f+=1;for(let y=r+1;yv[0]==="href")?.[1];e[r+5]?.type==="text"&&e[r+5].content==="."?(f=(g||f)+e[r+5].content,e[r+5].content=""):f=g||f,h+=3}let m=!0;if(l.nesting===-1&&(d=d.replace(/\*+$/,"")),e[r+2]?.type==="text"){const g=(e[r+2]?.content??"").indexOf(")");m=g===-1,g===-1&&(f+=e[r+2]?.content?.slice(0,g)||"",e[r+2].content="")}a.push(Kc(d,f,m)),Rf(a,2),e.splice(r-2,h,...a)}if(l.type==="text"&&/\*+\[[^\]]*$/.test(l.content||"")&&e[r+1]?.type==="strong_open"&&e[r+2]?.type==="text"&&e[r+2].content==="]("&&e[r+3]?.type==="link_open"&&e[r+5]?.type==="link_close"&&e[r+6]?.type==="text"&&e[r+6].content===")"&&e[r+7]?.type==="strong_close"){const a=(l.content||"").match(/^(\*+)\[(.*)$/);if(a){const u=(a[2]||"")+a[1];let c=e[r+3]?.attrs?.find(f=>f[0]==="href")?.[1]||"";!c&&e[r+4]?.type==="text"&&(c=e[r+4].content||"");const d=[];Bf(d,2),d.push(Kc(u,c,!1)),Rf(d,2),e.splice(r,9,...d),r-=d.length-1;continue}}}}if(n)return e;for(let r=0;r{const n=t.tokens??[];for(let i=0;i{const n=t.tokens??[];for(let i=0;i=0&&e[m].type==="text"&&e[m].content==="";)m--;const g=e[m];let v=c+1;for(;v=0&&e[m].type==="text"&&e[m].content==="";)m--;const g=e[m];let v=c+1;for(;v{const n=t;try{const i=j1e(n.tokens??[],!!n.env?.__markstreamFinal,n.src??"");Array.isArray(i)&&(n.tokens=i)}catch(i){console.error("[applyFixTableTokens] failed to fix table tokens",i)}})}function VE(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function KE(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function ZE(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:null,content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function Gj(e,t){if(!e.startsWith("|")||e.includes(` -`)||!e.endsWith("|"))return null;const n=e.slice(1).split("|");return n.at(-1)===""&&n.pop(),n.length>0&&n.every(i=>i.trim().length>0)?n:null}function C8(e){return Gj(e)!==null}function Qj(e){return/^:?-+:?$/.test(e.trim())}function R1e(e){if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|");return t.at(-1)===""&&t.pop(),t.length>0&&t.every(Qj)}function O1e(e){return/^(?:[::]-*|:?-+:?)?$/.test(e.trim())}function $1e(e){if(e==="")return!0;if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|"),n=t.at(-1)??"";return t.slice(0,-1).every(Qj)&&O1e(n)}function P1e(e){return e==="|"||e==="|:"}function z1e(e){const t=Gj(e);return t!==null&&t.every(n=>!n.includes(":"))}function j1e(e,t=!1,n=""){const i=[...e];if(e.length<3)return i;const o=e.length-2,s=e[o];if(s.type==="inline"){const r=String(s.content??""),l=r.split(` -`)[0]??"",[a="",u="",...c]=r.split(` -`),d=!t&&!r.includes(` -`)&&/\r?\n$/.test(n)&&C8(r);if(!t&&(r.includes(` -`)&&c.length===0&&C8(a)&&$1e(u)||d)){const f=l.slice(1,-1).split("|").map(m=>m.trim()).flatMap(m=>ZE(m)),h=[...VE(),...f,...KE()];i.splice(o-1,3,...h)}else if(r.includes(` -`)&&c.length===0&&C8(a)&&R1e(u)){const f=l.slice(1,-1).split("|").map(m=>m.trim()).flatMap(m=>ZE(m)),h=[...VE(),...f,...KE()];i.splice(o-1,3,...h)}else r.includes(` -`)&&c.length===0&&z1e(a)&&P1e(u)&&(s.content=r.slice(0,-2),s.children.splice(2,1))}return i}function H1e(e,t,n,i){const o=e.length;if(n==="$$"&&i==="$$"){let u=t;for(;u=0&&e[c]==="\\";)d++,c--;if(d%2===0)return u}u++}return-1}const s=n[n.length-1],r=i;let l=0,a=t;for(;a=0&&e[c]==="\\";)d++,c--;if(d%2===0){if(l===0)return a;l--,a+=r.length;continue}}const u=e[a];if(u==="\\"){a+=2;continue}u===s?l++:u===r[r.length-1]&&l>0&&l--,a++}return-1}var W1e=H1e;const q1e=["boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],xk=q1e.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),U1e=/\\[a-z]+/i,Yj="(?:\\\\|\\u0008)",V1e=new RegExp(String.raw`${Yj}(?:${xk})\s*\{[^}]+\}`,"i"),K1e=new RegExp(String.raw`(?:${Yj})?(?:${xk})\s*\{`,"i"),Z1e=/\\(?:text|frac|left|right|times)/,G1e=/(?:^|[^+])\+(?!\+)|[=\-*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/,Q1e=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Y1e=/[A-Z]+\s*\([^)]+\)/i,J1e=/^\(\s*[a-z](?:\s*,\s*[a-z])+\s*\)$/i,X1e=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,eme=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/,tme={"\b":"\\b","\v":"\\v","\f":"\\f"};function nme(e){let t="";for(const n of e)t+=tme[n]??n;return t}function hd(e){if(!e)return!1;const t=nme(e),n=t.trim();if(eme.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const i=U1e.test(t),o=V1e.test(t),s=K1e.test(t),r=Z1e.test(t),l=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),a=G1e.test(t)&&!Q1e.test(t),u=Y1e.test(t),c=J1e.test(n),d=X1e.test(t),f=/^\([a-z]\)$/i.test(n)||/^(?:[a-z]|pi)$/i.test(n),h=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return i||o||s||r||l||a||u||c||d||f||h}const Jj="__markstreamMathPluginApplied",DC=80,Xj=2e4,GE=Xj+4096;function E7(e){return!!e[Jj]}function ime(e){e[Jj]=!0}const eH=["ldots","cdots","quad","in","displaystyle","int_","lim","lim_","ce","pu","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathit","mathbb","mathcal","mathfrak","implies","alpha","beta","gamma","delta","epsilon","lambda","sum","sum_","prod","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","frac","text","left","right"],ome=["cdot","mathbf{","partial","mu_{"],tH=eH.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),nH="[ \r\b\f\v]",sme=new RegExp(`([^\\\\])(${ome.map(e=>e).join("|")})+`,"g"),rme=/span\{([^}]+)\}/,lme=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,ame=/(^|[^\\])\\\r?\n/g,ume=/(^|[^\\])\\$/g,cme=/[\p{L}\p{M}\p{N}\p{Pe}\p{Pf}'′″‴|‖]/u,dme=new RegExp(`(${nH})|(${tH})\\b`,"g"),QE=new Map,YE=new Map;function fme(e){if(!e)return dme;const t=[...e];t.sort((r,l)=>l.length-r.length);const n=t.join(""),i=QE.get(n);if(i)return i;const o=`(?:${t.map(r=>r.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,s=new RegExp(`(${nH})|(${o})\\b`,"g");return QE.set(n,s),s}function hme(e,t){const n=e?[]:[...t??[]];e||n.sort((l,a)=>a.length-l.length);const i=e?"__default__":n.join(""),o=YE.get(i);if(o)return o;const s=e?[xk,tH].filter(Boolean).join("|"):[n.map(l=>l.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),xk].filter(Boolean).join("|"),r=new RegExp(`(^|[^\\\\\\w])(${s})\\s*\\{`,"g");return YE.set(i,r),r}const JE={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function XE(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function pme(e){return e.replace(/(^|[^\\])!+/gu,(t,n)=>{if(n&&cme.test(n))return t;const i=n?t.slice(n.length):t;return`${n}${"\\!".repeat(i.length)}`})}function eL(e){const t=/(^|[^\\])(__|\*\*)/g;let n,i=null;for(;(n=t.exec(e))!==null;)i={marker:n[2],index:n.index+(n[1]?.length??0)};return i}function Zc(e,t){const n=t?.commands??eH,i=t?.escapeExclamation??!0,o=t?.commands==null,s=fme(o?void 0:n);let r=e.replace(s,(u,c,d,f,h)=>{if(c!==void 0&&JE[c]!==void 0)return`\\${JE[c]}`;if(d&&n.includes(d)){const m=h&&typeof f=="number"?h[f-1]:void 0;return m==="\\"||m&&/\w/.test(m)?u:`\\${d}`}return u});i&&(r=pme(r));let l=r;const a=hme(o,o?void 0:n);return l=l.replace(a,(u,c,d)=>`${c}\\${d}{`),l=l.replace(rme,"span\\{$1\\}").replace(lme,"\\operatorname{span}\\{$1\\}"),l=l.replace(ame,`$1\\\\ -`),l=l.replace(ume,"$1\\\\"),l=l.replace(sme,"$1\\$2"),l}function tL(e){const t=e.trim();return!(!hd(t)||/"[^"\n]{1,80}"\s*:\s*/.test(t)||!(/\\[a-z]+/i.test(t)||/[=+*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/.test(t)||/[_^]/.test(t))&&/\s-\s/.test(t))}function iH(e){const t=[];let n=0;for(;n=n[0]&&t0;){if(e[s]==="\\"&&s+10;){if(e[l]==="\\"&&l+1=0&&e[n]==="\\";)i++,n--;return i%2===1}function FC(e,t){let n=t;for(;n0&&e[i-1]==="$"||i+1=l)break;const u=Sk(o,a);if(u){r=Math.max(a+Math.max(1,t.length),u[1]);continue}Wv(e,a)||s++,r=a+Math.max(1,t.length)}return s}function L7(e,t,n){const i=nv(String(e??""));if(!i.endsWith(t))return-1;const o=i.length-t.length;if(o<=0||!nv(i.slice(0,o)).trim()||Wv(i,o))return-1;const s=iH(i);if(Sk(s,o))return-1;const r=nL(i,t,0,o,s);if(t==="$$"){if(r%2===1)return-1}else if(r>nL(i,n,0,o,s))return-1;return o}function tv(e){return e===" "||e===" "}function nv(e){let t=e.length;for(;t>0&&tv(e[t-1]);)t--;return e.slice(0,t)}function iL(e){let t=0;for(let n=0;n=48&&t<=57}function gme(e){if(e.length<3)return!1;const t=e[0];if(t!=="-"&&t!=="*"&&t!=="_"&&t!=="=")return!1;let n=0;for(let i=0;i=3}function vme(e){const t=e.trim();if(!t)return!1;let n=0;t[n]===":"&&n++;let i=0;for(;t[n]==="-";)i++,n++;return i<3?!1:(t[n]===":"&&n++,n===t.length)}function yme(e){if(!e.includes("|"))return!1;const t=e[0]==="|"?e.slice(1):e;return(t.endsWith("|")?t.slice(0,-1):t).split("|").every(vme)}function kme(e){let t=0;if(!oL(e[t]))return!1;for(;oL(e[t]);)t++;return e[t]!=="."&&e[t]!==")"?!1:tv(e[t+1])}function oH(e){const t=e.trimStart();if(!t||t.startsWith("```")||t.startsWith("~~~")||t.startsWith(":::")||t[0]===">"||t[0]==="<")return!0;if(t[0]==="#"){let n=0;for(;t[n]==="#";)n++;if(n>=1&&n<=6&&tv(t[n]))return!0}return!!((t[0]==="-"||t[0]==="+"||t[0]==="*")&&tv(t[1])||kme(t)||gme(t)||yme(t))}function sL(e,t){return e?t?`${e} -${t}`:e:t}function BC(e){const t=String(e??"").trim();return t?hd(t):!1}function rL(e){let t=0;for(let n=0;nDC){h=!0;break}const g=o[m],v=qp(g,c);if(v!==-1){const y=sL(f,g.slice(0,v));if(!BC(y)){h=!0;break}const b=g.slice(v+c.length),A=b.trim()?`suffix:${rL(b)}`:"nosuffix";return["closed",u,i+l,d,i+m,v,rL(y),A].join(":")}if(oH(g)){h=!0;break}if(f=sL(f,g),f.length>Xj){h=!0;break}}if(!h&&BC(f))return["pending",u,i+l,d].join(":")}}return null}function x8(e,t){const n=String(e??"").trim();return!n||!/^\d[\d,.]*\s*[~~-]\s*$/.test(n)?!1:/\d/.test(String(t??""))}function wme(e){const t=String(e??"").trimStart(),n=t.match(/^\d+(?:,\d{3})*(?:\.\d+)?/);if(!n)return!1;const i=t.slice(n[0].length);return/^\s*(?:[+\-*/^_=<>]|\\[a-z]+)/i.test(i)?!1:i===""||/^[)\s,.!?;:]/.test(i)}function S8(e){const t=String(e??"").trim();return t?/^(?:\.{3,}|…+)$/.test(t):!1}function Cme(e,t){ime(e);const n=(r,l,a)=>{const u=String(l??"").replace(/^[\t ]+/,"").replace(/[\t ]+$/,"");if(!u)return;const c=r.push("paragraph_open","p",1);c.map=[a,a+1];const d=r.push("inline","",0);d.content=u,d.map=[a,a+1],d.children=[],r.push("paragraph_close","p",-1)},i=(r,l)=>{const a=r,u=!!t?.strictDelimiters,c=!a?.env?.__markstreamFinal,d=(b,A)=>{let w=A;for(;w=3&&(!w||/\s/.test(w))){const M=a.push("text","",0);return M.content=a.src.slice(a.pos,b),a.pos=b,!0}}const f=[["$$","$$"],["$","$"],["\\(","\\)"]],h=String(a.pending??""),m=Math.max(0,a.pos-h.length);let g=m,v=m;const y=m;for(const[b,A]of f){const w=a.src,M=iH(w),N=mme(w,c);let T=!1;b==="$$"&&g!==y&&(g=y);let C=-1,I=-1,S=0;const E=_=>{if((_==="undefined"||_==null)&&(_=""),_==="\\"){a.pos=a.pos+_.length,g=a.pos;return}if(_==="\\)"||_==="\\("){const P=a.push("text_special","",0);P.content=_==="\\)"?")":"(",P.markup=_,a.pos=a.pos+_.length,g=a.pos;return}if(!_)return;if(b==="$$"&&_.includes("$")){let P=0;for(;P<_.length;){const O=FC(_,P);if(O===-1){const te=_.slice(P);if(te){const ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos}break}if(O>0&&_[O-1]==="$"||O+1<_.length&&_[O+1]==="$"){const te=_.slice(P,O+1);if(te){const ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos}P=O+1;continue}const R=_.slice(P,O);if(R){const te=a.push("text","",0);te.content=R,a.pos=a.pos+R.length,g=a.pos}const z=A8(_,O+1);if(z===-1){const te=_.slice(O),ve=a.push("text","",0);ve.content=te,a.pos=a.pos+te.length,g=a.pos;break}const H=_.slice(O+1,z),j=H.includes("`"),Q=!H||!H.trim(),ae=_[z+1],W=x8(H,ae),G=S8(H);if(!j&&!Q&&!W&&!G){const te=a.push("math_inline","math",0);te.content=Zc(H,t),te.markup="$",te.raw=`$${H}$`,te.loading=!1,a.pos=a.pos+(z-O+1),g=a.pos,P=z+1;continue}const oe=a.push("text","",0);oe.content="$",a.pos=a.pos+1,g=a.pos,P=O+1}return}const F=_.indexOf("![");if(F!==-1){if(F>0){const R=_.slice(0,F),z=a.push("text","",0);z.content=R,a.pos=a.pos+R.length,g=a.pos}const P=_.slice(F).match(/^!\[([^\]]*)\]\(([^)]+)\)/);if(P){const[,R,z]=P,H=z.match(/^(\S+)(?:\s+"([^"]+)")?\s*$/),j=H?H[1]:z,Q=H&&H[2]?H[2]:null,ae=a.push("image","img",0);ae.attrs=[["src",j],["alt",R]],Q&&ae.attrs.push(["title",Q]),ae.content=R,ae.children=[{type:"text",content:R,tag:""}],a.pos=a.pos+P[0].length,g=a.pos;const W=_.slice(F+P[0].length);W&&E(W);return}const O=a.push("text","",0);O.content=_,a.pos=a.pos+_.length,g=a.pos;return}const q=a.push("text","",0);q.content=_,a.pos=a.pos+_.length,g=a.pos};for(;!(g>=w.length);){const _=w.indexOf(b,g);if(_===-1)break;if(Wv(w,_)){g=_+Math.max(1,b.length);continue}const F=Sk(M,_);if(F){g=F[1];continue}const q=Sk(N,_);if(q){g=q[1];continue}if(_===C&&g===I){if(S++,S>2){g=_+Math.max(1,b.length);continue}}else S=0,C=_,I=g;if(b==="("&&_>0){let W=_-1;for(;W>=0&&w[W]===" ";)W--;if(W>=0&&w[W]==="]"){g=_+b.length;continue}}if(b==="$"&&_>0&&w[_-1]==="$"){g=_+1;continue}if(b==="$"&&_=w.length);){const F=FC(w,_);if(F===-1)break;if(F+10&&w[F-1]==="$"){_=F+1;continue}const q=A8(w,F+1);if(q===-1)break;const P=w.slice(F+1,q),O=P.includes("`"),R=!P||!P.trim(),z=w[q+1],H=x8(P,z),j=S8(P);if(!O&&!R&&!H&&!j){const Q=w.slice(g,F);Q&&E(Q);const ae=a.push("math_inline","math",0);ae.content=Zc(P,t),ae.markup="$",ae.raw=`$${P}$`,ae.loading=!1,g=q+1,_=q+1}else E("$"),_=F+1}_{const c=r,d=!c?.env?.__markstreamFinal,f=t?.strictDelimiters,h=f?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],m=c.bMarks[l]+c.tShift[l];let g=c.src.slice(m,c.eMarks[l]).trim(),v=!1,y="",b="",A=!1,w="",M=!1;for(const[Q,ae]of h)if(g.startsWith(Q))if(Q.includes("[")){const W=Q==="\\["?g.slice(Q.length):"";if(Q==="\\["&&qp(W,ae)===-1&&!/^\s*!\[/.test(W)&&!W.includes("`")&&hd(W)){v=!0,y=Q,b=ae;break}if(t?.strictDelimiters){if(g.replace("\\","")==="["){if(l+1=0?"\\]":b,S=C>=0?C:qp(g,b,T);if(!A&&S>y.length){const Q=g.slice(N+y.length,S),ae=c.push("math_block","math",0);ae.content=Zc(Q),ae.markup=y==="$$"?"$$":y==="["?"[]":"\\[\\]",ae.map=[l,l+1],ae.raw=`${y}${Q}${I}`,ae.block=!0,ae.loading=!1,c.line=l+1;const W=g.slice(S+I.length);return W.trim()&&n(c,W,l),!0}let E=l,_="",F=!1,q="",P=l;const O=A?g:g===y?"":g.slice(y.length),R=!f&&y==="\\["?"]":"",z=qp(O,b);if(z!==-1){const Q=z;_=O.slice(0,Q),q=O.slice(Q+b.length),P=A?l+1:l,F=!0,E=P}else for(O&&!A&&(_=O),E=l+1;E{const c=r,d=c.bMarks[l]+c.tShift[l],f=c.src.slice(d,c.eMarks[l]).trim();return!f.startsWith("$$")&&!f.startsWith("\\[")?!1:o(r,l,a,u)};e.inline.ruler.before("escape","math",i),e.block.ruler.before("lheading","explicit_math_block",s,{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function Ame(e){const t=e.renderer.rules.image||function(n,i,o,s,r){const l=n,a=r;return a.renderToken?a.renderToken(l,i,o):""};e.renderer.rules.image=(n,i,o,s,r)=>{const l=n;return l[i].attrSet?.("loading","lazy"),t(l,i,o,s,r)},e.renderer.rules.fence=e.renderer.rules.fence||((n,i)=>{const o=n[i],s=String(o.info??"").trim();return`
          ${e.utils.escapeHtml(String(o.content??""))}
          `})}const xme=/^\s]/i,Sme=/^<\/a\s*>/i;function _me(e,t){if(e?.type!=="inline")return!1;const n=e.children;if(!Array.isArray(n)||n.length===0)return t.test(String(e.content??""));let i=0;for(let o=n.length-1;o>=0;o--){const s=n[o];if(s?.type==="link_close"){for(o--;o>=0&&n[o]?.level!==s.level&&n[o]?.type!=="link_open";)o--;continue}if(s?.type==="html_inline"){const r=String(s.content??"");xme.test(r)&&i>0&&i--,Sme.test(r)&&i++}if(!(i>0)&&s?.type==="text"&&t.test(String(s.content??"")))return!0}return!1}function Mme(e){const t=e.core?.ruler,n=t.getNamedRules?.().find(i=>i.name==="linkify")?.fn;typeof n=="function"&&t.at("linkify",i=>{if(!i.md?.options?.linkify)return;const o=Array.isArray(i.tokens)?i.tokens:[],s=i.md.linkify;if(!s)return;const r=o.filter(l=>_me(l,s));if(r.length)return n(Object.assign(Object.create(Object.getPrototypeOf(i)),i,{tokens:r}))})}function Ime(e){const t=e.inline.ruler,n=t.getNamedRules?.(),i=n?.find(l=>l.name==="link")?.fn,o=n?.find(l=>l.name==="image")?.fn;if(typeof i!="function"||typeof o!="function")return;const s=e.validateLink,r=e;r.__markstreamOriginalValidateLink=s,t.at("link",(...l)=>{const a=l[0].md,u=a?.validateLink===s?a.options?.validateLink:a?.validateLink;if(!a||typeof u!="function")return i(...l);const c=a.validateLink;a.validateLink=u;try{return i(...l)}finally{a.validateLink=c}}),t.at("image",(...l)=>{const a=l[0].md;if(!a)return o(...l);const u=a.validateLink;a.validateLink=s;try{return o(...l)}finally{a.validateLink=u}})}function Tme(e={}){const t=e.markdownItOptions??{},n=typeof t.experimental=="object"&&t.experimental!==null?t.experimental:{},i=Object.prototype.hasOwnProperty.call(t,"stream")?!!t.stream:!0,o=Object.prototype.hasOwnProperty.call(t,"validateLink"),s=new npe({html:!0,linkify:!0,typographer:!0,...t,experimental:{stream:i,...n}});if(!o){const r=l=>!Ch(l,{tagName:"a",attrName:"href"});C1e(r),s.set({validateLink:r})}return Ime(s),Mme(s),(e.enableMath??!0)&&Cme(s,{...e.mathOptions??{}}),(e.enableContainers??!0)&&Cpe(s),e.enableFixIndentedCodeBlock!==!1&&Upe(s),M1e(s),L1e(s),T1e(s),B1e(s),Ame(s),Wpe(s,{customHtmlTags:e.customHtmlTags}),s}function Ah(e){const t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return Array.isArray(e.attrs)&&(t.attrs=e.attrs.map(n=>[...n])),Array.isArray(e.map)&&(t.map=[...e.map]),Array.isArray(e.children)&&(t.children=e.children.map(n=>Ah(n))),t}function Eme(e){const t=e.meta??{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function Lme(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,i=n===""||n==="true";return{type:"checkbox_input",checked:i,raw:i?"[x]":"[ ]"}}function Nme(e){const t=String(e.content??"");return{type:"emoji",name:t,markup:String(e.markup??""),raw:`:${t}:`}}function ny(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;sn.startsWith(t)||t.startsWith(n)):!1}function lL(e,t,n,i){n.length>0&&e.push(...n),i.length>0&&t.push(...i),n.length=0,i.length=0}function aL(e,t){return!t&&e.startsWith(" ")&&!e.startsWith(" ")?` ${e}`:e}function Rme(e,t){const n=[],i=[],o=[],s=[],r=e.split(Fme),l=/\r?\n$/.test(e),a=r.some(h=>h.startsWith("diff ")||h.startsWith("--- ")||h.startsWith("+++ ")||h.startsWith("@@ ")),u=h=>{const m=h;if(!lH.some(g=>m.startsWith(g)))if(m.startsWith("-")){const g=m.slice(1);o.push(aL(g,a))}else if(m.startsWith("+")){const g=m.slice(1);s.push(aL(g,a))}else{lL(n,i,o,s);const g=a&&m.startsWith(" ")?m.slice(1):m;n.push(g),i.push(g)}},c=l?Math.max(0,r.length-1):r.length;for(let h=0;h0||s.length>0)&&lL(n,i,o,s);const d=n.join(` -`),f=i.join(` -`);return{original:t&&l&&d?`${d} -`:d,updated:t&&l&&f?`${f} -`:f}}function N7(e){const t=Array.isArray(e.map)&&e.map.length===2,n=e.meta??{},i=typeof n.closed=="boolean"?n.closed:void 0,o=i===!0||i!==!1&&t,s=String(e.info??""),r=s.startsWith("diff"),l=r?(()=>{const u=s,c=u.indexOf(" ");return c===-1?"":String(u.slice(c+1)??"")})():s;let a=String(e.content??"");if(!o&&e.markup){const u=e.markup[0],c=e.markup.length,d=Dme(u,c);d.test(a)&&(a=a.replace(d,""))}if(r){const{original:u,updated:c}=Rme(a,o===!0);return{type:"code_block",language:l,code:String(c??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t,originalCode:u,updatedCode:c}}return{type:"code_block",language:l,code:String(a??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t}}function Ome(e){const t=e.meta??{};return{type:"footnote_reference",id:String(t.label??""),raw:`[^${String(t.label??"")}]`}}function $me(){return{type:"hardbreak",raw:`\\ -`}}function Pme(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s\s*$/.test(t)||Hd.has(e)}function zme(e){if(!e||e.length===0)return uL();const t=M8.get(e);if(t)return t;const n=e.map(wa).filter(Boolean);if(!n.length){const o=uL();return M8.set(e,o),o}const i={customTagSet:new Set(n),allowedTagSet:u4({customHtmlTags:e})};return M8.set(e,i),i}function dH(e){const t=e,n=t.raw??t.content??t.markup??"";return String(n??"")}function jme(e){const t=e.meta,n=t?.markstreamCustomHtmlRaw,i=t?.markstreamCustomHtmlInner;return typeof n=="string"&&typeof i=="string"?{raw:n,inner:i}:null}function _k(e,t){const n=t.toLowerCase();for(let i=e.length-1;i>=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function Hme(e,t,n){const i=e.slice();return _k(i,"href")||i.push(["href",t]),n!=null&&!_k(i,"title")&&i.push(["title",n]),i}function RC(e){return e.map(dH).join("")}function s9(e){const t=[],n=i=>{const o=String(i??"");if(!o)return;const s=t[t.length-1];if(s?.type==="text"){s.content=`${s.content}${o}`,s.raw=`${s.raw}${o}`;return}t.push({type:"text",content:o,raw:o})};for(const i of e)if(i){if(i.type==="reference"||i.type==="footnote_reference"){n(String(i.raw??""));continue}if("children"in i&&Array.isArray(i.children)){t.push({...i,children:s9(i.children)});continue}t.push(i)}return t}function Wme(e,t,n){let i=0;for(let o=t;o`;g.toLowerCase().includes(M.toLowerCase())||(g+=M),y=!0,v=!0}const b=[],A=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let w;for(;(w=A.exec(l))!==null;){const M=w[1],N=w[2]||w[3]||w[4]||"";b.push([M,N])}if(u?.has(a)){const M=jme(e);return[{type:a,tag:a,attrs:b,content:M?M.inner:h.innerTokens.length?RC(h.innerTokens):"",children:h.innerTokens.length?i(h.innerTokens,o,s,r):[],raw:M?.raw??g,loading:e.loading||v,autoClosed:y},h.nextIndex]}return[{type:"html_inline",tag:a,attrs:b,content:g,children:m,raw:g,loading:v,autoClosed:y},h.nextIndex]}function fH(e){if(e.type==="math_inline"){if(e.raw)return String(e.raw);const t=e.markup==="$$"?"$$":"$";return`${t}${String(e.content??"")}${t}`}return Array.isArray(e.children)&&e.children.length>0?e.children.map(t=>fH(t)).join(""):String(e.content??"")}function Ume(e){return!e||!Array.isArray(e.children)||e.children.length===0?"":e.children.map(t=>fH(t)).join("")}function cL(e,t=!1){let n=e.attrs??[],i=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const d of e.children){const f=d.attrs;if(Array.isArray(f)&&f.length>0){n=f,i=d;break}}const o=String(n.find(d=>d[0]==="src")?.[1]??""),s=n.find(d=>d[0]==="alt")?.[1],r=Ume(i??e);let l="";r?l=r:s!=null&&String(s).length>0?l=String(s):i?.content!=null&&String(i.content).length>0?l=String(i.content):Array.isArray(i?.children)&&i.children[0]?.content?l=String(i.children[0].content):Array.isArray(e.children)&&e.children[0]?.content?l=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(l=String(e.content));const a=n.find(d=>d[0]==="title")?.[1]??null,u=a===null?null:String(a),c=String(e.content??"");return{type:"image",src:o,alt:l,title:u,raw:c,loading:t}}function Vme(e){const t=String(e.content??"");return{type:"inline_code",code:t,raw:t}}function Kme(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function Gme(e,t,n){const i=e.slice();return Mk(i,"href")||i.push(["href",t]),n!=null&&!Mk(i,"title")&&i.push(["title",n]),i}function iy(e,t,n){const i=e[t],o=Zme(i.attrs),s=String(Mk(o,"href")??""),r=Mk(o,"title"),l=r==null?null:String(r),a=Gme(o,s,l);let u=t+1;const c=[];let d=!0;for(;uv.type==="strong_open")){const v=String(h.content??""),y=String(h.raw??v),b=Ah(h);b.content=v.slice(0,-2),b.raw=y.replace(/\*\*$/,""),f=c.slice(),f[f.length-1]=b}const m=Lo(f,void 0,void 0,n),g=m.map(v=>{const y=v;return"content"in v?String(y.content??""):String(y.raw??"")}).join("");return{node:{type:"link",href:s,title:l,text:g,children:m,raw:`[${g}](${s}${l?` "${l}"`:""})`,loading:d,attrs:a},nextIndex:u0?i:[{type:"text",content:a,raw:a}],raw:`~${a}~`},nextIndex:s0?i:[{type:"text",content:o||String(e[t].content??""),raw:o||String(e[t].content??"")}],raw:`^${o||String(e[t].content??"")}^`},nextIndex:s?@[\\\]^_`{|}~]/,age=/\p{P}/u,uge=/^[\x22\x27《「『【〔〖〘〚〈([{“‘﹁﹃﹙﹛﹝]$/u,cge=/^[\x22\x27》」』】〕〗〙〛〉)]}”’﹂﹄﹚﹜﹞]$/u,dge=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,fge=/:\/\//,OC=1,hH=2,hge=4,pge=8,pH=16,ed=32,r9=64,Ig=128,mH=256,mge=512,Tg=1024,gge=1982;function oy(e){let t=0;for(let n=0;n=t){n++,i++;continue}n++,i++;continue}if(o==="*"&&n>=t)return n;n++}return-1}function Wd(e){return!!e&&rge.test(e)}function qd(e){return!!e&&(lge.test(e)||age.test(e))}function vH(e,t){return!!e&&!!t&&/^\p{Script=Han}$/u.test(t)&&uge.test(e)}function yH(e,t){return!!e&&!!t&&/^[\p{L}\p{N}]$/u.test(t)&&cge.test(e)}function yge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!i||Wd(i)?!1:!(qd(i)&&!vH(i,n)&&n&&!Wd(n)&&!qd(n))}function kge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!n||Wd(n)?!1:!(qd(n)&&!yH(n,i)&&i&&!Wd(i)&&!qd(i))}function bge(e,t,n=0){let i=n,o=!1;for(;i0?e[t-1]:void 0,i=e[t+2];return!i||Wd(i)?!1:!(qd(i)&&!vH(i,n)&&n&&!Wd(n)&&!qd(n))}function Cge(e,t){const n=t>0?e[t-1]:void 0,i=e[t+2];return!n||Wd(n)?!1:!(qd(n)&&!yH(n,i)&&i&&!Wd(i)&&!qd(i))}function Age(e,t=0){let n=t,i=!1;for(;n=0&&e[s]==="\\";s--)o++;return o%2===1}const Mge=/[\p{L}\p{N}]/u,Ige=/^[\p{L}\p{N}]+$/u;function $C(e){return e?Mge.test(e):!1}function kH(e){return e?Ige.test(e):!1}function l0(e,t){let n=t;for(;n0?e[t-1]:void 0,o=n=2&&i.intraword&&t.push({start:n,end:o}),n=o}for(let n=0;n=3)return i;n=i+o.len}return-1}function Nge(e){return e?dge.test(e)||fge.test(e):!1}function Dge(e,t){if(!e||!t)return null;const n=e.match(/\[([^\]\n]+)\]\(([^)]*)$/);return n&&n[2]===t?n[1]:null}function Lo(e,t,n,i){if(!e||e.length===0)return[];const o=i?.__linkifyDemotionContext,s=Hv(t),r={filename:o?.filename||s.filename,explicitFilename:o?.explicitFilename||s.explicitFilename,marketTicker:o?.marketTicker||s.marketTicker};(r.filename||r.explicitFilename||r.marketTicker)&&(i={...i,__linkifyDemotionContext:r});const l=i,a=[];let u=null,c=0;const d=i?.requireClosingStrong,f=e;function h(){return e===f&&(e=e.slice()),e}function m(){u=null}function g(Y,se){const V=e.length===1?t:String(se.content??""),le=[],Se=Tge(Y);if(Se!==-1){M(Y.slice(0,Se),Y.slice(0,Se));const he=Y.slice(Se);return he&&(E({type:"text",content:he,raw:he}),c--),c++,!0}if(nge.test(Y)){const he=Y.indexOf("~~");he!==-1&&le.push({type:"strikethrough",index:he})}if(ige.test(Y)){const he=Y.indexOf("**");he!==-1&&le.push({type:"strong",index:he})}if(/[^*]*\*[^*]+/.test(Y)){const he=V?gH(V,0):Y.indexOf("*");if(V&&he===-1)return!1;he!==-1&&le.push({type:"emphasis",index:he})}le.sort((he,re)=>he.index!==re.index?he.index-re.index:he.type===re.type?0:he.type==="strong"?-1:re.type==="strong"?1:0);const be=le[0];if(!be)return!1;if(be.type==="strikethrough"){const he=be.index,re=he>-1?Y.slice(0,he):"";if(re&&M(re,re),he===-1)return c++,!0;const J=Y.indexOf("~~",he+2),fe=J===-1?Y.slice(he+2):Y.slice(he+2,J),ke=J===-1?"":Y.slice(J+2),{node:Ce}=fL([{type:"s_open",tag:"s",content:"",markup:"~~",info:"",meta:null},{type:"text",tag:"",content:fe,markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"~~",info:"",meta:null}],0,i);return m(),w(Ce),ke&&(E({type:"text",content:ke,raw:ke}),c--),c++,!0}if(be.type==="strong"){const he=be.index,re=he>-1?Y.slice(0,he):"";if(re&&M(re,re),he===-1)return c++,!0;if(t&&he===0){let ie=!1,me=0;for(;me=2)return M(Y,Y),c++,!0}}if(t&&(Y.match(/\*/g)||[]).length>vge(t))return M(Y.slice(re.length),Y.slice(re.length)),c++,!0;const J=l0(Y,he);if(J.len>=3){const ie=Lge(Y,he+J.len);if(ie!==-1){const me=Y.slice(he+J.len,ie);if(Ege(me)){const{node:je}=sg([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:me,markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);m(),w(je);const Ze=Y.slice(ie+3);return Ze&&(E({type:"text",content:Ze,raw:Ze}),c--),c++,!0}}}if(!wge(Y,he)){const ie=Y.slice(he,he+J.len);M(ie,ie);const me=Y.slice(he+J.len);return me&&(E({type:"text",content:me,raw:me}),c--),c++,!0}const fe=Age(Y,he+2);let ke="",Ce="";if(fe.index!==-1){ke=Y.slice(he+2,fe.index),Ce=Y.slice(fe.index+2);const ie=fe.index,me=l0(Y,ie);if(J.intraword&&me.intraword&&!kH(ke)||!ke&&J.len>=4&&J.intraword)return M(Y.slice(re.length),Y.slice(re.length)),c++,!0}else{if(d||fe.sawInvalidClose||J.intraword)return M(Y.slice(re.length),Y.slice(re.length)),c++,!0;ke=Y.slice(he+2),Ce=""}if(!ke&&/^\*+$/.test(Ce))return M(Y,Y),c++,!0;const{node:De}=sg([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"text",tag:"",content:ke,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);return m(),w(De),Ce&&(E({type:"text",content:Ce,raw:Ce}),c--),c++,!0}if(be.type==="emphasis"){let he=be.index;he===-1&&(he=0);const re=Y.slice(0,he);if(re&&M(re,re),!yge(Y,he)){M(Y[he],Y[he]);const ie=Y.slice(he+1);return ie&&(E({type:"text",content:ie,raw:ie}),c--),c++,!0}const J=l0(Y,he),fe=bge(V,Y,he+1),ke=fe.index,Ce=e[c+1];if(i?.final&&Ce?.type==="em_open"&&ke!==-1&&Y.slice(he+1,ke).trim()!==Y.slice(he+1,ke)||ke===-1&&(fe.sawInvalidClose||i?.final||J.intraword||!$C(Y[he+1])))return M(Y.slice(he),Y.slice(he)),c++,!0;const{node:De}=ny([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:ke>-1?Y.slice(he+1,ke):Y.slice(he+1),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,i);if(m(),w(De),ke!==-1&&ke{for(let De=0;De=0&&Ce[me]==="\\";me--)ie++;if(ie%2===0)return De}return-1})(Y);if(le===-1)return!1;let Se=1;for(let Ce=le+1;Cebe?.type==="math_inline")||!oge.test(Y))return null;const V=se.parseInline(Y,{__markstreamFinal:!!i?.final});if(!Array.isArray(V)||V.length===0)return null;const le=(V.find(be=>be?.type==="inline")?.children??[]).filter(be=>!(be?.type==="text"&&String(be.content??"")===""));if(!le.length||!le.some(be=>be?.type!=="text")||le.length===1&&le[0]?.type==="text"&&String(le[0].content??"")===Y)return null;const Se=Lo(le,Y,n,i);return Se.length?Se:null}function b(Y){m(),a.push(Y)}function A(Y){m();const se=Ah(Y);a.push(se)}function w(Y){b(Y)}function M(Y,se){u?(u.content+=Y,u.raw+=se??Y):(u={type:"text",content:String(Y??""),raw:String(se??Y??"")},a.push(u))}function N(Y,se){if(!Y)return;const V=Lo([{...se,type:"text",content:Y,raw:Y}],Y,n,i);if(V.length===1&&V[0]?.type==="text"){const le=V[0];M(String(le.content??""),String(le.raw??le.content??""));return}for(const le of V)w(le)}function T(Y,se){return String(Y.markup??"").startsWith(se)}function C(Y){if(!u||Y.loading!==!0||Y.markup!=="\\(\\)")return;const se=e[c-1];!se||se.type!=="text"||!T(se,"\\(")||u.content.endsWith("(")&&(u.content=u.content.slice(0,-1),u.raw.endsWith("(")&&(u.raw=u.raw.slice(0,-1)),!u.content&&a[a.length-1]===u&&(a.pop(),u=null))}function I(Y){return Y.endsWith("](")?e[c+1]?.type==="link_open"&&e[c+1]?.markup==="linkify"&&e[c+2]?.type==="text"&&e[c+3]?.type==="link_close"&&e[c+4]?.type==="text"&&String(e[c+4]?.content??"").startsWith(")"):!1}function S(Y,se,V=oy(Y)){let le=Y;const Se=String(se.content??"");return(V&OC)!==0&&le.endsWith("\\")&&!T(se,"\\\\")&&!Se.endsWith("\\\\")&&(le=le.slice(0,-1)),(V&Tg)!==0&&le.endsWith("(")&&!T(se,"\\(")&&!Se.endsWith("\\(")&&(le=le.slice(0,-1)),(V&hH)!==0&&/\*+$/.test(le)&&!T(se,"\\*")&&!Se.endsWith("\\*")&&(le=le.replace(/\*+$/,"")),le}for(;c=0;ie--){const me=a[ie];if(me.type!=="text")break;J=ie,fe=String(me.content??"")+fe}JJ==="href")?.[1],re=String(he??"");if(t&&re){const J=t.indexOf("](");if(J!==-1){const fe=t.indexOf(")",J+2);fe===-1?V.loading=!0:V.loading&&t.slice(J+2,fe).includes(re)&&(V.loading=!1)}}/^file:\/\/\/[a-z]:\//i.test(V.href)&&j(V,se-1)||R(V)||b(V)}function P(Y){if(Y.markup!=="linkify")return!1;const{node:se,nextIndex:V}=iy(e,c,i);return H(se,V)?(c=V,!0):!1}function O(Y){m(),w(Qme(Y)),c++}function R(Y){if(Y.type!=="link")return!1;const se=a[a.length-1];if(!se||se.type!=="text")return!1;const V=String(se.content??"").match(/^([^[]*)\[([^\]\n]+)\]\($/);if(!V)return!1;const le=Y,Se=String(le.href??""),be=String(le.text??""),he=String(V[2]??""),re=Se.replace(/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,"");if(!Se||!(be===Se||be===re||Nge(be)))return!1;const J=String(V[1]??"");return J?(se.content=J,se.raw=J):a.pop(),b({...Y,text:he,children:[{type:"text",content:he,raw:he}],raw:`[${he}](${Se}${le.title?` "${le.title}"`:""})`}),!0}function z(Y){if(Y.type!=="link")return!1;const se=Y,V=String(se.href??"");return V?H({href:V,title:se.title==null||se.title===""?null:String(se.title),loading:!!se.loading},c+1):!1}function H(Y,se){const V=a[a.length-1];if(V?.type!=="image"||V.src||!V.loading||!String(V.raw??"").endsWith("]("))return!1;const le=e[se],Se=String(le?.content??"");if(le?.type!=="text"||!Se.startsWith(")"))return!1;a.pop(),u=null;const be=String(V.alt??"");b({type:"image",src:Y.href,alt:be,title:Y.title,raw:`![${be}](${Y.href}${Y.title?` "${Y.title}"`:""})`,loading:!!Y.loading});const he=Se.slice(1),re=Ah(le);return re.content=he,re.raw=he,h()[se]=re,!0}function j(Y,se=c-1){if(Y.type!=="link")return!1;const V=a[a.length-1],le=e[se];if(!V||V.type!=="text"||le?.type!=="text")return!1;const Se=String(V.content??""),be=String(le.content??"");if(!Se.endsWith("!")||!be.endsWith("!")||T(le,"\\!"))return!1;const he=Se.slice(0,-1);he?(V.content=he,V.raw=he,u=V):(a.pop(),u=null);const re=Y,J=String(re.text??re.children?.map(Ce=>String(Ce?.content??Ce?.raw??"")).join("")??""),fe=String(re.href??""),ke=re.title==null||re.title===""?null:String(re.title);return b({type:"image",src:fe,alt:J,title:ke,raw:`![${J}](${fe}${ke?` "${ke}"`:""})`,loading:!!re.loading}),!0}function Q(Y,se="",V=null){const le=String(Y.alt??Y.raw??"");return{type:"link",href:se,title:V,text:le,children:[Y],raw:`[${le}](${se}${V?` "${V}"`:""})`,loading:!0}}function ae(Y){const se=Y.startsWith("![")?Y:`![${Y}`,V=se.slice(2),le=V.indexOf("](");return{type:"image",src:"",alt:le===-1?V.replace(/\]$/,""):V.slice(0,le),title:null,raw:se,loading:!0}}function W(Y){const se=Y.indexOf("[![");if(se===-1||typeof t=="string"&&e.length===1&&_ge(t,se,"["))return!1;const V=Y.slice(0,se);return V&&M(V,V),b(Q(ae(Y.slice(se+1)))),c++,!0}function G(Y){if(i?.final)return!1;const se=e[c-1];if(se?.type!=="text"||!String(se.content??"").endsWith("[")||T(se,"\\["))return!1;const V=a[a.length-1];if(V?.type==="text"&&V.content.endsWith("[")){const le=V.content.slice(0,-1);le?(V.content=le,V.raw=le,u=V):(a.pop(),u=null)}return b(Q(cL(Y))),c++,!0}function oe(Y){if(Y.type!=="link")return!1;const se=Y,V=String(se.raw??""),le=String(se.text??"");if(!V.startsWith("[![")&&!le.startsWith("!["))return!1;const Se=se.title==null||se.title===""?null:String(se.title);return b(Q({type:"image",src:String(se.href??""),alt:le.replace(/^!\[/,"").replace(/\]$/,""),title:Se,raw:V.startsWith("[![")?V.slice(1):V,loading:!0})),!0}function te(Y){if(!Y.startsWith("]("))return!1;const se=e[c-2];if(se?.type==="text"&&String(se.content??"").endsWith("[")&&T(se,"\\["))return!1;const V=a[a.length-1];if(V?.type!=="image"&&V?.type!=="link")return!1;const le=V,Se=V?.type==="link"&&Array.isArray(le.children)&&le.children.length===1&&le.children[0]?.type==="image"?a.pop():null,be=Se?Se.children[0]:a.pop();if(!be||be.type!=="image")return!1;const he=e[c+1];let re=String(Se?.href??""),J=Se?.title==null?null:String(Se.title),fe=!0;if(he?.type==="link_open"){const{node:Ce,nextIndex:De}=iy(e,c+1,i);re=Ce.href,J=Ce.title,fe=!0,c=De}else{if(re=Y.slice(2),re.includes('"')){const Ce=re.split('"');re=String(Ce[0]??"").trim(),J=Ce[1]==null?null:String(Ce[1]).trim()}c++}const ke=Q(be,re,J);return ke.loading=fe,b(ke),!0}function ve(){const Y=e[c-3];return e[c-2]?.type==="image"&&e[c-1]?.type==="text"&&String(e[c-1].content??"")==="]("&&Y?.type==="text"&&String(Y.content??"").endsWith("[")&&T(Y,"\\[")}function Te(Y,se){const V=Y.indexOf("[");if(V===-1)return!1;let le=Y.slice(0,V);const Se=Y.indexOf("](",V);if(Se!==-1){const be=e[c+2];let he=Y.slice(V+1,Se);if(he.includes("[")){const ie=he.indexOf("[");le+=Y.slice(0,V+ie+1);const me=V+ie+1;he=Y.slice(me+1,Se)}const re=e[c+1];if(Y.endsWith("](")&&re?.type==="link_open"&&be){const ie=e[c+4];let me=4,je=!0;if(ie?.type==="text"){const lt=String(ie.content??"");if(lt.startsWith(")")){je=!1;const ft=lt.slice(1);if(ft){const Mt=Ah(ie);Mt.content=ft,Mt.raw=ft,h()[c+4]=Mt}else me++}else lt==="."&&me++}N(le,se);const Ze=String(be.content??"");return i?.validateLink&&!i.validateLink(Ze)?M(he,he):b({type:"link",href:Ze,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:je}),c+=me,!0}const J=Y.indexOf(")",Se),fe=J!==-1?Y.slice(Se+2,J):"",ke=J===-1;let Ce=le.match(/\*+$/);if(Ce&&(le=le.replace(/\*+$/,"")),N(le,se),Ce||(Ce=he.match(/^\*+/)),!d&&Ce){const ie=Ce[0].length;he=he.replace(/^\*+/,"").replace(/\*+$/,"");const me=[];if(ie===1?me.push({type:"em_open",tag:"em",nesting:1}):ie===2?me.push({type:"strong_open",tag:"strong",nesting:1}):ie===3&&(me.push({type:"strong_open",tag:"strong",nesting:1}),me.push({type:"em_open",tag:"em",nesting:1})),me.push({type:"link",href:fe,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:ke}),ie===1){me.push({type:"em_close",tag:"em",nesting:-1});const{node:je}=ny(me,0,i);w(je)}else if(ie===2){me.push({type:"strong_close",tag:"strong",nesting:-1});const{node:je}=sg(me,0,void 0,i);w(je)}else if(ie===3){me.push({type:"em_close",tag:"em",nesting:-1}),me.push({type:"strong_close",tag:"strong",nesting:-1});const{node:je}=sg(me,0,void 0,i);w(je)}else{const{node:je}=ny(me,0,i);w(je)}}else i?.validateLink&&!i.validateLink(fe)?M(he,he):b({type:"link",href:fe,title:null,text:he,children:[{type:"text",content:he,raw:he}],loading:ke});const De=J!==-1?Y.slice(J+1):"";return De&&(E({type:"text",content:De,raw:De}),c--),c++,!0}return!1}function Fe(Y){const se=Y.indexOf("![");if(se===-1)return!1;const V=Y.slice(0,se);return V&&!u?u={type:"text",content:V,raw:V}:V&&u&&(u.content+=V),u&&(a.push(u),u=null),b(ae(Y.slice(se))),c++,!0}function ye(Y){if(!(Y?.startsWith("[")&&n?.type==="list_item_open"))return!1;const se=Y.slice(1).match(/[^\s\]]/);if(se===null)return c++,!0;if(se&&/x/i.test(se[0])){const V=se[0]==="x"||se[0]==="X";return b({type:"checkbox_input",checked:V,raw:V?"[x]":"[ ]"}),c++,!0}return!1}return a}function F7(e,t,n){const i=n?.__sourceLineMapper;if(!i)return{startLine:e,endLine:t};const o=i(e),s=t>e?i(t-1).endLine:i(t).startLine;return{startLine:o.startLine,endLine:Math.max(o.startLine,s)}}function hL(e,t){const n=Math.max(0,Math.min(e.length,Math.trunc(t)));let i=0;for(let o=0;oi&&e[o-1]!==` -`&&r++,{startLine:s,endLine:r}}function iv(e,t,n,i){const o=Fge(e,t,n);return F7(o.startLine,o.endLine,i)}function Bge(e,t){const n=e?.map;if(!Array.isArray(n)||n.length<2)return null;const i=Number(n[0]),o=Number(n[1]);return!Number.isFinite(i)||!Number.isFinite(o)?null:F7(i,o,t)}function Ci(e,t,n){if(!n?.includeSourceMap)return e;const i=Bge(t,n);if(!i)return e;if(e.sourceMap=i,e.type==="code_block"){const o=e;o.startLine=i.startLine,o.endLine=i.endLine}return e}function Rge(e,t,n,i){if(!i?.includeSourceMap)return e;const o=t?.map;if(!Array.isArray(o)||o.length<2)return e;const s=Number(o[0]),r=Number(o[1]),l=Number(n);return!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(l)||(e.sourceMap=F7(s,Math.max(r,l),i)),e}function Oge(e){const t=String(e.content??""),n=t.replace(/[ \t\r\n]+$/g,"");if(n===t)return;e.content=n;const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??""),r=s.replace(/[ \t\r\n]+$/g,"");if(r===s)break;if(r){o.content=r;break}i.pop();continue}break}}function $ge(e){const t=String(e.content??""),n=t.match(/\r?\n\s*\d+[.)]?\s*$/);if(!n||typeof n.index!="number")return;e.content=t.slice(0,n.index);const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??"");if(/^[ \t\r\n\d.)]*$/.test(s)){i.pop();continue}const r=s.replace(/[ \t\r\n\d.)]+$/g,"");r!==s&&(r?o.content=r:i.pop())}break}}function Pge(e){const t=String(e.content??"");return/[ \t\r\n]+$/.test(t)||/\r?\n\s*\d+[.)]?\s*$/.test(t)}function vm(e,t,n){const i=e[t],o=[],s=af(n,!0);let r=t+1;for(;rd.raw).join("")};n?.includeSourceMap&&Ci(c,e[r],n),o.push(c),r=u+1}else r+=1;const l={type:"list",ordered:i.type==="ordered_list_open",start:(()=>{if(i.attrs&&i.attrs.length){const a=i.attrs.find(u=>u[0]==="start");if(a){const u=Number(a[1]);return Number.isFinite(u)&&u!==0?u:1}}})(),items:o,raw:o.map(a=>a.raw).join(` -`)};return n?.includeSourceMap&&Ci(l,i,n),[l,r+1]}function zge(e,t,n,i){const o=String(n[1]??"note"),s=String(n[2]??o.charAt(0).toUpperCase()+o.slice(1)),r=[],l=af(i,!0);let a=t+1;for(;au.raw).join(` -`)} -:::`},a+1]}const jge=new Set(["warning","info","note","tip","danger","caution"]);function Hge(e){let t=0;for(;t=0;g--){const v=f[g];if(v.type==="text"&&/:+/.test(v.content)){h=g;break}}const m={type:"paragraph",children:Lo((h!==-1?f.slice(0,h):f)||[],void 0,void 0,a.options()),raw:String(d.content??"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")};n?.includeSourceMap&&Ci(m,e[u],n),l.push(m),a.remember(m.raw)}u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[d,f]=vm(e,u,a.options());n?.includeSourceMap&&Ci(d,e[u],n),l.push(d),a.remember(d.raw),u=f}else if(e[u].type==="blockquote_open"){const[d,f]=ym(e,u,a.options());n?.includeSourceMap&&Ci(d,e[u],n),l.push(d),a.remember(d.raw),u=f}else{const d=r4(e,u,a.options());d?(l.push(d[0]),a.remember(d[0].raw),u=d[1]):u++}return[{type:"admonition",kind:o,title:s,children:l,raw:`:::${o} ${s} -${l.map(d=>d.raw).join(` -`)} -:::`},u+1]}const qge=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/;function Uge(e,t,n){const i=e[t];if(i.type!=="container_open")return null;const o=qge.exec(String(i.info??""));return o?zge(e,t,o,n):null}const B7={parseContainer:(e,t,n)=>Wge(e,t,n),matchAdmonition:Uge};function ym(e,t,n){const i=[],o=af(n,!0);let s=t+1;for(;sl.raw).join(` -`)};return n?.includeSourceMap&&Ci(r,e[t],n),[r,s+1]}function Vge(e){if(e.info?.startsWith("diff"))return N7(e);const t=String(e.content??""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);let i=t;n?.[1]&&(i=t.replace(/]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String(e.info??""),code:i,raw:i,loading:!o}}function Kge(e,t,n){const i=[];let o=t+1,s=[],r=[];const l=af(n,!0);for(;ou.raw).join("")),o+=3}else if(e[o].type==="dd_open"){let a=o+1;for(r=[];a0&&(i.push({type:"definition_item",term:s,definition:r,raw:`${s.map(u=>u.raw).join("")}: ${r.map(u=>u.raw).join(` -`)}`}),s=[]),o=a+1}else o++;return[{type:"definition_list",items:i,raw:i.map(a=>a.raw).join(` -`)},o+1]}function Zge(e,t,n){const i=e[t].meta??{},o=String(i?.label??"0"),s=[],r=af(n,!0);let l=t+1;for(;la.raw).join(` -`)}`},l+1]}function Gge(e,t,n){const i=e[t],o=i.attrs,s=Array.isArray(o)&&o.length?Object.fromEntries(o.filter(c=>Array.isArray(c)&&c.length>=1&&c[0]).map(([c,d])=>[String(c),d==null||d===""?!0:String(d)])):void 0,r=String(i.tag?.substring(1)??"1"),l=Number.parseInt(r,10),a=e[t+1],u=String(a.content??"");return{type:"heading",level:l,text:u,...s?{attrs:s}:{},children:Lo(a.children||[],u,void 0,n),raw:u}}function Qge(e,t,n){const i=t.toLowerCase(),o=new RegExp(String.raw`^<\s*${i}(?=\s|>|/)`,"i"),s=new RegExp(String.raw`^<\s*\/\s*${i}(?=\s|>)`,"i");let r=0,l=Math.max(0,n);for(;l$/.test(d)||r++,l=a+c+1;continue}l=a+1}return-1}function bH(e){const t=String(e.content??"");if(/^\s*");else if(a)a=!v.includes(">");else if(u)u=!v.includes("?>");else if(v.startsWith("");else if(v.startsWith("");else if(v.startsWith("");else{const y=o(v);if(y)if(y.closing){for(let b=r.length-1;b>=0;b--)if(r[b]===y.tag){r.length=b;break}}else y.selfClosing||s(y.after,y.tag)||r.push(y.tag)}}if(d===-1||d>=t)break;c=d+1}return l||a||u||r.length>0}function B0e(e,t,n){if(!n?.length)return!1;const i=new Set(tp(n));if(!i.size)return!1;const o=c=>{const d=c.charCodeAt(0);return d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||c==="_"||c==="-"||c===":"},s=c=>c===" "||c===" ",r=c=>{if(c[0]!=="<")return null;let d=1;for(;d"&&g!=="/")return null;const v=c.indexOf(">",d);if(v===-1)return null;let y=v-1;for(;y>=0&&s(c[y]);)y--;return{closing:f,tag:m,selfClosing:!f&&c[y]==="/",after:c.slice(v+1)}},l=(c,d)=>{const f=c.toLowerCase();let h=0;for(;h")return!0}}return!1},a=[];let u=0;for(;u=t?t:c,f=e.slice(u,d),h=f.endsWith("\r")?f.slice(0,-1):f,m=km(h);if(m){const g=r(h.slice(m.index));if(g)if(g.closing){for(let v=a.length-1;v>=0;v--)if(a[v]===g.tag){a.length=v;break}}else g.selfClosing||l(g.after,g.tag)||a.push(g.tag)}if(c===-1||c>=t)break;u=c+1}return a.length>0}function R0e(e,t){const n=f0e.exec(e);if(!n)return null;const i=n[1]??"",o=n.index+i.length,s=e.indexOf(` -`,o),r=e.slice(o,s===-1?e.length:s);return!km(r.endsWith("\r")?r.slice(0,-1):r)||EH(e,o)||F0e(e,o)||B0e(e,o,t)?null:`${e.slice(0,n.index)}${i}`}function H7(e,t,n){let i=t;for(;ii&&(r=!0),t.inMath=!1,t.mathOpenOffset=null,s+=2;continue}s++;continue}if(t.inDollarMath){if(e.startsWith("$$",s)&&!Au(e,l)){i!=null&&o&&n+s+2>i&&(r=!0),t.inDollarMath=!1,t.dollarMathOpenOffset=null,s+=2;continue}s++;continue}if(e[s]==="`"&&!Au(e,l)){const a=H7(e,s,"`"),u=LH(e,s+a,a);if(u===-1)break;s=u+a;continue}if(e.startsWith("\\[",s)&&!Au(e,l)){t.inMath=!0,t.mathOpenOffset=n+s,s+=2;continue}if(e.startsWith("$$",s)&&!Au(e,l)){t.inDollarMath=!0,t.dollarMathOpenOffset=n+s,s+=2;continue}s++}return r}function O0e(e,t){if(!E7(t))return e;const n=t,i=yL.get(n),o=i?.source===e?i.state:i&&e.startsWith(i.source)?NH(i.state,e.slice(i.source.length),i.source.length-i.state.lineBuffer.length).state:a4(e).state;yL.set(n,{source:e,state:o});const{context:s}=o,r=s.inMath?s.mathOpenOffset:s.inDollarMath?s.dollarMathOpenOffset:null;if(r==null)return e;const l=e.slice(r+2),a=e.lastIndexOf(` -`,r-1)+1;if(e.slice(a,r).trim()!==""&&!/^\r?\n/.test(l)||/^\s*!\[/.test(l))return e;const u=l.trim(),c=/^(?:[a-z]|pi)$/i.test(u);return hd(l)&&!c?e:e.slice(0,r)}function $0e(e,t,n,i,o){const s=$7(e),r=P7(e);if(t.inFence&&t.fenceInBlockquote&&e.trim()&&z7(e)==null&&D8(t),t.inFence&&t.fenceInList&&e.trim()&&s.column=t.fenceLen&&/^\s*$/.test(l.rest)&&D8(t):(t.inFence=!0,t.fenceChar=l.markerChar,t.fenceLen=l.markerLen,t.fenceInBlockquote=l.inBlockquote,t.fenceInList=l.inList||t.listContentIndent!=null&&!l.inBlockquote&&s.column>=t.listContentIndent,t.fenceListIndent=l.listIndent||t.listContentIndent||0);else if(!t.inFence)return CL(e,t,n,i,o)}else return CL(e,t,n,i,o);return!1}function a4(e,t=T0e(),n=null,i=!1,o=0){const s=u0(t);let r=u0(t),l="",a=!1,u=0;for(;uu&&e[c-1]==="\r"?c-1:d?c:e.length,h=e.slice(u,f);$0e(h,s,o+u,n,i)&&(a=!0),d?(r=u0(s),l=""):l=h,u=d?c+1:e.length}return{closedOpenMath:a,state:{committedContext:r,context:s,lineBuffer:l}}}function NH(e,t,n=0){return t&&!e.context.inMath&&!e.context.inDollarMath&&!e.context.inFence&&!e.committedContext.inFence&&!/[\\$`~\r\n]/.test(t)&&!(e.lineBuffer.endsWith("\\")&&(t[0]==="["||t[0]==="]"))?{closedOpenMath:!1,state:{committedContext:u0(e.committedContext),context:u0(e.context),lineBuffer:e.lineBuffer+t}}:a4(e.lineBuffer+t,e.committedContext,n+e.lineBuffer.length,e.context.inMath||e.context.inDollarMath,n)}function P0e(e,t){if(!E7(e))return;const n=e.stream;if(typeof n?.reset!="function")return;const i=e,o=l4.get(i);if(o?.source===t)return;const s=o?t.startsWith(o.source):!1,r=s&&o?t.slice(o.source.length):"",l=s&&o?NH(o.explicitBracketMath,r,o.source.length-o.explicitBracketMath.lineBuffer.length):a4(t),a=l.state,u=s&&o?l.closedOpenMath:!1;if(o&&s&&o.key===null&&o.pendingCandidate===!1&&!u&&!D0e(o.source,r)&&!L0e(t)){o.source=t,o.explicitBracketMath=a;return}const c=bme(t);(o&&(o&&!s||o.key!==c||u)||!o&&c)&&n.reset(),E0e(e,t,c,a)}function z0e(e){return typeof e.preTransformTokens=="function"||typeof e.postTransformTokens=="function"}function DH(e,t){const n=e?.map,i=t?.map;return n===i?!0:!Array.isArray(n)||!Array.isArray(i)?!1:n.length===i.length&&n.every((o,s)=>o===i[s])}function j0e(e,t){const n=e?.attrs,i=t?.attrs;if(n===i)return!0;if(!Array.isArray(n)||!Array.isArray(i)||n.length!==i.length)return!1;for(let o=0;o":""}function _L(e){return{type:"paragraph",children:e,raw:e.map(U0e).join("")}}function ML(e,t){if(t.sourceMap)for(const n of e)n.sourceMap||(n.sourceMap=t.sourceMap)}function IL(e,t){if(e.type!=="paragraph")return null;const n=e.children,i=Array.isArray(n)?n:[];if(i.length===0)return null;const o=x0e(t);if(!o?.size)return null;let s=-1;for(let c=0;ch?.type==="hardbreak")){s=c;break}}if(s===-1)return null;const r=i.slice(0,s),l=i[s];if(!l)return null;const a=[];r.length&&a.push(_L(r)),a.push(l);const u=i.slice(s+1);return u.length&&a.push(_L(u)),a}function V0e(e){const t=e.trim();if(!t)return null;const n=/^(?:]*>\s*)?]*)?>/i.test(t),i=/<\/html>\s*$/i.test(t);return!n||!i?null:[{type:"html_block",tag:"html",raw:e,content:e,loading:!1}]}function c0(e){const t=e.raw;if(typeof t=="string")return t;const n=e.content;return typeof n=="string"?n:""}function K0e(e,t){if(e.type!=="html_block"||!t)return!1;const n=String(e.raw??e.content??"");return new RegExp(String.raw`^\s*<\s*\/\s*${Ka(t)}\s*>\s*$`,"i").test(n)}const B8=new Set(["iframe","script","style","textarea","title"]);function qv(e,t,n){if(!e||!t)return null;const i=t.toLowerCase(),o=f=>{if(e.startsWith("",f+4);return{closing:!1,end:A===-1?e.length:A+3,selfClosing:!1,tag:""}}if(e.startsWith("",f+9);return{closing:!1,end:A===-1?e.length:A+3,selfClosing:!1,tag:""}}const h=Ho(e.slice(f));if(h===-1)return null;const m=f+h+1,g=e.slice(f,m);if(/^<\s*[!?]/.test(g))return{closing:!1,end:m,selfClosing:!1,tag:""};let v=g.slice(1).trimStart();const y=v.startsWith("/");y&&(v=v.slice(1).trimStart());const b=v.match(/^([A-Z][\w:-]*)/i);return b?.[1]?{closing:y,end:m,selfClosing:/\/\s*>$/.test(g),tag:b[1].toLowerCase()}:{closing:!1,end:f+1,selfClosing:!1,tag:""}},s=(f,h)=>{const m=new RegExp(String.raw`<\s*\/\s*${Ka(f)}(?=\s|>)`,"gi");m.lastIndex=h;const g=m.exec(e);if(!g||g.index==null)return null;const v=o(g.index);return v?{start:g.index,end:v.end}:null};let r=-1,l=-1,a=Math.max(0,n);for(;a$/.test(u))return{raw:u,start:r,end:l+1,closed:!0};if(B8.has(i)){const f=s(i,l+1);return f?{raw:e.slice(r,f.end),start:r,end:f.end,closeStart:f.start,closed:!0}:{raw:e.slice(r),start:r,end:e.length,closed:!1}}let c=1,d=l+1;for(;d]*$/,"")} -`}function TL(e){return e.replace(/\r\n/g,` -`).replace(/(^|\n)[ \t]{1,4}/g,"$1")}function Q0e(e,t,n){return n?e.includes(n,t)?!0:TL(e.slice(Math.max(0,t))).includes(TL(n)):!1}function Y0e(e,t){let n=Math.max(0,t);for(;n)`,"gi");let i=-1,o;for(;(o=n.exec(e))!==null;)i=o.index;return i}function BH(e,t){return{final:t,__disableStreamParse:!0,requireClosingStrong:e.requireClosingStrong,customHtmlTags:e.customHtmlTags,validateLink:e.validateLink}}const X0e=new Set(["admonition","blockquote","code_block","definition_list","footnote","heading","list","math_block","table","thematic_break"]),eve=/(?:^|\n)\s{0,3}(?:#{1,6}\s+\S|[-+*]\s+\S|\d+[.)]\s+\S|>\s*\S|`{3,}|~{3,}|(?:\*{3,}|-{3,}|_{3,})(?:\s|$)|\|.*\|)/m;function tve(e){return/\n\s*\n/.test(e)||eve.test(e)}function nve(e,t){if(!e.trim()||t.length===0)return!1;if(t.some(i=>X0e.has(String(i?.type??"").toLowerCase()))||t.some(i=>{if(i?.type!=="html_block")return!1;const o=i;return Array.isArray(o.children)&&o.children.length>0}))return!0;if(!tve(e))return!1;if(t.length>1)return!0;const[n]=t;return!!(n&&n.type==="paragraph")}function ive(e){const t=[];let n=0;for(;n=e.length)break;const i=e.slice(n).match(/^<([A-Z][\w:-]*)/i);if(!i?.[1])return null;const o=qv(e,i[1],n);if(!o||o.start!==n)return null;t.push(o.raw),n=o.end}return t.length>1?t:null}function ove(e,t,n,i){const o=n.customHtmlTags?.join("\0")??"",s=t,r=vL.get(s),l=r&&r.final===i&&r.customHtmlTags===o&&r.requireClosingStrong===n.requireClosingStrong&&r.validateLink===n.validateLink,a=e.map((u,c)=>l&&r.blocks[c]===u?r.children[c]:S1(u,t,n));return vL.set(s,{blocks:e,children:a,customHtmlTags:o,final:i,requireClosingStrong:n.requireClosingStrong,validateLink:n.validateLink}),a.flat()}function sve(e,t,n,i){return e.map(o=>{if(o?.type!=="html_block")return o;const s=o,r=String(s.tag??"").toLowerCase();if(!r||r==="details"||Fj.has(r)||Array.isArray(s.children))return o;const l=String(o.raw??s.content??"");if(!l)return o;const a=Ho(l);if(a===-1)return o;const u=qv(l,r,0),c=u?.closeStart??-1,d=u?.closed===!0&&c>=a+1,f=d?l.slice(a+1,c):l.slice(a+1);if(!f.trim())return o;const h=BH(n,i),m=d?null:ive(f),g=m?ove(m,t,h,i):S1(f,t,h);return nve(f,g)?{...o,children:g}:o})}function rve(e){for(const t of e)if(t?.type==="html_block")return!0;return!1}function S1(e,t,n){return e.trim()?OH(e,t,{...n,__disableStreamParse:!0,__disableStructuredReuse:!0}):[]}function lve(e,t,n){const i=S1(e,t,n),o=i[0];return i.length===1&&o?.type==="paragraph"&&Array.isArray(o.children)?o.children:i}function ave(e,t,n){const i=bH({content:e}),o=Ho(e),s=FH(e,"summary");if(o!==-1&&s!==-1&&s>=o+1){const r=lve(e.slice(o+1,s),t,n);r.length>0&&(i.children=r)}return i.raw=e,i}function uve(e,t,n){const i=Ho(e);if(i===-1)return[];const o=e.slice(i+1);if(!o.trim())return[];const s=qv(o,"summary",0);if(!s)return S1(o,t,n);const r=o.slice(0,s.start),l=o.slice(s.end);return[...S1(r,t,n),ave(s.raw,t,n),...S1(l,t,n)]}function RH(e,t,n,i,o,s=0){const r=[];let l=s;for(let a=0;a{const j=FH(f,"details");return j!==-1?f.slice(0,j):f})():f,[A]=RH(y?[]:g===-1?e.slice(a+1):e.slice(a+1,g),t,n,i,o,h+f.length),w=uve(b,n,BH(i,o)),M=g===-1?"":String(e[g].raw??c0(e[g])??""),N=y||g!==-1&&v?.closed===!0,T=M.replace(/[\t\r\n ]+$/,""),C=N?(()=>{const j=(v?.raw??"").lastIndexOf(T);return j===-1?t.length:h+j})():t.length,I=Ho(f),S=y&&I!==-1?h+I+1:h+f.length,E=t.slice(S,C===-1?t.length:C),_=n.parse(E,{__markstreamFinal:o}),F=n.renderer.render(_,n.options,{__markstreamFinal:o}),q=C+T.length,P=N?Math.max(C+M.length,Y0e(t,q)):t.length,O=N?t.slice(C,P):M,R=N?t.slice(h,P):t.slice(h),z=y&&I!==-1?f.slice(0,I+1):f,H={...u,tag:"details",attrs:s4(f.slice(0,I+1)),raw:R,content:`${z}${F}${O}`,children:[...w,...A],loading:!o&&!N};if(i.includeSourceMap&&(H.sourceMap=iv(t,h,N?P:t.length,i)),r.push(H),l=N?P:t.length,g===-1&&!y)break;g!==-1&&(a=g)}return[r,l]}function cve(e,t,n,i){if(!n)return e;const o=e.slice();let s=0;for(let r=0;r=d.start&&I.end<=d.end){o.splice(N,1);continue}break}M=C+T.length,o.splice(N,1)}}return o}function dve(e){const t=l=>l===" "||l===" "||l===` -`||l==="\r",n=l=>{if(!l||l[0]!=="<"||l.includes(">"))return!1;let a=1;if(a{const v=g.charCodeAt(0);return v>=65&&v<=90||v>=97&&v<=122},c=g=>{const v=g.charCodeAt(0);return v>=48&&v<=57},d=g=>g==="!"||u(g),f=g=>u(g)||c(g)||g===":"||g==="-",h=g=>u(g)||c(g)||g==="_"||g==="."||g===":"||g==="-",m=h;if(a>=l.length||!d(l[a]))return!1;for(a++;a=l.length)return!0;if(l[a]==="/"){for(a++;a=l.length}if(!h(l[a]))return!1;for(a++;a=l.length)return!0;const g=l[a];if(g==='"'||g==="'"){for(a++;a=l.length)return!0;a++}else{for(;a"||v==='"'||v==="'"||v==="`")break;a++}if(a>=l.length)return!0}}}return!0},i=(l,a)=>EH(l,a),o=String(e??""),s=o.lastIndexOf("<");if(s===-1||i(o,s))return o;if(s>0){const l=o[s-1],a=l===" "||l===" "||l===` -`||l==="\r",u=o[s-2];if(!a&&!((l==="n"||l==="r")&&u==="\\"))return o}const r=o.slice(s);return r.includes(">")||r.length>1&&(r[1]===" "||r[1]===" "||r[1]===` -`||r[1]==="\r")||!n(r)?o:o.slice(0,s)}function LL(e,t){if(e===t)return;const n=e.split(/\r?\n/),i=t.split(/\r?\n/),o=[];let s=0;for(let r=0;r{const l=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0;if(lString(m??"").toLowerCase()).filter(Boolean));if(!n.size)return e;const i=m=>m===" "||m===" ",o=m=>{const g=m.charCodeAt(0);return g>=65&&g<=90||g>=97&&g<=122||g>=48&&g<=57||m==="_"||m==="-"||m===":"},s=m=>{if(!m)return!1;if(m[0]===" ")return!0;let g=0;for(let v=0;v=4)return!0;continue}if(y===" ")return!0;break}return!1},r=m=>{let g=!1,v=!1;for(let y=0;y")return y}return-1},l=m=>{let g=0;for(;g{if(s(m))return-1;const v=m.replace(/^[ \t]+/,"");if(!v||v.startsWith(">")||v.startsWith("|")||/^(?:[*+-]|\d+[.)])[\t ]+/.test(v))return-1;let y=!1,b=0;for(;b=M.length){y=!0,b++;continue}const T=M[N];if(T==="!"||T==="?"){y=!0,b+=w+1;continue}if(T==="/"){y=!0,b+=w+1;continue}const C=N;for(;N"&&S!=="/"){y=!0,b++;continue}const E=new RegExp(String.raw`<\s*\/\s*${I}\s*>`,"i"),_=/\/\s*>$/.test(M),F=E.test(m.slice(b+w+1)),q=E.test(e.slice(g+b+w+1)),P=/[\r\n]/.test(e.slice(g+b+w+1));if(y&&n.has(I)&&!_&&!F&&(q||P))return b;y=!0,b+=w+1}return-1};let u=!1,c="",d=0,f="",h=0;for(;hh&&e[m-1]==="\r",y=g?v?m-1:m:e.length,b=e.slice(h,y),A=g?v?`\r -`:` -`:"",w=l(b);let M=b;if(!u&&!w){const N=a(b,h);if(N!==-1){const T=A||` -`;M=`${b.slice(0,N).replace(/[ \t]+$/,"")}${T}${T}${b.slice(N).replace(/^[ \t]+/,"")}`}}f+=M,f+=A,w&&(u?w.markerChar===c&&w.markerLen>=d&&/^\s*$/.test(w.rest)&&(u=!1,c="",d=0):(u=!0,c=w.markerChar,d=w.markerLen)),h=g?m+1:e.length}return f}function hve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(d=>String(d??"").toLowerCase()));if(!n.size)return e;const i=d=>d===" "||d===" ",o=d=>{const f=d.charCodeAt(0);return f>=65&&f<=90||f>=97&&f<=122||f>=48&&f<=57||d==="_"||d==="-"},s=d=>{let f=0;for(;f{let f=!1,h=!1;for(let m=0;m")return m}return-1},l=(d,f,h)=>{const m=h.toLowerCase();let g=d.indexOf("<",f);for(;g!==-1;){let v=g+1;for(;v=d.length||d[v]!=="/"){g=d.indexOf("<",g+1);continue}for(v++;vd.length){g=d.indexOf("<",g+1);continue}let y=!0;for(let A=0;A="A"&&w<="Z"?String.fromCharCode(w.charCodeAt(0)+32):w)!==m[A]){y=!1;break}}if(!y){g=d.indexOf("<",g+1);continue}let b=v+m.length;if(b")return!0;g=d.indexOf("<",g+1)}return!1},a=d=>{let f=0;for(;f=d.length||d[f]!=="<")return d;for(f++;f=d.length||d[f]==="/")return d;const h=f;for(;fc&&e[d-1]==="\r",h=f?d-1:d,m=e.slice(c,h);u+=a(m),u+=f?`\r -`:` -`,c=d+1}return u}function pve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(f=>String(f??"").toLowerCase()));if(!n.size)return e;const i=f=>f===" "||f===" ",o=f=>{let h=0,m=!1,g=0;for(;h=f.length||f[h]!==">")break;for(m=!0,h++;h{let h=0;for(;hnew RegExp(String.raw`(<\s*\/\s*${f}\s*>)${"(?=[\\t ]*(?:#{1,6}[\\t ]+|>|(?:[*+-]|\\d+[.)])[\\t ]+|(?:`{3,}|~{3,})|\\||\\$\\$|:{3,}|\\[\\^[^\\]]+\\]:|(?:-{3,}|\\*{3,}|_{3,})))"}`,"gi"));let l=!1,a="",u=0,c="",d=0;for(;dd&&e[f-1]==="\r",g=h?m?f-1:f:e.length,v=e.slice(d,g),y=h?m?`\r -`:` -`:"",b=o(v),A=b?.prefix??"",w=b?.content??v,M=s(w);M&&(l?M.markerChar===a&&M.markerLen>=u&&/^\s*$/.test(M.rest)&&(l=!1,a="",u=0):(l=!0,a=M.markerChar,u=M.markerLen));let N=w;if(!l&&N.includes("{if(E.replace(/^[\t ]+/,"").startsWith("|"))return C;const _=E.slice(0,S).replace(/^[\t ]+/,"");if(_.length>0){const F=I.match(/^<\s*\/\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"",q=_.match(/^<\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"";if(!F||!q||F!==q)return C}return`${I} - -`});if(A){const T=A+N.split(` -`).join(` -${A}`);c+=T}else c+=N;c+=y,d=h?f+1:e.length}return c}function mve(e,t){if(!e||!t.length)return e;const n=new Set(t.map(_=>String(_??"").toLowerCase()));if(!n.size)return e;const i=_=>_===" "||_===" ",o=_=>{if(!_)return!1;if(_[0]===" ")return!0;let F=0;for(let q=0;q<_.length;q++){const P=_[q];if(P===" "){if(F++,F>=4)return!0;continue}if(P===" ")return!0;break}return!1},s=_=>{const F=_.charCodeAt(0);return F>=65&&F<=90||F>=97&&F<=122||F>=48&&F<=57||_==="_"||_==="-"||_===":"},r=_=>{let F=0;for(;F<_.length&&i(_[F]);)F++;return _.slice(F)},l=_=>{let F=0,q=!1,P=0;for(;F<_.length;){for(;F<_.length&&i(_[F]);)F++;if(F>=_.length||_[F]!==">")break;for(q=!0,F++;F<_.length&&i(_[F]);)F++;P=F}if(!q)return null;const O=_.slice(0,P);return{prefix:O,key:O.replace(/[ \t]+$/,""),content:_.slice(P)}},a=_=>r(_).startsWith("<"),u=_=>{for(let F=0;F<_.length;F++){const q=_[F];if(q!==" "&&q!==" ")return!1}return!0},c=_=>{if(o(_))return"";const F=r(_);if(!F.startsWith("<"))return"";let q=1;for(;q=F.length||F[q]==="/"||F[q]==="!"||F[q]==="?")return"";const P=q;for(;q"&&R!=="/"?"":O},d=_=>{if(o(_))return null;const F=r(_);if(!F.startsWith("<"))return null;let q=1;for(;q=F.length)return null;const P=F[q]==="/";if(P)for(q++;q"&&H!=="/")return null;if(P)return{type:"close",name:z};if(/\/\s*>\s*$/.test(F))return{type:"open",name:z,complete:!0};const j=F.indexOf(">",q);if(j!==-1){const Q=F.slice(j+1);if(new RegExp(`<\\s*\\/\\s*${z}\\s*>`,"i").test(Q))return{type:"open",name:z,complete:!0}}return{type:"open",name:z,complete:!1}},f=_=>{if(o(_))return null;const F=r(_).replace(/[ \t]+$/,"");if(!F.startsWith("<")||/^<\s*(?:!--|!doctype\b|\?)/i.test(F))return null;const q=F.match(/^<\s*([A-Z][\w:-]*)\b[^>]*\/\s*>\s*$/i);if(q?.[1])return q[1].toLowerCase();const P=F.match(/^<\s*([A-Z][\w:-]*)\b[^>]*>[\s\S]*<\s*\/\s*([A-Z][\w:-]*)\s*>\s*$/i);if(!P?.[1]||!P[2])return null;const O=P[1].toLowerCase();return O===P[2].toLowerCase()?O:null};let h=!1,m="",g=0;const v=_=>{let F=0;for(;F<_.length&&i(_[F]);)F++;const q=_[F];if(q!=="`"&&q!=="~")return null;let P=F;for(;P<_.length&&_[P]===q;)P++;const O=P-F;return O<3?null:{markerChar:q,markerLen:O,rest:_.slice(P)}},y=_=>v(_),b=_=>{const F=r(_);return F?o(_)?!0:/^(?:#{1,6}[ \t]+|>|[*+-][ \t]+|\d+[.)][ \t]+|`{3,}|~{3,}|\||\$\$|:{3,}|\[\^[^\]]+\]:|-{3,}|\*{3,}|_{3,})/.test(F):!1},A=(_,F,q)=>{let P=_,O=0;for(;PP&&e[R-1]==="\r",j=z?H?R-1:R:e.length,Q=e.slice(P,j),ae=l(Q),W=ae?.key??"";if(O>0&&F&&W!==F)break;const G=ae?.content??Q,oe=d(G);if(oe?.name===q){if(oe.type==="open")oe.complete||O++;else if(O>0&&(O--,O===0))return!1}else if(O>0&&(u(G)||b(G)))return!0;if(z)P=R+1;else break}return!1};let w="",M=0,N=!0,T=!1,C=!1,I=` -`;const S=[];let E="";for(;MM&&e[_-1]==="\r",P=F?q?_-1:_:e.length,O=e.slice(M,P),R=F?q?`\r -`:` -`:"",z=l(O),H=z?.key??"",j=z?.content??O,Q=y(j);Q&&(h?Q.markerChar===m&&Q.markerLen>=g&&/^\s*$/.test(Q.rest)&&(h=!1,m="",g=0):(h=!0,m=Q.markerChar,g=Q.markerLen));const ae=S.length>0;if(!h&&!ae){const G=c(j),oe=!!G&&!N&&T&&C&&A(M,H,G);G&&!N&&(!T||oe)&&(H&&E&&H===E?w+=`${H}${I}`:H||(w+=I))}if(w+=O,w+=R,R&&(I=R),!h){const G=d(j);if(G){if(G.type==="open")G.complete||S.push(G.name);else for(let oe=S.length-1;oe>=0;oe--)if(S[oe]===G.name){S.length=oe;break}}}const W=u(j);N=W,T=!W&&a(j),C=!W&&!!f(j),E=H,M=F?_+1:e.length}return w}function gve(e){let t=!1,n="",i=0,o=!1,s=!1,r=!1,l=0;const a=(c,d)=>{const f=j7(c);if(f){t?f.markerChar===n&&f.markerLen>=i&&/^\s*$/.test(f.rest)&&(t=!1,n="",i=0):(t=!0,n=f.markerChar,i=f.markerLen);return}if(t)return;let h=0;for(;h{for(;l=c?c:d,h=f>l&&e[f-1]==="\r"?f-1:f;if(a(e.slice(l,h)),d===-1||d>=c){l=c;break}r=!1,l=d+1}},inMath:()=>o||s||r}}function R8(e,t,n,i){let o=e.replace(/([^\\])\r(ight|ho)/g,"$1\\r$2");const s=gve(o);if(o=o.replace(/([^\\])\r?\n(abla|eq|ot|exists)/g,(r,l,a,u)=>{s.scanTo(u+1);const c=s.inMath();return s.scanTo(u+r.length),c?`${l}\\n${a}`:r}),t||(o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/(?:^|\n)\s*-\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*-\s*$/,r=>r.startsWith(` -`)?` -`:""):/(?:^|\n)\s*--\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*--\s*$/,r=>r.startsWith(` -`)?` -`:""):/(?:^|\n)\s*>\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*>\s*$/,r=>r.startsWith(` -`)?` -`:""):/\n\s*[*+]\s*$/.test(o)?o=o.replace(/\n\s*[*+]\s*$/,` -`):/(?:^|\n)\s*\d+\s*$/.test(o)?/^\d+$/.test(o.trim())||(o=o.replace(/(?:^|\n)\s*\d+\s*$/,r=>r.startsWith(` -`)?` -`:"")):/(?:^|\n)\s*\d+[.)]\s+\*{1,3}\s*$/.test(o)?o=o.replace(/((?:^|\n)\s*\d+[.)]\s+)(\*{1,3})\s*$/,(r,l,a)=>`${l}${a.split("").map(()=>"\\*").join("")}`):/(?:^|\n)\s*\d+[.)]\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*\d+[.)]\s*$/,r=>r.startsWith(` -`)?` -`:""):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,` -`)),o=R0e(o,i.customHtmlTags)??o),i.customHtmlTags?.length&&o.includes("<")){const r=tp(i.customHtmlTags);if(r.length&&(o=fve(o,r),o=hve(o,r),o=mve(o,r),o=pve(o,r),o.includes("[\t ]*)(\r?\n)(?![\t ]*\r?\n|$)`,"gim");o=o.replace(a,"$1$2$2")}}return t||(o=dve(o)),o}function vve(e,t,n,i){const o=e,s=`${n?"final":"stream"}:${(i.customHtmlTags??[]).join(",")}`,r=zC.get(o);let l;if(!n&&!i.customHtmlTags?.length&&r&&r.mode===s&&t.length>=r.source.length&&t.startsWith(r.source)){const a=Math.max(0,r.source.length-h0e-p0e),u=R8(t.slice(a),n,e,i),c=r.source.length-a;l=u.length>=c&&u.slice(0,c)===r.safeMarkdown.slice(-c)?r.safeMarkdown.slice(0,r.safeMarkdown.length-c)+u:R8(t,n,e,i)}else l=R8(t,n,e,i);return n||(l=O0e(l,e)),zC.set(o,{source:t,safeMarkdown:l,mode:s}),l}function OH(e,t,n={}){const i=xH(n),o=i?Da():0,s=!!n.final,r=(e??"").toString();M0e(t,n)&&(t.stream.reset(),I0e(t),zC.delete(t));const l=vve(t,r,s,n);i&&Md(i,"safeMarkdownMs",Da()-o);const a=V0e(l);if(a){if(n.includeSourceMap){const M={...n,__sourceLineMapper:LL(r,l)};a[0].sourceMap=iv(l,0,l.length,M)}const A=n.preTransformTokens,w=n.postTransformTokens;if(O7(t,n)||typeof A=="function"||typeof w=="function"){const M=SL(t,l,{__markstreamFinal:s},n),N=typeof A=="function"&&A(M)||M;typeof w=="function"&&w(N)}return kL(a,n,i,o)}const u=i?Da():0,c=SL(t,l,{__markstreamFinal:s},n);if(i&&Md(i,"tokenizeMs",Da()-u),!c||!Array.isArray(c))return kL([],n,i,o);const d=n.preTransformTokens,f=n.postTransformTokens;let h=c;d&&typeof d=="function"&&(h=d(h)||h);const m=t,g=typeof m.validateLink=="function"&&m.__markstreamOriginalValidateLink&&m.validateLink!==m.__markstreamOriginalValidateLink?m.validateLink:void 0,v=n.validateLink??g??m.options?.validateLink??(typeof m.validateLink=="function"?m.validateLink:void 0),y={...n,validateLink:v,__markdownIt:t,__sourceLineMapper:n.includeSourceMap===!0?LL(r,l):void 0,__sourceMarkdown:l,__customHtmlBlockCursor:0};let b=A0e(t,l,h,y,i);if(f&&typeof f=="function"){const A=f(h);if(Array.isArray(A)){const w=A[0],M=w?.type;w&&typeof M=="string"?b=Up(A,{...y,__customHtmlBlockCursor:0},i):b=A}}if(rve(b)){const A=i?Da():0;b=cve(b,s,l,y),b=RH(b,l,t,y,s)[0],b=sve(b,t,y,s),i&&Md(i,"htmlBlockPassesMs",Da()-A)}if(s){const A=new WeakSet,w=M=>{if(!M||typeof M!="object"||A.has(M))return;if(A.add(M),Array.isArray(M)){for(const T of M)w(T);return}const N=M;N.type==="html_block"&&N.loading===!0&&(N.loading=!1);for(const T of Object.values(N))w(T)};w(b)}return b=_H(b,n),n.debug&&console.log("Parsed Markdown Tree Structure:",b),SH(b,i,o)}function NL(e,t){if(!e||!Array.isArray(e))return[];const n=[],i=af(t),o=t?.__linkifyDemotionSeed;if(Array.isArray(o)&&o.length)for(const l of o)i.remember(String(l??""));const s=t?.includeSourceMap===!0;let r=0;for(;rd.type==="html_block")){if(s)for(const d of c)Ci(d,a,t);for(const d of c)cu(d,a,t);n.push(...c)}else{const d={type:"paragraph",raw:u,children:c};s&&Ci(d,a,t);const f=IL(d,t);if(f){s&&ML(f,d);for(const h of f)cu(h,a,t);n.push(...f)}else cu(d,a,t),n.push(d)}i.remember(u)}r+=1;break;default:r+=1;break}}return n}const yve=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g,d0=/\d/u,kve=/[,.!?;:,。;、!?:]/u,bve=/\d\p{Script=Han}{1,3}$/u;function wve(e){return e.pos>0&&e.pos+1{const u=l,c=u.posMax,d=u.pos;if(u.src.charCodeAt(d)!==r||a||s.refuseDigitRange&&wve(u))return!1;u.pos=d+1;let f=!1;for(;u.pos]|$)/i,Sve=new Set([...jv,"base","button","datalist","dialog","embed","fieldset","form","iframe","input","legend","link","meta","object","optgroup","option","output","param","select","style","template","textarea","title"]),_ve=new Set(["a","abbr","b","blockquote","br","caption","code","col","colgroup","dd","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","picture","pre","s","small","source","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","ul"]);function DL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mve(e){return typeof e=="string"?e:e==null?"":String(e)}function $H(e){return/^[^\s"'<>`=]+$/.test(e)&&!/^on/i.test(e)}function pd(e){return Mve(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function PH(e){return pd(e).replace(/`/g,"`")}function c4(e){return String(e??"").trim().toLowerCase()}function W7(e,t="safe"){const n=c4(e);return n?t==="escape"?!0:t==="trusted"?jv.has(n):!_ve.has(n):!1}function zH(e,t="safe"){const n=c4(e);return n?t==="escape"?!0:t==="trusted"?jv.has(n):Sve.has(n):!1}function FL(e){const t=Object.entries(e);return t.length===0?"":t.map(([n,i])=>i===""?` ${n}`:` ${n}="${PH(i)}"`).join("")}function jH(e){const t=e.startsWith("/"),n=t?e.slice(1):e,i=n.match(xve);return i?{attrsStr:t?"":n.slice(i[0].length).trimStart(),isClosing:t,isSelfClosing:!t&&e.trimEnd().endsWith("/"),tagName:i[1]}:null}function Ive(e,t){const n=e.split(",").map(i=>i.trim()).filter(Boolean);return n.length===0?!1:n.some(i=>{const o=i.split(/\s+/,1)[0]??"";return!o||Ch(o,{tagName:t,attrName:"srcset"})})}function HH(e,t,n,i){return cpe.has(e)||n==="safe"&&e==="style"?!0:e==="srcset"?Ive(t,i):!!(dpe.has(e)&&t&&Ch(t,{tagName:i,attrName:e}))}function eh(e,t){const n=t.toLowerCase();return Object.keys(e).find(i=>i.toLowerCase()===n)}function WH(e,t,n,i=!1){if(t!=="safe"||c4(n)!=="a")return e;const o=eh(e,"href");if(i&&(!o||!e[o])){const a=eh(e,"target"),u=eh(e,"rel");return a&&delete e[a],u&&delete e[u],e}const s=eh(e,"target");if((s?String(e[s]).trim():"").toLowerCase()!=="_blank")return e;const r=eh(e,"rel"),l=new Set(String(r?e[r]:"").split(/\s+/).map(a=>a.trim()).filter(Boolean).filter(a=>a.toLowerCase()!=="opener"));return l.add("noopener"),l.add("noreferrer"),r&&r!=="rel"&&delete e[r],e.rel=Array.from(l).join(" "),e}function BL(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!$H(r)||HH(l,s,t,n)||(i[r]=s)}return WH(i,t,n,!!eh(e,"href"))}function qH(e,t){const n=e.toLowerCase();return Dj.has(n)?!1:DL(t,n)||DL(t,e)}function q7(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!$H(r)||HH(l,s,t,n)||(i[r]=s)}return WH(i,t,n,!!eh(e,"href"))}function f0(e){const t={};if(!Array.isArray(e)||e.length===0)return t;for(const[n,i]of e)n&&(t[String(n)]=i==null?"":String(i));return t}function l9(e,t="safe",n){const i=q7(f0(e),t,n),o=Object.entries(i).map(([s,r])=>[s,r]);return o.length>0?o:void 0}function Tve(e,t){const n=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(n))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(n)){const i=Number(e);if(e!==""&&!Number.isNaN(i))return i}return e}function Eve(e){const t={};for(const[n,i]of Object.entries(e))t[n]=Tve(i,n);return t}function O8(e){return e.trim().length>0}function UH(e){const t=[];let n=0;for(;n",n);if(r!==-1){n=r+3;continue}break}const i=e.indexOf("<",n);if(i===-1){if(nn){const r=e.slice(n,i);O8(r)&&t.push({type:"text",content:r})}if(e.startsWith("![CDATA[",i+1)){const r=e.indexOf("]]>",i);if(r!==-1){t.push({type:"text",content:e.slice(i,r+3)}),n=r+3;continue}break}if(e.startsWith("!",i+1)){const r=e.indexOf(">",i);if(r!==-1){n=r+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=jH(e.slice(i+1,o));if(!s){const r=e.slice(i,o+1);O8(r)&&t.push({type:"text",content:r}),n=o+1;continue}if(s.isClosing)t.push({type:"tag_close",tagName:s.tagName});else{const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Hd.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r})}n=o+1}return t}function Lve(e){const t=[];let n=0;for(;n",n);if(l!==-1){n=l+3;continue}break}const i=e.indexOf("<",n);if(i===-1){nn&&t.push({type:"text",content:e.slice(n,i)}),e.startsWith("![CDATA[",i+1)){const l=e.indexOf("]]>",i);if(l!==-1){t.push({type:"text",content:e.slice(i,l+3)}),n=l+3;continue}break}if(e.startsWith("!",i+1)){const l=e.indexOf(">",i);if(l!==-1){n=l+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=jH(e.slice(i+1,o));if(!s){t.push({type:"text",content:e.slice(i,o+1)}),n=o+1;continue}if(s.isClosing){t.push({type:"tag_close",tagName:s.tagName}),n=o+1;continue}const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Hd.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r}),n=o+1}return t}function Nve(e){const t=String(e.tagName??"").trim();if(!t)return"";if(e.type==="tag_close")return`</${pd(t)}>`;const n=Object.entries(e.attrs??{}).map(([i,o])=>o===""?` ${pd(i)}`:` ${pd(i)}="${PH(o)}"`).join("");return e.type==="self_closing"?`<${pd(t)}${n} />`:`<${pd(t)}${n}>`}function Dve(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;for(const n of UH(e))if((n.type==="tag_open"||n.type==="self_closing")&&qH(n.tagName??"",t))return!0;return!1}function _1(e,t="safe"){if(!e)return"";if(t==="escape")return pd(e);const n=Lve(e),i=[],o=[],s=[];for(const r of n){if(r.type==="text"){s.length===0&&o.push(pd(r.content??""));continue}const l=c4(r.tagName);if(!l)continue;if(zH(l,t)){r.type==="tag_open"?s.push(l):r.type==="tag_close"&&s[s.length-1]===l&&s.pop();continue}if(s.length>0)continue;if(t==="safe"&&W7(l,t)){o.push(Nve(r));continue}if(r.type==="self_closing"){o.push(`<${l}${FL(BL(r.attrs??{},t,l))}>`);continue}if(r.type==="tag_open"){o.push(`<${l}${FL(BL(r.attrs??{},t,l))}>`),Hd.has(l)||i.push(l);continue}const a=i.lastIndexOf(l);if(a===-1)continue;for(;i.length>a+1;){const c=i.pop();c&&o.push(``)}const u=i.pop();u&&o.push(``)}for(;i.length>0;){const r=i.pop();r&&o.push(``)}return o.join("")}const Fve=[/javascript:/i,/vbscript:/i,/data:text\/html/i,/expression\s*\(/i,/@import/i],RL="http://www.w3.org/2000/svg",Bve=new Set(["script","style","iframe","object","embed","link","meta"]),Rve=new Set(["svg","style","g","a","defs","marker","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","title","desc","use","image","lineargradient","radialgradient","stop","clippath","mask","pattern"]),Ove=new Set(["href","xlink:href","src","srcdoc","action","data","formaction","poster"]),$ve=new Set(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"]),Pve=new Set(["circle","ellipse","image","line","path","polygon","polyline","rect","text","tspan","use"]);function zve(e){return(e.getAttribute("href")||e.getAttribute("xlink:href"))?.startsWith("#")===!0}function jve(e){return!!(e.getAttribute("href")||e.getAttribute("xlink:href")||e.getAttribute("src"))}function Hve(e){const t=e.nodeName.toLowerCase();return t==="use"?zve(e):t==="image"?jve(e):t==="text"||t==="tspan"?!!e.textContent?.trim():Pve.has(t)}function Wve(e){return e.replace(/(["'])\s*javascript:/gi,"$1#").replace(/\bjavascript:/gi,"#").replace(/(["'])\s*vbscript:/gi,"$1#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#")}function qve(e,t,n){const i=e.toLowerCase(),o=t.toLowerCase(),s=String(n??"").trim();return s?(i==="use"||i==="marker"||i==="clippath"||i==="mask")&&(o==="href"||o==="xlink:href")?s.startsWith("#")?s:"":i==="a"&&(o==="href"||o==="xlink:href")?Ch(s,{tagName:"a",attrName:"href"})?"":s:i==="image"&&(o==="href"||o==="xlink:href"||o==="src")?Ch(s,{tagName:"img",attrName:"src"})?"":s:o==="href"||o==="xlink:href"?s.startsWith("#")?s:"":Ch(s,{tagName:i,attrName:o})?"":s:""}function Uve(e,t){let n=t+4;for(;n{const i=n.trim();if(/^[0-9a-f]+$/i.test(i)){const o=Number.parseInt(i,16);try{return Number.isFinite(o)?String.fromCodePoint(o):""}catch{return""}}return String(n).trim()})}function KH(e){const t=VH(e),n=t.toLowerCase();let i=0;for(;in.test(t))||KH(t)}function Vve(e){if(e.tagName.toLowerCase()!=="a"||e.getAttribute("target")?.trim().toLowerCase()!=="_blank")return;const t=new Set(String(e.getAttribute("rel")??"").split(/\s+/).map(n=>n.trim()).filter(Boolean).filter(n=>n.toLowerCase()!=="opener"));t.add("noopener"),t.add("noreferrer"),e.setAttribute("rel",Array.from(t).join(" "))}function ry(e){const t=Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function ZH(e,t){if(e.nodeType===Node.TEXT_NODE){const o=e.textContent??"";o&&t.push(o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const n=e,i=n.tagName.toLowerCase();if(!Bve.has(i)){if(i==="br"){t.push(` -`);return}for(const o of Array.from(n.childNodes))ZH(o,t)}}function Kve(e){for(const t of Array.from(e.querySelectorAll("foreignObject"))){const n=[];ZH(t,n);const i=n.join("").split(/\r?\n/).map(c=>c.trim()).filter(Boolean);if(!i.length){t.remove();continue}const o=ry(t.getAttribute("width")),s=ry(t.getAttribute("height")),r=ry(t.getAttribute("x")),l=ry(t.getAttribute("y")),a=e.ownerDocument.createElementNS(RL,"text");a.setAttribute("x",String(r+o/2)),a.setAttribute("y",String(l+s/2)),a.setAttribute("text-anchor","middle"),a.setAttribute("dominant-baseline","central");const u=t.querySelector(".nodeLabel");if(u?.getAttribute("class")&&a.setAttribute("class",u.getAttribute("class")),i.length===1)a.textContent=i[0];else{const c=-.6*(i.length-1);for(const[d,f]of i.entries()){const h=e.ownerDocument.createElementNS(RL,"tspan");h.setAttribute("x",String(r+o/2)),h.setAttribute("dy",d===0?`${c}em`:"1.2em"),h.textContent=f,a.appendChild(h)}}t.parentNode?.replaceChild(a,t)}}function Zve(e){Kve(e);const t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){const i=n.tagName.toLowerCase();if(!Rve.has(i)){n.remove();continue}if(i==="style"&&OL(n.textContent??"")){n.remove();continue}const o=Array.from(n.attributes);for(const s of o){const r=s.name.toLowerCase();if(/^on/i.test(r)){n.removeAttribute(s.name);continue}if(r==="style"&&s.value&&OL(s.value)){n.removeAttribute(s.name);continue}if(r==="srcdoc"){n.removeAttribute(s.name);continue}if(Ove.has(r)&&s.value){const l=qve(i,r,s.value);if(!l){n.removeAttribute(s.name);continue}l!==s.value&&n.setAttribute(s.name,l);continue}if($ve.has(r)&&s.value&&KH(s.value)){n.removeAttribute(s.name);continue}if(s.value){const l=Wve(s.value);l!==s.value&&n.setAttribute(s.name,l)}}Vve(n)}}function Mkt(e){if(typeof DOMParser>"u"||!e)return null;try{const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;if(!t||t.nodeName.toLowerCase()!=="svg")return null;const n=t;return Zve(n),Gve(n)?null:n}catch{return null}}function Gve(e){const t=e.getAttribute("viewBox");if(t){const o=t.trim().split(/[\s,]+/);if(o.length===4){const s=Number.parseFloat(o[2]||""),r=Number.parseFloat(o[3]||"");if(!Number.isFinite(s)||!Number.isFinite(r)||s<=0||r<=0)return!0}}const n=[e,...Array.from(e.querySelectorAll("*"))];let i=!1;for(const o of n){Hve(o)&&(i=!0);for(const s of Array.from(o.attributes))if(/\bNaN\b/i.test(s.value)||s.name==="style"&&/max-width:\s*0(?:px)?/i.test(s.value))return!0}return!i}const ly=[];function $8(e){return String(e??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Qve(e){return(String(e||"text").trim().split(/\s+/)[0]||"text").replace(/[^\w+.#:-]/g,"-").replace(/-+/g,"-")||"text"}function Yve(e){return e.replace(/[^\w:.+-]/g,"-").replace(/-+/g,"-")}function $L(e=`editor-${Date.now()}`,t={}){const n=Tme(t),i=n;i.__markstreamRegisteredPluginCount=ly.length,i.__markstreamHasCustomParserExtensions=!!(t.plugin?.length||t.apply?.length||ly.length);const o={"common.copy":"Copy"};let s;if(typeof t.i18n=="function")s=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const h=t.i18n;s=m=>h[m]??o[m]??m}else s=h=>o[h]??h;if(Array.isArray(t.plugin))for(const h of t.plugin){const m=h;if(Array.isArray(m)){const[g,...v]=m;typeof g=="function"&&n.use(g,...v)}else typeof m=="function"&&n.use(m)}if(Array.isArray(t.apply))for(const h of t.apply)try{h(n)}catch(m){console.error("[getMarkdown] apply function threw an error",m)}if(ly.length)for(const h of ly)if(Array.isArray(h)){const[m,...g]=h;typeof m=="function"&&n.use(m,...g)}else typeof h=="function"&&n.use(h);n.use(Ave),n.use(Gue),n.use(Vue);const r=ace,l=r.default??r;n.use(l),n.use(Uue),n.use(que),n.core.ruler.after("block","mark_fence_closed",h=>{const m=h,g=m.src,v=!!m.env?.__markstreamFinal,y=g.split(/\r?\n/);for(const b of m.tokens){if(b.type!=="fence"||!b.map||!b.markup)continue;const A=b.map[0],w=b.map[1],M=b.markup,N=M[0],T=M.length,C=y[Math.max(0,w-1)]??"";let I=0;for(;IA+1&&S>=T&&E===C.length,F=b;F.meta=F.meta??{},F.meta.unclosed=!_,F.meta.closed=!!_}}),n.renderer.rules.fence=(h,m)=>{const g=h[m],v=String(g.info??"").trim(),y=String(g.content??""),b=btoa(unescape(encodeURIComponent(y))),A=Qve(v),w=$8(A),M=Yve(`editor-${e}-${m}-${A}`),N=$8(s("common.copy"));return`
          -
          - ${$8(A.toUpperCase())} - -
          -
          -
          `};const a=/^\[(\d+)\]/,u=/^\[([^\]\n]+)\]/,c=h=>{if(!h.startsWith("["))return!1;const m=u.exec(h);if(!m)return h!=="["&&!/^\[\d+$/.test(h);const g=String(m[1]??"");return h.slice(m[0].length).startsWith("(")?!1:!/^\d+$/.test(g)},d=(h,m)=>{const g=h;if(g.src[g.pos]!=="[")return!1;const v=a.exec(g.src.slice(g.pos));if(!v)return!1;const y=g.src.slice(Math.max(0,g.pos-120),g.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(y))return!1;const b=g.src.slice(g.pos+v[0].length);if(b.startsWith("](")||b.startsWith("(")||c(b))return!1;if(!m){const A=v[1],w=g.push("reference","span",0);w.content=A,w.markup=v[0],w.raw=v[0]}return g.pos+=v[0].length,!0};n.inline.ruler.before("escape","reference",d),n.renderer.rules.reference=(h,m)=>{const v=String(h[m].content??"");return`${v}`};const f=n.use.bind(n);return n.use=((...h)=>(i.__markstreamHasCustomParserExtensions=!0,f(...h))),n}const Jve="modulepreload",Xve=function(e){return"/"+e},PL={},Qo=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let r=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");o=r(n.map(u=>{if(u=Xve(u),u in PL)return;PL[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Jve,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return o.then(r=>{for(const l of r||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};function e2e({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function GH({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:i,streamRenderVersionChanged:o=!1}){const s=`${n.settledContent}${n.streamedDelta}`;return i?n.streamedDelta&&s===e?o?{settledContent:s,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:e2e({nextContent:e,previousContent:t??s,typewriterEnabled:i}):{settledContent:e,streamedDelta:"",appended:!1}}const t2e={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function n2e(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function QH(e){const t=n2e(e);return t2e[t]??t}function i2e(e){if(!Array.isArray(e))return;const t=e.filter(i=>typeof i=="string").map(i=>QH(i)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function o2e(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const i of e){if(typeof i!="string")continue;const o=i.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function s2e(e){return o2e(e)?.join("\0")??""}function r2e(e,t){return`${s2e(e)}\0\0${i2e(t)?.join("\0")??""}`}function Ip(e,t,n=1){const i=Number(e);return Number.isFinite(i)?Math.max(n,i):t}function zL(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var l2e=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=d=>this.destroyed?()=>{}:(this.listeners.add(d),()=>{this.listeners.delete(d)}),this.enqueue=d=>{if(this.destroyed||!d)return;this.done&&(this.done=!1);const f=this.source.length>0,h=this.pendingChars<=0;if(this.source+=d,h){const m=jL();this.startedAt=f&&this.hasStarted?m-this.normalizedStartDelayMs:m,this.lastTick=m,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(d={})=>{if(!this.destroyed){if(this.done=!0,d.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(d="")=>{this.destroyed||(this.cancelLoop(),this.source=d,this.visible=d,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const d=jL();this.lastTick=d,this.startedAt||=d,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=d=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(d-this.startedAtthis.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,v=d2e(m/Math.max(.001,g/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(v-this.currentCps)*.2,this.charBudget+=this.currentCps*(h/1e3),this.charBudget<1){this.ensureLoop();return}const y=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),b=c2e(this.source.slice(this.visible.length),y,this.segmenter);b.text&&(this.visible+=b.text,this.charBudget=Math.max(0,this.charBudget-b.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:i=1e3,targetLatencyMs:o=900,catchUpLatencyMs:s=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:a=80,maxCharsPerCommit:u=80,flushOnFinish:c=!1}=e;this.minCharsPerSecond=Ip(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,Ip(i,1e3,1)),this.normalizedTargetLatencyMs=Ip(o,900,1),this.normalizedCatchUpLatencyMs=Ip(s,350,1),this.normalizedCatchUpThreshold=zL(r,600),this.normalizedStartDelayMs=zL(a,80),this.maxCommitFps=Math.trunc(Ip(l,30,1)),this.maxCharsPerCommit=Math.trunc(Ip(u,80,1)),this.flushOnFinish=c,this.segmenter=u2e(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function a2e(e={},t){const n=new l2e(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function u2e(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function c2e(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const s=Array.from(e).slice(0,t);return{text:s.join(""),graphemeCount:s.length}}let i="",o=0;for(const s of n.segment(e)){if(o>=t)break;i+=s.segment,o++}return{text:i,graphemeCount:o}}function jL(){return typeof performance<"u"?performance.now():Date.now()}function d2e(e,t,n){return Math.min(n,Math.max(t,e))}var f2e=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const HC=Symbol.for("markstream-vue:node-lifecycle");function Ikt(){}const U7=new Map;let YH="material";const n1=new Map,HL=new Map;let WC=null;function h2e(e){U7.set(e.id,e)}function p2e(e){const t=U7.get(YH);if(!t)return;const n=t.core[e];if(n)return n;const i=n1.get(t.id);if(i){const o=i[e];if(o)return o}t.loadExtended&&!n1.has(t.id)&&g2e(t)}function m2e(){var e,t;return(t=(e=U7.get(YH))==null?void 0:e.fallback)!=null?t:""}function g2e(e){return f2e(this,null,function*(){var t,n,i;if(n1.has(e.id))return(t=n1.get(e.id))!=null?t:null;let o=HL.get(e.id);return o||(o=((i=(n=e.loadExtended)==null?void 0:n.call(e))!=null?i:Promise.resolve(null)).then(s=>(n1.set(e.id,s),WC?.(),s)).catch(()=>(n1.set(e.id,null),null)),HL.set(e.id,o)),o})}const WL='',qL='',v2e={id:"material",core:{"":qL,plain:'',text:qL,javascript:'',typescript:'',jsx:'',tsx:'',html:'',css:'',scss:'',json:'',python:'',ruby:'',go:'',java:'',kotlin:'',c:'',cpp:'',cs:WL,csharp:WL,php:'',shell:'',powershell:'',sql:'',yaml:'',markdown:'',xml:'',rust:'',vue:'',mermaid:''},fallback:'',loadExtended:()=>Qo(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},y2e=Ga(0);WC=()=>{y2e.value++},h2e(v2e);const k2e={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function d4(e){var t;const n=(function(i){if(!i)return"";const o=i.trim();if(!o)return"";const[s]=o.split(/\s+/),[r]=s.split(":");return r.toLowerCase()})(e);return(t=k2e[n])!=null?t:n}function Tkt(e){const t=d4(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function Ekt(e){return p2e(d4(e))||m2e()}const UL={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var f4=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});let zr=null,ah=!1,uh=null,h4=K7;function Uv(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function V7(){try{const e=globalThis;return Uv(e?.katex)}catch{return null}}function K7(){return f4(null,null,function*(){const e=V7();if(e)return e;const t=yield Qo(()=>import("./katex-DnlPpQZa.js"),[]);try{yield Qo(()=>import("./mhchem-DtR62fUK.js"),__vite__mapDeps([0,1]))}catch{}return Uv(t)})}function JH(e){const t=Promise.resolve(e).then(n=>{var i;return uh===t&&n?(zr=(i=Uv(n))!=null?i:n,zr):null}).catch(()=>null).finally(()=>{uh===t&&(uh=null)});return uh=t,ah=!0,t}function b2e(e){h4=e,zr=null,ah=!1,uh=null}function w2e(e){b2e(K7)}function XH(){return typeof h4=="function"}function Lkt(){var e;const t=h4;if(!t||t===K7)return null;if(zr)return zr;const n=V7();if(n)return zr=n,zr;if(ah)return null;try{const i=t();return i?typeof i?.then=="function"?(JH(i),null):(zr=(e=Uv(i))!=null?e:i,zr):null}catch{return null}}function eW(){return f4(this,null,function*(){var e;const t=V7();if(t)return zr=t,zr;if(zr)return zr;if(uh)return uh;if(ah)return null;const n=h4;if(!n)return ah=!0,null;try{const i=n();if(typeof i?.then=="function")return JH(i);if(i)return zr=(e=Uv(i))!=null?e:i,ah=!0,zr}catch{}return ah=!0,null})}function tW(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let a9=null,qf=null;const $r=new Map,vc=new Map;let ov=5;const xh=new Set;function h0(){if($r.size{const{id:n,html:i,error:o}=t.data,s=$r.get(n);if(s)if($r.delete(n),clearTimeout(s.timeoutId),s.cleanup(),h0(),o)s.aborted||s.reject(new Error(o));else{const{content:r,displayMode:l}=t.data;if(r){const a=`${l?"d":"i"}:${r}`;if(vc.set(a,i),vc.size>200){const u=vc.keys().next().value;vc.delete(u)}}s.aborted||s.resolve(i)}},a9.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,i]of $r.entries())clearTimeout(i.timeoutId),i.cleanup(),i.aborted||i.reject(new Error(`Worker error: ${t.message}`));$r.clear(),C2e()}}function x2e(e,t=!0,n=2e3,i){return f4(this,null,function*(){performance.now();const o=tW(e);if(!XH()){const a=new Error("KaTeX rendering disabled");return a.name="KaTeXDisabled",a.code="KATEX_DISABLED",Promise.reject(a)}if(qf)return Promise.reject(qf);const s=`${t?"d":"i"}:${o}`,r=vc.get(s);if(r)return h0(),Promise.resolve(r);const l=a9||(qf=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),qf.name="WorkerInitError",qf.code="WORKER_INIT_ERROR",null);if(!l)return Promise.reject(qf);if($r.size>=ov){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code="WORKER_BUSY",a.busy=!0,a.inFlight=$r.size,a.max=ov,Promise.reject(a)}return new Promise((a,u)=>{if(i?.aborted){const g=new Error("Aborted");return g.name="AbortError",void u(g)}const c=Math.random().toString(36).slice(2);let d=null;const f=globalThis.setTimeout(()=>{const g=$r.get(c);if(!g)return;$r.delete(c),g.cleanup();const v=new Error("Worker render timed out");v.name="WorkerTimeout",v.code="WORKER_TIMEOUT",g.aborted||g.reject(v),h0()},n);d=()=>{const g=$r.get(c);if(!g||g.aborted)return;g.aborted=!0,g.cleanup();const v=new Error("Aborted");v.name="AbortError",u(v)},i&&i.addEventListener("abort",d,{once:!0});const h=a,m=u;$r.set(c,{resolve:g=>{h(g)},reject:g=>{m(g)},timeoutId:f,aborted:!1,cleanup:()=>{i&&d&&i.removeEventListener("abort",d),d=null}});try{l.postMessage({id:c,content:o,displayMode:t})}catch(g){const v=$r.get(c);$r.delete(c),clearTimeout(f),v?.cleanup(),v?.reject(g),h0()}})})}function Nkt(e,t=!0,n){const i=`${t?"d":"i"}:${tW(e)}`;if(vc.set(i,n),vc.size>200){const o=vc.keys().next().value;vc.delete(o)}}const S2e="WORKER_BUSY";function _2e(e=2e3,t){return $r.size{let o,s=!1,r=null,l=()=>{};const a=()=>{o&&globalThis.clearTimeout(o),xh.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{s||(s=!0,a(),n())},xh.add(l),o=globalThis.setTimeout(()=>{if(s)return;s=!0,a();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",i(u)},e),queueMicrotask(()=>h0()),t&&(r=()=>{if(s)return;s=!0,a();const u=new Error("Aborted");u.name="AbortError",i(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const rg={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Dkt(e){return f4(this,arguments,function*(t,n=!0,i={}){var o,s,r,l;if(!XH()){const g=new Error("KaTeX rendering disabled");throw g.name="KaTeXDisabled",g.code="KATEX_DISABLED",g}const a=(o=i.timeout)!=null?o:rg.timeout,u=(s=i.waitTimeout)!=null?s:rg.waitTimeout,c=(r=i.backoffMs)!=null?r:rg.backoffMs,d=(l=i.maxRetries)!=null?l:rg.maxRetries,f=Number.isFinite(d)?Math.max(0,Math.min(Math.floor(d),8)):rg.maxRetries,h=i.signal;let m=0;for(;;){if(h?.aborted){const g=new Error("Aborted");throw g.name="AbortError",g}try{return yield x2e(t,n,a,h)}catch(g){if(g?.code!==S2e||m>=f)throw g;if(m++,yield _2e(u,h).catch(()=>{}),h?.aborted){const v=new Error("Aborted");throw v.name="AbortError",v}c>0&&(yield new Promise(v=>globalThis.setTimeout(v,c*m)))}}})}function i1(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function M2e(e){var t;for(const n of e.split(/\r?\n/)){const i=n.trim();if(!i||i.startsWith("%%"))continue;const o=i.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function Ik(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),i=M2e(e);return i==="gantt"?220+28*n:i==="sequencediagram"?180+26*n:i==="classdiagram"||i==="statediagram"||i==="erdiagram"?180+24*n:i==="flowchart"||i==="graph"?170+28*n:200+22*n}function Tk(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function nW(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function Ek(e,t=360,n=500){return nW(e,t,n)}function Lk(e,t=360,n=500){return nW(e,t,n)}var I2e=Object.defineProperty,T2e=Object.defineProperties,E2e=Object.getOwnPropertyDescriptors,VL=Object.getOwnPropertySymbols,L2e=Object.prototype.hasOwnProperty,N2e=Object.prototype.propertyIsEnumerable,KL=(e,t,n)=>t in e?I2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iW=(e,t)=>{for(var n in t||(t={}))L2e.call(t,n)&&KL(e,n,t[n]);if(VL)for(var n of VL(t))N2e.call(t,n)&&KL(e,n,t[n]);return e},ZL=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const Nk=()=>Qo(()=>import("./mermaid.core-D8UeR6T-.js").then(e=>e.bp),__vite__mapDeps([2,3]));let ic=null,o1=Nk,Lg=null,qC=!1,UC=!1,Ng=0;function D2e(e){o1=e,Ng++,ic=null,Lg=null,qC=!1,UC=!1}function F2e(e){D2e(Nk)}function GL(){return typeof o1=="function"}function QL(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=iW({},t),i={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:s=>typeof t.initialize=="function"?t.initialize(s):o.initialize?o.initialize(s):void 0},T2e(n,E2e(i))}var n,i;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function YL(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const i=iW({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,i):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(i):void 0}}catch{}}function Fkt(){return ZL(this,null,function*(){if(ic)return ic;const e=(function(){try{const i=globalThis;return QL(i?.mermaid)}catch{return null}})();if(e)return ic=e,YL(ic),ic;const t=o1,n=Ng;return t?t===Nk&&qC?null:Lg||(Lg=ZL(null,null,function*(){let i;try{i=yield t()}catch(o){if(t===Nk)return n===Ng&&t===o1&&(qC=!0,(function(s){UC||(UC=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',s))})(o)),null;throw o}finally{n===Ng&&t===o1&&(Lg=null)}return n!==Ng||t!==o1?null:i?(ic=QL(i),YL(ic),ic):null}),Lg):null})}let pu=null,Uf=null;const Fa=new Map,Vf=new Map;function P8(e){for(const t of Fa.values())t.reject(e);Fa.clear(),Vf.clear()}let JL=5,XL=!1;const B2e="WORKER_BUSY",eN="MERMAID_DISABLED";function R2e(e){if(pu&&pu!==e){const n=new Error("Worker replaced");n.code="WORKER_REPLACED",P8(n)}pu=e,Uf=null;const t=e;pu.onmessage=n=>{if(pu!==t)return;const{id:i,ok:o,result:s,error:r}=n.data,l=Fa.get(i);l&&(o===!1||r?l.reject(new Error(r||"Unknown error")):l.resolve(s))},pu.onerror=n=>{var i,o;if(pu===t)if(Fa.size!==0){try{XL?console.error("[mermaidWorkerClient] Worker error:",n?.message||n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error:",n?.message||n)}catch{}P8(new Error(`Worker error: ${n.message}`))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker error (no pending):",n?.message||n)},pu.onmessageerror=n=>{var i,o;if(pu===t)if(Fa.size!==0){try{XL?console.error("[mermaidWorkerClient] Worker messageerror:",n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch{}P8(new Error("Worker messageerror"))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n)}}function oW(e,t,n,i){if(!GL()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=eN,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let s=Vf.get(o);return s||(s=(function(r,l,a=1400){if(!GL()){const c=new Error("Mermaid rendering disabled");return c.name="MermaidDisabled",c.code=eN,Promise.reject(c)}if(Uf)return Promise.reject(Uf);const u=pu||(Uf=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Uf.name="WorkerInitError",Uf.code="WORKER_INIT_ERROR",null);if(!u)return Promise.reject(Uf);if(Fa.size>=JL){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code=B2e,c.inFlight=Fa.size,c.max=JL,Promise.reject(c)}return new Promise((c,d)=>{const f=Math.random().toString(36).slice(2);let h,m=!1;const g=()=>{m||(m=!0,h!=null&&globalThis.clearTimeout(h),Fa.delete(f))},v={resolve:y=>{g(),c(y)},reject:y=>{g(),d(y)}};Fa.set(f,v);try{u.postMessage({id:f,action:r,payload:l})}catch(y){return Fa.delete(f),void d(y)}h=globalThis.setTimeout(()=>{const y=new Error("Worker call timed out");y.name="WorkerTimeout",y.code="WORKER_TIMEOUT";const b=Fa.get(f);b&&b.reject(y)},a)})})(e,t,n),Vf.set(o,s),s.then(()=>{Vf.get(o)===s&&Vf.delete(o)},()=>{Vf.get(o)===s&&Vf.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const a=new Error("Aborted");return a.name="AbortError",Promise.reject(a)}return new Promise((a,u)=>{let c=()=>{};const d=()=>l.removeEventListener("abort",c);c=()=>{d();const f=new Error("Aborted");f.name="AbortError",u(f)},l.addEventListener("abort",c,{once:!0}),r.then(f=>{d(),a(f)},f=>{d(),u(f)})})})(s,i)}function Bkt(e,t,n=1400,i){return oW("canParse",{code:e,theme:t},n,i)}function Rkt(e,t,n=1400,i){return oW("findPrefix",{code:e,theme:t},n,i)}var O2e=Object.defineProperty,$2e=Object.defineProperties,P2e=Object.getOwnPropertyDescriptors,tN=Object.getOwnPropertySymbols,z2e=Object.prototype.hasOwnProperty,j2e=Object.prototype.propertyIsEnumerable,nN=(e,t,n)=>t in e?O2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))z2e.call(t,n)&&nN(e,n,t[n]);if(tN)for(var n of tN(t))j2e.call(t,n)&&nN(e,n,t[n]);return e},$n=(e,t)=>$2e(e,P2e(t)),co=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const H2e="__global__",z8="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",VC=(()=>{const e=globalThis;if(e[z8])return e[z8];const t={scopedCustomComponents:{},revision:Ga(0)};return e[z8]=t,t})(),iN=VC.revision,W2e=Symbol("markstreamCustomComponents"),q2e=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function Vv(e){return q2e.has(String(e).trim().toLowerCase())}function U2e(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function j8(e={}){const t={};for(const[n,i]of Object.entries(e))if(i!=null){t[n]=i;for(const o of new Set([wa(n),wa(U2e(n))]))!o||Vv(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=i)}return t}function ys(e){const t=en(W2e,null);return D(()=>{var n;return iN.value,(function(i,o={}){return iN.value,$t($t($t({},j8(VC.scopedCustomComponents[H2e]||{})),j8(o)),j8((function(s){return s&&VC.scopedCustomComponents[s]||{}})(i)))})(e?.(),(n=t?.value)!=null?n:{})})}const V2e=["aria-label"],K2e={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},Z2e={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},Ni=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},zl=Ni(ut({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(k(),L("svg",Z2e,[...n[1]||(n[1]=[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),x("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(k(),L("svg",K2e,[...n[0]||(n[0]=[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,V2e))}),[["__scopeId","data-v-be21ab83"]]);zl.install=e=>{e.component(zl.__name,zl)};const G2e={class:"emoji-node"},vl=Ni(ut({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("span",G2e,B(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);vl.install=e=>{e.component(vl.__name,vl)};const Q2e=["id"],Y2e=["title"],jl=Ni(ut({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const i=document.querySelector(t);i?i.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(i,o)=>(k(),L("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[x("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+B(e.node.id)+"]",9,Y2e)],8,Q2e))}}),[["__scopeId","data-v-c1463a29"]]);jl.install=e=>{e.component(jl.__name,jl)};const sW=(()=>{try{return!1}catch{}return!1})();function H8(e){sW&&console.warn(e)}function oN(e,t="safe",n){return q7(e,t,n)}function rW(e){return Eve(e)}function W8(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function Z7(e,t="safe"){const n=String(e.tag||e.type||"").trim(),i=l9((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),W8(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),W8(r.value)]):Object.entries(o).map(([r,l])=>[r,W8(l)]):null,t,n);var o;if(!i)return;const s=rW(f0(i));return Object.keys(s).length>0?s:void 0}function sN(e,t,n=!1){const i=Object.entries(t??{}),o=i.length>0?i.map(([s,r])=>r===""?` ${s}`:` ${s}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function lg(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function q8(e,t,n,i,o,s,r=!1){const l=(function(d,f){return qH(d,f)})(e,i);if(jv.has(e.toLowerCase())||!l&&zH(e,s))return null;if(!l&&W7(e,s))return r?[sN(e,t,!0)]:[sN(e,t),...n,``];const a=q7(t,s,e),u=a.key,c=u!=null&&u!==""?u:o;if(l){const d=i[e]||i[e.toLowerCase()],f=rW(a);return Rn(d,$n($t({},f),{key:c}),n.length>0?n:void 0)}return Rn(e,$n($t({},a),{innerHTML:void 0,key:c}),n.length>0?n:void 0)}function lW(e,t){return Dve(e,t)}function Dk(e,t,n="safe"){if(!e)return[];try{return(function(s,r,l="safe"){let a=0;const u=[],c=[];for(const d of s)if(d.type==="text")(u.length>0?u[u.length-1].children:c).push(d.content);else if(d.type==="self_closing"){const f=q8(d.tagName,d.attrs||{},[],r,"ms-html-"+a++,l,!0);lg(u.length>0?u[u.length-1].children:c,f)}else if(d.type==="tag_open")u.push({tagName:d.tagName,children:[],attrs:d.attrs,autoKey:"ms-html-"+a++});else if(d.type==="tag_close"){const f=d.tagName.toLowerCase();let h=-1;for(let m=u.length-1;m>=0;m--)if(u[m].tagName.toLowerCase()===f){h=m;break}if(h!==-1)for(;u.length>h;){const m=u.pop(),g=q8(m.tagName,m.attrs||{},m.children,r,m.autoKey,l);u.length>0?lg(u[u.length-1].children,g):lg(c,g),m.tagName.toLowerCase()!==f&&u.length>h&&H8(`Auto-closing unclosed tag: <${m.tagName}>`)}else H8(`Ignoring closing tag with no matching opening tag: `)}for(;u.length>0;){const d=u.pop(),f=q8(d.tagName,d.attrs||{},d.children,r,d.autoKey,l);u.length>0?lg(u[u.length-1].children,f):lg(c,f),H8(`Auto-closing unclosed tag: <${d.tagName}>`)}return c})(UH(e),t,n)}catch(o){return i=o,sW&&console.error("Failed to parse HTML to VNodes:",i),null}var i}const J2e=["innerHTML"],Hl=Ni(ut({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=en("markstreamHtmlPolicy",void 0),i=D(()=>{var l,a;return(a=(l=t.htmlPolicy)!=null?l:n?.value)!=null?a:"safe"}),o=ys(()=>t.customId),s=ut({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=D(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(i.value==="escape")return{mode:"html",content:_1(l,i.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=Dk(l,o.value,i.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!lW(l,o.value))return{mode:"html",content:_1(l,i.value)};const a=Dk(l,o.value,i.value);return a===null?{mode:"html",content:_1(l,i.value)}:{mode:"dynamic",nodes:a}});return(l,a)=>r.value.mode==="dynamic"?(k(),L("span",{key:0,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[K(p(s),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(k(),L("span",{key:1,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},B(r.value.content),3)):(k(),L("span",{key:2,class:ze(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,J2e))}}),[["__scopeId","data-v-d17f12b0"]]);Hl.install=e=>{e.component(Hl.__name,Hl)};const X2e={class:"inline-code"},eye={key:0},Cr=Ni(ut({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=fm(),i=en("markstreamFade",void 0),o=en("markstreamTextStreamState",void 0),s=en("markstreamStreamVersion",void 0),r=D(()=>{const b=n.fade;return b===""||b===!0||b==="true"||b!==!1&&b!=="false"&&void 0}),l=D(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=D(()=>{var b;return String((b=t.node.code)!=null?b:"")}),u=D(()=>!l.value),c=D(()=>{var b;const A=(b=n["index-key"])!=null?b:n.indexKey;return A==null||A===""?"":String(A)}),d=U(t.node.code),f=U(""),h=U(0);let m;function g(){m?.(),m=void 0}function v(){g(),f.value&&(d.value=d.value+f.value,f.value="")}Ue([()=>t.node.code,c,l],([b])=>{const A=String(b??""),w=c.value,M=GH({nextContent:A,persistedContent:w?o?.get(w):void 0,currentState:{settledContent:d.value,streamedDelta:f.value},typewriterEnabled:l.value});d.value=M.settledContent,f.value=M.streamedDelta,M.appended?(h.value+=1,(function(){if(!f.value||m||!s)return;const N=s.value;m=Ue(()=>s.value,T=>{T!==N&&v()},{flush:"sync"})})()):f.value||g(),w&&o?.set(w,A)},{immediate:!0}),Xd(g);const y=D(()=>h.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(b,A)=>(k(),L("code",X2e,[u.value?(k(),L(Re,{key:0},[He(B(a.value),1)],64)):(k(),L(Re,{key:1},[d.value?(k(),L("span",eye,B(d.value),1)):ne("",!0),f.value?(k(),L("span",{key:1,class:ze(["inline-code-stream-delta",[y.value]]),onAnimationend:v},B(f.value),35)):ne("",!0)],64))]))}}),[["__scopeId","data-v-4e331c97"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const KC=U(!1),rN=U(""),lN=U("top"),p0=U(null),m0=U(null),ZC=U(null),GC=U(null),aN=U(null);let u9=null,c9=null,QC=0;function aW(){u9&&(clearTimeout(u9),u9=null),c9&&(clearTimeout(c9),c9=null)}let ay=!1,uy=null,uN=!1;function tye(e,t,n="top",i=!1,o,s){if(!e)return;const r=++QC;aW();const l=()=>co(null,null,function*(){var a,u;if(yield(function(){return co(this,null,function*(){if(!ay&&!uN&&typeof document<"u"){uy!=null||(uy=co(null,null,function*(){const[{createApp:c,h:d},{default:f}]=yield Promise.all([Qo(()=>import("./vue.runtime.esm-bundler-CnYhMsa2.js"),[]),Qo(()=>import("./Tooltip-B76-fywy.js"),[])]),h=document.createElement("div");h.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(h),c({setup:()=>()=>{var m;return d(f,{visible:KC.value,"anchor-el":p0.value,content:rN.value,placement:lN.value,id:m0.value,originX:ZC.value,originY:GC.value,isDark:(m=aN.value)!=null?m:void 0})}}).mount(h),ay=!0}));try{yield uy}catch(c){ay=!1,uy=null,uN=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",c)}}})})(),ay&&r===QC){m0.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,p0.value=e,rN.value=t,lN.value=n,ZC.value=(a=o?.x)!=null?a:null,GC.value=(u=o?.y)!=null?u:null,aN.value=typeof s=="boolean"?s:null,KC.value=!0;try{e.setAttribute("aria-describedby",m0.value)}catch{}}});i?l():u9=setTimeout(l,80)}function nye(e=!1){QC+=1,aW();const t=()=>{if(p0.value&&m0.value)try{p0.value.removeAttribute("aria-describedby")}catch{}KC.value=!1,p0.value=null,m0.value=null,ZC.value=null,GC.value=null};e?t():c9=setTimeout(t,120)}const iye={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},oye=Symbol("markstreamI18nFallback");function uW(e,t){var n;return(n=t?.[e])!=null?n:iye[e]}const YC=(e,t)=>{var n;return(n=uW(e,t))!=null?n:(function(i){return(i.split(".").pop()||i).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function cN(e,t){return{t(n){const i=uW(n,t);if(e.te&&i!=null&&!e.te(n))return YC(n,t);const o=e.t(n);return o===n&&i!=null?YC(n,t):o}}}function sye(){const e=(function(){var n,i,o;try{const s=vs(),r=oye,l=s?.provides,a=(n=s?.appContext)==null?void 0:n.provides;return(o=(i=l?.[r])!=null?i:a?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,i;try{const o=vs(),s=o?.proxy,r=s?.$t;if(typeof r=="function"){const u=s?.$te;return{t:r.bind(s),te:typeof u=="function"?u.bind(s):void 0}}const l=(i=(n=o?.appContext)==null?void 0:n.config)==null?void 0:i.globalProperties,a=l?.$t;if(typeof a=="function"){const u=l?.$te;return{t:a.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return cN(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const i=n();if(i&&typeof i.t=="function")return cN({t:i.t.bind(i),te:typeof i.te=="function"?i.te.bind(i):void 0},e)}catch{}}catch{}return{t:n=>YC(n,e)}}const cW=Symbol("ViewportPriority"),dW=Symbol("ViewportPriorityOptions"),fW=Symbol("OffscreenHeavyNodeDeferral"),rye=D(()=>!1),$h="400px";function G7(){return en(dW,void 0)}function Q7(){return en(fW,rye)}function lye(e,t){var n,i;const o=typeof window<"u"&&typeof document<"u",s=typeof t=="boolean"?U(t):t,r=o?(n=window.requestIdleCallback)!=null?n:T=>window.setTimeout(()=>T({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(i=window.cancelIdleCallback)!=null?i:T=>window.clearTimeout(T):null,a=new WeakMap;let u=1;const c=new Map,d=new Map,f=new Set;let h=null,m=null;function g(T){if(!T)return"viewport";let C=a.get(T);return C||(C=u++,a.set(T,C)),String(C)}function v(){if(h!=null){try{l?.(h)}catch{}h=null}}function y(T){if(T){const C=c.get(T);if(C&&!C.targets.size){try{C.io.disconnect()}catch{}c.delete(T)}}d.size||f.size||v()}function b(T){const C=d.get(T);if(!C)return;const I=c.get(C.bucketKey);if(!C.visible.value){C.visible.value=!0;try{C.resolve()}catch{}}try{I?.io.unobserve(T)}catch{}I?.targets.delete(T),d.delete(T),f.delete(T),y(C.bucketKey)}function A(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&h==null&&f.size&&(h=r(()=>{h=null;const T=f.values().next().value;T&&(f.delete(T),b(T),f.size&&A())},{timeout:1200}))}function w(T,C){if(!o||typeof IntersectionObserver>"u")return null;const I=(function(P,O){var R,z,H;return{root:(R=e?.(P??null))!=null?R:null,rootMargin:(z=O?.rootMargin)!=null?z:$h,threshold:(H=O?.threshold)!=null?H:0}})(T,C),S=[g((E=I).root),E.rootMargin,E.threshold].join("\0");var E;const _=c.get(S);if(_)return{key:S,bucket:_};let F;try{F=new IntersectionObserver(P=>{for(const O of P)(O.isIntersecting||O.intersectionRatio>0)&&b(O.target)},{root:I.root,rootMargin:I.rootMargin,threshold:I.threshold})}catch{return null}const q={io:F,targets:new Map};return c.set(S,q),{key:S,bucket:q}}function M(){if(o&&s.value)for(const[T,C]of Array.from(d.entries())){const I=w(T,C.opts);if(!I){b(T);continue}if(I.key===C.bucketKey)continue;const S=C.bucketKey,E=c.get(S);try{E?.io.unobserve(T)}catch{}E?.targets.delete(T),C.bucketKey=I.key,I.bucket.targets.set(T,C),I.bucket.io.observe(T),y(S)}}Ue(s,T=>{if(!T){for(const C of Array.from(d.keys()))b(C);v()}},{flush:"sync"});const N=(T,C)=>{const I=U(!1);let S,E=!1;const _=new Promise(O=>{S=()=>{E||(E=!0,O())}}),F=()=>{const O=d.get(T);if(!O)return f.delete(T),void y();const R=c.get(O.bucketKey);try{R?.io.unobserve(T)}catch{}R?.targets.delete(T),d.delete(T),f.delete(T),y(O.bucketKey)};if(!o||!s.value)return I.value=!0,S(),{isVisible:I,whenVisible:_,destroy:F};const q=w(T,C);if(!q)return I.value=!0,S(),{isVisible:I,whenVisible:_,destroy:F};const P={resolve:S,visible:I,bucketKey:q.key,opts:C};return d.set(T,P),q.bucket.targets.set(T,P),q.bucket.io.observe(T),o&&m==null&&(m=window.requestAnimationFrame(()=>{m=null,M()})),C?.allowIdle!==!1&&(f.add(T),A()),{isVisible:I,whenVisible:_,destroy:F}};return N.refresh=M,si(cW,N),N}function Y7(){var e,t;const n=en(cW,void 0);if(n)return n;const i=new WeakMap,o=new Map,s=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:h=>window.setTimeout(()=>h({didTimeout:!0,timeRemaining:()=>0}),16):null,a=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:h=>window.clearTimeout(h):null,u=()=>{if(r!=null){try{a?.(r)}catch{}r=null}},c=h=>{if(!h)return;const m=o.get(h);if(m&&!m.targets.size){try{m.io.disconnect()}catch{}o.delete(h)}},d=h=>{const m=i.get(h);if(!m)return;const g=o.get(m.bucketKey);if(!m.visible.value){m.visible.value=!0;try{m.resolve()}catch{}}try{g?.io.unobserve(h)}catch{}i.delete(h),g?.targets.delete(h),s.delete(h),c(m.bucketKey),s.size||u()},f=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&s.size&&(r=l(()=>{r=null;const h=s.values().next().value;h&&(s.delete(h),d(h),s.size&&f())},{timeout:1200}))};return(h,m)=>{const g=U(!1);let v,y=!1;const b=new Promise(M=>{v=()=>{y||(y=!0,M())}}),A=()=>{const M=i.get(h);if(!M)return s.delete(h),void(s.size||u());const N=o.get(M.bucketKey);try{N?.io.unobserve(h)}catch{}i.delete(h),N?.targets.delete(h),s.delete(h),c(M.bucketKey),s.size||u()},w=(M=>{var N,T;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const C=(F=>{var q,P;return[(q=F?.rootMargin)!=null?q:$h,(P=F?.threshold)!=null?P:0].join("\0")})(M),I=o.get(C);if(I)return{key:C,bucket:I};const S=(N=M?.rootMargin)!=null?N:$h;let E;try{E=new IntersectionObserver(F=>{for(const q of F)(q.isIntersecting||q.intersectionRatio>0)&&d(q.target)},{root:null,rootMargin:S,threshold:(T=M?.threshold)!=null?T:0})}catch{return null}const _={io:E,targets:new Set};return o.set(C,_),{key:C,bucket:_}})(m);return w?(i.set(h,{resolve:v,visible:g,bucketKey:w.key}),w.bucket.targets.add(h),w.bucket.io.observe(h),m?.allowIdle!==!1&&(s.add(h),f()),{isVisible:g,whenVisible:b,destroy:A}):(g.value=!0,v(),{isVisible:g,whenVisible:b,destroy:A})}}function aye(e,t){var n,i;const o=(i=(n=e.indexKey)!=null?n:t["index-key"])!=null?i:t.indexKey;return o==null||o===""?"":String(o)}const uye=["data-markstream-viewport-pending"],cye=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],dye={key:1,class:"image-placeholder"},fye={key:1,class:"image-node__raw-text"},hye={key:2,class:"image-shimmer-overlay"},pye={key:1,class:"image-node__raw-text"},mye={key:3,class:"image-error"},Id=Ni(ut({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,i,o;const s=e,r=t,l=U(!1),a=U(!1),u=U(""),c=U("primary"),d=U(null),f=fm(),h=en(HC,null),m=Y7(),g=G7(),v=Q7(),y=D(()=>NE(s.node.src)),b=D(()=>NE(s.fallbackSrc)),A=(o=(i=(n=vs())==null?void 0:n.vnode.el)==null?void 0:i.querySelector)==null?void 0:o.call(i,"img"),w=typeof window<"u"&&A?.getAttribute("src")===(y.value||b.value),M=U(typeof window>"u"||w||!v.value),N=Ga(null);let T="",C=null;const I=D(()=>u.value),S=D(()=>!s.lazy),E=D(()=>typeof window<"u"&&v.value&&!w),_=D(()=>!E.value||M.value),F=D(()=>_.value?I.value:""),q=D(()=>{var Te,Fe;return(Fe=(Te=g?.value.heavyBlockMargin)!=null?Te:g?.value.rootMargin)!=null?Fe:$h}),P=D(()=>!s.node.loading&&c.value!=="failed"&&u.value.length>0),O=D(()=>c.value==="failed"),R=D(()=>(!S.value||E.value&&!M.value)&&!l.value&&!a.value&&c.value!=="failed"&&u.value.length>0),z=D(()=>aye(s,f));function H(Te=z.value){Te&&d.value&&h?.reportHeight(Te,d.value.offsetHeight)}function j(Te=z.value){Te&>(()=>{H(Te)})}function Q(){C&&(clearTimeout(C),C=null)}function ae(){const Te=z.value;Te&&T!==Te&&(T&&h?.markSettled(T),Q(),T=Te,h?.markPending(Te),typeof window<"u"&&(C=window.setTimeout(()=>{T===Te&&(j(Te),W())},8e3)))}function W(){return co(this,null,function*(){const Te=T;Te&&(Q(),T="",yield gt(),H(Te),h?.markSettled(Te))})}function G(){if(c.value==="primary"&&b.value&&b.value!==u.value)return c.value="fallback",u.value=b.value,l.value=!1,a.value=!1,void j();c.value="failed",a.value=!0,r("error",u.value),j()}function oe(){l.value=!0,a.value=!1,r("load",I.value),j()}function te(Te){Te.preventDefault(),l.value&&!a.value&&r("click",[Te,I.value])}const{t:ve}=sye();return Ue([y,b,()=>s.node.loading],()=>(l.value=!1,a.value=!1,s.node.loading||y.value?(u.value=y.value,void(c.value="primary")):b.value?(u.value=b.value,void(c.value="fallback")):(u.value="",c.value="failed",void(a.value=!0))),{immediate:!0}),typeof window<"u"&&Ue([d,E],([Te,Fe],ye,Y)=>{var se;if((se=N.value)==null||se.destroy(),N.value=null,!Fe||M.value)return void(M.value=!0);if(!Te)return void(M.value=!1);let V=!0;const le=m(Te,{rootMargin:q.value,allowIdle:!1});N.value=le,M.value=le.isVisible.value,le.whenVisible.then(()=>{V&&N.value===le&&(M.value=!0)}),Y(()=>{V=!1,le.destroy(),N.value===le&&(N.value=null)})},{immediate:!0}),Ue([P,l,a,I,()=>s.lazy,_],([Te,Fe,ye,Y,se,V])=>Te&&Y&&!ye&&V?Fe?(W(),void j()):se?(ae(),void j()):void(Fe||ye||ae()):(W(),void j()),{flush:"post",immediate:!0}),ii(()=>{var Te;(Te=N.value)==null||Te.destroy(),N.value=null,(function(){const Fe=T;Fe&&(Q(),T="",h?.markSettled(Fe))})()}),(Te,Fe)=>{var ye,Y,se,V,le;return k(),L("span",{ref_key:"rootRef",ref:d,class:"image-node-container","data-markstream-viewport-pending":E.value&&!M.value?"true":void 0},[P.value?(k(),L("img",{key:0,src:F.value||void 0,alt:String((Y=(ye=s.node.alt)!=null?ye:s.node.title)!=null?Y:""),title:String((V=(se=s.node.title)!=null?se:s.node.alt)!=null?V:""),class:ze(["image-node__img",{"is-loading":!S.value&&!l.value,"is-loaded":S.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:s.lazy?"lazy":void 0,fetchpriority:S.value?"high":void 0,decoding:S.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(le=s.node.alt)!=null?le:p(ve)("image.preview"),onError:G,onLoad:oe,onClick:te},null,42,cye)):ne("",!0),e.node.loading&&!a.value?(k(),L("span",dye,[s.usePlaceholder?Qn(Te.$slots,"placeholder",{key:0,node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[0]||(Fe[0]=x("span",{class:"image-shimmer"},null,-1))],!0):(k(),L("span",fye,B(e.node.raw),1))])):ne("",!0),R.value&&!e.node.loading?(k(),L("span",hye,[s.usePlaceholder?Qn(Te.$slots,"placeholder",{key:0,node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[1]||(Fe[1]=x("span",{class:"image-shimmer"},null,-1))],!0):(k(),L("span",pye,B(e.node.raw),1))])):ne("",!0),O.value?(k(),L("span",mye,[Qn(Te.$slots,"error",{node:s.node,displaySrc:I.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[Fe[2]||(Fe[2]=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[x("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),x("span",null,B(p(ve)("image.loadError")),1)],!0)])):ne("",!0)],8,uye)}}}),[["__scopeId","data-v-046e82ac"]]);Id.install=e=>{e.component(Id.__name,Id)};const gye={key:2},qu=ut({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamHtmlPolicy",void 0),o=en("markstreamNestedRendererProps",void 0),s=D(()=>{var m;return(m=i?.value)!=null?m:"safe"}),r=D(()=>{var m,g;const v=(m=o?.value)!=null?m:{};return $n($t({},v),{customId:(g=t.customId)!=null?g:v.customId,htmlPolicy:s.value})}),l=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1}),a=D(()=>t.components[String(t.node.type)]),u=D(()=>!!(a.value&&n.value[t.node.type]&&!Vv(String(t.node.type)))),c=D(()=>u.value?Z7(t.node,s.value):void 0),d=D(()=>Array.isArray(t.node.children)&&t.node.children.length>0),f=D(()=>{var m;return String((m=t.node.content)!=null?m:"")}),h=D(()=>{var m,g;return String((g=(m=t.node.content)!=null?m:t.node.raw)!=null?g:"")});return(m,g)=>a.value&&u.value?(k(),de(Po(a.value),ci({key:0},c.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:ce(()=>[d.value?(k(),de(p(l),ci({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):f.value?(k(),de(p(l),ci({key:1},r.value,{content:f.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):a.value?(k(),de(Po(a.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(k(),L("span",gye,B(h.value),1)):ne("",!0)}}),dN=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function vye(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return $n($t($t({},dN),n),{enabled:(t=n.enabled)==null||t})}return $t({},dN)}function J7(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,i=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=i}function hW(e){var t,n;const i=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(i.length<3)return"";const o=i[0];if(o!=="`"&&o!=="~"||i[1]!==o||i[2]!==o)return"";let s=3;for(;i[s]===o;)s+=1;return i.slice(s).trim()}function fN(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function yye(e){var t;return e.diff===!0||fN(e.language)||fN(hW(String((t=e.raw)!=null?t:"")))}function kye(e,t,n){const i=(function(o){const s=hW(o);if(!s)return"";const r=s.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const a of l){const u=a.includes(":")?a.slice(a.indexOf(":")+1):a;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:i||t,caption:i?n?`Diff / ${t}`:t:""}}const bye=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],wye={key:0,translate:"no",class:"markstream-pre__diff-code"},Cye={class:"markstream-pre__diff-pane-content"},Aye={class:"markstream-pre__diff-number","aria-hidden":"true"},xye={class:"markstream-pre__diff-content"},Sye={class:"markstream-pre__diff-content-inner"},_ye={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},Mye=["textContent"],Iye=["textContent"],cl=ut({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(te,ve){const Te=String(te??"");return ve?Te:Te.replace(/\r\n$|\n$|\r$/,"")}const i=D(()=>{var te,ve,Te;const Fe=String((ve=(te=t.node)==null?void 0:te.language)!=null?ve:"");return String((Te=String(Fe).split(/\s+/g)[0])!=null?Te:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=D(()=>`language-${i.value}`),s=D(()=>{var te;return t.loading===!0||((te=t.node)==null?void 0:te.loading)===!0}),r=D(()=>{var te;return n((te=t.node)==null?void 0:te.code,s.value)});let l="",a=1;const u=D(()=>(function(te){let ve=0,Te=1;te.startsWith(l)&&(ve=l.length,Te=a,ve>0&&te[ve-1]==="\r"&&te[ve]===` -`&&ve++);for(let Fe=ve;Fer.value.split(/\r\n|\n|\r/));let d=0,f="";const h=D(()=>{const te=u.value;te{var te;return t.showLineNumbers===!0&&((te=t.node)==null?void 0:te.diff)===!0}),g=D(()=>m.value&&t.diffInline===!0),v=D(()=>{const te=Number(t.reservedHeightPx);if(!Number.isFinite(te)||te<=0)return;const ve=`${Math.ceil(te)}px`;return s.value?{maxHeight:ve,overflow:"auto"}:{height:ve,minHeight:ve,maxHeight:ve,overflow:"auto"}}),y=["diff ","index ","--- ","+++ ","@@ "];function b(te){return String(te??"").trim().length===0}function A(te,ve="context",Te={}){const Fe=b(te);return{code:te,kind:Fe&&ve!=="hunk"&&ve!=="spacer"&&!Te.preserveBlankKind?"context":ve,empty:Fe}}function w(te){const ve=n(te,s.value);return ve?ve.split(/\r\n|\n|\r/):[]}function M(te,ve){return!b(te[ve])||vey.some(Te=>ve.startsWith(Te)))}function I(te,ve){return ve||!te.startsWith(" ")||te.startsWith(" ")?te:` ${te}`}function S(te,ve){const Te=te.length,Fe=ve.length,ye=[];let Y=0;for(;Y=Y&&le>=Y&&te[V]===ve[le];)se.unshift({originalIndex:V,modifiedIndex:le}),V--,le--;const Se=V-Y+1,be=le-Y+1;if(Se<=0||be<=0||s.value||(Se+1)*(be+1)>15e5)return ye.concat(se);const he=be+1,re=new Uint32Array((Se+1)*(be+1));for(let Ce=Se-1;Ce>=0;Ce--)for(let De=be-1;De>=0;De--){const ie=Ce*he+De;if(te[Y+Ce]===ve[Y+De])re[ie]=re[(Ce+1)*he+De+1]+1;else{const me=re[(Ce+1)*he+De],je=re[Ce*he+De+1];re[ie]=me>=je?me:je}}const J=[];let fe=0,ke=0;for(;fe=re[fe*he+ke+1]?fe++:ke++;return ye.concat(J,se)}function E(te){var ve;const Te=(function(){var le,Se;const be=t.diffHideUnchangedRegions;if(be==null||be===!1)return null;const he=be===!0?{}:be;return he.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((le=he.contextLineCount)!=null?le:2)),minimumLineCount:Math.max(1,Math.floor((Se=he.minimumLineCount)!=null?Se:4))}})();if(!Te||te.length<1||te.length>2||te.length===2&&te[0].lines.length!==te[1].lines.length)return te;const Fe=te[0].lines,ye=(ve=te[1])==null?void 0:ve.lines,Y=le=>Fe[le].kind==="context"&&(ye===void 0||ye[le].kind==="context"&&Fe[le].code===ye[le].code),se=[];let V=0;for(;V=Te.minimumLineCount){const be=le+(le===0?0:Te.contextLineCount),he=Se-(Se===Fe.length?0:Te.contextLineCount);he-be>=Te.minimumLineCount&&se.push({start:be,end:he})}V===le&&V++}return se.length?te.map((le,Se)=>{const be=[];let he=0;for(const re of se)be.push(...le.lines.slice(he,re.start)),be.push({code:Se===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${le.key}-collapsed-${re.start}-${re.end}`,number:""}),he=re.end;return be.push(...le.lines.slice(he)),$n($t({},le),{lines:be})}):te}const _=D(()=>{var te,ve,Te,Fe;if(!m.value)return[];const ye=(function(Se){const be=Se.some(re=>N(re)),he=Se.some(re=>T(re));return be&&he||(function(){var re,J,fe,ke;if(i.value==="diff")return!0;const Ce=(ke=(fe=String((J=(re=t.node)==null?void 0:re.raw)!=null?J:"").split(/\r?\n/,1)[0])==null?void 0:fe.trim())!=null?ke:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(Ce)})()&&(be||he)})(c.value),Y=(function(){var Se,be;return((Se=t.node)==null?void 0:Se.originalCode)!=null||((be=t.node)==null?void 0:be.updatedCode)!=null})();if(g.value){const Se=Y?(function(be,he){const re=w(be),J=w(he),fe=S(re,J);if(fe.length>0){const je=[];let Ze=0,lt=0;for(const ft of fe){for(;Ze=Ce&&ie>=Ce&&re[De]===J[ie];)me.unshift($n($t({},A(J[ie])),{key:`inline-suffix-${ie}`,number:ie+1})),De--,ie--;for(let je=Ce;je<=De;je++)ke.push($n($t({},A(re[je],"removed",{preserveBlankKind:M(re,je)})),{key:`inline-removed-source-${je}`,number:je+1}));for(let je=Ce;je<=ie;je++)ke.push($n($t({},A(J[je],"added",{preserveBlankKind:M(J,je)})),{key:`inline-added-source-${je}`,number:je+1}));return ke.concat(me)})((te=t.node)==null?void 0:te.originalCode,(ve=t.node)==null?void 0:ve.updatedCode):(function(be){const he=[];let re=1,J=1;const fe=C(be);for(const[ke,Ce]of be.entries())if(Ce.startsWith("@@")){const De=Ce.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);De&&(re=Number(De[1]),J=Number(De[2])),he.push($n($t({},A(Ce,"hunk")),{key:`inline-hunk-${ke}`,number:""}))}else if(N(Ce))he.push($n($t({},A(I(Ce.slice(1),fe),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${ke}`,number:re++}));else if(T(Ce))he.push($n($t({},A(I(Ce.slice(1),fe),"added",{preserveBlankKind:!0})),{key:`inline-added-${ke}`,number:J++}));else{const De=fe&&Ce.startsWith(" ")?Ce.slice(1):Ce;he.push($n($t({},A(De)),{key:`inline-context-${ke}`,number:J})),re++,J++}return he})(c.value);return E([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:Se}])}if(!ye&&Y)return(function(Se,be){const he=w(Se),re=w(be),J=S(he,re),fe=[],ke=[];let Ce=0,De=0,ie=0;const me=(je,Ze)=>{const lt=Math.max(je-Ce,Ze-De);for(let ft=0;ft$n($t({},Se),{key:`original-${be}`,number:be+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:V.map((Se,be)=>$n($t({},Se),{key:`modified-${be}`,number:be+1}))}])}),F=D(()=>{var te,ve;if(t.showLineNumbers!==!0)return;let Te=m.value?1:u.value;if(m.value){Te=Math.max(Te,w((te=t.node)==null?void 0:te.originalCode).length,w((ve=t.node)==null?void 0:ve.updatedCode).length);for(const ye of _.value)for(const Y of ye.lines)typeof Y.number=="number"&&(Te=Math.max(Te,Y.number))}const Fe=`${Math.max(2,String(Te).length)}ch`;return{"--markstream-pre-line-number-width":Fe,"--markstream-pre-diff-line-number-width":Fe,"--markstream-code-padding-left":"calc(var(--markstream-pre-line-number-padding-left, 2ch) + var(--markstream-pre-line-number-width, 2ch) + var(--markstream-pre-line-number-padding-right, 1ch) + var(--markstream-pre-line-number-separator-width, 2px) + var(--markstream-pre-line-number-gap-to-code, 1ch))"}}),q=D(()=>_.value.some(te=>te.lines.some(ve=>ve.kind==="collapsed"))),P=D(()=>{const te=i.value;return te?`Code block: ${te}`:"Code block"}),O=U(null),R=U([]);let z=null,H=!1,j=null;function Q(te){const ve=Number.parseFloat(String(te??""));return Number.isFinite(ve)&&ve>0?ve:0}function ae(te,ve){var Te;if(!te)return ve;if(te.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const Fe=te.querySelector(".markstream-pre__diff-content"),ye=Fe?.getBoundingClientRect(),Y=(Te=ye?.height)!=null?Te:0;return Math.max(ve,Math.ceil(Y))}function W(){H||typeof window>"u"||(z!=null&&window.cancelAnimationFrame(z),z=window.requestAnimationFrame(()=>{z=null,H||(function(){var te,ve;z=null;const Te=O.value;if(!Te||!m.value||g.value||!Te.classList.contains("is-wrap"))return void(R.value.length&&(R.value=[]));const Fe=(function(be){const he=window.getComputedStyle(be),re=Q(he.getPropertyValue("--markstream-pre-diff-line-height"));if(re>0)return re;const J=Q(he.lineHeight);return J>0?J:18})(Te),ye=Array.from(Te.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),Y=Array.from(Te.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),se=Math.max(ye.length,Y.length),V=[];for(let be=0;be{const re=Se[he];return re&&Math.abs(be.rowHeight-re.rowHeight)<=.5&&Math.abs(be.originalHeight-re.originalHeight)<=.5&&Math.abs(be.modifiedHeight-re.modifiedHeight)<=.5})||(R.value=V)})()}))}function G(te){j?.disconnect(),j=null,te&&m.value&&!g.value&&typeof ResizeObserver<"u"&&(j=new ResizeObserver(()=>{W()}),j.observe(te))}function oe(te,ve){const Te=R.value[te];if(!Te)return;const Fe=ve==="original"?Te.originalHeight:Te.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(Te.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(Fe)}px`}}return Ue(O,te=>{G(te),gt(()=>W())},{flush:"post"}),Ue([m,g,_],()=>{G(O.value),gt(()=>W())},{flush:"post",immediate:!0}),ii(()=>{H=!0,z!=null&&(window.cancelAnimationFrame(z),z=null),j?.disconnect(),j=null}),(te,ve)=>(k(),L("pre",{ref_key:"preRef",ref:O,style:on([v.value,F.value]),class:ze([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":m.value,"markstream-pre--diff-inline":g.value,"markstream-pre--diff-collapsed":q.value}]),"aria-busy":s.value,"aria-label":P.value,"data-language":i.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[m.value?(k(),L("code",wye,[(k(!0),L(Re,null,xt(_.value,Te=>(k(),L("span",{key:Te.key,class:ze(["markstream-pre__diff-pane",Te.className])},[x("span",Cye,[(k(!0),L(Re,null,xt(Te.lines,(Fe,ye)=>(k(),L("span",{key:Fe.key,class:ze(["markstream-pre__diff-line",[`markstream-pre__diff-line--${Fe.kind}`,{"markstream-pre__diff-line--empty":Fe.empty}]]),style:on(oe(ye,Te.key))},[ve[0]||(ve[0]=x("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),x("span",Aye,B(Fe.number),1),x("span",xye,[x("span",Sye,B(Fe.code),1)])],6))),128))])],2))),128))])):(k(),L(Re,{key:1},[t.showLineNumbers?(k(),L("span",_ye,[x("span",{class:"markstream-pre__line-numbers-text",textContent:B(h.value)},null,8,Mye)])):ne("",!0),x("code",{translate:"no",class:"markstream-pre__code",textContent:B(r.value)},null,8,Iye)],64))],14,bye))}});cl.install=e=>{e.component(cl.__name,cl)};const Wo=Ni(ut({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=fm(),i=en("markstreamFade",void 0),o=en("markstreamTextStreamState",void 0),s=en("markstreamStreamVersion",void 0),r=D(()=>{const M=n.fade;return M===""||M===!0||M==="true"||M!==!1&&M!=="false"&&void 0}),l=D(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=D(()=>{var M;const N=(M=n["index-key"])!=null?M:n.indexKey;return N==null||N===""?"":String(N)}),u=U(t.node.content),c=U(""),d=U(0),f=U(t.node.content);let h;const m=U(null),g=U(null);let v="",y=null;function b(){h?.(),h=void 0}function A(){b(),c.value&&(u.value=u.value+c.value,c.value="")}Ue([u,m,g],function(){var M,N;const T=m.value;if(!T)return;const C=String((M=u.value)!=null?M:""),I=g.value;return y||(y=T.firstChild,v=(N=y?.data)!=null?N:""),C.startsWith(v)?!y&&C?(T.textContent=C,y=T.firstChild,void(v=C)):void(C.length>v.length&&I&&(I.appendChild(document.createTextNode(C.slice(v.length))),v=C)):(T.textContent=C,y=T.firstChild,I&&(I.textContent=""),void(v=C))},{immediate:!0}),Ue([()=>t.node.content,a,l],([M])=>{const N=String(M??""),T=a.value,C=GH({nextContent:N,persistedContent:T?o?.get(T):void 0,currentState:{settledContent:u.value,streamedDelta:c.value},typewriterEnabled:l.value});u.value=C.settledContent,c.value=C.streamedDelta,C.appended?(d.value+=1,(function(){if(!c.value||h||!s)return;const I=s.value;h=Ue(()=>s.value,S=>{S!==I&&A()},{flush:"sync"})})()):c.value||b(),T&&o?.set(T,N)},{immediate:!0}),Xd(b);const w=D(()=>d.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(M,N)=>(k(),L("span",{class:ze([[e.node.center?"text-node-center":""],"text-node"])},[di(x("span",{ref_key:"settledTextEl",ref:m},B(f.value),513),[[Zo,u.value!==""]]),di(x("span",{ref_key:"settledAppendsEl",ref:g},null,512),[[Zo,u.value!==""]]),c.value?(k(),L("span",{key:0,class:ze(["text-node-stream-delta",[w.value]]),onAnimationend:A},B(c.value),35)):ne("",!0)],2))}}),[["__scopeId","data-v-fd79037c"]]);function Dg(e,t,n){return ut({name:e,inheritAttrs:!1,setup(i,{attrs:o,slots:s}){var r,l;const a=Y7(),u=G7(),c=Q7(),d=typeof window<"u"&&((l=(r=vs())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,f=U(typeof window>"u"||d||!c.value),h=Ga(null);let m=null;function g(v){const y=v&&"$el"in v?v.$el:v;h.value=y instanceof HTMLElement?y:null}return typeof window<"u"&&Ue([h,c],([v,y],b,A)=>{if(m?.destroy(),m=null,!y||f.value)return void(f.value=!0);if(!v)return;let w=!0;const M=a(v,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});m=M,f.value=M.isVisible.value,M.whenVisible.then(()=>{w&&m===M&&(f.value=!0)}),A(()=>{w=!1,M.destroy(),m===M&&(m=null)})},{immediate:!0}),ii(()=>{m?.destroy(),m=null}),()=>Rn(f.value?t:n,$n($t({},o),{ref:g}),s)}})}Wo.install=e=>{e.component(Wo.__name,Wo)};const Fk=ut({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var i,o,s,r,l,a,u;const c=d4(String((o=(i=n.node)==null?void 0:i.language)!=null?o:"")),d=UL[c]||(c?c.charAt(0).toUpperCase()+c.slice(1):UL[""]),f=yye(n.node),h=kye(String((r=(s=n.node)==null?void 0:s.raw)!=null?r:""),d,f),m=n.monacoOptions,g=f&&((l=n.estimatedDiffInline)!=null?l:J7(m??{},typeof window>"u"?0:window.innerWidth)),v=m?.diffAppearance,y=v==="dark"||v!=="light"&&n.isDark===!0,b=typeof m?.fontSize=="number"&&Number.isFinite(m.fontSize)&&m.fontSize>0?m.fontSize:12,A=typeof m?.lineHeight=="number"&&Number.isFinite(m.lineHeight)&&m.lineHeight>0?m.lineHeight:b===12?18:Math.max(12,Math.round(1.5*b)),w=typeof m?.tabSize=="number"&&Number.isFinite(m.tabSize)&&m.tabSize>0?m.tabSize:4,M=f?0:8,N=typeof((a=m?.padding)==null?void 0:a.top)=="number"&&Number.isFinite(m.padding.top)&&m.padding.top>=0?m.padding.top:M,T=typeof((u=m?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(m.padding.bottom)&&m.padding.bottom>=0?m.padding.bottom:M,C=typeof m?.fontFamily=="string"?m.fontFamily.trim():"",I=$t($t({fontSize:`${b}px`,lineHeight:`${A}px`,tabSize:w,paddingTop:`${N}px`,paddingBottom:`${T}px`,"--markstream-pre-line-number-top":`${N}px`},f?{"--markstream-pre-diff-line-height":`${A}px`}:{}),C?{"--markstream-code-font-family":C}:{}),S=()=>Rn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[Rn("svg",{class:"action-icon",width:"14",height:"14"})]),E=n.isShowPreview!==!1&&(c==="html"||c==="svg"),_=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||E&&n.showPreviewButton!==!1,F=P=>{if(P!=null)return typeof P=="number"?`${P}px`:String(P)},q=$t($t($t({"--markstream-code-layout-character-width":"1ch"},F(n.minWidth)?{minWidth:F(n.minWidth)}:{}),F(n.maxWidth)?{maxWidth:F(n.maxWidth)}:{}),f?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--markstream-code-fallback-bg, var(--code-bg, #fff))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return Rn("div",$n($t({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":y,"is-diff":f,"is-plain-text":c===""||c==="plaintext"||c==="text"},t.class],style:[q,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:Rn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[Rn("div",{class:"code-header-main",style:{minWidth:0,flex:"1 1 auto",display:"flex",alignItems:"center",gap:"var(--ms-gap-header-main, 0.625rem)",overflow:"hidden"}},[Rn("span",{class:"icon-slot h-4 w-4 flex-shrink-0","aria-hidden":"true",style:{display:"inline-flex",width:"1rem",height:"1rem",flex:"0 0 auto"}}),Rn("div",{class:"code-header-copy",style:{minWidth:0,display:"grid",gap:"2px"}},[Rn("div",{class:"code-header-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--ms-text-label, 0.75rem)",fontWeight:"500",color:"var(--code-action-fg)"}},h.title),h.caption?Rn("div",{class:"code-header-caption",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.75rem",color:"var(--code-line-number)"}},h.caption):null])]),Rn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[f?Rn("div",{class:"code-diff-stats","aria-hidden":"true"},[Rn("span",{class:"code-diff-stat removed"},"-0"),Rn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:S(),n.showCollapseButton===!1?null:S(),_?Rn("div",{class:"relative"},[S()]):null])]),Rn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[Rn(cl,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:f?void 0:n.estimatedContentHeightPx,diffInline:g,diffHideUnchangedRegions:f?vye(m?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:I,"data-markstream-code-loading":"1"})]),Rn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[Rn("div",{class:"loading-skeleton"},[Rn("div",{class:"skeleton-line"}),Rn("div",{class:"skeleton-line"}),Rn("div",{class:"skeleton-line short"})])]),Rn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),U8=Dg("ViewportDeferredCodeBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./CodeBlockNode-CAOmb2VU.js"),__vite__mapDeps([4,5]))).default}catch(e){return console.warn('[markstream-vue] Failed to load the enhanced CodeBlockNode chunk; falling back to preformatted code rendering. Enhanced code blocks require the optional "stream-diffs" peer (or "stream-monaco" as a fallback).',e),cl}}),loadingComponent:Fk,delay:0,suspensible:!1}),Fk),Qa=_u(()=>co(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,i,o,s;return Rn(Wo,$n($t({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield eW(),(yield Qo(()=>import("./index7-Dsz_tCKU.js"),[])).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,i,o,s;return Rn(Wo,$n($t({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))}})),pW=_u(()=>co(null,null,function*(){try{return yield eW(),(yield Qo(()=>import("./index6-Cg8sgn_Z.js"),[])).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,i,o;return Rn(Wo,$n($t({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(i=e.node.content)!=null?i:""}$$`}}))}})),Wr=Ni(ut({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(k(),L("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=i=>t.$emit("click",i,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=i=>t.$emit("mouseEnter",i,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=i=>t.$emit("mouseLeave",i,e.node.id,e.messageId,e.threadId))},B(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Wr.install=e=>{e.component(Wr.__name,Wr)};const Tye={class:"superscript-node"},yl=Ni(ut({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,footnote_reference:jl,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,emoji:vl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("sup",Tye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"superscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);yl.install=e=>{e.component(yl.__name,yl)};const Eye={class:"subscript-node"},kl=Ni(ut({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,footnote_reference:jl,strikethrough:Ur,highlight:Wl,insert:bl,superscript:yl,emoji:vl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("sub",Eye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"subscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);kl.install=e=>{e.component(kl.__name,kl)};const Lye={class:"strong-node"},qr=Ni(ut({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("strong",Lye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"strong"}-${l}`,components:i.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);qr.install=e=>{e.component(qr.__name,qr)};const Nye={class:"strikethrough-node"},Ur=Ni(ut({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("del",Nye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"strikethrough"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);Ur.install=e=>{e.component(Ur.__name,Ur)};const Dye=["href","title","aria-label","aria-hidden","target","rel"],Fye=["aria-hidden"],Bye={class:"link-text-wrapper relative inline-flex"},Rye={class:"leading-[normal] link-text"},Vr=Ni(ut({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=en("markstreamShowTooltips",void 0),i=D(()=>{const y=n?.value;return typeof y=="boolean"?y:t.showTooltip}),o=D(()=>{var y,b,A,w,M;const N=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",T=(y=t.animationOpacity)!=null?y:.35,C=Math.max(.12,Math.min(.5*T,T)),I={"--underline-height":`${(b=t.underlineHeight)!=null?b:2}px`,"--underline-bottom":N,"--underline-opacity":String(T),"--underline-rest-opacity":String(C),"--underline-duration":`${(A=t.animationDuration)!=null?A:1.6}s`,"--underline-timing":(w=t.animationTiming)!=null?w:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(M=t.animationIteration)!=null?M:"infinite"};return t.color&&(I["--link-color"]=t.color),I}),s=ys(()=>t.customId),r=D(()=>$t({text:Wo,strong:qr,strikethrough:Ur,emphasis:Kr,image:Id,html_inline:Hl,inline_code:Cr},s.value)),l=fm(),a=D(()=>{var y,b;const A=(y=t.node)==null?void 0:y.attrs;if(!A||typeof A!="object")return{};const w={};if(Array.isArray(A))for(const M of A)Array.isArray(M)&&M[0]&&(w[String(M[0])]=String((b=M[1])!=null?b:""));else for(const[M,N]of Object.entries(A))M&&N!=null&&N!==!1&&(w[M]=N===!0?"":String(N));return oN(w,"safe","a")}),u=D(()=>$t($t({},l),a.value)),c=D(()=>{var y,b;return oN({href:String((b=(y=t.node)==null?void 0:y.href)!=null?b:"")},"safe","a").href}),d=D(()=>{if(!c.value)return;const y=u.value.target;return(typeof y=="string"?y.trim():String(y??"").trim())||(ype(c.value)?"_blank":void 0)}),f=D(()=>{var y;return String((y=d.value)!=null?y:"").trim().toLowerCase()==="_blank"}),h=D(()=>{if(!c.value)return;const y=u.value.rel,b=new Set((typeof y=="string"?y:String(y??"")).split(/\s+/).filter(Boolean)),A=new Set(Array.from(b).filter(w=>w.toLowerCase()!=="opener"));return f.value&&(A.add("noopener"),A.add("noreferrer")),A.size>0?Array.from(A).join(" "):void 0}),m=D(()=>{const y=$t({},u.value);return delete y.title,delete y.href,delete y.target,delete y.rel,y});function g(){i.value&&nye()}const v=D(()=>{var y,b;const A=(y=t.node)==null?void 0:y.title;return typeof A=="string"&&A.trim().length>0?A:String((b=c.value)!=null?b:"")});return(y,b)=>{var A,w;return e.node.loading?(k(),L("span",ci({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},p(l),{style:o.value}),[x("span",Bye,[x("span",Rye,[K(p(Wo),{class:"leading-[normal] link-text",node:{type:"text",content:String((A=e.node.text)!=null?A:""),raw:String((w=e.node.text)!=null?w:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),b[1]||(b[1]=x("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,Fye)):(k(),L("a",ci({key:0,class:"link-node",href:c.value,title:i.value?"":v.value,"aria-label":`Link: ${v.value}`,"aria-hidden":e.node.loading?"true":"false",target:d.value,rel:h.value},m.value,{style:o.value,onMouseenter:b[0]||(b[0]=M=>(function(N){var T,C,I,S;if(!i.value)return;const E=N,_=E?.clientX!=null&&E?.clientY!=null?{x:E.clientX,y:E.clientY}:void 0,F=((T=t.node)==null?void 0:T.title)||((C=c.value)!=null&&C.includes("xn--")&&((S=(I=t.node)==null?void 0:I.text)!=null&&S.includes("://"))?t.node.text:c.value)||"";tye(N.currentTarget,F,"top",!1,_)})(M)),onMouseleave:g}),[(k(!0),L(Re,null,xt(e.node.children,(M,N)=>(k(),de(p(qu),{key:`${e.indexKey||"emphasis"}-${N}`,components:r.value,node:M,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${N}`},null,8,["components","node","custom-id","index-key"]))),128))],16,Dye))}}}),[["__scopeId","data-v-367e6ca4"]]);Vr.install=e=>{e.component(Vr.__name,Vr)};const Oye={class:"insert-node"},bl=Ni(ut({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("ins",Oye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"insert"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);bl.install=e=>{e.component(bl.__name,bl)};const $ye={class:"highlight-node"},Wl=Ni(ut({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,emphasis:Kr,strikethrough:Ur,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("mark",$ye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"highlight"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);Wl.install=e=>{e.component(Wl.__name,Wl)};const Pye={class:"emphasis-node"},Kr=Ni(ut({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,html_inline:Hl,strong:qr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,footnote_reference:jl,math_inline:Qa,reference:Wr},n.value));return(o,s)=>(k(),L("em",Pye,[(k(!0),L(Re,null,xt(e.node.children,(r,l)=>(k(),de(p(qu),{key:`${e.indexKey||"emphasis"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Kr.install=e=>{e.component(Kr.__name,Kr)};const zye={class:"hard-break"},Td=Ni(ut({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(k(),L("br",zye))}),[["__scopeId","data-v-50c58f70"]]);Td.install=e=>{e.component(Td.__name,Td)};const sv=ut({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=Bt({checkbox:zl,checkbox_input:zl,emoji:vl,emphasis:Kr,hardbreak:Td,highlight:Wl,inline_code:Cr,insert:bl,link:Vr,reference:Wr,strikethrough:Ur,strong:qr,subscript:kl,superscript:yl,text:Wo}),i=ys(()=>t.customId),o=D(()=>{const s=i.value;return Object.keys(s).length>0?$t($t({},n),s):n});return(s,r)=>(k(!0),L(Re,null,xt(e.nodes,(l,a)=>(k(),de(p(qu),{key:a,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${a}`},null,8,["components","node","custom-id","index-key"]))),128))}});function JC(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(JC)}function Bk(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(JC))return e;if(!t||e.length!==1)return null;const i=e[0];if(i?.type!=="paragraph"||!Array.isArray(i.children))return null;const o=i.children;return(n||o.length>0)&&o.every(JC)?o:null}function Ph(e){var t,n;if(!e?.length)return null;let i="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;i+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return i}const jye=["cite"],Hye={key:0,dir:"auto",class:"paragraph-node"},Wye=["custom-id"],d9=Ni(ut({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ys(()=>t.customId),i=D(()=>!!n.value.paragraph),o=D(()=>!!n.value.text),s=D(()=>Bk(t.node.children,!i.value)),r=D(()=>t.fade!==!1||o.value?null:Ph(s.value));return si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade)),(l,a)=>(k(),L("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[s.value?(k(),L("p",Hye,[r.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(r.value),9,Wye)):(k(),de(p(sv),{key:1,nodes:s.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(k(),de(p(wl),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:a[0]||(a[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,jye))}}),[["__scopeId","data-v-abfecebc"]]);d9.install=e=>{e.component(d9.__name,d9)};const qye={class:"definition-list"},Uye={class:"definition-term"},Vye={class:"definition-desc"},f9=Ni(ut({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(k(),L("dl",qye,[(k(!0),L(Re,null,xt(t.node.items,(o,s)=>(k(),L(Re,{key:s},[x("dt",Uye,[K(p(wl),{"index-key":`definition-term-${t.indexKey}-${s}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),x("dd",Vye,[K(p(wl),{"index-key":`definition-desc-${t.indexKey}-${s}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[1]||(i[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);f9.install=e=>{e.component(f9.__name,f9)};const Kye=["href","title"],g0=Ni(ut({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(i){var o;if(i.preventDefault(),typeof document>"u")return;const s=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(s);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(i,o)=>(k(),L("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,Kye))}}),[["__scopeId","data-v-e1eb37b6"]]);g0.install=e=>{e.component(g0.__name,g0)};const Zye=["id"],Gye={class:"flex-1"},h9=ut({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(k(),L("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[x("div",Gye,[K(p(wl),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,Zye))}});h9.install=e=>{e.component(h9.__name,h9)};const Qye=["custom-id"],XC=Ni(ut({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamFade",void 0),o=D(()=>i?.value!==!1||n.value.text?null:Ph(t.node.children)),s=D(()=>$t({text:Wo,inline_code:Cr,link:Vr,image:Id,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,checkbox:zl,checkbox_input:zl,footnote_reference:jl,hardbreak:Td,math_inline:Qa,reference:Wr},n.value));return(r,l)=>(k(),de(Po(`h${e.node.level}`),ci({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:ce(()=>[o.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(o.value),9,Qye)):(k(!0),L(Re,{key:1},xt(e.node.children,(a,u)=>(k(),de(p(qu),{key:u,components:s.value,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),p4=XC;p4.install=e=>{e.component(XC.__name,XC)};const Yye={key:0,dir:"auto",class:"paragraph-node"},Jye=["custom-id"],Xye={dir:"auto",class:"paragraph-node"},e9e=["custom-id"],M1=Ni(ut({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=D(()=>{var h;return(h=t.node)!=null?h:t.item}),i=ys(()=>t.customId),o=D(()=>!!i.value.paragraph),s=D(()=>!!i.value.text),r=D(()=>{var h;return Bk((h=n.value)==null?void 0:h.children,!o.value)}),l=D(()=>{var h;if(o.value)return null;const m=(h=n.value)==null?void 0:h.children;if(!Array.isArray(m)||m.length<2)return null;const g=m[0];if(g?.type!=="paragraph"||!Array.isArray(g.children))return null;const v=m.slice(1);if(!v.every(b=>b?.type==="list"))return null;const y=Bk([g]);return y?{paragraphChildren:y,nestedLists:v}:null});function a(){return t.fade===!1&&!s.value}const u=D(()=>a()?Ph(r.value):null),c=D(()=>{var h;return a()?Ph((h=l.value)==null?void 0:h.paragraphChildren):null}),d=Object.freeze({}),f=D(()=>{const{value:h}=t;return typeof h=="number"&&Number.isFinite(h)?{value:h}:d});return si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade)),(h,m)=>{var g,v;return k(),L("li",ci({class:"list-item",dir:"auto"},f.value),[r.value?(k(),L("p",Yye,[u.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(u.value),9,Jye)):(k(),de(p(sv),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(k(),L(Re,{key:1},[x("p",Xye,[c.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(c.value),9,e9e)):(k(),de(p(sv),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(k(!0),L(Re,null,xt(l.value.nestedLists,(y,b)=>(k(),de(p(wl),{key:b,nodes:[y],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${b}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:m[0]||(m[0]=A=>h.$emit("copy",A))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(k(),de(p(wl),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(v=(g=n.value)==null?void 0:g.children)!=null?v:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:m[1]||(m[1]=y=>h.$emit("copy",y))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);M1.install=e=>{e.component(M1.__name,M1)};const I1=Ni(ut({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=ys(()=>e.customId),n=D(()=>t.value.list_item||M1);return(i,o)=>(k(),de(Po(e.node.ordered?"ol":"ul"),{class:ze(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:ce(()=>[(k(!0),L(Re,null,xt(e.node.items,(s,r)=>{var l;return k(),de(Po(n.value),ci({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:s,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=a=>i.$emit("copy",a))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);I1.install=e=>{e.component(I1.__name,I1)};const t9e={key:2,class:"html-block-node__raw"},n9e=["innerHTML"],i9e={key:1,class:"html-block-node__placeholder"},v0=Ni(ut({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=en("markstreamHtmlPolicy",void 0),i=en("markstreamNestedRendererProps",void 0),o=D(()=>{var _,F;return(F=(_=t.htmlPolicy)!=null?_:n?.value)!=null?F:"safe"}),s=D(()=>{var _,F;const q=(_=i?.value)!=null?_:{};return $n($t({},q),{customId:(F=t.customId)!=null?F:q.customId,htmlPolicy:o.value})}),r=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1}),l=D(()=>{const _=l9(t.node.attrs,o.value);if(!_)return;const F=f0(_);return Object.keys(F).length>0?F:void 0}),a=D(()=>{const _=String(t.node.tag||"").trim(),F=l9(t.node.attrs,o.value,_);if(!F)return;const q=f0(F);return Object.keys(q).length>0?q:void 0}),u=ys(()=>t.customId),c=ut({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),d=U(null),f=U(typeof window>"u"),h=U(t.node.content),m=D(()=>Array.isArray(t.node.children)?t.node.children:[]),g=D(()=>String(t.node.tag||"div")),v=D(()=>{var _;if(g.value.trim().toLowerCase()!=="details"||(_=t.node.attrs)!=null&&_.some(([q])=>String(q).toLowerCase()==="open"))return null;const F=m.value[0];return F?.type==="html_block"&&String(F.tag||"").toLowerCase()==="summary"?F:null}),y=D(()=>{var _;return Ph((_=v.value)==null?void 0:_.children)}),b=D(()=>{const _=v.value;if(!_)return;const F=l9(_.attrs,o.value,"summary");if(!F)return;const q=f0(F);return Object.keys(q).length>0?q:void 0}),A=D(()=>y.value==null?m.value:m.value.slice(1)),w=D(()=>{const _=g.value.trim().toLowerCase();return Fj.has(_)||W7(_,o.value)}),M=D(()=>m.value.length>0&&!!t.node.tag&&!w.value),N=D(()=>{var _,F,q;if(M.value)return{mode:"structured"};if(!f.value)return{mode:"html",content:(_=h.value)!=null?_:""};const P=(F=h.value)!=null?F:t.node.content;if(!P)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:_1(P,o.value)};if(t.node.loading){const R=Dk(P,u.value,o.value);return R===null?{mode:"text",content:(q=t.node.raw)!=null?q:P}:{mode:"dynamic",nodes:R}}if(!lW(P,u.value))return{mode:"html",content:_1(P,o.value)};const O=Dk(P,u.value,o.value);return O===null?{mode:"html",content:_1(P,o.value)}:{mode:"dynamic",nodes:O}}),T=Y7(),C=G7(),I=Q7(),S=Ga(null),E=!!t.node.loading;return typeof window<"u"?(Ue([()=>d.value,()=>C?.value.heavyBlockMargin,()=>C?.value.rootMargin],([_],F,q)=>{var P,O,R,z;if((O=(P=S.value)==null?void 0:P.destroy)==null||O.call(P),S.value=null,!E)return f.value=!0,void(h.value=t.node.content);if(!_)return void(f.value=!1);let H=!0;const j=(z=(R=C?.value.heavyBlockMargin)!=null?R:C?.value.rootMargin)!=null?z:$h,Q=T(_,{rootMargin:j,allowIdle:!I.value});S.value=Q,f.value=f.value||Q.isVisible.value,Q.whenVisible.then(()=>{H&&S.value===Q&&(f.value=!0)}),q(()=>{H=!1,Q.destroy(),S.value===Q&&(S.value=null)})},{immediate:!0}),Ue(()=>t.node.content,_=>{E&&!f.value||(h.value=_)})):f.value=!0,ii(()=>{var _,F;(F=(_=S.value)==null?void 0:_.destroy)==null||F.call(_),S.value=null}),(_,F)=>(k(),de(Po(M.value?g.value:"div"),ci({ref_key:"htmlRef",ref:d,class:"html-block-node","data-markstream-viewport-pending":p(I)&&!f.value?"true":void 0},M.value?a.value:void 0),{default:ce(()=>[f.value?(k(),L(Re,{key:0},[N.value.mode==="structured"?(k(),L(Re,{key:0},[y.value!==null?(k(),L(Re,{key:0},[x("summary",DQ(m$(b.value)),B(y.value),17),A.value.length?(k(),de(p(r),ci({key:0},s.value,{nodes:A.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):ne("",!0)],64)):(k(),de(p(r),ci({key:1},s.value,{nodes:m.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):N.value.mode==="dynamic"?(k(),de(p(c),{key:1,nodes:N.value.nodes},null,8,["nodes"])):N.value.mode==="text"?(k(),L("pre",t9e,B(N.value.content),1)):(k(),L("div",ci({key:3},l.value,{innerHTML:N.value.content}),null,16,n9e))],64)):(k(),L("div",i9e,[Qn(_.$slots,"placeholder",{node:e.node},()=>[F[0]||(F[0]=x("span",{class:"html-block-node__placeholder-bar"},null,-1)),F[1]||(F[1]=x("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),F[2]||(F[2]=x("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);v0.install=e=>{e.component(v0.__name,v0)};const o9e={dir:"auto",class:"paragraph-node"},s9e=["custom-id"],Sh=Ni(ut({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=ys(()=>t.customId),i=en("markstreamHtmlPolicy",void 0),o=en("markstreamFade",void 0),s=en("markstreamParseOptions",void 0),r=en("markstreamCustomMarkdownIt",void 0),l=en("markstreamNestedRendererProps",void 0),a=D(()=>{var C;return(C=i?.value)!=null?C:"safe"}),u=D(()=>{var C;return(C=t.parseOptions)!=null?C:s?.value}),c=D(()=>{var C;return(C=t.customMarkdownIt)!=null?C:r?.value}),d=D(()=>{var C,I;return(I=t.customHtmlTags)!=null?I:(C=l?.value)==null?void 0:C.customHtmlTags}),f=D(()=>{var C,I;const S=(C=l?.value)!=null?C:{};return $n($t({},S),{customId:(I=t.customId)!=null?I:S.customId,customHtmlTags:d.value,parseOptions:u.value,customMarkdownIt:c.value,htmlPolicy:a.value})}),h=_u({loader:()=>Promise.resolve().then(()=>ax),suspensible:!1});function m(C){var I;return C.type==="text"&&String((I=C.content)!=null?I:"").trim()===""}const g=D(()=>t.node.children.filter(C=>!m(C))),v=D(()=>g.value.length>0&&g.value.every(C=>C.type==="image"||(function(I){var S;const E=(function(_){return _.type==="link"&&Array.isArray(_.children)?_.children.filter(F=>!m(F)):[]})(I);return E.length===1&&((S=E[0])==null?void 0:S.type)==="image"})(C))),y=D(()=>new Set(tp(d.value))),b=D(()=>{if(!v.value||g.value.length<=1)return t.node.children;const C=[];for(let I=0;I0,_=t.node.children.slice(I+1).some(F=>!m(F));E&&_&&C.push($n($t({},S),{content:" ",raw:" "}))}return C}),A=D(()=>o?.value===!1&&!n.value.text),w=D(()=>A.value?Ph(b.value):null);function M(C,I){return{node:C,"index-key":`${t.indexKey}-${I}`,"custom-id":t.customId,"custom-html-tags":d.value}}const N=D(()=>$t({inline_code:Cr,image:Id,link:Vr,hardbreak:Td,emphasis:Kr,strong:qr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,html_inline:Hl,html_block:v0,emoji:vl,checkbox:zl,math_inline:Qa,checkbox_input:zl,reference:Wr,footnote_anchor:g0,footnote_reference:jl,text:Wo},n.value)),T=D(()=>b.value.map((C,I)=>{var S;const E=(function(_){var F,q,P,O;if(_.type==="html_block"||_.type==="html_inline"){const R=String((F=_.tag)!=null?F:"").trim().toLowerCase()||Pj(_.content);if(R&&!y.value.has(R)&&zj((q=_.content)!=null?q:_.raw,R)){const z=String((O=(P=_.content)!=null?P:_.raw)!=null?O:"");return{child:{type:"text",content:z,raw:z},component:Wo,isCustomComponent:!1}}}return{child:_,component:N.value[_.type],isCustomComponent:!!(n.value[_.type]&&!Vv(String(_.type)))}})(C);return $n($t({},E),{index:I,key:`${t.indexKey||"paragraph"}-${I}`,customAttrs:E.isCustomComponent?Z7(E.child,a.value):void 0,hasSlotChildren:Array.isArray(E.child.children)&&E.child.children.length>0,slotContent:String((S=E.child.content)!=null?S:""),originalChild:C})}));return(C,I)=>(k(),L("p",o9e,[w.value!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(w.value),9,s9e)):(k(!0),L(Re,{key:1},xt(T.value,S=>{return k(),L(Re,{key:S.key},[v.value&&m(S.originalChild)?(k(),L(Re,{key:0},[He(B((E=S.originalChild,String((_=E.content)!=null?_:""))),1)],64)):S.isCustomComponent?(k(),de(Po(S.component),ci({key:1,ref_for:!0},S.customAttrs,{node:S.child,loading:S.child.loading,"index-key":S.key,"custom-id":t.customId,"custom-html-tags":d.value,"is-dark":f.value.isDark}),{default:ce(()=>[S.hasSlotChildren?(k(),de(p(h),ci({key:0,ref_for:!0},f.value,{nodes:S.child.children,"index-key":S.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):S.slotContent?(k(),de(p(h),ci({key:1,ref_for:!0},f.value,{content:S.slotContent,final:!S.child.loading,"index-key":`${S.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(k(),de(Po(S.component),ci({key:2,ref_for:!0},M(S.child,S.index)),null,16))],64);var E,_}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Sh.install=e=>{e.component(Sh.__name,Sh)};const r9e={class:"table-node-wrapper"},l9e=["aria-busy"],a9e={key:0},u9e=["custom-id"],c9e=["aria-label","onPointerdown"],d9e=["custom-id"],f9e={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},y0=Ni(ut({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=D(()=>{var y;return(y=t.node.loading)!=null&&y}),i=D(()=>{var y;return(y=t.node.rows)!=null?y:[]}),o=U(null),s=U([]);let r=null;const l=D(()=>t.node.header.cells.length),a=D(()=>s.value.some(y=>Number.isFinite(y)&&y>0)),u=D(()=>a.value?s.value.map(y=>y>0?{width:`${y}px`}:void 0):[]);si("markstreamShowTooltips",D(()=>t.showTooltips)),si("markstreamFade",D(()=>t.fade));const c=ys(()=>t.customId),d=D(()=>!!c.value.text),f=D(()=>!!c.value.paragraph),h=new WeakMap;function m(y){const b=t.fade===!1&&!d.value,A=!f.value,w=h.get(y);if(w?.children===y.children&&w.textFastPath===b&&w.paragraphFastPath===A)return w.info;const M=Bk(y.children,A,!0),N={simpleChildren:M,plainText:M&&b?Ph(M):null};return h.set(y,{children:y.children,textFastPath:b,paragraphFastPath:A,info:N}),N}function g(y){if(!r)return;y.preventDefault();const b=r.startWidth+r.nextStartWidth,A=Math.min(48,Math.floor(b/2)),w=Math.max(A,Math.min(b-A,Math.round(r.startWidth+y.clientX-r.startX))),M=[...r.widths];M[r.index]=w,M[r.index+1]=b-w,s.value=M}function v(){r&&(window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),r=null)}return Ue(l,()=>{v(),s.value=[]}),ii(v),(y,b)=>(k(),L("div",r9e,[x("table",{ref_key:"tableRef",ref:o,class:ze(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[a.value?(k(),L("colgroup",a9e,[(k(!0),L(Re,null,xt(e.node.header.cells,(A,w)=>(k(),L("col",{key:w,style:on(u.value[w])},null,4))),128))])):ne("",!0),x("thead",null,[x("tr",null,[(k(!0),L(Re,null,xt(e.node.header.cells,(A,w)=>(k(),L("th",{key:w,dir:"auto",class:ze([A.align==="right"?"text-right":A.align==="center"?"text-center":"text-left"])},[m(A).plainText!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(m(A).plainText),9,u9e)):m(A).simpleChildren?(k(),de(p(sv),{key:1,nodes:m(A).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${w}`},null,8,["nodes","custom-id","index-key"])):(k(),de(p(wl),{key:2,nodes:A.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:b[0]||(b[0]=M=>y.$emit("copy",M))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),w(function(N,T){if(T.button!==0)return;const C=(function(){var E;const _=(E=o.value)==null?void 0:E.querySelectorAll("thead th");return Array.from(_??[],F=>Math.round(F.getBoundingClientRect().width))})(),I=C[N],S=C[N+1];I&&S&&(T.preventDefault(),r={index:N,startX:T.clientX,startWidth:I,nextStartWidth:S,widths:C},s.value=C,window.addEventListener("pointermove",g),window.addEventListener("pointerup",v),window.addEventListener("pointercancel",v))})(w,M)},null,40,c9e)):ne("",!0)],2))),128))])]),x("tbody",null,[(k(!0),L(Re,null,xt(i.value,(A,w)=>(k(),L("tr",{key:w},[(k(!0),L(Re,null,xt(A.cells,(M,N)=>(k(),L("td",{key:N,class:ze([M.align==="right"?"text-right":M.align==="center"?"text-center":"text-left"]),dir:"auto"},[m(M).plainText!==null?(k(),L("span",{key:0,class:"text-node","custom-id":t.customId},B(m(M).plainText),9,d9e)):m(M).simpleChildren?(k(),de(p(sv),{key:1,nodes:m(M).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${w}-${N}`},null,8,["nodes","custom-id","index-key"])):(k(),de(p(wl),{key:2,nodes:M.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:b[1]||(b[1]=T=>y.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,l9e),K(mo,{name:"table-node-fade"},{default:ce(()=>[n.value?(k(),L("div",f9e,[Qn(y.$slots,"loading",{isLoading:n.value},()=>[b[2]||(b[2]=x("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),b[3]||(b[3]=x("span",{class:"sr-only"},"Loading",-1))],!0)])):ne("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);y0.install=e=>{e.component(y0.__name,y0)};const h9e={class:"hr-node"},p9=Ni({},[["render",function(e,t){return k(),L("hr",h9e)}],["__scopeId","data-v-39b2349c"]]);p9.install=e=>{e.component(p9.__name,p9)};const p9e={class:"unknown-node"},eA=ut({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(k(),L("div",p9e,B(e.node.raw),1))}),m9=Ni(ut({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=D(()=>`vmr-container vmr-container-${t.node.name}`),i=ys(()=>t.customId),o=D(()=>$t({text:Wo,paragraph:Sh,heading:p4,inline_code:Cr,link:Vr,image:Id,strong:qr,emphasis:Kr,strikethrough:Ur,insert:bl,subscript:kl,superscript:yl,checkbox:zl,checkbox_input:zl,hardbreak:Td,math_inline:Qa,reference:Wr,list:I1,math_block:pW,table:y0},i.value));return(s,r)=>(k(),L("div",ci({class:n.value},e.node.attrs),[(k(!0),L(Re,null,xt(e.node.children,(l,a)=>{return k(),de(Po((u=l.type,o.value[u]||eA)),{key:`${e.indexKey||"vmr-container"}-${a}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${a}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);m9.install=e=>{e.component(m9.__name,m9)};const m9e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],hN=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function g9e(e){if(e<=255)return m9e[e];let t=0,n=hN.length-1;for(;t<=n;){const i=t+n>>1,o=hN[i];if(eo[1]))return o[2];t=i+1}}return"L"}const v9e=/[ \t\n\r\f]+/g,y9e=/[\t\n\r\f]| {2,}|^ | $/;let V8=null;const k9e=new RegExp("\\p{Script=Arabic}","u"),Ud=new RegExp("\\p{M}","u"),X7=new RegExp("\\p{Nd}","u");function pN(e){return k9e.test(e)}function mN(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Iu(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&i<=57343){if(mN(i-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(mN(n))return!0}}return!1}const b9e=new Set([" "," ","⁠","\uFEFF"]),w9e=new Set(["-","‐","–","—"]);function mW(e,t){return!((function(n){const i=k0(n);return i!==null&&b9e.has(i)})(e)||t&&((function(n){const i=k0(n);return i!==null&&(ex.has(i)||zh.has(i))})(e)||(function(n){const i=k0(n);return i!==null&&w9e.has(i)})(e)))}const ex=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),m4=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),tx=new Set(["'","’"]),zh=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),C9e=new Set([":",".","،","؛"]),A9e=new Set(["၏"]),x9e=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function S9e(e){if(nx(e))return!0;let t=!1;for(const n of e)if(zh.has(n)||Ok(n))t=!0;else if(!t||!Ud.test(n))return!1;return t}function _9e(e){for(const t of e)if(!ex.has(t)&&!zh.has(t))return!1;return e.length>0}function M9e(e){if(nx(e))return!0;for(const t of e)if(!(m4.has(t)||tx.has(t)||Ud.test(t)||Ok(t)))return!1;return e.length>0}function nx(e){let t=!1;for(const n of e)if(n!=="\\"&&!Ud.test(n)){if(!(m4.has(n)||zh.has(n)||tx.has(n)))return!1;t=!0}return t}function Rk(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const i=e.charCodeAt(n);if(i<56320||i>57343)return n;const o=n-1;if(o<0)return n;const s=e.charCodeAt(o);return s>=55296&&s<=56319?o:n}function k0(e){if(e.length===0)return null;const t=Rk(e,e.length);return e.slice(t)}const I9e=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Ok(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,i){for(let o=0;o=i[o]&&n<=i[o+1])return!0;return!1})(t,I9e)}function T9e(e){const t=(function(n){for(const i of n)if(!Ud.test(i))return i;return null})(e);return t!==null&&X7.test(t)}function E9e(e){const t=Array.from(e);let n=t.length;for(;n>0;){const i=t[n-1];if(Ud.test(i))n--;else{if(!m4.has(i)&&!tx.has(i))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function L9e(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function gN(e,t,n,i){const o=t[i],s=e[i];if(o==null)return s;const r=n[i];if(s.length===r)return s;const l=o.repeat(r);return e[i]=l,l}function vN(e,t){return e&&t!==null&&C9e.has(t)}function N9e(e){const t=k0(e);return t!==null&&A9e.has(t)}function D9e(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function tA(e){let t=e.length;for(;t>0;){const n=Rk(e,t),i=e.slice(n,t);if(x9e.has(i))return!0;if(!zh.has(i))return!1;t=n}return!1}function F9e(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===` -`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const B9e=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function La(e){return e.length===1?e[0]:e.join("")}function R9e(e,t){const n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),La(n)}function O9e(e,t,n,i){if(!B9e.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let s=null,r=[],l=n,a=!1,u=0;for(const c of e){const d=F9e(c,i),f=d==="text"&&t;s===null||d!==s||f!==a?(s!==null&&o.push({text:La(r),isWordLike:a,kind:s,start:l}),s=d,r=[c],l=n+u,a=f,u+=c.length):(r.push(c),u+=c.length)}return s!==null&&o.push({text:La(r),isWordLike:a,kind:s,start:l}),o}function K8(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const $9e=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function P9e(e,t){const n=e.texts[t];return!!n.startsWith("www.")||$9e.test(n)&&t+1=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(t):!q9e.has(e)&&!W9e.test(e)&&H9e.test(e)}function yN(e){let t=!1;for(const n of e)if(!Ud.test(n)){if(!gW(n))return!1;t=!0}return t}function U9e(e,t,n,i){const o=!t&&yN(e),s=!i&&yN(n),r=(function(a){const u=(function(c){for(let d=c.length;d>0;){const f=Rk(c,d),h=c.slice(f,d);if(!Ud.test(h))return h;d=f}return null})(a);return u!==null&&Ok(u)})(e),l=(t||r)&&(function(a){for(let u=a.length;u>0;){const c=Rk(a,u),d=a.slice(c,u);if(!Ud.test(d))return gW(d)||Ok(d);u=c}return!1})(e);return!!(o||s||l)&&!Iu(e)&&!Iu(n)&&(t||o||r)&&(i||s)}function kN(e){for(const t of e)if(X7.test(t))return!0;return!1}function g9(e){if(e.length===0)return!1;for(const t of e)if(!X7.test(t)&&!j9e.has(t))return!1;return!0}function V9e(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let i=0;for(let o=0;o0&&u.charCodeAt(u.length-1)===32&&(u=u.slice(0,-1)),u})(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const r=(function(a,u,c){var d,f,h;const m=(V8===null&&(V8=new Intl.Segmenter(void 0,{granularity:"word"})),V8);let g=0;const v=[],y=[],b=[],A=[],w=[],M=[],N=[],T=[],C=[],I=[],S=[],E=[];for(const O of m.segment(a))for(const R of O9e(O.segment,(d=O.isWordLike)!=null&&d,O.index,c)){let z=function(){M[te]!==null&&(y[te]=[gN(v,M,N,te)],M[te]=null),y[te].push(R.text),b[te]=b[te]||R.isWordLike,T[te]=T[te]||Q,C[te]=C[te]||ae,I[te]=G,S[te]=oe,E[te]=vN(C[te],W)};const H=R.kind==="text",j=L9e(R.text,R.isWordLike,R.kind),Q=Iu(R.text),ae=pN(R.text),W=k0(R.text),G=tA(R.text),oe=N9e(R.text),te=g-1;u.carryCJKAfterClosingQuote&&H&&g>0&&A[te]==="text"&&Q&&T[te]&&I[te]||H&&g>0&&A[te]==="text"&&_9e(R.text)&&T[te]||H&&g>0&&A[te]==="text"&&S[te]?z():H&&g>0&&A[te]==="text"&&R.isWordLike&&ae&&E[te]?(z(),b[te]=!0):j!==null&&g>0&&A[te]==="text"&&M[te]===j?N[te]=((f=N[te])!=null?f:1)+1:H&&!R.isWordLike&&g>0&&A[te]==="text"&&!T[te]&&(S9e(R.text)||R.text==="-"&&b[te])?z():(v[g]=R.text,y[g]=[R.text],b[g]=R.isWordLike,A[g]=R.kind,w[g]=R.start,M[g]=j,N[g]=j===null?0:1,T[g]=Q,C[g]=ae,I[g]=G,S[g]=oe,E[g]=vN(ae,W),g++)}for(let O=0;Onull);let F=-1;for(let O=g-1;O>=0;O--){const R=v[O];if(R.length!==0){if(A[O]==="text"&&!b[O]&&F>=0&&A[F]==="text"&&(M9e(R)||R==="-"&&T9e(v[F]))){const z=(h=_[F])!=null?h:[];z.push(R),_[F]=z,w[F]=w[O],v[O]="";continue}F=O}}for(let O=0;OQ+1){R.push(La(oe)),z.push(ve),H.push("text"),j.push(O.starts[Q]),Q=te;continue}}R.push(ae),z.push(G),H.push(W),j.push(O.starts[Q]),Q++}return{len:R.length,texts:R,isWordLike:z,kinds:H,starts:j}})((function(O){const R=[],z=[],H=[],j=[];for(let Q=0;Q1;for(let oe=0;oe=O.len||K8(O.kinds[W]))continue;const G=[],oe=O.starts[W];let te=W;for(;te0&&(R.push(La(G)),z.push(!0),H.push("text"),j.push(oe),Q=te-1)}return{len:R.length,texts:R,isWordLike:z,kinds:H,starts:j}})((function(O){const R=O.texts.slice(),z=O.isWordLike.slice(),H=O.kinds.slice(),j=O.starts.slice();for(let ae=0;ae=0&&!mW(u.texts[A-1],c)&&b(A),g<0&&(g=A),v=v||Iu(w))}return b(u.len),{len:d.length,texts:d,isWordLike:f,kinds:h,starts:m}})(s,r,t.breakKeepAllAfterPunctuation):r;return $t({normalized:s,chunks:V9e(l,o)},l)}let Tp=null;const bN=new Map;let Ep=null;const Z9e=new RegExp("\\p{Emoji_Presentation}","u"),G9e=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Z8=null;const wN=new Map;function nA(){if(Tp!==null)return Tp;if(typeof OffscreenCanvas<"u")return Tp=new OffscreenCanvas(1,1).getContext("2d"),Tp;if(typeof document<"u")return Tp=document.createElement("canvas").getContext("2d"),Tp;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function Gc(e,t){let n=t.get(e);return n===void 0&&(n={width:nA().measureText(e).width,containsCJK:Iu(e)},t.set(e,n)),n}function $k(){if(Ep!==null)return Ep;if(typeof navigator>"u")return Ep={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Ep;const e=navigator.userAgent,t=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),n=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return Ep={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},Ep}function vW(){return Z8===null&&(Z8=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Z8}function Q9e(e){return Z9e.test(e)||e.includes("️")}function Of(e,t,n){return n===0?t.width:t.width-(function(i,o){return o.emojiCount===void 0&&(o.emojiCount=(function(s){let r=0;const l=vW();for(const a of l.segment(s))Q9e(a.segment)&&r++;return r})(i)),o.emojiCount})(e,t)*n}function Y9e(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function CN(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function AN(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function ix(e,t){return t===0?0:e+t}function eke(e,t,n,i,o){return ix(i,t==="tab"?o+(function(s,r){return s.letterSpacing!==0&&s.spacingGraphemeCounts[r]>0?s.letterSpacing:0})(e,n):e.lineEndFitAdvances[n])}function xN(e,t,n,i){return ix(i,t==="tab"?0:e.lineEndFitAdvances[n])}function SN(e,t,n,i,o){return ix(i,t==="tab"?o:e.lineEndPaintAdvances[n])}function tke(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function nke(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function cy(e,t,n){let i=t;for(;iz){if(be!==null&&re>V){te(se,re,J),fe=re,he=cy(be,he,fe+1),re=-1,J=0;continue}te(),Te(se,fe,ke)}else j+=ke,ae=se,W=fe+1;else Te(se,fe,ke);const Ce=fe+1;be!==null&&be[he]===Ce&&(re=Ce,J=j,he++),fe++}Q&&ae===se&&W===Se.length&&(ae=se+1,W=0)}let Y=0;for(;Y=q.length)));){const se=q[Y],V=CN(P[Y]);if(Q)if(j+se>z){if(V){Fe(Y,se),te(Y+1,0,j-se),Y++;continue}if(G>=0){if(ae>G||ae===G&&W>0){te();continue}te(G,0,oe);continue}if(se>z&&O[Y]!==null){te(),ye(Y,0),Y++;continue}te()}else Fe(Y,se),V&&(G=Y+1,oe=j-se),Y++;else se>z&&O[Y]!==null?ye(Y,0):ve(Y,se),V&&(G=Y+1,oe=j-se),Y++}return Q&&te(),H})(n,i);const{widths:o,kinds:s,breakableFitAdvances:r,breakablePreferredBreaks:l,discretionaryHyphenWidth:a,chunks:u}=n;if(o.length===0||u.length===0)return 0;const c=$k(),d=i+c.lineFitEpsilon;let f=0,h=0,m=!1,g=0,v=0,y=-1,b=0,A=null;function w(){y=-1,b=0,A=null}function M(_=g,F=v,q){f++,h=0,m=!1,w()}function N(_,F){m=!0,g=_+1,v=0,h=F}function T(_,F,q){m=!0,g=_,v=F+1,h=q}function C(_,F){m?(h+=F,g=_+1,v=0):N(_,F)}function I(_,F,q,P,O,R){if(!F)return;const z=xN(n,_,q,O);SN(n,_,q,O,P),y=q+1,b=h-R+z,A=_}function S(_,F){var q;const P=r[_],O=(q=l[_])!=null?q:null;let R=O===null?-1:cy(O,0,F+1),z=-1,H=F;for(;Hd){if(O!==null&&z>F){M(_,z),H=z,R=cy(O,R,H+1),z=-1;continue}M(),T(_,H,j)}else h=W,g=_,v=H+1}else T(_,H,j);const Q=H+1;O!==null&&O[R]===Q&&(z=Q,R++),H++}m&&g===_&&v===P.length&&(g=_+1,v=0)}function E(_){f++,w()}for(let _=0;_=F.endSegmentIndex)));){const P=s[q],O=CN(P),R=X9e(n,m,q),z=P==="tab"?J9e(h+R,n.tabStopAdvance):o[q],H=R+z,j=eke(n,P,q,R,z);if(P!=="soft-hyphen")if(m){if(h+j>d){const Q=h+xN(n,P,q,R);if(SN(n,P,q,R,z),A==="soft-hyphen"&&c.preferEarlySoftHyphenBreak&&b<=d){M(y,0);continue}if(O&&Q<=d){C(q,H),M(q+1,0),q++;continue}if(y>=0&&b<=d){if(g>y||g===y&&v>0){M();continue}const ae=y;M(ae,0),q=ae;continue}if(j>d&&r[q]!==null){M(),S(q,0),q++;continue}M();continue}C(q,H),I(P,O,q,z,R,H),q++}else j>d&&r[q]!==null?S(q,0):N(q,z),I(P,O,q,z,R,H),q++;else m&&(g=q+1,v=0,y=q+1,b=h+a,A=P),q++}m&&(F.consumedEndSegmentIndex,M(F.consumedEndSegmentIndex,0))}return f})(e,t)}let G8=null;function ox(){return G8===null&&(G8=new Intl.Segmenter(void 0,{granularity:"grapheme"})),G8}function oke(e,t){const n=[];let i=[],o=0,s=!1,r=!1,l=!1;function a(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(""),start:o}),i=[],s=!1,r=!1,l=!1)}function u(d,f,h){i=[d],o=f,s=h,r=tA(d),l=m4.has(d)}function c(d,f){i.push(d),s=s||f;const h=tA(d);r=d.length===1&&zh.has(d)&&r||h,l=!1}for(const d of ox().segment(e)){const f=d.segment,h=Iu(f);i.length!==0?l||ex.has(f)||zh.has(f)||t.carryCJKAfterClosingQuote&&h&&r?c(f,h):s||h?(a(),u(f,d.index,h)):c(f,h):u(f,d.index,h)}return a(),n}function ske(e,t,n){if(t.length<=1)return t;const i=[];let o=-1,s=!1;function r(l){if(!(o<0)){if(s)o+1===l?i.push(t[o]):(function(a,u){const c=t[a].start,d=u=0&&!mW(t[l-1].text,n)&&r(l),o<0&&(o=l),s=s||Iu(a.text)}return r(t.length),i}function _N(e,t){if(t==="zero-width-break"||t==="soft-hyphen"||t==="hard-break")return 0;if(t==="tab")return 1;let n=0;const i=ox();for(const o of i.segment(e))n++;return n}function rke(e){return e==="-"||e==="֊"||e==="‐"||e==="‒"||e==="–"||e==="—"}function lke(e,t,n,i,o){const s=$k(),{cache:r,emojiCorrection:l}=(function(E,_){nA().font=E;const F=(function(O){let R=bN.get(O);return R||(R=new Map,bN.set(O,R)),R})(E),q=(function(O){const R=O.match(/(\d+(?:\.\d+)?)\s*px/);return R?parseFloat(R[1]):16})(E),P=_?(function(O,R){let z=wN.get(O);if(z!==void 0)return z;const H=nA();H.font=O;const j=H.measureText("😀").width;if(z=0,j>R+.5&&typeof document<"u"&&document.body!==null){const Q=document.createElement("span");Q.style.font=O,Q.style.display="inline-block",Q.style.visibility="hidden",Q.style.position="absolute",Q.textContent="😀",document.body.appendChild(Q);const ae=Q.getBoundingClientRect().width;document.body.removeChild(Q),j-ae>.5&&(z=j-ae)}return wN.set(O,z),z})(E,q):0;return{cache:F,fontSize:q,emojiCorrection:P}})(t,(a=e.normalized,G9e.test(a)));var a;const u=Of("-",Gc("-",r),l)+(o===0?0:2*o),c=8*Of(" ",Gc(" ",r),l),d=o!==0;if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};const f=[],h=[],m=[],g=[];let v=e.chunks.length<=1&&!d;const y=null,b=[],A=[],w=[],M=null,N=Array.from({length:e.len});function T(E,_,F,q,P,O,R,z,H){P!=="text"&&P!=="space"&&P!=="zero-width-break"&&(v=!1),f.push(_),h.push(F),m.push(q),g.push(P),b.push(R),A.push(z),d&&w.push(H)}function C(E,_,F,q,P){const O=Gc(E,r),R=d?_N(E,_):0,z=(function(ae,W,G){return W>1?ae+(W-1)*G:ae})(Of(E,O,l),R,o),H=_==="space"||_==="preserved-space"||_==="zero-width-break"?0:z,j=H===0?0:H+(R>0?o:0),Q=_==="space"||_==="zero-width-break"?0:z;if(P&&q&&E.length>1){let ae="sum-graphemes";o!==0?ae="segment-prefixes":g9(E)?ae="pair-context":s.preferPrefixWidthsForBreakableRuns&&(ae="segment-prefixes");const W=(function(oe,te,ve,Te,Fe){if(te.breakableFitAdvances!==void 0&&te.breakableFitMode===Fe)return te.breakableFitAdvances;te.breakableFitMode=Fe;const ye=vW(),Y=[];for(const Se of ye.segment(oe))Y.push(Se.segment);if(Y.length<=1)return te.breakableFitAdvances=null,te.breakableFitAdvances;if(Fe==="sum-graphemes"){const Se=[];for(const be of Y){const he=Gc(be,ve);Se.push(Of(be,he,Te))}return te.breakableFitAdvances=Se,te.breakableFitAdvances}if(Fe==="pair-context"||Y.length>96){const Se=[];let be=null,he=0;for(const re of Y){const J=Of(re,Gc(re,ve),Te);if(be===null)Se.push(J);else{const fe=be+re,ke=Gc(fe,ve);Se.push(Of(fe,ke,Te)-he)}be=re,he=J}return te.breakableFitAdvances=Se,te.breakableFitAdvances}const se=[];let V="",le=0;for(const Se of Y){V+=Se;const be=Of(V,Gc(V,ve),Te);se.push(be-le),le=be}return te.breakableFitAdvances=se,te.breakableFitAdvances})(E,O,r,l,ae),G=W===null||i==="keep-all"?null:(function(oe){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(oe))return null;const te=[];let ve=0;for(const Te of ox().segment(oe))ve++,rke(Te.segment)&&te.push(ve);return te.length===0?null:te})(E);return void T(E,z,j,Q,_,F,W,G,R)}T(E,z,j,Q,_,F,null,null,R)}for(let E=0;E=55296&&oe<=56319&&G+1=56320&&Fe<=57343&&(te=Fe-56320+(oe-55296<<10)+65536,ve=2)}const Te=g9e(te);Te!=="R"&&Te!=="AL"&&Te!=="AN"||(z=!0);for(let Fe=0;Fe=0&&R[oe]==="ET";oe--)R[oe]="EN";for(oe=G+1;oe0?R[G-1]:ae)!=="L"?"R":"L";if(te===((oe{const e=globalThis;if(e[Q8])return e[Q8];const t={configs:{},controllers:{},revision:Ga(0),preparedCache:new Map,blockEstimateCache:new Map};return e[Q8]=t,t})();let ag=null;const Y8=Cs.revision;function MN(e){var t;return e&&(t=Cs.configs[e])!=null?t:null}function IN(e,t){const n=Number.parseFloat(String(e??""));return Number.isFinite(n)&&n>0?n:t}function uke(e){return e?.type==="text"||e?.type==="emoji"||e?.type==="hardbreak"}function J8(e){var t,n,i;if(!Array.isArray(e)||e.length===0)return null;let o="";for(const s of e){if(!uke(s))return null;s.type==="text"?o+=String((t=s.content)!=null?t:""):s.type==="emoji"?o+=String((i=(n=s.name)!=null?n:s.raw)!=null?i:""):s.type==="hardbreak"&&(o+=` -`)}return o.length>0?o:null}function X8(e,t,n){var i,o;if(!e||!Number.isFinite(t)||t<=0||!(function(){var s;if(ag!=null)return ag;if(typeof document>"u")return!1;try{const r=document.createElement("canvas");return ag=!!((s=r.getContext)!=null&&s.call(r,"2d")),ag}catch{return ag=!1,!1}})())return null;try{const s=Math.round(100*t)/100,r=[(i=n.whiteSpace)!=null?i:"pre-wrap",n.font,n.lineHeight,n.wrapperOverhead,n.widthAdjustment,s,e].join("\0"),l=Cs.blockEstimateCache.get(r);if(l)return Cs.blockEstimateCache.delete(r),Cs.blockEstimateCache.set(r,l),{kind:"simple-text",height:l.height,contentHeight:l.contentHeight};const a=(o=n.whiteSpace)!=null?o:"pre-wrap",u=(function(h,m,g){const v=`${g}\0${m}\0${h}`,y=Cs.preparedCache.get(v);if(y)return Cs.preparedCache.delete(v),Cs.preparedCache.set(v,y),y.prepared;const b=(function(A,w,M){return(function(N,T,C,I){var S,E;const _=(S=I?.wordBreak)!=null?S:"normal",F=(E=I?.letterSpacing)!=null?E:0;return lke(K9e(N,$k(),I?.whiteSpace,_),T,!1,_,F)})(A,w,0,M)})(h,m,{whiteSpace:g});for(Cs.preparedCache.set(v,{prepared:b});Cs.preparedCache.size>240;){const A=Cs.preparedCache.keys().next().value;if(!A)break;Cs.preparedCache.delete(A)}return b})(e,n.font,a),c=(function(h,m,g){const v=ike(h,m);return{lineCount:v,height:v*g}})(u,Math.max(24,s-n.widthAdjustment),n.lineHeight),d=Math.max(n.lineHeight,c.height),f=Math.max(n.lineHeight,Math.round(d+n.wrapperOverhead));for(Cs.blockEstimateCache.set(r,{height:f,contentHeight:Math.round(d)});Cs.blockEstimateCache.size>4e3;){const h=Cs.blockEstimateCache.keys().next().value;if(!h)break;Cs.blockEstimateCache.delete(h)}return{kind:"simple-text",height:f,contentHeight:Math.round(d)}}catch{return null}}function yW(e,t,n){var i,o;if(!n||!e||!Number.isFinite(t)||t<=0)return null;if(e.type==="paragraph"){const s=J8(e.children);return s&&n.paragraph?X8(s,t,n.paragraph):null}if(e.type==="heading"){const s=Number(e.level||0),r=J8(e.children),l=n.headings[s];return r&&l?X8(r,t,l):null}if(e.type==="list_item"){const s=Array.isArray(e.children)?e.children:[];if(s.length!==1||((i=s[0])==null?void 0:i.type)!=="paragraph"||!n.listItem)return null;const r=J8((o=s[0])==null?void 0:o.children);return r?X8(r,t,n.listItem):null}if(e.type==="list"){const s=Array.isArray(e.items)?e.items:[];if(!s.length)return null;let r=Math.max(0,n.listWrapperOverhead);for(const l of s){const a=yW(l,t,n);if(!a)return null;r+=a.height}return{kind:"simple-text",height:Math.max(1,Math.round(r)),contentHeight:Math.max(1,Math.round(r))}}return null}function ug(e){if(!e)return 1;const t=String(e).split(/\r?\n/);return Math.max(1,t.length)}function $f(e,t){const n=String(e??"");return t?n:n.replace(/\r\n$|\n$|\r$/,"")}function e5(e,t,n=0){return e.diff?J7(t??{},n)?(function(i){const o=$f(i.raw);if(o){const s=o.split(/\r?\n/);return i.originalCode!=null||i.updatedCode!=null?Math.max(1,s.filter(r=>!ake.some(l=>r.startsWith(l))).length):Math.max(1,s.length)}return ug($f(i.originalCode))+ug($f(i.updatedCode))})(e):(function(i){const o=i.originalCode,s=i.updatedCode;if(o!=null||s!=null)return Math.max(ug($f(o)),ug($f(s)));const r=$f(i.code).split(/\r?\n/);let l=0,a=0;for(const u of r)u.startsWith("+")&&!u.startsWith("+++")?a++:u.startsWith("-")&&!u.startsWith("---")?l++:(l++,a++);return Math.max(1,l,a)})(e):ug($f(e.code,e.loading===!0))}function cke(e){return e?`${e.fontStyle||"normal"} ${e.fontWeight||"400"} ${e.fontSize||"16px"} ${e.fontFamily||"sans-serif"}`:""}function t5(e,t,n="pre-wrap"){if(!e||!t||typeof window>"u")return null;const i=window.getComputedStyle(t),o=e.offsetHeight,s=IN(i.lineHeight,1.5*IN(i.fontSize,16)),r=e.getBoundingClientRect().width,l=t.getBoundingClientRect().width;return{font:cke(i),lineHeight:s,wrapperOverhead:Math.max(0,o-s),widthAdjustment:Math.max(0,r-l),whiteSpace:n}}const dke=new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function TN(e,t={}){var n;const i={},o=new Set((n=t.omit)!=null?n:[]);if(!e||typeof e!="object")return i;const s=Object.getOwnPropertyDescriptors(e);for(const[r,l]of Object.entries(s))dke.has(r)||o.has(r)||l.enumerable&&"value"in l&&(i[r]=l.value);return i}function EN(e,t,n,i){var o;const s=(function(f){return Math.max(0,Math.ceil(f.scrollHeight||0)-Math.ceil(f.clientHeight||0))})(e),r=(function(f,h){return Number.isFinite(f)?Math.min(Math.max(0,f),h):0})(n,s);if(!i.isReverseFlexScrollRoot(e))return void(e.scrollTop=r);const l=Math.max(0,s-r),a=[-l,l];let u=a[0],c=Number.POSITIVE_INFINITY;for(const f of a){e.scrollTop=f;const h=i.getNormalizedScrollTop(e,t,!1),m=Math.abs(h-r);md&&(e.scrollTop=u)}function LN(e,t){let n=0,i=null,o=null;const s=()=>{const r=o;o=null,i=null,r&&(n=Date.now(),e(...r))};return function(...r){const l=Date.now(),a=t-(l-n);o=r,a<=0?(i&&(clearTimeout(i),i=null),n=l,o=null,e(...r)):i||(i=setTimeout(s,a))}}function NN(e){return e==="simple"?"simple":e===!0||e==="true"||e==="precise"?"precise":"off"}const kW=Symbol("MarkstreamMathBlockMinHeightCache");function Okt(){return en(kW,null)}const fke=new Set(["text","inline_code","emoji","footnote_reference"]),hke=new Set(["strong","emphasis","strikethrough","highlight","insert","subscript","superscript","link"]);function cg(e){const t=Number(e);return!Number.isFinite(t)||t<=0?-1:Math.round(t/32)}function Pf(e,t,n,i=22){const o=String(e??"");if(!o)return n;const s=Math.max(18,Math.floor(Math.max(320,t)/8)),r=o.split(/\r?\n/).length,l=Math.ceil(o.length/s),a=Math.max(1,r,l);return Math.max(n,Math.ceil(a*i+12))}function bW(e){var t;if(!e||typeof e!="object")return!1;const n=e,i=String((t=n.type)!=null?t:"");if(fke.has(i))return!0;if(!hke.has(i))return!1;const o=n.children;return!Array.isArray(o)||!o.length||o.every(bW)}function iA(e){var t,n,i,o,s,r,l,a;if(!e||typeof e!="object")return"";const u=e,c=String((t=u.type)!=null?t:"");if(c==="text")return String((i=(n=u.content)!=null?n:u.raw)!=null?i:"");if(c==="inline_code")return String((r=(s=(o=u.code)!=null?o:u.content)!=null?s:u.raw)!=null?r:"");if(c==="emoji")return String((a=(l=u.name)!=null?l:u.raw)!=null?a:"");if(typeof u.text=="string")return u.text;const d=[];for(const f of["children","items","cells","rows"]){const h=u[f];if(Array.isArray(h)){const m=h.map(iA).filter(Boolean).join(" ");m&&d.push(m)}}return d.join(" ").replace(/\s+/g," ").trim()}function wW(e){if(!e||typeof e!="object")return!1;const t=e;return t.type==="inline_code"||["children","items","cells","rows"].some(n=>{const i=t[n];return Array.isArray(i)&&i.some(wW)})}function pke(e,t){if(!e)return 30;const n=Math.max(18,Math.floor(Math.max(320,t)/8)),i=e.split(/\r?\n/).length,o=Math.ceil(e.length/n),s=Math.max(1,i,o);return 30+26*Math.max(0,s-1)}function mke(e,t){var n,i,o,s,r,l,a,u,c,d,f,h,m,g;if(!e||typeof e!="object")return 32;const v=e,y=String((n=v.type)!=null?n:""),b=Number.isFinite(t)&&t>0?t:640;switch(y){case"heading":return(function(A){var w;const M=Number((w=A.level)!=null?w:A.depth);return M>=4?20:M===3?30:M===2?32:44})(v);case"paragraph":return(function(A,w){const M=String(A??"");if(!M)return 28;const N=Math.max(18,Math.floor(Math.max(320,w)/8)),T=M.split(/\r?\n/).length,C=Math.ceil(M.length/N);return Math.max(1,T,C)<=1?28:Pf(M,w,34)})(String((o=(i=v.raw)!=null?i:v.content)!=null?o:""),b);case"list":return(function(A,w){var M;const N=Array.isArray(A.items)?A.items:[];if(!N.length)return 48;const T=Math.max(48,30*N.length+12);let C=12;for(const E of N)C+=pke(iA(E)||String((M=E.raw)!=null?M:""),w);const I=Math.max(0,C-T);if(N.length>20){const E=Math.round(2.4*N.length);return Math.round(T+Math.max(E,Math.min(I,3*N.length)))}if(I<=0)return T;const S=N.length>8?8*N.length:I;return Math.round(T+Math.min(I,S))})(v,b);case"list_item":return Pf(String((r=(s=v.raw)!=null?s:v.content)!=null?r:""),b,34);case"blockquote":return Pf(String((a=(l=v.raw)!=null?l:v.content)!=null?a:""),b,56);case"table":return(function(A,w){const M=[...A.header?[A.header]:[],...Array.isArray(A.rows)?A.rows:[]];if(!M.length){const N=Array.isArray(A.children)?A.children.length:3;return Math.max(120,38*N+48)}return Math.max(120,Math.round(4+M.reduce((N,T)=>N+(function(C,I){const S=Math.max(1,C.length),E=Math.max(80,(I-32)/S),_=Math.max(10,Math.floor(E/8)),F=Math.max(1,...C.map(q=>{var P;const O=iA(q)||String((P=q?.raw)!=null?P:"");return Math.ceil(O.length/_)||1}));return 54+34*Math.max(0,F-1)+(S<=3&&C.some(wW)?14:0)})((function(C){var I;return Array.isArray(C?.cells)&&(I=C.cells)!=null?I:[]})(T),w),0)))})(v,b);case"code_block":{const A=String((u=v.language)!=null?u:"").trim().toLowerCase(),w=String((d=(c=v.code)!=null?c:v.raw)!=null?d:"");return A==="mermaid"?Ek(Ik(w)):A==="infographic"?Lk(Tk(w)):Pf(w,b,96,20)}case"math_block":return 72;case"image":return 220;case"admonition":case"vmr_container":case"html_block":return(function(A,w){var M,N,T;const C=A.match(/^\s*]*)>/i);return C&&!/(?:^|\s)open(?:\s|=|$)/i.test((M=C[1])!=null?M:"")?Pf(((T=(N=A.match(/]*>([\s\S]*?)<\/summary>/i))==null?void 0:N[1])==null?void 0:T.replace(/<[^>]*>/g,"").trim())||"Details",w,28,28):Pf(A,w,96)})(String((h=(f=v.raw)!=null?f:v.content)!=null?h:""),b);case"thematic_break":return 24;default:return Pf(String((g=(m=v.raw)!=null?m:v.content)!=null?g:""),b,40)}}function DN(e,t,n){return Math.min(Math.max(e,t),n)}const gke=["total","cacheHits","appendHits","tailHits","fullParses","chunkedParses"],vke=["tokenCloneMs","processTokensInputTokens","processTokensReusedTopLevelNodes","processTokensMs","safeMarkdownMs","tokenizeMs","htmlBlockPassesMs","parseMarkdownToStructureTotalMs"],yke=new Set(["attrs","data","items","header","payload","props","rows","cells","term","definition","sourceMap"]),CW=["raw","content","code","originalCode","updatedCode"],FN=new WeakMap,BN=new WeakMap;let kke=1;function Ea(){return typeof performance<"u"?performance.now():Date.now()}function RN(e){const t=e.stream;return t&&typeof t.stats=="function"?t.stats():null}function Rl(e){if(typeof e!="object"&&typeof e!="function"||e===null)return"";const t=e;let n=FN.get(t);return n||(n=kke++,FN.set(t,n)),String(n)}function ON(e,t,n,i={}){var o,s;const r=i.includeFinal!==!1,l={md:Rl(t),customMarkdownIt:Rl(n),requireClosingStrong:e.requireClosingStrong===!0,customHtmlTags:(o=e.customHtmlTags)!=null?o:[],includeSourceMap:e.includeSourceMap===!0,streamParse:(s=e.streamParse)!=null?s:"auto",validateLink:Rl(e.validateLink),preTransformTokens:Rl(e.preTransformTokens),postTransformTokens:Rl(e.postTransformTokens),postTransformNodes:Rl(e.postTransformNodes)};return r&&(l.final=e.final===!0),JSON.stringify(l)}function $N(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===10;)t-=1;const n=e.lastIndexOf(` -`,t-1)+1;return e.slice(n,t).trim()}function PN(e){const t=AW(e);return t.length>=2&&t.every(n=>{const i=n.trim();return i.length>=1&&i.replace(/^:/,"").replace(/:$/,"").split("").every(o=>o==="-")})}function AW(e){return e.includes("|")?e.replace(/^\|/,"").replace(/\|$/,"").split("|"):[]}function xW(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function sx(e){const t=String(e??"");return`${t.length}:${xW(t)}`}function oA(e,t=new WeakMap,n=0){if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="string")return`s:${(function(r){return r.length<=8192?sx(r):`${r.length}:${xW(r.slice(0,8192))}:truncated`})(e)}`;if(typeof e=="function")return`fn:${Rl(e)}`;if(typeof e!="object")return typeof e;const i=e,o=t.get(i);if(o)return`cycle:${o}`;if(n>=6)return`object:${Rl(i)}`;const s=Rl(i);if(t.set(i,s),Array.isArray(e)){const r=e.slice(0,200);return`a:${e.length}:${r.map(l=>oA(l,t,n+1)).join(",")}`}if(typeof e=="object"){const r=e,l=Object.keys(r).sort(),a=l.slice(0,80);return`o:${l.length}:${a.sort().map(u=>`${u}:${oA(r[u],t,n+1)}`).join(";")}`}return typeof e}function Pk(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"&&typeof e.raw=="string"}function SW(e,t=new WeakMap,n=0){return Array.isArray(e)?`a:${e.length}:${e.slice(0,200).map(i=>Pk(i)?Vd(i,t,n+1):SW(i,t,n+1)).join(",")}`:Pk(e)?Vd(e,t,n):oA(e,t,n)}function bke(e,t,n){return Object.keys(e).sort().filter(i=>i!=="children"&&!CW.includes(i)).map(i=>{const o=e[i];return typeof o=="string"?`${i}=s:${sx(o)}`:typeof o=="number"||typeof o=="boolean"||o==null?`${i}=${String(o)}`:typeof o=="function"?`${i}=fn:${Rl(o)}`:yke.has(i)&&(Array.isArray(o)||typeof o=="object")?`${i}=${SW(o,t,n+1)}`:o&&typeof o=="object"?`${i}=object:${Rl(o)}`:""}).filter(Boolean).join(";")}function wke(e){return CW.map(t=>{const n=e[t];return typeof n=="string"?`${t}=s:${sx(n)}`:""}).filter(Boolean).join(";")}function Vd(e,t=new WeakMap,n=0){const i=BN.get(e);if(i)return i;const o=e,s=t.get(o);if(s)return`node-cycle:${s}`;if(n>=6)return`node:${e.type}:${Rl(o)}`;const r=Rl(o);t.set(o,r);const l=(function(a,u,c){const d=a,f=Array.isArray(d.children)?d.children:[],h=f.length?f.slice(0,200).map(m=>Vd(m,u,c+1)).join("|"):"";return[a.type,wke(d),bke(d,u,c),f.length,h].join(":")})(e,t,n);return BN.set(o,l),l}function _W(e,t){return Vd(e)===Vd(t)}function rx(e,t,n){const i=Ea(),o=t==="stabilizeSignatureMs"?"stabilizeSignatureCallCount":"primeSignatureCallCount";try{return n()}finally{e[t]+=Ea()-i,e[o]+=1,e.signatureMs=e.stabilizeSignatureMs+e.primeSignatureMs,e.signatureCallCount=e.stabilizeSignatureCallCount+e.primeSignatureCallCount}}function zN(e,t,n){return rx(t,n,()=>Vd(e))}function MW(e,t,n){return zN(e,n,"stabilizeSignatureMs")===zN(t,n,"stabilizeSignatureMs")}function dy(e){return{reusedNodeCount:0,dirtyStartIndex:e>0?0:-1,stablePrefixNodeCount:0,dirtyTailNodeCount:e}}function jN(e,t,n){return e<0?0:Math.max(t.length,n.length)-e}function HN(e){return e.__markstreamHasCustomParserExtensions===!0||(function(t){var n;return Number((n=t.__markstreamRegisteredPluginCount)!=null?n:0)>0})(e)}function Cke(e,t){return e.length===t.length&&e===t}function lx(e,t,n=0){if(n>=4)return null;if(e.type!==t.type)return!1;const i=e,o=t,s=Object.keys(i).filter(c=>c!=="type"&&c!=="children").sort(),r=Object.keys(o).filter(c=>c!=="type"&&c!=="children").sort();if(s.length!==r.length)return!1;for(let c=0;c{i=lx(e,t)}),i??MW(e,t,n)}function Ske(e,t){const n={};for(const i of gke){const o=e[i],s=t?.[i];typeof o=="number"&&(n[i]=o-(typeof s=="number"?s:0))}return n}function _ke(e,t){var n;const i=$L(t.instanceMsgId),o=new Map,s=(n=t.smoothStreamingEnabled)!=null?n:D(()=>!1),r=U(t.renderContent.value);let l=[],a="",u="",c="",d=!1;const f=(function(){let q="",P=0,O=!1,R=!1,z=!1,H=!1;function j(){q="",P=0,O=!1,R=!1,z=!1,H=!1}function Q(ae){let W=!1;for(let G=0;G{if(!ae||!W.startsWith(ae)||W.length<=ae.length)return j(),[!0,0];let G=0;q!==ae&&(j(),Q(ae),G=ae.length);const oe=W.slice(ae.length),te=Q(oe);return q=W,[te,G+oe.length]}})();let h,m=0,g=0,v=Ea(),y=-1,b=0;function A(q){y=Number.isInteger(q)?q:0,b+=1}function w(){h&&(clearTimeout(h),h=void 0)}function M(){w();const q=t.renderContent.value;r.value!==q&&(r.value=q),v=Ea()}Ue([t.renderContent,t.effectiveFinal,s],([q,P,O])=>{r.value!==q&&(!O||P||(function(R,z){if(!R&&z||z.length<=80||z.length\s*|`{3,}|~{3,})/.test(H))||H.endsWith(` -`)&&!(function(j){const Q=$N(j);if(PN(Q))return!1;const ae=AW(Q);return ae.length>=2&&ae.some(W=>W.trim())})(z))})(r.value,q)?M():(function(){if(g+=1,h)return;const R=Math.max(0,(function(z){const H=z.parseCoalesceMs;return typeof H=="number"&&Number.isFinite(H)&&H>=0?H:80})(e)-(Ea()-v));R<=0?M():h=setTimeout(M,R)})())},{flush:"sync",immediate:!0}),Xd(w);const N=D(()=>{var q,P,O,R;return xpe(e.customHtmlTags,(q=e.parseOptions)==null?void 0:q.customHtmlTags,(R=(O=(P=t.customComponentsMap)==null?void 0:P.value)!=null?O:{},Object.entries(R).map(([z,H])=>{const j=wa(z);return H==null||!j||Vv(j)||Dj.has(j)||jv.has(j)?"":j}).filter(Boolean)))}),T=D(()=>{const{key:q,tags:P}=Spe(N.value);if(!q)return i;const O=o.get(q);if(O)return O;const R=$L(t.instanceMsgId,{customHtmlTags:P});return o.set(q,R),R}),C=D(()=>{const q=T.value;if(!e.customMarkdownIt)return q;const P=e.customMarkdownIt(q);return q.__markstreamHasCustomParserExtensions=!0,P.__markstreamHasCustomParserExtensions=!0,P}),I=D(()=>{var q,P;const O=(q=e.parseOptions)!=null?q:{},R=t.effectiveFinal.value,z=N.value,H=R!=null,j=z.length>0;return H||j||O.streamParse==null?$t($t($n($t({},O),{streamParse:(P=O.streamParse)==null||P}),H?{final:R}:{}),j?{customHtmlTags:z}:{}):O}),S=D(()=>{var q;return new Set(((q=I.value.customHtmlTags)!=null?q:[]).map(P=>String(P).trim().toLowerCase()).filter(Boolean))}),E=D(()=>ON(I.value,C.value,e.customMarkdownIt,{includeFinal:!0})),_=D(()=>ON(I.value,C.value,e.customMarkdownIt,{includeFinal:!1}));Ue([E,_],([q,P],[O,R])=>{O&&(q===O&&P===R||(M(),P!==R&&(l=[],c="")))},{flush:"sync"});const F=D(()=>{var q,P,O,R,z,H,j,Q,ae,W,G;if((q=e.nodes)!=null&&q.length)return l=[],c="",A(0),Bt(e.nodes.slice());const oe=r.value;if(!oe)return l=[],c="",A(-1),[];const te=t.debugPerformanceEnabled.value,ve=te?Ea():0,Te=C.value,Fe=E.value,ye=_.value;a&&Fe!==a&&(function(Ze){var lt,ft;(ft=(lt=Ze.stream)==null?void 0:lt.reset)==null||ft.call(lt)})(Te),u&&ye!==u&&(l=[],c="");const Y=Object.keys((O=(P=t.customComponentsMap)==null?void 0:P.value)!=null?O:{}).length>0||typeof I.value.postTransformNodes=="function";Y!==d&&(l=[],c="");const se=!Y&&l.length>0&&oe.startsWith(c)&&ye===u,V=te?RN(Te):null,le=te?{}:void 0,Se=HN(Te),be=!Se&&!Y,he=$t($t($n($t({},I.value),{__reuseStableTopLevelNodes:be}),Se?{__disableStreamParse:!0}:{}),le?{__timing:le}:{}),re=OH(oe,Te,he),J=te?Ea():0,fe=te?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let ke,Ce=te?dy(re.length):void 0,De=0,ie=0,me=0;if(se){const Ze=te?Ea():0,[lt,ft]=(function(Rt){var qt,Ut;const[Ie,Pe]=Rt.scanGlobalReferenceAppend(Rt.previousContent,Rt.content),qe=Rt.parseOptions;return[Rt.previousDirtyStartIndex>0&&qe.final!==!0&&!Rt.customMarkdownIt&&!HN(Rt.md)&&!Ie&&typeof qe.preTransformTokens!="function"&&typeof qe.postTransformTokens!="function"&&typeof qe.postTransformNodes!="function"&&((Ut=(qt=qe.customHtmlTags)==null?void 0:qt.length)!=null?Ut:0)===0?Rt.previousDirtyStartIndex:0,Pe]})({content:oe,previousContent:c,previousDirtyStartIndex:y,parseOptions:I.value,customMarkdownIt:e.customMarkdownIt,md:Te,scanGlobalReferenceAppend:f});me=ft;const Mt=lt<=0;if(fe){const Rt=(function(qt,Ut,Ie,Pe={}){var qe;if(!Ut.length)return{nodes:qt,metrics:dy(qt.length)};const vt=(qe=Pe.scanStartIndex)!=null?qe:0,It=Pe.reuseDirtyTail!==!1,Et=(function(ct,Be,Ge,mt=0){const Wt=Math.min(ct.length,Be.length);for(let zt=Math.min(Wt,Math.max(0,mt));ztVd(Ze[Mt]))})(ke,fe,ie):(function(Ze,lt=0){for(let ft=Math.max(0,lt);ft((z=V?.total)!=null?z:0);t.logPerf(lt?"parse(stream)":"parse(sync)",$t($t($t({rendererId:t.instanceMsgId,ms:Math.round(Ea()-ve),nodes:ke.length,contentLength:oe.length,parseCommitCount:m,parseCoalescedCount:g,nodeReuseMs:je,referenceDefinitionScanChars:me,signatureMs:(H=fe?.signatureMs)!=null?H:0,stabilizeSignatureMs:(j=fe?.stabilizeSignatureMs)!=null?j:0,primeSignatureMs:(Q=fe?.primeSignatureMs)!=null?Q:0,signatureCallCount:(ae=fe?.signatureCallCount)!=null?ae:0,stabilizeSignatureCallCount:(W=fe?.stabilizeSignatureCallCount)!=null?W:0,primeSignatureCallCount:(G=fe?.primeSignatureCallCount)!=null?G:0,stabilizeMs:De},Ce??{}),le?Object.fromEntries(vke.map(ft=>{var Mt;return[ft,(Mt=le[ft])!=null?Mt:0]})):{}),Ze?{streamMode:Ze.lastMode,streamDelta:Ske(Ze,V),streamStats:Ze}:{}))}return Bt(ke)});return{effectiveCustomHtmlTags:N,effectiveCustomHtmlTagsSet:S,mdBase:T,mdInstance:C,mergedParseOptions:I,getParsedNodesDirtyStartIndex:()=>y,getParsedNodesRevision:()=>b,parsedNodes:F}}function Mke(e){const{isClient:t}=e,n=U(new Set),i=new Map,o=new Map,s=new Map;function r(u){if(!t)return;const c=s.get(u);c!=null&&(window.clearTimeout(c),s.delete(u))}function l(){if(t)for(const u of s.values())window.clearTimeout(u);s.clear()}function a(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:i,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:s,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,c=!0){var d;c&&r(u),(function(f,h){if((g=(m=e.shouldTrackVisibleNodeIndices)==null?void 0:m.call(e))!=null&&!g)return;var m,g;const v=n.value,y=v.has(f);if(h){if(y)return;const A=new Set(v);return A.add(f),void(n.value=A)}if(!y)return;const b=new Set(v);b.delete(f),n.value=b})(u,c),c&&((d=e.onNodeMarkedVisible)==null||d.call(e,u))},resetNodeVisibleState:a,cleanupNodeVisibility:function(u){var c;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[f,h]of o.entries())f{const c=o.getSnapshot();t.value=c.source,n.value=c.visible,i.value=c.done},r=o.subscribe(s);s();const l=D(()=>Math.max(0,t.value.length-n.value.length)),a=D(()=>l.value===0),u=D(()=>i.value&&a.value);return Lv()&&Xd(()=>{r(),o.destroy()}),{source:t,visible:n,done:i,final:u,caughtUp:a,pendingChars:l,enqueue:c=>o.enqueue(c),finish:c=>o.finish(c),flush:()=>o.flush(),reset:c=>o.reset(c),pause:()=>o.pause(),resume:()=>o.resume()}}const Tke={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},WN=/auto|scroll|overlay/i;function Eke(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return WN.test(t)||WN.test(n)}function Lke(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const Nke={class:"m-0 p-0"},Dke=["data-probe"],Fke=Ni(ut($n($t({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(i){var o,s;return(s=(o=t.headingNodes)==null?void 0:o[i])!=null?s:null}return(i,o)=>(k(),L("div",{class:"height-estimation-probes",style:on({width:`${e.width}px`}),"aria-hidden":"true"},[x("div",{ref:s=>e.setParagraphWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[K(p(Sh),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),x("div",{ref:s=>e.setListItemWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[x("ul",Nke,[K(p(M1),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),x("div",{ref:s=>e.setListWrapper(s),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[K(p(I1),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(k(),L(Re,null,xt(6,s=>x("div",{key:`probe-heading-${s}`,ref_for:!0,ref:r=>e.setHeadingWrapper(s,r),class:ze(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${s}`},[K(p(p4),{node:n(s),"index-key":`probe-heading-${s}`},null,8,["node","index-key"])],10,Dke)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),qN=ut({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=D(()=>{var n,i;return Lk((i=i1(e.estimatedPreviewHeightPx))!=null?i:Tk(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return Rn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?Rn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[Rn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[Rn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),Rn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),Rn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>Rn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,Rn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[Rn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),Rn("div",{class:"absolute inset-0"},[Rn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),UN=ut({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=D(()=>{var n,i;return Ek((i=i1(e.estimatedPreviewHeightPx))!=null?i:Ik(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return Rn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?Rn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[Rn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[Rn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),Rn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>Rn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[Rn("span",{class:"action-icon block"})])))]):null,Rn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[Rn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),Rn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),Bke={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function Bs(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const Rke=["data-custom-id"],Oke=["data-node-index","data-node-type"],VN="typewriter-simple-cursor-target",IW=Ni(ut($n($t({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const i=e,o=n;function s($){if(!(typeof Event<"u"&&$ instanceof Event))return typeof $=="string"&&o("copy-code",$),void o("copy",$)}const r=vs(),l=en("markstreamNestedRendererProps",void 0);function a($){const ee=r?.vnode.props;return!!ee&&(Object.prototype.hasOwnProperty.call(ee,$)||Object.prototype.hasOwnProperty.call(ee,String($).replace(/[A-Z]/g,pe=>`-${pe.toLowerCase()}`)))}function u($){var ee,pe;const ge=i[$];return a($)?ge:(pe=(ee=l?.value)==null?void 0:ee[$])!=null?pe:ge}const c=D(()=>{return($=u("mode"))==="chat"||$==="minimal"||$==="docs"?$:"docs";var $}),d=D(()=>NN(u("typewriter"))),f=D(()=>d.value!=="off"),h=D(()=>u("domMode")==="minimal"?"minimal":"full"),m=D(()=>{return($={mode:c.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":$.codeRenderer==="pre"||$.codeRenderer==="shiki"||$.codeRenderer==="monaco"?$.codeRenderer:$.renderCodeBlocksAsPre===!1||$.mode==="docs"?"monaco":"pre";var $}),g=D(()=>Bke[c.value]),v=D(()=>{var $;return($=u("showTooltips"))!=null?$:g.value.showTooltips}),y=D(()=>{var $;return($=u("fade"))!=null?$:g.value.fade}),b=D(()=>{var $;return($=u("batchRendering"))!=null?$:g.value.batchRendering}),A=D(()=>{var $;return($=u("initialRenderBatchSize"))!=null?$:g.value.initialRenderBatchSize}),w=D(()=>{var $;return($=u("renderBatchSize"))!=null?$:g.value.renderBatchSize}),M=D(()=>{var $;return($=u("renderBatchDelay"))!=null?$:g.value.renderBatchDelay}),N=D(()=>{var $;return($=u("renderBatchBudgetMs"))!=null?$:g.value.renderBatchBudgetMs}),T=D(()=>{var $;return($=u("renderBatchIdleTimeoutMs"))!=null?$:g.value.renderBatchIdleTimeoutMs}),C=D(()=>{var $;return($=u("deferNodesUntilVisible"))!=null?$:g.value.deferNodesUntilVisible}),I=D(()=>{var $;return($=u("maxLiveNodes"))!=null?$:g.value.maxLiveNodes}),S=D(()=>{var $;return($=u("liveNodeBuffer"))!=null?$:g.value.liveNodeBuffer}),E=D(()=>{var $;return($=u("nodeVirtual"))!=null?$:g.value.nodeVirtual}),_={get content(){return i.content},get nodes(){return i.nodes},get final(){return i.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return i.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return h.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return v.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return i.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return i.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return y.value},get batchRendering(){return b.value},get initialRenderBatchSize(){return A.value},get renderBatchSize(){return w.value},get renderBatchDelay(){return M.value},get renderBatchBudgetMs(){return N.value},get renderBatchIdleTimeoutMs(){return T.value},get deferNodesUntilVisible(){return C.value},get maxLiveNodes(){return I.value},get liveNodeBuffer(){return S.value},get nodeVirtual(){return E.value},get virtualScroll(){return i.virtualScroll},get renderAsFragment(){return i.renderAsFragment}};function F($){o("height-change",$)}function q($){o("virtual-state-change",$)}function P($){o("anchor-change",$)}const O=U(),R=U(null),z=U(null),H=U(null),j=ho({1:null,2:null,3:null,4:null,5:null,6:null}),Q=U(!1),ae=new Map,W=U(0),G=U(0),oe=U({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function te($,ee){return typeof $!="string"?ee:$.trim()||ee}function ve($){const ee=Number($);return Number.isFinite(ee)&&ee>0?Math.max(1,Math.trunc(ee)):640}const Te=D(()=>{var $;const ee=($=_.viewportPriorityOptions)!=null?$:{},pe=te(ee.rootMargin,$h);return{rootMargin:pe,heavyBlockMargin:te(ee.heavyBlockMargin,pe),maxTargets:ve(ee.maxTargets)}}),Fe=D(()=>{var $;return($=Te.value.rootMargin)!=null?$:$h}),ye=D(()=>{var $;return($=Te.value.maxTargets)!=null?$:640});function Y(){var $,ee;if((($=i.virtualScroll)==null?void 0:$.enabled)!==!0)return null;const pe=(ee=i.virtualScroll)==null?void 0:ee.scrollRoot;return se(typeof pe=="function"?pe():pe)}function se($){return $?typeof HTMLElement<"u"&&$ instanceof HTMLElement?$:typeof $=="object"&&"value"in $?se($.value):typeof $=="object"&&"$el"in $?se($.$el):null:null}si(dW,Te);const{isClient:V,renderAsFragment:le,debugPerformanceEnabled:Se,resolvedShowTooltips:be,resolvedHtmlPolicy:he,inheritedSmoothStreaming:re,ownsTypewriterCursor:J}=(function($){const ee=typeof window<"u",pe=fm(),ge=en("markstreamHtmlPolicy",void 0),Ne=en("markstreamTypewriterCursor",void 0),We=en("markstreamSmoothStreaming",void 0),Xe=D(()=>$.renderAsFragment===!0),it=D(()=>!!($.debugPerformance&&ee&&typeof console<"u")),bt=D(()=>{var yt;if(typeof $.showTooltips=="boolean")return $.showTooltips;const et=(yt=pe.showTooltips)!=null?yt:pe["show-tooltips"];return et===""||et===!0||et==="true"||et!==!1&&et!=="false"&&void 0}),ot=D(()=>{var yt,et;return(et=(yt=$.htmlPolicy)!=null?yt:ge?.value)!=null?et:"safe"}),ht=D(()=>Ne?.value!==!0);return{isClient:ee,renderAsFragment:Xe,debugPerformanceEnabled:it,resolvedShowTooltips:bt,resolvedHtmlPolicy:ot,inheritedSmoothStreaming:We,inheritedTypewriterCursor:Ne,ownsTypewriterCursor:ht}})(_),{resolveViewportRoot:fe,resolveScrollContainer:ke,isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De,getOffsetTopWithinRoot:ie}=(function($,ee){function pe(){var it,bt;return(bt=(it=ee.scrollRoot)==null?void 0:it.call(ee))!=null?bt:null}function ge(it){if(typeof window>"u")return null;const bt=pe();if(bt)return bt;const ot=it??$.value;if(!ot)return null;const ht=ot.ownerDocument||document,yt=ht.scrollingElement||ht.documentElement;let et=ot;for(;et&&et!==ht.body&&et!==yt;){if(Eke(window.getComputedStyle(et))&&Lke(et))return et;et=et.parentElement}return null}function Ne(it){if(!ee.isClient)return!1;try{const bt=window.getComputedStyle(it);return!!(bt.display||"").toLowerCase().includes("flex")&&(bt.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function We(it,bt,ot){var ht,yt;if(ot)return Xe(bt);const et=it.scrollTop;if(!Ne(it))return et;const pt=et<0?-et:et;return Math.max(0,((ht=it.scrollHeight)!=null?ht:0)-((yt=it.clientHeight)!=null?yt:0))-pt}function Xe(it){var bt,ot,ht,yt,et;const pt=Number((bt=it.scrollingElement)==null?void 0:bt.scrollTop),St=Number((ht=(ot=it.documentElement)==null?void 0:ot.scrollTop)!=null?ht:0),Ct=Number((et=(yt=it.body)==null?void 0:yt.scrollTop)!=null?et:0);return Math.max(0,Number.isFinite(pt)?pt:0,Number.isFinite(St)?St:0,Number.isFinite(Ct)?Ct:0)}return{resolveViewportRoot:ge,resolveScrollContainer:function(it){var bt,ot,ht,yt;const et=pe();if(et)return et;const pt=ge((bt=it??$.value)!=null?bt:null);if(pt)return pt;const St=(yt=(ht=it?.ownerDocument)!=null?ht:(ot=$.value)==null?void 0:ot.ownerDocument)!=null?yt:typeof document<"u"?document:null;return St?.scrollingElement||St?.documentElement||null},isReverseFlexScrollRoot:Ne,getNormalizedScrollTop:We,getOffsetTopWithinRoot:function(it,bt){const ot=bt.ownerDocument||it.ownerDocument||document;if((function(pt,St){return pt===St.documentElement||pt===St.body||pt===St.scrollingElement})(bt,ot))return it.getBoundingClientRect().top+Xe(ot);const ht=bt.getBoundingClientRect(),yt=it.getBoundingClientRect(),et=We(bt,ot,!1);return yt.top-ht.top+et}}})(O,{isClient:V,scrollRoot:Y});si("markstreamShowTooltips",be),si("markstreamHtmlPolicy",he),si("markstreamTypewriter",f),si("markstreamFade",D(()=>_.fade!==!1)),si("markstreamTypewriterCursor",D(()=>!0)),si("markstreamTextStreamState",ae),si("markstreamStreamVersion",W),si("markstreamParseOptions",D(()=>_.parseOptions)),si("markstreamCustomMarkdownIt",D(()=>_.customMarkdownIt));const{smoothStreamingEnabled:me,renderContent:je,requestedFinal:Ze,effectiveFinal:lt}=(function($,ee){const pe=Ike($t($t({},Tke),$.smoothStreamingOptions)),ge=D(()=>{var et,pt,St;return $.smoothStreaming!==!1&&!((et=$.nodes)!=null&&et.length)&&($.smoothStreaming===!0||!((pt=ee.inheritedSmoothStreaming)!=null&&pt.value))&&($.smoothStreaming===!0||NN($.typewriter)!=="off"||((St=$.maxLiveNodes)!=null?St:0)<=0)}),Ne=U(!ee.isClient||$.smoothStreaming===!0);yn(()=>{Ne.value=!0});const We=D(()=>Ne.value&&ge.value),Xe=D(()=>{var et;return We.value?pe.visible.value:(et=$.content)!=null?et:""}),it=D(()=>{var et,pt;const St=(et=$.parseOptions)!=null?et:{};return(pt=$.final)!=null?pt:St.final}),bt=D(()=>{const et=it.value;return We.value&&et!=null?!!et&&pe.caughtUp.value:et});let ot=0,ht=!1;function yt(){ot=0,ht=!1}return Ue([()=>$.content,()=>$.nodes,We,it],([et,pt,St,Ct])=>{if(pt?.length)return yt(),void pe.reset("");const Vt=et??"";if(!St)return yt(),pe.reset(Vt),void(Ct&&pe.finish({flush:!0}));const Ft=pe.source.value;if(Vt){if(Vt!==Ft)if(Vt.startsWith(Ft)){const sn=Vt.slice(Ft.length),hn=pe.pendingChars.value;sn.length<=8?(ot++,ht||ot>=2&&hn<=8?(ht=!0,pe.reset(Vt)):pe.enqueue(sn)):(yt(),pe.enqueue(sn))}else yt(),pe.reset(Vt)}else yt(),pe.reset("");Ct&&pe.finish()},{immediate:!0}),{smoothStream:pe,smoothStreamingEligible:ge,smoothStreamingEnabled:We,renderContent:Xe,requestedFinal:it,effectiveFinal:bt}})(_,{isClient:V,inheritedSmoothStreaming:re}),ft=Ze.value===!0;si("markstreamSmoothStreaming",me);const Mt=U(!1),Rt=U(!1),qt=U(!1);let Ut="",Ie=!1,Pe=null;function qe(){V&&Pe!=null&&(window.clearTimeout(Pe),Pe=null)}function vt(){Mt.value=!1,qe()}function It($,ee){if(!Se.value)return;const pe=(function(){if(!Se.value)return null;const ge=Be(Et),Ne=Be(Lt),We=Math.max(ct,Ne);if(ge<=0&&We<=0)return null;const Xe={total:ge,maxPerFrame:We,byLabel:(it=Et,Object.fromEntries(Array.from(it.entries()).sort((bt,ot)=>ot[1]-bt[1]||bt[0].localeCompare(ot[0]))))};var it;return Et.clear(),Lt.clear(),ct=0,Xe})();console.info(`[markstream-vue][perf] ${$}`,pe?$n($t({},ee),{layoutReads:pe}):ee)}Ue([()=>_.indexKey,()=>_.customId],()=>{var $,ee;vt(),Rt.value=!1,qt.value=!(($=i.nodes)!=null&&$.length)&&Ze.value!==!0&&!!i.content,Ut=(ee=je.value)!=null?ee:"",Ie=Ut.length>0},{flush:"sync"}),Ue([()=>i.content,()=>i.nodes,Ze],([$,ee,pe])=>{!ee?.length&&pe!==!0&&$&&(qt.value=!0)},{flush:"sync",immediate:!0}),Ue([je,()=>i.nodes,Ze],([$,ee,pe])=>{const ge=$??"";return ee?.length||pe===!0?(vt(),Rt.value=!1,Ut=ge,void(Ie=!0)):(ge.length>0&&(qt.value=!0),Ie?(Ut&&ge.length>Ut.length&&ge.startsWith(Ut)?(Mt.value=!0,Rt.value=!0,V&&(qe(),Pe=window.setTimeout(()=>{var Ne;Pe=null,lt.value===!0||(Ne=i.nodes)!=null&&Ne.length||(vp(),Mt.value=!1,Qu())},1200))):(ge.length"u")return null;const We=window;if(We.__markstreamLayoutReadPerformance)return We.__markstreamLayoutReadPerformance;const Xe={total:0,maxPerFrame:0,byLabel:{}};return We.__markstreamLayoutReadPerformance=Xe,Xe})();Ne&&(Ne.total=Number(Ne.total||0)+1,Ne.byLabel[ge]=Number(Ne.byLabel[ge]||0)+1,Ne.currentFrameTotal=Number(Ne.currentFrameTotal||0)+1,Ne.frameScheduled||(Ne.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>mt(Ne),0):queueMicrotask(()=>mt(Ne)):window.requestAnimationFrame(()=>mt(Ne))))})($),Le||(Le=!0,V&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(Ge):typeof queueMicrotask!="function"?setTimeout(Ge,0):queueMicrotask(Ge)))}function zt($,ee){return Wt($),ee()}const xn=_.customId?`renderer-${_.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,zn=(function($){const ee=new Map;return{scope:$,cache:ee,clear:()=>ee.clear()}})(xn),io=xn;si(kW,zn);const yi=ys(()=>_.customId),{effectiveCustomHtmlTagsSet:Mo,mergedParseOptions:st,parsedNodes:Ye,getParsedNodesDirtyStartIndex:at,getParsedNodesRevision:Nn}=_ke(_,{instanceMsgId:xn,renderContent:je,effectiveFinal:lt,smoothStreamingEnabled:me,debugPerformanceEnabled:Se,customComponentsMap:yi,logPerf:It});Ue(Ye,()=>{Mt.value||zn.clear(),W.value+=1},{immediate:!0});const At=D(()=>({customId:_.customId,customHtmlTags:st.value.customHtmlTags,parseOptions:_.parseOptions,customMarkdownIt:_.customMarkdownIt,htmlPolicy:he.value,viewportPriority:_.viewportPriority,viewportPriorityOptions:Te.value,mode:c.value,domMode:_.domMode,codeRenderer:m.value,codeBlockStream:_.codeBlockStream,codeBlockDarkTheme:_.codeBlockDarkTheme,codeBlockLightTheme:_.codeBlockLightTheme,codeBlockMonacoOptions:_.codeBlockMonacoOptions,renderCodeBlocksAsPre:_.renderCodeBlocksAsPre,codeBlockMinWidth:_.codeBlockMinWidth,codeBlockMaxWidth:_.codeBlockMaxWidth,codeBlockProps:_.codeBlockProps,mermaidProps:_.mermaidProps,d2Props:_.d2Props,infographicProps:_.infographicProps,showTooltips:be.value,themes:_.themes,langs:_.langs,isDark:_.isDark,typewriter:f.value,smoothStreamingOptions:_.smoothStreamingOptions,parseCoalesceMs:_.parseCoalesceMs,fade:_.fade}));si("markstreamNestedRendererProps",At);const Zn=D(()=>Ye.value),Uo=D(()=>Ye.value.length),ji=U(null),Jr=U(null),lr=U(null),Xr=U(null),Yo=i.indexKey!=null&&String(i.indexKey).startsWith("list-item-"),Vo=!Yo&&_.customId?MN(_.customId):null,ar=D(()=>Vo?(Y8.value,MN(_.customId)):null),Di=D(()=>{var $;return!!(!le.value&&_.customId&&!Yo&&(($=ar.value)!=null&&$.enabled))}),Io=D(()=>!!(V&&Di.value)),ui=D(()=>{var $;return!!(!le.value&&(($=i.virtualScroll)!=null&&$.enabled))}),el=D(()=>ui.value),ur=U(!1);yn(()=>{ur.value=!0});const Yn=D(()=>!!(V&&ui.value));si("markstreamHostScrollManaged",Yn);const Jo=D(()=>!!(ur.value&&Yn.value)),oo=D(()=>Io.value||Yn.value),Fi=D(()=>Io.value||Jo.value),eo=D(()=>{var $;return oo.value&&(($=ar.value)==null?void 0:$.textEstimation)!==!1});function Kn(){const $=G.value||zt("getMeasuredContainerWidth.clientWidth",()=>{var ee;return((ee=O.value)==null?void 0:ee.clientWidth)||0});return Number.isFinite($)&&$>0?$:0}const ei=D(()=>{const $=Kn();return $>0?Math.max(1,Math.round($)):640}),oi=D(()=>{var $,ee;return!(lt.value!==!0||ui.value||c.value!=="chat"&&c.value!=="minimal"||a("maxLiveNodes")||a("liveNodeBuffer")||($=i.nodes)!=null&&$.length||qt.value||!(((ee=_.maxLiveNodes)!=null?ee:0)<=0))}),fi=D(()=>{var $;return oi.value?50:Math.max(1,($=_.maxLiveNodes)!=null?$:320)}),to=D(()=>{var $;return oi.value?16:Math.max(0,($=_.liveNodeBuffer)!=null?$:60)}),Dn=D(()=>{var $;return!le.value&&_.nodeVirtual!==!1&&!((($=_.maxLiveNodes)!=null?$:0)<=0&&!oi.value)&&(_.nodeVirtual===!0?Ye.value.length>0:Ye.value.length>fi.value)}),Ls=D(()=>Dn.value||Io.value||Yn.value),tl=D(()=>_.viewportPriority!==!1),ks=D(()=>!!tl.value&&!Q.value);var Mr;Mr=D(()=>tl.value),si(fW,Mr);const Bi=D(()=>{var $;return!(le.value||_.deferNodesUntilVisible===!1||(($=_.maxLiveNodes)!=null?$:0)<=0||Dn.value||Ye.value.length>900||_.viewportPriority===!1)}),Mi=lye($=>{var ee;return fe((ee=$??O.value)!=null?ee:null)},tl),{requestFrame:Zi,cancelFrame:xi,hasIdleCallback:yo,isTestEnv:so}=(function($){const ee=$.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,pe=$.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,ge=$.isClient&&typeof window.requestIdleCallback=="function",Ne=(function(){var We;if(typeof globalThis>"u"||!("process"in globalThis))return;const Xe=(We=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:We.value;return Xe?.env})();return{requestFrame:ee,cancelFrame:pe,hasIdleCallback:ge,isTestEnv:Ne?.NODE_ENV==="test"}})({isClient:V}),Bo=D(()=>lt.value===!0&&!ui.value),{resolvedBatchSize:Ns,resolvedInitialBatch:Xo,batchingEnabled:Ql,incrementalRenderingActive:js,renderedCount:no,previousRenderContext:Tl,adaptiveBatchSize:Oe,previousBatchConfig:X}=(function($,ee){var pe;const ge=D(()=>{var yt;const et=Math.trunc((yt=$.renderBatchSize)!=null?yt:80);return Number.isFinite(et)?Math.max(0,et):0}),Ne=D(()=>{var yt;const et=Math.trunc((yt=$.initialRenderBatchSize)!=null?yt:ge.value);return Number.isFinite(et)?Math.max(0,et):ge.value}),We=D(()=>!ee.renderAsFragment.value&&$.batchRendering!==!1&&ge.value>0&&ee.isClient&&!ee.isTestEnv),Xe=U(0),it=U({key:$.indexKey,total:0}),bt=U(Math.max(1,ge.value||1)),ot=D(()=>{var yt,et,pt;return We.value&&!((yt=ee.continuousStreaming)!=null&&yt.value)&&!((et=ee.forceFullRenderFinalContent)!=null&&et.value)&&((pt=$.maxLiveNodes)!=null?pt:0)<=0}),ht=U({batchSize:ge.value,initial:Ne.value,delay:(pe=$.renderBatchDelay)!=null?pe:16,enabled:ot.value});return{resolvedBatchSize:ge,resolvedInitialBatch:Ne,batchingEnabled:We,incrementalRenderingActive:ot,renderedCount:Xe,previousRenderContext:it,adaptiveBatchSize:bt,previousBatchConfig:ht}})(_,{isClient:V,isTestEnv:so,renderAsFragment:le,forceFullRenderFinalContent:Bo,continuousStreaming:D(()=>Rt.value&<.value!==!0)}),ue=D(()=>{var $;return!le.value&&_.batchRendering!==!1&&Ns.value>0&&!so&&(($=_.maxLiveNodes)!=null?$:0)<=0&&!Bo.value}),nt=D(()=>ue.value),kt=D(()=>oo.value||nt.value),Gt=D(()=>{var $;return kt.value&&(($=ar.value)==null?void 0:$.codeBlockEstimation)!==!1}),Bn=new Map,On=new Map,Gi=new WeakMap;let Ri=null;const Hi=new WeakMap,Oi=new Map,cr=[];let ko=[],bs=[],Ii=-1;const dr=Ga(cr),ro=new Set,Uu=U(0);let bo=0;const Yl=U(0),Xa=D(()=>(Yl.value,Array.from(Bn.entries()).sort(($,ee)=>$[0]-ee[0]))),Ir=U(null),wo=U(null);let Ds,El=null,eu=0,Tr=null;function lo(){Ds.markFallbackHeightPrefixDirty()}function tu($){return Ds.getFallbackNodeHeight($)}function Hs($,ee){return Ds.estimateHeightRange($,ee)}function Ro($){return Ds.estimateIndexForOffset($)}const{activeRestoreAnchor:es,getRelativeScrollTopWithinContainer:nl,setRelativeScrollTopWithinContainer:Jl,resolveAnchorOffset:Xl,clearRestoreReconcile:Er,scheduleRestoreReconcile:il,captureRestoreAnchor:nu,restoreAnchor:Sa,getAnchorDrift:Vu}=(function($){const{isClient:ee,containerRef:pe,parsedNodeCount:ge,requestFrame:Ne,cancelFrame:We,resolveScrollContainer:Xe,getNormalizedScrollTop:it,getOffsetTopWithinRoot:bt,isReverseFlexScrollRoot:ot,estimateIndexForOffset:ht,estimateHeightRange:yt,getFallbackNodeHeight:et,clamp:pt}=$,St=U(null);let Ct=null,Vt=[];function Ft(){const Sn=Xe(),Vn=pe.value;if(!Sn||!Vn)return null;const ti=Sn.ownerDocument||Vn.ownerDocument||document;if(Sn===ti.documentElement||Sn===ti.body||Sn===ti.scrollingElement){const qi=Vn.getBoundingClientRect();return Math.max(0,-qi.top)}return Math.max(0,it(Sn,ti,!1)-bt(Vn,Sn))}function sn(Sn){var Vn;const ti=Xe(),qi=pe.value;if(!ti||!qi)return;const Zs=Math.max(0,Sn),Fs=ti.ownerDocument||qi.ownerDocument||document,Ia=Fs.defaultView||(typeof window<"u"?window:null);if(ti===Fs.documentElement||ti===Fs.body||ti===Fs.scrollingElement){const lu=it(ti,Fs,!0)+qi.getBoundingClientRect().top;return void((Vn=Ia?.scrollTo)==null||Vn.call(Ia,0,Math.max(0,lu+Zs)))}EN(ti,Fs,bt(qi,ti)+Zs,{isReverseFlexScrollRoot:lu=>{var Qm;return(Qm=ot?.(lu))!=null&&Qm},getNormalizedScrollTop:it})}function hn(Sn){const Vn=ge.value,ti=pt(Sn.nodeIndex,0,Math.max(0,Vn-1));return yt(0,ti)+Math.max(0,Sn.offsetWithinNodePx)}function An(){if(Ct!=null&&(We?.(Ct),Ct=null),ee)for(const Sn of Vt)window.clearTimeout(Sn);Vt=[]}function bn(Sn){const Vn=hn(Sn),ti=Ft();ti!=null&&Math.abs(ti-Vn)<=.5||sn(Vn)}return{activeRestoreAnchor:St,getRelativeScrollTopWithinContainer:Ft,setRelativeScrollTopWithinContainer:sn,resolveAnchorOffset:hn,clearRestoreReconcile:An,applyRestoreAnchor:bn,scheduleRestoreReconcile:function(){St.value&&ee&&Ct==null&&(Ct=Ne?Ne(()=>{Ct=null,St.value&&bn(St.value)}):null,Ct==null&&St.value&&bn(St.value))},captureRestoreAnchor:function(){const Sn=Ft(),Vn=ge.value;if(Sn==null||Vn<=0)return null;const ti=pt(ht(Sn+1),0,Vn-1),qi=yt(0,ti),Zs=et(ti);return{nodeIndex:ti,offsetWithinNodePx:pt(Sn-qi,0,Math.max(0,Zs-1))}},restoreAnchor:function(Sn){const Vn=ge.value;if(St.value={nodeIndex:pt(Sn.nodeIndex,0,Math.max(0,Vn-1)),offsetWithinNodePx:Math.max(0,Sn.offsetWithinNodePx)},An(),bn(St.value),ee)for(const ti of[0,120,280,480])Vt.push(window.setTimeout(()=>{St.value&&bn(St.value)},ti))},getAnchorDrift:function(Sn){const Vn=Ft();return Vn==null?null:Vn-hn(Sn)}}})({isClient:V,containerRef:O,parsedNodeCount:Uo,requestFrame:Zi,cancelFrame:xi,resolveScrollContainer:()=>Ir.value||ke(),getNormalizedScrollTop:De,getOffsetTopWithinRoot:ie,isReverseFlexScrollRoot:Ce,estimateIndexForOffset:Ro,estimateHeightRange:Hs,getFallbackNodeHeight:tu,clamp:Ks}),{nodeHeights:ws,heightStats:ts,heightTreeSize:_a,heightSumTree:kf,heightKnownTree:iu,averageNodeHeight:ou,resetHeightMeasurements:Z,pruneHeightMeasurements:we,rebuildHeightTrees:$e,recordNodeHeight:Ve,removeNodeHeights:Qe,exportHeightCache:Ke,importHeightCache:rt,fenwickRangeSum:Ot}=(function($={}){const ee=ho({}),pe=ho({total:0,count:0}),ge=U(0),Ne=U([]),We=U([]);function Xe(){for(const et of Object.keys(ee))delete ee[Number(et)];pe.total=0,pe.count=0,ge.value=0,Ne.value=[],We.value=[]}function it(et,pt,St){for(let Ct=pt+1;Ct0;Ct-=Ct&-Ct)St+=et[Ct];return St}function ot(et){ge.value=et;const pt=new Array(et+1).fill(0),St=new Array(et+1).fill(0);for(const[Ct,Vt]of Object.entries(ee)){const Ft=Number(Ct),sn=Number(Vt);!Number.isFinite(Ft)||Ft<0||Ft>=et||!Number.isFinite(sn)||sn<=0||(it(pt,Ft,sn),it(St,Ft,1))}Ne.value=pt,We.value=St}function ht(et){if(!Number.isInteger(et)||et<0)return!1;const pt=ee[et];if(!Number.isFinite(pt)||pt<=0)return!1;if(delete ee[et],pe.total=Math.max(0,pe.total-pt),pe.count=Math.max(0,pe.count-1),ge.value>et){const St=Ne.value,Ct=We.value;St.length&&Ct.length&&(it(St,et,-pt),it(Ct,et,-1))}return!0}const yt=D(()=>pe.count>0?Math.max(12,pe.total/pe.count):32);return{nodeHeights:ee,heightStats:pe,heightTreeSize:ge,heightSumTree:Ne,heightKnownTree:We,averageNodeHeight:yt,resetHeightMeasurements:Xe,pruneHeightMeasurements:function(et){if(et<=0)return void Xe();let pt=0,St=0;for(const[Ct,Vt]of Object.entries(ee)){const Ft=Number(Ct),sn=Number(Vt);!Number.isFinite(Ft)||Ft<0||Ft>=et||!Number.isFinite(sn)||sn<=0?delete ee[Ft]:(pt+=sn,St++)}pe.total=pt,pe.count=St},rebuildHeightTrees:ot,recordNodeHeight:function(et,pt,St={}){(function(Ct,Vt,Ft={}){var sn;if(!Number.isFinite(Vt)||Vt<=0)return!1;const hn=ee[Ct];if(hn&&(Ft.allowShrink===!1&&VtCt){const An=Ne.value,bn=We.value;if(An.length&&bn.length)if(hn){const Sn=Vt-hn;Sn!==0&&it(An,Ct,Sn)}else it(An,Ct,Vt),it(bn,Ct,1)}Ft.notify!==!1&&((sn=$.onHeightRecorded)==null||sn.call($))})(et,pt,$n($t({},St),{notify:!0}))},removeNodeHeight:function(et,pt={}){var St;const Ct=ht(et);return Ct&&pt.notify!==!1&&((St=$.onHeightRecorded)==null||St.call($)),Ct},removeNodeHeights:function(et,pt={}){var St;let Ct=0;for(const Vt of et)ht(Number(Vt))&&Ct++;return Ct>0&&pt.notify!==!1&&((St=$.onHeightRecorded)==null||St.call($)),Ct},exportHeightCache:function(){return Object.entries(ee).map(([et,pt])=>({index:Number(et),height:Number(pt)})).filter(et=>Number.isFinite(et.index)&&et.index>=0&&Number.isFinite(et.height)&&et.height>0).sort((et,pt)=>et.index-pt.index)},importHeightCache:function(et,pt={}){var St;if(!Array.isArray(et))return;const Ct=ge.value;let Vt=!1;if(pt.mode!=="merge"){const Ft=Object.keys(ee);if(Ft.length>0){for(const sn of Ft)delete ee[Number(sn)];Vt=!0}}for(const Ft of et){const sn=Number(Ft.index),hn=Number(Ft.height);if(!Number.isInteger(sn)||sn<0||Ct>0&&sn>=Ct||!Number.isFinite(hn)||hn<=0)continue;const An=ee[sn];An&&Math.abs(An-hn)<=1||(ee[sn]=hn,Vt=!0)}Vt&&((function(){let Ft=0,sn=0;const hn=ge.value;for(const[An,bn]of Object.entries(ee)){const Sn=Number(An),Vn=Number(bn);!Number.isFinite(Sn)||Sn<0||hn>0&&Sn>=hn||!Number.isFinite(Vn)||Vn<=0?delete ee[Sn]:(Ft+=Vn,sn++)}pe.total=Ft,pe.count=sn})(),Ct>0&&ot(Ct),(St=$.onHeightRecorded)==null||St.call($))},fenwickRangeSum:function(et,pt,St){if(St<=pt)return 0;const Ct=bt(et,St-1);return pt<=0?Ct:Ct-bt(et,pt-1)}}})({onHeightRecorded:()=>{lo(),Yn.value&&qm(),es.value&&il(),wo.value&&pp(),ao("node-resize")}});function Yt($){Number.isInteger($)&&$>=0&&ro.add($)}function un($){for(const ee of $)Yt(Number(ee))}function Wn($){bo++;let ee=!0;try{const pe=$();return ee=pe!==!1,pe}finally{bo--,bo===0&&ee&&Uu.value++}}function jn(){ko=[],bs=[],Ii=-1,ro.clear(),dr.value=cr}function dn(){jn(),Wn(()=>Z()),Oi.clear()}function En($){!Number.isInteger($)||$<0||$>=Ye.value.length||Oi.set($,Dm($))}function Pn($,ee,pe={}){const ge=ws[$];Yt($),Ve($,ee,pe);const Ne=ws[$];return Object.is(ge,Ne)?(ro.delete($),!1):(Ne&&Ne>0?En($):ge&&Oi.delete($),!0)}function In($,ee){const pe=zt("getNodeLayoutHeight.slot.offsetHeight",()=>{var ge,Ne;return(Ne=(ge=Bn.get($))==null?void 0:ge.offsetHeight)!=null?Ne:0});return pe>0?pe:zt("getNodeLayoutHeight.content.offsetHeight",()=>ee.offsetHeight)}function _e($,ee={}){ee.mode!=="merge"?jn():un($.map(pe=>pe.index)),Wn(()=>rt($,ee)),m3()}const Ee=D(()=>Bi.value&&ks.value),tt=D(()=>{var $;return!le.value&&_.batchRendering!==!1&&Ns.value>0&&(($=_.maxLiveNodes)!=null?$:0)<=0}),Dt=D(()=>!le.value&&ft&<.value===!0&&!Dn.value&&!ui.value&&!Di.value&&!Ee.value&&!tt.value),an=D(()=>!!Mi&&Ee.value),cn=D(()=>Dn.value||Yn.value),{focusIndex:Mn,liveRange:gn,updateLiveRange:Wi}=(function($,ee){const{parsedNodeCount:pe,virtualizationEnabled:ge,maxLiveNodesResolved:Ne,liveNodeBufferResolved:We,clamp:Xe}=ee,it=We??D(()=>{var ht;return Math.max(0,(ht=$.liveNodeBuffer)!=null?ht:60)}),bt=U(0),ot=ho({start:0,end:0});return{liveNodeBufferResolved:it,focusIndex:bt,liveRange:ot,updateLiveRange:function(){const ht=pe.value;if(!ge.value||ht===0)return ot.start=0,void(ot.end=ht);const yt=Math.min(Ne.value,ht),et=it.value,pt=Xe(bt.value-et,0,Math.max(0,ht-yt));ot.start=pt,ot.end=Math.min(ht,pt+yt)}}})(_,{parsedNodeCount:Uo,virtualizationEnabled:Dn,maxLiveNodesResolved:fi,liveNodeBufferResolved:to,clamp:Ks}),Oo=new Map,Ws=new Map,Lr=new Map,bf=[],Ma=new Map,su=new Set,Tm=U(0);let wf=!1;const Em=D(()=>(Tm.value,su.size)),fr=new Map,qs=new Map,d2=U(0),ru=D(()=>{d2.value;let $=0;for(const ee of fr.values())$+=Math.max(0,ee);return $});let Nr=null;const Cf=D(()=>{if(!Dn.value)return Ye.value.length;const $=to.value,ee=Math.max(gn.end+$,Xo.value),pe=Math.min(Ye.value.length,ee);return Math.max(no.value,pe)});function rp(){wf||(wf=!0,queueMicrotask(()=>{wf=!1,Tm.value+=1}))}function lp($,ee,pe="node-resize"){if(!V||typeof window>"u")return null;const ge=window.setTimeout(()=>{su.delete(ge)&&rp();try{ee()}finally{ao(pe)}},Math.max(0,$));return su.add(ge),rp(),ge}function Me($){V&&$!=null&&(su.delete($)&&rp(),window.clearTimeout($))}function dt(){if(V&&typeof window<"u")for(const $ of su)window.clearTimeout($);su.size&&(su.clear(),rp()),bf.length=0,Lr.clear()}function Je($){R.value=$}function wt($){z.value=$}function tn($){H.value=$}const{cancelScheduledFocusSync:vn,scheduleFocusSync:kn}=(function($){const{isClient:ee,containerRef:pe,virtualizationEnabled:ge,requestFrame:Ne,cancelFrame:We,syncFocusToScroll:Xe}=$;let it=null;function bt(){var ht,yt,et;return(et=(yt=(ht=pe.value)==null?void 0:ht.ownerDocument)==null?void 0:yt.defaultView)!=null?et:typeof window<"u"?window:null}function ot(){if(!it)return;const ht=bt();it.viaTimeout?ht?ht.clearTimeout(it.id):clearTimeout(it.id):We?.(it.id),it=null}return{cancelScheduledFocusSync:ot,scheduleFocusSync:function(ht={}){if(!ge.value)return;if(!ee)return void Xe(!0);if(ht.immediate)return ot(),void Xe(!0);if(it)return;const yt=()=>{it=null,Xe()};if(Ne)return void(it={id:Ne(yt),viaTimeout:!1});const et=bt();it={id:et?et.setTimeout(yt,16):setTimeout(yt,16),viaTimeout:!0}}}})({isClient:V,containerRef:O,virtualizationEnabled:Dn,requestFrame:Zi,cancelFrame:xi,syncFocusToScroll:function($=!1){var ee;if(!Dn.value)return;const pe=Ir.value||ke();if(!pe)return;const ge=pe.ownerDocument||((ee=O.value)==null?void 0:ee.ownerDocument)||document,Ne=ge?.defaultView||(typeof window<"u"?window:null),We=pe===ge?.documentElement||pe===ge?.body,Xe=Ye.value.length;if(Xe<=0)return;if(!We&&Xe>0&&Ce(pe)){const Ct=zt("syncFocusToScroll.clientHeight",()=>pe.clientHeight||0),Vt=zt("syncFocusToScroll.scrollTop",()=>pe.scrollTop),Ft=Vt<0?-Vt:Vt;return void f2(Ks((it=Math.max(0,Ft)+.5*Math.max(0,Ct),Ds.estimateIndexForOffsetFromEnd(it)),0,Math.max(0,Xe-1)),$)}var it;const bt=(function(Ct,Vt,Ft,sn){const hn=O.value;if(!hn)return null;const An=sn?0:zt("syncFocusToScroll.model.root.getBoundingClientRect",()=>Ct.getBoundingClientRect().top),bn=zt("syncFocusToScroll.model.container.getBoundingClientRect",()=>hn.getBoundingClientRect().top),Sn=Math.max(0,An-bn),Vn=sn?zt("syncFocusToScroll.model.viewport.clientHeight",()=>{var ti,qi,Zs,Fs;return(Fs=(Zs=(qi=Ft?.innerHeight)!=null?qi:(ti=Vt.documentElement)==null?void 0:ti.clientHeight)!=null?Zs:Ct.clientHeight)!=null?Fs:0}):zt("syncFocusToScroll.model.root.clientHeight",()=>Ct.clientHeight);return Ks(Ro(Sn+.5*Math.max(0,Vn)),0,Math.max(0,Ye.value.length-1))})(pe,ge,Ne,We);if(bt!=null)return void f2(bt,$);const ot=We?null:zt("syncFocusToScroll.root.getBoundingClientRect",()=>pe.getBoundingClientRect()),ht=We?0:ot.top,yt=We?zt("syncFocusToScroll.viewport.clientHeight",()=>{var Ct,Vt;return(Vt=(Ct=Ne?.innerHeight)!=null?Ct:pe.clientHeight)!=null?Vt:0}):ot.bottom,et=Xa.value;let pt=null,St=null;for(const[Ct,Vt]of et){if(!Vt)continue;const Ft=zt("syncFocusToScroll.slot.getBoundingClientRect",()=>Vt.getBoundingClientRect());Ft.bottom<=ht||Ft.top>=yt||(pt==null&&(pt=Ct),St=Ct)}if(pt==null||St==null){const Ct=O.value;if(!Ct)return;const Vt=We?{top:0}:zt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>pe.getBoundingClientRect()),Ft=zt("syncFocusToScroll.fallback.scrollTop",()=>De(pe,ge,We)),sn=We?(()=>{const An=zt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>Ct.getBoundingClientRect()),bn=(We?0:Vt.top)-An.top;return Math.max(0,bn)})():(()=>{const An=ie(Ct,pe);return Math.max(0,Ft-An)})(),hn=We?zt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var An,bn,Sn,Vn;return(Vn=(Sn=(bn=Ne?.innerHeight)!=null?bn:(An=ge?.documentElement)==null?void 0:An.clientHeight)!=null?Sn:pe.clientHeight)!=null?Vn:0}):zt("syncFocusToScroll.fallback.root.clientHeight",()=>pe.clientHeight);return void f2(Ks(Ro(sn+.5*Math.max(0,hn)),0,Math.max(0,Ye.value.length-1)),!0)}f2(Math.round((pt+St)/2),$)}}),{visibleNodeIndices:Jn,nodeVisibilityHandles:_n,nodeVisibilityWatchStops:Qi,nodeVisibilityFallbackTimers:Dr,clearVisibilityFallback:Us,markNodeVisible:Vs,cleanupNodeVisibility:Ku,destroyNodeVisibilityState:Zu}=Mke({isClient:V,shouldTrackVisibleNodeIndices:()=>Ee.value,shouldCleanupNodeVisibility:()=>Dn.value,onNodeMarkedVisible:$=>{Dn.value?kn():Mn.value=Ks($,0,Math.max(0,Ye.value.length-1))},onNodeVisibilityCleaned:$=>{Bn.delete($)&&D_()}}),{cleanupScrollListener:r_,setupScrollListener:OG}=(function($){const{isClient:ee,virtualizationEnabled:pe,listenerEnabled:ge,scrollRootElement:Ne,resolveScrollContainer:We,scheduleFocusSync:Xe,onScroll:it}=$;let bt=null,ot=null;function ht(){bt&&(bt(),bt=null),ot=null,Ne.value=null}function yt(et){const pt=$.getScrollTop?$.getScrollTop(et):et.scrollTop;return Math.max(0,Number.isFinite(pt)?Math.abs(pt):0)}return{cleanupScrollListener:ht,setupScrollListener:function(){if(!ee)return;if(!((et=ge?.value)!=null?et:pe.value))return void ht();var et;const pt=We();if(!pt)return void ht();if(Ne.value===pt&&bt)return;ht(),ot=yt(pt);const St=()=>{if(it?.(),pe.value){const Ct=(function(Vt){const Ft=yt(Vt),sn=ot;ot=Ft;const hn=Math.max(480,.75*(Vt.clientHeight||0));return sn==null?Ft>hn?{immediate:!0}:void 0:Math.abs(Ft-sn)>hn?{immediate:!0}:void 0})(pt);Ct?Xe(Ct):Xe()}};pt.addEventListener("scroll",St,{passive:!0}),Ne.value=pt,bt=()=>{pt.removeEventListener("scroll",St)}}}})({isClient:V,virtualizationEnabled:Dn,listenerEnabled:cn,scrollRootElement:Ir,resolveScrollContainer:ke,scheduleFocusSync:kn,onScroll:function(){const $=wo.value;if(!$)return;const ee=Nm();if(!ee||(function(ge){if($m()>=eu)return Tr=null,!1;const Ne=Tr;if(Ne==null)return!0;const We=Math.abs(ge.scrollTop-Ne)<=2;return We||(Tr=null),We})(ee))return;const pe=w_(ee);pe!=null?(pe<-32||Math.abs(Math.max(0,pe)-Math.max(0,$.distanceFromBottomPx))>32)&&hp("restore"):hp("restore")},getScrollTop:$=>{var ee;const pe=$.ownerDocument||((ee=O.value)==null?void 0:ee.ownerDocument)||document,ge=$===pe.documentElement||$===pe.body||$===pe.scrollingElement;return zt("scrollListener.getScrollTop",()=>De($,pe,ge))}});function f2($,ee=!1){const pe=Ks($,0,Math.max(0,Ye.value.length-1));!ee&&Math.abs(pe-Mn.value)<=1||(Mn.value=pe,Wi())}function Ks($,ee,pe){return Math.min(Math.max($,ee),pe)}function K4($=Ye.value.length){const ee=at();return!Number.isInteger(ee)||ee<0?$:Ks(ee,0,$)}function Z4($){return $?.firstElementChild}function l_($,ee){var pe;return $?(pe=$.matches)!=null&&pe.call($,ee)?$:$.querySelector(ee):null}function $G($,ee){$<1||$>6||(j[$]=ee)}function a_(){if(!oo.value)return void(G.value=0);const $=zt("updateExperimentContainerWidth.clientWidth",()=>{var ee,pe;return(pe=(ee=O.value)==null?void 0:ee.clientWidth)!=null?pe:0});G.value=$>0?$:0}let Lm=null;function G4(){Lm?.disconnect(),Lm=null}const u_=Dg("ViewportDeferredMarkdownCodeBlockNode",_u({loader:()=>co(null,null,function*(){return(yield Qo(()=>import("./index5-Cs7H224C.js"),__vite__mapDeps([6,4,5]))).default}),loadingComponent:Fk,delay:0,suspensible:!1}),Fk);function c_($){return $===u_}const d_=D(()=>m.value==="pre"?cl:m.value==="shiki"?u_:U8);function f_(){var $;return(($=_.codeBlockProps)==null?void 0:$.showHeader)!==!1}function h_($,ee,pe){const ge=ws[ee],Ne=typeof ge=="number"&&ge>0;if(eo.value&&!Ne&&!(function(We){return!!yi.value.paragraph&&(We.type==="paragraph"||We.type==="list_item"||We.type==="list")})($)){const We=yW($,pe,oe.value);if(We)return We}if(Gt.value&&$.type==="code_block"){const We=(function(Xe){if(Xe.type!=="code_block")return null;const it=U_(Xe,C2(Xe));return c_(it)?"markdown":it===cl?"pre":it===d_.value||it===U8?"monaco":null})($);if(We==="monaco"||We==="markdown"||We==="pre")return(function(Xe,it){var bt,ot,ht;if(!Xe||Xe.type!=="code_block")return null;const yt=it.rendererKind,et=yt!=="pre"&&it.showHeader!==!1,pt=!!Xe.diff;let St=0,Ct=500;if(yt==="monaco"){const Ft=(bt=it.monacoOptions)!=null?bt:{},sn=e5(Xe,Ft,it.width),hn=(function(bn){const Sn=typeof bn?.fontSize=="number"&&bn.fontSize>0?bn.fontSize:12;return typeof bn?.lineHeight=="number"&&bn.lineHeight>0?bn.lineHeight:Math.round(1.5*Sn)})(Ft),An=(function(bn,Sn){var Vn,ti;const qi=typeof((Vn=bn?.padding)==null?void 0:Vn.top)=="number"?bn.padding.top:Sn?0:8,Zs=typeof((ti=bn?.padding)==null?void 0:ti.bottom)=="number"?bn.padding.bottom:Sn?0:8;return Math.max(0,qi)+Math.max(0,Zs)})(Ft,pt);Ct=typeof Ft.MAX_HEIGHT=="number"&&Ft.MAX_HEIGHT>0?Ft.MAX_HEIGHT:500,St=Math.round(sn*hn+An)}else if(yt==="markdown"){const Ft=e5(Xe);St=Math.round(21*Ft+32)}else{const Ft=e5(Xe);St=Math.round(28*Ft),Ct=Number.POSITIVE_INFINITY}const Vt=Math.max(1,Math.min(St,Ct));return $t({kind:"code-block",height:Math.round(Vt+(et?40:0)),contentHeight:Vt,rendererKind:yt},pt&&yt==="monaco"?{diffInline:J7((ot=it.monacoOptions)!=null?ot:{},(ht=it.width)!=null?ht:0)}:{})})($,{rendererKind:We,monacoOptions:_.codeBlockMonacoOptions,showHeader:f_(),width:pe})}return null}v1(()=>{if(Uu.value,bo>0)return;const $=Ye.value,ee=Nn();if(!$.length||!kt.value)return ko=[],bs=[],Ii=-1,ro.clear(),void(dr.value=cr);const pe=G.value||zt("estimatedNodeHeights.clientWidth",()=>{var ot;return((ot=O.value)==null?void 0:ot.clientWidth)||0});if(!Number.isFinite(pe)||pe<=0)return ko=[],bs=[],Ii=-1,ro.clear(),void(dr.value=cr);const ge=(function(ot){return[Math.round(ot),eo.value,Gt.value,oe.value,_.codeBlockMonacoOptions,f_(),m.value,yi.value,Y8.value]})(pe),Ne=ko.length<=$.length&&(Xe=ge,(We=bs).length===Xe.length&&We.every((ot,ht)=>Object.is(ot,Xe[ht])));var We,Xe;const it=Ne&&Ii===ee?$.length:Ne?K4($.length):0,bt=Ne?Array.from(ro):[];ko.length=$.length;for(let ot=it;ot<$.length;ot++)ko[ot]=h_($[ot],ot,pe);for(const ot of bt)ot>=0&&ot<$.length&&otdr.value);Ds=(function($){let ee=!0,pe=[0],ge="";function Ne(ht){var yt;const et=$.nodeHeights[ht];if(Number.isFinite(et)&&et>0)return et;const pt=$.parsedNodes.value[ht],St=pt?.type,Ct=!!((yt=$.hasCustomParagraphComponent)!=null&&yt.call($)),Vt=$.estimatedNodeHeights.value[ht],Ft=Vt?.height;if(!(function(hn,An,bn){return!!(bn&&An?.kind==="simple-text"&&(hn==="paragraph"||hn==="list_item"||hn==="list"))})(St,Vt,Ct)&&Number.isFinite(Ft)&&Ft>0)return Ft;const sn=mke(pt,$.getContainerWidth()||640);return St==="heading"||St==="paragraph"&&sn<=28&&(function(hn,An){if(An)return!1;const bn=hn.children;return!Array.isArray(bn)||!bn.length||bn.every(bW)})(pt,Ct)?sn:Math.max($.averageNodeHeight.value,sn)}function We(){var ht;const yt=$.parsedNodes.value.length,et=$.getPrefixCacheKeyParts().join(":");if(!ee&&ge===et)return pe;const pt=new Array(yt+1);pt[0]=0;for(let St=0;St=((yt=St[pt])!=null?yt:0))return pt-1;let Ct=0,Vt=pt-1,Ft=pt-1;for(;Ct<=Vt;){const sn=Ct+Vt>>1;((et=St[sn+1])!=null?et:0)>=ht?(Ft=sn,Vt=sn-1):Ct=sn+1}return Ft}function it(ht,yt){var et,pt;if(ht>=yt)return 0;if($.heightEstimationActive.value)return(function(Vt,Ft){var sn,hn;const An=$.parsedNodes.value.length,bn=DN(Math.trunc(Vt),0,An),Sn=DN(Math.trunc(Ft),bn,An);if(bn>=Sn)return 0;const Vn=We();return((sn=Vn[Sn])!=null?sn:0)-((hn=Vn[bn])!=null?hn:0)})(ht,yt);if($.heightTreeSize.value!==$.parsedNodes.value.length){let Vt=0;for(let Ft=ht;Ftbn<=0?0:$.fenwickRangeSum(Ct,0,bn)+(bn-$.fenwickRangeSum(Vt,0,bn))*St;let sn=0,hn=et.length-1,An=et.length-1;for(;sn<=hn;){const bn=sn+hn>>1;Ft(bn+1)>=ht?(An=bn,hn=bn-1):sn=bn+1}return An}let pt=ht;for(let St=0;St0||ht++}return ht}return{markFallbackHeightPrefixDirty:function(){ee=!0},getFallbackNodeHeight:Ne,estimateHeightRange:it,estimateIndexForOffset:bt,estimateIndexForOffsetFromEnd:function(ht){var yt,et;const pt=$.parsedNodes.value;if(!pt.length)return 0;if(ht<=0)return Math.max(0,pt.length-1);if($.heightEstimationActive.value){const Ct=(yt=We()[pt.length])!=null?yt:0;return Xe(Math.max(0,Ct-ht))}if($.heightTreeSize.value===pt.length){const Ct=it(0,pt.length);return bt(Math.max(0,Ct-ht))}let St=ht;for(let Ct=pt.length-1;Ct>=0;Ct--){const Vt=(et=$.nodeHeights[Ct])!=null?et:$.averageNodeHeight.value;if(St<=Vt)return Ct;St-=Vt}return 0},getEstimatedNodeHeightCount:ot,buildVirtualHeightSummary:function(ht){var yt;const et=$.parsedNodes.value.length;return{totalNodes:et,measuredCount:$.heightStats.count,estimatedCount:ot(),averageNodeHeight:$.averageNodeHeight.value,topSpacerHeight:ht.topSpacerHeight,bottomSpacerHeight:ht.bottomSpacerHeight,estimatedTotalHeight:it(0,et),width:(yt=ht.width)!=null?yt:$.getContainerWidth()}}}})({parsedNodes:Ye,nodeHeights:ws,heightStats:ts,heightTreeSize:_a,heightSumTree:kf,heightKnownTree:iu,averageNodeHeight:ou,heightEstimationActive:oo,estimatedNodeHeights:ap,getContainerWidth:Kn,hasCustomParagraphComponent:()=>!!yi.value.paragraph,getPrefixCacheKeyParts:()=>{var $;const ee=cg(G.value||zt("getFallbackHeightPrefix.clientWidth",()=>{var ge;return((ge=O.value)==null?void 0:ge.clientWidth)||0})),pe=(($=i.virtualScroll)==null?void 0:$.measurementKey)==null?"":String(i.virtualScroll.measurementKey);return[Ye.value.length,ts.count,Math.round(ts.total),Math.round(100*ou.value),pe,ee,oo.value?1:0,Y8.value,W.value,yi.value.paragraph?1:0]},fenwickRangeSum:Ot}),Ue(()=>Ye.value.length,$=>{var ee;lo(),$<=0?dn():($<_a.value&&(ee=$,jn(),Wn(()=>we(ee))),$!==_a.value&&$e($))},{immediate:!0});const PG=D(()=>{if(!Dn.value)return Ye.value.map((ge,Ne)=>({node:ge,index:Ne}));const $=Ye.value.length,ee=Ks(gn.start,0,$),pe=Ks(gn.end,ee,$);return Ye.value.slice(ee,pe).map((ge,Ne)=>({node:ge,index:ee+Ne}))}),Q4=D(()=>Dn.value?Hs(0,Math.min(gn.start,Ye.value.length)):0),Y4=D(()=>{if(!Dn.value)return 0;const $=Ye.value.length;return Hs(Math.min(gn.end,$),$)});function p_(){return Ds.buildVirtualHeightSummary({topSpacerHeight:Q4.value,bottomSpacerHeight:Y4.value,width:Af()})}function zG(){const $=Ye.value,ee=p_();return $n($t({},ee),{probe:{paragraphReady:!!oe.value.paragraph,listItemReady:!!oe.value.listItem,listWrapperOverhead:oe.value.listWrapperOverhead,headingReadyLevels:Object.entries(oe.value.headings).filter(([,pe])=>!!pe).map(([pe])=>Number(pe))},nodes:$.map((pe,ge)=>{var Ne,We,Xe,it,bt,ot,ht,yt,et;return{index:ge,type:pe.type,estimateKind:(We=(Ne=ap.value[ge])==null?void 0:Ne.kind)!=null?We:null,rendererKind:(it=(Xe=ap.value[ge])==null?void 0:Xe.rendererKind)!=null?it:null,estimatedHeight:(ot=(bt=ap.value[ge])==null?void 0:bt.height)!=null?ot:null,estimatedContentHeight:(yt=(ht=ap.value[ge])==null?void 0:ht.contentHeight)!=null?yt:null,measuredHeight:(et=ws[ge])!=null?et:null}})})}function J4(){return i.indexKey!=null?String(i.indexKey):ui.value?`virtual-${Co()}`:"markdown-renderer"}function m_($){const ee=String($),pe=`${J4()}-`;if(!ee.startsWith(pe))return null;const ge=ee.slice(pe.length).match(/^(\d+)(?:$|-)/);if(!ge)return null;const Ne=Number(ge[1]);return!Number.isInteger(Ne)||Ne<0||Ne>=Ye.value.length?null:Ne}function Co(){var $,ee,pe;const ge=($=i.virtualScroll)==null?void 0:$.sessionKey;return String(ge!=null&&ge!==""?ge:(pe=(ee=i.indexKey)!=null?ee:_.customId)!=null?pe:xn)}function ns(){var $;const ee=($=i.virtualScroll)==null?void 0:$.threadKey;return ee==null||ee===""?void 0:String(ee)}const jG=D(()=>{var $,ee,pe;return(pe=ns())!=null?pe:String((ee=($=i.indexKey)!=null?$:_.customId)!=null?ee:xn)});function X4($){var ee;return($??"")===((ee=ns())!=null?ee:"")}function Gu(){var $,ee,pe;return ee=($=i.virtualScroll)==null?void 0:$.measurementKey,pe=(function(){const ge=m.value;return(function(Ne){var We,Xe;const it=Ne.renderer,bt=it==="monaco"?Ne.codeBlockMonacoOptions:void 0,ot=Ne.codeBlockProps,ht=it==="shiki";return[Ne.isDark?"dark":"light",it==="monaco"?"code-rich":it==="pre"?"code-pre":"code-shiki",Ne.codeBlockStream===!1?"code-static":"code-stream",Bs(Ne.codeBlockMinWidth),Bs(Ne.codeBlockMaxWidth),...ht?[r2e((We=ot?.themes)!=null?We:Ne.themes,(Xe=ot?.langs)!=null?Xe:Ne.langs)]:[],Bs(bt?.fontSize),Bs(bt?.lineHeight),Bs(bt?.fontFamily),Bs(bt?.tabSize),Bs(bt?.MAX_HEIGHT),Bs(bt?.wordWrap),Bs(bt?.wrappingIndent),Bs(bt?.padding),Bs(ot?.showHeader),Bs(ot?.showCopyButton),Bs(ot?.showExpandButton),Bs(ot?.showPreviewButton),Bs(ot?.showCollapseButton),Bs(ot?.showFontSizeButtons)].join("\0")})({renderer:ge,isDark:_.isDark,codeBlockStream:_.codeBlockStream,codeBlockMinWidth:_.codeBlockMinWidth,codeBlockMaxWidth:_.codeBlockMaxWidth,codeBlockMonacoOptions:ge==="monaco"?_.codeBlockMonacoOptions:void 0,codeBlockProps:_.codeBlockProps,themes:ge==="shiki"?_.themes:void 0,langs:ge==="shiki"?_.langs:void 0})})(),[ee==null?"":String(ee),pe].join("\0")}function Af(){return Kn()}const h2=D(()=>cg(Af())),Ll=D(()=>[Gu(),h2.value].join("\0")),HG=D(()=>{var $;return ui.value?["virtual",($=ns())!=null?$:"",Co(),Ll.value].join("\0"):i.indexKey});function up(){d2.value+=1}function e3($){return!(!$||!Number.isInteger($.index)||$.index<0||$.index>=Ye.value.length||$.sessionKey!==Co()||$.threadKey!==ns()||$.layoutEpochKey!==Ll.value)}function g_($){const ee=String($),pe=qs.get(ee);return pe?e3(pe)?pe.index:null:m_(ee)}function v_($="async-node"){(fr.size||qs.size)&&(fr.clear(),qs.clear(),up(),ao($))}const cp=en(HC,null),t3={reportHeight($,ee){if(!Yn.value)return;const pe=g_($);if(pe==null)return;const ge=Oo.get(pe);if(!ge)return;const Ne=Number(ee),We=In(pe,ge);(function(Xe,it,bt={}){Wn(()=>Pn(Xe,it,bt))})(pe,Number.isFinite(Ne)&&Ne>0?Math.max(Ne,We||0):We)},markPending($){if(!Yn.value)return;const ee=m_($);ee!=null&&(function(pe,ge){var Ne;const We=qs.get(pe);if(We&&e3(We))return fr.set(pe,Math.max(0,(Ne=fr.get(pe))!=null?Ne:0)+1),up(),void ao("async-node");fr.set(pe,1),qs.set(pe,(function(Xe){return{index:Xe,sessionKey:Co(),threadKey:ns(),layoutEpochKey:Ll.value}})(ge)),up(),ao("async-node")})(String($),ee)},markSettled($){if(!Yn.value)return;const ee=String($),pe=g_($);(pe!=null||(function(ge){return fr.has(String(ge))})(ee))&&(function(ge){var Ne;const We=(Ne=fr.get(ge))!=null?Ne:0;return!(We<=0||(We<=1?(fr.delete(ge),qs.delete(ge)):fr.set(ge,We-1),up(),We===1&&ao("async-node"),0))})(ee)&&pe!=null&&Qu()}};function WG(){let $=0;for(const ee of Oo.values())$+=zt("getVisibleDomHeight.offsetHeight",()=>{var pe;return(pe=ee?.offsetHeight)!=null?pe:0});return Math.ceil(Math.max(0,$))}si(HC,{reportHeight($,ee){t3.reportHeight($,ee),cp?.reportHeight($,ee)},markPending($){t3.markPending($),cp?.markPending($)},markSettled($){t3.markSettled($),cp?.markSettled($)}});let n3,i3=null,dp=null;function p2($){return $!==!1&&$!=null&&$!==""}function y_(){return Dn.value?(function(){if(!Dn.value)return!0;const $=Ye.value.length,ee=Ks(gn.start,0,$),pe=Ks(gn.end,ee,$);if(ee>=pe)return!0;for(let ge=ee;ge=Cf.value}function o3(){return lt.value===!0&&!Mt.value&&ru.value===0&&su.size===0&&Ma.size===0&&Nr==null&&y_()}function k_(){var $,ee;if((($=i.virtualScroll)==null?void 0:$.settleMode)!=="manual"||i3===Co()&&n3===ns())return!0;const pe=(ee=i.virtualScroll)==null?void 0:ee.settledToken;return!!p2(pe)&&dp===Um(pe)}function s3(){return o3()&&k_()}function qG($,ee){return ee.totalNodes<=0?$==="final"?"final":"estimate":ee.measuredCount>=ee.totalNodes?$==="final"?"final":"measured":ee.measuredCount>0||ee.estimatedCount>0?"mixed":"estimate"}function xf($="manual",ee){const pe=p_(),ge=(function(Ne){return Ne||(lt.value!==!0?Ye.value.length>0?"streaming":"estimating":!y_()||Ma.size>0||Nr!=null?"measuring":s3()?"settled":"settling")})(ee);return{sessionKey:Co(),threadKey:ns(),phase:ge,nodeCount:pe.totalNodes,liveRange:{start:gn.start,end:gn.end},renderedCount:no.value,measuredCount:pe.measuredCount,estimatedCount:pe.estimatedCount,averageNodeHeight:pe.averageNodeHeight,topSpacerHeight:pe.topSpacerHeight,bottomSpacerHeight:pe.bottomSpacerHeight,visibleDomHeight:WG(),totalHeight:b_(),width:pe.width,final:lt.value===!0,stable:s3(),confidence:qG(ge,pe),reason:$}}function Nm(){const $=Ir.value||ke(),ee=O.value;if(!$||!ee)return null;const pe=$.ownerDocument||ee.ownerDocument||document,ge=$===pe.documentElement||$===pe.body||$===pe.scrollingElement,Ne=zt("getScrollBox.scrollTop",()=>De($,pe,ge)),We=zt("getScrollBox.scrollHeight",()=>{var it,bt,ot,ht,yt;return ge?Math.max((bt=(it=pe.documentElement)==null?void 0:it.scrollHeight)!=null?bt:0,(ht=(ot=pe.body)==null?void 0:ot.scrollHeight)!=null?ht:0,(yt=$.scrollHeight)!=null?yt:0):$.scrollHeight}),Xe=zt("getScrollBox.clientHeight",()=>{var it;return ge?((it=pe.documentElement)==null?void 0:it.clientHeight)||$.clientHeight||0:$.clientHeight});return{root:$,doc:pe,isViewportRoot:ge,scrollTop:Ne,scrollHeight:We,clientHeight:Xe}}function b_(){const $=Ye.value.length,ee=Math.max(0,Hs(0,$)),pe=zt("getRendererLogicalHeight.offsetHeight",()=>{var Ne,We;return(We=(Ne=O.value)==null?void 0:Ne.offsetHeight)!=null?We:0}),ge=Math.max(0,pe>0?pe:zt("getRendererLogicalHeight.scrollHeight",()=>{var Ne,We;return(We=(Ne=O.value)==null?void 0:Ne.scrollHeight)!=null?We:0}));return $<=0?Math.ceil(pe):Dn.value?ee>0?Math.max(1,Math.ceil(ee),(function(){let Ne=Q4.value+Y4.value;for(const We of Bn.values())We&&(Ne+=Math.max(0,zt("getVirtualizedDomLogicalHeight.offsetHeight",()=>We.offsetHeight||0)));return Math.ceil(Math.max(0,Ne))})(),(function(Ne,We){return Ne<=0||We<=0?0:We<=Ne+Math.max(512,.05*Ne)?Math.ceil(We):0})(ee,ge)):Math.max(1,Math.ceil(ge)):Yn.value?ee>0||ts.count>0||Ds.getEstimatedNodeHeightCount()>0?(js.value&&no.value,Math.max(1,Math.ceil(ge),Math.ceil(ee))):Math.ceil(ge):Math.max(1,Math.ceil(ge),Math.ceil(ee))}function w_($){const ee=O.value;if(!ee)return null;const pe=zt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>ee.getBoundingClientRect());return(function(Ne){return Ne.isViewportRoot?Ne.clientHeight:zt("getViewportBottomInRoot.getBoundingClientRect",()=>Ne.root.getBoundingClientRect().bottom)})($)-pe.bottom}function UG($={}){const ee=$.requireViewport!==!1,pe=(function(We=64){const Xe=Nm(),it=O.value;if(!Xe||!it)return!1;const bt=(function(ht){if(ht.isViewportRoot)return{top:0,bottom:ht.clientHeight};const yt=zt("getVirtualViewportRect.getBoundingClientRect",()=>ht.root.getBoundingClientRect());return{top:yt.top,bottom:yt.bottom}})(Xe),ot=zt("isRendererNearVirtualViewport.getBoundingClientRect",()=>it.getBoundingClientRect());return ot.bottom>=bt.top-We&&ot.top<=bt.bottom+We})();if(ee&&!pe)return null;const ge=(function(){const We=Nm(),Xe=O.value;if(!We||!Xe||Math.max(0,We.scrollHeight-We.scrollTop-We.clientHeight)>64)return null;const it=w_(We);return it==null?null:it>=-8&&it<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,it)}:null})();if(ge)return{anchor:ge,captured:!0};const Ne=nu();if(Ne)return{anchor:{type:"node",nodeIndex:Ne.nodeIndex,offsetWithinNodePx:Ne.offsetWithinNodePx},captured:pe};if($.allowFallback===!0){const We=(function(){const Xe=Ye.value.length;return Xe<=0?null:{type:"node",nodeIndex:Ks(Mn.value,0,Math.max(0,Xe-1)),offsetWithinNodePx:0}})();return We?{anchor:We,captured:!1}:null}return null}function r3($){let ee=2166136261;for(let pe=0;pe<$.length;pe++)ee^=$.charCodeAt(pe),ee=Math.imul(ee,16777619);return(ee>>>0).toString(36)}function VG($,ee){let pe=$;for(let ge=0;ge8192?`${ge.slice(0,8192)}...${ge.length}`:ge;return`${ge.length}:${r3(Ne)}`})($)}`;if(typeof $=="function")return"fn";if(typeof $!="object")return typeof $;if(ee.has($))return"cycle";if(pe>=6)return"max-depth";ee.add($);try{if(Array.isArray($)){if($.length<=160){const ot=[];for(let ht=0;ht<$.length;ht++)ot.push(m2($[ht],ee,pe+1));return`a:${$.length}:${ot.join(",")}`}const We=[],Xe=[],it=Math.max(0,$.length-32);let bt=2166136261;for(let ot=0;ot<$.length;ot++){const ht=m2($[ot],ee,pe+1);bt=VG(bt,ht),ot<32&&We.push(ht),ot>=it&&Xe.push(ht)}return[`a:${$.length}`,`h=${We.join(",")}`,`t=${Xe.join(",")}`,`all=${(bt>>>0).toString(36)}`].join(":")}const ge=$,Ne=Object.keys(ge).filter(We=>{const Xe=ge[We];return We!=="parent"&&We!=="el"&&We!=="component"&&(Xe==null||typeof Xe=="string"||typeof Xe=="number"||typeof Xe=="boolean"||KG.has(We))}).sort();return`o:${Ne.length}:${Ne.map(We=>`${We}=${m2(ge[We],ee,pe+1)}`).join(";")}`}finally{ee.delete($)}}let l3=-1,a3="",Sf=[2166136261];function Dm($){const ee=Ye.value[$];return ee?r3(m2(ee)):""}function ZG($,ee){let pe=$;for(let ge=0;ge>>0}function u3(){var $,ee;const pe=W.value;if(l3===pe)return a3;const ge=Ye.value.length;let Ne=K4(ge);(l3!==pe-1||Ne>ge||Sf.length>>0).toString(36),l3=pe,a3}function fp($,ee={}){var pe;const ge=ee.includeHeightCache===!0,Ne=(pe=ee.includeContentHash)!=null?pe:ge,We=ge?(function(it){const bt=(function(){var Ct,Vt;const Ft=Number((Vt=(Ct=i.virtualScroll)==null?void 0:Ct.heightCacheLimit)!=null?Vt:5e3);return!Number.isFinite(Ft)||Ft<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(Ft))})();if(!Number.isFinite(bt)||it.length<=bt)return it;const ot=new Map,ht=Ct=>{!Ct||ot.size>=bt||ot.set(Ct.index,Ct)},yt=Ye.value.length,et=Ks(gn.start-2*to.value,0,yt),pt=Ks(gn.end+2*to.value,et,yt);for(const Ct of it)Ct.index>=et&&Ct.index=0&&ot.sizeCt.index-Vt.index).slice(0,bt)})(Ke().map(it=>{var bt;const ot=Ye.value[it.index];return ot?$n($t({},it),{nodeType:String((bt=ot.type)!=null?bt:""),signature:Dm(it.index)}):null}).filter(it=>!!it)):[],Xe=UG({allowFallback:ee.allowAnchorFallback===!0,requireViewport:ee.requireViewport});return Xe||We.length||ee.includeEmptyState===!0?$n($t({sessionKey:$.sessionKey,threadKey:$.threadKey},Xe?{anchor:Xe.anchor,anchorCaptured:Xe.captured}:{anchorCaptured:!1}),{metrics:$,width:$.width,contentHash:Ne?u3():void 0,measurementKey:Gu()||void 0,heightCache:We.length?We:void 0}):null}function c3($){var ee,pe;const ge=Nm();if(!ge)return;const Ne=(function(it){const bt=O.value;if(!bt)return null;const ot=ie(bt,it.root),ht=Ye.value.length,yt=zt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>bt.offsetHeight||0),et=Math.max(0,yt>0?yt:ht>0?zt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>bt.scrollHeight||0):0),pt=b_();return ot+Math.max(et,pt)})(ge);if(Ne==null)return;const We=Math.max(0,$.distanceFromBottomPx),Xe=Math.max(0,Ne-ge.clientHeight-We);(function(it){eu=$m()+120,Tr=it})(Xe),ge.isViewportRoot?(pe=(ee=ge.doc.defaultView)==null?void 0:ee.scrollTo)==null||pe.call(ee,0,Xe):EN(ge.root,ge.doc,Xe,{isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De})}const d3=[];function C_(){if(V)for(El!=null&&(xi?.(El),El=null);d3.length;){const $=d3.pop();$!=null&&window.clearTimeout($)}}function hp($){const ee=!!wo.value;wo.value=null,eu=0,Tr=null,C_(),ee&&$&&ao($)}function pp(){if(!wo.value||!V||El!=null)return;const $=()=>{El=null;const ee=wo.value;ee&&c3(ee)};El=Zi?Zi($):null,El==null&&$()}function A_($,ee={}){const pe=Ye.value.length;return pe<=0?[]:$.filter(ge=>!(!Number.isInteger(ge.index)||ge.index<0||ge.index>=pe)&&!(!Number.isFinite(ge.height)||ge.height<=0)&&!(ee.requireSignature&&!ge.signature)&&!(ee.requireCompatibilityMetadata&&!ge.nodeType&&!ge.signature)&&(function(Ne){var We;const Xe=Ye.value[Ne.index];return!(!Xe||Ne.nodeType&&Ne.nodeType!==String((We=Xe.type)!=null?We:"")||Ne.signature&&Ne.signature!==Dm(Ne.index))})(ge))}function x_($){const ee=cg(Af()),pe=cg($);return ee!==-1&&pe!==-1&&ee===pe}function f3($){var ee;const pe=Number($?.width);if(Number.isFinite(pe)&&pe>0)return pe;const ge=Number((ee=$?.metrics)==null?void 0:ee.width);return Number.isFinite(ge)&&ge>0?ge:null}function S_($){var ee;return $.sessionKey===Co()&&!!X4($.threadKey)&&((ee=$.measurementKey)!=null?ee:"")===Gu()&&!!x_(f3($))&&!!(function(pe){const ge=pe.heightCache;return!!ge?.length&&(__(pe)?ge.some(Ne=>!!(Ne.nodeType||Ne.signature)):ge.some(Ne=>!!Ne.signature))})($)}function __($){return!!($.contentHash&&$.contentHash===u3())}function GG($){return!__($)}let _f=null,Mf=null,g2=null,Fm=null,Bm=null;function h3($){var ee;const pe=$.map(Ne=>{var We,Xe;return[Ne.index,Math.round(10*Ne.height),(We=Ne.nodeType)!=null?We:"",(Xe=Ne.signature)!=null?Xe:""].join("")}).join(""),ge=cg(Af());return[(ee=ns())!=null?ee:"",Co(),Gu(),Ye.value.length,ge,$.length,r3(pe)].join(":")}function M_($=(ee=>(ee=i.virtualScroll)==null?void 0:ee.heightCache)()){if(!Yn.value||!$?.length||Ye.value.length<=0||!x_((ee=i.virtualScroll)==null?void 0:ee.heightCacheWidth))return!1;var ee;const pe=A_($,{requireSignature:!0});if(!pe.length)return!1;const ge=h3(pe);return ge===_f?(Mf="standalone",!0):(_e(pe,{mode:"merge"}),lo(),_f=ge,Mf="standalone",zm(),ao("restore"),!0)}function p3($,ee={}){var pe,ge,Ne;if(!Yn.value||!$||$.sessionKey!==Co()||!X4($.threadKey)||Ye.value.length<=0)return!1;const We=!!((pe=$.heightCache)!=null&&pe.length)&&!v2(),Xe=!$.anchor||$.anchorCaptured===!1&&ee.allowUncapturedAnchor!==!0?null:$.anchor,it=ee.restoreAnchor===!0&&!!Xe&&!v2()&&Number(f3($))>0;let bt=!1;if((ge=$.heightCache)!=null&&ge.length&&S_($)){const ht=A_($.heightCache,{requireCompatibilityMetadata:!$.contentHash,requireSignature:GG($)});ht.length&&(_e(ht,{mode:"merge"}),lo(),_f=h3(ht),Mf="restore",zm(),bt=!0)}if(We||it)return!1;if(!ee.restoreAnchor||!Xe)return bt&&ao("restore"),!0;const ot=(function(ht,yt){var et;const pt=ht.anchor,St=pt?pt.type==="bottom"?`bottom:${Math.round(pt.distanceFromBottomPx)}`:`node:${pt.nodeIndex}:${Math.round(pt.offsetWithinNodePx)}`:"none";return[(et=ns())!=null?et:"",Co(),Gu(),h2.value,yt,St].join(":")})($,(Ne=ee.restoreToken)!=null?Ne:"imperative");return g2===ot?(bt&&ao("restore"),!0):(g2=ot,(function(ht){const yt=()=>{if(ht.type==="node")return hp(),void Sa({nodeIndex:ht.nodeIndex,offsetWithinNodePx:ht.offsetWithinNodePx});if(Er(),es.value=null,wo.value=ht,C_(),c3(ht),V)for(const et of[0,120,280,480])d3.push(window.setTimeout(()=>{const pt=wo.value;pt&&c3(pt)},et))};(function(et){if(!Dn.value)return!1;const pt=Ye.value.length;return!(pt<=0||(Mn.value=et.type==="node"?Ks(et.nodeIndex,0,pt-1):pt-1,Wi(),0))})(ht)?gt(yt):yt()})(Xe),ao("restore"),!0)}function v2(){const $=Af();return Number.isFinite($)&&$>0}function I_($){var ee;return $.sessionKey===Co()&&!!X4($.threadKey)&&(Ye.value.length<=0||!(!((ee=$.heightCache)!=null&&ee.length)||v2())||!(!($.anchor&&Number(f3($))>0)||v2()))}function m3(){Oi.clear();for(const $ of Object.keys(ws)){const ee=Number($);Number.isInteger(ee)&&ee>=0&&ee{let ee=!1,pe=null;const ge=()=>{ee||(ee=!0,pe!=null&&window.clearTimeout(pe),$())};if(Zi)return Zi(ge),void(pe=window.setTimeout(ge,50));pe=window.setTimeout(ge,0)})}function g3($,ee=ns(),pe=Ll.value){return Co()===$&&ns()===ee&&Ll.value===pe}function v3(){return co(this,arguments,function*($={}){var ee,pe,ge,Ne,We;const Xe=Co(),it=ns(),bt=Ll.value,ot=(ee=$.frames)!=null?ee:2,ht=(pe=$.timeoutMs)!=null?pe:120,yt=(ge=$.reason)!=null?ge:"manual",et=$.expectedSettledTokenKey,pt=$.flushPendingTimers===!0,St=xf(yt),Ct=()=>$n($t({},St),{phase:St.final?"settling":St.phase,stable:!1,confidence:St.confidence==="final"?"mixed":St.confidence,reason:yt}),Vt=()=>g3(Xe,it,bt)&&(et==null||Pm()===et);for(let An=0;Anwindow.setTimeout(bn,An))})(ht),!Vt()||(pt&&dt(),Qu(),Rm(),!Vt()))return Ct();const Ft=o3();Ft&&(i3=Xe,n3=it,((Ne=i.virtualScroll)==null?void 0:Ne.settleMode)==="manual"&&et!=null&&p2((We=i.virtualScroll)==null?void 0:We.settledToken)&&Pm()===et&&(dp=Um(i.virtualScroll.settledToken)));const sn=Vt()&&Ft&&k_(),hn=xf(yt,sn?"final":void 0);return C3(hn,!0),hn})}let y3="content",If=null,Tf=null,k3=0,Om=null,mp=null,b3=null,w3=null;function $m(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function E_($){var ee,pe;const ge=Om;if(!ge)return!0;const Ne=(pe=(ee=i.virtualScroll)==null?void 0:ee.heightDiffThresholdPx)!=null?pe:1;return Math.abs($.totalHeight-ge.totalHeight)>Ne||$.sessionKey!==ge.sessionKey||$.phase!==ge.phase||$.stable!==ge.stable||$.final!==ge.final||$.threadKey!==ge.threadKey||$.nodeCount!==ge.nodeCount||$.measuredCount!==ge.measuredCount||$.width!==ge.width}function Pm($=(ee=>(ee=i.virtualScroll)==null?void 0:ee.settledToken)()){return Bs($)}function L_($,ee){var pe,ge;return[$,ee.sessionKey,(pe=ee.threadKey)!=null?pe:"",Gu(),u3(),Bs((ge=i.virtualScroll)==null?void 0:ge.settledToken),Math.round(ee.totalHeight),Math.round(ee.width)].join("\0")}function zm(){b3=null,w3=null,mp=null}function QG($){const ee=$.heightCache;return ee?.length?h3(ee):""}function jm($){var ee,pe,ge;const Ne=$.metrics,We=$.anchor?(Xe=$.anchor).type==="bottom"?`bottom:${Math.round(Xe.distanceFromBottomPx)}`:`node:${Xe.nodeIndex}:${Math.round(Xe.offsetWithinNodePx)}`:"none";var Xe;return[$.sessionKey,(ee=$.threadKey)!=null?ee:"",(pe=$.measurementKey)!=null?pe:Gu(),(ge=$.contentHash)!=null?ge:"",QG($),We,$.anchorCaptured?1:0,Ne.liveRange.start,Ne.liveRange.end,Ne.renderedCount,Ne.nodeCount,Math.round(Ne.totalHeight),Math.round(Ne.width),Ne.phase,Ne.stable?1:0].join("\0")}function C3($,ee=!1){if(!Yn.value||(function(Xe=!1){return!Xe&&ui.value&&!Jo.value})(ee))return;const pe=ee||E_($),ge=(function(Xe,it=!1){return it||Xe.stable||Xe.phase==="final"?{state:fp(Xe,{includeHeightCache:!0})}:{state:fp(Xe)}})($,ee),Ne=ge.state,We=!!(Ne&&(pe||(function(Xe,it=!1){return!!it||jm(Xe)!==mp})(Ne,ee)));if(pe&&(F($),Om=$,k3=$m()),Ne&&We&&(q(Ne),Ne.anchor&&P(Ne.anchor),mp=jm(Ne)),$.stable){const Xe=L_("settled",$);if(Xe!==b3){b3=Xe;const it=fp($,{includeHeightCache:!0});it&&(q(it),mp=jm(it)),(function(bt){o("render-settled",bt)})($)}}if($.phase==="final"){const Xe=L_("final",$);if(Xe!==w3){w3=Xe;const it=fp($,{includeHeightCache:!0});it&&(q(it),mp=jm(it)),(function(bt){o("render-final",bt)})($)}}}function A3(){If!=null&&(xi?.(If),If=null),Tf!=null&&V&&(window.clearTimeout(Tf),Tf=null)}function N_(){If=null,Tf=null,(function($){if(Ma.size>0||Nr!=null)return!0;switch($){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(y3)&&(Qu(),Rm()),C3(xf(y3))}function ao($){var ee,pe;if(!Yn.value||(y3=$,If!=null||Tf!=null))return;const ge=Math.max(0,(pe=(ee=i.virtualScroll)==null?void 0:ee.emitIntervalMs)!=null?pe:32),Ne=Math.max(0,ge-($m()-k3)),We=()=>{Tf=null,If=Zi?Zi(N_):null,If==null&&N_()};V&&Ne>0?Tf=window.setTimeout(We,Ne):We()}function D_(){Yl.value+=1}function y2($){if(js.value&&$>=no.value){const ee=Ye.value[$],pe=Ze.value===!0&<.value!==!0&&$>=Ye.value.length-2,ge=ee?.type==="code_block"||ee?.type==="image"||ee?.type==="mermaid"||ee?.type==="infographic";if(!pe||ge)return!1}return!Ee.value||$=ye.value&&(Q.value||(Q.value=!0,Zu()),!an.value||!Mi))return gp($),void(ee&&Vs($,!0));if(${if(Dr.delete(We),!Ee.value||Jn.value.has(We))return;const bt=Bn.get(We);if(!bt)return;const ot=ke(bt),ht=bt.ownerDocument||document,yt=ht.defaultView||window,et=!ot||ot===ht.documentElement||ot===ht.body,pt=!et&&ot?zt("nodeVisibilityFallback.root.getBoundingClientRect",()=>ot.getBoundingClientRect()):null,St=et?0:pt.top,Ct=et?zt("nodeVisibilityFallback.clientHeight",()=>{var Ft,sn;return(sn=(Ft=yt.innerHeight)!=null?Ft:ot?.clientHeight)!=null?sn:0}):pt.bottom,Vt=zt("nodeVisibilityFallback.node.getBoundingClientRect",()=>bt.getBoundingClientRect());Vt.bottom>=St-500&&Vt.top<=Ct+500&&Vs(We,!0)},1800+Xe);Dr.set(We,it)})($);let Ne=null;Ne=Ue(()=>ge.isVisible.value,We=>{if(We){Us($),Vs($,!0),Ne?.(),Qi.delete($),_n.get($)===ge&&_n.delete($);try{ge.destroy()}catch{}}},{immediate:!0}),Qi.set($,Ne),Dn.value&&kn()}function x3(){Nr=null,Wn(()=>{let $=!1;for(const[ee,pe]of Ma)Ma.delete(ee),Oo.get(ee)===pe.el&&Ws.get(ee)===pe.version&&($=Pn(ee,pe.height,{allowShrink:pe.allowShrink})||$);return $})}function vp(){Nr!=null&&(xi?.(Nr),Nr=null),Ma.clear()}function b2($,ee){(function(pe,ge,Ne){var We;if(!Number.isFinite(Ne)||Ne<=0||Oo.get(pe)!==ge)return;const Xe=Ws.get(pe);if(Xe==null)return;const it=Ye.value[pe],bt=Mt.value&<.value!==!0&&!((We=i.nodes)!=null&&We.length)&&pe>=Ye.value.length-2,ot=!(it?.loading===!0||bt),ht=Ma.get(pe),yt=ht?ht.allowShrink&&ot:ot,et=ht&&!yt?Math.max(ht.height,Ne):Ne;Ma.set(pe,{height:et,allowShrink:yt,version:Xe,el:ge}),Nr==null&&(Nr=Zi?Zi(x3):null,Nr==null&&x3())})($,ee,In($,ee))}function Qu(){for(const[$,ee]of Oo)ee&&b2($,ee)}function F_(){Ri?.disconnect(),Ri=null,On.clear()}function S3(){for(;bf.length;)Me(bf.pop())}Ue(Jo,$=>{$&&ao("content")},{flush:"post"}),t({getVirtualMetrics:xf,captureVirtualState:function($={}){var ee;return fp(xf("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:$.allowFallbackAnchor===!0,requireViewport:$.requireViewport===!0,includeEmptyState:(ee=$.includeEmptyState)==null||ee})},restoreVirtualState:function($,ee={}){const pe=ee.restoreAnchor===!0,ge=ee.restoreToken==null?"imperative":String(ee.restoreToken);Fm=$,Bm={restoreAnchor:pe,restoreToken:ge,allowUncapturedAnchor:ee.allowUncapturedAnchor===!0},!p3($,{restoreAnchor:pe,restoreToken:ge,allowUncapturedAnchor:ee.allowUncapturedAnchor===!0})&&I_($)||(Fm=null,Bm=null)},forceMeasure:function($="manual"){return co(this,null,function*(){yield gt(),yield T_(),Qu(),Rm(),yield gt();const ee=xf($);return C3(ee,!0),ee})},settle:v3,scrollToNode:function($,ee="start"){hp(),Er();const pe=Ye.value.length;if(pe<=0)return;const ge=Ks($,0,pe-1),Ne=()=>{var We;const Xe=Xl({nodeIndex:ge,offsetWithinNodePx:0}),it=tu(ge),bt=Nm(),ot=(We=bt?.clientHeight)!=null?We:0,ht=nl();let yt=Xe;if(ee==="center")yt=Xe-ot/2+it/2;else if(ee==="end")yt=Xe-ot+it;else if(ee==="nearest"&&ht!=null){if(Xe>=ht&&Xe+it<=ht+ot)return;yt=XeLs.value,$=>{if(!$){F_();for(const ee of Lr.values())for(const pe of ee)Me(pe);Lr.clear(),Ws.clear(),S3(),vp()}},{immediate:!0}),Ue(lt,$=>{$&&(function(){if(V&<.value&&Oo.size){S3();for(const ee of[80,240,640]){const pe=lp(ee,()=>{for(const[ge,Ne]of Oo)Ne&&b2(ge,Ne)},"final");pe!=null&&bf.push(pe)}}})(),ao($?"final":"content")});const YG=LN(()=>ao("content"),16),JG=LN(()=>ao("batch"),16);Ue([()=>Ye.value.length,()=>no.value],()=>{wo.value&&pp(),YG()},{flush:"post",immediate:!0}),Ue([()=>gn.start,()=>gn.end],()=>{JG()},{flush:"post"});const{cleanupBatchScheduler:XG}=(function($){const{props:ee,isClient:pe,isTestEnv:ge,parsedNodesIdentity:Ne,parsedNodeCount:We,desiredRenderedCount:Xe,datasetKey:it,batchingEnabled:bt,incrementalRenderingActive:ot,resolvedBatchSize:ht,resolvedInitialBatch:yt,renderedCount:et,adaptiveBatchSize:pt,previousRenderContext:St,previousBatchConfig:Ct,requestFrame:Vt,cancelFrame:Ft,hasIdleCallback:sn,cleanupNodeVisibility:hn,onDatasetKeyChanged:An,onDatasetChanged:bn}=$;let Sn=null,Vn="raf",ti=null,qi=0,Zs=!1,Fs=!1;const Ia=new Set,lu=new Set;function Qm(){if(pe){Sn!=null&&(Vn==="raf"&&Ft?Ft(Sn):Vn==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(Sn):Vn==="timeout"&&window.clearTimeout(Sn),Sn=null),qi+=1;for(const hr of Ia)Ft&&Ft(hr);for(const hr of lu)window.clearTimeout(hr);Ia.clear(),lu.clear(),ti=null,Zs=!1,Fs=!1}}function T2(){return typeof performance<"u"?performance.now():Date.now()}function J_(hr){(function(Yu){var zc;if(!ot.value)return;const Ju=Math.max(2,(zc=ee.renderBatchBudgetMs)!=null?zc:6),Xu=Math.max(1,ht.value||1),Ta=Math.max(1,Math.floor(Xu/4));Yu>1.5*Ju?pt.value=Math.max(Ta,Math.floor(.8*pt.value)):Yu<.6*Ju&&pt.value=Ju)return;const Xu=Math.max(1,hr),Ta=()=>{const bp=T2();Sn=null;const Ym=ti??Xu;ti=null;const wp=T2();et.value=Math.min(Ju,et.value+Ym),hn(et.value),(function(N3,E2){if(!pe)return void J_(E2);Zs=!0;const nM=++qi;gt().then(()=>{var iM;if(nM!==qi)return;const bQ=T2(),wQ=Math.max(E2,bQ-N3),oM=()=>{nM===qi&&J_(wQ)};if(Vt){let Lf=null,Cp=null,rM=!1;const lM=()=>{rM||(rM=!0,Lf!==null&&(Ia.delete(Lf),Lf=null),Cp!==null&&(lu.delete(Cp),window.clearTimeout(Cp),Cp=null),oM())};return Lf=Vt(()=>{lM()}),Ia.add(Lf),Cp=window.setTimeout(()=>{Lf!==null&&Ft&&Ft(Lf),lM()},Math.max(32,(iM=ee.renderBatchIdleTimeoutMs)!=null?iM:120)),void lu.add(Cp)}const sM=window.setTimeout(()=>{lu.delete(sM),oM()},0);lu.add(sM)})})(bp,T2()-wp)};if(!pe||sl.immediate)return void Ta();const jc=Math.max(0,(Yu=ee.renderBatchDelay)!=null?Yu:16);if(ti=ti!=null?Math.max(ti,Xu):Xu,Sn==null){if(!ge&&sn&&window.requestIdleCallback){const bp=Math.max(0,(zc=ee.renderBatchIdleTimeoutMs)!=null?zc:120);return Vn="idle",void(Sn=window.requestIdleCallback(()=>Ta(),{timeout:bp}))}if(Vt&&!ge)return Vn="raf",void(Sn=Vt(()=>{jc===0?Ta():(Vn="timeout",Sn=window.setTimeout(()=>Ta(),jc))}));Vn="timeout",Sn=window.setTimeout(()=>Ta(),jc)}}function eM(hr,sl={}){Zs?Fs=!0:hr==null?tM():X_(hr,sl)}function tM(){ot.value&&X_(bt.value?Math.max(1,Math.round(pt.value)):Math.max(1,ht.value))}return Ue([Ne,We,it,ot,ht,yt,()=>ee.renderBatchDelay],()=>{var hr;const sl=We.value,Yu=St.value,zc=it.value,Ju=!Object.is(zc,Yu.key),Xu=sl!==Yu.total,Ta=Ju||Xu;St.value={key:zc,total:sl};const jc=Ct.value,bp=(hr=ee.renderBatchDelay)!=null?hr:16,Ym=jc.batchSize!==ht.value||jc.initial!==yt.value||jc.delay!==bp||jc.enabled!==ot.value;Ct.value={batchSize:ht.value,initial:yt.value,delay:bp,enabled:ot.value},Ju&&An(sl),(Ta||Ym||!ot.value)&&Qm(),(Ta||Ym)&&(pt.value=Math.max(1,ht.value||1)),Ta&&bn();const wp=Xe.value;if(!sl)return et.value=0,void hn(0);if(!ot.value)return et.value=wp,void hn(et.value);const N3=Ju||Yu.total===0;et.value=N3||Ym?Math.min(wp,yt.value):Math.min(et.value,wp);const E2=Math.max(1,yt.value||ht.value||sl);et.value{ot.value&&(typeof sl=="number"&&hr<=sl||hr>et.value&&eM())}),{cleanupBatchScheduler:Qm}})({props:_,isClient:V,isTestEnv:so,parsedNodesIdentity:Zn,parsedNodeCount:Uo,desiredRenderedCount:Cf,datasetKey:HG,batchingEnabled:Ql,incrementalRenderingActive:js,resolvedBatchSize:Ns,resolvedInitialBatch:Xo,renderedCount:no,adaptiveBatchSize:Oe,previousRenderContext:Tl,previousBatchConfig:X,requestFrame:Zi,cancelFrame:xi,hasIdleCallback:yo,cleanupNodeVisibility:Ku,onDatasetKeyChanged:$=>{vp(),dn(),lo(),zm(),$>0&&$e($)},onDatasetChanged:()=>{Dn.value&&kn({immediate:!0})}});Ue([cn,Dn,()=>O.value,()=>Y()],([$,ee])=>{if(!$)return r_(),void vn();OG(),ee?kn({immediate:!0}):vn()},{flush:"post",immediate:!0}),Ue([()=>Ye.value.length,()=>Dn.value],$=>co(null,[$],function*([ee,pe]){pe&&ee&&V&&(yield gt(),kn({immediate:!0}))}),{flush:"post"}),Ue(oo,$=>{$&&(function(){var ee;if(ji.value&&Jr.value&&lr.value&&((ee=Xr.value)!=null&&ee[1]))return;const pe=Bt({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),ge=Bt({type:"list_item",children:[pe],raw:"- Probe paragraph text"}),Ne=Bt({type:"list",ordered:!1,items:[ge],raw:"- Probe paragraph text"});ji.value=pe,Jr.value=ge,lr.value=Ne;const We={1:null,2:null,3:null,4:null,5:null,6:null};for(let Xe=1;Xe<=6;Xe++)We[Xe]=Bt({type:"heading",level:Xe,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(Xe)} Probe heading`});Xr.value=We})()},{immediate:!0}),Ue([()=>O.value,oo],()=>{if(!oo.value)return G4(),void(G.value=0);a_(),G4(),oo.value&&O.value&&typeof ResizeObserver<"u"&&(Lm=new ResizeObserver(()=>{a_(),es.value&&il(),wo.value&&pp(),ao("resize")}),Lm.observe(O.value))},{immediate:!0}),Ue([oo,ei,Ll],()=>co(null,null,function*(){if(!oo.value)return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void lo();yield gt(),(function(){if(!oo.value||typeof window>"u")return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void lo();const $={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},ee=l_(Z4(R.value),".paragraph-node");$.paragraph=t5(R.value,ee,"pre-wrap");const pe=Z4(z.value),ge=pe?.querySelector(".paragraph-node");$.listItem=t5(z.value,ge,"pre-wrap");const Ne=zt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var Xe,it;return(it=(Xe=H.value)==null?void 0:Xe.offsetHeight)!=null?it:0}),We=zt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var Xe,it;return(it=(Xe=z.value)==null?void 0:Xe.offsetHeight)!=null?it:0});$.listWrapperOverhead=Math.max(0,Ne-We);for(let Xe=1;Xe<=6;Xe++){const it=l_(Z4(j[Xe]),`h${Xe}`);$.headings[Xe]=t5(j[Xe],it,"pre-wrap")}oe.value=$,lo()})()}),{flush:"post",immediate:!0}),Ue(()=>Ye.value.length,()=>{Dn.value&&kn({immediate:!0})}),Ue([oo,G],()=>{lo(),Dn.value&&kn({immediate:!0}),es.value&&il(),wo.value&&pp(),ao("resize")},{immediate:!1}),Ue(()=>Ee.value,$=>{if($)for(const[ee,pe]of Bn)k2(ee,pe);else if(Zu(),Dn.value)kn({immediate:!0});else for(const[ee,pe]of Bn)pe&&Vs(ee,!0)},{immediate:!1}),Ue([Fe,ye,()=>Y()],()=>{var $;($=Mi.refresh)==null||$.call(Mi);for(const[ee,pe]of Bn)k2(ee,pe)},{immediate:!1}),Ue([()=>_.viewportPriority,()=>Ye.value.length,ye],([$,ee,pe])=>{if($!==!1){if(Q.value&&(ee<=200||ee<=pe)){Q.value=!1;for(const[ge,Ne]of Bn)k2(ge,Ne)}}else Q.value=!1}),Ue(()=>no.value,()=>{Dn.value&&kn({immediate:!0})}),Ue([Mn,fi,to,()=>Ye.value.length,Dn],()=>{Wi()},{immediate:!0});let Hm=null,Wm=!1,yp=null;function qm(){Hm=null,i3=null,n3=void 0,dp=null,zm()}function _3(){vp(),dn(),lo(),Oi.clear();const $=Ye.value.length;$>0&&$e($),m3()}function M3(){A3(),dt(),Om=null,_f=null,Mf=null,g2=null,Fm=null,Bm=null,Wm=!1,qm(),v_("restore"),Er(),hp()}function Um($){var ee;return[(ee=ns())!=null?ee:"",Co(),Gu(),h2.value,Pm($),Ye.value.length,Math.round(Hs(0,Ye.value.length)),Math.round(Af()),ts.count,Math.round(ts.total)].join(":")}function B_(){return co(this,null,function*(){var $,ee,pe,ge;const Ne=($=i.virtualScroll)==null?void 0:$.settledToken,We=Pm(Ne),Xe=Co(),it=ns(),bt=Ll.value;if(Yn.value&&((ee=i.virtualScroll)==null?void 0:ee.settleMode)==="manual"&&p2(Ne))if(o3()){if(Um(Ne)!==dp&&!Wm){Wm=!0;try{const ot=yield v3({reason:"manual",expectedSettledTokenKey:We}),ht=Pm()===We;g3(Xe,it,bt)&&ot.sessionKey===Xe&&ot.threadKey===it&&ht&&ot.stable&&ot.phase==="final"&&(dp=Um((pe=i.virtualScroll)==null?void 0:pe.settledToken))}finally{Wm=!1,yield gt();const ot=(ge=i.virtualScroll)==null?void 0:ge.settledToken,ht=p2(ot)?Um(ot):"";g3(Xe,it,bt)&&ht&&dp!==ht&&B_()}}}else ao("manual")})}Ue(Yn,($,ee)=>{if($!==ee){if(!$)return M3(),void A3();M3(),_3(),yp=Ll.value,ao("content")}},{flush:"post"}),Ue([Yn,Ll],([$,ee])=>{$?yp!=null?yp!==ee&&(yp=ee,(function(pe="resize"){vp(),dn(),lo(),Oi.clear();const ge=Ye.value.length;ge>0&&$e(ge),m3(),_f=null,Mf=null,g2=null,Om=null,Wm=!1,qm(),M_(),gt(()=>{Qu(),es.value&&il(),wo.value&&pp(),ao(pe)})})("resize")):yp=ee:yp=null},{flush:"post",immediate:!0}),Ue([Yn,()=>Co(),()=>ns()],([$])=>{$&&(M3(),_3(),v_("content"),ao("content"))}),Ue([Yn,()=>Co(),()=>ns(),Ll,()=>Ye.value.length],([$])=>{$&&(function(ee="async-node"){let pe=!1;for(const[ge,Ne]of Array.from(qs.entries()))e3(Ne)||(qs.delete(ge),fr.delete(ge),pe=!0);pe&&(up(),ao(ee))})("async-node")},{flush:"post"}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.sessionKey},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>i.indexKey,()=>W.value],([$])=>{$&&(zm(),(function(ee="content"){if(!Yn.value)return;const pe=[],ge=Ye.value.length,Ne=K4(ge);for(const We of Array.from(Oi.keys())){if(We>=ge){pe.push(We);continue}if(We=ge&&Oi.delete(We);pe.length&&((function(We,Xe={}){const it=Array.from(We,Number);un(it);let bt=0;if(Wn(()=>(bt=Qe(it,Xe),bt>0)),bt>0)(function(ot){for(const ht of ot)Oi.delete(ht)})(it);else for(const ot of it)ro.delete(ot)})(pe,{notify:!1}),lo(),qm(),es.value&&il(),wo.value&&pp(),ao(ee))})("content"))},{flush:"post",immediate:!0}),Ue([Yn,()=>Ye.value.length,()=>Co(),()=>ns()],([$,ee,pe,ge],[Ne,We,Xe,it])=>{$&&Ne&&pe===Xe&&ge===it&&ee!==We&&qm()},{flush:"post"}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.heightCache},()=>{var $;return($=i.virtualScroll)==null?void 0:$.heightCacheWidth},()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>Ye.value.length,()=>Co(),G],()=>{M_()},{flush:"post",immediate:!0}),Ue([Yn,()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreAnchor},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey},()=>Ye.value.length,()=>Co(),G],$=>co(null,[$],function*([ee,pe]){if(!ee||!pe)return;yield gt();const ge=(function(){var Ne;const We=(Ne=i.virtualScroll)==null?void 0:Ne.restoreAnchor;return We==null||We===!1?null:We===!0?"true":String(We)})();p3(pe,{restoreAnchor:ge!=null,restoreToken:ge??void 0})}),{flush:"post",immediate:!0}),Ue([Yn,G,()=>{var $;return($=i.virtualScroll)==null?void 0:$.restoreState},()=>{var $;return($=i.virtualScroll)==null?void 0:$.measurementKey}],([$])=>{var ee;if(!$)return;const pe=(ee=i.virtualScroll)==null?void 0:ee.restoreState;pe&&_f&&Mf==="restore"&&(S_(pe)||(_3(),_f=null,Mf=null,ao("resize")))},{flush:"post"}),Ue([Yn,()=>Ye.value.length,()=>Co(),G],$=>co(null,[$],function*([ee]){var pe;const ge=Fm,Ne=Bm;ee&&ge&&(yield gt(),!p3(ge,{restoreAnchor:Ne?.restoreAnchor===!0,restoreToken:(pe=Ne?.restoreToken)!=null?pe:"imperative",allowUncapturedAnchor:Ne?.allowUncapturedAnchor===!0})&&I_(ge)||(Fm=null,Bm=null))}),{flush:"post",immediate:!0}),Ue([Yn,lt,()=>{var $;return($=i.virtualScroll)==null?void 0:$.settleMode},()=>Co(),()=>ns(),Ll,ru,Em,()=>no.value,Cf,()=>ts.count,()=>ts.total],([$,ee,pe])=>{if(!$||ee!==!0||pe==="manual"||!s3())return;const ge=(function(){var Ne;const We=Ye.value.length;return[(Ne=ns())!=null?Ne:"",Co(),Gu(),h2.value,We,Math.round(Hs(0,We)),Math.round(Af()),ts.count,Math.round(ts.total)].join(":")})();Hm!==ge&&(Hm=ge,v3({reason:"final"}).then(Ne=>{Ne.stable||Hm!==ge||(Hm=null)}))},{flush:"post",immediate:!0}),Ue([Yn,lt,()=>{var $;return($=i.virtualScroll)==null?void 0:$.settleMode},()=>{var $;return($=i.virtualScroll)==null?void 0:$.settledToken},()=>Co(),()=>ns(),Ll,ru,Em,()=>no.value,Cf,()=>Ye.value.length,()=>ts.count,()=>ts.total],()=>{B_()},{flush:"post",immediate:!0}),Ue([()=>Ye.value.length,Dn,fi,to,()=>gn.start,()=>gn.end],([$,ee,pe,ge,Ne,We])=>{Se.value&&It("virtualization",{nodes:$,virtualization:ee,maxLiveNodes:pe,buffer:ge,focusIndex:Mn.value,scroll:ee?(()=>{const Xe=Ir.value||ke();return Xe?{reverse:Ce(Xe),scrollTop:Math.round(Xe.scrollTop),scrollTopAbs:Math.round(Math.abs(Xe.scrollTop)),scrollHeight:Math.round(Xe.scrollHeight),clientHeight:Math.round(Xe.clientHeight)}:null})():null,liveRange:{start:Ne,end:We},rendered:no.value})}),Ue([()=>_.customId],([$],ee,pe)=>{if(!$||Yo)return;const ge=(function(Ne,We){return Ne?(Cs.controllers[Ne]=We,()=>{Cs.controllers[Ne]===We&&delete Cs.controllers[Ne]}):()=>{}})($,{captureRestoreAnchor:nu,restoreAnchor:Sa,getAnchorDrift:Vu,getReport:zG});pe(()=>{ge()})},{immediate:!0}),ii(()=>{(function(){if(Yn.value)try{Qu(),Rm();const $=xf("manual");E_($)&&(F($),Om=$,k3=$m());const ee=fp($,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});ee&&(q(ee),ee.anchor&&P(ee.anchor),mp=jm(ee))}catch{}})(),XG(),Zu(),qe(),F_();for(const $ of Lr.values())for(const ee of $)Me(ee);Lr.clear(),Ws.clear(),Oi.clear(),S3(),vp(),G4(),Er(),hp(),A3(),r_(),vn()});const eQ=Dg("ViewportDeferredMermaidBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index11-DoKsjH9d.js"),__vite__mapDeps([7,5]))).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',$),cl}}),loadingComponent:UN,delay:0}),UN),tQ=Dg("ViewportDeferredInfographicBlockNode",_u({loader:()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index10-B_36ytI8.js"),[])).default}catch($){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',$),cl}}),loadingComponent:qN,delay:0}),qN),nQ=Dg("ViewportDeferredD2BlockNode",_u(()=>co(null,null,function*(){try{return(yield Qo(()=>import("./index8-CD-QdcWW.js"),[])).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',$),cl}})),cl),R_={text:Wo,paragraph:Sh,heading:p4,code_block:U8,list:I1,list_item:M1,blockquote:d9,table:y0,definition_list:f9,footnote:h9,footnote_reference:jl,footnote_anchor:g0,admonition:v9,vmr_container:m9,hardbreak:Td,link:Vr,image:Id,thematic_break:p9,math_inline:Qa,math_block:pW,strong:qr,emphasis:Kr,strikethrough:Ur,highlight:Wl,insert:bl,subscript:kl,superscript:yl,emoji:vl,checkbox:zl,checkbox_input:zl,inline_code:Cr,html_inline:Hl,reference:Wr,html_block:v0},iQ=D(()=>J4()),O_=D(()=>TN(_.codeBlockProps)),oQ=D(()=>TN(_.codeBlockProps,{omit:["langs"]})),$_=D(()=>$t($t({stream:_.codeBlockStream,darkTheme:_.codeBlockDarkTheme,lightTheme:_.codeBlockLightTheme,monacoOptions:_.codeBlockMonacoOptions,themes:_.themes,langs:m.value==="shiki"?_.langs:void 0,minWidth:_.codeBlockMinWidth,maxWidth:_.codeBlockMaxWidth},typeof be.value=="boolean"?{showTooltips:be.value}:{}),oQ.value)),P_=D(()=>$t($n($t({},$_.value),{langs:_.langs}),O_.value));function z_($){return typeof $=="boolean"?$:void 0}const sQ=D(()=>{const $=_.codeBlockProps||{},ee={},pe=z_($.showLineNumbers);pe!==void 0&&(ee.showLineNumbers=pe);const ge=z_($.diffInline);ge!==void 0&&(ee.diffInline=ge);const Ne=(function(We){const Xe=Number(We);return Number.isFinite(Xe)&&Xe>0?Xe:void 0})($.reservedHeightPx);return Ne!==void 0&&(ee.reservedHeightPx=Ne),ee}),rQ=D(()=>$t($t({stream:_.codeBlockStream,darkTheme:_.codeBlockDarkTheme,lightTheme:_.codeBlockLightTheme,themes:_.themes,langs:_.langs,minWidth:_.codeBlockMinWidth,maxWidth:_.codeBlockMaxWidth},typeof be.value=="boolean"?{showTooltips:be.value}:{}),O_.value)),lQ=D(()=>$t({},_.mermaidProps||{})),j_=D(()=>$t({},_.d2Props||{})),aQ=D(()=>$t({},_.infographicProps||{})),Vm=D(()=>({typewriter:f.value,fade:_.fade,customHtmlTags:st.value.customHtmlTags})),uQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltip:be.value}:{})),cQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{})),dQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{})),fQ=D(()=>$t($t({},Vm.value),typeof be.value=="boolean"?{showTooltips:be.value}:{}));function hQ($){return Array.isArray($.children)&&$.children.length>0}const w2=D(()=>PG.value.map($=>{var ee,pe,ge,Ne,We,Xe,it,bt;let ot=(function(Ft){var sn,hn,An,bn,Sn,Vn,ti;if(Ft.type!=="code_block")return Ft;const qi=Ft,Zs=[String((sn=qi.language)!=null?sn:""),String((hn=qi.loading)!=null?hn:""),String((An=qi.diff)!=null?An:""),String((bn=qi.code)!=null?bn:""),String((Sn=qi.originalCode)!=null?Sn:""),String((Vn=qi.updatedCode)!=null?Vn:""),String((ti=qi.raw)!=null?ti:"")].join("\0"),Fs=Hi.get(qi);if(Fs&&Fs.signature===Zs)return Fs.node;const Ia=$t({},qi);return Hi.set(qi,{signature:Zs,node:Ia}),Ia})($.node);const ht=C2(ot);let yt=U_(ot,ht);if((ot.type==="html_block"||ot.type==="html_inline")&&yt===R_[ot.type]){const Ft=ot,sn=String((ee=Ft.tag)!=null?ee:"").trim().toLowerCase()||Pj(Ft.content);if(sn){const hn=yi.value[sn];if(Mo.value.has(sn)&&hn)yt=hn,ot=$n($t({},Ft),{type:sn,tag:sn,content:Mpe(Ft.content,sn)});else if(zj((pe=Ft.content)!=null?pe:Ft.raw,sn)){const An=String((Ne=(ge=Ft.content)!=null?ge:Ft.raw)!=null?Ne:"");ot.type==="html_inline"?(yt=Wo,ot={type:"text",content:An,raw:An}):(yt=Sh,ot={type:"paragraph",children:[{type:"text",content:An,raw:An}],raw:An})}}}const et=ot.type==="code_block"&&m.value==="pre"&&yt===cl&&!I3(yi.value,ht);let pt=$t({},(function(Ft,sn,hn){const An=sn??C2(Ft);if(Ft.type==="code_block"){const bn=An?I3(yi.value,An):void 0;if(hn&&m.value==="pre"&&!bn&&hn===cl)return sQ.value;if(hn&&An&&hn===bn)return An==="mermaid"?W_(Ft):An==="infographic"?q_(Ft):An==="d2"||An==="d2lang"?j_.value:P_.value;if(hn&&hn===yi.value.code_block)return P_.value;if(c_(hn))return rQ.value}return An==="mermaid"?W_(Ft):An==="infographic"?q_(Ft):An==="d2"||An==="d2lang"?j_.value:Ft.type==="link"?uQ.value:Ft.type==="list"?cQ.value:Ft.type==="blockquote"?dQ.value:Ft.type==="table"?fQ.value:Ft.type==="code_block"?$_.value:Vm.value})(ot,ht,yt));const St=oo.value?ap.value[$.index]:null;ot.type==="code_block"&&St?.kind==="code-block"&&(pt=$n($t({},pt),et?{reservedHeightPx:(We=St.height)!=null?We:St.contentHeight}:{estimatedHeightPx:St.height,estimatedContentHeightPx:St.contentHeight,estimatedDiffInline:St.diffInline})),et||ot.type!=="code_block"||ht!=="mermaid"||i1(pt.estimatedPreviewHeightPx)!=null||(pt=$n($t({},pt),{estimatedPreviewHeightPx:Ek(Ik(String((Xe=ot.code)!=null?Xe:"")))})),et||ot.type!=="code_block"||ht!=="infographic"||i1(pt.estimatedPreviewHeightPx)!=null||(pt=$n($t({},pt),{estimatedPreviewHeightPx:Lk(Tk(String((it=ot.code)!=null?it:"")))})),ot.type==="math_block"&&(pt=$n($t({},pt),{cacheScope:io}));const Ct=(function(Ft,sn){const hn=String(Ft.type);return!Vv(hn)&&yi.value[hn]===sn})(ot,yt),Vt=Ct?Z7(ot,he.value):void 0;return $n($t({},$),{node:ot,component:yt,bindings:pt,customBindings:$t($t({},Vt??{}),pt),rendersCustomNode:Ct,hasSlotChildren:hQ(ot),slotContent:String((bt=ot.content)!=null?bt:""),isCodeBlock:ot.type==="code_block",indexKey:`${iQ.value}-${$.index}`,vnodeKey:`${jG.value}\0${$.index}\0${ot.type}`})}));function C2($){var ee;return $?.type==="code_block"?String((ee=$.language)!=null?ee:"").trim().toLowerCase():""}function I3($,ee){const pe=ee.trim().toLowerCase();if(pe)for(const ge of[pe,d4(pe),QH(pe)]){const Ne=ge&&$[ge];if(Ne)return Ne}}function H_($,ee,pe,ge){var Ne,We;const Xe=$t({},$.value);return i1(Xe.estimatedPreviewHeightPx)==null&&(Xe.estimatedPreviewHeightPx=ge(pe(String((Ne=ee?.code)!=null?Ne:"")),void 0,Xe.maxHeight==="none"?null:(We=i1(Xe.maxHeight))!=null?We:void 0)),Xe}function W_($){return H_(lQ,$,Ik,Ek)}function q_($){return H_(aQ,$,Tk,Lk)}function U_($,ee){if(!$)return eA;const pe=yi.value,ge=pe[String($.type)];if($.type==="code_block"){const Ne=ee??C2($),We=Ne?I3(pe,Ne):void 0;return We||(m.value==="pre"?pe.code_block||cl:Ne==="mermaid"?pe.mermaid||eQ:Ne==="infographic"?pe.infographic||tQ:Ne==="d2"||Ne==="d2lang"?pe.d2||nQ:ge||pe.code_block||d_.value)}return ge||R_[String($.type)]||eA}function T3($){o("click",$)}function pQ($){var ee;(ee=$.target)!=null&&ee.closest("[data-node-index]")&&o("mouseover",$)}function mQ($){var ee;(ee=$.target)!=null&&ee.closest("[data-node-index]")&&o("mouseout",$)}function V_($){o("mouseover",$)}function K_($){o("mouseout",$)}const Ef=U(null),ol=U(!1),Km=U(null),gQ=D(()=>!(_.domMode!=="minimal"||le.value||_.fade!==!1||f.value||ol.value||ue.value||Dn.value||el.value||Di.value||Bi.value||Object.keys(yi.value).length!==0));let Zm,kp=null,E3=0,A2=0,x2=0;const Z_=["code_block","admonition","table","math_block","html_block","image","thematic_break"],vQ=new Set(Z_),G_=[".typewriter-cursor",".height-estimation-probes",...Z_.map($=>`[data-node-type="${$}"]`),"script","style"].join(",");function Q_($){if(!$||typeof $!="object")return!1;const ee=$.type;return typeof ee=="string"&&vQ.has(ee)}function S2($){var ee,pe;if(!$||typeof $!="object")return 0;const ge=$,Ne=(pe=(ee=ge.raw)!=null?ee:ge.content)!=null?pe:ge.code;if(typeof Ne=="string")return Ne.length;const We=ge.children;if(Array.isArray(We))return We.reduce((it,bt)=>it+S2(bt),0);const Xe=ge.items;return Array.isArray(Xe)?Xe.reduce((it,bt)=>it+S2(bt),0):0}function _2(){Zm&&(clearTimeout(Zm),Zm=void 0)}function L3(){E3+=1,kp!=null&&(xi?.(kp),kp=null)}function Gm(){L3(),Pc(),Ef.value&&(Ef.value.style.visibility="hidden")}function yQ($){var ee;if($.nodeType!==Node.TEXT_NODE||!((ee=$.textContent)!=null?ee:"").trim())return!1;const pe=$.parentElement;return!!pe&&!pe.closest(G_)}function kQ($){let ee=$.lastChild;for(;ee;){if(yQ(ee))return ee;if(ee.nodeType===Node.ELEMENT_NODE){const pe=ee;if(!pe.matches(G_)&&pe.lastChild){ee=pe.lastChild;continue}}for(;ee&&ee!==$&&!ee.previousSibling;)ee=ee.parentNode;if(!ee||ee===$)break;ee=ee.previousSibling}return null}function Y_(){const $=w2.value;for(let ee=$.length-1;ee>=0;ee--){const pe=$[ee];if(!pe||Q_(pe.node)||!y2(pe.index))continue;const ge=Bn.get(pe.index);if(!ge)continue;const Ne=kQ(ge);if(Ne)return Ne}return null}function Pc(){Km.value&&(Km.value.classList.remove(VN),Km.value=null)}function M2(){if(d.value!=="simple"||!V||!ol.value||!O.value)return void Pc();const $=Y_(),ee=$?(function(pe){var ge;const Ne=(ge=pe.parentElement)==null?void 0:ge.closest(".text-node");return Ne instanceof HTMLElement?Ne:pe.parentElement})($):null;ee!==Km.value&&(Pc(),ee&&(ee.classList.add(VN),Km.value=ee))}function I2(){if(d.value!=="precise"||!V||!ol.value||kp!=null)return;const $=E3,ee=()=>{kp=null,$===E3&&(function(){var pe,ge;if(d.value!=="precise"||!(V&&ol.value&&O.value&&Ef.value))return;const Ne=O.value,We=Ef.value;We.style.visibility="hidden";const Xe=Y_();if(!Xe)return;let it=0,bt=0,ot=20,ht=!1;if(Xe?.textContent){const yt=Xe.textContent.length,et=document.createRange();et.setStart(Xe,Math.max(0,yt-1)),et.setEnd(Xe,yt);const pt=typeof et.getClientRects=="function"?et.getClientRects():void 0,St=(ge=pt?.[pt.length-1])!=null?ge:(pe=Xe.parentElement)==null?void 0:pe.getBoundingClientRect();if(St){const Ct=zt("typewriterCursor.root.getBoundingClientRect",()=>Ne.getBoundingClientRect());it=St.right-Ct.left+Ne.scrollLeft,bt=St.top-Ct.top+Ne.scrollTop,ot=St.height||ot,ht=!0}et.detach()}ht&&(We.style.transform=`translate(${Math.max(0,it)}px, ${Math.max(0,bt)}px)`,We.style.height=`${ot}px`,We.style.visibility="visible")})()};Zi?kp=Zi(ee):ee()}return Ue([je,()=>i.content,()=>i.nodes,()=>_.typewriter,lt],()=>co(null,null,function*(){var $,ee;if(!V||le.value||!J.value)return;if(lt.value)return ol.value=!1,_2(),void Gm();if(($=i.nodes)!=null&&$.length)return ol.value=!1,_2(),Gm(),A2=((ee=i.content)!=null?ee:"").length,void(x2=je.value.length);const pe=(function(){var it,bt;return(it=i.nodes)!=null&&it.length?i.nodes.reduce((ot,ht)=>ot+S2(ht),0):((bt=i.content)!=null?bt:"").length})(),ge=(function(){var it;return(it=i.nodes)!=null&&it.length?i.nodes.reduce((bt,ot)=>bt+S2(ot),0):je.value.length})(),Ne=!Q_(Ye.value[Ye.value.length-1]),We=pe>A2,Xe=ge>x2;if(!f.value||!Ne||!We&&!Xe)return f.value&&Ne||(ol.value=!1,Gm()),A2=pe,void(x2=ge);A2=pe,x2=ge,ol.value=!0,d.value==="precise"&&Ef.value&&(Ef.value.style.visibility="hidden"),_2(),yield gt(),d.value==="simple"?M2():(Pc(),I2()),Zm=setTimeout(()=>{Zm=void 0,ol.value=!1},3e3)}),{flush:"post",immediate:!0}),Ue(ol,$=>co(null,null,function*(){$?(yield gt(),d.value!=="simple"?(Pc(),d.value==="precise"&&I2()):M2()):Gm()}),{flush:"post"}),Ue(d,()=>co(null,null,function*(){if(V&&!le.value&&J.value&&ol.value){if(yield gt(),d.value==="simple")return L3(),void M2();Pc(),d.value!=="precise"?Gm():I2()}}),{flush:"post"}),Ue([()=>no.value,()=>gn.start,()=>gn.end],()=>co(null,null,function*(){V&&!le.value&&J.value&&ol.value&&(yield gt(),d.value!=="simple"?(Pc(),d.value==="precise"&&I2()):M2())}),{flush:"post"}),ii(()=>{_2(),L3(),Pc(),zn.clear()}),($,ee)=>{const pe=QY("NodeRenderer",!0);return p(le)?(k(!0),L(Re,{key:0},xt(w2.value,ge=>(k(),L(Re,{key:ge.vnodeKey},[ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:0,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onClick:T3,onMouseover:V_,onMouseout:K_,onCopy:ee[0]||(ee[0]=Ne=>s(Ne)),onHandleArtifactClick:ee[1]||(ee[1]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:1,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onClick:T3,onMouseover:V_,onMouseout:K_,onCopy:ee[2]||(ee[2]=Ne=>s(Ne)),onHandleArtifactClick:ee[3]||(ee[3]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(k(),L("div",{key:1,ref_key:"containerRef",ref:O,class:ze(["markstream-vue markdown-renderer",[{dark:_.isDark},{virtualized:Dn.value},{"virtual-scroll-coordinated":Jo.value},{"stable-layout":Dt.value},{"typewriter-simple-cursor":ol.value&&d.value==="simple"}]]),"data-custom-id":_.customId,onClick:T3,onMouseover:pQ,onMouseout:mQ},[Fi.value||Dn.value?(k(),L(Re,{key:0},[Fi.value?(k(),de(Fke,{key:0,width:ei.value,"flow-root":Dn.value||Jo.value,"paragraph-node":ji.value,"list-item-node":Jr.value,"list-node":lr.value,"heading-nodes":Xr.value,"set-paragraph-wrapper":Je,"set-list-item-wrapper":wt,"set-list-wrapper":tn,"set-heading-wrapper":$G},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):ne("",!0),Dn.value?(k(),L("div",{key:1,class:"node-spacer",style:on({height:`${Q4.value}px`}),"aria-hidden":"true"},null,4)):ne("",!0)],64)):ne("",!0),gQ.value?(k(!0),L(Re,{key:1},xt(w2.value,ge=>(k(),L(Re,{key:ge.vnodeKey},[y2(ge.index)?(k(),de(Po(ge.component),ci({key:0,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onMouseover:ee[4]||(ee[4]=Ne=>o("mouseover",Ne)),onMouseout:ee[5]||(ee[5]=Ne=>o("mouseout",Ne)),onCopy:ee[6]||(ee[6]=Ne=>s(Ne)),onHandleArtifactClick:ee[7]||(ee[7]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"])):ne("",!0)],64))),128)):(k(!0),L(Re,{key:2},xt(w2.value,ge=>(k(),L("div",{key:ge.vnodeKey,ref_for:!0,ref:Ne=>k2(ge.index,Ne),class:"node-slot","data-node-index":ge.index,"data-node-type":ge.node.type},[y2(ge.index)?(k(),L("div",{key:0,ref_for:!0,ref:Ne=>(function(We,Xe){var it;Xe||(function(yt){const et=`${J4()}-${yt}`;let pt=!1;for(const St of Array.from(fr.keys())){const Ct=qs.get(St);(Ct?.index===yt||St===et||St.startsWith(`${et}-`))&&(fr.delete(St),qs.delete(St),pt=!0)}pt&&(up(),ao("async-node"))})(We),Ma.delete(We),(function(yt){var et;const pt=((et=Ws.get(yt))!=null?et:0)+1;Ws.set(yt,pt)})(We);const bt=Lr.get(We);if(bt){for(const yt of bt)Me(yt);Lr.delete(We)}if((function(yt){const et=On.get(yt);et&&(Ri?.unobserve(et),Gi.delete(et),On.delete(yt))})(We),!Xe||!Ls.value)return Oo.delete(We),void Ws.delete(We);Oo.set(We,Xe);const ot=()=>{b2(We,Xe)};queueMicrotask(ot);const ht=(Ri||typeof ResizeObserver>"u"||(Ri=new ResizeObserver(yt=>{if(yt.length)for(const et of yt){const pt=Gi.get(et.target),St=On.get(pt??-1);pt!=null&&St&&b2(pt,St)}else Qu()})),Ri);if(ht&&(On.set(We,Xe),Gi.set(Xe,We),ht.observe(Xe)),typeof window<"u"){const yt=((it=Ye.value[We])==null?void 0:it.type)==="code_block"?[16,80,240,800]:lt.value?[80]:[];if(yt.length){const et=yt.map(pt=>lp(pt,ot,"node-resize")).filter(pt=>pt!=null);et.length&&Lr.set(We,et)}}})(ge.index,Ne),class:"node-content"},[ge.isCodeBlock?ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:1,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[12]||(ee[12]=Ne=>s(Ne)),onHandleArtifactClick:ee[13]||(ee[13]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:2,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[14]||(ee[14]=Ne=>s(Ne)),onHandleArtifactClick:ee[15]||(ee[15]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(k(),de(mo,{key:0,name:"fade",css:_.fade!==!1,appear:_.fade!==!1},{default:ce(()=>[ge.rendersCustomNode?(k(),de(Po(ge.component),ci({key:0,ref_for:!0},ge.customBindings,{node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey,"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[8]||(ee[8]=Ne=>s(Ne)),onHandleArtifactClick:ee[9]||(ee[9]=Ne=>o("handleArtifactClick",Ne))}),{default:ce(()=>[ge.hasSlotChildren?(k(),de(pe,ci({key:0,ref_for:!0},At.value,{nodes:ge.node.children,"index-key":ge.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):ge.slotContent?(k(),de(pe,ci({key:1,ref_for:!0},At.value,{content:ge.slotContent,final:!ge.node.loading,"index-key":`${ge.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):ne("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(k(),de(Po(ge.component),ci({key:1,node:ge.node,loading:ge.node.loading,"index-key":ge.indexKey},{ref_for:!0},ge.bindings,{"custom-id":_.customId,"is-dark":_.isDark,onCopy:ee[10]||(ee[10]=Ne=>s(Ne)),onHandleArtifactClick:ee[11]||(ee[11]=Ne=>o("handleArtifactClick",Ne))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(k(),L("div",{key:1,class:"node-placeholder",style:on({height:`${tu(ge.index)}px`})},null,4))],8,Oke))),128)),ol.value&&d.value==="precise"?(k(),L("span",{key:3,ref_key:"typewriterCursorRef",ref:Ef,class:"typewriter-cursor","aria-hidden":"true"},null,512)):ne("",!0),Dn.value?(k(),L("div",{key:4,class:"node-spacer",style:on({height:`${Y4.value}px`}),"aria-hidden":"true"},null,4)):ne("",!0)],42,Rke))}}})),[["__scopeId","data-v-a9489508"]]),wl=IW;wl.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",wl.__name,wl.name].filter(n=>!!n));for(const n of t)e.component(n,IW)};const ax=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),$ke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},Pke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},zke={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},jke={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},Hke={class:"admonition-title"},Wke=["aria-expanded","aria-controls"],qke=["id"],v9=Ni(ut({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const i=e,o=t,s=D(()=>{if(i.node.title&&i.node.title.trim().length)return i.node.title;const u=i.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=U(!!i.node.collapsible&&!((n=i.node.open)==null||n));function l(){i.node.collapsible&&(r.value=!r.value)}const a=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,c)=>(k(),L("div",{class:ze(["admonition",[`admonition-${i.node.kind}`]])},[x("div",{id:a,class:"admonition-legend"},[i.node.kind==="note"||i.node.kind==="info"?(k(),L("svg",$ke,[...c[1]||(c[1]=[x("circle",{cx:"12",cy:"12",r:"10"},null,-1),x("path",{d:"M12 16v-4"},null,-1),x("path",{d:"M12 8h.01"},null,-1)])])):i.node.kind==="tip"?(k(),L("svg",Pke,[...c[2]||(c[2]=[x("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),x("path",{d:"M9 18h6"},null,-1),x("path",{d:"M10 22h4"},null,-1)])])):i.node.kind==="warning"||i.node.kind==="caution"?(k(),L("svg",zke,[...c[3]||(c[3]=[x("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},null,-1),x("path",{d:"M12 9v4"},null,-1),x("path",{d:"M12 17h.01"},null,-1)])])):i.node.kind==="danger"||i.node.kind==="error"?(k(),L("svg",jke,[...c[4]||(c[4]=[x("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),x("path",{d:"M12 8v4"},null,-1),x("path",{d:"M12 16h.01"},null,-1)])])):ne("",!0),x("span",Hke,B(s.value),1),i.node.collapsible?(k(),L("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${a}-content`,onClick:l},[(k(),L("svg",{style:on({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...c[5]||(c[5]=[x("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,Wke)):ne("",!0)]),di(x("div",{id:`${a}-content`,class:"admonition-content","aria-labelledby":a},[K(p(wl),{"index-key":`admonition-${e.indexKey}`,nodes:i.node.children,"custom-id":i.customId,typewriter:i.typewriter,fade:i.fade,onCopy:c[0]||(c[0]=d=>o("copy",d))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,qke),[[Zo,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);v9.install=e=>{e.component(v9.__name,v9)};const sA=()=>Qo(()=>import("./d2_markstream-vue-yoD6TSFD.js"),[]);let fy=null,hy=sA,py=null,KN=!1,ZN=!1;function $kt(){return co(this,null,function*(){if(fy)return fy;const e=hy;return e?e===sA&&KN?null:py||(py=co(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===sA)return e===hy&&(KN=!0,(function(i){ZN||(ZN=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',i))})(n)),null;throw n}finally{e===hy&&(py=null)}return e!==hy?null:t?(fy=(function(n){var i;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(i=n.default)!=null?i:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),fy):null}),py):null})}let my=null,TW=null,gy=null;function Pkt(){return typeof TW=="function"}function zkt(){return co(this,null,function*(){if(my)return my;const e=TW;return e?gy||(gy=co(null,null,function*(){const t=yield e(),n=(function(i){var o,s,r;if(!i)return null;const l=(o=i.default)!=null?o:i,a=typeof l=="function"&&typeof((s=l.prototype)==null?void 0:s.render)=="function"?l:(r=i.Infographic)!=null?r:l?.Infographic;return typeof a=="function"?a:null})(t);return n?(my=n,my):null}).finally(()=>{gy=null}),gy):null})}const jkt=Symbol("markstreamLanguageIconResolver");function Uke(e){return new Worker("/assets/katexRenderer.worker-CO_gEm4q.js",{type:"module",name:e?.name})}function Vke(e){return new Worker("/assets/mermaidParser.worker-BFSlSHEW.js",{type:"module",name:e?.name})}let GN=!1;function EW(){GN||typeof Worker>"u"||(GN=!0,A2e(new Uke),R2e(new Vke))}EW();function md(e,t,n="/api/v1"){return`${e}${n}${t.startsWith("/")?t:`/${t}`}`}function QN(e,t){const n=new URL(`${e}/api/v1/ws`);return n.protocol=n.protocol==="https:"?"wss:":"ws:",n.searchParams.set("client_id",t),n.toString()}const ux={},zk=Symbol("resolveImage");class xu extends Error{code;requestId;details;timestamp;durationMs;constructor(t){super(t.msg),this.name="DaemonApiError",this.code=t.code,this.requestId=t.requestId,this.details=t.details,this.timestamp=t.timestamp,this.durationMs=t.durationMs}}class sa extends Error{cause;method;path;url;requestId;phase;timeoutMs;status;statusText;contentType;bodyPreview;timestamp;durationMs;constructor(t){super(t.message),this.name="DaemonNetworkError",this.cause=t.cause,this.method=t.method,this.path=t.path,this.url=t.url,this.requestId=t.requestId,this.phase=t.phase,this.timeoutMs=t.timeoutMs,this.status=t.status,this.statusText=t.statusText,this.contentType=t.contentType,this.bodyPreview=t.bodyPreview,this.timestamp=t.timestamp,this.durationMs=t.durationMs}}class cx extends Error{size;limit;constructor(t){super(`file too large to preview: ${t.size} bytes (limit ${t.limit})`),this.name="FileTooLargeError",this.size=t.size,this.limit=t.limit}}function wi(e){return e instanceof xu||typeof e=="object"&&e!==null&&e.name==="DaemonApiError"&&typeof e.code=="number"}function g4(e){return e instanceof sa||typeof e=="object"&&e!==null&&e.name==="DaemonNetworkError"&&typeof e.method=="string"&&typeof e.path=="string"}function Kke(e){return g4(e)&&typeof e.cause=="object"&&e.cause!==null&&e.cause.name==="TimeoutError"}function Zke(e){return e instanceof cx||typeof e=="object"&&e!==null&&e.name==="FileTooLargeError"&&typeof e.limit=="number"}const Gke=41301,Qke=40922;function YN(e){return wi(e)&&e.code===Qke}const oc=3e4,vy=5*6e4,JN=5*6e4,LW="0123456789ABCDEFGHJKMNPQRSTVWXYZ",rA=500,NW=40101;function XN(e,t){for(const[n,i]of Object.entries(t))if(i!==void 0)if(Array.isArray(i))for(const o of i)o!==void 0&&e.append(n,String(o));else e.set(n,String(i))}function yy(e=oc){try{return AbortSignal.timeout(e)}catch{return}}function Yke(e,t){let n="",i=e;for(let o=0;oLW[n%32]).join("")}function dg(){return`${Yke(Date.now(),10)}${Jke(16)}`}function eD(e){try{const t=[];return e.forEach((n,i)=>{typeof n=="string"?t.push({field:i,value:n}):t.push({field:i,file:n.name,size:n.size,type:n.type})}),{formData:t}}catch{return"[FormData]"}}async function n5(e){try{const t=await e.text();return t?t.length>rA?`${t.slice(0,rA)}...`:t:void 0}catch{return}}class tD{constructor(t){this.opts=t,this.tracer=t.tracer??ux}tracer;async get(t,n){return this.request("GET",t,void 0,n)}async getBlob(t,n,i){let o=md(this.opts.origin,t,this.opts.restBasePath);if(n){const c=new URLSearchParams;XN(c,n);const d=c.toString();d&&(o=`${o}?${d}`)}const s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();this.tracer.restRequest?.({method:"GET",path:t,url:o,requestId:s});let a;try{a=await fetch(o,{method:"GET",headers:r,signal:yy()})}catch(c){throw this.tracer.restFailure?.({method:"GET",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:c}),new sa({message:`Network error calling GET ${t}`,cause:c,method:"GET",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l})}if(a.ok){this.tracer.restResponse?.({method:"GET",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:0,msg:""});const c=Number(a.headers.get("content-length")??0);if(i?.maxBytes!==void 0&&c>i.maxBytes)throw a.body?.cancel(),new cx({size:c,limit:i.maxBytes});return a.blob()}let u;try{u=await a.clone().json()}catch{}throw this.checkAuthRequired(a,u?.code??0),this.tracer.restResponse?.({method:"GET",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:u?.code??a.status,msg:u?.msg??a.statusText,envelopeRequestId:u?.request_id}),new xu({code:u?.code??a.status,msg:u?.msg??a.statusText,requestId:u?.request_id??s,details:u?.details,timestamp:Date.now(),durationMs:Date.now()-l})}async post(t,n,i){return this.request("POST",t,n,void 0,i?.allowCodes,i?.timeoutMs)}async postZip(t,n,i){const o="POST",s=md(this.opts.origin,t,this.opts.restBasePath),r=dg(),l={"X-Request-Id":r,"Content-Type":"application/json; charset=utf-8"};this.addClientHeaders(l);const a=Date.now();this.tracer.restRequest?.({method:o,path:t,url:s,requestId:r,body:i});let u;try{u=await fetch(s,{method:o,headers:l,body:JSON.stringify(n),signal:yy(vy)})}catch(h){throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"fetch",durationMs:Date.now()-a,error:h}),new sa({message:`Network error calling ${o} ${t}`,cause:h,method:o,path:t,url:s,requestId:r,phase:"fetch",timeoutMs:vy,timestamp:Date.now(),durationMs:Date.now()-a})}const c=u.headers.get("content-type")??void 0,d=c?.split(";",1)[0]?.trim().toLowerCase();if(!u.ok||d!=="application/zip"){let h;try{h=await u.clone().json()}catch{}if(this.checkAuthRequired(u,h?.code??0),!u.ok||h!==void 0&&h.code!==0){const v=h?.code??u.status,y=h?.msg??u.statusText;throw this.tracer.restResponse?.({method:o,path:t,requestId:r,status:u.status,durationMs:Date.now()-a,code:v,msg:y,envelopeRequestId:h?.request_id}),new xu({code:v,msg:y,requestId:h?.request_id??r,details:h?.details,timestamp:Date.now(),durationMs:Date.now()-a})}const m=u.clone(),g=new TypeError(`Expected application/zip, received ${c??"no content type"}`);throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"parse",durationMs:Date.now()-a,status:u.status,error:g}),new sa({message:`Invalid ZIP response from ${o} ${t}`,cause:g,method:o,path:t,url:s,requestId:r,phase:"parse",timeoutMs:vy,status:u.status,statusText:u.statusText,contentType:c,bodyPreview:await n5(m),timestamp:Date.now(),durationMs:Date.now()-a})}let f;try{f=await u.blob()}catch(h){throw this.tracer.restFailure?.({method:o,path:t,requestId:r,phase:"parse",durationMs:Date.now()-a,status:u.status,error:h}),new sa({message:`Failed to read ZIP response from ${o} ${t}`,cause:h,method:o,path:t,url:s,requestId:r,phase:"parse",timeoutMs:vy,status:u.status,statusText:u.statusText,contentType:c,timestamp:Date.now(),durationMs:Date.now()-a})}return this.tracer.restResponse?.({method:o,path:t,requestId:r,status:u.status,durationMs:Date.now()-a,code:0,msg:""}),{blob:f,contentDisposition:u.headers.get("content-disposition")??void 0}}async postForm(t,n,i){if(i?.onUploadProgress!==void 0)return this.postFormXhr(t,n,i.onUploadProgress);const o=md(this.opts.origin,t,this.opts.restBasePath),s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();this.tracer.restRequest?.({method:"POST",path:t,url:o,requestId:s,body:eD(n)});let a;try{a=await fetch(o,{method:"POST",headers:r,body:n,signal:yy()})}catch(d){throw this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:d}),new sa({message:`Network error calling POST ${t}`,cause:d,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l})}let u;const c=a.clone();try{u=await a.json()}catch(d){throw this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"parse",durationMs:Date.now()-l,status:a.status,error:d}),new sa({message:`Failed to parse JSON response from POST ${t}`,cause:d,method:"POST",path:t,url:o,requestId:s,phase:"parse",timeoutMs:oc,status:a.status,statusText:a.statusText,contentType:a.headers.get("content-type")??void 0,bodyPreview:await n5(c),timestamp:Date.now(),durationMs:Date.now()-l})}if(this.tracer.restResponse?.({method:"POST",path:t,requestId:s,status:a.status,durationMs:Date.now()-l,code:u.code,msg:u.msg,envelopeRequestId:u.request_id,data:u.data}),this.checkAuthRequired(a,u.code),u.code!==0){const d=u.code??a.status;throw new xu({code:d,msg:u.msg??a.statusText,requestId:u.request_id??s,details:u.details,timestamp:Date.now(),durationMs:Date.now()-l})}return u.data}postFormXhr(t,n,i){const o=md(this.opts.origin,t,this.opts.restBasePath),s=dg(),r={"X-Request-Id":s};this.addClientHeaders(r);const l=Date.now();return this.tracer.restRequest?.({method:"POST",path:t,url:o,requestId:s,body:eD(n)}),new Promise((a,u)=>{const c=new XMLHttpRequest;c.open("POST",o),c.timeout=oc;for(const[d,f]of Object.entries(r))c.setRequestHeader(d,f);c.upload.onprogress=d=>{d.lengthComputable&&i(d.loaded,d.total)},c.onerror=()=>{this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:c.statusText||"network error"}),u(new sa({message:`Network error calling POST ${t}`,cause:null,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l}))},c.ontimeout=()=>{this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"fetch",durationMs:Date.now()-l,error:"timeout"}),u(new sa({message:`Timeout calling POST ${t}`,cause:null,method:"POST",path:t,url:o,requestId:s,phase:"fetch",timeoutMs:oc,timestamp:Date.now(),durationMs:Date.now()-l}))},c.onload=()=>{let d;try{d=JSON.parse(c.responseText)}catch(f){this.tracer.restFailure?.({method:"POST",path:t,requestId:s,phase:"parse",durationMs:Date.now()-l,status:c.status,error:f}),u(new sa({message:`Failed to parse JSON response from POST ${t}`,cause:f,method:"POST",path:t,url:o,requestId:s,phase:"parse",timeoutMs:oc,status:c.status,statusText:c.statusText,bodyPreview:c.responseText.slice(0,rA),timestamp:Date.now(),durationMs:Date.now()-l}));return}if(this.tracer.restResponse?.({method:"POST",path:t,requestId:s,status:c.status,durationMs:Date.now()-l,code:d.code,msg:d.msg,envelopeRequestId:d.request_id,data:d.data}),this.checkAuthStatus(c.status,d.code),d.code!==0){const f=d.code??c.status;u(new xu({code:f,msg:d.msg??c.statusText,requestId:d.request_id??s,details:d.details,timestamp:Date.now(),durationMs:Date.now()-l}));return}a(d.data)},c.send(n)})}async patch(t,n){return this.request("PATCH",t,n)}async put(t,n){return this.request("PUT",t,n)}async delete(t){return this.request("DELETE",t)}async request(t,n,i,o,s=[],r=oc){let l=md(this.opts.origin,n,this.opts.restBasePath);if(o){const m=new URLSearchParams;XN(m,o);const g=m.toString();g&&(l=`${l}?${g}`)}const a=dg(),u={"X-Request-Id":a};this.addClientHeaders(u),i!==void 0&&(u["Content-Type"]="application/json; charset=utf-8");const c=Date.now();this.tracer.restRequest?.({method:t,path:n,url:l,requestId:a,body:i});let d;try{d=await fetch(l,{method:t,headers:u,body:i!==void 0?JSON.stringify(i):void 0,signal:yy(r)})}catch(m){throw this.tracer.restFailure?.({method:t,path:n,requestId:a,phase:"fetch",durationMs:Date.now()-c,error:m}),new sa({message:`Network error calling ${t} ${n}`,cause:m,method:t,path:n,url:l,requestId:a,phase:"fetch",timeoutMs:r,timestamp:Date.now(),durationMs:Date.now()-c})}let f;const h=d.clone();try{const m=await d.text();f=d.status===204&&m===""?{code:0,msg:"",data:null,request_id:a}:JSON.parse(m)}catch(m){throw this.tracer.restFailure?.({method:t,path:n,requestId:a,phase:"parse",durationMs:Date.now()-c,status:d.status,error:m}),new sa({message:`Failed to parse JSON response from ${t} ${n}`,cause:m,method:t,path:n,url:l,requestId:a,phase:"parse",timeoutMs:r,status:d.status,statusText:d.statusText,contentType:d.headers.get("content-type")??void 0,bodyPreview:await n5(h),timestamp:Date.now(),durationMs:Date.now()-c})}if(this.tracer.restResponse?.({method:t,path:n,requestId:a,status:d.status,durationMs:Date.now()-c,code:f.code,msg:f.msg,envelopeRequestId:f.request_id,data:f.data}),this.checkAuthRequired(d,f.code),f.code!==0&&!s.includes(f.code))throw new xu({code:typeof f.code=="number"?f.code:d.status,msg:typeof f.msg=="string"&&f.msg.length>0?f.msg:`HTTP ${d.status}${d.statusText?` ${d.statusText}`:""}`,requestId:f.request_id??a,details:f.details,timestamp:Date.now(),durationMs:Date.now()-c});return f.data}addClientHeaders(t){const n=this.opts.credentialStore?.getToken();n!==void 0&&(t.Authorization=`Bearer ${n}`);const i=this.opts.identity;i!==void 0&&(t["X-Kimi-Client-Id"]=i.clientId,t["X-Kimi-Client-Name"]=i.clientName,t["X-Kimi-Client-Version"]=i.clientVersion,t["X-Kimi-Client-Ui-Mode"]=i.clientUiMode)}checkAuthRequired(t,n){this.checkAuthStatus(t.status,n)}checkAuthStatus(t,n){(t===401||n===NW)&&this.opts.credentialStore?.markAuthRequired?.()}}function DW(e){return{inputTokens:e.input_tokens,outputTokens:e.output_tokens,cacheReadTokens:e.cache_read_tokens,cacheCreationTokens:e.cache_creation_tokens,totalCostUsd:e.total_cost_usd,contextTokens:e.context_tokens,contextLimit:e.context_limit,turnCount:e.turn_count}}function nD(e){return e.contextTokens===0&&e.contextLimit===0&&e.inputTokens===0&&e.outputTokens===0&&e.turnCount===0}function gu(e){return{id:e.id,title:e.title,createdAt:e.created_at,updatedAt:e.updated_at,busy:e.busy,mainTurnActive:e.main_turn_active,pendingInteraction:e.pending_interaction,lastTurnReason:e.last_turn_reason,archived:e.archived??!1,archivedAt:e.archived_at,currentPromptId:e.current_prompt_id,lastPrompt:e.last_prompt,cwd:e.metadata.cwd,model:e.agent_config.model,usage:DW(e.usage),messageCount:e.message_count,lastSeq:e.last_seq,workspaceId:e.workspace_id,parentSessionId:typeof e.metadata.parent_session_id=="string"?e.metadata.parent_session_id:void 0}}function ky(e){const t=e.activity.status;return{id:e.id,title:e.meta.title??e.meta.last_prompt??e.id.slice(0,12),createdAt:new Date(e.meta.created_at).toISOString(),updatedAt:new Date(e.meta.updated_at).toISOString(),busy:t==="running",pendingInteraction:t==="approval"?"approval":t==="question"?"question":void 0,lastTurnReason:t==="failed"?"failed":void 0,archived:e.meta.archived,archivedAt:e.meta.archived_at==null?void 0:new Date(e.meta.archived_at).toISOString(),lastPrompt:e.meta.last_prompt??void 0,cwd:e.workspace.cwd??"",model:e.activity.model??"",pullRequest:e.git===void 0?void 0:e.git.pull_request,usage:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalCostUsd:0,contextTokens:0,contextLimit:0,turnCount:0},messageCount:0,lastSeq:0,workspaceId:e.workspace.id.length>0?e.workspace.id:void 0}}function b0(e){return{id:e.id,root:e.root,name:e.name,lastOpenedAt:e.last_opened_at,sessionCount:e.session_count}}function iD(e){return e.kind==="base64"?{kind:"base64",mediaType:e.media_type,data:e.data}:e.kind==="file"?{kind:"file",fileId:e.file_id}:e.kind==="session_media"?{kind:"sessionMedia",fileId:e.file_id}:{kind:"url",url:e.url}}function dx(e){switch(e.type){case"text":return{type:"text",text:e.text};case"tool_use":return{type:"toolUse",toolCallId:e.tool_call_id,toolName:e.tool_name,input:e.input};case"tool_result":return{type:"toolResult",toolCallId:e.tool_call_id,output:e.output,isError:e.is_error};case"image":return{type:"image",source:iD(e.source)};case"video":return{type:"video",source:iD(e.source)};case"file":return{type:"file",fileId:e.file_id,name:e.name,mediaType:e.media_type,size:e.size};case"thinking":return{type:"thinking",thinking:e.thinking,signature:e.signature};default:return{type:"unknown",raw:e}}}function FW(e){return{id:e.id,sessionId:e.session_id,role:e.role,content:e.content.map(dx),createdAt:e.created_at,promptId:e.prompt_id,parentMessageId:e.parent_message_id,metadata:e.metadata}}function BW(e){switch(e.type){case"text":return{type:"text",text:e.text};case"toolUse":return{type:"tool_use",tool_call_id:e.toolCallId,tool_name:e.toolName,input:e.input};case"toolResult":return{type:"tool_result",tool_call_id:e.toolCallId,output:e.output,is_error:e.isError};case"image":case"video":{const t=e.source;let n;return t.kind==="base64"?n={kind:"base64",media_type:t.mediaType,data:t.data}:t.kind==="file"?n={kind:"file",file_id:t.fileId}:t.kind==="sessionMedia"?n={kind:"session_media",file_id:t.fileId}:n={kind:"url",url:t.url},{type:e.type,source:n}}case"file":return{type:"file",file_id:e.fileId,name:e.name,media_type:e.mediaType,size:e.size};case"thinking":return{type:"thinking",thinking:e.thinking,signature:e.signature};case"unknown":return e.raw}}function Xke(e){return{content:e.content.map(BW),metadata:e.metadata,agent_id:e.agentId,model:e.model,thinking:e.thinking,permission_mode:e.permissionMode,plan_mode:e.planMode,swarm_mode:e.swarmMode,goal_objective:e.goalObjective,goal_control:e.goalControl}}function ebe(e){return{decision:e.decision,scope:e.scope,feedback:e.feedback,selected_label:e.selectedLabel}}function tbe(e){return{approvalId:e.approval_id,sessionId:e.session_id,turnId:e.turn_id,toolCallId:e.tool_call_id,toolName:e.tool_name,action:e.action,display:e.tool_input_display??e.display,expiresAt:e.expires_at,createdAt:e.created_at}}function nbe(e){return{id:e.id,label:e.label,description:e.description,recommended:e.recommended===!0||e.is_recommended===!0}}function ibe(e){return{id:e.id,question:e.question,header:e.header,body:e.body,options:e.options.map(nbe),multiSelect:e.multi_select,allowOther:e.allow_other,otherLabel:e.other_label,otherDescription:e.other_description}}function obe(e){return{questionId:e.question_id,sessionId:e.session_id,turnId:e.turn_id,toolCallId:e.tool_call_id,questions:e.questions.map(ibe),createdAt:e.created_at}}function sbe(e){switch(e.kind){case"single":return{kind:"single",option_id:e.optionId};case"multi":return{kind:"multi",option_ids:e.optionIds};case"other":return{kind:"other",text:e.text};case"multiWithOther":return{kind:"multi_with_other",option_ids:e.optionIds,other_text:e.otherText};case"skipped":return{kind:"skipped"}}}function rbe(e){const t={};for(const[n,i]of Object.entries(e.answers))t[n]=sbe(i);return{answers:t,method:e.method,note:e.note}}function lA(e,t){if(typeof e.run_in_background!="boolean")throw new Error(`task wire missing required run_in_background (id ${e.id})`);return{id:e.id,agentId:e.agent_id??t,sessionId:e.session_id,kind:e.kind,description:e.description,status:e.status,command:e.command,createdAt:e.created_at,startedAt:e.started_at,completedAt:e.completed_at,outputPreview:e.output_preview,outputBytes:e.output_bytes,subagentPhase:e.subagent_phase,subagentType:e.subagent_type,model:e.model,thinkingEffort:e.thinking_effort,parentToolCallId:e.parent_tool_call_id,suspendedReason:e.suspended_reason,swarmIndex:e.swarm_index,runInBackground:e.run_in_background}}function oD(e){return{path:e.path,name:e.name,kind:e.kind,size:e.size,modifiedAt:e.modified_at,etag:e.etag,mime:e.mime,languageId:e.language_id,isBinary:e.is_binary,isSymlinkTo:e.is_symlink_to,gitStatus:e.git_status,childCount:e.child_count}}function Qc(e,t){const n=e[t];return typeof n=="string"?n:void 0}function Lp(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function ta(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:null}function RW(e){if(!e||typeof e!="object")return null;const t=e,n=Qc(t,"status");if(n!=="active"&&n!=="paused"&&n!=="blocked"&&n!=="complete")return null;const i=t.budget,o=i&&typeof i=="object"?i:{};return{goalId:Qc(t,"goalId")??Qc(t,"goal_id")??"goal",objective:Qc(t,"objective")??"",completionCriterion:Qc(t,"completionCriterion")??Qc(t,"completion_criterion"),status:n,turnsUsed:Lp(t,"turnsUsed")??Lp(t,"turns_used")??0,tokensUsed:Lp(t,"tokensUsed")??Lp(t,"tokens_used")??0,wallClockMs:Lp(t,"wallClockMs")??Lp(t,"wall_clock_ms")??0,terminalReason:Qc(t,"terminalReason")??Qc(t,"terminal_reason"),budget:{tokenBudget:ta(o,"tokenBudget")??ta(o,"token_budget"),remainingTokens:ta(o,"remainingTokens")??ta(o,"remaining_tokens"),turnBudget:ta(o,"turnBudget")??ta(o,"turn_budget"),remainingTurns:ta(o,"remainingTurns")??ta(o,"remaining_turns"),wallClockBudgetMs:ta(o,"wallClockBudgetMs")??ta(o,"wall_clock_budget_ms"),remainingWallClockMs:ta(o,"remainingWallClockMs")??ta(o,"remaining_wall_clock_ms"),overBudget:o.overBudget===!0||o.over_budget===!0}}}function lbe(e){const t=e;switch(e.type){case"event.session.created":return{type:"sessionCreated",session:gu(t.payload.session)};case"event.session.updated":return{type:"sessionUpdated",session:gu(t.payload.session),changedFields:t.payload.changed_fields};case"event.session.deleted":return{type:"sessionDeleted",sessionId:t.session_id};case"event.session.archived":{const n=t.payload?.sessionId??t.payload?.session_id;if(typeof n!="string"||n.length===0)return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};const i=t.payload?.workspace_id;return{type:"sessionArchived",sessionId:n,workspaceId:typeof i=="string"&&i.length>0?i:void 0}}case"event.workspace.created":return{type:"workspaceCreated",workspace:b0(t.payload.workspace)};case"event.workspace.updated":return{type:"workspaceUpdated",workspace:b0(t.payload.workspace)};case"event.workspace.deleted":return{type:"workspaceDeleted",workspaceId:t.payload.workspace_id,root:t.payload.root};case"event.session.work_changed":return{type:"sessionWorkChanged",sessionId:t.session_id,busy:t.payload.busy,mainTurnActive:t.payload.main_turn_active,pendingInteraction:t.payload.pending_interaction,lastTurnReason:t.payload.last_turn_reason};case"event.session.status_changed":return{type:"sessionWorkChanged",sessionId:t.session_id,busy:t.payload.status!=="idle"&&t.payload.status!=="aborted",mainTurnActive:t.payload.status!=="idle"&&t.payload.status!=="aborted",pendingInteraction:t.payload.status==="awaiting_approval"?"approval":t.payload.status==="awaiting_question"?"question":"none",lastTurnReason:t.payload.status==="aborted"?"cancelled":void 0};case"event.session.usage_updated":return{type:"sessionUsageUpdated",sessionId:t.session_id,usage:DW(t.payload.usage)};case"event.session.history_compacted":return{type:"historyCompacted",sessionId:t.session_id,beforeSeq:t.payload.before_seq,reason:t.payload.reason,summaryMessageId:t.payload.summary_message_id};case"event.goal.updated":{const n=RW(t.payload.snapshot??null);return{type:"goalUpdated",sessionId:t.session_id,goal:n?.status==="complete"?null:n}}case"event.message.created":return{type:"messageCreated",message:FW(t.payload.message)};case"event.message.updated":return{type:"messageUpdated",sessionId:t.session_id,messageId:t.payload.message_id,content:t.payload.content.map(dx),status:t.payload.status};case"event.assistant.delta":return{type:"assistantDelta",sessionId:t.session_id,messageId:t.payload.message_id,contentIndex:t.payload.content_index,delta:t.payload.delta};case"event.assistant.tool_use_started":case"event.assistant.tool_use_delta":case"event.assistant.tool_use_completed":case"event.assistant.completed":case"event.tool.started":return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.tool.output":return{type:"toolOutput",sessionId:t.session_id,toolCallId:t.payload.tool_call_id,outputChunk:t.payload.chunk,stream:t.payload.stream};case"event.tool.progress":return typeof t.payload.message=="string"&&t.payload.message.length>0?{type:"toolOutput",sessionId:t.session_id,toolCallId:t.payload.tool_call_id,outputChunk:t.payload.message,stream:"stdout"}:{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.tool.completed":return{type:"unknown",raw:{_noop:!0,_wireType:t.type}};case"event.approval.requested":return{type:"approvalRequested",sessionId:t.session_id,approval:tbe(t.payload)};case"event.approval.resolved":return{type:"approvalResolved",sessionId:t.session_id,approvalId:t.payload.approval_id,decision:t.payload.decision,resolvedAt:t.payload.resolved_at,feedback:t.payload.feedback,selectedLabel:t.payload.selected_label};case"event.approval.expired":return{type:"approvalExpired",sessionId:t.session_id,approvalId:t.payload.approval_id};case"event.question.requested":return{type:"questionRequested",sessionId:t.session_id,question:obe(t.payload)};case"event.question.answered":return{type:"questionAnswered",sessionId:t.session_id,questionId:t.payload.question_id,resolvedAt:t.payload.resolved_at};case"event.question.dismissed":return{type:"questionDismissed",sessionId:t.session_id,questionId:t.payload.question_id,dismissedAt:t.payload.dismissed_at};case"event.task.created":return{type:"taskCreated",sessionId:t.session_id,task:lA(t.payload.task)};case"event.task.progress":return{type:"taskProgress",sessionId:t.session_id,taskId:t.payload.task_id,outputChunk:t.payload.output_chunk,stream:t.payload.stream};case"event.task.completed":return{type:"taskCompleted",sessionId:t.session_id,taskId:t.payload.task_id,status:t.payload.status,outputPreview:t.payload.output_preview,outputBytes:t.payload.output_bytes};case"event.plugin.changed":return{type:"pluginsChanged"};case"event.capability.changed":return{type:"capabilityChanged",capabilityId:t.payload.capability_id,install:t.payload.install};case"event.config.changed":return{type:"configChanged",changedFields:t.payload.changed_fields,config:aA(t.payload.config)};case"event.model_catalog.changed":return{type:"modelCatalogChanged",changed:t.payload.changed.map(n=>({providerId:n.provider_id,providerName:n.provider_name,added:n.added,removed:n.removed})),unchanged:t.payload.unchanged,failed:t.payload.failed};default:return{type:"unknown",raw:e}}}function abe(e){return{id:e.model,provider:e.provider,model:e.model,displayName:e.display_name,maxContextSize:e.max_context_size,capabilities:e.capabilities,supportEfforts:e.support_efforts,defaultEffort:e.default_effort}}function Np(e){return{id:e.id,type:e.type,baseUrl:e.base_url,defaultModel:e.default_model,hasApiKey:e.has_api_key,status:e.status,models:e.models}}function sD(e){return{id:e.id,name:e.name,wireType:e.wire_type,guessed:e.guessed,needsBaseUrl:e.needs_base_url,rejected:e.rejected,rejectReason:e.reject_reason,envKey:e.env_key,models:e.models.map(t=>({id:t.id,name:t.name,maxContextSize:t.max_context_size,capabilities:t.capabilities,reasoning:t.reasoning}))}}function aA(e){const t={};for(const[n,i]of Object.entries(e.providers))t[n]={type:i.type,baseUrl:i.base_url,defaultModel:i.default_model,hasApiKey:i.has_api_key};return{providers:t,defaultProvider:e.default_provider,defaultModel:e.default_model,secondaryModel:e.secondary_model,models:e.models,thinking:e.thinking,planMode:e.plan_mode,yolo:e.yolo,defaultPermissionMode:e.default_permission_mode,defaultPlanMode:e.default_plan_mode,permission:e.permission,hooks:e.hooks,services:e.services,mergeAllAvailableSkills:e.merge_all_available_skills,extraSkillDirs:e.extra_skill_dirs,loopControl:e.loop_control,background:e.background,experimental:e.experimental,telemetry:e.telemetry,raw:e.raw}}function ube(e){return e.session_id}function cbe(e){return e.seq}function dbe(e){const t=Number(e.slice(1));return Number.isFinite(t)?t:0}function rD(e){switch(e.kind){case"turn":return e.turnId;case"marker":return e.markerId;case"taskref":return e.refId}}const fbe={items:[],tasks:new Map,interactions:new Map,attachments:new Map,todos:new Map,prompts:new Map,meta:{},pendingInteractions:new Set,hasMoreOlder:!1};function hbe(e,t){switch(t.op){case"reset":return pbe(e,t);case"turn.upsert":return gbe(e,t.turn);case"step.upsert":return ybe(e,t.turnId,t.step);case"frame.upsert":return bbe(e,t);case"append":return Cbe(e,t);case"marker.upsert":return aD(e,t.item,t.item.markerId,t.beforeTurn);case"taskref.upsert":return aD(e,t.item,t.item.refId,t.beforeTurn);case"task.upsert":return Sbe(e,t.task);case"interaction.upsert":return _be(e,t.interaction);case"attachment.upsert":return Ibe(e,t.attachment);case"todo.upsert":return Ebe(e,t.todo);case"prompt.upsert":return Nbe(e,t.prompt);case"meta.merge":return Bbe(e,t.meta);case"items.remove":return xbe(e,t.ids)}}function pbe(e,t){const n=new Set;for(const i of t.snapshot.interactions)i.state==="pending"&&n.add(i.interactionId);return{state:{items:t.snapshot.items,tasks:new Map(t.snapshot.tasks.map(i=>[i.taskId,i])),interactions:new Map(t.snapshot.interactions.map(i=>[i.interactionId,i])),attachments:new Map(t.snapshot.attachments.map(i=>[i.attachmentId,i])),todos:new Map(t.snapshot.todos.map(i=>[i.todoId,i])),prompts:new Map(t.snapshot.prompts.map(i=>[i.promptId,i])),meta:t.snapshot.meta,pendingInteractions:n,hasMoreOlder:t.snapshot.hasMoreOlder??!1},changed:!0}}function lD(e,t){return{...e,kind:"turn",steps:[...t]}}function OW(e){return{kind:"turn",turnId:e,ordinal:dbe(e),state:"running",origin:{kind:"other"},steps:[]}}function mbe(e,t){const n=Number(e.slice(t.length+1))||0;return{kind:"step",stepId:e,turnId:t,ordinal:n,state:"running",frames:[]}}function K1(e,t){const n=e.items.find(i=>i.kind==="turn"&&i.turnId===t);return n?.kind==="turn"?n:void 0}function fx(e,t){const n=[...e];let i=n.length;for(let o=0;ot.ordinal){i=o;break}}return n.splice(i,0,t),n}function v4(e,t,n){return e.map(i=>i.kind==="turn"&&i.turnId===t?n(i):i)}function gbe(e,t){const n=K1(e,t.turnId);return n?vbe(n,t)?{state:e,changed:!1}:{state:{...e,items:v4(e.items,t.turnId,i=>lD(t,i.steps))},changed:!0}:{state:{...e,items:fx(e.items,lD(t,[]))},changed:!0}}function vbe(e,t){return e.ordinal===t.ordinal&&e.state===t.state&&e.prompt===t.prompt&&e.attachmentIds===t.attachmentIds&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.origin.kind===t.origin.kind&&e.origin.payload===t.origin.payload&&e.usage===t.usage&&e.durationMs===t.durationMs&&e.error===t.error}function ybe(e,t,n){const i=K1(e,t)??OW(t),o=i.steps.findIndex(u=>u.stepId===n.stepId);let s,r=!0;if(o>=0){const u=i.steps[o];u&&kbe(u,n)?(r=!1,s=i.steps):s=i.steps.map(c=>c.stepId===n.stepId?{...n,kind:"step",frames:c.frames}:c)}else s=[...i.steps,{...n,kind:"step",frames:[]}].toSorted((u,c)=>u.ordinal-c.ordinal);if(!r)return{state:e,changed:!1};const l={...i,steps:[...s]},a=K1(e,t)?v4(e.items,t,()=>l):fx(e.items,l);return{state:{...e,items:a},changed:!0}}function kbe(e,t){return e.ordinal===t.ordinal&&e.state===t.state&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.usage===t.usage&&e.finishReason===t.finishReason&&e.timing===t.timing&&e.retry===t.retry&&e.endReason===t.endReason&&e.endMessage===t.endMessage}function bbe(e,t){const n=K1(e,t.turnId)??OW(t.turnId),i=n.steps.find(c=>c.stepId===t.stepId)??mbe(t.stepId,t.turnId),o=i.frames.findIndex(c=>c.frameId===t.frame.frameId);let s;if(o>=0){const c=i.frames[o];if(c!==void 0&&wbe(c,t.frame))return{state:e,changed:!1};s=i.frames.map(d=>d.frameId===t.frame.frameId?t.frame:d)}else s=[...i.frames,t.frame];const r={...i,frames:[...s]},l=n.steps.some(c=>c.stepId===t.stepId)?n.steps.map(c=>c.stepId===t.stepId?r:c):[...n.steps,r].toSorted((c,d)=>c.ordinal-d.ordinal),a={...n,steps:l},u=K1(e,t.turnId)?v4(e.items,t.turnId,()=>a):fx(e.items,a);return{state:{...e,items:u},changed:!0}}function wbe(e,t){return e.kind!==t.kind?!1:e.kind==="text"&&t.kind==="text"?e.text===t.text&&e.role===t.role&&e.attachmentIds===t.attachmentIds&&e.taskId===t.taskId:e.kind==="thinking"&&t.kind==="thinking"?e.text===t.text:e.kind==="tool"&&t.kind==="tool"?e.state===t.state&&e.toolCallId===t.toolCallId&&e.name===t.name&&e.view===t.view&&e.input===t.input&&e.output===t.output&&e.display===t.display&&e.error===t.error&&e.inputText===t.inputText&&e.progress===t.progress&&e.taskId===t.taskId&&e.approvalId===t.approvalId&&e.todoId===t.todoId&&e.agentRefs===t.agentRefs:e.kind==="notice"&&t.kind==="notice"?e.message===t.message&&e.level===t.level&&e.detail===t.detail:!1}function Cbe(e,t){if(t.target.type==="task")return Abe(e,t);const{turnId:n,stepId:i,frameId:o}=t.target,s=K1(e,n),r=s?.steps.find(f=>f.stepId===i),l=r?.frames.find(f=>f.frameId===o);if(!s||!r||!l||l.kind!=="text"&&l.kind!=="thinking")return{state:e,changed:!1,gap:{expected:0,got:t.offset}};const a=$W(l.text,t.offset,t.text);if(a.gap)return{state:e,changed:!1,gap:a.gap};if(!a.changed)return{state:e,changed:!1};const u={...l,text:a.text},c={...r,frames:r.frames.map(f=>f.frameId===o?u:f)},d={...s,steps:s.steps.map(f=>f.stepId===i?c:f)};return{state:{...e,items:v4(e.items,n,()=>d)},changed:!0}}function Abe(e,t){if(t.target.type!=="task")throw new Error("unreachable");const n=t.target.taskId,i=e.tasks.get(n),o=i?.outputTail??"",s=$W(o,t.offset,t.text);if(s.gap)return{state:e,changed:!1,gap:s.gap};if(!s.changed)return{state:e,changed:!1};const r=i?{...i,outputTail:s.text}:{taskId:n,kind:"other",state:"running",detached:!1,outputTail:s.text},l=new Map(e.tasks);return l.set(n,r),{state:{...e,tasks:l},changed:!0}}function $W(e,t,n){if(t>e.length)return{text:e,changed:!1,gap:{expected:e.length,got:t}};if(e.slice(t,t+n.length)===n)return{text:e,changed:!1};const i=e.length-t;return e.slice(t)!==n.slice(0,i)?{text:e,changed:!1,gap:{expected:e.length,got:t}}:(i>0?n.slice(i):n).length===0?{text:e,changed:!1}:{text:e.slice(0,t)+n,changed:!0}}function aD(e,t,n,i){if(e.items.some(s=>uA(s)===n)){let s=!1;const r=e.items.map(l=>uA(l)!==n||l===t?l:(s=!0,t));return s?{state:{...e,items:r},changed:!0}:{state:e,changed:!1}}if(i!==void 0){const s=[...e.items];let r=s.length;for(let l=0;l=i){r=l;break}}return s.splice(r,0,t),{state:{...e,items:s},changed:!0}}return{state:{...e,items:[...e.items,t]},changed:!0}}function uA(e){switch(e.kind){case"turn":return e.turnId;case"marker":return e.markerId;case"taskref":return e.refId}}function xbe(e,t){const n=new Set(t),i=e.items.filter(l=>l.kind==="turn"&&n.has(l.turnId)),o=e.items.filter(l=>!n.has(uA(l)));if(o.length===e.items.length)return{state:e,changed:!1};let s=e.pendingInteractions,r=e.interactions;if(i.length>0){const l=new Set,a=new Set(s),u=new Set;for(const c of i)for(const d of c.steps)for(const f of d.frames)f.kind==="tool"&&l.add(f.toolCallId);for(const c of r.values())c.toolCallId!==void 0&&l.has(c.toolCallId)&&(u.add(c.interactionId),a.delete(c.interactionId));if(u.size>0){const c=new Map(r);for(const d of u)c.delete(d);r=c}s=a}return{state:{...e,items:o,interactions:r,pendingInteractions:s},changed:!0}}function Sbe(e,t){const n=e.tasks.get(t.taskId);if(n&&Fbe(n,t))return{state:e,changed:!1};const i=new Map(e.tasks);return i.set(t.taskId,t),{state:{...e,tasks:i},changed:!0}}function _be(e,t){const n=e.interactions.get(t.interactionId);if(n&&Mbe(n,t))return{state:e,changed:!1};const i=new Map(e.interactions);i.set(t.interactionId,t);let o=e.pendingInteractions;if(t.state==="pending"){if(!o.has(t.interactionId)){const s=new Set(o);s.add(t.interactionId),o=s}}else if(o.has(t.interactionId)){const s=new Set(o);s.delete(t.interactionId),o=s}return{state:{...e,interactions:i,pendingInteractions:o},changed:!0}}function Mbe(e,t){return e.interactionKind===t.interactionKind&&e.toolCallId===t.toolCallId&&e.state===t.state&&e.request===t.request&&e.response===t.response}function Ibe(e,t){const n=e.attachments.get(t.attachmentId);if(n&&Tbe(n,t))return{state:e,changed:!1};const i=new Map(e.attachments);return i.set(t.attachmentId,t),{state:{...e,attachments:i},changed:!0}}function Tbe(e,t){return e.mediaType===t.mediaType&&e.name===t.name&&e.size===t.size&&e.source===t.source&&e.placeholder===t.placeholder}function Ebe(e,t){const n=e.todos.get(t.todoId);if(n&&Lbe(n,t))return{state:e,changed:!1};const i=new Map(e.todos);return i.set(t.todoId,t),{state:{...e,todos:i},changed:!0}}function Lbe(e,t){return e.items===t.items&&e.updatedAt===t.updatedAt}function Nbe(e,t){const n=e.prompts.get(t.promptId);if(n&&Dbe(n,t))return{state:e,changed:!1};const i=new Map(e.prompts);return i.set(t.promptId,t),{state:{...e,prompts:i},changed:!0}}function Dbe(e,t){return e.status===t.status&&e.userMessageId===t.userMessageId&&e.content===t.content&&e.createdAt===t.createdAt&&e.finishedAt===t.finishedAt&&e.steeredAt===t.steeredAt}function Fbe(e,t){return e.kind===t.kind&&e.state===t.state&&e.detached===t.detached&&e.description===t.description&&e.agentId===t.agentId&&e.outputTail===t.outputTail&&e.startedAt===t.startedAt&&e.endedAt===t.endedAt&&e.resultSummary===t.resultSummary&&e.error===t.error&&e.stateReason===t.stateReason&&e.usage===t.usage}function Bbe(e,t){const n=t.modes!==void 0?{plan:t.modes.plan===null?void 0:t.modes.plan??e.meta.modes?.plan,swarm:t.modes.swarm===null?void 0:t.modes.swarm??e.meta.modes?.swarm,tower:t.modes.tower===null?void 0:t.modes.tower??e.meta.modes?.tower}:e.meta.modes,i=t.agent!==void 0?{...e.meta.agent,...t.agent}:e.meta.agent,o={goal:t.goal===null?void 0:t.goal??e.meta.goal,activity:t.activity??e.meta.activity,modes:n!==void 0&&n.plan===void 0&&n.swarm===void 0&&n.tower===void 0?void 0:n,agent:i};return o.goal===e.meta.goal&&o.activity===e.meta.activity&&o.modes===e.meta.modes&&o.agent===e.meta.agent?{state:e,changed:!1}:{state:{...e,meta:o},changed:!0}}class Rbe{constructor(t){this.agentId=t}#e=fbe;#t=new Set;receive(t){return this.apply(t)}apply(t){const n=[];let i,o=this.#e;for(const s of t){const r=hbe(o,s);if(r.gap){i={target:s.target,...r.gap};continue}r.changed&&(o=r.state,n.push(s))}if(this.#e=o,n.length>0){const s={agentId:this.agentId,ops:n};for(const r of this.#t)r(s)}return{accepted:n,gap:i}}onChange(t){return this.#t.add(t),{dispose:()=>void this.#t.delete(t)}}getItems(){return this.#e.items}getTurn(t){const n=this.#e.items.find(i=>i.kind==="turn"&&i.turnId===t);return n?.kind==="turn"?n:void 0}getTasks(){return this.#e.tasks}getTask(t){return this.#e.tasks.get(t)}getInteractions(){return this.#e.interactions}getInteraction(t){return this.#e.interactions.get(t)}getAttachments(){return this.#e.attachments}getAttachment(t){return this.#e.attachments.get(t)}getTodos(){return this.#e.todos}getTodo(t){return this.#e.todos.get(t)}getPrompts(){return this.#e.prompts}getPrompt(t){return this.#e.prompts.get(t)}getMeta(){return this.#e.meta}listPendingInteractions(){return[...this.#e.pendingInteractions]}get hasMoreOlder(){return this.#e.hasMoreOlder}snapshot(t){let n=this.#e.items,i=this.#e.hasMoreOlder;if(t!==void 0){const o=n.reduce((s,r)=>r.kind==="turn"?s+1:s,0);if(o>t.tailTurns){const s=o-t.tailTurns,r=[];let l=0;for(const a of n)if(a.kind==="turn"){if(l+=1,l<=s)continue;r.push(a)}else l>s&&r.push(a);n=r,i=!0}}return{items:n,tasks:[...this.#e.tasks.values()],interactions:[...this.#e.interactions.values()],attachments:[...this.#e.attachments.values()],todos:[...this.#e.todos.values()],prompts:[...this.#e.prompts.values()],meta:this.#e.meta,hasMoreOlder:i}}}function Nt(e,t,n){function i(l,a){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:a,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,a);const u=r.prototype,c=Object.keys(u);for(let d=0;dn?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class T1 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class PW extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const zW={};function Kd(e){return zW}function jW(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function cA(e,t){return typeof t=="bigint"?t.toString():t}function y4(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hx(e){return e==null}function px(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Obe(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const a=i.match(/\d?e-(\d?)/);a?.[1]&&(o=Number.parseInt(a[1]))}const s=n>o?n:o,r=Number.parseInt(e.toFixed(s).replace(".","")),l=Number.parseInt(t.toFixed(s).replace(".",""));return r%l/10**s}const uD=Symbol("evaluating");function zi(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==uD)return i===void 0&&(i=uD,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function np(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function uf(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function cD(e){return JSON.stringify(e)}function $be(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const HW="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Pbe=y4(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Z1(e){if(rv(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(rv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function WW(e){return Z1(e)?{...e}:Array.isArray(e)?[...e]:e}const zbe=new Set(["string","number","symbol"]);function G1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function cf(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Tn(e){const 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 jbe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hbe={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]};function Wbe(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=uf(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return np(this,"shape",r),r},checks:[]});return cf(e,s)}function qbe(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=uf(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return np(this,"shape",r),r},checks:[]});return cf(e,s)}function Ube(e,t){if(!Z1(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const r in t)if(Object.getOwnPropertyDescriptor(s,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=uf(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return np(this,"shape",s),s}});return cf(e,o)}function Vbe(e,t){if(!Z1(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=uf(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return np(this,"shape",i),i}});return cf(e,n)}function Kbe(e,t){const n=uf(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return np(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return cf(e,n)}function Zbe(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=uf(t._zod.def,{get shape(){const l=t._zod.def.shape,a={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(a[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)a[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return np(this,"shape",a),a},checks:[]});return cf(t,r)}function Gbe(e,t,n){const i=uf(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const r in n){if(!(r in s))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(s[r]=new e({type:"nonoptional",innerType:o[r]}))}else for(const r in o)s[r]=new e({type:"nonoptional",innerType:o[r]});return np(this,"shape",s),s}});return cf(t,i)}function s1(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function by(e){return typeof e=="string"?e:e?.message}function Zd(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=by(e.inst?._zod.def?.error?.(e))??by(t?.error?.(e))??by(n.customError?.(e))??by(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function mx(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function lv(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const qW=(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,cA,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},UW=Nt("$ZodError",qW),VW=Nt("$ZodError",qW,{Parent:Error});function Qbe(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function Ybe(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(r=>i({issues:r}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let r=n,l=0;for(;l(t,n,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise)throw new T1;if(r.issues.length){const l=new(o?.Err??e)(r.issues.map(a=>Zd(a,s,Kd())));throw HW(l,o?.callee),l}return r.value},vx=e=>async(t,n,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new(o?.Err??e)(r.issues.map(a=>Zd(a,s,Kd())));throw HW(l,o?.callee),l}return r.value},k4=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new T1;return s.issues.length?{success:!1,error:new(e??UW)(s.issues.map(r=>Zd(r,o,Kd())))}:{success:!0,data:s.value}},Jbe=k4(VW),b4=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(r=>Zd(r,o,Kd())))}:{success:!0,data:s.value}},Xbe=b4(VW),e4e=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gx(e)(t,n,o)},t4e=e=>(t,n,i)=>gx(e)(t,n,i),n4e=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vx(e)(t,n,o)},i4e=e=>async(t,n,i)=>vx(e)(t,n,i),o4e=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return k4(e)(t,n,o)},s4e=e=>(t,n,i)=>k4(e)(t,n,i),r4e=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return b4(e)(t,n,o)},l4e=e=>async(t,n,i)=>b4(e)(t,n,i),a4e=/^[cC][^\s-]{8,}$/,u4e=/^[0-9a-z]+$/,c4e=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,d4e=/^[0-9a-vA-V]{20}$/,f4e=/^[A-Za-z0-9]{27}$/,h4e=/^[a-zA-Z0-9_-]{21}$/,p4e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,m4e=/^([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})$/,dD=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)$/,g4e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,v4e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function y4e(){return new RegExp(v4e,"u")}const k4e=/^(?:(?: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])$/,b4e=/^(([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}|:))$/,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])\/([0-9]|[1-2][0-9]|3[0-2])$/,C4e=/^(([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])$/,A4e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,KW=/^[A-Za-z0-9_-]*$/,x4e=/^\+[1-9]\d{6,14}$/,ZW="(?:(?:\\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])))",S4e=new RegExp(`^${ZW}$`);function GW(e){const 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 _4e(e){return new RegExp(`^${GW(e)}$`)}function M4e(e){const t=GW({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${ZW}T(?:${i})$`)}const I4e=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},T4e=/^-?\d+$/,QW=/^-?\d+(?:\.\d+)?$/,E4e=/^(?:true|false)$/i,L4e=/^[^A-Z]*$/,N4e=/^[^a-z]*$/,Ml=Nt("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),YW={number:"number",bigint:"bigint",object:"date"},JW=Nt("$ZodCheckLessThan",(e,t)=>{Ml.init(e,t);const n=YW[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?i.value<=t.value:i.value{Ml.init(e,t);const n=YW[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),D4e=Nt("$ZodCheckMultipleOf",(e,t)=>{Ml.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Obe(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),F4e=Nt("$ZodCheckNumberFormat",(e,t)=>{Ml.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[o,s]=Hbe[t.format];e._zod.onattach.push(r=>{const l=r._zod.bag;l.format=t.format,l.minimum=o,l.maximum=s,n&&(l.pattern=T4e)}),e._zod.check=r=>{const l=r.value;if(n){if(!Number.isInteger(l)){r.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?r.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):r.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}ls&&r.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),B4e=Nt("$ZodCheckMaxLength",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const o=i.value;if(o.length<=t.maximum)return;const r=mx(o);i.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),R4e=Nt("$ZodCheckMinLength",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const r=mx(o);i.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),O4e=Nt("$ZodCheckLengthEquals",(e,t)=>{var n;Ml.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!hx(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const r=mx(o),l=s>t.length;i.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),w4=Nt("$ZodCheckStringFormat",(e,t)=>{var n,i;Ml.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.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})}):(i=e._zod).check??(i.check=()=>{})}),$4e=Nt("$ZodCheckRegex",(e,t)=>{w4.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),P4e=Nt("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=L4e),w4.init(e,t)}),z4e=Nt("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=N4e),w4.init(e,t)}),j4e=Nt("$ZodCheckIncludes",(e,t)=>{Ml.init(e,t);const n=G1(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),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})}}),H4e=Nt("$ZodCheckStartsWith",(e,t)=>{Ml.init(e,t);const n=new RegExp(`^${G1(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),W4e=Nt("$ZodCheckEndsWith",(e,t)=>{Ml.init(e,t);const n=new RegExp(`.*${G1(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),q4e=Nt("$ZodCheckOverwrite",(e,t)=>{Ml.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class U4e{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}const i=t.split(` -`).filter(r=>r),o=Math.min(...i.map(r=>r.length-r.trimStart().length)),s=i.map(r=>r.slice(o)).map(r=>" ".repeat(this.indent*2)+r);for(const r of s)this.content.push(r)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(` -`))}}const V4e={major:4,minor:3,patch:6},No=Nt("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=V4e;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(r,l,a)=>{let u=s1(r),c;for(const d of l){if(d._zod.def.when){if(!d._zod.def.when(r))continue}else if(u)continue;const f=r.issues.length,h=d._zod.check(r);if(h instanceof Promise&&a?.async===!1)throw new T1;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,r.issues.length!==f&&(u||(u=s1(r,f)))});else{if(r.issues.length===f)continue;u||(u=s1(r,f))}}return c?c.then(()=>r):r},s=(r,l,a)=>{if(s1(r))return r.aborted=!0,r;const u=o(l,i,a);if(u instanceof Promise){if(a.async===!1)throw new T1;return u.then(c=>e._zod.parse(c,a))}return e._zod.parse(u,a)};e._zod.run=(r,l)=>{if(l.skipChecks)return e._zod.parse(r,l);if(l.direction==="backward"){const u=e._zod.parse({value:r.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(c=>s(c,r,l)):s(u,r,l)}const a=e._zod.parse(r,l);if(a instanceof Promise){if(l.async===!1)throw new T1;return a.then(u=>o(u,i,l))}return o(a,i,l)}}zi(e,"~standard",()=>({validate:o=>{try{const s=Jbe(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Xbe(e,o).then(r=>r.success?{value:r.data}:{issues:r.error?.issues})}},vendor:"zod",version:1}))}),yx=Nt("$ZodString",(e,t)=>{No.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??I4e(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),_o=Nt("$ZodStringFormat",(e,t)=>{w4.init(e,t),yx.init(e,t)}),K4e=Nt("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=m4e),_o.init(e,t)}),Z4e=Nt("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=dD(i))}else t.pattern??(t.pattern=dD());_o.init(e,t)}),G4e=Nt("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=g4e),_o.init(e,t)}),Q4e=Nt("$ZodURL",(e,t)=>{_o.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Y4e=Nt("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=y4e()),_o.init(e,t)}),J4e=Nt("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=h4e),_o.init(e,t)}),X4e=Nt("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=a4e),_o.init(e,t)}),e3e=Nt("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=u4e),_o.init(e,t)}),t3e=Nt("$ZodULID",(e,t)=>{t.pattern??(t.pattern=c4e),_o.init(e,t)}),n3e=Nt("$ZodXID",(e,t)=>{t.pattern??(t.pattern=d4e),_o.init(e,t)}),i3e=Nt("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=f4e),_o.init(e,t)}),o3e=Nt("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=M4e(t)),_o.init(e,t)}),s3e=Nt("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=S4e),_o.init(e,t)}),r3e=Nt("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_4e(t)),_o.init(e,t)}),l3e=Nt("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=p4e),_o.init(e,t)}),a3e=Nt("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=k4e),_o.init(e,t),e._zod.bag.format="ipv4"}),u3e=Nt("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=b4e),_o.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),c3e=Nt("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=w4e),_o.init(e,t)}),d3e=Nt("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=C4e),_o.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const r=Number(s);if(`${r}`!==s)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function eq(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const f3e=Nt("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=A4e),_o.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{eq(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function h3e(e){if(!KW.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return eq(n)}const p3e=Nt("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=KW),_o.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{h3e(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),m3e=Nt("$ZodE164",(e,t)=>{t.pattern??(t.pattern=x4e),_o.init(e,t)});function g3e(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const v3e=Nt("$ZodJWT",(e,t)=>{_o.init(e,t),e._zod.check=n=>{g3e(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),tq=Nt("$ZodNumber",(e,t)=>{No.init(e,t),e._zod.pattern=e._zod.bag.pattern??QW,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),y3e=Nt("$ZodNumberFormat",(e,t)=>{F4e.init(e,t),tq.init(e,t)}),k3e=Nt("$ZodBoolean",(e,t)=>{No.init(e,t),e._zod.pattern=E4e,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),b3e=Nt("$ZodUnknown",(e,t)=>{No.init(e,t),e._zod.parse=n=>n}),w3e=Nt("$ZodNever",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function fD(e,t,n){e.issues.length&&t.issues.push(...r1(n,e.issues)),t.value[n]=e.value}const C3e=Nt("$ZodArray",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let r=0;rfD(u,n,r))):fD(a,n,r)}return s.length?Promise.all(s).then(()=>n):n}});function jk(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...r1(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function nq(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=jbe(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function iq(e,t,n,i,o,s){const r=[],l=o.keySet,a=o.catchall._zod,u=a.def.type,c=a.optout==="optional";for(const d in t){if(l.has(d))continue;if(u==="never"){r.push(d);continue}const f=a.run({value:t[d],issues:[]},i);f instanceof Promise?e.push(f.then(h=>jk(h,n,d,t,c))):jk(f,n,d,t,c)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const A3e=Nt("$ZodObject",(e,t)=>{if(No.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const a={...l};return Object.defineProperty(t,"shape",{value:a}),a}})}const i=y4(()=>nq(t));zi(e._zod,"propValues",()=>{const l=t.shape,a={};for(const u in l){const c=l[u]._zod;if(c.values){a[u]??(a[u]=new Set);for(const d of c.values)a[u].add(d)}}return a});const o=rv,s=t.catchall;let r;e._zod.parse=(l,a)=>{r??(r=i.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],d=r.shape;for(const f of r.keys){const h=d[f],m=h._zod.optout==="optional",g=h._zod.run({value:u[f],issues:[]},a);g instanceof Promise?c.push(g.then(v=>jk(v,l,f,u,m))):jk(g,l,f,u,m)}return s?iq(c,u,l,a,i.value,e):c.length?Promise.all(c).then(()=>l):l}}),x3e=Nt("$ZodObjectJIT",(e,t)=>{A3e.init(e,t);const n=e._zod.parse,i=y4(()=>nq(t)),o=f=>{const h=new U4e(["shape","payload","ctx"]),m=i.value,g=A=>{const w=cD(A);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const A of m.keys)v[A]=`key_${y++}`;h.write("const newResult = {};");for(const A of m.keys){const w=v[A],M=cD(A),T=f[A]?._zod?.optout==="optional";h.write(`const ${w} = ${g(A)};`),T?h.write(` - if (${w}.issues.length) { - if (${M} in input) { - payload.issues = payload.issues.concat(${w}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${M}, ...iss.path] : [${M}] - }))); - } - } - - if (${w}.value === undefined) { - if (${M} in input) { - newResult[${M}] = undefined; - } - } else { - newResult[${M}] = ${w}.value; - } - - `):h.write(` - if (${w}.issues.length) { - payload.issues = payload.issues.concat(${w}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${M}, ...iss.path] : [${M}] - }))); - } - - if (${w}.value === undefined) { - if (${M} in input) { - newResult[${M}] = undefined; - } - } else { - newResult[${M}] = ${w}.value; - } - - `)}h.write("payload.value = newResult;"),h.write("return payload;");const b=h.compile();return(A,w)=>b(f,A,w)};let s;const r=rv,l=!zW.jitless,u=l&&Pbe.value,c=t.catchall;let d;e._zod.parse=(f,h)=>{d??(d=i.value);const m=f.value;return r(m)?l&&u&&h?.async===!1&&h.jitless!==!0?(s||(s=o(t.shape)),f=s(f,h),c?iq([],m,f,h,d,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function hD(e,t,n,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!s1(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(r=>Zd(r,i,Kd())))}),t)}const oq=Nt("$ZodUnion",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),zi(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),zi(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),zi(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>px(s.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return i(o,s);let r=!1;const l=[];for(const a of t.options){const u=a._zod.run({value:o.value,issues:[]},s);if(u instanceof Promise)l.push(u),r=!0;else{if(u.issues.length===0)return u;l.push(u)}}return r?Promise.all(l).then(a=>hD(a,o,e,s)):hD(l,o,e,s)}}),S3e=Nt("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,oq.init(e,t);const n=e._zod.parse;zi(e._zod,"propValues",()=>{const o={};for(const s of t.options){const r=s._zod.propValues;if(!r||Object.keys(r).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[l,a]of Object.entries(r)){o[l]||(o[l]=new Set);for(const u of a)o[l].add(u)}}return o});const i=y4(()=>{const o=t.options,s=new Map;for(const r of o){const l=r._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const a of l){if(s.has(a))throw new Error(`Duplicate discriminator value "${String(a)}"`);s.set(a,r)}}return s});e._zod.parse=(o,s)=>{const r=o.value;if(!rv(r))return o.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),o;const l=i.value.get(r?.[t.discriminator]);return l?l._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:r,path:[t.discriminator],inst:e}),o)}}),_3e=Nt("$ZodIntersection",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},i),r=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||r instanceof Promise?Promise.all([s,r]).then(([a,u])=>pD(n,a,u)):pD(n,s,r)}});function dA(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(Z1(e)&&Z1(t)){const n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of i){const r=dA(e[s],t[s]);if(!r.valid)return{valid:!1,mergeErrorPath:[s,...r.mergeErrorPath]};o[s]=r.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;il.l&&l.r).map(([l])=>l);if(s.length&&o&&e.issues.push({...o,keys:s}),s1(e))return e;const r=dA(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const M3e=Nt("$ZodRecord",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Z1(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],r=t.keyType._zod.values;if(r){n.value={};const l=new Set;for(const u of r)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.valueType._zod.run({value:o[u],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...r1(u,d.issues)),n.value[u]=d.value})):(c.issues.length&&n.issues.push(...r1(u,c.issues)),n.value[u]=c.value)}let a;for(const u in o)l.has(u)||(a=a??[],a.push(u));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:a})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let a=t.keyType._zod.run({value:l,issues:[]},i);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&QW.test(l)&&a.issues.length){const d=t.keyType._zod.run({value:Number(l),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(a=d)}if(a.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(d=>Zd(d,i,Kd())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...r1(l,d.issues)),n.value[a.value]=d.value})):(c.issues.length&&n.issues.push(...r1(l,c.issues)),n.value[a.value]=c.value)}}return s.length?Promise.all(s).then(()=>n):n}}),I3e=Nt("$ZodEnum",(e,t)=>{No.init(e,t);const n=jW(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>zbe.has(typeof o)).map(o=>typeof o=="string"?G1(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const r=o.value;return i.has(r)||o.issues.push({code:"invalid_value",values:n,input:r,inst:e}),o}}),T3e=Nt("$ZodLiteral",(e,t)=>{if(No.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?G1(i):i?G1(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}}),E3e=Nt("$ZodTransform",(e,t)=>{No.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new PW(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(r=>(n.value=r,n));if(o instanceof Promise)throw new T1;return n.value=o,n}});function mD(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const sq=Nt("$ZodOptional",(e,t)=>{No.init(e,t),e._zod.optin="optional",e._zod.optout="optional",zi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),zi(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${px(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>mD(s,n.value)):mD(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),L3e=Nt("$ZodExactOptional",(e,t)=>{sq.init(e,t),zi(e._zod,"values",()=>t.innerType._zod.values),zi(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),N3e=Nt("$ZodNullable",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.innerType._zod.optin),zi(e._zod,"optout",()=>t.innerType._zod.optout),zi(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${px(n.source)}|null)$`):void 0}),zi(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),D3e=Nt("$ZodDefault",(e,t)=>{No.init(e,t),e._zod.optin="optional",zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>gD(s,t)):gD(o,t)}});function gD(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const F3e=Nt("$ZodPrefault",(e,t)=>{No.init(e,t),e._zod.optin="optional",zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),B3e=Nt("$ZodNonOptional",(e,t)=>{No.init(e,t),zi(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>vD(s,e)):vD(o,e)}});function vD(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const R3e=Nt("$ZodCatch",(e,t)=>{No.init(e,t),zi(e._zod,"optin",()=>t.innerType._zod.optin),zi(e._zod,"optout",()=>t.innerType._zod.optout),zi(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(r=>Zd(r,i,Kd()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Zd(s,i,Kd()))},input:n.value}),n.issues=[]),n)}}),O3e=Nt("$ZodPipe",(e,t)=>{No.init(e,t),zi(e._zod,"values",()=>t.in._zod.values),zi(e._zod,"optin",()=>t.in._zod.optin),zi(e._zod,"optout",()=>t.out._zod.optout),zi(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(n,i);return s instanceof Promise?s.then(r=>wy(r,t.in,i)):wy(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>wy(s,t.out,i)):wy(o,t.out,i)}});function wy(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const $3e=Nt("$ZodReadonly",(e,t)=>{No.init(e,t),zi(e._zod,"propValues",()=>t.innerType._zod.propValues),zi(e._zod,"values",()=>t.innerType._zod.values),zi(e._zod,"optin",()=>t.innerType?._zod?.optin),zi(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(yD):yD(o)}});function yD(e){return e.value=Object.freeze(e.value),e}const P3e=Nt("$ZodCustom",(e,t)=>{Ml.init(e,t),No.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>kD(s,n,i,e));kD(o,n,i,e)}});function kD(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(lv(o))}}var bD;class z3e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const o={...i,...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 j3e(){return new z3e}(bD=globalThis).__zod_globalRegistry??(bD.__zod_globalRegistry=j3e());const Fg=globalThis.__zod_globalRegistry;function H3e(e,t){return new e({type:"string",...Tn(t)})}function W3e(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Tn(t)})}function wD(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Tn(t)})}function q3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Tn(t)})}function U3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Tn(t)})}function V3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Tn(t)})}function K3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Tn(t)})}function Z3e(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Tn(t)})}function G3e(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Tn(t)})}function Q3e(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Tn(t)})}function Y3e(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Tn(t)})}function J3e(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Tn(t)})}function X3e(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Tn(t)})}function e8e(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Tn(t)})}function t8e(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Tn(t)})}function n8e(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Tn(t)})}function i8e(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Tn(t)})}function o8e(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Tn(t)})}function s8e(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Tn(t)})}function r8e(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Tn(t)})}function l8e(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Tn(t)})}function a8e(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Tn(t)})}function u8e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Tn(t)})}function c8e(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Tn(t)})}function d8e(e,t){return new e({type:"string",format:"date",check:"string_format",...Tn(t)})}function f8e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Tn(t)})}function h8e(e,t){return new e({type:"string",format:"duration",check:"string_format",...Tn(t)})}function p8e(e,t){return new e({type:"number",checks:[],...Tn(t)})}function m8e(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Tn(t)})}function g8e(e,t){return new e({type:"boolean",...Tn(t)})}function v8e(e){return new e({type:"unknown"})}function y8e(e,t){return new e({type:"never",...Tn(t)})}function CD(e,t){return new JW({check:"less_than",...Tn(t),value:e,inclusive:!1})}function i5(e,t){return new JW({check:"less_than",...Tn(t),value:e,inclusive:!0})}function AD(e,t){return new XW({check:"greater_than",...Tn(t),value:e,inclusive:!1})}function o5(e,t){return new XW({check:"greater_than",...Tn(t),value:e,inclusive:!0})}function xD(e,t){return new D4e({check:"multiple_of",...Tn(t),value:e})}function rq(e,t){return new B4e({check:"max_length",...Tn(t),maximum:e})}function Hk(e,t){return new R4e({check:"min_length",...Tn(t),minimum:e})}function lq(e,t){return new O4e({check:"length_equals",...Tn(t),length:e})}function k8e(e,t){return new $4e({check:"string_format",format:"regex",...Tn(t),pattern:e})}function b8e(e){return new P4e({check:"string_format",format:"lowercase",...Tn(e)})}function w8e(e){return new z4e({check:"string_format",format:"uppercase",...Tn(e)})}function C8e(e,t){return new j4e({check:"string_format",format:"includes",...Tn(t),includes:e})}function A8e(e,t){return new H4e({check:"string_format",format:"starts_with",...Tn(t),prefix:e})}function x8e(e,t){return new W4e({check:"string_format",format:"ends_with",...Tn(t),suffix:e})}function bm(e){return new q4e({check:"overwrite",tx:e})}function S8e(e){return bm(t=>t.normalize(e))}function _8e(){return bm(e=>e.trim())}function M8e(){return bm(e=>e.toLowerCase())}function I8e(){return bm(e=>e.toUpperCase())}function T8e(){return bm(e=>$be(e))}function E8e(e,t,n){return new e({type:"array",element:t,...Tn(n)})}function L8e(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Tn(n)})}function N8e(e){const t=D8e(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(lv(i,n.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(lv(o))}},e(n.value,n)));return t}function D8e(e,t){const n=new Ml({check:"custom",...Tn(t)});return n._zod.check=e,n}function aq(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??Fg,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 gs(e,t,n={path:[],schemaPath:[]}){var i;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const r={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,r);const l=e._zod.toJSONSchema?.();if(l)r.schema=l;else{const c={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,c);else{const f=r.schema,h=t.processors[o.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);h(e,t,f,c)}const d=e._zod.parent;d&&(r.ref||(r.ref=d),gs(d,t,c),t.seen.get(d).isParent=!0)}const a=t.metadataRegistry.get(e);return a&&Object.assign(r.schema,a),t.io==="input"&&Br(e)&&(delete r.schema.examples,delete r.schema.default),t.io==="input"&&r.schema._prefault&&((i=r.schema).default??(i.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function uq(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const r of e.seen.entries()){const l=e.metadataRegistry.get(r[0])?.id;if(l){const a=i.get(l);if(a&&a!==r[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(l,r[0])}}const o=r=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(r[0])?.id,f=e.external.uri??(m=>m);if(d)return{ref:f(d)};const h=r[1].defId??r[1].schema.id??`schema${e.counter++}`;return r[1].defId=h,{defId:h,ref:`${f("__shared")}#/${l}/${h}`}}if(r[1]===n)return{ref:"#"};const u=`#/${l}/`,c=r[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},s=r=>{if(r[1].schema.$ref)return;const l=r[1],{ref:a,defId:u}=o(r);l.def={...l.schema},u&&(l.defId=u);const c=l.schema;for(const d in c)delete c[d];c.$ref=a};if(e.cycles==="throw")for(const r of e.seen.entries()){const l=r[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/ - -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const r of e.seen.entries()){const l=r[1];if(t===r[0]){s(r);continue}if(e.external){const u=e.external.registry.get(r[0])?.id;if(t!==r[0]&&u){s(r);continue}}if(e.metadataRegistry.get(r[0])?.id){s(r);continue}if(l.cycle){s(r);continue}if(l.count>1&&e.reused==="ref"){s(r);continue}}}function cq(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=r=>{const l=e.seen.get(r);if(l.ref===null)return;const a=l.def??l.schema,u={...a},c=l.ref;if(l.ref=null,c){i(c);const f=e.seen.get(c),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(a.allOf=a.allOf??[],a.allOf.push(h)):Object.assign(a,h),Object.assign(a,u),r._zod.parent===c)for(const g in a)g==="$ref"||g==="allOf"||g in u||delete a[g];if(h.$ref&&f.def)for(const g in a)g==="$ref"||g==="allOf"||g in f.def&&JSON.stringify(a[g])===JSON.stringify(f.def[g])&&delete a[g]}const d=r._zod.parent;if(d&&d!==c){i(d);const f=e.seen.get(d);if(f?.schema.$ref&&(a.$ref=f.schema.$ref,f.def))for(const h in a)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(a[h])===JSON.stringify(f.def[h])&&delete a[h]}e.override({zodSchema:r,jsonSchema:a,path:l.path??[]})};for(const r of[...e.seen.entries()].reverse())i(r[0]);const 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){const r=e.external.registry.get(t)?.id;if(!r)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(r)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const r of e.seen.entries()){const l=r[1];l.def&&l.defId&&(s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const r=JSON.parse(JSON.stringify(o));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wk(t,"input",e.processors),output:Wk(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch{throw new Error("Error converting schema to JSON.")}}function Br(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Br(i.element,n);if(i.type==="set")return Br(i.valueType,n);if(i.type==="lazy")return Br(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Br(i.innerType,n);if(i.type==="intersection")return Br(i.left,n)||Br(i.right,n);if(i.type==="record"||i.type==="map")return Br(i.keyType,n)||Br(i.valueType,n);if(i.type==="pipe")return Br(i.in,n)||Br(i.out,n);if(i.type==="object"){for(const o in i.shape)if(Br(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(Br(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(Br(o,n))return!0;return!!(i.rest&&Br(i.rest,n))}return!1}const F8e=(e,t={})=>n=>{const i=aq({...n,processors:t});return gs(e,i),uq(i,e),cq(i,e)},Wk=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},r=aq({...o??{},target:s,io:t,processors:n});return gs(e,r),uq(r,e),cq(r,e)},B8e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},R8e=(e,t,n,i)=>{const o=n;o.type="string";const{minimum:s,maximum:r,format:l,patterns:a,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof r=="number"&&(o.maxLength=r),l&&(o.format=B8e[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),a&&a.size>0){const c=[...a];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},O8e=(e,t,n,i)=>{const o=n,{minimum:s,maximum:r,format:l,multipleOf:a,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c),typeof s=="number"&&(o.minimum=s,typeof c=="number"&&t.target!=="draft-04"&&(c>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof r=="number"&&(o.maximum=r,typeof u=="number"&&t.target!=="draft-04"&&(u<=r?delete o.maximum:delete o.exclusiveMaximum)),typeof a=="number"&&(o.multipleOf=a)},$8e=(e,t,n,i)=>{n.type="boolean"},P8e=(e,t,n,i)=>{n.not={}},z8e=(e,t,n,i)=>{},j8e=(e,t,n,i)=>{const o=e._zod.def,s=jW(o.entries);s.every(r=>typeof r=="number")&&(n.type="number"),s.every(r=>typeof r=="string")&&(n.type="string"),n.enum=s},H8e=(e,t,n,i)=>{const o=e._zod.def,s=[];for(const r of o.values)if(r===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof r=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(r))}else s.push(r);if(s.length!==0)if(s.length===1){const r=s[0];n.type=r===null?"null":typeof r,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[r]:n.const=r}else s.every(r=>typeof r=="number")&&(n.type="number"),s.every(r=>typeof r=="string")&&(n.type="string"),s.every(r=>typeof r=="boolean")&&(n.type="boolean"),s.every(r=>r===null)&&(n.type="null"),n.enum=s},W8e=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},q8e=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},U8e=(e,t,n,i)=>{const o=n,s=e._zod.def,{minimum:r,maximum:l}=e._zod.bag;typeof r=="number"&&(o.minItems=r),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=gs(s.element,t,{...i,path:[...i.path,"items"]})},V8e=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const r=s.shape;for(const u in r)o.properties[u]=gs(r[u],t,{...i,path:[...i.path,"properties",u]});const l=new Set(Object.keys(r)),a=new Set([...l].filter(u=>{const c=s.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));a.size>0&&(o.required=Array.from(a)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=gs(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},K8e=(e,t,n,i)=>{const o=e._zod.def,s=o.inclusive===!1,r=o.options.map((l,a)=>gs(l,t,{...i,path:[...i.path,s?"oneOf":"anyOf",a]}));s?n.oneOf=r:n.anyOf=r},Z8e=(e,t,n,i)=>{const o=e._zod.def,s=gs(o.left,t,{...i,path:[...i.path,"allOf",0]}),r=gs(o.right,t,{...i,path:[...i.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,a=[...l(s)?s.allOf:[s],...l(r)?r.allOf:[r]];n.allOf=a},G8e=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object";const r=s.keyType,a=r._zod.bag?.patterns;if(s.mode==="loose"&&a&&a.size>0){const c=gs(s.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});o.patternProperties={};for(const d of a)o.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=gs(s.keyType,t,{...i,path:[...i.path,"propertyNames"]})),o.additionalProperties=gs(s.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const u=r._zod.values;if(u){const c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(o.required=c)}},Q8e=(e,t,n,i)=>{const o=e._zod.def,s=gs(o.innerType,t,i),r=t.seen.get(e);t.target==="openapi-3.0"?(r.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},Y8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},J8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},X8e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},e5e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType;let r;try{r=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=r},t5e=(e,t,n,i)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;gs(s,t,i);const r=t.seen.get(e);r.ref=s},n5e=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},dq=(e,t,n,i)=>{const o=e._zod.def;gs(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},i5e=Nt("ZodISODateTime",(e,t)=>{o3e.init(e,t),Fo.init(e,t)});function o5e(e){return c8e(i5e,e)}const s5e=Nt("ZodISODate",(e,t)=>{s3e.init(e,t),Fo.init(e,t)});function r5e(e){return d8e(s5e,e)}const l5e=Nt("ZodISOTime",(e,t)=>{r3e.init(e,t),Fo.init(e,t)});function a5e(e){return f8e(l5e,e)}const u5e=Nt("ZodISODuration",(e,t)=>{l3e.init(e,t),Fo.init(e,t)});function c5e(e){return h8e(u5e,e)}const d5e=(e,t)=>{UW.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ybe(e,n)},flatten:{value:n=>Qbe(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cA,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cA,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ca=Nt("ZodError",d5e,{Parent:Error}),f5e=gx(Ca),h5e=vx(Ca),p5e=k4(Ca),m5e=b4(Ca),g5e=e4e(Ca),v5e=t4e(Ca),y5e=n4e(Ca),k5e=i4e(Ca),b5e=o4e(Ca),w5e=s4e(Ca),C5e=r4e(Ca),A5e=l4e(Ca),Do=Nt("ZodType",(e,t)=>(No.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wk(e,"input"),output:Wk(e,"output")}}),e.toJSONSchema=F8e(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(uf(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>cf(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>f5e(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>p5e(e,n,i),e.parseAsync=async(n,i)=>h5e(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>m5e(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>g5e(e,n,i),e.decode=(n,i)=>v5e(e,n,i),e.encodeAsync=async(n,i)=>y5e(e,n,i),e.decodeAsync=async(n,i)=>k5e(e,n,i),e.safeEncode=(n,i)=>b5e(e,n,i),e.safeDecode=(n,i)=>w5e(e,n,i),e.safeEncodeAsync=async(n,i)=>C5e(e,n,i),e.safeDecodeAsync=async(n,i)=>A5e(e,n,i),e.refine=(n,i)=>e.check(vwe(n,i)),e.superRefine=n=>e.check(ywe(n)),e.overwrite=n=>e.check(bm(n)),e.optional=()=>MD(e),e.exactOptional=()=>owe(e),e.nullable=()=>ID(e),e.nullish=()=>MD(ID(e)),e.nonoptional=n=>cwe(e,n),e.array=()=>Ai(e),e.or=n=>G5e([e,n]),e.and=n=>J5e(e,n),e.transform=n=>TD(e,nwe(n)),e.default=n=>lwe(e,n),e.prefault=n=>uwe(e,n),e.catch=n=>fwe(e,n),e.pipe=n=>TD(e,n),e.readonly=()=>mwe(e),e.describe=n=>{const i=e.clone();return Fg.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Fg.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fg.get(e);const i=e.clone();return Fg.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),fq=Nt("_ZodString",(e,t)=>{yx.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>R8e(e,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(k8e(...i)),e.includes=(...i)=>e.check(C8e(...i)),e.startsWith=(...i)=>e.check(A8e(...i)),e.endsWith=(...i)=>e.check(x8e(...i)),e.min=(...i)=>e.check(Hk(...i)),e.max=(...i)=>e.check(rq(...i)),e.length=(...i)=>e.check(lq(...i)),e.nonempty=(...i)=>e.check(Hk(1,...i)),e.lowercase=i=>e.check(b8e(i)),e.uppercase=i=>e.check(w8e(i)),e.trim=()=>e.check(_8e()),e.normalize=(...i)=>e.check(S8e(...i)),e.toLowerCase=()=>e.check(M8e()),e.toUpperCase=()=>e.check(I8e()),e.slugify=()=>e.check(T8e())}),x5e=Nt("ZodString",(e,t)=>{yx.init(e,t),fq.init(e,t),e.email=n=>e.check(W3e(S5e,n)),e.url=n=>e.check(Z3e(_5e,n)),e.jwt=n=>e.check(u8e(j5e,n)),e.emoji=n=>e.check(G3e(M5e,n)),e.guid=n=>e.check(wD(SD,n)),e.uuid=n=>e.check(q3e(Cy,n)),e.uuidv4=n=>e.check(U3e(Cy,n)),e.uuidv6=n=>e.check(V3e(Cy,n)),e.uuidv7=n=>e.check(K3e(Cy,n)),e.nanoid=n=>e.check(Q3e(I5e,n)),e.guid=n=>e.check(wD(SD,n)),e.cuid=n=>e.check(Y3e(T5e,n)),e.cuid2=n=>e.check(J3e(E5e,n)),e.ulid=n=>e.check(X3e(L5e,n)),e.base64=n=>e.check(r8e($5e,n)),e.base64url=n=>e.check(l8e(P5e,n)),e.xid=n=>e.check(e8e(N5e,n)),e.ksuid=n=>e.check(t8e(D5e,n)),e.ipv4=n=>e.check(n8e(F5e,n)),e.ipv6=n=>e.check(i8e(B5e,n)),e.cidrv4=n=>e.check(o8e(R5e,n)),e.cidrv6=n=>e.check(s8e(O5e,n)),e.e164=n=>e.check(a8e(z5e,n)),e.datetime=n=>e.check(o5e(n)),e.date=n=>e.check(r5e(n)),e.time=n=>e.check(a5e(n)),e.duration=n=>e.check(c5e(n))});function jt(e){return H3e(x5e,e)}const Fo=Nt("ZodStringFormat",(e,t)=>{_o.init(e,t),fq.init(e,t)}),S5e=Nt("ZodEmail",(e,t)=>{G4e.init(e,t),Fo.init(e,t)}),SD=Nt("ZodGUID",(e,t)=>{K4e.init(e,t),Fo.init(e,t)}),Cy=Nt("ZodUUID",(e,t)=>{Z4e.init(e,t),Fo.init(e,t)}),_5e=Nt("ZodURL",(e,t)=>{Q4e.init(e,t),Fo.init(e,t)}),M5e=Nt("ZodEmoji",(e,t)=>{Y4e.init(e,t),Fo.init(e,t)}),I5e=Nt("ZodNanoID",(e,t)=>{J4e.init(e,t),Fo.init(e,t)}),T5e=Nt("ZodCUID",(e,t)=>{X4e.init(e,t),Fo.init(e,t)}),E5e=Nt("ZodCUID2",(e,t)=>{e3e.init(e,t),Fo.init(e,t)}),L5e=Nt("ZodULID",(e,t)=>{t3e.init(e,t),Fo.init(e,t)}),N5e=Nt("ZodXID",(e,t)=>{n3e.init(e,t),Fo.init(e,t)}),D5e=Nt("ZodKSUID",(e,t)=>{i3e.init(e,t),Fo.init(e,t)}),F5e=Nt("ZodIPv4",(e,t)=>{a3e.init(e,t),Fo.init(e,t)}),B5e=Nt("ZodIPv6",(e,t)=>{u3e.init(e,t),Fo.init(e,t)}),R5e=Nt("ZodCIDRv4",(e,t)=>{c3e.init(e,t),Fo.init(e,t)}),O5e=Nt("ZodCIDRv6",(e,t)=>{d3e.init(e,t),Fo.init(e,t)}),$5e=Nt("ZodBase64",(e,t)=>{f3e.init(e,t),Fo.init(e,t)}),P5e=Nt("ZodBase64URL",(e,t)=>{p3e.init(e,t),Fo.init(e,t)}),z5e=Nt("ZodE164",(e,t)=>{m3e.init(e,t),Fo.init(e,t)}),j5e=Nt("ZodJWT",(e,t)=>{v3e.init(e,t),Fo.init(e,t)}),hq=Nt("ZodNumber",(e,t)=>{tq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>O8e(e,i,o),e.gt=(i,o)=>e.check(AD(i,o)),e.gte=(i,o)=>e.check(o5(i,o)),e.min=(i,o)=>e.check(o5(i,o)),e.lt=(i,o)=>e.check(CD(i,o)),e.lte=(i,o)=>e.check(i5(i,o)),e.max=(i,o)=>e.check(i5(i,o)),e.int=i=>e.check(_D(i)),e.safe=i=>e.check(_D(i)),e.positive=i=>e.check(AD(0,i)),e.nonnegative=i=>e.check(o5(0,i)),e.negative=i=>e.check(CD(0,i)),e.nonpositive=i=>e.check(i5(0,i)),e.multipleOf=(i,o)=>e.check(xD(i,o)),e.step=(i,o)=>e.check(xD(i,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function wn(e){return p8e(hq,e)}const H5e=Nt("ZodNumberFormat",(e,t)=>{y3e.init(e,t),hq.init(e,t)});function _D(e){return m8e(H5e,e)}const W5e=Nt("ZodBoolean",(e,t)=>{k3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>$8e(e,n,i)});function Kv(e){return g8e(W5e,e)}const q5e=Nt("ZodUnknown",(e,t)=>{b3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>z8e()});function Ss(){return v8e(q5e)}const U5e=Nt("ZodNever",(e,t)=>{w3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>P8e(e,n,i)});function V5e(e){return y8e(U5e,e)}const K5e=Nt("ZodArray",(e,t)=>{C3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>U8e(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(Hk(n,i)),e.nonempty=n=>e.check(Hk(1,n)),e.max=(n,i)=>e.check(rq(n,i)),e.length=(n,i)=>e.check(lq(n,i)),e.unwrap=()=>e.element});function Ai(e,t){return E8e(K5e,e,t)}const Z5e=Nt("ZodObject",(e,t)=>{x3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>V8e(e,n,i,o),zi(e,"shape",()=>t.shape),e.keyof=()=>So(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ss()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ss()}),e.strict=()=>e.clone({...e._zod.def,catchall:V5e()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Ube(e,n),e.safeExtend=n=>Vbe(e,n),e.merge=n=>Kbe(e,n),e.pick=n=>Wbe(e,n),e.omit=n=>qbe(e,n),e.partial=(...n)=>Zbe(mq,e,n[0]),e.required=(...n)=>Gbe(gq,e,n[0])});function Jt(e,t){const n={type:"object",shape:e??{},...Tn(t)};return new Z5e(n)}const pq=Nt("ZodUnion",(e,t)=>{oq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>K8e(e,n,i,o),e.options=t.options});function G5e(e,t){return new pq({type:"union",options:e,...Tn(t)})}const Q5e=Nt("ZodDiscriminatedUnion",(e,t)=>{pq.init(e,t),S3e.init(e,t)});function df(e,t,n){return new Q5e({type:"union",options:t,discriminator:e,...Tn(n)})}const Y5e=Nt("ZodIntersection",(e,t)=>{_3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Z8e(e,n,i,o)});function J5e(e,t){return new Y5e({type:"intersection",left:e,right:t})}const X5e=Nt("ZodRecord",(e,t)=>{M3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>G8e(e,n,i,o),e.keyType=t.keyType,e.valueType=t.valueType});function kx(e,t,n){return new X5e({type:"record",keyType:e,valueType:t,...Tn(n)})}const fA=Nt("ZodEnum",(e,t)=>{I3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(i,o,s)=>j8e(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const r of i)if(n.has(r))s[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new fA({...t,checks:[],...Tn(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const r of i)if(n.has(r))delete s[r];else throw new Error(`Key ${r} not found in enum`);return new fA({...t,checks:[],...Tn(o),entries:s})}});function So(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new fA({type:"enum",entries:n,...Tn(t)})}const ewe=Nt("ZodLiteral",(e,t)=>{T3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>H8e(e,n,i),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 Gn(e,t){return new ewe({type:"literal",values:Array.isArray(e)?e:[e],...Tn(t)})}const twe=Nt("ZodTransform",(e,t)=>{E3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>q8e(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new PW(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(lv(s,n.value,t));else{const r=s;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(lv(r))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function nwe(e){return new twe({type:"transform",transform:e})}const mq=Nt("ZodOptional",(e,t)=>{sq.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>dq(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function MD(e){return new mq({type:"optional",innerType:e})}const iwe=Nt("ZodExactOptional",(e,t)=>{L3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>dq(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function owe(e){return new iwe({type:"optional",innerType:e})}const swe=Nt("ZodNullable",(e,t)=>{N3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Q8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function ID(e){return new swe({type:"nullable",innerType:e})}const rwe=Nt("ZodDefault",(e,t)=>{D3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>J8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lwe(e,t){return new rwe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():WW(t)}})}const awe=Nt("ZodPrefault",(e,t)=>{F3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>X8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function uwe(e,t){return new awe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():WW(t)}})}const gq=Nt("ZodNonOptional",(e,t)=>{B3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Y8e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function cwe(e,t){return new gq({type:"nonoptional",innerType:e,...Tn(t)})}const dwe=Nt("ZodCatch",(e,t)=>{R3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>e5e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fwe(e,t){return new dwe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const hwe=Nt("ZodPipe",(e,t)=>{O3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>t5e(e,n,i,o),e.in=t.in,e.out=t.out});function TD(e,t){return new hwe({type:"pipe",in:e,out:t})}const pwe=Nt("ZodReadonly",(e,t)=>{$3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>n5e(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function mwe(e){return new pwe({type:"readonly",innerType:e})}const gwe=Nt("ZodCustom",(e,t)=>{P3e.init(e,t),Do.init(e,t),e._zod.processJSONSchema=(n,i,o)=>W8e(e,n)});function vwe(e,t={}){return L8e(gwe,e,t)}function ywe(e){return N8e(e)}const jh=jt().min(1),bx=jt().min(1),Zv=jt().min(1),Hh=jt().min(1),Gl=jt().min(1),kwe=/^[A-Za-z0-9._-]{1,128}$/;function bwe(e){return kwe.test(e)&&e!=="."&&e!==".."}const vq=df("kind",[Jt({kind:Gn("user"),payload:Ss().optional()}),Jt({kind:Gn("cron"),taskId:Hh.optional(),payload:Ss().optional()}),Jt({kind:Gn("task"),taskId:Hh,payload:Ss().optional()}),Jt({kind:Gn("hook"),payload:Ss().optional()}),Jt({kind:Gn("compaction"),payload:Ss().optional()}),Jt({kind:Gn("side"),payload:Ss().optional()}),Jt({kind:Gn("other"),payload:Ss().optional()})]),wwe=Jt({inputTokens:wn().optional(),outputTokens:wn().optional(),cachedTokens:wn().optional(),cost:wn().optional()}),w0=Jt({inputOther:wn(),output:wn(),inputCacheRead:wn(),inputCacheCreation:wn()}),Cwe=Jt({llmFirstTokenLatencyMs:wn().optional(),llmStreamDurationMs:wn().optional(),llmRequestBuildMs:wn().optional(),llmServerFirstTokenMs:wn().optional(),llmServerDecodeMs:wn().optional(),llmClientConsumeMs:wn().optional()}),Awe=Jt({failedAttempt:wn(),nextAttempt:wn(),maxAttempts:wn(),delayMs:wn(),errorName:jt(),errorMessage:jt(),statusCode:wn().optional()}),yq=So(["queued","running","completed","failed","cancelled"]),xwe=So(["running","completed","interrupted","failed"]),Swe=Jt({kind:Gn("text"),frameId:Zv,role:So(["assistant","user"]),text:jt(),attachmentIds:Ai(jt()).optional(),taskId:Hh.optional(),promptIds:Ai(jt()).optional()}),_we=Jt({kind:Gn("thinking"),frameId:Zv,text:jt()}),Mwe=Jt({agentId:Gl,role:So(["child","member"]).optional()}),Iwe=Jt({kind:So(["stdout","stderr","progress","status","custom"]),text:jt().optional(),percent:wn().optional(),customKind:jt().optional(),customData:Ss().optional()}),Twe=Jt({kind:Gn("tool"),frameId:Zv,toolCallId:jt(),name:jt(),view:jt().optional(),state:So(["running","done","error"]),input:Ss().optional(),output:Ss().optional(),display:Ss().optional(),error:jt().optional(),inputText:jt().optional(),progress:Iwe.optional(),taskId:Hh.optional(),approvalId:jt().optional(),todoId:jt().optional(),agentRefs:Ai(Mwe).optional()}),wx=Jt({interactionId:jt(),interactionKind:So(["approval","question"]),toolCallId:jt().optional(),state:So(["pending","approved","rejected","cancelled","answered","dismissed"]),request:Ss().optional(),response:Ss().optional()}),Ewe=Jt({kind:Gn("notice"),frameId:Zv,level:So(["error","warning","info"]),source:jt().optional(),message:jt(),detail:Ss().optional()}),kq=df("kind",[Swe,_we,Twe,Ewe]),bq=Jt({kind:Gn("step"),stepId:bx,turnId:jh,ordinal:wn().int(),state:xwe,frames:Ai(kq),startedAt:jt().optional(),endedAt:jt().optional(),usage:w0.optional(),finishReason:jt().optional(),timing:Cwe.optional(),retry:Awe.optional(),endReason:jt().optional(),endMessage:jt().optional()}),wq=Jt({kind:Gn("turn"),turnId:jh,ordinal:wn().int(),state:yq,origin:vq,prompt:jt().optional(),attachmentIds:Ai(jt()).optional(),steps:Ai(bq),startedAt:jt().optional(),endedAt:jt().optional(),usage:wwe.optional(),durationMs:wn().optional(),error:jt().optional()}),Cq=Jt({kind:Gn("marker"),markerId:jt(),marker:jt(),payload:Ss().optional(),at:jt().optional()}),Aq=Jt({kind:Gn("taskref"),refId:jt(),taskId:Hh,at:jt().optional()}),xq=df("kind",[wq,Cq,Aq]),Cx=Jt({taskId:Hh,kind:So(["shell","subagent","tool","other"]),state:So(["running","completed","failed","timed_out","killed","lost"]),detached:Kv(),description:jt().optional(),agentId:Gl.optional(),outputTail:jt(),startedAt:jt().optional(),endedAt:jt().optional(),resultSummary:jt().optional(),error:jt().optional(),stateReason:jt().optional(),usage:w0.optional(),model:jt().optional(),thinkingEffort:jt().optional()}),Sq=Jt({objective:jt(),status:So(["active","paused","blocked","complete"]),completionCriterion:jt().optional(),budgetUsed:wn().optional(),budgetLimit:wn().optional()}),Lwe=Jt({plan:Jt({reviewPath:jt().optional(),version:wn().optional()}).optional(),swarm:Jt({trigger:jt().optional()}).optional(),tower:Jt({}).optional()}),Nwe=Jt({plan:Jt({reviewPath:jt().optional(),version:wn().optional()}).nullable().optional(),swarm:Jt({trigger:jt().optional()}).nullable().optional(),tower:Jt({}).nullable().optional()}),Dwe=df("kind",[Jt({kind:Gn("idle")}),Jt({kind:Gn("running"),turnId:wn(),step:wn(),stepId:jt(),since:wn()}),Jt({kind:Gn("streaming"),turnId:wn(),step:wn(),stepId:jt(),stream:So(["assistant","thinking","tool_call"]),toolCallId:jt().optional(),toolName:jt().optional(),since:wn()}),Jt({kind:Gn("tool_call"),turnId:wn(),step:wn(),toolCallId:jt(),name:jt(),since:wn()}),Jt({kind:Gn("retrying"),turnId:wn(),step:wn(),stepId:jt(),failedAttempt:wn(),nextAttempt:wn(),maxAttempts:wn(),delayMs:wn(),errorName:jt().optional(),statusCode:wn().optional(),since:wn()}),Jt({kind:Gn("awaiting_approval"),turnId:wn(),step:wn().optional(),approval:Ss().optional(),since:wn()}),Jt({kind:Gn("interrupted"),turnId:wn(),step:wn().optional(),reason:So(["aborted","max_steps","error"]),message:jt().optional(),at:wn()}),Jt({kind:Gn("ended"),turnId:wn(),reason:So(["completed","cancelled","failed","blocked"]),durationMs:wn().optional(),at:wn()})]),Fwe=Jt({byModel:kx(jt(),w0).optional(),currentTurn:w0.optional(),total:w0.optional()}),Bwe=Jt({model:jt().optional(),thinkingEffort:jt().optional(),usage:Fwe.optional(),contextTokens:wn().optional(),maxContextTokens:wn().optional(),contextUsage:wn().optional(),permission:So(["manual","yolo","auto"]).optional(),phase:Dwe.optional()}),Ax=Jt({goal:Sq.optional(),modes:Lwe.optional(),activity:So(["idle","turn","disposing","unknown"]).optional(),agent:Bwe.optional()}),Rwe=Ax.extend({goal:Sq.nullable().optional(),modes:Nwe.optional()}),C4=Jt({attachmentId:jt(),mediaType:jt(),name:jt().optional(),size:wn().optional(),source:df("kind",[Jt({kind:Gn("url"),url:jt()}),Jt({kind:Gn("file"),fileId:jt()}),Jt({kind:Gn("session_media"),fileId:jt()})]).optional(),placeholder:jt().optional()}),Owe=Jt({title:jt(),status:So(["pending","in_progress","done"])}),xx=Jt({todoId:jt(),items:Ai(Owe),updatedAt:jt().optional()}),Sx=Jt({promptId:jt(),status:So(["running","queued","blocked","completed","failed","aborted"]),userMessageId:jt().optional(),content:Ss().optional(),createdAt:jt(),finishedAt:jt().optional(),steeredAt:jt().optional()}),_q=Jt({items:Ai(xq),tasks:Ai(Cx),interactions:Ai(wx).default([]),attachments:Ai(C4).default([]),todos:Ai(xx).default([]),prompts:Ai(Sx).default([]),meta:Ax,hasMoreOlder:Kv().optional()}),$we=wq.omit({steps:!0}),Pwe=bq.omit({frames:!0}),zwe=df("type",[Jt({type:Gn("frame"),turnId:jh,stepId:bx,frameId:Zv}),Jt({type:Gn("task"),taskId:Hh})]),_x=df("op",[Jt({op:Gn("reset"),agentId:Gl,snapshot:_q}),Jt({op:Gn("turn.upsert"),turn:$we}),Jt({op:Gn("step.upsert"),turnId:jh,step:Pwe}),Jt({op:Gn("frame.upsert"),turnId:jh,stepId:bx,frame:kq}),Jt({op:Gn("append"),target:zwe,offset:wn().int().nonnegative(),text:jt()}),Jt({op:Gn("marker.upsert"),item:Cq,beforeTurn:wn().int().optional()}),Jt({op:Gn("taskref.upsert"),item:Aq,beforeTurn:wn().int().optional()}),Jt({op:Gn("task.upsert"),task:Cx}),Jt({op:Gn("interaction.upsert"),interaction:wx}),Jt({op:Gn("attachment.upsert"),attachment:C4}),Jt({op:Gn("todo.upsert"),todo:xx}),Jt({op:Gn("prompt.upsert"),prompt:Sx}),Jt({op:Gn("meta.merge"),meta:Rwe}),Jt({op:Gn("items.remove"),ids:Ai(jt())})]);Jt({agentId:Gl,ops:Ai(_x)});const jwe=So(["off","turn","block","delta"]),Q1=wn().int().nonnegative(),Hwe=kx(jt(),jwe);Jt({session_id:jt().min(1),transcript:Hwe,transcript_since:kx(jt(),Q1).optional()});Jt({agent_id:Gl,before_turn:jt().min(1).optional(),after_turn:jt().min(1).optional(),page_size:wn().int().min(1).max(100).optional()}).superRefine((e,t)=>{e.before_turn!==void 0&&e.after_turn!==void 0&&t.addIssue({code:"custom",message:"before_turn and after_turn are mutually exclusive",path:["before_turn"]}),bwe(e.agent_id)||t.addIssue({code:"custom",message:"agent_id must be a plain agent id (no path separators)",path:["agent_id"]})});const Wwe=Jt({agentId:Gl,type:So(["main","sub","independent"]).optional(),parentAgentId:Gl.optional(),label:jt().optional(),createdAt:jt().optional(),disposedAt:jt().optional()}),qwe=Jt({agent_id:Gl,items:Ai(xq),has_more:Kv(),tasks:Ai(Cx),interactions:Ai(wx).default([]),attachments:Ai(C4).default([]),todos:Ai(xx).default([]),prompts:Ai(Sx).default([]),meta:Ax,agents:Ai(Wwe),pending_interactions:Ai(jt()),seq:Q1.optional()});Jt({agent_id:Gl,batches:Ai(Jt({seq:Q1,ops:Ai(_x)})),latest_seq:Q1,complete:Kv()});const Uwe=Jt({turn_id:jh,ordinal:wn().int(),state:yq,origin:vq,prompt:jt(),attachment_ids:Ai(jt()).optional(),started_at:jt().optional()});Jt({agents:Ai(Jt({agent_id:Gl,messages:Ai(Uwe),attachments:Ai(C4).default([])}))});const Vwe=Jt({state:So(["pending","approved","rejected","cancelled"]),selected_option:jt().optional(),feedback:jt().optional()}),Kwe=Jt({tool_call_id:jt(),turn_id:jh,source:So(["interaction","display","output"]),plan:jt(),path:jt().optional(),options:Ai(Jt({label:jt(),description:jt().optional()})).optional(),review:Vwe.optional()});Jt({agent_id:Gl,plans:Ai(Kwe)});const Zwe=Jt({agent_id:Gl,snapshot:_q,has_more_older:Kv(),seq:Q1.optional()}),Gwe=Jt({agent_id:Gl,ops:Ai(_x),seq:Q1.optional()}),Mq=Zwe.extend({type:Gn("transcript.reset")}),Iq=Gwe.extend({type:Gn("transcript.ops")});df("type",[Mq,Iq]);const ED=new Set(["turn.started","turn.step.started","turn.step.completed","turn.step.retrying","turn.step.interrupted","turn.ended","thinking.delta","assistant.delta","tool.call.started","tool.use","tool.call.delta","tool.progress","tool.result","agent.status.updated","prompt.submitted","prompt.completed","prompt.aborted","session.meta.updated","compaction.started","compaction.completed","compaction.cancelled","goal.updated","error","warning","subagent.spawned","subagent.started","subagent.suspended","subagent.completed","subagent.failed","task.started","task.terminated","background.task.started","background.task.terminated","cron.fired"]),Qwe=new Set(["session.created","session.updated","session.deleted","session.status_changed","session.usage_updated","session.history_compacted","message.created","message.updated","approval.requested","approval.resolved","approval.expired","question.requested","question.answered","question.dismissed","task.created","task.progress","task.completed","assistant.tool_use_started","assistant.tool_use_delta","assistant.tool_use_completed","assistant.completed","tool.started","tool.output","tool.completed"]),Ywe=new Set(["server_hello","ack","ping","resync_required","error","pong"]),Jwe=new Set(["assistant.delta","thinking.delta"]);function Xwe(e,t){if(Ywe.has(e))return{route:"ignore"};const n=e.startsWith("event."),i=n?e.slice(6):e;return Jwe.has(i)?eCe(t)?{route:"agent",agentType:i}:{route:"protocol"}:n?Qwe.has(i)?{route:"protocol"}:ED.has(i)?{route:"agent",agentType:i}:{route:"protocol"}:ED.has(i)?{route:"agent",agentType:i}:{route:"agent",agentType:i}}function eCe(e){if(!e||typeof e!="object")return!1;const t=e;return"message_id"in t||"content_index"in t?!1:typeof t.delta=="string"}const tCe="kimi-code.bearer.",nCe=3e4;class LD{constructor(t){this.opts=t,this.tracer=t.tracer??ux}ws=null;connected=!1;closed=!1;subscriptions=new Map;transcriptSubscriptions=new Map;sideChannelAgents=new Map;pendingSubscriptions=[];terminalAttachments=new Map;msgSeq=0;clientHelloId=null;reconnectAttempts=0;reconnectTimer=null;heartbeatMs=3e4;lastActivityAt=0;tracer;connect(){if(this.ws!==null||this.closed)return;this.lastActivityAt=Date.now(),this.tracer.wsEvent?.({kind:"lifecycle",event:"connect",detail:{url:this.opts.wsUrl,attempt:this.reconnectAttempts}});const t=this.opts.credentialStore?.getToken(),n=t!==void 0?[`${tCe}${t}`]:void 0,i=new WebSocket(this.opts.wsUrl,n);this.ws=i,i.onopen=()=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"open"})},i.onmessage=o=>{this.lastActivityAt=Date.now();try{const s=JSON.parse(String(o.data));this.tracer.wsEvent?.({kind:"in",frame:s}),this.handleFrame(s)}catch(s){this.tracer.wsEvent?.({kind:"lifecycle",event:"parse-error",detail:{error:String(s)}}),this.opts.handlers.onError(0,`Failed to parse WS frame: ${String(s)}`,!1)}},i.onerror=()=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"error"}),this.opts.handlers.onError(0,"WebSocket error",!1)},i.onclose=o=>{this.tracer.wsEvent?.({kind:"lifecycle",event:"close",detail:o?{code:o.code,reason:o.reason,wasClean:o.wasClean}:void 0}),this.connected=!1,this.ws=null,this.opts.handlers.onConnectionState(!1),this.scheduleReconnect()}}scheduleReconnect(){if(this.closed||this.reconnectTimer!==null)return;const n=Math.min(3e4,1e3*2**this.reconnectAttempts)+Math.floor(Math.random()*250);this.reconnectAttempts+=1,this.tracer.wsEvent?.({kind:"lifecycle",event:"reconnect-scheduled",detail:{delayMs:n,attempt:this.reconnectAttempts}}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}subscribe(t,n={seq:0}){if(this.subscriptions.set(t,{...n}),this.connected)this.sendSubscribe([t],{[t]:n});else{const i=this.pendingSubscriptions.findIndex(o=>o.sessionId===t);i!==-1&&this.pendingSubscriptions.splice(i,1),this.pendingSubscriptions.push({sessionId:t,cursor:{...n}})}}unsubscribe(t){this.subscriptions.delete(t);const n=this.pendingSubscriptions.findIndex(i=>i.sessionId===t);n!==-1&&this.pendingSubscriptions.splice(n,1),this.connected&&this.ws&&this.send({type:"unsubscribe",id:this.nextId(),payload:{session_ids:[t]}})}subscribeTranscript(t,n,i){let o=this.transcriptSubscriptions.get(t);o===void 0&&(o=new Map,this.transcriptSubscriptions.set(t,o)),o.set(n,i!==void 0?{sinceSeq:i}:{}),this.connected&&this.sendTranscriptSubscribe(t,n)}unsubscribeTranscript(t,n){const i=this.transcriptSubscriptions.get(t);if(i!==void 0)if(n===void 0)this.transcriptSubscriptions.delete(t);else{for(const o of n)i.delete(o);i.size===0&&this.transcriptSubscriptions.delete(t)}!this.connected||!this.ws||this.send({type:"unsubscribe_v2",id:this.nextId(),payload:{session_id:t,...n!==void 0?{agent_ids:n}:{}}})}markSideChannelAgent(t,n){if(!this.opts.mainAgentOnly)return;let i=this.sideChannelAgents.get(t);if(i===void 0&&(i=new Set,this.sideChannelAgents.set(t,i)),i.has(n))return;i.add(n);const o=this.subscriptions.get(t);this.connected&&o!==void 0&&this.sendSubscribe([t],{[t]:o})}abort(t,n){!this.connected||!this.ws||this.send({type:"abort",id:this.nextId(),payload:{session_id:t,prompt_id:n}})}terminalAttach(t,n,i){const o=Ay(t,n),s=this.terminalAttachments.get(o),r=i??s?.lastSeq??0;this.terminalAttachments.set(o,{sessionId:t,terminalId:n,lastSeq:r}),!(!this.connected||!this.ws)&&this.sendTerminalAttach(t,n,r)}terminalInput(t,n,i){!this.connected||!this.ws||this.send({type:"terminal_input",id:this.nextId(),payload:{session_id:t,terminal_id:n,data:i}})}terminalResize(t,n,i,o){!this.connected||!this.ws||this.send({type:"terminal_resize",id:this.nextId(),payload:{session_id:t,terminal_id:n,cols:i,rows:o}})}terminalDetach(t,n){this.terminalAttachments.delete(Ay(t,n)),!(!this.connected||!this.ws)&&this.send({type:"terminal_detach",id:this.nextId(),payload:{session_id:t,terminal_id:n}})}terminalClose(t,n){this.terminalAttachments.delete(Ay(t,n)),!(!this.connected||!this.ws)&&this.send({type:"terminal_close",id:this.nextId(),payload:{session_id:t,terminal_id:n}})}close(){this.closed=!0,this.connected=!1,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(1e3),this.ws=null)}health(){const t=this.ws!==null&&this.ws.readyState===WebSocket.OPEN,n=Math.max(this.heartbeatMs*2,nCe),i=this.lastActivityAt>0&&Date.now()-this.lastActivityAt>n;return{connected:this.connected,open:t,stale:i}}reconnect(){if(this.closed)return;this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);const t=this.ws;if(t!==null){t.onopen=null,t.onmessage=null,t.onerror=null,t.onclose=null;try{t.close(1e3,"reconnect")}catch{}}const n=this.connected;this.ws=null,this.connected=!1,n&&this.opts.handlers.onConnectionState(!1),this.connect()}handleFrame(t){const n=t,i=t.type;if(i==="transcript.reset"){const o=Mq.safeParse({type:i,...n.payload}),s=n.session_id;if(!o.success||typeof s!="string"){this.opts.handlers.onError(0,"Invalid transcript.reset frame",!1);return}const r=o.data;this.opts.handlers.onTranscriptReset?.(s,r.agent_id,{...r.snapshot,hasMoreOlder:r.has_more_older},r.seq);const l=this.transcriptSubscriptions.get(s)?.get(r.agent_id);l!==void 0&&r.seq!==void 0&&(l.sinceSeq=r.seq);return}if(i==="transcript.ops"){const o=Iq.safeParse({type:i,...n.payload}),s=n.session_id;if(!o.success||typeof s!="string"){this.opts.handlers.onError(0,"Invalid transcript.ops frame",!1);return}const r=o.data,l=this.opts.handlers.onTranscriptOps?.(s,r.agent_id,r.ops,r.seq),a=this.transcriptSubscriptions.get(s)?.get(r.agent_id);l!==!1&&a!==void 0&&r.seq!==void 0&&(a.sinceSeq=r.seq);return}switch(i){case"server_hello":{const o=n.payload?.heartbeat_ms;typeof o=="number"&&o>0&&(this.heartbeatMs=o),this.onServerHello();break}case"ping":this.send({type:"pong",payload:{nonce:n.payload.nonce}});break;case"resync_required":{const o=n.payload.session_id,s=n.payload.epoch;this.subscriptions.set(o,{seq:n.payload.current_seq,epoch:s}),this.opts.handlers.onResync(o,n.payload.current_seq,s);break}case"error":{const o=n.session_id;typeof o=="string"&&this.opts.handlers.onRawAgentEvent?this.opts.handlers.onRawAgentEvent({type:"error",seq:n.seq,session_id:o,timestamp:n.timestamp,payload:n.payload}):this.opts.handlers.onError(n.payload.code,n.payload.msg,n.payload.fatal);break}case"ack":n.id===this.clientHelloId&&(this.clientHelloId=null,n.code===0&&this.opts.handlers.onReplayComplete?.());break;case"terminal_output":{const o=n.session_id,s=n.terminal_id,r=n.seq,l=Ay(o,s),a=this.terminalAttachments.get(l);a&&this.terminalAttachments.set(l,{...a,lastSeq:Math.max(a.lastSeq,r)});const u=typeof n.payload?.data=="string"?n.payload.data:"";this.opts.handlers.onTerminalOutput?.(o,s,u,r);break}case"terminal_exit":{const o=n.session_id,s=n.terminal_id,r=n.payload?.exit_code,l=typeof r=="number"?r:null;this.opts.handlers.onTerminalExit?.(o,s,l);break}default:{this.trackCursor(n);const o=n.type,s=Xwe(o,n.payload);if(s.route==="protocol"){this.opts.handlers.onWireEvent(n);break}if(s.route==="agent"){if(this.opts.handlers.onRawAgentEvent&&typeof n.session_id=="string"){const r=n,l=n;this.opts.handlers.onRawAgentEvent({type:s.agentType,seq:r.seq,session_id:r.session_id,timestamp:r.timestamp,payload:r.payload,...l.volatile!==void 0?{volatile:l.volatile}:{},...l.offset!==void 0?{offset:l.offset}:{}})}break}break}}}onServerHello(){this.connected=!0,this.reconnectAttempts=0,this.opts.handlers.onConnectionState(!0);const t=Array.from(this.subscriptions.keys());for(const o of this.pendingSubscriptions)this.subscriptions.set(o.sessionId,o.cursor),t.includes(o.sessionId)||t.push(o.sessionId);this.pendingSubscriptions.length=0;const n={};for(const[o,s]of this.subscriptions.entries())n[o]=s;const i=this.nextId();this.clientHelloId=i,this.send({type:"client_hello",id:i,payload:{client_id:this.opts.clientId,subscriptions:t,cursors:n,...this.opts.mainAgentOnly?{agent_filter:this.rawAgentFilter(t)}:{}}});for(const o of this.transcriptSubscriptions.keys())this.sendTranscriptSubscribe(o);for(const o of this.terminalAttachments.values())this.sendTerminalAttach(o.sessionId,o.terminalId,o.lastSeq)}sendSubscribe(t,n){this.send({type:"subscribe",id:this.nextId(),payload:{session_ids:t,cursors:n,...this.opts.mainAgentOnly?{agent_filter:this.rawAgentFilter(t)}:{}}})}rawAgentFilter(t){return Object.fromEntries(t.map(n=>[n,["main",...this.sideChannelAgents.get(n)??[]]]))}sendTranscriptSubscribe(t,n){const i=this.transcriptSubscriptions.get(t);if(i===void 0||i.size===0)return;const o={},s={};for(const[r,l]of i)o[r]="delta",l.sinceSeq!==void 0&&(n===void 0||n===r)&&(s[r]=l.sinceSeq);this.send({type:"subscribe_v2",id:this.nextId(),payload:{session_id:t,transcript:o,...Object.keys(s).length>0?{transcript_since:s}:{}}})}sendTerminalAttach(t,n,i){this.send({type:"terminal_attach",id:this.nextId(),payload:{session_id:t,terminal_id:n,since_seq:i>0?i:void 0}})}trackCursor(t){if(t.volatile===!0)return;const n=t.session_id,i=t.seq;if(typeof n!="string"||typeof i!="number")return;const o=this.subscriptions.get(n);if(!o||i<=o.seq&&o.epoch!==void 0)return;const s=typeof t.epoch=="string"?t.epoch:o.epoch;this.subscriptions.set(n,{seq:Math.max(i,o.seq),epoch:s})}send(t){if(!(!this.ws||this.ws.readyState!==WebSocket.OPEN))try{this.ws.send(JSON.stringify(t)),this.tracer.wsEvent?.({kind:"out",frame:t})}catch{}}nextId(){return`c_${++this.msgSeq}`}}function Ay(e,t){return`${e}\0${t}`}async function iCe(e,t,n){const i=await e.get(`/sessions/${encodeURIComponent(t)}/transcript`,{agent_id:n.agentId,before_turn:n.beforeTurn,after_turn:n.afterTurn,page_size:n.pageSize}),o=qwe.parse(i),s={items:o.items,tasks:o.tasks,interactions:o.interactions,attachments:o.attachments,todos:o.todos,prompts:o.prompts,meta:o.meta,hasMoreOlder:o.has_more};return{agentId:o.agent_id,...s,agents:o.agents,pendingInteractions:o.pending_interactions,...o.seq!==void 0?{seq:o.seq}:{}}}const s5=10485760,oCe=5e3,ND=40001;function sCe(e,t){if(e===void 0)return t;let n;const i=/filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e)?.[1]?.trim();if(i!==void 0)try{n=decodeURIComponent(i.replaceAll(/^"|"$/g,""))}catch{return t}else n=/filename\s*=\s*"([^"]*)"/i.exec(e)?.[1]??/filename\s*=\s*([^;]+)/i.exec(e)?.[1]?.trim();return n===void 0||n.length===0||n.length>200||n==="."||n===".."||/[\u0000-\u001F\u007F/\\]/.test(n)||!n.toLowerCase().endsWith(".zip")?t:n}function rCe(e){if(typeof e!="object"||e===null)return{errorName:typeof e};const t=e;return{errorName:typeof t.name=="string"?t.name:"Error",errorCode:typeof t.code=="number"?t.code:void 0,requestId:typeof t.requestId=="string"?t.requestId:void 0,phase:typeof t.phase=="string"?t.phase:void 0,httpStatus:typeof t.status=="number"?t.status:void 0}}function r5(e){return{id:e.id,sessionId:e.session_id,cwd:e.cwd,shell:e.shell,cols:e.cols,rows:e.rows,status:e.status,createdAt:e.created_at,exitedAt:e.exited_at,exitCode:e.exit_code}}function DD(e){return e==="auto_compact"||e==="manual_compact"}class lCe{constructor(t){this.opts=t,this.tracer=t.tracer??ux,this.http=new tD({origin:t.origin,identity:t.identity,tracer:this.tracer,credentialStore:t.credentialStore}),this.httpV2=new tD({origin:t.origin,identity:t.identity,tracer:this.tracer,credentialStore:t.credentialStore,restBasePath:"/api/v2"})}http;httpV2;tracer;async getHealth(){return{status:"ok",uptimeSec:(await this.http.get("/healthz")).uptime_sec??0}}async getMeta(){const t=await this.http.get("/meta");return{serverVersion:t.server_version,serverId:t.server_id,startedAt:t.started_at,capabilities:t.capabilities,openInApps:Array.isArray(t.open_in_apps)?t.open_in_apps:[],dangerousBypassAuth:t.dangerous_bypass_auth===!0,experimentalFlags:t.experimental_flags??{},backend:t.backend==="v2"?"v2":"v1",webTitle:t.web_title??""}}async listSessions(t){const n={before_id:t?.beforeId,after_id:t?.afterId,page_size:t?.pageSize,busy:t?.busy,include_archive:t?.includeArchive,archived_only:t?.archivedOnly,exclude_empty:t?.excludeEmpty,workspace_id:t?.workspaceId},i=await this.http.get("/sessions",n);return{items:i.items.map(gu),hasMore:i.has_more}}async listSessionsV2(t){const n={sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,page:t?.page,"meta.updated_after":t?.updatedAfter,"meta.updated_before":t?.updatedBefore,"meta.archived":t?.archived===void 0?void 0:String(t.archived),include:t?.include,"workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{items:i.items,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async listSessionIdsV2(t){const n={sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,page:t?.page,"meta.updated_after":t?.updatedAfter,"meta.updated_before":t?.updatedBefore,"meta.archived":t?.archived===void 0?void 0:String(t.archived),fields:"id,archived","workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{items:i.items,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async listSessionGroupsV2(t){const n={view:"by_workspace","group.page_size":t?.groupPageSize,"meta.has_prompt":t?.hasPrompt===void 0?void 0:String(t.hasPrompt),sort:t?.sort,page_size:t?.pageSize,page_token:t?.pageToken,"meta.archived":t?.archived===void 0?void 0:String(t.archived),"workspace.id":t?.workspaceIds,"activity.status":t?.statuses},i=await this.httpV2.get("/sessions",n);return{groups:i.groups,hasMore:i.has_more,nextPageToken:i.next_page_token,total:i.total}}async createSession(t){const n={metadata:t.cwd!==void 0?{cwd:t.cwd}:{}};t.workspaceId!==void 0&&(n.workspace_id=t.workspaceId),t.title!==void 0&&(n.title=t.title),t.model!==void 0&&(n.agent_config={model:t.model});const i=await this.http.post("/sessions",n);return gu(i)}async getSession(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}`);return gu(n)}async updateSession(t,n){const i={};n.title!==void 0&&(i.title=n.title),n.cwd!==void 0&&(i.metadata={cwd:n.cwd});const o={};n.model!==void 0&&(o.model=n.model),n.permissionMode!==void 0&&(o.permission_mode=n.permissionMode),n.planMode!==void 0&&(o.plan_mode=n.planMode),n.swarmMode!==void 0&&(o.swarm_mode=n.swarmMode),n.goalObjective!==void 0&&(o.goal_objective=n.goalObjective),n.goalControl!==void 0&&(o.goal_control=n.goalControl),n.thinking!==void 0&&(o.thinking=n.thinking),Object.keys(o).length>0&&(i.agent_config=o);const s=await this.http.post(`/sessions/${encodeURIComponent(t)}/profile`,i);return gu(s)}async getSessionStatus(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}/status`);return{model:n.model&&n.model.length>0?n.model:null,thinkingEffort:n.thinking_level,permission:n.permission,planMode:n.plan_mode===!0,swarmMode:n.swarm_mode===!0,contextTokens:n.context_tokens??0,maxContextTokens:n.max_context_tokens??0,contextUsage:n.context_usage??0}}async getSessionGoal(t){const n=await this.http.get(`/sessions/${encodeURIComponent(t)}/goal`);return RW(n)}async getSessionPlans(t,n){const i=await this.http.get(`/sessions/${encodeURIComponent(t)}/transcript/plan`,{agent_id:n.agentId,tool_call_id:n.toolCallId});return i.plans.map(o=>({agentId:i.agent_id,toolCallId:o.tool_call_id,turnId:o.turn_id,source:o.source,plan:o.plan,...o.path!==void 0?{path:o.path}:{},...o.options!==void 0?{options:o.options.map(s=>({label:s.label,...s.description!==void 0?{description:s.description}:{}}))}:{},...o.review!==void 0?{review:{state:o.review.state,...o.review.selected_option!==void 0?{selectedOption:o.review.selected_option}:{},...o.review.feedback!==void 0?{feedback:o.review.feedback}:{}}}:{}}))}async getSessionWarnings(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/warnings`)).warnings??[]}async archiveSession(t){return await this.http.post(`/sessions/${encodeURIComponent(t)}:archive`,{})}async restoreSession(t){const n=await this.http.post(`/sessions/${encodeURIComponent(t)}:restore`,{});return gu(n)}async archiveSessions(t){return this.httpV2.post("/sessions:archive",{ids:t})}async restoreSessions(t){return this.httpV2.post("/sessions:restore",{ids:t})}async listMessages(t,n){const i={before_id:n?.beforeId,after_id:n?.afterId,page_size:n?.pageSize,role:n?.role},o=await this.http.get(`/sessions/${encodeURIComponent(t)}/messages`,i);return{items:o.items.map(FW),hasMore:o.has_more}}async getSessionTranscript(t,n){return iCe(this.http,t,n)}async exportSession(t,n,i){const o=n===void 0?0:new TextEncoder().encode(n).byteLength,s=n===void 0||n.length===0?0:n.split(` -`).length,r=`/sessions/${encodeURIComponent(t)}/export`,l={web_log_bytes:o,web_log_entries:s},a=i?.desktop===!0;let u;try{u=await this.http.postZip(r,{web_log:n,...a?{desktop:!0}:{}},l)}catch(d){if(a&&wi(d)&&d.code===ND)u=await this.http.postZip(r,{web_log:n},l);else throw d}const c=`${t}.zip`;return{blob:u.blob,fileName:sCe(u.contentDisposition,c)}}async submitPrompt(t,n){const i=Date.now();this.tracer.traceKeyEvent?.("prompt:start",{sessionId:t,contentCount:n.content.length,mediaCount:n.content.filter(o=>o.type==="image"||o.type==="video"||o.type==="file").length});try{const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts`,Xke(n));return this.tracer.traceKeyEvent?.("prompt:accepted",{sessionId:t,promptId:o.prompt_id,status:o.status,durationMs:Date.now()-i}),{promptId:o.prompt_id,userMessageId:o.user_message_id,status:o.status}}catch(o){throw this.tracer.traceKeyEvent?.("prompt:failed",{sessionId:t,status:"failed",durationMs:Date.now()-i,...rCe(o)}),o}}async steerPrompts(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts:steer`,{prompt_ids:n});return{steered:i.steered,promptIds:i.prompt_ids}}async abortPrompt(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/prompts/${encodeURIComponent(n)}:abort`,void 0,{allowCodes:[40903]});return{aborted:i.aborted,atSeq:i.at_seq}}async abortSession(t){return{aborted:(await this.http.post(`/sessions/${encodeURIComponent(t)}:abort`,{})).aborted}}async compactSession(t,n){await this.http.post(`/sessions/${encodeURIComponent(t)}:compact`,n?{instruction:n}:{})}async undoSession(t,n=1){await this.http.post(`/sessions/${encodeURIComponent(t)}:undo`,{count:n})}async generateSessionTitle(t,n){try{const i={};n?.force===!0&&(i.force=!0),n?.source!==void 0&&(i.source=n.source);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/title/generate`,i);return typeof o?.title=="string"&&o.title.length>0?o.title:null}catch{return null}}async forkSession(t,n){const i={};n?.title!==void 0&&(i.title=n.title);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}:fork`,i,{timeoutMs:JN});return gu(o)}async createChildSession(t,n){const i={};n?.title!==void 0&&(i.title=n.title);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/children`,i,{timeoutMs:JN});return gu(o)}async listChildSessions(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/children`)).items.map(gu)}async startBtw(t){return{agentId:(await this.http.post(`/sessions/${encodeURIComponent(t)}:btw`,{})).agent_id}}async respondApproval(t,n,i){const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/approvals/${encodeURIComponent(n)}`,ebe(i));return{resolved:o.resolved,resolvedAt:o.resolved_at}}async respondQuestion(t,n,i){const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/questions/${encodeURIComponent(n)}`,rbe(i));return{resolved:o.resolved,resolvedAt:o.resolved_at}}async dismissQuestion(t,n){return{dismissed:!0,dismissedAt:(await this.http.post(`/sessions/${encodeURIComponent(t)}/questions/${encodeURIComponent(n)}:dismiss`,void 0,{allowCodes:[40909]})).dismissed_at}}async listTasks(t,n){const i={status:n};return(await this.http.get(`/sessions/${encodeURIComponent(t)}/tasks`,i)).items.map(s=>lA(s))}async getTask(t,n,i){const o={with_output:i?.withOutput,output_bytes:i?.outputBytes},s=await this.http.get(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}`,o);return lA(s)}async cancelTask(t,n){return await this.http.post(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}:cancel`)}async detachTask(t,n){return await this.http.post(`/sessions/${encodeURIComponent(t)}/tasks/${encodeURIComponent(n)}:detach`)}async listTerminals(t){return(await this.http.get(`/sessions/${encodeURIComponent(t)}/terminals`)).items.map(r5)}async createTerminal(t,n={}){const i={cwd:n.cwd,shell:n.shell,cols:n.cols,rows:n.rows},o=await this.http.post(`/sessions/${encodeURIComponent(t)}/terminals`,i);return r5(o)}async getTerminal(t,n){const i=await this.http.get(`/sessions/${encodeURIComponent(t)}/terminals/${encodeURIComponent(n)}`);return r5(i)}async closeTerminal(t,n){return this.http.post(`/sessions/${encodeURIComponent(t)}/terminals/${encodeURIComponent(n)}:close`)}async listSkills(t){return((await this.http.get(`/sessions/${encodeURIComponent(t)}/skills`)).skills??[]).map(i=>({name:i.name,description:i.description,path:i.path,source:i.source}))}async listSkillsForWorkspace(t){return((await this.http.get(`/workspaces/${encodeURIComponent(t)}/skills`)).skills??[]).map(i=>({name:i.name,description:i.description,path:i.path,source:i.source}))}async activateSkill(t,n,i,o){const s={};i!==void 0&&i.length>0&&(s.args=i),o!==void 0&&o.length>0&&(s.attachments=o.map(BW));const r=await this.http.post(`/sessions/${encodeURIComponent(t)}/skills/${encodeURIComponent(n)}:activate`,s);return{activated:r.activated,skillName:r.skill_name}}async listCapabilities(){return(await this.http.get("/capabilities")).capabilities??[]}async getCapability(t){return this.http.get(`/capabilities/${encodeURIComponent(t)}`)}async installCapability(t){return this.http.post(`/capabilities/${encodeURIComponent(t)}:install`,{})}async listPlugins(){return(await this.http.get("/plugins")).plugins??[]}async listPluginMarketplace(){return(await this.http.get("/plugins/marketplace")).entries??[]}async installPlugin(t){return this.http.post("/plugins",{source:t})}async setPluginEnabled(t,n){return this.http.post(`/plugins/${encodeURIComponent(t)}:${n?"enable":"disable"}`,{})}async removePlugin(t){return this.http.post(`/plugins/${encodeURIComponent(t)}:remove`,{})}async listDirectory(t,n){const i={};n.path!==void 0&&(i.path=n.path),n.depth!==void 0&&(i.depth=n.depth),n.includeGitStatus!==void 0&&(i.include_git_status=n.includeGitStatus);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:list`,i),s=o.children_by_path?Object.fromEntries(Object.entries(o.children_by_path).map(([r,l])=>[r,l.map(oD)])):void 0;return{items:o.items.map(oD),childrenByPath:s,truncated:o.truncated}}async readFile(t,n){const i={path:n.path};n.offset!==void 0&&(i.offset=n.offset),n.length!==void 0&&(i.length=n.length);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:read`,i);return{path:o.path,content:o.content,encoding:o.encoding,size:o.size,truncated:o.truncated,etag:o.etag,mime:o.mime,languageId:o.language_id,lineCount:o.line_count,isBinary:o.is_binary}}async searchFiles(t,n){const i={workspace:t,query:n.query};n.limit!==void 0&&(i.limit=n.limit);const o=await this.http.post("/workspace/fs:search",i);return{items:o.items.map(s=>({path:s.path,name:s.name,kind:s.kind,score:s.score,matchPositions:s.match_positions})),truncated:o.truncated}}async suggestFiles(t,n){const i={workspace:t,query:n.query};n.limit!==void 0&&(i.limit=n.limit);const o=await this.http.post("/workspace/fs:suggest",i);return{items:o.items.map(s=>({path:s.path,name:s.name,kind:s.kind,score:s.score,matchPositions:s.match_positions})),truncated:o.truncated}}async grepFiles(t,n){const i={pattern:n.pattern};n.regex!==void 0&&(i.regex=n.regex),n.caseSensitive!==void 0&&(i.case_sensitive=n.caseSensitive);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:grep`,i);return{files:o.files,filesScanned:o.files_scanned,truncated:o.truncated,elapsedMs:o.elapsed_ms}}async getGitStatus(t,n){const i={};n!==void 0&&(i.paths=n);const o=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:git_status`,i);return{branch:o.branch,ahead:o.ahead,behind:o.behind,entries:o.entries,additions:o.additions,deletions:o.deletions,pullRequest:o.pullRequest??null}}async getFileDiff(t,n){const i=await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:diff`,{path:n});return{path:i.path,diff:i.diff,truncated:i.truncated??!1}}getFileDownloadUrl(t,n){const i=n.split("/").map(o=>encodeURIComponent(o)).join("/");return md(this.opts.origin,`/sessions/${encodeURIComponent(t)}/fs/${i}:download`)}async openFile(t,n){const i={path:n.path};return n.line!==void 0&&(i.line=n.line),this.http.post(`/sessions/${encodeURIComponent(t)}/fs:open`,i)}async revealFile(t,n){return this.http.post(`/sessions/${encodeURIComponent(t)}/fs:reveal`,{path:n.path})}async openInApp(t,n,i,o){const s={app_id:n,path:i};o!==void 0&&(s.line=o),await this.http.post(`/sessions/${encodeURIComponent(t)}/fs:open-in`,s)}async listWorkspaces(){try{return((await this.http.get("/workspaces")).items??[]).map(b0)}catch{return[]}}async addWorkspace(t){const n={root:t.root};t.name!==void 0&&(n.name=t.name);const i=await this.http.post("/workspaces",n);return b0(i)}async deleteWorkspace(t){await this.http.delete(`/workspaces/${encodeURIComponent(t)}`)}async updateWorkspace(t,n){const i=await this.http.patch(`/workspaces/${encodeURIComponent(t)}`,{name:n.name});return b0(i)}async browseFs(t){try{const n=await this.http.get("/fs:browse",{path:t});return{path:n.path,parent:n.parent,entries:(n.entries??[]).map(i=>({name:i.name,path:i.path,isDir:i.is_dir}))}}catch{return{path:"",parent:null,entries:[]}}}async getFsHome(){try{const t=await this.http.get("/fs:home");return{home:t.home,recentRoots:t.recent_roots??[]}}catch{return{home:"",recentRoots:[]}}}async listModels(){return(await this.http.get("/models")).items.map(abe)}async listProviders(){return(await this.http.get("/providers")).items.map(Np)}async getProvider(t){const n=await this.http.get(`/providers/${encodeURIComponent(t)}`),i=Np(n);return n.api_key!==void 0?{...i,apiKey:n.api_key}:i}async addProvider(t){const n={id:t.id??"",type:t.type,models:(t.models??[]).map(o=>{const s={model:o.model,max_context_size:o.maxContextSize};return o.displayName!==void 0&&(s.display_name=o.displayName),o.capabilities!==void 0&&(s.capabilities=o.capabilities),o.maxOutputSize!==void 0&&(s.max_output_size=o.maxOutputSize),o.supportEfforts!==void 0&&(s.support_efforts=o.supportEfforts),o.adaptiveThinking!==void 0&&(s.adaptive_thinking=o.adaptiveThinking),s})};t.apiKey!==void 0&&(n.api_key=t.apiKey),t.baseUrl!==void 0&&(n.base_url=t.baseUrl),t.defaultModel!==void 0&&(n.default_model=t.defaultModel);const i=await this.http.post("/providers",n);return Np(i)}async updateProvider(t,n){const i={type:n.type,models:(n.models??[]).map(s=>{const r={model:s.model,max_context_size:s.maxContextSize};return s.displayName!==void 0&&(r.display_name=s.displayName),s.capabilities!==void 0&&(r.capabilities=s.capabilities),s.maxOutputSize!==void 0&&(r.max_output_size=s.maxOutputSize),s.supportEfforts!==void 0&&(r.support_efforts=s.supportEfforts),s.adaptiveThinking!==void 0&&(r.adaptive_thinking=s.adaptiveThinking),r})};n.newId!==void 0&&(i.new_id=n.newId),n.apiKey!==void 0&&(i.api_key=n.apiKey),n.baseUrl!==void 0&&(i.base_url=n.baseUrl),n.defaultModel!==void 0&&(i.default_model=n.defaultModel);const o=await this.http.put(`/providers/${encodeURIComponent(t)}`,i);return{provider:Np(o.provider)}}async deleteProvider(t){return await this.http.delete(`/providers/${encodeURIComponent(t)}`),{deleted:t}}async listCatalogProviders(){return(await this.http.get("/catalog/providers")).items.map(sD)}async getCatalogProvider(t){const n=await this.http.get(`/catalog/providers/${encodeURIComponent(t)}`);return sD(n)}async importCatalogProvider(t){const n={catalog_id:t.catalogId};t.apiKey!==void 0&&(n.api_key=t.apiKey),t.baseUrl!==void 0&&(n.base_url=t.baseUrl),t.id!==void 0&&(n.id=t.id);const i=await this.http.post("/providers:import_catalog",n);return{provider:Np(i.provider),modelsImported:i.models_imported}}async importCustomRegistry(t){const n={url:t.url};t.apiKey!==void 0&&(n.api_key=t.apiKey);const i=await this.http.post("/providers:import_registry",n);return{providers:i.providers.map(Np),modelsImported:i.models_imported}}async refreshProvider(t){const n=await this.http.post(`/providers/${encodeURIComponent(t)}:refresh`);return l5(n)}async refreshAllProviders(){const t=await this.http.post("/providers:refresh");return l5(t)}async refreshOAuthProviderModels(){const t=await this.http.post("/providers:refresh_oauth");return l5(t)}async getConfig(){const t=await this.http.get("/config");return aA(t)}async setConfig(t){const n={},i={providers:"providers",defaultProvider:"default_provider",defaultModel:"default_model",secondaryModel:"secondary_model",models:"models",thinking:"thinking",planMode:"plan_mode",yolo:"yolo",defaultPermissionMode:"default_permission_mode",defaultPlanMode:"default_plan_mode",permission:"permission",hooks:"hooks",services:"services",mergeAllAvailableSkills:"merge_all_available_skills",extraSkillDirs:"extra_skill_dirs",loopControl:"loop_control",background:"background",experimental:"experimental",telemetry:"telemetry",raw:"raw"};for(const[s,r]of Object.entries(t)){const l=i[s];l!==void 0&&(n[l]=r)}const o=await this.http.post("/config",n);return aA(o)}async getAuth(){const t=await this.http.get("/auth");return{modelsReady:t.models_ready,providersCount:t.providers_count,managedProvider:t.managed_provider?{status:t.managed_provider.status}:null}}async startOAuthLogin(t){let n;try{n=await this.http.post("/oauth/login",t===void 0?{}:{region:t})}catch(i){if(t!==void 0&&wi(i)&&i.code===ND)n=await this.http.post("/oauth/login",{});else throw i}return n.status==="authenticated"?{flowId:n.flow_id,provider:n.provider,status:"authenticated"}:{flowId:n.flow_id,provider:n.provider,status:"pending",verificationUri:n.verification_uri,verificationUriComplete:n.verification_uri_complete,userCode:n.user_code,expiresIn:n.expires_in,interval:n.interval,expiresAt:n.expires_at}}async pollOAuthLogin(){const t=await this.http.get("/oauth/login");return t?{flowId:t.flow_id,status:t.status,resolvedAt:t.resolved_at,errorMessage:t.error_message}:null}async cancelOAuthLogin(){const t=await this.http.delete("/oauth/login");return{cancelled:t.cancelled,status:t.status}}async logout(){return{loggedOut:(await this.http.post("/oauth/logout",{})).logged_out}}async getUsage(){const t=await this.http.get("/oauth/usage");if(t.kind==="error")return{kind:"error",message:t.message,status:t.status};const n=i=>({name:i.name,window:i.window,used:i.used,limit:i.limit,resetAt:i.reset_at});return{kind:"ok",summary:t.summary===null?null:n(t.summary),limits:t.limits.map(n),extraUsage:t.extra_usage===null?null:{balanceCents:t.extra_usage.balance_cents,totalCents:t.extra_usage.total_cents,monthlyChargeLimitEnabled:t.extra_usage.monthly_charge_limit_enabled,monthlyChargeLimitCents:t.extra_usage.monthly_charge_limit_cents,monthlyUsedCents:t.extra_usage.monthly_used_cents,currency:t.extra_usage.currency}}}async getUserInfo(){return this.http.get("/oauth/userinfo")}async getOAuthRegion(){try{const t=await Promise.race([this.http.get("/oauth/region"),new Promise((n,i)=>{setTimeout(()=>i(new Error("oauth region probe timed out")),oCe)})]);return t.region==="mainland-cn"||t.region==="global"?t.region:null}catch{return null}}async uploadFile(t){const n=new FormData;n.append("file",t.file,t.name??(t.file instanceof File?t.file.name:"upload")),t.name!==void 0&&n.append("name",t.name);const i=await this.http.postForm("/files",n,t.onProgress===void 0?void 0:{onUploadProgress:t.onProgress});return{id:i.id,name:i.name,mediaType:i.media_type,size:i.size}}getFileUrl(t){return md(this.opts.origin,`/files/${encodeURIComponent(t)}`)}async getFileBlob(t){return this.http.getBlob(`/files/${encodeURIComponent(t)}`)}getSessionMediaUrl(t,n){return md(this.opts.origin,`/sessions/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}`)}async getSessionMediaBlob(t,n){return this.http.getBlob(`/sessions/${encodeURIComponent(t)}/media/${encodeURIComponent(n)}`)}async readHostFileContent(t){const n=await this.http.getBlob("/fs:content",{path:t},{maxBytes:s5});if(n.size>s5)throw new cx({size:n.size,limit:s5});const i=n.type,o=!aCe(i),s=i||(o?"application/octet-stream":"text/plain");if(o){const l=await uCe(n);return{path:t,content:l,encoding:"base64",mime:s,isBinary:!0,size:n.size}}const r=await n.text();return{path:t,content:r,encoding:"utf-8",mime:s,isBinary:!1,size:n.size}}connectEvents(t){const n=QN(this.opts.origin,this.opts.identity.clientId),i=this.opts.projectorFactory(),o=new LD({wsUrl:n,clientId:this.opts.identity.clientId,tracer:this.tracer,credentialStore:this.opts.credentialStore,mainAgentOnly:this.opts.mainAgentOnly,handlers:{onWireEvent:s=>{const r=ube(s),l=cbe(s),a=lbe(s);a.type==="historyCompacted"&&!DD(a.reason)&&t.onResync(a.sessionId,a.beforeSeq),t.onEvent(a,{sessionId:r,seq:l})},onRawAgentEvent:s=>{const{type:r,seq:l,session_id:a,payload:u,offset:c}=s,d=i.project(r,u,a,{offset:c});for(const f of d){const h=u?.turnId,m=f.type==="assistantDelta"&&typeof h=="number"&&typeof c=="number"&&(r==="assistant.delta"||r==="thinking.delta")?{turnId:h,offset:c,kind:r==="assistant.delta"?"text":"thinking"}:void 0;f.type==="historyCompacted"&&!DD(f.reason)&&t.onResync(a,l),t.onEvent(f,{sessionId:a,seq:l,stream:m})}},onResync:(s,r,l)=>{i.reset(s),t.onResync(s,r,l)},onConnectionState:s=>{t.onConnectionChange(s)},onReplayComplete:()=>{t.onReplayComplete?.()},onError:(s,r,l)=>{t.onError(s,r,l)},onTerminalOutput:(s,r,l,a)=>{t.onTerminalOutput?.(s,r,l,a)},onTerminalExit:(s,r,l)=>{t.onTerminalExit?.(s,r,l)},onTranscriptReset:(s,r,l,a)=>{t.onTranscriptReset?.(s,r,l,a)},onTranscriptOps:(s,r,l,a)=>t.onTranscriptOps?.(s,r,l,a)??!0}});return o.connect(),{subscribe(s,r){o.subscribe(s,r??{seq:0})},unsubscribe(s){o.unsubscribe(s),i.forgetSession(s)},subscribeTranscript(s,r,l){o.subscribeTranscript(s,r,l)},unsubscribeTranscript(s,r){o.unsubscribeTranscript(s,r)},bindNextPromptId(s,r){i.bindNextPromptId(s,r)},abort(s,r){o.abort(s,r)},terminalAttach(s,r,l){o.terminalAttach(s,r,l)},terminalInput(s,r,l){o.terminalInput(s,r,l)},terminalResize(s,r,l,a){o.terminalResize(s,r,l,a)},terminalDetach(s,r){o.terminalDetach(s,r)},terminalClose(s,r){o.terminalClose(s,r)},markSideChannelAgent(s,r){o.markSideChannelAgent(s,r),i.markSideChannelAgent(r)},health(){return o.health()},reconnect(){o.reconnect()},close(){o.close()}}}connectTranscriptChannel(t){const n=`${this.opts.identity.clientId}-transcript`,i=new LD({wsUrl:QN(this.opts.origin,n),clientId:n,tracer:this.tracer,credentialStore:this.opts.credentialStore,handlers:{onWireEvent:()=>{},onResync:()=>{},onConnectionState:o=>t.onConnectionState?.(o),onError:(o,s,r)=>t.onError?.(o,s,r),onTranscriptReset:t.onTranscriptReset,onTranscriptOps:t.onTranscriptOps}});return i.connect(),{subscribe:()=>{},unsubscribe:()=>{},subscribeTranscript:(o,s,r)=>i.subscribeTranscript(o,s,r),unsubscribeTranscript:(o,s)=>i.unsubscribeTranscript(o,s),bindNextPromptId:()=>{},abort:()=>{},terminalAttach:()=>{},terminalInput:()=>{},terminalResize:()=>{},terminalDetach:()=>{},terminalClose:()=>{},markSideChannelAgent:()=>{},health:()=>i.health(),reconnect:()=>i.reconnect(),close:()=>i.close()}}}function l5(e){return{changed:e.changed.map(t=>({providerId:t.provider_id,providerName:t.provider_name,added:t.added,removed:t.removed})),unchanged:e.unchanged,failed:e.failed}}function aCe(e){const t=e.toLowerCase().split(";")[0].trim();return t===""||t==="text/plain"||t.startsWith("text/")?!0:/(json|xml|javascript|typescript|x-yaml|yaml|svg|x-sh|x-python|markdown|csv|html|css)$/.test(t)}function uCe(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=()=>{const o=typeof i.result=="string"?i.result:"";t(o.slice(o.indexOf(",")+1))},i.onerror=()=>n(i.error),i.readAsDataURL(e)})}const cCe="main",dCe=new Set(["turn.started","turn.step.started","turn.step.completed","turn.step.retrying","turn.step.interrupted","turn.ended","thinking.delta","assistant.delta","tool.use","tool.call.started","tool.call.delta","tool.progress","tool.result","agent.status.updated","prompt.completed","prompt.aborted","error"]);function a5(e="msg_"){const t=Date.now().toString(36).padStart(10,"0"),n=Math.random().toString(36).slice(2,12).padEnd(10,"0");return`${e}${t}${n}`}function fCe(e){if(!e||typeof e!="object")return{input:0,output:0,cacheRead:0,cacheCreate:0};const t=e;return{input:t.inputOther??t.input_tokens??0,output:t.output??t.output_tokens??0,cacheRead:t.inputCacheRead??t.cache_read_input_tokens??0,cacheCreate:t.inputCacheCreation??t.cache_creation_input_tokens??0}}function FD(){return{turnPromptId:new Map,currentPromptId:void 0,totalInput:0,totalOutput:0,totalCacheRead:0,totalCacheCreate:0,contextTokens:0,contextLimit:0,turnCount:0,model:"",subagentMeta:new Map,restartedThisRun:new Set,settledByKernel:new Set,retiredBindings:new Set,registrationSeq:0,registrationOrderByKey:new Map,retryActive:!1}}function vr(e,t){const n=e[t];return typeof n=="string"?n:void 0}function Qs(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function na(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:null}function hCe(e){if(!e||typeof e!="object")return null;const t=e,n=t.budget,i=n&&typeof n=="object"?n:{},o=vr(t,"status");if(o!=="active"&&o!=="paused"&&o!=="blocked"&&o!=="complete")return null;const s=vr(t,"goalId")??vr(t,"goal_id")??"goal",r=vr(t,"objective")??"";return{goalId:s,objective:r,completionCriterion:vr(t,"completionCriterion")??vr(t,"completion_criterion"),status:o,turnsUsed:Qs(t,"turnsUsed")??Qs(t,"turns_used")??0,tokensUsed:Qs(t,"tokensUsed")??Qs(t,"tokens_used")??0,wallClockMs:Qs(t,"wallClockMs")??Qs(t,"wall_clock_ms")??0,terminalReason:vr(t,"terminalReason")??vr(t,"terminal_reason"),budget:{tokenBudget:na(i,"tokenBudget")??na(i,"token_budget"),remainingTokens:na(i,"remainingTokens")??na(i,"remaining_tokens"),turnBudget:na(i,"turnBudget")??na(i,"turn_budget"),remainingTurns:na(i,"remainingTurns")??na(i,"remaining_turns"),wallClockBudgetMs:na(i,"wallClockBudgetMs")??na(i,"wall_clock_budget_ms"),remainingWallClockMs:na(i,"remainingWallClockMs")??na(i,"remaining_wall_clock_ms"),overBudget:i.overBudget===!0||i.over_budget===!0}}}function rd(e,t,n,i,o){if(typeof i!="string"||i.length===0)return null;const r={...t.subagentMeta.get(i)??{id:i,agentId:i,sessionId:n,kind:"subagent",description:e("tasks.dockSubagent"),status:"running",createdAt:new Date().toISOString(),subagentPhase:"queued"},...o,id:i,sessionId:n,kind:"subagent"};return t.subagentMeta.set(i,r),r}function pCe(e,t,n){if(t==="turn.step.started")return null;if(t==="tool.use"||t==="tool.call.started"){const i=vr(n,"name")??vr(n,"toolName")??"tool",o=kP(e,mCe(i)),s=gCe(e,i,n.args??n.input);return s?`Calling ${o}: ${s}`:`Calling ${o}`}if(t==="tool.progress"){const i=n.update;if(i&&typeof i=="object"){const s=vr(i,"text");if(s)return u5(s);const r=vr(i,"message");if(r)return u5(r)}const o=vr(n,"message");if(o)return u5(o)}return null}function mCe(e){return e.replace(/_\d+$/,"")}const BD=2e3;function u5(e){return e.length>BD?`${e.slice(0,BD)}…`:e}function gCe(e,t,n){if(n==null)return"";const i=typeof n=="string"?n:JSON.stringify(n);return G6(e,t,i)}function vCe(e,t,n,i,o,s,r){if(r.has(i)&&o==="turn.step.started")return[];if(o==="assistant.delta"){const h=vr(s,"delta");if(!h)return[];const m=t.subagentMeta.get(i),g=rd(e,t,n,i,{status:"running",subagentPhase:"working",startedAt:m?.startedAt??new Date().toISOString()}),v=[];return g&&v.push({type:"taskCreated",sessionId:n,task:g}),v.push({type:"taskProgress",sessionId:n,taskId:i,outputChunk:h,stream:"stdout",kind:"text"}),v}const l=pCe(e,o,s);if(l===null||l.length===0)return[];const a=o==="tool.progress"?s.update:void 0,u=a!=null&&typeof a=="object"?a.replace===!0:!1,c=t.subagentMeta.get(i),d=rd(e,t,n,i,{status:"running",subagentPhase:"working",startedAt:c?.startedAt??new Date().toISOString()}),f=[];return d&&f.push({type:"taskCreated",sessionId:n,task:d}),f.push({type:"taskProgress",sessionId:n,taskId:i,outputChunk:l,stream:"stdout",replace:u}),f}function yCe(e){return Array.isArray(e)?e.map(t=>dx(t)):[]}function kCe(e){return{inputTokens:e.totalInput,outputTokens:e.totalOutput,cacheReadTokens:e.totalCacheRead,cacheCreationTokens:e.totalCacheCreate,totalCostUsd:0,contextTokens:e.contextTokens,contextLimit:e.contextLimit,turnCount:e.turnCount}}const bCe=new Set(["session.meta.updated","goal.updated","compaction.completed","compaction.started","compaction.cancelled","compaction.blocked","hook.result","mcp.server.status","skill.activated","tool.list.updated"]);function wCe(e,t,n){switch(e){case"session.meta.updated":{const i=t?.patch?.title??t?.title,o=t?.patch?.lastPrompt,s={};return typeof i=="string"&&i.length>0&&(s.title=i),typeof o=="string"&&(s.lastPrompt=o),s.title!==void 0||s.lastPrompt!==void 0?[{type:"sessionMetaUpdated",sessionId:n,...s}]:[]}case"goal.updated":{const i=hCe(t?.snapshot??null);return[{type:"goalUpdated",sessionId:n,goal:i?.status==="complete"?null:i}]}case"compaction.completed":{const i=t?.result??{};return[{type:"compactionCompleted",sessionId:n,tokensBefore:typeof i.tokensBefore=="number"?i.tokensBefore:void 0,tokensAfter:typeof i.tokensAfter=="number"?i.tokensAfter:void 0,summary:typeof i.summary=="string"?i.summary:void 0},{type:"historyCompacted",sessionId:n,beforeSeq:0,reason:"auto_compact"}]}case"compaction.started":return[{type:"compactionStarted",sessionId:n,trigger:t?.trigger==="manual"?"manual":"auto",instruction:typeof t?.instruction=="string"?t.instruction:void 0}];case"compaction.cancelled":return[{type:"compactionCancelled",sessionId:n}];default:return[]}}function CCe(e){const{t}=e,n=new Map,i=new Set;function o(f){let h=n.get(f);return h||(h=FD(),n.set(f,h)),h}function s(f){n.set(f,FD())}function r(f){n.delete(f)}function l(f){return n.has(f)}function a(f){i.add(f)}function u(f,h){const m=o(f);m.currentPromptId=h}function c(f,h,m,g){try{return d(f,h,m,g)}catch(v){return Cu("[agentProjector] Error projecting event:",f,v instanceof Error?v.message:v),[]}}function d(f,h,m,g){if(bCe.has(f))return wCe(f,h,m);const v=o(m),y=h,b=[],A=y?.agentId;if(typeof A=="string"&&A!==cCe){const w=i.has(A);if(f==="prompt.submitted"){if(!w)return[];const M=y?.promptId,N=y?.userMessageId;if(!M||!N)return[];const T=yCe(y?.content);return T.length===0?[]:[{type:"messageCreated",agentId:A,message:{id:N,sessionId:m,role:"user",content:T,createdAt:typeof y?.createdAt=="string"?y.createdAt:new Date().toISOString(),promptId:M}}]}if(w&&(f==="thinking.delta"||f==="assistant.delta")){const M=y?.delta??"";return M?[{type:"agentDelta",sessionId:m,agentId:A,delta:{[f==="thinking.delta"?"thinking":"text"]:M}}]:[]}if(w&&f==="turn.ended")return[{type:"agentTurnEnded",sessionId:m,agentId:A,reason:y?.reason}];if(dCe.has(f))return vCe(t,v,m,A,f,y??{},i)}switch(f){case"turn.started":{const w=y?.turnId,M=v.currentPromptId??a5("pr_");v.currentPromptId=M,w!==void 0&&v.turnPromptId.set(w,M),b.push({type:"turnActiveChanged",sessionId:m,active:!0});break}case"turn.step.started":case"thinking.delta":case"assistant.delta":case"tool.use":case"tool.call.started":case"tool.call.delta":case"tool.progress":case"tool.result":break;case"turn.step.completed":{const w=fCe(y?.usage);v.totalInput+=w.input,v.totalOutput+=w.output,v.totalCacheRead+=w.cacheRead,v.totalCacheCreate+=w.cacheCreate;break}case"agent.status.updated":{y?.model&&(v.model=y.model),y?.contextTokens!==void 0&&(v.contextTokens=y.contextTokens),y?.maxContextTokens!==void 0&&(v.contextLimit=y.maxContextTokens);const w=y?.phase;w!=null&&w.kind==="retrying"?(v.retryActive=!0,b.push({type:"turnRetry",sessionId:m,retry:{failedAttempt:Qs(w,"failedAttempt")??0,nextAttempt:Qs(w,"nextAttempt")??0,maxAttempts:Qs(w,"maxAttempts")??0,delayMs:Qs(w,"delayMs")??0,errorName:vr(w,"errorName"),statusCode:Qs(w,"statusCode"),turnId:Qs(w,"turnId")}})):v.retryActive&&w!==void 0&&w!==null&&typeof w.kind=="string"&&(v.retryActive=!1,b.push({type:"turnRetry",sessionId:m,retry:void 0})),b.push({type:"sessionUsageUpdated",sessionId:m,usage:kCe(v),model:v.model||void 0,swarmMode:y?.swarmMode===!0?!0:y?.swarmMode===!1?!1:void 0,planMode:y?.planMode===!0?!0:y?.planMode===!1?!1:void 0,thinking:typeof y?.thinkingEffort=="string"&&y.thinkingEffort.length>0?y.thinkingEffort:void 0});break}case"turn.ended":{const w=y?.turnId,M=(w!==void 0?v.turnPromptId.get(w):void 0)??v.currentPromptId;b.push({type:"turnActiveChanged",sessionId:m,active:!1,reason:y?.reason,promptId:M}),v.turnCount++,v.currentPromptId=void 0;break}case"prompt.completed":{const w=y?.promptId;typeof w=="string"&&w.length>0&&b.push({type:"promptCompleted",sessionId:m,promptId:w,reason:y?.reason??"completed"});break}case"prompt.aborted":{const w=y?.promptId;typeof w=="string"&&w.length>0&&b.push({type:"promptAborted",sessionId:m,promptId:w});break}case"turn.step.retrying":{v.retryActive=!0,b.push({type:"turnRetry",sessionId:m,retry:{failedAttempt:Qs(y??{},"failedAttempt")??0,nextAttempt:Qs(y??{},"nextAttempt")??0,maxAttempts:Qs(y??{},"maxAttempts")??0,delayMs:Qs(y??{},"delayMs")??0,errorName:vr(y??{},"errorName"),statusCode:Qs(y??{},"statusCode"),turnId:typeof y?.turnId=="number"?y.turnId:void 0}});break}case"turn.step.interrupted":break;case"subagent.spawned":{const w=typeof y?.subagentId=="string"&&y.subagentId.length>0?y.subagentId:a5("task_"),M=typeof y?.taskId=="string"&&y.taskId.length>0?y.taskId:void 0,N=M!==void 0&&M!==w?v.subagentMeta.get(M):void 0,T=v.subagentMeta.get(w);N!==void 0&&v.subagentMeta.delete(M),M!==void 0&&!v.registrationOrderByKey.has(M)&&v.registrationOrderByKey.set(M,++v.registrationSeq);const C=T===void 0||N===void 0?T??N:{...T,createdAt:N.createdAt,startedAt:N.startedAt??T.startedAt,runInBackground:!0,backgroundTaskId:T.backgroundTaskId??M},I=C?.backgroundTaskId??(C!==void 0&&M!==void 0&&C.id===M?M:void 0),S=M!==void 0?v.registrationOrderByKey.get(M):void 0,E=I!==void 0?v.registrationOrderByKey.get(I):void 0,_=v.retiredBindings.has(M??"")||S!==void 0&&E!==void 0&&S0?y.model:C?.model,thinkingEffort:typeof y?.thinkingEffort=="string"&&y.thinkingEffort.length>0?y.thinkingEffort:C?.thinkingEffort,parentToolCallId:typeof y?.parentToolCallId=="string"?y.parentToolCallId:C?.parentToolCallId,swarmIndex:typeof y?.swarmIndex=="number"?y.swarmIndex:C?.swarmIndex,runInBackground:F?y?.runInBackground===!0||y?.runInBackground===void 0&&C?.runInBackground===!0:y?.runInBackground===!0||C?.runInBackground===!0,outputPreview:F?void 0:C?.outputPreview,outputBytes:F?void 0:C?.outputBytes,outputLines:F?void 0:C?.outputLines,suspendedReason:F?void 0:C?.suspendedReason,text:F?void 0:C?.text,backgroundTaskId:_?C?.backgroundTaskId:F?M:M??C?.backgroundTaskId};v.subagentMeta.set(P.id,P),b.push({type:"taskCreated",sessionId:m,task:P});break}case"subagent.started":{const w=typeof y?.subagentId=="string"?y.subagentId:void 0,M=w!==void 0&&(v.subagentMeta.get(w)?.status!==void 0&&v.subagentMeta.get(w).status!=="running"||v.settledByKernel.has(w));M&&v.settledByKernel.delete(w);const N=rd(t,v,m,y?.subagentId,{subagentPhase:"working",status:"running",startedAt:new Date().toISOString(),suspendedReason:void 0,...M?{createdAt:new Date().toISOString(),completedAt:void 0,completedAtEstimated:void 0,outputPreview:void 0,outputBytes:void 0,outputLines:void 0,text:void 0}:{}});M&&w!==void 0&&v.restartedThisRun.add(w),N&&b.push({type:"taskCreated",sessionId:m,task:N});break}case"subagent.suspended":{const w=rd(t,v,m,y?.subagentId,{subagentPhase:"suspended",status:"running",suspendedReason:typeof y?.reason=="string"?y.reason:void 0});w&&b.push({type:"taskCreated",sessionId:m,task:w});break}case"subagent.completed":{const w=typeof y?.resultSummary=="string"?y.resultSummary:void 0,M=rd(t,v,m,y?.subagentId,{subagentPhase:"completed",status:"completed",completedAt:new Date().toISOString(),completedAtEstimated:!0,outputPreview:w});M&&b.push({type:"taskCreated",sessionId:m,task:M}),M!==null&&v.restartedThisRun.delete(M.id),b.push({type:"taskCompleted",sessionId:m,taskId:y?.subagentId??"",status:"completed",outputPreview:w});break}case"subagent.failed":{const w=typeof y?.error=="string"?y.error:void 0,M=rd(t,v,m,y?.subagentId,{subagentPhase:"failed",status:"failed",completedAt:new Date().toISOString(),completedAtEstimated:!0,outputPreview:w});M&&b.push({type:"taskCreated",sessionId:m,task:M}),M!==null&&v.restartedThisRun.delete(M.id),b.push({type:"taskCompleted",sessionId:m,taskId:y?.subagentId??"",status:"failed",outputPreview:w});break}case"error":{b.push({type:"unknown",raw:{_agentError:!0,code:y?.code,message:y?.message,name:y?.name,details:y?.details,retryable:y?.retryable}});break}case"warning":{b.push({type:"unknown",raw:{_agentWarning:!0,message:y?.message}});break}case"task.started":case"background.task.started":{const w=y?.info??{},M=typeof w.startedAt=="number"?new Date(w.startedAt).toISOString():void 0,N=typeof w.taskId=="string"?w.taskId:typeof w.taskId=="number"?String(w.taskId):a5("task_"),T=typeof w.description=="string"?w.description:typeof w.command=="string"?w.command:t("tasks.defaultDescription");if(w.kind==="agent"){const I=typeof w.agentId=="string"&&w.agentId.length>0?w.agentId:void 0;if(I!==void 0){const S=v.subagentMeta.get(I),E=v.registrationOrderByKey.get(N),_=S?.backgroundTaskId!==void 0?v.registrationOrderByKey.get(S.backgroundTaskId):void 0;if(v.retiredBindings.has(N)||E!==void 0&&_!==void 0&&E<_){S!==void 0&&b.push({type:"taskCreated",sessionId:m,task:S});break}v.registrationOrderByKey.has(N)||v.registrationOrderByKey.set(N,++v.registrationSeq);const F=S!==void 0&&S.backgroundTaskId!==N&&!(S.status==="running"&&S.backgroundTaskId===void 0),q=rd(t,v,m,I,{description:T,backgroundTaskId:N,runInBackground:!0,...S===void 0||S.status==="running"?{status:"running",subagentPhase:"working",startedAt:S?.startedAt??M}:{},...F?{status:"running",subagentPhase:"working",createdAt:M??new Date().toISOString(),startedAt:M,completedAt:void 0,completedAtEstimated:void 0,outputPreview:void 0,outputBytes:void 0,outputLines:void 0,suspendedReason:void 0,text:void 0}:{}});q&&b.push({type:"taskCreated",sessionId:m,task:q}),v.restartedThisRun.delete(I)}else{const S=[...v.subagentMeta.values()].find(_=>_.backgroundTaskId===N);if(S===void 0&&(v.retiredBindings.has(N)||v.registrationOrderByKey.has(N)&&v.registrationOrderByKey.get(N)0&&v.settledByKernel.add(w.agentId),b.push({type:"taskCompleted",sessionId:m,taskId:typeof w.taskId=="string"?w.taskId:typeof w.taskId=="number"?String(w.taskId):"",status:w.status==="killed"?"cancelled":M?"failed":"completed"});break}}return b}return{project:c,bindNextPromptId:u,reset:s,forgetSession:r,markSideChannelAgent:a,hasSessionState:l}}function ACe(e){return new lCe({origin:e.origin,identity:e.identity,tracer:e.tracer,credentialStore:e.credentialStore,projectorFactory:()=>CCe({t:e.t}),mainAgentOnly:e.mainAgentOnly})}const xCe={t:e=>e},RD="Sub Agent";function SCe(){return{sessions:[],activeSessionId:void 0,approvalsBySession:{},planReviewByToolCallId:{},questionsBySession:{},tasksBySession:{},goalBySession:{},goalVersionBySession:{},lastSeqBySession:{},turnActiveBySession:{},turnErrorBySession:{},turnRetryBySession:{},compactionBySession:{},warnings:[]}}function _Ce(e){return{...e,sessions:e.sessions,approvalsBySession:{...e.approvalsBySession},planReviewByToolCallId:{...e.planReviewByToolCallId},questionsBySession:{...e.questionsBySession},tasksBySession:{...e.tasksBySession},goalBySession:{...e.goalBySession},goalVersionBySession:{...e.goalVersionBySession},lastSeqBySession:{...e.lastSeqBySession},turnActiveBySession:{...e.turnActiveBySession},turnErrorBySession:{...e.turnErrorBySession},turnRetryBySession:{...e.turnRetryBySession},compactionBySession:{...e.compactionBySession},warnings:[...e.warnings]}}function MCe(e,t,n){if(t!==void 0&&n!==void 0&&n>0){const i=e.lastSeqBySession[t]??0;n>i&&(e.lastSeqBySession[t]=n)}}function xy(e,t){const n=e.sessions.find(i=>i.id===t.sessionId)?.lastSeq??0;return t.seq>Math.max(e.lastSeqBySession[t.sessionId]??0,n)}const ICe={"provider.connection_error":"connection","provider.auth_error":"auth","provider.rate_limit":"rateLimit","provider.overloaded":"overloaded","provider.filtered":"filtered","provider.api_error":"api","context.overflow":"contextOverflow"};function hA(e,t){const n=[],i=(r,l)=>{typeof l=="number"||typeof l=="boolean"?n.push({label:r,value:String(l)}):typeof l=="string"&&l.length>0&&n.push({label:r,value:l})};i(t("warnings.details.code"),e.code);const o=e.details??{};i(t("warnings.details.status"),o.statusCode),i(t("warnings.details.requestId"),o.requestId),i(t("warnings.details.errorName"),e.name);for(const[r,l]of Object.entries(o))r==="statusCode"||r==="requestId"||i(r,l);const s=(e.code!==void 0?ICe[e.code]:void 0)??"title";return{severity:"error",title:t(`warnings.agentError.${s}`),message:e.message,details:n.length>0?n:void 0}}function TCe(e,t,n,i=xCe){const o=_Ce(e);switch(MCe(o,n.sessionId,n.seq),t.type){case"sessionCreated":{o.sessions.some(r=>r.id===t.session.id)||(o.sessions=[t.session,...o.sessions]);break}case"sessionUpdated":{o.sessions=o.sessions.map(s=>s.id===t.session.id?{...t.session,pullRequest:s.pullRequest}:s);break}case"sessionDeleted":{const s=t.sessionId;o.sessions=o.sessions.filter(r=>r.id!==s),delete o.tasksBySession[s],delete o.goalBySession[s],delete o.approvalsBySession[s],delete o.questionsBySession[s],delete o.lastSeqBySession[s],delete o.turnActiveBySession[s],delete o.turnErrorBySession[s],delete o.turnRetryBySession[s],o.activeSessionId===s&&(o.activeSessionId=void 0);break}case"sessionWorkChanged":{if(!xy(e,n))break;let s;o.sessions=o.sessions.map(r=>r.id!==t.sessionId?r:(s=t.pendingInteraction??(t.busy?r.pendingInteraction:"none"),{...r,busy:t.busy,mainTurnActive:t.mainTurnActive??(t.busy?r.mainTurnActive:!1),pendingInteraction:s,lastTurnReason:t.lastTurnReason})),s==="none"?(delete o.approvalsBySession[t.sessionId],delete o.questionsBySession[t.sessionId]):s==="question"&&delete o.approvalsBySession[t.sessionId],t.mainTurnActive===!0?o.turnActiveBySession[t.sessionId]=!0:(t.mainTurnActive===!1||!t.busy)&&(delete o.turnActiveBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId]);break}case"sessionMetaUpdated":{o.sessions=o.sessions.map(s=>s.id===t.sessionId?{...s,title:t.title??s.title,lastPrompt:t.lastPrompt??s.lastPrompt}:s);break}case"sessionUsageUpdated":{o.sessions=o.sessions.map(s=>{if(s.id!==t.sessionId)return s;const r=t.model&&t.model.length>0?t.model:s.model;return{...s,usage:t.usage,model:r}});break}case"historyCompacted":break;case"compactionStarted":{o.compactionBySession={...o.compactionBySession,[t.sessionId]:{status:"running",trigger:t.trigger}};break}case"compactionCompleted":{const s=t.sessionId,{[s]:r,...l}=o.compactionBySession;o.compactionBySession=l;break}case"compactionCancelled":{const{[t.sessionId]:s,...r}=o.compactionBySession;o.compactionBySession=r;break}case"messageCreated":case"messageUpdated":case"assistantDelta":case"toolOutput":break;case"approvalRequested":{const s=t.sessionId,r=o.approvalsBySession[s]??[];r.some(u=>u.approvalId===t.approval.approvalId)||(o.approvalsBySession[s]=[...r,t.approval]);const a=t.approval.display;a?.kind==="plan_review"&&typeof a.plan=="string"&&a.plan.length>0&&(o.planReviewByToolCallId={...o.planReviewByToolCallId,[t.approval.toolCallId]:{plan:a.plan,path:typeof a.path=="string"?a.path:void 0}});break}case"approvalResolved":case"approvalExpired":{const s=t.sessionId,r=t.approvalId,l=o.approvalsBySession[s]??[];o.approvalsBySession[s]=l.filter(a=>a.approvalId!==r);break}case"questionRequested":{const s=t.sessionId,r=o.questionsBySession[s]??[];r.some(a=>a.questionId===t.question.questionId)||(o.questionsBySession[s]=[...r,t.question]);break}case"questionAnswered":case"questionDismissed":{const s=t.sessionId,r=t.questionId,l=o.questionsBySession[s]??[];o.questionsBySession[s]=l.filter(a=>a.questionId!==r);break}case"taskCreated":{const s=t.sessionId,r=o.tasksBySession[s]??[],l=r.findIndex(f=>f.id===t.task.id),a=t.task.backgroundTaskId===void 0?-1:r.findIndex(f=>f.id===t.task.backgroundTaskId),u=a!==-1&&l!==-1&&a!==l?r[a]:void 0,c=u!==void 0?r.filter((f,h)=>h!==a):r,d=c.findIndex(f=>f.id===t.task.id||t.task.backgroundTaskId!==void 0&&f.id===t.task.backgroundTaskId);if(d===-1)o.tasksBySession[s]=[...c,t.task];else{const f=[...c],h=c[d],m=t.task.backgroundTaskId!==void 0&&(t.task.backgroundTaskId===h.backgroundTaskId||h.id===t.task.backgroundTaskId)||h.id===t.task.id&&(h.kind!=="subagent"||h.agentId===void 0),g=(m&&h.status!=="running"?h:void 0)??(u!==void 0&&u.status!=="running"?u:void 0),v=g!==void 0&&(t.task.status==="running"||t.task.status!==g.status),y=!m&&h.status!=="running"||t.task.backgroundTaskId!==void 0&&h.backgroundTaskId!==void 0&&t.task.backgroundTaskId!==h.backgroundTaskId,b=m&&h.completedAt!==void 0&&h.completedAtEstimated!==!0;f[d]={...t.task,status:v?g.status:t.task.status,subagentPhase:v?g.subagentPhase:t.task.subagentPhase,completedAt:v?g.completedAt:b?h.completedAt:t.task.completedAt,completedAtEstimated:v?g.completedAtEstimated:b?h.completedAtEstimated:t.task.completedAtEstimated,outputLines:v?g.outputLines:y?u?.outputLines??t.task.outputLines:h.outputLines??u?.outputLines??t.task.outputLines,text:v?g.text:y?u?.text??t.task.text:h.text??u?.text??t.task.text,outputPreview:v?g.outputPreview:t.task.outputPreview??(y?u?.outputPreview:h.outputPreview??u?.outputPreview),outputBytes:v?g.outputBytes:t.task.outputBytes??(y?u?.outputBytes:h.outputBytes??u?.outputBytes),description:t.task.description===RD&&h.description!==RD?h.description:t.task.description,swarmIndex:t.task.swarmIndex??h.swarmIndex,parentToolCallId:t.task.parentToolCallId??h.parentToolCallId,subagentType:t.task.subagentType??h.subagentType,model:t.task.model??h.model,thinkingEffort:t.task.thinkingEffort??h.thinkingEffort,runInBackground:y?t.task.runInBackground:t.task.runInBackground??h.runInBackground,backgroundTaskId:y?t.task.backgroundTaskId:t.task.backgroundTaskId??h.backgroundTaskId,agentId:t.task.agentId??h.agentId},o.tasksBySession[s]=f}break}case"taskProgress":{const s=t.sessionId,r=o.tasksBySession[s]??[];o.tasksBySession[s]=r.map(l=>{if(l.id!==t.taskId)return l;if(l.kind==="subagent"&&t.kind==="text")return{...l,text:(l.text??"")+t.outputChunk};const a=l.outputLines??[];if(t.replace===!0){const c=a.length>0?[...a.slice(0,-1),t.outputChunk]:[t.outputChunk];return{...l,outputLines:c}}if(a.at(-1)===t.outputChunk)return l;const u=[...a,t.outputChunk];return{...l,outputLines:l.kind==="subagent"?u:u.slice(-40)}});break}case"taskCompleted":{const s=t.sessionId,r=o.tasksBySession[s]??[];o.tasksBySession[s]=r.map(l=>l.id!==t.taskId&&l.backgroundTaskId!==t.taskId||t.status==="completed"&&(l.status==="cancelled"||l.status==="failed")||t.status==="failed"&&l.status==="cancelled"?l:{...l,status:t.status,completedAt:l.completedAt??new Date().toISOString(),completedAtEstimated:l.completedAt===void 0?!0:l.completedAtEstimated,outputPreview:t.outputPreview??l.outputPreview,outputBytes:t.outputBytes??l.outputBytes});break}case"goalUpdated":{const s=t.sessionId;o.goalVersionBySession[s]=(o.goalVersionBySession[s]??0)+1,t.goal===null||t.goal.status==="complete"?delete o.goalBySession[s]:o.goalBySession[s]=t.goal;break}case"configChanged":{o.config=t.config;break}case"modelCatalogChanged":break;case"agentDelta":case"agentTurnEnded":break;case"promptCompleted":case"promptAborted":break;case"turnActiveChanged":{if(!xy(e,n))break;if(o.sessions=o.sessions.map(s=>s.id===t.sessionId?{...s,mainTurnActive:t.active}:s),t.active)o.turnActiveBySession[t.sessionId]=!0,delete o.turnErrorBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId];else{delete o.turnActiveBySession[t.sessionId],delete o.turnRetryBySession[t.sessionId];const s=t.reason===void 0||t.reason==="completed"?"completed":"failed",r=o.tasksBySession[t.sessionId];r!==void 0&&(o.tasksBySession[t.sessionId]=r.map(l=>l.kind!=="subagent"||l.status!=="running"||l.runInBackground===!0?l:{...l,status:s,subagentPhase:s,completedAt:l.completedAt??new Date().toISOString(),completedAtEstimated:l.completedAt===void 0?!0:l.completedAtEstimated,suspendedReason:void 0}))}break}case"turnRetry":{if(!xy(e,n))break;t.retry===void 0?delete o.turnRetryBySession[t.sessionId]:o.turnRetryBySession[t.sessionId]=t.retry;break}case"unknown":{const s=t.raw;if(!(s&&s._noop===!0))if(s&&s._agentError){if(xy(e,n)){if(n.sessionId!==void 0){const r=s.details??{};o.turnErrorBySession[n.sessionId]={code:s.code,message:s.message,name:s.name,retryable:s.retryable,statusCode:typeof r.statusCode=="number"?r.statusCode:void 0,requestId:typeof r.requestId=="string"?r.requestId:void 0}}(n.sessionId===void 0||n.sessionId!==e.activeSessionId)&&(o.warnings=[...o.warnings,hA(s,i.t)])}}else if(s&&s._agentWarning){const r=s.message??s.code??i.t("warnings.agentWarningFallback");o.warnings=[...o.warnings,`${i.t("warnings.noteLabel")}: ${r}`]}else{const r=s?.type??"(unknown)";o.warnings=[...o.warnings,i.t("warnings.unhandledEvent",{type:r})]}break}}return o}function ECe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n]*)>([\s\S]*?)<\/notification>/g,NCe=/([\w-]+)="([^"]*)"/g,DCe=/]*)>[\s\S]*?<\/output-file>/,FCe=/]*)>([\s\S]*?)<\/output-preview>/,BCe=/^Title: (.*)$/m,RCe=/^Severity: (.*)$/m;function y9(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function c5(e){const t={};for(const n of e.matchAll(NCe))n[1]!==void 0&&n[2]!==void 0&&(t[n[1]]=y9(n[2]));return t}function OCe(e,t,n){const i=c5(e),o=BCe.exec(t)?.[1]?.trim()??"",s=RCe.exec(t)?.[1]?.trim()??"";let r=t.split(` -`).filter(f=>!f.startsWith("Title: ")&&!f.startsWith("Severity: ")).join(` -`);const l=r.search(/^<\w/m);l!==-1&&(r=r.slice(0,l)),r=r.trim();const a=DCe.exec(t),u=a?(()=>{const f=c5(a[1]??""),h=Number(f.bytes);return f.path!==void 0&&f.path!==""?{path:f.path,bytes:Number.isFinite(h)?h:void 0}:void 0})():void 0,c=FCe.exec(t),d=c?(()=>{const f=c5(c[1]??""),h=(c[2]??"").replace(/^\n/,""),m=h.indexOf(` -`),g=y9(m===-1?"":h.slice(m+1)).replace(/\n$/,""),v=Number(f.bytes),y=Number(f.total_bytes);return{text:g,bytes:Number.isFinite(v)?v:void 0,totalBytes:Number.isFinite(y)?y:void 0,truncated:f.truncated==="true"?!0:f.truncated==="false"?!1:void 0}})():void 0;return{id:i.id??"",category:i.category??"",type:i.type??"",sourceKind:i.source_kind??"",sourceId:i.source_id??"",agentId:i.agent_id,title:y9(o),severity:s,body:y9(r),outputFile:u,outputPreview:d,raw:n}}function $Ce(e){if(!e.includes("OD||s>OD||(o+1)*(s+1)>jCe)return null;const r=Array.from({length:o+1},()=>Array.from({length:s+1},()=>0));for(let h=1;h<=o;h++)for(let m=1;m<=s;m++)r[h][m]=n[h-1]===i[m-1]?r[h-1][m-1]+1:Math.max(r[h-1][m],r[h][m-1]);const l=[];let a=o,u=s;for(;a>0||u>0;)a>0&&u>0&&n[a-1]===i[u-1]?(l.push({type:"context",text:n[a-1]}),a--,u--):u>0&&(a===0||r[a][u-1]>=r[a-1][u])?(l.push({type:"add",text:i[u-1]}),u--):(l.push({type:"del",text:n[a-1]}),a--);l.reverse();const c=[];let d=1,f=1;for(const h of l)h.type==="context"?(c.push({type:"context",text:h.text,oldNo:d,newNo:f}),d++,f++):h.type==="add"?(c.push({type:"add",text:h.text,newNo:f}),f++):(c.push({type:"del",text:h.text,oldNo:d}),d++);return c}const $D=500;function PD(e,t){const n=[],i=Pu(e),o=Pu(t),s=Math.min(i.length,$D),r=Math.min(o.length,$D);for(let l=1;l<=s;l++)n.push({type:"del",text:i[l-1],oldNo:l});i.length>s&&n.push({type:"context",text:`… ${i.length-s} more lines …`});for(let l=1;l<=r;l++)n.push({type:"add",text:o[l-1],newNo:l});return o.length>r&&n.push({type:"context",text:`… ${o.length-r} more lines …`}),n}function Eq(e){let t=0,n=0;for(const i of e)i.type==="add"?t++:i.type==="del"&&n++;return{added:t,removed:n}}const HCe=/^read[_-]?media(?:file)?$/i,WCe=/^data:([^;]+);base64,(.*)$/s,qCe=/^<(image|video|audio)\s+path="([^"]+)">$/,UCe=/^<(image|video|audio)\s+path="([^"]+)">(?:<\/\1>)?$/,VCe=/Mime type:\s*([^.\s]+)/i,KCe=/Size:\s*(\d+)\s*bytes/i,ZCe=/Original dimensions:\s*(\d+)x(\d+)\s*pixels/i,GCe="Image compressed to fit model limits:",QCe=/Image compressed to fit model limits:[\s\S]*?<\/system>/g;function YCe(e){return e.includes(GCe)?e.replace(QCe,""):e}function JCe(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function zD(e){const t=UCe.exec(e.trim());return t?{kind:t[1],path:JCe(t[2])}:null}const Lq=/^f_(?:[0-9A-Za-z]{26}|[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})$/,XCe=/^f_(?:[0-9A-Za-z]{26}|[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})(?=-)/;function mA(e){const t=e.split(/[\\/]/).at(-1)??"",n=t.lastIndexOf("."),i=n>0?t.slice(0,n):t;return Lq.test(i)?i:void 0}const eAe=/^Attached file "(.+)" \(([^,]+), (\d+) bytes\): (.+) — open it with the Read tool$/;function jD(e){const t=eAe.exec(e.trim());if(!t)return null;const n=(t[4]??"").split(/[\\/]/).at(-1)??"",i=XCe.exec(n)?.[0];return{name:t[1],mediaType:t[2],size:Number(t[3]),fileId:i!==void 0&&Lq.test(i)?i:void 0}}const tAe=/(?=0&&e[i]==="\\";)n+=1,i-=1;return n%2===1}function Nq(e){let t="",n=0,i=0;for(;i0?t:void 0}return[JSON.stringify(e)]}}function cAe(e,t){if(Sr(e)==="task")for(const n of t??[]){const i=/^agent_id:\s*(\S+)\s*$/.exec(n);if(i?.[1])return i[1]}}function dAe(e,t){return{id:e.agentId??e.id,toolCallId:e.parentToolCallId,name:e.description,kind:e.kind,subagentType:e.subagentType,prompt:e.command??t,model:e.model,thinkingEffort:e.thinkingEffort,phase:e.status==="completed"?"completed":e.status==="failed"?"failed":e.status==="cancelled"?"cancelled":e.subagentPhase??"working",status:e.status,summary:e.outputPreview,outputLines:e.outputLines,text:e.text,suspendedReason:e.suspendedReason,swarmIndex:e.swarmIndex}}function Dq(e){const t=e.display??{},n=typeof t.kind=="string"?t.kind:"";if(n==="diff"){const i=typeof t.path=="string"?t.path:"";if(Array.isArray(t.diff))return{kind:"diff",path:i,diff:t.diff};const o=typeof t.old_text=="string"?t.old_text:typeof t.before=="string"?t.before:void 0,s=typeof t.new_text=="string"?t.new_text:typeof t.after=="string"?t.after:void 0;if(o!==void 0&&s!==void 0){const r=qk(o,s)??PD(o,s);return{kind:"diff",path:i,diff:r}}return{kind:"diff",path:i,diff:[]}}if(n==="file_io"){const i=typeof t.path=="string"?t.path:"",o=typeof t.operation=="string"?t.operation:"";if(o==="write"&&typeof t.content=="string")return{kind:"file",path:i,content:t.content};if(o==="edit"&&typeof t.before=="string"&&typeof t.after=="string"){const r=qk(t.before,t.after)??PD(t.before,t.after);return{kind:"diff",path:i,diff:r}}const s=typeof t.detail=="string"?t.detail:void 0;return{kind:"fileop",op:o||n,path:i,detail:s}}if(n==="shell"||n==="command"){const i=typeof t.command=="string"?t.command:e.action;return{kind:"shell",command:i,cwd:typeof t.cwd=="string"?t.cwd:void 0,danger:typeof t.danger=="string"?t.danger:sle(i)}}if(n==="file_content"||n==="file")return{kind:"file",path:typeof t.path=="string"?t.path:"",content:typeof t.content=="string"?t.content:"",language:typeof t.language=="string"?t.language:void 0};if(n==="file_op"||n==="fileop")return{kind:"fileop",op:typeof t.operation=="string"?t.operation:typeof t.op=="string"?t.op:n,path:typeof t.path=="string"?t.path:"",detail:typeof t.detail=="string"?t.detail:void 0};if(n==="url_fetch"||n==="url")return{kind:"url",method:typeof t.method=="string"?t.method:void 0,url:typeof t.url=="string"?t.url:e.action};if(n==="search")return{kind:"search",query:typeof t.query=="string"?t.query:e.action,scope:typeof t.scope=="string"?t.scope:void 0};if(n==="invocation"||n==="agent_call"||n==="skill_call")return{kind:"invocation",kind2:typeof t.kind=="string"?t.kind:n,name:typeof t.name=="string"?t.name:e.toolName,description:typeof t.description=="string"?t.description:void 0};if(n==="todo"||n==="todo_list")return{kind:"todo",items:(Array.isArray(t.items)?t.items:[]).map(s=>{const r=s??{};return{title:typeof r.title=="string"?r.title:"",status:typeof r.status=="string"?r.status:"pending"}})};if(n==="plan_review"){const i=typeof t.plan=="string"?t.plan:"",o=typeof t.path=="string"?t.path:void 0,r=(Array.isArray(t.options)?t.options:[]).map(l=>{const a=l??{},u=typeof a.label=="string"?a.label:"";if(!u)return null;const c=typeof a.description=="string"?a.description:void 0;return{label:u,description:c}}).filter(l=>l!==null);return{kind:"plan_review",plan:i,path:o,options:r.length>0?r:void 0}}return{kind:"generic",summary:e.action}}function Fq(e){const t=` -`,n=` -`,i=e.indexOf(t),o=e.lastIndexOf(n);return i>=0&&o>=i+t.length?e.slice(i+t.length,o):fAe(e)}function fAe(e){const t=e.split(` -`);return t.length>=2&&t[0]?.startsWith(""?t.slice(1,-1).join(` -`):e}function hAe(e){const t=e.metadata?.origin;if(t?.kind==="cron_job"||t?.kind==="cron_missed")return t.kind}function pAe(e){const t=e.content.filter(n=>n.type==="text").map(n=>n.text).join(` -`);return Fq(t)}function mAe(e,t){const n=e.metadata?.origin??{},i=pAe(e);return t==="cron_missed"?{text:i,cron:{missedCount:typeof n.count=="number"?n.count:void 0}}:{text:i,cron:{jobId:typeof n.jobId=="string"?n.jobId:void 0,cron:typeof n.cron=="string"?n.cron:void 0,recurring:typeof n.recurring=="boolean"?n.recurring:void 0,coalescedCount:typeof n.coalescedCount=="number"?n.coalescedCount:void 0,stale:typeof n.stale=="boolean"?n.stale:void 0}}}function gAe(e,t,n){const{text:i,cron:o}=mAe(e,n);return{id:e.id,role:"cron",no:t,text:i,createdAt:e.createdAt,cron:o}}function vAe(e){const t=e.metadata?.origin,n=t?.kind;return n===void 0||n==="user"?!0:n==="skill_activation"||n==="plugin_command"?t?.trigger==="user-slash":!1}function yAe(e){return e.metadata?.origin?.kind==="compaction_summary"}function kAe(e,t){return e===null?!1:e.promptId===void 0||t===void 0||e.promptId===t}function bAe(e){if(!e||e.length===0)return;const t="Plan saved to: ";for(const n of e)if(n.startsWith(t))return n.slice(t.length).trim()}function wAe(e){const t=[];for(const n of e){const i=t.at(-1);n.type==="text"&&i?.type==="text"?i.text+=n.text:n.type==="thinking"&&i?.type==="thinking"?i.thinking+=n.thinking:n.type==="thinking"?t.push({type:"thinking",thinking:n.thinking}):t.push({...n})}return JSON.stringify(t)}function A4(e,t,n,i=!0,o={},s={},r){const l=[];let a=r?.startNo??1;const u=r?.collect,c=new Map;for(const g of t)c.set(g.toolCallId,g);let d=null;function f(g=!1){if(!d)return;const v=d;if(d=null,!g&&v.blocks.length===0&&v.textParts.length===0&&v.thinkingParts.length===0&&v.tools.length===0)return;if(!g||!i)for(let b=0;bN.kind==="tool"&&N.tool.id===w.id);M&&M.kind==="tool"&&(M.tool=w)}const y={id:v.id,role:"assistant",no:a++,text:v.textParts.join(` -`),thinking:v.thinkingParts.length>0?v.thinkingParts.join(` -`):void 0,tools:v.tools.length>0?v.tools:void 0,blocks:v.blocks.length>0?v.blocks:void 0,approval:v.approval,approvalId:v.approvalId,durationMs:v.durationMs,createdAt:v.createdAt,endedAt:v.endedAt,goalContinuation:v.goalContinuation};l.push(y),u?.(y,v.sources)}function h(g,v){let y=null;for(const b of v)if(b.type==="text"){if(b.text){y==="text"?g.textParts[g.textParts.length-1]+=b.text:g.textParts.push(b.text);const A=g.blocks.at(-1);A&&A.kind==="text"?A.text+=(y==="text"?"":` -`)+b.text:g.blocks.push({kind:"text",text:b.text}),y="text"}}else if(b.type==="thinking"){if(b.thinking){y==="thinking"?g.thinkingParts[g.thinkingParts.length-1]+=b.thinking:g.thinkingParts.push(b.thinking);const A=g.blocks.at(-1);if(A&&A.kind==="thinking"){A.thinking+=(y==="thinking"?"":` -`)+b.thinking;const w=[A.startedAt,b.startedAt].filter(T=>T!==void 0).sort()[0],M=A.startedAt!==void 0&&A.durationMs===void 0||b.startedAt!==void 0&&b.durationMs===void 0,N=[A,b].flatMap(T=>T.startedAt!==void 0&&T.durationMs!==void 0?[Date.parse(T.startedAt)+T.durationMs]:[]);A.startedAt=w,A.durationMs=!M&&w!==void 0&&N.length>0?Math.max(...N)-Date.parse(w):void 0}else g.blocks.push({kind:"thinking",thinking:b.thinking,startedAt:b.startedAt,durationMs:b.durationMs});y="thinking"}}else if(b.type==="toolUse"){y=null;const A=c.get(b.toolCallId),w=b.toolName==="ExitPlanMode"?s[b.toolCallId]:void 0,M={id:b.toolCallId,name:b.toolName,arg:typeof b.input=="string"?b.input:JSON.stringify(b.input),agentId:Sr(b.toolName)==="task"?b.agentRefs?.find(N=>N.role!=="member")?.agentId??b.agentRefs?.[0]?.agentId:void 0,status:"running",output:b.outputLines,plan:w,planPath:b.toolName==="ExitPlanMode"?w?.path??o[b.toolCallId]?.path:void 0};g.tools.push(M),g.blocks.push({kind:"tool",tool:M}),A&&(g.approval=Dq(A),g.approvalId=A.approvalId)}else if(b.type==="toolResult"){y=null;const A=g.tools.findIndex(w=>w.id===b.toolCallId);if(A!==-1){const w=g.tools[A],M=Mx(b.output),N={...w,status:b.isError?"error":"ok",output:M,media:b.isError?void 0:uAe(w.name,b.output),agentId:w.agentId??cAe(w.name,M)};N.name==="ExitPlanMode"&&!N.planPath&&(N.planPath=bAe(N.output)),g.tools[A]=N;const T=g.blocks.find(C=>C.kind==="tool"&&C.tool.id===b.toolCallId);T&&T.kind==="tool"&&(T.tool=N)}}else y=null}function m(g,v){if(g.type==="image"||g.type==="video"){const y=g.type,b=g.source;if(b.kind==="url")return{url:b.url,kind:y};if(b.kind==="base64")return{url:`data:${b.mediaType};base64,${b.data}`,kind:y};if(b.kind==="file"&&n)return{url:n(b.fileId),kind:y,fileId:b.fileId};if(b.kind==="sessionMedia")return{url:r?.getSessionMediaUrl?.(v,b.fileId)??"",kind:y,fileId:b.fileId,sessionId:v}}if(g.type==="file"&&n){if(g.mediaType.startsWith("image/"))return{url:n(g.fileId),kind:"image",fileId:g.fileId};if(g.mediaType.startsWith("video/"))return{url:n(g.fileId),kind:"video",fileId:g.fileId}}}for(const g of e){if(g.role==="system")continue;if(yAe(g)){f();const w=g.metadata?.[qP],M={id:g.id,role:"compaction",no:a,text:g.content.filter(N=>N.type==="text").map(N=>N.text).join(` -`),compaction:{trigger:w?.trigger,tokensBefore:w?.tokensBefore,tokensAfter:w?.tokensAfter}};l.push(M),u?.(M,[g]);continue}if(g.role==="user"){const w=hAe(g),M=g.metadata?.origin?.kind,N=M==="skill_activation"&&g.metadata?.origin?.trigger!=="user-slash";if(w===void 0&&(M==="injection"||N))continue;if(w===void 0&&(M==="task"||M==="background_task"||M==="task_notification")){const G=g.content.filter(ve=>ve.type==="text").map(ve=>ve.text).join(` -`),oe=PCe(g.metadata),te=oe!==void 0?[oe]:$Ce(G);if(te.length>0){d??={id:g.id,promptId:void 0,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[g],createdAt:g.createdAt};for(const ve of te)d.blocks.push({kind:"notification",notification:{...ve,createdAt:g.createdAt}})}continue}if(f(),w!==void 0){const G=gAe(g,a++,w);l.push(G),u?.(G,[g]);continue}if(M==="system_trigger"&&g.metadata?.origin?.name==="goal_continuation"){d={id:g.id,promptId:void 0,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[g],createdAt:g.createdAt,goalContinuation:!0};continue}if(!vAe(g))continue;const T=g.metadata?.origin,C=T?.kind==="skill_activation"&&T?.trigger==="user-slash",I=T?.kind==="plugin_command"&&T?.trigger==="user-slash",S=[],E=[];for(const G of g.content){if(G.type==="text")if(C){const te=zD(G.text);if(te&&(te.kind==="video"||te.kind==="image")&&n){const Te=mA(te.path);if(Te){E.push({url:n(Te),kind:te.kind,fileId:Te});continue}}const ve=jD(G.text);ve&&E.push({kind:"file",url:ve.fileId&&n?n(ve.fileId):"",fileId:ve.fileId,name:ve.name,mediaType:ve.mediaType,size:ve.size})}else if(I)S.push(T.commandArgs??"");else{const te=zD(G.text);if(te&&(te.kind==="video"||te.kind==="image")&&n){const Fe=mA(te.path);if(Fe){E.push({url:n(Fe),kind:te.kind,fileId:Fe});continue}}const ve=jD(G.text);if(ve){E.push({kind:"file",url:ve.fileId&&n?n(ve.fileId):"",fileId:ve.fileId,name:ve.name,mediaType:ve.mediaType,size:ve.size});continue}const Te=YCe(G.text);if(Te!==G.text&&Te.trim().length===0)continue;S.push(Te)}const oe=m(G,g.sessionId);if(oe){E.push({url:oe.url,kind:oe.kind,name:G.type==="file"?G.name:void 0,fileId:oe.fileId,sessionId:oe.sessionId});continue}G.type==="file"&&n&&E.push({kind:"file",url:n(G.fileId),fileId:G.fileId,name:G.name,mediaType:G.mediaType||void 0,size:G.size})}const _=C?T?.skillArgs??"":S.join(` -`),F=oAe(_),q=sAe(_),P=E.filter(G=>G.kind==="file"),O=E.filter(G=>G.kind==="image"||G.kind==="video"),R=[...F].some(G=>G<=P.length),z=[...q].some(G=>G<=O.length),H=R||z?E:[];let j=0,Q=0;const ae=E.filter(G=>G.kind==="file"?(j+=1,!(R&&F.has(j))):G.kind==="image"||G.kind==="video"?(Q+=1,!(z&&q.has(Q))):!0),W={id:g.id,role:"user",no:a++,text:_,attachments:ae.length>0?ae:void 0,inlineAttachments:H.length>0?H:void 0,skillActivation:C?{name:T.skillName,args:T.skillArgs}:void 0,pluginCommand:I?{pluginId:T.pluginId,commandName:T.commandName,args:T.commandArgs}:void 0,createdAt:g.createdAt};l.push(W),u?.(W,[g]);continue}if(g.role==="tool"){d&&(d.sources.push(g),h(d,g.content),d.endedAt=g.createdAt);continue}const v=g.promptId;kAe(d,v)?d!==null&&d.promptId===void 0&&v!==void 0&&(d.promptId=v):(f(),d={id:g.id,promptId:v,textParts:[],thinkingParts:[],tools:[],blocks:[],approval:void 0,approvalId:void 0,seenSigs:new Set,sources:[],durationMs:g.durationMs,createdAt:g.createdAt});const b=d;if(b===null)continue;const A=wAe(g.content);b.promptId!==void 0&&b.seenSigs.has(A)||(b.seenSigs.add(A),b.sources.push(g),g.durationMs!==void 0&&(b.durationMs=g.durationMs),h(b,g.content),g.endedAt!==void 0?b.endedAt=g.endedAt:g.id!==b.id&&(b.endedAt=g.createdAt))}return f(!0),l}function Bq(e,t,n){return e.state==="running"&&e.frames.at(-1)===t&&!n}function CAe(e,t){if(t.size===0)return;let n=!1;for(const l of t.values())if(l.settledAt===void 0){n=!0;break}if(!n)return;const i=new Date().toISOString(),o=e.items.findLast(l=>l.kind==="turn"&&l.state==="running"),s=o?.kind==="turn"?o.steps.findLast(l=>l.state==="running"):void 0,r=e.interactions.some(l=>l.state==="pending");for(const l of e.items)if(l.kind==="turn")for(const a of l.steps){const u=r&&a===s;for(const c of a.frames){if(c.kind!=="thinking")continue;const d=t.get(c.frameId);d===void 0||d.settledAt!==void 0||Bq(a,c,u)||(d.settledAt=i)}}}function AAe(e,t){if(t.size===0)return;const n=new Set;for(const i of e.items)if(i.kind==="turn")for(const o of i.steps)for(const s of o.frames)s.kind==="thinking"&&n.add(s.frameId);for(const i of[...t.keys()])n.has(i)||t.delete(i)}function xAe(e,t,n,i){const o=e.items.filter(d=>d.kind==="turn"),s=o[0]?.turnId,r=o.length===1?s:void 0,l=new Map(e.tasks.map(d=>[d.taskId,d])),a=new Map(e.prompts.map(d=>[d.promptId,d])),u=e.items.flatMap(d=>d.kind==="turn"?Ix(d,e.attachments,l,d.turnId===s?n?.createdAt:void 0,d.turnId===r?n?.disposedAt:void 0,i?.sessionId,{promptById:a}):[]),c=e.meta.activity==="turn";return A4(u,[],t,c,{},{},{getSessionMediaUrl:i?.getSessionMediaUrl}).map(_Ae)}function Ix(e,t,n,i,o,s="",r){const l=[],a=new Map(t.map(v=>[v.attachmentId,v])),u=gA([e.startedAt,...e.steps.map(v=>v.startedAt),i])??"",c=HD(e.endedAt)??HD(o),d=e.turnId,f=e.origin.payload??e.origin,h=(e.attachmentIds??[]).length>0;if(e.prompt!==void 0&&e.prompt.length>0||h){const v=e.prompt!==void 0&&e.prompt.length>0?[{type:"text",text:e.prompt}]:[];for(const y of e.attachmentIds??[]){const b=WD(a.get(y));b!==void 0&&v.push(b)}l.push({id:`${e.turnId}:input`,sessionId:s,role:"user",content:v,createdAt:u,promptId:d,metadata:r?.includeOrigin===!0||e.origin.kind==="task"&&(e.prompt??"").includes("0;if(y.text.length===0&&!b)continue;if(y.role==="user"){if(y.taskId!==void 0){const M=SAe(y.taskId,y.text,n.get(y.taskId));l.push({id:y.frameId,sessionId:"",role:"user",content:[{type:"text",text:y.text}],createdAt:v.startedAt??u,promptId:d,metadata:{origin:{kind:"task",taskId:y.taskId},[Tq]:M}});continue}const A=y.text.length>0?[{type:"text",text:y.text}]:[];for(const M of y.attachmentIds??[]){const N=WD(a.get(M));N!==void 0&&A.push(N)}const w=y.promptIds?.map(M=>r?.promptById?.get(M)).find(M=>M!==void 0);l.push({id:y.frameId,sessionId:s,role:"user",content:A,createdAt:w?.createdAt??v.startedAt??u,promptId:d});continue}l.push({id:y.frameId,sessionId:"",role:"assistant",content:[{type:"text",text:y.text}],createdAt:v.startedAt??u,promptId:d})}else if(y.kind==="thinking"){if(y.text.length===0)continue;const b=r?.pendingInteractionAtByStepId?.get(v.stepId),A=Bq(v,y,b!==void 0),w=r?.thinkingTiming,M=w?.get(y.frameId);let N,T;if(M!==void 0)M.settledAt===void 0&&!A&&(M.settledAt=new Date().toISOString()),N=M.startedAt,T=d5(M.startedAt,M.settledAt);else if(w!==void 0&&A){const C=new Date().toISOString();w.set(y.frameId,{startedAt:C}),N=C}else N=v.startedAt,T=d5(v.startedAt,gA([v.endedAt,b]));l.push({id:y.frameId,sessionId:"",role:"assistant",content:[{type:"thinking",thinking:y.text,startedAt:N,durationMs:T}],createdAt:v.startedAt??u,promptId:d})}else y.kind==="tool"&&(l.push({id:`${y.frameId}:call`,sessionId:"",role:"assistant",content:[{type:"toolUse",toolCallId:y.toolCallId,toolName:y.name,input:y.input??y.display??{},outputLines:y.state==="running"?Mx(y.output):void 0,agentRefs:y.agentRefs}],createdAt:v.startedAt??u,promptId:d}),y.state!=="running"&&l.push({id:`${y.frameId}:result`,sessionId:"",role:"tool",content:[{type:"toolResult",toolCallId:y.toolCallId,output:y.output??y.error??"",isError:y.state==="error"}],createdAt:v.endedAt??v.startedAt??u,promptId:d}));const m=e.durationMs??d5(u||void 0,c),g=l.findLastIndex(v=>v.role==="assistant");return g>=0&&(m!==void 0||c!==void 0)&&(l[g]={...l[g],durationMs:m,endedAt:c??l[g].endedAt}),l}function SAe(e,t,n){const[i="",...o]=t.split(` -`),s=n?.state??"info";return{id:`task:${e}:${s}`,category:"task",type:`task.${s}`,sourceKind:n?.kind==="subagent"?"subagent":"background_task",sourceId:e,agentId:n?.agentId,title:i.trim(),severity:s==="completed"?"info":"warning",body:o.join(` -`).trim(),raw:t}}function _Ae(e){if(e.createdAt!==""&&e.endedAt!=="")return e;const t={...e};return t.createdAt===""&&delete t.createdAt,t.endedAt===""&&delete t.endedAt,t}function gA(e){let t;for(const n of e){if(n===void 0)continue;const i=Date.parse(n);Number.isFinite(i)&&(t===void 0||i=0?n:void 0}const qD=6e3,vA=256*1024,MAe=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;function UD(e,t){return t===0?e:e-1}function IAe(e,t){const n=Pu(t),i=[];let o=0;for(const s of e){if(s.type==="hunk"){const r=MAe.exec(s.text);if(!r)return null;const l=UD(Number(r[1]),r[2]===void 0?1:Number(r[2])),a=UD(Number(r[3]),r[4]===void 0?1:Number(r[4]));if(an.length)return null;for(;o=n.length||n[o]!==s.text)return null;o++,s.type==="context"&&i.push(s.text)}for(;ovA||Pu(n).length>qD)return null;const i=IAe(e,n);return i===null||i.length>vA||Pu(i).length>qD?null:{before:i,after:n}}const EAe=new Set(["assistantDelta","agentDelta","toolOutput","taskProgress"]);function LAe(e){return EAe.has(e.type)}const NAe=50,DAe=100,yA=32*1024,FAe={requestFrame(e){return typeof requestAnimationFrame=="function"?requestAnimationFrame(e):null},cancelFrame(e){typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e)},requestTask(e){return setTimeout(e,NAe)},cancelTask(e){clearTimeout(e)}};function BAe(e,t,n={}){const i=n.scheduler??FAe,o=Math.max(1,Math.floor(n.maxItemsPerSlice??DAe)),s=[];let r=0,l=null,a=null,u=0,c=!1;const d=()=>s.length-r,f=()=>{u+=1,l!==null&&(i.cancelFrame(l),l=null),a!==null&&(i.cancelTask(a),a=null)},h=()=>{r===s.length?(s.length=0,r=0):r>=1024&&(s.splice(0,r),r=0)};let m;const g=()=>{if(c||l!==null||a!==null||d()===0)return;const y=++u,b=()=>{y===u&&m()};l=i.requestFrame(b),a=i.requestTask(b)};m=()=>{f();let y=0;for(;!c&&y{if(!c){if(t(y)){const b=s.length>r?s.at(-1):void 0,A=b===void 0?void 0:n.coalesce?.(b,y);A===void 0?s.push(y):s[s.length-1]=A,g();return}if(d()===0){e(y);return}s.push(y),m()}});return v.flush=()=>{if(!c){for(f();!c&&r{if(c||d()===0)return;let b=r;for(let A=r;A{c||(c=!0,f(),s.length=0,r=0)},v}function kA(e){if(e.type==="assistantDelta"){if(e.delta.text!==void 0&&e.delta.thinking===void 0)return{kind:"text",value:e.delta.text};if(e.delta.thinking!==void 0&&e.delta.text===void 0)return{kind:"thinking",value:e.delta.thinking}}}function RAe(e){if(e.appEvent.type!=="assistantDelta")return[e];const t=e.appEvent,n=e.meta.stream,i=kA(t);if(n===void 0||i===void 0||n.kind!==i.kind||i.value.length<=yA)return[e];const o=[];let s=0;for(;ss&&/[\uD800-\uDBFF]/u.test(i.value[r-1])&&/[\uDC00-\uDFFF]/u.test(i.value[r])&&(r-=1);const l=i.value.slice(s,r);o.push({appEvent:{...t,delta:i.kind==="text"?{text:l}:{thinking:l}},meta:{...e.meta,stream:{...n,offset:n.offset+s}}}),s=r}return o}function OAe(e,t){if(e.appEvent.type!=="assistantDelta"||t.appEvent.type!=="assistantDelta")return;const n=e.meta.stream,i=t.meta.stream,o=kA(e.appEvent),s=kA(t.appEvent);if(n===void 0||i===void 0||o===void 0||s===void 0||e.meta.sessionId!==t.meta.sessionId||e.appEvent.sessionId!==t.appEvent.sessionId||e.appEvent.messageId!==t.appEvent.messageId||e.appEvent.contentIndex!==t.appEvent.contentIndex||n.turnId!==i.turnId||n.kind!==i.kind||o.kind!==s.kind||n.kind!==o.kind||i.kind!==s.kind||i.offset!==n.offset+o.value.length||o.value.length+s.value.length>yA)return;const r=o.value+s.value;return{appEvent:{...e.appEvent,delta:o.kind==="text"?{text:r}:{thinking:r}},meta:{...t.meta,stream:{...n}}}}function $Ae(e,t){const i=e.items.filter(d=>d.kind==="turn")[0]?.turnId,o=new Map(e.tasks.map(d=>[d.taskId,d])),s=new Map(e.prompts.map(d=>[d.promptId,d])),r=d=>d.kind==="turn"?d.origin.payload??d.origin:void 0,l=new Set,a=e.items.flatMap((d,f)=>{if(d.kind==="turn"){const h=d.startedAt!==void 0||d.steps.some(m=>m.startedAt!==void 0);return PAe(d,e.attachments,o,d.turnId===i&&!h&&e.hasMoreOlder!==!0?t.agentCreatedAt:void 0,void 0,t.sessionId,t.pendingInteractionAtByStepId,t.thinkingTiming,s)}if(d.kind==="marker"&&d.marker==="compaction"){const h=zAe(d.payload,d.at,t.sessionId,d.markerId,HAe(e.items,f));return h===void 0?[]:[h]}if(d.kind==="marker"&&d.marker==="cron.fired"){const h=d.payload,m=h?.origin?.jobId,g=typeof h?.prompt=="string"?h.prompt:void 0,v=e.items.slice(f+1).find(b=>{if(b.kind!=="turn"||l.has(b.turnId))return!1;const A=r(b);return A?.kind==="cron_job"&&(m===void 0||A.jobId===m)&&(g===void 0||b.kind==="turn"&&Fq(b.prompt??"")===g)});if(v!==void 0&&v.kind==="turn")return l.add(v.turnId),[];const y=jAe(d.payload,d.at,t.sessionId,d.markerId);return y===void 0?[]:[y]}return[]}),u=e.interactions.map(d=>Vp(d,t.sessionId)).filter(d=>d!==void 0),c=e.meta.activity==="turn";return A4(a,u,t.getFileUrl,c,t.planReviewByToolCallId??{},t.plansByToolCallId??{},{getSessionMediaUrl:t.getSessionMediaUrl}).map(UAe)}function PAe(e,t,n,i,o,s,r,l,a){const u=e.origin.payload??e.origin,c=u?.kind;return[...e.prompt===void 0&&c==="system_trigger"?[{id:`${e.turnId}:origin`,sessionId:s,role:"user",content:[],createdAt:gA([e.startedAt,...e.steps.map(f=>f.startedAt),i])??"",promptId:e.turnId,metadata:{origin:u}}]:[],...Ix(e,t,n,i,o,s,{includeOrigin:!0,pendingInteractionAtByStepId:r,thinkingTiming:l,promptById:a})]}function zAe(e,t,n,i,o){const s=e;if(s?.phase!=="completed")return;const r=s.result??{},l={trigger:o,tokensBefore:typeof r.tokensBefore=="number"?r.tokensBefore:void 0,tokensAfter:typeof r.tokensAfter=="number"?r.tokensAfter:void 0};return{id:i,sessionId:n,role:"assistant",content:typeof r.summary=="string"?[{type:"text",text:r.summary}]:[],createdAt:t??"",metadata:{origin:{kind:"compaction_summary"},[qP]:l}}}function jAe(e,t,n,i){const o=e,s=o?.origin;if(!(s?.kind!=="cron_job"||typeof o?.prompt!="string"))return{id:i,sessionId:n,role:"user",content:[{type:"text",text:o.prompt}],createdAt:t??"",metadata:{origin:s}}}function HAe(e,t){for(let n=t-1;n>=0;n--){const i=e[n];if(i?.kind!=="marker"||i.marker!=="compaction")continue;const o=i.payload;if(o?.phase==="started")return o.trigger==="manual"?"manual":"auto"}return"auto"}function Vp(e,t){if(e.interactionKind!=="approval"||e.state!=="pending")return;const n=e.request??{};if(typeof n.toolName!="string"||typeof n.action!="string")return;const i=typeof e.toolCallId=="string"?e.toolCallId:typeof n.toolCallId=="string"?n.toolCallId:void 0;if(i!==void 0)return{approvalId:e.interactionId,sessionId:t,turnId:typeof n.turnId=="number"?n.turnId:void 0,toolCallId:i,toolName:n.toolName,action:n.action,display:n.display,expiresAt:"",createdAt:""}}function fg(e,t){if(e.interactionKind!=="question"||e.state!=="pending")return;const n=e.request??{};if(!Array.isArray(n.questions))return;const i=typeof e.toolCallId=="string"?e.toolCallId:typeof n.toolCallId=="string"?n.toolCallId:typeof n.tool_call_id=="string"?n.tool_call_id:void 0;return{questionId:e.interactionId,sessionId:t,turnId:typeof n.turnId=="number"?n.turnId:typeof n.turn_id=="number"?n.turn_id:void 0,toolCallId:i,questions:n.questions.map(WAe),createdAt:""}}function WAe(e){const t=Array.isArray(e.options)?e.options:[];return{id:typeof e.id=="string"?e.id:"",question:typeof e.question=="string"?e.question:"",header:typeof e.header=="string"?e.header:void 0,body:typeof e.body=="string"?e.body:void 0,options:t.map(qAe),multiSelect:e.multi_select===!0,allowOther:e.allow_other===!0,otherLabel:typeof e.other_label=="string"?e.other_label:void 0,otherDescription:typeof e.other_description=="string"?e.other_description:void 0}}function qAe(e){const t=e??{};return{id:typeof t.id=="string"?t.id:"",label:typeof t.label=="string"?t.label:"",description:typeof t.description=="string"?t.description:void 0,recommended:t.recommended===!0||t.is_recommended===!0}}function UAe(e){if(e.createdAt!==""&&e.endedAt!=="")return e;const t={...e};return t.createdAt===""&&delete t.createdAt,t.endedAt===""&&delete t.endedAt,t}function VAe(){let e=[];const t=(n,i)=>{const s=$Ae(n,i).map((r,l)=>{const a=JSON.stringify(r),u=e[l],c=u!==void 0&&u.fingerprint===a?u.turn:r;return e[l]={turn:c,fingerprint:a},c});return e.length=s.length,s};return t.reset=()=>{e=[]},t}function KAe(e){return e.startsWith("diff --git")||e.startsWith("index ")||e.startsWith("--- ")||e.startsWith("+++ ")||e.startsWith("new file mode")||e.startsWith("deleted file mode")||e.startsWith("old mode")||e.startsWith("new mode")||e.startsWith("similarity index")||e.startsWith("dissimilarity index")||e.startsWith("rename from")||e.startsWith("rename to")||e.startsWith("copy from")||e.startsWith("copy to")||e.startsWith("Binary files")}function ZAe(e){const t=[];if(!e)return t;let n=0,i=0,o=!1;for(const s of e.split(` -`)){if(s.startsWith("diff --git")){o=!1;continue}if(!o&&KAe(s))continue;if(s.startsWith("@@")){const a=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(s);a&&(n=Number.parseInt(a[1],10),i=Number.parseInt(a[2],10)),o=!0,t.push({type:"hunk",text:s});continue}if(!o||s.startsWith("\\"))continue;const r=s.charAt(0),l=s.slice(1);r==="+"?(t.push({type:"add",text:l,newNo:i}),i+=1):r==="-"?(t.push({type:"del",text:l,oldNo:n}),n+=1):r===" "&&(t.push({type:"context",text:l,oldNo:n,newNo:i}),n+=1,i+=1)}return t}function VD(e){return e?e.split(` -`).map(t=>t.trimEnd()).filter(Boolean).at(-1)??"":""}function GAe(e){return e.suspendedReason||VD(e.text)||VD(e.outputLines?.join(` -`))||e.summary||""}function QAe(e){return e.suspendedReason?e.suspendedReason:e.text?e.text:e.outputLines&&e.outputLines.length>0?e.outputLines.join(` -`):e.summary??""}function YAe(e){return e==="completed"?"completed":e==="failed"?"failed":e==="aborted"?"cancelled":"working"}function KD(e,t){return{id:e.agentId??e.item??`result-${t}`,agentId:e.agentId,name:e.item??`subagent ${t+1}`,activity:e.body.split(` -`)[0]??"",phase:YAe(e.outcome),body:e.body}}function JAe(e,t){return!!(t.agentId&&e.agentId===t.agentId||t.item&&e.name.includes(t.item))}function XAe(e,t){const n=e.map(o=>({id:o.id,agentId:o.agentId,name:o.name,activity:GAe(o),phase:o.phase,body:QAe(o)}));if(!t)return n;const i=t.subagents.filter(o=>(o.outcome==="aborted"||o.state==="not_started")&&!e.some(s=>JAe(s,o))).map((o,s)=>KD(o,s));return n.length>0?[...n,...i]:t.subagents.map((o,s)=>KD(o,s))}const e6e=["queued","working","suspended","completed","failed","cancelled"];function Rq(e){return e.status==="completed"?"completed":e.status==="failed"?"failed":e.status==="cancelled"?"cancelled":e.subagentPhase?e.subagentPhase:"working"}function t6e(){return{queued:0,working:0,suspended:0,completed:0,failed:0,cancelled:0}}function n6e(e){const t=new Map;for(const n of e){if(n.kind!=="subagent"||n.swarmIndex===void 0)continue;const i=n.parentToolCallId??"swarm",o=t.get(i)??[];o.push({id:n.id,agentId:n.agentId,name:n.description,subagentType:n.subagentType,model:n.model,thinkingEffort:n.thinkingEffort,phase:Rq(n),summary:n.outputPreview,outputLines:n.outputLines,text:n.text,suspendedReason:n.suspendedReason,swarmIndex:n.swarmIndex}),t.set(i,o)}return[...t.entries()].map(([n,i])=>{const o=i.toSorted((r,l)=>r.swarmIndex-l.swarmIndex||r.id.localeCompare(l.id)),s=t6e();for(const r of o)s[r.phase]++;return{id:n,members:o,counts:s}}).filter(n=>n.members.length>1).toSorted((n,i)=>{const o=n.members.at(0)?.swarmIndex??0,s=i.members.at(0)?.swarmIndex??0;return o!==s?o-s:n.id.localeCompare(i.id)})}function i6e(e){let t=0,n=0;for(const i of e){n+=i.members.length;for(const o of e6e)(o==="completed"||o==="failed"||o==="cancelled")&&(t+=i.counts[o])}return{done:t,total:n}}function o6e(e){const t=new Map;for(const n of e){if(n.kind!=="subagent"||!n.parentToolCallId)continue;const i=t.get(n.parentToolCallId)??[];i.push({id:n.id,agentId:n.agentId,name:n.description,subagentType:n.subagentType,model:n.model,thinkingEffort:n.thinkingEffort,phase:Rq(n),summary:n.outputPreview,outputLines:n.outputLines,text:n.text,suspendedReason:n.suspendedReason,swarmIndex:n.swarmIndex??Number.MAX_SAFE_INTEGER}),t.set(n.parentToolCallId,i)}for(const[n,i]of t)t.set(n,i.toSorted((o,s)=>o.swarmIndex-s.swarmIndex||o.id.localeCompare(s.id)));return t}function Tx(e){const t=e.trim();if(!t.startsWith("{"))return null;try{const n=JSON.parse(t);return n&&typeof n=="object"&&!Array.isArray(n)?n:null}catch{return null}}function Oq(e){for(const t of["path","file_path","filePath","filename"]){const n=e[t];if(typeof n=="string"&&n.length>0)return n}}const Bg=100*1024;function $q(e){const t=Sr(e.name);if(t!=="edit"&&t!=="multi_edit")return null;const n=Tx(e.arg);if(!n)return null;if(t==="edit"){if(n.replace_all===!0)return null;const l=typeof n.old_string=="string"?n.old_string:void 0,a=typeof n.new_string=="string"?n.new_string:void 0;return l===void 0||a===void 0||l.length>Bg||a.length>Bg?null:qk(l,a)}const i=Array.isArray(n.edits)?n.edits:void 0;if(!i||i.length===0)return null;const o=[];let s=0,r=0;for(const l of i){if(!l||typeof l!="object")return null;const a=l;if(a.replace_all===!0)return null;const u=typeof a.old_string=="string"?a.old_string:void 0,c=typeof a.new_string=="string"?a.new_string:void 0;if(u===void 0||c===void 0||u.length>Bg||c.length>Bg)return null;const d=qk(u,c);if(d===null)return null;o.length>0&&o.push({type:"hunk",text:"···"});for(const f of d)o.push({...f,oldNo:f.oldNo!==void 0?f.oldNo+s:void 0,newNo:f.newNo!==void 0?f.newNo+r:void 0});s+=Pu(u).length,r+=Pu(c).length}return o}const s6e=5e3;function r6e(e){if(Sr(e.name)!=="write")return null;const t=Tx(e.arg);return!t||typeof t.content!="string"||t.content.length>Bg||t.content.split(` -`).length>s6e?null:{content:t.content,path:Oq(t)}}function ZD(e){const t=Tx(e.arg);return t?Oq(t):void 0}function l6e(e){switch(e){case"running":return"running";case"completed":return"completed";case"killed":return"cancelled";default:return"failed"}}function a6e(e,t){return t==="running"?e.stateReason!==void 0?"suspended":"working":t}function u6e(e){return e==="subagent"?"subagent":e==="shell"?"bash":"tool"}function c6e(e){return Pq(e).parents}function Pq(e){const t=new Map,n=new Map;for(const i of e.items)if(i.kind==="turn")for(const o of i.steps)for(const s of o.frames)s.kind!=="tool"||s.agentRefs===void 0||s.agentRefs.forEach((r,l)=>{t.set(r.agentId,s.toolCallId),n.set(r.agentId,l)});return{parents:t,swarmIndexes:n}}function d6e(e,t,n){const i=Pq(e);let o=i.parents,s=i.swarmIndexes;if(n!==void 0){for(const[u,c]of i.parents)n.parents.set(u,c);for(const[u,c]of i.swarmIndexes)n.swarmIndexes.set(u,c);o=n.parents,s=n.swarmIndexes}const r=e.tasks.map(u=>{const c=l6e(u.state);return{id:u.taskId,agentId:u.agentId,sessionId:t,kind:u6e(u.kind),description:u.description??"",status:c,createdAt:u.startedAt??"",startedAt:u.startedAt,completedAt:u.endedAt,outputPreview:u.outputTail.length>0?u.outputTail:void 0,text:u.resultSummary,subagentPhase:u.kind==="subagent"?a6e(u,c):void 0,suspendedReason:c==="running"?u.stateReason:void 0,model:u.model,thinkingEffort:u.thinkingEffort,runInBackground:u.detached,parentToolCallId:u.agentId!==void 0?o.get(u.agentId):void 0,swarmIndex:u.agentId!==void 0?s.get(u.agentId):void 0}}),l=new Map;r.forEach((u,c)=>{u.agentId!==void 0&&u.id===u.agentId&&l.set(u.agentId,c)});const a=new Set;return r.forEach((u,c)=>{if(u.agentId===void 0||u.id===u.agentId)return;const d=l.get(u.agentId);if(d===void 0)return;const f=r[d],h=u.completedAt!==void 0&&f.startedAt!==void 0&&u.completedAt>=f.startedAt,m=f.status==="running"&&u.status!=="running"&&h;r[d]={...f,backgroundTaskId:u.status==="running"||h?u.id:void 0,status:m?u.status:f.status,subagentPhase:m?u.status==="completed"?"completed":u.status==="cancelled"?"cancelled":"failed":f.subagentPhase,description:f.description.length>0?f.description:u.description,model:f.model??u.model,thinkingEffort:f.thinkingEffort??u.thinkingEffort,completedAt:h?u.completedAt??f.completedAt:f.completedAt,outputPreview:h?f.outputPreview??u.outputPreview:f.outputPreview,text:h?f.text??u.text:f.text},a.add(c)}),r.filter((u,c)=>!a.has(c))}function f6e(){let e=[],t=null,n=null,i=null,o,s,r=!0;const l=new WeakMap,a=u=>{const{messages:c,approvals:d}=u,f=u.sessionActive??!0,h=u.planReviewByToolCallId??{},m=u.plansByToolCallId??{},g=(C,I)=>l.set(C,I);let v=n!==null;if(v){const C=n,I=Object.keys(h);v=I.length===Object.keys(C).length&&I.every(S=>h[S]===C[S])}let y=i!==null;if(y){const C=i,I=Object.keys(m);y=I.length===Object.keys(C).length&&I.every(S=>m[S]===C[S])}const b=e.length>0&&d===t&&v&&y&&u.getFileUrl===o&&u.getSessionMediaUrl===s;let A=0,w=0,M=1;if(b){let C=-1;for(let I=e.length-1;I>=0;I--)if(e[I].role==="assistant"){C=I;break}for(let I=0;I0?[...e.slice(0,A),...N]:N;return e=T,t=d,n={...h},i={...m},o=u.getFileUrl,s=u.getSessionMediaUrl,r=f,T};return a.reset=()=>{e=[],t=null,n=null,i=null,o=void 0,r=!0},a}function h6e(e){const t=new Map;let n=0;for(let i=e.length-1;i>=0;i--){const o=e[i];if(o.role==="compaction"||o.goalContinuation===!0)break;o.role==="user"&&(n++,t.set(o.id,n))}return t}const zq=["light","dark","system"],p6e=["small","medium","large","xlarge"],f5="medium",jq="kimi-web.color-scheme",bA="kimi-web.font-scale",GD="kimi-web.ui-font-size";function wA(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function Ex(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function m6e(e){try{globalThis.localStorage.removeItem(e)}catch{}}function g6e(){const e=wA(jq);return e&&zq.includes(e)?e:"system"}const Sy={light:"#ffffff",dark:"#121212"};function v6e(e){if(typeof document>"u"||!document.documentElement)return;document.documentElement.dataset.colorScheme=e;const t=document.querySelectorAll('meta[name="theme-color"]');if(t.length===0)return;const n=e==="dark"?Sy.dark:e==="light"?Sy.light:null;t.forEach(i=>{const s=(i.getAttribute("media")??"").includes("dark")?Sy.dark:Sy.light;i.setAttribute("content",n??s)})}function Hq(e){return p6e.includes(e)}function y6e(e){return e<=13?"small":e<=15?"medium":e<=17?"large":"xlarge"}function k6e(){const e=wA(bA);if(e==="xxlarge")return"xlarge";if(e!==null)return Hq(e)?e:f5;const t=wA(GD);if(t===null)return f5;const n=Number(t),i=Number.isFinite(n)?y6e(n):f5;return Ex(bA,i),m6e(GD),i}function b6e(e){typeof document>"u"||!document.documentElement||(document.documentElement.dataset.fontScale=e)}const Lx=U(g6e()),Nx=U(k6e());let QD=!1;function w6e(){QD||(QD=!0,Ue(Lx,v6e,{immediate:!0}),Ue(Nx,b6e,{immediate:!0}))}function C6e(e){zq.includes(e)&&(Lx.value=e,Ex(jq,e))}function A6e(e){Hq(e)&&(Nx.value=e,Ex(bA,e))}function wm(){return w6e(),{colorScheme:Lx,fontScale:Nx,setColorScheme:C6e,setFontScale:A6e}}const _y=U(!1);let YD=!1;function h5(){const e=document.documentElement.dataset.colorScheme;return e==="dark"?!0:e==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function x4(){return!YD&&typeof window<"u"&&typeof document<"u"&&(YD=!0,_y.value=h5(),new MutationObserver(()=>{_y.value=h5()}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-color-scheme"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{_y.value=h5()})),_y}const Wq="kimi-web.sidebar-multi-tab";function x6e(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function S6e(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function _6e(){return x6e(Wq)==="1"}const qq=U(_6e());function M6e(e){qq.value=e,S6e(Wq,e?"1":"0")}function Cm(){return{sidebarTabs:qq,setSidebarTabs:M6e}}const JD=document.createElement("i");function I6e(e){const t="&"+e+";";JD.innerHTML=t;const n=JD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zu(e,t,n,i){const o=e.length;let s=0,r;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)r=Array.from(i),r.unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);s0?(zu(e,e.length,0,t),e):t}const XD={}.hasOwnProperty;function T6e(e){const t={};let n=-1;for(;++n-1&&e.test(String.fromCharCode(n))}}function fo(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return r;function r(a){return Ei(a)?(e.enter(n),l(a)):t(a)}function l(a){return Ei(a)&&s++r))return;const T=t.events.length;let C=T,I,S;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(I){S=t.events[C][1].end;break}I=!0}for(y(i),N=T;NA;){const M=n[w];t.containerState=M[1],M[0].exit.call(t,e)}n.length=A}function b(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function j6e(e,t,n){return fo(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tF(e){if(e===null||Cl(e)||R6e(e))return 1;if(B6e(e))return 2}function Fx(e,t,n){const i=[];let o=-1;for(;++o1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};nF(d,-a),nF(f,a),r={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},s={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:a>1?"strong":"emphasis",start:{...r.start},end:{...l.end}},e[i][1].end={...r.start},e[n][1].start={...l.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ca(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ca(u,[["enter",o,t],["enter",r,t],["exit",r,t],["enter",s,t]]),u=ca(u,Fx(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=ca(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ca(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,zu(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n0&&Ei(N)?fo(e,b,"linePrefix",s+1)(N):b(N)}function b(N){return N===null||Un(N)?e.check(iF,g,w)(N):(e.enter("codeFlowValue"),A(N))}function A(N){return N===null||Un(N)?(e.exit("codeFlowValue"),b(N)):(e.consume(N),A)}function w(N){return e.exit("codeFenced"),t(N)}function M(N,T,C){let I=0;return S;function S(P){return N.enter("lineEnding"),N.consume(P),N.exit("lineEnding"),E}function E(P){return N.enter("codeFencedFence"),Ei(P)?fo(N,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):_(P)}function _(P){return P===l?(N.enter("codeFencedFenceSequence"),F(P)):C(P)}function F(P){return P===l?(I++,N.consume(P),F):I>=r?(N.exit("codeFencedFenceSequence"),Ei(P)?fo(N,q,"whitespace")(P):q(P)):C(P)}function q(P){return P===null||Un(P)?(N.exit("codeFencedFence"),T(P)):C(P)}}}function X6e(e,t,n){const i=this;return o;function o(r){return r===null?n(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}const p5={name:"codeIndented",tokenize:t7e},e7e={partial:!0,tokenize:n7e};function t7e(e,t,n){const i=this;return o;function o(u){return e.enter("codeIndented"),fo(e,s,"linePrefix",5)(u)}function s(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(u):n(u)}function r(u){return u===null?a(u):Un(u)?e.attempt(e7e,r,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Un(u)?(e.exit("codeFlowValue"),r(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function n7e(e,t,n){const i=this;return o;function o(r){return i.parser.lazy[i.now().line]?n(r):Un(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),o):fo(e,s,"linePrefix",5)(r)}function s(r){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(r):Un(r)?o(r):n(r)}}const i7e={name:"codeText",previous:s7e,resolve:o7e,tokenize:r7e};function o7e(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&hg(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),hg(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),hg(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}}function Gq(e,t,n,i,o,s,r,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(y),e.exit(s),f):y===null||y===32||y===41||CA(y)?n(y):(e.enter(i),e.enter(r),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(y))}function f(y){return y===62?(e.enter(s),e.consume(y),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(l),f(y)):y===null||y===60||Un(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function g(y){return!c&&(y===null||y===41||Cl(y))?(e.exit("chunkString"),e.exit(l),e.exit(r),e.exit(i),t(y)):c999||h===null||h===91||h===93&&!a||h===94&&!l&&"_hiddenFootnoteSupport"in r.parser.constructs?n(h):h===93?(e.exit(s),e.enter(o),e.consume(h),e.exit(o),e.exit(i),t):Un(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Un(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),a||(a=!Ei(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),l++,d):d(h)}}function Yq(e,t,n,i,o,s){let r;return l;function l(f){return f===34||f===39||f===40?(e.enter(i),e.enter(o),e.consume(f),e.exit(o),r=f===40?41:f,a):n(f)}function a(f){return f===r?(e.enter(o),e.consume(f),e.exit(o),e.exit(i),t):(e.enter(s),u(f))}function u(f){return f===r?(e.exit(s),a(r)):f===null?n(f):Un(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),fo(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===r||f===null||Un(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===r||f===92?(e.consume(f),c):c(f)}}function C0(e,t){let n;return i;function i(o){return Un(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Ei(o)?fo(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const p7e={name:"definition",tokenize:g7e},m7e={partial:!0,tokenize:v7e};function g7e(e,t,n){const i=this;let o;return s;function s(h){return e.enter("definition"),r(h)}function r(h){return Qq.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return o=Dx(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Cl(h)?C0(e,u)(h):u(h)}function u(h){return Gq(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(m7e,d,d)(h)}function d(h){return Ei(h)?fo(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Un(h)?(e.exit("definition"),i.parser.defined.push(o),t(h)):n(h)}}function v7e(e,t,n){return i;function i(l){return Cl(l)?C0(e,o)(l):n(l)}function o(l){return Yq(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Ei(l)?fo(e,r,"whitespace")(l):r(l)}function r(l){return l===null||Un(l)?t(l):n(l)}}const y7e={name:"hardBreakEscape",tokenize:k7e};function k7e(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Un(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const b7e={name:"headingAtx",resolve:w7e,tokenize:C7e};function w7e(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},zu(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function C7e(e,t,n){let i=0;return o;function o(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),r(c)}function r(c){return c===35&&i++<6?(e.consume(c),r):c===null||Cl(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||Un(c)?(e.exit("atxHeading"),t(c)):Ei(c)?fo(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Cl(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const A7e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sF=["pre","script","style","textarea"],x7e={concrete:!0,name:"htmlFlow",resolveTo:M7e,tokenize:I7e},S7e={partial:!0,tokenize:E7e},_7e={partial:!0,tokenize:T7e};function M7e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function I7e(e,t,n){const i=this;let o,s,r,l,a;return u;function u(W){return c(W)}function c(W){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(W),d}function d(W){return W===33?(e.consume(W),f):W===47?(e.consume(W),s=!0,g):W===63?(e.consume(W),o=3,i.interrupt?t:j):Su(W)?(e.consume(W),r=String.fromCharCode(W),v):n(W)}function f(W){return W===45?(e.consume(W),o=2,h):W===91?(e.consume(W),o=5,l=0,m):Su(W)?(e.consume(W),o=4,i.interrupt?t:j):n(W)}function h(W){return W===45?(e.consume(W),i.interrupt?t:j):n(W)}function m(W){const G="CDATA[";return W===G.charCodeAt(l++)?(e.consume(W),l===G.length?i.interrupt?t:_:m):n(W)}function g(W){return Su(W)?(e.consume(W),r=String.fromCharCode(W),v):n(W)}function v(W){if(W===null||W===47||W===62||Cl(W)){const G=W===47,oe=r.toLowerCase();return!G&&!s&&sF.includes(oe)?(o=1,i.interrupt?t(W):_(W)):A7e.includes(r.toLowerCase())?(o=6,G?(e.consume(W),y):i.interrupt?t(W):_(W)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(W):s?b(W):A(W))}return W===45||za(W)?(e.consume(W),r+=String.fromCharCode(W),v):n(W)}function y(W){return W===62?(e.consume(W),i.interrupt?t:_):n(W)}function b(W){return Ei(W)?(e.consume(W),b):S(W)}function A(W){return W===47?(e.consume(W),S):W===58||W===95||Su(W)?(e.consume(W),w):Ei(W)?(e.consume(W),A):S(W)}function w(W){return W===45||W===46||W===58||W===95||za(W)?(e.consume(W),w):M(W)}function M(W){return W===61?(e.consume(W),N):Ei(W)?(e.consume(W),M):A(W)}function N(W){return W===null||W===60||W===61||W===62||W===96?n(W):W===34||W===39?(e.consume(W),a=W,T):Ei(W)?(e.consume(W),N):C(W)}function T(W){return W===a?(e.consume(W),a=null,I):W===null||Un(W)?n(W):(e.consume(W),T)}function C(W){return W===null||W===34||W===39||W===47||W===60||W===61||W===62||W===96||Cl(W)?M(W):(e.consume(W),C)}function I(W){return W===47||W===62||Ei(W)?A(W):n(W)}function S(W){return W===62?(e.consume(W),E):n(W)}function E(W){return W===null||Un(W)?_(W):Ei(W)?(e.consume(W),E):n(W)}function _(W){return W===45&&o===2?(e.consume(W),O):W===60&&o===1?(e.consume(W),R):W===62&&o===4?(e.consume(W),Q):W===63&&o===3?(e.consume(W),j):W===93&&o===5?(e.consume(W),H):Un(W)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(S7e,ae,F)(W)):W===null||Un(W)?(e.exit("htmlFlowData"),F(W)):(e.consume(W),_)}function F(W){return e.check(_7e,q,ae)(W)}function q(W){return e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),P}function P(W){return W===null||Un(W)?F(W):(e.enter("htmlFlowData"),_(W))}function O(W){return W===45?(e.consume(W),j):_(W)}function R(W){return W===47?(e.consume(W),r="",z):_(W)}function z(W){if(W===62){const G=r.toLowerCase();return sF.includes(G)?(e.consume(W),Q):_(W)}return Su(W)&&r.length<8?(e.consume(W),r+=String.fromCharCode(W),z):_(W)}function H(W){return W===93?(e.consume(W),j):_(W)}function j(W){return W===62?(e.consume(W),Q):W===45&&o===2?(e.consume(W),j):_(W)}function Q(W){return W===null||Un(W)?(e.exit("htmlFlowData"),ae(W)):(e.consume(W),Q)}function ae(W){return e.exit("htmlFlow"),t(W)}}function T7e(e,t,n){const i=this;return o;function o(r){return Un(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s):n(r)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}function E7e(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(S4,t,n)}}const L7e={name:"htmlText",tokenize:N7e};function N7e(e,t,n){const i=this;let o,s,r;return l;function l(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),a}function a(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),M):j===63?(e.consume(j),A):Su(j)?(e.consume(j),C):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),s=0,m):Su(j)?(e.consume(j),b):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),f):Un(j)?(r=d,R(j)):(e.consume(j),d)}function f(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?O(j):j===45?f(j):d(j)}function m(j){const Q="CDATA[";return j===Q.charCodeAt(s++)?(e.consume(j),s===Q.length?g:m):n(j)}function g(j){return j===null?n(j):j===93?(e.consume(j),v):Un(j)?(r=g,R(j)):(e.consume(j),g)}function v(j){return j===93?(e.consume(j),y):g(j)}function y(j){return j===62?O(j):j===93?(e.consume(j),y):g(j)}function b(j){return j===null||j===62?O(j):Un(j)?(r=b,R(j)):(e.consume(j),b)}function A(j){return j===null?n(j):j===63?(e.consume(j),w):Un(j)?(r=A,R(j)):(e.consume(j),A)}function w(j){return j===62?O(j):A(j)}function M(j){return Su(j)?(e.consume(j),N):n(j)}function N(j){return j===45||za(j)?(e.consume(j),N):T(j)}function T(j){return Un(j)?(r=T,R(j)):Ei(j)?(e.consume(j),T):O(j)}function C(j){return j===45||za(j)?(e.consume(j),C):j===47||j===62||Cl(j)?I(j):n(j)}function I(j){return j===47?(e.consume(j),O):j===58||j===95||Su(j)?(e.consume(j),S):Un(j)?(r=I,R(j)):Ei(j)?(e.consume(j),I):O(j)}function S(j){return j===45||j===46||j===58||j===95||za(j)?(e.consume(j),S):E(j)}function E(j){return j===61?(e.consume(j),_):Un(j)?(r=E,R(j)):Ei(j)?(e.consume(j),E):I(j)}function _(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),o=j,F):Un(j)?(r=_,R(j)):Ei(j)?(e.consume(j),_):(e.consume(j),q)}function F(j){return j===o?(e.consume(j),o=void 0,P):j===null?n(j):Un(j)?(r=F,R(j)):(e.consume(j),F)}function q(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Cl(j)?I(j):(e.consume(j),q)}function P(j){return j===47||j===62||Cl(j)?I(j):n(j)}function O(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function R(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),z}function z(j){return Ei(j)?fo(e,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):H(j)}function H(j){return e.enter("htmlTextData"),r(j)}}const Bx={name:"labelEnd",resolveAll:R7e,resolveTo:O7e,tokenize:$7e},D7e={tokenize:P7e},F7e={tokenize:z7e},B7e={tokenize:j7e};function R7e(e){let t=-1;const n=[];for(;++t=3&&(u===null||Un(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===o?(e.consume(u),i++,a):(e.exit("thematicBreakSequence"),Ei(u)?fo(e,l,"whitespace")(u):l(u))}}const ll={continuation:{tokenize:Y7e},exit:X7e,name:"list",tokenize:Q7e},Z7e={partial:!0,tokenize:exe},G7e={partial:!0,tokenize:J7e};function Q7e(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,r=0;return l;function l(h){const m=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:AA(h)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(k9,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return AA(h)&&++r<10?(e.consume(h),a):(!i.interrupt||r<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(S4,i.interrupt?n:c,e.attempt(Z7e,f,d))}function c(h){return i.containerState.initialBlankLine=!0,s++,f(h)}function d(h){return Ei(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Y7e(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(S4,o,s);function o(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,fo(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!Ei(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(G7e,t,r)(l))}function r(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,fo(e,e.attempt(ll,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function J7e(e,t,n){const i=this;return fo(e,o,"listItemIndent",i.containerState.size+1);function o(s){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(s):n(s)}}function X7e(e){e.exit(this.containerState.type)}function exe(e,t,n){const i=this;return fo(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const r=i.events[i.events.length-1];return!Ei(s)&&r&&r[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const rF={name:"setextUnderline",resolveTo:txe,tokenize:nxe};function txe(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const r={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",r,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=r,e.push(["exit",r,t]),e}function nxe(e,t,n){const i=this;let o;return s;function s(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),o=u,r(u)):n(u)}function r(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Ei(u)?fo(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||Un(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ixe={tokenize:oxe};function oxe(e){const t=this,n=e.attempt(S4,i,e.attempt(this.parser.constructs.flowInitial,o,fo(e,e.attempt(this.parser.constructs.flow,o,e.attempt(u7e,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sxe={resolveAll:Xq()},rxe=Jq("string"),lxe=Jq("text");function Jq(e){return{resolveAll:Xq(e==="text"?axe:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,r,l);return r;function r(c){return u(c)?s(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const d=o[c];let f=-1;if(d)for(;++f-1){const l=r[0];typeof l=="string"?r[0]=l.slice(i):r.shift()}s>0&&r.push(e[o].slice(0,s))}return r}function wxe(e,t){let n=-1;const i=[];let o;for(;++n>1}};Gs.from=function(e){if(e instanceof Gs)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Gs(t)};function eU(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(i),s=t.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){let r=o.text,l=s.text,a=0;for(;r[a]==l[a];a++)n++;return a&&a0&&f>0&&u[d-1]==c[f-1];)d--,f--,n--,i--;return d&&f&&d=56320&&e<57344}function iU(e){return e>=55296&&e<56320}class nn{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;it&&i(a,o+l,s||null,r)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,n-c),i,o+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,o){let s="",r=!0;return this.nodesBetween(t,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&i&&(r?r=!1:s+=i),s+=u},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);st)for(let s=0,r=0;rt&&((rn)&&(l.isText?l=l.cut(Math.max(0,t-r),Math.min(l.text.length,n-r)):l=l.cut(Math.max(0,t-r-1),Math.min(l.content.size,n-r-1))),i.push(l),o+=l.nodeSize),r=a}return new nn(i,o)}cutByIndex(t,n){return t==n?nn.empty:t==0&&n==this.content.length?this:new nn(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[t]=n,new nn(o,s)}addToStart(t){return new nn([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new nn(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=t)return s==t?My(n+1,s):My(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return nn.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return nn.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return nn.empty;let n,i=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;ni.type.rank-o.type.rank),n}}Pi.none=[];class av extends Error{}class mn{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=sU(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return i&&new mn(i,this.openStart,this.openEnd)}removeBetween(t,n){return new mn(oU(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return mn.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new mn(nn.fromJSON(t,n.content),i,o)}static maxOpen(t,n=!0){let i=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new mn(t,i,o)}}mn.empty=new mn(nn.empty,0,0);function oU(e,t,n){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i),{index:r,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(r).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=r)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(oU(s.content,t-o-1,n-o-1)))}function sU(e,t,n,i,o,s){let{index:r,offset:l}=e.findIndex(t),a=e.maybeChild(r);if(l==t||a.isText)return s&&i<=0&&o<=0&&!s.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=sU(a.content,t-l-1,n,r==0?i-1:0,r==e.childCount-1?o-1:0,a);return u&&e.replaceChild(r,a.copy(u))}function Sxe(e,t,n){if(n.openStart>e.depth)throw new av("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new av("Inconsistent open depths");return rU(e,t,n,0)}function rU(e,t,n,i){let o=e.index(i),s=e.node(i);if(o==t.index(i)&&i=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function A0(e,t,n,i){let o=(t||e).node(n),s=0,r=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(_h(e.nodeAfter,i),s++));for(let l=s;lo&&SA(e,t,o+1),r=i.depth>o&&SA(n,i,o+1),l=[];return A0(null,e,o,l),s&&r&&t.index(o)==n.index(o)?(lU(s,r),_h(Mh(s,aU(e,t,n,i,o+1)),l)):(s&&_h(Mh(s,Vk(e,t,o+1)),l),A0(t,n,o,l),r&&_h(Mh(r,Vk(n,i,o+1)),l)),A0(i,null,o,l),new nn(l)}function Vk(e,t,n){let i=[];if(A0(null,e,n,i),e.depth>n){let o=SA(e,t,n+1);_h(Mh(o,Vk(e,t,n+1)),i)}return A0(t,null,n,i),new nn(i)}function _xe(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy(nn.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class uv{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=t.child(n);return i?t.child(n).cut(i):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new Txe(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let r=t;;){let{index:l,offset:a}=r.content.findIndex(s),u=s-a;if(i.push(r,l,o+a),!u||(r=r.child(l),r.isText))break;s=u-1,o+=a+1}return new uv(n,i,s)}static resolveCached(t,n){let i=aF.get(t);if(i)for(let s=0;st&&this.nodesBetween(t,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),uU(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=nn.empty,o=0,s=i.childCount){let r=this.contentMatchAt(t).matchFragment(i,o,s),l=r&&r.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let o=nn.fromJSON(t,n.content),s=t.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};Ih.prototype.text=void 0;class Kk extends Ih{constructor(t,n,i,o){if(super(t,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):uU(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Kk(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Kk(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function uU(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Wh{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new Lxe(t,n);if(i.next==null)return Wh.empty;let o=cU(i);i.next&&i.err("Unexpected trailing text");let s=$xe(Oxe(o));return Pxe(s,i),s}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let o=0;o{let s=o+(i.validEnd?"*":" ")+" ";for(let r=0;r"+t.indexOf(i.next[r].next);return s}).join(` -`)}}Wh.empty=new Wh(!0);class Lxe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function cU(e){let t=[];do t.push(Nxe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Nxe(e){let t=[];do t.push(Dxe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Dxe(e){let t=Rxe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Fxe(e,t);else break;return t}function uF(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Fxe(e,t){let n=uF(e),i=n;return e.eat(",")&&(e.next!="}"?i=uF(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function Bxe(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let o=[];for(let s in n){let r=n[s];r.isInGroup(t)&&o.push(r)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function Rxe(e){if(e.eat("(")){let t=cU(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=Bxe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Oxe(e){let t=[[]];return o(s(e,0),n()),t;function n(){return t.push([])-1}function i(r,l,a){let u={term:a,to:l};return t[r].push(u),u}function o(r,l){r.forEach(a=>a.to=l)}function s(r,l){if(r.type=="choice")return r.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(r.type=="seq")for(let a=0;;a++){let u=s(r.exprs[a],l);if(a==r.exprs.length-1)return u;o(u,l=n())}else if(r.type=="star"){let a=n();return i(l,a),o(s(r.expr,a),a),[i(a)]}else if(r.type=="plus"){let a=n();return o(s(r.expr,l),a),o(s(r.expr,a),a),[i(a)]}else{if(r.type=="opt")return[i(l)].concat(s(r.expr,l));if(r.type=="range"){let a=l;for(let u=0;u{e[r].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=t[i.join(",")]=new Wh(i.indexOf(e.length-1)>-1);for(let r=0;r-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:hU(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ih(this,this.computeAttrs(t),nn.from(n),Pi.setFrom(i))}createChecked(t=null,n,i){return n=nn.from(n),this.checkContent(n),new Ih(this,this.computeAttrs(t),n,Pi.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=nn.from(n),n.size){let r=this.contentMatch.fillBefore(n);if(!r)return null;n=r.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(nn.empty,!0);return s?new Ih(this,t,n.append(s),Pi.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;ni[s]=new gU(s,n,r));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function zxe(e,t,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${s}`)}}class jxe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?zxe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class _4{constructor(t,n,i,o){this.name=t,this.rank=n,this.schema=i,this.spec=o,this.attrs=mU(t,o.attrs),this.excluded=null;let s=fU(this.attrs);this.instance=s?new Pi(this,s):null}create(t=null){return!t&&this.instance?this.instance:new Pi(this,hU(this.attrs,t))}static compile(t,n){let i=Object.create(null),o=0;return t.forEach((s,r)=>i[s]=new _4(s,o++,n,r)),i}removeFromSet(t){for(var n=0;n-1}}class Hxe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=Gs.from(t.nodes),n.marks=Gs.from(t.marks||{}),this.nodes=dF.compile(this.spec.nodes,this),this.marks=_4.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],r=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=i[r]||(i[r]=Wh.parse(r,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?fF(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],r=s.spec.excludes;s.excluded=r==null?[s]:r==""?[]:fF(this,r.split(" "))}this.nodeFromJSON=o=>Ih.fromJSON(this,o),this.markFromJSON=o=>Pi.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof dF){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,o)}text(t,n){let i=this.nodes.text;return new Kk(i,i.defaultAttrs,t,Pi.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function fF(e,t){let n=[];for(let i=0;i-1)&&n.push(r=a)}if(!r)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function Wxe(e){return e.tag!=null}function qxe(e){return e.style!=null}let vU=class MA{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(Wxe(o))this.tags.push(o);else if(qxe(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=t.nodes[o.node];return s.contentMatch.matchType(s)})}parse(t,n={}){let i=new pF(this,n,!1);return i.addAll(t,Pi.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new pF(this,n,!0);return i.addAll(t,Pi.none,n.from,n.to),mn.maxOpen(i.finish())}matchTag(t,n,i){for(let o=i?this.tags.indexOf(i)+1:0;ot.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(r.getAttrs){let a=r.getAttrs(n);if(a===!1)continue;r.attrs=a||void 0}return r}}}static schemaRules(t){let n=[];function i(o){let s=o.priority==null?50:o.priority,r=0;for(;r{i(r=mF(r)),r.mark||r.ignore||r.clearMark||(r.mark=o)})}for(let o in t.nodes){let s=t.nodes[o].spec.parseDOM;s&&s.forEach(r=>{i(r=mF(r)),r.node||r.ignore||r.mark||(r.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new MA(t,MA.schemaRules(t)))}};const yU={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Uxe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},kU={ol:!0,ul:!0},cv=1,IA=2,x0=4;function hF(e,t,n){return t!=null?(t?cv:0)|(t==="full"?IA:0):e&&e.whitespace=="pre"?cv|IA:n&~x0}class Iy{constructor(t,n,i,o,s,r){this.type=t,this.attrs=n,this.marks=i,this.solid=o,this.options=r,this.content=[],this.activeMarks=Pi.none,this.match=s||(r&x0?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(nn.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(t.type))?(this.match=i,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&cv)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=nn.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(nn.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!yU.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class pF{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,r=hF(null,n.preserveWhitespace,0)|(i?x0:0);o?s=new Iy(o.type,o.attrs,Pi.none,!0,n.topMatch||o.type.contentMatch,r):i?s=new Iy(null,null,Pi.none,!0,null,r):s=new Iy(t.schema.topNodeType,null,Pi.none,!0,null,r),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,o=this.top,s=o.options&IA?"full":this.localPreserveWS||(o.options&cv)>0,{schema:r}=this.parser;if(s==="full"||o.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` -`);else if(r.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(r.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(t,n,i,o){let s,r;if(n.node)if(r=this.parser.schema.nodes[n.node],r.isLeaf)this.insertNode(r.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let a=this.enter(r,n.attrs||null,i,n.preserveWhitespace);a&&(s=!0,i=a)}else{let a=this.parser.schema.marks[n.mark];i=i.concat(a.create(n.attrs))}let l=this.top;if(r&&r.isLeaf)this.findInside(t);else if(o)this.addElement(t,i,o);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,i,!1));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a,i),this.findAround(t,a,!1)}s&&this.sync(l)&&this.open--}addAll(t,n,i,o){let s=i||0;for(let r=i?t.childNodes[i]:t.firstChild,l=o==null?null:t.childNodes[o];r!=l;r=r.nextSibling,++s)this.findAtPoint(t,s),this.addDOM(r,n);this.findAtPoint(t,s)}findPlace(t,n,i){let o,s;for(let r=this.open,l=0;r>=0;r--){let a=this.nodes[r],u=a.findWrapping(t);if(u&&(!o||o.length>u.length+l)&&(o=u,s=a,!u.length))break;if(a.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let r=0;r(r.type?r.type.allowsMarkType(u.type):gF(u.type,t))?(a=u.addToSet(a),!1):!0),this.nodes.push(new Iy(t,n,a,o,null,l)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=cv)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)t+=i[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),r=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(r(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:i&&a>=s?i.node(a-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return r(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function Vxe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&kU.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function Kxe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function mF(e){let t={};for(let n in e)t[n]=e[n];return t}function gF(e,t){let n=t.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],r=l=>{s.push(l);for(let a=0;a{if(s.length||r.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(t.marks[o],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,n,i={}){let o=this.marks[t.type.name];return o&&b9(Ty(i),o(t,n),null,t.attrs)}static renderSpec(t,n,i=null,o){return typeof n=="string"?{dom:t.createTextNode(n)}:b9(t,n,i,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Fu(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=vF(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return vF(t.marks)}}function vF(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function Ty(e){return e.document||window.document}const yF=new WeakMap;function Zxe(e){let t=yF.get(e);return t===void 0&&yF.set(e,t=Gxe(e)),t}function Gxe(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let r=o.indexOf(" ");r>0&&(n=o.slice(0,r),o=o.slice(r+1));let l,a=n?e.createElementNS(n,o):e.createElement(o),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):d=="style"&&a.style?a.style.cssText=u[d]:a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(e.createTextNode(f));else{let{dom:h,contentDOM:m}=b9(e,f,n,i);if(a.appendChild(h),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:a,contentDOM:l}}const bU=65535,wU=Math.pow(2,16);function Qxe(e,t){return e+t*wU}function kF(e){return e&bU}function Yxe(e){return(e-(e&bU))/wU}const CU=1,AU=2,w9=4,xU=8;class TA{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&xU)>0}get deletedBefore(){return(this.delInfo&(CU|w9))>0}get deletedAfter(){return(this.delInfo&(AU|w9))>0}get deletedAcross(){return(this.delInfo&w9)>0}}class Ol{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Ol.empty)return Ol.empty}recover(t){let n=0,i=kF(t);if(!this.inverted)for(let o=0;ot)break;let u=this.ranges[l+s],c=this.ranges[l+r],d=a+u;if(t<=d){let f=u?t==a?-1:t==d?1:n:n,h=a+o+(f<0?0:c);if(i)return h;let m=t==(n<0?a:d)?null:Qxe(l/3,t-a),g=t==a?AU:t==d?CU:w9;return(n<0?t!=a:t!=d)&&(g|=xU),new TA(h,g,m)}o+=c-u}return i?t+o:new TA(t+o,0,null)}touches(t,n){let i=0,o=kF(n),s=this.inverted?2:1,r=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+s],c=a+u;if(t<=c&&l==o*3)return!0;i+=this.ranges[l+r]-u}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o=0;n--){let o=t.getMirror(n);this.appendMap(t._maps[n].invert(),o!=null&&o>n?i-o-1:void 0)}}invert(){let t=new dv;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let i=this.from;is&&a!r.isAtom||!l.type.allowsMarkType(this.mark.type)?r:r.mark(this.mark.addToSet(r.marks)),o),n.openStart,n.openEnd);return ds.fromReplace(t,this.from,this.to,s)}invert(){return new Tu(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new kd(n.pos,i.pos,this.mark)}merge(t){return t instanceof kd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new kd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new kd(n.from,n.to,t.markFromJSON(n.mark))}}_r.jsonID("addMark",kd);class Tu extends _r{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new mn(Rx(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return ds.fromReplace(t,this.from,this.to,i)}invert(){return new kd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Tu(n.pos,i.pos,this.mark)}merge(t){return t instanceof Tu&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Tu(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Tu(n.from,n.to,t.markFromJSON(n.mark))}}_r.jsonID("removeMark",Tu);class bd extends _r{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ds.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ds.fromReplace(t,this.pos,this.pos+1,new mn(nn.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;oi.pos?null:new ql(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ql(n.from,n.to,n.gapFrom,n.gapTo,mn.fromJSON(t,n.slice),n.insert,!!n.structure)}}_r.jsonID("replaceAround",ql);function EA(e,t,n){let i=e.resolve(t),o=n-t,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let r=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function Jxe(e,t,n,i){let o=[],s=[],r,l;e.doc.nodesBetween(t,n,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!i.isInSet(d)&&c.type.allowsMarkType(i.type)){let f=Math.max(u,t),h=Math.min(u+a.nodeSize,n),m=i.addToSet(d);for(let g=0;ge.step(a)),s.forEach(a=>e.step(a))}function Xxe(e,t,n,i){let o=[],s=0;e.doc.nodesBetween(t,n,(r,l)=>{if(!r.isInline)return;s++;let a=null;if(i instanceof _4){let u=r.marks,c;for(;c=i.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else i?i.isInSet(r.marks)&&(a=[i]):a=r.marks;if(a&&a.length){let u=Math.min(l+r.nodeSize,n);for(let c=0;ce.step(new Tu(r.from,r.to,r.style)))}function Ox(e,t,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),r=[],l=t+1;for(let a=0;a=0;a--)e.step(r[a])}function eSe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $x(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let i=e.depth,o=0,s=0;;--i){let r=e.$from.node(i),l=e.$from.index(i)+o,a=e.$to.indexAfter(i)-s;if(in;m--)g||i.index(m)>0?(g=!0,c=nn.from(i.node(m).copy(c)),d++):a--;let f=nn.empty,h=0;for(let m=s,g=!1;m>n;m--)g||o.after(m+1)=0;r--){if(i.size){let l=n[r].type.contentMatch.matchFragment(i);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=nn.from(n[r].type.create(n[r].attrs,i))}let o=t.start,s=t.end;e.step(new ql(o,s,o,s,new mn(i,0,0),n.length,!0))}function iSe(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(r,l)=>{let a=typeof o=="function"?o(r):o;if(r.isTextblock&&!r.hasMarkup(i,a)&&oSe(e.doc,e.mapping.slice(s).map(l),i)){let u=null;if(i.schema.linebreakReplacement){let h=i.whitespace=="pre",m=!!i.contentMatch.matchType(i.schema.linebreakReplacement);h&&!m?u=!1:!h&&m&&(u=!0)}u===!1&&_U(e,r,l,s),Ox(e,e.mapping.slice(s).map(l,1),i,void 0,u===null);let c=e.mapping.slice(s),d=c.map(l,1),f=c.map(l+r.nodeSize,1);return e.step(new ql(d,f,d+1,f-1,new mn(nn.from(i.create(a,null,r.marks)),0,0),1,!0)),u===!0&&SU(e,r,l,s),!1}})}function SU(e,t,n,i){t.forEach((o,s)=>{if(o.isText){let r,l=/\r?\n|\r/g;for(;r=l.exec(o.text);){let a=e.mapping.slice(i).map(n+1+s+r.index);e.replaceWith(a,a+1,t.type.schema.linebreakReplacement.create())}}})}function _U(e,t,n,i){t.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let r=e.mapping.slice(i).map(n+1+s);e.replaceWith(r,r+1,t.type.schema.text(` -`))}})}function oSe(e,t,n){let i=e.resolve(t),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}function sSe(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let r=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,r);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ql(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new mn(nn.from(r),0,0),1,!0))}function C9(e,t,n=1,i){let o=e.resolve(t),s=o.depth-n,r=i&&i[i.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!r.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,c=n-2;u>s;u--,c--){let d=o.node(u),f=o.index(u);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),m=i&&i[c+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let g=i&&i[c]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(s),a=i&&i[0];return o.node(s).canReplaceWith(l,l,a?a.type:o.node(s+1).type)}function rSe(e,t,n=1,i){let o=e.doc.resolve(t),s=nn.empty,r=nn.empty;for(let l=o.depth,a=o.depth-n,u=n-1;l>a;l--,u--){s=nn.from(o.node(l).copy(s));let c=i&&i[u];r=nn.from(c?c.type.create(c.attrs,r):o.node(l).copy(r))}e.step(new $s(t,t,new mn(s.append(r),n,n),!0))}function MU(e,t){let n=e.resolve(t),i=n.index();return aSe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function lSe(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let o=0;o=0;o--){let s=i.index(o);if(i.node(o).canReplaceWith(s,s,n))return i.before(o+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let s=i.indexAfter(o);if(i.node(o).canReplaceWith(s,s,n))return i.after(o+1);if(s=0;r--){let l=r==i.depth?0:i.pos<=(i.start(r+1)+i.end(r+1))/2?-1:1,a=i.index(r)+(l>0?1:0),u=i.node(r),c=!1;if(s==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?i.pos:l<0?i.before(r+1):i.after(r+1)}return null}function Px(e,t,n=t,i=mn.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return IU(o,s,i)?new $s(t,n,i):new fSe(o,s,i).fit()}function IU(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class fSe{constructor(t,n,i){this.$from=t,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=nn.empty;for(let o=0;o<=t.depth;o++){let s=t.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(t.indexAfter(o))})}for(let o=t.depth;o>0;o--)this.placed=nn.from(t.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(t<0?this.$to:i.doc.resolve(t));if(!o)return null;let s=this.placed,r=i.depth,l=o.depth;for(;r&&l&&s.childCount==1;)s=s.firstChild.content,r--,l--;let a=new mn(s,r,l);return t>-1?new ql(i.pos,t,this.$to.pos,this.$to.end(),a,n):a.size||i.pos!=this.$to.pos?new $s(i.pos,o.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,o=this.unplaced.openEnd;i1&&(o=0),s.type.spec.isolating&&o<=i){t=i;break}n=s.content}for(let n=1;n<=2;n++)for(let i=n==1?t:this.unplaced.openStart;i>=0;i--){let o,s=null;i?(s=y5(this.unplaced.content,i-1).firstChild,o=s.content):o=this.unplaced.content;let r=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(n==1&&(r?u.matchType(r.type)||(d=u.fillBefore(nn.from(r),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:l,parent:s,inject:d};if(n==2&&r&&(c=u.findWrapping(r.type)))return{sliceDepth:i,frontierDepth:l,parent:s,wrap:c};if(s&&u.matchType(s.type))break}}}openMore(){let{content:t,openStart:n,openEnd:i}=this.unplaced,o=y5(t,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new mn(t,n+1,Math.max(i,o.size+n>=t.size-i?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:i}=this.unplaced,o=y5(t,n);if(o.childCount<=1&&n>0){let s=t.size-n<=n+o.size;this.unplaced=new mn(Rg(t,n-1,1),n-1,s?n-1:i)}else this.unplaced=new mn(Rg(t,n,1),n,i)}placeNodes({sliceDepth:t,frontierDepth:n,parent:i,inject:o,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let g=0;g1||a==0||g.content.size)&&(d=v,c.push(TU(g.mark(f.allowedMarks(g.marks)),u==1?a:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=Og(this.placed,n,nn.from(c)),this.frontier[n].match=d,m&&h<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=l;g1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:i,type:o}=this.frontier[n],s=n=0;l--){let{match:a,type:u}=this.frontier[l],c=k5(t,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:n,fit:r,move:s?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Og(this.placed,n.depth,n.fit)),t=n.move;for(let i=n.depth+1;i<=t.depth;i++){let o=t.node(i),s=o.type.contentMatch.fillBefore(o.content,!0,t.index(i));this.openFrontierNode(o.type,o.attrs,s)}return t}openFrontierNode(t,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=Og(this.placed,this.depth,nn.from(t.create(n,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(nn.empty,!0);n.childCount&&(this.placed=Og(this.placed,this.frontier.length,n))}}function Rg(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Rg(e.firstChild.content,t-1,n)))}function Og(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Og(e.lastChild.content,t-1,n)))}function y5(e,t){for(let n=0;n1&&(i=i.replaceChild(0,TU(i.firstChild,t-1,i.childCount==1?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(nn.empty,!0)))),e.copy(i)}function k5(e,t,n,i,o){let s=e.node(t),r=o?e.indexAfter(t):e.index(t);if(r==s.childCount&&!n.compatibleContent(s.type))return null;let l=i.fillBefore(s.content,!0,r);return l&&!hSe(n,s.content,r)?l:null}function hSe(e,t,n){for(let i=n;i0;f--,h--){let m=o.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;r.indexOf(f)>-1?l=f:o.before(f)==h&&r.splice(1,0,-f)}let a=r.indexOf(l),u=[],c=i.openStart;for(let f=i.content,h=0;;h++){let m=f.firstChild;if(u.push(m),h==i.openStart)break;f=m.content}for(let f=c-1;f>=0;f--){let h=u[f],m=pSe(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))c=f;else if(m||!h.type.isTextblock)break}for(let f=i.openStart;f>=0;f--){let h=(f+c+1)%(i.openStart+1),m=u[h];if(m)for(let g=0;g=0&&(e.replace(t,n,i),!(e.steps.length>d));f--){let h=r[f];h<0||(t=o.before(h),n=s.after(h))}}function EU(e,t,n,i,o){if(ti){let s=o.contentMatchAt(0),r=s.fillBefore(e).append(e);e=r.append(s.matchFragment(r).fillBefore(nn.empty,!0))}return e}function gSe(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=cSe(e.doc,t,i.type);o!=null&&(t=n=o)}e.replaceRange(t,n,new mn(nn.from(i),0,0))}function vSe(e,t,n){let i=e.doc.resolve(t),o=e.doc.resolve(n);if(i.parent.isTextblock&&o.parent.isTextblock&&i.start()!=o.start()&&i.parentOffset==0&&o.parentOffset==0){let r=i.sharedDepth(n),l=!1;for(let a=i.depth;a>r;a--)i.node(a).type.spec.isolating&&(l=!0);for(let a=o.depth;a>r;a--)o.node(a).type.spec.isolating&&(l=!0);if(!l){for(let a=i.depth;a>0&&t==i.start(a);a--)t=i.before(a);for(let a=o.depth;a>0&&n==o.start(a);a--)n=o.before(a);i=e.doc.resolve(t),o=e.doc.resolve(n)}}let s=LU(i,o);for(let r=0;r0&&(a||i.node(l-1).canReplace(i.index(l-1),o.indexAfter(l-1))))return e.delete(i.before(l),o.after(l))}for(let r=1;r<=i.depth&&r<=o.depth;r++)if(t-i.start(r)==i.depth-r&&n>i.end(r)&&o.end(r)-n!=o.depth-r&&i.start(r-1)==o.start(r-1)&&i.node(r-1).canReplace(i.index(r-1),o.index(r-1)))return e.delete(i.before(r),n);e.delete(t,n)}function LU(e,t){let n=[],i=Math.min(e.depth,t.depth);for(let o=i;o>=0;o--){let s=e.start(o);if(st.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(s==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==s-1)&&n.push(o)}return n}class E1 extends _r{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return ds.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return ds.fromReplace(t,this.pos,this.pos+1,new mn(nn.from(o),0,n.isLeaf?0:1))}getMap(){return Ol.empty}invert(t){return new E1(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new E1(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new E1(n.pos,n.attr,n.value)}}_r.jsonID("attr",E1);class fv extends _r{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return ds.ok(i)}getMap(){return Ol.empty}invert(t){return new fv(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new fv(n.attr,n.value)}}_r.jsonID("docAttr",fv);let Y1=class extends Error{};Y1=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Y1.prototype=Object.create(Error.prototype);Y1.prototype.constructor=Y1;Y1.prototype.name="TransformError";class ySe{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new dv}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Y1(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let i=0;i{t=Math.min(t,l),n=Math.max(n,a)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,i=mn.empty){let o=Px(this.doc,t,n,i);return o&&this.step(o),this}replaceWith(t,n,i){return this.replace(t,n,new mn(nn.from(i),0,0))}delete(t,n){return this.replace(t,n,mn.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,i){return mSe(this,t,n,i),this}replaceRangeWith(t,n,i){return gSe(this,t,n,i),this}deleteRange(t,n){return vSe(this,t,n),this}lift(t,n){return tSe(this,t,n),this}join(t,n=1){return uSe(this,t,n),this}wrap(t,n){return nSe(this,t,n),this}setBlockType(t,n=t,i,o=null){return iSe(this,t,n,i,o),this}setNodeMarkup(t,n,i=null,o){return sSe(this,t,n,i,o),this}setNodeAttribute(t,n,i){return this.step(new E1(t,n,i)),this}setDocAttribute(t,n){return this.step(new fv(t,n)),this}addNodeMark(t,n){return this.step(new bd(t,n)),this}removeNodeMark(t,n){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(n instanceof Pi)n.isInSet(i.marks)&&this.step(new qh(t,n));else{let o=i.marks,s,r=[];for(;s=n.isInSet(o);)r.push(new qh(t,s)),o=s.removeFromSet(o);for(let l=r.length-1;l>=0;l--)this.step(r[l])}return this}split(t,n=1,i){return rSe(this,t,n,i),this}addMark(t,n,i){return Jxe(this,t,n,i),this}removeMark(t,n,i){return Xxe(this,t,n,i),this}clearIncompatible(t,n,i){return Ox(this,t,n,i),this}}const b5=Object.create(null);class Vi{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new kSe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;s--){let r=n<0?Kp(t.node(0),t.node(s),t.before(s+1),t.index(s),n,i):Kp(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,n,i);if(r)return r}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Ul(t.node(0))}static atStart(t){return Kp(t,t,0,0,1)||new Ul(t)}static atEnd(t){return Kp(t,t,t.content.size,t.childCount,-1)||new Ul(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=b5[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in b5)throw new RangeError("Duplicate use of selection JSON ID "+t);return b5[t]=n,n.prototype.jsonID=t,n}getBookmark(){return li.between(this.$anchor,this.$head).getBookmark()}}Vi.prototype.visible=!0;class kSe{constructor(t,n){this.$from=t,this.$to=n}}let bF=!1;function wF(e){!bF&&!e.parent.inlineContent&&(bF=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class li extends Vi{constructor(t,n=t){wF(t),wF(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Vi.near(i);let o=t.resolve(n.map(this.anchor));return new li(o.parent.inlineContent?o:i,i)}replace(t,n=mn.empty){if(super.replace(t,n),n==mn.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof li&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new M4(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new li(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let o=t.resolve(n);return new this(o,i==n?o:t.resolve(i))}static between(t,n,i){let o=t.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=Vi.findFrom(n,i,!0)||Vi.findFrom(n,-i,!0);if(s)n=s.$head;else return Vi.near(n,i)}return t.parent.inlineContent||(o==0?t=n:(t=(Vi.findFrom(t,-i,!0)||Vi.findFrom(t,i,!0)).$anchor,t.pos0?0:1);o>0?r=0;r+=o){let l=t.child(r);if(l.isAtom){if(!s&&Xn.isSelectable(l))return Xn.create(e,n-(o<0?l.nodeSize:0))}else{let a=Kp(e,l,n+o,o<0?l.childCount:0,o,s);if(a)return a}n+=l.nodeSize*o}return null}function CF(e,t,n){let i=e.steps.length-1;if(i{r==null&&(r=c)}),e.setSelection(Vi.near(e.doc.resolve(r),n))}const AF=1,Ey=2,xF=4;class wSe extends ySe{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ey,this}ensureMarks(t){return Pi.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ey)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Ey,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let i=this.selection;return n&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Pi.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,i){let o=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(i==null&&(i=n),!t)return this.deleteRange(n,i);let s=this.storedMarks;if(!s){let r=this.doc.resolve(n);s=i==n?r.marks():r.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,o.text(t,s)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(Vi.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=xF,this}get scrolledIntoView(){return(this.updated&xF)>0}}function SF(e,t){return!t||!e?e:e.bind(t)}class $g{constructor(t,n,i){this.name=t,this.init=SF(n.init,i),this.apply=SF(n.apply,i)}}const CSe=[new $g("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new $g("selection",{init(e,t){return e.selection||Vi.atStart(t.doc)},apply(e){return e.selection}}),new $g("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new $g("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class w5{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=CSe.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new $g(i.key,i.spec.state,i))})}}class ch{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let i=0;ii.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[i],s=o.spec.state;s&&s.toJSON&&(n[i]=s.toJSON.call(o,this[o.key]))}return n}static fromJSON(t,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new w5(t.schema,t.plugins),s=new ch(o);return o.fields.forEach(r=>{if(r.name=="doc")s.doc=Ih.fromJSON(t.schema,n.doc);else if(r.name=="selection")s.selection=Vi.fromJSON(s.doc,n.selection);else if(r.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let l in i){let a=i[l],u=a.spec.state;if(a.key==r.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[r.name]=u.fromJSON.call(a,t,n[l],s);return}}s[r.name]=r.init(t,s)}}),s}}function NU(e,t,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(t):i=="handleDOMEvents"&&(o=NU(o,t,{})),n[i]=o}return n}class Am{constructor(t){this.spec=t,this.props={},t.props&&NU(t.props,this,this.props),this.key=t.key?t.key.key:DU("plugin")}getState(t){return t[this.key]}}const C5=Object.create(null);function DU(e){return e in C5?e+"$"+ ++C5[e]:(C5[e]=0,e+"$")}class jx{constructor(t="key"){this.key=DU(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const LA=` - - - - -`,FU=` - - - - -`,BU='',RU=` - - - -`,OU=` - - -`,$U='',PU=` - - -`,zU=` - - -`,jU=` - - -`,ASe='',xSe='',SSe='',_Se='',MSe='',ISe={sm:14,md:16,lg:20},TSe={file:LA,folder:FU,skill:BU,copy:RU,check:OU,"external-link":$U,target:PU,"file-edit":zU,close:jU,attachment:ASe,image:xSe,video:SSe,fullscreen:_Se,quote:MSe};function Zr(e,t="md"){const n=ISe[t];return TSe[e].replace(/]*>/,i=>i.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^
          ([\s\S]*?)<\/summary>/,Xre=/([\s\S]*?)<\/resume_hint>/,f3=/]*)>|<\/subagent>/g,ele="",xS=/(completed|failed|aborted):\s*(\d+)/g,SS=/([a-z_]+)="([^"]*)"/g;function tle(e){return e.replaceAll(""",'"').replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function nle(e){const t={};SS.lastIndex=0;let n;for(;(n=SS.exec(e))!==null;)t[n[1]]=tle(n[2]);return t}function ile(e){const t={completed:0,failed:0,aborted:0};xS.lastIndex=0;let n;for(;(n=xS.exec(e))!==null;){const i=n[1];t[i]=Number(n[2])}return t}function ole(e,t){const n=nle(e);return{outcome:n.outcome??"completed",item:n.item,agentId:n.agent_id,mode:n.mode,state:n.state,body:t.trim()}}function sle(e){const t=[],n=[];f3.lastIndex=0;let i;for(;(i=f3.exec(e))!==null;)if(i[0]===ele){if(n.length===0)continue;const o=n.pop();o&&n.length===0&&t.push(ole(o.attrs,e.slice(o.bodyStart,i.index)))}else n.length===0?n.push({attrs:i[1]??"",bodyStart:f3.lastIndex}):n.push(null);return t}function rle(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` +`):e;if(!t.includes(""))return null;const n=Jre.exec(t)?.[1]?.trim()??"",{completed:i,failed:o,aborted:s}=ile(n),r=Xre.exec(t)?.[1]?.trim(),l=sle(t),a=i+o+s;return{summary:n,completed:i,failed:o,aborted:s,total:a>0?a:l.length,subagents:l,resumeHint:r}}const lle=3,ale="Use TaskOutput with one of the task_id values above to read the full output.";function Td(e,t){return new RegExp(`^${t}: (.+)$`,"m").exec(e)?.[1]}function ule(e,t){const n=Number(Td(e,t)??0);return Number.isFinite(n)?n:0}function NB(e,t){return e.match(t)?.length??0}function _S(e,t,n){const i=new RegExp(`^\\[${t}\\]$`,"gm"),o=[];let s;for(;(s=i.exec(e))!==null;)s.index>=n&&o.push(s.index);return o}function MS(e,t){return t>=2&&e[t-1]===` +`&&e[t-2]===` +`}function IS(e,t,n){const i=e.slice(t+n.length+2),o=/^\[/m.exec(i);return(o===null?i:i.slice(0,o.index)).trim()}function cle(e){return e.endsWith(ale)}function dle(e){const t=Td(e,"active_background_tasks");if(t===void 0)return!1;const n=Number(t);return Number.isFinite(n)?NB(e,/^task_id: /gm)===n:!1}function fle(e,t){return[...e.matchAll(/^description: (.+)$/gm)].map(i=>i[1]??"").slice(0,Math.min(lle,t))}function hle(e){if(e==null)return null;const t=Array.isArray(e)?e.join(` +`):e,n=/^\[/m.exec(t),i=n===null?t:t.slice(0,n.index),o=Td(i,"wait_status");if(o!=="completed"&&o!=="timed_out"&&o!=="no_tasks")return null;const s=Number(Td(i,"waited_ms")??0);let r,l=n?.index??t.length;o==="completed"&&n!==null&&t.slice(n.index).startsWith("[finished]")&&(r=IS(t,n.index,"finished"),l=n.index+10);let a=0,u=-1;for(const h of _S(t,"completed_during_wait",l)){if(!MS(t,h))continue;const p=IS(t,h,"completed_during_wait");cle(p)&&(a=NB(p,/^task_id: /gm),u=h)}let c=0,d=[];for(const h of _S(t,"still_running",l)){if(u>=0&&hc.replace(/\\/g,"/"),i=n(e);let o=n(t);o.length>1&&(o=o.replace(/\/+$/,""));const s=ES(o)||ES(i),r=s?o.toLowerCase():o,l=s?i.toLowerCase():i,a=r.endsWith("/")?r:`${r}/`;if(l!==r&&!l.startsWith(a))return null;const u=l===r?"":i.slice(a.length);return u.split("/").includes("..")?null:u||null}const mle=50,vle=3,FB=mle*2;function yle(e){const t=(e??[]).filter(n=>typeof n=="number"&&Number.isFinite(n)&&n>0).slice(0,2);return t.length===0?FB:Math.round(t.reduce((n,i)=>n+i,0))}function DB(e){return e==null||!Number.isFinite(e)||e<=0?FB:Math.round(e)}const jb=96;function kle(e,t,n){const i=e.filter(r=>r.visible),o=i[0],s=i[2];return{firstRowHeight:o?o.height:null,spanToThirdRow:s?s.viewportBottom-t+n:null}}function ble(e,t,n){const i=s=>s!=null&&Number.isFinite(s)&&s>0;return(s=>s!=null&&Number.isFinite(s)&&s>=0)(t)?i(e)?Math.round(e)+Math.round(t):i(n)?Math.round(n)*3+Math.round(t):jb:jb}function Ale(e){return e>vle}function TS(e){return Math.round(e*.4)}function Cle(e){return e==null||!Number.isFinite(e)||e<=0?jb:Math.round(e)}function wle(e,t,n,i){const o=DB(n),s=Cle(i),r=Math.max(o,Math.round(e*.6));if(t===void 0||!Number.isFinite(t))return r;const l=Math.round(t)-s;return Math.max(o,Math.min(r,l))}function h3(e,t,n){return t==null||!Number.isFinite(t)?e:Math.max(DB(n),Math.min(e,Math.round(t)))}function xle(e,t,n,i){return Math.max(Math.round(i),Math.min(Math.round(e+t),Math.round(n)))}function Sle(e,t){return t===null||t===e}const C2="application/x-kimi-session-row";function _le(e,t){return e.includes(t)?e:[...e,t]}function Mle(e,t){return e.includes(t)?e.filter(n=>n!==t):e}function Ile(e,t){const n=new Set(t),i=new Map,o=[];for(const r of e)n.has(r.id)?i.set(r.id,r):o.push(r);const s=[];for(const r of t){const l=i.get(r);l!==void 0&&s.push(l)}return{pinned:s,unpinned:o}}function Ele(e,t,n){return e.find(i=>i.window?.duration===t&&i.window?.unit===n)}const Tle=30;function Lle(e){return e!==void 0&&e0?(l.push(t("settings.planUsage.durationDay",{n:o})),l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):s>0?(l.push(t("settings.planUsage.durationHour",{n:s})),l.push(t("settings.planUsage.durationMinute",{n:r}))):r>0?l.push(t("settings.planUsage.durationMinute",{n:r})):l.push(t("settings.planUsage.durationSecond",{n:i})),t("settings.planUsage.resetsIn",{duration:l.join(" ")})}function Hb(e,t){if(t<=0)return"ok";const n=e/t;return n>=.85?"danger":n>=.5?"warn":"ok"}function bv(e,t){return t<=0?0:Math.min(100,Math.round(e/t*100))}function Nle(e,t){const n=(e/100).toFixed(2);switch(t.toUpperCase()){case"CNY":return{symbol:"¥",number:n};case"USD":return{symbol:"$",number:n};default:return{symbol:"",number:`${n} ${t}`}}}const Fle=["kimi","openai","openai_responses","anthropic","google-genai","vertexai"];function _m(){return{model:"",maxContextSize:"",displayName:"",capabilities:["tool_use","thinking"],supportEfforts:[],adaptiveThinking:!0}}function Wb(e,t){const n=[];for(const i of Object.values(t??{})){if(i===null||typeof i!="object")continue;const o=i;o.provider===e.id&&n.push({model:typeof o.model=="string"?o.model:"",maxContextSize:typeof o.maxContextSize=="number"?String(o.maxContextSize):"",displayName:typeof o.displayName=="string"?o.displayName:"",capabilities:Array.isArray(o.capabilities)?o.capabilities.filter(s=>typeof s=="string"):[],supportEfforts:Array.isArray(o.supportEfforts)?o.supportEfforts.filter(s=>typeof s=="string"):[],...typeof o.adaptiveThinking=="boolean"?{adaptiveThinking:o.adaptiveThinking}:{}})}return n}const RB=/^[\p{L}\p{N}][\p{L}\p{N}\-_ ]*$/u;function Dle(e,t={}){const n=e.id.trim();if(n==="")return"idRequired";if(!RB.test(n))return"idInvalid";if(t.requireApiKey===!0&&e.apiKey.trim()==="")return"apiKeyRequired";if(t.requireBaseUrl===!0&&e.baseUrl.trim()==="")return"baseUrlRequired";if(e.models.length===0)return"modelRequired";for(const i of e.models){if(i.model.trim()==="")return"modelRequired";const o=i.maxContextSize.trim();if(o==="")return"contextSizeRequired";if(!/^\d+$/.test(o)||Number(o)<1)return"contextSizeInvalid"}return null}function zB(e){return e.map(t=>{const n=t.displayName.trim();return{model:t.model.trim(),maxContextSize:Number(t.maxContextSize.trim()),...t.capabilities.length>0?{capabilities:[...t.capabilities]}:{},...t.supportEfforts.length>0?{supportEfforts:[...t.supportEfforts]}:{},...t.adaptiveThinking!==void 0?{adaptiveThinking:t.adaptiveThinking}:{},...n===""?{}:{displayName:n}}})}function Ble(e){const t=e.apiKey.trim(),n=e.baseUrl.trim();return{id:e.id.trim(),type:e.type,models:zB(e.models),...t===""?{}:{apiKey:t},...n===""?{}:{baseUrl:n}}}function $le(e,t,n){const i=zB(e.models),o=e.id.trim(),s=e.apiKey.trim(),r=e.baseUrl.trim(),l=n?.existingDefaultModel?.trim()??"",a=l.indexOf("/")>=0?l.slice(l.indexOf("/")+1):l;return{...t!==void 0&&o!==""&&o!==t.id?{newId:o}:{},type:e.type,models:i,...s===""&&n?.includeBlankApiKey!==!0?{}:{apiKey:s},...r===""?{}:{baseUrl:r},...a!==""&&i.some(u=>u.model===a)?{defaultModel:a}:{}}}function OB(e){return e.id==="managed:kimi-code"&&e.type==="kimi"}const w2="/devices/",PB="kimi-rc-device-id";function Rle(e){return new URLSearchParams(e.search).get("rc")==="1"}function jB(e){const{pathname:t}=e;if(!t.startsWith(w2))return;const n=t.slice(w2.length).split("/")[0];if(n)try{const i=decodeURIComponent(n);return i.length>0?i:void 0}catch{return}}function zle(e){if(jB({pathname:e})===void 0)return e;const t=e.slice(w2.length),n=t.indexOf("/");return n<0?"/":t.slice(n)}function Ole(e){return`${w2}${encodeURIComponent(e)}/`}function HB(e,t){const n=new URLSearchParams(t),i=n.get("rc"),o=n.get("from");if(i===null&&o===null)return e;const s=new URLSearchParams;return i!==null&&s.set("rc",i),o!==null&&s.set("from",o),`${e}?${s.toString()}`}function Ple(e){const t=jB(e);return t!==void 0?(Hle(t),t):jle()}function jle(){try{return window.sessionStorage.getItem(PB)??void 0}catch{return}}function Hle(e){try{window.sessionStorage.setItem(PB,e)}catch{}}const Wle=/^(\d+)\t(.*)$/;function qle(e){const t=e.at(-1)===""?e.slice(0,-1):e;if(t.length===0)return null;const n=[],i=[];for(const o of t){const s=Wle.exec(o);if(!s)return null;i.push(Number(s[1])),n.push(s[2]??"")}return{contents:n,lineNumbers:i}}function LS(e,t){let n="",i=t;const o=/^((?:\\\\|\/\/)[^\\/]+[\\/][^\\/]+)/.exec(t),s=/^([a-zA-Z]:)[\\/]?/.exec(t);o?(n=o[1],i=t.slice(o[1].length)):t.startsWith("/")?(n="/",i=t.slice(1)):s&&(n=s[1],i=t.slice(s[0].length));const r=n!=="",l=i.split(/[\\/]+/).filter(Boolean);for(const u of e.split("/"))u===""||u==="."||(u===".."?l.length>0&&l[l.length-1]!==".."?l.pop():r||l.push(".."):l.push(u));const a=l.join("/");return n==="/"?`/${a}`:n!==""?a?`${n}/${a}`:`${n}/`:a}function WB(e,t){for(const n of e.stateMachineNames){const i=(e.stateMachineInputs(n)??[]).find(o=>o.name===t);if(i!==void 0)return i}return null}function Ule(e,t){const n=WB(e,t);return n!==null&&typeof n.fire=="function"?(n.fire(),!0):!1}function NS(e,t,n){const i=WB(e,t);return i!==null&&typeof i.value==typeof n?(i.value=n,!0):!1}const p3={isPageHidden:()=>typeof document<"u"&&document.hidden,onVisibilityChange:e=>typeof document>"u"?()=>{}:(document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)),observeIntersection:(e,t)=>{if(typeof IntersectionObserver!="function")return()=>{};const n=new IntersectionObserver(i=>{const o=i[0];o!==void 0&&t(o.isIntersecting)});return n.observe(e),()=>n.disconnect()}};function qB(e,t,n={}){const i=n.isPageHidden??p3.isPageHidden,o=n.onVisibilityChange??p3.onVisibilityChange,s=n.observeIntersection??p3.observeIntersection;let r=!i(),l=!0,a=!1;function u(){const h=!r||!l;h!==a&&(a=h,a?e.pause():e.play())}const c=o(()=>{r=!i(),u()}),d=s(t,h=>{l=h,u()});return u(),()=>{c(),d()}}const Kle={"&":"&","<":"<",">":">",'"':""","'":"'"};function FS(e){return e.replace(/[&<>"']/g,t=>Kle[t]??t)}function Vle(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zle(e,t,n=40){const i=e.replace(/\s+/g," ").trim();if(i.length===0)return"";const o=t.trim();if(o.length===0)return DS(i,n*2);const s=i.toLowerCase().indexOf(o.toLowerCase());if(s<0)return DS(i,n*2);const r=Math.max(0,s-n),l=Math.min(i.length,s+o.length+n),a=r>0,u=l`${s}`)}const js="kimi-web.server-credential",Gle="token",Qle=10080*60*1e3;let Da;const qb=new Set;function Yle(){if(typeof window>"u")return;const e=window.location.hash??"";if(!e.startsWith("#"))return;const n=new URLSearchParams(e.slice(1)).get(Gle);if(!n)return;const i=new URL(window.location.href);return i.hash="",window.history.replaceState(window.history.state,"",`${i.pathname}${i.search}`),n}function Ub(e){return{version:1,credential:e,expiresAt:Date.now()+Qle}}function Jle(e){return JSON.stringify(e)}function L6(e){try{const t=JSON.parse(e);if(typeof t!="object"||t===null)return;const n=t;return n.version!==1||typeof n.credential!="string"||n.credential.length===0||typeof n.expiresAt!="number"||!Number.isFinite(n.expiresAt)?void 0:{version:1,credential:n.credential,expiresAt:n.expiresAt}}catch{return}}function Kb(e){globalThis.localStorage?.setItem(js,Jle(e))}function Xle(){try{const e=globalThis.localStorage?.getItem(js);if(e){const n=L6(e);if(n===void 0){const i=Ub(e);let o=!1;try{Kb(i),o=!0}catch{}if(!o)try{globalThis.localStorage?.getItem(js)===e&&globalThis.localStorage?.removeItem(js),o=!0}catch{}try{globalThis.sessionStorage?.removeItem(js)}catch{}return o?i:void 0}if(n.expiresAt>Date.now())return n;globalThis.sessionStorage?.removeItem(js),globalThis.localStorage?.getItem(js)===e&&globalThis.localStorage?.removeItem(js);return}const t=globalThis.sessionStorage?.getItem(js);if(t){const n=Ub(t);let i=!1;try{Kb(n),i=!0}catch{}try{globalThis.sessionStorage?.removeItem(js),i=!0}catch{}return i?n:void 0}return}catch{return}}function eae(){const e=Yle();return e?(UB(e),!0):(Da=Xle(),Da!==void 0)}function tae(){if(Da!==void 0){if(Da.expiresAt<=Date.now()){nae(Da);return}return Da.credential}}function nae(e){Da=void 0;try{globalThis.sessionStorage?.removeItem(js);const t=globalThis.localStorage?.getItem(js),n=t==null?void 0:L6(t);(n===void 0?t===e.credential:n.credential===e.credential&&n.expiresAt===e.expiresAt)&&globalThis.localStorage?.removeItem(js)}catch{}}function UB(e){const t=Ub(e);Da=t;try{Kb(t)}catch{}try{globalThis.sessionStorage?.removeItem(js)}catch{}}function iae(){const e=Da;Da=void 0;try{const t=globalThis.localStorage?.getItem(js),i=(t==null?void 0:L6(t))?.credential??t;e!==void 0&&i===e.credential&&globalThis.localStorage?.removeItem(js),globalThis.sessionStorage?.removeItem(js)}catch{}}function oae(e){return qb.add(e),()=>{qb.delete(e)}}function sae(){iae();for(const e of qb)try{e()}catch{}}function og(e){return e.approvalCount>0?"awaiting-approval":e.questionCount>0?"awaiting-question":e.pendingInteraction==="approval"?"awaiting-approval":e.pendingInteraction==="question"?"awaiting-question":e.busy?"running":e.lastTurnReason==="failed"?"aborted":e.unread?"unread":"idle"}function BS(e){let t=null;for(const n of e){const i=og(n);if(i==="awaiting-approval")return"approval";i==="awaiting-question"?t="question":i==="aborted"?t!=="question"&&(t="aborted"):i==="unread"&&t===null&&(t="unread")}return t}let $S;function rae(e){if(typeof Intl.Segmenter=="function")return $S??=new Intl.Segmenter("und",{granularity:"grapheme"}),$S.segment(e)}const lae=/\p{Emoji_Presentation}/u,aae=/\p{Regional_Indicator}/u,uae=/\p{Extended_Pictographic}/u,cae="️";function dae(e){return lae.test(e)||aae.test(e)?!0:uae.test(e)&&e.includes(cae)}function KB(e){const t=rae(e)?.[Symbol.iterator]().next().value;if(t===void 0||!dae(t.segment))return{emoji:null,rest:e};const n=e.slice(t.index+t.segment.length).replace(/^\s+/,"");return{emoji:t.segment,rest:n}}function fae(e,t){const{rest:n}=KB(e),i=t?.trim()??"";return i?n?`${i} ${n}`:i:n}function VB(e,t){const n=e.findIndex(s=>s.id===t.id);if(n!==-1&&e[n].updatedAt===t.updatedAt)return e.map(s=>s.id===t.id?t:s);const i=e.filter(s=>s.id!==t.id),o=i.findIndex(s=>s.updatedAt0?i:void 0}catch{return}}function hae(e){return e===void 0||e.length===0?"/":`${Vb}${encodeURIComponent(e)}`}function GB(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function pae(e,t=GB()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyA"||e.key.toLowerCase()==="a")&&!e.defaultPrevented}function gae(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement&&(e.isContentEditable||e.closest("input, textarea")!==null)}function mae(e,t){return typeof Element>"u"||!(e instanceof Element)?null:e.closest(t)}function OS(e){e.ownerDocument.getSelection()?.selectAllChildren(e)}function vae(e,t=GB()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyK"||e.key.toLowerCase()==="k")&&!e.defaultPrevented}function qc(e){return Array.isArray?Array.isArray(e):YB(e)==="[object Array]"}function yae(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Zb(e){return e==null?"":yae(e)}function ir(e){return typeof e=="string"}function Av(e){return typeof e=="number"}function kae(e){return e===!0||e===!1||bae(e)&&YB(e)=="[object Boolean]"}function QB(e){return typeof e=="object"}function bae(e){return QB(e)&&e!==null}function sl(e){return e!=null}function Mm(e){return!e.trim().length}function YB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Aae="Incorrect 'index' type",Gb="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Cae=e=>`Invalid value for key ${e}`,wae=e=>`Pattern length exceeds max of ${e}.`,xae=e=>`Missing ${e} property in key`,Sae=e=>`Property 'weight' in key '${e}' must be a positive integer`,_ae="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",PS=Object.prototype.hasOwnProperty;var Mae=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(n=>{const i=JB(n);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(n=>{n.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function JB(e){let t=null,n=null,i=null,o=1,s=null;if(ir(e)||qc(e))i=e,t=jS(e),n=Cv(e);else{if(!PS.call(e,"name"))throw new Error(xae("name"));const r=e.name;if(i=r,PS.call(e,"weight")&&e.weight!==void 0&&(o=e.weight,o<=0))throw new Error(Sae(Cv(r)));t=jS(r),n=Cv(r),s=e.getFn??null}return{path:t,id:n,weight:o,src:i,getFn:s}}function jS(e){return qc(e)?e:e.split(".")}function Cv(e){return qc(e)?e.join("."):e}function Iae(e,t){const n=[];let i=!1;const o=(s,r,l,a)=>{if(sl(s))if(!r[l])n.push(a!==void 0?{v:s,i:a}:s);else{const u=s[r[l]];if(!sl(u))return;if(l===r.length-1&&(ir(u)||Av(u)||kae(u)||typeof u=="bigint"))n.push(a!==void 0?{v:Zb(u),i:a}:Zb(u));else if(qc(u)){i=!0;for(let c=0,d=u.length;ce.score===t.score?e.idx=9&&e<=13||e===32||e===160}function Dae(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(o){let s=0,r=!1;for(let a=0;a{this._keysMap[t.id]=n})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(ir(this.docs[0]))for(let n=0;ne&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const i of e)Number.isInteger(i)&&i>=0&&t.add(i);if(t.size===0)return;this.records=this.records.filter(i=>!t.has(i.i));const n=Array.from(t).sort((i,o)=>i-o);for(const i of this.records){let o=0,s=n.length;for(;o>>1;n[r]t),records:this.records}}};function XB(e,t,{getFn:n=In.getFn,fieldNormWeight:i=In.fieldNormWeight}={}){const o=new N6({getFn:n,fieldNormWeight:i});return o.setKeys(e.map(JB)),o.setSources(t),o.create(),o}function Bae(e,{getFn:t=In.getFn,fieldNormWeight:n=In.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new N6({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s}function $ae(e=[],t=In.minMatchCharLength){const n=[];let i=-1,o=-1,s=0;for(let r=e.length;s=t&&n.push([i,o]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}function Rae(e,t,n,{location:i=In.location,distance:o=In.distance,threshold:s=In.threshold,findAllMatches:r=In.findAllMatches,minMatchCharLength:l=In.minMatchCharLength,includeMatches:a=In.includeMatches,ignoreLocation:u=In.ignoreLocation}={}){if(t.length>32)throw new Error(wae(32));const c=t.length,d=e.length,h=Math.max(0,Math.min(i,d));let p=s,g=h;const m=(L,M)=>{const N=L/c;if(u)return N;const I=Math.abs(h-M);return o?N+I/o:I?1:N},k=l>1||a,w=k?Array(d):[];let y;for(;(y=e.indexOf(t,g))>-1;){const L=m(0,y);if(p=Math.min(L,p),g=y+c,k){let M=0;for(;M=I;O-=1){const R=O-1,j=n[e[R]];if(H[O]=(H[O+1]<<1|1)&j,L&&(H[O]|=(b[O+1]|b[O])<<1|1|b[O+1]),H[O]&x&&(A=m(L,R),A<=p)){if(p=A,g=R,T=L,g<=h)break;I=Math.max(1,2*h-g)}}if(m(L+1,h)>p)break;b=H}if(k&&g>=0){const L=Math.min(d-1,g+c-1+T);for(let M=g;M<=L;M+=1)n[e[M]]&&(w[M]=1)}const _={isMatch:g>=0,score:Math.max(.001,A)};if(k){const L=$ae(w,l);L.length?a&&(_.indices=L):_.isMatch=!1}return _}function zae(e){const t={};for(let n=0,i=e.length;nn[0]-i[0]||n[1]-i[1]);const t=[e[0]];for(let n=1,i=e.length;ne.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Oae,t=>e$[t]):e=>e;var D6=class{constructor(e,{location:t=In.location,threshold:n=In.threshold,distance:i=In.distance,includeMatches:o=In.includeMatches,findAllMatches:s=In.findAllMatches,minMatchCharLength:r=In.minMatchCharLength,isCaseSensitive:l=In.isCaseSensitive,ignoreDiacritics:a=In.ignoreDiacritics,ignoreLocation:u=In.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:r,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:u},e=l?e:e.toLowerCase(),e=a?M0(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const c=(h,p)=>{this.chunks.push({pattern:h,alphabet:zae(h),startIndex:p})},d=this.pattern.length;if(d>32){let h=0;const p=d%32,g=d-p;for(;h{const{isMatch:w,score:y,indices:b}=Rae(e,g,m,{location:o+k,distance:s,threshold:r,findAllMatches:l,minMatchCharLength:a,includeMatches:i,ignoreLocation:u});w&&(h=!0),d+=y,w&&b&&c.push(...b)});const p={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(p.indices=F6(c)),p}};const Pae=new Set(["fuzzy","include"]);function jae(e){return e.startsWith("inverse")}const Qb=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n=0,i;const o=[],s=e.length;for(;(i=t.indexOf(e,n))>-1;)n=i+s,o.push([i,n-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=t.indexOf(e)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new D6(e,{location:t.location??In.location,threshold:t.threshold??In.threshold,distance:t.distance??In.distance,includeMatches:t.includeMatches??In.includeMatches,findAllMatches:t.findAllMatches??In.findAllMatches,minMatchCharLength:t.minMatchCharLength??In.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??In.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??In.ignoreDiacritics,ignoreLocation:t.ignoreLocation??In.ignoreLocation});return{type:"fuzzy",search(i){return n.searchIn(i)}}}}],HS=Qb.length,Hae="\0",Wae="|";function qae(e){const t=[],n=e.length;let i=0;for(;i=n)break;let o=i;for(;o=n||e[s]===" "){o++;break}if(e[s]==="$"&&(s+1>=n||e[s+1]===" ")){o+=2;break}}o++}t.push(e.substring(i,o)),i=o}else{for(;o{const i=qae(n.replace(/\u0000/g,"|").trim()).filter(s=>s&&!!s.trim()),o=[];for(let s=0,r=i.length;s!!(e[S2.AND]||e[S2.OR]),Vae=e=>!!e[Jb.PATH],Zae=e=>!qc(e)&&QB(e)&&!Xb(e),qS=e=>({[S2.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function t$(e,t,{auto:n=!0}={}){const i=o=>{if(ir(o)){const a={keyId:null,pattern:o};return n&&(a.searcher=x2(o,t)),a}const s=Object.keys(o),r=Vae(o);if(!r&&s.length>1&&!Xb(o))return i(qS(o));if(Zae(o)){const a=r?o[Jb.PATH]:s[0],u=r?o[Jb.PATTERN]:o[a];if(!ir(u))throw new Error(Cae(a));const c={keyId:Cv(a),pattern:u};return n&&(c.searcher=x2(u,t)),c}const l={children:[],operator:s[0]};return s.forEach(a=>{const u=o[a];qc(u)&&u.forEach(c=>{l.children.push(i(c))})}),l};return Xb(e)||(e=qS(e)),i(e)}function e8(e,{ignoreFieldNorm:t=In.ignoreFieldNorm}){let n=1;return e.forEach(({key:i,norm:o,score:s})=>{const r=i?i.weight:null;n*=Math.pow(s===0&&r?Number.EPSILON:s,(r||1)*(t?1:o))}),n}function Gae(e,{ignoreFieldNorm:t=In.ignoreFieldNorm}){e.forEach(n=>{n.score=e8(n.matches,{ignoreFieldNorm:t})})}var Qae=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const i=t[e];t[e]=t[n],t[n]=i,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let i=e;do{e=i;const o=2*e+1,s=2*e+2;if(o0&&(i=o),s0&&(i=s),i!==e){const r=t[e];t[e]=t[i],t[i]=r}}while(i!==e)}};function Yae(e){const t=[];return e.matches.forEach(n=>{if(!sl(n.indices)||!n.indices.length)return;const i={indices:n.indices,value:n.value};n.key&&(i.key=n.key.id),n.idx>-1&&(i.refIndex=n.idx),t.push(i)}),t}function Jae(e,t,{includeMatches:n=In.includeMatches,includeScore:i=In.includeScore}={}){return e.map(o=>{const{idx:s}=o,r={item:t[s],refIndex:s};return n&&(r.matches=Yae(o)),i&&(r.score=o.score),r})}const Xae=/[\p{L}\p{M}\p{N}_]+/gu,US=new WeakSet;function eue(e){US.has(e)||(US.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function tue(e){if(typeof e=="function"){let t=!1;return n=>{const i=e(n);if(!t&&(t=!0,!Array.isArray(i)||i.some(o=>typeof o!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(i)?"array containing non-strings":typeof i}.`);return i}}return e instanceof RegExp?(e.global||eue(e),t=>t.match(e)||[]):t=>t.match(Xae)||[]}function t8({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const i=tue(n);return{tokenize(o){return e||(o=o.toLowerCase()),t&&(o=M0(o)),i(o)}}}var nue=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=t8({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:i,fieldCount:o}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const s of n){this.termSearchers.push(new D6(s,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const r=i.get(s)||0,l=Math.log(1+(o-r+.5)/(r+.5));this.idfWeights.push(l)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,i=0,o=0,s=0;const r=this.combineAll&&!this.useMask?new Set:null;for(let u=0;u0?1-n/i:0,a={isMatch:!0,score:Math.max(.001,l)};return this.options.includeMatches&&t.length&&(a.indices=F6(t)),this.combineAll&&(this.useMask?a.matchedMask=s:a.matchedTerms=r,a.termCount=this.numTerms),a}};function g3(e,t,n,i){const o=i.tokenize(t);if(!o.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const s=new Set(o);let r=e.docTermFieldHits.get(n);r||(r=new Map,e.docTermFieldHits.set(n,r));for(const l of s)r.set(l,(r.get(l)||0)+1),e.df.set(l,(e.df.get(l)||0)+1)}function n$(e,t,n,i){const{i:o,v:s,$:r}=t;if(s!==void 0){g3(e,s,o,i);return}if(r)for(let l=0;ll-a);for(const l of n)sue(e,l);const i=l=>{let a=0,u=n.length;for(;a>>1;n[c]o?i(l):l,a);e.docFieldCount=s;const r=new Map;for(const[l,a]of e.docTermFieldHits)r.set(l>o?i(l):l,a);e.docTermFieldHits=r}var Uc=class{constructor(e,t,n){this.options={...In,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Mae(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=x2(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof N6))throw new Error(Aae);if(this._myIndex=t||XB(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const n=t8({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=iue(this._myIndex.records,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}add(e){if(!sl(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const n=t8({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});oue(this._invertedIndex,t,this._myIndex.keys.length,n)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let i=0,o=this._docs.length;i!i.has(s)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(Gb);this._invertedIndex&&KS(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:i,includeScore:o,shouldSort:s,sortFn:r,ignoreFieldNorm:l}=this.options;if(ir(e)&&!e.trim()){let h=this._docs.map((p,g)=>({item:p,refIndex:g}));return Av(n)&&n>-1&&(h=h.slice(0,n)),h}const a=s&&Av(n)&&n>0&&ir(e),u=r,c=(h,p)=>u(h,p)||h.idx-p.idx;let d;if(a){const h=new Qae(n,c);ir(this._docs[0])?this._searchStringList(e,{heap:h,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:h,ignoreFieldNorm:l}),d=h.extractSorted()}else d=ir(e)?ir(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Gae(d,{ignoreFieldNorm:l}),s&&d.sort(ir(e)?c:u),Av(n)&&n>-1&&(d=d.slice(0,n));return Jae(d,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=t?null:[];return s.forEach(({v:l,i:a,n:u})=>{if(!sl(l))return;const c=i.searchIn(l);if(c.isMatch){const d={score:c.score,value:l,norm:u,indices:c.indices};o&&(d.matchedMask=c.matchedMask,d.matchedTerms=c.matchedTerms,d.termCount=c.termCount);const h=[d];if(!o||this._coversAllTokens(h)){const p={item:l,idx:a,matches:h};t?(p.score=e8(p.matches,{ignoreFieldNorm:n}),t.insert(p)):r.push(p)}}}),r}_searchLogical(e){const t=t$(e,this.options),n=this._normalizedKeys(),i=(l,a,u)=>{if(!("children"in l)){const{keyId:p,searcher:g}=l;let m;return p===null?(m=[],n.forEach((k,w)=>{m.push(...this._findMatches({key:k,value:a[w],searcher:g}))})):m=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(a,p),searcher:g}),m&&m.length?[{idx:u,item:a,matches:m}]:[]}const{children:c,operator:d}=l,h=[];for(let p=0,g=c.length;p{if(sl(l)){const u=i(t,l,a);u.length&&(s.has(a)||(s.set(a,{idx:a,item:l,matches:[]}),r.push(s.get(a))),u.forEach(({matches:c})=>{s.get(a).matches.push(...c)}))}}),r}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:s}=this._myIndex,r=this._normalizedKeys(),l=t?null:[];return s.forEach(({$:a,i:u})=>{if(!sl(a))return;const c=[];let d=!1,h=!1;if(r.forEach((p,g)=>{const m=this._findMatches({key:p,value:a[g],searcher:i});m.length?(c.push(...m),m[0].hasInverse&&(h=!0)):d=!0}),!(h&&d)&&c.length&&(!o||this._coversAllTokens(c))){const p={idx:u,item:a,matches:c};t?(p.score=e8(p.matches,{ignoreFieldNorm:n}),t.insert(p)):l.push(p)}}),l}_findMatches({key:e,value:t,searcher:n}){if(!sl(t))return[];const i=[];if(qc(t))t.forEach(({v:o,i:s,n:r})=>{if(!sl(o))return;const l=n.searchIn(o);if(l.isMatch){const a={score:l.score,key:e,value:o,idx:s,norm:r,indices:l.indices,hasInverse:l.hasInverse};l.termCount!==void 0&&(a.matchedMask=l.matchedMask,a.matchedTerms=l.matchedTerms,a.termCount=l.termCount),i.push(a)}});else{const{v:o,n:s}=t,r=n.searchIn(o);if(r.isMatch){const l={score:r.score,key:e,value:o,norm:s,indices:r.indices,hasInverse:r.hasInverse};r.termCount!==void 0&&(l.matchedMask=r.matchedMask,l.matchedTerms=r.matchedTerms,l.termCount=r.termCount),i.push(l)}}return i}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let i=0;for(let o=0;oB6(t))};var rue=Uc;const lue=/^[\uD800-\uDBFF]$/,aue=/^[\uDC00-\uDFFF]$/,uue=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var VS;(function(e){e[e.Unknown=1e-13]="Unknown",e[e.Rule=1e-12]="Rule",e[e.DICT=2e-8]="DICT",e[e.Surname=1]="Surname",e[e.Custom=1]="Custom"})(VS||(VS={}));const yl={Normal:1,Surname:10,Custom:100};function ta(e){var t;return e.length-(((t=e.match(uue))===null||t===void 0?void 0:t.length)||0)}function n8(e){const t=[];let n=0;for(;n1)return this.StringDICT.get(t);{const n=t.charCodeAt(0);return this.NumberDICT[n]}}set(t,n){if(t.length>1)this.StringDICT.set(t,n);else{const i=t.charCodeAt(0);this.NumberDICT[i]=n}}clear(){this.NumberDICT=[],this.StringDICT.clear()}}const cue=["zh","ch","sh","z","c","s","b","p","m","f","d","t","n","l","g","k","h","j","q","x","r","y","w",""],due=["j","q","x"],fue=["uān","uán","uǎn","uàn","uan","uē","ué","uě","uè","ue","ūn","ún","ǔn","ùn","un","ū","ú","ǔ","ù","u"],hue={uān:"üān",uán:"üán",uǎn:"üǎn",uàn:"üàn",uan:"üan",uē:"üē",ué:"üé",uě:"üě",uè:"üè",ue:"üe",ūn:"ǖn",ún:"ǘn",ǔn:"ǚn",ùn:"ǜn",un:"ün",ū:"ǖ",ú:"ǘ",ǔ:"ǚ",ù:"ǜ",u:"ü"},pue=["ia","ian","iang","iao","ie","iu","iong","ua","uai","uan","uang","ue","ui","uo","üan","üe","van","ve"],ZS={一:"yì",二:"èr",三:"sān",四:"sì",五:"wǔ",六:"liù",七:"qī",八:"bā",九:"jiǔ",十:"shí",百:"bǎi",千:"qiān",万:"wàn",亿:"yì",单:"dān",两:"liǎng",双:"shuāng",多:"duō",几:"jǐ",十一:"shí yī",零一:"líng yī",第一:"dì yī",一十:"yī shí",一十一:"yī shí yī"},GS={重:"chóng",行:"háng",斗:"dǒu",更:"gēng"};function gue(){const e={零一:"líng yī","〇一":"líng yī",十一:"shí yī",一十:"yī shí",第一:"dì yī",一十一:"yī shí yī"};for(let t in ZS)for(let n in GS){const i=`${t}${n}`,o=`${ZS[t]} ${GS[n]}`;e[i]=o}return e}const QS=gue(),mue=Object.keys(QS).map(e=>({zh:e,pinyin:QS[e],probability:1e-12,length:ta(e),priority:yl.Normal,dict:Symbol("rule")})),o$={不:{bú:[4]},一:{yí:[4],yì:[1,2,3]}},vue={不:["的","而","之","后","也","还","地"],一:["的","而","之","后","也","还","是"]},yue=Object.keys(o$),i8={南宫:"nán gōng",第五:"dì wǔ",万俟:"mò qí",司马:"sī mǎ",上官:"shàng guān",欧阳:"ōu yáng",夏侯:"xià hóu",诸葛:"zhū gě",闻人:"wén rén",东方:"dōng fāng",赫连:"hè lián",皇甫:"huáng fǔ",尉迟:"yù chí",公羊:"gōng yáng",澹台:"tán tái",公冶:"gōng yě",宗政:"zōng zhèng",濮阳:"pú yáng",淳于:"chún yú",太叔:"tài shū",申屠:"shēn tú",公孙:"gōng sūn",仲孙:"zhòng sūn",轩辕:"xuān yuán",令狐:"líng hú",钟离:"zhōng lí",宇文:"yǔ wén",长孙:"zhǎng sūn",慕容:"mù róng",鲜于:"xiān yú",闾丘:"lǘ qiū",司徒:"sī tú",司空:"sī kōng",亓官:"qí guān",司寇:"sī kòu",仉督:"zhǎng dū",子车:"zǐ jū",颛孙:"zhuān sūn",端木:"duān mù",巫马:"wū mǎ",公西:"gōng xī",漆雕:"qī diāo",乐正:"yuè zhèng",壤驷:"rǎng sì",公良:"gōng liáng",拓跋:"tuò bá",夹谷:"jiá gǔ",宰父:"zǎi fǔ",榖梁:"gǔ liáng",段干:"duàn gān",百里:"bǎi lǐ",东郭:"dōng guō",南门:"nán mén",呼延:"hū yán",羊舌:"yáng shé",梁丘:"liáng qiū",左丘:"zuǒ qiū",东门:"dōng mén",西门:"xī mén",句龙:"gōu lóng",毌丘:"guàn qiū",赵:"zhào",钱:"qián",孙:"sūn",李:"lǐ",周:"zhōu",吴:"wú",郑:"zhèng",王:"wáng",冯:"féng",陈:"chén",褚:"chǔ",卫:"wèi",蒋:"jiǎng",沈:"shěn",韩:"hán",杨:"yáng",朱:"zhū",秦:"qín",尤:"yóu",许:"xǔ",何:"hé",吕:"lǚ",施:"shī",张:"zhāng",孔:"kǒng",曹:"cáo",严:"yán",华:"huà",金:"jīn",魏:"wèi",陶:"táo",姜:"jiāng",戚:"qī",谢:"xiè",邹:"zōu",喻:"yù",柏:"bǎi",水:"shuǐ",窦:"dòu",章:"zhāng",云:"yún",苏:"sū",潘:"pān",葛:"gě",奚:"xī",范:"fàn",彭:"péng",郎:"láng",鲁:"lǔ",韦:"wéi",昌:"chāng",马:"mǎ",苗:"miáo",凤:"fèng",花:"huā",方:"fāng",俞:"yú",任:"rén",袁:"yuán",柳:"liǔ",酆:"fēng",鲍:"bào",史:"shǐ",唐:"táng",费:"fèi",廉:"lián",岑:"cén",薛:"xuē",雷:"léi",贺:"hè",倪:"ní",汤:"tāng",滕:"téng",殷:"yīn",罗:"luó",毕:"bì",郝:"hǎo",邬:"wū",安:"ān",常:"cháng",乐:"yuè",于:"yú",时:"shí",傅:"fù",皮:"pí",卞:"biàn",齐:"qí",康:"kāng",伍:"wǔ",余:"yú",元:"yuán",卜:"bǔ",顾:"gù",孟:"mèng",平:"píng",黄:"huáng",和:"hé",穆:"mù",萧:"xiāo",尹:"yǐn",姚:"yáo",邵:"shào",湛:"zhàn",汪:"wāng",祁:"qí",毛:"máo",禹:"yǔ",狄:"dí",米:"mǐ",贝:"bèi",明:"míng",臧:"zāng",计:"jì",伏:"fú",成:"chéng",戴:"dài",谈:"tán",宋:"sòng",茅:"máo",庞:"páng",熊:"xióng",纪:"jǐ",舒:"shū",屈:"qū",项:"xiàng",祝:"zhù",董:"dǒng",梁:"liáng",杜:"dù",阮:"ruǎn",蓝:"lán",闵:"mǐn",席:"xí",季:"jì",麻:"má",强:"qiáng",贾:"jiǎ",路:"lù",娄:"lóu",危:"wēi",江:"jiāng",童:"tóng",颜:"yán",郭:"guō",梅:"méi",盛:"shèng",林:"lín",刁:"diāo",钟:"zhōng",徐:"xú",邱:"qiū",骆:"luò",高:"gāo",夏:"xià",蔡:"cài",田:"tián",樊:"fán",胡:"hú",凌:"líng",霍:"huò",虞:"yú",万:"wàn",支:"zhī",柯:"kē",昝:"zǎn",管:"guǎn",卢:"lú",莫:"mò",经:"jīng",房:"fáng",裘:"qiú",缪:"miào",干:"gān",解:"xiè",应:"yīng",宗:"zōng",丁:"dīng",宣:"xuān",贲:"bēn",邓:"dèng",郁:"yù",单:"shàn",杭:"háng",洪:"hóng",包:"bāo",诸:"zhū",左:"zuǒ",石:"shí",崔:"cuī",吉:"jí",钮:"niǔ",龚:"gōng",程:"chéng",嵇:"jī",邢:"xíng",滑:"huá",裴:"péi",陆:"lù",荣:"róng",翁:"wēng",荀:"xún",羊:"yáng",於:"yū",惠:"huì",甄:"zhēn",曲:"qū",家:"jiā",封:"fēng",芮:"ruì",羿:"yì",储:"chǔ",靳:"jìn",汲:"jí",邴:"bǐng",糜:"mí",松:"sōng",井:"jǐng",段:"duàn",富:"fù",巫:"wū",乌:"wū",焦:"jiāo",巴:"bā",弓:"gōng",牧:"mù",隗:"wěi",山:"shān",谷:"gǔ",车:"chē",侯:"hóu",宓:"mì",蓬:"péng",全:"quán",郗:"xī",班:"bān",仰:"yǎng",秋:"qiū",仲:"zhòng",伊:"yī",宫:"gōng",宁:"nìng",仇:"qiú",栾:"luán",暴:"bào",甘:"gān",钭:"tǒu",厉:"lì",戎:"róng",祖:"zǔ",武:"wǔ",符:"fú",刘:"liú",景:"jǐng",詹:"zhān",束:"shù",龙:"lóng",叶:"yè",幸:"xìng",司:"sī",韶:"sháo",郜:"gào",黎:"lí",蓟:"jì",薄:"bó",印:"yìn",宿:"sù",白:"bái",怀:"huái",蒲:"pú",邰:"tái",从:"cóng",鄂:"è",索:"suǒ",咸:"xián",籍:"jí",赖:"lài",卓:"zhuó",蔺:"lìn",屠:"tú",蒙:"méng",池:"chí",乔:"qiáo",阴:"yīn",鬱:"yù",胥:"xū",能:"nài",苍:"cāng",双:"shuāng",闻:"wén",莘:"shēn",党:"dǎng",翟:"zhái",谭:"tán",贡:"gòng",劳:"láo",逄:"páng",姬:"jī",申:"shēn",扶:"fú",堵:"dǔ",冉:"rǎn",宰:"zǎi",郦:"lì",雍:"yōng",郤:"xì",璩:"qú",桑:"sāng",桂:"guì",濮:"pú",牛:"niú",寿:"shòu",通:"tōng",边:"biān",扈:"hù",燕:"yān",冀:"jì",郏:"jiá",浦:"pǔ",尚:"shàng",农:"nóng",温:"wēn",别:"bié",庄:"zhuāng",晏:"yàn",柴:"chái",瞿:"qú",阎:"yán",充:"chōng",慕:"mù",连:"lián",茹:"rú",习:"xí",宦:"huàn",艾:"ài",鱼:"yú",容:"róng",向:"xiàng",古:"gǔ",易:"yì",慎:"shèn",戈:"gē",廖:"liào",庾:"yǔ",终:"zhōng",暨:"jì",居:"jū",衡:"héng",步:"bù",都:"dū",耿:"gěng",满:"mǎn",弘:"hóng",匡:"kuāng",国:"guó",文:"wén",寇:"kòu",广:"guǎng",禄:"lù",阙:"quē",东:"dōng",欧:"ōu",殳:"shū",沃:"wò",利:"lì",蔚:"wèi",越:"yuè",夔:"kuí",隆:"lóng",师:"shī",巩:"gǒng",厍:"shè",聂:"niè",晁:"cháo",勾:"gōu",敖:"áo",融:"róng",冷:"lěng",訾:"zī",辛:"xīn",阚:"kàn",那:"nā",简:"jiǎn",饶:"ráo",空:"kōng",曾:"zēng",母:"mǔ",沙:"shā",乜:"niè",养:"yǎng",鞠:"jū",须:"xū",丰:"fēng",巢:"cháo",关:"guān",蒯:"kuǎi",相:"xiàng",查:"zhā",后:"hòu",荆:"jīng",红:"hóng",游:"yóu",竺:"zhú",权:"quán",逯:"lù",盖:"gě",益:"yì",桓:"huán",公:"gōng",牟:"móu",哈:"hǎ",言:"yán",福:"fú",肖:"xiāo",区:"ōu",覃:"qín",朴:"piáo",繁:"pó",员:"yùn",句:"gōu",要:"yāo",过:"guō",钻:"zuān",谌:"chén",折:"shé",召:"shào",郄:"qiè",撒:"sǎ",甯:"nìng",六:"lù",啜:"chuài",行:"xíng"},kue=Object.keys(i8).map(e=>({zh:e,pinyin:i8[e],probability:1+ta(e),length:ta(e),priority:yl.Surname,dict:Symbol("surname")})),YS={"bǎng páng pāng":["膀"],líng:["〇","伶","凌","刢","囹","坽","夌","姈","婈","孁","岺","彾","掕","昤","朎","柃","棂","櫺","欞","泠","淩","澪","灵","燯","爧","狑","玲","琌","瓴","皊","砱","祾","秢","竛","笭","紷","綾","绫","羐","羚","翎","聆","舲","苓","菱","蓤","蔆","蕶","蛉","衑","裬","詅","跉","軨","輘","酃","醽","鈴","錂","铃","閝","陵","零","霊","霗","霛","霝","靈","駖","魿","鯪","鲮","鴒","鸰","鹷","麢","齡","齢","龄","龗","㥄"],yī:["一","乊","伊","依","医","吚","咿","噫","壱","壹","夁","嫛","嬄","弌","揖","撎","檹","毉","洢","渏","漪","瑿","畩","祎","禕","稦","繄","蛜","衤","譩","辷","郼","醫","銥","铱","鷖","鹥","黟","黳"],"dīng zhēng":["丁"],"kǎo qiǎo yú":["丂"],qī:["七","倛","僛","凄","嘁","墄","娸","悽","慼","慽","戚","捿","柒","桤","桼","棲","榿","欺","沏","淒","漆","紪","緀","萋","褄","諆","迉","郪","鏚","霋","魌","鶈"],shàng:["丄","尙","尚","恦","緔","绱"],xià:["丅","下","乤","圷","夏","夓","懗","梺","疜","睱","罅","鎼","鏬"],hǎn:["丆","喊","浫","罕","豃","㘎"],"wàn mò":["万"],zhàng:["丈","仗","墇","嶂","帐","帳","幛","扙","杖","涱","痮","瘬","瘴","瞕","粀","胀","脹","賬","账","障"],sān:["三","厁","叁","弎","毵","毶","毿","犙","鬖"],"shàng shǎng shang":["上"],"qí jī":["丌","其","奇"],"bù fǒu":["不"],"yǔ yù yú":["与"],miǎn:["丏","偭","免","冕","勉","勔","喕","娩","愐","汅","沔","湎","睌","緬","缅","腼","葂","靦","鮸","𩾃"],gài:["丐","乢","匃","匄","戤","概","槩","槪","溉","漑","瓂","葢","鈣","钙","𬮿"],chǒu:["丑","丒","侴","吜","杽","瞅","矁","醜","魗"],zhuān:["专","叀","嫥","専","專","瑼","甎","砖","磗","磚","蟤","諯","鄟","顓","颛","鱄","䏝"],"qiě jū":["且"],pī:["丕","伓","伾","噼","坯","岯","憵","批","披","炋","狉","狓","砒","磇","礔","礕","秛","秠","耚","豾","邳","鈚","鉟","銔","錃","錍","霹","駓","髬","魾","𬳵"],shì:["世","丗","亊","事","仕","侍","冟","势","勢","卋","呩","嗜","噬","士","奭","嬕","室","市","式","弑","弒","恀","恃","戺","拭","揓","是","昰","枾","柿","栻","澨","烒","煶","眂","眎","眡","睗","示","礻","筮","簭","舐","舓","襫","視","视","觢","試","誓","諡","謚","试","谥","貰","贳","軾","轼","逝","遾","釈","释","釋","鈰","鉃","鉽","铈","飾","餙","餝","饰","鰘","䏡","𬤊"],qiū:["丘","丠","坵","媝","恘","恷","楸","秋","秌","穐","篍","緧","萩","蘒","蚯","蝵","蟗","蠤","趥","邱","鞦","鞧","鰌","鰍","鳅","鶖","鹙","龝"],bǐng:["丙","屛","怲","抦","昞","昺","柄","棅","炳","禀","秉","稟","苪","蛃","邴","鈵","陃","鞆","餅","餠","饼"],yè:["业","亱","僷","墷","夜","嶪","嶫","抴","捙","擛","擪","擫","晔","曄","曅","曗","曳","曵","枼","枽","業","洂","液","澲","烨","燁","爗","璍","皣","瞱","瞸","礏","腋","葉","謁","谒","邺","鄴","鍱","鐷","靥","靨","頁","页","餣","饁","馌","驜","鵺","鸈"],cóng:["丛","从","叢","婃","孮","従","徔","徖","悰","樷","欉","淙","灇","爜","琮","藂","誴","賨","賩","錝"],dōng:["东","倲","冬","咚","埬","岽","崬","徚","昸","東","氡","氭","涷","笗","苳","菄","蝀","鮗","鯟","鶇","鶫","鸫","鼕","𬟽"],sī:["丝","俬","凘","厮","司","咝","嘶","噝","媤","廝","恖","撕","斯","楒","泀","澌","燍","禗","禠","私","糹","絲","緦","纟","缌","罳","蕬","虒","蛳","蜤","螄","蟖","蟴","鉰","銯","鍶","鐁","锶","颸","飔","騦","鷥","鸶","鼶","㟃"],chéng:["丞","呈","城","埕","堘","塍","塖","宬","峸","惩","懲","成","承","挰","掁","揨","枨","棖","橙","檙","洆","溗","澂","珵","珹","畻","程","窚","筬","絾","脭","荿","誠","诚","郕","酲","鋮","铖","騬","鯎"],diū:["丟","丢","銩","铥"],liǎng:["両","两","兩","唡","啢","掚","緉","脼","蜽","裲","魉","魎","𬜯"],yǒu:["丣","卣","友","梄","湵","牖","禉","羑","聈","苃","莠","蜏","酉","銪","铕","黝"],yán:["严","厳","啱","喦","嚴","塩","壛","壧","妍","姸","娫","娮","岩","嵒","嵓","巌","巖","巗","延","揅","昖","楌","檐","櫩","欕","沿","炎","炏","狿","琂","盐","碞","筵","簷","莚","蔅","虤","蜒","言","訁","訮","詽","讠","郔","閆","閻","闫","阎","顏","顔","颜","鹽","麣","𫄧"],bìng:["並","併","倂","傡","垪","摒","栤","病","窉","竝","誁","靐","鮩"],"sàng sāng":["丧"],gǔn:["丨","惃","滚","滾","磙","緄","绲","蓘","蔉","衮","袞","輥","辊","鮌","鯀","鲧"],jiū:["丩","勼","啾","揪","揫","朻","究","糾","纠","萛","赳","阄","鬏","鬮","鳩","鸠"],"gè gě":["个","個","各"],yā:["丫","圧","孲","庘","押","枒","桠","椏","錏","鐚","鴉","鴨","鵶","鸦","鸭"],pán:["丬","媻","幋","槃","洀","瀊","爿","盘","盤","磐","縏","蒰","蟠","蹒","蹣","鎜","鞶"],"zhōng zhòng":["中"],jǐ:["丮","妀","己","戟","挤","掎","撠","擠","橶","泲","犱","脊","虮","蟣","魢","鱾","麂"],jiè:["丯","介","借","唶","堺","屆","届","岕","庎","徣","戒","楐","犗","玠","琾","界","畍","疥","砎","蚧","蛶","衸","褯","誡","诫","鎅","骱","魪"],fēng:["丰","仹","偑","僼","凨","凬","凮","妦","寷","封","峯","峰","崶","枫","楓","檒","沣","沨","渢","灃","烽","犎","猦","琒","疯","瘋","盽","砜","碸","篈","蘴","蜂","蠭","豐","鄷","酆","鋒","鎽","鏠","锋","霻","靊","飌","麷"],"guàn kuàng":["丱"],chuàn:["串","汌","玔","賗","釧","钏"],chǎn:["丳","产","冁","剷","囅","嵼","旵","浐","滻","灛","產","産","簅","蒇","蕆","諂","譂","讇","谄","鏟","铲","閳","闡","阐","骣","𬊤"],lín:["临","冧","壣","崊","嶙","斴","晽","暽","林","潾","瀶","燐","琳","璘","瞵","碄","磷","粦","粼","繗","翷","臨","轔","辚","遴","邻","鄰","鏻","阾","隣","霖","驎","鱗","鳞","麐","麟","𬴊","𬭸"],zhuó:["丵","劅","卓","啄","圴","妰","娺","撯","擆","擢","斫","斮","斱","斲","斵","晫","椓","浊","浞","濁","灼","烵","琸","硺","禚","窡","籗","籱","罬","茁","蠗","蠿","諁","諑","謶","诼","酌","鐲","镯","鵫","鷟","䓬","𬸦"],zhǔ:["丶","主","劯","嘱","囑","宔","帾","拄","渚","濐","煑","煮","燝","瞩","矚","罜","詝","陼","鸀","麈","𬣞"],bā:["丷","仈","八","叭","哵","夿","岜","巴","捌","朳","玐","疤","笆","粑","羓","芭","蚆","豝","釟"],wán:["丸","刓","完","岏","抏","捖","汍","烷","玩","琓","笂","紈","纨","翫","芄","貦","頑","顽"],dān:["丹","勯","匰","単","妉","媅","殚","殫","甔","眈","砃","箪","簞","耼","耽","聃","聸","褝","襌","躭","郸","鄲","酖","頕"],"wèi wéi":["为"],"jǐng dǎn":["丼"],"lì lí":["丽"],jǔ:["举","弆","挙","擧","椇","榉","榘","櫸","欅","矩","筥","聥","舉","莒","蒟","襷","踽","齟","龃"],piě:["丿","苤","鐅","𬭯"],fú:["乀","伏","俘","凫","刜","匐","咈","哹","垘","孚","岪","巿","帗","幅","幞","弗","彿","怫","扶","柫","栿","桴","氟","泭","浮","涪","澓","炥","玸","甶","畉","癁","祓","福","稪","符","箙","紱","紼","絥","綍","绂","绋","罘","罦","翇","艀","芙","芣","苻","茀","茯","菔","葍","虙","蚨","蜉","蝠","袚","袱","襆","襥","諨","豧","踾","輻","辐","郛","鉘","鉜","韍","韨","颫","髴","鮄","鮲","鳧","鳬","鴔","鵩","黻"],"yí jí":["乁"],yì:["乂","义","亄","亦","亿","伇","伿","佾","俋","億","兿","刈","劓","劮","勚","勩","匇","呓","呭","呹","唈","囈","圛","坄","垼","埸","奕","嫕","嬑","寱","屹","峄","嶧","帟","帠","幆","廙","异","弈","弋","役","忆","怈","怿","悒","意","憶","懌","懿","抑","挹","敡","易","晹","曀","曎","杙","枍","棭","榏","槸","檍","歝","殔","殪","殹","毅","浂","浥","浳","湙","溢","潩","澺","瀷","炈","焲","熠","熤","熼","燚","燡","燱","獈","玴","異","疫","痬","瘗","瘞","瘱","癔","益","瞖","穓","竩","篒","縊","繶","繹","绎","缢","義","羿","翊","翌","翳","翼","耴","肄","肊","膉","臆","艗","艺","芅","苅","萟","蓺","薏","藙","藝","蘙","虉","蜴","螠","衪","袣","裔","裛","褹","襼","訲","訳","詍","詣","誼","譯","議","讛","议","译","诣","谊","豙","豛","豷","貖","贀","跇","轶","逸","邑","鄓","醷","釴","鈠","鎰","鐿","镒","镱","阣","隿","霬","饐","駅","驛","驿","骮","鮨","鶂","鶃","鶍","鷁","鷊","鷧","鷾","鸃","鹝","鹢","黓","齸","𬬩","㑊","𫄷","𬟁"],nǎi:["乃","倷","奶","嬭","廼","氖","疓","艿","迺","釢"],wǔ:["乄","五","仵","伍","侮","倵","儛","午","啎","妩","娬","嫵","庑","廡","忤","怃","憮","摀","武","潕","熓","牾","玝","珷","瑦","甒","碔","舞","躌","迕","逜","陚","鵡","鹉","𣲘"],jiǔ:["久","乆","九","乣","奺","杦","汣","灸","玖","紤","舏","酒","镹","韭","韮"],"tuō zhé":["乇","杔","馲"],"me mó ma yāo":["么"],zhī:["之","倁","卮","巵","搘","支","栀","梔","椥","榰","汁","泜","疷","祗","祬","秓","稙","綕","肢","胑","胝","脂","芝","蘵","蜘","衼","隻","鳷","鴲","鼅","𦭜"],"wū wù":["乌"],zhà:["乍","咤","宱","搾","榨","溠","痄","蚱","詐","诈","醡","霅","䃎"],hū:["乎","乯","匢","匫","呼","唿","嘑","垀","寣","幠","忽","惚","昒","歑","泘","淴","滹","烀","苸","虍","虖","謼","軤","轷","雐"],fá:["乏","伐","傠","坺","垡","墢","姂","栰","浌","瞂","笩","筏","罚","罰","罸","藅","閥","阀"],"lè yuè yào lào":["乐","樂"],yín:["乑","吟","噖","嚚","圁","垠","夤","婬","寅","峾","崟","崯","檭","殥","泿","淫","滛","烎","犾","狺","璌","硍","碒","荶","蔩","訔","訚","訡","誾","鄞","鈝","銀","银","霪","鷣","齦"],pīng:["乒","俜","娉","涄","甹","砯","聠","艵","頩"],pāng:["乓","滂","胮","膖","雱","霶"],qiáo:["乔","侨","僑","嫶","憔","桥","槗","樵","橋","櫵","犞","瞧","硚","礄","荍","荞","蕎","藮","譙","趫","鐈","鞒","鞽","顦"],hǔ:["乕","琥","萀","虎","虝","錿","鯱"],guāi:["乖"],"chéng shèng":["乗","乘","娍"],yǐ:["乙","乛","以","倚","偯","嬟","崺","已","庡","扆","攺","敼","旑","旖","檥","矣","礒","笖","舣","艤","苡","苢","蚁","螘","蟻","裿","踦","輢","轙","逘","酏","釔","鈘","鉯","钇","顗","鳦","齮","𫖮","𬺈"],"háo yǐ":["乚"],"niè miē":["乜"],qǐ:["乞","企","启","唘","啓","啔","啟","婍","屺","杞","棨","玘","盀","綺","绮","芑","諬","起","邔","闙"],yě:["也","冶","嘢","埜","壄","漜","野"],xí:["习","喺","媳","嶍","席","椺","檄","漝","習","蓆","袭","襲","覡","觋","謵","趘","郋","鎴","隰","霫","飁","騱","騽","驨","鰼","鳛","𠅤","𫘬"],xiāng:["乡","厢","廂","忀","楿","欀","湘","瓖","稥","箱","緗","缃","膷","芗","萫","葙","薌","襄","郷","鄉","鄊","鄕","鑲","镶","香","驤","骧","鱜","麘","𬙋"],shū:["书","倏","倐","儵","叔","姝","尗","抒","掓","摅","攄","書","枢","梳","樞","殊","殳","毹","毺","淑","瀭","焂","疎","疏","紓","綀","纾","舒","菽","蔬","踈","軗","輸","输","鄃","陎","鮛","鵨"],dǒu:["乧","抖","枓","蚪","鈄","阧","陡"],shǐ:["乨","使","兘","史","始","宩","屎","榁","矢","笶","豕","鉂","駛","驶"],jī:["乩","僟","击","刉","刏","剞","叽","唧","喞","嗘","嘰","圾","基","墼","姬","屐","嵆","嵇","撃","擊","朞","机","枅","樭","機","毄","激","犄","玑","璣","畸","畿","癪","矶","磯","积","積","笄","筓","箕","簊","緁","羁","羇","羈","耭","肌","芨","虀","覉","覊","譏","譤","讥","賫","賷","赍","跻","踑","躋","躸","銈","錤","鐖","鑇","鑙","隮","雞","鞿","韲","飢","饑","饥","魕","鳮","鶏","鶺","鷄","鸄","鸡","齎","齏","齑","𬯀","𫓯","𫓹","𫌀"],náng:["乪","嚢","欜","蠰","饢"],jiā:["乫","佳","傢","加","嘉","抸","枷","梜","毠","泇","浃","浹","犌","猳","珈","痂","笳","糘","耞","腵","葭","袈","豭","貑","跏","迦","鉫","鎵","镓","鴐","麚","𬂩"],jù:["乬","倨","倶","具","剧","劇","勮","埧","埾","壉","姖","屦","屨","岠","巨","巪","怇","惧","愳","懅","懼","拒","拠","昛","歫","洰","澽","炬","烥","犋","秬","窭","窶","簴","粔","耟","聚","虡","蚷","詎","讵","豦","距","踞","躆","遽","邭","醵","鉅","鐻","钜","颶","飓","駏","鮔"],shí:["乭","十","埘","塒","姼","实","実","寔","實","峕","嵵","时","旹","時","榯","湜","溡","炻","祏","竍","蚀","蝕","辻","遈","鉐","飠","饣","鮖","鰣","鲥","鼫","鼭"],mǎo:["乮","冇","卯","峁","戼","昴","泖","笷","蓩","鉚","铆"],mǎi:["买","嘪","荬","蕒","買","鷶"],luàn:["乱","亂","釠"],rǔ:["乳","擩","汝","肗","辱","鄏"],xué:["乴","学","學","峃","嶨","斈","泶","澩","燢","穴","茓","袕","踅","鷽","鸴"],yǎn:["䶮","乵","俨","偃","儼","兖","兗","厣","厴","噞","孍","嵃","巘","巚","弇","愝","戭","扊","抁","掩","揜","曮","椼","檿","沇","渷","演","琰","甗","眼","罨","萒","蝘","衍","褗","躽","遃","郾","隒","顩","魇","魘","鰋","鶠","黡","黤","黬","黭","黶","鼴","鼹","齴","龑","𬸘","𬙂","𪩘"],fǔ:["乶","俌","俛","俯","府","弣","抚","拊","撫","斧","椨","滏","焤","甫","盙","簠","腐","腑","蜅","輔","辅","郙","釜","釡","阝","頫","鬴","黼","㕮","𫖯"],shā:["乷","唦","杀","桬","殺","毮","猀","痧","砂","硰","紗","繺","纱","蔱","裟","鎩","铩","閷","髿","魦","鯊","鯋","鲨"],nǎ:["乸","雫"],qián:["乹","亁","仱","偂","前","墘","媊","岒","拑","掮","榩","橬","歬","潛","潜","濳","灊","箝","葥","虔","軡","鈐","鉗","銭","錢","鎆","钤","钱","钳","靬","騚","騝","鰬","黔","黚"],suǒ:["乺","唢","嗩","所","暛","溑","溹","琐","琑","瑣","索","褨","鎖","鎻","鏁","锁"],yú:["乻","于","亐","伃","余","堣","堬","妤","娛","娯","娱","嬩","崳","嵎","嵛","愚","扵","揄","旟","楡","楰","榆","欤","歈","歟","歶","渔","渝","湡","漁","澞","牏","狳","玗","玙","瑜","璵","盂","睮","窬","竽","籅","羭","腴","臾","舁","舆","艅","茰","萮","萸","蕍","蘛","虞","虶","蝓","螸","衧","褕","覦","觎","諛","謣","谀","踰","輿","轝","逾","邘","酑","鍝","隅","雓","雩","餘","馀","騟","骬","髃","魚","魣","鮽","鯲","鰅","鱼","鷠","鸆","齵"],zhù:["乼","伫","佇","住","坾","墸","壴","嵀","拀","杼","柱","樦","殶","注","炷","疰","眝","祝","祩","竚","筯","箸","篫","簗","紵","紸","纻","羜","翥","苎","莇","蛀","註","貯","贮","跓","軴","鉒","鋳","鑄","铸","馵","駐","驻"],zhě:["乽","者","褶","襵","赭","踷","鍺","锗"],"qián gān":["乾"],"zhì luàn":["乿"],guī:["亀","圭","妫","媯","嫢","嬀","帰","归","摫","椝","槻","槼","櫷","歸","珪","瑰","璝","瓌","皈","瞡","硅","茥","蘬","規","规","邽","郌","閨","闺","騩","鬶","鬹"],"lǐn lìn":["亃"],jué:["亅","决","刔","劂","匷","厥","噊","孒","孓","崛","崫","嶥","彏","憠","憰","戄","抉","挗","掘","攫","桷","橛","橜","欮","氒","決","灍","焳","熦","爑","爴","爵","獗","玃","玦","玨","珏","瑴","瘚","矍","矡","砄","絕","絶","绝","臄","芵","蕝","蕨","虳","蟨","蟩","觖","觮","觼","訣","譎","诀","谲","貜","赽","趉","蹷","躩","鈌","鐍","鐝","钁","镢","鴂","鴃","鷢","𫘝","㵐","𫔎"],"le liǎo":["了"],"gè mā":["亇"],"yǔ yú":["予","懙"],zhēng:["争","佂","凧","姃","媜","峥","崝","崢","征","徰","炡","烝","爭","狰","猙","癥","眐","睁","睜","筝","箏","篜","聇","脀","蒸","踭","鉦","錚","鏳","鬇"],èr:["二","刵","咡","弍","弐","樲","誀","貮","貳","贰","髶"],chù:["亍","傗","儊","怵","憷","搐","斶","歜","珿","琡","矗","竌","絀","绌","臅","触","觸","豖","鄐","閦","黜"],kuī:["亏","刲","岿","巋","盔","窥","窺","聧","虧","闚","顝"],yún:["云","伝","勻","匀","囩","妘","愪","抣","昀","橒","沄","涢","溳","澐","熉","畇","秐","筼","篔","紜","縜","纭","耘","芸","蒷","蕓","郧","鄖","鋆","雲"],hù:["互","冱","嗀","嚛","婟","嫭","嫮","岵","帍","弖","怙","戶","户","戸","戽","扈","护","昈","槴","沍","沪","滬","熩","瓠","祜","笏","簄","粐","綔","蔰","護","豰","鄠","鍙","頀","鱯","鳠","鳸","鸌","鹱"],qí:["亓","剘","埼","岐","岓","崎","嵜","愭","掑","斉","斊","旂","旗","棊","棋","檱","櫀","歧","淇","濝","猉","玂","琦","琪","璂","畦","疧","碁","碕","祁","祈","祺","禥","竒","簯","簱","籏","粸","綥","綦","肵","脐","臍","艩","芪","萁","萕","蕲","藄","蘄","蚑","蚚","蛴","蜝","蜞","螧","蠐","褀","軝","鄿","釮","錡","锜","陭","頎","颀","騎","騏","騹","骐","骑","鬐","鬿","鯕","鰭","鲯","鳍","鵸","鶀","麒","麡","𨙸","𬨂","䓫"],jǐng:["井","儆","刭","剄","坓","宑","幜","憬","暻","殌","汫","汬","澋","璄","璟","璥","穽","肼","蟼","警","阱","頚","頸"],sì:["亖","佀","価","儩","兕","嗣","四","姒","娰","孠","寺","巳","柶","榹","汜","泗","泤","洍","洠","涘","瀃","牭","祀","禩","竢","笥","耜","肂","肆","蕼","覗","貄","釲","鈶","鈻","飤","飼","饲","駟","騃","驷"],suì:["亗","嬘","岁","嵗","旞","檖","歲","歳","澻","煫","燧","璲","砕","碎","祟","禭","穂","穗","穟","繀","繐","繸","襚","誶","譢","谇","賥","邃","鐆","鐩","隧","韢","𫟦","𬭼"],gèn:["亘","亙","揯","搄","茛"],yà:["亚","亜","俹","冴","劜","圔","圠","埡","娅","婭","揠","氩","氬","犽","砑","稏","聐","襾","覀","訝","讶","迓","齾"],"xiē suò":["些"],"qí zhāi":["亝","齊"],"yā yà":["亞","压","垭","壓","铔"],"jí qì":["亟","焏"],tóu:["亠","投","頭","骰"],"wáng wú":["亡"],"kàng háng gāng":["亢"],dà:["亣","眔"],jiāo:["交","僬","娇","嬌","峧","嶕","嶣","憍","椒","浇","澆","焦","礁","穚","簥","胶","膠","膲","茭","茮","蕉","虠","蛟","蟭","跤","轇","郊","鐎","驕","骄","鮫","鲛","鵁","鷦","鷮","鹪","䴔"],hài:["亥","嗐","害","氦","餀","饚","駭","駴","骇"],"hēng pēng":["亨"],mǔ:["亩","姆","峔","拇","母","牡","牳","畂","畆","畒","畝","畞","畮","砪","胟","踇","鉧","𬭁","𧿹"],ye:["亪"],xiǎng:["享","亯","响","想","晑","蚃","蠁","響","飨","餉","饗","饷","鮝","鯗","鱶","鲞"],jīng:["京","亰","兢","坕","坙","婛","惊","旌","旍","晶","橸","泾","涇","猄","睛","秔","稉","粳","精","経","經","綡","聙","腈","茎","荆","荊","菁","葏","驚","鯨","鲸","鶁","鶄","麖","麠","鼱","䴖"],tíng:["亭","停","婷","嵉","庭","廷","楟","榳","筳","聤","莛","葶","蜓","蝏","諪","邒","霆","鼮","䗴"],liàng:["亮","喨","悢","晾","湸","諒","谅","輌","輛","辆","鍄"],"qīn qìng":["亲","親"],bó:["亳","仢","侼","僰","博","帛","愽","懪","挬","搏","欂","浡","淿","渤","煿","牔","狛","瓝","礴","秡","箔","簙","糪","胉","脖","膊","舶","艊","萡","葧","袯","襏","襮","謈","踣","郣","鈸","鉑","鋍","鎛","鑮","钹","铂","镈","餺","馎","馛","馞","駁","駮","驳","髆","鵓","鹁"],yòu:["亴","佑","佦","侑","又","右","哊","唀","囿","姷","宥","峟","幼","狖","祐","蚴","誘","诱","貁","迶","酭","釉","鼬"],xiè:["亵","伳","偞","偰","僁","卨","卸","噧","塮","夑","媟","屑","屧","廨","徢","懈","暬","械","榍","榭","泻","洩","渫","澥","瀉","瀣","灺","炧","炨","燮","爕","獬","祄","禼","糏","紲","絏","絬","繲","纈","绁","缷","薢","薤","蟹","蠏","褉","褻","謝","谢","躞","邂","靾","韰","齂","齘","齛","齥","𬹼","𤫉"],"dǎn dàn":["亶","馾"],lián:["亷","劆","匲","匳","嗹","噒","奁","奩","嫾","帘","廉","怜","憐","涟","漣","濂","濓","瀮","熑","燫","簾","籢","籨","縺","翴","联","聨","聫","聮","聯","臁","莲","蓮","薕","螊","蠊","裢","褳","覝","謰","蹥","连","連","鎌","鐮","镰","鬑","鰱","鲢"],duǒ:["亸","哚","嚲","埵","崜","朵","朶","綞","缍","趓","躱","躲","軃"],"wěi mén":["亹","斖"],rén:["人","亻","仁","壬","忈","忎","朲","秂","芢","魜","鵀"],jí:["亼","亽","伋","佶","偮","卙","即","卽","及","叝","吉","堲","塉","姞","嫉","岌","嵴","嶯","彶","忣","急","愱","戢","揤","极","棘","楫","極","槉","檝","殛","汲","湒","潗","疾","瘠","皍","笈","箿","籍","級","级","膌","艥","蒺","蕀","蕺","蝍","螏","襋","觙","谻","踖","蹐","躤","輯","轚","辑","郆","銡","鍓","鏶","集","雧","霵","鹡","㴔"],wáng:["亾","仼","兦","莣","蚟"],"shén shí":["什"],lè:["仂","叻","忇","氻","泐","玏","砳","簕","艻","阞","韷","餎","鰳","鱳","鳓"],dīng:["仃","叮","帄","玎","疔","盯","耵","虰","靪"],zè:["仄","崱","庂","捑","昃","昗","汄"],"jǐn jìn":["仅","僅","嫤"],"pú pū":["仆"],"chóu qiú":["仇"],zhǎng:["仉","幥","掌","礃"],jīn:["今","堻","巾","惍","斤","津","珒","琻","璡","砛","筋","荕","衿","襟","觔","金","釒","釿","钅","鹶","黅","𬬱"],bīng:["仌","仒","兵","冫","冰","掤","氷","鋲"],réng:["仍","礽","芿","辸","陾"],fó:["仏","坲","梻"],"jīn sǎn":["仐"],lún:["仑","伦","侖","倫","囵","圇","婨","崘","崙","棆","沦","淪","磮","腀","菕","蜦","踚","輪","轮","錀","陯","鯩","𬬭"],cāng:["仓","仺","倉","凔","嵢","沧","滄","濸","獊","舱","艙","苍","蒼","螥","鸧"],"zǎi zǐ zī":["仔"],tā:["他","塌","它","榙","溻","牠","祂","褟","趿","遢","闧"],fù:["付","偩","傅","冨","副","咐","坿","复","妇","婦","媍","嬔","富","復","椱","祔","禣","竎","緮","縛","缚","腹","萯","蕧","蚹","蛗","蝜","蝮","袝","複","覄","覆","訃","詂","讣","負","賦","賻","负","赋","赙","赴","輹","鍑","鍢","阜","附","馥","駙","驸","鮒","鰒","鲋","鳆","㳇"],xiān:["仙","仚","佡","僊","僲","先","嘕","奾","屳","廯","忺","憸","掀","暹","杴","氙","珗","祆","秈","籼","繊","纎","纖","苮","褼","襳","跹","蹮","躚","酰","鍁","锨","韯","韱","馦","鱻","鶱","𬸣"],"tuō chà duó":["仛"],hóng:["仜","吰","垬","妅","娂","宏","宖","弘","彋","汯","泓","洪","浤","渱","潂","玒","玜","竑","竤","篊","粠","紘","紭","綋","纮","翃","翝","耾","苰","荭","葒","葓","谹","谼","鈜","鉷","鋐","閎","闳","霐","霟","鞃","魟","鴻","鸿","黉","黌","𫟹","𬭎"],tóng:["仝","佟","哃","峂","峝","庝","彤","晍","曈","桐","氃","浵","潼","犝","獞","眮","瞳","砼","秱","童","粡","膧","茼","蚒","詷","赨","酮","鉖","鉵","銅","铜","餇","鮦","鲖","𫍣","𦒍"],rèn:["仞","仭","刃","刄","妊","姙","屻","岃","扨","牣","祍","紉","紝","絍","纫","纴","肕","腍","衽","袵","訒","認","认","讱","軔","轫","鈓","靭","靱","韌","韧","飪","餁","饪"],qiān:["仟","佥","僉","千","圲","奷","孯","岍","悭","愆","慳","扦","拪","搴","撁","攐","攑","攓","杄","櫏","汘","汧","牵","牽","竏","签","簽","籖","籤","粁","芊","茾","蚈","褰","諐","謙","谦","谸","迁","遷","釺","鈆","鉛","鏲","钎","阡","韆","顅","騫","骞","鬜","鬝","鵮","鹐"],"gǎn hàn":["仠"],"yì gē":["仡"],dài:["代","侢","叇","垈","埭","岱","帒","带","帯","帶","廗","怠","戴","曃","柋","殆","瀻","玳","瑇","甙","簤","紿","緿","绐","艜","蝳","袋","襶","貣","贷","蹛","軑","軚","軩","轪","迨","霴","靆","鴏","黛","黱"],"lìng líng lǐng":["令"],chào:["仦","耖","觘"],"cháng zhǎng":["仧","兏","長","长"],sā:["仨"],cháng:["仩","偿","償","嘗","嚐","嫦","尝","常","徜","瑺","瓺","甞","肠","腸","膓","苌","萇","镸","鱨","鲿"],yí:["仪","侇","儀","冝","匜","咦","圯","夷","姨","宐","宜","宧","寲","峓","嶬","嶷","巸","彛","彜","彝","彞","怡","恞","扅","暆","栘","椬","椸","沂","洟","熪","瓵","痍","移","簃","籎","羠","胰","萓","蛦","螔","觺","謻","貽","贻","跠","迻","遺","鏔","頉","頤","頥","顊","颐","饴","鮧","鴺"],mù:["仫","凩","募","墓","幕","幙","慔","慕","暮","暯","木","楘","毣","沐","炑","牧","狇","目","睦","穆","艒","苜","莯","蚞","鉬","钼","雮","霂"],"men mén":["们"],fǎn:["仮","反","橎","返"],"chào miǎo":["仯"],"yǎng áng":["仰"],zhòng:["仲","众","堹","妕","媑","狆","眾","祌","筗","茽","蚛","衆","衶","諥"],"pǐ pí":["仳"],wò:["仴","偓","卧","媉","幄","握","楃","沃","渥","濣","瓁","瞃","硪","肟","腛","臥","齷","龌"],jiàn:["件","俴","健","僭","剑","剣","剱","劍","劎","劒","劔","墹","寋","建","徤","擶","旔","楗","毽","洊","涧","澗","牮","珔","瞷","磵","礀","箭","糋","繝","腱","臶","舰","艦","荐","薦","覸","諓","諫","譛","谏","賎","賤","贱","趝","践","踐","踺","轞","鉴","鍳","鍵","鐱","鑑","鑒","鑬","鑳","键","間","餞","饯","𬣡"],"jià jiè jie":["价"],"yǎo fó":["仸"],"rèn rén":["任"],"fèn bīn":["份"],dī:["仾","低","啲","埞","堤","岻","彽","樀","滴","磾","秪","羝","袛","趆","隄","鞮","䃅"],fǎng:["仿","倣","旊","昉","昘","瓬","眆","紡","纺","舫","訪","访","髣","鶭"],zhōng:["伀","刣","妐","幒","彸","忠","柊","汷","泈","炂","盅","籦","終","终","舯","蔠","蜙","螤","螽","衳","衷","蹱","鈡","鍾","鐘","钟","锺","鴤","鼨"],pèi:["伂","佩","姵","帔","斾","旆","沛","浿","珮","蓜","轡","辔","配","霈","馷"],diào:["伄","吊","弔","掉","瘹","盄","窎","窵","竨","訋","釣","鈟","銱","鋽","鑃","钓","铞","雿","魡"],dùn:["伅","潡","炖","燉","盾","砘","碷","踲","逇","遁","遯","鈍","钝"],wěn:["伆","刎","吻","呅","抆","桽","稳","穏","穩","紊","肳","脗"],xǐn:["伈"],kàng:["伉","匟","囥","抗","炕","鈧","钪"],ài:["伌","僾","塧","壒","嫒","嬡","愛","懓","暧","曖","爱","瑷","璦","皧","瞹","砹","硋","碍","礙","薆","譺","賹","鑀","隘","靉","餲","馤","鱫","鴱"],"jì qí":["伎","薺"],"xiū xǔ":["休"],"jìn yín":["伒"],dǎn:["伔","刐","撢","玬","瓭","紞","胆","膽","衴","賧","赕","黕","𬘘"],fū:["伕","呋","娐","孵","尃","怤","懯","敷","旉","玞","砆","稃","筟","糐","綒","肤","膚","荂","荴","衭","趺","跗","邞","鄜","酜","鈇","麩","麬","麱","麸","𫓧"],tǎng:["伖","傥","儻","埫","戃","曭","爣","矘","躺","鎲","钂","镋"],yōu:["优","優","呦","嚘","峳","幽","忧","悠","憂","攸","櫌","滺","瀀","纋","羪","耰","逌","鄾","麀"],huǒ:["伙","夥","火","煷","邩","鈥","钬"],"huì kuài":["会","會","浍","璯"],yǔ:["伛","俁","俣","偊","傴","匬","噳","圄","圉","宇","寙","屿","嶼","庾","挧","敔","斞","楀","瑀","瘐","祤","禹","穥","窳","羽","與","萭","貐","鄅","頨","麌","齬","龉","㺄"],cuì:["伜","啛","忰","悴","毳","淬","焠","疩","瘁","竁","粋","粹","紣","綷","翆","翠","脃","脆","脺","膬","膵","臎","萃","襊","顇"],sǎn:["伞","傘","糤","繖","饊","馓"],wěi:["伟","伪","偉","偽","僞","儰","娓","寪","屗","崣","嶉","徫","愇","捤","暐","梶","洧","浘","渨","炜","煒","猥","玮","瑋","痿","緯","纬","腲","艉","芛","苇","荱","萎","葦","蒍","蔿","蜼","諉","诿","踓","鍡","韑","韙","韡","韪","頠","颹","骩","骪","骫","鮪","鲔","𫇭","𬀩","𬱟"],"chuán zhuàn":["传","傳"],"chē jū":["伡","俥","车"],"jū chē":["車"],yá:["伢","厑","厓","堐","岈","崕","崖","涯","漄","牙","玡","琊","睚","笌","芽","蚜","衙","齖"],qiàn:["伣","俔","倩","儙","刋","壍","嬱","悓","棈","椠","槧","欠","歉","皘","篏","篟","縴","芡","蒨","蔳","輤","𬘬"],shāng:["伤","傷","商","墒","慯","殇","殤","滳","漡","熵","蔏","螪","觞","觴","謪","鬺"],chāng:["伥","倀","娼","昌","椙","淐","猖","琩","菖","裮","錩","锠","閶","阊","鯧","鲳","鼚"],"chen cāng":["伧"],xùn:["伨","侚","卂","噀","巺","巽","徇","愻","殉","殾","汛","潠","狥","蕈","訊","訓","訙","训","讯","迅","迿","逊","遜","鑂","顨","馴","驯"],xìn:["伩","囟","孞","脪","舋","衅","訫","釁","阠","顖"],chǐ:["伬","侈","卶","叺","呎","垑","恥","歯","耻","肔","胣","蚇","裭","褫","豉","鉹","齒","齿"],"xián xuán":["伭"],"nú nǔ":["伮"],"bó bǎi":["伯"],"gū gù":["估"],nǐ:["伱","你","儞","孴","拟","擬","旎","晲","狔","苨","薿","隬"],"nì ní":["伲"],bàn:["伴","办","半","姅","怑","扮","瓣","秚","絆","绊","辦","鉡","靽"],xù:["伵","侐","勖","勗","卹","叙","垿","壻","婿","序","恤","敍","敘","旭","昫","朂","槒","欰","殈","汿","沀","洫","溆","漵","潊","烅","烼","煦","獝","珬","盢","瞁","稸","絮","続","緒","緖","續","绪","续","聓","聟","蓄","藚","訹","賉","酗","頊","鱮","㳚"],zhòu:["伷","僽","冑","呪","咒","咮","宙","昼","晝","甃","皱","皺","籀","籒","籕","粙","紂","縐","纣","绉","胄","荮","葤","詋","酎","駎","驟","骤","㤘","㑇"],shēn:["伸","侁","兟","呻","堔","妽","娠","屾","峷","扟","敒","曑","柛","氠","深","燊","珅","甡","甧","申","眒","砷","穼","籶","籸","糂","紳","绅","罙","罧","葠","蓡","蔘","薓","裑","訷","詵","诜","身","駪","鯓","鯵","鰺","鲹","鵢","𬳽"],qū:["伹","佉","匤","呿","坥","屈","岖","岴","嶇","憈","抾","敺","浀","煀","祛","筁","粬","胠","蛆","蛐","袪","覻","詘","诎","趍","躯","軀","阹","駆","駈","驅","驱","髷","魼","鰸","鱋","鶌","麯","麴","麹","黢","㭕","𪨰","䓛"],"sì cì":["伺"],bēng:["伻","嘣","奟","崩","嵭","閍"],"sì shì":["似"],"jiā qié gā":["伽"],"yǐ chì":["佁"],"diàn tián":["佃","钿"],"hān gàn":["佄"],mài:["佅","劢","勱","卖","唛","売","脈","衇","賣","迈","邁","霡","霢","麥","麦","鿏"],dàn:["但","僤","啖","啗","啿","噉","嚪","帎","憺","旦","柦","氮","沊","泹","淡","狚","疍","癚","禫","窞","腅","萏","蓞","蛋","蜑","觛","訑","誕","诞","贉","霮","餤","饏","駳","髧","鴠","𫢸"],bù:["佈","勏","吥","咘","埗","埠","布","廍","怖","悑","步","歨","歩","瓿","篰","荹","蔀","踄","部","郶","鈈","钚","餢"],bǐ:["佊","俾","匕","夶","妣","彼","朼","柀","比","毞","沘","疕","秕","笔","筆","粃","聛","舭","貏","鄙"],"zhāo shào":["佋"],cǐ:["佌","此","泚","皉","𫚖"],wèi:["位","卫","味","喂","墛","媦","慰","懀","未","渭","煟","熭","犚","猬","畏","緭","罻","胃","苿","菋","藯","蘶","蝟","螱","衛","衞","褽","謂","讆","讏","谓","躗","躛","軎","轊","鏏","霨","餧","餵","饖","魏","鮇","鳚"],zuǒ:["佐","左","繓"],yǎng:["佒","傟","养","坱","岟","慃","懩","攁","氧","氱","炴","痒","癢","礢","紻","蝆","軮","養","駚"],"tǐ tī":["体","體"],zhàn:["佔","偡","嶘","战","戦","戰","栈","桟","棧","湛","站","綻","绽","菚","蘸","虥","虦","譧","轏","驏"],"hé hē hè":["何"],bì:["佖","咇","哔","嗶","坒","堛","壁","奰","妼","婢","嬖","币","幣","幤","庇","庳","廦","弊","弻","弼","彃","必","怭","愊","愎","敝","斃","梐","毕","毖","毙","湢","滗","滭","潷","煏","熚","狴","獘","獙","珌","璧","畀","畢","疪","痹","痺","皕","睤","碧","筚","箅","箆","篦","篳","粊","綼","縪","繴","罼","腷","苾","荜","萆","萞","蓖","蓽","蔽","薜","蜌","袐","襅","襞","襣","觱","詖","诐","貱","贔","赑","跸","蹕","躃","躄","避","邲","鄨","鄪","鉍","鏎","鐴","铋","閇","閉","閟","闭","陛","韠","飶","饆","馝","駜","驆","髀","魓","鮅","鷝","鷩","鼊"],tuó:["佗","坨","堶","岮","槖","橐","沱","砣","砤","碢","紽","詑","跎","酡","阤","陀","陁","駝","駞","騨","驒","驝","驼","鮀","鴕","鸵","鼉","鼍","鼧","𬶍"],shé:["佘","舌","虵","蛥"],"yì dié":["佚","昳","泆","軼"],"fó fú bì bó":["佛"],"zuò zuō":["作"],gōu:["佝","沟","溝","痀","篝","簼","緱","缑","袧","褠","鈎","鉤","钩","鞲","韝"],nìng:["佞","侫","倿","寕","泞","澝","濘"],qú:["佢","劬","戵","斪","欋","欔","氍","淭","灈","爠","璖","璩","癯","磲","籧","絇","胊","臞","菃","葋","蕖","蘧","蟝","蠷","蠼","衐","衢","躣","軥","鑺","鴝","鸜","鸲","鼩"],"yōng yòng":["佣"],wǎ:["佤","咓","砙","邷"],kǎ:["佧","垰","胩","裃","鉲"],bāo:["佨","勹","包","孢","煲","笣","胞","苞","蕔","裦","褒","襃","闁","齙","龅"],"huái huí":["佪"],"gé hè":["佫"],lǎo:["佬","咾","恅","栳","狫","珯","硓","老","耂","荖","蛯","轑","銠","铑","鮱"],xiáng:["佭","庠","栙","祥","絴","翔","詳","跭"],gé:["佮","匌","呄","嗝","塥","愅","挌","搿","槅","櫊","滆","膈","臵","茖","觡","諽","輵","轕","閣","阁","隔","鞷","韐","韚","騔","骼","鮯"],yáng:["佯","劷","垟","崸","徉","扬","揚","敭","旸","昜","暘","杨","楊","洋","炀","珜","疡","瘍","眻","蛘","諹","輰","鍚","钖","阦","阳","陽","霷","颺","飏","鰑","鴹","鸉"],bǎi:["佰","捭","摆","擺","栢","百","竡","粨","襬"],fǎ:["佱","峜","法","灋","砝","鍅"],mǐng:["佲","凕","姳","慏","酩"],"èr nài":["佴"],hěn:["佷","很","狠","詪","𬣳"],huó:["佸","活"],guǐ:["佹","匦","匭","厬","垝","姽","宄","庋","庪","恑","晷","湀","癸","祪","簋","蛫","蟡","觤","詭","诡","軌","轨","陒","鬼"],quán:["佺","全","啳","埢","姾","峑","巏","拳","搼","权","楾","権","權","泉","洤","湶","牷","犈","瑔","痊","硂","筌","縓","荃","葲","蜷","蠸","觠","詮","诠","跧","踡","輇","辁","醛","銓","铨","闎","顴","颧","駩","騡","鬈","鰁","鳈","齤"],tiāo:["佻","庣","旫","祧","聎"],jiǎo:["佼","儌","孂","挢","搅","撟","撹","攪","敫","敽","敿","晈","暞","曒","灚","燞","狡","璬","皎","皦","絞","纐","绞","腳","臫","蟜","譑","賋","踋","鉸","铰","餃","饺","鱎","龣"],cì:["佽","刾","庛","朿","栨","次","絘","茦","莿","蛓","螆","賜","赐"],xíng:["侀","刑","哘","型","娙","形","洐","硎","蛵","邢","郉","鈃","鉶","銒","钘","铏","陉","陘","餳","𫰛"],tuō:["侂","咃","咜","圫","托","拕","拖","汑","脫","脱","莌","袥","託","讬","飥","饦","魠","鮵"],kǎn:["侃","偘","冚","坎","惂","砍","莰","輡","轗","顑"],zhí:["侄","値","值","埴","執","姪","嬂","戠","执","摭","植","樴","淔","漐","直","禃","絷","縶","聀","职","職","膱","蟙","跖","踯","蹠","躑","軄","釞","馽"],gāi:["侅","垓","姟","峐","晐","畡","祴","荄","該","该","豥","賅","賌","赅","陔"],lái:["來","俫","倈","崃","崍","庲","来","梾","棶","涞","淶","猍","琜","筙","箂","莱","萊","逨","郲","錸","铼","騋","鯠","鶆","麳"],kuǎ:["侉","咵","垮","銙"],gōng:["侊","公","功","匑","匔","塨","宫","宮","工","幊","弓","恭","攻","杛","碽","糼","糿","肱","觥","觵","躬","躳","髸","龔","龚","䢼"],lì:["例","俐","俪","傈","儮","儷","凓","利","力","励","勵","历","厉","厤","厯","厲","叓","吏","呖","唎","唳","嚦","囇","坜","塛","壢","娳","婯","屴","岦","悧","悷","慄","戾","搮","暦","曆","曞","朸","枥","栃","栗","栛","檪","櫔","櫪","欐","歴","歷","沥","沴","涖","溧","濿","瀝","爏","犡","猁","珕","瑮","瓅","瓑","瓥","疬","痢","癧","盭","睙","砅","砺","砾","磿","礪","礫","礰","禲","秝","立","笠","篥","粒","粝","糲","脷","苈","茘","荔","莅","莉","蒚","蒞","藶","蚸","蛎","蛠","蜧","蝷","蠇","蠣","詈","讈","赲","轢","轣","轹","酈","鉝","隶","隷","雳","靂","靋","鬁","鳨","鴗","鷅","麜","𫵷","𬍛"],yīn:["侌","凐","喑","噾","囙","因","垔","堙","姻","婣","愔","慇","栶","氤","洇","溵","濦","瘖","禋","秵","筃","絪","緸","茵","蒑","蔭","裀","諲","銦","铟","闉","阥","阴","陰","陻","隂","霒","霠","鞇","音","韾","駰","骃","齗","𬘡","𬤇","𬮱"],mǐ:["侎","孊","弭","敉","洣","渳","灖","米","粎","羋","脒","芈","葞","蔝","銤"],zhū:["侏","株","槠","橥","櫧","櫫","洙","潴","瀦","猪","珠","硃","秼","絑","茱","蕏","蛛","蝫","蠩","袾","誅","諸","诛","诸","豬","跦","邾","銖","铢","駯","鮢","鯺","鴸","鼄"],ān:["侒","偣","媕","安","峖","庵","桉","氨","盦","盫","腤","菴","萻","葊","蓭","誝","諳","谙","鞌","鞍","韽","馣","鮟","鵪","鶕","鹌","𩽾"],lù:["侓","僇","勎","勠","圥","坴","塶","娽","峍","廘","彔","录","戮","摝","椂","樚","淕","淥","渌","漉","潞","琭","璐","甪","盝","睩","硉","祿","禄","稑","穋","箓","簏","簬","簵","簶","籙","粶","蔍","蕗","虂","螰","賂","赂","趢","路","踛","蹗","輅","轆","辂","辘","逯","醁","錄","録","錴","鏴","陸","騄","騼","鯥","鴼","鵦","鵱","鷺","鹭","鹿","麓","𫘧"],móu:["侔","劺","恈","眸","蛑","謀","谋","踎","鍪","鴾","麰"],ér:["侕","儿","児","兒","峏","栭","洏","粫","而","胹","荋","袻","輀","轜","陑","隭","髵","鮞","鲕","鴯","鸸"],"dòng tǒng tóng":["侗"],chà:["侘","奼","姹","岔","汊","詫","诧"],chì:["侙","傺","勅","勑","叱","啻","彳","恜","慗","憏","懘","抶","敕","斥","杘","湁","灻","炽","烾","熾","痓","痸","瘛","翄","翅","翤","翨","腟","赤","趩","遫","鉓","雴","飭","饬","鶒","鷘"],"gòng gōng":["供","共"],zhōu:["侜","周","喌","州","徟","洲","淍","炿","烐","珘","矪","舟","謅","譸","诌","賙","赒","輈","輖","辀","週","郮","銂","霌","駲","騆","鵃","鸼"],rú:["侞","儒","嚅","如","嬬","孺","帤","曘","桇","渪","濡","筎","茹","蕠","薷","蝡","蠕","袽","襦","邚","醹","銣","铷","顬","颥","鱬","鴑","鴽"],"jiàn cún":["侟"],xiá:["侠","俠","匣","峡","峽","敮","暇","柙","炠","烚","狎","狭","狹","珨","瑕","硖","硤","碬","祫","筪","縖","翈","舝","舺","蕸","赮","轄","辖","遐","鍜","鎋","陜","陿","霞","騢","魻","鶷","黠"],lǚ:["侣","侶","儢","吕","呂","屡","屢","履","挔","捛","旅","梠","焒","祣","稆","穭","絽","縷","缕","膂","膐","褛","褸","郘","鋁","铝"],ta:["侤"],"jiǎo yáo":["侥","僥","徺"],zhēn:["侦","偵","寊","帧","帪","幀","搸","斟","桢","楨","榛","樼","殝","浈","湞","潧","澵","獉","珍","珎","瑧","甄","眞","真","砧","碪","祯","禎","禛","箴","胗","臻","葴","蒖","蓁","薽","貞","贞","轃","遉","酙","針","鉁","錱","鍼","针","鱵"],"cè zè zhāi":["侧","側"],kuài:["侩","儈","凷","哙","噲","圦","块","塊","巜","廥","快","旝","欳","狯","獪","筷","糩","脍","膾","郐","鄶","鱠","鲙"],chái:["侪","儕","喍","柴","犲","祡","豺"],nóng:["侬","儂","农","哝","噥","檂","欁","浓","濃","燶","禯","秾","穠","脓","膿","蕽","襛","譨","農","辳","醲","鬞","𬪩"],jǐn:["侭","儘","卺","厪","巹","槿","漌","瑾","紧","緊","菫","蓳","謹","谨","錦","锦","饉","馑"],"hóu hòu":["侯","矦"],jiǒng:["侰","僒","冏","囧","泂","澃","炯","烱","煚","煛","熲","燛","窘","綗","褧","迥","逈","顈","颎","䌹"],"chěng tǐng":["侱"],"zhèn zhēn":["侲","揕"],zuò:["侳","做","唑","坐","岝","岞","座","祚","糳","胙","葃","葄","蓙","袏","阼"],qīn:["侵","兓","媇","嵚","嶔","欽","衾","誛","钦","顉","駸","骎","鮼"],jú:["侷","啹","婅","局","巈","椈","橘","泦","淗","湨","焗","犑","狊","粷","菊","蘜","趜","跼","蹫","輂","郹","閰","駶","驧","鵙","鵴","鶪","鼰","鼳","䴗"],"shù dōu":["侸"],tǐng:["侹","圢","娗","挺","涏","烶","珽","脡","艇","誔","頲","颋"],shèn:["侺","愼","慎","昚","涁","渗","滲","瘆","瘮","眘","祳","肾","胂","脤","腎","蜃","蜄","鋠"],"tuì tuó":["侻"],nán:["侽","喃","娚","抩","暔","枏","柟","楠","男","畘","莮","萳","遖"],xiāo:["侾","哓","嘵","嚻","囂","婋","宯","宵","庨","彇","揱","枭","枵","梟","櫹","歊","毊","消","潇","瀟","灱","灲","烋","焇","猇","獢","痚","痟","硝","硣","窙","箫","簘","簫","綃","绡","翛","膮","萧","蕭","虈","虓","蟂","蟏","蟰","蠨","踃","逍","銷","销","霄","颵","驍","骁","髇","髐","魈","鴞","鴵","鷍","鸮"],"biàn pián":["便","緶","缏"],tuǐ:["俀","腿","蹆","骽"],xì:["係","匸","卌","呬","墍","屃","屓","屭","忥","怬","恄","椞","潝","潟","澙","熂","犔","磶","禊","細","綌","縘","细","绤","舃","舄","蕮","虩","衋","覤","赩","趇","郤","釳","阋","隙","隟","霼","餼","饩","鬩","黖"],cù:["促","媨","憱","猝","瘄","瘯","簇","縬","脨","蔟","誎","趗","踧","踿","蹙","蹴","蹵","醋","顣","鼀"],é:["俄","囮","娥","峉","峨","峩","涐","珴","皒","睋","磀","莪","訛","誐","譌","讹","迗","鈋","鋨","锇","頟","額","额","魤","鵝","鵞","鹅"],qiú:["俅","叴","唒","囚","崷","巯","巰","扏","梂","殏","毬","求","汓","泅","浗","湭","煪","犰","玌","球","璆","皳","盚","紌","絿","肍","芁","莍","虬","虯","蛷","裘","觓","觩","訄","訅","賕","赇","逎","逑","遒","酋","釚","釻","銶","頄","鮂","鯄","鰽","鼽","𨱇"],xú:["俆","徐","禑"],"guàng kuāng":["俇"],kù:["俈","喾","嚳","库","庫","廤","瘔","絝","绔","袴","裤","褲","酷"],wù:["俉","务","務","勿","卼","坞","塢","奦","婺","寤","屼","岉","嵨","忢","悞","悟","悮","戊","扤","晤","杌","溩","焐","熃","物","痦","矹","窹","粅","蘁","誤","误","鋈","阢","隖","雾","霚","霧","靰","騖","骛","鶩","鹜","鼿","齀"],jùn:["俊","儁","呁","埈","寯","峻","懏","捃","攟","晙","棞","燇","珺","畯","竣","箟","蜠","賐","郡","陖","餕","馂","駿","骏","鵔","鵕","鵘","䐃"],liáng:["俍","墚","梁","椋","樑","粮","粱","糧","良","輬","辌","𫟅"],zǔ:["俎","唨","爼","祖","組","组","詛","诅","鎺","阻","靻"],"qiào xiào":["俏"],yǒng:["俑","勇","勈","咏","埇","塎","嵱","彮","怺","恿","悀","惥","愑","愹","慂","柡","栐","永","泳","湧","甬","蛹","詠","踊","踴","鯒","鲬"],hùn:["俒","倱","圂","尡","慁","掍","溷","焝","睴","觨","諢","诨"],jìng:["俓","傹","境","妌","婙","婧","弪","弳","径","徑","敬","曔","桱","梷","浄","瀞","獍","痉","痙","竞","竟","竫","競","竸","胫","脛","莖","誩","踁","迳","逕","鏡","镜","靖","静","靜","鵛"],sàn:["俕","閐"],pěi:["俖"],sú:["俗"],xī:["俙","僖","兮","凞","卥","厀","吸","唏","唽","嘻","噏","嚱","夕","奚","嬆","嬉","屖","嵠","巇","希","徆","徯","息","悉","悕","惁","惜","昔","晞","晰","晳","曦","析","桸","榽","樨","橀","欷","氥","汐","浠","淅","渓","溪","烯","焁","焈","焟","熄","熈","熙","熹","熺","熻","燨","爔","牺","犀","犠","犧","琋","瘜","皙","睎","瞦","矽","硒","磎","礂","稀","穸","窸","粞","糦","緆","繥","羲","翕","翖","肸","肹","膝","舾","莃","菥","蒠","蜥","螅","蟋","蠵","西","觹","觽","觿","譆","谿","豀","豨","豯","貕","赥","邜","鄎","酅","醯","釸","錫","鏭","鐊","鑴","锡","隵","餏","饎","饻","鯑","鵗","鸂","鼷"],lǐ:["俚","娌","峢","峲","李","欚","浬","澧","理","礼","禮","粴","裏","裡","豊","逦","邐","醴","鋰","锂","鯉","鱧","鱱","鲤","鳢"],bǎo:["保","堢","媬","宝","寚","寳","寶","珤","緥","葆","藵","褓","賲","靌","飹","飽","饱","駂","鳵","鴇","鸨"],"yú shù yù":["俞"],"sì qí":["俟"],"xìn shēn":["信"],xiū:["俢","修","咻","庥","樇","烌","羞","脙","脩","臹","貅","銝","鎀","飍","饈","馐","髤","髹","鮴","鱃","鵂","鸺","䗛"],dì:["俤","偙","僀","埊","墑","墬","娣","帝","怟","旳","梊","焍","玓","甋","眱","睇","碲","祶","禘","第","締","缔","腣","菂","蒂","蔕","蝃","蝭","螮","諦","谛","踶","递","逓","遞","遰","鉪","𤧛","䗖"],chóu:["俦","儔","嬦","惆","愁","懤","栦","燽","畴","疇","皗","稠","筹","籌","絒","綢","绸","菗","詶","讎","讐","踌","躊","酧","酬","醻","雔","雠","雦"],zhì:["俧","偫","儨","制","劕","垁","娡","寘","帙","帜","幟","庢","庤","廌","彘","徏","徝","志","忮","懥","懫","挃","挚","掷","摯","擲","旘","晊","智","栉","桎","梽","櫍","櫛","治","洷","滍","滞","滯","潌","瀄","炙","熫","狾","猘","璏","瓆","痔","痣","礩","祑","秩","秷","稚","稺","穉","窒","紩","緻","置","翐","膣","至","致","芖","蛭","袟","袠","製","覟","觗","觯","觶","誌","豑","豒","貭","質","贄","质","贽","跱","踬","躓","輊","轾","郅","銍","鋕","鑕","铚","锧","陟","隲","雉","駤","騭","騺","驇","骘","鯯","鴙","鷙","鸷","𬃊"],"liǎ liǎng":["俩"],jiǎn:["俭","倹","儉","减","剪","堿","弿","彅","戩","戬","拣","挸","捡","揀","撿","枧","柬","梘","检","検","檢","減","湕","瀽","瑐","睑","瞼","硷","碱","礆","笕","筧","简","簡","絸","繭","翦","茧","藆","蠒","裥","襇","襉","襺","詃","謇","謭","譾","谫","趼","蹇","鐗","鬋","鰎","鹸","鹻","鹼"],huò:["俰","咟","嚯","嚿","奯","彠","惑","或","擭","旤","曤","檴","沎","湱","瀖","獲","癨","眓","矐","祸","禍","穫","窢","耯","臛","艧","获","蒦","藿","蠖","謋","貨","货","鍃","鑊","镬","雘","霍","靃","韄","㸌"],"jù jū":["俱","据","鋸","锯"],xiào:["俲","傚","効","咲","哮","啸","嘋","嘨","嘯","孝","效","斅","斆","歗","涍","熽","笑","詨","誟"],pái:["俳","徘","牌","犤","猅","簰","簲","輫"],biào:["俵","鰾","鳔"],"chù tì":["俶"],fèi:["俷","剕","厞","吠","屝","废","廃","廢","昲","曊","櫠","沸","濷","狒","癈","肺","萉","費","费","鐨","镄","陫","靅","鼣"],fèng:["俸","凤","奉","湗","焨","煈","賵","赗","鳯","鳳","鴌"],ǎn:["俺","唵","埯","揞","罯","銨","铵"],bèi:["俻","倍","偝","偹","備","僃","备","悖","惫","愂","憊","昁","梖","焙","牬","犕","狈","狽","珼","琲","碚","禙","糒","苝","蓓","蛽","褙","貝","贝","軰","輩","辈","邶","郥","鄁","鋇","鐾","钡","鞁","鞴","𬇙"],yù:["俼","儥","喅","喩","喻","域","堉","妪","嫗","寓","峪","嶎","庽","彧","御","愈","慾","戫","昱","棛","棜","棫","櫲","欎","欝","欲","毓","浴","淯","滪","潏","澦","灪","焴","煜","燏","燠","爩","狱","獄","玉","琙","瘉","癒","砡","硢","硲","礇","礖","礜","禦","秗","稢","稶","篽","籞","籲","粖","緎","罭","聿","肀","艈","芋","芌","茟","蒮","蓣","蓹","蕷","蘌","蜟","蜮","袬","裕","誉","諭","譽","谕","豫","軉","輍","逳","遇","遹","郁","醧","鈺","鋊","錥","鐭","钰","閾","阈","雤","霱","預","预","飫","饇","饫","馭","驈","驭","鬰","鬱","鬻","魊","鱊","鳿","鴥","鴧","鴪","鵒","鷸","鸒","鹆","鹬"],xīn:["俽","噺","妡","嬜","廞","心","忄","忻","惞","新","昕","杺","欣","歆","炘","盺","薪","訢","辛","邤","鈊","鋅","鑫","锌","馨","馫","䜣","𫷷"],"hǔ chí":["俿"],jiù:["倃","僦","匓","匛","匶","厩","咎","就","廄","廏","廐","慦","捄","救","旧","柩","柾","桕","欍","殧","疚","臼","舅","舊","鯦","鷲","鹫","麔","齨","㠇"],yáo:["倄","傜","嗂","垚","堯","姚","媱","尧","尭","峣","嶢","嶤","徭","揺","搖","摇","摿","暚","榣","烑","爻","猺","珧","瑤","瑶","磘","窑","窯","窰","肴","蘨","謠","謡","谣","軺","轺","遙","遥","邎","顤","颻","飖","餆","餚","鰩","鱙","鳐"],"cuì zú":["倅"],"liǎng liǎ":["倆"],wǎn:["倇","唍","婉","惋","挽","晚","晥","晩","晼","梚","椀","琬","畹","皖","盌","碗","綩","綰","绾","脘","萖","踠","輓","鋔"],zǒng:["倊","偬","傯","嵸","总","惣","捴","搃","摠","燪","総","緫","縂","總","蓗"],guān:["倌","关","官","棺","瘝","癏","窤","蒄","関","闗","關","鰥","鱞","鳏"],tiǎn:["倎","唺","忝","悿","晪","殄","淟","睓","腆","舔","覥","觍","賟","錪","餂"],mén:["們","扪","捫","璊","菛","虋","鍆","钔","門","閅","门","𫞩"],"dǎo dào":["倒"],"tán tàn":["倓","埮"],"juè jué":["倔"],chuí:["倕","垂","埀","捶","搥","桘","棰","槌","箠","腄","菙","錘","鎚","锤","陲","顀"],xìng:["倖","姓","婞","嬹","幸","性","悻","杏","涬","緈","臖","荇","莕","葕"],péng:["倗","傰","塜","塳","弸","憉","捀","朋","棚","椖","樥","硼","稝","竼","篷","纄","膨","芃","蓬","蘕","蟚","蟛","袶","輣","錋","鑝","韸","韼","騯","髼","鬅","鬔","鵬","鹏"],"tǎng cháng":["倘"],hòu:["候","厚","后","垕","堠","後","洉","茩","豞","逅","郈","鮜","鱟","鲎","鲘"],tì:["倜","剃","嚏","嚔","屉","屜","悌","悐","惕","惖","戻","掦","替","朑","歒","殢","涕","瓋","笹","籊","薙","褅","逖","逷","髰","鬀","鬄"],gàn:["倝","凎","幹","榦","檊","淦","灨","盰","紺","绀","詌","贑","赣","骭","㽏"],"liàng jìng":["倞","靓"],suī:["倠","哸","夊","滖","濉","眭","睢","芕","荽","荾","虽","雖","鞖"],"chàng chāng":["倡"],jié:["倢","偼","傑","刦","刧","刼","劫","劼","卩","卪","婕","媫","孑","岊","崨","嵥","嶻","巀","幯","截","捷","掶","擮","昅","杢","杰","桀","桝","楬","楶","榤","洁","滐","潔","狤","睫","礍","竭","節","羯","莭","蓵","蛣","蜐","蠘","蠞","蠽","衱","袺","訐","詰","誱","讦","踕","迼","鉣","鍻","镼","頡","鮚","鲒","㛃"],"kǒng kōng":["倥"],juàn:["倦","劵","奆","慻","桊","淃","狷","獧","眷","睊","睠","絭","絹","绢","罥","羂","腃","蔨","鄄","餋"],zōng:["倧","堫","宗","嵏","嵕","惾","朡","棕","椶","熧","猣","磫","緃","翪","腙","葼","蝬","豵","踨","踪","蹤","鍐","鑁","騌","騣","骔","鬃","鬉","鬷","鯮","鯼"],ní:["倪","坭","埿","尼","屔","怩","淣","猊","籾","聣","蚭","蜺","觬","貎","跜","輗","郳","鈮","铌","霓","馜","鯢","鲵","麑","齯","𫐐","𫠜"],zhuō:["倬","拙","捉","桌","梲","棁","棳","槕","涿","窧","鐯","䦃"],"wō wēi":["倭"],luǒ:["倮","剆","曪","瘰","癳","臝","蓏","蠃","裸","躶"],sōng:["倯","凇","娀","崧","嵩","庺","憽","松","枀","枩","柗","梥","檧","淞","濍","硹","菘","鬆"],lèng:["倰","堎","愣","睖","踜"],zì:["倳","剚","字","恣","渍","漬","牸","眥","眦","胔","胾","自","茡","荢"],bèn:["倴","坌","捹","撪","渀","笨","逩"],cǎi:["倸","啋","婇","彩","採","棌","毝","睬","綵","跴","踩"],zhài:["债","債","寨","瘵","砦"],yē:["倻","吔","噎","擨","暍","椰","歋","潱","蠮"],shà:["倽","唼","喢","歃","箑","翜","翣","萐","閯","霎"],qīng:["倾","傾","卿","圊","寈","氢","氫","淸","清","蜻","軽","輕","轻","郬","錆","鑋","靑","青","鯖"],yīng:["偀","嘤","噟","嚶","婴","媖","嫈","嬰","孆","孾","愥","撄","攖","朠","桜","樱","櫻","渶","煐","珱","瑛","璎","瓔","甇","甖","碤","礯","緓","纓","绬","缨","罂","罃","罌","膺","英","莺","蘡","蝧","蠳","褮","譻","賏","軈","鑍","锳","霙","韺","鴬","鶑","鶧","鶯","鷪","鷹","鸎","鸚","鹦","鹰","䓨"],"chēng chèn":["偁","爯"],ruǎn:["偄","朊","瑌","瓀","碝","礝","腝","軟","輭","软","阮"],"zhòng tóng":["偅"],chǔn:["偆","惷","睶","萶","蠢","賰"],"jiǎ jià":["假"],"jì jié":["偈"],"bǐng bìng":["偋"],ruò:["偌","叒","嵶","弱","楉","焫","爇","箬","篛","蒻","鄀","鰙","鰯","鶸"],tí:["偍","厗","啼","嗁","崹","漽","瑅","睼","禵","稊","緹","缇","罤","蕛","褆","謕","趧","蹄","蹏","醍","鍗","題","题","騠","鮷","鯷","鳀","鵜","鷤","鹈","𫘨"],wēi:["偎","危","喴","威","媙","嶶","巍","微","愄","揋","揻","椳","楲","溦","烓","煨","燰","癓","縅","葨","葳","薇","蜲","蝛","覣","詴","逶","隇","隈","霺","鰃","鰄","鳂"],piān:["偏","囨","媥","楄","犏","篇","翩","鍂"],yàn:["偐","厌","厭","唁","喭","嚈","嚥","堰","妟","姲","嬊","嬿","宴","彥","彦","敥","晏","暥","曕","曣","滟","灎","灔","灧","灩","焔","焰","焱","熖","燄","牪","猒","砚","硯","艳","艶","艷","覎","觃","觾","諺","讌","讞","谚","谳","豓","豔","贋","贗","赝","軅","酀","酽","醼","釅","雁","餍","饜","騐","験","騴","驗","驠","验","鬳","鳫","鴈","鴳","鷃","鷰","齞"],"tǎng dàng":["偒"],è:["偔","匎","卾","厄","呝","咢","噩","垩","堊","堮","岋","崿","廅","悪","愕","戹","扼","搤","搹","擜","櫮","歞","歺","湂","琧","砈","砐","硆","腭","苊","萼","蕚","蚅","蝁","覨","諤","讍","谔","豟","軛","軶","轭","遌","遏","遻","鄂","鈪","鍔","鑩","锷","阨","阸","頞","顎","颚","餓","餩","饿","鰐","鰪","鱷","鳄","鶚","鹗","齃","齶","𫫇","𥔲"],xié:["偕","勰","协","協","嗋","垥","奊","恊","愶","拹","携","撷","擕","擷","攜","斜","旪","熁","燲","綊","緳","縀","缬","翓","胁","脅","脇","脋","膎","蝢","衺","襭","諧","讗","谐","鞋","鞵","龤","㙦"],chě:["偖","扯","撦"],shěng:["偗","渻","眚"],chā:["偛","嗏","扠","挿","插","揷","疀","臿","艖","銟","鍤","锸","餷"],huáng:["偟","凰","喤","堭","墴","媓","崲","徨","惶","楻","湟","煌","獚","瑝","璜","癀","皇","磺","穔","篁","簧","艎","葟","蝗","蟥","諻","趪","遑","鍠","鐄","锽","隍","韹","餭","騜","鰉","鱑","鳇","鷬","黃","黄","𨱑"],yǎo:["偠","咬","婹","宎","岆","杳","柼","榚","溔","狕","窅","窈","舀","苭","闄","騕","鷕","齩"],"chǒu qiào":["偢"],yóu:["偤","尤","庮","怣","沋","油","浟","游","犹","猶","猷","由","疣","秞","肬","莜","莸","蕕","蚰","蝣","訧","輏","輶","逰","遊","邮","郵","鈾","铀","駀","魷","鮋","鱿","鲉","𬨎"],xū:["偦","墟","媭","嬃","楈","欨","歔","燸","疞","盱","綇","縃","繻","胥","蕦","虗","虚","虛","蝑","裇","訏","許","諝","譃","谞","鑐","需","須","须","顼","驉","鬚","魆","魖","𬣙","𦈡"],zhā:["偧","哳","抯","挓","揸","摣","樝","渣","皶","觰","譇","齄","齇"],cī:["偨","疵","蠀","趀","骴","髊","齹"],bī:["偪","屄","楅","毴","豍","逼","鰏","鲾","鵖"],xún:["偱","噚","寻","尋","峋","巡","廵","循","恂","揗","攳","旬","杊","栒","桪","樳","洵","浔","潯","燅","燖","珣","璕","畃","紃","荀","蟳","詢","询","鄩","鱏","鱘","鲟","𬘓","𬩽","𬍤","𬊈"],"cāi sī":["偲"],duān:["偳","媏","端","褍","鍴"],ǒu:["偶","吘","嘔","耦","腢","蕅","藕","𬉼","𠙶"],tōu:["偷","偸","鍮"],"zán zá zǎ":["偺"],"lǚ lóu":["偻","僂"],fèn:["偾","僨","奋","奮","弅","忿","愤","憤","瀵","瞓","秎","粪","糞","膹","鱝","鲼"],"kuǐ guī":["傀"],sǒu:["傁","叜","叟","嗾","櫢","瞍","薮","藪"],"zhì sī tí":["傂"],sù:["傃","僳","嗉","塐","塑","夙","嫊","愫","憟","榡","樎","樕","殐","泝","涑","溯","溸","潚","潥","玊","珟","璛","簌","粛","粟","素","縤","肃","肅","膆","蔌","藗","觫","訴","謖","诉","谡","趚","蹜","速","遡","遬","鋉","餗","驌","骕","鱐","鷫","鹔","𫗧"],xiā:["傄","煆","瞎","虲","谺","颬","鰕"],"yuàn yuán":["傆","媛"],rǒng:["傇","冗","宂","氄","軵"],nù:["傉","怒"],yùn:["傊","孕","恽","惲","愠","慍","枟","腪","蕴","薀","藴","蘊","褞","貟","运","運","郓","鄆","酝","醖","醞","韗","韞","韵","韻","餫"],"gòu jiǎng":["傋"],mà:["傌","嘜","榪","睰","祃","禡","罵","閁","駡","骂","鬕"],bàng:["傍","塝","棒","玤","稖","艕","蒡","蜯","謗","谤","鎊","镑"],diān:["傎","厧","嵮","巅","巓","巔","掂","攧","敁","槇","滇","癫","癲","蹎","顚","顛","颠","齻"],táng:["傏","唐","啺","坣","堂","塘","搪","棠","榶","溏","漟","煻","瑭","磄","禟","篖","糃","糖","糛","膅","膛","蓎","螗","螳","赯","踼","鄌","醣","鎕","隚","餹","饄","鶶","䣘"],hào:["傐","哠","恏","昊","昦","晧","暠","暤","暭","曍","浩","淏","澔","灏","灝","皓","皜","皞","皡","皥","耗","聕","薃","號","鄗","顥","颢","鰝"],"xī xì":["傒"],shān:["傓","删","刪","剼","圸","山","挻","搧","柵","檆","潸","澘","煽","狦","珊","笘","縿","羴","羶","脠","舢","芟","衫","跚","軕","邖","閊","鯅"],"qiàn jiān":["傔"],"què jué":["傕","埆"],"cāng chen":["傖"],róng:["傛","媶","嫆","嬫","容","峵","嵘","嶸","戎","搈","曧","栄","榕","榮","榵","毧","溶","瀜","烿","熔","狨","瑢","穁","絨","绒","羢","肜","茙","茸","荣","蓉","蝾","融","螎","蠑","褣","鎔","镕","駥"],"tà tàn":["傝"],suō:["傞","唆","嗍","嗦","娑","摍","桫","梭","睃","簑","簔","羧","莏","蓑","趖","鮻"],dǎi:["傣","歹"],zài:["傤","儎","再","在","扗","洅","載","酨"],gǔ:["傦","古","啒","尳","愲","榖","榾","汩","淈","濲","瀔","牯","皷","皼","盬","瞽","穀","罟","羖","股","脵","臌","薣","蛊","蠱","詁","诂","轂","逧","鈷","钴","餶","馉","鼓","鼔","𦙶"],bīn:["傧","宾","彬","斌","椕","滨","濒","濱","濵","瀕","繽","缤","虨","豩","豳","賓","賔","邠","鑌","镔","霦","顮"],chǔ:["储","儲","杵","椘","楚","楮","檚","濋","璴","础","礎","禇","處","齭","齼","𬺓"],nuó:["傩","儺","挪","梛","橠"],"cān càn":["傪"],lěi:["傫","儡","厽","垒","塁","壘","壨","櫐","灅","癗","矋","磊","礨","耒","蕌","蕾","藟","蘽","蠝","誄","讄","诔","鑸","鸓"],cuī:["催","凗","墔","崔","嵟","慛","摧","榱","獕","磪","鏙"],yōng:["傭","嗈","墉","壅","嫞","庸","廱","慵","拥","擁","滽","灉","牅","痈","癕","癰","臃","邕","郺","鄘","鏞","镛","雍","雝","饔","鱅","鳙","鷛"],"zāo cáo":["傮"],sǒng:["傱","嵷","怂","悚","愯","慫","竦","耸","聳","駷","㧐"],ào:["傲","坳","垇","墺","奡","嫯","岙","岰","嶴","懊","擙","澳","鏊","驁","骜"],"qī còu":["傶"],chuǎng:["傸","磢","闖","闯"],shǎ:["傻","儍"],hàn:["傼","垾","悍","憾","扞","捍","撖","撼","旱","晘","暵","汉","涆","漢","瀚","焊","猂","皔","睅","翰","莟","菡","蛿","蜭","螒","譀","輚","釬","銲","鋎","雗","頷","顄","颔","駻","鶾"],zhāng:["傽","嫜","张","張","彰","慞","暲","樟","漳","獐","璋","章","粻","蔁","蟑","遧","鄣","鏱","餦","騿","鱆","麞"],"yān yàn":["傿","墕","嬮"],"piào biāo":["僄","骠"],liàn:["僆","堜","媡","恋","戀","楝","殓","殮","湅","潋","澰","瀲","炼","煉","瑓","練","纞","练","萰","錬","鍊","鏈","链","鰊","𬶠"],màn:["㵘","僈","墁","幔","慢","曼","漫","澷","熳","獌","縵","缦","蔄","蘰","鄤","鏝","镘","𬜬"],"tàn tǎn":["僋"],yíng:["僌","営","塋","嬴","攍","楹","櫿","溁","溋","滢","潆","濙","濚","濴","瀅","瀛","瀠","瀯","灐","灜","熒","營","瑩","盁","盈","禜","籝","籯","縈","茔","荧","莹","萤","营","萦","萾","蓥","藀","蛍","蝇","蝿","螢","蠅","謍","贏","赢","迎","鎣"],dòng:["働","冻","凍","动","動","姛","戙","挏","栋","棟","湩","硐","胨","胴","腖","迵","霘","駧"],zhuàn:["僎","啭","囀","堟","撰","灷","瑑","篆","腞","蒃","襈","譔","饌","馔"],xiàng:["像","勨","向","嚮","姠","嶑","曏","橡","珦","缿","蟓","衖","襐","象","鐌","項","项","鱌"],shàn:["僐","善","墠","墡","嬗","擅","敾","椫","樿","歚","汕","灗","疝","磰","繕","缮","膳","蟮","蟺","訕","謆","譱","讪","贍","赡","赸","鄯","鐥","饍","騸","骟","鱓","鱔","鳝","𫮃"],"tuí tuǐ":["僓"],zǔn:["僔","噂","撙","譐"],pú:["僕","匍","圤","墣","濮","獛","璞","瞨","穙","莆","菐","菩","葡","蒱","蒲","贌","酺","鏷","镤"],láo:["僗","劳","労","勞","哰","崂","嶗","憥","朥","浶","牢","痨","癆","窂","簩","醪","鐒","铹","顟","髝","𫭼"],chǎng:["僘","厰","廠","敞","昶","氅","鋹","𬬮"],guāng:["僙","光","咣","垙","姯","洸","灮","炗","炚","炛","烡","珖","胱","茪","輄","銧","黆","𨐈"],liáo:["僚","嘹","嫽","寥","寮","尞","屪","嵺","嶚","嶛","廫","憀","敹","暸","橑","獠","璙","疗","療","竂","簝","繚","缭","聊","膋","膫","藔","蟟","豂","賿","蹘","辽","遼","飉","髎","鷯","鹩"],dèng:["僜","凳","墱","嶝","櫈","瞪","磴","覴","邓","鄧","隥"],"chán zhàn zhuàn":["僝"],bō:["僠","嶓","拨","撥","播","波","溊","玻","癶","盋","砵","碆","礡","缽","菠","袰","蹳","鉢","钵","餑","饽","驋","鱍","𬭛"],huì:["僡","匯","卉","喙","嘒","嚖","圚","嬒","寭","屶","屷","彗","彙","彚","徻","恚","恵","惠","慧","憓","懳","晦","暳","槥","橞","檅","櫘","汇","泋","滙","潓","烩","燴","獩","璤","瞺","硊","秽","穢","篲","絵","繪","绘","翙","翽","荟","蔧","蕙","薈","薉","蟪","詯","誨","諱","譓","譿","讳","诲","賄","贿","鐬","闠","阓","靧","頮","顪","颒","餯","𬤝","𬭬"],chuǎn:["僢","喘","舛","荈","踳"],"tiě jiàn":["僣"],sēng:["僧","鬙"],xiàn:["僩","僴","哯","垷","塪","姭","娊","宪","岘","峴","憲","撊","晛","橌","橺","涀","瀗","献","獻","现","現","県","睍","粯","糮","絤","綫","線","线","缐","羡","羨","腺","臔","臽","苋","莧","誢","豏","鋧","錎","限","陥","陷","霰","餡","馅","麲","鼸","𬀪","𪾢"],"yù jú":["僪"],"è wū":["僫"],"tóng zhuàng":["僮"],lǐn:["僯","凛","凜","廩","廪","懍","懔","撛","檁","檩","澟","癛","癝"],gù:["僱","凅","固","堌","崓","崮","故","梏","棝","牿","痼","祻","錮","锢","雇","顧","顾","鯝","鲴"],jiāng:["僵","壃","姜","橿","殭","江","畕","疅","礓","繮","缰","翞","茳","葁","薑","螀","螿","豇","韁","鱂","鳉"],mǐn:["僶","冺","刡","勄","悯","惽","愍","慜","憫","抿","敃","敏","敯","泯","潣","皿","笢","笽","簢","蠠","閔","閩","闵","闽","鰵","鳘","黽"],jìn:["僸","凚","噤","嚍","墐","壗","妗","嬧","搢","晉","晋","枃","殣","浕","浸","溍","濅","濜","烬","煡","燼","琎","瑨","璶","盡","祲","縉","缙","荩","藎","覲","觐","賮","贐","赆","近","进","進","靳","齽"],"jià jie":["價"],qiào:["僺","峭","帩","撬","殻","窍","竅","誚","诮","躈","陗","鞩","韒","髚"],pì:["僻","媲","嫓","屁","澼","甓","疈","譬","闢","鷿","鸊","䴙"],sài:["僿","簺","賽","赛"],"chán tǎn shàn":["儃"],"dāng dàng":["儅","当","闣"],xuān:["儇","喧","塇","媗","宣","愃","愋","揎","昍","暄","煊","煖","瑄","睻","矎","禤","箮","翧","翾","萱","萲","蓒","蕿","藼","蘐","蝖","蠉","諠","諼","譞","谖","軒","轩","鍹","駽","鰚","𫓶","𫍽"],"dān dàn":["儋","擔","瘅"],càn:["儏","澯","灿","燦","璨","粲","薒","謲"],"bīn bìn":["儐"],"án àn":["儑"],tái:["儓","坮","嬯","抬","擡","檯","炱","炲","籉","臺","薹","跆","邰","颱","鮐","鲐"],lán:["儖","兰","囒","婪","岚","嵐","幱","拦","攔","斓","斕","栏","欄","欗","澜","瀾","灆","灡","燣","燷","璼","篮","籃","籣","繿","葻","蓝","藍","蘫","蘭","褴","襕","襤","襴","襽","譋","讕","谰","躝","鑭","镧","闌","阑","韊","𬒗"],"nǐ yì ài yí":["儗"],méng:["儚","幪","曚","朦","橗","檬","氋","溕","濛","甍","甿","盟","礞","艨","莔","萌","蕄","虻","蝱","鄳","鄸","霿","靀","顭","饛","鯍","鸏","鹲","𫑡","㠓"],níng:["儜","凝","咛","嚀","嬣","柠","橣","檸","狞","獰","聍","聹","薴","鑏","鬡","鸋"],qióng:["儝","卭","宆","惸","憌","桏","橩","焪","焭","煢","熍","琼","瓊","睘","穷","穹","窮","竆","笻","筇","舼","茕","藑","藭","蛩","蛬","赹","跫","邛","銎","䓖"],liè:["儠","冽","列","劣","劽","埒","埓","姴","峛","巤","挒","捩","栵","洌","浖","烈","烮","煭","犣","猎","猟","獵","聗","脟","茢","蛚","趔","躐","迾","颲","鬛","鬣","鮤","鱲","鴷","䴕","𫚭"],kuǎng:["儣","夼","懭"],bào:["儤","勽","報","忁","报","抱","曓","爆","犦","菢","虣","蚫","豹","鉋","鑤","铇","骲","髱","鮑","鲍"],biāo:["儦","墂","幖","彪","标","標","滮","瀌","熛","爂","猋","瘭","磦","膘","臕","謤","贆","鏢","鑣","镖","镳","颮","颷","飆","飇","飈","飊","飑","飙","飚","驫","骉","髟"],zǎn:["儧","儹","噆","攅","昝","趱","趲"],háo:["儫","嗥","嘷","噑","嚎","壕","椃","毜","毫","濠","獆","獔","竓","籇","蚝","蠔","譹","豪"],qìng:["儬","凊","庆","慶","櫦","濪","碃","磬","罄","靘"],chèn:["儭","嚫","榇","櫬","疢","衬","襯","讖","谶","趁","趂","齓","齔","龀"],téng:["儯","幐","滕","漛","疼","籐","籘","縢","腾","藤","虅","螣","誊","謄","邆","駦","騰","驣","鰧","䲢"],"lǒng lóng lòng":["儱"],"chán chàn":["儳"],"ráng xiāng":["儴","勷"],"huì xié":["儶"],luó:["儸","攞","椤","欏","猡","玀","箩","籮","罗","羅","脶","腡","萝","蘿","螺","覼","逻","邏","鏍","鑼","锣","镙","饠","騾","驘","骡","鸁"],léi:["儽","嫘","檑","欙","瓃","畾","縲","纍","纝","缧","罍","羸","蔂","蘲","虆","轠","鐳","鑘","镭","雷","靁","鱩","鼺"],"nàng nāng":["儾"],"wù wū":["兀"],yǔn:["允","喗","夽","抎","殒","殞","狁","磒","荺","賱","鈗","阭","陨","隕","霣","馻","齫","齳"],zān:["兂","橵","簪","簮","糌","鐕","鐟","鵤"],yuán:["元","円","原","厡","厵","园","圆","圎","園","圓","垣","塬","媴","嫄","援","榞","榬","橼","櫞","沅","湲","源","溒","爰","猨","猿","笎","緣","縁","缘","羱","茒","薗","蝝","蝯","螈","袁","褤","謜","轅","辕","邍","邧","酛","鈨","鎱","騵","魭","鶢","鶰","黿","鼋","𫘪"],xiōng:["兄","兇","凶","匂","匈","哅","忷","恟","汹","洶","胷","胸","芎","訩","詾","讻"],chōng:["充","嘃","忡","憃","憧","摏","沖","浺","珫","罿","翀","舂","艟","茺","衝","蹖","㳘"],zhào:["兆","垗","旐","曌","枛","櫂","照","燳","狣","瞾","笊","罀","罩","羄","肁","肇","肈","詔","诏","赵","趙","鮡","𬶐"],"duì ruì yuè":["兊","兌","兑"],kè:["克","刻","勀","勊","堁","娔","客","恪","愙","氪","溘","碦","緙","缂","艐","衉","課","课","錁","锞","騍","骒"],tù:["兎","兔","堍","迌","鵵"],dǎng:["党","攩","欓","譡","讜","谠","黨","𣗋"],dōu:["兜","兠","唗","橷","篼","蔸"],huǎng:["兤","奛","幌","怳","恍","晄","炾","熀","縨","詤","謊","谎"],rù:["入","嗕","媷","扖","杁","洳","溽","縟","缛","蓐","褥","鳰"],nèi:["內","氝","氞","錗"],"yú shù":["兪"],"liù lù":["六"],han:["兯","爳"],tiān:["兲","天","婖","添","酟","靔","靝","黇"],"xīng xìng":["兴"],diǎn:["典","嚸","奌","婰","敟","椣","点","碘","蒧","蕇","踮","點"],"zī cí":["兹"],jiān:["兼","冿","囏","坚","堅","奸","姦","姧","尖","幵","惤","戋","戔","搛","椾","樫","櫼","歼","殱","殲","湔","瀐","瀸","煎","熞","熸","牋","瑊","睷","礛","礷","笺","箋","緘","縑","缄","缣","肩","艰","艱","菅","菺","葌","蒹","蔪","蕑","蕳","虃","譼","豜","鑯","雃","鞯","韀","韉","餰","馢","鰔","鰜","鰹","鲣","鳒","鵑","鵳","鶼","鹣","麉"],shòu:["兽","受","售","壽","夀","寿","授","狩","獣","獸","痩","瘦","綬","绶","膄"],jì:["兾","冀","剂","剤","劑","勣","坖","垍","塈","妓","季","寂","寄","廭","彑","徛","忌","悸","惎","懻","技","旡","既","旣","暨","暩","曁","梞","檕","檵","洎","漃","漈","瀱","痵","癠","禝","稩","稷","穄","穊","穧","紀","継","績","繋","繼","继","绩","罽","臮","芰","茍","茤","葪","蓟","蔇","薊","蘎","蘮","蘻","裚","襀","覬","觊","計","記","誋","计","记","跡","跽","蹟","迹","际","際","霁","霽","驥","骥","髻","鬾","魝","魥","鯚","鯽","鰶","鰿","鱀","鱭","鲚","鲫","鵋","鷑","齌","𪟝","𬶨","𬶭"],jiōng:["冂","冋","坰","埛","扃","蘏","蘔","駉","駫","𬳶"],mào:["冃","冐","媢","帽","愗","懋","暓","柕","楙","毷","瑁","皃","眊","瞀","耄","茂","萺","蝐","袤","覒","貌","貿","贸","鄚","鄮"],rǎn:["冄","冉","姌","媣","染","珃","苒","蒅","䎃"],"nèi nà":["内"],gāng:["冈","冮","刚","剛","堈","堽","岡","掆","摃","棡","牨","犅","疘","綱","纲","缸","罁","罡","肛","釭","鎠","㭎"],cè:["冊","册","厕","厠","夨","廁","恻","惻","憡","敇","测","測","笧","策","筞","筴","箣","荝","萗","萴","蓛"],guǎ:["冎","剐","剮","叧","寡"],"mào mò":["冒"],gòu:["冓","啂","坸","垢","够","夠","媾","彀","搆","撀","构","構","煹","覯","觏","訽","詬","诟","購","购","遘","雊"],xǔ:["冔","喣","暊","栩","珝","盨","糈","詡","諿","诩","鄦","醑"],mì:["冖","冪","嘧","塓","宻","密","峚","幂","幎","幦","怽","榓","樒","櫁","汨","淧","滵","漞","濗","熐","羃","蔤","蜜","覓","覔","覛","觅","謐","谧","鼏"],"yóu yín":["冘"],xiě:["写","冩","藛"],jūn:["军","君","均","桾","汮","皲","皸","皹","碅","莙","蚐","袀","覠","軍","鈞","銁","銞","鍕","钧","頵","鮶","鲪","麏"],mí:["冞","擟","瀰","爢","猕","獼","祢","禰","縻","蒾","藌","蘪","蘼","袮","詸","謎","迷","醚","醾","醿","釄","镾","鸍","麊","麋","麛"],"guān guàn":["冠","覌","観","觀","观"],měng:["冡","勐","懵","掹","猛","獴","艋","蜢","蠓","錳","锰","鯭","鼆"],zhǒng:["冢","塚","尰","歱","煄","瘇","肿","腫","踵"],zuì:["冣","嶵","晬","最","栬","槜","檇","檌","祽","絊","罪","蕞","辠","酔","酻","醉","錊"],yuān:["冤","剈","囦","嬽","寃","棩","淵","渁","渆","渊","渕","灁","眢","肙","葾","蒬","蜎","蜵","駌","鳶","鴛","鵷","鸢","鸳","鹓","鼘","鼝"],míng:["冥","名","明","暝","朙","榠","洺","溟","猽","眀","眳","瞑","茗","螟","覭","詺","鄍","銘","铭","鳴","鸣"],kòu:["冦","叩","宼","寇","扣","敂","滱","窛","筘","簆","蔲","蔻","釦","鷇"],tài:["冭","太","夳","忲","态","態","汰","汱","泰","溙","肽","舦","酞","鈦","钛"],"féng píng":["冯","馮"],"chōng chòng":["冲"],kuàng:["况","圹","壙","岲","懬","旷","昿","曠","框","況","爌","眖","眶","矿","砿","礦","穬","絋","絖","纊","纩","貺","贶","軦","邝","鄺","鉱","鋛","鑛","黋"],lěng:["冷"],pàn:["冸","判","叛","沜","泮","溿","炍","牉","畔","盼","聁","袢","襻","詊","鋬","鑻","頖","鵥"],fā:["冹","彂","沷","発","發"],xiǎn:["冼","尟","尠","崄","嶮","幰","攇","显","櫶","毨","灦","烍","燹","狝","猃","獫","獮","玁","禒","筅","箲","藓","蘚","蚬","蜆","譣","赻","跣","鍌","险","険","險","韅","顕","顯","㬎"],qià:["冾","圶","帢","恰","殎","洽","硈","胢","髂"],"jìng chēng":["净","凈","淨"],sōu:["凁","嗖","廀","廋","捜","搜","摉","溲","獀","艘","蒐","螋","鄋","醙","鎪","锼","颼","飕","餿","馊","騪"],měi:["凂","媄","媺","嬍","嵄","挴","毎","每","浼","渼","燘","美","躾","鎂","镁","黣"],tú:["凃","図","图","圖","圗","塗","屠","峹","嵞","庩","廜","徒","悇","揬","涂","瘏","筡","腯","荼","蒤","跿","途","酴","鈯","鍎","馟","駼","鵌","鶟","鷋","鷵","𬳿"],zhǔn:["准","凖","埻","準","𬘯"],"liáng liàng":["凉","涼","量"],diāo:["凋","刁","刟","叼","奝","弴","彫","汈","琱","碉","簓","虭","蛁","貂","錭","雕","鮉","鯛","鲷","鵰","鼦"],còu:["凑","湊","腠","輳","辏"],ái:["凒","啀","嘊","捱","溰","癌","皑","皚"],duó:["凙","剫","夺","奪","痥","踱","鈬","鐸","铎"],dú:["凟","匵","嬻","椟","櫝","殰","涜","牍","牘","犊","犢","独","獨","瓄","皾","裻","読","讀","讟","豄","贕","錖","鑟","韇","韣","韥","騳","髑","黩","黷"],"jǐ jī":["几"],fán:["凡","凢","凣","匥","墦","杋","柉","棥","樊","瀿","烦","煩","燔","璠","矾","礬","笲","籵","緐","羳","舤","舧","薠","蘩","蠜","襎","蹯","釩","鐇","鐢","钒","鷭","𫔍","𬸪"],jū:["凥","匊","娵","婮","居","崌","抅","挶","掬","梮","椐","檋","毩","毱","泃","涺","狙","琚","疽","砠","罝","腒","艍","蜛","裾","諊","跔","踘","躹","陱","雎","鞠","鞫","駒","驹","鮈","鴡","鶋","𬶋"],"chù chǔ":["処","处"],zhǐ:["凪","劧","咫","址","坧","帋","恉","扺","指","旨","枳","止","汦","沚","洔","淽","疻","砋","祉","秖","紙","纸","芷","藢","衹","襧","訨","趾","軹","轵","酯","阯","黹"],píng:["凭","凴","呯","坪","塀","岼","帡","帲","幈","平","慿","憑","枰","洴","焩","玶","瓶","甁","竮","箳","簈","缾","荓","萍","蓱","蚲","蛢","評","评","軿","輧","郱","鮃","鲆"],kǎi:["凯","凱","剀","剴","垲","塏","恺","愷","慨","暟","蒈","輆","鍇","鎧","铠","锴","闓","闿","颽"],gān:["凲","坩","尲","尴","尶","尷","柑","泔","漧","玕","甘","疳","矸","竿","筸","粓","肝","苷","迀","酐","魐"],"kǎn qiǎn":["凵"],tū:["凸","堗","嶀","捸","涋","湥","痜","禿","秃","突","葖","鋵","鵚","鼵","㻬"],"āo wā":["凹"],chū:["出","初","岀","摴","榋","樗","貙","齣","䢺","䝙"],dàng:["凼","圵","垱","壋","档","檔","氹","璗","瓽","盪","瞊","砀","碭","礑","簜","荡","菪","蕩","蘯","趤","逿","雼","𬍡"],hán:["函","凾","含","圅","娢","寒","崡","晗","梒","浛","涵","澏","焓","琀","甝","筨","蜬","邗","邯","鋡","韓","韩"],záo:["凿","鑿"],dāo:["刀","刂","忉","氘","舠","螩","釖","魛","鱽"],chuāng:["刅","摐","牎","牕","疮","瘡","窓","窗","窻"],"fēn fèn":["分"],"qiè qiē":["切"],kān:["刊","勘","堪","戡","栞","龕","龛"],cǔn:["刌","忖"],chú:["刍","厨","幮","廚","橱","櫉","櫥","滁","犓","篨","耡","芻","蒢","蒭","蜍","蟵","豠","趎","蹰","躇","躕","鉏","鋤","锄","除","雏","雛","鶵"],"huà huá":["划"],lí:["刕","剓","剺","劙","厘","喱","嚟","囄","嫠","孷","廲","悡","梨","梸","棃","漓","灕","犁","犂","狸","琍","璃","瓈","盠","睝","离","穲","竰","筣","篱","籬","糎","縭","缡","罹","艃","荲","菞","蓠","蔾","藜","蘺","蜊","蟍","蟸","蠫","褵","謧","貍","醨","鋫","錅","鏫","鑗","離","驪","骊","鯏","鯬","鱺","鲡","鵹","鸝","鹂","黎","黧","㰀"],yuè:["刖","嬳","岄","岳","嶽","恱","悅","悦","戉","抈","捳","月","樾","瀹","爚","玥","礿","禴","篗","籆","籥","籰","粤","粵","蘥","蚎","蚏","説","越","跀","跃","躍","軏","鈅","鉞","鑰","钺","閱","閲","阅","鸑","鸙","黦","龠","𫐄","𬸚"],liú:["刘","劉","嚠","媹","嵧","旈","旒","榴","橊","流","浏","瀏","琉","瑠","瑬","璢","畄","留","畱","疁","瘤","癅","硫","蒥","蓅","蟉","裗","鎏","鏐","鐂","镠","飀","飅","飗","駠","駵","騮","驑","骝","鰡","鶹","鹠","麍"],zé:["则","則","啧","嘖","嫧","帻","幘","択","樍","歵","沢","泎","溭","皟","瞔","矠","礋","箦","簀","舴","蔶","蠌","襗","謮","賾","赜","迮","鸅","齚","齰"],"chuàng chuāng":["创","創"],qù:["刞","厺","去","閴","闃","阒","麮","鼁"],"bié biè":["別","别"],"páo bào":["刨"],"chǎn chàn":["刬","剗","幝"],guā:["刮","劀","桰","歄","煱","瓜","胍","踻","颪","颳","騧","鴰","鸹"],gēng:["刯","庚","椩","浭","焿","畊","絚","羮","羹","耕","菮","賡","赓","鶊","鹒"],dào:["到","噵","悼","椡","檤","燾","瓙","盗","盜","稲","稻","纛","翿","艔","菿","衜","衟","軇","道"],chuàng:["刱","剏","剙","怆","愴"],kū:["刳","哭","圐","堀","枯","桍","矻","窟","跍","郀","骷","鮬"],duò:["刴","剁","墯","尮","惰","憜","挅","桗","舵","跥","跺","陊","陏","飿","饳","鵽"],"shuā shuà":["刷"],"quàn xuàn":["券"],"chà shā":["刹","剎"],"cì cī":["刺"],guì:["刽","刿","劊","劌","撌","攰","昋","桂","椢","槶","樻","櫃","猤","禬","筀","蓕","襘","貴","贵","跪","鐀","鑎","鞼","鱖","鱥"],lóu:["剅","娄","婁","廔","楼","樓","溇","漊","熡","耧","耬","艛","蒌","蔞","蝼","螻","謱","軁","遱","鞻","髅","髏","𪣻"],cuò:["剉","剒","厝","夎","挫","措","棤","莝","莡","蓌","逪","銼","錯","锉","错"],"xiāo xuē":["削"],"kēi kè":["剋","尅"],"là lá":["剌"],tī:["剔","梯","踢","銻","锑","鷈","鷉","䏲","䴘"],pōu:["剖"],wān:["剜","塆","壪","帵","弯","彎","湾","潫","灣","睕","蜿","豌"],"bāo bō":["剝","剥"],duō:["剟","咄","哆","嚉","多","夛","掇","毲","畓","裰","㙍"],qíng:["剠","勍","夝","情","擎","晴","暒","棾","樈","檠","氰","甠","硘","葝","黥"],"yǎn shàn":["剡"],"dū zhuó":["剢"],yān:["剦","嫣","崦","嶖","恹","懕","懨","樮","淊","淹","漹","烟","焉","焑","煙","珚","篶","胭","臙","菸","鄢","醃","閹","阉","黫"],huō:["剨","劐","吙","攉","秴","耠","锪","騞","𬴃"],shèng:["剩","剰","勝","圣","墭","嵊","晠","榺","橳","琞","聖","蕂","貹","賸"],"duān zhì":["剬"],wū:["剭","呜","嗚","圬","屋","巫","弙","杇","歍","汙","汚","污","洿","烏","窏","箼","螐","誈","誣","诬","邬","鄔","鎢","钨","鰞","鴮"],gē:["割","哥","圪","彁","戈","戓","戨","歌","滒","犵","肐","袼","謌","鎶","鴚","鴿","鸽"],"dá zhá":["剳"],chuán:["剶","暷","椽","篅","舡","舩","船","輲","遄"],"tuán zhuān":["剸","漙","篿"],"lù jiū":["剹"],pēng:["剻","匉","嘭","怦","恲","抨","梈","烹","砰","軯","駍"],piāo:["剽","勡","慓","旚","犥","翲","螵","飃","飄","飘","魒"],kōu:["剾","彄","抠","摳","眍","瞘","芤","𫸩"],"jiǎo chāo":["剿","劋","勦","摷"],qiāo:["劁","勪","墝","幧","敲","橇","毃","燆","硗","磽","繑","趬","跷","踍","蹺","蹻","郻","鄡","鄥","鍫","鍬","鐰","锹","頝"],"huá huà":["劃"],"zhā zhá":["劄"],"pī pǐ":["劈","悂"],tāng:["劏","嘡","羰","薚","蝪","蹚","鞺","鼞"],chán:["劖","嚵","壥","婵","嬋","巉","廛","棎","毚","湹","潹","潺","澶","瀍","瀺","煘","獑","磛","緾","纏","纒","缠","艬","蝉","蟐","蟬","蟾","誗","讒","谗","躔","鄽","酁","鋋","鑱","镵","饞","馋"],zuān:["劗","躜","躦","鉆","鑚"],mó:["劘","嫫","嬤","嬷","尛","摹","擵","橅","糢","膜","藦","蘑","謨","謩","谟","饃","饝","馍","髍","魔","魹"],zhú:["劚","斸","曯","欘","灟","炢","烛","燭","爥","瘃","竹","笁","笜","舳","茿","蓫","蠋","蠾","躅","逐","逫","钃","鱁"],quàn:["劝","勧","勸","牶","韏"],"jìn jìng":["劤","劲","勁"],kēng:["劥","坑","牼","硁","硜","誙","銵","鍞","鏗","铿","阬"],"xié liè":["劦"],"zhù chú":["助"],nǔ:["努","弩","砮","胬"],shào:["劭","卲","哨","潲","紹","綤","绍","袑","邵"],miǎo:["劰","杪","淼","渺","眇","秒","篎","緲","缈","藐","邈"],kǒu:["劶","口"],wā:["劸","娲","媧","屲","挖","攨","洼","溛","漥","瓾","畖","穵","窊","窪","蛙","韈","鼃"],kuāng:["劻","匡","匩","哐","恇","洭","筐","筺","誆","诓","軭","邼"],hé:["劾","咊","啝","姀","峆","敆","曷","柇","楁","毼","河","涸","渮","澕","熆","皬","盇","盉","盍","盒","禾","篕","籺","粭","翮","菏","萂","覈","訸","詥","郃","釛","鉌","鑉","閡","闔","阂","阖","鞨","頜","餄","饸","魺","鹖","麧","齕","龁","龢","𬌗"],gào:["勂","吿","告","峼","祮","祰","禞","筶","誥","诰","郜","鋯","锆"],"bó bèi":["勃"],láng:["勆","嫏","廊","斏","桹","榔","樃","欴","狼","琅","瑯","硠","稂","艆","蓈","蜋","螂","躴","郒","郞","鋃","鎯","锒"],xūn:["勋","勛","勲","勳","嚑","坃","埙","塤","壎","壦","曛","燻","獯","矄","纁","臐","薫","薰","蘍","醺","𫄸"],"juàn juān":["勌","瓹"],"lè lēi":["勒"],kài:["勓","炌","烗","鎎"],"wěng yǎng":["勜"],qín:["勤","嗪","噙","嶜","庈","懃","懄","捦","擒","斳","檎","澿","珡","琴","琹","瘽","禽","秦","耹","芩","芹","菦","螓","蠄","鈙","鈫","雂","靲","鳹","鵭"],jiàng:["勥","匞","匠","嵹","弜","弶","摾","櫤","洚","滰","犟","糡","糨","絳","绛","謽","酱","醤","醬"],fān:["勫","嬏","帆","幡","忛","憣","旙","旛","繙","翻","藩","轓","颿","飜","鱕"],juān:["勬","姢","娟","捐","涓","蠲","裐","鎸","鐫","镌","鹃"],"tóng dòng":["勭","烔","燑","狪"],lǜ:["勴","垏","嵂","律","慮","氯","滤","濾","爈","箻","綠","繂","膟","葎","虑","鑢"],chè:["勶","坼","彻","徹","掣","撤","澈","烢","爡","瞮","硩","聅","迠","頙","㬚"],sháo:["勺","玿","韶"],"gōu gòu":["勾"],cōng:["匆","囪","囱","忩","怱","悤","暰","樬","漗","瑽","璁","瞛","篵","繱","聡","聦","聪","聰","苁","茐","葱","蓯","蔥","蟌","鍯","鏓","鏦","騘","驄","骢"],"táo yáo":["匋","陶"],páo:["匏","咆","垉","庖","爮","狍","袍","褜","軳","鞄","麅"],dá:["匒","妲","怛","炟","燵","畣","笪","羍","荙","薘","蟽","詚","达","迏","迖","迚","逹","達","鐽","靼","鞑","韃","龖","龘","𫟼"],"huà huā":["化"],"běi bèi":["北"],nǎo:["匘","垴","堖","嫐","恼","悩","惱","瑙","碯","脑","脳","腦"],"chí shi":["匙"],fāng:["匚","堏","方","淓","牥","芳","邡","鈁","錺","钫","鴋"],zā:["匝","咂","帀","沞","臜","臢","迊","鉔","魳"],qiè:["匧","厒","妾","怯","悏","惬","愜","挈","穕","窃","竊","笡","箧","篋","籡","踥","鍥","锲","鯜"],"zāng cáng":["匨"],fěi:["匪","奜","悱","棐","榧","篚","翡","蕜","誹","诽"],"kuì guì":["匮","匱"],suǎn:["匴"],pǐ:["匹","噽","嚭","圮","庀","痞","癖","脴","苉","銢","鴄"],"qū ōu":["区","區"],"kē qià":["匼"],"yǎn yàn":["匽","棪"],biǎn:["匾","惼","揙","碥","稨","窆","藊","褊","貶","贬","鴘"],nì:["匿","堄","嫟","嬺","惄","愵","昵","暱","氼","眤","睨","縌","胒","腻","膩","逆","𨺙"],niàn:["卄","唸","埝","廿","念","惗","艌"],sà:["卅","櫒","脎","萨","蕯","薩","鈒","隡","颯","飒","馺"],zú:["卆","哫","崪","族","箤","足","踤","镞"],shēng:["升","呏","声","斘","昇","曻","枡","殅","泩","湦","焺","牲","珄","生","甥","竔","笙","聲","鉎","鍟","阩","陞","陹","鵿","鼪"],wàn:["卍","卐","忨","杤","瞣","脕","腕","萬","蟃","贎","輐","錽","𬇕"],"huá huà huā":["华","華"],bēi:["卑","悲","揹","杯","桮","盃","碑","藣","鵯","鹎"],"zú cù":["卒"],"dān shàn chán":["单","單"],"nán nā":["南"],"shuài lǜ":["卛"],"bǔ bo pú":["卜"],"kuàng guàn":["卝"],biàn:["卞","变","変","峅","弁","徧","忭","抃","昪","汳","汴","玣","艑","苄","覍","諚","變","辡","辧","辨","辩","辫","辮","辯","遍","釆","𨚕"],bǔ:["卟","哺","捕","补","補","鸔","𬷕"],"zhàn zhān":["占","覱"],"kǎ qiǎ":["卡"],lú:["卢","嚧","垆","壚","庐","廬","曥","枦","栌","櫨","泸","瀘","炉","爐","獹","玈","瓐","盧","矑","籚","纑","罏","胪","臚","舮","舻","艫","芦","蘆","蠦","轤","轳","鈩","鑪","顱","颅","馿","髗","魲","鱸","鲈","鸕","鸬","黸","𬬻"],lǔ:["卤","塷","掳","擄","樐","橹","櫓","氌","滷","澛","瀂","硵","磠","穞","艣","艪","蓾","虏","虜","鏀","鐪","鑥","镥","魯","鲁","鹵"],guà:["卦","啩","挂","掛","罣","褂","詿","诖"],"áng yǎng":["卬"],yìn:["印","垽","堷","廕","慭","憖","憗","懚","洕","湚","猌","癊","胤","茚","酳","鮣","䲟"],què:["却","卻","塙","崅","悫","愨","慤","搉","榷","燩","琷","皵","确","確","礭","闋","阕","鵲","鹊","𬒈"],luǎn:["卵"],"juàn juǎn":["卷","巻"],"chǎng ān hàn":["厂"],"wěi yán":["厃"],tīng:["厅","厛","听","庁","廰","廳","汀","烃","烴","綎","耓","聴","聼","聽","鞓","𬘩"],"zhé zhái":["厇"],"hàn àn":["厈","屽"],yǎ:["厊","唖","庌","痖","瘂","蕥"],shè:["厍","厙","弽","慑","慴","懾","摂","欇","涉","涻","渉","滠","灄","社","舎","蔎","蠂","設","设","赦","騇","麝"],dǐ:["厎","呧","坘","弤","抵","拞","掋","牴","砥","菧","觝","詆","诋","軧","邸","阺","骶","鯳"],"zhǎ zhǎi":["厏"],páng:["厐","嫎","庞","徬","舽","螃","逄","鰟","鳑","龎","龐"],"zhì shī":["厔"],máng:["厖","吂","哤","娏","忙","恾","杗","杧","汒","浝","牻","痝","盲","硭","笀","芒","茫","蘉","邙","釯","鋩","铓","駹"],zuī:["厜","樶","纗","蟕"],"shà xià":["厦","廈"],áo:["厫","嗷","嗸","廒","敖","滶","獒","獓","璈","翱","翶","翺","聱","蔜","螯","謷","謸","遨","鏖","隞","鰲","鳌","鷔","鼇"],"lán qiān":["厱"],"sī mǒu":["厶"],"gōng hóng":["厷"],"lín miǎo":["厸"],"qiú róu":["厹"],dū:["厾","嘟","督","醏"],"xiàn xuán":["县","縣"],"cān shēn cēn sān":["参","參","叄","叅"],"ài yǐ":["叆"],"chā chà chǎ chá":["叉"],shuāng:["双","孀","孇","欆","礵","艭","雙","霜","騻","驦","骦","鷞","鸘","鹴"],shōu:["収","收"],guái:["叏"],bá:["叐","妭","抜","拔","炦","癹","胈","茇","菝","詙","跋","軷","魃","鼥"],"fā fà":["发"],"zhuó yǐ lì jué":["叕"],qǔ:["取","娶","竬","蝺","詓","齲","龋"],"jiǎ xiá":["叚","徦"],"wèi yù":["叞","尉","蔚"],dié:["叠","垤","堞","峌","幉","恎","惵","戜","曡","殜","氎","牃","牒","瓞","畳","疂","疉","疊","碟","絰","绖","耊","耋","胅","艓","苵","蜨","蝶","褋","詄","諜","谍","跮","蹀","迭","镻","鰈","鲽","鴩","𫶇"],ruì:["叡","枘","汭","瑞","睿","芮","蚋","蜹","銳","鋭","锐"],"jù gōu":["句"],lìng:["另","呤","炩","蘦"],"dāo dáo tāo":["叨"],"zhī zhǐ":["只"],jiào:["叫","呌","嘂","嘦","噍","嬓","斍","斠","滘","漖","獥","珓","皭","窖","藠","訆","譥","趭","較","轎","轿","较","酵","醮","釂"],"zhào shào":["召"],"kě kè":["可"],"tái tāi":["台","苔"],pǒ:["叵","尀","笸","箥","鉕","钷","駊"],"yè xié":["叶"],"hào háo":["号"],tàn:["叹","嘆","探","歎","湠","炭","碳","舕"],"hōng hóng":["叿"],miē:["吀","咩","哶","孭"],"xū yū yù":["吁"],chī:["吃","哧","喫","嗤","噄","妛","媸","彨","彲","摛","攡","殦","瓻","痴","癡","眵","瞝","笞","粚","胵","蚩","螭","訵","魑","鴟","鵄","鸱","黐","齝","𫄨"],"xuān sòng":["吅"],yāo:["吆","喓","夭","妖","幺","楆","殀","祅","腰","葽","訞","邀","鴁","鴢","㙘"],zǐ:["吇","姉","姊","子","杍","梓","榟","橴","滓","矷","秭","笫","籽","紫","耔","虸","訿","釨"],"hé gě":["合","鲄"],"cùn dòu":["吋"],"tóng tòng":["同"],"tǔ tù":["吐","唋"],"zhà zhā":["吒","奓"],"xià hè":["吓"],"ā yā":["吖"],"ma má mǎ":["吗"],lìn:["吝","恡","悋","橉","焛","甐","膦","蔺","藺","賃","赁","蹸","躏","躙","躪","轥","閵"],tūn:["吞","暾","朜","焞"],"bǐ pǐ":["吡"],qìn:["吢","吣","唚","抋","揿","搇","撳","沁","瀙","菣","藽"],"jiè gè":["吤"],"fǒu pǐ":["否"],"ba bā":["吧"],dūn:["吨","噸","墩","墪","惇","撉","撴","犜","獤","礅","蜳","蹾","驐"],fēn:["吩","帉","昐","朆","梤","棻","氛","竕","紛","纷","翂","芬","衯","訜","躮","酚","鈖","雰","餴","饙","馚"],"é huā":["吪"],"kēng háng":["吭","妔"],shǔn:["吮"],"zhī zī":["吱"],"yǐn shěn":["吲"],wú:["吳","吴","呉","墲","峿","梧","橆","毋","洖","浯","無","珸","璑","祦","芜","茣","莁","蕪","蜈","蟱","譕","郚","鋙","铻","鯃","鵐","鷡","鹀","鼯"],"chǎo chāo":["吵"],"nà nè":["吶"],"xuè chuò jué":["吷"],chuī:["吹","炊","龡"],"dōu rú":["吺"],hǒu:["吼","犼"],"hōng hǒu ōu":["吽"],"wú yù":["吾"],"ya yā":["呀"],"è e":["呃"],dāi:["呆","懛","獃"],"mèn qǐ":["呇"],hōng:["呍","嚝","揈","灴","烘","焢","硡","薨","訇","谾","軣","輷","轟","轰","鍧"],nà:["呐","捺","笝","納","纳","肭","蒳","衲","豽","貀","軜","郍","鈉","钠","靹","魶"],"tūn tiān":["呑"],"fǔ ḿ":["呒","嘸"],"dāi tǎi":["呔"],"ǒu ōu òu":["呕"],"bài bei":["呗"],"yuán yún yùn":["员","員"],guō:["呙","啯","嘓","埚","堝","墎","崞","彉","彍","懖","猓","瘑","聒","蝈","蟈","郭","鈛","鍋","锅"],"huá qì":["呚"],"qiàng qiāng":["呛","跄"],shī:["呞","失","尸","屍","师","師","施","浉","湤","湿","溮","溼","濕","狮","獅","瑡","絁","葹","蒒","蓍","虱","蝨","褷","襹","詩","诗","邿","釃","鉇","鍦","鯴","鰤","鲺","鳲","鳾","鶳","鸤","䴓","𫚕"],juǎn:["呟","埍","臇","菤","錈","锩"],pěn:["呠","翸"],"wěn mǐn":["呡"],"ne ní":["呢"],"ḿ m̀ móu":["呣"],rán:["呥","嘫","然","燃","繎","肰","蚦","蚺","衻","袇","袡","髥","髯"],"tiè chè":["呫"],"qì zhī":["呮"],"zǐ cī":["呰"],"guā gū guǎ":["呱"],"cī zī":["呲"],"hǒu xǔ gòu":["呴"],"hē ā á ǎ à a":["呵"],náo:["呶","夒","峱","嶩","巎","挠","撓","猱","硇","蛲","蟯","詉","譊","鐃","铙"],"xiā gā":["呷"],pēi:["呸","怌","肧","胚","衃","醅"],"háo xiāo":["呺"],mìng:["命","掵"],"dá dàn":["呾"],"zuǐ jǔ":["咀"],"xián gān":["咁"],pǒu:["咅","哣","犃"],"yǎng yāng":["咉"],"zǎ zé zhā":["咋"],"hé hè huó huò hú":["和"],hāi:["咍"],dā:["咑","哒","噠","墶","搭","撘","耷","褡","鎝","𨱏"],"kǎ kā":["咔"],gū:["咕","唂","唃","姑","嫴","孤","巬","巭","柧","橭","沽","泒","稒","笟","箍","箛","篐","罛","苽","菇","菰","蓇","觚","軱","軲","轱","辜","酤","鈲","鮕","鴣","鸪"],"kā gā":["咖"],zuo:["咗"],lóng:["咙","嚨","嶐","巃","巄","昽","曨","朧","栊","槞","櫳","湰","滝","漋","爖","珑","瓏","癃","眬","矓","砻","礱","礲","窿","竜","聋","聾","胧","茏","蘢","蠪","蠬","襱","豅","鏧","鑨","霳","靇","驡","鸗","龍","龒","龙"],"xiàn xián":["咞"],qì:["咠","唭","噐","器","夡","弃","憇","憩","暣","棄","欫","气","気","氣","汔","汽","泣","湆","湇","炁","甈","盵","矵","碛","碶","磜","磧","罊","芞","葺","藒","蟿","訖","讫","迄","鐑"],"xì dié":["咥"],"liē liě lié lie":["咧"],zī:["咨","嗞","姕","姿","孜","孳","孶","崰","嵫","栥","椔","淄","湽","滋","澬","玆","禌","秶","粢","紎","緇","緕","纃","缁","茊","茲","葘","諮","谘","貲","資","赀","资","赼","趑","趦","輜","輺","辎","鄑","鈭","錙","鍿","鎡","锱","镃","頾","頿","髭","鯔","鰦","鲻","鶅","鼒","齍","齜","龇"],mī:["咪"],"jī xī qià":["咭"],"gē luò kǎ lo":["咯"],"shù xún":["咰"],"zán zá zǎ zan":["咱"],"hāi ké":["咳"],huī:["咴","噅","噕","婎","媈","幑","徽","恢","拻","挥","揮","晖","暉","楎","洃","瀈","灰","灳","烣","睳","禈","翚","翬","蘳","袆","褘","詼","诙","豗","輝","辉","鰴","麾","㧑"],"huài shì":["咶"],táo:["咷","啕","桃","檮","洮","淘","祹","綯","绹","萄","蜪","裪","迯","逃","醄","鋾","鞀","鞉","饀","駣","騊","鼗","𫘦"],xián:["咸","啣","娴","娹","婱","嫌","嫺","嫻","弦","挦","撏","涎","湺","澖","甉","痫","癇","癎","絃","胘","舷","藖","蚿","蛝","衔","衘","誸","諴","賢","贒","贤","輱","醎","銜","鑦","閑","闲","鷳","鷴","鷼","鹇","鹹","麙","𫍯"],"è àn":["咹"],"xuān xuǎn":["咺","烜"],"wāi hé wǒ guǎ guō":["咼"],"yàn yè yān":["咽"],āi:["哀","哎","埃","溾","銰","鎄","锿"],pǐn:["品","榀"],shěn:["哂","婶","嬸","审","宷","審","弞","曋","渖","瀋","瞫","矤","矧","覾","訠","諗","讅","谂","谉","邥","頣","魫"],"hǒng hōng hòng":["哄"],"wā wa":["哇"],"hā hǎ hà":["哈"],zāi:["哉","栽","渽","溨","災","灾","烖","睵","賳"],"dì diè":["哋"],pài:["哌","沠","派","渒","湃","蒎","鎃"],"gén hěn":["哏"],"yǎ yā":["哑","雅"],"yuě huì":["哕","噦"],nián:["哖","年","秊","秥","鮎","鯰","鲇","鲶","鵇","黏"],"huá huā":["哗","嘩"],"jì jiē zhāi":["哜","嚌"],mōu:["哞"],"yō yo":["哟","喲"],lòng:["哢","梇","贚"],"ò ó é":["哦"],"lī lǐ li":["哩"],"nǎ na nǎi né něi":["哪"],hè:["哬","垎","壑","寉","惒","焃","煂","燺","爀","癋","碋","翯","褐","謞","賀","贺","赫","靍","靎","靏","鶴","鸖","鹤"],"bō pò bā":["哱"],zhé:["哲","啠","喆","嚞","埑","悊","摺","晢","晣","歽","矺","砓","磔","籷","粍","虴","蛰","蟄","袩","詟","謫","謺","讁","讋","谪","輒","輙","轍","辄","辙","鮿"],"liàng láng":["哴"],"liè lǜ":["哷"],hān:["哻","憨","蚶","谽","酣","頇","顸","馠","魽","鼾"],"hēng hng":["哼"],gěng:["哽","埂","峺","挭","梗","綆","绠","耿","莄","郠","骾","鯁","鲠","𬒔"],"chuò yuè":["哾"],"gě jiā":["哿"],"bei bài":["唄"],"hán hàn":["唅"],chún:["唇","浱","湻","滣","漘","犉","純","纯","脣","莼","蒓","蓴","醇","醕","錞","陙","鯙","鶉","鹑","𬭚"],"ài āi":["唉"],"jiá qiǎn":["唊"],"yán dàn xián":["唌"],chē:["唓","砗","硨","莗","蛼"],"wú ńg ń":["唔"],zào:["唕","唣","噪","慥","梍","灶","煰","燥","皁","皂","竃","竈","簉","艁","譟","趮","躁","造","𥖨"],dí:["唙","啇","嘀","嚁","嫡","廸","敌","敵","梑","涤","滌","狄","笛","籴","糴","苖","荻","蔋","蔐","藡","覿","觌","豴","迪","靮","頔","馰","髢","鸐","𬱖"],"gòng hǒng gǒng":["唝","嗊"],dóu:["唞"],"lào láo":["唠","嘮","憦"],huàn:["唤","喚","奂","奐","宦","嵈","幻","患","愌","换","換","擐","攌","梙","槵","浣","涣","渙","漶","澣","烉","焕","煥","瑍","痪","瘓","睆","肒","藧","豢","轘","逭","鯇","鯶","鰀","鲩"],léng:["唥","塄","楞","碐","薐"],"wō wěi":["唩"],fěng:["唪","覂","諷","讽"],"yín jìn":["唫"],"hǔ xià":["唬"],wéi:["唯","围","圍","壝","峗","峞","嵬","帏","帷","幃","惟","桅","沩","洈","涠","湋","溈","潍","潙","潿","濰","犩","矀","維","维","蓶","覹","违","違","鄬","醀","鍏","闈","闱","韋","韦","鮠","𣲗","𬶏"],shuā:["唰"],chàng:["唱","怅","悵","暢","焻","畅","畼","誯","韔","鬯"],"ér wā":["唲"],qiàng:["唴","炝","熗","羻"],yō:["唷"],yū:["唹","淤","瘀","盓","箊","紆","纡","込","迂","迃","陓"],lài:["唻","濑","瀨","瀬","癞","癩","睐","睞","籁","籟","藾","賚","賴","赉","赖","頼","顂","鵣"],tuò:["唾","嶞","柝","毤","毻","箨","籜","萚","蘀","跅"],"zhōu zhāo tiào":["啁"],kěn:["啃","垦","墾","恳","懇","肎","肯","肻","豤","錹"],"zhuó zhào":["啅","濯"],"hēng hèng":["啈","悙"],"lín lán":["啉"],"a ā á ǎ à":["啊"],qiāng:["啌","嗴","嶈","戕","摤","斨","枪","槍","溬","牄","猐","獇","羌","羗","腔","蜣","謒","鏘","锖","锵"],"tūn zhūn xiāng duǐ":["啍"],wèn:["問","妏","揾","搵","璺","问","顐"],"cuì qi":["啐"],"dié shà jié tì":["啑"],"yuē wā":["啘"],"zǐ cǐ":["啙"],"bǐ tú":["啚"],"chuò chuài":["啜"],"yǎ yā è":["啞"],fēi:["啡","婓","婔","扉","暃","渄","猆","緋","绯","裶","霏","非","靟","飛","飝","飞","餥","馡","騑","騛","鯡","鲱","𬴂"],pí:["啤","壀","枇","毗","毘","焷","琵","疲","皮","篺","罴","羆","脾","腗","膍","蚍","蚽","蜱","螷","蠯","豼","貔","郫","鈹","阰","陴","隦","魮","鮍","鲏","鵧","鼙"],shá:["啥"],"lā la":["啦"],"yīng qíng":["啨"],pā:["啪","妑","舥","葩","趴"],"zhě shì":["啫"],sè:["啬","嗇","懎","擌","栜","歮","涩","渋","澀","澁","濇","濏","瀒","瑟","璱","瘷","穑","穡","穯","繬","譅","轖","銫","鏼","铯","飋"],niè:["啮","嗫","噛","嚙","囁","囓","圼","孼","孽","嵲","嶭","巕","帇","敜","枿","槷","櫱","涅","湼","痆","篞","籋","糱","糵","聂","聶","臬","臲","蘖","蠥","讘","踂","踗","踙","蹑","躡","錜","鎳","鑈","鑷","钀","镊","镍","闑","陧","隉","顳","颞","齧","𫔶"],"luō luó luo":["啰","囉"],"tān chǎn tuō":["啴"],bo:["啵","蔔"],dìng:["啶","定","椗","矴","碇","碠","磸","聢","腚","萣","蝊","訂","订","錠","锭","顁","飣","饤"],lāng:["啷"],"án ān":["啽"],kā:["喀","擖"],"yóng yú":["喁"],"lā lá lǎ":["喇"],jiē:["喈","喼","嗟","堦","媘","接","掲","擑","湝","煯","疖","痎","癤","皆","秸","稭","脻","蝔","街","謯","阶","階","鞂","鶛"],hóu:["喉","帿","猴","瘊","睺","篌","糇","翭","葔","鄇","鍭","餱","骺","鯸","𬭤"],"dié zhá":["喋"],wāi:["喎","歪","竵"],"nuò rě":["喏"],"xù huò guó":["喐"],zán:["喒"],"wō ō":["喔"],hú:["喖","嘝","囫","壶","壷","壺","媩","弧","搰","斛","楜","槲","湖","瀫","焀","煳","狐","猢","瑚","瓳","箶","絗","縠","胡","葫","蔛","蝴","螜","衚","觳","醐","鍸","頶","餬","鬍","魱","鰗","鵠","鶘","鶦","鹕"],"huàn yuán xuǎn hé":["喛"],xǐ:["喜","囍","壐","屣","徙","憙","枲","橲","歖","漇","玺","璽","矖","禧","縰","葈","葸","蓰","蟢","謑","蹝","躧","鈢","鉨","鉩","鱚","𬭳","𬶮"],"hē hè yè":["喝"],kuì:["喟","嘳","媿","嬇","愦","愧","憒","篑","簣","籄","聩","聭","聵","膭","蕢","謉","餽","饋","馈"],"zhǒng chuáng":["喠"],"wéi wèi":["喡","為","爲"],"duó zhà":["喥"],"sāng sàng":["喪"],"qiáo jiāo":["喬"],"pèn bēn":["喯"],"cān sūn qī":["喰"],"zhā chā":["喳"],miāo:["喵"],"pēn pèn":["喷"],kuí:["喹","夔","奎","巙","戣","揆","晆","暌","楏","楑","櫆","犪","睽","葵","藈","蘷","虁","蝰","躨","逵","鄈","鍨","鍷","頯","馗","騤","骙","魁"],"lou lóu":["喽"],"zào qiāo":["喿"],"hè xiāo xiào hù":["嗃"],"á shà":["嗄"],xiù:["嗅","岫","峀","溴","珛","琇","璓","秀","綉","繍","繡","绣","螑","袖","褎","褏","銹","鏥","鏽","锈","齅"],"qiāng qiàng":["嗆","戗","戧","蹌","蹡"],"ài yì":["嗌","艾"],"má mǎ ma":["嗎"],"kè kē":["嗑"],"dā tà":["嗒","鎉"],sǎng:["嗓","搡","磉","褬","鎟","顙","颡"],chēn:["嗔","抻","琛","瞋","諃","謓","賝","郴","𬘭"],"wā gǔ":["嗗"],"pǎng bēng":["嗙"],"xián qiǎn qiān":["嗛"],lào:["嗠","嫪","橯","涝","澇","耢","耮","躼","軂","酪"],wēng:["嗡","翁","聬","螉","鎓","鶲","鹟","𬭩"],wà:["嗢","腽","膃","袜","襪","韤"],"hēi hāi":["嗨"],hē:["嗬","欱","蠚","訶","诃"],zi:["嗭"],sǎi:["嗮"],"ǹg ńg ňg":["嗯"],gě:["嗰","舸"],ná:["嗱","拏","拿","鎿","镎"],diǎ:["嗲"],"ài ǎi āi":["嗳"],tōng:["嗵","樋","炵","蓪"],"zuī suī":["嗺"],"zhē zhè zhù zhe":["嗻"],mò:["嗼","圽","塻","墨","妺","嫼","寞","帞","昩","末","枺","歿","殁","沫","漠","爅","獏","瘼","皌","眽","眿","瞐","瞙","砞","礳","秣","絈","纆","耱","茉","莈","蓦","蛨","蟔","貃","貊","貘","銆","鏌","镆","陌","靺","驀","魩","默","黙","𬙊"],sòu:["嗽","瘶"],tǎn:["嗿","坦","忐","憳","憻","暺","毯","璮","菼","袒","襢","醓","鉭","钽"],"jiào dǎo":["嘄"],"kǎi gě":["嘅"],"shān càn":["嘇"],cáo:["嘈","嶆","曹","曺","槽","漕","艚","蓸","螬","褿","鏪","𥕢"],piào:["嘌","徱","蔈","驃"],"lóu lou":["嘍"],gǎ:["尕","玍"],"gǔ jiǎ":["嘏"],"jiāo xiāo":["嘐"],"xū shī":["嘘","噓"],pó:["嘙","嚩","婆","櫇","皤","鄱"],"dē dēi":["嘚"],"ma má":["嘛"],"lē lei":["嘞"],"gā gá gǎ":["嘠"],sāi:["嘥","噻","毢","腮","顋","鰓"],"zuō chuài":["嘬"],"cháo zhāo":["嘲","朝","鼂"],zuǐ:["嘴","噿","嶊","璻"],"qiáo qiào":["嘺","翹","谯"],"chù xù shòu":["嘼"],"tān chǎn":["嘽"],"dàn tán":["嘾","弾","彈","惔","澹"],"hēi mò":["嘿"],ě:["噁","砨","頋","騀","鵈"],"fān bo":["噃"],chuáng:["噇","床","牀"],"cù zā hé":["噈"],"tūn kuò":["噋"],"cēng chēng":["噌"],dēng:["噔","嬁","灯","燈","璒","登","竳","簦","艠","豋"],pū:["噗","扑","撲","攴","攵","潽","炇","陠"],juē:["噘","屩","屫","撧"],lū:["噜","嚕","撸","擼","謢"],zhān:["噡","岾","惉","旃","旜","枬","栴","毡","氈","氊","沾","瞻","薝","蛅","詀","詹","譫","谵","趈","邅","閚","霑","飦","饘","驙","魙","鱣","鸇","鹯","𫗴"],ō:["噢"],"zhòu zhuó":["噣"],"jiào qiào chī":["噭"],yuàn:["噮","妴","怨","愿","掾","瑗","禐","苑","衏","裫","褑","院","願"],"ǎi ài āi":["噯"],"yōng yǒng":["噰","澭"],"jué xué":["噱"],"pēn pèn fèn":["噴"],gá:["噶","尜","釓","錷","钆"],"xīn hěn hèn":["噷"],dāng:["噹","澢","珰","璫","筜","簹","艡","蟷","裆","襠"],làn:["嚂","滥","濫","烂","燗","爁","爛","爤","瓓","糷","钄"],tà:["嚃","嚺","崉","挞","搨","撻","榻","橽","毾","涾","澾","濌","禢","粏","誻","譶","蹋","蹹","躂","躢","遝","錔","闒","闥","闼","阘","鞜","鞳"],"huō huò ǒ":["嚄"],hāo:["嚆","茠","蒿","薅"],"hè xià":["嚇"],"xiù pì":["嚊"],"zhōu chóu":["嚋","盩","诪"],mē:["嚒"],"chā cā":["嚓"],"bó pào bào":["嚗"],"me mèi mò":["嚜"],"xié hái":["嚡"],"áo xiāo":["嚣"],mō:["嚤","摸"],pín:["嚬","娦","嫔","嬪","玭","矉","薲","蠙","貧","贫","顰","颦","𬞟"],mè:["嚰","濹"],"rǎng rāng":["嚷"],lá:["嚹","旯"],"jiáo jué jiào":["嚼"],chuò:["嚽","娖","擉","歠","涰","磭","踀","輟","辍","辵","辶","酫","鑡","餟","齪","龊"],"huān huàn":["嚾"],"zá cà":["囃"],chài:["囆","虿","蠆","袃","訍"],"náng nāng":["囊"],"zá zàn cān":["囋"],sū:["囌","櫯","甦","稣","穌","窣","蘇","蘓","酥","鯂"],zèng:["囎","熷","甑","贈","赠","鋥","锃"],"zá niè yàn":["囐"],nāng:["囔"],"luó luō luo":["囖"],"wéi guó":["囗"],huí:["囘","回","囬","廻","廽","恛","洄","痐","茴","蚘","蛔","蛕","蜖","迴","逥","鮰"],nín:["囜","您","脌"],"jiǎn nān":["囝"],nān:["囡"],tuán:["团","団","團","慱","抟","摶","檲","糰","鏄","鷒","鷻"],"tún dùn":["囤","坉"],guó:["囯","囶","囻","国","圀","國","帼","幗","慖","摑","漍","聝","腘","膕","蔮","虢","馘","𬇹"],kùn:["困","涃","睏"],"wéi tōng":["囲"],qūn:["囷","夋","逡"],rì:["囸","日","衵","鈤","馹","驲"],tāi:["囼","孡","胎"],pǔ:["圃","圑","擈","普","暜","樸","檏","氆","浦","溥","烳","諩","譜","谱","蹼","鐠","镨"],"quān juàn juān":["圈","圏"],"chuí chuán":["圌"],tuǎn:["圕","畽","疃"],lüè:["圙","掠","略","畧","稤","鋝","鋢","锊","䂮"],"huán yuán":["圜"],luán:["圝","圞","奱","娈","孌","孪","孿","峦","巒","挛","攣","曫","栾","欒","滦","灤","癴","癵","羉","脔","臠","虊","銮","鑾","鵉","鸞","鸾"],tǔ:["土","圡","釷","钍"],"xū wéi":["圩"],"dì de":["地","嶳"],"qiān sú":["圱"],zhèn:["圳","塦","挋","振","朕","栚","甽","眹","紖","絼","纼","誫","賑","赈","鋴","鎭","鎮","镇","阵","陣","震","鴆","鸩"],"chǎng cháng":["场","場","塲"],"qí yín":["圻"],jiá:["圿","忦","恝","戞","扴","脥","荚","莢","蛱","蛺","裌","跲","郏","郟","鋏","铗","頬","頰","颊","鴶","鵊"],"zhǐ zhì":["坁"],bǎn:["坂","岅","昄","板","版","瓪","粄","舨","蝂","鈑","钣","阪","魬"],qǐn:["坅","寑","寝","寢","昑","梫","笉","螼","赾","鋟","锓"],"méi fén":["坆"],"rǒng kēng":["坈"],"fāng fáng":["坊"],"fèn bèn":["坋"],tān:["坍","怹","摊","擹","攤","滩","灘","瘫","癱","舑","貪","贪"],"huài pēi pī péi":["坏"],"dì làn":["坔"],tán:["坛","墰","墵","壇","壜","婒","憛","昙","曇","榃","檀","潭","燂","痰","磹","罈","罎","藫","談","譚","譠","谈","谭","貚","郯","醰","錟","顃"],bà:["坝","垻","壩","弝","欛","灞","爸","矲","覇","霸","鮁","鲅"],fén:["坟","墳","妢","岎","幩","枌","棼","汾","焚","燌","燓","羒","羵","蒶","蕡","蚠","蚡","豮","豶","轒","鐼","隫","馩","魵","黂","鼖","鼢","𣸣"],zhuì:["坠","墜","惴","甀","畷","礈","綴","縋","缀","缒","腏","膇","諈","贅","赘","醊","錣","鑆"],pō:["坡","岥","泼","溌","潑","釙","鏺","钋","頗","颇","䥽"],"pǎn bàn":["坢"],kūn:["坤","堃","堒","崐","崑","昆","晜","潉","焜","熴","猑","琨","瑻","菎","蜫","裈","裩","褌","醌","錕","锟","騉","髠","髡","髨","鯤","鲲","鵾","鶤","鹍"],diàn:["坫","垫","墊","壂","奠","婝","店","惦","扂","橂","殿","淀","澱","玷","琔","电","癜","簟","蜔","鈿","電","靛","驔"],"mù mǔ":["坶"],"kē kě":["坷","軻"],xuè:["坹","岤","桖","瀥","狘","瞲","謔","谑","趐"],"dǐ chí":["坻","柢"],lā:["垃","柆","菈","邋"],lǒng:["垄","垅","壟","壠","拢","攏","竉","陇","隴","𬕂"],mín:["垊","姄","岷","崏","捪","旻","旼","民","珉","琘","琝","瑉","痻","盿","砇","緍","緡","缗","罠","苠","鈱","錉","鍲","鴖"],"dòng tóng":["垌","峒","洞"],cí:["垐","嬨","慈","柌","濨","珁","瓷","甆","磁","礠","祠","糍","茨","詞","词","辝","辞","辤","辭","雌","飺","餈","鴜","鶿","鷀","鹚"],duī:["垖","堆","塠","痽","磓","鐓","鐜","鴭"],"duò duǒ":["垛"],"duǒ duò":["垜","挆"],chá:["垞","察","嵖","搽","槎","檫","猹","茬","茶","詧","靫","𥻗"],shǎng:["垧","晌","樉","賞","贘","赏","鋿","鏛","鑜"],shǒu:["垨","守","手","扌","艏","首"],da:["垯","繨","跶"],háng:["垳","斻","杭","筕","絎","绗","航","苀","蚢","裄","貥","迒","頏","颃","魧"],"ān ǎn":["垵"],xīng:["垶","惺","星","曐","煋","猩","瑆","皨","篂","腥","興","觪","觲","謃","騂","骍","鮏","鯹"],"yuàn huán":["垸"],bāng:["垹","帮","幇","幚","幫","捠","梆","浜","邦","邫","鞤","𠳐"],"póu fú":["垺"],cén:["埁","岑","涔"],"běng fēng":["埄"],"dì fáng":["埅"],"xiá jiā":["埉"],"mái mán":["埋"],làng:["埌","崀","浪","蒗","閬","㫰"],"shān yán":["埏"],"qín jīn":["埐"],"pǔ bù":["埔"],huā:["埖","婲","椛","硴","糀","花","蒊","蘤","誮","錵"],"suì sù":["埣"],"pí pì":["埤"],"qīng zhēng":["埥","鲭"],"wǎn wān":["埦"],lǔn:["埨","稐","𫭢"],"zhēng chéng":["埩"],kōng:["埪","崆","箜","躻","錓","鵼"],"cǎi cài":["埰","寀","采"],"chù tòu":["埱"],běng:["埲","琫","菶","鞛"],"kǎn xiàn":["埳"],"yì shì":["埶","醳"],péi:["培","毰","裴","裵","賠","赔","錇","锫","阫","陪"],"sào sǎo":["埽"],"jǐn qīn jìn":["堇"],"péng bèng":["堋"],"qiàn zàn jiàn":["堑"],àn:["堓","屵","岸","按","暗","案","胺","荌","豻","貋","錌","闇","隌","黯"],"duò huī":["堕","墮"],huán:["堚","寏","寰","峘","桓","洹","澴","獂","环","環","糫","繯","缳","羦","荁","萈","萑","豲","鍰","鐶","锾","镮","闤","阛","雈","鬟","鹮","𬘫","𤩽"],"bǎo bǔ pù":["堡"],"máo móu wǔ":["堥"],ruán:["堧","壖","撋"],"ài è yè":["堨"],gèng:["堩","暅"],méi:["堳","塺","媒","嵋","徾","攗","枚","栂","梅","楣","楳","槑","湄","湈","煤","猸","玫","珻","瑂","眉","睂","禖","脄","脢","腜","苺","莓","葿","郿","酶","鎇","镅","霉","鶥","鹛","黴"],dǔ:["堵","琽","睹","笃","篤","覩","賭","赌"],féng:["堸","綘","艂","逢"],hèng:["堼"],chūn:["堾","媋","旾","春","暙","杶","椿","槆","橁","櫄","瑃","箺","萅","蝽","輴","鰆","鶞","䲠"],jiǎng:["塂","奖","奨","奬","桨","槳","獎","耩","膙","蒋","蔣","講","讲","顜"],huāng:["塃","巟","慌","肓","荒","衁"],duàn:["塅","断","斷","椴","段","毈","煅","瑖","碫","簖","籪","緞","缎","腶","葮","躖","鍛","锻"],tǎ:["塔","墖","獭","獺","鮙","鰨","鳎"],wěng:["塕","奣","嵡","攚","暡","瞈","蓊"],"sāi sài sè":["塞"],zàng:["塟","弉","臓","臟","葬","蔵","銺"],tián:["塡","屇","恬","沺","湉","璳","甛","甜","田","畋","畑","碵","磌","胋","闐","阗","鴫","鷆","鷏"],zhèng:["塣","幁","政","証","諍","證","证","诤","郑","鄭","靕","鴊"],"tián zhèn":["填"],wēn:["塭","昷","榲","殟","温","溫","瑥","瘟","蕰","豱","輼","轀","辒","鎾","饂","鰛","鰮","鳁"],liù:["塯","廇","磟","翏","雡","霤","餾","鬸","鷚","鹨"],hǎi:["塰","海","烸","酼","醢"],lǎng:["塱","朖","朗","朤","烺","蓢","㮾"],bèng:["塴","揼","泵","甏","綳","蹦","迸","逬","鏰","镚"],chén:["塵","宸","尘","忱","敐","敶","晨","曟","栕","樄","沉","煁","瘎","臣","茞","莀","莐","蔯","薼","螴","訦","諶","軙","辰","迧","鈂","陈","陳","霃","鷐","麎"],"ōu qiū":["塸"],"qiàn jiàn":["塹"],"zhuān tuán":["塼"],shuǎng:["塽","慡","漺","爽","縔","鏯"],shú:["塾","婌","孰","璹","秫","贖","赎"],lǒu:["塿","嵝","嶁","甊","篓","簍"],chí:["墀","弛","持","池","漦","竾","筂","箎","篪","茌","荎","蚳","謘","貾","赿","踟","迟","迡","遅","遟","遲","鍉","馳","驰"],shù:["墅","庶","庻","怷","恕","戍","束","树","樹","沭","漱","潄","濖","竖","竪","絉","腧","荗","蒁","虪","術","裋","豎","述","鉥","錰","鏣","霔","鶐","𬬸"],"dì zhì":["墆","疐"],kàn:["墈","崁","瞰","矙","磡","衎","鬫"],chěn:["墋","夦","硶","碜","磣","贂","趻","踸","鍖"],"zhǐ zhuó":["墌"],qiǎng:["墏","繈","繦","羥","襁"],zēng:["増","增","憎","璔","矰","磳","罾","譄","鄫","鱛","䎖"],qiáng:["墙","墻","嫱","嬙","樯","檣","漒","牆","艢","蔃","蔷","蘠"],"kuài tuí":["墤"],"tuǎn dǒng":["墥"],"qiáo què":["墧"],"zūn dūn":["墫"],"qiāo áo":["墽"],"yì tú":["墿"],"xué bó jué":["壆"],lǎn:["壈","嬾","孄","孏","懒","懶","揽","擥","攬","榄","欖","浨","漤","灠","纜","缆","罱","覧","覽","览","醂","顲"],huài:["壊","壞","蘾"],rǎng:["壌","壤","攘","爙"],"làn xiàn":["壏"],dǎo:["壔","导","導","岛","島","嶋","嶌","嶹","捣","搗","擣","槝","祷","禂","禱","蹈","陦","隝","隯"],ruǐ:["壡","桵","橤","繠","蕊","蕋","蘂","蘃"],san:["壭"],zhuàng:["壮","壯","壵","撞","焋","状","狀"],"ké qiào":["壳","殼"],kǔn:["壸","壼","悃","捆","梱","硱","祵","稇","稛","綑","裍","閫","閸","阃"],mǎng:["壾","漭","茻","莽","莾","蠎"],cún:["壿","存"],"zhǐ zhōng":["夂"],"gǔ yíng":["夃"],"jiàng xiáng":["夅","降"],"páng féng fēng":["夆"],zhāi:["夈","捚","摘","斋","斎","榸","粂","齋"],"xuàn xiòng":["夐"],wài:["外","顡"],"wǎn yuàn wān yuān":["夗"],"mǎo wǎn":["夘"],mèng:["夢","夣","孟","梦","癦","霥"],"dà dài":["大"],"fū fú":["夫","姇","枎","粰"],guài:["夬","怪","恠"],yāng:["央","姎","抰","殃","泱","秧","胦","鉠","鍈","雵","鴦","鸯"],"hāng bèn":["夯"],gǎo:["夰","搞","杲","槀","槁","檺","稁","稾","稿","縞","缟","菒","藁","藳"],"tāo běn":["夲"],"tóu tou":["头"],"yǎn tāo":["夵"],"kuā kuà":["夸","誇"],"jiá jiā gā xiá":["夹"],huà:["夻","婳","嫿","嬅","崋","摦","杹","枠","桦","槬","樺","澅","画","畫","畵","繣","舙","話","諙","譮","话","黊"],"jiā jiá gā xiá":["夾"],ēn:["奀","恩","蒽"],"dī tì":["奃"],"yǎn yān":["奄","渰"],pào:["奅","疱","皰","砲","礟","礮","靤","麭"],nài:["奈","柰","渿","耐","萘","褦","錼","鼐"],"quān juàn":["奍","弮","棬"],zòu:["奏","揍"],"qì qiè xiè":["契"],kāi:["奒","开","揩","鐦","锎","開"],"bēn bèn":["奔","泍"],tào:["套"],"zàng zhuǎng":["奘"],běn:["奙","本","楍","畚","翉","苯"],"xùn zhuì":["奞"],shē:["奢","檨","猞","畭","畲","賒","賖","赊","輋","𪨶"],"hǎ pò tǎi":["奤"],"ào yù":["奥","奧","澚"],yūn:["奫","氲","氳","蒀","蒕","蝹","贇","赟","𫖳"],"duǒ chě":["奲"],"nǚ rǔ":["女"],nú:["奴","孥","笯","駑","驽"],"dīng dǐng tiǎn":["奵"],"tā jiě":["她"],nuán:["奻"],"hǎo hào":["好"],fàn:["奿","嬎","梵","汎","泛","滼","瀪","犯","畈","盕","笵","範","范","訉","販","贩","軬","輽","飯","飰","饭"],shuò:["妁","搠","朔","槊","烁","爍","矟","蒴","鎙","鑠","铄"],"fēi pèi":["妃"],wàng:["妄","忘","旺","望","朢"],zhuāng:["妆","妝","娤","庄","庒","桩","梉","樁","粧","糚","荘","莊","装","裝"],mā:["妈","媽"],"fū yōu":["妋"],"hài jiè":["妎"],dù:["妒","妬","杜","殬","渡","秺","芏","荰","螙","蠧","蠹","鍍","镀","靯","𬭊"],miào:["妙","庙","庿","廟","玅","竗"],"fǒu pēi pī":["妚"],"yuè jué":["妜"],niū:["妞"],"nà nàn":["妠"],tuǒ:["妥","嫷","庹","椭","楕","橢","鬌","鰖","鵎"],"wàn yuán":["妧"],fáng:["妨","房","肪","防","魴","鲂"],nī:["妮"],zhóu:["妯","碡"],zhāo:["妱","巶","招","昭","釗","鉊","鍣","钊","駋","𬬿"],"nǎi nǐ":["妳"],tǒu:["妵","敨","紏","蘣","黈"],"xián xuán xù":["妶"],"zhí yì":["妷","秇"],ē:["妸","妿","婀","屙"],mèi:["妹","媚","寐","抺","旀","昧","沬","煝","痗","眛","睸","祙","篃","蝞","袂","跊","鬽","魅"],"qī qì":["妻"],"xū xǔ":["姁","稰"],"shān shàn":["姍","姗","苫","釤","钐"],mán:["姏","慲","樠","蛮","蠻","謾","饅","馒","鬗","鬘","鰻","鳗"],jiě:["姐","媎","檞","毑","飷"],"wěi wēi":["委"],pīn:["姘","拼","礗","穦","馪","驞"],"huá huó":["姡"],"jiāo xiáo":["姣"],"gòu dù":["姤"],"lǎo mǔ":["姥"],"nián niàn":["姩"],zhěn:["姫","屒","弫","抮","昣","枕","畛","疹","眕","稹","縝","縥","缜","聄","萙","袗","裖","覙","診","诊","軫","轸","辴","駗","鬒"],héng:["姮","恆","恒","烆","珩","胻","蘅","衡","鑅","鴴","鵆","鸻"],"jūn xún":["姰"],"kuā hù":["姱"],"è yà":["姶"],"xiān shēn":["姺"],wá:["娃"],"ráo rǎo":["娆","嬈"],"shào shāo":["娋"],xiē:["娎","揳","楔","歇","蝎","蠍"],"wǔ méi mǔ":["娒"],"chuò lài":["娕"],niáng:["娘","嬢","孃"],"nà nuó":["娜","𦰡"],"pōu bǐ":["娝"],"něi suī":["娞"],tuì:["娧","煺","蛻","蜕","退","駾"],mǎn:["娨","屘","満","满","滿","螨","蟎","襔","鏋"],"wú wù yú":["娪"],"xī āi":["娭"],"zhuì shuì":["娷"],"dōng dòng":["娻"],"ǎi ái è":["娾"],"ē ě":["娿"],mián:["婂","嬵","宀","杣","棉","檰","櫋","眠","矈","矊","矏","綿","緜","绵","芇","蝒"],"pǒu péi bù":["婄"],biǎo:["婊","脿","表","裱","褾","諘","錶"],"fù fàn":["婏"],wǒ:["婐","婑","我"],"ní nǐ":["婗","棿"],"quán juàn":["婘","惓"],hūn:["婚","昏","昬","棔","涽","睧","睯","碈","荤","葷","蔒","轋","閽","阍"],"qiān jǐn":["婜"],"wān wà":["婠"],"lái lài":["婡","徕","徠"],"zhōu chōu":["婤"],"chuò nào":["婥"],"nüè àn":["婩"],"hùn kūn":["婫"],"dàng yáng":["婸"],nàn:["婻"],"ruò chuò":["婼"],jiǎ:["婽","岬","斚","斝","榎","槚","檟","玾","甲","胛","鉀","钾"],"tōu yú":["婾","媮"],"yù yú":["媀"],"wéi wěi":["媁"],"dì tí":["媂","珶","苐"],róu:["媃","揉","柔","渘","煣","瑈","瓇","禸","粈","糅","脜","腬","葇","蝚","蹂","輮","鍒","鞣","騥","鰇","鶔","𫐓"],"ruǎn nèn":["媆"],miáo:["媌","嫹","描","瞄","苗","鶓","鹋"],"yí pèi":["媐"],"mián miǎn":["媔"],"tí shì":["媞","惿"],"duò tuó":["媠","沲"],ǎo:["媪","媼","艹","芺","袄","襖","镺"],"chú zòu":["媰"],yìng:["媵","映","暎","硬","膡","鱦"],"qín shēn":["嫀"],jià:["嫁","幏","架","榢","稼","駕","驾"],sǎo:["嫂"],"zhēn zhěn":["嫃"],"jiē suǒ":["嫅"],"míng mǐng":["嫇"],niǎo:["嫋","嬝","嬲","茑","蔦","袅","裊","褭","鸟"],tāo:["嫍","幍","弢","慆","掏","搯","槄","涛","滔","濤","瑫","絛","縚","縧","绦","詜","謟","轁","鞱","韜","韬","飸","饕"],biáo:["嫑"],"piáo piāo":["嫖","薸"],xuán:["嫙","悬","懸","暶","檈","漩","玄","璇","璿","痃","蜁","𫠊"],"màn mān":["嫚"],kāng:["嫝","嵻","康","慷","槺","漮","砊","穅","糠","躿","鏮","鱇","𡐓","𩾌"],"hān nǎn":["嫨"],nèn:["嫩","嫰"],zhē:["嫬","遮"],"mā má":["嫲"],piè:["嫳"],zhǎn:["嫸","展","搌","斩","斬","琖","盏","盞","輾","醆","颭","飐"],"xiān yǎn jìn":["嬐"],liǎn:["嬚","敛","斂","琏","璉","羷","脸","臉","蔹","蘝","蘞","裣","襝","鄻"],"qióng huán xuān":["嬛"],dǒng:["嬞","懂","箽","董","蕫","諌"],cān:["嬠","湌","爘","飡","餐","驂","骖"],tiǎo:["嬥","宨","晀","朓","窱","脁"],bí:["嬶","荸","鼻"],liǔ:["嬼","柳","栁","桞","桺","橮","熮","珋","綹","绺","罶","羀","鋶","锍"],"qiān xiān":["孅","欦"],"xié huī":["孈"],"huān quán":["孉"],"lí lì":["孋","麗"],"zhú chuò":["孎"],kǒng:["孔","恐"],"mā zī":["孖"],"sūn xùn":["孙","孫"],"bèi bó":["孛","誖"],"yòu niū":["孧"],zhuǎn:["孨","竱","轉"],hái:["孩","骸"],nāo:["孬"],"chán càn":["孱"],bò:["孹","檗","蘗","譒"],nái:["孻","腉"],"níng nìng":["宁","寍","寗","寜","寧","甯"],zhái:["宅"],"tū jiā":["宊"],sòng:["宋","訟","誦","讼","诵","送","鎹","頌","颂","餸"],ròu:["宍","肉","譳"],zhūn:["宒","窀","衠","諄","谆","迍"],"mì fú":["宓"],"dàng tàn":["宕"],"wǎn yuān":["宛"],chǒng:["宠","寵"],qún:["宭","峮","帬","羣","群","裙","裠"],zǎi:["宰","崽"],"bǎo shí":["宲"],"jiā jia jie":["家"],"huāng huǎng":["宺"],kuān:["宽","寛","寬","臗","鑧","髋","髖"],"sù xiǔ xiù":["宿"],"jié zǎn":["寁"],"bìng bǐng":["寎"],"jìn qǐn":["寖"],"lóu jù":["寠"],"xiě xiè":["寫"],"qīn qìn":["寴"],cùn:["寸","籿"],duì:["对","対","對","怼","憝","懟","濧","瀩","碓","祋","綐","薱","譈","譵","轛","队","陮"],"lüè luó":["寽"],"shè yè yì":["射"],"jiāng jiàng qiāng":["将"],"jiāng jiàng":["將","浆","漿","畺"],zūn:["尊","嶟","樽","罇","遵","鐏","鱒","鳟","鶎","鷷","𨱔"],"shù zhù":["尌","澍"],xiǎo:["小","晓","暁","曉","皛","皢","筱","筿","篠","謏","𫍲"],"jié jí":["尐","诘","鞊"],"shǎo shào":["少"],ěr:["尒","尓","尔","栮","毦","洱","爾","珥","耳","薾","衈","趰","迩","邇","鉺","铒","餌","饵","駬"],"wāng yóu":["尢"],wāng:["尣","尩","尪","尫","汪"],liào:["尥","尦","廖","撂","料","炓","窷","鐐","镣","𪤗"],"méng máng lóng páng":["尨"],gà:["尬","魀"],"kuì kuǐ":["尯"],tuí:["尵","弚","穨","蘈","蹪","隤","頹","頺","頽","颓","魋","𬯎"],yǐn:["尹","嶾","引","朄","檃","檼","櫽","淾","濥","瘾","癮","粌","蘟","蚓","螾","讔","赺","趛","輑","鈏","靷"],"chǐ chě":["尺"],kāo:["尻","髛"],"jìn jǐn":["尽"],"wěi yǐ":["尾"],"niào suī":["尿"],céng:["层","層","嶒","驓"],diǎo:["屌"],"píng bǐng bīng":["屏"],lòu:["屚","漏","瘘","瘺","瘻","鏤","镂","陋"],"shǔ zhǔ":["属","屬"],"xiè tì":["屟"],"chè cǎo":["屮"],"tún zhūn":["屯"],"nì jǐ":["屰"],"hóng lóng":["屸"],"qǐ kǎi":["岂","豈"],áng:["岇","昂","昻"],"gǎng gāng":["岗","崗"],kě:["岢","敤","渇","渴","炣"],gǒu:["岣","狗","玽","笱","耇","耈","耉","苟","豿"],tiáo:["岧","岹","樤","祒","笤","芀","萔","蓚","蓨","蜩","迢","鋚","鎥","鞗","髫","鯈","鰷","鲦","齠","龆"],"qū jū":["岨"],lǐng:["岭","嶺","領","领"],pò:["岶","敀","洦","湐","烞","珀","破","砶","粕","蒪","魄"],"bā kè":["峇"],luò:["峈","摞","洛","洜","犖","珞","笿","纙","荦","詻","雒","駱","骆","鵅"],"fù niè":["峊"],ěn:["峎"],"zhì shì":["峙","崻"],qiǎ:["峠","跒","酠","鞐"],"qiáo jiào":["峤","癄"],"xié yé":["峫"],bū:["峬","庯","晡","誧","逋","鈽","錻","钸","餔","鵏"],chóng:["崇","崈","爞","虫","蝩","蟲","褈","隀"],"zú cuì":["崒","椊"],"líng léng":["崚"],"dòng dōng":["崠"],xiáo:["崤","洨","淆","訤","誵"],"pí bǐ":["崥","芘"],"zhǎn chán":["崭","嶃","嶄"],"wǎi wēi":["崴"],"yáng dàng":["崵"],"shì dié":["崼"],yào:["崾","曜","熎","燿","矅","穾","窔","筄","耀","艞","药","葯","薬","藥","袎","覞","詏","讑","靿","鷂","鹞","鼼"],"kān zhàn":["嵁"],"hán dǎng":["嵅"],"qiàn kàn":["嵌"],"wù máo":["嵍"],"kě jié":["嵑","嶱"],"wēi wěi":["嵔"],kē:["嵙","柯","棵","榼","樖","牁","牱","犐","珂","疴","瞌","磕","礚","科","稞","窠","萪","薖","蚵","蝌","趷","轲","醘","鈳","钶","頦","顆","颗","髁"],"dàng táng":["嵣"],"róng yíng":["嵤","爃"],"ái kǎi":["嵦"],"kāo qiāo":["嵪"],cuó:["嵯","嵳","痤","矬","蒫","蔖","虘","鹺","鹾"],"qiǎn qīn":["嵰"],"dì dié":["嵽"],cēn:["嵾"],dǐng:["嵿","艼","薡","鐤","頂","顶","鼎","鼑"],"áo ào":["嶅"],"pǐ pèi":["嶏"],"jiào qiáo":["嶠","潐"],"jué guì":["嶡","鳜"],"zhān shàn":["嶦","鳣"],"xiè jiè":["嶰"],"guī xī juàn":["嶲"],rū:["嶿"],"lì liè":["巁","棙","爄","綟"],"xī guī juàn":["巂"],"yíng hōng":["巆"],yǐng:["巊","廮","影","摬","梬","潁","瘿","癭","矨","穎","郢","鐛","頴","颍","颕","颖"],chǎo:["巐","炒","煼","眧","麨"],cuán:["巑","櫕","欑"],chuān:["巛","川","氚","瑏","穿"],"jīng xíng":["巠"],cháo:["巢","巣","晁","漅","潮","牊","窲","罺","謿","轈","鄛","鼌"],qiǎo:["巧","愀","髜"],gǒng:["巩","廾","拱","拲","栱","汞","珙","輁","鞏"],"chà chā chāi cī":["差"],"xiàng hàng":["巷"],shuài:["帅","帥","蟀"],pà:["帊","帕","怕","袙"],"tǎng nú":["帑"],"mò wà":["帓"],"tiē tiě tiè":["帖"],zhǒu:["帚","晭","疛","睭","箒","肘","菷","鯞"],"juǎn juàn":["帣"],shuì:["帨","涗","涚","睡","稅","税","裞"],"chóu dào":["帱","幬"],"jiǎn jiān sàn":["帴"],"shà qiè":["帹"],"qí jì":["帺","荠"],"shān qiāo shēn":["幓"],"zhuàng chuáng":["幢"],"chān chàn":["幨"],miè:["幭","懱","搣","滅","灭","烕","礣","篾","蔑","薎","蠛","衊","鑖","鱴","鴓"],"gān gàn":["干"],"bìng bīng":["并","幷"],"jī jǐ":["幾"],"guǎng ān":["广"],guǎng:["広","廣","犷","獷"],me:["庅"],"dùn tún":["庉"],"bài tīng":["庍"],"yìng yīng":["应"],"dǐ de":["底"],"dù duó":["度"],"máng méng páng":["庬"],"bìng píng":["庰"],chěng:["庱","悜","睈","逞","騁","骋"],"jī cuò":["庴"],qǐng:["庼","廎","檾","漀","苘","請","謦","请","頃","顷"],"guī wěi huì":["廆"],"jǐn qín":["廑"],kuò:["廓","扩","拡","擴","濶","筈","萿","葀","蛞","闊","阔","霩","鞟","鞹","韕","頢","鬠"],"qiáng sè":["廧","薔"],"yǐn yìn":["廴","隐","隠","隱","飮","飲","饮"],"pò pǎi":["廹","迫"],"nòng lòng":["弄"],"dì tì tuí":["弟"],"jué zhāng":["弡"],"mí mǐ":["弥","彌","靡"],chāo:["弨","怊","抄","欩","訬","超","鈔","钞"],yi:["弬"],shāo:["弰","旓","烧","焼","燒","筲","艄","萷","蕱","輎","髾","鮹"],"xuān yuān":["弲"],"qiáng qiǎng jiàng":["強","强"],"tán dàn":["弹","醈"],biè:["彆"],"qiáng jiàng qiǎng":["彊"],"jì xuě":["彐"],tuàn:["彖","褖"],yuē:["彟","曰","曱","矱"],"shān xiǎn":["彡"],wén:["彣","文","炆","珳","瘒","繧","聞","芠","蚉","蚊","螡","蟁","閺","閿","闅","闦","闻","阌","雯","馼","駇","魰","鳼","鴍","鼤","𫘜"],"péng bāng":["彭"],"piāo piào":["彯"],"zhuó bó":["彴"],"tuǒ yí":["彵"],"páng fǎng":["彷"],wǎng:["彺","往","徃","惘","枉","棢","網","网","罒","罓","罔","罖","菵","蛧","蝄","誷","輞","辋","魍"],cú:["徂","殂"],"dài dāi":["待"],huái:["徊","怀","懐","懷","槐","淮","耲","蘹","褢","褱","踝"],"wā wàng jiā":["徍"],"chěng zhèng":["徎"],"dé děi de":["得"],"cóng zòng":["從"],"shì tǐ":["徥"],"tí chí":["徲","鶗","鶙"],dé:["徳","德","恴","悳","惪","淂","鍀","锝"],"zhǐ zhēng":["徴","徵"],bié:["徶","癿","莂","蛂","襒","蹩"],"chōng zhǒng":["徸"],"jiǎo jiào":["徼","笅","筊"],"lòng lǒng":["徿"],"qú jù":["忂","渠","瞿","螶"],"dìng tìng":["忊"],gǎi:["忋","改"],rěn:["忍","栠","栣","秹","稔","綛","荏","荵","躵"],chàn:["忏","懴","懺","硟","羼","韂","顫"],tè:["忑","慝","特","蟘","鋱","铽"],"tè tēi tuī":["忒"],"gān hàn":["忓","攼"],"yì qì":["忔"],"tài shì":["忕"],"xī liě":["忚"],"yīng yìng":["応","應","譍"],"mǐn wěn mín":["忞","忟"],"sōng zhōng":["忪"],"yù shū":["忬","悆"],"qí shì":["忯","耆"],"tún zhūn dùn":["忳"],"qián qín":["忴","扲"],hún:["忶","浑","渾","餛","馄","魂","鼲"],niǔ:["忸","扭","炄","狃","紐","纽","莥","鈕","钮","靵"],"kuáng wǎng":["忹"],"kāng hàng":["忼"],"kài xì":["忾","愾"],òu:["怄","慪"],"bǎo bào":["怉"],"mín mén":["怋"],"zuò zhà":["怍"],zěn:["怎"],yàng:["怏","恙","样","様","樣","漾","羕","詇"],"kòu jù":["怐"],"náo niú":["怓"],"zhēng zhèng":["怔","掙","钲","铮"],"tiē zhān":["怗"],"hù gù":["怘"],"cū jù zū":["怚"],"sī sāi":["思"],"yóu chóu":["怞"],"tū dié":["怢"],"yōu yào":["怮"],xuàn:["怰","昡","楦","泫","渲","炫","琄","眩","碹","絢","縼","繏","绚","蔙","衒","袨","贙","鉉","鏇","铉","镟","颴"],"xù xuè":["怴"],"bì pī":["怶"],"xī shù":["怸"],"nèn nín":["恁"],"tiāo yáo":["恌"],"xī qī xù":["恓"],"xiào jiǎo":["恔"],"hū kuā":["恗"],nǜ:["恧","朒","衂","衄"],hèn:["恨"],"dòng tōng":["恫"],"quán zhuān":["恮"],"è wù ě wū":["恶","惡"],tòng:["恸","慟","憅","痛","衕"],"yuān juàn":["悁"],"qiāo qiǎo":["悄"],"jiè kè":["悈"],"hào jiào":["悎"],huǐ:["悔","檓","毀","毁","毇","燬","譭"],"mán mèn":["悗","鞔"],"yī yì":["悘","衣"],quān:["悛","箞","鐉","𨟠"],"kuī lǐ":["悝"],"yì niàn":["悥"],"mèn mēn":["悶"],guàn:["悹","悺","惯","慣","掼","摜","樌","欟","泴","涫","潅","灌","爟","瓘","盥","礶","祼","罆","罐","貫","贯","躀","遦","鏆","鑵","鱹","鸛","鹳"],"kōng kǒng":["悾"],"lǔn lùn":["惀"],guǒ:["惈","果","椁","槨","粿","綶","菓","蜾","裹","褁","輠","餜","馃"],"yuān wǎn":["惌","箢"],"lán lín":["惏"],"yù xù":["惐","淢"],"chuò chuì":["惙"],"hūn mèn":["惛"],"chǎng tǎng":["惝"],"suǒ ruǐ":["惢"],cǎn:["惨","慘","憯","黪","黲","䅟"],cán:["惭","慙","慚","残","殘","蚕","蝅","蠶","蠺"],"dàn dá":["惮","憚"],rě:["惹"],"yú tōu":["愉"],"kài qì":["愒"],"dàng táng shāng yáng":["愓"],"chén xìn dān":["愖"],"kè qià":["愘"],nuò:["愞","懦","懧","掿","搦","榒","稬","穤","糑","糥","糯","諾","诺","蹃","逽","鍩","锘"],gǎn:["感","擀","敢","桿","橄","澉","澸","皯","秆","稈","笴","芉","衦","赶","趕","鱤","鳡"],"còng sōng":["愡"],"sāi sī sǐ":["愢"],"gōng gòng hǒng":["愩","慐"],"shuò sù":["愬","洬"],"yáo yào":["愮"],huàng:["愰","曂","榥","滉","皝","皩","鎤","㿠"],zhěng:["愸","抍","拯","整","晸"],cǎo:["愺","艸","草","騲"],"xì xié":["慀"],"cǎo sāo":["慅"],"xù chù":["慉"],"qiè qiàn":["慊"],"cáo cóng":["慒"],"ào áo":["慠"],"lián liǎn":["慩","梿","槤","櫣"],"jìn qín jǐn":["慬"],"dì chì":["慸"],"zhí zhé":["慹"],"lóu lǚ":["慺","鷜"],còng:["憁","謥"],"zhī zhì":["憄","知","織","织"],chēng:["憆","摚","撐","撑","晿","柽","棦","橕","檉","泟","浾","琤","瞠","碀","緽","罉","蛏","蟶","赪","赬","鏿","鐣","阷","靗","頳","饓"],biē:["憋","虌","鱉","鳖","鼈","龞"],"chéng dèng zhèng":["憕"],"xǐ xī":["憘"],"duì dùn tūn":["憞"],"xiāo jiāo":["憢"],"xián xiàn":["憪"],"liáo liǎo":["憭","燎","爎","爒"],shéng:["憴","縄","繉","繩","绳","譝"],"náo nǎo náng":["憹"],"jǐng jìng":["憼"],"jǐ jiǎo":["憿"],"xuān huān":["懁"],"cǎo sāo sào":["懆"],mèn:["懑","懣","暪","焖","燜"],"mèng méng měng":["懜"],"ài yì nǐ":["懝"],"méng měng":["懞","瞢","矒"],"qí jī jì":["懠"],mǒ:["懡"],"lán xiàn":["懢"],"yōu yǒu":["懮"],"liú liǔ":["懰","藰"],ràng:["懹","譲","讓","让"],huān:["懽","欢","歓","歡","獾","讙","貛","酄","驩","鴅","鵍"],nǎn:["戁","揇","湳","煵","腩","蝻","赧"],"mí mó":["戂"],"gàng zhuàng":["戅","戆"],"zhuàng gàng":["戇"],"xū qu":["戌"],"xì hū":["戏","戯","戲"],"jiá gā":["戛"],zéi:["戝","蠈","賊","贼","鰂","鱡","鲗"],děng:["戥","等"],"hū xì":["戱"],chuō:["戳","踔","逴"],"biǎn piān":["扁"],"shǎng jiōng":["扄"],"shàn shān":["扇"],cái:["才","材","纔","裁","財","财"],"zhā zā zhá":["扎"],"lè lì cái":["扐"],"bā pá":["扒"],"dǎ dá":["打"],rēng:["扔"],"fǎn fú":["払"],"diǎo dí yuē lì":["扚"],"káng gāng":["扛"],"yū wū":["扜"],"yū wū kū":["扝"],"tuō chǐ yǐ":["扡"],"gǔ jié xì gē":["扢"],dèn:["扥","扽"],"sǎo sào":["扫","掃"],rǎo:["扰","擾","隢"],"xī chā qì":["扱"],"bān pān":["扳"],"bā ào":["扷"],"xī zhé":["扸"],"zhì sǔn kǎn":["扻"],zhǎo:["找","沼","瑵"],"kuáng wǎng zài":["抂"],"hú gǔ":["抇","鹄","鹘"],"bǎ bà":["把"],"dǎn shěn":["抌"],"nè nì ruì nà":["抐"],zhuā:["抓","檛","簻","膼","髽"],póu:["抔","裒"],"zhé shé zhē":["折"],"póu pōu fū":["抙","捊"],pāo:["抛","拋","脬","萢"],"ǎo ào niù":["抝"],"lūn lún":["抡","掄"],"qiǎng qiāng chēng":["抢"],"zhǐ zhǎi":["抧"],"bù pū":["抪","柨"],"yǎo tāo":["抭"],"hē hè qiā":["抲"],"nǐ ní":["抳"],"pī pēi":["抷"],"mǒ mò mā":["抹"],chōu:["抽","犨","犫","瘳","篘"],"jiā yá":["拁"],"fú bì":["拂","畐","鶝"],zhǎ:["拃","眨","砟","鮺","鲝"],"dān dàn dǎn":["担"],"chāi cā":["拆"],niān:["拈","蔫"],"lā lá lǎ là":["拉"],"bàn pàn":["拌"],pāi:["拍"],līn:["拎"],guǎi:["拐","枴","柺"],"tuò tà zhí":["拓"],"ào ǎo niù":["拗"],"jū gōu":["拘"],"pīn pàn fān":["拚"],"bài bái":["拜"],bài:["拝","敗","稗","粺","薭","贁","败","韛"],qiá:["拤"],"nǐng níng nìng":["拧"],"zé zhái":["择","擇"],hén:["拫","痕","鞎"],"kuò guā":["括"],"jié jiá":["拮"],nǐn:["拰"],shuān:["拴","栓","閂","闩"],"cún zùn":["拵"],"zā zǎn":["拶","桚"],kǎo:["拷","攷","栲","烤","考"],"yí chǐ hài":["拸"],"cè sè chuò":["拺"],"zhuài zhuāi yè":["拽"],"shí shè":["拾"],bāi:["挀","掰"],"kuò guāng":["挄"],nòng:["挊","挵","齈"],"jiào jiāo":["挍","敎","教"],"kuà kū":["挎"],"ná rú":["挐"],"tiāo tiǎo":["挑"],"dié shè":["挕"],liě:["挘","毟"],"yà yǎ":["挜","掗"],"wō zhuā":["挝"],"xié jiā":["挟","挾"],"dǎng dàng":["挡","擋"],"zhèng zhēng":["挣","正","症"],"āi ái":["挨"],"tuō shuì":["挩","捝"],"tǐ tì":["挮"],"suō shā":["挱"],"sā shā suō":["挲"],"kēng qiān":["挳","摼"],"bàng péng":["挷"],"ruó ruá":["挼"],"jiǎo kù":["捁"],"wǔ wú":["捂"],tǒng:["捅","桶","筒","筩","統","綂","统","㛚"],"huò chì":["捇"],"tú shū chá":["捈"],"lǚ luō":["捋"],"shāo shào":["捎","稍"],niē:["捏","揑"],"shù sǒng sōu":["捒"],"yé yú":["捓"],"jué zhuó":["捔"],"bù pú zhì":["捗"],zùn:["捘","銌"],lāo:["捞","撈","粩"],sǔn:["损","損","榫","笋","筍","箰","鎨","隼"],"wàn wǎn wān yù":["捥"],pěng:["捧","淎","皏"],shě:["捨"],"fǔ fù bǔ":["捬"],dáo:["捯"],"luò luǒ wǒ":["捰"],"juǎn quán":["捲"],"chēn tiǎn":["捵"],"niǎn niē":["捻"],"ruó wěi ré":["捼"],zuó:["捽","昨","秨","稓","筰","莋","鈼"],"wò xiá":["捾"],"qìng qiàn":["掅"],"póu pǒu":["掊"],qiā:["掐","葜"],"pái pǎi":["排"],"qiān wàn":["掔"],"yè yē":["掖"],"niè nǐ yì":["掜"],"huò xù":["掝"],"yàn shàn yǎn":["掞"],"zhěng dìng":["掟"],kòng:["控","鞚"],tuī:["推","蓷","藬"],"zōu zhōu chōu":["掫"],tiàn:["掭","舚"],kèn:["掯","裉","褃"],pá:["掱","杷","潖","爬","琶","筢"],"guó guāi":["掴"],"dǎn shàn":["掸","撣"],"chān xiān càn shǎn":["掺"],sāo:["掻","搔","溞","繅","缫","螦","騒","騷","鰠","鱢","鳋"],pèng:["掽","椪","槰","碰","踫"],"zhēng kēng":["揁"],"jiū yóu":["揂"],"jiān jiǎn":["揃","籛"],"pì chè":["揊"],"sāi zǒng cāi":["揌"],"tí dī dǐ":["提"],"zǒng sōng":["揔"],"huáng yóng":["揘"],"zǎn zuàn":["揝"],"xū jū":["揟"],"ké qiā":["揢"],"chuāi chuǎi chuài tuán zhuī":["揣"],"dì tì":["揥"],"lá là":["揦"],là:["揧","楋","溂","瓎","瘌","翋","臘","蝋","蝲","蠟","辢","辣","鑞","镴","鬎","鯻","𬶟"],"jiē qì":["揭"],"chòng dǒng":["揰"],"dié shé yè":["揲"],"jiàn qián jiǎn":["揵"],yé:["揶","爷","爺","瑘","鋣","鎁","铘"],chān:["搀","摻","攙","裧","襜","覘","觇","辿","鋓"],"gē gé":["搁","擱"],"lǒu lōu":["搂","摟"],"chōu zǒu":["搊"],chuāi:["搋"],sūn:["搎","槂","狲","猻","荪","蓀","蕵","薞","飧","飱"],"róng náng nǎng":["搑"],"péng bàng":["搒"],cuō:["搓","瑳","磋","蹉","遳","醝"],"kē è":["搕"],"nù nuò nòu":["搙"],"lā xié xiàn":["搚"],qiǔ:["搝","糗"],"xiǎn xiān":["搟"],"jié zhé":["搩"],"pán bān pó":["搫"],bān:["搬","攽","斑","斒","班","瘢","癍","肦","螁","螌","褩","辬","頒","颁","𨭉"],"zhì nái":["搱"],"wā wǎ wà":["搲"],huá:["搳","撶","滑","猾","蕐","螖","譁","鏵","铧","驊","骅","鷨"],"qiāng qiǎng chēng":["搶"],"tián shēn":["搷"],"ná nuò":["搻"],èn:["摁"],"shè niè":["摄","攝"],bìn:["摈","擯","殡","殯","膑","臏","髌","髕","髩","鬂","鬓","鬢"],"shā sà shǎi":["摋"],"chǎn sùn":["摌"],"jiū liú liáo jiǎo náo":["摎"],"féng pěng":["摓"],shuāi:["摔"],"dì tú zhí":["摕"],"qì jì chá":["摖"],"sōu sǒng":["摗"],"liǎn liàn":["摙"],"gài xì":["摡"],"hù chū":["摢"],tàng:["摥","烫","燙","鐋"],"nái zhì":["摨"],"mó mā":["摩"],"jiāng qiàng":["摪"],"áo qiáo":["摮"],"niè chè":["摰"],"mán màn":["摱"],"chàn cán":["摲"],"sè mí sù":["摵"],"biāo biào":["摽"],"juē jué":["撅"],piē:["撆","暼","氕","瞥"],"piě piē":["撇"],"zǎn zān zēn qián":["撍"],"sā sǎ":["撒"],hòng:["撔","訌","讧","闀","鬨"],"héng guàng":["撗"],niǎn:["撚","撵","攆","涊","焾","碾","簐","蹍","蹨","躎","輦","辇"],"chéng zhěng":["撜"],"huī wéi":["撝"],cāo:["撡","操","糙"],"xiāo sōu":["撨"],"liáo liāo":["撩"],"cuō zuǒ":["撮"],"wěi tuǒ":["撱"],cuān:["撺","攛","汆","蹿","躥","鑹","镩"],"qiào yāo jī":["撽"],"zhuā wō":["撾"],"lèi léi":["擂"],nǎng:["擃","攮","曩","灢"],"qíng jǐng":["擏"],kuǎi:["擓","蒯","㧟"],"pǐ bò":["擗"],"bò bāi":["擘"],"jù jǐ":["據"],mēng:["擝"],"sǒu sòu":["擞"],xǐng:["擤","箵","醒"],cā:["擦"],"níng nǐng nìng":["擰"],"zhì jié":["擳"],"là liè":["擸","爉"],"sòu sǒu":["擻"],"lì luò yuè":["擽"],"tī zhāi zhì":["擿"],pān:["攀","潘","眅","萠"],lèi:["攂","泪","涙","淚","禷","类","纇","蘱","酹","銇","錑","頛","頪","類","颣"],"cā sǎ":["攃"],"jùn pèi":["攈"],"lì luò":["攊","躒"],"là lài":["攋","櫴"],"lú luó":["攎"],"zǎn cuán":["攒"],"xiān jiān":["攕"],"mí mǐ mó":["攠"],"zǎn cuán zàn zuān":["攢"],zuàn:["攥"],"lì shài":["攦"],"lì luǒ":["攭"],"guǐ guì":["攱"],"jī qī yǐ":["攲"],fàng:["放"],"wù móu":["敄"],"chù shōu":["敊"],"gé guó è":["敋"],"duó duì":["敓","敚"],"duō què":["敠","敪"],"sàn sǎn":["散"],"dūn duì":["敦","镦"],"qī yǐ jī":["敧"],"xiào xué":["敩"],"shù shǔ shuò":["数","數"],"ái zhú":["敱","敳"],"xiòng xuàn":["敻"],"zhuó zhú":["斀"],"yì dù":["斁"],"lí tái":["斄"],"fěi fēi":["斐"],"yǔ zhōng":["斔"],"dòu dǒu":["斗"],"wò guǎn":["斡"],"tǒu tiǎo":["斢"],dòu:["斣","梪","浢","痘","窦","竇","脰","荳","豆","逗","郖","酘","閗","闘","餖","饾","鬥","鬦","鬪","鬬","鬭"],"yín zhì":["斦"],"chǎn jiè":["斺"],"wū yū yú":["於"],"yóu liú":["斿"],"páng bàng":["旁"],"máo mào":["旄"],"pī bì":["旇"],"xuán xuàn":["旋"],"wú mó":["无"],zǎo:["早","枣","栆","棗","澡","璪","薻","藻","蚤"],gā:["旮"],"gàn hàn":["旰"],"tái yīng":["旲"],"xū xù":["旴"],"tūn zhùn":["旽"],"wù wǔ":["旿"],"pò pèi":["昢"],zòng:["昮","猔","疭","瘲","粽","糉","糭","縦"],ǎi:["昹","毐","矮","蔼","藹","譪","躷","霭","靄"],"huàng huǎng":["晃"],xuǎn:["晅","癣","癬","选","選"],"xù kuā":["晇"],hǒng:["晎"],shài:["晒","曬"],"yūn yùn":["晕","煴"],"shèng chéng":["晟","椉","盛"],"jǐng yǐng":["景"],shǎn:["晱","熌","睒","覢","閃","闪","陕","陝"],"qǐ dù":["晵"],"ǎn àn yǎn":["晻"],"wǎng wàng":["暀"],zàn:["暂","暫","瓉","瓒","瓚","禶","襸","讃","讚","賛","贊","赞","蹔","鄼","錾","鏨","饡"],"yùn yūn":["暈"],"mín mǐn":["暋"],"dǔ shǔ":["暏"],shǔ:["暑","曙","潻","癙","糬","署","薥","薯","藷","蜀","蠴","襡","襩","鱪","鱰","黍","鼠","鼡"],"jiǎn lán":["暕"],nuǎn:["暖","煗","餪"],"bào pù":["暴"],"xī xǐ":["暿"],"pù bào":["曝","瀑"],"qū qǔ":["紶"],"qǔ qū":["曲"],"gèng gēng":["更"],"hū hù":["曶","雽"],"zēng céng":["曽","橧"],"céng zēng":["曾","竲"],"cǎn qián jiàn":["朁"],"qiè hé":["朅"],"bì pí":["朇","禆","笓","裨"],"yǒu yòu":["有"],"bān fén":["朌","鳻"],"fú fù":["服","洑"],"fěi kū":["朏","胐"],"qú xù chǔn":["朐"],"juān zuī":["朘"],"huāng máng wáng":["朚"],"qī jī":["期"],"tóng chuáng":["朣","橦"],zhá:["札","牐","箚","蚻","譗","鍘","铡","閘","闸"],"zhú shù shú":["朮"],"shù shú zhú":["术"],"zhū shú":["朱"],"pǔ pò pō piáo":["朴"],"dāo tiáo mù":["朷"],"guǐ qiú":["朹"],xiǔ:["朽","滫","潃","糔"],"chéng chēng":["朾"],zá:["杂","沯","砸","襍","雑","雜","雥","韴"],"yú wū":["杅"],"gān gǎn":["杆"],"chā chà":["杈"],"shān shā":["杉"],cūn:["村","皴","竴","膥","踆","邨"],"rèn ér":["杒","梕"],"sháo biāo":["杓"],"dì duò":["杕","枤"],"gū gài":["杚"],"yí zhì lí duò":["杝"],"gàng gāng":["杠"],"tiáo tiāo":["条","條"],"mà mǎ":["杩"],"sì zhǐ xǐ":["杫"],"yuán wán":["杬","蚖"],"bèi fèi":["杮"],"shū duì":["杸"],"niǔ chǒu":["杻"],"wò yuè":["枂","臒"],máo:["枆","毛","氂","渵","牦","矛","罞","茅","茆","蝥","蟊","軞","酕","鉾","錨","锚","髦","鶜"],"pī mì":["枈"],àng:["枊","盎","醠"],"fāng bìng":["枋"],"hù dǐ":["枑"],xín:["枔","襑","鐔","鬵"],"yāo yǎo":["枖"],"ě è":["枙"],"zhī qí":["枝"],"cōng zōng":["枞","樅"],"xiān zhēn":["枮"],"tái sì":["枱"],"gǒu jǔ gōu":["枸"],"bāo fú":["枹"],"yì xiè":["枻","栧"],"tuó duò":["柁","馱","駄","驮"],"yí duò lí":["柂"],"nǐ chì":["柅"],"pán bàn":["柈","跘"],"yǎng yàng yāng yīng":["柍"],"fù fū fǔ":["柎"],"bǎi bó bò":["柏"],mǒu:["某"],"sháo shào":["柖"],zhè:["柘","樜","浙","淛","蔗","蟅","這","鷓","鹧","䗪"],"yòu yóu":["柚","櫾"],"guì jǔ":["柜"],"zhà zuò":["柞"],"dié zhì":["柣","眰"],"zhā zǔ zū":["柤"],"chá zhā":["查","査"],"āo ào":["柪","軪"],"bā fú pèi bó biē":["柭"],"duò zuó wù":["柮"],"bì bié":["柲"],"zhù chù":["柷"],"bēi pēi":["柸"],"shì fèi":["柹"],"shān zhà shi cè":["栅"],"lì yuè":["栎","櫟"],"qì qiè":["栔","砌"],"qī xī":["栖","蹊"],"guā kuò":["栝"],"bīng bēn":["栟"],"xiào jiào":["校"],"jiàn zùn":["栫","袸"],"yǒu yù":["栯"],"hé hú":["核"],gēn:["根","跟"],"zhī yì":["栺"],"gé gē":["格"],"héng háng":["桁"],"guàng guāng":["桄"],"yí tí":["桋","荑"],sāng:["桑","桒","槡"],"jú jié":["桔"],"yú móu":["桙"],"ráo náo":["桡","橈"],"guì huì":["桧","檜"],"chén zhèn":["桭"],"tīng yíng":["桯"],"bó po":["桲"],"bèn fàn":["桳"],"fēng fèng":["桻","葑"],"sù yìn":["梀"],"tǐng tìng":["梃"],"xuān juān xié":["梋"],"tú chá":["梌"],"āo yòu":["梎"],kuǎn:["梡","欵","款","歀"],"shāo sào":["梢"],"qín chén cén":["梣"],"lí sì qǐ":["梩"],"chān yán":["梴"],"bīn bīng":["梹","槟","檳"],"táo chóu dào":["梼"],"cōng sōng":["棇"],"gùn hùn":["棍"],"dé zhé":["棏"],"pái bèi pèi":["棑"],"bàng pǒu bèi bēi":["棓"],"dì dài tì":["棣"],sēn:["森","椮","槮","襂"],"rěn shěn":["棯"],"léng lēng líng":["棱"],"fú sù":["棴"],"zōu sǒu":["棷"],zōu:["棸","箃","緅","諏","诹","邹","郰","鄒","鄹","陬","騶","驺","鯫","鲰","黀","齱","齺"],"zhào zhuō":["棹"],"chēn shēn":["棽"],"jiē qiè":["椄"],"yǐ yī":["椅"],"chóu zhòu diāo":["椆"],"qiāng kōng":["椌"],"zhuī chuí":["椎"],"bēi pí":["椑"],mēn:["椚"],"quān juàn quán":["椦"],"duǒ chuán":["椯"],"wěi huī":["椲"],"jiǎ jiā":["椵"],"hán jiān":["椷"],"shèn zhēn":["椹"],"yàn yà":["椻"],"zhā chá":["楂"],"guō kuǎ":["楇"],"jí zhì":["楖"],"kǔ hù":["楛"],"yóu yǒu":["楢"],"sǒng cōng":["楤"],"yuán xuàn":["楥"],"yǎng yàng yīng":["楧"],pián:["楩","胼","腁","賆","蹁","駢","騈","骈","骿","㛹"],"dié yè":["楪"],"dùn shǔn":["楯"],"còu zòu":["楱"],"dì dǐ shì":["楴"],"kǎi jiē":["楷"],"róu ròu":["楺"],"lè yuè":["楽"],"wēn yùn":["榅","鞰"],lǘ:["榈","櫚","氀","膢","藘","閭","闾","驢","驴"],shén:["榊","神","鉮","鰰","𬬹"],"bī pi":["榌"],"zhǎn niǎn zhèn":["榐"],"fú fù bó":["榑"],"jiàn jìn":["榗"],"bǎng bàng":["榜"],"shā xiè":["榝","樧"],nòu:["槈","耨","鎒","鐞"],"qiǎn lián xiàn":["槏"],gàng:["槓","焵","焹","筻","鿍"],gāo:["槔","槹","橰","櫜","睾","篙","糕","羔","臯","韟","餻","高","髙","鷎","鷱","鼛"],"diān zhěn zhēn":["槙"],"kǎn jiàn":["槛"],"xí dié":["槢"],"jī guī":["槣"],"róng yōng":["槦"],"tuán shuàn quán":["槫"],"qì sè":["槭"],"cuī zhǐ":["槯"],"yǒu chǎo":["槱"],"màn wàn":["槾"],"lí chī":["樆"],"léi lěi":["樏","櫑","礌"],"cháo jiǎo chāo":["樔"],"chēng táng":["樘"],"jiū liáo":["樛"],"mó mú":["模"],"niǎo mù":["樢"],"héng hèng":["横","橫"],xuě:["樰","膤","艝","轌","雪","鱈","鳕"],"fá fèi":["橃"],rùn:["橍","润","潤","膶","閏","閠","闰"],"zhǎn jiǎn":["橏"],shùn:["橓","瞚","瞬","舜","蕣","順","顺","鬊"],"tuí dūn":["橔"],"táng chēng":["橖"],"sù qiū":["橚"],"tán diàn":["橝"],"fén fèn fèi":["橨"],"rǎn yān":["橪"],"cū chu":["橻"],"shū qiāo":["橾"],"píng bò":["檘"],"zhái shì tú":["檡"],"biǎo biāo":["檦"],"qiān lián":["檶"],"nǐ mí":["檷"],"jiàn kǎn":["檻"],"nòu ruǎn rú":["檽"],"jī jì":["櫅","禨"],"huǎng guǒ gǔ":["櫎"],"lǜ chū":["櫖"],"miè mèi":["櫗"],ōu:["櫙","欧","歐","殴","毆","瓯","甌","膒","藲","謳","讴","鏂","鴎","鷗","鸥"],"zhù zhuó":["櫡"],"jué jì":["櫭"],"huái guī":["櫰"],"chán zhàn":["欃"],"wéi zuì":["欈"],cáng:["欌","鑶"],"yù yì":["欥"],"chù qù xì":["欪"],"kài ài":["欬"],"yì yīn":["欭"],"xì kài":["欯"],"shuò sòu":["欶"],"ǎi ēi éi ěi èi ê̄ ế ê̌ ề":["欸"],"qī yī":["欹"],"chuā xū":["欻"],"chǐ chuài":["欼"],"kǎn qiàn":["欿"],"kǎn kè":["歁"],"chuǎn chuán":["歂"],"yīn yān":["歅"],"jìn qūn":["歏"],pēn:["歕"],"xū chuā":["歘"],"xī shè":["歙"],"liǎn hān":["歛"],"zhì chí":["歭"],"sè shà":["歰"],sǐ:["死"],"wěn mò":["歾"],piǎo:["殍","皫","瞟","醥","顠"],"qíng jìng":["殑"],"fǒu bó":["殕"],"zhí shi":["殖"],"yè yān yàn":["殗"],"hūn mèi":["殙"],chòu:["殠","臰","遚"],"kuì huì":["殨","溃","潰"],cuàn:["殩","熶","爨","窜","竄","篡","簒"],"yīn yān yǐn":["殷"],"qìng kēng shēng":["殸"],"yáo xiáo xiào":["殽"],"gū gǔ":["毂","蛄"],"guàn wān":["毌"],"dú dài":["毒"],"xún xùn":["毥"],mú:["毪","氁"],"dòu nuò":["毭"],"sāi suī":["毸"],lu:["氇"],sào:["氉","瘙","矂","髞"],"shì zhī":["氏"],"dī dǐ":["氐"],"máng méng":["氓"],"yáng rì":["氜"],shuǐ:["水","氵","氺","閖"],"zhěng chéng zhèng":["氶"],tǔn:["氽"],"fán fàn":["氾"],"guǐ jiǔ":["氿"],"bīn pà pā":["汃"],"zhuó què":["汋"],"dà tài":["汏"],pìn:["汖","牝","聘"],"hàn hán":["汗","馯"],tu:["汢"],"tāng shāng":["汤","湯"],"zhī jì":["汥"],"gàn hán cén":["汵"],"wèn mén":["汶"],"fāng pāng":["汸"],"hǔ huǎng":["汻"],"niú yóu":["汼"],hàng:["沆"],"shěn chén":["沈"],"dùn zhuàn":["沌"],"nǜ niǔ":["沑"],"méi mò":["沒","没"],"tà dá":["沓"],"mì wù":["沕"],"hóng pāng":["沗"],"shā shà":["沙"],"zhuǐ zǐ":["沝"],"ōu òu":["沤","漚"],"jǔ jù":["沮"],"tuō duó":["沰"],"mǐ lì":["沵"],"yí chí":["沶"],"xiè yì":["泄"],"bó pō":["泊"],"mì bì":["泌","秘"],"chù shè":["泏"],"yōu yòu āo":["泑"],"pēng píng":["泙","硑"],"pào pāo":["泡"],"ní nì":["泥","秜"],"yuè sà":["泧"],"jué xuè":["泬","疦"],"lóng shuāng":["泷","瀧"],"luò pō":["泺","濼"],"zé shì":["泽","澤"],"sǎ xǐ":["洒"],"sè qì zì":["洓"],"xǐ xiǎn":["洗"],"kǎo kào":["洘"],"àn yàn è":["洝"],"lěi lèi":["洡"],"qiè jié":["洯"],"qiǎn jiān":["浅"],"jì jǐ":["济","済","濟","纪"],"hǔ xǔ":["浒","滸"],"jùn xùn":["浚","濬"],"yǐng chéng yíng":["浧"],"liàn lì":["浰"],"féng hóng":["浲","溄"],"jiǒng jiōng":["浻"],"suī něi":["浽"],"yǒng chōng":["涌"],"tūn yūn":["涒"],"wō guō":["涡","渦"],hēng:["涥","脝"],"zhǎng zhàng":["涨","漲"],"shòu tāo":["涭"],shuàn:["涮","腨"],"kōng náng":["涳"],"wò wǎn yuān":["涴"],"tuō tuò":["涶"],wō:["涹","猧","窝","窩","莴","萵","蜗","蝸","踒"],"qiè jí":["淁"],"guǒ guàn":["淉"],"lín lìn":["淋","獜","疄"],"tǎng chǎng":["淌"],"nào chuò zhuō":["淖"],"péng píng":["淜"],féi:["淝","肥","腓","蜰"],"pì pèi":["淠"],"niǎn shěn":["淰"],"biāo hǔ":["淲"],"chún zhūn":["淳"],"hùn hún":["混"],qiǎn:["淺","繾","缱","肷","膁","蜸","譴","谴","遣","鑓"],"wèn mín":["渂"],"rè ruò luò":["渃"],"dú dòu":["渎","瀆","读"],"jiàn jiān":["渐","溅","漸","濺"],"miǎn shéng":["渑","澠"],"nuǎn nuán":["渜"],"qiú wù":["渞"],"tíng tīng":["渟"],"dì tí dī":["渧"],"gǎng jiǎng":["港"],"hōng qìng":["渹"],tuān:["湍","煓"],"huì mǐn xū":["湏"],"xǔ xù":["湑"],pén:["湓","瓫","盆","葐"],"mǐn hūn":["湣"],"tuàn nuǎn":["湪"],"qiū jiǎo":["湫","湬"],"yān yīn":["湮"],"bàn pán":["湴"],"zhuāng hún":["湷"],"yàn guì":["溎"],"lián liǎn nián xián xiàn":["溓"],"dá tǎ":["溚","鿎"],"liū liù":["溜","澑","蹓"],lùn:["溣"],mǎ:["溤","犸","獁","玛","瑪","码","碼","遤","鎷","馬","马","鰢","鷌"],"zhēn qín":["溱"],"nì niào":["溺"],"chù xù":["滀","畜"],"wěng wēng":["滃"],"hào xuè":["滈"],"qì xì xiē":["滊"],"xíng yíng":["滎"],"zé hào":["滜"],"piāo piào piǎo":["漂"],"cóng sǒng":["漎"],"féng péng":["漨"],"luò tà":["漯"],"pēng bēn":["漰"],"chóng shuāng":["漴"],"huǒ kuò huò":["漷"],"liáo liú":["漻"],"cuǐ cuī":["漼"],"cóng zǒng":["潀"],"cóng zōng":["潈"],"pì piē":["潎"],"dàng xiàng":["潒"],"huáng guāng":["潢"],"liáo lào lǎo":["潦"],"cōng zòng":["潨"],"zhí zhì":["潪"],"tān shàn":["潬"],"tú zhā":["潳"],"sàn sǎ":["潵"],hēi:["潶","黑","黒","𬭶"],"chéng dèng":["澄","瀓"],"cūn cún":["澊"],"péng pēng":["澎"],"hòng gǒng":["澒","銾"],"wàn màn":["澫"],"kuài huì":["澮"],"guō wō":["濄"],"pēn fén":["濆"],"jí shà":["濈"],"huì huò":["濊"],"dǐng tìng":["濎"],"mǐ nǐ":["濔"],"bì pì":["濞"],"cuì zuǐ":["濢"],"hù huò":["濩"],"ǎi kài kè":["濭"],"wěi duì":["濻","瀢"],"zàn cuán":["濽","灒"],"yǎng yàng":["瀁"],"wǎng wāng":["瀇"],"mò miè":["瀎","眜"],suǐ:["瀡","膸","髓"],"huái wāi":["瀤"],"zùn jiàn":["瀳"],"yīng yǐng yìng":["瀴"],"ráng ràng":["瀼"],shuàng:["灀"],"zhuó jiào zé":["灂"],sǎ:["灑","訯","靸"],"luán luàn":["灓"],"dǎng tǎng":["灙"],"xún quán quàn":["灥"],"huǒ biāo":["灬"],"zhà yù":["灹"],"fén bèn":["炃"],"jiǒng guì":["炅"],"pàng fēng":["炐"],quē:["炔","缺","缼","蒛"],biān:["炞","煸","甂","砭","笾","箯","籩","編","编","蝙","邉","邊","鍽","鞭","鯾","鯿","鳊"],"zhāo zhào":["炤"],"zhuō chù":["炪"],"pào páo bāo":["炮"],"páo fǒu":["炰"],"shǎn qián shān":["炶"],"zhà zhá":["炸"],"jiǎo yào":["烄"],quǎn:["烇","犬","犭","畎","綣","绻","虇"],"yàng yáng":["烊"],"lào luò":["烙"],"huí huǐ":["烠"],rè:["热","熱"],"fú páo":["烰"],"xiè chè":["烲","焎"],"yàn shān":["烻"],"hūn xūn":["焄"],kào:["焅","犒","銬","铐","靠","鮳","鯌","鲓","㸆"],"juān yè":["焆"],"jùn qū":["焌"],"tāo dào":["焘"],"chǎo jù":["焣"],"wò ài":["焥"],"zǒng cōng":["焧"],"xī yì":["焬"],"xìn xīn":["焮"],"chāo zhuō":["焯"],"xiǒng yīng":["焸","焽"],kuǐ:["煃","跬","蹞","頍","𫠆"],"huī yùn xūn":["煇"],"jiǎo qiāo":["煍"],"qián shǎn shān":["煔"],"xī yí":["煕"],"shà shā":["煞"],"yè zhá":["煠"],"yáng yàng":["煬"],"ēn yūn":["煾"],"yūn yǔn":["熅"],"hè xiāo":["熇"],xióng:["熊","熋","雄"],"xūn xùn":["熏","爋"],gòng:["熕","貢","贡"],liū:["熘"],"cōng zǒng":["熜"],"lù āo":["熝"],"shú shóu":["熟"],"fēng péng":["熢"],"cuǐ suī":["熣"],tēng:["熥","膯","鼟"],"yùn yù":["熨"],"áo āo":["熬"],"hàn rǎn":["熯"],"ōu ǒu":["熰"],"huáng huǎng":["熿"],"chǎn dǎn chàn":["燀"],"jiāo zhuó qiáo jué":["燋"],"yàn yān":["燕"],"tài liè":["燤"],āo:["爊"],"yàn xún":["爓"],"jué jiào":["爝","覐","覚","覺","觉"],"lǎn làn":["爦"],"zhuǎ zhǎo":["爪"],"zhǎo zhuǎ":["爫"],"fù fǔ":["父"],diē:["爹","褺","跌"],zāng:["牂","羘","臧","賍","賘","贓","贜","赃","髒"],"piàn piān":["片"],"biān miàn":["牑"],bǎng:["牓","綁","绑"],"yǒu yōng":["牗"],"chēng chèng":["牚","竀"],niú:["牛","牜"],"jiū lè":["牞"],"mù móu":["牟"],māng:["牤"],"gē qiú":["牫"],"yòu chōu":["牰"],"tè zhí":["犆"],bēn:["犇","錛","锛"],"jiān qián":["犍","玪"],má:["犘","痲","蔴","蟇","麻"],"máo lí":["犛"],"bá quǎn":["犮"],"zhuó bào":["犳"],"àn hān":["犴"],"kàng gǎng":["犺"],"pèi fèi":["犻"],"fān huān":["犿"],kuáng:["狂","狅","誑","诳","軖","軠","鵟","𫛭"],"yí quán chí":["狋"],"xīng shēng":["狌"],"tuó yí":["狏"],kǔ:["狜","苦"],"huán huān":["狟"],"hé mò":["狢"],"tà shì":["狧"],"máng dòu":["狵"],"xī shǐ":["狶"],suān:["狻","痠","酸"],"bài pí":["猈"],"jiān yàn":["猏","豣"],"yī yǐ":["猗"],"yá wèi":["猚"],cāi:["猜"],"māo máo":["猫","貓"],"chuàn chuān":["猭"],"tuān tuàn":["猯","貒"],"yà jiá qiè":["猰"],"hè xiē gé hài":["猲"],"biān piàn":["猵","獱"],"bó pò":["猼"],"háo gāo":["獋"],"fén fèn":["獖"],"yào xiāo":["獟"],"shuò xī":["獡"],"gé liè xiē":["獦"],"nòu rú":["獳"],"náo nǎo yōu":["獶"],ráng:["獽","瓤","禳","穣","穰","蘘","躟","鬤"],"náo yōu":["獿"],"lǜ shuài":["率"],"wáng wàng":["王"],"yáng chàng":["玚"],"mín wén":["玟"],"bīn fēn":["玢"],"mén yǔn":["玧"],"qiāng cāng":["玱","瑲","篬"],"án gān":["玵"],"xuán xián":["玹"],"cī cǐ":["玼","跐"],"yí tāi":["珆"],"zǔ jù":["珇"],fà:["珐","琺","蕟","髪","髮"],"yín kèn":["珢"],"huī hún":["珲"],"xuán qióng":["琁"],"fú fū":["琈"],"bǐng pín":["琕"],"cuì sè":["琗"],"yù wéi":["琟"],"tiǎn tiàn":["琠"],"zhuó zuó":["琢"],"běng pěi":["琣"],guǎn:["琯","璭","痯","筦","管","舘","輨","錧","館","馆","鳤"],"hún huī":["琿"],"xié jiē":["瑎"],"chàng dàng yáng":["瑒"],"tiàn zhèn":["瑱"],"bīn pián":["瑸","璸"],"tú shū":["瑹"],cuǐ:["璀","皠","趡"],"zǎo suǒ":["璅"],"jué qióng":["璚"],"lú fū":["璷"],"jì zī":["璾"],suí:["瓍","綏","绥","遀","随","隨","髄"],"mí xǐ":["瓕"],"qióng wěi wèi":["瓗"],"huán yè yà":["瓛"],"bó páo":["瓟"],"zhí hú":["瓡"],piáo:["瓢","闝"],"wǎ wà":["瓦"],"xiáng hóng":["瓨"],wèng:["瓮","甕","罋","蕹","齆"],"shèn shén":["甚"],ruí:["甤","緌","蕤"],yòng:["用","砽","苚","蒏","醟","㶲"],shuǎi:["甩"],béng:["甭","甮"],"yóu zhá":["甴"],"diàn tián shèng":["甸"],"tǐng dīng":["町","甼"],"zāi zī":["甾"],"bì qí":["畁"],"dá fú":["畗"],"cè jì":["畟"],"zāi zī tián":["畠"],"zhì chóu shì":["畤"],"fān pān":["畨","番"],"shē yú":["畬"],"dāng dàng dǎng":["當"],"jiāng qiáng":["疆"],"pǐ yǎ shū":["疋"],"jié qiè":["疌"],"yí nǐ":["疑"],nè:["疒","眲","訥","讷"],"gē yì":["疙"],"nüè yào":["疟","瘧"],"lì lài":["疠","癘"],"yǎ xiā":["疨"],xuē:["疶","蒆","薛","辥","辪","靴","鞾"],"dǎn da":["疸"],"fá biǎn":["疺"],"fèi féi":["疿","痱"],"shān diàn":["痁"],"téng chóng":["痋"],"tōng tóng":["痌"],"wěi yòu yù":["痏"],"tān shǐ":["痑"],"pū pù":["痡","鋪"],"bēng péng":["痭"],"má lìn":["痳"],"tiǎn diàn":["痶"],"ān yè è":["痷"],"kē ē":["痾"],"zhì chì":["瘈"],"jiǎ xiá xiā":["瘕"],"lěi huì":["瘣"],"chài cuó":["瘥"],"diān chēn":["瘨"],"da dá":["瘩"],"biě biē":["瘪"],qué:["瘸"],"dàn dān":["癉"],"guì wēi":["癐"],"nòng nóng":["癑"],"biē biě":["癟"],"bō bǒ":["癷"],bái:["白"],"jí bī":["皀"],"de dì dí dī":["的"],"pā bà":["皅"],"gāo háo":["皋"],"gāo yáo":["皐"],"lì luò bō":["皪"],"zhā cǔ":["皻"],"zhāo zhǎn dǎn":["皽"],"jiān jiàn":["监","監","鋻","间","鞬"],"gài gě hé":["盖"],"máng wàng":["盳"],yuǎn:["盶","逺","遠"],"tián xián":["盷"],"xiāng xiàng":["相"],dǔn:["盹","趸","躉"],"xì pǎn":["盻"],"shěng xǐng":["省"],"yún hùn":["眃"],"miǎn miàn":["眄"],"kàn kān":["看"],"yìng yāng yǎng":["眏"],"yǎo āo ǎo":["眑"],"jū xū kōu":["眗"],"yí chì":["眙"],"dié tì":["眣"],"bǐng fǎng":["眪"],"pàng pán":["眫"],"mī mí":["眯","瞇"],"xuàn shùn xún":["眴"],tiào:["眺","粜","糶","覜","趒"],"zhe zhuó zháo zhāo":["着"],"qiáo shào xiāo":["睄"],"cuó zhuài":["睉"],gùn:["睔","謴"],"suì zuì":["睟"],"pì bì":["睥","稫","辟"],"yì zé gāo":["睪"],"xǐng xìng":["睲"],"guì wèi kuì":["瞆"],"kòu jì":["瞉"],"qióng huán":["瞏"],"mán mén":["瞒","瞞"],"diāo dōu":["瞗"],"lou lóu lǘ":["瞜"],"shùn rún":["瞤"],"liào liǎo":["瞭","钌"],"jiàn xián":["瞯"],"wǔ mí":["瞴"],"guì kuì":["瞶"],"nǐng chēng":["矃"],"huò yuè":["矆"],"mēng méng":["矇"],"kuàng guō":["矌"],"guàn quán":["矔"],"mǎn mán":["矕"],"jīn guān qín":["矜"],"jīn qín guān":["矝"],"yù xù jué":["矞"],"jiǎo jiáo":["矫","矯"],duǎn:["短"],"shí dàn":["石"],"gāng qiāng kòng":["矼"],"huā xū":["砉"],"pīn bīn fēn":["砏"],"yán yàn":["研","硏"],"luǒ kē":["砢"],"fú fèi":["砩","笰"],"zhǔ zhù":["砫"],"lá lì lā":["砬"],"kuāng guāng":["硄"],"gè luò":["硌"],"shuò shí":["硕","碩"],"wèi wéi ái":["硙"],"què kè kù":["硞"],"mǎng bàng":["硥"],"luò lòng":["硦"],"yǒng tóng":["硧"],nüè:["硸","虐"],"kēng kěng":["硻"],"yān yǎn":["硽"],"zhuì chuí duǒ":["硾"],"kōng kòng":["硿"],"zòng cóng":["碂"],"jiān zhàn":["碊"],"lù liù":["碌","陆"],"què xī":["碏"],"lún lǔn lùn":["碖"],"náo gāng":["碙"],"jié yà":["碣"],"wèi wěi":["碨"],"tí dī":["碮"],"chá chā":["碴"],"qiāo què":["碻"],"sù xiè":["碿"],"liú liù":["磂","遛","鎦","馏"],"sī tí":["磃"],"bàng páng":["磅"],"huá kě gū":["磆"],"wěi kuǐ":["磈"],"xiá qià yà":["磍"],"lián qiān":["磏"],"wèi ái gài":["磑"],"lá lā":["磖"],"áo qiāo":["磝"],"pēng pèng":["磞","閛"],"yīn yǐn":["磤"],"lěi léi":["磥"],"mó mò":["磨"],"qì zhú":["磩"],"láo luò":["磱"],"pán bō":["磻"],"jí shé":["磼"],"hé qiāo qiào":["礉"],"kè huò":["礊"],"què hú":["礐"],"è qì":["礘"],cǎ:["礤","礸"],"xián xín":["礥"],"léi lěi lèi":["礧"],"yán yǎn":["礹"],"qí zhǐ":["祇","蚔"],"bēng fāng":["祊"],"bì mì":["祕"],suàn:["祘","笇","筭","算","蒜"],"piào piāo":["票"],"jì zhài":["祭"],"shuì lèi":["祱"],"jìn jīn":["禁"],"chán shàn":["禅"],"yáng shāng":["禓"],"zhī zhǐ tí":["禔"],"shàn chán":["禪"],"yú yù ǒu":["禺"],"zǐ zì":["秄"],"chá ná":["秅"],"zhǒng zhòng chóng":["种"],"hào mào":["秏"],"kù kū":["秙"],zū:["租","葅"],chèng:["秤","穪"],"huó kuò":["秮","秳"],"chēng chèn chèng":["称","稱"],"shì zhì":["秲","銴"],"fù pū":["秿"],"xùn zè":["稄"],"tú shǔ":["稌"],"zhùn zhǔn":["稕"],"jī qí":["稘","綨","觭"],"léng líng":["稜"],"zuì zú sū":["稡"],"xì qiè":["稧","郄"],"zhǒng zhòng":["種"],"zōng zǒng":["稯"],"xián jiān liàn":["稴"],"zī jiū":["稵"],"jī qǐ":["稽"],ròng:["穃"],"shān cǎn cēn":["穇"],"mén méi":["穈"],"jǐ jì":["穖"],"xiāo rào":["穘"],"zhuō bó":["穛"],"tóng zhǒng zhòng":["穜"],zuō:["穝"],"biāo pāo":["穮","藨"],"zhuō jué":["穱"],"cuán zàn":["穳"],"kōng kòng kǒng":["空"],"yū yǔ":["穻"],zhǎi:["窄","鉙"],báo:["窇","雹"],"kū zhú":["窋"],"jiào liáo liù":["窌"],"wā guī":["窐"],"tiǎo yáo":["窕"],"xūn yìn":["窨"],"yà yē":["窫"],"tián diān yǎn":["窴"],"chāo kē":["窼"],"kuǎn cuàn":["窽","窾"],"chù qì":["竐"],"qǔ kǒu":["竘"],"jìng zhěn":["竧"],"kǎn kàn":["竷"],"zhú dǔ":["竺"],"lè jīn":["竻"],"zhuì ruì":["笍"],"háng hàng":["笐"],"cén jìn hán":["笒"],"dā xiá nà":["笚"],"zé zuó":["笮"],"lóng lǒng":["笼","篭","籠","躘","龓"],"zhù zhú":["筑","築"],"dá dā":["答","荅"],shāi:["筛","篩","簁","籭"],"yún jūn":["筠"],"láng làng":["筤","郎","阆"],"zhì zhǐ":["筫"],o:["筽"],"póu bù fú pú":["箁"],"pái bēi":["箄"],gè:["箇","虼","鉻","铬"],"tái chí":["箈"],"guǎi dài":["箉"],"zhào dào":["箌"],"jīng qìng":["箐"],"lín lǐn":["箖"],"jùn qūn":["箘"],"shī yí":["箷","釶"],"yuē yào chuò":["箹"],"xiāo shuò qiào":["箾"],"gōng gǎn lǒng":["篢"],"páng péng":["篣"],"zhuó huò":["篧"],"jiǎn jiān":["篯"],"dí zhú":["篴"],"zān cēn cǎn":["篸"],"zhuàn suǎn zuàn":["篹"],"piǎo biāo":["篻"],"guó guì":["簂"],"cè jí":["簎"],"mì miè":["簚"],"shāi sī":["簛"],"sǔn zhuàn":["簨"],"gàn gǎn":["簳"],"bò bǒ":["簸"],"bó bù":["簿"],shi:["籂"],"zhēn jiān":["籈"],"zhuàn zuǎn":["籑"],"fān pān biān":["籓"],"sǒu shǔ":["籔"],zuǎn:["籫","繤","纂","纉","纘","缵"],nǚ:["籹","釹","钕"],"shā chǎo":["粆"],"kāng jīng":["粇"],fěn:["粉","黺"],cū:["粗","觕","麁","麄","麤"],"nián zhān":["粘"],"cè sè":["粣"],"zhōu yù":["粥"],"shēn sǎn":["糁"],"biān biǎn":["糄","萹"],miàn:["糆","面","靣","麪","麫","麵","麺"],"hú hū hù":["糊"],"gǔ gòu":["糓"],"mí méi":["糜"],"sǎn shēn":["糝","糣"],zāo:["糟","蹧","遭","醩"],"mì sī":["糸"],"jiū jiǔ":["糺"],"xì jì":["系","繫"],"zhēng zhěng":["糽"],"chà chǎ":["紁","衩"],"yuē yāo":["約","约"],"hóng gōng":["紅","红"],"hé gē":["紇","纥"],"wén wèn":["紋","纹"],fóu:["紑"],"jì jié jiè":["紒"],"pī pí bǐ":["紕","纰"],"jīn jìn":["紟"],"zhā zā":["紥","紮"],hā:["紦"],"fū fù":["紨"],"chōu chóu":["紬"],"lèi léi lěi":["累"],"bō bì":["紴"],"tiǎn zhěn":["紾"],"jiōng jiǒng":["絅"],"jié jiē":["結","结","节"],"guà kuā":["絓"],"bǎi mò":["絔"],"gēng huán":["絙"],"jié xié":["絜"],"quán shuān":["絟"],"gǎi ǎi":["絠"],"luò lào":["絡","络"],"bīng bēng pēng":["絣"],"gěi jǐ":["給","给"],"tóng tōng dòng":["絧"],"tiào diào dào":["絩"],"lěi lèi léi":["絫"],"gāi hài":["絯"],"chī zhǐ":["絺"],"wèn miǎn mán wàn":["絻"],"huán huàn wàn":["綄"],"qīn xiān":["綅"],"tì tí":["綈"],"yán xiàn":["綖"],"zōng zèng zòng":["綜"],"chēn lín":["綝"],"zhǔn zhùn":["綧"],"qiàn qīng zhēng":["綪"],"qìng qǐ":["綮"],"lún guān":["綸","纶"],"chuò chāo":["綽","绰"],"tián tǎn chān":["緂"],"lǜ lù":["緑","绿"],"ruǎn ruàn":["緛"],"jí qī":["緝"],"zhòng chóng":["緟","重"],"miáo máo":["緢"],"xiè yè":["緤"],huǎn:["緩","缓","㬊"],"gēng gèng":["緪","縆"],"tōu xū shū":["緰"],"zōng zòng":["緵","繌"],"yùn gǔn":["緷"],"guā wō":["緺"],"yùn yūn wēn":["緼","縕"],"bāng bàng":["縍"],"gǔ hú":["縎","鶻"],"cī cuò suǒ":["縒"],"cuī shuāi":["縗"],"róng rǒng ròng":["縙"],"zài zēng":["縡"],cài:["縩","菜","蔡"],"féng fèng":["縫"],"suō sù":["縮","缩"],"yǎn yǐn":["縯","酓"],"zòng zǒng":["縱","纵"],"zhuàn juàn":["縳"],"mò mù":["縸","莫"],"piǎo piāo":["縹","缥"],"fán pó":["繁"],"bēng bèng":["繃"],"móu miù miào liǎo":["繆"],"yáo yóu zhòu":["繇"],"zēng zèng":["繒","缯"],"jú jué":["繘"],"chuō chuò":["繛"],"zūn zǔn":["繜"],rào:["繞","绕","遶"],"chǎn chán":["繟"],"huì huí":["繢","缋","藱"],"qiāo sāo zǎo":["繰"],"jiǎo zhuó":["繳","缴"],"dàn tán chán":["繵"],nǒng:["繷"],"pú fú":["纀"],"yào lì":["纅"],"rǎng xiāng":["纕"],"lí sǎ xǐ lǐ":["纚"],"xiān qiàn":["纤"],"jīng jìng":["经"],"tí tì":["绨"],"bēng běng bèng":["绷"],"zōng zèng":["综"],"jī qī":["缉"],"wēn yùn yūn":["缊"],"fèng féng":["缝"],"shuāi cuī suī":["缞"],"miù móu liáo miào mù":["缪"],"qiāo sāo":["缲"],fǒu:["缶","缹","缻","雬","鴀"],"bà ba pí":["罢","罷"],"guà guǎi":["罫"],"yáng xiáng":["羊","羏"],"měi gāo":["羙"],"yì xī":["羛"],"qiǎng qiān":["羟"],"qiāng kòng":["羫"],"qián xián yán":["羬"],nóu:["羺"],"hóng gòng":["羾"],"pī bì pō":["翍"],"qú yù":["翑"],ké:["翗"],"qiào qiáo":["翘"],"zhái dí":["翟"],"dào zhōu":["翢"],"hóu qú":["翵"],shuǎ:["耍"],"ruǎn nuò":["耎"],"ér nài":["耏"],"zhuān duān":["耑"],"pá bà":["耙"],"chí sì":["耛"],"qù chú":["耝"],"lún lǔn":["耣"],"jí jiè":["耤"],"tāng tǎng":["耥"],pǎng:["耪","覫"],"zhá zé":["耫"],"yē yé":["耶"],"yún yíng":["耺"],"wà tuǐ zhuó":["聉"],"ér nǜ":["聏"],"tiē zhé":["聑"],"dǐ zhì":["聜"],qié:["聺"],"nǐ jiàn":["聻"],"lèi lē":["肋"],cào:["肏","襙","鄵","鼜"],"bó dí":["肑"],"xiào xiāo":["肖"],"dù dǔ":["肚"],chāi:["肞","釵","钗"],"hán qín hàn":["肣"],"pàng pán pàn":["肨","胖"],"zhūn chún":["肫"],āng:["肮","骯"],"yù yō":["育"],"pí bǐ bì":["肶"],"fèi bì":["胇"],"bèi bēi":["背"],"fèi zǐ":["胏"],"píng pēng":["胓","苹"],"fū fú zhǒu":["胕"],"shèng shēng":["胜"],kuà:["胯","跨","骻"],"gǎi hǎi":["胲"],"gē gé gā":["胳"],"néng nài":["能"],"guī kuì":["胿"],"mài mò":["脉"],"zāng zàng":["脏"],"jiǎo jué":["脚","角"],cuǒ:["脞"],"de te":["脦"],"zuī juān":["脧"],něi:["脮","腇","餒","馁","鮾","鯘"],"pú fǔ":["脯"],niào:["脲"],shuí:["脽"],guò:["腂","過","鐹"],"là xī":["腊"],"yān ā":["腌"],"gāo gào":["膏"],"lù biāo":["膔"],chuái:["膗"],"zhuān chuán chún zhuǎn":["膞"],chuài:["膪","踹"],"fán pán":["膰"],"wǔ hū":["膴"],"shān dàn":["膻"],tún:["臀","臋","蛌","豘","豚","軘","霕","飩","饨","魨","鲀","黗"],"bì bei":["臂"],"là gé":["臈"],"sào sāo":["臊"],nào:["臑","閙","闹","鬧"],"ní luán":["臡"],"qiān xián":["臤"],"guàng jiǒng":["臦"],"guǎng jiǒng":["臩"],"chòu xiù":["臭"],"mián biān":["臱"],"dié zhí":["臷"],"zhī jìn":["臸"],"shè shě":["舍"],pù:["舖","舗"],"bān bō pán":["般"],kuā:["舿"],"gèn gěn":["艮"],"sè shǎi":["色"],"fú bó":["艴"],"jiāo qiú":["艽"],"chāi chā":["芆"],"sháo què":["芍"],"hù xià":["芐"],"zì zǐ":["芓"],"huì hū":["芔"],"tún chūn":["芚"],"jiè gài":["芥"],"xù zhù":["芧"],"yuán yán":["芫"],"xīn xìn":["芯"],"lún huā":["芲"],"wù hū":["芴"],"gōu gǒu":["芶"],"mào máo":["芼"],"fèi fú":["芾"],"chán yín":["苂"],qiē:["苆"],"sū sù":["苏"],"tiáo sháo":["苕"],"lì jī":["苙"],"kē hē":["苛"],"jù qǔ":["苣"],"ruò rě":["若"],"zhù níng":["苧"],"pā bó":["苩"],xiú:["苬"],"zhǎ zuó":["苲"],"jū chá":["苴"],nié:["苶"],"shēng ruí":["苼"],"qié jiā":["茄"],"zǐ cí":["茈"],"qiàn xī":["茜"],chǎi:["茝"],"fá pèi":["茷"],ráo:["荛","蕘","襓","饒","饶"],"yíng xíng":["荥"],"qián xún":["荨","蕁"],"yìn yīn":["荫"],"hé hè":["荷"],"shā suō":["莎"],"péng fēng":["莑"],"shēn xīn":["莘"],"wǎn guān guǎn":["莞"],"yóu sù":["莤"],"shāo xiāo":["莦","蛸"],"làng liáng":["莨"],"piǎo fú":["莩"],"wèn wǎn miǎn":["莬"],"shì shí":["莳","蒔"],"tù tú":["莵"],"xiān liǎn":["莶","薟"],"wǎn yù":["菀"],"zōu chù":["菆"],"lù lǜ":["菉"],"jūn jùn":["菌"],"niè rěn":["菍"],"zī zì zāi":["菑"],"tú tù":["菟"],"jiē shà":["菨"],"qiáo zhǎo":["菬"],"tái zhī chí":["菭"],"fēi fěi":["菲","蜚"],"qín qīn jīn":["菳"],"zū jù":["菹","蒩"],"lǐn má":["菻"],"tián tiàn":["菾"],tiē:["萜","貼","贴"],"luò là lào luō":["落"],"zhù zhuó zhe":["著"],"shèn rèn":["葚"],"gě gé":["葛"],"jùn suǒ":["葰"],"kuì kuài":["蒉"],"rú ná":["蒘"],"méng mēng měng":["蒙"],"yuán huán":["蒝"],"xú shú":["蒣"],"xí xì":["蒵"],"mì míng":["蓂"],"sōu sǒu":["蓃"],"gài gě hé hài":["蓋"],"yǎo zhuó":["蓔"],"diào tiáo dí":["蓧"],"xū qiū fū":["蓲"],"zí jú":["蓻"],"liǎo lù":["蓼"],xu:["蓿"],"hàn hǎn":["蔊"],"màn wàn mán":["蔓"],"pó bò":["蔢"],"fān fán bō":["蕃"],"hóng hòng":["蕻"],"yù ào":["薁","隩"],"xí xiào":["薂"],"báo bó bò":["薄"],"cí zī":["薋"],"wàn luàn":["薍"],"kǎo hāo":["薧"],"yuǎn wěi":["薳"],"zhòu chóu":["薵"],"wō mái":["薶"],"xiāo hào":["藃"],"yù xù xū":["藇"],"jiè jí":["藉"],"diào zhuó":["藋"],"cáng zàng":["藏"],lǎ:["藞"],"chú zhū":["藸"],"pín píng":["蘋"],"gān hán":["虷"],"hóng jiàng":["虹"],"huī huǐ":["虺"],"xiā há":["虾"],"mǎ mà mā":["蚂"],"fāng bàng":["蚄"],"bàng bèng":["蚌"],"jué quē":["蚗"],"qín qián":["蚙"],"gōng zhōng":["蚣"],"fǔ fù":["蚥"],"dài dé":["蚮"],"gǒu qú xù":["蚼"],"bǒ pí":["蚾"],"shé yí":["蛇"],tiě:["蛈","鉄","銕","鐡","鐵","铁","驖"],"gé luò":["蛒"],"máng bàng":["蛖"],"yì xǔ":["蛡"],"há gé":["蛤"],"qiè ní":["蛪"],"é yǐ":["蛾"],"zhē zhé":["蜇"],"là zhà":["蜡"],suò:["蜶","逤"],"yóu qiú":["蝤"],"xiā hā":["蝦"],"xī qī":["螇"],"bī pí":["螕"],"nài něng":["螚"],"hé xiá":["螛"],"guì huǐ":["螝"],"mǎ mā mà":["螞"],"shì zhē":["螫"],"zhì dié":["螲"],"jiàn chán":["螹"],"ma má mò":["蟆"],"mǎng měng":["蟒"],"biē bié":["蟞"],"bēn fèi":["蟦"],"láo liáo":["蟧"],"yín xún":["蟫"],"lí lǐ":["蠡"],"xuè xiě":["血"],"xíng háng hàng héng":["行"],"shuāi cuī":["衰"],"tuó tuō":["袉"],"lǐng líng":["袊"],"bào páo pào":["袌"],"jù jiē":["袓"],"hè kè":["袔"],"yí yì":["袘","貤"],"nà jué":["袦"],"bèi pī":["被"],"chǐ nuǒ":["袲"],"chǐ qǐ duǒ nuǒ":["袳"],"jiá qiā jié":["袷"],"bó mò":["袹"],"guī guà":["袿"],"liè liě":["裂"],"chéng chěng":["裎"],"jiē gé":["裓"],"dāo chóu":["裯"],"shang cháng":["裳"],"yuān gǔn":["裷"],"yǎn ān":["裺"],"tì xī":["裼"],"fù fú":["褔"],"chǔ zhǔ":["褚"],"tuì tùn":["褪"],lǎi:["襰"],"yào yāo":["要"],"qín tán":["覃"],"jiàn xiàn":["見","见"],piǎn:["覑","諞","谝","貵","𡎚"],"piē miè":["覕"],"yíng yǐng":["覮"],"qù qū":["覰","覷","觑"],"jiàn biǎn":["覵"],"luó luǎn":["覶"],"zī zuǐ":["觜"],"huà xiè":["觟"],"jiě jiè xiè":["解","觧"],"xué hù":["觷"],"lì lù":["觻"],tǎo:["討","讨"],zhùn:["訰"],"zī zǐ":["訾"],"yí dài":["詒","诒"],xiòng:["詗","诇"],"diào tiǎo":["誂"],"yí chǐ chì":["誃"],"lǎng làng":["誏"],"ēi éi ěi èi xī":["誒","诶"],shuà:["誜"],"yǔ yù":["語","语","雨"],"shuō shuì yuè":["說","说"],"shuí shéi":["誰","谁"],"qū juè":["誳"],"chī lài":["誺"],"nì ná":["誽"],"diào tiáo":["調"],"pǐ bēi":["諀"],"jì jī":["諅"],"zé zuò zhǎ cuò":["諎"],"chù jí":["諔"],"háo xià":["諕"],"lùn lún":["論","论"],"shì dì":["諟"],"huà guā":["諣"],"xǐ shāi āi":["諰"],"nán nàn":["諵","難"],miù:["謬","谬"],zèn:["譖","谮"],"shí zhì":["識","识"],"juàn xuān":["讂"],"yí tuī":["讉"],zhán:["讝"],"xǔ hǔ":["许"],"xiáng yáng":["详"],"tiáo diào zhōu":["调"],"chén shèn":["谌"],"mí mèi":["谜"],"màn mán":["谩"],"gǔ yù":["谷"],"huō huò huá":["豁"],"zhì zhài":["豸"],"huān huán":["貆"],"kěn kūn":["貇"],"mò hé":["貈"],"mò hé háo":["貉"],"jù lóu":["貗"],"zé zhài":["責","责"],"dài tè":["貸"],"bì bēn":["賁"],"jiǎ gǔ jià":["賈"],"xiōng mín":["賯"],càng:["賶"],"zhuàn zuàn":["賺","赚"],"wàn zhuàn":["贃"],"gàn gòng zhuàng":["贛"],"yuán yùn":["贠"],"bēn bì":["贲"],"jiǎ gǔ":["贾"],zǒu:["走","赱","鯐"],"dié tú":["趃"],"jū qiè":["趄"],"qū cù":["趋","趨"],"jí jié":["趌"],"guā huó":["趏"],"què qì jí":["趞"],"tàng tāng":["趟"],"chuō zhuó":["趠"],"qù cù":["趣"],"yuè tì":["趯"],"bō bào":["趵"],"kuà wù":["趶"],"guì jué":["趹"],"fāng fàng páng":["趽"],"páo bà":["跁"],"qí qǐ":["跂"],"jiàn chén":["跈"],"pǎo páo":["跑"],"diǎn diē tiē":["跕"],"jū jù qiè":["跙"],bǒ:["跛"],"luò lì":["跞"],"dài duò duō chí":["跢"],zhuǎi:["跩"],"bèng pián":["跰"],"tiào táo":["跳"],"shū chōu":["跾"],"liàng liáng":["踉"],"tà tā":["踏"],chǎ:["蹅","鑔","镲"],"dí zhí":["蹢"],"dēng dèng":["蹬","鐙","镫"],cèng:["蹭"],"dūn cún":["蹲"],"juě jué":["蹶"],liāo:["蹽"],"xiè sǎ":["躠"],tǐ:["躰","軆","骵"],"yà zhá gá":["轧","軋"],"xìn xiàn":["軐"],"fàn guǐ":["軓"],"zhuàn zhuǎn":["転"],"zhóu zhòu":["軸","轴"],bú:["轐","醭","鳪"],"zhuǎn zhuàn zhuǎi":["转"],"zǎi zài":["载"],"niǎn zhǎn":["辗"],"biān bian":["边"],"dào biān":["辺"],"yǐ yí":["迆","迤","迱"],"guò guo guō":["过"],"wàng kuāng":["迋"],"hái huán":["还"],"zhè zhèi":["这"],"yuǎn yuàn":["远"],"zhì lì":["迣"],"zhù wǎng":["迬"],"zhuī duī":["追"],"shì kuò":["适"],tòu:["透"],"tōng tòng":["通"],guàng:["逛"],"dǎi dài":["逮"],"suì suí":["遂"],"tí dì":["遆"],"yí wèi":["遗"],"shì dí zhé":["適"],cà:["遪"],"huán hái":["還"],"lí chí":["邌"],"kàng háng":["邟"],"nà nèi nā":["那"],"xié yá yé yú xú":["邪"],"gāi hái":["郂"],"huán xún":["郇"],"chī xī":["郗"],hǎo:["郝"],"lì zhí":["郦"],"xiáo ǎo":["郩"],"dōu dū":["都"],liǎo:["曢","鄝","镽"],"zàn cuán cuó":["酂","酇"],"dīng dǐng":["酊"],"cù zuò":["酢"],"fā pō":["酦"],"shāi shī":["酾"],niàng:["酿","醸"],"qiú chōu":["醔"],"pō fā":["醗","醱"],"chǎn chěn":["醦"],"yàn liǎn xiān":["醶"],"niàng niáng":["釀"],"lǐ li":["里"],"lí xǐ xī":["釐"],"liǎo liào":["釕"],"dīng dìng":["釘","钉"],"qiǎo jiǎo":["釥"],"yú huá":["釪"],"huá wū":["釫"],"rì rèn jiàn":["釰","釼"],"dì dài":["釱"],"pī zhāo":["釽"],"yá yé":["釾"],"bǎ pá":["鈀","钯"],"tā tuó":["鉈","铊"],běi:["鉳"],"bǐng píng":["鉼"],"hā kē":["鉿","铪"],chòng:["銃","铳"],"xiǎng jiōng":["銄"],"yù sì":["銉"],"xù huì":["銊"],"rén rěn":["銋"],"shàn shuò":["銏"],"chì lì":["銐"],"xiǎn xǐ":["銑","铣"],"hóu xiàng":["銗"],"diào tiáo yáo":["銚"],"xiān kuò tiǎn guā":["銛","銽","铦"],"zhé niè":["銸"],"zhōng yōng":["銿"],"tōu tù dòu":["鋀"],"méi méng":["鋂"],"wàn jiǎn":["鋄","鎫"],"tǐng dìng":["鋌","铤"],"juān jiān cuān":["鋑"],"sī tuó":["鋖"],"juān xuān juàn":["鋗"],"wú huá wū":["鋘"],"zhuó chuò":["鋜"],"xíng xìng jīng":["鋞"],"jū jú":["鋦","锔"],"zuì niè":["鋷"],"yuān yuǎn wǎn wān":["鋺"],"gāng gàng":["鋼","钢"],zhuī:["錐","锥","騅","骓","鵻"],ā:["錒","锕"],"cuō chā":["鎈"],"suǒ sè":["鎍"],"yáo zú":["鎐"],"yè tà gé":["鎑"],"qiāng chēng":["鎗"],"gé lì":["鎘","镉","鬲"],"bī pī bì":["鎞"],"gǎo hào":["鎬"],"zú chuò":["鏃"],"xiū xiù":["鏅"],"shòu sōu":["鏉"],"dí dī":["鏑","镝"],"qiāo sǎn càn":["鏒"],"lù áo":["鏕"],"tāng táng":["鏜"],"jiàn zàn":["鏩"],"huì suì ruì":["鏸"],"qiǎng qiāng":["鏹","镪"],"sǎn xiàn sà":["鏾"],"jiǎn jiàn":["鐧","锏"],"dāng chēng":["鐺","铛"],"zuān zuàn":["鑽"],"sà xì":["钑"],"yào yuè":["钥"],"tǒu dǒu":["钭"],"zuàn zuān":["钻"],"qiān yán":["铅"],"pí pī":["铍"],"yáo diào tiáo":["铫"],"tāng tàng":["铴"],"pù pū":["铺"],"tán xiān":["锬"],"liù liú":["镏"],"hào gǎo":["镐"],"táng tāng":["镗"],"tán chán xín":["镡"],"huò shǎn":["閄"],"hàn bì":["閈","闬"],"kāng kàng":["閌","闶"],"xián jiàn jiān jiǎn":["閒"],"xiā xiǎ":["閕"],"xiǎ kě":["閜"],"biàn guān":["閞"],"hé gé":["閤","颌"],"hòng xiàng":["閧"],"sē xī":["閪"],"tíng tǐng":["閮"],"è yān":["閼","阏"],"hòng juǎn xiàng":["闂"],"bǎn pàn":["闆"],"dū shé":["闍","阇"],"què quē":["闕"],"tāng táng chāng":["闛"],"kàn hǎn":["闞","阚"],"xì sè tà":["闟"],"mēn mèn":["闷"],"quē què":["阙"],"yán diàn":["阽"],"ā ē":["阿"],"bēi pō pí":["陂"],"yàn yǎn":["隁"],"yú yáo shù":["隃"],"lóng lōng":["隆"],"duì zhuì":["隊"],"suí duò":["隋"],"gāi qí ái":["隑"],"huī duò":["隓","隳"],"wěi kuí":["隗"],"lì dài":["隸"],"zhuī cuī wéi":["隹"],"hè hú":["隺","鶮"],"jùn juàn":["隽","雋"],"nán nàn nuó":["难"],"què qiāo qiǎo":["雀"],"guàn huán":["雚"],"guī xī":["雟"],"sè xí":["雭"],án:["雸"],"wù méng":["雺"],tèng:["霯"],"lù lòu":["露"],mái:["霾"],"jìng liàng":["靚"],"gé jí":["革"],bǎ:["靶"],"yāng yàng":["鞅"],"gé tà sǎ":["鞈"],"biān yìng":["鞕"],"qiào shāo":["鞘"],"juān xuān":["鞙"],"shàng zhǎng":["鞝"],"pí bǐng bì bēi":["鞞"],la:["鞡"],"xiè dié":["鞢"],ēng:["鞥"],"móu mù":["鞪"],"bì bǐng":["鞸"],"mèi wà":["韎"],rǒu:["韖"],"shè xiè":["韘"],"yùn wēn":["韫"],"dùn dú":["頓","顿"],duǐ:["頧"],luō:["頱"],"bīn pín":["頻"],yóng:["顒","颙","鰫"],mān:["顢","颟"],"jǐng gěng":["颈"],"jié xié jiá":["颉"],"kē ké":["颏"],"pín bīn":["频"],"chàn zhàn":["颤"],"fēng fěng":["風","风"],"biāo diū":["颩"],"bá fú":["颰"],"sāo sōu":["颾"],"liù liáo":["飂"],"shí sì yì":["食"],"yǎng juàn":["飬"],"zhù tǒu":["飳"],"yí sì":["飴"],"zuò zé zhā":["飵"],tiè:["飻","餮"],"xiǎng náng":["饟"],"táng xíng":["饧"],"gē le":["饹"],"chā zha":["馇"],"náng nǎng":["馕"],"yūn wò":["馧"],"zhī shì":["馶"],"xìn jìn":["馸"],"kuài jué":["駃"],zǎng:["駔","驵"],"tái dài":["駘"],"xún xuān":["駨"],"liáng láng":["駺"],piàn:["騗","騙","骗","魸"],"dài tái":["骀"],"sāo sǎo":["骚"],"gǔ gū":["骨"],"bèi mó":["骳"],"xiāo qiāo":["骹"],"bǎng pǎng":["髈"],"bó jué":["髉"],"bì pǒ":["髲"],"máo méng":["髳"],"kuò yuè":["髺"],"bā bà":["魞","鲃"],"jì cǐ":["鮆"],"bó bà":["鮊"],"zhǎ zhà":["鮓","鲊"],"chóu dài":["鮘"],"luò gé":["鮥"],"guī xié wā kuí":["鮭"],"xiān xiǎn":["鮮","鲜"],"pū bū":["鯆"],"yì sī":["鯣"],"bà bó":["鲌"],"guī xié":["鲑"],"sāi xǐ":["鳃"],"niǎo diǎo":["鳥"],"diāo zhāo":["鳭"],"gān hàn yàn":["鳱"],"fū guī":["鳺"],"jiān qiān zhān":["鳽"],"hé jiè":["鶡"],"piān biǎn":["鶣"],"chuàn zhì":["鶨"],"cāng qiāng":["鶬"],"sǔn xùn":["鶽"],"biāo páo":["麃"],"zhù cū":["麆"],"jūn qún":["麇","麕"],chi:["麶"],"mó me":["麼"],"mó me ma":["麽"],"mí mǒ":["麿"],"dàn shèn":["黮"],"zhěn yān":["黰"],"dǎn zhǎn":["黵"],"miǎn mǐn měng":["黾"],hōu:["齁"],nàng:["齉"],"qí jì zī zhāi":["齐"],"yín kěn yǎn":["龂"],"yín kěn":["龈"],"gōng wò":["龏"],"guī jūn qiū":["龜","龟"],"kuí wā":["䖯"],lōu:["䁖"],"ōu qū":["𫭟"],"lóu lǘ":["𦝼"],"gǎ gā gá":["嘎"],"wā guà":["坬"],"zhǐ dǐ":["茋"],"gǒng hóng":["硔"],"yáo xiào":["滧"]},_c=new i$;Object.keys(YS).forEach(e=>{const t=YS[e];for(let n of t)_c.set(n,e)});const JS={这个:"zhè ge",成为:"chéng wéi",认为:"rèn wéi",作为:"zuò wéi",部分:"bù fen",要求:"yāo qiú",应该:"yīng gāi",增长:"zēng zhǎng",提供:"tí gōng",觉得:"jué de",任务:"rèn wu",那个:"nà ge",称为:"chēng wéi",为主:"wéi zhǔ",了解:"liǎo jiě",处理:"chǔ lǐ",皇上:"huáng shang",只要:"zhǐ yào",大量:"dà liàng",力量:"lì liàng",几乎:"jī hū",干部:"gàn bù",目的:"mù dì",行为:"xíng wéi",只见:"zhǐ jiàn",认识:"rèn shi",市长:"shì zhǎng",师父:"shī fu",调查:"diào chá",重新:"chóng xīn",分为:"fēn wéi",知识:"zhī shi",导弹:"dǎo dàn",质量:"zhì liàng",行款:"háng kuǎn",行列:"háng liè",行话:"háng huà",行业:"háng yè",隔行:"gé háng",在行:"zài háng",行家:"háng jia",内行:"nèi háng",外行:"wài háng",同行:"tóng háng",本行:"běn háng",行伍:"háng wǔ",洋行:"yáng háng",银行:"yín háng",商行:"shāng háng",支行:"zhī háng",总行:"zǒng háng",行情:"háng qíng",懂行:"dǒng háng",行规:"háng guī",行当:"háng dang",行货:"háng huò",太行:"tài háng",入行:"rù háng",中行:"zhōng háng",农行:"nóng háng",工行:"gōng háng",建行:"jiàn háng",各行:"gè háng",行号:"háng hào",行高:"háng gāo",行首:"háng shǒu",行尾:"háng wěi",行末:"háng mò",行长:"háng zhǎng",行距:"háng jù",换行:"huàn háng",行会:"háng huì",行辈:"háng bèi",行道:"háng dào",道行:"dào heng",参与:"cān yù",充分:"chōng fèn",尽管:"jǐn guǎn",生长:"shēng zhǎng",数量:"shù liàng",应当:"yīng dāng",院长:"yuàn zhǎng",强调:"qiáng diào",只能:"zhǐ néng",音乐:"yīn yuè",以为:"yǐ wéi",处于:"chǔ yú",部长:"bù zhǎng",蒙古:"měng gǔ",只有:"zhǐ yǒu",适当:"shì dàng",只好:"zhǐ hǎo",成长:"chéng zhǎng",高兴:"gāo xìng",不了:"bù liǎo",产量:"chǎn liàng",胖子:"pàng zi",显得:"xiǎn de",只是:"zhǐ shì",似的:"shì de",率领:"shuài lǐng",改为:"gǎi wéi",不禁:"bù jīn",成分:"chéng fèn",答应:"dā ying",少年:"shào nián",兴趣:"xìng qù",太监:"tài jian",休息:"xiū xi",校长:"xiào zhǎng",更新:"gēng xīn",合同:"hé tong",喝道:"hè dào",重庆:"chóng qìng",重建:"chóng jiàn",使得:"shǐ de",审查:"shěn chá",累计:"lěi jì",给予:"jǐ yǔ",极为:"jí wéi",冠军:"guàn jūn",仿佛:"fǎng fú",头发:"tóu fa",投降:"tóu xiáng",家长:"jiā zhǎng",仔细:"zǐ xì",要是:"yào shi",将领:"jiàng lǐng",含量:"hán liàng",更为:"gèng wéi",积累:"jī lěi",地处:"dì chǔ",县长:"xiàn zhǎng",少女:"shào nǚ",路上:"lù shang",只怕:"zhǐ pà",能量:"néng liàng",储量:"chǔ liàng",供应:"gōng yìng",挑战:"tiǎo zhàn",西藏:"xī zàng",记得:"jì de",总量:"zǒng liàng",当真:"dàng zhēn",将士:"jiàng shì",差别:"chā bié",较为:"jiào wéi",长老:"zhǎng lǎo",大夫:"dài fu",差异:"chā yì",懂得:"dǒng de",尽量:"jǐn liàng",模样:"mú yàng",的确:"dí què",为首:"wéi shǒu",便宜:"pián yi",更名:"gēng míng",石头:"shí tou",州长:"zhōu zhǎng",为止:"wéi zhǐ",漂亮:"piào liang",炮弹:"pào dàn",藏族:"zàng zú",角色:"jué sè",当作:"dàng zuò",尽快:"jǐn kuài",人为:"rén wéi",重复:"chóng fù",胡同:"hú tòng",差距:"chā jù",弟兄:"dì xiong",大将:"dà jiàng",睡觉:"shuì jiào",一觉:"yí jiào",团长:"tuán zhǎng",队长:"duì zhǎng",区长:"qū zhǎng",难得:"nán dé",丫头:"yā tou",会长:"huì zhǎng",弟弟:"dì di",王爷:"wáng ye",重量:"zhòng liàng",誉为:"yù wéi",家伙:"jiā huo",华山:"huà shān",椅子:"yǐ zi",流量:"liú liàng",长大:"zhǎng dà",勉强:"miǎn qiǎng",会计:"kuài jì",过分:"guò fèn",济南:"jǐ nán",调动:"diào dòng",燕京:"yān jīng",少将:"shào jiàng",中毒:"zhòng dú",晓得:"xiǎo de",变更:"biàn gēng",打更:"dǎ gēng",认得:"rèn de",苹果:"píng guǒ",念头:"niàn tou",挣扎:"zhēng zhá",三藏:"sān zàng",剥削:"bō xuē",丞相:"chéng xiàng",少量:"shǎo liàng",寻思:"xún si",夺得:"duó dé",干线:"gàn xiàn",呼吁:"hū yù",处罚:"chǔ fá",长官:"zhǎng guān",柏林:"bó lín",亲戚:"qīn qi",身分:"shēn fèn",胳膊:"gē bo",着手:"zhuó shǒu",炸弹:"zhà dàn",咳嗽:"ké sou",叶子:"yè zi",外长:"wài zhǎng",供给:"gōng jǐ",师长:"shī zhǎng",变量:"biàn liàng",应有:"yīng yǒu",下载:"xià zài",乐器:"yuè qì",间接:"jiàn jiē",底下:"dǐ xià",打扮:"dǎ bàn",子弹:"zǐ dàn",弹药:"dàn yào",热量:"rè liàng",削弱:"xuē ruò",骨干:"gǔ gàn",容量:"róng liàng",模糊:"mó hu",转动:"zhuàn dòng",称呼:"chēng hu",科长:"kē zhǎng",处置:"chǔ zhì",着重:"zhuó zhòng",着急:"zháo jí",强迫:"qiǎng pò",庭长:"tíng zhǎng",首相:"shǒu xiàng",喇嘛:"lǎ ma",镇长:"zhèn zhǎng",只管:"zhǐ guǎn",重重:"chóng chóng",免得:"miǎn de",着实:"zhuó shí",度假:"dù jià",真相:"zhēn xiàng",相貌:"xiàng mào",处分:"chǔ fèn",委屈:"wěi qu",为期:"wéi qī",伯伯:"bó bo",伯子:"bǎi zi",圈子:"quān zi",见识:"jiàn shi",笼罩:"lǒng zhào",与会:"yù huì",都督:"dū du",都市:"dū shì",成都:"chéng dū",首都:"shǒu dū",帝都:"dì dū",王都:"wáng dū",东都:"dōng dū",都护:"dū hù",都城:"dū chéng",建都:"jiàn dū",迁都:"qiān dū",故都:"gù dū",定都:"dìng dū",中都:"zhōng dū",六安:"lù ān",宰相:"zǎi xiàng",较量:"jiào liàng",对称:"duì chèn",总长:"zǒng zhǎng",相公:"xiàng gong",空白:"kòng bái",打量:"dǎ liang",水分:"shuǐ fèn",舌头:"shé tou",没收:"mò shōu",行李:"xíng li",判处:"pàn chǔ",散文:"sǎn wén",处境:"chǔ jìng",孙子:"sūn zi",拳头:"quán tou",打发:"dǎ fā",组长:"zǔ zhǎng",骨头:"gǔ tou",宁可:"nìng kě",更换:"gēng huàn",薄弱:"bó ruò",还原:"huán yuán",重修:"chóng xiū",重来:"chóng lái",只顾:"zhǐ gù",爱好:"ài hào",馒头:"mán tou",军长:"jūn zhǎng",首长:"shǒu zhǎng",厂长:"chǎng zhǎng",司长:"sī zhǎng",长子:"zhǎng zǐ",强劲:"qiáng jìng",恰当:"qià dàng",头儿:"tóu er",站长:"zhàn zhǎng",折腾:"zhē teng",相处:"xiāng chǔ",统率:"tǒng shuài",中将:"zhōng jiàng",命中:"mìng zhòng",名将:"míng jiàng",木头:"mù tou",动弹:"dòng tan",地壳:"dì qiào",干活:"gàn huó",少爷:"shào ye",水量:"shuǐ liàng",补给:"bǔ jǐ",尾巴:"wěi ba",来得:"lái de",好奇:"hào qí",钥匙:"yào shi",当做:"dàng zuò",沉着:"chén zhuó",哑巴:"yǎ ba",车子:"chē zi",上将:"shàng jiàng",恶心:"ě xīn",担子:"dàn zi",应届:"yīng jiè",主角:"zhǔ jué",运转:"yùn zhuǎn",兄长:"xiōng zhǎng",格式:"gé shì",正月:"zhēng yuè",营长:"yíng zhǎng",当成:"dàng chéng",女婿:"nǚ xu",咽喉:"yān hóu",重阳:"chóng yáng",化为:"huà wéi",吐蕃:"tǔ bō",钻进:"zuān jìn",乐队:"yuè duì",亮相:"liàng xiàng",被子:"bèi zi",舍得:"shě de",杉木:"shā mù",击中:"jī zhòng",排长:"pái zhǎng",假期:"jià qī",分量:"fèn liàng",数次:"shù cì",提防:"dī fáng",吆喝:"yāo he",查处:"chá chǔ",量子:"liàng zǐ",里头:"lǐ tou",调研:"diào yán",伺候:"cì hou",重申:"chóng shēn",枕头:"zhěn tou",拚命:"pīn mìng",社长:"shè zhǎng",归还:"guī huán",批量:"pī liàng",畜牧:"xù mù",点着:"diǎn zháo",甚为:"shèn wéi",小将:"xiǎo jiàng",着眼:"zhuó yǎn",处死:"chǔ sǐ",厌恶:"yàn wù",鼓乐:"gǔ yuè",树干:"shù gàn",秘鲁:"bì lǔ",大方:"dà fāng",外头:"wài tou",班长:"bān zhǎng",星宿:"xīng xiù",宁愿:"nìng yuàn",钦差:"qīn chāi",为数:"wéi shù",勾当:"gòu dàng",削减:"xuē jiǎn",间谍:"jiàn dié",埋怨:"mán yuàn",结实:"jiē shi",计量:"jì liáng",淹没:"yān mò",村长:"cūn zhǎng",连长:"lián zhǎng",自给:"zì jǐ",武将:"wǔ jiàng",温差:"wēn chā",直奔:"zhí bèn",供求:"gōng qiú",剂量:"jì liàng",道长:"dào zhǎng",泄露:"xiè lòu",王八:"wáng ba",切割:"qiē gē",间隔:"jiàn gé",一晃:"yì huǎng",长假:"cháng jià",令狐:"líng hú",为害:"wéi hài",句子:"jù zi",偿还:"cháng huán",疙瘩:"gē da",燕山:"yān shān",堵塞:"dǔ sè",夺冠:"duó guàn",扎实:"zhā shi",电荷:"diàn hè",看守:"kān shǒu",复辟:"fù bì",郁闷:"yù mèn",尽早:"jǐn zǎo",切断:"qiē duàn",指头:"zhǐ tou",为生:"wéi shēng",畜生:"chù sheng",切除:"qiē chú",着力:"zhuó lì",着想:"zhuó xiǎng",级差:"jí chā",投奔:"tóu bèn",棍子:"gùn zi",含糊:"hán hu",少妇:"shào fù",兴致:"xìng zhì",纳闷:"nà mèn",干流:"gàn liú",卷起:"juǎn qǐ",扇子:"shàn zi",更改:"gēng gǎi",笼络:"lǒng luò",喇叭:"lǎ ba",载荷:"zài hè",妥当:"tuǒ dàng",为难:"wéi nán",着陆:"zhuó lù",燕子:"yàn zi",干吗:"gàn má",白发:"bái fà",总得:"zǒng děi",夹击:"jiā jī",曝光:"bào guāng",曲调:"qǔ diào",相机:"xiàng jī",叫化:"jiào huà",角逐:"jué zhú",啊哟:"ā yō",载重:"zài zhòng",长辈:"zhǎng bèi",出差:"chū chāi",垛口:"duǒ kǒu",撇开:"piē kāi",厅长:"tīng zhǎng",组分:"zǔ fèn",误差:"wù chā",家当:"jiā dàng",传记:"zhuàn jì",个子:"gè zi",铺设:"pū shè",干事:"gàn shì",杆菌:"gǎn jūn",定量:"dìng liàng",运载:"yùn zài",会儿:"huì er",酋长:"qiú zhǎng",重返:"chóng fǎn",差额:"chā é",露面:"lòu miàn",钻研:"zuān yán",大城:"dài chéng",上当:"shàng dàng",销量:"xiāo liàng",作坊:"zuō fang",照相:"zhào xiàng",哎呀:"āi yā",调集:"diào jí",看中:"kàn zhòng",议长:"yì zhǎng",风筝:"fēng zheng",辟邪:"bì xié",空隙:"kòng xì",更迭:"gēng dié",偏差:"piān chā",声调:"shēng diào",适量:"shì liàng",屯子:"tún zi",无量:"wú liàng",空地:"kòng dì",调度:"diào dù",散射:"sǎn shè",创伤:"chuāng shāng",海参:"hǎi shēn",满载:"mǎn zài",重叠:"chóng dié",落差:"luò chā",单调:"dān diào",老将:"lǎo jiàng",人参:"rén shēn",间断:"jiàn duàn",重现:"chóng xiàn",夹杂:"jiā zá",调用:"diào yòng",萝卜:"luó bo",附着:"fù zhuó",应声:"yìng shēng",主将:"zhǔ jiàng",罪过:"zuì guo",咀嚼:"jǔ jué",为政:"wéi zhèng",过量:"guò liàng",乐曲:"yuè qǔ",负荷:"fù hè",枪弹:"qiāng dàn",悄然:"qiǎo rán",处方:"chǔ fāng",悄声:"qiǎo shēng",曲子:"qǔ zi",情调:"qíng diào",挑衅:"tiǎo xìn",代为:"dài wéi",了结:"liǎo jié",打中:"dǎ zhòng",酒吧:"jiǔ bā",懒得:"lǎn de",增量:"zēng liàng",衣着:"yī zhuó",部将:"bù jiàng",要塞:"yào sài",茶几:"chá jī",杠杆:"gàng gǎn",出没:"chū mò",鲜有:"xiǎn yǒu",间隙:"jiàn xì",重担:"zhòng dàn",重演:"chóng yǎn",重试:"chóng shì",应酬:"yìng chou",只当:"zhǐ dāng",毋宁:"wú nìng",包扎:"bāo zā",前头:"qián tou",卷烟:"juǎn yān",非得:"fēi děi",弹道:"dàn dào",杆子:"gān zi",门将:"mén jiàng",后头:"hòu tou",喝彩:"hè cǎi",暖和:"nuǎn huo",累积:"lěi jī",调遣:"diào qiǎn",倔强:"jué jiàng",宝藏:"bǎo zàng",丧事:"sāng shì",约莫:"yuē mo",纤夫:"qiàn fū",更替:"gēng tì",装载:"zhuāng zài",背包:"bēi bāo",帖子:"tiě zi",松散:"sōng sǎn",呼喝:"hū hè",可恶:"kě wù",自转:"zì zhuàn",供电:"gōng diàn",反省:"fǎn xǐng",坦率:"tǎn shuài",苏打:"sū dá",本分:"běn fèn",落得:"luò de",鄙薄:"bǐ bó",相间:"xiāng jiàn",单薄:"dān bó",混蛋:"hún dàn",贞观:"zhēn guān",附和:"fù hè",能耐:"néng nài",吓唬:"xià hu",未了:"wèi liǎo",引着:"yǐn zháo",抽调:"chōu diào",沙子:"shā zi",席卷:"xí juǎn",标的:"biāo dì",别扭:"biè niu",思量:"sī liang",喝采:"hè cǎi",论语:"lún yǔ",盖子:"gài zi",分外:"fèn wài",弄堂:"lòng táng",乐舞:"yuè wǔ",雨量:"yǔ liàng",毛发:"máo fà",差遣:"chāi qiǎn",背负:"bēi fù",转速:"zhuàn sù",声乐:"shēng yuè",夹攻:"jiā gōng",供水:"gōng shuǐ",主干:"zhǔ gàn",惩处:"chéng chǔ",长相:"zhǎng xiàng",公差:"gōng chāi",榴弹:"liú dàn",省得:"shěng de",条子:"tiáo zi",重围:"chóng wéi",阻塞:"zǔ sè",劲风:"jìng fēng",纠葛:"jiū gé",颠簸:"diān bǒ",点中:"diǎn zhòng",重创:"zhòng chuāng",姥姥:"lǎo lao",迷糊:"mí hu",公家:"gōng jia",几率:"jī lǜ",苦闷:"kǔ mèn",度量:"dù liàng",差错:"chā cuò",暑假:"shǔ jià",参差:"cēn cī",搭载:"dā zài",助长:"zhù zhǎng",相称:"xiāng chèn",红晕:"hóng yùn",舍命:"shě mìng",喜好:"xǐ hào",列传:"liè zhuàn",劲敌:"jìng dí",蛤蟆:"há ma",请假:"qǐng jià",钉子:"dīng zi",沉没:"chén mò",高丽:"gāo lí",休假:"xiū jià",无为:"wú wéi",巴结:"bā jie",了得:"liǎo dé",变相:"biàn xiàng",核弹:"hé dàn",亲家:"qìng jia",承载:"chéng zài",喝问:"hè wèn",还击:"huán jī",交还:"jiāo huán",将令:"jiàng lìng",单于:"chán yú",空缺:"kòng quē",绿林:"lù lín",胆量:"dǎn liàng",执着:"zhí zhuó",低调:"dī diào",闭塞:"bì sè",轻薄:"qīng bó",得当:"dé dàng",占卜:"zhān bǔ",扫帚:"sào zhou",龟兹:"qiū cí",年长:"nián zhǎng",外传:"wài zhuàn",头子:"tóu zi",裁缝:"cái feng",礼乐:"lǐ yuè",血泊:"xuè pō",散乱:"sǎn luàn",动量:"dòng liàng",倒腾:"dǎo teng",取舍:"qǔ shě",咱家:"zán jiā",长发:"cháng fà",爪哇:"zhǎo wā",弹壳:"dàn ké",省悟:"xǐng wù",嚷嚷:"rāng rang",连累:"lián lèi",应得:"yīng dé",族长:"zú zhǎng",柜子:"guì zi",擂鼓:"léi gǔ",眩晕:"xuàn yùn",调配:"tiáo pèi",躯干:"qū gàn",差役:"chāi yì",坎坷:"kǎn kě",少儿:"shào ér",乐团:"yuè tuán",养分:"yǎng fèn",退还:"tuì huán",格调:"gé diào",语调:"yǔ diào",音调:"yīn diào",乐府:"yuè fǔ",古朴:"gǔ pǔ",打点:"dǎ diǎn",差使:"chāi shǐ",匀称:"yún chèn",瘦削:"shòu xuē",膏药:"gāo yao",吞没:"tūn mò",调任:"diào rèn",散居:"sǎn jū",上头:"shàng tóu",风靡:"fēng mǐ",放假:"fàng jià",估量:"gū liang",失当:"shī dàng",中弹:"zhòng dàn",妄为:"wàng wéi",长者:"zhǎng zhě",起哄:"qǐ hòng",末了:"mò liǎo",相声:"xiàng sheng",校正:"jiào zhèng",劝降:"quàn xiáng",矢量:"shǐ liàng",沉闷:"chén mèn",给与:"jǐ yǔ",解法:"jiě fǎ",塞外:"sài wài",将校:"jiàng xiào",嗜好:"shì hào",没落:"mò luò",朴刀:"pō dāo",片子:"piān zi",切削:"qiē xiāo",弹丸:"dàn wán",稀薄:"xī bó",亏得:"kuī dé",间歇:"jiàn xiē",翘首:"qiáo shǒu",色调:"sè diào",处决:"chǔ jué",表率:"biǎo shuài",尺子:"chǐ zi",招降:"zhāo xiáng",称职:"chèn zhí",斗篷:"dǒu peng",铺子:"pù zi",底子:"dǐ zi",负载:"fù zài",干警:"gàn jǐng",倒数:"dào shǔ",将官:"jiàng guān",锄头:"chú tou",归降:"guī xiáng",疟疾:"nüè ji",唠叨:"láo dao",限量:"xiàn liàng",屏息:"bǐng xī",重逢:"chóng féng",器乐:"qì yuè",氢弹:"qīng dàn",脖颈:"bó gěng",妃子:"fēi zi",处事:"chǔ shì",参量:"cān liàng",轻率:"qīng shuài",缥缈:"piāo miǎo",中奖:"zhòng jiǎng",才干:"cái gàn",施舍:"shī shě",卷子:"juàn zi",游说:"yóu shuì",巷子:"xiàng zi",膀胱:"páng guāng",切勿:"qiè wù",看管:"kān guǎn",风头:"fēng tou",精干:"jīng gàn",高差:"gāo chā",恐吓:"kǒng hè",扁担:"biǎn dàn",给养:"jǐ yǎng",格子:"gé zi",供需:"gōng xū",反差:"fǎn chā",飞弹:"fēi dàn",微薄:"wēi bó",发型:"fà xíng",即兴:"jí xìng",攒动:"cuán dòng",间或:"jiàn huò",浅薄:"qiǎn bó",乐章:"yuè zhāng",顺差:"shùn chā",调子:"diào zi",相位:"xiàng wèi",转子:"zhuàn zǐ",劲旅:"jìng lǚ",咔嚓:"kā chā",了事:"liǎo shì",转悠:"zhuàn you",当铺:"dàng pù",爪子:"zhuǎ zi",单子:"dān zi",好战:"hào zhàn",燕麦:"yàn mài",只许:"zhǐ xǔ",干练:"gàn liàn",女将:"nǚ jiàng",酒量:"jiǔ liàng",划船:"huá chuán",伎俩:"jì liǎng",挑拨:"tiǎo bō",少校:"shào xiào",着落:"zhuó luò",憎恶:"zēng wù",刻薄:"kè bó",要挟:"yāo xié",用处:"yòng chu",还手:"huán shǒu",模具:"mú jù",执著:"zhí zhuó",喝令:"hè lìng",保长:"bǎo zhǎng",吸着:"xī zhe",症结:"zhēng jié",公转:"gōng zhuàn",校勘:"jiào kān",重提:"chóng tí",扫兴:"sǎo xìng",铺盖:"pū gài",长史:"zhǎng shǐ",差价:"chā jià",压根:"yà gēn",怔住:"zhèng zhù",应允:"yīng yǔn",切入:"qiē rù",战将:"zhàn jiàng",年少:"nián shào",舍身:"shě shēn",执拗:"zhí niù",处世:"chǔ shì",中风:"zhòng fēng",等量:"děng liàng",放量:"fàng liàng",腔调:"qiāng diào",老少:"lǎo shào",没入:"mò rù",瓜葛:"guā gé",将帅:"jiàng shuài",车载:"chē zài",窝囊:"wō nang",长进:"zhǎng jìn",可汗:"kè hán",并州:"bīng zhōu",供销:"gōng xiāo",切片:"qiē piàn",差事:"chāi shì",知会:"zhī hui",鹰爪:"yīng zhǎo",处女:"chǔ nǚ",切磋:"qiē cuō",日头:"rì tou",押解:"yā jiè",滋长:"zī zhǎng",道观:"dào guàn",脚色:"jué sè",当量:"dāng liàng",婆家:"pó jia",缘分:"yuán fèn",空闲:"kòng xián",好色:"hào sè",怒喝:"nù hè",笼统:"lǒng tǒng",边塞:"biān sài",何曾:"hé céng",重合:"chóng hé",零散:"líng sǎn",轰隆:"hōng lōng",化子:"huà zi",内蒙:"nèi měng",数落:"shǔ luò",逆差:"nì chā",牟利:"móu lì",栅栏:"zhà lan",中标:"zhòng biāo",调档:"diào dàng",佝偻:"gōu lóu",场子:"chǎng zi",甲壳:"jiǎ qiào",重温:"chóng wēn",炮制:"páo zhì",返还:"fǎn huán",自传:"zì zhuàn",高调:"gāo diào",殷红:"yān hóng",固着:"gù zhuó",强求:"qiǎng qiú",本相:"běn xiàng",骄横:"jiāo hèng",草率:"cǎo shuài",气闷:"qì mèn",着色:"zhuó sè",宁肯:"nìng kěn",兴头:"xìng tou",拘泥:"jū nì",夹角:"jiā jiǎo",发髻:"fà jì",猛将:"měng jiàng",约摸:"yuē mo",拖累:"tuō lěi",呢绒:"ní róng",钻探:"zuān tàn",夹层:"jiā céng",落魄:"luò pò",巷道:"hàng dào",运量:"yùn liàng",解闷:"jiě mèn",空儿:"kòng er",估摸:"gū mo",好客:"hào kè",钻孔:"zuān kǒng",糊弄:"hù nòng",荥阳:"xíng yáng",烦闷:"fán mèn",仓卒:"cāng cù",分叉:"fēn chà",厂子:"chǎng zi",小调:"xiǎo diào",少阳:"shào yáng",受降:"shòu xiáng",染坊:"rǎn fáng",胳臂:"gē bei",将门:"jiàng mén",模板:"mú bǎn",配给:"pèi jǐ",为伍:"wéi wǔ",跟头:"gēn tou",划算:"huá suàn",累赘:"léi zhui",哄笑:"hōng xiào",晕眩:"yūn xuàn",干掉:"gàn diào",缝制:"féng zhì",难处:"nán chù",着意:"zhuó yì",蛮横:"mán hèng",奇数:"jī shù",短发:"duǎn fà",生还:"shēng huán",还清:"huán qīng",看护:"kān hù",直率:"zhí shuài",奏乐:"zòu yuè",载客:"zài kè",专横:"zhuān hèng",湮没:"yān mò",空格:"kòng gé",铺垫:"pū diàn",良将:"liáng jiàng",哗啦:"huā lā",散漫:"sǎn màn",脱发:"tuō fà",送还:"sòng huán",埋没:"mái mò",累及:"lěi jí",薄雾:"bó wù",调离:"diào lí",舌苔:"shé tāi",机长:"jī zhǎng",栓塞:"shuān sè",配角:"pèi jué",切口:"qiē kǒu",创口:"chuāng kǒu",哈欠:"hā qian",实弹:"shí dàn",铺平:"pū píng",哈达:"hǎ dá",懒散:"lǎn sǎn",实干:"shí gàn",填空:"tián kòng",刁钻:"diāo zuān",乐师:"yuè shī",量变:"liàng biàn",诱降:"yòu xiáng",搪塞:"táng sè",征调:"zhēng diào",夹道:"jiā dào",干咳:"gān ké",止咳:"zhǐ ké",乐工:"yuè gōng",划过:"huá guò",着火:"zháo huǒ",更正:"gēng zhèng",给付:"jǐ fù",空子:"kòng zi",哪吒:"né zhā",正着:"zhèng zháo",刷子:"shuā zi",丧葬:"sāng zàng",夹带:"jiā dài",安分:"ān fèn",中意:"zhòng yì",长孙:"zhǎng sūn",校订:"jiào dìng",卷曲:"juǎn qū",载运:"zài yùn",投弹:"tóu dàn",柞蚕:"zuò cán",份量:"fèn liàng",调换:"diào huàn",了然:"liǎo rán",咧嘴:"liě zuǐ",典当:"diǎn dàng",寒假:"hán jià",长兄:"zhǎng xiōng",给水:"jǐ shuǐ",须发:"xū fà",枝干:"zhī gàn",属相:"shǔ xiàng",哄抢:"hōng qiǎng",刻划:"kè huà",塞子:"sāi zi",单干:"dān gàn",还乡:"huán xiāng",兆头:"zhào tou",寺观:"sì guàn",督率:"dū shuài",啊哈:"ā ha",割舍:"gē shě",抹布:"mā bù",好恶:"hào wù",下处:"xià chǔ",消长:"xiāo zhǎng",离间:"lí jiàn",准头:"zhǔn tou",校对:"jiào duì",什物:"shí wù",番禺:"pān yú",佛爷:"fó ye",吗啡:"mǎ fēi",盐分:"yán fèn",虎将:"hǔ jiàng",薄荷:"bò he",独处:"dú chǔ",空位:"kòng wèi",铺路:"pū lù",乌拉:"wū lā",调回:"diào huí",来头:"lái tou",闲散:"xián sǎn",胶卷:"jiāo juǎn",冒失:"mào shi",干劲:"gàn jìn",弦乐:"xián yuè",相国:"xiàng guó",丹参:"dān shēn",助兴:"zhù xìng",铺开:"pū kāi",次长:"cì zhǎng",发卡:"fà qiǎ",拮据:"jié jū",刹车:"shā chē",生发:"shēng fà",重播:"chóng bō",缝合:"féng hé",音量:"yīn liàng",少尉:"shào wèi",冲压:"chòng yā",苍劲:"cāng jìng",厚薄:"hòu báo",威吓:"wēi hè",外相:"wài xiàng",呼号:"hū háo",着迷:"zháo mí",挑担:"tiāo dàn",纹路:"wén lù",还俗:"huán sú",强横:"qiáng hèng",着数:"zhāo shù",降顺:"xiáng shùn",挑明:"tiǎo míng",眯缝:"mī feng",分内:"fèn nèi",更衣:"gēng yī",软和:"ruǎn huo",尽兴:"jìn xìng",号子:"hào zi",爪牙:"zhǎo yá",败将:"bài jiàng",猜中:"cāi zhòng",结扎:"jié zā",没空:"méi kòng",夹缝:"jiā fèng",拾掇:"shí duo",掺和:"chān huo",簸箕:"bò ji",电量:"diàn liàng",荷载:"hè zǎi",调式:"diào shì",处身:"chǔ shēn",打手:"dǎ shǒu",弹弓:"dàn gōng",横蛮:"hèng mán",能干:"néng gàn",校点:"jiào diǎn",加载:"jiā zài",干校:"gàn xiào",哄传:"hōng chuán",校注:"jiào zhù",淤塞:"yū sè",马扎:"mǎ zhá",月氏:"yuè zhī",高干:"gāo gàn",经传:"jīng zhuàn",曾孙:"zēng sūn",好斗:"hào dòu",关卡:"guān qiǎ",逃奔:"táo bèn",磨蹭:"mó ceng",牟取:"móu qǔ",颤栗:"zhàn lì",蚂蚱:"mà zha",撮合:"cuō he",趔趄:"liè qie",摔打:"shuāi dǎ",台子:"tái zi",分得:"fēn de",粘着:"nián zhuó",采邑:"cài yì",散装:"sǎn zhuāng",婀娜:"ē nuó",兴味:"xìng wèi",行头:"xíng tou",气量:"qì liàng",调运:"diào yùn",处治:"chǔ zhì",乐音:"yuè yīn",充塞:"chōng sè",恫吓:"dòng hè",论调:"lùn diào",相中:"xiāng zhòng",民乐:"mín yuè",炮仗:"pào zhang",丧服:"sāng fú",骁将:"xiāo jiàng",量刑:"liàng xíng",缝补:"féng bǔ",财会:"cái kuài",大干:"dà gàn",历数:"lì shǔ",校场:"jiào chǎng",塞北:"sài běi",识相:"shí xiàng",辱没:"rǔ mò",鲜亮:"xiān liàng",语塞:"yǔ sè",露脸:"lòu liǎn",凉快:"liáng kuai",腰杆:"yāo gǎn",溜达:"liū da",嘎嘎:"gā gā",公干:"gōng gàn",桔梗:"jié gěng",挑逗:"tiǎo dòu",看门:"kān mén",乐歌:"yuè gē",拓片:"tà piàn",挑动:"tiǎo dòng",准将:"zhǔn jiàng",遒劲:"qiú jìng",磨坊:"mò fáng",逶迤:"wēi yí",搅和:"jiǎo huo",摩挲:"mó suō",作弄:"zuò nòng",苗头:"miáo tou",打颤:"dǎ zhàn",大藏:"dà zàng",畜牲:"chù shēng",勾搭:"gōu da",树荫:"shù yīn",树杈:"shù chà",铁杆:"tiě gǎn",将相:"jiàng xiàng",份子:"fèn zi",视差:"shì chā",绿荫:"lǜ yīn",枪杆:"qiāng gǎn",缝纫:"féng rèn",愁闷:"chóu mèn",点将:"diǎn jiàng",华佗:"huà tuó",劲射:"jìng shè",箱笼:"xiāng lǒng",终了:"zhōng liǎo",鬓发:"bìn fà",结巴:"jiē ba",苦干:"kǔ gàn",看家:"kān jiā",正旦:"zhēng dàn",中肯:"zhòng kěn",厦门:"xià mén",东莞:"dōng guǎn",食量:"shí liàng",宫调:"gōng diào",间作:"jiàn zuò",弹片:"dàn piàn",差池:"chā chí",漂白:"piǎo bái",杠子:"gàng zi",调处:"tiáo chǔ",好动:"hào dòng",转炉:"zhuàn lú",屏气:"bǐng qì",夹板:"jiā bǎn",哀乐:"āi yuè",干道:"gàn dào",苦处:"kǔ chù",劈柴:"pǐ chái",长势:"zhǎng shì",天华:"tiān huá",共处:"gòng chǔ",校验:"jiào yàn",出塞:"chū sài",磨盘:"mò pán",萎靡:"wěi mǐ",奔丧:"bēn sāng",唱和:"chàng hè",大调:"dà diào",非分:"fēi fèn",钻营:"zuān yíng",夹子:"jiā zi",超载:"chāo zài",更始:"gēng shǐ",铃铛:"líng dang",披散:"pī sàn",发还:"fā huán",转轮:"zhuàn lún",横财:"hèng cái",泡桐:"pāo tóng",抛撒:"pāo sǎ",天呀:"tiān yā",糊糊:"hū hu",躯壳:"qū qiào",通量:"tōng liàng",奉还:"fèng huán",午觉:"wǔ jiào",闷棍:"mèn gùn",浪头:"làng tou",砚台:"yàn tái",油坊:"yóu fáng",学长:"xué zhǎng",过载:"guò zài",笔调:"bǐ diào",衣被:"yī bèi",畜产:"xù chǎn",调阅:"diào yuè",蛮干:"mán gàn",曾祖:"zēng zǔ",提干:"tí gàn",变调:"biàn diào",覆没:"fù mò",模子:"mú zi",乐律:"yuè lǜ",称心:"chèn xīn",木杆:"mù gān",重印:"chóng yìn",自省:"zì xǐng",提调:"tí diào",看相:"kàn xiàng",芋头:"yù tou",下切:"xià qiē",塞上:"sài shàng",铺张:"pū zhāng",藤蔓:"téng wàn",薄幸:"bó xìng",解数:"xiè shù",褪去:"tuì qù",霰弹:"xiàn dàn",柚木:"yóu mù",痕量:"hén liàng",雅乐:"yǎ yuè",号哭:"háo kū",诈降:"zhà xiáng",猪圈:"zhū juàn",咋舌:"zé shé",铣床:"xǐ chuáng",防弹:"fáng dàn",健将:"jiàn jiàng",丽水:"lí shuǐ",削发:"xuē fà",空当:"kòng dāng",多相:"duō xiàng",鲜见:"xiǎn jiàn",划桨:"huá jiǎng",载波:"zài bō",跳蚤:"tiào zao",俏皮:"qiào pí",吧嗒:"bā dā",结发:"jié fà",了断:"liǎo duàn",同调:"tóng diào",石磨:"shí mò",时差:"shí chā",鼻塞:"bí sè",挑子:"tiāo zi",推磨:"tuī mò",武侯:"wǔ hóu",抹煞:"mǒ shā",调转:"diào zhuǎn",籍没:"jí mò",还债:"huán zhài",调演:"diào yǎn",分划:"fēn huá",奇偶:"jī ǒu",断喝:"duàn hè",闷雷:"mèn léi",狼藉:"láng jí",饭量:"fàn liàng",还礼:"huán lǐ",转调:"zhuǎn diào",星相:"xīng xiàng",手相:"shǒu xiàng",配乐:"pèi yuè",盖头:"gài tou",连杆:"lián gǎn",簿记:"bù jì",刀把:"dāo bà",量词:"liàng cí",名角:"míng jué",步调:"bù diào",校本:"jiào běn",账簿:"zhàng bù",隽永:"juàn yǒng",稍为:"shāo wéi",易传:"yì zhuàn",乐谱:"yuè pǔ",牵累:"qiān lěi",答理:"dā li",喝斥:"hè chì",吟哦:"yín é",干渠:"gàn qú",海量:"hǎi liàng",精当:"jīng dàng",着床:"zhuó chuáng",月相:"yuè xiàng",庶几:"shù jī",宫观:"gōng guàn",论处:"lùn chǔ",征辟:"zhēng bì",厚朴:"hòu pò",介壳:"jiè qiào",吭哧:"kēng chī",咯血:"kǎ xiě",铺陈:"pū chén",重生:"chóng shēng",乐理:"yuè lǐ",哀号:"āi háo",藏历:"zàng lì",刚劲:"gāng jìng",削平:"xuē píng",浓荫:"nóng yīn",城垛:"chéng duǒ",当差:"dāng chāi",正传:"zhèng zhuàn",并处:"bìng chǔ",创面:"chuāng miàn",旦角:"dàn jué",薄礼:"bó lǐ",晃荡:"huàng dang",臊子:"sào zi",家什:"jiā shí",闷头:"mēn tóu",美发:"měi fà",度数:"dù shu",着凉:"zháo liáng",闯将:"chuǎng jiàng",几案:"jī àn",姘头:"pīn tou",差数:"chā shù",散碎:"sǎn suì",壅塞:"yōng sè",寒颤:"hán zhàn",牵强:"qiān qiǎng",无间:"wú jiàn",轮转:"lún zhuàn",号叫:"háo jiào",铺排:"pū pái",降伏:"xiáng fú",轧钢:"zhá gāng",东阿:"dōng ē",病假:"bìng jià",累加:"lěi jiā",梗塞:"gěng sè",弹夹:"dàn jiā",钻心:"zuān xīn",晃眼:"huǎng yǎn",魔爪:"mó zhǎo",标量:"biāo liàng",憋闷:"biē mèn",猜度:"cāi duó",处士:"chǔ shì",官差:"guān chāi",讨还:"tǎo huán",长门:"cháng mén",馏分:"liú fēn",里弄:"lǐ lòng",色相:"sè xiàng",雅兴:"yǎ xìng",角力:"jué lì",弹坑:"dàn kēng",枝杈:"zhī chà",夹具:"jiā jù",处刑:"chǔ xíng",悍将:"hàn jiàng",好学:"hào xué",好好:"hǎo hǎo",银发:"yín fà",扫把:"sào bǎ",法相:"fǎ xiàng",贵干:"guì gàn",供气:"gōng qì",空余:"kòng yú",捆扎:"kǔn zā",瘠薄:"jí bó",浆糊:"jiàng hu",嘎吱:"gā zhī",调令:"diào lìng",法帖:"fǎ tiè",淋病:"lìn bìng",调派:"diào pài",转盘:"zhuàn pán",供稿:"gōng gǎo",差官:"chāi guān",忧闷:"yōu mèn",教长:"jiào zhǎng",重唱:"chóng chàng",酒兴:"jiǔ xìng",乐坛:"yuè tán",花呢:"huā ní",叱喝:"chì hè",膀臂:"bǎng bì",得空:"dé kòng",转圈:"zhuàn quān",横暴:"hèng bào",哄抬:"hōng tái",引吭:"yǐn háng",载货:"zài huò",中计:"zhòng jì",官长:"guān zhǎng",相面:"xiàng miàn",看头:"kàn tou",盼头:"pàn tou",意兴:"yì xìng",军乐:"jūn yuè",累次:"lěi cì",骨嘟:"gǔ dū",燕赵:"yān zhào",报丧:"bào sāng",弥撒:"mí sa",挨斗:"ái dòu",扁舟:"piān zhōu",丑角:"chǒu jué",吊丧:"diào sāng",强将:"qiáng jiàng",重奏:"chóng zòu",发辫:"fà biàn",着魔:"zháo mó",着法:"zhāo fǎ",盛放:"shèng fàng",填塞:"tián sè",凶横:"xiōng hèng",稽首:"qǐ shǒu",碑帖:"bēi tiè",冲量:"chōng liàng",发菜:"fà cài",假发:"jiǎ fà",翻卷:"fān juǎn",小量:"xiǎo liàng",胶着:"jiāo zhuó",里子:"lǐ zi",调调:"diào diao",散兵:"sǎn bīng",高挑:"gāo tiǎo",播撒:"bō sǎ",夹心:"jiā xīn",扇动:"shān dòng",叨扰:"tāo rǎo",霓裳:"ní cháng",捻子:"niǎn zi",弥缝:"mí féng",撒布:"sǎ bù",场院:"cháng yuàn",省亲:"xǐng qīn",提拉:"tí lā",惯量:"guàn liàng",强逼:"qiáng bī",强征:"qiáng zhēng",晕车:"yùn chē",数道:"shù dào",带累:"dài lèi",拓本:"tà běn",嫌恶:"xián wù",宿将:"sù jiàng",龟裂:"jūn liè",缠夹:"chán jiā",发式:"fà shì",隔扇:"gé shàn",天分:"tiān fèn",癖好:"pǐ hào",四通:"sì tōng",白术:"bái zhú",划伤:"huá shāng",角斗:"jué dòu",听差:"tīng chāi",岁差:"suì chā",丧礼:"sāng lǐ",脉脉:"mò mò",削瘦:"xuē shòu",撒播:"sǎ bō",莎草:"suō cǎo",犍为:"qián wéi",调头:"diào tóu",龙卷:"lóng juǎn",外调:"wài diào",字帖:"zì tiè",卷发:"juǎn fà",揣度:"chuǎi duó",洋相:"yáng xiàng",散光:"sǎn guāng",骨碌:"gū lu",薄命:"bó mìng",笼头:"lóng tóu",咽炎:"yān yán",碌碡:"liù zhou",片儿:"piàn er",纤手:"qiàn shǒu",散体:"sǎn tǐ",内省:"nèi xǐng",强留:"qiáng liú",解送:"jiè sòng",反间:"fǎn jiàn",少壮:"shào zhuàng",留空:"liú kōng",告假:"gào jià",咳血:"ké xuè",薄暮:"bó mù",铺轨:"pū guǐ",磨削:"mó xuē",治丧:"zhì sāng",叉子:"chā zi",哄动:"hōng dòng",蛾子:"é zi",出落:"chū luò",股长:"gǔ zhǎng",贵处:"guì chù",还魂:"huán hún",例假:"lì jià",刹住:"shā zhù",身量:"shēn liàng",同好:"tóng hào",模量:"mó liàng",更生:"gēng shēng",服丧:"fú sāng",率直:"shuài zhí",字模:"zì mú",散架:"sǎn jià",答腔:"dā qiāng",交恶:"jiāo wù",薄情:"bó qíng",眼泡:"yǎn pāo",袅娜:"niǎo nuó",草垛:"cǎo duò",冲劲:"chòng jìn",呢喃:"ní nán",切中:"qiè zhòng",挑灯:"tiǎo dēng",还愿:"huán yuàn",激将:"jī jiàng",更鼓:"gēng gǔ",没药:"mò yào",败兴:"bài xìng",切面:"qiē miàn",散户:"sǎn hù",累进:"lěi jìn",背带:"bēi dài",秤杆:"chèng gǎn",碾坊:"niǎn fáng",簿子:"bù zi",扳手:"bān shǒu",铅山:"yán shān",儒将:"rú jiàng",重光:"chóng guāng",剪发:"jiǎn fà",长上:"zhǎng shàng",小传:"xiǎo zhuàn",压轴:"yā zhòu",弱冠:"ruò guàn",花卷:"huā juǎn",横祸:"hèng huò",夹克:"jiā kè",光晕:"guāng yùn",披靡:"pī mǐ",对调:"duì diào",夹持:"jiā chí",空额:"kòng é",平调:"píng diào",铺床:"pū chuáng",丧钟:"sāng zhōng",作乐:"zuò lè",少府:"shào fǔ",数数:"shuò shuò",奔头:"bèn tou",进给:"jìn jǐ",率性:"shuài xìng",乐子:"lè zi",绑扎:"bǎng zā",挑唆:"tiǎo suō",漂洗:"piǎo xǐ",夹墙:"jiā qiáng",咳喘:"ké chuǎn",乜斜:"miē xie",错处:"cuò chù",闷酒:"mèn jiǔ",时调:"shí diào",重孙:"chóng sūn",经幢:"jīng chuáng",圩场:"xū chǎng",调门:"diào mén",花头:"huā tóu",划拉:"huá la",套色:"tào shǎi",粗率:"cū shuài",相率:"xiāng shuài",款识:"kuǎn zhì",吁请:"yù qǐng",荫蔽:"yīn bì",文蛤:"wén gé",嘀嗒:"dī dā",调取:"diào qǔ",交差:"jiāo chāi",落子:"luò zǐ",相册:"xiàng cè",絮叨:"xù dao",落发:"luò fà",异相:"yì xiàng",浸没:"jìn mò",角抵:"jué dǐ",卸载:"xiè zài",春卷:"chūn juǎn",扎挣:"zhá zheng",畜养:"xù yǎng",吡咯:"bǐ luò",垛子:"duò zi",恶少:"è shào",发际:"fà jì",红苕:"hóng sháo",糨糊:"jiàng hu",哭丧:"kū sāng",稍息:"shào xī",晕船:"yùn chuán",校样:"jiào yàng",外差:"wài chā",脚爪:"jiǎo zhǎo",铺展:"pū zhǎn",芫荽:"yán sui",夹紧:"jiā jǐn",尿泡:"suī pào",丧乱:"sāng luàn",凶相:"xiōng xiàng",华发:"huá fà",打场:"dǎ cháng",云量:"yún liàng",正切:"zhèng qiē",划拳:"huá quán",划艇:"huá tǐng",评传:"píng zhuàn",拉纤:"lā qiàn",句读:"jù dòu",散剂:"sǎn jì",骨殖:"gǔ shi",塞音:"sè yīn",铺叙:"pū xù",阏氏:"yān zhī",冷颤:"lěng zhàn",煞住:"shā zhù",少男:"shào nán",管乐:"guǎn yuè",号啕:"háo táo",纳降:"nà xiáng",拥塞:"yōng sè",万乘:"wàn shèng",杆儿:"gǎn ér",葛藤:"gé téng",簿籍:"bù jí",皮夹:"pí jiā",校准:"jiào zhǔn",允当:"yǔn dàng",器量:"qì liàng",选调:"xuǎn diào",扮相:"bàn xiàng",干才:"gàn cái",基干:"jī gàn",割切:"gē qiē",国乐:"guó yuè",卡壳:"qiǎ ké",辟谷:"bì gǔ",磨房:"mò fáng",咿呀:"yī yā",芥末:"jiè mo",薄技:"bó jì",产假:"chǎn jià",诗兴:"shī xìng",重出:"chóng chū",转椅:"zhuàn yǐ",酌量:"zhuó liang",簿册:"bù cè",藏青:"zàng qīng",的士:"dī shì",调人:"diào rén",解元:"jiè yuán",茎干:"jīng gàn",巨量:"jù liàng",榔头:"láng tou",率真:"shuài zhēn",喷香:"pèn xiāng",锁钥:"suǒ yuè",虾蟆:"há má",相图:"xiàng tú",兴会:"xìng huì",灶头:"zào tóu",重婚:"chóng hūn",钻洞:"zuān dòng",忖度:"cǔn duó",党参:"dǎng shēn",调温:"diào wēn",杆塔:"gān tǎ",葛布:"gé bù",拱券:"gǒng xuàn",夹生:"jiā shēng",露馅:"lòu xiàn",恰切:"qià qiè",散见:"sǎn jiàn",哨卡:"shào qiǎ",烫发:"tàng fà",体量:"tǐ liàng",挺括:"tǐng kuò",系带:"jì dài",相士:"xiàng shì",羊圈:"yáng juàn",转矩:"zhuàn jǔ",吧台:"bā tái",苍术:"cāng zhú",菲薄:"fěi bó",蛤蚧:"gé jiè",蛤蜊:"gé lí",瓜蔓:"guā wàn",怪相:"guài xiàng",临帖:"lín tiè",女红:"nǚ gōng",刨床:"bào chuáng",翘楚:"qiáo chǔ",数九:"shǔ jiǔ",谈兴:"tán xìng",雄劲:"xióng jìng",扎染:"zā rǎn",遮荫:"zhē yīn",周正:"zhōu zhèng",赚头:"zhuàn tou",扒手:"pá shǒu",搀和:"chān huo",诚朴:"chéng pǔ",肚量:"dù liàng",干结:"gān jié",工尺:"gōng chě",家累:"jiā lěi",曲水:"qū shuǐ",沙参:"shā shēn",挑花:"tiǎo huā",阿门:"ā mén",背篓:"bēi lǒu",瘪三:"biē sān",裁处:"cái chǔ",创痛:"chuāng tòng",福相:"fú xiàng",更动:"gēng dòng",豪兴:"háo xìng",还阳:"huán yáng",还嘴:"huán zuǐ",借调:"jiè diào",卷云:"juǎn yún",流弹:"liú dàn",想头:"xiǎng tou",削价:"xuē jià",校阅:"jiào yuè",雅量:"yǎ liàng",别传:"bié zhuàn",薄酒:"bó jiǔ",春假:"chūn jià",发妻:"fà qī",哗哗:"huā huā",宽绰:"kuān chuo",了悟:"liǎo wù",切花:"qiē huā",审度:"shěn duó",应许:"yīng xǔ",转台:"zhuàn tái",仔猪:"zǐ zhū",裁量:"cái liáng",藏戏:"zàng xì",乘兴:"chéng xìng",绸缪:"chóu móu",摧折:"cuī zhé",调经:"tiáo jīng",调职:"diào zhí",缝缀:"féng zhuì",骨朵:"gū duǒ",核儿:"hú er",恒量:"héng liàng",还价:"huán jià",浑朴:"hún pǔ",苦差:"kǔ chāi",面糊:"miàn hù",煞车:"shā chē",省视:"xǐng shì",什锦:"shí jǐn",信差:"xìn chāi",余切:"yú qiē",攒眉:"cuán méi",炸糕:"zhá gāo",钻杆:"zuàn gǎn",扒灰:"pá huī",拌和:"bàn huò",长调:"cháng diào",大溜:"dà liù",抖搂:"dǒu lōu",飞转:"fēi zhuàn",干仗:"gàn zhàng",好胜:"hào shèng",画片:"huà piàn",搅混:"jiǎo hún",螺杆:"luó gǎn",木模:"mù mú",怒号:"nù háo",频数:"pín shù",无宁:"wú níng",遗少:"yí shào",邮差:"yóu chāi",占卦:"zhān guà",占星:"zhān xīng",重审:"chóng shěn",自量:"zì liàng",调防:"diào fáng",发廊:"fà láng",反调:"fǎn diào",缝子:"fèng zi",更夫:"gēng fū",骨子:"gǔ zi",光杆:"guāng gǎn",夹棍:"jiā gùn",居丧:"jū sāng",巨贾:"jù gǔ",看押:"kān yā",空转:"kōng zhuàn",量力:"liàng lì",炮烙:"páo luò",赔还:"péi huán",扑扇:"pū shān",散记:"sǎn jì",散件:"sǎn jiàn",删削:"shān xuē",射干:"shè gàn",条几:"tiáo jī",偷空:"tōu kòng",削壁:"xuē bì",校核:"jiào hé",阴干:"yīn gān",择菜:"zhái cài",重九:"chóng jiǔ",主调:"zhǔ diào",自禁:"zì jīn",吧唧:"bā jī",便溺:"biàn niào",词调:"cí diào",叨咕:"dáo gu",落枕:"lào zhěn",铺砌:"pū qì",刷白:"shuà bái",委靡:"wěi mǐ",系泊:"xì bó",相马:"xiàng mǎ",熨帖:"yù tiē",转筋:"zhuàn jīn",棒喝:"bàng hè",傧相:"bīn xiàng",镐头:"gǎo tóu",间苗:"jiàn miáo",乐池:"yuè chí",卖相:"mài xiàng",屏弃:"bǐng qì",铅弹:"qiān dàn",切变:"qiē biàn",请调:"qǐng diào",群氓:"qún méng",散板:"sǎn bǎn",省察:"xǐng chá",事假:"shì jià",纤绳:"qiàn shéng",重影:"chóng yǐng",耕种:"gēng zhòng",种地:"zhòng dì",种菜:"zhòng cài",栽种:"zāi zhòng",接种:"jiē zhòng",垦种:"kěn zhòng",种殖:"zhòng zhí",种瓜:"zhòng guā",种豆:"zhòng dòu",种树:"zhòng shù",睡着:"shuì zháo",笼子:"lóng zi",重启:"chóng qǐ",重整:"chóng zhěng",重弹:"chóng tán",重足:"chóng zú",重山:"chóng shān",重游:"chóng yóu",重峦:"chóng luán",爷爷:"yé ye",奶奶:"nǎi nai",姥爷:"lǎo ye",爸爸:"bà ba",妈妈:"mā ma",婶婶:"shěn shen",舅舅:"jiù jiu",姑姑:"gū gu",叔叔:"shū shu",姨夫:"yí fu",舅母:"jiù mu",姑父:"gū fu",姐夫:"jiě fu",婆婆:"pó po",公公:"gōng gong",舅子:"jiù zi",姐姐:"jiě jie",哥哥:"gē ge",妹妹:"mèi mei",妹夫:"mèi fu",姨子:"yí zi",宝宝:"bǎo bao",娃娃:"wá wa",孩子:"hái zi",日子:"rì zi",样子:"yàng zi",狮子:"shī zi",身子:"shēn zi",架子:"jià zi",嫂子:"sǎo zi",鼻子:"bí zi",亭子:"tíng zi",折子:"zhé zi",面子:"miàn zi",脖子:"bó zi",辈子:"bèi zi",帽子:"mào zi",拍子:"pāi zi",柱子:"zhù zi",辫子:"biàn zi",鸽子:"gē zi",房子:"fáng zi",丸子:"wán zi",摊子:"tān zi",牌子:"pái zi",胡子:"hú zi",鬼子:"guǐ zi",矮子:"ǎi zi",鸭子:"yā zi",小子:"xiǎo zi",影子:"yǐng zi",屋子:"wū zi",对子:"duì zi",点子:"diǎn zi",本子:"běn zi",种子:"zhǒng zi",儿子:"ér zi",兔子:"tù zi",骗子:"piàn zi",院子:"yuàn zi",猴子:"hóu zi",嗓子:"sǎng zi",侄子:"zhí zi",柿子:"shì zi",钳子:"qián zi",虱子:"shī zi",瓶子:"píng zi",豹子:"bào zi",筷子:"kuài zi",篮子:"lán zi",绳子:"shéng zi",嘴巴:"zuǐ ba",耳朵:"ěr duo",茄子:"qié zi",蚌埠:"bèng bù",崆峒:"kōng tóng",琵琶:"pí pa",蘑菇:"mó gu",葫芦:"hú lu",狐狸:"hú li",桔子:"jú zi",盒子:"hé zi",桌子:"zhuō zi",竹子:"zhú zi",师傅:"shī fu",衣服:"yī fu",袜子:"wà zi",杯子:"bēi zi",刺猬:"cì wei",麦子:"mài zi",队伍:"duì wu",知了:"zhī liǎo",鱼儿:"yú er",馄饨:"hún tun",灯笼:"dēng long",庄稼:"zhuāng jia",聪明:"cōng ming",镜子:"jìng zi",银子:"yín zi",盘子:"pán zi",了却:"liǎo què",力气:"lì qi",席子:"xí zi",林子:"lín zi",朝霞:"zhāo xiá",朝夕:"zhāo xī",朝气:"zhāo qì",翅膀:"chì bǎng",省长:"shěng zhǎng",臧否:"zāng pǐ",否泰:"pǐ tài",变得:"biàn de",丈夫:"zhàng fu",豆腐:"dòu fu",笔杆:"bǐ gǎn",枞阳:"zōng yáng",行人:"xíng rén",打着:"dǎ zhe",第一:"dì yī",万一:"wàn yī",之一:"zhī yī",得之:"dé zhī",统一:"tǒng yī",唯一:"wéi yī",专一:"zhuān yī",单一:"dān yī",如一:"rú yī",其一:"qí yī",合一:"hé yī",逐一:"zhú yī",周一:"zhōu yī",初一:"chū yī",研一:"yán yī",归一:"guī yī",假一:"jiǎ yī",闻一:"wén yī",了了:"liǎo liǎo",公了:"gōng liǎo",私了:"sī liǎo",一月:"yī yuè",一号:"yī hào",一级:"yī jí",一等:"yī děng",一哥:"yī gē",月一:"yuè yī",一一:"yī yī",二一:"èr yī",三一:"sān yī",四一:"sì yī",五一:"wǔ yī",六一:"liù yī",七一:"qī yī",八一:"bā yī",九一:"jiǔ yī","一〇":"yī líng",一零:"yī líng",一二:"yī èr",一三:"yī sān",一四:"yī sì",一五:"yī wǔ",一六:"yī liù",一七:"yī qī",一八:"yī bā",一九:"yī jiǔ",一又:"yī yòu",一饼:"yī bǐng",一楼:"yī lóu",为例:"wéi lì",为准:"wéi zhǔn",沧海:"cāng hǎi",难为:"nán wéi",责难:"zé nàn",患难:"huàn nàn",磨难:"mó nàn",大难:"dà nàn",刁难:"diāo nàn",殉难:"xùn nàn",落难:"luò nàn",罹难:"lí nàn",灾难:"zāi nàn",难民:"nàn mín",苦难:"kǔ nàn",危难:"wēi nàn",发难:"fā nàn",逃难:"táo nàn",避难:"bì nàn",遇难:"yù nàn",阻难:"zǔ nàn",厄难:"è nàn",徇难:"xùn nàn",空难:"kōng nàn",喜欢:"xǐ huan",朝朝:"zhāo zhāo",不行:"bù xíng",轧轧:"yà yà",弯曲:"wān qū",扭曲:"niǔ qū",曲直:"qū zhí",委曲:"wěi qū",酒曲:"jiǔ qū",曲径:"qū jìng",曲解:"qū jiě",歪曲:"wāi qū",曲线:"qū xiàn",曲阜:"qū fù",九曲:"jiǔ qū",曲折:"qū zhé",曲肱:"qū gōng",曲意:"qū yì",仡佬:"gē lǎo"},bue=Object.keys(JS).map(e=>({zh:e,pinyin:JS[e],probability:2e-8,length:2,priority:yl.Normal,dict:Symbol("dict2")})),XS={为什么:"wèi shén me",实际上:"shí jì shang",检察长:"jiǎn chá zhǎng",干什么:"gàn shén me",这会儿:"zhè huì er",尽可能:"jǐn kě néng",董事长:"dǒng shì zhǎng",了不起:"liǎo bù qǐ",参谋长:"cān móu zhǎng",朝鲜族:"cháo xiǎn zú",海内外:"hǎi nèi wài",禁不住:"jīn bú zhù",柏拉图:"bó lā tú",不在乎:"bú zài hu",洛杉矶:"luò shān jī",有点儿:"yǒu diǎn er",迫击炮:"pǎi jī pào",不得了:"bù dé liǎo",马尾松:"mǎ wěi sōng",运输量:"yùn shū liàng",发脾气:"fā pí qi",士大夫:"shì dà fū",鸭绿江:"yā lù jiāng",压根儿:"yà gēn er",对得起:"duì de qǐ",那会儿:"nà huì er",自个儿:"zì gě er",物理量:"wù lǐ liàng",怎么着:"zěn me zhāo",明晃晃:"míng huǎng huǎng",节假日:"jié jià rì",心里话:"xīn lǐ huà",发行量:"fā xíng liàng",兴冲冲:"xìng chōng chōng",分子量:"fēn zǐ liàng",国子监:"guó zǐ jiàn",老大难:"lǎo dà nán",党内外:"dǎng nèi wài",这么着:"zhè me zhāo",少奶奶:"shào nǎi nai",暗地里:"àn dì lǐ",更年期:"gēng nián qī",工作量:"gōng zuò liàng",背地里:"bèi dì lǐ",山里红:"shān li hóng",好好儿:"hǎo hāo er",交响乐:"jiāo xiǎng yuè",好意思:"hǎo yì si",吐谷浑:"tǔ yù hún",没意思:"méi yì si",理发师:"lǐ fà shī",塔什干:"tǎ shí gān",充其量:"chōng qí liàng",靠得住:"kào de zhù",车行道:"chē xíng dào",人行道:"rén xíng dào",中郎将:"zhōng láng jiàng",照明弹:"zhào míng dàn",烟幕弹:"yān mù dàn",没奈何:"mò nài hé",乱哄哄:"luàn hōng hōng",惠更斯:"huì gēng sī",载重量:"zài zhòng liàng",瞧得起:"qiáo de qǐ",纪传体:"jì zhuàn tǐ",阿房宫:"ē páng gōng",卷心菜:"juǎn xīn cài",戏班子:"xì bān zi",过得去:"guò de qù",花岗石:"huā gāng shí",外甥女:"wài sheng nǚ",团团转:"tuán tuán zhuàn",大堡礁:"dà bǎo jiāo",燃烧弹:"rán shāo dàn",劳什子:"láo shí zi",摇滚乐:"yáo gǔn yuè",夹竹桃:"jiā zhú táo",闹哄哄:"nào hōng hōng",三连冠:"sān lián guàn",重头戏:"zhòng tóu xì",二人转:"èr rén zhuàn",节骨眼:"jiē gǔ yǎn",知识面:"zhī shi miàn",护士长:"hù shi zhǎng",信号弹:"xìn hào dàn",干电池:"gān diàn chí",枪杆子:"qiāng gǎn zi",哭丧棒:"kū sāng bàng",鼻咽癌:"bí yān ái",瓦岗军:"wǎ gāng jūn",买得起:"mǎi de qǐ",癞蛤蟆:"lài há ma",脊梁骨:"jǐ liang gǔ",子母弹:"zǐ mǔ dàn",开小差:"kāi xiǎo chāi",女强人:"nǚ qiáng rén",英雄传:"yīng xióng zhuàn",爵士乐:"jué shì yuè",说笑话:"shuō xiào hua",碰头会:"pèng tóu huì",玻璃钢:"bō li gāng",曳光弹:"yè guāng dàn",少林拳:"shào lín quán",咏叹调:"yǒng tàn diào",少先队:"shào xiān duì",灵长目:"líng zhǎng mù",对着干:"duì zhe gàn",蒙蒙亮:"méng méng liàng",软骨头:"ruǎn gǔ tou",铺盖卷:"pū gài juǎn",和稀泥:"huò xī ní",背黑锅:"bēi hēi guō",红彤彤:"hóng tōng tōng",武侯祠:"wǔ hóu cí",打哆嗦:"dǎ duō suo",户口簿:"hù kǒu bù",马尾藻:"mǎ wěi zǎo",夜猫子:"yè māo zi",打手势:"dǎ shǒu shì",龙王爷:"lóng wáng yé",气头上:"qì tóu shang",糊涂虫:"hú tu chóng",笔杆子:"bǐ gǎn zi",占便宜:"zhàn pián yi",打主意:"dǎ zhǔ yì",多弹头:"duō dàn tóu",露一手:"lòu yì shǒu",堰塞湖:"yàn sè hú",保得住:"bǎo de zhù",趵突泉:"bào tū quán",奥得河:"ào de hé",司务长:"sī wù zhǎng",禁不起:"jīn bù qǐ",什刹海:"shí chà hǎi",莲花落:"lián huā lào",见世面:"jiàn shì miàn",豁出去:"huō chū qù",电位差:"diàn wèi chā",挨个儿:"āi gè er",那阵儿:"nà zhèn er",肺活量:"fèi huó liàng",大师傅:"dà shī fu",掷弹筒:"zhì dàn tǒng",打呼噜:"dǎ hū lu",广渠门:"ān qú mén",未见得:"wèi jiàn dé",大婶儿:"dà shěn er",谈得来:"tán de lái",脚丫子:"jiǎo yā zi",空包弹:"kōng bāo dàn",窝里斗:"wō li dòu",弹着点:"dàn zhuó diǎn",个头儿:"gè tóu er",看得起:"kàn de qǐ",糊涂账:"hú tu zhàng",大猩猩:"dà xīng xing",禁得起:"jīn de qǐ",法相宗:"fǎ xiàng zōng",可怜相:"kě lián xiàng",吃得下:"chī de xià",汉堡包:"hàn bǎo bāo",闹嚷嚷:"nào rāng rāng",数来宝:"shǔ lái bǎo",合得来:"hé de lái",干性油:"gān xìng yóu",闷葫芦:"mèn hú lu",呱呱叫:"guā guā jiào",西洋参:"xī yáng shēn",林荫道:"lín yīn dào",拉家常:"lā jiā cháng",卷铺盖:"juǎn pū gài",过得硬:"guò de yìng",飞将军:"fēi jiāng jūn",挑大梁:"tiǎo dà liáng",哈巴狗:"hǎ ba gǒu",过家家:"guò jiā jiā",催泪弹:"cuī lèi dàn",雨夹雪:"yǔ jiā xuě",敲竹杠:"qiāo zhú gàng",列车长:"liè chē zhǎng",华达呢:"huá dá ní",犯得着:"fàn de zháo",土疙瘩:"tǔ gē da",煞风景:"shā fēng jǐng",轻量级:"qīng liàng jí",羞答答:"xiū dā dā",石子儿:"shí zǐ er",达姆弹:"dá mǔ dàn",科教片:"kē jiào piān",侃大山:"kǎn dà shān",丁点儿:"dīng diǎn er",吃得消:"chī de xiāo",捋虎须:"luō hǔ xū",高丽参:"gāo lí shēn",众生相:"zhòng shēng xiàng",咽峡炎:"yān xiá yán",禁得住:"jīn de zhù",吃得开:"chī de kāi",柞丝绸:"zuò sī chóu",应声虫:"yìng shēng chóng",数得着:"shǔ de zháo",傻劲儿:"shǎ jìn er",铅玻璃:"qiān bō li",可的松:"kě dì sōng",划得来:"huá de lái",晕乎乎:"yūn hū hū",屎壳郎:"shǐ ke làng",尥蹶子:"liào juě zi",藏红花:"zàng hóng huā",闷罐车:"mèn guàn chē",卡脖子:"qiǎ bó zi",红澄澄:"hóng deng deng",赶得及:"gǎn de jí",当间儿:"dāng jiàn er",露马脚:"lòu mǎ jiǎo",鸡内金:"jī nèi jīn",犯得上:"fàn de shàng",钉齿耙:"dīng chǐ bà",饱和点:"bǎo hé diǎn",龙爪槐:"lóng zhǎo huái",喝倒彩:"hè dào cǎi",定冠词:"dìng guàn cí",担担面:"dàn dan miàn",吃得住:"chī de zhù",爪尖儿:"zhuǎ jiān er",支着儿:"zhī zhāo er",折跟头:"zhē gēn tou",阴着儿:"yīn zhāo er",烟卷儿:"yān juǎn er",宣传弹:"xuān chuán dàn",信皮儿:"xìn pí er",弦切角:"xián qiē jiǎo",缩砂密:"sù shā mì",说得来:"shuō de lái",水漂儿:"shuǐ piāo er",耍笔杆:"shuǎ bǐ gǎn",数得上:"shǔ de shàng",数不着:"shǔ bù zháo",数不清:"shǔ bù qīng",什件儿:"shí jiàn er",生死簿:"shēng sǐ bù",扇风机:"shān fēng jī",撒呓挣:"sā yì zheng",日记簿:"rì jì bù",热得快:"rè de kuài",亲家公:"qìng jia gōng",奇函数:"jī hán shù",拍纸簿:"pāi zhǐ bù",努劲儿:"nǔ jìn er",泥娃娃:"ní wá wa",内切圆:"nèi qiē yuán",哪会儿:"nǎ huì er",闷头儿:"mēn tóu er",没谱儿:"méi pǔ er",铆劲儿:"mǎo jìn er",溜肩膀:"liū jiān bǎng",了望台:"liào wàng tái",老来少:"lǎo lái shào",坤角儿:"kūn jué er",考勤簿:"kǎo qín bù",卷笔刀:"juǎn bǐ dāo",进给量:"jìn jǐ liàng",划不来:"huá bù lái",汗褂儿:"hàn guà er",鼓囊囊:"gǔ nāng nāng",够劲儿:"gòu jìn er",公切线:"gōng qiē xiàn",搁得住:"gé de zhù",赶浪头:"gǎn làng tóu",赶得上:"gǎn de shàng",干酵母:"gān jiào mǔ",嘎渣儿:"gā zhā er",嘎嘣脆:"gā bēng cuì",对得住:"duì de zhù",逗闷子:"dòu mèn zi",顶呱呱:"dǐng guā guā",滴溜儿:"dī liù er",大轴子:"dà zhòu zi",打板子:"dǎ bǎn zi",寸劲儿:"cùn jìn er",醋劲儿:"cù jìn er",揣手儿:"chuāi shǒu er",冲劲儿:"chòng jìn er",吃得来:"chī de lái",不更事:"bù gēng shì",奔头儿:"bèn tou er",百夫长:"bǎi fū zhǎng",娃娃亲:"wá wa qīn",死劲儿:"sǐ jìn er",骨朵儿:"gū duǒ er",功劳簿:"gōng láo bù",都江堰:"dū jiāng yàn",一担水:"yí dàn shuǐ",否极泰:"pǐ jí tài",泰来否:"tài lái pǐ",咳特灵:"ké tè líng",开户行:"kāi hù háng",郦食其:"lì yì jī",花事了:"huā shì liǎo",一更更:"yì gēng gēng",一重山:"yì chóng shān",风一更:"fēng yì gēng",雪一更:"xuě yì gēng",归一码:"guī yì mǎ",星期一:"xīng qī yī",礼拜一:"lǐ bài yī",一季度:"yī jì dù",一月一:"yī yuè yī",一字马:"yī zì mǎ",一是一:"yī shì yī",一次方:"yī cì fāng",一阳指:"yī yáng zhǐ",一字决:"yī zì jué",一年级:"yī nián jí",一不做:"yī bú zuò",屈戌儿:"qū qu ér",难为水:"nán wéi shuǐ",难为情:"nán wéi qíng",行一行:"xíng yì háng",别别的:"biè bié de",干哪行:"gàn nǎ háng",干一行:"gàn yì háng",曲别针:"qū bié zhēn"},Aue=Object.keys(XS).map(e=>({zh:e,pinyin:XS[e],probability:2e-8,length:3,priority:yl.Normal,dict:Symbol("dict3")})),e_={成吉思汗:"chéng jí sī hán",四通八达:"sì tōng bā dá",一模一样:"yì mú yí yàng",青藏高原:"qīng zàng gāo yuán",阿弥陀佛:"ē mí tuó fó",解放思想:"jiè fàng sī xiǎng",所作所为:"suǒ zuò suǒ wéi",迷迷糊糊:"mí mí hu hū",荷枪实弹:"hè qiāng shí dàn",兴高采烈:"xìng gāo cǎi liè",无能为力:"wú néng wéi lì",布鲁塞尔:"bù lǔ sài ěr",为所欲为:"wéi suǒ yù wéi",克什米尔:"kè shí mǐ ěr",没完没了:"méi wán méi liǎo",不为人知:"bù wéi rén zhī",结结巴巴:"jiē jiē bā bā",前仆后继:"qián pū hòu jì",铺天盖地:"pū tiān gài dì",直截了当:"zhí jié liǎo dàng",供不应求:"gōng bú yìng qiú",御史大夫:"yù shǐ dà fū",不为瓦全:"bù wéi wǎ quán",不可收拾:"bù kě shōu shi",胡作非为:"hú zuò fēi wéi",分毫不差:"fēn háo bú chà",模模糊糊:"mó mó hu hū",不足为奇:"bù zú wéi qí",悄无声息:"qiǎo wú shēng xī",了如指掌:"liǎo rú zhǐ zhǎng",深恶痛绝:"shēn wù tòng jué",高高兴兴:"gāo gāo xìng xìng",唉声叹气:"āi shēng tàn qì",汉藏语系:"hàn zàng yǔ xì",处心积虑:"chǔ xīn jī lǜ",泣不成声:"qì bù chéng shēng",半夜三更:"bàn yè sān gēng",失魂落魄:"shī hún luò pò",二十八宿:"èr shí bā xiù",转来转去:"zhuàn lái zhuàn qù",数以万计:"shǔ yǐ wàn jì",相依为命:"xiāng yī wéi mìng",恋恋不舍:"liàn liàn bù shě",屈指可数:"qū zhǐ kě shǔ",神出鬼没:"shén chū guǐ mò",结结实实:"jiē jiē shí shí",有的放矢:"yǒu dì fàng shǐ",叽哩咕噜:"jī lǐ gū lū",调兵遣将:"diào bīng qiǎn jiàng",载歌载舞:"zài gē zài wǔ",转危为安:"zhuǎn wēi wéi ān",踏踏实实:"tā tā shi shí",桑给巴尔:"sāng jǐ bā ěr",装模作样:"zhuāng mú zuò yàng",见义勇为:"jiàn yì yǒng wéi",相差无几:"xiāng chā wú jǐ",叹为观止:"tàn wéi guān zhǐ",闷闷不乐:"mèn mèn bú lè",喜怒哀乐:"xǐ nù āi lè",鲜为人知:"xiǎn wéi rén zhī",张牙舞爪:"zhāng yá wǔ zhǎo",为非作歹:"wéi fēi zuò dǎi",含糊其辞:"hán hú qí cí",疲于奔命:"pí yú bēn mìng",勉为其难:"miǎn wéi qí nán",依依不舍:"yī yī bù shě",顶头上司:"dǐng tóu shàng si",不着边际:"bù zhuó biān jì",大模大样:"dà mú dà yàng",寻欢作乐:"xún huān zuò lè",一走了之:"yì zǒu liǎo zhī",字里行间:"zì lǐ háng jiān",含含糊糊:"hán hán hu hū",恰如其分:"qià rú qí fèn",破涕为笑:"pò tì wéi xiào",深更半夜:"shēn gēng bàn yè",千差万别:"qiān chā wàn bié",数不胜数:"shǔ bú shèng shǔ",据为己有:"jù wéi jǐ yǒu",天旋地转:"tiān xuán dì zhuàn",养尊处优:"yǎng zūn chǔ yōu",玻璃纤维:"bō li xiān wéi",吵吵闹闹:"chāo chao nào nào",晕头转向:"yūn tóu zhuàn xiàng",土生土长:"tǔ shēng tǔ zhǎng",宁死不屈:"nìng sǐ bù qū",不省人事:"bù xǐng rén shì",尽力而为:"jìn lì ér wéi",精明强干:"jīng míng qiáng gàn",唠唠叨叨:"láo lao dāo dāo",叽叽喳喳:"jī ji zhā zhā",功不可没:"gōng bù kě mò",锲而不舍:"qiè ér bù shě",排忧解难:"pái yōu jiě nàn",稀里糊涂:"xī li hú tú",各有所长:"gè yǒu suǒ cháng",的的确确:"dí dí què què",哄堂大笑:"hōng táng dà xiào",听而不闻:"tīng ér bù wén",刀耕火种:"dāo gēng huǒ zhòng",内分泌腺:"nèi fèn mì xiàn",化险为夷:"huà xiǎn wéi yí",百发百中:"bǎi fā bǎi zhòng",重见天日:"chóng jiàn tiān rì",反败为胜:"fǎn bài wéi shèng",一了百了:"yì liǎo bǎi liǎo",大大咧咧:"dà da liē liē",心急火燎:"xīn jí huǒ liǎo",粗心大意:"cū xīn dà yi",鸡皮疙瘩:"jī pí gē da",夷为平地:"yí wéi píng dì",日积月累:"rì jī yuè lěi",设身处地:"shè shēn chǔ dì",投其所好:"tóu qí suǒ hào",间不容发:"jiān bù róng fà",人满为患:"rén mǎn wéi huàn",穷追不舍:"qióng zhuī bù shě",为时已晚:"wéi shí yǐ wǎn",如数家珍:"rú shǔ jiā zhēn",心里有数:"xīn lǐ yǒu shù",以牙还牙:"yǐ yá huán yá",神不守舍:"shén bù shǒu shě",孟什维克:"mèng shí wéi kè",各自为战:"gè zì wéi zhàn",怨声载道:"yuàn shēng zài dào",救苦救难:"jiù kǔ jiù nàn",好好先生:"hǎo hǎo xiān sheng",怪模怪样:"guài mú guài yàng",抛头露面:"pāo tóu lù miàn",游手好闲:"yóu shǒu hào xián",无所不为:"wú suǒ bù wéi",调虎离山:"diào hǔ lí shān",步步为营:"bù bù wéi yíng",好大喜功:"hào dà xǐ gōng",众矢之的:"zhòng shǐ zhī dì",长生不死:"cháng shēng bù sǐ",蔚为壮观:"wèi wéi zhuàng guān",不可胜数:"bù kě shèng shǔ",鬼使神差:"guǐ shǐ shén chāi",洁身自好:"jié shēn zì hào",敢作敢为:"gǎn zuò gǎn wéi",茅塞顿开:"máo sè dùn kāi",走马换将:"zǒu mǎ huàn jiàng",为时过早:"wéi shí guò zǎo",为人师表:"wéi rén shī biǎo",阴差阳错:"yīn chā yáng cuò",油腔滑调:"yóu qiāng huá diào",重蹈覆辙:"chóng dǎo fù zhé",骂骂咧咧:"mà ma liē liē",絮絮叨叨:"xù xù dāo dāo",如履薄冰:"rú lǚ bó bīng",损兵折将:"sǔn bīng zhé jiàng",拐弯抹角:"guǎi wān mò jiǎo",像模像样:"xiàng mú xiàng yàng",供过于求:"gōng guò yú qiú",开花结果:"kāi huā jiē guǒ",仔仔细细:"zǐ zǐ xì xì",川藏公路:"chuān zàng gōng lù",河北梆子:"hé běi bāng zi",长年累月:"cháng nián lěi yuè",正儿八经:"zhèng er bā jīng",不识抬举:"bù shí tái ju",重振旗鼓:"chóng zhèn qí gǔ",气息奄奄:"qì xī yān yān",紧追不舍:"jǐn zhuī bù shě",服服帖帖:"fú fu tiē tiē",强词夺理:"qiǎng cí duó lǐ",噼里啪啦:"pī li pā lā",人才济济:"rén cái jǐ jǐ",发人深省:"fā rén shēn xǐng",不足为凭:"bù zú wéi píng",为富不仁:"wéi fù bù rén",连篇累牍:"lián piān lěi dú",呼天抢地:"hū tiān qiāng dì",落落大方:"luò luò dà fāng",自吹自擂:"zì chuī zì léi",乐善好施:"lè shàn hào shī",以攻为守:"yǐ gōng wéi shǒu",磨磨蹭蹭:"mó mó cèng cèng",削铁如泥:"xuē tiě rú ní",助纣为虐:"zhù zhòu wéi nüè",以退为进:"yǐ tuì wéi jìn",嘁嘁喳喳:"qī qī chā chā",枪林弹雨:"qiāng lín dàn yǔ",令人发指:"lìng rén fà zhǐ",转败为胜:"zhuǎn bài wéi shèng",转弯抹角:"zhuǎn wān mò jiǎo",在劫难逃:"zài jié nán táo",正当防卫:"zhèng dàng fáng wèi",不足为怪:"bù zú wéi guài",难兄难弟:"nàn xiōng nàn dì",咿咿呀呀:"yī yī yā yā",弹尽粮绝:"dàn jìn liáng jué",阿谀奉承:"ē yú fèng chéng",稀里哗啦:"xī li huā lā",返老还童:"fǎn lǎo huán tóng",好高骛远:"hào gāo wù yuǎn",鹿死谁手:"lù sǐ shéi shǒu",差强人意:"chā qiáng rén yì",大吹大擂:"dà chuī dà léi",成家立业:"chéng jiā lì yè",自怨自艾:"zì yuàn zì yì",负债累累:"fù zhài lěi lěi",古为今用:"gǔ wéi jīn yòng",入土为安:"rù tǔ wéi ān",下不为例:"xià bù wéi lì",一哄而上:"yì hōng ér shàng",没头苍蝇:"méi tóu cāng ying",天差地远:"tiān chā dì yuǎn",风卷残云:"fēng juǎn cán yún",多灾多难:"duō zāi duō nàn",乳臭未干:"rǔ xiù wèi gān",行家里手:"háng jiā lǐ shǒu",狼狈为奸:"láng bèi wéi jiān",处变不惊:"chǔ biàn bù jīng",一唱一和:"yí chàng yí hè",一念之差:"yí niàn zhī chā",金蝉脱壳:"jīn chán tuō qiào",滴滴答答:"dī dī dā dā",硕果累累:"shuò guǒ léi léi",好整以暇:"hào zhěng yǐ xiá",红得发紫:"hóng de fā zǐ",传为美谈:"chuán wéi měi tán",富商大贾:"fù shāng dà gǔ",四海为家:"sì hǎi wéi jiā",了若指掌:"liǎo ruò zhǐ zhǎng",大有可为:"dà yǒu kě wéi",出头露面:"chū tóu lù miàn",鼓鼓囊囊:"gǔ gu nāng nāng",窗明几净:"chuāng míng jī jìng",泰然处之:"tài rán chǔ zhī",怒发冲冠:"nù fà chōng guān",有机玻璃:"yǒu jī bō li",骨头架子:"gǔ tou jià zi",义薄云天:"yì bó yún tiān",一丁点儿:"yī dīng diǎn er",时来运转:"shí lái yùn zhuǎn",陈词滥调:"chén cí làn diào",化整为零:"huà zhěng wéi líng",火烧火燎:"huǒ shāo huǒ liǎo",干脆利索:"gàn cuì lì suǒ",吊儿郎当:"diào er láng dāng",广种薄收:"guǎng zhòng bó shōu",种瓜得瓜:"zhòng guā dé guā",种豆得豆:"zhòng dòu dé dòu",难舍难分:"nán shě nán fēn",歃血为盟:"shà xuè wéi méng",奋发有为:"fèn fā yǒu wéi",阴错阳差:"yīn cuò yáng chā",东躲西藏:"dōng duǒ xī cáng",烟熏火燎:"yān xūn huǒ liǎo",钻牛角尖:"zuān niú jiǎo jiān",乔装打扮:"qiáo zhuāng dǎ bàn",改弦更张:"gǎi xián gēng zhāng",河南梆子:"hé nán bāng zi",好吃懒做:"hào chī lǎn zuò",何乐不为:"hé lè bù wéi",大出风头:"dà chū fēng tóu",攻城掠地:"gōng chéng lüè dì",漂漂亮亮:"piào piào liang liang",折衷主义:"zhé zhōng zhǔ yì",大马哈鱼:"dà mǎ hǎ yú",绿树成荫:"lǜ shù chéng yīn",率先垂范:"shuài xiān chuí fàn",家长里短:"jiā cháng lǐ duǎn",宽大为怀:"kuān dà wéi huái",左膀右臂:"zuǒ bǎng yòu bì",一笑了之:"yí xiào liǎo zhī",天下为公:"tiān xià wéi gōng",还我河山:"huán wǒ hé shān",何足为奇:"hé zú wéi qí",好自为之:"hǎo zì wéi zhī",风姿绰约:"fēng zī chuò yuē",大雨滂沱:"dà yǔ pāng tuó",传为佳话:"chuán wéi jiā huà",吃里扒外:"chī lǐ pá wài",重操旧业:"chóng cāo jiù yè",小家子气:"xiǎo jiā zi qì",少不更事:"shào bù gēng shì",难分难舍:"nán fēn nán shě",添砖加瓦:"tiān zhuān jiā wǎ",是非分明:"shì fēi fēn míng",舍我其谁:"shě wǒ qí shuí",偏听偏信:"piān tīng piān xìn",量入为出:"liàng rù wéi chū",降龙伏虎:"xiáng lóng fú hǔ",钢化玻璃:"gāng huà bō li",正中下怀:"zhèng zhòng xià huái",以身许国:"yǐ shēn xǔ guó",一语中的:"yì yǔ zhòng dì",丧魂落魄:"sàng hún luò pò",三座大山:"sān zuò dà shān",济济一堂:"jǐ jǐ yì táng",好事之徒:"hào shì zhī tú",干净利索:"gàn jìng lì suǒ",出将入相:"chū jiàng rù xiàng",袅袅娜娜:"niǎo niǎo nuó nuó",狐狸尾巴:"hú li wěi ba",好逸恶劳:"hào yì wù láo",大而无当:"dà ér wú dàng",打马虎眼:"dǎ mǎ hu yǎn",板上钉钉:"bǎn shàng dìng dīng",吆五喝六:"yāo wǔ hè liù",虾兵蟹将:"xiā bīng xiè jiàng",水调歌头:"shuǐ diào gē tóu",数典忘祖:"shǔ diǎn wàng zǔ",人事不省:"rén shì bù xǐng",曲高和寡:"qǔ gāo hè guǎ",屡教不改:"lǚ jiào bù gǎi",互为因果:"hù wéi yīn guǒ",互为表里:"hù wéi biǎo lǐ",厚此薄彼:"hòu cǐ bó bǐ",过关斩将:"guò guān zhǎn jiàng",疙疙瘩瘩:"gē ge dā dā",大腹便便:"dà fù pián pián",走为上策:"zǒu wéi shàng cè",冤家对头:"yuān jia duì tóu",有隙可乘:"yǒu xì kě chèng",一鳞半爪:"yì lín bàn zhǎo",片言只语:"piàn yán zhǐ yǔ",开花结实:"kāi huā jié shí",经年累月:"jīng nián lěi yuè",含糊其词:"hán hú qí cí",寡廉鲜耻:"guǎ lián xiǎn chǐ",成年累月:"chéng nián lěi yuè",不徇私情:"bú xùn sī qíng",不当人子:"bù dāng rén zǐ",膀大腰圆:"bǎng dà yāo yuán",指腹为婚:"zhǐ fù wéi hūn",这么点儿:"zhè me diǎn er",意兴索然:"yì xīng suǒ rán",绣花枕头:"xiù huā zhěn tou",无的放矢:"wú dì fàng shǐ",望闻问切:"wàng wén wèn qiè",舍己为人:"shě jǐ wèi rén",穷年累月:"qióng nián lěi yuè",排难解纷:"pái nàn jiě fēn",处之泰然:"chǔ zhī tài rán",指鹿为马:"zhǐ lù wéi mǎ",危如累卵:"wēi rú lěi luǎn",天兵天将:"tiān bīng tiān jiàng",舍近求远:"shě jìn qiú yuǎn",南腔北调:"nán qiāng běi diào",苦中作乐:"kǔ zhōng zuò lè",厚积薄发:"hòu jī bó fā",臭味相投:"xiù wèi xiāng tóu",长幼有序:"zhǎng yòu yǒu xù",逼良为娼:"bī liáng wéi chāng",悲悲切切:"bēi bēi qiè qiē",败军之将:"bài jūn zhī jiàng",欺行霸市:"qī háng bà shì",削足适履:"xuē zú shì lǚ",先睹为快:"xiān dǔ wéi kuài",啼饥号寒:"tí jī háo hán",疏不间亲:"shū bú jiàn qīn",神差鬼使:"shén chāi guǐ shǐ",敲敲打打:"qiāo qiāo dǎ dǎ",平铺直叙:"píng pū zhí xù",没头没尾:"méi tóu mò wěi",寥寥可数:"liáo liáo kě shǔ",哼哈二将:"hēng hā èr jiàng",鹤发童颜:"hè fà tóng yán",各奔前程:"gè bèn qián chéng",弹无虚发:"dàn wú xū fā",大人先生:"dà rén xiān sheng",与民更始:"yǔ mín gēng shǐ",树碑立传:"shù bēi lì zhuàn",是非得失:"shì fēi dé shī",实逼处此:"shí bī chǔ cǐ",塞翁失马:"sài wēng shī mǎ",日薄西山:"rì bó xī shān",切身体会:"qiè shēn tǐ huì",片言只字:"piàn yán zhǐ zì",跑马卖解:"pǎo mǎ mài xiè",宁折不弯:"nìng zhé bù wān",零零散散:"líng líng sǎn sǎn",量体裁衣:"liàng tǐ cái yī",连中三元:"lián zhòng sān yuán",礼崩乐坏:"lǐ bēng yuè huài",不为已甚:"bù wéi yǐ shèn",转悲为喜:"zhuǎn bēi wéi xǐ",以眼还眼:"yǐ yǎn huán yǎn",蔚为大观:"wèi wéi dà guān",未为不可:"wèi wéi bù kě",童颜鹤发:"tóng yán hè fà",朋比为奸:"péng bǐ wéi jiān",莫此为甚:"mò cǐ wéi shèn",夹枪带棒:"jiā qiāng dài bàng",富商巨贾:"fù shāng jù jiǎ",淡然处之:"dàn rán chǔ zhī",箪食壶浆:"dān shí hú jiāng",创巨痛深:"chuāng jù tòng shēn",草长莺飞:"cǎo zhǎng yīng fēi",坐视不救:"zuò shī bú jiù",以己度人:"yǐ jǐ duó rén",随行就市:"suí háng jiù shì",文以载道:"wén yǐ zài dào",文不对题:"wén bú duì tí",铁板钉钉:"tiě bǎn dìng dīng",身体发肤:"shēn tǐ fà fū",缺吃少穿:"quē chī shǎo chuān",目无尊长:"mù wú zūn zhǎng",吉人天相:"jí rén tiān xiàng",毁家纾难:"huǐ jiā shū nàn",钢筋铁骨:"gāng jīn tiě gǔ",丢卒保车:"diū zú bǎo jū",丢三落四:"diū sān là sì",闭目塞听:"bì mù sè tīng",削尖脑袋:"xuē jiān nǎo dài",为非作恶:"wéi fēi zuò è",人才难得:"rén cái nán dé",情非得已:"qíng fēi dé yǐ",切中要害:"qiè zhòng yào hài",火急火燎:"huǒ jí huǒ liǎo",画地为牢:"huà dì wéi láo",好酒贪杯:"hào jiǔ tān bēi",长歌当哭:"cháng gē dàng kū",载沉载浮:"zài chén zài fú",遇难呈祥:"yù nàn chéng xiáng",榆木疙瘩:"yú mù gē da",以邻为壑:"yǐ lín wéi hè",洋为中用:"yáng wéi zhōng yòng",言为心声:"yán wéi xīn shēng",言必有中:"yán bì yǒu zhòng",图穷匕见:"tú qióng bǐ xiàn",滂沱大雨:"páng tuó dà yǔ",目不暇给:"mù bù xiá jǐ",量才录用:"liàng cái lù yòng",教学相长:"jiào xué xiāng zhǎng",悔不当初:"huǐ bù dāng chū",呼幺喝六:"hū yāo hè liù",不足为训:"bù zú wéi xùn",不拘形迹:"bù jū xíng jī",傍若无人:"páng ruò wú rén",罪责难逃:"zuì zé nán táo",自我吹嘘:"zì wǒ chuī xū",转祸为福:"zhuǎn huò wéi fú",勇冠三军:"yǒng guàn sān jūn",易地而处:"yì dì ér chǔ",卸磨杀驴:"xiè mò shā lǘ",玩儿不转:"wán ér bú zhuàn",天道好还:"tiān dào hǎo huán",身单力薄:"shēn dān lì bó",撒豆成兵:"sǎ dòu chéng bīng",片纸只字:"piàn zhǐ zhī zì",宁缺毋滥:"nìng quē wú làn",没没无闻:"mò mò wú wén",量力而为:"liàng lì ér wéi",历历可数:"lì lì kě shǔ",口碑载道:"kǒu bēi zài dào",君子好逑:"jūn zǐ hǎo qiú",好为人师:"hào wéi rén shī",豪商巨贾:"háo shāng jù jiǎ",各有所好:"gè yǒu suǒ hào",度德量力:"duó dé liàng lì",指天为誓:"zhǐ tiān wéi shì",逸兴遄飞:"yì xìng chuán fēi",心宽体胖:"xīn kuān tǐ pán",为德不卒:"wéi dé bù zú",天下为家:"tiān xià wéi jiā",视为畏途:"shì wéi wèi tú",三灾八难:"sān zāi bā nàn",沐猴而冠:"mù hóu ér guàn",哩哩啦啦:"lī li lā lā",见缝就钻:"jiàn fèng jiù zuān",夹层玻璃:"jiā céng bō li",急公好义:"jí gōng hào yì",积年累月:"jī nián lěi yuè",划地为牢:"huá dì wéi láo",更名改姓:"gēng míng gǎi xìng",奉为圭臬:"fèng wéi guī niè",多难兴邦:"duō nàn xīng bāng",不破不立:"bú pò bú lì",坐地自划:"zuò dì zì huá",坐不重席:"zuò bù chóng xí",坐不窥堂:"zuò bù kuī táng",作嫁衣裳:"zuò jià yī shang",左枝右梧:"zuǒ zhī yòu wú",左宜右有:"zuǒ yí yòu yǒu",钻头觅缝:"zuān tóu mì fèng",钻天打洞:"zuān tiān dǎ dòng",钻皮出羽:"zuān pí chū yǔ",钻火得冰:"zuān huǒ dé bīng",钻洞觅缝:"zuàn dòng mì féng",钻冰求火:"zuān bīng qiú huǒ",子为父隐:"zǐ wéi fù yǐn",擢发难数:"zhuó fà nán shǔ",着人先鞭:"zhuó rén xiān biān",斫雕为朴:"zhuó diāo wéi pǔ",锥处囊中:"zhuī chǔ náng zhōng",椎心饮泣:"chuí xīn yǐn qì",椎心泣血:"chuí xīn qì xuè",椎牛飨士:"chuí niú xiǎng shì",椎牛歃血:"chuí niú shà xuè",椎牛发冢:"chuí niú fà zhǒng",椎埋屠狗:"chuí mái tú gǒu",椎埋狗窃:"chuí mái gǒu qiè",壮发冲冠:"zhuàng fā chōng guàn",庄严宝相:"zhuāng yán bǎo xiàng",转愁为喜:"zhuǎn chóu wéi xǐ",转嗔为喜:"zhuǎn chēn wéi xǐ",拽巷啰街:"zhuài xiàng luó jiē",拽耙扶犁:"zhuāi pá fú lí",拽布拖麻:"zhuài bù tuō má",箸长碗短:"zhù cháng wǎn duǎn",铸剑为犁:"zhù jiàn wéi lí",杼柚其空:"zhù yòu qí kōng",杼柚空虚:"zhù yòu kōng xū",助天为虐:"zhù tiān wéi nüè",属垣有耳:"zhǔ yuán yǒu ěr",属毛离里:"zhǔ máo lí lǐ",属辞比事:"zhǔ cí bǐ shì",逐物不还:"zhú wù bù huán",铢量寸度:"zhū liáng cùn duó",铢两悉称:"zhū liǎng xī chèn",侏儒观戏:"zhū rú guān xì",朱轓皁盖:"zhū fān zào gài",昼度夜思:"zhòu duó yè sī",诪张为幻:"zhōu zhāng wéi huàn",重明继焰:"chóng míng jì yàn",众啄同音:"zhòng zhuó tóng yīn",众毛攒裘:"zhòng máo cuán qiú",众好众恶:"zhòng hào zhòng wù",擿埴索涂:"zhāi zhí suǒ tú",稚齿婑媠:"zhì chǐ wǒ tuó",至当不易:"zhì dàng bú yì",指皂为白:"zhǐ zào wéi bái",指雁为羹:"zhǐ yàn wéi gēng",指树为姓:"zhǐ shù wéi xìng",指山说磨:"zhǐ shān shuō mò",止戈为武:"zhǐ gē wéi wǔ",枝干相持:"zhī gàn xiāng chí",枝大于本:"zh dà yú běn",支吾其词:"zhī wú qí cí",正身率下:"zhèng shēn shuài xià",正冠李下:"zhèng guàn lǐ xià",整冠纳履:"zhěng guān nà lǚ",整躬率物:"zhěng gōng shuài wù",整顿干坤:"zhěng dùn gàn kūn",针头削铁:"zhēn tóu xuē tiě",贞松劲柏:"zhēn sōng jìng bǎi",赭衣塞路:"zhě yī sè lù",折箭为誓:"shé jiàn wéi shì",折而族之:"zhé ér zú zhī",昭德塞违:"zhāo dé sè wéi",章句小儒:"zhāng jù xiǎo rú",湛恩汪濊:"zhàn ēn wāng huì",占风望气:"zhān fēng wàng qì",斩将搴旗:"zhǎn jiàng qiān qí",曾母投杼:"zēng mǔ tóu zhù",曾参杀人:"zēng shēn shā rén",造谣中伤:"zào yáo zhòng shāng",早占勿药:"zǎo zhān wù yào",凿龟数策:"záo guī shǔ cè",攒三聚五:"cuán sān jù wǔ",攒眉蹙额:"cuán mei cù é",攒零合整:"cuán líng hé zhěng",攒锋聚镝:"cuán fēng jù dí",载笑载言:"zài xiào zài yán",载酒问字:"zài jiǔ wèn zì",殒身不恤:"yǔn shēn bú xù",云舒霞卷:"yún shū xiá juǎn",月中折桂:"yuè zhōng shé guì",月落参横:"yuè luò shēn héng",鬻驽窃价:"yù nú qiè jià",鬻鸡为凤:"yù jī wéi fèng",遇难成祥:"yù nàn chéng xiáng",郁郁累累:"yù yù lěi lěi",玉卮无当:"yù zhī wú dàng",语笑喧阗:"yǔ xiào xuān tián",与世沉浮:"yǔ shì chén fú",与时消息:"yǔ shí xiāo xi",逾墙钻隙:"yú qiáng zuān xì",渔夺侵牟:"yú duó qīn móu",杅穿皮蠹:"yú chuān pí dù",余勇可贾:"yú yǒng kě gǔ",予智予雄:"yú zhì yú xióng",予取予求:"yú qǔ yú qiú",于家为国:"yú jiā wéi guó",有借无还:"yǒu jiè wú huán",有加无已:"yǒu jiā wú yǐ",有国难投:"yǒu guó nán tóu",游必有方:"yóu bì yǒu fāng",油干灯尽:"yóu gàn dēng jìn",尤云殢雨:"yóu yún tì yǔ",庸中皦皦:"yōng zhōng jiǎo jiǎo",郢书燕说:"yǐng shū yān shuō",营蝇斐锦:"yíng yíng fēi jǐn",鹰心雁爪:"yīng xīn yàn zhǎo",莺吟燕儛:"yīng yín yàn wǔ",应天顺时:"yīng tiān shùn shí",印累绶若:"yìn léi shòu ruò",隐占身体:"yǐn zhàn shēn tǐ",饮犊上流:"yìn dú shàng liú",引绳切墨:"yǐn shéng qiē mò",龈齿弹舌:"yín chǐ dàn shé",因缘为市:"yīn yuán wéi shì",因树为屋:"yīn shù wéi wū",溢美溢恶:"yì měi yì wù",抑塞磊落:"yì sè lěi luò",倚闾望切:"yǐ lǘ wàng qiē",以意为之:"yǐ yì wéi zhī",以言为讳:"yǐ yán wéi huì",以疏间亲:"yǐ shū jiàn qīn",以水济水:"yǐ shuǐ jǐ shuǐ",以书为御:"yǐ shū wéi yù",以守为攻:"yǐ shǒu wéi gōng",以升量石:"yǐ shēng liáng dàn",以慎为键:"yǐ shèn wéi jiàn",以筌为鱼:"yǐ quán wéi yú",以利累形:"yǐ lì lěi xíng",以毁为罚:"yǐ huǐ wéi fá",以黑为白:"yǐ hēi wéi bái",以规为瑱:"yǐ guī wéi tiàn",以古为鉴:"yǐ gǔ wéi jiàn",以宫笑角:"yǐ gōng xiào jué",以法为教:"yǐ fǎ wéi jiào",以大恶细:"yǐ dà wù xì",遗世忘累:"yí shì wàng lěi",遗寝载怀:"yí qǐn zài huái",移的就箭:"yí dì jiù jiàn",依头缕当:"yī tóu lǚ dàng",衣租食税:"yì zū shí shuì",衣轻乘肥:"yì qīng chéng féi",衣裳之会:"yī shang zhī huì",衣单食薄:"yī dān shí bó",一还一报:"yì huán yí bào",叶公好龙:"yè gōng hào lóng",野调无腔:"yě diào wú qiāng",瑶池女使:"yáo chí nǚ shǐ",幺麽小丑:"yāo mó xiǎo chǒu",养精畜锐:"yǎng jīng xù ruì",卬首信眉:"áng shǒu shēn méi",洋洋纚纚:"yáng yáng sǎ sǎ",羊羔美酒:"yáng gāo měi jiǔ",扬风扢雅:"yáng fēng jié yǎ",燕昭市骏:"yān zhāo shì jùn",燕昭好马:"yān zhāo hǎo mǎ",燕石妄珍:"yān shí wàng zhēn",燕骏千金:"yān jùn qiān jīn",燕金募秀:"yān jīn mù xiù",燕驾越毂:"yān jià yuè gǔ",燕歌赵舞:"yān gē zhào wǔ",燕岱之石:"yān dài zhī shí",燕处危巢:"yàn chǔ wēi cháo",掞藻飞声:"shàn zǎo fēi shēng",偃革为轩:"yǎn gé wéi xuān",妍蚩好恶:"yán chī hǎo è",压良为贱:"yā liáng wéi jiàn",搀行夺市:"chān háng duó shì",泣数行下:"qì shù háng xià",当行出色:"dāng háng chū sè",秀出班行:"xiù chū bān háng",儿女成行:"ér nǚ chéng háng",大行大市:"dà háng dà shì",寻行数墨:"xún háng shǔ mò",埙篪相和:"xūn chí xiāng hè",血债累累:"xuè zhài lěi lěi",炫玉贾石:"xuàn yù gǔ shí",炫石为玉:"xuàn shí wéi yù",悬石程书:"xuán dàn chéng shū",悬狟素飡:"xuán huán sù cān",悬龟系鱼:"xuán guī xì yú",揎拳捋袖:"xuān quán luō xiù",轩鹤冠猴:"xuān hè guàn hóu",畜妻养子:"xù qī yǎng zǐ",羞人答答:"xiū rén dā dā",修鳞养爪:"xiū lín yǎng zhǎo",熊据虎跱:"xióng jù hǔ zhì",兄死弟及:"xiōng sǐ dì jí",腥闻在上:"xīng wén zài shàng",兴文匽武:"xīng wén yǎn wǔ",兴观群怨:"xìng guān qún yuàn",兴高彩烈:"xìng gāo cǎi liè",心手相应:"xīn shǒu xiāng yìng",心口相应:"xīn kǒu xiāng yīng",挟势弄权:"xié shì nòng quán",胁肩累足:"xié jiān lěi zú",校短量长:"jiào duǎn liáng cháng",小眼薄皮:"xiǎo yǎn bó pí",硝云弹雨:"xiāo yún dàn yǔ",鸮鸣鼠暴:"xiāo míng shǔ bào",削株掘根:"xuē zhū jué gēn",削铁无声:"xuē tiě wú shēng",削职为民:"xuē zhí wéi mín",削木为吏:"xuē mù wéi lì",想望风褱:"xiǎng wàng fēng huái",香培玉琢:"xiang pei yu zhuó",相鼠有皮:"xiàng shǔ yǒu pí",相时而动:"xiàng shí ér dòng",相切相磋:"xiāng qiē xiāng cuō",相女配夫:"xiàng nǚ pèi fū",相门有相:"xiàng mén yǒu xiàng",挦章撦句:"xián zhāng chě jù",先我着鞭:"xiān wǒ zhuó biān",习焉不察:"xí yān bù chá",歙漆阿胶:"shè qī ē jiāo",晰毛辨发:"xī máo biàn fà",悉索薄赋:"xī suǒ bó fù",雾鳞云爪:"wù lín yún zhǎo",物稀为贵:"wù xī wéi guì",碔砆混玉:"wǔ fū hùn yù",武断专横:"wǔ duàn zhuān héng",五石六鹢:"wǔ shí liù yì",五色相宣:"wǔ sè xiāng xuān",五侯七贵:"wǔ hóu qī guì",五侯蜡烛:"wǔ hòu là zhú",五羖大夫:"wǔ gǔ dà fū",吾自有处:"wú zì yǒu chǔ",无下箸处:"wú xià zhù chǔ",无伤无臭:"wú shāng wú xiù",无能为役:"wú néng wéi yì",无寇暴死:"wú kòu bào sǐ",无孔不钻:"wú kǒng bú zuàn",无间可乘:"wú jiān kě chéng",无间冬夏:"wú jiān dōng xià",无恶不为:"wú è bù wéi",无动为大:"wú dòng wéi dà",诬良为盗:"wū liáng wéi dào",握拳透爪:"wò quán tòu zhǎo",文武差事:"wén wǔ chāi shì",委委佗佗:"wēi wēi tuó tuó",惟日为岁:"wéi rì wéi suì",帷薄不修:"wéi bó bù xiū",为善最乐:"wéi shàn zuì lè",为山止篑:"wéi shān zhǐ kuì",为仁不富:"wéi rén bú fù",为裘为箕:"wéi qiú wéi jī",为民父母:"wéi mín fù mǔ",为虺弗摧:"wéi huǐ fú cuī",为好成歉:"wéi hǎo chéng qiàn",为鬼为蜮:"wéi guǐ wéi yù",望风响应:"wàng fēng xiǎng yīng",望尘僄声:"wàng chén piào shēng",往渚还汀:"wǎng zhǔ huán tīng",王贡弹冠:"wáng gòng dàn guàn",亡国大夫:"wáng guó dà fū",万贯家私:"wàn guàn jiā sī",晚食当肉:"wǎn shí dàng ròu",晚节不保:"wǎn jié bù bǎo",玩岁愒时:"wán suì kài shí",蛙蟆胜负:"wā má shèng fù",吞言咽理:"tūn yán yàn lǐ",颓垣断堑:"tuí yuán duàn qiàn",推干就湿:"tuī gàn jiù shī",剸繁决剧:"tuán fán jué jù",团头聚面:"tuán tóu jù miàn",兔丝燕麦:"tù sī yàn mài",兔头麞脑:"tù tóu zhāng nǎo",兔葵燕麦:"tù kuí yàn mài",吐哺握发:"tǔ bǔ wò fà",投传而去:"tóu zhuàn ér qù",头没杯案:"tóu mò bēi àn",头昏脑闷:"tóu hūn nǎo mèn",头会箕敛:"tóu kuài jī liǎn",头出头没:"tóu chū tóu mò",痛自创艾:"tòng zì chuāng yì",同恶相助:"tóng wù xiāng zhù",同恶相恤:"tóng wù xiāng xù",痌瘝在抱:"tōng guān zài bào",通文调武:"tōng wén diào wǔ",停留长智:"tíng liú zhǎng zhì",铁树开华:"tiě shù kāi huā",条贯部分:"tiáo guàn bù fēn",挑牙料唇:"tiǎo yá liào chún",挑么挑六:"tiāo yāo tiāo liù",挑唇料嘴:"tiǎo chún liào zuǐ",恬不为意:"tián bù wéi yì",恬不为怪:"tián bù wéi guài",天下为笼:"tiān xià wéi lóng",天台路迷:"tiān tái lù mí",天年不遂:"tiān nián bú suì",探囊胠箧:"tàn náng qū qiè",谭言微中:"tán yán wēi zhòng",谈言微中:"tán yán wēi zhòng",狧穅及米:"shì kāng jí mǐ",随物应机:"suí wù yīng jī",搜岩采干:"sōu yán cǎi gàn",宋斤鲁削:"sòng jīn lǔ xuē",松筠之节:"sōng yún zhī jié",四亭八当:"sì tíng bā dàng",四马攒蹄:"sì mǎ cuán tí",四不拗六:"sì bú niù liù",思所逐之:"sī suǒ zhú zhī",丝恩发怨:"sī ēn fà yuàn",硕望宿德:"shuò wàng xiǔ dé",铄古切今:"shuò gǔ qiē jīn",顺风而呼:"shùn fēng ér hū",顺风吹火:"shùn fēng chuī huǒ",水中著盐:"shuǐ zhōng zhuó yán",双柑斗酒:"shuāng gān dǒu jiǔ",数米而炊:"shǔ mǐ ér chuī",数米量柴:"shǔ mǐ liáng chái",数理逻辑:"shù lǐ luó ji",数黑论黄:"shǔ hēi lùn huáng",数白论黄:"shǔ bái lùn huáng",束缊还妇:"shù yūn huán fù",束蒲为脯:"shù pú wéi pú",束椽为柱:"shù chuán wéi zhù",书缺有间:"shū quē yǒu jiàn",手足重茧:"shǒu zú chóng jiǎn",手足异处:"shǒu zú yì chǔ",手脚干净:"shǒu jiǎo gàn jìng",手不应心:"shǒu bù yīng xīn",螫手解腕:"shì shǒu jiě wàn",释知遗形:"shì zhī yí xíng",适时应务:"shì shí yīng wù",适情率意:"shì qíng shuài yì",适当其冲:"shì dāng qí chōng",视为知己:"shì wéi zhī jǐ",使羊将狼:"shǐ yáng jiàng láng",食为民天:"shí wéi mín tiān",拾掇无遗:"shí duō wú yí",实与有力:"shí yù yǒu lì",石英玻璃:"shí yīng bō li",石室金匮:"shí shì jīn guì",什袭珍藏:"shí xí zhēn cáng",什伍东西:"shí wǔ dōng xī",什围伍攻:"shí wéi wǔ gōng",十魔九难:"shí mó jiǔ nàn",诗书发冢:"shī shū fà zhǒng",虱处裈中:"shī chǔ kūn zhōng",师直为壮:"shī zhí wéi zhuàng",尸居龙见:"shī jū lóng xiàn",圣经贤传:"shèng jīng xián zhuàn",圣君贤相:"shèng jūn xián xiàng",生拖死拽:"shēng tuō sǐ zhuài",审己度人:"shěn jǐ duó rén",神武挂冠:"shén wǔ guà guàn",神龙失埶:"shén lóng shī shì",深文曲折:"shēn wén qǔ shé",深厉浅揭:"shēn lì qiǎn qì",深谷为陵:"shēn gǔ wéi líng",深恶痛疾:"shēn wù tòng jí",深仇宿怨:"shēn chóu xiǔ yuàn",舍己为公:"shě jǐ wèi gōng",舍短取长:"shě duǎn qǔ cháng",舍策追羊:"shě cè zhuī yáng",蛇蝎为心:"shé xiē wéi xīn",少成若性:"shào chéng ruò xìng",上当学乖:"shàng dàng xué guāi",赏不当功:"shǎng bù dāng gōng",善自为谋:"shàn zì wéi móu",善为说辞:"shàn wéi shuō cí",善善恶恶:"shàn shàn wù è",善财难舍:"shàn cái nán shě",苫眼铺眉:"shān yǎn pū méi",讪牙闲嗑:"shàn yá xián kē",山阴乘兴:"shān yīn chéng xīng",山殽野湋:"shān yáo yě wéi",山溜穿石:"shān liù chuān shí",山节藻棁:"shān jié zǎo zhuō",杀鸡为黍:"shā jī wéi shǔ",色厉胆薄:"sè lì dǎn bó",桑荫未移:"sāng yīn wèi yí",桑荫不徙:"sāng yīn bù xǐ",桑土绸缪:"sāng tǔ chóu miù",桑户棬枢:"sāng hù juàn shū",三战三北:"sān zhàn sān běi",三瓦两舍:"sān wǎ liǎng shě",三人为众:"sān rén wèi zhòng",三差两错:"sān chā liǎng cuò",塞井焚舍:"sāi jǐng fén shě",洒心更始:"sǎ xīn gèng shǐ",洒扫应对:"sǎ sǎo yìng duì",软红香土:"ruǎn hóng xiāng tǔ",入吾彀中:"rù wú gòu zhōng",入铁主簿:"rù tiě zhǔ bù",入理切情:"rù lǐ qiē qíng",汝成人耶:"rǔ chéng rén yé",如水投石:"rú shuǐ tóu shí",如切如磋:"rú qiē rú cuō",如登春台:"rú dēng chūn tái",肉薄骨并:"ròu bó gǔ bìng",柔情绰态:"róu qíng chuò tài",戎马劻勷:"róng mǎ kuāng ráng",日中为市:"rì zhōng wéi shì",日月参辰:"rì yuè shēn chén",日省月修:"rì xǐng yuè xiū",日削月割:"rì xuē yuè gē",日省月试:"rì xǐng yuè shì",任达不拘:"rèn dá bù jū",人言藉藉:"rén yán jí jí",人模狗样:"rén mú gǒu yàng",人莫予毒:"rén mò yú dú",热熬翻饼:"rè áo fān bǐng",圈牢养物:"juàn láo yǎng wù",取予有节:"qǔ yǔ yǒu jié",诎要桡腘:"qū yāo ráo guó",穷形尽相:"qióng xíng jìn xiàng",情凄意切:"qíng qī yì qiè",情见势屈:"qíng xiàn shì qū",情见乎辞:"qíng xiàn hū cí",清都绛阙:"qīng dōu jiàng què",倾肠倒肚:"qīng cháng dào dǔ",青紫被体:"qīng zǐ pī tǐ",青林黑塞:"qīng lín hēi sài",螓首蛾眉:"qín shǒu é méi",琴瑟之好:"qín sè zhī hào",且住为佳:"qiě zhù wéi jiā",切树倒根:"qiē shù dǎo gēn",切理餍心:"qiē lǐ yàn xīn",切近的当:"qiē jìn de dāng",翘足引领:"qiáo zú yǐn lǐng",巧发奇中:"qiǎo fā qí zhòng",强嘴拗舌:"jiàng zuǐ niù shé",强直自遂:"qiáng zhí zì suí",强死强活:"qiǎng sǐ qiǎng huó",强食自爱:"qiǎng shí zì ài",强食靡角:"qiǎng shí mí jiǎo",强弓劲弩:"qiáng gōng jìng nǔ",强聒不舍:"qiǎng guō bù shě",强凫变鹤:"qiáng fú biàn hè",强而后可:"qiǎng ér hòu kě",强得易贫:"qiǎng dé yì pín",遣兴陶情:"qiǎn xìng táo qíng",牵羊担酒:"qiān yáng dān jiǔ",千了百当:"qiān liǎo bǎi dàng",泣下如雨:"qì xià rú yǔ",起偃为竖:"qǐ yǎn wéi shù",岂弟君子:"kǎi tì jūn zǐ",綦溪利跂:"qí xī lì qí",棋输先著:"qí shū xiān zhuó",齐王舍牛:"qí wáng shě niú",欺天诳地:"qī tiān kuáng dì",普天率土:"pǔ tiān shuài tǔ",铺胸纳地:"pū xiōng nà dì",铺锦列绣:"pū jǐn liè xiù",破家为国:"pò jiā wèi guó",破觚为圜:"pò gū wéi yuán",萍飘蓬转:"píng piāo péng zhuàn",帡天极地:"píng tiān jí dì",屏声息气:"bǐng shēng xī qì",凭几据杖:"píng jī jù zhàng",贫嘴薄舌:"pín zuǐ bó shé",片语只辞:"piàn yǔ zhī cí",披发文身:"pī fà wén shēn",烹龙炮凤:"pēng lóng páo fèng",炰鳖脍鲤:"fǒu biē kuài lǐ",庞眉皓发:"páng méi hào fà",攀花折柳:"pān huā zhé liǔ",攀蟾折桂:"pān chán shé guì",女大难留:"nǚ dà nán liú",弄玉吹箫:"nòng yù chuī xiāo",弄管调弦:"nòng guǎn tiáo xián",弄粉调朱:"nòng fěn diào zhū",浓抹淡妆:"nóng mò dàn zhuāng",捻土为香:"niǎn tǔ wéi xiāng",年谊世好:"nián yì shì hǎo",年华垂暮:"nián huá chuí mù",儗不于伦:"nǐ bù yú lún",泥而不滓:"ní ér bù zǐ",能者为师:"néng zhě wéi shī",能不称官:"néng bú chèn guān",挠直为曲:"náo zhí wéi qū",难进易退:"nán jìn yì tuì",难得糊涂:"nán dé hú tú",南蛮鴂舌:"nán mán jué shé",南贩北贾:"nán fàn běi gǔ",牧猪奴戏:"mù zhū nú xì",目眢心忳:"mù yuān xīn tún",目挑心招:"mù tiǎo xīn zhāo",目量意营:"mù liàng yì yíng",木头木脑:"mù tóu mù nǎo",木干鸟栖:"mù gàn niǎo qī",侔色揣称:"móu sè chuǎi chèn",莫予毒也:"mò yú dú yě",抹粉施脂:"mò fěn shī zhī",磨砻镌切:"mó lóng juān qiē",磨棱刓角:"mó léng wán jiǎo",摸门不着:"mō mén bù zháo",摸不着边:"mō bù zhuó biān",命中注定:"mìng zhōng zhù dìng",鸣鹤之应:"míng hè zhī yìng",明效大验:"míng xiào dà yàn",名我固当:"míng wǒ gù dāng",邈处欿视:"miǎo chǔ kǎn shì",黾穴鸲巢:"měng xué qú cháo",绵里薄材:"mián lǐ bó cái",靡有孑遗:"mǐ yǒu jié yí",靡衣偷食:"mǐ yī tōu shí",迷恋骸骨:"mí liàn hái gǔ",扪参历井:"mén shēn lì jǐng",门单户薄:"mén dān hù bó",昧旦晨兴:"mèi dàn chén xīng",冒名接脚:"mào míng jiē jiǎo",毛遂堕井:"máo suí duò jǐng",毛发倒竖:"máo fā dǎo shù",卖文为生:"mài wén wéi shēng",卖李钻核:"mài lǐ zuān hé",买椟还珠:"mǎi dú huán zhū",埋三怨四:"mán sān yuàn sì",马入华山:"mǎ rù huá shān",落魄江湖:"luò pò jiāng hú",落落难合:"luò luò nán hé",落草为寇:"luò cǎo wéi kòu",罗织构陷:"luó zhī gòu xiàn",鸾凤和鸣:"luán fèng hè míng",率由旧章:"shuài yóu jiù zhāng",率土同庆:"shuài tǔ tóng qìng",率兽食人:"shuài shòu shí rén",率土归心:"shuài tǔ guī xīn",率马以骥:"shuài mǎ yǐ jì",率尔成章:"shuài ěr chéng zhāng",鲁斤燕削:"lǔ jīn yàn xuē",漏尽更阑:"lòu jìn gēng lán",笼鸟槛猿:"lóng niǎo jiàn yuán",笼鸟池鱼:"lóng niǎo chí yú",龙游曲沼:"lóng yóu qū zhǎo",龙血玄黄:"lóng xuè xuán huáng",龙雕凤咀:"lóng diāo fèng jǔ",六尺之讬:"liù chǐ zhī tuō",令原之戚:"líng yuán zhī qī",令人捧腹:"lìng rén pěng fù",陵劲淬砺:"líng jìng cuì lì",临敌易将:"lín dí yì jiàng",裂裳衣疮:"liè shang yī chuāng",裂冠毁冕:"liè guàn huǐ miǎn",了无惧色:"liǎo wú jù sè",了身达命:"liǎo shēn dá mìng",了然无闻:"liǎo rán wú wén",了不可见:"liǎo bù kě jiàn",了不长进:"liǎo bù zhǎng jìn",燎发摧枯:"liǎo fà cuī kū",审时度势:"shěn shí duó shì",量小力微:"liàng xiǎo lì wēi",相时度力:"xiāng shí duó lì",量枘制凿:"liàng ruì zhì záo",量如江海:"liàng rú jiāng hǎi",量金买赋:"liàng jīn mǎi fù",量己审分:"liàng jǐ shěn fēn",敛骨吹魂:"liǎn gǔ chuī hún",詈夷为跖:"lì yí wéi zhí",利令志惛:"lì lìng zhì hūn",李广不侯:"lǐ guǎng bú hòu",礼为情貌:"lǐ wéi qíng mào",礼让为国:"lǐ ràng wéi guó",犁生骍角:"lí shēng xīng jiǎo",离本徼末:"lí běn jiǎo mò",楞眉横眼:"léng méi hèng yǎn",擂天倒地:"léi tiān dǎo dì",累足成步:"lěi zú chéng bù",累瓦结绳:"lěi wǎ jié shéng",累土至山:"lěi tǔ zhì shān",累土聚沙:"lěi tǔ jù shā",累卵之危:"lěi luǎn zhī wēi",累累如珠:"lěi lěi rú zhū",累块积苏:"lěi kuài jī sū",乐山乐水:"lè shān lè shuǐ",潦原浸天:"lǎo yuán jìn tiān",老师宿儒:"lǎo shī xiǔ rú",牢什古子:"láo shí gǔ zi",琅嬛福地:"láng huán fú dì",揆情度理:"kuí qíng duó lǐ",旷日累时:"kuàng rì lěi shí",匡救弥缝:"kuāng jiù mí fèng",枯树生华:"kū shù shēng huā",口轻舌薄:"kǒu qīng shé bó",口角生风:"kǒu jiǎo shēng fēng",口角春风:"kǒu jiǎo chūn fēng",口角风情:"kǒu jiǎo fēng qíng",口干舌焦:"kǒu gān shé jiāo",口腹之累:"kǒu fù zhī lěi",空腹便便:"kōng fù pián pián",嗑牙料嘴:"kē yá liào zuǐ",刻木为鹄:"kè mù wéi hú",咳珠唾玉:"ké zhū tuò yù",咳唾成珠:"ké tuò chéng zhū",抗颜为师:"kàng yán wéi shī",开华结果:"kāi huā jié guǒ",峻阪盐车:"jùn bǎn yán chē",嚼铁咀金:"jiáo tiě jǔ jīn",嚼墨喷纸:"jué mò pēn zhǐ",倔头强脑:"juè tóu jiàng nǎo",倔头倔脑:"juè tóu juè nǎo",倦鸟知还:"juàn niǎo zhī huán",卷席而葬:"juǎn xí ér zàng",卷甲倍道:"juǎn jiǎ bèi dào",聚米为山:"jù mǐ wéi shān",举手相庆:"jǔ shǒu xiāng qìng",举世混浊:"jǔ shì hún zhuó",鞠为茂草:"jū wéi mào cǎo",拘神遣将:"jū shén qiǎn jiàng",居下讪上:"jū xià shàn shàng",久要不忘:"jiǔ yāo bú wàng",九转功成:"jiǔ zhuǎn gōng chéng",九蒸三熯:"jiǔ zhēng sān hàn",敬业乐群:"jìng yè lè qún",井底虾蟆:"jǐng dǐ xiā má",旌旗卷舒:"jīng qí juǎn shū",荆棘载途:"jīng jí zài tú",禁舍开塞:"jìn shě kāi sāi",祲威盛容:"jìn wēi shèng róng",进退消长:"jìn tuì xiāo cháng",进退应矩:"jìn tuì yīng jǔ",进退触籓:"jìn tuì chù fān",进退跋疐:"jìn tuì bá zhì",尽多尽少:"jǐn duō jǐn shǎo",锦囊还矢:"jǐn náng huán shǐ",矜己自饰:"jīn jǐ zì shì",矜功负气:"jīn gōng fù qì",津关险塞:"jīn guān xiǎn sài",金吾不禁:"jīn wú bú jìn",金翅擘海:"jīn chì bāi hǎi",解衣衣人:"jiě yī yī rén",解人难得:"jiě rén nán dé",解铃系铃:"jiě líng xì líng",解发佯狂:"jiě fà yáng kuáng",诘屈磝碻:"jié qū áo qiāo",教猱升木:"jiāo náo shēng mù",较瘦量肥:"jiào shòu liàng féi",角立杰出:"jiǎo lì jié chū",焦沙烂石:"jiāo shā làn shí",骄儿騃女:"jiāo ér sì nǚ",浇风薄俗:"jiāo fēng bó sú",降妖捉怪:"xiáng yāo zhuō guài",将取固予:"jiāng qǔ gù yǔ",将门有将:"jiàng mén yǒu jiàng",将夺固与:"jiāng duó gù yǔ",槛花笼鹤:"jiàn huā lóng hè",鉴影度形:"jiàn yǐng duó xíng",渐不可长:"jiàn bù kě zhǎng",见素抱朴:"xiàn sù bào pǔ",见弃于人:"jiàn qì yú rén",简丝数米:"jiǎn sī shǔ mǐ",俭不中礼:"jiǎn bú zhòng lǐ",间见层出:"jiàn xiàn céng chū",尖嘴薄舌:"jiān zuǐ bó shé",甲冠天下:"jiǎ guàn tiān xià",葭莩之亲:"jiā fú zhī qīn",家累千金:"jiā lèi qiān jīn",家给人足:"jiā jǐ rén zú",家道从容:"jiā dào cóng róng",夹袋人物:"jiā dài rén wù",霁风朗月:"jì fēng lǎng yuè",寄兴寓情:"jì xìng yù qíng",计深虑远:"jì shēn lǜ yuǎn",计功量罪:"jì gōng liàng zuì",掎裳连襼:"jǐ shang lián yì",虮虱相吊:"jǐ shī xiāng diào",疾不可为:"jí bù kě wéi",极深研几:"jí shēn yán jī",及宾有鱼:"jí bīn yǒu yú",激薄停浇:"jī bó tíng jiāo",积素累旧:"jī sù lěi jiù",积时累日:"jī shí lěi rì",积露为波:"jī lù wéi bō",积德累功:"jī dé lěi gōng",积谗糜骨:"jī chán méi gǔ",击排冒没:"jī pái mào mò",祸为福先:"huò wéi fú xiān",祸福相依:"huò fú xiāng yī",获隽公车:"huò jùn gōng chē",混应滥应:"hùn yīng làn yīng",毁舟为杕:"huǐ zhōu wéi duò",毁钟为铎:"huǐ zhōng wéi duó",毁冠裂裳:"huǐ guān liè cháng",晦盲否塞:"huì máng pǐ sè",回船转舵:"huí chuán zhuàn duò",潢池盗弄:"huáng chí dào nòng",黄冠草履:"huáng guàn cǎo lǚ",黄发儿齿:"huáng fà ér chǐ",黄发垂髫:"huáng fà chuí tiáo",还珠返璧:"huán zhū fǎn bì",还年驻色:"huán nián zhù sè",还年却老:"huán nián què lǎo",坏裳为裤:"huài shang wéi kù",画荻和丸:"huà dí huò wán",化枭为鸠:"huà xiāo wéi jiū",化腐为奇:"huà fǔ wéi qí",化鸱为凤:"huà chī wéi fèng",花不棱登:"huā bu lēng dēng",户限为穿:"hù xiàn wéi chuān",呼卢喝雉:"hū lú hè zhì",呼来喝去:"hū lái hè qù",呼不给吸:"hū bù jǐ xī",厚味腊毒:"hòu wèi xī dú",厚德载物:"hòu dé zài wù",鸿渐于干:"hóng jiàn yú gàn",洪炉燎发:"hóng lú liáo fà",红绳系足:"hóng shéng jì zú",红不棱登:"hóng bu lēng dēng",横抢硬夺:"hèng qiǎng yìng duó",横恩滥赏:"hèng ēn làn shǎng",恨海难填:"hèn hǎi nán tián",鹤发鸡皮:"hè fà jī pí",涸思干虑:"hé sī gān lǜ",河涸海干:"hé hé hǎi gān",和颜说色:"hé yán yuè sè",合从连衡:"hé zòng lián héng",浩浩汤汤:"hào hào shāng shāng",好勇斗狠:"hào yǒng dòu hěn",好问则裕:"hào wèn zé yù",好为事端:"hào wéi shì duān",好问决疑:"hào wèn jué yí",好生之德:"hào shēng zhī dé",好奇尚异:"hǎo qí shàng yì",好恶不同:"hǎo è bù tóng",好丹非素:"hào dān fēi sù",豪干暴取:"háo gàn bào qǔ",毫发不爽:"háo fà bù shuǎng",寒酸落魄:"hán suān luò pò",含英咀华:"hán yīng jǔ huá",含糊不明:"hán hú bù míng",过为已甚:"guò wéi yǐ shèn",桂折兰摧:"guì shé lán cuī",规旋矩折:"guī xuán jǔ shé",广文先生:"guǎng wén xiān sheng",广陵散绝:"guǎng líng sǎn jué",冠山戴粒:"guàn shān dài lì",冠屦倒施:"guàn jù dǎo shī",挂席为门:"guà xí wéi mén",寡见鲜闻:"guǎ jiàn xiǎn wén",瓜葛相连:"guā gé xiāng lián",鼓吻奋爪:"gǔ wěn fèn zhǎo",古调单弹:"gǔ diào dān tán",古调不弹:"gǔ diào bù tán",姑射神人:"gū yè shén rén",苟合取容:"gǒu hé qǔ róng",狗续侯冠:"gǒu xù hòu guàn",钩爪锯牙:"gōu zhǎo jù yá",共枝别干:"gòng zhī bié gàn",共为唇齿:"gòng wéi chún chǐ",拱手而降:"gǒng shǒu ér xiáng",拱肩缩背:"gǒng jiān suō bèi",功薄蝉翼:"gōng bó chán yì",弓调马服:"gōng diào mǎ fú",更姓改物:"gēng xìng gǎi wù",更仆难数:"gēng pú nán shǔ",更令明号:"gēng lìng míng hào",更待干罢:"gèng dài gàn bà",更唱迭和:"gēng chàng dié hé",更长梦短:"gēng cháng mèng duǎn",各色名样:"gè sè míng yàng",格格不纳:"gé gé bú nà",格格不吐:"gé gé bù tǔ",告朔饩羊:"gù shuò xì yáng",膏车秣马:"gào chē mò mǎ",高义薄云:"gāo yì bó yún",岗头泽底:"gāng tóu zé dǐ",敢为敢做:"gǎn wéi gǎn zuò",甘分随时:"gān fèn suí shí",甘处下流:"gān chǔ xià liú",干啼湿哭:"gàn tí shī kū",干名犯义:"gàn míng fàn yì",干将莫邪:"gān jiāng mò yé",干城之将:"gān chéng zhī jiàng",腹载五车:"fù zài wǔ chē",父债子还:"fù zhài zǐ huán",父为子隐:"fù wéi zǐ yǐn",辅世长民:"fǔ shì zhǎng mín",福为祸始:"fú wéi huò shǐ",符号逻辑:"fú hào luó jí",浮收勒折:"fú shōu lè shé",肤受之愬:"fū shòu zhī sù",否终则泰:"pǐ zhōng zé tài",佛头著粪:"fó tóu zhuó fèn",奉为楷模:"fèng wéi kǎi mó",凤靡鸾吪:"fèng mǐ luán é",封豨修蛇:"fēng xī xiū shé",风影敷衍:"fēng yǐng fū yǎn",丰屋蔀家:"fēng wū bù jiā",粪土不如:"fèn tǔ bù rú",分风劈流:"fēn fēng pǐ liú",沸沸汤汤:"fèi fèi shāng shāng",菲食薄衣:"fěi shí bó yī",飞将数奇:"fēi jiàng shù qí",放辟邪侈:"fàng pì xié chǐ",方领圆冠:"fāng lǐng yuán guàn",犯而不校:"fàn ér bú jiào",返本还源:"fǎn běn huán yuán",反劳为逸:"fǎn láo wéi yì",法轮常转:"fǎ lún cháng zhuàn",罚不当罪:"fá bù dāng zuì",发引千钧:"fà yǐn qiān jūn",发奸擿伏:"fā jiān tī fú",发短心长:"fà duǎn xīn cháng",二竖为虐:"èr shù wéi nüè",儿女心肠:"ér nǚ xīn cháng",儿女亲家:"ér nǚ qìng jiā",遏恶扬善:"è wù yáng shàn",饿殍枕藉:"è piǎo zhěn jí",饿殍载道:"è piǎo zài dào",恶醉强酒:"wù zuì qiǎng jiǔ",恶意中伤:"è yì zhòng shāng",恶湿居下:"wù shī jū xià",恶居下流:"wù jū xià liú",恶不去善:"wù bú qù shàn",扼吭夺食:"è háng duó shí",扼襟控咽:"è jīn kòng yān",峨峨汤汤:"é é shāng shāng",屙金溺银:"ē jīn niào yín",朵颐大嚼:"duǒ yí dà jiáo",夺人所好:"duó rén suǒ hào",多言数穷:"duō yán shuò qióng",多文为富:"duō wén wéi fù",多端寡要:"duō duān guǎ yào",多财善贾:"duō cái shàn gǔ",遁世无闷:"dùn shì wú mèn",遁迹黄冠:"dùn jì huáng guàn",堆案盈几:"duī àn yíng jī",断还归宗:"duàn huán guī zōng",短见薄识:"duǎn jiàn bó shí",蠹居棊处:"dù jū qí chǔ",度己以绳:"duó jǐ yǐ shéng",杜默为诗:"dù mò wéi shī",杜鹃啼血:"dù juān tí xuè",笃近举远:"dǔ jìn jǔ yuǎn",独有千秋:"dú yǒu qiān qiū",读书得间:"dú shū dé jiàn",斗转参横:"dǒu zhuǎn shēn héng",兜肚连肠:"dōu dǔ lián cháng",洞见症结:"dòng jiàn zhèng jié",恫疑虚喝:"dòng yí xū hè",动中窾要:"dòng zhōng kuǎn yào",东鸣西应:"dōng míng xī yīng",东鳞西爪:"dōng lín xī zhǎo",东量西折:"dōng liàng xī shé",东家西舍:"dōng jiā xī shè",东扯西拽:"dōng chě xī zhuāi",鼎铛有耳:"dǐng chēng yǒu ěr",鼎铛玉石:"dǐng chēng yù shí",钉头磷磷:"dīng tóu lín lín",跌宕不羁:"diē dàng bù jī",跌弹斑鸠:"diē dàn bān jiū",雕心雁爪:"diāo xīn yàn zhǎo",颠倒衣裳:"diān dǎo yī cháng",德薄能鲜:"dé bó néng xiǎn",得马折足:"dé mǎ shé zú",蹈其覆辙:"dǎo qí fù zhé",捣虚撇抗:"dǎo xū piē kàng",倒载干戈:"dào zài gān gē",倒裳索领:"dào cháng suǒ lǐng",倒果为因:"dào guǒ wéi yīn",叨在知己:"tāo zài zhī jǐ",叨陪末座:"tāo péi mò zuò",党豺为虐:"dǎng chái wéi nüè",当轴处中:"dāng zhóu chǔ zhōng",当着不着:"dāng zhuó bù zhuó",当务始终:"dāng wù shǐ zhōng",淡汝浓抹:"dàn rǔ nóng mǒ",弹丸脱手:"tán wán tuō shǒu",弹铗无鱼:"dàn jiá wú yú",箪食瓢饮:"dān sì piáo yǐn",大璞不完:"dà pú bù wán",大明法度:"dà míng fǎ dù",大车以载:"dà chē yǐ zài",打闷葫芦:"dǎ mèn hú lu",沓来踵至:"tà lái zhǒng zhì",厝火燎原:"cuò huǒ liǎo yuán",撮科打哄:"cuō kē dǎ hòng",寸积铢累:"cùn jī zhū lěi",啛啛喳喳:"cuì cuì chā chā",摧折豪强:"cuī zhé háo qiáng",摧刚为柔:"cuī gāng wéi róu",从俗就简:"cóng sú jiù jiǎn",此发彼应:"cǐ fā bǐ yīng",此唱彼和:"cǐ chàng bǐ hè",慈悲为本:"cí bēi wéi běn",纯属骗局:"chún shǔ piàn jú",春笋怒发:"chūn sǔn nù fā",垂头搨翼:"chuí tóu tà yì",传为笑谈:"chuán wéi xiào tán",传风扇火:"chuán fēng shān huǒ",穿红着绿:"chuān hóng zhuó lǜ",触处机来:"chù chǔ jī lái",处尊居显:"chǔ zūn jū xiǎn",处堂燕雀:"chǔ táng yàn què",处实效功:"chǔ shí xiào gōng",处高临深:"chǔ gāo lín shēn",出入无间:"chū rù wú jiān",出门应辙:"chū mén yīng zhé",出处语默:"chū chǔ yǔ mò",出处殊途:"chū chǔ shū tú",出处进退:"chū chǔ jìn tuì",愁山闷海:"chóu shān mèn hǎi",冲冠眦裂:"chōng guàn zì liè",齿牙为祸:"chǐ yá wéi huò",尺二冤家:"chǐ èr yuān jia",尺短寸长:"chǐ duǎn cùn cháng",尺寸之功:"chǐ cùn zhī gōng",城北徐公:"chéng běi xú gōng",成败兴废:"chéng bài xīng fèi",趁水和泥:"chèn shuǐ huò ní",称雨道晴:"chēng yǔ dào qíng",称体载衣:"chēng tǐ zài yī",称体裁衣:"chèn tǐ cái yī",称家有无:"chèn jiā yǒu wú",称德度功:"chēng dé duó gōng",沉吟章句:"chén yín zhāng jù",沉吟不决:"chén yín bù jué",沉疴宿疾:"chén kē sù jí",扯纤拉烟:"chě qiàn lā yān",扯顺风旗:"chě shùn fēng qí",车载船装:"chē zǎi chuán zhuāng",朝升暮合:"zhāo shēng mù gě",朝攀暮折:"zhāo pān mù shé",超今冠古:"chāo jīn guàn gǔ",倡而不和:"chàng ér bú hè",畅所欲为:"chàng suǒ yù wéi",苌弘碧血:"cháng hóng bì xiě",长幼尊卑:"zhǎng yòu zūn bēi",长绳系日:"cháng shéng jì rì",长年三老:"zhǎng nián sān lǎo",长春不老:"cháng chūn bù lǎo",长傲饰非:"zhǎng ào shì fēi",昌亭旅食:"chāng tíng lǚ shí",禅絮沾泥:"chán xù zhān ní",差三错四:"chā sān cuò sì",层台累榭:"céng tái lěi xiè",层见迭出:"céng xiàn dié chū",藏踪蹑迹:"cáng zōng niè jì",苍蝇见血:"cāng yíng jiàn xiě",餐松啖柏:"cān sōng dàn bó",骖风驷霞:"cān fēng sì xiá",参伍错综:"cēn wǔ cuò zōng",参辰卯酉:"shēn chén mǎo yǒu",材优干济:"cái yōu gān jǐ",材薄质衰:"cái bó zhì shuāi",才大难用:"cái dà nán yòng",才薄智浅:"cái bó zhì qiǎn",不足为意:"bù zú wéi yì",不足为据:"bù zú wéi jù",不足为法:"bù zú wéi fǎ",不足齿数:"bù zú chǐ shǔ",不着疼热:"bù zhuó téng rè",不知薡蕫:"bù zhī dǐng dǒng",不越雷池:"bú yuè léi chí",不相为谋:"bù xiāng wéi móu",不贪为宝:"bù tān wéi bǎo",不了而了:"bù liǎo ér liǎo",不可揆度:"bù kě kuí duó",不遑启处:"bù huáng qǐ chǔ",不当不正:"bù dāng bú zhèng",不差什么:"bú chà shén me",不差累黍:"bù chā lěi shǔ",擘两分星:"bò liǎng fēn xīng",簸土扬沙:"bǒ tǔ yáng shā",薄物细故:"bó wù xì gù",薄寒中人:"bó hán zhòng rén",博文约礼:"bó wén yuē lǐ",播糠眯目:"bō kāng mí mù",剥皮抽筋:"bō pí chōu jīn",剥肤椎髓:"bō fū chuí suǐ",波属云委:"bō zhǔ yún wěi",波骇云属:"bō hài yún zhǔ",兵微将寡:"bīng wēi jiàng guǎ",兵强将勇:"bīng qiáng jiàng yǒng",兵多将广:"bīng duō jiàng guǎng",兵不由将:"bīng bù yóu jiàng",冰解的破:"bīng jiě dì pò",彬彬济济:"bīn bīn jǐ jǐ",摽梅之年:"biào méi zhī nián",表里为奸:"biǎo lǐ wéi jiān",飙发电举:"biāo fā diàn jǔ",变贪厉薄:"biàn tān lì bó",敝盖不弃:"bì gài bú qì",秕言谬说:"bǐ yán miù shuō",比物属事:"bǐ wù zhǔ shì",被山带河:"pī shān dài hé",被甲枕戈:"pī jiǎ zhěn gē",被甲据鞍:"pī jiǎ jù ān",被褐怀玉:"pī hè huái yù",被发缨冠:"pī fà yīng guàn",背曲腰躬:"bèi qǔ yāo gōng",北窗高卧:"běi chuāng gāo wò",北辰星拱:"běi chén xīng gǒng",北鄙之音:"běi bǐ zhī yīn",卑宫菲食:"bēi gōng fěi shí",暴衣露冠:"pù yī lù guàn",暴腮龙门:"pù sāi lóng mén",暴露文学:"bào lù wén xué",暴虎冯河:"bào hǔ píng hé",抱蔓摘瓜:"bào wàn zhāi guā",抱法处势:"bào fǎ chǔ shì",褒贬与夺:"bāo biǎn yǔ duó",帮闲钻懒:"bāng xián zuān lǎn",拜将封侯:"bài jiàng fēng hóu",百兽率舞:"bǎi shòu shuài wǔ",百孔千创:"bǎi kǒng qiān chuāng",白衣卿相:"bái yī qīng xiàng",白首为郎:"bái shǒu wéi láng",白首相知:"bái shǒu xiāng zhī",把玩无厌:"bǎ wán wú yàn",拔锅卷席:"bá guō juǎn xí",拔本塞源:"bá běn sè yuán",傲不可长:"ào bù kě zhǎng",熬更守夜:"áo gēng shǒu yè",安时处顺:"ān shí chǔ shùn",安身为乐:"ān shēn wéi lè",安老怀少:"ān lǎo huái shào",安步当车:"ān bù dàng chē",爱人好士:"ài rén hào shì",矮人观场:"ǎi rén guān chǎng",捱风缉缝:"ái fēng jī fèng",挨山塞海:"āi shān sè hǎi",阿家阿翁:"ā jiā ā wēng",阿党相为:"ē dǎng xiāng wéi",追亡逐北:"zhuī wáng zhú běi",竹篮打水:"zhú lán dá shuǐ",知疼着热:"zhī téng zháo rè",语不惊人:"yǔ bù jīng rén",于今为烈:"yú jīn wéi liè",一日三省:"yí rì sān xǐng",穴居野处:"xué jū yě chǔ",五脊六兽:"wǔ jǐ liù shòu",无声无臭:"wú shēng wú xiù",谓予不信:"wèi yú bú xìn",舍身为国:"shě shēn wéi guó",杀妻求将:"shā qī qiú jiàng",强作解人:"qiǎng zuò jiě rén",气冲斗牛:"qì chōng dǒu niú",临深履薄:"lín shēn lǚ bó",钧天广乐:"jūn tiān guǎng yuè",艰难竭蹶:"jiān nán jié jué",夹七夹八:"jiā qī jiā bā",混混噩噩:"hún hún è è",厚古薄今:"hòu gǔ bó jīn",鬼怕恶人:"guǐ pà è rén",伽马射线:"gā mǎ shè xiàn",佛头着粪:"fó tóu zhuó fèn",奉为至宝:"fèng wéi zhì bǎo",登坛拜将:"dēng tán bài jiàng",晨昏定省:"chén hūn dìng xǐng",察察为明:"chá chá wéi míng",博闻强识:"bó wén qiáng zhì",避难就易:"bì nán jiù yì",了无生机:"liǎo wú shēng jī",有一说一:"yǒu yī shuō yī",独一无二:"dú yī wú èr",说一不二:"shuō yī bù èr",举一反三:"jǔ yī fǎn sān",数一数二:"shǔ yī shǔ èr",杀一儆百:"shā yī jǐng bǎi",丁一卯二:"dīng yī mǎo èr",丁一确二:"dīng yī què èr",不一而止:"bù yī ér zhǐ",无一幸免:"wú yī xìng miǎn",表里不一:"biǎo lǐ bù yī",良莠不一:"liáng yǒu bù yī",心口不一:"xīn kǒu bù yī",言行不一:"yán xíng bù yī",政令不一:"zhèng lìng bù yī",参差不一:"cēn cī bù yī",纷纷不一:"fēn fēn bù yī",毁誉不一:"huǐ yù bù yī",不一而三:"bù yī ér sān",百不一遇:"bǎi bù yī yù",言行抱一:"yán xíng bào yī",瑜百瑕一:"yú bǎi xiá yī",背城借一:"bèi chéng jiè yī",凭城借一:"píng chéng jiè yī",劝百讽一:"quàn bǎi fěng yī",群居和一:"qún jū hé yī",百不获一:"bǎi bù huò yī",百不失一:"bǎi bù shī yī",百无失一:"bǎi wú shī yī",万不失一:"wàn bù shī yī",万无失一:"wàn wú shī yī",合而为一:"hé ér wéi yī",合两为一:"hé liǎng wéi yī",合二为一:"hé èr wéi yī",天下为一:"tiān xià wéi yī",相与为一:"xiāng yǔ wéi yī",较若画一:"jiào ruò huà yī",较如画一:"jiào rú huà yī",斠若画一:"jiào ruò huà yī",言行若一:"yán xíng ruò yī",始终若一:"shǐ zhōng ruò yī",终始若一:"zhōng shǐ ruò yī",惟精惟一:"wéi jīng wéi yī",众多非一:"zhòng duō fēi yī",不能赞一:"bù néng zàn yī",问一答十:"wèn yī dá shí",一不扭众:"yī bù niǔ zhòng",一以贯之:"yī yǐ guàn zhī",一以当百:"yī yǐ dāng bǎi",百不当一:"bǎi bù dāng yī",十不当一:"shí bù dāng yī",以一警百:"yǐ yī jǐng bǎi",以一奉百:"yǐ yī fèng bǎi",以一持万:"yǐ yī chí wàn",以一知万:"yǐ yī zhī wàn",百里挑一:"bǎi lǐ tiāo yī",整齐划一:"zhěng qí huà yī",一来二去:"yī lái èr qù",一路公交:"yī lù gōng jiāo",一路汽车:"yī lù qì chē",一路巴士:"yī lù bā shì",朝朝朝落:"zhāo cháo zhāo luò",曲意逢迎:"qū yì féng yíng",一行不行:"yì háng bù xíng",行行不行:"háng háng bù xíng"},Cue=Object.keys(e_).map(e=>({zh:e,pinyin:e_[e],probability:2e-8,length:4,priority:yl.Normal,dict:Symbol("dict4")})),t_={巴尔干半岛:"bā ěr gàn bàn dǎo",巴尔喀什湖:"bā ěr kā shí hú",不幸而言中:"bú xìng ér yán zhòng",布尔什维克:"bù ěr shí wéi kè",何乐而不为:"hé lè ér bù wéi",苛政猛于虎:"kē zhèng měng yú hǔ",蒙得维的亚:"méng dé wéi dì yà",民以食为天:"mín yǐ shí wéi tiān",事后诸葛亮:"shì hòu zhū gě liàng",物以稀为贵:"wù yǐ xī wéi guì",先下手为强:"xiān xià shǒu wéi qiáng",行行出状元:"háng háng chū zhuàng yuan",亚得里亚海:"yà dé lǐ yà hǎi",眼不见为净:"yǎn bú jiàn wéi jìng",竹筒倒豆子:"zhú tǒng dào dòu zi"},wue=Object.keys(t_).map(e=>({zh:e,pinyin:t_[e],probability:2e-8,length:5,priority:yl.Normal,dict:Symbol("dict5")}));function n_(e,t){return e&&(e.decimalt.probability)?e:t}function i_(e){e.probability<1e-300&&(e.probability*=1e300,e.decimal+=1)}function xue(e){return e.priority===yl.Custom?-(e.length*e.length*100):e.priority===yl.Surname?-(e.length*e.length*10):0}function Sue(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{probability:1,decimal:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={probability:o.probability*r.probability,decimal:r.decimal+xue(o),patterns:r.patterns,concatPattern:o};i_(u),n[a]=n_(n[a],u),o=e[--i]}const l={probability:1e-13*r.probability,decimal:0,patterns:r.patterns};i_(l),n[s]=n_(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function o_(e,t){return e&&e.count<=t.count?e:t}function _ue(e){return e.priority===yl.Custom?-(e.length*e.length*1e5):e.priority===yl.Surname?-(e.length*e.length*100):1}function Mue(e,t){const n=[];let i=e.length-1,o=e[i];for(let s=t-1;s>=0;s--){const r=s+1>=t?{count:0,patterns:[]}:n[s+1];for(;o&&o.index+o.length-1===s;){const a=o.index,u={count:_ue(o)+r.count,patterns:r.patterns,concatPattern:o};n[a]=o_(n[a],u),o=e[--i]}const l={count:1+r.count,patterns:r.patterns};n[s]=o_(n[s],l),n[s].concatPattern&&(n[s].patterns=n[s].patterns.concat(n[s].concatPattern),n[s].concatPattern=void 0,delete n[s+1])}return n[0].patterns.reverse()}function Iue(e,t){return!(t.index+t.length<=e.index||t.priority>e.priority||t.priority===e.priority&&t.length>e.length)}function Eue(e){const t=[];for(let n=e.length-1;n>=0;){const{index:i}=e[n];let o=n-1;for(;o>=0&&Iue(e[n],e[o]);)o--;(o<0||e[o].index+e[o].length<=i)&&t.push(e[n]),n=o}return t.reverse()}var s_;(function(e){e[e.ReverseMaxMatch=1]="ReverseMaxMatch",e[e.MaxProbability=2]="MaxProbability",e[e.MinTokenization=3]="MinTokenization"})(s_||(s_={}));class r_{constructor(t,n="",i=""){this.children=new Map,this.fail=null,this.patterns=[],this.parent=t,this.prefix=n,this.key=i}}class Tue{constructor(){this.dictMap=new Map,this.queues=[],this.root=new r_(null)}build(t){this.buildTrie(t),this.buildFailPointer()}buildTrie(t){for(let n of t){const i=n8(n.zh);let o=this.root;for(let s=0;s{t=t.concat(i)}),this.queues=[];t.length>n;){let i=t[n++],o=i.parent&&i.parent.fail,s=i.key;for(;o&&!o.children.has(s);)o=o.fail;o?i.fail=o.children.get(s):i.fail=this.root}}addPatternToDictMap(t){this.dictMap.has(t.dict)||this.dictMap.set(t.dict,new Set),this.dictMap.get(t.dict).add(t)}addNodeToQueues(t){this.queues[ta(t.prefix)]||(this.queues[ta(t.prefix)]=[]),this.queues[ta(t.prefix)].push(t)}insertPattern(t,n){for(let i=t.length-1;i>=0;i--){const o=t[i];if(n.priority===o.priority&&n.probability>=o.probability)t[i+1]=o;else if(n.priority>o.priority)t[i+1]=o;else{t[i+1]=n;return}}t[0]=n}removeDict(t){this.dictMap.has(t)&&(this.dictMap.get(t).forEach(i=>{i.node.patterns=i.node.patterns.filter(o=>o!==i)}),this.dictMap.delete(t))}match(t,n){let i=this.root,o=[];const s=n8(t);for(let r=0;rn==="off"?c.priority!==yl.Surname:n==="head"?c.length-1-r===0:!0);a&&o.push(Object.assign(Object.assign({},a),{index:r-a.length+1}));let u=i.fail;for(;u!==null;){const c=u.patterns.find(d=>n==="off"?d.priority!==yl.Surname:n==="head"?d.length-1-r===0:!0);c&&o.push(Object.assign(Object.assign({},c),{index:r-c.length+1})),u=u.fail}}}return o}search(t,n,i=2){const o=this.match(t,n);return i===1?Eue(o):i===3?Mue(o,ta(t)):Sue(o,ta(t))}}const Lue=[...wue,...Cue,...Aue,...bue,...mue,...kue],s$=new Tue;s$.build(Lue);const Nue=new i$,Fue=()=>Nue,Due=[];function Bue(){return Due}const gp=e=>{const t=_c.get(e);return t?t.split(" ")[0]:e},$ue=e=>{const t=[],n=Bue();for(let i=0;i{const s=o?$ue(e):e,r=s$.search(s,n,i);let l=0;const a=n8(e);for(let u=0;ue.replace(/(ā|á|ǎ|à)/g,"a").replace(/(ō|ó|ǒ|ò)/g,"o").replace(/(ē|é|ě|è)/g,"e").replace(/(ī|í|ǐ|ì)/g,"i").replace(/(ū|ú|ǔ|ù)/g,"u").replace(/(ǖ|ǘ|ǚ|ǜ)/g,"ü").replace(/(n̄|ń|ň|ǹ)/g,"n").replace(/(m̄|ḿ|m̌|m̀)/g,"m").replace(/(ê̄|ế|ê̌|ề)/g,"ê"),r$=(e,t="off")=>{const n=Fue();let i=_c.get(e)?_c.get(e).split(" "):[];if(n.get(e))i=n.get(e).split(" ");else if(t!=="off"){const o=i8[e];o&&(i=[o].concat(i.filter(s=>s!==o)))}return i},zue=(e,t="off")=>{let n=r$(e,t);return n.length>0?n.map(i=>({origin:e,result:i,isZh:!0,originPinyin:i})):[{origin:e,result:e,isZh:!1,originPinyin:e}]},_2=(e,t)=>{const n=e.split(" "),i=[],o=[];for(let s of n)for(let r of cue)if(s.startsWith(r)){let l=s.slice(r.length);due.indexOf(r)!==-1&&fue.indexOf(l)!==-1&&(l=hue[l]),i.push(r),o.push(l);break}return t==="standard"&&i.forEach((s,r)=>{(s==="y"||s==="w")&&(i[r]="")}),{final:o.join(" "),initial:i.join(" ")}},wv=e=>{const{final:t}=_2(e);let n="",i="",o="";return pue.indexOf(f9(t))!==-1?(n=t[0],i=t[1],o=t.slice(2)):(i=t[0]||"",o=t.slice(1)||""),{head:n,body:i,tail:o}},h9=e=>{const t=/(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/,n=/(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/,i=/(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/,o=/(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/,s=/(a|o|e|i|u|ü|ê)/,r=/(n|m)$/,l=[];return e.split(" ").forEach(u=>{t.test(u)?l.push("1"):n.test(u)?l.push("2"):i.test(u)?l.push("3"):o.test(u)?l.push("4"):s.test(u)||r.test(u)?l.push("0"):l.push("")}),l.join(" ")},Oue=(e,t)=>{const n=f9(e).split(" "),i=h9(t).split(" "),o=[];return n.forEach((s,r)=>{o.push(`${s}${i[r]}`)}),o.join(" ")},l$=(e,t)=>{const n=[];return e.split(" ").forEach(o=>{n.push(t?o[0]:o)}),n.join(" ")};function Pue(e,t,n){if(yue.indexOf(e)===-1)return gp(e);if(t===n&&t&&gp(t)!==t)return f9(gp(e));if(n&&!vue[e].includes(n)){const i=gp(n);if(i!==n){const o=h9(i),s=o$[e];for(let r in s)if(s[r].indexOf(Number(o))!==-1)return r}}}function jue(e,t){if(e==="了"&&(!t||!_c.get(t)))return"liǎo"}function Hue(e,t){if(e==="々")return!t||!_c.get(t)?"tóng":_c.get(t).split(" ")[0]}function l_(e,t,n){return Hue(e,t)||jue(e,t)||Pue(e,t,n)||gp(e)}const Wue=e=>typeof e!="string"?(console.error("The first param of pinyin is error: "+e+' is not assignable to type "string".'),!1):!0;function m3(e,t){return t instanceof RegExp?t.test(e):!0}const que=(e,t)=>{let n=t.nonZh;if(n==="removed")return e.filter(i=>i.isZh||!m3(i.origin,t.nonZhScope));if(n==="consecutive"){for(let i=e.length-2;i>=0;i--){const o=e[i],s=e[i+1];!o.isZh&&!s.isZh&&m3(o.origin,t.nonZhScope)&&m3(s.origin,t.nonZhScope)&&(o.origin+=s.origin,o.result+=s.result,s.delete=!0)}return e.filter(i=>!i.delete)}else return e},a_=(e,t)=>ta(e)===1&&t.multiple?zue(e,t.surname):!1,Uue=(e,t)=>{switch(t.pattern){case"pinyin":break;case"num":e.forEach(n=>{n.result=n.isZh?h9(n.result):""});break;case"initial":e.forEach(n=>{n.result=n.isZh?_2(n.result,t.initialPattern).initial:""});break;case"final":e.forEach(n=>{n.result=n.isZh?_2(n.result,t.initialPattern).final:""});break;case"first":e.forEach(n=>{n.result=l$(n.result,n.isZh)});break;case"finalHead":e.forEach(n=>{n.result=n.isZh?wv(n.result).head:""});break;case"finalBody":e.forEach(n=>{n.result=n.isZh?wv(n.result).body:""});break;case"finalTail":e.forEach(n=>{n.result=n.isZh?wv(n.result).tail:""});break}},Kue=(e,t)=>{switch(t.toneType){case"symbol":break;case"none":e.forEach(n=>{n.isZh&&(n.result=f9(n.result))});break;case"num":{e.forEach(n=>{n.isZh&&(n.result=Oue(n.result,n.originPinyin))});break}}},Vue=(e,t)=>{t.v&&e.forEach(n=>{n.isZh&&(n.result=n.result.replace(/ü/g,typeof t.v=="string"?t.v:"v"))})},Zue=(e,t,n)=>{if(t.multiple&&ta(n)===1){let i="";e=e.filter(o=>{const s=o.result!==i;return i=o.result,s})}return t.type==="array"?e.map(i=>i.result):t.type==="all"?e.map(i=>{const o=i.isZh?i.result:"",{initial:s,final:r}=_2(o,t.initialPattern),{head:l,body:a,tail:u}=wv(o);let c=[];return o!==""&&(c=[o].concat(r$(i.origin,t.surname).filter(d=>d!==o))),{origin:i.origin,pinyin:o,initial:s,final:r,first:l$(i.result,i.isZh),finalHead:l,finalBody:a,finalTail:u,num:Number(h9(i.originPinyin)),isZh:i.isZh,polyphonic:c,inZhRange:!!_c.get(i.origin),result:i.result}}):e.map(i=>i.result).join(t.separator)},Gue=(e,t)=>(t===!1&&e.forEach(n=>{n.origin==="一"?n.result=n.originPinyin="yī":n.origin==="不"&&(n.result=n.originPinyin="bù")}),e),Que={pattern:"pinyin",toneType:"symbol",type:"string",multiple:!1,mode:"normal",removeNonZh:!1,nonZh:"spaced",v:!1,separator:" ",toneSandhi:!0,segmentit:2};function M2(e,t){if(t=Object.assign(Object.assign({},Que),t||{}),!Wue(e))return e;if(e==="")return t.type==="array"||t.type==="all"?[]:"";t.surname===void 0&&(t.mode==="surname"?t.surname="all":t.surname="off"),t.type==="all"&&(t.pattern="pinyin"),t.pattern==="num"&&(t.toneType="none"),t.removeNonZh&&(t.nonZh="removed");let i=Array(ta(e)),{list:o}=Rue(e,i,t.surname,t.segmentit,t.traditional);return o=Gue(o,t.toneSandhi),o=que(o,t),a_(e,t)&&(o=a_(e,t)),Uue(o,t),Kue(o,t),Vue(o,t),Zue(o,t,e)}var o8;(function(e){e[e.AllSegment=1]="AllSegment",e[e.AllArray=2]="AllArray",e[e.AllString=3]="AllString",e[e.PinyinSegment=4]="PinyinSegment",e[e.PinyinArray=5]="PinyinArray",e[e.PinyinString=6]="PinyinString",e[e.ZhSegment=7]="ZhSegment",e[e.ZhArray=8]="ZhArray",e[e.ZhString=9]="ZhString"})(o8||(o8={}));o8.AllSegment;const a$=[{name:"/new",desc:"commands.new.desc"},{name:"/clear",desc:"commands.clear.desc"},{name:"/login",desc:"commands.login.desc"},{name:"/plan",desc:"commands.plan.desc"},{name:"/swarm",desc:"commands.swarm.desc"},{name:"/goal",desc:"commands.goal.desc"},{name:"/btw",desc:"commands.btw.desc",acceptsInput:!0},{name:"/compact",desc:"commands.compact.desc",acceptsInput:!0},{name:"/undo",desc:"commands.undo.desc"},{name:"/fork",desc:"commands.fork.desc"},{name:"/export",desc:"commands.export.desc"},{name:"/status",desc:"commands.status.desc"}];function Yue(e){if(!e.startsWith("/"))return null;const t=e.indexOf(" ");return t===-1?{cmd:e,arg:""}:{cmd:e.slice(0,t),arg:e.slice(t+1)}}const Zd="skill:";function Jue(e,t){const n=e.find(r=>r.name===t);if(n!==void 0)return n;const i=`/${Zd}${t.slice(1)}`,o=e.find(r=>r.name===i);if(o!==void 0)return o;if(!t.startsWith(`/${Zd}`))return;const s=t.slice(1+Zd.length);if(!(s.length===0||s.includes(" ")))return e.find(r=>r.isSkill===!0&&u$(r.name)===s)}function u$(e){const t=e.startsWith("/")?e.slice(1):e;return t.startsWith(Zd)?t.slice(Zd.length):t}function c$(e=[]){const t=e.map(n=>({name:n.source==="builtin"?`/${n.name}`:`/${Zd}${n.name}`,desc:n.description,isSkill:!0,acceptsInput:!0}));return[...a$,...t]}const u_=new Map;function d$(e){let t=u_.get(e);if(!t){const n=M2(e,{toneType:"none",type:"array"}),i=M2(e,{pattern:"first",toneType:"none",type:"array"});t=Xue(e,n,i),u_.set(e,t)}return t}const c_={full:[],first:[],offsets:[],literal:[]};function Xue(e,t,n){if(t.length!==n.length)return c_;const i=[],o=[];let s=0;for(let r=0;r0&&e.slice(s,s+l.length).toLowerCase()===l.toLowerCase()?(o.push(!0),s+=l.length):(o.push(!1),s+=Array.from(e.slice(s))[0]?.length??0)}return i.push(s),s!==e.length?c_:{full:t,first:n,offsets:i,literal:o}}function s8(e,t,n,i){const o=e[t];let s=0,r=-1,l=-1,a=0,u=0;for(let h=0;h=0)return s8(i,"first",o,o+t.length);const s=i.full.join("").indexOf(t);if(!(s<0))return s8(i,"full",s,s+t.length)}function oce(e,t,n){const i=e.trim().replace(/^\//,"").toLowerCase();if(i==="")return{};const o=nce(t,i),s=ice(n,i);return{name:o?[o]:void 0,desc:s?[s]:void 0}}const sce={keys:[{name:"name",weight:3},{name:"desc",weight:1},{name:"pinyinFull",weight:1},{name:"pinyinFirst",weight:1}],includeScore:!0,includeMatches:!0,ignoreLocation:!0,threshold:.4};function rce(e,t){const n=e.toLowerCase(),i=t.toLowerCase();return n===i?0:n.startsWith(i)?1:2}function f_(e){const t=[...e].sort((i,o)=>i[0]-o[0]),n=[];for(const i of t){const o=n[n.length-1];o&&i[0]<=o[1]?o[1]=Math.max(o[1],i[1]):n.push([...i])}return n}function lce(e,t){const n=[],i=[];for(const o of t??[])for(const[s,r]of o.indices)if(o.key==="name")n.push([s+1,r+2]);else if(o.key==="desc")i.push([s,r+1]);else if(o.key==="pinyinFirst"||o.key==="pinyinFull"){const l=s8(d$(e.desc),o.key==="pinyinFirst"?"first":"full",s,r+1);l&&i.push(l)}return{name:n.length>0?f_(n):void 0,desc:i.length>0?f_(i):void 0}}function ace(e,t=a$,n=i=>i.desc){const i=e.trim().replace(/^\//,"");if(i==="")return t.map(s=>({item:s,ranges:{}}));const o=t.map((s,r)=>{const l=n(s),a=ece(l);return{index:r,item:s,name:s.name.replace(/^\//,""),desc:l,pinyinFull:a.full,pinyinFirst:a.first}});return new rue(o,sce).search(i).map(({item:s,score:r,matches:l})=>({doc:s,score:r??1,rank:rce(s.name,i),ranges:lce(s,l)})).sort((s,r)=>s.rank!==r.rank?s.rank-r.rank:s.score!==r.score?s.score-r.score:s.doc.index-r.doc.index).map(({doc:s,ranges:r})=>({item:s.item,ranges:r}))}function uce(e,t){if(t.length===0||e.length===0)return t;const n=Date.parse(t[0].createdAt);if(Number.isNaN(n))return t;const i=new Set(t.map(r=>r.id)),o=new Set(t.flatMap(r=>r.role==="user"&&r.promptId!==void 0?[r.promptId]:[])),s=e.filter(r=>{const l=Date.parse(r.createdAt);return!(Number.isNaN(l)||l>=n||i.has(r.id)||r.role==="user"&&(r.userMessageId!==void 0&&i.has(r.userMessageId)||r.promptId!==void 0&&o.has(r.promptId)))});return s.length>0?[...s,...t]:t}function cce(e){const t=new Map,n=new Set;function i(s){const r=t.get(s);if(r!==void 0)return r;const l=(async()=>e(s))().finally(()=>{t.delete(s),n.delete(s)&&i(s)});return t.set(s,l),l}function o(s){if(t.has(s)){n.add(s);return}i(s)}return{run:i,request:o}}const un={permission:"kimi-web.permission",activeWorkspace:"kimi-active-workspace",planArmed:"kimi-web.plan-armed",swarmMode:"kimi-web.swarm-mode",goalMode:"kimi-web.goal-mode",fontScale:"kimi-web.font-scale",starredModels:"kimi-web.starred-models",unread:"kimi-web.unread",onboarded:"kimi-web.onboarded",colorScheme:"kimi-web.color-scheme",hiddenWorkspaces:"kimi-web.hidden-workspaces",collapsedWorkspaces:"kimi-web.collapsed-workspaces",workspaceOrder:"kimi-web.workspace-order",workspaceSort:"kimi-web.workspace-sort",workspaceRecencyFloor:"kimi-web.workspace-recency-floor",pinnedSessions:"kimi-web.pinned-sessions",pinnedCollapsed:"kimi-web.pinned-collapsed",workspaceNameOverrides:"kimi-web.workspace-name-overrides",notifyEnabled:"kimi-web.notify-enabled",notifySound:"kimi-web.notify-sound",inputHistory:"kimi-web.input-history",locale:"kimi-locale",clientId:"kimi-web.client-id",debug:"kimi-web.debug",openInDefaultTarget:"kimi-web.open-in.default-target",openInLastTarget:"kimi-web.open-in.last-target",sidebarCollapsed:"kimi-web.sidebar-collapsed",sidebarWidth:"kimi-web.sidebar-width",sidebarViewMode:"kimi-web.sidebar-view-mode",mobileSwitcherViewMode:"kimi-web.mobile-switcher-view-mode",sidebarPinnedHeight:"kimi-web.sidebar-pinned-height",shortcutOverrides:"kimi-web.shortcut-overrides",dockIconChoice:"kimi-web.dock-icon-choice",updateSkippedVersion:"kimi-web.update-skipped-version",planMode:"kimi-web.plan-mode",codeFont:"kimi-web.code-font",contentAlign:"kimi-web.content-align",theme:"kimi-web.theme",thinking:"kimi-web.thinking",accent:"kimi-web.accent",notifyOnComplete:"kimi-web.notify-on-complete",notifyOnQuestion:"kimi-web.notify-on-question",notifyOnApproval:"kimi-web.notify-on-approval",soundOnComplete:"kimi-web.sound-on-complete"};function h_(e){return`kimi-web.draft.${e&&e.length>0?e:"__new__"}`}function p_(e){return`kimi-web.attachment-draft.${e&&e.length>0?e:"__new__"}`}function gs(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function is(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function _r(e){try{globalThis.localStorage.removeItem(e)}catch{}}function Kc(e){const t=gs(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}function Lu(e,t){try{globalThis.localStorage.setItem(e,JSON.stringify(t))}catch{}}function $6(){const e=gs(un.unread);if(!e)return{};try{const t=JSON.parse(e);if(!t||typeof t!="object")return{};const n={};for(const[i,o]of Object.entries(t))o===!0&&(n[i]=!0);return n}catch{return{}}}function R6(e){const n={...$6()};for(const[i,o]of Object.entries(e))o?n[i]=!0:delete n[i];is(un.unread,JSON.stringify(n))}function dce(){const e=Kc(un.collapsedWorkspaces);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function v3(e){Lu(un.collapsedWorkspaces,Array.from(e))}function fce(){return Kc(un.pinnedCollapsed)===!0}function r8(e){Lu(un.pinnedCollapsed,e)}function hce(){return gs(un.sidebarViewMode)==="flat"?"flat":"grouped"}function pce(e){is(un.sidebarViewMode,e)}function gce(){return gs(un.mobileSwitcherViewMode)==="grouped"?"grouped":"flat"}function mce(e){is(un.mobileSwitcherViewMode,e)}function vce(){const e=Kc(un.workspaceOrder);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function h$(e){Lu(un.workspaceOrder,Array.from(e))}function yce(){return gs(un.workspaceSort)==="recent"?"recent":"manual"}function kce(e){is(un.workspaceSort,e)}function bce(){const e=Kc(un.workspaceRecencyFloor);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="number"&&Number.isFinite(i)&&(t[n]=i);return t}function p$(e){Lu(un.workspaceRecencyFloor,e)}function g$(){const e=Kc(un.pinnedSessions);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function y3(e){Lu(un.pinnedSessions,Array.from(e))}function Im(){const e=Kc(un.workspaceNameOverrides);if(!e||typeof e!="object")return{};const t={};for(const[n,i]of Object.entries(e))typeof i=="string"&&(t[n]=i);return t}function g_(e){Lu(un.workspaceNameOverrides,e)}function Ace(e,t,n,i,o){const s=n-o-(t.right+i),r=t.left-i-o,l=e>s&&r>s,a=Math.min(e,l?r:s);return{left:l?t.left-i-a:t.right+i,maxWidth:a,flipped:l}}function m_(e,t){const n=new Set(e.map(u=>u.id)),i=t.filter(u=>u.kind==="subagent"&&!n.has(u.id));if(i.length===0)return e;const o=new Map(e.map(u=>[u.id,u])),s=new Map(e.filter(u=>u.kind==="subagent"&&u.agentId!==void 0).map(u=>[u.agentId,u])),r=new Set,l=i.map(u=>{const c=(u.backgroundTaskId!==void 0?o.get(u.backgroundTaskId):void 0)??s.get(u.agentId??u.id);if(c===void 0)return u;r.add(c.id);const d=u.status==="running"&&c.status!=="running";return{...u,status:u.status==="running"?c.status:u.status,subagentPhase:d?c.status==="completed"?"completed":"failed":u.subagentPhase,completedAt:c.completedAt??u.completedAt,completedAtEstimated:c.completedAt!==void 0?void 0:u.completedAtEstimated,outputPreview:c.outputPreview??u.outputPreview,outputBytes:c.outputBytes??u.outputBytes,model:u.model??c.model,thinkingEffort:u.thinkingEffort??c.thinkingEffort}});return[...e.filter(u=>!r.has(u.id)),...l]}function Cce(e,t){if(e.length===0)return t;const n=new Map(t.map(r=>[r.id,r])),i=new Set(e.map(r=>r.id)),o=e.map(r=>{const l=n.get(r.id);if(!l)return r;const a=r.completedAt===void 0&&l.completedAt===void 0&&l.status==="running"&&r.status!=="running";return{...r,outputLines:l.outputLines,text:l.text,completedAt:r.completedAt??l.completedAt??(a?new Date().toISOString():void 0),completedAtEstimated:r.completedAt!==void 0?void 0:l.completedAt!==void 0?l.completedAtEstimated:a?!0:void 0,model:r.model??l.model,thinkingEffort:r.thinkingEffort??l.thinkingEffort}}),s=t.filter(r=>!i.has(r.id));return s.length===0?o:[...o,...s]}function wce(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const e=navigator.userAgentData;return e?.platform==="macOS"||e?.platform==="iOS"}function xce(e,t=wce()){return(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.code==="KeyF"||e.key.toLowerCase()==="f")&&!e.defaultPrevented}const Sce=new Map([["ς","σ"],["ß","ss"],["ſ","s"],["ff","ff"],["fi","fi"],["fl","fl"],["ffi","ffi"],["ffl","ffl"],["ſt","st"],["st","st"],["ʼn","ʼn"],["µ","μ"],["K","k"],["Å","å"],["Ω","ω"]]);function _ce(e){return e==="pre"||e==="pre-wrap"||e==="break-spaces"?"preserve":e==="pre-line"?"pre-line":"collapse"}function Mce(e,t){if(t==="preserve")return{text:e,map:Array.from({length:e.length},(r,l)=>l)};const n=t==="collapse"?/[\t\n\f\r ]/:/[\t ]/;let i="";const o=[];let s=!1;for(let r=0;rv_(c.text)),i="\0";let o="";const s=[];for(let c=0;c0&&e[c].gapBefore&&(o+=i),s[c]=o.length,o+=n[c].folded;const r=Tce(v_(t).folded);if(r===null)return;const l=new RegExp(r,"g");function a(c){let d=0,h=s.length-1,p=0;for(;d<=h;){const g=d+h>>1;s[g]<=c?(p=g,d=g+1):h=g-1}return p}let u;for(;;){const c=l.exec(o);if(c===null)return;const d=c.index,h=d+c[0].length-1,p=a(d),g=a(h),m=n[p].map[d-s[p]],k=n[g].map[h-s[g]],w={startSeg:p,startOffset:m.start,endSeg:g,endOffset:k.start+k.length};u!==void 0&&u.startSeg===w.startSeg&&u.startOffset===w.startOffset&&u.endSeg===w.endSeg&&u.endOffset===w.endOffset||(u=w,yield w)}}const Ece=/[.*+?^${}()|[\]\\]/g;function Tce(e){const t=[];let n=0;for(;n=Bce)return{ranges:a,truncated:!0};a.push(h)}}return{ranges:a,truncated:!1}}const m$="kimi-transcript-search",l8="kimi-transcript-search-current";function v$(){return globalThis.CSS?.highlights??null}function k3(e,t){const n=v$(),i=globalThis.Highlight;if(!n||!i)return;if(e.length===0){a8();return}const o=new i;for(const r of e)o.add(r);n.set(m$,o);const s=e[t];if(s!==void 0){const r=new i;r.add(s),n.set(l8,r)}else n.delete(l8)}function a8(){const e=v$();e?.delete(m$),e?.delete(l8)}let y$=null;function Rce(e){e!==null&&(y$=e)}let k_=0,Em=null;async function u8(e){const t=++k_,n=(async()=>{const o=await e();t===k_&&Rce(o)})(),i=(async()=>{await n,Em!==null&&Em.seq>t&&await Em.promise})();return Em={seq:t,promise:i},i}let k$=null;function zce(e){k$=e}const Oce=5e3;function Pce(e){return Promise.race([e(),new Promise(t=>{setTimeout(()=>t(null),Oce)})])}function Tm(){return`${y$==="global"?"https://www.kimi.ai":"https://www.kimi.com"}/code?from=${bf?"kimi_code_desktop":"kimi_code_web"}`}function sg(){const e=k$;if(e===null){window.open(Tm(),"_blank","noopener");return}const t=()=>Pce(e);if(bf){u8(t).then(()=>{window.open(Tm(),"_blank","noopener")});return}const n=window.open("","_blank");if(n===null){window.open(Tm(),"_blank","noopener");return}try{n.opener=null}catch{}u8(t).then(()=>{try{n.location.href=Tm()}catch{}})}function jce(e,t,n){if(e.length===0)return null;const i=new Set(e),o=t.filter(r=>i.has(r)),s=e.filter(r=>!t.includes(r));return s.length===0&&o.length===t.length?null:t.length===0&&n!==void 0?s.toSorted((r,l)=>(n.get(l)??Number.NEGATIVE_INFINITY)-(n.get(r)??Number.NEGATIVE_INFINITY)):[...s,...o]}function Hce(e,t){const n=new Map(t.map((i,o)=>[i,o]));return e.toSorted((i,o)=>(n.get(i.id)??-1)-(n.get(o.id)??-1))}function Wce(e,t,n,i="before"){const o=e.indexOf(t),s=e.indexOf(n);if(o===-1||s===-1||o===s)return e;const r=[...e];r.splice(o,1);const l=o(t.get(i.id)??Number.NEGATIVE_INFINITY)-(t.get(n.id)??Number.NEGATIVE_INFINITY))}function Uce(e,t){let n=!1;const i={...e};for(const[o,s]of t)s>(i[o]??Number.NEGATIVE_INFINITY)&&(i[o]=s,n=!0);return{next:i,changed:n}}function Kce(e,t){const n=new Map;for(const i of e){if(i.parentSessionId||i.archived)continue;const o=new Date(i.updatedAt).getTime();if(Number.isNaN(o))continue;const s=t(i);o>(n.get(s)??Number.NEGATIVE_INFINITY)&&n.set(s,o)}return n}function Vce(e,t){const n=new Map;for(const i of e){const o=t[i.id]??Number.NEGATIVE_INFINITY,s=i.lastOpenedAt?Date.parse(i.lastOpenedAt):Number.NaN,r=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s;n.set(i.id,Math.max(o,r))}return n}function Zce(e,t){const n=Object.keys(e);if(!n.some(o=>!t.has(o)))return{next:e,changed:!1};const i={};for(const o of n)t.has(o)&&(i[o]=e[o]);return{next:i,changed:!0}}const Gce=5;function Qce(e,t,n,i=Gce){if(e.length<=i)return e;const o=e.slice(0,i);if(t&&!o.some(s=>s.id===t)){const s=e.find(r=>r.id===t);s&&(o[i-1]=s)}return o}const Yce={class:"sd-body"},Jce={class:"sd-search"},Xce=["aria-label"],ede={key:0,class:"sd-section","aria-hidden":"true"},tde={class:"sd-section-count"},nde=["aria-selected","onClick","onMousemove"],ide=["innerHTML"],ode=["innerHTML"],sde=["aria-selected","onClick","onMousemove"],rde={class:"sd-line1"},lde=["innerHTML"],ade={class:"sd-time"},ude={class:"sd-line2"},cde=["innerHTML"],dde=["innerHTML"],fde={key:1,class:"sd-empty"},hde={class:"sd-foot","aria-hidden":"true"},pde={class:"sd-hint"},gde={class:"sd-hint"},mde={class:"sd-hint"},vde=200,yde=3,kde=Xe({__name:"SearchSessionsDialog",props:{sessions:{},workspaces:{},activeId:{}},emits:["select","selectWorkspace","close"],setup(e,{emit:t}){const{t:n}=zt(),i=e,o=t,s=K(!0),r=K(""),l=K(null),a=K(null),u=F(()=>{const x=r.value.trim().toLowerCase(),_=[];if(x.length===0)for(const M of i.workspaces.slice(0,yde))_.push({kind:"workspace",key:`ws:${M.id}`,hit:{workspace:M,inName:!1,inPath:!1}});else for(const M of i.workspaces){const N=M.name.toLowerCase().includes(x),I=M.shortPath.toLowerCase().includes(x);!N&&!I||_.push({kind:"workspace",key:`ws:${M.id}`,hit:{workspace:M,inName:N,inPath:I}})}const L=[];for(const M of i.sessions){const N=M.title??"",I=M.lastPrompt??"",z=M.workspaceName??"",H=x.length>0&&N.toLowerCase().includes(x),O=x.length>0&&I.toLowerCase().includes(x),R=x.length>0&&z.toLowerCase().includes(x);if(!(x.length>0&&!H&&!O&&!R)&&(L.push({kind:"session",key:`s:${M.id}`,hit:{session:M,inTitle:H,inWorkspace:R,snippetText:I?Zle(I,r.value):""}}),L.length>=vde))break}return _.length>0&&L.length>0&&(_[0].section={label:n("sidebar.workspaces"),count:_.length},L[0].section={label:n("sidebar.sessionsHeader"),count:L.length}),[..._,...L]}),c=K(0);Pe(r,()=>{c.value=0});function d(x){const _=u.value.length;return _===0?0:Math.max(0,Math.min(_-1,x))}async function h(){await dt(),a.value?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})}function p(x){c.value=d(c.value+x),h()}function g(x){o("select",x),o("close")}function m(x){o("selectWorkspace",x),o("close")}function k(){r.value="",l.value?.focus()}function w(){const x=u.value[c.value];x&&(x.kind==="workspace"?m(x.hit.workspace.id):g(x.hit.session.id))}function y(){return l.value?.el??null}const{handleCompositionStart:b,handleCompositionEnd:A,isComposingKeyEvent:T}=bl();function S(x){if(T(x)){x.key==="Escape"&&x.stopPropagation();return}x.key==="ArrowDown"?(x.preventDefault(),p(1)):x.key==="ArrowUp"?(x.preventDefault(),p(-1)):x.key==="Enter"&&(x.preventDefault(),w())}return cn(()=>{l.value?.focus()}),(x,_)=>(v(),ce(f(Pc),{open:s.value,"onUpdate:open":_[1]||(_[1]=L=>s.value=L),title:f(n)("sidebar.searchPlaceholder"),size:"lg",height:"fixed",padded:!1,"initial-focus":y,onClose:_[2]||(_[2]=L=>o("close"))},{default:de(()=>[C("div",Yce,[C("div",Jce,[U(f(Ns),{ref_key:"inputRef",ref:l,modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=L=>r.value=L),placeholder:f(n)("sidebar.searchPlaceholder"),autocomplete:"off",spellcheck:"false",onKeydown:S,onCompositionstart:f(b),onCompositionend:f(A)},null,8,["modelValue","placeholder","onCompositionstart","onCompositionend"]),U(f(gn),{text:f(n)("sidebar.searchClear")},{default:de(()=>[C("button",{type:"button",class:Fe(["search-clear",{"is-on":r.value.length>0}]),tabindex:"-1","aria-label":f(n)("sidebar.searchClear"),onClick:k},[U(f(ve),{name:"close",size:"sm"})],10,Xce)]),_:1},8,["text"])]),C("div",{ref_key:"listRef",ref:a,class:"sd-list",role:"listbox"},[u.value.length>0?(v(!0),E(Ee,{key:0},pt(u.value,(L,M)=>(v(),E(Ee,{key:L.key},[L.section?(v(),E("div",ede,[C("span",null,D(L.section.label),1),C("span",tde,D(L.section.count),1)])):X("",!0),L.kind==="workspace"?(v(),E("button",{key:1,class:Fe(["sd-row sd-row-ws",{on:M===c.value}]),role:"option","aria-selected":M===c.value,onClick:N=>m(L.hit.workspace.id),onMousemove:N=>c.value=M},[U(f(ve),{class:"sd-folder",name:"folder-closed",size:"sm"}),C("span",{class:"sd-ws-name",innerHTML:f(K1)(L.hit.workspace.name,L.hit.inName?r.value:"")},null,8,ide),C("span",{class:"sd-ws-path",innerHTML:f(K1)(L.hit.workspace.shortPath,L.hit.inPath?r.value:"")},null,8,ode)],42,nde)):(v(),E("button",{key:2,class:Fe(["sd-row",{on:M===c.value,active:L.hit.session.id===e.activeId}]),role:"option","aria-selected":M===c.value,onClick:N=>g(L.hit.session.id),onMousemove:N=>c.value=M},[C("span",rde,[C("span",{class:"sd-title",innerHTML:f(K1)(L.hit.session.title,L.hit.inTitle?r.value:"")},null,8,lde),C("span",ade,D(L.hit.session.time),1)]),C("span",ude,[C("span",{class:"sd-meta-ws",innerHTML:f(K1)(L.hit.session.workspaceName??L.hit.session.workspaceId??"",L.hit.inWorkspace?r.value:"")},null,8,cde),L.hit.snippetText?(v(),E(Ee,{key:0},[_[3]||(_[3]=C("span",{class:"sd-meta-sep","aria-hidden":"true"},"·",-1)),C("span",{class:"sd-meta-snippet",innerHTML:f(K1)(L.hit.snippetText,r.value)},null,8,dde)],64)):X("",!0)])],42,sde))],64))),128)):(v(),E("div",fde,[U(f(WQ),{title:r.value.trim()?f(n)("sidebar.searchNoResults"):f(n)("sidebar.searchEmpty")},{icon:de(()=>[U(f(ve),{name:"search",size:"lg"})]),_:1},8,["title"])]))],512),C("div",hde,[C("span",pde,[U(f(ku),{keys:["↑","↓"]}),$e(D(f(n)("sidebar.searchHintSelect")),1)]),_[4]||(_[4]=C("span",{class:"sd-dot"},"·",-1)),C("span",gde,[U(f(ku),{keys:["Enter"]}),$e(D(f(n)("sidebar.searchHintOpen")),1)]),_[5]||(_[5]=C("span",{class:"sd-dot"},"·",-1)),C("span",mde,[U(f(ku),{keys:["Esc"]}),$e(D(f(n)("sidebar.searchHintClose")),1)])])])]),_:1},8,["open","title"]))}}),bde=kt(kde,[["__scopeId","data-v-5bf43f78"]]),Ade=640,Cde=`(max-width: ${Ade}px)`;function rg(){const e=K(!1);if(typeof window>"u"||typeof window.matchMedia!="function")return e;const t=window.matchMedia(Cde);e.value=t.matches;const n=i=>{e.value=i.matches};return typeof t.addEventListener=="function"?(t.addEventListener("change",n),_n(()=>t.removeEventListener("change",n))):typeof t.addListener=="function"&&(t.addListener(n),_n(()=>t.removeListener(n))),e}const b$=K(typeof window>"u"?0:window.innerWidth);let Lm=0,I2=!1;function c8(){b$.value=window.innerWidth}function wde(){I2||typeof window>"u"||(window.addEventListener("resize",c8),I2=!0,c8())}function xde(){!I2||typeof window>"u"||(window.removeEventListener("resize",c8),I2=!1)}function A$(e,t,n){return Math.max(t,e-n)}function d8(e,t,n){return Math.min(n,Math.max(t,e))}function C$(){return cn(()=>{Lm+=1,wde()}),Hn(()=>{Lm=Math.max(0,Lm-1),Lm===0&&xde()}),{viewportWidth:b$}}const Sde=24;function _de(e){const t=K(null),n=K(!0);let i=null,o=null,s=null,r=0,l=0,a=!1,u=0;function c(){const k=t.value;k&&(k.scrollTop=Math.max(k.scrollTop,r))}function d(){const w=t.value?.firstElementChild??null;w!==s&&(s&&i?.unobserve(s),s=w,w&&i?.observe(w))}function h(){const k=t.value;!k||a||(n.value=r-k.scrollTop-lp(k));return}requestAnimationFrame(()=>{requestAnimationFrame(()=>p(k))})}function m(){const k=t.value;k&&(i?.disconnect(),o?.disconnect(),s=null,a=!1,u++,r=0,l=0,typeof ResizeObserver=="function"?(i=new ResizeObserver(()=>{const w=t.value;if(!w)return;const{scrollHeight:y,clientHeight:b}=w,A=y>r+1,T=b{n.value=!0,dt(m)}),Pe(t,()=>void dt(m)),cn(()=>void dt(m)),_n(()=>{u++,i?.disconnect(),o?.disconnect()}),{scroller:t,following:n,onScroll:h,pinScroll:g}}function Mde(e){try{const t=gs(e);if(t===null)return null;const n=Number(t);return Number.isFinite(n)?n:null}catch{return null}}function Ide(e,t){try{is(e,String(t))}catch{}}function w$(e){const{storageKey:t,defaultWidth:n,min:i,max:o,reverse:s=!1,axis:r="x",applyLive:l,persist:a}=e;function u(z){return Number.isFinite(z)?Math.min(Yl(o),Math.max(Yl(i),Math.round(z))):n}const c=K(u(Mde(t)??n)),d=K(!1);function h(z){const H=z<=Yl(i),O=z>=Yl(o),R=r==="x"?"col-resize":"row-resize";if(H&&O)return R;const[j,$]=r==="x"?["e-resize","w-resize"]:["s-resize","n-resize"];return O?s?j:$:H?s?$:j:R}const p=K(null),g=F(()=>h(p.value??c.value));function m(z){typeof document>"u"||(document.body.style.cursor=h(z))}function k(z){a&&!a()||Ide(t,z)}function w(z){const H=u(z);c.value=H,k(H)}Pe(()=>Yl(o),z=>{!d.value&&c.value>z&&w(z)}),Pe(()=>Yl(i),z=>{!d.value&&c.valuet.value!==null&&(n.value||i.value||o.value||s.value));function l(){const k=e.value;if(!k){t.value=null;return}const w=Ede(k.scrollTop,k.scrollHeight,k.clientHeight,b3(k,"--overlay-scrollbar-track-inset",0),b3(k,"--overlay-scrollbar-thumb-min",24)),y=w===null?null:{top:k.offsetTop+w.top,height:w.height},b=t.value;b!==null&&y!==null&&b.top===y.top&&b.height===y.height||(t.value=y)}let a=null;function u(){o.value=!0,a&&clearTimeout(a),a=setTimeout(()=>{o.value=!1,a=null},Tde)}let c=null;function d(k){const w=e.value,y=t.value;if(!w||!y)return;k.preventDefault(),c?.();const b=k.pointerId;k.target.setPointerCapture?.(k.pointerId);const A=b3(w,"--overlay-scrollbar-track-inset",0),T=w.clientHeight-A*2-y.height,S=w.scrollHeight-w.clientHeight,x=k.clientY,_=w.scrollTop;s.value=!0;const L=I=>{I.pointerId!==b||T<=0||(w.scrollTop=_+(I.clientY-x)/T*S)},M=I=>{I.pointerId===b&&N()},N=()=>{window.removeEventListener("pointerup",M),window.removeEventListener("pointermove",L),window.removeEventListener("pointercancel",M),s.value=!1,c===N&&(c=null)};c=N,window.addEventListener("pointermove",L),window.addEventListener("pointerup",M),window.addEventListener("pointercancel",M)}function h(){n.value=!0}function p(){n.value=!1}function g(){i.value=!0}function m(){i.value=!1}return Hn(()=>{a&&clearTimeout(a),c?.()}),{thumb:t,thumbVisible:r,scrolling:o,update:l,markScrolling:u,onThumbPointerDown:d,onListMouseEnter:h,onListMouseLeave:p,onThumbMouseEnter:g,onThumbMouseLeave:m}}const na=K(null),Lh=K(!1),Lde=F(()=>na.value!==null);function z6(e){const t=na.value;!t||Lh.value||(na.value=null,t.resolve(e))}async function Nde(){const e=na.value;if(!(!e||Lh.value)){if(!e.action){z6(!0);return}Lh.value=!0;try{await e.action(),na.value===e&&(na.value=null),e.resolve(!0)}catch(t){na.value===e&&(na.value=null),e.reject(t)}finally{Lh.value=!1}}}function Fde(e){return Lh.value?Promise.resolve(!1):(na.value&&z6(!1),new Promise((t,n)=>{na.value={...e,resolve:t,reject:n}}))}function Vc(){return{current:na,busy:Lh,isConfirmOpen:Lde,confirm:Fde,settle:z6,runAction:Nde}}function Dde(e){const{sessionId:t}=e;function n(a){return gs(h_(a))??""}function i(a,u){const c=h_(a);u?is(c,u):_r(c)}const o=K(n(t())),s=K(null);Pe(o,a=>{i(t(),a)}),Pe(t,(a,u)=>{a!==u&&(i(u,o.value),o.value=n(a))});function r(a){o.value=a,dt(()=>{const u=s.value;if(!u)return;u.focus();const c=a.length;u.setSelectionRange(c,c)})}function l(){i(t(),"")}return{text:o,editorRef:s,loadForEdit:r,clearDraft:l}}function Bde(e){return e?e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable===!0:!1}function $de(e){const{sessionId:t,mobile:n,starting:i,dockedComposer:o,emptyComposer:s}=e,r=K(!1);Pe(t,()=>{n()||(r.value=!0)}),Pe([r,o,s,i],()=>{if(!r.value)return;const l=o.value??s.value;if(!l)return;const a=typeof document<"u"?document.activeElement:null;if(Bde(a)){r.value=!1;return}l.focus(),(typeof document>"u"||document.activeElement!==a)&&(r.value=!1)},{flush:"post"})}const E2=100;function Rde(e){const t=Kc(un.inputHistory);if(Array.isArray(t)){const n=t.filter(s=>typeof s=="string"&&s.length>0);if(!e||n.length===0)return{};const i=n.length>E2?n.slice(-E2):n,o={[e]:i};return Lu(un.inputHistory,o),o}return t&&typeof t=="object"?t:{}}function zde(e){const{text:t,editorRef:n,sessionId:i}=e,o=K(Rde(i())),s=F(()=>o.value[i()??""]??[]);let r=-1,l="";function a(k){const w=i();if(r=-1,!w)return;const y=k.trim();if(!y)return;const b=o.value[w]??[];if(b.at(-1)===y)return;const A=[...b,y],T=A.length>E2?A.slice(-E2):A;o.value={...o.value,[w]:T},Lu(un.inputHistory,o.value)}function u(){const k=n.value;return k?(k.selectionStart??0)===0:!1}function c(k){t.value=k,dt(()=>{const w=n.value;if(!w)return;const y=k.length;w.setSelectionRange(y,y)})}function d(){const k=s.value;if(k.length!==0){if(r===-1)l=t.value,r=k.length-1;else if(r>0)r-=1;else return;c(k[r])}}function h(){if(r===-1)return;const k=s.value;r0}return Pe(i,()=>{r=-1}),{push:a,caretAtTextStart:u,recallOlder:d,recallNewer:h,resetBrowsing:p,isBrowsing:g,hasHistory:m}}function Ode(e){const{text:t,editorRef:n,skills:i,emitCommand:o,historyPush:s,clearDraft:r,resolveDesc:l}=e,a=K(!1),u=K([]),c=K([]),d=K(0);function h(){const g=t.value;if(/^\/\S*$/.test(g)){const m=ace(g,c$(i()),l);u.value=m.map(k=>k.item),c.value=m.map(k=>k.ranges),d.value=0,a.value=!0}else a.value=!1}function p(g){if(a.value=!1,g.acceptsInput){t.value=`${g.name} `,dt(()=>{const m=n.value;if(!m)return;const k=t.value.length;m.setSelectionRange(k,k),m.focus()});return}t.value="",r?.(),s(g.name),o(g.name)}return{open:a,items:u,ranges:c,active:d,update:h,select:p}}function Pde(e){const t=e.toLowerCase(),n=[];let i=0;for(const o of e){const s=o.toLowerCase().length;for(let r=0;r=3&&S$(e,t)!==null?1:0}function b_(e,t){const n=t.toLowerCase(),i=[];for(const o of e){const{lower:s,map:r}=Pde(o.name),l=jde(s,n);if(l===0)continue;const a=l>=2?Array.from({length:n.length},(u,c)=>s.indexOf(n)+c):S$(s,n);i.push({skill:o,tier:l,positions:a.map(u=>r[u])})}return i}function Hde(e,t){return t.includes("/")?!0:e.name.toLowerCase().includes(t)}function A_(e){return e.kind==="directory"||e.path.endsWith("/")?"folder":"file"}function Wde(e){const{text:t,editorRef:n,searchFiles:i,skills:o,insertMention:s}=e,r=K(!1),l=K([]),a=K(""),u=K(!1),c=K([]),d=K(0),h=K(!1),p=F(()=>{const O=a.value,R=[],j=[];for(const ae of l.value){const V={kind:A_(ae),file:ae};(Hde(ae,O)?R:j).push(V)}const $=[],W=[],P=[],Z=[];for(const{skill:ae,tier:V,positions:Y}of c.value){const oe={kind:"skill",skill:ae,matchPositions:Y};V===4?$.push(oe):V===3?W.push(oe):V===2?P.push(oe):Z.push(oe)}return[...$,...W,...R,...P,...Z,...j]});let g=0,m=null,k=!1;function w(){const O=t.value,R=n.value?.selectionStart??O.length,j=n.value?.inlineTextRunStart?.()??0;let $=R-1;for(;$>=j&&!/\s/.test(O[$]);)$--;$++,$=Math.max($,j);const W=O.slice($,R);return!W.startsWith("@")&&!W.startsWith("@")?null:{token:W.slice(1),start:$,end:R}}function y(O){return O.kind==="skill"?`skill:${O.skill.name}`:`${O.kind}:${O.file.path}`}let b=!1,A=!1;Pe(d,()=>{A||(b=!0)},{flush:"sync"});function T(O){A=!0,d.value=O,A=!1}function S(O){b=!0,T(O)}function x(O){if(O===null||!b){T(0);return}const R=p.value.findIndex(j=>y(j)===O);T(R===-1?0:R)}function _(O,R){const j=p.value[d.value],$=j?y(j):null;u.value=!1,a.value=R.toLowerCase(),l.value=O,x($)}async function L(O,R){const j=++g,$=performance.now();h.value=!0,r.value=!0;const W=()=>{const P=w();return j===g&&P!==null&&P.token===R&&r.value};try{const P=await O(R);W()&&_(P,R)}catch{W()&&_([],R)}finally{W()&&(console.debug(`[mention] search "${R}" → ${l.value.length} items in ${Math.round(performance.now()-$)}ms`),h.value=!1)}}function M(){const O=w(),R=i();if(k=!1,b=!1,!O){m=null,r.value=!1,h.value=!1,u.value=!1;return}const j=O.token;if(j!==m&&(l.value.length>0&&(u.value=!0),g+=1),m=j,c.value=j.length>0?b_(o?.()??[],j):[],T(0),!R){l.value=[],h.value=!1,u.value=!1,r.value=c.value.length>0;return}if(j.length===0){L(R,j);return}c.value.length>0&&(r.value=!0),L(R,j)}function N(){const O=w();if(!O)return;const R=p.value[d.value],j=R?y(R):null;c.value=O.token.length>0?b_(o?.()??[],O.token):[],x(j)}Pe(()=>o?.(),()=>{k||N()});function I(O){if(O.kind==="skill")return{kind:"skill",name:O.skill.name};const R=O.file.path;return{kind:A_(O.file),path:R,name:O.file.name||R.split("/").filter(Boolean).pop()||R}}function z(){k=!0,b=!1,r.value=!1,h.value=!1,u.value=!1,l.value=[],m=null,g+=1}function H(O){const R=w();if(!R||O.kind!=="skill"&&u.value)return;if(z(),s){s(I(O),{start:R.start,end:R.end});return}if(O.kind==="skill")return;const j=t.value;t.value=j.slice(0,R.start)+O.file.path+j.slice(R.end),dt(()=>{const $=n.value;if(!$)return;const W=R.start+O.file.path.length;$.setSelectionRange(W,W),$.focus()})}return{open:r,items:p,fileItems:l,fileStale:u,skillItems:c,active:d,loading:h,update:M,close:z,select:H,navigate:S,getToken:w}}const qde="kimi-web.file-preview-width",sh=320;function Ude({client:e,sideWidth:t,detailTarget:n,closeFilePreview:i}){const{viewportWidth:o}=C$(),s=F(()=>Math.max(0,o.value-t.value)),r=F(()=>A$(s.value,sh,sh));function l(se){return d8(Math.round(se),sh,r.value)}function a(){return l(s.value/2)}const u=F(()=>a()),c=K(u.value),d=F(()=>d8(c.value,sh,r.value)),h=K(null),p=F(()=>{const se=h.value;if(!se)return null;const re=e.turns.value.find(G=>G.id===se.turnId);return re?.role==="compaction"&&re.text?re.text:null}),g=F(()=>p.value!==null);function m(se){if(h.value?.turnId===se.turnId){h.value=null,n.value==="compaction"&&(n.value=null);return}n.value="compaction",h.value=se}function k(){h.value=null,n.value==="compaction"&&(n.value=null)}const w=K(null),y=F(()=>{const se=w.value;if(!se)return{entry:void 0,version:0};const re=e.auxiliaryTranscripts.getEntry(se.sessionId,se.subagentId);return{entry:re,version:re?.version.value??0}});function b(se){const re=e.turns.value.flatMap(G=>G.tools??[]).find(G=>G.agentId===se);if(!re)return{};try{const G=JSON.parse(re.arg);return{name:typeof G.description=="string"?G.description:void 0,subagentType:typeof G.subagent_type=="string"?G.subagent_type:void 0,status:re.status,outputLines:re.output}}catch{return{}}}const A=F(()=>{const se=w.value;if(!se)return null;const re=e.activeAppTasks.value.find(Ct=>Ct.agentId===se.subagentId||Ct.id===se.subagentId||Ct.backgroundTaskId===se.subagentId);if(re)return mse(re,e.findBashCommandForTask(re));const G=y.value.entry?.channel,le=G?.agents.find(Ct=>Ct.agentId===se.subagentId),ge=G?.refreshError??!1,ke=G===void 0||G.loading,Ie=G?.snapshot.meta.activity==="turn",Oe=b(se.subagentId),we=G?.snapshot.items.findLast(Ct=>Ct.kind==="turn"),Be=we?.kind==="turn"&&we.state==="cancelled",tt=we?.kind==="turn"&&we.state==="failed"||Oe.status==="error",ut=Ie?"working":Be?"cancelled":tt?"failed":ke?"queued":ge&&Oe.status===void 0?"failed":"completed",_t=Ie?"running":Be?"cancelled":tt?"failed":ke?"running":ge&&Oe.status===void 0?"failed":"completed";return{id:se.subagentId,name:le?.label??Oe.name??se.subagentId,subagentType:Oe.subagentType??(le?.type==="sub"?"subagent":le?.type),phase:ut,status:_t,outputLines:Oe.outputLines}}),T=F(()=>{const se=y.value.entry;if(!se)return[];const re=w.value,G=se.channel.agents.find(le=>le.agentId===re?.subagentId);return Ise(se.channel.snapshot,e.getFileUrl,G,{sessionId:re?.sessionId,getSessionMediaUrl:e.getSessionMediaUrl})}),S=F(()=>y.value.entry?.channel.loading??!1),x=F(()=>y.value.entry?.channel.refreshError??!1),_=F(()=>y.value.entry?.channel.loadingOlder??!1),L=F(()=>y.value.entry?.channel.loadOlderError??!1),M=F(()=>y.value.entry?.channel.snapshot.hasMoreOlder??!1),N=F(()=>y.value.entry?.channel.snapshot.meta.activity==="turn"),I=F(()=>A.value!==null);function z(se){const re=e.activeAppTasks.value.find(G=>G.agentId===se||G.id===se||G.backgroundTaskId===se);return!re||re.kind==="subagent"&&re.agentId===se}function H(se){return e.activeAppTasks.value.find(G=>G.agentId===se||G.id===se||G.backgroundTaskId===se)?.agentId??se}function O(se){const re=e.activeSessionId.value;if(!se||!re)return;const G=H(se);if(n.value==="agent"&&w.value?.sessionId===re&&w.value.subagentId===G){R();return}const le=w.value;le&&le.subagentId!==G&&e.auxiliaryTranscripts.deactivate(le.sessionId,le.subagentId),w.value={sessionId:re,subagentId:G},n.value="agent",z(G)&&e.auxiliaryTranscripts.activate(re,G)}Pe(()=>e.activeAppTasks.value,se=>{const re=w.value;if(!re)return;const G=se.find(le=>le.backgroundTaskId===re.subagentId&&le.agentId!==void 0);!G||G.agentId===re.subagentId||(e.auxiliaryTranscripts.deactivate(re.sessionId,re.subagentId),w.value={sessionId:re.sessionId,subagentId:G.agentId},n.value==="agent"&&e.auxiliaryTranscripts.activate(re.sessionId,G.agentId))});function R(){const se=w.value;se&&e.auxiliaryTranscripts.deactivate(se.sessionId,se.subagentId),w.value=null,n.value==="agent"&&(n.value=null)}Pe(n,(se,re)=>{if(re!=="agent"||se==="agent")return;const G=w.value;G&&e.auxiliaryTranscripts.deactivate(G.sessionId,G.subagentId)});function j(){const se=y.value.entry;se&&se.channel.loadOlder().catch(()=>{})}const $=K("list"),W=K(null);function P(){if(n.value==="diff"){Z();return}n.value="diff",$.value="list",W.value=null,e.loadGitStatus(e.activeSessionId.value)}function Z(){n.value==="diff"&&(n.value=null),$.value="list",W.value=null,e.clearFileDiff()}async function ae(se){$.value="detail",W.value=se,await e.loadFileDiff(se)}const V=ha(null);function Y(se){if(V.value===se&&n.value==="turn-diff"){oe();return}V.value=se,n.value="turn-diff"}function oe(){V.value=null,n.value==="turn-diff"&&(n.value=null)}async function q(se){if(!e.activeSessionId.value&&e.activeWorkspaceId.value){const re=await e.startSessionAndOpenSideChat(e.activeWorkspaceId.value,se);return n.value="btw",re}return await e.openSideChat(se),n.value="btw",null}function ne(){e.closeSideChat(),n.value==="btw"&&(n.value=null)}function ie(){n.value==="btw"&&(n.value=null)}const pe=F(()=>e.sideChatVisible.value),Ne=F(()=>n.value!==null&&(n.value!=="compaction"||g.value)&&(n.value!=="agent"||I.value)&&(n.value!=="btw"||pe.value)),te=K(!1),be=K({});function Q(){switch(n.value){case"compaction":return h.value?{kind:"compaction",...h.value}:null;case"agent":return w.value?{kind:"agent",...w.value}:null;case"btw":return{kind:"btw"};default:return null}}function ue(se){if(se)switch(se.kind){case"compaction":h.value={turnId:se.turnId},n.value="compaction";break;case"agent":if(e.activeSessionId.value){const re=H(se.subagentId);w.value={sessionId:e.activeSessionId.value,subagentId:re},n.value="agent",z(re)&&e.auxiliaryTranscripts.activate(e.activeSessionId.value,re)}break;case"btw":e.sideChatVisible.value&&(n.value="btw");break}}function Ae(){return n.value==="compaction"&&g.value?(k(),!0):n.value==="agent"&&I.value?(R(),!0):n.value==="file"?(i(),!0):n.value==="diff"?(Z(),!0):n.value==="turn-diff"?(oe(),!0):n.value==="btw"?(ne(),!0):!1}return Pe(e.activeSessionId,(se,re)=>{if(re){const G=Q();G?be.value[re]=G:delete be.value[re]}i(),k(),R(),Z(),oe(),ie(),se&&ue(be.value[se])}),{PREVIEW_WIDTH_KEY:qde,PREVIEW_MIN:sh,previewDefaultWidth:u,previewMax:r,previewWidth:c,previewPanelWidth:d,compactionPanelText:p,compactionPanelVisible:g,openCompactionPanel:m,closeCompactionPanel:k,agentPanelMember:A,agentPanelTurns:T,agentPanelLoading:S,agentPanelLoadError:x,agentPanelLoadingMore:_,agentPanelLoadMoreError:L,agentPanelHasMore:M,agentPanelRunning:N,agentPanelVisible:I,openAgentPanel:O,closeAgentPanel:R,loadOlderAgentMessages:j,detailDiffMode:$,detailDiffPath:W,openDiffDetail:P,closeDiffDetail:Z,selectDiffFile:ae,turnDiffChange:V,openTurnDiff:Y,closeTurnDiff:oe,btwVisible:pe,openSideChatTab:q,closeSideChat:ne,hideSideChatPanel:ie,sidePanelVisible:Ne,panelDragging:te,closeOpenSidePanel:Ae}}const Kde=un.sidebarWidth,C_=un.sidebarCollapsed,w_=270,A3=220,Vde=480,Zde=320;function Gde(e={}){const{viewportWidth:t}=C$(),n=K(w_),i=K(!1),o=K(!1),s=F(()=>{const c=Zde+(Yl(e.previewOpen)?sh:0);return Math.min(Vde,A$(t.value,A3,c))}),r=F(()=>d8(n.value,A3,s.value));function l(){try{i.value=gs(C_)==="true"}catch{i.value=!1}}function a(){try{is(C_,String(i.value))}catch{}}function u(){i.value=!i.value,a()}return{SIDEBAR_WIDTH_KEY:Kde,SIDEBAR_DEFAULT:w_,SIDEBAR_MIN:A3,sidebarMax:s,sessionColWidth:n,sidebarCollapsed:i,sidebarDragging:o,sideWidth:r,loadSidebarCollapsed:l,toggleSidebarCollapse:u}}const Qde=40409;function x_(e){return ko(e)&&e.code===Qde}function S_(e){return e.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(e)||e.startsWith("\\\\")}function __(e){if(e.startsWith("\\\\"))return e;const t=/^[a-zA-Z]:/.test(e)?e.slice(0,2):"",n=[];for(const i of e.slice(t.length).split(/[\\/]+/))if(!(!i||i===".")){if(i===".."){n.pop();continue}n.push(i)}return t?`${t}/${n.join("/")}`:`/${n.join("/")}`}function Yde({client:e,detailTarget:t,t:n}){const i=K(null),o=K(null),s=K(!1),r=K(null),l=K(null);let a=0;const u=F(()=>{const A=l.value;return A?e.getFileDownloadUrl(A):null}),c=F(()=>i.value!==null&&l.value!==null);function d(A){return A.length>1?A.replace(/\/+$/,""):A}function h(A){const T=d9(A,e.status.value.cwd);return T===null||T.split(/[\\/]+/).includes("..")?null:p(T)||null}function p(A){const T=[];for(const S of A.split(/[\\/]+/))if(!(!S||S===".")){if(S===".."){T.pop();continue}T.push(S)}return T.join("/")}function g(A){const T=A.trim();if(!T)return{error:n("filePreview.errors.emptyPath")};if(/^[a-z][a-z0-9+.-]*:\/\//i.test(T))return{error:n("filePreview.errors.unsupportedPath")};if(T.startsWith("~"))return{error:n("filePreview.errors.outsideWorkspace")};const S=d(e.status.value.cwd);if(T.startsWith("/")){if(!S||T!==S&&!T.startsWith(`${S}/`))return{error:n("filePreview.errors.outsideWorkspace")};const _=T===S?"":T.slice(S.length+1);if(_.split(/[\\/]+/).includes(".."))return{error:n("filePreview.errors.outsideWorkspace")};const L=p(_);return L?{path:L}:{error:n("filePreview.errors.isDirectory")}}if(T.split(/[\\/]+/).includes(".."))return{error:n("filePreview.errors.outsideWorkspace")};const x=p(T);return x?{path:x}:{error:n("filePreview.errors.emptyPath")}}async function m(A){const T=i.value;if(t.value==="file"&&T&&T.path===A.path&&T.line===A.line&&(T.content??"")===(A.content??"")){w();return}const S=++a;if(t.value="file",o.value=null,r.value=null,s.value=!0,i.value=A,l.value=null,typeof A.content=="string"){s.value=!1,o.value={path:A.path,content:A.content,encoding:"utf-8",mime:"text/markdown",isBinary:!1,size:A.content.length};return}if(!S_(A.path)&&A.path.split(/[\\/]+/).includes("..")){const _=d(e.status.value.cwd);_&&(A={...A,path:__(`${_}/${A.path}`)})}if(S_(A.path)){A={...A,path:__(A.path)};const _=h(A.path);if(_!==null)A={...A,path:_};else{try{const L=await e.readHostFileContent(A.path);if(S!==a)return;l.value=null,o.value={path:A.path,content:L.content,encoding:L.encoding,mime:L.mime,isBinary:L.isBinary,size:L.size}}catch(L){if(S!==a)return;r.value=x_(L)?n("filePreview.errors.notFound"):RY(L)?n("filePreview.errors.tooLarge"):L instanceof Error?L.message:n("filePreview.errors.loadFailed")}finally{S===a&&(s.value=!1)}return}}const x=g(A.path);if("error"in x){s.value=!1,r.value=x.error;return}l.value=x.path;try{const _=await e.readFileContent(x.path);if(S!==a)return;_?o.value={..._,path:_.path||x.path}:r.value=n("filePreview.errors.loadFailed")}catch(_){if(S!==a)return;r.value=x_(_)?n("filePreview.errors.notFound"):_ instanceof Error?_.message:n("filePreview.errors.loadFailed")}finally{S===a&&(s.value=!1)}}function k(){a+=1,i.value=null,l.value=null,o.value=null,r.value=null,s.value=!1}function w(){k(),t.value==="file"&&(t.value=null)}Pe(t,(A,T)=>{T==="file"&&A!=="file"&&k()});function y(){const A=o.value?.path??i.value?.path;A&&e.openWorkspaceFile(A,i.value?.line)}function b(){const A=o.value?.path??i.value?.path;A&&e.revealWorkspaceFile(A)}return{previewTarget:i,previewFile:o,previewLoading:s,previewError:r,previewDownloadUrl:u,previewExternalActions:c,openFilePreview:m,closeFilePreview:w,openPreviewInEditor:y,revealPreviewFile:b}}function Jde(e){const t=e.replace(/[/\\]+$/,"");return t===""?e:t.split(/[/\\]/).pop()??t}function Xde(e,t){return e!==""?e:t?`${Jde(t)} | Kimi Code`:"Kimi Code"}function efe(e){return F(()=>Xde(Yl(e.webTitle),Yl(e.activeWorkspaceRoot)))}function tfe({running:e,title:t="Kimi Code"}){if(bf){Zk(()=>{typeof document<"u"&&(document.title=Yl(t))});return}const n=["◐","◓","◑","◒"],i=K(0);let o=null;function s(){o===null&&(i.value=0,o=setInterval(()=>{i.value=(i.value+1)%n.length},250))}function r(){o!==null&&(clearInterval(o),o=null),i.value=0}Pe(e,a=>{a?s():r()},{immediate:!0});const l=F(()=>`${e.value?`${n[i.value]} `:""}${Yl(t)}`);Zk(()=>{typeof document<"u"&&(document.title=l.value)}),_n(()=>{r()})}function nfe(e,t,n){return e==="idle"&&!t&&!n}function O6(...e){for(const t of e){const n=t?.trim();if(n)return n}return""}function ife(e,t){return{title:e("settings.notifyTitle"),body:O6(t,e("settings.notifyFallback"))}}function ofe(e,t,n){return{title:e("settings.notifyQuestionTitle"),body:O6(n,t,e("settings.notifyQuestionFallback"))}}function sfe(e,t,n){return{title:e("settings.notifyApprovalTitle"),body:O6(n,t,e("settings.notifyApprovalFallback"))}}function Nm(e){return{fileId:e.fileId,kind:e.kind,sessionId:e.kind==="file"?void 0:e.sessionId,name:e.name,mediaType:e.mediaType,size:e.size}}function P6(e,t){const n=t.kind==="file"?void 0:t.sessionId;return{kind:t.kind,url:n?e.getSessionMediaUrl(n,t.fileId):e.getFileUrl(t.fileId),fileId:t.fileId,sessionId:n,name:t.name,mediaType:t.mediaType,size:t.size}}function T2(e){const t=[];for(const n of e??[])n.kind==="video"?t.push({type:"video",source:n.sessionId?{kind:"sessionMedia",fileId:n.fileId}:{kind:"file",fileId:n.fileId}}):n.kind==="file"?t.push({type:"file",fileId:n.fileId,name:n.name??"",mediaType:n.mediaType||"application/octet-stream",size:n.size??0}):t.push({type:"image",source:n.sessionId?{kind:"sessionMedia",fileId:n.fileId}:{kind:"file",fileId:n.fileId}});return t}function rfe(e){const{api:t,uploadImage:n,sessionId:i,insertFolderPaths:o}=e,s=K({}),r=F(()=>s.value[i()??""]??[]),l=K(null),a=K(null),u=K(!1);let c=0;function d(){return`att_${++c}`}function h(Y,oe){const q=p_(Y),ne=[];for(const ie of oe)ie.uploading||ie.error||!ie.fileId||ne.push({fileId:ie.fileId,kind:ie.kind,name:ie.name,mediaType:ie.mediaType,size:ie.size,sessionId:ie.sessionId});ne.length===0?_r(q):Lu(q,ne)}let p=!1;function g(Y,oe){p||(s.value={...s.value,[Y]:oe},h(Y,oe))}function m(Y){if(s.value[Y]!==void 0)return;const oe=Kc(p_(Y));if(!Array.isArray(oe)||oe.length===0)return;const q=[];for(const ne of oe)!ne||typeof ne.fileId!="string"||ne.fileId===""||ne.kind!=="image"&&ne.kind!=="video"&&ne.kind!=="file"||q.push({fileId:ne.fileId,kind:ne.kind,name:typeof ne.name=="string"&&ne.name!==""?ne.name:ne.kind,mediaType:typeof ne.mediaType=="string"?ne.mediaType:void 0,size:typeof ne.size=="number"?ne.size:void 0,sessionId:typeof ne.sessionId=="string"?ne.sessionId:void 0});q.length!==0&&V(q.map(ne=>P6(t,ne)),Y,{append:!0})}function k(Y){if(Y.previewUrl!==void 0)try{URL.revokeObjectURL(Y.previewUrl)}catch{}}function w(Y){return Y.startsWith("image/")?"image":Y.startsWith("video/")?"video":"file"}function y(Y){return Y<1024*1024?"<1mb":Y<10*1024*1024?"1-10mb":Y<50*1024*1024?"10-50mb":"50mb+"}async function b(Y,oe){const q=n();if(!q)return;const ne=i()??"";if(Y.length!==0)for(const ie of Y){const pe=w(ie.type);y(ie.size),Math.min(Y.length,100);const Ne=d(),te=pe==="file"?void 0:URL.createObjectURL(ie),be={localId:Ne,name:ie.name,kind:pe,previewUrl:te,mediaType:ie.type||"application/octet-stream",size:ie.size,uploading:!0};g(ne,[...s.value[ne]??[],be]),q(ie,ie.name).then(Q=>{const ue=s.value[ne]??[];g(ne,ue.map(Ae=>Ae.localId===Ne?{...Ae,uploading:!1,fileId:Q?.fileId,mediaType:Q?.mediaType??Ae.mediaType,error:Q===null}:Ae))}).catch(()=>{const Q=s.value[ne]??[];g(ne,Q.map(ue=>ue.localId===Ne?{...ue,uploading:!1,error:!0}:ue))})}}function A(Y){const oe=i()??"",q=s.value[oe]??[],ne=q.find(ie=>ie.localId===Y);l.value?.localId===Y&&(l.value=null),ne&&k(ne),g(oe,q.filter(ie=>ie.localId!==Y))}function T(Y){l.value=Y}function S(){l.value=null}function x(){a.value?.click()}function _(Y){const oe=Y.target,q=Array.from(oe.files??[]);b(q),oe.value=""}function L(Y){const oe=Y.clipboardData;if(!oe)return;const{files:q,folderPaths:ne,hasFolders:ie}=Qre(oe);if(ne.length>0?(o?.(ne),Y.preventDefault()):ie&&Y.preventDefault(),!n()||q.length===0)return;const pe=q.map(Ne=>{if(Ne.name.includes("."))return Ne;const te=Ne.type.split("/")[1]??"png";return new File([Ne],`paste-${Date.now()}.${te}`,{type:Ne.type})});Y.preventDefault(),b(pe)}let M=0;function N(Y){!n()||!Array.from(Y.dataTransfer?.items??[]).some(q=>q.kind==="file")||(Y.preventDefault(),Y.stopPropagation(),u.value=!0)}function I(){u.value=!1}function z(Y){M=0,u.value=!1;const{files:oe,folderPaths:q}=Pb(Y);q.length>0&&(o?.(q),Y.preventDefault(),Y.stopPropagation()),n()&&(Y.preventDefault(),Y.stopPropagation(),b(oe))}function H(Y){return Array.from(Y.dataTransfer?.items??[]).some(oe=>oe.kind==="file")}function O(Y){!n()||!H(Y)||(Y.preventDefault(),M+=1,u.value=!0)}function R(Y){!n()||!H(Y)||Y.preventDefault()}function j(Y){!n()||!H(Y)||(M=Math.max(0,M-1),M===0&&(u.value=!1))}function $(Y){M=0,u.value=!1;const{files:oe,folderPaths:q}=Pb(Y);q.length>0&&(o?.(q),Y.preventDefault()),n()&&(Y.preventDefault(),b(oe))}function W(){const Y=i()??"";for(const oe of s.value[Y]??[])k(oe);g(Y,[])}function P(){l.value=null,W()}function Z(Y,oe,q){const ne=s.value[Y]??[];ne.some(ie=>ie.localId===oe)&&g(Y,ne.map(ie=>ie.localId===oe?{...ie,...q}:ie))}function ae(Y){return fetch(Y).then(oe=>{if(!oe.ok)throw new Error(`fetch failed: ${oe.status}`);return oe.blob()})}function V(Y,oe,q){const ne=oe??i()??"";if(q?.append!==!0){for(const ie of s.value[ne]??[])k(ie);g(ne,[])}for(const ie of Y){const pe=d(),Ne=/^data:/i.test(ie.url),te=/^blob:/i.test(ie.url),be=ie.name??ie.kind;if(ie.fileId){const Q={localId:pe,name:be,kind:ie.kind,previewUrl:ie.kind==="file"?void 0:ie.url,uploading:!1,fileId:ie.fileId,sessionId:ie.sessionId,mediaType:ie.mediaType,size:ie.size};g(ne,[...s.value[ne]??[],Q]),ie.kind==="image"&&!Ne&&!te&&(ie.sessionId?t.getSessionMediaBlob(ie.sessionId,ie.fileId):t.getFileBlob(ie.fileId)).then(Ae=>{if(p)return;const se=URL.createObjectURL(Ae);if(!(s.value[ne]??[]).some(G=>G.localId===pe)){URL.revokeObjectURL(se);return}Z(ne,pe,{previewUrl:se})}).catch(()=>{})}else{if(!ie.url)continue;const Q=n();if(!Q)continue;const ue={localId:pe,name:be,kind:ie.kind,previewUrl:ie.url,uploading:!0};g(ne,[...s.value[ne]??[],ue]),ae(ie.url).then(Ae=>{const se=be.includes(".")?be:`${be}.${Ae.type.split("/")[1]??"bin"}`;return Q(Ae,se)}).then(Ae=>{if(Ae===null){const se=s.value[ne]??[];g(ne,se.filter(re=>re.localId!==pe));return}Z(ne,pe,{uploading:!1,fileId:Ae.fileId})}).catch(()=>{const Ae=s.value[ne]??[];g(ne,Ae.filter(se=>se.localId!==pe))})}}}return Pe(i,()=>{l.value=null,m(i()??"")}),m(i()??""),cn(()=>{document.addEventListener("paste",L),document.addEventListener("dragenter",O),document.addEventListener("dragover",R),document.addEventListener("dragleave",j),document.addEventListener("drop",$)}),_n(()=>{p=!0,document.removeEventListener("paste",L),document.removeEventListener("dragenter",O),document.removeEventListener("dragover",R),document.removeEventListener("dragleave",j),document.removeEventListener("drop",$);for(const Y of Object.values(s.value))for(const oe of Y)k(oe);l.value=null}),{attachments:r,previewAttachment:l,fileInputRef:a,isDragOver:u,removeAttachment:A,openAttachmentPreview:T,closeAttachmentPreview:S,openFilePicker:x,handleFileInputChange:_,handleDragOver:N,handleDragLeave:I,handleDrop:z,clearAfterSubmit:W,clearAttachments:P,loadAttachments:V}}const lfe=3;function _$(e){const t=K("starting"),n=K(!1),i=K(null),o=K(0),s=K(!1);let r=null,l=null,a=null,u=0,c=0,d=!1,h,p=!1,g=null,m=!1;function k(){r&&(clearTimeout(r),r=null),l&&(clearInterval(l),l=null),a&&(clearTimeout(a),a=null)}function w(L){k(),b(),t.value="success",a=setTimeout(()=>{a=null,e.onSuccess?.()},L)}function y(){l&&clearInterval(l),l=setInterval(()=>{o.value>0?o.value--:(l&&clearInterval(l),l=null)},1e3)}function b(){g?.(),g=null}async function A(L){p=!0;try{const M=await e.onPollOAuthLogin();if(m||d)return;if(M===null){if(u+=1,u>=lfe){k(),b(),n.value=!0,t.value="error",e.autoOpen?.settle(!1,{keepNavigated:!0}),Date.now()-c;return}T(L);return}u=0,M.status==="authenticated"?w(1200):M.status==="expired"||M.status==="cancelled"?(k(),b(),t.value="expired",e.autoOpen?.settle(!1),Date.now()-c,M.status,void 0):T(L)}finally{p=!1}}function T(L){r&&clearTimeout(r),r=setTimeout(()=>{r=null,A(L)},L*1e3)}function S(){t.value!=="device-code"||i.value===null||d||p||(r&&(clearTimeout(r),r=null),A(i.value.interval))}async function x(L){L!==void 0&&(h=L),k(),b(),i.value=null,n.value=!1,u=0,d=!1,c=Date.now(),t.value="starting",s.value=!1,e.autoOpen?.onGesture?.();const M=await e.onStartOAuthLogin(h);if(m){M!==null&&M.status!=="authenticated"&&e.onCancelOAuthLogin();return}if(!M){t.value="error",e.autoOpen?.settle(!1);return}if(M.status==="authenticated"){e.autoOpen?.settle(!0),w(800);return}if(i.value={flowId:M.flowId,verificationUri:M.verificationUri,verificationUriComplete:M.verificationUriComplete,userCode:M.userCode,expiresIn:M.expiresIn,interval:M.interval},o.value=M.expiresIn,t.value="device-code",e.autoOpen){const N=e.autoOpen.openUrl(M.verificationUriComplete,M.flowId);if(N===!1)s.value=!0;else if(N instanceof Promise){const I=M.flowId;N.then(z=>{!z&&!m&&i.value?.flowId===I&&(s.value=!0)})}}y(),T(M.interval),g=e.authWake?.subscribe(S)??null}function _(){t.value!=="success"&&(k(),b(),e.autoOpen?.settle(!1),t.value==="device-code"&&!d&&(d=!0,e.onCancelOAuthLogin()))}return Y0()&&Bc(()=>{m=!0,_()}),{step:t,pollError:n,flow:i,secondsLeft:o,autoOpenBlocked:s,startFlow:x,cancelFlow:_,pollNow:S}}const afe={state:"idle"};function ufe(e){const t=K(afe),n=K(gs(un.updateSkippedVersion)),i=K(!1);if(typeof e?.getUpdateAutoDownload=="function"&&e.getUpdateAutoDownload().then(s=>{i.value=s}).catch(()=>{}),e!==void 0){let s=!1;e.onUpdateStatus(r=>{s=!0,t.value=r}),e.getUpdateStatus().then(r=>{s||(t.value=r)}).catch(()=>{})}const o=F(()=>{const s=t.value;return!(s.state==="idle"||s.state==="available"&&s.version!==void 0&&s.version===n.value)});return{status:t,visible:o,canCheck:typeof e?.checkForUpdates=="function",autoDownload:i,canToggleAutoDownload:typeof e?.getUpdateAutoDownload=="function"&&typeof e?.setUpdateAutoDownload=="function",setAutoDownload:(s,r)=>{i.value=s,typeof e?.setUpdateAutoDownload=="function"&&e.setUpdateAutoDownload(s).then(()=>{}).catch(()=>{})},skipVersion:()=>{const s=t.value.version;t.value.state==="available"&&s!==void 0&&(n.value=s,is(un.updateSkippedVersion,s))},check:async()=>{if(typeof e?.checkForUpdates!="function")return Promise.resolve({outcome:"unsupported"});const s=await e.checkForUpdates().catch(()=>({outcome:"error",message:"bridge call failed"}));return s.outcome==="available"&&s.version!==void 0&&s.version===n.value&&(n.value=null,_r(un.updateSkippedVersion)),s},download:()=>{e?.downloadUpdate().catch(()=>{})},install:()=>{e?.installUpdate().catch(()=>{})}}}let C3=null;function cfe(){return C3===null&&(C3=ufe(window.kimiDesktop)),C3}class dfe{transcript;sessionId;agentId;fetchPage;pageSize;onChange;onGap;refreshPromise=null;buffered=[];agents_=[];seq_;loadingOlder_=!1;loadOlderError_=!1;refreshError_=!1;constructor(t){this.sessionId=t.sessionId,this.agentId=t.agentId,this.transcript=new SJ(t.agentId),this.fetchPage=t.fetchPage,this.pageSize=t.pageSize??20,this.onChange=t.onChange,this.onGap=t.onGap}get snapshot(){return this.transcript.snapshot()}get seq(){return this.seq_}get agents(){return this.agents_}get loading(){return this.refreshPromise!==null}get loadingOlder(){return this.loadingOlder_}get loadOlderError(){return this.loadOlderError_}get refreshError(){return this.refreshError_}refresh(){if(this.refreshPromise!==null)return this.refreshPromise;this.refreshError_=!1;const t=this.fetchPage({pageSize:this.pageSize}).then(n=>this.applyPage(n,!0)).catch(n=>{throw this.refreshError_=!0,n}).finally(()=>{this.refreshPromise=null;const n=this.buffered;this.buffered=[];for(const i of n)this.applyOps(i.ops,i.seq);this.onChange?.()});return this.refreshPromise=t,this.onChange?.(),t}receiveReset(t,n){this.transcript.receive([{op:"reset",agentId:this.agentId,snapshot:t}]),n!==void 0&&(this.seq_=n),this.refreshError_=!1,this.onChange?.()}applyOps(t,n){if(this.refreshPromise!==null||this.loadingOlder_)return this.buffered.push({ops:t,...n!==void 0?{seq:n}:{}}),!1;if(n!==void 0&&this.seq_!==void 0){if(n<=this.seq_)return!0;if(n!==this.seq_+1)return this.onGap?.(),!1}const i=this.transcript.apply(t);return n!==void 0&&(this.seq_=n),i.gap!==void 0&&this.onGap?.(),i.accepted.length>0&&this.onChange?.(),i.gap===void 0}async loadOlder(){if(!this.snapshot.hasMoreOlder||this.loadingOlder_)return;const t=this.snapshot.items.find(n=>n.kind==="turn");if(t?.kind==="turn"){this.loadingOlder_=!0,this.loadOlderError_=!1,this.onChange?.();try{const n=await this.fetchPage({beforeTurn:t.turnId,pageSize:this.pageSize});this.applyPage(n,!1)}catch(n){throw this.loadOlderError_=!0,n}finally{this.loadingOlder_=!1;const n=this.buffered;this.buffered=[];for(const i of n)this.applyOps(i.ops,i.seq);this.onChange?.()}}}applyPage(t,n){this.agents_=t.agents;const i=this.snapshot,o=n?t:{...t,items:ffe(t.items,i.items),hasMoreOlder:t.hasMoreOlder};this.receiveReset(o,n?t.seq:void 0)}}function ffe(e,t){const n=new Set,i=[];for(const o of[...e,...t]){const s=o.kind==="turn"?o.turnId:o.kind==="marker"?o.markerId:o.refId;n.has(s)||(n.add(s),i.push(o))}return i}function hfe(e){const t=cN(new Map),n=new Map,i=new Map,o=new Set;let s=null,r=null;function l(){s!==null&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(s),s=null),r!==null&&(clearTimeout(r),r=null);for(const b of o)b.version.value+=1;o.clear()}function a(b){o.add(b),!(s!==null||r!==null)&&(typeof requestAnimationFrame=="function"&&(s=requestAnimationFrame(l)),r=setTimeout(l,50))}function u(b,A){return`${b}\0${A}`}function c(b,A,T){const S=e.getEventConnection();S!==null&&(S.subscribeTranscript(b,A,T),i.set(b,A))}function d(b,A){const T=u(b,A),S=t.get(T);if(S!==void 0)return S;const x={channel:new dfe({sessionId:b,agentId:A,fetchPage:_=>e.api.getSessionTranscript(b,{..._,agentId:A}),onChange:()=>{a(x)},onGap:()=>{h(x)}}),version:K(0),baselineLoaded:!1,resumePromise:null};return t.set(T,x),x}async function h(b){if(b.resumePromise!==null)return b.resumePromise;const A=p(b).finally(()=>{b.resumePromise===A&&(b.resumePromise=null)});return b.resumePromise=A,A}async function p(b){const A=()=>t.get(u(b.channel.sessionId,b.channel.agentId))===b;try{await b.channel.refresh(),b.baselineLoaded=!0,A()&&n.get(b.channel.sessionId)===b.channel.agentId&&c(b.channel.sessionId,b.channel.agentId,b.channel.seq)}catch{A()&&n.get(b.channel.sessionId)===b.channel.agentId&&c(b.channel.sessionId,b.channel.agentId)}}function g(b,A){e.connectEventsIfNeeded(),n.set(b,A);const T=d(b,A);return T.baselineLoaded?c(b,A,T.channel.seq):h(T),T}function m(b,A){if(n.get(b)!==A)return;n.delete(b);const T=i.get(b);T!==void 0&&(e.getEventConnection()?.unsubscribeTranscript(b,[T]),i.delete(b));const S=u(b,A),x=t.get(S);x!==void 0&&(t.delete(S),o.delete(x))}function k(b,A,T,S){if(n.get(b)!==A)return;const x=d(b,A);x.channel.receiveReset(T,S),x.baselineLoaded=!0}function w(b,A,T,S){return n.get(b)!==A?!0:d(b,A).channel.applyOps(T,S)}function y(b){n.delete(b),i.delete(b)&&e.getEventConnection()?.unsubscribeTranscript(b);for(const[A,T]of t)T.channel.sessionId===b&&(t.delete(A),o.delete(T))}return{getEntry:(b,A)=>t.get(u(b,A)),activate:g,deactivate:m,receiveReset:k,applyOps:w,forgetSession:y}}async function pfe(){const e=await fetch("/v1/remote/devices",{credentials:"same-origin"});if(!e.ok)throw new Error(`rc devices fetch failed: ${e.status}`);const t=await e.json();return{devices:Array.isArray(t.devices)?t.devices:[],max_devices:typeof t.max_devices=="number"?t.max_devices:void 0}}const gfe=["aria-label","aria-expanded"],mfe={class:"rc-dev-name"},vfe={key:0,class:"rc-dev-state"},yfe={key:1,class:"rc-dev-state rc-dev-failed"},kfe={class:"rc-dev-caption"},bfe={class:"rc-dev-item-name"},Afe={class:"rc-dev-item-status"},Cfe={class:"rc-dev-item-check"},wfe={class:"rc-dev-caption"},xfe=["aria-current"],Sfe={class:"rc-dev-offline-row"},_fe={class:"rc-dev-item-name"},Mfe={class:"rc-dev-item-status"},Ife={class:"rc-dev-item-check"},Efe=Xe({__name:"RcDeviceSwitcher",setup(e){const{t}=zt(),n=rg(),i=Rle(window.location),o=Ple(window.location),s=K(null),r=K(void 0),l=K(!1),a=K(!1),u=F(()=>(s.value??[]).filter(L=>L.status==="online")),c=F(()=>(s.value??[]).filter(L=>L.status!=="online")),d=F(()=>s.value?.find(L=>L.device_id===o)?.platform??t("sidebar.rcSelectDevice"));let h=0;async function p(){const L=++h;s.value===null&&(l.value=!0);try{const M=await pfe();if(L!==h)return;s.value=M.devices,r.value=M.max_devices,a.value=!1}catch{if(L!==h)return;s.value===null&&(a.value=!0)}finally{L===h&&(l.value=!1)}g.value&&(await dt(),S())}cn(()=>{i&&p()});const g=K(!1),m=K({}),k=K(null),w=K(null);let y=null;function b(L){const M=L.target;M.closest(".rc-dev-menu")||M.closest(".rc-dev-trigger")||x()}function A(L){L.key==="Escape"&&(L.stopPropagation(),x())}async function T(){if(g.value){x();return}g.value=!0,document.addEventListener("mousedown",b),document.addEventListener("keydown",A,!0),window.addEventListener("resize",x),p(),await dt(),S();const L=w.value;L&&!n.value&&(y=new ResizeObserver(()=>S()),y.observe(L))}function S(){if(n.value)return;const L=w.value,M=k.value?.el;if(!L||!M)return;const N=L.getBoundingClientRect(),I=4,z=8,H=M.offsetHeight,O={left:`${Math.round(N.left)}px`,width:`${Math.round(N.width)}px`},R=window.innerHeight-N.bottom-I-z,j=N.top-I-z;H>R&&j>R?m.value={...O,top:"auto",bottom:`${Math.round(window.innerHeight-N.top+I)}px`,maxHeight:`${Math.round(j)}px`,transformOrigin:"bottom left","--menu-pop-shift":"2px"}:m.value={...O,top:`${Math.round(N.bottom+I)}px`,bottom:"auto",maxHeight:`${Math.round(R)}px`,transformOrigin:"top left","--menu-pop-shift":"-2px"}}function x(){g.value=!1,y?.disconnect(),y=null,document.removeEventListener("mousedown",b),document.removeEventListener("keydown",A,!0),window.removeEventListener("resize",x)}Hn(x);function _(L){L.device_id!==o&&window.location.assign(HB(Ole(L.device_id),window.location.search))}return(L,M)=>f(i)?(v(),E("div",{key:0,class:Fe(["rc-dev",{"rc-dev--mobile":f(n)}])},[C("button",{ref_key:"triggerRef",ref:w,class:"rc-dev-trigger",type:"button","aria-label":f(t)("sidebar.rcCurrentDevice",{name:d.value}),"aria-haspopup":"dialog","aria-expanded":g.value,onClick:wt(T,["stop"])},[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",mfe,D(d.value),1),U(f(ve),{class:"rc-dev-chevron",name:"chevron-down",size:"sm"})],8,gfe),(v(),ce(Ds,{to:"body",disabled:f(n)},[U(fo,{name:"menu-pop"},{default:de(()=>[g.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:k,class:Fe(["rc-dev-menu",{"rc-dev-menu--mobile":f(n)}]),role:"dialog",style:Kt(f(n)?void 0:m.value),onClick:M[0]||(M[0]=wt(()=>{},["stop"]))},{default:de(()=>[l.value?(v(),E("div",vfe,[U(f(Oi),{size:"sm"})])):a.value?(v(),E("div",yfe,D(f(t)("sidebar.rcDevicesLoadFailed")),1)):(v(),E(Ee,{key:2},[u.value.length>0?(v(),E(Ee,{key:0},[C("div",kfe,D(f(t)("sidebar.rcConnectable")),1),(v(!0),E(Ee,null,pt(u.value,N=>(v(),ce(f(Ut),{key:N.device_id,role:"button",size:f(n)?"lg":"md",active:N.device_id===f(o),"aria-current":N.device_id===f(o)?"true":void 0,onClick:I=>_(N)},{default:de(()=>[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",bfe,D(N.platform),1),C("span",Afe,[U(f(ml),{status:"ok"}),$e(D(f(t)("sidebar.rcOnline")),1)]),C("span",Cfe,[N.device_id===f(o)?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:2},1032,["size","active","aria-current","onClick"]))),128))],64)):X("",!0),c.value.length>0?(v(),E(Ee,{key:1},[C("div",wfe,D(f(t)("sidebar.rcUnavailable")),1),(v(!0),E(Ee,null,pt(c.value,N=>(v(),E("div",{key:N.device_id,class:Fe(["rc-dev-offline",{"is-current":N.device_id===f(o)}]),"aria-current":N.device_id===f(o)?"true":void 0},[C("div",Sfe,[U(f(ve),{name:"device-desktop",size:"sm"}),C("span",_fe,D(N.platform),1),C("span",Mfe,[U(f(ml)),$e(D(f(t)("sidebar.rcOffline")),1)]),C("span",Ife,[N.device_id===f(o)?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])])],10,xfe))),128))],64)):X("",!0)],64))]),_:1},8,["class","style"])):X("",!0)]),_:1})],8,["disabled"]))],2)):X("",!0)}}),M$=kt(Efe,[["__scopeId","data-v-4dd165fb"]]),Tfe=1e3,Lfe=4096,M_=32*1024;function Nfe(e,t,n){let i=null,o;const s=new Set;async function r(p){try{const m=await n.api.listTasks(p),k=e.tasksBySession[p]??[],w=new Map(k.map(A=>[A.id,A])),y=new Map(k.filter(A=>A.backgroundTaskId!==void 0).map(A=>[A.backgroundTaskId,A])),b=m.map(A=>{const T=w.get(A.id)??y.get(A.id),S=A.completedAt===void 0&&T?.completedAt===void 0&&T?.status==="running"&&A.status!=="running";return{...A,completedAt:A.completedAt??T?.completedAt??(S?new Date().toISOString():void 0),completedAtEstimated:A.completedAt!==void 0?void 0:T?.completedAt!==void 0?T.completedAtEstimated:S?!0:void 0}});e.tasksBySession={...e.tasksBySession,[p]:m_(b,k)},await l(p,m)}catch{}}async function l(p,g){if(e.activeSessionId!==p)return;const m=g??e.tasksBySession[p]??[],k=n.api,w=new Map;if(await Promise.all(m.map(async b=>{if((b.status==="completed"||b.status==="failed"||b.status==="cancelled")&&!s.has(b.id)&&!((b.outputLines?.length??0)>0))try{const T=await k.getTask(p,b.id,{withOutput:!0,outputBytes:M_});T.outputPreview!==void 0&&w.set(b.id,{preview:T.outputPreview,bytes:T.outputBytes}),s.add(b.id)}catch{}})),w.size===0)return;const y=e.tasksBySession[p]??[];e.tasksBySession={...e.tasksBySession,[p]:y.map(b=>{const A=w.get(b.id)??(b.backgroundTaskId!==void 0?w.get(b.backgroundTaskId):void 0);return A?{...b,outputPreview:A.preview,outputBytes:A.bytes}:b})}}async function a(p){if(e.activeSessionId!==p)return;const g=n.api;let m;try{m=await g.listTasks(p)}catch{return}const k=new Map;await Promise.all(m.map(async T=>{const S=T.status==="running",x=T.status==="completed"||T.status==="failed"||T.status==="cancelled";if(!(!S&&!x)&&!(x&&(s.has(T.id)||(T.outputLines?.length??0)>0)))try{const _=await g.getTask(p,T.id,{withOutput:!0,outputBytes:S?Lfe:M_});_.outputPreview!==void 0&&k.set(T.id,{preview:_.outputPreview,bytes:_.outputBytes}),x&&s.add(T.id)}catch{}}));const w=e.tasksBySession[p]??[],y=new Map(w.map(T=>[T.id,T])),b=new Map(w.filter(T=>T.backgroundTaskId!==void 0).map(T=>[T.backgroundTaskId,T])),A=m.map(T=>{const S=y.get(T.id)??b.get(T.id),x=k.get(T.id),_=T.completedAt===void 0&&S?.completedAt===void 0&&S?.status==="running"&&T.status!=="running";return{...T,outputLines:S?.outputLines,text:S?.text,completedAt:T.completedAt??S?.completedAt??(_?new Date().toISOString():void 0),completedAtEstimated:T.completedAt!==void 0?void 0:S?.completedAt!==void 0?S.completedAtEstimated:_?!0:void 0,outputPreview:x?.preview??S?.outputPreview,outputBytes:x?.bytes??S?.outputBytes}});e.tasksBySession={...e.tasksBySession,[p]:m_(A,w)}}function u(p){i!==null&&o===p||(c(),o=p,a(p),i=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||(e.activeSessionId===p?a(p):c())},Tfe))}function c(){i!==null&&(clearInterval(i),i=null),o=void 0,s.clear()}const d=K(0);let h=null;return Pe(()=>t.value.some(p=>p.status==="running"),p=>{p&&h===null?h=setInterval(()=>{d.value=(d.value+1)%Number.MAX_SAFE_INTEGER},1e3):!p&&h!==null&&(clearInterval(h),h=null)},{immediate:!0}),Pe(()=>{const p=e.activeSessionId;if(!p)return{sid:void 0,hasRunning:!1};const g=e.tasksBySession[p]??[];return{sid:p,hasRunning:g.some(m=>m.status==="running")}},({sid:p,hasRunning:g},m,k)=>{let w;g&&p!==void 0?u(p):p!==void 0?w=setTimeout(()=>{(e.tasksBySession[p]??[]).some(b=>b.status==="running")||c()},1500):c(),k(()=>{w!==void 0&&clearTimeout(w)})},{deep:!0,immediate:!0}),{taskClock:F(()=>d.value),loadTasksForSession:r}}function Ffe(e,t){const{api:n,pushOperationFailure:i,nextOptimisticMsgId:o,connectEventsIfNeeded:s,getEventConn:r,resolveThinkingForPrompt:l,refreshSessionStatus:a}=t,u=K({}),c=F(()=>{const j=e.activeSessionId;if(!j)return null;const $=u.value[j];return $?{parentId:j,agentId:$.agentId}:null}),d=F(()=>c.value?.parentId??null),h=F(()=>c.value!==null),p=F(()=>{const j=c.value;return j?!!e.sideChatSendingByAgent[j.agentId]:!1}),g=F(()=>{const j=c.value;return j?e.sideChatSendingByAgent[j.agentId]?!0:(e.tasksBySession[j.parentId]??[]).some($=>$.id===j.agentId&&$.status==="running"):!1}),m=j=>n.getFileUrl(j),k=[],w=hB(),y=F(()=>{const j=c.value;return j?w({messages:e.sideChatMessagesByAgent[j.agentId]??[],approvals:k,getFileUrl:m,sessionActive:g.value}):[]});function b(j,$){e.sideChatMessagesByAgent[j]=$(e.sideChatMessagesByAgent[j]??[])}function A(j,$){b(j,W=>[...W,$])}function T(j,$){b(j,W=>{const P=W.find(Z=>Z.id===$);return P?.promptId!==void 0||P?.userMessageId!==void 0?W:W.filter(Z=>Z.id!==$)})}function S(j,$){const W=e.sideChatUserMessageIdsBySession[j]??[];W.includes($)||(e.sideChatUserMessageIdsBySession={...e.sideChatUserMessageIdsBySession,[j]:[...W,$]})}function x(j,$,W,P){b(j,Z=>{const ae=Z.findIndex(q=>q.id===$);if(ae===-1)return Z;const V=Z.findIndex((q,ne)=>ne!==ae&&q.role==="user"&&(q.id===P||q.userMessageId===P||q.promptId===W)),Y=Z[ae],oe=V===-1?Y:Z[V];return Z.flatMap((q,ne)=>ne===V?[]:ne!==ae?[q]:[{...oe,id:Y.id,promptId:W,userMessageId:P,metadata:{...oe.metadata,...Y.metadata}}])})}function _(j,$){S($.sessionId,$.userMessageId??$.id),b(j,W=>{const P=W.findIndex(V=>V.role==="user"&&(V.userMessageId===($.userMessageId??$.id)||V.promptId!==void 0&&V.promptId===$.promptId));if(P===-1)return[...W,$];const Z=W[P],ae=[...W];return ae[P]={...$,id:Z.id,promptId:$.promptId??Z.promptId,userMessageId:$.userMessageId??$.id,metadata:{...$.metadata,...Z.metadata}},ae})}function L(j,$,W){W&&b(j,P=>{const Z=P.at(-1);if(Z?.role==="assistant"){const ae=Z.content[0],V=ae?.type==="text"?ae.text:"";return[...P.slice(0,-1),{...Z,content:[{type:"text",text:`${V}${W}`}]}]}return[...P,{id:o(),sessionId:$,role:"assistant",content:[{type:"text",text:W}],createdAt:new Date().toISOString()}]})}function M(j,$,W){if(e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[j]:!1},!W)return;const Z=(e.sideChatMessagesByAgent[j]??[]).at(-1);(Z?.role==="assistant"&&Z.content[0]?.type==="text"?Z.content[0].text:"").trim().length>0||L(j,$,W)}async function N(j){const $=e.activeSessionId;return $?I($,j):!1}async function I(j,$){if(!u.value[j]){let W;try{({agentId:W}=await n.startBtw(j))}catch(P){return i("openSideChat",P,{sessionId:j}),!1}e.sideChatMessagesByAgent={...e.sideChatMessagesByAgent,[W]:e.sideChatMessagesByAgent[W]??[]},u.value={...u.value,[j]:{agentId:W}},s(),r()?.markSideChannelAgent(j,W)}return $&&$.trim()?z(j,$.trim()):!0}async function z(j,$){const W=u.value[j],P=$.trim();if(!W||!P)return!1;const Z=j,ae=W.agentId;e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[ae]:!0};const V=o(),Y={id:V,sessionId:Z,role:"user",content:[{type:"text",text:P}],createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};A(ae,Y);let oe,q=!1;try{const ne=e.sessions.find(te=>te.id===Z),ie=(ne?.model&&ne.model.length>0?ne.model:e.defaultModel)??void 0,pe=await l(Z,ie)??e.thinking;oe=e.pendingThinkingBySession[Z],q=!0;const Ne=await n.submitPrompt(Z,{content:[{type:"text",text:P}],agentId:ae,model:ie,thinking:pe,permissionMode:e.permission,planMode:e.planModeBySession[Z]??!1,swarmMode:e.swarmModeBySession[Z]??!1});return pe!==void 0&&Au(e,Z,oe),u.value[Z]?.agentId===ae&&(x(ae,V,Ne.promptId,Ne.userMessageId),S(Z,Ne.userMessageId)),!0}catch(ne){return Au(e,Z,oe)&&a(Z),i("sendSideChatPrompt",ne,{sessionId:Z}),u.value[Z]?.agentId===ae&&(T(ae,V),e.sideChatSendingByAgent={...e.sideChatSendingByAgent,[ae]:!1}),!(!q||ne instanceof cc)}}function H(){const j=e.activeSessionId;if(!j)return;const{[j]:$,...W}=u.value;u.value=W}async function O(j){const $=c.value;return $?z($.parentId,j):!1}function R(j){if(e.sideChatUserMessageIdsBySession[j]!==void 0){const{[j]:ae,...V}=e.sideChatUserMessageIdsBySession;e.sideChatUserMessageIdsBySession=V}const $=u.value[j];if(!$)return;const{[j]:W,...P}=u.value;u.value=P;const Z=$.agentId;if(Object.prototype.hasOwnProperty.call(e.sideChatMessagesByAgent,Z)){const{[Z]:ae,...V}=e.sideChatMessagesByAgent;e.sideChatMessagesByAgent=V}if(Object.prototype.hasOwnProperty.call(e.sideChatSendingByAgent,Z)){const{[Z]:ae,...V}=e.sideChatSendingByAgent;e.sideChatSendingByAgent=V}}return{sideChatTargetBySession:u,sideChatSessionId:d,sideChatVisible:h,sideChatSending:p,sideChatRunning:g,sideChatTurns:y,appendSideChatAssistantText:L,finishSideChatAgent:M,reconcileSideChatUserMessage:_,openSideChat:N,openSideChatOn:I,closeSideChat:H,sendSideChatPrompt:O,clearSideChatForSession:R}}/*! + * pinia v4.0.3 + * (c) 2026 Eduardo San Martin Morote + * @license MIT + */let I$;const p9=e=>I$=e,E$=Symbol();function I_(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}function Dfe(){const e=F5(!0),t=e.run(()=>K({}));let n=[],i=[];const o=St({install(s){p9(o),o._a=s,s.provide(E$,o),s.config.globalProperties.$pinia=o,i.forEach(r=>n.push(r)),i=[]},use(s){return this._a?n.push(s):i.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const f8=()=>{};function E_(e,t,n,i=f8){e.add(t);const o=()=>{e.delete(t)&&i()};return!n&&Y0()&&Bc(o),o}function Kf(e,...t){e.forEach(n=>{n(...t)})}const Bfe=e=>e(),T_=Symbol(),w3=Symbol();function h8(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!Object.hasOwn(t,n))continue;const i=t[n],o=e[n];I_(o)&&I_(i)&&Object.hasOwn(e,n)&&!io(i)&&!Ra(i)?e[n]=h8(o,i):e[n]=i}return e}const $fe=Symbol();function Rfe(e){return!e||typeof e!="object"||!Object.hasOwn(e,$fe)}const{assign:Ju}=Object;function zfe(e){return!!(io(e)&&e.effect)}function Ofe(e,t,n,i){const{state:o,actions:s,getters:r}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=o?o():{});const c=dq(n.state.value[e]);return Ju(c,s,Object.keys(r||{}).reduce((d,h)=>(d[h]=St(F(()=>{p9(n);const p=n._s.get(e);return r[h].call(p,p)})),d),{}))}return a=T$(e,u,t,n,i,!0),a}function T$(e,t,n={},i,o,s){let r;const l=Ju({actions:{}},n),a={deep:!0};let u,c,d=new Set,h=new Set,p;const g=i.state.value[e];!s&&!g&&(i.state.value[e]={});let m;function k(x){let _;u=c=!1,typeof x=="function"?(x(i.state.value[e]),_={type:"patch function",storeId:e,events:p}):(h8(i.state.value[e],x),_={type:"patch object",payload:x,storeId:e,events:p});const L=m=Symbol();dt().then(()=>{m===L&&(u=!0)}),c=!0,Kf(d,_,i.state.value[e])}const w=s?function(){const{state:_}=n,L=_?_():{};this.$patch(M=>{Ju(M,L)})}:f8;function y(){r.stop(),d.clear(),h.clear(),i._s.delete(e)}const b=(x,_="")=>{if(T_ in x)return x[w3]=_,x;const L=function(){p9(i);const M=Array.from(arguments),N=new Set,I=new Set;function z(R){N.add(R)}function H(R){I.add(R)}Kf(h,{args:M,name:L[w3],store:T,after:z,onError:H});let O;try{O=x.apply(this&&this.$id===e?this:T,M)}catch(R){throw Kf(I,R),R}return O instanceof Promise?O.then(R=>(Kf(N,R),R)).catch(R=>(Kf(I,R),Promise.reject(R))):(Kf(N,O),O)};return L[T_]=!0,L[w3]=_,L},A={_p:i,$id:e,$onAction:E_.bind(null,h),$patch:k,$reset:w,$subscribe(x,_={}){if(d.has(x))return f8;const L=E_(d,x,_.detached,()=>M()),M=r.run(()=>Pe(()=>i.state.value[e],N=>{(_.flush==="sync"?c:u)&&x({storeId:e,type:"direct",events:p},N)},Ju({},a,_)));return L},$dispose:y},T=jo(A);i._s.set(e,T);const S=(i._a&&i._a.runWithContext||Bfe)(()=>i._e.run(()=>(r=F5()).run(()=>t({action:b}))));for(const x in S){const _=S[x];io(_)&&!zfe(_)||Ra(_)?s||(g&&Rfe(_)&&(io(_)?_.value=g[x]:((_ instanceof Set||_ instanceof Map)&&_.clear(),h8(_,g[x]))),i.state.value[e][x]=_):typeof _=="function"&&(S[x]=b(_,x),l.actions[x]=_)}return Ju(T,S),Ju(si(T),S),Object.defineProperty(T,"$state",{get:()=>i.state.value[e],set:x=>{k(_=>{Ju(_,x)})}}),i._p.forEach(x=>{const _=r.run(()=>x({store:T,app:i._a,pinia:i,options:l}));Ju(T,_)}),g&&s&&n.hydrate&&n.hydrate(T.$state,g),u=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function lg(e,t,n){let i;const o=typeof t=="function";i=o?n:t;function s(r,l){const a=wq();return r=r||(a?hn(E$,null):null),r&&p9(r),r=I$,r._s.has(e)||(o?T$(e,t,i,r):Ofe(e,i,r)),r._s.get(e)}return s.$id=e,s}const Pfe={api:()=>{throw new Error("[@moonshot-ai/app-client] client deps not installed — call setKimiClientDeps() at app bootstrap")},t:e=>e},ca=globalThis.__kimiAppClientDeps??={current:Pfe};function jfe(e){ca.current=e}const Hfe=new Proxy({},{get(e,t){return ca.current.api()[t]}});function Wt(){return Hfe}function gi(e,t){return ca.current.t(e,t)}function Wfe(e,t){ca.current.traceClientEvent?.(e,t)}function Ll(e,t){ca.current.traceKeyEvent?.(e,t)}function qfe(){return ca.current.sessionExportTraceToJsonl?.()??""}function p8(e){ca.current.onSessionDestroyed?.(e)}function Ufe(e,t,n){ca.current.onWorkspaceDestroyed?.(e,t,n)}function Kfe(e){return ca.current.consumeSessionIntent?.(e)??e}function Vfe(e){return ca.current.onPluginsShelfEvent?(ca.current.onPluginsShelfEvent(e),!0):!1}const f1=Dfe(),L$=un.starredModels;function Zfe(){try{const e=gs(L$);if(!e)return[];const t=JSON.parse(e);if(Array.isArray(t)&&t.every(n=>typeof n=="string"))return t}catch{}return[]}function Gfe(e){try{is(L$,JSON.stringify(e))}catch{}}const Qfe=lg("kimi.models",()=>{const e=K([]),t=K(Zfe()),n=K([]),i=K({}),o=K({}),s=K({}),r=K({}),l=new Set,a=new Set,u=K(null);function c(y){e.value=y}function d(y){n.value=y}function h(y){u.value=y}function p(y,b){i.value={...i.value,[y]:b}}function g(y,b){o.value={...o.value,[y]:b}}function m(y){const b=new Set(t.value);b.has(y)?b.delete(y):b.add(y),t.value=Array.from(b),Gfe(t.value)}async function k(y){if(l.has(y))return;l.add(y);const b={...s.value};delete b[y],s.value=b;try{const A=await Wt().listSkills(y);p(y,A)}catch{}finally{l.delete(y),s.value={...s.value,[y]:!0}}}async function w(y){if(a.has(y))return;a.add(y);const b={...r.value};delete b[y],r.value=b;try{const A=await Wt().listSkillsForWorkspace(y);g(y,A)}catch{}finally{a.delete(y),r.value={...r.value,[y]:!0}}}return{models:e,starredModelIds:t,providers:n,draftModel:u,skillsBySession:i,skillsByWorkspace:o,skillsFetchedBySession:s,skillsFetchedByWorkspace:r,setModels:c,setProviders:d,setDraftModel:h,setSkillsForSession:p,setSkillsForWorkspace:g,toggleStarModel:m,loadSkillsForSession:k,loadSkillsForWorkspace:w}});function g8(){return Qfe(f1)}const L_=new Error("profile persist failed");function Yfe(e,t){const{api:n,pushOperationFailure:i,refreshSessionStatus:o,persistSessionProfile:s,savePlanModeToStorage:r,activity:l,updateSession:a,updateSessionMessages:u,loadConfig:c,checkAuth:d,beginLocalTurn:h,settleLocalTurn:p}=t,g=g8();function m(q){if(!(q==null||q.length===0))return g.models.find(ne=>ne.id===q)??g.models.find(ne=>ne.model===q)}function k(){const q=e.activeSessionId?e.sessions.find(ie=>ie.id===e.activeSessionId):void 0,ne=q===void 0?g.draftModel??e.defaultModel:q.model||e.defaultModel;return m(ne)?.id??ne??void 0}function w(q){if(q===void 0)return;const ne=m(q);return ne===void 0?void 0:_0(ne)}function y(q,ne){const ie=q==null?void 0:e.thinkingBySession[q];return ie!==void 0&&Ure(ne,ie)?ie:_0(ne)}function b(q,ne){if(ne===void 0)return;const ie=m(ne);return ie===void 0?void 0:y(q,ie)}async function A(q,ne){return q!=null&&e.thinkingBySession[q]===void 0&&await o(q),b(q,ne)}function T(q){e.thinking=q;const ne=e.activeSessionId;return q!==void 0&&ne!==null&&ne!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:q},Ob(e,ne)),q}Pe([()=>e.activeSessionId,()=>k(),()=>{const q=e.activeSessionId;return q==null?void 0:e.thinkingBySession[q]}],()=>{const q=m(k());q!==void 0&&(e.thinking=y(e.activeSessionId,q))});function S(q){n.setConfig({thinking:Kre(q,m(k())?.supportEfforts)}).catch(ne=>i("setConfig",ne))}async function x(){try{g.setModels(await n.listModels());const q=m(k());q!==void 0&&(e.thinking=y(e.activeSessionId,q))}catch(q){i("loadModels",q)}}async function _(){try{g.setProviders(await n.listProviders())}catch(q){i("loadProviders",q)}}async function L(q){const ne=e.activeSessionId,ie=m(q),pe=e.thinking,Ne=ne?e.sessions.find(ue=>ue.id===ne)?.model:void 0,te=k()!==(ie?.id??q),be=Vre(ie,pe,te);if(!ne)return g.setDraftModel(q),e.thinking=be,be!==pe&&be!==void 0&&S(be),!0;a(ne,ue=>({...ue,model:q}));let Q;be!==pe&&(e.thinking=be,be!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:be},Q=Ob(e,ne)));try{await n.updateSession(ne,{model:q,thinking:be!==pe?be:void 0})}catch(ue){return a(ne,Ae=>({...Ae,model:Ne??Ae.model})),be!==pe&&(e.thinking=pe,pe!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[ne]:pe}),Au(e,ne,Q)&&o(ne)),i("setModel",ue,{sessionId:ne}),!1}return be!==pe&&be!==void 0&&S(be),Au(e,ne,Q),await o(ne),!0}async function M(q,ne,ie,pe,Ne){const te=pe??e.activeSessionId;if(!te)return!1;const be=l.value==="idle"&&!e.inFlightBySession[te],Q=`msg_skill_opt_${Date.now().toString(36)}`,ue=be?h(te):void 0;let Ae=!1;if(be){e.inFlightBySession={...e.inFlightBySession,[te]:!0};const se={id:Q,sessionId:te,role:"user",content:[{type:"text",text:`/${q}${ne?` ${ne}`:""}`},...T2(ie)],createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0,origin:{kind:"skill_activation",trigger:"user-slash",skillName:q,skillArgs:ne}}};u(te,re=>[...re,se])}try{if(Ne?.skipThinkingPersist!==!0){const se=e.sessions.find(ge=>ge.id===te)?.model,re=(se&&se.length>0?se:e.defaultModel)??void 0,G=e.planArmedBySession[te]??!1;if(!await s({thinking:await A(te,re)??e.thinking,swarmMode:e.swarmModeBySession?.[te]??!1,permissionMode:e.permission,...G?{planMode:!0}:{}},te))throw L_;G&&(e.planArmedBySession={...e.planArmedBySession,[te]:!1},r(),e.planModeBySession={...e.planModeBySession,[te]:!0})}return Ae=!0,await n.activateSkill(te,q,ne,T2(ie)),!0}catch(se){return be&&(e.inFlightBySession={...e.inFlightBySession,[te]:!1},u(te,re=>re.filter(G=>G.id!==Q))),se!==L_&&i("activateSkill",se,{sessionId:te}),!(!Ae||se instanceof cc)}finally{ue!==void 0&&p(te,ue)}}async function N(q){return n.getProvider(q)}async function I(q){try{return await n.addProvider(q),await Promise.all([_(),x(),c()]),await d(),null}catch(ne){return fu("[kimi-code] operation failed: addProvider",ne),ne instanceof Error?ne.message:String(ne)}}async function z(q,ne){try{return await n.updateProvider(q,ne),await Promise.all([_(),x(),c()]),null}catch(ie){return fu("[kimi-code] operation failed: updateProvider",ie),ie instanceof Error?ie.message:String(ie)}}async function H(q){try{const ne=await n.deleteProvider(q);return await Promise.all([_(),x(),c()]),await d(),ne}catch(ne){return i("deleteProvider",ne),null}}async function O(q){try{const ne=await n.refreshProvider(q);for(const ie of ne.failed)i("refreshProvider",new Error(ie.reason),{message:ie.provider});await Promise.all([_(),x(),c()])}catch(ne){i("refreshProvider",ne)}}async function R(){try{const q=await n.refreshAllProviders();for(const ne of q.failed)i("refreshAllProviders",new Error(ne.reason),{message:ne.provider});await Promise.all([_(),x(),c()])}catch(q){i("refreshAllProviders",q)}}async function j(){try{return{kind:"ok",items:await n.listCatalogProviders()}}catch(q){return q instanceof cc&&q.code===void 0?{kind:"unsupported"}:(fu("[kimi-code] operation failed: loadCatalogProviders",q),{kind:"error"})}}async function $(q){try{return await n.importCatalogProvider(q),await Promise.all([_(),x(),c()]),await d(),null}catch(ne){return fu("[kimi-code] operation failed: importCatalogProvider",ne),ne instanceof Error?ne.message:String(ne)}}async function W(q){try{const ne=await n.importCustomRegistry(q);return await Promise.all([_(),x(),c()]),await d(),ne}catch(ne){return fu("[kimi-code] operation failed: importCustomRegistry",ne),ne instanceof Error?ne.message:String(ne)}}async function P(q){try{return await n.startOAuthLogin(q)}catch{return null}}async function Z(){return n.getOAuthRegion()}async function ae(){try{return await n.pollOAuthLogin()}catch(q){return bu("[kimi-code] pollOAuthLogin failed",q),null}}async function V(){try{await n.cancelOAuthLogin()}catch{}}async function Y(){try{return await n.getUsage()}catch(q){return{kind:"error",message:q instanceof Error?q.message:String(q)}}}function oe(q){const ne=T(q);s({thinking:ne}),ne!==void 0&&S(ne)}return{models:F(()=>g.models),starredModelIds:F(()=>g.starredModelIds),providers:F(()=>g.providers),draftModel:F(()=>g.draftModel),skillsBySession:F(()=>g.skillsBySession),skillsByWorkspace:F(()=>g.skillsByWorkspace),skillsFetchedBySession:F(()=>g.skillsFetchedBySession),skillsFetchedByWorkspace:F(()=>g.skillsFetchedByWorkspace),loadSkillsForSession:g.loadSkillsForSession,loadSkillsForWorkspace:g.loadSkillsForWorkspace,loadModels:x,loadProviders:_,setModel:L,thinkingLevelForModelId:w,thinkingLevelForSessionId:b,resolveThinkingForPrompt:A,toggleStarModel:g.toggleStarModel,activateSkill:M,addProvider:I,updateProvider:z,deleteProvider:H,getProvider:N,loadCatalogProviders:j,importCatalogProvider:$,importCustomRegistry:W,refreshProvider:O,refreshAllProviders:R,startOAuthLogin:P,pollOAuthLogin:ae,cancelOAuthLogin:V,getOAuthRegion:Z,getUsage:Y,setThinking:oe}}const Jfe=lg("kimi.approvals",()=>{const e=K({}),t=K({});function n(c){Or(e.value,c)}function i(c){Or(t.value,c)}function o(c,d){e.value[c]=d}function s(c,d){t.value[c]=d}function r(c,d){const h=e.value[c]??[];e.value[c]=h.filter(p=>p.approvalId!==d)}function l(c,d){const h=t.value[c]??[];t.value[c]=h.filter(p=>p.questionId!==d)}function a(c){delete e.value[c]}function u(c){delete t.value[c]}return{approvalsBySession:e,questionsBySession:t,applyApprovalsDiff:n,applyQuestionsDiff:i,setSessionApprovals:o,setSessionQuestions:s,removePendingApproval:r,removePendingQuestion:l,clearSessionApprovals:a,clearSessionQuestions:u}});function qs(){return Jfe(f1)}const Xfe=lg("kimi.sessions",()=>{const e=K([]),t=K(void 0),n=K(g$());function i(p){e.value=p}function o(p,g){e.value=e.value.map(m=>m.id===p?g(m):m)}function s(p){e.value=VB(e.value,p)}function r(p){e.value=[...e.value,p]}function l(p){e.value=e.value.filter(g=>g.id!==p)}function a(p){t.value=p}function u(p){const g=_le(n.value,p);g!==n.value&&(n.value=g,y3(g))}function c(p){const g=Mle(n.value,p);g!==n.value&&(n.value=g,y3(g))}function d(p){const g=new Set(p),m=n.value.filter(k=>!g.has(k));m.length!==n.value.length&&(n.value=m,y3(m))}function h(p){n.value.includes(p)?c(p):u(p)}return{sessions:e,activeSessionId:t,pinnedSessionIds:n,setSessions:i,updateSession:o,upsertSessionSorted:s,appendSession:r,removeSession:l,setActiveSessionId:a,pinSession:u,unpinSession:c,unpinSessions:d,togglePinSession:h}});function or(){return Xfe(f1)}const ehe=40409;function the(e){return!e||e.state!=="open"&&e.state!=="closed"&&e.state!=="merged"?null:{number:e.number,state:e.state,url:e.url}}function nhe(e,t){return e==null||t==null?e==null&&t==null:e.number===t.number&&e.state===t.state&&e.url===t.url}const ihe=lg("kimi.files",()=>{const e=K(null),t=K([]),n=K(!1),i=K(null),o=K(!1),s=K({});async function r(d){const h=or().activeSessionId;if(!h)return null;try{const g=await Wt().readFile(h,{path:d});return{path:g.path,content:g.content,encoding:g.encoding,mime:g.mime,languageId:g.languageId,isBinary:g.isBinary,size:g.size,lineCount:g.lineCount}}catch(p){if(bu("[kimi-code] readFileContent failed for",d,p),ko(p)&&p.code===ehe)throw p;return null}}async function l(d){const h=or().activeSessionId;if(h){e.value=d,t.value=[],i.value=null,o.value=!1,n.value=!0;try{const g=await Wt().getFileDiff(h,d);if(e.value!==d||or().activeSessionId!==h)return;const m=Zse(g.diff);if(t.value=m,m.length===0){const w=await r(d).catch(()=>null);if(e.value!==d||or().activeSessionId!==h)return;o.value=w!==null&&w.size===0;return}n.value=!1;const k=await $se(m,{truncated:g.truncated,readNewText:async()=>{const w=await r(d).catch(()=>null);return!w||w.isBinary||w.encoding!=="utf-8"?null:w.content}});if(e.value!==d||or().activeSessionId!==h)return;i.value=k}catch(p){e.value===d&&(t.value=[]),bu("[loadFileDiff] diff unavailable for",d,p)}finally{e.value===d&&(n.value=!1)}}}function a(){e.value=null,t.value=[],i.value=null,o.value=!1,n.value=!1}async function u(d){try{const p=await Wt().getGitStatus(d);s.value[d]=p;const g=the(p.pullRequest);or().updateSession(d,m=>nhe(m.pullRequest,g)?m:{...m,pullRequest:g})}catch{}}function c(d){delete s.value[d]}return{selectedDiffPath:e,fileDiffLines:t,fileDiffLoading:n,fileDiffTexts:i,fileDiffEmptyFile:o,gitStatusBySession:s,readFileContent:r,loadFileDiff:l,clearFileDiff:a,loadGitStatus:u,clearSessionGitStatus:c}});function Hs(){return ihe(f1)}const ohe=50,mp=5,j6=5,dc=50,N_=40401,she=40402,rhe=40410,F_=40409,lhe=40902,ahe=2e3,uhe=10;function x3(e){return ko(e)&&e.code===lhe}const che=40904;function dhe(e){return ko(e)&&e.code===che}const pd=jo({}),Fm=jo({}),S3=jo({}),wa=jo(new Set),g9=new Map,uf=new Map,L2=new Map;let fhe=0;const xd=new Map,hhe=3,iu=new Map,vp=new Map,phe=3,xv=new Map;function ghe(e){const t=xv.get(e);if(!(t!==void 0&&(t.done||t.attempts>=phe))){xv.set(e,{attempts:(t?.attempts??0)+1,done:!1});try{Wt().generateSessionTitle(e,{source:"first_turn"}).then(n=>{n!==null&&xv.set(e,{attempts:0,done:!0})}).catch(()=>{})}catch{}}}let D_=0;function mhe(){return D_+=1,`${Date.now().toString(36)}-${D_}`}function vhe(e){return{generation:g9.get(e)??0,pending:(uf.get(e)?.size??0)>0}}function m8(e){const t=++fhe;g9.set(e,t);const n=uf.get(e)??new Set;return n.add(t),uf.set(e,n),t}function v8(e,t){const n=uf.get(e);if(n===void 0||(n.delete(t),n.size>0))return;uf.delete(e);const i=L2.get(e);L2.delete(e),i?.()}function yhe(e){g9.delete(e),uf.delete(e),L2.delete(e),xd.delete(e),iu.delete(e),vp.delete(e)}function khe(e,t){return!t.pending&&t.generation===(g9.get(e)??0)}function bhe(e,t){if((uf.get(e)?.size??0)===0){t();return}L2.set(e,t)}function Ahe(e,t){const{confirm:n}=Vc(),{taskPoller:i,sideChat:o,modelProvider:s,pushOperationFailure:r,notify:l,activity:a,sessionsKnownEmpty:u,setSessions:c,updateSession:d,upsertSessionSorted:h,appendSession:p,forgetSession:g,unpinSessions:m,setActiveSessionId:k,updateSessionMessages:w,nextOptimisticMsgId:y,getEventConn:b,syncSessionFromSnapshot:A,reopenSession:T,hasLoadedMessages:S,refreshSessionStatus:x,refreshSessionGoal:_,refillSessionGoalOnReload:L,refreshSessionPlans:M,settlePlanReviewLocally:N,persistSessionProfile:I,mergedWorkspaces:z,workspacesView:H,status:O,workspaceIdForSession:R,savePermissionToStorage:j,savePlanModeToStorage:$,saveSwarmModeToStorage:W,saveGoalModeToStorage:P,draftModes:Z,saveUnread:ae,saveActiveWorkspaceToStorage:V,saveHiddenWorkspacesToStorage:Y,goalErrorMessage:oe,initialized:q,connectIssue:ne}=t;let ie=0,pe=!1;function Ne(ee,me,Me,Re){w(ee,Qe=>{const Je=Qe.findIndex(fn=>fn.id===me);if(Je===-1)return Qe;const ft=Qe.findIndex((fn,dn)=>dn!==Je&&fn.role==="user"&&(fn.id===Re||fn.userMessageId===Re||fn.promptId===Me)),vt=Qe[Je],Pt=ft===-1?vt:Qe[ft];return Qe.flatMap((fn,dn)=>dn===ft?[]:dn!==Je?[fn]:[{...Pt,id:vt.id,promptId:Me,userMessageId:Re,metadata:{...Pt.metadata,...vt.metadata}}])})}async function te(ee){if(e.messagesLoadingMoreBySession[ee])return;const me=e.messagesBySession[ee];if(!me||me.length===0)return;const Me=me[0].id;e.messagesLoadingMoreBySession={...e.messagesLoadingMoreBySession,[ee]:!0},e.messagesLoadMoreErrorBySession={...e.messagesLoadMoreErrorBySession,[ee]:!1};try{const Re=await Wt().listMessages(ee,{beforeId:Me,pageSize:ohe}),Qe=[...Re.items].reverse();w(ee,Je=>[...Qe,...Je]),e.messagesHasMoreBySession={...e.messagesHasMoreBySession,[ee]:Re.hasMore}}catch(Re){e.messagesLoadMoreErrorBySession={...e.messagesLoadMoreErrorBySession,[ee]:!0},r("loadOlderMessages",Re,{sessionId:ee})}finally{e.messagesLoadingMoreBySession={...e.messagesLoadingMoreBySession,[ee]:!1}}}function be(ee,me){i.loadTasksForSession(ee),Hs().loadGitStatus(ee),me?.skipStatus!==!0&&x(ee),_(ee),M(ee),Object.prototype.hasOwnProperty.call(s.skillsBySession.value,ee)||s.loadSkillsForSession(ee)}let Q=0;async function ue(ee){try{const me=await Wt().getUserInfo();if(ee!==Q||e.managedProviderStatus!=="authenticated")return;e.managedUserInfo=me.kind==="ok"?me.userInfo:null,me.kind==="ok"?e.managedMembership=me.userInfo.userLevel===uhe?"free":"member":e.managedMembership=me.status===402?"free":null}catch{if(ee!==Q)return;e.managedProviderStatus==="authenticated"&&(e.managedUserInfo=null,e.managedMembership=null)}}async function Ae(){e.managedProviderStatus==="authenticated"&&await ue(++Q)}async function se(){const ee=++Q;try{const Me=await Wt().getAuth();return e.authReady=Me.ready,e.defaultModel=Me.defaultModel,e.managedProviderStatus=Me.managedProvider?.status??null,e.managedProviderStatus==="authenticated"?ue(ee):(e.managedUserInfo=null,e.managedMembership=null),ne.value=null,"proceed"}catch(me){return ko(me)&&(me.code===401||me.code===iD)?(ne.value=null,"server-auth-required"):(ne.value=(me instanceof Error?me.message:String(me)).slice(0,140),"retry")}}async function re(){let ee=!0;for(;;){const me=await se();if(me!=="retry")return me;ee&&(ne.value=null,ee=!1),await new Promise(Me=>{setTimeout(Me,ahe)})}}async function G(){try{const ee=Wt();e.config=await ee.getConfig()}catch{}}async function le(ee){try{const Me=await Wt().setConfig(ee);return e.config=Me,e.defaultModel=Me.defaultModel??null,!0}catch(me){return r("setConfig",me),!1}}const ge=100;async function ke(ee){const me=Wt(),Me=[];let Re,Qe;for(;ee?.shouldContinue?.()!==!1;){let Je;try{Je=await me.listSessions({pageSize:ge,beforeId:Re,excludeEmpty:!0})}catch(ft){if(Me.length===0)throw ft;Qe=ft;break}if(Me.push(...Je.items),!Je.hasMore||Je.items.length===0)break;Re=Je.items[Je.items.length-1].id}return{sessions:Me,error:Qe}}const Ie=new Set;function Oe(ee){const me=On.size===0?ee:ee.filter(ft=>!On.has(ft.id)),Me=new Set(me.map(ft=>ft.id)),Re=e.sessions.filter(ft=>Ie.has(ft.id)&&!Me.has(ft.id)&&!On.has(ft.id)),Qe=Re.length===0?me:[...me,...Re].sort((ft,vt)=>new Date(vt.updatedAt).getTime()-new Date(ft.updatedAt).getTime()),Je=new Map(e.sessions.map(ft=>[ft.id,ft]));c(Qe.map(ft=>{const vt=Je.get(ft.id);if(vt===void 0)return ft;const Pt=v2(ft.usage)&&!v2(vt.usage),fn=ft.pullRequest??vt.pullRequest,dn=(ft.model??"")===""?vt.model:ft.model;return!Pt&&fn===ft.pullRequest&&dn===ft.model?ft:{...ft,usage:Pt?vt.usage:ft.usage,pullRequest:fn,model:dn}}))}function we(ee){const me=[...ee],Me=new Set(me.map(Re=>Re.id));for(const Re of e.sessions)Me.has(Re.id)||(me.push(Re),Me.add(Re.id));return me.sort((Re,Qe)=>new Date(Qe.updatedAt).getTime()-new Date(Re.updatedAt).getTime()),me}async function Be(){const ee=Wt(),me={groupPageSize:mp,hasPrompt:!0};let Me;try{Me=await ee.listSessionGroupsV2(me)}catch(Ln){r("load",Ln);return}const Re=[...Me.groups];let Qe=Me.nextPageToken;for(;Qe!==null;){let Ln;try{Ln=await ee.listSessionGroupsV2({...me,pageToken:Qe})}catch(Sn){r("load",Sn);return}Re.push(...Ln.groups),Qe=Ln.nextPageToken}const Je=new Map(Re.map(Ln=>[Ln.workspace.id,Ln])),ft=new Map(Re.filter(Ln=>Ln.workspace.cwd!==null).map(Ln=>[ol(Ln.workspace.cwd),Ln])),vt=[],Pt=new Set,fn={},dn={},ui={};for(const Ln of e.workspaces){const Sn=Je.get(Ln.id)??ft.get(ol(Ln.root));if(Sn===void 0){fn[Ln.id]=!1,dn[Ln.id]=void 0,ui[Ln.id]=mp;continue}const fi=Sn.sessions.filter(Ui=>!On.has(Ui.id)&&(Ui.meta.last_prompt??"").length>0).map(Ui=>ym(Ui.workspace.cwd===null?{...Ui,workspace:{...Ui.workspace,cwd:Ln.root}}:Ui));for(const Ui of fi)Pt.has(Ui.id)||(vt.push(Ui),Pt.add(Ui.id));fn[Ln.id]=Sn.sessions.length0?fi[fi.length-1].id:void 0,ui[Ln.id]=Math.max(fi.length,mp)}e.sessionsHasMoreByWorkspace=fn,e.sessionsCursorByWorkspace=dn,e.sessionsInitialCountByWorkspace=ui,e.sessionsFullyLoaded=!1;for(const Ln of Re)for(const Sn of Ln.sessions){const fi=Sn.activity.status;(fi==="running"||fi==="approval"||fi==="question")&&tt.push(Sn.id)}return vt.sort((Ln,Sn)=>new Date(Sn.updatedAt).getTime()-new Date(Ln.updatedAt).getTime()),vt}const tt=[];async function ut(ee){const me=e.lastSeqBySession[ee]??0;let Me;try{Me=await Wt().getSession(ee)}catch{return}(e.lastSeqBySession[ee]??0)>me||d(ee,Re=>({...Re,busy:Me.busy,mainTurnActive:Me.mainTurnActive??Re.mainTurnActive,pendingInteraction:Me.pendingInteraction??Re.pendingInteraction,lastTurnReason:Me.lastTurnReason??Re.lastTurnReason}))}async function _t(){if(tt.length=0,e.workspaces.length===0){const me=await ke(),Me=me.error===void 0?me.sessions:we(me.sessions);return e.sessionsHasMoreByWorkspace={},e.sessionsCursorByWorkspace={},e.sessionsInitialCountByWorkspace={},e.sessionsFullyLoaded=me.error===void 0,me.error!==void 0&&r("load",me.error),Me}return Be()}async function Ct(ee){if(!e.sessionsLoadingMoreByWorkspace[ee]&&e.sessionsHasMoreByWorkspace[ee]!==!1&&e.sessionsCursorByWorkspace[ee]!==void 0){e.sessionsLoadingMoreByWorkspace={...e.sessionsLoadingMoreByWorkspace,[ee]:!0};try{let me=e.sessionsCursorByWorkspace[ee],Me;for(let ft=0;ft<3&&me!==void 0&&(Me=await Wt().listSessions({workspaceId:ee,pageSize:j6,beforeId:me,excludeEmpty:!0}),e.sessionsCursorByWorkspace[ee]!==me);ft+=1)Me=void 0,me=e.sessionsCursorByWorkspace[ee];if(Me===void 0)return;const Re=new Set(e.sessions.map(ft=>ft.id)),Qe=Me.items.filter(ft=>!Re.has(ft.id)&&!On.has(ft.id));for(const ft of Qe)Ie.add(ft.id);Qe.length>0&&c([...e.sessions,...Qe]);const Je=Me.items.filter(ft=>!On.has(ft.id)).at(-1);e.sessionsCursorByWorkspace={...e.sessionsCursorByWorkspace,[ee]:Je?.id??me},e.sessionsHasMoreByWorkspace={...e.sessionsHasMoreByWorkspace,[ee]:Me.hasMore}}catch(me){r("loadMoreSessions",me)}finally{e.sessionsLoadingMoreByWorkspace={...e.sessionsLoadingMoreByWorkspace,[ee]:!1}}}}function $t(ee){return e.sessions.filter(me=>!me.parentSessionId&&R(me)===ee)}const Vt=5;function nn(ee,me){const Me=new Set(e.sessions.map(Je=>Je.id)),Re=ee.items.filter(Je=>!Me.has(Je.id)&&!On.has(Je.id)&&(Je.meta.last_prompt??"").length>0).map(ym);for(const Je of Re)Ie.add(Je.id);Re.length>0&&c([...e.sessions,...Re]);for(const Je of ee.items)if(Me.has(Je.id)&&Je.git!==void 0){const ft=Je.git.pull_request;d(Je.id,vt=>vt.pullRequest===ft?vt:{...vt,pullRequest:ft})}if(ee.items.length>0){const Je=Math.min(...ee.items.map(ft=>ft.meta.updated_at));e.flatSessionsFrontier=me?.resetFrontier===!0||e.flatSessionsFrontier===null?Je:Math.min(e.flatSessionsFrontier,Je)}e.flatSessionsNextPageToken=ee.nextPageToken,e.flatSessionsHasMore=ee.hasMore;const Qe=new Set(H.value.map(Je=>Je.id));return ee.items.filter(Je=>(Je.meta.last_prompt??"").length>0&&!On.has(Je.id)&&Qe.has(R({workspaceId:Je.workspace.id,cwd:Je.workspace.cwd??""}))).length}async function gt(){const ee=await Wt().listSessionsV2({pageSize:dc,include:"git"});nn(ee,{resetFrontier:!0}),e.flatSessionsSeeded=!0}async function Le(){if(!(e.flatSessionsSeeded||e.flatSessionsLoading)){e.flatSessionsLoading=!0;try{await gt()}catch(ee){r("ensureFlatSessions",ee)}finally{e.flatSessionsLoading=!1}}}async function ze(){if(!(e.flatSessionsLoading||e.flatSessionsLoadingMore)&&e.flatSessionsHasMore){e.flatSessionsLoadingMore=!0;try{if(!e.flatSessionsSeeded){await gt();return}if(e.flatSessionsNextPageToken===null)return;for(let ee=0;ee0)break}}catch(ee){r("loadMoreFlatSessions",ee)}finally{e.flatSessionsLoadingMore=!1}}}async function Ye(){const ee=await Wt().listSessionsV2({pageSize:dc,include:"git",archived:!0}),me=new Set,Me=ee.items.filter(Qe=>(Qe.meta.last_prompt??"").length>0).filter(Qe=>!Wi.has(Qe.id)).filter(Qe=>me.has(Qe.id)?!1:(me.add(Qe.id),!0)).map(ym),Re=e.doneSessions.filter(Qe=>On.has(Qe.id)&&!me.has(Qe.id));e.doneSessions=[...Re,...Me],e.doneSessionsNextPageToken=ee.nextPageToken,e.doneSessionsHasMore=ee.hasMore}async function Tt(){if(!(e.doneSessionsSeeded||e.doneSessionsLoading)){e.doneSessionsLoading=!0;try{await Ye(),e.doneSessionsSeeded=!0}catch(ee){r("ensureDoneSessions",ee)}finally{e.doneSessionsLoading=!1}}}async function on(){if(!(e.doneSessionsLoading||e.doneSessionsLoadingMore)&&e.doneSessionsHasMore){e.doneSessionsLoadingMore=!0;try{if(!e.doneSessionsSeeded){await Ye(),e.doneSessionsSeeded=!0;return}let ee=3;for(;;){const me=e.doneSessionsNextPageToken;if(me===null)return;let Me;try{Me=await Wt().listSessionsV2({pageSize:dc,pageToken:me,include:"git",archived:!0})}catch(Je){if(!hx(Je))throw Je;e.doneSessionsNextPageToken=null,await Ye();return}const Re=new Set(e.doneSessions.map(Je=>Je.id)),Qe=Me.items.filter(Je=>!Re.has(Je.id)&&!Wi.has(Je.id)&&(Je.meta.last_prompt??"").length>0).map(ym);if(Qe.length>0&&(e.doneSessions=[...e.doneSessions,...Qe]),e.doneSessionsNextPageToken=Me.nextPageToken,e.doneSessionsHasMore=Me.hasMore,ee-=1,Qe.length>0||!Me.hasMore||ee<=0)return}}catch(ee){r("loadMoreDoneSessions",ee)}finally{e.doneSessionsLoadingMore=!1}}}async function jt(ee,me,Me,Re){if(e.sessionsCursorByWorkspace[ee]===me){const Je=new Date(Me).getTime();let ft;for(const vt of e.sessions){if(R(vt)!==ee)continue;const Pt=new Date(vt.updatedAt).getTime();Pt<=Je||(ft===void 0||Pt0&&$t(ee).lengthdn.id)),fn=vt.items.filter(dn=>!Pt.has(dn.id)&&!On.has(dn.id));for(const dn of fn)Ie.add(dn.id);fn.length>0&&c([...e.sessions,...fn].sort((dn,ui)=>new Date(ui.updatedAt).getTime()-new Date(dn.updatedAt).getTime())),e.sessionsCursorByWorkspace={...e.sessionsCursorByWorkspace,[ee]:vt.items.length>0?vt.items[vt.items.length-1].id:void 0},e.sessionsHasMoreByWorkspace={...e.sessionsHasMoreByWorkspace,[ee]:vt.hasMore}}catch(vt){r("loadMoreSessions",vt);break}else await Ct(ee);if(Qe-=1,$t(ee).length===ft&&e.sessionsCursorByWorkspace[ee]===Je)break}}async function kn(){if(e.sessionsFullyLoaded)return;const ee=await ke().catch(Re=>(bu("[kimi-code] loadAllSessions failed; search covers only loaded sessions",Re),null));if(ee===null)return;const me=ee.error===void 0?ee.sessions:we(ee.sessions);if(Oe(me),e.sessionsFullyLoaded=ee.error===void 0,ee.error!==void 0)return;const Me={};for(const Re of e.workspaces)Me[Re.id]=!1;e.sessionsHasMoreByWorkspace=Me}async function bn(){const ee=await Wt().getMeta().catch(()=>null);ee!==null&&(e.serverVersion=ee.serverVersion,e.availableOpenInApps=ee.openInApps,e.dangerousBypassAuth=ee.dangerousBypassAuth,e.experimentalFlags=ee.experimentalFlags,e.backend=ee.backend,e.webTitle=ee.webTitle)}async function mn(){const ee=Date.now();let me="accepted";Ll("app:load:start"),e.loading=!0,Ie.clear();const Me=!q.value;let Re=!0;try{if(Me&&await re()==="server-auth-required"){Re=!1,me="auth-required";return}const Qe=Wt();await Promise.all([Qe.getHealth().catch(()=>null),bn(),s.loadModels()]),Me||await se(),await G(),await zn();const Je=await _t();Je!==void 0&&Oe(Je);const ft=e.sessions;if(tt.length>0){const Sn=tt.splice(0);await Promise.allSettled(Sn.map(fi=>ut(fi)))}if(!Me&&Je!==void 0&&e.flatSessionsSeeded){e.flatSessionsSeeded=!1,e.flatSessionsNextPageToken=null,e.flatSessionsHasMore=!0,e.flatSessionsFrontier=null;try{await gt()}catch(Sn){r("ensureFlatSessions",Sn)}}const vt=g$().filter(Sn=>!e.sessions.some(fi=>fi.id===Sn));if(vt.length>0){const Sn=await Promise.all(vt.map(Ui=>Un(Ui))),fi=vt.filter((Ui,Fr)=>Sn[Fr]==="stale");fi.length>0&&m(fi)}e.activeSessionId!==void 0&&!e.sessions.some(Sn=>Sn.id===e.activeSessionId)&&await Tn(e.activeSessionId)==="not-found"&&(k(void 0),_i(void 0,"replace")),e.activeSessionId!==void 0&&await x(e.activeSessionId);for(const Sn of e.sessions)(Sn.mainTurnActive??Sn.busy)&&e.goalBySession[Sn.id]===void 0&&L(Sn.id);const Pt=ft[0],fn=e.activeWorkspaceId;!(fn!==null&&z.value.some(Sn=>Sn.id===fn))&&Pt&&st(R(Pt)),Io();const ui=typeof window<"u"&&RS(mo());ui&&(e.mainView="sessionAdmin");const Ln=typeof window<"u"?zS(mo()):void 0;!e.activeSessionId&&Ln!==void 0&&(e.sessions.some(fi=>fi.id===Ln)||await Tn(Ln)==="ok")&&await Ki(Ln,{urlMode:"replace",skipTrack:!0}),!e.activeSessionId&&ft.length>0&&await Ki(ft[0].id,{urlMode:ui?"none":"replace",skipTrack:!0})}catch(Qe){me="failed",r("load",Qe)}finally{e.loading=!1,Re&&(q.value=!0),Ll("app:load:complete",{status:me,sessionId:e.activeSessionId,sessionCount:e.sessions.length,workspaceCount:e.workspaces.length,durationMs:Date.now()-ee})}}async function zn(){try{const ee=Wt(),[me,Me]=await Promise.all([ee.listWorkspaces().catch(()=>[]),ee.getFsHome().catch(()=>({home:"",recentRoots:[]}))]);e.workspaces=He(me),e.fsHome=Me.home||null,e.recentRoots=Me.recentRoots}catch{}}function He(ee){const me=Im();return Object.keys(me).length===0?ee:ee.map(Me=>{const Re=me[Me.root];return Re!==void 0?{...Me,name:Re}:Me})}function st(ee){e.activeWorkspaceId=ee,V(ee)}function et(ee){e.mainView="chat",st(ee);const me=e.sessions.filter(Me=>R(Me)===ee);if(me.length>0){const Me=me[0];Me&&Me.id!==e.activeSessionId&&Ki(Me.id,{skipTrack:!0})}else k(void 0),_i(void 0,"push")}function Nt(ee){const me=Im()[ee.root],Me=me!==void 0?{...ee,name:me}:ee,Re=ol(Me.root);e.hiddenWorkspaceRoots.some(ft=>ol(ft)===Re)&&(e.hiddenWorkspaceRoots=e.hiddenWorkspaceRoots.filter(ft=>ol(ft)!==Re),Y(e.hiddenWorkspaceRoots));const Qe=e.workspaces.findIndex(ft=>ft.id===Me.id||ft.root===Me.root);if(Qe===-1){e.workspaces=[Me,...e.workspaces];return}const Je=[...e.workspaces];Je[Qe]=Me,e.workspaces=Je}function Lt(ee){if(ee.type==="workspaceCreated"||ee.type==="workspaceUpdated"){Nt(ee.workspace);return}const me=e.workspaces.find(Re=>Re.id===ee.workspaceId)?.root??ee.root;if(me&&!e.hiddenWorkspaceRoots.includes(me)&&(e.hiddenWorkspaceRoots=[...e.hiddenWorkspaceRoots,me],Y(e.hiddenWorkspaceRoots)),e.workspaces=e.workspaces.filter(Re=>Re.id!==ee.workspaceId&&Re.root!==me),e.activeWorkspaceId===ee.workspaceId||e.activeWorkspaceId===me){const Re=H.value[0]?.id??null;if(e.activeWorkspaceId=Re,Re)V(Re);else try{_r(un.activeWorkspace)}catch{}k(void 0),e.sessionLoading=!1,Hs().clearFileDiff(),_i(void 0,"replace")}}function qn(){k(void 0),e.mainView="chat",_i(void 0,"push")}function So(ee,me){me?.entry!==void 0&&(e.draftEntry=me.entry),st(ee),qn(),Hs().clearFileDiff()}async function Yn(ee){const me=z.value.find(dn=>dn.id===ee);if(!me)return null;Kfe("sidebar");const Me=e.thinking,Re=Wt();let Qe,Je=me.root;try{const dn=await Re.addWorkspace({root:me.root});Qe=dn.id,Je=dn.root,Nt(dn)}catch{}const ft=g8().draftModel??void 0,vt=await Re.createSession({workspaceId:Qe,cwd:Je,model:ft});g8().setDraftModel(null);const Pt=ft!==void 0&&(!vt.model||vt.model.length===0)?{...vt,model:ft}:vt;h(Pt);const fn=vt.id;return Me!==void 0&&(e.thinkingBySession={...e.thinkingBySession,[fn]:Me},Ob(e,fn)),st(vt.workspaceId??Qe??ee),await Ki(vt.id,{skipTrack:!0,skipStatusRefresh:!0}),Z.planMode&&(e.planArmedBySession={...e.planArmedBySession,[fn]:!0},$()),Z.swarmMode&&(e.swarmModeBySession={...e.swarmModeBySession,[fn]:!0},W()),Z.goalMode&&(e.goalModeBySession={...e.goalModeBySession,[fn]:!0},P()),Z.planMode=!1,Z.swarmMode=!1,Z.goalMode=!1,fn}async function Ir(ee,me,Me){if(wa.has(ee))return null;wa.add(ee);let Re=null;try{const Qe=await Yn(ee);return Qe?(Re=Qe,await Ti(Qe,me,Me),Qe):null}catch(Qe){return r("startSessionAndSendPrompt",Qe),Re}finally{wa.delete(ee)}}async function _o(ee,me,Me,Re){if(wa.has(ee))return{sessionId:null,activated:!1};wa.add(ee);let Qe=null;try{const Je=await Yn(ee);if(!Je)return{sessionId:null,activated:!1};Qe=Je;const ft=e.planArmedBySession[Je]??!1,vt=e.swarmModeBySession[Je]??!1,Pt=e.sessions.find(Sn=>Sn.id===Je),fn=(Pt?.model&&Pt.model.length>0?Pt.model:e.defaultModel)??void 0,dn=await s.resolveThinkingForPrompt(Je,fn)??e.thinking;if(!await I({model:fn,planMode:ft,swarmMode:vt,permissionMode:e.permission,thinking:dn},Je))return{sessionId:Je,activated:!1};ft&&(e.planArmedBySession={...e.planArmedBySession,[Je]:!1},$(),e.planModeBySession={...e.planModeBySession,[Je]:!0});const Ln=await s.activateSkill(me,Me,Re,Je,{skipThinkingPersist:!0});return{sessionId:Je,activated:Ln}}catch(Je){return r("startSessionAndActivateSkill",Je),{sessionId:Qe,activated:!1}}finally{wa.delete(ee)}}async function It(ee,me){if(wa.has(ee))return null;wa.add(ee);let Me=null;try{const Re=await Yn(ee);return Re?(Me=Re,await o.openSideChatOn(Re,me),Re):null}catch(Re){return r("startSessionAndOpenSideChat",Re),Me}finally{wa.delete(ee)}}async function ms(ee){const me=ee.trim();if(!me)return!1;const Me=Wt();try{const Re=await Me.addWorkspace({root:me});return Nt(Re),So(Re.id,{entry:"workspace"}),!0}catch(Re){return bu("[kimi-code] addWorkspaceByPath failed for",me,Re),!1}}async function Er(ee){try{return await Wt().browseFs(ee)}catch{return{path:"",parent:null,entries:[]}}}async function go(){try{return await Wt().getFsHome()}catch{return{home:"",recentRoots:[]}}}function mo(){return{pathname:zle(window.location.pathname)}}function vs(ee,me){if(me==="none"||typeof window>"u"||!window.history||mo().pathname===ee)return;const Me=HB(ee,window.location.search);try{me==="push"?window.history.pushState(null,"",Me):window.history.replaceState(null,"",Me)}catch{}}function _i(ee,me){e.mainView==="chat"&&vs(hae(ee),me)}function Mo(){e.mainView!=="sessionAdmin"&&(e.mainView="sessionAdmin",vs(ZB,"push"))}function ys(ee){e.mainView==="sessionAdmin"&&(e.mainView="chat",_i(e.activeSessionId,ee?.urlMode??"push"))}async function Tn(ee){try{const me=await Wt().getSession(ee);return!me.archived&&On.has(ee)?"not-found":(e.sessions.some(Me=>Me.id===me.id)||(Ie.add(me.id),p(me)),"ok")}catch(me){return ko(me)&&me.code===N_?"not-found":"error"}}async function Un(ee){try{const me=await Wt().getSession(ee);return me.archived||On.has(ee)?"stale":(e.sessions.some(Me=>Me.id===me.id)||p(me),"ok")}catch(me){return ko(me)&&me.code===N_?"stale":"retry"}}function Kn(){if(RS(mo())){e.mainView="sessionAdmin";return}e.mainView="chat";const ee=zS(mo());if(ee===void 0){k(void 0);return}if(ee!==e.activeSessionId){if(e.sessions.some(me=>me.id===ee)){Ki(ee,{urlMode:"none",skipTrack:!0});return}(async()=>{if(await Tn(ee)==="ok"){await Ki(ee,{urlMode:"none",skipTrack:!0});return}const me=e.sessions[0];me?await Ki(me.id,{urlMode:"replace",skipTrack:!0}):(k(void 0),_i(void 0,"replace"))})()}}let Pi=!1;function Io(){Pi||typeof window>"u"||(Pi=!0,window.addEventListener("popstate",Kn))}async function Ki(ee,me){const Me=me?.source??"sidebar";if(!e.sessions.some(ft=>ft.id===ee)){const ft=++ie;if(await Tn(ee)!=="ok"||ft!==ie)return}const Re=S(ee),Qe=!Re&&u.has(ee);u.delete(ee);const Je=e.activeSessionId!==ee;try{(me?.urlMode??"push")==="push"&&(e.mainView="chat"),_i(ee,me?.urlMode??"push"),e.sessionLoading=!Re&&!Qe,k(ee),!me?.skipTrack&&Je&&void 0,e.unreadBySession[ee]&&(e.unreadBySession={...e.unreadBySession,[ee]:!1},ae({[ee]:!1})),Hs().clearFileDiff();const ft=e.sessions.find(vt=>vt.id===ee);if(ft){const vt=R(ft);e.activeWorkspaceId!==vt&&st(vt)}if(Re){if(await T(ee)==="not-found")return}else if(await A(ee,{skipStatusRefresh:me?.skipStatusRefresh===!0})==="not-found")return;be(ee,{skipStatus:me?.skipStatusRefresh===!0})}catch(ft){r("selectSession",ft,{sessionId:ee})}finally{e.activeSessionId===ee&&(e.sessionLoading=!1)}}async function Ti(ee,me,Me){const Re=m8(ee);e.inFlightBySession={...e.inFlightBySession,[ee]:!0};const Qe=y();let Je=e.pendingThinkingBySession[ee];try{const ft=Wt(),vt=[];if(me&&vt.push({type:"text",text:me}),vt.push(...T2(Me)),vt.length===0)return e.inFlightBySession={...e.inFlightBySession,[ee]:!1},"rejected";const Pt={id:Qe,sessionId:ee,role:"user",content:vt,createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};w(ee,ya=>[...ya,Pt]);const fn=e.sessions.find(ya=>ya.id===ee),dn=(fn?.model&&fn.model.length>0?fn.model:e.defaultModel)??void 0,ui=e.planArmedBySession[ee]??!1,Ln=ui||(e.planModeBySession[ee]??!1),Sn=e.swarmModeBySession[ee]??!1,fi=e.goalModeBySession[ee]??!1;ui&&(e.planArmedBySession={...e.planArmedBySession,[ee]:!1},$(),(e.planModeBySession[ee]??!1)||(await ft.updateSession(ee,{planMode:!0}),e.planModeBySession={...e.planModeBySession,[ee]:!0})),fi&&me&&(await ft.updateSession(ee,{goalObjective:me.trim(),planMode:!1}),e.planModeBySession={...e.planModeBySession,[ee]:!1});const Ui=await s.resolveThinkingForPrompt(ee,dn)??e.thinking;Je=e.pendingThinkingBySession[ee];const Fr=await ft.submitPrompt(ee,{content:vt,model:dn,thinking:Ui,permissionMode:e.permission,planMode:Ln&&!(fi&&me),swarmMode:Sn});return Ui!==void 0&&Au(e,ee,Je),fi&&me&&(e.goalModeBySession={...e.goalModeBySession,[ee]:!1},P()),e.promptIdBySession={...e.promptIdBySession,[ee]:Fr.promptId},Ne(ee,Qe,Fr.promptId,Fr.userMessageId),b()?.bindNextPromptId(ee,Fr.promptId),"ok"}catch(ft){return e.inFlightBySession={...e.inFlightBySession,[ee]:!1},w(ee,vt=>vt.some(Pt=>Pt.id===Qe)?vt.filter(Pt=>Pt.id!==Qe||Pt.promptId!==void 0||Pt.userMessageId!==void 0):vt),Au(e,ee,Je)&&x(ee),r("sendPrompt",ft,{sessionId:ee}),ko(ft)?"rejected":"uncertain"}finally{v8(ee,Re)}}async function Qs(ee,me){const Me=e.activeSessionId;if(Me){if(a.value!=="idle"||e.inFlightBySession[Me]){wi(ee,me);return}if((e.queuedBySession[Me]?.length??0)>0||(iu.get(Me)??0)>0){wi(ee,me),$o(Me);return}await Ti(Me,ee,me)}}async function Li(ee,me,Me){iu.set(ee,(iu.get(ee)??0)+1);try{if(a.value==="idle"&&!e.inFlightBySession[ee])return await Ti(ee,me,Me);const Re=[];me&&Re.push({type:"text",text:me}),Re.push(...T2(Me));const Qe=y(),Je={id:Qe,sessionId:ee,role:"user",content:Re,createdAt:new Date().toISOString(),metadata:{"kimiWeb.optimisticUserMessage":!0}};w(ee,Pt=>[...Pt,Je]);const ft=m8(ee);let vt=!1;try{const Pt=Wt(),fn=e.sessions.find(fi=>fi.id===ee),dn=(fn?.model&&fn.model.length>0?fn.model:e.defaultModel)??void 0,ui=await s.resolveThinkingForPrompt(ee,dn)??e.thinking,Ln=e.pendingThinkingBySession[ee];vt=!0;const Sn=await Pt.submitPrompt(ee,{content:Re,model:dn,thinking:ui,permissionMode:e.permission,planMode:e.planModeBySession[ee]??!1,swarmMode:e.swarmModeBySession[ee]??!1});if(ui!==void 0&&Au(e,ee,Ln),Ne(ee,Qe,Sn.promptId,Sn.userMessageId),Sn.status!=="queued")return e.promptIdBySession={...e.promptIdBySession,[ee]:Sn.promptId},b()?.bindNextPromptId(ee,Sn.promptId),"ok";try{await Pt.steerPrompts(ee,[Sn.promptId])}catch{}return"ok"}catch(Pt){return w(ee,fn=>fn.filter(dn=>dn.id!==Qe||dn.promptId!==void 0||dn.userMessageId!==void 0)),r("steer",Pt,{sessionId:ee}),ko(Pt)||!vt?"rejected":"uncertain"}finally{v8(ee,ft)}}finally{const Re=(iu.get(ee)??1)-1;Re<=0?iu.delete(ee):iu.set(ee,Re)}}function an(ee){(iu.get(ee)??0)>0||a.value!=="idle"||e.inFlightBySession[ee]||$o(ee)}async function to(ee,me){const Me=e.activeSessionId;if(!Me)return;const Qe=(vp.get(Me)??Promise.resolve()).catch(()=>{}).then(()=>Jn(Me,ee,me));return vp.set(Me,Qe),Qe}async function Jn(ee,me,Me){const Re=e.queuedBySession[ee]??[],Qe=[],Je=[];for(const dn of Re){const ui=dn.text.trim();ui&&Qe.push(ui),dn.attachments?.length&&Je.push(...dn.attachments)}const ft=me.trim();if(ft&&Qe.push(ft),Me?.length&&Je.push(...Me),Qe.length===0&&Je.length===0)return;Re.length>0&&(e.queuedBySession={...e.queuedBySession,[ee]:[]});const vt=Qe.join(` + +`),Pt=()=>{if(Re.length===0)return;const dn=e.queuedBySession[ee]??[];e.queuedBySession={...e.queuedBySession,[ee]:[...Re,...dn]}},fn=await Li(ee,vt,Je);fn==="rejected"&&Pt(),fn!=="ok"&&an(ee)}async function Wo(ee){const me=e.activeSessionId;if(!me)return;const Me=(e.queuedBySession[me]??[])[ee];if(Me===void 0)return;const Re=Me.id??Me.text,Je=(vp.get(me)??Promise.resolve()).catch(()=>{}).then(()=>Mn(me,Re));return vp.set(me,Je),Je}async function Mn(ee,me){const Me=e.queuedBySession[ee]??[],Re=Me.findIndex(Pt=>(Pt.id??Pt.text)===me),Qe=Re>=0?Me[Re]:void 0;if(Qe===void 0)return;const Je=Qe.attachments??[];if(Qe.text.trim().length===0&&Je.length===0)return;const ft=[...Me];ft.splice(Re,1),e.queuedBySession={...e.queuedBySession,[ee]:ft};const vt=await Li(ee,Qe.text,Je);if(vt==="rejected"&&e.sessions.some(Pt=>Pt.id===ee)){const fn=[...e.queuedBySession[ee]??[]];fn.splice(Math.min(Re,fn.length),0,Qe),e.queuedBySession={...e.queuedBySession,[ee]:fn}}vt!=="ok"&&an(ee)}async function Ni(ee,me){try{const Re=await Wt().uploadFile({file:ee,name:me});return{fileId:Re.id,name:Re.name,mediaType:Re.mediaType}}catch(Me){return r("uploadImage",Me),null}}function wi(ee,me){const Me=e.activeSessionId;if(!Me)return;const Re=e.queuedBySession[Me]??[],Qe={text:ee,attachments:me,id:mhe()};e.queuedBySession={...e.queuedBySession,[Me]:[...Re,Qe]}}function $o(ee){if((iu.get(ee)??0)>0)return;const[me,...Me]=e.queuedBySession[ee]??[];me!==void 0&&(e.queuedBySession={...e.queuedBySession,[ee]:Me},Ti(ee,me.text,me.attachments).then(Re=>{if(Re==="ok"){xd.delete(ee);return}if(Re==="uncertain"){xd.delete(ee);return}if(!e.sessions.some(Pt=>Pt.id===ee)){xd.delete(ee);return}const Qe=me.id??me.text,Je=xd.get(ee),ft=Je!==void 0&&Je.key===Qe?Je.count+1:1;if(ft>=hhe){xd.delete(ee),(e.queuedBySession[ee]?.length??0)>0&&$o(ee);return}xd.set(ee,{key:Qe,count:ft});const vt=e.queuedBySession[ee]??[];e.queuedBySession={...e.queuedBySession,[ee]:[me,...vt]}}))}function $s(ee,me){const Me=e.inFlightBySession[ee]===!0;if(e.inFlightBySession={...e.inFlightBySession,[ee]:!1},e.promptIdBySession[ee]!==void 0){const Qe={...e.promptIdBySession};delete Qe[ee],e.promptIdBySession=Qe}return(Me||me?.turnWasActive===!0||(e.turnActiveBySession[ee]??!1))&&$o(ee),Me}function Vi(ee,me){me.inFlightTurn!==null&&me.busy||$s(ee)}async function Cn(){const ee=e.activeSessionId;if(!ee)return!1;const me=e.sessions.find(vt=>vt.id===ee);let Me=e.promptIdBySession[ee];if(Me===void 0){const vt=me?.currentPromptId;vt!==void 0&&vt.length>0&&!vt.startsWith("pr_")&&(Me=vt)}const Re=Wt();let Qe=!1;const Je=()=>{e.inFlightBySession={...e.inFlightBySession,[ee]:!1},e.turnActiveBySession={...e.turnActiveBySession,[ee]:!1}};if(Me!==void 0)try{if((await Re.abortPrompt(ee,Me)).aborted)return!0;Qe=!0;const Pt={...e.promptIdBySession};delete Pt[ee],e.promptIdBySession=Pt,Je()}catch(vt){if(ko(vt)&&vt.code===she){Qe=!0;const Pt={...e.promptIdBySession};delete Pt[ee],e.promptIdBySession=Pt,Je()}else return r("abortCurrentPrompt",vt,{sessionId:ee}),!1}if(Qe||!((e.inFlightBySession[ee]??!1)||(e.turnActiveBySession[ee]??!1)||(me?.mainTurnActive??!1)))return!1;try{return(await Re.abortSession(ee)).aborted===!0}catch(vt){return r("abortCurrentPrompt",vt,{sessionId:ee}),!1}}async function Rs(ee,me){const Me=e.activeSessionId;if(!Me||Fm[ee])return;Fm[ee]=!0;const Re=e.approvalsBySession[Me]?.find(Qe=>Qe.approvalId===ee&&Qe.toolName==="ExitPlanMode")?.toolCallId;try{const Qe=Wt(),Je={decision:me.decision,scope:me.scope,feedback:me.feedback,selectedLabel:me.selectedLabel};await Qe.respondApproval(Me,ee,Je),qs().removePendingApproval(Me,ee),Re!==void 0&&(N(Me,Re,{state:me.decision,selectedOption:me.selectedLabel,feedback:me.feedback}),M(Me,Re))}catch(Qe){x3(Qe)?(qs().removePendingApproval(Me,ee),Re!==void 0&&M(Me,Re)):r("respondApproval",Qe,{sessionId:Me})}finally{delete Fm[ee]}}async function qo(ee,me){const Me=e.activeSessionId;if(Me&&!pd[ee]){pd[ee]="answer";try{await Wt().respondQuestion(Me,ee,me),qs().removePendingQuestion(Me,ee)}catch(Re){x3(Re)?qs().removePendingQuestion(Me,ee):r("respondQuestion",Re,{sessionId:Me})}finally{delete pd[ee]}}}async function ar(ee){const me=e.activeSessionId;if(me&&!pd[ee]){pd[ee]="dismiss";try{await Wt().dismissQuestion(me,ee),qs().removePendingQuestion(me,ee)}catch(Me){x3(Me)?qs().removePendingQuestion(me,ee):r("dismissQuestion",Me,{sessionId:me})}finally{delete pd[ee]}}}async function ks(ee){const me=e.activeSessionId;if(me&&!S3[ee]){S3[ee]=!0;try{const Me=Wt(),Re=(e.tasksBySession[me]??[]).find(Je=>Je.id===ee)?.backgroundTaskId;await Me.cancelTask(me,Re??ee);const Qe=e.tasksBySession[me]??[];e.tasksBySession={...e.tasksBySession,[me]:Qe.map(Je=>(Re!==void 0?Je.backgroundTaskId===Re:Je.id===ee||Je.backgroundTaskId===ee)?{...Je,status:"cancelled",completedAt:Je.completedAt??new Date().toISOString(),completedAtEstimated:Je.completedAt===void 0?!0:Je.completedAtEstimated}:Je)}}catch(Me){dhe(Me)||r("cancelTask",Me,{sessionId:me})}finally{delete S3[ee]}}}function yi(ee){const me=e.activeSessionId;me?(e.planArmedBySession={...e.planArmedBySession,[me]:ee},$(),!ee&&(e.planModeBySession[me]??!1)&&(e.planModeBySession={...e.planModeBySession,[me]:!1},I({planMode:!1},me))):Z.planMode=ee}function Vn(){const ee=e.activeSessionId,me=ee?(e.planArmedBySession[ee]??!1)||(e.planModeBySession[ee]??!1):Z.planMode;yi(!me)}function ji(ee){const me=e.activeSessionId;me?(e.swarmModeBySession={...e.swarmModeBySession,[me]:ee},W(),I({swarmMode:ee})):Z.swarmMode=ee}async function Fi(){const ee=e.activeSessionId,Me=!(ee?e.swarmModeBySession[ee]??!1:Z.swarmMode);Me&&e.permission==="manual"&&!await n({title:gi("workspace.swarmEnableTitle"),message:gi("workspace.swarmEnableConfirm"),variant:"primary"})||ji(Me)}function bs(ee){const me=e.activeSessionId;me?(e.goalModeBySession={...e.goalModeBySession,[me]:ee},P()):Z.goalMode=ee}function As(){const ee=e.activeSessionId,me=ee?e.goalModeBySession[ee]??!1:Z.goalMode;bs(!me)}async function Eo(ee){const me=ee.trim();if(!me||e.permission==="manual"&&!await n({title:gi("workspace.goalStartTitle"),message:gi("workspace.goalStartConfirm",{objective:me}),variant:"primary"}))return null;let Me=e.activeSessionId,Re=null;if(!Me){const Qe=e.activeWorkspaceId,Je=Qe&&H.value.some(ft=>ft.id===Qe)?Qe:H.value[0]?.id??null;if(!Je)return null;try{Me=await Yn(Je)??void 0,Re=Me??null}catch(ft){return r("createGoal",ft),null}if(!Me)return null}try{await Wt().updateSession(Me,{goalObjective:me,planMode:!1}),e.planModeBySession={...e.planModeBySession,[Me]:!1}}catch(Qe){return r("createGoal",Qe,{sessionId:Me,message:oe(Qe)}),Re}return e.goalModeBySession[Me]&&(e.goalModeBySession={...e.goalModeBySession,[Me]:!1},P()),e.activeSessionId===Me?await Qs(me):await Ti(Me,me),Re}function Tr(ee){const me=e.activeSessionId;me&&Promise.resolve(Wt().updateSession(me,{goalControl:ee})).catch(Me=>{r("controlGoal",Me,{sessionId:me,message:oe(Me)})})}function Lr(ee){e.permission=ee,j(ee),I({permissionMode:ee})}function jl(ee){const me=[...e.warnings];me.splice(ee,1),e.warnings=me}async function Nr(ee,me){try{await Wt().updateSession(ee,{title:me}),d(ee,Re=>({...Re,title:me})),e.doneSessions.some(Re=>Re.id===ee)&&(e.doneSessions=e.doneSessions.map(Re=>Re.id===ee?{...Re,title:me}:Re))}catch(Me){r("renameSession",Me,{sessionId:ee})}}async function Di(ee){const me=await Wt().generateSessionTitle(ee,{force:!0,source:"digest"});return me===null?l({severity:"info",title:gi("sidebar.genTitleUnavailable")}):e.doneSessions.some(Me=>Me.id===ee)&&(e.doneSessions=e.doneSessions.map(Me=>Me.id===ee?{...Me,title:me}:Me)),me}async function Xn(ee,me){const Me=e.workspaces.find(Qe=>Qe.id===ee)?.root,Re=()=>{e.workspaces=e.workspaces.map(Qe=>Qe.id===ee?{...Qe,name:me}:Qe)};try{if(await Wt().updateWorkspace(ee,{name:me}),Me!==void 0){const Qe=Im();Me in Qe&&(delete Qe[Me],g_(Qe))}Re()}catch(Qe){if(Me!==void 0&&ko(Qe)&&Qe.code===rhe){g_({...Im(),[Me]:me}),Re();return}r("renameWorkspace",Qe)}}async function Cs(ee){const me=e.workspaces.find(Je=>Je.id===ee)?.root??z.value.find(Je=>Je.id===ee)?.root??ee,Me=e.activeSessionId?e.sessions.find(Je=>Je.id===e.activeSessionId):void 0,Re=e.activeWorkspaceId===ee||e.activeWorkspaceId===me,Qe=!!(Me&&(Me.cwd===me||Me.workspaceId===ee||R(Me)===ee));me&&!e.hiddenWorkspaceRoots.includes(me)&&(e.hiddenWorkspaceRoots=[...e.hiddenWorkspaceRoots,me],Y(e.hiddenWorkspaceRoots));try{await Wt().deleteWorkspace(ee)}catch(Je){bu("[kimi-code] deleteWorkspace registry cleanup failed for",ee,Je)}if(e.workspaces=e.workspaces.filter(Je=>Je.id!==ee&&Je.root!==me),Re||Qe){const Je=H.value[0]?.id??null;if(e.activeWorkspaceId=Je,Je)V(Je);else try{_r(un.activeWorkspace)}catch{}}(Re||Qe)&&(k(void 0),e.sessionLoading=!1,Hs().clearFileDiff(),_i(void 0,"replace"))}const Uo=500,On=new Set;function Hi(ee){if(!On.has(ee)){if(On.size>=Uo){const me=On.values().next().value;me!==void 0&&On.delete(me)}On.add(ee)}}const Wi=new Set;function rs(ee){if(!Wi.has(ee)){if(Wi.size>=Uo){const me=Wi.values().next().value;me!==void 0&&Wi.delete(me)}Wi.add(ee)}}const jn=new Map;function Ke(ee){if(jn.has(ee)&&jn.delete(ee),jn.size>=Uo){const me=jn.keys().next().value;me!==void 0&&jn.delete(me)}jn.set(ee,Date.now())}const Ue=new Set,yt=new Set;async function xt(ee,me){const Me=new Set(ee);if(me){for(const ft of ee)Hi(ft);const Qe=new Date().toISOString(),Je=e.sessions.filter(ft=>Me.has(ft.id));Je.length>0&&(e.doneSessions=[...Je.map(ft=>({...ft,archived:!0,archivedAt:Qe})),...e.doneSessions.filter(ft=>!Me.has(ft.id))]);for(const ft of ee)g(ft),xv.delete(ft);if(e.activeSessionId!==void 0&&Me.has(e.activeSessionId)){const ft=e.sessions[0];ft?await Ki(ft.id,{urlMode:"replace",skipTrack:!0}):(k(void 0),_i(void 0,"replace"))}return}for(const Qe of ee)On.delete(Qe),rs(Qe),Ke(Qe);const Re=e.doneSessions.filter(Qe=>Me.has(Qe.id));e.doneSessions=e.doneSessions.filter(Qe=>!Me.has(Qe.id));for(const Qe of Re)e.sessions.some(Je=>Je.id===Qe.id)||(Ie.add(Qe.id),h({...Qe,archived:!1}))}async function rn(ee){try{const me=Wt();yt.delete(ee),Ue.add(ee);const Me=e.sessions.find(Je=>Je.id===ee),Re=Me!==void 0?R(Me):void 0,Qe=Re!==void 0?$t(Re).length:0;await me.archiveSession(ee),await xt([ee],!0),Me!==void 0&&Re!==void 0&&jt(Re,ee,Me.updatedAt,Qe),Ue.delete(ee),yt.delete(ee)}catch(me){Ue.delete(ee),yt.delete(ee)||r("archiveSession",me,{sessionId:ee})}}async function Zi(ee,me){if(jn.has(ee)){let Je;try{Je=(await Wt().getSession(ee)).archived}catch{return!1}if(!Je)return!1}Ue.delete(ee)&&yt.add(ee),Wi.delete(ee),jn.delete(ee),Hi(ee);const Me=e.sessions.find(Je=>Je.id===ee);if(Me===void 0&&e.activeSessionId!==ee)return!0;const Re=me??(Me!==void 0?R(Me):void 0),Qe=Re!==void 0?$t(Re).length:0;return await xt([ee],!0),Me!==void 0&&Re!==void 0&&jt(Re,ee,Me.updatedAt,Qe),!0}async function Gi(ee){if(pe)return!1;const me=ee??e.activeSessionId;if(!me){const Re=gi("commands.export.noSession");return Ll("export:failed",{status:"no-session"}),r("exportSession",new Error(Re),{message:Re}),!1}pe=!0;const Me=Date.now();Ll("export:start",{sessionId:me});try{const Re=qfe(),{blob:Qe,fileName:Je}=await Wt().exportSession(me,Re,{desktop:bf});if(typeof document>"u")throw new Error("Document is unavailable");const ft=URL.createObjectURL(Qe);let vt;try{vt=document.createElement("a"),vt.href=ft,vt.download=Je,document.body.append(vt),vt.click()}finally{vt?.remove(),setTimeout(()=>{try{URL.revokeObjectURL(ft)}catch{}},0)}return Ll("export:accepted",{sessionId:me,status:"accepted",zipBytes:Qe.size,durationMs:Date.now()-Me}),!0}catch(Re){const Qe=typeof Re=="object"&&Re!==null?Re:void 0;return Ll("export:failed",{sessionId:me,status:"failed",durationMs:Date.now()-Me,errorName:typeof Qe?.name=="string"?Qe.name:typeof Re,errorCode:typeof Qe?.code=="number"?Qe.code:void 0,requestId:typeof Qe?.requestId=="string"?Qe.requestId:void 0,phase:typeof Qe?.phase=="string"?Qe.phase:void 0,httpStatus:typeof Qe?.status=="number"?Qe.status:void 0}),r("exportSession",Re,{sessionId:me,...ko(Re)&&Re.code===zY?{message:gi("commands.export.tooLarge",{sessionId:me})}:{}}),!1}finally{pe=!1}}async function oo(ee){try{const me=await Wt().restoreSession(ee);return h(me),await xt([ee],!1),!0}catch(me){return r("restoreSession",me,{sessionId:ee}),!1}}function qi(ee){return Wt().listSessions({archivedOnly:!0,beforeId:ee?.beforeId,pageSize:ee?.pageSize??50})}async function vo(){try{await Wt().logout(),await se(),await mn()}catch(ee){r("logout",ee)}}function so(ee){const me=e.activeSessionId;me&&Wt().compactSession(me,ee).catch(Me=>{r("compact",Me,{sessionId:me})})}async function Ro(ee){const me=ee??e.activeSessionId;if(me)try{const Me=await Wt().forkSession(me);h(Me),await Ki(Me.id,{skipTrack:!0})}catch(Me){r("fork",Me,{sessionId:me})}}async function ot(ee=1){const me=e.activeSessionId;if(!me)return null;const Me=e.messagesBySession[me]??[];let Re=-1;for(let vt=Me.length-1;vt>=0;vt--){const Pt=Me[vt];if(Pt.role==="user"&&!(Pt.metadata?.origin&&Pt.metadata.origin.kind!=="user")){Re=vt;break}}const Qe=Re>=0?Me[Re].content.filter(vt=>vt.type==="text").map(vt=>vt.text).join(` +`):null,Je=ee===1&&Re>=0&&Me.slice(Re+1).every(vt=>vt.role!=="user"),ft=Je?e.sessions.find(vt=>vt.id===me):void 0;if(Je&&(e.messagesBySession={...e.messagesBySession,[me]:Me.slice(0,Re)},ft!==void 0)){const vt={...ft};delete vt.lastTurnReason,h(vt)}try{return await Wt().undoSession(me,ee),await A(me),{text:Qe}}catch(vt){return Je&&(e.messagesBySession={...e.messagesBySession,[me]:Me},ft!==void 0&&h(ft),await A(me).catch(()=>{})),r("undo",vt,{sessionId:me}),null}}function xe(ee){const me=e.activeSessionId;if(!me)return;const Me=e.queuedBySession[me]??[];if(ee<0||ee>=Me.length)return;const Re=[...Me];Re.splice(ee,1),e.queuedBySession={...e.queuedBySession,[me]:Re}}function je(ee,me){const Me=e.activeSessionId;if(!Me)return;const Re=e.queuedBySession[Me]??[];if(ee===me||ee<0||ee>=Re.length||me<0||me>=Re.length)return;const Qe=[...Re],[Je]=Qe.splice(ee,1);Je!==void 0&&(Qe.splice(me,0,Je),e.queuedBySession={...e.queuedBySession,[Me]:Qe})}async function Dn(ee){const me=e.activeSessionId;if(!me)return[];try{return(await Wt().listDirectory(me,{path:ee,includeGitStatus:!0})).items}catch{return[]}}async function vn(ee,me){const Me=e.activeSessionId;if(!Me){let Re=ee;if(!Ss(ee)){const Qe=e.activeWorkspaceId,Je=Qe&&H.value.some(vt=>vt.id===Qe)?Qe:H.value[0]?.id??null,ft=Je?z.value.find(vt=>vt.id===Je)?.root:void 0;if(!ft)return!0;Re=`${ft.replace(/[\\/]+$/,"")}/${ee}`}try{return await ii(Re),!0}catch(Qe){return!(ko(Qe)&&Qe.code===F_)}}try{if(Ss(ee))return await ii(ee),!0;const Re=Wt();return me==="folder"?await Re.listDirectory(Me,{path:ee}):await Re.readFile(Me,{path:ee,length:1}),!0}catch(Re){return!(ko(Re)&&Re.code===F_)}}async function ii(ee){return Wt().readHostFileContent(ee)}const ws=10485760;function xs(ee){const me=e.activeSessionId;return me?Wt().getFileDownloadUrl(me,ee):null}async function ro(ee,me){const Me=e.activeSessionId;if(!Me)return!1;try{return await Wt().openFile(Me,{path:ee,line:me}),!0}catch(Re){return r("openFile",Re,{sessionId:Me}),!1}}async function ai(ee){const me=e.activeSessionId;if(!me)return;const Me=O.value.cwd||".";try{await Wt().openInApp(me,ee,Me)}catch(Re){r("openInApp",Re,{sessionId:me})}}async function Ys(ee){const me=e.activeSessionId;if(!me)return!1;try{return await Wt().revealFile(me,{path:ee}),!0}catch(Me){return r("revealFile",Me,{sessionId:me}),!1}}function Ss(ee){return ee.startsWith("/")||/^[a-zA-Z]:[\\/]/.test(ee)||ee.startsWith("\\\\")}async function el(ee){if(/^(https?:|data:|blob:)/i.test(ee))return ee;const me=e.activeSessionId;if(!me)return ee;let Me=ee;if(Ss(Me)){const Re=e.sessions.find(Je=>Je.id===me)?.cwd,Qe=Re?d9(Me,Re):null;if(Qe)Me=Qe;else try{const Je=await ii(Me);return!Je.isBinary||Je.encoding!=="base64"?ee:`data:${Je.mime};base64,${Je.content}`}catch{return ee}}try{const Qe=await Wt().readFile(me,{path:Me,length:ws});return!Qe.isBinary||Qe.encoding!=="base64"||Qe.truncated?ee:`data:${Qe.mime};base64,${Qe.content}`}catch{return ee}}let ur=!1;async function tl(ee){const me=e.sessions.find(Re=>Re.id===e.activeSessionId),Me=me===void 0?e.activeWorkspaceId:R(me);if(!Me)return[];try{const Re=Wt();if(!ur)try{return(await Re.suggestFiles(Me,{query:ee,limit:20})).items.map(ft=>({path:ft.path,name:ft.name,kind:ft.kind,matchPositions:ft.matchPositions}))}catch(Je){if(!ko(Je)||Je.code!==404)throw Je;ur=!0}return(await Re.searchFiles(Me,{query:ee,limit:20})).items.map(Je=>({path:Je.path,name:Je.name,kind:Je.kind,matchPositions:Je.matchPositions}))}catch{return[]}}return{checkAuth:se,probeManagedMembership:Ae,loadConfig:G,updateConfig:le,listAllSessionsGlobal:ke,load:mn,refreshServerMeta:bn,loadWorkspaces:zn,loadMoreSessions:Ct,loadAllSessions:kn,ensureFlatSessions:Le,loadMoreFlatSessions:ze,ensureDoneSessions:Tt,loadMoreDoneSessions:on,selectWorkspace:st,openWorkspace:et,upsertWorkspacePreserveOrder:Nt,applyWorkspaceEvent:Lt,clearActiveSession:qn,openWorkspaceDraft:So,startSessionAndSendPrompt:Ir,startSessionAndActivateSkill:_o,startSessionAndOpenSideChat:It,addWorkspaceByPath:ms,browseFs:Er,getFsHome:go,writeSessionUrl:_i,openSessionAdmin:Mo,closeSessionAdmin:ys,fetchSessionIntoList:Tn,onSessionRoutePopState:Kn,bindSessionRoute:Io,selectSession:Ki,submitPromptInternal:Ti,finishPromptLocal:$s,maybeGenerateSessionTitle:ghe,localTurnStartState:vhe,isLocalTurnSnapshotCurrent:khe,afterLocalTurnStartsSettle:bhe,handleSessionSnapshot:Vi,sendPrompt:Qs,steerPrompt:to,steerQueued:Wo,uploadImage:Ni,enqueue:wi,unqueue:xe,reorderQueue:je,abortCurrentPrompt:Cn,respondApproval:Rs,respondQuestion:qo,dismissQuestion:ar,pendingQuestionActions:pd,pendingApprovalActions:Fm,cancelTask:ks,setPlanMode:yi,togglePlanMode:Vn,setSwarmMode:ji,toggleSwarmMode:Fi,setGoalMode:bs,toggleGoalMode:As,createGoal:Eo,controlGoal:Tr,setPermission:Lr,dismissWarning:jl,renameSession:Nr,regenerateSessionTitle:Di,renameWorkspace:Xn,deleteWorkspace:Cs,archiveSession:rn,applySessionsArchivedLocally:xt,applyRemoteSessionArchived:Zi,exportSession:Gi,restoreSession:oo,loadArchivedSessions:qi,logout:vo,compact:so,forkSession:Ro,undo:ot,listDir:Dn,readHostFileContent:ii,probeWorkspacePath:vn,getFileDownloadUrl:xs,openWorkspaceFile:ro,openInApp:ai,revealWorkspaceFile:Ys,resolveImageUrl:el,searchFiles:tl,loadOlderMessages:te,refreshSessionSidecars:be,isStartingFirstPrompt:()=>wa.size>0}}const Che=20,whe=300,xhe=1e4,B_=5e3;function N$(e){const[t,n,i]=e.split("-").map(Number);return new Date(t??0,(n??1)-1,i??1,0,0,0,0).getTime()}function F$(e){const[t,n,i]=e.split("-").map(Number);return new Date(t??0,(n??1)-1,i??1,23,59,59,999).getTime()}function She(e,t,n){return{workspaceIds:e.workspaceIds.length>0?[...e.workspaceIds]:void 0,archived:e.status==="all"?"all":e.status==="done",updatedAfter:e.updatedFrom!==""?N$(e.updatedFrom):void 0,updatedBefore:e.updatedTo!==""?F$(e.updatedTo):void 0,sort:"meta.updated_at_desc",page:t,pageSize:n}}function _he(e){return{workspaceIds:e.workspaceIds.length>0?[...e.workspaceIds]:void 0,archived:e.status==="all"?"all":e.status==="done",updatedAfter:e.updatedFrom!==""?N$(e.updatedFrom):void 0,updatedBefore:e.updatedTo!==""?F$(e.updatedTo):void 0,sort:"meta.updated_at_desc"}}function Dm(e){return JSON.stringify([[...e.workspaceIds].toSorted(),e.status,e.updatedFrom,e.updatedTo])}function Mhe(e){const t=jo({filters:{workspaceIds:[],status:"all",updatedFrom:"",updatedTo:""},page:1,pageSize:Che,items:[],total:0,loading:!1,seeded:!1,selectedIds:new Set,selectedArchivedById:new Map,allMatching:!1,materializingAll:!1});let n=0,i=null;async function o(){i!==null&&(clearTimeout(i),i=null);const x=++n;t.loading=!0;try{const _=await Wt().listSessionsV2(She(t.filters,t.page,t.pageSize));if(x!==n)return;t.items=_.items,t.total=_.total;for(const M of _.items)t.selectedArchivedById.has(M.id)&&t.selectedArchivedById.set(M.id,M.meta.archived);const L=Math.max(1,Math.ceil(_.total/t.pageSize));t.page>L&&(t.page=L,o())}catch(_){if(x!==n)return;e.pushOperationFailure("sessionAdmin",_)}finally{x===n&&(t.loading=!1)}}function s(){i!==null&&clearTimeout(i),i=setTimeout(()=>{i=null,o()},whe)}function r(){t.seeded||(t.seeded=!0,o())}async function l(){await o()}function a(x){t.allMatching&&Dm(x)!==Dm(t.filters)&&w(),t.filters.workspaceIds=[...x.workspaceIds],t.filters.status=x.status,t.filters.updatedFrom=x.updatedFrom,t.filters.updatedTo=x.updatedTo,t.page=1,t.seeded=!0,o()}function u(x){t.allMatching&&w(),t.filters.workspaceIds=[...x],t.page=1,s()}function c(x){t.allMatching&&w(),t.filters.status=x,t.page=1,s()}function d(x,_){t.allMatching&&w(),t.filters.updatedFrom=x,t.filters.updatedTo=_,t.page=1,s()}function h(x){x!==t.page&&(t.page=x,s())}function p(x){x!==t.pageSize&&(t.pageSize=x,t.page=1,s())}function g(x,_){if(t.selectedIds.has(x)){t.selectedIds.delete(x),t.selectedArchivedById.delete(x),t.selectedIds.size===0&&(t.allMatching=!1);return}t.selectedIds.add(x),t.selectedArchivedById.set(x,_)}function m(x){const _=x.length>0&&x.every(L=>t.selectedIds.has(L.id));for(const L of x)_?(t.selectedIds.delete(L.id),t.selectedArchivedById.delete(L.id)):(t.selectedIds.add(L.id),t.selectedArchivedById.set(L.id,L.archived));t.selectedIds.size===0&&(t.allMatching=!1)}function k(x){t.selectedIds=new Set(x.map(_=>_.id)),t.selectedArchivedById=new Map(x.map(_=>[_.id,_.archived])),t.allMatching=!1}function w(){t.selectedIds=new Set,t.selectedArchivedById=new Map,t.allMatching=!1}async function y(){if(t.allMatching||t.materializingAll)return;t.materializingAll=!0;const x=_he(t.filters),_=Dm(t.filters);try{const L=[];let M;for(;;){const N=await Wt().listSessionIdsV2({...x,pageSize:xhe,pageToken:M});if(L.push(...N.items),!N.hasMore||N.nextPageToken===null)break;M=N.nextPageToken}if(Dm(t.filters)!==_)return;for(const N of L)t.selectedIds.add(N.id),t.selectedArchivedById.set(N.id,N.archived);t.allMatching=!0}catch(L){e.pushOperationFailure("sessionAdmin",L)}finally{t.materializingAll=!1}}function b(x){const _=[];for(const[L,M]of t.selectedArchivedById)M===x&&_.push(L);return _}async function A(x,_,L){const M=[];let N=0,I=0;for(let z=0;zj.ok).map(j=>j.id);M.push(...R),N+=O.succeeded,I+=O.failed}catch(O){I+=x.length-z,e.pushOperationFailure(_?"archiveSessions":"restoreSessions",O);break}}if(M.length>0){await e.applySessionsArchivedLocally(M,_);for(const z of M)t.selectedIds.delete(z),t.selectedArchivedById.delete(z);t.selectedIds.size===0&&(t.allMatching=!1),await l()}return{okIds:M,succeeded:N,failed:I}}async function T(x){return A(x,!0,_=>Wt().archiveSessions(_))}async function S(x){return A(x,!1,_=>Wt().restoreSessions(_))}return{state:t,ensureSeeded:r,refresh:l,applyFilters:a,setWorkspaceIds:u,setStatus:c,setTimeRange:d,setPage:h,setPageSize:p,toggleSelection:g,togglePageSelection:m,setSelection:k,clearSelection:w,selectAllMatching:y,selectedIdsByArchived:b,archiveSessions:T,restoreSessions:S}}function Ihe(e){if(e.startsWith("kimi-complete-"))return"turn_complete";if(e.startsWith("kimi-question-"))return"question";if(e.startsWith("kimi-approval-"))return"approval"}function $_(e,t){const n=gs(e);return n===null?t:n==="1"}const Ehe="/favicon.ico",The=lg("kimi.notifications",()=>{const e=K($_(un.notifyEnabled,!0)),t=K($_(un.notifySound,!0)),n=K(typeof Notification<"u"?Notification.permission:"denied");async function i(c){if(!c){e.value=!1,is(un.notifyEnabled,"0");return}if(typeof Notification>"u")return;let d=Notification.permission;if(d==="default")try{d=await Notification.requestPermission()}catch{}n.value=d,d==="granted"&&(e.value=!0,is(un.notifyEnabled,"1"))}function o(c){t.value=c,is(un.notifySound,c?"1":"0")}function s(c,d,h){if(!e.value||typeof Notification>"u")return;const p=Notification.permission;if(p!=="denied"){if(p==="default"){Notification.requestPermission().then(g=>{n.value=g,g==="granted"&&r(c,d,h)});return}r(c,d,h)}}function r(c,d,h){if(!c.isUserWatching)try{const p=new Notification(d.title,{body:d.body,tag:h,icon:Ehe,silent:!t.value}),g=Ihe(h);g!==void 0&&void 0,p.onclick=()=>{try{window.kimiDesktop?.showWindow?.(),window.focus()}catch{}g!==void 0&&void 0,c.onClick(),p.close()}}catch{}}function l(c,d){s(d,ife(gi,d.sessionTitle),`kimi-complete-${c}-${d.promptId??Date.now()}`)}function a(c){s(c,ofe(gi,c.sessionTitle,c.questionPreview),`kimi-question-${c.questionId}`)}function u(c){s(c,sfe(gi,c.sessionTitle,c.toolName),`kimi-approval-${c.approvalId}`)}return{notifyEnabled:e,notifySound:t,notifyPermission:n,setNotifyEnabled:i,setNotifySound:o,maybeNotifyCompletion:l,maybeNotifyQuestion:a,maybeNotifyApproval:u}});function rc(){return The(f1)}const Bm=c1(),D$=un.permission,B$=un.activeWorkspace,$$=un.planArmed,R$=un.swarmMode,z$=un.goalMode,R_=40401,N2=un.onboarded;_r(un.codeFont);_r(un.accent);_r(un.theme);_r(un.thinking);_r(un.notifyOnComplete);_r(un.notifyOnQuestion);_r(un.notifyOnApproval);_r(un.soundOnComplete);function Lhe(){try{const e=gs(D$);if(e==="auto"||e==="yolo"||e==="manual")return e}catch{}return"manual"}function Nhe(e){try{is(D$,e)}catch{}}function $m(e){const t=gs(e);if(!t)return{};try{const n=JSON.parse(t);if(!n||typeof n!="object"||Array.isArray(n))return{};const i={};for(const[o,s]of Object.entries(n))s===!0&&(i[o]=!0);return i}catch{return{}}}function H6(e,t){try{const n={};for(const[i,o]of Object.entries(t))o&&(n[i]=!0);is(e,JSON.stringify(n))}catch{}}function W6(){H6($$,_e.planArmedBySession)}function O$(){H6(R$,_e.swarmModeBySession)}function P$(){H6(z$,_e.goalModeBySession)}function Fhe(){try{return gs(B$)}catch{return null}}const j$=un.hiddenWorkspaces;function Dhe(){try{const e=gs(j$);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function Bhe(e){try{is(j$,JSON.stringify(e))}catch{}}function $he(e){try{is(B$,e)}catch{}}function Rhe(e,t){if(t&&e.startsWith(t)){const i=e.slice(t.length);return i?`~${i}`:"~"}const n=e.match(/^\/(?:Users|home)\/[^/]+(\/.*)?$/);return n?`~${n[1]??""}`:e}const _e=jo({...Ioe(),get sessions(){return or().sessions},set sessions(e){or().setSessions(e)},get activeSessionId(){return or().activeSessionId},set activeSessionId(e){or().setActiveSessionId(e)},get approvalsBySession(){return qs().approvalsBySession},get questionsBySession(){return qs().questionsBySession},get gitStatusBySession(){return Hs().gitStatusBySession},connected:!1,serverVersion:"",webTitle:"",dangerousBypassAuth:!1,backend:"v1",experimentalFlags:{},workspaceName:"kimi-code",connection:"disconnected",permission:Lhe(),thinking:void 0,thinkingBySession:{},pendingThinkingBySession:{},planModeBySession:$m(un.planMode),planArmedBySession:$m($$),swarmModeBySession:$m(R$),goalModeBySession:$m(z$),loading:!1,sessionLoading:!1,queuedBySession:{},promptIdBySession:{},inFlightBySession:{},unreadBySession:$6(),authReady:!1,defaultModel:null,managedProviderStatus:null,managedUserInfo:null,managedMembership:null,workspaces:[],activeWorkspaceId:Fhe(),fsHome:null,recentRoots:[],hiddenWorkspaceRoots:Dhe(),availableOpenInApps:[],config:null,sideChatMessagesByAgent:{},sideChatSendingByAgent:{},sideChatUserMessageIdsBySession:{},messagesLoadingMoreBySession:{},messagesHasMoreBySession:{},messagesLoadMoreErrorBySession:{},sessionsHasMoreByWorkspace:{},sessionsLoadingMoreByWorkspace:{},sessionsCursorByWorkspace:{},sessionsInitialCountByWorkspace:{},sessionsFullyLoaded:!1,flatSessionsNextPageToken:null,flatSessionsHasMore:!0,flatSessionsLoading:!1,flatSessionsLoadingMore:!1,flatSessionsSeeded:!1,flatSessionsFrontier:null,doneSessions:[],doneSessionsNextPageToken:null,doneSessionsHasMore:!0,doneSessionsLoading:!1,doneSessionsLoadingMore:!1,doneSessionsSeeded:!1,draftEntry:"newChat",mainView:"chat"}),Cu=jo({}),q6=jo({}),zp=new Map,yp=new Map;function zhe(e,t){return`${e}\0${t??"*"}`}function H$(e,t,n){q6[t]=n;const i=Cu[e]?.[t];i&&(Cu[e]={...Cu[e],[t]:{...i,review:n}})}async function I0(e,t){if(t!==void 0){I0(e);return}const n=zhe(e,t),i=(zp.get(n)??0)+1;zp.set(n,i),t!==void 0&&yp.set(e,(yp.get(e)??0)+1);const o=yp.get(e)??0;try{const s=await Wt().getSessionPlans(e,{agentId:"main",toolCallId:t});if(zp.get(n)!==i||t===void 0&&(yp.get(e)??0)!==o||!_e.sessions.some(l=>l.id===e))return;const r=Object.fromEntries(s.map(l=>[l.toolCallId,l]));for(const[l,a]of Object.entries(r)){const u=q6[l];u&&(!a.review||a.review.state==="pending")&&(r[l]={...a,review:u})}Cu[e]=t===void 0?r:{...Cu[e],...r}}catch(s){bu("[refreshSessionPlans] plan history unavailable for",e,s)}}function Ohe(e){const t=`${e}\0`;for(const n of zp.keys())n.startsWith(t)&&zp.delete(n);yp.delete(e),delete Cu[e]}function Phe(e){delete Cu[e]}const ag=jo({planMode:!1,swarmMode:!1,goalMode:!1});function U6(e){_e.sessions=e}function m9(e,t){_e.sessions=_e.sessions.map(n=>n.id===e?t(n):n)}function jhe(e){_e.sessions=VB(_e.sessions,e)}function Hhe(e){_e.sessions=[..._e.sessions,e]}function Whe(e){_e.sessions=_e.sessions.filter(t=>t.id!==e)}function W$(){const e=_e.activeSessionId;e&&_e.unreadBySession[e]&&typeof document<"u"&&document.visibilityState==="visible"&&(_e.unreadBySession[e]=!1,R6({[e]:!1}))}typeof window<"u"&&window.addEventListener("storage",e=>{e.key===un.unread&&(_e.unreadBySession=$6(),W$())});function y8(){if(cl===null||!cl.health().stale)return;Ll("ws:stale-reconnect",{sessionId:_e.activeSessionId,status:"stale"}),Wfe("ws: stale socket on focus, reconnecting",{activeSessionId:_e.activeSessionId}),cl.reconnect();const e=_e.activeSessionId;e&&R2.request(e)}typeof document<"u"&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&(W$(),y8())});typeof window<"u"&&(window.addEventListener("focus",y8),window.addEventListener("online",y8));function K6(e){_e.activeSessionId=e}function qhe(e){Or(_e.messagesBySession,e)}function Uhe(e,t){_e.messagesBySession[e]=t}function q$(e,t){_e.messagesBySession[e]=t(_e.messagesBySession[e]??[])}function Khe(e){delete _e.messagesBySession[e]}function V6(e){cl?.unsubscribe(e),D2.forgetSession(e),Ws.clearSideChatForSession(e),b8.delete(e),m1e(e),Nh.discard(({meta:t})=>t.sessionId===e),Whe(e),Khe(e),Ohe(e),qs().clearSessionApprovals(e),qs().clearSessionQuestions(e),delete _e.tasksBySession[e],delete _e.goalBySession[e],Hs().clearSessionGitStatus(e),delete _e.lastSeqBySession[e],delete _e.compactionBySession[e],delete _e.messagesLoadingMoreBySession[e],delete _e.messagesHasMoreBySession[e],delete _e.messagesLoadMoreErrorBySession[e],delete k8[e],$2.delete(e),Sv.delete(e),eR.delete(e),yhe(e),delete _e.queuedBySession[e],delete _e.promptIdBySession[e],delete _e.inFlightBySession[e],delete _e.turnActiveBySession[e],delete _e.turnEndedPromptIdBySession[e],delete _e.turnErrorBySession[e],delete _e.turnRetryBySession[e],delete _e.planModeBySession[e],delete _e.planArmedBySession[e],delete _e.swarmModeBySession[e],delete _e.goalModeBySession[e],delete _e.thinkingBySession[e],delete _e.pendingThinkingBySession[e],W6(),O$(),P$(),or().unpinSession(e)}const U$=K(!1),K$=K(null);async function cf(e){let t;try{t=await Wt().getSessionStatus(e)}catch{return}m9(e,n=>({...n,model:t.model||n.model,usage:{...n.usage,contextTokens:t.contextTokens,contextLimit:t.maxContextTokens}})),_e.swarmModeBySession[e]=t.swarmMode,_e.planModeBySession[e]=t.planMode,_r(un.planMode),t.thinkingEffort.length>0&&EB(_e,e,t.thinkingEffort)}const F2=new Set;function Vhe(e){F2.add(e),V$(e).finally(()=>{F2.delete(e)})}async function V$(e){const t=_e.goalVersionBySession[e]??0;let n;try{n=await Wt().getSessionGoal(e)}catch{return}(_e.goalVersionBySession[e]??0)===t&&(n===null||n.status==="complete"?delete _e.goalBySession[e]:_e.goalBySession[e]=n)}function Z$(e,t){const n=t??_e.activeSessionId;if(!n)return Promise.resolve(!1);const i=e.thinking!==void 0?_e.pendingThinkingBySession[n]:void 0;return Promise.resolve(Wt().updateSession(n,e)).then(()=>(Au(_e,n,i),cf(n))).then(()=>!0).catch(o=>(Au(_e,n,i)&&cf(n),h1("persistSessionProfile",o,{sessionId:n}),!1))}function G$(e){try{return gs(e)??""}catch{return""}}function Zhe(){return typeof window>"u"?!1:new URLSearchParams(window.location.search).get("kimi_onboarded")==="1"}const Q$=Zhe();if(Q$&&G$(N2)!=="1")try{is(N2,"1")}catch{}const Y$=K(Q$||G$(N2)==="1");function Ghe(e){Y$.value=e;try{is(N2,e?"1":"0")}catch{}e&&window.kimiDesktop?.setOnboarded?.()}let cl=null;const D2=hfe({api:Wt(),connectEventsIfNeeded:Z6,getEventConnection:()=>cl});let z_=0;function J$(){return z_+=1,`msg_opt_${Date.now().toString(36)}_${z_}`}function O_(e,t,n){const i={sessions:_e.sessions,activeSessionId:_e.activeSessionId,messagesBySession:_e.messagesBySession,approvalsBySession:_e.approvalsBySession,planReviewByToolCallId:_e.planReviewByToolCallId,questionsBySession:_e.questionsBySession,tasksBySession:_e.tasksBySession,goalBySession:_e.goalBySession,goalVersionBySession:_e.goalVersionBySession,lastSeqBySession:_e.lastSeqBySession,turnActiveBySession:_e.turnActiveBySession,turnEndedPromptIdBySession:_e.turnEndedPromptIdBySession,turnErrorBySession:_e.turnErrorBySession,turnRetryBySession:_e.turnRetryBySession,compactionBySession:_e.compactionBySession,config:_e.config,warnings:_e.warnings},o=Roe(i,e,{sessionId:t,seq:n},{t:(s,r)=>r===void 0?gi(s):gi(s,r)});o.sessions!==i.sessions&&U6(o.sessions),o.activeSessionId!==i.activeSessionId&&K6(o.activeSessionId),qhe(o.messagesBySession),qs().applyApprovalsDiff(o.approvalsBySession),Or(_e.planReviewByToolCallId,o.planReviewByToolCallId),qs().applyQuestionsDiff(o.questionsBySession),Or(_e.tasksBySession,o.tasksBySession),Or(_e.goalBySession,o.goalBySession),Or(_e.goalVersionBySession,o.goalVersionBySession),Or(_e.lastSeqBySession,o.lastSeqBySession),Or(_e.turnActiveBySession,o.turnActiveBySession),Or(_e.turnEndedPromptIdBySession,o.turnEndedPromptIdBySession),Or(_e.turnErrorBySession,o.turnErrorBySession),Or(_e.turnRetryBySession,o.turnRetryBySession),Or(_e.compactionBySession,o.compactionBySession),o.config!==i.config&&(_e.config=o.config??null),zoe(o.warnings,i.warnings)||(_e.warnings=o.warnings),e.type==="goalUpdated"&&F2.delete(t),e.type==="configChanged"&&(_e.defaultModel=e.config.defaultModel??null),e.type==="modelCatalogChanged"&&(Zn.loadModels(),Zn.loadProviders()),e.type==="sessionUsageUpdated"&&(e.swarmMode!==void 0&&(_e.swarmModeBySession[e.sessionId]=e.swarmMode),e.planMode!==void 0&&(_e.planModeBySession[e.sessionId]=e.planMode),e.thinking!==void 0&&EB(_e,e.sessionId,e.thinking)),e.type==="sessionDeleted"&&(V6(e.sessionId),p8(e.sessionId)),e.type==="sessionUpdated"&&e.session.archived===!0&&p8(e.session.id)}function Qhe(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.role==="user")return;if(n.role==="assistant")for(let i=n.content.length-1;i>=0;i--){const o=n.content[i];if(o.type==="toolUse"&&o.toolName==="ExitPlanMode")return o.toolCallId}}}function Yhe(e,t){const n=_e.lastSeqBySession[t.sessionId]??0,i=_e.turnActiveBySession[t.sessionId]??!1,o=e.type==="approvalResolved"||e.type==="approvalExpired"?_e.approvalsBySession[t.sessionId]?.find(r=>r.approvalId===e.approvalId&&r.toolName==="ExitPlanMode")?.toolCallId:void 0,s=Ws.sideChatTargetBySession.value[t.sessionId];if(e.type==="messageCreated"&&e.message.role==="user"&&e.agentId!==void 0&&Object.prototype.hasOwnProperty.call(_e.sideChatMessagesByAgent,e.agentId)){O_({type:"unknown",raw:{_noop:!0}},t.sessionId,t.seq),Ws.reconcileSideChatUserMessage(e.agentId,e.message);return}if(O_(e,t.sessionId,t.seq),s){const{agentId:r}=s,l=t.sessionId;e.type==="agentDelta"&&e.agentId===r?e.delta.text&&Ws.appendSideChatAssistantText(r,l,e.delta.text):e.type==="agentTurnEnded"&&e.agentId===r?Ws.finishSideChatAgent(r,l):e.type==="taskProgress"&&e.taskId===r?Ws.appendSideChatAssistantText(r,l,e.outputChunk):e.type==="taskCompleted"&&e.taskId===r&&Ws.finishSideChatAgent(r,l,e.outputPreview)}if(e.type==="messageCreated"&&e.message.role==="user"&&e.message.promptId!==void 0){const r=e.message.sessionId;_e.promptIdBySession[r]!==e.message.promptId&&(_e.promptIdBySession[r]=e.message.promptId)}if(e.type==="turnActiveChanged"&&!e.active&&t.seq>n){const r=e.reason;Kpe(e.sessionId,r==="cancelled"||r==="failed"||r==="blocked"?"aborted":"idle",i);const l=Qhe(_e.messagesBySession[e.sessionId]??[]);l!==void 0&&I0(e.sessionId,l)}if(e.type==="sessionWorkChanged"&&(e.mainTurnActive===!1&&i||e.mainTurnActive===void 0&&!e.busy)&&t.seq>n&&Upe(e.sessionId),(e.type==="promptAborted"||e.type==="promptCompleted"&&e.reason==="blocked")&&t.seq>n&&_e.promptIdBySession[e.sessionId]===e.promptId&&Bt.finishPromptLocal(e.sessionId),e.type==="questionRequested"&&Vpe(e.sessionId,e.question),e.type==="approvalRequested"&&Zpe(e.sessionId,e.approval),o!==void 0){const r=e.type==="approvalResolved"?{state:e.decision,selectedOption:e.selectedLabel,feedback:e.feedback}:{state:"cancelled"};H$(t.sessionId,o,r),I0(t.sessionId,o)}}const Nh=Hse(({appEvent:e,meta:t})=>Yhe(e,t),({appEvent:e})=>zse(e),{coalesce:qse}),Jhe=3e4;let P_=0,tr=null;const Op=new Map;let B2=0,Fh=null;function Xhe(){Fh!==null&&(clearTimeout(Fh),Fh=null)}function j_(e){if(!_e.connected||Fh!==null)return;const t=Math.min(Jhe,1e3*2**B2);B2+=1,bu("[kimi-code] session work reconciliation incomplete; retrying",e),Fh=setTimeout(()=>{Fh=null,_e.connected&&X$()},t)}function e1e(e,t){const n=new Map(e.map(u=>[u.id,u]));let i=!1,o=!1;const s={..._e.turnActiveBySession},r=[],l=new Map,a=_e.sessions.map(u=>{const c=n.get(u.id);if(c===void 0)return u;const d=t.workEventSeqBySession.get(u.id)??0,h=t.turnEventSeqBySession.get(u.id)??0,p=t.pendingEventBySession.get(u.id),g=d>c.lastSeq,m=h>c.lastSeq,k=p!==void 0&&p.seq>c.lastSeq,w=g||m&&u.mainTurnActive===!0?u.busy||u.mainTurnActive===!0:c.busy,y=g||m?u.mainTurnActive:c.mainTurnActive??(w?u.mainTurnActive:!1),b=k?p.source==="work"?u.pendingInteraction:(_e.approvalsBySession[u.id]?.length??0)>0?"approval":(_e.questionsBySession[u.id]?.length??0)>0?"question":"none":c.pendingInteraction??(w?u.pendingInteraction:"none");(k&&p.source==="work"||!k&&(c.pendingInteraction!==void 0||c.busy===!1))&&b!==void 0&&l.set(u.id,b);const A=g?u.lastTurnReason:c.lastTurnReason;Op.set(u.id,Math.max(Op.get(u.id)??0,c.lastSeq));const T=t.turnStartBySession.get(u.id);return(y===!1||y===void 0&&!w)&&t.witnessedTurnBySession.has(u.id)&&T!==void 0&&Bt.isLocalTurnSnapshotCurrent(u.id,T)&&r.push(u.id),y===!0&&!s[u.id]?(s[u.id]=!0,o=!0):(y===!1||!w)&&s[u.id]&&(delete s[u.id],o=!0),u.busy===w&&u.mainTurnActive===y&&u.pendingInteraction===b&&u.lastTurnReason===A?u:(i=!0,{...u,busy:w,mainTurnActive:y,pendingInteraction:b,lastTurnReason:A})});i&&U6(a),o&&Or(_e.turnActiveBySession,s);for(const[u,c]of l)c==="none"?(qs().clearSessionApprovals(u),qs().clearSessionQuestions(u)):c==="question"&&qs().clearSessionApprovals(u);for(const u of r)Bt.finishPromptLocal(u,{turnWasActive:!0})}async function X$(){const e={workEventSeqBySession:new Map,turnEventSeqBySession:new Map,pendingEventBySession:new Map,turnStartBySession:new Map(_e.sessions.map(t=>[t.id,Bt.localTurnStartState(t.id)])),witnessedTurnBySession:new Set(_e.sessions.filter(t=>_e.inFlightBySession[t.id]||_e.turnActiveBySession[t.id]).map(t=>t.id))};tr=e;try{const t=await Bt.listAllSessionsGlobal({shouldContinue:()=>tr===e&&_e.connected});if(tr!==e||!_e.connected)return;Nh.flush(),e1e(t.sessions,e),tr=null,t.error!==void 0?j_(t.error):B2=0}catch(t){if(tr!==e||!_e.connected)return;tr=null,j_(t)}}function Z6(){if(cl!==null||typeof WebSocket>"u")return;Ll("ws:connection",{status:"connecting"}),_e.connection="connecting",cl=Wt().connectEvents({onEvent(t,n){if(t.type==="sessionArchived"){Bt.applyRemoteSessionArchived(t.sessionId,t.workspaceId).then(r=>{r&&p8(t.sessionId)});return}if(t.type==="workspaceCreated"||t.type==="workspaceUpdated"||t.type==="workspaceDeleted"){if(t.type==="workspaceDeleted"){const r=_e.sessions.filter(l=>l.workspaceId===t.workspaceId||l.cwd===t.root).map(l=>l.id);Ufe(t.workspaceId,t.root,r)}Bt.applyWorkspaceEvent(t);return}if((t.type==="pluginsChanged"||t.type==="capabilityChanged")&&Vfe(t))return;const i=t.type==="sessionWorkChanged",o=t.type==="turnActiveChanged",s=t.type==="approvalRequested"||t.type==="approvalResolved"||t.type==="approvalExpired"||t.type==="questionRequested"||t.type==="questionAnswered"||t.type==="questionDismissed";if((i||o||s)&&n.seq>0){const r=Op.get(n.sessionId)??0;if(n.seq<=r)return;Op.set(n.sessionId,n.seq)}if(tr!==null&&(i||o||s))if(i){const r=tr.workEventSeqBySession.get(n.sessionId)??0;if(n.seq>r&&tr.workEventSeqBySession.set(n.sessionId,n.seq),t.pendingInteraction!==void 0||!t.busy){const l=tr.pendingEventBySession.get(n.sessionId);(l===void 0||n.seq>l.seq)&&tr.pendingEventBySession.set(n.sessionId,{seq:n.seq,source:"work"})}}else if(o){const r=tr.turnEventSeqBySession.get(n.sessionId)??0;n.seq>r&&tr.turnEventSeqBySession.set(n.sessionId,n.seq)}else{const r=tr.pendingEventBySession.get(n.sessionId);(r===void 0||n.seq>r.seq)&&tr.pendingEventBySession.set(n.sessionId,{seq:n.seq,source:"interaction"})}for(const r of Wse({appEvent:t,meta:n}))Nh(r)},onResync(t,n,i){Ll("ws:resync",{sessionId:t,status:"required",seq:n}),Nh.flush(),$2.add(t),R2.request(t)},onError(t,n,i){Ll("ws:error",{status:"failed",errorCode:t,fatal:i}),ug({severity:"error",title:gi("warnings.wsTitle"),message:n,details:[yo("message",n)].filter(o=>o!==void 0)})},onConnectionChange(t){Ll("ws:connection",{status:t?"connected":"disconnected"}),_e.connected=t,_e.connection=t?"connected":"disconnected",t||(tr=null,Op.clear(),Xhe(),B2=0),t&&(P_+=1,a1e(),Bt.refreshServerMeta())},onReplayComplete(){Nh.flush(),P_>1&&X$()},onTranscriptReset(t,n,i,o){D2.receiveReset(t,n,i,o)},onTranscriptOps(t,n,i,o){return D2.applyOps(t,n,i,o)}})}const k8={},$2=new Set,Sv=new Set,eR=new Set;function t1e(e){return ko(e)&&e.code===R_?!0:typeof e=="object"&&e!==null&&e.code===R_}function yo(e,t){if(!(t==null||t===""))return{label:gi(`warnings.details.${e}`),value:tR(t)}}function tR(e){if(e instanceof Error)return typeof e.stack=="string"&&e.stack?e.stack:e.message?`${e.name}: ${e.message}`:e.name;if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean"||typeof e=="bigint")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function n1e(e){return e instanceof Error||typeof e=="object"&&e!==null&&typeof e.name=="string"?e.name:void 0}function i1e(e){return e instanceof Error||typeof e=="object"&&e!==null&&typeof e.message=="string"?e.message:void 0}function o1e(e){return e instanceof Error&&typeof e.stack=="string"&&e.stack?e.stack:void 0}function s1e(e){if(!(typeof e!="number"||!Number.isFinite(e)))return new Date(e).toISOString()}function H_(e){if(!(typeof e!="number"||!Number.isFinite(e)))return`${Math.round(e)}ms`}function r1e(e,t,n){const i=t9(t),o=ko(t),s=i||o?t.timestamp:void 0,r=i||o?t.durationMs:void 0,l=[yo("operation",e),yo("sessionId",n??_e.activeSessionId),yo("connection",_e.connection),yo("timestamp",s1e(s??Date.now()))];return i?l.push(yo("duration",H_(r)),yo("request",`${t.method} ${t.path}`),yo("endpoint",t.url),yo("requestId",t.requestId),yo("phase",t.phase),yo("timeout",`${t.timeoutMs}ms`),yo("status",t.status===void 0?void 0:`${t.status} ${t.statusText??""}`.trim()),yo("contentType",t.contentType),yo("responsePreview",t.bodyPreview),yo("cause",t.cause)):o?l.push(yo("duration",H_(r)),yo("code",t.code),yo("requestId",t.requestId),yo("message",t.message),yo("details",t.details)):l.push(yo("errorName",n1e(t)),yo("message",i1e(t)??tR(t)),yo("stack",o1e(t))),l.filter(a=>a!==void 0)}function l1e(e,t,n={}){const i=t9(t),o=ko(t),s=$Y(t),r=n.title??gi(i?s?"warnings.daemonTimeoutTitle":"warnings.daemonNetworkTitle":o?"warnings.daemonApiTitle":"warnings.operationFailedTitle"),l=n.message??(i?gi(s?"warnings.daemonTimeoutMessage":"warnings.daemonNetworkMessage"):o?t.message:gi("warnings.operationFailedMessage"));return{severity:"error",title:r,message:l,details:r1e(e,t,n.sessionId)}}function ug(e){_e.warnings=[..._e.warnings,e]}function a1e(){const e=gi("warnings.wsTitle"),t=_e.warnings.filter(n=>!(typeof n=="object"&&n!==null&&n.severity==="error"&&n.title===e));t.length!==_e.warnings.length&&(_e.warnings=t)}function h1(e,t,n){fu(`[kimi-code] operation failed: ${e}`,t);const i=ko(t),o=t9(t);Ll("operation:failed",{sessionId:n?.sessionId,status:"failed",operation:e,errorName:t instanceof Error?t.name:typeof t,errorCode:i?t.code:void 0,requestId:i||o?t.requestId:void 0,phase:o?t.phase:void 0,httpStatus:o?t.status:void 0}),ug(l1e(e,t,n))}const u1e={40913:"warnings.goal.alreadyExists",40914:"warnings.goal.notFound",40915:"warnings.goal.statusInvalid",40916:"warnings.goal.notResumable",40918:"warnings.goal.objectiveTooLong"};function c1e(e){if(!ko(e)||e.code===void 0)return;const t=u1e[e.code];return t?gi(t):void 0}async function d1e(e){if(V6(e),_e.activeSessionId!==e)return;const t=_e.sessions[0];t?await Bt.selectSession(t.id,{urlMode:"replace",skipTrack:!0}):(K6(void 0),_e.sessionLoading=!1,Bt.writeSessionUrl(void 0,"replace"))}const W_=new Set;async function f1e(e){if(!W_.has(e)){W_.add(e);try{const t=await Wt().getSessionWarnings(e),n=gi("warnings.noteLabel");for(const i of t)ug(`${n}: ${i.message}`)}catch{}}}async function G6(e,t){const n=Bt.localTurnStartState(e);try{const o=await Wt().getSessionSnapshot(e);if(!_e.sessions.some(d=>d.id===e))return"ok";Nh.flush();const s=_e.lastSeqBySession[e]??0,r=k8[e],l=$2.has(e)||z2.has(e);if(!l&&r!==void 0&&r===o.epoch&&s>o.asOfSeq)return Sv.delete(e)||(Sv.add(e),R2.request(e)),"ok";if(!Bt.isLocalTurnSnapshotCurrent(e,n))return Bt.afterLocalTurnStartsSettle(e,()=>{R2.request(e)}),"ok";const a=_e.turnRetryBySession[e];a!==void 0&&a.turnId!==o.inFlightTurn?.turnId&&delete _e.turnRetryBySession[e],(l||o.session.lastTurnReason!=="failed")&&delete _e.turnErrorBySession[e];const u=v2(o.session.usage),c=o.session.mainTurnActive??(o.inFlightTurn!==null&&o.session.busy);m9(e,d=>WY(d,o.session,c)),Uhe(e,uce(_e.messagesBySession[e]??[],o.messages)),_e.tasksBySession[e]=Cce(o.subagents,_e.tasksBySession[e]??[]),_e.messagesHasMoreBySession[e]=o.hasMoreMessages,qs().setSessionApprovals(e,o.pendingApprovals);for(const d of o.pendingApprovals){const h=d.display;h?.kind==="plan_review"&&typeof h.plan=="string"&&h.plan.length>0&&(_e.planReviewByToolCallId[d.toolCallId]={plan:h.plan,path:typeof h.path=="string"?h.path:void 0})}return qs().setSessionQuestions(e,o.pendingQuestions),_e.lastSeqBySession[e]=o.asOfSeq,k8[e]=o.epoch,$2.delete(e),Sv.delete(e),Bt.handleSessionSnapshot(e,{inFlightTurn:o.inFlightTurn,busy:o.session.busy}),c?_e.turnActiveBySession[e]=!0:delete _e.turnActiveBySession[e],Z6(),cl&&(cl.seedSnapshot(e,o),cl.subscribe(e,{seq:o.asOfSeq,epoch:o.epoch}),g1e(e)),z2.delete(e),u&&t?.skipStatusRefresh!==!0&&cf(e),f1e(e),"ok"}catch(i){return t1e(i)?(await d1e(e),"not-found"):(h1("getSessionSnapshot",i,{title:gi("warnings.sessionSnapshotTitle"),message:gi("warnings.sessionSnapshotMessage"),sessionId:e}),"failed")}}const R2=cce(G6);function h1e(e){return Object.prototype.hasOwnProperty.call(_e.messagesBySession,e)}const p1e=4,ru=[],z2=new Set;function g1e(e){const t=ru.indexOf(e);for(t!==-1&&ru.splice(t,1),ru.unshift(e);ru.length>p1e;){let n=-1;for(let o=ru.length-1;o>=0;o--)if(ru[o]!==_e.activeSessionId){n=o;break}if(n===-1)break;const[i]=ru.splice(n,1);if(i===void 0)break;cl?.unsubscribe(i),z2.add(i)}}function m1e(e){const t=ru.indexOf(e);t!==-1&&ru.splice(t,1),z2.delete(e)}async function v1e(e){return G6(e)}function df(e,t){return(_e.inFlightBySession[e]??!1)||(_e.turnActiveBySession[e]??!1)||(t??_e.sessions.find(n=>n.id===e)?.mainTurnActive??!1)}function Af(e){try{const t=new Date(e),i=Date.now()-t.getTime(),o=i/36e5;if(i<6e4)return gi("sessions.justNow");if(o<1)return`${Math.round(i/6e4)}m`;if(o<24)return`${Math.round(o)}h`;const s=i/864e5;return s<7?`${Math.round(s)}d`:s<30?`${Math.round(s/7)}w`:s<365?`${Math.round(s/30)}mo`:`${Math.round(s/365)}y`}catch{return e}}const y1e=3e4,Mc=K(0);let _3=null;function k1e(){_3===null&&(_3=setInterval(()=>{Mc.value=(Mc.value+1)%Number.MAX_SAFE_INTEGER},y1e),_3.unref?.())}function b1e(e){return{questionId:e.questionId,sessionId:e.sessionId,toolCallId:e.toolCallId,questions:e.questions.map(t=>({id:t.id,question:t.question,header:t.header,body:t.body,options:t.options.map(n=>({id:n.id,label:n.label,description:n.description,recommended:n.recommended})),multiSelect:t.multiSelect,allowOther:t.allowOther,otherLabel:t.otherLabel}))}}const A1e=F(()=>{const e=_e.activeSessionId,t=e?_e.messagesBySession[e]??[]:[],n=new Map;for(const o of t)if(o.role==="assistant")for(const s of o.content){if(s.type!=="toolUse"||s.toolName!=="Bash"&&s.toolName!=="bash")continue;const r=s.input,l=r&&typeof r.command=="string"?r.command:void 0;l&&n.set(s.toolCallId,l)}const i=new Map;if(n.size===0)return i;for(const o of t)if(o.role==="tool")for(const s of o.content){if(s.type!=="toolResult")continue;const r=x6(s.output);if(!r)continue;let l;for(const u of r){const c=/task_id:\s*(\S+)/.exec(u);if(c?.[1]){l=c[1];break}}if(!l)continue;const a=n.get(s.toolCallId);a&&i.set(l,a)}return i});function nR(e){return A1e.value.get(e.id)}const C1e=F(()=>{const e=_e.activeSessionId,t=e?_e.messagesBySession[e]??[]:[],n=new Map;for(const i of t)if(i.role==="assistant")for(const o of i.content){if(o.type!=="toolUse")continue;const s=o.input,r=s&&typeof s.prompt=="string"?s.prompt:void 0;r&&!n.has(o.toolCallId)&&n.set(o.toolCallId,r);const l=s?.items;if(!r&&Array.isArray(l)&&!n.has(o.toolCallId)){const a=l.filter(u=>typeof u=="string");a.length>0&&n.set(o.toolCallId,a)}}return n});function w1e(e){if(!e.parentToolCallId)return;const t=C1e.value.get(e.parentToolCallId);return Array.isArray(t)?e.swarmIndex!==void 0?t[e.swarmIndex]:void 0:t}function x1e(e){let t;e.status==="running"?t="run":e.status==="completed"?t="done":e.status==="cancelled"?t="cancelled":t="fail";let n="",i;if(e.status==="running"&&e.startedAt){i=Date.now()-new Date(e.startedAt).getTime();const l=Math.round(i/1e3),a=Math.floor(l/60),u=l%60;n=gi("tasks.timingRunning",{time:`${a}:${String(u).padStart(2,"0")}`})}else e.completedAt&&e.startedAt&&!e.completedAtEstimated?(i=new Date(e.completedAt).getTime()-new Date(e.startedAt).getTime(),n=gi("tasks.timingDone",{time:Wa(i,{h:gi("status.timeUnitHour"),m:gi("status.timeUnitMinute"),s:gi("status.timeUnitSecond")})})):n=e.status;const o=e.outputLines&&e.outputLines.length>0?e.outputLines:e.outputPreview?e.outputPreview.split(/\r?\n/):void 0,s=e.command??nR(e),r=e.kind==="bash"&&s?`$ ${s}`:e.kind==="subagent"?w1e(e)??e.subagentType:void 0;return{id:e.id,agentId:e.agentId,backgroundTaskId:e.backgroundTaskId,name:e.description,kind:e.kind,state:t,timing:n,durationMs:i,meta:r,output:o,runInBackground:e.runInBackground,parentToolCallId:e.parentToolCallId,swarmIndex:e.swarmIndex,completedAt:e.completedAt,createdAt:e.createdAt,model:e.model,thinkingEffort:e.thinkingEffort}}const S1e=F(()=>{const e=_e.sessions.find(n=>n.id===_e.activeSessionId),t=e?e.cwd.split("/").pop()??e.cwd:"main";return{name:_e.workspaceName,branch:t}}),_1e=F(()=>(Mc.value,_e.sessions.toSorted((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime()).map(e=>({id:e.id,title:e.title,time:Af(e.updatedAt),busy:df(e.id,e.mainTurnActive),pendingInteraction:e.pendingInteraction,lastTurnReason:e.lastTurnReason,workspaceId:Mr(e),cwd:e.cwd})))),M1e=F(()=>_e.activeSessionId??""),I1e=F(()=>{const e=_e.activeSessionId;if(e)return Zn.skillsBySession.value[e]??[];const t=fg.value;return t?Zn.skillsByWorkspace.value[t]??[]:[]}),E1e=F(()=>{const e=_e.activeSessionId;if(e)return Zn.skillsFetchedBySession.value[e]===!0;const t=fg.value;return t?Zn.skillsFetchedByWorkspace.value[t]===!0:!1}),Q6=F(()=>{const e=_e.activeSessionId;return e?_e.inFlightBySession[e]??!1:!1}),T1e=F(()=>Bt.isStartingFirstPrompt()),Ws=Ffe(_e,{api:Wt(),pushOperationFailure:h1,nextOptimisticMsgId:J$,connectEventsIfNeeded:Z6,getEventConn:()=>cl,resolveThinkingForPrompt:(e,t)=>Zn.resolveThinkingForPrompt(e,t),refreshSessionStatus:cf}),cg=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=Ws.sideChatTargetBySession.value[e]?.agentId;return(_e.tasksBySession[e]??[]).filter(n=>n.id!==t)}),iR=Nfe(_e,cg,{api:Wt()}),dg=F(()=>{const e=_e.activeSessionId;return e?(_e.turnActiveBySession[e]??!1)||(_e.sessions.find(t=>t.id===e)?.mainTurnActive??!1):!1}),L1e=F(()=>{const e=_e.activeSessionId;if(e)return _e.turnErrorBySession[e]}),N1e=F(()=>{const e=_e.activeSessionId;if(e&&dg.value)return _e.turnRetryBySession[e]}),oR=e=>Wt().getFileUrl(e),sR=(e,t)=>Wt().getSessionMediaUrl(e,t),F1e=[],D1e=hB(),rR=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=new Set(_e.sideChatUserMessageIdsBySession[e]??[]);return D1e({messages:(_e.messagesBySession[e]??[]).filter(n=>!t.has(n.id)),approvals:_e.approvalsBySession[e]??F1e,getFileUrl:oR,getSessionMediaUrl:sR,sessionActive:dg.value,planReviewByToolCallId:_e.planReviewByToolCallId,plansByToolCallId:Cu[e]})}),B1e=F(()=>Q6.value||dg.value),b8=new Map,$1e=F(()=>{iR.taskClock.value;const e=cg.value.map(x1e),t=_e.activeSessionId;if(t){let n=b8.get(t);n||(n=new Map,b8.set(t,n));const i=e.filter(r=>r.kind==="subagent"&&r.runInBackground);for(const r of i){const l=r.agentId??r.id;if(r.agentId!==void 0&&r.backgroundTaskId!==void 0&&!n.has(l)){const a=n.get(r.backgroundTaskId);a!==void 0&&(n.delete(r.backgroundTaskId),n.set(l,a))}}const o=i.filter(r=>!n.has(r.agentId??r.id)).sort((r,l)=>(r.createdAt??"").localeCompare(l.createdAt??""));let s=n.size===0?0:Math.max(...n.values())+1;for(const r of o)n.set(r.agentId??r.id,s++);for(const r of i)r.swarmIndex=n.get(r.agentId??r.id)}return e}),lR=F(()=>nre(cg.value)),R1e=F(()=>ore(cg.value)),rh=F(()=>{const e=_e.activeSessionId;return e?_e.goalBySession[e]??null:null}),z1e=F(()=>{const e=_e.activeSessionId;return e?Kse(_e.messagesBySession[e]??[]):[]}),O1e=F(()=>{const e=_e.activeSessionId;return e?_e.compactionBySession[e]??null:null}),P1e=F(()=>_e.connection),j1e=F(()=>_e.loading),H1e=F(()=>_e.sessionLoading),W1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesLoadingMoreBySession[e]??!1:!1}),q1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesHasMoreBySession[e]??!1:!1}),U1e=F(()=>{const e=_e.activeSessionId;return e?_e.messagesLoadMoreErrorBySession[e]??!1:!1}),K1e=F(()=>_e.serverVersion),aR=F(()=>_e.webTitle),V1e=F(()=>_e.experimentalFlags),Z1e=F(()=>_e.backend),G1e=F(()=>_e.dangerousBypassAuth);function Q1e(){_e.dangerousBypassAuth=!1}const Y1e=F(()=>_e.permission),J1e=F(()=>_e.thinking),uR=F(()=>{const e=_e.activeSessionId;return e?_e.planModeBySession[e]??!1:ag.planMode}),X1e=F(()=>{const e=_e.activeSessionId;return e?_e.planArmedBySession[e]??!1:ag.planMode}),epe=F(()=>{const e=_e.activeSessionId;return e?_e.swarmModeBySession[e]??!1:ag.swarmMode}),tpe=F(()=>{const e=_e.activeSessionId;return e?_e.goalModeBySession[e]??!1:ag.goalMode}),npe=F(()=>{const e=_e.activeSessionId,t=(e?Cu[e]:void 0)??{},n={},i=new Set;for(const s of rR.value)for(const r of s.tools??[]){if(r.name!=="ExitPlanMode")continue;i.add(r.id);const l=t[r.id];if(l){n[r.id]=l;continue}const a=_e.planReviewByToolCallId[r.id],u=ipe(r.arg),c=a?.plan??u?.plan,d=r.planPath??a?.path;!c&&!d||(n[r.id]={agentId:"main",toolCallId:r.id,turnId:s.id,source:"interaction",plan:c??"",path:d,options:u?.options,review:q6[r.id]})}return{...Object.fromEntries(Object.entries(t).filter(([s])=>!i.has(s))),...n}});function ipe(e){try{const t=JSON.parse(e);return{plan:typeof t.plan=="string"?t.plan:void 0,options:Array.isArray(t.options)?t.options:void 0}}catch{return}}const ope=F(()=>{const e=ire(lR.value);return{plan:uR.value,goal:rh.value&&rh.value.status!=="complete"?{status:rh.value.status,turnsUsed:rh.value.turnsUsed,elapsedMs:rh.value.wallClockMs}:null,swarm:e.total>0?e:null}}),spe=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=Wt();return(_e.queuedBySession[e]??[]).map(n=>({id:n.id??n.text,text:n.text,attachmentCount:n.attachments?.length??0,attachments:n.attachments?.map(i=>P6(t,i))}))}),rpe=F(()=>_e.warnings),lpe=F(()=>{const e=_e.activeSessionId;return e?(_e.questionsBySession[e]??[]).map(b1e):[]}),ape=F(()=>{const e=_e.activeSessionId;return e?(_e.approvalsBySession[e]??[]).map(t=>({approvalId:t.approvalId,block:aB(t),agentName:t.agentName,toolCallId:t.toolCallId})):[]}),Y6=F(()=>{const e=_e.activeSessionId;return e?(_e.approvalsBySession[e]??[]).length>0?"awaiting-approval":(_e.questionsBySession[e]??[]).length>0?"awaiting-question":Q6.value||dg.value?"running":"idle":"idle"}),Zn=Yfe(_e,{api:Wt(),pushOperationFailure:h1,refreshSessionStatus:cf,persistSessionProfile:Z$,savePlanModeToStorage:W6,activity:Y6,updateSession:m9,updateSessionMessages:q$,loadConfig:()=>Bt.loadConfig(),checkAuth:()=>Bt.checkAuth(),beginLocalTurn:m8,settleLocalTurn:v8}),A8=F(()=>{const e=_e.activeSessionId;if(!e)return null;const t=_e.gitStatusBySession[e];return t?{branch:t.branch,ahead:t.ahead,behind:t.behind}:null}),upe=F(()=>{const e=_e.activeSessionId;return e?_e.gitStatusBySession[e]?.pullRequest??null:null}),cpe=F(()=>{const e=_e.activeSessionId;if(!e)return[];const t=_e.gitStatusBySession[e];return t?Object.entries(t.entries).map(([n,i])=>({path:n,status:i})).sort((n,i)=>n.path.localeCompare(i.path)):[]}),dpe=F(()=>{const e=_e.activeSessionId;if(!e)return null;const t=_e.gitStatusBySession[e];return t?{totalAdditions:t.additions,totalDeletions:t.deletions}:null}),cR=F(()=>{const e=_e.sessions.find(r=>r.id===_e.activeSessionId),t=A8.value?.branch??(e?e.cwd.split("/").pop()??e.cwd:"main"),n=e===void 0?Zn.draftModel.value:null,i=(e?.model&&e.model.length>0?e.model:n??_e.defaultModel)??"—",o=Zn.models.value.find(r=>r.id===i)??Zn.models.value.find(r=>r.model===i);return{model:o?.displayName||o?.model||(i.includes("/")?i.split("/").pop():i),modelId:o?.id??i,ctxUsed:e?.usage.contextTokens??0,ctxMax:e?.usage.contextLimit??0,permission:_e.permission,branch:t,cwd:e?.cwd??"",isGitRepo:A8.value!==null}}),fpe=F(()=>Hs().fileDiffLines),hpe=F(()=>_e.sessions.find(t=>t.id===_e.activeSessionId)?.usage.totalCostUsd??0),ppe=F(()=>_e.authReady),gpe=F(()=>_e.defaultModel),mpe=F(()=>_e.managedProviderStatus),vpe=F(()=>_e.managedUserInfo),ype=F(()=>_e.managedMembership),kpe=F(()=>_e.config),bpe=F(()=>{const e=_e.activeSessionId;if(!e)return{};const t=_e.gitStatusBySession[e];return t?{...t.entries}:{}}),Ape=F(()=>{const e=new Map;for(const t of _e.workspaces){const n=ol(t.root);e.has(n)||e.set(n,t.id)}return e});function Mr(e){return Ape.value.get(ol(e.cwd))??e.workspaceId??e.cwd}const v9=F(()=>Pre({workspaces:_e.workspaces,sessions:_e.sessions,hiddenWorkspaceRoots:_e.hiddenWorkspaceRoots,sessionsHasMoreByWorkspace:_e.sessionsHasMoreByWorkspace})),O2=K(vce()),P2=K(yce());function Cpe(e){P2.value!==e&&(P2.value=e,kce(e))}const E0=K(bce());Pe(()=>_e.sessions,e=>{const t=Kce(e,Mr),{next:n,changed:i}=Uce(E0.value,t);i&&(E0.value=n,p$(n))});const dR=F(()=>Vce(v9.value,E0.value));Pe(()=>[v9.value.map(e=>e.id).join("\0"),_e.loading],([e,t])=>{if(t)return;const n=e?e.split("\0"):[],i=jce(n,O2.value,dR.value);i!==null&&(O2.value=i,h$(i));const{next:o,changed:s}=Zce(E0.value,new Set(n));s&&(E0.value=o,p$(o))});const y9=F(()=>or().pinnedSessionIds);function wpe(e){or().pinSession(e)}function xpe(e){or().unpinSession(e)}function Spe(e){or().unpinSessions(e)}function _pe(e){or().togglePinSession(e)}const Yr=F(()=>{const e=v9.value.map(t=>({id:t.id,name:t.name,root:t.root,shortPath:Rhe(t.root,_e.fsHome),sessionCount:t.sessionCount}));return P2.value==="recent"?qce(e,dR.value):Hce(e,O2.value)}),fg=F(()=>{const e=_e.activeWorkspaceId,t=Yr.value;return e&&t.some(n=>n.id===e)?e:t[0]?.id??null});Pe(fg,e=>{e&&(Object.prototype.hasOwnProperty.call(Zn.skillsByWorkspace.value,e)||Zn.loadSkillsForWorkspace(e))},{immediate:!0});const fR=F(()=>{const e=fg.value;return e?Yr.value.find(t=>t.id===e)??null:null}),Mpe=efe({webTitle:aR,activeWorkspaceRoot:()=>fR.value?.root??null}),Ipe=F(()=>{Mc.value;const e=new Set(Yr.value.map(n=>n.id)),t=new Map(Yr.value.map(n=>[n.id,n.name]));return _e.sessions.filter(n=>!n.parentSessionId&&e.has(Mr(n))).map(n=>{const i=Mr(n);return{id:n.id,title:n.title,time:Af(n.updatedAt),busy:df(n.id,n.mainTurnActive),pendingInteraction:n.pendingInteraction,lastTurnReason:n.lastTurnReason,lastPrompt:n.lastPrompt,workspaceId:i,workspaceName:t.get(i)}})}),C8=K(dc),k9=F(()=>{Mc.value;const e=new Set(Yr.value.map(r=>r.id)),t=new Map(Yr.value.map(r=>[r.id,r.name])),n=new Set(y9.value),i=(r,l)=>new Date(l.updatedAt).getTime()-new Date(r.updatedAt).getTime(),o=_e.flatSessionsFrontier,s=[];for(const r of _e.sessions)r.parentSessionId||r.archived||n.has(r.id)||!e.has(Mr(r))||!(og({busy:df(r.id,r.mainTurnActive),unread:e7.value[r.id]??!1,questionCount:T0.value[r.id]?.questions??0,approvalCount:T0.value[r.id]?.approvals??0,pendingInteraction:r.pendingInteraction,lastTurnReason:r.lastTurnReason})!=="idle")&&o!==null&&new Date(r.updatedAt).getTime(){const l=Mr(r);return{id:r.id,title:r.title,time:Af(r.updatedAt),busy:df(r.id,r.mainTurnActive),pendingInteraction:r.pendingInteraction,lastTurnReason:r.lastTurnReason,lastPrompt:r.lastPrompt,updatedAt:r.updatedAt,workspaceId:l,workspaceName:t.get(l),cwdLabel:r.cwd?Tu(r.cwd):"-",pullRequest:r.pullRequest}})});function Epe(e){return og({busy:e.busy,unread:e7.value[e.id]??!1,questionCount:T0.value[e.id]?.questions??0,approvalCount:T0.value[e.id]?.approvals??0,pendingInteraction:e.pendingInteraction,lastTurnReason:e.lastTurnReason})!=="idle"}const J6=F(()=>{const e=k9.value;let t=C8.value;for(let n=e.length-1;n>=t;n--)if(Epe(e[n])){t=n+1;break}return t}),Tpe=F(()=>k9.value.slice(0,J6.value)),Lpe=F(()=>_e.flatSessionsHasMore||J6.valuek9.value.length&&_e.flatSessionsHasMore&&Bt.loadMoreFlatSessions()}const j2=K(dc),X6=F(()=>{Mc.value;const e=new Set(Yr.value.map(n=>n.id)),t=new Map(Yr.value.map(n=>[n.id,n.name]));return _e.doneSessions.filter(n=>e.has(Mr(n))).map(n=>{const i=Mr(n),o=_e.sessions.find(r=>r.id===n.id),s=o!==void 0&&new Date(o.updatedAt).getTime()>new Date(n.updatedAt).getTime()?o.updatedAt:n.updatedAt;return{id:n.id,title:n.title,time:Af(s),busy:o?.busy??n.busy,pendingInteraction:o?.pendingInteraction??n.pendingInteraction,lastTurnReason:o?.lastTurnReason??n.lastTurnReason,lastPrompt:n.lastPrompt,updatedAt:s,workspaceId:i,workspaceName:t.get(i),archived:!0,cwdLabel:n.cwd?Tu(n.cwd):"-",pullRequest:n.pullRequest}}).sort((n,i)=>new Date(i.updatedAt).getTime()-new Date(n.updatedAt).getTime())}),Fpe=F(()=>X6.value.slice(0,j2.value)),Dpe=F(()=>_e.doneSessionsHasMore||j2.valueX6.value.length&&_e.doneSessionsHasMore&&Bt.loadMoreDoneSessions()}const $pe=F(()=>{const e=_e.activeSessionId;return e?_e.sessions.find(t=>t.id===e)?.archived===!0:!1});function Rpe(e,t=6){if(!e)return[];const n=new Map(Yr.value.map(r=>[r.id,r.name])),i=(r,l)=>({id:r.id,title:r.title,time:Af(l??r.updatedAt),busy:l===void 0&&df(r.id,r.mainTurnActive),pendingInteraction:l===void 0?r.pendingInteraction:void 0,lastTurnReason:l===void 0?r.lastTurnReason:void 0,lastPrompt:r.lastPrompt,updatedAt:l??r.updatedAt,workspaceId:e,workspaceName:n.get(e),archived:l!==void 0,cwdLabel:r.cwd?Tu(r.cwd):"-",pullRequest:r.pullRequest}),o=_e.sessions.filter(r=>!r.parentSessionId&&!r.archived&&Mr(r)===e).sort((r,l)=>new Date(l.updatedAt).getTime()-new Date(r.updatedAt).getTime()),s=_e.doneSessions.filter(r=>Mr(r)===e);return[...o.map(r=>i(r)),...s.map(r=>i(r,r.updatedAt))].slice(0,t)}function hR(e){Mc.value;const t=new Set(y9.value),n=new Map,i=new Map;for(const o of _e.sessions.toSorted((s,r)=>new Date(r.updatedAt).getTime()-new Date(s.updatedAt).getTime())){if(o.parentSessionId||o.archived)continue;const s=Mr(o);if(e&&t.has(o.id)){i.set(s,(i.get(s)??0)+1);continue}const r={id:o.id,title:o.title,time:Af(o.updatedAt),busy:df(o.id,o.mainTurnActive),pendingInteraction:o.pendingInteraction,lastTurnReason:o.lastTurnReason,updatedAt:o.updatedAt},l=n.get(s)??[];l.push(r),n.set(s,l)}return Yr.value.map(o=>({workspace:o,sessions:n.get(o.id)??[],pinnedCount:i.get(o.id)??0,hasMore:_e.sessionsHasMoreByWorkspace[o.id]??!1,loadingMore:_e.sessionsLoadingMoreByWorkspace[o.id]??!1,initialCount:_e.sessionsInitialCountByWorkspace[o.id]??mp}))}const zpe=F(()=>hR(!0)),Ope=F(()=>hR(!1)),Ppe=F(()=>{Mc.value;const e=new Set(Yr.value.map(o=>o.id)),t=new Map(Yr.value.map(o=>[o.id,o.name])),n=_e.sessions.filter(o=>!o.parentSessionId&&!o.archived&&e.has(Mr(o)));return Ile(n,y9.value).pinned.toSorted((o,s)=>new Date(s.updatedAt).getTime()-new Date(o.updatedAt).getTime()).map(o=>{const s=Mr(o);return{id:o.id,title:o.title,time:Af(o.updatedAt),busy:df(o.id,o.mainTurnActive),pendingInteraction:o.pendingInteraction,lastTurnReason:o.lastTurnReason,updatedAt:o.updatedAt,workspaceId:s,workspaceName:t.get(s),pinned:!0,cwdLabel:o.cwd?Tu(o.cwd):"-",pullRequest:o.pullRequest}})});function jpe(e){O2.value=e,h$(e)}const pR=F(()=>{const e={};for(const[t,n]of Object.entries(_e.approvalsBySession))n.length>0&&(e[t]=(e[t]??0)+n.length);for(const[t,n]of Object.entries(_e.questionsBySession))n.length>0&&(e[t]=(e[t]??0)+n.length);return e}),T0=F(()=>{const e={};for(const[t,n]of Object.entries(_e.approvalsBySession))n.length>0&&((e[t]??={approvals:0,questions:0}).approvals=n.length);for(const[t,n]of Object.entries(_e.questionsBySession))n.length>0&&((e[t]??={approvals:0,questions:0}).questions=n.length);return e}),e7=F(()=>{const e={};for(const[t,n]of Object.entries(_e.unreadBySession))n&&(e[t]=!0);return e}),Hpe=F(()=>{const e={},t=pR.value;for(const n of _e.sessions){const i=t[n.id]??0;if(i<=0)continue;const o=Mr(n);e[o]=(e[o]??0)+i}return e}),Wpe=F(()=>_e.recentRoots),qpe=F(()=>_e.availableOpenInApps),Bt=Ahe(_e,{taskPoller:iR,sideChat:Ws,modelProvider:Zn,pushOperationFailure:h1,notify:ug,activity:Y6,sessionsKnownEmpty:eR,setSessions:U6,updateSession:m9,upsertSessionSorted:jhe,appendSession:Hhe,forgetSession:V6,unpinSessions:Spe,setActiveSessionId:K6,updateSessionMessages:q$,nextOptimisticMsgId:J$,getEventConn:()=>cl,syncSessionFromSnapshot:G6,reopenSession:v1e,hasLoadedMessages:h1e,refreshSessionStatus:cf,refreshSessionGoal:V$,refillSessionGoalOnReload:Vhe,refreshSessionPlans:I0,settlePlanReviewLocally:H$,persistSessionProfile:Z$,mergedWorkspaces:v9,workspacesView:Yr,status:cR,workspaceIdForSession:Mr,savePermissionToStorage:Nhe,savePlanModeToStorage:W6,saveSwarmModeToStorage:O$,saveGoalModeToStorage:P$,draftModes:ag,saveUnread:R6,saveActiveWorkspaceToStorage:$he,saveHiddenWorkspacesToStorage:Bhe,goalErrorMessage:c1e,initialized:U$,connectIssue:K$}),$i=Mhe({pushOperationFailure:h1,applySessionsArchivedLocally:Bt.applySessionsArchivedLocally});Pe(()=>_e.mainView,e=>{e==="sessionAdmin"&&$i.ensureSeeded()});function t7(e){return e===_e.activeSessionId&&typeof document<"u"&&document.visibilityState==="visible"&&document.hasFocus()}function Upe(e){_e.turnActiveBySession[e]&&delete _e.turnActiveBySession[e],_e.inFlightBySession[e]&&(_e.inFlightBySession[e]=!1)}function Kpe(e,t,n){const i=_e.promptIdBySession[e],o=_e.goalBySession[e]?.status==="active"||F2.has(e);Bt.finishPromptLocal(e,{turnWasActive:n}),(_e.experimentalFlags?.auto_session_title??_e.config?.experimental?.auto_session_title)===!0&&Bt.maybeGenerateSessionTitle(e),Hs().loadGitStatus(e),e===_e.activeSessionId?cf(e):t==="idle"&&!o&&(_e.unreadBySession[e]=!0,R6({[e]:!0}));const s=(_e.approvalsBySession[e]??[]).length>0,r=(_e.questionsBySession[e]??[]).length>0;!o&&nfe(t,s,r)&&rc().maybeNotifyCompletion(e,{isUserWatching:t7(e),sessionTitle:_e.sessions.find(l=>l.id===e)?.title??"",promptId:i,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function Vpe(e,t){const n=t.questions[0],i=n?.header?.trim()??"",o=n?.question?.trim()??"",s=i&&o?`${i}: ${o}`:o||i;rc().maybeNotifyQuestion({isUserWatching:t7(e),sessionTitle:_e.sessions.find(r=>r.id===e)?.title??"",questionPreview:s,questionId:t.questionId,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function Zpe(e,t){rc().maybeNotifyApproval({isUserWatching:t7(e),sessionTitle:_e.sessions.find(n=>n.id===e)?.title??"",toolName:t.toolName,approvalId:t.approvalId,onClick:()=>{Bt.selectSession(e,{source:"notification"})}})}function pa(){return k1e(),{workspace:S1e,sessions:_1e,activeSessionId:M1e,workspacesView:Yr,workspaceSortMode:P2,visibleWorkspace:fR,activeWorkspaceId:fg,sessionsForView:Ipe,workspaceGroups:zpe,mobileWorkspaceGroups:Ope,pinnedSessions:Ppe,pinnedSessionIds:y9,flatSessions:Tpe,flatSessionsHasMore:Lpe,flatSessionsLoadingMore:F(()=>_e.flatSessionsLoadingMore),doneSessions:Fpe,doneSessionsHasMore:Dpe,doneSessionsLoadingMore:F(()=>_e.doneSessionsLoadingMore),activeSessionArchived:$pe,recentSessionsForWorkspace:Rpe,draftEntry:F(()=>_e.draftEntry),mainView:F(()=>_e.mainView),attentionBySession:pR,pendingBySession:T0,attentionByWorkspace:Hpe,unreadBySession:e7,recentRoots:Wpe,turns:rR,tasks:$1e,activeAppTasks:cg,findBashCommandForTask:nR,auxiliaryTranscripts:D2,getFileUrl:oR,getSessionMediaUrl:sR,todos:z1e,goal:rh,sessionPlans:npe,refreshSessionPlans:I0,invalidateSessionPlans:Phe,swarms:lR,swarmMembersByToolCallId:R1e,activationBadges:ope,compaction:O1e,status:cR,sessionCost:hpe,fileDiff:fpe,selectedDiffPath:F(()=>Hs().selectedDiffPath),fileDiffLoading:F(()=>Hs().fileDiffLoading),fileDiffTexts:F(()=>Hs().fileDiffTexts),fileDiffEmptyFile:F(()=>Hs().fileDiffEmptyFile),changes:cpe,gitInfo:A8,gitDiffStats:dpe,activePullRequest:upe,changesByPath:bpe,pendingApprovals:ape,availableOpenInApps:qpe,connection:P1e,loading:j1e,sessionLoading:H1e,loadingMoreMessages:W1e,hasMoreMessages:q1e,loadMoreMessagesError:U1e,serverVersion:K1e,webTitle:aR,documentBaseTitle:Mpe,backend:Z1e,dangerousBypassAuth:G1e,experimentalFlags:V1e,clearDangerousBypassAuth:Q1e,initialized:U$,connectIssue:K$,permission:Y1e,thinking:J1e,planMode:uR,planArmed:X1e,swarmMode:epe,goalMode:tpe,queued:spe,warnings:rpe,questions:lpe,activity:Y6,turnActive:dg,activeTurnError:L1e,activeTurnRetry:N1e,inFlight:Q6,working:B1e,isStartingFirstPrompt:T1e,models:Zn.models,starredModelIds:Zn.starredModelIds,providers:Zn.providers,fontScale:Bm.fontScale,setFontScale:Bm.setFontScale,colorScheme:Bm.colorScheme,setColorScheme:Bm.setColorScheme,notifyEnabled:F(()=>rc().notifyEnabled),notifySound:F(()=>rc().notifySound),notifyPermission:F(()=>rc().notifyPermission),setNotifyEnabled:e=>rc().setNotifyEnabled(e),setNotifySound:e=>rc().setNotifySound(e),onboarded:Y$,setOnboarded:Ghe,load:Bt.load,selectSession:Bt.selectSession,clearActiveSession:Bt.clearActiveSession,openSessionAdmin:e=>{e!==void 0&&$i.applyFilters({workspaceIds:[e],status:"all",updatedFrom:"",updatedTo:""}),Bt.openSessionAdmin()},closeSessionAdmin:Bt.closeSessionAdmin,sessionAdminItems:F(()=>$i.state.items),sessionAdminTotal:F(()=>$i.state.total),sessionAdminLoading:F(()=>$i.state.loading),sessionAdminFilters:F(()=>$i.state.filters),sessionAdminPage:F(()=>$i.state.page),sessionAdminPageSize:F(()=>$i.state.pageSize),refreshSessionAdminSessions:$i.refresh,applySessionAdminFilters:$i.applyFilters,setSessionAdminWorkspaceFilter:$i.setWorkspaceIds,setSessionAdminStatusFilter:$i.setStatus,setSessionAdminTimeRange:$i.setTimeRange,setSessionAdminPage:$i.setPage,setSessionAdminPageSize:$i.setPageSize,sessionAdminSelectedIds:F(()=>$i.state.selectedIds),sessionAdminSelectedCount:F(()=>$i.state.selectedIds.size),sessionAdminOpenSelectedIds:F(()=>$i.selectedIdsByArchived(!1)),sessionAdminDoneSelectedIds:F(()=>$i.selectedIdsByArchived(!0)),toggleSessionAdminSelection:$i.toggleSelection,toggleSessionAdminPageSelection:$i.togglePageSelection,setSessionAdminSelection:$i.setSelection,clearSessionAdminSelection:$i.clearSelection,selectSessionAdminAllMatching:$i.selectAllMatching,sessionAdminAllMatching:F(()=>$i.state.allMatching),sessionAdminMaterializingAll:F(()=>$i.state.materializingAll),archiveSessions:$i.archiveSessions,restoreSessions:$i.restoreSessions,loadOlderMessages:Bt.loadOlderMessages,loadWorkspaces:Bt.loadWorkspaces,loadMoreSessions:Bt.loadMoreSessions,loadAllSessions:Bt.loadAllSessions,ensureFlatSessions:Bt.ensureFlatSessions,loadMoreFlatSessions:Npe,ensureDoneSessions:Bt.ensureDoneSessions,loadMoreDoneSessions:Bpe,selectWorkspace:Bt.selectWorkspace,openWorkspace:Bt.openWorkspace,openWorkspaceDraft:Bt.openWorkspaceDraft,startSessionAndSendPrompt:Bt.startSessionAndSendPrompt,startSessionAndActivateSkill:Bt.startSessionAndActivateSkill,startSessionAndOpenSideChat:Bt.startSessionAndOpenSideChat,addWorkspaceByPath:Bt.addWorkspaceByPath,browseFs:Bt.browseFs,getFsHome:Bt.getFsHome,sendPrompt:Bt.sendPrompt,steerPrompt:Bt.steerPrompt,steerQueued:Bt.steerQueued,sideChatVisible:Ws.sideChatVisible,sideChatSessionId:Ws.sideChatSessionId,sideChatTurns:Ws.sideChatTurns,sideChatRunning:Ws.sideChatRunning,sideChatSending:Ws.sideChatSending,openSideChat:Ws.openSideChat,closeSideChat:Ws.closeSideChat,sendSideChatPrompt:Ws.sendSideChatPrompt,uploadImage:Bt.uploadImage,abortCurrentPrompt:Bt.abortCurrentPrompt,respondApproval:Bt.respondApproval,respondQuestion:Bt.respondQuestion,dismissQuestion:Bt.dismissQuestion,pendingQuestionActions:Bt.pendingQuestionActions,pendingApprovalActions:Bt.pendingApprovalActions,cancelTask:Bt.cancelTask,setPermission:Bt.setPermission,setThinking:Zn.setThinking,setPlanMode:Bt.setPlanMode,togglePlanMode:Bt.togglePlanMode,setSwarmMode:Bt.setSwarmMode,toggleSwarmMode:Bt.toggleSwarmMode,setGoalMode:Bt.setGoalMode,toggleGoalMode:Bt.toggleGoalMode,createGoal:Bt.createGoal,controlGoal:Bt.controlGoal,enqueue:Bt.enqueue,dismissWarning:Bt.dismissWarning,renameSession:Bt.renameSession,regenerateSessionTitle:Bt.regenerateSessionTitle,renameWorkspace:Bt.renameWorkspace,deleteWorkspace:Bt.deleteWorkspace,reorderWorkspaces:jpe,setWorkspaceSortMode:Cpe,pinSession:wpe,unpinSession:xpe,togglePinSession:_pe,archiveSession:Bt.archiveSession,exportSession:Bt.exportSession,restoreSession:Bt.restoreSession,loadArchivedSessions:Bt.loadArchivedSessions,compact:Bt.compact,forkSession:Bt.forkSession,undo:Bt.undo,unqueue:Bt.unqueue,reorderQueue:Bt.reorderQueue,searchFiles:Bt.searchFiles,loadGitStatus:Hs().loadGitStatus,loadFileDiff:Hs().loadFileDiff,clearFileDiff:Hs().clearFileDiff,listDir:Bt.listDir,readFileContent:Hs().readFileContent,readHostFileContent:Bt.readHostFileContent,probeWorkspacePath:Bt.probeWorkspacePath,getFileDownloadUrl:Bt.getFileDownloadUrl,openWorkspaceFile:Bt.openWorkspaceFile,openInApp:Bt.openInApp,revealWorkspaceFile:Bt.revealWorkspaceFile,resolveImageUrl:Bt.resolveImageUrl,loadModels:Zn.loadModels,loadProviders:Zn.loadProviders,skills:I1e,skillsLoaded:E1e,activateSkill:Zn.activateSkill,setModel:Zn.setModel,toggleStarModel:Zn.toggleStarModel,addProvider:Zn.addProvider,updateProvider:Zn.updateProvider,getProvider:Zn.getProvider,deleteProvider:Zn.deleteProvider,refreshProvider:Zn.refreshProvider,refreshAllProviders:Zn.refreshAllProviders,loadCatalogProviders:Zn.loadCatalogProviders,importCatalogProvider:Zn.importCatalogProvider,importCustomRegistry:Zn.importCustomRegistry,authReady:ppe,defaultModel:gpe,managedProviderStatus:mpe,managedUserInfo:vpe,managedMembership:ype,notify:ug,config:kpe,loadConfig:Bt.loadConfig,updateConfig:Bt.updateConfig,checkAuth:Bt.checkAuth,probeManagedMembership:Bt.probeManagedMembership,startOAuthLogin:Zn.startOAuthLogin,pollOAuthLogin:Zn.pollOAuthLogin,cancelOAuthLogin:Zn.cancelOAuthLogin,getOAuthRegion:Zn.getOAuthRegion,getUsage:Zn.getUsage,logout:Bt.logout}}const H2=[{code:"en",label:"English"},{code:"zh",label:"简体中文"}],da=QG({locale:YF()});function n7(e){da.global.locale.value=e,is(un.locale,e)}const Gpe=["aria-expanded"],Qpe={class:"user-menu-avatar","aria-hidden":"true"},Ype=["src"],Jpe={class:"user-menu-name"},Xpe={class:"user-menu-name"},e0e={class:"user-menu-item-label"},t0e={class:"user-menu-item-label"},n0e={class:"user-menu-item-label user-menu-login-label"},i0e={class:"user-menu-item-label"},o0e={class:"user-menu-row-value"},s0e={class:"user-menu-item-label"},r0e={class:"user-menu-row-value"},l0e={class:"user-menu-item-label"},a0e={key:0,class:"user-menu-usage"},u0e={key:0,class:"user-menu-usage-state"},c0e={key:1,class:"user-menu-usage-state"},d0e={class:"user-menu-usage-error"},f0e={key:2,class:"user-menu-usage-state user-menu-usage-empty"},h0e={class:"user-menu-usage-label"},p0e={key:0,class:"user-menu-usage-hint"},g0e={class:"user-menu-item-label"},m0e={class:"user-menu-item-label"},v0e=Xe({__name:"UserMenu",emits:["login","openSettings"],setup(e,{emit:t}){const n=t,{t:i,locale:o}=zt(),s=pa(),{confirm:r}=Vc(),l=F(()=>s.managedProviderStatus.value==="authenticated"),a=s.managedUserInfo,u=s.managedMembership,c=F(()=>a.value?.nickname||i("sidebar.defaultUserName")),d=F(()=>u.value==="free"||Lle(a.value?.userLevel)),h=F(()=>u.value!=="free"),p=K(!1);Pe(()=>a.value?.avatar,()=>{p.value=!1});const g=F(()=>!!a.value?.avatar&&!p.value),m=s.colorScheme,k=F(()=>i(`theme.${m.value}`)),w=F(()=>m.value==="light"?"light-mode":m.value==="dark"?"dark-mode":"follow-system"),y=[{value:"light",labelKey:"theme.light",icon:"light-mode"},{value:"dark",labelKey:"theme.dark",icon:"dark-mode"},{value:"system",labelKey:"theme.system",icon:"follow-system"}];function b(le){s.setColorScheme(le)}const A=F(()=>H2.find(le=>le.code===o.value)?.label??o.value);function T(le){o.value!==le&&n7(le)}const S=K(!1),x=K({}),_=K(null),L=K(null);let M=null;function N(le){const ge=le.target;ge.closest(".user-menu")||ge.closest(".user-menu-trigger")||ge.closest(".user-submenu")||R()}function I(le){le.key==="Escape"&&(le.stopPropagation(),R())}async function z(){if(S.value){R();return}S.value=!0,document.addEventListener("mousedown",N),document.addEventListener("keydown",I,!0),window.addEventListener("resize",R),l.value&&te(),await dt(),H();const le=L.value;le&&(M=new ResizeObserver(O),M.observe(le))}function H(){const le=L.value,ge=_.value?.el;if(!le||!ge)return;const ke=le.getBoundingClientRect(),Ie=4,Oe=8,we=ge.offsetHeight,Be={left:`${Math.round(ke.left)}px`,width:`${Math.round(ke.width)}px`};ke.top-we-Ie{P[le]=ge instanceof HTMLElement?ge:ge?.$el??null}}function V(le){q(),j.value!==le&&(j.value=le,dt(ne))}function Y(le,ge){le.key!=="Enter"&&le.key!==" "&&le.key!=="ArrowRight"||(le.preventDefault(),V(ge))}function oe(){q(),Z=setTimeout(()=>{j.value=null,Z=null},250)}function q(){Z!==null&&(clearTimeout(Z),Z=null)}function ne(){const le=j.value,ge=_.value?.el,ke=W.value?.el,Ie=le!==null?P[le]:null;if(!ge||!ke||!Ie)return;const Oe=4,we=8,Be=ge.getBoundingClientRect(),tt=Ie.getBoundingClientRect();ke.style.maxWidth="none";const ut=ke.offsetHeight,_t=ke.offsetWidth,{left:Ct,maxWidth:$t,flipped:Vt}=Ace(_t,Be,window.innerWidth,Oe,we),nn=Math.max(we,Math.min(tt.top,window.innerHeight-ut-we));$.value={top:`${Math.round(nn)}px`,left:`${Math.round(Ct)}px`,maxWidth:`${Math.round($t)}px`,transformOrigin:Vt?"top right":"top left","--menu-pop-shift":"-2px"}}const ie=K(!1),pe=K(null);let Ne=0;async function te(){const le=++Ne;ie.value=!0;try{const ge=await s.getUsage();le===Ne&&(pe.value=ge)}finally{le===Ne&&(ie.value=!1)}}Pe([ie,pe],async()=>{j.value==="usage"&&(await dt(),ne())});const be=F(()=>{if(pe.value?.kind!=="ok")return[];const{summary:le,limits:ge}=pe.value,ke=Ele(ge,5,"hour");return[le,ke].filter(Ie=>Ie!=null)}),Q=F(()=>pe.value?.kind==="error"?pe.value.message:i("settings.planUsage.loadFailed"));function ue(le){return le.resetAt===void 0?"":$B(le.resetAt,i)}function Ae(){R(),sg()}function se(){R(),n("login")}function re(){R(),n("openSettings")}async function G(){R(),await r({title:i("sidebar.logoutConfirmTitle"),message:i("sidebar.logoutConfirmMessage"),variant:"danger",action:()=>s.logout()})}return(le,ge)=>(v(),E(Ee,null,[C("button",{ref_key:"triggerRef",ref:L,class:"user-menu-trigger",type:"button","aria-haspopup":"menu","aria-expanded":S.value,onClick:wt(z,["stop"])},[l.value?(v(),E(Ee,{key:0},[C("span",Qpe,[g.value?(v(),E("img",{key:0,src:f(a)?.avatar,alt:"",onError:ge[0]||(ge[0]=ke=>p.value=!0)},null,40,Ype)):(v(),ce(f(ve),{key:1,name:"user",size:"sm"}))]),C("span",Jpe,D(c.value),1)],64)):(v(),E(Ee,{key:1},[U(f(ve),{name:"user"}),C("span",Xpe,D(f(i)("sidebar.notSignedIn")),1)],64))],8,Gpe),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[S.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:_,class:"user-menu",style:Kt(x.value),onClick:ge[14]||(ge[14]=wt(()=>{},["stop"]))},{default:de(()=>[l.value?(v(),E(Ee,{key:0},[h.value?(v(),ce(f(Ut),{key:0,ref:ae("usage"),"aria-haspopup":"true","aria-expanded":j.value==="usage",onMouseenter:ge[1]||(ge[1]=ke=>V("usage")),onMouseleave:oe,onFocus:ge[2]||(ge[2]=ke=>V("usage")),onBlur:oe,onClick:ge[3]||(ge[3]=ke=>V("usage")),onKeydown:ge[4]||(ge[4]=ke=>Y(ke,"usage"))},{default:de(()=>[U(f(ve),{name:"histogram",size:"sm"}),C("span",e0e,D(f(i)("settings.planUsage.title")),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"])):X("",!0),d.value?(v(),ce(f(Ut),{key:1,onClick:Ae,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"music",size:"sm"}),C("span",t0e,D(f(i)("sidebar.upgradeMembership")),1),U(f(ve),{name:"external-link",size:"sm"})]),_:1})):X("",!0),U(f(Ut),{separator:""})],64)):(v(),E(Ee,{key:1},[U(f(Ut),{class:"user-menu-login",onClick:se,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"log-in",size:"sm"}),C("span",n0e,D(f(i)("sidebar.signIn")),1)]),_:1}),U(f(Ut),{separator:""})],64)),U(f(Ut),{ref:ae("theme"),"aria-haspopup":"true","aria-expanded":j.value==="theme",onMouseenter:ge[5]||(ge[5]=ke=>V("theme")),onMouseleave:oe,onFocus:ge[6]||(ge[6]=ke=>V("theme")),onBlur:oe,onClick:ge[7]||(ge[7]=ke=>V("theme")),onKeydown:ge[8]||(ge[8]=ke=>Y(ke,"theme"))},{default:de(()=>[U(f(ve),{name:w.value,size:"sm"},null,8,["name"]),C("span",i0e,D(f(i)("theme.colorSchemeLabel")),1),C("span",o0e,D(k.value),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"]),U(f(Ut),{ref:ae("language"),"aria-haspopup":"true","aria-expanded":j.value==="language",onMouseenter:ge[9]||(ge[9]=ke=>V("language")),onMouseleave:oe,onFocus:ge[10]||(ge[10]=ke=>V("language")),onBlur:oe,onClick:ge[11]||(ge[11]=ke=>V("language")),onKeydown:ge[12]||(ge[12]=ke=>Y(ke,"language"))},{default:de(()=>[U(f(ve),{name:"translate",size:"sm"}),C("span",s0e,D(f(i)("sidebar.language")),1),C("span",r0e,D(A.value),1),U(f(ve),{name:"chevron-right",size:"sm"})]),_:1},8,["aria-expanded"]),U(f(Ut),{onClick:re,onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"settings",size:"sm"}),C("span",l0e,D(f(i)("settings.title")),1)]),_:1}),l.value?(v(),E(Ee,{key:2},[U(f(Ut),{separator:""}),U(f(Ut),{onClick:ge[13]||(ge[13]=ke=>void G()),onMouseenter:oe},{default:de(()=>[U(f(ve),{name:"log-out",size:"sm"}),$e(" "+D(f(i)("sidebar.signOut")),1)]),_:1})],64)):X("",!0)]),_:1},8,["style"])):X("",!0)]),_:1})])),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[j.value!==null?(v(),ce(f(Zs),{key:0,ref_key:"submenuRef",ref:W,class:"user-submenu",style:Kt($.value),role:j.value==="usage"?"dialog":"menu",onClick:ge[16]||(ge[16]=wt(()=>{},["stop"])),onMouseenter:q,onMouseleave:oe,onFocusin:q,onFocusout:oe},{default:de(()=>[j.value==="usage"?(v(),E("div",a0e,[ie.value?(v(),E("div",u0e,[U(f(Oi),{size:"sm"})])):pe.value?.kind!=="ok"?(v(),E("div",c0e,[C("span",d0e,D(Q.value),1),U(f(Qt),{variant:"ghost",size:"sm",onClick:ge[15]||(ge[15]=ke=>void te())},{default:de(()=>[$e(D(f(i)("settings.planUsage.retry")),1)]),_:1})])):be.value.length===0?(v(),E("span",f0e,D(f(i)("settings.planUsage.empty")),1)):(v(!0),E(Ee,{key:3},pt(be.value,(ke,Ie)=>(v(),E("div",{key:Ie,class:"user-menu-usage-row"},[C("span",h0e,D(f(BB)(ke,f(i))),1),C("span",{class:Fe(["user-menu-usage-value",`sev-${f(Hb)(ke.used,ke.limit)}`])},D(f(i)("settings.planUsage.usedPct",{pct:f(bv)(ke.used,ke.limit)})),3),ue(ke)?(v(),E("span",p0e,D(ue(ke)),1)):X("",!0)]))),128))])):j.value==="theme"?(v(),E(Ee,{key:1},pt(y,ke=>U(f(Ut),{key:ke.value,onClick:Ie=>b(ke.value)},{default:de(()=>[U(f(ve),{name:ke.icon,size:"sm"},null,8,["name"]),C("span",g0e,D(f(i)(ke.labelKey)),1),f(m)===ke.value?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)]),_:2},1032,["onClick"])),64)):(v(!0),E(Ee,{key:2},pt(f(H2),ke=>(v(),ce(f(Ut),{key:ke.code,onClick:Ie=>T(ke.code)},{default:de(()=>[C("span",m0e,D(ke.label),1),f(o)===ke.code?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)]),_:2},1032,["onClick"]))),128))]),_:1},8,["style","role"])):X("",!0)]),_:1})]))],64))}}),y0e=kt(v0e,[["__scopeId","data-v-7472da32"]]),k0e={class:"ep-search"},b0e=["placeholder"],A0e={class:"ep-scroll"},C0e={key:0,class:"ep-grid"},w0e=["onClick"],x0e={key:1,class:"ep-empty"},S0e={class:"ep-label"},_0e={class:"ep-grid"},M0e=["onClick"],I0e={class:"ep-label"},E0e={class:"ep-grid"},T0e=["onClick"],q_="kimi-web.recent-emojis",L0e=Xe({__name:"SessionEmojiPicker",props:{current:{default:null},removable:{type:Boolean,default:!0}},emits:["pick"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),{handleCompositionStart:o,handleCompositionEnd:s,isComposingKeyEvent:r}=bl(),l=e,a=n,u=["⏳","⚠️","🐛","✨","🔥","🚀","🎯","🧪","📝","🔍","🛠️","💡","📦","🎨","🔒","📈","🧹","🚧","✅","❓","🌙","☕","🐳","🗂️","📊","🤖","🧩","⚙️","🌱","📌","💥","🕐"],c={faces:"sidebar.emojiGroupFaces",nature:"sidebar.emojiGroupNature",food:"sidebar.emojiGroupFood",activity:"sidebar.emojiGroupActivity",objects:"sidebar.emojiGroupObjects",symbols:"sidebar.emojiGroupSymbols"},d=Dre.map(S=>({id:S,labelKey:c[S],emojis:SB.filter(x=>x.group===S).map(x=>x.emoji)})),h=K(p());function p(){try{const S=JSON.parse(localStorage.getItem(q_)??"[]");return Array.isArray(S)?S.filter(x=>typeof x=="string"):[]}catch{return[]}}function g(S,x){h.value=zre(h.value,S);try{localStorage.setItem(q_,JSON.stringify(h.value))}catch{}a("pick",S,x)}const m=K(""),k=F(()=>m.value.trim().length>0),w=F(()=>$re(m.value)),y=K(null);cn(()=>y.value?.focus());function b(S){if(r(S))return;const x=w.value[0];k.value&&x&&g(x)}function A(){let S=l.current??void 0;for(;S===void 0||S===l.current;)S=u[Math.floor(Math.random()*u.length)];g(S,"random")}const T=K(null);return t({el:F(()=>T.value?.el),isComposingKeyEvent:r}),(S,x)=>(v(),ce(f(Zs),{ref_key:"menuRef",ref:T,class:"emoji-picker",role:"dialog","aria-label":f(i)("sidebar.sessionEmojiTitle"),onKeydown:x[4]||(x[4]=wt(()=>{},["stop"]))},{default:de(()=>[C("div",k0e,[U(f(ve),{name:"search",size:"sm"}),Wn(C("input",{ref_key:"inputRef",ref:y,"onUpdate:modelValue":x[0]||(x[0]=_=>m.value=_),class:"ep-input",type:"text",placeholder:f(i)("sidebar.searchEmoji"),autocomplete:"off",spellcheck:"false",onKeydown:Ho(b,["enter"]),onCompositionstart:x[1]||(x[1]=(..._)=>f(o)&&f(o)(..._)),onCompositionend:x[2]||(x[2]=(..._)=>f(s)&&f(s)(..._))},null,40,b0e),[[Bs,m.value]])]),C("div",A0e,[k.value?(v(),E(Ee,{key:0},[w.value.length?(v(),E("div",C0e,[(v(!0),E(Ee,null,pt(w.value,_=>(v(),E("button",{key:_,class:Fe(["ep-e",{sel:_===e.current}]),type:"button",onClick:L=>g(_)},D(_),11,w0e))),128))])):(v(),E("div",x0e,D(f(i)("sidebar.noEmojiResults")),1))],64)):(v(),E(Ee,{key:1},[h.value.length?(v(),E(Ee,{key:0},[C("div",S0e,D(f(i)("sidebar.recentEmojis")),1),C("div",_0e,[(v(!0),E(Ee,null,pt(h.value,_=>(v(),E("button",{key:_,class:Fe(["ep-e",{sel:_===e.current}]),type:"button",onClick:L=>g(_)},D(_),11,M0e))),128))])],64)):X("",!0),(v(!0),E(Ee,null,pt(f(d),_=>(v(),E(Ee,{key:_.id},[C("div",I0e,D(f(i)(_.labelKey)),1),C("div",E0e,[(v(!0),E(Ee,null,pt(_.emojis,L=>(v(),E("button",{key:L,class:Fe(["ep-e",{sel:L===e.current}]),type:"button",onClick:M=>g(L)},D(L),11,T0e))),128))])],64))),128))],64))]),U(f(Ut),{separator:""}),U(f(Ut),{role:"button",disabled:!(e.current&&e.removable),onClick:x[3]||(x[3]=_=>a("pick",null))},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeEmoji")),1)]),_:1},8,["disabled"]),U(f(Ut),{role:"button",onClick:A},{default:de(()=>[U(f(ve),{name:"sparkles",size:"sm"}),$e(" "+D(f(i)("sidebar.randomEmoji")),1)]),_:1})]),_:1},8,["aria-label"]))}}),N0e=kt(L0e,[["__scopeId","data-v-b0dbbae4"]]),F0e={class:"row"},D0e={key:0,class:"lead"},B0e={class:"left"},$0e=["readonly","onKeydown"],R0e={key:0,class:"gen-dots","aria-hidden":"true"},z0e=["aria-label"],O0e={key:1,class:"act"},P0e={key:0,class:"ts"},j0e={key:1,class:"st"},H0e={key:1,class:"unread-dot"},W0e={key:2,class:"ha"},q0e={key:0,class:"sub"},U0e={class:"sub-text"},K0e=["aria-label"],V0e={class:"menu-time"},Z0e=Xe({__name:"SessionRow",props:{session:{},active:{type:Boolean},approvalCount:{default:0},questionCount:{default:0},unread:{type:Boolean,default:!1},stateTag:{default:void 0}},emits:["select","rename","generateTitle","renameStateChange","archive","restore","fork","export","pin"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),{sidebarTabs:o}=d1(),s=e,r=n;function l(gt){const Le=new Date(gt);if(Number.isNaN(Le.getTime()))return gt;const ze=Ye=>String(Ye).padStart(2,"0");return`${Le.getFullYear()}-${ze(Le.getMonth()+1)}-${ze(Le.getDate())} ${ze(Le.getHours())}:${ze(Le.getMinutes())}`}const a=F(()=>s.session.updatedAt?l(s.session.updatedAt):s.session.time),u=F(()=>s.session.cwdLabel!==void 0),c=F(()=>Y.value?"idle":og({busy:s.session.busy,unread:s.unread,questionCount:s.questionCount,approvalCount:s.approvalCount,pendingInteraction:s.session.pendingInteraction,lastTurnReason:s.session.lastTurnReason})),d=F(()=>c.value==="awaiting-question"),h=F(()=>c.value==="awaiting-approval"),p=F(()=>c.value==="aborted"),g=F(()=>c.value==="running"),m=F(()=>c.value==="unread"),k=F(()=>c.value!=="idle"),w=K(!1),y=K(null),b=K({});function A(gt){const Le=gt.target;y.value?.el?.contains(Le)||S()}async function T(){O(),w.value=!0,setTimeout(()=>document.addEventListener("mousedown",A),0),window.addEventListener("resize",S),await dt()}function S(){w.value=!1,document.removeEventListener("mousedown",A),window.removeEventListener("resize",S)}_n(()=>{document.removeEventListener("mousedown",A),document.removeEventListener("mousedown",R),window.removeEventListener("keydown",j,!0),window.removeEventListener("resize",S),window.removeEventListener("resize",O)});const x=F(()=>KB(s.session.title)),_=F(()=>{const gt=x.value.emoji;return gt?s.session.title.slice(gt.length):s.session.title}),L=K(!1),M=K(null),N=K({});let I=null;function z(gt,Le,ze){const Ye=M.value?.el,Tt=4,on=8,jt=Ye?.offsetHeight??0,kn=Ye?.offsetWidth??0;let bn=gt.bottom+Tt,mn=!1;bn+jt>window.innerHeight-on&&(bn=Math.max(on,gt.top-jt-Tt),mn=!0);const zn=ze??(Le==="left"?gt.left:gt.right-kn),He=Math.max(on,Math.min(zn,window.innerWidth-kn-on)),st=ze===void 0?Le:`${Math.round(Math.min(Math.max(ze-He,0),kn))}px`;N.value={top:`${Math.round(bn)}px`,left:`${Math.round(He)}px`,transformOrigin:`${st} ${mn?"bottom":"top"}`,"--menu-pop-shift":mn?"2px":"-2px"}}async function H(gt,Le,ze="left",Ye){const Tt=Le??gt?.getBoundingClientRect();if(Tt){if(L.value){O();return}S(),I=gt??null,L.value=!0,setTimeout(()=>document.addEventListener("mousedown",R),0),window.addEventListener("keydown",j,!0),window.addEventListener("resize",O),await dt(),z(Tt,ze,Ye)}}function O(){L.value=!1,I=null,document.removeEventListener("mousedown",R),window.removeEventListener("keydown",j,!0),window.removeEventListener("resize",O)}function R(gt){const Le=gt.target;M.value?.el?.contains(Le)||I?.contains(Le)||O()}function j(gt){gt.key==="Escape"&&(M.value?.isComposingKeyEvent(gt)||(gt.preventDefault(),gt.stopPropagation(),O()))}function $(gt){return gt.clientX||gt.clientY?new DOMRect(gt.clientX,gt.clientY,0,0):void 0}function W(gt){gt.stopPropagation();const Le=gt;H(Le.currentTarget,$(Le),"left",Le.clientX||void 0)}function P(gt){const Le=y.value?.el,ze=gt,Ye=$(ze)??Le?.getBoundingClientRect();S(),H(Le,Ye,"left",ze.clientX||void 0)}function Z(gt){if(O(),gt===x.value.emoji)return;const Le=fae(s.session.title,gt);Le&&Le!==s.session.title&&r("rename",s.session.id,Le)}const ae=pa(),V=F(()=>(ae.experimentalFlags.value.auto_session_title??ae.config.value?.experimental?.auto_session_title)===!0),Y=K(!1),oe=K(""),q=K(null),ne=K(null),ie=K(!1);let pe="",Ne=null;const{handleCompositionStart:te,handleCompositionEnd:be,isComposingKeyEvent:Q}=bl();async function ue(){S(),O(),Y.value=!0,oe.value=s.session.title,await dt();try{q.value?.focus(),q.value?.select()}catch{}}function Ae(){if(!Y.value)return;const gt=oe.value.trim();gt&>!==Ne&>!==s.session.title&&r("rename",s.session.id,gt),Y.value=!1}function se(){ie.value||Ae()}function re(gt){Q(gt)||ie.value||Ae()}function G(gt){Q(gt)||le()}function le(){ie.value=!1,Y.value=!1}function ge(gt){const Le=ne.value;if(!(Le===null||!(gt.target instanceof Node)||Le.contains(gt.target))){if(ie.value){ie.value=!1,Y.value=!1;return}Ae()}}Pe(Y,gt=>{gt?document.addEventListener("pointerdown",ge,!0):document.removeEventListener("pointerdown",ge,!0)}),_n(()=>document.removeEventListener("pointerdown",ge,!0));function ke(){ie.value||(ie.value=!0,pe=oe.value,Ne=null,oe.value="",r("generateTitle",s.session.id,gt=>{ie.value=!1,Y.value&&(oe.value=gt??pe,Ne=gt,dt(()=>{try{q.value?.focus(),q.value?.select()}catch{}}))}))}Pe(Y,gt=>r("renameStateChange",gt));async function Ie(gt){Y.value||(gt.preventDefault(),gt.stopPropagation(),w.value&&S(),await T(),Oe(gt))}function Oe(gt){const Le=y.value?.el,ze=8,Ye=Le?.offsetHeight??0,Tt=Le?.offsetWidth??0;let on=gt.clientY,jt=!1;on+Ye>window.innerHeight-ze&&(on=Math.max(ze,gt.clientY-Ye),jt=!0);let kn=gt.clientX,bn=!1;kn+Tt>window.innerWidth-ze&&(kn=Math.max(ze,gt.clientX-Tt),bn=!0),b.value={top:`${Math.round(on)}px`,left:`${Math.round(kn)}px`,transformOrigin:`${jt?"bottom":"top"} ${bn?"right":"left"}`,"--menu-pop-shift":jt?"2px":"-2px"}}const we=K(!1),Be=K(!1);async function tt(){const gt=await Xo(s.session.id);we.value=gt,Be.value=!gt,setTimeout(()=>{we.value=!1,Be.value=!1,S()},1500)}function ut(){S(),r("fork",s.session.id)}function _t(){S(),r("export",s.session.id)}function Ct(){S(),r("pin",s.session.id)}function $t(){S(),r("archive",s.session.id)}function Vt(){S(),r("restore",s.session.id)}t({closeMenu:S});function nn(){const gt=s.session.pullRequest?.url;gt&&window.open(gt,"_blank","noopener")}return(gt,Le)=>(v(),E("div",{class:Fe(["se",{on:e.active,flat:u.value}]),onClick:Le[8]||(Le[8]=ze=>r("select",e.session.id)),onContextmenu:Ie},[C("div",F0e,[u.value?X("",!0):(v(),E("span",D0e)),C("div",B0e,[Y.value?(v(),E("div",{key:0,ref_key:"renameWrapRef",ref:ne,class:Fe(["rename-wrap",{generating:ie.value}]),onClick:Le[4]||(Le[4]=wt(()=>{},["stop"]))},[Wn(C("input",{ref_key:"renameInputRef",ref:q,"onUpdate:modelValue":Le[0]||(Le[0]=ze=>oe.value=ze),class:"rename-input",readonly:ie.value,onKeydown:[Ho(wt(re,["stop"]),["enter"]),Ho(wt(G,["stop"]),["esc"])],onCompositionstart:Le[1]||(Le[1]=(...ze)=>f(te)&&f(te)(...ze)),onCompositionend:Le[2]||(Le[2]=(...ze)=>f(be)&&f(be)(...ze)),onBlur:se},null,40,$0e),[[Bs,oe.value]]),ie.value?(v(),E("span",R0e,[...Le[9]||(Le[9]=[C("i",null,null,-1),C("i",null,null,-1),C("i",null,null,-1)])])):X("",!0),V.value?(v(),ce(f(gn),{key:1,text:f(i)("sidebar.genTitle")},{default:de(()=>[U(f(Jt),{class:"gen-title-btn",size:"sm",label:f(i)("sidebar.genTitle"),disabled:ie.value,onMousedown:Le[3]||(Le[3]=wt(()=>{},["prevent","stop"])),onClick:wt(ke,["stop"])},{default:de(()=>[U(f(ve),{name:"gen-title"})]),_:1},8,["label","disabled"])]),_:1},8,["text"])):X("",!0)],2)):(v(),E("span",{key:1,class:"t",onDblclick:wt(ue,["stop"])},[x.value.emoji?(v(),E("button",{key:0,type:"button",class:"emoji","aria-label":f(i)("sidebar.setEmoji"),onClick:wt(W,["stop"]),onDblclick:Le[5]||(Le[5]=wt(()=>{},["stop"]))},D(x.value.emoji),41,z0e)):X("",!0),$e(D(_.value),1)],32))]),Y.value?X("",!0):(v(),E("span",O0e,[U(f(gn),{text:f(i)("workspace.awaitingAnswerTitle")},{default:de(()=>[d.value?(v(),ce(f(br),{key:0,variant:"info",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.awaitingAnswer")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),U(f(gn),{text:f(i)("workspace.awaitingPermissionTitle")},{default:de(()=>[h.value?(v(),ce(f(br),{key:0,variant:"warning",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.awaitingPermission")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),U(f(gn),{text:f(i)("workspace.abortedTitle")},{default:de(()=>[p.value?(v(),ce(f(br),{key:0,variant:"danger",size:"sm"},{default:de(()=>[$e(D(f(i)("workspace.aborted")),1)]),_:1})):X("",!0)]),_:1},8,["text"]),k.value?g.value||m.value?(v(),E("span",j0e,[g.value?(v(),ce(f(Oi),{key:0,size:"sm"})):(v(),E("span",H0e))])):X("",!0):(v(),E("span",P0e,D(e.session.time),1)),Y.value?X("",!0):(v(),E("span",W0e,[e.stateTag==="done"?(v(),ce(f(gn),{key:0,text:f(i)("sidebar.reopen")},{default:de(()=>[U(f(Jt),{class:"reopen-btn",size:"sm",label:f(i)("sidebar.reopen"),onClick:wt(Vt,["stop"])},{default:de(()=>[U(f(ve),{name:"undo"})]),_:1},8,["label"])]),_:1},8,["text"])):(v(),E(Ee,{key:1},[U(f(gn),{text:e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin")},{default:de(()=>[U(f(Jt),{class:"pin-btn",size:"sm",label:e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin"),onClick:wt(Ct,["stop"])},{default:de(()=>[U(f(ve),{name:e.session.pinned?"unpin":"pin"},null,8,["name"])]),_:1},8,["label"])]),_:1},8,["text"]),U(f(gn),{text:f(o)?f(i)("sidebar.complete"):f(i)("sidebar.archive")},{default:de(()=>[U(f(Jt),{class:Fe(f(o)?"complete-btn":"archive-btn"),size:"sm",label:f(o)?f(i)("sidebar.complete"):f(i)("sidebar.archive"),onClick:wt($t,["stop"])},{default:de(()=>[U(f(ve),{name:f(o)?"state-done":"archive"},null,8,["name"])]),_:1},8,["class","label"])]),_:1},8,["text"])],64))]))]))]),e.session.cwdLabel!==void 0?(v(),E("div",q0e,[U(f(ve),{class:"sub-icon",name:"folder-closed",size:"sm"}),C("span",U0e,D(e.session.cwdLabel),1),e.session.pullRequest?(v(),E("button",{key:0,type:"button",class:Fe(["pr",`pr--${e.session.pullRequest.state}`]),"aria-label":`PR #${e.session.pullRequest.number}`,onClick:wt(nn,["stop"])},[U(f(ve),{name:"git-pull-request",size:"sm"}),C("span",null,"#"+D(e.session.pullRequest.number),1)],10,K0e)):X("",!0)])):X("",!0),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[w.value?(v(),ce(f(Zs),{key:0,ref_key:"menuRef",ref:y,class:"menu",style:Kt(b.value),onClick:Le[6]||(Le[6]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{danger:Be.value,onClick:tt},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(Be.value?f(i)("sidebar.copyFailed"):we.value?f(i)("sidebar.copied"):f(i)("sidebar.copySessionId")),1)]),_:1},8,["danger"]),U(f(Ut),{separator:""}),U(f(Ut),{onClick:ue},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{onClick:P},{default:de(()=>[U(f(ve),{name:"emoji",size:"sm"}),$e(" "+D(f(i)("sidebar.setEmoji")),1)]),_:1}),U(f(Ut),{onClick:ut},{default:de(()=>[U(f(ve),{name:"git-fork",size:"sm"}),$e(" "+D(f(i)("sidebar.fork")),1)]),_:1}),U(f(Ut),{onClick:_t},{default:de(()=>[U(f(ve),{name:"download",size:"sm"}),$e(" "+D(f(i)("sidebar.export")),1)]),_:1}),e.stateTag!=="done"?(v(),ce(f(Ut),{key:0,onClick:Ct},{default:de(()=>[U(f(ve),{name:e.session.pinned?"unpin":"pin",size:"sm"},null,8,["name"]),$e(" "+D(e.session.pinned?f(i)("sidebar.unpin"):f(i)("sidebar.pin")),1)]),_:1})):X("",!0),e.stateTag==="done"?(v(),ce(f(Ut),{key:1,onClick:Vt},{default:de(()=>[U(f(ve),{name:"undo",size:"sm"}),$e(" "+D(f(i)("sidebar.reopen")),1)]),_:1})):(v(),ce(f(Ut),{key:2,onClick:$t},{default:de(()=>[U(f(ve),{name:f(o)?"state-done":"archive",size:"sm"},null,8,["name"]),$e(" "+D(f(o)?f(i)("sidebar.markDone"):f(i)("sidebar.archive")),1)]),_:1})),U(f(Ut),{separator:""}),C("div",V0e,D(f(i)("sidebar.lastActive",{time:a.value})),1)]),_:1},8,["style"])):X("",!0)]),_:1})])),(v(),ce(Ds,{to:"body"},[U(fo,{name:"menu-pop"},{default:de(()=>[L.value?(v(),ce(N0e,{key:0,ref_key:"pickerRef",ref:M,class:"picker",style:Kt(N.value),current:x.value.emoji,removable:x.value.rest.length>0,onClick:Le[7]||(Le[7]=wt(()=>{},["stop"])),onPick:Z},null,8,["style","current","removable"])):X("",!0)]),_:1})]))],34))}}),Pp=kt(Z0e,[["__scopeId","data-v-9068e4e1"]]),G0e=["draggable"],Q0e={class:"gh-top"},Y0e={class:"gh-name"},J0e=["inert"],X0e={key:0,class:"show-more-row"},ege=["disabled"],tge={class:"show-more-label"},nge={key:1,class:"show-more-sep","aria-hidden":"true"},ige={class:"show-more-label"},oge={key:1,class:"group-empty"},sge=Xe({__name:"WorkspaceGroup",props:{group:{},activeWorkspaceId:{},activeId:{},renamingId:{},renameValue:{},renameInputRef:{},pendingBySession:{},unreadBySession:{},wsMenuOpenId:{},dragging:{type:Boolean},sortable:{type:Boolean},isCollapsed:{type:Function},visibleLimit:{type:Function},flashSessionId:{},pinnedDragSession:{},stateTag:{}},emits:["groupClick","groupContextmenu","toggleWsMenu","createInWorkspace","selectSession","renameSession","generateSessionTitle","archiveSession","forkSession","exportSession","pinSession","dropPinnedSession","expand","collapse","confirmRename","cancelRename","updateRenameValue","wsDragstart","wsDragend"],setup(e,{emit:t}){const{t:n}=zt(),i=e,o=t,s=F({get:()=>i.renameValue,set:M=>o("updateRenameValue",M)}),r=K(!1),l=F(()=>i.pinnedDragSession!=null),a=F(()=>i.pinnedDragSession?.workspaceId===i.group.workspace.id);function u(M){if(i.pinnedDragSession!=null){if(!a.value){M.dataTransfer&&(M.dataTransfer.dropEffect="none");return}M.preventDefault(),M.dataTransfer&&(M.dataTransfer.dropEffect="move"),r.value=!0}}function c(M){i.pinnedDragSession==null||!a.value||(M.preventDefault(),r.value=!1,o("dropPinnedSession",i.pinnedDragSession.id))}function d(M){M.currentTarget.contains(M.relatedTarget)||(r.value=!1)}const h=F(()=>i.visibleLimit(i.group.workspace.id)??i.group.initialCount),p=F(()=>{const M=i.group.sessions.slice(0,h.value);if(i.activeId&&!M.some(N=>N.id===i.activeId)){const N=i.group.sessions.find(I=>I.id===i.activeId);if(N)return[...M,N]}return M}),g=F(()=>i.group.sessions.length>h.value||i.group.hasMore||i.group.loadingMore),m=F(()=>h.value>i.group.initialCount);function k(M){i.renameInputRef.value=M instanceof HTMLInputElement?M:null}const{handleCompositionStart:w,handleCompositionEnd:y,isComposingKeyEvent:b}=bl();function A(M){b(M)||o("confirmRename")}function T(M){b(M)||o("cancelRename")}const S=K(null);function x(M){i.renamingId!==i.group.workspace.id&&o("groupContextmenu",i.group.workspace,M)}function _(M){i.sortable!==!1&&M.dataTransfer&&(M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",i.group.workspace.id),o("wsDragstart",i.group.workspace.id))}function L(M,N){N.dataTransfer&&(N.dataTransfer.effectAllowed="move",N.dataTransfer.setData(C2,M),N.dataTransfer.setData("text/plain",M))}return(M,N)=>(v(),E("div",{class:Fe(["group",{dragging:e.dragging,"pinned-drag-active":l.value&&a.value,"pinned-drop-hover":r.value,"pinned-drop-blocked":l.value&&!a.value}]),onDragover:u,onDrop:c,onDragleave:d},[C("div",{class:Fe(["gh",{on:e.group.workspace.id===e.activeWorkspaceId&&e.activeId==="",collapsed:e.isCollapsed(e.group.workspace.id)}]),draggable:e.sortable!==!1&&e.renamingId!==e.group.workspace.id,onClick:N[7]||(N[7]=wt(I=>o("groupClick",e.group.workspace.id,I),["stop"])),onContextmenu:x,onDragstart:_,onDragend:N[8]||(N[8]=I=>o("wsDragend"))},[C("div",Q0e,[e.isCollapsed(e.group.workspace.id)?(v(),ce(f(ve),{key:0,class:"gh-folder",name:"folder-closed"})):(v(),ce(f(ve),{key:1,class:"gh-folder",name:"folder"})),e.renamingId!==e.group.workspace.id?(v(),ce(f(gn),{key:2,text:e.group.workspace.root},{default:de(()=>[C("span",Y0e,D(e.group.workspace.name),1)]),_:1},8,["text"])):Wn((v(),E("input",{key:3,ref:k,"onUpdate:modelValue":N[0]||(N[0]=I=>s.value=I),class:"gh-rename",type:"text",onKeydown:[Ho(A,["enter"]),Ho(T,["esc"])],onCompositionstart:N[1]||(N[1]=(...I)=>f(w)&&f(w)(...I)),onCompositionend:N[2]||(N[2]=(...I)=>f(y)&&f(y)(...I)),onBlur:N[3]||(N[3]=I=>o("cancelRename")),onClick:N[4]||(N[4]=wt(()=>{},["stop"]))},null,544)),[[Bs,s.value]]),e.renamingId!==e.group.workspace.id?(v(),E("div",{key:4,class:Fe(["gh-actions",{open:e.wsMenuOpenId===e.group.workspace.id}])},[U(f(Jt),{class:Fe(["gh-more",{open:e.wsMenuOpenId===e.group.workspace.id}]),size:"sm",label:f(n)("sidebar.options"),tooltip:f(n)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":e.wsMenuOpenId===e.group.workspace.id,onClick:N[5]||(N[5]=wt(I=>o("toggleWsMenu",e.group.workspace,I),["stop"]))},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded"]),U(f(Jt),{class:"gh-add",size:"sm",label:f(n)("workspace.newInGroup"),tooltip:f(n)("workspace.newInGroup"),onClick:N[6]||(N[6]=wt(I=>o("createInWorkspace",e.group.workspace.id),["stop"]))},{default:de(()=>[U(f(ve),{name:"chat-new"})]),_:1},8,["label","tooltip"])],2)):X("",!0)])],42,G0e),C("div",{class:Fe(["group-sessions",{collapsed:e.isCollapsed(e.group.workspace.id)}]),inert:e.isCollapsed(e.group.workspace.id)},[(v(!0),E(Ee,null,pt(p.value,I=>(v(),ce(Pp,{key:I.id,session:I,active:I.id===e.activeId,"approval-count":e.pendingBySession[I.id]?.approvals??0,"question-count":e.pendingBySession[I.id]?.questions??0,unread:e.unreadBySession[I.id]??!1,"state-tag":i.stateTag,draggable:S.value!==I.id,"data-session-id":I.id,class:Fe({"se-locate-flash":e.flashSessionId===I.id}),onDragstart:z=>L(I.id,z),onRenameStateChange:z=>S.value=z?I.id:null,onSelect:N[9]||(N[9]=z=>o("selectSession",z)),onRename:N[10]||(N[10]=(z,H)=>o("renameSession",z,H)),onGenerateTitle:N[11]||(N[11]=(z,H)=>o("generateSessionTitle",z,H)),onArchive:N[12]||(N[12]=z=>o("archiveSession",z)),onFork:N[13]||(N[13]=z=>o("forkSession",z)),onExport:N[14]||(N[14]=z=>o("exportSession",z)),onPin:N[15]||(N[15]=z=>o("pinSession",z))},null,8,["session","active","approval-count","question-count","unread","state-tag","draggable","data-session-id","class","onDragstart","onRenameStateChange"]))),128)),g.value||m.value?(v(),E("div",X0e,[g.value?(v(),E("button",{key:0,class:"show-more",disabled:e.group.loadingMore,onClick:N[16]||(N[16]=wt(I=>o("expand",e.group.workspace.id),["stop"]))},[U(f(ve),{name:"chevron-down",size:"sm"}),C("span",tge,D(e.group.loadingMore?f(n)("sidebar.loadingMore"):f(n)("sidebar.showMore")),1)],8,ege)):X("",!0),g.value&&m.value?(v(),E("span",nge,"·")):X("",!0),m.value?(v(),E("button",{key:2,class:"show-more",onClick:N[17]||(N[17]=wt(I=>o("collapse",e.group.workspace.id),["stop"]))},[U(f(ve),{name:"chevron-up",size:"sm"}),C("span",ige,D(f(n)("sidebar.showLess")),1)])):X("",!0)])):X("",!0),e.group.sessions.length===0?(v(),E("div",oge,D(e.group.pinnedCount>0?f(n)("sidebar.allPinned",{count:e.group.pinnedCount}):f(n)("sidebar.noSessions")),1)):X("",!0)],10,J0e)],34))}}),rge=kt(sge,[["__scopeId","data-v-8a2d5457"]]),lge={class:"pinned-label"},age={class:"pinned-title"},uge=["draggable","onDragstart"],cge=["aria-label","aria-valuenow","aria-valuemin","aria-valuemax"],dge=Xe({__name:"PinnedSessionList",props:{sessions:{},activeId:{},pendingBySession:{},unreadBySession:{},stateTag:{},flashSessionId:{}},emits:["selectSession","renameSession","generateSessionTitle","archiveSession","forkSession","exportSession","pinSession","dropPin","sessionDragStart","sessionDragEnd"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),o=e,s=n,r=K(fce());function l(){r.value=!r.value,r8(r.value)}function a(){r.value&&(r.value=!1,r8(!1))}t({expand:a});const u=F(()=>!r.value&&Ale(o.sessions.length)),c=K(window.innerHeight);function d(){c.value=window.innerHeight}cn(()=>window.addEventListener("resize",d)),Hn(()=>window.removeEventListener("resize",d));const h=K(null),p=K(null);function g(){return h.value?.parentElement?.nextElementSibling??null}const m=K(void 0);function k(){const Le=p.value,ze=g();if(!Le||!ze){m.value=void 0;return}m.value=Le.getBoundingClientRect().height+ze.getBoundingClientRect().height}const w=K(null),y=K(null),b=K(null);function A(){const Le=g();if(!Le)return;const ze=Le.querySelectorAll(".se"),Ye=[];let Tt=0;for(let kn=0;kn{dt(()=>{k(),A();const Le=g();typeof ResizeObserver=="function"&&Le&&(T=new ResizeObserver(k),T.observe(Le)),typeof MutationObserver=="function"&&Le&&(S=new MutationObserver(A),S.observe(Le,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})),Le?.addEventListener("transitionend",x)})}),Hn(()=>{T?.disconnect(),S?.disconnect(),g()?.removeEventListener("transitionend",x)});const _=K(null);function L(Le){_.value=Le,Y!==null&&Le!==Y&&(z.value=!0),p.value?.style.setProperty("max-height",`${Le}px`)}const M=K(null),N=K([]);let I=!1;const z=K(gs(un.sidebarPinnedHeight)!==null),H=F(()=>yle(N.value)),O=F(()=>ble(y.value,b.value,w.value)),R=F(()=>wle(c.value,m.value,H.value,O.value)),{width:j,dragging:$,cursor:W,clamp:P,setWidth:Z,onPointerDown:ae}=w$({storageKey:un.sidebarPinnedHeight,defaultWidth:TS(window.innerHeight),min:()=>H.value,max:()=>I?h3(R.value,M.value,H.value):R.value,axis:"y",applyLive:L,persist:()=>z.value});Pe([c,R],()=>{z.value||(j.value=P(TS(c.value)))});let V=null,Y=null,oe=!1;function q(Le){const ze=p.value;ze&&(A(),I=!0,V=j.value,oe=z.value,Y=P(ze.getBoundingClientRect().height),j.value=Y),ae(Le)}Pe($,Le=>{if(Le)return;I=!1;const ze=_.value;V!==null&&Sle(Y,ze)&&(j.value=P(V),z.value=oe),V=null,Y=null,_.value=null});const ne=F(()=>u.value||$.value);Pe([p,ne,j],([Le,ze,Ye])=>{Le&&(ze?Le.style.setProperty("max-height",`${Ye}px`):Le.style.removeProperty("max-height"))},{immediate:!0});function ie(Le){if(Le.key!=="ArrowUp"&&Le.key!=="ArrowDown")return;Le.preventDefault(),A();const ze=p.value,Ye=h3(R.value,ze?.scrollHeight??null,H.value),Tt=ze?P(ze.getBoundingClientRect().height):j.value,on=(Le.key==="ArrowDown"?1:-1)*(Le.shiftKey?48:16),jt=xle(Tt,on,Ye,H.value);jt!==Tt&&(z.value=!0,Z(jt))}const pe=F(()=>{if(_.value!==null)return _.value;const Le=M.value;return Le===null?j.value:Math.min(j.value,Le)}),Ne=K(!1),te=K(!1),{thumb:be,thumbVisible:Q,update:ue,markScrolling:Ae,onThumbPointerDown:se,onListMouseEnter:re,onListMouseLeave:G,onThumbMouseEnter:le,onThumbMouseLeave:ge}=x$(p);function ke(Le=p.value){if(!Le)return;M.value=Le.scrollHeight;const ze=[Le.children.item(0),Le.children.item(1)].map(Ye=>Ye?Ye.getBoundingClientRect().height:null);(ze.length!==N.value.length||ze.some((Ye,Tt)=>Ye!==N.value[Tt]))&&(N.value=ze),Ne.value=Le.scrollTop>0,te.value=Le.scrollTop+Le.clientHeight{ze&&Oe?.disconnect(),Oe=null,Le&&typeof ResizeObserver=="function"&&(Oe=new ResizeObserver(()=>ke()),Oe.observe(Le)),Le?ke(Le):(M.value=null,N.value=[],Ne.value=!1,te.value=!1,ue())}),s1(()=>ke()),Hn(()=>Oe?.disconnect());const{fontScale:we}=c1();Pe(we,()=>{dt(()=>{ke(),A()})});const Be=K(null),tt=K(null);function ut(Le,ze){if(!ze.dataTransfer)return;ze.dataTransfer.effectAllowed="move",ze.dataTransfer.setData("text/plain",Le),Be.value=Le;const Ye=o.sessions.find(Tt=>Tt.id===Le)?.workspaceId;Ye!==void 0&&s("sessionDragStart",Le,Ye)}function _t(){Be.value=null,s("sessionDragEnd")}Pe(()=>o.sessions,Le=>{Be.value!==null&&!Le.some(ze=>ze.id===Be.value)&&(Be.value=null)});const Ct=K(!1);function $t(Le){return Le.dataTransfer?.types.includes(C2)??!1}function Vt(Le){$t(Le)&&(Le.preventDefault(),Le.dataTransfer&&(Le.dataTransfer.dropEffect="move"),Ct.value=!0)}function nn(Le){Ct.value=!1;const ze=Le.dataTransfer?.getData(C2);ze&&s("dropPin",ze)}function gt(Le){Le.currentTarget.contains(Le.relatedTarget)||(Ct.value=!1)}return(Le,ze)=>(v(),E("div",{ref_key:"pinnedRootEl",ref:h,class:Fe(["pinned",{"drop-active":Ct.value}]),onDragover:Vt,onDrop:nn,onDragleave:gt},[C("div",lge,[C("span",age,D(f(i)("sidebar.pinned")),1),U(f(Jt),{class:Fe(["pinned-toggle",{"pinned-toggle--on":r.value}]),size:"sm",label:r.value?f(i)("sidebar.expandPinned"):f(i)("sidebar.collapsePinned"),tooltip:r.value?f(i)("sidebar.expandPinned"):f(i)("sidebar.collapsePinned"),onClick:wt(l,["stop"])},{default:de(()=>[r.value?(v(),ce(f(ve),{key:0,name:"chevron-right"})):(v(),ce(f(ve),{key:1,name:"chevron-down"}))]),_:1},8,["class","label","tooltip"])]),r.value?X("",!0):(v(),E("div",{key:0,class:Fe(["pinned-rows-wrap",{scrolled:Ne.value,"more-below":te.value}]),onMouseenter:ze[10]||(ze[10]=(...Ye)=>f(re)&&f(re)(...Ye)),onMouseleave:ze[11]||(ze[11]=(...Ye)=>f(G)&&f(G)(...Ye))},[C("div",{ref_key:"pinnedRowsEl",ref:p,class:"pinned-rows",onScroll:Ie},[(v(!0),E(Ee,null,pt(e.sessions,Ye=>(v(),E("div",{key:Ye.id,class:Fe(["pin-row",{dragging:Be.value===Ye.id}]),draggable:tt.value!==Ye.id,onDragstart:Tt=>ut(Ye.id,Tt),onDragend:_t},[U(Pp,{session:Ye,active:Ye.id===e.activeId,"approval-count":e.pendingBySession[Ye.id]?.approvals??0,"question-count":e.pendingBySession[Ye.id]?.questions??0,unread:e.unreadBySession[Ye.id]??!1,"state-tag":o.stateTag,"data-session-id":Ye.id,class:Fe({"se-locate-flash":e.flashSessionId===Ye.id}),onRenameStateChange:Tt=>tt.value=Tt?Ye.id:null,onSelect:ze[0]||(ze[0]=Tt=>s("selectSession",Tt)),onRename:ze[1]||(ze[1]=(Tt,on)=>s("renameSession",Tt,on)),onGenerateTitle:ze[2]||(ze[2]=(Tt,on)=>s("generateSessionTitle",Tt,on)),onArchive:ze[3]||(ze[3]=Tt=>s("archiveSession",Tt)),onFork:ze[4]||(ze[4]=Tt=>s("forkSession",Tt)),onExport:ze[5]||(ze[5]=Tt=>s("exportSession",Tt)),onPin:ze[6]||(ze[6]=Tt=>s("pinSession",Tt))},null,8,["session","active","approval-count","question-count","unread","state-tag","data-session-id","class","onRenameStateChange"])],42,uge))),128))],544),ze[12]||(ze[12]=C("span",{class:"pinned-seam pinned-seam--top","aria-hidden":"true"},null,-1)),ze[13]||(ze[13]=C("span",{class:"pinned-seam pinned-seam--bottom","aria-hidden":"true"},null,-1)),f(be)?(v(),E("span",{key:0,class:Fe(["pinned-thumb",{visible:f(Q)}]),style:Kt({top:`${f(be).top}px`,height:`${f(be).height}px`}),"aria-hidden":"true",onPointerdown:ze[7]||(ze[7]=(...Ye)=>f(se)&&f(se)(...Ye)),onMouseenter:ze[8]||(ze[8]=(...Ye)=>f(le)&&f(le)(...Ye)),onMouseleave:ze[9]||(ze[9]=(...Ye)=>f(ge)&&f(ge)(...Ye))},null,38)):X("",!0)],34)),ne.value?(v(),E("div",{key:1,class:Fe(["pinned-resize",{dragging:f($)}]),style:Kt({cursor:f(W)}),role:"separator","aria-orientation":"horizontal","aria-label":f(i)("sidebar.resizePinnedAria"),"aria-valuenow":Math.round(pe.value),"aria-valuemin":H.value,"aria-valuemax":f(h3)(R.value,M.value,H.value),tabindex:"0",onPointerdown:q,onKeydown:ie},[...ze[14]||(ze[14]=[C("span",{class:"pinned-resize-bar","aria-hidden":"true"},null,-1)])],46,cge)):X("",!0)],34))}}),fge=kt(dge,[["__scopeId","data-v-0c30d45b"]]),hge={class:"ch"},pge={class:"ch-brand"},gge={class:"ch-tail"},mge={class:"search-input"},vge={key:0,class:"status-tabs"},yge={class:"side-section-label"},kge={class:"side-section-title"},bge={class:"side-section-actions"},Age={key:0,class:"empty"},Cge={key:1,class:"show-more-row"},wge=["disabled"],xge={class:"show-more-label"},Sge={key:0,class:"empty"},_ge={key:1,class:"empty"},Mge=["data-ws-id","onDragover","onDrop"],Ige=["onClick","onContextmenu"],Ege={class:"done-gh-name"},Tge={class:"done-gh-count"},Lge={class:"done-gh-act"},Nge={key:0,class:"done-sessions"},Fge={key:2,class:"empty"},Dge={key:3,class:"show-more-row"},Bge=["disabled"],$ge={class:"show-more-label"},Rge=["onClick","onContextmenu"],zge={class:"ws-dir-row"},Oge=["onKeydown"],Pge={key:1,class:"ws-dir-name"},jge={class:"ws-dir-act"},Hge={class:"ws-dir-sub"},Wge={key:0,class:"empty"},qge={class:"folder-drop-card"},Uge={class:"view-menu-label"},Kge={class:"view-menu-check"},Vge={class:"view-menu-check"},Zge={class:"view-menu-label"},Gge={class:"view-menu-check"},Qge={class:"view-menu-check"},U_="var(--color-accent)",Yge=!1,Jge=1e3,Xge=Xe({__name:"Sidebar",props:{activeWorkspace:{default:null},activeWorkspaceId:{default:null},sessions:{},groups:{},workspaceSortMode:{default:"manual"},pinnedSessions:{default:()=>[]},flatSessions:{default:()=>[]},flatHasMore:{type:Boolean,default:!1},flatLoadingMore:{type:Boolean,default:!1},doneSessions:{default:()=>[]},doneHasMore:{type:Boolean,default:!1},doneLoadingMore:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},activeId:{},attentionBySession:{default:()=>({})},pendingBySession:{default:()=>({})},unreadBySession:{default:()=>({})},colWidth:{default:220},collapsed:{type:Boolean,default:!1},dragging:{type:Boolean,default:!1}},emits:["select","create","createInWorkspace","selectWorkspace","addWorkspace","addWorkspacePaths","rename","generateTitle","archive","restore","fork","export","pin","dropPin","unpin","renameWorkspace","deleteWorkspace","reorderWorkspaces","setWorkspaceSortMode","loadMoreSessions","loadAllSessions","ensureFlatSessions","loadMoreFlatSessions","ensureDoneSessions","loadMoreDoneSessions","openSessionAdmin","openSettings","login","collapse"],setup(e,{expose:t,emit:n}){const{t:i}=zt(),o=e,s=n,r=K(!1),l=d()?["⌘","K"]:["Ctrl","K"],a=d()?["⌃","⇧","O"]:["Ctrl","Shift","O"];function u(){s("loadAllSessions"),r.value=!0}function c(Ke){if(vae(Ke)){Ke.preventDefault(),u();return}!Ke.metaKey&&Ke.ctrlKey&&Ke.shiftKey&&Ke.key.toLowerCase()==="o"&&(Ke.preventDefault(),s("create"))}cn(()=>window.addEventListener("keydown",c)),Hn(()=>window.removeEventListener("keydown",c));function d(){if(typeof navigator>"u")return!1;if(/Mac|iPod|iPhone|iPad/.test(navigator.platform))return!0;const Ke=navigator.userAgentData;return Ke?.platform==="macOS"||Ke?.platform==="iOS"}const h=K(null),p=K(!1),g=K(!1),{thumb:m,thumbVisible:k,scrolling:w,update:y,markScrolling:b,onThumbPointerDown:A,onListMouseEnter:T,onListMouseLeave:S,onThumbMouseEnter:x,onThumbMouseLeave:_}=x$(h);function L(Ke=h.value){Ke&&(p.value=Ke.scrollTop>0,g.value=Ke.scrollTop+Ke.clientHeight{dt(()=>{L(),typeof ResizeObserver=="function"&&h.value&&(N=new ResizeObserver(()=>L()),N.observe(h.value))})}),s1(()=>L());const{fontScale:I}=c1();Pe(I,()=>void dt(()=>L())),Hn(()=>{N?.disconnect(),Yn&&clearTimeout(Yn),He&&clearTimeout(He)});const z=K(new Set(dce()));function H(Ke){return z.value.has(Ke)}function O(Ke){const Ue=new Set(z.value);Ue.has(Ke)?Ue.delete(Ke):Ue.add(Ke),z.value=Ue,v3(Ue)}function R(){const Ke=new Set(o.groups.map(Ue=>Ue.workspace.id));z.value=Ke,v3(Ke)}function j(){const Ke=new Set;z.value=Ke,v3(Ke)}const $=F(()=>o.groups.length>0&&o.groups.every(Ke=>z.value.has(Ke.workspace.id))),W=K(new Map);function P(Ke){return W.value.get(Ke)}function Z(Ke){const Ue=o.groups.find(rn=>rn.workspace.id===Ke);if(!Ue)return;const yt=(W.value.get(Ke)??Ue.initialCount)+j6,xt=new Map(W.value);xt.set(Ke,yt),W.value=xt,Ue.sessions.lengthrn.workspace.id),Ue,Ke,yt);s("reorderWorkspaces",xt)}const Ne=K(null);function te(Ke,Ue){Ne.value={id:Ke,workspaceId:Ue}}function be(){Ne.value=null}function Q(Ke){Ne.value=null,s("unpin",Ke)}const ue=K(hce());function Ae(Ke){ue.value!==Ke&&(ue.value=Ke,pce(Ke))}const se=K("open"),{sidebarTabs:re}=d1();Pe(re,Ke=>{!Ke&&se.value!=="open"&&(se.value="open")});const G=F(()=>BS([...o.pinnedSessions,...o.flatSessions].map(Ke=>({busy:Ke.busy,unread:o.unreadBySession[Ke.id]??!1,questionCount:o.pendingBySession[Ke.id]?.questions??0,approvalCount:o.pendingBySession[Ke.id]?.approvals??0,pendingInteraction:Ke.pendingInteraction,lastTurnReason:Ke.lastTurnReason})))),le=F(()=>BS(o.doneSessions.map(Ke=>({busy:Ke.busy,unread:o.unreadBySession[Ke.id]??!1,questionCount:o.pendingBySession[Ke.id]?.questions??0,approvalCount:o.pendingBySession[Ke.id]?.approvals??0,pendingInteraction:Ke.pendingInteraction,lastTurnReason:Ke.lastTurnReason})))),ge=F(()=>[{value:"open",label:i("sidebar.tabOpen"),swatch:G.value===null?void 0:U_},{value:"done",label:i("sidebar.tabDone"),swatch:le.value===null?void 0:U_},{value:"workspaces",label:i("sidebar.tabWorkspaces")}]);function ke(Ke){re.value&&(se.value=Ke,Ke==="done"&&s("ensureDoneSessions"))}const Ie=F(()=>Yre(o.groups,o.activeWorkspaceId,re.value)),Oe=F(()=>o.groups.map(Ke=>({workspace:Ke.workspace,sessions:o.doneSessions.filter(Ue=>Ue.workspaceId===Ke.workspace.id).map(Ue=>({...Ue,cwdLabel:void 0}))})).filter(Ke=>Ke.sessions.length>0));Pe(()=>o.initialized,Ke=>{Ke&&(s("ensureFlatSessions"),s("ensureDoneSessions"))},{immediate:!0});const we=K(!1),Be=K({}),tt=K(null);function ut(Ke){const Ue=Ke.target;Ue.closest(".view-menu")||Ue.closest(".side-section-view")||Ct()}async function _t(Ke){if(we.value){Ct();return}const Ue=Ke.currentTarget;we.value=!0,document.addEventListener("mousedown",ut),window.addEventListener("resize",Ct),await dt();const yt=tt.value?.el,xt=Ue.getBoundingClientRect(),rn=4,Zi=8,Gi=yt?.offsetHeight??0,oo=yt?.offsetWidth??0;let qi=xt.bottom+rn,vo=!1;qi+Gi>window.innerHeight-Zi&&(qi=Math.max(Zi,xt.top-Gi-rn),vo=!0);let so=xt.right-oo;sose.value==="open"&&ue.value==="flat"),Ye=K(!1);function Tt(Ke){!ze.value||Ne.value===null||(Ke.preventDefault(),Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="move"),Ye.value=!0)}function on(Ke){!ze.value||Ne.value===null||(Ke.preventDefault(),Ye.value=!1,Q(Ne.value.id))}function jt(Ke){Ke.currentTarget.contains(Ke.relatedTarget)||(Ye.value=!1)}function kn(Ke,Ue){Ue.target.closest(".gh-more, .gh-add")||O(Ke)}function bn(Ke){s("select",Ke)}function mn(Ke){s("select",Ke),qn(Ke)}const zn=K(null);let He=null;const st=F(()=>o.groups.map(Ke=>Ke.workspace));function et(Ke,Ue){const yt=getComputedStyle(Ke).getPropertyValue(Ue).trim(),xt=/^([\d.]+)(ms|s)$/.exec(yt);if(!xt)return 0;const rn=Number.parseFloat(xt[1]);return xt[2]==="s"?rn*1e3:rn}function Nt(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}function Lt(Ke,Ue){zn.value=Ke,He&&clearTimeout(He),He=setTimeout(()=>{zn.value=null,He=null},et(Ue,"--duration-flash"))}function qn(Ke){const Ue=o.groups.find(yt=>yt.sessions.some(xt=>xt.id===Ke));if(!Ue){_o.value?.expand(),dt(()=>{const xt=[..._o.value?.$el?.querySelectorAll("[data-session-id]")??[]].find(rn=>rn.dataset.sessionId===Ke);xt?.scrollIntoView({block:"nearest",behavior:Nt()}),xt&&Lt(Ke,xt)});return}se.value!=="open"&&ke("open"),ue.value!=="grouped"&&Ae("grouped"),H(Ue.workspace.id)&&O(Ue.workspace.id),dt(()=>{const yt=[...h.value?.querySelectorAll("[data-session-id]")??[]].find(xt=>xt.dataset.sessionId===Ke);yt?.scrollIntoView({block:"start",behavior:Nt()}),yt&&Lt(Ke,yt)})}const So=K(null);let Yn=null;function Ir(Ke){se.value!=="open"&&ke("open"),ue.value!=="grouped"&&Ae("grouped"),H(Ke)&&O(Ke),s("selectWorkspace",Ke),dt(()=>{const Ue=[...h.value?.querySelectorAll("[data-ws-id]")??[]].find(yt=>yt.dataset.wsId===Ke);Ue?.scrollIntoView({block:"start",behavior:Nt()}),Ue&&(So.value=Ke,Yn&&clearTimeout(Yn),Yn=setTimeout(()=>{So.value=null,Yn=null},et(Ue,"--duration-flash")))})}const _o=K(null);function It(){se.value!=="open"&&ke("open"),_o.value?_o.value.expand():r8(!1)}t({revealPinnedSection:It});function ms(Ke){It(),s("pin",Ke)}function Er(Ke){_o.value?.expand(),s("dropPin",Ke)}const go=K(0),mo=K(!1);function vs(){go.value=0,mo.value=!1}function _i(Ke){!Sm()||!d3(Ke)||(Ke.preventDefault(),Ke.stopPropagation(),go.value+=1,mo.value=!0)}function Mo(Ke){!Sm()||!d3(Ke)||(Ke.preventDefault(),Ke.stopPropagation(),Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="copy"))}function ys(Ke){!Sm()||!d3(Ke)||(go.value=Math.max(0,go.value-1),go.value===0&&(mo.value=!1))}function Tn(Ke){if(vs(),!Sm())return;const Ue=Gre(Ke);Ue.length!==0&&(Ke.preventDefault(),Ke.stopPropagation(),s("addWorkspacePaths",Ue))}const Un=K(null),Kn=K(""),Pi=K(""),Io=K(null);function Ki(){return Io}function Ti(Ke,Ue){Un.value=Ke,Pi.value=Ue,Kn.value=Ue,dt().then(()=>Io.value?.focus())}function Qs(){const Ke=Un.value,Ue=Kn.value.trim();Ke&&Ue&&Ue!==Pi.value&&s("renameWorkspace",Ke,Ue),Un.value=null}function Li(){Un.value=null}function an(Ke){Kn.value=Ke}const{handleCompositionStart:to,handleCompositionEnd:Jn,isComposingKeyEvent:Wo}=bl();function Mn(Ke){Wo(Ke)||Qs()}const Ni=K(!1),wi=K(null),$o=K({}),$s=K(null);function Vi(Ke){$s.value?.el&&!$s.value.el.contains(Ke.target)&&Rs()}function Cn(Ke,Ue){Ue.preventDefault(),Ue.stopPropagation(),wi.value=Ke,$o.value={top:`${Ue.clientY}px`,left:`${Ue.clientX}px`,transformOrigin:"top left","--menu-pop-shift":"-2px"},Ni.value=!0,document.addEventListener("mousedown",Vi,!0)}function Rs(){Ni.value=!1,document.removeEventListener("mousedown",Vi,!0),wi.value=null}function qo(){wi.value&&Xo(wi.value.root),Rs()}function ar(){wi.value&&Ti(wi.value.id,wi.value.name),Rs()}function ks(){const Ke=wi.value;Ke&&(Rs(),s("deleteWorkspace",Ke.id))}const yi=K(null),Vn=K(null),ji=K({}),Fi=K(null);function bs(Ke){const Ue=Ke.target;Ue.closest(".gh-more")||Ue.closest(".ws-menu")||Eo()}async function As(Ke,Ue){if(yi.value===Ke.id){Eo();return}const yt=Ue.currentTarget;Vn.value=Ke,yi.value=Ke.id,document.addEventListener("mousedown",bs),window.addEventListener("resize",Eo),await dt();const xt=Fi.value?.el,rn=yt.getBoundingClientRect(),Zi=4,Gi=8,oo=xt?.offsetHeight??0,qi=xt?.offsetWidth??0;let vo=rn.bottom+Zi,so=!1;vo+oo>window.innerHeight-Gi&&(vo=Math.max(Gi,rn.top-oo-Zi),so=!0);let Ro=rn.right-qi;Ro{document.removeEventListener("mousedown",Vi,!0),document.removeEventListener("mousedown",bs),document.removeEventListener("mousedown",ut),window.removeEventListener("resize",Eo),window.removeEventListener("resize",Ct)});const Nr=K(null);let Di;function Xn(){const Ke=Nr.value;Ke&&(Ke.classList.remove("blink-now"),Ke.getBoundingClientRect(),Ke.classList.add("blink-now"),clearTimeout(Di),Di=setTimeout(()=>Ke.classList.remove("blink-now"),300))}const Cs=ia(()=>Fo(()=>import("./DesignSystemView-TDJEKkA2.js"),__vite__mapDeps([0,1]))),Uo=K(!1);let On,Hi=!1;function Wi(Ke){Hi=!1,clearTimeout(On),Ke.currentTarget.setPointerCapture?.(Ke.pointerId),On=setTimeout(()=>{Hi=!0,Uo.value=!0},Jge)}function rs(Ke){clearTimeout(On);const Ue=Ke.currentTarget;Ue.hasPointerCapture?.(Ke.pointerId)&&Ue.releasePointerCapture(Ke.pointerId)}function jn(){if(Hi){Hi=!1;return}Xn()}return Hn(()=>{clearTimeout(On)}),(Ke,Ue)=>(v(),E("aside",{class:Fe(["side",{"macos-desktop":f(pc),collapsed:e.collapsed,"no-anim":e.dragging}]),style:Kt({width:e.collapsed?"0px":e.colWidth+"px"})},[C("div",{class:"col",style:Kt({width:e.colWidth+"px"}),onDragenter:_i,onDragover:Mo,onDragleave:ys,onDrop:Tn},[C("div",hge,[C("div",pge,[f(pc)?X("",!0):(v(),E(Ee,{key:0},[(v(),E("svg",{ref_key:"logoRef",ref:Nr,class:"ch-logo",viewBox:"0 0 32 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Kimi Code",onClick:jn,onPointerdown:Wi,onPointerup:rs,onPointercancel:rs},[...Ue[58]||(Ue[58]=[$c('',2)])],544)),Ue[59]||(Ue[59]=C("span",{class:"ch-name"},"Kimi Code",-1))],64))]),C("div",gge,[f(pc)?X("",!0):(v(),ce(f(Jt),{key:0,class:"ch-collapse",size:"sm",label:f(i)("sidebar.collapseSidebar"),tooltip:f(i)("sidebar.collapseSidebar"),onClick:Ue[0]||(Ue[0]=wt(yt=>s("collapse"),["stop"]))},{default:de(()=>[U(f(ve),{name:"panel-collapse"})]),_:1},8,["label","tooltip"]))])]),U(M$),C("div",{class:Fe(["sidebar-actions",{"sidebar-actions--has-workspace-action":Yge}])},[C("button",{class:"btn-new-chat",type:"button",onClick:Ue[1]||(Ue[1]=wt(yt=>s("create"),["stop"]))},[U(f(ve),{name:"chat-new"}),C("span",null,D(f(i)("sidebar.newChat")),1),U(f(ku),{keys:f(a)},null,8,["keys"])]),X("",!0),C("button",{class:"search",type:"button",onClick:u},[U(f(ve),{class:"search-icon",name:"search"}),C("span",mge,D(f(i)("sidebar.search")),1),U(f(ku),{keys:f(l)},null,8,["keys"])])],2),f(re)?(v(),E("div",vge,[U(f(Vs),{class:"status-seg",size:"sm","model-value":se.value,options:ge.value,"onUpdate:modelValue":ke},null,8,["model-value","options"])])):X("",!0),C("div",{class:Fe(["sessions-head",{"sessions-head--scrolled":p.value}])},[e.pinnedSessions.length>0&&se.value==="open"?(v(),ce(fge,{key:0,ref_key:"pinnedListRef",ref:_o,sessions:e.pinnedSessions,"active-id":e.activeId,"pending-by-session":e.pendingBySession,"unread-by-session":e.unreadBySession,"state-tag":"open","flash-session-id":zn.value,onSelectSession:bn,onRenameSession:Ue[3]||(Ue[3]=(yt,xt)=>s("rename",yt,xt)),onGenerateSessionTitle:Ue[4]||(Ue[4]=(yt,xt)=>s("generateTitle",yt,xt)),onArchiveSession:Ue[5]||(Ue[5]=yt=>s("archive",yt)),onForkSession:Ue[6]||(Ue[6]=yt=>s("fork",yt)),onExportSession:Ue[7]||(Ue[7]=yt=>s("export",yt)),onPinSession:ms,onDropPin:Er,onSessionDragStart:te,onSessionDragEnd:be},null,8,["sessions","active-id","pending-by-session","unread-by-session","flash-session-id"])):X("",!0),C("div",yge,[C("span",kge,D(se.value==="workspaces"?f(i)("sidebar.tabWorkspaces"):se.value==="done"?f(i)("sidebar.tabDone"):f(i)("sidebar.sessionsHeader")),1),C("div",bge,[se.value==="workspaces"?(v(),ce(f(gn),{key:0,text:f(i)("sidebar.newWorkspace")},{default:de(()=>[U(f(Jt),{class:"side-section-toggle",size:"sm",label:f(i)("sidebar.newWorkspace"),onClick:Ue[8]||(Ue[8]=wt(yt=>s("addWorkspace"),["stop"]))},{default:de(()=>[U(f(ve),{name:"folder-plus"})]),_:1},8,["label"])]),_:1},8,["text"])):X("",!0),se.value!=="workspaces"&&ue.value==="grouped"?(v(),ce(f(Jt),{key:1,class:"side-section-toggle",size:"sm",label:$.value?f(i)("sidebar.expandAll"):f(i)("sidebar.collapseAll"),tooltip:$.value?f(i)("sidebar.expandAll"):f(i)("sidebar.collapseAll"),onClick:Ue[9]||(Ue[9]=wt(yt=>$.value?j():R(),["stop"]))},{default:de(()=>[$.value?(v(),ce(f(ve),{key:0,name:"expand"})):(v(),ce(f(ve),{key:1,name:"collapse"}))]),_:1},8,["label","tooltip"])):X("",!0),se.value!=="workspaces"?(v(),ce(f(gn),{key:2,text:f(i)("sidebar.viewSwitcher")},{default:de(()=>[U(f(Jt),{class:"side-section-toggle side-section-view",size:"sm",label:f(i)("sidebar.viewSwitcher"),onClick:wt(_t,["stop"])},{default:de(()=>[U(f(ve),{name:"list-settings"})]),_:1},8,["label"])]),_:1},8,["text"])):X("",!0)])])],2),C("div",{ref_key:"sessionsEl",ref:h,class:Fe(["sessions",{scrolling:f(w),"pinned-drag-active":ze.value&&Ne.value!==null,"flat-pinned-drop-hover":Ye.value}]),onScroll:M,onDragover:Tt,onDrop:on,onDragleave:jt,onMouseenter:Ue[39]||(Ue[39]=(...yt)=>f(T)&&f(T)(...yt)),onMouseleave:Ue[40]||(Ue[40]=(...yt)=>f(S)&&f(S)(...yt))},[se.value==="open"?(v(),E(Ee,{key:0},[ue.value==="flat"?(v(),E(Ee,{key:0},[(v(!0),E(Ee,null,pt(e.flatSessions,yt=>(v(),ce(Pp,{key:yt.id,session:yt,active:yt.id===e.activeId,"approval-count":e.pendingBySession[yt.id]?.approvals??0,"question-count":e.pendingBySession[yt.id]?.questions??0,unread:e.unreadBySession[yt.id]??!1,"state-tag":"open",draggable:gt.value!==yt.id,onDragstart:xt=>Le(yt.id,xt),onRenameStateChange:xt=>gt.value=xt?yt.id:null,onSelect:bn,onRename:Ue[10]||(Ue[10]=(xt,rn)=>s("rename",xt,rn)),onGenerateTitle:Ue[11]||(Ue[11]=(xt,rn)=>s("generateTitle",xt,rn)),onArchive:Ue[12]||(Ue[12]=xt=>s("archive",xt)),onFork:Ue[13]||(Ue[13]=xt=>s("fork",xt)),onExport:Ue[14]||(Ue[14]=xt=>s("export",xt)),onPin:ms},null,8,["session","active","approval-count","question-count","unread","draggable","onDragstart","onRenameStateChange"]))),128)),e.flatSessions.length===0&&!e.flatHasMore&&e.pinnedSessions.length===0?(v(),E("div",Age,D(f(i)("sidebar.noSessions")),1)):X("",!0),e.flatHasMore?(v(),E("div",Cge,[C("button",{class:"show-more",disabled:e.flatLoadingMore,onClick:Ue[15]||(Ue[15]=wt(yt=>s("loadMoreFlatSessions"),["stop"]))},[C("span",xge,D(e.flatLoadingMore?f(i)("sidebar.loadingMore"):f(i)("sidebar.loadMore")),1),U(f(ve),{name:"chevron-down",size:"sm"})],8,wge)])):X("",!0)],64)):(v(),E(Ee,{key:1},[e.groups.length===0?(v(),E("div",Sge,D(f(i)("workspace.noWorkspace")),1)):Ie.value.length===0&&e.pinnedSessions.length===0?(v(),E("div",_ge,D(f(i)("sidebar.noOpenSessions")),1)):(v(!0),E(Ee,{key:2},pt(Ie.value,yt=>(v(),E("div",{key:yt.workspace.id,class:Fe(["ws-drop-target",{"drop-before":Y.value?.id===yt.workspace.id&&Y.value.position==="before","drop-after":Y.value?.id===yt.workspace.id&&Y.value.position==="after","ws-locate-flash":So.value===yt.workspace.id}]),"data-ws-id":yt.workspace.id,onDragover:xt=>ie(xt,yt.workspace.id),onDrop:xt=>pe(yt.workspace.id)},[U(rge,{group:yt,"active-workspace-id":e.activeWorkspaceId,"active-id":e.activeId,"renaming-id":Un.value,"rename-value":Kn.value,"rename-input-ref":Ki(),"pending-by-session":e.pendingBySession,"unread-by-session":e.unreadBySession,"ws-menu-open-id":yi.value,dragging:V.value===yt.workspace.id,sortable:e.workspaceSortMode==="manual","is-collapsed":H,"visible-limit":P,"flash-session-id":zn.value,"pinned-drag-session":Ne.value,"state-tag":"open",onGroupClick:kn,onGroupContextmenu:Cn,onToggleWsMenu:As,onCreateInWorkspace:Ue[16]||(Ue[16]=xt=>s("createInWorkspace",xt)),onSelectSession:bn,onRenameSession:Ue[17]||(Ue[17]=(xt,rn)=>s("rename",xt,rn)),onGenerateSessionTitle:Ue[18]||(Ue[18]=(xt,rn)=>s("generateTitle",xt,rn)),onArchiveSession:Ue[19]||(Ue[19]=xt=>s("archive",xt)),onForkSession:Ue[20]||(Ue[20]=xt=>s("fork",xt)),onExportSession:Ue[21]||(Ue[21]=xt=>s("export",xt)),onPinSession:ms,onDropPinnedSession:Q,onExpand:Z,onCollapse:ae,onConfirmRename:Qs,onCancelRename:Li,onUpdateRenameValue:an,onWsDragstart:oe,onWsDragend:q},null,8,["group","active-workspace-id","active-id","renaming-id","rename-value","rename-input-ref","pending-by-session","unread-by-session","ws-menu-open-id","dragging","sortable","flash-session-id","pinned-drag-session"])],42,Mge))),128))],64))],64)):se.value==="done"?(v(),E(Ee,{key:1},[ue.value==="flat"?(v(!0),E(Ee,{key:0},pt(e.doneSessions,yt=>(v(),ce(Pp,{key:yt.id,session:yt,active:yt.id===e.activeId,"approval-count":e.pendingBySession[yt.id]?.approvals??0,"question-count":e.pendingBySession[yt.id]?.questions??0,unread:e.unreadBySession[yt.id]??!1,"state-tag":"done",onSelect:bn,onRename:Ue[22]||(Ue[22]=(xt,rn)=>s("rename",xt,rn)),onGenerateTitle:Ue[23]||(Ue[23]=(xt,rn)=>s("generateTitle",xt,rn)),onRestore:Ue[24]||(Ue[24]=xt=>s("restore",xt)),onFork:Ue[25]||(Ue[25]=xt=>s("fork",xt)),onExport:Ue[26]||(Ue[26]=xt=>s("export",xt))},null,8,["session","active","approval-count","question-count","unread"]))),128)):(v(!0),E(Ee,{key:1},pt(Oe.value,yt=>(v(),E("div",{key:yt.workspace.id,class:"done-group"},[C("div",{class:"done-gh",onClick:xt=>O(yt.workspace.id),onContextmenu:xt=>Cn(yt.workspace,xt)},[H(yt.workspace.id)?(v(),ce(f(ve),{key:0,class:"done-gh-folder",name:"folder-closed"})):(v(),ce(f(ve),{key:1,class:"done-gh-folder",name:"folder"})),C("span",Ege,D(yt.workspace.name),1),C("span",Tge,D(yt.sessions.length),1),C("span",Lge,[U(f(Jt),{class:Fe(["gh-more",{open:yi.value===yt.workspace.id}]),size:"sm",label:f(i)("sidebar.options"),tooltip:f(i)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":yi.value===yt.workspace.id,onClick:wt(xt=>As(yt.workspace,xt),["stop"])},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded","onClick"])])],40,Ige),H(yt.workspace.id)?X("",!0):(v(),E("div",Nge,[(v(!0),E(Ee,null,pt(yt.sessions,xt=>(v(),ce(Pp,{key:xt.id,session:xt,active:xt.id===e.activeId,"approval-count":e.pendingBySession[xt.id]?.approvals??0,"question-count":e.pendingBySession[xt.id]?.questions??0,unread:e.unreadBySession[xt.id]??!1,"state-tag":"done",onSelect:bn,onRename:Ue[27]||(Ue[27]=(rn,Zi)=>s("rename",rn,Zi)),onGenerateTitle:Ue[28]||(Ue[28]=(rn,Zi)=>s("generateTitle",rn,Zi)),onRestore:Ue[29]||(Ue[29]=rn=>s("restore",rn)),onFork:Ue[30]||(Ue[30]=rn=>s("fork",rn)),onExport:Ue[31]||(Ue[31]=rn=>s("export",rn))},null,8,["session","active","approval-count","question-count","unread"]))),128))]))]))),128)),e.doneSessions.length===0&&!e.doneHasMore?(v(),E("div",Fge,D(f(i)("sidebar.noDoneSessions")),1)):X("",!0),e.doneHasMore?(v(),E("div",Dge,[C("button",{class:"show-more",disabled:e.doneLoadingMore,onClick:Ue[32]||(Ue[32]=wt(yt=>s("loadMoreDoneSessions"),["stop"]))},[C("span",$ge,D(e.doneLoadingMore?f(i)("sidebar.loadingMore"):f(i)("sidebar.loadMore")),1),U(f(ve),{name:"chevron-down",size:"sm"})],8,Bge)])):X("",!0)],64)):(v(),E(Ee,{key:2},[(v(!0),E(Ee,null,pt(e.groups,yt=>(v(),E("div",{key:yt.workspace.id,class:Fe(["ws-dir",{on:yt.workspace.id===e.activeWorkspaceId}]),onClick:xt=>s("createInWorkspace",yt.workspace.id),onContextmenu:xt=>Cn(yt.workspace,xt)},[C("div",zge,[U(f(ve),{class:"ws-dir-icon",name:"folder-closed"}),Un.value===yt.workspace.id?Wn((v(),E("input",{key:0,ref_for:!0,ref:xt=>Io.value=xt,"onUpdate:modelValue":Ue[33]||(Ue[33]=xt=>Kn.value=xt),class:"ws-dir-rename",type:"text",onKeydown:[Ho(wt(Mn,["stop"]),["enter"]),Ue[34]||(Ue[34]=Ho(wt(xt=>Li(),["stop"]),["esc"]))],onCompositionstart:Ue[35]||(Ue[35]=(...xt)=>f(to)&&f(to)(...xt)),onCompositionend:Ue[36]||(Ue[36]=(...xt)=>f(Jn)&&f(Jn)(...xt)),onBlur:Ue[37]||(Ue[37]=xt=>Li()),onClick:Ue[38]||(Ue[38]=wt(()=>{},["stop"]))},null,40,Oge)),[[Bs,Kn.value]]):(v(),E("span",Pge,D(yt.workspace.name),1)),C("span",jge,[Un.value!==yt.workspace.id?(v(),ce(f(Jt),{key:0,class:Fe(["gh-more",{open:yi.value===yt.workspace.id}]),size:"sm",label:f(i)("sidebar.options"),tooltip:f(i)("sidebar.options"),"aria-haspopup":"menu","aria-expanded":yi.value===yt.workspace.id,onClick:wt(xt=>As(yt.workspace,xt),["stop"])},{default:de(()=>[U(f(ve),{name:"dots-horizontal"})]),_:1},8,["class","label","tooltip","aria-expanded","onClick"])):X("",!0)])]),C("div",Hge,D(yt.workspace.root),1)],42,Rge))),128)),e.groups.length===0?(v(),E("div",Wge,D(f(i)("workspace.noWorkspace")),1)):X("",!0)],64))],34),f(m)?(v(),E("div",{key:1,class:Fe(["sessions-thumb",{visible:f(k)}]),style:Kt({top:`${f(m).top}px`,height:`${f(m).height}px`}),"aria-hidden":"true",onPointerdown:Ue[41]||(Ue[41]=(...yt)=>f(A)&&f(A)(...yt)),onMouseenter:Ue[42]||(Ue[42]=(...yt)=>f(x)&&f(x)(...yt)),onMouseleave:Ue[43]||(Ue[43]=(...yt)=>f(_)&&f(_)(...yt))},null,38)):X("",!0),C("div",{class:Fe(["side-footer",{"side-footer--shadowed":g.value}])},[U(y0e,{onLogin:Ue[44]||(Ue[44]=yt=>s("login")),onOpenSettings:Ue[45]||(Ue[45]=yt=>s("openSettings"))})],2),C("div",{class:Fe(["folder-drop-overlay",{show:mo.value}]),"aria-hidden":"true"},[C("div",qge,[U(f(ve),{name:"folder",size:"lg"}),C("span",null,D(f(i)("sidebar.dropToAddWorkspace")),1)])],2)],36),U(fo,{name:"menu-pop"},{default:de(()=>[Ni.value?(v(),ce(f(Zs),{key:0,ref_key:"ghMenuRef",ref:$s,class:"gh-menu",style:Kt($o.value),onClick:Ue[46]||(Ue[46]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{onClick:qo},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(f(i)("sidebar.copyPath")),1)]),_:1}),U(f(Ut),{class:"workspace-rename-item",onClick:ar},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{danger:"",onClick:ks},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeWorkspace")),1)]),_:1})]),_:1},8,["style"])):X("",!0)]),_:1}),U(fo,{name:"menu-pop"},{default:de(()=>[yi.value!==null&&Vn.value?(v(),ce(f(Zs),{key:0,ref_key:"wsMenuRef",ref:Fi,class:"ws-menu",style:Kt(ji.value),onClick:Ue[50]||(Ue[50]=wt(()=>{},["stop"]))},{default:de(()=>[U(f(Ut),{onClick:Ue[47]||(Ue[47]=yt=>Tr(Vn.value))},{default:de(()=>[U(f(ve),{name:"copy",size:"sm"}),$e(" "+D(f(i)("sidebar.copyPath")),1)]),_:1}),U(f(Ut),{class:"workspace-rename-item",onClick:Ue[48]||(Ue[48]=yt=>Lr(Vn.value))},{default:de(()=>[U(f(ve),{name:"pencil",size:"sm"}),$e(" "+D(f(i)("sidebar.rename")),1)]),_:1}),U(f(Ut),{danger:"",onClick:Ue[49]||(Ue[49]=yt=>jl(Vn.value))},{default:de(()=>[U(f(ve),{name:"close",size:"sm"}),$e(" "+D(f(i)("sidebar.removeWorkspace")),1)]),_:1})]),_:1},8,["style"])):X("",!0)]),_:1}),U(fo,{name:"menu-pop"},{default:de(()=>[we.value?(v(),ce(f(Zs),{key:0,ref_key:"viewMenuRef",ref:tt,class:"view-menu",style:Kt(Be.value),onClick:Ue[55]||(Ue[55]=wt(()=>{},["stop"]))},{default:de(()=>[C("div",Uge,D(f(i)("sidebar.viewGroup")),1),U(f(Ut),{onClick:Ue[51]||(Ue[51]=yt=>$t("flat"))},{default:de(()=>[U(f(ve),{name:"list",size:"sm"}),$e(" "+D(f(i)("sidebar.viewFlat"))+" ",1),C("span",Kge,[ue.value==="flat"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),U(f(Ut),{onClick:Ue[52]||(Ue[52]=yt=>$t("grouped"))},{default:de(()=>[U(f(ve),{name:"tree-view",size:"sm"}),$e(" "+D(f(i)("sidebar.viewGrouped"))+" ",1),C("span",Vge,[ue.value==="grouped"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),ue.value==="grouped"?(v(),E(Ee,{key:0},[C("div",Zge,D(f(i)("sidebar.sortGroup")),1),U(f(Ut),{onClick:Ue[53]||(Ue[53]=yt=>Vt("manual"))},{default:de(()=>[U(f(ve),{name:"grip",size:"sm"}),$e(" "+D(f(i)("sidebar.sortManual"))+" ",1),C("span",Gge,[e.workspaceSortMode==="manual"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1}),U(f(Ut),{onClick:Ue[54]||(Ue[54]=yt=>Vt("recent"))},{default:de(()=>[U(f(ve),{name:"clock",size:"sm"}),$e(" "+D(f(i)("sidebar.sortRecent"))+" ",1),C("span",Qge,[e.workspaceSortMode==="recent"?(v(),ce(f(ve),{key:0,name:"check",size:"sm"})):X("",!0)])]),_:1})],64)):X("",!0),f(re)?(v(),E(Ee,{key:1},[U(f(Ut),{separator:""}),U(f(Ut),{onClick:nn},{default:de(()=>[U(f(ve),{name:"session-admin",size:"sm"}),$e(" "+D(f(i)("sidebar.sessionAdmin")),1)]),_:1})],64)):X("",!0)]),_:1},8,["style"])):X("",!0)]),_:1}),r.value?(v(),ce(bde,{key:0,sessions:e.sessions,workspaces:st.value,"active-id":e.activeId,onSelect:mn,onSelectWorkspace:Ir,onClose:Ue[56]||(Ue[56]=yt=>r.value=!1)},null,8,["sessions","workspaces","active-id"])):X("",!0),(v(),ce(Ds,{to:"body"},[Uo.value?(v(),ce(f(Cs),{key:0,onClose:Ue[57]||(Ue[57]=yt=>Uo.value=!1)})):X("",!0)]))],6))}}),eme=kt(Xge,[["__scopeId","data-v-e9b3eef9"]]),tme=["aria-label"],nme=Xe({__name:"ResizeHandle",props:{storageKey:{},defaultWidth:{},min:{},max:{},reverse:{type:Boolean},ariaLabel:{},applyLive:{}},emits:["update:width","update:dragging"],setup(e,{emit:t}){const n=e,i=t,{t:o}=zt(),{width:s,dragging:r,cursor:l,onPointerDown:a}=w$({storageKey:n.storageKey,defaultWidth:n.defaultWidth,min:n.min,max:()=>n.max,reverse:n.reverse,applyLive:n.applyLive});return i("update:width",s.value),Pe(s,u=>i("update:width",u)),Pe(r,u=>i("update:dragging",u)),(u,c)=>(v(),E("div",{class:Fe(["rh",{dragging:f(r)}]),style:Kt({cursor:f(l)}),role:"separator","aria-orientation":"vertical","aria-label":e.ariaLabel??f(o)("layout.resizeHandleAria"),onPointerdown:c[0]||(c[0]=(...d)=>f(a)&&f(a)(...d))},[...c[1]||(c[1]=[C("span",{class:"rh-bar","aria-hidden":"true"},null,-1)])],46,tme))}}),K_=kt(nme,[["__scopeId","data-v-1c6dfdc5"]]),ime={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ome(e,t){return v(),E("svg",ime,[...t[0]||(t[0]=[C("path",{d:"M12.0684 2.03418C12.5654 2.03421 12.9687 2.43755 12.9688 2.93457V11.0996H21.0654C21.5625 11.0996 21.9658 11.503 21.9658 12C21.9658 12.497 21.5625 12.9004 21.0654 12.9004H12.9688V21.0654C12.9687 21.5624 12.5654 21.9658 12.0684 21.9658C11.5713 21.9658 11.168 21.5625 11.168 21.0654V12.9004H2.93457C2.43751 12.9004 2.03418 12.4971 2.03418 12C2.03418 11.5029 2.43751 11.0996 2.93457 11.0996H11.168V2.93457C11.168 2.43753 11.5713 2.03418 12.0684 2.03418Z",fill:"currentColor"},null,-1)])])}const sme=St({name:"kimi-add",render:ome}),rme={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function lme(e,t){return v(),E("svg",rme,[...t[0]||(t[0]=[C("path",{id:"p0",d:"M 0 -9.9 C -5.468 -9.9 -9.9 -5.468 -9.9 0 C -9.9 1.923 -9.351 3.719 -8.402 5.239 C -8.402 5.239 -9.483 7.821 -9.483 7.821 C -9.896 8.809 -9.171 9.9 -8.099 9.9 C -8.099 9.9 0 9.9 0 9.9 C 5.468 9.9 9.9 5.468 9.9 0 C 9.9 -5.468 5.468 -9.9 0 -9.9 Z M -8.1 0 C -8.1 -4.474 -4.474 -8.1 0 -8.1 C 4.473 -8.1 8.1 -4.474 8.1 0 C 8.1 4.473 4.473 8.1 -0.001 8.1 C -0.001 8.1 -7.648 8.1 -7.648 8.1 L -6.365 5.035 C -6.365 5.035 -6.648 4.629 -6.648 4.629 C -7.563 3.317 -8.1 1.723 -8.1 0 Z",transform:"matrix(1 0 0 1 12 12)",fill:"currentColor","fill-rule":"evenodd"},null,-1),C("path",{id:"p1",d:"M 3.6 0.5 L -2.6 0.5 M 0.5 -2.573 L 0.5 3.573",transform:"translate(11.5 11.5)",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"},null,-1)])])}const ame=St({name:"kimi-add-conversation",render:lme}),ume={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cme(e,t){return v(),E("svg",ume,[...t[0]||(t[0]=[C("path",{d:"M15.0996 12C15.5967 12 16 12.4033 16 12.9004C15.9998 13.3973 15.5965 13.7998 15.0996 13.7998H8.90039C8.40346 13.7998 8.00021 13.3973 8 12.9004C8 12.4033 8.40333 12 8.90039 12H15.0996Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3.2002C20.5464 3.2002 21.7998 4.4536 21.7998 6V7C21.7998 8.03565 21.2363 8.93754 20.4004 9.42188V17C20.4004 19.1539 18.6539 20.9004 16.5 20.9004H7.5C5.34609 20.9004 3.59961 19.1539 3.59961 17V9.42188C2.76374 8.93754 2.2002 8.03565 2.2002 7V6C2.2002 4.4536 3.4536 3.2002 5 3.2002H19ZM5.40039 17C5.40039 18.1598 6.3402 19.0996 7.5 19.0996H16.5C17.6598 19.0996 18.5996 18.1598 18.5996 17V9.7998H5.40039V17ZM4.89746 5.00488C4.39333 5.05621 4 5.48232 4 6V7L4.00488 7.10254C4.05278 7.57297 4.42703 7.94722 4.89746 7.99512L5 8H19C19.5523 8 20 7.55228 20 7V6C20 5.44772 19.5523 5 19 5H5L4.89746 5.00488Z",fill:"currentColor"},null,-1)])])}const dme=St({name:"kimi-archive",render:cme}),fme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hme(e,t){return v(),E("svg",fme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.386 21.6387C11.7378 21.988 12.3059 21.987 12.6565 21.6364L18.1949 16.098C18.5464 15.7465 18.5464 15.1766 18.1949 14.8252C17.8434 14.4737 17.2736 14.4737 16.9221 14.8252L12.9201 18.8272V3.00002C12.9201 2.50297 12.5171 2.10003 12.0201 2.10003C11.523 2.10003 11.1201 2.50297 11.1201 3.00002V18.8383L7.07554 14.8229C6.7228 14.4727 6.15295 14.4747 5.80275 14.8275C5.45255 15.1802 5.45461 15.7501 5.80735 16.1003L11.386 21.6387Z",fill:"currentColor"},null,-1)])])}const pme=St({name:"kimi-arrow-down",render:hme}),gme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mme(e,t){return v(),E("svg",gme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.16127 12.814C1.81197 12.4622 1.81299 11.8941 2.16357 11.5435L7.70203 6.00506C8.0535 5.65359 8.62335 5.65359 8.97482 6.00506C9.32629 6.35653 9.32629 6.92638 8.97482 7.27785L4.97276 11.2799H20.8C21.297 11.2799 21.7 11.6829 21.7 12.1799C21.7 12.677 21.297 13.0799 20.8 13.0799H4.96171L8.97712 17.1244C9.32732 17.4772 9.32526 18.047 8.97252 18.3972C8.61978 18.7474 8.04993 18.7454 7.69973 18.3926L2.16127 12.814Z",fill:"currentColor"},null,-1)])])}const vme=St({name:"kimi-arrow-left",render:mme}),yme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kme(e,t){return v(),E("svg",yme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.4387 12.814C21.788 12.4622 21.787 11.8941 21.4364 11.5436L15.8979 6.0051C15.5464 5.65363 14.9766 5.65363 14.6251 6.0051C14.2737 6.35657 14.2737 6.92642 14.6251 7.27789L18.6272 11.28H2.79998C2.30293 11.28 1.89998 11.6829 1.89998 12.18C1.89998 12.677 2.30293 13.08 2.79998 13.08H18.6382L14.6228 17.1245C14.2726 17.4772 14.2747 18.0471 14.6274 18.3973C14.9802 18.7475 15.55 18.7454 15.9002 18.3927L21.4387 12.814Z",fill:"currentColor"},null,-1)])])}const bme=St({name:"kimi-arrow-right",render:kme}),Ame={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cme(e,t){return v(),E("svg",Ame,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.386 2.36129C11.7378 2.01198 12.3059 2.013 12.6565 2.36358L18.1949 7.90204C18.5464 8.25351 18.5464 8.82336 18.1949 9.17483C17.8434 9.52631 17.2736 9.52631 16.9221 9.17483L12.9201 5.17277V21C12.9201 21.497 12.5171 21.9 12.0201 21.9C11.523 21.9 11.1201 21.497 11.1201 21V5.16172L7.07554 9.17713C6.7228 9.52733 6.15295 9.52527 5.80275 9.17253C5.45255 8.81979 5.45461 8.24995 5.80735 7.89975L11.386 2.36129Z",fill:"currentColor"},null,-1)])])}const wme=St({name:"kimi-arrow-up",render:Cme}),xme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sme(e,t){return v(),E("svg",xme,[...t[0]||(t[0]=[C("path",{d:"M19.3027 5.9053C19.6542 5.55397 20.2247 5.55388 20.5761 5.9053C20.9273 6.25675 20.9273 6.82734 20.5761 7.17874L9.65911 18.0948C9.30773 18.4461 8.73814 18.446 8.38665 18.0948L3.42376 13.1328C3.0726 12.7814 3.07263 12.2118 3.42376 11.8604C3.77524 11.509 4.34575 11.5089 4.6972 11.8604L9.02239 16.1856L19.3027 5.9053Z",fill:"currentColor"},null,-1)])])}const _me=St({name:"kimi-check",render:Sme}),Mme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ime(e,t){return v(),E("svg",Mme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3912 16.7134C11.743 17.0627 12.3111 17.0617 12.6617 16.7111L19.6364 9.73641C19.9878 9.38494 19.9878 8.81509 19.6364 8.46362C19.2849 8.11215 18.7151 8.11215 18.3636 8.46362L12.023 14.8042L5.63407 8.46132C5.28133 8.11112 4.71149 8.11318 4.36129 8.46592C4.01109 8.81866 4.01314 9.3885 4.36588 9.73871L11.3912 16.7134Z",fill:"currentColor"},null,-1)])])}const Eme=St({name:"kimi-chevron-down",render:Ime}),Tme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lme(e,t){return v(),E("svg",Tme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.1261 12.6088C16.4754 12.257 16.4743 11.6889 16.1238 11.3383L9.14904 4.36363C8.79757 4.01216 8.22772 4.01216 7.87625 4.36363C7.52477 4.7151 7.52477 5.28495 7.87625 5.63642L14.2169 11.977L7.87395 18.3659C7.52375 18.7187 7.52581 19.2885 7.87855 19.6387C8.23129 19.9889 8.80113 19.9869 9.15133 19.6341L16.1261 12.6088Z",fill:"currentColor"},null,-1)])])}const Nme=St({name:"kimi-chevron-right",render:Lme}),Fme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dme(e,t){return v(),E("svg",Fme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3912 8.46132C11.743 8.11202 12.3111 8.11304 12.6617 8.46362L19.6364 15.4383C19.9878 15.7898 19.9878 16.3597 19.6364 16.7111C19.2849 17.0626 18.7151 17.0626 18.3636 16.7111L12.023 10.3705L5.63407 16.7134C5.28133 17.0636 4.71149 17.0616 4.36129 16.7088C4.01109 16.3561 4.01314 15.7862 4.36588 15.436L11.3912 8.46132Z",fill:"currentColor"},null,-1)])])}const Bme=St({name:"kimi-chevron-up",render:Dme}),$me={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rme(e,t){return v(),E("svg",$me,[...t[0]||(t[0]=[C("circle",{cx:"12",cy:"12",r:"10.875",stroke:"currentColor","stroke-width":"2.25"},null,-1),C("path",{d:"M7.125 12.6L10.65 16.125L17.025 8.85",stroke:"currentColor","stroke-width":"2.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const zme=St({name:"kimi-circle-check",render:Rme}),Ome={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pme(e,t){return v(),E("svg",Ome,[...t[0]||(t[0]=[C("path",{d:"M11.8999 6.79965C12.397 6.79965 12.7997 7.20235 12.7997 7.69941V11.7266L14.7359 13.6629C15.0873 14.0143 15.0879 14.584 14.7366 14.9355C14.3852 15.287 13.8148 15.287 13.4633 14.9355L11.2632 12.7355C11.0947 12.5668 11.0002 12.338 11.0001 12.0995V7.69941C11.0001 7.20238 11.4029 6.7997 11.8999 6.79965Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.89893C17.4677 1.89893 21.9001 6.33147 21.9002 11.7991C21.9002 17.2669 17.4678 21.6993 12 21.6993C6.53228 21.6993 2.09985 17.2669 2.09985 11.7991C2.09998 6.33147 6.53236 1.89893 12 1.89893ZM20.1 11.7998C20.1 7.32616 16.4737 3.69984 12 3.69984C7.5264 3.69984 3.90008 7.32616 3.90008 11.7998C3.90032 16.2732 7.52655 19.8998 12 19.8998C16.4735 19.8998 20.0998 16.2732 20.1 11.7998Z",fill:"currentColor"},null,-1)])])}const jme=St({name:"kimi-clock",render:Pme}),Hme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wme(e,t){return v(),E("svg",Hme,[...t[0]||(t[0]=[C("path",{d:"M17.9542 4.77253C18.3056 4.42106 18.8761 4.42106 19.2276 4.77253C19.579 5.12401 19.579 5.69452 19.2276 6.04597L13.2735 12.0001L19.2276 17.9542C19.5791 18.3056 19.5791 18.8761 19.2276 19.2276C18.8761 19.5791 18.3056 19.5791 17.9542 19.2276L12.0001 13.2735L6.04595 19.2276C5.69451 19.5791 5.12399 19.579 4.77252 19.2276C4.42104 18.8761 4.42104 18.3056 4.77252 17.9542L10.7266 12.0001L4.77252 6.04597C4.42104 5.6945 4.42104 5.124 4.77252 4.77253C5.12399 4.42107 5.69448 4.42106 6.04595 4.77253L12.0001 10.7266L17.9542 4.77253Z",fill:"currentColor"},null,-1)])])}const qme=St({name:"kimi-close",render:Wme}),Ume={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kme(e,t){return v(),E("svg",Ume,[...t[0]||(t[0]=[C("path",{d:"M9.85815 11.957C10.9074 11.957 11.7583 12.8083 11.7585 13.8574V19.8574C11.7585 20.3545 11.3552 20.7578 10.8582 20.7578C10.3611 20.7578 9.95776 20.3545 9.95776 19.8574V13.8574C9.95755 13.8024 9.91325 13.7578 9.85815 13.7578H3.85815C3.3611 13.7578 2.95776 13.3545 2.95776 12.8574C2.95798 12.3605 3.36123 11.957 3.85815 11.957H9.85815Z",fill:"currentColor"},null,-1),C("path",{d:"M12.8582 2.95703C13.3551 2.95703 13.7583 3.36054 13.7585 3.85742V9.85742C13.7585 9.91265 13.8029 9.95703 13.8582 9.95703H19.8582C20.3551 9.95703 20.7583 10.3605 20.7585 10.8574C20.7585 11.3545 20.3552 11.7578 19.8582 11.7578H13.8582C12.8088 11.7578 11.9578 10.9068 11.9578 9.85742V3.85742C11.958 3.36054 12.3612 2.95703 12.8582 2.95703Z",fill:"currentColor"},null,-1)])])}const Vme=St({name:"kimi-collapse",render:Kme}),Zme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gme(e,t){return v(),E("svg",Zme,[...t[0]||(t[0]=[C("path",{d:"M11.9004 2.19995C17.3678 2.20016 21.7998 6.63285 21.7998 12.1003C21.7996 17.5677 17.3677 21.9995 11.9004 21.9998H3.80078C2.72946 21.9996 2.00334 20.9089 2.41699 19.9207L3.49805 17.3386C2.54871 15.8189 2.00007 14.0226 2 12.1003C2 6.63272 6.43277 2.19995 11.9004 2.19995ZM11.9004 3.99976C7.42688 3.99976 3.7998 7.62684 3.7998 12.1003C3.79989 13.8228 4.33669 15.4175 5.25195 16.7292L5.53516 17.1345L4.25195 20.2H11.8994C16.3727 20.1999 19.9998 16.5736 20 12.1003C20 7.62697 16.3737 3.99997 11.9004 3.99976ZM8.9541 10.8005C9.75473 10.8006 10.4041 11.4491 10.4043 12.2498C10.4043 13.0505 9.75482 13.6998 8.9541 13.7C8.15329 13.7 7.50391 13.0506 7.50391 12.2498C7.50406 11.4491 8.15339 10.8005 8.9541 10.8005ZM15.1533 10.8005C15.9539 10.8006 16.6034 11.4491 16.6035 12.2498C16.6035 13.0505 15.954 13.6998 15.1533 13.7C14.3525 13.7 13.7031 13.0506 13.7031 12.2498C13.7033 11.4491 14.3526 10.8005 15.1533 10.8005Z",fill:"currentColor"},null,-1)])])}const Qme=St({name:"kimi-comment",render:Gme}),Yme={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jme(e,t){return v(),E("svg",Yme,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 7.09961C19.1539 7.09961 20.9004 8.84609 20.9004 11V17C20.9004 19.1539 19.1539 20.9004 17 20.9004H11C8.84609 20.9004 7.09961 19.1539 7.09961 17V11C7.09961 8.84609 8.84609 7.09961 11 7.09961H17ZM11 8.90039C9.8402 8.90039 8.90039 9.8402 8.90039 11V17C8.90039 18.1598 9.8402 19.0996 11 19.0996H17C18.1598 19.0996 19.0996 18.1598 19.0996 17V11C19.0996 9.8402 18.1598 8.90039 17 8.90039H11Z",fill:"currentColor"},null,-1),C("path",{d:"M13 3.09961C14.4447 3.09961 15.705 3.88644 16.3779 5.0498C16.6265 5.47999 16.4789 6.03049 16.0488 6.2793C15.6186 6.52781 15.0681 6.38029 14.8193 5.9502C14.4548 5.32041 13.776 4.90039 13 4.90039H7C5.8402 4.90039 4.90039 5.8402 4.90039 7V13C4.90039 13.776 5.32041 14.4548 5.9502 14.8193C6.38029 15.0681 6.52781 15.6186 6.2793 16.0488C6.03049 16.4789 5.47999 16.6265 5.0498 16.3779C3.88644 15.705 3.09961 14.4447 3.09961 13V7C3.09961 4.84609 4.84609 3.09961 7 3.09961H13Z",fill:"currentColor"},null,-1)])])}const Xme=St({name:"kimi-copy",render:Jme}),eve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tve(e,t){return v(),E("svg",eve,[...t[0]||(t[0]=[C("path",{d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 10.2797 2.43414 8.66074 3.19922 7.24707C3.20172 7.24246 3.20453 7.23801 3.20703 7.2334C3.33385 6.99995 3.47181 6.77351 3.61621 6.55176C3.73214 6.37355 3.85079 6.19744 3.97754 6.02734C5.35905 4.17471 7.36856 2.81959 9.68945 2.27051C9.69952 2.26813 9.70965 2.26602 9.71973 2.26367C9.85224 2.23276 9.98563 2.2043 10.1201 2.17871C10.1542 2.17221 10.1884 2.16631 10.2227 2.16016C10.3466 2.13791 10.4712 2.11724 10.5967 2.09961C10.6301 2.09489 10.6637 2.0913 10.6973 2.08691C10.8216 2.07073 10.9465 2.05552 11.0723 2.04395C11.1125 2.04022 11.153 2.0384 11.1934 2.03516C11.4595 2.0139 11.7284 2 12 2ZM11.9941 3.7998C11.9968 3.86623 12 3.93292 12 4C12 6.76142 9.76142 9 7 9C6.14209 9 5.33517 8.78324 4.62988 8.40234C4.09862 9.48861 3.7998 10.7093 3.7998 12C3.7998 12.4438 3.83644 12.8791 3.9043 13.3037C4.52807 12.5673 5.45945 12.0996 6.5 12.0996C8.37777 12.0996 9.90039 13.6222 9.90039 15.5C9.90039 17.0702 8.83532 18.3903 7.38867 18.7812C8.70267 19.6765 10.2901 20.2002 12 20.2002C12.468 20.2002 12.9264 20.1583 13.373 20.083C13.1323 19.4342 13 18.7327 13 18C13 14.6863 15.6863 12 19 12C19.4098 12 19.8098 12.0416 20.1963 12.1201C20.1969 12.0801 20.2002 12.0401 20.2002 12C20.2002 7.47126 16.5287 3.7998 12 3.7998H11.9941ZM19 13.7998C16.6804 13.7998 14.7998 15.6804 14.7998 18C14.7998 18.5617 14.9112 19.0972 15.1113 19.5869C17.5225 18.597 19.3558 16.4929 19.9727 13.9141C19.6605 13.8399 19.3349 13.7998 19 13.7998ZM6.5 13.9004C5.61634 13.9004 4.90039 14.6163 4.90039 15.5C4.90039 16.3837 5.61634 17.0996 6.5 17.0996C7.38366 17.0996 8.09961 16.3837 8.09961 15.5C8.09961 14.6163 7.38366 13.9004 6.5 13.9004ZM15.5 6.09961C16.8255 6.09961 17.9004 7.17452 17.9004 8.5C17.9004 9.82548 16.8255 10.9004 15.5 10.9004C14.1745 10.9004 13.0996 9.82548 13.0996 8.5C13.0996 7.17452 14.1745 6.09961 15.5 6.09961ZM15.5 7.90039C15.1686 7.90039 14.9004 8.16863 14.9004 8.5C14.9004 8.83137 15.1686 9.09961 15.5 9.09961C15.8314 9.09961 16.0996 8.83137 16.0996 8.5C16.0996 8.16863 15.8314 7.90039 15.5 7.90039ZM10.1992 4C8.35326 4.41375 6.74333 5.44923 5.59961 6.87598C6.02235 7.08306 6.49716 7.2002 7 7.2002C8.76731 7.2002 10.1992 5.76731 10.1992 4Z",fill:"currentColor"},null,-1)])])}const nve=St({name:"kimi-dark-mode",render:tve}),ive={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ove(e,t){return v(),E("svg",ive,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.90002C12.4971 2.90002 12.9 3.30297 12.9 3.80002V12.2939L15.8081 9.38585C16.1595 9.03438 16.7294 9.03438 17.0808 9.38585C17.4323 9.73732 17.4323 10.3072 17.0808 10.6586L12.6364 15.1031C12.4676 15.2719 12.2387 15.3667 12 15.3667C11.7613 15.3667 11.5324 15.2719 11.3636 15.1031L6.91917 10.6586C6.5677 10.3072 6.5677 9.73732 6.91917 9.38585C7.27064 9.03438 7.84049 9.03438 8.19196 9.38585L11.1 12.2939V3.80002C11.1 3.30297 11.503 2.90002 12 2.90002ZM4.00001 13.5874C4.49706 13.5874 4.90001 13.9903 4.90001 14.4874V18.043C4.90001 18.2758 4.99249 18.499 5.1571 18.6636C5.32172 18.8282 5.54498 18.9207 5.77778 18.9207H18.2222C18.455 18.9207 18.6783 18.8283 18.8429 18.6636C19.0075 18.499 19.1 18.2758 19.1 18.043V14.4874C19.1 13.9903 19.5029 13.5874 20 13.5874C20.4971 13.5874 20.9 13.9903 20.9 14.4874V18.043C20.9 18.7531 20.6179 19.4342 20.1157 19.9364C19.6135 20.4386 18.9324 20.7207 18.2222 20.7207H5.77778C5.06759 20.7207 4.38649 20.4386 3.88431 19.9364C3.38213 19.4342 3.10001 18.7531 3.10001 18.043V14.4874C3.10001 13.9903 3.50295 13.5874 4.00001 13.5874Z",fill:"currentColor"},null,-1)])])}const sve=St({name:"kimi-download",render:ove}),rve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lve(e,t){return v(),E("svg",rve,[...t[0]||(t[0]=[C("path",{d:"M18.0179 3.09998C18.3963 3.10003 18.7709 3.17491 19.1205 3.31971C19.4701 3.46454 19.7884 3.67614 20.056 3.94373C20.3237 4.21144 20.5362 4.52965 20.681 4.87928C20.8258 5.22887 20.8997 5.60423 20.8997 5.9828C20.8997 6.36118 20.8257 6.73591 20.681 7.08533C20.5362 7.43497 20.3237 7.75317 20.056 8.02088L17.639 10.4379L9.15756 18.9183C8.5296 19.5463 7.74274 19.992 6.8812 20.2074L4.21811 20.8734C3.91148 20.95 3.5871 20.8596 3.36362 20.6361C3.14017 20.4126 3.05063 20.0883 3.12729 19.7816L3.79233 17.1185C4.00771 16.257 4.45344 15.4701 5.08139 14.8422L15.9798 3.94373C16.5203 3.40346 17.2536 3.09998 18.0179 3.09998ZM19.0003 19.1C19.4972 19.1002 19.8997 19.5034 19.8997 20.0004C19.8995 20.4971 19.4971 20.8996 19.0003 20.8998H12.0003C11.5034 20.8998 11.1001 20.4973 11.0999 20.0004C11.0999 19.5033 11.5033 19.1 12.0003 19.1H19.0003ZM18.0179 4.89979C17.7309 4.89979 17.4553 5.01417 17.2523 5.21717L6.35385 16.1146C5.95661 16.5119 5.67469 17.01 5.53842 17.5551L5.23666 18.7631L6.44467 18.4613C6.98971 18.3251 7.48782 18.0431 7.8851 17.6459L18.7826 6.74744C18.883 6.64702 18.9635 6.52821 19.0179 6.39686C19.0723 6.26558 19.0999 6.1247 19.0999 5.9828C19.0999 5.84075 19.0723 5.69916 19.0179 5.56776C18.9635 5.43645 18.883 5.31757 18.7826 5.21717C18.6821 5.11678 18.5631 5.03716 18.432 4.9828C18.3008 4.92845 18.16 4.89983 18.0179 4.89979Z",fill:"currentColor"},null,-1)])])}const ave=St({name:"kimi-edit",render:lve}),uve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cve(e,t){return v(),E("svg",uve,[...t[0]||(t[0]=[C("path",{d:"M5 11.0996C5.49693 11.0996 5.90018 11.5031 5.90039 12V18C5.90039 18.0552 5.94477 18.0996 6 18.0996H12C12.4969 18.0996 12.9002 18.5031 12.9004 19C12.9004 19.4971 12.4971 19.9004 12 19.9004H6C4.95066 19.9004 4.09961 19.0493 4.09961 18V12C4.09982 11.5031 4.50307 11.0996 5 11.0996ZM18 4.09961C19.0492 4.09961 19.9002 4.95084 19.9004 6V12C19.9004 12.4971 19.4971 12.9004 19 12.9004C18.5029 12.9004 18.0996 12.4971 18.0996 12V6C18.0994 5.94495 18.0551 5.90039 18 5.90039H12C11.5029 5.90039 11.0996 5.49706 11.0996 5C11.0998 4.50312 11.5031 4.09961 12 4.09961H18Z",fill:"currentColor"},null,-1)])])}const dve=St({name:"kimi-expand",render:cve}),fve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hve(e,t){return v(),E("svg",fve,[...t[0]||(t[0]=[C("g",null,[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1723 2.1001C13.9413 2.10018 14.6793 2.40592 15.2231 2.94971L19.0512 6.77783C19.595 7.32162 19.9007 8.0596 19.9008 8.82861V18.0005C19.9008 20.1544 18.1543 21.9009 16.0004 21.9009H8.0004C5.84649 21.9009 4.10001 20.1544 4.10001 18.0005V6.00049C4.10001 3.84658 5.84649 2.1001 8.0004 2.1001H13.1723ZM8.0004 3.90088C6.8406 3.90088 5.90079 4.84069 5.90079 6.00049V18.0005C5.90079 19.1603 6.8406 20.1001 8.0004 20.1001H16.0004C17.1602 20.1001 18.1 19.1603 18.1 18.0005V9.90088H15.0004C13.3988 9.90088 12.1 8.60211 12.1 7.00049V3.90088H8.0004ZM13.9008 7.00049C13.9008 7.608 14.3929 8.1001 15.0004 8.1001H17.8217C17.8072 8.08375 17.7933 8.06681 17.7777 8.05127L13.9496 4.22314C13.9339 4.20745 13.9173 4.19286 13.9008 4.17822V7.00049Z",fill:"currentColor"})],-1)])])}const V_=St({name:"kimi-file",render:hve}),pve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gve(e,t){return v(),E("svg",pve,[...t[0]||(t[0]=[C("path",{d:"M15.4795 15.4971C15.9765 15.4971 16.3799 15.9004 16.3799 16.3975C16.3799 16.8945 15.9765 17.2978 15.4795 17.2979H8.52051C8.02345 17.2979 7.62012 16.8945 7.62012 16.3975C7.62012 15.9004 8.02345 15.4971 8.52051 15.4971H15.4795Z",fill:"currentColor"},null,-1),C("path",{d:"M12.3359 11.0996C12.8329 11.0997 13.2354 11.503 13.2354 12C13.2354 12.497 12.8329 12.9003 12.3359 12.9004H8.52051C8.02345 12.9004 7.62012 12.4971 7.62012 12C7.62012 11.5029 8.02345 11.0996 8.52051 11.0996H12.3359Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1719 2.09961C13.9408 2.09969 14.6789 2.40555 15.2227 2.94922L19.0508 6.77734C19.5946 7.32113 19.9003 8.05911 19.9004 8.82812V18C19.9004 20.1539 18.1539 21.9004 16 21.9004H8C5.84626 21.9002 4.09961 20.1538 4.09961 18V6C4.09961 3.84621 5.84626 2.09981 8 2.09961H13.1719ZM8 3.90039C6.84037 3.90059 5.90039 4.84032 5.90039 6V18C5.90039 19.1597 6.84037 20.0994 8 20.0996H16C17.1598 20.0996 18.0996 19.1598 18.0996 18V9.90039H15C13.3985 9.90019 12.0996 8.6015 12.0996 7V3.90039H8ZM13.9004 7C13.9004 7.60739 14.3927 8.09941 15 8.09961H17.8213C17.8068 8.08333 17.7928 8.06626 17.7773 8.05078L13.9492 4.22266C13.9335 4.20696 13.9169 4.19237 13.9004 4.17773V7Z",fill:"currentColor"},null,-1)])])}const mve=St({name:"kimi-file-text",render:gve}),vve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yve(e,t){return v(),E("svg",vve,[...t[0]||(t[0]=[C("path",{d:"M9.2373 3.7002C10.4169 3.7002 11.5297 4.24779 12.249 5.18262L12.4424 5.43359H18C20.0987 5.43359 21.7998 7.13472 21.7998 9.2334V16.5C21.7998 18.5987 20.0987 20.2998 18 20.2998H6C3.90132 20.2998 2.2002 18.5987 2.2002 16.5V7.5C2.2002 5.40132 3.90132 3.7002 6 3.7002H9.2373ZM6 5.5C4.89543 5.5 4 6.39543 4 7.5V16.5C4 17.6046 4.89543 18.5 6 18.5H18C19.0357 18.5 19.887 17.7128 19.9893 16.7041L20 16.5V9.2334C20 8.19775 19.2128 7.34641 18.2041 7.24414L18 7.2334H12.0479L11.9326 7.22656C11.666 7.19561 11.4205 7.05812 11.2549 6.84277L10.8223 6.28027C10.4437 5.78834 9.85808 5.5 9.2373 5.5H6ZM16 9.59961C16.4971 9.59961 16.9004 10.0029 16.9004 10.5C16.9004 10.9971 16.4971 11.4004 16 11.4004H8C7.50294 11.4004 7.09961 10.9971 7.09961 10.5C7.09961 10.0029 7.50294 9.59961 8 9.59961H16Z",fill:"currentColor"},null,-1)])])}const kve=St({name:"kimi-folder",render:yve}),bve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ave(e,t){return v(),E("svg",bve,[...t[0]||(t[0]=[C("g",null,[C("path",{d:"M18.3623 9.99976L18.209 8.48999C18.2031 8.43161 18.2004 8.37289 18.2002 8.31421C18.1988 8.31196 18.1956 8.30842 18.1904 8.30347C18.1718 8.28559 18.1302 8.26245 18.0713 8.26245H11C10.261 8.26245 9.59753 7.81016 9.32617 7.1228L8.9082 6.06421C8.88101 5.9953 8.85737 5.92501 8.83887 5.85327C8.83778 5.85099 8.833 5.84268 8.81836 5.83179C8.79454 5.81475 8.7549 5.79939 8.70605 5.80054H3.92871C3.86986 5.80054 3.82825 5.82368 3.80957 5.84155C3.80816 5.8429 3.80675 5.84428 3.80566 5.84546L4.47559 14.0955L3.62109 17.5154L5.12109 11.5154C5.34367 10.6251 6.1438 9.99977 7.06152 9.99976H18.3623ZM7.06152 11.7996C6.96976 11.7996 6.88944 11.8629 6.86719 11.9519L5.36719 17.9519C5.33598 18.078 5.43158 18.1999 5.56152 18.2H19.4385C19.5302 18.1999 19.6106 18.1376 19.6328 18.0486L21.1328 12.0486C21.1644 11.9224 21.0686 11.7996 20.9385 11.7996H7.06152ZM20.9385 9.99976C22.2396 9.99977 23.1945 11.2228 22.8789 12.4851L21.3789 18.4851C21.1563 19.3754 20.3562 19.9997 19.4385 19.9998H4.92871C4.41722 19.9998 3.92613 19.8059 3.56445 19.4597C3.20281 19.1135 3.00004 18.6436 3 18.1541L2 5.84644C2.00006 5.35711 2.20311 4.88786 2.56445 4.54175C2.92613 4.19554 3.41722 4.00073 3.92871 4.00073H8.66406C9.10133 3.99051 9.5296 4.1225 9.87793 4.37573C10.2285 4.63118 10.4767 4.99457 10.582 5.40405L11 6.46167H18.0713C18.5828 6.46167 19.0739 6.65648 19.4355 7.00269C19.7971 7.34888 20 7.81883 20 8.30835L20.1719 9.99976H20.9385Z",fill:"currentColor"})],-1)])])}const Cve=St({name:"kimi-folder-open",render:Ave}),wve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xve(e,t){return v(),E("svg",wve,[...t[0]||(t[0]=[C("path",{d:"M9.5 3Q10.8 8.2 16 9.5Q10.8 10.8 9.5 16Q8.2 10.8 3 9.5Q8.2 8.2 9.5 3Z",fill:"currentColor"},null,-1),C("path",{d:"M17.25 13.5Q18 16.5 21 17.25Q18 18 17.25 21Q16.5 18 13.5 17.25Q16.5 16.5 17.25 13.5Z",fill:"currentColor"},null,-1)])])}const Sve=St({name:"kimi-gen-title",render:xve}),_ve={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Mve(e,t){return v(),E("svg",_ve,[...t[0]||(t[0]=[C("path",{id:"af-p0",d:"M -2.619 -8.3 C -1.815 -8.3 -1.048 -7.97 -0.499 -7.39 C -0.499 -7.39 0.141 -6.712 0.141 -6.712 C 0.141 -6.712 5.75 -6.712 5.75 -6.712 C 7.904 -6.712 9.65 -4.986 9.65 -2.858 C 9.65 -2.858 9.65 -1.71 9.65 -1.71 C 9.65 -1.219 9.247 -0.821 8.75 -0.821 C 8.253 -0.821 7.85 -1.219 7.85 -1.71 C 7.85 -1.71 7.85 -2.858 7.85 -2.858 C 7.849 -4.004 6.91 -4.934 5.75 -4.934 C 5.75 -4.934 -0.207 -4.934 -0.207 -4.934 C -0.484 -4.934 -0.749 -5.047 -0.938 -5.247 C -0.938 -5.247 -1.815 -6.177 -1.815 -6.177 C -2.023 -6.397 -2.315 -6.521 -2.619 -6.521 C -2.619 -6.521 -6.25 -6.521 -6.25 -6.521 C -7.41 -6.521 -8.35 -5.592 -8.35 -4.446 C -8.35 -4.446 -8.35 4.446 -8.35 4.446 C -8.35 5.592 -7.41 6.521 -6.25 6.521 C -6.25 6.521 1.25 6.521 1.25 6.521 C 1.747 6.521 2.15 6.919 2.15 7.41 C 2.15 7.901 1.747 8.3 1.25 8.3 C 1.25 8.3 -6.25 8.3 -6.25 8.3 C -8.404 8.3 -10.15 6.574 -10.15 4.446 C -10.15 4.446 -10.15 -4.446 -10.15 -4.446 C -10.15 -6.574 -8.404 -8.3 -6.25 -8.3 C -6.25 -8.3 -2.619 -8.3 -2.619 -8.3 Z M 3.75 -2.5 C 4.247 -2.5 4.65 -2.097 4.65 -1.6 C 4.65 -1.103 4.247 -0.699 3.75 -0.699 C 3.75 -0.699 -4.25 -0.699 -4.25 -0.699 C -4.747 -0.699 -5.15 -1.103 -5.15 -1.6 C -5.15 -2.097 -4.747 -2.5 -4.25 -2.5 C -4.25 -2.5 3.75 -2.5 3.75 -2.5 Z",transform:"matrix(1 0 0 1 11.75 12)",fill:"currentColor"},null,-1),C("g",{id:"af-p1"},[C("path",{d:"M 2.635 0 L -2.635 0 M 0 -2.635 L 0 2.635",transform:"matrix(1 0 0 1 18.4 16.3)",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"})],-1)])])}const Ive=St({name:"kimi-folder-plus",render:Mve}),Eve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tve(e,t){return v(),E("svg",Eve,[...t[0]||(t[0]=[C("path",{d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3ZM12 19.2002C15.9764 19.2002 19.2002 15.9764 19.2002 12C19.2002 8.02355 15.9764 4.7998 12 4.7998V19.2002Z",fill:"currentColor"},null,-1)])])}const Lve=St({name:"kimi-follow-system",render:Tve}),Nve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fve(e,t){return v(),E("svg",Nve,[...t[0]||(t[0]=[C("path",{d:"M17 2C19.2091 2 21 3.79086 21 6V15.7646C21 17.2361 20.192 18.5884 18.8965 19.2861L13.8965 21.9785C12.7126 22.616 11.2874 22.616 10.1035 21.9785L5.10352 19.2861C3.80802 18.5884 3 17.2361 3 15.7646V6C3 3.79086 4.79086 2 7 2H17ZM7 3.7998C5.78498 3.7998 4.79981 4.78497 4.7998 6V15.7646C4.7998 16.574 5.24443 17.3184 5.95703 17.7021L10.957 20.3936C11.6082 20.7442 12.3918 20.7442 13.043 20.3936L18.043 17.7021C18.7556 17.3184 19.2002 16.574 19.2002 15.7646V6C19.2002 4.78497 18.215 3.7998 17 3.7998H7ZM12 15.6992C12.4968 15.6992 12.8994 16.1028 12.8994 16.5996C12.8994 17.0964 12.4968 17.5 12 17.5C11.5024 17.5 11.0996 17.0964 11.0996 16.5996C11.0996 16.1028 11.5024 15.6992 12 15.6992ZM12 6.49902C12.4969 6.49922 12.8994 6.86908 12.8994 7.3252V13.6729C12.8994 14.129 12.4969 14.4988 12 14.499C11.5029 14.499 11.0996 14.1291 11.0996 13.6729V7.3252C11.0996 6.86896 11.5029 6.49902 12 6.49902Z",fill:"currentColor"},null,-1)])])}const Dve=St({name:"kimi-full-access",render:Fve}),Bve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $ve(e,t){return v(),E("svg",Bve,[...t[0]||(t[0]=[C("path",{d:"M12.5092 2.11279C17.7402 2.37781 21.8998 6.70364 21.8998 12.0005C21.8996 17.4153 17.5524 21.8108 12.1576 21.895C12.1056 21.898 12.0532 21.8999 12.0004 21.8999C11.948 21.8999 11.8954 21.8968 11.8432 21.896L11.8422 21.895C6.44751 21.8107 2.10022 17.4152 2.10001 12.0005C2.10001 6.53287 6.53278 2.1001 12.0004 2.1001L12.5092 2.11279ZM8.92715 13.0005C9.02896 14.9787 9.42581 16.721 9.99356 17.9985C10.3249 18.7441 10.6971 19.292 11.0639 19.6411C11.4259 19.9855 11.741 20.1001 12.0004 20.1001C12.2598 20.1 12.5749 19.9856 12.9369 19.6411C13.3037 19.292 13.6749 18.7441 14.0063 17.9985C14.574 16.721 14.9718 14.9788 15.0736 13.0005H8.92715ZM3.96329 13.0005C4.31462 15.8522 6.14714 18.2427 8.66837 19.3823C8.55544 19.1733 8.44916 18.9552 8.34903 18.73C7.66574 17.1926 7.22657 15.1926 7.12344 13.0005H3.96329ZM16.8764 13.0005C16.7732 15.1926 16.3341 17.1926 15.6508 18.73C15.5506 18.9554 15.4435 19.1732 15.3305 19.3823C17.8522 18.2429 19.6851 15.8525 20.0365 13.0005H16.8764ZM8.66934 4.6167C6.08869 5.78266 4.22826 8.25964 3.93985 11.1997H7.11661C7.20176 8.92954 7.64512 6.85497 8.34903 5.271C8.4494 5.04516 8.5561 4.82619 8.66934 4.6167ZM12.0004 3.8999C11.7411 3.8999 11.4259 4.01454 11.0639 4.35889C10.6971 4.70797 10.3249 5.25587 9.99356 6.00146C9.40671 7.32188 9.00186 9.13885 8.91739 11.1997H15.0834C14.9989 9.13884 14.5931 7.32189 14.0063 6.00146C13.6749 5.2559 13.3037 4.70796 12.9369 4.35889C12.5749 4.0144 12.2598 3.90002 12.0004 3.8999ZM15.3295 4.61572C15.443 4.82559 15.5502 5.04471 15.6508 5.271C16.3547 6.85498 16.799 8.92949 16.8842 11.1997H20.06C19.7715 8.25914 17.9108 5.78143 15.3295 4.61572Z",fill:"currentColor"},null,-1)])])}const Rve=St({name:"kimi-globe",render:$ve}),zve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ove(e,t){return v(),E("svg",zve,[...t[0]||(t[0]=[C("path",{d:"M8 17C8.82834 17 9.5 17.6717 9.5 18.5C9.5 19.3283 8.82834 20 8 20C7.17166 20 6.5 19.3283 6.5 18.5C6.5 17.6717 7.17166 17 8 17ZM16 17C16.8283 17 17.5 17.6717 17.5 18.5C17.5 19.3283 16.8283 20 16 20C15.1717 20 14.5 19.3283 14.5 18.5C14.5 17.6717 15.1717 17 16 17ZM8 10.5C8.82834 10.5 9.5 11.1717 9.5 12C9.5 12.8283 8.82834 13.5 8 13.5C7.17166 13.5 6.5 12.8283 6.5 12C6.5 11.1717 7.17166 10.5 8 10.5ZM16 10.5C16.8283 10.5 17.5 11.1717 17.5 12C17.5 12.8283 16.8283 13.5 16 13.5C15.1717 13.5 14.5 12.8283 14.5 12C14.5 11.1717 15.1717 10.5 16 10.5ZM8 4C8.82834 4 9.5 4.67166 9.5 5.5C9.5 6.32834 8.82834 7 8 7C7.17166 7 6.5 6.32834 6.5 5.5C6.5 4.67166 7.17166 4 8 4ZM16 4C16.8283 4 17.5 4.67166 17.5 5.5C17.5 6.32834 16.8283 7 16 7C15.1717 7 14.5 6.32834 14.5 5.5C14.5 4.67166 15.1717 4 16 4Z",fill:"currentColor"},null,-1)])])}const Pve=St({name:"kimi-grip",render:Ove}),jve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hve(e,t){return v(),E("svg",jve,[...t[0]||(t[0]=[C("path",{d:"M7.22264 6.10352C7.22264 5.5078 7.48259 4.95449 7.91405 4.56055C8.34271 4.16918 8.90831 3.96198 9.48241 3.96191C9.64155 3.96191 9.80001 3.97936 9.95507 4.01074C10.0127 3.5042 10.2586 3.04178 10.6338 2.69922C11.0625 2.30778 11.6279 2.09961 12.2021 2.09961C12.7763 2.09966 13.3418 2.30783 13.7705 2.69922C13.9947 2.90401 14.1709 3.15244 14.29 3.42676C14.4947 3.37044 14.7071 3.34182 14.9209 3.3418C15.4951 3.3418 16.0605 3.549 16.4892 3.94043C16.8644 4.28293 17.1093 4.74548 17.167 5.25195C17.3223 5.22045 17.4812 5.20312 17.6406 5.20312C18.2147 5.20318 18.7803 5.41135 19.209 5.80273C19.6402 6.19663 19.9004 6.74922 19.9004 7.34473V14.6543C19.9004 17.413 19.2914 19.0434 18.0137 20.21C16.82 21.2998 15.2175 21.9004 13.5615 21.9004C11.7538 21.9004 10.2315 21.5696 8.95702 20.8535C7.67664 20.1341 6.71683 19.0652 5.97362 17.708L3.3496 12.916C3.18848 12.6213 3.10112 12.2914 3.0996 11.9531C3.09812 11.6147 3.18309 11.2835 3.34179 10.9873C3.5001 10.692 3.72639 10.4416 3.99706 10.251C4.26771 10.0604 4.57776 9.93235 4.90136 9.87305C5.56617 9.75102 6.25934 9.84517 6.86425 10.1445C6.9942 10.2088 7.11461 10.2788 7.22264 10.3477V6.10352ZM9.02343 12.7969C9.02336 13.1912 8.76624 13.5395 8.38964 13.6562C8.0129 13.773 7.60387 13.6309 7.38085 13.3057L6.53514 12.0723C6.51218 12.0529 6.48411 12.0282 6.45018 12.002C6.34595 11.9213 6.20986 11.8289 6.06639 11.7578C5.81525 11.6335 5.51637 11.5904 5.22655 11.6436H5.22557C5.15055 11.6573 5.08558 11.6865 5.03417 11.7227C4.98289 11.7588 4.94815 11.7998 4.92772 11.8379C4.90762 11.8755 4.90023 11.9122 4.90038 11.9453C4.90057 11.9782 4.9084 12.0144 4.9287 12.0518L7.55272 16.8438C8.16912 17.9693 8.90989 18.7622 9.83886 19.2842C10.7737 19.8094 11.9704 20.0996 13.5615 20.0996C14.7902 20.0996 15.9536 19.6533 16.7998 18.8809C17.5619 18.185 18.0996 17.1383 18.0996 14.6543V7.34473C18.0996 7.28204 18.0734 7.20342 17.9951 7.13184C17.9139 7.05771 17.7875 7.00396 17.6406 7.00391C17.4937 7.00391 17.3674 7.05771 17.2861 7.13184C17.2077 7.20347 17.1807 7.28199 17.1807 7.34473V11.0693C17.1805 11.5661 16.778 11.9685 16.2812 11.9688C15.7843 11.9688 15.381 11.5662 15.3808 11.0693V5.48242C15.3808 5.41973 15.3537 5.34107 15.2754 5.26953C15.1941 5.19547 15.0677 5.1416 14.9209 5.1416C14.774 5.14166 14.6476 5.19541 14.5664 5.26953C14.4881 5.34105 14.462 5.41974 14.4619 5.48242V11.0693C14.4617 11.5662 14.0584 11.9688 13.5615 11.9688C13.0646 11.9687 12.6613 11.5662 12.6611 11.0693V4.24121C12.6611 4.17852 12.635 4.09989 12.5566 4.02832C12.4754 3.95419 12.349 3.90045 12.2021 3.90039C12.0552 3.90039 11.9289 3.95421 11.8476 4.02832C11.7692 4.09992 11.7422 4.17849 11.7422 4.24121V11.0693C11.742 11.5661 11.3395 11.9685 10.8428 11.9688C10.3458 11.9688 9.94257 11.5662 9.94237 11.0693V6.10352L9.93651 6.05371C9.92534 6.00177 9.89573 5.94433 9.8369 5.89062C9.75567 5.81647 9.62938 5.76172 9.48241 5.76172C9.33554 5.76179 9.2091 5.81651 9.12792 5.89062C9.04964 5.96222 9.02343 6.04084 9.02343 6.10352V12.7969Z",fill:"currentColor"},null,-1)])])}const Wve=St({name:"kimi-hand",render:Hve}),qve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uve(e,t){return v(),E("svg",qve,[...t[0]||(t[0]=[C("path",{d:"M4 3.33203C4.55224 3.33203 4.99993 3.7798 5 4.33203V18.0908H20.0674C20.6195 18.0908 21.0671 18.5388 21.0674 19.0908C21.0674 19.6431 20.6197 20.0908 20.0674 20.0908H5C3.89543 20.0908 3 19.1954 3 18.0908V4.33203C3.00007 3.7798 3.44776 3.33203 4 3.33203ZM8.19922 9.28418C8.7515 9.28418 9.19922 9.73189 9.19922 10.2842V15.6045C9.19908 16.1567 8.75142 16.6045 8.19922 16.6045C7.64719 16.6043 7.19936 16.1565 7.19922 15.6045V10.2842C7.19922 9.73202 7.6471 9.28438 8.19922 9.28418ZM17.2227 6.85645C17.7748 6.85658 18.2226 7.3043 18.2227 7.85645V15.6045C18.2225 16.1566 17.7747 16.6044 17.2227 16.6045C16.6705 16.6045 16.2228 16.1566 16.2227 15.6045V7.85645C16.2227 7.30422 16.6704 6.85645 17.2227 6.85645ZM12.7109 3.96387C13.2631 3.96387 13.7107 4.41175 13.7109 4.96387V15.6035C13.7109 16.1558 13.2632 16.6035 12.7109 16.6035C12.1587 16.6035 11.7109 16.1558 11.7109 15.6035V4.96387C11.7111 4.41175 12.1588 3.96387 12.7109 3.96387Z",fill:"currentColor"},null,-1)])])}const Kve=St({name:"kimi-histogram",render:Uve}),Vve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zve(e,t){return v(),E("svg",Vve,[...t[0]||(t[0]=[C("path",{d:"M8.00916 7.50488C8.47326 7.50488 8.91828 7.68943 9.24646 8.01758C9.57465 8.34577 9.75916 8.79075 9.75916 9.25488C9.75916 9.71901 9.57465 10.164 9.24646 10.4922C8.91828 10.8203 8.47326 11.0049 8.00916 11.0049C7.54507 11.0049 7.10001 10.8203 6.77185 10.4922C6.4437 10.164 6.25916 9.71898 6.25916 9.25488C6.25916 8.79078 6.4437 8.34576 6.77185 8.01758C7.10001 7.68942 7.54507 7.50492 8.00916 7.50488Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8998 4.09961C20.0537 4.09961 21.8002 5.84609 21.8002 8V16C21.8002 18.1539 20.0537 19.9004 17.8998 19.9004H5.89978C3.74598 19.9003 1.99939 18.1538 1.99939 16V8C1.99939 5.84617 3.74598 4.09974 5.89978 4.09961H17.8998ZM15.4867 12.2539C15.448 12.2184 15.3885 12.2192 15.351 12.2559L11.7338 15.8027C11.0146 16.5079 9.87305 16.5222 9.13708 15.835L6.98669 13.8262C6.95049 13.7924 6.89516 13.791 6.85681 13.8223L3.82361 16.2988C3.96873 17.3168 4.84165 18.0995 5.89978 18.0996H17.8998C18.9375 18.0996 19.7964 17.3466 19.9662 16.3574L15.4867 12.2539ZM5.89978 5.90039C4.74009 5.90052 3.80017 6.84028 3.80017 8V14.002L5.73181 12.4238C6.46046 11.8286 7.51253 11.8634 8.20056 12.5059L10.351 14.5146C10.3897 14.5508 10.4498 14.5497 10.4877 14.5127L14.1049 10.9658C14.819 10.2656 15.9506 10.2466 16.6879 10.9219L19.9994 13.9551V8C19.9994 6.8402 19.0596 5.90039 17.8998 5.90039H5.89978Z",fill:"currentColor"},null,-1)])])}const Gve=St({name:"kimi-image",render:Zve}),Qve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yve(e,t){return v(),E("svg",Qve,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.09375 2.81174C5.4825 2.50796 6.04376 2.56488 6.34766 2.93869L20.1855 19.9602C20.4895 20.3341 20.421 20.8836 20.0322 21.1877C19.6435 21.4917 19.0823 21.4355 18.7783 21.0617L17.9971 20.1008H5.99609C3.84224 20.1008 2.0958 18.3552 2.0957 16.2014V8.13889C2.09589 6.26755 3.41429 4.70428 5.17285 4.32639L4.93945 4.03928C4.63577 3.66536 4.7051 3.11573 5.09375 2.81174ZM7.13184 14.1096C7.09416 14.0738 7.03659 14.0713 6.99609 14.1037L3.92871 16.5569C4.09761 17.5472 4.95753 18.301 5.99609 18.301H16.5342L13.373 14.4133L11.9072 15.9455C11.1531 16.7324 9.92202 16.7621 9.13281 16.0119L7.13184 14.1096ZM5.99609 6.03928C4.83643 6.03928 3.89669 6.97927 3.89648 8.13889V14.1408L5.83496 12.5901C6.60469 11.9742 7.69929 12.022 8.41504 12.7024L10.416 14.6037C10.4575 14.6431 10.5218 14.642 10.5615 14.6008L12.1641 12.926L9.78906 10.0051C9.70282 10.2646 9.55682 10.5038 9.35645 10.7004C9.02202 11.0285 8.56767 11.2131 8.09473 11.2131C7.62195 11.213 7.1683 11.0284 6.83398 10.7004C6.49961 10.3724 6.31152 9.92701 6.31152 9.46311C6.3116 8.99941 6.49981 8.55474 6.83398 8.22678C7.12986 7.93654 7.51931 7.75901 7.93262 7.7219L6.56543 6.03928H5.99609Z",fill:"currentColor"},null,-1),C("path",{d:"M18.0049 4.31272C20.1587 4.31288 21.9043 6.0593 21.9043 8.21311V13.718C21.9039 15.4743 19.7248 16.2906 18.5713 14.966L14.9141 10.7658C14.5882 10.3912 14.6278 9.82271 15.002 9.49631C15.3768 9.16994 15.9451 9.20948 16.2715 9.5842L19.9287 13.7844C19.9528 13.812 19.9696 13.8167 19.9775 13.8186C19.9908 13.8216 20.0141 13.8213 20.04 13.8117C20.0655 13.8021 20.0826 13.7875 20.0908 13.7766C20.0955 13.7702 20.1044 13.7552 20.1045 13.718V8.21311C20.1045 7.05341 19.1645 6.11366 18.0049 6.1135H10.6328C10.1361 6.11327 9.73267 5.70981 9.73242 5.21311C9.73242 4.71619 10.136 4.31295 10.6328 4.31272H18.0049Z",fill:"currentColor"},null,-1)])])}const Jve=St({name:"kimi-image-failed",render:Yve}),Xve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2e(e,t){return v(),E("svg",Xve,[...t[0]||(t[0]=[C("path",{d:"M12 2.1001C17.4676 2.10031 21.8994 6.53286 21.8994 12.0005C21.8992 17.4679 17.4674 21.8997 12 21.8999C6.53237 21.8999 2.09982 17.4681 2.09961 12.0005C2.09961 6.53273 6.53224 2.1001 12 2.1001ZM12 3.8999C7.52636 3.8999 3.89941 7.52684 3.89941 12.0005C3.89963 16.474 7.52649 20.1001 12 20.1001C16.4733 20.0999 20.0994 16.4738 20.0996 12.0005C20.0996 7.52697 16.4735 3.90011 12 3.8999ZM12 9.50049C12.4969 9.50068 12.8994 9.87055 12.8994 10.3267V16.6743C12.8992 17.1303 12.4968 17.5003 12 17.5005C11.503 17.5005 11.0998 17.1304 11.0996 16.6743V10.3267C11.0996 9.87043 11.5029 9.50049 12 9.50049ZM12 6.49951C12.4968 6.49951 12.8994 6.90313 12.8994 7.3999C12.8992 7.8965 12.4966 8.30029 12 8.30029C11.5025 8.30028 11.0998 7.8965 11.0996 7.3999C11.0996 6.90313 11.5024 6.49952 12 6.49951Z",fill:"currentColor"},null,-1)])])}const t2e=St({name:"kimi-info",render:e2e}),n2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2e(e,t){return v(),E("svg",n2e,[...t[0]||(t[0]=[$c('',10)])])}const o2e=St({name:"kimi-keyboard",render:i2e}),s2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function r2e(e,t){return v(),E("svg",s2e,[...t[0]||(t[0]=[C("path",{id:"bar-divider",d:"M 9.3 18.951 L 9.3 4.3",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{id:"bar-box",d:"M -7.9 -4.8 C -7.9 -6.512 -6.512 -7.9 -4.8 -7.9 L 4.8 -7.9 C 6.512 -7.9 7.9 -6.512 7.9 -4.8 L 7.9 4.8 C 7.9 6.512 6.512 7.9 4.8 7.9 L -4.8 7.9 C -6.512 7.9 -7.9 6.512 -7.9 4.8 L -7.9 -4.8 Z",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"butt","stroke-linejoin":"miter",transform:"matrix(1 0 0 1 11.8 11.8)"},null,-1),C("path",{id:"bar-arrow",d:"M -1.25 -2.5 L 1.25 0 L -1.25 2.5",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const l2e=St({name:"kimi-left-panel",render:r2e}),a2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function u2e(e,t){return v(),E("svg",a2e,[...t[0]||(t[0]=[C("path",{id:"bar-divider",d:"M 9.3 18.951 L 9.3 4.3",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{id:"bar-box",d:"M -7.9 -4.8 C -7.9 -6.512 -6.512 -7.9 -4.8 -7.9 L 4.8 -7.9 C 6.512 -7.9 7.9 -6.512 7.9 -4.8 L 7.9 4.8 C 7.9 6.512 6.512 7.9 4.8 7.9 L -4.8 7.9 C -6.512 7.9 -7.9 6.512 -7.9 4.8 L -7.9 -4.8 Z",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"butt","stroke-linejoin":"miter",transform:"matrix(1 0 0 1 11.8 11.8)"},null,-1),C("path",{id:"bar-arrow-expand",d:"M -1.25 -2.5 L 1.25 0 L -1.25 2.5",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const c2e=St({name:"kimi-left-panel-expand",render:u2e}),d2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2e(e,t){return v(),E("svg",d2e,[...t[0]||(t[0]=[$c('',1)])])}const h2e=St({name:"kimi-light-mode",render:f2e}),p2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g2e(e,t){return v(),E("svg",p2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.97427 8.06961C4.99348 7.33581 6.18946 7.1 7.00001 7.1H9.00001C9.49706 7.1 9.90001 7.50294 9.90001 8C9.90001 8.49706 9.49706 8.9 9.00001 8.9H7.00001C6.47755 8.9 5.67353 9.06419 5.02599 9.53039C4.42434 9.96356 3.90001 10.6934 3.90001 12C3.90001 13.3066 4.42434 14.0364 5.02599 14.4696C5.67353 14.9358 6.47755 15.1 7.00001 15.1H9.00001C9.49706 15.1 9.90001 15.5029 9.90001 16C9.90001 16.4971 9.49706 16.9 9.00001 16.9H7.00001C6.18946 16.9 4.99348 16.6642 3.97427 15.9304C2.90917 15.1636 2.10001 13.8934 2.10001 12C2.10001 10.1066 2.90917 8.83644 3.97427 8.06961ZM14.1 8C14.1 7.50294 14.5029 7.1 15 7.1H17C17.8105 7.1 19.0065 7.33581 20.0257 8.06961C21.0908 8.83644 21.9 10.1066 21.9 12C21.9 13.8934 21.0908 15.1636 20.0257 15.9304C19.0065 16.6642 17.8105 16.9 17 16.9H15C14.5029 16.9 14.1 16.4971 14.1 16C14.1 15.5029 14.5029 15.1 15 15.1H17C17.5225 15.1 18.3265 14.9358 18.974 14.4696C19.5757 14.0364 20.1 13.3066 20.1 12C20.1 10.6934 19.5757 9.96356 18.974 9.53039C18.3265 9.06419 17.5225 8.9 17 8.9H15C14.5029 8.9 14.1 8.49706 14.1 8ZM7.10001 12C7.10001 11.5029 7.50295 11.1 8.00001 11.1H16C16.4971 11.1 16.9 11.5029 16.9 12C16.9 12.4971 16.4971 12.9 16 12.9H8.00001C7.50295 12.9 7.10001 12.4971 7.10001 12Z",fill:"currentColor"},null,-1)])])}const m2e=St({name:"kimi-link",render:g2e}),v2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y2e(e,t){return v(),E("svg",v2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.10001 5.99998C4.10001 5.50292 4.50295 5.09998 5.00001 5.09998H19C19.4971 5.09998 19.9 5.50292 19.9 5.99998C19.9 6.49703 19.4971 6.89998 19 6.89998H5.00001C4.50295 6.89998 4.10001 6.49703 4.10001 5.99998ZM4.10001 12C4.10001 11.5029 4.50295 11.1 5.00001 11.1H19C19.4971 11.1 19.9 11.5029 19.9 12C19.9 12.497 19.4971 12.9 19 12.9H5.00001C4.50295 12.9 4.10001 12.497 4.10001 12ZM4.10001 18C4.10001 17.5029 4.50295 17.1 5.00001 17.1H19C19.4971 17.1 19.9 17.5029 19.9 18C19.9 18.497 19.4971 18.9 19 18.9H5.00001C4.50295 18.9 4.10001 18.497 4.10001 18Z",fill:"currentColor"},null,-1)])])}const k2e=St({name:"kimi-list",render:y2e}),b2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2e(e,t){return v(),E("svg",b2e,[...t[0]||(t[0]=[C("g",null,[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 4.09961C20.1539 4.09961 21.9004 5.84609 21.9004 8V16C21.9004 18.1539 20.1539 19.9004 18 19.9004H6C3.84609 19.9004 2.09961 18.1539 2.09961 16V8C2.09961 5.84609 3.84609 4.09961 6 4.09961H18ZM3.90039 16C3.90039 17.1598 4.8402 18.0996 6 18.0996H18C19.1598 18.0996 20.0996 17.1598 20.0996 16V9.49805L13.5361 13.5361C12.5955 14.1147 11.4075 14.1084 10.4727 13.5205L3.90039 9.38672V16ZM6 5.90039C5.0746 5.90039 4.29039 6.49909 4.01074 7.33008L11.4316 11.9971C11.7861 12.2199 12.2361 12.2222 12.5928 12.0029L20.0195 7.43457C19.7725 6.54993 18.9636 5.90039 18 5.90039H6Z",fill:"currentColor"})],-1)])])}const C2e=St({name:"kimi-mail",render:A2e}),w2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x2e(e,t){return v(),E("svg",w2e,[...t[0]||(t[0]=[C("path",{d:"M17 11.0996C17.4971 11.0996 17.9004 11.5029 17.9004 12C17.9004 12.4971 17.4971 12.9004 17 12.9004H7C6.50294 12.9004 6.09961 12.4971 6.09961 12C6.09961 11.5029 6.50294 11.0996 7 11.0996H17Z",fill:"currentColor"},null,-1)])])}const S2e=St({name:"kimi-minus",render:x2e}),_2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2e(e,t){return v(),E("svg",_2e,[...t[0]||(t[0]=[C("path",{d:"M15.182 3.32802C15.9304 2.72235 17.0309 2.76978 17.724 3.46767L18.5424 4.29189L18.6722 4.43642C19.2377 5.13495 19.234 6.1404 18.6635 6.83486L18.5326 6.97841L18.0248 7.48232C17.9549 7.55172 17.8793 7.61254 17.8021 7.66884C17.9794 8.18027 17.9316 8.7498 17.6595 9.22841C17.6847 9.24522 17.7091 9.2635 17.7328 9.2831L17.8002 9.3456L17.9847 9.53798C19.8515 11.5442 20.4549 14.0022 19.6224 16.2196C19.1921 17.3657 18.4025 18.3827 17.2992 19.203H19.0873L19.1801 19.2079C19.6337 19.2542 19.9877 19.6375 19.9877 20.1034C19.9876 20.5692 19.6337 20.9527 19.1801 20.9989L19.0873 21.0028H13.0385C13.0244 21.0033 13.0104 21.0031 12.9965 21.0028H4.9115C4.41448 21.0028 4.01117 20.6004 4.01111 20.1034C4.01111 19.6064 4.41444 19.203 4.9115 19.203H12.9047C15.7614 18.5471 17.3679 17.1023 17.9369 15.5868C18.4678 14.1726 18.179 12.4782 16.807 10.9188L16.5189 10.6093L16.4574 10.5399C16.4549 10.5368 16.453 10.5333 16.4506 10.5302L12.3011 14.6522C11.6031 15.3454 10.5023 15.3845 9.75818 14.7733L9.61365 14.6425L7.31091 12.3231C6.5717 11.5786 6.57617 10.376 7.32068 9.63662L12.3676 4.62392L12.5121 4.49404C13.0358 4.06988 13.7318 3.96755 14.3402 4.18251C14.3969 4.10597 14.4591 4.03197 14.5287 3.96279L15.0365 3.45791L15.182 3.32802ZM4.83044 12.9335C5.16112 12.6052 5.68305 12.5863 6.03552 12.8759L6.10291 12.9384L9.07361 15.9286L9.13513 15.997C9.42218 16.3514 9.3992 16.8727 9.06873 17.2011C8.7381 17.5294 8.21712 17.5482 7.86462 17.2587L7.79626 17.1972L4.82654 14.2069L4.76501 14.1376C4.47792 13.7831 4.49979 13.2619 4.83044 12.9335ZM13.6693 5.87978L13.6361 5.90126L8.58826 10.914C8.54935 10.9529 8.54943 11.0165 8.58826 11.0556L10.891 13.3739L10.9242 13.3964C10.9602 13.4111 11.0032 13.404 11.0326 13.3749L16.0795 8.3622L16.1019 8.329C16.1117 8.3049 16.1117 8.2779 16.1019 8.2538L16.0804 8.2206L13.7777 5.90224C13.7486 5.87289 13.7054 5.86535 13.6693 5.87978ZM16.3383 4.71376L16.3051 4.73525L15.7972 5.24013C15.7584 5.27904 15.7585 5.34166 15.7972 5.38076L16.6146 6.20498L16.6478 6.22744C16.6838 6.24221 16.7268 6.23487 16.7562 6.20595L17.264 5.70107L17.2865 5.66787C17.2962 5.64382 17.2963 5.61672 17.2865 5.59267L17.265 5.55947L16.4467 4.73623C16.4174 4.70681 16.3744 4.6992 16.3383 4.71376Z",fill:"currentColor"},null,-1)])])}const I2e=St({name:"kimi-microscope",render:M2e}),E2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T2e(e,t){return v(),E("svg",E2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.669 7.94435C11.6812 7.94435 11.6912 7.9546 11.6914 7.96681C11.6914 7.96922 11.6926 7.97233 11.6934 7.97462L14.0908 15.1924C14.1283 15.3052 14.0437 15.4219 13.9248 15.4219H12.709C12.6327 15.4217 12.5655 15.3718 12.543 15.2988L11.9639 13.418C11.9526 13.3814 11.9181 13.3565 11.8799 13.3565H9.1504C9.11222 13.3565 9.07868 13.3815 9.06739 13.418L8.48829 15.2988C8.46577 15.3719 8.39778 15.4219 8.3213 15.4219H7.10548C6.98659 15.4219 6.90296 15.3052 6.94044 15.1924L9.30762 8.06446C9.3313 7.99321 9.39855 7.94435 9.47364 7.94435H11.669ZM9.4961 12.041C9.47878 12.0971 9.52043 12.1543 9.57911 12.1543H11.4512C11.5098 12.1543 11.5525 12.0971 11.5352 12.041L10.6113 9.05177H10.4199L9.4961 12.041Z",fill:"currentColor"},null,-1),C("path",{d:"M16.0576 7.94435C16.1539 7.94435 16.2324 8.02289 16.2324 8.11915V15.2481C16.2322 15.3441 16.1537 15.4219 16.0576 15.4219H15.0645C14.9683 15.4219 14.8899 15.3441 14.8897 15.2481V8.11915C14.8897 8.02289 14.9682 7.94435 15.0645 7.94435H16.0576Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0534 2.091C12.5082 2.091 12.8766 2.45946 12.8766 2.91425L12.874 3.90821H14.3076L14.3102 2.92499C14.3103 2.47035 14.6788 2.10186 15.1334 2.10175C15.5882 2.10175 15.9566 2.47028 15.9567 2.92499L15.9541 3.90821H17.0293C18.4439 3.90854 19.5908 5.05504 19.5908 6.46974V7.90821L21.0852 7.93105C21.54 7.93105 21.9085 8.29951 21.9085 8.7543C21.9084 9.20899 21.54 9.57754 21.0852 9.57754L19.6074 9.5547C19.6019 9.5547 19.5964 9.55383 19.5908 9.55372V11.0215L21.0852 11.0443C21.54 11.0443 21.9084 11.4129 21.9085 11.8676C21.9085 12.3224 21.54 12.6908 21.0852 12.6908L19.6074 12.668C19.6019 12.668 19.5964 12.6671 19.5908 12.667V14.1016L21.0852 14.1244C21.54 14.1244 21.9084 14.4929 21.9085 14.9477C21.9085 15.4024 21.54 15.7709 21.0852 15.7709L19.6074 15.7481C19.6019 15.7481 19.5964 15.7472 19.5908 15.7471V16.8975C19.5907 18.312 18.4438 19.4587 17.0293 19.459H15.9453L15.9875 21.0863C15.9875 21.5409 15.6189 21.9094 15.1643 21.9095C14.7095 21.9095 14.3411 21.541 14.341 21.0863L14.2988 19.459H12.8311L12.8733 21.0863C12.8732 21.541 12.5048 21.9095 12.05 21.9095C11.5955 21.9093 11.2269 21.5409 11.2268 21.0863L11.1846 19.459H9.75098L9.79319 21.0687C9.79319 21.5235 9.42474 21.8919 8.96995 21.8919C8.51536 21.8917 8.14671 21.5233 8.14671 21.0687L8.1045 19.459H6.75489C5.34008 19.459 4.19352 18.3122 4.19337 16.8975V15.7031L2.90033 15.7353C2.4456 15.7353 2.07709 15.3668 2.07709 14.9121C2.0771 14.4574 2.44561 14.0889 2.90033 14.0889L4.19337 14.0567V12.5899L2.91595 12.6221C2.46128 12.6221 2.09289 12.2535 2.09271 11.7988C2.09271 11.344 2.46116 10.9756 2.91595 10.9756L4.19337 10.9434V9.50978L2.91595 9.54198C2.46126 9.54198 2.09287 9.1734 2.09271 8.71874C2.09271 8.26395 2.46116 7.8955 2.91595 7.8955L4.19337 7.86329V6.46974C4.19337 5.05483 5.33999 3.90821 6.75489 3.90821H8.11427L8.11684 2.91425C8.11684 2.45946 8.48529 2.091 8.94008 2.091C9.39483 2.09105 9.76332 2.45949 9.76332 2.91425L9.76075 3.90821H11.2275L11.2301 2.91425C11.2301 2.45955 11.5987 2.09115 12.0534 2.091ZM6.66114 5.55958C6.19983 5.6065 5.83985 5.99605 5.83985 6.46974V16.8975L5.84473 16.9912C5.88868 17.4216 6.23075 17.7639 6.66114 17.8076L6.75489 17.8125H17.0293L17.1221 17.8076C17.5526 17.764 17.8955 17.4217 17.9395 16.9912L17.9434 16.8975V6.46974C17.9434 5.99595 17.5835 5.60637 17.1221 5.55958L17.0293 5.5547H6.75489L6.66114 5.55958Z",fill:"currentColor"},null,-1)])])}const L2e=St({name:"kimi-model",render:T2e}),N2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F2e(e,t){return v(),E("svg",N2e,[...t[0]||(t[0]=[C("path",{d:"M6 12C6 12.8283 5.32834 13.5 4.5 13.5C3.67166 13.5 3 12.8283 3 12C3 11.1717 3.67166 10.5 4.5 10.5C5.32834 10.5 6 11.1717 6 12Z",fill:"currentColor"},null,-1),C("path",{d:"M13.5 12C13.5 12.8283 12.8283 13.5 12 13.5C11.1717 13.5 10.5 12.8283 10.5 12C10.5 11.1717 11.1717 10.5 12 10.5C12.8283 10.5 13.5 11.1717 13.5 12Z",fill:"currentColor"},null,-1),C("path",{d:"M19.5002 13.5C20.3287 13.5 21 12.8287 21 12.0002C21 11.1718 20.3287 10.5 19.5002 10.5C18.6718 10.5 18 11.1718 18 12.0002C18 12.8287 18.6718 13.5 19.5002 13.5Z",fill:"currentColor"},null,-1)])])}const D2e=St({name:"kimi-more",render:F2e}),B2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2e(e,t){return v(),E("svg",B2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 12.0993C8.49691 12.0993 8.90016 12.5028 8.90039 12.9997V17.9997C8.90039 19.6013 7.60163 20.9001 6 20.9001C4.39837 20.9001 3.09961 19.6013 3.09961 17.9997C3.09984 16.3982 4.39852 15.0993 6 15.0993C6.38939 15.0993 6.76033 15.1778 7.09961 15.317V12.9997C7.09984 12.5028 7.50309 12.0993 8 12.0993ZM6 16.9001C5.39263 16.9001 4.90062 17.3923 4.90039 17.9997C4.90039 18.6072 5.39249 19.0993 6 19.0993C6.60751 19.0993 7.09961 18.6072 7.09961 17.9997C7.09938 17.3923 6.60737 16.9001 6 16.9001Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.627 3.35611C19.8025 3.12106 20.9001 4.02068 20.9004 5.21939V15.9997C20.9004 17.6013 19.6016 18.9001 18 18.9001C16.3984 18.9001 15.0996 17.6013 15.0996 15.9997C15.0998 14.3982 16.3985 13.0993 18 13.0993C18.3894 13.0993 18.7603 13.1778 19.0996 13.317V9.21939C19.0993 9.15657 19.0421 9.10946 18.9805 9.12173L12.6768 10.3825C12.1894 10.4799 11.7148 10.1637 11.6172 9.67642C11.52 9.18922 11.8361 8.71439 12.3232 8.61685L18.627 7.35611C18.7868 7.32415 18.9452 7.31502 19.0996 7.32291V5.21939C19.0993 5.15657 19.0421 5.10946 18.9805 5.12173L12.6768 6.38248C12.1894 6.47994 11.7148 6.16372 11.6172 5.67642C11.52 5.18922 11.8361 4.71439 12.3232 4.61685L18.627 3.35611ZM18 14.9001C17.3926 14.9001 16.9006 15.3923 16.9004 15.9997C16.9004 16.6072 17.3925 17.0993 18 17.0993C18.6075 17.0993 19.0996 16.6072 19.0996 15.9997C19.0994 15.3923 18.6074 14.9001 18 14.9001Z",fill:"currentColor"},null,-1),C("path",{d:"M7.32422 5.38931C7.61669 4.87032 8.38346 4.87015 8.67578 5.38931L8.73047 5.50845L8.89551 5.95376L8.97949 6.1481C9.19937 6.58817 9.57968 6.93145 10.0459 7.10415L10.4912 7.26919C11.127 7.50461 11.1666 8.36217 10.6104 8.67544L10.4912 8.73013L10.0459 8.89517C9.5799 9.06783 9.19939 9.41141 8.97949 9.85123L8.89551 10.0456L8.73047 10.4909C8.49495 11.1267 7.63737 11.1665 7.32422 10.61L7.26953 10.4909L7.10449 10.0456C6.93172 9.57931 6.58767 9.19898 6.14746 8.97916L5.9541 8.89517L5.50879 8.73013C4.83054 8.47903 4.83061 7.52037 5.50879 7.26919L5.9541 7.10415L6.14746 7.02017C6.58757 6.80032 6.93176 6.41995 7.10449 5.95376L7.26953 5.50845L7.32422 5.38931Z",fill:"currentColor"},null,-1)])])}const R2e=St({name:"kimi-music",render:$2e}),z2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O2e(e,t){return v(),E("svg",z2e,[...t[0]||(t[0]=[C("path",{d:"M17.9551 6.32648C17.955 5.82951 17.5517 5.42706 17.0547 5.42706H15.4844C14.9875 5.42717 14.5851 5.82958 14.585 6.32648V17.6732C14.585 18.1701 14.9874 18.5734 15.4844 18.5735H17.0547C17.5518 18.5735 17.9551 18.1702 17.9551 17.6732V6.32648ZM19.7549 17.6732C19.7549 19.1643 18.5459 20.3734 17.0547 20.3734H15.4844C13.9933 20.3732 12.7842 19.1643 12.7842 17.6732V6.32648C12.7843 4.83546 13.9934 3.62639 15.4844 3.62628H17.0547C18.5458 3.62628 19.7548 4.8354 19.7549 6.32648V17.6732Z",fill:"currentColor"},null,-1),C("path",{d:"M9.41571 6.32648C9.41561 5.82951 9.01231 5.42706 8.51532 5.42706H6.94501C6.44811 5.42717 6.0457 5.82958 6.04559 6.32648V17.6732C6.04559 18.1701 6.44804 18.5734 6.94501 18.5735H8.51532C9.01238 18.5735 9.41571 18.1702 9.41571 17.6732V6.32648ZM11.2155 17.6732C11.2155 19.1643 10.0065 20.3734 8.51532 20.3734H6.94501C5.45393 20.3732 4.24481 19.1643 4.24481 17.6732V6.32648C4.24492 4.83546 5.45399 3.62639 6.94501 3.62628H8.51532C10.0064 3.62628 11.2154 4.8354 11.2155 6.32648V17.6732Z",fill:"currentColor"},null,-1)])])}const P2e=St({name:"kimi-pause",render:O2e}),j2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2e(e,t){return v(),E("svg",j2e,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.0176 4.89998C17.7305 4.89998 17.4552 5.014 17.2522 5.217L6.35429 16.1149C5.957 16.5122 5.67517 17.01 5.53889 17.5551L5.23691 18.763L6.44486 18.4611C6.98994 18.3248 7.48773 18.0429 7.88502 17.6456L18.783 6.74773C18.8834 6.64728 18.9631 6.52797 19.0176 6.39658C19.072 6.26517 19.1 6.12441 19.1 5.98236C19.1 5.84031 19.072 5.69956 19.0176 5.56815C18.9631 5.43676 18.8834 5.31745 18.783 5.217C18.6825 5.11649 18.5631 5.03676 18.4318 4.98237C18.3005 4.92798 18.1597 4.89998 18.0176 4.89998ZM15.9794 3.94421C16.52 3.40366 17.2531 3.09998 18.0176 3.09998C18.3961 3.09998 18.7709 3.17452 19.1207 3.31938C19.4704 3.46424 19.7881 3.67656 20.0558 3.94421C20.3235 4.21192 20.5357 4.52969 20.6805 4.87932C20.8254 5.22895 20.9 5.60375 20.9 5.98236C20.9 6.36098 20.8254 6.73578 20.6805 7.08541C20.5357 7.43504 20.3235 7.75281 20.0558 8.02052L17.6385 10.4378L9.15781 18.9184C8.52984 19.5464 7.74301 19.9919 6.88142 20.2073L4.21828 20.8731C3.91158 20.9498 3.58714 20.8599 3.3636 20.6364C3.14006 20.4128 3.05019 20.0884 3.12686 19.7817L3.79264 17.1185C4.00803 16.257 4.45351 15.4701 5.0815 14.8421L15.9794 3.94421Z",fill:"currentColor"},null,-1)])])}const W2e=St({name:"kimi-pencil",render:H2e}),q2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U2e(e,t){return v(),E("svg",q2e,[...t[0]||(t[0]=[C("path",{d:"M7.76251 3.10547C8.25776 3.10552 8.74422 3.23849 9.17072 3.49023L19.533 9.60742C20.8536 10.3869 21.2922 12.0901 20.5174 13.4121C20.2785 13.8195 19.9398 14.1604 19.533 14.4004L9.16974 20.5156C7.84721 21.2958 6.14595 20.8511 5.36993 19.5273C5.1196 19.1003 4.98719 18.6142 4.98712 18.1191V5.88672C4.98716 4.3537 6.2273 3.10547 7.76251 3.10547ZM6.7879 18.1191C6.78797 18.2945 6.8343 18.4664 6.92267 18.6172C7.19638 19.0841 7.79336 19.2377 8.25568 18.9648L18.618 12.8496C18.7607 12.7654 18.8803 12.6458 18.9647 12.502C19.2393 12.0334 19.082 11.4311 18.618 11.1572L8.25568 5.04102C8.1061 4.95273 7.93562 4.9063 7.76251 4.90625C7.22703 4.90625 6.78794 5.34218 6.7879 5.88672V18.1191Z",fill:"currentColor"},null,-1)])])}const K2e=St({name:"kimi-play",render:U2e}),V2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z2e(e,t){return v(),E("svg",V2e,[...t[0]||(t[0]=[C("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),C("path",{d:"M12 2v10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const G2e=St({name:"kimi-power",render:Z2e}),Q2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y2e(e,t){return v(),E("svg",Q2e,[...t[0]||(t[0]=[C("path",{d:"M11.999 15.0049C12.6208 15.0049 13.1259 15.5091 13.126 16.1309C13.126 16.7528 12.6209 17.2578 11.999 17.2578C11.3773 17.2576 10.873 16.7526 10.873 16.1309C10.8732 15.5092 11.3774 15.0051 11.999 15.0049Z",fill:"currentColor"},null,-1),C("path",{d:"M10.1611 7.37109C10.9017 6.79576 11.8605 6.60385 12.7881 6.8457C13.808 7.10861 14.6385 7.93756 14.9014 8.95898C15.2694 10.3845 14.5793 11.8629 13.2598 12.4736C13.0803 12.557 12.75 12.9552 12.75 13.3525V13.502C12.75 13.9172 12.4142 14.2527 11.999 14.2529C11.5837 14.2529 11.248 13.9173 11.248 13.502V13.3525C11.248 12.313 11.9587 11.4215 12.6279 11.1113C13.1777 10.8567 13.6681 10.192 13.4473 9.33496C13.3195 8.84253 12.9038 8.42684 12.4121 8.2998C11.9292 8.17289 11.4573 8.26727 11.0811 8.55859C10.71 8.84626 10.4971 9.28012 10.4971 9.74805C10.4968 10.1632 10.1613 10.499 9.74609 10.499C9.33092 10.499 8.99536 10.1632 8.99512 9.74805C8.99512 8.81152 9.41918 7.94493 10.1611 7.37109Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 3.7998C7.47126 3.7998 3.7998 7.47126 3.7998 12C3.7998 16.5287 7.47126 20.2002 12 20.2002C16.5287 20.2002 20.2002 16.5287 20.2002 12C20.2002 7.47126 16.5287 3.7998 12 3.7998Z",fill:"currentColor"},null,-1)])])}const J2e=St({name:"kimi-question",render:Y2e}),X2e={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eye(e,t){return v(),E("svg",X2e,[...t[0]||(t[0]=[C("path",{d:"M12 2C13.1046 2 14 2.89543 14 4C14 4.78019 13.552 5.45353 12.9004 5.7832V7H16.5C18.1569 7 19.5 8.34315 19.5 10V17C19.5 18.6051 18.2394 19.9158 16.6543 19.9961L16.5 20H7.5L7.3457 19.9961C5.81166 19.9184 4.58163 18.6883 4.50391 17.1543L4.5 17V10C4.5 8.34315 5.84315 7 7.5 7H11.0996V5.7832C10.448 5.45353 10 4.78019 10 4C10 2.89543 10.8954 2 12 2ZM7.5 8.7998C6.83726 8.7998 6.2998 9.33726 6.2998 10V17C6.2998 17.6627 6.83726 18.2002 7.5 18.2002H16.5C17.1627 18.2002 17.7002 17.6627 17.7002 17V10C17.7002 9.33726 17.1627 8.7998 16.5 8.7998H7.5ZM3 10.7666C3.49706 10.7666 3.90039 11.1699 3.90039 11.667V15C3.90039 15.4971 3.49706 15.9004 3 15.9004C2.50294 15.9004 2.09961 15.4971 2.09961 15V11.667C2.09961 11.1699 2.50294 10.7666 3 10.7666ZM21 10.7666C21.4971 10.7666 21.9004 11.1699 21.9004 11.667V15C21.9004 15.4971 21.4971 15.9004 21 15.9004C20.5029 15.9004 20.0996 15.4971 20.0996 15V11.667C20.0996 11.1699 20.5029 10.7666 21 10.7666ZM9.5 11.0996C9.99706 11.0996 10.4004 11.5029 10.4004 12V14.5C10.4004 14.9971 9.99706 15.4004 9.5 15.4004C9.00294 15.4004 8.59961 14.9971 8.59961 14.5V12C8.59961 11.5029 9.00294 11.0996 9.5 11.0996ZM14.5 11.0996C14.9971 11.0996 15.4004 11.5029 15.4004 12V14.5C15.4004 14.9971 14.9971 15.4004 14.5 15.4004C14.0029 15.4004 13.5996 14.9971 13.5996 14.5V12C13.5996 11.5029 14.0029 11.0996 14.5 11.0996ZM12 3.5C11.7239 3.5 11.5 3.72386 11.5 4C11.5 4.27614 11.7239 4.5 12 4.5C12.2761 4.5 12.5 4.27614 12.5 4C12.5 3.72386 12.2761 3.5 12 3.5Z",fill:"currentColor"},null,-1)])])}const tye=St({name:"kimi-robot",render:eye}),nye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iye(e,t){return v(),E("svg",nye,[...t[0]||(t[0]=[C("path",{d:"M11.5 3C16.1944 3 20 6.80558 20 11.5C20 13.523 19.2933 15.381 18.1132 16.8404L21.1364 19.8636C21.4879 20.2151 21.4879 20.7849 21.1364 21.1364C20.7849 21.4879 20.2151 21.4879 19.8636 21.1364L16.8404 18.1132C15.381 19.2933 13.523 20 11.5 20C6.80558 20 3 16.1944 3 11.5C3 6.80558 6.80558 3 11.5 3ZM11.5 18.2C15.2003 18.2 18.2 15.2003 18.2 11.5C18.2 7.79969 15.2003 4.8 11.5 4.8C7.79969 4.8 4.8 7.79969 4.8 11.5C4.8 15.2003 7.79969 18.2 11.5 18.2Z",fill:"currentColor"},null,-1)])])}const oye=St({name:"kimi-search",render:iye}),sye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rye(e,t){return v(),E("svg",sye,[...t[0]||(t[0]=[C("path",{d:"M16.5364 10.1636C16.8879 10.5151 16.8879 11.0849 16.5364 11.4364C16.1849 11.7879 15.6151 11.7879 15.2636 11.4364L12.9 9.07281V17.1C12.9 17.597 12.4971 18 12 18C11.503 18 11.1 17.597 11.1 17.1V9.07281L8.73641 11.4364C8.38494 11.7879 7.81509 11.7879 7.46362 11.4364C7.11214 11.0849 7.11214 10.5151 7.46362 10.1636L11.3636 6.2636C11.7151 5.91211 12.2849 5.91211 12.6364 6.2636L16.5364 10.1636Z",fill:"currentColor"},null,-1)])])}const lye=St({name:"kimi-send",render:rye}),aye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uye(e,t){return v(),E("svg",aye,[...t[0]||(t[0]=[C("path",{d:"M16.0404 12C16.0404 9.76874 14.2313 7.9596 12.0001 7.9596C9.76883 7.9596 7.95972 9.76874 7.95972 12C7.95972 14.2313 9.76883 16.0404 12.0001 16.0404C14.2313 16.0404 16.0404 14.2313 16.0404 12ZM14.2222 12C14.2222 13.2271 13.2271 14.2222 12 14.2222C10.7729 14.2222 9.77783 13.2271 9.77783 12C9.77783 10.7729 10.7729 9.77778 12 9.77778C13.2271 9.77778 14.2222 10.7729 14.2222 12Z",fill:"currentColor"},null,-1),C("path",{d:"M9.91145 21.8009C9.29001 21.6797 8.76914 21.2612 8.50632 20.6922L8.07372 19.7556C7.88838 19.3544 7.43553 19.1048 6.95371 19.1549L5.89572 19.2647C5.2733 19.3293 4.64823 19.114 4.22298 18.6611C3.74343 18.1504 3.32454 17.6037 2.97033 17.0181C2.61571 16.4318 2.32839 15.8106 2.10407 15.1566C1.89769 14.5549 2.02148 13.8954 2.4089 13.3902L3.0376 12.5704C3.30043 12.2277 3.30042 11.7722 3.03758 11.4295L2.40413 10.6035C2.01474 10.0958 1.891 9.43198 2.10208 8.82826C2.55037 7.54612 3.27017 6.35997 4.22 5.34259C4.64518 4.8872 5.27275 4.67067 5.89701 4.73544L6.95383 4.84514C7.43561 4.89515 7.88844 4.6456 8.07377 4.24441L8.50266 3.31593C8.76494 2.74818 9.28448 2.33019 9.90423 2.20761C11.2916 1.9332 12.7148 1.93127 14.0885 2.19913C14.7099 2.32029 15.2308 2.73881 15.4937 3.3078L15.9263 4.24441C16.1116 4.6456 16.5644 4.89514 17.0462 4.84514L18.1043 4.73532C18.7267 4.67072 19.3518 4.88603 19.777 5.33886C20.2566 5.84953 20.6755 6.3963 21.0297 6.98193C21.3843 7.56823 21.6716 8.18942 21.8959 8.84339C22.1023 9.44509 21.9785 10.1046 21.5911 10.6098L20.9624 11.4295C20.6996 11.7722 20.6996 12.2278 20.9624 12.5705L21.5959 13.3964C21.9853 13.9042 22.109 14.568 21.8979 15.1717C21.4497 16.4538 20.7299 17.6399 19.7801 18.6573C19.3549 19.1128 18.7273 19.3294 18.103 19.2646L17.0462 19.1549C16.5645 19.1049 16.1116 19.3544 15.9263 19.7556L15.4974 20.6841C15.2351 21.2518 14.7156 21.6698 14.0958 21.7924C12.7083 22.0668 11.2852 22.0687 9.91145 21.8009ZM13.7432 20.0088C13.7844 20.0006 13.8259 19.9673 13.847 19.9216L14.2758 18.9931C14.7915 17.8768 15.9886 17.2171 17.2341 17.3464L18.2909 17.4561C18.3649 17.4638 18.4272 17.4423 18.4512 17.4166C19.2296 16.5828 19.8171 15.6146 20.1817 14.5716C20.1845 14.5636 20.1796 14.5373 20.1532 14.5029L19.5198 13.677C18.7564 12.6815 18.7564 11.3185 19.5198 10.323L20.1485 9.5033C20.1746 9.46927 20.1795 9.4429 20.1762 9.43327C19.9932 8.89965 19.7603 8.39623 19.4741 7.92293C19.1873 7.4489 18.846 7.00333 18.4517 6.58351C18.4272 6.55739 18.3656 6.53616 18.2921 6.54378L17.234 6.65361C15.9886 6.78287 14.7915 6.12317 14.2758 5.00689L13.8432 4.07027C13.822 4.02448 13.7811 3.9916 13.7406 3.98371C12.5983 3.76097 11.4132 3.76258 10.2571 3.99124C10.2158 3.99941 10.1744 4.03271 10.1533 4.07842L9.72441 5.00689C9.20875 6.12317 8.01164 6.7829 6.76619 6.6536L5.70942 6.54391C5.63535 6.53623 5.573 6.55774 5.54905 6.5834C4.77067 7.41713 4.18312 8.38534 3.81845 9.42835C3.81564 9.43637 3.82054 9.46265 3.84693 9.49706L4.48038 10.323C5.24381 11.3185 5.24383 12.6815 4.48041 13.6769L3.85171 14.4967C3.82561 14.5307 3.82066 14.5571 3.82396 14.5667C4.00701 15.1004 4.23986 15.6038 4.52613 16.0771C4.81284 16.5511 5.15421 16.9967 5.54845 17.4165C5.57298 17.4426 5.63461 17.4638 5.70811 17.4562L6.76608 17.3464C8.01157 17.2171 9.20871 17.8768 9.72438 18.9932L10.157 19.9297C10.1781 19.9755 10.2191 20.0084 10.2595 20.0163C11.4018 20.239 12.587 20.2374 13.7432 20.0088Z",fill:"currentColor"},null,-1)])])}const cye=St({name:"kimi-setting",render:uye}),dye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fye(e,t){return v(),E("svg",dye,[...t[0]||(t[0]=[C("path",{d:"M17 2C19.2091 2 21 3.79086 21 6V15.7646C21 17.2361 20.192 18.5884 18.8965 19.2861L13.8965 21.9785C12.7126 22.616 11.2874 22.616 10.1035 21.9785L5.10352 19.2861C3.80802 18.5884 3 17.2361 3 15.7646V6C3 3.79086 4.79086 2 7 2H17ZM7 3.7998C5.78498 3.7998 4.79981 4.78497 4.7998 6V15.7646C4.7998 16.574 5.24443 17.3184 5.95703 17.7021L10.957 20.3936C11.6082 20.7442 12.3918 20.7442 13.043 20.3936L18.043 17.7021C18.7556 17.3184 19.2002 16.574 19.2002 15.7646V6C19.2002 4.78497 18.215 3.7998 17 3.7998H7Z",fill:"currentColor"},null,-1),C("path",{d:"M10.1611 7.37109C10.9017 6.79576 11.8605 6.60385 12.7881 6.8457C13.808 7.10861 14.6385 7.93756 14.9014 8.95898C15.2694 10.3845 14.5793 11.8629 13.2598 12.4736C13.0803 12.557 12.75 12.9552 12.75 13.3525V13.502C12.75 13.9172 12.4142 14.2527 11.999 14.2529C11.5837 14.2529 11.248 13.9173 11.248 13.502V13.3525C11.248 12.313 11.9587 11.4215 12.6279 11.1113C13.1777 10.8567 13.6681 10.192 13.4473 9.33496C13.3195 8.84253 12.9038 8.42684 12.4121 8.2998C11.9292 8.17289 11.4573 8.26727 11.0811 8.55859C10.71 8.84626 10.4971 9.28012 10.4971 9.74805C10.4968 10.1632 10.1613 10.499 9.74609 10.499C9.33092 10.499 8.99536 10.1632 8.99512 9.74805C8.99512 8.81152 9.41918 7.94493 10.1611 7.37109Z",fill:"currentColor"},null,-1),C("path",{d:"M11.999 15.0049C12.6208 15.0049 13.1259 15.5091 13.126 16.1309C13.126 16.7528 12.6209 17.2578 11.999 17.2578C11.3773 17.2576 10.873 16.7526 10.873 16.1309C10.8732 15.5092 11.3774 15.0051 11.999 15.0049Z",fill:"currentColor"},null,-1)])])}const hye=St({name:"kimi-shield-question",render:fye}),pye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gye(e,t){return v(),E("svg",pye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.90005 12C2.90005 11.503 3.303 11.1 3.80005 11.1H12.2939L9.38588 8.19197C9.03441 7.8405 9.03441 7.27065 9.38588 6.91918C9.73735 6.56771 10.3072 6.56771 10.6587 6.91918L15.1031 11.3636C15.2719 11.5324 15.3667 11.7613 15.3667 12C15.3667 12.2387 15.2719 12.4676 15.1031 12.6364L10.6587 17.0809C10.3072 17.4323 9.73735 17.4323 9.38588 17.0809C9.03441 16.7294 9.03441 16.1595 9.38588 15.8081L12.2939 12.9H3.80005C3.303 12.9 2.90005 12.4971 2.90005 12ZM13.5874 20C13.5874 19.503 13.9904 19.1 14.4874 19.1H18.043C18.2758 19.1 18.4991 19.0075 18.6637 18.8429C18.8283 18.6783 18.9208 18.455 18.9208 18.2222V5.7778C18.9208 5.545 18.8283 5.32174 18.6637 5.15712C18.499 4.9925 18.2758 4.90002 18.043 4.90002H14.4874C13.9904 4.90002 13.5874 4.49708 13.5874 4.00002C13.5874 3.50297 13.9904 3.10003 14.4874 3.10003H18.043C18.7532 3.10003 19.4343 3.38215 19.9365 3.88433C20.4386 4.38651 20.7208 5.06761 20.7208 5.7778V18.2222C20.7208 18.9324 20.4386 19.6135 19.9365 20.1157C19.4343 20.6179 18.7532 20.9 18.043 20.9H14.4874C13.9904 20.9 13.5874 20.4971 13.5874 20Z",fill:"currentColor"},null,-1)])])}const mye=St({name:"kimi-sign-in",render:gye}),vye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yye(e,t){return v(),E("svg",vye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.6364 11.3636C20.9879 11.7151 20.9879 12.2849 20.6364 12.6364L16.1919 17.0808C15.8405 17.4323 15.2706 17.4323 14.9192 17.0808C14.5677 16.7293 14.5677 16.1595 14.9192 15.808L17.8272 12.9H9.33333C8.83627 12.9 8.43333 12.497 8.43333 12C8.43333 11.5029 8.83627 11.1 9.33333 11.1H17.8272L14.9192 8.19193C14.5677 7.84046 14.5677 7.27061 14.9192 6.91914C15.2706 6.56766 15.8405 6.56766 16.1919 6.91914L20.6364 11.3636ZM10.2333 3.99998C10.2333 4.49703 9.83038 4.89998 9.33333 4.89998H5.77777C5.54497 4.89998 5.3217 4.99246 5.15709 5.15707C4.99247 5.32169 4.89999 5.54495 4.89999 5.77775V18.2222C4.89999 18.455 4.99247 18.6783 5.15709 18.8429C5.32171 19.0075 5.54497 19.1 5.77777 19.1H9.33333C9.83038 19.1 10.2333 19.5029 10.2333 20C10.2333 20.497 9.83038 20.9 9.33333 20.9H5.77777C5.06758 20.9 4.38648 20.6179 3.8843 20.1157C3.38212 19.6135 3.09999 18.9324 3.09999 18.2222V5.77775C3.09999 5.06756 3.38212 4.38646 3.8843 3.88428C4.38648 3.3821 5.06758 3.09998 5.77777 3.09998H9.33333C9.83038 3.09998 10.2333 3.50292 10.2333 3.99998Z",fill:"currentColor"},null,-1)])])}const kye=St({name:"kimi-sign-out",render:yye}),bye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aye(e,t){return v(),E("svg",bye,[...t[0]||(t[0]=[$c('',9)])])}const Cye=St({name:"kimi-sliders",render:Aye}),wye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xye(e,t){return v(),E("svg",wye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.78027 8.90405C7.5 9.45411 7.5 10.1742 7.5 11.6144V12.3856C7.5 13.8258 7.5 14.5459 7.78027 15.096C8.02681 15.5798 8.42019 15.9732 8.90405 16.2197C9.45411 16.5 10.1742 16.5 11.6144 16.5H12.3856C13.8258 16.5 14.5459 16.5 15.096 16.2197C15.5798 15.9732 15.9732 15.5798 16.2197 15.096C16.5 14.5459 16.5 13.8258 16.5 12.3856V11.6144C16.5 10.1742 16.5 9.45411 16.2197 8.90405C15.9732 8.42019 15.5798 8.02681 15.096 7.78027C14.5459 7.5 13.8258 7.5 12.3856 7.5H11.6144C10.1742 7.5 9.45411 7.5 8.90405 7.78027C8.42019 8.02681 8.02681 8.42019 7.78027 8.90405Z",fill:"currentColor"},null,-1)])])}const Sye=St({name:"kimi-stop",render:xye}),_ye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mye(e,t){return v(),E("svg",_ye,[...t[0]||(t[0]=[C("path",{d:"M7.01562 3.41459C7.4446 3.16449 7.9954 3.30924 8.24609 3.73784C8.49645 4.167 8.35189 4.71868 7.92285 4.96928C5.51497 6.37506 3.90054 8.98498 3.90039 11.9703C3.90076 16.4435 7.52672 20.0699 12 20.0699C16.4733 20.0699 20.0992 16.4435 20.0996 11.9703C20.0996 11.2291 20 10.5116 19.8145 9.83159C19.6838 9.35222 19.967 8.85702 20.4463 8.72612C20.9256 8.59541 21.4207 8.87778 21.5518 9.35698C21.7792 10.1901 21.9004 11.0674 21.9004 11.9703C21.9 17.4376 17.4674 21.8697 12 21.8697C6.53261 21.8697 2.09998 17.4376 2.09961 11.9703C2.09976 8.31904 4.07782 5.12972 7.01562 3.41459ZM8.39258 8.24077C8.75015 7.89591 9.3199 7.90591 9.66504 8.26323C10.01 8.62076 9.99985 9.19051 9.64258 9.53569C9.00203 10.1541 8.60558 11.02 8.60547 11.979C8.60584 13.8536 10.1253 15.3736 12 15.3736C13.8746 15.3735 15.3942 13.8536 15.3945 11.979C15.3945 11.6847 15.3577 11.3989 15.2881 11.1285C15.1646 10.6474 15.4536 10.1568 15.9346 10.0328C16.4158 9.9089 16.9071 10.1991 17.0312 10.6802C17.1383 11.096 17.1943 11.5321 17.1943 11.979C17.194 14.8477 14.8688 17.1733 12 17.1734C9.1312 17.1734 6.80506 14.8478 6.80469 11.979C6.8048 10.5117 7.41519 9.18431 8.39258 8.24077ZM11.5459 1.12651C11.8216 0.965605 12.1631 0.963306 12.4414 1.11967L19.1953 4.91752C19.4859 5.08108 19.662 5.39277 19.6533 5.72612C19.6443 6.05972 19.4515 6.36154 19.1523 6.50932L12.9004 9.5933V12.2583C12.9004 12.7554 12.4971 13.1587 12 13.1587C11.5029 13.1587 11.0996 12.7554 11.0996 12.2583V1.90385C11.0999 1.58444 11.2702 1.2878 11.5459 1.12651ZM12.9004 7.58549L16.8252 5.64897L12.9004 3.44194V7.58549Z",fill:"currentColor"},null,-1)])])}const Iye=St({name:"kimi-target",render:Mye}),Eye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tye(e,t){return v(),E("svg",Eye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9893 6.60743C20.5897 6.60757 21.8877 7.8926 21.8877 9.47736C21.8877 10.7416 21.0607 11.8129 19.9141 12.1955V14.257C19.914 15.8428 18.6152 17.1288 17.0137 17.1289H12.8438V20.1381C12.8437 20.6301 12.4412 21.0293 11.9443 21.0296C11.4473 21.0296 11.044 20.6302 11.0439 20.1381V16.4356C11.0441 15.8343 11.5363 15.3461 12.1436 15.3458H17.0137C17.6211 15.3457 18.1133 14.8585 18.1133 14.257V12.2129C16.9408 11.8451 16.0909 10.7598 16.0908 9.47736C16.0908 7.89251 17.3887 6.60743 18.9893 6.60743ZM18.9893 8.38953C18.3828 8.38953 17.8906 8.87684 17.8906 9.47736C17.8907 10.0778 18.3828 10.5642 18.9893 10.5642C19.5956 10.5641 20.0869 10.0777 20.0869 9.47736C20.0869 8.87693 19.5956 8.38967 18.9893 8.38953Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.89844 6.60743C6.49899 6.60747 7.79688 7.89254 7.79688 9.47736C7.79684 10.7388 6.97371 11.8078 5.83105 12.1926V14.4021C5.83105 15.0036 6.32315 15.4918 6.93066 15.4918H8.37109C8.86789 15.492 9.27038 15.8905 9.27051 16.3824C9.27051 16.8744 8.86797 17.2737 8.37109 17.2739H6.93066C5.32904 17.2739 4.03027 15.9879 4.03027 14.4021V12.2158C2.85382 11.8504 2.00004 10.7627 2 9.47736C2 7.89251 3.29784 6.60743 4.89844 6.60743ZM4.89844 8.38953C4.29196 8.38953 3.7998 8.87684 3.7998 9.47736C3.79985 10.0778 4.29198 10.5642 4.89844 10.5642C5.50485 10.5642 5.99605 10.0778 5.99609 9.47736C5.99609 8.87687 5.50488 8.38958 4.89844 8.38953Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9434 2.9707C13.5439 2.97075 14.8418 4.25581 14.8418 5.84063C14.8418 7.11413 14.0035 8.1923 12.8438 8.56745V13.0135C12.8436 13.5056 12.4403 13.9041 11.9434 13.9041C11.4466 13.9039 11.0431 13.5055 11.043 13.0135V8.56745C9.8836 8.19209 9.04496 7.11387 9.04492 5.84063C9.04492 4.25592 10.343 2.97093 11.9434 2.9707ZM11.9434 4.75281C11.3371 4.75303 10.8447 5.24026 10.8447 5.84063C10.8448 6.44097 11.3371 6.92726 11.9434 6.92749C12.5498 6.92745 13.041 6.44108 13.041 5.84063C13.041 5.24014 12.5498 4.75285 11.9434 4.75281Z",fill:"currentColor"},null,-1)])])}const Lye=St({name:"kimi-task",render:Tye}),Nye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fye(e,t){return v(),E("svg",Nye,[...t[0]||(t[0]=[C("path",{d:"M16.5293 15.0596C16.9496 15.1021 17.2772 15.4572 17.2773 15.8887C17.2773 16.3202 16.9497 16.6753 16.5293 16.7178L16.4443 16.7217H12C11.5399 16.7216 11.167 16.3488 11.167 15.8887C11.1671 15.4286 11.54 15.0558 12 15.0557H16.4443L16.5293 15.0596Z",fill:"currentColor"},null,-1),C("path",{d:"M6.96582 7.52246C7.27077 7.21751 7.75375 7.1983 8.08105 7.46484L8.14453 7.52246L10.8232 10.2002C11.5102 10.8872 11.5102 12.0014 10.8232 12.6885L8.14453 15.3672L8.08105 15.4248C7.75377 15.6913 7.27075 15.6721 6.96582 15.3672C6.66114 15.0621 6.64234 14.5791 6.90918 14.252L6.96582 14.1885L9.64453 11.5098C9.68057 11.4736 9.68062 11.415 9.64453 11.3789L6.96582 8.7002C6.64116 8.37488 6.6411 7.84774 6.96582 7.52246Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 3.09961C19.1539 3.09966 20.9004 4.84612 20.9004 7V17C20.9004 19.1539 19.1539 20.9003 17 20.9004H7C4.84609 20.9004 3.09961 19.1539 3.09961 17V7C3.09961 4.84609 4.84609 3.09961 7 3.09961H17ZM7 4.90039C5.8402 4.90039 4.90039 5.8402 4.90039 7V17C4.90039 18.1598 5.8402 19.0996 7 19.0996H17C18.1598 19.0996 19.0996 18.1598 19.0996 17V7C19.0996 5.84024 18.1598 4.90044 17 4.90039H7Z",fill:"currentColor"},null,-1)])])}const Dye=St({name:"kimi-terminal",render:Fye}),Bye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $ye(e,t){return v(),E("svg",Bye,[...t[0]||(t[0]=[C("path",{d:"M16.9971 3.90597C15.9799 2.99725 14.7342 2.38312 13.394 2.12966C12.0538 1.8762 10.6699 1.99301 9.39111 2.46751C8.11236 2.94202 6.98721 3.75626 6.13676 4.82261C5.2863 5.88896 4.74274 7.16703 4.56457 8.5193C4.40455 9.70501 4.53253 10.9118 4.93767 12.0376C5.34281 13.1634 6.01318 14.175 6.89207 14.9868C7.43557 15.4634 7.87413 16.0477 8.17997 16.7027C8.48581 17.3577 8.65224 18.0691 8.66873 18.7918V18.926C8.66962 19.7412 8.99387 20.5229 9.57035 21.0993C10.1468 21.6758 10.9285 22.0001 11.7437 22.001H12.2604C13.0757 22.0001 13.8573 21.6758 14.4338 21.0993C15.0103 20.5229 15.3345 19.7412 15.3354 18.926V18.4685C15.3479 17.8297 15.4982 17.2011 15.7761 16.6258C16.0539 16.0505 16.4528 15.542 16.9454 15.1351C17.7442 14.4355 18.3853 13.5741 18.826 12.608C19.2668 11.642 19.4973 10.5932 19.5022 9.53136C19.5071 8.46948 19.2863 7.41869 18.8544 6.4486C18.4225 5.4785 17.7894 4.61125 16.9971 3.9043V3.90597ZM12.2604 20.3343H11.7437C11.3704 20.3339 11.0124 20.1853 10.7484 19.9213C10.4844 19.6573 10.3358 19.2993 10.3354 18.926C10.3354 18.926 10.3296 18.7093 10.3287 18.6676H13.6687V18.926C13.6683 19.2993 13.5198 19.6573 13.2558 19.9213C12.9917 20.1853 12.6338 20.3339 12.2604 20.3343ZM15.8437 13.8835C14.8949 14.7064 14.2097 15.7908 13.8737 17.001H12.8354V11.0143C13.3212 10.8426 13.742 10.5249 14.0403 10.1049C14.3387 9.68482 14.4999 9.18285 14.5021 8.66763C14.5021 8.44662 14.4143 8.23466 14.258 8.07838C14.1017 7.9221 13.8897 7.8343 13.6687 7.8343C13.4477 7.8343 13.2358 7.9221 13.0795 8.07838C12.9232 8.23466 12.8354 8.44662 12.8354 8.66763C12.8354 8.88865 12.7476 9.10061 12.5913 9.25689C12.435 9.41317 12.2231 9.50097 12.0021 9.50097C11.7811 9.50097 11.5691 9.41317 11.4128 9.25689C11.2565 9.10061 11.1687 8.88865 11.1687 8.66763C11.1687 8.44662 11.0809 8.23466 10.9247 8.07838C10.7684 7.9221 10.5564 7.8343 10.3354 7.8343C10.1144 7.8343 9.90242 7.9221 9.74614 8.07838C9.58986 8.23466 9.50207 8.44662 9.50207 8.66763C9.5042 9.18285 9.66547 9.68482 9.96381 10.1049C10.2621 10.5249 10.683 10.8426 11.1687 11.0143V17.001H10.0671C9.69123 15.7586 8.98633 14.6411 8.02707 13.7668C7.21286 13.0081 6.63267 12.0324 6.35496 10.9547C6.07725 9.87703 6.1136 8.7424 6.45974 7.68471C6.80588 6.62702 7.44735 5.69042 8.30846 4.98543C9.16956 4.28045 10.2144 3.83649 11.3196 3.70597C11.5487 3.68039 11.779 3.66759 12.0096 3.66763C13.4409 3.66338 14.8226 4.19149 15.8862 5.1493C16.5026 5.69896 16.9952 6.37337 17.3312 7.12782C17.6672 7.88227 17.839 8.69952 17.8352 9.5254C17.8314 10.3513 17.6522 11.1669 17.3092 11.9183C16.9663 12.6696 16.4677 13.3395 15.8462 13.8835H15.8437Z",fill:"currentColor"},null,-1)])])}const Rye=St({name:"kimi-thinking",render:$ye}),zye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oye(e,t){return v(),E("svg",zye,[...t[0]||(t[0]=[$c('',6)])])}const Pye=St({name:"kimi-todo",render:Oye}),jye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hye(e,t){return v(),E("svg",jye,[...t[0]||(t[0]=[C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.09752 2.19507C8.5421 1.97278 9.08271 2.15298 9.305 2.59756L10.0562 4.10005H13.5C13.9971 4.10005 14.4 4.50299 14.4 5.00005C14.4 5.49711 13.9971 5.90005 13.5 5.90005H12.3106C12.2556 6.2319 12.1667 6.64073 12.0226 7.0987C11.7254 8.04355 11.191 9.20402 10.2334 10.3239C11.4166 11.196 12.5606 11.7524 13.4512 12.0987C13.978 12.3036 14.4136 12.434 14.7124 12.5122L14.7348 12.5181L15.695 10.5976C15.8475 10.2927 16.1591 10.1 16.5 10.1C16.8409 10.1 17.1525 10.2927 17.305 10.5976L20.7969 17.5814L20.8044 17.5959L20.8137 17.615L21.805 19.5976C22.0273 20.0421 21.8471 20.5827 21.4025 20.805C20.9579 21.0273 20.4173 20.8471 20.195 20.4025L19.4438 18.9H13.5562L12.805 20.4025C12.5827 20.8471 12.0421 21.0273 11.5975 20.805C11.1529 20.5827 10.9727 20.0421 11.195 19.5976L12.1863 17.615C12.1917 17.6036 12.1973 17.5924 12.2031 17.5814L13.9146 14.1583C13.6034 14.0667 13.2256 13.9423 12.7988 13.7764C11.7294 13.3605 10.3442 12.6802 8.92538 11.5924C7.79753 12.5167 6.69473 13.0764 5.83285 13.4112C5.33899 13.603 4.92286 13.7216 4.62401 13.7931C4.47449 13.8288 4.35399 13.8529 4.26741 13.8684C4.2241 13.8762 4.18924 13.8818 4.16343 13.8858L4.13156 13.8904L4.12084 13.8919L4.11682 13.8924L4.11514 13.8927C4.11514 13.8927 4.11368 13.8928 4.00001 13L4.11368 13.8928C3.62061 13.9556 3.17 13.6068 3.10722 13.1137C3.0446 12.6219 3.39148 12.1723 3.88256 12.1077L3.94947 12.0967C4.00428 12.0869 4.09114 12.0698 4.20543 12.0424C4.43422 11.9877 4.77156 11.8924 5.18106 11.7334C5.84103 11.477 6.68484 11.0564 7.56458 10.3753C7.15054 9.93496 6.78945 9.48388 6.50421 9.10102C6.26672 8.78224 6.07517 8.50172 5.94227 8.29973C5.87571 8.19858 5.82359 8.11671 5.78748 8.05909C5.76942 8.03027 5.75535 8.00749 5.74545 7.99135L5.73377 7.9722L5.73032 7.96651L5.72864 7.96371C5.71133 7.9349 5.69582 7.9055 5.68208 7.87566C5.49265 7.46416 5.6393 6.96717 6.03659 6.72853C6.09037 6.69623 6.14617 6.6702 6.20315 6.65023C6.59739 6.51205 7.04758 6.66421 7.27129 7.03623L7.27266 7.0385L7.28001 7.05054C7.28695 7.06186 7.29793 7.07964 7.31274 7.10328C7.34239 7.15059 7.38731 7.2212 7.44595 7.31032C7.56343 7.48886 7.73484 7.73997 7.94765 8.02562C8.21085 8.37889 8.52772 8.77187 8.8756 9.14201C9.64226 8.24147 10.0681 7.3133 10.3056 6.55854C10.381 6.3186 10.4372 6.09683 10.4791 5.90005H9.51951C9.50696 5.90031 9.49442 5.90031 9.48191 5.90005H4.00001C3.50296 5.90005 3.10001 5.49711 3.10001 5.00005C3.10001 4.50299 3.50296 4.10005 4.00001 4.10005H8.04378L7.69503 3.40254C7.67314 3.35877 7.65516 3.31407 7.64094 3.26883C7.51078 2.8546 7.69671 2.39547 8.09752 2.19507ZM16.5 13.0125L18.5438 17.1H14.4562L16.5 13.0125Z",fill:"currentColor"},null,-1),C("path",{d:"M15.1 4.00007C15.1 3.50301 15.5029 3.10007 16 3.10007H18C19.6016 3.10007 20.9 4.39844 20.9 6.00007V8.00007C20.9 8.49712 20.497 8.90007 20 8.90007C19.5029 8.90007 19.1 8.49712 19.1 8.00007V6.00007C19.1 5.39255 18.6075 4.90007 18 4.90007H16C15.5029 4.90007 15.1 4.49712 15.1 4.00007Z",fill:"currentColor"},null,-1),C("path",{d:"M3.99998 15.1001C4.49703 15.1001 4.89998 15.503 4.89998 16.0001V18.0001C4.89998 18.6076 5.39246 19.1001 5.99998 19.1001H7.99998C8.49703 19.1001 8.89998 19.503 8.89998 20.0001C8.89998 20.4971 8.49703 20.9001 7.99998 20.9001H5.99998C4.39835 20.9001 3.09998 19.6017 3.09998 18.0001V16.0001C3.09998 15.503 3.50292 15.1001 3.99998 15.1001Z",fill:"currentColor"},null,-1)])])}const Wye=St({name:"kimi-translate",render:Hye}),qye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uye(e,t){return v(),E("svg",qye,[...t[0]||(t[0]=[C("path",{d:"M8.10001 3C8.10001 2.50294 8.50295 2.1 9.00001 2.1H15C15.4971 2.1 15.9 2.50294 15.9 3C15.9 3.49706 15.4971 3.9 15 3.9H9.00001C8.50295 3.9 8.10001 3.49706 8.10001 3Z",fill:"currentColor"},null,-1),C("path",{d:"M10 15.9C9.50295 15.9 9.10001 15.4971 9.10001 15L9.10001 10C9.10001 9.50294 9.50295 9.1 10 9.1C10.4971 9.1 10.9 9.50294 10.9 10L10.9 15C10.9 15.4971 10.4971 15.9 10 15.9Z",fill:"currentColor"},null,-1),C("path",{d:"M13.1 15C13.1 15.4971 13.5029 15.9 14 15.9C14.4971 15.9 14.9 15.4971 14.9 15L14.9 10C14.9 9.50294 14.4971 9.1 14 9.1C13.5029 9.1 13.1 9.50294 13.1 10V15Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.10001 6C2.10001 5.50294 2.50295 5.1 3.00001 5.1H4.99152C4.99785 5.09993 5.00417 5.09993 5.01048 5.1H18.9895C18.9958 5.09993 19.0021 5.09993 19.0085 5.1H21C21.4971 5.1 21.9 5.50294 21.9 6C21.9 6.49706 21.4971 6.9 21 6.9H19.8281L18.8448 18.6993C18.7412 19.9432 17.7013 20.9 16.4531 20.9H7.54686C6.29865 20.9 5.25881 19.9432 5.15515 18.6993L4.17188 6.9H3.00001C2.50295 6.9 2.10001 6.49706 2.10001 6ZM5.97811 6.9L18.0219 6.9L17.0511 18.5498C17.0251 18.8608 16.7652 19.1 16.4531 19.1H7.54686C7.23481 19.1 6.97485 18.8608 6.94893 18.5498L5.97811 6.9Z",fill:"currentColor"},null,-1)])])}const Kye=St({name:"kimi-trash",render:Uye}),Vye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zye(e,t){return v(),E("svg",Vye,[...t[0]||(t[0]=[C("path",{d:"M7.36336 3.3634C7.71483 3.01192 8.28533 3.01192 8.6368 3.3634C8.98817 3.71488 8.98824 4.2854 8.6368 4.63683L6.17391 7.09972H15.0001C18.2585 7.09977 20.9005 9.74166 20.9005 13.0001C20.9004 16.2585 18.2585 18.9005 15.0001 18.9005H7.00008C6.50307 18.9005 6.09976 18.4971 6.09969 18.0001C6.09969 17.5031 6.50302 17.0997 7.00008 17.0997H15.0001C17.2644 17.0997 19.0996 15.2644 19.0997 13.0001C19.0997 10.7358 17.2644 8.90055 15.0001 8.90051H6.17391L8.6368 11.3634L8.69832 11.4318C8.98668 11.7853 8.96632 12.3073 8.6368 12.6368C8.30728 12.9663 7.78521 12.9867 7.43172 12.6984L7.36336 12.6368L3.36336 8.63683C3.33098 8.60445 3.30286 8.56908 3.27645 8.53332C3.25597 8.50559 3.23607 8.47741 3.21883 8.44738C3.20492 8.42311 3.19221 8.39837 3.18074 8.37316C3.1764 8.36365 3.17109 8.35453 3.16707 8.34484C3.1627 8.33427 3.1593 8.32331 3.15535 8.31261C3.12946 8.24274 3.11237 8.16872 3.10457 8.09191C3.09258 7.97426 3.10262 7.85446 3.1368 7.74035C3.14281 7.72035 3.15094 7.70114 3.15828 7.68176C3.16165 7.67283 3.16341 7.66325 3.16707 7.65441C3.17216 7.64216 3.17806 7.63025 3.18367 7.61828C3.19055 7.60356 3.19744 7.58874 3.20516 7.57433C3.24709 7.49624 3.3012 7.42556 3.36336 7.3634L7.36336 3.3634Z",fill:"currentColor"},null,-1)])])}const Gye=St({name:"kimi-undo",render:Zye}),Qye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yye(e,t){return v(),E("svg",Qye,[...t[0]||(t[0]=[C("path",{d:"M11.9997 12.8779C16.0197 12.878 19.4393 15.3848 20.7048 18.8828C21.0812 19.9234 20.2782 20.8962 19.2038 21.0137L18.9861 21.0264H5.0134L4.79562 21.0137C3.7213 20.8961 2.91743 19.9233 3.29367 18.8828C4.55905 15.3847 7.9797 12.8781 11.9997 12.8779ZM11.9997 14.6777C8.84467 14.6779 6.17462 16.5794 5.09152 19.2256H18.9079C17.8248 16.5793 15.1549 14.6778 11.9997 14.6777ZM12.2312 3.00586C14.6088 3.1264 16.4997 5.09239 16.4997 7.5L16.4939 7.73145C16.3734 10.1091 14.4073 11.9999 11.9997 12C9.59225 11.9998 7.62604 10.109 7.50558 7.73145L7.49973 7.5C7.49973 5.01485 9.51462 3.00021 11.9997 3L12.2312 3.00586ZM11.9997 4.7998C10.5087 4.80001 9.29953 6.00896 9.29953 7.5C9.29953 8.99104 10.5087 10.2 11.9997 10.2002C13.4908 10.2001 14.6999 8.99112 14.6999 7.5C14.6999 6.00888 13.4908 4.79989 11.9997 4.7998Z",fill:"currentColor"},null,-1)])])}const Jye=St({name:"kimi-user",render:Yye}),Xye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e9e(e,t){return v(),E("svg",Xye,[...t[0]||(t[0]=[C("path",{d:"M11.9996 7C11.5026 7 11.0996 7.36985 11.0996 7.82609V14.1739C11.0996 14.6301 11.5026 15 11.9996 15C12.4967 15 12.8996 14.6301 12.8996 14.1739V7.82609C12.8996 7.36985 12.4967 7 11.9996 7Z",fill:"currentColor"},null,-1),C("path",{d:"M12.8996 17.1006C12.8996 17.5974 12.4968 18.001 11.9992 18.001C11.5024 18.001 11.0996 17.5974 11.0996 17.1006C11.0996 16.6038 11.5024 16.2002 11.9992 16.2002C12.4968 16.2002 12.8996 16.6038 12.8996 17.1006Z",fill:"currentColor"},null,-1),C("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5108 3.5501C13.3946 1.61676 10.6041 1.61676 9.48786 3.5501L1.69363 17.0501C0.577423 18.9834 1.97269 21.4001 4.20511 21.4001H19.7936C22.026 21.4001 23.4212 18.9834 22.305 17.0501L14.5108 3.5501ZM11.0467 4.4501C11.4701 3.71676 12.5286 3.71676 12.952 4.4501L20.7462 17.9501C21.1696 18.6834 20.6403 19.6001 19.7936 19.6001H4.20511C3.35833 19.6001 2.82909 18.6834 3.25248 17.9501L11.0467 4.4501Z",fill:"currentColor"},null,-1)])])}const t9e=St({name:"kimi-warning",render:e9e}),n9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i9e(e,t){return v(),E("svg",n9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 6h8m4 0h4M6 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0m-2 0h2m4 0h10m-5 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 18h11m4 0h1"},null,-1)])])}const o9e=St({name:"tabler-adjustments-horizontal",render:i9e}),s9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function r9e(e,t){return v(),E("svg",s9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 6l-6 6l6 6"},null,-1)])])}const l9e=St({name:"tabler-chevron-left",render:r9e}),a9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function u9e(e,t){return v(),E("svg",a9e,[...t[0]||(t[0]=[C("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[C("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"}),C("path",{d:"m9 12l2 2l4-4"})],-1)])])}const c9e=St({name:"tabler-circle-check",render:u9e}),d9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function f9e(e,t){return v(),E("svg",d9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.56 3.69a9 9 0 0 0-2.92 1.95M3.69 8.56A9 9 0 0 0 3 12m.69 3.44a9 9 0 0 0 1.95 2.92m2.92 1.95A9 9 0 0 0 12 21m3.44-.69a9 9 0 0 0 2.92-1.95m1.95-2.92A9 9 0 0 0 21 12m-.69-3.44a9 9 0 0 0-1.95-2.92m-2.92-1.95A9 9 0 0 0 12 3"},null,-1)])])}const h9e=St({name:"tabler-circle-dashed",render:f9e}),p9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function g9e(e,t){return v(),E("svg",p9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 15h10m-8-4v4m6-4v4"},null,-1)])])}const m9e=St({name:"tabler-device-desktop",render:g9e}),v9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function y9e(e,t){return v(),E("svg",v9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 3h6m-5 6h4m-4-6v6L6 20a.7.7 0 0 0 .5 1h11a.7.7 0 0 0 .5-1L14 9V3"},null,-1)])])}const k9e=St({name:"tabler-flask",render:y9e}),b9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function A9e(e,t){return v(),E("svg",b9e,[...t[0]||(t[0]=[C("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[C("path",{d:"M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm11-2v16"}),C("path",{d:"m9 10l2 2l-2 2"})],-1)])])}const C9e=St({name:"tabler-layout-sidebar-right-collapse",render:A9e}),w9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function x9e(e,t){return v(),E("svg",w9e,[...t[0]||(t[0]=[C("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3L18 10a3 3 0 0 0-6-6l-6.5 6.5a4.5 4.5 0 0 0 9 9L21 13"},null,-1)])])}const S9e=St({name:"tabler-paperclip",render:x9e}),_9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function M9e(e,t){return v(),E("svg",_9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M4 18v-3.7a1.5 1.5 0 0 0-1.5-1.5H2v-1.6h.5A1.5 1.5 0 0 0 4 9.7V6a3 3 0 0 1 3-3h1v2H7a1 1 0 0 0-1 1v4.1A2 2 0 0 1 4.626 12A2 2 0 0 1 6 13.9V18a1 1 0 0 0 1 1h1v2H7a3 3 0 0 1-3-3m16-3.7V18a3 3 0 0 1-3 3h-1v-2h1a1 1 0 0 0 1-1v-4.1a2 2 0 0 1 1.374-1.9A2 2 0 0 1 18 10.1V6a1 1 0 0 0-1-1h-1V3h1a3 3 0 0 1 3 3v3.7a1.5 1.5 0 0 0 1.5 1.5h.5v1.6h-.5a1.5 1.5 0 0 0-1.5 1.5"},null,-1)])])}const I9e=St({name:"ri-braces-line",render:M9e}),E9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function T9e(e,t){return v(),E("svg",E9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M9 3V1H7v2H3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4V1h-2v2zm-5 7h16v9H4zm0-5h3v1h2V5h6v1h2V5h3v3H4zm5.879 5.964L12 13.086l2.121-2.122l1.415 1.415l-2.122 2.121l2.121 2.121l-1.414 1.414L12 15.915l-2.121 2.12l-1.415-1.414l2.122-2.12l-2.122-2.122z"},null,-1)])])}const L9e=St({name:"ri-calendar-close-line",render:T9e}),N9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function F9e(e,t){return v(),E("svg",N9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M7 3V1h2v2h6V1h2v2h4a1 1 0 0 1 1 1v5h-2V5h-3v2h-2V5H9v2H7V5H4v14h6v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm10 9a4 4 0 1 0 0 8a4 4 0 0 0 0-8m-6 4a6 6 0 1 1 12 0a6 6 0 0 1-12 0m5-3v3.414l2.293 2.293l1.414-1.414L18 15.586V13z"},null,-1)])])}const D9e=St({name:"ri-calendar-schedule-line",render:F9e}),B9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $9e(e,t){return v(),E("svg",B9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M9 1v2h6V1h2v2h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1zm11 10H4v8h16zM8 14v2H6v-2zm10 0v2h-8v-2zM7 5H4v4h16V5h-3v2h-2V5H9v2H7z"},null,-1)])])}const R9e=St({name:"ri-calendar-todo-line",render:$9e}),z9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function O9e(e,t){return v(),E("svg",z9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m23 12l-7.071 7.071l-1.414-1.414L20.172 12l-5.657-5.657l1.414-1.414zM3.828 12l5.657 5.657l-1.414 1.414L1 12l7.071-7.071l1.414 1.414z"},null,-1)])])}const P9e=St({name:"ri-code-line",render:O9e}),j9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function H9e(e,t){return v(),E("svg",j9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m-4-7h8a4 4 0 0 1-8 0m0-2a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m8 0a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3"},null,-1)])])}const W9e=St({name:"ri-emotion-line",render:H9e}),q9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function U9e(e,t){return v(),E("svg",q9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm11-3v8h-2V6.413l-7.793 7.794l-1.414-1.414L17.585 5H13V3z"},null,-1)])])}const K9e=St({name:"ri-external-link-line",render:U9e}),V9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Z9e(e,t){return v(),E("svg",V9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12 3c5.392 0 9.878 3.88 10.819 9c-.94 5.12-5.427 9-10.819 9s-9.878-3.88-10.818-9C2.122 6.88 6.608 3 12 3m0 16a9.005 9.005 0 0 0 8.778-7a9.005 9.005 0 0 0-17.555 0A9.005 9.005 0 0 0 12 19m0-2.5a4.5 4.5 0 1 1 0-9a4.5 4.5 0 0 1 0 9m0-2a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5"},null,-1)])])}const G9e=St({name:"ri-eye-line",render:Z9e}),Q9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Y9e(e,t){return v(),E("svg",Q9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M17.883 19.297A10.95 10.95 0 0 1 12 21c-5.392 0-9.878-3.88-10.818-9A11 11 0 0 1 4.52 5.935L1.394 2.808l1.414-1.414l19.799 19.798l-1.414 1.415zM5.936 7.35A8.97 8.97 0 0 0 3.223 12a9.005 9.005 0 0 0 13.201 5.838l-2.028-2.028A4.5 4.5 0 0 1 8.19 9.604zm6.978 6.978l-3.242-3.241a2.5 2.5 0 0 0 3.241 3.241m7.893 2.265l-1.431-1.431A8.9 8.9 0 0 0 20.778 12A9.005 9.005 0 0 0 9.552 5.338L7.974 3.76C9.221 3.27 10.58 3 12 3c5.392 0 9.878 3.88 10.819 9a10.95 10.95 0 0 1-2.012 4.593m-9.084-9.084Q11.86 7.5 12 7.5a4.5 4.5 0 0 1 4.492 4.778z"},null,-1)])])}const J9e=St({name:"ri-eye-off-line",render:Y9e}),X9e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function e4e(e,t){return v(),E("svg",X9e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM11 11V8h2v3h3v2h-3v3h-2v-3H8v-2z"},null,-1)])])}const t4e=St({name:"ri-file-add-line",render:e4e}),n4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i4e(e,t){return v(),E("svg",n4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M13 9h8L11 24v-9H4l9-15zm-2 2V7.22L7.532 13H13v4.394L17.263 11z"},null,-1)])])}const o4e=St({name:"ri-flashlight-line",render:i4e}),s4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function r4e(e,t){return v(),E("svg",s4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M14 4.438A2.437 2.437 0 0 0 16.438 2h1.125A2.437 2.437 0 0 0 20 4.438v1.125A2.437 2.437 0 0 0 17.563 8h-1.125A2.437 2.437 0 0 0 14 5.563zM1 11a6 6 0 0 0 6-6h2a6 6 0 0 0 6 6v2a6 6 0 0 0-6 6H7a6 6 0 0 0-6-6zm3.876 1A8.04 8.04 0 0 1 8 15.124A8.04 8.04 0 0 1 11.124 12A8.04 8.04 0 0 1 8 8.876A8.04 8.04 0 0 1 4.876 12m12.374 2A3.25 3.25 0 0 1 14 17.25v1.5A3.25 3.25 0 0 1 17.25 22h1.5A3.25 3.25 0 0 1 22 18.75v-1.5A3.25 3.25 0 0 1 18.75 14z"},null,-1)])])}const l4e=St({name:"ri-sparkling-line",render:r4e}),a4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function u4e(e,t){return v(),E("svg",a4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])}const c4e=St({name:"ri-folder-fill",render:u4e}),d4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function f4e(e,t){return v(),E("svg",d4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M6 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2M3 6a3 3 0 1 1 4 2.83V9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-.17a3.001 3.001 0 1 1 2 0V9a4 4 0 0 1-4 4h-2v2.17a3.001 3.001 0 1 1-2 0V13H9a4 4 0 0 1-4-4v-.17A3 3 0 0 1 3 6m15-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-6 12a1 1 0 1 0 0 2a1 1 0 0 0 0-2"},null,-1)])])}const h4e=St({name:"ri-git-fork-line",render:f4e}),p4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function g4e(e,t){return v(),E("svg",p4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M15 5h2a2 2 0 0 1 2 2v8.17a3.001 3.001 0 1 1-2 0V7h-2v3l-4.5-4L15 2zM5 8.83a3.001 3.001 0 1 1 2 0v6.34a3.001 3.001 0 1 1-2 0zM6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 12a1 1 0 1 0 0-2a1 1 0 0 0 0 2m12 0a1 1 0 1 0 0-2a1 1 0 0 0 0 2"},null,-1)])])}const m4e=St({name:"ri-git-pull-request-line",render:g4e}),v4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function y4e(e,t){return v(),E("svg",v4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M2 18h7v2H2zm0-7h9v2H2zm0-7h20v2H2zm18.674 9.025l1.156-.391l1 1.732l-.916.805a4 4 0 0 1 0 1.658l.916.805l-1 1.732l-1.156-.391a4 4 0 0 1-1.435.83L19 21h-2l-.24-1.196a4 4 0 0 1-1.434-.83l-1.156.392l-1-1.732l.916-.805a4 4 0 0 1 0-1.658l-.916-.805l1-1.732l1.156.391c.41-.37.898-.655 1.435-.83L17 11h2l.24 1.196a4 4 0 0 1 1.434.83M18 18a2 2 0 1 0 0-4a2 2 0 0 0 0 4"},null,-1)])])}const k4e=St({name:"ri-list-settings-line",render:y4e}),b4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function A4e(e,t){return v(),E("svg",b4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M10 2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H8v2h5V9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1H8v6h5v-1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1H7a1 1 0 0 1-1-1V8H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm9 16h-4v2h4zm0-8h-4v2h4zM9 4H5v2h4z"},null,-1)])])}const C4e=St({name:"ri-node-tree",render:A4e}),w4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function x4e(e,t){return v(),E("svg",w4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m13.827 1.69l8.486 8.485l-1.415 1.414l-.707-.707l-4.242 4.243l-.707 3.536l-1.415 1.414l-4.242-4.243l-4.95 4.95l-1.414-1.414l4.95-4.95l-4.243-4.243l1.414-1.414l3.536-.707l4.242-4.243l-.707-.707zm.707 3.536l-4.67 4.67l-2.822.565l6.5 6.5l.564-2.822l4.671-4.67z"},null,-1)])])}const S4e=St({name:"ri-pushpin-line",render:x4e}),_4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function M4e(e,t){return v(),E("svg",_4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M20 4v12h3l-4 5l-4-5h3V4zm-8 14v2H3v-2zm2-7v2H3v-2zm0-7v2H3V4z"},null,-1)])])}const I4e=St({name:"ri-sort-desc",render:M4e}),E4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function T4e(e,t){return v(),E("svg",E4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m12 18.26l-7.053 3.948l1.575-7.928L.588 8.792l8.027-.952L12 .5l3.385 7.34l8.027.952l-5.934 5.488l1.575 7.928z"},null,-1)])])}const L4e=St({name:"ri-star-fill",render:T4e}),N4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function F4e(e,t){return v(),E("svg",N4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m12 18.26l-7.053 3.948l1.575-7.928L.588 8.792l8.027-.952L12 .5l3.385 7.34l8.027.952l-5.934 5.488l1.575 7.928zm0-2.292l4.247 2.377l-.948-4.773l3.573-3.305l-4.833-.573l-2.038-4.419l-2.039 4.42l-4.833.572l3.573 3.305l-.948 4.773z"},null,-1)])])}const D4e=St({name:"ri-star-line",render:F4e}),B4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $4e(e,t){return v(),E("svg",B4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"M5.33 3.272a3.5 3.5 0 0 1 4.254 4.962l10.709 10.71l-1.414 1.414l-10.71-10.71a3.502 3.502 0 0 1-4.962-4.255L5.444 7.63a1.5 1.5 0 0 0 2.121-2.121zm10.367 1.883l3.182-1.768l1.414 1.415l-1.768 3.182l-1.768.353l-2.12 2.121l-1.415-1.414l2.121-2.121zm-6.718 8.132l1.415 1.414l-5.304 5.303a1 1 0 0 1-1.492-1.327l.078-.087z"},null,-1)])])}const R4e=St({name:"ri-tools-line",render:$4e}),z4e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function O4e(e,t){return v(),E("svg",z4e,[...t[0]||(t[0]=[C("path",{fill:"currentColor",d:"m20.97 17.172l-1.414 1.414l-3.535-3.535l-.073.074l-.707 3.536l-1.415 1.414l-4.242-4.243l-4.95 4.95l-1.414-1.414l4.95-4.95l-4.243-4.243L5.34 8.761l3.536-.707l.073-.074l-3.536-3.536L6.828 3.03zM10.365 9.394l-.502.502l-2.822.565l6.5 6.5l.564-2.822l.502-.502zm8.411.074l-1.34 1.34l1.414 1.415l1.34-1.34l.707.707l1.415-1.415l-8.486-8.485l-1.414 1.414l.707.707l-1.34 1.34l1.414 1.415l1.34-1.34z"},null,-1)])])}const P4e=St({name:"ri-unpin-line",render:O4e}),j4e=` + + +`,H4e=` + + + +`,W4e=` + + + +`,q4e=` + + +`,U4e=` + + +`,K4e=` + + +`,V4e=` + + +`,gR=` + + +`,Z4e=` + + +`,G4e=` + + +`,Q4e=` + + +`,Y4e=` + + + +`,J4e=` + + + +`,X4e=` + + +`,e3e=` + + + +`,t3e=` + + +`,mR=` + + + +`,n3e=` + + +`,i3e=` + + +`,o3e=` + + +`,s3e=` + + +`,w8=` + + + + +`,r3e=` + + + + +`,l3e=` + + +`,vR=` + + + + +`,a3e=` + + + +`,u3e=` + + + + + +`,c3e=` + + +`,d3e=` + + +`,f3e=` + + +`,h3e=` + + +`,p3e=` + + +`,g3e=` + + +`,m3e=` + + + +`,v3e=` + + + +`,y3e=` + + +`,k3e=` + + + + + + + + + + + +`,b3e=` + + + + +`,A3e=` + + + + +`,C3e=` + + + + + + + + + + + + +`,w3e=` + + +`,x3e=` + + +`,S3e=` + + + + +`,_3e=` + + +`,M3e=` + + +`,I3e=` + + + + +`,E3e=` + + + + +`,T3e=` + + + + +`,L3e=` + + + +`,N3e=` + + +`,F3e=` + + +`,D3e=` + + + +`,B3e=` + + + + +`,$3e=` + + +`,R3e=` + + +`,z3e=` + + +`,O3e=` + + + +`,P3e=` + + + + +`,j3e=` + + +`,H3e=` + + +`,W3e='',q3e=` + + +`,U3e=` + + +`,K3e=` + + + + +`,V3e=` + + + + +`,Z3e=` + + +`,G3e=` + + + + + + + +`,Q3e=` + + + + +`,Y3e=` + + + + + +`,J3e=` + + +`,X3e=` + + +`,eke=` + + + + +`,tke='',nke='',ike='',oke='',ske='',rke='',lke='',ake='',uke='',cke='',dke='',fke='',hke='',pke='',yR='',gke='',mke='',vke='',yke='',kR='',kke='',bke='',Ake='',Cke='',wke='',xke='',Ske='',_ke='',Mke='',Ike='',Eke='',Tke={sm:14,md:16,lg:20};function Et(e,t){return{component:e,svg:t}}const bR={plus:Et(sme,j4e),"chat-new":Et(ame,H4e),"calendar-close":Et(L9e,cke),"calendar-schedule":Et(D9e,dke),"calendar-todo":Et(R9e,fke),close:Et(qme,X4e),check:Et(_me,gR),"circle-check":Et(zme,Y4e),"state-open":Et(h9e,oke),"state-done":Et(c9e,ike),archive:Et(dme,W4e),search:Et(oye,R3e),copy:Et(Xme,mR),link:Et(m2e,w3e),"external-link":Et(K9e,yR),download:Et(sve,i3e),undo:Et(Gye,J3e),send:Et(lye,z3e),image:Et(Gve,m3e),settings:Et(cye,O3e),sliders:Et(Cye,W3e),"light-mode":Et(h2e,C3e),"dark-mode":Et(nve,n3e),"follow-system":Et(Lve,c3e),"log-in":Et(mye,j3e),"log-out":Et(kye,H3e),hand:Et(Wve,p3e),"full-access":Et(Dve,d3e),"shield-question":Et(hye,P3e),"chevron-down":Et(Eme,Z4e),"chevron-right":Et(Nme,G4e),"chevron-left":Et(l9e,nke),"chevron-up":Et(Bme,Q4e),"arrow-up":Et(wme,V4e),"arrow-down":Et(pme,q4e),"arrow-right":Et(bme,K4e),"arrow-left":Et(vme,U4e),minus:Et(S2e,_3e),microscope:Et(I2e,M3e),flask:Et(k9e,rke),"panel-collapse":Et(l2e,b3e),"panel-collapse-right":Et(C9e,lke),"panel-expand":Et(c2e,A3e),expand:Et(dve,s3e),collapse:Et(Vme,e3e),list:Et(k2e,x3e),"list-settings":Et(k4e,Cke),"tree-view":Et(C4e,wke),sort:Et(I4e,Ske),grip:Et(Pve,h3e),"session-admin":Et(o9e,tke),folder:Et(Cve,vR),"folder-closed":Et(kve,l3e),"folder-plus":Et(Ive,u3e),"folder-solid":Et(c4e,kke),file:Et(V_,w8),"file-text":Et(mve,r3e),"file-edit":Et(ave,o3e),"file-plus":Et(t4e,vke),"file-off":Et(V_,w8),attachment:Et(S9e,ake),"image-off":Et(Jve,v3e),eye:Et(G9e,gke),"eye-off":Et(J9e,mke),code:Et(P9e,hke),terminal:Et(Dye,V3e),"device-desktop":Et(m9e,ske),pencil:Et(W2e,N3e),tool:Et(R4e,Ike),glob:Et(I9e,uke),globe:Et(Rve,f3e),translate:Et(Wye,Q3e),"check-list":Et(Pye,G3e),bolt:Et(o4e,yke),sparkling:Et(l4e,kR),keyboard:Et(o2e,k3e),trash:Et(Kye,Y3e),"git-fork":Et(h4e,bke),"git-pull-request":Et(m4e,Ake),message:Et(Qme,t3e),mail:Et(C2e,S3e),user:Et(Jye,X3e),info:Et(t2e,y3e),"help-circle":Et(J2e,B3e),"alert-triangle":Et(t9e,eke),clock:Et(jme,J4e),robot:Et(tye,$3e),sparkles:Et(Lye,K3e),"gen-title":Et(Sve,a3e),histogram:Et(Kve,g3e),music:Et(R2e,T3e),emoji:Et(W9e,pke),target:Et(Iye,U3e),pause:Et(P2e,L3e),play:Et(K2e,F3e),power:Et(G2e,D3e),pin:Et(S4e,xke),stop:Et(Sye,q3e),star:Et(L4e,_ke),"star-outline":Et(D4e,Mke),unpin:Et(P4e,Eke),"dots-horizontal":Et(D2e,E3e),model:Et(L2e,I3e),thinking:Et(Rye,Z3e)};function Lke(e){return bR[e]}function Nke(e,t){return e.replace(/]*>/,n=>n.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^${r}`}function $5e(e,t,n){return(n.xhtmlOut?`
          +`:`
          +`)+`
          +
            +`}function R5e(){return`
          +
          +`}function z5e(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`
        1. `}function O5e(){return`
        2. +`}function P5e(e,t,n,i,o){let s=o.rules.footnote_anchor_name(e,t,n,i,o);return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),` ↩︎`}function j5e(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=B5e,e.renderer.rules.footnote_block_open=$5e,e.renderer.rules.footnote_block_close=R5e,e.renderer.rules.footnote_open=z5e,e.renderer.rules.footnote_close=O5e,e.renderer.rules.footnote_anchor=P5e,e.renderer.rules.footnote_caption=D5e,e.renderer.rules.footnote_anchor_name=F5e;function i(l,a,u,c){const d=l.bMarks[a]+l.tShift[a],h=l.eMarks[a];if(d+4>h||l.src.charCodeAt(d)!==91||l.src.charCodeAt(d+1)!==94)return!1;let p;for(p=d+2;p=h||l.src.charCodeAt(++p)!==58)return!1;if(c)return!0;p++,l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.refs||(l.env.footnotes.refs={});const g=l.src.slice(d+2,p-2);l.env.footnotes.refs[`:${g}`]=-1;const m=new l.Token("footnote_reference_open","",1);m.meta={label:g},m.level=l.level++,l.tokens.push(m);const k=l.bMarks[a],w=l.tShift[a],y=l.sCount[a],b=l.parentType,A=p,T=l.sCount[a]+p-(l.bMarks[a]+l.tShift[a]);let S=T;for(;p=u||l.src.charCodeAt(c)!==94||l.src.charCodeAt(c+1)!==91)return!1;const d=c+2,h=t(l,c+1);if(h<0)return!1;if(!a){l.env.footnotes||(l.env.footnotes={}),l.env.footnotes.list||(l.env.footnotes.list=[]);const p=l.env.footnotes.list.length,g=[];l.md.inline.parse(l.src.slice(d,h),l.md,l.env,g);const m=l.push("footnote_ref","",0);m.meta={id:p},l.env.footnotes.list[p]={content:l.src.slice(d,h),tokens:g}}return l.pos=h+1,l.posMax=u,!0}function s(l,a){const u=l.posMax,c=l.pos;if(c+3>u||!l.env.footnotes||!l.env.footnotes.refs||l.src.charCodeAt(c)!==91||l.src.charCodeAt(c+1)!==94)return!1;let d;for(d=c+2;d=u)return!1;d++;const h=l.src.slice(c+2,d-1);if(typeof l.env.footnotes.refs[`:${h}`]>"u")return!1;if(!a){l.env.footnotes.list||(l.env.footnotes.list=[]);let p;l.env.footnotes.refs[`:${h}`]<0?(p=l.env.footnotes.list.length,l.env.footnotes.list[p]={label:h,count:0},l.env.footnotes.refs[`:${h}`]=p):p=l.env.footnotes.refs[`:${h}`];const g=l.env.footnotes.list[p].count;l.env.footnotes.list[p].count++;const m=l.push("footnote_ref","",0);m.meta={id:p,subId:g,label:h}}return l.pos=d,l.posMax=u,!0}function r(l){let a,u,c,d=!1;const h={};if(!l.env.footnotes||(l.tokens=l.tokens.filter(function(g){return g.type==="footnote_reference_open"?(d=!0,u=[],c=g.meta.label,!1):g.type==="footnote_reference_close"?(d=!1,h[":"+c]=u,!1):(d&&u.push(g),!d)}),!l.env.footnotes.list))return;const p=l.env.footnotes.list;l.tokens.push(new l.Token("footnote_block_open","",1));for(let g=0,m=p.length;g0?p[g].count:1;for(let b=0;b?@[\]^_`{|}~-])/g;function U5e(e,t){const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==94||t||i+2>=n)return!1;e.pos=i+1;let o=!1;for(;e.pos{t.exports=function(m,k){k=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},k),m.core.ruler.after("inline","github-task-lists",function(w){for(var y=w.tokens,b=0,A=2;A=0;y--)if(m[y].level===w)return y;return-1}function o(m,k){return d(m[k])&&h(m[k-1])&&p(m[k-2])&&g(m[k])}function s(m,k,w,y){var b=w.idPrefix+k;m.children[0].content=m.children[0].content.slice(3),m.children.unshift(l(b,y)),m.children.push(a(y)),m.children.unshift(r(m,b,w,y)),w.divWrap&&(m.children.unshift(u(w,y)),m.children.push(c(y)))}function r(m,k,w,y){var b=new y("checkbox_input","input",0);return b.attrs=[["type","checkbox"],["id",k]],/^\[[xX]\][ \u00A0]/.test(m.content)===!0&&b.attrs.push(["checked","true"]),w.disabled===!0&&b.attrs.push(["disabled","true"]),b}function l(m,k){var w=new k("label_open","label",1);return w.attrs=[["for",m]],w}function a(m){return new m("label_close","label",-1)}function u(m,k){var w=new k("checkbox_open","div",0);return w.attrs=[["class",m.divClass]],w}function c(m){return new m("checkbox_close","div",-1)}function d(m){return m.type==="inline"}function h(m){return m.type==="paragraph_open"}function p(m){return m.type==="list_item_open"}function g(m){return/^\[[xX \u00A0]\][ \u00A0]/.test(m.content)}})});const Z5e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function G5e(e){return e>=55296&&e<=57343||e>1114111?65533:Z5e.get(e)??e}function Q5e(e){const t=atob(e),n=t.length&-2,i=new Uint16Array(n/2);for(let o=0,s=0;o=bo.ZERO&&e<=bo.NINE}function J5e(e){return e>=bo.UPPER_A&&e<=bo.UPPER_F||e>=bo.LOWER_A&&e<=bo.LOWER_F}function X5e(e){return e>=bo.UPPER_A&&e<=bo.UPPER_Z||e>=bo.LOWER_A&&e<=bo.LOWER_Z||S8(e)}function e6e(e){return e===bo.EQUALS||X5e(e)}var Is;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Is||(Is={}));var lc;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(lc||(lc={}));var t6e=class{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=Is.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=lc.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=Is.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Is.EntityStart:return e.charCodeAt(t)===bo.NUM?(this.state=Is.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Is.NamedEntity,this.stateNamedEntity(e,t));case Is.NumericStart:return this.stateNumericStart(e,t);case Is.NumericDecimal:return this.stateNumericDecimal(e,t);case Is.NumericHex:return this.stateNumericHex(e,t);case Is.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|X_)===bo.LOWER_X?(this.state=Is.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Is.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t>14;for(;t>7;if(this.runConsumed===0){const l=i&hr.JUMP_TABLE;if(e.charCodeAt(t)!==l)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const l=this.runConsumed-1,a=n[this.treeIndex+1+(l>>1)],u=l%2===0?a&255:a>>8&255;if(e.charCodeAt(t)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(r>>1),i=n[this.treeIndex],o=(i&hr.VALUE_LENGTH)>>14}if(t>=e.length)break;const s=e.charCodeAt(t);if(s===bo.SEMI&&o!==0&&(i&hr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.treeIndex=i6e(n,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===lc.Attribute&&(o===0||e6e(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],o=(i&hr.VALUE_LENGTH)>>14,o!==0){if(s===bo.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==lc.Strict&&(i&hr.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&hr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(t===1?i[e]&~(hr.VALUE_LENGTH|hr.FLAG13):i[e+1],n),t===3&&this.emitCodePoint(i[e+2],n),n}end(){switch(this.state){case Is.NamedEntity:return this.result!==0&&(this.decodeMode!==lc.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Is.NumericDecimal:return this.emitNumericEntity(0,2);case Is.NumericHex:return this.emitNumericEntity(0,3);case Is.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Is.EntityStart:return 0}}};function n6e(e){let t="";const n=new t6e(e,i=>t+=String.fromCodePoint(i));return function(o,s){let r=0,l=0;for(;(l=o.indexOf("&",l))>=0;){t+=o.slice(r,l),n.startEntity(s);const u=n.write(o,l+1);if(u<0){r=l+n.end();break}r=l+u,l=u===0?r+1:r}const a=t+o.slice(r);return t="",a}}function i6e(e,t,n,i){const o=(t&hr.BRANCH_LENGTH)>>7,s=t&hr.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}const r=o+1>>1;let l=0,a=o-1;for(;l<=a;){const u=l+a>>>1,c=e[n+(u>>1)]>>(u&1)*8&255;if(ci)a=u-1;else return e[n+r+u]}return-1}const o6e=n6e(Y5e);function r7(e,t=lc.Legacy){return o6e(e,t)}var s6e=TR(V5e());const eM={};function r6e(e){let t=eM[e];if(t)return t;t=eM[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),s+=6;continue}}if((l&248)===240&&s+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}b9.defaultChars=";/?:@&=+$,#";b9.componentChars="";var _8=b9;const tM={};function l6e(e){let t=tM[e];if(t)return t;t=tM[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const i=l6e(t);let o="";for(let s=0,r=e.length;s=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1=56320&&a<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}A9.defaultChars=";/?:@&=+$,-_.!~*'()#";A9.componentChars="-_.!~*'()";var LR=A9;function l7(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function K2(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const a6e=/^([a-z0-9.+-]+:)/i,u6e=/:[0-9]*$/,c6e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d6e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),f6e=["'"].concat(d6e),nM=["%","/","?",";","#"].concat(f6e),iM=["/","?","#"],h6e=255,oM=/^[+a-z0-9A-Z_-]{0,63}$/,p6e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sM={javascript:!0,"javascript:":!0},rM={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g6e(e,t){if(e&&e instanceof K2)return e;const n=new K2;return n.parse(e,t),n}K2.prototype.parse=function(e,t){let n,i,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const u=c6e.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=a6e.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&sM[r])&&(s=s.substr(2),this.slashes=!0)),!sM[r]&&(o||r&&!rM[r])){let u=-1;for(let g=0;g127?y+="x":y+=w[b];if(!y.match(oM)){const b=g.slice(0,m),A=g.slice(m+1),T=w.match(p6e);T&&(b.push(T[1]),A.unshift(T[2])),A.length&&(s=A.join(".")+s),this.hostname=b.join(".");break}}}}this.hostname.length>h6e&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const a=s.indexOf("?");return a!==-1&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),rM[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};K2.prototype.parseHost=function(e){let t=u6e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var a7=g6e,NR=L5e({decode:()=>_8,encode:()=>LR,format:()=>l7,parse:()=>a7}),m6e=Object.defineProperty,FR=e=>{let t={};for(var n in e)m6e(t,n,{get:e[n],enumerable:!0});return t},hs=class{type;tag;attrs;map;nesting;level;children;content;markup;info;meta;block;hidden;constructor(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},v6e=FR({arrayReplaceAt:()=>x6e,assign:()=>C6e,countLines:()=>To,escapeHtml:()=>F6e,escapeRE:()=>B6e,fromCodePoint:()=>N0,has:()=>A6e,isMdAsciiPunct:()=>G2,isPunctChar:()=>Z2,isPunctCode:()=>M8,isSpace:()=>w6e,isString:()=>k6e,isValidEntityCode:()=>w9,isWhiteSpace:()=>L0,lib:()=>$6e,mdurl:()=>NR,normalizeReference:()=>C9,ucmicro:()=>V2,unescapeAll:()=>F0,unescapeMd:()=>I6e});const V2={Any:/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc:/[\0-\x1F\x7F-\x9F]/,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,S:/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z:/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/};function y6e(e){return Object.prototype.toString.call(e)}function k6e(e){return y6e(e)==="[object String]"}const b6e=Object.prototype.hasOwnProperty;function A6e(e,t){return b6e.call(e,t)}function C6e(e,...t){return t.forEach(n=>{if(n){if(typeof n!="object")throw new TypeError(`${String(n)}must be object`);Object.keys(n).forEach(i=>{e[i]=n[i]})}}),e}function w6e(e){return e===9||e===32}function L0(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Z2(e){return V2.P.test(e)||V2.S.test(e)}const lM=new Map;function M8(e){if(G2(e))return!0;if(e>=0&&e<128)return!1;const t=lM.get(e);if(t!==void 0)return t;const n=Z2(String.fromCharCode(e));return lM.set(e,n),n}function G2(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function C9(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function x6e(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function w9(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function N0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const DR=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,S6e=new RegExp(`${DR.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),_6e=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function M6e(e,t){if(t.charCodeAt(0)===35&&_6e.test(t)){const i=t[1].toLowerCase()==="x"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return w9(i)?N0(i):e}const n=r7(e);return n!==e?n:e}function I6e(e){return e.includes("\\")?e.replace(DR,"$1"):e}function F0(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(S6e,(t,n,i)=>n||M6e(t,i))}const E6e=/[&<>"]/,T6e=/[&<>"]/g,L6e={"&":"&","<":"<",">":">",'"':"""};function N6e(e){return L6e[e]}function F6e(e){return E6e.test(e)?e.replace(T6e,N6e):e}const D6e=/[.?*+^$[\]\\(){}|-]/g;function B6e(e){return e.replace(D6e,"\\$&")}const $6e={mdurl:NR,ucmicro:V2};function To(e){if(e.length===0)return 0;let t=0,n=-1;for(;(n=e.indexOf(` +`,n+1))!==-1;)t++;return t}const R6e=/(?:^|\n)[ \t]{0,3}\[\^[^\]\n]+\]:/m,z6e=/(?:^|\n)[ \t]{0,3}\*\[[^\]\n]+\]:/m,O6e=/(?:^|\n)[ \t]{0,3}\[(?!\^)(?:\\[\s\S]|[^\]\\[])+\][ \t]*:/m,u7=["references","footnotes","abbreviations","abbr","abbrs"],c7=Symbol.for("markdown-it-ts.global-state"),d7=Object.prototype.hasOwnProperty;function aM(e){return e==="reference-definition"||e==="footnote-definition"||e==="abbreviation-definition"}function sa(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mc(e){if(Array.isArray(e))return e.map(t=>mc(t));if(sa(e)){const t={};for(const n of Object.keys(e))t[n]=mc(e[n]);return t}return e}function Q2(e){return Array.isArray(e)?e.map((t,n)=>String(n)):sa(e)?Object.keys(e):[]}function I8(e,t){if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ns.has(r)?!I8(o[r],BR(i.value,r)):!0)}}function Mu(e){const t=f7(e);if(t){for(const n of u7){const i=t.snapshot[n];if(!i){delete e[n];continue}if(i.ownedKeys){j6e(e,n,i);continue}i.existed?e[n]=P6e(e[n],i.value):delete e[n]}delete e[c7]}}function F3(e){return{area:e,attempted:!0,matched:!1,attemptMs:0,blocks:0,headings:0,paragraphs:0,lists:0,fences:0,paragraphCacheHits:0,paragraphCacheMisses:0,paragraphCacheBypasses:0,listCacheHits:0,listCacheMisses:0,fenceCacheHits:0,fenceCacheMisses:0}}const E8=Symbol.for("markdown-it-ts.diagnostics");function gg(e,t){if(e)try{const n=e[E8];if(n&&typeof n=="object")return n;if(!t)return;const i={};return e[E8]=i,i}catch{return}}function lu(e){return gg(e,!1)}function W6e(e){if(e)try{const t=e[E8];t&&typeof t=="object"&&(delete t.strategy,delete t.chunk,delete t.unbounded,delete t.editable,delete t.stockFast)}catch{}}function gr(e){W6e(e)}function V1(e,t){const n=gg(e,!0);n&&(n.stockFast=t)}function Go(e,t){const n=gg(e,!0);n&&(n.strategy=t)}function D3(e,t){const n=gg(e,!0);n&&(n.chunk=t)}function $R(e,t){const n=gg(e,!0);n&&(n.unbounded=t)}const q6e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,U6e=/[\0-\x1F\x7F-\x9F]/,K6e=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,V6e=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var Z6e=class{src_Any=q6e.source;src_Cc=U6e.source;src_Z=V6e.source;src_P=K6e.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const i=this.escapeRE(e),o=this.escapeRE(t),s=`(?:(?!${this.src_ZCc}|${i}|${o}).)`;let r=`${i}${s}{0,1000}${o}`;for(let l=2;l<=n;l++)r=`${i}(?:${s}|${r}){0,1000}${o}`;return r}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},B3={validate:(e,t,n)=>{const i=n.re.get_http_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},G6e={"http:":B3,"https:":B3,"ftp:":B3,"//":{validate:function(e,t,n){const i=n.re.get_relative_proto_validator();i.lastIndex=t;const o=i.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const i=n.re.get_mailto_validator();i.lastIndex=t;const o=i.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Q6e="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Y6e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function J6e(){const e=Y6e.split("|");return Q6e.split("|").forEach(t=>{const n=t.indexOf(":"),i=t.slice(0,n);for(const o of t.slice(n+1))e.push(i+o)}),e}var X6e={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:J6e(),urlAuth:!1,maxLength:1e4},uM=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,i){const o=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=o,this.text=o,this.url=o}},RR=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:t,...n}=e;this.__opts__={...X6e,...n},this.__schemas__={...G6e},this.re=t||new Z6e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(i,o)=>o.normalize(i),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const i=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(i.lastIndex=0;(t=i.exec(e))!==null;){const s=e.slice(Math.max(0,t.index-65),t.index);if(o.test(s))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let i,o,s,r,l,a,u=!1,c=!1,d=!1,h=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(i=this.re.get_fuzzy_link_search(),i.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,s=this.re.get_mail_name_validator());;){const p=Math.max(h-1,0);if(o&&s&&!d&&(!l||l.index=h)break;o.lastIndex=h)break;i.lastIndexg.lastIndex))&&(g=r);let m;if(!u)for(;;){if(!a){n.lastIndexg.index)break;const y=a;a=void 0;const b=this.testSchemaAt(e,y.schema,y.lastIndex);if(b){m={schema:y.schema,index:y.index,lastIndex:y.lastIndex+b};break}}let k=m;if((!k||l&&(l.indexk.lastIndex))&&(k=l),(!k||r&&(r.indexk.lastIndex))&&(k=r),!k)break;k===l?l=void 0:k===r&&(r=void 0);const w=new uM(e,k.schema,k.index,k.lastIndex);w.schema?this.__schemas__[w.schema].normalize(w,this):this.normalize(w),t.push(w),h=k.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new uM(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[i.schema].normalize(i,this),i}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},e7e=ER({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":((e,t)=>{const d=/^xn--/,h=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=35,k=Math.floor,w=String.fromCharCode;function y(O){throw new RangeError(g[O])}function b(O,R){const j=[];let $=O.length;for(;$--;)j[$]=R(O[$]);return j}function A(O,R){const j=O.split("@");let $="";j.length>1&&($=j[0]+"@",O=j[1]),O=O.replace(p,".");const W=b(O.split("."),R).join(".");return $+W}function T(O){const R=[];let j=0;const $=O.length;for(;j<$;){const W=O.charCodeAt(j++);if(W>=55296&&W<=56319&&j<$){const P=O.charCodeAt(j++);(P&64512)==56320?R.push(((W&1023)<<10)+(P&1023)+65536):(R.push(W),j--)}else R.push(W)}return R}const S=O=>String.fromCodePoint(...O),x=function(O){return O>=48&&O<58?26+(O-48):O>=65&&O<91?O-65:O>=97&&O<123?O-97:36},_=function(O,R){return O+22+75*(O<26)-((R!=0)<<5)},L=function(O,R,j){let $=0;for(O=j?k(O/700):O>>1,O+=k(O/R);O>m*26>>1;$+=36)O=k(O/m);return k($+(m+1)*O/(O+38))},M=function(O){const R=[],j=O.length;let $=0,W=128,P=72,Z=O.lastIndexOf("-");Z<0&&(Z=0);for(let ae=0;ae=128&&y("not-basic"),R.push(O.charCodeAt(ae));for(let ae=Z>0?Z+1:0;ae=j&&y("invalid-input");const ne=x(O.charCodeAt(ae++));ne>=36&&y("invalid-input"),ne>k((2147483647-$)/oe)&&y("overflow"),$+=ne*oe;const ie=q<=P?1:q>=P+26?26:q-P;if(nek(2147483647/pe)&&y("overflow"),oe*=pe}const Y=R.length+1;P=L($-V,Y,V==0),k($/Y)>2147483647-W&&y("overflow"),W+=k($/Y),$%=Y,R.splice($++,0,W)}return String.fromCodePoint(...R)},N=function(O){const R=[];O=T(O);const j=O.length;let $=128,W=0,P=72;for(const V of O)V<128&&R.push(w(V));const Z=R.length;let ae=Z;for(Z&&R.push("-");ae=$&&oek((2147483647-W)/Y)&&y("overflow"),W+=(V-$)*Y,$=V;for(const oe of O)if(oe<$&&++W>2147483647&&y("overflow"),oe===$){let q=W;for(let ne=36;;ne+=36){const ie=ne<=P?1:ne>=P+26?26:ne-P;if(q32))return s;if(i===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=F0(e.slice(t,o)),s.pos=o,s.ok=!0),s}var OR=g7;const _v=-2;function t7e(e,t,n,i){let o=1,s=t+1;for(;s=0&&t+1>=c)return-1;const d=l.indexOf("]",t+1);if(d<0||d>=a)return e.linkLabelNoCloseFrom=t+1,-1;const h=t7e(l,t,a,n);if(h!==_v)return h;for(e.pos=t+1;e.pos=n)return r;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return r;t++,s++,l===40&&(l=41),r.marker=l}for(;s=0?e.attrs[n][1]:null}function o7e(e,t,n){const i=x9(e,t);i<0?y7(e,[t,n]):e.attrs[i][1]=`${e.attrs[i][1]} ${n}`}var s7e=FR({attrGet:()=>i7e,attrIndex:()=>x9,attrJoin:()=>o7e,attrPush:()=>y7,attrSet:()=>n7e,parseLinkDestination:()=>g7,parseLinkLabel:()=>m7,parseLinkTitle:()=>v7});function r7e(e){return e.includes("\r")||e.includes("\0")}function jR(e){return typeof e=="string"?e:e.toString()}function l7e(e){if(e.inlineMode){const t=new hs("inline","",0);t.content=jR(e.src),t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}const a7e=/^([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])?)*)$/,u7e=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function c7e(e,t){let n=e.pos;const i=e.src;if(i.charCodeAt(n)!==60)return!1;const o=n,s=e.posMax;for(;;){if(++n>=s)return!1;const l=i.charCodeAt(n);if(l===60)return!1;if(l===62)break}const r=i.slice(o+1,n);if(u7e.test(r)){const l=e.md.normalizeLink(r);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(a7e.test(r)){const l=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(l))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",l]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}var HR=c7e;function d7e(e,t){const n=e.src;let i=e.pos;if(n.charCodeAt(i)!==96)return!1;const o=i;i++;const s=e.posMax;for(;i2&&h.charCodeAt(0)===32&&h.charCodeAt(h.length-1)===32&&(h=h.slice(1,-1)),d.content=h}return e.pos=a,!0}e.backticks[c]=u}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=l,!0}var WR=d7e;function cM(e){const t={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let r=0;ra;u-=s[u]+1){const d=e[u];if(d.marker===l.marker&&d.open&&d.end<0){let h=!1;if((d.close||l.open)&&(d.length+l.length)%3===0&&(d.length%3!==0||l.length%3!==0)&&(h=!0),!h){const p=u>0&&!e[u-1].open?s[u-1]+1:0;s[r]=r-u+p,s[u]=p,l.open=!1,d.end=r,d.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=c)}}function f7e(e){const t=e.tokens_meta,n=e.tokens_meta.length;cM(e.delimiters);for(let i=0;i=0;o--){const s=t[o],r=s.marker;if(r!==95&&r!==42||s.end===-1)continue;const l=t[s.end],a=s.token,u=l.token,c=o>0&&t[o-1].end===s.end+1&&t[o-1].marker===r&&t[o-1].token===a-1&&t[s.end+1].token===u+1,d=r===42?qR:UR,h=i[a];c?(h.type="strong_open",h.tag="strong",h.nesting=1,h.markup=d+d,h.content=""):(h.type="em_open",h.tag="em",h.nesting=1,h.markup=d,h.content="");const p=i[u];c?(p.type="strong_close",p.tag="strong",p.nesting=-1,p.markup=d+d,p.content=""):(p.type="em_close",p.tag="em",p.nesting=-1,p.markup=d,p.content=""),c&&(i[t[o-1].token].content="",i[t[s.end+1].token].content="",o--)}}function g7e(e){const t=e.tokens_meta,n=e.tokens_meta.length;dM(e,e.delimiters);for(let i=0;i=48&&e<=57}function m7e(e){const t=e|32;return k7(e)||t>=97&&t<=102}function VR(e){const t=e|32;return t>=97&&t<=122}function v7e(e){return VR(e)||k7(e)}function y7e(e,t,n){let i=t+2;if(i>=n)return null;let o=!1,s=7,r=i;for((e.charCodeAt(i)|32)===120&&(o=!0,s=6,i++,r=i);i=n||e.charCodeAt(i)!==59?null:e.slice(t,i+1)}function k7e(e,t,n){let i=t+1;if(i>=n||!VR(e.charCodeAt(i)))return null;for(i++;i=n||e.charCodeAt(i)!==59)return null;const o=e.slice(t,i+1);return KR(o)!==o?o:null}function b7e(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=y7e(e.src,n,i);if(o){if(!t){const s=(o.charCodeAt(2)|32)===120?Number.parseInt(o.slice(3,-1),16):Number.parseInt(o.slice(2,-1),10),r=e.push("text_special","",0);r.content=w9(s)?N0(s):N0(65533),r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}else{const o=k7e(e.src,n,i);if(o){const s=KR(o);if(!t){const r=e.push("text_special","",0);r.content=s,r.markup=o,r.info="entity"}return e.pos+=o.length,!0}}return!1}var ZR=b7e;const GR=(()=>{const e=new Array(256).fill(0),t="\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-";for(let n=0;n<32;n++)e[t.charCodeAt(n)]=1;return e})(),L8=new Array(128),QR=new Array(128);for(let e=0;e<128;e++){const t=String.fromCharCode(e);L8[e]=`\\${t}`,QR[e]=GR[e]?t:L8[e]}function fM(e,t,n){e.pending&&e.pushPending();const i=new hs("text_special","",0);i.level=e.level,i.content=t,i.markup=n,i.info="escape",e.pendingLevel=e.level,e.tokens.push(i),e.tokens_meta.push(null)}function A7e(e,t){let n=e.pos;const i=e.posMax,o=e.src;if(o.charCodeAt(n)!==92||(n++,n>=i))return!1;let s=o.charCodeAt(n);if(s===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&s<=56319&&n+1=56320&&a<=57343&&n++}return e.pos=n+1,!0}let r=o.charAt(n);if(s>=55296&&s<=56319&&n+1=56320&&a<=57343&&(r+=o.charAt(n+1),n++)}const l=`\\${r}`;return fM(e,s<256&&GR[s]?r:l,l),e.pos=n+1,!0}var YR=A7e;function C7e(e){let t,n,i=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t0&&i++,r.type==="text"&&t+1\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,XR="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",x7e=new RegExp(`^(?:${JR}|${XR}||<\\?[\\s\\S]*?\\?>|]*>|)`),S7e=new RegExp(`^(?:${JR}|${XR})`);function ez(e){return e===32||e===9||e===10||e===12||e===13}function _7e(e){if(e.length<3||e.charCodeAt(0)!==60||(e.charCodeAt(1)|32)!==97)return!1;const t=e.charCodeAt(2);return t===62||ez(t)}function M7e(e){if(e.length<4||e.charCodeAt(0)!==60||e.charCodeAt(1)!==47||(e.charCodeAt(2)|32)!==97)return!1;for(let t=3;t=97&&t<=122}function E7e(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos,o=e.src;if(o.charCodeAt(i)!==60||i+2>=n)return!1;const s=o.charCodeAt(i+1);if(s!==33&&s!==63&&s!==47&&!I7e(s))return!1;const r=o.slice(i).match(x7e);if(!r)return!1;const l=r[0];if(!t){const a=e.pushSimple("html_inline","");a.content=l,_7e(l)&&e.linkLevel++,M7e(l)&&e.linkLevel--}return e.pos+=l.length,!0}var tz=E7e;function T7e(e,t){let n,i,o,s,r,l,a,u,c="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,g=Y2(e,e.pos+1,!1);if(g<0)return!1;if(s=g+1,s=h)return!1;if(l=OR(e.src,s,e.posMax),l.ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",u=s;s=h||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(u,s++):s=g+1):s=g+1,o||(o=e.src.slice(p,g)),r=e.env.references[C9(o)],!r)return e.pos=d,!1;c=r.href,a=r.title}if(!t){i=e.src.slice(p,g);const m=[];e.md.inline.parse(i,e.md,e.env,m);const k=e.push("image","img",0);k.attrs=[["src",c],["alt",""]],k.children=m,k.content=i,a&&k.attrs.push(["title",a])}return e.pos=s,e.posMax=h,!0}var nz=T7e;function $3(e,t,n){for(;t"u")return!1;let d;if(l=r+1,l=0?(d=n.slice(p,g),d||(d=n.slice(s,r)),l=g+1):d=n.slice(s,r)}else d=n.slice(s,r);const h=e.env.references[C9(d)];if(!h)return e.pos=i,!1;a=h.href,u=h.title}if(!t){e.pos=s,e.posMax=r;const d=e.push("link_open","a",1);d.attrs=u?[["href",a],["title",u]]:[["href",a]],e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=l,e.posMax=o,!0}var iz=L7e;function oz(e){const t=e|32;return t>=97&&t<=122}function N7e(e){return e>=48&&e<=57}function F7e(e){return oz(e)||N7e(e)||e===43||e===45||e===46}function D7e(e){if(e.length===0)return null;let t=e.length-1;for(;t>=0&&F7e(e.charCodeAt(t));)t--;return t++,t>=e.length||!oz(e.charCodeAt(t))?null:e.slice(t)}function B7e(e,t,n){let i=t;for(;i0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=D7e(e.pending);if(!o)return!1;const s=B7e(e.src,n-o.length,i),r=e.md.linkify.matchAtStart(s);if(!r)return!1;let l=r.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=l.length-o.length,!0}function $7e(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.pushSimple("hardbreak","br")}else e.pending=e.pending.slice(0,-1),e.pushSimple("softbreak","br");else e.pushSimple("softbreak","br");for(n++;n=o||pM(n.charCodeAt(i)))return!1;let s=i+1;for(;si-o),n=Math.floor(t.length/2);return t.length%2===0?(t[n-1]+t[n])/2:t[n]}function j7e(e,t){return{chain:e,name:t,calls:0,hits:0,inclusiveMs:0,medianMs:0,maxMs:0,normalCalls:0,normalHits:0,silentCalls:0,silentHits:0,samples:[]}}function az(e){const t=e;if(!t)return null;if(t.__mdtsRuleProfile)return t.__mdtsRuleProfile;if(!t.__mdtsProfileRules)return null;const n=t.__mdtsProfileRules===!0?{}:t.__mdtsProfileRules,i={enabled:!0,fixture:n.fixture,mode:n.mode,startedAt:b7(),records:Object.create(null)};return t.__mdtsRuleProfile=i,i}function $h(e,t,n,i,o,s){const r=az(e);if(!r)return;const l=`${t}:${n}`,a=r.records[l]??(r.records[l]=j7e(t,n));a.calls++,a.inclusiveMs+=i,i>a.maxMs&&(a.maxMs=i),a.samples.push(i),s?(a.silentCalls++,o&&a.silentHits++):(a.normalCalls++,o&&a.normalHits++),o&&a.hits++,r.completedAt=b7()}function H7e(e){const t=az(e);if(!t)return null;const n=Object.keys(t.records);for(let i=0;io.name===e);i>=0&&this.rules.splice(i,1),this.rules.push({name:e,fn:t,alt:n?.alt||[],enabled:!0}),this.invalidateCache()}at(e,t,n){const i=this.rules.findIndex(o=>o.name===e);if(t===void 0){if(i<0)return;const o=this.rules[i];return Object.freeze({name:o.name,fn:o.fn,alt:o.alt?Object.freeze(o.alt.slice()):void 0,enabled:o.enabled})}if(i<0)throw new Error(`Parser rule not found: ${e}`);this.rules[i].fn=t,n?.alt!==void 0&&(this.rules[i].alt=n.alt),this.invalidateCache()}before(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}after(e,t,n,i){const o=this.rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this.rules.findIndex(r=>r.name===t);s>=0&&this.rules.splice(s,1),this.rules.splice(o+1,0,{name:t,fn:n,alt:i?.alt||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache.get(t)??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache.get(t)??[]}compileCache(){const e=new Set([""]);for(const i of this.rules)if(i.enabled&&i.alt)for(const o of i.alt)e.add(o);const t=new Map,n=new Map;for(const i of e){const o=[],s=[];for(const r of this.rules)r.enabled&&(i!==""&&!r.alt?.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t.set(i,o),n.set(i,s)}this.cache=t,this.namedCache=n}},uz=class{src;md;env;tokens;tokens_meta;pos;posMax;level;pending;pendingLevel;cache;delimiters;_prev_delimiters;backticks;backticksScanned;linkLevel;linkLabelNoCloseFrom;maxNesting;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.tokens_meta=new Array(i.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.linkLabelNoCloseFrom=-1,this.maxNesting=t.options.maxNesting}pushPending(){const e=new hs("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}pushSimple(e,t){this.pending&&this.pushPending();const n=new hs(e,t,0);return n.level=this.level,this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(null),n}push(e,t,n){if(this.pending&&this.pushPending(),n===0)return this.pushSimple(e,t);const i=new hs(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i}scanDelims(e,t){const{src:n,posMax:i}=this,o=n.charCodeAt(e);let s=e;for(;s0?n.charCodeAt(e-1):32,a=s@[\]\\^_`{}~]/;function mM(e,t){switch(e.src.charCodeAt(e.pos)){case 10:return rz(e,t);case 33:return nz(e,t);case 38:return ZR(e,t);case 42:case 95:return T8.tokenize(e,t);case 58:return e.md.options.linkify&&sz(e,t);case 60:return HR(e,t)||tz(e,t);case 91:return iz(e,t);case 92:return YR(e,t);case 96:return WR(e,t);case 126:return N8.tokenize(e,t);default:return lz(e,t)}}function cz(e){return!W7e.test(e)}var q7e=class{ruler;ruler2;cachedRulesVersion=-1;cachedRules=[];cachedRules2Version=-1;cachedRules2=[];defaultRulerVersion;defaultRuler2Version;constructor(){this.ruler=new gM,this.ruler2=new gM,this.ruler.push("text",lz),this.ruler.push("linkify",sz),this.ruler.push("newline",rz),this.ruler.push("escape",YR),this.ruler.push("backticks",WR),this.ruler.push("strikethrough",N8.tokenize),this.ruler.push("emphasis",T8.tokenize),this.ruler.push("link",iz),this.ruler.push("image",nz),this.ruler.push("autolink",HR),this.ruler.push("html_inline",tz),this.ruler.push("entity",ZR),this.ruler2.push("balance_pairs",h7e),this.ruler2.push("strikethrough",N8.postProcess),this.ruler2.push("emphasis",T8.postProcess),this.ruler2.push("fragments_join",w7e),this.defaultRulerVersion=this.ruler.version,this.defaultRuler2Version=this.ruler2.version}skipToken(e){const t=e.pos,n=this.getRules(),i=n.length,o=e.cache,s=o[t],r=!!e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules"));if(s!==void 0){e.pos=s;return}let l=!1;if(e.level=e.pos)throw new Error("inline rule didn't increment state.pos");break}}}else if(this.isDefaultRuleset()){if(e.level++,l=mM(e,!0),e.level--,l&&t>=e.pos)throw new Error("inline rule didn't increment state.pos")}else for(let a=0;a=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;l||e.pos++,o[t]=e.pos}tokenize(e){const t=this.getRules(),n=t.length,i=e.posMax;if(!(e.env&&(Object.prototype.hasOwnProperty.call(e.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(e.env,"__mdtsProfileRules")))){const s=this.isDefaultRuleset();for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos")}if(l){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending();return}const o=this.ruler.getNamedRules("");for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=i)break;continue}e.pending+=e.src.charAt(e.pos++)}e.pending&&e.pushPending()}isDefaultRuleset(){return this.ruler.version===this.defaultRulerVersion&&this.ruler2.version===this.defaultRuler2Version}parseSource(e,t,n,i){if(typeof e=="string"&&e.length>0&&this.isDefaultRuleset()&&cz(e)){const a=new hs("text","",0);a.content=e,i.push(a);return}const o=new uz(e,t,n,i);this.tokenize(o);const s=this.getRules2(),r=s.length;if(!(o.env&&(Object.prototype.hasOwnProperty.call(o.env,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(o.env,"__mdtsProfileRules")))){for(let a=0;a0&&cz(s.content)){const r=new hs("text","",0);r.content=s.content,s.children.push(r);continue}e.md.inline.parse(s.content,e.md,e.env,s.children)}}}const K7e=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u,V7e=/[0-9a-z]/i;function Z7e(e){return/^\s]/i.test(e)}function G7e(e){return/^<\/a\s*>/i.test(e)}function Q7e(e,t){if(t.schema||t.index!==0||!t.raw)return t;for(let n=1;n=0;r--){const l=o[r];if(l.type==="link_close"){for(r--;r>=0&&o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(Z7e(l.content)&&s>0&&s--,G7e(l.content)&&s++),s>0||l.type!=="text"||!e.md.linkify.test(l.content))continue;const a=l.content;let u=(e.md.linkify.match(a)||[]).map(p=>Q7e(e.md.linkify,p));if(u.length===0)continue;const c=[];let d=l.level,h=0;u.length>0&&u[0].index===0&&r>0&&o[r-1].type==="text_special"&&(u=u.slice(1));for(let p=0;ph){const T=new hs("text","",0);T.content=a.slice(h,w),T.level=d,c.push(T)}const y=new hs("link_open","a",1);y.attrs=[["href",m]],y.level=d++,y.markup="linkify",y.info="auto",c.push(y);const b=new hs("text","",0);b.content=k,b.level=d,c.push(b);const A=new hs("link_close","a",-1);A.level=--d,A.markup="linkify",A.info="auto",c.push(A),h=g.lastIndex}if(h!==0){if(h=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(nAe,oAe)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function rAe(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&dz.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function lAe(e){if(e.md?.options?.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=n.content||(Array.isArray(n.children)?n.children.map(o=>o.type==="text"?o.content:"").join(""):"");tAe.test(i)&&sAe(n.children||[]),dz.test(i)&&rAe(n.children||[])}}var aAe=class{rules=[];cache=null;namedCache=null;version=0;invalidateCache(){this.cache=null,this.namedCache=null,this.version++}push(e,t){const n=this.rules.findIndex(i=>i.name===e);n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex(i=>i.name===e);if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const i=this.rules.findIndex(s=>s.name===e);if(i<0)throw new Error(`Parser rule not found: ${e}`);const o=this.rules.findIndex(s=>s.name===t);o>=0&&this.rules.splice(o,1),this.rules.splice(i+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled||(this.rules[r].enabled=!0,o=!0)}return o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;for(const s of n){const r=this.rules.findIndex(l=>l.name===s);if(r<0){if(!t)throw new Error(`Rules manager: invalid rule name ${s}`);continue}i.push(s),this.rules[r].enabled&&(this.rules[r].enabled=!1,o=!0)}return o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this.rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter(e=>e.enabled).map(e=>e.fn),this.namedCache=this.rules.filter(e=>e.enabled).map(e=>({name:e.name,fn:e.fn}))}getRules(e=""){return this.cache||this.compileCache(),this.cache}getNamedRules(e=""){return this.namedCache||this.compileCache(),this.namedCache}};const uAe=/['"]/,vM=/['"]/g,yM="’";function Om(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function cAe(e,t){let n;const i=[],o=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let s=0;s=0&&!(i[n].level<=l);n--);if(i.length=n+1,r.type!=="text")continue;let a=r.content,u=0,c=a.length;e:for(;u=0)m=a.charCodeAt(d.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let k=32;if(u=48&&m<=57&&(p=h=!1),h&&p&&(h=w,p=y),!h&&!p){g&&(r.content=Om(r.content,d.index,yM));continue}if(p)for(n=i.length-1;n>=0;n--){let T=i[n];if(i[n].level=0;t--){const n=e.tokens[t];if(n.type!=="inline")continue;const i=typeof n.content=="string"?n.content:(n.children||[]).map(o=>o.content||"").join("");!uAe.test(i)||!n.children||cAe(n.children,e)}}function fAe(e){const t=e.tokens||[],n=t.length;for(let i=0;i=4||o.charCodeAt(c)!==62)return!1;if(i)return!0;const p=[],g=[],m=[],k=[],w=e.md.block.ruler.getRulesForState(e,"blockquote"),y=e.parentType;e.parentType="blockquote";let b=!1,A;for(A=t;A=d)break;if(o.charCodeAt(c++)===62&&!L){let N=a[A]+1,I,z;o.charCodeAt(c)===32?(c++,N++,z=!1,I=!0):o.charCodeAt(c)===9?(I=!0,(u[A]+N)%4===3?(c++,N++,z=!1):z=!0):I=!1;let H=N;for(p.push(s[A]),s[A]=c;c=d,g.push(u[A]),u[A]=a[A]+1+(I?1:0),m.push(a[A]),a[A]=H-N,k.push(l[A]),l[A]=c-s[A];continue}if(b)break;let M=!1;for(let N=0,I=w.length;N";const x=[t,0];S.map=x,e.md.block.tokenize(e,t,A);const _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=h,e.parentType=y,x[1]=e.line;for(let L=0;L=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=`${e.getLines(t,o,4+e.blkIndent,!1)} +`,s.map=[t,e.line],!0}function yAe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let l=o;o=e.skipChars(o,r);let a=o-l;if(a<3)return!1;const u=e.src.slice(l,o),c=e.src.slice(o,s);if(r===96&&c.includes(String.fromCharCode(r)))return!1;if(i)return!0;let d=t,h=!1;for(;d++,!(d>=n||(o=l=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=4)&&(o=e.skipChars(o,r),!(o-l=4)return!1;let c=o.charCodeAt(a);if(c!==35||a>=u)return!1;let d=1;for(c=o.charCodeAt(++a);c===35&&a6||aa&&AM(o.charCodeAt(h-1))&&(u=h),e.line=t+1;const p=e.push("heading_open",kM[d],1);p.markup=bM[d],p.map=[t,e.line];const g=e.push("inline","",0);g.content=o.slice(a,u).trim(),g.map=[t,e.line],g.children=[];const m=e.push("heading_close",kM[d],-1);return m.markup=bM[d],!0}function bAe(e){switch(e){case 9:case 32:return!0}return!1}function AAe(e,t,n,i){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let l=1;for(;s|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${S7e.source}\\s*$`),/^$/,!1]];function CAe(e,t,n,i){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),l=0;for(;l=48&&e<=57}var mz=class{src;md;env;tokens;bMarks=[];eMarks=[];tShift=[];sCount=[];bsCount=[];lineFlags=[];blkIndent=0;line=0;lineMax=0;tight=!1;ddIndent=-1;listIndent=-1;parentType="root";level=0;constructor(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i;const o=this.src;let s=0,r=0,l=0,a=!1,u=0;for(let c=0,d=o.length;c0&&this.level++,this.tokens.push(i),i}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){const t=this.bMarks,n=this.tShift,i=this.eMarks;for(let o=this.lineMax;et;){const i=n.charCodeAt(--e);if(i!==9&&i!==32)return e+1}return e}skipChars(e,t){const n=this.src;for(let i=n.length;en;)if(t!==i.charCodeAt(--e))return e+1;return e}getLines(e,t,n,i){if(e>=t)return"";if(e+1===t){const c=e,d=this.bMarks[c];let h=d;const p=i?this.eMarks[c]+1:this.eMarks[c];let g=0;const m=this.src,k=this.bsCount,w=this.tShift;for(;hn?new Array(g-n+1).join(" ")+m.slice(h,p):m.slice(h,p)}const o=new Array(t-e),s=this.src,r=this.bMarks,l=this.eMarks,a=this.bsCount,u=this.tShift;for(let c=0,d=e;dn?o[c]=new Array(h-n+1).join(" ")+s.slice(g,m):o[c]=s.slice(g,m)}return o.join("")}};mz.prototype.Token=hs;function xAe(e,t,n){for(let i=t;i=o)return!1;const s=n.charCodeAt(i);switch(s){case 35:case 42:case 43:case 45:case 60:case 62:case 95:case 96:case 126:return!0}return s>=48&&s<=57?!0:xAe(n,i,o)}const wM=["","h1","h2"];function SAe(e,t,n){const i=e.md.block.ruler.getRulesForState(e,"paragraph"),o=e.src,s=e.bMarks,r=e.tShift,l=e.eMarks,a=e.sCount,u=e.blkIndent,c=vz(e);if(a[t]-u>=4)return!1;const d=e.parentType;e.parentType="paragraph";let h=0,p,g=t+1;for(;g=T)break;if(a[g]-u>3)continue;if(a[g]>=u&&(p=o.charCodeAt(A),p===45||p===61)){let x=A+1,_=x;for(;x=T){h=p===61?1:2;break}if(_-A>1)continue}if(a[g]<0||c&&!yz(e,g,o,A,T))continue;let S=!1;for(let x=0,_=i.length;x<_;x++)if(i[x](e,g,n,!0)){S=!0;break}if(S)break}if(!h)return!1;let m;if(g===t+1){const A=s[t]+r[t];let T=l[t];for(;T>A;){const S=o.charCodeAt(T-1);if(S!==9&&S!==32)break;T--}m=o.slice(A,T)}else m=e.getLines(t,g,u,!1).trim();e.line=g+1;const k=p===61?"=":"-",w=e.push("heading_open",wM[h],1);w.markup=k,w.map=[t,e.line];const y=e.push("inline","",0);y.content=m,y.map=[t,e.line-1],y.children=[];const b=e.push("heading_close",wM[h],-1);return b.markup=k,e.parentType=d,!0}function kz(e){switch(e){case 9:case 32:return!0}return!1}function xM(e,t){const n=e.eMarks,i=e.bMarks,o=e.tShift,s=e.src,r=n[t];let l=i[t]+o[t];const a=s.charCodeAt(l++);return a!==42&&a!==45&&a!==43||l=l)return-1;let u=s.charCodeAt(a++);if(u<48||u>57)return-1;for(;;){if(a>=l)return-1;if(u=s.charCodeAt(a++),u>=48&&u<=57){if(a-r>=10)return-1;continue}if(u===41||u===46)break;return-1}return a0&&++o=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let c,d,h;const p=e.src,g=e.bMarks,m=e.tShift,k=e.eMarks,w=e.sCount,y=e.bsCount,b=g[l]+m[l];if(b>=k[l])return!1;const A=p.charCodeAt(b);if(A>=48&&A<=57){if(h=SM(e,l),h<0||(c=!0,r=b,d=_Ae(e,l,h),u&&d!==1))return!1}else if(A===42||A===45||A===43){if(h=xM(e,l),h<0)return!1;c=!1}else return!1;if(u&&e.skipSpaces(h)>=k[l])return!1;if(i)return!0;const T=p.charCodeAt(h-1),S=String.fromCharCode(T);if(c){const I=e.push("ordered_list_open","ol",1);d!==void 0&&d!==1&&(I.attrs=[["start",String(d)]])}else e.push("bullet_list_open","ul",1);const x=[l,0];e.tokens[e.tokens.length-1].map=x,e.tokens[e.tokens.length-1].markup=S;let _=!1;const L=e.tokens.length-1,M=e.md.block.ruler.getRulesForState(e,"list"),N=e.parentType;for(e.parentType="list";l=o?O=1:O=z-I,O>4&&(O=1);const R=I+O,j=e.push("list_item_open","li",1);j.markup=S;const $=[l,0];j.map=$,c&&(j.info=h-r-1===1?MAe[p.charCodeAt(r)-48]:p.slice(r,h-1));const W=e.tight,P=e.tShift[l],Z=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[l]=H-g[l],e.sCount[l]=z,H>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||_)&&(a=!1),_=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=P,e.sCount[l]=Z,e.tight=W,e.push("list_item_close","li",-1).markup=S,l=e.line,$[1]=l,l>=n||e.sCount[l]=4)break;let V=!1;for(let Y=0,oe=M.length;Y3||u[h]<0)continue;if(o==="list"&&u[h]>=c){const b=r[h]+l[h],A=a[h];if(b=A||_M(s.charCodeAt(b+1)))break}else if(T>=48&&T<=57&&b+1=A){S=-1;break}const x=s.charCodeAt(S++);if(x>=48&&x<=57){if(S-b>=10){S=-1;break}continue}if((x===41||x===46)&&(S>=A||_M(s.charCodeAt(S))))break;S=-1;break}if(S>=0)break}}}const k=r[h]+l[h],w=a[h];if(d&&!yz(e,h,s,k,w))continue;let y=!1;for(let b=0,A=i.length;b=4||e.src.charCodeAt(o)!==91)return!1;function a(b){const A=e.lineMax;if(b>=A||e.isEmpty(b))return null;let T=!1;if(e.sCount[b]-e.blkIndent>3&&(T=!0),e.sCount[b]<0&&(T=!0),!T){const _=e.parentType;e.parentType="reference";let L=!1;for(let M=0,N=l.length;M"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:w,href:h}),e.line=r),!0):!1}function R3(e){switch(e){case 9:case 32:return!0}return!1}const NAe=65536;function z3(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function FAe(e,t){if(e.lineFlags)return(e.lineFlags[t]&jp.Pipe)!==0;for(let n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];nn)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!R3(l)||r===45&&R3(l)||!FAe(e,t))return!1;for(;s=4)return!1;u=MM(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==c.length)return!1;if(i)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRulesForState(e,"blockquote"),g=e.push("table_open","table",1),m=[t,0];g.map=m;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const w=e.push("tr_open","tr",1);w.map=[t,t+1];for(let A=0;A=4||(u=MM(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),b+=d-u.length,b>NAe))break;if(o===t+2){const S=e.push("tbody_open","tbody",1);S.map=y=[t+2,0]}const T=e.push("tr_open","tr",1);T.map=[o,o+1];for(let S=0;Sr.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}after(e,t,n,i){const o=this._rules.findIndex(r=>r.name===e);if(o<0)throw new Error(`Parser rule not found: ${e}`);const s=this._rules.findIndex(r=>r.name===t);s>=0&&this._rules.splice(s,1),this._rules.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i?.alt||[]}),this.invalidateCache()}getRules(e){const t=e||"";return this.cache||this.compileCache(),this.cache[t]??[]}getNamedRules(e){const t=e||"";return this.namedCache||this.compileCache(),this.namedCache[t]??[]}getRulesForState(e,t){const n=e?.env;return n&&(Object.prototype.hasOwnProperty.call(n,"__mdtsRuleProfile")||Object.prototype.hasOwnProperty.call(n,"__mdtsProfileRules"))?this.getNamedRules(t).map(({name:i,fn:o})=>(s,r,l,a)=>{const u=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now(),c=o(s,r,l,a),d=typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now();return $h(s?.env,"block",i,d-u,c,!!a),c}):this.getRules(t)}at(e,t,n){const i=this._rules.findIndex(o=>o.name===e);if(i===-1)throw new Error(`Parser rule not found: ${e}`);this._rules[i].fn=t,n?.alt&&(this._rules[i].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled||(this._rules[r].enabled=!0,o=!0)}),o&&this.invalidateCache(),i}disable(e,t){const n=Array.isArray(e)?e:[e],i=[];let o=!1;return n.forEach(s=>{const r=this._rules.findIndex(l=>l.name===s);if(r===-1){if(t)return;throw new Error(`Rules manager: invalid rule name ${s}`)}i.push(s),this._rules[r].enabled&&(this._rules[r].enabled=!1,o=!0)}),o&&this.invalidateCache(),i}enableOnly(e){const t=new Set(e);let n=!1;for(const i of this._rules){const o=t.has(i.name);i.enabled!==o&&(i.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const i of this._rules)if(i.enabled)for(const o of i.alt)e.add(o);const t=Object.create(null),n=Object.create(null);for(const i of e){const o=[],s=[];for(const r of this._rules)r.enabled&&(i!==""&&!r.alt.includes(i)||(o.push(r.fn),s.push({name:r.name,fn:r.fn})));t[i]=o,n[i]=s}this.cache=t,this.namedCache=n}};const jm=[["table",DAe,["paragraph","reference"]],["code",vAe],["fence",yAe,["paragraph","reference","blockquote","list"]],["blockquote",mAe,["paragraph","reference","blockquote","list"]],["hr",AAe,["paragraph","reference","blockquote","list"]],["list",EAe,["paragraph","reference","blockquote"]],["reference",LAe],["html_block",CAe,["paragraph","reference","blockquote"]],["heading",kAe,["paragraph","reference","blockquote"]],["lheading",SAe],["paragraph",TAe]];var $Ae=class{ruler;cachedRulesVersion=-1;cachedRules=[];constructor(){this.ruler=new BAe;for(let e=0;e=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const p=e.line;let g=!1;for(let m=0;m=e.line)throw new Error("block rule didn't increment state.line");break}if(!g)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}return}const h=this.ruler.getNamedRules("");for(;c=a[c];)c++;if(e.line=c,c>=n||u[c]=s){e.line=n;break}const p=e.line;let g=!1;for(let m=0;m=e.line)throw new Error("block rule didn't increment state.line");break}}if(!g)throw new Error("none of the block rules matched");e.tight=!d,r[e.line-1]+l[e.line-1]>=a[e.line-1]&&(d=!0),c=e.line,c=a[c]&&(d=!0,c++,e.line=c)}}parse(e,t,n,i){if(!e||e.length===0)return;const o=new mz(e,t,n,i);this.tokenize(o,o.line,o.lineMax)}getRules(){return this.cachedRulesVersion!==this.ruler.version&&(this.cachedRules=this.ruler.getRules(""),this.cachedRulesVersion=this.ruler.version),this.cachedRules}},bz=class{src;env;tokens;inlineMode;md;constructor(e,t,n={}){this.src=typeof e=="string"?e||"":e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}};bz.prototype.Token=hs;const IM=[["normalize",eAe],["block",l7e],["inline",U7e],["linkify",Y7e],["replacements",lAe],["smartquotes",dAe],["text_join",fAe]],RAe={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},zAe={parseLinkLabel:m7,parseLinkDestination:g7,parseLinkTitle:v7};function OAe(){return{...RAe}}function PAe(){return{...zAe}}var jAe=class{fallbackParser;lastState=null;block;inline;ruler;linkifyInstance=null;cachedCoreRulesVersion=-1;cachedCoreRules=[];cachedCoreNamedRulesVersion=-1;cachedCoreNamedRules=[];constructor(){this.block=new $Ae,this.inline=new q7e,this.ruler=new aAe;for(let e=0;e@[\]\\^_`{}~]/;function J2(e){return!HAe.test(e)}function Cp(e,t){const n=e.indexOf(` +`,t);return n===-1?e.length:n}function Mv(e,t,n){for(let i=t;i3)return J2(e);for(let t=0;t=i||t.charCodeAt(r)!==32)return!1;let l=r+1;for(;ll&&t.charCodeAt(a-1)===32;)a--;let u=a;for(;u>l&&t.charCodeAt(u-1)===35;)u--;if(u>l&&t.charCodeAt(u-1)===32)for(a=u-1;a>l&&t.charCodeAt(a-1)===32;)a--;const c=t.slice(l,a);if(!J2(c))return!1;const d=qAe[s],h=UAe[s],p=Dl("heading_open",d,1,0);p.map=[o,o+1],p.markup=h,e.push(p),e.push(A7(c,o,1));const g=Dl("heading_close",d,-1,0);return g.markup=h,e.push(g),!0}function VAe(e,t,n){const i=Dl("paragraph_open","p",1,0);i.map=[n,n+1],e.push(i),e.push(A7(t,n,1)),e.push(Dl("paragraph_close","p",-1,0))}function ZAe(e,t,n){const i=e.charCodeAt(n-1);return i===32||i===9?e.slice(t,n).trim():e.slice(t,n)}function H3(e,t){for(;t=1e5?TM:j3,o="",s=!1,r=!1,l=0,a=0;for(;l"]/,LM=/[&<>"]/g,tCe=/&/g,nCe=/[<>"]/g,iCe={"&":"&","<":"<",">":">",'"':"""};function W3(e){return iCe[e]||e}function Ii(e){if(e.length===0)return"";if(e.length<32)return eCe.test(e)?e.replace(LM,W3):e;const t=e.includes("&"),n=e.includes("<"),i=e.includes(">"),o=e.includes('"');return!t&&!n&&!i&&!o?e:t&&!n&&!i&&!o?e.replace(tCe,"&"):t?e.replace(LM,W3):e.replace(nCe,W3)}const oCe=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),sCe=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function Az(e){return!e.includes("\\")&&!e.includes("&")?e:e.replace(oCe,(t,n,i)=>{if(n)return n;if(sCe.test(i)){const s=i[1].toLowerCase()==="x"?Number.parseInt(i.slice(2),16):Number.parseInt(i.slice(1),10);return w9(s)?N0(s):"�"}const o=r7(t);return o!==t?o:t})}const rCe=/[\n!#$%&*+\-:<=>@[\]\\^_`{}~]/,lCe=/[\n!"#$%&*+\-:<=>@[\]\\^_`{}~]/,aCe=/"/g;function vh(e,t){const n=e.indexOf(` +`,t);return n===-1?e.length:n}function X2(e,t,n){for(let i=t;i=e.length||e.charCodeAt(t)===10?!1:!X2(e,t,vh(e,t))}function NM(e,t,n){return t+2=n||e.charCodeAt(o)!==32)return null;let s=o+1;for(;ss&&e.charCodeAt(r-1)===32;)r--;let l=r;for(;l>s&&e.charCodeAt(l-1)===35;)l--;if(l>s&&e.charCodeAt(l-1)===32)for(r=l-1;r>s&&e.charCodeAt(r-1)===32;)r--;const a=C7(e.slice(s,r));return a===null?null:`${a} +`}function FM(e,t,n){return t+1" +`;case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return null}return`
        3. ${e[t]}
        4. +`}function hCe(e,t,n){const i=t+2;if(n===i+1)return fCe(e,i);const o=C7(e.slice(t+2,n));return o===null?null:`
        5. ${o}
        6. +`}function pCe(e,t,n){for(;tt;){const o=e.charCodeAt(n-1);if(o!==32&&o!==9)break;n--}let i=n;for(let o=t;o`:"
          ",i.lang=s,i.open=d),{html:`${d}${Ii(c)}
          +`,nextPos:u=25e4,s=[],r={lang:null,open:""};let l="",a="",u="",c="";for(;n +`;A +`,l=w,a=y}let b=Hm(e,k);for(;b${k}

          +`,u=p,c=g}const m=de.core.parse(t,n,e).tokens);let r=Iv(t,o);if(o.maxChunks&&r.length>o.maxChunks&&(r=bCe(r,o.maxChunks)),Ev(t,r))return D3(n,{count:1,fallback:!0,fallbackReason:"unsafe-chunk-boundary",maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines}),Bh(n,s,()=>e.core.parse(t,n,e).tokens);let l=0;const a=[];return D3(n,{count:r.length,maxChunkChars:o.maxChunkChars,maxChunkLines:o.maxChunkLines,globalStateDetected:s||void 0,globalStateFallbackDisabled:o.fallbackOnGlobalState===!1&&!!s}),Bh(n,s,()=>{for(let u=0;u=3&&(c?c.marker===b&&T>=c.length&&(c=null):c={marker:b,length:T})}}const k=g-h;o+=k,s+=1,l+=1,m?(a=0,u=0):(a+=1,u+=k);const w=m;if((o>=t.maxChunkChars||s>=t.maxChunkLines)&&!c)if(w)d(g);else{const y=Math.max(10,Math.floor(t.maxChunkLines*.5)),b=Math.max(t.maxChunkChars,8e3);(a>=y||u>=b)&&d(g)}h=g}return n&&d(e.length),i}function Ev(e,t,n={rangesCoverWholeSource:!0}){const i=n.rangesCoverWholeSource?t.length-1:t.length;for(let o=0;oe.length||e.charCodeAt(t-1)!==10)return!1;let n=t-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;for(let i=n+1;i=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function kCe(e,t){for(let n=0;n=0;i--)n.push(e[i]);for(;n.length;){const i=n.pop();if(i.map&&(i.map[0]+=t,i.map[1]+=t),i.children)for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}}function Uu(e){return e.length===0?0:To(e)+(e.charCodeAt(e.length-1)===10?0:1)}function MCe(e,t,n){for(let i=t;i=3&&(n?n.marker===r&&a>=n.length&&(n=null):n={marker:r,length:a})}i=o===e.length?e.length:o+1}return n!==null}function ECe(e,t){if(e.length===0||e.charCodeAt(e.length-1)!==10)return!1;let n=e.length-2;for(;n>=0&&e.charCodeAt(n)!==10;)n--;return MCe(e,n+1,e.length-1)?!ICe(e,t):!1}function TCe(e,t,n,i={}){const o=i.mode??"full",s=i.fenceAware??(o==="stream"?e.options.streamChunkFenceAware??!0:e.options.fullChunkFenceAware??!0);if(i.maxChunkChars!==void 0||i.maxChunkLines!==void 0||i.autoTune===!1){const r=i.maxChunkChars??(o==="stream"?e.options.streamChunkSizeChars??xCe:e.options.fullChunkSizeChars??CCe),l=i.maxChunkLines??(o==="stream"?e.options.streamChunkSizeLines??SCe:e.options.fullChunkSizeLines??wCe);return{maxChunkChars:r,maxChunkLines:l,holdBelowChars:r,holdBelowLines:l,fenceAware:s}}return o==="stream"?t<=5e3?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=2e4?{maxChunkChars:16e3,maxChunkLines:200,holdBelowChars:16e3,holdBelowLines:200,fenceAware:s}:t<=5e4?{maxChunkChars:16e3,maxChunkLines:250,holdBelowChars:16e3,holdBelowLines:250,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}:t<=1e5&&n<=2500?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:1e5,holdBelowLines:2500,fenceAware:s}:t<=2e5?{maxChunkChars:2e4,maxChunkLines:150,holdBelowChars:2e4,holdBelowLines:150,fenceAware:s}:t<=5e5?{maxChunkChars:32e3,maxChunkLines:350,holdBelowChars:32e3,holdBelowLines:350,fenceAware:s}:{maxChunkChars:64e3,maxChunkLines:700,holdBelowChars:64e3,holdBelowLines:700,fenceAware:s}}var mg=class{md;options;pending="";tokens=[];committedChars=0;committedLines=0;fedChunks=0;parsedChunks=0;globalStateEnv=null;markedGlobalStateReason=null;constructor(e,t={}){if(this.md=e,this.options={mode:"full",autoTune:!0,retainTokens:!0,...t},this.options.retainTokens===!1&&!this.options.onChunkTokens)throw new Error("UnboundedBuffer with retainTokens=false requires onChunkTokens")}feed(e){e&&(this.pending+=e,this.fedChunks+=1)}flushAvailable(e={}){if(!this.pending)return null;const t=this.resolveWindow(),n=Uu(this.pending);if(this.pending.length=i||n>=o}function Mz(e,t,n){if(e.options.autoUnbounded===!1)return"no";if(t>=(e.options.autoUnboundedThresholdChars??wz))return"yes";const i=e.options.autoUnboundedThresholdLines??xz;return n!==void 0?n>=i?"yes":"no":t+1e.core.parse(t,n,e).tokens);const s=[],r=new mg(e,{mode:"full",...i,retainTokens:!1,onChunkTokens(l){Sz(s,l)}});if(o&&h7(n,o),r.feed(t),r.flushForce(n),o&&(p7(n),i.fallbackOnGlobalState===!1)){const l=lu(n)?.unbounded;l&&(l.globalStateDetected=o,l.globalStateFallbackDisabled=!0)}return s}const Rh=(e,t,n)=>en?n:e;function Iz(e){return e.experimental?{...e,...e.experimental}:e}const $M=[{max:5e3,strategy:"discrete",maxChunkChars:32e3,maxChunkLines:150,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:24e3,maxChunkLines:200,maxChunks:12,notes:"<=20k"},{max:1e5,strategy:"plain",notes:"<=100k plain"},{max:2e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:150,maxChunks:12,notes:"<=200k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:16,notes:"<=5M"}],RM=[{max:5e3,strategy:"discrete",maxChunkChars:16e3,maxChunkLines:250,maxChunks:8,notes:"<=5k"},{max:2e4,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=20k"},{max:1e5,strategy:"discrete",maxChunkChars:2e4,maxChunkLines:200,maxChunks:24,notes:"<=100k"},{max:5e5,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=500k"},{max:5e6,strategy:"discrete",maxChunkChars:64e3,maxChunkLines:700,maxChunks:32,notes:"<=5M"}];function Ez(e,t){return{strategy:t.strategy,maxChunkChars:t.maxChunkChars,maxChunkLines:t.maxChunkLines,maxChunks:t.maxChunks,fenceAware:e,notes:t.notes}}function BCe(e,t=Math.max(0,e/40|0),n={}){const i=Iz(n),o=i.fullChunkFenceAware??!0,s=i.fullChunkTargetChunks??8,r=i.fullChunkAdaptive!==!1;for(let l=0;l<$M.length;l++){const a=$M[l];if(e<=a.max){if(a.strategy!=="adaptive")return Ez(o,a);break}}return e>5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:Rh(Math.ceil(e/s),8e3,64e3),maxChunkLines:Rh(Math.ceil(t/s),150,700),maxChunks:Rh(Math.ceil(e/64e3),s,16),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.fullChunkSizeChars??1e4,maxChunkLines:i.fullChunkSizeLines??200,fenceAware:o,maxChunks:i.fullChunkMaxChunks}}function zM(e,t=Math.max(0,e/40|0),n={}){const i=Iz(n),o=i.streamChunkFenceAware??!0,s=i.streamChunkTargetChunks??8,r=i.streamChunkAdaptive!==!1;for(let l=0;l5e6?{strategy:"plain",fenceAware:o,notes:">5M plain"}:r?{strategy:"adaptive",maxChunkChars:Rh(Math.ceil(e/s),8e3,64e3),maxChunkLines:Rh(Math.ceil(t/s),150,700),maxChunks:Rh(Math.ceil(e/64e3),s,32),fenceAware:o,notes:"adaptive fallback"}:{strategy:"discrete",maxChunkChars:i.streamChunkSizeChars??1e4,maxChunkLines:i.streamChunkSizeLines??200,maxChunks:i.streamChunkMaxChunks,fenceAware:o}}var $Ce={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"]},inline2:{rules:["balance_pairs","emphasis","fragments_join"]}}},RCe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zCe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};function S9(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Tv(e,t){if(S9(e))throw new TypeError(`Renderer rule "${t}" returned a Promise. Use renderAsync() instead.`);return e}const OM=e=>S9(e)?e:Promise.resolve(e);function Wp(e){switch(e){case"alt":case"class":case"href":case"id":case"lang":case"rel":case"src":case"start":case"style":case"target":case"title":return e;default:return Ii(e)}}function Ec(e){if(!e||e.length===0)return"";const t=e[0];let n=` ${Wp(t[0])}="${Ii(t[1])}"`;for(let i=1;i=e.length)return{langName:e,langAttrs:""};let n=t;for(;n${t} +`;const s=e.attrIndex("class"),r=e.attrs?e.attrs.slice():[],l=`${o.langPrefix??"language-"}${i}`;return s<0?r.push(["class",l]):(r[s]=r[s].slice(),r[s][1]+=` ${l}`),`
          ${t}
          +`}return`
          ${t}
          +`}function D0(e){return!e.attrs||e.attrs.length===0?`${Ii(e.content)}`:`${Ii(e.content)}`}function F8(e){const t=Ii(e.content);return e.attrs?`${t} +`:`
          ${t}
          +`}function OCe(e,t){const n=e.attrs;if(!n||n.length===0)switch(e.type){case"paragraph_open":return`${t}

          `;case"heading_open":return`<${e.tag}>`;case"td_open":return`${t}`;case"th_open":return`${t}`;default:return null}if(n.length===1&&n[0][0]==="style"){if(e.type==="td_open")return`${t}`;if(e.type==="th_open")return`${t}`}return null}function PM(e){const t=e.attrs;return!t||t.length===0?"":t.length===1?``:t.length===2?``:``}function PCe(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":case"image":return!0;default:return!1}}function jM(e){switch(e.type){case"text":case"text_special":case"softbreak":case"hardbreak":case"html_inline":case"code_inline":return!0;default:return!1}}function ty(e,t){if(e.hidden)return"";const n=e.attrs,i=e.nesting,o=e.tag;if(!n||n.length===0)return i===0?t?`<${o} />`:`<${o}>`:i===-1?``:`<${o}>`;let s=(i===-1?"`}const jCe={langPrefix:"language-",xhtmlOut:!1,breaks:!1},Wm=Object.prototype.hasOwnProperty,ci={code_inline(e,t){return D0(e[t])},code_block(e,t){return F8(e[t])},fence(e,t,n,i,o){const s=e[t],r=s.info?Az(s.info).trim():"",{langName:l,langAttrs:a}=Tz(r),u=n.highlight,c=Ii(s.content);if(!u)return qp(s,c,r,l,n);const d=u(s.content,l,a);return S9(d)?d.then(h=>qp(s,h||c,r,l,n)):qp(s,d||c,r,l,n)},image(e,t,n,i,o){const s=e[t],r=o.renderInlineAsText(s.children||[],n,i),l=s.attrIndex("alt");return l>=0&&s.attrs?s.attrs[l][1]=r:s.attrs?s.attrs.push(["alt",r]):s.attrs=[["alt",r]],ty(s,n.xhtmlOut===!0)},hardbreak(e,t,n){return n.xhtmlOut?`
          +`:`
          +`},softbreak(e,t,n){return n.breaks?n.xhtmlOut?`
          +`:`
          +`:` +`},text(e,t){return Ii(e[t].content)},text_special(e,t){return Ii(e[t].content)},html_block(e,t){return e[t].content},html_inline(e,t){return e[t].content}};function HM(e,t,n){const i=e.info?Az(e.info).trim():"",{langName:o,langAttrs:s}=Tz(i),r=t.highlight,l=Ii(e.content);if(!r)return qp(e,l,i,o,t);const a=r(e.content,o,s);if(S9(a))throw new TypeError('Renderer rule "fence" returned a Promise. Use renderAsync() instead.');return qp(e,a||l,i,o,t)}function q3(e,t,n,i){switch(e.type){case"text":return t.text===ci.text?e.content.length===0?"":Ii(e.content):null;case"text_special":return t.text_special===ci.text_special?e.content.length===0?"":Ii(e.content):null;case"softbreak":return t.softbreak===ci.softbreak?i:null;case"hardbreak":return t.hardbreak===ci.hardbreak?n:null;case"html_inline":return t.html_inline===ci.html_inline?e.content:null;case"code_inline":return t.code_inline===ci.code_inline?D0(e):null;default:return null}}function HCe(e,t,n,i,o){const s=e[0];switch(s.type){case"text":if(o.text===ci.text)return s.content.length===0?"":Ii(s.content);break;case"text_special":if(o.text_special===ci.text_special)return s.content.length===0?"":Ii(s.content);break;case"softbreak":if(o.softbreak===ci.softbreak)return t.breaks?t.xhtmlOut?`
          +`:`
          +`:` +`;break;case"hardbreak":if(o.hardbreak===ci.hardbreak)return t.xhtmlOut?`
          +`:`
          +`;break;case"html_inline":if(o.html_inline===ci.html_inline)return s.content;break;case"code_inline":if(o.code_inline===ci.code_inline)return D0(s);break}const r=o[s.type];if(!r)return ty(s,t.xhtmlOut===!0);const l=r(e,0,t,n,i);return typeof l=="string"?l:Tv(l,s.type)}var WCe=class{rules;baseOptions;normalizedBase;constructor(e={}){this.baseOptions={...e},this.normalizedBase=this.buildNormalizedBase(),this.rules={...ci}}set(e){return this.baseOptions={...this.baseOptions,...e},this.normalizedBase=this.buildNormalizedBase(),this}render(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");if(e.length===1)return this.renderSingleToken(e,e[0],t,n);const i=this.mergeOptions(t),o=n??{},s=this.rules,r=i.xhtmlOut===!0;let l,a,u,c,d,h,p="",g="",m=!1,k="";for(let w=0;w0&&e[w-1].hidden?` +`:"";if(b==="list_item_open"&&(!y.attrs||y.attrs.length===0)&&w+3${this.renderInlineTokens(_.children||[],i,o)}`,w+=3;continue}}if(w+2 +`,w+=2;continue}}}if(b==="inline"){const x=y.children||[];if(x.length===1){m||(l=s.text,a=s.text_special,u=s.softbreak,c=s.hardbreak,d=s.html_inline,h=s.code_inline,p=i.xhtmlOut?`
          +`:`
          +`,g=i.breaks?p:` +`,m=!0);const _=x[0];switch(_.type){case"text":if(l===ci.text){k+=Ii(_.content);continue}break;case"text_special":if(a===ci.text_special){k+=Ii(_.content);continue}break;case"softbreak":if(u===ci.softbreak){k+=g;continue}break;case"hardbreak":if(c===ci.hardbreak){k+=p;continue}break;case"html_inline":if(d===ci.html_inline){k+=_.content;continue}break;case"code_inline":if(h===ci.code_inline){k+=D0(_);continue}break}}k+=this.renderInlineTokens(x,i,o);continue}const T=s[b];if(!T){const x=y.attrs;if(!y.hidden){if(!x||x.length===0)switch(b){case"hr":k+=r?`


          +`:`
          +`;continue;case"heading_open":k+=`<${y.tag}>`;continue;case"heading_close":k+=` +`;continue;case"paragraph_open":k+=`${A}

          `;continue;case"paragraph_close":k+=`

          +`;continue;case"list_item_open":{const _=e[w+1];k+=A+(_&&(_.type==="inline"||_.hidden||_.nesting===-1&&_.tag==="li")?"
        7. ":`
        8. +`);continue}case"list_item_close":k+=`
        9. +`;continue;case"bullet_list_open":k+=`${A}
            +`;continue;case"bullet_list_close":k+=`
          +`;continue;case"blockquote_open":k+=A+(e[w+1]&&e[w+1].nesting===-1&&e[w+1].tag==="blockquote"?"
          ":`
          +`);continue;case"blockquote_close":k+=`
          +`;continue;case"ordered_list_open":k+=`${A}
            +`;continue;case"ordered_list_close":k+=`
          +`;continue;case"table_open":k+=`${A} +`;continue;case"table_close":k+=`
          +`;continue;case"thead_open":k+=`${A} +`;continue;case"thead_close":k+=` +`;continue;case"tbody_open":k+=`${A} +`;continue;case"tbody_close":k+=` +`;continue;case"tr_open":k+=`${A} +`;continue;case"tr_close":k+=` +`;continue;case"td_open":k+=`${A}`;continue;case"td_close":k+=` +`;continue;case"th_open":k+=`${A}`;continue;case"th_close":k+=` +`;continue}else if(x.length===1){const _=x[0];if(b==="ordered_list_open"&&_[0]==="start"){k+=`${A}
            +`;continue}if(b==="td_open"&&_[0]==="style"){k+=`${A}`;continue}if(b==="th_open"&&_[0]==="style"){k+=`${A}`;continue}}}k+=this.renderToken(e,w,i);continue}if(b==="code_block"&&T===ci.code_block){k+=F8(y);continue}if(b==="fence"&&T===ci.fence){k+=HM(y,i);continue}if(b==="html_block"&&T===ci.html_block){k+=y.content;continue}const S=T(e,w,i,o,this);typeof S=="string"?k+=S:k+=Tv(S,y.type)}return k}async renderAsync(e,t,n){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const i=this.mergeOptions(t),o=n??{},s=this.rules;let r="";for(let l=0;l0&&e[t-1].hidden?` +`:"",c=a?`> +`:">";if(!l||l.length===0)return s===0?n.xhtmlOut?`${u}<${r} /${c}`:`${u}<${r}${c}`:s===-1?`${u}(n||(n={...t}),n);if(Wm.call(e,"highlight")&&e.highlight!==t.highlight&&(i().highlight=e.highlight),Wm.call(e,"langPrefix")){const o=e.langPrefix;o!==t.langPrefix&&(i().langPrefix=o)}if(Wm.call(e,"xhtmlOut")){const o=e.xhtmlOut;o!==t.xhtmlOut&&(i().xhtmlOut=o)}if(Wm.call(e,"breaks")){const o=e.breaks;o!==t.breaks&&(i().breaks=o)}return n||t}buildNormalizedBase(){return Object.freeze({...jCe,...this.baseOptions})}renderSingleToken(e,t,n,i){const o=this.rules,s=t.type;if(s==="code_block"&&o.code_block===ci.code_block)return F8(t);if(s==="html_block"&&o.html_block===ci.html_block)return t.content;const r=this.mergeOptions(n),l=i??{};if(s==="inline")return this.renderInlineTokens(t.children||[],r,l);const a=o[s];if(!a)return t.block?this.renderToken(e,0,r):ty(t,r.xhtmlOut===!0);if(s==="fence"&&a===ci.fence)return HM(t,r);const u=a(e,0,r,l,this);return typeof u=="string"?u:Tv(u,s)}renderInlineTokens(e,t,n){if(!e||e.length===0)return"";const i=this.rules;if(e.length===1)return HCe(e,t,n,this,i);const o=t.xhtmlOut===!0,s=o?`
            +`:`
            +`,r=t.breaks?s:` +`,l=i.text,a=i.text_special,u=i.softbreak,c=i.hardbreak,d=i.html_inline,h=i.code_inline,p=i.link_open,g=i.link_close,m=i.em_open,k=i.em_close,w=i.strong_open,y=i.strong_close;let b="";for(let A=0;A`;if(u===ci.softbreak&&A+3`,A+=1;continue}if(T.type==="em_open"&&!m&&!k&&A+2${L}`,A+=2;continue}}}if(T.type==="strong_open"&&!w&&!y&&A+2${L}`,A+=2;continue}}}switch(T.type){case"text":if(l===ci.text){const _=T.content.length===0?"":Ii(T.content);if(d===ci.html_inline&&A+1=4)return!0;continue}if(l===9){if(r+=4-r%4,s++,r>=4)return!0;continue}break}if(s0&&u<=6){if(a=3)return!0;break}default:if(l>=48&&l<=57){let a=s+1;for(;a57)break;a++}if(a=ie,!te&&pe!==void 0&&(Ne=To(e),te=Ne>=pe)),te){const Q=this.parseFullDocument(e,z,n,Ne,!1);return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:"skip-cache-large-one-shot",unbounded:!!lu(z)?.unbounded}),Q.tokens}else if($){const Q=(ge,ke,Ie)=>geIe?Ie:ge;Ne===void 0&&(Ne=To(e));const ue=oe&&!Y?zM(e.length,Ne,n.options):null,Ae=ue?.maxChunkChars??(W?Q(Math.ceil(e.length/P),8e3,64e3):Z??1e4),se=ue?.maxChunkLines??(W?Q(Math.ceil(Ne/P),150,700):ae??200),re=ue?.maxChunks??(W?Q(Math.ceil(e.length/64e3),P,32):V),G=e.length>0&&e.charCodeAt(e.length-1)===10,le=j&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&ue?.strategy!=="plain";if((R||le)&&(e.length>=Ae*2||Ne>=se*2)&&G){const ge=ey(n,e,z,{maxChunkChars:Ae,maxChunkLines:se,fenceAware:ue?.fenceAware??q,maxChunks:re});return this.cache={src:e,tokens:ge,env:z,lineCount:Ne,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,Ne),this.recordChunkedParseResult(z,R?"explicit-initial-large-doc":"default-initial-large-doc"),ge}}const be=this.parseFullDocument(e,z,n,Ne);return Ne=be.lineCount,this.cache={src:e,tokens:be.tokens,env:z,lineCount:Ne,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,Ne),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:"initial-parse",unbounded:!!lu(z)?.unbounded}),be.tokens}if(e===o.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",Go(o.env,{area:"stream",path:"stream-cache",reason:"same-source"}),o.tokens;const s=e.startsWith(o.src)?e.slice(o.src.length):null;let r=o.globalStateReason;r===void 0&&(r=Pr(o.src),o.globalStateReason=r);const l=r?null:s!==null?this.detectGlobalStateForAppend(o,s):Pr(e),a=r||l;if(a){const z=i??o.env;Mu(z);const H=Pr(e),O=this.parseFullDocument(e,z,n),R=O.tokens,j=O.lineCount;return this.cache={src:e,tokens:R,env:z,lineCount:j,lastSegment:void 0,globalStateReason:H},this.updateCacheLineCount(this.cache,j),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(z,{area:"stream",path:"stream-full",reason:`global-state:${a}`,unbounded:!!lu(z)?.unbounded}),R}const u=n.options?.streamOptimizationMinSize??this.MIN_SIZE_FOR_OPTIMIZATION;if(o.src.length5e3?H=8:c.length>1e3?H=6:c.length>200&&(H=4),H=Math.min(H,z);let O=null;const R=n.options?.streamContextParseStrategy??"chars",j=n.options?.streamContextParseMinChars??200,$=n.options?.streamContextParseMinLines??2;let W;const P=()=>(W===void 0&&(W=To(c)),W),Z=this.canDirectlyParseAppend(o),ae=Z&&this.shouldUseUnboundedAppend(e,o,c);let V=!1;if(!Z)switch(R){case"lines":V=P()>=$;break;case"constructs":if(c.length>=j){V=!0;break}if(KCe(c)){V=!0;break}V=P()>=$;break;case"chars":default:V=c.length>=j}if(H>0&&V){const q=this.getTailLines(o.src,H)+c;try{const ne=this.core.parse(q,o.env,n).tokens,ie=ne.findIndex(pe=>pe.map&&typeof pe.map[1]=="number"&&pe.map[1]>H);if(ie!==-1){const pe=ne.slice(ie),Ne=z-H;Ne!==0&&this.shiftTokenLines(pe,Ne),O={tokens:pe}}}catch{O=null}}else O=null;if(!O){const q=z;if(ae)O={tokens:Hp(n,c,o.env,{mode:"stream"})},q>0&&this.shiftTokenLines(O.tokens,q);else{const ne=this.core.parse(c,o.env,n);q>0&&this.shiftTokenLines(ne.tokens,q),O=ne}}let Y=0;if(o.tokens.length>0&&O.tokens.length>0){const q=o.tokens[o.tokens.length-1],ne=O.tokens[0];try{q.type==="inline"&&ne.type==="inline"&&(ne.children&&ne.children.length>0&&(q.children||(q.children=[]),this.appendTokens(q.children,ne.children)),q.content=(q.content||"")+(ne.content||""),Y=1)}catch{Y=0}}const oe=o.tokens.length;if(O.tokens.length>Y){const q=o.tokens,ne=O.tokens,ie=Math.min(q.length,ne.length-Y);let pe=0;for(let Ne=ie;Ne>0;Ne--){let te=!0;for(let be=0;be0&&(Y+=pe),ne.length>Y&&this.appendTokens(o.tokens,ne,Y)}if(o.src=e,o.globalStateReason=null,o.lineCount=z+(W??P()),o.tokens.length>oe){const q=this.getLastSegment(o.tokens,e,oe,o.tokens.length,e.length-c.length,z);q?o.lastSegment=q:o.lastSegment=void 0}else o.lastSegment=void 0;return this.stats.total+=1,this.stats.appendHits+=1,ae&&(this.stats.unboundedAppendHits=(this.stats.unboundedAppendHits||0)+1),this.stats.lastMode="append",Go(o.env,{area:"stream",path:ae?"stream-unbounded-append":"stream-append",reason:ae?"large-delta":"safe-append",unbounded:ae}),o.tokens}const d=i??o.env,h=this.tryTailSegmentReparse(e,o,d,n);if(h)return this.stats.total+=1,this.stats.tailHits+=1,this.stats.lastMode="tail",Go(d,{area:"stream",path:"stream-tail",reason:"tail-reparse"}),h;const p=!!n.__explicitStreamChunkFallbackSetting,g=typeof n.__canUseImplicitLargeInputStrategy=="function"?n.__canUseImplicitLargeInputStrategy():!0,m=!!n.options?.streamChunkedFallback,k=!p&&!c&&g,w=m||k,y=n.options?.streamChunkAdaptive!==!1,b=n.options?.streamChunkTargetChunks??8,A=n.options?.streamChunkSizeChars,T=n.options?.streamChunkSizeLines,S=n.options?.streamChunkMaxChunks,x=!!n.__explicitStreamChunkConfig,_=n.options?.autoTuneChunks!==!1,L=n.options?.streamChunkFenceAware??!0;let M=c&&o.lineCount!==void 0?o.lineCount+To(c):void 0;if(w){M===void 0&&(M=To(e));const z=(P,Z,ae)=>Pae?ae:P,H=_&&!x?zM(e.length,M,n.options):null,O=H?.maxChunkChars??(y?z(Math.ceil(e.length/b),8e3,64e3):A??1e4),R=H?.maxChunkLines??(y?z(Math.ceil(M/b),150,700):T??200),j=H?.maxChunks??(y?z(Math.ceil(e.length/64e3),b,32):S),$=e.length>0&&e.charCodeAt(e.length-1)===10,W=k&&e.length>=this.IMPLICIT_STREAM_CHUNK_MIN_CHARS&&H?.strategy!=="plain";if((m||W)&&(e.length>=O*2||M>=R*2)&&$){const P=ey(n,e,d,{maxChunkChars:O,maxChunkLines:R,fenceAware:H?.fenceAware??L,maxChunks:j});return this.cache={src:e,tokens:P,env:d,lineCount:M,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,M),this.recordChunkedParseResult(d,m?"explicit-fallback-large-doc":"default-fallback-large-doc"),P}}const N=this.parseFullDocument(e,d,n,M),I=N.tokens;return M=N.lineCount,this.cache={src:e,tokens:I,env:d,lineCount:M,lastSegment:void 0,globalStateReason:Pr(e)},this.updateCacheLineCount(this.cache,M),this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",Go(d,{area:"stream",path:"stream-full",reason:"fallback-full",unbounded:!!lu(d)?.unbounded}),I}recordChunkedParseResult(e,t){const n=lu(e)?.chunk,i=n?.fallback?String(n.fallbackReason||"global-state"):null;if(this.stats.total+=1,i){this.stats.fullParses+=1,this.stats.lastMode="full",Go(e,{area:"stream",path:"stream-full",reason:`global-state:${i}`,unbounded:!!lu(e)?.unbounded});return}this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",Go(e,{area:"stream",path:"stream-chunked",chunked:!0,reason:t})}parseFullDocument(e,t,n,i,o=!0){const s=Pr(e);pg(t)&&Mu(t);const r=typeof n.__canUseImplicitLargeInputStrategy!="function"||n.__canUseImplicitLargeInputStrategy()?Mz(n,e.length,i):"no";if(r==="yes"){const a=Hp(n,e,t);return Go(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-char-threshold",unbounded:!0}),{tokens:a,lineCount:i??(o?To(e):0)}}let l=i;if(r==="need-lines"&&(l=To(e),_z(n,e.length,l))){const a=Hp(n,e,t);return Go(t,{area:"stream",path:"stream-full",reason:"auto-unbounded-line-threshold",unbounded:!0}),{tokens:a,lineCount:l}}return l===void 0&&(l=o?To(e):0),{tokens:Bh(t,s,()=>this.core.parse(e,t,n).tokens),lineCount:l}}shouldUseUnboundedAppend(e,t,n){return!n||e.length=this.MIN_UNBOUNDED_APPEND_CHARS?!0:To(n)>=this.MIN_UNBOUNDED_APPEND_LINES}getAppendedSegment(e,t,n){if(n===null||n===void 0&&!t.startsWith(e)||!e.endsWith(` +`))return null;const i=n??t.slice(e.length);if(!i)return null;const o=i.length;if(i.charCodeAt(o-1)!==10)return null;let s=0,r=-1;for(let a=0;a=2));a++);if(s<2)return null;const l=(r===-1?i:i.slice(0,r)).trim();if(l.length===0)return null;if(/^[-=]+$/.test(l)){const a=e.slice(0,-1),u=a.lastIndexOf(` +`);if(a.slice(u+1).trim().length>0)return null}return this.endsInsideOpenFence(e)||this.mayContainReferenceDefinition(i)?null:i}tryTailSegmentReparse(e,t,n,i){const o=this.ensureLastSegment(t);if(!o||o.srcOffset<=0&&o.tokenStart<=0)return null;const s=t.src.slice(0,o.srcOffset);if(!e.startsWith(s))return null;const r=t.src.slice(o.srcOffset),l=e.slice(o.srcOffset);if(l===r)return null;const a=e.startsWith(t.src)?e.slice(t.src.length):null;if(a){const u=this.tryContainerTailAppendMerge(e,t,n,i,o,a);if(u)return u}if(this.mayContainReferenceDefinition(r)||this.mayContainReferenceDefinition(l))return null;try{const u=this.core.parse(l,n,i),c=this.getLastSegment(u.tokens,l);return o.lineStart>0&&this.shiftTokenLines(u.tokens,o.lineStart),t.src=e,t.env=n,t.globalStateReason=null,t.globalStateCarry=void 0,t.tokens.length=o.tokenStart,this.appendTokens(t.tokens,u.tokens),t.lineCount=o.lineStart+To(l),c?t.lastSegment={tokenStart:o.tokenStart+c.tokenStart,tokenEnd:o.tokenStart+c.tokenEnd,lineStart:o.lineStart+c.lineStart,lineEnd:o.lineStart+c.lineEnd,srcOffset:o.srcOffset+c.srcOffset}:t.lastSegment=null,t.tokens}catch{return null}}getTailLines(e,t){if(t<=0)return"";let n=t;for(let i=e.length-1;i>=0;i--)if(e.charCodeAt(i)===10&&(n--,n===0))return e.slice(i+1);return e}endsInsideOpenFence(e){const n=e.length>4e3?e.length-4e3:0,i=e.slice(n),o=i.length;let s=null,r=0;for(;r<=o;){let l=i.indexOf(` +`,r);l===-1&&(l=o);let a=r;for(;a=3&&(s?s.marker===u&&d>=s.length&&(s=null):s={marker:u,length:d})}}if(l===o)break;r=l+1}return s!==null}peek(){return this.cache?.tokens??UCe}getStats(){return{...this.stats}}appendTokens(e,t,n=0,i=t.length){for(let o=n;oU3?n.slice(n.length-U3):n,i&&(e.globalStateReason=i),i}ensureLastSegment(e){return e.lastSegment!==void 0||(e.lastSegment=this.getLastSegment(e.tokens,e.src)),e.lastSegment}getLastSegment(e,t,n=0,i=e.length,o,s){if(i<=n)return null;let r=Number.POSITIVE_INFINITY,l=-1,a=0;for(let u=i-1;u>=n;u--){const c=e[u];if(c.map&&(c.map[0]l&&(l=c.map[1])),c.nesting<0){a+=-c.nesting;continue}if(c.nesting>0){if(a-=c.nesting,c.level===0&&a<=0){const d=Number.isFinite(r)?r:c.map?.[0]??0,h=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:h,srcOffset:this.getLineStartOffset(t,d,o,s)}}continue}if(c.level===0&&a===0){const d=Number.isFinite(r)?r:c.map?.[0]??0,h=l>=d?l:c.map?.[1]??d;return{tokenStart:u,tokenEnd:i,lineStart:d,lineEnd:h,srcOffset:this.getLineStartOffset(t,d,o,s)}}}return null}getLineStartOffset(e,t,n,i){if(n!==void 0&&i!==void 0&&t>=i)return this.getLineStartOffsetFrom(e,n,t-i);if(t<=0)return 0;let o=t,s=-1;for(;o>0;){if(s=e.indexOf(` +`,s+1),s===-1)return e.length;o--}return s+1}getLineStartOffsetFrom(e,t,n){if(n<=0)return t;let i=n,o=t-1;for(;i>0;){if(o=e.indexOf(` +`,o+1),o===-1)return e.length;i--}return o+1}mayContainReferenceDefinition(e){return e.includes("]:")?/(?:^|\n)[ \t]{0,3}\[[^\]\n]+\]:/.test(e):!1}canDirectlyParseAppend(e){if(!this.endsWithBlankLine(e.src))return!1;const t=this.ensureLastSegment(e);if(!t)return!1;switch(e.tokens[t.tokenStart]?.type){case"paragraph_open":case"heading_open":case"fence":case"code_block":case"html_block":case"hr":case"table_open":return!0;default:return!1}}tryContainerTailAppendMerge(e,t,n,i,o,s){if(!s||this.mayContainReferenceDefinition(s))return null;const r=t.tokens[o.tokenStart];switch(r?.type){case"bullet_list_open":case"ordered_list_open":return this.tryListTailAppendMerge(e,t,n,i,o,s,r);case"table_open":return this.tryTableTailAppendMerge(e,t,n,i,o,s,r);default:return null}}tryListTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10)return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l0&&this.shiftTokenLines(d,h);const p=this.getListParagraphMode(t.tokens,o.tokenStart,t.tokens.length,r.level),g=this.getListParagraphMode(c,0,c.length,0);(p==="loose"||g==="loose"||this.endsWithBlankLine(t.src)||(c[0]?.map?.[0]??0)>0)&&(this.setListParagraphVisibility(t.tokens,o.tokenStart,t.tokens.length,r.level,!1),this.setListParagraphVisibility(d,0,d.length,r.level,!1)),t.tokens.splice(t.tokens.length-1,0,...d),t.src=e,t.env=n,t.globalStateReason=null;const m=h+To(s);t.lineCount=m;const k=this.getDocLineCount(e,m);return r.map&&(r.map[1]=k),t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:k,srcOffset:o.srcOffset},t.tokens}tryTableTailAppendMerge(e,t,n,i,o,s,r){if(t.src.length===0||t.src.charCodeAt(t.src.length-1)!==10||/(?:^|\n)[ \t]*\n/.test(s))return null;const l=o.lineEnd-o.lineStart,a=t.src.length-o.srcOffset;if(l=0?d.slice(h.tbodyOpenIndex+1,h.tbodyCloseIndex):d.slice(h.tbodyOpenIndex,h.tbodyCloseIndex+1);if(g.length===0)return null;const m=o.lineEnd-2;m!==0&&this.shiftTokenLines(g,m);const k=p.tbodyCloseIndex>=0?p.tbodyCloseIndex:p.tableCloseIndex,w=t.lineCount??To(t.src);t.tokens.splice(k,0,...g),t.src=e,t.env=n,t.globalStateReason=null;const y=w+To(s);t.lineCount=y;const b=this.getDocLineCount(e,y);if(r.map&&(r.map[1]=b),p.tbodyOpenIndex>=0){const A=t.tokens[p.tbodyOpenIndex];A?.map&&(A.map[1]=b)}return t.lastSegment={tokenStart:o.tokenStart,tokenEnd:t.tokens.length,lineStart:o.lineStart,lineEnd:b,srcOffset:o.srcOffset},t.tokens}getTableHeaderContext(e){const t=e.indexOf(` +`);if(t<0)return null;const n=e.indexOf(` +`,t+1);return n<0?null:e.slice(0,n+1)}getTableBodySection(e,t,n,i){if(t<0||t>=n||e[t]?.type!=="table_open")return null;let o=-1;for(let l=n-1;l>t;l--){const a=e[l];if(a.type==="table_close"&&a.level===i){o=l;break}}if(o<0)return null;let s=-1,r=-1;for(let l=t+1;l=0){for(let l=o-1;l>s;l--){const a=e[l];if(a.type==="tbody_close"&&a.level===i+1){r=l;break}}if(r<0)return null}return{tableCloseIndex:o,tbodyOpenIndex:s,tbodyCloseIndex:r}}isSingleTopLevelContainer(e,t,n,i){if(e.length<2)return!1;const o=e[0],s=e[e.length-1];if(o.type!==t||s.type!==n||o.level!==0||s.level!==0||i!==void 0&&o.markup!==i)return!1;let r=0;for(let l=0;l0&&l0||a.nesting<0)&&(r+=a.nesting)}return r===0}getListParagraphMode(e,t,n,i){let o=!1,s=!1;const r=i+2;for(let l=t;l=0;){const i=e.charCodeAt(n);if(i===32||i===9){n--;continue}return i===10}return!0}getDocLineCount(e,t=To(e)){return e.length===0?0:e.charCodeAt(e.length-1)===10?t:t+1}shiftTokenLines(e,t){if(t===0)return;let n=null;for(let i=0;i=0;s--)n.push(o.children[s]);for(;n.length>0;){const s=n.pop();if(s.map&&(s.map[0]+=t,s.map[1]+=t),s.children)for(let r=s.children.length-1;r>=0;r--)n.push(s.children[r])}}}}};const qM={default:RCe,zero:zCe,commonmark:$Ce};function QCe(e){return{core:e.core.ruler.version,block:e.block.ruler.version,inline:e.inline.ruler.version,inline2:e.inline.ruler2.version}}function YCe(e,t){return e.core.ruler.version!==t.core||e.block.ruler.version!==t.block||e.inline.ruler.version!==t.inline||e.inline.ruler2.version!==t.inline2}function UM(e){return e.experimental?{...e,...e.experimental}:e}function Ml(e,t){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0)return!0;const n=e.experimental;return!!n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0}function KM(e,t,n){for(let i=0;i=4?n.quotes=[_[0],_[1],_[2],_[3]]:n.quotes=["“","”","‘","’"]}let r=KM(s?.options,o,["fullChunkSizeChars","fullChunkSizeLines","fullChunkMaxChunks"]),l=KM(s?.options,o,["streamChunkSizeChars","streamChunkSizeLines","streamChunkMaxChunks"]),a=VM(s?.options,o,"fullChunkedFallback"),u=VM(s?.options,o,"streamChunkedFallback"),c=!1,d=null,h=null;const p=new jAe;let g=null;const m=()=>(g||(g=new qCe(n)),g);let k=null;const w=()=>(k||(k=new GCe(p)),k);let y=null;const b=()=>(y||(y=new RR({fuzzyLink:!0})),y),A=_=>!c&&!!d&&!YCe(_,d),T=(_,L)=>i==="default"&&!c&&g===null&&h!==null&&_.parse===h&&A(_)&&!_.stream.enabled&&L<(_.options.autoUnboundedThresholdChars??4e6)&&_.options.html===!1&&_.options.xhtmlOut===!1&&_.options.breaks===!1&&_.options.langPrefix==="language-"&&_.options.linkify===!1&&_.options.typographer===!1&&_.options.highlight===null,S=(_,L)=>i==="default"&&!c&&A(_)&&!_.stream.enabled&&!_.options.fullChunkedFallback&&L<(_.options.autoUnboundedThresholdChars??4e6)&&_.options.html===!1&&_.options.linkify===!1&&_.options.typographer===!1,x={core:p,block:p.block,inline:p.inline,get linkify(){const _=b();return Object.defineProperty(this,"linkify",{value:_,writable:!0,configurable:!0}),_},get renderer(){const _=m();return Object.defineProperty(this,"renderer",{value:_,writable:!0,configurable:!0}),_},options:n,__explicitFullChunkConfig:r,__explicitStreamChunkConfig:l,__explicitFullChunkFallbackSetting:a,__explicitStreamChunkFallbackSetting:u,__canUseImplicitLargeInputStrategy(){return A(this)},set(_){const L=UM(_);return this.options={...this.options,...L},(Ml(_,"fullChunkSizeChars")||Ml(_,"fullChunkSizeLines")||Ml(_,"fullChunkMaxChunks"))&&(r=!0,this.__explicitFullChunkConfig=!0),(Ml(_,"streamChunkSizeChars")||Ml(_,"streamChunkSizeLines")||Ml(_,"streamChunkMaxChunks"))&&(l=!0,this.__explicitStreamChunkConfig=!0),Ml(_,"fullChunkedFallback")&&(a=!0,this.__explicitFullChunkFallbackSetting=!0),Ml(_,"streamChunkedFallback")&&(u=!0,this.__explicitStreamChunkFallbackSetting=!0),g&&g.set(L),typeof L.stream=="boolean"&&(this.stream.enabled=L.stream,k&&(k.reset(),k.resetStats())),this},configure(_){const L=typeof _=="string"?qM[_]:_;if(!L)throw new Error("Wrong `markdown-it` preset, can't be empty");if(L.options&&this.set(L.options),L.components){const M=L.components;M.core?.rules&&this.core.ruler.enableOnly(M.core.rules),M.block?.rules&&this.block.ruler.enableOnly(M.block.rules),M.inline?.rules&&this.inline.ruler.enableOnly(M.inline.rules),M.inline2?.rules&&this.inline.ruler2.enableOnly(M.inline2.rules)}return this},enable(_,L){const M=Array.isArray(_)?_:[_],N=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],I=new Set;for(const z of N){if(!z)continue;const H=z.enable(M,!0);for(let O=0;O!I.has(H));if(z.length)throw new Error(`Rules manager: invalid rule name ${z.join(", ")}`)}return this},disable(_,L){const M=Array.isArray(_)?_:[_],N=[this.core?.ruler,this.block?.ruler,this.inline?.ruler,this.inline?.ruler2],I=new Set;for(const z of N){if(!z)continue;const H=z.disable(M,!0);for(let O=0;O!I.has(H));if(z.length)throw new Error(`Rules manager: invalid rule name ${z.join(", ")}`)}return this},use(_,...L){const M=typeof _=="function"?_:_&&typeof _.default=="function"?_.default:void 0;if(!M)throw new TypeError("MarkdownIt.use: plugin must be a function");const N=[this,...L],I=_;return c=!0,M.apply(I,N),this},render(_,L){let M;if(T(this,_.length)){L!==void 0&&(gr(L),M=F3("render"));const z=M?Zf():0,H=M?BM(_,M):DM(_);if(M&&(M.attemptMs=Zf()-z,H===null&&(M.fallbackReason="unsupported-stock-subset"),V1(L,M)),H!==null)return L!==void 0&&Go(L,{area:"render",path:"stock-fast",reason:"stock-subset"}),H}const N=L??{},I=this.parse(_,N);return M&&V1(N,M),m().render(I,this.options,N)},async renderAsync(_,L){let M;if(T(this,_.length)){L!==void 0&&(gr(L),M=F3("render"));const z=M?Zf():0,H=M?BM(_,M):DM(_);if(M&&(M.attemptMs=Zf()-z,H===null&&(M.fallbackReason="unsupported-stock-subset"),V1(L,M)),H!==null)return L!==void 0&&Go(L,{area:"render",path:"stock-fast",reason:"stock-subset"}),H}const N=L??{},I=this.parse(_,N);return M&&V1(N,M),m().renderAsync(I,this.options,N)},renderIterable(_,L={}){const M=this.parseIterable(_,L);return m().render(M,this.options,L)},async renderAsyncIterable(_,L={}){const M=await this.parseAsyncIterable(_,L);return m().renderAsync(M,this.options,L)},renderInline(_,L={}){const M=this.parseInline(_,L);return m().render(M,this.options,L)},validateLink:hz,normalizeLink:pz,normalizeLinkText:gz,utils:v6e,helpers:{...s7e},parse(_,L){if(typeof _!="string")throw new TypeError("Input data should be a String");if(L!==void 0&&gr(L),S(this,_.length)){const z=L===void 0?void 0:F3("parse"),H=z?Zf():0,O=XAe(_,z);if(z&&(z.attemptMs=Zf()-H,O===null&&(z.fallbackReason="unsupported-stock-subset"),V1(L,z)),O!==null)return L!==void 0&&Go(L,{area:"parse",path:"stock-fast",reason:"stock-subset"}),O}const M=L??{};let N;if(!this.stream.enabled&&!this.options.fullChunkedFallback&&A(this)){const z=Mz(this,_.length);if(z==="yes"){const H=Hp(this,_,M);return Go(L,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"char-threshold"}),H}z==="need-lines"&&(N=To(_))}if(!this.stream.enabled){const z=_.length,H=this.options.autoTuneChunks!==!1,O=r,R=!a&&A(this),j=!!this.options.fullChunkedFallback,$=R&&z>=2e5;let W;(j||$||N!==void 0)&&(W=N??To(_));const P=(j||$)&&H&&!O?BCe(z,W,this.options):null;if(j||$){const Z=W??0;if(j?z>=(this.options.fullChunkThresholdChars??2e4)||Z>=(this.options.fullChunkThresholdLines??400):$){if(P&&P.strategy!=="plain"){const ae=ey(this,_,M,{maxChunkChars:P.maxChunkChars,maxChunkLines:P.maxChunkLines,fenceAware:P.fenceAware,maxChunks:P.maxChunks});return L&&ZM(L,j?"explicit-full-chunk":"default-large-string"),ae}if(j){const ae=(te,be,Q)=>teQ?Q:te,V=this.options.fullChunkAdaptive!==!1,Y=this.options.fullChunkTargetChunks??8,oe=ae(Math.ceil(z/Y),8e3,64e3),q=ae(Math.ceil(Z/Y),150,700),ne=V?oe:this.options.fullChunkSizeChars??1e4,ie=V?q:this.options.fullChunkSizeLines??200,pe=V?ae(Math.ceil(z/64e3),Y,32):this.options.fullChunkMaxChunks,Ne=ey(this,_,M,{maxChunkChars:ne,maxChunkLines:ie,fenceAware:this.options.fullChunkFenceAware??!0,maxChunks:pe});return L&&ZM(L,"explicit-full-chunk"),Ne}}}if(N!==void 0&&A(this)&&_z(this,z,W??N)){const Z=Hp(this,_,M);return Go(L,{area:"parse",path:"auto-unbounded",unbounded:!0,reason:"line-threshold"}),Z}}const I=Pr(_);return Go(L,{area:"parse",path:"plain",reason:"default-plain"}),Bh(M,I,()=>p.parse(_,M,this).tokens)},parseIterable(_,L={}){return gr(L),LCe(this,_,L)},parseAsyncIterable(_,L={}){return gr(L),NCe(this,_,L)},parseIterableToSink(_,L,M={}){return gr(M),FCe(this,_,L,M)},parseAsyncIterableToSink(_,L,M={}){return gr(M),DCe(this,_,L,M)},parseInline(_,L={}){if(typeof _!="string")throw new TypeError("Input data should be a String");gr(L),pg(L)&&Mu(L);const M=p.createState(_,L,this);return M.inlineMode=!0,p.process(M),M.tokens}};if(x.stream={enabled:!!n.stream,parse(_,L){return x.stream.enabled?w().parse(_,L,x):x.parse(_,L??{})},reset(){w().reset()},peek(){return k?k.peek():[]},stats(){return k?k.getStats():{total:0,cacheHits:0,appendHits:0,unboundedAppendHits:0,tailHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}},resetStats(){k&&k.resetStats()}},s?.components){const _=s.components;_.core?.rules&&x.core.ruler.enableOnly(_.core.rules),_.block?.rules&&x.block.ruler.enableOnly(_.block.rules),_.inline?.rules&&x.inline.ruler.enableOnly(_.inline.rules),_.inline2?.rules&&x.inline.ruler2.enableOnly(_.inline2.rules)}return d=QCe(x),h=x.parse,x}var XCe=JCe;const Nz=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],ewe=["a","abbr","b","bdi","bdo","button","cite","code","data","del","dfn","em","font","i","ins","kbd","label","mark","q","s","samp","small","span","strong","sub","sup","time","u","var"],Fz=["article","aside","blockquote","details","div","figcaption","figure","footer","header","h1","h2","h3","h4","h5","h6","li","main","nav","ol","p","pre","section","summary","table","tbody","td","th","thead","tr","ul"],twe=["svg","g","path"],nwe=["address","audio","body","canvas","caption","colgroup","datalist","dd","dialog","dl","dt","fieldset","form","head","hgroup","html","iframe","legend","map","menu","meter","noscript","object","optgroup","option","output","picture","progress","rp","rt","ruby","script","select","style","template","textarea","tfoot","title","video"],iwe=["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onsearch","innerhtml","outerhtml","textcontent","innertext","srcdoc","ping"],owe=["action","data","href","src","srcset","poster","xlink:href","formaction"],swe=["script"],rwe=["pre","iframe","picture","script","style","table","tbody","td","tfoot","th","thead","textarea","tr","title","video"],Tc=new Set(Nz),Dz=new Set(Fz),B0=new Set([...Nz,...ewe,...Fz,...twe]),Bz=new Set([...B0,...nwe]),lwe=new Set(iwe),awe=new Set(owe),vg=new Set(swe),$z=new Set(rwe);function Rz(e){let t="";for(const n of e){const i=n.charCodeAt(0);i<=31||i>=127&&i<=159||/\s/u.test(n)||(t+=n)}return t}const uwe={amp:"&",bsol:"\\",colon:":",newline:` +`,sol:"/",tab:" "};function zz(e){return e.replace(/&(?:#(\d+)|#x([0-9a-f]+)|([a-z][a-z0-9]+));?/gi,(t,n,i,o)=>{const s=n??i;if(s){const r=Number.parseInt(s,n?10:16);try{return Number.isFinite(r)?String.fromCodePoint(r):""}catch{return""}}return uwe[String(o??"").toLowerCase()]??t})}const qm=new Set(["http","https","mailto","tel"]),cwe=new Set(["javascript","vbscript","data","file","ftp","blob","filesystem","intent","chrome","chrome-extension","moz-extension","ms-browser-extension","view-source"]),md=new Set(["http","https"]);function Oz(e){return e.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]?.toLowerCase()??""}const dwe=/^https?:\/\//i;function fwe(e){if(!dwe.test(e))return!1;for(const t of e){const n=t.charCodeAt(0);if(t==="&"||n<=32||n>=127&&n<=159||n>127&&/\s/u.test(t))return!1}return!0}function hwe(e,t,n){if(!Up(t,n)||!e.startsWith("file:///"))return!1;const i=e.charAt(8);return i!=="/"&&i!=="\\"}function Up(e,t){return e?(e==="a"||e==="area")&&(!t||t==="href"||t==="xlink:href"):!t||t==="href"}function pwe(e,t){return t==="href"||t==="xlink:href"?Up(e,t)?qm:md:t==="src"||t==="srcset"||t==="poster"||t==="action"||t==="formaction"||t==="data"?md:(Up(e,t),qm)}function Gd(e,t={}){if(fwe(e))return!1;const n=Rz(zz(e)).toLowerCase(),i=String(t.tagName??"").toLowerCase(),o=String(t.attrName??"").toLowerCase();if(!n)return!1;if(n.startsWith("data:")){const r=/^data:image\/(?:png|gif|jpe?g|webp|avif|bmp);/i.test(n);return i==="img"&&o==="src"?!r:!0}if(/^[\\/]{2}/.test(n))return!0;if(n.startsWith("/")||n.startsWith("./")||n.startsWith("../")||n.startsWith("#")||n.startsWith("?"))return!1;const s=Oz(n);return s?s==="file"?!hwe(n,i,o):Up(i,o)?cwe.has(s):!pwe(i,o).has(s):!1}function gwe(e){const t=zz(String(e??"")).trim();if(!t||t.startsWith("#")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("?"))return!1;const n=Oz(Rz(t).toLowerCase());return n==="http"||n==="https"}function mwe(e,t={}){const n=String(e??"").trim();return n?Gd(n,t)?"":n:""}function GM(e){return mwe(e,{tagName:"img",attrName:"src"})}function vwe(e,t,n){function i(h){return h.trim().split(" ",2)[0]===t}function o(h,p,g,m,k){return h[p].nesting===1&&h[p].attrJoin("class",t),k.renderToken(h,p,g,m,k)}n=n||{};const s=3,r=n.marker||":",l=r.charCodeAt(0),a=r.length,u=n.validate||i,c=n.render||o;function d(h,p,g,m){let k,w=!1,y=h.bMarks[p]+h.tShift[p],b=h.eMarks[p];if(l!==h.src.charCodeAt(y))return!1;for(k=y+1;k<=b&&r[(k-y)%a]===h.src[k];k++);const A=Math.floor((k-y)/a);if(A=g||(y=h.bMarks[x]+h.tShift[x],b=h.eMarks[x],y=4)){for(k=y+1;k<=b&&r[(k-y)%a]===h.src[k];k++);if(!(Math.floor((k-y)/a)=2){const r=Number(s[0]),l=Number(s[1]);Number.isFinite(r)&&Number.isFinite(l)&&(o.map=[r+t,Math.min(l+t,n)])}Array.isArray(o.children)&&Pz(o.children,t,n)}}function kwe(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach(t=>{e.use(vwe,t,{render(n,i){return n[i].nesting===1?`
            `:`
            +`}})}),e.block.ruler.before("fence","vmr_container_fallback",(t,n,i,o)=>{const s=t,r=s.bMarks[n]+s.tShift[n],l=s.eMarks[n],a=s.src.slice(r,l),u=a.match(/^:::\s*([^\s{]+)/);if(!u)return!1;const c=u[1];if(!c.trim())return!1;const d=a.slice(u[0].length).trim();let h,p;const g=d.indexOf("{"),m=g>=0?d.slice(g).trimStart():void 0;if(g===-1)h=d||void 0;else{if(h=d.slice(0,g).trim()||void 0,m?.startsWith("{")){let S=0,x=-1;for(let _=0;_0&&(p=m.slice(0,x))}p||(h=d||void 0)}if(o)return!0;const k=!!s.env.__markstreamFinal;let w=n+1,y=!1;for(;w<=i;){const S=s.bMarks[w]+s.tShift[w],x=s.eMarks[w];if(s.src.slice(S,x).trim()===":::"){y=!0;break}w++}y||(w=i);const b=s.push("vmr_container_open","div",1);if(b.attrSet("class",`vmr-container vmr-container-${c}`),b.map=[n,y?w:i],b.meta={...b.meta??{},unclosed:!y&&!k},h&&b.attrSet("data-args",h),p)try{const S=JSON.parse(p);for(const[x,_]of Object.entries(S)){const L=_!=null&&typeof _=="object";b.attrSet(`data-${x}`,L?JSON.stringify(_):String(_))}}catch{const S=ywe(p);if(S)for(const[x,_]of Object.entries(S)){const L=_!=null&&typeof _=="object";b.attrSet(`data-${x}`,L?JSON.stringify(_):String(_))}else b.attrSet("data-attrs",p)}const A=[];for(let S=n+1;SS.trim().length>0)){let S=A.join(` +`);S.endsWith(` +`)||(S+=` +`),S.endsWith(` + +`)||(S+=` +`);const x=s.tokens[s.tokens.length-1];x&&(x.raw=S);const _=[];s.md.block.parse(S,s.md,s.env,_),Pz(_,n+1,n+1+A.length),s.tokens.push(..._)}const T=s.push("vmr_container_close","div",-1);return y||(T.hidden=!0,T.map=[i,i]),s.line=y?w+1:w,!0},{alt:["paragraph","reference","blockquote","list"]})}function fa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Do(e){let t=!1,n=!1;for(let i=0;i")return i}return-1}function _9(e){const t=[],n=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let i;for(;(i=n.exec(e))!==null;){const o=i[1];if(!o)continue;const s=i[2]||i[3]||i[4]||"";t.push([o,s])}return t}const bwe=/^[a-z][a-z0-9_-]*$/;function QM(e){return bwe.test(String(e??"").trim().toLowerCase())}function zl(e){const t=String(e??"").trim();if(!t)return"";if(!t.startsWith("<"))return QM(t)?t.toLowerCase():"";let n=1;for(;n]/.test(s)?"":QM(o)?o:""}function wf(e){if(!e||e.length===0)return[];const t=new Set,n=[];for(const i of e){const o=zl(i);!o||t.has(o)||(t.add(o),n.push(o))}return n}function Awe(...e){const t=new Set,n=[];for(const i of e)for(const o of wf(i))t.has(o)||(t.add(o),n.push(o));return n}function Cwe(e){const t=wf(e);return{key:t.join(","),tags:t}}function jz(e){return zl(e)}function wwe(e,t){const n=String(e??""),i=zl(t);if(!i)return!1;const o=fa(i),s=n.match(new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?(\s*\/)?>`,"i"));return s?s[1]?!0:new RegExp(String.raw`<\s*\/\s*${o}\s*>`,"i").test(n):!1}function Hz(e,t){const n=zl(t);return!!n&&!B0.has(n)&&!wwe(e,n)}function xwe(e,t){const n=String(e??""),i=zl(t);if(!i)return n;const o=fa(i),s=new RegExp(String.raw`^\s*<\s*${o}(?:\s[^>]*)?>\s*`,"i"),r=new RegExp(String.raw`\s*<\s*\/\s*${o}\s*>\s*$`,"i");return n.replace(s,"").replace(r,"")}const Wz=Tc,Swe=B0,qz=new Set(Dz);qz.delete("details");const _we=/<([A-Z][\w-]*)(?=[\s/>]|$)/gi,Mwe=/<\/\s*([A-Z][\w-]*)(?=[\s/>]|$)/gi,D8=/^<\s*(?:\/\s*)?([A-Z][\w-]*)/i,Iwe=/^<\s*([A-Z][\w:-]*)(?=[\s/>]|$)/i;function ny(e){return(e.match(D8)?.[1]??"").toLowerCase()}function w7(e){return/^\s*<\s*\//.test(e)}function x7(e,t){return Wz.has(t)||/\/\s*>\s*$/.test(e)}function Ewe(e,t){let n=0;for(let i=0;i0&&n--;continue}x7(o,s)||n++}}return n}function YM(e,t,n=0){const i=new RegExp(String.raw`<\s*(\/?)\s*${fa(t)}(?=[\s>/])[^>]*>`,"gi");i.lastIndex=Math.max(0,n);let o=0,s;for(;(s=i.exec(e))!==null;){const r=s[0]??"",l=!!s[1],a=!l&&/\/\s*>$/.test(r);if(l){if(o===0)return{start:s.index,end:s.index+r.length};o--;continue}a||o++}return null}function Lwe(e,t){const n=new RegExp(String.raw`<\s*(\/?)\s*${fa(t)}(?=[\s>/])[^>]*>`,"gi");let i=0,o;for(;(o=n.exec(e))!==null;){const s=o[0]??"",r=!!o[1],l=!r&&/\/\s*>$/.test(s);if(r){i>0&&i--;continue}l||i++}return i}function iy(e){const t=e;return String(t.raw??t.content??t.markup??"")}function Nwe(e){const t=e;return t.meta||(t.meta={}),t.meta}function K3(e,t,n){const i=Nwe(e);i.markstreamCustomHtmlRaw=t,i.markstreamCustomHtmlInner=n}function Fwe(e,t){if(!t.size)return;const n=Array.from(t,p=>new RegExp(String.raw`<\s*${fa(p)}(?=[\s>/])`,"i")),i=[];let o=!1;const s=p=>p?n.some(g=>g.test(p)):!1,r=p=>{if(!(!p||!i.length))for(const g of i)g.raw+=p,g.inner+=p},l=()=>{!i.length||!o||(r(` +`),o=!1)},a=p=>{r(p)},u=p=>{for(let m=0;m{const g=i[i.length-1]?.tag;if(!g)return null;const m=new RegExp(String.raw`^\s*<\s*\/\s*${fa(g)}\s*>`,"i");return p.match(m)?.[0]??null},d=p=>!!c(p),h=(p,g,m)=>{const k=m??(p.type==="html_inline"?ny(g):"");if(!(k&&t.has(k))){r(g);return}const w=w7(g),y=!w&&x7(g,k);if(w){if(!i.length||i[i.length-1].tag!==k){r(g);return}u(g);return}if(r(g),y){K3(p,g,"");return}i.push({tag:k,token:p,raw:g,inner:""})};for(const p of e){if(p.type==="inline"&&Array.isArray(p.children)){const g=String(p.content??"");if(d(g)?o=!1:l(),!i.length&&!s(g)){o=!1;continue}let m=0,k=!0;for(const w of p.children){const y=iy(w),b=w.type==="html_inline"?ny(y):"",A=b&&t.has(b);let T=y;if(k&&g&&y&&(i.length||A)){const S=g.indexOf(y,m);if(S!==-1)a(g.slice(m,S)),T=g.slice(S,S+y.length),m=S+y.length;else{if(i.length&&!A)continue;k=!1}}h(w,T,b)}k&&g&&m0;continue}if(i.length&&typeof p.content=="string"){const g=iy(p),m=p.type==="html_block"?c(g):null;if(m){u(`${o?` +`:""}${m}`),o=i.length>0;continue}if(!p.content)continue;l(),r(p.content),o=!0}}for(const p of i)K3(p.token,p.raw,p.inner)}function Dwe(e){return/^\s*<\s*[!?]/.test(e)}function Bwe(e){const t=new Set(Swe);if(e&&Array.isArray(e))for(const n of e){const i=String(n??"").trim();if(!i)continue;const o=i.match(/^[<\s/]*([A-Z][\w-]*)/i);o&&t.add(o[1].toLowerCase())}return t}function JM(e,t){if(t.has(e))return!0;for(const n of t)if(n.startsWith(e))return!0;return!1}function $we(e,t){let n=null;for(const s of e.matchAll(_we)){const r=s.index??-1;if(r<0)continue;const l=(s[1]??"").toLowerCase();JM(l,t)&&Do(e.slice(r))===-1&&(!n||r")&&(!n||s")&&(!n||s{const p=h,g=new Set(n),m=Array.isArray(p.env?.__markstreamCustomHtmlTags)?p.env.__markstreamCustomHtmlTags:[];for(const b of m){const A=zl(String(b??""));A&&g.add(A)}const k=Bwe(Array.from(g)),w=new Set(Owe);for(const b of g)w.add(b);return{autoCloseInlineTagSet:w,commonHtmlTags:k,customTagSet:g,shouldMergeHtmlBlockTag:b=>g.has(b)||!k.has(b)||qz.has(b)}},o=h=>{if(h.type==="html_block")return String(h.content??"");if(h.type!=="inline"||!Array.isArray(h.children)||h.children.length!==1)return"";const p=h.children[0];return p?.type!=="html_block"?"":String(h.content??p.content??"")},s=(h,p)=>{h.type="html_block",h.content=p,h.raw=p,h.children=[]},r=h=>h.replace(/^(?:\r?\n)+/,""),l=h=>/^(?: {4}|\t)/.test(h),a=h=>h.replace(/^(?: {4}|\t)/gm,""),u=(h,p)=>{const g=r(h);if(!/\S/.test(g))return[];if(l(g))return[{type:"code_block",content:a(g),raw:g}];const m=g.replace(/^[\t ]+/,"");if(!m)return[];if(m.startsWith("<"))return[{type:"html_block",content:m}];const k={type:"inline",tag:"",nesting:0,content:m,children:[{type:"text",content:m,raw:m}]};return p==="paragraph"?[{type:"paragraph_open",tag:"p",nesting:1},k,{type:"paragraph_close",tag:"p",nesting:-1}]:p==="text"?[{type:"text",content:m,raw:m}]:[k]},c=(h,p,g)=>h[p-1]?.type==="paragraph_open"&&h[p+1]?.type==="paragraph_close"?"inline":g,d=(h,p)=>{const g=r(p);return!/\S/.test(g)||h.type!=="inline"||!Array.isArray(h.children)?!1:(h.content=`${String(h.content??"")}${g}`,h.children.push({type:"text",content:g,raw:g}),!0)};e.core.ruler.after("inline","fix_html_inline_streaming",h=>{const p=h.tokens??[],{commonHtmlTags:g,customTagSet:m}=i(h);for(const k of p){const w=k;if(w.type!=="inline"||!Array.isArray(w.children))continue;const y=String(w.content??""),b=w.children.length?w.children:y.includes("<")?[{type:"text",content:y,raw:y}]:null;if(b)try{const A=zwe(b,g);if(w.children=A.children,A.pendingBuffer){const T=y.lastIndexOf(A.pendingBuffer);if(T!==-1){const S=y.slice(0,T);w.content=S,typeof w.raw=="string"&&(w.raw=S)}}}catch(A){console.error("[applyFixHtmlInlineTokens] failed to fix streaming html inline",A)}}Fwe(p,m)}),e.core.ruler.push("fix_html_inline_tokens",h=>{const p=h.tokens??[],{autoCloseInlineTagSet:g,customTagSet:m,shouldMergeHtmlBlockTag:k}=i(h),w=[];for(let y=0;y0){const[T,S]=w[w.length-1];if(y!==S){if(b.type==="paragraph_open"||b.type==="paragraph_close"){p.splice(y,1),y--;continue}const x=String(b.content??b.raw??"");if(x){const _=p[S],L=`${String(_.content||"")} +${x}`,M=Do(L),N=M===-1?null:YM(L,T,M+1);if(N){const I=L.slice(0,N.end),z=L.slice(N.end);_.content=I,_.loading=!1,p.splice(y,1),w.pop();const H=d(_,z)?[]:u(z,c(p,y,"paragraph"));H.length&&p.splice(y,0,...H),y--;continue}_.content=L,_.loading!==!1&&(_.loading=!0)}p.splice(y,1),y--;continue}}const A=o(b);if(A){if(Dwe(A))continue;const T=(A.match(/<\s*(?:\/\s*)?([^\s>/]+)/)?.[1]??"").toLowerCase(),S=/^\s*<\s*\//.test(A);if(!T||!k(T))continue;if(s(b,A),!S)T&&!new RegExp(`^\\s*<\\s*${T}\\b[^>]*\\/\\s*>`,"i").test(A)&&Lwe(A,T)>0&&w.push([T,y]);else if(w.length>0&&T&&w[w.length-1][0]===T){const[,x]=w[w.length-1],_=p[x];_.content=`${String(_.content||"")} +${A}`,_.loading=!1,w.pop(),p.splice(y,1),y--}continue}else if(w.length>0){if(b.type==="paragraph_open"||b.type==="paragraph_close"){p.splice(y,1),y--;continue}const T=b.content||"",S=new RegExp(`<\\s*\\/\\s*${w[w.length-1][0]}\\s*>`,"i").test(T);if(T){const[,x]=w[w.length-1],_=p[x];_.content=`${_.content||""} +${T}`,_.loading!==!1&&(_.loading=!S)}S&&w.pop(),p.splice(y,1),y--}else continue}if(m.size>0){const y=new Map,b=new Map,A=x=>{let _=y.get(x);return _||(_=new RegExp(`<\\s*${x}\\b`,"i"),y.set(x,_)),_},T=x=>{let _=b.get(x);return _||(_=new RegExp(`<\\s*\\/\\s*${x}\\s*>`,"i"),b.set(x,_)),_},S=[];for(let x=0;x0){const N=S[S.length-1],I=p[N.index],z=_.type==="html_block"?T(N.tag).exec(L):null;if(z){const R=z.index+z[0].length,j=L.slice(0,R),$=L.slice(R);I.content=`${String(I.content??"")} +${j}`,Array.isArray(I.children)&&I.children.push({type:"html_inline",content:``,raw:``}),S.pop();const W=d(I,$)?[]:u($,c(p,x,"paragraph"));W.length?p.splice(x,1,...W):(p.splice(x,1),x--);continue}if(_.type!=="inline")continue;const H=Array.isArray(_.children)?_.children:[],O=Ewe(H,N.tag);if(O!==-1){const R=H.slice(0,O+1),j=H.slice(O+1),$=R.map(W=>String(W?.content??W?.raw??"")).join("");if(I.content=`${String(I.content??"")} +${$}`,Array.isArray(I.children)&&I.children.push(...R),j.length){const W=j.map(P=>String(P.content??P.raw??"")).join("");if(W.trim()){const P=W.replace(/^\s+/,"");if(d(I,W))p.splice(x,1),x--;else if(P.startsWith("<"))p.splice(x,1,{type:"html_block",content:P});else{const Z=u(W,c(p,x,"paragraph"));p.splice(x,1,...Z)}}else p.splice(x,1),x--}else p.splice(x,1),x--;S.pop();continue}I.content=`${String(I.content??"")} +${L}`,Array.isArray(I.children)&&I.children.push(...H),p.splice(x,1),x--;continue}if(_.type!=="inline")continue;const M=Array.isArray(_.children)?_.children:[];for(const N of m)if((M.length?Twe(M,N):A(N).test(L)&&!T(N).test(L)?1:0)>0){S.push({tag:N,index:x});break}}}{let y=0;for(let b=0;b0?y--:(p.splice(b,1),b--))}}for(let y=0;y/]+)/)?.[1]??"").toLowerCase();if(_.startsWith("!")||_.startsWith("?")){b.loading=!1;continue}if(m.has(_)){const O=String(b.content??""),R=Do(O),j=R===-1?null:YM(O,_,R+1);b.loading=j?!1:b.loading!==void 0?b.loading:!0;const $=j?.start??-1,W=j?j.end-j.start:0;if($!==-1){const P=O.slice(0,$+W);let Z="";R!==-1&&R<$&&(Z=O.slice(R+1,$)),b.children=[{type:_,content:Z,raw:P,attrs:[],tag:_,loading:!1}],b.content=P,b.raw=P;const ae=u(O.slice($+W)||"","text");ae.length&&p.splice(y+1,0,...ae)}else b.children=[{type:_,content:"",raw:O,attrs:[],tag:_,loading:!0}];continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(_))continue;b.type="inline";const L=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let M;for(;(M=L.exec(b.content||""))!==null;)M[1],M[2]||M[3]||M[4];const N=String(b.content??""),I=new RegExp(`<\\/\\s*${_}\\s*>`,"i").exec(N),z=I?I.index:-1,H=I?I[0].length:0;if(z!==-1){const O=N.slice(0,z+H),R=(N.slice(z+H)||"").replace(/^\s+/,"");b.children=[{type:"html_block",content:O,tag:_,loading:!1}],b.content=O,b.raw=O,R&&p.splice(y+1,0,R.startsWith("<")?{type:"html_block",content:R}:{type:"text",content:R,raw:R})}else b.children=[{type:"html_block",content:b.content,tag:_,loading:!0}];continue}if(!b||b.type!=="inline")continue;if(b.children.length===2&&b.children[0].type==="html_inline"){const _=(b.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase(),L=b.children[1],M=String(L?.content??"").match(/^<\s*\/\s*([^\s>]+)/)?.[1]?.toLowerCase()??"";if(L?.type==="html_inline"&&M===_)continue;g.has(_)?(b.children[0].loading=!0,b.children[0].tag=_,b.children.push({type:"html_inline",tag:_,loading:!0,content:``})):b.children=[{type:"html_block",loading:!0,tag:_,content:String(b.children[0]?.content??"")+String(b.children[1]?.content??"")}];continue}else if(b.children.length===3&&b.children[0].type==="html_inline"&&b.children[2].type==="html_inline"){const _=(b.children[0].content?.match(/<([^\s>/]+)/)?.[1]??"").toLowerCase();if(g.has(_))continue;b.children=[{type:"html_block",loading:!1,tag:_,content:b.children.map(L=>L.content).join("")}];continue}if(!b.content?.startsWith("<")||b.children?.length!==1)continue;const A=String(b.content),T=b,S=T.children[0];if(S?.type!=="html_inline"){/^<\s*(?:\/\s*)?[A-Z][\w:-]*\s*$/i.test(A)&&(T.children.length=0);continue}const x=String(S.content??A).match(Iwe)?.[1]?.toLowerCase()??"";if(x){if(/\/\s*>\s*$/.test(A)||Wz.has(x)){T.children=[{type:"html_inline",content:A}];continue}T.children.length=0}}})}function jwe(e){const t=e.trim();return!t||/^&[a-z0-9#]+;/i.test(t)?!1:!!(/^(?:const|let|var|function|class|import|export|if|for|while|return|await|async|yield|try|catch|throw|new|typeof|instanceof|switch|case|break|continue|def|ruby|perl|print|echo|true|false|null|undefined|NaN|Infinity|this)\b/.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\])*\s*\(/i.test(t)||/[a-z_$][\w$]*(?:\.[a-z_$][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[[\d+\]])+/i.test(t)||/\w+\s*(?:===?|!==?|<=?|>=?|\+\+|--|&&|\|\||\?\.)/.test(t)||/^(?:!!|\+\+|--)\s*\w/.test(t)||/[\w$]+\s*(?:\+=|-=|\*=|\/=|%=|\*\*=|=)/.test(t)||/^(?:https?:\/\/|ftp:\/\/|file:\/\/|\/\/|www\.)/i.test(t)||/`[^`]*\$\{[^}]*\}[^`]*`/.test(t)||/<\/?[A-Z][a-zA-Z0-9]*/.test(t)||/<[a-z][a-z0-9]*\s[^>]+>/.test(t)||/^(["'`]).*\1\s*[;,]?$/.test(t)||/^\[[\s\S]*\]$/.test(t)||/^\{[\s\S]*\}$/.test(t)||/^\(\s*\)$/.test(t)||/[\w$]+(?:\s*[+\-*/%<>=!&|^~:]+\s*[\w$]+|\s*\.\s*[\w$]+)/.test(t)||/=>|->|::/.test(t)||/^@[\w.$]+$/.test(t)||/^(?:0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\d+(?:\.\d*)?(?:px|em|rem|%|vh|vw|deg|s|ms)?)$/.test(t)||/^\$[\w$]+\s*[=:]/.test(t)||/\|\s*\w+|\w+\s*\|/.test(t)||/^(?:git|npm|yarn|pnpm|bun|pip|cargo|go|rust|python|node|java|mvn|gradle|docker|kubectl)\s+/.test(t)||/(?:console|window|document|Math|JSON|Date|Array|Object|String|Number|Boolean)\.[a-zA-Z]/.test(t)||/^(?:\/\/|#|\/\*|\*\/|)/.test(t)||/^(?:<<<|<<\s*['"]?\w+['"]?)/.test(t))}function Hwe(e,t={}){t.enabled!==!1&&e.core.ruler.after("inline","fix_indented_code_block",n=>{const i=n.tokens??[];for(let o=0;oa.trim().length>0);if(l.length===1&&!jwe(l[0]??"")){const a=l[0]??"",u=s.level??0;i.splice(o,1,{type:"paragraph_open",tag:"p",nesting:1,level:u},{type:"inline",tag:"",nesting:0,level:u,content:a,children:[{type:"text",content:a,level:u+1,raw:a}],block:!0},{type:"paragraph_close",tag:"p",nesting:-1,level:u}),o+=2}}})}const Uz=/\.([a-z0-9]{1,15})$/i,Wwe=/[_()[\]{}<>]/u,qwe=/^(?:https?:\/\/|ftp:\/\/|mailto:|www\.)/i,Uwe=/[?#@]/u,Kwe=/[\\/]/u,Vwe=/^[\p{L}\p{N}./\\-]+$/u,Zwe=/^[A-Za-z0-9-]{1,63}$/u,Gwe=/^xn--[a-z0-9-]{2,59}$/i,Qwe=/^(?:[A-Z]{1,6}|\d{1,8})$/u,Ywe=/^(?=.{1,12}$)[A-Z0-9]+(?:[-.][A-Z0-9]+)*$/iu,Jwe=/文件名\s*[::]?|附件\s*[::]?|路径\s*[::]?|路徑\s*[::]?|文件列表\s*[::]?|文档列表\s*[::]?|文檔列表\s*[::]?|\bfile\s*names?\b\s*[::]?|\battachments?\b\s*[::]?|\bpaths?\b\s*[::]?|\bfile\s+lists?\b\s*[::]?|\bdocument\s+lists?\b\s*[::]?/iu,Xwe=/文件名\s*[::]?|文件\s*[::]?|附件\s*[::]?|档案\s*[::]?|檔案\s*[::]?|文档\s*[::]?|文檔\s*[::]?|资料\s*[::]?|資料\s*[::]?|路径\s*[::]?|路徑\s*[::]?|\bfile\s*name\b\s*[::]?|\battachments?\b\s*[::]?|\bfiles?\b\s*[::]?|\bdocuments?\b\s*[::]?|\bdocs?\b\s*[::]?|\bpaths?\b\s*[::]?/iu,exe=/股票代码|股票代碼|证券代码|證券代碼|(?:代码|代碼|交易所|后缀|後綴|市场|市場)(?=$|[\s::/|,,、()()])|\btickers?\b|\bsymbols?\b|\bexchanges?\b/iu,txe=2e3,nxe=512,ixe={},oxe=new Set(["ai","md","py","rs","sh","zip"]),Kz=new Set(["as","bj","de","hk","l","ln","ny","pa","sh","ss","sz","t","us"]),sxe=new Set([...Kz,"at","ax","cn","co","it","jp","ks","mc","mx","nz","pl","sa","si","to","tw"]),rxe=new Set(["com","dev","io","page","site"]),lxe=new Set(["app","apk","dmg","exe","ipa","lock","log","markdown","webmanifest"]),axe=new Set(["7z","ai","astro","avi","bash","bz2","c","cjs","cpp","cs","csv","doc","docx","fish","flac","gif","go","gz","h","hpp","html","java","jpeg","jpg","js","json","jsx","kt","md","mdx","mjs","mov","mp3","mp4","pdf","php","png","ppt","pptx","ps1","py","rar","rb","rs","sh","sql","svg","swift","svelte","tar","tgz","toml","ts","tsx","txt","vue","wav","webp","xls","xlsx","xml","yaml","yml","zip","zsh"]),Rd=new Map;function XM(e,t){if(!e||e.length>nxe)return t;for(Rd.set(e,t);Rd.size>txe;){const n=Rd.keys().next().value;if(!n)break;Rd.delete(n)}return t}function $0(e){return e?.filename===!0||e?.explicitFilename===!0||e?.marketTicker===!0}function V3(e,t){const n={filename:e?.filename||t?.filename,explicitFilename:e?.explicitFilename||t?.explicitFilename,marketTicker:e?.marketTicker||t?.marketTicker};return $0(n)?n:void 0}function eI(e,t){if(!$0(t))return e;const n=e?.__linkifyDemotionContext;return{...e,__linkifyDemotionContext:{filename:n?.filename||t?.filename,explicitFilename:n?.explicitFilename||t?.explicitFilename,marketTicker:n?.marketTicker||t?.marketTicker}}}function tI(e){const t=yg(e);return $0(t)?t:void 0}function uxe(e){return e.replace(/^[\s>*_`[\]((【《"'“‘]+/u,"").replace(/[\s<*_`\]))】》"'.。;;,,、::!?!?]+$/u,"")}function nI(e,t){if(!$0(t))return;const n=String(e??"").trim().split(/\s+/u).map(uxe).filter(Boolean);if(n.length===0)return;const i={};return t?.filename&&n.every(o=>oy(o,{filename:!0,explicitFilename:t.explicitFilename}))&&(i.filename=!0),t?.explicitFilename&&i.filename&&(i.explicitFilename=!0),t?.marketTicker&&n.every(o=>oy(o,{marketTicker:!0}))&&(i.marketTicker=!0),$0(i)?i:void 0}function Gc(e,t=!1){let n;return{options(i){return t||i==null?eI(e,n):eI(e,V3(tI(i),nI(i,n)))},remember(i){const o=tI(i);n=t?V3(n,o):V3(o,nI(i,n))},reset(){n=void 0}}}function iI(e){return Zwe.test(e)&&!e.startsWith("-")&&!e.endsWith("-")}function cxe(e){const t=e.split(".");if(t.length<2)return!1;const n=t[t.length-1]?.toLowerCase()??"";return iI(n)||Gwe.test(n)?t.every(iI):!1}function Vz(e){return Array.from(e).some(t=>t.charCodeAt(0)>127)}function dxe(e){return e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"").split(/[/?#]/,1)[0]??""}function fxe(e){return e.split(".").some(t=>t.toLowerCase().startsWith("xn--"))}function Zz(e,t,n){const i=dxe(t);return Vz(e)&&fxe(i)&&String(n??"").toLowerCase().includes(i.toLowerCase())}function hxe(e){if(!e)return!1;if(e.includes("文件")||e.includes("附件")||e.includes("路径")||e.includes("路徑")||e.includes("文档")||e.includes("文檔")||e.includes("档案")||e.includes("檔案")||e.includes("资料")||e.includes("資料")||e.includes("股票")||e.includes("证券")||e.includes("證券")||e.includes("代码")||e.includes("代碼")||e.includes("交易所")||e.includes("后缀")||e.includes("後綴")||e.includes("市场")||e.includes("市場"))return!0;const t=e.toLowerCase();return t.includes("file")||t.includes("attachment")||t.includes("document")||t.includes("doc")||t.includes("path")||t.includes("ticker")||t.includes("symbol")||t.includes("exchange")}function yg(e){const t=String(e??""),n=Rd.get(t);return n?(Rd.delete(t),Rd.set(t,n),n):hxe(t)?XM(t,{explicitFilename:Jwe.test(t),filename:Xwe.test(t),marketTicker:exe.test(t)}):XM(t,ixe)}function pxe(e){return cxe(e.split(/[\\/]/)[0]??"")}function gxe(e){const t=e.replace(/[^a-z]/gi,"");return t.length>=2&&t===t.toUpperCase()}function mxe(e){if(Wwe.test(e)||!Vwe.test(e))return!0;if(Kwe.test(e))return!pxe(e);const t=e.replace(Uz,"");return Vz(t)?!0:t.split(".").filter(Boolean).some(gxe)}function vxe(e,t,n){if(!(n?sxe:Kz).has(t))return!1;const i=e.slice(0,-(t.length+1));return i===""?e.startsWith("."):(n?Ywe:Qwe).test(i)}function oy(e,t={}){if(!e||qwe.test(e)||Uwe.test(e))return!1;const n=e.match(Uz);if(!n)return!1;const i=String(n[1]??"").toLowerCase();return vxe(e,i,t.marketTicker===!0)?!0:axe.has(i)?!oxe.has(i)||t.filename?!0:mxe(e):!!(t.explicitFilename&&rxe.has(i)||t.filename&&lxe.has(i))}const Gz=new WeakMap,Qz=new WeakSet;function B8(e,t){return Gz.set(e,t),e}function yxe(e){return Gz.get(e)}function kxe(e){Qz.add(e)}function bxe(e){return e===void 0||Qz.has(e)}const oI=["!"];function sI(e){return e==="linkify"||e==="autolink"?e:"recovery"}function $r(e){return{type:"text",content:e,raw:e}}function vd(e,t){t===1?e.push({type:"em_open",tag:"em",nesting:1}):t===2?e.push({type:"strong_open",tag:"strong",nesting:1}):t===3&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function yd(e,t){t===1?e.push({type:"em_close",tag:"em",nesting:-1}):t===2?e.push({type:"strong_close",tag:"strong",nesting:-1}):t===3&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function Ku(e,t,n,i="recovery"){let o="";if(t.includes('"')){const s=t.split('"');t=s[0].trim(),o=s[1].trim()}return B8({type:"link",loading:n,href:t,title:o,text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`},i)}function Axe(e,t){if(!(!e||!t)&&(e.href=String(e.href??"")+t,e.text=String(e.text??"")+t,e.raw=`[${e.text}](${e.href})`,Array.isArray(e.children)&&e.children.length)){const n=e.children[e.children.length-1];n?.type==="text"?(n.content=String(n.content??"")+t,n.raw=String(n.raw??"")+t):e.children.push($r(t))}}function rI(e,t){let n=-1;for(const i of t){const o=e.indexOf(i);o!==-1&&(n===-1||on?.[0]==="href")?.[1];return typeof t=="string"?t:""}function wxe(e,t){if(!e)return;e.attrs=Array.isArray(e.attrs)?e.attrs:[];const n=e.attrs.findIndex(i=>i?.[0]==="href");n>=0?e.attrs[n][1]=t:e.attrs.push(["href",t])}function lI(e,t,n){let i="";for(let o=t+1;o{const n=t.tokens??[];for(let i=0;ir.type==="code_inline"),i=new Map;let o=0;for(let r=0;r0&&u?aI(u):-1;if(c!==-1&&u)for(const d of u.slice(c))d==="("?o++:d===")"&&o>0&&o--}a!==-1&&(r=a);continue}if(!(l.type!=="text"||typeof l.content!="string"))for(const a of l.content)a==="("?o++:a===")"&&o>0&&o--}const s=yg(t);for(let r=0;r<=e.length-1;r++){r<0&&(r=0);const l=e[r];if(!l)break;if(l.type==="link_open"&&(l.markup==="linkify"||l.markup==="autolink")){let a=-1;for(let u=r+1;u0){const g=aI(u);g!==-1&&(d===-1||g=m.content.length){p-=m.content.length;continue}if(p<0)break;const k=m.content[p],w=m.content.slice(0,p);let y=m.content.slice(p);for(let T=g+1;T0&&(e.splice(g+1,b),a=g+1);let A=c;if(k==="!"&&h!==-1)A=c.slice(0,h);else if(y){const T=encodeURI(y);if(T&&c.endsWith(T))A=c.slice(0,c.length-T.length);else{const S=k?encodeURI(k):"",x=S?c.indexOf(S):-1;x!==-1&&(A=c.slice(0,x))}}A!==c&&wxe(l,A),y&&e.splice(a+1,0,$r(y));break}}}if(!n){if(l?.type==="em_open"&&e[r-1]?.type==="text"&&e[r-1].content?.endsWith("*")){const a=e[r-1].content?.replace(/(\*+)$/,"")||"";e[r-1].content=a,l.type="strong_open",l.tag="strong",l.markup="**";for(let u=r+1;ud[0]==="href")?.[1]||"";if(e[r+3]?.type==="text"){const d=(e[r+3]?.content??"").indexOf(")"),h=d===-1;d===-1&&(c+=e[r+3]?.content?.slice(0,d)||"",e[r+3].content=""),a.push(Ku(u,c,h,"linkify"));const p=e[r+3].content?.replace(/^\)\**/,"");p&&a.push($r(p)),e.splice(r-4,8,...a)}else a.push(B8({type:"link",loading:!0,href:c,title:"",text:u,children:[{type:"text",content:c,raw:c}],raw:`[${u}](${c})`},"linkify")),e.splice(r-4,7,...a);continue}else if(e[r-1].content==="]("&&e[r-3]?.type==="text"&&e[r-3].content?.endsWith(")"))if(e[r-2]?.type==="strong_open"){const[a,u]=e[r-3].content?.split("[**")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else if(e[r-2]?.type==="em_open"){const[a,u]=e[r-3].content?.split("[*")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}else{const[a,u]=e[r-3].content?.split("[")||[];e[r+1].content=u||"",e[r-3].content=a||"",e[r-1].content=""}}if(l.type==="link_close"&&l.nesting===-1&&e[r-2]?.type==="link_open"&&e[r+1]?.type==="text"&&e[r-1]?.type==="text"){const a=e[r-1].content||"",u=e[r-2].attrs||[],c=u.find(w=>w[0]==="href")?.[1]||"",d=u.find(w=>w[0]==="title")?.[1]||"";let h=3,p=2;const g=(e[r-3]?.content||"").match(/^(\*+)$/),m=[];if(g){p+=1;const w=g[1].length;vd(m,w)}if(l.markup!=="linkify"&&e[r+1].type==="text"&&e[r+1]?.content?.startsWith("](")){h+=1;for(let w=r+1;wk[0]==="href")?.[1];e[r+5]?.type==="text"&&e[r+5].content==="."?(h=(m||h)+e[r+5].content,e[r+5].content=""):h=m||h,p+=3}let g=!0;if(l.nesting===-1&&(d=d.replace(/\*+$/,"")),e[r+2]?.type==="text"){const m=(e[r+2]?.content??"").indexOf(")");g=m===-1,m===-1&&(h+=e[r+2]?.content?.slice(0,m)||"",e[r+2].content="")}a.push(Ku(d,h,g)),yd(a,2),e.splice(r-2,p,...a)}if(l.type==="text"&&/\*+\[[^\]]*$/.test(l.content||"")&&e[r+1]?.type==="strong_open"&&e[r+2]?.type==="text"&&e[r+2].content==="]("&&e[r+3]?.type==="link_open"&&e[r+5]?.type==="link_close"&&e[r+6]?.type==="text"&&e[r+6].content===")"&&e[r+7]?.type==="strong_close"){const a=(l.content||"").match(/^(\*+)\[(.*)$/);if(a){const u=(a[2]||"")+a[1];let c=e[r+3]?.attrs?.find(h=>h[0]==="href")?.[1]||"";!c&&e[r+4]?.type==="text"&&(c=e[r+4].content||"");const d=[];vd(d,2),d.push(Ku(u,c,!1)),yd(d,2),e.splice(r,9,...d),r-=d.length-1;continue}}}}if(n)return e;for(let r=0;r{const n=t.tokens??[];for(let i=0;i{const n=t.tokens??[];for(let i=0;i=0&&e[g].type==="text"&&e[g].content==="";)g--;const m=e[g];let k=c+1;for(;k=0&&e[g].type==="text"&&e[g].content==="";)g--;const m=e[g];let k=c+1;for(;k{const n=t;try{const i=zxe(n.tokens??[],!!n.env?.__markstreamFinal,n.src??"");Array.isArray(i)&&(n.tokens=i)}catch(i){console.error("[applyFixTableTokens] failed to fix table tokens",i)}})}function uI(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function cI(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function dI(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:null,content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function Yz(e,t){if(!e.startsWith("|")||e.includes(` +`)||!e.endsWith("|"))return null;const n=e.slice(1).split("|");return n.at(-1)===""&&n.pop(),n.length>0&&n.every(i=>i.trim().length>0)?n:null}function Z3(e){return Yz(e)!==null}function Jz(e){return/^:?-+:?$/.test(e.trim())}function Fxe(e){if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|");return t.at(-1)===""&&t.pop(),t.length>0&&t.every(Jz)}function Dxe(e){return/^(?:[::]-*|:?-+:?)?$/.test(e.trim())}function Bxe(e){if(e==="")return!0;if(!e.startsWith("|"))return!1;const t=e.slice(1).split("|"),n=t.at(-1)??"";return t.slice(0,-1).every(Jz)&&Dxe(n)}function $xe(e){return e==="|"||e==="|:"}function Rxe(e){const t=Yz(e);return t!==null&&t.every(n=>!n.includes(":"))}function zxe(e,t=!1,n=""){const i=[...e];if(e.length<3)return i;const o=e.length-2,s=e[o];if(s.type==="inline"){const r=String(s.content??""),l=r.split(` +`)[0]??"",[a="",u="",...c]=r.split(` +`),d=!t&&!r.includes(` +`)&&/\r?\n$/.test(n)&&Z3(r);if(!t&&(r.includes(` +`)&&c.length===0&&Z3(a)&&Bxe(u)||d)){const h=l.slice(1,-1).split("|").map(g=>g.trim()).flatMap(g=>dI(g)),p=[...uI(),...h,...cI()];i.splice(o-1,3,...p)}else if(r.includes(` +`)&&c.length===0&&Z3(a)&&Fxe(u)){const h=l.slice(1,-1).split("|").map(g=>g.trim()).flatMap(g=>dI(g)),p=[...uI(),...h,...cI()];i.splice(o-1,3,...p)}else r.includes(` +`)&&c.length===0&&Rxe(a)&&$xe(u)&&(s.content=r.slice(0,-2),s.children.splice(2,1))}return i}function Oxe(e,t,n,i){const o=e.length;if(n==="$$"&&i==="$$"){let u=t;for(;u=0&&e[c]==="\\";)d++,c--;if(d%2===0)return u}u++}return-1}const s=n[n.length-1],r=i;let l=0,a=t;for(;a=0&&e[c]==="\\";)d++,c--;if(d%2===0){if(l===0)return a;l--,a+=r.length;continue}}const u=e[a];if(u==="\\"){a+=2;continue}u===s?l++:u===r[r.length-1]&&l>0&&l--,a++}return-1}var Pxe=Oxe;const jxe=["boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],sy=jxe.map(e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&")).join("|"),Hxe=/\\[a-z]+/i,Xz="(?:\\\\|\\u0008)",Wxe=new RegExp(String.raw`${Xz}(?:${sy})\s*\{[^}]+\}`,"i"),qxe=new RegExp(String.raw`(?:${Xz})?(?:${sy})\s*\{`,"i"),Uxe=/\\(?:text|frac|left|right|times)/,Kxe=/(?:^|[^+])\+(?!\+)|[=\-*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/,Vxe=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Zxe=/[A-Z]+\s*\([^)]+\)/i,Gxe=/^\(\s*[a-z](?:\s*,\s*[a-z])+\s*\)$/i,Qxe=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,Yxe=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/,Jxe={"\b":"\\b","\v":"\\v","\f":"\\f"};function Xxe(e){let t="";for(const n of e)t+=Jxe[n]??n;return t}function ac(e){if(!e)return!1;const t=Xxe(e),n=t.trim();if(Yxe.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;const i=Hxe.test(t),o=Wxe.test(t),s=qxe.test(t),r=Uxe.test(t),l=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),a=Kxe.test(t)&&!Vxe.test(t),u=Zxe.test(t),c=Gxe.test(n),d=Qxe.test(t),h=/^\([a-z]\)$/i.test(n)||/^(?:[a-z]|pi)$/i.test(n),p=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return i||o||s||r||l||a||u||c||d||h||p}const eO="__markstreamMathPluginApplied",$8=80,tO=2e4,fI=tO+4096;function S7(e){return!!e[eO]}function eSe(e){e[eO]=!0}const nO=["ldots","cdots","quad","in","displaystyle","int_","lim","lim_","ce","pu","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathit","mathbb","mathcal","mathfrak","implies","alpha","beta","gamma","delta","epsilon","lambda","sum","sum_","prod","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","frac","text","left","right"],tSe=["cdot","mathbf{","partial","mu_{"],iO=nO.slice().sort((e,t)=>t.length-e.length).map(e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),oO="[ \r\b\f\v]",nSe=new RegExp(`([^\\\\])(${tSe.map(e=>e).join("|")})+`,"g"),iSe=/span\{([^}]+)\}/,oSe=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,sSe=/(^|[^\\])\\\r?\n/g,rSe=/(^|[^\\])\\$/g,lSe=/[\p{L}\p{M}\p{N}\p{Pe}\p{Pf}'′″‴|‖]/u,aSe=new RegExp(`(${oO})|(${iO})\\b`,"g"),hI=new Map,pI=new Map;function uSe(e){if(!e)return aSe;const t=[...e];t.sort((r,l)=>l.length-r.length);const n=t.join(""),i=hI.get(n);if(i)return i;const o=`(?:${t.map(r=>r.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&")).join("|")})`,s=new RegExp(`(${oO})|(${o})\\b`,"g");return hI.set(n,s),s}function cSe(e,t){const n=e?[]:[...t??[]];e||n.sort((l,a)=>a.length-l.length);const i=e?"__default__":n.join(""),o=pI.get(i);if(o)return o;const s=e?[sy,iO].filter(Boolean).join("|"):[n.map(l=>l.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&")).join("|"),sy].filter(Boolean).join("|"),r=new RegExp(`(^|[^\\\\\\w])(${s})\\s*\\{`,"g");return pI.set(i,r),r}const gI={" ":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function mI(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;t.exec(e)!==null;)n++;return n}function dSe(e){return e.replace(/(^|[^\\])!+/gu,(t,n)=>{if(n&&lSe.test(n))return t;const i=n?t.slice(n.length):t;return`${n}${"\\!".repeat(i.length)}`})}function vI(e){const t=/(^|[^\\])(__|\*\*)/g;let n,i=null;for(;(n=t.exec(e))!==null;)i={marker:n[2],index:n.index+(n[1]?.length??0)};return i}function Vu(e,t){const n=t?.commands??nO,i=t?.escapeExclamation??!0,o=t?.commands==null,s=uSe(o?void 0:n);let r=e.replace(s,(u,c,d,h,p)=>{if(c!==void 0&&gI[c]!==void 0)return`\\${gI[c]}`;if(d&&n.includes(d)){const g=p&&typeof h=="number"?p[h-1]:void 0;return g==="\\"||g&&/\w/.test(g)?u:`\\${d}`}return u});i&&(r=dSe(r));let l=r;const a=cSe(o,o?void 0:n);return l=l.replace(a,(u,c,d)=>`${c}\\${d}{`),l=l.replace(iSe,"span\\{$1\\}").replace(oSe,"\\operatorname{span}\\{$1\\}"),l=l.replace(sSe,`$1\\\\ +`),l=l.replace(rSe,"$1\\\\"),l=l.replace(nSe,"$1\\$2"),l}function yI(e){const t=e.trim();return!(!ac(t)||/"[^"\n]{1,80}"\s*:\s*/.test(t)||!(/\\[a-z]+/i.test(t)||/[=+*/^<>]|\\times|\\pm|\\cdot|\\le|\\ge|\\neq/.test(t)||/[_^]/.test(t))&&/\s-\s/.test(t))}function sO(e){const t=[];let n=0;for(;n=n[0]&&t0;){if(e[s]==="\\"&&s+10;){if(e[l]==="\\"&&l+1=0&&e[n]==="\\";)i++,n--;return i%2===1}function R8(e,t){let n=t;for(;n0&&e[i-1]==="$"||i+1=l)break;const u=ry(o,a);if(u){r=Math.max(a+Math.max(1,t.length),u[1]);continue}kg(e,a)||s++,r=a+Math.max(1,t.length)}return s}function _7(e,t,n){const i=z0(String(e??""));if(!i.endsWith(t))return-1;const o=i.length-t.length;if(o<=0||!z0(i.slice(0,o)).trim()||kg(i,o))return-1;const s=sO(i);if(ry(s,o))return-1;const r=kI(i,t,0,o,s);if(t==="$$"){if(r%2===1)return-1}else if(r>kI(i,n,0,o,s))return-1;return o}function R0(e){return e===" "||e===" "}function z0(e){let t=e.length;for(;t>0&&R0(e[t-1]);)t--;return e.slice(0,t)}function bI(e){let t=0;for(let n=0;n=48&&t<=57}function hSe(e){if(e.length<3)return!1;const t=e[0];if(t!=="-"&&t!=="*"&&t!=="_"&&t!=="=")return!1;let n=0;for(let i=0;i=3}function pSe(e){const t=e.trim();if(!t)return!1;let n=0;t[n]===":"&&n++;let i=0;for(;t[n]==="-";)i++,n++;return i<3?!1:(t[n]===":"&&n++,n===t.length)}function gSe(e){if(!e.includes("|"))return!1;const t=e[0]==="|"?e.slice(1):e;return(t.endsWith("|")?t.slice(0,-1):t).split("|").every(pSe)}function mSe(e){let t=0;if(!AI(e[t]))return!1;for(;AI(e[t]);)t++;return e[t]!=="."&&e[t]!==")"?!1:R0(e[t+1])}function rO(e){const t=e.trimStart();if(!t||t.startsWith("```")||t.startsWith("~~~")||t.startsWith(":::")||t[0]===">"||t[0]==="<")return!0;if(t[0]==="#"){let n=0;for(;t[n]==="#";)n++;if(n>=1&&n<=6&&R0(t[n]))return!0}return!!((t[0]==="-"||t[0]==="+"||t[0]==="*")&&R0(t[1])||mSe(t)||hSe(t)||gSe(t))}function CI(e,t){return e?t?`${e} +${t}`:e:t}function z8(e){const t=String(e??"").trim();return t?ac(t):!1}function wI(e){let t=0;for(let n=0;n$8){p=!0;break}const m=o[g],k=lh(m,c);if(k!==-1){const w=CI(h,m.slice(0,k));if(!z8(w)){p=!0;break}const y=m.slice(k+c.length),b=y.trim()?`suffix:${wI(y)}`:"nosuffix";return["closed",u,i+l,d,i+g,k,wI(w),b].join(":")}if(rO(m)){p=!0;break}if(h=CI(h,m),h.length>tO){p=!0;break}}if(!p&&z8(h))return["pending",u,i+l,d].join(":")}}return null}function Q3(e,t){const n=String(e??"").trim();return!n||!/^\d[\d,.]*\s*[~~-]\s*$/.test(n)?!1:/\d/.test(String(t??""))}function ySe(e){const t=String(e??"").trimStart(),n=t.match(/^\d+(?:,\d{3})*(?:\.\d+)?/);if(!n)return!1;const i=t.slice(n[0].length);return/^\s*(?:[+\-*/^_=<>]|\\[a-z]+)/i.test(i)?!1:i===""||/^[)\s,.!?;:]/.test(i)}function Y3(e){const t=String(e??"").trim();return t?/^(?:\.{3,}|…+)$/.test(t):!1}function kSe(e,t){eSe(e);const n=(r,l,a)=>{const u=String(l??"").replace(/^[\t ]+/,"").replace(/[\t ]+$/,"");if(!u)return;const c=r.push("paragraph_open","p",1);c.map=[a,a+1];const d=r.push("inline","",0);d.content=u,d.map=[a,a+1],d.children=[],r.push("paragraph_close","p",-1)},i=(r,l)=>{const a=r,u=!!t?.strictDelimiters,c=!a?.env?.__markstreamFinal,d=(y,b)=>{let A=b;for(;A=3&&(!A||/\s/.test(A))){const T=a.push("text","",0);return T.content=a.src.slice(a.pos,y),a.pos=y,!0}}const h=[["$$","$$"],["$","$"],["\\(","\\)"]],p=String(a.pending??""),g=Math.max(0,a.pos-p.length);let m=g,k=g;const w=g;for(const[y,b]of h){const A=a.src,T=sO(A),S=fSe(A,c);let x=!1;y==="$$"&&m!==w&&(m=w);let _=-1,L=-1,M=0;const N=I=>{if((I==="undefined"||I==null)&&(I=""),I==="\\"){a.pos=a.pos+I.length,m=a.pos;return}if(I==="\\)"||I==="\\("){const O=a.push("text_special","",0);O.content=I==="\\)"?")":"(",O.markup=I,a.pos=a.pos+I.length,m=a.pos;return}if(!I)return;if(y==="$$"&&I.includes("$")){let O=0;for(;O0&&I[R-1]==="$"||R+10){const j=I.slice(0,z),$=a.push("text","",0);$.content=j,a.pos=a.pos+j.length,m=a.pos}const O=I.slice(z).match(/^!\[([^\]]*)\]\(([^)]+)\)/);if(O){const[,j,$]=O,W=$.match(/^(\S+)(?:\s+"([^"]+)")?\s*$/),P=W?W[1]:$,Z=W&&W[2]?W[2]:null,ae=a.push("image","img",0);ae.attrs=[["src",P],["alt",j]],Z&&ae.attrs.push(["title",Z]),ae.content=j,ae.children=[{type:"text",content:j,tag:""}],a.pos=a.pos+O[0].length,m=a.pos;const V=I.slice(z+O[0].length);V&&N(V);return}const R=a.push("text","",0);R.content=I,a.pos=a.pos+I.length,m=a.pos;return}const H=a.push("text","",0);H.content=I,a.pos=a.pos+I.length,m=a.pos};for(;!(m>=A.length);){const I=A.indexOf(y,m);if(I===-1)break;if(kg(A,I)){m=I+Math.max(1,y.length);continue}const z=ry(T,I);if(z){m=z[1];continue}const H=ry(S,I);if(H){m=H[1];continue}if(I===_&&m===L){if(M++,M>2){m=I+Math.max(1,y.length);continue}}else M=0,_=I,L=m;if(y==="("&&I>0){let V=I-1;for(;V>=0&&A[V]===" ";)V--;if(V>=0&&A[V]==="]"){m=I+y.length;continue}}if(y==="$"&&I>0&&A[I-1]==="$"){m=I+1;continue}if(y==="$"&&I=A.length);){const z=R8(A,I);if(z===-1)break;if(z+10&&A[z-1]==="$"){I=z+1;continue}const H=G3(A,z+1);if(H===-1)break;const O=A.slice(z+1,H),R=O.includes("`"),j=!O||!O.trim(),$=A[H+1],W=Q3(O,$),P=Y3(O);if(!R&&!j&&!W&&!P){const Z=A.slice(m,z);Z&&N(Z);const ae=a.push("math_inline","math",0);ae.content=Vu(O,t),ae.markup="$",ae.raw=`$${O}$`,ae.loading=!1,m=H+1,I=H+1}else N("$"),I=z+1}I{const c=r,d=!c?.env?.__markstreamFinal,h=t?.strictDelimiters,p=h?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],g=c.bMarks[l]+c.tShift[l];let m=c.src.slice(g,c.eMarks[l]).trim(),k=!1,w="",y="",b=!1,A="",T=!1;for(const[Z,ae]of p)if(m.startsWith(Z))if(Z.includes("[")){const V=Z==="\\["?m.slice(Z.length):"";if(Z==="\\["&&lh(V,ae)===-1&&!/^\s*!\[/.test(V)&&!V.includes("`")&&ac(V)){k=!0,w=Z,y=ae;break}if(t?.strictDelimiters){if(m.replace("\\","")==="["){if(l+1=0?"\\]":y,M=_>=0?_:lh(m,y,x);if(!b&&M>w.length){const Z=m.slice(S+w.length,M),ae=c.push("math_block","math",0);ae.content=Vu(Z),ae.markup=w==="$$"?"$$":w==="["?"[]":"\\[\\]",ae.map=[l,l+1],ae.raw=`${w}${Z}${L}`,ae.block=!0,ae.loading=!1,c.line=l+1;const V=m.slice(M+L.length);return V.trim()&&n(c,V,l),!0}let N=l,I="",z=!1,H="",O=l;const R=b?m:m===w?"":m.slice(w.length),j=!h&&w==="\\["?"]":"",$=lh(R,y);if($!==-1){const Z=$;I=R.slice(0,Z),H=R.slice(Z+y.length),O=b?l+1:l,z=!0,N=O}else for(R&&!b&&(I=R),N=l+1;N{const c=r,d=c.bMarks[l]+c.tShift[l],h=c.src.slice(d,c.eMarks[l]).trim();return!h.startsWith("$$")&&!h.startsWith("\\[")?!1:o(r,l,a,u)};e.inline.ruler.before("escape","math",i),e.block.ruler.before("lheading","explicit_math_block",s,{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.before("paragraph","math_block",o,{alt:["paragraph","reference","blockquote","list"]})}function bSe(e){const t=e.renderer.rules.image||function(n,i,o,s,r){const l=n,a=r;return a.renderToken?a.renderToken(l,i,o):""};e.renderer.rules.image=(n,i,o,s,r)=>{const l=n;return l[i].attrSet?.("loading","lazy"),t(l,i,o,s,r)},e.renderer.rules.fence=e.renderer.rules.fence||((n,i)=>{const o=n[i],s=String(o.info??"").trim();return`
            ${e.utils.escapeHtml(String(o.content??""))}
            `})}const ASe=/^\s]/i,CSe=/^<\/a\s*>/i;function wSe(e,t){if(e?.type!=="inline")return!1;const n=e.children;if(!Array.isArray(n)||n.length===0)return t.test(String(e.content??""));let i=0;for(let o=n.length-1;o>=0;o--){const s=n[o];if(s?.type==="link_close"){for(o--;o>=0&&n[o]?.level!==s.level&&n[o]?.type!=="link_open";)o--;continue}if(s?.type==="html_inline"){const r=String(s.content??"");ASe.test(r)&&i>0&&i--,CSe.test(r)&&i++}if(!(i>0)&&s?.type==="text"&&t.test(String(s.content??"")))return!0}return!1}function xSe(e){const t=e.core?.ruler,n=t.getNamedRules?.().find(i=>i.name==="linkify")?.fn;typeof n=="function"&&t.at("linkify",i=>{if(!i.md?.options?.linkify)return;const o=Array.isArray(i.tokens)?i.tokens:[],s=i.md.linkify;if(!s)return;const r=o.filter(l=>wSe(l,s));if(r.length)return n(Object.assign(Object.create(Object.getPrototypeOf(i)),i,{tokens:r}))})}function SSe(e){const t=e.inline.ruler,n=t.getNamedRules?.(),i=n?.find(l=>l.name==="link")?.fn,o=n?.find(l=>l.name==="image")?.fn;if(typeof i!="function"||typeof o!="function")return;const s=e.validateLink,r=e;r.__markstreamOriginalValidateLink=s,t.at("link",(...l)=>{const a=l[0].md,u=a?.validateLink===s?a.options?.validateLink:a?.validateLink;if(!a||typeof u!="function")return i(...l);const c=a.validateLink;a.validateLink=u;try{return i(...l)}finally{a.validateLink=c}}),t.at("image",(...l)=>{const a=l[0].md;if(!a)return o(...l);const u=a.validateLink;a.validateLink=s;try{return o(...l)}finally{a.validateLink=u}})}function _Se(e={}){const t=e.markdownItOptions??{},n=typeof t.experimental=="object"&&t.experimental!==null?t.experimental:{},i=Object.prototype.hasOwnProperty.call(t,"stream")?!!t.stream:!0,o=Object.prototype.hasOwnProperty.call(t,"validateLink"),s=new XCe({html:!0,linkify:!0,typographer:!0,...t,experimental:{stream:i,...n}});if(!o){const r=l=>!Gd(l,{tagName:"a",attrName:"href"});kxe(r),s.set({validateLink:r})}return SSe(s),xSe(s),(e.enableMath??!0)&&kSe(s,{...e.mathOptions??{}}),(e.enableContainers??!0)&&kwe(s),e.enableFixIndentedCodeBlock!==!1&&Hwe(s),xxe(s),Ixe(s),_xe(s),Nxe(s),bSe(s),Pwe(s,{customHtmlTags:e.customHtmlTags}),s}function Qd(e){const t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return Array.isArray(e.attrs)&&(t.attrs=e.attrs.map(n=>[...n])),Array.isArray(e.map)&&(t.map=[...e.map]),Array.isArray(e.children)&&(t.children=e.children.map(n=>Qd(n))),t}function MSe(e){const t=e.meta??{};return{type:"checkbox",checked:t.checked===!0,raw:t.checked?"[x]":"[ ]"}}function ISe(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,i=n===""||n==="true";return{type:"checkbox_input",checked:i,raw:i?"[x]":"[ ]"}}function ESe(e){const t=String(e.content??"");return{type:"emoji",name:t,markup:String(e.markup??""),raw:`:${t}:`}}function Um(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;sn.startsWith(t)||t.startsWith(n)):!1}function xI(e,t,n,i){n.length>0&&e.push(...n),i.length>0&&t.push(...i),n.length=0,i.length=0}function SI(e,t){return!t&&e.startsWith(" ")&&!e.startsWith(" ")?` ${e}`:e}function FSe(e,t){const n=[],i=[],o=[],s=[],r=e.split(LSe),l=/\r?\n$/.test(e),a=r.some(p=>p.startsWith("diff ")||p.startsWith("--- ")||p.startsWith("+++ ")||p.startsWith("@@ ")),u=p=>{const g=p;if(!uO.some(m=>g.startsWith(m)))if(g.startsWith("-")){const m=g.slice(1);o.push(SI(m,a))}else if(g.startsWith("+")){const m=g.slice(1);s.push(SI(m,a))}else{xI(n,i,o,s);const m=a&&g.startsWith(" ")?g.slice(1):g;n.push(m),i.push(m)}},c=l?Math.max(0,r.length-1):r.length;for(let p=0;p0||s.length>0)&&xI(n,i,o,s);const d=n.join(` +`),h=i.join(` +`);return{original:t&&l&&d?`${d} +`:d,updated:t&&l&&h?`${h} +`:h}}function M7(e){const t=Array.isArray(e.map)&&e.map.length===2,n=e.meta??{},i=typeof n.closed=="boolean"?n.closed:void 0,o=i===!0||i!==!1&&t,s=String(e.info??""),r=s.startsWith("diff"),l=r?(()=>{const u=s,c=u.indexOf(" ");return c===-1?"":String(u.slice(c+1)??"")})():s;let a=String(e.content??"");if(!o&&e.markup){const u=e.markup[0],c=e.markup.length,d=TSe(u,c);d.test(a)&&(a=a.replace(d,""))}if(r){const{original:u,updated:c}=FSe(a,o===!0);return{type:"code_block",language:l,code:String(c??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t,originalCode:u,updatedCode:c}}return{type:"code_block",language:l,code:String(a??""),raw:String(a??""),diff:r,loading:i===!0?!1:i===!1?!0:!t}}function DSe(e){const t=e.meta??{};return{type:"footnote_reference",id:String(t.label??""),raw:`[^${String(t.label??"")}]`}}function BSe(){return{type:"hardbreak",raw:`\\ +`}}function $Se(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s\s*$/.test(t)||Tc.has(e)}function RSe(e){if(!e||e.length===0)return _I();const t=X3.get(e);if(t)return t;const n=e.map(zl).filter(Boolean);if(!n.length){const o=_I();return X3.set(e,o),o}const i={customTagSet:new Set(n),allowedTagSet:T9({customHtmlTags:e})};return X3.set(e,i),i}function hO(e){const t=e,n=t.raw??t.content??t.markup??"";return String(n??"")}function zSe(e){const t=e.meta,n=t?.markstreamCustomHtmlRaw,i=t?.markstreamCustomHtmlInner;return typeof n=="string"&&typeof i=="string"?{raw:n,inner:i}:null}function ly(e,t){const n=t.toLowerCase();for(let i=e.length-1;i>=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function OSe(e,t,n){const i=e.slice();return ly(i,"href")||i.push(["href",t]),n!=null&&!ly(i,"title")&&i.push(["title",n]),i}function O8(e){return e.map(hO).join("")}function Lv(e){const t=[],n=i=>{const o=String(i??"");if(!o)return;const s=t[t.length-1];if(s?.type==="text"){s.content=`${s.content}${o}`,s.raw=`${s.raw}${o}`;return}t.push({type:"text",content:o,raw:o})};for(const i of e)if(i){if(i.type==="reference"||i.type==="footnote_reference"){n(String(i.raw??""));continue}if("children"in i&&Array.isArray(i.children)){t.push({...i,children:Lv(i.children)});continue}t.push(i)}return t}function PSe(e,t,n){let i=0;for(let o=t;o`;m.toLowerCase().includes(T.toLowerCase())||(m+=T),w=!0,k=!0}const y=[],b=/\s([\w:-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;let A;for(;(A=b.exec(l))!==null;){const T=A[1],S=A[2]||A[3]||A[4]||"";y.push([T,S])}if(u?.has(a)){const T=zSe(e);return[{type:a,tag:a,attrs:y,content:T?T.inner:p.innerTokens.length?O8(p.innerTokens):"",children:p.innerTokens.length?i(p.innerTokens,o,s,r):[],raw:T?.raw??m,loading:e.loading||k,autoClosed:w},p.nextIndex]}return[{type:"html_inline",tag:a,attrs:y,content:m,children:g,raw:m,loading:k,autoClosed:w},p.nextIndex]}function pO(e){if(e.type==="math_inline"){if(e.raw)return String(e.raw);const t=e.markup==="$$"?"$$":"$";return`${t}${String(e.content??"")}${t}`}return Array.isArray(e.children)&&e.children.length>0?e.children.map(t=>pO(t)).join(""):String(e.content??"")}function HSe(e){return!e||!Array.isArray(e.children)||e.children.length===0?"":e.children.map(t=>pO(t)).join("")}function MI(e,t=!1){let n=e.attrs??[],i=null;if((!n||n.length===0)&&Array.isArray(e.children))for(const d of e.children){const h=d.attrs;if(Array.isArray(h)&&h.length>0){n=h,i=d;break}}const o=String(n.find(d=>d[0]==="src")?.[1]??""),s=n.find(d=>d[0]==="alt")?.[1],r=HSe(i??e);let l="";r?l=r:s!=null&&String(s).length>0?l=String(s):i?.content!=null&&String(i.content).length>0?l=String(i.content):Array.isArray(i?.children)&&i.children[0]?.content?l=String(i.children[0].content):Array.isArray(e.children)&&e.children[0]?.content?l=String(e.children[0].content):e.content!=null&&String(e.content).length>0&&(l=String(e.content));const a=n.find(d=>d[0]==="title")?.[1]??null,u=a===null?null:String(a),c=String(e.content??"");return{type:"image",src:o,alt:l,title:u,raw:c,loading:t}}function WSe(e){const t=String(e.content??"");return{type:"inline_code",code:t,raw:t}}function qSe(e,t,n){const i=[];let o="",s=t+1;const r=[];for(;s=0;i--){const[o,s]=e[i];if(String(o).toLowerCase()===n)return s}}function KSe(e,t,n){const i=e.slice();return ay(i,"href")||i.push(["href",t]),n!=null&&!ay(i,"title")&&i.push(["title",n]),i}function Km(e,t,n){const i=e[t],o=USe(i.attrs),s=String(ay(o,"href")??""),r=ay(o,"title"),l=r==null?null:String(r),a=KSe(o,s,l);let u=t+1;const c=[];let d=!0;for(;uk.type==="strong_open")){const k=String(p.content??""),w=String(p.raw??k),y=Qd(p);y.content=k.slice(0,-2),y.raw=w.replace(/\*\*$/,""),h=c.slice(),h[h.length-1]=y}const g=Ao(h,void 0,void 0,n),m=g.map(k=>{const w=k;return"content"in k?String(w.content??""):String(w.raw??"")}).join("");return{node:{type:"link",href:s,title:l,text:m,children:g,raw:`[${m}](${s}${l?` "${l}"`:""})`,loading:d,attrs:a},nextIndex:u0?i:[{type:"text",content:a,raw:a}],raw:`~${a}~`},nextIndex:s0?i:[{type:"text",content:o||String(e[t].content??""),raw:o||String(e[t].content??"")}],raw:`^${o||String(e[t].content??"")}^`},nextIndex:s?@[\\\]^_`{|}~]/,s_e=/\p{P}/u,r_e=/^[\x22\x27《「『【〔〖〘〚〈([{“‘﹁﹃﹙﹛﹝]$/u,l_e=/^[\x22\x27》」』】〕〗〙〛〉)]}”’﹂﹄﹚﹜﹞]$/u,a_e=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,u_e=/:\/\//,P8=1,gO=2,c_e=4,d_e=8,mO=16,ec=32,Nv=64,wp=128,vO=256,f_e=512,xp=1024,h_e=1982;function Vm(e){let t=0;for(let n=0;n=t){n++,i++;continue}n++,i++;continue}if(o==="*"&&n>=t)return n;n++}return-1}function Lc(e){return!!e&&i_e.test(e)}function Nc(e){return!!e&&(o_e.test(e)||s_e.test(e))}function kO(e,t){return!!e&&!!t&&/^\p{Script=Han}$/u.test(t)&&r_e.test(e)}function bO(e,t){return!!e&&!!t&&/^[\p{L}\p{N}]$/u.test(t)&&l_e.test(e)}function g_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!i||Lc(i)?!1:!(Nc(i)&&!kO(i,n)&&n&&!Lc(n)&&!Nc(n))}function m_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+1];return!n||Lc(n)?!1:!(Nc(n)&&!bO(n,i)&&i&&!Lc(i)&&!Nc(i))}function v_e(e,t,n=0){let i=n,o=!1;for(;i0?e[t-1]:void 0,i=e[t+2];return!i||Lc(i)?!1:!(Nc(i)&&!kO(i,n)&&n&&!Lc(n)&&!Nc(n))}function k_e(e,t){const n=t>0?e[t-1]:void 0,i=e[t+2];return!n||Lc(n)?!1:!(Nc(n)&&!bO(n,i)&&i&&!Lc(i)&&!Nc(i))}function b_e(e,t=0){let n=t,i=!1;for(;n=0&&e[s]==="\\";s--)o++;return o%2===1}const x_e=/[\p{L}\p{N}]/u,S_e=/^[\p{L}\p{N}]+$/u;function j8(e){return e?x_e.test(e):!1}function AO(e){return e?S_e.test(e):!1}function Kp(e,t){let n=t;for(;n0?e[t-1]:void 0,o=n=2&&i.intraword&&t.push({start:n,end:o}),n=o}for(let n=0;n=3)return i;n=i+o.len}return-1}function E_e(e){return e?a_e.test(e)||u_e.test(e):!1}function T_e(e,t){if(!e||!t)return null;const n=e.match(/\[([^\]\n]+)\]\(([^)]*)$/);return n&&n[2]===t?n[1]:null}function Ao(e,t,n,i){if(!e||e.length===0)return[];const o=i?.__linkifyDemotionContext,s=yg(t),r={filename:o?.filename||s.filename,explicitFilename:o?.explicitFilename||s.explicitFilename,marketTicker:o?.marketTicker||s.marketTicker};(r.filename||r.explicitFilename||r.marketTicker)&&(i={...i,__linkifyDemotionContext:r});const l=i,a=[];let u=null,c=0;const d=i?.requireClosingStrong,h=e;function p(){return e===h&&(e=e.slice()),e}function g(){u=null}function m(te,be){const Q=e.length===1?t:String(be.content??""),ue=[],Ae=__e(te);if(Ae!==-1){T(te.slice(0,Ae),te.slice(0,Ae));const re=te.slice(Ae);return re&&(N({type:"text",content:re,raw:re}),c--),c++,!0}if(XSe.test(te)){const re=te.indexOf("~~");re!==-1&&ue.push({type:"strikethrough",index:re})}if(e_e.test(te)){const re=te.indexOf("**");re!==-1&&ue.push({type:"strong",index:re})}if(/[^*]*\*[^*]+/.test(te)){const re=Q?yO(Q,0):te.indexOf("*");if(Q&&re===-1)return!1;re!==-1&&ue.push({type:"emphasis",index:re})}ue.sort((re,G)=>re.index!==G.index?re.index-G.index:re.type===G.type?0:re.type==="strong"?-1:G.type==="strong"?1:0);const se=ue[0];if(!se)return!1;if(se.type==="strikethrough"){const re=se.index,G=re>-1?te.slice(0,re):"";if(G&&T(G,G),re===-1)return c++,!0;const le=te.indexOf("~~",re+2),ge=le===-1?te.slice(re+2):te.slice(re+2,le),ke=le===-1?"":te.slice(le+2),{node:Ie}=EI([{type:"s_open",tag:"s",content:"",markup:"~~",info:"",meta:null},{type:"text",tag:"",content:ge,markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"~~",info:"",meta:null}],0,i);return g(),A(Ie),ke&&(N({type:"text",content:ke,raw:ke}),c--),c++,!0}if(se.type==="strong"){const re=se.index,G=re>-1?te.slice(0,re):"";if(G&&T(G,G),re===-1)return c++,!0;if(t&&re===0){let we=!1,Be=0;for(;Be=2)return T(te,te),c++,!0}}if(t&&(te.match(/\*/g)||[]).length>p_e(t))return T(te.slice(G.length),te.slice(G.length)),c++,!0;const le=Kp(te,re);if(le.len>=3){const we=I_e(te,re+le.len);if(we!==-1){const Be=te.slice(re+le.len,we);if(M_e(Be)){const{node:tt}=Z1([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:Be,markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);g(),A(tt);const ut=te.slice(we+3);return ut&&(N({type:"text",content:ut,raw:ut}),c--),c++,!0}}}if(!y_e(te,re)){const we=te.slice(re,re+le.len);T(we,we);const Be=te.slice(re+le.len);return Be&&(N({type:"text",content:Be,raw:Be}),c--),c++,!0}const ge=b_e(te,re+2);let ke="",Ie="";if(ge.index!==-1){ke=te.slice(re+2,ge.index),Ie=te.slice(ge.index+2);const we=ge.index,Be=Kp(te,we);if(le.intraword&&Be.intraword&&!AO(ke)||!ke&&le.len>=4&&le.intraword)return T(te.slice(G.length),te.slice(G.length)),c++,!0}else{if(d||ge.sawInvalidClose||le.intraword)return T(te.slice(G.length),te.slice(G.length)),c++,!0;ke=te.slice(re+2),Ie=""}if(!ke&&/^\*+$/.test(Ie))return T(te,te),c++,!0;const{node:Oe}=Z1([{type:"strong_open",tag:"strong",content:"",markup:"**",info:"",meta:null},{type:"text",tag:"",content:ke,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"**",info:"",meta:null}],0,t,i);return g(),A(Oe),Ie&&(N({type:"text",content:Ie,raw:Ie}),c--),c++,!0}if(se.type==="emphasis"){let re=se.index;re===-1&&(re=0);const G=te.slice(0,re);if(G&&T(G,G),!g_e(te,re)){T(te[re],te[re]);const we=te.slice(re+1);return we&&(N({type:"text",content:we,raw:we}),c--),c++,!0}const le=Kp(te,re),ge=v_e(Q,te,re+1),ke=ge.index,Ie=e[c+1];if(i?.final&&Ie?.type==="em_open"&&ke!==-1&&te.slice(re+1,ke).trim()!==te.slice(re+1,ke)||ke===-1&&(ge.sawInvalidClose||i?.final||le.intraword||!j8(te[re+1])))return T(te.slice(re),te.slice(re)),c++,!0;const{node:Oe}=Um([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:ke>-1?te.slice(re+1,ke):te.slice(re+1),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,i);if(g(),A(Oe),ke!==-1&&ke{for(let Oe=0;Oe=0&&Ie[Be]==="\\";Be--)we++;if(we%2===0)return Oe}return-1})(te);if(ue===-1)return!1;let Ae=1;for(let Ie=ue+1;Iese?.type==="math_inline")||!t_e.test(te))return null;const Q=be.parseInline(te,{__markstreamFinal:!!i?.final});if(!Array.isArray(Q)||Q.length===0)return null;const ue=(Q.find(se=>se?.type==="inline")?.children??[]).filter(se=>!(se?.type==="text"&&String(se.content??"")===""));if(!ue.length||!ue.some(se=>se?.type!=="text")||ue.length===1&&ue[0]?.type==="text"&&String(ue[0].content??"")===te)return null;const Ae=Ao(ue,te,n,i);return Ae.length?Ae:null}function y(te){g(),a.push(te)}function b(te){g();const be=Qd(te);a.push(be)}function A(te){y(te)}function T(te,be){u?(u.content+=te,u.raw+=be??te):(u={type:"text",content:String(te??""),raw:String(be??te??"")},a.push(u))}function S(te,be){if(!te)return;const Q=Ao([{...be,type:"text",content:te,raw:te}],te,n,i);if(Q.length===1&&Q[0]?.type==="text"){const ue=Q[0];T(String(ue.content??""),String(ue.raw??ue.content??""));return}for(const ue of Q)A(ue)}function x(te,be){return String(te.markup??"").startsWith(be)}function _(te){if(!u||te.loading!==!0||te.markup!=="\\(\\)")return;const be=e[c-1];!be||be.type!=="text"||!x(be,"\\(")||u.content.endsWith("(")&&(u.content=u.content.slice(0,-1),u.raw.endsWith("(")&&(u.raw=u.raw.slice(0,-1)),!u.content&&a[a.length-1]===u&&(a.pop(),u=null))}function L(te){return te.endsWith("](")?e[c+1]?.type==="link_open"&&e[c+1]?.markup==="linkify"&&e[c+2]?.type==="text"&&e[c+3]?.type==="link_close"&&e[c+4]?.type==="text"&&String(e[c+4]?.content??"").startsWith(")"):!1}function M(te,be,Q=Vm(te)){let ue=te;const Ae=String(be.content??"");return(Q&P8)!==0&&ue.endsWith("\\")&&!x(be,"\\\\")&&!Ae.endsWith("\\\\")&&(ue=ue.slice(0,-1)),(Q&xp)!==0&&ue.endsWith("(")&&!x(be,"\\(")&&!Ae.endsWith("\\(")&&(ue=ue.slice(0,-1)),(Q&gO)!==0&&/\*+$/.test(ue)&&!x(be,"\\*")&&!Ae.endsWith("\\*")&&(ue=ue.replace(/\*+$/,"")),ue}for(;c=0;we--){const Be=a[we];if(Be.type!=="text")break;le=we,ge=String(Be.content??"")+ge}lele==="href")?.[1],G=String(re??"");if(t&&G){const le=t.indexOf("](");if(le!==-1){const ge=t.indexOf(")",le+2);ge===-1?Q.loading=!0:Q.loading&&t.slice(le+2,ge).includes(G)&&(Q.loading=!1)}}/^file:\/\/\/[a-z]:\//i.test(Q.href)&&P(Q,be-1)||j(Q)||y(Q)}function O(te){if(te.markup!=="linkify")return!1;const{node:be,nextIndex:Q}=Km(e,c,i);return W(be,Q)?(c=Q,!0):!1}function R(te){g(),A(VSe(te)),c++}function j(te){if(te.type!=="link")return!1;const be=a[a.length-1];if(!be||be.type!=="text")return!1;const Q=String(be.content??"").match(/^([^[]*)\[([^\]\n]+)\]\($/);if(!Q)return!1;const ue=te,Ae=String(ue.href??""),se=String(ue.text??""),re=String(Q[2]??""),G=Ae.replace(/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,"");if(!Ae||!(se===Ae||se===G||E_e(se)))return!1;const le=String(Q[1]??"");return le?(be.content=le,be.raw=le):a.pop(),y({...te,text:re,children:[{type:"text",content:re,raw:re}],raw:`[${re}](${Ae}${ue.title?` "${ue.title}"`:""})`}),!0}function $(te){if(te.type!=="link")return!1;const be=te,Q=String(be.href??"");return Q?W({href:Q,title:be.title==null||be.title===""?null:String(be.title),loading:!!be.loading},c+1):!1}function W(te,be){const Q=a[a.length-1];if(Q?.type!=="image"||Q.src||!Q.loading||!String(Q.raw??"").endsWith("]("))return!1;const ue=e[be],Ae=String(ue?.content??"");if(ue?.type!=="text"||!Ae.startsWith(")"))return!1;a.pop(),u=null;const se=String(Q.alt??"");y({type:"image",src:te.href,alt:se,title:te.title,raw:`![${se}](${te.href}${te.title?` "${te.title}"`:""})`,loading:!!te.loading});const re=Ae.slice(1),G=Qd(ue);return G.content=re,G.raw=re,p()[be]=G,!0}function P(te,be=c-1){if(te.type!=="link")return!1;const Q=a[a.length-1],ue=e[be];if(!Q||Q.type!=="text"||ue?.type!=="text")return!1;const Ae=String(Q.content??""),se=String(ue.content??"");if(!Ae.endsWith("!")||!se.endsWith("!")||x(ue,"\\!"))return!1;const re=Ae.slice(0,-1);re?(Q.content=re,Q.raw=re,u=Q):(a.pop(),u=null);const G=te,le=String(G.text??G.children?.map(Ie=>String(Ie?.content??Ie?.raw??"")).join("")??""),ge=String(G.href??""),ke=G.title==null||G.title===""?null:String(G.title);return y({type:"image",src:ge,alt:le,title:ke,raw:`![${le}](${ge}${ke?` "${ke}"`:""})`,loading:!!G.loading}),!0}function Z(te,be="",Q=null){const ue=String(te.alt??te.raw??"");return{type:"link",href:be,title:Q,text:ue,children:[te],raw:`[${ue}](${be}${Q?` "${Q}"`:""})`,loading:!0}}function ae(te){const be=te.startsWith("![")?te:`![${te}`,Q=be.slice(2),ue=Q.indexOf("](");return{type:"image",src:"",alt:ue===-1?Q.replace(/\]$/,""):Q.slice(0,ue),title:null,raw:be,loading:!0}}function V(te){const be=te.indexOf("[![");if(be===-1||typeof t=="string"&&e.length===1&&w_e(t,be,"["))return!1;const Q=te.slice(0,be);return Q&&T(Q,Q),y(Z(ae(te.slice(be+1)))),c++,!0}function Y(te){if(i?.final)return!1;const be=e[c-1];if(be?.type!=="text"||!String(be.content??"").endsWith("[")||x(be,"\\["))return!1;const Q=a[a.length-1];if(Q?.type==="text"&&Q.content.endsWith("[")){const ue=Q.content.slice(0,-1);ue?(Q.content=ue,Q.raw=ue,u=Q):(a.pop(),u=null)}return y(Z(MI(te))),c++,!0}function oe(te){if(te.type!=="link")return!1;const be=te,Q=String(be.raw??""),ue=String(be.text??"");if(!Q.startsWith("[![")&&!ue.startsWith("!["))return!1;const Ae=be.title==null||be.title===""?null:String(be.title);return y(Z({type:"image",src:String(be.href??""),alt:ue.replace(/^!\[/,"").replace(/\]$/,""),title:Ae,raw:Q.startsWith("[![")?Q.slice(1):Q,loading:!0})),!0}function q(te){if(!te.startsWith("]("))return!1;const be=e[c-2];if(be?.type==="text"&&String(be.content??"").endsWith("[")&&x(be,"\\["))return!1;const Q=a[a.length-1];if(Q?.type!=="image"&&Q?.type!=="link")return!1;const ue=Q,Ae=Q?.type==="link"&&Array.isArray(ue.children)&&ue.children.length===1&&ue.children[0]?.type==="image"?a.pop():null,se=Ae?Ae.children[0]:a.pop();if(!se||se.type!=="image")return!1;const re=e[c+1];let G=String(Ae?.href??""),le=Ae?.title==null?null:String(Ae.title),ge=!0;if(re?.type==="link_open"){const{node:Ie,nextIndex:Oe}=Km(e,c+1,i);G=Ie.href,le=Ie.title,ge=!0,c=Oe}else{if(G=te.slice(2),G.includes('"')){const Ie=G.split('"');G=String(Ie[0]??"").trim(),le=Ie[1]==null?null:String(Ie[1]).trim()}c++}const ke=Z(se,G,le);return ke.loading=ge,y(ke),!0}function ne(){const te=e[c-3];return e[c-2]?.type==="image"&&e[c-1]?.type==="text"&&String(e[c-1].content??"")==="]("&&te?.type==="text"&&String(te.content??"").endsWith("[")&&x(te,"\\[")}function ie(te,be){const Q=te.indexOf("[");if(Q===-1)return!1;let ue=te.slice(0,Q);const Ae=te.indexOf("](",Q);if(Ae!==-1){const se=e[c+2];let re=te.slice(Q+1,Ae);if(re.includes("[")){const we=re.indexOf("[");ue+=te.slice(0,Q+we+1);const Be=Q+we+1;re=te.slice(Be+1,Ae)}const G=e[c+1];if(te.endsWith("](")&&G?.type==="link_open"&&se){const we=e[c+4];let Be=4,tt=!0;if(we?.type==="text"){const _t=String(we.content??"");if(_t.startsWith(")")){tt=!1;const Ct=_t.slice(1);if(Ct){const $t=Qd(we);$t.content=Ct,$t.raw=Ct,p()[c+4]=$t}else Be++}else _t==="."&&Be++}S(ue,be);const ut=String(se.content??"");return i?.validateLink&&!i.validateLink(ut)?T(re,re):y({type:"link",href:ut,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:tt}),c+=Be,!0}const le=te.indexOf(")",Ae),ge=le!==-1?te.slice(Ae+2,le):"",ke=le===-1;let Ie=ue.match(/\*+$/);if(Ie&&(ue=ue.replace(/\*+$/,"")),S(ue,be),Ie||(Ie=re.match(/^\*+/)),!d&&Ie){const we=Ie[0].length;re=re.replace(/^\*+/,"").replace(/\*+$/,"");const Be=[];if(we===1?Be.push({type:"em_open",tag:"em",nesting:1}):we===2?Be.push({type:"strong_open",tag:"strong",nesting:1}):we===3&&(Be.push({type:"strong_open",tag:"strong",nesting:1}),Be.push({type:"em_open",tag:"em",nesting:1})),Be.push({type:"link",href:ge,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:ke}),we===1){Be.push({type:"em_close",tag:"em",nesting:-1});const{node:tt}=Um(Be,0,i);A(tt)}else if(we===2){Be.push({type:"strong_close",tag:"strong",nesting:-1});const{node:tt}=Z1(Be,0,void 0,i);A(tt)}else if(we===3){Be.push({type:"em_close",tag:"em",nesting:-1}),Be.push({type:"strong_close",tag:"strong",nesting:-1});const{node:tt}=Z1(Be,0,void 0,i);A(tt)}else{const{node:tt}=Um(Be,0,i);A(tt)}}else i?.validateLink&&!i.validateLink(ge)?T(re,re):y({type:"link",href:ge,title:null,text:re,children:[{type:"text",content:re,raw:re}],loading:ke});const Oe=le!==-1?te.slice(le+1):"";return Oe&&(N({type:"text",content:Oe,raw:Oe}),c--),c++,!0}return!1}function pe(te){const be=te.indexOf("![");if(be===-1)return!1;const Q=te.slice(0,be);return Q&&!u?u={type:"text",content:Q,raw:Q}:Q&&u&&(u.content+=Q),u&&(a.push(u),u=null),y(ae(te.slice(be))),c++,!0}function Ne(te){if(!(te?.startsWith("[")&&n?.type==="list_item_open"))return!1;const be=te.slice(1).match(/[^\s\]]/);if(be===null)return c++,!0;if(be&&/x/i.test(be[0])){const Q=be[0]==="x"||be[0]==="X";return y({type:"checkbox_input",checked:Q,raw:Q?"[x]":"[ ]"}),c++,!0}return!1}return a}function E7(e,t,n){const i=n?.__sourceLineMapper;if(!i)return{startLine:e,endLine:t};const o=i(e),s=t>e?i(t-1).endLine:i(t).startLine;return{startLine:o.startLine,endLine:Math.max(o.startLine,s)}}function TI(e,t){const n=Math.max(0,Math.min(e.length,Math.trunc(t)));let i=0;for(let o=0;oi&&e[o-1]!==` +`&&r++,{startLine:s,endLine:r}}function O0(e,t,n,i){const o=L_e(e,t,n);return E7(o.startLine,o.endLine,i)}function N_e(e,t){const n=e?.map;if(!Array.isArray(n)||n.length<2)return null;const i=Number(n[0]),o=Number(n[1]);return!Number.isFinite(i)||!Number.isFinite(o)?null:E7(i,o,t)}function di(e,t,n){if(!n?.includeSourceMap)return e;const i=N_e(t,n);if(!i)return e;if(e.sourceMap=i,e.type==="code_block"){const o=e;o.startLine=i.startLine,o.endLine=i.endLine}return e}function F_e(e,t,n,i){if(!i?.includeSourceMap)return e;const o=t?.map;if(!Array.isArray(o)||o.length<2)return e;const s=Number(o[0]),r=Number(o[1]),l=Number(n);return!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(l)||(e.sourceMap=E7(s,Math.max(r,l),i)),e}function D_e(e){const t=String(e.content??""),n=t.replace(/[ \t\r\n]+$/g,"");if(n===t)return;e.content=n;const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??""),r=s.replace(/[ \t\r\n]+$/g,"");if(r===s)break;if(r){o.content=r;break}i.pop();continue}break}}function B_e(e){const t=String(e.content??""),n=t.match(/\r?\n\s*\d+[.)]?\s*$/);if(!n||typeof n.index!="number")return;e.content=t.slice(0,n.index);const i=e.children;if(!(!Array.isArray(i)||i.length===0))for(;i.length;){const o=i[i.length-1];if(!o){i.pop();continue}if(o.type==="softbreak"||o.type==="hardbreak"){i.pop();continue}if(o.type==="text"){const s=String(o.content??"");if(/^[ \t\r\n\d.)]*$/.test(s)){i.pop();continue}const r=s.replace(/[ \t\r\n\d.)]+$/g,"");r!==s&&(r?o.content=r:i.pop())}break}}function $_e(e){const t=String(e.content??"");return/[ \t\r\n]+$/.test(t)||/\r?\n\s*\d+[.)]?\s*$/.test(t)}function p1(e,t,n){const i=e[t],o=[],s=Gc(n,!0);let r=t+1;for(;rd.raw).join("")};n?.includeSourceMap&&di(c,e[r],n),o.push(c),r=u+1}else r+=1;const l={type:"list",ordered:i.type==="ordered_list_open",start:(()=>{if(i.attrs&&i.attrs.length){const a=i.attrs.find(u=>u[0]==="start");if(a){const u=Number(a[1]);return Number.isFinite(u)&&u!==0?u:1}}})(),items:o,raw:o.map(a=>a.raw).join(` +`)};return n?.includeSourceMap&&di(l,i,n),[l,r+1]}function R_e(e,t,n,i){const o=String(n[1]??"note"),s=String(n[2]??o.charAt(0).toUpperCase()+o.slice(1)),r=[],l=Gc(i,!0);let a=t+1;for(;au.raw).join(` +`)} +:::`},a+1]}const z_e=new Set(["warning","info","note","tip","danger","caution"]);function O_e(e){let t=0;for(;t=0;m--){const k=h[m];if(k.type==="text"&&/:+/.test(k.content)){p=m;break}}const g={type:"paragraph",children:Ao((p!==-1?h.slice(0,p):h)||[],void 0,void 0,a.options()),raw:String(d.content??"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")};n?.includeSourceMap&&di(g,e[u],n),l.push(g),a.remember(g.raw)}u+=3}else if(e[u].type==="bullet_list_open"||e[u].type==="ordered_list_open"){const[d,h]=p1(e,u,a.options());n?.includeSourceMap&&di(d,e[u],n),l.push(d),a.remember(d.raw),u=h}else if(e[u].type==="blockquote_open"){const[d,h]=g1(e,u,a.options());n?.includeSourceMap&&di(d,e[u],n),l.push(d),a.remember(d.raw),u=h}else{const d=M9(e,u,a.options());d?(l.push(d[0]),a.remember(d[0].raw),u=d[1]):u++}return[{type:"admonition",kind:o,title:s,children:l,raw:`:::${o} ${s} +${l.map(d=>d.raw).join(` +`)} +:::`},u+1]}const j_e=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/;function H_e(e,t,n){const i=e[t];if(i.type!=="container_open")return null;const o=j_e.exec(String(i.info??""));return o?R_e(e,t,o,n):null}const T7={parseContainer:(e,t,n)=>P_e(e,t,n),matchAdmonition:H_e};function g1(e,t,n){const i=[],o=Gc(n,!0);let s=t+1;for(;sl.raw).join(` +`)};return n?.includeSourceMap&&di(r,e[t],n),[r,s+1]}function W_e(e){if(e.info?.startsWith("diff"))return M7(e);const t=String(e.content??""),n=t.match(/ type="application\/vnd\.ant\.([^"]+)"/);let i=t;n?.[1]&&(i=t.replace(/]*>/g,"").replace(/<\/antArtifact>/g,""));const o=Array.isArray(e.map)&&e.map.length===2;return{type:"code_block",language:n?n[1]:String(e.info??""),code:i,raw:i,loading:!o}}function q_e(e,t,n){const i=[];let o=t+1,s=[],r=[];const l=Gc(n,!0);for(;ou.raw).join("")),o+=3}else if(e[o].type==="dd_open"){let a=o+1;for(r=[];a0&&(i.push({type:"definition_item",term:s,definition:r,raw:`${s.map(u=>u.raw).join("")}: ${r.map(u=>u.raw).join(` +`)}`}),s=[]),o=a+1}else o++;return[{type:"definition_list",items:i,raw:i.map(a=>a.raw).join(` +`)},o+1]}function U_e(e,t,n){const i=e[t].meta??{},o=String(i?.label??"0"),s=[],r=Gc(n,!0);let l=t+1;for(;la.raw).join(` +`)}`},l+1]}function K_e(e,t,n){const i=e[t],o=i.attrs,s=Array.isArray(o)&&o.length?Object.fromEntries(o.filter(c=>Array.isArray(c)&&c.length>=1&&c[0]).map(([c,d])=>[String(c),d==null||d===""?!0:String(d)])):void 0,r=String(i.tag?.substring(1)??"1"),l=Number.parseInt(r,10),a=e[t+1],u=String(a.content??"");return{type:"heading",level:l,text:u,...s?{attrs:s}:{},children:Ao(a.children||[],u,void 0,n),raw:u}}function V_e(e,t,n){const i=t.toLowerCase(),o=new RegExp(String.raw`^<\s*${i}(?=\s|>|/)`,"i"),s=new RegExp(String.raw`^<\s*\/\s*${i}(?=\s|>)`,"i");let r=0,l=Math.max(0,n);for(;l$/.test(d)||r++,l=a+c+1;continue}l=a+1}return-1}function CO(e){const t=String(e.content??"");if(/^\s*");else if(a)a=!k.includes(">");else if(u)u=!k.includes("?>");else if(k.startsWith("");else if(k.startsWith("");else if(k.startsWith("");else{const w=o(k);if(w)if(w.closing){for(let y=r.length-1;y>=0;y--)if(r[y]===w.tag){r.length=y;break}}else w.selfClosing||s(w.after,w.tag)||r.push(w.tag)}}if(d===-1||d>=t)break;c=d+1}return l||a||u||r.length>0}function NMe(e,t,n){if(!n?.length)return!1;const i=new Set(wf(n));if(!i.size)return!1;const o=c=>{const d=c.charCodeAt(0);return d>=65&&d<=90||d>=97&&d<=122||d>=48&&d<=57||c==="_"||c==="-"||c===":"},s=c=>c===" "||c===" ",r=c=>{if(c[0]!=="<")return null;let d=1;for(;d"&&m!=="/")return null;const k=c.indexOf(">",d);if(k===-1)return null;let w=k-1;for(;w>=0&&s(c[w]);)w--;return{closing:h,tag:g,selfClosing:!h&&c[w]==="/",after:c.slice(k+1)}},l=(c,d)=>{const h=c.toLowerCase();let p=0;for(;p")return!0}}return!1},a=[];let u=0;for(;u=t?t:c,h=e.slice(u,d),p=h.endsWith("\r")?h.slice(0,-1):h,g=m1(p);if(g){const m=r(p.slice(g.index));if(m)if(m.closing){for(let k=a.length-1;k>=0;k--)if(a[k]===m.tag){a.length=k;break}}else m.selfClosing||l(m.after,m.tag)||a.push(m.tag)}if(c===-1||c>=t)break;u=c+1}return a.length>0}function FMe(e,t){const n=uMe.exec(e);if(!n)return null;const i=n[1]??"",o=n.index+i.length,s=e.indexOf(` +`,o),r=e.slice(o,s===-1?e.length:s);return!m1(r.endsWith("\r")?r.slice(0,-1):r)||NO(e,o)||LMe(e,o)||NMe(e,o,t)?null:`${e.slice(0,n.index)}${i}`}function R7(e,t,n){let i=t;for(;ii&&(r=!0),t.inMath=!1,t.mathOpenOffset=null,s+=2;continue}s++;continue}if(t.inDollarMath){if(e.startsWith("$$",s)&&!Na(e,l)){i!=null&&o&&n+s+2>i&&(r=!0),t.inDollarMath=!1,t.dollarMathOpenOffset=null,s+=2;continue}s++;continue}if(e[s]==="`"&&!Na(e,l)){const a=R7(e,s,"`"),u=FO(e,s+a,a);if(u===-1)break;s=u+a;continue}if(e.startsWith("\\[",s)&&!Na(e,l)){t.inMath=!0,t.mathOpenOffset=n+s,s+=2;continue}if(e.startsWith("$$",s)&&!Na(e,l)){t.inDollarMath=!0,t.dollarMathOpenOffset=n+s,s+=2;continue}s++}return r}function DMe(e,t){if(!S7(t))return e;const n=t,i=BI.get(n),o=i?.source===e?i.state:i&&e.startsWith(i.source)?DO(i.state,e.slice(i.source.length),i.source.length-i.state.lineBuffer.length).state:E9(e).state;BI.set(n,{source:e,state:o});const{context:s}=o,r=s.inMath?s.mathOpenOffset:s.inDollarMath?s.dollarMathOpenOffset:null;if(r==null)return e;const l=e.slice(r+2),a=e.lastIndexOf(` +`,r-1)+1;if(e.slice(a,r).trim()!==""&&!/^\r?\n/.test(l)||/^\s*!\[/.test(l))return e;const u=l.trim(),c=/^(?:[a-z]|pi)$/i.test(u);return ac(l)&&!c?e:e.slice(0,r)}function BMe(e,t,n,i,o){const s=F7(e),r=D7(e);if(t.inFence&&t.fenceInBlockquote&&e.trim()&&B7(e)==null&&sk(t),t.inFence&&t.fenceInList&&e.trim()&&s.column=t.fenceLen&&/^\s*$/.test(l.rest)&&sk(t):(t.inFence=!0,t.fenceChar=l.markerChar,t.fenceLen=l.markerLen,t.fenceInBlockquote=l.inBlockquote,t.fenceInList=l.inList||t.listContentIndent!=null&&!l.inBlockquote&&s.column>=t.listContentIndent,t.fenceListIndent=l.listIndent||t.listContentIndent||0);else if(!t.inFence)return OI(e,t,n,i,o)}else return OI(e,t,n,i,o);return!1}function E9(e,t=_Me(),n=null,i=!1,o=0){const s=Zp(t);let r=Zp(t),l="",a=!1,u=0;for(;uu&&e[c-1]==="\r"?c-1:d?c:e.length,p=e.slice(u,h);BMe(p,s,o+u,n,i)&&(a=!0),d?(r=Zp(s),l=""):l=p,u=d?c+1:e.length}return{closedOpenMath:a,state:{committedContext:r,context:s,lineBuffer:l}}}function DO(e,t,n=0){return t&&!e.context.inMath&&!e.context.inDollarMath&&!e.context.inFence&&!e.committedContext.inFence&&!/[\\$`~\r\n]/.test(t)&&!(e.lineBuffer.endsWith("\\")&&(t[0]==="["||t[0]==="]"))?{closedOpenMath:!1,state:{committedContext:Zp(e.committedContext),context:Zp(e.context),lineBuffer:e.lineBuffer+t}}:E9(e.lineBuffer+t,e.committedContext,n+e.lineBuffer.length,e.context.inMath||e.context.inDollarMath,n)}function $Me(e,t){if(!S7(e))return;const n=e.stream;if(typeof n?.reset!="function")return;const i=e,o=I9.get(i);if(o?.source===t)return;const s=o?t.startsWith(o.source):!1,r=s&&o?t.slice(o.source.length):"",l=s&&o?DO(o.explicitBracketMath,r,o.source.length-o.explicitBracketMath.lineBuffer.length):E9(t),a=l.state,u=s&&o?l.closedOpenMath:!1;if(o&&s&&o.key===null&&o.pendingCandidate===!1&&!u&&!TMe(o.source,r)&&!IMe(t)){o.source=t,o.explicitBracketMath=a;return}const c=vSe(t);(o&&(o&&!s||o.key!==c||u)||!o&&c)&&n.reset(),MMe(e,t,c,a)}function RMe(e){return typeof e.preTransformTokens=="function"||typeof e.postTransformTokens=="function"}function BO(e,t){const n=e?.map,i=t?.map;return n===i?!0:!Array.isArray(n)||!Array.isArray(i)?!1:n.length===i.length&&n.every((o,s)=>o===i[s])}function zMe(e,t){const n=e?.attrs,i=t?.attrs;if(n===i)return!0;if(!Array.isArray(n)||!Array.isArray(i)||n.length!==i.length)return!1;for(let o=0;o":""}function WI(e){return{type:"paragraph",children:e,raw:e.map(HMe).join("")}}function qI(e,t){if(t.sourceMap)for(const n of e)n.sourceMap||(n.sourceMap=t.sourceMap)}function UI(e,t){if(e.type!=="paragraph")return null;const n=e.children,i=Array.isArray(n)?n:[];if(i.length===0)return null;const o=AMe(t);if(!o?.size)return null;let s=-1;for(let c=0;cp?.type==="hardbreak")){s=c;break}}if(s===-1)return null;const r=i.slice(0,s),l=i[s];if(!l)return null;const a=[];r.length&&a.push(WI(r)),a.push(l);const u=i.slice(s+1);return u.length&&a.push(WI(u)),a}function WMe(e){const t=e.trim();if(!t)return null;const n=/^(?:]*>\s*)?]*)?>/i.test(t),i=/<\/html>\s*$/i.test(t);return!n||!i?null:[{type:"html_block",tag:"html",raw:e,content:e,loading:!1}]}function Gp(e){const t=e.raw;if(typeof t=="string")return t;const n=e.content;return typeof n=="string"?n:""}function qMe(e,t){if(e.type!=="html_block"||!t)return!1;const n=String(e.raw??e.content??"");return new RegExp(String.raw`^\s*<\s*\/\s*${fa(t)}\s*>\s*$`,"i").test(n)}const lk=new Set(["iframe","script","style","textarea","title"]);function bg(e,t,n){if(!e||!t)return null;const i=t.toLowerCase(),o=h=>{if(e.startsWith("",h+4);return{closing:!1,end:b===-1?e.length:b+3,selfClosing:!1,tag:""}}if(e.startsWith("",h+9);return{closing:!1,end:b===-1?e.length:b+3,selfClosing:!1,tag:""}}const p=Do(e.slice(h));if(p===-1)return null;const g=h+p+1,m=e.slice(h,g);if(/^<\s*[!?]/.test(m))return{closing:!1,end:g,selfClosing:!1,tag:""};let k=m.slice(1).trimStart();const w=k.startsWith("/");w&&(k=k.slice(1).trimStart());const y=k.match(/^([A-Z][\w:-]*)/i);return y?.[1]?{closing:w,end:g,selfClosing:/\/\s*>$/.test(m),tag:y[1].toLowerCase()}:{closing:!1,end:h+1,selfClosing:!1,tag:""}},s=(h,p)=>{const g=new RegExp(String.raw`<\s*\/\s*${fa(h)}(?=\s|>)`,"gi");g.lastIndex=p;const m=g.exec(e);if(!m||m.index==null)return null;const k=o(m.index);return k?{start:m.index,end:k.end}:null};let r=-1,l=-1,a=Math.max(0,n);for(;a$/.test(u))return{raw:u,start:r,end:l+1,closed:!0};if(lk.has(i)){const h=s(i,l+1);return h?{raw:e.slice(r,h.end),start:r,end:h.end,closeStart:h.start,closed:!0}:{raw:e.slice(r),start:r,end:e.length,closed:!1}}let c=1,d=l+1;for(;d]*$/,"")} +`}function KI(e){return e.replace(/\r\n/g,` +`).replace(/(^|\n)[ \t]{1,4}/g,"$1")}function VMe(e,t,n){return n?e.includes(n,t)?!0:KI(e.slice(Math.max(0,t))).includes(KI(n)):!1}function ZMe(e,t){let n=Math.max(0,t);for(;n)`,"gi");let i=-1,o;for(;(o=n.exec(e))!==null;)i=o.index;return i}function RO(e,t){return{final:t,__disableStreamParse:!0,requireClosingStrong:e.requireClosingStrong,customHtmlTags:e.customHtmlTags,validateLink:e.validateLink}}const QMe=new Set(["admonition","blockquote","code_block","definition_list","footnote","heading","list","math_block","table","thematic_break"]),YMe=/(?:^|\n)\s{0,3}(?:#{1,6}\s+\S|[-+*]\s+\S|\d+[.)]\s+\S|>\s*\S|`{3,}|~{3,}|(?:\*{3,}|-{3,}|_{3,})(?:\s|$)|\|.*\|)/m;function JMe(e){return/\n\s*\n/.test(e)||YMe.test(e)}function XMe(e,t){if(!e.trim()||t.length===0)return!1;if(t.some(i=>QMe.has(String(i?.type??"").toLowerCase()))||t.some(i=>{if(i?.type!=="html_block")return!1;const o=i;return Array.isArray(o.children)&&o.children.length>0}))return!0;if(!JMe(e))return!1;if(t.length>1)return!0;const[n]=t;return!!(n&&n.type==="paragraph")}function eIe(e){const t=[];let n=0;for(;n=e.length)break;const i=e.slice(n).match(/^<([A-Z][\w:-]*)/i);if(!i?.[1])return null;const o=bg(e,i[1],n);if(!o||o.start!==n)return null;t.push(o.raw),n=o.end}return t.length>1?t:null}function tIe(e,t,n,i){const o=n.customHtmlTags?.join("\0")??"",s=t,r=DI.get(s),l=r&&r.final===i&&r.customHtmlTags===o&&r.requireClosingStrong===n.requireClosingStrong&&r.validateLink===n.validateLink,a=e.map((u,c)=>l&&r.blocks[c]===u?r.children[c]:zh(u,t,n));return DI.set(s,{blocks:e,children:a,customHtmlTags:o,final:i,requireClosingStrong:n.requireClosingStrong,validateLink:n.validateLink}),a.flat()}function nIe(e,t,n,i){return e.map(o=>{if(o?.type!=="html_block")return o;const s=o,r=String(s.tag??"").toLowerCase();if(!r||r==="details"||$z.has(r)||Array.isArray(s.children))return o;const l=String(o.raw??s.content??"");if(!l)return o;const a=Do(l);if(a===-1)return o;const u=bg(l,r,0),c=u?.closeStart??-1,d=u?.closed===!0&&c>=a+1,h=d?l.slice(a+1,c):l.slice(a+1);if(!h.trim())return o;const p=RO(n,i),g=d?null:eIe(h),m=g?tIe(g,t,p,i):zh(h,t,p);return XMe(h,m)?{...o,children:m}:o})}function iIe(e){for(const t of e)if(t?.type==="html_block")return!0;return!1}function zh(e,t,n){return e.trim()?OO(e,t,{...n,__disableStreamParse:!0,__disableStructuredReuse:!0}):[]}function oIe(e,t,n){const i=zh(e,t,n),o=i[0];return i.length===1&&o?.type==="paragraph"&&Array.isArray(o.children)?o.children:i}function sIe(e,t,n){const i=CO({content:e}),o=Do(e),s=$O(e,"summary");if(o!==-1&&s!==-1&&s>=o+1){const r=oIe(e.slice(o+1,s),t,n);r.length>0&&(i.children=r)}return i.raw=e,i}function rIe(e,t,n){const i=Do(e);if(i===-1)return[];const o=e.slice(i+1);if(!o.trim())return[];const s=bg(o,"summary",0);if(!s)return zh(o,t,n);const r=o.slice(0,s.start),l=o.slice(s.end);return[...zh(r,t,n),sIe(s.raw,t,n),...zh(l,t,n)]}function zO(e,t,n,i,o,s=0){const r=[];let l=s;for(let a=0;a{const P=$O(h,"details");return P!==-1?h.slice(0,P):h})():h,[b]=zO(w?[]:m===-1?e.slice(a+1):e.slice(a+1,m),t,n,i,o,p+h.length),A=rIe(y,n,RO(i,o)),T=m===-1?"":String(e[m].raw??Gp(e[m])??""),S=w||m!==-1&&k?.closed===!0,x=T.replace(/[\t\r\n ]+$/,""),_=S?(()=>{const P=(k?.raw??"").lastIndexOf(x);return P===-1?t.length:p+P})():t.length,L=Do(h),M=w&&L!==-1?p+L+1:p+h.length,N=t.slice(M,_===-1?t.length:_),I=n.parse(N,{__markstreamFinal:o}),z=n.renderer.render(I,n.options,{__markstreamFinal:o}),H=_+x.length,O=S?Math.max(_+T.length,ZMe(t,H)):t.length,R=S?t.slice(_,O):T,j=S?t.slice(p,O):t.slice(p),$=w&&L!==-1?h.slice(0,L+1):h,W={...u,tag:"details",attrs:_9(h.slice(0,L+1)),raw:j,content:`${$}${z}${R}`,children:[...A,...b],loading:!o&&!S};if(i.includeSourceMap&&(W.sourceMap=O0(t,p,S?O:t.length,i)),r.push(W),l=S?O:t.length,m===-1&&!w)break;m!==-1&&(a=m)}return[r,l]}function lIe(e,t,n,i){if(!n)return e;const o=e.slice();let s=0;for(let r=0;r=d.start&&L.end<=d.end){o.splice(S,1);continue}break}T=_+x.length,o.splice(S,1)}}return o}function aIe(e){const t=l=>l===" "||l===" "||l===` +`||l==="\r",n=l=>{if(!l||l[0]!=="<"||l.includes(">"))return!1;let a=1;if(a{const k=m.charCodeAt(0);return k>=65&&k<=90||k>=97&&k<=122},c=m=>{const k=m.charCodeAt(0);return k>=48&&k<=57},d=m=>m==="!"||u(m),h=m=>u(m)||c(m)||m===":"||m==="-",p=m=>u(m)||c(m)||m==="_"||m==="."||m===":"||m==="-",g=p;if(a>=l.length||!d(l[a]))return!1;for(a++;a=l.length)return!0;if(l[a]==="/"){for(a++;a=l.length}if(!p(l[a]))return!1;for(a++;a=l.length)return!0;const m=l[a];if(m==='"'||m==="'"){for(a++;a=l.length)return!0;a++}else{for(;a"||k==='"'||k==="'"||k==="`")break;a++}if(a>=l.length)return!0}}}return!0},i=(l,a)=>NO(l,a),o=String(e??""),s=o.lastIndexOf("<");if(s===-1||i(o,s))return o;if(s>0){const l=o[s-1],a=l===" "||l===" "||l===` +`||l==="\r",u=o[s-2];if(!a&&!((l==="n"||l==="r")&&u==="\\"))return o}const r=o.slice(s);return r.includes(">")||r.length>1&&(r[1]===" "||r[1]===" "||r[1]===` +`||r[1]==="\r")||!n(r)?o:o.slice(0,s)}function ZI(e,t){if(e===t)return;const n=e.split(/\r?\n/),i=t.split(/\r?\n/),o=[];let s=0;for(let r=0;r{const l=Number.isFinite(r)?Math.max(0,Math.trunc(r)):0;if(lString(g??"").toLowerCase()).filter(Boolean));if(!n.size)return e;const i=g=>g===" "||g===" ",o=g=>{const m=g.charCodeAt(0);return m>=65&&m<=90||m>=97&&m<=122||m>=48&&m<=57||g==="_"||g==="-"||g===":"},s=g=>{if(!g)return!1;if(g[0]===" ")return!0;let m=0;for(let k=0;k=4)return!0;continue}if(w===" ")return!0;break}return!1},r=g=>{let m=!1,k=!1;for(let w=0;w")return w}return-1},l=g=>{let m=0;for(;m{if(s(g))return-1;const k=g.replace(/^[ \t]+/,"");if(!k||k.startsWith(">")||k.startsWith("|")||/^(?:[*+-]|\d+[.)])[\t ]+/.test(k))return-1;let w=!1,y=0;for(;y=T.length){w=!0,y++;continue}const x=T[S];if(x==="!"||x==="?"){w=!0,y+=A+1;continue}if(x==="/"){w=!0,y+=A+1;continue}const _=S;for(;S"&&M!=="/"){w=!0,y++;continue}const N=new RegExp(String.raw`<\s*\/\s*${L}\s*>`,"i"),I=/\/\s*>$/.test(T),z=N.test(g.slice(y+A+1)),H=N.test(e.slice(m+y+A+1)),O=/[\r\n]/.test(e.slice(m+y+A+1));if(w&&n.has(L)&&!I&&!z&&(H||O))return y;w=!0,y+=A+1}return-1};let u=!1,c="",d=0,h="",p=0;for(;pp&&e[g-1]==="\r",w=m?k?g-1:g:e.length,y=e.slice(p,w),b=m?k?`\r +`:` +`:"",A=l(y);let T=y;if(!u&&!A){const S=a(y,p);if(S!==-1){const x=b||` +`;T=`${y.slice(0,S).replace(/[ \t]+$/,"")}${x}${x}${y.slice(S).replace(/^[ \t]+/,"")}`}}h+=T,h+=b,A&&(u?A.markerChar===c&&A.markerLen>=d&&/^\s*$/.test(A.rest)&&(u=!1,c="",d=0):(u=!0,c=A.markerChar,d=A.markerLen)),p=m?g+1:e.length}return h}function cIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(d=>String(d??"").toLowerCase()));if(!n.size)return e;const i=d=>d===" "||d===" ",o=d=>{const h=d.charCodeAt(0);return h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||d==="_"||d==="-"},s=d=>{let h=0;for(;h{let h=!1,p=!1;for(let g=0;g")return g}return-1},l=(d,h,p)=>{const g=p.toLowerCase();let m=d.indexOf("<",h);for(;m!==-1;){let k=m+1;for(;k=d.length||d[k]!=="/"){m=d.indexOf("<",m+1);continue}for(k++;kd.length){m=d.indexOf("<",m+1);continue}let w=!0;for(let b=0;b="A"&&A<="Z"?String.fromCharCode(A.charCodeAt(0)+32):A)!==g[b]){w=!1;break}}if(!w){m=d.indexOf("<",m+1);continue}let y=k+g.length;if(y")return!0;m=d.indexOf("<",m+1)}return!1},a=d=>{let h=0;for(;h=d.length||d[h]!=="<")return d;for(h++;h=d.length||d[h]==="/")return d;const p=h;for(;hc&&e[d-1]==="\r",p=h?d-1:d,g=e.slice(c,p);u+=a(g),u+=h?`\r +`:` +`,c=d+1}return u}function dIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(h=>String(h??"").toLowerCase()));if(!n.size)return e;const i=h=>h===" "||h===" ",o=h=>{let p=0,g=!1,m=0;for(;p=h.length||h[p]!==">")break;for(g=!0,p++;p{let p=0;for(;pnew RegExp(String.raw`(<\s*\/\s*${h}\s*>)${"(?=[\\t ]*(?:#{1,6}[\\t ]+|>|(?:[*+-]|\\d+[.)])[\\t ]+|(?:`{3,}|~{3,})|\\||\\$\\$|:{3,}|\\[\\^[^\\]]+\\]:|(?:-{3,}|\\*{3,}|_{3,})))"}`,"gi"));let l=!1,a="",u=0,c="",d=0;for(;dd&&e[h-1]==="\r",m=p?g?h-1:h:e.length,k=e.slice(d,m),w=p?g?`\r +`:` +`:"",y=o(k),b=y?.prefix??"",A=y?.content??k,T=s(A);T&&(l?T.markerChar===a&&T.markerLen>=u&&/^\s*$/.test(T.rest)&&(l=!1,a="",u=0):(l=!0,a=T.markerChar,u=T.markerLen));let S=A;if(!l&&S.includes("{if(N.replace(/^[\t ]+/,"").startsWith("|"))return _;const I=N.slice(0,M).replace(/^[\t ]+/,"");if(I.length>0){const z=L.match(/^<\s*\/\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"",H=I.match(/^<\s*([A-Z][\w:-]*)/i)?.[1]?.toLowerCase()??"";if(!z||!H||z!==H)return _}return`${L} + +`});if(b){const x=b+S.split(` +`).join(` +${b}`);c+=x}else c+=S;c+=w,d=p?h+1:e.length}return c}function fIe(e,t){if(!e||!t.length)return e;const n=new Set(t.map(I=>String(I??"").toLowerCase()));if(!n.size)return e;const i=I=>I===" "||I===" ",o=I=>{if(!I)return!1;if(I[0]===" ")return!0;let z=0;for(let H=0;H=4)return!0;continue}if(O===" ")return!0;break}return!1},s=I=>{const z=I.charCodeAt(0);return z>=65&&z<=90||z>=97&&z<=122||z>=48&&z<=57||I==="_"||I==="-"||I===":"},r=I=>{let z=0;for(;z{let z=0,H=!1,O=0;for(;z=I.length||I[z]!==">")break;for(H=!0,z++;zr(I).startsWith("<"),u=I=>{for(let z=0;z{if(o(I))return"";const z=r(I);if(!z.startsWith("<"))return"";let H=1;for(;H=z.length||z[H]==="/"||z[H]==="!"||z[H]==="?")return"";const O=H;for(;H"&&j!=="/"?"":R},d=I=>{if(o(I))return null;const z=r(I);if(!z.startsWith("<"))return null;let H=1;for(;H=z.length)return null;const O=z[H]==="/";if(O)for(H++;H"&&W!=="/")return null;if(O)return{type:"close",name:$};if(/\/\s*>\s*$/.test(z))return{type:"open",name:$,complete:!0};const P=z.indexOf(">",H);if(P!==-1){const Z=z.slice(P+1);if(new RegExp(`<\\s*\\/\\s*${$}\\s*>`,"i").test(Z))return{type:"open",name:$,complete:!0}}return{type:"open",name:$,complete:!1}},h=I=>{if(o(I))return null;const z=r(I).replace(/[ \t]+$/,"");if(!z.startsWith("<")||/^<\s*(?:!--|!doctype\b|\?)/i.test(z))return null;const H=z.match(/^<\s*([A-Z][\w:-]*)\b[^>]*\/\s*>\s*$/i);if(H?.[1])return H[1].toLowerCase();const O=z.match(/^<\s*([A-Z][\w:-]*)\b[^>]*>[\s\S]*<\s*\/\s*([A-Z][\w:-]*)\s*>\s*$/i);if(!O?.[1]||!O[2])return null;const R=O[1].toLowerCase();return R===O[2].toLowerCase()?R:null};let p=!1,g="",m=0;const k=I=>{let z=0;for(;zk(I),y=I=>{const z=r(I);return z?o(I)?!0:/^(?:#{1,6}[ \t]+|>|[*+-][ \t]+|\d+[.)][ \t]+|`{3,}|~{3,}|\||\$\$|:{3,}|\[\^[^\]]+\]:|-{3,}|\*{3,}|_{3,})/.test(z):!1},b=(I,z,H)=>{let O=I,R=0;for(;OO&&e[j-1]==="\r",P=$?W?j-1:j:e.length,Z=e.slice(O,P),ae=l(Z),V=ae?.key??"";if(R>0&&z&&V!==z)break;const Y=ae?.content??Z,oe=d(Y);if(oe?.name===H){if(oe.type==="open")oe.complete||R++;else if(R>0&&(R--,R===0))return!1}else if(R>0&&(u(Y)||y(Y)))return!0;if($)O=j+1;else break}return!1};let A="",T=0,S=!0,x=!1,_=!1,L=` +`;const M=[];let N="";for(;TT&&e[I-1]==="\r",O=z?H?I-1:I:e.length,R=e.slice(T,O),j=z?H?`\r +`:` +`:"",$=l(R),W=$?.key??"",P=$?.content??R,Z=w(P);Z&&(p?Z.markerChar===g&&Z.markerLen>=m&&/^\s*$/.test(Z.rest)&&(p=!1,g="",m=0):(p=!0,g=Z.markerChar,m=Z.markerLen));const ae=M.length>0;if(!p&&!ae){const Y=c(P),oe=!!Y&&!S&&x&&_&&b(T,W,Y);Y&&!S&&(!x||oe)&&(W&&N&&W===N?A+=`${W}${L}`:W||(A+=L))}if(A+=R,A+=j,j&&(L=j),!p){const Y=d(P);if(Y){if(Y.type==="open")Y.complete||M.push(Y.name);else for(let oe=M.length-1;oe>=0;oe--)if(M[oe]===Y.name){M.length=oe;break}}}const V=u(P);S=V,x=!V&&a(P),_=!V&&!!h(P),N=W,T=z?I+1:e.length}return A}function hIe(e){let t=!1,n="",i=0,o=!1,s=!1,r=!1,l=0;const a=(c,d)=>{const h=$7(c);if(h){t?h.markerChar===n&&h.markerLen>=i&&/^\s*$/.test(h.rest)&&(t=!1,n="",i=0):(t=!0,n=h.markerChar,i=h.markerLen);return}if(t)return;let p=0;for(;p{for(;l=c?c:d,p=h>l&&e[h-1]==="\r"?h-1:h;if(a(e.slice(l,p)),d===-1||d>=c){l=c;break}r=!1,l=d+1}},inMath:()=>o||s||r}}function ak(e,t,n,i){let o=e.replace(/([^\\])\r(ight|ho)/g,"$1\\r$2");const s=hIe(o);if(o=o.replace(/([^\\])\r?\n(abla|eq|ot|exists)/g,(r,l,a,u)=>{s.scanTo(u+1);const c=s.inMath();return s.scanTo(u+r.length),c?`${l}\\n${a}`:r}),t||(o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/(?:^|\n)\s*-\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*-\s*$/,r=>r.startsWith(` +`)?` +`:""):/(?:^|\n)\s*--\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*--\s*$/,r=>r.startsWith(` +`)?` +`:""):/(?:^|\n)\s*>\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*>\s*$/,r=>r.startsWith(` +`)?` +`:""):/\n\s*[*+]\s*$/.test(o)?o=o.replace(/\n\s*[*+]\s*$/,` +`):/(?:^|\n)\s*\d+\s*$/.test(o)?/^\d+$/.test(o.trim())||(o=o.replace(/(?:^|\n)\s*\d+\s*$/,r=>r.startsWith(` +`)?` +`:"")):/(?:^|\n)\s*\d+[.)]\s+\*{1,3}\s*$/.test(o)?o=o.replace(/((?:^|\n)\s*\d+[.)]\s+)(\*{1,3})\s*$/,(r,l,a)=>`${l}${a.split("").map(()=>"\\*").join("")}`):/(?:^|\n)\s*\d+[.)]\s*$/.test(o)?o=o.replace(/(?:^|\n)\s*\d+[.)]\s*$/,r=>r.startsWith(` +`)?` +`:""):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,` +`)),o=FMe(o,i.customHtmlTags)??o),i.customHtmlTags?.length&&o.includes("<")){const r=wf(i.customHtmlTags);if(r.length&&(o=uIe(o,r),o=cIe(o,r),o=fIe(o,r),o=dIe(o,r),o.includes("[\t ]*)(\r?\n)(?![\t ]*\r?\n|$)`,"gim");o=o.replace(a,"$1$2$2")}}return t||(o=aIe(o)),o}function pIe(e,t,n,i){const o=e,s=`${n?"final":"stream"}:${(i.customHtmlTags??[]).join(",")}`,r=W8.get(o);let l;if(!n&&!i.customHtmlTags?.length&&r&&r.mode===s&&t.length>=r.source.length&&t.startsWith(r.source)){const a=Math.max(0,r.source.length-cMe-dMe),u=ak(t.slice(a),n,e,i),c=r.source.length-a;l=u.length>=c&&u.slice(0,c)===r.safeMarkdown.slice(-c)?r.safeMarkdown.slice(0,r.safeMarkdown.length-c)+u:ak(t,n,e,i)}else l=ak(t,n,e,i);return n||(l=DMe(l,e)),W8.set(o,{source:t,safeMarkdown:l,mode:s}),l}function OO(e,t,n={}){const i=_O(n),o=i?Jl():0,s=!!n.final,r=(e??"").toString();xMe(t,n)&&(t.stream.reset(),SMe(t),W8.delete(t));const l=pIe(t,r,s,n);i&&vc(i,"safeMarkdownMs",Jl()-o);const a=WMe(l);if(a){if(n.includeSourceMap){const T={...n,__sourceLineMapper:ZI(r,l)};a[0].sourceMap=O0(l,0,l.length,T)}const b=n.preTransformTokens,A=n.postTransformTokens;if(N7(t,n)||typeof b=="function"||typeof A=="function"){const T=HI(t,l,{__markstreamFinal:s},n),S=typeof b=="function"&&b(T)||T;typeof A=="function"&&A(S)}return $I(a,n,i,o)}const u=i?Jl():0,c=HI(t,l,{__markstreamFinal:s},n);if(i&&vc(i,"tokenizeMs",Jl()-u),!c||!Array.isArray(c))return $I([],n,i,o);const d=n.preTransformTokens,h=n.postTransformTokens;let p=c;d&&typeof d=="function"&&(p=d(p)||p);const g=t,m=typeof g.validateLink=="function"&&g.__markstreamOriginalValidateLink&&g.validateLink!==g.__markstreamOriginalValidateLink?g.validateLink:void 0,k=n.validateLink??m??g.options?.validateLink??(typeof g.validateLink=="function"?g.validateLink:void 0),w={...n,validateLink:k,__markdownIt:t,__sourceLineMapper:n.includeSourceMap===!0?ZI(r,l):void 0,__sourceMarkdown:l,__customHtmlBlockCursor:0};let y=bMe(t,l,p,w,i);if(h&&typeof h=="function"){const b=h(p);if(Array.isArray(b)){const A=b[0],T=A?.type;A&&typeof T=="string"?y=ah(b,{...w,__customHtmlBlockCursor:0},i):y=b}}if(iIe(y)){const b=i?Jl():0;y=lIe(y,s,l,w),y=zO(y,l,t,w,s)[0],y=nIe(y,t,w,s),i&&vc(i,"htmlBlockPassesMs",Jl()-b)}if(s){const b=new WeakSet,A=T=>{if(!T||typeof T!="object"||b.has(T))return;if(b.add(T),Array.isArray(T)){for(const x of T)A(x);return}const S=T;S.type==="html_block"&&S.loading===!0&&(S.loading=!1);for(const x of Object.values(S))A(x)};A(y)}return y=IO(y,n),n.debug&&console.log("Parsed Markdown Tree Structure:",y),MO(y,i,o)}function GI(e,t){if(!e||!Array.isArray(e))return[];const n=[],i=Gc(t),o=t?.__linkifyDemotionSeed;if(Array.isArray(o)&&o.length)for(const l of o)i.remember(String(l??""));const s=t?.includeSourceMap===!0;let r=0;for(;rd.type==="html_block")){if(s)for(const d of c)di(d,a,t);for(const d of c)xa(d,a,t);n.push(...c)}else{const d={type:"paragraph",raw:u,children:c};s&&di(d,a,t);const h=UI(d,t);if(h){s&&qI(h,d);for(const p of h)xa(p,a,t);n.push(...h)}else xa(d,a,t),n.push(d)}i.remember(u)}r+=1;break;default:r+=1;break}}return n}const gIe=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g,Qp=/\d/u,mIe=/[,.!?;:,。;、!?:]/u,vIe=/\d\p{Script=Han}{1,3}$/u;function yIe(e){return e.pos>0&&e.pos+1{const u=l,c=u.posMax,d=u.pos;if(u.src.charCodeAt(d)!==r||a||s.refuseDigitRange&&yIe(u))return!1;u.pos=d+1;let h=!1;for(;u.pos]|$)/i,CIe=new Set([...vg,"base","button","datalist","dialog","embed","fieldset","form","iframe","input","legend","link","meta","object","optgroup","option","output","param","select","style","template","textarea","title"]),wIe=new Set(["a","abbr","b","blockquote","br","caption","code","col","colgroup","dd","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","picture","pre","s","small","source","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","ul"]);function QI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xIe(e){return typeof e=="string"?e:e==null?"":String(e)}function PO(e){return/^[^\s"'<>`=]+$/.test(e)&&!/^on/i.test(e)}function uc(e){return xIe(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function jO(e){return uc(e).replace(/`/g,"`")}function L9(e){return String(e??"").trim().toLowerCase()}function z7(e,t="safe"){const n=L9(e);return n?t==="escape"?!0:t==="trusted"?vg.has(n):!wIe.has(n):!1}function HO(e,t="safe"){const n=L9(e);return n?t==="escape"?!0:t==="trusted"?vg.has(n):CIe.has(n):!1}function YI(e){const t=Object.entries(e);return t.length===0?"":t.map(([n,i])=>i===""?` ${n}`:` ${n}="${jO(i)}"`).join("")}function WO(e){const t=e.startsWith("/"),n=t?e.slice(1):e,i=n.match(AIe);return i?{attrsStr:t?"":n.slice(i[0].length).trimStart(),isClosing:t,isSelfClosing:!t&&e.trimEnd().endsWith("/"),tagName:i[1]}:null}function SIe(e,t){const n=e.split(",").map(i=>i.trim()).filter(Boolean);return n.length===0?!1:n.some(i=>{const o=i.split(/\s+/,1)[0]??"";return!o||Gd(o,{tagName:t,attrName:"srcset"})})}function qO(e,t,n,i){return lwe.has(e)||n==="safe"&&e==="style"?!0:e==="srcset"?SIe(t,i):!!(awe.has(e)&&t&&Gd(t,{tagName:i,attrName:e}))}function Fd(e,t){const n=t.toLowerCase();return Object.keys(e).find(i=>i.toLowerCase()===n)}function UO(e,t,n,i=!1){if(t!=="safe"||L9(n)!=="a")return e;const o=Fd(e,"href");if(i&&(!o||!e[o])){const a=Fd(e,"target"),u=Fd(e,"rel");return a&&delete e[a],u&&delete e[u],e}const s=Fd(e,"target");if((s?String(e[s]).trim():"").toLowerCase()!=="_blank")return e;const r=Fd(e,"rel"),l=new Set(String(r?e[r]:"").split(/\s+/).map(a=>a.trim()).filter(Boolean).filter(a=>a.toLowerCase()!=="opener"));return l.add("noopener"),l.add("noreferrer"),r&&r!=="rel"&&delete e[r],e.rel=Array.from(l).join(" "),e}function JI(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!PO(r)||qO(l,s,t,n)||(i[r]=s)}return UO(i,t,n,!!Fd(e,"href"))}function KO(e,t){const n=e.toLowerCase();return Bz.has(n)?!1:QI(t,n)||QI(t,e)}function O7(e,t="safe",n){const i={};for(const[o,s]of Object.entries(e)){const r=o.trim(),l=r.toLowerCase();!r||!PO(r)||qO(l,s,t,n)||(i[r]=s)}return UO(i,t,n,!!Fd(e,"href"))}function Yp(e){const t={};if(!Array.isArray(e)||e.length===0)return t;for(const[n,i]of e)n&&(t[String(n)]=i==null?"":String(i));return t}function Fv(e,t="safe",n){const i=O7(Yp(e),t,n),o=Object.entries(i).map(([s,r])=>[s,r]);return o.length>0?o:void 0}function _Ie(e,t){const n=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(n))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(n)){const i=Number(e);if(e!==""&&!Number.isNaN(i))return i}return e}function MIe(e){const t={};for(const[n,i]of Object.entries(e))t[n]=_Ie(i,n);return t}function uk(e){return e.trim().length>0}function VO(e){const t=[];let n=0;for(;n",n);if(r!==-1){n=r+3;continue}break}const i=e.indexOf("<",n);if(i===-1){if(nn){const r=e.slice(n,i);uk(r)&&t.push({type:"text",content:r})}if(e.startsWith("![CDATA[",i+1)){const r=e.indexOf("]]>",i);if(r!==-1){t.push({type:"text",content:e.slice(i,r+3)}),n=r+3;continue}break}if(e.startsWith("!",i+1)){const r=e.indexOf(">",i);if(r!==-1){n=r+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=WO(e.slice(i+1,o));if(!s){const r=e.slice(i,o+1);uk(r)&&t.push({type:"text",content:r}),n=o+1;continue}if(s.isClosing)t.push({type:"tag_close",tagName:s.tagName});else{const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Tc.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r})}n=o+1}return t}function IIe(e){const t=[];let n=0;for(;n",n);if(l!==-1){n=l+3;continue}break}const i=e.indexOf("<",n);if(i===-1){nn&&t.push({type:"text",content:e.slice(n,i)}),e.startsWith("![CDATA[",i+1)){const l=e.indexOf("]]>",i);if(l!==-1){t.push({type:"text",content:e.slice(i,l+3)}),n=l+3;continue}break}if(e.startsWith("!",i+1)){const l=e.indexOf(">",i);if(l!==-1){n=l+1;continue}break}const o=e.indexOf(">",i);if(o===-1)break;const s=WO(e.slice(i+1,o));if(!s){t.push({type:"text",content:e.slice(i,o+1)}),n=o+1;continue}if(s.isClosing){t.push({type:"tag_close",tagName:s.tagName}),n=o+1;continue}const r={};if(s.attrsStr){const l=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let a;for(;(a=l.exec(s.attrsStr))!==null;){const u=a[1],c=a[2]??a[3]??a[4]??"";u&&!u.endsWith("/")&&(r[u]=c)}}t.push({type:s.isSelfClosing||Tc.has(s.tagName.toLowerCase())?"self_closing":"tag_open",tagName:s.tagName,attrs:r}),n=o+1}return t}function EIe(e){const t=String(e.tagName??"").trim();if(!t)return"";if(e.type==="tag_close")return`</${uc(t)}>`;const n=Object.entries(e.attrs??{}).map(([i,o])=>o===""?` ${uc(i)}`:` ${uc(i)}="${jO(o)}"`).join("");return e.type==="self_closing"?`<${uc(t)}${n} />`:`<${uc(t)}${n}>`}function TIe(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;for(const n of VO(e))if((n.type==="tag_open"||n.type==="self_closing")&&KO(n.tagName??"",t))return!0;return!1}function Oh(e,t="safe"){if(!e)return"";if(t==="escape")return uc(e);const n=IIe(e),i=[],o=[],s=[];for(const r of n){if(r.type==="text"){s.length===0&&o.push(uc(r.content??""));continue}const l=L9(r.tagName);if(!l)continue;if(HO(l,t)){r.type==="tag_open"?s.push(l):r.type==="tag_close"&&s[s.length-1]===l&&s.pop();continue}if(s.length>0)continue;if(t==="safe"&&z7(l,t)){o.push(EIe(r));continue}if(r.type==="self_closing"){o.push(`<${l}${YI(JI(r.attrs??{},t,l))}>`);continue}if(r.type==="tag_open"){o.push(`<${l}${YI(JI(r.attrs??{},t,l))}>`),Tc.has(l)||i.push(l);continue}const a=i.lastIndexOf(l);if(a===-1)continue;for(;i.length>a+1;){const c=i.pop();c&&o.push(``)}const u=i.pop();u&&o.push(``)}for(;i.length>0;){const r=i.pop();r&&o.push(``)}return o.join("")}const LIe=[/javascript:/i,/vbscript:/i,/data:text\/html/i,/expression\s*\(/i,/@import/i],XI="http://www.w3.org/2000/svg",NIe=new Set(["script","style","iframe","object","embed","link","meta"]),FIe=new Set(["svg","style","g","a","defs","marker","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","title","desc","use","image","lineargradient","radialgradient","stop","clippath","mask","pattern"]),DIe=new Set(["href","xlink:href","src","srcdoc","action","data","formaction","poster"]),BIe=new Set(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"]),$Ie=new Set(["circle","ellipse","image","line","path","polygon","polyline","rect","text","tspan","use"]);function RIe(e){return(e.getAttribute("href")||e.getAttribute("xlink:href"))?.startsWith("#")===!0}function zIe(e){return!!(e.getAttribute("href")||e.getAttribute("xlink:href")||e.getAttribute("src"))}function OIe(e){const t=e.nodeName.toLowerCase();return t==="use"?RIe(e):t==="image"?zIe(e):t==="text"||t==="tspan"?!!e.textContent?.trim():$Ie.has(t)}function PIe(e){return e.replace(/(["'])\s*javascript:/gi,"$1#").replace(/\bjavascript:/gi,"#").replace(/(["'])\s*vbscript:/gi,"$1#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#")}function jIe(e,t,n){const i=e.toLowerCase(),o=t.toLowerCase(),s=String(n??"").trim();return s?(i==="use"||i==="marker"||i==="clippath"||i==="mask")&&(o==="href"||o==="xlink:href")?s.startsWith("#")?s:"":i==="a"&&(o==="href"||o==="xlink:href")?Gd(s,{tagName:"a",attrName:"href"})?"":s:i==="image"&&(o==="href"||o==="xlink:href"||o==="src")?Gd(s,{tagName:"img",attrName:"src"})?"":s:o==="href"||o==="xlink:href"?s.startsWith("#")?s:"":Gd(s,{tagName:i,attrName:o})?"":s:""}function HIe(e,t){let n=t+4;for(;n{const i=n.trim();if(/^[0-9a-f]+$/i.test(i)){const o=Number.parseInt(i,16);try{return Number.isFinite(o)?String.fromCodePoint(o):""}catch{return""}}return String(n).trim()})}function GO(e){const t=ZO(e),n=t.toLowerCase();let i=0;for(;in.test(t))||GO(t)}function WIe(e){if(e.tagName.toLowerCase()!=="a"||e.getAttribute("target")?.trim().toLowerCase()!=="_blank")return;const t=new Set(String(e.getAttribute("rel")??"").split(/\s+/).map(n=>n.trim()).filter(Boolean).filter(n=>n.toLowerCase()!=="opener"));t.add("noopener"),t.add("noreferrer"),e.setAttribute("rel",Array.from(t).join(" "))}function Gm(e){const t=Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function QO(e,t){if(e.nodeType===Node.TEXT_NODE){const o=e.textContent??"";o&&t.push(o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const n=e,i=n.tagName.toLowerCase();if(!NIe.has(i)){if(i==="br"){t.push(` +`);return}for(const o of Array.from(n.childNodes))QO(o,t)}}function qIe(e){for(const t of Array.from(e.querySelectorAll("foreignObject"))){const n=[];QO(t,n);const i=n.join("").split(/\r?\n/).map(c=>c.trim()).filter(Boolean);if(!i.length){t.remove();continue}const o=Gm(t.getAttribute("width")),s=Gm(t.getAttribute("height")),r=Gm(t.getAttribute("x")),l=Gm(t.getAttribute("y")),a=e.ownerDocument.createElementNS(XI,"text");a.setAttribute("x",String(r+o/2)),a.setAttribute("y",String(l+s/2)),a.setAttribute("text-anchor","middle"),a.setAttribute("dominant-baseline","central");const u=t.querySelector(".nodeLabel");if(u?.getAttribute("class")&&a.setAttribute("class",u.getAttribute("class")),i.length===1)a.textContent=i[0];else{const c=-.6*(i.length-1);for(const[d,h]of i.entries()){const p=e.ownerDocument.createElementNS(XI,"tspan");p.setAttribute("x",String(r+o/2)),p.setAttribute("dy",d===0?`${c}em`:"1.2em"),p.textContent=h,a.appendChild(p)}}t.parentNode?.replaceChild(a,t)}}function UIe(e){qIe(e);const t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){const i=n.tagName.toLowerCase();if(!FIe.has(i)){n.remove();continue}if(i==="style"&&eE(n.textContent??"")){n.remove();continue}const o=Array.from(n.attributes);for(const s of o){const r=s.name.toLowerCase();if(/^on/i.test(r)){n.removeAttribute(s.name);continue}if(r==="style"&&s.value&&eE(s.value)){n.removeAttribute(s.name);continue}if(r==="srcdoc"){n.removeAttribute(s.name);continue}if(DIe.has(r)&&s.value){const l=jIe(i,r,s.value);if(!l){n.removeAttribute(s.name);continue}l!==s.value&&n.setAttribute(s.name,l);continue}if(BIe.has(r)&&s.value&&GO(s.value)){n.removeAttribute(s.name);continue}if(s.value){const l=PIe(s.value);l!==s.value&&n.setAttribute(s.name,l)}}WIe(n)}}function gct(e){if(typeof DOMParser>"u"||!e)return null;try{const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;if(!t||t.nodeName.toLowerCase()!=="svg")return null;const n=t;return UIe(n),KIe(n)?null:n}catch{return null}}function KIe(e){const t=e.getAttribute("viewBox");if(t){const o=t.trim().split(/[\s,]+/);if(o.length===4){const s=Number.parseFloat(o[2]||""),r=Number.parseFloat(o[3]||"");if(!Number.isFinite(s)||!Number.isFinite(r)||s<=0||r<=0)return!0}}const n=[e,...Array.from(e.querySelectorAll("*"))];let i=!1;for(const o of n){OIe(o)&&(i=!0);for(const s of Array.from(o.attributes))if(/\bNaN\b/i.test(s.value)||s.name==="style"&&/max-width:\s*0(?:px)?/i.test(s.value))return!0}return!i}const Qm=[];function ck(e){return String(e??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function VIe(e){return(String(e||"text").trim().split(/\s+/)[0]||"text").replace(/[^\w+.#:-]/g,"-").replace(/-+/g,"-")||"text"}function ZIe(e){return e.replace(/[^\w:.+-]/g,"-").replace(/-+/g,"-")}function tE(e=`editor-${Date.now()}`,t={}){const n=_Se(t),i=n;i.__markstreamRegisteredPluginCount=Qm.length,i.__markstreamHasCustomParserExtensions=!!(t.plugin?.length||t.apply?.length||Qm.length);const o={"common.copy":"Copy"};let s;if(typeof t.i18n=="function")s=t.i18n;else if(t.i18n&&typeof t.i18n=="object"){const p=t.i18n;s=g=>p[g]??o[g]??g}else s=p=>o[p]??p;if(Array.isArray(t.plugin))for(const p of t.plugin){const g=p;if(Array.isArray(g)){const[m,...k]=g;typeof m=="function"&&n.use(m,...k)}else typeof g=="function"&&n.use(g)}if(Array.isArray(t.apply))for(const p of t.apply)try{p(n)}catch(g){console.error("[getMarkdown] apply function threw an error",g)}if(Qm.length)for(const p of Qm)if(Array.isArray(p)){const[g,...m]=p;typeof g=="function"&&n.use(g,...m)}else typeof p=="function"&&n.use(p);n.use(bIe),n.use(K5e),n.use(W5e);const r=s6e,l=r.default??r;n.use(l),n.use(H5e),n.use(j5e),n.core.ruler.after("block","mark_fence_closed",p=>{const g=p,m=g.src,k=!!g.env?.__markstreamFinal,w=m.split(/\r?\n/);for(const y of g.tokens){if(y.type!=="fence"||!y.map||!y.markup)continue;const b=y.map[0],A=y.map[1],T=y.markup,S=T[0],x=T.length,_=w[Math.max(0,A-1)]??"";let L=0;for(;L<_.length&&(_[L]===" "||_[L]===" ");)L++;let M=0;for(;L+M<_.length&&_[L+M]===S;)M++;let N=L+M;for(;N<_.length&&(_[N]===" "||_[N]===" ");)N++;const I=k?!0:A>b+1&&M>=x&&N===_.length,z=y;z.meta=z.meta??{},z.meta.unclosed=!I,z.meta.closed=!!I}}),n.renderer.rules.fence=(p,g)=>{const m=p[g],k=String(m.info??"").trim(),w=String(m.content??""),y=btoa(unescape(encodeURIComponent(w))),b=VIe(k),A=ck(b),T=ZIe(`editor-${e}-${g}-${b}`),S=ck(s("common.copy"));return`
            +
            + ${ck(b.toUpperCase())} + +
            +
            +
            `};const a=/^\[(\d+)\]/,u=/^\[([^\]\n]+)\]/,c=p=>{if(!p.startsWith("["))return!1;const g=u.exec(p);if(!g)return p!=="["&&!/^\[\d+$/.test(p);const m=String(g[1]??"");return p.slice(g[0].length).startsWith("(")?!1:!/^\d+$/.test(m)},d=(p,g)=>{const m=p;if(m.src[m.pos]!=="[")return!1;const k=a.exec(m.src.slice(m.pos));if(!k)return!1;const w=m.src.slice(Math.max(0,m.pos-120),m.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(w))return!1;const y=m.src.slice(m.pos+k[0].length);if(y.startsWith("](")||y.startsWith("(")||c(y))return!1;if(!g){const b=k[1],A=m.push("reference","span",0);A.content=b,A.markup=k[0],A.raw=k[0]}return m.pos+=k[0].length,!0};n.inline.ruler.before("escape","reference",d),n.renderer.rules.reference=(p,g)=>{const k=String(p[g].content??"");return`${k}`};const h=n.use.bind(n);return n.use=((...p)=>(i.__markstreamHasCustomParserExtensions=!0,h(...p))),n}function GIe({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function YO({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:i,streamRenderVersionChanged:o=!1}){const s=`${n.settledContent}${n.streamedDelta}`;return i?n.streamedDelta&&s===e?o?{settledContent:s,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:GIe({nextContent:e,previousContent:t??s,typewriterEnabled:i}):{settledContent:e,streamedDelta:"",appended:!1}}const QIe={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function YIe(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function JO(e){const t=YIe(e);return QIe[t]??t}function JIe(e){if(!Array.isArray(e))return;const t=e.filter(i=>typeof i=="string").map(i=>JO(i)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function XIe(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const i of e){if(typeof i!="string")continue;const o=i.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function eEe(e){return XIe(e)?.join("\0")??""}function tEe(e,t){return`${eEe(e)}\0\0${JIe(t)?.join("\0")??""}`}function Gf(e,t,n=1){const i=Number(e);return Number.isFinite(i)?Math.max(n,i):t}function nE(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var nEe=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=d=>this.destroyed?()=>{}:(this.listeners.add(d),()=>{this.listeners.delete(d)}),this.enqueue=d=>{if(this.destroyed||!d)return;this.done&&(this.done=!1);const h=this.source.length>0,p=this.pendingChars<=0;if(this.source+=d,p){const g=iE();this.startedAt=h&&this.hasStarted?g-this.normalizedStartDelayMs:g,this.lastTick=g,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(d={})=>{if(!this.destroyed){if(this.done=!0,d.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(d="")=>{this.destroyed||(this.cancelLoop(),this.source=d,this.visible=d,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const d=iE();this.lastTick=d,this.startedAt||=d,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=d=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(d-this.startedAtthis.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,k=rEe(g/Math.max(.001,m/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(k-this.currentCps)*.2,this.charBudget+=this.currentCps*(p/1e3),this.charBudget<1){this.ensureLoop();return}const w=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),y=sEe(this.source.slice(this.visible.length),w,this.segmenter);y.text&&(this.visible+=y.text,this.charBudget=Math.max(0,this.charBudget-y.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:i=1e3,targetLatencyMs:o=900,catchUpLatencyMs:s=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:a=80,maxCharsPerCommit:u=80,flushOnFinish:c=!1}=e;this.minCharsPerSecond=Gf(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,Gf(i,1e3,1)),this.normalizedTargetLatencyMs=Gf(o,900,1),this.normalizedCatchUpLatencyMs=Gf(s,350,1),this.normalizedCatchUpThreshold=nE(r,600),this.normalizedStartDelayMs=nE(a,80),this.maxCommitFps=Math.trunc(Gf(l,30,1)),this.maxCharsPerCommit=Math.trunc(Gf(u,80,1)),this.flushOnFinish=c,this.segmenter=oEe(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function iEe(e={},t){const n=new nEe(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function oEe(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function sEe(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const s=Array.from(e).slice(0,t);return{text:s.join(""),graphemeCount:s.length}}let i="",o=0;for(const s of n.segment(e)){if(o>=t)break;i+=s.segment,o++}return{text:i,graphemeCount:o}}function iE(){return typeof performance<"u"?performance.now():Date.now()}function rEe(e,t,n){return Math.min(n,Math.max(t,e))}var lEe=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const U8=Symbol.for("markstream-vue:node-lifecycle");function mct(){}const P7=new Map;let XO="material";const yh=new Map,oE=new Map;let K8=null;function aEe(e){P7.set(e.id,e)}function uEe(e){const t=P7.get(XO);if(!t)return;const n=t.core[e];if(n)return n;const i=yh.get(t.id);if(i){const o=i[e];if(o)return o}t.loadExtended&&!yh.has(t.id)&&dEe(t)}function cEe(){var e,t;return(t=(e=P7.get(XO))==null?void 0:e.fallback)!=null?t:""}function dEe(e){return lEe(this,null,function*(){var t,n,i;if(yh.has(e.id))return(t=yh.get(e.id))!=null?t:null;let o=oE.get(e.id);return o||(o=((i=(n=e.loadExtended)==null?void 0:n.call(e))!=null?i:Promise.resolve(null)).then(s=>(yh.set(e.id,s),K8?.(),s)).catch(()=>(yh.set(e.id,null),null)),oE.set(e.id,o)),o})}const sE='',rE='',fEe={id:"material",core:{"":rE,plain:'',text:rE,javascript:'',typescript:'',jsx:'',tsx:'',html:'',css:'',scss:'',json:'',python:'',ruby:'',go:'',java:'',kotlin:'',c:'',cpp:'',cs:sE,csharp:sE,php:'',shell:'',powershell:'',sql:'',yaml:'',markdown:'',xml:'',rust:'',vue:'',mermaid:''},fallback:'',loadExtended:()=>Fo(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},hEe=ha(0);K8=()=>{hEe.value++},aEe(fEe);const pEe={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function N9(e){var t;const n=(function(i){if(!i)return"";const o=i.trim();if(!o)return"";const[s]=o.split(/\s+/),[r]=s.split(":");return r.toLowerCase()})(e);return(t=pEe[n])!=null?t:n}function vct(e){const t=N9(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function yct(e){return uEe(N9(e))||cEe()}const lE={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var F9=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});let yr=null,zd=!1,Od=null,D9=H7;function Ag(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function j7(){try{const e=globalThis;return Ag(e?.katex)}catch{return null}}function H7(){return F9(null,null,function*(){const e=j7();if(e)return e;const t=yield Fo(()=>import("./katex-DnlPpQZa.js"),[]);try{yield Fo(()=>import("./mhchem-DtR62fUK.js"),__vite__mapDeps([2,3]))}catch{}return Ag(t)})}function eP(e){const t=Promise.resolve(e).then(n=>{var i;return Od===t&&n?(yr=(i=Ag(n))!=null?i:n,yr):null}).catch(()=>null).finally(()=>{Od===t&&(Od=null)});return Od=t,zd=!0,t}function gEe(e){D9=e,yr=null,zd=!1,Od=null}function mEe(e){gEe(H7)}function tP(){return typeof D9=="function"}function kct(){var e;const t=D9;if(!t||t===H7)return null;if(yr)return yr;const n=j7();if(n)return yr=n,yr;if(zd)return null;try{const i=t();return i?typeof i?.then=="function"?(eP(i),null):(yr=(e=Ag(i))!=null?e:i,yr):null}catch{return null}}function nP(){return F9(this,null,function*(){var e;const t=j7();if(t)return yr=t,yr;if(yr)return yr;if(Od)return Od;if(zd)return null;const n=D9;if(!n)return zd=!0,null;try{const i=n();if(typeof i?.then=="function")return eP(i);if(i)return yr=(e=Ag(i))!=null?e:i,zd=!0,yr}catch{}return zd=!0,null})}function iP(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let Dv=null,Sd=null;const mr=new Map,gu=new Map;let P0=5;const Yd=new Set;function Jp(){if(mr.size{const{id:n,html:i,error:o}=t.data,s=mr.get(n);if(s)if(mr.delete(n),clearTimeout(s.timeoutId),s.cleanup(),Jp(),o)s.aborted||s.reject(new Error(o));else{const{content:r,displayMode:l}=t.data;if(r){const a=`${l?"d":"i"}:${r}`;if(gu.set(a,i),gu.size>200){const u=gu.keys().next().value;gu.delete(u)}}s.aborted||s.resolve(i)}},Dv.onerror=t=>{console.error("[katexWorkerClient] Worker error:",t);for(const[n,i]of mr.entries())clearTimeout(i.timeoutId),i.cleanup(),i.aborted||i.reject(new Error(`Worker error: ${t.message}`));mr.clear(),vEe()}}function kEe(e,t=!0,n=2e3,i){return F9(this,null,function*(){performance.now();const o=iP(e);if(!tP()){const a=new Error("KaTeX rendering disabled");return a.name="KaTeXDisabled",a.code="KATEX_DISABLED",Promise.reject(a)}if(Sd)return Promise.reject(Sd);const s=`${t?"d":"i"}:${o}`,r=gu.get(s);if(r)return Jp(),Promise.resolve(r);const l=Dv||(Sd=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Sd.name="WorkerInitError",Sd.code="WORKER_INIT_ERROR",null);if(!l)return Promise.reject(Sd);if(mr.size>=P0){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code="WORKER_BUSY",a.busy=!0,a.inFlight=mr.size,a.max=P0,Promise.reject(a)}return new Promise((a,u)=>{if(i?.aborted){const m=new Error("Aborted");return m.name="AbortError",void u(m)}const c=Math.random().toString(36).slice(2);let d=null;const h=globalThis.setTimeout(()=>{const m=mr.get(c);if(!m)return;mr.delete(c),m.cleanup();const k=new Error("Worker render timed out");k.name="WorkerTimeout",k.code="WORKER_TIMEOUT",m.aborted||m.reject(k),Jp()},n);d=()=>{const m=mr.get(c);if(!m||m.aborted)return;m.aborted=!0,m.cleanup();const k=new Error("Aborted");k.name="AbortError",u(k)},i&&i.addEventListener("abort",d,{once:!0});const p=a,g=u;mr.set(c,{resolve:m=>{p(m)},reject:m=>{g(m)},timeoutId:h,aborted:!1,cleanup:()=>{i&&d&&i.removeEventListener("abort",d),d=null}});try{l.postMessage({id:c,content:o,displayMode:t})}catch(m){const k=mr.get(c);mr.delete(c),clearTimeout(h),k?.cleanup(),k?.reject(m),Jp()}})})}function bct(e,t=!0,n){const i=`${t?"d":"i"}:${iP(e)}`;if(gu.set(i,n),gu.size>200){const o=gu.keys().next().value;gu.delete(o)}}const bEe="WORKER_BUSY";function AEe(e=2e3,t){return mr.size{let o,s=!1,r=null,l=()=>{};const a=()=>{o&&globalThis.clearTimeout(o),Yd.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{s||(s=!0,a(),n())},Yd.add(l),o=globalThis.setTimeout(()=>{if(s)return;s=!0,a();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",i(u)},e),queueMicrotask(()=>Jp()),t&&(r=()=>{if(s)return;s=!0,a();const u=new Error("Aborted");u.name="AbortError",i(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const G1={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Act(e){return F9(this,arguments,function*(t,n=!0,i={}){var o,s,r,l;if(!tP()){const m=new Error("KaTeX rendering disabled");throw m.name="KaTeXDisabled",m.code="KATEX_DISABLED",m}const a=(o=i.timeout)!=null?o:G1.timeout,u=(s=i.waitTimeout)!=null?s:G1.waitTimeout,c=(r=i.backoffMs)!=null?r:G1.backoffMs,d=(l=i.maxRetries)!=null?l:G1.maxRetries,h=Number.isFinite(d)?Math.max(0,Math.min(Math.floor(d),8)):G1.maxRetries,p=i.signal;let g=0;for(;;){if(p?.aborted){const m=new Error("Aborted");throw m.name="AbortError",m}try{return yield kEe(t,n,a,p)}catch(m){if(m?.code!==bEe||g>=h)throw m;if(g++,yield AEe(u,p).catch(()=>{}),p?.aborted){const k=new Error("Aborted");throw k.name="AbortError",k}c>0&&(yield new Promise(k=>globalThis.setTimeout(k,c*g)))}}})}function kh(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function CEe(e){var t;for(const n of e.split(/\r?\n/)){const i=n.trim();if(!i||i.startsWith("%%"))continue;const o=i.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function uy(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),i=CEe(e);return i==="gantt"?220+28*n:i==="sequencediagram"?180+26*n:i==="classdiagram"||i==="statediagram"||i==="erdiagram"?180+24*n:i==="flowchart"||i==="graph"?170+28*n:200+22*n}function cy(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function oP(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function dy(e,t=360,n=500){return oP(e,t,n)}function fy(e,t=360,n=500){return oP(e,t,n)}var wEe=Object.defineProperty,xEe=Object.defineProperties,SEe=Object.getOwnPropertyDescriptors,aE=Object.getOwnPropertySymbols,_Ee=Object.prototype.hasOwnProperty,MEe=Object.prototype.propertyIsEnumerable,uE=(e,t,n)=>t in e?wEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sP=(e,t)=>{for(var n in t||(t={}))_Ee.call(t,n)&&uE(e,n,t[n]);if(aE)for(var n of aE(t))MEe.call(t,n)&&uE(e,n,t[n]);return e},cE=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const hy=()=>Fo(()=>import("./mermaid.core-DaDTfY6S.js").then(e=>e.bp),__vite__mapDeps([4,5]));let ou=null,bh=hy,_p=null,V8=!1,Z8=!1,Mp=0;function IEe(e){bh=e,Mp++,ou=null,_p=null,V8=!1,Z8=!1}function EEe(e){IEe(hy)}function dE(){return typeof bh=="function"}function fE(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=sP({},t),i={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:s=>typeof t.initialize=="function"?t.initialize(s):o.initialize?o.initialize(s):void 0},xEe(n,SEe(i))}var n,i;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function hE(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const i=sP({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,i):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(i):void 0}}catch{}}function Cct(){return cE(this,null,function*(){if(ou)return ou;const e=(function(){try{const i=globalThis;return fE(i?.mermaid)}catch{return null}})();if(e)return ou=e,hE(ou),ou;const t=bh,n=Mp;return t?t===hy&&V8?null:_p||(_p=cE(null,null,function*(){let i;try{i=yield t()}catch(o){if(t===hy)return n===Mp&&t===bh&&(V8=!0,(function(s){Z8||(Z8=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',s))})(o)),null;throw o}finally{n===Mp&&t===bh&&(_p=null)}return n!==Mp||t!==bh?null:i?(ou=fE(i),hE(ou),ou):null}),_p):null})}let Ma=null,_d=null;const Xl=new Map,Md=new Map;function dk(e){for(const t of Xl.values())t.reject(e);Xl.clear(),Md.clear()}let pE=5,gE=!1;const TEe="WORKER_BUSY",mE="MERMAID_DISABLED";function LEe(e){if(Ma&&Ma!==e){const n=new Error("Worker replaced");n.code="WORKER_REPLACED",dk(n)}Ma=e,_d=null;const t=e;Ma.onmessage=n=>{if(Ma!==t)return;const{id:i,ok:o,result:s,error:r}=n.data,l=Xl.get(i);l&&(o===!1||r?l.reject(new Error(r||"Unknown error")):l.resolve(s))},Ma.onerror=n=>{var i,o;if(Ma===t)if(Xl.size!==0){try{gE?console.error("[mermaidWorkerClient] Worker error:",n?.message||n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker error:",n?.message||n)}catch{}dk(new Error(`Worker error: ${n.message}`))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker error (no pending):",n?.message||n)},Ma.onmessageerror=n=>{var i,o;if(Ma===t)if(Xl.size!==0){try{gE?console.error("[mermaidWorkerClient] Worker messageerror:",n):(o=console.debug)==null||o.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch{}dk(new Error("Worker messageerror"))}else(i=console.debug)==null||i.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n)}}function rP(e,t,n,i){if(!dE()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=mE,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let s=Md.get(o);return s||(s=(function(r,l,a=1400){if(!dE()){const c=new Error("Mermaid rendering disabled");return c.name="MermaidDisabled",c.code=mE,Promise.reject(c)}if(_d)return Promise.reject(_d);const u=Ma||(_d=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),_d.name="WorkerInitError",_d.code="WORKER_INIT_ERROR",null);if(!u)return Promise.reject(_d);if(Xl.size>=pE){const c=new Error("Worker busy");return c.name="WorkerBusy",c.code=TEe,c.inFlight=Xl.size,c.max=pE,Promise.reject(c)}return new Promise((c,d)=>{const h=Math.random().toString(36).slice(2);let p,g=!1;const m=()=>{g||(g=!0,p!=null&&globalThis.clearTimeout(p),Xl.delete(h))},k={resolve:w=>{m(),c(w)},reject:w=>{m(),d(w)}};Xl.set(h,k);try{u.postMessage({id:h,action:r,payload:l})}catch(w){return Xl.delete(h),void d(w)}p=globalThis.setTimeout(()=>{const w=new Error("Worker call timed out");w.name="WorkerTimeout",w.code="WORKER_TIMEOUT";const y=Xl.get(h);y&&y.reject(w)},a)})})(e,t,n),Md.set(o,s),s.then(()=>{Md.get(o)===s&&Md.delete(o)},()=>{Md.get(o)===s&&Md.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const a=new Error("Aborted");return a.name="AbortError",Promise.reject(a)}return new Promise((a,u)=>{let c=()=>{};const d=()=>l.removeEventListener("abort",c);c=()=>{d();const h=new Error("Aborted");h.name="AbortError",u(h)},l.addEventListener("abort",c,{once:!0}),r.then(h=>{d(),a(h)},h=>{d(),u(h)})})})(s,i)}function wct(e,t,n=1400,i){return rP("canParse",{code:e,theme:t},n,i)}function xct(e,t,n=1400,i){return rP("findPrefix",{code:e,theme:t},n,i)}var NEe=Object.defineProperty,FEe=Object.defineProperties,DEe=Object.getOwnPropertyDescriptors,vE=Object.getOwnPropertySymbols,BEe=Object.prototype.hasOwnProperty,$Ee=Object.prototype.propertyIsEnumerable,yE=(e,t,n)=>t in e?NEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t)=>{for(var n in t||(t={}))BEe.call(t,n)&&yE(e,n,t[n]);if(vE)for(var n of vE(t))$Ee.call(t,n)&&yE(e,n,t[n]);return e},An=(e,t)=>FEe(e,DEe(t)),Ji=(e,t,n)=>new Promise((i,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},r=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);l((n=n.apply(e,t)).next())});const REe="__global__",fk="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",G8=(()=>{const e=globalThis;if(e[fk])return e[fk];const t={scopedCustomComponents:{},revision:ha(0)};return e[fk]=t,t})(),kE=G8.revision,zEe=Symbol("markstreamCustomComponents"),OEe=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function Cg(e){return OEe.has(String(e).trim().toLowerCase())}function PEe(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function hk(e={}){const t={};for(const[n,i]of Object.entries(e))if(i!=null){t[n]=i;for(const o of new Set([zl(n),zl(PEe(n))]))!o||Cg(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=i)}return t}function ss(e){const t=hn(zEe,null);return F(()=>{var n;return kE.value,(function(i,o={}){return kE.value,Mt(Mt(Mt({},hk(G8.scopedCustomComponents[REe]||{})),hk(o)),hk((function(s){return s&&G8.scopedCustomComponents[s]||{}})(i)))})(e?.(),(n=t?.value)!=null?n:{})})}const jEe=["aria-label"],HEe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},WEe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},Ci=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},dl=Ci(Xe({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(v(),E("svg",WEe,[...n[1]||(n[1]=[C("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),C("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(v(),E("svg",HEe,[...n[0]||(n[0]=[C("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,jEe))}),[["__scopeId","data-v-be21ab83"]]);dl.install=e=>{e.component(dl.__name,dl)};const qEe={class:"emoji-node"},Ur=Ci(Xe({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("span",qEe,D(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);Ur.install=e=>{e.component(Ur.__name,Ur)};const UEe=["id"],KEe=["title"],fl=Ci(Xe({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const i=document.querySelector(t);i?i.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(i,o)=>(v(),E("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[C("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+D(e.node.id)+"]",9,KEe)],8,UEe))}}),[["__scopeId","data-v-c1463a29"]]);fl.install=e=>{e.component(fl.__name,fl)};const lP=(()=>{try{return!1}catch{}return!1})();function pk(e){lP&&console.warn(e)}function bE(e,t="safe",n){return O7(e,t,n)}function aP(e){return MIe(e)}function gk(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function W7(e,t="safe"){const n=String(e.tag||e.type||"").trim(),i=Fv((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),gk(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),gk(r.value)]):Object.entries(o).map(([r,l])=>[r,gk(l)]):null,t,n);var o;if(!i)return;const s=aP(Yp(i));return Object.keys(s).length>0?s:void 0}function AE(e,t,n=!1){const i=Object.entries(t??{}),o=i.length>0?i.map(([s,r])=>r===""?` ${s}`:` ${s}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function Q1(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function mk(e,t,n,i,o,s,r=!1){const l=(function(d,h){return KO(d,h)})(e,i);if(vg.has(e.toLowerCase())||!l&&HO(e,s))return null;if(!l&&z7(e,s))return r?[AE(e,t,!0)]:[AE(e,t),...n,``];const a=O7(t,s,e),u=a.key,c=u!=null&&u!==""?u:o;if(l){const d=i[e]||i[e.toLowerCase()],h=aP(a);return yn(d,An(Mt({},h),{key:c}),n.length>0?n:void 0)}return yn(e,An(Mt({},a),{innerHTML:void 0,key:c}),n.length>0?n:void 0)}function uP(e,t){return TIe(e,t)}function py(e,t,n="safe"){if(!e)return[];try{return(function(s,r,l="safe"){let a=0;const u=[],c=[];for(const d of s)if(d.type==="text")(u.length>0?u[u.length-1].children:c).push(d.content);else if(d.type==="self_closing"){const h=mk(d.tagName,d.attrs||{},[],r,"ms-html-"+a++,l,!0);Q1(u.length>0?u[u.length-1].children:c,h)}else if(d.type==="tag_open")u.push({tagName:d.tagName,children:[],attrs:d.attrs,autoKey:"ms-html-"+a++});else if(d.type==="tag_close"){const h=d.tagName.toLowerCase();let p=-1;for(let g=u.length-1;g>=0;g--)if(u[g].tagName.toLowerCase()===h){p=g;break}if(p!==-1)for(;u.length>p;){const g=u.pop(),m=mk(g.tagName,g.attrs||{},g.children,r,g.autoKey,l);u.length>0?Q1(u[u.length-1].children,m):Q1(c,m),g.tagName.toLowerCase()!==h&&u.length>p&&pk(`Auto-closing unclosed tag: <${g.tagName}>`)}else pk(`Ignoring closing tag with no matching opening tag: `)}for(;u.length>0;){const d=u.pop(),h=mk(d.tagName,d.attrs||{},d.children,r,d.autoKey,l);u.length>0?Q1(u[u.length-1].children,h):Q1(c,h),pk(`Auto-closing unclosed tag: <${d.tagName}>`)}return c})(VO(e),t,n)}catch(o){return i=o,lP&&console.error("Failed to parse HTML to VNodes:",i),null}var i}const VEe=["innerHTML"],hl=Ci(Xe({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=hn("markstreamHtmlPolicy",void 0),i=F(()=>{var l,a;return(a=(l=t.htmlPolicy)!=null?l:n?.value)!=null?a:"safe"}),o=ss(()=>t.customId),s=Xe({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=F(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(i.value==="escape")return{mode:"html",content:Oh(l,i.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=py(l,o.value,i.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!uP(l,o.value))return{mode:"html",content:Oh(l,i.value)};const a=py(l,o.value,i.value);return a===null?{mode:"html",content:Oh(l,i.value)}:{mode:"dynamic",nodes:a}});return(l,a)=>r.value.mode==="dynamic"?(v(),E("span",{key:0,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[U(f(s),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(v(),E("span",{key:1,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},D(r.value.content),3)):(v(),E("span",{key:2,class:Fe(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,VEe))}}),[["__scopeId","data-v-d17f12b0"]]);hl.install=e=>{e.component(hl.__name,hl)};const ZEe={class:"inline-code"},GEe={key:0},rr=Ci(Xe({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=r1(),i=hn("markstreamFade",void 0),o=hn("markstreamTextStreamState",void 0),s=hn("markstreamStreamVersion",void 0),r=F(()=>{const y=n.fade;return y===""||y===!0||y==="true"||y!==!1&&y!=="false"&&void 0}),l=F(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=F(()=>{var y;return String((y=t.node.code)!=null?y:"")}),u=F(()=>!l.value),c=F(()=>{var y;const b=(y=n["index-key"])!=null?y:n.indexKey;return b==null||b===""?"":String(b)}),d=K(t.node.code),h=K(""),p=K(0);let g;function m(){g?.(),g=void 0}function k(){m(),h.value&&(d.value=d.value+h.value,h.value="")}Pe([()=>t.node.code,c,l],([y])=>{const b=String(y??""),A=c.value,T=YO({nextContent:b,persistedContent:A?o?.get(A):void 0,currentState:{settledContent:d.value,streamedDelta:h.value},typewriterEnabled:l.value});d.value=T.settledContent,h.value=T.streamedDelta,T.appended?(p.value+=1,(function(){if(!h.value||g||!s)return;const S=s.value;g=Pe(()=>s.value,x=>{x!==S&&k()},{flush:"sync"})})()):h.value||m(),A&&o?.set(A,b)},{immediate:!0}),Bc(m);const w=F(()=>p.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(y,b)=>(v(),E("code",ZEe,[u.value?(v(),E(Ee,{key:0},[$e(D(a.value),1)],64)):(v(),E(Ee,{key:1},[d.value?(v(),E("span",GEe,D(d.value),1)):X("",!0),h.value?(v(),E("span",{key:1,class:Fe(["inline-code-stream-delta",[w.value]]),onAnimationend:k},D(h.value),35)):X("",!0)],64))]))}}),[["__scopeId","data-v-4e331c97"]]);rr.install=e=>{e.component(rr.__name,rr)};const Q8=K(!1),CE=K(""),wE=K("top"),Xp=K(null),e0=K(null),Y8=K(null),J8=K(null),xE=K(null);let Bv=null,$v=null,X8=0;function cP(){Bv&&(clearTimeout(Bv),Bv=null),$v&&(clearTimeout($v),$v=null)}let Ym=!1,Jm=null,SE=!1;function QEe(e,t,n="top",i=!1,o,s){if(!e)return;const r=++X8;cP();const l=()=>Ji(null,null,function*(){var a,u;if(yield(function(){return Ji(this,null,function*(){if(!Ym&&!SE&&typeof document<"u"){Jm!=null||(Jm=Ji(null,null,function*(){const[{createApp:c,h:d},{default:h}]=yield Promise.all([Fo(()=>import("./vue.runtime.esm-bundler-DL_Wfh3f.js"),[]),Fo(()=>import("./Tooltip-06BtTYE8.js"),[])]),p=document.createElement("div");p.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(p),c({setup:()=>()=>{var g;return d(h,{visible:Q8.value,"anchor-el":Xp.value,content:CE.value,placement:wE.value,id:e0.value,originX:Y8.value,originY:J8.value,isDark:(g=xE.value)!=null?g:void 0})}}).mount(p),Ym=!0}));try{yield Jm}catch(c){Ym=!1,Jm=null,SE=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",c)}}})})(),Ym&&r===X8){e0.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,Xp.value=e,CE.value=t,wE.value=n,Y8.value=(a=o?.x)!=null?a:null,J8.value=(u=o?.y)!=null?u:null,xE.value=typeof s=="boolean"?s:null,Q8.value=!0;try{e.setAttribute("aria-describedby",e0.value)}catch{}}});i?l():Bv=setTimeout(l,80)}function YEe(e=!1){X8+=1,cP();const t=()=>{if(Xp.value&&e0.value)try{Xp.value.removeAttribute("aria-describedby")}catch{}Q8.value=!1,Xp.value=null,e0.value=null,Y8.value=null,J8.value=null};e?t():$v=setTimeout(t,120)}const JEe={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},XEe=Symbol("markstreamI18nFallback");function dP(e,t){var n;return(n=t?.[e])!=null?n:JEe[e]}const e5=(e,t)=>{var n;return(n=dP(e,t))!=null?n:(function(i){return(i.split(".").pop()||i).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function _E(e,t){return{t(n){const i=dP(n,t);if(e.te&&i!=null&&!e.te(n))return e5(n,t);const o=e.t(n);return o===n&&i!=null?e5(n,t):o}}}function eTe(){const e=(function(){var n,i,o;try{const s=os(),r=XEe,l=s?.provides,a=(n=s?.appContext)==null?void 0:n.provides;return(o=(i=l?.[r])!=null?i:a?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,i;try{const o=os(),s=o?.proxy,r=s?.$t;if(typeof r=="function"){const u=s?.$te;return{t:r.bind(s),te:typeof u=="function"?u.bind(s):void 0}}const l=(i=(n=o?.appContext)==null?void 0:n.config)==null?void 0:i.globalProperties,a=l?.$t;if(typeof a=="function"){const u=l?.$te;return{t:a.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return _E(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const i=n();if(i&&typeof i.t=="function")return _E({t:i.t.bind(i),te:typeof i.te=="function"?i.te.bind(i):void 0},e)}catch{}}catch{}return{t:n=>e5(n,e)}}const fP=Symbol("ViewportPriority"),hP=Symbol("ViewportPriorityOptions"),pP=Symbol("OffscreenHeavyNodeDeferral"),tTe=F(()=>!1),ff="400px";function q7(){return hn(hP,void 0)}function U7(){return hn(pP,tTe)}function nTe(e,t){var n,i;const o=typeof window<"u"&&typeof document<"u",s=typeof t=="boolean"?K(t):t,r=o?(n=window.requestIdleCallback)!=null?n:x=>window.setTimeout(()=>x({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(i=window.cancelIdleCallback)!=null?i:x=>window.clearTimeout(x):null,a=new WeakMap;let u=1;const c=new Map,d=new Map,h=new Set;let p=null,g=null;function m(x){if(!x)return"viewport";let _=a.get(x);return _||(_=u++,a.set(x,_)),String(_)}function k(){if(p!=null){try{l?.(p)}catch{}p=null}}function w(x){if(x){const _=c.get(x);if(_&&!_.targets.size){try{_.io.disconnect()}catch{}c.delete(x)}}d.size||h.size||k()}function y(x){const _=d.get(x);if(!_)return;const L=c.get(_.bucketKey);if(!_.visible.value){_.visible.value=!0;try{_.resolve()}catch{}}try{L?.io.unobserve(x)}catch{}L?.targets.delete(x),d.delete(x),h.delete(x),w(_.bucketKey)}function b(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&p==null&&h.size&&(p=r(()=>{p=null;const x=h.values().next().value;x&&(h.delete(x),y(x),h.size&&b())},{timeout:1200}))}function A(x,_){if(!o||typeof IntersectionObserver>"u")return null;const L=(function(O,R){var j,$,W;return{root:(j=e?.(O??null))!=null?j:null,rootMargin:($=R?.rootMargin)!=null?$:ff,threshold:(W=R?.threshold)!=null?W:0}})(x,_),M=[m((N=L).root),N.rootMargin,N.threshold].join("\0");var N;const I=c.get(M);if(I)return{key:M,bucket:I};let z;try{z=new IntersectionObserver(O=>{for(const R of O)(R.isIntersecting||R.intersectionRatio>0)&&y(R.target)},{root:L.root,rootMargin:L.rootMargin,threshold:L.threshold})}catch{return null}const H={io:z,targets:new Map};return c.set(M,H),{key:M,bucket:H}}function T(){if(o&&s.value)for(const[x,_]of Array.from(d.entries())){const L=A(x,_.opts);if(!L){y(x);continue}if(L.key===_.bucketKey)continue;const M=_.bucketKey,N=c.get(M);try{N?.io.unobserve(x)}catch{}N?.targets.delete(x),_.bucketKey=L.key,L.bucket.targets.set(x,_),L.bucket.io.observe(x),w(M)}}Pe(s,x=>{if(!x){for(const _ of Array.from(d.keys()))y(_);k()}},{flush:"sync"});const S=(x,_)=>{const L=K(!1);let M,N=!1;const I=new Promise(R=>{M=()=>{N||(N=!0,R())}}),z=()=>{const R=d.get(x);if(!R)return h.delete(x),void w();const j=c.get(R.bucketKey);try{j?.io.unobserve(x)}catch{}j?.targets.delete(x),d.delete(x),h.delete(x),w(R.bucketKey)};if(!o||!s.value)return L.value=!0,M(),{isVisible:L,whenVisible:I,destroy:z};const H=A(x,_);if(!H)return L.value=!0,M(),{isVisible:L,whenVisible:I,destroy:z};const O={resolve:M,visible:L,bucketKey:H.key,opts:_};return d.set(x,O),H.bucket.targets.set(x,O),H.bucket.io.observe(x),o&&g==null&&(g=window.requestAnimationFrame(()=>{g=null,T()})),_?.allowIdle!==!1&&(h.add(x),b()),{isVisible:L,whenVisible:I,destroy:z}};return S.refresh=T,oi(fP,S),S}function K7(){var e,t;const n=hn(fP,void 0);if(n)return n;const i=new WeakMap,o=new Map,s=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:p=>window.setTimeout(()=>p({didTimeout:!0,timeRemaining:()=>0}),16):null,a=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:p=>window.clearTimeout(p):null,u=()=>{if(r!=null){try{a?.(r)}catch{}r=null}},c=p=>{if(!p)return;const g=o.get(p);if(g&&!g.targets.size){try{g.io.disconnect()}catch{}o.delete(p)}},d=p=>{const g=i.get(p);if(!g)return;const m=o.get(g.bucketKey);if(!g.visible.value){g.visible.value=!0;try{g.resolve()}catch{}}try{m?.io.unobserve(p)}catch{}i.delete(p),m?.targets.delete(p),s.delete(p),c(g.bucketKey),s.size||u()},h=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&s.size&&(r=l(()=>{r=null;const p=s.values().next().value;p&&(s.delete(p),d(p),s.size&&h())},{timeout:1200}))};return(p,g)=>{const m=K(!1);let k,w=!1;const y=new Promise(T=>{k=()=>{w||(w=!0,T())}}),b=()=>{const T=i.get(p);if(!T)return s.delete(p),void(s.size||u());const S=o.get(T.bucketKey);try{S?.io.unobserve(p)}catch{}i.delete(p),S?.targets.delete(p),s.delete(p),c(T.bucketKey),s.size||u()},A=(T=>{var S,x;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const _=(z=>{var H,O;return[(H=z?.rootMargin)!=null?H:ff,(O=z?.threshold)!=null?O:0].join("\0")})(T),L=o.get(_);if(L)return{key:_,bucket:L};const M=(S=T?.rootMargin)!=null?S:ff;let N;try{N=new IntersectionObserver(z=>{for(const H of z)(H.isIntersecting||H.intersectionRatio>0)&&d(H.target)},{root:null,rootMargin:M,threshold:(x=T?.threshold)!=null?x:0})}catch{return null}const I={io:N,targets:new Set};return o.set(_,I),{key:_,bucket:I}})(g);return A?(i.set(p,{resolve:k,visible:m,bucketKey:A.key}),A.bucket.targets.add(p),A.bucket.io.observe(p),g?.allowIdle!==!1&&(s.add(p),h()),{isVisible:m,whenVisible:y,destroy:b}):(m.value=!0,k(),{isVisible:m,whenVisible:y,destroy:b})}}function iTe(e,t){var n,i;const o=(i=(n=e.indexKey)!=null?n:t["index-key"])!=null?i:t.indexKey;return o==null||o===""?"":String(o)}const oTe=["data-markstream-viewport-pending"],sTe=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],rTe={key:1,class:"image-placeholder"},lTe={key:1,class:"image-node__raw-text"},aTe={key:2,class:"image-shimmer-overlay"},uTe={key:1,class:"image-node__raw-text"},cTe={key:3,class:"image-error"},yc=Ci(Xe({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,i,o;const s=e,r=t,l=K(!1),a=K(!1),u=K(""),c=K("primary"),d=K(null),h=r1(),p=hn(U8,null),g=K7(),m=q7(),k=U7(),w=F(()=>GM(s.node.src)),y=F(()=>GM(s.fallbackSrc)),b=(o=(i=(n=os())==null?void 0:n.vnode.el)==null?void 0:i.querySelector)==null?void 0:o.call(i,"img"),A=typeof window<"u"&&b?.getAttribute("src")===(w.value||y.value),T=K(typeof window>"u"||A||!k.value),S=ha(null);let x="",_=null;const L=F(()=>u.value),M=F(()=>!s.lazy),N=F(()=>typeof window<"u"&&k.value&&!A),I=F(()=>!N.value||T.value),z=F(()=>I.value?L.value:""),H=F(()=>{var ie,pe;return(pe=(ie=m?.value.heavyBlockMargin)!=null?ie:m?.value.rootMargin)!=null?pe:ff}),O=F(()=>!s.node.loading&&c.value!=="failed"&&u.value.length>0),R=F(()=>c.value==="failed"),j=F(()=>(!M.value||N.value&&!T.value)&&!l.value&&!a.value&&c.value!=="failed"&&u.value.length>0),$=F(()=>iTe(s,h));function W(ie=$.value){ie&&d.value&&p?.reportHeight(ie,d.value.offsetHeight)}function P(ie=$.value){ie&&dt(()=>{W(ie)})}function Z(){_&&(clearTimeout(_),_=null)}function ae(){const ie=$.value;ie&&x!==ie&&(x&&p?.markSettled(x),Z(),x=ie,p?.markPending(ie),typeof window<"u"&&(_=window.setTimeout(()=>{x===ie&&(P(ie),V())},8e3)))}function V(){return Ji(this,null,function*(){const ie=x;ie&&(Z(),x="",yield dt(),W(ie),p?.markSettled(ie))})}function Y(){if(c.value==="primary"&&y.value&&y.value!==u.value)return c.value="fallback",u.value=y.value,l.value=!1,a.value=!1,void P();c.value="failed",a.value=!0,r("error",u.value),P()}function oe(){l.value=!0,a.value=!1,r("load",L.value),P()}function q(ie){ie.preventDefault(),l.value&&!a.value&&r("click",[ie,L.value])}const{t:ne}=eTe();return Pe([w,y,()=>s.node.loading],()=>(l.value=!1,a.value=!1,s.node.loading||w.value?(u.value=w.value,void(c.value="primary")):y.value?(u.value=y.value,void(c.value="fallback")):(u.value="",c.value="failed",void(a.value=!0))),{immediate:!0}),typeof window<"u"&&Pe([d,N],([ie,pe],Ne,te)=>{var be;if((be=S.value)==null||be.destroy(),S.value=null,!pe||T.value)return void(T.value=!0);if(!ie)return void(T.value=!1);let Q=!0;const ue=g(ie,{rootMargin:H.value,allowIdle:!1});S.value=ue,T.value=ue.isVisible.value,ue.whenVisible.then(()=>{Q&&S.value===ue&&(T.value=!0)}),te(()=>{Q=!1,ue.destroy(),S.value===ue&&(S.value=null)})},{immediate:!0}),Pe([O,l,a,L,()=>s.lazy,I],([ie,pe,Ne,te,be,Q])=>ie&&te&&!Ne&&Q?pe?(V(),void P()):be?(ae(),void P()):void(pe||Ne||ae()):(V(),void P()),{flush:"post",immediate:!0}),Hn(()=>{var ie;(ie=S.value)==null||ie.destroy(),S.value=null,(function(){const pe=x;pe&&(Z(),x="",p?.markSettled(pe))})()}),(ie,pe)=>{var Ne,te,be,Q,ue;return v(),E("span",{ref_key:"rootRef",ref:d,class:"image-node-container","data-markstream-viewport-pending":N.value&&!T.value?"true":void 0},[O.value?(v(),E("img",{key:0,src:z.value||void 0,alt:String((te=(Ne=s.node.alt)!=null?Ne:s.node.title)!=null?te:""),title:String((Q=(be=s.node.title)!=null?be:s.node.alt)!=null?Q:""),class:Fe(["image-node__img",{"is-loading":!M.value&&!l.value,"is-loaded":M.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:s.lazy?"lazy":void 0,fetchpriority:M.value?"high":void 0,decoding:M.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(ue=s.node.alt)!=null?ue:f(ne)("image.preview"),onError:Y,onLoad:oe,onClick:q},null,42,sTe)):X("",!0),e.node.loading&&!a.value?(v(),E("span",rTe,[s.usePlaceholder?Rn(ie.$slots,"placeholder",{key:0,node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[0]||(pe[0]=C("span",{class:"image-shimmer"},null,-1))],!0):(v(),E("span",lTe,D(e.node.raw),1))])):X("",!0),j.value&&!e.node.loading?(v(),E("span",aTe,[s.usePlaceholder?Rn(ie.$slots,"placeholder",{key:0,node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[1]||(pe[1]=C("span",{class:"image-shimmer"},null,-1))],!0):(v(),E("span",uTe,D(e.node.raw),1))])):X("",!0),R.value?(v(),E("span",cTe,[Rn(ie.$slots,"error",{node:s.node,displaySrc:L.value,imageLoaded:l.value,hasError:a.value,fallbackSrc:s.fallbackSrc,lazy:s.lazy},()=>[pe[2]||(pe[2]=C("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[C("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),C("span",null,D(f(ne)("image.loadError")),1)],!0)])):X("",!0)],8,oTe)}}}),[["__scopeId","data-v-046e82ac"]]);yc.install=e=>{e.component(yc.__name,yc)};const dTe={key:2},Va=Xe({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamHtmlPolicy",void 0),o=hn("markstreamNestedRendererProps",void 0),s=F(()=>{var g;return(g=i?.value)!=null?g:"safe"}),r=F(()=>{var g,m;const k=(g=o?.value)!=null?g:{};return An(Mt({},k),{customId:(m=t.customId)!=null?m:k.customId,htmlPolicy:s.value})}),l=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1}),a=F(()=>t.components[String(t.node.type)]),u=F(()=>!!(a.value&&n.value[t.node.type]&&!Cg(String(t.node.type)))),c=F(()=>u.value?W7(t.node,s.value):void 0),d=F(()=>Array.isArray(t.node.children)&&t.node.children.length>0),h=F(()=>{var g;return String((g=t.node.content)!=null?g:"")}),p=F(()=>{var g,m;return String((m=(g=t.node.content)!=null?g:t.node.raw)!=null?m:"")});return(g,m)=>a.value&&u.value?(v(),ce(Oo(a.value),ni({key:0},c.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:de(()=>[d.value?(v(),ce(f(l),ni({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):h.value?(v(),ce(f(l),ni({key:1},r.value,{content:h.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):a.value?(v(),ce(Oo(a.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(v(),E("span",dTe,D(p.value),1)):X("",!0)}}),ME=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function fTe(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return An(Mt(Mt({},ME),n),{enabled:(t=n.enabled)==null||t})}return Mt({},ME)}function V7(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,i=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=i}function gP(e){var t,n;const i=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(i.length<3)return"";const o=i[0];if(o!=="`"&&o!=="~"||i[1]!==o||i[2]!==o)return"";let s=3;for(;i[s]===o;)s+=1;return i.slice(s).trim()}function IE(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function hTe(e){var t;return e.diff===!0||IE(e.language)||IE(gP(String((t=e.raw)!=null?t:"")))}function pTe(e,t,n){const i=(function(o){const s=gP(o);if(!s)return"";const r=s.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const a of l){const u=a.includes(":")?a.slice(a.indexOf(":")+1):a;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:i||t,caption:i?n?`Diff / ${t}`:t:""}}const gTe=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],mTe={key:0,translate:"no",class:"markstream-pre__diff-code"},vTe={class:"markstream-pre__diff-pane-content"},yTe={class:"markstream-pre__diff-number","aria-hidden":"true"},kTe={class:"markstream-pre__diff-content"},bTe={class:"markstream-pre__diff-content-inner"},ATe={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},CTe=["textContent"],wTe=["textContent"],jr=Xe({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(q,ne){const ie=String(q??"");return ne?ie:ie.replace(/\r\n$|\n$|\r$/,"")}const i=F(()=>{var q,ne,ie;const pe=String((ne=(q=t.node)==null?void 0:q.language)!=null?ne:"");return String((ie=String(pe).split(/\s+/g)[0])!=null?ie:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=F(()=>`language-${i.value}`),s=F(()=>{var q;return t.loading===!0||((q=t.node)==null?void 0:q.loading)===!0}),r=F(()=>{var q;return n((q=t.node)==null?void 0:q.code,s.value)});let l="",a=1;const u=F(()=>(function(q){let ne=0,ie=1;q.startsWith(l)&&(ne=l.length,ie=a,ne>0&&q[ne-1]==="\r"&&q[ne]===` +`&&ne++);for(let pe=ne;per.value.split(/\r\n|\n|\r/));let d=0,h="";const p=F(()=>{const q=u.value;q{var q;return t.showLineNumbers===!0&&((q=t.node)==null?void 0:q.diff)===!0}),m=F(()=>g.value&&t.diffInline===!0),k=F(()=>{const q=Number(t.reservedHeightPx);if(!Number.isFinite(q)||q<=0)return;const ne=`${Math.ceil(q)}px`;return s.value?{maxHeight:ne,overflow:"auto"}:{height:ne,minHeight:ne,maxHeight:ne,overflow:"auto"}}),w=["diff ","index ","--- ","+++ ","@@ "];function y(q){return String(q??"").trim().length===0}function b(q,ne="context",ie={}){const pe=y(q);return{code:q,kind:pe&&ne!=="hunk"&&ne!=="spacer"&&!ie.preserveBlankKind?"context":ne,empty:pe}}function A(q){const ne=n(q,s.value);return ne?ne.split(/\r\n|\n|\r/):[]}function T(q,ne){return!y(q[ne])||new.some(ie=>ne.startsWith(ie)))}function L(q,ne){return ne||!q.startsWith(" ")||q.startsWith(" ")?q:` ${q}`}function M(q,ne){const ie=q.length,pe=ne.length,Ne=[];let te=0;for(;te=te&&ue>=te&&q[Q]===ne[ue];)be.unshift({originalIndex:Q,modifiedIndex:ue}),Q--,ue--;const Ae=Q-te+1,se=ue-te+1;if(Ae<=0||se<=0||s.value||(Ae+1)*(se+1)>15e5)return Ne.concat(be);const re=se+1,G=new Uint32Array((Ae+1)*(se+1));for(let Ie=Ae-1;Ie>=0;Ie--)for(let Oe=se-1;Oe>=0;Oe--){const we=Ie*re+Oe;if(q[te+Ie]===ne[te+Oe])G[we]=G[(Ie+1)*re+Oe+1]+1;else{const Be=G[(Ie+1)*re+Oe],tt=G[Ie*re+Oe+1];G[we]=Be>=tt?Be:tt}}const le=[];let ge=0,ke=0;for(;ge=G[ge*re+ke+1]?ge++:ke++;return Ne.concat(le,be)}function N(q){var ne;const ie=(function(){var ue,Ae;const se=t.diffHideUnchangedRegions;if(se==null||se===!1)return null;const re=se===!0?{}:se;return re.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((ue=re.contextLineCount)!=null?ue:2)),minimumLineCount:Math.max(1,Math.floor((Ae=re.minimumLineCount)!=null?Ae:4))}})();if(!ie||q.length<1||q.length>2||q.length===2&&q[0].lines.length!==q[1].lines.length)return q;const pe=q[0].lines,Ne=(ne=q[1])==null?void 0:ne.lines,te=ue=>pe[ue].kind==="context"&&(Ne===void 0||Ne[ue].kind==="context"&&pe[ue].code===Ne[ue].code),be=[];let Q=0;for(;Q=ie.minimumLineCount){const se=ue+(ue===0?0:ie.contextLineCount),re=Ae-(Ae===pe.length?0:ie.contextLineCount);re-se>=ie.minimumLineCount&&be.push({start:se,end:re})}Q===ue&&Q++}return be.length?q.map((ue,Ae)=>{const se=[];let re=0;for(const G of be)se.push(...ue.lines.slice(re,G.start)),se.push({code:Ae===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${ue.key}-collapsed-${G.start}-${G.end}`,number:""}),re=G.end;return se.push(...ue.lines.slice(re)),An(Mt({},ue),{lines:se})}):q}const I=F(()=>{var q,ne,ie,pe;if(!g.value)return[];const Ne=(function(Ae){const se=Ae.some(G=>S(G)),re=Ae.some(G=>x(G));return se&&re||(function(){var G,le,ge,ke;if(i.value==="diff")return!0;const Ie=(ke=(ge=String((le=(G=t.node)==null?void 0:G.raw)!=null?le:"").split(/\r?\n/,1)[0])==null?void 0:ge.trim())!=null?ke:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(Ie)})()&&(se||re)})(c.value),te=(function(){var Ae,se;return((Ae=t.node)==null?void 0:Ae.originalCode)!=null||((se=t.node)==null?void 0:se.updatedCode)!=null})();if(m.value){const Ae=te?(function(se,re){const G=A(se),le=A(re),ge=M(G,le);if(ge.length>0){const tt=[];let ut=0,_t=0;for(const Ct of ge){for(;ut=Ie&&we>=Ie&&G[Oe]===le[we];)Be.unshift(An(Mt({},b(le[we])),{key:`inline-suffix-${we}`,number:we+1})),Oe--,we--;for(let tt=Ie;tt<=Oe;tt++)ke.push(An(Mt({},b(G[tt],"removed",{preserveBlankKind:T(G,tt)})),{key:`inline-removed-source-${tt}`,number:tt+1}));for(let tt=Ie;tt<=we;tt++)ke.push(An(Mt({},b(le[tt],"added",{preserveBlankKind:T(le,tt)})),{key:`inline-added-source-${tt}`,number:tt+1}));return ke.concat(Be)})((q=t.node)==null?void 0:q.originalCode,(ne=t.node)==null?void 0:ne.updatedCode):(function(se){const re=[];let G=1,le=1;const ge=_(se);for(const[ke,Ie]of se.entries())if(Ie.startsWith("@@")){const Oe=Ie.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);Oe&&(G=Number(Oe[1]),le=Number(Oe[2])),re.push(An(Mt({},b(Ie,"hunk")),{key:`inline-hunk-${ke}`,number:""}))}else if(S(Ie))re.push(An(Mt({},b(L(Ie.slice(1),ge),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${ke}`,number:G++}));else if(x(Ie))re.push(An(Mt({},b(L(Ie.slice(1),ge),"added",{preserveBlankKind:!0})),{key:`inline-added-${ke}`,number:le++}));else{const Oe=ge&&Ie.startsWith(" ")?Ie.slice(1):Ie;re.push(An(Mt({},b(Oe)),{key:`inline-context-${ke}`,number:le})),G++,le++}return re})(c.value);return N([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:Ae}])}if(!Ne&&te)return(function(Ae,se){const re=A(Ae),G=A(se),le=M(re,G),ge=[],ke=[];let Ie=0,Oe=0,we=0;const Be=(tt,ut)=>{const _t=Math.max(tt-Ie,ut-Oe);for(let Ct=0;Ct<_t;Ct++){const $t=Ie+Ct,Vt=Oe+Ct;ge.push($tAn(Mt({},Ae),{key:`original-${se}`,number:se+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:Q.map((Ae,se)=>An(Mt({},Ae),{key:`modified-${se}`,number:se+1}))}])}),z=F(()=>{var q,ne;if(t.showLineNumbers!==!0)return;let ie=g.value?1:u.value;if(g.value){ie=Math.max(ie,A((q=t.node)==null?void 0:q.originalCode).length,A((ne=t.node)==null?void 0:ne.updatedCode).length);for(const Ne of I.value)for(const te of Ne.lines)typeof te.number=="number"&&(ie=Math.max(ie,te.number))}const pe=`${Math.max(2,String(ie).length)}ch`;return{"--markstream-pre-line-number-width":pe,"--markstream-pre-diff-line-number-width":pe,"--markstream-code-padding-left":"calc(var(--markstream-pre-line-number-padding-left, 2ch) + var(--markstream-pre-line-number-width, 2ch) + var(--markstream-pre-line-number-padding-right, 1ch) + var(--markstream-pre-line-number-separator-width, 2px) + var(--markstream-pre-line-number-gap-to-code, 1ch))"}}),H=F(()=>I.value.some(q=>q.lines.some(ne=>ne.kind==="collapsed"))),O=F(()=>{const q=i.value;return q?`Code block: ${q}`:"Code block"}),R=K(null),j=K([]);let $=null,W=!1,P=null;function Z(q){const ne=Number.parseFloat(String(q??""));return Number.isFinite(ne)&&ne>0?ne:0}function ae(q,ne){var ie;if(!q)return ne;if(q.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const pe=q.querySelector(".markstream-pre__diff-content"),Ne=pe?.getBoundingClientRect(),te=(ie=Ne?.height)!=null?ie:0;return Math.max(ne,Math.ceil(te))}function V(){W||typeof window>"u"||($!=null&&window.cancelAnimationFrame($),$=window.requestAnimationFrame(()=>{$=null,W||(function(){var q,ne;$=null;const ie=R.value;if(!ie||!g.value||m.value||!ie.classList.contains("is-wrap"))return void(j.value.length&&(j.value=[]));const pe=(function(se){const re=window.getComputedStyle(se),G=Z(re.getPropertyValue("--markstream-pre-diff-line-height"));if(G>0)return G;const le=Z(re.lineHeight);return le>0?le:18})(ie),Ne=Array.from(ie.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),te=Array.from(ie.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),be=Math.max(Ne.length,te.length),Q=[];for(let se=0;se{const G=Ae[re];return G&&Math.abs(se.rowHeight-G.rowHeight)<=.5&&Math.abs(se.originalHeight-G.originalHeight)<=.5&&Math.abs(se.modifiedHeight-G.modifiedHeight)<=.5})||(j.value=Q)})()}))}function Y(q){P?.disconnect(),P=null,q&&g.value&&!m.value&&typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{V()}),P.observe(q))}function oe(q,ne){const ie=j.value[q];if(!ie)return;const pe=ne==="original"?ie.originalHeight:ie.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(ie.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(pe)}px`}}return Pe(R,q=>{Y(q),dt(()=>V())},{flush:"post"}),Pe([g,m,I],()=>{Y(R.value),dt(()=>V())},{flush:"post",immediate:!0}),Hn(()=>{W=!0,$!=null&&(window.cancelAnimationFrame($),$=null),P?.disconnect(),P=null}),(q,ne)=>(v(),E("pre",{ref_key:"preRef",ref:R,style:Kt([k.value,z.value]),class:Fe([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":g.value,"markstream-pre--diff-inline":m.value,"markstream-pre--diff-collapsed":H.value}]),"aria-busy":s.value,"aria-label":O.value,"data-language":i.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[g.value?(v(),E("code",mTe,[(v(!0),E(Ee,null,pt(I.value,ie=>(v(),E("span",{key:ie.key,class:Fe(["markstream-pre__diff-pane",ie.className])},[C("span",vTe,[(v(!0),E(Ee,null,pt(ie.lines,(pe,Ne)=>(v(),E("span",{key:pe.key,class:Fe(["markstream-pre__diff-line",[`markstream-pre__diff-line--${pe.kind}`,{"markstream-pre__diff-line--empty":pe.empty}]]),style:Kt(oe(Ne,ie.key))},[ne[0]||(ne[0]=C("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),C("span",yTe,D(pe.number),1),C("span",kTe,[C("span",bTe,D(pe.code),1)])],6))),128))])],2))),128))])):(v(),E(Ee,{key:1},[t.showLineNumbers?(v(),E("span",ATe,[C("span",{class:"markstream-pre__line-numbers-text",textContent:D(p.value)},null,8,CTe)])):X("",!0),C("code",{translate:"no",class:"markstream-pre__code",textContent:D(r.value)},null,8,wTe)],64))],14,gTe))}});jr.install=e=>{e.component(jr.__name,jr)};const Bo=Ci(Xe({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=r1(),i=hn("markstreamFade",void 0),o=hn("markstreamTextStreamState",void 0),s=hn("markstreamStreamVersion",void 0),r=F(()=>{const T=n.fade;return T===""||T===!0||T==="true"||T!==!1&&T!=="false"&&void 0}),l=F(()=>typeof r.value=="boolean"?r.value:typeof i?.value!="boolean"||i.value),a=F(()=>{var T;const S=(T=n["index-key"])!=null?T:n.indexKey;return S==null||S===""?"":String(S)}),u=K(t.node.content),c=K(""),d=K(0),h=K(t.node.content);let p;const g=K(null),m=K(null);let k="",w=null;function y(){p?.(),p=void 0}function b(){y(),c.value&&(u.value=u.value+c.value,c.value="")}Pe([u,g,m],function(){var T,S;const x=g.value;if(!x)return;const _=String((T=u.value)!=null?T:""),L=m.value;return w||(w=x.firstChild,k=(S=w?.data)!=null?S:""),_.startsWith(k)?!w&&_?(x.textContent=_,w=x.firstChild,void(k=_)):void(_.length>k.length&&L&&(L.appendChild(document.createTextNode(_.slice(k.length))),k=_)):(x.textContent=_,w=x.firstChild,L&&(L.textContent=""),void(k=_))},{immediate:!0}),Pe([()=>t.node.content,a,l],([T])=>{const S=String(T??""),x=a.value,_=YO({nextContent:S,persistedContent:x?o?.get(x):void 0,currentState:{settledContent:u.value,streamedDelta:c.value},typewriterEnabled:l.value});u.value=_.settledContent,c.value=_.streamedDelta,_.appended?(d.value+=1,(function(){if(!c.value||p||!s)return;const L=s.value;p=Pe(()=>s.value,M=>{M!==L&&b()},{flush:"sync"})})()):c.value||y(),x&&o?.set(x,S)},{immediate:!0}),Bc(y);const A=F(()=>d.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(T,S)=>(v(),E("span",{class:Fe([[e.node.center?"text-node-center":""],"text-node"])},[Wn(C("span",{ref_key:"settledTextEl",ref:g},D(h.value),513),[[Po,u.value!==""]]),Wn(C("span",{ref_key:"settledAppendsEl",ref:m},null,512),[[Po,u.value!==""]]),c.value?(v(),E("span",{key:0,class:Fe(["text-node-stream-delta",[A.value]]),onAnimationend:b},D(c.value),35)):X("",!0)],2))}}),[["__scopeId","data-v-fd79037c"]]);function Ip(e,t,n){return Xe({name:e,inheritAttrs:!1,setup(i,{attrs:o,slots:s}){var r,l;const a=K7(),u=q7(),c=U7(),d=typeof window<"u"&&((l=(r=os())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,h=K(typeof window>"u"||d||!c.value),p=ha(null);let g=null;function m(k){const w=k&&"$el"in k?k.$el:k;p.value=w instanceof HTMLElement?w:null}return typeof window<"u"&&Pe([p,c],([k,w],y,b)=>{if(g?.destroy(),g=null,!w||h.value)return void(h.value=!0);if(!k)return;let A=!0;const T=a(k,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});g=T,h.value=T.isVisible.value,T.whenVisible.then(()=>{A&&g===T&&(h.value=!0)}),b(()=>{A=!1,T.destroy(),g===T&&(g=null)})},{immediate:!0}),Hn(()=>{g?.destroy(),g=null}),()=>yn(h.value?t:n,An(Mt({},o),{ref:m}),s)}})}Bo.install=e=>{e.component(Bo.__name,Bo)};const gy=Xe({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var i,o,s,r,l,a,u;const c=N9(String((o=(i=n.node)==null?void 0:i.language)!=null?o:"")),d=lE[c]||(c?c.charAt(0).toUpperCase()+c.slice(1):lE[""]),h=hTe(n.node),p=pTe(String((r=(s=n.node)==null?void 0:s.raw)!=null?r:""),d,h),g=n.monacoOptions,m=h&&((l=n.estimatedDiffInline)!=null?l:V7(g??{},typeof window>"u"?0:window.innerWidth)),k=g?.diffAppearance,w=k==="dark"||k!=="light"&&n.isDark===!0,y=typeof g?.fontSize=="number"&&Number.isFinite(g.fontSize)&&g.fontSize>0?g.fontSize:12,b=typeof g?.lineHeight=="number"&&Number.isFinite(g.lineHeight)&&g.lineHeight>0?g.lineHeight:y===12?18:Math.max(12,Math.round(1.5*y)),A=typeof g?.tabSize=="number"&&Number.isFinite(g.tabSize)&&g.tabSize>0?g.tabSize:4,T=h?0:8,S=typeof((a=g?.padding)==null?void 0:a.top)=="number"&&Number.isFinite(g.padding.top)&&g.padding.top>=0?g.padding.top:T,x=typeof((u=g?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(g.padding.bottom)&&g.padding.bottom>=0?g.padding.bottom:T,_=typeof g?.fontFamily=="string"?g.fontFamily.trim():"",L=Mt(Mt({fontSize:`${y}px`,lineHeight:`${b}px`,tabSize:A,paddingTop:`${S}px`,paddingBottom:`${x}px`,"--markstream-pre-line-number-top":`${S}px`},h?{"--markstream-pre-diff-line-height":`${b}px`}:{}),_?{"--markstream-code-font-family":_}:{}),M=()=>yn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[yn("svg",{class:"action-icon",width:"14",height:"14"})]),N=n.isShowPreview!==!1&&(c==="html"||c==="svg"),I=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||N&&n.showPreviewButton!==!1,z=O=>{if(O!=null)return typeof O=="number"?`${O}px`:String(O)},H=Mt(Mt(Mt({"--markstream-code-layout-character-width":"1ch"},z(n.minWidth)?{minWidth:z(n.minWidth)}:{}),z(n.maxWidth)?{maxWidth:z(n.maxWidth)}:{}),h?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--markstream-code-fallback-bg, var(--code-bg, #fff))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return yn("div",An(Mt({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":w,"is-diff":h,"is-plain-text":c===""||c==="plaintext"||c==="text"},t.class],style:[H,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:yn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[yn("div",{class:"code-header-main",style:{minWidth:0,flex:"1 1 auto",display:"flex",alignItems:"center",gap:"var(--ms-gap-header-main, 0.625rem)",overflow:"hidden"}},[yn("span",{class:"icon-slot h-4 w-4 flex-shrink-0","aria-hidden":"true",style:{display:"inline-flex",width:"1rem",height:"1rem",flex:"0 0 auto"}}),yn("div",{class:"code-header-copy",style:{minWidth:0,display:"grid",gap:"2px"}},[yn("div",{class:"code-header-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--ms-text-label, 0.75rem)",fontWeight:"500",color:"var(--code-action-fg)"}},p.title),p.caption?yn("div",{class:"code-header-caption",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.75rem",color:"var(--code-line-number)"}},p.caption):null])]),yn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[h?yn("div",{class:"code-diff-stats","aria-hidden":"true"},[yn("span",{class:"code-diff-stat removed"},"-0"),yn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:M(),n.showCollapseButton===!1?null:M(),I?yn("div",{class:"relative"},[M()]):null])]),yn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[yn(jr,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:h?void 0:n.estimatedContentHeightPx,diffInline:m,diffHideUnchangedRegions:h?fTe(g?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:L,"data-markstream-code-loading":"1"})]),yn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[yn("div",{class:"loading-skeleton"},[yn("div",{class:"skeleton-line"}),yn("div",{class:"skeleton-line"}),yn("div",{class:"skeleton-line short"})])]),yn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),vk=Ip("ViewportDeferredCodeBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./CodeBlockNode-CJGhujJE.js"),__vite__mapDeps([6,7]))).default}catch(e){return console.warn('[markstream-vue] Failed to load the enhanced CodeBlockNode chunk; falling back to preformatted code rendering. Enhanced code blocks require the optional "stream-diffs" peer (or "stream-monaco" as a fallback).',e),jr}}),loadingComponent:gy,delay:0,suspensible:!1}),gy),ma=ia(()=>Ji(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,i,o,s;return yn(Bo,An(Mt({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield nP(),(yield Fo(()=>import("./index7-DnGHoBRb.js"),[])).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,i,o,s;return yn(Bo,An(Mt({},t),{node:{type:"text",content:(i=t.node.raw)!=null?i:`$${(n=t.node.content)!=null?n:""}$`,raw:(s=t.node.raw)!=null?s:`$${(o=t.node.content)!=null?o:""}$`}}))}})),mP=ia(()=>Ji(null,null,function*(){try{return yield nP(),(yield Fo(()=>import("./index6-CBDuyf4L.js"),[])).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,i,o;return yn(Bo,An(Mt({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(i=e.node.content)!=null?i:""}$$`}}))}})),Ar=Ci(Xe({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(v(),E("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=i=>t.$emit("click",i,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=i=>t.$emit("mouseEnter",i,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=i=>t.$emit("mouseLeave",i,e.node.id,e.messageId,e.threadId))},D(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Ar.install=e=>{e.component(Ar.__name,Ar)};const xTe={class:"superscript-node"},Kr=Ci(Xe({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,footnote_reference:fl,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,emoji:Ur,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("sup",xTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"superscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);Kr.install=e=>{e.component(Kr.__name,Kr)};const STe={class:"subscript-node"},Vr=Ci(Xe({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,footnote_reference:fl,strikethrough:wr,highlight:pl,insert:Zr,superscript:Kr,emoji:Ur,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("sub",STe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"subscript"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);Vr.install=e=>{e.component(Vr.__name,Vr)};const _Te={class:"strong-node"},Cr=Ci(Xe({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("strong",_Te,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"strong"}-${l}`,components:i.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const MTe={class:"strikethrough-node"},wr=Ci(Xe({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("del",MTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"strikethrough"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);wr.install=e=>{e.component(wr.__name,wr)};const ITe=["href","title","aria-label","aria-hidden","target","rel"],ETe=["aria-hidden"],TTe={class:"link-text-wrapper relative inline-flex"},LTe={class:"leading-[normal] link-text"},xr=Ci(Xe({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=hn("markstreamShowTooltips",void 0),i=F(()=>{const w=n?.value;return typeof w=="boolean"?w:t.showTooltip}),o=F(()=>{var w,y,b,A,T;const S=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",x=(w=t.animationOpacity)!=null?w:.35,_=Math.max(.12,Math.min(.5*x,x)),L={"--underline-height":`${(y=t.underlineHeight)!=null?y:2}px`,"--underline-bottom":S,"--underline-opacity":String(x),"--underline-rest-opacity":String(_),"--underline-duration":`${(b=t.animationDuration)!=null?b:1.6}s`,"--underline-timing":(A=t.animationTiming)!=null?A:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(T=t.animationIteration)!=null?T:"infinite"};return t.color&&(L["--link-color"]=t.color),L}),s=ss(()=>t.customId),r=F(()=>Mt({text:Bo,strong:Cr,strikethrough:wr,emphasis:Sr,image:yc,html_inline:hl,inline_code:rr},s.value)),l=r1(),a=F(()=>{var w,y;const b=(w=t.node)==null?void 0:w.attrs;if(!b||typeof b!="object")return{};const A={};if(Array.isArray(b))for(const T of b)Array.isArray(T)&&T[0]&&(A[String(T[0])]=String((y=T[1])!=null?y:""));else for(const[T,S]of Object.entries(b))T&&S!=null&&S!==!1&&(A[T]=S===!0?"":String(S));return bE(A,"safe","a")}),u=F(()=>Mt(Mt({},l),a.value)),c=F(()=>{var w,y;return bE({href:String((y=(w=t.node)==null?void 0:w.href)!=null?y:"")},"safe","a").href}),d=F(()=>{if(!c.value)return;const w=u.value.target;return(typeof w=="string"?w.trim():String(w??"").trim())||(gwe(c.value)?"_blank":void 0)}),h=F(()=>{var w;return String((w=d.value)!=null?w:"").trim().toLowerCase()==="_blank"}),p=F(()=>{if(!c.value)return;const w=u.value.rel,y=new Set((typeof w=="string"?w:String(w??"")).split(/\s+/).filter(Boolean)),b=new Set(Array.from(y).filter(A=>A.toLowerCase()!=="opener"));return h.value&&(b.add("noopener"),b.add("noreferrer")),b.size>0?Array.from(b).join(" "):void 0}),g=F(()=>{const w=Mt({},u.value);return delete w.title,delete w.href,delete w.target,delete w.rel,w});function m(){i.value&&YEe()}const k=F(()=>{var w,y;const b=(w=t.node)==null?void 0:w.title;return typeof b=="string"&&b.trim().length>0?b:String((y=c.value)!=null?y:"")});return(w,y)=>{var b,A;return e.node.loading?(v(),E("span",ni({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},f(l),{style:o.value}),[C("span",TTe,[C("span",LTe,[U(f(Bo),{class:"leading-[normal] link-text",node:{type:"text",content:String((b=e.node.text)!=null?b:""),raw:String((A=e.node.text)!=null?A:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),y[1]||(y[1]=C("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,ETe)):(v(),E("a",ni({key:0,class:"link-node",href:c.value,title:i.value?"":k.value,"aria-label":`Link: ${k.value}`,"aria-hidden":e.node.loading?"true":"false",target:d.value,rel:p.value},g.value,{style:o.value,onMouseenter:y[0]||(y[0]=T=>(function(S){var x,_,L,M;if(!i.value)return;const N=S,I=N?.clientX!=null&&N?.clientY!=null?{x:N.clientX,y:N.clientY}:void 0,z=((x=t.node)==null?void 0:x.title)||((_=c.value)!=null&&_.includes("xn--")&&((M=(L=t.node)==null?void 0:L.text)!=null&&M.includes("://"))?t.node.text:c.value)||"";QEe(S.currentTarget,z,"top",!1,I)})(T)),onMouseleave:m}),[(v(!0),E(Ee,null,pt(e.node.children,(T,S)=>(v(),ce(f(Va),{key:`${e.indexKey||"emphasis"}-${S}`,components:r.value,node:T,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${S}`},null,8,["components","node","custom-id","index-key"]))),128))],16,ITe))}}}),[["__scopeId","data-v-367e6ca4"]]);xr.install=e=>{e.component(xr.__name,xr)};const NTe={class:"insert-node"},Zr=Ci(Xe({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("ins",NTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"insert"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);Zr.install=e=>{e.component(Zr.__name,Zr)};const FTe={class:"highlight-node"},pl=Ci(Xe({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,emphasis:Sr,strikethrough:wr,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("mark",FTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"highlight"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);pl.install=e=>{e.component(pl.__name,pl)};const DTe={class:"emphasis-node"},Sr=Ci(Xe({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>Mt({text:Bo,inline_code:rr,link:xr,html_inline:hl,strong:Cr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,footnote_reference:fl,math_inline:ma,reference:Ar},n.value));return(o,s)=>(v(),E("em",DTe,[(v(!0),E(Ee,null,pt(e.node.children,(r,l)=>(v(),ce(f(Va),{key:`${e.indexKey||"emphasis"}-${l}`,components:i.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Sr.install=e=>{e.component(Sr.__name,Sr)};const BTe={class:"hard-break"},kc=Ci(Xe({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(v(),E("br",BTe))}),[["__scopeId","data-v-50c58f70"]]);kc.install=e=>{e.component(kc.__name,kc)};const j0=Xe({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=St({checkbox:dl,checkbox_input:dl,emoji:Ur,emphasis:Sr,hardbreak:kc,highlight:pl,inline_code:rr,insert:Zr,link:xr,reference:Ar,strikethrough:wr,strong:Cr,subscript:Vr,superscript:Kr,text:Bo}),i=ss(()=>t.customId),o=F(()=>{const s=i.value;return Object.keys(s).length>0?Mt(Mt({},n),s):n});return(s,r)=>(v(!0),E(Ee,null,pt(e.nodes,(l,a)=>(v(),ce(f(Va),{key:a,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${a}`},null,8,["components","node","custom-id","index-key"]))),128))}});function t5(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(t5)}function my(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(t5))return e;if(!t||e.length!==1)return null;const i=e[0];if(i?.type!=="paragraph"||!Array.isArray(i.children))return null;const o=i.children;return(n||o.length>0)&&o.every(t5)?o:null}function hf(e){var t,n;if(!e?.length)return null;let i="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;i+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return i}const $Te=["cite"],RTe={key:0,dir:"auto",class:"paragraph-node"},zTe=["custom-id"],Rv=Ci(Xe({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ss(()=>t.customId),i=F(()=>!!n.value.paragraph),o=F(()=>!!n.value.text),s=F(()=>my(t.node.children,!i.value)),r=F(()=>t.fade!==!1||o.value?null:hf(s.value));return oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade)),(l,a)=>(v(),E("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[s.value?(v(),E("p",RTe,[r.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(r.value),9,zTe)):(v(),ce(f(j0),{key:1,nodes:s.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(v(),ce(f(Gr),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:a[0]||(a[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,$Te))}}),[["__scopeId","data-v-abfecebc"]]);Rv.install=e=>{e.component(Rv.__name,Rv)};const OTe={class:"definition-list"},PTe={class:"definition-term"},jTe={class:"definition-desc"},zv=Ci(Xe({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(v(),E("dl",OTe,[(v(!0),E(Ee,null,pt(t.node.items,(o,s)=>(v(),E(Ee,{key:s},[C("dt",PTe,[U(f(Gr),{"index-key":`definition-term-${t.indexKey}-${s}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),C("dd",jTe,[U(f(Gr),{"index-key":`definition-desc-${t.indexKey}-${s}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[1]||(i[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);zv.install=e=>{e.component(zv.__name,zv)};const HTe=["href","title"],t0=Ci(Xe({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(i){var o;if(i.preventDefault(),typeof document>"u")return;const s=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(s);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(i,o)=>(v(),E("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,HTe))}}),[["__scopeId","data-v-e1eb37b6"]]);t0.install=e=>{e.component(t0.__name,t0)};const WTe=["id"],qTe={class:"flex-1"},Ov=Xe({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,i)=>(v(),E("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[C("div",qTe,[U(f(Gr),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:i[0]||(i[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,WTe))}});Ov.install=e=>{e.component(Ov.__name,Ov)};const UTe=["custom-id"],n5=Ci(Xe({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamFade",void 0),o=F(()=>i?.value!==!1||n.value.text?null:hf(t.node.children)),s=F(()=>Mt({text:Bo,inline_code:rr,link:xr,image:yc,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,checkbox:dl,checkbox_input:dl,footnote_reference:fl,hardbreak:kc,math_inline:ma,reference:Ar},n.value));return(r,l)=>(v(),ce(Oo(`h${e.node.level}`),ni({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:de(()=>[o.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(o.value),9,UTe)):(v(!0),E(Ee,{key:1},pt(e.node.children,(a,u)=>(v(),ce(f(Va),{key:u,components:s.value,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),B9=n5;B9.install=e=>{e.component(n5.__name,n5)};const KTe={key:0,dir:"auto",class:"paragraph-node"},VTe=["custom-id"],ZTe={dir:"auto",class:"paragraph-node"},GTe=["custom-id"],Ph=Ci(Xe({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=F(()=>{var p;return(p=t.node)!=null?p:t.item}),i=ss(()=>t.customId),o=F(()=>!!i.value.paragraph),s=F(()=>!!i.value.text),r=F(()=>{var p;return my((p=n.value)==null?void 0:p.children,!o.value)}),l=F(()=>{var p;if(o.value)return null;const g=(p=n.value)==null?void 0:p.children;if(!Array.isArray(g)||g.length<2)return null;const m=g[0];if(m?.type!=="paragraph"||!Array.isArray(m.children))return null;const k=g.slice(1);if(!k.every(y=>y?.type==="list"))return null;const w=my([m]);return w?{paragraphChildren:w,nestedLists:k}:null});function a(){return t.fade===!1&&!s.value}const u=F(()=>a()?hf(r.value):null),c=F(()=>{var p;return a()?hf((p=l.value)==null?void 0:p.paragraphChildren):null}),d=Object.freeze({}),h=F(()=>{const{value:p}=t;return typeof p=="number"&&Number.isFinite(p)?{value:p}:d});return oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade)),(p,g)=>{var m,k;return v(),E("li",ni({class:"list-item",dir:"auto"},h.value),[r.value?(v(),E("p",KTe,[u.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(u.value),9,VTe)):(v(),ce(f(j0),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(v(),E(Ee,{key:1},[C("p",ZTe,[c.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(c.value),9,GTe)):(v(),ce(f(j0),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(v(!0),E(Ee,null,pt(l.value.nestedLists,(w,y)=>(v(),ce(f(Gr),{key:y,nodes:[w],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${y}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:g[0]||(g[0]=b=>p.$emit("copy",b))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(v(),ce(f(Gr),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(k=(m=n.value)==null?void 0:m.children)!=null?k:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:g[1]||(g[1]=w=>p.$emit("copy",w))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);Ph.install=e=>{e.component(Ph.__name,Ph)};const jh=Ci(Xe({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=ss(()=>e.customId),n=F(()=>t.value.list_item||Ph);return(i,o)=>(v(),ce(Oo(e.node.ordered?"ol":"ul"),{class:Fe(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:de(()=>[(v(!0),E(Ee,null,pt(e.node.items,(s,r)=>{var l;return v(),ce(Oo(n.value),ni({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:s,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=a=>i.$emit("copy",a))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);jh.install=e=>{e.component(jh.__name,jh)};const QTe={key:2,class:"html-block-node__raw"},YTe=["innerHTML"],JTe={key:1,class:"html-block-node__placeholder"},n0=Ci(Xe({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=hn("markstreamHtmlPolicy",void 0),i=hn("markstreamNestedRendererProps",void 0),o=F(()=>{var I,z;return(z=(I=t.htmlPolicy)!=null?I:n?.value)!=null?z:"safe"}),s=F(()=>{var I,z;const H=(I=i?.value)!=null?I:{};return An(Mt({},H),{customId:(z=t.customId)!=null?z:H.customId,htmlPolicy:o.value})}),r=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1}),l=F(()=>{const I=Fv(t.node.attrs,o.value);if(!I)return;const z=Yp(I);return Object.keys(z).length>0?z:void 0}),a=F(()=>{const I=String(t.node.tag||"").trim(),z=Fv(t.node.attrs,o.value,I);if(!z)return;const H=Yp(z);return Object.keys(H).length>0?H:void 0}),u=ss(()=>t.customId),c=Xe({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),d=K(null),h=K(typeof window>"u"),p=K(t.node.content),g=F(()=>Array.isArray(t.node.children)?t.node.children:[]),m=F(()=>String(t.node.tag||"div")),k=F(()=>{var I;if(m.value.trim().toLowerCase()!=="details"||(I=t.node.attrs)!=null&&I.some(([H])=>String(H).toLowerCase()==="open"))return null;const z=g.value[0];return z?.type==="html_block"&&String(z.tag||"").toLowerCase()==="summary"?z:null}),w=F(()=>{var I;return hf((I=k.value)==null?void 0:I.children)}),y=F(()=>{const I=k.value;if(!I)return;const z=Fv(I.attrs,o.value,"summary");if(!z)return;const H=Yp(z);return Object.keys(H).length>0?H:void 0}),b=F(()=>w.value==null?g.value:g.value.slice(1)),A=F(()=>{const I=m.value.trim().toLowerCase();return $z.has(I)||z7(I,o.value)}),T=F(()=>g.value.length>0&&!!t.node.tag&&!A.value),S=F(()=>{var I,z,H;if(T.value)return{mode:"structured"};if(!h.value)return{mode:"html",content:(I=p.value)!=null?I:""};const O=(z=p.value)!=null?z:t.node.content;if(!O)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:Oh(O,o.value)};if(t.node.loading){const j=py(O,u.value,o.value);return j===null?{mode:"text",content:(H=t.node.raw)!=null?H:O}:{mode:"dynamic",nodes:j}}if(!uP(O,u.value))return{mode:"html",content:Oh(O,o.value)};const R=py(O,u.value,o.value);return R===null?{mode:"html",content:Oh(O,o.value)}:{mode:"dynamic",nodes:R}}),x=K7(),_=q7(),L=U7(),M=ha(null),N=!!t.node.loading;return typeof window<"u"?(Pe([()=>d.value,()=>_?.value.heavyBlockMargin,()=>_?.value.rootMargin],([I],z,H)=>{var O,R,j,$;if((R=(O=M.value)==null?void 0:O.destroy)==null||R.call(O),M.value=null,!N)return h.value=!0,void(p.value=t.node.content);if(!I)return void(h.value=!1);let W=!0;const P=($=(j=_?.value.heavyBlockMargin)!=null?j:_?.value.rootMargin)!=null?$:ff,Z=x(I,{rootMargin:P,allowIdle:!L.value});M.value=Z,h.value=h.value||Z.isVisible.value,Z.whenVisible.then(()=>{W&&M.value===Z&&(h.value=!0)}),H(()=>{W=!1,Z.destroy(),M.value===Z&&(M.value=null)})},{immediate:!0}),Pe(()=>t.node.content,I=>{N&&!h.value||(p.value=I)})):h.value=!0,Hn(()=>{var I,z;(z=(I=M.value)==null?void 0:I.destroy)==null||z.call(I),M.value=null}),(I,z)=>(v(),ce(Oo(T.value?m.value:"div"),ni({ref_key:"htmlRef",ref:d,class:"html-block-node","data-markstream-viewport-pending":f(L)&&!h.value?"true":void 0},T.value?a.value:void 0),{default:de(()=>[h.value?(v(),E(Ee,{key:0},[S.value.mode==="structured"?(v(),E(Ee,{key:0},[w.value!==null?(v(),E(Ee,{key:0},[C("summary",RW(eF(y.value)),D(w.value),17),b.value.length?(v(),ce(f(r),ni({key:0},s.value,{nodes:b.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):X("",!0)],64)):(v(),ce(f(r),ni({key:1},s.value,{nodes:g.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):S.value.mode==="dynamic"?(v(),ce(f(c),{key:1,nodes:S.value.nodes},null,8,["nodes"])):S.value.mode==="text"?(v(),E("pre",QTe,D(S.value.content),1)):(v(),E("div",ni({key:3},l.value,{innerHTML:S.value.content}),null,16,YTe))],64)):(v(),E("div",JTe,[Rn(I.$slots,"placeholder",{node:e.node},()=>[z[0]||(z[0]=C("span",{class:"html-block-node__placeholder-bar"},null,-1)),z[1]||(z[1]=C("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),z[2]||(z[2]=C("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);n0.install=e=>{e.component(n0.__name,n0)};const XTe={dir:"auto",class:"paragraph-node"},eLe=["custom-id"],Jd=Ci(Xe({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=ss(()=>t.customId),i=hn("markstreamHtmlPolicy",void 0),o=hn("markstreamFade",void 0),s=hn("markstreamParseOptions",void 0),r=hn("markstreamCustomMarkdownIt",void 0),l=hn("markstreamNestedRendererProps",void 0),a=F(()=>{var _;return(_=i?.value)!=null?_:"safe"}),u=F(()=>{var _;return(_=t.parseOptions)!=null?_:s?.value}),c=F(()=>{var _;return(_=t.customMarkdownIt)!=null?_:r?.value}),d=F(()=>{var _,L;return(L=t.customHtmlTags)!=null?L:(_=l?.value)==null?void 0:_.customHtmlTags}),h=F(()=>{var _,L;const M=(_=l?.value)!=null?_:{};return An(Mt({},M),{customId:(L=t.customId)!=null?L:M.customId,customHtmlTags:d.value,parseOptions:u.value,customMarkdownIt:c.value,htmlPolicy:a.value})}),p=ia({loader:()=>Promise.resolve().then(()=>iA),suspensible:!1});function g(_){var L;return _.type==="text"&&String((L=_.content)!=null?L:"").trim()===""}const m=F(()=>t.node.children.filter(_=>!g(_))),k=F(()=>m.value.length>0&&m.value.every(_=>_.type==="image"||(function(L){var M;const N=(function(I){return I.type==="link"&&Array.isArray(I.children)?I.children.filter(z=>!g(z)):[]})(L);return N.length===1&&((M=N[0])==null?void 0:M.type)==="image"})(_))),w=F(()=>new Set(wf(d.value))),y=F(()=>{if(!k.value||m.value.length<=1)return t.node.children;const _=[];for(let L=0;L0,I=t.node.children.slice(L+1).some(z=>!g(z));N&&I&&_.push(An(Mt({},M),{content:" ",raw:" "}))}return _}),b=F(()=>o?.value===!1&&!n.value.text),A=F(()=>b.value?hf(y.value):null);function T(_,L){return{node:_,"index-key":`${t.indexKey}-${L}`,"custom-id":t.customId,"custom-html-tags":d.value}}const S=F(()=>Mt({inline_code:rr,image:yc,link:xr,hardbreak:kc,emphasis:Sr,strong:Cr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,html_inline:hl,html_block:n0,emoji:Ur,checkbox:dl,math_inline:ma,checkbox_input:dl,reference:Ar,footnote_anchor:t0,footnote_reference:fl,text:Bo},n.value)),x=F(()=>y.value.map((_,L)=>{var M;const N=(function(I){var z,H,O,R;if(I.type==="html_block"||I.type==="html_inline"){const j=String((z=I.tag)!=null?z:"").trim().toLowerCase()||jz(I.content);if(j&&!w.value.has(j)&&Hz((H=I.content)!=null?H:I.raw,j)){const $=String((R=(O=I.content)!=null?O:I.raw)!=null?R:"");return{child:{type:"text",content:$,raw:$},component:Bo,isCustomComponent:!1}}}return{child:I,component:S.value[I.type],isCustomComponent:!!(n.value[I.type]&&!Cg(String(I.type)))}})(_);return An(Mt({},N),{index:L,key:`${t.indexKey||"paragraph"}-${L}`,customAttrs:N.isCustomComponent?W7(N.child,a.value):void 0,hasSlotChildren:Array.isArray(N.child.children)&&N.child.children.length>0,slotContent:String((M=N.child.content)!=null?M:""),originalChild:_})}));return(_,L)=>(v(),E("p",XTe,[A.value!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(A.value),9,eLe)):(v(!0),E(Ee,{key:1},pt(x.value,M=>{return v(),E(Ee,{key:M.key},[k.value&&g(M.originalChild)?(v(),E(Ee,{key:0},[$e(D((N=M.originalChild,String((I=N.content)!=null?I:""))),1)],64)):M.isCustomComponent?(v(),ce(Oo(M.component),ni({key:1,ref_for:!0},M.customAttrs,{node:M.child,loading:M.child.loading,"index-key":M.key,"custom-id":t.customId,"custom-html-tags":d.value,"is-dark":h.value.isDark}),{default:de(()=>[M.hasSlotChildren?(v(),ce(f(p),ni({key:0,ref_for:!0},h.value,{nodes:M.child.children,"index-key":M.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):M.slotContent?(v(),ce(f(p),ni({key:1,ref_for:!0},h.value,{content:M.slotContent,final:!M.child.loading,"index-key":`${M.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(v(),ce(Oo(M.component),ni({key:2,ref_for:!0},T(M.child,M.index)),null,16))],64);var N,I}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Jd.install=e=>{e.component(Jd.__name,Jd)};const tLe={class:"table-node-wrapper"},nLe=["aria-busy"],iLe={key:0},oLe=["custom-id"],sLe=["aria-label","onPointerdown"],rLe=["custom-id"],lLe={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},i0=Ci(Xe({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=F(()=>{var w;return(w=t.node.loading)!=null&&w}),i=F(()=>{var w;return(w=t.node.rows)!=null?w:[]}),o=K(null),s=K([]);let r=null;const l=F(()=>t.node.header.cells.length),a=F(()=>s.value.some(w=>Number.isFinite(w)&&w>0)),u=F(()=>a.value?s.value.map(w=>w>0?{width:`${w}px`}:void 0):[]);oi("markstreamShowTooltips",F(()=>t.showTooltips)),oi("markstreamFade",F(()=>t.fade));const c=ss(()=>t.customId),d=F(()=>!!c.value.text),h=F(()=>!!c.value.paragraph),p=new WeakMap;function g(w){const y=t.fade===!1&&!d.value,b=!h.value,A=p.get(w);if(A?.children===w.children&&A.textFastPath===y&&A.paragraphFastPath===b)return A.info;const T=my(w.children,b,!0),S={simpleChildren:T,plainText:T&&y?hf(T):null};return p.set(w,{children:w.children,textFastPath:y,paragraphFastPath:b,info:S}),S}function m(w){if(!r)return;w.preventDefault();const y=r.startWidth+r.nextStartWidth,b=Math.min(48,Math.floor(y/2)),A=Math.max(b,Math.min(y-b,Math.round(r.startWidth+w.clientX-r.startX))),T=[...r.widths];T[r.index]=A,T[r.index+1]=y-A,s.value=T}function k(){r&&(window.removeEventListener("pointermove",m),window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",k),r=null)}return Pe(l,()=>{k(),s.value=[]}),Hn(k),(w,y)=>(v(),E("div",tLe,[C("table",{ref_key:"tableRef",ref:o,class:Fe(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[a.value?(v(),E("colgroup",iLe,[(v(!0),E(Ee,null,pt(e.node.header.cells,(b,A)=>(v(),E("col",{key:A,style:Kt(u.value[A])},null,4))),128))])):X("",!0),C("thead",null,[C("tr",null,[(v(!0),E(Ee,null,pt(e.node.header.cells,(b,A)=>(v(),E("th",{key:A,dir:"auto",class:Fe([b.align==="right"?"text-right":b.align==="center"?"text-center":"text-left"])},[g(b).plainText!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(g(b).plainText),9,oLe)):g(b).simpleChildren?(v(),ce(f(j0),{key:1,nodes:g(b).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${A}`},null,8,["nodes","custom-id","index-key"])):(v(),ce(f(Gr),{key:2,nodes:b.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:y[0]||(y[0]=T=>w.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),A(function(S,x){if(x.button!==0)return;const _=(function(){var N;const I=(N=o.value)==null?void 0:N.querySelectorAll("thead th");return Array.from(I??[],z=>Math.round(z.getBoundingClientRect().width))})(),L=_[S],M=_[S+1];L&&M&&(x.preventDefault(),r={index:S,startX:x.clientX,startWidth:L,nextStartWidth:M,widths:_},s.value=_,window.addEventListener("pointermove",m),window.addEventListener("pointerup",k),window.addEventListener("pointercancel",k))})(A,T)},null,40,sLe)):X("",!0)],2))),128))])]),C("tbody",null,[(v(!0),E(Ee,null,pt(i.value,(b,A)=>(v(),E("tr",{key:A},[(v(!0),E(Ee,null,pt(b.cells,(T,S)=>(v(),E("td",{key:S,class:Fe([T.align==="right"?"text-right":T.align==="center"?"text-center":"text-left"]),dir:"auto"},[g(T).plainText!==null?(v(),E("span",{key:0,class:"text-node","custom-id":t.customId},D(g(T).plainText),9,rLe)):g(T).simpleChildren?(v(),ce(f(j0),{key:1,nodes:g(T).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${A}-${S}`},null,8,["nodes","custom-id","index-key"])):(v(),ce(f(Gr),{key:2,nodes:T.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:y[1]||(y[1]=x=>w.$emit("copy",x))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,nLe),U(fo,{name:"table-node-fade"},{default:de(()=>[n.value?(v(),E("div",lLe,[Rn(w.$slots,"loading",{isLoading:n.value},()=>[y[2]||(y[2]=C("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),y[3]||(y[3]=C("span",{class:"sr-only"},"Loading",-1))],!0)])):X("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);i0.install=e=>{e.component(i0.__name,i0)};const aLe={class:"hr-node"},Pv=Ci({},[["render",function(e,t){return v(),E("hr",aLe)}],["__scopeId","data-v-39b2349c"]]);Pv.install=e=>{e.component(Pv.__name,Pv)};const uLe={class:"unknown-node"},i5=Xe({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(v(),E("div",uLe,D(e.node.raw),1))}),jv=Ci(Xe({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=F(()=>`vmr-container vmr-container-${t.node.name}`),i=ss(()=>t.customId),o=F(()=>Mt({text:Bo,paragraph:Jd,heading:B9,inline_code:rr,link:xr,image:yc,strong:Cr,emphasis:Sr,strikethrough:wr,insert:Zr,subscript:Vr,superscript:Kr,checkbox:dl,checkbox_input:dl,hardbreak:kc,math_inline:ma,reference:Ar,list:jh,math_block:mP,table:i0},i.value));return(s,r)=>(v(),E("div",ni({class:n.value},e.node.attrs),[(v(!0),E(Ee,null,pt(e.node.children,(l,a)=>{return v(),ce(Oo((u=l.type,o.value[u]||i5)),{key:`${e.indexKey||"vmr-container"}-${a}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${a}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);jv.install=e=>{e.component(jv.__name,jv)};const cLe=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],EE=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function dLe(e){if(e<=255)return cLe[e];let t=0,n=EE.length-1;for(;t<=n;){const i=t+n>>1,o=EE[i];if(eo[1]))return o[2];t=i+1}}return"L"}const fLe=/[ \t\n\r\f]+/g,hLe=/[\t\n\r\f]| {2,}|^ | $/;let yk=null;const pLe=new RegExp("\\p{Script=Arabic}","u"),Fc=new RegExp("\\p{M}","u"),Z7=new RegExp("\\p{Nd}","u");function TE(e){return pLe.test(e)}function LE(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Ba(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&i<=57343){if(LE(i-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(LE(n))return!0}}return!1}const gLe=new Set([" "," ","⁠","\uFEFF"]),mLe=new Set(["-","‐","–","—"]);function vP(e,t){return!((function(n){const i=o0(n);return i!==null&&gLe.has(i)})(e)||t&&((function(n){const i=o0(n);return i!==null&&(G7.has(i)||pf.has(i))})(e)||(function(n){const i=o0(n);return i!==null&&mLe.has(i)})(e)))}const G7=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),$9=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),Q7=new Set(["'","’"]),pf=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),vLe=new Set([":",".","،","؛"]),yLe=new Set(["၏"]),kLe=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function bLe(e){if(Y7(e))return!0;let t=!1;for(const n of e)if(pf.has(n)||yy(n))t=!0;else if(!t||!Fc.test(n))return!1;return t}function ALe(e){for(const t of e)if(!G7.has(t)&&!pf.has(t))return!1;return e.length>0}function CLe(e){if(Y7(e))return!0;for(const t of e)if(!($9.has(t)||Q7.has(t)||Fc.test(t)||yy(t)))return!1;return e.length>0}function Y7(e){let t=!1;for(const n of e)if(n!=="\\"&&!Fc.test(n)){if(!($9.has(n)||pf.has(n)||Q7.has(n)))return!1;t=!0}return t}function vy(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const i=e.charCodeAt(n);if(i<56320||i>57343)return n;const o=n-1;if(o<0)return n;const s=e.charCodeAt(o);return s>=55296&&s<=56319?o:n}function o0(e){if(e.length===0)return null;const t=vy(e,e.length);return e.slice(t)}const wLe=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function yy(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,i){for(let o=0;o=i[o]&&n<=i[o+1])return!0;return!1})(t,wLe)}function xLe(e){const t=(function(n){for(const i of n)if(!Fc.test(i))return i;return null})(e);return t!==null&&Z7.test(t)}function SLe(e){const t=Array.from(e);let n=t.length;for(;n>0;){const i=t[n-1];if(Fc.test(i))n--;else{if(!$9.has(i)&&!Q7.has(i))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function _Le(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function NE(e,t,n,i){const o=t[i],s=e[i];if(o==null)return s;const r=n[i];if(s.length===r)return s;const l=o.repeat(r);return e[i]=l,l}function FE(e,t){return e&&t!==null&&vLe.has(t)}function MLe(e){const t=o0(e);return t!==null&&yLe.has(t)}function ILe(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function o5(e){let t=e.length;for(;t>0;){const n=vy(e,t),i=e.slice(n,t);if(kLe.has(i))return!0;if(!pf.has(i))return!1;t=n}return!1}function ELe(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===` +`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const TLe=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Gl(e){return e.length===1?e[0]:e.join("")}function LLe(e,t){const n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),Gl(n)}function NLe(e,t,n,i){if(!TLe.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let s=null,r=[],l=n,a=!1,u=0;for(const c of e){const d=ELe(c,i),h=d==="text"&&t;s===null||d!==s||h!==a?(s!==null&&o.push({text:Gl(r),isWordLike:a,kind:s,start:l}),s=d,r=[c],l=n+u,a=h,u+=c.length):(r.push(c),u+=c.length)}return s!==null&&o.push({text:Gl(r),isWordLike:a,kind:s,start:l}),o}function kk(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const FLe=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function DLe(e,t){const n=e.texts[t];return!!n.startsWith("www.")||FLe.test(n)&&t+1=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(t):!OLe.has(e)&&!zLe.test(e)&&RLe.test(e)}function DE(e){let t=!1;for(const n of e)if(!Fc.test(n)){if(!yP(n))return!1;t=!0}return t}function PLe(e,t,n,i){const o=!t&&DE(e),s=!i&&DE(n),r=(function(a){const u=(function(c){for(let d=c.length;d>0;){const h=vy(c,d),p=c.slice(h,d);if(!Fc.test(p))return p;d=h}return null})(a);return u!==null&&yy(u)})(e),l=(t||r)&&(function(a){for(let u=a.length;u>0;){const c=vy(a,u),d=a.slice(c,u);if(!Fc.test(d))return yP(d)||yy(d);u=c}return!1})(e);return!!(o||s||l)&&!Ba(e)&&!Ba(n)&&(t||o||r)&&(i||s)}function BE(e){for(const t of e)if(Z7.test(t))return!0;return!1}function Hv(e){if(e.length===0)return!1;for(const t of e)if(!Z7.test(t)&&!$Le.has(t))return!1;return!0}function jLe(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let i=0;for(let o=0;o0&&u.charCodeAt(u.length-1)===32&&(u=u.slice(0,-1)),u})(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const r=(function(a,u,c){var d,h,p;const g=(yk===null&&(yk=new Intl.Segmenter(void 0,{granularity:"word"})),yk);let m=0;const k=[],w=[],y=[],b=[],A=[],T=[],S=[],x=[],_=[],L=[],M=[],N=[];for(const R of g.segment(a))for(const j of NLe(R.segment,(d=R.isWordLike)!=null&&d,R.index,c)){let $=function(){T[q]!==null&&(w[q]=[NE(k,T,S,q)],T[q]=null),w[q].push(j.text),y[q]=y[q]||j.isWordLike,x[q]=x[q]||Z,_[q]=_[q]||ae,L[q]=Y,M[q]=oe,N[q]=FE(_[q],V)};const W=j.kind==="text",P=_Le(j.text,j.isWordLike,j.kind),Z=Ba(j.text),ae=TE(j.text),V=o0(j.text),Y=o5(j.text),oe=MLe(j.text),q=m-1;u.carryCJKAfterClosingQuote&&W&&m>0&&b[q]==="text"&&Z&&x[q]&&L[q]||W&&m>0&&b[q]==="text"&&ALe(j.text)&&x[q]||W&&m>0&&b[q]==="text"&&M[q]?$():W&&m>0&&b[q]==="text"&&j.isWordLike&&ae&&N[q]?($(),y[q]=!0):P!==null&&m>0&&b[q]==="text"&&T[q]===P?S[q]=((h=S[q])!=null?h:1)+1:W&&!j.isWordLike&&m>0&&b[q]==="text"&&!x[q]&&(bLe(j.text)||j.text==="-"&&y[q])?$():(k[m]=j.text,w[m]=[j.text],y[m]=j.isWordLike,b[m]=j.kind,A[m]=j.start,T[m]=P,S[m]=P===null?0:1,x[m]=Z,_[m]=ae,L[m]=Y,M[m]=oe,N[m]=FE(ae,V),m++)}for(let R=0;Rnull);let z=-1;for(let R=m-1;R>=0;R--){const j=k[R];if(j.length!==0){if(b[R]==="text"&&!y[R]&&z>=0&&b[z]==="text"&&(CLe(j)||j==="-"&&xLe(k[z]))){const $=(p=I[z])!=null?p:[];$.push(j),I[z]=$,A[z]=A[R],k[R]="";continue}z=R}}for(let R=0;RZ+1){j.push(Gl(oe)),$.push(ne),W.push("text"),P.push(R.starts[Z]),Z=q;continue}}j.push(ae),$.push(Y),W.push(V),P.push(R.starts[Z]),Z++}return{len:j.length,texts:j,isWordLike:$,kinds:W,starts:P}})((function(R){const j=[],$=[],W=[],P=[];for(let Z=0;Z1;for(let oe=0;oe=R.len||kk(R.kinds[V]))continue;const Y=[],oe=R.starts[V];let q=V;for(;q0&&(j.push(Gl(Y)),$.push(!0),W.push("text"),P.push(oe),Z=q-1)}return{len:j.length,texts:j,isWordLike:$,kinds:W,starts:P}})((function(R){const j=R.texts.slice(),$=R.isWordLike.slice(),W=R.kinds.slice(),P=R.starts.slice();for(let ae=0;ae=0&&!vP(u.texts[b-1],c)&&y(b),m<0&&(m=b),k=k||Ba(A))}return y(u.len),{len:d.length,texts:d,isWordLike:h,kinds:p,starts:g}})(s,r,t.breakKeepAllAfterPunctuation):r;return Mt({normalized:s,chunks:jLe(l,o)},l)}let Qf=null;const $E=new Map;let Yf=null;const WLe=new RegExp("\\p{Emoji_Presentation}","u"),qLe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let bk=null;const RE=new Map;function s5(){if(Qf!==null)return Qf;if(typeof OffscreenCanvas<"u")return Qf=new OffscreenCanvas(1,1).getContext("2d"),Qf;if(typeof document<"u")return Qf=document.createElement("canvas").getContext("2d"),Qf;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function Zu(e,t){let n=t.get(e);return n===void 0&&(n={width:s5().measureText(e).width,containsCJK:Ba(e)},t.set(e,n)),n}function ky(){if(Yf!==null)return Yf;if(typeof navigator>"u")return Yf={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Yf;const e=navigator.userAgent,t=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),n=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return Yf={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},Yf}function kP(){return bk===null&&(bk=new Intl.Segmenter(void 0,{granularity:"grapheme"})),bk}function ULe(e){return WLe.test(e)||e.includes("️")}function kd(e,t,n){return n===0?t.width:t.width-(function(i,o){return o.emojiCount===void 0&&(o.emojiCount=(function(s){let r=0;const l=kP();for(const a of l.segment(s))ULe(a.segment)&&r++;return r})(i)),o.emojiCount})(e,t)*n}function KLe(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function zE(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function OE(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function J7(e,t){return t===0?0:e+t}function GLe(e,t,n,i,o){return J7(i,t==="tab"?o+(function(s,r){return s.letterSpacing!==0&&s.spacingGraphemeCounts[r]>0?s.letterSpacing:0})(e,n):e.lineEndFitAdvances[n])}function PE(e,t,n,i){return J7(i,t==="tab"?0:e.lineEndFitAdvances[n])}function jE(e,t,n,i,o){return J7(i,t==="tab"?o:e.lineEndPaintAdvances[n])}function QLe(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function YLe(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Xm(e,t,n){let i=t;for(;i$){if(se!==null&&G>Q){q(be,G,le),ge=G,re=Xm(se,re,ge+1),G=-1,le=0;continue}q(),ie(be,ge,ke)}else P+=ke,ae=be,V=ge+1;else ie(be,ge,ke);const Ie=ge+1;se!==null&&se[re]===Ie&&(G=Ie,le=P,re++),ge++}Z&&ae===be&&V===Ae.length&&(ae=be+1,V=0)}let te=0;for(;te=H.length)));){const be=H[te],Q=zE(O[te]);if(Z)if(P+be>$){if(Q){pe(te,be),q(te+1,0,P-be),te++;continue}if(Y>=0){if(ae>Y||ae===Y&&V>0){q();continue}q(Y,0,oe);continue}if(be>$&&R[te]!==null){q(),Ne(te,0),te++;continue}q()}else pe(te,be),Q&&(Y=te+1,oe=P-be),te++;else be>$&&R[te]!==null?Ne(te,0):ne(te,be),Q&&(Y=te+1,oe=P-be),te++}return Z&&q(),W})(n,i);const{widths:o,kinds:s,breakableFitAdvances:r,breakablePreferredBreaks:l,discretionaryHyphenWidth:a,chunks:u}=n;if(o.length===0||u.length===0)return 0;const c=ky(),d=i+c.lineFitEpsilon;let h=0,p=0,g=!1,m=0,k=0,w=-1,y=0,b=null;function A(){w=-1,y=0,b=null}function T(I=m,z=k,H){h++,p=0,g=!1,A()}function S(I,z){g=!0,m=I+1,k=0,p=z}function x(I,z,H){g=!0,m=I,k=z+1,p=H}function _(I,z){g?(p+=z,m=I+1,k=0):S(I,z)}function L(I,z,H,O,R,j){if(!z)return;const $=PE(n,I,H,R);jE(n,I,H,R,O),w=H+1,y=p-j+$,b=I}function M(I,z){var H;const O=r[I],R=(H=l[I])!=null?H:null;let j=R===null?-1:Xm(R,0,z+1),$=-1,W=z;for(;Wd){if(R!==null&&$>z){T(I,$),W=$,j=Xm(R,j,W+1),$=-1;continue}T(),x(I,W,P)}else p=V,m=I,k=W+1}else x(I,W,P);const Z=W+1;R!==null&&R[j]===Z&&($=Z,j++),W++}g&&m===I&&k===O.length&&(m=I+1,k=0)}function N(I){h++,A()}for(let I=0;I=z.endSegmentIndex)));){const O=s[H],R=zE(O),j=ZLe(n,g,H),$=O==="tab"?VLe(p+j,n.tabStopAdvance):o[H],W=j+$,P=GLe(n,O,H,j,$);if(O!=="soft-hyphen")if(g){if(p+P>d){const Z=p+PE(n,O,H,j);if(jE(n,O,H,j,$),b==="soft-hyphen"&&c.preferEarlySoftHyphenBreak&&y<=d){T(w,0);continue}if(R&&Z<=d){_(H,W),T(H+1,0),H++;continue}if(w>=0&&y<=d){if(m>w||m===w&&k>0){T();continue}const ae=w;T(ae,0),H=ae;continue}if(P>d&&r[H]!==null){T(),M(H,0),H++;continue}T();continue}_(H,W),L(O,R,H,$,j,W),H++}else P>d&&r[H]!==null?M(H,0):S(H,$),L(O,R,H,$,j,W),H++;else g&&(m=H+1,k=0,w=H+1,y=p+a,b=O),H++}g&&(z.consumedEndSegmentIndex,T(z.consumedEndSegmentIndex,0))}return h})(e,t)}let Ak=null;function X7(){return Ak===null&&(Ak=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ak}function XLe(e,t){const n=[];let i=[],o=0,s=!1,r=!1,l=!1;function a(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(""),start:o}),i=[],s=!1,r=!1,l=!1)}function u(d,h,p){i=[d],o=h,s=p,r=o5(d),l=$9.has(d)}function c(d,h){i.push(d),s=s||h;const p=o5(d);r=d.length===1&&pf.has(d)&&r||p,l=!1}for(const d of X7().segment(e)){const h=d.segment,p=Ba(h);i.length!==0?l||G7.has(h)||pf.has(h)||t.carryCJKAfterClosingQuote&&p&&r?c(h,p):s||p?(a(),u(h,d.index,p)):c(h,p):u(h,d.index,p)}return a(),n}function eNe(e,t,n){if(t.length<=1)return t;const i=[];let o=-1,s=!1;function r(l){if(!(o<0)){if(s)o+1===l?i.push(t[o]):(function(a,u){const c=t[a].start,d=u=0&&!vP(t[l-1].text,n)&&r(l),o<0&&(o=l),s=s||Ba(a.text)}return r(t.length),i}function HE(e,t){if(t==="zero-width-break"||t==="soft-hyphen"||t==="hard-break")return 0;if(t==="tab")return 1;let n=0;const i=X7();for(const o of i.segment(e))n++;return n}function tNe(e){return e==="-"||e==="֊"||e==="‐"||e==="‒"||e==="–"||e==="—"}function nNe(e,t,n,i,o){const s=ky(),{cache:r,emojiCorrection:l}=(function(N,I){s5().font=N;const z=(function(R){let j=$E.get(R);return j||(j=new Map,$E.set(R,j)),j})(N),H=(function(R){const j=R.match(/(\d+(?:\.\d+)?)\s*px/);return j?parseFloat(j[1]):16})(N),O=I?(function(R,j){let $=RE.get(R);if($!==void 0)return $;const W=s5();W.font=R;const P=W.measureText("😀").width;if($=0,P>j+.5&&typeof document<"u"&&document.body!==null){const Z=document.createElement("span");Z.style.font=R,Z.style.display="inline-block",Z.style.visibility="hidden",Z.style.position="absolute",Z.textContent="😀",document.body.appendChild(Z);const ae=Z.getBoundingClientRect().width;document.body.removeChild(Z),P-ae>.5&&($=P-ae)}return RE.set(R,$),$})(N,H):0;return{cache:z,fontSize:H,emojiCorrection:O}})(t,(a=e.normalized,qLe.test(a)));var a;const u=kd("-",Zu("-",r),l)+(o===0?0:2*o),c=8*kd(" ",Zu(" ",r),l),d=o!==0;if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};const h=[],p=[],g=[],m=[];let k=e.chunks.length<=1&&!d;const w=null,y=[],b=[],A=[],T=null,S=Array.from({length:e.len});function x(N,I,z,H,O,R,j,$,W){O!=="text"&&O!=="space"&&O!=="zero-width-break"&&(k=!1),h.push(I),p.push(z),g.push(H),m.push(O),y.push(j),b.push($),d&&A.push(W)}function _(N,I,z,H,O){const R=Zu(N,r),j=d?HE(N,I):0,$=(function(ae,V,Y){return V>1?ae+(V-1)*Y:ae})(kd(N,R,l),j,o),W=I==="space"||I==="preserved-space"||I==="zero-width-break"?0:$,P=W===0?0:W+(j>0?o:0),Z=I==="space"||I==="zero-width-break"?0:$;if(O&&H&&N.length>1){let ae="sum-graphemes";o!==0?ae="segment-prefixes":Hv(N)?ae="pair-context":s.preferPrefixWidthsForBreakableRuns&&(ae="segment-prefixes");const V=(function(oe,q,ne,ie,pe){if(q.breakableFitAdvances!==void 0&&q.breakableFitMode===pe)return q.breakableFitAdvances;q.breakableFitMode=pe;const Ne=kP(),te=[];for(const Ae of Ne.segment(oe))te.push(Ae.segment);if(te.length<=1)return q.breakableFitAdvances=null,q.breakableFitAdvances;if(pe==="sum-graphemes"){const Ae=[];for(const se of te){const re=Zu(se,ne);Ae.push(kd(se,re,ie))}return q.breakableFitAdvances=Ae,q.breakableFitAdvances}if(pe==="pair-context"||te.length>96){const Ae=[];let se=null,re=0;for(const G of te){const le=kd(G,Zu(G,ne),ie);if(se===null)Ae.push(le);else{const ge=se+G,ke=Zu(ge,ne);Ae.push(kd(ge,ke,ie)-re)}se=G,re=le}return q.breakableFitAdvances=Ae,q.breakableFitAdvances}const be=[];let Q="",ue=0;for(const Ae of te){Q+=Ae;const se=kd(Q,Zu(Q,ne),ie);be.push(se-ue),ue=se}return q.breakableFitAdvances=be,q.breakableFitAdvances})(N,R,r,l,ae),Y=V===null||i==="keep-all"?null:(function(oe){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(oe))return null;const q=[];let ne=0;for(const ie of X7().segment(oe))ne++,tNe(ie.segment)&&q.push(ne);return q.length===0?null:q})(N);return void x(N,$,P,Z,I,z,V,Y,j)}x(N,$,P,Z,I,z,null,null,j)}for(let N=0;N=55296&&oe<=56319&&Y+1=56320&&pe<=57343&&(q=pe-56320+(oe-55296<<10)+65536,ne=2)}const ie=dLe(q);ie!=="R"&&ie!=="AL"&&ie!=="AN"||($=!0);for(let pe=0;pe=0&&j[oe]==="ET";oe--)j[oe]="EN";for(oe=Y+1;oe0?j[Y-1]:ae)!=="L"?"R":"L";if(q===((oe{const e=globalThis;if(e[Ck])return e[Ck];const t={configs:{},controllers:{},revision:ha(0),preparedCache:new Map,blockEstimateCache:new Map};return e[Ck]=t,t})();let Y1=null;const wk=cs.revision;function WE(e){var t;return e&&(t=cs.configs[e])!=null?t:null}function qE(e,t){const n=Number.parseFloat(String(e??""));return Number.isFinite(n)&&n>0?n:t}function oNe(e){return e?.type==="text"||e?.type==="emoji"||e?.type==="hardbreak"}function xk(e){var t,n,i;if(!Array.isArray(e)||e.length===0)return null;let o="";for(const s of e){if(!oNe(s))return null;s.type==="text"?o+=String((t=s.content)!=null?t:""):s.type==="emoji"?o+=String((i=(n=s.name)!=null?n:s.raw)!=null?i:""):s.type==="hardbreak"&&(o+=` +`)}return o.length>0?o:null}function Sk(e,t,n){var i,o;if(!e||!Number.isFinite(t)||t<=0||!(function(){var s;if(Y1!=null)return Y1;if(typeof document>"u")return!1;try{const r=document.createElement("canvas");return Y1=!!((s=r.getContext)!=null&&s.call(r,"2d")),Y1}catch{return Y1=!1,!1}})())return null;try{const s=Math.round(100*t)/100,r=[(i=n.whiteSpace)!=null?i:"pre-wrap",n.font,n.lineHeight,n.wrapperOverhead,n.widthAdjustment,s,e].join("\0"),l=cs.blockEstimateCache.get(r);if(l)return cs.blockEstimateCache.delete(r),cs.blockEstimateCache.set(r,l),{kind:"simple-text",height:l.height,contentHeight:l.contentHeight};const a=(o=n.whiteSpace)!=null?o:"pre-wrap",u=(function(p,g,m){const k=`${m}\0${g}\0${p}`,w=cs.preparedCache.get(k);if(w)return cs.preparedCache.delete(k),cs.preparedCache.set(k,w),w.prepared;const y=(function(b,A,T){return(function(S,x,_,L){var M,N;const I=(M=L?.wordBreak)!=null?M:"normal",z=(N=L?.letterSpacing)!=null?N:0;return nNe(HLe(S,ky(),L?.whiteSpace,I),x,!1,I,z)})(b,A,0,T)})(p,g,{whiteSpace:m});for(cs.preparedCache.set(k,{prepared:y});cs.preparedCache.size>240;){const b=cs.preparedCache.keys().next().value;if(!b)break;cs.preparedCache.delete(b)}return y})(e,n.font,a),c=(function(p,g,m){const k=JLe(p,g);return{lineCount:k,height:k*m}})(u,Math.max(24,s-n.widthAdjustment),n.lineHeight),d=Math.max(n.lineHeight,c.height),h=Math.max(n.lineHeight,Math.round(d+n.wrapperOverhead));for(cs.blockEstimateCache.set(r,{height:h,contentHeight:Math.round(d)});cs.blockEstimateCache.size>4e3;){const p=cs.blockEstimateCache.keys().next().value;if(!p)break;cs.blockEstimateCache.delete(p)}return{kind:"simple-text",height:h,contentHeight:Math.round(d)}}catch{return null}}function bP(e,t,n){var i,o;if(!n||!e||!Number.isFinite(t)||t<=0)return null;if(e.type==="paragraph"){const s=xk(e.children);return s&&n.paragraph?Sk(s,t,n.paragraph):null}if(e.type==="heading"){const s=Number(e.level||0),r=xk(e.children),l=n.headings[s];return r&&l?Sk(r,t,l):null}if(e.type==="list_item"){const s=Array.isArray(e.children)?e.children:[];if(s.length!==1||((i=s[0])==null?void 0:i.type)!=="paragraph"||!n.listItem)return null;const r=xk((o=s[0])==null?void 0:o.children);return r?Sk(r,t,n.listItem):null}if(e.type==="list"){const s=Array.isArray(e.items)?e.items:[];if(!s.length)return null;let r=Math.max(0,n.listWrapperOverhead);for(const l of s){const a=bP(l,t,n);if(!a)return null;r+=a.height}return{kind:"simple-text",height:Math.max(1,Math.round(r)),contentHeight:Math.max(1,Math.round(r))}}return null}function J1(e){if(!e)return 1;const t=String(e).split(/\r?\n/);return Math.max(1,t.length)}function bd(e,t){const n=String(e??"");return t?n:n.replace(/\r\n$|\n$|\r$/,"")}function _k(e,t,n=0){return e.diff?V7(t??{},n)?(function(i){const o=bd(i.raw);if(o){const s=o.split(/\r?\n/);return i.originalCode!=null||i.updatedCode!=null?Math.max(1,s.filter(r=>!iNe.some(l=>r.startsWith(l))).length):Math.max(1,s.length)}return J1(bd(i.originalCode))+J1(bd(i.updatedCode))})(e):(function(i){const o=i.originalCode,s=i.updatedCode;if(o!=null||s!=null)return Math.max(J1(bd(o)),J1(bd(s)));const r=bd(i.code).split(/\r?\n/);let l=0,a=0;for(const u of r)u.startsWith("+")&&!u.startsWith("+++")?a++:u.startsWith("-")&&!u.startsWith("---")?l++:(l++,a++);return Math.max(1,l,a)})(e):J1(bd(e.code,e.loading===!0))}function sNe(e){return e?`${e.fontStyle||"normal"} ${e.fontWeight||"400"} ${e.fontSize||"16px"} ${e.fontFamily||"sans-serif"}`:""}function Mk(e,t,n="pre-wrap"){if(!e||!t||typeof window>"u")return null;const i=window.getComputedStyle(t),o=e.offsetHeight,s=qE(i.lineHeight,1.5*qE(i.fontSize,16)),r=e.getBoundingClientRect().width,l=t.getBoundingClientRect().width;return{font:sNe(i),lineHeight:s,wrapperOverhead:Math.max(0,o-s),widthAdjustment:Math.max(0,r-l),whiteSpace:n}}const rNe=new Set(["node","key","ref","ctx","renderNode","indexKey","__proto__","prototype","constructor"]);function UE(e,t={}){var n;const i={},o=new Set((n=t.omit)!=null?n:[]);if(!e||typeof e!="object")return i;const s=Object.getOwnPropertyDescriptors(e);for(const[r,l]of Object.entries(s))rNe.has(r)||o.has(r)||l.enumerable&&"value"in l&&(i[r]=l.value);return i}function KE(e,t,n,i){var o;const s=(function(h){return Math.max(0,Math.ceil(h.scrollHeight||0)-Math.ceil(h.clientHeight||0))})(e),r=(function(h,p){return Number.isFinite(h)?Math.min(Math.max(0,h),p):0})(n,s);if(!i.isReverseFlexScrollRoot(e))return void(e.scrollTop=r);const l=Math.max(0,s-r),a=[-l,l];let u=a[0],c=Number.POSITIVE_INFINITY;for(const h of a){e.scrollTop=h;const p=i.getNormalizedScrollTop(e,t,!1),g=Math.abs(p-r);gd&&(e.scrollTop=u)}function VE(e,t){let n=0,i=null,o=null;const s=()=>{const r=o;o=null,i=null,r&&(n=Date.now(),e(...r))};return function(...r){const l=Date.now(),a=t-(l-n);o=r,a<=0?(i&&(clearTimeout(i),i=null),n=l,o=null,e(...r)):i||(i=setTimeout(s,a))}}function ZE(e){return e==="simple"?"simple":e===!0||e==="true"||e==="precise"?"precise":"off"}const AP=Symbol("MarkstreamMathBlockMinHeightCache");function Sct(){return hn(AP,null)}const lNe=new Set(["text","inline_code","emoji","footnote_reference"]),aNe=new Set(["strong","emphasis","strikethrough","highlight","insert","subscript","superscript","link"]);function X1(e){const t=Number(e);return!Number.isFinite(t)||t<=0?-1:Math.round(t/32)}function Ad(e,t,n,i=22){const o=String(e??"");if(!o)return n;const s=Math.max(18,Math.floor(Math.max(320,t)/8)),r=o.split(/\r?\n/).length,l=Math.ceil(o.length/s),a=Math.max(1,r,l);return Math.max(n,Math.ceil(a*i+12))}function CP(e){var t;if(!e||typeof e!="object")return!1;const n=e,i=String((t=n.type)!=null?t:"");if(lNe.has(i))return!0;if(!aNe.has(i))return!1;const o=n.children;return!Array.isArray(o)||!o.length||o.every(CP)}function r5(e){var t,n,i,o,s,r,l,a;if(!e||typeof e!="object")return"";const u=e,c=String((t=u.type)!=null?t:"");if(c==="text")return String((i=(n=u.content)!=null?n:u.raw)!=null?i:"");if(c==="inline_code")return String((r=(s=(o=u.code)!=null?o:u.content)!=null?s:u.raw)!=null?r:"");if(c==="emoji")return String((a=(l=u.name)!=null?l:u.raw)!=null?a:"");if(typeof u.text=="string")return u.text;const d=[];for(const h of["children","items","cells","rows"]){const p=u[h];if(Array.isArray(p)){const g=p.map(r5).filter(Boolean).join(" ");g&&d.push(g)}}return d.join(" ").replace(/\s+/g," ").trim()}function wP(e){if(!e||typeof e!="object")return!1;const t=e;return t.type==="inline_code"||["children","items","cells","rows"].some(n=>{const i=t[n];return Array.isArray(i)&&i.some(wP)})}function uNe(e,t){if(!e)return 30;const n=Math.max(18,Math.floor(Math.max(320,t)/8)),i=e.split(/\r?\n/).length,o=Math.ceil(e.length/n),s=Math.max(1,i,o);return 30+26*Math.max(0,s-1)}function cNe(e,t){var n,i,o,s,r,l,a,u,c,d,h,p,g,m;if(!e||typeof e!="object")return 32;const k=e,w=String((n=k.type)!=null?n:""),y=Number.isFinite(t)&&t>0?t:640;switch(w){case"heading":return(function(b){var A;const T=Number((A=b.level)!=null?A:b.depth);return T>=4?20:T===3?30:T===2?32:44})(k);case"paragraph":return(function(b,A){const T=String(b??"");if(!T)return 28;const S=Math.max(18,Math.floor(Math.max(320,A)/8)),x=T.split(/\r?\n/).length,_=Math.ceil(T.length/S);return Math.max(1,x,_)<=1?28:Ad(T,A,34)})(String((o=(i=k.raw)!=null?i:k.content)!=null?o:""),y);case"list":return(function(b,A){var T;const S=Array.isArray(b.items)?b.items:[];if(!S.length)return 48;const x=Math.max(48,30*S.length+12);let _=12;for(const N of S)_+=uNe(r5(N)||String((T=N.raw)!=null?T:""),A);const L=Math.max(0,_-x);if(S.length>20){const N=Math.round(2.4*S.length);return Math.round(x+Math.max(N,Math.min(L,3*S.length)))}if(L<=0)return x;const M=S.length>8?8*S.length:L;return Math.round(x+Math.min(L,M))})(k,y);case"list_item":return Ad(String((r=(s=k.raw)!=null?s:k.content)!=null?r:""),y,34);case"blockquote":return Ad(String((a=(l=k.raw)!=null?l:k.content)!=null?a:""),y,56);case"table":return(function(b,A){const T=[...b.header?[b.header]:[],...Array.isArray(b.rows)?b.rows:[]];if(!T.length){const S=Array.isArray(b.children)?b.children.length:3;return Math.max(120,38*S+48)}return Math.max(120,Math.round(4+T.reduce((S,x)=>S+(function(_,L){const M=Math.max(1,_.length),N=Math.max(80,(L-32)/M),I=Math.max(10,Math.floor(N/8)),z=Math.max(1,..._.map(H=>{var O;const R=r5(H)||String((O=H?.raw)!=null?O:"");return Math.ceil(R.length/I)||1}));return 54+34*Math.max(0,z-1)+(M<=3&&_.some(wP)?14:0)})((function(_){var L;return Array.isArray(_?.cells)&&(L=_.cells)!=null?L:[]})(x),A),0)))})(k,y);case"code_block":{const b=String((u=k.language)!=null?u:"").trim().toLowerCase(),A=String((d=(c=k.code)!=null?c:k.raw)!=null?d:"");return b==="mermaid"?dy(uy(A)):b==="infographic"?fy(cy(A)):Ad(A,y,96,20)}case"math_block":return 72;case"image":return 220;case"admonition":case"vmr_container":case"html_block":return(function(b,A){var T,S,x;const _=b.match(/^\s*]*)>/i);return _&&!/(?:^|\s)open(?:\s|=|$)/i.test((T=_[1])!=null?T:"")?Ad(((x=(S=b.match(/]*>([\s\S]*?)<\/summary>/i))==null?void 0:S[1])==null?void 0:x.replace(/<[^>]*>/g,"").trim())||"Details",A,28,28):Ad(b,A,96)})(String((p=(h=k.raw)!=null?h:k.content)!=null?p:""),y);case"thematic_break":return 24;default:return Ad(String((m=(g=k.raw)!=null?g:k.content)!=null?m:""),y,40)}}function GE(e,t,n){return Math.min(Math.max(e,t),n)}const dNe=["total","cacheHits","appendHits","tailHits","fullParses","chunkedParses"],fNe=["tokenCloneMs","processTokensInputTokens","processTokensReusedTopLevelNodes","processTokensMs","safeMarkdownMs","tokenizeMs","htmlBlockPassesMs","parseMarkdownToStructureTotalMs"],hNe=new Set(["attrs","data","items","header","payload","props","rows","cells","term","definition","sourceMap"]),xP=["raw","content","code","originalCode","updatedCode"],QE=new WeakMap,YE=new WeakMap;let pNe=1;function Zl(){return typeof performance<"u"?performance.now():Date.now()}function JE(e){const t=e.stream;return t&&typeof t.stats=="function"?t.stats():null}function rl(e){if(typeof e!="object"&&typeof e!="function"||e===null)return"";const t=e;let n=QE.get(t);return n||(n=pNe++,QE.set(t,n)),String(n)}function XE(e,t,n,i={}){var o,s;const r=i.includeFinal!==!1,l={md:rl(t),customMarkdownIt:rl(n),requireClosingStrong:e.requireClosingStrong===!0,customHtmlTags:(o=e.customHtmlTags)!=null?o:[],includeSourceMap:e.includeSourceMap===!0,streamParse:(s=e.streamParse)!=null?s:"auto",validateLink:rl(e.validateLink),preTransformTokens:rl(e.preTransformTokens),postTransformTokens:rl(e.postTransformTokens),postTransformNodes:rl(e.postTransformNodes)};return r&&(l.final=e.final===!0),JSON.stringify(l)}function eT(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===10;)t-=1;const n=e.lastIndexOf(` +`,t-1)+1;return e.slice(n,t).trim()}function tT(e){const t=SP(e);return t.length>=2&&t.every(n=>{const i=n.trim();return i.length>=1&&i.replace(/^:/,"").replace(/:$/,"").split("").every(o=>o==="-")})}function SP(e){return e.includes("|")?e.replace(/^\|/,"").replace(/\|$/,"").split("|"):[]}function _P(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function eA(e){const t=String(e??"");return`${t.length}:${_P(t)}`}function l5(e,t=new WeakMap,n=0){if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="string")return`s:${(function(r){return r.length<=8192?eA(r):`${r.length}:${_P(r.slice(0,8192))}:truncated`})(e)}`;if(typeof e=="function")return`fn:${rl(e)}`;if(typeof e!="object")return typeof e;const i=e,o=t.get(i);if(o)return`cycle:${o}`;if(n>=6)return`object:${rl(i)}`;const s=rl(i);if(t.set(i,s),Array.isArray(e)){const r=e.slice(0,200);return`a:${e.length}:${r.map(l=>l5(l,t,n+1)).join(",")}`}if(typeof e=="object"){const r=e,l=Object.keys(r).sort(),a=l.slice(0,80);return`o:${l.length}:${a.sort().map(u=>`${u}:${l5(r[u],t,n+1)}`).join(";")}`}return typeof e}function by(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"&&typeof e.raw=="string"}function MP(e,t=new WeakMap,n=0){return Array.isArray(e)?`a:${e.length}:${e.slice(0,200).map(i=>by(i)?Dc(i,t,n+1):MP(i,t,n+1)).join(",")}`:by(e)?Dc(e,t,n):l5(e,t,n)}function gNe(e,t,n){return Object.keys(e).sort().filter(i=>i!=="children"&&!xP.includes(i)).map(i=>{const o=e[i];return typeof o=="string"?`${i}=s:${eA(o)}`:typeof o=="number"||typeof o=="boolean"||o==null?`${i}=${String(o)}`:typeof o=="function"?`${i}=fn:${rl(o)}`:hNe.has(i)&&(Array.isArray(o)||typeof o=="object")?`${i}=${MP(o,t,n+1)}`:o&&typeof o=="object"?`${i}=object:${rl(o)}`:""}).filter(Boolean).join(";")}function mNe(e){return xP.map(t=>{const n=e[t];return typeof n=="string"?`${t}=s:${eA(n)}`:""}).filter(Boolean).join(";")}function Dc(e,t=new WeakMap,n=0){const i=YE.get(e);if(i)return i;const o=e,s=t.get(o);if(s)return`node-cycle:${s}`;if(n>=6)return`node:${e.type}:${rl(o)}`;const r=rl(o);t.set(o,r);const l=(function(a,u,c){const d=a,h=Array.isArray(d.children)?d.children:[],p=h.length?h.slice(0,200).map(g=>Dc(g,u,c+1)).join("|"):"";return[a.type,mNe(d),gNe(d,u,c),h.length,p].join(":")})(e,t,n);return YE.set(o,l),l}function IP(e,t){return Dc(e)===Dc(t)}function tA(e,t,n){const i=Zl(),o=t==="stabilizeSignatureMs"?"stabilizeSignatureCallCount":"primeSignatureCallCount";try{return n()}finally{e[t]+=Zl()-i,e[o]+=1,e.signatureMs=e.stabilizeSignatureMs+e.primeSignatureMs,e.signatureCallCount=e.stabilizeSignatureCallCount+e.primeSignatureCallCount}}function nT(e,t,n){return tA(t,n,()=>Dc(e))}function EP(e,t,n){return nT(e,n,"stabilizeSignatureMs")===nT(t,n,"stabilizeSignatureMs")}function ev(e){return{reusedNodeCount:0,dirtyStartIndex:e>0?0:-1,stablePrefixNodeCount:0,dirtyTailNodeCount:e}}function iT(e,t,n){return e<0?0:Math.max(t.length,n.length)-e}function oT(e){return e.__markstreamHasCustomParserExtensions===!0||(function(t){var n;return Number((n=t.__markstreamRegisteredPluginCount)!=null?n:0)>0})(e)}function vNe(e,t){return e.length===t.length&&e===t}function nA(e,t,n=0){if(n>=4)return null;if(e.type!==t.type)return!1;const i=e,o=t,s=Object.keys(i).filter(c=>c!=="type"&&c!=="children").sort(),r=Object.keys(o).filter(c=>c!=="type"&&c!=="children").sort();if(s.length!==r.length)return!1;for(let c=0;c{i=nA(e,t)}),i??EP(e,t,n)}function bNe(e,t){const n={};for(const i of dNe){const o=e[i],s=t?.[i];typeof o=="number"&&(n[i]=o-(typeof s=="number"?s:0))}return n}function ANe(e,t){var n;const i=tE(t.instanceMsgId),o=new Map,s=(n=t.smoothStreamingEnabled)!=null?n:F(()=>!1),r=K(t.renderContent.value);let l=[],a="",u="",c="",d=!1;const h=(function(){let H="",O=0,R=!1,j=!1,$=!1,W=!1;function P(){H="",O=0,R=!1,j=!1,$=!1,W=!1}function Z(ae){let V=!1;for(let Y=0;Y{if(!ae||!V.startsWith(ae)||V.length<=ae.length)return P(),[!0,0];let Y=0;H!==ae&&(P(),Z(ae),Y=ae.length);const oe=V.slice(ae.length),q=Z(oe);return H=V,[q,Y+oe.length]}})();let p,g=0,m=0,k=Zl(),w=-1,y=0;function b(H){w=Number.isInteger(H)?H:0,y+=1}function A(){p&&(clearTimeout(p),p=void 0)}function T(){A();const H=t.renderContent.value;r.value!==H&&(r.value=H),k=Zl()}Pe([t.renderContent,t.effectiveFinal,s],([H,O,R])=>{r.value!==H&&(!R||O||(function(j,$){if(!j&&$||$.length<=80||$.length\s*|`{3,}|~{3,})/.test(W))||W.endsWith(` +`)&&!(function(P){const Z=eT(P);if(tT(Z))return!1;const ae=SP(Z);return ae.length>=2&&ae.some(V=>V.trim())})($))})(r.value,H)?T():(function(){if(m+=1,p)return;const j=Math.max(0,(function($){const W=$.parseCoalesceMs;return typeof W=="number"&&Number.isFinite(W)&&W>=0?W:80})(e)-(Zl()-k));j<=0?T():p=setTimeout(T,j)})())},{flush:"sync",immediate:!0}),Bc(A);const S=F(()=>{var H,O,R,j;return Awe(e.customHtmlTags,(H=e.parseOptions)==null?void 0:H.customHtmlTags,(j=(R=(O=t.customComponentsMap)==null?void 0:O.value)!=null?R:{},Object.entries(j).map(([$,W])=>{const P=zl($);return W==null||!P||Cg(P)||Bz.has(P)||vg.has(P)?"":P}).filter(Boolean)))}),x=F(()=>{const{key:H,tags:O}=Cwe(S.value);if(!H)return i;const R=o.get(H);if(R)return R;const j=tE(t.instanceMsgId,{customHtmlTags:O});return o.set(H,j),j}),_=F(()=>{const H=x.value;if(!e.customMarkdownIt)return H;const O=e.customMarkdownIt(H);return H.__markstreamHasCustomParserExtensions=!0,O.__markstreamHasCustomParserExtensions=!0,O}),L=F(()=>{var H,O;const R=(H=e.parseOptions)!=null?H:{},j=t.effectiveFinal.value,$=S.value,W=j!=null,P=$.length>0;return W||P||R.streamParse==null?Mt(Mt(An(Mt({},R),{streamParse:(O=R.streamParse)==null||O}),W?{final:j}:{}),P?{customHtmlTags:$}:{}):R}),M=F(()=>{var H;return new Set(((H=L.value.customHtmlTags)!=null?H:[]).map(O=>String(O).trim().toLowerCase()).filter(Boolean))}),N=F(()=>XE(L.value,_.value,e.customMarkdownIt,{includeFinal:!0})),I=F(()=>XE(L.value,_.value,e.customMarkdownIt,{includeFinal:!1}));Pe([N,I],([H,O],[R,j])=>{R&&(H===R&&O===j||(T(),O!==j&&(l=[],c="")))},{flush:"sync"});const z=F(()=>{var H,O,R,j,$,W,P,Z,ae,V,Y;if((H=e.nodes)!=null&&H.length)return l=[],c="",b(0),St(e.nodes.slice());const oe=r.value;if(!oe)return l=[],c="",b(-1),[];const q=t.debugPerformanceEnabled.value,ne=q?Zl():0,ie=_.value,pe=N.value,Ne=I.value;a&&pe!==a&&(function(ut){var _t,Ct;(Ct=(_t=ut.stream)==null?void 0:_t.reset)==null||Ct.call(_t)})(ie),u&&Ne!==u&&(l=[],c="");const te=Object.keys((R=(O=t.customComponentsMap)==null?void 0:O.value)!=null?R:{}).length>0||typeof L.value.postTransformNodes=="function";te!==d&&(l=[],c="");const be=!te&&l.length>0&&oe.startsWith(c)&&Ne===u,Q=q?JE(ie):null,ue=q?{}:void 0,Ae=oT(ie),se=!Ae&&!te,re=Mt(Mt(An(Mt({},L.value),{__reuseStableTopLevelNodes:se}),Ae?{__disableStreamParse:!0}:{}),ue?{__timing:ue}:{}),G=OO(oe,ie,re),le=q?Zl():0,ge=q?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let ke,Ie=q?ev(G.length):void 0,Oe=0,we=0,Be=0;if(be){const ut=q?Zl():0,[_t,Ct]=(function(Vt){var nn,gt;const[Le,ze]=Vt.scanGlobalReferenceAppend(Vt.previousContent,Vt.content),Ye=Vt.parseOptions;return[Vt.previousDirtyStartIndex>0&&Ye.final!==!0&&!Vt.customMarkdownIt&&!oT(Vt.md)&&!Le&&typeof Ye.preTransformTokens!="function"&&typeof Ye.postTransformTokens!="function"&&typeof Ye.postTransformNodes!="function"&&((gt=(nn=Ye.customHtmlTags)==null?void 0:nn.length)!=null?gt:0)===0?Vt.previousDirtyStartIndex:0,ze]})({content:oe,previousContent:c,previousDirtyStartIndex:w,parseOptions:L.value,customMarkdownIt:e.customMarkdownIt,md:ie,scanGlobalReferenceAppend:h});Be=Ct;const $t=_t<=0;if(ge){const Vt=(function(nn,gt,Le,ze={}){var Ye;if(!gt.length)return{nodes:nn,metrics:ev(nn.length)};const Tt=(Ye=ze.scanStartIndex)!=null?Ye:0,on=ze.reuseDirtyTail!==!1,jt=(function(mn,zn,He,st=0){const et=Math.min(mn.length,zn.length);for(let Nt=Math.min(et,Math.max(0,st));NtDc(ut[$t]))})(ke,ge,we):(function(ut,_t=0){for(let Ct=Math.max(0,_t);Ct(($=Q?.total)!=null?$:0);t.logPerf(_t?"parse(stream)":"parse(sync)",Mt(Mt(Mt({rendererId:t.instanceMsgId,ms:Math.round(Zl()-ne),nodes:ke.length,contentLength:oe.length,parseCommitCount:g,parseCoalescedCount:m,nodeReuseMs:tt,referenceDefinitionScanChars:Be,signatureMs:(W=ge?.signatureMs)!=null?W:0,stabilizeSignatureMs:(P=ge?.stabilizeSignatureMs)!=null?P:0,primeSignatureMs:(Z=ge?.primeSignatureMs)!=null?Z:0,signatureCallCount:(ae=ge?.signatureCallCount)!=null?ae:0,stabilizeSignatureCallCount:(V=ge?.stabilizeSignatureCallCount)!=null?V:0,primeSignatureCallCount:(Y=ge?.primeSignatureCallCount)!=null?Y:0,stabilizeMs:Oe},Ie??{}),ue?Object.fromEntries(fNe.map(Ct=>{var $t;return[Ct,($t=ue[Ct])!=null?$t:0]})):{}),ut?{streamMode:ut.lastMode,streamDelta:bNe(ut,Q),streamStats:ut}:{}))}return St(ke)});return{effectiveCustomHtmlTags:S,effectiveCustomHtmlTagsSet:M,mdBase:x,mdInstance:_,mergedParseOptions:L,getParsedNodesDirtyStartIndex:()=>w,getParsedNodesRevision:()=>y,parsedNodes:z}}function CNe(e){const{isClient:t}=e,n=K(new Set),i=new Map,o=new Map,s=new Map;function r(u){if(!t)return;const c=s.get(u);c!=null&&(window.clearTimeout(c),s.delete(u))}function l(){if(t)for(const u of s.values())window.clearTimeout(u);s.clear()}function a(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:i,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:s,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,c=!0){var d;c&&r(u),(function(h,p){if((m=(g=e.shouldTrackVisibleNodeIndices)==null?void 0:g.call(e))!=null&&!m)return;var g,m;const k=n.value,w=k.has(h);if(p){if(w)return;const b=new Set(k);return b.add(h),void(n.value=b)}if(!w)return;const y=new Set(k);y.delete(h),n.value=y})(u,c),c&&((d=e.onNodeMarkedVisible)==null||d.call(e,u))},resetNodeVisibleState:a,cleanupNodeVisibility:function(u){var c;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[h,p]of o.entries())h{const c=o.getSnapshot();t.value=c.source,n.value=c.visible,i.value=c.done},r=o.subscribe(s);s();const l=F(()=>Math.max(0,t.value.length-n.value.length)),a=F(()=>l.value===0),u=F(()=>i.value&&a.value);return Y0()&&Bc(()=>{r(),o.destroy()}),{source:t,visible:n,done:i,final:u,caughtUp:a,pendingChars:l,enqueue:c=>o.enqueue(c),finish:c=>o.finish(c),flush:()=>o.flush(),reset:c=>o.reset(c),pause:()=>o.pause(),resume:()=>o.resume()}}const xNe={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},sT=/auto|scroll|overlay/i;function SNe(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return sT.test(t)||sT.test(n)}function _Ne(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const MNe={class:"m-0 p-0"},INe=["data-probe"],ENe=Ci(Xe(An(Mt({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(i){var o,s;return(s=(o=t.headingNodes)==null?void 0:o[i])!=null?s:null}return(i,o)=>(v(),E("div",{class:"height-estimation-probes",style:Kt({width:`${e.width}px`}),"aria-hidden":"true"},[C("div",{ref:s=>e.setParagraphWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[U(f(Jd),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),C("div",{ref:s=>e.setListItemWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[C("ul",MNe,[U(f(Ph),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),C("div",{ref:s=>e.setListWrapper(s),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[U(f(jh),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(v(),E(Ee,null,pt(6,s=>C("div",{key:`probe-heading-${s}`,ref_for:!0,ref:r=>e.setHeadingWrapper(s,r),class:Fe(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${s}`},[U(f(B9),{node:n(s),"index-key":`probe-heading-${s}`},null,8,["node","index-key"])],10,INe)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),rT=Xe({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=F(()=>{var n,i;return fy((i=kh(e.estimatedPreviewHeightPx))!=null?i:cy(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return yn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?yn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[yn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[yn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),yn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),yn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>yn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,yn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[yn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),yn("div",{class:"absolute inset-0"},[yn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),lT=Xe({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=F(()=>{var n,i;return dy((i=kh(e.estimatedPreviewHeightPx))!=null?i:uy(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return yn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?yn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[yn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[yn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),yn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>yn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[yn("span",{class:"action-icon block"})])))]):null,yn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[yn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),yn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),TNe={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function Ms(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const LNe=["data-custom-id"],NNe=["data-node-index","data-node-type"],aT="typewriter-simple-cursor-target",TP=Ci(Xe(An(Mt({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const i=e,o=n;function s(B){if(!(typeof Event<"u"&&B instanceof Event))return typeof B=="string"&&o("copy-code",B),void o("copy",B)}const r=os(),l=hn("markstreamNestedRendererProps",void 0);function a(B){const J=r?.vnode.props;return!!J&&(Object.prototype.hasOwnProperty.call(J,B)||Object.prototype.hasOwnProperty.call(J,String(B).replace(/[A-Z]/g,fe=>`-${fe.toLowerCase()}`)))}function u(B){var J,fe;const he=i[B];return a(B)?he:(fe=(J=l?.value)==null?void 0:J[B])!=null?fe:he}const c=F(()=>{return(B=u("mode"))==="chat"||B==="minimal"||B==="docs"?B:"docs";var B}),d=F(()=>ZE(u("typewriter"))),h=F(()=>d.value!=="off"),p=F(()=>u("domMode")==="minimal"?"minimal":"full"),g=F(()=>{return(B={mode:c.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":B.codeRenderer==="pre"||B.codeRenderer==="shiki"||B.codeRenderer==="monaco"?B.codeRenderer:B.renderCodeBlocksAsPre===!1||B.mode==="docs"?"monaco":"pre";var B}),m=F(()=>TNe[c.value]),k=F(()=>{var B;return(B=u("showTooltips"))!=null?B:m.value.showTooltips}),w=F(()=>{var B;return(B=u("fade"))!=null?B:m.value.fade}),y=F(()=>{var B;return(B=u("batchRendering"))!=null?B:m.value.batchRendering}),b=F(()=>{var B;return(B=u("initialRenderBatchSize"))!=null?B:m.value.initialRenderBatchSize}),A=F(()=>{var B;return(B=u("renderBatchSize"))!=null?B:m.value.renderBatchSize}),T=F(()=>{var B;return(B=u("renderBatchDelay"))!=null?B:m.value.renderBatchDelay}),S=F(()=>{var B;return(B=u("renderBatchBudgetMs"))!=null?B:m.value.renderBatchBudgetMs}),x=F(()=>{var B;return(B=u("renderBatchIdleTimeoutMs"))!=null?B:m.value.renderBatchIdleTimeoutMs}),_=F(()=>{var B;return(B=u("deferNodesUntilVisible"))!=null?B:m.value.deferNodesUntilVisible}),L=F(()=>{var B;return(B=u("maxLiveNodes"))!=null?B:m.value.maxLiveNodes}),M=F(()=>{var B;return(B=u("liveNodeBuffer"))!=null?B:m.value.liveNodeBuffer}),N=F(()=>{var B;return(B=u("nodeVirtual"))!=null?B:m.value.nodeVirtual}),I={get content(){return i.content},get nodes(){return i.nodes},get final(){return i.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return i.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return p.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return k.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return i.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return i.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return w.value},get batchRendering(){return y.value},get initialRenderBatchSize(){return b.value},get renderBatchSize(){return A.value},get renderBatchDelay(){return T.value},get renderBatchBudgetMs(){return S.value},get renderBatchIdleTimeoutMs(){return x.value},get deferNodesUntilVisible(){return _.value},get maxLiveNodes(){return L.value},get liveNodeBuffer(){return M.value},get nodeVirtual(){return N.value},get virtualScroll(){return i.virtualScroll},get renderAsFragment(){return i.renderAsFragment}};function z(B){o("height-change",B)}function H(B){o("virtual-state-change",B)}function O(B){o("anchor-change",B)}const R=K(),j=K(null),$=K(null),W=K(null),P=jo({1:null,2:null,3:null,4:null,5:null,6:null}),Z=K(!1),ae=new Map,V=K(0),Y=K(0),oe=K({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function q(B,J){return typeof B!="string"?J:B.trim()||J}function ne(B){const J=Number(B);return Number.isFinite(J)&&J>0?Math.max(1,Math.trunc(J)):640}const ie=F(()=>{var B;const J=(B=I.viewportPriorityOptions)!=null?B:{},fe=q(J.rootMargin,ff);return{rootMargin:fe,heavyBlockMargin:q(J.heavyBlockMargin,fe),maxTargets:ne(J.maxTargets)}}),pe=F(()=>{var B;return(B=ie.value.rootMargin)!=null?B:ff}),Ne=F(()=>{var B;return(B=ie.value.maxTargets)!=null?B:640});function te(){var B,J;if(((B=i.virtualScroll)==null?void 0:B.enabled)!==!0)return null;const fe=(J=i.virtualScroll)==null?void 0:J.scrollRoot;return be(typeof fe=="function"?fe():fe)}function be(B){return B?typeof HTMLElement<"u"&&B instanceof HTMLElement?B:typeof B=="object"&&"value"in B?be(B.value):typeof B=="object"&&"$el"in B?be(B.$el):null:null}oi(hP,ie);const{isClient:Q,renderAsFragment:ue,debugPerformanceEnabled:Ae,resolvedShowTooltips:se,resolvedHtmlPolicy:re,inheritedSmoothStreaming:G,ownsTypewriterCursor:le}=(function(B){const J=typeof window<"u",fe=r1(),he=hn("markstreamHtmlPolicy",void 0),Ce=hn("markstreamTypewriterCursor",void 0),De=hn("markstreamSmoothStreaming",void 0),We=F(()=>B.renderAsFragment===!0),Ze=F(()=>!!(B.debugPerformance&&J&&typeof console<"u")),lt=F(()=>{var rt;if(typeof B.showTooltips=="boolean")return B.showTooltips;const qe=(rt=fe.showTooltips)!=null?rt:fe["show-tooltips"];return qe===""||qe===!0||qe==="true"||qe!==!1&&qe!=="false"&&void 0}),Ge=F(()=>{var rt,qe;return(qe=(rt=B.htmlPolicy)!=null?rt:he?.value)!=null?qe:"safe"}),nt=F(()=>Ce?.value!==!0);return{isClient:J,renderAsFragment:We,debugPerformanceEnabled:Ze,resolvedShowTooltips:lt,resolvedHtmlPolicy:Ge,inheritedSmoothStreaming:De,inheritedTypewriterCursor:Ce,ownsTypewriterCursor:nt}})(I),{resolveViewportRoot:ge,resolveScrollContainer:ke,isReverseFlexScrollRoot:Ie,getNormalizedScrollTop:Oe,getOffsetTopWithinRoot:we}=(function(B,J){function fe(){var Ze,lt;return(lt=(Ze=J.scrollRoot)==null?void 0:Ze.call(J))!=null?lt:null}function he(Ze){if(typeof window>"u")return null;const lt=fe();if(lt)return lt;const Ge=Ze??B.value;if(!Ge)return null;const nt=Ge.ownerDocument||document,rt=nt.scrollingElement||nt.documentElement;let qe=Ge;for(;qe&&qe!==nt.body&&qe!==rt;){if(SNe(window.getComputedStyle(qe))&&_Ne(qe))return qe;qe=qe.parentElement}return null}function Ce(Ze){if(!J.isClient)return!1;try{const lt=window.getComputedStyle(Ze);return!!(lt.display||"").toLowerCase().includes("flex")&&(lt.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function De(Ze,lt,Ge){var nt,rt;if(Ge)return We(lt);const qe=Ze.scrollTop;if(!Ce(Ze))return qe;const it=qe<0?-qe:qe;return Math.max(0,((nt=Ze.scrollHeight)!=null?nt:0)-((rt=Ze.clientHeight)!=null?rt:0))-it}function We(Ze){var lt,Ge,nt,rt,qe;const it=Number((lt=Ze.scrollingElement)==null?void 0:lt.scrollTop),mt=Number((nt=(Ge=Ze.documentElement)==null?void 0:Ge.scrollTop)!=null?nt:0),ht=Number((qe=(rt=Ze.body)==null?void 0:rt.scrollTop)!=null?qe:0);return Math.max(0,Number.isFinite(it)?it:0,Number.isFinite(mt)?mt:0,Number.isFinite(ht)?ht:0)}return{resolveViewportRoot:he,resolveScrollContainer:function(Ze){var lt,Ge,nt,rt;const qe=fe();if(qe)return qe;const it=he((lt=Ze??B.value)!=null?lt:null);if(it)return it;const mt=(rt=(nt=Ze?.ownerDocument)!=null?nt:(Ge=B.value)==null?void 0:Ge.ownerDocument)!=null?rt:typeof document<"u"?document:null;return mt?.scrollingElement||mt?.documentElement||null},isReverseFlexScrollRoot:Ce,getNormalizedScrollTop:De,getOffsetTopWithinRoot:function(Ze,lt){const Ge=lt.ownerDocument||Ze.ownerDocument||document;if((function(it,mt){return it===mt.documentElement||it===mt.body||it===mt.scrollingElement})(lt,Ge))return Ze.getBoundingClientRect().top+We(Ge);const nt=lt.getBoundingClientRect(),rt=Ze.getBoundingClientRect(),qe=De(lt,Ge,!1);return rt.top-nt.top+qe}}})(R,{isClient:Q,scrollRoot:te});oi("markstreamShowTooltips",se),oi("markstreamHtmlPolicy",re),oi("markstreamTypewriter",h),oi("markstreamFade",F(()=>I.fade!==!1)),oi("markstreamTypewriterCursor",F(()=>!0)),oi("markstreamTextStreamState",ae),oi("markstreamStreamVersion",V),oi("markstreamParseOptions",F(()=>I.parseOptions)),oi("markstreamCustomMarkdownIt",F(()=>I.customMarkdownIt));const{smoothStreamingEnabled:Be,renderContent:tt,requestedFinal:ut,effectiveFinal:_t}=(function(B,J){const fe=wNe(Mt(Mt({},xNe),B.smoothStreamingOptions)),he=F(()=>{var qe,it,mt;return B.smoothStreaming!==!1&&!((qe=B.nodes)!=null&&qe.length)&&(B.smoothStreaming===!0||!((it=J.inheritedSmoothStreaming)!=null&&it.value))&&(B.smoothStreaming===!0||ZE(B.typewriter)!=="off"||((mt=B.maxLiveNodes)!=null?mt:0)<=0)}),Ce=K(!J.isClient||B.smoothStreaming===!0);cn(()=>{Ce.value=!0});const De=F(()=>Ce.value&&he.value),We=F(()=>{var qe;return De.value?fe.visible.value:(qe=B.content)!=null?qe:""}),Ze=F(()=>{var qe,it;const mt=(qe=B.parseOptions)!=null?qe:{};return(it=B.final)!=null?it:mt.final}),lt=F(()=>{const qe=Ze.value;return De.value&&qe!=null?!!qe&&fe.caughtUp.value:qe});let Ge=0,nt=!1;function rt(){Ge=0,nt=!1}return Pe([()=>B.content,()=>B.nodes,De,Ze],([qe,it,mt,ht])=>{if(it?.length)return rt(),void fe.reset("");const Dt=qe??"";if(!mt)return rt(),fe.reset(Dt),void(ht&&fe.finish({flush:!0}));const At=fe.source.value;if(Dt){if(Dt!==At)if(Dt.startsWith(At)){const qt=Dt.slice(At.length),Zt=fe.pendingChars.value;qt.length<=8?(Ge++,nt||Ge>=2&&Zt<=8?(nt=!0,fe.reset(Dt)):fe.enqueue(qt)):(rt(),fe.enqueue(qt))}else rt(),fe.reset(Dt)}else rt(),fe.reset("");ht&&fe.finish()},{immediate:!0}),{smoothStream:fe,smoothStreamingEligible:he,smoothStreamingEnabled:De,renderContent:We,requestedFinal:Ze,effectiveFinal:lt}})(I,{isClient:Q,inheritedSmoothStreaming:G}),Ct=ut.value===!0;oi("markstreamSmoothStreaming",Be);const $t=K(!1),Vt=K(!1),nn=K(!1);let gt="",Le=!1,ze=null;function Ye(){Q&&ze!=null&&(window.clearTimeout(ze),ze=null)}function Tt(){$t.value=!1,Ye()}function on(B,J){if(!Ae.value)return;const fe=(function(){if(!Ae.value)return null;const he=zn(jt),Ce=zn(kn),De=Math.max(mn,Ce);if(he<=0&&De<=0)return null;const We={total:he,maxPerFrame:De,byLabel:(Ze=jt,Object.fromEntries(Array.from(Ze.entries()).sort((lt,Ge)=>Ge[1]-lt[1]||lt[0].localeCompare(Ge[0]))))};var Ze;return jt.clear(),kn.clear(),mn=0,We})();console.info(`[markstream-vue][perf] ${B}`,fe?An(Mt({},J),{layoutReads:fe}):J)}Pe([()=>I.indexKey,()=>I.customId],()=>{var B,J;Tt(),Vt.value=!1,nn.value=!((B=i.nodes)!=null&&B.length)&&ut.value!==!0&&!!i.content,gt=(J=tt.value)!=null?J:"",Le=gt.length>0},{flush:"sync"}),Pe([()=>i.content,()=>i.nodes,ut],([B,J,fe])=>{!J?.length&&fe!==!0&&B&&(nn.value=!0)},{flush:"sync",immediate:!0}),Pe([tt,()=>i.nodes,ut],([B,J,fe])=>{const he=B??"";return J?.length||fe===!0?(Tt(),Vt.value=!1,gt=he,void(Le=!0)):(he.length>0&&(nn.value=!0),Le?(gt&&he.length>gt.length&&he.startsWith(gt)?($t.value=!0,Vt.value=!0,Q&&(Ye(),ze=window.setTimeout(()=>{var Ce;ze=null,_t.value===!0||(Ce=i.nodes)!=null&&Ce.length||($f(),$t.value=!1,Qa())},1200))):(he.length"u")return null;const De=window;if(De.__markstreamLayoutReadPerformance)return De.__markstreamLayoutReadPerformance;const We={total:0,maxPerFrame:0,byLabel:{}};return De.__markstreamLayoutReadPerformance=We,We})();Ce&&(Ce.total=Number(Ce.total||0)+1,Ce.byLabel[he]=Number(Ce.byLabel[he]||0)+1,Ce.currentFrameTotal=Number(Ce.currentFrameTotal||0)+1,Ce.frameScheduled||(Ce.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>st(Ce),0):queueMicrotask(()=>st(Ce)):window.requestAnimationFrame(()=>st(Ce))))})(B),bn||(bn=!0,Q&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(He):typeof queueMicrotask!="function"?setTimeout(He,0):queueMicrotask(He)))}function Nt(B,J){return et(B),J()}const Lt=I.customId?`renderer-${I.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,qn=(function(B){const J=new Map;return{scope:B,cache:J,clear:()=>J.clear()}})(Lt),So=Lt;oi(AP,qn);const Yn=ss(()=>I.customId),{effectiveCustomHtmlTagsSet:Ir,mergedParseOptions:_o,parsedNodes:It,getParsedNodesDirtyStartIndex:ms,getParsedNodesRevision:Er}=ANe(I,{instanceMsgId:Lt,renderContent:tt,effectiveFinal:_t,smoothStreamingEnabled:Be,debugPerformanceEnabled:Ae,customComponentsMap:Yn,logPerf:on});Pe(It,()=>{$t.value||qn.clear(),V.value+=1},{immediate:!0});const go=F(()=>({customId:I.customId,customHtmlTags:_o.value.customHtmlTags,parseOptions:I.parseOptions,customMarkdownIt:I.customMarkdownIt,htmlPolicy:re.value,viewportPriority:I.viewportPriority,viewportPriorityOptions:ie.value,mode:c.value,domMode:I.domMode,codeRenderer:g.value,codeBlockStream:I.codeBlockStream,codeBlockDarkTheme:I.codeBlockDarkTheme,codeBlockLightTheme:I.codeBlockLightTheme,codeBlockMonacoOptions:I.codeBlockMonacoOptions,renderCodeBlocksAsPre:I.renderCodeBlocksAsPre,codeBlockMinWidth:I.codeBlockMinWidth,codeBlockMaxWidth:I.codeBlockMaxWidth,codeBlockProps:I.codeBlockProps,mermaidProps:I.mermaidProps,d2Props:I.d2Props,infographicProps:I.infographicProps,showTooltips:se.value,themes:I.themes,langs:I.langs,isDark:I.isDark,typewriter:h.value,smoothStreamingOptions:I.smoothStreamingOptions,parseCoalesceMs:I.parseCoalesceMs,fade:I.fade}));oi("markstreamNestedRendererProps",go);const mo=F(()=>It.value),vs=F(()=>It.value.length),_i=K(null),Mo=K(null),ys=K(null),Tn=K(null),Un=i.indexKey!=null&&String(i.indexKey).startsWith("list-item-"),Kn=!Un&&I.customId?WE(I.customId):null,Pi=F(()=>Kn?(wk.value,WE(I.customId)):null),Io=F(()=>{var B;return!!(!ue.value&&I.customId&&!Un&&((B=Pi.value)!=null&&B.enabled))}),Ki=F(()=>!!(Q&&Io.value)),Ti=F(()=>{var B;return!!(!ue.value&&((B=i.virtualScroll)!=null&&B.enabled))}),Qs=F(()=>Ti.value),Li=K(!1);cn(()=>{Li.value=!0});const an=F(()=>!!(Q&&Ti.value));oi("markstreamHostScrollManaged",an);const to=F(()=>!!(Li.value&&an.value)),Jn=F(()=>Ki.value||an.value),Wo=F(()=>Ki.value||to.value),Mn=F(()=>{var B;return Jn.value&&((B=Pi.value)==null?void 0:B.textEstimation)!==!1});function Ni(){const B=Y.value||Nt("getMeasuredContainerWidth.clientWidth",()=>{var J;return((J=R.value)==null?void 0:J.clientWidth)||0});return Number.isFinite(B)&&B>0?B:0}const wi=F(()=>{const B=Ni();return B>0?Math.max(1,Math.round(B)):640}),$o=F(()=>{var B,J;return!(_t.value!==!0||Ti.value||c.value!=="chat"&&c.value!=="minimal"||a("maxLiveNodes")||a("liveNodeBuffer")||(B=i.nodes)!=null&&B.length||nn.value||!(((J=I.maxLiveNodes)!=null?J:0)<=0))}),$s=F(()=>{var B;return $o.value?50:Math.max(1,(B=I.maxLiveNodes)!=null?B:320)}),Vi=F(()=>{var B;return $o.value?16:Math.max(0,(B=I.liveNodeBuffer)!=null?B:60)}),Cn=F(()=>{var B;return!ue.value&&I.nodeVirtual!==!1&&!(((B=I.maxLiveNodes)!=null?B:0)<=0&&!$o.value)&&(I.nodeVirtual===!0?It.value.length>0:It.value.length>$s.value)}),Rs=F(()=>Cn.value||Ki.value||an.value),qo=F(()=>I.viewportPriority!==!1),ar=F(()=>!!qo.value&&!Z.value);var ks;ks=F(()=>qo.value),oi(pP,ks);const yi=F(()=>{var B;return!(ue.value||I.deferNodesUntilVisible===!1||((B=I.maxLiveNodes)!=null?B:0)<=0||Cn.value||It.value.length>900||I.viewportPriority===!1)}),Vn=nTe(B=>{var J;return ge((J=B??R.value)!=null?J:null)},qo),{requestFrame:ji,cancelFrame:Fi,hasIdleCallback:bs,isTestEnv:As}=(function(B){const J=B.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,fe=B.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,he=B.isClient&&typeof window.requestIdleCallback=="function",Ce=(function(){var De;if(typeof globalThis>"u"||!("process"in globalThis))return;const We=(De=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:De.value;return We?.env})();return{requestFrame:J,cancelFrame:fe,hasIdleCallback:he,isTestEnv:Ce?.NODE_ENV==="test"}})({isClient:Q}),Eo=F(()=>_t.value===!0&&!Ti.value),{resolvedBatchSize:Tr,resolvedInitialBatch:Lr,batchingEnabled:jl,incrementalRenderingActive:Nr,renderedCount:Di,previousRenderContext:Xn,adaptiveBatchSize:Cs,previousBatchConfig:Uo}=(function(B,J){var fe;const he=F(()=>{var rt;const qe=Math.trunc((rt=B.renderBatchSize)!=null?rt:80);return Number.isFinite(qe)?Math.max(0,qe):0}),Ce=F(()=>{var rt;const qe=Math.trunc((rt=B.initialRenderBatchSize)!=null?rt:he.value);return Number.isFinite(qe)?Math.max(0,qe):he.value}),De=F(()=>!J.renderAsFragment.value&&B.batchRendering!==!1&&he.value>0&&J.isClient&&!J.isTestEnv),We=K(0),Ze=K({key:B.indexKey,total:0}),lt=K(Math.max(1,he.value||1)),Ge=F(()=>{var rt,qe,it;return De.value&&!((rt=J.continuousStreaming)!=null&&rt.value)&&!((qe=J.forceFullRenderFinalContent)!=null&&qe.value)&&((it=B.maxLiveNodes)!=null?it:0)<=0}),nt=K({batchSize:he.value,initial:Ce.value,delay:(fe=B.renderBatchDelay)!=null?fe:16,enabled:Ge.value});return{resolvedBatchSize:he,resolvedInitialBatch:Ce,batchingEnabled:De,incrementalRenderingActive:Ge,renderedCount:We,previousRenderContext:Ze,adaptiveBatchSize:lt,previousBatchConfig:nt}})(I,{isClient:Q,isTestEnv:As,renderAsFragment:ue,forceFullRenderFinalContent:Eo,continuousStreaming:F(()=>Vt.value&&_t.value!==!0)}),On=F(()=>{var B;return!ue.value&&I.batchRendering!==!1&&Tr.value>0&&!As&&((B=I.maxLiveNodes)!=null?B:0)<=0&&!Eo.value}),Hi=F(()=>On.value),Wi=F(()=>Jn.value||Hi.value),rs=F(()=>{var B;return Wi.value&&((B=Pi.value)==null?void 0:B.codeBlockEstimation)!==!1}),jn=new Map,Ke=new Map,Ue=new WeakMap;let yt=null;const xt=new WeakMap,rn=new Map,Zi=[];let Gi=[],oo=[],qi=-1;const vo=ha(Zi),so=new Set,Ro=K(0);let ot=0;const xe=K(0),je=F(()=>(xe.value,Array.from(jn.entries()).sort((B,J)=>B[0]-J[0]))),Dn=K(null),vn=K(null);let ii,ws=null,xs=0,ro=null;function ai(){ii.markFallbackHeightPrefixDirty()}function Ys(B){return ii.getFallbackNodeHeight(B)}function Ss(B,J){return ii.estimateHeightRange(B,J)}function el(B){return ii.estimateIndexForOffset(B)}const{activeRestoreAnchor:ur,getRelativeScrollTopWithinContainer:tl,setRelativeScrollTopWithinContainer:ee,resolveAnchorOffset:me,clearRestoreReconcile:Me,scheduleRestoreReconcile:Re,captureRestoreAnchor:Qe,restoreAnchor:Je,getAnchorDrift:ft}=(function(B){const{isClient:J,containerRef:fe,parsedNodeCount:he,requestFrame:Ce,cancelFrame:De,resolveScrollContainer:We,getNormalizedScrollTop:Ze,getOffsetTopWithinRoot:lt,isReverseFlexScrollRoot:Ge,estimateIndexForOffset:nt,estimateHeightRange:rt,getFallbackNodeHeight:qe,clamp:it}=B,mt=K(null);let ht=null,Dt=[];function At(){const ln=We(),Fn=fe.value;if(!ln||!Fn)return null;const Pn=ln.ownerDocument||Fn.ownerDocument||document;if(ln===Pn.documentElement||ln===Pn.body||ln===Pn.scrollingElement){const Mi=Fn.getBoundingClientRect();return Math.max(0,-Mi.top)}return Math.max(0,Ze(ln,Pn,!1)-lt(Fn,ln))}function qt(ln){var Fn;const Pn=We(),Mi=fe.value;if(!Pn||!Mi)return;const Os=Math.max(0,ln),_s=Pn.ownerDocument||Mi.ownerDocument||document,Ul=_s.defaultView||(typeof window<"u"?window:null);if(Pn===_s.documentElement||Pn===_s.body||Pn===_s.scrollingElement){const ba=Ze(Pn,_s,!0)+Mi.getBoundingClientRect().top;return void((Fn=Ul?.scrollTo)==null||Fn.call(Ul,0,Math.max(0,ba+Os)))}KE(Pn,_s,lt(Mi,Pn)+Os,{isReverseFlexScrollRoot:ba=>{var R1;return(R1=Ge?.(ba))!=null&&R1},getNormalizedScrollTop:Ze})}function Zt(ln){const Fn=he.value,Pn=it(ln.nodeIndex,0,Math.max(0,Fn-1));return rt(0,Pn)+Math.max(0,ln.offsetWithinNodePx)}function sn(){if(ht!=null&&(De?.(ht),ht=null),J)for(const ln of Dt)window.clearTimeout(ln);Dt=[]}function Xt(ln){const Fn=Zt(ln),Pn=At();Pn!=null&&Math.abs(Pn-Fn)<=.5||qt(Fn)}return{activeRestoreAnchor:mt,getRelativeScrollTopWithinContainer:At,setRelativeScrollTopWithinContainer:qt,resolveAnchorOffset:Zt,clearRestoreReconcile:sn,applyRestoreAnchor:Xt,scheduleRestoreReconcile:function(){mt.value&&J&&ht==null&&(ht=Ce?Ce(()=>{ht=null,mt.value&&Xt(mt.value)}):null,ht==null&&mt.value&&Xt(mt.value))},captureRestoreAnchor:function(){const ln=At(),Fn=he.value;if(ln==null||Fn<=0)return null;const Pn=it(nt(ln+1),0,Fn-1),Mi=rt(0,Pn),Os=qe(Pn);return{nodeIndex:Pn,offsetWithinNodePx:it(ln-Mi,0,Math.max(0,Os-1))}},restoreAnchor:function(ln){const Fn=he.value;if(mt.value={nodeIndex:it(ln.nodeIndex,0,Math.max(0,Fn-1)),offsetWithinNodePx:Math.max(0,ln.offsetWithinNodePx)},sn(),Xt(mt.value),J)for(const Pn of[0,120,280,480])Dt.push(window.setTimeout(()=>{mt.value&&Xt(mt.value)},Pn))},getAnchorDrift:function(ln){const Fn=At();return Fn==null?null:Fn-Zt(ln)}}})({isClient:Q,containerRef:R,parsedNodeCount:vs,requestFrame:ji,cancelFrame:Fi,resolveScrollContainer:()=>Dn.value||ke(),getNormalizedScrollTop:Oe,getOffsetTopWithinRoot:we,isReverseFlexScrollRoot:Ie,estimateIndexForOffset:el,estimateHeightRange:Ss,getFallbackNodeHeight:Ys,clamp:zs}),{nodeHeights:vt,heightStats:Pt,heightTreeSize:fn,heightSumTree:dn,heightKnownTree:ui,averageNodeHeight:Ln,resetHeightMeasurements:Sn,pruneHeightMeasurements:fi,rebuildHeightTrees:Ui,recordNodeHeight:Fr,removeNodeHeights:ya,exportHeightCache:ka,importHeightCache:Du,fenwickRangeSum:v1}=(function(B={}){const J=jo({}),fe=jo({total:0,count:0}),he=K(0),Ce=K([]),De=K([]);function We(){for(const qe of Object.keys(J))delete J[Number(qe)];fe.total=0,fe.count=0,he.value=0,Ce.value=[],De.value=[]}function Ze(qe,it,mt){for(let ht=it+1;ht0;ht-=ht&-ht)mt+=qe[ht];return mt}function Ge(qe){he.value=qe;const it=new Array(qe+1).fill(0),mt=new Array(qe+1).fill(0);for(const[ht,Dt]of Object.entries(J)){const At=Number(ht),qt=Number(Dt);!Number.isFinite(At)||At<0||At>=qe||!Number.isFinite(qt)||qt<=0||(Ze(it,At,qt),Ze(mt,At,1))}Ce.value=it,De.value=mt}function nt(qe){if(!Number.isInteger(qe)||qe<0)return!1;const it=J[qe];if(!Number.isFinite(it)||it<=0)return!1;if(delete J[qe],fe.total=Math.max(0,fe.total-it),fe.count=Math.max(0,fe.count-1),he.value>qe){const mt=Ce.value,ht=De.value;mt.length&&ht.length&&(Ze(mt,qe,-it),Ze(ht,qe,-1))}return!0}const rt=F(()=>fe.count>0?Math.max(12,fe.total/fe.count):32);return{nodeHeights:J,heightStats:fe,heightTreeSize:he,heightSumTree:Ce,heightKnownTree:De,averageNodeHeight:rt,resetHeightMeasurements:We,pruneHeightMeasurements:function(qe){if(qe<=0)return void We();let it=0,mt=0;for(const[ht,Dt]of Object.entries(J)){const At=Number(ht),qt=Number(Dt);!Number.isFinite(At)||At<0||At>=qe||!Number.isFinite(qt)||qt<=0?delete J[At]:(it+=qt,mt++)}fe.total=it,fe.count=mt},rebuildHeightTrees:Ge,recordNodeHeight:function(qe,it,mt={}){(function(ht,Dt,At={}){var qt;if(!Number.isFinite(Dt)||Dt<=0)return!1;const Zt=J[ht];if(Zt&&(At.allowShrink===!1&&Dtht){const sn=Ce.value,Xt=De.value;if(sn.length&&Xt.length)if(Zt){const ln=Dt-Zt;ln!==0&&Ze(sn,ht,ln)}else Ze(sn,ht,Dt),Ze(Xt,ht,1)}At.notify!==!1&&((qt=B.onHeightRecorded)==null||qt.call(B))})(qe,it,An(Mt({},mt),{notify:!0}))},removeNodeHeight:function(qe,it={}){var mt;const ht=nt(qe);return ht&&it.notify!==!1&&((mt=B.onHeightRecorded)==null||mt.call(B)),ht},removeNodeHeights:function(qe,it={}){var mt;let ht=0;for(const Dt of qe)nt(Number(Dt))&&ht++;return ht>0&&it.notify!==!1&&((mt=B.onHeightRecorded)==null||mt.call(B)),ht},exportHeightCache:function(){return Object.entries(J).map(([qe,it])=>({index:Number(qe),height:Number(it)})).filter(qe=>Number.isFinite(qe.index)&&qe.index>=0&&Number.isFinite(qe.height)&&qe.height>0).sort((qe,it)=>qe.index-it.index)},importHeightCache:function(qe,it={}){var mt;if(!Array.isArray(qe))return;const ht=he.value;let Dt=!1;if(it.mode!=="merge"){const At=Object.keys(J);if(At.length>0){for(const qt of At)delete J[Number(qt)];Dt=!0}}for(const At of qe){const qt=Number(At.index),Zt=Number(At.height);if(!Number.isInteger(qt)||qt<0||ht>0&&qt>=ht||!Number.isFinite(Zt)||Zt<=0)continue;const sn=J[qt];sn&&Math.abs(sn-Zt)<=1||(J[qt]=Zt,Dt=!0)}Dt&&((function(){let At=0,qt=0;const Zt=he.value;for(const[sn,Xt]of Object.entries(J)){const ln=Number(sn),Fn=Number(Xt);!Number.isFinite(ln)||ln<0||Zt>0&&ln>=Zt||!Number.isFinite(Fn)||Fn<=0?delete J[ln]:(At+=Fn,qt++)}fe.total=At,fe.count=qt})(),ht>0&&Ge(ht),(mt=B.onHeightRecorded)==null||mt.call(B))},fenwickRangeSum:function(qe,it,mt){if(mt<=it)return 0;const ht=lt(qe,mt-1);return it<=0?ht:ht-lt(qe,it-1)}}})({onHeightRecorded:()=>{ai(),an.value&&L1(),ur.value&&Re(),vn.value&&Ff(),Qi("node-resize")}});function ye(B){Number.isInteger(B)&&B>=0&&so.add(B)}function Se(B){for(const J of B)ye(Number(J))}function Ve(B){ot++;let J=!0;try{const fe=B();return J=fe!==!1,fe}finally{ot--,ot===0&&J&&Ro.value++}}function Rt(){Gi=[],oo=[],qi=-1,so.clear(),vo.value=Zi}function Yt(){Rt(),Ve(()=>Sn()),rn.clear()}function wn(B){!Number.isInteger(B)||B<0||B>=It.value.length||rn.set(B,b1(B))}function ei(B,J,fe={}){const he=vt[B];ye(B),Fr(B,J,fe);const Ce=vt[B];return Object.is(he,Ce)?(so.delete(B),!1):(Ce&&Ce>0?wn(B):he&&rn.delete(B),!0)}function Bi(B,J){const fe=Nt("getNodeLayoutHeight.slot.offsetHeight",()=>{var he,Ce;return(Ce=(he=jn.get(B))==null?void 0:he.offsetHeight)!=null?Ce:0});return fe>0?fe:Nt("getNodeLayoutHeight.content.offsetHeight",()=>J.offsetHeight)}function Ko(B,J={}){J.mode!=="merge"?Rt():Se(B.map(fe=>fe.index)),Ve(()=>Du(B,J)),b4()}const ls=F(()=>yi.value&&ar.value),Hl=F(()=>{var B;return!ue.value&&I.batchRendering!==!1&&Tr.value>0&&((B=I.maxLiveNodes)!=null?B:0)<=0}),V9=F(()=>!ue.value&&Ct&&_t.value===!0&&!Cn.value&&!Ti.value&&!Io.value&&!ls.value&&!Hl.value),Za=F(()=>!!Vn&&ls.value),Ng=F(()=>Cn.value||an.value),{focusIndex:Al,liveRange:as,updateLiveRange:Bu}=(function(B,J){const{parsedNodeCount:fe,virtualizationEnabled:he,maxLiveNodesResolved:Ce,liveNodeBufferResolved:De,clamp:We}=J,Ze=De??F(()=>{var nt;return Math.max(0,(nt=B.liveNodeBuffer)!=null?nt:60)}),lt=K(0),Ge=jo({start:0,end:0});return{liveNodeBufferResolved:Ze,focusIndex:lt,liveRange:Ge,updateLiveRange:function(){const nt=fe.value;if(!he.value||nt===0)return Ge.start=0,void(Ge.end=nt);const rt=Math.min(Ce.value,nt),qe=Ze.value,it=We(lt.value-qe,0,Math.max(0,nt-rt));Ge.start=it,Ge.end=Math.min(nt,it+rt)}}})(I,{parsedNodeCount:vs,virtualizationEnabled:Cn,maxLiveNodesResolved:$s,liveNodeBufferResolved:Vi,clamp:zs}),Te=new Map,ct=new Map,at=new Map,Ht=[],Nn=new Map,no=new Set,Js=K(0);let zo=!1;const Wl=F(()=>(Js.value,no.size)),us=new Map,cr=new Map,zA=K(0),Z9=F(()=>{zA.value;let B=0;for(const J of us.values())B+=Math.max(0,J);return B});let nl=null;const Fg=F(()=>{if(!Cn.value)return It.value.length;const B=Vi.value,J=Math.max(as.end+B,Lr.value),fe=Math.min(It.value.length,J);return Math.max(Di.value,fe)});function Dg(){zo||(zo=!0,queueMicrotask(()=>{zo=!1,Js.value+=1}))}function OA(B,J,fe="node-resize"){if(!Q||typeof window>"u")return null;const he=window.setTimeout(()=>{no.delete(he)&&Dg();try{J()}finally{Qi(fe)}},Math.max(0,B));return no.add(he),Dg(),he}function Bg(B){Q&&B!=null&&(no.delete(B)&&Dg(),window.clearTimeout(B))}function PA(){if(Q&&typeof window<"u")for(const B of no)window.clearTimeout(B);no.size&&(no.clear(),Dg()),Ht.length=0,at.clear()}function RH(B){j.value=B}function zH(B){$.value=B}function OH(B){W.value=B}const{cancelScheduledFocusSync:G9,scheduleFocusSync:ql}=(function(B){const{isClient:J,containerRef:fe,virtualizationEnabled:he,requestFrame:Ce,cancelFrame:De,syncFocusToScroll:We}=B;let Ze=null;function lt(){var nt,rt,qe;return(qe=(rt=(nt=fe.value)==null?void 0:nt.ownerDocument)==null?void 0:rt.defaultView)!=null?qe:typeof window<"u"?window:null}function Ge(){if(!Ze)return;const nt=lt();Ze.viaTimeout?nt?nt.clearTimeout(Ze.id):clearTimeout(Ze.id):De?.(Ze.id),Ze=null}return{cancelScheduledFocusSync:Ge,scheduleFocusSync:function(nt={}){if(!he.value)return;if(!J)return void We(!0);if(nt.immediate)return Ge(),void We(!0);if(Ze)return;const rt=()=>{Ze=null,We()};if(Ce)return void(Ze={id:Ce(rt),viaTimeout:!1});const qe=lt();Ze={id:qe?qe.setTimeout(rt,16):setTimeout(rt,16),viaTimeout:!0}}}})({isClient:Q,containerRef:R,virtualizationEnabled:Cn,requestFrame:ji,cancelFrame:Fi,syncFocusToScroll:function(B=!1){var J;if(!Cn.value)return;const fe=Dn.value||ke();if(!fe)return;const he=fe.ownerDocument||((J=R.value)==null?void 0:J.ownerDocument)||document,Ce=he?.defaultView||(typeof window<"u"?window:null),De=fe===he?.documentElement||fe===he?.body,We=It.value.length;if(We<=0)return;if(!De&&We>0&&Ie(fe)){const ht=Nt("syncFocusToScroll.clientHeight",()=>fe.clientHeight||0),Dt=Nt("syncFocusToScroll.scrollTop",()=>fe.scrollTop),At=Dt<0?-Dt:Dt;return void zg(zs((Ze=Math.max(0,At)+.5*Math.max(0,ht),ii.estimateIndexForOffsetFromEnd(Ze)),0,Math.max(0,We-1)),B)}var Ze;const lt=(function(ht,Dt,At,qt){const Zt=R.value;if(!Zt)return null;const sn=qt?0:Nt("syncFocusToScroll.model.root.getBoundingClientRect",()=>ht.getBoundingClientRect().top),Xt=Nt("syncFocusToScroll.model.container.getBoundingClientRect",()=>Zt.getBoundingClientRect().top),ln=Math.max(0,sn-Xt),Fn=qt?Nt("syncFocusToScroll.model.viewport.clientHeight",()=>{var Pn,Mi,Os,_s;return(_s=(Os=(Mi=At?.innerHeight)!=null?Mi:(Pn=Dt.documentElement)==null?void 0:Pn.clientHeight)!=null?Os:ht.clientHeight)!=null?_s:0}):Nt("syncFocusToScroll.model.root.clientHeight",()=>ht.clientHeight);return zs(el(ln+.5*Math.max(0,Fn)),0,Math.max(0,It.value.length-1))})(fe,he,Ce,De);if(lt!=null)return void zg(lt,B);const Ge=De?null:Nt("syncFocusToScroll.root.getBoundingClientRect",()=>fe.getBoundingClientRect()),nt=De?0:Ge.top,rt=De?Nt("syncFocusToScroll.viewport.clientHeight",()=>{var ht,Dt;return(Dt=(ht=Ce?.innerHeight)!=null?ht:fe.clientHeight)!=null?Dt:0}):Ge.bottom,qe=je.value;let it=null,mt=null;for(const[ht,Dt]of qe){if(!Dt)continue;const At=Nt("syncFocusToScroll.slot.getBoundingClientRect",()=>Dt.getBoundingClientRect());At.bottom<=nt||At.top>=rt||(it==null&&(it=ht),mt=ht)}if(it==null||mt==null){const ht=R.value;if(!ht)return;const Dt=De?{top:0}:Nt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>fe.getBoundingClientRect()),At=Nt("syncFocusToScroll.fallback.scrollTop",()=>Oe(fe,he,De)),qt=De?(()=>{const sn=Nt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>ht.getBoundingClientRect()),Xt=(De?0:Dt.top)-sn.top;return Math.max(0,Xt)})():(()=>{const sn=we(ht,fe);return Math.max(0,At-sn)})(),Zt=De?Nt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var sn,Xt,ln,Fn;return(Fn=(ln=(Xt=Ce?.innerHeight)!=null?Xt:(sn=he?.documentElement)==null?void 0:sn.clientHeight)!=null?ln:fe.clientHeight)!=null?Fn:0}):Nt("syncFocusToScroll.fallback.root.clientHeight",()=>fe.clientHeight);return void zg(zs(el(qt+.5*Math.max(0,Zt)),0,Math.max(0,It.value.length-1)),!0)}zg(Math.round((it+mt)/2),B)}}),{visibleNodeIndices:Q9,nodeVisibilityHandles:_f,nodeVisibilityWatchStops:$g,nodeVisibilityFallbackTimers:jA,clearVisibilityFallback:Rg,markNodeVisible:$u,cleanupNodeVisibility:PH,destroyNodeVisibilityState:Y9}=CNe({isClient:Q,shouldTrackVisibleNodeIndices:()=>ls.value,shouldCleanupNodeVisibility:()=>Cn.value,onNodeMarkedVisible:B=>{Cn.value?ql():Al.value=zs(B,0,Math.max(0,It.value.length-1))},onNodeVisibilityCleaned:B=>{jn.delete(B)&&gC()}}),{cleanupScrollListener:HA,setupScrollListener:jH}=(function(B){const{isClient:J,virtualizationEnabled:fe,listenerEnabled:he,scrollRootElement:Ce,resolveScrollContainer:De,scheduleFocusSync:We,onScroll:Ze}=B;let lt=null,Ge=null;function nt(){lt&&(lt(),lt=null),Ge=null,Ce.value=null}function rt(qe){const it=B.getScrollTop?B.getScrollTop(qe):qe.scrollTop;return Math.max(0,Number.isFinite(it)?Math.abs(it):0)}return{cleanupScrollListener:nt,setupScrollListener:function(){if(!J)return;if(!((qe=he?.value)!=null?qe:fe.value))return void nt();var qe;const it=De();if(!it)return void nt();if(Ce.value===it&<)return;nt(),Ge=rt(it);const mt=()=>{if(Ze?.(),fe.value){const ht=(function(Dt){const At=rt(Dt),qt=Ge;Ge=At;const Zt=Math.max(480,.75*(Dt.clientHeight||0));return qt==null?At>Zt?{immediate:!0}:void 0:Math.abs(At-qt)>Zt?{immediate:!0}:void 0})(it);ht?We(ht):We()}};it.addEventListener("scroll",mt,{passive:!0}),Ce.value=it,lt=()=>{it.removeEventListener("scroll",mt)}}}})({isClient:Q,virtualizationEnabled:Cn,listenerEnabled:Ng,scrollRootElement:Dn,resolveScrollContainer:ke,scheduleFocusSync:ql,onScroll:function(){const B=vn.value;if(!B)return;const J=k1();if(!J||(function(he){if(S1()>=xs)return ro=null,!1;const Ce=ro;if(Ce==null)return!0;const De=Math.abs(he.scrollTop-Ce)<=2;return De||(ro=null),De})(J))return;const fe=iC(J);fe!=null?(fe<-32||Math.abs(Math.max(0,fe)-Math.max(0,B.distanceFromBottomPx))>32)&&Nf("restore"):Nf("restore")},getScrollTop:B=>{var J;const fe=B.ownerDocument||((J=R.value)==null?void 0:J.ownerDocument)||document,he=B===fe.documentElement||B===fe.body||B===fe.scrollingElement;return Nt("scrollListener.getScrollTop",()=>Oe(B,fe,he))}});function zg(B,J=!1){const fe=zs(B,0,Math.max(0,It.value.length-1));!J&&Math.abs(fe-Al.value)<=1||(Al.value=fe,Bu())}function zs(B,J,fe){return Math.min(Math.max(B,J),fe)}function J9(B=It.value.length){const J=ms();return!Number.isInteger(J)||J<0?B:zs(J,0,B)}function X9(B){return B?.firstElementChild}function WA(B,J){var fe;return B?(fe=B.matches)!=null&&fe.call(B,J)?B:B.querySelector(J):null}function HH(B,J){B<1||B>6||(P[B]=J)}function qA(){if(!Jn.value)return void(Y.value=0);const B=Nt("updateExperimentContainerWidth.clientWidth",()=>{var J,fe;return(fe=(J=R.value)==null?void 0:J.clientWidth)!=null?fe:0});Y.value=B>0?B:0}let y1=null;function e4(){y1?.disconnect(),y1=null}const UA=Ip("ViewportDeferredMarkdownCodeBlockNode",ia({loader:()=>Ji(null,null,function*(){return(yield Fo(()=>import("./index5-L7WSqVk4.js"),__vite__mapDeps([8,6,7]))).default}),loadingComponent:gy,delay:0,suspensible:!1}),gy);function KA(B){return B===UA}const VA=F(()=>g.value==="pre"?jr:g.value==="shiki"?UA:vk);function ZA(){var B;return((B=I.codeBlockProps)==null?void 0:B.showHeader)!==!1}function GA(B,J,fe){const he=vt[J],Ce=typeof he=="number"&&he>0;if(Mn.value&&!Ce&&!(function(De){return!!Yn.value.paragraph&&(De.type==="paragraph"||De.type==="list_item"||De.type==="list")})(B)){const De=bP(B,fe,oe.value);if(De)return De}if(rs.value&&B.type==="code_block"){const De=(function(We){if(We.type!=="code_block")return null;const Ze=MC(We,Zg(We));return KA(Ze)?"markdown":Ze===jr?"pre":Ze===VA.value||Ze===vk?"monaco":null})(B);if(De==="monaco"||De==="markdown"||De==="pre")return(function(We,Ze){var lt,Ge,nt;if(!We||We.type!=="code_block")return null;const rt=Ze.rendererKind,qe=rt!=="pre"&&Ze.showHeader!==!1,it=!!We.diff;let mt=0,ht=500;if(rt==="monaco"){const At=(lt=Ze.monacoOptions)!=null?lt:{},qt=_k(We,At,Ze.width),Zt=(function(Xt){const ln=typeof Xt?.fontSize=="number"&&Xt.fontSize>0?Xt.fontSize:12;return typeof Xt?.lineHeight=="number"&&Xt.lineHeight>0?Xt.lineHeight:Math.round(1.5*ln)})(At),sn=(function(Xt,ln){var Fn,Pn;const Mi=typeof((Fn=Xt?.padding)==null?void 0:Fn.top)=="number"?Xt.padding.top:ln?0:8,Os=typeof((Pn=Xt?.padding)==null?void 0:Pn.bottom)=="number"?Xt.padding.bottom:ln?0:8;return Math.max(0,Mi)+Math.max(0,Os)})(At,it);ht=typeof At.MAX_HEIGHT=="number"&&At.MAX_HEIGHT>0?At.MAX_HEIGHT:500,mt=Math.round(qt*Zt+sn)}else if(rt==="markdown"){const At=_k(We);mt=Math.round(21*At+32)}else{const At=_k(We);mt=Math.round(28*At),ht=Number.POSITIVE_INFINITY}const Dt=Math.max(1,Math.min(mt,ht));return Mt({kind:"code-block",height:Math.round(Dt+(qe?40:0)),contentHeight:Dt,rendererKind:rt},it&&rt==="monaco"?{diffInline:V7((Ge=Ze.monacoOptions)!=null?Ge:{},(nt=Ze.width)!=null?nt:0)}:{})})(B,{rendererKind:De,monacoOptions:I.codeBlockMonacoOptions,showHeader:ZA(),width:fe})}return null}Zk(()=>{if(Ro.value,ot>0)return;const B=It.value,J=Er();if(!B.length||!Wi.value)return Gi=[],oo=[],qi=-1,so.clear(),void(vo.value=Zi);const fe=Y.value||Nt("estimatedNodeHeights.clientWidth",()=>{var Ge;return((Ge=R.value)==null?void 0:Ge.clientWidth)||0});if(!Number.isFinite(fe)||fe<=0)return Gi=[],oo=[],qi=-1,so.clear(),void(vo.value=Zi);const he=(function(Ge){return[Math.round(Ge),Mn.value,rs.value,oe.value,I.codeBlockMonacoOptions,ZA(),g.value,Yn.value,wk.value]})(fe),Ce=Gi.length<=B.length&&(We=he,(De=oo).length===We.length&&De.every((Ge,nt)=>Object.is(Ge,We[nt])));var De,We;const Ze=Ce&&qi===J?B.length:Ce?J9(B.length):0,lt=Ce?Array.from(so):[];Gi.length=B.length;for(let Ge=Ze;Ge=0&&Gevo.value);ii=(function(B){let J=!0,fe=[0],he="";function Ce(nt){var rt;const qe=B.nodeHeights[nt];if(Number.isFinite(qe)&&qe>0)return qe;const it=B.parsedNodes.value[nt],mt=it?.type,ht=!!((rt=B.hasCustomParagraphComponent)!=null&&rt.call(B)),Dt=B.estimatedNodeHeights.value[nt],At=Dt?.height;if(!(function(Zt,sn,Xt){return!!(Xt&&sn?.kind==="simple-text"&&(Zt==="paragraph"||Zt==="list_item"||Zt==="list"))})(mt,Dt,ht)&&Number.isFinite(At)&&At>0)return At;const qt=cNe(it,B.getContainerWidth()||640);return mt==="heading"||mt==="paragraph"&&qt<=28&&(function(Zt,sn){if(sn)return!1;const Xt=Zt.children;return!Array.isArray(Xt)||!Xt.length||Xt.every(CP)})(it,ht)?qt:Math.max(B.averageNodeHeight.value,qt)}function De(){var nt;const rt=B.parsedNodes.value.length,qe=B.getPrefixCacheKeyParts().join(":");if(!J&&he===qe)return fe;const it=new Array(rt+1);it[0]=0;for(let mt=0;mt=((rt=mt[it])!=null?rt:0))return it-1;let ht=0,Dt=it-1,At=it-1;for(;ht<=Dt;){const qt=ht+Dt>>1;((qe=mt[qt+1])!=null?qe:0)>=nt?(At=qt,Dt=qt-1):ht=qt+1}return At}function Ze(nt,rt){var qe,it;if(nt>=rt)return 0;if(B.heightEstimationActive.value)return(function(Dt,At){var qt,Zt;const sn=B.parsedNodes.value.length,Xt=GE(Math.trunc(Dt),0,sn),ln=GE(Math.trunc(At),Xt,sn);if(Xt>=ln)return 0;const Fn=De();return((qt=Fn[ln])!=null?qt:0)-((Zt=Fn[Xt])!=null?Zt:0)})(nt,rt);if(B.heightTreeSize.value!==B.parsedNodes.value.length){let Dt=0;for(let At=nt;AtXt<=0?0:B.fenwickRangeSum(ht,0,Xt)+(Xt-B.fenwickRangeSum(Dt,0,Xt))*mt;let qt=0,Zt=qe.length-1,sn=qe.length-1;for(;qt<=Zt;){const Xt=qt+Zt>>1;At(Xt+1)>=nt?(sn=Xt,Zt=Xt-1):qt=Xt+1}return sn}let it=nt;for(let mt=0;mt0||nt++}return nt}return{markFallbackHeightPrefixDirty:function(){J=!0},getFallbackNodeHeight:Ce,estimateHeightRange:Ze,estimateIndexForOffset:lt,estimateIndexForOffsetFromEnd:function(nt){var rt,qe;const it=B.parsedNodes.value;if(!it.length)return 0;if(nt<=0)return Math.max(0,it.length-1);if(B.heightEstimationActive.value){const ht=(rt=De()[it.length])!=null?rt:0;return We(Math.max(0,ht-nt))}if(B.heightTreeSize.value===it.length){const ht=Ze(0,it.length);return lt(Math.max(0,ht-nt))}let mt=nt;for(let ht=it.length-1;ht>=0;ht--){const Dt=(qe=B.nodeHeights[ht])!=null?qe:B.averageNodeHeight.value;if(mt<=Dt)return ht;mt-=Dt}return 0},getEstimatedNodeHeightCount:Ge,buildVirtualHeightSummary:function(nt){var rt;const qe=B.parsedNodes.value.length;return{totalNodes:qe,measuredCount:B.heightStats.count,estimatedCount:Ge(),averageNodeHeight:B.averageNodeHeight.value,topSpacerHeight:nt.topSpacerHeight,bottomSpacerHeight:nt.bottomSpacerHeight,estimatedTotalHeight:Ze(0,qe),width:(rt=nt.width)!=null?rt:B.getContainerWidth()}}}})({parsedNodes:It,nodeHeights:vt,heightStats:Pt,heightTreeSize:fn,heightSumTree:dn,heightKnownTree:ui,averageNodeHeight:Ln,heightEstimationActive:Jn,estimatedNodeHeights:Mf,getContainerWidth:Ni,hasCustomParagraphComponent:()=>!!Yn.value.paragraph,getPrefixCacheKeyParts:()=>{var B;const J=X1(Y.value||Nt("getFallbackHeightPrefix.clientWidth",()=>{var he;return((he=R.value)==null?void 0:he.clientWidth)||0})),fe=((B=i.virtualScroll)==null?void 0:B.measurementKey)==null?"":String(i.virtualScroll.measurementKey);return[It.value.length,Pt.count,Math.round(Pt.total),Math.round(100*Ln.value),fe,J,Jn.value?1:0,wk.value,V.value,Yn.value.paragraph?1:0]},fenwickRangeSum:v1}),Pe(()=>It.value.length,B=>{var J;ai(),B<=0?Yt():(Bfi(J))),B!==fn.value&&Ui(B))},{immediate:!0});const WH=F(()=>{if(!Cn.value)return It.value.map((he,Ce)=>({node:he,index:Ce}));const B=It.value.length,J=zs(as.start,0,B),fe=zs(as.end,J,B);return It.value.slice(J,fe).map((he,Ce)=>({node:he,index:J+Ce}))}),t4=F(()=>Cn.value?Ss(0,Math.min(as.start,It.value.length)):0),n4=F(()=>{if(!Cn.value)return 0;const B=It.value.length;return Ss(Math.min(as.end,B),B)});function QA(){return ii.buildVirtualHeightSummary({topSpacerHeight:t4.value,bottomSpacerHeight:n4.value,width:ed()})}function qH(){const B=It.value,J=QA();return An(Mt({},J),{probe:{paragraphReady:!!oe.value.paragraph,listItemReady:!!oe.value.listItem,listWrapperOverhead:oe.value.listWrapperOverhead,headingReadyLevels:Object.entries(oe.value.headings).filter(([,fe])=>!!fe).map(([fe])=>Number(fe))},nodes:B.map((fe,he)=>{var Ce,De,We,Ze,lt,Ge,nt,rt,qe;return{index:he,type:fe.type,estimateKind:(De=(Ce=Mf.value[he])==null?void 0:Ce.kind)!=null?De:null,rendererKind:(Ze=(We=Mf.value[he])==null?void 0:We.rendererKind)!=null?Ze:null,estimatedHeight:(Ge=(lt=Mf.value[he])==null?void 0:lt.height)!=null?Ge:null,estimatedContentHeight:(rt=(nt=Mf.value[he])==null?void 0:nt.contentHeight)!=null?rt:null,measuredHeight:(qe=vt[he])!=null?qe:null}})})}function i4(){return i.indexKey!=null?String(i.indexKey):Ti.value?`virtual-${lo()}`:"markdown-renderer"}function YA(B){const J=String(B),fe=`${i4()}-`;if(!J.startsWith(fe))return null;const he=J.slice(fe.length).match(/^(\d+)(?:$|-)/);if(!he)return null;const Ce=Number(he[1]);return!Number.isInteger(Ce)||Ce<0||Ce>=It.value.length?null:Ce}function lo(){var B,J,fe;const he=(B=i.virtualScroll)==null?void 0:B.sessionKey;return String(he!=null&&he!==""?he:(fe=(J=i.indexKey)!=null?J:I.customId)!=null?fe:Lt)}function Vo(){var B;const J=(B=i.virtualScroll)==null?void 0:B.threadKey;return J==null||J===""?void 0:String(J)}const UH=F(()=>{var B,J,fe;return(fe=Vo())!=null?fe:String((J=(B=i.indexKey)!=null?B:I.customId)!=null?J:Lt)});function o4(B){var J;return(B??"")===((J=Vo())!=null?J:"")}function Ga(){var B,J,fe;return J=(B=i.virtualScroll)==null?void 0:B.measurementKey,fe=(function(){const he=g.value;return(function(Ce){var De,We;const Ze=Ce.renderer,lt=Ze==="monaco"?Ce.codeBlockMonacoOptions:void 0,Ge=Ce.codeBlockProps,nt=Ze==="shiki";return[Ce.isDark?"dark":"light",Ze==="monaco"?"code-rich":Ze==="pre"?"code-pre":"code-shiki",Ce.codeBlockStream===!1?"code-static":"code-stream",Ms(Ce.codeBlockMinWidth),Ms(Ce.codeBlockMaxWidth),...nt?[tEe((De=Ge?.themes)!=null?De:Ce.themes,(We=Ge?.langs)!=null?We:Ce.langs)]:[],Ms(lt?.fontSize),Ms(lt?.lineHeight),Ms(lt?.fontFamily),Ms(lt?.tabSize),Ms(lt?.MAX_HEIGHT),Ms(lt?.wordWrap),Ms(lt?.wrappingIndent),Ms(lt?.padding),Ms(Ge?.showHeader),Ms(Ge?.showCopyButton),Ms(Ge?.showExpandButton),Ms(Ge?.showPreviewButton),Ms(Ge?.showCollapseButton),Ms(Ge?.showFontSizeButtons)].join("\0")})({renderer:he,isDark:I.isDark,codeBlockStream:I.codeBlockStream,codeBlockMinWidth:I.codeBlockMinWidth,codeBlockMaxWidth:I.codeBlockMaxWidth,codeBlockMonacoOptions:he==="monaco"?I.codeBlockMonacoOptions:void 0,codeBlockProps:I.codeBlockProps,themes:he==="shiki"?I.themes:void 0,langs:he==="shiki"?I.langs:void 0})})(),[J==null?"":String(J),fe].join("\0")}function ed(){return Ni()}const Og=F(()=>X1(ed())),il=F(()=>[Ga(),Og.value].join("\0")),KH=F(()=>{var B;return Ti.value?["virtual",(B=Vo())!=null?B:"",lo(),il.value].join("\0"):i.indexKey});function If(){zA.value+=1}function s4(B){return!(!B||!Number.isInteger(B.index)||B.index<0||B.index>=It.value.length||B.sessionKey!==lo()||B.threadKey!==Vo()||B.layoutEpochKey!==il.value)}function JA(B){const J=String(B),fe=cr.get(J);return fe?s4(fe)?fe.index:null:YA(J)}function XA(B="async-node"){(us.size||cr.size)&&(us.clear(),cr.clear(),If(),Qi(B))}const Ef=hn(U8,null),r4={reportHeight(B,J){if(!an.value)return;const fe=JA(B);if(fe==null)return;const he=Te.get(fe);if(!he)return;const Ce=Number(J),De=Bi(fe,he);(function(We,Ze,lt={}){Ve(()=>ei(We,Ze,lt))})(fe,Number.isFinite(Ce)&&Ce>0?Math.max(Ce,De||0):De)},markPending(B){if(!an.value)return;const J=YA(B);J!=null&&(function(fe,he){var Ce;const De=cr.get(fe);if(De&&s4(De))return us.set(fe,Math.max(0,(Ce=us.get(fe))!=null?Ce:0)+1),If(),void Qi("async-node");us.set(fe,1),cr.set(fe,(function(We){return{index:We,sessionKey:lo(),threadKey:Vo(),layoutEpochKey:il.value}})(he)),If(),Qi("async-node")})(String(B),J)},markSettled(B){if(!an.value)return;const J=String(B),fe=JA(B);(fe!=null||(function(he){return us.has(String(he))})(J))&&(function(he){var Ce;const De=(Ce=us.get(he))!=null?Ce:0;return!(De<=0||(De<=1?(us.delete(he),cr.delete(he)):us.set(he,De-1),If(),De===1&&Qi("async-node"),0))})(J)&&fe!=null&&Qa()}};function VH(){let B=0;for(const J of Te.values())B+=Nt("getVisibleDomHeight.offsetHeight",()=>{var fe;return(fe=J?.offsetHeight)!=null?fe:0});return Math.ceil(Math.max(0,B))}oi(U8,{reportHeight(B,J){r4.reportHeight(B,J),Ef?.reportHeight(B,J)},markPending(B){r4.markPending(B),Ef?.markPending(B)},markSettled(B){r4.markSettled(B),Ef?.markSettled(B)}});let l4,a4=null,Tf=null;function Pg(B){return B!==!1&&B!=null&&B!==""}function eC(){return Cn.value?(function(){if(!Cn.value)return!0;const B=It.value.length,J=zs(as.start,0,B),fe=zs(as.end,J,B);if(J>=fe)return!0;for(let he=J;he=Fg.value}function u4(){return _t.value===!0&&!$t.value&&Z9.value===0&&no.size===0&&Nn.size===0&&nl==null&&eC()}function tC(){var B,J;if(((B=i.virtualScroll)==null?void 0:B.settleMode)!=="manual"||a4===lo()&&l4===Vo())return!0;const fe=(J=i.virtualScroll)==null?void 0:J.settledToken;return!!Pg(fe)&&Tf===N1(fe)}function c4(){return u4()&&tC()}function ZH(B,J){return J.totalNodes<=0?B==="final"?"final":"estimate":J.measuredCount>=J.totalNodes?B==="final"?"final":"measured":J.measuredCount>0||J.estimatedCount>0?"mixed":"estimate"}function td(B="manual",J){const fe=QA(),he=(function(Ce){return Ce||(_t.value!==!0?It.value.length>0?"streaming":"estimating":!eC()||Nn.size>0||nl!=null?"measuring":c4()?"settled":"settling")})(J);return{sessionKey:lo(),threadKey:Vo(),phase:he,nodeCount:fe.totalNodes,liveRange:{start:as.start,end:as.end},renderedCount:Di.value,measuredCount:fe.measuredCount,estimatedCount:fe.estimatedCount,averageNodeHeight:fe.averageNodeHeight,topSpacerHeight:fe.topSpacerHeight,bottomSpacerHeight:fe.bottomSpacerHeight,visibleDomHeight:VH(),totalHeight:nC(),width:fe.width,final:_t.value===!0,stable:c4(),confidence:ZH(he,fe),reason:B}}function k1(){const B=Dn.value||ke(),J=R.value;if(!B||!J)return null;const fe=B.ownerDocument||J.ownerDocument||document,he=B===fe.documentElement||B===fe.body||B===fe.scrollingElement,Ce=Nt("getScrollBox.scrollTop",()=>Oe(B,fe,he)),De=Nt("getScrollBox.scrollHeight",()=>{var Ze,lt,Ge,nt,rt;return he?Math.max((lt=(Ze=fe.documentElement)==null?void 0:Ze.scrollHeight)!=null?lt:0,(nt=(Ge=fe.body)==null?void 0:Ge.scrollHeight)!=null?nt:0,(rt=B.scrollHeight)!=null?rt:0):B.scrollHeight}),We=Nt("getScrollBox.clientHeight",()=>{var Ze;return he?((Ze=fe.documentElement)==null?void 0:Ze.clientHeight)||B.clientHeight||0:B.clientHeight});return{root:B,doc:fe,isViewportRoot:he,scrollTop:Ce,scrollHeight:De,clientHeight:We}}function nC(){const B=It.value.length,J=Math.max(0,Ss(0,B)),fe=Nt("getRendererLogicalHeight.offsetHeight",()=>{var Ce,De;return(De=(Ce=R.value)==null?void 0:Ce.offsetHeight)!=null?De:0}),he=Math.max(0,fe>0?fe:Nt("getRendererLogicalHeight.scrollHeight",()=>{var Ce,De;return(De=(Ce=R.value)==null?void 0:Ce.scrollHeight)!=null?De:0}));return B<=0?Math.ceil(fe):Cn.value?J>0?Math.max(1,Math.ceil(J),(function(){let Ce=t4.value+n4.value;for(const De of jn.values())De&&(Ce+=Math.max(0,Nt("getVirtualizedDomLogicalHeight.offsetHeight",()=>De.offsetHeight||0)));return Math.ceil(Math.max(0,Ce))})(),(function(Ce,De){return Ce<=0||De<=0?0:De<=Ce+Math.max(512,.05*Ce)?Math.ceil(De):0})(J,he)):Math.max(1,Math.ceil(he)):an.value?J>0||Pt.count>0||ii.getEstimatedNodeHeightCount()>0?(Nr.value&&Di.value,Math.max(1,Math.ceil(he),Math.ceil(J))):Math.ceil(he):Math.max(1,Math.ceil(he),Math.ceil(J))}function iC(B){const J=R.value;if(!J)return null;const fe=Nt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>J.getBoundingClientRect());return(function(Ce){return Ce.isViewportRoot?Ce.clientHeight:Nt("getViewportBottomInRoot.getBoundingClientRect",()=>Ce.root.getBoundingClientRect().bottom)})(B)-fe.bottom}function GH(B={}){const J=B.requireViewport!==!1,fe=(function(De=64){const We=k1(),Ze=R.value;if(!We||!Ze)return!1;const lt=(function(nt){if(nt.isViewportRoot)return{top:0,bottom:nt.clientHeight};const rt=Nt("getVirtualViewportRect.getBoundingClientRect",()=>nt.root.getBoundingClientRect());return{top:rt.top,bottom:rt.bottom}})(We),Ge=Nt("isRendererNearVirtualViewport.getBoundingClientRect",()=>Ze.getBoundingClientRect());return Ge.bottom>=lt.top-De&&Ge.top<=lt.bottom+De})();if(J&&!fe)return null;const he=(function(){const De=k1(),We=R.value;if(!De||!We||Math.max(0,De.scrollHeight-De.scrollTop-De.clientHeight)>64)return null;const Ze=iC(De);return Ze==null?null:Ze>=-8&&Ze<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,Ze)}:null})();if(he)return{anchor:he,captured:!0};const Ce=Qe();if(Ce)return{anchor:{type:"node",nodeIndex:Ce.nodeIndex,offsetWithinNodePx:Ce.offsetWithinNodePx},captured:fe};if(B.allowFallback===!0){const De=(function(){const We=It.value.length;return We<=0?null:{type:"node",nodeIndex:zs(Al.value,0,Math.max(0,We-1)),offsetWithinNodePx:0}})();return De?{anchor:De,captured:!1}:null}return null}function d4(B){let J=2166136261;for(let fe=0;fe>>0).toString(36)}function QH(B,J){let fe=B;for(let he=0;he8192?`${he.slice(0,8192)}...${he.length}`:he;return`${he.length}:${d4(Ce)}`})(B)}`;if(typeof B=="function")return"fn";if(typeof B!="object")return typeof B;if(J.has(B))return"cycle";if(fe>=6)return"max-depth";J.add(B);try{if(Array.isArray(B)){if(B.length<=160){const Ge=[];for(let nt=0;nt=Ze&&We.push(nt)}return[`a:${B.length}`,`h=${De.join(",")}`,`t=${We.join(",")}`,`all=${(lt>>>0).toString(36)}`].join(":")}const he=B,Ce=Object.keys(he).filter(De=>{const We=he[De];return De!=="parent"&&De!=="el"&&De!=="component"&&(We==null||typeof We=="string"||typeof We=="number"||typeof We=="boolean"||YH.has(De))}).sort();return`o:${Ce.length}:${Ce.map(De=>`${De}=${jg(he[De],J,fe+1)}`).join(";")}`}finally{J.delete(B)}}let f4=-1,h4="",nd=[2166136261];function b1(B){const J=It.value[B];return J?d4(jg(J)):""}function JH(B,J){let fe=B;for(let he=0;he>>0}function p4(){var B,J;const fe=V.value;if(f4===fe)return h4;const he=It.value.length;let Ce=J9(he);(f4!==fe-1||Ce>he||nd.length>>0).toString(36),f4=fe,h4}function Lf(B,J={}){var fe;const he=J.includeHeightCache===!0,Ce=(fe=J.includeContentHash)!=null?fe:he,De=he?(function(Ze){const lt=(function(){var ht,Dt;const At=Number((Dt=(ht=i.virtualScroll)==null?void 0:ht.heightCacheLimit)!=null?Dt:5e3);return!Number.isFinite(At)||At<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(At))})();if(!Number.isFinite(lt)||Ze.length<=lt)return Ze;const Ge=new Map,nt=ht=>{!ht||Ge.size>=lt||Ge.set(ht.index,ht)},rt=It.value.length,qe=zs(as.start-2*Vi.value,0,rt),it=zs(as.end+2*Vi.value,qe,rt);for(const ht of Ze)ht.index>=qe&&ht.index=0&&Ge.sizeht.index-Dt.index).slice(0,lt)})(ka().map(Ze=>{var lt;const Ge=It.value[Ze.index];return Ge?An(Mt({},Ze),{nodeType:String((lt=Ge.type)!=null?lt:""),signature:b1(Ze.index)}):null}).filter(Ze=>!!Ze)):[],We=GH({allowFallback:J.allowAnchorFallback===!0,requireViewport:J.requireViewport});return We||De.length||J.includeEmptyState===!0?An(Mt({sessionKey:B.sessionKey,threadKey:B.threadKey},We?{anchor:We.anchor,anchorCaptured:We.captured}:{anchorCaptured:!1}),{metrics:B,width:B.width,contentHash:Ce?p4():void 0,measurementKey:Ga()||void 0,heightCache:De.length?De:void 0}):null}function g4(B){var J,fe;const he=k1();if(!he)return;const Ce=(function(Ze){const lt=R.value;if(!lt)return null;const Ge=we(lt,Ze.root),nt=It.value.length,rt=Nt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>lt.offsetHeight||0),qe=Math.max(0,rt>0?rt:nt>0?Nt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>lt.scrollHeight||0):0),it=nC();return Ge+Math.max(qe,it)})(he);if(Ce==null)return;const De=Math.max(0,B.distanceFromBottomPx),We=Math.max(0,Ce-he.clientHeight-De);(function(Ze){xs=S1()+120,ro=Ze})(We),he.isViewportRoot?(fe=(J=he.doc.defaultView)==null?void 0:J.scrollTo)==null||fe.call(J,0,We):KE(he.root,he.doc,We,{isReverseFlexScrollRoot:Ie,getNormalizedScrollTop:Oe})}const m4=[];function oC(){if(Q)for(ws!=null&&(Fi?.(ws),ws=null);m4.length;){const B=m4.pop();B!=null&&window.clearTimeout(B)}}function Nf(B){const J=!!vn.value;vn.value=null,xs=0,ro=null,oC(),J&&B&&Qi(B)}function Ff(){if(!vn.value||!Q||ws!=null)return;const B=()=>{ws=null;const J=vn.value;J&&g4(J)};ws=ji?ji(B):null,ws==null&&B()}function sC(B,J={}){const fe=It.value.length;return fe<=0?[]:B.filter(he=>!(!Number.isInteger(he.index)||he.index<0||he.index>=fe)&&!(!Number.isFinite(he.height)||he.height<=0)&&!(J.requireSignature&&!he.signature)&&!(J.requireCompatibilityMetadata&&!he.nodeType&&!he.signature)&&(function(Ce){var De;const We=It.value[Ce.index];return!(!We||Ce.nodeType&&Ce.nodeType!==String((De=We.type)!=null?De:"")||Ce.signature&&Ce.signature!==b1(Ce.index))})(he))}function rC(B){const J=X1(ed()),fe=X1(B);return J!==-1&&fe!==-1&&J===fe}function v4(B){var J;const fe=Number(B?.width);if(Number.isFinite(fe)&&fe>0)return fe;const he=Number((J=B?.metrics)==null?void 0:J.width);return Number.isFinite(he)&&he>0?he:null}function lC(B){var J;return B.sessionKey===lo()&&!!o4(B.threadKey)&&((J=B.measurementKey)!=null?J:"")===Ga()&&!!rC(v4(B))&&!!(function(fe){const he=fe.heightCache;return!!he?.length&&(aC(fe)?he.some(Ce=>!!(Ce.nodeType||Ce.signature)):he.some(Ce=>!!Ce.signature))})(B)}function aC(B){return!!(B.contentHash&&B.contentHash===p4())}function XH(B){return!aC(B)}let id=null,od=null,Hg=null,A1=null,C1=null;function y4(B){var J;const fe=B.map(Ce=>{var De,We;return[Ce.index,Math.round(10*Ce.height),(De=Ce.nodeType)!=null?De:"",(We=Ce.signature)!=null?We:""].join("")}).join(""),he=X1(ed());return[(J=Vo())!=null?J:"",lo(),Ga(),It.value.length,he,B.length,d4(fe)].join(":")}function uC(B=(J=>(J=i.virtualScroll)==null?void 0:J.heightCache)()){if(!an.value||!B?.length||It.value.length<=0||!rC((J=i.virtualScroll)==null?void 0:J.heightCacheWidth))return!1;var J;const fe=sC(B,{requireSignature:!0});if(!fe.length)return!1;const he=y4(fe);return he===id?(od="standalone",!0):(Ko(fe,{mode:"merge"}),ai(),id=he,od="standalone",M1(),Qi("restore"),!0)}function k4(B,J={}){var fe,he,Ce;if(!an.value||!B||B.sessionKey!==lo()||!o4(B.threadKey)||It.value.length<=0)return!1;const De=!!((fe=B.heightCache)!=null&&fe.length)&&!Wg(),We=!B.anchor||B.anchorCaptured===!1&&J.allowUncapturedAnchor!==!0?null:B.anchor,Ze=J.restoreAnchor===!0&&!!We&&!Wg()&&Number(v4(B))>0;let lt=!1;if((he=B.heightCache)!=null&&he.length&&lC(B)){const nt=sC(B.heightCache,{requireCompatibilityMetadata:!B.contentHash,requireSignature:XH(B)});nt.length&&(Ko(nt,{mode:"merge"}),ai(),id=y4(nt),od="restore",M1(),lt=!0)}if(De||Ze)return!1;if(!J.restoreAnchor||!We)return lt&&Qi("restore"),!0;const Ge=(function(nt,rt){var qe;const it=nt.anchor,mt=it?it.type==="bottom"?`bottom:${Math.round(it.distanceFromBottomPx)}`:`node:${it.nodeIndex}:${Math.round(it.offsetWithinNodePx)}`:"none";return[(qe=Vo())!=null?qe:"",lo(),Ga(),Og.value,rt,mt].join(":")})(B,(Ce=J.restoreToken)!=null?Ce:"imperative");return Hg===Ge?(lt&&Qi("restore"),!0):(Hg=Ge,(function(nt){const rt=()=>{if(nt.type==="node")return Nf(),void Je({nodeIndex:nt.nodeIndex,offsetWithinNodePx:nt.offsetWithinNodePx});if(Me(),ur.value=null,vn.value=nt,oC(),g4(nt),Q)for(const qe of[0,120,280,480])m4.push(window.setTimeout(()=>{const it=vn.value;it&&g4(it)},qe))};(function(qe){if(!Cn.value)return!1;const it=It.value.length;return!(it<=0||(Al.value=qe.type==="node"?zs(qe.nodeIndex,0,it-1):it-1,Bu(),0))})(nt)?dt(rt):rt()})(We),Qi("restore"),!0)}function Wg(){const B=ed();return Number.isFinite(B)&&B>0}function cC(B){var J;return B.sessionKey===lo()&&!!o4(B.threadKey)&&(It.value.length<=0||!(!((J=B.heightCache)!=null&&J.length)||Wg())||!(!(B.anchor&&Number(v4(B))>0)||Wg()))}function b4(){rn.clear();for(const B of Object.keys(vt)){const J=Number(B);Number.isInteger(J)&&J>=0&&J{let J=!1,fe=null;const he=()=>{J||(J=!0,fe!=null&&window.clearTimeout(fe),B())};if(ji)return ji(he),void(fe=window.setTimeout(he,50));fe=window.setTimeout(he,0)})}function A4(B,J=Vo(),fe=il.value){return lo()===B&&Vo()===J&&il.value===fe}function C4(){return Ji(this,arguments,function*(B={}){var J,fe,he,Ce,De;const We=lo(),Ze=Vo(),lt=il.value,Ge=(J=B.frames)!=null?J:2,nt=(fe=B.timeoutMs)!=null?fe:120,rt=(he=B.reason)!=null?he:"manual",qe=B.expectedSettledTokenKey,it=B.flushPendingTimers===!0,mt=td(rt),ht=()=>An(Mt({},mt),{phase:mt.final?"settling":mt.phase,stable:!1,confidence:mt.confidence==="final"?"mixed":mt.confidence,reason:rt}),Dt=()=>A4(We,Ze,lt)&&(qe==null||_1()===qe);for(let sn=0;snwindow.setTimeout(Xt,sn))})(nt),!Dt()||(it&&PA(),Qa(),w1(),!Dt()))return ht();const At=u4();At&&(a4=We,l4=Ze,((Ce=i.virtualScroll)==null?void 0:Ce.settleMode)==="manual"&&qe!=null&&Pg((De=i.virtualScroll)==null?void 0:De.settledToken)&&_1()===qe&&(Tf=N1(i.virtualScroll.settledToken)));const qt=Dt()&&At&&tC(),Zt=td(rt,qt?"final":void 0);return M4(Zt,!0),Zt})}let w4="content",sd=null,rd=null,x4=0,x1=null,Df=null,S4=null,_4=null;function S1(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function fC(B){var J,fe;const he=x1;if(!he)return!0;const Ce=(fe=(J=i.virtualScroll)==null?void 0:J.heightDiffThresholdPx)!=null?fe:1;return Math.abs(B.totalHeight-he.totalHeight)>Ce||B.sessionKey!==he.sessionKey||B.phase!==he.phase||B.stable!==he.stable||B.final!==he.final||B.threadKey!==he.threadKey||B.nodeCount!==he.nodeCount||B.measuredCount!==he.measuredCount||B.width!==he.width}function _1(B=(J=>(J=i.virtualScroll)==null?void 0:J.settledToken)()){return Ms(B)}function hC(B,J){var fe,he;return[B,J.sessionKey,(fe=J.threadKey)!=null?fe:"",Ga(),p4(),Ms((he=i.virtualScroll)==null?void 0:he.settledToken),Math.round(J.totalHeight),Math.round(J.width)].join("\0")}function M1(){S4=null,_4=null,Df=null}function eW(B){const J=B.heightCache;return J?.length?y4(J):""}function I1(B){var J,fe,he;const Ce=B.metrics,De=B.anchor?(We=B.anchor).type==="bottom"?`bottom:${Math.round(We.distanceFromBottomPx)}`:`node:${We.nodeIndex}:${Math.round(We.offsetWithinNodePx)}`:"none";var We;return[B.sessionKey,(J=B.threadKey)!=null?J:"",(fe=B.measurementKey)!=null?fe:Ga(),(he=B.contentHash)!=null?he:"",eW(B),De,B.anchorCaptured?1:0,Ce.liveRange.start,Ce.liveRange.end,Ce.renderedCount,Ce.nodeCount,Math.round(Ce.totalHeight),Math.round(Ce.width),Ce.phase,Ce.stable?1:0].join("\0")}function M4(B,J=!1){if(!an.value||(function(We=!1){return!We&&Ti.value&&!to.value})(J))return;const fe=J||fC(B),he=(function(We,Ze=!1){return Ze||We.stable||We.phase==="final"?{state:Lf(We,{includeHeightCache:!0})}:{state:Lf(We)}})(B,J),Ce=he.state,De=!!(Ce&&(fe||(function(We,Ze=!1){return!!Ze||I1(We)!==Df})(Ce,J)));if(fe&&(z(B),x1=B,x4=S1()),Ce&&De&&(H(Ce),Ce.anchor&&O(Ce.anchor),Df=I1(Ce)),B.stable){const We=hC("settled",B);if(We!==S4){S4=We;const Ze=Lf(B,{includeHeightCache:!0});Ze&&(H(Ze),Df=I1(Ze)),(function(lt){o("render-settled",lt)})(B)}}if(B.phase==="final"){const We=hC("final",B);if(We!==_4){_4=We;const Ze=Lf(B,{includeHeightCache:!0});Ze&&(H(Ze),Df=I1(Ze)),(function(lt){o("render-final",lt)})(B)}}}function I4(){sd!=null&&(Fi?.(sd),sd=null),rd!=null&&Q&&(window.clearTimeout(rd),rd=null)}function pC(){sd=null,rd=null,(function(B){if(Nn.size>0||nl!=null)return!0;switch(B){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(w4)&&(Qa(),w1()),M4(td(w4))}function Qi(B){var J,fe;if(!an.value||(w4=B,sd!=null||rd!=null))return;const he=Math.max(0,(fe=(J=i.virtualScroll)==null?void 0:J.emitIntervalMs)!=null?fe:32),Ce=Math.max(0,he-(S1()-x4)),De=()=>{rd=null,sd=ji?ji(pC):null,sd==null&&pC()};Q&&Ce>0?rd=window.setTimeout(De,Ce):De()}function gC(){xe.value+=1}function qg(B){if(Nr.value&&B>=Di.value){const J=It.value[B],fe=ut.value===!0&&_t.value!==!0&&B>=It.value.length-2,he=J?.type==="code_block"||J?.type==="image"||J?.type==="mermaid"||J?.type==="infographic";if(!fe||he)return!1}return!ls.value||B=Ne.value&&(Z.value||(Z.value=!0,Y9()),!Za.value||!Vn))return Bf(B),void(J&&$u(B,!0));if(B{if(jA.delete(De),!ls.value||Q9.value.has(De))return;const lt=jn.get(De);if(!lt)return;const Ge=ke(lt),nt=lt.ownerDocument||document,rt=nt.defaultView||window,qe=!Ge||Ge===nt.documentElement||Ge===nt.body,it=!qe&&Ge?Nt("nodeVisibilityFallback.root.getBoundingClientRect",()=>Ge.getBoundingClientRect()):null,mt=qe?0:it.top,ht=qe?Nt("nodeVisibilityFallback.clientHeight",()=>{var At,qt;return(qt=(At=rt.innerHeight)!=null?At:Ge?.clientHeight)!=null?qt:0}):it.bottom,Dt=Nt("nodeVisibilityFallback.node.getBoundingClientRect",()=>lt.getBoundingClientRect());Dt.bottom>=mt-500&&Dt.top<=ht+500&&$u(De,!0)},1800+We);jA.set(De,Ze)})(B);let Ce=null;Ce=Pe(()=>he.isVisible.value,De=>{if(De){Rg(B),$u(B,!0),Ce?.(),$g.delete(B),_f.get(B)===he&&_f.delete(B);try{he.destroy()}catch{}}},{immediate:!0}),$g.set(B,Ce),Cn.value&&ql()}function E4(){nl=null,Ve(()=>{let B=!1;for(const[J,fe]of Nn)Nn.delete(J),Te.get(J)===fe.el&&ct.get(J)===fe.version&&(B=ei(J,fe.height,{allowShrink:fe.allowShrink})||B);return B})}function $f(){nl!=null&&(Fi?.(nl),nl=null),Nn.clear()}function Kg(B,J){(function(fe,he,Ce){var De;if(!Number.isFinite(Ce)||Ce<=0||Te.get(fe)!==he)return;const We=ct.get(fe);if(We==null)return;const Ze=It.value[fe],lt=$t.value&&_t.value!==!0&&!((De=i.nodes)!=null&&De.length)&&fe>=It.value.length-2,Ge=!(Ze?.loading===!0||lt),nt=Nn.get(fe),rt=nt?nt.allowShrink&&Ge:Ge,qe=nt&&!rt?Math.max(nt.height,Ce):Ce;Nn.set(fe,{height:qe,allowShrink:rt,version:We,el:he}),nl==null&&(nl=ji?ji(E4):null,nl==null&&E4())})(B,J,Bi(B,J))}function Qa(){for(const[B,J]of Te)J&&Kg(B,J)}function mC(){yt?.disconnect(),yt=null,Ke.clear()}function T4(){for(;Ht.length;)Bg(Ht.pop())}Pe(to,B=>{B&&Qi("content")},{flush:"post"}),t({getVirtualMetrics:td,captureVirtualState:function(B={}){var J;return Lf(td("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:B.allowFallbackAnchor===!0,requireViewport:B.requireViewport===!0,includeEmptyState:(J=B.includeEmptyState)==null||J})},restoreVirtualState:function(B,J={}){const fe=J.restoreAnchor===!0,he=J.restoreToken==null?"imperative":String(J.restoreToken);A1=B,C1={restoreAnchor:fe,restoreToken:he,allowUncapturedAnchor:J.allowUncapturedAnchor===!0},!k4(B,{restoreAnchor:fe,restoreToken:he,allowUncapturedAnchor:J.allowUncapturedAnchor===!0})&&cC(B)||(A1=null,C1=null)},forceMeasure:function(B="manual"){return Ji(this,null,function*(){yield dt(),yield dC(),Qa(),w1(),yield dt();const J=td(B);return M4(J,!0),J})},settle:C4,scrollToNode:function(B,J="start"){Nf(),Me();const fe=It.value.length;if(fe<=0)return;const he=zs(B,0,fe-1),Ce=()=>{var De;const We=me({nodeIndex:he,offsetWithinNodePx:0}),Ze=Ys(he),lt=k1(),Ge=(De=lt?.clientHeight)!=null?De:0,nt=tl();let rt=We;if(J==="center")rt=We-Ge/2+Ze/2;else if(J==="end")rt=We-Ge+Ze;else if(J==="nearest"&&nt!=null){if(We>=nt&&We+Ze<=nt+Ge)return;rt=WeRs.value,B=>{if(!B){mC();for(const J of at.values())for(const fe of J)Bg(fe);at.clear(),ct.clear(),T4(),$f()}},{immediate:!0}),Pe(_t,B=>{B&&(function(){if(Q&&_t.value&&Te.size){T4();for(const J of[80,240,640]){const fe=OA(J,()=>{for(const[he,Ce]of Te)Ce&&Kg(he,Ce)},"final");fe!=null&&Ht.push(fe)}}})(),Qi(B?"final":"content")});const tW=VE(()=>Qi("content"),16),nW=VE(()=>Qi("batch"),16);Pe([()=>It.value.length,()=>Di.value],()=>{vn.value&&Ff(),tW()},{flush:"post",immediate:!0}),Pe([()=>as.start,()=>as.end],()=>{nW()},{flush:"post"});const{cleanupBatchScheduler:iW}=(function(B){const{props:J,isClient:fe,isTestEnv:he,parsedNodesIdentity:Ce,parsedNodeCount:De,desiredRenderedCount:We,datasetKey:Ze,batchingEnabled:lt,incrementalRenderingActive:Ge,resolvedBatchSize:nt,resolvedInitialBatch:rt,renderedCount:qe,adaptiveBatchSize:it,previousRenderContext:mt,previousBatchConfig:ht,requestFrame:Dt,cancelFrame:At,hasIdleCallback:qt,cleanupNodeVisibility:Zt,onDatasetKeyChanged:sn,onDatasetChanged:Xt}=B;let ln=null,Fn="raf",Pn=null,Mi=0,Os=!1,_s=!1;const Ul=new Set,ba=new Set;function R1(){if(fe){ln!=null&&(Fn==="raf"&&At?At(ln):Fn==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(ln):Fn==="timeout"&&window.clearTimeout(ln),ln=null),Mi+=1;for(const Xs of Ul)At&&At(Xs);for(const Xs of ba)window.clearTimeout(Xs);Ul.clear(),ba.clear(),Pn=null,Os=!1,_s=!1}}function tm(){return typeof performance<"u"?performance.now():Date.now()}function DC(Xs){(function(Ya){var zu;if(!Ge.value)return;const Ja=Math.max(2,(zu=J.renderBatchBudgetMs)!=null?zu:6),Xa=Math.max(1,nt.value||1),Kl=Math.max(1,Math.floor(Xa/4));Ya>1.5*Ja?it.value=Math.max(Kl,Math.floor(.8*it.value)):Ya<.6*Ja&&it.value=Ja)return;const Xa=Math.max(1,Xs),Kl=()=>{const Of=tm();ln=null;const z1=Pn??Xa;Pn=null;const Pf=tm();qe.value=Math.min(Ja,qe.value+z1),Zt(qe.value),(function(R4,nm){if(!fe)return void DC(nm);Os=!0;const zC=++Mi;dt().then(()=>{var OC;if(zC!==Mi)return;const xW=tm(),SW=Math.max(nm,xW-R4),PC=()=>{zC===Mi&&DC(SW)};if(Dt){let ad=null,jf=null,HC=!1;const WC=()=>{HC||(HC=!0,ad!==null&&(Ul.delete(ad),ad=null),jf!==null&&(ba.delete(jf),window.clearTimeout(jf),jf=null),PC())};return ad=Dt(()=>{WC()}),Ul.add(ad),jf=window.setTimeout(()=>{ad!==null&&At&&At(ad),WC()},Math.max(32,(OC=J.renderBatchIdleTimeoutMs)!=null?OC:120)),void ba.add(jf)}const jC=window.setTimeout(()=>{ba.delete(jC),PC()},0);ba.add(jC)})})(Of,tm()-Pf)};if(!fe||Br.immediate)return void Kl();const Ou=Math.max(0,(Ya=J.renderBatchDelay)!=null?Ya:16);if(Pn=Pn!=null?Math.max(Pn,Xa):Xa,ln==null){if(!he&&qt&&window.requestIdleCallback){const Of=Math.max(0,(zu=J.renderBatchIdleTimeoutMs)!=null?zu:120);return Fn="idle",void(ln=window.requestIdleCallback(()=>Kl(),{timeout:Of}))}if(Dt&&!he)return Fn="raf",void(ln=Dt(()=>{Ou===0?Kl():(Fn="timeout",ln=window.setTimeout(()=>Kl(),Ou))}));Fn="timeout",ln=window.setTimeout(()=>Kl(),Ou)}}function $C(Xs,Br={}){Os?_s=!0:Xs==null?RC():BC(Xs,Br)}function RC(){Ge.value&&BC(lt.value?Math.max(1,Math.round(it.value)):Math.max(1,nt.value))}return Pe([Ce,De,Ze,Ge,nt,rt,()=>J.renderBatchDelay],()=>{var Xs;const Br=De.value,Ya=mt.value,zu=Ze.value,Ja=!Object.is(zu,Ya.key),Xa=Br!==Ya.total,Kl=Ja||Xa;mt.value={key:zu,total:Br};const Ou=ht.value,Of=(Xs=J.renderBatchDelay)!=null?Xs:16,z1=Ou.batchSize!==nt.value||Ou.initial!==rt.value||Ou.delay!==Of||Ou.enabled!==Ge.value;ht.value={batchSize:nt.value,initial:rt.value,delay:Of,enabled:Ge.value},Ja&&sn(Br),(Kl||z1||!Ge.value)&&R1(),(Kl||z1)&&(it.value=Math.max(1,nt.value||1)),Kl&&Xt();const Pf=We.value;if(!Br)return qe.value=0,void Zt(0);if(!Ge.value)return qe.value=Pf,void Zt(qe.value);const R4=Ja||Ya.total===0;qe.value=R4||z1?Math.min(Pf,rt.value):Math.min(qe.value,Pf);const nm=Math.max(1,rt.value||nt.value||Br);qe.value{Ge.value&&(typeof Br=="number"&&Xs<=Br||Xs>qe.value&&$C())}),{cleanupBatchScheduler:R1}})({props:I,isClient:Q,isTestEnv:As,parsedNodesIdentity:mo,parsedNodeCount:vs,desiredRenderedCount:Fg,datasetKey:KH,batchingEnabled:jl,incrementalRenderingActive:Nr,resolvedBatchSize:Tr,resolvedInitialBatch:Lr,renderedCount:Di,adaptiveBatchSize:Cs,previousRenderContext:Xn,previousBatchConfig:Uo,requestFrame:ji,cancelFrame:Fi,hasIdleCallback:bs,cleanupNodeVisibility:PH,onDatasetKeyChanged:B=>{$f(),Yt(),ai(),M1(),B>0&&Ui(B)},onDatasetChanged:()=>{Cn.value&&ql({immediate:!0})}});Pe([Ng,Cn,()=>R.value,()=>te()],([B,J])=>{if(!B)return HA(),void G9();jH(),J?ql({immediate:!0}):G9()},{flush:"post",immediate:!0}),Pe([()=>It.value.length,()=>Cn.value],B=>Ji(null,[B],function*([J,fe]){fe&&J&&Q&&(yield dt(),ql({immediate:!0}))}),{flush:"post"}),Pe(Jn,B=>{B&&(function(){var J;if(_i.value&&Mo.value&&ys.value&&((J=Tn.value)!=null&&J[1]))return;const fe=St({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),he=St({type:"list_item",children:[fe],raw:"- Probe paragraph text"}),Ce=St({type:"list",ordered:!1,items:[he],raw:"- Probe paragraph text"});_i.value=fe,Mo.value=he,ys.value=Ce;const De={1:null,2:null,3:null,4:null,5:null,6:null};for(let We=1;We<=6;We++)De[We]=St({type:"heading",level:We,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(We)} Probe heading`});Tn.value=De})()},{immediate:!0}),Pe([()=>R.value,Jn],()=>{if(!Jn.value)return e4(),void(Y.value=0);qA(),e4(),Jn.value&&R.value&&typeof ResizeObserver<"u"&&(y1=new ResizeObserver(()=>{qA(),ur.value&&Re(),vn.value&&Ff(),Qi("resize")}),y1.observe(R.value))},{immediate:!0}),Pe([Jn,wi,il],()=>Ji(null,null,function*(){if(!Jn.value)return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ai();yield dt(),(function(){if(!Jn.value||typeof window>"u")return oe.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ai();const B={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},J=WA(X9(j.value),".paragraph-node");B.paragraph=Mk(j.value,J,"pre-wrap");const fe=X9($.value),he=fe?.querySelector(".paragraph-node");B.listItem=Mk($.value,he,"pre-wrap");const Ce=Nt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var We,Ze;return(Ze=(We=W.value)==null?void 0:We.offsetHeight)!=null?Ze:0}),De=Nt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var We,Ze;return(Ze=(We=$.value)==null?void 0:We.offsetHeight)!=null?Ze:0});B.listWrapperOverhead=Math.max(0,Ce-De);for(let We=1;We<=6;We++){const Ze=WA(X9(P[We]),`h${We}`);B.headings[We]=Mk(P[We],Ze,"pre-wrap")}oe.value=B,ai()})()}),{flush:"post",immediate:!0}),Pe(()=>It.value.length,()=>{Cn.value&&ql({immediate:!0})}),Pe([Jn,Y],()=>{ai(),Cn.value&&ql({immediate:!0}),ur.value&&Re(),vn.value&&Ff(),Qi("resize")},{immediate:!1}),Pe(()=>ls.value,B=>{if(B)for(const[J,fe]of jn)Ug(J,fe);else if(Y9(),Cn.value)ql({immediate:!0});else for(const[J,fe]of jn)fe&&$u(J,!0)},{immediate:!1}),Pe([pe,Ne,()=>te()],()=>{var B;(B=Vn.refresh)==null||B.call(Vn);for(const[J,fe]of jn)Ug(J,fe)},{immediate:!1}),Pe([()=>I.viewportPriority,()=>It.value.length,Ne],([B,J,fe])=>{if(B!==!1){if(Z.value&&(J<=200||J<=fe)){Z.value=!1;for(const[he,Ce]of jn)Ug(he,Ce)}}else Z.value=!1}),Pe(()=>Di.value,()=>{Cn.value&&ql({immediate:!0})}),Pe([Al,$s,Vi,()=>It.value.length,Cn],()=>{Bu()},{immediate:!0});let E1=null,T1=!1,Rf=null;function L1(){E1=null,a4=null,l4=void 0,Tf=null,M1()}function L4(){$f(),Yt(),ai(),rn.clear();const B=It.value.length;B>0&&Ui(B),b4()}function N4(){I4(),PA(),x1=null,id=null,od=null,Hg=null,A1=null,C1=null,T1=!1,L1(),XA("restore"),Me(),Nf()}function N1(B){var J;return[(J=Vo())!=null?J:"",lo(),Ga(),Og.value,_1(B),It.value.length,Math.round(Ss(0,It.value.length)),Math.round(ed()),Pt.count,Math.round(Pt.total)].join(":")}function vC(){return Ji(this,null,function*(){var B,J,fe,he;const Ce=(B=i.virtualScroll)==null?void 0:B.settledToken,De=_1(Ce),We=lo(),Ze=Vo(),lt=il.value;if(an.value&&((J=i.virtualScroll)==null?void 0:J.settleMode)==="manual"&&Pg(Ce))if(u4()){if(N1(Ce)!==Tf&&!T1){T1=!0;try{const Ge=yield C4({reason:"manual",expectedSettledTokenKey:De}),nt=_1()===De;A4(We,Ze,lt)&&Ge.sessionKey===We&&Ge.threadKey===Ze&&nt&&Ge.stable&&Ge.phase==="final"&&(Tf=N1((fe=i.virtualScroll)==null?void 0:fe.settledToken))}finally{T1=!1,yield dt();const Ge=(he=i.virtualScroll)==null?void 0:he.settledToken,nt=Pg(Ge)?N1(Ge):"";A4(We,Ze,lt)&&nt&&Tf!==nt&&vC()}}}else Qi("manual")})}Pe(an,(B,J)=>{if(B!==J){if(!B)return N4(),void I4();N4(),L4(),Rf=il.value,Qi("content")}},{flush:"post"}),Pe([an,il],([B,J])=>{B?Rf!=null?Rf!==J&&(Rf=J,(function(fe="resize"){$f(),Yt(),ai(),rn.clear();const he=It.value.length;he>0&&Ui(he),b4(),id=null,od=null,Hg=null,x1=null,T1=!1,L1(),uC(),dt(()=>{Qa(),ur.value&&Re(),vn.value&&Ff(),Qi(fe)})})("resize")):Rf=J:Rf=null},{flush:"post",immediate:!0}),Pe([an,()=>lo(),()=>Vo()],([B])=>{B&&(N4(),L4(),XA("content"),Qi("content"))}),Pe([an,()=>lo(),()=>Vo(),il,()=>It.value.length],([B])=>{B&&(function(J="async-node"){let fe=!1;for(const[he,Ce]of Array.from(cr.entries()))s4(Ce)||(cr.delete(he),us.delete(he),fe=!0);fe&&(If(),Qi(J))})("async-node")},{flush:"post"}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.sessionKey},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>i.indexKey,()=>V.value],([B])=>{B&&(M1(),(function(J="content"){if(!an.value)return;const fe=[],he=It.value.length,Ce=J9(he);for(const De of Array.from(rn.keys())){if(De>=he){fe.push(De);continue}if(De=he&&rn.delete(De);fe.length&&((function(De,We={}){const Ze=Array.from(De,Number);Se(Ze);let lt=0;if(Ve(()=>(lt=ya(Ze,We),lt>0)),lt>0)(function(Ge){for(const nt of Ge)rn.delete(nt)})(Ze);else for(const Ge of Ze)so.delete(Ge)})(fe,{notify:!1}),ai(),L1(),ur.value&&Re(),vn.value&&Ff(),Qi(J))})("content"))},{flush:"post",immediate:!0}),Pe([an,()=>It.value.length,()=>lo(),()=>Vo()],([B,J,fe,he],[Ce,De,We,Ze])=>{B&&Ce&&fe===We&&he===Ze&&J!==De&&L1()},{flush:"post"}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.heightCache},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.heightCacheWidth},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>It.value.length,()=>lo(),Y],()=>{uC()},{flush:"post",immediate:!0}),Pe([an,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreAnchor},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey},()=>It.value.length,()=>lo(),Y],B=>Ji(null,[B],function*([J,fe]){if(!J||!fe)return;yield dt();const he=(function(){var Ce;const De=(Ce=i.virtualScroll)==null?void 0:Ce.restoreAnchor;return De==null||De===!1?null:De===!0?"true":String(De)})();k4(fe,{restoreAnchor:he!=null,restoreToken:he??void 0})}),{flush:"post",immediate:!0}),Pe([an,Y,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.restoreState},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.measurementKey}],([B])=>{var J;if(!B)return;const fe=(J=i.virtualScroll)==null?void 0:J.restoreState;fe&&id&&od==="restore"&&(lC(fe)||(L4(),id=null,od=null,Qi("resize")))},{flush:"post"}),Pe([an,()=>It.value.length,()=>lo(),Y],B=>Ji(null,[B],function*([J]){var fe;const he=A1,Ce=C1;J&&he&&(yield dt(),!k4(he,{restoreAnchor:Ce?.restoreAnchor===!0,restoreToken:(fe=Ce?.restoreToken)!=null?fe:"imperative",allowUncapturedAnchor:Ce?.allowUncapturedAnchor===!0})&&cC(he)||(A1=null,C1=null))}),{flush:"post",immediate:!0}),Pe([an,_t,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settleMode},()=>lo(),()=>Vo(),il,Z9,Wl,()=>Di.value,Fg,()=>Pt.count,()=>Pt.total],([B,J,fe])=>{if(!B||J!==!0||fe==="manual"||!c4())return;const he=(function(){var Ce;const De=It.value.length;return[(Ce=Vo())!=null?Ce:"",lo(),Ga(),Og.value,De,Math.round(Ss(0,De)),Math.round(ed()),Pt.count,Math.round(Pt.total)].join(":")})();E1!==he&&(E1=he,C4({reason:"final"}).then(Ce=>{Ce.stable||E1!==he||(E1=null)}))},{flush:"post",immediate:!0}),Pe([an,_t,()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settleMode},()=>{var B;return(B=i.virtualScroll)==null?void 0:B.settledToken},()=>lo(),()=>Vo(),il,Z9,Wl,()=>Di.value,Fg,()=>It.value.length,()=>Pt.count,()=>Pt.total],()=>{vC()},{flush:"post",immediate:!0}),Pe([()=>It.value.length,Cn,$s,Vi,()=>as.start,()=>as.end],([B,J,fe,he,Ce,De])=>{Ae.value&&on("virtualization",{nodes:B,virtualization:J,maxLiveNodes:fe,buffer:he,focusIndex:Al.value,scroll:J?(()=>{const We=Dn.value||ke();return We?{reverse:Ie(We),scrollTop:Math.round(We.scrollTop),scrollTopAbs:Math.round(Math.abs(We.scrollTop)),scrollHeight:Math.round(We.scrollHeight),clientHeight:Math.round(We.clientHeight)}:null})():null,liveRange:{start:Ce,end:De},rendered:Di.value})}),Pe([()=>I.customId],([B],J,fe)=>{if(!B||Un)return;const he=(function(Ce,De){return Ce?(cs.controllers[Ce]=De,()=>{cs.controllers[Ce]===De&&delete cs.controllers[Ce]}):()=>{}})(B,{captureRestoreAnchor:Qe,restoreAnchor:Je,getAnchorDrift:ft,getReport:qH});fe(()=>{he()})},{immediate:!0}),Hn(()=>{(function(){if(an.value)try{Qa(),w1();const B=td("manual");fC(B)&&(z(B),x1=B,x4=S1());const J=Lf(B,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});J&&(H(J),J.anchor&&O(J.anchor),Df=I1(J))}catch{}})(),iW(),Y9(),Ye(),mC();for(const B of at.values())for(const J of B)Bg(J);at.clear(),ct.clear(),rn.clear(),T4(),$f(),e4(),Me(),Nf(),I4(),HA(),G9()});const oW=Ip("ViewportDeferredMermaidBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index11-DwTakJcU.js"),__vite__mapDeps([9,7]))).default}catch(B){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',B),jr}}),loadingComponent:lT,delay:0}),lT),sW=Ip("ViewportDeferredInfographicBlockNode",ia({loader:()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index10-BqVmm7xb.js"),[])).default}catch(B){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',B),jr}}),loadingComponent:rT,delay:0}),rT),rW=Ip("ViewportDeferredD2BlockNode",ia(()=>Ji(null,null,function*(){try{return(yield Fo(()=>import("./index8-Dz0AkV3W.js"),[])).default}catch(B){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',B),jr}})),jr),yC={text:Bo,paragraph:Jd,heading:B9,code_block:vk,list:jh,list_item:Ph,blockquote:Rv,table:i0,definition_list:zv,footnote:Ov,footnote_reference:fl,footnote_anchor:t0,admonition:Wv,vmr_container:jv,hardbreak:kc,link:xr,image:yc,thematic_break:Pv,math_inline:ma,math_block:mP,strong:Cr,emphasis:Sr,strikethrough:wr,highlight:pl,insert:Zr,subscript:Vr,superscript:Kr,emoji:Ur,checkbox:dl,checkbox_input:dl,inline_code:rr,html_inline:hl,reference:Ar,html_block:n0},lW=F(()=>i4()),kC=F(()=>UE(I.codeBlockProps)),aW=F(()=>UE(I.codeBlockProps,{omit:["langs"]})),bC=F(()=>Mt(Mt({stream:I.codeBlockStream,darkTheme:I.codeBlockDarkTheme,lightTheme:I.codeBlockLightTheme,monacoOptions:I.codeBlockMonacoOptions,themes:I.themes,langs:g.value==="shiki"?I.langs:void 0,minWidth:I.codeBlockMinWidth,maxWidth:I.codeBlockMaxWidth},typeof se.value=="boolean"?{showTooltips:se.value}:{}),aW.value)),AC=F(()=>Mt(An(Mt({},bC.value),{langs:I.langs}),kC.value));function CC(B){return typeof B=="boolean"?B:void 0}const uW=F(()=>{const B=I.codeBlockProps||{},J={},fe=CC(B.showLineNumbers);fe!==void 0&&(J.showLineNumbers=fe);const he=CC(B.diffInline);he!==void 0&&(J.diffInline=he);const Ce=(function(De){const We=Number(De);return Number.isFinite(We)&&We>0?We:void 0})(B.reservedHeightPx);return Ce!==void 0&&(J.reservedHeightPx=Ce),J}),cW=F(()=>Mt(Mt({stream:I.codeBlockStream,darkTheme:I.codeBlockDarkTheme,lightTheme:I.codeBlockLightTheme,themes:I.themes,langs:I.langs,minWidth:I.codeBlockMinWidth,maxWidth:I.codeBlockMaxWidth},typeof se.value=="boolean"?{showTooltips:se.value}:{}),kC.value)),dW=F(()=>Mt({},I.mermaidProps||{})),wC=F(()=>Mt({},I.d2Props||{})),fW=F(()=>Mt({},I.infographicProps||{})),F1=F(()=>({typewriter:h.value,fade:I.fade,customHtmlTags:_o.value.customHtmlTags})),hW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltip:se.value}:{})),pW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{})),gW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{})),mW=F(()=>Mt(Mt({},F1.value),typeof se.value=="boolean"?{showTooltips:se.value}:{}));function vW(B){return Array.isArray(B.children)&&B.children.length>0}const Vg=F(()=>WH.value.map(B=>{var J,fe,he,Ce,De,We,Ze,lt;let Ge=(function(At){var qt,Zt,sn,Xt,ln,Fn,Pn;if(At.type!=="code_block")return At;const Mi=At,Os=[String((qt=Mi.language)!=null?qt:""),String((Zt=Mi.loading)!=null?Zt:""),String((sn=Mi.diff)!=null?sn:""),String((Xt=Mi.code)!=null?Xt:""),String((ln=Mi.originalCode)!=null?ln:""),String((Fn=Mi.updatedCode)!=null?Fn:""),String((Pn=Mi.raw)!=null?Pn:"")].join("\0"),_s=xt.get(Mi);if(_s&&_s.signature===Os)return _s.node;const Ul=Mt({},Mi);return xt.set(Mi,{signature:Os,node:Ul}),Ul})(B.node);const nt=Zg(Ge);let rt=MC(Ge,nt);if((Ge.type==="html_block"||Ge.type==="html_inline")&&rt===yC[Ge.type]){const At=Ge,qt=String((J=At.tag)!=null?J:"").trim().toLowerCase()||jz(At.content);if(qt){const Zt=Yn.value[qt];if(Ir.value.has(qt)&&Zt)rt=Zt,Ge=An(Mt({},At),{type:qt,tag:qt,content:xwe(At.content,qt)});else if(Hz((fe=At.content)!=null?fe:At.raw,qt)){const sn=String((Ce=(he=At.content)!=null?he:At.raw)!=null?Ce:"");Ge.type==="html_inline"?(rt=Bo,Ge={type:"text",content:sn,raw:sn}):(rt=Jd,Ge={type:"paragraph",children:[{type:"text",content:sn,raw:sn}],raw:sn})}}}const qe=Ge.type==="code_block"&&g.value==="pre"&&rt===jr&&!F4(Yn.value,nt);let it=Mt({},(function(At,qt,Zt){const sn=qt??Zg(At);if(At.type==="code_block"){const Xt=sn?F4(Yn.value,sn):void 0;if(Zt&&g.value==="pre"&&!Xt&&Zt===jr)return uW.value;if(Zt&&sn&&Zt===Xt)return sn==="mermaid"?SC(At):sn==="infographic"?_C(At):sn==="d2"||sn==="d2lang"?wC.value:AC.value;if(Zt&&Zt===Yn.value.code_block)return AC.value;if(KA(Zt))return cW.value}return sn==="mermaid"?SC(At):sn==="infographic"?_C(At):sn==="d2"||sn==="d2lang"?wC.value:At.type==="link"?hW.value:At.type==="list"?pW.value:At.type==="blockquote"?gW.value:At.type==="table"?mW.value:At.type==="code_block"?bC.value:F1.value})(Ge,nt,rt));const mt=Jn.value?Mf.value[B.index]:null;Ge.type==="code_block"&&mt?.kind==="code-block"&&(it=An(Mt({},it),qe?{reservedHeightPx:(De=mt.height)!=null?De:mt.contentHeight}:{estimatedHeightPx:mt.height,estimatedContentHeightPx:mt.contentHeight,estimatedDiffInline:mt.diffInline})),qe||Ge.type!=="code_block"||nt!=="mermaid"||kh(it.estimatedPreviewHeightPx)!=null||(it=An(Mt({},it),{estimatedPreviewHeightPx:dy(uy(String((We=Ge.code)!=null?We:"")))})),qe||Ge.type!=="code_block"||nt!=="infographic"||kh(it.estimatedPreviewHeightPx)!=null||(it=An(Mt({},it),{estimatedPreviewHeightPx:fy(cy(String((Ze=Ge.code)!=null?Ze:"")))})),Ge.type==="math_block"&&(it=An(Mt({},it),{cacheScope:So}));const ht=(function(At,qt){const Zt=String(At.type);return!Cg(Zt)&&Yn.value[Zt]===qt})(Ge,rt),Dt=ht?W7(Ge,re.value):void 0;return An(Mt({},B),{node:Ge,component:rt,bindings:it,customBindings:Mt(Mt({},Dt??{}),it),rendersCustomNode:ht,hasSlotChildren:vW(Ge),slotContent:String((lt=Ge.content)!=null?lt:""),isCodeBlock:Ge.type==="code_block",indexKey:`${lW.value}-${B.index}`,vnodeKey:`${UH.value}\0${B.index}\0${Ge.type}`})}));function Zg(B){var J;return B?.type==="code_block"?String((J=B.language)!=null?J:"").trim().toLowerCase():""}function F4(B,J){const fe=J.trim().toLowerCase();if(fe)for(const he of[fe,N9(fe),JO(fe)]){const Ce=he&&B[he];if(Ce)return Ce}}function xC(B,J,fe,he){var Ce,De;const We=Mt({},B.value);return kh(We.estimatedPreviewHeightPx)==null&&(We.estimatedPreviewHeightPx=he(fe(String((Ce=J?.code)!=null?Ce:"")),void 0,We.maxHeight==="none"?null:(De=kh(We.maxHeight))!=null?De:void 0)),We}function SC(B){return xC(dW,B,uy,dy)}function _C(B){return xC(fW,B,cy,fy)}function MC(B,J){if(!B)return i5;const fe=Yn.value,he=fe[String(B.type)];if(B.type==="code_block"){const Ce=J??Zg(B),De=Ce?F4(fe,Ce):void 0;return De||(g.value==="pre"?fe.code_block||jr:Ce==="mermaid"?fe.mermaid||oW:Ce==="infographic"?fe.infographic||sW:Ce==="d2"||Ce==="d2lang"?fe.d2||rW:he||fe.code_block||VA.value)}return he||yC[String(B.type)]||i5}function D4(B){o("click",B)}function yW(B){var J;(J=B.target)!=null&&J.closest("[data-node-index]")&&o("mouseover",B)}function kW(B){var J;(J=B.target)!=null&&J.closest("[data-node-index]")&&o("mouseout",B)}function IC(B){o("mouseover",B)}function EC(B){o("mouseout",B)}const ld=K(null),Dr=K(!1),D1=K(null),bW=F(()=>!(I.domMode!=="minimal"||ue.value||I.fade!==!1||h.value||Dr.value||On.value||Cn.value||Qs.value||Io.value||yi.value||Object.keys(Yn.value).length!==0));let B1,zf=null,B4=0,Gg=0,Qg=0;const TC=["code_block","admonition","table","math_block","html_block","image","thematic_break"],AW=new Set(TC),LC=[".typewriter-cursor",".height-estimation-probes",...TC.map(B=>`[data-node-type="${B}"]`),"script","style"].join(",");function NC(B){if(!B||typeof B!="object")return!1;const J=B.type;return typeof J=="string"&&AW.has(J)}function Yg(B){var J,fe;if(!B||typeof B!="object")return 0;const he=B,Ce=(fe=(J=he.raw)!=null?J:he.content)!=null?fe:he.code;if(typeof Ce=="string")return Ce.length;const De=he.children;if(Array.isArray(De))return De.reduce((Ze,lt)=>Ze+Yg(lt),0);const We=he.items;return Array.isArray(We)?We.reduce((Ze,lt)=>Ze+Yg(lt),0):0}function Jg(){B1&&(clearTimeout(B1),B1=void 0)}function $4(){B4+=1,zf!=null&&(Fi?.(zf),zf=null)}function $1(){$4(),Ru(),ld.value&&(ld.value.style.visibility="hidden")}function CW(B){var J;if(B.nodeType!==Node.TEXT_NODE||!((J=B.textContent)!=null?J:"").trim())return!1;const fe=B.parentElement;return!!fe&&!fe.closest(LC)}function wW(B){let J=B.lastChild;for(;J;){if(CW(J))return J;if(J.nodeType===Node.ELEMENT_NODE){const fe=J;if(!fe.matches(LC)&&fe.lastChild){J=fe.lastChild;continue}}for(;J&&J!==B&&!J.previousSibling;)J=J.parentNode;if(!J||J===B)break;J=J.previousSibling}return null}function FC(){const B=Vg.value;for(let J=B.length-1;J>=0;J--){const fe=B[J];if(!fe||NC(fe.node)||!qg(fe.index))continue;const he=jn.get(fe.index);if(!he)continue;const Ce=wW(he);if(Ce)return Ce}return null}function Ru(){D1.value&&(D1.value.classList.remove(aT),D1.value=null)}function Xg(){if(d.value!=="simple"||!Q||!Dr.value||!R.value)return void Ru();const B=FC(),J=B?(function(fe){var he;const Ce=(he=fe.parentElement)==null?void 0:he.closest(".text-node");return Ce instanceof HTMLElement?Ce:fe.parentElement})(B):null;J!==D1.value&&(Ru(),J&&(J.classList.add(aT),D1.value=J))}function em(){if(d.value!=="precise"||!Q||!Dr.value||zf!=null)return;const B=B4,J=()=>{zf=null,B===B4&&(function(){var fe,he;if(d.value!=="precise"||!(Q&&Dr.value&&R.value&&ld.value))return;const Ce=R.value,De=ld.value;De.style.visibility="hidden";const We=FC();if(!We)return;let Ze=0,lt=0,Ge=20,nt=!1;if(We?.textContent){const rt=We.textContent.length,qe=document.createRange();qe.setStart(We,Math.max(0,rt-1)),qe.setEnd(We,rt);const it=typeof qe.getClientRects=="function"?qe.getClientRects():void 0,mt=(he=it?.[it.length-1])!=null?he:(fe=We.parentElement)==null?void 0:fe.getBoundingClientRect();if(mt){const ht=Nt("typewriterCursor.root.getBoundingClientRect",()=>Ce.getBoundingClientRect());Ze=mt.right-ht.left+Ce.scrollLeft,lt=mt.top-ht.top+Ce.scrollTop,Ge=mt.height||Ge,nt=!0}qe.detach()}nt&&(De.style.transform=`translate(${Math.max(0,Ze)}px, ${Math.max(0,lt)}px)`,De.style.height=`${Ge}px`,De.style.visibility="visible")})()};ji?zf=ji(J):J()}return Pe([tt,()=>i.content,()=>i.nodes,()=>I.typewriter,_t],()=>Ji(null,null,function*(){var B,J;if(!Q||ue.value||!le.value)return;if(_t.value)return Dr.value=!1,Jg(),void $1();if((B=i.nodes)!=null&&B.length)return Dr.value=!1,Jg(),$1(),Gg=((J=i.content)!=null?J:"").length,void(Qg=tt.value.length);const fe=(function(){var Ze,lt;return(Ze=i.nodes)!=null&&Ze.length?i.nodes.reduce((Ge,nt)=>Ge+Yg(nt),0):((lt=i.content)!=null?lt:"").length})(),he=(function(){var Ze;return(Ze=i.nodes)!=null&&Ze.length?i.nodes.reduce((lt,Ge)=>lt+Yg(Ge),0):tt.value.length})(),Ce=!NC(It.value[It.value.length-1]),De=fe>Gg,We=he>Qg;if(!h.value||!Ce||!De&&!We)return h.value&&Ce||(Dr.value=!1,$1()),Gg=fe,void(Qg=he);Gg=fe,Qg=he,Dr.value=!0,d.value==="precise"&&ld.value&&(ld.value.style.visibility="hidden"),Jg(),yield dt(),d.value==="simple"?Xg():(Ru(),em()),B1=setTimeout(()=>{B1=void 0,Dr.value=!1},3e3)}),{flush:"post",immediate:!0}),Pe(Dr,B=>Ji(null,null,function*(){B?(yield dt(),d.value!=="simple"?(Ru(),d.value==="precise"&&em()):Xg()):$1()}),{flush:"post"}),Pe(d,()=>Ji(null,null,function*(){if(Q&&!ue.value&&le.value&&Dr.value){if(yield dt(),d.value==="simple")return $4(),void Xg();Ru(),d.value!=="precise"?$1():em()}}),{flush:"post"}),Pe([()=>Di.value,()=>as.start,()=>as.end],()=>Ji(null,null,function*(){Q&&!ue.value&&le.value&&Dr.value&&(yield dt(),d.value!=="simple"?(Ru(),d.value==="precise"&&em()):Xg())}),{flush:"post"}),Hn(()=>{Jg(),$4(),Ru(),qn.clear()}),(B,J)=>{const fe=tU("NodeRenderer",!0);return f(ue)?(v(!0),E(Ee,{key:0},pt(Vg.value,he=>(v(),E(Ee,{key:he.vnodeKey},[he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:0,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onClick:D4,onMouseover:IC,onMouseout:EC,onCopy:J[0]||(J[0]=Ce=>s(Ce)),onHandleArtifactClick:J[1]||(J[1]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:1,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onClick:D4,onMouseover:IC,onMouseout:EC,onCopy:J[2]||(J[2]=Ce=>s(Ce)),onHandleArtifactClick:J[3]||(J[3]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(v(),E("div",{key:1,ref_key:"containerRef",ref:R,class:Fe(["markstream-vue markdown-renderer",[{dark:I.isDark},{virtualized:Cn.value},{"virtual-scroll-coordinated":to.value},{"stable-layout":V9.value},{"typewriter-simple-cursor":Dr.value&&d.value==="simple"}]]),"data-custom-id":I.customId,onClick:D4,onMouseover:yW,onMouseout:kW},[Wo.value||Cn.value?(v(),E(Ee,{key:0},[Wo.value?(v(),ce(ENe,{key:0,width:wi.value,"flow-root":Cn.value||to.value,"paragraph-node":_i.value,"list-item-node":Mo.value,"list-node":ys.value,"heading-nodes":Tn.value,"set-paragraph-wrapper":RH,"set-list-item-wrapper":zH,"set-list-wrapper":OH,"set-heading-wrapper":HH},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):X("",!0),Cn.value?(v(),E("div",{key:1,class:"node-spacer",style:Kt({height:`${t4.value}px`}),"aria-hidden":"true"},null,4)):X("",!0)],64)):X("",!0),bW.value?(v(!0),E(Ee,{key:1},pt(Vg.value,he=>(v(),E(Ee,{key:he.vnodeKey},[qg(he.index)?(v(),ce(Oo(he.component),ni({key:0,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onMouseover:J[4]||(J[4]=Ce=>o("mouseover",Ce)),onMouseout:J[5]||(J[5]=Ce=>o("mouseout",Ce)),onCopy:J[6]||(J[6]=Ce=>s(Ce)),onHandleArtifactClick:J[7]||(J[7]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"])):X("",!0)],64))),128)):(v(!0),E(Ee,{key:2},pt(Vg.value,he=>(v(),E("div",{key:he.vnodeKey,ref_for:!0,ref:Ce=>Ug(he.index,Ce),class:"node-slot","data-node-index":he.index,"data-node-type":he.node.type},[qg(he.index)?(v(),E("div",{key:0,ref_for:!0,ref:Ce=>(function(De,We){var Ze;We||(function(rt){const qe=`${i4()}-${rt}`;let it=!1;for(const mt of Array.from(us.keys())){const ht=cr.get(mt);(ht?.index===rt||mt===qe||mt.startsWith(`${qe}-`))&&(us.delete(mt),cr.delete(mt),it=!0)}it&&(If(),Qi("async-node"))})(De),Nn.delete(De),(function(rt){var qe;const it=((qe=ct.get(rt))!=null?qe:0)+1;ct.set(rt,it)})(De);const lt=at.get(De);if(lt){for(const rt of lt)Bg(rt);at.delete(De)}if((function(rt){const qe=Ke.get(rt);qe&&(yt?.unobserve(qe),Ue.delete(qe),Ke.delete(rt))})(De),!We||!Rs.value)return Te.delete(De),void ct.delete(De);Te.set(De,We);const Ge=()=>{Kg(De,We)};queueMicrotask(Ge);const nt=(yt||typeof ResizeObserver>"u"||(yt=new ResizeObserver(rt=>{if(rt.length)for(const qe of rt){const it=Ue.get(qe.target),mt=Ke.get(it??-1);it!=null&&mt&&Kg(it,mt)}else Qa()})),yt);if(nt&&(Ke.set(De,We),Ue.set(We,De),nt.observe(We)),typeof window<"u"){const rt=((Ze=It.value[De])==null?void 0:Ze.type)==="code_block"?[16,80,240,800]:_t.value?[80]:[];if(rt.length){const qe=rt.map(it=>OA(it,Ge,"node-resize")).filter(it=>it!=null);qe.length&&at.set(De,qe)}}})(he.index,Ce),class:"node-content"},[he.isCodeBlock?he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:1,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[12]||(J[12]=Ce=>s(Ce)),onHandleArtifactClick:J[13]||(J[13]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:2,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[14]||(J[14]=Ce=>s(Ce)),onHandleArtifactClick:J[15]||(J[15]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(fo,{key:0,name:"fade",css:I.fade!==!1,appear:I.fade!==!1},{default:de(()=>[he.rendersCustomNode?(v(),ce(Oo(he.component),ni({key:0,ref_for:!0},he.customBindings,{node:he.node,loading:he.node.loading,"index-key":he.indexKey,"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[8]||(J[8]=Ce=>s(Ce)),onHandleArtifactClick:J[9]||(J[9]=Ce=>o("handleArtifactClick",Ce))}),{default:de(()=>[he.hasSlotChildren?(v(),ce(fe,ni({key:0,ref_for:!0},go.value,{nodes:he.node.children,"index-key":he.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):he.slotContent?(v(),ce(fe,ni({key:1,ref_for:!0},go.value,{content:he.slotContent,final:!he.node.loading,"index-key":`${he.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):X("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(v(),ce(Oo(he.component),ni({key:1,node:he.node,loading:he.node.loading,"index-key":he.indexKey},{ref_for:!0},he.bindings,{"custom-id":I.customId,"is-dark":I.isDark,onCopy:J[10]||(J[10]=Ce=>s(Ce)),onHandleArtifactClick:J[11]||(J[11]=Ce=>o("handleArtifactClick",Ce))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(v(),E("div",{key:1,class:"node-placeholder",style:Kt({height:`${Ys(he.index)}px`})},null,4))],8,NNe))),128)),Dr.value&&d.value==="precise"?(v(),E("span",{key:3,ref_key:"typewriterCursorRef",ref:ld,class:"typewriter-cursor","aria-hidden":"true"},null,512)):X("",!0),Cn.value?(v(),E("div",{key:4,class:"node-spacer",style:Kt({height:`${n4.value}px`}),"aria-hidden":"true"},null,4)):X("",!0)],42,LNe))}}})),[["__scopeId","data-v-a9489508"]]),Gr=TP;Gr.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",Gr.__name,Gr.name].filter(n=>!!n));for(const n of t)e.component(n,TP)};const iA=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"})),FNe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},DNe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},BNe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},$Ne={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},RNe={class:"admonition-title"},zNe=["aria-expanded","aria-controls"],ONe=["id"],Wv=Ci(Xe({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const i=e,o=t,s=F(()=>{if(i.node.title&&i.node.title.trim().length)return i.node.title;const u=i.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=K(!!i.node.collapsible&&!((n=i.node.open)==null||n));function l(){i.node.collapsible&&(r.value=!r.value)}const a=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,c)=>(v(),E("div",{class:Fe(["admonition",[`admonition-${i.node.kind}`]])},[C("div",{id:a,class:"admonition-legend"},[i.node.kind==="note"||i.node.kind==="info"?(v(),E("svg",FNe,[...c[1]||(c[1]=[C("circle",{cx:"12",cy:"12",r:"10"},null,-1),C("path",{d:"M12 16v-4"},null,-1),C("path",{d:"M12 8h.01"},null,-1)])])):i.node.kind==="tip"?(v(),E("svg",DNe,[...c[2]||(c[2]=[C("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),C("path",{d:"M9 18h6"},null,-1),C("path",{d:"M10 22h4"},null,-1)])])):i.node.kind==="warning"||i.node.kind==="caution"?(v(),E("svg",BNe,[...c[3]||(c[3]=[C("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},null,-1),C("path",{d:"M12 9v4"},null,-1),C("path",{d:"M12 17h.01"},null,-1)])])):i.node.kind==="danger"||i.node.kind==="error"?(v(),E("svg",$Ne,[...c[4]||(c[4]=[C("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),C("path",{d:"M12 8v4"},null,-1),C("path",{d:"M12 16h.01"},null,-1)])])):X("",!0),C("span",RNe,D(s.value),1),i.node.collapsible?(v(),E("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${a}-content`,onClick:l},[(v(),E("svg",{style:Kt({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...c[5]||(c[5]=[C("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,zNe)):X("",!0)]),Wn(C("div",{id:`${a}-content`,class:"admonition-content","aria-labelledby":a},[U(f(Gr),{"index-key":`admonition-${e.indexKey}`,nodes:i.node.children,"custom-id":i.customId,typewriter:i.typewriter,fade:i.fade,onCopy:c[0]||(c[0]=d=>o("copy",d))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,ONe),[[Po,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);Wv.install=e=>{e.component(Wv.__name,Wv)};const a5=()=>Fo(()=>import("./d2_markstream-vue-yoD6TSFD.js"),[]);let tv=null,nv=a5,iv=null,uT=!1,cT=!1;function _ct(){return Ji(this,null,function*(){if(tv)return tv;const e=nv;return e?e===a5&&uT?null:iv||(iv=Ji(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===a5)return e===nv&&(uT=!0,(function(i){cT||(cT=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',i))})(n)),null;throw n}finally{e===nv&&(iv=null)}return e!==nv?null:t?(tv=(function(n){var i;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(i=n.default)!=null?i:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),tv):null}),iv):null})}let ov=null,LP=null,sv=null;function Mct(){return typeof LP=="function"}function Ict(){return Ji(this,null,function*(){if(ov)return ov;const e=LP;return e?sv||(sv=Ji(null,null,function*(){const t=yield e(),n=(function(i){var o,s,r;if(!i)return null;const l=(o=i.default)!=null?o:i,a=typeof l=="function"&&typeof((s=l.prototype)==null?void 0:s.render)=="function"?l:(r=i.Infographic)!=null?r:l?.Infographic;return typeof a=="function"?a:null})(t);return n?(ov=n,ov):null}).finally(()=>{sv=null}),sv):null})}const Ect=Symbol("markstreamLanguageIconResolver");function PNe(e){return new Worker("/assets/katexRenderer.worker-CO_gEm4q.js",{type:"module",name:e?.name})}function jNe(e){return new Worker("/assets/mermaidParser.worker-BFSlSHEW.js",{type:"module",name:e?.name})}let dT=!1;function NP(){dT||typeof Worker>"u"||(dT=!0,yEe(new PNe),LEe(new jNe))}NP();const fT=document.createElement("i");function HNe(e){const t="&"+e+";";fT.innerHTML=t;const n=fT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function qa(e,t,n,i){const o=e.length;let s=0,r;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)r=Array.from(i),r.unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);s0?(qa(e,e.length,0,t),e):t}const hT={}.hasOwnProperty;function WNe(e){const t={};let n=-1;for(;++n-1&&e.test(String.fromCharCode(n))}}function Xi(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return r;function r(a){return bi(a)?(e.enter(n),l(a)):t(a)}function l(a){return bi(a)&&s++r))return;const x=t.events.length;let _=x,L,M;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(L){M=t.events[_][1].end;break}L=!0}for(w(i),S=x;Sb;){const T=n[A];t.containerState=T[1],T[0].exit.call(t,e)}n.length=b}function y(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function tFe(e,t,n){return Xi(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gT(e){if(e===null||Qr(e)||QNe(e))return 1;if(GNe(e))return 2}function sA(e,t,n){const i=[];let o=-1;for(;++o1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},h={...e[n][1].start};mT(d,-a),mT(h,a),r={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:a>1?"strong":"emphasis",start:{...r.start},end:{...l.end}},e[i][1].end={...r.start},e[n][1].start={...l.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=Nl(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=Nl(u,[["enter",o,t],["enter",r,t],["exit",r,t],["enter",s,t]]),u=Nl(u,sA(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=Nl(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Nl(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,qa(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n0&&bi(S)?Xi(e,y,"linePrefix",s+1)(S):y(S)}function y(S){return S===null||En(S)?e.check(vT,m,A)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||En(S)?(e.exit("codeFlowValue"),y(S)):(e.consume(S),b)}function A(S){return e.exit("codeFenced"),t(S)}function T(S,x,_){let L=0;return M;function M(O){return S.enter("lineEnding"),S.consume(O),S.exit("lineEnding"),N}function N(O){return S.enter("codeFencedFence"),bi(O)?Xi(S,I,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):I(O)}function I(O){return O===l?(S.enter("codeFencedFenceSequence"),z(O)):_(O)}function z(O){return O===l?(L++,S.consume(O),z):L>=r?(S.exit("codeFencedFenceSequence"),bi(O)?Xi(S,H,"whitespace")(O):H(O)):_(O)}function H(O){return O===null||En(O)?(S.exit("codeFencedFence"),x(O)):_(O)}}}function hFe(e,t,n){const i=this;return o;function o(r){return r===null?n(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}const Ik={name:"codeIndented",tokenize:gFe},pFe={partial:!0,tokenize:mFe};function gFe(e,t,n){const i=this;return o;function o(u){return e.enter("codeIndented"),Xi(e,s,"linePrefix",5)(u)}function s(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?r(u):n(u)}function r(u){return u===null?a(u):En(u)?e.attempt(pFe,r,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||En(u)?(e.exit("codeFlowValue"),r(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function mFe(e,t,n){const i=this;return o;function o(r){return i.parser.lazy[i.now().line]?n(r):En(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),o):Xi(e,s,"linePrefix",5)(r)}function s(r){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(r):En(r)?o(r):n(r)}}const vFe={name:"codeText",previous:kFe,resolve:yFe,tokenize:bFe};function yFe(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&ep(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ep(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ep(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}}function RP(e,t,n,i,o,s,r,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(w){return w===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(w),e.exit(s),h):w===null||w===32||w===41||u5(w)?n(w):(e.enter(i),e.enter(r),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(w))}function h(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(l),h(w)):w===null||w===60||En(w)?n(w):(e.consume(w),w===92?g:p)}function g(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function m(w){return!c&&(w===null||w===41||Qr(w))?(e.exit("chunkString"),e.exit(l),e.exit(r),e.exit(i),t(w)):c999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in r.parser.constructs?n(p):p===93?(e.exit(s),e.enter(o),e.consume(p),e.exit(o),e.exit(i),t):En(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||En(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!bi(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function OP(e,t,n,i,o,s){let r;return l;function l(h){return h===34||h===39||h===40?(e.enter(i),e.enter(o),e.consume(h),e.exit(o),r=h===40?41:h,a):n(h)}function a(h){return h===r?(e.enter(o),e.consume(h),e.exit(o),e.exit(i),t):(e.enter(s),u(h))}function u(h){return h===r?(e.exit(s),a(r)):h===null?n(h):En(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Xi(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===r||h===null||En(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===r||h===92?(e.consume(h),c):c(h)}}function s0(e,t){let n;return i;function i(o){return En(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):bi(o)?Xi(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const IFe={name:"definition",tokenize:TFe},EFe={partial:!0,tokenize:LFe};function TFe(e,t,n){const i=this;let o;return s;function s(p){return e.enter("definition"),r(p)}function r(p){return zP.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return o=oA(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Qr(p)?s0(e,u)(p):u(p)}function u(p){return RP(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(EFe,d,d)(p)}function d(p){return bi(p)?Xi(e,h,"whitespace")(p):h(p)}function h(p){return p===null||En(p)?(e.exit("definition"),i.parser.defined.push(o),t(p)):n(p)}}function LFe(e,t,n){return i;function i(l){return Qr(l)?s0(e,o)(l):n(l)}function o(l){return OP(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return bi(l)?Xi(e,r,"whitespace")(l):r(l)}function r(l){return l===null||En(l)?t(l):n(l)}}const NFe={name:"hardBreakEscape",tokenize:FFe};function FFe(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return En(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const DFe={name:"headingAtx",resolve:BFe,tokenize:$Fe};function BFe(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},qa(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function $Fe(e,t,n){let i=0;return o;function o(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),r(c)}function r(c){return c===35&&i++<6?(e.consume(c),r):c===null||Qr(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||En(c)?(e.exit("atxHeading"),t(c)):bi(c)?Xi(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Qr(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const RFe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kT=["pre","script","style","textarea"],zFe={concrete:!0,name:"htmlFlow",resolveTo:jFe,tokenize:HFe},OFe={partial:!0,tokenize:qFe},PFe={partial:!0,tokenize:WFe};function jFe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function HFe(e,t,n){const i=this;let o,s,r,l,a;return u;function u(V){return c(V)}function c(V){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(V),d}function d(V){return V===33?(e.consume(V),h):V===47?(e.consume(V),s=!0,m):V===63?(e.consume(V),o=3,i.interrupt?t:P):Fa(V)?(e.consume(V),r=String.fromCharCode(V),k):n(V)}function h(V){return V===45?(e.consume(V),o=2,p):V===91?(e.consume(V),o=5,l=0,g):Fa(V)?(e.consume(V),o=4,i.interrupt?t:P):n(V)}function p(V){return V===45?(e.consume(V),i.interrupt?t:P):n(V)}function g(V){const Y="CDATA[";return V===Y.charCodeAt(l++)?(e.consume(V),l===Y.length?i.interrupt?t:I:g):n(V)}function m(V){return Fa(V)?(e.consume(V),r=String.fromCharCode(V),k):n(V)}function k(V){if(V===null||V===47||V===62||Qr(V)){const Y=V===47,oe=r.toLowerCase();return!Y&&!s&&kT.includes(oe)?(o=1,i.interrupt?t(V):I(V)):RFe.includes(r.toLowerCase())?(o=6,Y?(e.consume(V),w):i.interrupt?t(V):I(V)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(V):s?y(V):b(V))}return V===45||ra(V)?(e.consume(V),r+=String.fromCharCode(V),k):n(V)}function w(V){return V===62?(e.consume(V),i.interrupt?t:I):n(V)}function y(V){return bi(V)?(e.consume(V),y):M(V)}function b(V){return V===47?(e.consume(V),M):V===58||V===95||Fa(V)?(e.consume(V),A):bi(V)?(e.consume(V),b):M(V)}function A(V){return V===45||V===46||V===58||V===95||ra(V)?(e.consume(V),A):T(V)}function T(V){return V===61?(e.consume(V),S):bi(V)?(e.consume(V),T):b(V)}function S(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),a=V,x):bi(V)?(e.consume(V),S):_(V)}function x(V){return V===a?(e.consume(V),a=null,L):V===null||En(V)?n(V):(e.consume(V),x)}function _(V){return V===null||V===34||V===39||V===47||V===60||V===61||V===62||V===96||Qr(V)?T(V):(e.consume(V),_)}function L(V){return V===47||V===62||bi(V)?b(V):n(V)}function M(V){return V===62?(e.consume(V),N):n(V)}function N(V){return V===null||En(V)?I(V):bi(V)?(e.consume(V),N):n(V)}function I(V){return V===45&&o===2?(e.consume(V),R):V===60&&o===1?(e.consume(V),j):V===62&&o===4?(e.consume(V),Z):V===63&&o===3?(e.consume(V),P):V===93&&o===5?(e.consume(V),W):En(V)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(OFe,ae,z)(V)):V===null||En(V)?(e.exit("htmlFlowData"),z(V)):(e.consume(V),I)}function z(V){return e.check(PFe,H,ae)(V)}function H(V){return e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),O}function O(V){return V===null||En(V)?z(V):(e.enter("htmlFlowData"),I(V))}function R(V){return V===45?(e.consume(V),P):I(V)}function j(V){return V===47?(e.consume(V),r="",$):I(V)}function $(V){if(V===62){const Y=r.toLowerCase();return kT.includes(Y)?(e.consume(V),Z):I(V)}return Fa(V)&&r.length<8?(e.consume(V),r+=String.fromCharCode(V),$):I(V)}function W(V){return V===93?(e.consume(V),P):I(V)}function P(V){return V===62?(e.consume(V),Z):V===45&&o===2?(e.consume(V),P):I(V)}function Z(V){return V===null||En(V)?(e.exit("htmlFlowData"),ae(V)):(e.consume(V),Z)}function ae(V){return e.exit("htmlFlow"),t(V)}}function WFe(e,t,n){const i=this;return o;function o(r){return En(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),s):n(r)}function s(r){return i.parser.lazy[i.now().line]?n(r):t(r)}}function qFe(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(R9,t,n)}}const UFe={name:"htmlText",tokenize:KFe};function KFe(e,t,n){const i=this;let o,s,r;return l;function l(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),a}function a(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),T):P===63?(e.consume(P),b):Fa(P)?(e.consume(P),_):n(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),s=0,g):Fa(P)?(e.consume(P),y):n(P)}function c(P){return P===45?(e.consume(P),p):n(P)}function d(P){return P===null?n(P):P===45?(e.consume(P),h):En(P)?(r=d,j(P)):(e.consume(P),d)}function h(P){return P===45?(e.consume(P),p):d(P)}function p(P){return P===62?R(P):P===45?h(P):d(P)}function g(P){const Z="CDATA[";return P===Z.charCodeAt(s++)?(e.consume(P),s===Z.length?m:g):n(P)}function m(P){return P===null?n(P):P===93?(e.consume(P),k):En(P)?(r=m,j(P)):(e.consume(P),m)}function k(P){return P===93?(e.consume(P),w):m(P)}function w(P){return P===62?R(P):P===93?(e.consume(P),w):m(P)}function y(P){return P===null||P===62?R(P):En(P)?(r=y,j(P)):(e.consume(P),y)}function b(P){return P===null?n(P):P===63?(e.consume(P),A):En(P)?(r=b,j(P)):(e.consume(P),b)}function A(P){return P===62?R(P):b(P)}function T(P){return Fa(P)?(e.consume(P),S):n(P)}function S(P){return P===45||ra(P)?(e.consume(P),S):x(P)}function x(P){return En(P)?(r=x,j(P)):bi(P)?(e.consume(P),x):R(P)}function _(P){return P===45||ra(P)?(e.consume(P),_):P===47||P===62||Qr(P)?L(P):n(P)}function L(P){return P===47?(e.consume(P),R):P===58||P===95||Fa(P)?(e.consume(P),M):En(P)?(r=L,j(P)):bi(P)?(e.consume(P),L):R(P)}function M(P){return P===45||P===46||P===58||P===95||ra(P)?(e.consume(P),M):N(P)}function N(P){return P===61?(e.consume(P),I):En(P)?(r=N,j(P)):bi(P)?(e.consume(P),N):L(P)}function I(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),o=P,z):En(P)?(r=I,j(P)):bi(P)?(e.consume(P),I):(e.consume(P),H)}function z(P){return P===o?(e.consume(P),o=void 0,O):P===null?n(P):En(P)?(r=z,j(P)):(e.consume(P),z)}function H(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Qr(P)?L(P):(e.consume(P),H)}function O(P){return P===47||P===62||Qr(P)?L(P):n(P)}function R(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function j(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),$}function $(P){return bi(P)?Xi(e,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):W(P)}function W(P){return e.enter("htmlTextData"),r(P)}}const rA={name:"labelEnd",resolveAll:QFe,resolveTo:YFe,tokenize:JFe},VFe={tokenize:XFe},ZFe={tokenize:eDe},GFe={tokenize:tDe};function QFe(e){let t=-1;const n=[];for(;++t=3&&(u===null||En(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===o?(e.consume(u),i++,a):(e.exit("thematicBreakSequence"),bi(u)?Xi(e,l,"whitespace")(u):l(u))}}const Rr={continuation:{tokenize:dDe},exit:hDe,name:"list",tokenize:cDe},aDe={partial:!0,tokenize:pDe},uDe={partial:!0,tokenize:fDe};function cDe(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,r=0;return l;function l(p){const g=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:c5(p)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(qv,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return c5(p)&&++r<10?(e.consume(p),a):(!i.interrupt||r<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(R9,i.interrupt?n:c,e.attempt(aDe,h,d))}function c(p){return i.containerState.initialBlankLine=!0,s++,h(p)}function d(p){return bi(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function dDe(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(R9,o,s);function o(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Xi(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!bi(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(uDe,t,r)(l))}function r(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,Xi(e,e.attempt(Rr,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function fDe(e,t,n){const i=this;return Xi(e,o,"listItemIndent",i.containerState.size+1);function o(s){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(s):n(s)}}function hDe(e){e.exit(this.containerState.type)}function pDe(e,t,n){const i=this;return Xi(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const r=i.events[i.events.length-1];return!bi(s)&&r&&r[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const bT={name:"setextUnderline",resolveTo:gDe,tokenize:mDe};function gDe(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const r={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",r,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=r,e.push(["exit",r,t]),e}function mDe(e,t,n){const i=this;let o;return s;function s(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),o=u,r(u)):n(u)}function r(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),bi(u)?Xi(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||En(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const vDe={tokenize:yDe};function yDe(e){const t=this,n=e.attempt(R9,i,e.attempt(this.parser.constructs.flowInitial,o,Xi(e,e.attempt(this.parser.constructs.flow,o,e.attempt(wFe,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kDe={resolveAll:jP()},bDe=PP("string"),ADe=PP("text");function PP(e){return{resolveAll:jP(e==="text"?CDe:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,r,l);return r;function r(c){return u(c)?s(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const d=o[c];let h=-1;if(d)for(;++h-1){const l=r[0];typeof l=="string"?r[0]=l.slice(i):r.shift()}s>0&&r.push(e[o].slice(0,s))}return r}function BDe(e,t){let n=-1;const i=[];let o;for(;++n>1}};Ps.from=function(e){if(e instanceof Ps)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Ps(t)};function HP(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(i),s=t.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){let r=o.text,l=s.text,a=0;for(;r[a]==l[a];a++)n++;return a&&a0&&h>0&&u[d-1]==c[h-1];)d--,h--,n--,i--;return d&&h&&d=56320&&e<57344}function UP(e){return e>=55296&&e<56320}class Bn{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;it&&i(a,o+l,s||null,r)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,t-c),Math.min(a.content.size,n-c),i,o+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,o){let s="",r=!0;return this.nodesBetween(t,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(t,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&i&&(r?r=!1:s+=i),s+=u},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);st)for(let s=0,r=0;rt&&((rn)&&(l.isText?l=l.cut(Math.max(0,t-r),Math.min(l.text.length,n-r)):l=l.cut(Math.max(0,t-r-1),Math.min(l.content.size,n-r-1))),i.push(l),o+=l.nodeSize),r=a}return new Bn(i,o)}cutByIndex(t,n){return t==n?Bn.empty:t==0&&n==this.content.length?this:new Bn(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[t]=n,new Bn(o,s)}addToStart(t){return new Bn([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Bn(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=t)return s==t?rv(n+1,s):rv(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Bn.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return Bn.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Bn.empty;let n,i=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;ni.type.rank-o.type.rank),n}}eo.none=[];class H0 extends Error{}class Qn{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=VP(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return i&&new Qn(i,this.openStart,this.openEnd)}removeBetween(t,n){return new Qn(KP(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Qn.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Qn(Bn.fromJSON(t,n.content),i,o)}static maxOpen(t,n=!0){let i=0,o=0;for(let s=t.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new Qn(t,i,o)}}Qn.empty=new Qn(Bn.empty,0,0);function KP(e,t,n){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i),{index:r,offset:l}=e.findIndex(n);if(o==t||s.isText){if(l!=n&&!e.child(r).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=r)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(KP(s.content,t-o-1,n-o-1)))}function VP(e,t,n,i,o,s){let{index:r,offset:l}=e.findIndex(t),a=e.maybeChild(r);if(l==t||a.isText)return s&&i<=0&&o<=0&&!s.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=VP(a.content,t-l-1,n,r==0?i-1:0,r==e.childCount-1?o-1:0,a);return u&&e.replaceChild(r,a.copy(u))}function ODe(e,t,n){if(n.openStart>e.depth)throw new H0("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new H0("Inconsistent open depths");return ZP(e,t,n,0)}function ZP(e,t,n,i){let o=e.index(i),s=e.node(i);if(o==t.index(i)&&i=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function r0(e,t,n,i){let o=(t||e).node(n),s=0,r=t?t.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(Xd(e.nodeAfter,i),s++));for(let l=s;lo&&f5(e,t,o+1),r=i.depth>o&&f5(n,i,o+1),l=[];return r0(null,e,o,l),s&&r&&t.index(o)==n.index(o)?(GP(s,r),Xd(ef(s,QP(e,t,n,i,o+1)),l)):(s&&Xd(ef(s,Cy(e,t,o+1)),l),r0(t,n,o,l),r&&Xd(ef(r,Cy(n,i,o+1)),l)),r0(i,null,o,l),new Bn(l)}function Cy(e,t,n){let i=[];if(r0(null,e,n,i),e.depth>n){let o=f5(e,t,n+1);Xd(ef(o,Cy(e,t,n+1)),i)}return r0(t,null,n,i),new Bn(i)}function PDe(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let s=n-1;s>=0;s--)o=t.node(s).copy(Bn.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class W0{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=t.child(n);return i?t.child(n).cut(i):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new WDe(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let r=t;;){let{index:l,offset:a}=r.content.findIndex(s),u=s-a;if(i.push(r,l,o+a),!u||(r=r.child(l),r.isText))break;s=u-1,o+=a+1}return new W0(n,i,s)}static resolveCached(t,n){let i=CT.get(t);if(i)for(let s=0;st&&this.nodesBetween(t,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),YP(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=Bn.empty,o=0,s=i.childCount){let r=this.contentMatchAt(t).matchFragment(i,o,s),l=r&&r.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let o=Bn.fromJSON(t,n.content),s=t.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};Hh.prototype.text=void 0;class wy extends Hh{constructor(t,n,i,o){if(super(t,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):YP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new wy(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new wy(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function YP(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class gf{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new UDe(t,n);if(i.next==null)return gf.empty;let o=JP(i);i.next&&i.err("Unexpected trailing text");let s=JDe(YDe(o));return XDe(s,i),s}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let o=0;o{let s=o+(i.validEnd?"*":" ")+" ";for(let r=0;r"+t.indexOf(i.next[r].next);return s}).join(` +`)}}gf.empty=new gf(!0);class UDe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function JP(e){let t=[];do t.push(KDe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function KDe(e){let t=[];do t.push(VDe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function VDe(e){let t=QDe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=ZDe(e,t);else break;return t}function wT(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function ZDe(e,t){let n=wT(e),i=n;return e.eat(",")&&(e.next!="}"?i=wT(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function GDe(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let o=[];for(let s in n){let r=n[s];r.isInGroup(t)&&o.push(r)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function QDe(e){if(e.eat("(")){let t=JP(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=GDe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function YDe(e){let t=[[]];return o(s(e,0),n()),t;function n(){return t.push([])-1}function i(r,l,a){let u={term:a,to:l};return t[r].push(u),u}function o(r,l){r.forEach(a=>a.to=l)}function s(r,l){if(r.type=="choice")return r.exprs.reduce((a,u)=>a.concat(s(u,l)),[]);if(r.type=="seq")for(let a=0;;a++){let u=s(r.exprs[a],l);if(a==r.exprs.length-1)return u;o(u,l=n())}else if(r.type=="star"){let a=n();return i(l,a),o(s(r.expr,a),a),[i(a)]}else if(r.type=="plus"){let a=n();return o(s(r.expr,l),a),o(s(r.expr,a),a),[i(a)]}else{if(r.type=="opt")return[i(l)].concat(s(r.expr,l));if(r.type=="range"){let a=l;for(let u=0;u{e[r].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=t[i.join(",")]=new gf(i.indexOf(e.length-1)>-1);for(let r=0;r-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:tj(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Hh(this,this.computeAttrs(t),Bn.from(n),eo.setFrom(i))}createChecked(t=null,n,i){return n=Bn.from(n),this.checkContent(n),new Hh(this,this.computeAttrs(t),n,eo.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=Bn.from(n),n.size){let r=this.contentMatch.fillBefore(n);if(!r)return null;n=r.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(Bn.empty,!0);return s?new Hh(this,t,n.append(s),eo.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;ni[s]=new oj(s,n,r));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function eBe(e,t,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${s}`)}}class tBe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?eBe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class lA{constructor(t,n,i,o){this.name=t,this.rank=n,this.schema=i,this.spec=o,this.attrs=ij(t,o.attrs),this.excluded=null;let s=ej(this.attrs);this.instance=s?new eo(this,s):null}create(t=null){return!t&&this.instance?this.instance:new eo(this,tj(this.attrs,t))}static compile(t,n){let i=Object.create(null),o=0;return t.forEach((s,r)=>i[s]=new lA(s,o++,n,r)),i}removeFromSet(t){for(var n=0;n-1}}class nBe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=Ps.from(t.nodes),n.marks=Ps.from(t.marks||{}),this.nodes=ST.compile(this.spec.nodes,this),this.marks=lA.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],r=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=i[r]||(i[r]=gf.parse(r,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?_T(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],r=s.spec.excludes;s.excluded=r==null?[s]:r==""?[]:_T(this,r.split(" "))}this.nodeFromJSON=o=>Hh.fromJSON(this,o),this.markFromJSON=o=>eo.fromJSON(this,o),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof ST){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,o)}text(t,n){let i=this.nodes.text;return new wy(i,i.defaultAttrs,t,eo.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function _T(e,t){let n=[];for(let i=0;i-1)&&n.push(r=a)}if(!r)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function iBe(e){return e.tag!=null}function oBe(e){return e.style!=null}let sBe=class p5{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(iBe(o))this.tags.push(o);else if(oBe(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=t.nodes[o.node];return s.contentMatch.matchType(s)})}parse(t,n={}){let i=new IT(this,n,!1);return i.addAll(t,eo.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new IT(this,n,!0);return i.addAll(t,eo.none,n.from,n.to),Qn.maxOpen(i.finish())}matchTag(t,n,i){for(let o=i?this.tags.indexOf(i)+1:0;ot.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(r.getAttrs){let a=r.getAttrs(n);if(a===!1)continue;r.attrs=a||void 0}return r}}}static schemaRules(t){let n=[];function i(o){let s=o.priority==null?50:o.priority,r=0;for(;r{i(r=ET(r)),r.mark||r.ignore||r.clearMark||(r.mark=o)})}for(let o in t.nodes){let s=t.nodes[o].spec.parseDOM;s&&s.forEach(r=>{i(r=ET(r)),r.node||r.ignore||r.mark||(r.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new p5(t,p5.schemaRules(t)))}};const sj={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},rBe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},rj={ol:!0,ul:!0},q0=1,g5=2,l0=4;function MT(e,t,n){return t!=null?(t?q0:0)|(t==="full"?g5:0):e&&e.whitespace=="pre"?q0|g5:n&~l0}class lv{constructor(t,n,i,o,s,r){this.type=t,this.attrs=n,this.marks=i,this.solid=o,this.options=r,this.content=[],this.activeMarks=eo.none,this.match=s||(r&l0?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Bn.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(t.type))?(this.match=i,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&q0)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=Bn.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Bn.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!sj.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class IT{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,r=MT(null,n.preserveWhitespace,0)|(i?l0:0);o?s=new lv(o.type,o.attrs,eo.none,!0,n.topMatch||o.type.contentMatch,r):i?s=new lv(null,null,eo.none,!0,null,r):s=new lv(t.schema.topNodeType,null,eo.none,!0,null,r),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,o=this.top,s=o.options&g5?"full":this.localPreserveWS||(o.options&q0)>0,{schema:r}=this.parser;if(s==="full"||o.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` +`);else if(r.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(r.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(t,n,i,o){let s,r;if(n.node)if(r=this.parser.schema.nodes[n.node],r.isLeaf)this.insertNode(r.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let a=this.enter(r,n.attrs||null,i,n.preserveWhitespace);a&&(s=!0,i=a)}else{let a=this.parser.schema.marks[n.mark];i=i.concat(a.create(n.attrs))}let l=this.top;if(r&&r.isLeaf)this.findInside(t);else if(o)this.addElement(t,i,o);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(a=>this.insertNode(a,i,!1));else{let a=t;typeof n.contentElement=="string"?a=t.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(t):n.contentElement&&(a=n.contentElement),this.findAround(t,a,!0),this.addAll(a,i),this.findAround(t,a,!1)}s&&this.sync(l)&&this.open--}addAll(t,n,i,o){let s=i||0;for(let r=i?t.childNodes[i]:t.firstChild,l=o==null?null:t.childNodes[o];r!=l;r=r.nextSibling,++s)this.findAtPoint(t,s),this.addDOM(r,n);this.findAtPoint(t,s)}findPlace(t,n,i){let o,s;for(let r=this.open,l=0;r>=0;r--){let a=this.nodes[r],u=a.findWrapping(t);if(u&&(!o||o.length>u.length+l)&&(o=u,s=a,!u.length))break;if(a.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let r=0;r(r.type?r.type.allowsMarkType(u.type):TT(u.type,t))?(a=u.addToSet(a),!1):!0),this.nodes.push(new lv(t,n,a,o,null,l)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=q0)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)t+=i[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),r=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(r(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:i&&a>=s?i.node(a-s).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return r(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function lBe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&rj.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function aBe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ET(e){let t={};for(let n in e)t[n]=e[n];return t}function TT(e,t){let n=t.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],r=l=>{s.push(l);for(let a=0;a{if(s.length||r.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(t.marks[o],t.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,n,i={}){let o=this.marks[t.type.name];return o&&Uv(av(i),o(t,n),null,t.attrs)}static renderSpec(t,n,i=null,o){return typeof n=="string"?{dom:t.createTextNode(n)}:Uv(t,n,i,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new z9(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=LT(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return LT(t.marks)}}function LT(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function av(e){return e.document||window.document}const NT=new WeakMap;function uBe(e){let t=NT.get(e);return t===void 0&&NT.set(e,t=cBe(e)),t}function cBe(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let r=o.indexOf(" ");r>0&&(n=o.slice(0,r),o=o.slice(r+1));let l,a=n?e.createElementNS(n,o):e.createElement(o),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let h=d.indexOf(" ");h>0?a.setAttributeNS(d.slice(0,h),d.slice(h+1),u[d]):d=="style"&&a.style?a.style.cssText=u[d]:a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof h=="string")a.appendChild(e.createTextNode(h));else{let{dom:p,contentDOM:g}=Uv(e,h,n,i);if(a.appendChild(p),g){if(l)throw new RangeError("Multiple content holes");l=g}}}return{dom:a,contentDOM:l}}const lj=65535,aj=Math.pow(2,16);function dBe(e,t){return e+t*aj}function FT(e){return e&lj}function fBe(e){return(e-(e&lj))/aj}const uj=1,cj=2,Kv=4,dj=8;class DT{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&dj)>0}get deletedBefore(){return(this.delInfo&(uj|Kv))>0}get deletedAfter(){return(this.delInfo&(cj|Kv))>0}get deletedAcross(){return(this.delInfo&Kv)>0}}class ll{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&ll.empty)return ll.empty}recover(t){let n=0,i=FT(t);if(!this.inverted)for(let o=0;ot)break;let u=this.ranges[l+s],c=this.ranges[l+r],d=a+u;if(t<=d){let h=u?t==a?-1:t==d?1:n:n,p=a+o+(h<0?0:c);if(i)return p;let g=t==(n<0?a:d)?null:dBe(l/3,t-a),m=t==a?cj:t==d?uj:Kv;return(n<0?t!=a:t!=d)&&(m|=dj),new DT(p,m,g)}o+=c-u}return i?t+o:new DT(t+o,0,null)}touches(t,n){let i=0,o=FT(n),s=this.inverted?2:1,r=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+s],c=a+u;if(t<=c&&l==o*3)return!0;i+=this.ranges[l+r]-u}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o!r.isAtom||!l.type.allowsMarkType(this.mark.type)?r:r.mark(this.mark.addToSet(r.marks)),o),n.openStart,n.openEnd);return es.fromReplace(t,this.from,this.to,s)}invert(){return new jd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Pd(n.pos,i.pos,this.mark)}merge(t){return t instanceof Pd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Pd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Pd(n.from,n.to,t.markFromJSON(n.mark))}}lr.jsonID("addMark",Pd);class jd extends lr{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new Qn(aA(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return es.fromReplace(t,this.from,this.to,i)}invert(){return new Pd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new jd(n.pos,i.pos,this.mark)}merge(t){return t instanceof jd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new jd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new jd(n.from,n.to,t.markFromJSON(n.mark))}}lr.jsonID("removeMark",jd);class Hd extends lr{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return es.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return es.fromReplace(t,this.pos,this.pos+1,new Qn(Bn.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;oi.pos?null:new Wh(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Wh(n.from,n.to,n.gapFrom,n.gapTo,Qn.fromJSON(t,n.slice),n.insert,!!n.structure)}}lr.jsonID("replaceAround",Wh);function m5(e,t,n){let i=e.resolve(t),o=n-t,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let r=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function hBe(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let s=0;s=0;r--){let l=r==i.depth?0:i.pos<=(i.start(r+1)+i.end(r+1))/2?-1:1,a=i.index(r)+(l>0?1:0),u=i.node(r),c=!1;if(s==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?i.pos:l<0?i.before(r+1):i.after(r+1)}return null}class a0 extends lr{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return es.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return es.fromReplace(t,this.pos,this.pos+1,new Qn(Bn.from(o),0,n.isLeaf?0:1))}getMap(){return ll.empty}invert(t){return new a0(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new a0(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new a0(n.pos,n.attr,n.value)}}lr.jsonID("attr",a0);class xy extends lr{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return es.ok(i)}getMap(){return ll.empty}invert(t){return new xy(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xy(n.attr,n.value)}}lr.jsonID("docAttr",xy);let K0=class extends Error{};K0=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};K0.prototype=Object.create(Error.prototype);K0.prototype.constructor=K0;K0.prototype.name="TransformError";const Nk=Object.create(null);class Lo{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new pBe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;s--){let r=n<0?uh(t.node(0),t.node(s),t.before(s+1),t.index(s),n,i):uh(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,n,i);if(r)return r}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Oa(t.node(0))}static atStart(t){return uh(t,t,0,0,1)||new Oa(t)}static atEnd(t){return uh(t,t,t.content.size,t.childCount,-1)||new Oa(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=Nk[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in Nk)throw new RangeError("Duplicate use of selection JSON ID "+t);return Nk[t]=n,n.prototype.jsonID=t,n}getBookmark(){return co.between(this.$anchor,this.$head).getBookmark()}}Lo.prototype.visible=!0;class pBe{constructor(t,n){this.$from=t,this.$to=n}}let BT=!1;function $T(e){!BT&&!e.parent.inlineContent&&(BT=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class co extends Lo{constructor(t,n=t){$T(t),$T(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Lo.near(i);let o=t.resolve(n.map(this.anchor));return new co(o.parent.inlineContent?o:i,i)}replace(t,n=Qn.empty){if(super.replace(t,n),n==Qn.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof co&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new O9(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new co(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let o=t.resolve(n);return new this(o,i==n?o:t.resolve(i))}static between(t,n,i){let o=t.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=Lo.findFrom(n,i,!0)||Lo.findFrom(n,-i,!0);if(s)n=s.$head;else return Lo.near(n,i)}return t.parent.inlineContent||(o==0?t=n:(t=(Lo.findFrom(t,-i,!0)||Lo.findFrom(t,i,!0)).$anchor,t.pos0?0:1);o>0?r=0;r+=o){let l=t.child(r);if(l.isAtom){if(!s&&vi.isSelectable(l))return vi.create(e,n-(o<0?l.nodeSize:0))}else{let a=uh(e,l,n+o,o<0?l.childCount:0,o,s);if(a)return a}n+=l.nodeSize*o}return null}function RT(e,t,n){let i=e.steps.length-1;if(i{r==null&&(r=c)}),e.setSelection(Lo.near(e.doc.resolve(r),n))}function zT(e,t){return!t||!e?e:e.bind(t)}class uv{constructor(t,n,i){this.name=t,this.init=zT(n.init,i),this.apply=zT(n.apply,i)}}new uv("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new uv("selection",{init(e,t){return e.selection||Lo.atStart(t.doc)},apply(e){return e.selection}}),new uv("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new uv("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function fj(e,t,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(t):i=="handleDOMEvents"&&(o=fj(o,t,{})),n[i]=o}return n}class mBe{constructor(t){this.spec=t,this.props={},t.props&&fj(t.props,this,this.props),this.key=t.key?t.key.key:vBe("plugin")}getState(t){return t[this.key]}}const Fk=Object.create(null);function vBe(e){return e in Fk?e+"$"+ ++Fk[e]:(Fk[e]=0,e+"$")}const Sy="kimi-code://skill/";function hj(e){return e?e.startsWith(Sy)&&e.length>Sy.length?"skill":e.startsWith("#")||e.startsWith("?")||e.startsWith("//")||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)&&!/^[a-zA-Z]:(?:[\\/]|%5c)/i.test(e)?null:e.endsWith("/")||e.endsWith("\\")||/%5c$/i.test(e)?"folder":"file":null}function Ep(e){const t=e.search(/[#?]/);return t>0?e.slice(0,t):e}function pj(e){let t="";for(const n of e)n.codePointAt(0)>127||/[A-Za-z0-9\-._~]/.test(n)?t+=n:t+=`%${n.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`;return t}function yBe(e){const t=e.split("/").map(pj).join("/");return t.startsWith("//")?`/%2F${t.slice(2)}`:t}function kBe(e){return e.replace(/%/g,"%25").replace(/&/g,"%26").replace(//g,"%3E").replace(/([\\[\]])/g,"\\$1").replace(/\n/g,"%0A").replace(/\r/g,"%0D")}function bBe(e){return e.replace(/\\([\\[\]])/g,"$1").replace(/%0A/g,` +`).replace(/%0D/g,"\r").replace(/%26/g,"&").replace(/%3C/g,"<").replace(/%3E/g,">").replace(/%25/g,"%")}function ABe(e){return e.replace(/%0A/g,` +`).replace(/%0D/g,"\r").replace(/%26/g,"&").replace(/%3C/g,"<").replace(/%3E/g,">").replace(/%25/g,"%")}function CBe(e,t){const n=t?e.replace(/\\([\\<>])/g,"$1"):e.replace(/\\([\\()])/g,"$1");try{return decodeURIComponent(n)}catch{return n}}function gj(e){const t=e.slice(Sy.length);try{return decodeURIComponent(t)}catch{return t}}function cA(e){const t=kBe(e.name);if(e.kind==="skill")return`[${t}](${Sy}${pj(e.name)})`;const n=e.kind==="folder"&&!e.path.endsWith("/")&&!e.path.endsWith("\\")?`${e.path}/`:e.path;return`[${t}](${yBe(n)})`}const wBe=new nBe({nodes:{doc:{content:"block+"},paragraph:{group:"block",content:"inline*",toDOM:()=>["p",0],parseDOM:[{tag:"p"}]},text:{group:"inline"},mention:{group:"inline",inline:!0,atom:!0,selectable:!0,attrs:{kind:{},name:{},path:{default:""}},leafText:e=>cA(e.attrs),toDOM:e=>{const t=e.attrs;return["span",{class:`mention-pill mention-${t.kind}`,"data-mention-path":t.path},t.name]}}}}),xBe={extensions:[{disable:{null:["attention","autolink","blockQuote","characterReference","codeFenced","codeIndented","codeText","definition","hardBreakEscape","headingAtx","htmlFlow","htmlText","list","setextUnderline","thematicBreak"]}}]};function dA(e){if(e.includes(` +`)){const a=[];let u=0;for(const c of e.split(` +`)){for(const d of dA(c))a.push({...d,start:d.start+u,end:d.end+u});u+=c.length+1}return a}const t=RDe($De(xBe).document().write(zDe()(e,void 0,!0))),n=[];let i=null,o=!1,s=!1,r=null,l=0;for(const[a,u]of t){if(u.type==="image"){l+=a==="enter"?1:-1;continue}if(l>0)continue;if(a==="enter"){u.type==="label"?i={start:u.start.offset,end:u.end.offset}:u.type==="resource"&&i!==null&&u.start.offset===i.end?(o=!0,s=!1,r=null):u.type==="resourceTitle"&&o?s=!0:u.type==="resourceDestination"&&o&&(r={start:u.start.offset,end:u.end.offset});continue}if(u.type!=="resource"||!o||i===null)continue;o=!1;const{start:c,end:d}=i;i=null;const h=u.end.offset;if(s||e[c]!=="["||r===null)continue;const p=e.slice(c+1,d-1);let g=e.slice(r.start,r.end),m=!1;if(g.startsWith("<")&&(m=!0,g=g.slice(1,-1)),!p||!g)continue;const k=hj(g);if(k!==null)if(k==="skill")n.push({start:c,end:h,attrs:{kind:k,name:gj(g),path:""},rawDest:g});else{const w=CBe(g,m);n.push({start:c,end:h,attrs:{kind:k,name:bBe(p),path:w},rawDest:g})}}return n}function SBe(e){const t=dA(e);if(t.length===0)return[{type:"text",value:e}];const n=[];let i=0;for(const o of t)o.start>i&&n.push({type:"text",value:e.slice(i,o.start)}),n.push({type:"mention",attrs:o.attrs,rawDest:o.rawDest}),i=o.end;return in.attrs.kind==="skill");return t.length===1&&t[0].attrs.name===e.name}function fA(e,t){if(mj(e))return t.revivePill?e.args??"":null;if(e.name.includes(" "))return null;const n=e.args??"";return`/skill:${e.name}${n.length>0?` ${n}`:""}`}function vj(e,t){return fA(e,t)!==null}const xf=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},yj=function(e,t,n,i){return n&&(OT(e,t,n,i,-1)||OT(e,t,n,i,1))},_Be=/^(img|br|input|textarea|hr)$/i;function OT(e,t,n,i,o){for(var s;;){if(e==n&&t==i)return!0;if(t==(o<0?0:_y(e))){let r=e.parentNode;if(!r||r.nodeType!=1||hA(e)||_Be.test(e.nodeName)||e.contentEditable=="false")return!1;t=xf(e)+(o<0?0:1),e=r}else if(e.nodeType==1){let r=e.childNodes[t+(o<0?-1:0)];if(r.nodeType==1&&r.contentEditable=="false")if(!((s=r.pmViewDesc)===null||s===void 0)&&s.ignoreForSelection)t+=o;else return!1;else e=r,t=o<0?_y(e):0}else return!1}}function _y(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function MBe(e,t,n){for(let i=t==0,o=t==_y(e);i||o;){if(e==n)return!0;let s=xf(e);if(e=e.parentNode,!e)return!1;i=i&&s==0,o=o&&s==_y(e)}}function hA(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const kj=function(e){return e.focusNode&&yj(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function bj(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const Ua=typeof navigator<"u"?navigator:null,PT=typeof document<"u"?document:null,Yc=Ua&&Ua.userAgent||"",v5=/Edge\/(\d+)/.exec(Yc),Aj=/MSIE \d/.exec(Yc),y5=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yc),wg=!!(Aj||y5||v5),Cj=Aj?document.documentMode:y5?+y5[1]:v5?+v5[1]:0,P9=!wg&&/gecko\/(\d+)/i.test(Yc);P9&&+(/Firefox\/(\d+)/.exec(Yc)||[0,0])[1];const k5=!wg&&/Chrome\/(\d+)/.exec(Yc),Jc=!!k5,wj=k5?+k5[1]:0,Sf=!wg&&!!Ua&&/Apple Computer/.test(Ua.vendor),pA=Sf&&(/Mobile\/\w+/.test(Yc)||!!Ua&&Ua.maxTouchPoints>2),El=pA||(Ua?/Mac/.test(Ua.platform):!1),xj=Ua?/Win/.test(Ua.platform):!1,xg=/Android \d/.test(Yc),gA=!!PT&&"webkitFontSmoothing"in PT.documentElement.style,IBe=gA?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function EBe(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),s=o&&o.size==0,r=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(r<0)return null;let l=i.resolve(r),a,u;if(kj(n)){for(a=r;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&vi.isSelectable(d)&&o.parent&&!(d.isInline&&MBe(n.focusNode,n.focusOffset,o.dom))){let h=o.posBefore;u=new vi(r==h?l:i.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=r,h=r;for(let p=0;p{(n.anchorNode!=i||n.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Sj(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function LBe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?t.collapse(n.parentNode,xf(n)+1):t.collapse(n,0),!i&&!e.state.selection.visible&&wg&&Cj<=11&&(n.disabled=!0,n.disabled=!1)}function NBe(e,t){if(t instanceof vi){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qT(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qT(e)}function qT(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function _j(e,t,n,i){return e.someProp("createSelectionBetween",o=>o(e,t,n))||co.between(t,n,i)}function FBe(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function b5(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&Lo.findFrom(s,t)}function oc(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function UT(e,t,n){let i=e.state.selection;if(i instanceof co)if(n.indexOf("s")>-1){let{$head:o}=i,s=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let r=e.state.doc.resolve(o.pos+s.nodeSize*(t<0?-1:1));return oc(e,new co(i.$anchor,r))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=b5(e.state,t);return o&&o instanceof vi?oc(e,o):!1}else if(!(El&&n.indexOf("m")>-1)){let o=i.$head,s=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,r;if(!s||s.isText)return!1;let l=t<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(r=e.docView.descAt(l))&&!r.contentDOM?vi.isSelectable(s)?oc(e,new vi(t<0?e.state.doc.resolve(o.pos-s.nodeSize):o)):gA?oc(e,new co(e.state.doc.resolve(t<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof vi&&i.node.isInline)return oc(e,new co(t>0?i.$to:i.$from));{let o=b5(e.state,t);return o?oc(e,o):!1}}}function My(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function u0(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Jf(e,t){return t<0?DBe(e):BBe(e)}function DBe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let o,s,r=!1;for(P9&&n.nodeType==1&&i0){if(n.nodeType!=1)break;{let l=n.childNodes[i-1];if(u0(l,-1))o=n,s=--i;else if(l.nodeType==3)n=l,i=n.nodeValue.length;else break}}else{if(Mj(n))break;{let l=n.previousSibling;for(;l&&u0(l,-1);)o=n.parentNode,s=xf(l),l=l.previousSibling;if(l)n=l,i=My(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}r?A5(e,n,i):o&&A5(e,o,s)}function BBe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let o=My(n),s,r;for(;;)if(i{e.state==o&&mA(e)},50)}function KT(e,t){let n=e.state.doc.resolve(t);if(!(Jc||xj)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let s=e.coordsAtPos(t-1),r=(s.top+s.bottom)/2;if(r>o.top&&r1)return s.lefto.top&&r1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function VT(e,t,n){let i=e.state.selection;if(i instanceof co&&!i.empty||n.indexOf("s")>-1||El&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=b5(e.state,t);if(r&&r instanceof vi)return oc(e,r)}if(!o.parent.inlineContent){let r=t<0?o:s,l=i instanceof Oa?Lo.near(r,t):Lo.findFrom(r,t);return l?oc(e,l):!1}return!1}function ZT(e,t){if(!(e.state.selection instanceof co))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let r=e.state.tr;return t<0?r.delete(n.pos-s.nodeSize,n.pos):r.delete(n.pos,n.pos+s.nodeSize),e.dispatch(r),!0}return!1}function GT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zBe(e){if(!Sf||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;GT(e,i,"true"),setTimeout(()=>GT(e,i,"false"),20)}return!1}function OBe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function PBe(e,t){let n=t.keyCode,i=OBe(t);if(n==8||El&&n==72&&i=="c")return ZT(e,-1)||Jf(e,-1);if(n==46&&!t.shiftKey||El&&n==68&&i=="c")return ZT(e,1)||Jf(e,1);if(n==13||n==27)return!0;if(n==37||El&&n==66&&i=="c"){let o=n==37?KT(e,e.state.selection.from)=="ltr"?-1:1:-1;return UT(e,o,i)||Jf(e,o)}else if(n==39||El&&n==70&&i=="c"){let o=n==39?KT(e,e.state.selection.from)=="ltr"?1:-1:1;return UT(e,o,i)||Jf(e,o)}else{if(n==38||El&&n==80&&i=="c")return VT(e,-1,i)||Jf(e,-1);if(n==40||El&&n==78&&i=="c")return zBe(e)||VT(e,1,i)||Jf(e,1);if(i==(El?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ij(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:i,openStart:o,openEnd:s}=t;for(;o>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){o--,s--;let p=i.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let r=e.someProp("clipboardSerializer")||z9.fromSchema(e.state.schema),l=Dj(),a=l.createElement("div");a.appendChild(r.serializeFragment(i,{document:l}));let u=a.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=Fj[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let g=l.createElement(c[p]);for(;a.firstChild;)g.appendChild(a.firstChild);a.appendChild(g),d++}u=a.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` + +`);return{dom:a,text:h,slice:t}}function Ej(e,t,n,i,o){let s=o.parent.type.spec.code,r,l;if(!n&&!t)return null;let a=!!t&&(i||s||!n);if(a){if(e.someProp("transformPastedText",h=>{t=h(t,s||i,e)}),s)return l=new Qn(Bn.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0),e.someProp("transformPasted",h=>{l=h(l,e,!0)}),l;let d=e.someProp("clipboardTextParser",h=>h(t,o,i,e));if(d)l=d;else{let h=o.marks(),{schema:p}=e.state,g=z9.fromSchema(p);r=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let k=r.appendChild(document.createElement("p"));m&&k.appendChild(g.serializeNode(p.text(m,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),r=qBe(n),gA&&UBe(r);let u=r&&r.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=r.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;r=h}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||sBe.fromSchema(e.state.schema)).parseSlice(r,{preserveWhitespace:!!(a||c),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!jBe.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)l=KBe(QT(l,+c[1],+c[2]),c[4]);else if(l=Qn.maxOpen(HBe(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let p=l.content.firstChild;d{l=d(l,e,a)}),l}const jBe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function HBe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),s,r=[];if(e.forEach(l=>{if(!r)return;let a=o.findWrapping(l.type),u;if(!a)return r=null;if(u=r.length&&s.length&&Lj(a,s,l,r[r.length-1],0))r[r.length-1]=u;else{r.length&&(r[r.length-1]=Nj(r[r.length-1],s.length));let c=Tj(l,a);r.push(c),o=o.matchType(c.type),s=a}}),r)return Bn.from(r)}return e}function Tj(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,Bn.from(e));return e}function Lj(e,t,n,i,o){if(o1&&(s=0),o=n&&(l=t<0?r.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(r.contentMatchAt(r.childCount).fillBefore(Bn.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,r.copy(l))}function QT(e,t,n){return tn})),Bk.createHTML(e)):e}function qBe(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Dj(),i=n.body,o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&Fj[o[1].toLowerCase()])&&(e=s.map(r=>"<"+r+">").join("")+e+s.map(r=>"").reverse().join("")),i.innerHTML=WBe(e),s)for(let r=0;r=0;l-=2){let a=n.nodes[i[l]];if(!a||a.hasRequiredAttrs())break;o=Bn.from(a.create(i[l+1],o)),s++,r++}return new Qn(o,s,r)}const va={},kl={};function mu(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}kl.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!zj(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(xg&&Jc&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),pA&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",o=>o(e,bj(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||PBe(e,n)?n.preventDefault():mu(e,"key")};kl.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};kl.keypress=(e,t)=>{let n=t;if(zj(e)||!n.charCode||n.ctrlKey&&!n.altKey||El&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof co)||!i.$from.sameParent(i.$to)){let o=String.fromCharCode(n.charCode),s=()=>e.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",r=>r(e,i.$from.pos,i.$to.pos,o,s))&&e.dispatch(s()),n.preventDefault()}};function Sg(e){return{left:e.clientX,top:e.clientY}}function VBe(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}function vA(e,t,n,i,o){if(i==-1)return!1;let s=e.state.doc.resolve(i);for(let r=s.depth+1;r>0;r--)if(e.someProp(t,l=>r>s.depth?l(e,n,s.nodeAfter,s.before(r),o,!0):l(e,n,s.node(r),s.before(r),o,!1)))return!0;return!1}function _g(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let i=e.state.tr.setSelection(t);i.setMeta("pointer",!0),e.dispatch(i)}function ZBe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return i&&i.isAtom&&vi.isSelectable(i)?(_g(e,new vi(n)),!0):!1}function GBe(e,t){if(t==-1)return!1;let n=e.state.selection,i,o;n instanceof vi&&(i=n.node);let s=e.state.doc.resolve(t);for(let r=s.depth+1;r>0;r--){let l=r>s.depth?s.nodeAfter:s.node(r);if(vi.isSelectable(l)){i&&n.$from.depth>0&&r>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?o=s.before(n.$from.depth):o=s.before(r);break}}return o!=null?(_g(e,vi.create(e.state.doc,o)),!0):!1}function QBe(e,t,n,i,o){return vA(e,"handleClickOn",t,n,i)||e.someProp("handleClick",s=>s(e,t,i))||(o?GBe(e,n):ZBe(e,n))}function YBe(e,t,n,i){return vA(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",o=>o(e,t,i))}function JBe(e,t,n,i){return vA(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",o=>o(e,t,i))||XBe(e,n,i)}function XBe(e,t,n){if(n.button!=0)return!1;let i=Bj(e,t,!0),o=e.state.doc;return i?(_g(e,i),i instanceof co&&o.eq(e.state.doc)&&(e.input.mouseDown=new t$e(e,i)),!0):!1}function Bj(e,t,n){let i=e.state.doc;if(t==-1)return i.inlineContent?co.create(i,0,i.content.size):null;let o=i.resolve(t);for(let s=o.depth+1;s>0;s--){let r=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(r.inlineContent)return co.create(i,l+1,l+1+r.content.size);if(n&&vi.isSelectable(r))return vi.create(i,l)}return null}function yA(e){return Iy(e)}const $j=El?"metaKey":"ctrlKey";va.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=yA(e),o=Date.now(),s="singleClick";o-e.input.lastClick.time<500&&VBe(n,e.input.lastClick)&&!n[$j]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:s,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let r=e.posAtCoords(Sg(n));r&&(s=="singleClick"?e.input.mouseDown=new e$e(e,r,n,!!i):(s=="doubleClick"?YBe:JBe)(e,r.pos,r.inside,n)?n.preventDefault():mu(e,"pointer"))};class Rj{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){t.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class e$e extends Rj{constructor(t,n,i,o){super(t),this.pos=n,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!i[$j],this.allowDefault=i.shiftKey;let s,r;if(n.inside>-1)s=t.state.doc.nodeAt(n.inside),r=n.inside;else{let c=t.state.doc.resolve(n.pos);s=c.parent,r=c.depth?c.before():0}const l=o?null:i.target,a=l?t.docView.nearestDesc(l,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=t.state;i.button==0&&(s.type.spec.draggable&&s.type.spec.selectable!==!1||u instanceof vi&&u.from<=r&&u.to>r)&&(this.mightDrag={node:s,pos:r,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&P9&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),mu(t,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||mA(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Sg(t))),this.updateAllowDefault(t),this.allowDefault||!n?mu(this.view,"pointer"):QBe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Sf&&this.mightDrag&&!this.mightDrag.node.isAtom||Jc&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(_g(this.view,Lo.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):mu(this.view,"pointer")}move(t){this.updateAllowDefault(t),mu(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class t$e extends Rj{constructor(t,n){super(t),this.startSelection=n,this.startDoc=t.state.doc}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),mu(this.view,"pointer");let n=this.view.posAtCoords(Sg(t)),i=n&&Bj(this.view,n.inside,!1);if(!i)return;let{doc:o}=this.view.state,s=this.startSelection,[r,l]=i.from{e.input.lastTouch=Date.now(),yA(e),mu(e,"pointer")};va.touchmove=e=>{e.input.lastTouch=Date.now(),mu(e,"pointer")};va.contextmenu=e=>yA(e);function zj(e,t){return e.composing?!0:Sf&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const n$e=xg?5e3:-1;kl.compositionstart=kl.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof co&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)||Jc&&xj&&i$e(e)))e.markCursor=e.state.storedMarks||n.marks(),Iy(e,!0),e.markCursor=null;else if(Iy(e,!t.selection.empty),P9&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let o=i.focusNode,s=i.focusOffset;o&&o.nodeType==1&&s!=0;){let r=s<0?o.lastChild:o.childNodes[s-1];if(!r)break;if(r.nodeType==3){let l=e.domSelection();l&&l.collapse(r,r.nodeValue.length);break}else o=r,s=-1}}e.input.composing=!0}Oj(e,n$e)};function i$e(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let i=t.childNodes[n];return i.nodeType==1&&i.contentEditable=="false"}kl.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Oj(e,20))};function Oj(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Iy(e),t))}function o$e(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Iy(e,t=!1){if(!(xg&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),o$e(e),t||e.docView&&e.docView.dirty){let n=EBe(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function s$e(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const V0=wg&&Cj<15||pA&&IBe<604;va.copy=kl.cut=(e,t)=>{let n=t,i=e.state.selection,o=n.type=="cut";if(i.empty)return;let s=V0?null:n.clipboardData,r=i.content(),{dom:l,text:a}=Ij(e,r);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):s$e(e,l),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function r$e(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function l$e(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?w5(e,i.value,null,o,t):w5(e,i.textContent,i.innerHTML,o,t)},50)}function w5(e,t,n,i,o){let s=Ej(e,t,n,i,e.state.selection.$from);if(e.someProp("handlePaste",a=>a(e,o,s||Qn.empty)))return!0;if(!s)return!1;let r=r$e(s),l=r?e.state.tr.replaceSelectionWith(r,i):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Pj(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}kl.paste=(e,t)=>{let n=t;if(e.composing&&!xg)return;let i=V0?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&w5(e,Pj(i),i.getData("text/html"),o,n)?n.preventDefault():l$e(e,n)};class a$e{constructor(t,n,i){this.slice=t,this.move=n,this.node=i}}const u$e=El?"altKey":"ctrlKey";function jj(e,t){let n;return e.someProp("dragCopies",i=>{n=n||i(t)}),n!=null?!n:!t[u$e]}va.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,s=o.empty?null:e.posAtCoords(Sg(n)),r;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof vi?o.to-1:o.to))){if(i&&i.mightDrag)r=vi.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(r=vi.create(e.state.doc,d.posBefore))}}let l=(r||e.state.selection).content(),{dom:a,text:u,slice:c}=Ij(e,l);(!n.dataTransfer.files.length||!Jc||wj>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(V0?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",V0||n.dataTransfer.setData("text/plain",u),e.dragging=new a$e(c,jj(e,n),r)};va.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};kl.dragover=kl.dragenter=(e,t)=>t.preventDefault();kl.drop=(e,t)=>{try{c$e(e,t,e.dragging)}finally{e.dragging=null}};function c$e(e,t,n){if(!t.dataTransfer)return;let i=e.posAtCoords(Sg(t));if(!i)return;let o=e.state.doc.resolve(i.pos),s=n&&n.slice;s?e.someProp("transformPasted",p=>{s=p(s,e,!1)}):s=Ej(e,Pj(t.dataTransfer),V0?null:t.dataTransfer.getData("text/html"),!1,o);let r=!!(n&&jj(e,t));if(e.someProp("handleDrop",p=>p(e,t,s||Qn.empty,r))){t.preventDefault();return}if(!s)return;t.preventDefault();let l=s?hBe(e.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let a=e.state.tr;if(r){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let u=a.mapping.map(l),c=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=a.doc;if(c?a.replaceRangeWith(u,u,s.content.firstChild):a.replaceRange(u,u,s),a.doc.eq(d))return;let h=a.doc.resolve(u);if(c&&vi.isSelectable(s.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(s.content.firstChild))a.setSelection(new vi(h));else{let p=a.mapping.map(l);a.mapping.maps[a.mapping.maps.length-1].forEach((g,m,k,w)=>p=w),a.setSelection(_j(e,h,a.doc.resolve(p)))}e.focus(),e.dispatch(a.setMeta("uiEvent","drop"))}va.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&mA(e)},20))};va.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};va.beforeinput=(e,t)=>{if(xg&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:i}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=i||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",s=>s(e,bj(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in kl)va[e]=kl[e];function Z0(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Ey{constructor(t,n){this.toDOM=t,this.spec=n||tf,this.side=this.spec.side||0}map(t,n,i,o){let{pos:s,deleted:r}=t.mapResult(n.from+o,this.side<0?-1:1);return r?null:new $a(s-i,s-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Ey&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Z0(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class bc{constructor(t,n){this.attrs=t,this.spec=n||tf}map(t,n,i,o){let s=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-i,r=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-i;return s>=r?null:new $a(s,r,this)}valid(t,n){return n.from=t&&(!s||s(l.spec))&&i.push(l.copy(l.from+o,l.to+o))}for(let r=0;rt){let l=this.children[r]+1;this.children[r+2].findInner(t-l,n-l,i,o+l,s)}}map(t,n,i){return this==pr||t.maps.length==0?this:this.mapInner(t,n,0,0,i||tf)}mapInner(t,n,i,o,s){let r;for(let l=0;l{let u=a+i,c;if(c=Wj(n,l,u)){for(o||(o=this.children.slice());sl&&d.to=t){this.children[l]==t&&(i=this.children[l+2]);break}let s=t+1,r=s+n.content.size;for(let l=0;ls&&a.type instanceof bc){let u=Math.max(s,a.from)-s,c=Math.min(r,a.to)-s;uo.map(t,n,tf));return Dd.from(i)}forChild(t,n){if(n.isLeaf)return Ls.empty;let i=[];for(let o=0;on instanceof Ls)?t:t.reduce((n,i)=>n.concat(i instanceof Ls?i:i.members),[]))}}forEachSet(t){for(let n=0;n{let k=m-g-(p-h);for(let w=0;wy+c-d)continue;let b=l[w]+c-d;p>=b?l[w+1]=h<=b?-2:-1:h>=c&&k&&(l[w]+=k,l[w+1]+=k)}d+=k}),c=n.maps[u].map(c,-1)}let a=!1;for(let u=0;u=i.content.size){a=!0;continue}let h=n.map(e[u+1]+s,-1),p=h-o,{index:g,offset:m}=i.content.findIndex(d),k=i.maybeChild(g);if(k&&m==d&&m+k.nodeSize==p){let w=l[u+2].mapInner(n,k,c+1,e[u]+s+1,r);w!=pr?(l[u]=d,l[u+1]=p,l[u+2]=w):(l[u+1]=-2,a=!0)}else a=!0}if(a){let u=f$e(l,e,t,n,o,s,r),c=Ty(u,i,0,r);t=c.local;for(let d=0;dn&&r.to{let u=Wj(e,l,a+n);if(u){s=!0;let c=Ty(u,l,n+a+1,i);c!=pr&&o.push(a,a+l.nodeSize,c)}});let r=Hj(s?qj(e):e,-n).sort(nf);for(let l=0;l0;)t++;e.splice(t,0,n)}const h$e={sm:14,md:16,lg:20},p$e={file:w8,folder:vR,skill:kR,copy:mR,check:gR,"external-link":yR};function e1(e,t="md"){const n=h$e[t];return p$e[e].replace(/]*>/,i=>i.replace(/\s(?:width|height)="[^"]*"/g,"")).replace(/^